Site Kit by Google - Version 1.34.1

Version Description

Fixed

  • Fix a problem for some hosts where requests for Analytics account creation or other on-demand permissions were blocked. See #3532.
Download this release

Release Info

Developer flixos90
Plugin Icon 128x128 Site Kit by Google
Version 1.34.1
Comparing to
See all releases

Code changes from version 1.34.0 to 1.34.1

dist/assets/js/{googlesitekit-activation.4e177fd2ac644a44ff54.js → googlesitekit-activation.12ffbbdd2af211a94c2c.js} RENAMED
@@ -1,11 +1,11 @@
1
- (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[2],{0:function(e,t){e.exports=googlesitekit.i18n},101:function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,a,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},102:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(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)]}},103:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(229),a=n(67),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(r.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,a,i,o,c,s,l,u,d,f,g,p,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(s=c.metrics)||void 0===s||null===(l=s[0])||void 0===l||null===(u=l.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(g=f.totals)||void 0===g||null===(p=g[0])||void 0===p||null===(m=p.values)||void 0===m?void 0:m[0])}}).call(this,n(2))},104:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),a=n.n(r),i=n(105),o=n(106);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=s(s({},l),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,r)}}}).call(this,n(18))},105:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(66),a=n(44);function i(t,n){var i=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(r),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(18))},106:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var r=n(7),a=n.n(r),i=n(6),o=n.n(i),c=n(14),s=n.n(c),l=n(66),u=n(56);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(t,n,r){var i=Object(l.a)(n);return function(){var n=s()(a.a.mark((function n(o,c,s,l){var d,g,p,m,h,v,b,k;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=t.isFirstAdmin,m=t.referenceSiteURL,h=t.trackingEnabled,v=t.trackingID,b=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(g=d.ioo)||void 0===g?void 0:g.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return k={send_to:v,event_category:o,event_label:s,value:l,dimension1:m,dimension2:p?"true":"false",dimension3:b,dimension4:"1.34.0",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,f(f({},k),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,a){return n.apply(this,arguments)}}()}}).call(this,n(18))},107:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(146),a=n.n(r)()(e)}).call(this,n(18))},113:function(e,t,n){"use strict";(function(e){var r=n(35),a=n.n(r),i=n(154),o=e._googlesitekitAPIFetchData||{},c=o.nonce,s=o.nonceEndpoint,l=o.preloadedData,u=o.rootURL;a.a.nonceEndpoint=s,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(u),a.a.preloadingMiddleware=Object(i.a)(l),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,n(18))},12:function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o}));var r="core/user",a="connected_url_mismatch",i="googlesitekit_view_dashboard",o="googlesitekit_manage_options"},120:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSettingsWarning}));var r=n(4),a=n.n(r),i=n(31),o=n(8),c=n.n(o),s=n(177),l=a.a.useSelect;function ModuleSettingsWarning(t){var n=t.slug,r=l((function(e){var t;return null===(t=e(i.a))||void 0===t?void 0:t.getCheckRequirementsError(n)}));return r?e.createElement("div",{className:c()("googlesitekit-settings-module-warning","googlesitekit-settings-module-warning--modules-list")},e.createElement(s.a,{height:"20",width:"23"})," ",r.message):null}}).call(this,n(2))},124:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return b}));var r=n(26),a=n.n(r),i=n(6),o=n.n(i),c=n(7),s=n.n(c),l=n(10),u=n.n(l),d=n(4),f=n.n(d),g=n(89),p=f.a.createRegistryControl,m=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},r={deleteSnapshot:s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:s.a.mark((function e(){var t,n,r,a,i,o,c=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,r=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(a=e.sent,i=a.cacheHit,o=a.value,!i){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!r){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e)})),createSnapshot:s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},i=(t={},o()(t,"DELETE_SNAPSHOT",(function(){return Object(g.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",p((function(t){return function(){return Object(g.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(g.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:r,controls:i,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,r=t.type,i=t.payload;switch(r){case"SET_STATE_FROM_SNAPSHOT":var o=i.snapshot,c=(o.error,a()(o,["error"]));return c;default:return e}}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().createSnapshot()})))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().restoreSnapshot()})))}},128:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return UnsatisfiedScopesAlert}));var a=n(11),i=n.n(a),o=n(290),c=n.n(o),s=n(0),l=n(4),u=n.n(l),d=n(46),f=n(5),g=n(12),p=n(54),m=u.a.useSelect,h={siteverification:"site-verification",webmasters:"search-console"};function UnsatisfiedScopesAlert(){var t,n,a,o,l,u=m((function(e){return e(p.a).isNavigatingTo(/(\/o\/oauth2)|(action=googlesitekit_connect)/i)})),v=m((function(e){return e(g.a).getUnsatisfiedScopes()})),b=m((function(t){return t(g.a).getConnectURL({redirectURL:e.location.href})}));if(u||!(null==v?void 0:v.length)||void 0===b)return null;switch(v.some((function(e){return!e.match(/^https:\/\/www.googleapis.com\/auth\//)}))?t="generic":(a=v,o=Object(f.i)(),t=(n=a.map((function(e){return e.match(/^https:\/\/www.googleapis.com\/auth\/([a-z]+)/)})).map((function(e){var t=i()(e,2)[1];return h[t]||t})).map((function(e){var t;return(null===(t=o[e])||void 0===t?void 0:t.name)||!1}))).some((function(e){return!1===e}))?"generic":1<(n=c()(n)).length?"multiple":"single"),t){case"multiple":l=Object(s.sprintf)(
2
  /* translators: %s: List of product names */
3
  Object(s.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for: %s – make sure to approve all permissions at the authentication stage.","google-site-kit"),Object(f.o)(n));break;case"single":l=Object(s.sprintf)(
4
  /* translators: %1$s: Product name */
5
  Object(s.__)("Site Kit can’t access the relevant data from %1$s because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for %1$s – make sure to approve all permissions at the authentication stage.","google-site-kit"),n[0]);break;case"generic":l=Object(s.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup – make sure to approve all permissions at the authentication stage.","google-site-kit")}return r.createElement(d.a,{id:"authentication error",title:Object(s.__)("Site Kit can’t access necessary data","google-site-kit"),description:l,format:"small",type:"win-error",isDismissable:!1,ctaLink:b,ctaLabel:Object(s.__)("Redo setup","google-site-kit")})}}).call(this,n(18),n(2))},130:function(e,t,n){"use strict";var r=n(2),a=n(56),i=Object(r.createContext)(a.a);t.a=i},131:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Cell}));var r=n(25),a=n.n(r),i=n(6),o=n.n(i),c=n(26),s=n.n(c),l=n(1),u=n.n(l),d=n(8),f=n.n(d);function Cell(t){var n,r=t.className,i=t.alignTop,c=t.alignMiddle,l=t.alignBottom,u=t.alignRight,d=t.alignLeft,g=t.smSize,p=t.smStart,m=t.mdSize,h=t.mdStart,v=t.lgSize,b=t.lgStart,k=t.size,y=t.children,_=s()(t,["className","alignTop","alignMiddle","alignBottom","alignRight","alignLeft","smSize","smStart","mdSize","mdStart","lgSize","lgStart","size","children"]);return e.createElement("div",a()({},_,{className:f()(r,"mdc-layout-grid__cell",(n={"mdc-layout-grid__cell--align-top":i,"mdc-layout-grid__cell--align-middle":c,"mdc-layout-grid__cell--align-bottom":l,"mdc-layout-grid__cell--align-right":u,"mdc-layout-grid__cell--align-left":d},o()(n,"mdc-layout-grid__cell--span-".concat(k),12>=k&&k>0),o()(n,"mdc-layout-grid__cell--span-".concat(v,"-desktop"),12>=v&&v>0),o()(n,"mdc-layout-grid__cell--start-".concat(b,"-desktop"),12>=b&&b>0),o()(n,"mdc-layout-grid__cell--span-".concat(m,"-tablet"),8>=m&&m>0),o()(n,"mdc-layout-grid__cell--start-".concat(h,"-tablet"),8>=h&&h>0),o()(n,"mdc-layout-grid__cell--span-".concat(g,"-phone"),4>=g&&g>0),o()(n,"mdc-layout-grid__cell--start-".concat(p,"-phone"),4>=p&&p>0),n))}),y)}Cell.propTypes={smSize:u.a.number,smStart:u.a.number,mdSize:u.a.number,mdStart:u.a.number,lgSize:u.a.number,lgStart:u.a.number,size:u.a.number,alignTop:u.a.bool,alignMiddle:u.a.bool,alignBottom:u.a.bool,alignRight:u.a.bool,alignLeft:u.a.bool,className:u.a.string,children:u.a.node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,mdSize:0,mdStart:0,lgSize:0,lgStart:0}}).call(this,n(2))},132:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Row}));var r=n(25),a=n.n(r),i=n(26),o=n.n(i),c=n(1),s=n.n(c),l=n(8),u=n.n(l);function Row(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return e.createElement("div",a()({className:u()("mdc-layout-grid__inner",n)},i),r)}Row.propTypes={className:s.a.string,children:s.a.node},Row.defaultProps={className:""}}).call(this,n(2))},133:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Grid}));var r=n(25),a=n.n(r),i=n(26),o=n.n(i),c=n(1),s=n.n(c),l=n(8),u=n.n(l);function Grid(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return e.createElement("div",a()({className:u()("mdc-layout-grid",n)},i),r)}Grid.propTypes={className:s.a.string,children:s.a.node},Grid.defaultProps={className:""}}).call(this,n(2))},134:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(48),a=n(38),i=function(t,n,i){var o=Object(a.d)(t,n,i);Object(a.e)(),Object.keys(e._googlesitekitLegacyData.admin.datacache).forEach((function(t){0!==t.indexOf(o+"::")&&t!==o||delete e._googlesitekitLegacyData.admin.datacache[t]})),Object.keys(Object(r.a)()).forEach((function(e){0!==e.indexOf("".concat(a.a).concat(o,"::"))&&e!=="".concat(a.a).concat(o)||Object(r.a)().removeItem(e)}))}}).call(this,n(18))},137:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleIcon}));var r=n(25),a=n.n(r),i=n(26),o=n.n(i),c=n(1),s=n.n(c),l=n(4),u=n.n(l),d=n(31),f=u.a.useSelect;function ModuleIcon(t){var n=t.slug,r=t.size,i=o()(t,["slug","size"]),c=f((function(e){return e(d.a).getModuleIcon(n)}));return c?e.createElement(c,a()({width:r,height:r},i)):null}ModuleIcon.propTypes={slug:s.a.string.isRequired,size:s.a.number},ModuleIcon.defaultProps={size:33}}).call(this,n(2))},141:function(e,t,n){"use strict";(function(e){var r=n(25),a=n.n(r),i=n(26),o=n.n(i),c=n(1),s=n.n(c),l=n(8),u=n.n(l);function VisuallyHidden(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return e.createElement("span",a()({},i,{className:u()("screen-reader-text",n)}),r)}VisuallyHidden.propTypes={className:s.a.string,children:s.a.node.isRequired},VisuallyHidden.defaultProps={className:""},t.a=VisuallyHidden}).call(this,n(2))},144:function(e,t,n){"use strict";var r=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{d:"M2.253 12.252l7.399 5.658A13.055 13.055 0 009 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22.02 22.02 0 010 22c0-3.506.81-6.814 2.253-9.748z",fill:"#FBBC05"}),r.createElement("path",{d:"M9.652 17.91l-7.4-5.658A21.935 21.935 0 0122 0c5.6 0 10.6 2.1 14.5 5.5l-6.4 6.4C27.9 10.1 25.1 9 22 9c-5.77 0-10.64 3.725-12.348 8.91z",fill:"#EA4335"}),r.createElement("path",{d:"M2.25 31.742l7.396-5.67A12.975 12.975 0 0022 35c6.1 0 10.7-3.1 11.8-8.5H22V18h20.5c.3 1.3.5 2.7.5 4 0 14-10 22-21 22A21.935 21.935 0 012.25 31.742z",fill:"#34A853"}),r.createElement("path",{d:"M36.34 38.52l-7.025-5.437c2.297-1.45 3.895-3.685 4.485-6.583H22V18h20.5c.3 1.3.5 2.7.5 4 0 7.17-2.623 12.767-6.66 16.52z",fill:"#4285F4"}));t.a=function SvgLogoG(e){return r.createElement("svg",a({viewBox:"0 0 43 44"},e),i)}},154:function(e,t,n){"use strict";var r=n(152);t.a=function(e){var t=Object.keys(e).reduce((function(t,n){return t[Object(r.getStablePath)(n)]=e[n],t}),{}),n=!1;return function(e,a){if(n)return a(e);setTimeout((function(){n=!0}),1e3);var i=e.parse,o=void 0===i||i,c=e.path;if("string"==typeof e.path){var s,l=(null===(s=e.method)||void 0===s?void 0:s.toUpperCase())||"GET",u=Object(r.getStablePath)(c);if(o&&"GET"===l&&t[u]){var d=Promise.resolve(t[u].body);return delete t[u],d}if("OPTIONS"===l&&t[l]&&t[l][u]){var f=Promise.resolve(t[l][u]);return delete t[l][u],f}}return a(e)}}},155:function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(13),f=n.n(d),g=n(2),p=n(46);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var h=function(t){s()(GenericError,t);var n=m(GenericError);function GenericError(){return a()(this,GenericError),n.apply(this,arguments)}return o()(GenericError,[{key:"render",value:function(){return e.createElement(p.a,this.props)}}]),GenericError}(g.Component);t.a=h}).call(this,n(2))},156:function(e,t,n){"use strict";(function(e){var r=n(1),a=n.n(r),i=n(299),o=n.n(i),c=n(8),s=n.n(c),l=n(294),u=n(2),d=n(0),f=n(43),g=n(24),p=n(19),m=n(191),h=function Dialog(t){var n=t.dialogActive,r=t.handleDialog,a=t.title,i=t.provides,c=t.handleConfirm,h=t.subtitle,v=t.confirmButton,b=t.dependentModules,k=t.danger,y=t.inProgress,_=void 0!==y&&y,E=Object(u.useCallback)((function(e){null!==e&&p.e.attachTo(e)}),[]),O=Object(l.a)(Dialog),j="googlesitekit-dialog-label-".concat(O),w="googlesitekit-dialog-description-".concat(O),S=!(!i||!i.length);return e.createElement("div",{ref:E,className:s()("mdc-dialog",{"mdc-dialog--open":n}),role:"alertdialog","aria-modal":"true","aria-labelledby":a?j:void 0,"aria-describedby":S?w:void 0,"aria-hidden":n?"false":"true",tabIndex:"-1"},e.createElement("div",{className:"mdc-dialog__scrim"}," "),e.createElement(o.a,{active:n},e.createElement("div",null,e.createElement("div",{className:"mdc-dialog__container"},e.createElement("div",{className:"mdc-dialog__surface"},a&&e.createElement("h2",{id:j,className:"mdc-dialog__title"},a),h&&e.createElement("p",{className:"mdc-dialog__lead"},h),S&&e.createElement("section",{id:w,className:"mdc-dialog__content"},e.createElement("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive"},i.map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t},e.createElement("span",{className:"mdc-list-item__text"},t))})))),b&&e.createElement("p",{className:"mdc-dialog__dependecies"},e.createElement("strong",null,Object(d.__)("Note: ","google-site-kit")),b),e.createElement("footer",{className:"mdc-dialog__actions"},e.createElement(f.a,{onClick:c,danger:k,disabled:_},v||Object(d.__)("Disconnect","google-site-kit")),e.createElement(m.a,{isSaving:_}),e.createElement(g.a,{className:"googlesitekit-margin-left-auto mdc-dialog__cancel-button",onClick:r,inherit:!0,disabled:_},Object(d.__)("Cancel","google-site-kit"))))))))};h.displayName="Dialog",h.propTypes={dialogActive:a.a.bool,handleDialog:a.a.func,handleConfirm:a.a.func.isRequired,title:a.a.string,description:a.a.string,confirmButton:a.a.string,danger:a.a.bool},h.defaultProps={dialogActive:!1,handleDialog:null,title:null,description:null,confirmButton:null,danger:!1},t.a=h}).call(this,n(2))},159:function(e,t,n){"use strict";var r=n(11),a=n.n(r),i=n(312),o=n(2),c=n(176);t.a=function Modal(e){var t=e.children,n=Object(o.useState)(document.createElement("div")),r=a()(n,1)[0];return Object(i.a)((function(){var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(r),function(){return e.removeChild(r)}})),Object(c.createPortal)(t,r)}},161:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AuthError}));var r=n(0),a=n(4),i=n.n(a),o=n(12),c=n(46),s=i.a.useSelect;function AuthError(){var t=s((function(e){return e(o.a).getAuthError()}));return t?e.createElement(c.a,{id:"autherror",title:Object(r.__)("Site Kit can’t access necessary data","google-site-kit"),description:t.message,ctaLink:t.data.reconnectURL,ctaLabel:Object(r.__)("Redo the plugin setup","google-site-kit")}):null}}).call(this,n(2))},164:function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v}));var r=n(7),a=n.n(r),i=n(14),o=n.n(i),c=n(17),s=n(28),l=n(38),u=(Object(c.c)("googlesitekit.winCallbacks",{}),function(){return Object(c.c)("googlesitekit.ModulesNotificationsRequest",[])});function d(){return f.apply(this,arguments)}function f(){return(f=o()(a.a.mark((function t(){var n,r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=e._googlesitekitLegacyData.setup).isSiteKitConnected&&(n.isAuthenticated||n.isVerified)){t.next=3;break}return t.abrupt("return",0);case 3:return r=0,t.next=6,p();case 6:return(i=t.sent)&&i.total&&(r+=i.total),r=Object(c.c)("googlesitekit.TotalNotifications",r),r=Math.max(0,Math.abs(r)),e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",r),t.abrupt("return",r);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var g=function(e){return e?e.length?e.filter((function(e){return!Object(l.c)("notification::dismissed::".concat(e.id))})):e:[]};function p(){return m.apply(this,arguments)}function m(){return(m=o()(a.a.mark((function e(){var t,n,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},n=0,e.next=4,u();case 4:return r=e.sent,i=[],r.map(function(){var e=o()(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new Promise(function(){var e=o()(a.a.mark((function e(n){var r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.identifier,e.t0=g,e.next=4,s.c.get(s.b,r,"notifications",{},!1);case 4:e.t1=e.sent,i=(0,e.t0)(e.t1),n({identifier:r,notifications:i});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),i.push(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=9,Promise.all(i).then((function(e){e.forEach((function(e){e.notifications.length&&(n+=e.notifications.length,t[e.identifier]=e.notifications)}))}));case 9:return e.abrupt("return",{results:t,total:n});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var h=function(t){var n=Math.abs(t.count)+1;return e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",n),{count:n}},v=function(t){var n=Math.max(0,Math.abs(t.count)-1);return e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",n),{count:n}}}).call(this,n(18))},169:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return u}));var r="https://cdn.ampproject.org/v0.js",a="amp_cdn_restricted",i="check_api_unavailable",o="check_fetch_failed",c="google_api_connection_fail",s="invalid_hostname",l="setup_token_mismatch",u="wp_pre_v5"},170:function(e,t,n){"use strict";(function(e){t.a=function Warning(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#F9BB2D",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),e.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))}}).call(this,n(2))},171:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(7),a=n.n(r),i=n(14),o=n.n(i),c=n(5),s=["fetch_error"];function l(e){return u.apply(this,arguments)}function u(){return(u=o()(a.a.mark((function e(t){var n,r,i,o,l,u,d,f;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.method,o=t.type,l=t.identifier,u=t.datapoint,(d=t.error)&&!s.includes(null==d?void 0:d.code)){e.next=3;break}return e.abrupt("return");case 3:return f="code: ".concat(d.code),(null===(n=d.data)||void 0===n?void 0:n.reason)&&(f+=", reason: ".concat(d.data.reason)),e.next=7,Object(c.w)("api_error","".concat(i,":").concat(o,"/").concat(l,"/data/").concat(u),"".concat(d.message," (").concat(f,")"),(null===(r=d.data)||void 0===r?void 0:r.status)||d.code);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},174:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureTours}));var r=n(1),a=n.n(r),i=n(4),o=n.n(i),c=n(12),s=n(212),l=o.a.useSelect;function FeatureTours(t){var n=t.viewContext,r=l((function(e){var t;return null===(t=e(c.a).getFeatureToursForView(n))||void 0===t?void 0:t[0]})),a=l((function(e){return e(c.a).areFeatureToursOnCooldown()}));return!r||a?null:e.createElement(s.a,{tourID:r.slug,steps:r.steps,gaEventCategory:r.gaEventCategory})}FeatureTours.propTypes={viewContext:a.a.string}}).call(this,n(2))},177:function(e,t,n){"use strict";var r=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M3.332 24.75h21.335c2.182 0 3.542-2.366 2.451-4.25L16.451 2.07C15.36.184 12.64.184 11.549 2.07L.882 20.5c-1.091 1.884.269 4.25 2.45 4.25zM14 14.833a1.42 1.42 0 01-1.417-1.416v-2.834c0-.779.638-1.416 1.417-1.416.78 0 1.417.637 1.417 1.416v2.834A1.42 1.42 0 0114 14.833zm1.417 5.667h-2.834v-2.833h2.834V20.5z",fill:"#EA4336",fillRule:"nonzero"});t.a=function SvgError(e){return r.createElement("svg",a({viewBox:"0 0 28 25"},e),i)}},182:function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m}));var r=n(7),a=n.n(r),i=n(14),o=n.n(i),c=n(28);function s(){return l.apply(this,arguments)}function l(){return(l=o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.c.get(c.a,"site","notifications",{},!1);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var u=n(58);function d(e,t){return f.apply(this,arguments)}function f(){return(f=o()(a.a.mark((function e(t,n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c.c.invalidateCacheGroup(c.a,"site","notifications"),e.next=3,Object(u.b)("site_notifications",n,t);case 3:return e.next=5,c.c.set(c.a,"site","mark-notification",{notificationID:t,notificationState:n});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return p.apply(this,arguments)}function p(){return(p=o()(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(t,"accepted");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return h.apply(this,arguments)}function h(){return(h=o()(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(t,"dismissed");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},185:function(e,t,n){"use strict";(function(e){t.a=function Error(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#EA4336",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"error-title error-desc"},e.createElement("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"}))}}).call(this,n(2))},19:function(e,t,n){"use strict";var r=n(110),a=n.n(r);n.d(t,"n",(function(){return a.a})),n.d(t,"c",(function(){return r.HelperText})),n.d(t,"d",(function(){return r.Input}));var i=n(218);n.d(t,"i",(function(){return i.a}));var o=n(305);n.d(t,"f",(function(){return o.a}));var c=n(306);n.d(t,"h",(function(){return c.a}));var s=n(136),l=n.n(s);n.d(t,"m",(function(){return l.a})),n.d(t,"k",(function(){return s.Option}));var u=n(307);n.d(t,"j",(function(){return u.a}));var d=n(304);n.d(t,"e",(function(){return d.a}));var f=n(303);n.d(t,"g",(function(){return f.a}));var g=n(69);n.d(t,"a",(function(){return g.a})),n.d(t,"b",(function(){return g.b})),n.d(t,"l",(function(){return g.c}))},191:function(e,t,n){"use strict";(function(e){t.a=function Spinner(t){var n=t.isSaving;return e.createElement("span",{className:"spinner",style:{display:n?"inline-block":"none",float:"none",marginTop:"0",visibility:"visible"}})}}).call(this,n(2))},198:function(e,t,n){"use strict";var r=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M14 1.41L12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7 14 1.41z",fill:"#fff"});t.a=function SvgClose(e){return r.createElement("svg",a({viewBox:"0 0 14 14",fill:"none"},e),i)}},20:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r="core/site",a="primary",i="secondary"},205:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Root}));var r=n(1),a=n.n(r),i=n(4),o=n.n(i),c=n(206),s=n(207),l=n(56),u=n(208),d=n(209),f=n(210),g=n(211);function Root(t){var n=t.children,r=t.registry,a=t.viewContext,i=void 0===a?null:a,p=t.dataAPIContext,m=t.dataAPIModuleArgs;return e.createElement(o.a.RegistryProvider,{value:r},e.createElement(s.a,{value:l.a},e.createElement(c.a,{viewContext:i},e.createElement(d.a,null,n,i&&e.createElement(g.a,{viewContext:i}),p&&e.createElement(f.a,{context:p,args:m})),e.createElement(u.a,null))))}Root.propTypes={children:a.a.node.isRequired,registry:a.a.object,viewContext:a.a.string,dataAPIContext:a.a.string,dataAPIModuleArgs:a.a.object},Root.defaultProps={registry:o.a}}).call(this,n(2))},206:function(e,t,n){"use strict";(function(e,r){var a=n(15),i=n.n(a),o=n(16),c=n.n(o),s=n(49),l=n.n(s),u=n(21),d=n.n(u),f=n(22),g=n.n(f),p=n(13),m=n.n(p),h=n(298),v=n.n(h),b=n(1),k=n.n(b),y=n(2),_=n(0),E=n(295),O=n(360),j=n(361),w=n(46),S=n(24),D=n(43),x=n(5);function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}var C=function(t){d()(ErrorHandler,t);var n=N(ErrorHandler);function ErrorHandler(e){var t;return i()(this,ErrorHandler),(t=n.call(this,e)).state={error:null,info:null,copied:!1},t.onErrorClick=t.onErrorClick.bind(l()(t)),t}return c()(ErrorHandler,[{key:"componentDidCatch",value:function(t,n){var r=this.props.viewContext,a=void 0===r?"unknown":r;e.console.error("Caught an error:",t,n),this.setState({error:t,info:n}),Object(x.w)("react_error","handle_".concat(a,"_error"),"".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack).slice(0,500))}},{key:"onErrorClick",value:function(){var e=this.state,t=e.error,n=e.info;v()("`".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack,"`")),this.setState({copied:!0})}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.error,a=t.info,i=t.copied;if(!n)return e;var o=r.createElement(E.a,{className:"mdc-button__icon",icon:i?O.a:j.a});return r.createElement(w.a,{id:"googlesitekit-error",title:Object(_.__)("Site Kit encountered an error","google-site-kit"),description:r.createElement(y.Fragment,null,r.createElement(D.a,{trailingIcon:o,onClick:this.onErrorClick},Object(_.__)("Copy error to clipboard","google-site-kit")),r.createElement(S.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(_.__)("Report this problem","google-site-kit"))),isDismissable:!1,format:"small",type:"win-error"},r.createElement("pre",{className:"googlesitekit-overflow-auto"},n.message,a.componentStack))}}]),ErrorHandler}(y.Component);C.propTypes={children:k.a.node.isRequired},t.a=C}).call(this,n(18),n(2))},207:function(e,t,n){"use strict";var r=n(130),a=(r.a.Consumer,r.a.Provider);t.a=a},208:function(e,t,n){"use strict";(function(e,r){var a=n(7),i=n.n(a),o=n(14),c=n.n(o),s=n(0),l=n(2),u=n(4),d=n.n(u),f=n(12),g=n(54),p=n(124),m=n(156),h=n(159),v=d.a.useSelect,b=d.a.useDispatch,k=d.a.useRegistry;t.a=function PermissionsModal(){var t,n,a,o=k(),u=v((function(e){return e(f.a).getPermissionScopeError()})),d=v((function(t){var n;return t(f.a).getConnectURL({additionalScopes:null==u||null===(n=u.data)||void 0===n?void 0:n.scopes,redirectURL:e.location.href})})),y=b(f.a).clearPermissionScopeError,_=b(g.a).navigateTo,E=Object(l.useCallback)((function(){y()}),[y]),O=Object(l.useCallback)(c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(p.c)(o);case 2:_(d);case 3:case"end":return e.stop()}}),e)}))),[o,d,_]);return Object(l.useEffect)((function(){(function(){var e=c()(i.a.mark((function e(){var t,n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null==u||null===(t=u.data)||void 0===t?void 0:t.skipModal)||!(null==u||null===(n=u.data)||void 0===n||null===(r=n.scopes)||void 0===r?void 0:r.length)){e.next=3;break}return e.next=3,O();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[O,u]),u?(null==u||null===(t=u.data)||void 0===t||null===(n=t.scopes)||void 0===n?void 0:n.length)?(null==u||null===(a=u.data)||void 0===a?void 0:a.skipModal)?null:r.createElement(h.a,null,r.createElement(m.a,{title:Object(s.__)("Additional Permissions Required","google-site-kit"),subtitle:u.message,confirmButton:Object(s.__)("Proceed","google-site-kit"),dialogActive:!0,handleConfirm:O,handleDialog:E})):(e.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",u),null):null}}).call(this,n(18),n(2))},209:function(e,t,n){"use strict";var r=n(7),a=n.n(r),i=n(14),o=n.n(i),c=n(11),s=n.n(c),l=n(2),u=n(4),d=n.n(u),f=n(124),g=d.a.useRegistry;t.a=function RestoreSnapshots(e){var t=e.children,n=g(),r=Object(l.useState)(!1),i=s()(r,2),c=i[0],u=i[1];return Object(l.useEffect)((function(){c||o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(f.b)(n);case 2:u(!0);case 3:case"end":return e.stop()}}),e)})))()}),[n,c]),c?t:null}},210:function(e,t,n){"use strict";n.d(t,"a",(function(){return CollectModuleData}));var r=n(2),a=n(17),i=(n(28),n(4)),o=n.n(i),c=n(12),s=o.a.useSelect;function CollectModuleData(e){var t=e.context,n=e.args,i=s((function(e){return e(c.a).getDateRange()}));return Object(r.useEffect)((function(){return function(){return Object(a.d)("googlesitekit.moduleDataReset")}}),[i]),Object(r.useEffect)((function(){Object(a.d)("googlesitekit.moduleLoaded",t,n)}),[t,n,i]),null}},211:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureToursDesktop}));var r=n(6),a=n.n(r),i=n(162),o=n(174);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FeatureToursDesktop(t){return Object(i.a)()<783?null:e.createElement(o.a,t)}FeatureToursDesktop.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o.a.propTypes)}).call(this,n(2))},212:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return TourTooltips}));var a=n(6),i=n.n(a),o=n(326),c=n(47),s=n(1),l=n.n(s),u=n(0),d=n(4),f=n.n(d),g=n(52),p=n(12),m=n(58),h=n(213);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var b=f.a.useSelect,k=f.a.useDispatch,y={options:{arrowColor:"#1A73E8",backgroundColor:"#1A73E8",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#ffffff"}},_={back:Object(u.__)("Back","google-site-kit"),close:Object(u.__)("Close","google-site-kit"),last:Object(u.__)("Got it","google-site-kit"),next:Object(u.__)("Next","google-site-kit")},E={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},O="feature_tooltip_view",j="feature_tooltip_advance",w="feature_tooltip_return",S="feature_tooltip_dismiss",D="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,a=t.tourID,s=t.gaEventCategory,l="".concat(a,"-step"),u="".concat(a,"-run"),d=k(g.a).setValue,f=k(p.a).dismissTour,x=b((function(e){return e(g.a).getValue(l)})),N=b((function(e){return e(g.a).getValue(u)&&!1===e(p.a).isTourDismissed(a)}));Object(o.a)((function(){d(u,!0)}));var C=n.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));return r.createElement(c.e,{callback:function(t){!function(e){var t=e.index,n=e.action,r=e.lifecycle,a=e.size,i=e.status,o=e.type,l=t+1;o===c.b.TOOLTIP&&r===c.c.TOOLTIP?Object(m.b)(s,O,l):n===c.a.CLOSE&&r===c.c.COMPLETE?Object(m.b)(s,S,l):n===c.a.NEXT&&i===c.d.FINISHED&&o===c.b.TOUR_END&&a===l&&Object(m.b)(s,D,l),r===c.c.COMPLETE&&i!==c.d.FINISHED&&(n===c.a.PREV&&Object(m.b)(s,w,l),n===c.a.NEXT&&Object(m.b)(s,j,l))}(t);var n=t.action,r=t.index,i=t.status,o=t.step,u=t.type,g=n===c.a.CLOSE,p=!g&&[c.b.STEP_AFTER,c.b.TARGET_NOT_FOUND].includes(u),h=[c.d.FINISHED,c.d.SKIPPED].includes(i),v=g&&u===c.b.STEP_AFTER,b=h||v;if(c.b.STEP_BEFORE===u){var k,y,_=o.target;"string"==typeof o.target&&(_=e.document.querySelector(o.target)),null===(k=_)||void 0===k||null===(y=k.scrollIntoView)||void 0===y||y.call(k,{block:"center"})}p?function(e,t){d(l,e+(t===c.a.PREV?-1:1))}(r,n):b&&f(a)},continuous:!0,disableOverlayClose:!0,disableScrolling:!0,floaterProps:E,locale:_,run:N,showProgress:!0,stepIndex:x,steps:C,styles:y,tooltipComponent:h.a})}TourTooltips.propTypes={steps:l.a.arrayOf(l.a.object).isRequired,tourID:l.a.string.isRequired,gaEventCategory:l.a.string.isRequired}}).call(this,n(18),n(2))},213:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TourTooltip}));var r=n(25),a=n.n(r),i=n(204),o=n.n(i),c=n(8),s=n.n(c),l=n(1),u=n.n(l),d=n(214),f=n(198),g=n(43);function TourTooltip(t){var n=t.backProps,r=t.closeProps,c=t.index,l=t.primaryProps,u=t.size,p=t.step,m=t.tooltipProps,h=u>1?Object(d.a)(u):[],v=function(e){return s()("googlesitekit-tooltip-indicator",{active:e===c})};return e.createElement("div",a()({className:"googlesitekit-tour-tooltip"},m),e.createElement(o.a,{className:"googlesitekit-tooltip-card"},e.createElement("div",{className:"googlesitekit-tooltip-body"},e.createElement("h2",{className:"googlesitekit-tooltip-title"},p.title),e.createElement("div",{className:"googlesitekit-tooltip-content"},p.content)),e.createElement(i.CardActions,{className:"googlesitekit-tooltip-actions"},e.createElement("ul",{className:"googlesitekit-tooltip-indicators"},h.map((function(t){return e.createElement("li",{key:"indicator-".concat(t),className:v(t)})}))),e.createElement("div",{className:"googlesitekit-tooltip-buttons"},0!==c&&e.createElement(g.a,a()({className:"googlesitekit-tooltip-button",text:!0},n),n.title),e.createElement(g.a,a()({className:"googlesitekit-tooltip-button",text:!0},l),l.title))),e.createElement(g.a,a()({className:"googlesitekit-tooltip-close",text:!0,icon:e.createElement(f.a,{width:"14",height:"14"})},r))))}TourTooltip.propTypes={backProps:u.a.object.isRequired,closeProps:u.a.object.isRequired,index:u.a.number.isRequired,isLastStep:u.a.bool.isRequired,primaryProps:u.a.object.isRequired,size:u.a.number.isRequired,step:u.a.shape({content:u.a.node.isRequired,title:u.a.node.isRequired}).isRequired,tooltipProps:u.a.object.isRequired}}).call(this,n(2))},214:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return new Array(null!=e?e:0).fill().map((function(e,t){return t}))}},24:function(e,t,n){"use strict";(function(e){var r=n(25),a=n.n(r),i=n(26),o=n.n(i),c=n(1),s=n.n(c),l=n(8),u=n.n(l),d=n(0);function Link(t){var n=t.href,r=t.children,i=t.className,c=t.arrow,s=t.external,l=t.hideExternalIndicator,f=t.inverse,g=t.back,p=t.small,m=t.inherit,h=t.caps,v=t.danger,b=t.disabled,k=t["aria-label"],y=o()(t,["href","children","className","arrow","external","hideExternalIndicator","inverse","back","small","inherit","caps","danger","disabled","aria-label"]),_=n&&!b,E=_?"a":"button";return e.createElement(E,a()({className:u()("googlesitekit-cta-link",i,{"googlesitekit-cta-link--arrow":c,"googlesitekit-cta-link--external":s&&!l,"googlesitekit-cta-link--inverse":f,"googlesitekit-cta-link--back":g,"googlesitekit-cta-link--small":p,"googlesitekit-cta-link--inherit":m,"googlesitekit-cta-link--caps":h,"googlesitekit-cta-link--danger":v,"googlesitekit-cta-link--disabled":b}),href:_?n:void 0,target:_&&s?"_blank":void 0,rel:s?"noopener noreferrer":void 0,disabled:b,"aria-label":function(){var e=k;if(!s)return e;"string"==typeof r&&(e=e||r);var t=Object(d._x)("(opens in a new tab)","screen reader text","google-site-kit");return e?"".concat(e," ").concat(t):t}()},y),r)}Link.propTypes={dangerouslySetInnerHTML:s.a.shape({__html:s.a.string}),onClick:s.a.func,href:s.a.string,children:s.a.oneOfType([s.a.string.isRequired,s.a.array.isRequired,s.a.element.isRequired]),className:s.a.string,arrow:s.a.bool,external:s.a.bool,hideExternalIndicator:s.a.bool,inverse:s.a.bool,back:s.a.bool,small:s.a.bool,inherit:s.a.bool,caps:s.a.bool,danger:s.a.bool,disabled:s.a.bool},Link.defaultProps={dangerouslySetInnerHTML:void 0,onClick:null,href:"",className:"",arrow:!1,external:!1,hideExternalIndicator:!1,inverse:!1,back:!1,small:!1,inherit:!1,caps:!1,danger:!1,disabled:!1},t.a=Link}).call(this,n(2))},246:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserInputSettings}));var r=n(1),a=n.n(r),i=n(294),o=n(0),c=n(4),s=n.n(c),l=n(46),u=n(5),d=n(12),f=n(20),g=n(286),p=s.a.useSelect;function UserInputSettings(t){var n=t.onCTAClick,r=t.onDismiss,a=t.isDismissable,c=Object(i.a)(UserInputSettings),s=p((function(e){return e(f.c).getAdminURL("googlesitekit-user-input")}));return"completed"===p((function(e){return e(d.a).getUserInputState()}))?null:e.createElement(l.a,{id:"user-input-settings-notification-".concat(c),className:"googlesitekit-user-input__notification",title:Object(o.__)("Customize Site Kit to match your goals","google-site-kit"),description:Object(o.__)("Answer 5 questions and Site Kit will customize your dashboard with specific metrics and opportunities that match your site’s goals","google-site-kit"),format:"large",dismissExpires:3*Object(u.l)("hour"),ctaLink:s,ctaLabel:Object(o.__)("Let’s go","google-site-kit"),onCTAClick:n,dismiss:Object(o.__)("Remind me later","google-site-kit"),WinImageSVG:g.a,isDismissable:a,onDismiss:r})}UserInputSettings.propTypes={onCTAClick:a.a.func,onDismiss:a.a.func,isDismissable:a.a.bool}}).call(this,n(2))},277:function(e,t,n){"use strict";(function(e){var r=n(7),a=n.n(r),i=n(14),o=n.n(i),c=n(15),s=n.n(c),l=n(16),u=n.n(l),d=n(21),f=n.n(d),g=n(22),p=n.n(g),m=n(13),h=n.n(m),v=n(2),b=n(0),k=n(182),y=n(46);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var a=h()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var E=function(t){f()(DashboardCoreSiteAlerts,t);var n,r=_(DashboardCoreSiteAlerts);function DashboardCoreSiteAlerts(e){var t;return s()(this,DashboardCoreSiteAlerts),(t=r.call(this,e)).state={notifications:!1},t}return u()(DashboardCoreSiteAlerts,[{key:"componentDidMount",value:(n=o()(a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(k.c)();case 3:t=e.sent,this.setState({notifications:t}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.warn("Error caught while fetching notifications",e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return n.apply(this,arguments)})},{key:"render",value:function(){var t=this.state.notifications;return Array.isArray(t)?t.map((function(t){return e.createElement(y.a,{key:t.id,id:t.id,title:t.title||"",description:t.content||"",learnMoreURL:t.learnMoreURL||"",learnMoreLabel:t.learnMoreLabel||"",ctaLink:t.ctaURL||"",ctaLabel:t.ctaLabel||"",ctaTarget:t.ctaTarget||"",dismiss:t.dismissLabel||Object(b.__)("OK, Got it!","google-site-kit"),isDismissable:t.dismissible,onCTAClick:o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(k.a)(t.id);case 2:case"end":return e.stop()}}),e)}))),onDismiss:o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(k.b)(t.id);case 2:case"end":return e.stop()}}),e)})))})})):null}}]),DashboardCoreSiteAlerts}(v.Component);t.a=E}).call(this,n(2))},278:function(e,t,n){"use strict";(function(e,r){var a=n(15),i=n.n(a),o=n(16),c=n.n(o),s=n(21),l=n.n(s),u=n(22),d=n.n(u),f=n(13),g=n.n(f),p=n(2),m=n(0),h=n(17),v=n(5),b=n(46),k=n(279),y=n(280),_=n(281);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return d()(this,n)}}var O=function(t){l()(DashboardSetupAlerts,t);var n=E(DashboardSetupAlerts);function DashboardSetupAlerts(){return i()(this,DashboardSetupAlerts),n.apply(this,arguments)}return c()(DashboardSetupAlerts,[{key:"render",value:function(){var t=Object(v.j)("notification");if(!t||""===t)return null;var n={id:"connected-successfully",setupTitle:Object(m.__)("Site Kit","google-site-kit"),description:Object(m.__)("Now you’ll be able to see how your site is doing in search. To get even more detailed stats, activate more modules. Here are our recommendations for what to include in your Site Kit:","google-site-kit"),learnMore:{label:"",url:"",description:""}},a=e._googlesitekitLegacyData.permissions.canManageOptions;switch(t){case"authentication_success":if(!a)return null;var i=Object(v.i)(),o=Object(v.j)("slug");return o&&i[o]&&!i[o].active?null:(o&&i[o]&&(n.id="".concat(n.id,"-").concat(o),n.setupTitle=i[o].name,n.description=Object(m.__)("Here are some other services you can connect to see even more stats:","google-site-kit"),n=Object(h.c)("googlesitekit.SetupWinNotification-".concat(o),n)),r.createElement(p.Fragment,null,r.createElement(b.a,{id:n.id
6
  /* translators: %s: the name of a module that setup was completed for */,title:Object(m.sprintf)(Object(m.__)("Congrats on completing the setup for %s!","google-site-kit"),n.setupTitle),description:n.description,handleDismiss:function(){},WinImageSVG:y.a,dismiss:Object(m.__)("OK, Got it!","google-site-kit"),format:"large",type:"win-success",learnMoreLabel:n.learnMore.label,learnMoreDescription:n.learnMore.description,learnMoreURL:n.learnMore.url,anchorLink:"pagespeed-insights"===o?"#googlesitekit-pagespeed-header":"",anchorLinkLabel:"pagespeed-insights"===o?Object(m.__)("Jump to the bottom of the dashboard to see how fast your home page is","google-site-kit"):""},r.createElement(k.a,{moduleSlugs:["search-console","adsense","analytics","pagespeed-insights"]}))));case"authentication_failure":return r.createElement(p.Fragment,null,r.createElement(b.a,{id:"connection error",title:Object(m.__)("There was a problem connecting to Google!","google-site-kit"),description:"",handleDismiss:function(){},format:"small",type:"win-error"}));case"user_input_success":return r.createElement(_.a,null)}}}]),DashboardSetupAlerts}(p.Component);t.a=O}).call(this,n(18),n(2))},279:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(7),o=n.n(i),c=n(14),s=n.n(c),l=n(8),u=n.n(l),d=n(2),f=n(0),g=n(5),p=n(4),m=n.n(p),h=n(24),v=n(137),b=n(155),k=n(120),y=n(141),_=n(31),E=n(54);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=m.a.useSelect,S=m.a.useDispatch;t.a=function ModulesList(t){var n=t.moduleSlugs,r=S(_.a).activateModule,i=S(E.a).navigateTo,c=w((function(e){return e(_.a).getModules()})),l=Object(d.useCallback)(function(){var e=s()(o.a.mark((function e(t){var n,a,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(t);case 2:if(n=e.sent,a=n.response,!(c=n.error)){e.next=8;break}return Object(g.u)(b.a,{id:"setup-module-error",title:Object(f.__)("Internal Server Error","google-site-kit"),description:c.message,format:"small",type:"win-error"}),e.abrupt("return",null);case 8:return e.next=10,Object(g.w)("".concat(t,"_setup"),"module_activate",t);case 10:i(a.moduleReauthURL);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[r,i]);if(!c)return null;var p=Array.isArray(n)&&n.length?n.filter((function(e){return c.hasOwnProperty(e)})).reduce((function(e,t){return j(j({},e),{},a()({},t,c[t]))}),{}):c,m=Object.values(p).filter((function(e){return!e.internal&&0===e.dependencies.length})).sort((function(e,t){return e.order-t.order}));return e.createElement("div",{className:"googlesitekit-modules-list"},m.map((function(t){var n=t.slug,r=t.name,a=t.connected,i=t.active,o=a&&i;return e.createElement("div",{key:n,className:u()("googlesitekit-modules-list__module","googlesitekit-modules-list__module--".concat(n))},e.createElement("div",{className:"googlesitekit-settings-connect-module__wrapper"},e.createElement("div",{className:"googlesitekit-settings-connect-module__logo"},e.createElement(v.a,{slug:n})),e.createElement("h3",{className:"googlesitekit-settings-connect-module__title"},r)),e.createElement(k.a,{slug:n,context:"modules-list"}),o&&e.createElement("span",{className:"googlesitekit-settings-module__status"},e.createElement("span",{className:"googlesitekit-settings-module__status-icon googlesitekit-settings-module__status-icon--connected"},e.createElement(y.a,null,Object(f.__)("Connected","google-site-kit"))),Object(f.__)("Connected","google-site-kit")),!o&&e.createElement(h.a,{onClick:function(){return l(n)},arrow:!0,small:!0,inherit:!0},Object(f.__)("Connect Service","google-site-kit")))})))}}).call(this,n(2))},28:function(e,t,n){"use strict";var r=n(11),a=n.n(r),i=n(23),o=n(113),c=n(99),s=n(17),l=n(32),u=n(84),d=n(73),f=n(161),g=n(128),p=n(38),m=n(88);n.d(t,"a",(function(){return m.a})),n.d(t,"b",(function(){return m.b}));var h=n(134),v=n(171),b={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],l=25;Object(i.each)(e,(function(e){e.key=Object(p.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(p.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),l),l+=25):r.push(e)})),r=Object(i.sortBy)(r,"priority");var f=[],g=[],m={},h=!!r.find((function(e){return e.priority<10}));Object(i.each)(r,(function(e,t){!n&&10<=e.priority&&h?g.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],f.push(e))}));var v=10,b=f.slice(0,v),k=f.slice(v);if(k=k.concat(g),0!==b.length||0!==k.length){0<k.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(k,!0)}),50):this.maxRequests=10;var y=null!==Object(u.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:y||void 0}),data:{request:b},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=a()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(d.d)(o)){var c=m[i][0],l=r[c],u=l.datapoint,f=l.type,g=l.identifier;t.handleWPError({method:"GET",datapoint:u,type:f,identifier:g,error:o})}else Object(p.f)(i,o);m[i].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===k.length&&Object(s.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(s.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,a=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(a),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(v.a)({method:t,datapoint:n,type:r,identifier:a,error:i});var o=i.data;if(o&&(o.reason||o.reconnectURL)){var c=0;["authError","insufficientPermissions"].includes(o.reason)&&(Object(s.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(l.b)(g.a),1),c++),o.reconnectURL&&(Object(s.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(l.b)(f.a),1),c++),c&&Object(s.b)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease",(function(e){return Object(s.g)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease"),e+c}))}},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:h.a,collectModuleData:function(e,t){var n=Object(s.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=Object(p.d)(e,t,n,a);if(!i){var l=Object(p.c)(s,3600);if(void 0!==l)return new Promise((function(e){e(l)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),a)}).then((function(e){return i||Object(p.f)(s,e),Promise.resolve(e)})).catch((function(a){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},set:function(e,t,n,r){var a=this,i={};return i.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(r){return b.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return a.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(m.a,"modules","activation",{slug:e,active:t})}};Object(s.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(s.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",b.collectModuleData.bind(b)),t.c=b},280:function(e,t,n){"use strict";var r=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{stroke:"#E8EAED",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:6,d:"M200 10v31.42M105 35.46l15.71 27.2M35.46 105l27.2 15.71M10 200h31.42M35.46 295l27.2-15.71M364.54 295l-27.2-15.71M390 200h-31.42M364.54 105l-27.2 15.71M295 35.46l-15.71 27.2"}),o=r.createElement("path",{d:"M251.2 51.21c-.67-1 10.33-9.56 11.16-10.16 5.81-4.22 12.64-8 19.94-8.46 7.91-.53 15.45 2.58 23 4.58 10.31 2.77 21.44 3.8 32.09 1.69 9.59-1.9 20.83-5.9 27.87-12.93-.24.24.3 2.83.33 3.18a65.31 65.31 0 010 8.51 59.1 59.1 0 01-7 25.06 43.41 43.41 0 01-18.94 18.13C329.14 86 317.78 88.93 307 93.41c-6.7 2.79-18.11 7.23-18.11 16.07z",fill:"#F439A0"}),c=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M248.83 47.55l93.63 144.69"}),s=r.createElement("path",{d:"M279.89 172.88c18.52 6.68 53.35 9.87 64.53-10.87 14.77-27.39-23.47-38.52-43.87-34.53M88.94 145C13 233.15 70 296.93 119 267.62",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:9}),l=r.createElement("path",{d:"M234.54 260.65c59.23 111 7.37 98-23.53 93.23l2 20.19M186.58 274.6c31.93 144.76-28.4 65.93-35.58 53.33l-12.25 14.36",stroke:"#188038",strokeLinejoin:"round",strokeWidth:9}),u=r.createElement("path",{d:"M234.54 260.65q3.92 7.32 7.19 14M186.58 274.6q2.19 9.88 3.81 18.42",stroke:"#137333",strokeLinejoin:"round",strokeWidth:9}),d=r.createElement("path",{fill:"#1E8E3E",d:"M170.71 172.85l-98 39.35 39.35 98 98-39.35 98-39.35-39.35-98-98 39.35z"}),f=r.createElement("path",{d:"M158.45 268.63c-16.25 2.37-32.52-5.2-43.75-18.63l83.92-22.8",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6}),g=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M316.62 152.31l25.84 39.93"});t.a=function SvgSuccessGreen(e){return r.createElement("svg",a({viewBox:"0 0 400 400",fill:"none"},e),i,o,c,s,l,u,d,f,g)}},281:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserInputSuccessNotification}));var r=n(0),a=n(2),i=n(46),o=n(282),c=n(5);function UserInputSuccessNotification(){Object(a.useEffect)((function(){Object(c.w)("user_input","success_notification_view")}),[]);return e.createElement(i.a,{id:"user-input-success",title:Object(r.__)("Congrats! You set your site goals","google-site-kit"),description:Object(r.__)("Now Site Kit will begin suggesting metrics to add to your dashboard that are relevant specifically to you, based on the goals you shared","google-site-kit"),SmallImageSVG:o.a,dismiss:Object(r.__)("OK, got it!","google-site-kit"),format:"small",onDismiss:function(){Object(c.w)("user_input","success_notification_dismiss")}})}}).call(this,n(2))},282:function(e,t,n){"use strict";var r=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("path",{d:"M154.32 135.43c-10.56 8.65-20.59 16.68-30.15 23.63-5.07 3.7-14.21-1.31-15.28-8.16-1.86-12.85-3-26.17-3.63-39.8-12.15-7.93-24.13-15.53-35.44-22.35-6.11-3.63-4.22-12.48 3-15.39 13.28-5.23 26.64-10.44 40-15.38 4.23-13.83 8.45-27.77 12.11-41.4 2-7.39 10.41-8.93 14.89-2.73 8.25 11.45 17.13 23 26 34.42 14.22-.1 28.56 0 42.84.22 7.73.18 12.64 7.79 8.2 13.35-8.15 10.38-16.67 21.73-25.21 33.45 4.25 13 7.89 25.84 10.7 38.51 1.43 6.79-5.34 14.71-11.39 13-11.49-3.06-23.71-7.03-36.64-11.37z",fill:"#FBBC04"}),c=r.createElement("path",{d:"M205.44 73.7c10.67 26.59 20.64 47.74 16.58 76.8-4.67 33.43-33.31 70.54-68.1 75.46-17.34 2.45-35.57-2.42-47.85-15-12-12.26-18.78-29.18-21.81-45.85-3.25-17.94-2.2-36.87 3.91-54.11a77.26 77.26 0 014.71-10.76",stroke:"#4285F4",strokeLinecap:"square",strokeLinejoin:"round",strokeWidth:6}),s=r.createElement("g",{clipPath:"url(#milestone-blue_svg__clip0)",strokeLinejoin:"round",strokeWidth:6},r.createElement("path",{d:"M151.73 225.81L144 246.63a35.18 35.18 0 00.07 24.7l6.51 12.51h-8.34",stroke:"#1967D2"}),r.createElement("path",{stroke:"#185ABC",d:"M151.73 225.81l-5.6 15.04"}),r.createElement("path",{stroke:"#1967D2",d:"M164.04 231.67v52.17h7.76"}),r.createElement("path",{stroke:"#185ABC",d:"M164.04 221.67v20.1"})),l=r.createElement("path",{d:"M161.08 235.06a36.17 36.17 0 0026.08-44L117.07 209a36.17 36.17 0 0044.01 26.06z",fill:"#1A73E8"}),u=r.createElement("path",{d:"M142.64 217.51c5.53 7.83 16.11 10.61 24.45 1.64M145.07 215.59c-2.58.66-2.41 3.54-5.51 4.88",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:3}),d=r.createElement("path",{stroke:"#FEEFC3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:6,d:"M101.3 47.04L75.8 22.68M60.45 68.72l-34.37-6.91M208.28 22.68l-18.86 17.87M265.17 73.7l-32.36 3.02M66.15 109.02l-49.01 15.36"}),f=r.createElement("defs",null,r.createElement("clipPath",{id:"milestone-blue_svg__clip0"},r.createElement("circle",{cx:150,cy:150,r:100})));t.a=function SvgMilestoneBlue(e){return r.createElement("svg",a({viewBox:"0 0 300 300",fill:"none"},e),i,o,c,s,l,u,d,f)}},283:function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(13),f=n.n(d),g=n(23),p=n(2),m=n(0),h=n(5),v=n(46),b=n(164),k=n(284);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var _=function(t){s()(DashboardModulesAlerts,t);var n=y(DashboardModulesAlerts);function DashboardModulesAlerts(e){var t;return a()(this,DashboardModulesAlerts),(t=n.call(this,e)).state={data:!1},t}return o()(DashboardModulesAlerts,[{key:"componentDidMount",value:function(){var e=this,t=Object(b.e)();t&&Object(b.b)(t).then((function(t){e.setState({data:t.results})}))}},{key:"render",value:function(){var t=this.state.data;if(0===Object.keys(t).length)return null;var n=Object(h.i)(),r=[];return Object.keys(t).forEach((function(a){Object(g.each)(t[a],(function(t){r.push(e.createElement(v.a,{key:t.id,id:t.id,title:t.title||"",description:t.description||"",blockData:t.blockData||[],WinImageSVG:function WinImageSVG(){return e.createElement(k.a,{height:"136"})},format:t.format||"small",learnMoreURL:t.learnMoreURL||"",learnMoreDescription:t.learnMoreDescription||"",learnMoreLabel:t.learnMoreLabel||"",ctaLink:t.ctaURL||"",ctaLabel:t.ctaLabel||"",ctaTarget:t.ctaTarget||"",type:t.severity||"",dismiss:t.dismiss||Object(m.__)("OK, Got it!","google-site-kit"),isDismissable:t.isDismissable||!0,logo:t.logo||!0,module:a,moduleName:n[a].name,pageIndex:t.pageIndex||"",dismissExpires:t.dismissExpires||0,showOnce:t.showOnce||!1}))}))})),e.createElement(p.Fragment,null,r)}}]),DashboardModulesAlerts}(p.Component);t.a=_}).call(this,n(2))},284:function(e,t,n){"use strict";var r=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("g",{clipPath:"url(#notification-alert_svg__clip0)",strokeMiterlimit:10,strokeWidth:15},r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15s44.18-11.1 65.14-20.18c9.91-4.3 20.07-8.62 30.85-9.31s22.46 2.9 28.7 11.71a24 24 0 013.78 17.65",stroke:"#4285F4"}),r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15",stroke:"#1A73E8"})),c=r.createElement("path",{stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33l-67.86 256.23"}),s=r.createElement("path",{stroke:"#A50E0E",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33L193.97 150"}),l=r.createElement("path",{d:"M221.3 13l-94.69 95.2a10 10 0 004.53 16.72L261 159.3a10 10 0 0012.18-12.3L238 17.39A10 10 0 00221.3 13z",fill:"#D93025"}),u=r.createElement("path",{d:"M137.37 111.56l87.36-87.87a3 3 0 015 1.33l32.42 119.6a3 3 0 01-3.66 3.68l-119.76-31.72a3 3 0 01-1.36-5.02z",stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:2}),d=r.createElement("path",{d:"M196.78 118.35a7.38 7.38 0 01-.78-5.84 7.25 7.25 0 013.56-4.64 7.46 7.46 0 015.83-.73 7.51 7.51 0 015.4 9.29 7.51 7.51 0 01-3.52 4.7 7.27 7.27 0 01-5.8.8 7.44 7.44 0 01-4.69-3.58zm12.05-46.1l5.56-21 10.82 2.87-5.55 21-8 25.41-8.6-2.28z",fill:"#FFF"}),f=r.createElement("path",{d:"M198.47 181.73a23.18 23.18 0 01-8.2 14.28c-9.2 7.58-24.24 6.67-32.46-2",stroke:"#4285F4",strokeMiterlimit:10,strokeWidth:15}),g=r.createElement("defs",null,r.createElement("clipPath",{id:"notification-alert_svg__clip0"},r.createElement("circle",{cx:150,cy:150,r:100})));t.a=function SvgNotificationAlert(e){return r.createElement("svg",a({viewBox:"0 0 300 300",fill:"none"},e),i,o,c,s,l,u,d,f,g)}},285:function(e,t,n){"use strict";(function(e){var r=n(2),a=n(5),i=n(246);t.a=function UserInputPromptNotification(){Object(r.useEffect)((function(){Object(a.w)("user_input","prompt_notification_view")}),[]);return e.createElement(i.a,{isDismissable:!0,onCTAClick:function(){Object(a.w)("user_input","prompt_notification_start")},onDismiss:function(){Object(a.w)("user_input","prompt_notification_dismiss")}})}}).call(this,n(2))},286:function(e,t,n){"use strict";var r=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M294.5 39.35h244.69v251.12a7.5 7.5 0 01-7.5 7.5H302a7.5 7.5 0 01-7.5-7.5V39.35z",fill:"#F1F3F4"}),o=r.createElement("path",{fill:"#FFF",stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:1.5,d:"M314.5 68.28h45.25v45.25H314.5zM314.5 146.04h45.25v45.25H314.5z"}),c=r.createElement("path",{d:"M313.38 145.1c14.28 17.62 17.8 21.42 32.08 39",stroke:"#9AA0A6",strokeLinejoin:"round",strokeWidth:5}),s=r.createElement("path",{fill:"#FFF",stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:1.5,d:"M314.5 223.79h45.25v45.25H314.5z"}),l=r.createElement("ellipse",{cx:149.01,cy:322.24,rx:72.28,ry:7.51,fill:"#F1F3F4"}),u=r.createElement("path",{d:"M302 10h229.69a7.5 7.5 0 017.5 7.5v21.85H294.5V17.5A7.5 7.5 0 01302 10z",fill:"#80868B"}),d=r.createElement("circle",{cx:314.91,cy:24.68,r:5.32,fill:"#FFF"}),f=r.createElement("circle",{cx:336.18,cy:24.68,r:5.32,fill:"#FFF"}),g=r.createElement("path",{d:"M232.78 231.28c42.24.91 55.06-20.59 39.78-70.34",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:8.03}),p=r.createElement("path",{d:"M158.93 241.76c-2.23 25.53-1.22 59.63 6.93 80.6H184M126.69 241.76c-2.29 25-.62 58.69 6.93 80.6H116.8",stroke:"#188038",strokeLinejoin:"round",strokeWidth:8.03}),m=r.createElement("path",{d:"M158.93 241.76a244.31 244.31 0 00-1 26.13M126.69 241.76c-.57 6.24-.9 17.52-1 23.59",stroke:"#137333",strokeLinejoin:"round",strokeWidth:8.03}),h=r.createElement("path",{d:"M36.83 277.33c-9.72-9.09-13.91-26.06-8.22-38.36 4.92-10.64 20.49-22.29 31.69-23.47",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:8.03}),v=r.createElement("path",{fill:"#1E8E3E",d:"M151.1 160.94l93.85 6.87-6.87 93.85-93.85-6.87-93.85-6.87 6.87-93.85 93.85 6.87z"}),b=r.createElement("path",{d:"M181.25 219.25c-18.11 15.64-48.49 18.13-68.47-5",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5.74}),k=r.createElement("path",{stroke:"#DADCE0",strokeLinejoin:"round",strokeWidth:20,d:"M380.07 90.91h139.12M380.07 168.66h139.12M380.07 246.42h139.12"}),y=r.createElement("path",{fill:"#FBBC04",d:"M319.603 184.523l-155.3-70.055 8.98-19.908 155.3 70.055z"}),_=r.createElement("path",{fill:"#DADCE0",d:"M328.59 164.62l25.17 22.94-34.15-3.03 8.98-19.91z"}),E=r.createElement("path",{fill:"#5F6368",d:"M344.35 186.72l9.41.84-6.92-6.29-2.49 5.45z"}),O=r.createElement("path",{d:"M164.22 114.43h.09L175 119.3l9-19.91-10.7-4.84h-.09a10.92 10.92 0 00-9 19.91z",fill:"#EE675C"}),j=r.createElement("path",{fill:"#DADCE0",d:"M176.772 120.092l-4.557-2.056 8.984-19.917 4.558 2.056z"}),w=r.createElement("path",{stroke:"#F29900",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:4,d:"M318.21 172.07l-130.15-58.71"}),S=r.createElement("path",{d:"M307.33 65.64a267 267 0 0064.05 58M312.39 117.93l40.77-54.45",stroke:"#9AA0A6",strokeLinejoin:"round",strokeWidth:5});t.a=function SvgUserInputPrompt(e){return r.createElement("svg",a({viewBox:"0 0 570 336",fill:"none"},e),i,o,c,s,l,u,d,f,g,p,m,h,v,b,k,y,_,E,O,j,w,S)}},287:function(e,t,n){"use strict";(function(e){var r=n(0),a=n(144),i=n(288),o=n(141);t.a=function Logo(){return e.createElement("div",{className:"googlesitekit-logo","aria-hidden":"true"},e.createElement(a.a,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),e.createElement(i.a,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),e.createElement(o.a,null,Object(r.__)("Site Kit by Google Logo","google-site-kit")))}}).call(this,n(2))},288:function(e,t,n){"use strict";var r=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M62.09 1.664h3.038v.1L58.34 9.593l7.241 10.224v.1H62.7L56.755 11.4 53.95 14.64v5.278h-2.351V1.664h2.35v9.415h.1l8.04-9.415zM69.984 3.117c0 .454-.166.853-.487 1.175-.322.322-.71.488-1.176.488-.455 0-.854-.166-1.175-.488a1.599 1.599 0 01-.488-1.175c0-.466.166-.854.488-1.176.321-.322.71-.488 1.175-.488.455 0 .854.166 1.176.488.332.333.487.72.487 1.176zm-.476 4.313v12.498h-2.351V7.43h2.35zM77.016 20.128c-1.02 0-1.864-.31-2.54-.943-.676-.632-1.02-1.508-1.031-2.628V9.57h-2.196V7.43h2.196V3.603h2.35V7.43h3.061v2.14h-3.06v6.222c0 .831.166 1.397.488 1.696.321.3.687.444 1.097.444.189 0 .366-.022.555-.067.188-.044.344-.1.499-.166l.743 2.096c-.632.222-1.342.333-2.162.333zM2.673 18.952C1.375 18.009.488 16.678 0 14.97l2.883-1.176c.289 1.076.799 1.94 1.542 2.628.732.677 1.619 1.02 2.65 1.02.965 0 1.774-.244 2.45-.742.677-.5 1.01-1.187 1.01-2.052 0-.798-.3-1.453-.887-1.974-.588-.521-1.62-1.042-3.094-1.564l-1.22-.432C4.025 10.224 2.928 9.57 2.04 8.716 1.153 7.862.71 6.742.71 5.346c0-.966.266-1.853.787-2.673C2.018 1.852 2.75 1.209 3.693.72 4.624.244 5.678 0 6.864 0c1.708 0 3.072.41 4.081 1.242 1.02.832 1.697 1.752 2.04 2.795L10.236 5.2c-.2-.621-.576-1.164-1.142-1.63-.565-.477-1.286-.71-2.173-.71s-1.641.222-2.251.676c-.61.455-.91 1.032-.91 1.742 0 .676.278 1.22.82 1.663.544.432 1.398.854 2.563 1.253l1.22.41c1.674.577 2.96 1.342 3.88 2.274.921.931 1.376 2.184 1.376 3.748 0 1.275-.322 2.34-.976 3.193a6.01 6.01 0 01-2.495 1.919 8.014 8.014 0 01-3.116.621c-1.62 0-3.072-.466-4.358-1.408zM15.969 3.449a1.95 1.95 0 01-.588-1.43c0-.566.2-1.043.588-1.431A1.95 1.95 0 0117.399 0c.566 0 1.043.2 1.43.588.389.388.588.865.588 1.43 0 .566-.2 1.043-.587 1.43a1.95 1.95 0 01-1.43.589c-.566-.012-1.043-.2-1.431-.588zm-.067 2.595h2.994v13.883h-2.994V6.044zM25.405 19.85c-.543-.2-.986-.466-1.33-.788-.776-.776-1.176-1.84-1.176-3.182V8.683h-2.428v-2.64h2.428V2.13h2.994v3.926h3.372v2.639h-3.372v6.531c0 .743.145 1.276.433 1.575.277.366.743.543 1.42.543.31 0 .576-.044.82-.122.233-.077.488-.21.765-.399v2.917c-.599.277-1.32.41-2.173.41a5.01 5.01 0 01-1.753-.3zM33.623 19.407a6.63 6.63 0 01-2.529-2.628c-.61-1.12-.909-2.373-.909-3.77 0-1.332.3-2.551.887-3.693.588-1.132 1.409-2.04 2.462-2.706 1.053-.666 2.251-1.01 3.593-1.01 1.397 0 2.606.311 3.637.921a6.123 6.123 0 012.34 2.528c.532 1.076.799 2.274.799 3.627 0 .255-.023.576-.078.953H33.179c.111 1.287.566 2.285 1.375 2.983a4.162 4.162 0 002.817 1.043c.854 0 1.597-.189 2.218-.588a4.266 4.266 0 001.508-1.597l2.528 1.198c-.654 1.142-1.508 2.04-2.561 2.694-1.054.655-2.318.976-3.782.976-1.364.022-2.584-.288-3.66-.931zm7.23-8.051a3.332 3.332 0 00-.466-1.453c-.277-.477-.687-.887-1.242-1.208-.554-.322-1.23-.488-2.03-.488-.964 0-1.773.288-2.439.853-.665.566-1.12 1.342-1.375 2.296h7.552z",fill:"#5F6368"});t.a=function SvgLogoSitekit(e){return r.createElement("svg",a({viewBox:"0 0 80 21",fill:"none"},e),i)}},31:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core/modules",a="insufficient_module_dependencies"},32:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(25),a=n.n(r),i=n(2),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(i){return e.createElement(t,a()({},i,n,{OriginalComponent:r}))}}}}).call(this,n(2))},334:function(e,t,n){"use strict";(function(e,t){var r=n(17),a=n(56),i=n(32),o=n(5),c=n(277),s=n(278),l=n(283),u=n(285),d=n(128),f=e._googlesitekitLegacyData.setup,g=Object(o.j)("notification"),p=Object(i.a)(t.createElement(c.a,null)),m=Object(i.a)(t.createElement(s.a,null)),h=Object(i.a)(t.createElement(l.a,null)),v=Object(i.a)(t.createElement(u.a,null)),b=Object(i.a)(t.createElement(d.a,null));Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",p,10),f.needReauthenticate&&Object(r.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",b,1),Object(a.b)("userInput")&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.UserInputSettings",v,1),"authentication_success"===g||"authentication_failure"===g||"user_input_success"===g?Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",m,1):f.isAuthenticated&&f.isVerified&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.ModulesNotification",h,1)}).call(this,n(18),n(2))},338:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return m}));var r=n(7),a=n.n(r),i=n(14),o=n.n(i),c=n(51),s=n.n(c),l=n(20),u=n(169),d=function(){var t=o()(a.a.mark((function t(){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.location.hostname,!["localhost","127.0.0.1"].includes(n)&&!n.match(/\.(example|invalid|localhost|test)$/)){t.next=3;break}throw u.f;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=function(e){return o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(l.c).checkForSetupTag();case 2:if(!t.sent.error){t.next=5;break}throw u.g;case 5:case"end":return t.stop()}}),t)})))},g=function(){var e=o()(a.a.mark((function e(){var t,n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.get("core","site","health-checks",void 0,{useCache:!1}).catch((function(e){if("fetch_error"===e.code)throw u.d;throw u.c}));case 2:if(null==(r=e.sent)||null===(t=r.checks)||void 0===t||null===(n=t.googleAPI)||void 0===n?void 0:n.pass){e.next=5;break}throw u.e;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(u.a).catch((function(){throw u.b}));case 2:if(e.sent.ok){e.next=5;break}throw u.b;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var t=o()(a.a.mark((function t(){var n,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e._googlesitekitBaseData||{},!((r=n.wpVersion)&&r.major<5)){t.next=3;break}throw u.h;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}).call(this,n(18))},344:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Checkbox}));var r=n(8),a=n.n(r),i=n(1),o=n.n(i);function Checkbox(t){var n=t.onChange,r=t.id,i=t.name,o=t.value,c=t.checked,s=t.disabled,l=t.children,u=t.tabIndex,d=t.onKeyDown;return e.createElement("div",{className:"mdc-form-field"},e.createElement("div",{className:a()("mdc-checkbox",{"mdc-checkbox--disabled":s})},e.createElement("input",{className:"mdc-checkbox__native-control",type:"checkbox",id:r,name:i,value:o,checked:c,disabled:s,onChange:n,tabIndex:u,onKeyDown:d}),e.createElement("div",{className:"mdc-checkbox__background"},e.createElement("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 24 24"},e.createElement("path",{className:"mdc-checkbox__checkmark-path",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})),e.createElement("div",{className:"mdc-checkbox__mixedmark"}))),e.createElement("label",{htmlFor:r},l))}Checkbox.propTypes={onChange:o.a.func.isRequired,onKeyDown:o.a.func,id:o.a.string.isRequired,name:o.a.string.isRequired,value:o.a.string.isRequired,checked:o.a.bool,disabled:o.a.bool,children:o.a.node.isRequired,tabIndex:o.a.oneOfType([o.a.number,o.a.string])},Checkbox.defaultProps={checked:!1,disabled:!1,tabIndex:void 0,onKeyDown:null}}).call(this,n(2))},350:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return OptIn}));var r=n(7),a=n.n(r),i=n(14),o=n.n(i),c=n(1),s=n.n(c),l=n(8),u=n.n(l),d=n(2),f=n(200),g=n(0),p=n(4),m=n.n(p),h=n(12),v=n(58),b=n(344),k=n(24),y=m.a.useSelect,_=m.a.useDispatch;function OptIn(t){var n=t.id,r=t.name,i=t.className,c=t.optinAction,s=y((function(e){return e(h.a).isTrackingEnabled()})),l=y((function(e){return e(h.a).isSavingTrackingEnabled()})),p=y((function(e){return e(h.a).getErrorForAction("setTrackingEnabled",[!s])})),m=_(h.a).setTrackingEnabled,E=Object(d.useCallback)(function(){var e=o()(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m(!!t.target.checked);case 2:n=e.sent,r=n.response,n.error||(Object(v.a)(r.enabled),r.enabled&&Object(v.b)("tracking_plugin",c));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[c,m]);return void 0===s?null:e.createElement("div",{className:u()("googlesitekit-opt-in",i)},e.createElement(b.a,{id:n,name:r,value:"1",checked:s,disabled:l,onChange:E},e.createElement("span",null,Object(g.__)("Help us improve Site Kit by sharing anonymous usage data.","google-site-kit")," "),e.createElement("span",null,Object(f.a)(Object(g.__)("All collected data is treated in accordance with the <a>Google Privacy Policy.</a>","google-site-kit"),{a:e.createElement(k.a,{key:"link",href:"https://policies.google.com/privacy",external:!0,inherit:!0})}))),(null==p?void 0:p.message)&&e.createElement("div",{className:"googlesitekit-error-text"},null==p?void 0:p.message))}OptIn.propTypes={id:s.a.string,name:s.a.string,className:s.a.string,optinAction:s.a.string},OptIn.defaultProps={id:"googlesitekit-opt-in",name:"optIn"}}).call(this,n(2))},364:function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(49),s=n.n(c),l=n(21),u=n.n(l),d=n(22),f=n.n(d),g=n(13),p=n.n(g),m=n(8),h=n.n(m),v=n(176),b=n(2),k=n(0),y=n(17),_=n(164),E=n(141);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var j=function(t){u()(NotificationCounter,t);var n=O(NotificationCounter);function NotificationCounter(e){var t;return a()(this,NotificationCounter),(t=n.call(this,e)).state={count:0},t.handleIncrement=t.handleIncrement.bind(s()(t)),t.handleDecrement=t.handleDecrement.bind(s()(t)),t}return o()(NotificationCounter,[{key:"componentDidMount",value:function(){var e=this;Object(y.a)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications",(function(){Object(y.f)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications"),Object(_.c)().then((function(t){e.setState({count:t})}))})),document.addEventListener("notificationDismissed",this.handleDecrement,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("notificationDismissed",this.handleDecrement)}},{key:"handleIncrement",value:function(){this.setState(_.d)}},{key:"handleDecrement",value:function(){this.setState(_.a)}},{key:"render",value:function(){var t=Object(k.sprintf)(
7
  /* translators: %d: the number of notifications */
8
- Object(k._n)("%d notification","%d notifications",this.state.count,"google-site-kit"),this.state.count),n=e.createElement("span",{className:h()("googlesitekit-notifications-counter","update-plugins","count-".concat(this.state.count))},e.createElement("span",{className:"plugin-count","aria-hidden":"true"},this.state.count),e.createElement(E.a,null,t));return Object(v.createPortal)(n,document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"))}}]),NotificationCounter}(b.Component);t.a=j}).call(this,n(2))},38:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return g}));var r=n(33),a=n.n(r),i=n(23),o=n(48),c=n(72),s="googlesitekit_legacy_1.34.0_",l=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){l(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(s+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(l(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(s+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},f=function(t){l(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(s+t)},g=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],s=0,l=o;s<l.length;s++){var u=l[s];if(!u||!u.length)break;i.push(u)}return 3===i.length&&r&&"object"===a()(r)&&Object.keys(r).length&&i.push(Object(c.a)(r)),i.join("::")}}).call(this,n(18))},4:function(e,t){e.exports=googlesitekit.data},40:function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(49),s=n.n(c),l=n(21),u=n.n(l),d=n(22),f=n.n(d),g=n(13),p=n.n(g),m=n(1),h=n.n(m),v=n(8),b=n.n(v),k=n(2),y=n(0),_=n(67),E=n(78),O=n(5);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var w=function(t){u()(DataBlock,t);var n=j(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(s()(t)),t.handleKeyPress=t.handleKeyPress.bind(s()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,s=t.context,l=t.period,u=t.selected,d=t.handleStatSelection,f=t.source,g=t.sparkline,p=t.invertChangeColor,m="button"===s?"button":"",h=g;h&&p&&(h=Object(k.cloneElement)(g,{invertChangeColor:p}));var v=o;c&&(v="%"===c?Object(O.r)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(O.r)(o,c)),l&&(v=Object(y.sprintf)(l,v));var j=a&&Object(O.r)(a,i||void 0);return e.createElement("div",{className:b()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(s),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===s?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},j)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:b()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(k.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(_.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},v))),f&&e.createElement(E.a,{className:"googlesitekit-data-block__source",name:f.name,href:f.link,external:null==f?void 0:f.external})))}}]),DataBlock}(k.Component);w.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},w.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=w}).call(this,n(2))},411:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityChecks}));var r=n(26),a=n.n(r),i=n(0),o=n(1),c=n.n(o),s=n(4),l=n.n(s),u=n(170),d=n(64),f=n(412),g=n(413),p=n(20),m=n(338),h=l.a.useRegistry;function CompatibilityChecks(t){var n=t.children,r=a()(t,["children"]),o=h(),c=Object(f.a)(function(e){return e.select(p.c).isConnected()?[]:[m.c,m.b,Object(m.e)(e),m.a,m.d]}(o)),s=c.complete,l=c.error,v=l&&e.createElement("div",{className:"googlesitekit-setup-compat mdc-layout-grid mdc-layout-grid--align-left"},e.createElement("div",{className:"googlesitekit-setup__warning"},e.createElement(u.a,null),e.createElement("div",{className:"googlesitekit-heading-4"},Object(i.__)("Your site may not be ready for Site Kit","google-site-kit"))),e.createElement(g.a,{error:l}));return n({props:r,complete:s,error:l,inProgressFeedback:!s&&e.createElement("div",{className:"googlesitekit-margin-left-1rem googlesitekit-align-self-center"},e.createElement("small",null,Object(i.__)("Checking Compatibility…","google-site-kit")),e.createElement(d.a,{small:!0,compress:!0})),ctaFeedback:v})}CompatibilityChecks.propTypes={children:c.a.func.isRequired}}).call(this,n(2))},412:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(7),a=n.n(r),i=n(14),o=n.n(i),c=n(11),s=n.n(c),l=n(326),u=n(2);function d(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e){var t=Object(u.useState)(e),n=s()(t,1)[0],r=Object(u.useState)(!(null==n?void 0:n.length)),i=s()(r,2),c=i[0],f=i[1],g=Object(u.useState)(void 0),p=s()(g,2),m=p[0],h=p[1];return Object(l.a)((function(){c||function(){var e=o()(a.a.mark((function e(){var t,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=d(n),e.prev=2,t.s();case 4:if((r=t.n()).done){e.next=10;break}return i=r.value,e.next=8,i();case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(0),h(e.t1);case 23:f(!0);case 24:case"end":return e.stop()}}),e,null,[[0,20],[2,12,15,18]])})));return function(){return e.apply(this,arguments)}}()()})),{complete:c,error:m}}},413:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityErrorNotice}));var r=n(25),a=n.n(r),i=n(0),o=n(4),c=n.n(o),s=n(75),l=n(24),u=n(20),d=n(169),f=c.a.useSelect;function CompatibilityErrorNotice(t){var n=t.error,r=f((function(e){return e(u.c).getDeveloperPluginState()}))||{},o=r.installed;switch(n){case d.c:return e.createElement("p",null,Object(i.__)("Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site.","google-site-kit"));case d.f:case d.d:return e.createElement("p",null,!o&&e.createElement("span",null,Object(i.__)("Looks like this may be a staging environment. If so, you’ll need to install a helper plugin and verify your production site in Search Console.","google-site-kit")),o&&e.createElement("span",null,Object(i.__)("Looks like this may be a staging environment and you already have the helper plugin. Before you can use Site Kit, please make sure you’ve provided the necessary credentials in the Authentication section and verified your production site in Search Console.","google-site-kit"))," ",e.createElement(l.a,a()({},function(e){var t=e.installed,n=e.active,r=e.installURL,a=e.activateURL,o=e.configureURL;return!t&&r?{"aria-label":Object(i.__)("Install the helper plugin","google-site-kit"),children:Object(i.__)("Install","google-site-kit"),href:r,external:!1}:t&&!n&&a?{"aria-label":Object(i.__)("Activate the helper plugin","google-site-kit"),children:Object(i.__)("Activate","google-site-kit"),href:a,external:!1}:t&&n&&o?{"aria-label":Object(i.__)("Configure the helper plugin","google-site-kit"),children:Object(i.__)("Configure","google-site-kit"),href:o,external:!1}:{"aria-label":Object(i.__)("Learn how to install and use the helper plugin","google-site-kit"),children:Object(i.__)("Learn how","google-site-kit"),href:"https://sitekit.withgoogle.com/documentation/using-site-kit-on-a-staging-environment/",external:!0}}(r),{inherit:!0})));case d.g:return e.createElement("p",null,Object(i.__)("Looks like you may be using a caching plugin which could interfere with setup. Please deactivate any caching plugins before setting up Site Kit. You may reactivate them once setup has been completed.","google-site-kit"));case d.e:return e.createElement("p",{dangerouslySetInnerHTML:Object(s.a)("\n\t\t\t\t\t\t".concat(Object(i.__)("Looks like your site is having a technical issue with requesting data from Google services.","google-site-kit"),"\n\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t").concat(Object(i.sprintf)(
9
  /* translators: %1$s: Support Forum URL, %2$s: Error message */
10
  Object(i.__)('To get more help, ask a question on our <a href="%1$s">support forum</a> and include the text of the original error message: %2$s',"google-site-kit"),"https://wordpress.org/support/plugin/google-site-kit/","<br/>".concat(n)),"\n\t\t\t\t\t\t"),{ALLOWED_TAGS:["a","br"],ALLOWED_ATTR:["href"]})});case d.b:return e.createElement("p",{dangerouslySetInnerHTML:Object(s.a)("\n\t\t\t\t\t\t".concat(Object(i.__)("Looks like the AMP CDN is restricted in your region, which could interfere with setup on the Site Kit service.","google-site-kit"),"\n\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t").concat(Object(i.sprintf)(
11
  /* translators: %1$s: Support Forum URL, %2$s: Error message */
@@ -26,4 +26,4 @@ Object(u._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?
26
  Object(u.__)("%sM","google-site-kit"),b(m(e),e%10==0?{}:t)):1e4<=e?Object(u.sprintf)(// translators: %s: an abbreviated number in thousands.
27
  Object(u.__)("%sK","google-site-kit"),b(m(e))):1e3<=e?Object(u.sprintf)(// translators: %s: an abbreviated number in thousands.
28
  Object(u.__)("%sK","google-site-kit"),b(m(e),e%10==0?{}:t)):b(e,{signDisplay:"never",maximumFractionDigits:1})},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(l.isFinite)(e)?e:Number(e),Object(l.isFinite)(e)||(console.warn("Invalid number",e,a()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return g(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(l.isPlainObject)(t)&&(n=f({},t))}var r=n,i=r.style,o=void 0===i?"metric":i;return"metric"===o?h(e):"duration"===o?g(e,t):b(e,n)},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?y():n,a=s()(t,["locale"]);return new Intl.NumberFormat(r,a).format(e)},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?y():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:i,type:c});return s.format(e)}
29
- /* translators: used between list items, there is a space after the comma. */var l=Object(u.__)(", ","google-site-kit");return e.join(l)},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(l.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(18))},88:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core",a="modules"},89:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return b}));var r=n(7),a=n.n(r),i=n(14),o=n.n(i);n(37);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l,u="googlesitekit_".concat("1.34.0","_"),d=["sessionStorage","localStorage"],f=[].concat(d),g=function(){var t=o()(a.a.mark((function t(n){var r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",r.setItem(i,i),r.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),p=function(){var t=o()(a.a.mark((function t(){var n,r,i,o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==l){t.next=25;break}i=c(f),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(s=o.value,!l){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,g(s);case 12:if(!t.sent){t.next=14;break}l=e[s];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===l&&(l=null);case 25:return t.abrupt("return",l);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(a.a.mark((function e(t){var n,r,i,o,c,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(r),o=i.timestamp,c=i.ttl,s=i.value,l=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:s,isError:l});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var t=o()(a.a.mark((function t(n,r){var i,o,c,s,l,d,f,g,m=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,s=i.timestamp,l=void 0===s?Math.round(Date.now()/1e3):s,d=i.isError,f=void 0!==d&&d,t.next=3,p();case 3:if(!(g=t.sent)){t.next=14;break}return t.prev=5,g.setItem("".concat(u).concat(n),JSON.stringify({timestamp:l,ttl:c,value:r,isError:f})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),v=function(){var t=o()(a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(){var n,r,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(18))},931:function(e,t,n){"use strict";n.r(t),function(e){var t=n(300),r=n(176),a=n(5),i=(n(334),n(712)),o=n(205);Object(t.a)((function(){var t=document.getElementById("js-googlesitekit-activation");t&&(Object(a.w)("plugin_setup","plugin_activated"),Object(r.render)(e.createElement(o.a,{dataAPIContext:"Activation"},e.createElement(i.a,null)),t),t.classList.remove("googlesitekit-activation--loading"))}))}.call(this,n(2))},98:function(e,t,n){"use strict";function r(e){return new URL(e).pathname}function a(e,t){return new URL(t,e).href}function i(e){return e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}))}},[[931,1,0]]]);
1
+ (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[2],{0:function(e,t){e.exports=googlesitekit.i18n},101:function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,a,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},102:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(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)]}},103:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(229),a=n(67),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(r.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,a,i,o,c,s,l,u,d,f,g,p,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(s=c.metrics)||void 0===s||null===(l=s[0])||void 0===l||null===(u=l.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(g=f.totals)||void 0===g||null===(p=g[0])||void 0===p||null===(m=p.values)||void 0===m?void 0:m[0])}}).call(this,n(2))},104:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),a=n.n(r),i=n(105),o=n(106);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=s(s({},l),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,r)}}}).call(this,n(18))},105:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(66),a=n(44);function i(t,n){var i=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(r),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(18))},106:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var r=n(7),a=n.n(r),i=n(6),o=n.n(i),c=n(14),s=n.n(c),l=n(66),u=n(56);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(t,n,r){var i=Object(l.a)(n);return function(){var n=s()(a.a.mark((function n(o,c,s,l){var d,g,p,m,h,v,b,k;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=t.isFirstAdmin,m=t.referenceSiteURL,h=t.trackingEnabled,v=t.trackingID,b=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(g=d.ioo)||void 0===g?void 0:g.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return k={send_to:v,event_category:o,event_label:s,value:l,dimension1:m,dimension2:p?"true":"false",dimension3:b,dimension4:"1.34.1",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,f(f({},k),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,a){return n.apply(this,arguments)}}()}}).call(this,n(18))},107:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(146),a=n.n(r)()(e)}).call(this,n(18))},113:function(e,t,n){"use strict";(function(e){var r=n(35),a=n.n(r),i=n(154),o=e._googlesitekitAPIFetchData||{},c=o.nonce,s=o.nonceEndpoint,l=o.preloadedData,u=o.rootURL;a.a.nonceEndpoint=s,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(u),a.a.preloadingMiddleware=Object(i.a)(l),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,n(18))},12:function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o}));var r="core/user",a="connected_url_mismatch",i="googlesitekit_view_dashboard",o="googlesitekit_manage_options"},120:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSettingsWarning}));var r=n(4),a=n.n(r),i=n(31),o=n(8),c=n.n(o),s=n(177),l=a.a.useSelect;function ModuleSettingsWarning(t){var n=t.slug,r=l((function(e){var t;return null===(t=e(i.a))||void 0===t?void 0:t.getCheckRequirementsError(n)}));return r?e.createElement("div",{className:c()("googlesitekit-settings-module-warning","googlesitekit-settings-module-warning--modules-list")},e.createElement(s.a,{height:"20",width:"23"})," ",r.message):null}}).call(this,n(2))},124:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return b}));var r=n(26),a=n.n(r),i=n(6),o=n.n(i),c=n(7),s=n.n(c),l=n(10),u=n.n(l),d=n(4),f=n.n(d),g=n(89),p=f.a.createRegistryControl,m=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},r={deleteSnapshot:s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:s.a.mark((function e(){var t,n,r,a,i,o,c=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,r=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(a=e.sent,i=a.cacheHit,o=a.value,!i){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!r){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e)})),createSnapshot:s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},i=(t={},o()(t,"DELETE_SNAPSHOT",(function(){return Object(g.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",p((function(t){return function(){return Object(g.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(g.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:r,controls:i,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,r=t.type,i=t.payload;switch(r){case"SET_STATE_FROM_SNAPSHOT":var o=i.snapshot,c=(o.error,a()(o,["error"]));return c;default:return e}}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().createSnapshot()})))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().restoreSnapshot()})))}},128:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return UnsatisfiedScopesAlert}));var a=n(11),i=n.n(a),o=n(290),c=n.n(o),s=n(0),l=n(4),u=n.n(l),d=n(46),f=n(5),g=n(12),p=n(54),m=u.a.useSelect,h={siteverification:"site-verification",webmasters:"search-console"};function UnsatisfiedScopesAlert(){var t,n,a,o,l,u=m((function(e){return e(p.a).isNavigatingTo(/(\/o\/oauth2)|(action=googlesitekit_connect)/i)})),v=m((function(e){return e(g.a).getUnsatisfiedScopes()})),b=m((function(t){return t(g.a).getConnectURL({redirectURL:e.location.href})}));if(u||!(null==v?void 0:v.length)||void 0===b)return null;switch(v.some((function(e){return!e.match(/^https:\/\/www.googleapis.com\/auth\//)}))?t="generic":(a=v,o=Object(f.i)(),t=(n=a.map((function(e){return e.match(/^https:\/\/www.googleapis.com\/auth\/([a-z]+)/)})).map((function(e){var t=i()(e,2)[1];return h[t]||t})).map((function(e){var t;return(null===(t=o[e])||void 0===t?void 0:t.name)||!1}))).some((function(e){return!1===e}))?"generic":1<(n=c()(n)).length?"multiple":"single"),t){case"multiple":l=Object(s.sprintf)(
2
  /* translators: %s: List of product names */
3
  Object(s.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for: %s – make sure to approve all permissions at the authentication stage.","google-site-kit"),Object(f.o)(n));break;case"single":l=Object(s.sprintf)(
4
  /* translators: %1$s: Product name */
5
  Object(s.__)("Site Kit can’t access the relevant data from %1$s because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for %1$s – make sure to approve all permissions at the authentication stage.","google-site-kit"),n[0]);break;case"generic":l=Object(s.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup – make sure to approve all permissions at the authentication stage.","google-site-kit")}return r.createElement(d.a,{id:"authentication error",title:Object(s.__)("Site Kit can’t access necessary data","google-site-kit"),description:l,format:"small",type:"win-error",isDismissable:!1,ctaLink:b,ctaLabel:Object(s.__)("Redo setup","google-site-kit")})}}).call(this,n(18),n(2))},130:function(e,t,n){"use strict";var r=n(2),a=n(56),i=Object(r.createContext)(a.a);t.a=i},131:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Cell}));var r=n(25),a=n.n(r),i=n(6),o=n.n(i),c=n(26),s=n.n(c),l=n(1),u=n.n(l),d=n(8),f=n.n(d);function Cell(t){var n,r=t.className,i=t.alignTop,c=t.alignMiddle,l=t.alignBottom,u=t.alignRight,d=t.alignLeft,g=t.smSize,p=t.smStart,m=t.mdSize,h=t.mdStart,v=t.lgSize,b=t.lgStart,k=t.size,y=t.children,_=s()(t,["className","alignTop","alignMiddle","alignBottom","alignRight","alignLeft","smSize","smStart","mdSize","mdStart","lgSize","lgStart","size","children"]);return e.createElement("div",a()({},_,{className:f()(r,"mdc-layout-grid__cell",(n={"mdc-layout-grid__cell--align-top":i,"mdc-layout-grid__cell--align-middle":c,"mdc-layout-grid__cell--align-bottom":l,"mdc-layout-grid__cell--align-right":u,"mdc-layout-grid__cell--align-left":d},o()(n,"mdc-layout-grid__cell--span-".concat(k),12>=k&&k>0),o()(n,"mdc-layout-grid__cell--span-".concat(v,"-desktop"),12>=v&&v>0),o()(n,"mdc-layout-grid__cell--start-".concat(b,"-desktop"),12>=b&&b>0),o()(n,"mdc-layout-grid__cell--span-".concat(m,"-tablet"),8>=m&&m>0),o()(n,"mdc-layout-grid__cell--start-".concat(h,"-tablet"),8>=h&&h>0),o()(n,"mdc-layout-grid__cell--span-".concat(g,"-phone"),4>=g&&g>0),o()(n,"mdc-layout-grid__cell--start-".concat(p,"-phone"),4>=p&&p>0),n))}),y)}Cell.propTypes={smSize:u.a.number,smStart:u.a.number,mdSize:u.a.number,mdStart:u.a.number,lgSize:u.a.number,lgStart:u.a.number,size:u.a.number,alignTop:u.a.bool,alignMiddle:u.a.bool,alignBottom:u.a.bool,alignRight:u.a.bool,alignLeft:u.a.bool,className:u.a.string,children:u.a.node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,mdSize:0,mdStart:0,lgSize:0,lgStart:0}}).call(this,n(2))},132:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Row}));var r=n(25),a=n.n(r),i=n(26),o=n.n(i),c=n(1),s=n.n(c),l=n(8),u=n.n(l);function Row(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return e.createElement("div",a()({className:u()("mdc-layout-grid__inner",n)},i),r)}Row.propTypes={className:s.a.string,children:s.a.node},Row.defaultProps={className:""}}).call(this,n(2))},133:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Grid}));var r=n(25),a=n.n(r),i=n(26),o=n.n(i),c=n(1),s=n.n(c),l=n(8),u=n.n(l);function Grid(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return e.createElement("div",a()({className:u()("mdc-layout-grid",n)},i),r)}Grid.propTypes={className:s.a.string,children:s.a.node},Grid.defaultProps={className:""}}).call(this,n(2))},134:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(48),a=n(38),i=function(t,n,i){var o=Object(a.d)(t,n,i);Object(a.e)(),Object.keys(e._googlesitekitLegacyData.admin.datacache).forEach((function(t){0!==t.indexOf(o+"::")&&t!==o||delete e._googlesitekitLegacyData.admin.datacache[t]})),Object.keys(Object(r.a)()).forEach((function(e){0!==e.indexOf("".concat(a.a).concat(o,"::"))&&e!=="".concat(a.a).concat(o)||Object(r.a)().removeItem(e)}))}}).call(this,n(18))},137:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleIcon}));var r=n(25),a=n.n(r),i=n(26),o=n.n(i),c=n(1),s=n.n(c),l=n(4),u=n.n(l),d=n(31),f=u.a.useSelect;function ModuleIcon(t){var n=t.slug,r=t.size,i=o()(t,["slug","size"]),c=f((function(e){return e(d.a).getModuleIcon(n)}));return c?e.createElement(c,a()({width:r,height:r},i)):null}ModuleIcon.propTypes={slug:s.a.string.isRequired,size:s.a.number},ModuleIcon.defaultProps={size:33}}).call(this,n(2))},141:function(e,t,n){"use strict";(function(e){var r=n(25),a=n.n(r),i=n(26),o=n.n(i),c=n(1),s=n.n(c),l=n(8),u=n.n(l);function VisuallyHidden(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return e.createElement("span",a()({},i,{className:u()("screen-reader-text",n)}),r)}VisuallyHidden.propTypes={className:s.a.string,children:s.a.node.isRequired},VisuallyHidden.defaultProps={className:""},t.a=VisuallyHidden}).call(this,n(2))},144:function(e,t,n){"use strict";var r=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{d:"M2.253 12.252l7.399 5.658A13.055 13.055 0 009 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22.02 22.02 0 010 22c0-3.506.81-6.814 2.253-9.748z",fill:"#FBBC05"}),r.createElement("path",{d:"M9.652 17.91l-7.4-5.658A21.935 21.935 0 0122 0c5.6 0 10.6 2.1 14.5 5.5l-6.4 6.4C27.9 10.1 25.1 9 22 9c-5.77 0-10.64 3.725-12.348 8.91z",fill:"#EA4335"}),r.createElement("path",{d:"M2.25 31.742l7.396-5.67A12.975 12.975 0 0022 35c6.1 0 10.7-3.1 11.8-8.5H22V18h20.5c.3 1.3.5 2.7.5 4 0 14-10 22-21 22A21.935 21.935 0 012.25 31.742z",fill:"#34A853"}),r.createElement("path",{d:"M36.34 38.52l-7.025-5.437c2.297-1.45 3.895-3.685 4.485-6.583H22V18h20.5c.3 1.3.5 2.7.5 4 0 7.17-2.623 12.767-6.66 16.52z",fill:"#4285F4"}));t.a=function SvgLogoG(e){return r.createElement("svg",a({viewBox:"0 0 43 44"},e),i)}},154:function(e,t,n){"use strict";var r=n(152);t.a=function(e){var t=Object.keys(e).reduce((function(t,n){return t[Object(r.getStablePath)(n)]=e[n],t}),{}),n=!1;return function(e,a){if(n)return a(e);setTimeout((function(){n=!0}),1e3);var i=e.parse,o=void 0===i||i,c=e.path;if("string"==typeof e.path){var s,l=(null===(s=e.method)||void 0===s?void 0:s.toUpperCase())||"GET",u=Object(r.getStablePath)(c);if(o&&"GET"===l&&t[u]){var d=Promise.resolve(t[u].body);return delete t[u],d}if("OPTIONS"===l&&t[l]&&t[l][u]){var f=Promise.resolve(t[l][u]);return delete t[l][u],f}}return a(e)}}},155:function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(13),f=n.n(d),g=n(2),p=n(46);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var h=function(t){s()(GenericError,t);var n=m(GenericError);function GenericError(){return a()(this,GenericError),n.apply(this,arguments)}return o()(GenericError,[{key:"render",value:function(){return e.createElement(p.a,this.props)}}]),GenericError}(g.Component);t.a=h}).call(this,n(2))},156:function(e,t,n){"use strict";(function(e){var r=n(1),a=n.n(r),i=n(299),o=n.n(i),c=n(8),s=n.n(c),l=n(294),u=n(2),d=n(0),f=n(43),g=n(24),p=n(19),m=n(191),h=function Dialog(t){var n=t.dialogActive,r=t.handleDialog,a=t.title,i=t.provides,c=t.handleConfirm,h=t.subtitle,v=t.confirmButton,b=t.dependentModules,k=t.danger,y=t.inProgress,_=void 0!==y&&y,E=Object(u.useCallback)((function(e){null!==e&&p.e.attachTo(e)}),[]),O=Object(l.a)(Dialog),j="googlesitekit-dialog-label-".concat(O),w="googlesitekit-dialog-description-".concat(O),S=!(!i||!i.length);return e.createElement("div",{ref:E,className:s()("mdc-dialog",{"mdc-dialog--open":n}),role:"alertdialog","aria-modal":"true","aria-labelledby":a?j:void 0,"aria-describedby":S?w:void 0,"aria-hidden":n?"false":"true",tabIndex:"-1"},e.createElement("div",{className:"mdc-dialog__scrim"}," "),e.createElement(o.a,{active:n},e.createElement("div",null,e.createElement("div",{className:"mdc-dialog__container"},e.createElement("div",{className:"mdc-dialog__surface"},a&&e.createElement("h2",{id:j,className:"mdc-dialog__title"},a),h&&e.createElement("p",{className:"mdc-dialog__lead"},h),S&&e.createElement("section",{id:w,className:"mdc-dialog__content"},e.createElement("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive"},i.map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t},e.createElement("span",{className:"mdc-list-item__text"},t))})))),b&&e.createElement("p",{className:"mdc-dialog__dependecies"},e.createElement("strong",null,Object(d.__)("Note: ","google-site-kit")),b),e.createElement("footer",{className:"mdc-dialog__actions"},e.createElement(f.a,{onClick:c,danger:k,disabled:_},v||Object(d.__)("Disconnect","google-site-kit")),e.createElement(m.a,{isSaving:_}),e.createElement(g.a,{className:"googlesitekit-margin-left-auto mdc-dialog__cancel-button",onClick:r,inherit:!0,disabled:_},Object(d.__)("Cancel","google-site-kit"))))))))};h.displayName="Dialog",h.propTypes={dialogActive:a.a.bool,handleDialog:a.a.func,handleConfirm:a.a.func.isRequired,title:a.a.string,description:a.a.string,confirmButton:a.a.string,danger:a.a.bool},h.defaultProps={dialogActive:!1,handleDialog:null,title:null,description:null,confirmButton:null,danger:!1},t.a=h}).call(this,n(2))},159:function(e,t,n){"use strict";var r=n(11),a=n.n(r),i=n(312),o=n(2),c=n(176);t.a=function Modal(e){var t=e.children,n=Object(o.useState)(document.createElement("div")),r=a()(n,1)[0];return Object(i.a)((function(){var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(r),function(){return e.removeChild(r)}})),Object(c.createPortal)(t,r)}},161:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AuthError}));var r=n(0),a=n(4),i=n.n(a),o=n(12),c=n(46),s=i.a.useSelect;function AuthError(){var t=s((function(e){return e(o.a).getAuthError()}));return t?e.createElement(c.a,{id:"autherror",title:Object(r.__)("Site Kit can’t access necessary data","google-site-kit"),description:t.message,ctaLink:t.data.reconnectURL,ctaLabel:Object(r.__)("Redo the plugin setup","google-site-kit")}):null}}).call(this,n(2))},164:function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v}));var r=n(7),a=n.n(r),i=n(14),o=n.n(i),c=n(17),s=n(28),l=n(38),u=(Object(c.c)("googlesitekit.winCallbacks",{}),function(){return Object(c.c)("googlesitekit.ModulesNotificationsRequest",[])});function d(){return f.apply(this,arguments)}function f(){return(f=o()(a.a.mark((function t(){var n,r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=e._googlesitekitLegacyData.setup).isSiteKitConnected&&(n.isAuthenticated||n.isVerified)){t.next=3;break}return t.abrupt("return",0);case 3:return r=0,t.next=6,p();case 6:return(i=t.sent)&&i.total&&(r+=i.total),r=Object(c.c)("googlesitekit.TotalNotifications",r),r=Math.max(0,Math.abs(r)),e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",r),t.abrupt("return",r);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var g=function(e){return e?e.length?e.filter((function(e){return!Object(l.c)("notification::dismissed::".concat(e.id))})):e:[]};function p(){return m.apply(this,arguments)}function m(){return(m=o()(a.a.mark((function e(){var t,n,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},n=0,e.next=4,u();case 4:return r=e.sent,i=[],r.map(function(){var e=o()(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new Promise(function(){var e=o()(a.a.mark((function e(n){var r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.identifier,e.t0=g,e.next=4,s.c.get(s.b,r,"notifications",{},!1);case 4:e.t1=e.sent,i=(0,e.t0)(e.t1),n({identifier:r,notifications:i});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),i.push(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=9,Promise.all(i).then((function(e){e.forEach((function(e){e.notifications.length&&(n+=e.notifications.length,t[e.identifier]=e.notifications)}))}));case 9:return e.abrupt("return",{results:t,total:n});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var h=function(t){var n=Math.abs(t.count)+1;return e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",n),{count:n}},v=function(t){var n=Math.max(0,Math.abs(t.count)-1);return e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",n),{count:n}}}).call(this,n(18))},169:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return u}));var r="https://cdn.ampproject.org/v0.js",a="amp_cdn_restricted",i="check_api_unavailable",o="check_fetch_failed",c="google_api_connection_fail",s="invalid_hostname",l="setup_token_mismatch",u="wp_pre_v5"},170:function(e,t,n){"use strict";(function(e){t.a=function Warning(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#F9BB2D",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),e.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))}}).call(this,n(2))},171:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(7),a=n.n(r),i=n(14),o=n.n(i),c=n(5),s=["fetch_error"];function l(e){return u.apply(this,arguments)}function u(){return(u=o()(a.a.mark((function e(t){var n,r,i,o,l,u,d,f;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.method,o=t.type,l=t.identifier,u=t.datapoint,(d=t.error)&&!s.includes(null==d?void 0:d.code)){e.next=3;break}return e.abrupt("return");case 3:return f="code: ".concat(d.code),(null===(n=d.data)||void 0===n?void 0:n.reason)&&(f+=", reason: ".concat(d.data.reason)),e.next=7,Object(c.w)("api_error","".concat(i,":").concat(o,"/").concat(l,"/data/").concat(u),"".concat(d.message," (").concat(f,")"),(null===(r=d.data)||void 0===r?void 0:r.status)||d.code);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},174:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureTours}));var r=n(1),a=n.n(r),i=n(4),o=n.n(i),c=n(12),s=n(212),l=o.a.useSelect;function FeatureTours(t){var n=t.viewContext,r=l((function(e){var t;return null===(t=e(c.a).getFeatureToursForView(n))||void 0===t?void 0:t[0]})),a=l((function(e){return e(c.a).areFeatureToursOnCooldown()}));return!r||a?null:e.createElement(s.a,{tourID:r.slug,steps:r.steps,gaEventCategory:r.gaEventCategory})}FeatureTours.propTypes={viewContext:a.a.string}}).call(this,n(2))},177:function(e,t,n){"use strict";var r=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M3.332 24.75h21.335c2.182 0 3.542-2.366 2.451-4.25L16.451 2.07C15.36.184 12.64.184 11.549 2.07L.882 20.5c-1.091 1.884.269 4.25 2.45 4.25zM14 14.833a1.42 1.42 0 01-1.417-1.416v-2.834c0-.779.638-1.416 1.417-1.416.78 0 1.417.637 1.417 1.416v2.834A1.42 1.42 0 0114 14.833zm1.417 5.667h-2.834v-2.833h2.834V20.5z",fill:"#EA4336",fillRule:"nonzero"});t.a=function SvgError(e){return r.createElement("svg",a({viewBox:"0 0 28 25"},e),i)}},182:function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m}));var r=n(7),a=n.n(r),i=n(14),o=n.n(i),c=n(28);function s(){return l.apply(this,arguments)}function l(){return(l=o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.c.get(c.a,"site","notifications",{},!1);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var u=n(58);function d(e,t){return f.apply(this,arguments)}function f(){return(f=o()(a.a.mark((function e(t,n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c.c.invalidateCacheGroup(c.a,"site","notifications"),e.next=3,Object(u.b)("site_notifications",n,t);case 3:return e.next=5,c.c.set(c.a,"site","mark-notification",{notificationID:t,notificationState:n});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return p.apply(this,arguments)}function p(){return(p=o()(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(t,"accepted");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return h.apply(this,arguments)}function h(){return(h=o()(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(t,"dismissed");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},185:function(e,t,n){"use strict";(function(e){t.a=function Error(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#EA4336",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"error-title error-desc"},e.createElement("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"}))}}).call(this,n(2))},19:function(e,t,n){"use strict";var r=n(110),a=n.n(r);n.d(t,"n",(function(){return a.a})),n.d(t,"c",(function(){return r.HelperText})),n.d(t,"d",(function(){return r.Input}));var i=n(218);n.d(t,"i",(function(){return i.a}));var o=n(305);n.d(t,"f",(function(){return o.a}));var c=n(306);n.d(t,"h",(function(){return c.a}));var s=n(136),l=n.n(s);n.d(t,"m",(function(){return l.a})),n.d(t,"k",(function(){return s.Option}));var u=n(307);n.d(t,"j",(function(){return u.a}));var d=n(304);n.d(t,"e",(function(){return d.a}));var f=n(303);n.d(t,"g",(function(){return f.a}));var g=n(69);n.d(t,"a",(function(){return g.a})),n.d(t,"b",(function(){return g.b})),n.d(t,"l",(function(){return g.c}))},191:function(e,t,n){"use strict";(function(e){t.a=function Spinner(t){var n=t.isSaving;return e.createElement("span",{className:"spinner",style:{display:n?"inline-block":"none",float:"none",marginTop:"0",visibility:"visible"}})}}).call(this,n(2))},198:function(e,t,n){"use strict";var r=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M14 1.41L12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7 14 1.41z",fill:"#fff"});t.a=function SvgClose(e){return r.createElement("svg",a({viewBox:"0 0 14 14",fill:"none"},e),i)}},20:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r="core/site",a="primary",i="secondary"},205:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Root}));var r=n(1),a=n.n(r),i=n(4),o=n.n(i),c=n(206),s=n(207),l=n(56),u=n(208),d=n(209),f=n(210),g=n(211);function Root(t){var n=t.children,r=t.registry,a=t.viewContext,i=void 0===a?null:a,p=t.dataAPIContext,m=t.dataAPIModuleArgs;return e.createElement(o.a.RegistryProvider,{value:r},e.createElement(s.a,{value:l.a},e.createElement(c.a,{viewContext:i},e.createElement(d.a,null,n,i&&e.createElement(g.a,{viewContext:i}),p&&e.createElement(f.a,{context:p,args:m})),e.createElement(u.a,null))))}Root.propTypes={children:a.a.node.isRequired,registry:a.a.object,viewContext:a.a.string,dataAPIContext:a.a.string,dataAPIModuleArgs:a.a.object},Root.defaultProps={registry:o.a}}).call(this,n(2))},206:function(e,t,n){"use strict";(function(e,r){var a=n(15),i=n.n(a),o=n(16),c=n.n(o),s=n(49),l=n.n(s),u=n(21),d=n.n(u),f=n(22),g=n.n(f),p=n(13),m=n.n(p),h=n(298),v=n.n(h),b=n(1),k=n.n(b),y=n(2),_=n(0),E=n(295),O=n(360),j=n(361),w=n(46),S=n(24),D=n(43),x=n(5);function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}var C=function(t){d()(ErrorHandler,t);var n=N(ErrorHandler);function ErrorHandler(e){var t;return i()(this,ErrorHandler),(t=n.call(this,e)).state={error:null,info:null,copied:!1},t.onErrorClick=t.onErrorClick.bind(l()(t)),t}return c()(ErrorHandler,[{key:"componentDidCatch",value:function(t,n){var r=this.props.viewContext,a=void 0===r?"unknown":r;e.console.error("Caught an error:",t,n),this.setState({error:t,info:n}),Object(x.w)("react_error","handle_".concat(a,"_error"),"".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack).slice(0,500))}},{key:"onErrorClick",value:function(){var e=this.state,t=e.error,n=e.info;v()("`".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack,"`")),this.setState({copied:!0})}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.error,a=t.info,i=t.copied;if(!n)return e;var o=r.createElement(E.a,{className:"mdc-button__icon",icon:i?O.a:j.a});return r.createElement(w.a,{id:"googlesitekit-error",title:Object(_.__)("Site Kit encountered an error","google-site-kit"),description:r.createElement(y.Fragment,null,r.createElement(D.a,{trailingIcon:o,onClick:this.onErrorClick},Object(_.__)("Copy error to clipboard","google-site-kit")),r.createElement(S.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(_.__)("Report this problem","google-site-kit"))),isDismissable:!1,format:"small",type:"win-error"},r.createElement("pre",{className:"googlesitekit-overflow-auto"},n.message,a.componentStack))}}]),ErrorHandler}(y.Component);C.propTypes={children:k.a.node.isRequired},t.a=C}).call(this,n(18),n(2))},207:function(e,t,n){"use strict";var r=n(130),a=(r.a.Consumer,r.a.Provider);t.a=a},208:function(e,t,n){"use strict";(function(e,r){var a=n(7),i=n.n(a),o=n(14),c=n.n(o),s=n(0),l=n(2),u=n(4),d=n.n(u),f=n(12),g=n(54),p=n(124),m=n(156),h=n(159),v=d.a.useSelect,b=d.a.useDispatch,k=d.a.useRegistry;t.a=function PermissionsModal(){var t,n,a,o=k(),u=v((function(e){return e(f.a).getPermissionScopeError()})),d=v((function(t){var n;return t(f.a).getConnectURL({additionalScopes:null==u||null===(n=u.data)||void 0===n?void 0:n.scopes,redirectURL:e.location.href})})),y=b(f.a).clearPermissionScopeError,_=b(g.a).navigateTo,E=Object(l.useCallback)((function(){y()}),[y]),O=Object(l.useCallback)(c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(p.c)(o);case 2:_(d);case 3:case"end":return e.stop()}}),e)}))),[o,d,_]);return Object(l.useEffect)((function(){(function(){var e=c()(i.a.mark((function e(){var t,n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null==u||null===(t=u.data)||void 0===t?void 0:t.skipModal)||!(null==u||null===(n=u.data)||void 0===n||null===(r=n.scopes)||void 0===r?void 0:r.length)){e.next=3;break}return e.next=3,O();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[O,u]),u?(null==u||null===(t=u.data)||void 0===t||null===(n=t.scopes)||void 0===n?void 0:n.length)?(null==u||null===(a=u.data)||void 0===a?void 0:a.skipModal)?null:r.createElement(h.a,null,r.createElement(m.a,{title:Object(s.__)("Additional Permissions Required","google-site-kit"),subtitle:u.message,confirmButton:Object(s.__)("Proceed","google-site-kit"),dialogActive:!0,handleConfirm:O,handleDialog:E})):(e.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",u),null):null}}).call(this,n(18),n(2))},209:function(e,t,n){"use strict";var r=n(7),a=n.n(r),i=n(14),o=n.n(i),c=n(11),s=n.n(c),l=n(2),u=n(4),d=n.n(u),f=n(124),g=d.a.useRegistry;t.a=function RestoreSnapshots(e){var t=e.children,n=g(),r=Object(l.useState)(!1),i=s()(r,2),c=i[0],u=i[1];return Object(l.useEffect)((function(){c||o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(f.b)(n);case 2:u(!0);case 3:case"end":return e.stop()}}),e)})))()}),[n,c]),c?t:null}},210:function(e,t,n){"use strict";n.d(t,"a",(function(){return CollectModuleData}));var r=n(2),a=n(17),i=(n(28),n(4)),o=n.n(i),c=n(12),s=o.a.useSelect;function CollectModuleData(e){var t=e.context,n=e.args,i=s((function(e){return e(c.a).getDateRange()}));return Object(r.useEffect)((function(){return function(){return Object(a.d)("googlesitekit.moduleDataReset")}}),[i]),Object(r.useEffect)((function(){Object(a.d)("googlesitekit.moduleLoaded",t,n)}),[t,n,i]),null}},211:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureToursDesktop}));var r=n(6),a=n.n(r),i=n(162),o=n(174);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FeatureToursDesktop(t){return Object(i.a)()<783?null:e.createElement(o.a,t)}FeatureToursDesktop.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o.a.propTypes)}).call(this,n(2))},212:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return TourTooltips}));var a=n(6),i=n.n(a),o=n(326),c=n(47),s=n(1),l=n.n(s),u=n(0),d=n(4),f=n.n(d),g=n(52),p=n(12),m=n(58),h=n(213);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var b=f.a.useSelect,k=f.a.useDispatch,y={options:{arrowColor:"#1A73E8",backgroundColor:"#1A73E8",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#ffffff"}},_={back:Object(u.__)("Back","google-site-kit"),close:Object(u.__)("Close","google-site-kit"),last:Object(u.__)("Got it","google-site-kit"),next:Object(u.__)("Next","google-site-kit")},E={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},O="feature_tooltip_view",j="feature_tooltip_advance",w="feature_tooltip_return",S="feature_tooltip_dismiss",D="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,a=t.tourID,s=t.gaEventCategory,l="".concat(a,"-step"),u="".concat(a,"-run"),d=k(g.a).setValue,f=k(p.a).dismissTour,x=b((function(e){return e(g.a).getValue(l)})),N=b((function(e){return e(g.a).getValue(u)&&!1===e(p.a).isTourDismissed(a)}));Object(o.a)((function(){d(u,!0)}));var C=n.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));return r.createElement(c.e,{callback:function(t){!function(e){var t=e.index,n=e.action,r=e.lifecycle,a=e.size,i=e.status,o=e.type,l=t+1;o===c.b.TOOLTIP&&r===c.c.TOOLTIP?Object(m.b)(s,O,l):n===c.a.CLOSE&&r===c.c.COMPLETE?Object(m.b)(s,S,l):n===c.a.NEXT&&i===c.d.FINISHED&&o===c.b.TOUR_END&&a===l&&Object(m.b)(s,D,l),r===c.c.COMPLETE&&i!==c.d.FINISHED&&(n===c.a.PREV&&Object(m.b)(s,w,l),n===c.a.NEXT&&Object(m.b)(s,j,l))}(t);var n=t.action,r=t.index,i=t.status,o=t.step,u=t.type,g=n===c.a.CLOSE,p=!g&&[c.b.STEP_AFTER,c.b.TARGET_NOT_FOUND].includes(u),h=[c.d.FINISHED,c.d.SKIPPED].includes(i),v=g&&u===c.b.STEP_AFTER,b=h||v;if(c.b.STEP_BEFORE===u){var k,y,_=o.target;"string"==typeof o.target&&(_=e.document.querySelector(o.target)),null===(k=_)||void 0===k||null===(y=k.scrollIntoView)||void 0===y||y.call(k,{block:"center"})}p?function(e,t){d(l,e+(t===c.a.PREV?-1:1))}(r,n):b&&f(a)},continuous:!0,disableOverlayClose:!0,disableScrolling:!0,floaterProps:E,locale:_,run:N,showProgress:!0,stepIndex:x,steps:C,styles:y,tooltipComponent:h.a})}TourTooltips.propTypes={steps:l.a.arrayOf(l.a.object).isRequired,tourID:l.a.string.isRequired,gaEventCategory:l.a.string.isRequired}}).call(this,n(18),n(2))},213:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TourTooltip}));var r=n(25),a=n.n(r),i=n(204),o=n.n(i),c=n(8),s=n.n(c),l=n(1),u=n.n(l),d=n(214),f=n(198),g=n(43);function TourTooltip(t){var n=t.backProps,r=t.closeProps,c=t.index,l=t.primaryProps,u=t.size,p=t.step,m=t.tooltipProps,h=u>1?Object(d.a)(u):[],v=function(e){return s()("googlesitekit-tooltip-indicator",{active:e===c})};return e.createElement("div",a()({className:"googlesitekit-tour-tooltip"},m),e.createElement(o.a,{className:"googlesitekit-tooltip-card"},e.createElement("div",{className:"googlesitekit-tooltip-body"},e.createElement("h2",{className:"googlesitekit-tooltip-title"},p.title),e.createElement("div",{className:"googlesitekit-tooltip-content"},p.content)),e.createElement(i.CardActions,{className:"googlesitekit-tooltip-actions"},e.createElement("ul",{className:"googlesitekit-tooltip-indicators"},h.map((function(t){return e.createElement("li",{key:"indicator-".concat(t),className:v(t)})}))),e.createElement("div",{className:"googlesitekit-tooltip-buttons"},0!==c&&e.createElement(g.a,a()({className:"googlesitekit-tooltip-button",text:!0},n),n.title),e.createElement(g.a,a()({className:"googlesitekit-tooltip-button",text:!0},l),l.title))),e.createElement(g.a,a()({className:"googlesitekit-tooltip-close",text:!0,icon:e.createElement(f.a,{width:"14",height:"14"})},r))))}TourTooltip.propTypes={backProps:u.a.object.isRequired,closeProps:u.a.object.isRequired,index:u.a.number.isRequired,isLastStep:u.a.bool.isRequired,primaryProps:u.a.object.isRequired,size:u.a.number.isRequired,step:u.a.shape({content:u.a.node.isRequired,title:u.a.node.isRequired}).isRequired,tooltipProps:u.a.object.isRequired}}).call(this,n(2))},214:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return new Array(null!=e?e:0).fill().map((function(e,t){return t}))}},24:function(e,t,n){"use strict";(function(e){var r=n(25),a=n.n(r),i=n(26),o=n.n(i),c=n(1),s=n.n(c),l=n(8),u=n.n(l),d=n(0);function Link(t){var n=t.href,r=t.children,i=t.className,c=t.arrow,s=t.external,l=t.hideExternalIndicator,f=t.inverse,g=t.back,p=t.small,m=t.inherit,h=t.caps,v=t.danger,b=t.disabled,k=t["aria-label"],y=o()(t,["href","children","className","arrow","external","hideExternalIndicator","inverse","back","small","inherit","caps","danger","disabled","aria-label"]),_=n&&!b,E=_?"a":"button";return e.createElement(E,a()({className:u()("googlesitekit-cta-link",i,{"googlesitekit-cta-link--arrow":c,"googlesitekit-cta-link--external":s&&!l,"googlesitekit-cta-link--inverse":f,"googlesitekit-cta-link--back":g,"googlesitekit-cta-link--small":p,"googlesitekit-cta-link--inherit":m,"googlesitekit-cta-link--caps":h,"googlesitekit-cta-link--danger":v,"googlesitekit-cta-link--disabled":b}),href:_?n:void 0,target:_&&s?"_blank":void 0,rel:s?"noopener noreferrer":void 0,disabled:b,"aria-label":function(){var e=k;if(!s)return e;"string"==typeof r&&(e=e||r);var t=Object(d._x)("(opens in a new tab)","screen reader text","google-site-kit");return e?"".concat(e," ").concat(t):t}()},y),r)}Link.propTypes={dangerouslySetInnerHTML:s.a.shape({__html:s.a.string}),onClick:s.a.func,href:s.a.string,children:s.a.oneOfType([s.a.string.isRequired,s.a.array.isRequired,s.a.element.isRequired]),className:s.a.string,arrow:s.a.bool,external:s.a.bool,hideExternalIndicator:s.a.bool,inverse:s.a.bool,back:s.a.bool,small:s.a.bool,inherit:s.a.bool,caps:s.a.bool,danger:s.a.bool,disabled:s.a.bool},Link.defaultProps={dangerouslySetInnerHTML:void 0,onClick:null,href:"",className:"",arrow:!1,external:!1,hideExternalIndicator:!1,inverse:!1,back:!1,small:!1,inherit:!1,caps:!1,danger:!1,disabled:!1},t.a=Link}).call(this,n(2))},246:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserInputSettings}));var r=n(1),a=n.n(r),i=n(294),o=n(0),c=n(4),s=n.n(c),l=n(46),u=n(5),d=n(12),f=n(20),g=n(286),p=s.a.useSelect;function UserInputSettings(t){var n=t.onCTAClick,r=t.onDismiss,a=t.isDismissable,c=Object(i.a)(UserInputSettings),s=p((function(e){return e(f.c).getAdminURL("googlesitekit-user-input")}));return"completed"===p((function(e){return e(d.a).getUserInputState()}))?null:e.createElement(l.a,{id:"user-input-settings-notification-".concat(c),className:"googlesitekit-user-input__notification",title:Object(o.__)("Customize Site Kit to match your goals","google-site-kit"),description:Object(o.__)("Answer 5 questions and Site Kit will customize your dashboard with specific metrics and opportunities that match your site’s goals","google-site-kit"),format:"large",dismissExpires:3*Object(u.l)("hour"),ctaLink:s,ctaLabel:Object(o.__)("Let’s go","google-site-kit"),onCTAClick:n,dismiss:Object(o.__)("Remind me later","google-site-kit"),WinImageSVG:g.a,isDismissable:a,onDismiss:r})}UserInputSettings.propTypes={onCTAClick:a.a.func,onDismiss:a.a.func,isDismissable:a.a.bool}}).call(this,n(2))},277:function(e,t,n){"use strict";(function(e){var r=n(7),a=n.n(r),i=n(14),o=n.n(i),c=n(15),s=n.n(c),l=n(16),u=n.n(l),d=n(21),f=n.n(d),g=n(22),p=n.n(g),m=n(13),h=n.n(m),v=n(2),b=n(0),k=n(182),y=n(46);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var a=h()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var E=function(t){f()(DashboardCoreSiteAlerts,t);var n,r=_(DashboardCoreSiteAlerts);function DashboardCoreSiteAlerts(e){var t;return s()(this,DashboardCoreSiteAlerts),(t=r.call(this,e)).state={notifications:!1},t}return u()(DashboardCoreSiteAlerts,[{key:"componentDidMount",value:(n=o()(a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(k.c)();case 3:t=e.sent,this.setState({notifications:t}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.warn("Error caught while fetching notifications",e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return n.apply(this,arguments)})},{key:"render",value:function(){var t=this.state.notifications;return Array.isArray(t)?t.map((function(t){return e.createElement(y.a,{key:t.id,id:t.id,title:t.title||"",description:t.content||"",learnMoreURL:t.learnMoreURL||"",learnMoreLabel:t.learnMoreLabel||"",ctaLink:t.ctaURL||"",ctaLabel:t.ctaLabel||"",ctaTarget:t.ctaTarget||"",dismiss:t.dismissLabel||Object(b.__)("OK, Got it!","google-site-kit"),isDismissable:t.dismissible,onCTAClick:o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(k.a)(t.id);case 2:case"end":return e.stop()}}),e)}))),onDismiss:o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(k.b)(t.id);case 2:case"end":return e.stop()}}),e)})))})})):null}}]),DashboardCoreSiteAlerts}(v.Component);t.a=E}).call(this,n(2))},278:function(e,t,n){"use strict";(function(e,r){var a=n(15),i=n.n(a),o=n(16),c=n.n(o),s=n(21),l=n.n(s),u=n(22),d=n.n(u),f=n(13),g=n.n(f),p=n(2),m=n(0),h=n(17),v=n(5),b=n(46),k=n(279),y=n(280),_=n(281);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return d()(this,n)}}var O=function(t){l()(DashboardSetupAlerts,t);var n=E(DashboardSetupAlerts);function DashboardSetupAlerts(){return i()(this,DashboardSetupAlerts),n.apply(this,arguments)}return c()(DashboardSetupAlerts,[{key:"render",value:function(){var t=Object(v.j)("notification");if(!t||""===t)return null;var n={id:"connected-successfully",setupTitle:Object(m.__)("Site Kit","google-site-kit"),description:Object(m.__)("Now you’ll be able to see how your site is doing in search. To get even more detailed stats, activate more modules. Here are our recommendations for what to include in your Site Kit:","google-site-kit"),learnMore:{label:"",url:"",description:""}},a=e._googlesitekitLegacyData.permissions.canManageOptions;switch(t){case"authentication_success":if(!a)return null;var i=Object(v.i)(),o=Object(v.j)("slug");return o&&i[o]&&!i[o].active?null:(o&&i[o]&&(n.id="".concat(n.id,"-").concat(o),n.setupTitle=i[o].name,n.description=Object(m.__)("Here are some other services you can connect to see even more stats:","google-site-kit"),n=Object(h.c)("googlesitekit.SetupWinNotification-".concat(o),n)),r.createElement(p.Fragment,null,r.createElement(b.a,{id:n.id
6
  /* translators: %s: the name of a module that setup was completed for */,title:Object(m.sprintf)(Object(m.__)("Congrats on completing the setup for %s!","google-site-kit"),n.setupTitle),description:n.description,handleDismiss:function(){},WinImageSVG:y.a,dismiss:Object(m.__)("OK, Got it!","google-site-kit"),format:"large",type:"win-success",learnMoreLabel:n.learnMore.label,learnMoreDescription:n.learnMore.description,learnMoreURL:n.learnMore.url,anchorLink:"pagespeed-insights"===o?"#googlesitekit-pagespeed-header":"",anchorLinkLabel:"pagespeed-insights"===o?Object(m.__)("Jump to the bottom of the dashboard to see how fast your home page is","google-site-kit"):""},r.createElement(k.a,{moduleSlugs:["search-console","adsense","analytics","pagespeed-insights"]}))));case"authentication_failure":return r.createElement(p.Fragment,null,r.createElement(b.a,{id:"connection error",title:Object(m.__)("There was a problem connecting to Google!","google-site-kit"),description:"",handleDismiss:function(){},format:"small",type:"win-error"}));case"user_input_success":return r.createElement(_.a,null)}}}]),DashboardSetupAlerts}(p.Component);t.a=O}).call(this,n(18),n(2))},279:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(7),o=n.n(i),c=n(14),s=n.n(c),l=n(8),u=n.n(l),d=n(2),f=n(0),g=n(5),p=n(4),m=n.n(p),h=n(24),v=n(137),b=n(155),k=n(120),y=n(141),_=n(31),E=n(54);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=m.a.useSelect,S=m.a.useDispatch;t.a=function ModulesList(t){var n=t.moduleSlugs,r=S(_.a).activateModule,i=S(E.a).navigateTo,c=w((function(e){return e(_.a).getModules()})),l=Object(d.useCallback)(function(){var e=s()(o.a.mark((function e(t){var n,a,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(t);case 2:if(n=e.sent,a=n.response,!(c=n.error)){e.next=8;break}return Object(g.u)(b.a,{id:"setup-module-error",title:Object(f.__)("Internal Server Error","google-site-kit"),description:c.message,format:"small",type:"win-error"}),e.abrupt("return",null);case 8:return e.next=10,Object(g.w)("".concat(t,"_setup"),"module_activate",t);case 10:i(a.moduleReauthURL);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[r,i]);if(!c)return null;var p=Array.isArray(n)&&n.length?n.filter((function(e){return c.hasOwnProperty(e)})).reduce((function(e,t){return j(j({},e),{},a()({},t,c[t]))}),{}):c,m=Object.values(p).filter((function(e){return!e.internal&&0===e.dependencies.length})).sort((function(e,t){return e.order-t.order}));return e.createElement("div",{className:"googlesitekit-modules-list"},m.map((function(t){var n=t.slug,r=t.name,a=t.connected,i=t.active,o=a&&i;return e.createElement("div",{key:n,className:u()("googlesitekit-modules-list__module","googlesitekit-modules-list__module--".concat(n))},e.createElement("div",{className:"googlesitekit-settings-connect-module__wrapper"},e.createElement("div",{className:"googlesitekit-settings-connect-module__logo"},e.createElement(v.a,{slug:n})),e.createElement("h3",{className:"googlesitekit-settings-connect-module__title"},r)),e.createElement(k.a,{slug:n,context:"modules-list"}),o&&e.createElement("span",{className:"googlesitekit-settings-module__status"},e.createElement("span",{className:"googlesitekit-settings-module__status-icon googlesitekit-settings-module__status-icon--connected"},e.createElement(y.a,null,Object(f.__)("Connected","google-site-kit"))),Object(f.__)("Connected","google-site-kit")),!o&&e.createElement(h.a,{onClick:function(){return l(n)},arrow:!0,small:!0,inherit:!0},Object(f.__)("Connect Service","google-site-kit")))})))}}).call(this,n(2))},28:function(e,t,n){"use strict";var r=n(11),a=n.n(r),i=n(23),o=n(113),c=n(99),s=n(17),l=n(32),u=n(84),d=n(73),f=n(161),g=n(128),p=n(38),m=n(88);n.d(t,"a",(function(){return m.a})),n.d(t,"b",(function(){return m.b}));var h=n(134),v=n(171),b={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],l=25;Object(i.each)(e,(function(e){e.key=Object(p.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(p.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),l),l+=25):r.push(e)})),r=Object(i.sortBy)(r,"priority");var f=[],g=[],m={},h=!!r.find((function(e){return e.priority<10}));Object(i.each)(r,(function(e,t){!n&&10<=e.priority&&h?g.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],f.push(e))}));var v=10,b=f.slice(0,v),k=f.slice(v);if(k=k.concat(g),0!==b.length||0!==k.length){0<k.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(k,!0)}),50):this.maxRequests=10;var y=null!==Object(u.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:y||void 0}),data:{request:b},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=a()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(d.d)(o)){var c=m[i][0],l=r[c],u=l.datapoint,f=l.type,g=l.identifier;t.handleWPError({method:"GET",datapoint:u,type:f,identifier:g,error:o})}else Object(p.f)(i,o);m[i].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===k.length&&Object(s.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(s.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,a=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(a),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(v.a)({method:t,datapoint:n,type:r,identifier:a,error:i});var o=i.data;if(o&&(o.reason||o.reconnectURL)){var c=0;["authError","insufficientPermissions"].includes(o.reason)&&(Object(s.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(l.b)(g.a),1),c++),o.reconnectURL&&(Object(s.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(l.b)(f.a),1),c++),c&&Object(s.b)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease",(function(e){return Object(s.g)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease"),e+c}))}},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:h.a,collectModuleData:function(e,t){var n=Object(s.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=Object(p.d)(e,t,n,a);if(!i){var l=Object(p.c)(s,3600);if(void 0!==l)return new Promise((function(e){e(l)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),a)}).then((function(e){return i||Object(p.f)(s,e),Promise.resolve(e)})).catch((function(a){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},set:function(e,t,n,r){var a=this,i={};return i.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(r){return b.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return a.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(m.a,"modules","activation",{slug:e,active:t})}};Object(s.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(s.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",b.collectModuleData.bind(b)),t.c=b},280:function(e,t,n){"use strict";var r=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{stroke:"#E8EAED",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:6,d:"M200 10v31.42M105 35.46l15.71 27.2M35.46 105l27.2 15.71M10 200h31.42M35.46 295l27.2-15.71M364.54 295l-27.2-15.71M390 200h-31.42M364.54 105l-27.2 15.71M295 35.46l-15.71 27.2"}),o=r.createElement("path",{d:"M251.2 51.21c-.67-1 10.33-9.56 11.16-10.16 5.81-4.22 12.64-8 19.94-8.46 7.91-.53 15.45 2.58 23 4.58 10.31 2.77 21.44 3.8 32.09 1.69 9.59-1.9 20.83-5.9 27.87-12.93-.24.24.3 2.83.33 3.18a65.31 65.31 0 010 8.51 59.1 59.1 0 01-7 25.06 43.41 43.41 0 01-18.94 18.13C329.14 86 317.78 88.93 307 93.41c-6.7 2.79-18.11 7.23-18.11 16.07z",fill:"#F439A0"}),c=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M248.83 47.55l93.63 144.69"}),s=r.createElement("path",{d:"M279.89 172.88c18.52 6.68 53.35 9.87 64.53-10.87 14.77-27.39-23.47-38.52-43.87-34.53M88.94 145C13 233.15 70 296.93 119 267.62",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:9}),l=r.createElement("path",{d:"M234.54 260.65c59.23 111 7.37 98-23.53 93.23l2 20.19M186.58 274.6c31.93 144.76-28.4 65.93-35.58 53.33l-12.25 14.36",stroke:"#188038",strokeLinejoin:"round",strokeWidth:9}),u=r.createElement("path",{d:"M234.54 260.65q3.92 7.32 7.19 14M186.58 274.6q2.19 9.88 3.81 18.42",stroke:"#137333",strokeLinejoin:"round",strokeWidth:9}),d=r.createElement("path",{fill:"#1E8E3E",d:"M170.71 172.85l-98 39.35 39.35 98 98-39.35 98-39.35-39.35-98-98 39.35z"}),f=r.createElement("path",{d:"M158.45 268.63c-16.25 2.37-32.52-5.2-43.75-18.63l83.92-22.8",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6}),g=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M316.62 152.31l25.84 39.93"});t.a=function SvgSuccessGreen(e){return r.createElement("svg",a({viewBox:"0 0 400 400",fill:"none"},e),i,o,c,s,l,u,d,f,g)}},281:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserInputSuccessNotification}));var r=n(0),a=n(2),i=n(46),o=n(282),c=n(5);function UserInputSuccessNotification(){Object(a.useEffect)((function(){Object(c.w)("user_input","success_notification_view")}),[]);return e.createElement(i.a,{id:"user-input-success",title:Object(r.__)("Congrats! You set your site goals","google-site-kit"),description:Object(r.__)("Now Site Kit will begin suggesting metrics to add to your dashboard that are relevant specifically to you, based on the goals you shared","google-site-kit"),SmallImageSVG:o.a,dismiss:Object(r.__)("OK, got it!","google-site-kit"),format:"small",onDismiss:function(){Object(c.w)("user_input","success_notification_dismiss")}})}}).call(this,n(2))},282:function(e,t,n){"use strict";var r=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("path",{d:"M154.32 135.43c-10.56 8.65-20.59 16.68-30.15 23.63-5.07 3.7-14.21-1.31-15.28-8.16-1.86-12.85-3-26.17-3.63-39.8-12.15-7.93-24.13-15.53-35.44-22.35-6.11-3.63-4.22-12.48 3-15.39 13.28-5.23 26.64-10.44 40-15.38 4.23-13.83 8.45-27.77 12.11-41.4 2-7.39 10.41-8.93 14.89-2.73 8.25 11.45 17.13 23 26 34.42 14.22-.1 28.56 0 42.84.22 7.73.18 12.64 7.79 8.2 13.35-8.15 10.38-16.67 21.73-25.21 33.45 4.25 13 7.89 25.84 10.7 38.51 1.43 6.79-5.34 14.71-11.39 13-11.49-3.06-23.71-7.03-36.64-11.37z",fill:"#FBBC04"}),c=r.createElement("path",{d:"M205.44 73.7c10.67 26.59 20.64 47.74 16.58 76.8-4.67 33.43-33.31 70.54-68.1 75.46-17.34 2.45-35.57-2.42-47.85-15-12-12.26-18.78-29.18-21.81-45.85-3.25-17.94-2.2-36.87 3.91-54.11a77.26 77.26 0 014.71-10.76",stroke:"#4285F4",strokeLinecap:"square",strokeLinejoin:"round",strokeWidth:6}),s=r.createElement("g",{clipPath:"url(#milestone-blue_svg__clip0)",strokeLinejoin:"round",strokeWidth:6},r.createElement("path",{d:"M151.73 225.81L144 246.63a35.18 35.18 0 00.07 24.7l6.51 12.51h-8.34",stroke:"#1967D2"}),r.createElement("path",{stroke:"#185ABC",d:"M151.73 225.81l-5.6 15.04"}),r.createElement("path",{stroke:"#1967D2",d:"M164.04 231.67v52.17h7.76"}),r.createElement("path",{stroke:"#185ABC",d:"M164.04 221.67v20.1"})),l=r.createElement("path",{d:"M161.08 235.06a36.17 36.17 0 0026.08-44L117.07 209a36.17 36.17 0 0044.01 26.06z",fill:"#1A73E8"}),u=r.createElement("path",{d:"M142.64 217.51c5.53 7.83 16.11 10.61 24.45 1.64M145.07 215.59c-2.58.66-2.41 3.54-5.51 4.88",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:3}),d=r.createElement("path",{stroke:"#FEEFC3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:6,d:"M101.3 47.04L75.8 22.68M60.45 68.72l-34.37-6.91M208.28 22.68l-18.86 17.87M265.17 73.7l-32.36 3.02M66.15 109.02l-49.01 15.36"}),f=r.createElement("defs",null,r.createElement("clipPath",{id:"milestone-blue_svg__clip0"},r.createElement("circle",{cx:150,cy:150,r:100})));t.a=function SvgMilestoneBlue(e){return r.createElement("svg",a({viewBox:"0 0 300 300",fill:"none"},e),i,o,c,s,l,u,d,f)}},283:function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(13),f=n.n(d),g=n(23),p=n(2),m=n(0),h=n(5),v=n(46),b=n(164),k=n(284);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var _=function(t){s()(DashboardModulesAlerts,t);var n=y(DashboardModulesAlerts);function DashboardModulesAlerts(e){var t;return a()(this,DashboardModulesAlerts),(t=n.call(this,e)).state={data:!1},t}return o()(DashboardModulesAlerts,[{key:"componentDidMount",value:function(){var e=this,t=Object(b.e)();t&&Object(b.b)(t).then((function(t){e.setState({data:t.results})}))}},{key:"render",value:function(){var t=this.state.data;if(0===Object.keys(t).length)return null;var n=Object(h.i)(),r=[];return Object.keys(t).forEach((function(a){Object(g.each)(t[a],(function(t){r.push(e.createElement(v.a,{key:t.id,id:t.id,title:t.title||"",description:t.description||"",blockData:t.blockData||[],WinImageSVG:function WinImageSVG(){return e.createElement(k.a,{height:"136"})},format:t.format||"small",learnMoreURL:t.learnMoreURL||"",learnMoreDescription:t.learnMoreDescription||"",learnMoreLabel:t.learnMoreLabel||"",ctaLink:t.ctaURL||"",ctaLabel:t.ctaLabel||"",ctaTarget:t.ctaTarget||"",type:t.severity||"",dismiss:t.dismiss||Object(m.__)("OK, Got it!","google-site-kit"),isDismissable:t.isDismissable||!0,logo:t.logo||!0,module:a,moduleName:n[a].name,pageIndex:t.pageIndex||"",dismissExpires:t.dismissExpires||0,showOnce:t.showOnce||!1}))}))})),e.createElement(p.Fragment,null,r)}}]),DashboardModulesAlerts}(p.Component);t.a=_}).call(this,n(2))},284:function(e,t,n){"use strict";var r=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("g",{clipPath:"url(#notification-alert_svg__clip0)",strokeMiterlimit:10,strokeWidth:15},r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15s44.18-11.1 65.14-20.18c9.91-4.3 20.07-8.62 30.85-9.31s22.46 2.9 28.7 11.71a24 24 0 013.78 17.65",stroke:"#4285F4"}),r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15",stroke:"#1A73E8"})),c=r.createElement("path",{stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33l-67.86 256.23"}),s=r.createElement("path",{stroke:"#A50E0E",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33L193.97 150"}),l=r.createElement("path",{d:"M221.3 13l-94.69 95.2a10 10 0 004.53 16.72L261 159.3a10 10 0 0012.18-12.3L238 17.39A10 10 0 00221.3 13z",fill:"#D93025"}),u=r.createElement("path",{d:"M137.37 111.56l87.36-87.87a3 3 0 015 1.33l32.42 119.6a3 3 0 01-3.66 3.68l-119.76-31.72a3 3 0 01-1.36-5.02z",stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:2}),d=r.createElement("path",{d:"M196.78 118.35a7.38 7.38 0 01-.78-5.84 7.25 7.25 0 013.56-4.64 7.46 7.46 0 015.83-.73 7.51 7.51 0 015.4 9.29 7.51 7.51 0 01-3.52 4.7 7.27 7.27 0 01-5.8.8 7.44 7.44 0 01-4.69-3.58zm12.05-46.1l5.56-21 10.82 2.87-5.55 21-8 25.41-8.6-2.28z",fill:"#FFF"}),f=r.createElement("path",{d:"M198.47 181.73a23.18 23.18 0 01-8.2 14.28c-9.2 7.58-24.24 6.67-32.46-2",stroke:"#4285F4",strokeMiterlimit:10,strokeWidth:15}),g=r.createElement("defs",null,r.createElement("clipPath",{id:"notification-alert_svg__clip0"},r.createElement("circle",{cx:150,cy:150,r:100})));t.a=function SvgNotificationAlert(e){return r.createElement("svg",a({viewBox:"0 0 300 300",fill:"none"},e),i,o,c,s,l,u,d,f,g)}},285:function(e,t,n){"use strict";(function(e){var r=n(2),a=n(5),i=n(246);t.a=function UserInputPromptNotification(){Object(r.useEffect)((function(){Object(a.w)("user_input","prompt_notification_view")}),[]);return e.createElement(i.a,{isDismissable:!0,onCTAClick:function(){Object(a.w)("user_input","prompt_notification_start")},onDismiss:function(){Object(a.w)("user_input","prompt_notification_dismiss")}})}}).call(this,n(2))},286:function(e,t,n){"use strict";var r=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M294.5 39.35h244.69v251.12a7.5 7.5 0 01-7.5 7.5H302a7.5 7.5 0 01-7.5-7.5V39.35z",fill:"#F1F3F4"}),o=r.createElement("path",{fill:"#FFF",stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:1.5,d:"M314.5 68.28h45.25v45.25H314.5zM314.5 146.04h45.25v45.25H314.5z"}),c=r.createElement("path",{d:"M313.38 145.1c14.28 17.62 17.8 21.42 32.08 39",stroke:"#9AA0A6",strokeLinejoin:"round",strokeWidth:5}),s=r.createElement("path",{fill:"#FFF",stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:1.5,d:"M314.5 223.79h45.25v45.25H314.5z"}),l=r.createElement("ellipse",{cx:149.01,cy:322.24,rx:72.28,ry:7.51,fill:"#F1F3F4"}),u=r.createElement("path",{d:"M302 10h229.69a7.5 7.5 0 017.5 7.5v21.85H294.5V17.5A7.5 7.5 0 01302 10z",fill:"#80868B"}),d=r.createElement("circle",{cx:314.91,cy:24.68,r:5.32,fill:"#FFF"}),f=r.createElement("circle",{cx:336.18,cy:24.68,r:5.32,fill:"#FFF"}),g=r.createElement("path",{d:"M232.78 231.28c42.24.91 55.06-20.59 39.78-70.34",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:8.03}),p=r.createElement("path",{d:"M158.93 241.76c-2.23 25.53-1.22 59.63 6.93 80.6H184M126.69 241.76c-2.29 25-.62 58.69 6.93 80.6H116.8",stroke:"#188038",strokeLinejoin:"round",strokeWidth:8.03}),m=r.createElement("path",{d:"M158.93 241.76a244.31 244.31 0 00-1 26.13M126.69 241.76c-.57 6.24-.9 17.52-1 23.59",stroke:"#137333",strokeLinejoin:"round",strokeWidth:8.03}),h=r.createElement("path",{d:"M36.83 277.33c-9.72-9.09-13.91-26.06-8.22-38.36 4.92-10.64 20.49-22.29 31.69-23.47",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:8.03}),v=r.createElement("path",{fill:"#1E8E3E",d:"M151.1 160.94l93.85 6.87-6.87 93.85-93.85-6.87-93.85-6.87 6.87-93.85 93.85 6.87z"}),b=r.createElement("path",{d:"M181.25 219.25c-18.11 15.64-48.49 18.13-68.47-5",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5.74}),k=r.createElement("path",{stroke:"#DADCE0",strokeLinejoin:"round",strokeWidth:20,d:"M380.07 90.91h139.12M380.07 168.66h139.12M380.07 246.42h139.12"}),y=r.createElement("path",{fill:"#FBBC04",d:"M319.603 184.523l-155.3-70.055 8.98-19.908 155.3 70.055z"}),_=r.createElement("path",{fill:"#DADCE0",d:"M328.59 164.62l25.17 22.94-34.15-3.03 8.98-19.91z"}),E=r.createElement("path",{fill:"#5F6368",d:"M344.35 186.72l9.41.84-6.92-6.29-2.49 5.45z"}),O=r.createElement("path",{d:"M164.22 114.43h.09L175 119.3l9-19.91-10.7-4.84h-.09a10.92 10.92 0 00-9 19.91z",fill:"#EE675C"}),j=r.createElement("path",{fill:"#DADCE0",d:"M176.772 120.092l-4.557-2.056 8.984-19.917 4.558 2.056z"}),w=r.createElement("path",{stroke:"#F29900",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:4,d:"M318.21 172.07l-130.15-58.71"}),S=r.createElement("path",{d:"M307.33 65.64a267 267 0 0064.05 58M312.39 117.93l40.77-54.45",stroke:"#9AA0A6",strokeLinejoin:"round",strokeWidth:5});t.a=function SvgUserInputPrompt(e){return r.createElement("svg",a({viewBox:"0 0 570 336",fill:"none"},e),i,o,c,s,l,u,d,f,g,p,m,h,v,b,k,y,_,E,O,j,w,S)}},287:function(e,t,n){"use strict";(function(e){var r=n(0),a=n(144),i=n(288),o=n(141);t.a=function Logo(){return e.createElement("div",{className:"googlesitekit-logo","aria-hidden":"true"},e.createElement(a.a,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),e.createElement(i.a,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),e.createElement(o.a,null,Object(r.__)("Site Kit by Google Logo","google-site-kit")))}}).call(this,n(2))},288:function(e,t,n){"use strict";var r=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M62.09 1.664h3.038v.1L58.34 9.593l7.241 10.224v.1H62.7L56.755 11.4 53.95 14.64v5.278h-2.351V1.664h2.35v9.415h.1l8.04-9.415zM69.984 3.117c0 .454-.166.853-.487 1.175-.322.322-.71.488-1.176.488-.455 0-.854-.166-1.175-.488a1.599 1.599 0 01-.488-1.175c0-.466.166-.854.488-1.176.321-.322.71-.488 1.175-.488.455 0 .854.166 1.176.488.332.333.487.72.487 1.176zm-.476 4.313v12.498h-2.351V7.43h2.35zM77.016 20.128c-1.02 0-1.864-.31-2.54-.943-.676-.632-1.02-1.508-1.031-2.628V9.57h-2.196V7.43h2.196V3.603h2.35V7.43h3.061v2.14h-3.06v6.222c0 .831.166 1.397.488 1.696.321.3.687.444 1.097.444.189 0 .366-.022.555-.067.188-.044.344-.1.499-.166l.743 2.096c-.632.222-1.342.333-2.162.333zM2.673 18.952C1.375 18.009.488 16.678 0 14.97l2.883-1.176c.289 1.076.799 1.94 1.542 2.628.732.677 1.619 1.02 2.65 1.02.965 0 1.774-.244 2.45-.742.677-.5 1.01-1.187 1.01-2.052 0-.798-.3-1.453-.887-1.974-.588-.521-1.62-1.042-3.094-1.564l-1.22-.432C4.025 10.224 2.928 9.57 2.04 8.716 1.153 7.862.71 6.742.71 5.346c0-.966.266-1.853.787-2.673C2.018 1.852 2.75 1.209 3.693.72 4.624.244 5.678 0 6.864 0c1.708 0 3.072.41 4.081 1.242 1.02.832 1.697 1.752 2.04 2.795L10.236 5.2c-.2-.621-.576-1.164-1.142-1.63-.565-.477-1.286-.71-2.173-.71s-1.641.222-2.251.676c-.61.455-.91 1.032-.91 1.742 0 .676.278 1.22.82 1.663.544.432 1.398.854 2.563 1.253l1.22.41c1.674.577 2.96 1.342 3.88 2.274.921.931 1.376 2.184 1.376 3.748 0 1.275-.322 2.34-.976 3.193a6.01 6.01 0 01-2.495 1.919 8.014 8.014 0 01-3.116.621c-1.62 0-3.072-.466-4.358-1.408zM15.969 3.449a1.95 1.95 0 01-.588-1.43c0-.566.2-1.043.588-1.431A1.95 1.95 0 0117.399 0c.566 0 1.043.2 1.43.588.389.388.588.865.588 1.43 0 .566-.2 1.043-.587 1.43a1.95 1.95 0 01-1.43.589c-.566-.012-1.043-.2-1.431-.588zm-.067 2.595h2.994v13.883h-2.994V6.044zM25.405 19.85c-.543-.2-.986-.466-1.33-.788-.776-.776-1.176-1.84-1.176-3.182V8.683h-2.428v-2.64h2.428V2.13h2.994v3.926h3.372v2.639h-3.372v6.531c0 .743.145 1.276.433 1.575.277.366.743.543 1.42.543.31 0 .576-.044.82-.122.233-.077.488-.21.765-.399v2.917c-.599.277-1.32.41-2.173.41a5.01 5.01 0 01-1.753-.3zM33.623 19.407a6.63 6.63 0 01-2.529-2.628c-.61-1.12-.909-2.373-.909-3.77 0-1.332.3-2.551.887-3.693.588-1.132 1.409-2.04 2.462-2.706 1.053-.666 2.251-1.01 3.593-1.01 1.397 0 2.606.311 3.637.921a6.123 6.123 0 012.34 2.528c.532 1.076.799 2.274.799 3.627 0 .255-.023.576-.078.953H33.179c.111 1.287.566 2.285 1.375 2.983a4.162 4.162 0 002.817 1.043c.854 0 1.597-.189 2.218-.588a4.266 4.266 0 001.508-1.597l2.528 1.198c-.654 1.142-1.508 2.04-2.561 2.694-1.054.655-2.318.976-3.782.976-1.364.022-2.584-.288-3.66-.931zm7.23-8.051a3.332 3.332 0 00-.466-1.453c-.277-.477-.687-.887-1.242-1.208-.554-.322-1.23-.488-2.03-.488-.964 0-1.773.288-2.439.853-.665.566-1.12 1.342-1.375 2.296h7.552z",fill:"#5F6368"});t.a=function SvgLogoSitekit(e){return r.createElement("svg",a({viewBox:"0 0 80 21",fill:"none"},e),i)}},31:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core/modules",a="insufficient_module_dependencies"},32:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(25),a=n.n(r),i=n(2),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(i){return e.createElement(t,a()({},i,n,{OriginalComponent:r}))}}}}).call(this,n(2))},334:function(e,t,n){"use strict";(function(e,t){var r=n(17),a=n(56),i=n(32),o=n(5),c=n(277),s=n(278),l=n(283),u=n(285),d=n(128),f=e._googlesitekitLegacyData.setup,g=Object(o.j)("notification"),p=Object(i.a)(t.createElement(c.a,null)),m=Object(i.a)(t.createElement(s.a,null)),h=Object(i.a)(t.createElement(l.a,null)),v=Object(i.a)(t.createElement(u.a,null)),b=Object(i.a)(t.createElement(d.a,null));Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",p,10),f.needReauthenticate&&Object(r.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",b,1),Object(a.b)("userInput")&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.UserInputSettings",v,1),"authentication_success"===g||"authentication_failure"===g||"user_input_success"===g?Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",m,1):f.isAuthenticated&&f.isVerified&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.ModulesNotification",h,1)}).call(this,n(18),n(2))},338:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return m}));var r=n(7),a=n.n(r),i=n(14),o=n.n(i),c=n(51),s=n.n(c),l=n(20),u=n(169),d=function(){var t=o()(a.a.mark((function t(){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.location.hostname,!["localhost","127.0.0.1"].includes(n)&&!n.match(/\.(example|invalid|localhost|test)$/)){t.next=3;break}throw u.f;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=function(e){return o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(l.c).checkForSetupTag();case 2:if(!t.sent.error){t.next=5;break}throw u.g;case 5:case"end":return t.stop()}}),t)})))},g=function(){var e=o()(a.a.mark((function e(){var t,n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.get("core","site","health-checks",void 0,{useCache:!1}).catch((function(e){if("fetch_error"===e.code)throw u.d;throw u.c}));case 2:if(null==(r=e.sent)||null===(t=r.checks)||void 0===t||null===(n=t.googleAPI)||void 0===n?void 0:n.pass){e.next=5;break}throw u.e;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(u.a).catch((function(){throw u.b}));case 2:if(e.sent.ok){e.next=5;break}throw u.b;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var t=o()(a.a.mark((function t(){var n,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e._googlesitekitBaseData||{},!((r=n.wpVersion)&&r.major<5)){t.next=3;break}throw u.h;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}).call(this,n(18))},344:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Checkbox}));var r=n(8),a=n.n(r),i=n(1),o=n.n(i);function Checkbox(t){var n=t.onChange,r=t.id,i=t.name,o=t.value,c=t.checked,s=t.disabled,l=t.children,u=t.tabIndex,d=t.onKeyDown;return e.createElement("div",{className:"mdc-form-field"},e.createElement("div",{className:a()("mdc-checkbox",{"mdc-checkbox--disabled":s})},e.createElement("input",{className:"mdc-checkbox__native-control",type:"checkbox",id:r,name:i,value:o,checked:c,disabled:s,onChange:n,tabIndex:u,onKeyDown:d}),e.createElement("div",{className:"mdc-checkbox__background"},e.createElement("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 24 24"},e.createElement("path",{className:"mdc-checkbox__checkmark-path",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})),e.createElement("div",{className:"mdc-checkbox__mixedmark"}))),e.createElement("label",{htmlFor:r},l))}Checkbox.propTypes={onChange:o.a.func.isRequired,onKeyDown:o.a.func,id:o.a.string.isRequired,name:o.a.string.isRequired,value:o.a.string.isRequired,checked:o.a.bool,disabled:o.a.bool,children:o.a.node.isRequired,tabIndex:o.a.oneOfType([o.a.number,o.a.string])},Checkbox.defaultProps={checked:!1,disabled:!1,tabIndex:void 0,onKeyDown:null}}).call(this,n(2))},350:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return OptIn}));var r=n(7),a=n.n(r),i=n(14),o=n.n(i),c=n(1),s=n.n(c),l=n(8),u=n.n(l),d=n(2),f=n(200),g=n(0),p=n(4),m=n.n(p),h=n(12),v=n(58),b=n(344),k=n(24),y=m.a.useSelect,_=m.a.useDispatch;function OptIn(t){var n=t.id,r=t.name,i=t.className,c=t.optinAction,s=y((function(e){return e(h.a).isTrackingEnabled()})),l=y((function(e){return e(h.a).isSavingTrackingEnabled()})),p=y((function(e){return e(h.a).getErrorForAction("setTrackingEnabled",[!s])})),m=_(h.a).setTrackingEnabled,E=Object(d.useCallback)(function(){var e=o()(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m(!!t.target.checked);case 2:n=e.sent,r=n.response,n.error||(Object(v.a)(r.enabled),r.enabled&&Object(v.b)("tracking_plugin",c));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[c,m]);return void 0===s?null:e.createElement("div",{className:u()("googlesitekit-opt-in",i)},e.createElement(b.a,{id:n,name:r,value:"1",checked:s,disabled:l,onChange:E},e.createElement("span",null,Object(g.__)("Help us improve Site Kit by sharing anonymous usage data.","google-site-kit")," "),e.createElement("span",null,Object(f.a)(Object(g.__)("All collected data is treated in accordance with the <a>Google Privacy Policy.</a>","google-site-kit"),{a:e.createElement(k.a,{key:"link",href:"https://policies.google.com/privacy",external:!0,inherit:!0})}))),(null==p?void 0:p.message)&&e.createElement("div",{className:"googlesitekit-error-text"},null==p?void 0:p.message))}OptIn.propTypes={id:s.a.string,name:s.a.string,className:s.a.string,optinAction:s.a.string},OptIn.defaultProps={id:"googlesitekit-opt-in",name:"optIn"}}).call(this,n(2))},364:function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(49),s=n.n(c),l=n(21),u=n.n(l),d=n(22),f=n.n(d),g=n(13),p=n.n(g),m=n(8),h=n.n(m),v=n(176),b=n(2),k=n(0),y=n(17),_=n(164),E=n(141);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var j=function(t){u()(NotificationCounter,t);var n=O(NotificationCounter);function NotificationCounter(e){var t;return a()(this,NotificationCounter),(t=n.call(this,e)).state={count:0},t.handleIncrement=t.handleIncrement.bind(s()(t)),t.handleDecrement=t.handleDecrement.bind(s()(t)),t}return o()(NotificationCounter,[{key:"componentDidMount",value:function(){var e=this;Object(y.a)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications",(function(){Object(y.f)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications"),Object(_.c)().then((function(t){e.setState({count:t})}))})),document.addEventListener("notificationDismissed",this.handleDecrement,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("notificationDismissed",this.handleDecrement)}},{key:"handleIncrement",value:function(){this.setState(_.d)}},{key:"handleDecrement",value:function(){this.setState(_.a)}},{key:"render",value:function(){var t=Object(k.sprintf)(
7
  /* translators: %d: the number of notifications */
8
+ Object(k._n)("%d notification","%d notifications",this.state.count,"google-site-kit"),this.state.count),n=e.createElement("span",{className:h()("googlesitekit-notifications-counter","update-plugins","count-".concat(this.state.count))},e.createElement("span",{className:"plugin-count","aria-hidden":"true"},this.state.count),e.createElement(E.a,null,t));return Object(v.createPortal)(n,document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"))}}]),NotificationCounter}(b.Component);t.a=j}).call(this,n(2))},38:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return g}));var r=n(33),a=n.n(r),i=n(23),o=n(48),c=n(72),s="googlesitekit_legacy_1.34.1_",l=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){l(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(s+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(l(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(s+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},f=function(t){l(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(s+t)},g=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],s=0,l=o;s<l.length;s++){var u=l[s];if(!u||!u.length)break;i.push(u)}return 3===i.length&&r&&"object"===a()(r)&&Object.keys(r).length&&i.push(Object(c.a)(r)),i.join("::")}}).call(this,n(18))},4:function(e,t){e.exports=googlesitekit.data},40:function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(49),s=n.n(c),l=n(21),u=n.n(l),d=n(22),f=n.n(d),g=n(13),p=n.n(g),m=n(1),h=n.n(m),v=n(8),b=n.n(v),k=n(2),y=n(0),_=n(67),E=n(78),O=n(5);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var w=function(t){u()(DataBlock,t);var n=j(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(s()(t)),t.handleKeyPress=t.handleKeyPress.bind(s()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,s=t.context,l=t.period,u=t.selected,d=t.handleStatSelection,f=t.source,g=t.sparkline,p=t.invertChangeColor,m="button"===s?"button":"",h=g;h&&p&&(h=Object(k.cloneElement)(g,{invertChangeColor:p}));var v=o;c&&(v="%"===c?Object(O.r)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(O.r)(o,c)),l&&(v=Object(y.sprintf)(l,v));var j=a&&Object(O.r)(a,i||void 0);return e.createElement("div",{className:b()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(s),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===s?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},j)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:b()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(k.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(_.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},v))),f&&e.createElement(E.a,{className:"googlesitekit-data-block__source",name:f.name,href:f.link,external:null==f?void 0:f.external})))}}]),DataBlock}(k.Component);w.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},w.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=w}).call(this,n(2))},411:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityChecks}));var r=n(26),a=n.n(r),i=n(0),o=n(1),c=n.n(o),s=n(4),l=n.n(s),u=n(170),d=n(64),f=n(412),g=n(413),p=n(20),m=n(338),h=l.a.useRegistry;function CompatibilityChecks(t){var n=t.children,r=a()(t,["children"]),o=h(),c=Object(f.a)(function(e){return e.select(p.c).isConnected()?[]:[m.c,m.b,Object(m.e)(e),m.a,m.d]}(o)),s=c.complete,l=c.error,v=l&&e.createElement("div",{className:"googlesitekit-setup-compat mdc-layout-grid mdc-layout-grid--align-left"},e.createElement("div",{className:"googlesitekit-setup__warning"},e.createElement(u.a,null),e.createElement("div",{className:"googlesitekit-heading-4"},Object(i.__)("Your site may not be ready for Site Kit","google-site-kit"))),e.createElement(g.a,{error:l}));return n({props:r,complete:s,error:l,inProgressFeedback:!s&&e.createElement("div",{className:"googlesitekit-margin-left-1rem googlesitekit-align-self-center"},e.createElement("small",null,Object(i.__)("Checking Compatibility…","google-site-kit")),e.createElement(d.a,{small:!0,compress:!0})),ctaFeedback:v})}CompatibilityChecks.propTypes={children:c.a.func.isRequired}}).call(this,n(2))},412:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(7),a=n.n(r),i=n(14),o=n.n(i),c=n(11),s=n.n(c),l=n(326),u=n(2);function d(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e){var t=Object(u.useState)(e),n=s()(t,1)[0],r=Object(u.useState)(!(null==n?void 0:n.length)),i=s()(r,2),c=i[0],f=i[1],g=Object(u.useState)(void 0),p=s()(g,2),m=p[0],h=p[1];return Object(l.a)((function(){c||function(){var e=o()(a.a.mark((function e(){var t,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=d(n),e.prev=2,t.s();case 4:if((r=t.n()).done){e.next=10;break}return i=r.value,e.next=8,i();case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(0),h(e.t1);case 23:f(!0);case 24:case"end":return e.stop()}}),e,null,[[0,20],[2,12,15,18]])})));return function(){return e.apply(this,arguments)}}()()})),{complete:c,error:m}}},413:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityErrorNotice}));var r=n(25),a=n.n(r),i=n(0),o=n(4),c=n.n(o),s=n(75),l=n(24),u=n(20),d=n(169),f=c.a.useSelect;function CompatibilityErrorNotice(t){var n=t.error,r=f((function(e){return e(u.c).getDeveloperPluginState()}))||{},o=r.installed;switch(n){case d.c:return e.createElement("p",null,Object(i.__)("Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site.","google-site-kit"));case d.f:case d.d:return e.createElement("p",null,!o&&e.createElement("span",null,Object(i.__)("Looks like this may be a staging environment. If so, you’ll need to install a helper plugin and verify your production site in Search Console.","google-site-kit")),o&&e.createElement("span",null,Object(i.__)("Looks like this may be a staging environment and you already have the helper plugin. Before you can use Site Kit, please make sure you’ve provided the necessary credentials in the Authentication section and verified your production site in Search Console.","google-site-kit"))," ",e.createElement(l.a,a()({},function(e){var t=e.installed,n=e.active,r=e.installURL,a=e.activateURL,o=e.configureURL;return!t&&r?{"aria-label":Object(i.__)("Install the helper plugin","google-site-kit"),children:Object(i.__)("Install","google-site-kit"),href:r,external:!1}:t&&!n&&a?{"aria-label":Object(i.__)("Activate the helper plugin","google-site-kit"),children:Object(i.__)("Activate","google-site-kit"),href:a,external:!1}:t&&n&&o?{"aria-label":Object(i.__)("Configure the helper plugin","google-site-kit"),children:Object(i.__)("Configure","google-site-kit"),href:o,external:!1}:{"aria-label":Object(i.__)("Learn how to install and use the helper plugin","google-site-kit"),children:Object(i.__)("Learn how","google-site-kit"),href:"https://sitekit.withgoogle.com/documentation/using-site-kit-on-a-staging-environment/",external:!0}}(r),{inherit:!0})));case d.g:return e.createElement("p",null,Object(i.__)("Looks like you may be using a caching plugin which could interfere with setup. Please deactivate any caching plugins before setting up Site Kit. You may reactivate them once setup has been completed.","google-site-kit"));case d.e:return e.createElement("p",{dangerouslySetInnerHTML:Object(s.a)("\n\t\t\t\t\t\t".concat(Object(i.__)("Looks like your site is having a technical issue with requesting data from Google services.","google-site-kit"),"\n\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t").concat(Object(i.sprintf)(
9
  /* translators: %1$s: Support Forum URL, %2$s: Error message */
10
  Object(i.__)('To get more help, ask a question on our <a href="%1$s">support forum</a> and include the text of the original error message: %2$s',"google-site-kit"),"https://wordpress.org/support/plugin/google-site-kit/","<br/>".concat(n)),"\n\t\t\t\t\t\t"),{ALLOWED_TAGS:["a","br"],ALLOWED_ATTR:["href"]})});case d.b:return e.createElement("p",{dangerouslySetInnerHTML:Object(s.a)("\n\t\t\t\t\t\t".concat(Object(i.__)("Looks like the AMP CDN is restricted in your region, which could interfere with setup on the Site Kit service.","google-site-kit"),"\n\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t").concat(Object(i.sprintf)(
11
  /* translators: %1$s: Support Forum URL, %2$s: Error message */
26
  Object(u.__)("%sM","google-site-kit"),b(m(e),e%10==0?{}:t)):1e4<=e?Object(u.sprintf)(// translators: %s: an abbreviated number in thousands.
27
  Object(u.__)("%sK","google-site-kit"),b(m(e))):1e3<=e?Object(u.sprintf)(// translators: %s: an abbreviated number in thousands.
28
  Object(u.__)("%sK","google-site-kit"),b(m(e),e%10==0?{}:t)):b(e,{signDisplay:"never",maximumFractionDigits:1})},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(l.isFinite)(e)?e:Number(e),Object(l.isFinite)(e)||(console.warn("Invalid number",e,a()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return g(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(l.isPlainObject)(t)&&(n=f({},t))}var r=n,i=r.style,o=void 0===i?"metric":i;return"metric"===o?h(e):"duration"===o?g(e,t):b(e,n)},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?y():n,a=s()(t,["locale"]);return new Intl.NumberFormat(r,a).format(e)},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?y():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:i,type:c});return s.format(e)}
29
+ /* translators: used between list items, there is a space after the comma. */var l=Object(u.__)(", ","google-site-kit");return e.join(l)},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(l.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(18))},88:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core",a="modules"},89:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return b}));var r=n(7),a=n.n(r),i=n(14),o=n.n(i);n(37);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l,u="googlesitekit_".concat("1.34.1","_"),d=["sessionStorage","localStorage"],f=[].concat(d),g=function(){var t=o()(a.a.mark((function t(n){var r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",r.setItem(i,i),r.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),p=function(){var t=o()(a.a.mark((function t(){var n,r,i,o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==l){t.next=25;break}i=c(f),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(s=o.value,!l){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,g(s);case 12:if(!t.sent){t.next=14;break}l=e[s];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===l&&(l=null);case 25:return t.abrupt("return",l);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(a.a.mark((function e(t){var n,r,i,o,c,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(r),o=i.timestamp,c=i.ttl,s=i.value,l=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:s,isError:l});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var t=o()(a.a.mark((function t(n,r){var i,o,c,s,l,d,f,g,m=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,s=i.timestamp,l=void 0===s?Math.round(Date.now()/1e3):s,d=i.isError,f=void 0!==d&&d,t.next=3,p();case 3:if(!(g=t.sent)){t.next=14;break}return t.prev=5,g.setItem("".concat(u).concat(n),JSON.stringify({timestamp:l,ttl:c,value:r,isError:f})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),v=function(){var t=o()(a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(){var n,r,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(18))},931:function(e,t,n){"use strict";n.r(t),function(e){var t=n(300),r=n(176),a=n(5),i=(n(334),n(712)),o=n(205);Object(t.a)((function(){var t=document.getElementById("js-googlesitekit-activation");t&&(Object(a.w)("plugin_setup","plugin_activated"),Object(r.render)(e.createElement(o.a,{dataAPIContext:"Activation"},e.createElement(i.a,null)),t),t.classList.remove("googlesitekit-activation--loading"))}))}.call(this,n(2))},98:function(e,t,n){"use strict";function r(e){return new URL(e).pathname}function a(e,t){return new URL(t,e).href}function i(e){return e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}))}},[[931,1,0]]]);
dist/assets/js/{googlesitekit-adminbar.c4f0205b5c4204ddd6c4.js → googlesitekit-adminbar.f0b440e2e0f502762627.js} RENAMED
@@ -2,7 +2,7 @@
2
  /* translators: 1: date for user stats, 2: previous date for user stats comparison */
3
  Object(l._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(x,L),A[n][0].toLocaleDateString(x,L)),s=Object(l.sprintf)(
4
  /* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
5
- Object(l._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),k[t],j[t](e[1]),i,Object(u.r)(Math.abs(r),"%"));D.push([e[0],'<div class="'.concat(c()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":r>0,"googlesitekit-visualization-tooltip--down":r<0}),'">\n\t\t\t\t<p>').concat(o,"</p>\n\t\t\t\t<p>").concat(s,"</p>\n\t\t\t</div>"),E?Object(u.c)(e[1]):e[1],E?Object(u.c)(A[n][1]):A[n][1]])}})),D}var N=function(e){if(!e||!e.length)return null;var t=e[0].data.rows,n=[[{type:"date",label:"Day"},{type:"number",label:"Users"},{type:"number",label:"Sessions"},{type:"number",label:"Goals Completed"}]];return Object(i.each)(t,(function(e){var t=e.metrics[0].values,a=e.dimensions[0],r=Object(g.a)(a);n.push([r,t[0],t[1],t[4]])})),n},P=function(e){var t;return e.error&&e.error.status?function(e,t){var n="";switch(e){case"INVALID_ARGUMENT":n=Object(l.__)("Analytics module needs to be configured.","google-site-kit");break;case"UNAUTHENTICATED":n=Object(l.__)("You need to be authenticated to get this data.","google-site-kit");break;case"PERMISSION_DENIED":n=Object(l.__)("Your account does not have sufficient permission to access this data, please consult to your web administrator.","google-site-kit");break;case"RESOURCE_EXHAUSTED":n=Object(l.__)("Your account exceeded the maximum quota. Please try again later.","google-site-kit");break;case"INTERNAL":n=Object(l.__)("Unexpected internal server error occurred.","google-site-kit");break;case"BACKEND_ERROR":n=Object(l.__)("Analytics server returned unknown error. Please try again later.","google-site-kit");break;case"UNAVAILABLE":n=Object(l.__)("The service was unable to process the request. Please try again later.","google-site-kit");break;default:n=t}return n}(e.error.status,e.error.message):!!(e.code&&e.message&&(null===(t=e.data)||void 0===t?void 0:t.status))&&e.message},A=function(e){if(!e||!e.length)return!0;if(e&&e[0]&&e[0].data&&e[0].data.totals&&e[0].data.totals[0]){var t=e[0].data.totals[0].values,n=!0;return Object(i.each)(t,(function(e){0!==parseInt(e,10)&&(n=!1)})),n}return!1},x={dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:adsenseRevenue",alias:"Earnings"},{expression:"ga:adsenseECPM",alias:"Page RPM"},{expression:"ga:adsensePageImpressions",alias:"Impressions"}],orderby:[{fieldName:"ga:adsenseRevenue",sortOrder:"DESCENDING"}],limit:10},L={compareDateRanges:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"}],limit:180},T={multiDateRange:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"},{expression:"ga:pageviews",alias:"Pageviews"}],limit:10},M={multiDateRange:1,metrics:[{expression:"ga:users",alias:"Total Users"}]},U={dimensions:"ga:channelGrouping",metrics:[{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:users",alias:"Users"},{expression:"ga:newUsers",alias:"New Users"}],orderby:[{fieldName:"ga:users",sortOrder:"DESCENDING"}],limit:10},I=function(){return{dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:pageviews",alias:"Pageviews"},{expression:"ga:uniquePageviews",alias:"Unique Pageviews"},{expression:"ga:bounceRate",alias:"Bounce rate"}],orderby:[{fieldName:"ga:pageviews",sortOrder:"DESCENDING"}],limit:10}},W=function(e){var t,n,a,r,i,o,c,l,s,u;return{totalUsers:null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(a=n.totals)||void 0===a||null===(r=a[0])||void 0===r||null===(i=r.values)||void 0===i?void 0:i[0],previousTotalUsers:null==e||null===(o=e[0])||void 0===o||null===(c=o.data)||void 0===c||null===(l=c.totals)||void 0===l||null===(s=l[1])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0]}}},function(e,t,n){"use strict";var a=n(11),r=n.n(a),i=n(23),o=n(113),c=n(99),l=n(17),s=n(32),u=n(84),d=n(73),g=n(161),f=n(128),p=n(38),m=n(88);n.d(t,"a",(function(){return m.a})),n.d(t,"b",(function(){return m.b}));var b=n(134),h=n(171),v={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=[],s=25;Object(i.each)(e,(function(e){e.key=Object(p.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(p.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),s),s+=25):a.push(e)})),a=Object(i.sortBy)(a,"priority");var g=[],f=[],m={},b=!!a.find((function(e){return e.priority<10}));Object(i.each)(a,(function(e,t){!n&&10<=e.priority&&b?f.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],g.push(e))}));var h=10,v=g.slice(0,h),y=g.slice(h);if(y=y.concat(f),0!==v.length||0!==y.length){0<y.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(y,!0)}),50):this.maxRequests=10;var _=null!==Object(u.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:_||void 0}),data:{request:v},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=r()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(d.d)(o)){var c=m[i][0],s=a[c],u=s.datapoint,g=s.type,f=s.identifier;t.handleWPError({method:"GET",datapoint:u,type:g,identifier:f,error:o})}else Object(p.f)(i,o);m[i].forEach((function(e){var n=a[e];t.resolve(n,o)})),0===y.length&&Object(l.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(l.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,a=e.type,r=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(a),"identifier:".concat(r),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(h.a)({method:t,datapoint:n,type:a,identifier:r,error:i});var o=i.data;if(o&&(o.reason||o.reconnectURL)){var c=0;["authError","insufficientPermissions"].includes(o.reason)&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(f.a),1),c++),o.reconnectURL&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(g.a),1),c++),c&&Object(l.b)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease",(function(e){return Object(l.g)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease"),e+c}))}},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:b.a,collectModuleData:function(e,t){var n=Object(l.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var a=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=Object(p.d)(e,t,n,r);if(!i){var s=Object(p.c)(l,3600);if(void 0!==s)return new Promise((function(e){e(s)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),r)}).then((function(e){return i||Object(p.f)(l,e),Promise.resolve(e)})).catch((function(r){return a.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},set:function(e,t,n,a){var r=this,i={};return i.data=a,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(a){return v.invalidateCacheGroup(e,t,n),new Promise((function(e){e(a)}))})).catch((function(a){return r.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},setModuleActive:function(e,t){return this.set(m.a,"modules","activation",{slug:e,active:t})}};Object(l.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(l.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",v.collectModuleData.bind(v)),t.c=v},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(8),o=n.n(i),c=n(184);function PreviewBlock(t){var n=t.className,a=t.width,r=t.height,i=t.shape,l=t.padding,s=t.smallWidth,u=t.smallHeight,d=t.tabletWidth,g=t.tabletHeight,f=t.desktopWidth,p=t.desktopHeight,m=Object(c.a)(),b=a,h=r;return"small"===m&&s&&u&&(b=s,h=u),"tablet"===m&&d&&g&&(b=d,h=g),("xlarge"===m||"desktop"===m)&&f&&p&&(b=f,h=p),e.createElement("div",{className:o()("googlesitekit-preview-block",n,{"googlesitekit-preview-block--padding":l}),style:{width:b,height:h}},e.createElement("div",{className:o()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===i})}))}PreviewBlock.propTypes={className:r.a.string,width:r.a.string,height:r.a.string,shape:r.a.string,padding:r.a.bool,smallWidth:r.a.string,smallHeight:r.a.string,tabletWidth:r.a.string,tabletHeight:r.a.string,desktopWidth:r.a.string,desktopHeight:r.a.string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0},t.a=PreviewBlock}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}));var a="modules/adsense",r=1},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="core/modules",r="insufficient_module_dependencies"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var a=n(25),r=n.n(a),i=n(2),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(a){return function InnerComponent(i){return e.createElement(t,r()({},i,n,{OriginalComponent:a}))}}}}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){var a=n(15),r=n.n(a),i=n(16),o=n.n(i),c=n(21),l=n.n(c),s=n(22),u=n.n(s),d=n(13),g=n.n(d),f=n(1),p=n.n(f),m=n(8),b=n.n(m),h=n(2),v=n(195),y=n(196);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var O=function(t){l()(Layout,t);var n=_(Layout);function Layout(){return r()(this,Layout),n.apply(this,arguments)}return o()(Layout,[{key:"render",value:function(){var t=this.props,n=t.header,a=t.footer,r=t.children,i=t.title,o=t.headerCTALabel,c=t.headerCTALink,l=t.footerCTALabel,s=t.footerCTALink,u=t.footerContent,d=t.className,g=t.fill,f=t.relative;return e.createElement("div",{className:b()("googlesitekit-layout",d,{"googlesitekit-layout--fill":g,"googlesitekit-layout--relative":f})},n&&e.createElement(v.a,{title:i,ctaLabel:o,ctaLink:c}),r,a&&e.createElement(y.a,{ctaLabel:l,ctaLink:s,footerContent:u}))}}]),Layout}(h.Component);O.propTypes={header:p.a.bool,footer:p.a.bool,children:p.a.node.isRequired,title:p.a.string,headerCTALabel:p.a.string,headerCTALink:p.a.string,footerCTALabel:p.a.string,footerCTALink:p.a.string,footerContent:p.a.node,className:p.a.string,fill:p.a.bool,relative:p.a.bool},O.defaultProps={header:!1,footer:!1,title:"",headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=O}).call(this,n(2))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}));var a="modules/search-console",r=1},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return f}));var a=n(33),r=n.n(a),i=n(23),o=n(48),c=n(72),l="googlesitekit_legacy_1.34.0_",s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==r()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==r()(n)||!n.error&&!n.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var a={value:n,date:Date.now()/1e3};Object(o.a)().setItem(l+t,JSON.stringify(a))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var a=JSON.parse(Object(o.a)().getItem(l+t));return a&&"object"===r()(a)&&a.date&&(!n||Date.now()/1e3-a.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(a.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},g=function(t){s(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(l+t)},f=function(e,t,n){for(var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],l=0,s=o;l<s.length;l++){var u=s[l];if(!u||!u.length)break;i.push(u)}return 3===i.length&&a&&"object"===r()(a)&&Object.keys(a).length&&i.push(Object(c.a)(a)),i.join("::")}}).call(this,n(18))},,function(e,t,n){"use strict";(function(e){var a=n(15),r=n.n(a),i=n(16),o=n.n(i),c=n(49),l=n.n(c),s=n(21),u=n.n(s),d=n(22),g=n.n(d),f=n(13),p=n.n(f),m=n(1),b=n.n(m),h=n(8),v=n.n(h),y=n(2),_=n(0),O=n(67),k=n(78),j=n(5);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=p()(e);if(t){var r=p()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return g()(this,n)}}var S=function(t){u()(DataBlock,t);var n=E(DataBlock);function DataBlock(e){var t;return r()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(l()(t)),t.handleKeyPress=t.handleKeyPress.bind(l()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,a=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||a(n)}},{key:"render",value:function(){var t=this.props,n=t.className,a=t.title,r=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,l=t.context,s=t.period,u=t.selected,d=t.handleStatSelection,g=t.source,f=t.sparkline,p=t.invertChangeColor,m="button"===l?"button":"",b=f;b&&p&&(b=Object(y.cloneElement)(f,{invertChangeColor:p}));var h=o;c&&(h="%"===c?Object(j.r)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(j.r)(o,c)),s&&(h=Object(_.sprintf)(s,h));var E=r&&Object(j.r)(r,i||void 0);return e.createElement("div",{className:v()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&a,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},a),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},E)),b&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},b),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:v()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(y.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(O.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},h))),g&&e.createElement(k.a,{className:"googlesitekit-data-block__source",name:g.name,href:g.link,external:null==g?void 0:g.external})))}}]),DataBlock}(y.Component);S.propTypes={stat:b.a.number,onClick:b.a.func,className:b.a.string,title:b.a.string,datapoint:b.a.oneOfType([b.a.string,b.a.number]),datapointUnit:b.a.string,change:b.a.oneOfType([b.a.string,b.a.number]),changeDataUnit:b.a.oneOfType([b.a.string,b.a.bool]),context:b.a.string,period:b.a.string,selected:b.a.bool,handleStatSelection:b.a.func,invertChangeColor:b.a.bool},S.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=S}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(25),r=n.n(a),i=n(11),o=n.n(i),c=n(15),l=n.n(c),s=n(16),u=n.n(s),d=n(49),g=n.n(d),f=n(21),p=n.n(f),m=n(22),b=n.n(m),h=n(13),v=n.n(h),y=n(293),_=n.n(y),O=n(125),k=n.n(O),j=n(17),E=n(2),S=n(0),D=n(4),w=n.n(D),R=n(5),C=n(94),N=n(112),P=n(188),A=n(88),x=n(12),L=n(236);function T(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=v()(e);if(t){var r=v()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return b()(this,n)}}var I=w.a.withSelect,W=k()(R.v);t.a=function(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{inGrid:!1,fullWidth:!1,createGrid:!1},c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e){if(e&&e.error)return e.error.message?e.error.message:e.error.errors&&e.error.errors[0]&&e.error.errors[0].message?e.error.errors[0].message:Object(S.__)("Unidentified error","google-site-kit");if(e&&e.errors&&e.errors[0]&&e.errors[0].message)return e.errors[0].message;if(e&&e.error_data){var t=Object.values(e.error_data);if(t[0]&&"RateLimitExceeded"===t[0].reason)return Object(S.__)("Too many requests have been sent within a given time span. Please reload this page again in a few seconds.","google-site-kit")}if(e&&e.errors){var n=Object.values(e.errors);if(n[0]&&n[0][0])return n[0][0]}return!!(e.code&&e.message&&e.data&&e.data.status)&&e.message},d=n.reduce((function(e,t){return _()(t.context).forEach((function(n){e[n]=e[n]||[],e[n].push(t)})),e}),{}),f=function(n){p()(NewComponent,n);var f=U(NewComponent);function NewComponent(e){var t;return l()(this,NewComponent),(t=f.call(this,e)).state={data:!1,zeroData:!1,errorMessage:!1,moduleRequiringSetup:""},t.handleModuleDataReset=t.handleModuleDataReset.bind(g()(t)),t.handleReturnedData=t.handleReturnedData.bind(g()(t)),t.addDataRequests=t.addDataRequests.bind(g()(t)),t.removeDataRequests=t.removeDataRequests.bind(g()(t)),t}return u()(NewComponent,[{key:"componentDidMount",value:function(){Object(j.a)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.addDataRequests()}},{key:"componentWillUnmount",value:function(){Object(j.f)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.removeDataRequests()}},{key:"handleModuleDataReset",value:function(){this.removeDataRequests(),this.addDataRequests(),this.setState({data:!1,errorMessage:!1,zeroData:!1})}},{key:"addDataRequests",value:function(){var e=this,t=this.props.dateRange;Object.entries(d).forEach((function(n){var a=o()(n,2),r=a[0],i=a[1];Object(j.b)("googlesitekit.module".concat(r,"DataRequest"),"googlesitekit.withData.".concat(W(i)),(function(n){var a,r=Object(R.i)(),o=[],c=T(i);try{var l=function(){var n,i,c=a.value,l=c||{},s=l.type,u=l.identifier;if(A.b===s&&!(null===(n=r[u])||void 0===n?void 0:n.setupComplete))return e.setState({moduleRequiringSetup:u,moduleRequiringActivation:!(null===(i=r[u])||void 0===i?void 0:i.active)}),"continue";var d=Object(L.a)(c,t);d.callback=function(t){e.handleReturnedData(t,c)},o.push(d)};for(c.s();!(a=c.n()).done;)l()}catch(e){c.e(e)}finally{c.f()}return n.concat(o)}))}))}},{key:"removeDataRequests",value:function(){Object.entries(d).forEach((function(e){var t=o()(e,2),n=t[0],a=t[1];Object(j.g)("googlesitekit.module".concat(n,"DataRequest"),"googlesitekit.withData.".concat(W(a)))}))}},{key:"handleReturnedData",value:function(e,t){var n=this.props,a=n.handleDataError,r=n.handleDataSuccess,i=t.datapoint,o=t.identifier,l=t.toState,u=s(e);u?(this.setState({errorMessage:u,errorObj:e,module:o}),a&&a(u,e)):c(e,i,t)?(a&&a(u,e),this.setState({zeroData:!0})):r&&r(),this.setState({requestDataToState:l,data:e,datapoint:i,module:o})}},{key:"render",value:function(){var n=this.state,o=n.data,c=n.datapoint,l=n.module,s=n.zeroData,u=n.errorMessage,d=n.errorObj,g=n.requestDataToState,f=n.moduleRequiringSetup;if(n.moduleRequiringActivation)return Object(P.b)(f,i.inGrid,i.fullWidth,i.createGrid);if(f)return Object(P.a)(f,i.inGrid,i.fullWidth,i.createGrid);if(!o)return a;if(u)return"string"!=typeof u?u:Object(N.a)(l,u,i.inGrid,i.fullWidth,i.createGrid,d);if(s){var p,m=(null===(p=Object(R.i)()[l])||void 0===p?void 0:p.name)||Object(S.__)("Site Kit","google-site-kit");return Object(C.a)(m,i.inGrid,i.fullWidth,i.createGrid)}return e.createElement(t,r()({data:o,datapoint:c,requestDataToState:g},this.props))}}]),NewComponent}(E.Component),m=t.displayName||t.name||"AnonymousComponent";return f.displayName="withData(".concat(m,")"),I((function(e){return{dateRange:e(x.a).getDateRange(),dateRangeLength:e(x.a).getDateRangeNumberOfDays()}}))(f)}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i}));var a="Date param must construct to a valid date instance or be a valid date instance itself.",r="Invalid dateString parameter, it must be a string.",i='Invalid date range, it must be a string with the format "last-x-days".'},function(e,t,n){"use strict";(function(e){var a=n(25),r=n.n(a),i=n(26),o=n.n(i),c=n(8),l=n.n(c),s=n(1),u=n.n(s),d=n(157),g=n(2),f=n(19),p=Object(g.forwardRef)((function(t,n){var a=t.children,i=t.href,c=t.text,s=t.className,u=t.danger,p=t.disabled,m=t.target,b=t.icon,h=t.trailingIcon,v=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon"]),y=Object(g.useCallback)((function(e){null!==e&&f.i.attachTo(e)}),[]),_=Object(d.a)(n,y),O=i&&!p?"a":"button";return e.createElement(O,r()({className:l()("mdc-button",s,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:p?void 0:i,ref:_,disabled:!!p,target:m||"_self",role:"a"===O?"button":void 0},v),b,a&&e.createElement("span",{className:"mdc-button__label"},a),h)}));p.displayName="Button",p.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element},p.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null},t.a=p}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="_googlesitekitDataLayer",r="data-googlesitekit-gtag"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(53),r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(a.a)(new Date(e))}},function(e,t,n){"use strict";(function(e){var a=n(6),r=n.n(a),i=n(7),o=n.n(i),c=n(14),l=n.n(c),s=n(15),u=n.n(s),d=n(16),g=n.n(d),f=n(49),p=n.n(f),m=n(21),b=n.n(m),h=n(22),v=n.n(h),y=n(13),_=n.n(y),O=n(1),k=n.n(O),j=n(8),E=n.n(j),S=n(23),D=n(2),w=n(144),R=n(75),C=n(38),N=n(40),P=n(43),A=n(170),x=n(185),L=n(24),T=n(137);function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=_()(e);if(t){var r=_()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return v()(this,n)}}var U=function(t){b()(Notification,t);var n,a,i=M(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(D.createRef)(),t.handleDismiss=t.handleDismiss.bind(p()(t)),t.handleCTAClick=t.handleCTAClick.bind(p()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(C.f)("notification::displayed::".concat(t.props.id),new Date),t}return g()(Notification,[{key:"handleDismiss",value:(a=l()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(C.f)("notification::dismissed::".concat(e.props.id),new Date),t.style.display="none";var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=l()(o.a.mark((function e(t){var n,a,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,a=n.isDismissable,!(r=n.onCTAClick)){e.next=5;break}return e.next=5,r(t);case 5:a&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,a=Object(C.c)("notification::dismissed::".concat(t));if(a){var r=new Date(a);r.setSeconds(r.getSeconds()+parseInt(n,10)),r<new Date&&Object(C.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,a=this.props,i=a.children,o=a.id,c=a.className,l=a.title,s=a.description,u=a.blockData,d=a.WinImageSVG,g=a.SmallImageSVG,f=a.format,p=a.learnMoreURL,m=a.learnMoreDescription,b=a.learnMoreLabel,h=a.ctaLink,v=a.ctaLabel,y=a.ctaTarget,_=a.type,O=a.dismiss,k=a.isDismissable,j=a.logo,M=a.module,U=a.moduleName,I=a.pageIndex,W=a.anchorLink,z=a.anchorLinkLabel;if(Object(C.c)("notification::dismissed::".concat(o)))return null;var q,F=n?"is-closed":"is-open",G="large"===f&&"win-stats-increase"===_,H="mdc-layout-grid__cell--span-12";"large"===f?(H="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",G&&(H="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===f&&(H="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),q="win-warning"===_?e.createElement(A.a,null):"win-error"===_?e.createElement(x.a,null):"";var B=e.createElement(D.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(S.map)(u,(function(t,n){return e.createElement("div",{key:n,className:E()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":G,"mdc-layout-grid__cell--span-4-desktop":!G})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(N.a,t)))})))),V=e.createElement(D.Fragment,null,l&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},l),W&&z&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(L.a,{href:W},z)),s&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(D.isValidElement)(s)?s:e.createElement("span",{dangerouslySetInnerHTML:Object(R.a)(s,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),b&&e.createElement(D.Fragment,null," ",e.createElement(L.a,{href:p,external:!0,inherit:!0},b),m),I&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},I))),i),$=M?e.createElement(T.a,{slug:M,size:19}):e.createElement(w.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:E()(c,"googlesitekit-publisher-win",(t={},r()(t,"googlesitekit-publisher-win--".concat(f),f),r()(t,"googlesitekit-publisher-win--".concat(_),_),r()(t,"googlesitekit-publisher-win--".concat(F),F),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},j&&e.createElement("div",{className:E()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":G,"mdc-layout-grid__cell--order-1-tablet":G})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},$),U&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},U)),g&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(g,null)),e.createElement("div",{className:E()("mdc-layout-grid__cell",H)},G?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},V),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},B)):e.createElement(D.Fragment,null,V,B),h&&e.createElement(P.a,{className:"googlesitekit-notification__cta",href:h,target:y,onClick:this.handleCTAClick},v),k&&O&&e.createElement(L.a,{onClick:this.handleDismiss},O)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(d,null))),("win-error"===_||"win-warning"===_)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},q)))))}}]),Notification}(D.Component);U.propTypes={id:k.a.string.isRequired,className:k.a.string,title:k.a.string.isRequired,description:k.a.node,learnMoreURL:k.a.string,learnMoreDescription:k.a.string,learnMoreLabel:k.a.string,blockData:k.a.array,WinImageSVG:k.a.elementType,SmallImageSVG:k.a.elementType,format:k.a.string,ctaLink:k.a.string,ctaLabel:k.a.string,type:k.a.string,dismiss:k.a.string,isDismissable:k.a.bool,logo:k.a.bool,module:k.a.string,moduleName:k.a.string,pageIndex:k.a.string,dismissExpires:k.a.number,showOnce:k.a.bool,onCTAClick:k.a.func,onDismiss:k.a.func,anchorLink:k.a.string,anchorLinkLabel:k.a.string},U.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=U}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var a,r=n(15),i=n.n(r),o=n(16),c=n.n(o),l=function(t){var n=e[t];if(!n)return!1;try{var a="__storage_test__";return n.setItem(a,a),n.removeItem(a),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return a||(a=l("sessionStorage")?e.sessionStorage:l("localStorage")?e.localStorage:new s),a}}).call(this,n(18))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a.b})),n.d(t,"b",(function(){return a.c})),n.d(t,"e",(function(){return r.a})),n.d(t,"f",(function(){return i.a})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return l.a})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return d}));var a=n(42),r=n(65),i=n(55),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t%7,a=0===n;if(a)return Object(i.a)(e,t);var r=t>7&&n<3,o=r?t-n:t+(7-n);return Object(i.a)(e,o)},c=(n(53),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}),l=n(45);function s(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var u=n(0);function d(){var e=function(e){return Object(u.sprintf)(
6
  /* translators: %s: number of days */
7
  Object(u._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,t){e.exports=googlesitekit.api},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return a}));var a="core/ui"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(e){return e instanceof Date&&!isNaN(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return a}));var a="core/location"},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(11),r=n.n(a),i=n(10),o=n.n(i),c=n(42),l=n(65),s=n(45),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;o()(Object(s.a)(e),c.c);var n=e.split("-"),a=r()(n,3),i=a[0],u=a[1],d=a[2],g=new Date(i,u-1,d);return g.setDate(g.getDate()-t),Object(l.a)(g)}},function(e,t,n){"use strict";(function(e){var a,r;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(a=e)||void 0===a||null===(r=a._googlesitekitBaseData)||void 0===r?void 0:r.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(8),o=n.n(i),c=n(24),l=function CTA(t){var n=t.title,a=t.description,r=t.ctaLink,i=t.ctaLabel,l=t.error,s=t.onClick,u=t["aria-label"];return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":l})},n&&e.createElement("h3",{className:"googlesitekit-cta__title"},n),a&&"string"==typeof a&&e.createElement("p",{className:"googlesitekit-cta__description"},a),a&&"string"!=typeof a&&e.createElement("div",{className:"googlesitekit-cta__description"},a),i&&e.createElement(c.a,{href:r,onClick:s,inverse:!l,caps:!0,arrow:!0,"aria-label":u},i))};l.propTypes={title:r.a.string.isRequired,description:r.a.oneOfType([r.a.string,r.a.node]),ctaLink:r.a.string,ctaLabel:r.a.string,"aria-label":r.a.string,error:r.a.bool,onClick:r.a.func},l.defaultProps={title:"",description:"",ctaLink:"",ctaLabel:"",error:!1,onClick:function(){}},t.a=l}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return g}));var a=n(104),r=e._googlesitekitBaseData||{},i=r.isFirstAdmin,o=r.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:r.trackingEnabled,trackingID:r.trackingID,referenceSiteURL:r.referenceSiteURL,userIDHash:r.userIDHash},l=Object(a.a)(c),s=l.enableTracking,u=l.disableTracking,d=l.isTrackingEnabled,g=l.trackEvent;function f(e){e?s():u()}!0===o&&f(d())}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GoogleChart}));var a=n(6),r=n.n(a),i=n(25),o=n.n(i),c=n(37),l=n.n(c),s=n(26),u=n.n(s),d=n(8),g=n.n(d),f=n(1),p=n.n(f),m=n(193),b=n(2),h=n(29);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GoogleChart(t){var n=t.chartEvents,a=t.chartType,r=t.children,i=t.className,c=t.data,s=t.getChartWrapper,d=t.height,f=t.loaded,p=t.loadingHeight,v=t.loadingWidth,y=t.onMouseOver,_=t.onMouseOut,O=t.onReady,k=t.onSelect,j=t.selectedStats,E=t.width,S=u()(t,["chartEvents","chartType","children","className","data","getChartWrapper","height","loaded","loadingHeight","loadingWidth","onMouseOver","onMouseOut","onReady","onSelect","selectedStats","width"]),D=[];(null==c?void 0:c.length)&&(D=c[0].reduce((function(e,t,n){return(null==t?void 0:t.role)?[].concat(l()(e),[n]):e}),[]));var w=c;(null==j?void 0:j.length)>0&&(w=c.map((function(e){return e.filter((function(e,t){return 0===t||j.includes(t-1)||D.includes(t-1)}))})));var R=p||d,C=v||E;R&&!C&&(C="100%"),C&&!R&&(R="100%");var N="PieChart"===a?"circular":"square",P=e.createElement("div",{className:"googlesitekit-chart-loading"},e.createElement(h.a,{className:"googlesitekit-chart-loading__wrapper",height:R,shape:N,width:C})),A=Object(b.useRef)(),x=Object(b.useRef)();if(Object(b.useEffect)((function(){return function(){if(x.current&&A.current){var e=x.current.visualization.events;e.removeAllListeners(A.current.getChart()),e.removeAllListeners(A.current)}}}),[]),Object(b.useLayoutEffect)((function(){var e,t;y&&(null===(e=x.current)||void 0===e||e.visualization.events.addListener(A.current.getChart(),"onmouseover",(function(e){y(e,{chartWrapper:A.current,google:x.current})})));_&&(null===(t=x.current)||void 0===t||t.visualization.events.addListener(A.current.getChart(),"onmouseout",(function(e){_(e,{chartWrapper:A.current,google:x.current})})))}),[y,_]),!f)return e.createElement("div",{className:g()("googlesitekit-chart","googlesitekit-chart-loading__forced",i)},P);var L=l()(n||[]);return O&&L.push({eventName:"ready",callback:O}),k&&L.push({eventName:"select",callback:k}),e.createElement("div",{className:g()("googlesitekit-chart","googlesitekit-chart--".concat(a),i)},e.createElement(m.a,o()({className:"googlesitekit-chart__inner",chartEvents:L,chartType:a,chartVersion:"49",data:w,loader:P,height:d,getChartWrapper:function(e,t){var n,a,r;e!==A.current&&(null===(n=x.current)||void 0===n||n.visualization.events.removeAllListeners(null===(a=A.current)||void 0===a?void 0:a.getChart()),null===(r=x.current)||void 0===r||r.visualization.events.removeAllListeners(A.current));A.current=e,x.current=t,s&&s(e,t)},width:E},S)),r)}GoogleChart.propTypes={className:p.a.string,children:p.a.node,chartEvents:p.a.arrayOf(p.a.shape({eventName:p.a.string,callback:p.a.func})),chartType:p.a.oneOf(["LineChart","PieChart"]).isRequired,data:p.a.array,getChartWrapper:p.a.func,height:p.a.string,loaded:p.a.bool,loadingHeight:p.a.string,loadingWidth:p.a.string,onMouseOut:p.a.func,onMouseOver:p.a.func,onReady:p.a.func,onSelect:p.a.func,selectedStats:p.a.arrayOf(p.a.number),width:p.a.string},GoogleChart.defaultProps=y(y({},m.a.defaultProps),{},{loaded:!0})}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(8),o=n.n(i),c=n(29);function PreviewTable(t){for(var n=t.rows,a=t.rowHeight,r=t.padding,i=[],l=0;n>l;l++)i.push(e.createElement("div",{className:"googlesitekit-preview-table__row",key:"table-row-"+l},e.createElement(c.a,{width:"100%",height:a+"px"})));return e.createElement("div",{className:o()("googlesitekit-preview-table",{"googlesitekit-preview-table--padding":r})},i)}PreviewTable.propTypes={rows:r.a.number,rowHeight:r.a.number,padding:r.a.bool},PreviewTable.defaultProps={rows:11,rowHeight:35,padding:!1},t.a=PreviewTable}).call(this,n(2))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return i}));var a={BOXES:"boxes",COMPOSITE:"composite"},r={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},function(e,t,n){"use strict";(function(e,a){var r=n(11),i=n.n(r),o=n(1),c=n.n(o),l=n(23),s=n(8),u=n.n(s),d=n(2);function TableOverflowContainer(t){var n=t.children,r=Object(d.useState)(!1),o=i()(r,2),c=o[0],s=o[1],g=Object(d.useRef)();Object(d.useEffect)((function(){f();var t=Object(l.debounce)(f,100);return e.addEventListener("resize",t),function(){return e.removeEventListener("resize",t)}}),[]);var f=function(){if(g.current){var e=g.current,t=e.scrollLeft,n=e.scrollWidth-e.offsetWidth;s(t<n-16&&0<n-16)}};return a.createElement("div",{onScroll:Object(l.debounce)(f,100),className:u()("googlesitekit-table-overflow",{"googlesitekit-table-overflow--gradient":c})},a.createElement("div",{ref:g,className:"googlesitekit-table-overflow__container"},n))}TableOverflowContainer.propTypes={children:c.a.element},t.a=TableOverflowContainer}).call(this,n(18),n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ProgressBar}));var a=n(1),r=n.n(a),i=n(8),o=n.n(i);function ProgressBar(t){var n=t.className,a=t.small,r=t.compress,i=t.indeterminate,c=t.height,l=t.progress,s=void 0!==c?Math.round(c/2):void 0,u=l?"scaleX(".concat(l,")"):void 0;return e.createElement("div",{role:"progressbar",style:{marginTop:s,marginBottom:s},className:o()("mdc-linear-progress",n,{"mdc-linear-progress--indeterminate":i,"mdc-linear-progress--small":a,"mdc-linear-progress--compress":r})},e.createElement("div",{className:"mdc-linear-progress__buffering-dots"}),e.createElement("div",{className:"mdc-linear-progress__buffer"}),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__primary-bar",style:{transform:u}},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar"},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})))}ProgressBar.propTypes={className:r.a.string,small:r.a.bool,compress:r.a.bool,indeterminate:r.a.bool,progress:r.a.number,height:r.a.number},ProgressBar.defaultProps={className:"",small:!1,compress:!1,indeterminate:!0,progress:0}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(10),r=n.n(a),i=n(42),o=n(53),c=function(e){var t=new Date(e);r()(Object(o.a)(t),i.a);var n="".concat(t.getMonth()+1),a="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,a.length<2?"0".concat(a):a].join("-")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(44);function r(e){return function(){e[a.a]=e[a.a]||[],e[a.a].push(arguments)}}},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,a=t.invertColor,r=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":a}),width:r,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:r.a.string,invertColor:r.a.bool,width:r.a.number,height:r.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(15),r=n.n(a),i=n(16),o=n.n(i),c=n(21),l=n.n(c),s=n(22),u=n.n(s),d=n(13),g=n.n(d),f=n(1),p=n.n(f),m=n(2);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var h=function(t){l()(DashboardModuleHeader,t);var n=b(DashboardModuleHeader);function DashboardModuleHeader(){return r()(this,DashboardModuleHeader),n.apply(this,arguments)}return o()(DashboardModuleHeader,[{key:"render",value:function(){var t=this.props,n=t.title,a=t.description;return e.createElement("header",{className:"googlesitekit-dashboard-module-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-4-phone "},e.createElement("h3",{className:" googlesitekit-heading-3 googlesitekit-dashboard-module-header__title "},n),a&&e.createElement("p",{className:"googlesitekit-dashboard-module-header__description"},a))))}}]),DashboardModuleHeader}(m.Component);h.propTypes={title:p.a.string,description:p.a.string},h.defaultProps={title:"",description:""},t.a=h}).call(this,n(2))},function(e,t,n){"use strict";var a=n(131);n.d(t,"a",(function(){return a.a}));var r=n(132);n.d(t,"c",(function(){return r.a}));var i=n(133);n.d(t,"b",(function(){return i.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(10),r=n.n(a),i=n(45),o=function(e){var t=e.startDate,n=e.endDate;return r()(Object(i.a)(t),"A valid startDate is required."),r()(Object(i.a)(n),"A valid endDate is required."),{start_date:t.replace(/-/g,""),end_date:n.replace(/-/g,"")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(10),r=n.n(a),i=n(45),o=function(e){var t=e.startDate,n=e.endDate,a=e.compareStartDate,o=e.compareEndDate;r()(Object(i.a)(t),"A valid startDate is required."),r()(Object(i.a)(n),"A valid endDate is required.");var c={"_u.date00":t.replace(/-/g,""),"_u.date01":n.replace(/-/g,"")};return(a||o)&&(r()(Object(i.a)(a)&&Object(i.a)(o),"Valid compareStartDate and compareEndDate values are required."),c["_u.date10"]=a.replace(/-/g,""),c["_u.date11"]=o.replace(/-/g,"")),c}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(33),r=n.n(a),i=n(97),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(a){var i=t[a];i&&"object"===r()(i)&&!Array.isArray(i)&&(i=e(i)),n[a]=i})),n}(e)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var a=n(80),r=n.n(a),i="missing_required_scopes";function o(e){return r()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function l(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(59);function Sparkline(t){var n=t.change,a=t.data,r=t.invertChangeColor,o=t.loadingHeight;if(!a)return null;var c=r?"red":"green",l=r?"green":"red",s={title:"",backgroundColor:"transparent",curveType:"line",width:"100%",height:"50",enableInteractivity:!1,chartArea:{height:"100%",width:"100%"},legend:{position:"none"},axisFontSize:0,hAxis:{baselineColor:"none",ticks:[]},vAxis:{baselineColor:"none",ticks:[]},axes:[],colors:[0<=(parseFloat(n)||0)?c:l]};return a.slice(1).some((function(e){return e[1]>0}))||(s.vAxis.minValue=0,s.vAxis.maxValue=1),e.createElement("div",{className:"googlesitekit-analytics-sparkline-chart-wrap"},e.createElement(i.a,{chartType:"LineChart",data:a,loadingHeight:o,options:s}))}Sparkline.propTypes={invertChangeColor:r.a.bool,loadingHeight:r.a.string},Sparkline.defaultProps={invertChangeColor:!1,loadingHeight:"46px"},t.a=Sparkline}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var a=n(33),r=n.n(a),i=n(107),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===r()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},,function(e,t,n){"use strict";n.d(t,"f",(function(){return s.a})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m.a})),n.d(t,"e",(function(){return b})),n.d(t,"a",(function(){return v})),n.d(t,"d",(function(){return y}));var a=n(186),r=n.n(a),i=n(228),o=n.n(i),c=n(5),l=n(116),s=n(217),u=n(8),d=n.n(u),g=n(0),f=n(55),p=function(e,t,n,a,r){var i=[[{type:"date",label:Object(g.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:"number",label:n},{type:"number",label:Object(g.__)("Previous period","google-site-kit")}]],o=function(e){return new Date("".concat(e," 00:00:00"))},l=Object(c.h)(),s={weekday:"short",month:"short",day:"numeric"};return e.forEach((function(e,u){var p,m,b=e[a],h=e.keys[0],v=(null===(p=t[u])||void 0===p?void 0:p[a])||0,y=(null===(m=t[u])||void 0===m?void 0:m.keys[0])||Object(f.a)(h,r),_=Object(g.sprintf)(
8
  /* translators: 1: date for user stats, 2: previous date for user stats comparison */
@@ -35,7 +35,7 @@ Object(u.__)("%sK","google-site-kit"),v(m(e))):1e3<=e?Object(u.sprintf)(// trans
35
  Object(u.__)("%sK","google-site-kit"),v(m(e),e%10==0?{}:t)):v(e,{signDisplay:"never",maximumFractionDigits:1})},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(s.isFinite)(e)?e:Number(e),Object(s.isFinite)(e)||(console.warn("Invalid number",e,r()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return f(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(s.isPlainObject)(t)&&(n=g({},t))}var a=n,i=a.style,o=void 0===i?"metric":i;return"metric"===o?b(e):"duration"===o?f(e,t):v(e,n)},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?_():n,r=l()(t,["locale"]);return new Intl.NumberFormat(a,r).format(e)},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?_():n,r=t.style,i=void 0===r?"long":r,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(a,{style:i,type:c});return l.format(e)}
36
  /* translators: used between list items, there is a space after the comma. */var s=Object(u.__)(", ","google-site-kit");return e.join(s)},_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(s.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var a=n.match(/^(\w{2})?(_)?(\w{2})/);if(a&&a[0])return a[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var a=n(1),r=n.n(a),i=n(0),o=n(4),c=n.n(o),l=n(31),s=n(73),u=n(127),d=n(92),g=n(57),f=c.a.useSelect;function ReportError(t){var n,a=t.moduleSlug,r=t.error,o=f((function(e){return e(l.a).getModule(a)})),c=Object(i.sprintf)(Object(i.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name),p=r.message;Object(s.b)(r)&&(
37
  /* translators: %s: module name */
38
- c=Object(i.sprintf)(Object(i.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),p=Object(u.a)(p,o));var m=null==r||null===(n=r.data)||void 0===n?void 0:n.reconnectURL,b=m?e.createElement(d.a,{message:p,reconnectURL:m}):p;return e.createElement(g.a,{title:c,description:b,error:!0})}ReportError.propTypes={moduleSlug:r.a.string.isRequired,error:r.a.object.isRequired}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i}));var a=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},r=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function i(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="core",r="modules"},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return b})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return v}));var a=n(7),r=n.n(a),i=n(14),o=n.n(i);n(37);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var s,u="googlesitekit_".concat("1.34.0","_"),d=["sessionStorage","localStorage"],g=[].concat(d),f=function(){var t=o()(r.a.mark((function t(n){var a,i;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",a.setItem(i,i),a.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==a.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),p=function(){var t=o()(r.a.mark((function t(){var n,a,i,o,l;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(a=n.admin)||void 0===a?void 0:a.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}i=c(g),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(l=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,f(l);case 12:if(!t.sent){t.next=14;break}s=e[l];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(r.a.mark((function e(t){var n,a,i,o,c,l,s;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=10;break}if(!(a=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(a),o=i.timestamp,c=i.ttl,l=i.value,s=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:l,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){var t=o()(r.a.mark((function t(n,a){var i,o,c,l,s,d,g,f,m=arguments;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,l=i.timestamp,s=void 0===l?Math.round(Date.now()/1e3):l,d=i.isError,g=void 0!==d&&d,t.next=3,p();case 3:if(!(f=t.sent)){t.next=14;break}return t.prev=5,f.setItem("".concat(u).concat(n),JSON.stringify({timestamp:s,ttl:c,value:a,isError:g})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),h=function(){var t=o()(r.a.mark((function t(n){var a;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(a=t.sent)){t.next=13;break}return t.prev=4,a.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),v=function(){var t=o()(r.a.mark((function t(){var n,a,i,o;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,a=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&a.push(o.substring(u.length));return t.abrupt("return",a);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(18))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var a=n(1),r=n.n(a),i=n(0),o=n(4),c=n.n(o),l=n(31),s=n(57),u=c.a.useSelect;function ReportZero(t){var n=t.moduleSlug,a=u((function(e){return e(l.a).getModule(n)}));return e.createElement(s.a,{title:
39
  /* translators: %s: Module name */
40
  Object(i.sprintf)(Object(i.__)("%s Gathering Data","google-site-kit"),null==a?void 0:a.name),description:Object(i.sprintf)(
41
  /* translators: %s: Module name */
@@ -51,7 +51,7 @@ Object(o.__)("Complete %s activation","google-site-kit"),l.name),description:r||
51
  /* translators: %s: Module name */
52
  Object(o.__)("%s module setup needs to be completed","google-site-kit"),l.name),ctaLabel:Object(o.__)("Complete setup","google-site-kit"),"aria-label":Object(o.sprintf)(
53
  /* translators: %s: Module name */
54
- Object(o.__)("Complete %s setup","google-site-kit"),l.name),onClick:v}):null};m.propTypes={moduleSlug:r.a.string.isRequired,title:r.a.string,description:r.a.string},t.a=m}).call(this,n(2))},function(e,t,n){"use strict";function a(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function r(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[a,r,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(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(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var a=n(229),r=n(67),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(a.a)(e.createElement(r.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,a,r,i,o,c,l,s,u,d,g,f,p,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(a=n.rows)||void 0===a?void 0:a.length)||(null==e||null===(r=e[0])||void 0===r||null===(i=r.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(l=c.metrics)||void 0===l||null===(s=l[0])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(g=d.data)||void 0===g||null===(f=g.totals)||void 0===f||null===(p=f[0])||void 0===p||null===(m=p.values)||void 0===m?void 0:m[0])}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var a=n(6),r=n.n(a),i=n(105),o=n(106);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=l(l({},s),t);return r.referenceSiteURL&&(r.referenceSiteURL=r.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(r,n),disableTracking:function(){r.trackingEnabled=!1},isTrackingEnabled:function(){return!!r.trackingEnabled},trackEvent:Object(o.a)(r,n,a)}}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var a=n(66),r=n(44);function i(t,n){var i=Object(a.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(r.b,"]"))){var a=n.createElement("script");a.setAttribute(r.b,""),a.async=!0,a.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(r.a),n.head.appendChild(a),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f}));var a=n(7),r=n.n(a),i=n(6),o=n.n(i),c=n(14),l=n.n(c),s=n(66),u=n(56);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(t,n,a){var i=Object(s.a)(n);return function(){var n=l()(r.a.mark((function n(o,c,l,s){var d,f,p,m,b,h,v,y;return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=t.isFirstAdmin,m=t.referenceSiteURL,b=t.trackingEnabled,h=t.trackingID,v=t.userIDHash,!(null===(d=a._gaUserPrefs)||void 0===d||null===(f=d.ioo)||void 0===f?void 0:f.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(b){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:h,event_category:o,event_label:l,value:s,dimension1:m,dimension2:p?"true":"false",dimension3:v,dimension4:"1.34.0",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,g(g({},y),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,a,r){return n.apply(this,arguments)}}()}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));var a=n(146),r=n.n(a)()(e)}).call(this,n(18))},function(e,t,n){"use strict";(function(e){var a=n(0),r=n(24);t.a=function HelpLink(){var t=Object(a.__)("Need help?","google-site-kit");return e.createElement(r.a,{className:"googlesitekit-help-link",href:"https://sitekit.withgoogle.com/documentation/",external:!0},t)}}).call(this,n(2))},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportTable}));var a=n(8),r=n.n(a),i=n(147),o=n.n(i),c=n(10),l=n.n(c),s=n(1),u=n.n(s);function ReportTable(t){var n=t.rows,a=t.columns,i=t.className,c=t.limit;l()(Array.isArray(n),"rows must be an array."),l()(Array.isArray(a),"columns must be an array."),a.forEach((function(e){var t=e.Component,n=e.field,a=void 0===n?null:n;l()(t||null!==a,"each column must define a Component and/or a field.")})),l()(Number.isInteger(c)||void 0===c,"limit must be an integer, if provided.");var s=a.filter((function(e){return!e.hideOnMobile}));return e.createElement("div",{className:r()("googlesitekit-table","googlesitekit-table--with-list",i)},e.createElement("table",{className:r()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(a.length,"-col"),"googlesitekit-table__wrapper--mobile-".concat(s.length,"-col"))},e.createElement("thead",{className:"googlesitekit-table__head"},e.createElement("tr",{className:"googlesitekit-table__head-row"},a.map((function(t,n){var a=t.title,i=t.description,o=t.primary,c=t.hideOnMobile,l=t.className;return e.createElement("th",{className:r()("googlesitekit-table__head-item",{"googlesitekit-table__head-item--primary":o},{"hidden-on-mobile":c},l),"data-tooltip":i,key:"googlesitekit-table__head-row-".concat(n)},a)})))),e.createElement("tbody",{className:"googlesitekit-table__body"},n.slice(0,c).map((function(t,n){return e.createElement("tr",{className:"googlesitekit-table__body-row",key:"googlesitekit-table__body-row-".concat(n)},a.map((function(n,a){var i=n.Component,c=n.field,l=n.hideOnMobile,s=n.className,u=void 0!==c?o()(t,c):void 0;return e.createElement("td",{key:"googlesitekit-table__body-item-".concat(a),className:r()("googlesitekit-table__body-item",{"hidden-on-mobile":l},s)},e.createElement("div",{className:"googlesitekit-table__body-item-content"},i&&e.createElement(i,{row:t,fieldValue:u}),!i&&u))})))})))))}ReportTable.propTypes={rows:u.a.arrayOf(u.a.oneOfType([u.a.array,u.a.object])).isRequired,columns:u.a.arrayOf(u.a.shape({title:u.a.string,description:u.a.string,primary:u.a.bool,className:u.a.string,field:u.a.string,hideOnMobile:u.a.bool,Component:u.a.componentType})).isRequired,className:u.a.string,limit:u.a.number}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(0),r=n(5),i=n(73),o=n(127),c=n(92),l=n(57),s=n(96),u=n(235);t.a=function(t,n){var d,g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=arguments.length>3&&void 0!==arguments[3]&&arguments[3],p=arguments.length>4&&void 0!==arguments[4]&&arguments[4],m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},b=Object(r.i)(),h=b[t],v=Object(a.sprintf)(Object(a.__)("Data error in %s","google-site-kit"),null==h?void 0:h.name),y=n;Object(i.b)(m)&&(
55
  /* translators: %s: module name */
56
  v=Object(a.sprintf)(Object(a.__)("Insufficient permissions in %s","google-site-kit"),null==h?void 0:h.name),y=Object(o.a)(y,h));var _=null==m||null===(d=m.data)||void 0===d?void 0:d.reconnectURL,O=_?e.createElement(c.a,{message:y,reconnectURL:_}):y,k=e.createElement(l.a,{title:v,description:O,error:!0});return"Invalid Credentials"===n&&Object(r.u)(u.a),Object(s.a)(k,g,f,p)}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(35),r=n.n(a),i=n(154),o=e._googlesitekitAPIFetchData||{},c=o.nonce,l=o.nonceEndpoint,s=o.preloadedData,u=o.rootURL;r.a.nonceEndpoint=l,r.a.nonceMiddleware=r.a.createNonceMiddleware(c),r.a.rootURLMiddleware=r.a.createRootURLMiddleware(u),r.a.preloadingMiddleware=Object(i.a)(s),r.a.use(r.a.nonceMiddleware),r.a.use(r.a.mediaUploadMiddleware),r.a.use(r.a.rootURLMiddleware),r.a.use(r.a.preloadingMiddleware),t.default=r.a}).call(this,n(18))},,function(e,t,n){"use strict";t.a=function(e){if("string"==typeof e&&e.match(/[0-9]{8}/)){var t=e.slice(0,4),n=Number(e.slice(4,6))-1,a=e.slice(6,8);return new Date(t,n.toString(),a)}return!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(10),r=n.n(a),i=function(e,t){var n=t.dateRangeLength;r()(Array.isArray(e),"report must be an array to partition."),r()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var a=-1*n;return{currentRange:e.slice(a),compareRange:e.slice(2*a,a)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PageHeader}));var a=n(8),r=n.n(a),i=n(1),o=n.n(i);function PageHeader(t){var n=t.title,a=t.icon,i=t.className,o=t.status,c=t.statusText,l=t.fullWidth,s=t.children,u=l?"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-12\n\t\t":"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-4-phone\n\t\tmdc-layout-grid__cell--span-4-tablet\n\t\tmdc-layout-grid__cell--span-6-desktop\n\t\t",d=""!==o||Boolean(s);return e.createElement("header",{className:"googlesitekit-page-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:u},a,e.createElement("h1",{className:r()("googlesitekit-page-header__title",i)},n)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--align-right-tablet mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},e.createElement("div",{className:"googlesitekit-page-header__details"},o&&e.createElement("span",{className:r()("googlesitekit-page-header__status","googlesitekit-page-header__status--".concat(o))},c),s))))}PageHeader.propTypes={title:o.a.string,icon:o.a.node,className:o.a.string,status:o.a.string,statusText:o.a.string,fullWidth:o.a.bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}}).call(this,n(2))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return g}));var r=n(6),i=n.n(r),o=n(8),c=n.n(o),l=n(23),s=n(78),u=n(24),d=n(5),g=function(t,n,r){var o=[],g=r.links,f=r.source,p=r.showURLs,m=r.useAdminURLs,b=void 0!==m&&m,h=r.PrimaryLink,v=void 0===h?u.a:h;r.cap&&(t=t.slice(0,r.cap)),Object(l.each)(t,(function(t,n){var i=[],s=g&&g[n],f=s&&"/"===s[0]?Object(d.g)(e._googlesitekitLegacyData.admin.siteURL,s):s;Object(l.each)(t,(function(e,n){"string"==typeof e&&(e=e.replace(/\(none\)/gi,"direct"));var o=r&&r.hideColumns&&r.hideColumns.mobile.includes(n);i.push(a.createElement("td",{key:"cell-"+n,className:c()("googlesitekit-table__body-item",{"hidden-on-mobile":o})},t[0]===e&&s?a.createElement("div",{className:"googlesitekit-table__body-item-content"},a.createElement(v,{className:"googlesitekit-table__body-item-link",href:b?Object(d.k)("googlesitekit-dashboard",{permaLink:f}):s,external:!b,inherit:!0},e),p&&a.createElement(u.a,{className:"googlesitekit-table__body-item-url",href:s,inherit:!0,external:!0},s)):a.createElement("div",{className:"googlesitekit-table__body-item-content"},e)))})),o.push(a.createElement("tr",{key:"tr-"+n,className:"googlesitekit-table__body-row"},i))}));var y=t&&t[0]&&t[0].length?t[0].length:1,_=r.hideColumns&&r.hideColumns.mobile&&r.hideColumns.mobile.length>0?y-r.hideColumns.mobile.length:y;return a.createElement("div",{className:c()("googlesitekit-table",{"googlesitekit-table--with-list":!r||!r.disableListMode})},a.createElement("table",{className:c()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(y,"-col"),i()({},"googlesitekit-table__wrapper--mobile-".concat(_,"-col"),_!==y))},a.createElement("thead",{className:"googlesitekit-table__head"},a.createElement("tr",{key:"gksc_data_row_header-wrap",style:r&&r.hideHeader?{display:"none"}:{},className:"googlesitekit-table__head-row"},n.map((function(e,t){var n=r&&r.hideColumns&&r.hideColumns.mobile.includes(t);return a.createElement("th",{key:"gksc_data_row_header-".concat(t),className:c()("googlesitekit-table__head-item",{"googlesitekit-table__head-item--primary":e.primary},{"hidden-on-mobile":n}),"data-tooltip":e.tooltip},e.title)})))),a.createElement("tbody",{className:"googlesitekit-table__body"},o)),f&&a.createElement(s.a,{className:"googlesitekit-table__source",name:f.name,href:f.link}))}}).call(this,n(18),n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(2),r=n(4),i=n.n(r),o=n(62),c=i.a.useDispatch;function l(e,t,n){var r=c(o.b),i=r.setWidgetState,l=r.unsetWidgetState;Object(a.useEffect)((function(){return i(e,t,n),function(){l(e,t,n)}}),[e,t,n,i,l])}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSettingsWarning}));var a=n(4),r=n.n(a),i=n(31),o=n(8),c=n.n(o),l=n(177),s=r.a.useSelect;function ModuleSettingsWarning(t){var n=t.slug,a=s((function(e){var t;return null===(t=e(i.a))||void 0===t?void 0:t.getCheckRequirementsError(n)}));return a?e.createElement("div",{className:c()("googlesitekit-settings-module-warning","googlesitekit-settings-module-warning--modules-list")},e.createElement(l.a,{height:"20",width:"23"})," ",a.message):null}}).call(this,n(2))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return v}));var a=n(26),r=n.n(a),i=n(6),o=n.n(i),c=n(7),l=n.n(c),s=n(10),u=n.n(s),d=n(4),g=n.n(d),f=n(89),p=g.a.createRegistryControl,m=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},a={deleteSnapshot:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:l.a.mark((function e(){var t,n,a,r,i,o,c=arguments;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,a=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(r=e.sent,i=r.cacheHit,o=r.value,!i){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!a){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e)})),createSnapshot:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},i=(t={},o()(t,"DELETE_SNAPSHOT",(function(){return Object(f.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",p((function(t){return function(){return Object(f.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(f.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:a,controls:i,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,a=t.type,i=t.payload;switch(a){case"SET_STATE_FROM_SNAPSHOT":var o=i.snapshot,c=(o.error,r()(o,["error"]));return c;default:return e}}}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(b(e).map((function(e){return e.getActions().createSnapshot()})))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(b(e).map((function(e){return e.getActions().restoreSnapshot()})))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0);function r(e,t){var n=t||{},r=n.slug,i=void 0===r?"":r,o=n.name,c=void 0===o?"":o,l=n.owner,s=void 0===l?null:l;if(!i||!c)return e;var u="",d="";return"analytics"===i?e.match(/account/i)?u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics account, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit"):e.match(/property/i)?u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics property, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit"):e.match(/view/i)&&(u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics view, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit")):"search-console"===i&&(u=Object(a.__)("Your Google account does not have sufficient permissions for this Search Console property, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit")),u||(u=Object(a.sprintf)(
57
  /* translators: %s: module name */
2
  /* translators: 1: date for user stats, 2: previous date for user stats comparison */
3
  Object(l._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(x,L),A[n][0].toLocaleDateString(x,L)),s=Object(l.sprintf)(
4
  /* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
5
+ Object(l._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),k[t],j[t](e[1]),i,Object(u.r)(Math.abs(r),"%"));D.push([e[0],'<div class="'.concat(c()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":r>0,"googlesitekit-visualization-tooltip--down":r<0}),'">\n\t\t\t\t<p>').concat(o,"</p>\n\t\t\t\t<p>").concat(s,"</p>\n\t\t\t</div>"),E?Object(u.c)(e[1]):e[1],E?Object(u.c)(A[n][1]):A[n][1]])}})),D}var N=function(e){if(!e||!e.length)return null;var t=e[0].data.rows,n=[[{type:"date",label:"Day"},{type:"number",label:"Users"},{type:"number",label:"Sessions"},{type:"number",label:"Goals Completed"}]];return Object(i.each)(t,(function(e){var t=e.metrics[0].values,a=e.dimensions[0],r=Object(g.a)(a);n.push([r,t[0],t[1],t[4]])})),n},P=function(e){var t;return e.error&&e.error.status?function(e,t){var n="";switch(e){case"INVALID_ARGUMENT":n=Object(l.__)("Analytics module needs to be configured.","google-site-kit");break;case"UNAUTHENTICATED":n=Object(l.__)("You need to be authenticated to get this data.","google-site-kit");break;case"PERMISSION_DENIED":n=Object(l.__)("Your account does not have sufficient permission to access this data, please consult to your web administrator.","google-site-kit");break;case"RESOURCE_EXHAUSTED":n=Object(l.__)("Your account exceeded the maximum quota. Please try again later.","google-site-kit");break;case"INTERNAL":n=Object(l.__)("Unexpected internal server error occurred.","google-site-kit");break;case"BACKEND_ERROR":n=Object(l.__)("Analytics server returned unknown error. Please try again later.","google-site-kit");break;case"UNAVAILABLE":n=Object(l.__)("The service was unable to process the request. Please try again later.","google-site-kit");break;default:n=t}return n}(e.error.status,e.error.message):!!(e.code&&e.message&&(null===(t=e.data)||void 0===t?void 0:t.status))&&e.message},A=function(e){if(!e||!e.length)return!0;if(e&&e[0]&&e[0].data&&e[0].data.totals&&e[0].data.totals[0]){var t=e[0].data.totals[0].values,n=!0;return Object(i.each)(t,(function(e){0!==parseInt(e,10)&&(n=!1)})),n}return!1},x={dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:adsenseRevenue",alias:"Earnings"},{expression:"ga:adsenseECPM",alias:"Page RPM"},{expression:"ga:adsensePageImpressions",alias:"Impressions"}],orderby:[{fieldName:"ga:adsenseRevenue",sortOrder:"DESCENDING"}],limit:10},L={compareDateRanges:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"}],limit:180},T={multiDateRange:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"},{expression:"ga:pageviews",alias:"Pageviews"}],limit:10},M={multiDateRange:1,metrics:[{expression:"ga:users",alias:"Total Users"}]},U={dimensions:"ga:channelGrouping",metrics:[{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:users",alias:"Users"},{expression:"ga:newUsers",alias:"New Users"}],orderby:[{fieldName:"ga:users",sortOrder:"DESCENDING"}],limit:10},I=function(){return{dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:pageviews",alias:"Pageviews"},{expression:"ga:uniquePageviews",alias:"Unique Pageviews"},{expression:"ga:bounceRate",alias:"Bounce rate"}],orderby:[{fieldName:"ga:pageviews",sortOrder:"DESCENDING"}],limit:10}},W=function(e){var t,n,a,r,i,o,c,l,s,u;return{totalUsers:null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(a=n.totals)||void 0===a||null===(r=a[0])||void 0===r||null===(i=r.values)||void 0===i?void 0:i[0],previousTotalUsers:null==e||null===(o=e[0])||void 0===o||null===(c=o.data)||void 0===c||null===(l=c.totals)||void 0===l||null===(s=l[1])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0]}}},function(e,t,n){"use strict";var a=n(11),r=n.n(a),i=n(23),o=n(113),c=n(99),l=n(17),s=n(32),u=n(84),d=n(73),g=n(161),f=n(128),p=n(38),m=n(88);n.d(t,"a",(function(){return m.a})),n.d(t,"b",(function(){return m.b}));var b=n(134),h=n(171),v={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=[],s=25;Object(i.each)(e,(function(e){e.key=Object(p.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(p.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),s),s+=25):a.push(e)})),a=Object(i.sortBy)(a,"priority");var g=[],f=[],m={},b=!!a.find((function(e){return e.priority<10}));Object(i.each)(a,(function(e,t){!n&&10<=e.priority&&b?f.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],g.push(e))}));var h=10,v=g.slice(0,h),y=g.slice(h);if(y=y.concat(f),0!==v.length||0!==y.length){0<y.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(y,!0)}),50):this.maxRequests=10;var _=null!==Object(u.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:_||void 0}),data:{request:v},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=r()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(d.d)(o)){var c=m[i][0],s=a[c],u=s.datapoint,g=s.type,f=s.identifier;t.handleWPError({method:"GET",datapoint:u,type:g,identifier:f,error:o})}else Object(p.f)(i,o);m[i].forEach((function(e){var n=a[e];t.resolve(n,o)})),0===y.length&&Object(l.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(l.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,a=e.type,r=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(a),"identifier:".concat(r),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(h.a)({method:t,datapoint:n,type:a,identifier:r,error:i});var o=i.data;if(o&&(o.reason||o.reconnectURL)){var c=0;["authError","insufficientPermissions"].includes(o.reason)&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(f.a),1),c++),o.reconnectURL&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(g.a),1),c++),c&&Object(l.b)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease",(function(e){return Object(l.g)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease"),e+c}))}},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:b.a,collectModuleData:function(e,t){var n=Object(l.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var a=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=Object(p.d)(e,t,n,r);if(!i){var s=Object(p.c)(l,3600);if(void 0!==s)return new Promise((function(e){e(s)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),r)}).then((function(e){return i||Object(p.f)(l,e),Promise.resolve(e)})).catch((function(r){return a.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},set:function(e,t,n,a){var r=this,i={};return i.data=a,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(a){return v.invalidateCacheGroup(e,t,n),new Promise((function(e){e(a)}))})).catch((function(a){return r.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},setModuleActive:function(e,t){return this.set(m.a,"modules","activation",{slug:e,active:t})}};Object(l.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(l.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",v.collectModuleData.bind(v)),t.c=v},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(8),o=n.n(i),c=n(184);function PreviewBlock(t){var n=t.className,a=t.width,r=t.height,i=t.shape,l=t.padding,s=t.smallWidth,u=t.smallHeight,d=t.tabletWidth,g=t.tabletHeight,f=t.desktopWidth,p=t.desktopHeight,m=Object(c.a)(),b=a,h=r;return"small"===m&&s&&u&&(b=s,h=u),"tablet"===m&&d&&g&&(b=d,h=g),("xlarge"===m||"desktop"===m)&&f&&p&&(b=f,h=p),e.createElement("div",{className:o()("googlesitekit-preview-block",n,{"googlesitekit-preview-block--padding":l}),style:{width:b,height:h}},e.createElement("div",{className:o()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===i})}))}PreviewBlock.propTypes={className:r.a.string,width:r.a.string,height:r.a.string,shape:r.a.string,padding:r.a.bool,smallWidth:r.a.string,smallHeight:r.a.string,tabletWidth:r.a.string,tabletHeight:r.a.string,desktopWidth:r.a.string,desktopHeight:r.a.string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0},t.a=PreviewBlock}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}));var a="modules/adsense",r=1},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="core/modules",r="insufficient_module_dependencies"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var a=n(25),r=n.n(a),i=n(2),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(a){return function InnerComponent(i){return e.createElement(t,r()({},i,n,{OriginalComponent:a}))}}}}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){var a=n(15),r=n.n(a),i=n(16),o=n.n(i),c=n(21),l=n.n(c),s=n(22),u=n.n(s),d=n(13),g=n.n(d),f=n(1),p=n.n(f),m=n(8),b=n.n(m),h=n(2),v=n(195),y=n(196);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var O=function(t){l()(Layout,t);var n=_(Layout);function Layout(){return r()(this,Layout),n.apply(this,arguments)}return o()(Layout,[{key:"render",value:function(){var t=this.props,n=t.header,a=t.footer,r=t.children,i=t.title,o=t.headerCTALabel,c=t.headerCTALink,l=t.footerCTALabel,s=t.footerCTALink,u=t.footerContent,d=t.className,g=t.fill,f=t.relative;return e.createElement("div",{className:b()("googlesitekit-layout",d,{"googlesitekit-layout--fill":g,"googlesitekit-layout--relative":f})},n&&e.createElement(v.a,{title:i,ctaLabel:o,ctaLink:c}),r,a&&e.createElement(y.a,{ctaLabel:l,ctaLink:s,footerContent:u}))}}]),Layout}(h.Component);O.propTypes={header:p.a.bool,footer:p.a.bool,children:p.a.node.isRequired,title:p.a.string,headerCTALabel:p.a.string,headerCTALink:p.a.string,footerCTALabel:p.a.string,footerCTALink:p.a.string,footerContent:p.a.node,className:p.a.string,fill:p.a.bool,relative:p.a.bool},O.defaultProps={header:!1,footer:!1,title:"",headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=O}).call(this,n(2))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}));var a="modules/search-console",r=1},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return f}));var a=n(33),r=n.n(a),i=n(23),o=n(48),c=n(72),l="googlesitekit_legacy_1.34.1_",s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==r()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==r()(n)||!n.error&&!n.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var a={value:n,date:Date.now()/1e3};Object(o.a)().setItem(l+t,JSON.stringify(a))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var a=JSON.parse(Object(o.a)().getItem(l+t));return a&&"object"===r()(a)&&a.date&&(!n||Date.now()/1e3-a.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(a.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},g=function(t){s(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(l+t)},f=function(e,t,n){for(var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],l=0,s=o;l<s.length;l++){var u=s[l];if(!u||!u.length)break;i.push(u)}return 3===i.length&&a&&"object"===r()(a)&&Object.keys(a).length&&i.push(Object(c.a)(a)),i.join("::")}}).call(this,n(18))},,function(e,t,n){"use strict";(function(e){var a=n(15),r=n.n(a),i=n(16),o=n.n(i),c=n(49),l=n.n(c),s=n(21),u=n.n(s),d=n(22),g=n.n(d),f=n(13),p=n.n(f),m=n(1),b=n.n(m),h=n(8),v=n.n(h),y=n(2),_=n(0),O=n(67),k=n(78),j=n(5);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=p()(e);if(t){var r=p()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return g()(this,n)}}var S=function(t){u()(DataBlock,t);var n=E(DataBlock);function DataBlock(e){var t;return r()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(l()(t)),t.handleKeyPress=t.handleKeyPress.bind(l()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,a=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||a(n)}},{key:"render",value:function(){var t=this.props,n=t.className,a=t.title,r=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,l=t.context,s=t.period,u=t.selected,d=t.handleStatSelection,g=t.source,f=t.sparkline,p=t.invertChangeColor,m="button"===l?"button":"",b=f;b&&p&&(b=Object(y.cloneElement)(f,{invertChangeColor:p}));var h=o;c&&(h="%"===c?Object(j.r)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(j.r)(o,c)),s&&(h=Object(_.sprintf)(s,h));var E=r&&Object(j.r)(r,i||void 0);return e.createElement("div",{className:v()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&a,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},a),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},E)),b&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},b),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:v()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(y.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(O.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},h))),g&&e.createElement(k.a,{className:"googlesitekit-data-block__source",name:g.name,href:g.link,external:null==g?void 0:g.external})))}}]),DataBlock}(y.Component);S.propTypes={stat:b.a.number,onClick:b.a.func,className:b.a.string,title:b.a.string,datapoint:b.a.oneOfType([b.a.string,b.a.number]),datapointUnit:b.a.string,change:b.a.oneOfType([b.a.string,b.a.number]),changeDataUnit:b.a.oneOfType([b.a.string,b.a.bool]),context:b.a.string,period:b.a.string,selected:b.a.bool,handleStatSelection:b.a.func,invertChangeColor:b.a.bool},S.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=S}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(25),r=n.n(a),i=n(11),o=n.n(i),c=n(15),l=n.n(c),s=n(16),u=n.n(s),d=n(49),g=n.n(d),f=n(21),p=n.n(f),m=n(22),b=n.n(m),h=n(13),v=n.n(h),y=n(293),_=n.n(y),O=n(125),k=n.n(O),j=n(17),E=n(2),S=n(0),D=n(4),w=n.n(D),R=n(5),C=n(94),N=n(112),P=n(188),A=n(88),x=n(12),L=n(236);function T(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=v()(e);if(t){var r=v()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return b()(this,n)}}var I=w.a.withSelect,W=k()(R.v);t.a=function(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{inGrid:!1,fullWidth:!1,createGrid:!1},c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e){if(e&&e.error)return e.error.message?e.error.message:e.error.errors&&e.error.errors[0]&&e.error.errors[0].message?e.error.errors[0].message:Object(S.__)("Unidentified error","google-site-kit");if(e&&e.errors&&e.errors[0]&&e.errors[0].message)return e.errors[0].message;if(e&&e.error_data){var t=Object.values(e.error_data);if(t[0]&&"RateLimitExceeded"===t[0].reason)return Object(S.__)("Too many requests have been sent within a given time span. Please reload this page again in a few seconds.","google-site-kit")}if(e&&e.errors){var n=Object.values(e.errors);if(n[0]&&n[0][0])return n[0][0]}return!!(e.code&&e.message&&e.data&&e.data.status)&&e.message},d=n.reduce((function(e,t){return _()(t.context).forEach((function(n){e[n]=e[n]||[],e[n].push(t)})),e}),{}),f=function(n){p()(NewComponent,n);var f=U(NewComponent);function NewComponent(e){var t;return l()(this,NewComponent),(t=f.call(this,e)).state={data:!1,zeroData:!1,errorMessage:!1,moduleRequiringSetup:""},t.handleModuleDataReset=t.handleModuleDataReset.bind(g()(t)),t.handleReturnedData=t.handleReturnedData.bind(g()(t)),t.addDataRequests=t.addDataRequests.bind(g()(t)),t.removeDataRequests=t.removeDataRequests.bind(g()(t)),t}return u()(NewComponent,[{key:"componentDidMount",value:function(){Object(j.a)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.addDataRequests()}},{key:"componentWillUnmount",value:function(){Object(j.f)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.removeDataRequests()}},{key:"handleModuleDataReset",value:function(){this.removeDataRequests(),this.addDataRequests(),this.setState({data:!1,errorMessage:!1,zeroData:!1})}},{key:"addDataRequests",value:function(){var e=this,t=this.props.dateRange;Object.entries(d).forEach((function(n){var a=o()(n,2),r=a[0],i=a[1];Object(j.b)("googlesitekit.module".concat(r,"DataRequest"),"googlesitekit.withData.".concat(W(i)),(function(n){var a,r=Object(R.i)(),o=[],c=T(i);try{var l=function(){var n,i,c=a.value,l=c||{},s=l.type,u=l.identifier;if(A.b===s&&!(null===(n=r[u])||void 0===n?void 0:n.setupComplete))return e.setState({moduleRequiringSetup:u,moduleRequiringActivation:!(null===(i=r[u])||void 0===i?void 0:i.active)}),"continue";var d=Object(L.a)(c,t);d.callback=function(t){e.handleReturnedData(t,c)},o.push(d)};for(c.s();!(a=c.n()).done;)l()}catch(e){c.e(e)}finally{c.f()}return n.concat(o)}))}))}},{key:"removeDataRequests",value:function(){Object.entries(d).forEach((function(e){var t=o()(e,2),n=t[0],a=t[1];Object(j.g)("googlesitekit.module".concat(n,"DataRequest"),"googlesitekit.withData.".concat(W(a)))}))}},{key:"handleReturnedData",value:function(e,t){var n=this.props,a=n.handleDataError,r=n.handleDataSuccess,i=t.datapoint,o=t.identifier,l=t.toState,u=s(e);u?(this.setState({errorMessage:u,errorObj:e,module:o}),a&&a(u,e)):c(e,i,t)?(a&&a(u,e),this.setState({zeroData:!0})):r&&r(),this.setState({requestDataToState:l,data:e,datapoint:i,module:o})}},{key:"render",value:function(){var n=this.state,o=n.data,c=n.datapoint,l=n.module,s=n.zeroData,u=n.errorMessage,d=n.errorObj,g=n.requestDataToState,f=n.moduleRequiringSetup;if(n.moduleRequiringActivation)return Object(P.b)(f,i.inGrid,i.fullWidth,i.createGrid);if(f)return Object(P.a)(f,i.inGrid,i.fullWidth,i.createGrid);if(!o)return a;if(u)return"string"!=typeof u?u:Object(N.a)(l,u,i.inGrid,i.fullWidth,i.createGrid,d);if(s){var p,m=(null===(p=Object(R.i)()[l])||void 0===p?void 0:p.name)||Object(S.__)("Site Kit","google-site-kit");return Object(C.a)(m,i.inGrid,i.fullWidth,i.createGrid)}return e.createElement(t,r()({data:o,datapoint:c,requestDataToState:g},this.props))}}]),NewComponent}(E.Component),m=t.displayName||t.name||"AnonymousComponent";return f.displayName="withData(".concat(m,")"),I((function(e){return{dateRange:e(x.a).getDateRange(),dateRangeLength:e(x.a).getDateRangeNumberOfDays()}}))(f)}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i}));var a="Date param must construct to a valid date instance or be a valid date instance itself.",r="Invalid dateString parameter, it must be a string.",i='Invalid date range, it must be a string with the format "last-x-days".'},function(e,t,n){"use strict";(function(e){var a=n(25),r=n.n(a),i=n(26),o=n.n(i),c=n(8),l=n.n(c),s=n(1),u=n.n(s),d=n(157),g=n(2),f=n(19),p=Object(g.forwardRef)((function(t,n){var a=t.children,i=t.href,c=t.text,s=t.className,u=t.danger,p=t.disabled,m=t.target,b=t.icon,h=t.trailingIcon,v=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon"]),y=Object(g.useCallback)((function(e){null!==e&&f.i.attachTo(e)}),[]),_=Object(d.a)(n,y),O=i&&!p?"a":"button";return e.createElement(O,r()({className:l()("mdc-button",s,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:p?void 0:i,ref:_,disabled:!!p,target:m||"_self",role:"a"===O?"button":void 0},v),b,a&&e.createElement("span",{className:"mdc-button__label"},a),h)}));p.displayName="Button",p.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element},p.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null},t.a=p}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="_googlesitekitDataLayer",r="data-googlesitekit-gtag"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(53),r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(a.a)(new Date(e))}},function(e,t,n){"use strict";(function(e){var a=n(6),r=n.n(a),i=n(7),o=n.n(i),c=n(14),l=n.n(c),s=n(15),u=n.n(s),d=n(16),g=n.n(d),f=n(49),p=n.n(f),m=n(21),b=n.n(m),h=n(22),v=n.n(h),y=n(13),_=n.n(y),O=n(1),k=n.n(O),j=n(8),E=n.n(j),S=n(23),D=n(2),w=n(144),R=n(75),C=n(38),N=n(40),P=n(43),A=n(170),x=n(185),L=n(24),T=n(137);function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=_()(e);if(t){var r=_()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return v()(this,n)}}var U=function(t){b()(Notification,t);var n,a,i=M(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(D.createRef)(),t.handleDismiss=t.handleDismiss.bind(p()(t)),t.handleCTAClick=t.handleCTAClick.bind(p()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(C.f)("notification::displayed::".concat(t.props.id),new Date),t}return g()(Notification,[{key:"handleDismiss",value:(a=l()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(C.f)("notification::dismissed::".concat(e.props.id),new Date),t.style.display="none";var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=l()(o.a.mark((function e(t){var n,a,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,a=n.isDismissable,!(r=n.onCTAClick)){e.next=5;break}return e.next=5,r(t);case 5:a&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,a=Object(C.c)("notification::dismissed::".concat(t));if(a){var r=new Date(a);r.setSeconds(r.getSeconds()+parseInt(n,10)),r<new Date&&Object(C.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,a=this.props,i=a.children,o=a.id,c=a.className,l=a.title,s=a.description,u=a.blockData,d=a.WinImageSVG,g=a.SmallImageSVG,f=a.format,p=a.learnMoreURL,m=a.learnMoreDescription,b=a.learnMoreLabel,h=a.ctaLink,v=a.ctaLabel,y=a.ctaTarget,_=a.type,O=a.dismiss,k=a.isDismissable,j=a.logo,M=a.module,U=a.moduleName,I=a.pageIndex,W=a.anchorLink,z=a.anchorLinkLabel;if(Object(C.c)("notification::dismissed::".concat(o)))return null;var q,F=n?"is-closed":"is-open",G="large"===f&&"win-stats-increase"===_,H="mdc-layout-grid__cell--span-12";"large"===f?(H="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",G&&(H="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===f&&(H="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),q="win-warning"===_?e.createElement(A.a,null):"win-error"===_?e.createElement(x.a,null):"";var B=e.createElement(D.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(S.map)(u,(function(t,n){return e.createElement("div",{key:n,className:E()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":G,"mdc-layout-grid__cell--span-4-desktop":!G})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(N.a,t)))})))),V=e.createElement(D.Fragment,null,l&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},l),W&&z&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(L.a,{href:W},z)),s&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(D.isValidElement)(s)?s:e.createElement("span",{dangerouslySetInnerHTML:Object(R.a)(s,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),b&&e.createElement(D.Fragment,null," ",e.createElement(L.a,{href:p,external:!0,inherit:!0},b),m),I&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},I))),i),$=M?e.createElement(T.a,{slug:M,size:19}):e.createElement(w.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:E()(c,"googlesitekit-publisher-win",(t={},r()(t,"googlesitekit-publisher-win--".concat(f),f),r()(t,"googlesitekit-publisher-win--".concat(_),_),r()(t,"googlesitekit-publisher-win--".concat(F),F),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},j&&e.createElement("div",{className:E()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":G,"mdc-layout-grid__cell--order-1-tablet":G})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},$),U&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},U)),g&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(g,null)),e.createElement("div",{className:E()("mdc-layout-grid__cell",H)},G?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},V),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},B)):e.createElement(D.Fragment,null,V,B),h&&e.createElement(P.a,{className:"googlesitekit-notification__cta",href:h,target:y,onClick:this.handleCTAClick},v),k&&O&&e.createElement(L.a,{onClick:this.handleDismiss},O)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(d,null))),("win-error"===_||"win-warning"===_)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},q)))))}}]),Notification}(D.Component);U.propTypes={id:k.a.string.isRequired,className:k.a.string,title:k.a.string.isRequired,description:k.a.node,learnMoreURL:k.a.string,learnMoreDescription:k.a.string,learnMoreLabel:k.a.string,blockData:k.a.array,WinImageSVG:k.a.elementType,SmallImageSVG:k.a.elementType,format:k.a.string,ctaLink:k.a.string,ctaLabel:k.a.string,type:k.a.string,dismiss:k.a.string,isDismissable:k.a.bool,logo:k.a.bool,module:k.a.string,moduleName:k.a.string,pageIndex:k.a.string,dismissExpires:k.a.number,showOnce:k.a.bool,onCTAClick:k.a.func,onDismiss:k.a.func,anchorLink:k.a.string,anchorLinkLabel:k.a.string},U.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=U}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var a,r=n(15),i=n.n(r),o=n(16),c=n.n(o),l=function(t){var n=e[t];if(!n)return!1;try{var a="__storage_test__";return n.setItem(a,a),n.removeItem(a),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return a||(a=l("sessionStorage")?e.sessionStorage:l("localStorage")?e.localStorage:new s),a}}).call(this,n(18))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a.b})),n.d(t,"b",(function(){return a.c})),n.d(t,"e",(function(){return r.a})),n.d(t,"f",(function(){return i.a})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return l.a})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return d}));var a=n(42),r=n(65),i=n(55),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t%7,a=0===n;if(a)return Object(i.a)(e,t);var r=t>7&&n<3,o=r?t-n:t+(7-n);return Object(i.a)(e,o)},c=(n(53),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}),l=n(45);function s(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var u=n(0);function d(){var e=function(e){return Object(u.sprintf)(
6
  /* translators: %s: number of days */
7
  Object(u._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,t){e.exports=googlesitekit.api},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return a}));var a="core/ui"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(e){return e instanceof Date&&!isNaN(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return a}));var a="core/location"},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(11),r=n.n(a),i=n(10),o=n.n(i),c=n(42),l=n(65),s=n(45),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;o()(Object(s.a)(e),c.c);var n=e.split("-"),a=r()(n,3),i=a[0],u=a[1],d=a[2],g=new Date(i,u-1,d);return g.setDate(g.getDate()-t),Object(l.a)(g)}},function(e,t,n){"use strict";(function(e){var a,r;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(a=e)||void 0===a||null===(r=a._googlesitekitBaseData)||void 0===r?void 0:r.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(8),o=n.n(i),c=n(24),l=function CTA(t){var n=t.title,a=t.description,r=t.ctaLink,i=t.ctaLabel,l=t.error,s=t.onClick,u=t["aria-label"];return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":l})},n&&e.createElement("h3",{className:"googlesitekit-cta__title"},n),a&&"string"==typeof a&&e.createElement("p",{className:"googlesitekit-cta__description"},a),a&&"string"!=typeof a&&e.createElement("div",{className:"googlesitekit-cta__description"},a),i&&e.createElement(c.a,{href:r,onClick:s,inverse:!l,caps:!0,arrow:!0,"aria-label":u},i))};l.propTypes={title:r.a.string.isRequired,description:r.a.oneOfType([r.a.string,r.a.node]),ctaLink:r.a.string,ctaLabel:r.a.string,"aria-label":r.a.string,error:r.a.bool,onClick:r.a.func},l.defaultProps={title:"",description:"",ctaLink:"",ctaLabel:"",error:!1,onClick:function(){}},t.a=l}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return g}));var a=n(104),r=e._googlesitekitBaseData||{},i=r.isFirstAdmin,o=r.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:r.trackingEnabled,trackingID:r.trackingID,referenceSiteURL:r.referenceSiteURL,userIDHash:r.userIDHash},l=Object(a.a)(c),s=l.enableTracking,u=l.disableTracking,d=l.isTrackingEnabled,g=l.trackEvent;function f(e){e?s():u()}!0===o&&f(d())}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GoogleChart}));var a=n(6),r=n.n(a),i=n(25),o=n.n(i),c=n(37),l=n.n(c),s=n(26),u=n.n(s),d=n(8),g=n.n(d),f=n(1),p=n.n(f),m=n(193),b=n(2),h=n(29);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GoogleChart(t){var n=t.chartEvents,a=t.chartType,r=t.children,i=t.className,c=t.data,s=t.getChartWrapper,d=t.height,f=t.loaded,p=t.loadingHeight,v=t.loadingWidth,y=t.onMouseOver,_=t.onMouseOut,O=t.onReady,k=t.onSelect,j=t.selectedStats,E=t.width,S=u()(t,["chartEvents","chartType","children","className","data","getChartWrapper","height","loaded","loadingHeight","loadingWidth","onMouseOver","onMouseOut","onReady","onSelect","selectedStats","width"]),D=[];(null==c?void 0:c.length)&&(D=c[0].reduce((function(e,t,n){return(null==t?void 0:t.role)?[].concat(l()(e),[n]):e}),[]));var w=c;(null==j?void 0:j.length)>0&&(w=c.map((function(e){return e.filter((function(e,t){return 0===t||j.includes(t-1)||D.includes(t-1)}))})));var R=p||d,C=v||E;R&&!C&&(C="100%"),C&&!R&&(R="100%");var N="PieChart"===a?"circular":"square",P=e.createElement("div",{className:"googlesitekit-chart-loading"},e.createElement(h.a,{className:"googlesitekit-chart-loading__wrapper",height:R,shape:N,width:C})),A=Object(b.useRef)(),x=Object(b.useRef)();if(Object(b.useEffect)((function(){return function(){if(x.current&&A.current){var e=x.current.visualization.events;e.removeAllListeners(A.current.getChart()),e.removeAllListeners(A.current)}}}),[]),Object(b.useLayoutEffect)((function(){var e,t;y&&(null===(e=x.current)||void 0===e||e.visualization.events.addListener(A.current.getChart(),"onmouseover",(function(e){y(e,{chartWrapper:A.current,google:x.current})})));_&&(null===(t=x.current)||void 0===t||t.visualization.events.addListener(A.current.getChart(),"onmouseout",(function(e){_(e,{chartWrapper:A.current,google:x.current})})))}),[y,_]),!f)return e.createElement("div",{className:g()("googlesitekit-chart","googlesitekit-chart-loading__forced",i)},P);var L=l()(n||[]);return O&&L.push({eventName:"ready",callback:O}),k&&L.push({eventName:"select",callback:k}),e.createElement("div",{className:g()("googlesitekit-chart","googlesitekit-chart--".concat(a),i)},e.createElement(m.a,o()({className:"googlesitekit-chart__inner",chartEvents:L,chartType:a,chartVersion:"49",data:w,loader:P,height:d,getChartWrapper:function(e,t){var n,a,r;e!==A.current&&(null===(n=x.current)||void 0===n||n.visualization.events.removeAllListeners(null===(a=A.current)||void 0===a?void 0:a.getChart()),null===(r=x.current)||void 0===r||r.visualization.events.removeAllListeners(A.current));A.current=e,x.current=t,s&&s(e,t)},width:E},S)),r)}GoogleChart.propTypes={className:p.a.string,children:p.a.node,chartEvents:p.a.arrayOf(p.a.shape({eventName:p.a.string,callback:p.a.func})),chartType:p.a.oneOf(["LineChart","PieChart"]).isRequired,data:p.a.array,getChartWrapper:p.a.func,height:p.a.string,loaded:p.a.bool,loadingHeight:p.a.string,loadingWidth:p.a.string,onMouseOut:p.a.func,onMouseOver:p.a.func,onReady:p.a.func,onSelect:p.a.func,selectedStats:p.a.arrayOf(p.a.number),width:p.a.string},GoogleChart.defaultProps=y(y({},m.a.defaultProps),{},{loaded:!0})}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(8),o=n.n(i),c=n(29);function PreviewTable(t){for(var n=t.rows,a=t.rowHeight,r=t.padding,i=[],l=0;n>l;l++)i.push(e.createElement("div",{className:"googlesitekit-preview-table__row",key:"table-row-"+l},e.createElement(c.a,{width:"100%",height:a+"px"})));return e.createElement("div",{className:o()("googlesitekit-preview-table",{"googlesitekit-preview-table--padding":r})},i)}PreviewTable.propTypes={rows:r.a.number,rowHeight:r.a.number,padding:r.a.bool},PreviewTable.defaultProps={rows:11,rowHeight:35,padding:!1},t.a=PreviewTable}).call(this,n(2))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return i}));var a={BOXES:"boxes",COMPOSITE:"composite"},r={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},function(e,t,n){"use strict";(function(e,a){var r=n(11),i=n.n(r),o=n(1),c=n.n(o),l=n(23),s=n(8),u=n.n(s),d=n(2);function TableOverflowContainer(t){var n=t.children,r=Object(d.useState)(!1),o=i()(r,2),c=o[0],s=o[1],g=Object(d.useRef)();Object(d.useEffect)((function(){f();var t=Object(l.debounce)(f,100);return e.addEventListener("resize",t),function(){return e.removeEventListener("resize",t)}}),[]);var f=function(){if(g.current){var e=g.current,t=e.scrollLeft,n=e.scrollWidth-e.offsetWidth;s(t<n-16&&0<n-16)}};return a.createElement("div",{onScroll:Object(l.debounce)(f,100),className:u()("googlesitekit-table-overflow",{"googlesitekit-table-overflow--gradient":c})},a.createElement("div",{ref:g,className:"googlesitekit-table-overflow__container"},n))}TableOverflowContainer.propTypes={children:c.a.element},t.a=TableOverflowContainer}).call(this,n(18),n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ProgressBar}));var a=n(1),r=n.n(a),i=n(8),o=n.n(i);function ProgressBar(t){var n=t.className,a=t.small,r=t.compress,i=t.indeterminate,c=t.height,l=t.progress,s=void 0!==c?Math.round(c/2):void 0,u=l?"scaleX(".concat(l,")"):void 0;return e.createElement("div",{role:"progressbar",style:{marginTop:s,marginBottom:s},className:o()("mdc-linear-progress",n,{"mdc-linear-progress--indeterminate":i,"mdc-linear-progress--small":a,"mdc-linear-progress--compress":r})},e.createElement("div",{className:"mdc-linear-progress__buffering-dots"}),e.createElement("div",{className:"mdc-linear-progress__buffer"}),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__primary-bar",style:{transform:u}},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar"},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})))}ProgressBar.propTypes={className:r.a.string,small:r.a.bool,compress:r.a.bool,indeterminate:r.a.bool,progress:r.a.number,height:r.a.number},ProgressBar.defaultProps={className:"",small:!1,compress:!1,indeterminate:!0,progress:0}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(10),r=n.n(a),i=n(42),o=n(53),c=function(e){var t=new Date(e);r()(Object(o.a)(t),i.a);var n="".concat(t.getMonth()+1),a="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,a.length<2?"0".concat(a):a].join("-")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(44);function r(e){return function(){e[a.a]=e[a.a]||[],e[a.a].push(arguments)}}},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,a=t.invertColor,r=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":a}),width:r,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:r.a.string,invertColor:r.a.bool,width:r.a.number,height:r.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(15),r=n.n(a),i=n(16),o=n.n(i),c=n(21),l=n.n(c),s=n(22),u=n.n(s),d=n(13),g=n.n(d),f=n(1),p=n.n(f),m=n(2);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var h=function(t){l()(DashboardModuleHeader,t);var n=b(DashboardModuleHeader);function DashboardModuleHeader(){return r()(this,DashboardModuleHeader),n.apply(this,arguments)}return o()(DashboardModuleHeader,[{key:"render",value:function(){var t=this.props,n=t.title,a=t.description;return e.createElement("header",{className:"googlesitekit-dashboard-module-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-4-phone "},e.createElement("h3",{className:" googlesitekit-heading-3 googlesitekit-dashboard-module-header__title "},n),a&&e.createElement("p",{className:"googlesitekit-dashboard-module-header__description"},a))))}}]),DashboardModuleHeader}(m.Component);h.propTypes={title:p.a.string,description:p.a.string},h.defaultProps={title:"",description:""},t.a=h}).call(this,n(2))},function(e,t,n){"use strict";var a=n(131);n.d(t,"a",(function(){return a.a}));var r=n(132);n.d(t,"c",(function(){return r.a}));var i=n(133);n.d(t,"b",(function(){return i.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(10),r=n.n(a),i=n(45),o=function(e){var t=e.startDate,n=e.endDate;return r()(Object(i.a)(t),"A valid startDate is required."),r()(Object(i.a)(n),"A valid endDate is required."),{start_date:t.replace(/-/g,""),end_date:n.replace(/-/g,"")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(10),r=n.n(a),i=n(45),o=function(e){var t=e.startDate,n=e.endDate,a=e.compareStartDate,o=e.compareEndDate;r()(Object(i.a)(t),"A valid startDate is required."),r()(Object(i.a)(n),"A valid endDate is required.");var c={"_u.date00":t.replace(/-/g,""),"_u.date01":n.replace(/-/g,"")};return(a||o)&&(r()(Object(i.a)(a)&&Object(i.a)(o),"Valid compareStartDate and compareEndDate values are required."),c["_u.date10"]=a.replace(/-/g,""),c["_u.date11"]=o.replace(/-/g,"")),c}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(33),r=n.n(a),i=n(97),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(a){var i=t[a];i&&"object"===r()(i)&&!Array.isArray(i)&&(i=e(i)),n[a]=i})),n}(e)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var a=n(80),r=n.n(a),i="missing_required_scopes";function o(e){return r()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function l(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(59);function Sparkline(t){var n=t.change,a=t.data,r=t.invertChangeColor,o=t.loadingHeight;if(!a)return null;var c=r?"red":"green",l=r?"green":"red",s={title:"",backgroundColor:"transparent",curveType:"line",width:"100%",height:"50",enableInteractivity:!1,chartArea:{height:"100%",width:"100%"},legend:{position:"none"},axisFontSize:0,hAxis:{baselineColor:"none",ticks:[]},vAxis:{baselineColor:"none",ticks:[]},axes:[],colors:[0<=(parseFloat(n)||0)?c:l]};return a.slice(1).some((function(e){return e[1]>0}))||(s.vAxis.minValue=0,s.vAxis.maxValue=1),e.createElement("div",{className:"googlesitekit-analytics-sparkline-chart-wrap"},e.createElement(i.a,{chartType:"LineChart",data:a,loadingHeight:o,options:s}))}Sparkline.propTypes={invertChangeColor:r.a.bool,loadingHeight:r.a.string},Sparkline.defaultProps={invertChangeColor:!1,loadingHeight:"46px"},t.a=Sparkline}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var a=n(33),r=n.n(a),i=n(107),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===r()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},,function(e,t,n){"use strict";n.d(t,"f",(function(){return s.a})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m.a})),n.d(t,"e",(function(){return b})),n.d(t,"a",(function(){return v})),n.d(t,"d",(function(){return y}));var a=n(186),r=n.n(a),i=n(228),o=n.n(i),c=n(5),l=n(116),s=n(217),u=n(8),d=n.n(u),g=n(0),f=n(55),p=function(e,t,n,a,r){var i=[[{type:"date",label:Object(g.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:"number",label:n},{type:"number",label:Object(g.__)("Previous period","google-site-kit")}]],o=function(e){return new Date("".concat(e," 00:00:00"))},l=Object(c.h)(),s={weekday:"short",month:"short",day:"numeric"};return e.forEach((function(e,u){var p,m,b=e[a],h=e.keys[0],v=(null===(p=t[u])||void 0===p?void 0:p[a])||0,y=(null===(m=t[u])||void 0===m?void 0:m.keys[0])||Object(f.a)(h,r),_=Object(g.sprintf)(
8
  /* translators: 1: date for user stats, 2: previous date for user stats comparison */
35
  Object(u.__)("%sK","google-site-kit"),v(m(e),e%10==0?{}:t)):v(e,{signDisplay:"never",maximumFractionDigits:1})},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(s.isFinite)(e)?e:Number(e),Object(s.isFinite)(e)||(console.warn("Invalid number",e,r()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return f(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(s.isPlainObject)(t)&&(n=g({},t))}var a=n,i=a.style,o=void 0===i?"metric":i;return"metric"===o?b(e):"duration"===o?f(e,t):v(e,n)},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?_():n,r=l()(t,["locale"]);return new Intl.NumberFormat(a,r).format(e)},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?_():n,r=t.style,i=void 0===r?"long":r,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(a,{style:i,type:c});return l.format(e)}
36
  /* translators: used between list items, there is a space after the comma. */var s=Object(u.__)(", ","google-site-kit");return e.join(s)},_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(s.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var a=n.match(/^(\w{2})?(_)?(\w{2})/);if(a&&a[0])return a[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var a=n(1),r=n.n(a),i=n(0),o=n(4),c=n.n(o),l=n(31),s=n(73),u=n(127),d=n(92),g=n(57),f=c.a.useSelect;function ReportError(t){var n,a=t.moduleSlug,r=t.error,o=f((function(e){return e(l.a).getModule(a)})),c=Object(i.sprintf)(Object(i.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name),p=r.message;Object(s.b)(r)&&(
37
  /* translators: %s: module name */
38
+ c=Object(i.sprintf)(Object(i.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),p=Object(u.a)(p,o));var m=null==r||null===(n=r.data)||void 0===n?void 0:n.reconnectURL,b=m?e.createElement(d.a,{message:p,reconnectURL:m}):p;return e.createElement(g.a,{title:c,description:b,error:!0})}ReportError.propTypes={moduleSlug:r.a.string.isRequired,error:r.a.object.isRequired}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i}));var a=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},r=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function i(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="core",r="modules"},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return b})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return v}));var a=n(7),r=n.n(a),i=n(14),o=n.n(i);n(37);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var s,u="googlesitekit_".concat("1.34.1","_"),d=["sessionStorage","localStorage"],g=[].concat(d),f=function(){var t=o()(r.a.mark((function t(n){var a,i;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",a.setItem(i,i),a.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==a.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),p=function(){var t=o()(r.a.mark((function t(){var n,a,i,o,l;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(a=n.admin)||void 0===a?void 0:a.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}i=c(g),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(l=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,f(l);case 12:if(!t.sent){t.next=14;break}s=e[l];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(r.a.mark((function e(t){var n,a,i,o,c,l,s;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=10;break}if(!(a=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(a),o=i.timestamp,c=i.ttl,l=i.value,s=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:l,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){var t=o()(r.a.mark((function t(n,a){var i,o,c,l,s,d,g,f,m=arguments;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,l=i.timestamp,s=void 0===l?Math.round(Date.now()/1e3):l,d=i.isError,g=void 0!==d&&d,t.next=3,p();case 3:if(!(f=t.sent)){t.next=14;break}return t.prev=5,f.setItem("".concat(u).concat(n),JSON.stringify({timestamp:s,ttl:c,value:a,isError:g})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),h=function(){var t=o()(r.a.mark((function t(n){var a;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(a=t.sent)){t.next=13;break}return t.prev=4,a.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),v=function(){var t=o()(r.a.mark((function t(){var n,a,i,o;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,a=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&a.push(o.substring(u.length));return t.abrupt("return",a);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(18))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var a=n(1),r=n.n(a),i=n(0),o=n(4),c=n.n(o),l=n(31),s=n(57),u=c.a.useSelect;function ReportZero(t){var n=t.moduleSlug,a=u((function(e){return e(l.a).getModule(n)}));return e.createElement(s.a,{title:
39
  /* translators: %s: Module name */
40
  Object(i.sprintf)(Object(i.__)("%s Gathering Data","google-site-kit"),null==a?void 0:a.name),description:Object(i.sprintf)(
41
  /* translators: %s: Module name */
51
  /* translators: %s: Module name */
52
  Object(o.__)("%s module setup needs to be completed","google-site-kit"),l.name),ctaLabel:Object(o.__)("Complete setup","google-site-kit"),"aria-label":Object(o.sprintf)(
53
  /* translators: %s: Module name */
54
+ Object(o.__)("Complete %s setup","google-site-kit"),l.name),onClick:v}):null};m.propTypes={moduleSlug:r.a.string.isRequired,title:r.a.string,description:r.a.string},t.a=m}).call(this,n(2))},function(e,t,n){"use strict";function a(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function r(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[a,r,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(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(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var a=n(229),r=n(67),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(a.a)(e.createElement(r.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,a,r,i,o,c,l,s,u,d,g,f,p,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(a=n.rows)||void 0===a?void 0:a.length)||(null==e||null===(r=e[0])||void 0===r||null===(i=r.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(l=c.metrics)||void 0===l||null===(s=l[0])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(g=d.data)||void 0===g||null===(f=g.totals)||void 0===f||null===(p=f[0])||void 0===p||null===(m=p.values)||void 0===m?void 0:m[0])}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var a=n(6),r=n.n(a),i=n(105),o=n(106);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=l(l({},s),t);return r.referenceSiteURL&&(r.referenceSiteURL=r.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(r,n),disableTracking:function(){r.trackingEnabled=!1},isTrackingEnabled:function(){return!!r.trackingEnabled},trackEvent:Object(o.a)(r,n,a)}}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var a=n(66),r=n(44);function i(t,n){var i=Object(a.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(r.b,"]"))){var a=n.createElement("script");a.setAttribute(r.b,""),a.async=!0,a.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(r.a),n.head.appendChild(a),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f}));var a=n(7),r=n.n(a),i=n(6),o=n.n(i),c=n(14),l=n.n(c),s=n(66),u=n(56);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(t,n,a){var i=Object(s.a)(n);return function(){var n=l()(r.a.mark((function n(o,c,l,s){var d,f,p,m,b,h,v,y;return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=t.isFirstAdmin,m=t.referenceSiteURL,b=t.trackingEnabled,h=t.trackingID,v=t.userIDHash,!(null===(d=a._gaUserPrefs)||void 0===d||null===(f=d.ioo)||void 0===f?void 0:f.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(b){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:h,event_category:o,event_label:l,value:s,dimension1:m,dimension2:p?"true":"false",dimension3:v,dimension4:"1.34.1",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,g(g({},y),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,a,r){return n.apply(this,arguments)}}()}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));var a=n(146),r=n.n(a)()(e)}).call(this,n(18))},function(e,t,n){"use strict";(function(e){var a=n(0),r=n(24);t.a=function HelpLink(){var t=Object(a.__)("Need help?","google-site-kit");return e.createElement(r.a,{className:"googlesitekit-help-link",href:"https://sitekit.withgoogle.com/documentation/",external:!0},t)}}).call(this,n(2))},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportTable}));var a=n(8),r=n.n(a),i=n(147),o=n.n(i),c=n(10),l=n.n(c),s=n(1),u=n.n(s);function ReportTable(t){var n=t.rows,a=t.columns,i=t.className,c=t.limit;l()(Array.isArray(n),"rows must be an array."),l()(Array.isArray(a),"columns must be an array."),a.forEach((function(e){var t=e.Component,n=e.field,a=void 0===n?null:n;l()(t||null!==a,"each column must define a Component and/or a field.")})),l()(Number.isInteger(c)||void 0===c,"limit must be an integer, if provided.");var s=a.filter((function(e){return!e.hideOnMobile}));return e.createElement("div",{className:r()("googlesitekit-table","googlesitekit-table--with-list",i)},e.createElement("table",{className:r()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(a.length,"-col"),"googlesitekit-table__wrapper--mobile-".concat(s.length,"-col"))},e.createElement("thead",{className:"googlesitekit-table__head"},e.createElement("tr",{className:"googlesitekit-table__head-row"},a.map((function(t,n){var a=t.title,i=t.description,o=t.primary,c=t.hideOnMobile,l=t.className;return e.createElement("th",{className:r()("googlesitekit-table__head-item",{"googlesitekit-table__head-item--primary":o},{"hidden-on-mobile":c},l),"data-tooltip":i,key:"googlesitekit-table__head-row-".concat(n)},a)})))),e.createElement("tbody",{className:"googlesitekit-table__body"},n.slice(0,c).map((function(t,n){return e.createElement("tr",{className:"googlesitekit-table__body-row",key:"googlesitekit-table__body-row-".concat(n)},a.map((function(n,a){var i=n.Component,c=n.field,l=n.hideOnMobile,s=n.className,u=void 0!==c?o()(t,c):void 0;return e.createElement("td",{key:"googlesitekit-table__body-item-".concat(a),className:r()("googlesitekit-table__body-item",{"hidden-on-mobile":l},s)},e.createElement("div",{className:"googlesitekit-table__body-item-content"},i&&e.createElement(i,{row:t,fieldValue:u}),!i&&u))})))})))))}ReportTable.propTypes={rows:u.a.arrayOf(u.a.oneOfType([u.a.array,u.a.object])).isRequired,columns:u.a.arrayOf(u.a.shape({title:u.a.string,description:u.a.string,primary:u.a.bool,className:u.a.string,field:u.a.string,hideOnMobile:u.a.bool,Component:u.a.componentType})).isRequired,className:u.a.string,limit:u.a.number}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(0),r=n(5),i=n(73),o=n(127),c=n(92),l=n(57),s=n(96),u=n(235);t.a=function(t,n){var d,g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=arguments.length>3&&void 0!==arguments[3]&&arguments[3],p=arguments.length>4&&void 0!==arguments[4]&&arguments[4],m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},b=Object(r.i)(),h=b[t],v=Object(a.sprintf)(Object(a.__)("Data error in %s","google-site-kit"),null==h?void 0:h.name),y=n;Object(i.b)(m)&&(
55
  /* translators: %s: module name */
56
  v=Object(a.sprintf)(Object(a.__)("Insufficient permissions in %s","google-site-kit"),null==h?void 0:h.name),y=Object(o.a)(y,h));var _=null==m||null===(d=m.data)||void 0===d?void 0:d.reconnectURL,O=_?e.createElement(c.a,{message:y,reconnectURL:_}):y,k=e.createElement(l.a,{title:v,description:O,error:!0});return"Invalid Credentials"===n&&Object(r.u)(u.a),Object(s.a)(k,g,f,p)}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(35),r=n.n(a),i=n(154),o=e._googlesitekitAPIFetchData||{},c=o.nonce,l=o.nonceEndpoint,s=o.preloadedData,u=o.rootURL;r.a.nonceEndpoint=l,r.a.nonceMiddleware=r.a.createNonceMiddleware(c),r.a.rootURLMiddleware=r.a.createRootURLMiddleware(u),r.a.preloadingMiddleware=Object(i.a)(s),r.a.use(r.a.nonceMiddleware),r.a.use(r.a.mediaUploadMiddleware),r.a.use(r.a.rootURLMiddleware),r.a.use(r.a.preloadingMiddleware),t.default=r.a}).call(this,n(18))},,function(e,t,n){"use strict";t.a=function(e){if("string"==typeof e&&e.match(/[0-9]{8}/)){var t=e.slice(0,4),n=Number(e.slice(4,6))-1,a=e.slice(6,8);return new Date(t,n.toString(),a)}return!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(10),r=n.n(a),i=function(e,t){var n=t.dateRangeLength;r()(Array.isArray(e),"report must be an array to partition."),r()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var a=-1*n;return{currentRange:e.slice(a),compareRange:e.slice(2*a,a)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PageHeader}));var a=n(8),r=n.n(a),i=n(1),o=n.n(i);function PageHeader(t){var n=t.title,a=t.icon,i=t.className,o=t.status,c=t.statusText,l=t.fullWidth,s=t.children,u=l?"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-12\n\t\t":"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-4-phone\n\t\tmdc-layout-grid__cell--span-4-tablet\n\t\tmdc-layout-grid__cell--span-6-desktop\n\t\t",d=""!==o||Boolean(s);return e.createElement("header",{className:"googlesitekit-page-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:u},a,e.createElement("h1",{className:r()("googlesitekit-page-header__title",i)},n)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--align-right-tablet mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},e.createElement("div",{className:"googlesitekit-page-header__details"},o&&e.createElement("span",{className:r()("googlesitekit-page-header__status","googlesitekit-page-header__status--".concat(o))},c),s))))}PageHeader.propTypes={title:o.a.string,icon:o.a.node,className:o.a.string,status:o.a.string,statusText:o.a.string,fullWidth:o.a.bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}}).call(this,n(2))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return g}));var r=n(6),i=n.n(r),o=n(8),c=n.n(o),l=n(23),s=n(78),u=n(24),d=n(5),g=function(t,n,r){var o=[],g=r.links,f=r.source,p=r.showURLs,m=r.useAdminURLs,b=void 0!==m&&m,h=r.PrimaryLink,v=void 0===h?u.a:h;r.cap&&(t=t.slice(0,r.cap)),Object(l.each)(t,(function(t,n){var i=[],s=g&&g[n],f=s&&"/"===s[0]?Object(d.g)(e._googlesitekitLegacyData.admin.siteURL,s):s;Object(l.each)(t,(function(e,n){"string"==typeof e&&(e=e.replace(/\(none\)/gi,"direct"));var o=r&&r.hideColumns&&r.hideColumns.mobile.includes(n);i.push(a.createElement("td",{key:"cell-"+n,className:c()("googlesitekit-table__body-item",{"hidden-on-mobile":o})},t[0]===e&&s?a.createElement("div",{className:"googlesitekit-table__body-item-content"},a.createElement(v,{className:"googlesitekit-table__body-item-link",href:b?Object(d.k)("googlesitekit-dashboard",{permaLink:f}):s,external:!b,inherit:!0},e),p&&a.createElement(u.a,{className:"googlesitekit-table__body-item-url",href:s,inherit:!0,external:!0},s)):a.createElement("div",{className:"googlesitekit-table__body-item-content"},e)))})),o.push(a.createElement("tr",{key:"tr-"+n,className:"googlesitekit-table__body-row"},i))}));var y=t&&t[0]&&t[0].length?t[0].length:1,_=r.hideColumns&&r.hideColumns.mobile&&r.hideColumns.mobile.length>0?y-r.hideColumns.mobile.length:y;return a.createElement("div",{className:c()("googlesitekit-table",{"googlesitekit-table--with-list":!r||!r.disableListMode})},a.createElement("table",{className:c()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(y,"-col"),i()({},"googlesitekit-table__wrapper--mobile-".concat(_,"-col"),_!==y))},a.createElement("thead",{className:"googlesitekit-table__head"},a.createElement("tr",{key:"gksc_data_row_header-wrap",style:r&&r.hideHeader?{display:"none"}:{},className:"googlesitekit-table__head-row"},n.map((function(e,t){var n=r&&r.hideColumns&&r.hideColumns.mobile.includes(t);return a.createElement("th",{key:"gksc_data_row_header-".concat(t),className:c()("googlesitekit-table__head-item",{"googlesitekit-table__head-item--primary":e.primary},{"hidden-on-mobile":n}),"data-tooltip":e.tooltip},e.title)})))),a.createElement("tbody",{className:"googlesitekit-table__body"},o)),f&&a.createElement(s.a,{className:"googlesitekit-table__source",name:f.name,href:f.link}))}}).call(this,n(18),n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(2),r=n(4),i=n.n(r),o=n(62),c=i.a.useDispatch;function l(e,t,n){var r=c(o.b),i=r.setWidgetState,l=r.unsetWidgetState;Object(a.useEffect)((function(){return i(e,t,n),function(){l(e,t,n)}}),[e,t,n,i,l])}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSettingsWarning}));var a=n(4),r=n.n(a),i=n(31),o=n(8),c=n.n(o),l=n(177),s=r.a.useSelect;function ModuleSettingsWarning(t){var n=t.slug,a=s((function(e){var t;return null===(t=e(i.a))||void 0===t?void 0:t.getCheckRequirementsError(n)}));return a?e.createElement("div",{className:c()("googlesitekit-settings-module-warning","googlesitekit-settings-module-warning--modules-list")},e.createElement(l.a,{height:"20",width:"23"})," ",a.message):null}}).call(this,n(2))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return v}));var a=n(26),r=n.n(a),i=n(6),o=n.n(i),c=n(7),l=n.n(c),s=n(10),u=n.n(s),d=n(4),g=n.n(d),f=n(89),p=g.a.createRegistryControl,m=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},a={deleteSnapshot:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:l.a.mark((function e(){var t,n,a,r,i,o,c=arguments;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,a=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(r=e.sent,i=r.cacheHit,o=r.value,!i){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!a){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e)})),createSnapshot:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},i=(t={},o()(t,"DELETE_SNAPSHOT",(function(){return Object(f.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",p((function(t){return function(){return Object(f.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(f.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:a,controls:i,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,a=t.type,i=t.payload;switch(a){case"SET_STATE_FROM_SNAPSHOT":var o=i.snapshot,c=(o.error,r()(o,["error"]));return c;default:return e}}}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(b(e).map((function(e){return e.getActions().createSnapshot()})))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(b(e).map((function(e){return e.getActions().restoreSnapshot()})))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0);function r(e,t){var n=t||{},r=n.slug,i=void 0===r?"":r,o=n.name,c=void 0===o?"":o,l=n.owner,s=void 0===l?null:l;if(!i||!c)return e;var u="",d="";return"analytics"===i?e.match(/account/i)?u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics account, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit"):e.match(/property/i)?u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics property, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit"):e.match(/view/i)&&(u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics view, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit")):"search-console"===i&&(u=Object(a.__)("Your Google account does not have sufficient permissions for this Search Console property, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit")),u||(u=Object(a.sprintf)(
57
  /* translators: %s: module name */
dist/assets/js/{googlesitekit-api.1213cfa4a194933050d7.js → googlesitekit-api.655323c0123cc057ce2b.js} RENAMED
@@ -1,4 +1,4 @@
1
- (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[4],{0:function(t,e){t.exports=googlesitekit.i18n},101:function(t,e,n){"use strict";function r(t){return t.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(t){return"<p>".concat(t.replace(/\n{2,}/g,"</p><p>"),"</p>")}function o(t){return t.replace(/\n/gi,"<br>")}function i(t){for(var e=t,n=0,i=[r,a,o];n<i.length;n++){e=(0,i[n])(e)}return e}n.d(e,"a",(function(){return i}))},102:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(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)]}},103:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var r=n(229),a=n(67),o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(e)))return"";var o=n.invertColor,i=void 0!==o&&o;return Object(r.a)(t.createElement(a.a,{direction:e>0?"up":"down",invertColor:i}))},i=function(t){var e,n,r,a,o,i,c,u,s,l,f,d,v,p,g;if(void 0!==t)return 1===(null==t||null===(e=t[0])||void 0===e||null===(n=e.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==t||null===(a=t[0])||void 0===a||null===(o=a.data)||void 0===o||null===(i=o.rows)||void 0===i||null===(c=i[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==t||null===(f=t[0])||void 0===f||null===(d=f.data)||void 0===d||null===(v=d.totals)||void 0===v||null===(p=v[0])||void 0===p||null===(g=p.values)||void 0===g?void 0:g[0])}}).call(this,n(2))},104:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r=n(6),a=n.n(r),o=n(105),i=n(106);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){a()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,a=u(u({},s),e);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(o.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(i.a)(a,n,r)}}}).call(this,n(18))},105:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o}));var r=n(66),a=n(44);function o(e,n){var o=Object(r.a)(n);return function(){e.trackingEnabled=!0;var n=t.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(e.trackingID,"&l=").concat(a.a),n.head.appendChild(r),o("js",new Date),o("config",e.trackingID)}}}}).call(this,n(18))},106:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return v}));var r=n(7),a=n.n(r),o=n(6),i=n.n(o),c=n(14),u=n.n(c),s=n(66),l=n(56);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(e,n,r){var o=Object(s.a)(n);return function(){var n=u()(a.a.mark((function n(i,c,u,s){var f,v,p,g,b,h,m,y;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=e.isFirstAdmin,g=e.referenceSiteURL,b=e.trackingEnabled,h=e.trackingID,m=e.userIDHash,!(null===(f=r._gaUserPrefs)||void 0===f||null===(v=f.ioo)||void 0===v?void 0:v.call(f))){n.next=3;break}return n.abrupt("return");case 3:if(b){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:h,event_category:i,event_label:u,value:s,dimension1:g,dimension2:p?"true":"false",dimension3:m,dimension4:"1.34.0",dimension5:Array.from(l.a).join(", ")},n.abrupt("return",new Promise((function(e){var n=setTimeout((function(){t.console.warn('Tracking event "'.concat(c,'" (category "').concat(i,'") took too long to fire.')),e()}),1e3);o("event",c,d(d({},y),{},{event_callback:function(){clearTimeout(n),e()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(t,e,r,a){return n.apply(this,arguments)}}()}}).call(this,n(18))},107:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return a}));var r=n(146),a=n.n(r)()(t)}).call(this,n(18))},113:function(t,e,n){"use strict";(function(t){var r=n(35),a=n.n(r),o=n(154),i=t._googlesitekitAPIFetchData||{},c=i.nonce,u=i.nonceEndpoint,s=i.preloadedData,l=i.rootURL;a.a.nonceEndpoint=u,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(l),a.a.preloadingMiddleware=Object(o.a)(s),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),e.default=a.a}).call(this,n(18))},12:function(t,e,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return i}));var r="core/user",a="connected_url_mismatch",o="googlesitekit_view_dashboard",i="googlesitekit_manage_options"},154:function(t,e,n){"use strict";var r=n(152);e.a=function(t){var e=Object.keys(t).reduce((function(e,n){return e[Object(r.getStablePath)(n)]=t[n],e}),{}),n=!1;return function(t,a){if(n)return a(t);setTimeout((function(){n=!0}),1e3);var o=t.parse,i=void 0===o||o,c=t.path;if("string"==typeof t.path){var u,s=(null===(u=t.method)||void 0===u?void 0:u.toUpperCase())||"GET",l=Object(r.getStablePath)(c);if(i&&"GET"===s&&e[l]){var f=Promise.resolve(e[l].body);return delete e[l],f}if("OPTIONS"===s&&e[s]&&e[s][l]){var d=Promise.resolve(e[s][l]);return delete e[s][l],d}}return a(t)}}},171:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(7),a=n.n(r),o=n(14),i=n.n(o),c=n(5),u=["fetch_error"];function s(t){return l.apply(this,arguments)}function l(){return(l=i()(a.a.mark((function t(e){var n,r,o,i,s,l,f,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.method,i=e.type,s=e.identifier,l=e.datapoint,(f=e.error)&&!u.includes(null==f?void 0:f.code)){t.next=3;break}return t.abrupt("return");case 3:return d="code: ".concat(f.code),(null===(n=f.data)||void 0===n?void 0:n.reason)&&(d+=", reason: ".concat(f.data.reason)),t.next=7,Object(c.w)("api_error","".concat(o,":").concat(i,"/").concat(s,"/data/").concat(l),"".concat(f.message," (").concat(d,")"),(null===(r=f.data)||void 0===r?void 0:r.status)||f.code);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},32:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return c}));var r=n(25),a=n.n(r),o=n(2),i=function(t){return function(e){return function FilteredComponent(n){return Object(o.createElement)(o.Fragment,{},"",Object(o.createElement)(e,n),t)}}},c=function(e,n){return function(r){return function InnerComponent(o){return t.createElement(e,a()({},o,n,{OriginalComponent:r}))}}}}).call(this,n(2))},391:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return h}));var r=n(7),a=n.n(r),o=n(14),i=n.n(o),c=n(10),u=n.n(c),s=n(113),l=n(99),f=n(89),d=n(5),v=n(73),p=n(171),g=n(12),b=!0,h=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=[t,e,n].filter((function(t){return!!t&&t.length}));return 3===a.length&&r&&r.constructor===Object&&Object.keys(r).length&&a.push(Object(d.v)(r)),a.join("::")},m=function(e){var n,r,a,o,i=null===(n=t.googlesitekit)||void 0===n||null===(r=n.data)||void 0===r||null===(a=r.dispatch)||void 0===a?void 0:a.call(r,g.a);i&&(e.code===v.a?i.setPermissionScopeError(e):(null===(o=e.data)||void 0===o?void 0:o.reconnectURL)&&i.setAuthError(e))},y=function(){var e=i()(a.a.mark((function e(n,r,o){var i,c,d,v,g,b,y,O,w,j,_,x,E,S,D,P,I=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=I.length>3&&void 0!==I[3]?I[3]:{},c=i.bodyParams,d=i.cacheTTL,v=void 0===d?3600:d,g=i.method,b=void 0===g?"GET":g,y=i.queryParams,O=i.useCache,w=void 0===O?void 0:O,u()(n,"`type` argument for requests is required."),u()(r,"`identifier` argument for requests is required."),u()(o,"`datapoint` argument for requests is required."),j="GET"===b&&(void 0!==w?w:k()),_=h(n,r,o,y),!j){e.next=18;break}return e.next=9,Object(f.b)(_);case 9:if(x=e.sent,E=x.cacheHit,S=x.value,!x.isError){e.next=16;break}throw m(S),S;case 16:if(!E){e.next=18;break}return e.abrupt("return",S);case 18:return e.prev=18,e.next=21,Object(s.default)({data:c,method:b,path:Object(l.a)("/google-site-kit/v1/".concat(n,"/").concat(r,"/data/").concat(o),y)});case 21:if(D=e.sent,!j){e.next=25;break}return e.next=25,Object(f.d)(_,D,{ttl:v});case 25:return e.abrupt("return",D);case 28:if(e.prev=28,e.t0=e.catch(18),!(null===e.t0||void 0===e.t0||null===(P=e.t0.data)||void 0===P?void 0:P.cacheTTL)){e.next=33;break}return e.next=33,Object(f.d)(_,e.t0,{ttl:e.t0.data.cacheTTL,isError:!0});case 33:throw Object(p.a)({method:b,datapoint:o,type:n,identifier:r,error:e.t0}),m(e.t0),t.console.error("Google Site Kit API Error","method:".concat(b),"datapoint:".concat(o),"type:".concat(n),"identifier:".concat(r),'error:"'.concat(e.t0.message,'"')),e.t0;case 37:case"end":return e.stop()}}),e,null,[[18,28]])})));return function(t,n,r){return e.apply(this,arguments)}}(),O=function(){var t=i()(a.a.mark((function t(e,n,r,o){var i,c,u,s,l,f=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=f.length>4&&void 0!==f[4]?f[4]:{},c=i.cacheTTL,u=void 0===c?3600:c,s=i.useCache,l=void 0===s?void 0:s,t.abrupt("return",y(e,n,r,{cacheTTL:u,queryParams:o,useCache:l}));case 2:case"end":return t.stop()}}),t)})));return function(e,n,r,a){return t.apply(this,arguments)}}(),w=function(){var t=i()(a.a.mark((function t(e,n,r,o){var i,c,u,s,l,f,d=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=d.length>4&&void 0!==d[4]?d[4]:{},c=i.method,u=void 0===c?"POST":c,s=i.queryParams,l=void 0===s?{}:s,t.next=3,y(e,n,r,{bodyParams:{data:o},method:u,queryParams:l,useCache:!1});case 3:return f=t.sent,t.next=6,j(e,n,r);case 6:return t.abrupt("return",f);case 7:case"end":return t.stop()}}),t)})));return function(e,n,r,a){return t.apply(this,arguments)}}(),k=function(){return b},j=function(){var t=i()(a.a.mark((function t(e,n,r){var o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=h(e,n,r),t.next=3,Object(f.c)();case 3:t.sent.forEach((function(t){0===t.indexOf(o)&&Object(f.a)(t)}));case 5:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),_={invalidateCache:j,get:O,set:w,setUsingCache:function(t){return b=!!t},usingCache:k};e.b=_}).call(this,n(18))},42:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return o}));var r="Date param must construct to a valid date instance or be a valid date instance itself.",a="Invalid dateString parameter, it must be a string.",o='Invalid date range, it must be a string with the format "last-x-days".'},44:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},45:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(53),a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="string"==typeof t;if(!e)return!1;var n=t.split("-");return 3===n.length&&Object(r.a)(new Date(t))}},48:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r,a=n(15),o=n.n(a),i=n(16),c=n.n(i),u=function(e){var n=t[e];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==n.length}},s=function(){function NullStorage(){o()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return r||(r=u("sessionStorage")?t.sessionStorage:u("localStorage")?t.localStorage:new s),r}}).call(this,n(18))},5:function(t,e,n){"use strict";(function(t){n.d(e,"l",(function(){return x})),n.d(e,"a",(function(){return E})),n.d(e,"i",(function(){return S})),n.d(e,"k",(function(){return D})),n.d(e,"y",(function(){return P})),n.d(e,"u",(function(){return I})),n.d(e,"d",(function(){return L}));var r=n(6),a=n.n(r),o=n(33),i=n.n(o),c=n(145),u=n.n(c),s=n(139),l=n.n(s),f=n(17),d=n(99),v=n(58);n.d(e,"w",(function(){return v.b}));var p=n(32),g=n(75);n.d(e,"t",(function(){return g.a})),n.d(e,"x",(function(){return g.b}));var b=n(72);n.d(e,"v",(function(){return b.a}));var h=n(84);n.d(e,"b",(function(){return h.b})),n.d(e,"j",(function(){return h.c}));n(48);var m=n(85);n.d(e,"h",(function(){return m.a})),n.d(e,"o",(function(){return m.b})),n.d(e,"r",(function(){return m.c})),n.d(e,"s",(function(){return m.d})),n.d(e,"e",(function(){return p.b}));var y=n(101);n.d(e,"p",(function(){return y.a}));var O=n(102);n.d(e,"c",(function(){return O.a}));n(50);var w=n(103);n.d(e,"f",(function(){return w.a})),n.d(e,"n",(function(){return w.b}));var k=n(98);function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){a()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n.d(e,"g",(function(){return k.a})),n.d(e,"m",(function(){return k.b})),n.d(e,"q",(function(){return k.c}));var x=function(t){switch(t){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},E=function(t,e){if("0"===t||0===t||isNaN(t))return null;var n=(e-t)/t;return isNaN(n)||!u()(n)?null:n},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t._googlesitekitLegacyData,n=e.modules;return n?Object.keys(n).reduce((function(t,e){return"object"!==i()(n[e])||void 0===n[e].slug||void 0===n[e].name||n[e].slug!==e?t:_(_({},t),{},a()({},e,n[e]))}),{}):{}},D=function(e,n){var r=t._googlesitekitLegacyData.admin.adminRoot;return e||(e="googlesitekit-dashboard"),n=_({page:e},n),Object(d.a)(r,n)},P=function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}},I=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(f.b)("googlesitekit.ErrorNotification","googlesitekit.ErrorNotification",Object(p.b)(t,e),1)},L=function(t){if(!t)return"";var e=t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(e)})).replace(/(\\)/g,"");return l()(e)}}).call(this,n(18))},50:function(t,e,n){"use strict";n.d(e,"a",(function(){return r.b})),n.d(e,"b",(function(){return r.c})),n.d(e,"e",(function(){return a.a})),n.d(e,"f",(function(){return o.a})),n.d(e,"g",(function(){return i})),n.d(e,"h",(function(){return c})),n.d(e,"i",(function(){return u.a})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return f}));var r=n(42),a=n(65),o=n(55),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e%7,r=0===n;if(r)return Object(o.a)(t,e);var a=e>7&&n<3,i=a?e-n:e+(7-n);return Object(o.a)(t,i)},c=(n(53),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.split("-");return 3===e.length&&"last"===e[0]&&!Number.isNaN(e[1])&&!Number.isNaN(parseFloat(e[1]))&&"days"===e[2]}),u=n(45);function s(t){var e=t.match(/last-(\d+)-days/);if(e&&e[1])return parseInt(e[1],10);throw new Error("Unrecognized date range slug.")}var l=n(0);function f(){var t=function(t){return Object(l.sprintf)(
2
  /* translators: %s: number of days */
3
  Object(l._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}}}},53:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t instanceof Date&&!isNaN(t)}},55:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(11),a=n.n(r),o=n(10),i=n.n(o),c=n(42),u=n(65),s=n(45),l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;i()(Object(s.a)(t),c.c);var n=t.split("-"),r=a()(n,3),o=r[0],l=r[1],f=r[2],d=new Date(o,l-1,f);return d.setDate(d.getDate()-e),Object(u.a)(d)}},56:function(t,e,n){"use strict";(function(t){var r,a;n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var o=new Set((null===(r=t)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return e instanceof Set&&e.has(t)}}).call(this,n(18))},58:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return d}));var r=n(104),a=t._googlesitekitBaseData||{},o=a.isFirstAdmin,i=a.trackingAllowed,c={isFirstAdmin:o,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},u=Object(r.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function v(t){t?s():l()}!0===i&&v(f())}).call(this,n(18))},65:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(10),a=n.n(r),o=n(42),i=n(53),c=function(t){var e=new Date(t);a()(Object(i.a)(e),o.a);var n="".concat(e.getMonth()+1),r="".concat(e.getDate());return[e.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")}},66:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(44);function a(t){return function(){t[r.a]=t[r.a]||[],t[r.a].push(arguments)}}},67:function(t,e,n){"use strict";(function(t){var r=n(1),a=n.n(r),o=n(8),i=n.n(o);function ChangeArrow(e){var n=e.direction,r=e.invertColor,a=e.width,o=e.height;return t.createElement("svg",{className:i()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:o,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},e.a=ChangeArrow}).call(this,n(2))},72:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(33),a=n.n(r),o=n(97),i=n.n(o),c=function(t){return i()(JSON.stringify(function t(e){var n={};return Object.keys(e).sort().forEach((function(r){var o=e[r];o&&"object"===a()(o)&&!Array.isArray(o)&&(o=t(o)),n[r]=o})),n}(t)))}},73:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return u}));var r=n(80),a=n.n(r),o="missing_required_scopes";function i(t){return a()(t)&&t.hasOwnProperty("code")&&("string"==typeof t.code||"number"==typeof t.code)&&t.hasOwnProperty("message")&&"string"==typeof t.message&&t.hasOwnProperty("data")}function c(t){return(null==t?void 0:t.code)===o}function u(t){var e;return"insufficientPermissions"===(null==t||null===(e=t.data)||void 0===e?void 0:e.reason)}},75:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return c}));var r=n(33),a=n.n(r),o=n(107),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:o.a.sanitize(t,e)}};function c(t){var e,n="object"===a()(t)?t.toString():t;return null==n||null===(e=n.replace)||void 0===e?void 0:e.call(n,/\/+$/,"")}},768:function(t,e,n){"use strict";n.r(e),function(t){var r=n(391);void 0===t.googlesitekit&&(t.googlesitekit={}),void 0===t.googlesitekit.api&&(t.googlesitekit.api=r.b),e.default=r.b}.call(this,n(18))},84:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return f}));var r=n(11),a=n.n(r),o=n(0);function i(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return i=t.done,t},e:function(t){u=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&a)return!1;if(e=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===e&&null===n)return!1;var i=document.createElement("span");i.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(t));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=t;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(o.sprintf)(
4
  /* translators: %d is the number of notifications */
@@ -13,4 +13,4 @@ Object(l._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?
13
  Object(l.__)("%sM","google-site-kit"),m(g(t),t%10==0?{}:e)):1e4<=t?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(l.__)("%sK","google-site-kit"),m(g(t))):1e3<=t?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(l.__)("%sK","google-site-kit"),m(g(t),t%10==0?{}:e)):m(t,{signDisplay:"never",maximumFractionDigits:1})},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(s.isFinite)(t)?t:Number(t),Object(s.isFinite)(t)||(console.warn("Invalid number",t,a()(t)),t=0);var n={};if("%"===e)n={style:"percent",maximumFractionDigits:2};else{if("s"===e)return v(t,{unitDisplay:"narrow"});e&&"string"==typeof e?n={style:"currency",currency:e}:Object(s.isPlainObject)(e)&&(n=d({},e))}var r=n,o=r.style,i=void 0===o?"metric":o;return"metric"===i?b(t):"duration"===i?v(t,e):m(t,n)},m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.locale,r=void 0===n?O():n,a=u()(e,["locale"]);return new Intl.NumberFormat(r,a).format(t)},y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.locale,r=void 0===n?O():n,a=e.style,o=void 0===a?"long":a,i=e.type,c=void 0===i?"conjunction":i;if(Intl.ListFormat){var u=new Intl.ListFormat(r,{style:o,type:c});return u.format(t)}
16
- /* translators: used between list items, there is a space after the comma. */var s=Object(l.__)(", ","google-site-kit");return t.join(s)},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,n=Object(s.get)(e,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return e.navigator.language}}).call(this,n(18))},89:function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return g})),n.d(e,"d",(function(){return b})),n.d(e,"a",(function(){return h})),n.d(e,"c",(function(){return m}));var r=n(7),a=n.n(r),o=n(14),i=n.n(o);n(37);function c(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return i=t.done,t},e:function(t){c=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s,l="googlesitekit_".concat("1.34.0","_"),f=["sessionStorage","localStorage"],d=[].concat(f),v=function(){var e=i()(a.a.mark((function e(n){var r,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t[n]){e.next=3;break}return e.abrupt("return",!1);case 3:return e.prev=3,o="__storage_test__",r.setItem(o,o),r.removeItem(o),e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(3),e.abrupt("return",e.t0 instanceof DOMException&&(22===e.t0.code||1014===e.t0.code||"QuotaExceededError"===e.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.t0.name)&&0!==r.length);case 13:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=i()(a.a.mark((function e(){var n,r,o,i,u;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null===(n=t._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){e.next=2;break}return e.abrupt("return",null);case 2:if(void 0!==s){e.next=25;break}o=c(d),e.prev=4,o.s();case 6:if((i=o.n()).done){e.next=16;break}if(u=i.value,!s){e.next=10;break}return e.abrupt("continue",14);case 10:return e.next=12,v(u);case 12:if(!e.sent){e.next=14;break}s=t[u];case 14:e.next=6;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(4),o.e(e.t0);case 21:return e.prev=21,o.f(),e.finish(21);case 24:void 0===s&&(s=null);case 25:return e.abrupt("return",s);case 26:case"end":return e.stop()}}),e,null,[[4,18,21,24]])})));return function(){return e.apply(this,arguments)}}(),g=function(){var t=i()(a.a.mark((function t(e){var n,r,o,i,c,u,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=10;break}if(!(r=n.getItem("".concat(l).concat(e)))){t.next=10;break}if(o=JSON.parse(r),i=o.timestamp,c=o.ttl,u=o.value,s=o.isError,!i||c&&!(Math.round(Date.now()/1e3)-i<c)){t.next=10;break}return t.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return t.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),b=function(){var e=i()(a.a.mark((function e(n,r){var o,i,c,u,s,f,d,v,g=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=g.length>2&&void 0!==g[2]?g[2]:{},i=o.ttl,c=void 0===i?3600:i,u=o.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=o.isError,d=void 0!==f&&f,e.next=3,p();case 3:if(!(v=e.sent)){e.next=14;break}return e.prev=5,v.setItem("".concat(l).concat(n),JSON.stringify({timestamp:s,ttl:c,value:r,isError:d})),e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(5),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",!1);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[5,10]])})));return function(t,n){return e.apply(this,arguments)}}(),h=function(){var e=i()(a.a.mark((function e(n){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(r=e.sent)){e.next=13;break}return e.prev=4,r.removeItem("".concat(l).concat(n)),e.abrupt("return",!0);case 9:return e.prev=9,e.t0=e.catch(4),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",!1);case 13:return e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[4,9]])})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=i()(a.a.mark((function e(){var n,r,o,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=14;break}for(e.prev=4,r=[],o=0;o<n.length;o++)0===(i=n.key(o)).indexOf(l)&&r.push(i.substring(l.length));return e.abrupt("return",r);case 10:return e.prev=10,e.t0=e.catch(4),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",[]);case 14:return e.abrupt("return",[]);case 15:case"end":return e.stop()}}),e,null,[[4,10]])})));return function(){return e.apply(this,arguments)}}()}).call(this,n(18))},98:function(t,e,n){"use strict";function r(t){return new URL(t).pathname}function a(t,e){return new URL(e,t).href}function o(t){return t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return o}))}},[[768,1,0]]]);
1
+ (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[4],{0:function(t,e){t.exports=googlesitekit.i18n},101:function(t,e,n){"use strict";function r(t){return t.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(t){return"<p>".concat(t.replace(/\n{2,}/g,"</p><p>"),"</p>")}function o(t){return t.replace(/\n/gi,"<br>")}function i(t){for(var e=t,n=0,i=[r,a,o];n<i.length;n++){e=(0,i[n])(e)}return e}n.d(e,"a",(function(){return i}))},102:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(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)]}},103:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var r=n(229),a=n(67),o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(e)))return"";var o=n.invertColor,i=void 0!==o&&o;return Object(r.a)(t.createElement(a.a,{direction:e>0?"up":"down",invertColor:i}))},i=function(t){var e,n,r,a,o,i,c,u,s,l,f,d,v,p,g;if(void 0!==t)return 1===(null==t||null===(e=t[0])||void 0===e||null===(n=e.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==t||null===(a=t[0])||void 0===a||null===(o=a.data)||void 0===o||null===(i=o.rows)||void 0===i||null===(c=i[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==t||null===(f=t[0])||void 0===f||null===(d=f.data)||void 0===d||null===(v=d.totals)||void 0===v||null===(p=v[0])||void 0===p||null===(g=p.values)||void 0===g?void 0:g[0])}}).call(this,n(2))},104:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r=n(6),a=n.n(r),o=n(105),i=n(106);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){a()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,a=u(u({},s),e);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(o.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(i.a)(a,n,r)}}}).call(this,n(18))},105:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o}));var r=n(66),a=n(44);function o(e,n){var o=Object(r.a)(n);return function(){e.trackingEnabled=!0;var n=t.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(e.trackingID,"&l=").concat(a.a),n.head.appendChild(r),o("js",new Date),o("config",e.trackingID)}}}}).call(this,n(18))},106:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return v}));var r=n(7),a=n.n(r),o=n(6),i=n.n(o),c=n(14),u=n.n(c),s=n(66),l=n(56);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(e,n,r){var o=Object(s.a)(n);return function(){var n=u()(a.a.mark((function n(i,c,u,s){var f,v,p,g,b,h,m,y;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=e.isFirstAdmin,g=e.referenceSiteURL,b=e.trackingEnabled,h=e.trackingID,m=e.userIDHash,!(null===(f=r._gaUserPrefs)||void 0===f||null===(v=f.ioo)||void 0===v?void 0:v.call(f))){n.next=3;break}return n.abrupt("return");case 3:if(b){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:h,event_category:i,event_label:u,value:s,dimension1:g,dimension2:p?"true":"false",dimension3:m,dimension4:"1.34.1",dimension5:Array.from(l.a).join(", ")},n.abrupt("return",new Promise((function(e){var n=setTimeout((function(){t.console.warn('Tracking event "'.concat(c,'" (category "').concat(i,'") took too long to fire.')),e()}),1e3);o("event",c,d(d({},y),{},{event_callback:function(){clearTimeout(n),e()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(t,e,r,a){return n.apply(this,arguments)}}()}}).call(this,n(18))},107:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return a}));var r=n(146),a=n.n(r)()(t)}).call(this,n(18))},113:function(t,e,n){"use strict";(function(t){var r=n(35),a=n.n(r),o=n(154),i=t._googlesitekitAPIFetchData||{},c=i.nonce,u=i.nonceEndpoint,s=i.preloadedData,l=i.rootURL;a.a.nonceEndpoint=u,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(l),a.a.preloadingMiddleware=Object(o.a)(s),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),e.default=a.a}).call(this,n(18))},12:function(t,e,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return i}));var r="core/user",a="connected_url_mismatch",o="googlesitekit_view_dashboard",i="googlesitekit_manage_options"},154:function(t,e,n){"use strict";var r=n(152);e.a=function(t){var e=Object.keys(t).reduce((function(e,n){return e[Object(r.getStablePath)(n)]=t[n],e}),{}),n=!1;return function(t,a){if(n)return a(t);setTimeout((function(){n=!0}),1e3);var o=t.parse,i=void 0===o||o,c=t.path;if("string"==typeof t.path){var u,s=(null===(u=t.method)||void 0===u?void 0:u.toUpperCase())||"GET",l=Object(r.getStablePath)(c);if(i&&"GET"===s&&e[l]){var f=Promise.resolve(e[l].body);return delete e[l],f}if("OPTIONS"===s&&e[s]&&e[s][l]){var d=Promise.resolve(e[s][l]);return delete e[s][l],d}}return a(t)}}},171:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(7),a=n.n(r),o=n(14),i=n.n(o),c=n(5),u=["fetch_error"];function s(t){return l.apply(this,arguments)}function l(){return(l=i()(a.a.mark((function t(e){var n,r,o,i,s,l,f,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.method,i=e.type,s=e.identifier,l=e.datapoint,(f=e.error)&&!u.includes(null==f?void 0:f.code)){t.next=3;break}return t.abrupt("return");case 3:return d="code: ".concat(f.code),(null===(n=f.data)||void 0===n?void 0:n.reason)&&(d+=", reason: ".concat(f.data.reason)),t.next=7,Object(c.w)("api_error","".concat(o,":").concat(i,"/").concat(s,"/data/").concat(l),"".concat(f.message," (").concat(d,")"),(null===(r=f.data)||void 0===r?void 0:r.status)||f.code);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},32:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return c}));var r=n(25),a=n.n(r),o=n(2),i=function(t){return function(e){return function FilteredComponent(n){return Object(o.createElement)(o.Fragment,{},"",Object(o.createElement)(e,n),t)}}},c=function(e,n){return function(r){return function InnerComponent(o){return t.createElement(e,a()({},o,n,{OriginalComponent:r}))}}}}).call(this,n(2))},391:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return h}));var r=n(7),a=n.n(r),o=n(14),i=n.n(o),c=n(10),u=n.n(c),s=n(113),l=n(99),f=n(89),d=n(5),v=n(73),p=n(171),g=n(12),b=!0,h=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=[t,e,n].filter((function(t){return!!t&&t.length}));return 3===a.length&&r&&r.constructor===Object&&Object.keys(r).length&&a.push(Object(d.v)(r)),a.join("::")},m=function(e){var n,r,a,o,i=null===(n=t.googlesitekit)||void 0===n||null===(r=n.data)||void 0===r||null===(a=r.dispatch)||void 0===a?void 0:a.call(r,g.a);i&&(e.code===v.a?i.setPermissionScopeError(e):(null===(o=e.data)||void 0===o?void 0:o.reconnectURL)&&i.setAuthError(e))},y=function(){var e=i()(a.a.mark((function e(n,r,o){var i,c,d,v,g,b,y,O,w,j,_,x,E,S,D,P,I=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=I.length>3&&void 0!==I[3]?I[3]:{},c=i.bodyParams,d=i.cacheTTL,v=void 0===d?3600:d,g=i.method,b=void 0===g?"GET":g,y=i.queryParams,O=i.useCache,w=void 0===O?void 0:O,u()(n,"`type` argument for requests is required."),u()(r,"`identifier` argument for requests is required."),u()(o,"`datapoint` argument for requests is required."),j="GET"===b&&(void 0!==w?w:k()),_=h(n,r,o,y),!j){e.next=18;break}return e.next=9,Object(f.b)(_);case 9:if(x=e.sent,E=x.cacheHit,S=x.value,!x.isError){e.next=16;break}throw m(S),S;case 16:if(!E){e.next=18;break}return e.abrupt("return",S);case 18:return e.prev=18,e.next=21,Object(s.default)({data:c,method:b,path:Object(l.a)("/google-site-kit/v1/".concat(n,"/").concat(r,"/data/").concat(o),y)});case 21:if(D=e.sent,!j){e.next=25;break}return e.next=25,Object(f.d)(_,D,{ttl:v});case 25:return e.abrupt("return",D);case 28:if(e.prev=28,e.t0=e.catch(18),!(null===e.t0||void 0===e.t0||null===(P=e.t0.data)||void 0===P?void 0:P.cacheTTL)){e.next=33;break}return e.next=33,Object(f.d)(_,e.t0,{ttl:e.t0.data.cacheTTL,isError:!0});case 33:throw Object(p.a)({method:b,datapoint:o,type:n,identifier:r,error:e.t0}),m(e.t0),t.console.error("Google Site Kit API Error","method:".concat(b),"datapoint:".concat(o),"type:".concat(n),"identifier:".concat(r),'error:"'.concat(e.t0.message,'"')),e.t0;case 37:case"end":return e.stop()}}),e,null,[[18,28]])})));return function(t,n,r){return e.apply(this,arguments)}}(),O=function(){var t=i()(a.a.mark((function t(e,n,r,o){var i,c,u,s,l,f=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=f.length>4&&void 0!==f[4]?f[4]:{},c=i.cacheTTL,u=void 0===c?3600:c,s=i.useCache,l=void 0===s?void 0:s,t.abrupt("return",y(e,n,r,{cacheTTL:u,queryParams:o,useCache:l}));case 2:case"end":return t.stop()}}),t)})));return function(e,n,r,a){return t.apply(this,arguments)}}(),w=function(){var t=i()(a.a.mark((function t(e,n,r,o){var i,c,u,s,l,f,d=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=d.length>4&&void 0!==d[4]?d[4]:{},c=i.method,u=void 0===c?"POST":c,s=i.queryParams,l=void 0===s?{}:s,t.next=3,y(e,n,r,{bodyParams:{data:o},method:u,queryParams:l,useCache:!1});case 3:return f=t.sent,t.next=6,j(e,n,r);case 6:return t.abrupt("return",f);case 7:case"end":return t.stop()}}),t)})));return function(e,n,r,a){return t.apply(this,arguments)}}(),k=function(){return b},j=function(){var t=i()(a.a.mark((function t(e,n,r){var o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=h(e,n,r),t.next=3,Object(f.c)();case 3:t.sent.forEach((function(t){0===t.indexOf(o)&&Object(f.a)(t)}));case 5:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),_={invalidateCache:j,get:O,set:w,setUsingCache:function(t){return b=!!t},usingCache:k};e.b=_}).call(this,n(18))},42:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return o}));var r="Date param must construct to a valid date instance or be a valid date instance itself.",a="Invalid dateString parameter, it must be a string.",o='Invalid date range, it must be a string with the format "last-x-days".'},44:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},45:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(53),a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="string"==typeof t;if(!e)return!1;var n=t.split("-");return 3===n.length&&Object(r.a)(new Date(t))}},48:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r,a=n(15),o=n.n(a),i=n(16),c=n.n(i),u=function(e){var n=t[e];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==n.length}},s=function(){function NullStorage(){o()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return r||(r=u("sessionStorage")?t.sessionStorage:u("localStorage")?t.localStorage:new s),r}}).call(this,n(18))},5:function(t,e,n){"use strict";(function(t){n.d(e,"l",(function(){return x})),n.d(e,"a",(function(){return E})),n.d(e,"i",(function(){return S})),n.d(e,"k",(function(){return D})),n.d(e,"y",(function(){return P})),n.d(e,"u",(function(){return I})),n.d(e,"d",(function(){return L}));var r=n(6),a=n.n(r),o=n(33),i=n.n(o),c=n(145),u=n.n(c),s=n(139),l=n.n(s),f=n(17),d=n(99),v=n(58);n.d(e,"w",(function(){return v.b}));var p=n(32),g=n(75);n.d(e,"t",(function(){return g.a})),n.d(e,"x",(function(){return g.b}));var b=n(72);n.d(e,"v",(function(){return b.a}));var h=n(84);n.d(e,"b",(function(){return h.b})),n.d(e,"j",(function(){return h.c}));n(48);var m=n(85);n.d(e,"h",(function(){return m.a})),n.d(e,"o",(function(){return m.b})),n.d(e,"r",(function(){return m.c})),n.d(e,"s",(function(){return m.d})),n.d(e,"e",(function(){return p.b}));var y=n(101);n.d(e,"p",(function(){return y.a}));var O=n(102);n.d(e,"c",(function(){return O.a}));n(50);var w=n(103);n.d(e,"f",(function(){return w.a})),n.d(e,"n",(function(){return w.b}));var k=n(98);function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){a()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n.d(e,"g",(function(){return k.a})),n.d(e,"m",(function(){return k.b})),n.d(e,"q",(function(){return k.c}));var x=function(t){switch(t){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},E=function(t,e){if("0"===t||0===t||isNaN(t))return null;var n=(e-t)/t;return isNaN(n)||!u()(n)?null:n},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t._googlesitekitLegacyData,n=e.modules;return n?Object.keys(n).reduce((function(t,e){return"object"!==i()(n[e])||void 0===n[e].slug||void 0===n[e].name||n[e].slug!==e?t:_(_({},t),{},a()({},e,n[e]))}),{}):{}},D=function(e,n){var r=t._googlesitekitLegacyData.admin.adminRoot;return e||(e="googlesitekit-dashboard"),n=_({page:e},n),Object(d.a)(r,n)},P=function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}},I=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(f.b)("googlesitekit.ErrorNotification","googlesitekit.ErrorNotification",Object(p.b)(t,e),1)},L=function(t){if(!t)return"";var e=t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(e)})).replace(/(\\)/g,"");return l()(e)}}).call(this,n(18))},50:function(t,e,n){"use strict";n.d(e,"a",(function(){return r.b})),n.d(e,"b",(function(){return r.c})),n.d(e,"e",(function(){return a.a})),n.d(e,"f",(function(){return o.a})),n.d(e,"g",(function(){return i})),n.d(e,"h",(function(){return c})),n.d(e,"i",(function(){return u.a})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return f}));var r=n(42),a=n(65),o=n(55),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e%7,r=0===n;if(r)return Object(o.a)(t,e);var a=e>7&&n<3,i=a?e-n:e+(7-n);return Object(o.a)(t,i)},c=(n(53),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.split("-");return 3===e.length&&"last"===e[0]&&!Number.isNaN(e[1])&&!Number.isNaN(parseFloat(e[1]))&&"days"===e[2]}),u=n(45);function s(t){var e=t.match(/last-(\d+)-days/);if(e&&e[1])return parseInt(e[1],10);throw new Error("Unrecognized date range slug.")}var l=n(0);function f(){var t=function(t){return Object(l.sprintf)(
2
  /* translators: %s: number of days */
3
  Object(l._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}}}},53:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t instanceof Date&&!isNaN(t)}},55:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(11),a=n.n(r),o=n(10),i=n.n(o),c=n(42),u=n(65),s=n(45),l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;i()(Object(s.a)(t),c.c);var n=t.split("-"),r=a()(n,3),o=r[0],l=r[1],f=r[2],d=new Date(o,l-1,f);return d.setDate(d.getDate()-e),Object(u.a)(d)}},56:function(t,e,n){"use strict";(function(t){var r,a;n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var o=new Set((null===(r=t)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return e instanceof Set&&e.has(t)}}).call(this,n(18))},58:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return d}));var r=n(104),a=t._googlesitekitBaseData||{},o=a.isFirstAdmin,i=a.trackingAllowed,c={isFirstAdmin:o,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},u=Object(r.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function v(t){t?s():l()}!0===i&&v(f())}).call(this,n(18))},65:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(10),a=n.n(r),o=n(42),i=n(53),c=function(t){var e=new Date(t);a()(Object(i.a)(e),o.a);var n="".concat(e.getMonth()+1),r="".concat(e.getDate());return[e.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")}},66:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(44);function a(t){return function(){t[r.a]=t[r.a]||[],t[r.a].push(arguments)}}},67:function(t,e,n){"use strict";(function(t){var r=n(1),a=n.n(r),o=n(8),i=n.n(o);function ChangeArrow(e){var n=e.direction,r=e.invertColor,a=e.width,o=e.height;return t.createElement("svg",{className:i()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:o,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},e.a=ChangeArrow}).call(this,n(2))},72:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(33),a=n.n(r),o=n(97),i=n.n(o),c=function(t){return i()(JSON.stringify(function t(e){var n={};return Object.keys(e).sort().forEach((function(r){var o=e[r];o&&"object"===a()(o)&&!Array.isArray(o)&&(o=t(o)),n[r]=o})),n}(t)))}},73:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return u}));var r=n(80),a=n.n(r),o="missing_required_scopes";function i(t){return a()(t)&&t.hasOwnProperty("code")&&("string"==typeof t.code||"number"==typeof t.code)&&t.hasOwnProperty("message")&&"string"==typeof t.message&&t.hasOwnProperty("data")}function c(t){return(null==t?void 0:t.code)===o}function u(t){var e;return"insufficientPermissions"===(null==t||null===(e=t.data)||void 0===e?void 0:e.reason)}},75:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return c}));var r=n(33),a=n.n(r),o=n(107),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:o.a.sanitize(t,e)}};function c(t){var e,n="object"===a()(t)?t.toString():t;return null==n||null===(e=n.replace)||void 0===e?void 0:e.call(n,/\/+$/,"")}},768:function(t,e,n){"use strict";n.r(e),function(t){var r=n(391);void 0===t.googlesitekit&&(t.googlesitekit={}),void 0===t.googlesitekit.api&&(t.googlesitekit.api=r.b),e.default=r.b}.call(this,n(18))},84:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return f}));var r=n(11),a=n.n(r),o=n(0);function i(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return i=t.done,t},e:function(t){u=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&a)return!1;if(e=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===e&&null===n)return!1;var i=document.createElement("span");i.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(t));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=t;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(o.sprintf)(
4
  /* translators: %d is the number of notifications */
13
  Object(l.__)("%sM","google-site-kit"),m(g(t),t%10==0?{}:e)):1e4<=t?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(l.__)("%sK","google-site-kit"),m(g(t))):1e3<=t?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(l.__)("%sK","google-site-kit"),m(g(t),t%10==0?{}:e)):m(t,{signDisplay:"never",maximumFractionDigits:1})},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(s.isFinite)(t)?t:Number(t),Object(s.isFinite)(t)||(console.warn("Invalid number",t,a()(t)),t=0);var n={};if("%"===e)n={style:"percent",maximumFractionDigits:2};else{if("s"===e)return v(t,{unitDisplay:"narrow"});e&&"string"==typeof e?n={style:"currency",currency:e}:Object(s.isPlainObject)(e)&&(n=d({},e))}var r=n,o=r.style,i=void 0===o?"metric":o;return"metric"===i?b(t):"duration"===i?v(t,e):m(t,n)},m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.locale,r=void 0===n?O():n,a=u()(e,["locale"]);return new Intl.NumberFormat(r,a).format(t)},y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.locale,r=void 0===n?O():n,a=e.style,o=void 0===a?"long":a,i=e.type,c=void 0===i?"conjunction":i;if(Intl.ListFormat){var u=new Intl.ListFormat(r,{style:o,type:c});return u.format(t)}
16
+ /* translators: used between list items, there is a space after the comma. */var s=Object(l.__)(", ","google-site-kit");return t.join(s)},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,n=Object(s.get)(e,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return e.navigator.language}}).call(this,n(18))},89:function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return g})),n.d(e,"d",(function(){return b})),n.d(e,"a",(function(){return h})),n.d(e,"c",(function(){return m}));var r=n(7),a=n.n(r),o=n(14),i=n.n(o);n(37);function c(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return i=t.done,t},e:function(t){c=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s,l="googlesitekit_".concat("1.34.1","_"),f=["sessionStorage","localStorage"],d=[].concat(f),v=function(){var e=i()(a.a.mark((function e(n){var r,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t[n]){e.next=3;break}return e.abrupt("return",!1);case 3:return e.prev=3,o="__storage_test__",r.setItem(o,o),r.removeItem(o),e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(3),e.abrupt("return",e.t0 instanceof DOMException&&(22===e.t0.code||1014===e.t0.code||"QuotaExceededError"===e.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.t0.name)&&0!==r.length);case 13:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=i()(a.a.mark((function e(){var n,r,o,i,u;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null===(n=t._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){e.next=2;break}return e.abrupt("return",null);case 2:if(void 0!==s){e.next=25;break}o=c(d),e.prev=4,o.s();case 6:if((i=o.n()).done){e.next=16;break}if(u=i.value,!s){e.next=10;break}return e.abrupt("continue",14);case 10:return e.next=12,v(u);case 12:if(!e.sent){e.next=14;break}s=t[u];case 14:e.next=6;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(4),o.e(e.t0);case 21:return e.prev=21,o.f(),e.finish(21);case 24:void 0===s&&(s=null);case 25:return e.abrupt("return",s);case 26:case"end":return e.stop()}}),e,null,[[4,18,21,24]])})));return function(){return e.apply(this,arguments)}}(),g=function(){var t=i()(a.a.mark((function t(e){var n,r,o,i,c,u,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=10;break}if(!(r=n.getItem("".concat(l).concat(e)))){t.next=10;break}if(o=JSON.parse(r),i=o.timestamp,c=o.ttl,u=o.value,s=o.isError,!i||c&&!(Math.round(Date.now()/1e3)-i<c)){t.next=10;break}return t.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return t.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),b=function(){var e=i()(a.a.mark((function e(n,r){var o,i,c,u,s,f,d,v,g=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=g.length>2&&void 0!==g[2]?g[2]:{},i=o.ttl,c=void 0===i?3600:i,u=o.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=o.isError,d=void 0!==f&&f,e.next=3,p();case 3:if(!(v=e.sent)){e.next=14;break}return e.prev=5,v.setItem("".concat(l).concat(n),JSON.stringify({timestamp:s,ttl:c,value:r,isError:d})),e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(5),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",!1);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[5,10]])})));return function(t,n){return e.apply(this,arguments)}}(),h=function(){var e=i()(a.a.mark((function e(n){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(r=e.sent)){e.next=13;break}return e.prev=4,r.removeItem("".concat(l).concat(n)),e.abrupt("return",!0);case 9:return e.prev=9,e.t0=e.catch(4),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",!1);case 13:return e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[4,9]])})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=i()(a.a.mark((function e(){var n,r,o,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=14;break}for(e.prev=4,r=[],o=0;o<n.length;o++)0===(i=n.key(o)).indexOf(l)&&r.push(i.substring(l.length));return e.abrupt("return",r);case 10:return e.prev=10,e.t0=e.catch(4),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",[]);case 14:return e.abrupt("return",[]);case 15:case"end":return e.stop()}}),e,null,[[4,10]])})));return function(){return e.apply(this,arguments)}}()}).call(this,n(18))},98:function(t,e,n){"use strict";function r(t){return new URL(t).pathname}function a(t,e){return new URL(e,t).href}function o(t){return t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return o}))}},[[768,1,0]]]);
dist/assets/js/{googlesitekit-dashboard-details.31ecb85efaebaee3c942.js → googlesitekit-dashboard-details.0536928f8e4c067191ec.js} RENAMED
@@ -2,7 +2,7 @@
2
  /* translators: 1: date for user stats, 2: previous date for user stats comparison */
3
  Object(l._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(P,L),x[n][0].toLocaleDateString(P,L)),s=Object(l.sprintf)(
4
  /* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
5
- Object(l._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),k[t],j[t](e[1]),i,Object(u.r)(Math.abs(a),"%"));D.push([e[0],'<div class="'.concat(c()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":a>0,"googlesitekit-visualization-tooltip--down":a<0}),'">\n\t\t\t\t<p>').concat(o,"</p>\n\t\t\t\t<p>").concat(s,"</p>\n\t\t\t</div>"),E?Object(u.c)(e[1]):e[1],E?Object(u.c)(x[n][1]):x[n][1]])}})),D}var R=function(e){if(!e||!e.length)return null;var t=e[0].data.rows,n=[[{type:"date",label:"Day"},{type:"number",label:"Users"},{type:"number",label:"Sessions"},{type:"number",label:"Goals Completed"}]];return Object(i.each)(t,(function(e){var t=e.metrics[0].values,r=e.dimensions[0],a=Object(g.a)(r);n.push([a,t[0],t[1],t[4]])})),n},A=function(e){var t;return e.error&&e.error.status?function(e,t){var n="";switch(e){case"INVALID_ARGUMENT":n=Object(l.__)("Analytics module needs to be configured.","google-site-kit");break;case"UNAUTHENTICATED":n=Object(l.__)("You need to be authenticated to get this data.","google-site-kit");break;case"PERMISSION_DENIED":n=Object(l.__)("Your account does not have sufficient permission to access this data, please consult to your web administrator.","google-site-kit");break;case"RESOURCE_EXHAUSTED":n=Object(l.__)("Your account exceeded the maximum quota. Please try again later.","google-site-kit");break;case"INTERNAL":n=Object(l.__)("Unexpected internal server error occurred.","google-site-kit");break;case"BACKEND_ERROR":n=Object(l.__)("Analytics server returned unknown error. Please try again later.","google-site-kit");break;case"UNAVAILABLE":n=Object(l.__)("The service was unable to process the request. Please try again later.","google-site-kit");break;default:n=t}return n}(e.error.status,e.error.message):!!(e.code&&e.message&&(null===(t=e.data)||void 0===t?void 0:t.status))&&e.message},x=function(e){if(!e||!e.length)return!0;if(e&&e[0]&&e[0].data&&e[0].data.totals&&e[0].data.totals[0]){var t=e[0].data.totals[0].values,n=!0;return Object(i.each)(t,(function(e){0!==parseInt(e,10)&&(n=!1)})),n}return!1},P={dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:adsenseRevenue",alias:"Earnings"},{expression:"ga:adsenseECPM",alias:"Page RPM"},{expression:"ga:adsensePageImpressions",alias:"Impressions"}],orderby:[{fieldName:"ga:adsenseRevenue",sortOrder:"DESCENDING"}],limit:10},L={compareDateRanges:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"}],limit:180},T={multiDateRange:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"},{expression:"ga:pageviews",alias:"Pageviews"}],limit:10},M={multiDateRange:1,metrics:[{expression:"ga:users",alias:"Total Users"}]},I={dimensions:"ga:channelGrouping",metrics:[{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:users",alias:"Users"},{expression:"ga:newUsers",alias:"New Users"}],orderby:[{fieldName:"ga:users",sortOrder:"DESCENDING"}],limit:10},U=function(){return{dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:pageviews",alias:"Pageviews"},{expression:"ga:uniquePageviews",alias:"Unique Pageviews"},{expression:"ga:bounceRate",alias:"Bounce rate"}],orderby:[{fieldName:"ga:pageviews",sortOrder:"DESCENDING"}],limit:10}},W=function(e){var t,n,r,a,i,o,c,l,s,u;return{totalUsers:null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.totals)||void 0===r||null===(a=r[0])||void 0===a||null===(i=a.values)||void 0===i?void 0:i[0],previousTotalUsers:null==e||null===(o=e[0])||void 0===o||null===(c=o.data)||void 0===c||null===(l=c.totals)||void 0===l||null===(s=l[1])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0]}}},function(e,t,n){"use strict";var r=n(11),a=n.n(r),i=n(23),o=n(113),c=n(99),l=n(17),s=n(32),u=n(84),d=n(73),g=n(161),f=n(128),p=n(38),m=n(88);n.d(t,"a",(function(){return m.a})),n.d(t,"b",(function(){return m.b}));var h=n(134),b=n(171),v={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],s=25;Object(i.each)(e,(function(e){e.key=Object(p.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(p.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),s),s+=25):r.push(e)})),r=Object(i.sortBy)(r,"priority");var g=[],f=[],m={},h=!!r.find((function(e){return e.priority<10}));Object(i.each)(r,(function(e,t){!n&&10<=e.priority&&h?f.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],g.push(e))}));var b=10,v=g.slice(0,b),y=g.slice(b);if(y=y.concat(f),0!==v.length||0!==y.length){0<y.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(y,!0)}),50):this.maxRequests=10;var _=null!==Object(u.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:_||void 0}),data:{request:v},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=a()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(d.d)(o)){var c=m[i][0],s=r[c],u=s.datapoint,g=s.type,f=s.identifier;t.handleWPError({method:"GET",datapoint:u,type:g,identifier:f,error:o})}else Object(p.f)(i,o);m[i].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===y.length&&Object(l.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(l.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,a=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(a),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(b.a)({method:t,datapoint:n,type:r,identifier:a,error:i});var o=i.data;if(o&&(o.reason||o.reconnectURL)){var c=0;["authError","insufficientPermissions"].includes(o.reason)&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(f.a),1),c++),o.reconnectURL&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(g.a),1),c++),c&&Object(l.b)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease",(function(e){return Object(l.g)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease"),e+c}))}},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:h.a,collectModuleData:function(e,t){var n=Object(l.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=Object(p.d)(e,t,n,a);if(!i){var s=Object(p.c)(l,3600);if(void 0!==s)return new Promise((function(e){e(s)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),a)}).then((function(e){return i||Object(p.f)(l,e),Promise.resolve(e)})).catch((function(a){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},set:function(e,t,n,r){var a=this,i={};return i.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(r){return v.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return a.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(m.a,"modules","activation",{slug:e,active:t})}};Object(l.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(l.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",v.collectModuleData.bind(v)),t.c=v},function(e,t,n){"use strict";(function(e){var r=n(1),a=n.n(r),i=n(8),o=n.n(i),c=n(184);function PreviewBlock(t){var n=t.className,r=t.width,a=t.height,i=t.shape,l=t.padding,s=t.smallWidth,u=t.smallHeight,d=t.tabletWidth,g=t.tabletHeight,f=t.desktopWidth,p=t.desktopHeight,m=Object(c.a)(),h=r,b=a;return"small"===m&&s&&u&&(h=s,b=u),"tablet"===m&&d&&g&&(h=d,b=g),("xlarge"===m||"desktop"===m)&&f&&p&&(h=f,b=p),e.createElement("div",{className:o()("googlesitekit-preview-block",n,{"googlesitekit-preview-block--padding":l}),style:{width:h,height:b}},e.createElement("div",{className:o()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===i})}))}PreviewBlock.propTypes={className:a.a.string,width:a.a.string,height:a.a.string,shape:a.a.string,padding:a.a.bool,smallWidth:a.a.string,smallHeight:a.a.string,tabletWidth:a.a.string,tabletHeight:a.a.string,desktopWidth:a.a.string,desktopHeight:a.a.string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0},t.a=PreviewBlock}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var r="modules/adsense",a=1},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core/modules",a="insufficient_module_dependencies"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(25),a=n.n(r),i=n(2),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(i){return e.createElement(t,a()({},i,n,{OriginalComponent:r}))}}}}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(21),l=n.n(c),s=n(22),u=n.n(s),d=n(13),g=n.n(d),f=n(1),p=n.n(f),m=n(8),h=n.n(m),b=n(2),v=n(195),y=n(196);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var O=function(t){l()(Layout,t);var n=_(Layout);function Layout(){return a()(this,Layout),n.apply(this,arguments)}return o()(Layout,[{key:"render",value:function(){var t=this.props,n=t.header,r=t.footer,a=t.children,i=t.title,o=t.headerCTALabel,c=t.headerCTALink,l=t.footerCTALabel,s=t.footerCTALink,u=t.footerContent,d=t.className,g=t.fill,f=t.relative;return e.createElement("div",{className:h()("googlesitekit-layout",d,{"googlesitekit-layout--fill":g,"googlesitekit-layout--relative":f})},n&&e.createElement(v.a,{title:i,ctaLabel:o,ctaLink:c}),a,r&&e.createElement(y.a,{ctaLabel:l,ctaLink:s,footerContent:u}))}}]),Layout}(b.Component);O.propTypes={header:p.a.bool,footer:p.a.bool,children:p.a.node.isRequired,title:p.a.string,headerCTALabel:p.a.string,headerCTALink:p.a.string,footerCTALabel:p.a.string,footerCTALink:p.a.string,footerContent:p.a.node,className:p.a.string,fill:p.a.bool,relative:p.a.bool},O.defaultProps={header:!1,footer:!1,title:"",headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=O}).call(this,n(2))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var r="modules/search-console",a=1},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return f}));var r=n(33),a=n.n(r),i=n(23),o=n(48),c=n(72),l="googlesitekit_legacy_1.34.0_",s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(l+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(l+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},g=function(t){s(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(l+t)},f=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],l=0,s=o;l<s.length;l++){var u=s[l];if(!u||!u.length)break;i.push(u)}return 3===i.length&&r&&"object"===a()(r)&&Object.keys(r).length&&i.push(Object(c.a)(r)),i.join("::")}}).call(this,n(18))},,function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(49),l=n.n(c),s=n(21),u=n.n(s),d=n(22),g=n.n(d),f=n(13),p=n.n(f),m=n(1),h=n.n(m),b=n(8),v=n.n(b),y=n(2),_=n(0),O=n(67),k=n(78),j=n(5);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}var S=function(t){u()(DataBlock,t);var n=E(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(l()(t)),t.handleKeyPress=t.handleKeyPress.bind(l()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,l=t.context,s=t.period,u=t.selected,d=t.handleStatSelection,g=t.source,f=t.sparkline,p=t.invertChangeColor,m="button"===l?"button":"",h=f;h&&p&&(h=Object(y.cloneElement)(f,{invertChangeColor:p}));var b=o;c&&(b="%"===c?Object(j.r)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(j.r)(o,c)),s&&(b=Object(_.sprintf)(s,b));var E=a&&Object(j.r)(a,i||void 0);return e.createElement("div",{className:v()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},E)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:v()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(y.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(O.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},b))),g&&e.createElement(k.a,{className:"googlesitekit-data-block__source",name:g.name,href:g.link,external:null==g?void 0:g.external})))}}]),DataBlock}(y.Component);S.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},S.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=S}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(25),a=n.n(r),i=n(11),o=n.n(i),c=n(15),l=n.n(c),s=n(16),u=n.n(s),d=n(49),g=n.n(d),f=n(21),p=n.n(f),m=n(22),h=n.n(m),b=n(13),v=n.n(b),y=n(293),_=n.n(y),O=n(125),k=n.n(O),j=n(17),E=n(2),S=n(0),D=n(4),w=n.n(D),C=n(5),N=n(94),R=n(112),A=n(188),x=n(88),P=n(12),L=n(236);function T(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v()(e);if(t){var a=v()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var U=w.a.withSelect,W=k()(C.v);t.a=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{inGrid:!1,fullWidth:!1,createGrid:!1},c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e){if(e&&e.error)return e.error.message?e.error.message:e.error.errors&&e.error.errors[0]&&e.error.errors[0].message?e.error.errors[0].message:Object(S.__)("Unidentified error","google-site-kit");if(e&&e.errors&&e.errors[0]&&e.errors[0].message)return e.errors[0].message;if(e&&e.error_data){var t=Object.values(e.error_data);if(t[0]&&"RateLimitExceeded"===t[0].reason)return Object(S.__)("Too many requests have been sent within a given time span. Please reload this page again in a few seconds.","google-site-kit")}if(e&&e.errors){var n=Object.values(e.errors);if(n[0]&&n[0][0])return n[0][0]}return!!(e.code&&e.message&&e.data&&e.data.status)&&e.message},d=n.reduce((function(e,t){return _()(t.context).forEach((function(n){e[n]=e[n]||[],e[n].push(t)})),e}),{}),f=function(n){p()(NewComponent,n);var f=I(NewComponent);function NewComponent(e){var t;return l()(this,NewComponent),(t=f.call(this,e)).state={data:!1,zeroData:!1,errorMessage:!1,moduleRequiringSetup:""},t.handleModuleDataReset=t.handleModuleDataReset.bind(g()(t)),t.handleReturnedData=t.handleReturnedData.bind(g()(t)),t.addDataRequests=t.addDataRequests.bind(g()(t)),t.removeDataRequests=t.removeDataRequests.bind(g()(t)),t}return u()(NewComponent,[{key:"componentDidMount",value:function(){Object(j.a)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.addDataRequests()}},{key:"componentWillUnmount",value:function(){Object(j.f)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.removeDataRequests()}},{key:"handleModuleDataReset",value:function(){this.removeDataRequests(),this.addDataRequests(),this.setState({data:!1,errorMessage:!1,zeroData:!1})}},{key:"addDataRequests",value:function(){var e=this,t=this.props.dateRange;Object.entries(d).forEach((function(n){var r=o()(n,2),a=r[0],i=r[1];Object(j.b)("googlesitekit.module".concat(a,"DataRequest"),"googlesitekit.withData.".concat(W(i)),(function(n){var r,a=Object(C.i)(),o=[],c=T(i);try{var l=function(){var n,i,c=r.value,l=c||{},s=l.type,u=l.identifier;if(x.b===s&&!(null===(n=a[u])||void 0===n?void 0:n.setupComplete))return e.setState({moduleRequiringSetup:u,moduleRequiringActivation:!(null===(i=a[u])||void 0===i?void 0:i.active)}),"continue";var d=Object(L.a)(c,t);d.callback=function(t){e.handleReturnedData(t,c)},o.push(d)};for(c.s();!(r=c.n()).done;)l()}catch(e){c.e(e)}finally{c.f()}return n.concat(o)}))}))}},{key:"removeDataRequests",value:function(){Object.entries(d).forEach((function(e){var t=o()(e,2),n=t[0],r=t[1];Object(j.g)("googlesitekit.module".concat(n,"DataRequest"),"googlesitekit.withData.".concat(W(r)))}))}},{key:"handleReturnedData",value:function(e,t){var n=this.props,r=n.handleDataError,a=n.handleDataSuccess,i=t.datapoint,o=t.identifier,l=t.toState,u=s(e);u?(this.setState({errorMessage:u,errorObj:e,module:o}),r&&r(u,e)):c(e,i,t)?(r&&r(u,e),this.setState({zeroData:!0})):a&&a(),this.setState({requestDataToState:l,data:e,datapoint:i,module:o})}},{key:"render",value:function(){var n=this.state,o=n.data,c=n.datapoint,l=n.module,s=n.zeroData,u=n.errorMessage,d=n.errorObj,g=n.requestDataToState,f=n.moduleRequiringSetup;if(n.moduleRequiringActivation)return Object(A.b)(f,i.inGrid,i.fullWidth,i.createGrid);if(f)return Object(A.a)(f,i.inGrid,i.fullWidth,i.createGrid);if(!o)return r;if(u)return"string"!=typeof u?u:Object(R.a)(l,u,i.inGrid,i.fullWidth,i.createGrid,d);if(s){var p,m=(null===(p=Object(C.i)()[l])||void 0===p?void 0:p.name)||Object(S.__)("Site Kit","google-site-kit");return Object(N.a)(m,i.inGrid,i.fullWidth,i.createGrid)}return e.createElement(t,a()({data:o,datapoint:c,requestDataToState:g},this.props))}}]),NewComponent}(E.Component),m=t.displayName||t.name||"AnonymousComponent";return f.displayName="withData(".concat(m,")"),U((function(e){return{dateRange:e(P.a).getDateRange(),dateRangeLength:e(P.a).getDateRangeNumberOfDays()}}))(f)}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return i}));var r="Date param must construct to a valid date instance or be a valid date instance itself.",a="Invalid dateString parameter, it must be a string.",i='Invalid date range, it must be a string with the format "last-x-days".'},function(e,t,n){"use strict";(function(e){var r=n(25),a=n.n(r),i=n(26),o=n.n(i),c=n(8),l=n.n(c),s=n(1),u=n.n(s),d=n(157),g=n(2),f=n(19),p=Object(g.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,s=t.className,u=t.danger,p=t.disabled,m=t.target,h=t.icon,b=t.trailingIcon,v=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon"]),y=Object(g.useCallback)((function(e){null!==e&&f.i.attachTo(e)}),[]),_=Object(d.a)(n,y),O=i&&!p?"a":"button";return e.createElement(O,a()({className:l()("mdc-button",s,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:p?void 0:i,ref:_,disabled:!!p,target:m||"_self",role:"a"===O?"button":void 0},v),h,r&&e.createElement("span",{className:"mdc-button__label"},r),b)}));p.displayName="Button",p.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element},p.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null},t.a=p}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(53),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(r.a)(new Date(e))}},function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(7),o=n.n(i),c=n(14),l=n.n(c),s=n(15),u=n.n(s),d=n(16),g=n.n(d),f=n(49),p=n.n(f),m=n(21),h=n.n(m),b=n(22),v=n.n(b),y=n(13),_=n.n(y),O=n(1),k=n.n(O),j=n(8),E=n.n(j),S=n(23),D=n(2),w=n(144),C=n(75),N=n(38),R=n(40),A=n(43),x=n(170),P=n(185),L=n(24),T=n(137);function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_()(e);if(t){var a=_()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var I=function(t){h()(Notification,t);var n,r,i=M(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(D.createRef)(),t.handleDismiss=t.handleDismiss.bind(p()(t)),t.handleCTAClick=t.handleCTAClick.bind(p()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(N.f)("notification::displayed::".concat(t.props.id),new Date),t}return g()(Notification,[{key:"handleDismiss",value:(r=l()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(N.f)("notification::dismissed::".concat(e.props.id),new Date),t.style.display="none";var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=l()(o.a.mark((function e(t){var n,r,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,r=n.isDismissable,!(a=n.onCTAClick)){e.next=5;break}return e.next=5,a(t);case 5:r&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,r=Object(N.c)("notification::dismissed::".concat(t));if(r){var a=new Date(r);a.setSeconds(a.getSeconds()+parseInt(n,10)),a<new Date&&Object(N.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,r=this.props,i=r.children,o=r.id,c=r.className,l=r.title,s=r.description,u=r.blockData,d=r.WinImageSVG,g=r.SmallImageSVG,f=r.format,p=r.learnMoreURL,m=r.learnMoreDescription,h=r.learnMoreLabel,b=r.ctaLink,v=r.ctaLabel,y=r.ctaTarget,_=r.type,O=r.dismiss,k=r.isDismissable,j=r.logo,M=r.module,I=r.moduleName,U=r.pageIndex,W=r.anchorLink,z=r.anchorLinkLabel;if(Object(N.c)("notification::dismissed::".concat(o)))return null;var F,q=n?"is-closed":"is-open",H="large"===f&&"win-stats-increase"===_,G="mdc-layout-grid__cell--span-12";"large"===f?(G="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",H&&(G="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===f&&(G="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),F="win-warning"===_?e.createElement(x.a,null):"win-error"===_?e.createElement(P.a,null):"";var B=e.createElement(D.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(S.map)(u,(function(t,n){return e.createElement("div",{key:n,className:E()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":H,"mdc-layout-grid__cell--span-4-desktop":!H})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(R.a,t)))})))),V=e.createElement(D.Fragment,null,l&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},l),W&&z&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(L.a,{href:W},z)),s&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(D.isValidElement)(s)?s:e.createElement("span",{dangerouslySetInnerHTML:Object(C.a)(s,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),h&&e.createElement(D.Fragment,null," ",e.createElement(L.a,{href:p,external:!0,inherit:!0},h),m),U&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},U))),i),$=M?e.createElement(T.a,{slug:M,size:19}):e.createElement(w.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:E()(c,"googlesitekit-publisher-win",(t={},a()(t,"googlesitekit-publisher-win--".concat(f),f),a()(t,"googlesitekit-publisher-win--".concat(_),_),a()(t,"googlesitekit-publisher-win--".concat(q),q),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},j&&e.createElement("div",{className:E()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":H,"mdc-layout-grid__cell--order-1-tablet":H})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},$),I&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},I)),g&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(g,null)),e.createElement("div",{className:E()("mdc-layout-grid__cell",G)},H?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},V),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},B)):e.createElement(D.Fragment,null,V,B),b&&e.createElement(A.a,{className:"googlesitekit-notification__cta",href:b,target:y,onClick:this.handleCTAClick},v),k&&O&&e.createElement(L.a,{onClick:this.handleDismiss},O)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(d,null))),("win-error"===_||"win-warning"===_)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},F)))))}}]),Notification}(D.Component);I.propTypes={id:k.a.string.isRequired,className:k.a.string,title:k.a.string.isRequired,description:k.a.node,learnMoreURL:k.a.string,learnMoreDescription:k.a.string,learnMoreLabel:k.a.string,blockData:k.a.array,WinImageSVG:k.a.elementType,SmallImageSVG:k.a.elementType,format:k.a.string,ctaLink:k.a.string,ctaLabel:k.a.string,type:k.a.string,dismiss:k.a.string,isDismissable:k.a.bool,logo:k.a.bool,module:k.a.string,moduleName:k.a.string,pageIndex:k.a.string,dismissExpires:k.a.number,showOnce:k.a.bool,onCTAClick:k.a.func,onDismiss:k.a.func,anchorLink:k.a.string,anchorLinkLabel:k.a.string},I.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=I}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r,a=n(15),i=n.n(a),o=n(16),c=n.n(o),l=function(t){var n=e[t];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return r||(r=l("sessionStorage")?e.sessionStorage:l("localStorage")?e.localStorage:new s),r}}).call(this,n(18))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r.b})),n.d(t,"b",(function(){return r.c})),n.d(t,"e",(function(){return a.a})),n.d(t,"f",(function(){return i.a})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return l.a})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return d}));var r=n(42),a=n(65),i=n(55),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t%7,r=0===n;if(r)return Object(i.a)(e,t);var a=t>7&&n<3,o=a?t-n:t+(7-n);return Object(i.a)(e,o)},c=(n(53),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}),l=n(45);function s(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var u=n(0);function d(){var e=function(e){return Object(u.sprintf)(
6
  /* translators: %s: number of days */
7
  Object(u._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,t){e.exports=googlesitekit.api},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/ui"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/location"},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(11),a=n.n(r),i=n(10),o=n.n(i),c=n(42),l=n(65),s=n(45),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;o()(Object(s.a)(e),c.c);var n=e.split("-"),r=a()(n,3),i=r[0],u=r[1],d=r[2],g=new Date(i,u-1,d);return g.setDate(g.getDate()-t),Object(l.a)(g)}},function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){var r=n(1),a=n.n(r),i=n(8),o=n.n(i),c=n(24),l=function CTA(t){var n=t.title,r=t.description,a=t.ctaLink,i=t.ctaLabel,l=t.error,s=t.onClick,u=t["aria-label"];return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":l})},n&&e.createElement("h3",{className:"googlesitekit-cta__title"},n),r&&"string"==typeof r&&e.createElement("p",{className:"googlesitekit-cta__description"},r),r&&"string"!=typeof r&&e.createElement("div",{className:"googlesitekit-cta__description"},r),i&&e.createElement(c.a,{href:a,onClick:s,inverse:!l,caps:!0,arrow:!0,"aria-label":u},i))};l.propTypes={title:a.a.string.isRequired,description:a.a.oneOfType([a.a.string,a.a.node]),ctaLink:a.a.string,ctaLabel:a.a.string,"aria-label":a.a.string,error:a.a.bool,onClick:a.a.func},l.defaultProps={title:"",description:"",ctaLink:"",ctaLabel:"",error:!1,onClick:function(){}},t.a=l}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return g}));var r=n(104),a=e._googlesitekitBaseData||{},i=a.isFirstAdmin,o=a.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},l=Object(r.a)(c),s=l.enableTracking,u=l.disableTracking,d=l.isTrackingEnabled,g=l.trackEvent;function f(e){e?s():u()}!0===o&&f(d())}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GoogleChart}));var r=n(6),a=n.n(r),i=n(25),o=n.n(i),c=n(37),l=n.n(c),s=n(26),u=n.n(s),d=n(8),g=n.n(d),f=n(1),p=n.n(f),m=n(193),h=n(2),b=n(29);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GoogleChart(t){var n=t.chartEvents,r=t.chartType,a=t.children,i=t.className,c=t.data,s=t.getChartWrapper,d=t.height,f=t.loaded,p=t.loadingHeight,v=t.loadingWidth,y=t.onMouseOver,_=t.onMouseOut,O=t.onReady,k=t.onSelect,j=t.selectedStats,E=t.width,S=u()(t,["chartEvents","chartType","children","className","data","getChartWrapper","height","loaded","loadingHeight","loadingWidth","onMouseOver","onMouseOut","onReady","onSelect","selectedStats","width"]),D=[];(null==c?void 0:c.length)&&(D=c[0].reduce((function(e,t,n){return(null==t?void 0:t.role)?[].concat(l()(e),[n]):e}),[]));var w=c;(null==j?void 0:j.length)>0&&(w=c.map((function(e){return e.filter((function(e,t){return 0===t||j.includes(t-1)||D.includes(t-1)}))})));var C=p||d,N=v||E;C&&!N&&(N="100%"),N&&!C&&(C="100%");var R="PieChart"===r?"circular":"square",A=e.createElement("div",{className:"googlesitekit-chart-loading"},e.createElement(b.a,{className:"googlesitekit-chart-loading__wrapper",height:C,shape:R,width:N})),x=Object(h.useRef)(),P=Object(h.useRef)();if(Object(h.useEffect)((function(){return function(){if(P.current&&x.current){var e=P.current.visualization.events;e.removeAllListeners(x.current.getChart()),e.removeAllListeners(x.current)}}}),[]),Object(h.useLayoutEffect)((function(){var e,t;y&&(null===(e=P.current)||void 0===e||e.visualization.events.addListener(x.current.getChart(),"onmouseover",(function(e){y(e,{chartWrapper:x.current,google:P.current})})));_&&(null===(t=P.current)||void 0===t||t.visualization.events.addListener(x.current.getChart(),"onmouseout",(function(e){_(e,{chartWrapper:x.current,google:P.current})})))}),[y,_]),!f)return e.createElement("div",{className:g()("googlesitekit-chart","googlesitekit-chart-loading__forced",i)},A);var L=l()(n||[]);return O&&L.push({eventName:"ready",callback:O}),k&&L.push({eventName:"select",callback:k}),e.createElement("div",{className:g()("googlesitekit-chart","googlesitekit-chart--".concat(r),i)},e.createElement(m.a,o()({className:"googlesitekit-chart__inner",chartEvents:L,chartType:r,chartVersion:"49",data:w,loader:A,height:d,getChartWrapper:function(e,t){var n,r,a;e!==x.current&&(null===(n=P.current)||void 0===n||n.visualization.events.removeAllListeners(null===(r=x.current)||void 0===r?void 0:r.getChart()),null===(a=P.current)||void 0===a||a.visualization.events.removeAllListeners(x.current));x.current=e,P.current=t,s&&s(e,t)},width:E},S)),a)}GoogleChart.propTypes={className:p.a.string,children:p.a.node,chartEvents:p.a.arrayOf(p.a.shape({eventName:p.a.string,callback:p.a.func})),chartType:p.a.oneOf(["LineChart","PieChart"]).isRequired,data:p.a.array,getChartWrapper:p.a.func,height:p.a.string,loaded:p.a.bool,loadingHeight:p.a.string,loadingWidth:p.a.string,onMouseOut:p.a.func,onMouseOver:p.a.func,onReady:p.a.func,onSelect:p.a.func,selectedStats:p.a.arrayOf(p.a.number),width:p.a.string},GoogleChart.defaultProps=y(y({},m.a.defaultProps),{},{loaded:!0})}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(1),a=n.n(r),i=n(8),o=n.n(i),c=n(29);function PreviewTable(t){for(var n=t.rows,r=t.rowHeight,a=t.padding,i=[],l=0;n>l;l++)i.push(e.createElement("div",{className:"googlesitekit-preview-table__row",key:"table-row-"+l},e.createElement(c.a,{width:"100%",height:r+"px"})));return e.createElement("div",{className:o()("googlesitekit-preview-table",{"googlesitekit-preview-table--padding":a})},i)}PreviewTable.propTypes={rows:a.a.number,rowHeight:a.a.number,padding:a.a.bool},PreviewTable.defaultProps={rows:11,rowHeight:35,padding:!1},t.a=PreviewTable}).call(this,n(2))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return i}));var r={BOXES:"boxes",COMPOSITE:"composite"},a={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},function(e,t,n){"use strict";(function(e,r){var a=n(11),i=n.n(a),o=n(1),c=n.n(o),l=n(23),s=n(8),u=n.n(s),d=n(2);function TableOverflowContainer(t){var n=t.children,a=Object(d.useState)(!1),o=i()(a,2),c=o[0],s=o[1],g=Object(d.useRef)();Object(d.useEffect)((function(){f();var t=Object(l.debounce)(f,100);return e.addEventListener("resize",t),function(){return e.removeEventListener("resize",t)}}),[]);var f=function(){if(g.current){var e=g.current,t=e.scrollLeft,n=e.scrollWidth-e.offsetWidth;s(t<n-16&&0<n-16)}};return r.createElement("div",{onScroll:Object(l.debounce)(f,100),className:u()("googlesitekit-table-overflow",{"googlesitekit-table-overflow--gradient":c})},r.createElement("div",{ref:g,className:"googlesitekit-table-overflow__container"},n))}TableOverflowContainer.propTypes={children:c.a.element},t.a=TableOverflowContainer}).call(this,n(18),n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ProgressBar}));var r=n(1),a=n.n(r),i=n(8),o=n.n(i);function ProgressBar(t){var n=t.className,r=t.small,a=t.compress,i=t.indeterminate,c=t.height,l=t.progress,s=void 0!==c?Math.round(c/2):void 0,u=l?"scaleX(".concat(l,")"):void 0;return e.createElement("div",{role:"progressbar",style:{marginTop:s,marginBottom:s},className:o()("mdc-linear-progress",n,{"mdc-linear-progress--indeterminate":i,"mdc-linear-progress--small":r,"mdc-linear-progress--compress":a})},e.createElement("div",{className:"mdc-linear-progress__buffering-dots"}),e.createElement("div",{className:"mdc-linear-progress__buffer"}),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__primary-bar",style:{transform:u}},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar"},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})))}ProgressBar.propTypes={className:a.a.string,small:a.a.bool,compress:a.a.bool,indeterminate:a.a.bool,progress:a.a.number,height:a.a.number},ProgressBar.defaultProps={className:"",small:!1,compress:!1,indeterminate:!0,progress:0}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(10),a=n.n(r),i=n(42),o=n(53),c=function(e){var t=new Date(e);a()(Object(o.a)(t),i.a);var n="".concat(t.getMonth()+1),r="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(44);function a(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},function(e,t,n){"use strict";(function(e){var r=n(1),a=n.n(r),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,r=t.invertColor,a=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(21),l=n.n(c),s=n(22),u=n.n(s),d=n(13),g=n.n(d),f=n(1),p=n.n(f),m=n(2);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var b=function(t){l()(DashboardModuleHeader,t);var n=h(DashboardModuleHeader);function DashboardModuleHeader(){return a()(this,DashboardModuleHeader),n.apply(this,arguments)}return o()(DashboardModuleHeader,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.description;return e.createElement("header",{className:"googlesitekit-dashboard-module-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-4-phone "},e.createElement("h3",{className:" googlesitekit-heading-3 googlesitekit-dashboard-module-header__title "},n),r&&e.createElement("p",{className:"googlesitekit-dashboard-module-header__description"},r))))}}]),DashboardModuleHeader}(m.Component);b.propTypes={title:p.a.string,description:p.a.string},b.defaultProps={title:"",description:""},t.a=b}).call(this,n(2))},function(e,t,n){"use strict";var r=n(131);n.d(t,"a",(function(){return r.a}));var a=n(132);n.d(t,"c",(function(){return a.a}));var i=n(133);n.d(t,"b",(function(){return i.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10),a=n.n(r),i=n(45),o=function(e){var t=e.startDate,n=e.endDate;return a()(Object(i.a)(t),"A valid startDate is required."),a()(Object(i.a)(n),"A valid endDate is required."),{start_date:t.replace(/-/g,""),end_date:n.replace(/-/g,"")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10),a=n.n(r),i=n(45),o=function(e){var t=e.startDate,n=e.endDate,r=e.compareStartDate,o=e.compareEndDate;a()(Object(i.a)(t),"A valid startDate is required."),a()(Object(i.a)(n),"A valid endDate is required.");var c={"_u.date00":t.replace(/-/g,""),"_u.date01":n.replace(/-/g,"")};return(r||o)&&(a()(Object(i.a)(r)&&Object(i.a)(o),"Valid compareStartDate and compareEndDate values are required."),c["_u.date10"]=r.replace(/-/g,""),c["_u.date11"]=o.replace(/-/g,"")),c}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(33),a=n.n(r),i=n(97),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(80),a=n.n(r),i="missing_required_scopes";function o(e){return a()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function l(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},function(e,t,n){"use strict";(function(e){var r=n(1),a=n.n(r),i=n(59);function Sparkline(t){var n=t.change,r=t.data,a=t.invertChangeColor,o=t.loadingHeight;if(!r)return null;var c=a?"red":"green",l=a?"green":"red",s={title:"",backgroundColor:"transparent",curveType:"line",width:"100%",height:"50",enableInteractivity:!1,chartArea:{height:"100%",width:"100%"},legend:{position:"none"},axisFontSize:0,hAxis:{baselineColor:"none",ticks:[]},vAxis:{baselineColor:"none",ticks:[]},axes:[],colors:[0<=(parseFloat(n)||0)?c:l]};return r.slice(1).some((function(e){return e[1]>0}))||(s.vAxis.minValue=0,s.vAxis.maxValue=1),e.createElement("div",{className:"googlesitekit-analytics-sparkline-chart-wrap"},e.createElement(i.a,{chartType:"LineChart",data:r,loadingHeight:o,options:s}))}Sparkline.propTypes={invertChangeColor:a.a.bool,loadingHeight:a.a.string},Sparkline.defaultProps={invertChangeColor:!1,loadingHeight:"46px"},t.a=Sparkline}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(33),a=n.n(r),i=n(107),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===a()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},,function(e,t,n){"use strict";n.d(t,"f",(function(){return s.a})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m.a})),n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return v})),n.d(t,"d",(function(){return y}));var r=n(186),a=n.n(r),i=n(228),o=n.n(i),c=n(5),l=n(116),s=n(217),u=n(8),d=n.n(u),g=n(0),f=n(55),p=function(e,t,n,r,a){var i=[[{type:"date",label:Object(g.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:"number",label:n},{type:"number",label:Object(g.__)("Previous period","google-site-kit")}]],o=function(e){return new Date("".concat(e," 00:00:00"))},l=Object(c.h)(),s={weekday:"short",month:"short",day:"numeric"};return e.forEach((function(e,u){var p,m,h=e[r],b=e.keys[0],v=(null===(p=t[u])||void 0===p?void 0:p[r])||0,y=(null===(m=t[u])||void 0===m?void 0:m.keys[0])||Object(f.a)(b,a),_=Object(g.sprintf)(
8
  /* translators: 1: date for user stats, 2: previous date for user stats comparison */
@@ -35,7 +35,7 @@ Object(u.__)("%sK","google-site-kit"),v(m(e))):1e3<=e?Object(u.sprintf)(// trans
35
  Object(u.__)("%sK","google-site-kit"),v(m(e),e%10==0?{}:t)):v(e,{signDisplay:"never",maximumFractionDigits:1})},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(s.isFinite)(e)?e:Number(e),Object(s.isFinite)(e)||(console.warn("Invalid number",e,a()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return f(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(s.isPlainObject)(t)&&(n=g({},t))}var r=n,i=r.style,o=void 0===i?"metric":i;return"metric"===o?h(e):"duration"===o?f(e,t):v(e,n)},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?_():n,a=l()(t,["locale"]);return new Intl.NumberFormat(r,a).format(e)},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?_():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(r,{style:i,type:c});return l.format(e)}
36
  /* translators: used between list items, there is a space after the comma. */var s=Object(u.__)(", ","google-site-kit");return e.join(s)},_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(s.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var r=n(1),a=n.n(r),i=n(0),o=n(4),c=n.n(o),l=n(31),s=n(73),u=n(127),d=n(92),g=n(57),f=c.a.useSelect;function ReportError(t){var n,r=t.moduleSlug,a=t.error,o=f((function(e){return e(l.a).getModule(r)})),c=Object(i.sprintf)(Object(i.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name),p=a.message;Object(s.b)(a)&&(
37
  /* translators: %s: module name */
38
- c=Object(i.sprintf)(Object(i.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),p=Object(u.a)(p,o));var m=null==a||null===(n=a.data)||void 0===n?void 0:n.reconnectURL,h=m?e.createElement(d.a,{message:p,reconnectURL:m}):p;return e.createElement(g.a,{title:c,description:h,error:!0})}ReportError.propTypes={moduleSlug:a.a.string.isRequired,error:a.a.object.isRequired}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}));var r=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},a=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function i(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core",a="modules"},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return v}));var r=n(7),a=n.n(r),i=n(14),o=n.n(i);n(37);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s,u="googlesitekit_".concat("1.34.0","_"),d=["sessionStorage","localStorage"],g=[].concat(d),f=function(){var t=o()(a.a.mark((function t(n){var r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",r.setItem(i,i),r.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),p=function(){var t=o()(a.a.mark((function t(){var n,r,i,o,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}i=c(g),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(l=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,f(l);case 12:if(!t.sent){t.next=14;break}s=e[l];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(a.a.mark((function e(t){var n,r,i,o,c,l,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(r),o=i.timestamp,c=i.ttl,l=i.value,s=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:l,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var t=o()(a.a.mark((function t(n,r){var i,o,c,l,s,d,g,f,m=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,l=i.timestamp,s=void 0===l?Math.round(Date.now()/1e3):l,d=i.isError,g=void 0!==d&&d,t.next=3,p();case 3:if(!(f=t.sent)){t.next=14;break}return t.prev=5,f.setItem("".concat(u).concat(n),JSON.stringify({timestamp:s,ttl:c,value:r,isError:g})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),v=function(){var t=o()(a.a.mark((function t(){var n,r,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(18))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var r=n(1),a=n.n(r),i=n(0),o=n(4),c=n.n(o),l=n(31),s=n(57),u=c.a.useSelect;function ReportZero(t){var n=t.moduleSlug,r=u((function(e){return e(l.a).getModule(n)}));return e.createElement(s.a,{title:
39
  /* translators: %s: Module name */
40
  Object(i.sprintf)(Object(i.__)("%s Gathering Data","google-site-kit"),null==r?void 0:r.name),description:Object(i.sprintf)(
41
  /* translators: %s: Module name */
@@ -51,7 +51,7 @@ Object(o.__)("Complete %s activation","google-site-kit"),l.name),description:a||
51
  /* translators: %s: Module name */
52
  Object(o.__)("%s module setup needs to be completed","google-site-kit"),l.name),ctaLabel:Object(o.__)("Complete setup","google-site-kit"),"aria-label":Object(o.sprintf)(
53
  /* translators: %s: Module name */
54
- Object(o.__)("Complete %s setup","google-site-kit"),l.name),onClick:v}):null};m.propTypes={moduleSlug:a.a.string.isRequired,title:a.a.string,description:a.a.string},t.a=m}).call(this,n(2))},function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,a,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(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(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(229),a=n(67),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(r.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,a,i,o,c,l,s,u,d,g,f,p,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(l=c.metrics)||void 0===l||null===(s=l[0])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(g=d.data)||void 0===g||null===(f=g.totals)||void 0===f||null===(p=f[0])||void 0===p||null===(m=p.values)||void 0===m?void 0:m[0])}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),a=n.n(r),i=n(105),o=n(106);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=l(l({},s),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,r)}}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(66),a=n(44);function i(t,n){var i=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(r),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f}));var r=n(7),a=n.n(r),i=n(6),o=n.n(i),c=n(14),l=n.n(c),s=n(66),u=n(56);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(t,n,r){var i=Object(s.a)(n);return function(){var n=l()(a.a.mark((function n(o,c,l,s){var d,f,p,m,h,b,v,y;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=t.isFirstAdmin,m=t.referenceSiteURL,h=t.trackingEnabled,b=t.trackingID,v=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(f=d.ioo)||void 0===f?void 0:f.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:b,event_category:o,event_label:l,value:s,dimension1:m,dimension2:p?"true":"false",dimension3:v,dimension4:"1.34.0",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,g(g({},y),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,a){return n.apply(this,arguments)}}()}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(146),a=n.n(r)()(e)}).call(this,n(18))},function(e,t,n){"use strict";(function(e){var r=n(0),a=n(24);t.a=function HelpLink(){var t=Object(r.__)("Need help?","google-site-kit");return e.createElement(a.a,{className:"googlesitekit-help-link",href:"https://sitekit.withgoogle.com/documentation/",external:!0},t)}}).call(this,n(2))},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportTable}));var r=n(8),a=n.n(r),i=n(147),o=n.n(i),c=n(10),l=n.n(c),s=n(1),u=n.n(s);function ReportTable(t){var n=t.rows,r=t.columns,i=t.className,c=t.limit;l()(Array.isArray(n),"rows must be an array."),l()(Array.isArray(r),"columns must be an array."),r.forEach((function(e){var t=e.Component,n=e.field,r=void 0===n?null:n;l()(t||null!==r,"each column must define a Component and/or a field.")})),l()(Number.isInteger(c)||void 0===c,"limit must be an integer, if provided.");var s=r.filter((function(e){return!e.hideOnMobile}));return e.createElement("div",{className:a()("googlesitekit-table","googlesitekit-table--with-list",i)},e.createElement("table",{className:a()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(r.length,"-col"),"googlesitekit-table__wrapper--mobile-".concat(s.length,"-col"))},e.createElement("thead",{className:"googlesitekit-table__head"},e.createElement("tr",{className:"googlesitekit-table__head-row"},r.map((function(t,n){var r=t.title,i=t.description,o=t.primary,c=t.hideOnMobile,l=t.className;return e.createElement("th",{className:a()("googlesitekit-table__head-item",{"googlesitekit-table__head-item--primary":o},{"hidden-on-mobile":c},l),"data-tooltip":i,key:"googlesitekit-table__head-row-".concat(n)},r)})))),e.createElement("tbody",{className:"googlesitekit-table__body"},n.slice(0,c).map((function(t,n){return e.createElement("tr",{className:"googlesitekit-table__body-row",key:"googlesitekit-table__body-row-".concat(n)},r.map((function(n,r){var i=n.Component,c=n.field,l=n.hideOnMobile,s=n.className,u=void 0!==c?o()(t,c):void 0;return e.createElement("td",{key:"googlesitekit-table__body-item-".concat(r),className:a()("googlesitekit-table__body-item",{"hidden-on-mobile":l},s)},e.createElement("div",{className:"googlesitekit-table__body-item-content"},i&&e.createElement(i,{row:t,fieldValue:u}),!i&&u))})))})))))}ReportTable.propTypes={rows:u.a.arrayOf(u.a.oneOfType([u.a.array,u.a.object])).isRequired,columns:u.a.arrayOf(u.a.shape({title:u.a.string,description:u.a.string,primary:u.a.bool,className:u.a.string,field:u.a.string,hideOnMobile:u.a.bool,Component:u.a.componentType})).isRequired,className:u.a.string,limit:u.a.number}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(0),a=n(5),i=n(73),o=n(127),c=n(92),l=n(57),s=n(96),u=n(235);t.a=function(t,n){var d,g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=arguments.length>3&&void 0!==arguments[3]&&arguments[3],p=arguments.length>4&&void 0!==arguments[4]&&arguments[4],m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=Object(a.i)(),b=h[t],v=Object(r.sprintf)(Object(r.__)("Data error in %s","google-site-kit"),null==b?void 0:b.name),y=n;Object(i.b)(m)&&(
55
  /* translators: %s: module name */
56
  v=Object(r.sprintf)(Object(r.__)("Insufficient permissions in %s","google-site-kit"),null==b?void 0:b.name),y=Object(o.a)(y,b));var _=null==m||null===(d=m.data)||void 0===d?void 0:d.reconnectURL,O=_?e.createElement(c.a,{message:y,reconnectURL:_}):y,k=e.createElement(l.a,{title:v,description:O,error:!0});return"Invalid Credentials"===n&&Object(a.u)(u.a),Object(s.a)(k,g,f,p)}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(35),a=n.n(r),i=n(154),o=e._googlesitekitAPIFetchData||{},c=o.nonce,l=o.nonceEndpoint,s=o.preloadedData,u=o.rootURL;a.a.nonceEndpoint=l,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(u),a.a.preloadingMiddleware=Object(i.a)(s),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,n(18))},,function(e,t,n){"use strict";t.a=function(e){if("string"==typeof e&&e.match(/[0-9]{8}/)){var t=e.slice(0,4),n=Number(e.slice(4,6))-1,r=e.slice(6,8);return new Date(t,n.toString(),r)}return!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(10),a=n.n(r),i=function(e,t){var n=t.dateRangeLength;a()(Array.isArray(e),"report must be an array to partition."),a()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var r=-1*n;return{currentRange:e.slice(r),compareRange:e.slice(2*r,r)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PageHeader}));var r=n(8),a=n.n(r),i=n(1),o=n.n(i);function PageHeader(t){var n=t.title,r=t.icon,i=t.className,o=t.status,c=t.statusText,l=t.fullWidth,s=t.children,u=l?"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-12\n\t\t":"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-4-phone\n\t\tmdc-layout-grid__cell--span-4-tablet\n\t\tmdc-layout-grid__cell--span-6-desktop\n\t\t",d=""!==o||Boolean(s);return e.createElement("header",{className:"googlesitekit-page-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:u},r,e.createElement("h1",{className:a()("googlesitekit-page-header__title",i)},n)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--align-right-tablet mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},e.createElement("div",{className:"googlesitekit-page-header__details"},o&&e.createElement("span",{className:a()("googlesitekit-page-header__status","googlesitekit-page-header__status--".concat(o))},c),s))))}PageHeader.propTypes={title:o.a.string,icon:o.a.node,className:o.a.string,status:o.a.string,statusText:o.a.string,fullWidth:o.a.bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}}).call(this,n(2))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return g}));var a=n(6),i=n.n(a),o=n(8),c=n.n(o),l=n(23),s=n(78),u=n(24),d=n(5),g=function(t,n,a){var o=[],g=a.links,f=a.source,p=a.showURLs,m=a.useAdminURLs,h=void 0!==m&&m,b=a.PrimaryLink,v=void 0===b?u.a:b;a.cap&&(t=t.slice(0,a.cap)),Object(l.each)(t,(function(t,n){var i=[],s=g&&g[n],f=s&&"/"===s[0]?Object(d.g)(e._googlesitekitLegacyData.admin.siteURL,s):s;Object(l.each)(t,(function(e,n){"string"==typeof e&&(e=e.replace(/\(none\)/gi,"direct"));var o=a&&a.hideColumns&&a.hideColumns.mobile.includes(n);i.push(r.createElement("td",{key:"cell-"+n,className:c()("googlesitekit-table__body-item",{"hidden-on-mobile":o})},t[0]===e&&s?r.createElement("div",{className:"googlesitekit-table__body-item-content"},r.createElement(v,{className:"googlesitekit-table__body-item-link",href:h?Object(d.k)("googlesitekit-dashboard",{permaLink:f}):s,external:!h,inherit:!0},e),p&&r.createElement(u.a,{className:"googlesitekit-table__body-item-url",href:s,inherit:!0,external:!0},s)):r.createElement("div",{className:"googlesitekit-table__body-item-content"},e)))})),o.push(r.createElement("tr",{key:"tr-"+n,className:"googlesitekit-table__body-row"},i))}));var y=t&&t[0]&&t[0].length?t[0].length:1,_=a.hideColumns&&a.hideColumns.mobile&&a.hideColumns.mobile.length>0?y-a.hideColumns.mobile.length:y;return r.createElement("div",{className:c()("googlesitekit-table",{"googlesitekit-table--with-list":!a||!a.disableListMode})},r.createElement("table",{className:c()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(y,"-col"),i()({},"googlesitekit-table__wrapper--mobile-".concat(_,"-col"),_!==y))},r.createElement("thead",{className:"googlesitekit-table__head"},r.createElement("tr",{key:"gksc_data_row_header-wrap",style:a&&a.hideHeader?{display:"none"}:{},className:"googlesitekit-table__head-row"},n.map((function(e,t){var n=a&&a.hideColumns&&a.hideColumns.mobile.includes(t);return r.createElement("th",{key:"gksc_data_row_header-".concat(t),className:c()("googlesitekit-table__head-item",{"googlesitekit-table__head-item--primary":e.primary},{"hidden-on-mobile":n}),"data-tooltip":e.tooltip},e.title)})))),r.createElement("tbody",{className:"googlesitekit-table__body"},o)),f&&r.createElement(s.a,{className:"googlesitekit-table__source",name:f.name,href:f.link}))}}).call(this,n(18),n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(2),a=n(4),i=n.n(a),o=n(62),c=i.a.useDispatch;function l(e,t,n){var a=c(o.b),i=a.setWidgetState,l=a.unsetWidgetState;Object(r.useEffect)((function(){return i(e,t,n),function(){l(e,t,n)}}),[e,t,n,i,l])}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSettingsWarning}));var r=n(4),a=n.n(r),i=n(31),o=n(8),c=n.n(o),l=n(177),s=a.a.useSelect;function ModuleSettingsWarning(t){var n=t.slug,r=s((function(e){var t;return null===(t=e(i.a))||void 0===t?void 0:t.getCheckRequirementsError(n)}));return r?e.createElement("div",{className:c()("googlesitekit-settings-module-warning","googlesitekit-settings-module-warning--modules-list")},e.createElement(l.a,{height:"20",width:"23"})," ",r.message):null}}).call(this,n(2))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return v}));var r=n(26),a=n.n(r),i=n(6),o=n.n(i),c=n(7),l=n.n(c),s=n(10),u=n.n(s),d=n(4),g=n.n(d),f=n(89),p=g.a.createRegistryControl,m=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},r={deleteSnapshot:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:l.a.mark((function e(){var t,n,r,a,i,o,c=arguments;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,r=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(a=e.sent,i=a.cacheHit,o=a.value,!i){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!r){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e)})),createSnapshot:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},i=(t={},o()(t,"DELETE_SNAPSHOT",(function(){return Object(f.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",p((function(t){return function(){return Object(f.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(f.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:r,controls:i,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,r=t.type,i=t.payload;switch(r){case"SET_STATE_FROM_SNAPSHOT":var o=i.snapshot,c=(o.error,a()(o,["error"]));return c;default:return e}}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(h(e).map((function(e){return e.getActions().createSnapshot()})))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(h(e).map((function(e){return e.getActions().restoreSnapshot()})))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0);function a(e,t){var n=t||{},a=n.slug,i=void 0===a?"":a,o=n.name,c=void 0===o?"":o,l=n.owner,s=void 0===l?null:l;if(!i||!c)return e;var u="",d="";return"analytics"===i?e.match(/account/i)?u=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics account, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit"):e.match(/property/i)?u=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics property, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit"):e.match(/view/i)&&(u=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics view, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit")):"search-console"===i&&(u=Object(r.__)("Your Google account does not have sufficient permissions for this Search Console property, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit")),u||(u=Object(r.sprintf)(
57
  /* translators: %s: module name */
2
  /* translators: 1: date for user stats, 2: previous date for user stats comparison */
3
  Object(l._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(P,L),x[n][0].toLocaleDateString(P,L)),s=Object(l.sprintf)(
4
  /* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
5
+ Object(l._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),k[t],j[t](e[1]),i,Object(u.r)(Math.abs(a),"%"));D.push([e[0],'<div class="'.concat(c()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":a>0,"googlesitekit-visualization-tooltip--down":a<0}),'">\n\t\t\t\t<p>').concat(o,"</p>\n\t\t\t\t<p>").concat(s,"</p>\n\t\t\t</div>"),E?Object(u.c)(e[1]):e[1],E?Object(u.c)(x[n][1]):x[n][1]])}})),D}var R=function(e){if(!e||!e.length)return null;var t=e[0].data.rows,n=[[{type:"date",label:"Day"},{type:"number",label:"Users"},{type:"number",label:"Sessions"},{type:"number",label:"Goals Completed"}]];return Object(i.each)(t,(function(e){var t=e.metrics[0].values,r=e.dimensions[0],a=Object(g.a)(r);n.push([a,t[0],t[1],t[4]])})),n},A=function(e){var t;return e.error&&e.error.status?function(e,t){var n="";switch(e){case"INVALID_ARGUMENT":n=Object(l.__)("Analytics module needs to be configured.","google-site-kit");break;case"UNAUTHENTICATED":n=Object(l.__)("You need to be authenticated to get this data.","google-site-kit");break;case"PERMISSION_DENIED":n=Object(l.__)("Your account does not have sufficient permission to access this data, please consult to your web administrator.","google-site-kit");break;case"RESOURCE_EXHAUSTED":n=Object(l.__)("Your account exceeded the maximum quota. Please try again later.","google-site-kit");break;case"INTERNAL":n=Object(l.__)("Unexpected internal server error occurred.","google-site-kit");break;case"BACKEND_ERROR":n=Object(l.__)("Analytics server returned unknown error. Please try again later.","google-site-kit");break;case"UNAVAILABLE":n=Object(l.__)("The service was unable to process the request. Please try again later.","google-site-kit");break;default:n=t}return n}(e.error.status,e.error.message):!!(e.code&&e.message&&(null===(t=e.data)||void 0===t?void 0:t.status))&&e.message},x=function(e){if(!e||!e.length)return!0;if(e&&e[0]&&e[0].data&&e[0].data.totals&&e[0].data.totals[0]){var t=e[0].data.totals[0].values,n=!0;return Object(i.each)(t,(function(e){0!==parseInt(e,10)&&(n=!1)})),n}return!1},P={dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:adsenseRevenue",alias:"Earnings"},{expression:"ga:adsenseECPM",alias:"Page RPM"},{expression:"ga:adsensePageImpressions",alias:"Impressions"}],orderby:[{fieldName:"ga:adsenseRevenue",sortOrder:"DESCENDING"}],limit:10},L={compareDateRanges:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"}],limit:180},T={multiDateRange:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"},{expression:"ga:pageviews",alias:"Pageviews"}],limit:10},M={multiDateRange:1,metrics:[{expression:"ga:users",alias:"Total Users"}]},I={dimensions:"ga:channelGrouping",metrics:[{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:users",alias:"Users"},{expression:"ga:newUsers",alias:"New Users"}],orderby:[{fieldName:"ga:users",sortOrder:"DESCENDING"}],limit:10},U=function(){return{dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:pageviews",alias:"Pageviews"},{expression:"ga:uniquePageviews",alias:"Unique Pageviews"},{expression:"ga:bounceRate",alias:"Bounce rate"}],orderby:[{fieldName:"ga:pageviews",sortOrder:"DESCENDING"}],limit:10}},W=function(e){var t,n,r,a,i,o,c,l,s,u;return{totalUsers:null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.totals)||void 0===r||null===(a=r[0])||void 0===a||null===(i=a.values)||void 0===i?void 0:i[0],previousTotalUsers:null==e||null===(o=e[0])||void 0===o||null===(c=o.data)||void 0===c||null===(l=c.totals)||void 0===l||null===(s=l[1])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0]}}},function(e,t,n){"use strict";var r=n(11),a=n.n(r),i=n(23),o=n(113),c=n(99),l=n(17),s=n(32),u=n(84),d=n(73),g=n(161),f=n(128),p=n(38),m=n(88);n.d(t,"a",(function(){return m.a})),n.d(t,"b",(function(){return m.b}));var h=n(134),b=n(171),v={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],s=25;Object(i.each)(e,(function(e){e.key=Object(p.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(p.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),s),s+=25):r.push(e)})),r=Object(i.sortBy)(r,"priority");var g=[],f=[],m={},h=!!r.find((function(e){return e.priority<10}));Object(i.each)(r,(function(e,t){!n&&10<=e.priority&&h?f.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],g.push(e))}));var b=10,v=g.slice(0,b),y=g.slice(b);if(y=y.concat(f),0!==v.length||0!==y.length){0<y.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(y,!0)}),50):this.maxRequests=10;var _=null!==Object(u.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:_||void 0}),data:{request:v},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=a()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(d.d)(o)){var c=m[i][0],s=r[c],u=s.datapoint,g=s.type,f=s.identifier;t.handleWPError({method:"GET",datapoint:u,type:g,identifier:f,error:o})}else Object(p.f)(i,o);m[i].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===y.length&&Object(l.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(l.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,a=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(a),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(b.a)({method:t,datapoint:n,type:r,identifier:a,error:i});var o=i.data;if(o&&(o.reason||o.reconnectURL)){var c=0;["authError","insufficientPermissions"].includes(o.reason)&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(f.a),1),c++),o.reconnectURL&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(g.a),1),c++),c&&Object(l.b)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease",(function(e){return Object(l.g)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease"),e+c}))}},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:h.a,collectModuleData:function(e,t){var n=Object(l.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=Object(p.d)(e,t,n,a);if(!i){var s=Object(p.c)(l,3600);if(void 0!==s)return new Promise((function(e){e(s)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),a)}).then((function(e){return i||Object(p.f)(l,e),Promise.resolve(e)})).catch((function(a){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},set:function(e,t,n,r){var a=this,i={};return i.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(r){return v.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return a.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(m.a,"modules","activation",{slug:e,active:t})}};Object(l.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(l.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",v.collectModuleData.bind(v)),t.c=v},function(e,t,n){"use strict";(function(e){var r=n(1),a=n.n(r),i=n(8),o=n.n(i),c=n(184);function PreviewBlock(t){var n=t.className,r=t.width,a=t.height,i=t.shape,l=t.padding,s=t.smallWidth,u=t.smallHeight,d=t.tabletWidth,g=t.tabletHeight,f=t.desktopWidth,p=t.desktopHeight,m=Object(c.a)(),h=r,b=a;return"small"===m&&s&&u&&(h=s,b=u),"tablet"===m&&d&&g&&(h=d,b=g),("xlarge"===m||"desktop"===m)&&f&&p&&(h=f,b=p),e.createElement("div",{className:o()("googlesitekit-preview-block",n,{"googlesitekit-preview-block--padding":l}),style:{width:h,height:b}},e.createElement("div",{className:o()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===i})}))}PreviewBlock.propTypes={className:a.a.string,width:a.a.string,height:a.a.string,shape:a.a.string,padding:a.a.bool,smallWidth:a.a.string,smallHeight:a.a.string,tabletWidth:a.a.string,tabletHeight:a.a.string,desktopWidth:a.a.string,desktopHeight:a.a.string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0},t.a=PreviewBlock}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var r="modules/adsense",a=1},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core/modules",a="insufficient_module_dependencies"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(25),a=n.n(r),i=n(2),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(i){return e.createElement(t,a()({},i,n,{OriginalComponent:r}))}}}}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(21),l=n.n(c),s=n(22),u=n.n(s),d=n(13),g=n.n(d),f=n(1),p=n.n(f),m=n(8),h=n.n(m),b=n(2),v=n(195),y=n(196);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var O=function(t){l()(Layout,t);var n=_(Layout);function Layout(){return a()(this,Layout),n.apply(this,arguments)}return o()(Layout,[{key:"render",value:function(){var t=this.props,n=t.header,r=t.footer,a=t.children,i=t.title,o=t.headerCTALabel,c=t.headerCTALink,l=t.footerCTALabel,s=t.footerCTALink,u=t.footerContent,d=t.className,g=t.fill,f=t.relative;return e.createElement("div",{className:h()("googlesitekit-layout",d,{"googlesitekit-layout--fill":g,"googlesitekit-layout--relative":f})},n&&e.createElement(v.a,{title:i,ctaLabel:o,ctaLink:c}),a,r&&e.createElement(y.a,{ctaLabel:l,ctaLink:s,footerContent:u}))}}]),Layout}(b.Component);O.propTypes={header:p.a.bool,footer:p.a.bool,children:p.a.node.isRequired,title:p.a.string,headerCTALabel:p.a.string,headerCTALink:p.a.string,footerCTALabel:p.a.string,footerCTALink:p.a.string,footerContent:p.a.node,className:p.a.string,fill:p.a.bool,relative:p.a.bool},O.defaultProps={header:!1,footer:!1,title:"",headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=O}).call(this,n(2))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var r="modules/search-console",a=1},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return f}));var r=n(33),a=n.n(r),i=n(23),o=n(48),c=n(72),l="googlesitekit_legacy_1.34.1_",s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(l+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(l+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},g=function(t){s(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(l+t)},f=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],l=0,s=o;l<s.length;l++){var u=s[l];if(!u||!u.length)break;i.push(u)}return 3===i.length&&r&&"object"===a()(r)&&Object.keys(r).length&&i.push(Object(c.a)(r)),i.join("::")}}).call(this,n(18))},,function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(49),l=n.n(c),s=n(21),u=n.n(s),d=n(22),g=n.n(d),f=n(13),p=n.n(f),m=n(1),h=n.n(m),b=n(8),v=n.n(b),y=n(2),_=n(0),O=n(67),k=n(78),j=n(5);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}var S=function(t){u()(DataBlock,t);var n=E(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(l()(t)),t.handleKeyPress=t.handleKeyPress.bind(l()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,l=t.context,s=t.period,u=t.selected,d=t.handleStatSelection,g=t.source,f=t.sparkline,p=t.invertChangeColor,m="button"===l?"button":"",h=f;h&&p&&(h=Object(y.cloneElement)(f,{invertChangeColor:p}));var b=o;c&&(b="%"===c?Object(j.r)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(j.r)(o,c)),s&&(b=Object(_.sprintf)(s,b));var E=a&&Object(j.r)(a,i||void 0);return e.createElement("div",{className:v()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},E)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:v()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(y.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(O.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},b))),g&&e.createElement(k.a,{className:"googlesitekit-data-block__source",name:g.name,href:g.link,external:null==g?void 0:g.external})))}}]),DataBlock}(y.Component);S.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},S.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=S}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(25),a=n.n(r),i=n(11),o=n.n(i),c=n(15),l=n.n(c),s=n(16),u=n.n(s),d=n(49),g=n.n(d),f=n(21),p=n.n(f),m=n(22),h=n.n(m),b=n(13),v=n.n(b),y=n(293),_=n.n(y),O=n(125),k=n.n(O),j=n(17),E=n(2),S=n(0),D=n(4),w=n.n(D),C=n(5),N=n(94),R=n(112),A=n(188),x=n(88),P=n(12),L=n(236);function T(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v()(e);if(t){var a=v()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var U=w.a.withSelect,W=k()(C.v);t.a=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{inGrid:!1,fullWidth:!1,createGrid:!1},c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e){if(e&&e.error)return e.error.message?e.error.message:e.error.errors&&e.error.errors[0]&&e.error.errors[0].message?e.error.errors[0].message:Object(S.__)("Unidentified error","google-site-kit");if(e&&e.errors&&e.errors[0]&&e.errors[0].message)return e.errors[0].message;if(e&&e.error_data){var t=Object.values(e.error_data);if(t[0]&&"RateLimitExceeded"===t[0].reason)return Object(S.__)("Too many requests have been sent within a given time span. Please reload this page again in a few seconds.","google-site-kit")}if(e&&e.errors){var n=Object.values(e.errors);if(n[0]&&n[0][0])return n[0][0]}return!!(e.code&&e.message&&e.data&&e.data.status)&&e.message},d=n.reduce((function(e,t){return _()(t.context).forEach((function(n){e[n]=e[n]||[],e[n].push(t)})),e}),{}),f=function(n){p()(NewComponent,n);var f=I(NewComponent);function NewComponent(e){var t;return l()(this,NewComponent),(t=f.call(this,e)).state={data:!1,zeroData:!1,errorMessage:!1,moduleRequiringSetup:""},t.handleModuleDataReset=t.handleModuleDataReset.bind(g()(t)),t.handleReturnedData=t.handleReturnedData.bind(g()(t)),t.addDataRequests=t.addDataRequests.bind(g()(t)),t.removeDataRequests=t.removeDataRequests.bind(g()(t)),t}return u()(NewComponent,[{key:"componentDidMount",value:function(){Object(j.a)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.addDataRequests()}},{key:"componentWillUnmount",value:function(){Object(j.f)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.removeDataRequests()}},{key:"handleModuleDataReset",value:function(){this.removeDataRequests(),this.addDataRequests(),this.setState({data:!1,errorMessage:!1,zeroData:!1})}},{key:"addDataRequests",value:function(){var e=this,t=this.props.dateRange;Object.entries(d).forEach((function(n){var r=o()(n,2),a=r[0],i=r[1];Object(j.b)("googlesitekit.module".concat(a,"DataRequest"),"googlesitekit.withData.".concat(W(i)),(function(n){var r,a=Object(C.i)(),o=[],c=T(i);try{var l=function(){var n,i,c=r.value,l=c||{},s=l.type,u=l.identifier;if(x.b===s&&!(null===(n=a[u])||void 0===n?void 0:n.setupComplete))return e.setState({moduleRequiringSetup:u,moduleRequiringActivation:!(null===(i=a[u])||void 0===i?void 0:i.active)}),"continue";var d=Object(L.a)(c,t);d.callback=function(t){e.handleReturnedData(t,c)},o.push(d)};for(c.s();!(r=c.n()).done;)l()}catch(e){c.e(e)}finally{c.f()}return n.concat(o)}))}))}},{key:"removeDataRequests",value:function(){Object.entries(d).forEach((function(e){var t=o()(e,2),n=t[0],r=t[1];Object(j.g)("googlesitekit.module".concat(n,"DataRequest"),"googlesitekit.withData.".concat(W(r)))}))}},{key:"handleReturnedData",value:function(e,t){var n=this.props,r=n.handleDataError,a=n.handleDataSuccess,i=t.datapoint,o=t.identifier,l=t.toState,u=s(e);u?(this.setState({errorMessage:u,errorObj:e,module:o}),r&&r(u,e)):c(e,i,t)?(r&&r(u,e),this.setState({zeroData:!0})):a&&a(),this.setState({requestDataToState:l,data:e,datapoint:i,module:o})}},{key:"render",value:function(){var n=this.state,o=n.data,c=n.datapoint,l=n.module,s=n.zeroData,u=n.errorMessage,d=n.errorObj,g=n.requestDataToState,f=n.moduleRequiringSetup;if(n.moduleRequiringActivation)return Object(A.b)(f,i.inGrid,i.fullWidth,i.createGrid);if(f)return Object(A.a)(f,i.inGrid,i.fullWidth,i.createGrid);if(!o)return r;if(u)return"string"!=typeof u?u:Object(R.a)(l,u,i.inGrid,i.fullWidth,i.createGrid,d);if(s){var p,m=(null===(p=Object(C.i)()[l])||void 0===p?void 0:p.name)||Object(S.__)("Site Kit","google-site-kit");return Object(N.a)(m,i.inGrid,i.fullWidth,i.createGrid)}return e.createElement(t,a()({data:o,datapoint:c,requestDataToState:g},this.props))}}]),NewComponent}(E.Component),m=t.displayName||t.name||"AnonymousComponent";return f.displayName="withData(".concat(m,")"),U((function(e){return{dateRange:e(P.a).getDateRange(),dateRangeLength:e(P.a).getDateRangeNumberOfDays()}}))(f)}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return i}));var r="Date param must construct to a valid date instance or be a valid date instance itself.",a="Invalid dateString parameter, it must be a string.",i='Invalid date range, it must be a string with the format "last-x-days".'},function(e,t,n){"use strict";(function(e){var r=n(25),a=n.n(r),i=n(26),o=n.n(i),c=n(8),l=n.n(c),s=n(1),u=n.n(s),d=n(157),g=n(2),f=n(19),p=Object(g.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,s=t.className,u=t.danger,p=t.disabled,m=t.target,h=t.icon,b=t.trailingIcon,v=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon"]),y=Object(g.useCallback)((function(e){null!==e&&f.i.attachTo(e)}),[]),_=Object(d.a)(n,y),O=i&&!p?"a":"button";return e.createElement(O,a()({className:l()("mdc-button",s,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:p?void 0:i,ref:_,disabled:!!p,target:m||"_self",role:"a"===O?"button":void 0},v),h,r&&e.createElement("span",{className:"mdc-button__label"},r),b)}));p.displayName="Button",p.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element},p.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null},t.a=p}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(53),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(r.a)(new Date(e))}},function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(7),o=n.n(i),c=n(14),l=n.n(c),s=n(15),u=n.n(s),d=n(16),g=n.n(d),f=n(49),p=n.n(f),m=n(21),h=n.n(m),b=n(22),v=n.n(b),y=n(13),_=n.n(y),O=n(1),k=n.n(O),j=n(8),E=n.n(j),S=n(23),D=n(2),w=n(144),C=n(75),N=n(38),R=n(40),A=n(43),x=n(170),P=n(185),L=n(24),T=n(137);function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_()(e);if(t){var a=_()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var I=function(t){h()(Notification,t);var n,r,i=M(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(D.createRef)(),t.handleDismiss=t.handleDismiss.bind(p()(t)),t.handleCTAClick=t.handleCTAClick.bind(p()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(N.f)("notification::displayed::".concat(t.props.id),new Date),t}return g()(Notification,[{key:"handleDismiss",value:(r=l()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(N.f)("notification::dismissed::".concat(e.props.id),new Date),t.style.display="none";var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=l()(o.a.mark((function e(t){var n,r,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,r=n.isDismissable,!(a=n.onCTAClick)){e.next=5;break}return e.next=5,a(t);case 5:r&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,r=Object(N.c)("notification::dismissed::".concat(t));if(r){var a=new Date(r);a.setSeconds(a.getSeconds()+parseInt(n,10)),a<new Date&&Object(N.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,r=this.props,i=r.children,o=r.id,c=r.className,l=r.title,s=r.description,u=r.blockData,d=r.WinImageSVG,g=r.SmallImageSVG,f=r.format,p=r.learnMoreURL,m=r.learnMoreDescription,h=r.learnMoreLabel,b=r.ctaLink,v=r.ctaLabel,y=r.ctaTarget,_=r.type,O=r.dismiss,k=r.isDismissable,j=r.logo,M=r.module,I=r.moduleName,U=r.pageIndex,W=r.anchorLink,z=r.anchorLinkLabel;if(Object(N.c)("notification::dismissed::".concat(o)))return null;var F,q=n?"is-closed":"is-open",H="large"===f&&"win-stats-increase"===_,G="mdc-layout-grid__cell--span-12";"large"===f?(G="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",H&&(G="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===f&&(G="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),F="win-warning"===_?e.createElement(x.a,null):"win-error"===_?e.createElement(P.a,null):"";var B=e.createElement(D.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(S.map)(u,(function(t,n){return e.createElement("div",{key:n,className:E()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":H,"mdc-layout-grid__cell--span-4-desktop":!H})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(R.a,t)))})))),V=e.createElement(D.Fragment,null,l&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},l),W&&z&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(L.a,{href:W},z)),s&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(D.isValidElement)(s)?s:e.createElement("span",{dangerouslySetInnerHTML:Object(C.a)(s,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),h&&e.createElement(D.Fragment,null," ",e.createElement(L.a,{href:p,external:!0,inherit:!0},h),m),U&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},U))),i),$=M?e.createElement(T.a,{slug:M,size:19}):e.createElement(w.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:E()(c,"googlesitekit-publisher-win",(t={},a()(t,"googlesitekit-publisher-win--".concat(f),f),a()(t,"googlesitekit-publisher-win--".concat(_),_),a()(t,"googlesitekit-publisher-win--".concat(q),q),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},j&&e.createElement("div",{className:E()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":H,"mdc-layout-grid__cell--order-1-tablet":H})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},$),I&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},I)),g&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(g,null)),e.createElement("div",{className:E()("mdc-layout-grid__cell",G)},H?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},V),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},B)):e.createElement(D.Fragment,null,V,B),b&&e.createElement(A.a,{className:"googlesitekit-notification__cta",href:b,target:y,onClick:this.handleCTAClick},v),k&&O&&e.createElement(L.a,{onClick:this.handleDismiss},O)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(d,null))),("win-error"===_||"win-warning"===_)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},F)))))}}]),Notification}(D.Component);I.propTypes={id:k.a.string.isRequired,className:k.a.string,title:k.a.string.isRequired,description:k.a.node,learnMoreURL:k.a.string,learnMoreDescription:k.a.string,learnMoreLabel:k.a.string,blockData:k.a.array,WinImageSVG:k.a.elementType,SmallImageSVG:k.a.elementType,format:k.a.string,ctaLink:k.a.string,ctaLabel:k.a.string,type:k.a.string,dismiss:k.a.string,isDismissable:k.a.bool,logo:k.a.bool,module:k.a.string,moduleName:k.a.string,pageIndex:k.a.string,dismissExpires:k.a.number,showOnce:k.a.bool,onCTAClick:k.a.func,onDismiss:k.a.func,anchorLink:k.a.string,anchorLinkLabel:k.a.string},I.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=I}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r,a=n(15),i=n.n(a),o=n(16),c=n.n(o),l=function(t){var n=e[t];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return r||(r=l("sessionStorage")?e.sessionStorage:l("localStorage")?e.localStorage:new s),r}}).call(this,n(18))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r.b})),n.d(t,"b",(function(){return r.c})),n.d(t,"e",(function(){return a.a})),n.d(t,"f",(function(){return i.a})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return l.a})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return d}));var r=n(42),a=n(65),i=n(55),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t%7,r=0===n;if(r)return Object(i.a)(e,t);var a=t>7&&n<3,o=a?t-n:t+(7-n);return Object(i.a)(e,o)},c=(n(53),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}),l=n(45);function s(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var u=n(0);function d(){var e=function(e){return Object(u.sprintf)(
6
  /* translators: %s: number of days */
7
  Object(u._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,t){e.exports=googlesitekit.api},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/ui"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/location"},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(11),a=n.n(r),i=n(10),o=n.n(i),c=n(42),l=n(65),s=n(45),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;o()(Object(s.a)(e),c.c);var n=e.split("-"),r=a()(n,3),i=r[0],u=r[1],d=r[2],g=new Date(i,u-1,d);return g.setDate(g.getDate()-t),Object(l.a)(g)}},function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){var r=n(1),a=n.n(r),i=n(8),o=n.n(i),c=n(24),l=function CTA(t){var n=t.title,r=t.description,a=t.ctaLink,i=t.ctaLabel,l=t.error,s=t.onClick,u=t["aria-label"];return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":l})},n&&e.createElement("h3",{className:"googlesitekit-cta__title"},n),r&&"string"==typeof r&&e.createElement("p",{className:"googlesitekit-cta__description"},r),r&&"string"!=typeof r&&e.createElement("div",{className:"googlesitekit-cta__description"},r),i&&e.createElement(c.a,{href:a,onClick:s,inverse:!l,caps:!0,arrow:!0,"aria-label":u},i))};l.propTypes={title:a.a.string.isRequired,description:a.a.oneOfType([a.a.string,a.a.node]),ctaLink:a.a.string,ctaLabel:a.a.string,"aria-label":a.a.string,error:a.a.bool,onClick:a.a.func},l.defaultProps={title:"",description:"",ctaLink:"",ctaLabel:"",error:!1,onClick:function(){}},t.a=l}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return g}));var r=n(104),a=e._googlesitekitBaseData||{},i=a.isFirstAdmin,o=a.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},l=Object(r.a)(c),s=l.enableTracking,u=l.disableTracking,d=l.isTrackingEnabled,g=l.trackEvent;function f(e){e?s():u()}!0===o&&f(d())}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GoogleChart}));var r=n(6),a=n.n(r),i=n(25),o=n.n(i),c=n(37),l=n.n(c),s=n(26),u=n.n(s),d=n(8),g=n.n(d),f=n(1),p=n.n(f),m=n(193),h=n(2),b=n(29);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GoogleChart(t){var n=t.chartEvents,r=t.chartType,a=t.children,i=t.className,c=t.data,s=t.getChartWrapper,d=t.height,f=t.loaded,p=t.loadingHeight,v=t.loadingWidth,y=t.onMouseOver,_=t.onMouseOut,O=t.onReady,k=t.onSelect,j=t.selectedStats,E=t.width,S=u()(t,["chartEvents","chartType","children","className","data","getChartWrapper","height","loaded","loadingHeight","loadingWidth","onMouseOver","onMouseOut","onReady","onSelect","selectedStats","width"]),D=[];(null==c?void 0:c.length)&&(D=c[0].reduce((function(e,t,n){return(null==t?void 0:t.role)?[].concat(l()(e),[n]):e}),[]));var w=c;(null==j?void 0:j.length)>0&&(w=c.map((function(e){return e.filter((function(e,t){return 0===t||j.includes(t-1)||D.includes(t-1)}))})));var C=p||d,N=v||E;C&&!N&&(N="100%"),N&&!C&&(C="100%");var R="PieChart"===r?"circular":"square",A=e.createElement("div",{className:"googlesitekit-chart-loading"},e.createElement(b.a,{className:"googlesitekit-chart-loading__wrapper",height:C,shape:R,width:N})),x=Object(h.useRef)(),P=Object(h.useRef)();if(Object(h.useEffect)((function(){return function(){if(P.current&&x.current){var e=P.current.visualization.events;e.removeAllListeners(x.current.getChart()),e.removeAllListeners(x.current)}}}),[]),Object(h.useLayoutEffect)((function(){var e,t;y&&(null===(e=P.current)||void 0===e||e.visualization.events.addListener(x.current.getChart(),"onmouseover",(function(e){y(e,{chartWrapper:x.current,google:P.current})})));_&&(null===(t=P.current)||void 0===t||t.visualization.events.addListener(x.current.getChart(),"onmouseout",(function(e){_(e,{chartWrapper:x.current,google:P.current})})))}),[y,_]),!f)return e.createElement("div",{className:g()("googlesitekit-chart","googlesitekit-chart-loading__forced",i)},A);var L=l()(n||[]);return O&&L.push({eventName:"ready",callback:O}),k&&L.push({eventName:"select",callback:k}),e.createElement("div",{className:g()("googlesitekit-chart","googlesitekit-chart--".concat(r),i)},e.createElement(m.a,o()({className:"googlesitekit-chart__inner",chartEvents:L,chartType:r,chartVersion:"49",data:w,loader:A,height:d,getChartWrapper:function(e,t){var n,r,a;e!==x.current&&(null===(n=P.current)||void 0===n||n.visualization.events.removeAllListeners(null===(r=x.current)||void 0===r?void 0:r.getChart()),null===(a=P.current)||void 0===a||a.visualization.events.removeAllListeners(x.current));x.current=e,P.current=t,s&&s(e,t)},width:E},S)),a)}GoogleChart.propTypes={className:p.a.string,children:p.a.node,chartEvents:p.a.arrayOf(p.a.shape({eventName:p.a.string,callback:p.a.func})),chartType:p.a.oneOf(["LineChart","PieChart"]).isRequired,data:p.a.array,getChartWrapper:p.a.func,height:p.a.string,loaded:p.a.bool,loadingHeight:p.a.string,loadingWidth:p.a.string,onMouseOut:p.a.func,onMouseOver:p.a.func,onReady:p.a.func,onSelect:p.a.func,selectedStats:p.a.arrayOf(p.a.number),width:p.a.string},GoogleChart.defaultProps=y(y({},m.a.defaultProps),{},{loaded:!0})}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(1),a=n.n(r),i=n(8),o=n.n(i),c=n(29);function PreviewTable(t){for(var n=t.rows,r=t.rowHeight,a=t.padding,i=[],l=0;n>l;l++)i.push(e.createElement("div",{className:"googlesitekit-preview-table__row",key:"table-row-"+l},e.createElement(c.a,{width:"100%",height:r+"px"})));return e.createElement("div",{className:o()("googlesitekit-preview-table",{"googlesitekit-preview-table--padding":a})},i)}PreviewTable.propTypes={rows:a.a.number,rowHeight:a.a.number,padding:a.a.bool},PreviewTable.defaultProps={rows:11,rowHeight:35,padding:!1},t.a=PreviewTable}).call(this,n(2))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return i}));var r={BOXES:"boxes",COMPOSITE:"composite"},a={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},function(e,t,n){"use strict";(function(e,r){var a=n(11),i=n.n(a),o=n(1),c=n.n(o),l=n(23),s=n(8),u=n.n(s),d=n(2);function TableOverflowContainer(t){var n=t.children,a=Object(d.useState)(!1),o=i()(a,2),c=o[0],s=o[1],g=Object(d.useRef)();Object(d.useEffect)((function(){f();var t=Object(l.debounce)(f,100);return e.addEventListener("resize",t),function(){return e.removeEventListener("resize",t)}}),[]);var f=function(){if(g.current){var e=g.current,t=e.scrollLeft,n=e.scrollWidth-e.offsetWidth;s(t<n-16&&0<n-16)}};return r.createElement("div",{onScroll:Object(l.debounce)(f,100),className:u()("googlesitekit-table-overflow",{"googlesitekit-table-overflow--gradient":c})},r.createElement("div",{ref:g,className:"googlesitekit-table-overflow__container"},n))}TableOverflowContainer.propTypes={children:c.a.element},t.a=TableOverflowContainer}).call(this,n(18),n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ProgressBar}));var r=n(1),a=n.n(r),i=n(8),o=n.n(i);function ProgressBar(t){var n=t.className,r=t.small,a=t.compress,i=t.indeterminate,c=t.height,l=t.progress,s=void 0!==c?Math.round(c/2):void 0,u=l?"scaleX(".concat(l,")"):void 0;return e.createElement("div",{role:"progressbar",style:{marginTop:s,marginBottom:s},className:o()("mdc-linear-progress",n,{"mdc-linear-progress--indeterminate":i,"mdc-linear-progress--small":r,"mdc-linear-progress--compress":a})},e.createElement("div",{className:"mdc-linear-progress__buffering-dots"}),e.createElement("div",{className:"mdc-linear-progress__buffer"}),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__primary-bar",style:{transform:u}},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar"},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})))}ProgressBar.propTypes={className:a.a.string,small:a.a.bool,compress:a.a.bool,indeterminate:a.a.bool,progress:a.a.number,height:a.a.number},ProgressBar.defaultProps={className:"",small:!1,compress:!1,indeterminate:!0,progress:0}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(10),a=n.n(r),i=n(42),o=n(53),c=function(e){var t=new Date(e);a()(Object(o.a)(t),i.a);var n="".concat(t.getMonth()+1),r="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(44);function a(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},function(e,t,n){"use strict";(function(e){var r=n(1),a=n.n(r),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,r=t.invertColor,a=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(21),l=n.n(c),s=n(22),u=n.n(s),d=n(13),g=n.n(d),f=n(1),p=n.n(f),m=n(2);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var b=function(t){l()(DashboardModuleHeader,t);var n=h(DashboardModuleHeader);function DashboardModuleHeader(){return a()(this,DashboardModuleHeader),n.apply(this,arguments)}return o()(DashboardModuleHeader,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.description;return e.createElement("header",{className:"googlesitekit-dashboard-module-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-4-phone "},e.createElement("h3",{className:" googlesitekit-heading-3 googlesitekit-dashboard-module-header__title "},n),r&&e.createElement("p",{className:"googlesitekit-dashboard-module-header__description"},r))))}}]),DashboardModuleHeader}(m.Component);b.propTypes={title:p.a.string,description:p.a.string},b.defaultProps={title:"",description:""},t.a=b}).call(this,n(2))},function(e,t,n){"use strict";var r=n(131);n.d(t,"a",(function(){return r.a}));var a=n(132);n.d(t,"c",(function(){return a.a}));var i=n(133);n.d(t,"b",(function(){return i.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10),a=n.n(r),i=n(45),o=function(e){var t=e.startDate,n=e.endDate;return a()(Object(i.a)(t),"A valid startDate is required."),a()(Object(i.a)(n),"A valid endDate is required."),{start_date:t.replace(/-/g,""),end_date:n.replace(/-/g,"")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10),a=n.n(r),i=n(45),o=function(e){var t=e.startDate,n=e.endDate,r=e.compareStartDate,o=e.compareEndDate;a()(Object(i.a)(t),"A valid startDate is required."),a()(Object(i.a)(n),"A valid endDate is required.");var c={"_u.date00":t.replace(/-/g,""),"_u.date01":n.replace(/-/g,"")};return(r||o)&&(a()(Object(i.a)(r)&&Object(i.a)(o),"Valid compareStartDate and compareEndDate values are required."),c["_u.date10"]=r.replace(/-/g,""),c["_u.date11"]=o.replace(/-/g,"")),c}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(33),a=n.n(r),i=n(97),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(80),a=n.n(r),i="missing_required_scopes";function o(e){return a()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function l(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},function(e,t,n){"use strict";(function(e){var r=n(1),a=n.n(r),i=n(59);function Sparkline(t){var n=t.change,r=t.data,a=t.invertChangeColor,o=t.loadingHeight;if(!r)return null;var c=a?"red":"green",l=a?"green":"red",s={title:"",backgroundColor:"transparent",curveType:"line",width:"100%",height:"50",enableInteractivity:!1,chartArea:{height:"100%",width:"100%"},legend:{position:"none"},axisFontSize:0,hAxis:{baselineColor:"none",ticks:[]},vAxis:{baselineColor:"none",ticks:[]},axes:[],colors:[0<=(parseFloat(n)||0)?c:l]};return r.slice(1).some((function(e){return e[1]>0}))||(s.vAxis.minValue=0,s.vAxis.maxValue=1),e.createElement("div",{className:"googlesitekit-analytics-sparkline-chart-wrap"},e.createElement(i.a,{chartType:"LineChart",data:r,loadingHeight:o,options:s}))}Sparkline.propTypes={invertChangeColor:a.a.bool,loadingHeight:a.a.string},Sparkline.defaultProps={invertChangeColor:!1,loadingHeight:"46px"},t.a=Sparkline}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(33),a=n.n(r),i=n(107),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===a()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},,function(e,t,n){"use strict";n.d(t,"f",(function(){return s.a})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m.a})),n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return v})),n.d(t,"d",(function(){return y}));var r=n(186),a=n.n(r),i=n(228),o=n.n(i),c=n(5),l=n(116),s=n(217),u=n(8),d=n.n(u),g=n(0),f=n(55),p=function(e,t,n,r,a){var i=[[{type:"date",label:Object(g.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:"number",label:n},{type:"number",label:Object(g.__)("Previous period","google-site-kit")}]],o=function(e){return new Date("".concat(e," 00:00:00"))},l=Object(c.h)(),s={weekday:"short",month:"short",day:"numeric"};return e.forEach((function(e,u){var p,m,h=e[r],b=e.keys[0],v=(null===(p=t[u])||void 0===p?void 0:p[r])||0,y=(null===(m=t[u])||void 0===m?void 0:m.keys[0])||Object(f.a)(b,a),_=Object(g.sprintf)(
8
  /* translators: 1: date for user stats, 2: previous date for user stats comparison */
35
  Object(u.__)("%sK","google-site-kit"),v(m(e),e%10==0?{}:t)):v(e,{signDisplay:"never",maximumFractionDigits:1})},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(s.isFinite)(e)?e:Number(e),Object(s.isFinite)(e)||(console.warn("Invalid number",e,a()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return f(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(s.isPlainObject)(t)&&(n=g({},t))}var r=n,i=r.style,o=void 0===i?"metric":i;return"metric"===o?h(e):"duration"===o?f(e,t):v(e,n)},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?_():n,a=l()(t,["locale"]);return new Intl.NumberFormat(r,a).format(e)},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?_():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(r,{style:i,type:c});return l.format(e)}
36
  /* translators: used between list items, there is a space after the comma. */var s=Object(u.__)(", ","google-site-kit");return e.join(s)},_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(s.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var r=n(1),a=n.n(r),i=n(0),o=n(4),c=n.n(o),l=n(31),s=n(73),u=n(127),d=n(92),g=n(57),f=c.a.useSelect;function ReportError(t){var n,r=t.moduleSlug,a=t.error,o=f((function(e){return e(l.a).getModule(r)})),c=Object(i.sprintf)(Object(i.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name),p=a.message;Object(s.b)(a)&&(
37
  /* translators: %s: module name */
38
+ c=Object(i.sprintf)(Object(i.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),p=Object(u.a)(p,o));var m=null==a||null===(n=a.data)||void 0===n?void 0:n.reconnectURL,h=m?e.createElement(d.a,{message:p,reconnectURL:m}):p;return e.createElement(g.a,{title:c,description:h,error:!0})}ReportError.propTypes={moduleSlug:a.a.string.isRequired,error:a.a.object.isRequired}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}));var r=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},a=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function i(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core",a="modules"},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return v}));var r=n(7),a=n.n(r),i=n(14),o=n.n(i);n(37);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s,u="googlesitekit_".concat("1.34.1","_"),d=["sessionStorage","localStorage"],g=[].concat(d),f=function(){var t=o()(a.a.mark((function t(n){var r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",r.setItem(i,i),r.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),p=function(){var t=o()(a.a.mark((function t(){var n,r,i,o,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}i=c(g),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(l=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,f(l);case 12:if(!t.sent){t.next=14;break}s=e[l];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(a.a.mark((function e(t){var n,r,i,o,c,l,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(r),o=i.timestamp,c=i.ttl,l=i.value,s=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:l,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var t=o()(a.a.mark((function t(n,r){var i,o,c,l,s,d,g,f,m=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,l=i.timestamp,s=void 0===l?Math.round(Date.now()/1e3):l,d=i.isError,g=void 0!==d&&d,t.next=3,p();case 3:if(!(f=t.sent)){t.next=14;break}return t.prev=5,f.setItem("".concat(u).concat(n),JSON.stringify({timestamp:s,ttl:c,value:r,isError:g})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),v=function(){var t=o()(a.a.mark((function t(){var n,r,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(18))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var r=n(1),a=n.n(r),i=n(0),o=n(4),c=n.n(o),l=n(31),s=n(57),u=c.a.useSelect;function ReportZero(t){var n=t.moduleSlug,r=u((function(e){return e(l.a).getModule(n)}));return e.createElement(s.a,{title:
39
  /* translators: %s: Module name */
40
  Object(i.sprintf)(Object(i.__)("%s Gathering Data","google-site-kit"),null==r?void 0:r.name),description:Object(i.sprintf)(
41
  /* translators: %s: Module name */
51
  /* translators: %s: Module name */
52
  Object(o.__)("%s module setup needs to be completed","google-site-kit"),l.name),ctaLabel:Object(o.__)("Complete setup","google-site-kit"),"aria-label":Object(o.sprintf)(
53
  /* translators: %s: Module name */
54
+ Object(o.__)("Complete %s setup","google-site-kit"),l.name),onClick:v}):null};m.propTypes={moduleSlug:a.a.string.isRequired,title:a.a.string,description:a.a.string},t.a=m}).call(this,n(2))},function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,a,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(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(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(229),a=n(67),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(r.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,a,i,o,c,l,s,u,d,g,f,p,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(l=c.metrics)||void 0===l||null===(s=l[0])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(g=d.data)||void 0===g||null===(f=g.totals)||void 0===f||null===(p=f[0])||void 0===p||null===(m=p.values)||void 0===m?void 0:m[0])}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),a=n.n(r),i=n(105),o=n(106);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=l(l({},s),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,r)}}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(66),a=n(44);function i(t,n){var i=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(r),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f}));var r=n(7),a=n.n(r),i=n(6),o=n.n(i),c=n(14),l=n.n(c),s=n(66),u=n(56);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(t,n,r){var i=Object(s.a)(n);return function(){var n=l()(a.a.mark((function n(o,c,l,s){var d,f,p,m,h,b,v,y;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=t.isFirstAdmin,m=t.referenceSiteURL,h=t.trackingEnabled,b=t.trackingID,v=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(f=d.ioo)||void 0===f?void 0:f.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:b,event_category:o,event_label:l,value:s,dimension1:m,dimension2:p?"true":"false",dimension3:v,dimension4:"1.34.1",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,g(g({},y),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,a){return n.apply(this,arguments)}}()}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(146),a=n.n(r)()(e)}).call(this,n(18))},function(e,t,n){"use strict";(function(e){var r=n(0),a=n(24);t.a=function HelpLink(){var t=Object(r.__)("Need help?","google-site-kit");return e.createElement(a.a,{className:"googlesitekit-help-link",href:"https://sitekit.withgoogle.com/documentation/",external:!0},t)}}).call(this,n(2))},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportTable}));var r=n(8),a=n.n(r),i=n(147),o=n.n(i),c=n(10),l=n.n(c),s=n(1),u=n.n(s);function ReportTable(t){var n=t.rows,r=t.columns,i=t.className,c=t.limit;l()(Array.isArray(n),"rows must be an array."),l()(Array.isArray(r),"columns must be an array."),r.forEach((function(e){var t=e.Component,n=e.field,r=void 0===n?null:n;l()(t||null!==r,"each column must define a Component and/or a field.")})),l()(Number.isInteger(c)||void 0===c,"limit must be an integer, if provided.");var s=r.filter((function(e){return!e.hideOnMobile}));return e.createElement("div",{className:a()("googlesitekit-table","googlesitekit-table--with-list",i)},e.createElement("table",{className:a()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(r.length,"-col"),"googlesitekit-table__wrapper--mobile-".concat(s.length,"-col"))},e.createElement("thead",{className:"googlesitekit-table__head"},e.createElement("tr",{className:"googlesitekit-table__head-row"},r.map((function(t,n){var r=t.title,i=t.description,o=t.primary,c=t.hideOnMobile,l=t.className;return e.createElement("th",{className:a()("googlesitekit-table__head-item",{"googlesitekit-table__head-item--primary":o},{"hidden-on-mobile":c},l),"data-tooltip":i,key:"googlesitekit-table__head-row-".concat(n)},r)})))),e.createElement("tbody",{className:"googlesitekit-table__body"},n.slice(0,c).map((function(t,n){return e.createElement("tr",{className:"googlesitekit-table__body-row",key:"googlesitekit-table__body-row-".concat(n)},r.map((function(n,r){var i=n.Component,c=n.field,l=n.hideOnMobile,s=n.className,u=void 0!==c?o()(t,c):void 0;return e.createElement("td",{key:"googlesitekit-table__body-item-".concat(r),className:a()("googlesitekit-table__body-item",{"hidden-on-mobile":l},s)},e.createElement("div",{className:"googlesitekit-table__body-item-content"},i&&e.createElement(i,{row:t,fieldValue:u}),!i&&u))})))})))))}ReportTable.propTypes={rows:u.a.arrayOf(u.a.oneOfType([u.a.array,u.a.object])).isRequired,columns:u.a.arrayOf(u.a.shape({title:u.a.string,description:u.a.string,primary:u.a.bool,className:u.a.string,field:u.a.string,hideOnMobile:u.a.bool,Component:u.a.componentType})).isRequired,className:u.a.string,limit:u.a.number}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(0),a=n(5),i=n(73),o=n(127),c=n(92),l=n(57),s=n(96),u=n(235);t.a=function(t,n){var d,g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=arguments.length>3&&void 0!==arguments[3]&&arguments[3],p=arguments.length>4&&void 0!==arguments[4]&&arguments[4],m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=Object(a.i)(),b=h[t],v=Object(r.sprintf)(Object(r.__)("Data error in %s","google-site-kit"),null==b?void 0:b.name),y=n;Object(i.b)(m)&&(
55
  /* translators: %s: module name */
56
  v=Object(r.sprintf)(Object(r.__)("Insufficient permissions in %s","google-site-kit"),null==b?void 0:b.name),y=Object(o.a)(y,b));var _=null==m||null===(d=m.data)||void 0===d?void 0:d.reconnectURL,O=_?e.createElement(c.a,{message:y,reconnectURL:_}):y,k=e.createElement(l.a,{title:v,description:O,error:!0});return"Invalid Credentials"===n&&Object(a.u)(u.a),Object(s.a)(k,g,f,p)}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(35),a=n.n(r),i=n(154),o=e._googlesitekitAPIFetchData||{},c=o.nonce,l=o.nonceEndpoint,s=o.preloadedData,u=o.rootURL;a.a.nonceEndpoint=l,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(u),a.a.preloadingMiddleware=Object(i.a)(s),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,n(18))},,function(e,t,n){"use strict";t.a=function(e){if("string"==typeof e&&e.match(/[0-9]{8}/)){var t=e.slice(0,4),n=Number(e.slice(4,6))-1,r=e.slice(6,8);return new Date(t,n.toString(),r)}return!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(10),a=n.n(r),i=function(e,t){var n=t.dateRangeLength;a()(Array.isArray(e),"report must be an array to partition."),a()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var r=-1*n;return{currentRange:e.slice(r),compareRange:e.slice(2*r,r)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PageHeader}));var r=n(8),a=n.n(r),i=n(1),o=n.n(i);function PageHeader(t){var n=t.title,r=t.icon,i=t.className,o=t.status,c=t.statusText,l=t.fullWidth,s=t.children,u=l?"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-12\n\t\t":"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-4-phone\n\t\tmdc-layout-grid__cell--span-4-tablet\n\t\tmdc-layout-grid__cell--span-6-desktop\n\t\t",d=""!==o||Boolean(s);return e.createElement("header",{className:"googlesitekit-page-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:u},r,e.createElement("h1",{className:a()("googlesitekit-page-header__title",i)},n)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--align-right-tablet mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},e.createElement("div",{className:"googlesitekit-page-header__details"},o&&e.createElement("span",{className:a()("googlesitekit-page-header__status","googlesitekit-page-header__status--".concat(o))},c),s))))}PageHeader.propTypes={title:o.a.string,icon:o.a.node,className:o.a.string,status:o.a.string,statusText:o.a.string,fullWidth:o.a.bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}}).call(this,n(2))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return g}));var a=n(6),i=n.n(a),o=n(8),c=n.n(o),l=n(23),s=n(78),u=n(24),d=n(5),g=function(t,n,a){var o=[],g=a.links,f=a.source,p=a.showURLs,m=a.useAdminURLs,h=void 0!==m&&m,b=a.PrimaryLink,v=void 0===b?u.a:b;a.cap&&(t=t.slice(0,a.cap)),Object(l.each)(t,(function(t,n){var i=[],s=g&&g[n],f=s&&"/"===s[0]?Object(d.g)(e._googlesitekitLegacyData.admin.siteURL,s):s;Object(l.each)(t,(function(e,n){"string"==typeof e&&(e=e.replace(/\(none\)/gi,"direct"));var o=a&&a.hideColumns&&a.hideColumns.mobile.includes(n);i.push(r.createElement("td",{key:"cell-"+n,className:c()("googlesitekit-table__body-item",{"hidden-on-mobile":o})},t[0]===e&&s?r.createElement("div",{className:"googlesitekit-table__body-item-content"},r.createElement(v,{className:"googlesitekit-table__body-item-link",href:h?Object(d.k)("googlesitekit-dashboard",{permaLink:f}):s,external:!h,inherit:!0},e),p&&r.createElement(u.a,{className:"googlesitekit-table__body-item-url",href:s,inherit:!0,external:!0},s)):r.createElement("div",{className:"googlesitekit-table__body-item-content"},e)))})),o.push(r.createElement("tr",{key:"tr-"+n,className:"googlesitekit-table__body-row"},i))}));var y=t&&t[0]&&t[0].length?t[0].length:1,_=a.hideColumns&&a.hideColumns.mobile&&a.hideColumns.mobile.length>0?y-a.hideColumns.mobile.length:y;return r.createElement("div",{className:c()("googlesitekit-table",{"googlesitekit-table--with-list":!a||!a.disableListMode})},r.createElement("table",{className:c()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(y,"-col"),i()({},"googlesitekit-table__wrapper--mobile-".concat(_,"-col"),_!==y))},r.createElement("thead",{className:"googlesitekit-table__head"},r.createElement("tr",{key:"gksc_data_row_header-wrap",style:a&&a.hideHeader?{display:"none"}:{},className:"googlesitekit-table__head-row"},n.map((function(e,t){var n=a&&a.hideColumns&&a.hideColumns.mobile.includes(t);return r.createElement("th",{key:"gksc_data_row_header-".concat(t),className:c()("googlesitekit-table__head-item",{"googlesitekit-table__head-item--primary":e.primary},{"hidden-on-mobile":n}),"data-tooltip":e.tooltip},e.title)})))),r.createElement("tbody",{className:"googlesitekit-table__body"},o)),f&&r.createElement(s.a,{className:"googlesitekit-table__source",name:f.name,href:f.link}))}}).call(this,n(18),n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(2),a=n(4),i=n.n(a),o=n(62),c=i.a.useDispatch;function l(e,t,n){var a=c(o.b),i=a.setWidgetState,l=a.unsetWidgetState;Object(r.useEffect)((function(){return i(e,t,n),function(){l(e,t,n)}}),[e,t,n,i,l])}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSettingsWarning}));var r=n(4),a=n.n(r),i=n(31),o=n(8),c=n.n(o),l=n(177),s=a.a.useSelect;function ModuleSettingsWarning(t){var n=t.slug,r=s((function(e){var t;return null===(t=e(i.a))||void 0===t?void 0:t.getCheckRequirementsError(n)}));return r?e.createElement("div",{className:c()("googlesitekit-settings-module-warning","googlesitekit-settings-module-warning--modules-list")},e.createElement(l.a,{height:"20",width:"23"})," ",r.message):null}}).call(this,n(2))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return v}));var r=n(26),a=n.n(r),i=n(6),o=n.n(i),c=n(7),l=n.n(c),s=n(10),u=n.n(s),d=n(4),g=n.n(d),f=n(89),p=g.a.createRegistryControl,m=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},r={deleteSnapshot:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:l.a.mark((function e(){var t,n,r,a,i,o,c=arguments;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,r=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(a=e.sent,i=a.cacheHit,o=a.value,!i){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!r){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e)})),createSnapshot:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},i=(t={},o()(t,"DELETE_SNAPSHOT",(function(){return Object(f.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",p((function(t){return function(){return Object(f.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(f.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:r,controls:i,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,r=t.type,i=t.payload;switch(r){case"SET_STATE_FROM_SNAPSHOT":var o=i.snapshot,c=(o.error,a()(o,["error"]));return c;default:return e}}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(h(e).map((function(e){return e.getActions().createSnapshot()})))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(h(e).map((function(e){return e.getActions().restoreSnapshot()})))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0);function a(e,t){var n=t||{},a=n.slug,i=void 0===a?"":a,o=n.name,c=void 0===o?"":o,l=n.owner,s=void 0===l?null:l;if(!i||!c)return e;var u="",d="";return"analytics"===i?e.match(/account/i)?u=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics account, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit"):e.match(/property/i)?u=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics property, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit"):e.match(/view/i)&&(u=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics view, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit")):"search-console"===i&&(u=Object(r.__)("Your Google account does not have sufficient permissions for this Search Console property, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit")),u||(u=Object(r.sprintf)(
57
  /* translators: %s: module name */
dist/assets/js/{googlesitekit-dashboard-splash.e46fcb3fa397a1b5a05b.js → googlesitekit-dashboard-splash.138368525f6267f42684.js} RENAMED
@@ -1,11 +1,11 @@
1
- (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[8],{0:function(e,t){e.exports=googlesitekit.i18n},101:function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function i(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function a(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,i,a];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},102:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(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)]}},103:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}));var r=n(229),i=n(67),a=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var a=n.invertColor,o=void 0!==a&&a;return Object(r.a)(e.createElement(i.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,i,a,o,c,s,l,u,d,f,p,g,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(i=e[0])||void 0===i||null===(a=i.data)||void 0===a||null===(o=a.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(s=c.metrics)||void 0===s||null===(l=s[0])||void 0===l||null===(u=l.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(p=f.totals)||void 0===p||null===(g=p[0])||void 0===g||null===(m=g.values)||void 0===m?void 0:m[0])}}).call(this,n(2))},104:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),i=n.n(r),a=n(105),o=n(106);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=s(s({},l),t);return i.referenceSiteURL&&(i.referenceSiteURL=i.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(a.a)(i,n),disableTracking:function(){i.trackingEnabled=!1},isTrackingEnabled:function(){return!!i.trackingEnabled},trackEvent:Object(o.a)(i,n,r)}}}).call(this,n(18))},105:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(66),i=n(44);function a(t,n){var a=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(i.b,"]"))){var r=n.createElement("script");r.setAttribute(i.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(i.a),n.head.appendChild(r),a("js",new Date),a("config",t.trackingID)}}}}).call(this,n(18))},106:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p}));var r=n(7),i=n.n(r),a=n(6),o=n.n(a),c=n(14),s=n.n(c),l=n(66),u=n(56);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(t,n,r){var a=Object(l.a)(n);return function(){var n=s()(i.a.mark((function n(o,c,s,l){var d,p,g,m,h,v,b,k;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(g=t.isFirstAdmin,m=t.referenceSiteURL,h=t.trackingEnabled,v=t.trackingID,b=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(p=d.ioo)||void 0===p?void 0:p.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return k={send_to:v,event_category:o,event_label:s,value:l,dimension1:m,dimension2:g?"true":"false",dimension3:b,dimension4:"1.34.0",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);a("event",c,f(f({},k),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,i){return n.apply(this,arguments)}}()}}).call(this,n(18))},107:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(146),i=n.n(r)()(e)}).call(this,n(18))},108:function(e,t,n){"use strict";(function(e){var r=n(0),i=n(24);t.a=function HelpLink(){var t=Object(r.__)("Need help?","google-site-kit");return e.createElement(i.a,{className:"googlesitekit-help-link",href:"https://sitekit.withgoogle.com/documentation/",external:!0},t)}}).call(this,n(2))},113:function(e,t,n){"use strict";(function(e){var r=n(35),i=n.n(r),a=n(154),o=e._googlesitekitAPIFetchData||{},c=o.nonce,s=o.nonceEndpoint,l=o.preloadedData,u=o.rootURL;i.a.nonceEndpoint=s,i.a.nonceMiddleware=i.a.createNonceMiddleware(c),i.a.rootURLMiddleware=i.a.createRootURLMiddleware(u),i.a.preloadingMiddleware=Object(a.a)(l),i.a.use(i.a.nonceMiddleware),i.a.use(i.a.mediaUploadMiddleware),i.a.use(i.a.rootURLMiddleware),i.a.use(i.a.preloadingMiddleware),t.default=i.a}).call(this,n(18))},12:function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return o}));var r="core/user",i="connected_url_mismatch",a="googlesitekit_view_dashboard",o="googlesitekit_manage_options"},120:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSettingsWarning}));var r=n(4),i=n.n(r),a=n(31),o=n(8),c=n.n(o),s=n(177),l=i.a.useSelect;function ModuleSettingsWarning(t){var n=t.slug,r=l((function(e){var t;return null===(t=e(a.a))||void 0===t?void 0:t.getCheckRequirementsError(n)}));return r?e.createElement("div",{className:c()("googlesitekit-settings-module-warning","googlesitekit-settings-module-warning--modules-list")},e.createElement(s.a,{height:"20",width:"23"})," ",r.message):null}}).call(this,n(2))},124:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return b}));var r=n(26),i=n.n(r),a=n(6),o=n.n(a),c=n(7),s=n.n(c),l=n(10),u=n.n(l),d=n(4),f=n.n(d),p=n(89),g=f.a.createRegistryControl,m=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},r={deleteSnapshot:s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:s.a.mark((function e(){var t,n,r,i,a,o,c=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,r=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(i=e.sent,a=i.cacheHit,o=i.value,!a){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!r){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",a);case 14:case"end":return e.stop()}}),e)})),createSnapshot:s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},a=(t={},o()(t,"DELETE_SNAPSHOT",(function(){return Object(p.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",g((function(t){return function(){return Object(p.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(p.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:r,controls:a,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,r=t.type,a=t.payload;switch(r){case"SET_STATE_FROM_SNAPSHOT":var o=a.snapshot,c=(o.error,i()(o,["error"]));return c;default:return e}}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().createSnapshot()})))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().restoreSnapshot()})))}},128:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return UnsatisfiedScopesAlert}));var i=n(11),a=n.n(i),o=n(290),c=n.n(o),s=n(0),l=n(4),u=n.n(l),d=n(46),f=n(5),p=n(12),g=n(54),m=u.a.useSelect,h={siteverification:"site-verification",webmasters:"search-console"};function UnsatisfiedScopesAlert(){var t,n,i,o,l,u=m((function(e){return e(g.a).isNavigatingTo(/(\/o\/oauth2)|(action=googlesitekit_connect)/i)})),v=m((function(e){return e(p.a).getUnsatisfiedScopes()})),b=m((function(t){return t(p.a).getConnectURL({redirectURL:e.location.href})}));if(u||!(null==v?void 0:v.length)||void 0===b)return null;switch(v.some((function(e){return!e.match(/^https:\/\/www.googleapis.com\/auth\//)}))?t="generic":(i=v,o=Object(f.i)(),t=(n=i.map((function(e){return e.match(/^https:\/\/www.googleapis.com\/auth\/([a-z]+)/)})).map((function(e){var t=a()(e,2)[1];return h[t]||t})).map((function(e){var t;return(null===(t=o[e])||void 0===t?void 0:t.name)||!1}))).some((function(e){return!1===e}))?"generic":1<(n=c()(n)).length?"multiple":"single"),t){case"multiple":l=Object(s.sprintf)(
2
  /* translators: %s: List of product names */
3
  Object(s.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for: %s – make sure to approve all permissions at the authentication stage.","google-site-kit"),Object(f.o)(n));break;case"single":l=Object(s.sprintf)(
4
  /* translators: %1$s: Product name */
5
  Object(s.__)("Site Kit can’t access the relevant data from %1$s because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for %1$s – make sure to approve all permissions at the authentication stage.","google-site-kit"),n[0]);break;case"generic":l=Object(s.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup – make sure to approve all permissions at the authentication stage.","google-site-kit")}return r.createElement(d.a,{id:"authentication error",title:Object(s.__)("Site Kit can’t access necessary data","google-site-kit"),description:l,format:"small",type:"win-error",isDismissable:!1,ctaLink:b,ctaLabel:Object(s.__)("Redo setup","google-site-kit")})}}).call(this,n(18),n(2))},130:function(e,t,n){"use strict";var r=n(2),i=n(56),a=Object(r.createContext)(i.a);t.a=a},131:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Cell}));var r=n(25),i=n.n(r),a=n(6),o=n.n(a),c=n(26),s=n.n(c),l=n(1),u=n.n(l),d=n(8),f=n.n(d);function Cell(t){var n,r=t.className,a=t.alignTop,c=t.alignMiddle,l=t.alignBottom,u=t.alignRight,d=t.alignLeft,p=t.smSize,g=t.smStart,m=t.mdSize,h=t.mdStart,v=t.lgSize,b=t.lgStart,k=t.size,y=t.children,_=s()(t,["className","alignTop","alignMiddle","alignBottom","alignRight","alignLeft","smSize","smStart","mdSize","mdStart","lgSize","lgStart","size","children"]);return e.createElement("div",i()({},_,{className:f()(r,"mdc-layout-grid__cell",(n={"mdc-layout-grid__cell--align-top":a,"mdc-layout-grid__cell--align-middle":c,"mdc-layout-grid__cell--align-bottom":l,"mdc-layout-grid__cell--align-right":u,"mdc-layout-grid__cell--align-left":d},o()(n,"mdc-layout-grid__cell--span-".concat(k),12>=k&&k>0),o()(n,"mdc-layout-grid__cell--span-".concat(v,"-desktop"),12>=v&&v>0),o()(n,"mdc-layout-grid__cell--start-".concat(b,"-desktop"),12>=b&&b>0),o()(n,"mdc-layout-grid__cell--span-".concat(m,"-tablet"),8>=m&&m>0),o()(n,"mdc-layout-grid__cell--start-".concat(h,"-tablet"),8>=h&&h>0),o()(n,"mdc-layout-grid__cell--span-".concat(p,"-phone"),4>=p&&p>0),o()(n,"mdc-layout-grid__cell--start-".concat(g,"-phone"),4>=g&&g>0),n))}),y)}Cell.propTypes={smSize:u.a.number,smStart:u.a.number,mdSize:u.a.number,mdStart:u.a.number,lgSize:u.a.number,lgStart:u.a.number,size:u.a.number,alignTop:u.a.bool,alignMiddle:u.a.bool,alignBottom:u.a.bool,alignRight:u.a.bool,alignLeft:u.a.bool,className:u.a.string,children:u.a.node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,mdSize:0,mdStart:0,lgSize:0,lgStart:0}}).call(this,n(2))},132:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Row}));var r=n(25),i=n.n(r),a=n(26),o=n.n(a),c=n(1),s=n.n(c),l=n(8),u=n.n(l);function Row(t){var n=t.className,r=t.children,a=o()(t,["className","children"]);return e.createElement("div",i()({className:u()("mdc-layout-grid__inner",n)},a),r)}Row.propTypes={className:s.a.string,children:s.a.node},Row.defaultProps={className:""}}).call(this,n(2))},133:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Grid}));var r=n(25),i=n.n(r),a=n(26),o=n.n(a),c=n(1),s=n.n(c),l=n(8),u=n.n(l);function Grid(t){var n=t.className,r=t.children,a=o()(t,["className","children"]);return e.createElement("div",i()({className:u()("mdc-layout-grid",n)},a),r)}Grid.propTypes={className:s.a.string,children:s.a.node},Grid.defaultProps={className:""}}).call(this,n(2))},134:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(48),i=n(38),a=function(t,n,a){var o=Object(i.d)(t,n,a);Object(i.e)(),Object.keys(e._googlesitekitLegacyData.admin.datacache).forEach((function(t){0!==t.indexOf(o+"::")&&t!==o||delete e._googlesitekitLegacyData.admin.datacache[t]})),Object.keys(Object(r.a)()).forEach((function(e){0!==e.indexOf("".concat(i.a).concat(o,"::"))&&e!=="".concat(i.a).concat(o)||Object(r.a)().removeItem(e)}))}}).call(this,n(18))},137:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleIcon}));var r=n(25),i=n.n(r),a=n(26),o=n.n(a),c=n(1),s=n.n(c),l=n(4),u=n.n(l),d=n(31),f=u.a.useSelect;function ModuleIcon(t){var n=t.slug,r=t.size,a=o()(t,["slug","size"]),c=f((function(e){return e(d.a).getModuleIcon(n)}));return c?e.createElement(c,i()({width:r,height:r},a)):null}ModuleIcon.propTypes={slug:s.a.string.isRequired,size:s.a.number},ModuleIcon.defaultProps={size:33}}).call(this,n(2))},141:function(e,t,n){"use strict";(function(e){var r=n(25),i=n.n(r),a=n(26),o=n.n(a),c=n(1),s=n.n(c),l=n(8),u=n.n(l);function VisuallyHidden(t){var n=t.className,r=t.children,a=o()(t,["className","children"]);return e.createElement("span",i()({},a,{className:u()("screen-reader-text",n)}),r)}VisuallyHidden.propTypes={className:s.a.string,children:s.a.node.isRequired},VisuallyHidden.defaultProps={className:""},t.a=VisuallyHidden}).call(this,n(2))},144:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{d:"M2.253 12.252l7.399 5.658A13.055 13.055 0 009 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22.02 22.02 0 010 22c0-3.506.81-6.814 2.253-9.748z",fill:"#FBBC05"}),r.createElement("path",{d:"M9.652 17.91l-7.4-5.658A21.935 21.935 0 0122 0c5.6 0 10.6 2.1 14.5 5.5l-6.4 6.4C27.9 10.1 25.1 9 22 9c-5.77 0-10.64 3.725-12.348 8.91z",fill:"#EA4335"}),r.createElement("path",{d:"M2.25 31.742l7.396-5.67A12.975 12.975 0 0022 35c6.1 0 10.7-3.1 11.8-8.5H22V18h20.5c.3 1.3.5 2.7.5 4 0 14-10 22-21 22A21.935 21.935 0 012.25 31.742z",fill:"#34A853"}),r.createElement("path",{d:"M36.34 38.52l-7.025-5.437c2.297-1.45 3.895-3.685 4.485-6.583H22V18h20.5c.3 1.3.5 2.7.5 4 0 7.17-2.623 12.767-6.66 16.52z",fill:"#4285F4"}));t.a=function SvgLogoG(e){return r.createElement("svg",i({viewBox:"0 0 43 44"},e),a)}},154:function(e,t,n){"use strict";var r=n(152);t.a=function(e){var t=Object.keys(e).reduce((function(t,n){return t[Object(r.getStablePath)(n)]=e[n],t}),{}),n=!1;return function(e,i){if(n)return i(e);setTimeout((function(){n=!0}),1e3);var a=e.parse,o=void 0===a||a,c=e.path;if("string"==typeof e.path){var s,l=(null===(s=e.method)||void 0===s?void 0:s.toUpperCase())||"GET",u=Object(r.getStablePath)(c);if(o&&"GET"===l&&t[u]){var d=Promise.resolve(t[u].body);return delete t[u],d}if("OPTIONS"===l&&t[l]&&t[l][u]){var f=Promise.resolve(t[l][u]);return delete t[l][u],f}}return i(e)}}},155:function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),a=n(16),o=n.n(a),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(13),f=n.n(d),p=n(2),g=n(46);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u()(this,n)}}var h=function(t){s()(GenericError,t);var n=m(GenericError);function GenericError(){return i()(this,GenericError),n.apply(this,arguments)}return o()(GenericError,[{key:"render",value:function(){return e.createElement(g.a,this.props)}}]),GenericError}(p.Component);t.a=h}).call(this,n(2))},156:function(e,t,n){"use strict";(function(e){var r=n(1),i=n.n(r),a=n(299),o=n.n(a),c=n(8),s=n.n(c),l=n(294),u=n(2),d=n(0),f=n(43),p=n(24),g=n(19),m=n(191),h=function Dialog(t){var n=t.dialogActive,r=t.handleDialog,i=t.title,a=t.provides,c=t.handleConfirm,h=t.subtitle,v=t.confirmButton,b=t.dependentModules,k=t.danger,y=t.inProgress,_=void 0!==y&&y,E=Object(u.useCallback)((function(e){null!==e&&g.e.attachTo(e)}),[]),O=Object(l.a)(Dialog),j="googlesitekit-dialog-label-".concat(O),S="googlesitekit-dialog-description-".concat(O),w=!(!a||!a.length);return e.createElement("div",{ref:E,className:s()("mdc-dialog",{"mdc-dialog--open":n}),role:"alertdialog","aria-modal":"true","aria-labelledby":i?j:void 0,"aria-describedby":w?S:void 0,"aria-hidden":n?"false":"true",tabIndex:"-1"},e.createElement("div",{className:"mdc-dialog__scrim"}," "),e.createElement(o.a,{active:n},e.createElement("div",null,e.createElement("div",{className:"mdc-dialog__container"},e.createElement("div",{className:"mdc-dialog__surface"},i&&e.createElement("h2",{id:j,className:"mdc-dialog__title"},i),h&&e.createElement("p",{className:"mdc-dialog__lead"},h),w&&e.createElement("section",{id:S,className:"mdc-dialog__content"},e.createElement("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive"},a.map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t},e.createElement("span",{className:"mdc-list-item__text"},t))})))),b&&e.createElement("p",{className:"mdc-dialog__dependecies"},e.createElement("strong",null,Object(d.__)("Note: ","google-site-kit")),b),e.createElement("footer",{className:"mdc-dialog__actions"},e.createElement(f.a,{onClick:c,danger:k,disabled:_},v||Object(d.__)("Disconnect","google-site-kit")),e.createElement(m.a,{isSaving:_}),e.createElement(p.a,{className:"googlesitekit-margin-left-auto mdc-dialog__cancel-button",onClick:r,inherit:!0,disabled:_},Object(d.__)("Cancel","google-site-kit"))))))))};h.displayName="Dialog",h.propTypes={dialogActive:i.a.bool,handleDialog:i.a.func,handleConfirm:i.a.func.isRequired,title:i.a.string,description:i.a.string,confirmButton:i.a.string,danger:i.a.bool},h.defaultProps={dialogActive:!1,handleDialog:null,title:null,description:null,confirmButton:null,danger:!1},t.a=h}).call(this,n(2))},159:function(e,t,n){"use strict";var r=n(11),i=n.n(r),a=n(312),o=n(2),c=n(176);t.a=function Modal(e){var t=e.children,n=Object(o.useState)(document.createElement("div")),r=i()(n,1)[0];return Object(a.a)((function(){var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(r),function(){return e.removeChild(r)}})),Object(c.createPortal)(t,r)}},161:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AuthError}));var r=n(0),i=n(4),a=n.n(i),o=n(12),c=n(46),s=a.a.useSelect;function AuthError(){var t=s((function(e){return e(o.a).getAuthError()}));return t?e.createElement(c.a,{id:"autherror",title:Object(r.__)("Site Kit can’t access necessary data","google-site-kit"),description:t.message,ctaLink:t.data.reconnectURL,ctaLabel:Object(r.__)("Redo the plugin setup","google-site-kit")}):null}}).call(this,n(2))},164:function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v}));var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(17),s=n(28),l=n(38),u=(Object(c.c)("googlesitekit.winCallbacks",{}),function(){return Object(c.c)("googlesitekit.ModulesNotificationsRequest",[])});function d(){return f.apply(this,arguments)}function f(){return(f=o()(i.a.mark((function t(){var n,r,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=e._googlesitekitLegacyData.setup).isSiteKitConnected&&(n.isAuthenticated||n.isVerified)){t.next=3;break}return t.abrupt("return",0);case 3:return r=0,t.next=6,g();case 6:return(a=t.sent)&&a.total&&(r+=a.total),r=Object(c.c)("googlesitekit.TotalNotifications",r),r=Math.max(0,Math.abs(r)),e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",r),t.abrupt("return",r);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var p=function(e){return e?e.length?e.filter((function(e){return!Object(l.c)("notification::dismissed::".concat(e.id))})):e:[]};function g(){return m.apply(this,arguments)}function m(){return(m=o()(i.a.mark((function e(){var t,n,r,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},n=0,e.next=4,u();case 4:return r=e.sent,a=[],r.map(function(){var e=o()(i.a.mark((function e(t){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new Promise(function(){var e=o()(i.a.mark((function e(n){var r,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.identifier,e.t0=p,e.next=4,s.c.get(s.b,r,"notifications",{},!1);case 4:e.t1=e.sent,a=(0,e.t0)(e.t1),n({identifier:r,notifications:a});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),a.push(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=9,Promise.all(a).then((function(e){e.forEach((function(e){e.notifications.length&&(n+=e.notifications.length,t[e.identifier]=e.notifications)}))}));case 9:return e.abrupt("return",{results:t,total:n});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var h=function(t){var n=Math.abs(t.count)+1;return e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",n),{count:n}},v=function(t){var n=Math.max(0,Math.abs(t.count)-1);return e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",n),{count:n}}}).call(this,n(18))},169:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return u}));var r="https://cdn.ampproject.org/v0.js",i="amp_cdn_restricted",a="check_api_unavailable",o="check_fetch_failed",c="google_api_connection_fail",s="invalid_hostname",l="setup_token_mismatch",u="wp_pre_v5"},170:function(e,t,n){"use strict";(function(e){t.a=function Warning(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#F9BB2D",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),e.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))}}).call(this,n(2))},171:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(5),s=["fetch_error"];function l(e){return u.apply(this,arguments)}function u(){return(u=o()(i.a.mark((function e(t){var n,r,a,o,l,u,d,f;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.method,o=t.type,l=t.identifier,u=t.datapoint,(d=t.error)&&!s.includes(null==d?void 0:d.code)){e.next=3;break}return e.abrupt("return");case 3:return f="code: ".concat(d.code),(null===(n=d.data)||void 0===n?void 0:n.reason)&&(f+=", reason: ".concat(d.data.reason)),e.next=7,Object(c.w)("api_error","".concat(a,":").concat(o,"/").concat(l,"/data/").concat(u),"".concat(d.message," (").concat(f,")"),(null===(r=d.data)||void 0===r?void 0:r.status)||d.code);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},172:function(e,t,n){"use strict";(function(e){var r=n(11),i=n.n(r),a=n(312),o=n(8),c=n.n(o),s=n(1),l=n.n(s),u=n(157),d=n(2),f=n(19),p=Object(d.forwardRef)((function(t,n){var r=t.children,o=t.className,s=t.menuOpen,l=t.menuItems,p=t.onSelected,g=t.id,m=Object(d.useState)(null),h=i()(m,2),v=h[0],b=h[1],k=Object(d.useRef)(null),y=Object(u.a)(n,k),_=Object(d.useCallback)((function(e){var t=e.detail.index;p(t,e)}),[p]);return Object(a.a)((function(){if(null==k?void 0:k.current){var e=new f.g(k.current);return e.listen("MDCMenu:selected",_),b(e),function(){e.unlisten("MDCMenu:selected",_)}}})),Object(d.useEffect)((function(){v&&(v.open=s,v.setDefaultFocusState(1))}),[v,s]),e.createElement("div",{className:c()("mdc-menu","mdc-menu-surface",o),ref:y},e.createElement("ul",{"aria-hidden":!s,"aria-orientation":"vertical",className:"mdc-list",id:g,role:"menu",tabIndex:"-1"},!r&&l.map((function(t,n){return e.createElement("li",{key:n,className:"mdc-list-item",role:"menuitem"},e.createElement("span",{className:"mdc-list-item__text"},t))})),r))}));p.displayName="Menu",p.propTypes={className:l.a.string,children:l.a.node,menuOpen:l.a.bool.isRequired,menuItems:l.a.array,id:l.a.string.isRequired,onSelected:l.a.func},p.defaultProps={onSelected:function(){}},t.a=p}).call(this,n(2))},173:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(403),i=function(e,t,n){Object(r.a)((function(n){return e.includes(n.keyCode)&&t.current.contains(n.target)}),n)}},174:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureTours}));var r=n(1),i=n.n(r),a=n(4),o=n.n(a),c=n(12),s=n(212),l=o.a.useSelect;function FeatureTours(t){var n=t.viewContext,r=l((function(e){var t;return null===(t=e(c.a).getFeatureToursForView(n))||void 0===t?void 0:t[0]})),i=l((function(e){return e(c.a).areFeatureToursOnCooldown()}));return!r||i?null:e.createElement(s.a,{tourID:r.slug,steps:r.steps,gaEventCategory:r.gaEventCategory})}FeatureTours.propTypes={viewContext:i.a.string}}).call(this,n(2))},175:function(e,t,n){"use strict";(function(e){var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(1),s=n.n(c),l=n(2),u=n(24),d=n(5);function HelpMenuLink(t){var n=t.children,r=t.href,a=t.gaEventLabel,c=Object(l.useCallback)(o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=3;break}return e.next=3,Object(d.w)("global_help_menu","click_outgoing_link",a);case 3:case"end":return e.stop()}}),e)}))),[a]);return e.createElement("li",{className:"googlesitekit-help-menu-link mdc-list-item",role:"none"},e.createElement(u.a,{className:"mdc-list-item__text",href:r,external:!0,hideExternalIndicator:!0,inherit:!0,role:"menuitem",onClick:c},n))}HelpMenuLink.propTypes={children:s.a.node.isRequired,href:s.a.string.isRequired,gaEventLabel:s.a.string},t.a=HelpMenuLink}).call(this,n(2))},177:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M3.332 24.75h21.335c2.182 0 3.542-2.366 2.451-4.25L16.451 2.07C15.36.184 12.64.184 11.549 2.07L.882 20.5c-1.091 1.884.269 4.25 2.45 4.25zM14 14.833a1.42 1.42 0 01-1.417-1.416v-2.834c0-.779.638-1.416 1.417-1.416.78 0 1.417.637 1.417 1.416v2.834A1.42 1.42 0 0114 14.833zm1.417 5.667h-2.834v-2.833h2.834V20.5z",fill:"#EA4336",fillRule:"nonzero"});t.a=function SvgError(e){return r.createElement("svg",i({viewBox:"0 0 28 25"},e),a)}},182:function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(28);function s(){return l.apply(this,arguments)}function l(){return(l=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.c.get(c.a,"site","notifications",{},!1);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var u=n(58);function d(e,t){return f.apply(this,arguments)}function f(){return(f=o()(i.a.mark((function e(t,n){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c.c.invalidateCacheGroup(c.a,"site","notifications"),e.next=3,Object(u.b)("site_notifications",n,t);case 3:return e.next=5,c.c.set(c.a,"site","mark-notification",{notificationID:t,notificationState:n});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return g.apply(this,arguments)}function g(){return(g=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(t,"accepted");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return h.apply(this,arguments)}function h(){return(h=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(t,"dismissed");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},185:function(e,t,n){"use strict";(function(e){t.a=function Error(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#EA4336",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"error-title error-desc"},e.createElement("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"}))}}).call(this,n(2))},19:function(e,t,n){"use strict";var r=n(110),i=n.n(r);n.d(t,"n",(function(){return i.a})),n.d(t,"c",(function(){return r.HelperText})),n.d(t,"d",(function(){return r.Input}));var a=n(218);n.d(t,"i",(function(){return a.a}));var o=n(305);n.d(t,"f",(function(){return o.a}));var c=n(306);n.d(t,"h",(function(){return c.a}));var s=n(136),l=n.n(s);n.d(t,"m",(function(){return l.a})),n.d(t,"k",(function(){return s.Option}));var u=n(307);n.d(t,"j",(function(){return u.a}));var d=n(304);n.d(t,"e",(function(){return d.a}));var f=n(303);n.d(t,"g",(function(){return f.a}));var p=n(69);n.d(t,"a",(function(){return p.a})),n.d(t,"b",(function(){return p.b})),n.d(t,"l",(function(){return p.c}))},191:function(e,t,n){"use strict";(function(e){t.a=function Spinner(t){var n=t.isSaving;return e.createElement("span",{className:"spinner",style:{display:n?"inline-block":"none",float:"none",marginTop:"0",visibility:"visible"}})}}).call(this,n(2))},195:function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),a=n(16),o=n.n(a),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(13),f=n.n(d),p=n(1),g=n.n(p),m=n(8),h=n.n(m),v=n(2),b=n(24);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u()(this,n)}}var y=function(t){s()(LayoutHeader,t);var n=k(LayoutHeader);function LayoutHeader(){return i()(this,LayoutHeader),n.apply(this,arguments)}return o()(LayoutHeader,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.ctaLabel,i=t.ctaLink;return e.createElement("header",{className:"googlesitekit-layout__header"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:h()("mdc-layout-grid__cell","mdc-layout-grid__cell--align-middle","mdc-layout-grid__cell--span-4-phone",{"mdc-layout-grid__cell--span-6-desktop":i,"mdc-layout-grid__cell--span-12-desktop":!i,"mdc-layout-grid__cell--span-8-tablet":!i})},e.createElement("h3",{className:"googlesitekit-subheading-1 googlesitekit-layout__header-title"},n)),i&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--align-middle mdc-layout-grid__cell--align-right-tablet "},e.createElement(b.a,{href:i,external:!0,inherit:!0},r)))))}}]),LayoutHeader}(v.Component);y.propTypes={title:g.a.string,ctaLabel:g.a.string,ctaLink:g.a.string},y.defaultProps={title:"",ctaLabel:"",ctaLink:""},t.a=y}).call(this,n(2))},196:function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),a=n(16),o=n.n(a),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(13),f=n.n(d),p=n(1),g=n.n(p),m=n(2),h=n(78);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u()(this,n)}}var b=function(t){s()(LayoutFooter,t);var n=v(LayoutFooter);function LayoutFooter(){return i()(this,LayoutFooter),n.apply(this,arguments)}return o()(LayoutFooter,[{key:"render",value:function(){var t=this.props,n=t.ctaLabel,r=t.ctaLink,i=t.footerContent;return e.createElement("footer",{className:"googlesitekit-layout__footer"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},r&&n&&e.createElement(h.a,{className:"googlesitekit-data-block__source",name:n,href:r,external:!0}),i))))}}]),LayoutFooter}(m.Component);b.propTypes={ctaLabel:g.a.string,ctaLink:g.a.string},t.a=b}).call(this,n(2))},198:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M14 1.41L12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7 14 1.41z",fill:"#fff"});t.a=function SvgClose(e){return r.createElement("svg",i({viewBox:"0 0 14 14",fill:"none"},e),a)}},20:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r="core/site",i="primary",a="secondary"},205:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Root}));var r=n(1),i=n.n(r),a=n(4),o=n.n(a),c=n(206),s=n(207),l=n(56),u=n(208),d=n(209),f=n(210),p=n(211);function Root(t){var n=t.children,r=t.registry,i=t.viewContext,a=void 0===i?null:i,g=t.dataAPIContext,m=t.dataAPIModuleArgs;return e.createElement(o.a.RegistryProvider,{value:r},e.createElement(s.a,{value:l.a},e.createElement(c.a,{viewContext:a},e.createElement(d.a,null,n,a&&e.createElement(p.a,{viewContext:a}),g&&e.createElement(f.a,{context:g,args:m})),e.createElement(u.a,null))))}Root.propTypes={children:i.a.node.isRequired,registry:i.a.object,viewContext:i.a.string,dataAPIContext:i.a.string,dataAPIModuleArgs:i.a.object},Root.defaultProps={registry:o.a}}).call(this,n(2))},206:function(e,t,n){"use strict";(function(e,r){var i=n(15),a=n.n(i),o=n(16),c=n.n(o),s=n(49),l=n.n(s),u=n(21),d=n.n(u),f=n(22),p=n.n(f),g=n(13),m=n.n(g),h=n(298),v=n.n(h),b=n(1),k=n.n(b),y=n(2),_=n(0),E=n(295),O=n(360),j=n(361),S=n(46),w=n(24),C=n(43),N=n(5);function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var i=m()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}var D=function(t){d()(ErrorHandler,t);var n=x(ErrorHandler);function ErrorHandler(e){var t;return a()(this,ErrorHandler),(t=n.call(this,e)).state={error:null,info:null,copied:!1},t.onErrorClick=t.onErrorClick.bind(l()(t)),t}return c()(ErrorHandler,[{key:"componentDidCatch",value:function(t,n){var r=this.props.viewContext,i=void 0===r?"unknown":r;e.console.error("Caught an error:",t,n),this.setState({error:t,info:n}),Object(N.w)("react_error","handle_".concat(i,"_error"),"".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack).slice(0,500))}},{key:"onErrorClick",value:function(){var e=this.state,t=e.error,n=e.info;v()("`".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack,"`")),this.setState({copied:!0})}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.error,i=t.info,a=t.copied;if(!n)return e;var o=r.createElement(E.a,{className:"mdc-button__icon",icon:a?O.a:j.a});return r.createElement(S.a,{id:"googlesitekit-error",title:Object(_.__)("Site Kit encountered an error","google-site-kit"),description:r.createElement(y.Fragment,null,r.createElement(C.a,{trailingIcon:o,onClick:this.onErrorClick},Object(_.__)("Copy error to clipboard","google-site-kit")),r.createElement(w.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(_.__)("Report this problem","google-site-kit"))),isDismissable:!1,format:"small",type:"win-error"},r.createElement("pre",{className:"googlesitekit-overflow-auto"},n.message,i.componentStack))}}]),ErrorHandler}(y.Component);D.propTypes={children:k.a.node.isRequired},t.a=D}).call(this,n(18),n(2))},207:function(e,t,n){"use strict";var r=n(130),i=(r.a.Consumer,r.a.Provider);t.a=i},208:function(e,t,n){"use strict";(function(e,r){var i=n(7),a=n.n(i),o=n(14),c=n.n(o),s=n(0),l=n(2),u=n(4),d=n.n(u),f=n(12),p=n(54),g=n(124),m=n(156),h=n(159),v=d.a.useSelect,b=d.a.useDispatch,k=d.a.useRegistry;t.a=function PermissionsModal(){var t,n,i,o=k(),u=v((function(e){return e(f.a).getPermissionScopeError()})),d=v((function(t){var n;return t(f.a).getConnectURL({additionalScopes:null==u||null===(n=u.data)||void 0===n?void 0:n.scopes,redirectURL:e.location.href})})),y=b(f.a).clearPermissionScopeError,_=b(p.a).navigateTo,E=Object(l.useCallback)((function(){y()}),[y]),O=Object(l.useCallback)(c()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(g.c)(o);case 2:_(d);case 3:case"end":return e.stop()}}),e)}))),[o,d,_]);return Object(l.useEffect)((function(){(function(){var e=c()(a.a.mark((function e(){var t,n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null==u||null===(t=u.data)||void 0===t?void 0:t.skipModal)||!(null==u||null===(n=u.data)||void 0===n||null===(r=n.scopes)||void 0===r?void 0:r.length)){e.next=3;break}return e.next=3,O();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[O,u]),u?(null==u||null===(t=u.data)||void 0===t||null===(n=t.scopes)||void 0===n?void 0:n.length)?(null==u||null===(i=u.data)||void 0===i?void 0:i.skipModal)?null:r.createElement(h.a,null,r.createElement(m.a,{title:Object(s.__)("Additional Permissions Required","google-site-kit"),subtitle:u.message,confirmButton:Object(s.__)("Proceed","google-site-kit"),dialogActive:!0,handleConfirm:O,handleDialog:E})):(e.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",u),null):null}}).call(this,n(18),n(2))},209:function(e,t,n){"use strict";var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(11),s=n.n(c),l=n(2),u=n(4),d=n.n(u),f=n(124),p=d.a.useRegistry;t.a=function RestoreSnapshots(e){var t=e.children,n=p(),r=Object(l.useState)(!1),a=s()(r,2),c=a[0],u=a[1];return Object(l.useEffect)((function(){c||o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(f.b)(n);case 2:u(!0);case 3:case"end":return e.stop()}}),e)})))()}),[n,c]),c?t:null}},210:function(e,t,n){"use strict";n.d(t,"a",(function(){return CollectModuleData}));var r=n(2),i=n(17),a=(n(28),n(4)),o=n.n(a),c=n(12),s=o.a.useSelect;function CollectModuleData(e){var t=e.context,n=e.args,a=s((function(e){return e(c.a).getDateRange()}));return Object(r.useEffect)((function(){return function(){return Object(i.d)("googlesitekit.moduleDataReset")}}),[a]),Object(r.useEffect)((function(){Object(i.d)("googlesitekit.moduleLoaded",t,n)}),[t,n,a]),null}},211:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureToursDesktop}));var r=n(6),i=n.n(r),a=n(162),o=n(174);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FeatureToursDesktop(t){return Object(a.a)()<783?null:e.createElement(o.a,t)}FeatureToursDesktop.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o.a.propTypes)}).call(this,n(2))},212:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return TourTooltips}));var i=n(6),a=n.n(i),o=n(326),c=n(47),s=n(1),l=n.n(s),u=n(0),d=n(4),f=n.n(d),p=n(52),g=n(12),m=n(58),h=n(213);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var b=f.a.useSelect,k=f.a.useDispatch,y={options:{arrowColor:"#1A73E8",backgroundColor:"#1A73E8",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#ffffff"}},_={back:Object(u.__)("Back","google-site-kit"),close:Object(u.__)("Close","google-site-kit"),last:Object(u.__)("Got it","google-site-kit"),next:Object(u.__)("Next","google-site-kit")},E={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},O="feature_tooltip_view",j="feature_tooltip_advance",S="feature_tooltip_return",w="feature_tooltip_dismiss",C="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,i=t.tourID,s=t.gaEventCategory,l="".concat(i,"-step"),u="".concat(i,"-run"),d=k(p.a).setValue,f=k(g.a).dismissTour,N=b((function(e){return e(p.a).getValue(l)})),x=b((function(e){return e(p.a).getValue(u)&&!1===e(g.a).isTourDismissed(i)}));Object(o.a)((function(){d(u,!0)}));var D=n.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));return r.createElement(c.e,{callback:function(t){!function(e){var t=e.index,n=e.action,r=e.lifecycle,i=e.size,a=e.status,o=e.type,l=t+1;o===c.b.TOOLTIP&&r===c.c.TOOLTIP?Object(m.b)(s,O,l):n===c.a.CLOSE&&r===c.c.COMPLETE?Object(m.b)(s,w,l):n===c.a.NEXT&&a===c.d.FINISHED&&o===c.b.TOUR_END&&i===l&&Object(m.b)(s,C,l),r===c.c.COMPLETE&&a!==c.d.FINISHED&&(n===c.a.PREV&&Object(m.b)(s,S,l),n===c.a.NEXT&&Object(m.b)(s,j,l))}(t);var n=t.action,r=t.index,a=t.status,o=t.step,u=t.type,p=n===c.a.CLOSE,g=!p&&[c.b.STEP_AFTER,c.b.TARGET_NOT_FOUND].includes(u),h=[c.d.FINISHED,c.d.SKIPPED].includes(a),v=p&&u===c.b.STEP_AFTER,b=h||v;if(c.b.STEP_BEFORE===u){var k,y,_=o.target;"string"==typeof o.target&&(_=e.document.querySelector(o.target)),null===(k=_)||void 0===k||null===(y=k.scrollIntoView)||void 0===y||y.call(k,{block:"center"})}g?function(e,t){d(l,e+(t===c.a.PREV?-1:1))}(r,n):b&&f(i)},continuous:!0,disableOverlayClose:!0,disableScrolling:!0,floaterProps:E,locale:_,run:x,showProgress:!0,stepIndex:N,steps:D,styles:y,tooltipComponent:h.a})}TourTooltips.propTypes={steps:l.a.arrayOf(l.a.object).isRequired,tourID:l.a.string.isRequired,gaEventCategory:l.a.string.isRequired}}).call(this,n(18),n(2))},213:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TourTooltip}));var r=n(25),i=n.n(r),a=n(204),o=n.n(a),c=n(8),s=n.n(c),l=n(1),u=n.n(l),d=n(214),f=n(198),p=n(43);function TourTooltip(t){var n=t.backProps,r=t.closeProps,c=t.index,l=t.primaryProps,u=t.size,g=t.step,m=t.tooltipProps,h=u>1?Object(d.a)(u):[],v=function(e){return s()("googlesitekit-tooltip-indicator",{active:e===c})};return e.createElement("div",i()({className:"googlesitekit-tour-tooltip"},m),e.createElement(o.a,{className:"googlesitekit-tooltip-card"},e.createElement("div",{className:"googlesitekit-tooltip-body"},e.createElement("h2",{className:"googlesitekit-tooltip-title"},g.title),e.createElement("div",{className:"googlesitekit-tooltip-content"},g.content)),e.createElement(a.CardActions,{className:"googlesitekit-tooltip-actions"},e.createElement("ul",{className:"googlesitekit-tooltip-indicators"},h.map((function(t){return e.createElement("li",{key:"indicator-".concat(t),className:v(t)})}))),e.createElement("div",{className:"googlesitekit-tooltip-buttons"},0!==c&&e.createElement(p.a,i()({className:"googlesitekit-tooltip-button",text:!0},n),n.title),e.createElement(p.a,i()({className:"googlesitekit-tooltip-button",text:!0},l),l.title))),e.createElement(p.a,i()({className:"googlesitekit-tooltip-close",text:!0,icon:e.createElement(f.a,{width:"14",height:"14"})},r))))}TourTooltip.propTypes={backProps:u.a.object.isRequired,closeProps:u.a.object.isRequired,index:u.a.number.isRequired,isLastStep:u.a.bool.isRequired,primaryProps:u.a.object.isRequired,size:u.a.number.isRequired,step:u.a.shape({content:u.a.node.isRequired,title:u.a.node.isRequired}).isRequired,tooltipProps:u.a.object.isRequired}}).call(this,n(2))},214:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return new Array(null!=e?e:0).fill().map((function(e,t){return t}))}},24:function(e,t,n){"use strict";(function(e){var r=n(25),i=n.n(r),a=n(26),o=n.n(a),c=n(1),s=n.n(c),l=n(8),u=n.n(l),d=n(0);function Link(t){var n=t.href,r=t.children,a=t.className,c=t.arrow,s=t.external,l=t.hideExternalIndicator,f=t.inverse,p=t.back,g=t.small,m=t.inherit,h=t.caps,v=t.danger,b=t.disabled,k=t["aria-label"],y=o()(t,["href","children","className","arrow","external","hideExternalIndicator","inverse","back","small","inherit","caps","danger","disabled","aria-label"]),_=n&&!b,E=_?"a":"button";return e.createElement(E,i()({className:u()("googlesitekit-cta-link",a,{"googlesitekit-cta-link--arrow":c,"googlesitekit-cta-link--external":s&&!l,"googlesitekit-cta-link--inverse":f,"googlesitekit-cta-link--back":p,"googlesitekit-cta-link--small":g,"googlesitekit-cta-link--inherit":m,"googlesitekit-cta-link--caps":h,"googlesitekit-cta-link--danger":v,"googlesitekit-cta-link--disabled":b}),href:_?n:void 0,target:_&&s?"_blank":void 0,rel:s?"noopener noreferrer":void 0,disabled:b,"aria-label":function(){var e=k;if(!s)return e;"string"==typeof r&&(e=e||r);var t=Object(d._x)("(opens in a new tab)","screen reader text","google-site-kit");return e?"".concat(e," ").concat(t):t}()},y),r)}Link.propTypes={dangerouslySetInnerHTML:s.a.shape({__html:s.a.string}),onClick:s.a.func,href:s.a.string,children:s.a.oneOfType([s.a.string.isRequired,s.a.array.isRequired,s.a.element.isRequired]),className:s.a.string,arrow:s.a.bool,external:s.a.bool,hideExternalIndicator:s.a.bool,inverse:s.a.bool,back:s.a.bool,small:s.a.bool,inherit:s.a.bool,caps:s.a.bool,danger:s.a.bool,disabled:s.a.bool},Link.defaultProps={dangerouslySetInnerHTML:void 0,onClick:null,href:"",className:"",arrow:!1,external:!1,hideExternalIndicator:!1,inverse:!1,back:!1,small:!1,inherit:!1,caps:!1,danger:!1,disabled:!1},t.a=Link}).call(this,n(2))},243:function(e,t,n){"use strict";(function(e){var r=n(2),i=n(4),a=n.n(i),o=n(287),c=n(308),s=n(309),l=n(310),u=n(12),d=n(82),f=a.a.useSelect;t.a=function Header(t){var n=t.children,i=Object(d.a)("storeErrorNotifications"),a=f((function(e){return e(u.a).isAuthenticated()}));return e.createElement(r.Fragment,null,e.createElement("header",{className:"googlesitekit-header"},e.createElement("section",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" googlesitekit-header__logo mdc-layout-grid__cell mdc-layout-grid__cell--align-middle mdc-layout-grid__cell--span-1-phone mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement(o.a,null)),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-middle mdc-layout-grid__cell--align-right-phone mdc-layout-grid__cell--span-3-phone mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop "},n,a&&e.createElement(c.a,null))))),e.createElement(s.a,null),i&&e.createElement(l.a,null))}}).call(this,n(2))},244:function(e,t,n){"use strict";(function(e){var r=n(11),i=n.n(r),a=n(327),o=n(2),c=n(109),s=n(0),l=n(43),u=n(311),d=n(175),f=n(172),p=n(173);t.a=function HelpMenu(t){var n=t.children,r=Object(o.useState)(!1),g=i()(r,2),m=g[0],h=g[1],v=Object(o.useRef)();Object(a.a)(v,(function(){return h(!1)})),Object(p.a)([c.c,c.d],v,(function(){return h(!1)}));var b=Object(o.useCallback)((function(){h(!m)}),[m]),k=Object(o.useCallback)((function(){h(!1)}),[]);return e.createElement("div",{ref:v,className:"googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu googlesitekit-help-menu mdc-menu-surface--anchor"},e.createElement(l.a,{"aria-controls":"googlesitekit-help-menu","aria-expanded":m,"aria-label":Object(s.__)("Open Help menu","google-site-kit"),"aria-haspopup":"menu",className:"googlesitekit-header__dropdown googlesitekit-help-menu__button googlesitekit-margin-right-0 mdc-button--dropdown",icon:e.createElement(u.a,{width:"20",height:"20"}),onClick:b,text:!0}),e.createElement(f.a,{className:"googlesitekit-width-auto",menuOpen:m,id:"googlesitekit-help-menu",onSelected:k},n,e.createElement(d.a,{gaEventLabel:"fix_common_issues",href:"https://sitekit.withgoogle.com/documentation/fix-common-issues/"},Object(s.__)("Fix common issues","google-site-kit")),e.createElement(d.a,{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/"},Object(s.__)("Read help docs","google-site-kit")),e.createElement(d.a,{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/"},Object(s.__)("Get support","google-site-kit"))))}}).call(this,n(2))},246:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserInputSettings}));var r=n(1),i=n.n(r),a=n(294),o=n(0),c=n(4),s=n.n(c),l=n(46),u=n(5),d=n(12),f=n(20),p=n(286),g=s.a.useSelect;function UserInputSettings(t){var n=t.onCTAClick,r=t.onDismiss,i=t.isDismissable,c=Object(a.a)(UserInputSettings),s=g((function(e){return e(f.c).getAdminURL("googlesitekit-user-input")}));return"completed"===g((function(e){return e(d.a).getUserInputState()}))?null:e.createElement(l.a,{id:"user-input-settings-notification-".concat(c),className:"googlesitekit-user-input__notification",title:Object(o.__)("Customize Site Kit to match your goals","google-site-kit"),description:Object(o.__)("Answer 5 questions and Site Kit will customize your dashboard with specific metrics and opportunities that match your site’s goals","google-site-kit"),format:"large",dismissExpires:3*Object(u.l)("hour"),ctaLink:s,ctaLabel:Object(o.__)("Let’s go","google-site-kit"),onCTAClick:n,dismiss:Object(o.__)("Remind me later","google-site-kit"),WinImageSVG:p.a,isDismissable:i,onDismiss:r})}UserInputSettings.propTypes={onCTAClick:i.a.func,onDismiss:i.a.func,isDismissable:i.a.bool}}).call(this,n(2))},277:function(e,t,n){"use strict";(function(e){var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(15),s=n.n(c),l=n(16),u=n.n(l),d=n(21),f=n.n(d),p=n(22),g=n.n(p),m=n(13),h=n.n(m),v=n(2),b=n(0),k=n(182),y=n(46);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g()(this,n)}}var E=function(t){f()(DashboardCoreSiteAlerts,t);var n,r=_(DashboardCoreSiteAlerts);function DashboardCoreSiteAlerts(e){var t;return s()(this,DashboardCoreSiteAlerts),(t=r.call(this,e)).state={notifications:!1},t}return u()(DashboardCoreSiteAlerts,[{key:"componentDidMount",value:(n=o()(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(k.c)();case 3:t=e.sent,this.setState({notifications:t}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.warn("Error caught while fetching notifications",e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return n.apply(this,arguments)})},{key:"render",value:function(){var t=this.state.notifications;return Array.isArray(t)?t.map((function(t){return e.createElement(y.a,{key:t.id,id:t.id,title:t.title||"",description:t.content||"",learnMoreURL:t.learnMoreURL||"",learnMoreLabel:t.learnMoreLabel||"",ctaLink:t.ctaURL||"",ctaLabel:t.ctaLabel||"",ctaTarget:t.ctaTarget||"",dismiss:t.dismissLabel||Object(b.__)("OK, Got it!","google-site-kit"),isDismissable:t.dismissible,onCTAClick:o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(k.a)(t.id);case 2:case"end":return e.stop()}}),e)}))),onDismiss:o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(k.b)(t.id);case 2:case"end":return e.stop()}}),e)})))})})):null}}]),DashboardCoreSiteAlerts}(v.Component);t.a=E}).call(this,n(2))},278:function(e,t,n){"use strict";(function(e,r){var i=n(15),a=n.n(i),o=n(16),c=n.n(o),s=n(21),l=n.n(s),u=n(22),d=n.n(u),f=n(13),p=n.n(f),g=n(2),m=n(0),h=n(17),v=n(5),b=n(46),k=n(279),y=n(280),_=n(281);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}var O=function(t){l()(DashboardSetupAlerts,t);var n=E(DashboardSetupAlerts);function DashboardSetupAlerts(){return a()(this,DashboardSetupAlerts),n.apply(this,arguments)}return c()(DashboardSetupAlerts,[{key:"render",value:function(){var t=Object(v.j)("notification");if(!t||""===t)return null;var n={id:"connected-successfully",setupTitle:Object(m.__)("Site Kit","google-site-kit"),description:Object(m.__)("Now you’ll be able to see how your site is doing in search. To get even more detailed stats, activate more modules. Here are our recommendations for what to include in your Site Kit:","google-site-kit"),learnMore:{label:"",url:"",description:""}},i=e._googlesitekitLegacyData.permissions.canManageOptions;switch(t){case"authentication_success":if(!i)return null;var a=Object(v.i)(),o=Object(v.j)("slug");return o&&a[o]&&!a[o].active?null:(o&&a[o]&&(n.id="".concat(n.id,"-").concat(o),n.setupTitle=a[o].name,n.description=Object(m.__)("Here are some other services you can connect to see even more stats:","google-site-kit"),n=Object(h.c)("googlesitekit.SetupWinNotification-".concat(o),n)),r.createElement(g.Fragment,null,r.createElement(b.a,{id:n.id
6
  /* translators: %s: the name of a module that setup was completed for */,title:Object(m.sprintf)(Object(m.__)("Congrats on completing the setup for %s!","google-site-kit"),n.setupTitle),description:n.description,handleDismiss:function(){},WinImageSVG:y.a,dismiss:Object(m.__)("OK, Got it!","google-site-kit"),format:"large",type:"win-success",learnMoreLabel:n.learnMore.label,learnMoreDescription:n.learnMore.description,learnMoreURL:n.learnMore.url,anchorLink:"pagespeed-insights"===o?"#googlesitekit-pagespeed-header":"",anchorLinkLabel:"pagespeed-insights"===o?Object(m.__)("Jump to the bottom of the dashboard to see how fast your home page is","google-site-kit"):""},r.createElement(k.a,{moduleSlugs:["search-console","adsense","analytics","pagespeed-insights"]}))));case"authentication_failure":return r.createElement(g.Fragment,null,r.createElement(b.a,{id:"connection error",title:Object(m.__)("There was a problem connecting to Google!","google-site-kit"),description:"",handleDismiss:function(){},format:"small",type:"win-error"}));case"user_input_success":return r.createElement(_.a,null)}}}]),DashboardSetupAlerts}(g.Component);t.a=O}).call(this,n(18),n(2))},279:function(e,t,n){"use strict";(function(e){var r=n(6),i=n.n(r),a=n(7),o=n.n(a),c=n(14),s=n.n(c),l=n(8),u=n.n(l),d=n(2),f=n(0),p=n(5),g=n(4),m=n.n(g),h=n(24),v=n(137),b=n(155),k=n(120),y=n(141),_=n(31),E=n(54);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S=m.a.useSelect,w=m.a.useDispatch;t.a=function ModulesList(t){var n=t.moduleSlugs,r=w(_.a).activateModule,a=w(E.a).navigateTo,c=S((function(e){return e(_.a).getModules()})),l=Object(d.useCallback)(function(){var e=s()(o.a.mark((function e(t){var n,i,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(t);case 2:if(n=e.sent,i=n.response,!(c=n.error)){e.next=8;break}return Object(p.u)(b.a,{id:"setup-module-error",title:Object(f.__)("Internal Server Error","google-site-kit"),description:c.message,format:"small",type:"win-error"}),e.abrupt("return",null);case 8:return e.next=10,Object(p.w)("".concat(t,"_setup"),"module_activate",t);case 10:a(i.moduleReauthURL);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[r,a]);if(!c)return null;var g=Array.isArray(n)&&n.length?n.filter((function(e){return c.hasOwnProperty(e)})).reduce((function(e,t){return j(j({},e),{},i()({},t,c[t]))}),{}):c,m=Object.values(g).filter((function(e){return!e.internal&&0===e.dependencies.length})).sort((function(e,t){return e.order-t.order}));return e.createElement("div",{className:"googlesitekit-modules-list"},m.map((function(t){var n=t.slug,r=t.name,i=t.connected,a=t.active,o=i&&a;return e.createElement("div",{key:n,className:u()("googlesitekit-modules-list__module","googlesitekit-modules-list__module--".concat(n))},e.createElement("div",{className:"googlesitekit-settings-connect-module__wrapper"},e.createElement("div",{className:"googlesitekit-settings-connect-module__logo"},e.createElement(v.a,{slug:n})),e.createElement("h3",{className:"googlesitekit-settings-connect-module__title"},r)),e.createElement(k.a,{slug:n,context:"modules-list"}),o&&e.createElement("span",{className:"googlesitekit-settings-module__status"},e.createElement("span",{className:"googlesitekit-settings-module__status-icon googlesitekit-settings-module__status-icon--connected"},e.createElement(y.a,null,Object(f.__)("Connected","google-site-kit"))),Object(f.__)("Connected","google-site-kit")),!o&&e.createElement(h.a,{onClick:function(){return l(n)},arrow:!0,small:!0,inherit:!0},Object(f.__)("Connect Service","google-site-kit")))})))}}).call(this,n(2))},28:function(e,t,n){"use strict";var r=n(11),i=n.n(r),a=n(23),o=n(113),c=n(99),s=n(17),l=n(32),u=n(84),d=n(73),f=n(161),p=n(128),g=n(38),m=n(88);n.d(t,"a",(function(){return m.a})),n.d(t,"b",(function(){return m.b}));var h=n(134),v=n(171),b={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],l=25;Object(a.each)(e,(function(e){e.key=Object(g.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(g.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),l),l+=25):r.push(e)})),r=Object(a.sortBy)(r,"priority");var f=[],p=[],m={},h=!!r.find((function(e){return e.priority<10}));Object(a.each)(r,(function(e,t){!n&&10<=e.priority&&h?p.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],f.push(e))}));var v=10,b=f.slice(0,v),k=f.slice(v);if(k=k.concat(p),0!==b.length||0!==k.length){0<k.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(k,!0)}),50):this.maxRequests=10;var y=null!==Object(u.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:y||void 0}),data:{request:b},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=i()(e,2),a=n[0],o=n[1];if(m[a]){if(Object(d.d)(o)){var c=m[a][0],l=r[c],u=l.datapoint,f=l.type,p=l.identifier;t.handleWPError({method:"GET",datapoint:u,type:f,identifier:p,error:o})}else Object(g.f)(a,o);m[a].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===k.length&&Object(s.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+a)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(s.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,i=e.identifier,a=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(i),"datapoint:".concat(n),'error:"'.concat(a.message,'"')),Object(v.a)({method:t,datapoint:n,type:r,identifier:i,error:a});var o=a.data;if(o&&(o.reason||o.reconnectURL)){var c=0;["authError","insufficientPermissions"].includes(o.reason)&&(Object(s.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(l.b)(p.a),1),c++),o.reconnectURL&&(Object(s.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(l.b)(f.a),1),c++),c&&Object(s.b)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease",(function(e){return Object(s.g)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease"),e+c}))}},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:h.a,collectModuleData:function(e,t){var n=Object(s.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=Object(g.d)(e,t,n,i);if(!a){var l=Object(g.c)(s,3600);if(void 0!==l)return new Promise((function(e){e(l)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),i)}).then((function(e){return a||Object(g.f)(s,e),Promise.resolve(e)})).catch((function(i){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:i}),Promise.reject(i)}))},set:function(e,t,n,r){var i=this,a={};return a.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:a,method:"POST"}).then((function(r){return b.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return i.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(m.a,"modules","activation",{slug:e,active:t})}};Object(s.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(s.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",b.collectModuleData.bind(b)),t.c=b},280:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{stroke:"#E8EAED",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:6,d:"M200 10v31.42M105 35.46l15.71 27.2M35.46 105l27.2 15.71M10 200h31.42M35.46 295l27.2-15.71M364.54 295l-27.2-15.71M390 200h-31.42M364.54 105l-27.2 15.71M295 35.46l-15.71 27.2"}),o=r.createElement("path",{d:"M251.2 51.21c-.67-1 10.33-9.56 11.16-10.16 5.81-4.22 12.64-8 19.94-8.46 7.91-.53 15.45 2.58 23 4.58 10.31 2.77 21.44 3.8 32.09 1.69 9.59-1.9 20.83-5.9 27.87-12.93-.24.24.3 2.83.33 3.18a65.31 65.31 0 010 8.51 59.1 59.1 0 01-7 25.06 43.41 43.41 0 01-18.94 18.13C329.14 86 317.78 88.93 307 93.41c-6.7 2.79-18.11 7.23-18.11 16.07z",fill:"#F439A0"}),c=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M248.83 47.55l93.63 144.69"}),s=r.createElement("path",{d:"M279.89 172.88c18.52 6.68 53.35 9.87 64.53-10.87 14.77-27.39-23.47-38.52-43.87-34.53M88.94 145C13 233.15 70 296.93 119 267.62",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:9}),l=r.createElement("path",{d:"M234.54 260.65c59.23 111 7.37 98-23.53 93.23l2 20.19M186.58 274.6c31.93 144.76-28.4 65.93-35.58 53.33l-12.25 14.36",stroke:"#188038",strokeLinejoin:"round",strokeWidth:9}),u=r.createElement("path",{d:"M234.54 260.65q3.92 7.32 7.19 14M186.58 274.6q2.19 9.88 3.81 18.42",stroke:"#137333",strokeLinejoin:"round",strokeWidth:9}),d=r.createElement("path",{fill:"#1E8E3E",d:"M170.71 172.85l-98 39.35 39.35 98 98-39.35 98-39.35-39.35-98-98 39.35z"}),f=r.createElement("path",{d:"M158.45 268.63c-16.25 2.37-32.52-5.2-43.75-18.63l83.92-22.8",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6}),p=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M316.62 152.31l25.84 39.93"});t.a=function SvgSuccessGreen(e){return r.createElement("svg",i({viewBox:"0 0 400 400",fill:"none"},e),a,o,c,s,l,u,d,f,p)}},281:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserInputSuccessNotification}));var r=n(0),i=n(2),a=n(46),o=n(282),c=n(5);function UserInputSuccessNotification(){Object(i.useEffect)((function(){Object(c.w)("user_input","success_notification_view")}),[]);return e.createElement(a.a,{id:"user-input-success",title:Object(r.__)("Congrats! You set your site goals","google-site-kit"),description:Object(r.__)("Now Site Kit will begin suggesting metrics to add to your dashboard that are relevant specifically to you, based on the goals you shared","google-site-kit"),SmallImageSVG:o.a,dismiss:Object(r.__)("OK, got it!","google-site-kit"),format:"small",onDismiss:function(){Object(c.w)("user_input","success_notification_dismiss")}})}}).call(this,n(2))},282:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("path",{d:"M154.32 135.43c-10.56 8.65-20.59 16.68-30.15 23.63-5.07 3.7-14.21-1.31-15.28-8.16-1.86-12.85-3-26.17-3.63-39.8-12.15-7.93-24.13-15.53-35.44-22.35-6.11-3.63-4.22-12.48 3-15.39 13.28-5.23 26.64-10.44 40-15.38 4.23-13.83 8.45-27.77 12.11-41.4 2-7.39 10.41-8.93 14.89-2.73 8.25 11.45 17.13 23 26 34.42 14.22-.1 28.56 0 42.84.22 7.73.18 12.64 7.79 8.2 13.35-8.15 10.38-16.67 21.73-25.21 33.45 4.25 13 7.89 25.84 10.7 38.51 1.43 6.79-5.34 14.71-11.39 13-11.49-3.06-23.71-7.03-36.64-11.37z",fill:"#FBBC04"}),c=r.createElement("path",{d:"M205.44 73.7c10.67 26.59 20.64 47.74 16.58 76.8-4.67 33.43-33.31 70.54-68.1 75.46-17.34 2.45-35.57-2.42-47.85-15-12-12.26-18.78-29.18-21.81-45.85-3.25-17.94-2.2-36.87 3.91-54.11a77.26 77.26 0 014.71-10.76",stroke:"#4285F4",strokeLinecap:"square",strokeLinejoin:"round",strokeWidth:6}),s=r.createElement("g",{clipPath:"url(#milestone-blue_svg__clip0)",strokeLinejoin:"round",strokeWidth:6},r.createElement("path",{d:"M151.73 225.81L144 246.63a35.18 35.18 0 00.07 24.7l6.51 12.51h-8.34",stroke:"#1967D2"}),r.createElement("path",{stroke:"#185ABC",d:"M151.73 225.81l-5.6 15.04"}),r.createElement("path",{stroke:"#1967D2",d:"M164.04 231.67v52.17h7.76"}),r.createElement("path",{stroke:"#185ABC",d:"M164.04 221.67v20.1"})),l=r.createElement("path",{d:"M161.08 235.06a36.17 36.17 0 0026.08-44L117.07 209a36.17 36.17 0 0044.01 26.06z",fill:"#1A73E8"}),u=r.createElement("path",{d:"M142.64 217.51c5.53 7.83 16.11 10.61 24.45 1.64M145.07 215.59c-2.58.66-2.41 3.54-5.51 4.88",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:3}),d=r.createElement("path",{stroke:"#FEEFC3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:6,d:"M101.3 47.04L75.8 22.68M60.45 68.72l-34.37-6.91M208.28 22.68l-18.86 17.87M265.17 73.7l-32.36 3.02M66.15 109.02l-49.01 15.36"}),f=r.createElement("defs",null,r.createElement("clipPath",{id:"milestone-blue_svg__clip0"},r.createElement("circle",{cx:150,cy:150,r:100})));t.a=function SvgMilestoneBlue(e){return r.createElement("svg",i({viewBox:"0 0 300 300",fill:"none"},e),a,o,c,s,l,u,d,f)}},283:function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),a=n(16),o=n.n(a),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(13),f=n.n(d),p=n(23),g=n(2),m=n(0),h=n(5),v=n(46),b=n(164),k=n(284);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u()(this,n)}}var _=function(t){s()(DashboardModulesAlerts,t);var n=y(DashboardModulesAlerts);function DashboardModulesAlerts(e){var t;return i()(this,DashboardModulesAlerts),(t=n.call(this,e)).state={data:!1},t}return o()(DashboardModulesAlerts,[{key:"componentDidMount",value:function(){var e=this,t=Object(b.e)();t&&Object(b.b)(t).then((function(t){e.setState({data:t.results})}))}},{key:"render",value:function(){var t=this.state.data;if(0===Object.keys(t).length)return null;var n=Object(h.i)(),r=[];return Object.keys(t).forEach((function(i){Object(p.each)(t[i],(function(t){r.push(e.createElement(v.a,{key:t.id,id:t.id,title:t.title||"",description:t.description||"",blockData:t.blockData||[],WinImageSVG:function WinImageSVG(){return e.createElement(k.a,{height:"136"})},format:t.format||"small",learnMoreURL:t.learnMoreURL||"",learnMoreDescription:t.learnMoreDescription||"",learnMoreLabel:t.learnMoreLabel||"",ctaLink:t.ctaURL||"",ctaLabel:t.ctaLabel||"",ctaTarget:t.ctaTarget||"",type:t.severity||"",dismiss:t.dismiss||Object(m.__)("OK, Got it!","google-site-kit"),isDismissable:t.isDismissable||!0,logo:t.logo||!0,module:i,moduleName:n[i].name,pageIndex:t.pageIndex||"",dismissExpires:t.dismissExpires||0,showOnce:t.showOnce||!1}))}))})),e.createElement(g.Fragment,null,r)}}]),DashboardModulesAlerts}(g.Component);t.a=_}).call(this,n(2))},284:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("g",{clipPath:"url(#notification-alert_svg__clip0)",strokeMiterlimit:10,strokeWidth:15},r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15s44.18-11.1 65.14-20.18c9.91-4.3 20.07-8.62 30.85-9.31s22.46 2.9 28.7 11.71a24 24 0 013.78 17.65",stroke:"#4285F4"}),r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15",stroke:"#1A73E8"})),c=r.createElement("path",{stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33l-67.86 256.23"}),s=r.createElement("path",{stroke:"#A50E0E",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33L193.97 150"}),l=r.createElement("path",{d:"M221.3 13l-94.69 95.2a10 10 0 004.53 16.72L261 159.3a10 10 0 0012.18-12.3L238 17.39A10 10 0 00221.3 13z",fill:"#D93025"}),u=r.createElement("path",{d:"M137.37 111.56l87.36-87.87a3 3 0 015 1.33l32.42 119.6a3 3 0 01-3.66 3.68l-119.76-31.72a3 3 0 01-1.36-5.02z",stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:2}),d=r.createElement("path",{d:"M196.78 118.35a7.38 7.38 0 01-.78-5.84 7.25 7.25 0 013.56-4.64 7.46 7.46 0 015.83-.73 7.51 7.51 0 015.4 9.29 7.51 7.51 0 01-3.52 4.7 7.27 7.27 0 01-5.8.8 7.44 7.44 0 01-4.69-3.58zm12.05-46.1l5.56-21 10.82 2.87-5.55 21-8 25.41-8.6-2.28z",fill:"#FFF"}),f=r.createElement("path",{d:"M198.47 181.73a23.18 23.18 0 01-8.2 14.28c-9.2 7.58-24.24 6.67-32.46-2",stroke:"#4285F4",strokeMiterlimit:10,strokeWidth:15}),p=r.createElement("defs",null,r.createElement("clipPath",{id:"notification-alert_svg__clip0"},r.createElement("circle",{cx:150,cy:150,r:100})));t.a=function SvgNotificationAlert(e){return r.createElement("svg",i({viewBox:"0 0 300 300",fill:"none"},e),a,o,c,s,l,u,d,f,p)}},285:function(e,t,n){"use strict";(function(e){var r=n(2),i=n(5),a=n(246);t.a=function UserInputPromptNotification(){Object(r.useEffect)((function(){Object(i.w)("user_input","prompt_notification_view")}),[]);return e.createElement(a.a,{isDismissable:!0,onCTAClick:function(){Object(i.w)("user_input","prompt_notification_start")},onDismiss:function(){Object(i.w)("user_input","prompt_notification_dismiss")}})}}).call(this,n(2))},286:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M294.5 39.35h244.69v251.12a7.5 7.5 0 01-7.5 7.5H302a7.5 7.5 0 01-7.5-7.5V39.35z",fill:"#F1F3F4"}),o=r.createElement("path",{fill:"#FFF",stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:1.5,d:"M314.5 68.28h45.25v45.25H314.5zM314.5 146.04h45.25v45.25H314.5z"}),c=r.createElement("path",{d:"M313.38 145.1c14.28 17.62 17.8 21.42 32.08 39",stroke:"#9AA0A6",strokeLinejoin:"round",strokeWidth:5}),s=r.createElement("path",{fill:"#FFF",stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:1.5,d:"M314.5 223.79h45.25v45.25H314.5z"}),l=r.createElement("ellipse",{cx:149.01,cy:322.24,rx:72.28,ry:7.51,fill:"#F1F3F4"}),u=r.createElement("path",{d:"M302 10h229.69a7.5 7.5 0 017.5 7.5v21.85H294.5V17.5A7.5 7.5 0 01302 10z",fill:"#80868B"}),d=r.createElement("circle",{cx:314.91,cy:24.68,r:5.32,fill:"#FFF"}),f=r.createElement("circle",{cx:336.18,cy:24.68,r:5.32,fill:"#FFF"}),p=r.createElement("path",{d:"M232.78 231.28c42.24.91 55.06-20.59 39.78-70.34",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:8.03}),g=r.createElement("path",{d:"M158.93 241.76c-2.23 25.53-1.22 59.63 6.93 80.6H184M126.69 241.76c-2.29 25-.62 58.69 6.93 80.6H116.8",stroke:"#188038",strokeLinejoin:"round",strokeWidth:8.03}),m=r.createElement("path",{d:"M158.93 241.76a244.31 244.31 0 00-1 26.13M126.69 241.76c-.57 6.24-.9 17.52-1 23.59",stroke:"#137333",strokeLinejoin:"round",strokeWidth:8.03}),h=r.createElement("path",{d:"M36.83 277.33c-9.72-9.09-13.91-26.06-8.22-38.36 4.92-10.64 20.49-22.29 31.69-23.47",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:8.03}),v=r.createElement("path",{fill:"#1E8E3E",d:"M151.1 160.94l93.85 6.87-6.87 93.85-93.85-6.87-93.85-6.87 6.87-93.85 93.85 6.87z"}),b=r.createElement("path",{d:"M181.25 219.25c-18.11 15.64-48.49 18.13-68.47-5",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5.74}),k=r.createElement("path",{stroke:"#DADCE0",strokeLinejoin:"round",strokeWidth:20,d:"M380.07 90.91h139.12M380.07 168.66h139.12M380.07 246.42h139.12"}),y=r.createElement("path",{fill:"#FBBC04",d:"M319.603 184.523l-155.3-70.055 8.98-19.908 155.3 70.055z"}),_=r.createElement("path",{fill:"#DADCE0",d:"M328.59 164.62l25.17 22.94-34.15-3.03 8.98-19.91z"}),E=r.createElement("path",{fill:"#5F6368",d:"M344.35 186.72l9.41.84-6.92-6.29-2.49 5.45z"}),O=r.createElement("path",{d:"M164.22 114.43h.09L175 119.3l9-19.91-10.7-4.84h-.09a10.92 10.92 0 00-9 19.91z",fill:"#EE675C"}),j=r.createElement("path",{fill:"#DADCE0",d:"M176.772 120.092l-4.557-2.056 8.984-19.917 4.558 2.056z"}),S=r.createElement("path",{stroke:"#F29900",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:4,d:"M318.21 172.07l-130.15-58.71"}),w=r.createElement("path",{d:"M307.33 65.64a267 267 0 0064.05 58M312.39 117.93l40.77-54.45",stroke:"#9AA0A6",strokeLinejoin:"round",strokeWidth:5});t.a=function SvgUserInputPrompt(e){return r.createElement("svg",i({viewBox:"0 0 570 336",fill:"none"},e),a,o,c,s,l,u,d,f,p,g,m,h,v,b,k,y,_,E,O,j,S,w)}},287:function(e,t,n){"use strict";(function(e){var r=n(0),i=n(144),a=n(288),o=n(141);t.a=function Logo(){return e.createElement("div",{className:"googlesitekit-logo","aria-hidden":"true"},e.createElement(i.a,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),e.createElement(a.a,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),e.createElement(o.a,null,Object(r.__)("Site Kit by Google Logo","google-site-kit")))}}).call(this,n(2))},288:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M62.09 1.664h3.038v.1L58.34 9.593l7.241 10.224v.1H62.7L56.755 11.4 53.95 14.64v5.278h-2.351V1.664h2.35v9.415h.1l8.04-9.415zM69.984 3.117c0 .454-.166.853-.487 1.175-.322.322-.71.488-1.176.488-.455 0-.854-.166-1.175-.488a1.599 1.599 0 01-.488-1.175c0-.466.166-.854.488-1.176.321-.322.71-.488 1.175-.488.455 0 .854.166 1.176.488.332.333.487.72.487 1.176zm-.476 4.313v12.498h-2.351V7.43h2.35zM77.016 20.128c-1.02 0-1.864-.31-2.54-.943-.676-.632-1.02-1.508-1.031-2.628V9.57h-2.196V7.43h2.196V3.603h2.35V7.43h3.061v2.14h-3.06v6.222c0 .831.166 1.397.488 1.696.321.3.687.444 1.097.444.189 0 .366-.022.555-.067.188-.044.344-.1.499-.166l.743 2.096c-.632.222-1.342.333-2.162.333zM2.673 18.952C1.375 18.009.488 16.678 0 14.97l2.883-1.176c.289 1.076.799 1.94 1.542 2.628.732.677 1.619 1.02 2.65 1.02.965 0 1.774-.244 2.45-.742.677-.5 1.01-1.187 1.01-2.052 0-.798-.3-1.453-.887-1.974-.588-.521-1.62-1.042-3.094-1.564l-1.22-.432C4.025 10.224 2.928 9.57 2.04 8.716 1.153 7.862.71 6.742.71 5.346c0-.966.266-1.853.787-2.673C2.018 1.852 2.75 1.209 3.693.72 4.624.244 5.678 0 6.864 0c1.708 0 3.072.41 4.081 1.242 1.02.832 1.697 1.752 2.04 2.795L10.236 5.2c-.2-.621-.576-1.164-1.142-1.63-.565-.477-1.286-.71-2.173-.71s-1.641.222-2.251.676c-.61.455-.91 1.032-.91 1.742 0 .676.278 1.22.82 1.663.544.432 1.398.854 2.563 1.253l1.22.41c1.674.577 2.96 1.342 3.88 2.274.921.931 1.376 2.184 1.376 3.748 0 1.275-.322 2.34-.976 3.193a6.01 6.01 0 01-2.495 1.919 8.014 8.014 0 01-3.116.621c-1.62 0-3.072-.466-4.358-1.408zM15.969 3.449a1.95 1.95 0 01-.588-1.43c0-.566.2-1.043.588-1.431A1.95 1.95 0 0117.399 0c.566 0 1.043.2 1.43.588.389.388.588.865.588 1.43 0 .566-.2 1.043-.587 1.43a1.95 1.95 0 01-1.43.589c-.566-.012-1.043-.2-1.431-.588zm-.067 2.595h2.994v13.883h-2.994V6.044zM25.405 19.85c-.543-.2-.986-.466-1.33-.788-.776-.776-1.176-1.84-1.176-3.182V8.683h-2.428v-2.64h2.428V2.13h2.994v3.926h3.372v2.639h-3.372v6.531c0 .743.145 1.276.433 1.575.277.366.743.543 1.42.543.31 0 .576-.044.82-.122.233-.077.488-.21.765-.399v2.917c-.599.277-1.32.41-2.173.41a5.01 5.01 0 01-1.753-.3zM33.623 19.407a6.63 6.63 0 01-2.529-2.628c-.61-1.12-.909-2.373-.909-3.77 0-1.332.3-2.551.887-3.693.588-1.132 1.409-2.04 2.462-2.706 1.053-.666 2.251-1.01 3.593-1.01 1.397 0 2.606.311 3.637.921a6.123 6.123 0 012.34 2.528c.532 1.076.799 2.274.799 3.627 0 .255-.023.576-.078.953H33.179c.111 1.287.566 2.285 1.375 2.983a4.162 4.162 0 002.817 1.043c.854 0 1.597-.189 2.218-.588a4.266 4.266 0 001.508-1.597l2.528 1.198c-.654 1.142-1.508 2.04-2.561 2.694-1.054.655-2.318.976-3.782.976-1.364.022-2.584-.288-3.66-.931zm7.23-8.051a3.332 3.332 0 00-.466-1.453c-.277-.477-.687-.887-1.242-1.208-.554-.322-1.23-.488-2.03-.488-.964 0-1.773.288-2.439.853-.665.566-1.12 1.342-1.375 2.296h7.552z",fill:"#5F6368"});t.a=function SvgLogoSitekit(e){return r.createElement("svg",i({viewBox:"0 0 80 21",fill:"none"},e),a)}},308:function(e,t,n){"use strict";(function(e,r){var i=n(11),a=n.n(i),o=n(327),c=n(2),s=n(0),l=n(109),u=n(4),d=n.n(u),f=n(5),p=n(156),g=n(43),m=n(172),h=n(159),v=n(20),b=n(12),k=n(54),y=n(173),_=d.a.useSelect,E=d.a.useDispatch;t.a=function UserMenu(){var t=_((function(e){return e(v.c).getProxyPermissionsURL()})),n=_((function(e){return e(b.a).getEmail()})),i=_((function(e){return e(b.a).getPicture()})),u=_((function(e){return e(v.c).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})})),d=Object(c.useState)(!1),O=a()(d,2),j=O[0],S=O[1],w=Object(c.useState)(!1),C=a()(w,2),N=C[0],x=C[1],D=Object(c.useRef)(),L=E(k.a).navigateTo;Object(o.a)(D,(function(){return x(!1)})),Object(y.a)([l.c,l.d],D,(function(){return x(!1)})),Object(c.useEffect)((function(){var t=function(e){l.c===e.keyCode&&(S(!1),x(!1))};return e.addEventListener("keyup",t),function(){e.removeEventListener("keyup",t)}}),[]);var R=Object(c.useCallback)((function(){x(!N)}),[N]),M=Object(c.useCallback)((function(){S(!j),x(!1)}),[j]),P=Object(c.useCallback)((function(e){switch(e){case 0:M();break;case 1:t&&L(t);break;default:R()}}),[t,R,M,L]),A=Object(c.useCallback)((function(){S(!1),Object(f.b)(),L(u)}),[u,L]);return n?r.createElement(c.Fragment,null,r.createElement("div",{ref:D,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor"},r.createElement(g.a,{className:"googlesitekit-header__dropdown mdc-button--dropdown",text:!0,onClick:R,icon:!!i&&r.createElement("i",{className:"mdc-button__icon","aria-hidden":"true"},r.createElement("img",{className:"mdc-button__icon--image",src:i,alt:Object(s.__)("User Avatar","google-site-kit")})),"aria-haspopup":"menu","aria-expanded":N,"aria-controls":"user-menu"},n),r.createElement(m.a,{className:"googlesitekit-width-auto",menuOpen:N,menuItems:[Object(s.__)("Disconnect","google-site-kit")].concat(t?[Object(s.__)("Manage sites…","google-site-kit")]:[]),onSelected:P,id:"user-menu"})),r.createElement(h.a,null,r.createElement(p.a,{dialogActive:j,handleConfirm:A,handleDialog:M,title:Object(s.__)("Disconnect","google-site-kit"),subtitle:Object(s.__)("Disconnecting Site Kit by Google will remove your access to all services. After disconnecting, you will need to re-authorize to restore service.","google-site-kit"),confirmButton:Object(s.__)("Disconnect","google-site-kit"),danger:!0}))):null}}).call(this,n(18),n(2))},309:function(e,t,n){"use strict";var r=n(15),i=n.n(r),a=n(16),o=n.n(a),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(13),f=n.n(d),p=n(150),g=n(2);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u()(this,n)}}var h=function(e){s()(ErrorNotification,e);var t=m(ErrorNotification);function ErrorNotification(){return i()(this,ErrorNotification),t.apply(this,arguments)}return o()(ErrorNotification,[{key:"render",value:function(){return null}}]),ErrorNotification}(g.Component);t.a=Object(p.a)("googlesitekit.ErrorNotification")(h)},31:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="core/modules",i="insufficient_module_dependencies"},310:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ErrorNotifications}));var r=n(2),i=n(161),a=n(128);function ErrorNotifications(){return e.createElement(r.Fragment,null,e.createElement(i.a,null),e.createElement(a.a,null))}}).call(this,n(2))},311:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M9 16h2v-2H9v2zm1-16C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14C7.79 4 6 5.79 6 8h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z",fill:"currentColor"});t.a=function SvgHelp(e){return r.createElement("svg",i({viewBox:"0 0 20 20",fill:"none"},e),a)}},32:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(25),i=n.n(r),a=n(2),o=function(e){return function(t){return function FilteredComponent(n){return Object(a.createElement)(a.Fragment,{},"",Object(a.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(a){return e.createElement(t,i()({},a,n,{OriginalComponent:r}))}}}}).call(this,n(2))},334:function(e,t,n){"use strict";(function(e,t){var r=n(17),i=n(56),a=n(32),o=n(5),c=n(277),s=n(278),l=n(283),u=n(285),d=n(128),f=e._googlesitekitLegacyData.setup,p=Object(o.j)("notification"),g=Object(a.a)(t.createElement(c.a,null)),m=Object(a.a)(t.createElement(s.a,null)),h=Object(a.a)(t.createElement(l.a,null)),v=Object(a.a)(t.createElement(u.a,null)),b=Object(a.a)(t.createElement(d.a,null));Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",g,10),f.needReauthenticate&&Object(r.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",b,1),Object(i.b)("userInput")&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.UserInputSettings",v,1),"authentication_success"===p||"authentication_failure"===p||"user_input_success"===p?Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",m,1):f.isAuthenticated&&f.isVerified&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.ModulesNotification",h,1)}).call(this,n(18),n(2))},338:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return m}));var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(51),s=n.n(c),l=n(20),u=n(169),d=function(){var t=o()(i.a.mark((function t(){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.location.hostname,!["localhost","127.0.0.1"].includes(n)&&!n.match(/\.(example|invalid|localhost|test)$/)){t.next=3;break}throw u.f;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=function(e){return o()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(l.c).checkForSetupTag();case 2:if(!t.sent.error){t.next=5;break}throw u.g;case 5:case"end":return t.stop()}}),t)})))},p=function(){var e=o()(i.a.mark((function e(){var t,n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.get("core","site","health-checks",void 0,{useCache:!1}).catch((function(e){if("fetch_error"===e.code)throw u.d;throw u.c}));case 2:if(null==(r=e.sent)||null===(t=r.checks)||void 0===t||null===(n=t.googleAPI)||void 0===n?void 0:n.pass){e.next=5;break}throw u.e;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(){var e=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(u.a).catch((function(){throw u.b}));case 2:if(e.sent.ok){e.next=5;break}throw u.b;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var t=o()(i.a.mark((function t(){var n,r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e._googlesitekitBaseData||{},!((r=n.wpVersion)&&r.major<5)){t.next=3;break}throw u.h;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}).call(this,n(18))},34:function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),a=n(16),o=n.n(a),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(13),f=n.n(d),p=n(1),g=n.n(p),m=n(8),h=n.n(m),v=n(2),b=n(195),k=n(196);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u()(this,n)}}var _=function(t){s()(Layout,t);var n=y(Layout);function Layout(){return i()(this,Layout),n.apply(this,arguments)}return o()(Layout,[{key:"render",value:function(){var t=this.props,n=t.header,r=t.footer,i=t.children,a=t.title,o=t.headerCTALabel,c=t.headerCTALink,s=t.footerCTALabel,l=t.footerCTALink,u=t.footerContent,d=t.className,f=t.fill,p=t.relative;return e.createElement("div",{className:h()("googlesitekit-layout",d,{"googlesitekit-layout--fill":f,"googlesitekit-layout--relative":p})},n&&e.createElement(b.a,{title:a,ctaLabel:o,ctaLink:c}),i,r&&e.createElement(k.a,{ctaLabel:s,ctaLink:l,footerContent:u}))}}]),Layout}(v.Component);_.propTypes={header:g.a.bool,footer:g.a.bool,children:g.a.node.isRequired,title:g.a.string,headerCTALabel:g.a.string,headerCTALink:g.a.string,footerCTALabel:g.a.string,footerCTALink:g.a.string,footerContent:g.a.node,className:g.a.string,fill:g.a.bool,relative:g.a.bool},_.defaultProps={header:!1,footer:!1,title:"",headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=_}).call(this,n(2))},344:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Checkbox}));var r=n(8),i=n.n(r),a=n(1),o=n.n(a);function Checkbox(t){var n=t.onChange,r=t.id,a=t.name,o=t.value,c=t.checked,s=t.disabled,l=t.children,u=t.tabIndex,d=t.onKeyDown;return e.createElement("div",{className:"mdc-form-field"},e.createElement("div",{className:i()("mdc-checkbox",{"mdc-checkbox--disabled":s})},e.createElement("input",{className:"mdc-checkbox__native-control",type:"checkbox",id:r,name:a,value:o,checked:c,disabled:s,onChange:n,tabIndex:u,onKeyDown:d}),e.createElement("div",{className:"mdc-checkbox__background"},e.createElement("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 24 24"},e.createElement("path",{className:"mdc-checkbox__checkmark-path",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})),e.createElement("div",{className:"mdc-checkbox__mixedmark"}))),e.createElement("label",{htmlFor:r},l))}Checkbox.propTypes={onChange:o.a.func.isRequired,onKeyDown:o.a.func,id:o.a.string.isRequired,name:o.a.string.isRequired,value:o.a.string.isRequired,checked:o.a.bool,disabled:o.a.bool,children:o.a.node.isRequired,tabIndex:o.a.oneOfType([o.a.number,o.a.string])},Checkbox.defaultProps={checked:!1,disabled:!1,tabIndex:void 0,onKeyDown:null}}).call(this,n(2))},350:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return OptIn}));var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(1),s=n.n(c),l=n(8),u=n.n(l),d=n(2),f=n(200),p=n(0),g=n(4),m=n.n(g),h=n(12),v=n(58),b=n(344),k=n(24),y=m.a.useSelect,_=m.a.useDispatch;function OptIn(t){var n=t.id,r=t.name,a=t.className,c=t.optinAction,s=y((function(e){return e(h.a).isTrackingEnabled()})),l=y((function(e){return e(h.a).isSavingTrackingEnabled()})),g=y((function(e){return e(h.a).getErrorForAction("setTrackingEnabled",[!s])})),m=_(h.a).setTrackingEnabled,E=Object(d.useCallback)(function(){var e=o()(i.a.mark((function e(t){var n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m(!!t.target.checked);case 2:n=e.sent,r=n.response,n.error||(Object(v.a)(r.enabled),r.enabled&&Object(v.b)("tracking_plugin",c));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[c,m]);return void 0===s?null:e.createElement("div",{className:u()("googlesitekit-opt-in",a)},e.createElement(b.a,{id:n,name:r,value:"1",checked:s,disabled:l,onChange:E},e.createElement("span",null,Object(p.__)("Help us improve Site Kit by sharing anonymous usage data.","google-site-kit")," "),e.createElement("span",null,Object(f.a)(Object(p.__)("All collected data is treated in accordance with the <a>Google Privacy Policy.</a>","google-site-kit"),{a:e.createElement(k.a,{key:"link",href:"https://policies.google.com/privacy",external:!0,inherit:!0})}))),(null==g?void 0:g.message)&&e.createElement("div",{className:"googlesitekit-error-text"},null==g?void 0:g.message))}OptIn.propTypes={id:s.a.string,name:s.a.string,className:s.a.string,optinAction:s.a.string},OptIn.defaultProps={id:"googlesitekit-opt-in",name:"optIn"}}).call(this,n(2))},364:function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),a=n(16),o=n.n(a),c=n(49),s=n.n(c),l=n(21),u=n.n(l),d=n(22),f=n.n(d),p=n(13),g=n.n(p),m=n(8),h=n.n(m),v=n(176),b=n(2),k=n(0),y=n(17),_=n(164),E=n(141);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var j=function(t){u()(NotificationCounter,t);var n=O(NotificationCounter);function NotificationCounter(e){var t;return i()(this,NotificationCounter),(t=n.call(this,e)).state={count:0},t.handleIncrement=t.handleIncrement.bind(s()(t)),t.handleDecrement=t.handleDecrement.bind(s()(t)),t}return o()(NotificationCounter,[{key:"componentDidMount",value:function(){var e=this;Object(y.a)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications",(function(){Object(y.f)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications"),Object(_.c)().then((function(t){e.setState({count:t})}))})),document.addEventListener("notificationDismissed",this.handleDecrement,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("notificationDismissed",this.handleDecrement)}},{key:"handleIncrement",value:function(){this.setState(_.d)}},{key:"handleDecrement",value:function(){this.setState(_.a)}},{key:"render",value:function(){var t=Object(k.sprintf)(
7
  /* translators: %d: the number of notifications */
8
- Object(k._n)("%d notification","%d notifications",this.state.count,"google-site-kit"),this.state.count),n=e.createElement("span",{className:h()("googlesitekit-notifications-counter","update-plugins","count-".concat(this.state.count))},e.createElement("span",{className:"plugin-count","aria-hidden":"true"},this.state.count),e.createElement(E.a,null,t));return Object(v.createPortal)(n,document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"))}}]),NotificationCounter}(b.Component);t.a=j}).call(this,n(2))},373:function(e,t,n){"use strict";(function(e){var r=n(6),i=n.n(r),a=n(82);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(t){return function(n){return function(r){var o=Object(a.a)(t),s=c(c({},r),{},i()({},"".concat(t,"Enabled"),o));return n.displayName="withFeatureFlag(".concat(n.displayName||n.name||"Anonymous",")"),e.createElement(n,s)}}}}).call(this,n(2))},38:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return p}));var r=n(33),i=n.n(r),a=n(23),o=n(48),c=n(72),s="googlesitekit_legacy_1.34.0_",l=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==i()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==i()(n)||!n.error&&!n.errors)){l(),e._googlesitekitLegacyData.admin.datacache[t]=Object(a.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(s+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(l(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(s+t));return r&&"object"===i()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(a.cloneDeep)(r.value),Object(a.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},f=function(t){l(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(s+t)},p=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=[],o=[e,t,n],s=0,l=o;s<l.length;s++){var u=l[s];if(!u||!u.length)break;a.push(u)}return 3===a.length&&r&&"object"===i()(r)&&Object.keys(r).length&&a.push(Object(c.a)(r)),a.join("::")}}).call(this,n(18))},4:function(e,t){e.exports=googlesitekit.data},40:function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),a=n(16),o=n.n(a),c=n(49),s=n.n(c),l=n(21),u=n.n(l),d=n(22),f=n.n(d),p=n(13),g=n.n(p),m=n(1),h=n.n(m),v=n(8),b=n.n(v),k=n(2),y=n(0),_=n(67),E=n(78),O=n(5);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var S=function(t){u()(DataBlock,t);var n=j(DataBlock);function DataBlock(e){var t;return i()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(s()(t)),t.handleKeyPress=t.handleKeyPress.bind(s()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,i=t.datapoint,a=t.datapointUnit,o=t.change,c=t.changeDataUnit,s=t.context,l=t.period,u=t.selected,d=t.handleStatSelection,f=t.source,p=t.sparkline,g=t.invertChangeColor,m="button"===s?"button":"",h=p;h&&g&&(h=Object(k.cloneElement)(p,{invertChangeColor:g}));var v=o;c&&(v="%"===c?Object(O.r)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(O.r)(o,c)),l&&(v=Object(y.sprintf)(l,v));var j=i&&Object(O.r)(i,a||void 0);return e.createElement("div",{className:b()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(s),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===s?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},j)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:b()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(k.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(_.a,{direction:0<parseFloat(o)?"up":"down",invertColor:g})),e.createElement("span",{className:"googlesitekit-data-block__value"},v))),f&&e.createElement(E.a,{className:"googlesitekit-data-block__source",name:f.name,href:f.link,external:null==f?void 0:f.external})))}}]),DataBlock}(k.Component);S.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},S.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=S}).call(this,n(2))},411:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityChecks}));var r=n(26),i=n.n(r),a=n(0),o=n(1),c=n.n(o),s=n(4),l=n.n(s),u=n(170),d=n(64),f=n(412),p=n(413),g=n(20),m=n(338),h=l.a.useRegistry;function CompatibilityChecks(t){var n=t.children,r=i()(t,["children"]),o=h(),c=Object(f.a)(function(e){return e.select(g.c).isConnected()?[]:[m.c,m.b,Object(m.e)(e),m.a,m.d]}(o)),s=c.complete,l=c.error,v=l&&e.createElement("div",{className:"googlesitekit-setup-compat mdc-layout-grid mdc-layout-grid--align-left"},e.createElement("div",{className:"googlesitekit-setup__warning"},e.createElement(u.a,null),e.createElement("div",{className:"googlesitekit-heading-4"},Object(a.__)("Your site may not be ready for Site Kit","google-site-kit"))),e.createElement(p.a,{error:l}));return n({props:r,complete:s,error:l,inProgressFeedback:!s&&e.createElement("div",{className:"googlesitekit-margin-left-1rem googlesitekit-align-self-center"},e.createElement("small",null,Object(a.__)("Checking Compatibility…","google-site-kit")),e.createElement(d.a,{small:!0,compress:!0})),ctaFeedback:v})}CompatibilityChecks.propTypes={children:c.a.func.isRequired}}).call(this,n(2))},412:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(11),s=n.n(c),l=n(326),u=n(2);function d(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){var t=Object(u.useState)(e),n=s()(t,1)[0],r=Object(u.useState)(!(null==n?void 0:n.length)),a=s()(r,2),c=a[0],f=a[1],p=Object(u.useState)(void 0),g=s()(p,2),m=g[0],h=g[1];return Object(l.a)((function(){c||function(){var e=o()(i.a.mark((function e(){var t,r,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=d(n),e.prev=2,t.s();case 4:if((r=t.n()).done){e.next=10;break}return a=r.value,e.next=8,a();case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(0),h(e.t1);case 23:f(!0);case 24:case"end":return e.stop()}}),e,null,[[0,20],[2,12,15,18]])})));return function(){return e.apply(this,arguments)}}()()})),{complete:c,error:m}}},413:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityErrorNotice}));var r=n(25),i=n.n(r),a=n(0),o=n(4),c=n.n(o),s=n(75),l=n(24),u=n(20),d=n(169),f=c.a.useSelect;function CompatibilityErrorNotice(t){var n=t.error,r=f((function(e){return e(u.c).getDeveloperPluginState()}))||{},o=r.installed;switch(n){case d.c:return e.createElement("p",null,Object(a.__)("Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site.","google-site-kit"));case d.f:case d.d:return e.createElement("p",null,!o&&e.createElement("span",null,Object(a.__)("Looks like this may be a staging environment. If so, you’ll need to install a helper plugin and verify your production site in Search Console.","google-site-kit")),o&&e.createElement("span",null,Object(a.__)("Looks like this may be a staging environment and you already have the helper plugin. Before you can use Site Kit, please make sure you’ve provided the necessary credentials in the Authentication section and verified your production site in Search Console.","google-site-kit"))," ",e.createElement(l.a,i()({},function(e){var t=e.installed,n=e.active,r=e.installURL,i=e.activateURL,o=e.configureURL;return!t&&r?{"aria-label":Object(a.__)("Install the helper plugin","google-site-kit"),children:Object(a.__)("Install","google-site-kit"),href:r,external:!1}:t&&!n&&i?{"aria-label":Object(a.__)("Activate the helper plugin","google-site-kit"),children:Object(a.__)("Activate","google-site-kit"),href:i,external:!1}:t&&n&&o?{"aria-label":Object(a.__)("Configure the helper plugin","google-site-kit"),children:Object(a.__)("Configure","google-site-kit"),href:o,external:!1}:{"aria-label":Object(a.__)("Learn how to install and use the helper plugin","google-site-kit"),children:Object(a.__)("Learn how","google-site-kit"),href:"https://sitekit.withgoogle.com/documentation/using-site-kit-on-a-staging-environment/",external:!0}}(r),{inherit:!0})));case d.g:return e.createElement("p",null,Object(a.__)("Looks like you may be using a caching plugin which could interfere with setup. Please deactivate any caching plugins before setting up Site Kit. You may reactivate them once setup has been completed.","google-site-kit"));case d.e:return e.createElement("p",{dangerouslySetInnerHTML:Object(s.a)("\n\t\t\t\t\t\t".concat(Object(a.__)("Looks like your site is having a technical issue with requesting data from Google services.","google-site-kit"),"\n\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t").concat(Object(a.sprintf)(
9
  /* translators: %1$s: Support Forum URL, %2$s: Error message */
10
  Object(a.__)('To get more help, ask a question on our <a href="%1$s">support forum</a> and include the text of the original error message: %2$s',"google-site-kit"),"https://wordpress.org/support/plugin/google-site-kit/","<br/>".concat(n)),"\n\t\t\t\t\t\t"),{ALLOWED_TAGS:["a","br"],ALLOWED_ATTR:["href"]})});case d.b:return e.createElement("p",{dangerouslySetInnerHTML:Object(s.a)("\n\t\t\t\t\t\t".concat(Object(a.__)("Looks like the AMP CDN is restricted in your region, which could interfere with setup on the Site Kit service.","google-site-kit"),"\n\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t").concat(Object(a.sprintf)(
11
  /* translators: %1$s: Support Forum URL, %2$s: Error message */
@@ -32,4 +32,4 @@ Object(u._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?
32
  Object(u.__)("%sM","google-site-kit"),b(m(e),e%10==0?{}:t)):1e4<=e?Object(u.sprintf)(// translators: %s: an abbreviated number in thousands.
33
  Object(u.__)("%sK","google-site-kit"),b(m(e))):1e3<=e?Object(u.sprintf)(// translators: %s: an abbreviated number in thousands.
34
  Object(u.__)("%sK","google-site-kit"),b(m(e),e%10==0?{}:t)):b(e,{signDisplay:"never",maximumFractionDigits:1})},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(l.isFinite)(e)?e:Number(e),Object(l.isFinite)(e)||(console.warn("Invalid number",e,i()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return p(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(l.isPlainObject)(t)&&(n=f({},t))}var r=n,a=r.style,o=void 0===a?"metric":a;return"metric"===o?h(e):"duration"===o?p(e,t):b(e,n)},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?y():n,i=s()(t,["locale"]);return new Intl.NumberFormat(r,i).format(e)},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?y():n,i=t.style,a=void 0===i?"long":i,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:a,type:c});return s.format(e)}
35
- /* translators: used between list items, there is a space after the comma. */var l=Object(u.__)(", ","google-site-kit");return e.join(l)},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(l.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(18))},88:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="core",i="modules"},89:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return b}));var r=n(7),i=n.n(r),a=n(14),o=n.n(a);n(37);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l,u="googlesitekit_".concat("1.34.0","_"),d=["sessionStorage","localStorage"],f=[].concat(d),p=function(){var t=o()(i.a.mark((function t(n){var r,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,a="__storage_test__",r.setItem(a,a),r.removeItem(a),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),g=function(){var t=o()(i.a.mark((function t(){var n,r,a,o,s;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==l){t.next=25;break}a=c(f),t.prev=4,a.s();case 6:if((o=a.n()).done){t.next=16;break}if(s=o.value,!l){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,p(s);case 12:if(!t.sent){t.next=14;break}l=e[s];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),a.e(t.t0);case 21:return t.prev=21,a.f(),t.finish(21);case 24:void 0===l&&(l=null);case 25:return t.abrupt("return",l);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(i.a.mark((function e(t){var n,r,a,o,c,s,l;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(a=JSON.parse(r),o=a.timestamp,c=a.ttl,s=a.value,l=a.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:s,isError:l});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var t=o()(i.a.mark((function t(n,r){var a,o,c,s,l,d,f,p,m=arguments;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=m.length>2&&void 0!==m[2]?m[2]:{},o=a.ttl,c=void 0===o?3600:o,s=a.timestamp,l=void 0===s?Math.round(Date.now()/1e3):s,d=a.isError,f=void 0!==d&&d,t.next=3,g();case 3:if(!(p=t.sent)){t.next=14;break}return t.prev=5,p.setItem("".concat(u).concat(n),JSON.stringify({timestamp:l,ttl:c,value:r,isError:f})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),v=function(){var t=o()(i.a.mark((function t(n){var r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),b=function(){var t=o()(i.a.mark((function t(){var n,r,a,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],a=0;a<n.length;a++)0===(o=n.key(a)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(18))},937:function(e,t,n){"use strict";n.r(t),function(e,t){var r=n(300),i=n(176),a=n(5),o=(n(334),n(205)),c=n(742),s=n(364);Object(r.a)((function(){e._googlesitekitLegacyData.admin.resetSession&&Object(a.b)();var n=document.getElementById("js-googlesitekit-dashboard-splash");n&&Object(i.render)(t.createElement(o.a,{dataAPIContext:"Splash"},t.createElement(s.a,null),t.createElement(c.a,null)),n)}))}.call(this,n(18),n(2))},98:function(e,t,n){"use strict";function r(e){return new URL(e).pathname}function i(e,t){return new URL(t,e).href}function a(e){return e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a}))}},[[937,1,0]]]);
1
+ (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[8],{0:function(e,t){e.exports=googlesitekit.i18n},101:function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function i(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function a(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,i,a];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},102:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(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)]}},103:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}));var r=n(229),i=n(67),a=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var a=n.invertColor,o=void 0!==a&&a;return Object(r.a)(e.createElement(i.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,i,a,o,c,s,l,u,d,f,p,g,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(i=e[0])||void 0===i||null===(a=i.data)||void 0===a||null===(o=a.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(s=c.metrics)||void 0===s||null===(l=s[0])||void 0===l||null===(u=l.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(p=f.totals)||void 0===p||null===(g=p[0])||void 0===g||null===(m=g.values)||void 0===m?void 0:m[0])}}).call(this,n(2))},104:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),i=n.n(r),a=n(105),o=n(106);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=s(s({},l),t);return i.referenceSiteURL&&(i.referenceSiteURL=i.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(a.a)(i,n),disableTracking:function(){i.trackingEnabled=!1},isTrackingEnabled:function(){return!!i.trackingEnabled},trackEvent:Object(o.a)(i,n,r)}}}).call(this,n(18))},105:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(66),i=n(44);function a(t,n){var a=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(i.b,"]"))){var r=n.createElement("script");r.setAttribute(i.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(i.a),n.head.appendChild(r),a("js",new Date),a("config",t.trackingID)}}}}).call(this,n(18))},106:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p}));var r=n(7),i=n.n(r),a=n(6),o=n.n(a),c=n(14),s=n.n(c),l=n(66),u=n(56);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(t,n,r){var a=Object(l.a)(n);return function(){var n=s()(i.a.mark((function n(o,c,s,l){var d,p,g,m,h,v,b,k;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(g=t.isFirstAdmin,m=t.referenceSiteURL,h=t.trackingEnabled,v=t.trackingID,b=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(p=d.ioo)||void 0===p?void 0:p.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return k={send_to:v,event_category:o,event_label:s,value:l,dimension1:m,dimension2:g?"true":"false",dimension3:b,dimension4:"1.34.1",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);a("event",c,f(f({},k),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,i){return n.apply(this,arguments)}}()}}).call(this,n(18))},107:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(146),i=n.n(r)()(e)}).call(this,n(18))},108:function(e,t,n){"use strict";(function(e){var r=n(0),i=n(24);t.a=function HelpLink(){var t=Object(r.__)("Need help?","google-site-kit");return e.createElement(i.a,{className:"googlesitekit-help-link",href:"https://sitekit.withgoogle.com/documentation/",external:!0},t)}}).call(this,n(2))},113:function(e,t,n){"use strict";(function(e){var r=n(35),i=n.n(r),a=n(154),o=e._googlesitekitAPIFetchData||{},c=o.nonce,s=o.nonceEndpoint,l=o.preloadedData,u=o.rootURL;i.a.nonceEndpoint=s,i.a.nonceMiddleware=i.a.createNonceMiddleware(c),i.a.rootURLMiddleware=i.a.createRootURLMiddleware(u),i.a.preloadingMiddleware=Object(a.a)(l),i.a.use(i.a.nonceMiddleware),i.a.use(i.a.mediaUploadMiddleware),i.a.use(i.a.rootURLMiddleware),i.a.use(i.a.preloadingMiddleware),t.default=i.a}).call(this,n(18))},12:function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return o}));var r="core/user",i="connected_url_mismatch",a="googlesitekit_view_dashboard",o="googlesitekit_manage_options"},120:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSettingsWarning}));var r=n(4),i=n.n(r),a=n(31),o=n(8),c=n.n(o),s=n(177),l=i.a.useSelect;function ModuleSettingsWarning(t){var n=t.slug,r=l((function(e){var t;return null===(t=e(a.a))||void 0===t?void 0:t.getCheckRequirementsError(n)}));return r?e.createElement("div",{className:c()("googlesitekit-settings-module-warning","googlesitekit-settings-module-warning--modules-list")},e.createElement(s.a,{height:"20",width:"23"})," ",r.message):null}}).call(this,n(2))},124:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return b}));var r=n(26),i=n.n(r),a=n(6),o=n.n(a),c=n(7),s=n.n(c),l=n(10),u=n.n(l),d=n(4),f=n.n(d),p=n(89),g=f.a.createRegistryControl,m=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},r={deleteSnapshot:s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:s.a.mark((function e(){var t,n,r,i,a,o,c=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,r=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(i=e.sent,a=i.cacheHit,o=i.value,!a){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!r){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",a);case 14:case"end":return e.stop()}}),e)})),createSnapshot:s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},a=(t={},o()(t,"DELETE_SNAPSHOT",(function(){return Object(p.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",g((function(t){return function(){return Object(p.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(p.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:r,controls:a,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,r=t.type,a=t.payload;switch(r){case"SET_STATE_FROM_SNAPSHOT":var o=a.snapshot,c=(o.error,i()(o,["error"]));return c;default:return e}}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().createSnapshot()})))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().restoreSnapshot()})))}},128:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return UnsatisfiedScopesAlert}));var i=n(11),a=n.n(i),o=n(290),c=n.n(o),s=n(0),l=n(4),u=n.n(l),d=n(46),f=n(5),p=n(12),g=n(54),m=u.a.useSelect,h={siteverification:"site-verification",webmasters:"search-console"};function UnsatisfiedScopesAlert(){var t,n,i,o,l,u=m((function(e){return e(g.a).isNavigatingTo(/(\/o\/oauth2)|(action=googlesitekit_connect)/i)})),v=m((function(e){return e(p.a).getUnsatisfiedScopes()})),b=m((function(t){return t(p.a).getConnectURL({redirectURL:e.location.href})}));if(u||!(null==v?void 0:v.length)||void 0===b)return null;switch(v.some((function(e){return!e.match(/^https:\/\/www.googleapis.com\/auth\//)}))?t="generic":(i=v,o=Object(f.i)(),t=(n=i.map((function(e){return e.match(/^https:\/\/www.googleapis.com\/auth\/([a-z]+)/)})).map((function(e){var t=a()(e,2)[1];return h[t]||t})).map((function(e){var t;return(null===(t=o[e])||void 0===t?void 0:t.name)||!1}))).some((function(e){return!1===e}))?"generic":1<(n=c()(n)).length?"multiple":"single"),t){case"multiple":l=Object(s.sprintf)(
2
  /* translators: %s: List of product names */
3
  Object(s.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for: %s – make sure to approve all permissions at the authentication stage.","google-site-kit"),Object(f.o)(n));break;case"single":l=Object(s.sprintf)(
4
  /* translators: %1$s: Product name */
5
  Object(s.__)("Site Kit can’t access the relevant data from %1$s because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for %1$s – make sure to approve all permissions at the authentication stage.","google-site-kit"),n[0]);break;case"generic":l=Object(s.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup – make sure to approve all permissions at the authentication stage.","google-site-kit")}return r.createElement(d.a,{id:"authentication error",title:Object(s.__)("Site Kit can’t access necessary data","google-site-kit"),description:l,format:"small",type:"win-error",isDismissable:!1,ctaLink:b,ctaLabel:Object(s.__)("Redo setup","google-site-kit")})}}).call(this,n(18),n(2))},130:function(e,t,n){"use strict";var r=n(2),i=n(56),a=Object(r.createContext)(i.a);t.a=a},131:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Cell}));var r=n(25),i=n.n(r),a=n(6),o=n.n(a),c=n(26),s=n.n(c),l=n(1),u=n.n(l),d=n(8),f=n.n(d);function Cell(t){var n,r=t.className,a=t.alignTop,c=t.alignMiddle,l=t.alignBottom,u=t.alignRight,d=t.alignLeft,p=t.smSize,g=t.smStart,m=t.mdSize,h=t.mdStart,v=t.lgSize,b=t.lgStart,k=t.size,y=t.children,_=s()(t,["className","alignTop","alignMiddle","alignBottom","alignRight","alignLeft","smSize","smStart","mdSize","mdStart","lgSize","lgStart","size","children"]);return e.createElement("div",i()({},_,{className:f()(r,"mdc-layout-grid__cell",(n={"mdc-layout-grid__cell--align-top":a,"mdc-layout-grid__cell--align-middle":c,"mdc-layout-grid__cell--align-bottom":l,"mdc-layout-grid__cell--align-right":u,"mdc-layout-grid__cell--align-left":d},o()(n,"mdc-layout-grid__cell--span-".concat(k),12>=k&&k>0),o()(n,"mdc-layout-grid__cell--span-".concat(v,"-desktop"),12>=v&&v>0),o()(n,"mdc-layout-grid__cell--start-".concat(b,"-desktop"),12>=b&&b>0),o()(n,"mdc-layout-grid__cell--span-".concat(m,"-tablet"),8>=m&&m>0),o()(n,"mdc-layout-grid__cell--start-".concat(h,"-tablet"),8>=h&&h>0),o()(n,"mdc-layout-grid__cell--span-".concat(p,"-phone"),4>=p&&p>0),o()(n,"mdc-layout-grid__cell--start-".concat(g,"-phone"),4>=g&&g>0),n))}),y)}Cell.propTypes={smSize:u.a.number,smStart:u.a.number,mdSize:u.a.number,mdStart:u.a.number,lgSize:u.a.number,lgStart:u.a.number,size:u.a.number,alignTop:u.a.bool,alignMiddle:u.a.bool,alignBottom:u.a.bool,alignRight:u.a.bool,alignLeft:u.a.bool,className:u.a.string,children:u.a.node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,mdSize:0,mdStart:0,lgSize:0,lgStart:0}}).call(this,n(2))},132:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Row}));var r=n(25),i=n.n(r),a=n(26),o=n.n(a),c=n(1),s=n.n(c),l=n(8),u=n.n(l);function Row(t){var n=t.className,r=t.children,a=o()(t,["className","children"]);return e.createElement("div",i()({className:u()("mdc-layout-grid__inner",n)},a),r)}Row.propTypes={className:s.a.string,children:s.a.node},Row.defaultProps={className:""}}).call(this,n(2))},133:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Grid}));var r=n(25),i=n.n(r),a=n(26),o=n.n(a),c=n(1),s=n.n(c),l=n(8),u=n.n(l);function Grid(t){var n=t.className,r=t.children,a=o()(t,["className","children"]);return e.createElement("div",i()({className:u()("mdc-layout-grid",n)},a),r)}Grid.propTypes={className:s.a.string,children:s.a.node},Grid.defaultProps={className:""}}).call(this,n(2))},134:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(48),i=n(38),a=function(t,n,a){var o=Object(i.d)(t,n,a);Object(i.e)(),Object.keys(e._googlesitekitLegacyData.admin.datacache).forEach((function(t){0!==t.indexOf(o+"::")&&t!==o||delete e._googlesitekitLegacyData.admin.datacache[t]})),Object.keys(Object(r.a)()).forEach((function(e){0!==e.indexOf("".concat(i.a).concat(o,"::"))&&e!=="".concat(i.a).concat(o)||Object(r.a)().removeItem(e)}))}}).call(this,n(18))},137:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleIcon}));var r=n(25),i=n.n(r),a=n(26),o=n.n(a),c=n(1),s=n.n(c),l=n(4),u=n.n(l),d=n(31),f=u.a.useSelect;function ModuleIcon(t){var n=t.slug,r=t.size,a=o()(t,["slug","size"]),c=f((function(e){return e(d.a).getModuleIcon(n)}));return c?e.createElement(c,i()({width:r,height:r},a)):null}ModuleIcon.propTypes={slug:s.a.string.isRequired,size:s.a.number},ModuleIcon.defaultProps={size:33}}).call(this,n(2))},141:function(e,t,n){"use strict";(function(e){var r=n(25),i=n.n(r),a=n(26),o=n.n(a),c=n(1),s=n.n(c),l=n(8),u=n.n(l);function VisuallyHidden(t){var n=t.className,r=t.children,a=o()(t,["className","children"]);return e.createElement("span",i()({},a,{className:u()("screen-reader-text",n)}),r)}VisuallyHidden.propTypes={className:s.a.string,children:s.a.node.isRequired},VisuallyHidden.defaultProps={className:""},t.a=VisuallyHidden}).call(this,n(2))},144:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{d:"M2.253 12.252l7.399 5.658A13.055 13.055 0 009 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22.02 22.02 0 010 22c0-3.506.81-6.814 2.253-9.748z",fill:"#FBBC05"}),r.createElement("path",{d:"M9.652 17.91l-7.4-5.658A21.935 21.935 0 0122 0c5.6 0 10.6 2.1 14.5 5.5l-6.4 6.4C27.9 10.1 25.1 9 22 9c-5.77 0-10.64 3.725-12.348 8.91z",fill:"#EA4335"}),r.createElement("path",{d:"M2.25 31.742l7.396-5.67A12.975 12.975 0 0022 35c6.1 0 10.7-3.1 11.8-8.5H22V18h20.5c.3 1.3.5 2.7.5 4 0 14-10 22-21 22A21.935 21.935 0 012.25 31.742z",fill:"#34A853"}),r.createElement("path",{d:"M36.34 38.52l-7.025-5.437c2.297-1.45 3.895-3.685 4.485-6.583H22V18h20.5c.3 1.3.5 2.7.5 4 0 7.17-2.623 12.767-6.66 16.52z",fill:"#4285F4"}));t.a=function SvgLogoG(e){return r.createElement("svg",i({viewBox:"0 0 43 44"},e),a)}},154:function(e,t,n){"use strict";var r=n(152);t.a=function(e){var t=Object.keys(e).reduce((function(t,n){return t[Object(r.getStablePath)(n)]=e[n],t}),{}),n=!1;return function(e,i){if(n)return i(e);setTimeout((function(){n=!0}),1e3);var a=e.parse,o=void 0===a||a,c=e.path;if("string"==typeof e.path){var s,l=(null===(s=e.method)||void 0===s?void 0:s.toUpperCase())||"GET",u=Object(r.getStablePath)(c);if(o&&"GET"===l&&t[u]){var d=Promise.resolve(t[u].body);return delete t[u],d}if("OPTIONS"===l&&t[l]&&t[l][u]){var f=Promise.resolve(t[l][u]);return delete t[l][u],f}}return i(e)}}},155:function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),a=n(16),o=n.n(a),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(13),f=n.n(d),p=n(2),g=n(46);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u()(this,n)}}var h=function(t){s()(GenericError,t);var n=m(GenericError);function GenericError(){return i()(this,GenericError),n.apply(this,arguments)}return o()(GenericError,[{key:"render",value:function(){return e.createElement(g.a,this.props)}}]),GenericError}(p.Component);t.a=h}).call(this,n(2))},156:function(e,t,n){"use strict";(function(e){var r=n(1),i=n.n(r),a=n(299),o=n.n(a),c=n(8),s=n.n(c),l=n(294),u=n(2),d=n(0),f=n(43),p=n(24),g=n(19),m=n(191),h=function Dialog(t){var n=t.dialogActive,r=t.handleDialog,i=t.title,a=t.provides,c=t.handleConfirm,h=t.subtitle,v=t.confirmButton,b=t.dependentModules,k=t.danger,y=t.inProgress,_=void 0!==y&&y,E=Object(u.useCallback)((function(e){null!==e&&g.e.attachTo(e)}),[]),O=Object(l.a)(Dialog),j="googlesitekit-dialog-label-".concat(O),S="googlesitekit-dialog-description-".concat(O),w=!(!a||!a.length);return e.createElement("div",{ref:E,className:s()("mdc-dialog",{"mdc-dialog--open":n}),role:"alertdialog","aria-modal":"true","aria-labelledby":i?j:void 0,"aria-describedby":w?S:void 0,"aria-hidden":n?"false":"true",tabIndex:"-1"},e.createElement("div",{className:"mdc-dialog__scrim"}," "),e.createElement(o.a,{active:n},e.createElement("div",null,e.createElement("div",{className:"mdc-dialog__container"},e.createElement("div",{className:"mdc-dialog__surface"},i&&e.createElement("h2",{id:j,className:"mdc-dialog__title"},i),h&&e.createElement("p",{className:"mdc-dialog__lead"},h),w&&e.createElement("section",{id:S,className:"mdc-dialog__content"},e.createElement("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive"},a.map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t},e.createElement("span",{className:"mdc-list-item__text"},t))})))),b&&e.createElement("p",{className:"mdc-dialog__dependecies"},e.createElement("strong",null,Object(d.__)("Note: ","google-site-kit")),b),e.createElement("footer",{className:"mdc-dialog__actions"},e.createElement(f.a,{onClick:c,danger:k,disabled:_},v||Object(d.__)("Disconnect","google-site-kit")),e.createElement(m.a,{isSaving:_}),e.createElement(p.a,{className:"googlesitekit-margin-left-auto mdc-dialog__cancel-button",onClick:r,inherit:!0,disabled:_},Object(d.__)("Cancel","google-site-kit"))))))))};h.displayName="Dialog",h.propTypes={dialogActive:i.a.bool,handleDialog:i.a.func,handleConfirm:i.a.func.isRequired,title:i.a.string,description:i.a.string,confirmButton:i.a.string,danger:i.a.bool},h.defaultProps={dialogActive:!1,handleDialog:null,title:null,description:null,confirmButton:null,danger:!1},t.a=h}).call(this,n(2))},159:function(e,t,n){"use strict";var r=n(11),i=n.n(r),a=n(312),o=n(2),c=n(176);t.a=function Modal(e){var t=e.children,n=Object(o.useState)(document.createElement("div")),r=i()(n,1)[0];return Object(a.a)((function(){var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(r),function(){return e.removeChild(r)}})),Object(c.createPortal)(t,r)}},161:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AuthError}));var r=n(0),i=n(4),a=n.n(i),o=n(12),c=n(46),s=a.a.useSelect;function AuthError(){var t=s((function(e){return e(o.a).getAuthError()}));return t?e.createElement(c.a,{id:"autherror",title:Object(r.__)("Site Kit can’t access necessary data","google-site-kit"),description:t.message,ctaLink:t.data.reconnectURL,ctaLabel:Object(r.__)("Redo the plugin setup","google-site-kit")}):null}}).call(this,n(2))},164:function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v}));var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(17),s=n(28),l=n(38),u=(Object(c.c)("googlesitekit.winCallbacks",{}),function(){return Object(c.c)("googlesitekit.ModulesNotificationsRequest",[])});function d(){return f.apply(this,arguments)}function f(){return(f=o()(i.a.mark((function t(){var n,r,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=e._googlesitekitLegacyData.setup).isSiteKitConnected&&(n.isAuthenticated||n.isVerified)){t.next=3;break}return t.abrupt("return",0);case 3:return r=0,t.next=6,g();case 6:return(a=t.sent)&&a.total&&(r+=a.total),r=Object(c.c)("googlesitekit.TotalNotifications",r),r=Math.max(0,Math.abs(r)),e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",r),t.abrupt("return",r);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var p=function(e){return e?e.length?e.filter((function(e){return!Object(l.c)("notification::dismissed::".concat(e.id))})):e:[]};function g(){return m.apply(this,arguments)}function m(){return(m=o()(i.a.mark((function e(){var t,n,r,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},n=0,e.next=4,u();case 4:return r=e.sent,a=[],r.map(function(){var e=o()(i.a.mark((function e(t){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new Promise(function(){var e=o()(i.a.mark((function e(n){var r,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.identifier,e.t0=p,e.next=4,s.c.get(s.b,r,"notifications",{},!1);case 4:e.t1=e.sent,a=(0,e.t0)(e.t1),n({identifier:r,notifications:a});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),a.push(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=9,Promise.all(a).then((function(e){e.forEach((function(e){e.notifications.length&&(n+=e.notifications.length,t[e.identifier]=e.notifications)}))}));case 9:return e.abrupt("return",{results:t,total:n});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var h=function(t){var n=Math.abs(t.count)+1;return e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",n),{count:n}},v=function(t){var n=Math.max(0,Math.abs(t.count)-1);return e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",n),{count:n}}}).call(this,n(18))},169:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return u}));var r="https://cdn.ampproject.org/v0.js",i="amp_cdn_restricted",a="check_api_unavailable",o="check_fetch_failed",c="google_api_connection_fail",s="invalid_hostname",l="setup_token_mismatch",u="wp_pre_v5"},170:function(e,t,n){"use strict";(function(e){t.a=function Warning(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#F9BB2D",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),e.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))}}).call(this,n(2))},171:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(5),s=["fetch_error"];function l(e){return u.apply(this,arguments)}function u(){return(u=o()(i.a.mark((function e(t){var n,r,a,o,l,u,d,f;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.method,o=t.type,l=t.identifier,u=t.datapoint,(d=t.error)&&!s.includes(null==d?void 0:d.code)){e.next=3;break}return e.abrupt("return");case 3:return f="code: ".concat(d.code),(null===(n=d.data)||void 0===n?void 0:n.reason)&&(f+=", reason: ".concat(d.data.reason)),e.next=7,Object(c.w)("api_error","".concat(a,":").concat(o,"/").concat(l,"/data/").concat(u),"".concat(d.message," (").concat(f,")"),(null===(r=d.data)||void 0===r?void 0:r.status)||d.code);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},172:function(e,t,n){"use strict";(function(e){var r=n(11),i=n.n(r),a=n(312),o=n(8),c=n.n(o),s=n(1),l=n.n(s),u=n(157),d=n(2),f=n(19),p=Object(d.forwardRef)((function(t,n){var r=t.children,o=t.className,s=t.menuOpen,l=t.menuItems,p=t.onSelected,g=t.id,m=Object(d.useState)(null),h=i()(m,2),v=h[0],b=h[1],k=Object(d.useRef)(null),y=Object(u.a)(n,k),_=Object(d.useCallback)((function(e){var t=e.detail.index;p(t,e)}),[p]);return Object(a.a)((function(){if(null==k?void 0:k.current){var e=new f.g(k.current);return e.listen("MDCMenu:selected",_),b(e),function(){e.unlisten("MDCMenu:selected",_)}}})),Object(d.useEffect)((function(){v&&(v.open=s,v.setDefaultFocusState(1))}),[v,s]),e.createElement("div",{className:c()("mdc-menu","mdc-menu-surface",o),ref:y},e.createElement("ul",{"aria-hidden":!s,"aria-orientation":"vertical",className:"mdc-list",id:g,role:"menu",tabIndex:"-1"},!r&&l.map((function(t,n){return e.createElement("li",{key:n,className:"mdc-list-item",role:"menuitem"},e.createElement("span",{className:"mdc-list-item__text"},t))})),r))}));p.displayName="Menu",p.propTypes={className:l.a.string,children:l.a.node,menuOpen:l.a.bool.isRequired,menuItems:l.a.array,id:l.a.string.isRequired,onSelected:l.a.func},p.defaultProps={onSelected:function(){}},t.a=p}).call(this,n(2))},173:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(403),i=function(e,t,n){Object(r.a)((function(n){return e.includes(n.keyCode)&&t.current.contains(n.target)}),n)}},174:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureTours}));var r=n(1),i=n.n(r),a=n(4),o=n.n(a),c=n(12),s=n(212),l=o.a.useSelect;function FeatureTours(t){var n=t.viewContext,r=l((function(e){var t;return null===(t=e(c.a).getFeatureToursForView(n))||void 0===t?void 0:t[0]})),i=l((function(e){return e(c.a).areFeatureToursOnCooldown()}));return!r||i?null:e.createElement(s.a,{tourID:r.slug,steps:r.steps,gaEventCategory:r.gaEventCategory})}FeatureTours.propTypes={viewContext:i.a.string}}).call(this,n(2))},175:function(e,t,n){"use strict";(function(e){var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(1),s=n.n(c),l=n(2),u=n(24),d=n(5);function HelpMenuLink(t){var n=t.children,r=t.href,a=t.gaEventLabel,c=Object(l.useCallback)(o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=3;break}return e.next=3,Object(d.w)("global_help_menu","click_outgoing_link",a);case 3:case"end":return e.stop()}}),e)}))),[a]);return e.createElement("li",{className:"googlesitekit-help-menu-link mdc-list-item",role:"none"},e.createElement(u.a,{className:"mdc-list-item__text",href:r,external:!0,hideExternalIndicator:!0,inherit:!0,role:"menuitem",onClick:c},n))}HelpMenuLink.propTypes={children:s.a.node.isRequired,href:s.a.string.isRequired,gaEventLabel:s.a.string},t.a=HelpMenuLink}).call(this,n(2))},177:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M3.332 24.75h21.335c2.182 0 3.542-2.366 2.451-4.25L16.451 2.07C15.36.184 12.64.184 11.549 2.07L.882 20.5c-1.091 1.884.269 4.25 2.45 4.25zM14 14.833a1.42 1.42 0 01-1.417-1.416v-2.834c0-.779.638-1.416 1.417-1.416.78 0 1.417.637 1.417 1.416v2.834A1.42 1.42 0 0114 14.833zm1.417 5.667h-2.834v-2.833h2.834V20.5z",fill:"#EA4336",fillRule:"nonzero"});t.a=function SvgError(e){return r.createElement("svg",i({viewBox:"0 0 28 25"},e),a)}},182:function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(28);function s(){return l.apply(this,arguments)}function l(){return(l=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.c.get(c.a,"site","notifications",{},!1);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var u=n(58);function d(e,t){return f.apply(this,arguments)}function f(){return(f=o()(i.a.mark((function e(t,n){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c.c.invalidateCacheGroup(c.a,"site","notifications"),e.next=3,Object(u.b)("site_notifications",n,t);case 3:return e.next=5,c.c.set(c.a,"site","mark-notification",{notificationID:t,notificationState:n});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return g.apply(this,arguments)}function g(){return(g=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(t,"accepted");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return h.apply(this,arguments)}function h(){return(h=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(t,"dismissed");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},185:function(e,t,n){"use strict";(function(e){t.a=function Error(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#EA4336",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"error-title error-desc"},e.createElement("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"}))}}).call(this,n(2))},19:function(e,t,n){"use strict";var r=n(110),i=n.n(r);n.d(t,"n",(function(){return i.a})),n.d(t,"c",(function(){return r.HelperText})),n.d(t,"d",(function(){return r.Input}));var a=n(218);n.d(t,"i",(function(){return a.a}));var o=n(305);n.d(t,"f",(function(){return o.a}));var c=n(306);n.d(t,"h",(function(){return c.a}));var s=n(136),l=n.n(s);n.d(t,"m",(function(){return l.a})),n.d(t,"k",(function(){return s.Option}));var u=n(307);n.d(t,"j",(function(){return u.a}));var d=n(304);n.d(t,"e",(function(){return d.a}));var f=n(303);n.d(t,"g",(function(){return f.a}));var p=n(69);n.d(t,"a",(function(){return p.a})),n.d(t,"b",(function(){return p.b})),n.d(t,"l",(function(){return p.c}))},191:function(e,t,n){"use strict";(function(e){t.a=function Spinner(t){var n=t.isSaving;return e.createElement("span",{className:"spinner",style:{display:n?"inline-block":"none",float:"none",marginTop:"0",visibility:"visible"}})}}).call(this,n(2))},195:function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),a=n(16),o=n.n(a),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(13),f=n.n(d),p=n(1),g=n.n(p),m=n(8),h=n.n(m),v=n(2),b=n(24);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u()(this,n)}}var y=function(t){s()(LayoutHeader,t);var n=k(LayoutHeader);function LayoutHeader(){return i()(this,LayoutHeader),n.apply(this,arguments)}return o()(LayoutHeader,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.ctaLabel,i=t.ctaLink;return e.createElement("header",{className:"googlesitekit-layout__header"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:h()("mdc-layout-grid__cell","mdc-layout-grid__cell--align-middle","mdc-layout-grid__cell--span-4-phone",{"mdc-layout-grid__cell--span-6-desktop":i,"mdc-layout-grid__cell--span-12-desktop":!i,"mdc-layout-grid__cell--span-8-tablet":!i})},e.createElement("h3",{className:"googlesitekit-subheading-1 googlesitekit-layout__header-title"},n)),i&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--align-middle mdc-layout-grid__cell--align-right-tablet "},e.createElement(b.a,{href:i,external:!0,inherit:!0},r)))))}}]),LayoutHeader}(v.Component);y.propTypes={title:g.a.string,ctaLabel:g.a.string,ctaLink:g.a.string},y.defaultProps={title:"",ctaLabel:"",ctaLink:""},t.a=y}).call(this,n(2))},196:function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),a=n(16),o=n.n(a),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(13),f=n.n(d),p=n(1),g=n.n(p),m=n(2),h=n(78);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u()(this,n)}}var b=function(t){s()(LayoutFooter,t);var n=v(LayoutFooter);function LayoutFooter(){return i()(this,LayoutFooter),n.apply(this,arguments)}return o()(LayoutFooter,[{key:"render",value:function(){var t=this.props,n=t.ctaLabel,r=t.ctaLink,i=t.footerContent;return e.createElement("footer",{className:"googlesitekit-layout__footer"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},r&&n&&e.createElement(h.a,{className:"googlesitekit-data-block__source",name:n,href:r,external:!0}),i))))}}]),LayoutFooter}(m.Component);b.propTypes={ctaLabel:g.a.string,ctaLink:g.a.string},t.a=b}).call(this,n(2))},198:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M14 1.41L12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7 14 1.41z",fill:"#fff"});t.a=function SvgClose(e){return r.createElement("svg",i({viewBox:"0 0 14 14",fill:"none"},e),a)}},20:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r="core/site",i="primary",a="secondary"},205:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Root}));var r=n(1),i=n.n(r),a=n(4),o=n.n(a),c=n(206),s=n(207),l=n(56),u=n(208),d=n(209),f=n(210),p=n(211);function Root(t){var n=t.children,r=t.registry,i=t.viewContext,a=void 0===i?null:i,g=t.dataAPIContext,m=t.dataAPIModuleArgs;return e.createElement(o.a.RegistryProvider,{value:r},e.createElement(s.a,{value:l.a},e.createElement(c.a,{viewContext:a},e.createElement(d.a,null,n,a&&e.createElement(p.a,{viewContext:a}),g&&e.createElement(f.a,{context:g,args:m})),e.createElement(u.a,null))))}Root.propTypes={children:i.a.node.isRequired,registry:i.a.object,viewContext:i.a.string,dataAPIContext:i.a.string,dataAPIModuleArgs:i.a.object},Root.defaultProps={registry:o.a}}).call(this,n(2))},206:function(e,t,n){"use strict";(function(e,r){var i=n(15),a=n.n(i),o=n(16),c=n.n(o),s=n(49),l=n.n(s),u=n(21),d=n.n(u),f=n(22),p=n.n(f),g=n(13),m=n.n(g),h=n(298),v=n.n(h),b=n(1),k=n.n(b),y=n(2),_=n(0),E=n(295),O=n(360),j=n(361),S=n(46),w=n(24),C=n(43),N=n(5);function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var i=m()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}var D=function(t){d()(ErrorHandler,t);var n=x(ErrorHandler);function ErrorHandler(e){var t;return a()(this,ErrorHandler),(t=n.call(this,e)).state={error:null,info:null,copied:!1},t.onErrorClick=t.onErrorClick.bind(l()(t)),t}return c()(ErrorHandler,[{key:"componentDidCatch",value:function(t,n){var r=this.props.viewContext,i=void 0===r?"unknown":r;e.console.error("Caught an error:",t,n),this.setState({error:t,info:n}),Object(N.w)("react_error","handle_".concat(i,"_error"),"".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack).slice(0,500))}},{key:"onErrorClick",value:function(){var e=this.state,t=e.error,n=e.info;v()("`".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack,"`")),this.setState({copied:!0})}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.error,i=t.info,a=t.copied;if(!n)return e;var o=r.createElement(E.a,{className:"mdc-button__icon",icon:a?O.a:j.a});return r.createElement(S.a,{id:"googlesitekit-error",title:Object(_.__)("Site Kit encountered an error","google-site-kit"),description:r.createElement(y.Fragment,null,r.createElement(C.a,{trailingIcon:o,onClick:this.onErrorClick},Object(_.__)("Copy error to clipboard","google-site-kit")),r.createElement(w.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(_.__)("Report this problem","google-site-kit"))),isDismissable:!1,format:"small",type:"win-error"},r.createElement("pre",{className:"googlesitekit-overflow-auto"},n.message,i.componentStack))}}]),ErrorHandler}(y.Component);D.propTypes={children:k.a.node.isRequired},t.a=D}).call(this,n(18),n(2))},207:function(e,t,n){"use strict";var r=n(130),i=(r.a.Consumer,r.a.Provider);t.a=i},208:function(e,t,n){"use strict";(function(e,r){var i=n(7),a=n.n(i),o=n(14),c=n.n(o),s=n(0),l=n(2),u=n(4),d=n.n(u),f=n(12),p=n(54),g=n(124),m=n(156),h=n(159),v=d.a.useSelect,b=d.a.useDispatch,k=d.a.useRegistry;t.a=function PermissionsModal(){var t,n,i,o=k(),u=v((function(e){return e(f.a).getPermissionScopeError()})),d=v((function(t){var n;return t(f.a).getConnectURL({additionalScopes:null==u||null===(n=u.data)||void 0===n?void 0:n.scopes,redirectURL:e.location.href})})),y=b(f.a).clearPermissionScopeError,_=b(p.a).navigateTo,E=Object(l.useCallback)((function(){y()}),[y]),O=Object(l.useCallback)(c()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(g.c)(o);case 2:_(d);case 3:case"end":return e.stop()}}),e)}))),[o,d,_]);return Object(l.useEffect)((function(){(function(){var e=c()(a.a.mark((function e(){var t,n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null==u||null===(t=u.data)||void 0===t?void 0:t.skipModal)||!(null==u||null===(n=u.data)||void 0===n||null===(r=n.scopes)||void 0===r?void 0:r.length)){e.next=3;break}return e.next=3,O();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[O,u]),u?(null==u||null===(t=u.data)||void 0===t||null===(n=t.scopes)||void 0===n?void 0:n.length)?(null==u||null===(i=u.data)||void 0===i?void 0:i.skipModal)?null:r.createElement(h.a,null,r.createElement(m.a,{title:Object(s.__)("Additional Permissions Required","google-site-kit"),subtitle:u.message,confirmButton:Object(s.__)("Proceed","google-site-kit"),dialogActive:!0,handleConfirm:O,handleDialog:E})):(e.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",u),null):null}}).call(this,n(18),n(2))},209:function(e,t,n){"use strict";var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(11),s=n.n(c),l=n(2),u=n(4),d=n.n(u),f=n(124),p=d.a.useRegistry;t.a=function RestoreSnapshots(e){var t=e.children,n=p(),r=Object(l.useState)(!1),a=s()(r,2),c=a[0],u=a[1];return Object(l.useEffect)((function(){c||o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(f.b)(n);case 2:u(!0);case 3:case"end":return e.stop()}}),e)})))()}),[n,c]),c?t:null}},210:function(e,t,n){"use strict";n.d(t,"a",(function(){return CollectModuleData}));var r=n(2),i=n(17),a=(n(28),n(4)),o=n.n(a),c=n(12),s=o.a.useSelect;function CollectModuleData(e){var t=e.context,n=e.args,a=s((function(e){return e(c.a).getDateRange()}));return Object(r.useEffect)((function(){return function(){return Object(i.d)("googlesitekit.moduleDataReset")}}),[a]),Object(r.useEffect)((function(){Object(i.d)("googlesitekit.moduleLoaded",t,n)}),[t,n,a]),null}},211:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureToursDesktop}));var r=n(6),i=n.n(r),a=n(162),o=n(174);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FeatureToursDesktop(t){return Object(a.a)()<783?null:e.createElement(o.a,t)}FeatureToursDesktop.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o.a.propTypes)}).call(this,n(2))},212:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return TourTooltips}));var i=n(6),a=n.n(i),o=n(326),c=n(47),s=n(1),l=n.n(s),u=n(0),d=n(4),f=n.n(d),p=n(52),g=n(12),m=n(58),h=n(213);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var b=f.a.useSelect,k=f.a.useDispatch,y={options:{arrowColor:"#1A73E8",backgroundColor:"#1A73E8",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#ffffff"}},_={back:Object(u.__)("Back","google-site-kit"),close:Object(u.__)("Close","google-site-kit"),last:Object(u.__)("Got it","google-site-kit"),next:Object(u.__)("Next","google-site-kit")},E={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},O="feature_tooltip_view",j="feature_tooltip_advance",S="feature_tooltip_return",w="feature_tooltip_dismiss",C="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,i=t.tourID,s=t.gaEventCategory,l="".concat(i,"-step"),u="".concat(i,"-run"),d=k(p.a).setValue,f=k(g.a).dismissTour,N=b((function(e){return e(p.a).getValue(l)})),x=b((function(e){return e(p.a).getValue(u)&&!1===e(g.a).isTourDismissed(i)}));Object(o.a)((function(){d(u,!0)}));var D=n.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));return r.createElement(c.e,{callback:function(t){!function(e){var t=e.index,n=e.action,r=e.lifecycle,i=e.size,a=e.status,o=e.type,l=t+1;o===c.b.TOOLTIP&&r===c.c.TOOLTIP?Object(m.b)(s,O,l):n===c.a.CLOSE&&r===c.c.COMPLETE?Object(m.b)(s,w,l):n===c.a.NEXT&&a===c.d.FINISHED&&o===c.b.TOUR_END&&i===l&&Object(m.b)(s,C,l),r===c.c.COMPLETE&&a!==c.d.FINISHED&&(n===c.a.PREV&&Object(m.b)(s,S,l),n===c.a.NEXT&&Object(m.b)(s,j,l))}(t);var n=t.action,r=t.index,a=t.status,o=t.step,u=t.type,p=n===c.a.CLOSE,g=!p&&[c.b.STEP_AFTER,c.b.TARGET_NOT_FOUND].includes(u),h=[c.d.FINISHED,c.d.SKIPPED].includes(a),v=p&&u===c.b.STEP_AFTER,b=h||v;if(c.b.STEP_BEFORE===u){var k,y,_=o.target;"string"==typeof o.target&&(_=e.document.querySelector(o.target)),null===(k=_)||void 0===k||null===(y=k.scrollIntoView)||void 0===y||y.call(k,{block:"center"})}g?function(e,t){d(l,e+(t===c.a.PREV?-1:1))}(r,n):b&&f(i)},continuous:!0,disableOverlayClose:!0,disableScrolling:!0,floaterProps:E,locale:_,run:x,showProgress:!0,stepIndex:N,steps:D,styles:y,tooltipComponent:h.a})}TourTooltips.propTypes={steps:l.a.arrayOf(l.a.object).isRequired,tourID:l.a.string.isRequired,gaEventCategory:l.a.string.isRequired}}).call(this,n(18),n(2))},213:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TourTooltip}));var r=n(25),i=n.n(r),a=n(204),o=n.n(a),c=n(8),s=n.n(c),l=n(1),u=n.n(l),d=n(214),f=n(198),p=n(43);function TourTooltip(t){var n=t.backProps,r=t.closeProps,c=t.index,l=t.primaryProps,u=t.size,g=t.step,m=t.tooltipProps,h=u>1?Object(d.a)(u):[],v=function(e){return s()("googlesitekit-tooltip-indicator",{active:e===c})};return e.createElement("div",i()({className:"googlesitekit-tour-tooltip"},m),e.createElement(o.a,{className:"googlesitekit-tooltip-card"},e.createElement("div",{className:"googlesitekit-tooltip-body"},e.createElement("h2",{className:"googlesitekit-tooltip-title"},g.title),e.createElement("div",{className:"googlesitekit-tooltip-content"},g.content)),e.createElement(a.CardActions,{className:"googlesitekit-tooltip-actions"},e.createElement("ul",{className:"googlesitekit-tooltip-indicators"},h.map((function(t){return e.createElement("li",{key:"indicator-".concat(t),className:v(t)})}))),e.createElement("div",{className:"googlesitekit-tooltip-buttons"},0!==c&&e.createElement(p.a,i()({className:"googlesitekit-tooltip-button",text:!0},n),n.title),e.createElement(p.a,i()({className:"googlesitekit-tooltip-button",text:!0},l),l.title))),e.createElement(p.a,i()({className:"googlesitekit-tooltip-close",text:!0,icon:e.createElement(f.a,{width:"14",height:"14"})},r))))}TourTooltip.propTypes={backProps:u.a.object.isRequired,closeProps:u.a.object.isRequired,index:u.a.number.isRequired,isLastStep:u.a.bool.isRequired,primaryProps:u.a.object.isRequired,size:u.a.number.isRequired,step:u.a.shape({content:u.a.node.isRequired,title:u.a.node.isRequired}).isRequired,tooltipProps:u.a.object.isRequired}}).call(this,n(2))},214:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return new Array(null!=e?e:0).fill().map((function(e,t){return t}))}},24:function(e,t,n){"use strict";(function(e){var r=n(25),i=n.n(r),a=n(26),o=n.n(a),c=n(1),s=n.n(c),l=n(8),u=n.n(l),d=n(0);function Link(t){var n=t.href,r=t.children,a=t.className,c=t.arrow,s=t.external,l=t.hideExternalIndicator,f=t.inverse,p=t.back,g=t.small,m=t.inherit,h=t.caps,v=t.danger,b=t.disabled,k=t["aria-label"],y=o()(t,["href","children","className","arrow","external","hideExternalIndicator","inverse","back","small","inherit","caps","danger","disabled","aria-label"]),_=n&&!b,E=_?"a":"button";return e.createElement(E,i()({className:u()("googlesitekit-cta-link",a,{"googlesitekit-cta-link--arrow":c,"googlesitekit-cta-link--external":s&&!l,"googlesitekit-cta-link--inverse":f,"googlesitekit-cta-link--back":p,"googlesitekit-cta-link--small":g,"googlesitekit-cta-link--inherit":m,"googlesitekit-cta-link--caps":h,"googlesitekit-cta-link--danger":v,"googlesitekit-cta-link--disabled":b}),href:_?n:void 0,target:_&&s?"_blank":void 0,rel:s?"noopener noreferrer":void 0,disabled:b,"aria-label":function(){var e=k;if(!s)return e;"string"==typeof r&&(e=e||r);var t=Object(d._x)("(opens in a new tab)","screen reader text","google-site-kit");return e?"".concat(e," ").concat(t):t}()},y),r)}Link.propTypes={dangerouslySetInnerHTML:s.a.shape({__html:s.a.string}),onClick:s.a.func,href:s.a.string,children:s.a.oneOfType([s.a.string.isRequired,s.a.array.isRequired,s.a.element.isRequired]),className:s.a.string,arrow:s.a.bool,external:s.a.bool,hideExternalIndicator:s.a.bool,inverse:s.a.bool,back:s.a.bool,small:s.a.bool,inherit:s.a.bool,caps:s.a.bool,danger:s.a.bool,disabled:s.a.bool},Link.defaultProps={dangerouslySetInnerHTML:void 0,onClick:null,href:"",className:"",arrow:!1,external:!1,hideExternalIndicator:!1,inverse:!1,back:!1,small:!1,inherit:!1,caps:!1,danger:!1,disabled:!1},t.a=Link}).call(this,n(2))},243:function(e,t,n){"use strict";(function(e){var r=n(2),i=n(4),a=n.n(i),o=n(287),c=n(308),s=n(309),l=n(310),u=n(12),d=n(82),f=a.a.useSelect;t.a=function Header(t){var n=t.children,i=Object(d.a)("storeErrorNotifications"),a=f((function(e){return e(u.a).isAuthenticated()}));return e.createElement(r.Fragment,null,e.createElement("header",{className:"googlesitekit-header"},e.createElement("section",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" googlesitekit-header__logo mdc-layout-grid__cell mdc-layout-grid__cell--align-middle mdc-layout-grid__cell--span-1-phone mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement(o.a,null)),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-middle mdc-layout-grid__cell--align-right-phone mdc-layout-grid__cell--span-3-phone mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop "},n,a&&e.createElement(c.a,null))))),e.createElement(s.a,null),i&&e.createElement(l.a,null))}}).call(this,n(2))},244:function(e,t,n){"use strict";(function(e){var r=n(11),i=n.n(r),a=n(327),o=n(2),c=n(109),s=n(0),l=n(43),u=n(311),d=n(175),f=n(172),p=n(173);t.a=function HelpMenu(t){var n=t.children,r=Object(o.useState)(!1),g=i()(r,2),m=g[0],h=g[1],v=Object(o.useRef)();Object(a.a)(v,(function(){return h(!1)})),Object(p.a)([c.c,c.d],v,(function(){return h(!1)}));var b=Object(o.useCallback)((function(){h(!m)}),[m]),k=Object(o.useCallback)((function(){h(!1)}),[]);return e.createElement("div",{ref:v,className:"googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu googlesitekit-help-menu mdc-menu-surface--anchor"},e.createElement(l.a,{"aria-controls":"googlesitekit-help-menu","aria-expanded":m,"aria-label":Object(s.__)("Open Help menu","google-site-kit"),"aria-haspopup":"menu",className:"googlesitekit-header__dropdown googlesitekit-help-menu__button googlesitekit-margin-right-0 mdc-button--dropdown",icon:e.createElement(u.a,{width:"20",height:"20"}),onClick:b,text:!0}),e.createElement(f.a,{className:"googlesitekit-width-auto",menuOpen:m,id:"googlesitekit-help-menu",onSelected:k},n,e.createElement(d.a,{gaEventLabel:"fix_common_issues",href:"https://sitekit.withgoogle.com/documentation/fix-common-issues/"},Object(s.__)("Fix common issues","google-site-kit")),e.createElement(d.a,{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/"},Object(s.__)("Read help docs","google-site-kit")),e.createElement(d.a,{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/"},Object(s.__)("Get support","google-site-kit"))))}}).call(this,n(2))},246:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserInputSettings}));var r=n(1),i=n.n(r),a=n(294),o=n(0),c=n(4),s=n.n(c),l=n(46),u=n(5),d=n(12),f=n(20),p=n(286),g=s.a.useSelect;function UserInputSettings(t){var n=t.onCTAClick,r=t.onDismiss,i=t.isDismissable,c=Object(a.a)(UserInputSettings),s=g((function(e){return e(f.c).getAdminURL("googlesitekit-user-input")}));return"completed"===g((function(e){return e(d.a).getUserInputState()}))?null:e.createElement(l.a,{id:"user-input-settings-notification-".concat(c),className:"googlesitekit-user-input__notification",title:Object(o.__)("Customize Site Kit to match your goals","google-site-kit"),description:Object(o.__)("Answer 5 questions and Site Kit will customize your dashboard with specific metrics and opportunities that match your site’s goals","google-site-kit"),format:"large",dismissExpires:3*Object(u.l)("hour"),ctaLink:s,ctaLabel:Object(o.__)("Let’s go","google-site-kit"),onCTAClick:n,dismiss:Object(o.__)("Remind me later","google-site-kit"),WinImageSVG:p.a,isDismissable:i,onDismiss:r})}UserInputSettings.propTypes={onCTAClick:i.a.func,onDismiss:i.a.func,isDismissable:i.a.bool}}).call(this,n(2))},277:function(e,t,n){"use strict";(function(e){var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(15),s=n.n(c),l=n(16),u=n.n(l),d=n(21),f=n.n(d),p=n(22),g=n.n(p),m=n(13),h=n.n(m),v=n(2),b=n(0),k=n(182),y=n(46);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g()(this,n)}}var E=function(t){f()(DashboardCoreSiteAlerts,t);var n,r=_(DashboardCoreSiteAlerts);function DashboardCoreSiteAlerts(e){var t;return s()(this,DashboardCoreSiteAlerts),(t=r.call(this,e)).state={notifications:!1},t}return u()(DashboardCoreSiteAlerts,[{key:"componentDidMount",value:(n=o()(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(k.c)();case 3:t=e.sent,this.setState({notifications:t}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.warn("Error caught while fetching notifications",e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return n.apply(this,arguments)})},{key:"render",value:function(){var t=this.state.notifications;return Array.isArray(t)?t.map((function(t){return e.createElement(y.a,{key:t.id,id:t.id,title:t.title||"",description:t.content||"",learnMoreURL:t.learnMoreURL||"",learnMoreLabel:t.learnMoreLabel||"",ctaLink:t.ctaURL||"",ctaLabel:t.ctaLabel||"",ctaTarget:t.ctaTarget||"",dismiss:t.dismissLabel||Object(b.__)("OK, Got it!","google-site-kit"),isDismissable:t.dismissible,onCTAClick:o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(k.a)(t.id);case 2:case"end":return e.stop()}}),e)}))),onDismiss:o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(k.b)(t.id);case 2:case"end":return e.stop()}}),e)})))})})):null}}]),DashboardCoreSiteAlerts}(v.Component);t.a=E}).call(this,n(2))},278:function(e,t,n){"use strict";(function(e,r){var i=n(15),a=n.n(i),o=n(16),c=n.n(o),s=n(21),l=n.n(s),u=n(22),d=n.n(u),f=n(13),p=n.n(f),g=n(2),m=n(0),h=n(17),v=n(5),b=n(46),k=n(279),y=n(280),_=n(281);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}var O=function(t){l()(DashboardSetupAlerts,t);var n=E(DashboardSetupAlerts);function DashboardSetupAlerts(){return a()(this,DashboardSetupAlerts),n.apply(this,arguments)}return c()(DashboardSetupAlerts,[{key:"render",value:function(){var t=Object(v.j)("notification");if(!t||""===t)return null;var n={id:"connected-successfully",setupTitle:Object(m.__)("Site Kit","google-site-kit"),description:Object(m.__)("Now you’ll be able to see how your site is doing in search. To get even more detailed stats, activate more modules. Here are our recommendations for what to include in your Site Kit:","google-site-kit"),learnMore:{label:"",url:"",description:""}},i=e._googlesitekitLegacyData.permissions.canManageOptions;switch(t){case"authentication_success":if(!i)return null;var a=Object(v.i)(),o=Object(v.j)("slug");return o&&a[o]&&!a[o].active?null:(o&&a[o]&&(n.id="".concat(n.id,"-").concat(o),n.setupTitle=a[o].name,n.description=Object(m.__)("Here are some other services you can connect to see even more stats:","google-site-kit"),n=Object(h.c)("googlesitekit.SetupWinNotification-".concat(o),n)),r.createElement(g.Fragment,null,r.createElement(b.a,{id:n.id
6
  /* translators: %s: the name of a module that setup was completed for */,title:Object(m.sprintf)(Object(m.__)("Congrats on completing the setup for %s!","google-site-kit"),n.setupTitle),description:n.description,handleDismiss:function(){},WinImageSVG:y.a,dismiss:Object(m.__)("OK, Got it!","google-site-kit"),format:"large",type:"win-success",learnMoreLabel:n.learnMore.label,learnMoreDescription:n.learnMore.description,learnMoreURL:n.learnMore.url,anchorLink:"pagespeed-insights"===o?"#googlesitekit-pagespeed-header":"",anchorLinkLabel:"pagespeed-insights"===o?Object(m.__)("Jump to the bottom of the dashboard to see how fast your home page is","google-site-kit"):""},r.createElement(k.a,{moduleSlugs:["search-console","adsense","analytics","pagespeed-insights"]}))));case"authentication_failure":return r.createElement(g.Fragment,null,r.createElement(b.a,{id:"connection error",title:Object(m.__)("There was a problem connecting to Google!","google-site-kit"),description:"",handleDismiss:function(){},format:"small",type:"win-error"}));case"user_input_success":return r.createElement(_.a,null)}}}]),DashboardSetupAlerts}(g.Component);t.a=O}).call(this,n(18),n(2))},279:function(e,t,n){"use strict";(function(e){var r=n(6),i=n.n(r),a=n(7),o=n.n(a),c=n(14),s=n.n(c),l=n(8),u=n.n(l),d=n(2),f=n(0),p=n(5),g=n(4),m=n.n(g),h=n(24),v=n(137),b=n(155),k=n(120),y=n(141),_=n(31),E=n(54);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S=m.a.useSelect,w=m.a.useDispatch;t.a=function ModulesList(t){var n=t.moduleSlugs,r=w(_.a).activateModule,a=w(E.a).navigateTo,c=S((function(e){return e(_.a).getModules()})),l=Object(d.useCallback)(function(){var e=s()(o.a.mark((function e(t){var n,i,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(t);case 2:if(n=e.sent,i=n.response,!(c=n.error)){e.next=8;break}return Object(p.u)(b.a,{id:"setup-module-error",title:Object(f.__)("Internal Server Error","google-site-kit"),description:c.message,format:"small",type:"win-error"}),e.abrupt("return",null);case 8:return e.next=10,Object(p.w)("".concat(t,"_setup"),"module_activate",t);case 10:a(i.moduleReauthURL);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[r,a]);if(!c)return null;var g=Array.isArray(n)&&n.length?n.filter((function(e){return c.hasOwnProperty(e)})).reduce((function(e,t){return j(j({},e),{},i()({},t,c[t]))}),{}):c,m=Object.values(g).filter((function(e){return!e.internal&&0===e.dependencies.length})).sort((function(e,t){return e.order-t.order}));return e.createElement("div",{className:"googlesitekit-modules-list"},m.map((function(t){var n=t.slug,r=t.name,i=t.connected,a=t.active,o=i&&a;return e.createElement("div",{key:n,className:u()("googlesitekit-modules-list__module","googlesitekit-modules-list__module--".concat(n))},e.createElement("div",{className:"googlesitekit-settings-connect-module__wrapper"},e.createElement("div",{className:"googlesitekit-settings-connect-module__logo"},e.createElement(v.a,{slug:n})),e.createElement("h3",{className:"googlesitekit-settings-connect-module__title"},r)),e.createElement(k.a,{slug:n,context:"modules-list"}),o&&e.createElement("span",{className:"googlesitekit-settings-module__status"},e.createElement("span",{className:"googlesitekit-settings-module__status-icon googlesitekit-settings-module__status-icon--connected"},e.createElement(y.a,null,Object(f.__)("Connected","google-site-kit"))),Object(f.__)("Connected","google-site-kit")),!o&&e.createElement(h.a,{onClick:function(){return l(n)},arrow:!0,small:!0,inherit:!0},Object(f.__)("Connect Service","google-site-kit")))})))}}).call(this,n(2))},28:function(e,t,n){"use strict";var r=n(11),i=n.n(r),a=n(23),o=n(113),c=n(99),s=n(17),l=n(32),u=n(84),d=n(73),f=n(161),p=n(128),g=n(38),m=n(88);n.d(t,"a",(function(){return m.a})),n.d(t,"b",(function(){return m.b}));var h=n(134),v=n(171),b={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],l=25;Object(a.each)(e,(function(e){e.key=Object(g.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(g.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),l),l+=25):r.push(e)})),r=Object(a.sortBy)(r,"priority");var f=[],p=[],m={},h=!!r.find((function(e){return e.priority<10}));Object(a.each)(r,(function(e,t){!n&&10<=e.priority&&h?p.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],f.push(e))}));var v=10,b=f.slice(0,v),k=f.slice(v);if(k=k.concat(p),0!==b.length||0!==k.length){0<k.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(k,!0)}),50):this.maxRequests=10;var y=null!==Object(u.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:y||void 0}),data:{request:b},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=i()(e,2),a=n[0],o=n[1];if(m[a]){if(Object(d.d)(o)){var c=m[a][0],l=r[c],u=l.datapoint,f=l.type,p=l.identifier;t.handleWPError({method:"GET",datapoint:u,type:f,identifier:p,error:o})}else Object(g.f)(a,o);m[a].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===k.length&&Object(s.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+a)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(s.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,i=e.identifier,a=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(i),"datapoint:".concat(n),'error:"'.concat(a.message,'"')),Object(v.a)({method:t,datapoint:n,type:r,identifier:i,error:a});var o=a.data;if(o&&(o.reason||o.reconnectURL)){var c=0;["authError","insufficientPermissions"].includes(o.reason)&&(Object(s.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(l.b)(p.a),1),c++),o.reconnectURL&&(Object(s.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(l.b)(f.a),1),c++),c&&Object(s.b)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease",(function(e){return Object(s.g)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease"),e+c}))}},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:h.a,collectModuleData:function(e,t){var n=Object(s.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=Object(g.d)(e,t,n,i);if(!a){var l=Object(g.c)(s,3600);if(void 0!==l)return new Promise((function(e){e(l)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),i)}).then((function(e){return a||Object(g.f)(s,e),Promise.resolve(e)})).catch((function(i){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:i}),Promise.reject(i)}))},set:function(e,t,n,r){var i=this,a={};return a.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:a,method:"POST"}).then((function(r){return b.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return i.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(m.a,"modules","activation",{slug:e,active:t})}};Object(s.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(s.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",b.collectModuleData.bind(b)),t.c=b},280:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{stroke:"#E8EAED",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:6,d:"M200 10v31.42M105 35.46l15.71 27.2M35.46 105l27.2 15.71M10 200h31.42M35.46 295l27.2-15.71M364.54 295l-27.2-15.71M390 200h-31.42M364.54 105l-27.2 15.71M295 35.46l-15.71 27.2"}),o=r.createElement("path",{d:"M251.2 51.21c-.67-1 10.33-9.56 11.16-10.16 5.81-4.22 12.64-8 19.94-8.46 7.91-.53 15.45 2.58 23 4.58 10.31 2.77 21.44 3.8 32.09 1.69 9.59-1.9 20.83-5.9 27.87-12.93-.24.24.3 2.83.33 3.18a65.31 65.31 0 010 8.51 59.1 59.1 0 01-7 25.06 43.41 43.41 0 01-18.94 18.13C329.14 86 317.78 88.93 307 93.41c-6.7 2.79-18.11 7.23-18.11 16.07z",fill:"#F439A0"}),c=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M248.83 47.55l93.63 144.69"}),s=r.createElement("path",{d:"M279.89 172.88c18.52 6.68 53.35 9.87 64.53-10.87 14.77-27.39-23.47-38.52-43.87-34.53M88.94 145C13 233.15 70 296.93 119 267.62",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:9}),l=r.createElement("path",{d:"M234.54 260.65c59.23 111 7.37 98-23.53 93.23l2 20.19M186.58 274.6c31.93 144.76-28.4 65.93-35.58 53.33l-12.25 14.36",stroke:"#188038",strokeLinejoin:"round",strokeWidth:9}),u=r.createElement("path",{d:"M234.54 260.65q3.92 7.32 7.19 14M186.58 274.6q2.19 9.88 3.81 18.42",stroke:"#137333",strokeLinejoin:"round",strokeWidth:9}),d=r.createElement("path",{fill:"#1E8E3E",d:"M170.71 172.85l-98 39.35 39.35 98 98-39.35 98-39.35-39.35-98-98 39.35z"}),f=r.createElement("path",{d:"M158.45 268.63c-16.25 2.37-32.52-5.2-43.75-18.63l83.92-22.8",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6}),p=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M316.62 152.31l25.84 39.93"});t.a=function SvgSuccessGreen(e){return r.createElement("svg",i({viewBox:"0 0 400 400",fill:"none"},e),a,o,c,s,l,u,d,f,p)}},281:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserInputSuccessNotification}));var r=n(0),i=n(2),a=n(46),o=n(282),c=n(5);function UserInputSuccessNotification(){Object(i.useEffect)((function(){Object(c.w)("user_input","success_notification_view")}),[]);return e.createElement(a.a,{id:"user-input-success",title:Object(r.__)("Congrats! You set your site goals","google-site-kit"),description:Object(r.__)("Now Site Kit will begin suggesting metrics to add to your dashboard that are relevant specifically to you, based on the goals you shared","google-site-kit"),SmallImageSVG:o.a,dismiss:Object(r.__)("OK, got it!","google-site-kit"),format:"small",onDismiss:function(){Object(c.w)("user_input","success_notification_dismiss")}})}}).call(this,n(2))},282:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("path",{d:"M154.32 135.43c-10.56 8.65-20.59 16.68-30.15 23.63-5.07 3.7-14.21-1.31-15.28-8.16-1.86-12.85-3-26.17-3.63-39.8-12.15-7.93-24.13-15.53-35.44-22.35-6.11-3.63-4.22-12.48 3-15.39 13.28-5.23 26.64-10.44 40-15.38 4.23-13.83 8.45-27.77 12.11-41.4 2-7.39 10.41-8.93 14.89-2.73 8.25 11.45 17.13 23 26 34.42 14.22-.1 28.56 0 42.84.22 7.73.18 12.64 7.79 8.2 13.35-8.15 10.38-16.67 21.73-25.21 33.45 4.25 13 7.89 25.84 10.7 38.51 1.43 6.79-5.34 14.71-11.39 13-11.49-3.06-23.71-7.03-36.64-11.37z",fill:"#FBBC04"}),c=r.createElement("path",{d:"M205.44 73.7c10.67 26.59 20.64 47.74 16.58 76.8-4.67 33.43-33.31 70.54-68.1 75.46-17.34 2.45-35.57-2.42-47.85-15-12-12.26-18.78-29.18-21.81-45.85-3.25-17.94-2.2-36.87 3.91-54.11a77.26 77.26 0 014.71-10.76",stroke:"#4285F4",strokeLinecap:"square",strokeLinejoin:"round",strokeWidth:6}),s=r.createElement("g",{clipPath:"url(#milestone-blue_svg__clip0)",strokeLinejoin:"round",strokeWidth:6},r.createElement("path",{d:"M151.73 225.81L144 246.63a35.18 35.18 0 00.07 24.7l6.51 12.51h-8.34",stroke:"#1967D2"}),r.createElement("path",{stroke:"#185ABC",d:"M151.73 225.81l-5.6 15.04"}),r.createElement("path",{stroke:"#1967D2",d:"M164.04 231.67v52.17h7.76"}),r.createElement("path",{stroke:"#185ABC",d:"M164.04 221.67v20.1"})),l=r.createElement("path",{d:"M161.08 235.06a36.17 36.17 0 0026.08-44L117.07 209a36.17 36.17 0 0044.01 26.06z",fill:"#1A73E8"}),u=r.createElement("path",{d:"M142.64 217.51c5.53 7.83 16.11 10.61 24.45 1.64M145.07 215.59c-2.58.66-2.41 3.54-5.51 4.88",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:3}),d=r.createElement("path",{stroke:"#FEEFC3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:6,d:"M101.3 47.04L75.8 22.68M60.45 68.72l-34.37-6.91M208.28 22.68l-18.86 17.87M265.17 73.7l-32.36 3.02M66.15 109.02l-49.01 15.36"}),f=r.createElement("defs",null,r.createElement("clipPath",{id:"milestone-blue_svg__clip0"},r.createElement("circle",{cx:150,cy:150,r:100})));t.a=function SvgMilestoneBlue(e){return r.createElement("svg",i({viewBox:"0 0 300 300",fill:"none"},e),a,o,c,s,l,u,d,f)}},283:function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),a=n(16),o=n.n(a),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(13),f=n.n(d),p=n(23),g=n(2),m=n(0),h=n(5),v=n(46),b=n(164),k=n(284);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u()(this,n)}}var _=function(t){s()(DashboardModulesAlerts,t);var n=y(DashboardModulesAlerts);function DashboardModulesAlerts(e){var t;return i()(this,DashboardModulesAlerts),(t=n.call(this,e)).state={data:!1},t}return o()(DashboardModulesAlerts,[{key:"componentDidMount",value:function(){var e=this,t=Object(b.e)();t&&Object(b.b)(t).then((function(t){e.setState({data:t.results})}))}},{key:"render",value:function(){var t=this.state.data;if(0===Object.keys(t).length)return null;var n=Object(h.i)(),r=[];return Object.keys(t).forEach((function(i){Object(p.each)(t[i],(function(t){r.push(e.createElement(v.a,{key:t.id,id:t.id,title:t.title||"",description:t.description||"",blockData:t.blockData||[],WinImageSVG:function WinImageSVG(){return e.createElement(k.a,{height:"136"})},format:t.format||"small",learnMoreURL:t.learnMoreURL||"",learnMoreDescription:t.learnMoreDescription||"",learnMoreLabel:t.learnMoreLabel||"",ctaLink:t.ctaURL||"",ctaLabel:t.ctaLabel||"",ctaTarget:t.ctaTarget||"",type:t.severity||"",dismiss:t.dismiss||Object(m.__)("OK, Got it!","google-site-kit"),isDismissable:t.isDismissable||!0,logo:t.logo||!0,module:i,moduleName:n[i].name,pageIndex:t.pageIndex||"",dismissExpires:t.dismissExpires||0,showOnce:t.showOnce||!1}))}))})),e.createElement(g.Fragment,null,r)}}]),DashboardModulesAlerts}(g.Component);t.a=_}).call(this,n(2))},284:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("g",{clipPath:"url(#notification-alert_svg__clip0)",strokeMiterlimit:10,strokeWidth:15},r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15s44.18-11.1 65.14-20.18c9.91-4.3 20.07-8.62 30.85-9.31s22.46 2.9 28.7 11.71a24 24 0 013.78 17.65",stroke:"#4285F4"}),r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15",stroke:"#1A73E8"})),c=r.createElement("path",{stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33l-67.86 256.23"}),s=r.createElement("path",{stroke:"#A50E0E",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33L193.97 150"}),l=r.createElement("path",{d:"M221.3 13l-94.69 95.2a10 10 0 004.53 16.72L261 159.3a10 10 0 0012.18-12.3L238 17.39A10 10 0 00221.3 13z",fill:"#D93025"}),u=r.createElement("path",{d:"M137.37 111.56l87.36-87.87a3 3 0 015 1.33l32.42 119.6a3 3 0 01-3.66 3.68l-119.76-31.72a3 3 0 01-1.36-5.02z",stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:2}),d=r.createElement("path",{d:"M196.78 118.35a7.38 7.38 0 01-.78-5.84 7.25 7.25 0 013.56-4.64 7.46 7.46 0 015.83-.73 7.51 7.51 0 015.4 9.29 7.51 7.51 0 01-3.52 4.7 7.27 7.27 0 01-5.8.8 7.44 7.44 0 01-4.69-3.58zm12.05-46.1l5.56-21 10.82 2.87-5.55 21-8 25.41-8.6-2.28z",fill:"#FFF"}),f=r.createElement("path",{d:"M198.47 181.73a23.18 23.18 0 01-8.2 14.28c-9.2 7.58-24.24 6.67-32.46-2",stroke:"#4285F4",strokeMiterlimit:10,strokeWidth:15}),p=r.createElement("defs",null,r.createElement("clipPath",{id:"notification-alert_svg__clip0"},r.createElement("circle",{cx:150,cy:150,r:100})));t.a=function SvgNotificationAlert(e){return r.createElement("svg",i({viewBox:"0 0 300 300",fill:"none"},e),a,o,c,s,l,u,d,f,p)}},285:function(e,t,n){"use strict";(function(e){var r=n(2),i=n(5),a=n(246);t.a=function UserInputPromptNotification(){Object(r.useEffect)((function(){Object(i.w)("user_input","prompt_notification_view")}),[]);return e.createElement(a.a,{isDismissable:!0,onCTAClick:function(){Object(i.w)("user_input","prompt_notification_start")},onDismiss:function(){Object(i.w)("user_input","prompt_notification_dismiss")}})}}).call(this,n(2))},286:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M294.5 39.35h244.69v251.12a7.5 7.5 0 01-7.5 7.5H302a7.5 7.5 0 01-7.5-7.5V39.35z",fill:"#F1F3F4"}),o=r.createElement("path",{fill:"#FFF",stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:1.5,d:"M314.5 68.28h45.25v45.25H314.5zM314.5 146.04h45.25v45.25H314.5z"}),c=r.createElement("path",{d:"M313.38 145.1c14.28 17.62 17.8 21.42 32.08 39",stroke:"#9AA0A6",strokeLinejoin:"round",strokeWidth:5}),s=r.createElement("path",{fill:"#FFF",stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:1.5,d:"M314.5 223.79h45.25v45.25H314.5z"}),l=r.createElement("ellipse",{cx:149.01,cy:322.24,rx:72.28,ry:7.51,fill:"#F1F3F4"}),u=r.createElement("path",{d:"M302 10h229.69a7.5 7.5 0 017.5 7.5v21.85H294.5V17.5A7.5 7.5 0 01302 10z",fill:"#80868B"}),d=r.createElement("circle",{cx:314.91,cy:24.68,r:5.32,fill:"#FFF"}),f=r.createElement("circle",{cx:336.18,cy:24.68,r:5.32,fill:"#FFF"}),p=r.createElement("path",{d:"M232.78 231.28c42.24.91 55.06-20.59 39.78-70.34",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:8.03}),g=r.createElement("path",{d:"M158.93 241.76c-2.23 25.53-1.22 59.63 6.93 80.6H184M126.69 241.76c-2.29 25-.62 58.69 6.93 80.6H116.8",stroke:"#188038",strokeLinejoin:"round",strokeWidth:8.03}),m=r.createElement("path",{d:"M158.93 241.76a244.31 244.31 0 00-1 26.13M126.69 241.76c-.57 6.24-.9 17.52-1 23.59",stroke:"#137333",strokeLinejoin:"round",strokeWidth:8.03}),h=r.createElement("path",{d:"M36.83 277.33c-9.72-9.09-13.91-26.06-8.22-38.36 4.92-10.64 20.49-22.29 31.69-23.47",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:8.03}),v=r.createElement("path",{fill:"#1E8E3E",d:"M151.1 160.94l93.85 6.87-6.87 93.85-93.85-6.87-93.85-6.87 6.87-93.85 93.85 6.87z"}),b=r.createElement("path",{d:"M181.25 219.25c-18.11 15.64-48.49 18.13-68.47-5",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5.74}),k=r.createElement("path",{stroke:"#DADCE0",strokeLinejoin:"round",strokeWidth:20,d:"M380.07 90.91h139.12M380.07 168.66h139.12M380.07 246.42h139.12"}),y=r.createElement("path",{fill:"#FBBC04",d:"M319.603 184.523l-155.3-70.055 8.98-19.908 155.3 70.055z"}),_=r.createElement("path",{fill:"#DADCE0",d:"M328.59 164.62l25.17 22.94-34.15-3.03 8.98-19.91z"}),E=r.createElement("path",{fill:"#5F6368",d:"M344.35 186.72l9.41.84-6.92-6.29-2.49 5.45z"}),O=r.createElement("path",{d:"M164.22 114.43h.09L175 119.3l9-19.91-10.7-4.84h-.09a10.92 10.92 0 00-9 19.91z",fill:"#EE675C"}),j=r.createElement("path",{fill:"#DADCE0",d:"M176.772 120.092l-4.557-2.056 8.984-19.917 4.558 2.056z"}),S=r.createElement("path",{stroke:"#F29900",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:4,d:"M318.21 172.07l-130.15-58.71"}),w=r.createElement("path",{d:"M307.33 65.64a267 267 0 0064.05 58M312.39 117.93l40.77-54.45",stroke:"#9AA0A6",strokeLinejoin:"round",strokeWidth:5});t.a=function SvgUserInputPrompt(e){return r.createElement("svg",i({viewBox:"0 0 570 336",fill:"none"},e),a,o,c,s,l,u,d,f,p,g,m,h,v,b,k,y,_,E,O,j,S,w)}},287:function(e,t,n){"use strict";(function(e){var r=n(0),i=n(144),a=n(288),o=n(141);t.a=function Logo(){return e.createElement("div",{className:"googlesitekit-logo","aria-hidden":"true"},e.createElement(i.a,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),e.createElement(a.a,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),e.createElement(o.a,null,Object(r.__)("Site Kit by Google Logo","google-site-kit")))}}).call(this,n(2))},288:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M62.09 1.664h3.038v.1L58.34 9.593l7.241 10.224v.1H62.7L56.755 11.4 53.95 14.64v5.278h-2.351V1.664h2.35v9.415h.1l8.04-9.415zM69.984 3.117c0 .454-.166.853-.487 1.175-.322.322-.71.488-1.176.488-.455 0-.854-.166-1.175-.488a1.599 1.599 0 01-.488-1.175c0-.466.166-.854.488-1.176.321-.322.71-.488 1.175-.488.455 0 .854.166 1.176.488.332.333.487.72.487 1.176zm-.476 4.313v12.498h-2.351V7.43h2.35zM77.016 20.128c-1.02 0-1.864-.31-2.54-.943-.676-.632-1.02-1.508-1.031-2.628V9.57h-2.196V7.43h2.196V3.603h2.35V7.43h3.061v2.14h-3.06v6.222c0 .831.166 1.397.488 1.696.321.3.687.444 1.097.444.189 0 .366-.022.555-.067.188-.044.344-.1.499-.166l.743 2.096c-.632.222-1.342.333-2.162.333zM2.673 18.952C1.375 18.009.488 16.678 0 14.97l2.883-1.176c.289 1.076.799 1.94 1.542 2.628.732.677 1.619 1.02 2.65 1.02.965 0 1.774-.244 2.45-.742.677-.5 1.01-1.187 1.01-2.052 0-.798-.3-1.453-.887-1.974-.588-.521-1.62-1.042-3.094-1.564l-1.22-.432C4.025 10.224 2.928 9.57 2.04 8.716 1.153 7.862.71 6.742.71 5.346c0-.966.266-1.853.787-2.673C2.018 1.852 2.75 1.209 3.693.72 4.624.244 5.678 0 6.864 0c1.708 0 3.072.41 4.081 1.242 1.02.832 1.697 1.752 2.04 2.795L10.236 5.2c-.2-.621-.576-1.164-1.142-1.63-.565-.477-1.286-.71-2.173-.71s-1.641.222-2.251.676c-.61.455-.91 1.032-.91 1.742 0 .676.278 1.22.82 1.663.544.432 1.398.854 2.563 1.253l1.22.41c1.674.577 2.96 1.342 3.88 2.274.921.931 1.376 2.184 1.376 3.748 0 1.275-.322 2.34-.976 3.193a6.01 6.01 0 01-2.495 1.919 8.014 8.014 0 01-3.116.621c-1.62 0-3.072-.466-4.358-1.408zM15.969 3.449a1.95 1.95 0 01-.588-1.43c0-.566.2-1.043.588-1.431A1.95 1.95 0 0117.399 0c.566 0 1.043.2 1.43.588.389.388.588.865.588 1.43 0 .566-.2 1.043-.587 1.43a1.95 1.95 0 01-1.43.589c-.566-.012-1.043-.2-1.431-.588zm-.067 2.595h2.994v13.883h-2.994V6.044zM25.405 19.85c-.543-.2-.986-.466-1.33-.788-.776-.776-1.176-1.84-1.176-3.182V8.683h-2.428v-2.64h2.428V2.13h2.994v3.926h3.372v2.639h-3.372v6.531c0 .743.145 1.276.433 1.575.277.366.743.543 1.42.543.31 0 .576-.044.82-.122.233-.077.488-.21.765-.399v2.917c-.599.277-1.32.41-2.173.41a5.01 5.01 0 01-1.753-.3zM33.623 19.407a6.63 6.63 0 01-2.529-2.628c-.61-1.12-.909-2.373-.909-3.77 0-1.332.3-2.551.887-3.693.588-1.132 1.409-2.04 2.462-2.706 1.053-.666 2.251-1.01 3.593-1.01 1.397 0 2.606.311 3.637.921a6.123 6.123 0 012.34 2.528c.532 1.076.799 2.274.799 3.627 0 .255-.023.576-.078.953H33.179c.111 1.287.566 2.285 1.375 2.983a4.162 4.162 0 002.817 1.043c.854 0 1.597-.189 2.218-.588a4.266 4.266 0 001.508-1.597l2.528 1.198c-.654 1.142-1.508 2.04-2.561 2.694-1.054.655-2.318.976-3.782.976-1.364.022-2.584-.288-3.66-.931zm7.23-8.051a3.332 3.332 0 00-.466-1.453c-.277-.477-.687-.887-1.242-1.208-.554-.322-1.23-.488-2.03-.488-.964 0-1.773.288-2.439.853-.665.566-1.12 1.342-1.375 2.296h7.552z",fill:"#5F6368"});t.a=function SvgLogoSitekit(e){return r.createElement("svg",i({viewBox:"0 0 80 21",fill:"none"},e),a)}},308:function(e,t,n){"use strict";(function(e,r){var i=n(11),a=n.n(i),o=n(327),c=n(2),s=n(0),l=n(109),u=n(4),d=n.n(u),f=n(5),p=n(156),g=n(43),m=n(172),h=n(159),v=n(20),b=n(12),k=n(54),y=n(173),_=d.a.useSelect,E=d.a.useDispatch;t.a=function UserMenu(){var t=_((function(e){return e(v.c).getProxyPermissionsURL()})),n=_((function(e){return e(b.a).getEmail()})),i=_((function(e){return e(b.a).getPicture()})),u=_((function(e){return e(v.c).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})})),d=Object(c.useState)(!1),O=a()(d,2),j=O[0],S=O[1],w=Object(c.useState)(!1),C=a()(w,2),N=C[0],x=C[1],D=Object(c.useRef)(),L=E(k.a).navigateTo;Object(o.a)(D,(function(){return x(!1)})),Object(y.a)([l.c,l.d],D,(function(){return x(!1)})),Object(c.useEffect)((function(){var t=function(e){l.c===e.keyCode&&(S(!1),x(!1))};return e.addEventListener("keyup",t),function(){e.removeEventListener("keyup",t)}}),[]);var R=Object(c.useCallback)((function(){x(!N)}),[N]),M=Object(c.useCallback)((function(){S(!j),x(!1)}),[j]),P=Object(c.useCallback)((function(e){switch(e){case 0:M();break;case 1:t&&L(t);break;default:R()}}),[t,R,M,L]),A=Object(c.useCallback)((function(){S(!1),Object(f.b)(),L(u)}),[u,L]);return n?r.createElement(c.Fragment,null,r.createElement("div",{ref:D,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor"},r.createElement(g.a,{className:"googlesitekit-header__dropdown mdc-button--dropdown",text:!0,onClick:R,icon:!!i&&r.createElement("i",{className:"mdc-button__icon","aria-hidden":"true"},r.createElement("img",{className:"mdc-button__icon--image",src:i,alt:Object(s.__)("User Avatar","google-site-kit")})),"aria-haspopup":"menu","aria-expanded":N,"aria-controls":"user-menu"},n),r.createElement(m.a,{className:"googlesitekit-width-auto",menuOpen:N,menuItems:[Object(s.__)("Disconnect","google-site-kit")].concat(t?[Object(s.__)("Manage sites…","google-site-kit")]:[]),onSelected:P,id:"user-menu"})),r.createElement(h.a,null,r.createElement(p.a,{dialogActive:j,handleConfirm:A,handleDialog:M,title:Object(s.__)("Disconnect","google-site-kit"),subtitle:Object(s.__)("Disconnecting Site Kit by Google will remove your access to all services. After disconnecting, you will need to re-authorize to restore service.","google-site-kit"),confirmButton:Object(s.__)("Disconnect","google-site-kit"),danger:!0}))):null}}).call(this,n(18),n(2))},309:function(e,t,n){"use strict";var r=n(15),i=n.n(r),a=n(16),o=n.n(a),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(13),f=n.n(d),p=n(150),g=n(2);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u()(this,n)}}var h=function(e){s()(ErrorNotification,e);var t=m(ErrorNotification);function ErrorNotification(){return i()(this,ErrorNotification),t.apply(this,arguments)}return o()(ErrorNotification,[{key:"render",value:function(){return null}}]),ErrorNotification}(g.Component);t.a=Object(p.a)("googlesitekit.ErrorNotification")(h)},31:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="core/modules",i="insufficient_module_dependencies"},310:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ErrorNotifications}));var r=n(2),i=n(161),a=n(128);function ErrorNotifications(){return e.createElement(r.Fragment,null,e.createElement(i.a,null),e.createElement(a.a,null))}}).call(this,n(2))},311:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M9 16h2v-2H9v2zm1-16C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14C7.79 4 6 5.79 6 8h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z",fill:"currentColor"});t.a=function SvgHelp(e){return r.createElement("svg",i({viewBox:"0 0 20 20",fill:"none"},e),a)}},32:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(25),i=n.n(r),a=n(2),o=function(e){return function(t){return function FilteredComponent(n){return Object(a.createElement)(a.Fragment,{},"",Object(a.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(a){return e.createElement(t,i()({},a,n,{OriginalComponent:r}))}}}}).call(this,n(2))},334:function(e,t,n){"use strict";(function(e,t){var r=n(17),i=n(56),a=n(32),o=n(5),c=n(277),s=n(278),l=n(283),u=n(285),d=n(128),f=e._googlesitekitLegacyData.setup,p=Object(o.j)("notification"),g=Object(a.a)(t.createElement(c.a,null)),m=Object(a.a)(t.createElement(s.a,null)),h=Object(a.a)(t.createElement(l.a,null)),v=Object(a.a)(t.createElement(u.a,null)),b=Object(a.a)(t.createElement(d.a,null));Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",g,10),f.needReauthenticate&&Object(r.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",b,1),Object(i.b)("userInput")&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.UserInputSettings",v,1),"authentication_success"===p||"authentication_failure"===p||"user_input_success"===p?Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",m,1):f.isAuthenticated&&f.isVerified&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.ModulesNotification",h,1)}).call(this,n(18),n(2))},338:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return m}));var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(51),s=n.n(c),l=n(20),u=n(169),d=function(){var t=o()(i.a.mark((function t(){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.location.hostname,!["localhost","127.0.0.1"].includes(n)&&!n.match(/\.(example|invalid|localhost|test)$/)){t.next=3;break}throw u.f;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=function(e){return o()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(l.c).checkForSetupTag();case 2:if(!t.sent.error){t.next=5;break}throw u.g;case 5:case"end":return t.stop()}}),t)})))},p=function(){var e=o()(i.a.mark((function e(){var t,n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.get("core","site","health-checks",void 0,{useCache:!1}).catch((function(e){if("fetch_error"===e.code)throw u.d;throw u.c}));case 2:if(null==(r=e.sent)||null===(t=r.checks)||void 0===t||null===(n=t.googleAPI)||void 0===n?void 0:n.pass){e.next=5;break}throw u.e;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(){var e=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(u.a).catch((function(){throw u.b}));case 2:if(e.sent.ok){e.next=5;break}throw u.b;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var t=o()(i.a.mark((function t(){var n,r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e._googlesitekitBaseData||{},!((r=n.wpVersion)&&r.major<5)){t.next=3;break}throw u.h;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}).call(this,n(18))},34:function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),a=n(16),o=n.n(a),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(13),f=n.n(d),p=n(1),g=n.n(p),m=n(8),h=n.n(m),v=n(2),b=n(195),k=n(196);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u()(this,n)}}var _=function(t){s()(Layout,t);var n=y(Layout);function Layout(){return i()(this,Layout),n.apply(this,arguments)}return o()(Layout,[{key:"render",value:function(){var t=this.props,n=t.header,r=t.footer,i=t.children,a=t.title,o=t.headerCTALabel,c=t.headerCTALink,s=t.footerCTALabel,l=t.footerCTALink,u=t.footerContent,d=t.className,f=t.fill,p=t.relative;return e.createElement("div",{className:h()("googlesitekit-layout",d,{"googlesitekit-layout--fill":f,"googlesitekit-layout--relative":p})},n&&e.createElement(b.a,{title:a,ctaLabel:o,ctaLink:c}),i,r&&e.createElement(k.a,{ctaLabel:s,ctaLink:l,footerContent:u}))}}]),Layout}(v.Component);_.propTypes={header:g.a.bool,footer:g.a.bool,children:g.a.node.isRequired,title:g.a.string,headerCTALabel:g.a.string,headerCTALink:g.a.string,footerCTALabel:g.a.string,footerCTALink:g.a.string,footerContent:g.a.node,className:g.a.string,fill:g.a.bool,relative:g.a.bool},_.defaultProps={header:!1,footer:!1,title:"",headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=_}).call(this,n(2))},344:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Checkbox}));var r=n(8),i=n.n(r),a=n(1),o=n.n(a);function Checkbox(t){var n=t.onChange,r=t.id,a=t.name,o=t.value,c=t.checked,s=t.disabled,l=t.children,u=t.tabIndex,d=t.onKeyDown;return e.createElement("div",{className:"mdc-form-field"},e.createElement("div",{className:i()("mdc-checkbox",{"mdc-checkbox--disabled":s})},e.createElement("input",{className:"mdc-checkbox__native-control",type:"checkbox",id:r,name:a,value:o,checked:c,disabled:s,onChange:n,tabIndex:u,onKeyDown:d}),e.createElement("div",{className:"mdc-checkbox__background"},e.createElement("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 24 24"},e.createElement("path",{className:"mdc-checkbox__checkmark-path",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})),e.createElement("div",{className:"mdc-checkbox__mixedmark"}))),e.createElement("label",{htmlFor:r},l))}Checkbox.propTypes={onChange:o.a.func.isRequired,onKeyDown:o.a.func,id:o.a.string.isRequired,name:o.a.string.isRequired,value:o.a.string.isRequired,checked:o.a.bool,disabled:o.a.bool,children:o.a.node.isRequired,tabIndex:o.a.oneOfType([o.a.number,o.a.string])},Checkbox.defaultProps={checked:!1,disabled:!1,tabIndex:void 0,onKeyDown:null}}).call(this,n(2))},350:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return OptIn}));var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(1),s=n.n(c),l=n(8),u=n.n(l),d=n(2),f=n(200),p=n(0),g=n(4),m=n.n(g),h=n(12),v=n(58),b=n(344),k=n(24),y=m.a.useSelect,_=m.a.useDispatch;function OptIn(t){var n=t.id,r=t.name,a=t.className,c=t.optinAction,s=y((function(e){return e(h.a).isTrackingEnabled()})),l=y((function(e){return e(h.a).isSavingTrackingEnabled()})),g=y((function(e){return e(h.a).getErrorForAction("setTrackingEnabled",[!s])})),m=_(h.a).setTrackingEnabled,E=Object(d.useCallback)(function(){var e=o()(i.a.mark((function e(t){var n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m(!!t.target.checked);case 2:n=e.sent,r=n.response,n.error||(Object(v.a)(r.enabled),r.enabled&&Object(v.b)("tracking_plugin",c));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[c,m]);return void 0===s?null:e.createElement("div",{className:u()("googlesitekit-opt-in",a)},e.createElement(b.a,{id:n,name:r,value:"1",checked:s,disabled:l,onChange:E},e.createElement("span",null,Object(p.__)("Help us improve Site Kit by sharing anonymous usage data.","google-site-kit")," "),e.createElement("span",null,Object(f.a)(Object(p.__)("All collected data is treated in accordance with the <a>Google Privacy Policy.</a>","google-site-kit"),{a:e.createElement(k.a,{key:"link",href:"https://policies.google.com/privacy",external:!0,inherit:!0})}))),(null==g?void 0:g.message)&&e.createElement("div",{className:"googlesitekit-error-text"},null==g?void 0:g.message))}OptIn.propTypes={id:s.a.string,name:s.a.string,className:s.a.string,optinAction:s.a.string},OptIn.defaultProps={id:"googlesitekit-opt-in",name:"optIn"}}).call(this,n(2))},364:function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),a=n(16),o=n.n(a),c=n(49),s=n.n(c),l=n(21),u=n.n(l),d=n(22),f=n.n(d),p=n(13),g=n.n(p),m=n(8),h=n.n(m),v=n(176),b=n(2),k=n(0),y=n(17),_=n(164),E=n(141);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var j=function(t){u()(NotificationCounter,t);var n=O(NotificationCounter);function NotificationCounter(e){var t;return i()(this,NotificationCounter),(t=n.call(this,e)).state={count:0},t.handleIncrement=t.handleIncrement.bind(s()(t)),t.handleDecrement=t.handleDecrement.bind(s()(t)),t}return o()(NotificationCounter,[{key:"componentDidMount",value:function(){var e=this;Object(y.a)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications",(function(){Object(y.f)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications"),Object(_.c)().then((function(t){e.setState({count:t})}))})),document.addEventListener("notificationDismissed",this.handleDecrement,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("notificationDismissed",this.handleDecrement)}},{key:"handleIncrement",value:function(){this.setState(_.d)}},{key:"handleDecrement",value:function(){this.setState(_.a)}},{key:"render",value:function(){var t=Object(k.sprintf)(
7
  /* translators: %d: the number of notifications */
8
+ Object(k._n)("%d notification","%d notifications",this.state.count,"google-site-kit"),this.state.count),n=e.createElement("span",{className:h()("googlesitekit-notifications-counter","update-plugins","count-".concat(this.state.count))},e.createElement("span",{className:"plugin-count","aria-hidden":"true"},this.state.count),e.createElement(E.a,null,t));return Object(v.createPortal)(n,document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"))}}]),NotificationCounter}(b.Component);t.a=j}).call(this,n(2))},373:function(e,t,n){"use strict";(function(e){var r=n(6),i=n.n(r),a=n(82);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(t){return function(n){return function(r){var o=Object(a.a)(t),s=c(c({},r),{},i()({},"".concat(t,"Enabled"),o));return n.displayName="withFeatureFlag(".concat(n.displayName||n.name||"Anonymous",")"),e.createElement(n,s)}}}}).call(this,n(2))},38:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return p}));var r=n(33),i=n.n(r),a=n(23),o=n(48),c=n(72),s="googlesitekit_legacy_1.34.1_",l=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==i()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==i()(n)||!n.error&&!n.errors)){l(),e._googlesitekitLegacyData.admin.datacache[t]=Object(a.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(s+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(l(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(s+t));return r&&"object"===i()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(a.cloneDeep)(r.value),Object(a.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},f=function(t){l(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(s+t)},p=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=[],o=[e,t,n],s=0,l=o;s<l.length;s++){var u=l[s];if(!u||!u.length)break;a.push(u)}return 3===a.length&&r&&"object"===i()(r)&&Object.keys(r).length&&a.push(Object(c.a)(r)),a.join("::")}}).call(this,n(18))},4:function(e,t){e.exports=googlesitekit.data},40:function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),a=n(16),o=n.n(a),c=n(49),s=n.n(c),l=n(21),u=n.n(l),d=n(22),f=n.n(d),p=n(13),g=n.n(p),m=n(1),h=n.n(m),v=n(8),b=n.n(v),k=n(2),y=n(0),_=n(67),E=n(78),O=n(5);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var S=function(t){u()(DataBlock,t);var n=j(DataBlock);function DataBlock(e){var t;return i()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(s()(t)),t.handleKeyPress=t.handleKeyPress.bind(s()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,i=t.datapoint,a=t.datapointUnit,o=t.change,c=t.changeDataUnit,s=t.context,l=t.period,u=t.selected,d=t.handleStatSelection,f=t.source,p=t.sparkline,g=t.invertChangeColor,m="button"===s?"button":"",h=p;h&&g&&(h=Object(k.cloneElement)(p,{invertChangeColor:g}));var v=o;c&&(v="%"===c?Object(O.r)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(O.r)(o,c)),l&&(v=Object(y.sprintf)(l,v));var j=i&&Object(O.r)(i,a||void 0);return e.createElement("div",{className:b()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(s),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===s?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},j)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:b()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(k.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(_.a,{direction:0<parseFloat(o)?"up":"down",invertColor:g})),e.createElement("span",{className:"googlesitekit-data-block__value"},v))),f&&e.createElement(E.a,{className:"googlesitekit-data-block__source",name:f.name,href:f.link,external:null==f?void 0:f.external})))}}]),DataBlock}(k.Component);S.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},S.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=S}).call(this,n(2))},411:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityChecks}));var r=n(26),i=n.n(r),a=n(0),o=n(1),c=n.n(o),s=n(4),l=n.n(s),u=n(170),d=n(64),f=n(412),p=n(413),g=n(20),m=n(338),h=l.a.useRegistry;function CompatibilityChecks(t){var n=t.children,r=i()(t,["children"]),o=h(),c=Object(f.a)(function(e){return e.select(g.c).isConnected()?[]:[m.c,m.b,Object(m.e)(e),m.a,m.d]}(o)),s=c.complete,l=c.error,v=l&&e.createElement("div",{className:"googlesitekit-setup-compat mdc-layout-grid mdc-layout-grid--align-left"},e.createElement("div",{className:"googlesitekit-setup__warning"},e.createElement(u.a,null),e.createElement("div",{className:"googlesitekit-heading-4"},Object(a.__)("Your site may not be ready for Site Kit","google-site-kit"))),e.createElement(p.a,{error:l}));return n({props:r,complete:s,error:l,inProgressFeedback:!s&&e.createElement("div",{className:"googlesitekit-margin-left-1rem googlesitekit-align-self-center"},e.createElement("small",null,Object(a.__)("Checking Compatibility…","google-site-kit")),e.createElement(d.a,{small:!0,compress:!0})),ctaFeedback:v})}CompatibilityChecks.propTypes={children:c.a.func.isRequired}}).call(this,n(2))},412:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(7),i=n.n(r),a=n(14),o=n.n(a),c=n(11),s=n.n(c),l=n(326),u=n(2);function d(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){var t=Object(u.useState)(e),n=s()(t,1)[0],r=Object(u.useState)(!(null==n?void 0:n.length)),a=s()(r,2),c=a[0],f=a[1],p=Object(u.useState)(void 0),g=s()(p,2),m=g[0],h=g[1];return Object(l.a)((function(){c||function(){var e=o()(i.a.mark((function e(){var t,r,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=d(n),e.prev=2,t.s();case 4:if((r=t.n()).done){e.next=10;break}return a=r.value,e.next=8,a();case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(0),h(e.t1);case 23:f(!0);case 24:case"end":return e.stop()}}),e,null,[[0,20],[2,12,15,18]])})));return function(){return e.apply(this,arguments)}}()()})),{complete:c,error:m}}},413:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityErrorNotice}));var r=n(25),i=n.n(r),a=n(0),o=n(4),c=n.n(o),s=n(75),l=n(24),u=n(20),d=n(169),f=c.a.useSelect;function CompatibilityErrorNotice(t){var n=t.error,r=f((function(e){return e(u.c).getDeveloperPluginState()}))||{},o=r.installed;switch(n){case d.c:return e.createElement("p",null,Object(a.__)("Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site.","google-site-kit"));case d.f:case d.d:return e.createElement("p",null,!o&&e.createElement("span",null,Object(a.__)("Looks like this may be a staging environment. If so, you’ll need to install a helper plugin and verify your production site in Search Console.","google-site-kit")),o&&e.createElement("span",null,Object(a.__)("Looks like this may be a staging environment and you already have the helper plugin. Before you can use Site Kit, please make sure you’ve provided the necessary credentials in the Authentication section and verified your production site in Search Console.","google-site-kit"))," ",e.createElement(l.a,i()({},function(e){var t=e.installed,n=e.active,r=e.installURL,i=e.activateURL,o=e.configureURL;return!t&&r?{"aria-label":Object(a.__)("Install the helper plugin","google-site-kit"),children:Object(a.__)("Install","google-site-kit"),href:r,external:!1}:t&&!n&&i?{"aria-label":Object(a.__)("Activate the helper plugin","google-site-kit"),children:Object(a.__)("Activate","google-site-kit"),href:i,external:!1}:t&&n&&o?{"aria-label":Object(a.__)("Configure the helper plugin","google-site-kit"),children:Object(a.__)("Configure","google-site-kit"),href:o,external:!1}:{"aria-label":Object(a.__)("Learn how to install and use the helper plugin","google-site-kit"),children:Object(a.__)("Learn how","google-site-kit"),href:"https://sitekit.withgoogle.com/documentation/using-site-kit-on-a-staging-environment/",external:!0}}(r),{inherit:!0})));case d.g:return e.createElement("p",null,Object(a.__)("Looks like you may be using a caching plugin which could interfere with setup. Please deactivate any caching plugins before setting up Site Kit. You may reactivate them once setup has been completed.","google-site-kit"));case d.e:return e.createElement("p",{dangerouslySetInnerHTML:Object(s.a)("\n\t\t\t\t\t\t".concat(Object(a.__)("Looks like your site is having a technical issue with requesting data from Google services.","google-site-kit"),"\n\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t").concat(Object(a.sprintf)(
9
  /* translators: %1$s: Support Forum URL, %2$s: Error message */
10
  Object(a.__)('To get more help, ask a question on our <a href="%1$s">support forum</a> and include the text of the original error message: %2$s',"google-site-kit"),"https://wordpress.org/support/plugin/google-site-kit/","<br/>".concat(n)),"\n\t\t\t\t\t\t"),{ALLOWED_TAGS:["a","br"],ALLOWED_ATTR:["href"]})});case d.b:return e.createElement("p",{dangerouslySetInnerHTML:Object(s.a)("\n\t\t\t\t\t\t".concat(Object(a.__)("Looks like the AMP CDN is restricted in your region, which could interfere with setup on the Site Kit service.","google-site-kit"),"\n\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t").concat(Object(a.sprintf)(
11
  /* translators: %1$s: Support Forum URL, %2$s: Error message */
32
  Object(u.__)("%sM","google-site-kit"),b(m(e),e%10==0?{}:t)):1e4<=e?Object(u.sprintf)(// translators: %s: an abbreviated number in thousands.
33
  Object(u.__)("%sK","google-site-kit"),b(m(e))):1e3<=e?Object(u.sprintf)(// translators: %s: an abbreviated number in thousands.
34
  Object(u.__)("%sK","google-site-kit"),b(m(e),e%10==0?{}:t)):b(e,{signDisplay:"never",maximumFractionDigits:1})},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(l.isFinite)(e)?e:Number(e),Object(l.isFinite)(e)||(console.warn("Invalid number",e,i()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return p(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(l.isPlainObject)(t)&&(n=f({},t))}var r=n,a=r.style,o=void 0===a?"metric":a;return"metric"===o?h(e):"duration"===o?p(e,t):b(e,n)},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?y():n,i=s()(t,["locale"]);return new Intl.NumberFormat(r,i).format(e)},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?y():n,i=t.style,a=void 0===i?"long":i,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:a,type:c});return s.format(e)}
35
+ /* translators: used between list items, there is a space after the comma. */var l=Object(u.__)(", ","google-site-kit");return e.join(l)},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(l.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(18))},88:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="core",i="modules"},89:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return b}));var r=n(7),i=n.n(r),a=n(14),o=n.n(a);n(37);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l,u="googlesitekit_".concat("1.34.1","_"),d=["sessionStorage","localStorage"],f=[].concat(d),p=function(){var t=o()(i.a.mark((function t(n){var r,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,a="__storage_test__",r.setItem(a,a),r.removeItem(a),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),g=function(){var t=o()(i.a.mark((function t(){var n,r,a,o,s;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==l){t.next=25;break}a=c(f),t.prev=4,a.s();case 6:if((o=a.n()).done){t.next=16;break}if(s=o.value,!l){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,p(s);case 12:if(!t.sent){t.next=14;break}l=e[s];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),a.e(t.t0);case 21:return t.prev=21,a.f(),t.finish(21);case 24:void 0===l&&(l=null);case 25:return t.abrupt("return",l);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(i.a.mark((function e(t){var n,r,a,o,c,s,l;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(a=JSON.parse(r),o=a.timestamp,c=a.ttl,s=a.value,l=a.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:s,isError:l});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var t=o()(i.a.mark((function t(n,r){var a,o,c,s,l,d,f,p,m=arguments;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=m.length>2&&void 0!==m[2]?m[2]:{},o=a.ttl,c=void 0===o?3600:o,s=a.timestamp,l=void 0===s?Math.round(Date.now()/1e3):s,d=a.isError,f=void 0!==d&&d,t.next=3,g();case 3:if(!(p=t.sent)){t.next=14;break}return t.prev=5,p.setItem("".concat(u).concat(n),JSON.stringify({timestamp:l,ttl:c,value:r,isError:f})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),v=function(){var t=o()(i.a.mark((function t(n){var r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),b=function(){var t=o()(i.a.mark((function t(){var n,r,a,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],a=0;a<n.length;a++)0===(o=n.key(a)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(18))},937:function(e,t,n){"use strict";n.r(t),function(e,t){var r=n(300),i=n(176),a=n(5),o=(n(334),n(205)),c=n(742),s=n(364);Object(r.a)((function(){e._googlesitekitLegacyData.admin.resetSession&&Object(a.b)();var n=document.getElementById("js-googlesitekit-dashboard-splash");n&&Object(i.render)(t.createElement(o.a,{dataAPIContext:"Splash"},t.createElement(s.a,null),t.createElement(c.a,null)),n)}))}.call(this,n(18),n(2))},98:function(e,t,n){"use strict";function r(e){return new URL(e).pathname}function i(e,t){return new URL(t,e).href}function a(e){return e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a}))}},[[937,1,0]]]);
dist/assets/js/{googlesitekit-dashboard.7ed1e58ba857023fa916.js → googlesitekit-dashboard.b85bd28cc660ea0b90b4.js} RENAMED
@@ -2,7 +2,7 @@
2
  /* translators: 1: date for user stats, 2: previous date for user stats comparison */
3
  Object(l._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(P,L),x[n][0].toLocaleDateString(P,L)),s=Object(l.sprintf)(
4
  /* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
5
- Object(l._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),k[t],j[t](e[1]),i,Object(u.r)(Math.abs(r),"%"));D.push([e[0],'<div class="'.concat(c()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":r>0,"googlesitekit-visualization-tooltip--down":r<0}),'">\n\t\t\t\t<p>').concat(o,"</p>\n\t\t\t\t<p>").concat(s,"</p>\n\t\t\t</div>"),E?Object(u.c)(e[1]):e[1],E?Object(u.c)(x[n][1]):x[n][1]])}})),D}var R=function(e){if(!e||!e.length)return null;var t=e[0].data.rows,n=[[{type:"date",label:"Day"},{type:"number",label:"Users"},{type:"number",label:"Sessions"},{type:"number",label:"Goals Completed"}]];return Object(i.each)(t,(function(e){var t=e.metrics[0].values,a=e.dimensions[0],r=Object(g.a)(a);n.push([r,t[0],t[1],t[4]])})),n},A=function(e){var t;return e.error&&e.error.status?function(e,t){var n="";switch(e){case"INVALID_ARGUMENT":n=Object(l.__)("Analytics module needs to be configured.","google-site-kit");break;case"UNAUTHENTICATED":n=Object(l.__)("You need to be authenticated to get this data.","google-site-kit");break;case"PERMISSION_DENIED":n=Object(l.__)("Your account does not have sufficient permission to access this data, please consult to your web administrator.","google-site-kit");break;case"RESOURCE_EXHAUSTED":n=Object(l.__)("Your account exceeded the maximum quota. Please try again later.","google-site-kit");break;case"INTERNAL":n=Object(l.__)("Unexpected internal server error occurred.","google-site-kit");break;case"BACKEND_ERROR":n=Object(l.__)("Analytics server returned unknown error. Please try again later.","google-site-kit");break;case"UNAVAILABLE":n=Object(l.__)("The service was unable to process the request. Please try again later.","google-site-kit");break;default:n=t}return n}(e.error.status,e.error.message):!!(e.code&&e.message&&(null===(t=e.data)||void 0===t?void 0:t.status))&&e.message},x=function(e){if(!e||!e.length)return!0;if(e&&e[0]&&e[0].data&&e[0].data.totals&&e[0].data.totals[0]){var t=e[0].data.totals[0].values,n=!0;return Object(i.each)(t,(function(e){0!==parseInt(e,10)&&(n=!1)})),n}return!1},P={dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:adsenseRevenue",alias:"Earnings"},{expression:"ga:adsenseECPM",alias:"Page RPM"},{expression:"ga:adsensePageImpressions",alias:"Impressions"}],orderby:[{fieldName:"ga:adsenseRevenue",sortOrder:"DESCENDING"}],limit:10},L={compareDateRanges:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"}],limit:180},T={multiDateRange:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"},{expression:"ga:pageviews",alias:"Pageviews"}],limit:10},M={multiDateRange:1,metrics:[{expression:"ga:users",alias:"Total Users"}]},I={dimensions:"ga:channelGrouping",metrics:[{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:users",alias:"Users"},{expression:"ga:newUsers",alias:"New Users"}],orderby:[{fieldName:"ga:users",sortOrder:"DESCENDING"}],limit:10},U=function(){return{dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:pageviews",alias:"Pageviews"},{expression:"ga:uniquePageviews",alias:"Unique Pageviews"},{expression:"ga:bounceRate",alias:"Bounce rate"}],orderby:[{fieldName:"ga:pageviews",sortOrder:"DESCENDING"}],limit:10}},W=function(e){var t,n,a,r,i,o,c,l,s,u;return{totalUsers:null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(a=n.totals)||void 0===a||null===(r=a[0])||void 0===r||null===(i=r.values)||void 0===i?void 0:i[0],previousTotalUsers:null==e||null===(o=e[0])||void 0===o||null===(c=o.data)||void 0===c||null===(l=c.totals)||void 0===l||null===(s=l[1])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0]}}},function(e,t,n){"use strict";var a=n(11),r=n.n(a),i=n(23),o=n(113),c=n(99),l=n(17),s=n(32),u=n(84),d=n(73),g=n(161),f=n(128),p=n(38),m=n(88);n.d(t,"a",(function(){return m.a})),n.d(t,"b",(function(){return m.b}));var h=n(134),b=n(171),v={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=[],s=25;Object(i.each)(e,(function(e){e.key=Object(p.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(p.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),s),s+=25):a.push(e)})),a=Object(i.sortBy)(a,"priority");var g=[],f=[],m={},h=!!a.find((function(e){return e.priority<10}));Object(i.each)(a,(function(e,t){!n&&10<=e.priority&&h?f.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],g.push(e))}));var b=10,v=g.slice(0,b),y=g.slice(b);if(y=y.concat(f),0!==v.length||0!==y.length){0<y.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(y,!0)}),50):this.maxRequests=10;var _=null!==Object(u.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:_||void 0}),data:{request:v},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=r()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(d.d)(o)){var c=m[i][0],s=a[c],u=s.datapoint,g=s.type,f=s.identifier;t.handleWPError({method:"GET",datapoint:u,type:g,identifier:f,error:o})}else Object(p.f)(i,o);m[i].forEach((function(e){var n=a[e];t.resolve(n,o)})),0===y.length&&Object(l.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(l.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,a=e.type,r=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(a),"identifier:".concat(r),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(b.a)({method:t,datapoint:n,type:a,identifier:r,error:i});var o=i.data;if(o&&(o.reason||o.reconnectURL)){var c=0;["authError","insufficientPermissions"].includes(o.reason)&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(f.a),1),c++),o.reconnectURL&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(g.a),1),c++),c&&Object(l.b)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease",(function(e){return Object(l.g)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease"),e+c}))}},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:h.a,collectModuleData:function(e,t){var n=Object(l.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var a=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=Object(p.d)(e,t,n,r);if(!i){var s=Object(p.c)(l,3600);if(void 0!==s)return new Promise((function(e){e(s)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),r)}).then((function(e){return i||Object(p.f)(l,e),Promise.resolve(e)})).catch((function(r){return a.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},set:function(e,t,n,a){var r=this,i={};return i.data=a,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(a){return v.invalidateCacheGroup(e,t,n),new Promise((function(e){e(a)}))})).catch((function(a){return r.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},setModuleActive:function(e,t){return this.set(m.a,"modules","activation",{slug:e,active:t})}};Object(l.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(l.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",v.collectModuleData.bind(v)),t.c=v},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(8),o=n.n(i),c=n(184);function PreviewBlock(t){var n=t.className,a=t.width,r=t.height,i=t.shape,l=t.padding,s=t.smallWidth,u=t.smallHeight,d=t.tabletWidth,g=t.tabletHeight,f=t.desktopWidth,p=t.desktopHeight,m=Object(c.a)(),h=a,b=r;return"small"===m&&s&&u&&(h=s,b=u),"tablet"===m&&d&&g&&(h=d,b=g),("xlarge"===m||"desktop"===m)&&f&&p&&(h=f,b=p),e.createElement("div",{className:o()("googlesitekit-preview-block",n,{"googlesitekit-preview-block--padding":l}),style:{width:h,height:b}},e.createElement("div",{className:o()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===i})}))}PreviewBlock.propTypes={className:r.a.string,width:r.a.string,height:r.a.string,shape:r.a.string,padding:r.a.bool,smallWidth:r.a.string,smallHeight:r.a.string,tabletWidth:r.a.string,tabletHeight:r.a.string,desktopWidth:r.a.string,desktopHeight:r.a.string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0},t.a=PreviewBlock}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}));var a="modules/adsense",r=1},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="core/modules",r="insufficient_module_dependencies"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var a=n(25),r=n.n(a),i=n(2),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(a){return function InnerComponent(i){return e.createElement(t,r()({},i,n,{OriginalComponent:a}))}}}}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){var a=n(15),r=n.n(a),i=n(16),o=n.n(i),c=n(21),l=n.n(c),s=n(22),u=n.n(s),d=n(13),g=n.n(d),f=n(1),p=n.n(f),m=n(8),h=n.n(m),b=n(2),v=n(195),y=n(196);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var O=function(t){l()(Layout,t);var n=_(Layout);function Layout(){return r()(this,Layout),n.apply(this,arguments)}return o()(Layout,[{key:"render",value:function(){var t=this.props,n=t.header,a=t.footer,r=t.children,i=t.title,o=t.headerCTALabel,c=t.headerCTALink,l=t.footerCTALabel,s=t.footerCTALink,u=t.footerContent,d=t.className,g=t.fill,f=t.relative;return e.createElement("div",{className:h()("googlesitekit-layout",d,{"googlesitekit-layout--fill":g,"googlesitekit-layout--relative":f})},n&&e.createElement(v.a,{title:i,ctaLabel:o,ctaLink:c}),r,a&&e.createElement(y.a,{ctaLabel:l,ctaLink:s,footerContent:u}))}}]),Layout}(b.Component);O.propTypes={header:p.a.bool,footer:p.a.bool,children:p.a.node.isRequired,title:p.a.string,headerCTALabel:p.a.string,headerCTALink:p.a.string,footerCTALabel:p.a.string,footerCTALink:p.a.string,footerContent:p.a.node,className:p.a.string,fill:p.a.bool,relative:p.a.bool},O.defaultProps={header:!1,footer:!1,title:"",headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=O}).call(this,n(2))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}));var a="modules/search-console",r=1},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return f}));var a=n(33),r=n.n(a),i=n(23),o=n(48),c=n(72),l="googlesitekit_legacy_1.34.0_",s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==r()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==r()(n)||!n.error&&!n.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var a={value:n,date:Date.now()/1e3};Object(o.a)().setItem(l+t,JSON.stringify(a))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var a=JSON.parse(Object(o.a)().getItem(l+t));return a&&"object"===r()(a)&&a.date&&(!n||Date.now()/1e3-a.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(a.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},g=function(t){s(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(l+t)},f=function(e,t,n){for(var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],l=0,s=o;l<s.length;l++){var u=s[l];if(!u||!u.length)break;i.push(u)}return 3===i.length&&a&&"object"===r()(a)&&Object.keys(a).length&&i.push(Object(c.a)(a)),i.join("::")}}).call(this,n(18))},,function(e,t,n){"use strict";(function(e){var a=n(15),r=n.n(a),i=n(16),o=n.n(i),c=n(49),l=n.n(c),s=n(21),u=n.n(s),d=n(22),g=n.n(d),f=n(13),p=n.n(f),m=n(1),h=n.n(m),b=n(8),v=n.n(b),y=n(2),_=n(0),O=n(67),k=n(78),j=n(5);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=p()(e);if(t){var r=p()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return g()(this,n)}}var S=function(t){u()(DataBlock,t);var n=E(DataBlock);function DataBlock(e){var t;return r()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(l()(t)),t.handleKeyPress=t.handleKeyPress.bind(l()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,a=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||a(n)}},{key:"render",value:function(){var t=this.props,n=t.className,a=t.title,r=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,l=t.context,s=t.period,u=t.selected,d=t.handleStatSelection,g=t.source,f=t.sparkline,p=t.invertChangeColor,m="button"===l?"button":"",h=f;h&&p&&(h=Object(y.cloneElement)(f,{invertChangeColor:p}));var b=o;c&&(b="%"===c?Object(j.r)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(j.r)(o,c)),s&&(b=Object(_.sprintf)(s,b));var E=r&&Object(j.r)(r,i||void 0);return e.createElement("div",{className:v()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&a,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},a),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},E)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:v()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(y.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(O.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},b))),g&&e.createElement(k.a,{className:"googlesitekit-data-block__source",name:g.name,href:g.link,external:null==g?void 0:g.external})))}}]),DataBlock}(y.Component);S.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},S.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=S}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(25),r=n.n(a),i=n(11),o=n.n(i),c=n(15),l=n.n(c),s=n(16),u=n.n(s),d=n(49),g=n.n(d),f=n(21),p=n.n(f),m=n(22),h=n.n(m),b=n(13),v=n.n(b),y=n(293),_=n.n(y),O=n(125),k=n.n(O),j=n(17),E=n(2),S=n(0),D=n(4),w=n.n(D),C=n(5),N=n(94),R=n(112),A=n(188),x=n(88),P=n(12),L=n(236);function T(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=v()(e);if(t){var r=v()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return h()(this,n)}}var U=w.a.withSelect,W=k()(C.v);t.a=function(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{inGrid:!1,fullWidth:!1,createGrid:!1},c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e){if(e&&e.error)return e.error.message?e.error.message:e.error.errors&&e.error.errors[0]&&e.error.errors[0].message?e.error.errors[0].message:Object(S.__)("Unidentified error","google-site-kit");if(e&&e.errors&&e.errors[0]&&e.errors[0].message)return e.errors[0].message;if(e&&e.error_data){var t=Object.values(e.error_data);if(t[0]&&"RateLimitExceeded"===t[0].reason)return Object(S.__)("Too many requests have been sent within a given time span. Please reload this page again in a few seconds.","google-site-kit")}if(e&&e.errors){var n=Object.values(e.errors);if(n[0]&&n[0][0])return n[0][0]}return!!(e.code&&e.message&&e.data&&e.data.status)&&e.message},d=n.reduce((function(e,t){return _()(t.context).forEach((function(n){e[n]=e[n]||[],e[n].push(t)})),e}),{}),f=function(n){p()(NewComponent,n);var f=I(NewComponent);function NewComponent(e){var t;return l()(this,NewComponent),(t=f.call(this,e)).state={data:!1,zeroData:!1,errorMessage:!1,moduleRequiringSetup:""},t.handleModuleDataReset=t.handleModuleDataReset.bind(g()(t)),t.handleReturnedData=t.handleReturnedData.bind(g()(t)),t.addDataRequests=t.addDataRequests.bind(g()(t)),t.removeDataRequests=t.removeDataRequests.bind(g()(t)),t}return u()(NewComponent,[{key:"componentDidMount",value:function(){Object(j.a)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.addDataRequests()}},{key:"componentWillUnmount",value:function(){Object(j.f)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.removeDataRequests()}},{key:"handleModuleDataReset",value:function(){this.removeDataRequests(),this.addDataRequests(),this.setState({data:!1,errorMessage:!1,zeroData:!1})}},{key:"addDataRequests",value:function(){var e=this,t=this.props.dateRange;Object.entries(d).forEach((function(n){var a=o()(n,2),r=a[0],i=a[1];Object(j.b)("googlesitekit.module".concat(r,"DataRequest"),"googlesitekit.withData.".concat(W(i)),(function(n){var a,r=Object(C.i)(),o=[],c=T(i);try{var l=function(){var n,i,c=a.value,l=c||{},s=l.type,u=l.identifier;if(x.b===s&&!(null===(n=r[u])||void 0===n?void 0:n.setupComplete))return e.setState({moduleRequiringSetup:u,moduleRequiringActivation:!(null===(i=r[u])||void 0===i?void 0:i.active)}),"continue";var d=Object(L.a)(c,t);d.callback=function(t){e.handleReturnedData(t,c)},o.push(d)};for(c.s();!(a=c.n()).done;)l()}catch(e){c.e(e)}finally{c.f()}return n.concat(o)}))}))}},{key:"removeDataRequests",value:function(){Object.entries(d).forEach((function(e){var t=o()(e,2),n=t[0],a=t[1];Object(j.g)("googlesitekit.module".concat(n,"DataRequest"),"googlesitekit.withData.".concat(W(a)))}))}},{key:"handleReturnedData",value:function(e,t){var n=this.props,a=n.handleDataError,r=n.handleDataSuccess,i=t.datapoint,o=t.identifier,l=t.toState,u=s(e);u?(this.setState({errorMessage:u,errorObj:e,module:o}),a&&a(u,e)):c(e,i,t)?(a&&a(u,e),this.setState({zeroData:!0})):r&&r(),this.setState({requestDataToState:l,data:e,datapoint:i,module:o})}},{key:"render",value:function(){var n=this.state,o=n.data,c=n.datapoint,l=n.module,s=n.zeroData,u=n.errorMessage,d=n.errorObj,g=n.requestDataToState,f=n.moduleRequiringSetup;if(n.moduleRequiringActivation)return Object(A.b)(f,i.inGrid,i.fullWidth,i.createGrid);if(f)return Object(A.a)(f,i.inGrid,i.fullWidth,i.createGrid);if(!o)return a;if(u)return"string"!=typeof u?u:Object(R.a)(l,u,i.inGrid,i.fullWidth,i.createGrid,d);if(s){var p,m=(null===(p=Object(C.i)()[l])||void 0===p?void 0:p.name)||Object(S.__)("Site Kit","google-site-kit");return Object(N.a)(m,i.inGrid,i.fullWidth,i.createGrid)}return e.createElement(t,r()({data:o,datapoint:c,requestDataToState:g},this.props))}}]),NewComponent}(E.Component),m=t.displayName||t.name||"AnonymousComponent";return f.displayName="withData(".concat(m,")"),U((function(e){return{dateRange:e(P.a).getDateRange(),dateRangeLength:e(P.a).getDateRangeNumberOfDays()}}))(f)}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i}));var a="Date param must construct to a valid date instance or be a valid date instance itself.",r="Invalid dateString parameter, it must be a string.",i='Invalid date range, it must be a string with the format "last-x-days".'},function(e,t,n){"use strict";(function(e){var a=n(25),r=n.n(a),i=n(26),o=n.n(i),c=n(8),l=n.n(c),s=n(1),u=n.n(s),d=n(157),g=n(2),f=n(19),p=Object(g.forwardRef)((function(t,n){var a=t.children,i=t.href,c=t.text,s=t.className,u=t.danger,p=t.disabled,m=t.target,h=t.icon,b=t.trailingIcon,v=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon"]),y=Object(g.useCallback)((function(e){null!==e&&f.i.attachTo(e)}),[]),_=Object(d.a)(n,y),O=i&&!p?"a":"button";return e.createElement(O,r()({className:l()("mdc-button",s,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:p?void 0:i,ref:_,disabled:!!p,target:m||"_self",role:"a"===O?"button":void 0},v),h,a&&e.createElement("span",{className:"mdc-button__label"},a),b)}));p.displayName="Button",p.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element},p.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null},t.a=p}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="_googlesitekitDataLayer",r="data-googlesitekit-gtag"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(53),r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(a.a)(new Date(e))}},function(e,t,n){"use strict";(function(e){var a=n(6),r=n.n(a),i=n(7),o=n.n(i),c=n(14),l=n.n(c),s=n(15),u=n.n(s),d=n(16),g=n.n(d),f=n(49),p=n.n(f),m=n(21),h=n.n(m),b=n(22),v=n.n(b),y=n(13),_=n.n(y),O=n(1),k=n.n(O),j=n(8),E=n.n(j),S=n(23),D=n(2),w=n(144),C=n(75),N=n(38),R=n(40),A=n(43),x=n(170),P=n(185),L=n(24),T=n(137);function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=_()(e);if(t){var r=_()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return v()(this,n)}}var I=function(t){h()(Notification,t);var n,a,i=M(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(D.createRef)(),t.handleDismiss=t.handleDismiss.bind(p()(t)),t.handleCTAClick=t.handleCTAClick.bind(p()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(N.f)("notification::displayed::".concat(t.props.id),new Date),t}return g()(Notification,[{key:"handleDismiss",value:(a=l()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(N.f)("notification::dismissed::".concat(e.props.id),new Date),t.style.display="none";var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=l()(o.a.mark((function e(t){var n,a,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,a=n.isDismissable,!(r=n.onCTAClick)){e.next=5;break}return e.next=5,r(t);case 5:a&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,a=Object(N.c)("notification::dismissed::".concat(t));if(a){var r=new Date(a);r.setSeconds(r.getSeconds()+parseInt(n,10)),r<new Date&&Object(N.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,a=this.props,i=a.children,o=a.id,c=a.className,l=a.title,s=a.description,u=a.blockData,d=a.WinImageSVG,g=a.SmallImageSVG,f=a.format,p=a.learnMoreURL,m=a.learnMoreDescription,h=a.learnMoreLabel,b=a.ctaLink,v=a.ctaLabel,y=a.ctaTarget,_=a.type,O=a.dismiss,k=a.isDismissable,j=a.logo,M=a.module,I=a.moduleName,U=a.pageIndex,W=a.anchorLink,z=a.anchorLinkLabel;if(Object(N.c)("notification::dismissed::".concat(o)))return null;var F,q=n?"is-closed":"is-open",H="large"===f&&"win-stats-increase"===_,G="mdc-layout-grid__cell--span-12";"large"===f?(G="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",H&&(G="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===f&&(G="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),F="win-warning"===_?e.createElement(x.a,null):"win-error"===_?e.createElement(P.a,null):"";var V=e.createElement(D.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(S.map)(u,(function(t,n){return e.createElement("div",{key:n,className:E()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":H,"mdc-layout-grid__cell--span-4-desktop":!H})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(R.a,t)))})))),B=e.createElement(D.Fragment,null,l&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},l),W&&z&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(L.a,{href:W},z)),s&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(D.isValidElement)(s)?s:e.createElement("span",{dangerouslySetInnerHTML:Object(C.a)(s,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),h&&e.createElement(D.Fragment,null," ",e.createElement(L.a,{href:p,external:!0,inherit:!0},h),m),U&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},U))),i),$=M?e.createElement(T.a,{slug:M,size:19}):e.createElement(w.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:E()(c,"googlesitekit-publisher-win",(t={},r()(t,"googlesitekit-publisher-win--".concat(f),f),r()(t,"googlesitekit-publisher-win--".concat(_),_),r()(t,"googlesitekit-publisher-win--".concat(q),q),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},j&&e.createElement("div",{className:E()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":H,"mdc-layout-grid__cell--order-1-tablet":H})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},$),I&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},I)),g&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(g,null)),e.createElement("div",{className:E()("mdc-layout-grid__cell",G)},H?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},B),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},V)):e.createElement(D.Fragment,null,B,V),b&&e.createElement(A.a,{className:"googlesitekit-notification__cta",href:b,target:y,onClick:this.handleCTAClick},v),k&&O&&e.createElement(L.a,{onClick:this.handleDismiss},O)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(d,null))),("win-error"===_||"win-warning"===_)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},F)))))}}]),Notification}(D.Component);I.propTypes={id:k.a.string.isRequired,className:k.a.string,title:k.a.string.isRequired,description:k.a.node,learnMoreURL:k.a.string,learnMoreDescription:k.a.string,learnMoreLabel:k.a.string,blockData:k.a.array,WinImageSVG:k.a.elementType,SmallImageSVG:k.a.elementType,format:k.a.string,ctaLink:k.a.string,ctaLabel:k.a.string,type:k.a.string,dismiss:k.a.string,isDismissable:k.a.bool,logo:k.a.bool,module:k.a.string,moduleName:k.a.string,pageIndex:k.a.string,dismissExpires:k.a.number,showOnce:k.a.bool,onCTAClick:k.a.func,onDismiss:k.a.func,anchorLink:k.a.string,anchorLinkLabel:k.a.string},I.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=I}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var a,r=n(15),i=n.n(r),o=n(16),c=n.n(o),l=function(t){var n=e[t];if(!n)return!1;try{var a="__storage_test__";return n.setItem(a,a),n.removeItem(a),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return a||(a=l("sessionStorage")?e.sessionStorage:l("localStorage")?e.localStorage:new s),a}}).call(this,n(18))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a.b})),n.d(t,"b",(function(){return a.c})),n.d(t,"e",(function(){return r.a})),n.d(t,"f",(function(){return i.a})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return l.a})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return d}));var a=n(42),r=n(65),i=n(55),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t%7,a=0===n;if(a)return Object(i.a)(e,t);var r=t>7&&n<3,o=r?t-n:t+(7-n);return Object(i.a)(e,o)},c=(n(53),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}),l=n(45);function s(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var u=n(0);function d(){var e=function(e){return Object(u.sprintf)(
6
  /* translators: %s: number of days */
7
  Object(u._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,t){e.exports=googlesitekit.api},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return a}));var a="core/ui"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(e){return e instanceof Date&&!isNaN(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return a}));var a="core/location"},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(11),r=n.n(a),i=n(10),o=n.n(i),c=n(42),l=n(65),s=n(45),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;o()(Object(s.a)(e),c.c);var n=e.split("-"),a=r()(n,3),i=a[0],u=a[1],d=a[2],g=new Date(i,u-1,d);return g.setDate(g.getDate()-t),Object(l.a)(g)}},function(e,t,n){"use strict";(function(e){var a,r;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(a=e)||void 0===a||null===(r=a._googlesitekitBaseData)||void 0===r?void 0:r.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(8),o=n.n(i),c=n(24),l=function CTA(t){var n=t.title,a=t.description,r=t.ctaLink,i=t.ctaLabel,l=t.error,s=t.onClick,u=t["aria-label"];return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":l})},n&&e.createElement("h3",{className:"googlesitekit-cta__title"},n),a&&"string"==typeof a&&e.createElement("p",{className:"googlesitekit-cta__description"},a),a&&"string"!=typeof a&&e.createElement("div",{className:"googlesitekit-cta__description"},a),i&&e.createElement(c.a,{href:r,onClick:s,inverse:!l,caps:!0,arrow:!0,"aria-label":u},i))};l.propTypes={title:r.a.string.isRequired,description:r.a.oneOfType([r.a.string,r.a.node]),ctaLink:r.a.string,ctaLabel:r.a.string,"aria-label":r.a.string,error:r.a.bool,onClick:r.a.func},l.defaultProps={title:"",description:"",ctaLink:"",ctaLabel:"",error:!1,onClick:function(){}},t.a=l}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return g}));var a=n(104),r=e._googlesitekitBaseData||{},i=r.isFirstAdmin,o=r.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:r.trackingEnabled,trackingID:r.trackingID,referenceSiteURL:r.referenceSiteURL,userIDHash:r.userIDHash},l=Object(a.a)(c),s=l.enableTracking,u=l.disableTracking,d=l.isTrackingEnabled,g=l.trackEvent;function f(e){e?s():u()}!0===o&&f(d())}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GoogleChart}));var a=n(6),r=n.n(a),i=n(25),o=n.n(i),c=n(37),l=n.n(c),s=n(26),u=n.n(s),d=n(8),g=n.n(d),f=n(1),p=n.n(f),m=n(193),h=n(2),b=n(29);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GoogleChart(t){var n=t.chartEvents,a=t.chartType,r=t.children,i=t.className,c=t.data,s=t.getChartWrapper,d=t.height,f=t.loaded,p=t.loadingHeight,v=t.loadingWidth,y=t.onMouseOver,_=t.onMouseOut,O=t.onReady,k=t.onSelect,j=t.selectedStats,E=t.width,S=u()(t,["chartEvents","chartType","children","className","data","getChartWrapper","height","loaded","loadingHeight","loadingWidth","onMouseOver","onMouseOut","onReady","onSelect","selectedStats","width"]),D=[];(null==c?void 0:c.length)&&(D=c[0].reduce((function(e,t,n){return(null==t?void 0:t.role)?[].concat(l()(e),[n]):e}),[]));var w=c;(null==j?void 0:j.length)>0&&(w=c.map((function(e){return e.filter((function(e,t){return 0===t||j.includes(t-1)||D.includes(t-1)}))})));var C=p||d,N=v||E;C&&!N&&(N="100%"),N&&!C&&(C="100%");var R="PieChart"===a?"circular":"square",A=e.createElement("div",{className:"googlesitekit-chart-loading"},e.createElement(b.a,{className:"googlesitekit-chart-loading__wrapper",height:C,shape:R,width:N})),x=Object(h.useRef)(),P=Object(h.useRef)();if(Object(h.useEffect)((function(){return function(){if(P.current&&x.current){var e=P.current.visualization.events;e.removeAllListeners(x.current.getChart()),e.removeAllListeners(x.current)}}}),[]),Object(h.useLayoutEffect)((function(){var e,t;y&&(null===(e=P.current)||void 0===e||e.visualization.events.addListener(x.current.getChart(),"onmouseover",(function(e){y(e,{chartWrapper:x.current,google:P.current})})));_&&(null===(t=P.current)||void 0===t||t.visualization.events.addListener(x.current.getChart(),"onmouseout",(function(e){_(e,{chartWrapper:x.current,google:P.current})})))}),[y,_]),!f)return e.createElement("div",{className:g()("googlesitekit-chart","googlesitekit-chart-loading__forced",i)},A);var L=l()(n||[]);return O&&L.push({eventName:"ready",callback:O}),k&&L.push({eventName:"select",callback:k}),e.createElement("div",{className:g()("googlesitekit-chart","googlesitekit-chart--".concat(a),i)},e.createElement(m.a,o()({className:"googlesitekit-chart__inner",chartEvents:L,chartType:a,chartVersion:"49",data:w,loader:A,height:d,getChartWrapper:function(e,t){var n,a,r;e!==x.current&&(null===(n=P.current)||void 0===n||n.visualization.events.removeAllListeners(null===(a=x.current)||void 0===a?void 0:a.getChart()),null===(r=P.current)||void 0===r||r.visualization.events.removeAllListeners(x.current));x.current=e,P.current=t,s&&s(e,t)},width:E},S)),r)}GoogleChart.propTypes={className:p.a.string,children:p.a.node,chartEvents:p.a.arrayOf(p.a.shape({eventName:p.a.string,callback:p.a.func})),chartType:p.a.oneOf(["LineChart","PieChart"]).isRequired,data:p.a.array,getChartWrapper:p.a.func,height:p.a.string,loaded:p.a.bool,loadingHeight:p.a.string,loadingWidth:p.a.string,onMouseOut:p.a.func,onMouseOver:p.a.func,onReady:p.a.func,onSelect:p.a.func,selectedStats:p.a.arrayOf(p.a.number),width:p.a.string},GoogleChart.defaultProps=y(y({},m.a.defaultProps),{},{loaded:!0})}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(8),o=n.n(i),c=n(29);function PreviewTable(t){for(var n=t.rows,a=t.rowHeight,r=t.padding,i=[],l=0;n>l;l++)i.push(e.createElement("div",{className:"googlesitekit-preview-table__row",key:"table-row-"+l},e.createElement(c.a,{width:"100%",height:a+"px"})));return e.createElement("div",{className:o()("googlesitekit-preview-table",{"googlesitekit-preview-table--padding":r})},i)}PreviewTable.propTypes={rows:r.a.number,rowHeight:r.a.number,padding:r.a.bool},PreviewTable.defaultProps={rows:11,rowHeight:35,padding:!1},t.a=PreviewTable}).call(this,n(2))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return i}));var a={BOXES:"boxes",COMPOSITE:"composite"},r={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},function(e,t,n){"use strict";(function(e,a){var r=n(11),i=n.n(r),o=n(1),c=n.n(o),l=n(23),s=n(8),u=n.n(s),d=n(2);function TableOverflowContainer(t){var n=t.children,r=Object(d.useState)(!1),o=i()(r,2),c=o[0],s=o[1],g=Object(d.useRef)();Object(d.useEffect)((function(){f();var t=Object(l.debounce)(f,100);return e.addEventListener("resize",t),function(){return e.removeEventListener("resize",t)}}),[]);var f=function(){if(g.current){var e=g.current,t=e.scrollLeft,n=e.scrollWidth-e.offsetWidth;s(t<n-16&&0<n-16)}};return a.createElement("div",{onScroll:Object(l.debounce)(f,100),className:u()("googlesitekit-table-overflow",{"googlesitekit-table-overflow--gradient":c})},a.createElement("div",{ref:g,className:"googlesitekit-table-overflow__container"},n))}TableOverflowContainer.propTypes={children:c.a.element},t.a=TableOverflowContainer}).call(this,n(18),n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ProgressBar}));var a=n(1),r=n.n(a),i=n(8),o=n.n(i);function ProgressBar(t){var n=t.className,a=t.small,r=t.compress,i=t.indeterminate,c=t.height,l=t.progress,s=void 0!==c?Math.round(c/2):void 0,u=l?"scaleX(".concat(l,")"):void 0;return e.createElement("div",{role:"progressbar",style:{marginTop:s,marginBottom:s},className:o()("mdc-linear-progress",n,{"mdc-linear-progress--indeterminate":i,"mdc-linear-progress--small":a,"mdc-linear-progress--compress":r})},e.createElement("div",{className:"mdc-linear-progress__buffering-dots"}),e.createElement("div",{className:"mdc-linear-progress__buffer"}),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__primary-bar",style:{transform:u}},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar"},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})))}ProgressBar.propTypes={className:r.a.string,small:r.a.bool,compress:r.a.bool,indeterminate:r.a.bool,progress:r.a.number,height:r.a.number},ProgressBar.defaultProps={className:"",small:!1,compress:!1,indeterminate:!0,progress:0}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(10),r=n.n(a),i=n(42),o=n(53),c=function(e){var t=new Date(e);r()(Object(o.a)(t),i.a);var n="".concat(t.getMonth()+1),a="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,a.length<2?"0".concat(a):a].join("-")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(44);function r(e){return function(){e[a.a]=e[a.a]||[],e[a.a].push(arguments)}}},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,a=t.invertColor,r=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":a}),width:r,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:r.a.string,invertColor:r.a.bool,width:r.a.number,height:r.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(15),r=n.n(a),i=n(16),o=n.n(i),c=n(21),l=n.n(c),s=n(22),u=n.n(s),d=n(13),g=n.n(d),f=n(1),p=n.n(f),m=n(2);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var b=function(t){l()(DashboardModuleHeader,t);var n=h(DashboardModuleHeader);function DashboardModuleHeader(){return r()(this,DashboardModuleHeader),n.apply(this,arguments)}return o()(DashboardModuleHeader,[{key:"render",value:function(){var t=this.props,n=t.title,a=t.description;return e.createElement("header",{className:"googlesitekit-dashboard-module-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-4-phone "},e.createElement("h3",{className:" googlesitekit-heading-3 googlesitekit-dashboard-module-header__title "},n),a&&e.createElement("p",{className:"googlesitekit-dashboard-module-header__description"},a))))}}]),DashboardModuleHeader}(m.Component);b.propTypes={title:p.a.string,description:p.a.string},b.defaultProps={title:"",description:""},t.a=b}).call(this,n(2))},function(e,t,n){"use strict";var a=n(131);n.d(t,"a",(function(){return a.a}));var r=n(132);n.d(t,"c",(function(){return r.a}));var i=n(133);n.d(t,"b",(function(){return i.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(10),r=n.n(a),i=n(45),o=function(e){var t=e.startDate,n=e.endDate;return r()(Object(i.a)(t),"A valid startDate is required."),r()(Object(i.a)(n),"A valid endDate is required."),{start_date:t.replace(/-/g,""),end_date:n.replace(/-/g,"")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(10),r=n.n(a),i=n(45),o=function(e){var t=e.startDate,n=e.endDate,a=e.compareStartDate,o=e.compareEndDate;r()(Object(i.a)(t),"A valid startDate is required."),r()(Object(i.a)(n),"A valid endDate is required.");var c={"_u.date00":t.replace(/-/g,""),"_u.date01":n.replace(/-/g,"")};return(a||o)&&(r()(Object(i.a)(a)&&Object(i.a)(o),"Valid compareStartDate and compareEndDate values are required."),c["_u.date10"]=a.replace(/-/g,""),c["_u.date11"]=o.replace(/-/g,"")),c}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(33),r=n.n(a),i=n(97),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(a){var i=t[a];i&&"object"===r()(i)&&!Array.isArray(i)&&(i=e(i)),n[a]=i})),n}(e)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var a=n(80),r=n.n(a),i="missing_required_scopes";function o(e){return r()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function l(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(59);function Sparkline(t){var n=t.change,a=t.data,r=t.invertChangeColor,o=t.loadingHeight;if(!a)return null;var c=r?"red":"green",l=r?"green":"red",s={title:"",backgroundColor:"transparent",curveType:"line",width:"100%",height:"50",enableInteractivity:!1,chartArea:{height:"100%",width:"100%"},legend:{position:"none"},axisFontSize:0,hAxis:{baselineColor:"none",ticks:[]},vAxis:{baselineColor:"none",ticks:[]},axes:[],colors:[0<=(parseFloat(n)||0)?c:l]};return a.slice(1).some((function(e){return e[1]>0}))||(s.vAxis.minValue=0,s.vAxis.maxValue=1),e.createElement("div",{className:"googlesitekit-analytics-sparkline-chart-wrap"},e.createElement(i.a,{chartType:"LineChart",data:a,loadingHeight:o,options:s}))}Sparkline.propTypes={invertChangeColor:r.a.bool,loadingHeight:r.a.string},Sparkline.defaultProps={invertChangeColor:!1,loadingHeight:"46px"},t.a=Sparkline}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var a=n(33),r=n.n(a),i=n(107),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===r()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},,function(e,t,n){"use strict";n.d(t,"f",(function(){return s.a})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m.a})),n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return v})),n.d(t,"d",(function(){return y}));var a=n(186),r=n.n(a),i=n(228),o=n.n(i),c=n(5),l=n(116),s=n(217),u=n(8),d=n.n(u),g=n(0),f=n(55),p=function(e,t,n,a,r){var i=[[{type:"date",label:Object(g.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:"number",label:n},{type:"number",label:Object(g.__)("Previous period","google-site-kit")}]],o=function(e){return new Date("".concat(e," 00:00:00"))},l=Object(c.h)(),s={weekday:"short",month:"short",day:"numeric"};return e.forEach((function(e,u){var p,m,h=e[a],b=e.keys[0],v=(null===(p=t[u])||void 0===p?void 0:p[a])||0,y=(null===(m=t[u])||void 0===m?void 0:m.keys[0])||Object(f.a)(b,r),_=Object(g.sprintf)(
8
  /* translators: 1: date for user stats, 2: previous date for user stats comparison */
@@ -35,7 +35,7 @@ Object(u.__)("%sK","google-site-kit"),v(m(e))):1e3<=e?Object(u.sprintf)(// trans
35
  Object(u.__)("%sK","google-site-kit"),v(m(e),e%10==0?{}:t)):v(e,{signDisplay:"never",maximumFractionDigits:1})},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(s.isFinite)(e)?e:Number(e),Object(s.isFinite)(e)||(console.warn("Invalid number",e,r()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return f(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(s.isPlainObject)(t)&&(n=g({},t))}var a=n,i=a.style,o=void 0===i?"metric":i;return"metric"===o?h(e):"duration"===o?f(e,t):v(e,n)},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?_():n,r=l()(t,["locale"]);return new Intl.NumberFormat(a,r).format(e)},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?_():n,r=t.style,i=void 0===r?"long":r,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(a,{style:i,type:c});return l.format(e)}
36
  /* translators: used between list items, there is a space after the comma. */var s=Object(u.__)(", ","google-site-kit");return e.join(s)},_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(s.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var a=n.match(/^(\w{2})?(_)?(\w{2})/);if(a&&a[0])return a[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var a=n(1),r=n.n(a),i=n(0),o=n(4),c=n.n(o),l=n(31),s=n(73),u=n(127),d=n(92),g=n(57),f=c.a.useSelect;function ReportError(t){var n,a=t.moduleSlug,r=t.error,o=f((function(e){return e(l.a).getModule(a)})),c=Object(i.sprintf)(Object(i.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name),p=r.message;Object(s.b)(r)&&(
37
  /* translators: %s: module name */
38
- c=Object(i.sprintf)(Object(i.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),p=Object(u.a)(p,o));var m=null==r||null===(n=r.data)||void 0===n?void 0:n.reconnectURL,h=m?e.createElement(d.a,{message:p,reconnectURL:m}):p;return e.createElement(g.a,{title:c,description:h,error:!0})}ReportError.propTypes={moduleSlug:r.a.string.isRequired,error:r.a.object.isRequired}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i}));var a=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},r=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function i(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="core",r="modules"},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return v}));var a=n(7),r=n.n(a),i=n(14),o=n.n(i);n(37);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var s,u="googlesitekit_".concat("1.34.0","_"),d=["sessionStorage","localStorage"],g=[].concat(d),f=function(){var t=o()(r.a.mark((function t(n){var a,i;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",a.setItem(i,i),a.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==a.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),p=function(){var t=o()(r.a.mark((function t(){var n,a,i,o,l;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(a=n.admin)||void 0===a?void 0:a.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}i=c(g),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(l=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,f(l);case 12:if(!t.sent){t.next=14;break}s=e[l];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(r.a.mark((function e(t){var n,a,i,o,c,l,s;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=10;break}if(!(a=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(a),o=i.timestamp,c=i.ttl,l=i.value,s=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:l,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var t=o()(r.a.mark((function t(n,a){var i,o,c,l,s,d,g,f,m=arguments;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,l=i.timestamp,s=void 0===l?Math.round(Date.now()/1e3):l,d=i.isError,g=void 0!==d&&d,t.next=3,p();case 3:if(!(f=t.sent)){t.next=14;break}return t.prev=5,f.setItem("".concat(u).concat(n),JSON.stringify({timestamp:s,ttl:c,value:a,isError:g})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),b=function(){var t=o()(r.a.mark((function t(n){var a;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(a=t.sent)){t.next=13;break}return t.prev=4,a.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),v=function(){var t=o()(r.a.mark((function t(){var n,a,i,o;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,a=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&a.push(o.substring(u.length));return t.abrupt("return",a);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(18))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var a=n(1),r=n.n(a),i=n(0),o=n(4),c=n.n(o),l=n(31),s=n(57),u=c.a.useSelect;function ReportZero(t){var n=t.moduleSlug,a=u((function(e){return e(l.a).getModule(n)}));return e.createElement(s.a,{title:
39
  /* translators: %s: Module name */
40
  Object(i.sprintf)(Object(i.__)("%s Gathering Data","google-site-kit"),null==a?void 0:a.name),description:Object(i.sprintf)(
41
  /* translators: %s: Module name */
@@ -51,7 +51,7 @@ Object(o.__)("Complete %s activation","google-site-kit"),l.name),description:r||
51
  /* translators: %s: Module name */
52
  Object(o.__)("%s module setup needs to be completed","google-site-kit"),l.name),ctaLabel:Object(o.__)("Complete setup","google-site-kit"),"aria-label":Object(o.sprintf)(
53
  /* translators: %s: Module name */
54
- Object(o.__)("Complete %s setup","google-site-kit"),l.name),onClick:v}):null};m.propTypes={moduleSlug:r.a.string.isRequired,title:r.a.string,description:r.a.string},t.a=m}).call(this,n(2))},function(e,t,n){"use strict";function a(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function r(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[a,r,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(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(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var a=n(229),r=n(67),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(a.a)(e.createElement(r.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,a,r,i,o,c,l,s,u,d,g,f,p,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(a=n.rows)||void 0===a?void 0:a.length)||(null==e||null===(r=e[0])||void 0===r||null===(i=r.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(l=c.metrics)||void 0===l||null===(s=l[0])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(g=d.data)||void 0===g||null===(f=g.totals)||void 0===f||null===(p=f[0])||void 0===p||null===(m=p.values)||void 0===m?void 0:m[0])}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var a=n(6),r=n.n(a),i=n(105),o=n(106);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=l(l({},s),t);return r.referenceSiteURL&&(r.referenceSiteURL=r.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(r,n),disableTracking:function(){r.trackingEnabled=!1},isTrackingEnabled:function(){return!!r.trackingEnabled},trackEvent:Object(o.a)(r,n,a)}}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var a=n(66),r=n(44);function i(t,n){var i=Object(a.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(r.b,"]"))){var a=n.createElement("script");a.setAttribute(r.b,""),a.async=!0,a.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(r.a),n.head.appendChild(a),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f}));var a=n(7),r=n.n(a),i=n(6),o=n.n(i),c=n(14),l=n.n(c),s=n(66),u=n(56);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(t,n,a){var i=Object(s.a)(n);return function(){var n=l()(r.a.mark((function n(o,c,l,s){var d,f,p,m,h,b,v,y;return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=t.isFirstAdmin,m=t.referenceSiteURL,h=t.trackingEnabled,b=t.trackingID,v=t.userIDHash,!(null===(d=a._gaUserPrefs)||void 0===d||null===(f=d.ioo)||void 0===f?void 0:f.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:b,event_category:o,event_label:l,value:s,dimension1:m,dimension2:p?"true":"false",dimension3:v,dimension4:"1.34.0",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,g(g({},y),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,a,r){return n.apply(this,arguments)}}()}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));var a=n(146),r=n.n(a)()(e)}).call(this,n(18))},function(e,t,n){"use strict";(function(e){var a=n(0),r=n(24);t.a=function HelpLink(){var t=Object(a.__)("Need help?","google-site-kit");return e.createElement(r.a,{className:"googlesitekit-help-link",href:"https://sitekit.withgoogle.com/documentation/",external:!0},t)}}).call(this,n(2))},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportTable}));var a=n(8),r=n.n(a),i=n(147),o=n.n(i),c=n(10),l=n.n(c),s=n(1),u=n.n(s);function ReportTable(t){var n=t.rows,a=t.columns,i=t.className,c=t.limit;l()(Array.isArray(n),"rows must be an array."),l()(Array.isArray(a),"columns must be an array."),a.forEach((function(e){var t=e.Component,n=e.field,a=void 0===n?null:n;l()(t||null!==a,"each column must define a Component and/or a field.")})),l()(Number.isInteger(c)||void 0===c,"limit must be an integer, if provided.");var s=a.filter((function(e){return!e.hideOnMobile}));return e.createElement("div",{className:r()("googlesitekit-table","googlesitekit-table--with-list",i)},e.createElement("table",{className:r()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(a.length,"-col"),"googlesitekit-table__wrapper--mobile-".concat(s.length,"-col"))},e.createElement("thead",{className:"googlesitekit-table__head"},e.createElement("tr",{className:"googlesitekit-table__head-row"},a.map((function(t,n){var a=t.title,i=t.description,o=t.primary,c=t.hideOnMobile,l=t.className;return e.createElement("th",{className:r()("googlesitekit-table__head-item",{"googlesitekit-table__head-item--primary":o},{"hidden-on-mobile":c},l),"data-tooltip":i,key:"googlesitekit-table__head-row-".concat(n)},a)})))),e.createElement("tbody",{className:"googlesitekit-table__body"},n.slice(0,c).map((function(t,n){return e.createElement("tr",{className:"googlesitekit-table__body-row",key:"googlesitekit-table__body-row-".concat(n)},a.map((function(n,a){var i=n.Component,c=n.field,l=n.hideOnMobile,s=n.className,u=void 0!==c?o()(t,c):void 0;return e.createElement("td",{key:"googlesitekit-table__body-item-".concat(a),className:r()("googlesitekit-table__body-item",{"hidden-on-mobile":l},s)},e.createElement("div",{className:"googlesitekit-table__body-item-content"},i&&e.createElement(i,{row:t,fieldValue:u}),!i&&u))})))})))))}ReportTable.propTypes={rows:u.a.arrayOf(u.a.oneOfType([u.a.array,u.a.object])).isRequired,columns:u.a.arrayOf(u.a.shape({title:u.a.string,description:u.a.string,primary:u.a.bool,className:u.a.string,field:u.a.string,hideOnMobile:u.a.bool,Component:u.a.componentType})).isRequired,className:u.a.string,limit:u.a.number}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(0),r=n(5),i=n(73),o=n(127),c=n(92),l=n(57),s=n(96),u=n(235);t.a=function(t,n){var d,g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=arguments.length>3&&void 0!==arguments[3]&&arguments[3],p=arguments.length>4&&void 0!==arguments[4]&&arguments[4],m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=Object(r.i)(),b=h[t],v=Object(a.sprintf)(Object(a.__)("Data error in %s","google-site-kit"),null==b?void 0:b.name),y=n;Object(i.b)(m)&&(
55
  /* translators: %s: module name */
56
  v=Object(a.sprintf)(Object(a.__)("Insufficient permissions in %s","google-site-kit"),null==b?void 0:b.name),y=Object(o.a)(y,b));var _=null==m||null===(d=m.data)||void 0===d?void 0:d.reconnectURL,O=_?e.createElement(c.a,{message:y,reconnectURL:_}):y,k=e.createElement(l.a,{title:v,description:O,error:!0});return"Invalid Credentials"===n&&Object(r.u)(u.a),Object(s.a)(k,g,f,p)}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(35),r=n.n(a),i=n(154),o=e._googlesitekitAPIFetchData||{},c=o.nonce,l=o.nonceEndpoint,s=o.preloadedData,u=o.rootURL;r.a.nonceEndpoint=l,r.a.nonceMiddleware=r.a.createNonceMiddleware(c),r.a.rootURLMiddleware=r.a.createRootURLMiddleware(u),r.a.preloadingMiddleware=Object(i.a)(s),r.a.use(r.a.nonceMiddleware),r.a.use(r.a.mediaUploadMiddleware),r.a.use(r.a.rootURLMiddleware),r.a.use(r.a.preloadingMiddleware),t.default=r.a}).call(this,n(18))},,function(e,t,n){"use strict";t.a=function(e){if("string"==typeof e&&e.match(/[0-9]{8}/)){var t=e.slice(0,4),n=Number(e.slice(4,6))-1,a=e.slice(6,8);return new Date(t,n.toString(),a)}return!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(10),r=n.n(a),i=function(e,t){var n=t.dateRangeLength;r()(Array.isArray(e),"report must be an array to partition."),r()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var a=-1*n;return{currentRange:e.slice(a),compareRange:e.slice(2*a,a)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PageHeader}));var a=n(8),r=n.n(a),i=n(1),o=n.n(i);function PageHeader(t){var n=t.title,a=t.icon,i=t.className,o=t.status,c=t.statusText,l=t.fullWidth,s=t.children,u=l?"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-12\n\t\t":"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-4-phone\n\t\tmdc-layout-grid__cell--span-4-tablet\n\t\tmdc-layout-grid__cell--span-6-desktop\n\t\t",d=""!==o||Boolean(s);return e.createElement("header",{className:"googlesitekit-page-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:u},a,e.createElement("h1",{className:r()("googlesitekit-page-header__title",i)},n)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--align-right-tablet mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},e.createElement("div",{className:"googlesitekit-page-header__details"},o&&e.createElement("span",{className:r()("googlesitekit-page-header__status","googlesitekit-page-header__status--".concat(o))},c),s))))}PageHeader.propTypes={title:o.a.string,icon:o.a.node,className:o.a.string,status:o.a.string,statusText:o.a.string,fullWidth:o.a.bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}}).call(this,n(2))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return g}));var r=n(6),i=n.n(r),o=n(8),c=n.n(o),l=n(23),s=n(78),u=n(24),d=n(5),g=function(t,n,r){var o=[],g=r.links,f=r.source,p=r.showURLs,m=r.useAdminURLs,h=void 0!==m&&m,b=r.PrimaryLink,v=void 0===b?u.a:b;r.cap&&(t=t.slice(0,r.cap)),Object(l.each)(t,(function(t,n){var i=[],s=g&&g[n],f=s&&"/"===s[0]?Object(d.g)(e._googlesitekitLegacyData.admin.siteURL,s):s;Object(l.each)(t,(function(e,n){"string"==typeof e&&(e=e.replace(/\(none\)/gi,"direct"));var o=r&&r.hideColumns&&r.hideColumns.mobile.includes(n);i.push(a.createElement("td",{key:"cell-"+n,className:c()("googlesitekit-table__body-item",{"hidden-on-mobile":o})},t[0]===e&&s?a.createElement("div",{className:"googlesitekit-table__body-item-content"},a.createElement(v,{className:"googlesitekit-table__body-item-link",href:h?Object(d.k)("googlesitekit-dashboard",{permaLink:f}):s,external:!h,inherit:!0},e),p&&a.createElement(u.a,{className:"googlesitekit-table__body-item-url",href:s,inherit:!0,external:!0},s)):a.createElement("div",{className:"googlesitekit-table__body-item-content"},e)))})),o.push(a.createElement("tr",{key:"tr-"+n,className:"googlesitekit-table__body-row"},i))}));var y=t&&t[0]&&t[0].length?t[0].length:1,_=r.hideColumns&&r.hideColumns.mobile&&r.hideColumns.mobile.length>0?y-r.hideColumns.mobile.length:y;return a.createElement("div",{className:c()("googlesitekit-table",{"googlesitekit-table--with-list":!r||!r.disableListMode})},a.createElement("table",{className:c()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(y,"-col"),i()({},"googlesitekit-table__wrapper--mobile-".concat(_,"-col"),_!==y))},a.createElement("thead",{className:"googlesitekit-table__head"},a.createElement("tr",{key:"gksc_data_row_header-wrap",style:r&&r.hideHeader?{display:"none"}:{},className:"googlesitekit-table__head-row"},n.map((function(e,t){var n=r&&r.hideColumns&&r.hideColumns.mobile.includes(t);return a.createElement("th",{key:"gksc_data_row_header-".concat(t),className:c()("googlesitekit-table__head-item",{"googlesitekit-table__head-item--primary":e.primary},{"hidden-on-mobile":n}),"data-tooltip":e.tooltip},e.title)})))),a.createElement("tbody",{className:"googlesitekit-table__body"},o)),f&&a.createElement(s.a,{className:"googlesitekit-table__source",name:f.name,href:f.link}))}}).call(this,n(18),n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(2),r=n(4),i=n.n(r),o=n(62),c=i.a.useDispatch;function l(e,t,n){var r=c(o.b),i=r.setWidgetState,l=r.unsetWidgetState;Object(a.useEffect)((function(){return i(e,t,n),function(){l(e,t,n)}}),[e,t,n,i,l])}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSettingsWarning}));var a=n(4),r=n.n(a),i=n(31),o=n(8),c=n.n(o),l=n(177),s=r.a.useSelect;function ModuleSettingsWarning(t){var n=t.slug,a=s((function(e){var t;return null===(t=e(i.a))||void 0===t?void 0:t.getCheckRequirementsError(n)}));return a?e.createElement("div",{className:c()("googlesitekit-settings-module-warning","googlesitekit-settings-module-warning--modules-list")},e.createElement(l.a,{height:"20",width:"23"})," ",a.message):null}}).call(this,n(2))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return v}));var a=n(26),r=n.n(a),i=n(6),o=n.n(i),c=n(7),l=n.n(c),s=n(10),u=n.n(s),d=n(4),g=n.n(d),f=n(89),p=g.a.createRegistryControl,m=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},a={deleteSnapshot:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:l.a.mark((function e(){var t,n,a,r,i,o,c=arguments;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,a=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(r=e.sent,i=r.cacheHit,o=r.value,!i){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!a){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e)})),createSnapshot:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},i=(t={},o()(t,"DELETE_SNAPSHOT",(function(){return Object(f.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",p((function(t){return function(){return Object(f.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(f.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:a,controls:i,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,a=t.type,i=t.payload;switch(a){case"SET_STATE_FROM_SNAPSHOT":var o=i.snapshot,c=(o.error,r()(o,["error"]));return c;default:return e}}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(h(e).map((function(e){return e.getActions().createSnapshot()})))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(h(e).map((function(e){return e.getActions().restoreSnapshot()})))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0);function r(e,t){var n=t||{},r=n.slug,i=void 0===r?"":r,o=n.name,c=void 0===o?"":o,l=n.owner,s=void 0===l?null:l;if(!i||!c)return e;var u="",d="";return"analytics"===i?e.match(/account/i)?u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics account, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit"):e.match(/property/i)?u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics property, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit"):e.match(/view/i)&&(u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics view, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit")):"search-console"===i&&(u=Object(a.__)("Your Google account does not have sufficient permissions for this Search Console property, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit")),u||(u=Object(a.sprintf)(
57
  /* translators: %s: module name */
2
  /* translators: 1: date for user stats, 2: previous date for user stats comparison */
3
  Object(l._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(P,L),x[n][0].toLocaleDateString(P,L)),s=Object(l.sprintf)(
4
  /* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
5
+ Object(l._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),k[t],j[t](e[1]),i,Object(u.r)(Math.abs(r),"%"));D.push([e[0],'<div class="'.concat(c()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":r>0,"googlesitekit-visualization-tooltip--down":r<0}),'">\n\t\t\t\t<p>').concat(o,"</p>\n\t\t\t\t<p>").concat(s,"</p>\n\t\t\t</div>"),E?Object(u.c)(e[1]):e[1],E?Object(u.c)(x[n][1]):x[n][1]])}})),D}var R=function(e){if(!e||!e.length)return null;var t=e[0].data.rows,n=[[{type:"date",label:"Day"},{type:"number",label:"Users"},{type:"number",label:"Sessions"},{type:"number",label:"Goals Completed"}]];return Object(i.each)(t,(function(e){var t=e.metrics[0].values,a=e.dimensions[0],r=Object(g.a)(a);n.push([r,t[0],t[1],t[4]])})),n},A=function(e){var t;return e.error&&e.error.status?function(e,t){var n="";switch(e){case"INVALID_ARGUMENT":n=Object(l.__)("Analytics module needs to be configured.","google-site-kit");break;case"UNAUTHENTICATED":n=Object(l.__)("You need to be authenticated to get this data.","google-site-kit");break;case"PERMISSION_DENIED":n=Object(l.__)("Your account does not have sufficient permission to access this data, please consult to your web administrator.","google-site-kit");break;case"RESOURCE_EXHAUSTED":n=Object(l.__)("Your account exceeded the maximum quota. Please try again later.","google-site-kit");break;case"INTERNAL":n=Object(l.__)("Unexpected internal server error occurred.","google-site-kit");break;case"BACKEND_ERROR":n=Object(l.__)("Analytics server returned unknown error. Please try again later.","google-site-kit");break;case"UNAVAILABLE":n=Object(l.__)("The service was unable to process the request. Please try again later.","google-site-kit");break;default:n=t}return n}(e.error.status,e.error.message):!!(e.code&&e.message&&(null===(t=e.data)||void 0===t?void 0:t.status))&&e.message},x=function(e){if(!e||!e.length)return!0;if(e&&e[0]&&e[0].data&&e[0].data.totals&&e[0].data.totals[0]){var t=e[0].data.totals[0].values,n=!0;return Object(i.each)(t,(function(e){0!==parseInt(e,10)&&(n=!1)})),n}return!1},P={dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:adsenseRevenue",alias:"Earnings"},{expression:"ga:adsenseECPM",alias:"Page RPM"},{expression:"ga:adsensePageImpressions",alias:"Impressions"}],orderby:[{fieldName:"ga:adsenseRevenue",sortOrder:"DESCENDING"}],limit:10},L={compareDateRanges:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"}],limit:180},T={multiDateRange:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"},{expression:"ga:pageviews",alias:"Pageviews"}],limit:10},M={multiDateRange:1,metrics:[{expression:"ga:users",alias:"Total Users"}]},I={dimensions:"ga:channelGrouping",metrics:[{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:users",alias:"Users"},{expression:"ga:newUsers",alias:"New Users"}],orderby:[{fieldName:"ga:users",sortOrder:"DESCENDING"}],limit:10},U=function(){return{dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:pageviews",alias:"Pageviews"},{expression:"ga:uniquePageviews",alias:"Unique Pageviews"},{expression:"ga:bounceRate",alias:"Bounce rate"}],orderby:[{fieldName:"ga:pageviews",sortOrder:"DESCENDING"}],limit:10}},W=function(e){var t,n,a,r,i,o,c,l,s,u;return{totalUsers:null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(a=n.totals)||void 0===a||null===(r=a[0])||void 0===r||null===(i=r.values)||void 0===i?void 0:i[0],previousTotalUsers:null==e||null===(o=e[0])||void 0===o||null===(c=o.data)||void 0===c||null===(l=c.totals)||void 0===l||null===(s=l[1])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0]}}},function(e,t,n){"use strict";var a=n(11),r=n.n(a),i=n(23),o=n(113),c=n(99),l=n(17),s=n(32),u=n(84),d=n(73),g=n(161),f=n(128),p=n(38),m=n(88);n.d(t,"a",(function(){return m.a})),n.d(t,"b",(function(){return m.b}));var h=n(134),b=n(171),v={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=[],s=25;Object(i.each)(e,(function(e){e.key=Object(p.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(p.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),s),s+=25):a.push(e)})),a=Object(i.sortBy)(a,"priority");var g=[],f=[],m={},h=!!a.find((function(e){return e.priority<10}));Object(i.each)(a,(function(e,t){!n&&10<=e.priority&&h?f.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],g.push(e))}));var b=10,v=g.slice(0,b),y=g.slice(b);if(y=y.concat(f),0!==v.length||0!==y.length){0<y.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(y,!0)}),50):this.maxRequests=10;var _=null!==Object(u.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:_||void 0}),data:{request:v},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=r()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(d.d)(o)){var c=m[i][0],s=a[c],u=s.datapoint,g=s.type,f=s.identifier;t.handleWPError({method:"GET",datapoint:u,type:g,identifier:f,error:o})}else Object(p.f)(i,o);m[i].forEach((function(e){var n=a[e];t.resolve(n,o)})),0===y.length&&Object(l.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(l.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,a=e.type,r=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(a),"identifier:".concat(r),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(b.a)({method:t,datapoint:n,type:a,identifier:r,error:i});var o=i.data;if(o&&(o.reason||o.reconnectURL)){var c=0;["authError","insufficientPermissions"].includes(o.reason)&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(f.a),1),c++),o.reconnectURL&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(g.a),1),c++),c&&Object(l.b)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease",(function(e){return Object(l.g)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease"),e+c}))}},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:h.a,collectModuleData:function(e,t){var n=Object(l.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var a=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=Object(p.d)(e,t,n,r);if(!i){var s=Object(p.c)(l,3600);if(void 0!==s)return new Promise((function(e){e(s)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),r)}).then((function(e){return i||Object(p.f)(l,e),Promise.resolve(e)})).catch((function(r){return a.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},set:function(e,t,n,a){var r=this,i={};return i.data=a,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(a){return v.invalidateCacheGroup(e,t,n),new Promise((function(e){e(a)}))})).catch((function(a){return r.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},setModuleActive:function(e,t){return this.set(m.a,"modules","activation",{slug:e,active:t})}};Object(l.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(l.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",v.collectModuleData.bind(v)),t.c=v},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(8),o=n.n(i),c=n(184);function PreviewBlock(t){var n=t.className,a=t.width,r=t.height,i=t.shape,l=t.padding,s=t.smallWidth,u=t.smallHeight,d=t.tabletWidth,g=t.tabletHeight,f=t.desktopWidth,p=t.desktopHeight,m=Object(c.a)(),h=a,b=r;return"small"===m&&s&&u&&(h=s,b=u),"tablet"===m&&d&&g&&(h=d,b=g),("xlarge"===m||"desktop"===m)&&f&&p&&(h=f,b=p),e.createElement("div",{className:o()("googlesitekit-preview-block",n,{"googlesitekit-preview-block--padding":l}),style:{width:h,height:b}},e.createElement("div",{className:o()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===i})}))}PreviewBlock.propTypes={className:r.a.string,width:r.a.string,height:r.a.string,shape:r.a.string,padding:r.a.bool,smallWidth:r.a.string,smallHeight:r.a.string,tabletWidth:r.a.string,tabletHeight:r.a.string,desktopWidth:r.a.string,desktopHeight:r.a.string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0},t.a=PreviewBlock}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}));var a="modules/adsense",r=1},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="core/modules",r="insufficient_module_dependencies"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var a=n(25),r=n.n(a),i=n(2),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(a){return function InnerComponent(i){return e.createElement(t,r()({},i,n,{OriginalComponent:a}))}}}}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){var a=n(15),r=n.n(a),i=n(16),o=n.n(i),c=n(21),l=n.n(c),s=n(22),u=n.n(s),d=n(13),g=n.n(d),f=n(1),p=n.n(f),m=n(8),h=n.n(m),b=n(2),v=n(195),y=n(196);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var O=function(t){l()(Layout,t);var n=_(Layout);function Layout(){return r()(this,Layout),n.apply(this,arguments)}return o()(Layout,[{key:"render",value:function(){var t=this.props,n=t.header,a=t.footer,r=t.children,i=t.title,o=t.headerCTALabel,c=t.headerCTALink,l=t.footerCTALabel,s=t.footerCTALink,u=t.footerContent,d=t.className,g=t.fill,f=t.relative;return e.createElement("div",{className:h()("googlesitekit-layout",d,{"googlesitekit-layout--fill":g,"googlesitekit-layout--relative":f})},n&&e.createElement(v.a,{title:i,ctaLabel:o,ctaLink:c}),r,a&&e.createElement(y.a,{ctaLabel:l,ctaLink:s,footerContent:u}))}}]),Layout}(b.Component);O.propTypes={header:p.a.bool,footer:p.a.bool,children:p.a.node.isRequired,title:p.a.string,headerCTALabel:p.a.string,headerCTALink:p.a.string,footerCTALabel:p.a.string,footerCTALink:p.a.string,footerContent:p.a.node,className:p.a.string,fill:p.a.bool,relative:p.a.bool},O.defaultProps={header:!1,footer:!1,title:"",headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=O}).call(this,n(2))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}));var a="modules/search-console",r=1},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return f}));var a=n(33),r=n.n(a),i=n(23),o=n(48),c=n(72),l="googlesitekit_legacy_1.34.1_",s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==r()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==r()(n)||!n.error&&!n.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var a={value:n,date:Date.now()/1e3};Object(o.a)().setItem(l+t,JSON.stringify(a))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var a=JSON.parse(Object(o.a)().getItem(l+t));return a&&"object"===r()(a)&&a.date&&(!n||Date.now()/1e3-a.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(a.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},g=function(t){s(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(l+t)},f=function(e,t,n){for(var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],l=0,s=o;l<s.length;l++){var u=s[l];if(!u||!u.length)break;i.push(u)}return 3===i.length&&a&&"object"===r()(a)&&Object.keys(a).length&&i.push(Object(c.a)(a)),i.join("::")}}).call(this,n(18))},,function(e,t,n){"use strict";(function(e){var a=n(15),r=n.n(a),i=n(16),o=n.n(i),c=n(49),l=n.n(c),s=n(21),u=n.n(s),d=n(22),g=n.n(d),f=n(13),p=n.n(f),m=n(1),h=n.n(m),b=n(8),v=n.n(b),y=n(2),_=n(0),O=n(67),k=n(78),j=n(5);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=p()(e);if(t){var r=p()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return g()(this,n)}}var S=function(t){u()(DataBlock,t);var n=E(DataBlock);function DataBlock(e){var t;return r()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(l()(t)),t.handleKeyPress=t.handleKeyPress.bind(l()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,a=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||a(n)}},{key:"render",value:function(){var t=this.props,n=t.className,a=t.title,r=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,l=t.context,s=t.period,u=t.selected,d=t.handleStatSelection,g=t.source,f=t.sparkline,p=t.invertChangeColor,m="button"===l?"button":"",h=f;h&&p&&(h=Object(y.cloneElement)(f,{invertChangeColor:p}));var b=o;c&&(b="%"===c?Object(j.r)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(j.r)(o,c)),s&&(b=Object(_.sprintf)(s,b));var E=r&&Object(j.r)(r,i||void 0);return e.createElement("div",{className:v()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&a,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},a),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},E)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:v()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(y.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(O.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},b))),g&&e.createElement(k.a,{className:"googlesitekit-data-block__source",name:g.name,href:g.link,external:null==g?void 0:g.external})))}}]),DataBlock}(y.Component);S.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},S.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=S}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(25),r=n.n(a),i=n(11),o=n.n(i),c=n(15),l=n.n(c),s=n(16),u=n.n(s),d=n(49),g=n.n(d),f=n(21),p=n.n(f),m=n(22),h=n.n(m),b=n(13),v=n.n(b),y=n(293),_=n.n(y),O=n(125),k=n.n(O),j=n(17),E=n(2),S=n(0),D=n(4),w=n.n(D),C=n(5),N=n(94),R=n(112),A=n(188),x=n(88),P=n(12),L=n(236);function T(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=v()(e);if(t){var r=v()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return h()(this,n)}}var U=w.a.withSelect,W=k()(C.v);t.a=function(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{inGrid:!1,fullWidth:!1,createGrid:!1},c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e){if(e&&e.error)return e.error.message?e.error.message:e.error.errors&&e.error.errors[0]&&e.error.errors[0].message?e.error.errors[0].message:Object(S.__)("Unidentified error","google-site-kit");if(e&&e.errors&&e.errors[0]&&e.errors[0].message)return e.errors[0].message;if(e&&e.error_data){var t=Object.values(e.error_data);if(t[0]&&"RateLimitExceeded"===t[0].reason)return Object(S.__)("Too many requests have been sent within a given time span. Please reload this page again in a few seconds.","google-site-kit")}if(e&&e.errors){var n=Object.values(e.errors);if(n[0]&&n[0][0])return n[0][0]}return!!(e.code&&e.message&&e.data&&e.data.status)&&e.message},d=n.reduce((function(e,t){return _()(t.context).forEach((function(n){e[n]=e[n]||[],e[n].push(t)})),e}),{}),f=function(n){p()(NewComponent,n);var f=I(NewComponent);function NewComponent(e){var t;return l()(this,NewComponent),(t=f.call(this,e)).state={data:!1,zeroData:!1,errorMessage:!1,moduleRequiringSetup:""},t.handleModuleDataReset=t.handleModuleDataReset.bind(g()(t)),t.handleReturnedData=t.handleReturnedData.bind(g()(t)),t.addDataRequests=t.addDataRequests.bind(g()(t)),t.removeDataRequests=t.removeDataRequests.bind(g()(t)),t}return u()(NewComponent,[{key:"componentDidMount",value:function(){Object(j.a)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.addDataRequests()}},{key:"componentWillUnmount",value:function(){Object(j.f)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.removeDataRequests()}},{key:"handleModuleDataReset",value:function(){this.removeDataRequests(),this.addDataRequests(),this.setState({data:!1,errorMessage:!1,zeroData:!1})}},{key:"addDataRequests",value:function(){var e=this,t=this.props.dateRange;Object.entries(d).forEach((function(n){var a=o()(n,2),r=a[0],i=a[1];Object(j.b)("googlesitekit.module".concat(r,"DataRequest"),"googlesitekit.withData.".concat(W(i)),(function(n){var a,r=Object(C.i)(),o=[],c=T(i);try{var l=function(){var n,i,c=a.value,l=c||{},s=l.type,u=l.identifier;if(x.b===s&&!(null===(n=r[u])||void 0===n?void 0:n.setupComplete))return e.setState({moduleRequiringSetup:u,moduleRequiringActivation:!(null===(i=r[u])||void 0===i?void 0:i.active)}),"continue";var d=Object(L.a)(c,t);d.callback=function(t){e.handleReturnedData(t,c)},o.push(d)};for(c.s();!(a=c.n()).done;)l()}catch(e){c.e(e)}finally{c.f()}return n.concat(o)}))}))}},{key:"removeDataRequests",value:function(){Object.entries(d).forEach((function(e){var t=o()(e,2),n=t[0],a=t[1];Object(j.g)("googlesitekit.module".concat(n,"DataRequest"),"googlesitekit.withData.".concat(W(a)))}))}},{key:"handleReturnedData",value:function(e,t){var n=this.props,a=n.handleDataError,r=n.handleDataSuccess,i=t.datapoint,o=t.identifier,l=t.toState,u=s(e);u?(this.setState({errorMessage:u,errorObj:e,module:o}),a&&a(u,e)):c(e,i,t)?(a&&a(u,e),this.setState({zeroData:!0})):r&&r(),this.setState({requestDataToState:l,data:e,datapoint:i,module:o})}},{key:"render",value:function(){var n=this.state,o=n.data,c=n.datapoint,l=n.module,s=n.zeroData,u=n.errorMessage,d=n.errorObj,g=n.requestDataToState,f=n.moduleRequiringSetup;if(n.moduleRequiringActivation)return Object(A.b)(f,i.inGrid,i.fullWidth,i.createGrid);if(f)return Object(A.a)(f,i.inGrid,i.fullWidth,i.createGrid);if(!o)return a;if(u)return"string"!=typeof u?u:Object(R.a)(l,u,i.inGrid,i.fullWidth,i.createGrid,d);if(s){var p,m=(null===(p=Object(C.i)()[l])||void 0===p?void 0:p.name)||Object(S.__)("Site Kit","google-site-kit");return Object(N.a)(m,i.inGrid,i.fullWidth,i.createGrid)}return e.createElement(t,r()({data:o,datapoint:c,requestDataToState:g},this.props))}}]),NewComponent}(E.Component),m=t.displayName||t.name||"AnonymousComponent";return f.displayName="withData(".concat(m,")"),U((function(e){return{dateRange:e(P.a).getDateRange(),dateRangeLength:e(P.a).getDateRangeNumberOfDays()}}))(f)}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i}));var a="Date param must construct to a valid date instance or be a valid date instance itself.",r="Invalid dateString parameter, it must be a string.",i='Invalid date range, it must be a string with the format "last-x-days".'},function(e,t,n){"use strict";(function(e){var a=n(25),r=n.n(a),i=n(26),o=n.n(i),c=n(8),l=n.n(c),s=n(1),u=n.n(s),d=n(157),g=n(2),f=n(19),p=Object(g.forwardRef)((function(t,n){var a=t.children,i=t.href,c=t.text,s=t.className,u=t.danger,p=t.disabled,m=t.target,h=t.icon,b=t.trailingIcon,v=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon"]),y=Object(g.useCallback)((function(e){null!==e&&f.i.attachTo(e)}),[]),_=Object(d.a)(n,y),O=i&&!p?"a":"button";return e.createElement(O,r()({className:l()("mdc-button",s,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:p?void 0:i,ref:_,disabled:!!p,target:m||"_self",role:"a"===O?"button":void 0},v),h,a&&e.createElement("span",{className:"mdc-button__label"},a),b)}));p.displayName="Button",p.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element},p.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null},t.a=p}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="_googlesitekitDataLayer",r="data-googlesitekit-gtag"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(53),r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(a.a)(new Date(e))}},function(e,t,n){"use strict";(function(e){var a=n(6),r=n.n(a),i=n(7),o=n.n(i),c=n(14),l=n.n(c),s=n(15),u=n.n(s),d=n(16),g=n.n(d),f=n(49),p=n.n(f),m=n(21),h=n.n(m),b=n(22),v=n.n(b),y=n(13),_=n.n(y),O=n(1),k=n.n(O),j=n(8),E=n.n(j),S=n(23),D=n(2),w=n(144),C=n(75),N=n(38),R=n(40),A=n(43),x=n(170),P=n(185),L=n(24),T=n(137);function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=_()(e);if(t){var r=_()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return v()(this,n)}}var I=function(t){h()(Notification,t);var n,a,i=M(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(D.createRef)(),t.handleDismiss=t.handleDismiss.bind(p()(t)),t.handleCTAClick=t.handleCTAClick.bind(p()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(N.f)("notification::displayed::".concat(t.props.id),new Date),t}return g()(Notification,[{key:"handleDismiss",value:(a=l()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(N.f)("notification::dismissed::".concat(e.props.id),new Date),t.style.display="none";var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=l()(o.a.mark((function e(t){var n,a,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,a=n.isDismissable,!(r=n.onCTAClick)){e.next=5;break}return e.next=5,r(t);case 5:a&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,a=Object(N.c)("notification::dismissed::".concat(t));if(a){var r=new Date(a);r.setSeconds(r.getSeconds()+parseInt(n,10)),r<new Date&&Object(N.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,a=this.props,i=a.children,o=a.id,c=a.className,l=a.title,s=a.description,u=a.blockData,d=a.WinImageSVG,g=a.SmallImageSVG,f=a.format,p=a.learnMoreURL,m=a.learnMoreDescription,h=a.learnMoreLabel,b=a.ctaLink,v=a.ctaLabel,y=a.ctaTarget,_=a.type,O=a.dismiss,k=a.isDismissable,j=a.logo,M=a.module,I=a.moduleName,U=a.pageIndex,W=a.anchorLink,z=a.anchorLinkLabel;if(Object(N.c)("notification::dismissed::".concat(o)))return null;var F,q=n?"is-closed":"is-open",H="large"===f&&"win-stats-increase"===_,G="mdc-layout-grid__cell--span-12";"large"===f?(G="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",H&&(G="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===f&&(G="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),F="win-warning"===_?e.createElement(x.a,null):"win-error"===_?e.createElement(P.a,null):"";var V=e.createElement(D.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(S.map)(u,(function(t,n){return e.createElement("div",{key:n,className:E()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":H,"mdc-layout-grid__cell--span-4-desktop":!H})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(R.a,t)))})))),B=e.createElement(D.Fragment,null,l&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},l),W&&z&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(L.a,{href:W},z)),s&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(D.isValidElement)(s)?s:e.createElement("span",{dangerouslySetInnerHTML:Object(C.a)(s,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),h&&e.createElement(D.Fragment,null," ",e.createElement(L.a,{href:p,external:!0,inherit:!0},h),m),U&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},U))),i),$=M?e.createElement(T.a,{slug:M,size:19}):e.createElement(w.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:E()(c,"googlesitekit-publisher-win",(t={},r()(t,"googlesitekit-publisher-win--".concat(f),f),r()(t,"googlesitekit-publisher-win--".concat(_),_),r()(t,"googlesitekit-publisher-win--".concat(q),q),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},j&&e.createElement("div",{className:E()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":H,"mdc-layout-grid__cell--order-1-tablet":H})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},$),I&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},I)),g&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(g,null)),e.createElement("div",{className:E()("mdc-layout-grid__cell",G)},H?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},B),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},V)):e.createElement(D.Fragment,null,B,V),b&&e.createElement(A.a,{className:"googlesitekit-notification__cta",href:b,target:y,onClick:this.handleCTAClick},v),k&&O&&e.createElement(L.a,{onClick:this.handleDismiss},O)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(d,null))),("win-error"===_||"win-warning"===_)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},F)))))}}]),Notification}(D.Component);I.propTypes={id:k.a.string.isRequired,className:k.a.string,title:k.a.string.isRequired,description:k.a.node,learnMoreURL:k.a.string,learnMoreDescription:k.a.string,learnMoreLabel:k.a.string,blockData:k.a.array,WinImageSVG:k.a.elementType,SmallImageSVG:k.a.elementType,format:k.a.string,ctaLink:k.a.string,ctaLabel:k.a.string,type:k.a.string,dismiss:k.a.string,isDismissable:k.a.bool,logo:k.a.bool,module:k.a.string,moduleName:k.a.string,pageIndex:k.a.string,dismissExpires:k.a.number,showOnce:k.a.bool,onCTAClick:k.a.func,onDismiss:k.a.func,anchorLink:k.a.string,anchorLinkLabel:k.a.string},I.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=I}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var a,r=n(15),i=n.n(r),o=n(16),c=n.n(o),l=function(t){var n=e[t];if(!n)return!1;try{var a="__storage_test__";return n.setItem(a,a),n.removeItem(a),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return a||(a=l("sessionStorage")?e.sessionStorage:l("localStorage")?e.localStorage:new s),a}}).call(this,n(18))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a.b})),n.d(t,"b",(function(){return a.c})),n.d(t,"e",(function(){return r.a})),n.d(t,"f",(function(){return i.a})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return l.a})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return d}));var a=n(42),r=n(65),i=n(55),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t%7,a=0===n;if(a)return Object(i.a)(e,t);var r=t>7&&n<3,o=r?t-n:t+(7-n);return Object(i.a)(e,o)},c=(n(53),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}),l=n(45);function s(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var u=n(0);function d(){var e=function(e){return Object(u.sprintf)(
6
  /* translators: %s: number of days */
7
  Object(u._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,t){e.exports=googlesitekit.api},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return a}));var a="core/ui"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(e){return e instanceof Date&&!isNaN(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return a}));var a="core/location"},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(11),r=n.n(a),i=n(10),o=n.n(i),c=n(42),l=n(65),s=n(45),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;o()(Object(s.a)(e),c.c);var n=e.split("-"),a=r()(n,3),i=a[0],u=a[1],d=a[2],g=new Date(i,u-1,d);return g.setDate(g.getDate()-t),Object(l.a)(g)}},function(e,t,n){"use strict";(function(e){var a,r;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(a=e)||void 0===a||null===(r=a._googlesitekitBaseData)||void 0===r?void 0:r.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(8),o=n.n(i),c=n(24),l=function CTA(t){var n=t.title,a=t.description,r=t.ctaLink,i=t.ctaLabel,l=t.error,s=t.onClick,u=t["aria-label"];return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":l})},n&&e.createElement("h3",{className:"googlesitekit-cta__title"},n),a&&"string"==typeof a&&e.createElement("p",{className:"googlesitekit-cta__description"},a),a&&"string"!=typeof a&&e.createElement("div",{className:"googlesitekit-cta__description"},a),i&&e.createElement(c.a,{href:r,onClick:s,inverse:!l,caps:!0,arrow:!0,"aria-label":u},i))};l.propTypes={title:r.a.string.isRequired,description:r.a.oneOfType([r.a.string,r.a.node]),ctaLink:r.a.string,ctaLabel:r.a.string,"aria-label":r.a.string,error:r.a.bool,onClick:r.a.func},l.defaultProps={title:"",description:"",ctaLink:"",ctaLabel:"",error:!1,onClick:function(){}},t.a=l}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return g}));var a=n(104),r=e._googlesitekitBaseData||{},i=r.isFirstAdmin,o=r.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:r.trackingEnabled,trackingID:r.trackingID,referenceSiteURL:r.referenceSiteURL,userIDHash:r.userIDHash},l=Object(a.a)(c),s=l.enableTracking,u=l.disableTracking,d=l.isTrackingEnabled,g=l.trackEvent;function f(e){e?s():u()}!0===o&&f(d())}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GoogleChart}));var a=n(6),r=n.n(a),i=n(25),o=n.n(i),c=n(37),l=n.n(c),s=n(26),u=n.n(s),d=n(8),g=n.n(d),f=n(1),p=n.n(f),m=n(193),h=n(2),b=n(29);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GoogleChart(t){var n=t.chartEvents,a=t.chartType,r=t.children,i=t.className,c=t.data,s=t.getChartWrapper,d=t.height,f=t.loaded,p=t.loadingHeight,v=t.loadingWidth,y=t.onMouseOver,_=t.onMouseOut,O=t.onReady,k=t.onSelect,j=t.selectedStats,E=t.width,S=u()(t,["chartEvents","chartType","children","className","data","getChartWrapper","height","loaded","loadingHeight","loadingWidth","onMouseOver","onMouseOut","onReady","onSelect","selectedStats","width"]),D=[];(null==c?void 0:c.length)&&(D=c[0].reduce((function(e,t,n){return(null==t?void 0:t.role)?[].concat(l()(e),[n]):e}),[]));var w=c;(null==j?void 0:j.length)>0&&(w=c.map((function(e){return e.filter((function(e,t){return 0===t||j.includes(t-1)||D.includes(t-1)}))})));var C=p||d,N=v||E;C&&!N&&(N="100%"),N&&!C&&(C="100%");var R="PieChart"===a?"circular":"square",A=e.createElement("div",{className:"googlesitekit-chart-loading"},e.createElement(b.a,{className:"googlesitekit-chart-loading__wrapper",height:C,shape:R,width:N})),x=Object(h.useRef)(),P=Object(h.useRef)();if(Object(h.useEffect)((function(){return function(){if(P.current&&x.current){var e=P.current.visualization.events;e.removeAllListeners(x.current.getChart()),e.removeAllListeners(x.current)}}}),[]),Object(h.useLayoutEffect)((function(){var e,t;y&&(null===(e=P.current)||void 0===e||e.visualization.events.addListener(x.current.getChart(),"onmouseover",(function(e){y(e,{chartWrapper:x.current,google:P.current})})));_&&(null===(t=P.current)||void 0===t||t.visualization.events.addListener(x.current.getChart(),"onmouseout",(function(e){_(e,{chartWrapper:x.current,google:P.current})})))}),[y,_]),!f)return e.createElement("div",{className:g()("googlesitekit-chart","googlesitekit-chart-loading__forced",i)},A);var L=l()(n||[]);return O&&L.push({eventName:"ready",callback:O}),k&&L.push({eventName:"select",callback:k}),e.createElement("div",{className:g()("googlesitekit-chart","googlesitekit-chart--".concat(a),i)},e.createElement(m.a,o()({className:"googlesitekit-chart__inner",chartEvents:L,chartType:a,chartVersion:"49",data:w,loader:A,height:d,getChartWrapper:function(e,t){var n,a,r;e!==x.current&&(null===(n=P.current)||void 0===n||n.visualization.events.removeAllListeners(null===(a=x.current)||void 0===a?void 0:a.getChart()),null===(r=P.current)||void 0===r||r.visualization.events.removeAllListeners(x.current));x.current=e,P.current=t,s&&s(e,t)},width:E},S)),r)}GoogleChart.propTypes={className:p.a.string,children:p.a.node,chartEvents:p.a.arrayOf(p.a.shape({eventName:p.a.string,callback:p.a.func})),chartType:p.a.oneOf(["LineChart","PieChart"]).isRequired,data:p.a.array,getChartWrapper:p.a.func,height:p.a.string,loaded:p.a.bool,loadingHeight:p.a.string,loadingWidth:p.a.string,onMouseOut:p.a.func,onMouseOver:p.a.func,onReady:p.a.func,onSelect:p.a.func,selectedStats:p.a.arrayOf(p.a.number),width:p.a.string},GoogleChart.defaultProps=y(y({},m.a.defaultProps),{},{loaded:!0})}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(8),o=n.n(i),c=n(29);function PreviewTable(t){for(var n=t.rows,a=t.rowHeight,r=t.padding,i=[],l=0;n>l;l++)i.push(e.createElement("div",{className:"googlesitekit-preview-table__row",key:"table-row-"+l},e.createElement(c.a,{width:"100%",height:a+"px"})));return e.createElement("div",{className:o()("googlesitekit-preview-table",{"googlesitekit-preview-table--padding":r})},i)}PreviewTable.propTypes={rows:r.a.number,rowHeight:r.a.number,padding:r.a.bool},PreviewTable.defaultProps={rows:11,rowHeight:35,padding:!1},t.a=PreviewTable}).call(this,n(2))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return i}));var a={BOXES:"boxes",COMPOSITE:"composite"},r={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},function(e,t,n){"use strict";(function(e,a){var r=n(11),i=n.n(r),o=n(1),c=n.n(o),l=n(23),s=n(8),u=n.n(s),d=n(2);function TableOverflowContainer(t){var n=t.children,r=Object(d.useState)(!1),o=i()(r,2),c=o[0],s=o[1],g=Object(d.useRef)();Object(d.useEffect)((function(){f();var t=Object(l.debounce)(f,100);return e.addEventListener("resize",t),function(){return e.removeEventListener("resize",t)}}),[]);var f=function(){if(g.current){var e=g.current,t=e.scrollLeft,n=e.scrollWidth-e.offsetWidth;s(t<n-16&&0<n-16)}};return a.createElement("div",{onScroll:Object(l.debounce)(f,100),className:u()("googlesitekit-table-overflow",{"googlesitekit-table-overflow--gradient":c})},a.createElement("div",{ref:g,className:"googlesitekit-table-overflow__container"},n))}TableOverflowContainer.propTypes={children:c.a.element},t.a=TableOverflowContainer}).call(this,n(18),n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ProgressBar}));var a=n(1),r=n.n(a),i=n(8),o=n.n(i);function ProgressBar(t){var n=t.className,a=t.small,r=t.compress,i=t.indeterminate,c=t.height,l=t.progress,s=void 0!==c?Math.round(c/2):void 0,u=l?"scaleX(".concat(l,")"):void 0;return e.createElement("div",{role:"progressbar",style:{marginTop:s,marginBottom:s},className:o()("mdc-linear-progress",n,{"mdc-linear-progress--indeterminate":i,"mdc-linear-progress--small":a,"mdc-linear-progress--compress":r})},e.createElement("div",{className:"mdc-linear-progress__buffering-dots"}),e.createElement("div",{className:"mdc-linear-progress__buffer"}),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__primary-bar",style:{transform:u}},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar"},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})))}ProgressBar.propTypes={className:r.a.string,small:r.a.bool,compress:r.a.bool,indeterminate:r.a.bool,progress:r.a.number,height:r.a.number},ProgressBar.defaultProps={className:"",small:!1,compress:!1,indeterminate:!0,progress:0}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(10),r=n.n(a),i=n(42),o=n(53),c=function(e){var t=new Date(e);r()(Object(o.a)(t),i.a);var n="".concat(t.getMonth()+1),a="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,a.length<2?"0".concat(a):a].join("-")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(44);function r(e){return function(){e[a.a]=e[a.a]||[],e[a.a].push(arguments)}}},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,a=t.invertColor,r=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":a}),width:r,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:r.a.string,invertColor:r.a.bool,width:r.a.number,height:r.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(15),r=n.n(a),i=n(16),o=n.n(i),c=n(21),l=n.n(c),s=n(22),u=n.n(s),d=n(13),g=n.n(d),f=n(1),p=n.n(f),m=n(2);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var b=function(t){l()(DashboardModuleHeader,t);var n=h(DashboardModuleHeader);function DashboardModuleHeader(){return r()(this,DashboardModuleHeader),n.apply(this,arguments)}return o()(DashboardModuleHeader,[{key:"render",value:function(){var t=this.props,n=t.title,a=t.description;return e.createElement("header",{className:"googlesitekit-dashboard-module-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-4-phone "},e.createElement("h3",{className:" googlesitekit-heading-3 googlesitekit-dashboard-module-header__title "},n),a&&e.createElement("p",{className:"googlesitekit-dashboard-module-header__description"},a))))}}]),DashboardModuleHeader}(m.Component);b.propTypes={title:p.a.string,description:p.a.string},b.defaultProps={title:"",description:""},t.a=b}).call(this,n(2))},function(e,t,n){"use strict";var a=n(131);n.d(t,"a",(function(){return a.a}));var r=n(132);n.d(t,"c",(function(){return r.a}));var i=n(133);n.d(t,"b",(function(){return i.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(10),r=n.n(a),i=n(45),o=function(e){var t=e.startDate,n=e.endDate;return r()(Object(i.a)(t),"A valid startDate is required."),r()(Object(i.a)(n),"A valid endDate is required."),{start_date:t.replace(/-/g,""),end_date:n.replace(/-/g,"")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(10),r=n.n(a),i=n(45),o=function(e){var t=e.startDate,n=e.endDate,a=e.compareStartDate,o=e.compareEndDate;r()(Object(i.a)(t),"A valid startDate is required."),r()(Object(i.a)(n),"A valid endDate is required.");var c={"_u.date00":t.replace(/-/g,""),"_u.date01":n.replace(/-/g,"")};return(a||o)&&(r()(Object(i.a)(a)&&Object(i.a)(o),"Valid compareStartDate and compareEndDate values are required."),c["_u.date10"]=a.replace(/-/g,""),c["_u.date11"]=o.replace(/-/g,"")),c}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(33),r=n.n(a),i=n(97),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(a){var i=t[a];i&&"object"===r()(i)&&!Array.isArray(i)&&(i=e(i)),n[a]=i})),n}(e)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var a=n(80),r=n.n(a),i="missing_required_scopes";function o(e){return r()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function l(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(59);function Sparkline(t){var n=t.change,a=t.data,r=t.invertChangeColor,o=t.loadingHeight;if(!a)return null;var c=r?"red":"green",l=r?"green":"red",s={title:"",backgroundColor:"transparent",curveType:"line",width:"100%",height:"50",enableInteractivity:!1,chartArea:{height:"100%",width:"100%"},legend:{position:"none"},axisFontSize:0,hAxis:{baselineColor:"none",ticks:[]},vAxis:{baselineColor:"none",ticks:[]},axes:[],colors:[0<=(parseFloat(n)||0)?c:l]};return a.slice(1).some((function(e){return e[1]>0}))||(s.vAxis.minValue=0,s.vAxis.maxValue=1),e.createElement("div",{className:"googlesitekit-analytics-sparkline-chart-wrap"},e.createElement(i.a,{chartType:"LineChart",data:a,loadingHeight:o,options:s}))}Sparkline.propTypes={invertChangeColor:r.a.bool,loadingHeight:r.a.string},Sparkline.defaultProps={invertChangeColor:!1,loadingHeight:"46px"},t.a=Sparkline}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var a=n(33),r=n.n(a),i=n(107),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===r()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},,function(e,t,n){"use strict";n.d(t,"f",(function(){return s.a})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m.a})),n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return v})),n.d(t,"d",(function(){return y}));var a=n(186),r=n.n(a),i=n(228),o=n.n(i),c=n(5),l=n(116),s=n(217),u=n(8),d=n.n(u),g=n(0),f=n(55),p=function(e,t,n,a,r){var i=[[{type:"date",label:Object(g.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:"number",label:n},{type:"number",label:Object(g.__)("Previous period","google-site-kit")}]],o=function(e){return new Date("".concat(e," 00:00:00"))},l=Object(c.h)(),s={weekday:"short",month:"short",day:"numeric"};return e.forEach((function(e,u){var p,m,h=e[a],b=e.keys[0],v=(null===(p=t[u])||void 0===p?void 0:p[a])||0,y=(null===(m=t[u])||void 0===m?void 0:m.keys[0])||Object(f.a)(b,r),_=Object(g.sprintf)(
8
  /* translators: 1: date for user stats, 2: previous date for user stats comparison */
35
  Object(u.__)("%sK","google-site-kit"),v(m(e),e%10==0?{}:t)):v(e,{signDisplay:"never",maximumFractionDigits:1})},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(s.isFinite)(e)?e:Number(e),Object(s.isFinite)(e)||(console.warn("Invalid number",e,r()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return f(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(s.isPlainObject)(t)&&(n=g({},t))}var a=n,i=a.style,o=void 0===i?"metric":i;return"metric"===o?h(e):"duration"===o?f(e,t):v(e,n)},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?_():n,r=l()(t,["locale"]);return new Intl.NumberFormat(a,r).format(e)},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?_():n,r=t.style,i=void 0===r?"long":r,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(a,{style:i,type:c});return l.format(e)}
36
  /* translators: used between list items, there is a space after the comma. */var s=Object(u.__)(", ","google-site-kit");return e.join(s)},_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(s.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var a=n.match(/^(\w{2})?(_)?(\w{2})/);if(a&&a[0])return a[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var a=n(1),r=n.n(a),i=n(0),o=n(4),c=n.n(o),l=n(31),s=n(73),u=n(127),d=n(92),g=n(57),f=c.a.useSelect;function ReportError(t){var n,a=t.moduleSlug,r=t.error,o=f((function(e){return e(l.a).getModule(a)})),c=Object(i.sprintf)(Object(i.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name),p=r.message;Object(s.b)(r)&&(
37
  /* translators: %s: module name */
38
+ c=Object(i.sprintf)(Object(i.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),p=Object(u.a)(p,o));var m=null==r||null===(n=r.data)||void 0===n?void 0:n.reconnectURL,h=m?e.createElement(d.a,{message:p,reconnectURL:m}):p;return e.createElement(g.a,{title:c,description:h,error:!0})}ReportError.propTypes={moduleSlug:r.a.string.isRequired,error:r.a.object.isRequired}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i}));var a=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},r=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function i(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="core",r="modules"},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return v}));var a=n(7),r=n.n(a),i=n(14),o=n.n(i);n(37);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var s,u="googlesitekit_".concat("1.34.1","_"),d=["sessionStorage","localStorage"],g=[].concat(d),f=function(){var t=o()(r.a.mark((function t(n){var a,i;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",a.setItem(i,i),a.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==a.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),p=function(){var t=o()(r.a.mark((function t(){var n,a,i,o,l;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(a=n.admin)||void 0===a?void 0:a.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}i=c(g),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(l=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,f(l);case 12:if(!t.sent){t.next=14;break}s=e[l];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(r.a.mark((function e(t){var n,a,i,o,c,l,s;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=10;break}if(!(a=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(a),o=i.timestamp,c=i.ttl,l=i.value,s=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:l,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var t=o()(r.a.mark((function t(n,a){var i,o,c,l,s,d,g,f,m=arguments;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,l=i.timestamp,s=void 0===l?Math.round(Date.now()/1e3):l,d=i.isError,g=void 0!==d&&d,t.next=3,p();case 3:if(!(f=t.sent)){t.next=14;break}return t.prev=5,f.setItem("".concat(u).concat(n),JSON.stringify({timestamp:s,ttl:c,value:a,isError:g})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),b=function(){var t=o()(r.a.mark((function t(n){var a;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(a=t.sent)){t.next=13;break}return t.prev=4,a.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),v=function(){var t=o()(r.a.mark((function t(){var n,a,i,o;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,a=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&a.push(o.substring(u.length));return t.abrupt("return",a);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(18))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var a=n(1),r=n.n(a),i=n(0),o=n(4),c=n.n(o),l=n(31),s=n(57),u=c.a.useSelect;function ReportZero(t){var n=t.moduleSlug,a=u((function(e){return e(l.a).getModule(n)}));return e.createElement(s.a,{title:
39
  /* translators: %s: Module name */
40
  Object(i.sprintf)(Object(i.__)("%s Gathering Data","google-site-kit"),null==a?void 0:a.name),description:Object(i.sprintf)(
41
  /* translators: %s: Module name */
51
  /* translators: %s: Module name */
52
  Object(o.__)("%s module setup needs to be completed","google-site-kit"),l.name),ctaLabel:Object(o.__)("Complete setup","google-site-kit"),"aria-label":Object(o.sprintf)(
53
  /* translators: %s: Module name */
54
+ Object(o.__)("Complete %s setup","google-site-kit"),l.name),onClick:v}):null};m.propTypes={moduleSlug:r.a.string.isRequired,title:r.a.string,description:r.a.string},t.a=m}).call(this,n(2))},function(e,t,n){"use strict";function a(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function r(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[a,r,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(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(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var a=n(229),r=n(67),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(a.a)(e.createElement(r.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,a,r,i,o,c,l,s,u,d,g,f,p,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(a=n.rows)||void 0===a?void 0:a.length)||(null==e||null===(r=e[0])||void 0===r||null===(i=r.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(l=c.metrics)||void 0===l||null===(s=l[0])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(g=d.data)||void 0===g||null===(f=g.totals)||void 0===f||null===(p=f[0])||void 0===p||null===(m=p.values)||void 0===m?void 0:m[0])}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var a=n(6),r=n.n(a),i=n(105),o=n(106);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=l(l({},s),t);return r.referenceSiteURL&&(r.referenceSiteURL=r.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(r,n),disableTracking:function(){r.trackingEnabled=!1},isTrackingEnabled:function(){return!!r.trackingEnabled},trackEvent:Object(o.a)(r,n,a)}}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var a=n(66),r=n(44);function i(t,n){var i=Object(a.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(r.b,"]"))){var a=n.createElement("script");a.setAttribute(r.b,""),a.async=!0,a.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(r.a),n.head.appendChild(a),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f}));var a=n(7),r=n.n(a),i=n(6),o=n.n(i),c=n(14),l=n.n(c),s=n(66),u=n(56);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(t,n,a){var i=Object(s.a)(n);return function(){var n=l()(r.a.mark((function n(o,c,l,s){var d,f,p,m,h,b,v,y;return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=t.isFirstAdmin,m=t.referenceSiteURL,h=t.trackingEnabled,b=t.trackingID,v=t.userIDHash,!(null===(d=a._gaUserPrefs)||void 0===d||null===(f=d.ioo)||void 0===f?void 0:f.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:b,event_category:o,event_label:l,value:s,dimension1:m,dimension2:p?"true":"false",dimension3:v,dimension4:"1.34.1",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,g(g({},y),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,a,r){return n.apply(this,arguments)}}()}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));var a=n(146),r=n.n(a)()(e)}).call(this,n(18))},function(e,t,n){"use strict";(function(e){var a=n(0),r=n(24);t.a=function HelpLink(){var t=Object(a.__)("Need help?","google-site-kit");return e.createElement(r.a,{className:"googlesitekit-help-link",href:"https://sitekit.withgoogle.com/documentation/",external:!0},t)}}).call(this,n(2))},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportTable}));var a=n(8),r=n.n(a),i=n(147),o=n.n(i),c=n(10),l=n.n(c),s=n(1),u=n.n(s);function ReportTable(t){var n=t.rows,a=t.columns,i=t.className,c=t.limit;l()(Array.isArray(n),"rows must be an array."),l()(Array.isArray(a),"columns must be an array."),a.forEach((function(e){var t=e.Component,n=e.field,a=void 0===n?null:n;l()(t||null!==a,"each column must define a Component and/or a field.")})),l()(Number.isInteger(c)||void 0===c,"limit must be an integer, if provided.");var s=a.filter((function(e){return!e.hideOnMobile}));return e.createElement("div",{className:r()("googlesitekit-table","googlesitekit-table--with-list",i)},e.createElement("table",{className:r()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(a.length,"-col"),"googlesitekit-table__wrapper--mobile-".concat(s.length,"-col"))},e.createElement("thead",{className:"googlesitekit-table__head"},e.createElement("tr",{className:"googlesitekit-table__head-row"},a.map((function(t,n){var a=t.title,i=t.description,o=t.primary,c=t.hideOnMobile,l=t.className;return e.createElement("th",{className:r()("googlesitekit-table__head-item",{"googlesitekit-table__head-item--primary":o},{"hidden-on-mobile":c},l),"data-tooltip":i,key:"googlesitekit-table__head-row-".concat(n)},a)})))),e.createElement("tbody",{className:"googlesitekit-table__body"},n.slice(0,c).map((function(t,n){return e.createElement("tr",{className:"googlesitekit-table__body-row",key:"googlesitekit-table__body-row-".concat(n)},a.map((function(n,a){var i=n.Component,c=n.field,l=n.hideOnMobile,s=n.className,u=void 0!==c?o()(t,c):void 0;return e.createElement("td",{key:"googlesitekit-table__body-item-".concat(a),className:r()("googlesitekit-table__body-item",{"hidden-on-mobile":l},s)},e.createElement("div",{className:"googlesitekit-table__body-item-content"},i&&e.createElement(i,{row:t,fieldValue:u}),!i&&u))})))})))))}ReportTable.propTypes={rows:u.a.arrayOf(u.a.oneOfType([u.a.array,u.a.object])).isRequired,columns:u.a.arrayOf(u.a.shape({title:u.a.string,description:u.a.string,primary:u.a.bool,className:u.a.string,field:u.a.string,hideOnMobile:u.a.bool,Component:u.a.componentType})).isRequired,className:u.a.string,limit:u.a.number}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(0),r=n(5),i=n(73),o=n(127),c=n(92),l=n(57),s=n(96),u=n(235);t.a=function(t,n){var d,g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=arguments.length>3&&void 0!==arguments[3]&&arguments[3],p=arguments.length>4&&void 0!==arguments[4]&&arguments[4],m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=Object(r.i)(),b=h[t],v=Object(a.sprintf)(Object(a.__)("Data error in %s","google-site-kit"),null==b?void 0:b.name),y=n;Object(i.b)(m)&&(
55
  /* translators: %s: module name */
56
  v=Object(a.sprintf)(Object(a.__)("Insufficient permissions in %s","google-site-kit"),null==b?void 0:b.name),y=Object(o.a)(y,b));var _=null==m||null===(d=m.data)||void 0===d?void 0:d.reconnectURL,O=_?e.createElement(c.a,{message:y,reconnectURL:_}):y,k=e.createElement(l.a,{title:v,description:O,error:!0});return"Invalid Credentials"===n&&Object(r.u)(u.a),Object(s.a)(k,g,f,p)}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var a=n(35),r=n.n(a),i=n(154),o=e._googlesitekitAPIFetchData||{},c=o.nonce,l=o.nonceEndpoint,s=o.preloadedData,u=o.rootURL;r.a.nonceEndpoint=l,r.a.nonceMiddleware=r.a.createNonceMiddleware(c),r.a.rootURLMiddleware=r.a.createRootURLMiddleware(u),r.a.preloadingMiddleware=Object(i.a)(s),r.a.use(r.a.nonceMiddleware),r.a.use(r.a.mediaUploadMiddleware),r.a.use(r.a.rootURLMiddleware),r.a.use(r.a.preloadingMiddleware),t.default=r.a}).call(this,n(18))},,function(e,t,n){"use strict";t.a=function(e){if("string"==typeof e&&e.match(/[0-9]{8}/)){var t=e.slice(0,4),n=Number(e.slice(4,6))-1,a=e.slice(6,8);return new Date(t,n.toString(),a)}return!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(10),r=n.n(a),i=function(e,t){var n=t.dateRangeLength;r()(Array.isArray(e),"report must be an array to partition."),r()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var a=-1*n;return{currentRange:e.slice(a),compareRange:e.slice(2*a,a)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PageHeader}));var a=n(8),r=n.n(a),i=n(1),o=n.n(i);function PageHeader(t){var n=t.title,a=t.icon,i=t.className,o=t.status,c=t.statusText,l=t.fullWidth,s=t.children,u=l?"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-12\n\t\t":"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-4-phone\n\t\tmdc-layout-grid__cell--span-4-tablet\n\t\tmdc-layout-grid__cell--span-6-desktop\n\t\t",d=""!==o||Boolean(s);return e.createElement("header",{className:"googlesitekit-page-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:u},a,e.createElement("h1",{className:r()("googlesitekit-page-header__title",i)},n)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--align-right-tablet mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},e.createElement("div",{className:"googlesitekit-page-header__details"},o&&e.createElement("span",{className:r()("googlesitekit-page-header__status","googlesitekit-page-header__status--".concat(o))},c),s))))}PageHeader.propTypes={title:o.a.string,icon:o.a.node,className:o.a.string,status:o.a.string,statusText:o.a.string,fullWidth:o.a.bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}}).call(this,n(2))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return g}));var r=n(6),i=n.n(r),o=n(8),c=n.n(o),l=n(23),s=n(78),u=n(24),d=n(5),g=function(t,n,r){var o=[],g=r.links,f=r.source,p=r.showURLs,m=r.useAdminURLs,h=void 0!==m&&m,b=r.PrimaryLink,v=void 0===b?u.a:b;r.cap&&(t=t.slice(0,r.cap)),Object(l.each)(t,(function(t,n){var i=[],s=g&&g[n],f=s&&"/"===s[0]?Object(d.g)(e._googlesitekitLegacyData.admin.siteURL,s):s;Object(l.each)(t,(function(e,n){"string"==typeof e&&(e=e.replace(/\(none\)/gi,"direct"));var o=r&&r.hideColumns&&r.hideColumns.mobile.includes(n);i.push(a.createElement("td",{key:"cell-"+n,className:c()("googlesitekit-table__body-item",{"hidden-on-mobile":o})},t[0]===e&&s?a.createElement("div",{className:"googlesitekit-table__body-item-content"},a.createElement(v,{className:"googlesitekit-table__body-item-link",href:h?Object(d.k)("googlesitekit-dashboard",{permaLink:f}):s,external:!h,inherit:!0},e),p&&a.createElement(u.a,{className:"googlesitekit-table__body-item-url",href:s,inherit:!0,external:!0},s)):a.createElement("div",{className:"googlesitekit-table__body-item-content"},e)))})),o.push(a.createElement("tr",{key:"tr-"+n,className:"googlesitekit-table__body-row"},i))}));var y=t&&t[0]&&t[0].length?t[0].length:1,_=r.hideColumns&&r.hideColumns.mobile&&r.hideColumns.mobile.length>0?y-r.hideColumns.mobile.length:y;return a.createElement("div",{className:c()("googlesitekit-table",{"googlesitekit-table--with-list":!r||!r.disableListMode})},a.createElement("table",{className:c()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(y,"-col"),i()({},"googlesitekit-table__wrapper--mobile-".concat(_,"-col"),_!==y))},a.createElement("thead",{className:"googlesitekit-table__head"},a.createElement("tr",{key:"gksc_data_row_header-wrap",style:r&&r.hideHeader?{display:"none"}:{},className:"googlesitekit-table__head-row"},n.map((function(e,t){var n=r&&r.hideColumns&&r.hideColumns.mobile.includes(t);return a.createElement("th",{key:"gksc_data_row_header-".concat(t),className:c()("googlesitekit-table__head-item",{"googlesitekit-table__head-item--primary":e.primary},{"hidden-on-mobile":n}),"data-tooltip":e.tooltip},e.title)})))),a.createElement("tbody",{className:"googlesitekit-table__body"},o)),f&&a.createElement(s.a,{className:"googlesitekit-table__source",name:f.name,href:f.link}))}}).call(this,n(18),n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(2),r=n(4),i=n.n(r),o=n(62),c=i.a.useDispatch;function l(e,t,n){var r=c(o.b),i=r.setWidgetState,l=r.unsetWidgetState;Object(a.useEffect)((function(){return i(e,t,n),function(){l(e,t,n)}}),[e,t,n,i,l])}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSettingsWarning}));var a=n(4),r=n.n(a),i=n(31),o=n(8),c=n.n(o),l=n(177),s=r.a.useSelect;function ModuleSettingsWarning(t){var n=t.slug,a=s((function(e){var t;return null===(t=e(i.a))||void 0===t?void 0:t.getCheckRequirementsError(n)}));return a?e.createElement("div",{className:c()("googlesitekit-settings-module-warning","googlesitekit-settings-module-warning--modules-list")},e.createElement(l.a,{height:"20",width:"23"})," ",a.message):null}}).call(this,n(2))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return v}));var a=n(26),r=n.n(a),i=n(6),o=n.n(i),c=n(7),l=n.n(c),s=n(10),u=n.n(s),d=n(4),g=n.n(d),f=n(89),p=g.a.createRegistryControl,m=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},a={deleteSnapshot:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:l.a.mark((function e(){var t,n,a,r,i,o,c=arguments;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,a=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(r=e.sent,i=r.cacheHit,o=r.value,!i){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!a){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e)})),createSnapshot:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},i=(t={},o()(t,"DELETE_SNAPSHOT",(function(){return Object(f.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",p((function(t){return function(){return Object(f.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(f.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:a,controls:i,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,a=t.type,i=t.payload;switch(a){case"SET_STATE_FROM_SNAPSHOT":var o=i.snapshot,c=(o.error,r()(o,["error"]));return c;default:return e}}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(h(e).map((function(e){return e.getActions().createSnapshot()})))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(h(e).map((function(e){return e.getActions().restoreSnapshot()})))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0);function r(e,t){var n=t||{},r=n.slug,i=void 0===r?"":r,o=n.name,c=void 0===o?"":o,l=n.owner,s=void 0===l?null:l;if(!i||!c)return e;var u="",d="";return"analytics"===i?e.match(/account/i)?u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics account, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit"):e.match(/property/i)?u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics property, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit"):e.match(/view/i)&&(u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics view, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit")):"search-console"===i&&(u=Object(a.__)("Your Google account does not have sufficient permissions for this Search Console property, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit")),u||(u=Object(a.sprintf)(
57
  /* translators: %s: module name */
dist/assets/js/{googlesitekit-datastore-forms.36e1382387fefc5cc906.js → googlesitekit-datastore-forms.16ce7c3b1682b0678259.js} RENAMED
@@ -1,4 +1,4 @@
1
- (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[10],{0:function(t,r){t.exports=googlesitekit.i18n},101:function(t,r,e){"use strict";function n(t){return t.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function o(t){return"<p>".concat(t.replace(/\n{2,}/g,"</p><p>"),"</p>")}function a(t){return t.replace(/\n/gi,"<br>")}function i(t){for(var r=t,e=0,i=[n,o,a];e<i.length;e++){r=(0,i[e])(r)}return r}e.d(r,"a",(function(){return i}))},102:function(t,r,e){"use strict";e.d(r,"a",(function(){return n}));var n=function(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)]}},103:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return a})),e.d(r,"b",(function(){return i}));var n=e(229),o=e(67),a=function(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(r)))return"";var a=e.invertColor,i=void 0!==a&&a;return Object(n.a)(t.createElement(o.a,{direction:r>0?"up":"down",invertColor:i}))},i=function(t){var r,e,n,o,a,i,c,u,s,l,f,d,v,p,g;if(void 0!==t)return 1===(null==t||null===(r=t[0])||void 0===r||null===(e=r.data)||void 0===e||null===(n=e.rows)||void 0===n?void 0:n.length)||(null==t||null===(o=t[0])||void 0===o||null===(a=o.data)||void 0===a||null===(i=a.rows)||void 0===i||null===(c=i[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==t||null===(f=t[0])||void 0===f||null===(d=f.data)||void 0===d||null===(v=d.totals)||void 0===v||null===(p=v[0])||void 0===p||null===(g=p.values)||void 0===g?void 0:g[0])}}).call(this,e(2))},104:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return l}));var n=e(6),o=e.n(n),a=e(105),i=e(106);function c(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function u(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?c(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,o=u(u({},s),r);return o.referenceSiteURL&&(o.referenceSiteURL=o.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(a.a)(o,e),disableTracking:function(){o.trackingEnabled=!1},isTrackingEnabled:function(){return!!o.trackingEnabled},trackEvent:Object(i.a)(o,e,n)}}}).call(this,e(18))},105:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return a}));var n=e(66),o=e(44);function a(r,e){var a=Object(n.a)(e);return function(){r.trackingEnabled=!0;var e=t.document;if(!e.querySelector("script[".concat(o.b,"]"))){var n=e.createElement("script");n.setAttribute(o.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(r.trackingID,"&l=").concat(o.a),e.head.appendChild(n),a("js",new Date),a("config",r.trackingID)}}}}).call(this,e(18))},106:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return v}));var n=e(7),o=e.n(n),a=e(6),i=e.n(a),c=e(14),u=e.n(c),s=e(66),l=e(56);function f(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function d(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?f(Object(e),!0).forEach((function(r){i()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function v(r,e,n){var a=Object(s.a)(e);return function(){var e=u()(o.a.mark((function e(i,c,u,s){var f,v,p,g,b,h,m,y;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p=r.isFirstAdmin,g=r.referenceSiteURL,b=r.trackingEnabled,h=r.trackingID,m=r.userIDHash,!(null===(f=n._gaUserPrefs)||void 0===f||null===(v=f.ioo)||void 0===v?void 0:v.call(f))){e.next=3;break}return e.abrupt("return");case 3:if(b){e.next=5;break}return e.abrupt("return");case 5:return y={send_to:h,event_category:i,event_label:u,value:s,dimension1:g,dimension2:p?"true":"false",dimension3:m,dimension4:"1.34.0",dimension5:Array.from(l.a).join(", ")},e.abrupt("return",new Promise((function(r){var e=setTimeout((function(){t.console.warn('Tracking event "'.concat(c,'" (category "').concat(i,'") took too long to fire.')),r()}),1e3);a("event",c,d(d({},y),{},{event_callback:function(){clearTimeout(e),r()}}))})));case 7:case"end":return e.stop()}}),e)})));return function(t,r,n,o){return e.apply(this,arguments)}}()}}).call(this,e(18))},107:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return o}));var n=e(146),o=e.n(n)()(t)}).call(this,e(18))},123:function(t,r,e){"use strict";e.d(r,"b",(function(){return n})),e.d(r,"a",(function(){return n}));var n="core/forms"},124:function(t,r,e){"use strict";e.d(r,"a",(function(){return g})),e.d(r,"c",(function(){return h})),e.d(r,"b",(function(){return m}));var n=e(26),o=e.n(n),a=e(6),i=e.n(a),c=e(7),u=e.n(c),s=e(10),l=e.n(s),f=e(4),d=e.n(f),v=e(89),p=d.a.createRegistryControl,g=function(t){var r;l()(t,"storeName is required to create a snapshot store.");var e={},n={deleteSnapshot:u.a.mark((function t(){var r;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})),restoreSnapshot:u.a.mark((function t(){var r,e,n,o,a,i,c=arguments;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c.length>0&&void 0!==c[0]?c[0]:{},e=r.clearAfterRestore,n=void 0===e||e,t.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(o=t.sent,a=o.cacheHit,i=o.value,!a){t.next=13;break}return t.next=10,{payload:{snapshot:i},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!n){t.next=13;break}return t.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return t.abrupt("return",a);case 14:case"end":return t.stop()}}),t)})),createSnapshot:u.a.mark((function t(){var r;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))},a=(r={},i()(r,"DELETE_SNAPSHOT",(function(){return Object(v.a)("datastore::cache::".concat(t))})),i()(r,"CREATE_SNAPSHOT",p((function(r){return function(){return Object(v.d)("datastore::cache::".concat(t),r.stores[t].store.getState())}}))),i()(r,"RESTORE_SNAPSHOT",(function(){return Object(v.b)("datastore::cache::".concat(t),3600)})),r);return{initialState:e,actions:n,controls:a,reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=arguments.length>1?arguments[1]:void 0,n=r.type,a=r.payload;switch(n){case"SET_STATE_FROM_SNAPSHOT":var i=a.snapshot,c=(i.error,o()(i,["error"]));return c;default:return t}}}},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Object.values(t.stores).filter((function(t){return Object.keys(t.getActions()).includes("restoreSnapshot")}))},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Promise.all(b(t).map((function(t){return t.getActions().createSnapshot()})))},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Promise.all(b(t).map((function(t){return t.getActions().restoreSnapshot()})))}},32:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return i})),e.d(r,"b",(function(){return c}));var n=e(25),o=e.n(n),a=e(2),i=function(t){return function(r){return function FilteredComponent(e){return Object(a.createElement)(a.Fragment,{},"",Object(a.createElement)(r,e),t)}}},c=function(r,e){return function(n){return function InnerComponent(a){return t.createElement(r,o()({},a,e,{OriginalComponent:n}))}}}}).call(this,e(2))},4:function(t,r){t.exports=googlesitekit.data},42:function(t,r,e){"use strict";e.d(r,"a",(function(){return n})),e.d(r,"c",(function(){return o})),e.d(r,"b",(function(){return a}));var n="Date param must construct to a valid date instance or be a valid date instance itself.",o="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".'},44:function(t,r,e){"use strict";e.d(r,"a",(function(){return n})),e.d(r,"b",(function(){return o}));var n="_googlesitekitDataLayer",o="data-googlesitekit-gtag"},45:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(53),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r="string"==typeof t;if(!r)return!1;var e=t.split("-");return 3===e.length&&Object(n.a)(new Date(t))}},48:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return l}));var n,o=e(15),a=e.n(o),i=e(16),c=e.n(i),u=function(r){var e=t[r];if(!e)return!1;try{var n="__storage_test__";return e.setItem(n,n),e.removeItem(n),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}},s=function(){function NullStorage(){a()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return n||(n=u("sessionStorage")?t.sessionStorage:u("localStorage")?t.localStorage:new s),n}}).call(this,e(18))},5:function(t,r,e){"use strict";(function(t){e.d(r,"l",(function(){return S})),e.d(r,"a",(function(){return _})),e.d(r,"i",(function(){return D})),e.d(r,"k",(function(){return P})),e.d(r,"y",(function(){return A})),e.d(r,"u",(function(){return x})),e.d(r,"d",(function(){return N}));var n=e(6),o=e.n(n),a=e(33),i=e.n(a),c=e(145),u=e.n(c),s=e(139),l=e.n(s),f=e(17),d=e(99),v=e(58);e.d(r,"w",(function(){return v.b}));var p=e(32),g=e(75);e.d(r,"t",(function(){return g.a})),e.d(r,"x",(function(){return g.b}));var b=e(72);e.d(r,"v",(function(){return b.a}));var h=e(84);e.d(r,"b",(function(){return h.b})),e.d(r,"j",(function(){return h.c}));e(48);var m=e(85);e.d(r,"h",(function(){return m.a})),e.d(r,"o",(function(){return m.b})),e.d(r,"r",(function(){return m.c})),e.d(r,"s",(function(){return m.d})),e.d(r,"e",(function(){return p.b}));var y=e(101);e.d(r,"p",(function(){return y.a}));var O=e(102);e.d(r,"c",(function(){return O.a}));e(50);var j=e(103);e.d(r,"f",(function(){return j.a})),e.d(r,"n",(function(){return j.b}));var w=e(98);function k(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function E(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?k(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):k(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}e.d(r,"g",(function(){return w.a})),e.d(r,"m",(function(){return w.b})),e.d(r,"q",(function(){return w.c}));var S=function(t){switch(t){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},_=function(t,r){if("0"===t||0===t||isNaN(t))return null;var e=(r-t)/t;return isNaN(e)||!u()(e)?null:e},D=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t._googlesitekitLegacyData,e=r.modules;return e?Object.keys(e).reduce((function(t,r){return"object"!==i()(e[r])||void 0===e[r].slug||void 0===e[r].name||e[r].slug!==r?t:E(E({},t),{},o()({},r,e[r]))}),{}):{}},P=function(r,e){var n=t._googlesitekitLegacyData.admin.adminRoot;return r||(r="googlesitekit-dashboard"),e=E({page:r},e),Object(d.a)(n,e)},A=function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}},x=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(f.b)("googlesitekit.ErrorNotification","googlesitekit.ErrorNotification",Object(p.b)(t,r),1)},N=function(t){if(!t)return"";var r=t.replace(/&#(\d+);/g,(function(t,r){return String.fromCharCode(r)})).replace(/(\\)/g,"");return l()(r)}}).call(this,e(18))},50:function(t,r,e){"use strict";e.d(r,"a",(function(){return n.b})),e.d(r,"b",(function(){return n.c})),e.d(r,"e",(function(){return o.a})),e.d(r,"f",(function(){return a.a})),e.d(r,"g",(function(){return i})),e.d(r,"h",(function(){return c})),e.d(r,"i",(function(){return u.a})),e.d(r,"d",(function(){return s})),e.d(r,"c",(function(){return f}));var n=e(42),o=e(65),a=e(55),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=r%7,n=0===e;if(n)return Object(a.a)(t,r);var o=r>7&&e<3,i=o?r-e:r+(7-e);return Object(a.a)(t,i)},c=(e(53),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=t.split("-");return 3===r.length&&"last"===r[0]&&!Number.isNaN(r[1])&&!Number.isNaN(parseFloat(r[1]))&&"days"===r[2]}),u=e(45);function s(t){var r=t.match(/last-(\d+)-days/);if(r&&r[1])return parseInt(r[1],10);throw new Error("Unrecognized date range slug.")}var l=e(0);function f(){var t=function(t){return Object(l.sprintf)(
2
  /* translators: %s: number of days */
3
  Object(l._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}}}},53:function(t,r,e){"use strict";e.d(r,"a",(function(){return n}));var n=function(t){return t instanceof Date&&!isNaN(t)}},55:function(t,r,e){"use strict";e.d(r,"a",(function(){return l}));var n=e(11),o=e.n(n),a=e(10),i=e.n(a),c=e(42),u=e(65),s=e(45),l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;i()(Object(s.a)(t),c.c);var e=t.split("-"),n=o()(e,3),a=n[0],l=n[1],f=n[2],d=new Date(a,l-1,f);return d.setDate(d.getDate()-r),Object(u.a)(d)}},56:function(t,r,e){"use strict";(function(t){var n,o;e.d(r,"a",(function(){return a})),e.d(r,"b",(function(){return i}));var a=new Set((null===(n=t)||void 0===n||null===(o=n._googlesitekitBaseData)||void 0===o?void 0:o.enabledFeatures)||[]),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return r instanceof Set&&r.has(t)}}).call(this,e(18))},58:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return v})),e.d(r,"b",(function(){return d}));var n=e(104),o=t._googlesitekitBaseData||{},a=o.isFirstAdmin,i=o.trackingAllowed,c={isFirstAdmin:a,trackingEnabled:o.trackingEnabled,trackingID:o.trackingID,referenceSiteURL:o.referenceSiteURL,userIDHash:o.userIDHash},u=Object(n.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function v(t){t?s():l()}!0===i&&v(f())}).call(this,e(18))},65:function(t,r,e){"use strict";e.d(r,"a",(function(){return c}));var n=e(10),o=e.n(n),a=e(42),i=e(53),c=function(t){var r=new Date(t);o()(Object(i.a)(r),a.a);var e="".concat(r.getMonth()+1),n="".concat(r.getDate());return[r.getFullYear(),e.length<2?"0".concat(e):e,n.length<2?"0".concat(n):n].join("-")}},66:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(44);function o(t){return function(){t[n.a]=t[n.a]||[],t[n.a].push(arguments)}}},67:function(t,r,e){"use strict";(function(t){var n=e(1),o=e.n(n),a=e(8),i=e.n(a);function ChangeArrow(r){var e=r.direction,n=r.invertColor,o=r.width,a=r.height;return t.createElement("svg",{className:i()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(e),{"googlesitekit-change-arrow--inverted-color":n}),width:o,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("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.a.string,invertColor:o.a.bool,width:o.a.number,height:o.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},r.a=ChangeArrow}).call(this,e(2))},72:function(t,r,e){"use strict";e.d(r,"a",(function(){return c}));var n=e(33),o=e.n(n),a=e(97),i=e.n(a),c=function(t){return i()(JSON.stringify(function t(r){var e={};return Object.keys(r).sort().forEach((function(n){var a=r[n];a&&"object"===o()(a)&&!Array.isArray(a)&&(a=t(a)),e[n]=a})),e}(t)))}},75:function(t,r,e){"use strict";e.d(r,"a",(function(){return i})),e.d(r,"b",(function(){return c}));var n=e(33),o=e.n(n),a=e(107),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:a.a.sanitize(t,r)}};function c(t){var r,e="object"===o()(t)?t.toString():t;return null==e||null===(r=e.replace)||void 0===r?void 0:r.call(e,/\/+$/,"")}},76:function(t,r,e){"use strict";e.d(r,"a",(function(){return g})),e.d(r,"b",(function(){return b}));var n=e(6),o=e.n(n),a=e(33),i=e.n(a),c=e(10),u=e.n(c),s=e(97),l=e.n(s),f=e(5);function d(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function v(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?d(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function p(t,r){if(r&&Array.isArray(r)){var e=r.map((function(t){return"object"===i()(t)?Object(f.v)(t):t}));return"".concat(t,"::").concat(l()(JSON.stringify(e)))}return t}var g={receiveError:function(t,r,e){return u()(t,"error is required."),r&&u()(e&&Array.isArray(e),"args is required (and must be an array) when baseName is specified."),{type:"RECEIVE_ERROR",payload:{error:t,baseName:r,args:e}}},clearError:function(t,r){return t&&u()(r&&Array.isArray(r),"args is required (and must be an array) when baseName is specified."),{type:"CLEAR_ERROR",payload:{baseName:t,args:r}}},clearErrors:function(t){return{type:"CLEAR_ERRORS",payload:{baseName:t}}}};function b(){var t={getErrorForSelector:function(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(e,"selectorName is required."),t.getError(r,e,n)},getErrorForAction:function(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(e,"actionName is required."),t.getError(r,e,n)},getError:function(t,r,e){var n=t.error,o=t.errors;return r||e?(u()(r,"baseName is required."),o[p(r,e)]):n},getErrors:function(t){var r=new Set(Object.values(t.errors));return void 0!==t.error&&r.add(t.error),Array.from(r)},hasErrors:function(r){return t.getErrors(r).length>0}};return{initialState:{errors:{},error:void 0},actions:g,controls:{},reducer:function(t,r){var e=r.type,n=r.payload;switch(e){case"RECEIVE_ERROR":var a=n.baseName,i=n.args,c=n.error;return v(v({},t),{},a?{errors:v(v({},t.errors||{}),{},o()({},p(a,i),c))}:{error:c});case"CLEAR_ERROR":var u=n.baseName,s=n.args,l=v({},t);if(u){var f=p(u,s);l.errors=v({},t.errors||{}),delete l.errors[f]}else l.error=void 0;return l;case"CLEAR_ERRORS":var d=n.baseName,g=v({},t);if(d)for(var b in g.errors=v({},t.errors||{}),g.errors)(b===d||b.startsWith("".concat(d,"::")))&&delete g.errors[b];else g.errors={},g.error=void 0;return g;default:return t}},resolvers:{},selectors:t}}},84:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return u})),e.d(r,"b",(function(){return s})),e.d(r,"c",(function(){return f}));var n=e(11),o=e.n(n),a=e(0);function i(t,r){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"==typeof t)return c(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return c(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(u)throw a}}}}function c(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=null,e=null,n=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),o=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(n&&o)return!1;if(r=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),e=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===r&&null===e)return!1;var i=document.createElement("span");i.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(t));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=t;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(a.sprintf)(
4
  /* translators: %d is the number of notifications */
@@ -13,4 +13,4 @@ Object(l._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?
13
  Object(l.__)("%sM","google-site-kit"),m(g(t),t%10==0?{}:r)):1e4<=t?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(l.__)("%sK","google-site-kit"),m(g(t))):1e3<=t?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(l.__)("%sK","google-site-kit"),m(g(t),t%10==0?{}:r)):m(t,{signDisplay:"never",maximumFractionDigits:1})},h=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(s.isFinite)(t)?t:Number(t),Object(s.isFinite)(t)||(console.warn("Invalid number",t,o()(t)),t=0);var e={};if("%"===r)e={style:"percent",maximumFractionDigits:2};else{if("s"===r)return v(t,{unitDisplay:"narrow"});r&&"string"==typeof r?e={style:"currency",currency:r}:Object(s.isPlainObject)(r)&&(e=d({},r))}var n=e,a=n.style,i=void 0===a?"metric":a;return"metric"===i?b(t):"duration"===i?v(t,r):m(t,e)},m=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.locale,n=void 0===e?O():e,o=u()(r,["locale"]);return new Intl.NumberFormat(n,o).format(t)},y=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.locale,n=void 0===e?O():e,o=r.style,a=void 0===o?"long":o,i=r.type,c=void 0===i?"conjunction":i;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:a,type:c});return u.format(t)}
16
- /* translators: used between list items, there is a space after the comma. */var s=Object(l.__)(", ","google-site-kit");return t.join(s)},O=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,e=Object(s.get)(r,["_googlesitekitLegacyData","locale"]);if(e){var n=e.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return r.navigator.language}}).call(this,e(18))},89:function(t,r,e){"use strict";(function(t){e.d(r,"b",(function(){return g})),e.d(r,"d",(function(){return b})),e.d(r,"a",(function(){return h})),e.d(r,"c",(function(){return m}));var n=e(7),o=e.n(n),a=e(14),i=e.n(a);e(37);function c(t,r){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"==typeof t)return u(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return u(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(c)throw a}}}}function u(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var s,l="googlesitekit_".concat("1.34.0","_"),f=["sessionStorage","localStorage"],d=[].concat(f),v=function(){var r=i()(o.a.mark((function r(e){var n,a;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t[e]){r.next=3;break}return r.abrupt("return",!1);case 3:return r.prev=3,a="__storage_test__",n.setItem(a,a),n.removeItem(a),r.abrupt("return",!0);case 10:return r.prev=10,r.t0=r.catch(3),r.abrupt("return",r.t0 instanceof DOMException&&(22===r.t0.code||1014===r.t0.code||"QuotaExceededError"===r.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===r.t0.name)&&0!==n.length);case 13:case"end":return r.stop()}}),r,null,[[3,10]])})));return function(t){return r.apply(this,arguments)}}(),p=function(){var r=i()(o.a.mark((function r(){var e,n,a,i,u;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null===(e=t._googlesitekitLegacyData)||void 0===e||null===(n=e.admin)||void 0===n?void 0:n.nojscache)){r.next=2;break}return r.abrupt("return",null);case 2:if(void 0!==s){r.next=25;break}a=c(d),r.prev=4,a.s();case 6:if((i=a.n()).done){r.next=16;break}if(u=i.value,!s){r.next=10;break}return r.abrupt("continue",14);case 10:return r.next=12,v(u);case 12:if(!r.sent){r.next=14;break}s=t[u];case 14:r.next=6;break;case 16:r.next=21;break;case 18:r.prev=18,r.t0=r.catch(4),a.e(r.t0);case 21:return r.prev=21,a.f(),r.finish(21);case 24:void 0===s&&(s=null);case 25:return r.abrupt("return",s);case 26:case"end":return r.stop()}}),r,null,[[4,18,21,24]])})));return function(){return r.apply(this,arguments)}}(),g=function(){var t=i()(o.a.mark((function t(r){var e,n,a,i,c,u,s;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(e=t.sent)){t.next=10;break}if(!(n=e.getItem("".concat(l).concat(r)))){t.next=10;break}if(a=JSON.parse(n),i=a.timestamp,c=a.ttl,u=a.value,s=a.isError,!i||c&&!(Math.round(Date.now()/1e3)-i<c)){t.next=10;break}return t.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return t.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}(),b=function(){var r=i()(o.a.mark((function r(e,n){var a,i,c,u,s,f,d,v,g=arguments;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=g.length>2&&void 0!==g[2]?g[2]:{},i=a.ttl,c=void 0===i?3600:i,u=a.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=a.isError,d=void 0!==f&&f,r.next=3,p();case 3:if(!(v=r.sent)){r.next=14;break}return r.prev=5,v.setItem("".concat(l).concat(e),JSON.stringify({timestamp:s,ttl:c,value:n,isError:d})),r.abrupt("return",!0);case 10:return r.prev=10,r.t0=r.catch(5),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",!1);case 14:return r.abrupt("return",!1);case 15:case"end":return r.stop()}}),r,null,[[5,10]])})));return function(t,e){return r.apply(this,arguments)}}(),h=function(){var r=i()(o.a.mark((function r(e){var n;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,p();case 2:if(!(n=r.sent)){r.next=13;break}return r.prev=4,n.removeItem("".concat(l).concat(e)),r.abrupt("return",!0);case 9:return r.prev=9,r.t0=r.catch(4),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",!1);case 13:return r.abrupt("return",!1);case 14:case"end":return r.stop()}}),r,null,[[4,9]])})));return function(t){return r.apply(this,arguments)}}(),m=function(){var r=i()(o.a.mark((function r(){var e,n,a,i;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,p();case 2:if(!(e=r.sent)){r.next=14;break}for(r.prev=4,n=[],a=0;a<e.length;a++)0===(i=e.key(a)).indexOf(l)&&n.push(i.substring(l.length));return r.abrupt("return",n);case 10:return r.prev=10,r.t0=r.catch(4),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",[]);case 14:return r.abrupt("return",[]);case 15:case"end":return r.stop()}}),r,null,[[4,10]])})));return function(){return r.apply(this,arguments)}}()}).call(this,e(18))},950:function(t,r,e){"use strict";e.r(r);var n=e(4),o=e.n(n),a=e(76),i=e(124),c=e(6),u=e.n(c),s=e(10),l=e.n(s),f=e(80),d=e.n(f);function v(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function p(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?v(Object(e),!0).forEach((function(r){u()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var g={initialState:{},actions:{setValues:function(t,r){return l()(t&&"string"==typeof t,"a valid formName is required for setting values."),l()(d()(r),"formData must be an object."),{payload:{formName:t,formData:r},type:"SET_FORM_VALUES"}}},controls:{},reducer:function(t,r){var e=r.type,n=r.payload;switch(e){case"SET_FORM_VALUES":var o=n.formName,a=n.formData;return p(p({},t),{},u()({},o,p(p({},t[o]||{}),a)));default:return t}},resolvers:{},selectors:{getValue:function(t,r,e){return(t[r]||{})[e]},hasForm:function(t,r){return!!t[r]}}},b=e(123),h=o.a.combineStores(o.a.commonStore,g,Object(i.a)(b.b),Object(a.b)());h.initialState,h.actions,h.controls,h.reducer,h.resolvers,h.selectors;o.a.registerStore(b.b,h)},98:function(t,r,e){"use strict";function n(t){return new URL(t).pathname}function o(t,r){return new URL(r,t).href}function a(t){return t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}e.d(r,"b",(function(){return n})),e.d(r,"a",(function(){return o})),e.d(r,"c",(function(){return a}))}},[[950,1,0]]]);
1
+ (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[10],{0:function(t,r){t.exports=googlesitekit.i18n},101:function(t,r,e){"use strict";function n(t){return t.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function o(t){return"<p>".concat(t.replace(/\n{2,}/g,"</p><p>"),"</p>")}function a(t){return t.replace(/\n/gi,"<br>")}function i(t){for(var r=t,e=0,i=[n,o,a];e<i.length;e++){r=(0,i[e])(r)}return r}e.d(r,"a",(function(){return i}))},102:function(t,r,e){"use strict";e.d(r,"a",(function(){return n}));var n=function(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)]}},103:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return a})),e.d(r,"b",(function(){return i}));var n=e(229),o=e(67),a=function(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(r)))return"";var a=e.invertColor,i=void 0!==a&&a;return Object(n.a)(t.createElement(o.a,{direction:r>0?"up":"down",invertColor:i}))},i=function(t){var r,e,n,o,a,i,c,u,s,l,f,d,v,p,g;if(void 0!==t)return 1===(null==t||null===(r=t[0])||void 0===r||null===(e=r.data)||void 0===e||null===(n=e.rows)||void 0===n?void 0:n.length)||(null==t||null===(o=t[0])||void 0===o||null===(a=o.data)||void 0===a||null===(i=a.rows)||void 0===i||null===(c=i[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==t||null===(f=t[0])||void 0===f||null===(d=f.data)||void 0===d||null===(v=d.totals)||void 0===v||null===(p=v[0])||void 0===p||null===(g=p.values)||void 0===g?void 0:g[0])}}).call(this,e(2))},104:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return l}));var n=e(6),o=e.n(n),a=e(105),i=e(106);function c(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function u(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?c(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,o=u(u({},s),r);return o.referenceSiteURL&&(o.referenceSiteURL=o.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(a.a)(o,e),disableTracking:function(){o.trackingEnabled=!1},isTrackingEnabled:function(){return!!o.trackingEnabled},trackEvent:Object(i.a)(o,e,n)}}}).call(this,e(18))},105:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return a}));var n=e(66),o=e(44);function a(r,e){var a=Object(n.a)(e);return function(){r.trackingEnabled=!0;var e=t.document;if(!e.querySelector("script[".concat(o.b,"]"))){var n=e.createElement("script");n.setAttribute(o.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(r.trackingID,"&l=").concat(o.a),e.head.appendChild(n),a("js",new Date),a("config",r.trackingID)}}}}).call(this,e(18))},106:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return v}));var n=e(7),o=e.n(n),a=e(6),i=e.n(a),c=e(14),u=e.n(c),s=e(66),l=e(56);function f(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function d(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?f(Object(e),!0).forEach((function(r){i()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function v(r,e,n){var a=Object(s.a)(e);return function(){var e=u()(o.a.mark((function e(i,c,u,s){var f,v,p,g,b,h,m,y;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p=r.isFirstAdmin,g=r.referenceSiteURL,b=r.trackingEnabled,h=r.trackingID,m=r.userIDHash,!(null===(f=n._gaUserPrefs)||void 0===f||null===(v=f.ioo)||void 0===v?void 0:v.call(f))){e.next=3;break}return e.abrupt("return");case 3:if(b){e.next=5;break}return e.abrupt("return");case 5:return y={send_to:h,event_category:i,event_label:u,value:s,dimension1:g,dimension2:p?"true":"false",dimension3:m,dimension4:"1.34.1",dimension5:Array.from(l.a).join(", ")},e.abrupt("return",new Promise((function(r){var e=setTimeout((function(){t.console.warn('Tracking event "'.concat(c,'" (category "').concat(i,'") took too long to fire.')),r()}),1e3);a("event",c,d(d({},y),{},{event_callback:function(){clearTimeout(e),r()}}))})));case 7:case"end":return e.stop()}}),e)})));return function(t,r,n,o){return e.apply(this,arguments)}}()}}).call(this,e(18))},107:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return o}));var n=e(146),o=e.n(n)()(t)}).call(this,e(18))},123:function(t,r,e){"use strict";e.d(r,"b",(function(){return n})),e.d(r,"a",(function(){return n}));var n="core/forms"},124:function(t,r,e){"use strict";e.d(r,"a",(function(){return g})),e.d(r,"c",(function(){return h})),e.d(r,"b",(function(){return m}));var n=e(26),o=e.n(n),a=e(6),i=e.n(a),c=e(7),u=e.n(c),s=e(10),l=e.n(s),f=e(4),d=e.n(f),v=e(89),p=d.a.createRegistryControl,g=function(t){var r;l()(t,"storeName is required to create a snapshot store.");var e={},n={deleteSnapshot:u.a.mark((function t(){var r;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})),restoreSnapshot:u.a.mark((function t(){var r,e,n,o,a,i,c=arguments;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c.length>0&&void 0!==c[0]?c[0]:{},e=r.clearAfterRestore,n=void 0===e||e,t.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(o=t.sent,a=o.cacheHit,i=o.value,!a){t.next=13;break}return t.next=10,{payload:{snapshot:i},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!n){t.next=13;break}return t.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return t.abrupt("return",a);case 14:case"end":return t.stop()}}),t)})),createSnapshot:u.a.mark((function t(){var r;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))},a=(r={},i()(r,"DELETE_SNAPSHOT",(function(){return Object(v.a)("datastore::cache::".concat(t))})),i()(r,"CREATE_SNAPSHOT",p((function(r){return function(){return Object(v.d)("datastore::cache::".concat(t),r.stores[t].store.getState())}}))),i()(r,"RESTORE_SNAPSHOT",(function(){return Object(v.b)("datastore::cache::".concat(t),3600)})),r);return{initialState:e,actions:n,controls:a,reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=arguments.length>1?arguments[1]:void 0,n=r.type,a=r.payload;switch(n){case"SET_STATE_FROM_SNAPSHOT":var i=a.snapshot,c=(i.error,o()(i,["error"]));return c;default:return t}}}},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Object.values(t.stores).filter((function(t){return Object.keys(t.getActions()).includes("restoreSnapshot")}))},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Promise.all(b(t).map((function(t){return t.getActions().createSnapshot()})))},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Promise.all(b(t).map((function(t){return t.getActions().restoreSnapshot()})))}},32:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return i})),e.d(r,"b",(function(){return c}));var n=e(25),o=e.n(n),a=e(2),i=function(t){return function(r){return function FilteredComponent(e){return Object(a.createElement)(a.Fragment,{},"",Object(a.createElement)(r,e),t)}}},c=function(r,e){return function(n){return function InnerComponent(a){return t.createElement(r,o()({},a,e,{OriginalComponent:n}))}}}}).call(this,e(2))},4:function(t,r){t.exports=googlesitekit.data},42:function(t,r,e){"use strict";e.d(r,"a",(function(){return n})),e.d(r,"c",(function(){return o})),e.d(r,"b",(function(){return a}));var n="Date param must construct to a valid date instance or be a valid date instance itself.",o="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".'},44:function(t,r,e){"use strict";e.d(r,"a",(function(){return n})),e.d(r,"b",(function(){return o}));var n="_googlesitekitDataLayer",o="data-googlesitekit-gtag"},45:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(53),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r="string"==typeof t;if(!r)return!1;var e=t.split("-");return 3===e.length&&Object(n.a)(new Date(t))}},48:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return l}));var n,o=e(15),a=e.n(o),i=e(16),c=e.n(i),u=function(r){var e=t[r];if(!e)return!1;try{var n="__storage_test__";return e.setItem(n,n),e.removeItem(n),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}},s=function(){function NullStorage(){a()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return n||(n=u("sessionStorage")?t.sessionStorage:u("localStorage")?t.localStorage:new s),n}}).call(this,e(18))},5:function(t,r,e){"use strict";(function(t){e.d(r,"l",(function(){return S})),e.d(r,"a",(function(){return _})),e.d(r,"i",(function(){return D})),e.d(r,"k",(function(){return P})),e.d(r,"y",(function(){return A})),e.d(r,"u",(function(){return x})),e.d(r,"d",(function(){return N}));var n=e(6),o=e.n(n),a=e(33),i=e.n(a),c=e(145),u=e.n(c),s=e(139),l=e.n(s),f=e(17),d=e(99),v=e(58);e.d(r,"w",(function(){return v.b}));var p=e(32),g=e(75);e.d(r,"t",(function(){return g.a})),e.d(r,"x",(function(){return g.b}));var b=e(72);e.d(r,"v",(function(){return b.a}));var h=e(84);e.d(r,"b",(function(){return h.b})),e.d(r,"j",(function(){return h.c}));e(48);var m=e(85);e.d(r,"h",(function(){return m.a})),e.d(r,"o",(function(){return m.b})),e.d(r,"r",(function(){return m.c})),e.d(r,"s",(function(){return m.d})),e.d(r,"e",(function(){return p.b}));var y=e(101);e.d(r,"p",(function(){return y.a}));var O=e(102);e.d(r,"c",(function(){return O.a}));e(50);var j=e(103);e.d(r,"f",(function(){return j.a})),e.d(r,"n",(function(){return j.b}));var w=e(98);function k(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function E(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?k(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):k(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}e.d(r,"g",(function(){return w.a})),e.d(r,"m",(function(){return w.b})),e.d(r,"q",(function(){return w.c}));var S=function(t){switch(t){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},_=function(t,r){if("0"===t||0===t||isNaN(t))return null;var e=(r-t)/t;return isNaN(e)||!u()(e)?null:e},D=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t._googlesitekitLegacyData,e=r.modules;return e?Object.keys(e).reduce((function(t,r){return"object"!==i()(e[r])||void 0===e[r].slug||void 0===e[r].name||e[r].slug!==r?t:E(E({},t),{},o()({},r,e[r]))}),{}):{}},P=function(r,e){var n=t._googlesitekitLegacyData.admin.adminRoot;return r||(r="googlesitekit-dashboard"),e=E({page:r},e),Object(d.a)(n,e)},A=function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}},x=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(f.b)("googlesitekit.ErrorNotification","googlesitekit.ErrorNotification",Object(p.b)(t,r),1)},N=function(t){if(!t)return"";var r=t.replace(/&#(\d+);/g,(function(t,r){return String.fromCharCode(r)})).replace(/(\\)/g,"");return l()(r)}}).call(this,e(18))},50:function(t,r,e){"use strict";e.d(r,"a",(function(){return n.b})),e.d(r,"b",(function(){return n.c})),e.d(r,"e",(function(){return o.a})),e.d(r,"f",(function(){return a.a})),e.d(r,"g",(function(){return i})),e.d(r,"h",(function(){return c})),e.d(r,"i",(function(){return u.a})),e.d(r,"d",(function(){return s})),e.d(r,"c",(function(){return f}));var n=e(42),o=e(65),a=e(55),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=r%7,n=0===e;if(n)return Object(a.a)(t,r);var o=r>7&&e<3,i=o?r-e:r+(7-e);return Object(a.a)(t,i)},c=(e(53),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=t.split("-");return 3===r.length&&"last"===r[0]&&!Number.isNaN(r[1])&&!Number.isNaN(parseFloat(r[1]))&&"days"===r[2]}),u=e(45);function s(t){var r=t.match(/last-(\d+)-days/);if(r&&r[1])return parseInt(r[1],10);throw new Error("Unrecognized date range slug.")}var l=e(0);function f(){var t=function(t){return Object(l.sprintf)(
2
  /* translators: %s: number of days */
3
  Object(l._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}}}},53:function(t,r,e){"use strict";e.d(r,"a",(function(){return n}));var n=function(t){return t instanceof Date&&!isNaN(t)}},55:function(t,r,e){"use strict";e.d(r,"a",(function(){return l}));var n=e(11),o=e.n(n),a=e(10),i=e.n(a),c=e(42),u=e(65),s=e(45),l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;i()(Object(s.a)(t),c.c);var e=t.split("-"),n=o()(e,3),a=n[0],l=n[1],f=n[2],d=new Date(a,l-1,f);return d.setDate(d.getDate()-r),Object(u.a)(d)}},56:function(t,r,e){"use strict";(function(t){var n,o;e.d(r,"a",(function(){return a})),e.d(r,"b",(function(){return i}));var a=new Set((null===(n=t)||void 0===n||null===(o=n._googlesitekitBaseData)||void 0===o?void 0:o.enabledFeatures)||[]),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return r instanceof Set&&r.has(t)}}).call(this,e(18))},58:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return v})),e.d(r,"b",(function(){return d}));var n=e(104),o=t._googlesitekitBaseData||{},a=o.isFirstAdmin,i=o.trackingAllowed,c={isFirstAdmin:a,trackingEnabled:o.trackingEnabled,trackingID:o.trackingID,referenceSiteURL:o.referenceSiteURL,userIDHash:o.userIDHash},u=Object(n.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function v(t){t?s():l()}!0===i&&v(f())}).call(this,e(18))},65:function(t,r,e){"use strict";e.d(r,"a",(function(){return c}));var n=e(10),o=e.n(n),a=e(42),i=e(53),c=function(t){var r=new Date(t);o()(Object(i.a)(r),a.a);var e="".concat(r.getMonth()+1),n="".concat(r.getDate());return[r.getFullYear(),e.length<2?"0".concat(e):e,n.length<2?"0".concat(n):n].join("-")}},66:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(44);function o(t){return function(){t[n.a]=t[n.a]||[],t[n.a].push(arguments)}}},67:function(t,r,e){"use strict";(function(t){var n=e(1),o=e.n(n),a=e(8),i=e.n(a);function ChangeArrow(r){var e=r.direction,n=r.invertColor,o=r.width,a=r.height;return t.createElement("svg",{className:i()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(e),{"googlesitekit-change-arrow--inverted-color":n}),width:o,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("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.a.string,invertColor:o.a.bool,width:o.a.number,height:o.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},r.a=ChangeArrow}).call(this,e(2))},72:function(t,r,e){"use strict";e.d(r,"a",(function(){return c}));var n=e(33),o=e.n(n),a=e(97),i=e.n(a),c=function(t){return i()(JSON.stringify(function t(r){var e={};return Object.keys(r).sort().forEach((function(n){var a=r[n];a&&"object"===o()(a)&&!Array.isArray(a)&&(a=t(a)),e[n]=a})),e}(t)))}},75:function(t,r,e){"use strict";e.d(r,"a",(function(){return i})),e.d(r,"b",(function(){return c}));var n=e(33),o=e.n(n),a=e(107),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:a.a.sanitize(t,r)}};function c(t){var r,e="object"===o()(t)?t.toString():t;return null==e||null===(r=e.replace)||void 0===r?void 0:r.call(e,/\/+$/,"")}},76:function(t,r,e){"use strict";e.d(r,"a",(function(){return g})),e.d(r,"b",(function(){return b}));var n=e(6),o=e.n(n),a=e(33),i=e.n(a),c=e(10),u=e.n(c),s=e(97),l=e.n(s),f=e(5);function d(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function v(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?d(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function p(t,r){if(r&&Array.isArray(r)){var e=r.map((function(t){return"object"===i()(t)?Object(f.v)(t):t}));return"".concat(t,"::").concat(l()(JSON.stringify(e)))}return t}var g={receiveError:function(t,r,e){return u()(t,"error is required."),r&&u()(e&&Array.isArray(e),"args is required (and must be an array) when baseName is specified."),{type:"RECEIVE_ERROR",payload:{error:t,baseName:r,args:e}}},clearError:function(t,r){return t&&u()(r&&Array.isArray(r),"args is required (and must be an array) when baseName is specified."),{type:"CLEAR_ERROR",payload:{baseName:t,args:r}}},clearErrors:function(t){return{type:"CLEAR_ERRORS",payload:{baseName:t}}}};function b(){var t={getErrorForSelector:function(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(e,"selectorName is required."),t.getError(r,e,n)},getErrorForAction:function(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(e,"actionName is required."),t.getError(r,e,n)},getError:function(t,r,e){var n=t.error,o=t.errors;return r||e?(u()(r,"baseName is required."),o[p(r,e)]):n},getErrors:function(t){var r=new Set(Object.values(t.errors));return void 0!==t.error&&r.add(t.error),Array.from(r)},hasErrors:function(r){return t.getErrors(r).length>0}};return{initialState:{errors:{},error:void 0},actions:g,controls:{},reducer:function(t,r){var e=r.type,n=r.payload;switch(e){case"RECEIVE_ERROR":var a=n.baseName,i=n.args,c=n.error;return v(v({},t),{},a?{errors:v(v({},t.errors||{}),{},o()({},p(a,i),c))}:{error:c});case"CLEAR_ERROR":var u=n.baseName,s=n.args,l=v({},t);if(u){var f=p(u,s);l.errors=v({},t.errors||{}),delete l.errors[f]}else l.error=void 0;return l;case"CLEAR_ERRORS":var d=n.baseName,g=v({},t);if(d)for(var b in g.errors=v({},t.errors||{}),g.errors)(b===d||b.startsWith("".concat(d,"::")))&&delete g.errors[b];else g.errors={},g.error=void 0;return g;default:return t}},resolvers:{},selectors:t}}},84:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return u})),e.d(r,"b",(function(){return s})),e.d(r,"c",(function(){return f}));var n=e(11),o=e.n(n),a=e(0);function i(t,r){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"==typeof t)return c(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return c(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(u)throw a}}}}function c(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=null,e=null,n=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),o=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(n&&o)return!1;if(r=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),e=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===r&&null===e)return!1;var i=document.createElement("span");i.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(t));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=t;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(a.sprintf)(
4
  /* translators: %d is the number of notifications */
13
  Object(l.__)("%sM","google-site-kit"),m(g(t),t%10==0?{}:r)):1e4<=t?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(l.__)("%sK","google-site-kit"),m(g(t))):1e3<=t?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(l.__)("%sK","google-site-kit"),m(g(t),t%10==0?{}:r)):m(t,{signDisplay:"never",maximumFractionDigits:1})},h=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(s.isFinite)(t)?t:Number(t),Object(s.isFinite)(t)||(console.warn("Invalid number",t,o()(t)),t=0);var e={};if("%"===r)e={style:"percent",maximumFractionDigits:2};else{if("s"===r)return v(t,{unitDisplay:"narrow"});r&&"string"==typeof r?e={style:"currency",currency:r}:Object(s.isPlainObject)(r)&&(e=d({},r))}var n=e,a=n.style,i=void 0===a?"metric":a;return"metric"===i?b(t):"duration"===i?v(t,r):m(t,e)},m=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.locale,n=void 0===e?O():e,o=u()(r,["locale"]);return new Intl.NumberFormat(n,o).format(t)},y=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.locale,n=void 0===e?O():e,o=r.style,a=void 0===o?"long":o,i=r.type,c=void 0===i?"conjunction":i;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:a,type:c});return u.format(t)}
16
+ /* translators: used between list items, there is a space after the comma. */var s=Object(l.__)(", ","google-site-kit");return t.join(s)},O=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,e=Object(s.get)(r,["_googlesitekitLegacyData","locale"]);if(e){var n=e.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return r.navigator.language}}).call(this,e(18))},89:function(t,r,e){"use strict";(function(t){e.d(r,"b",(function(){return g})),e.d(r,"d",(function(){return b})),e.d(r,"a",(function(){return h})),e.d(r,"c",(function(){return m}));var n=e(7),o=e.n(n),a=e(14),i=e.n(a);e(37);function c(t,r){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"==typeof t)return u(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return u(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(c)throw a}}}}function u(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var s,l="googlesitekit_".concat("1.34.1","_"),f=["sessionStorage","localStorage"],d=[].concat(f),v=function(){var r=i()(o.a.mark((function r(e){var n,a;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t[e]){r.next=3;break}return r.abrupt("return",!1);case 3:return r.prev=3,a="__storage_test__",n.setItem(a,a),n.removeItem(a),r.abrupt("return",!0);case 10:return r.prev=10,r.t0=r.catch(3),r.abrupt("return",r.t0 instanceof DOMException&&(22===r.t0.code||1014===r.t0.code||"QuotaExceededError"===r.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===r.t0.name)&&0!==n.length);case 13:case"end":return r.stop()}}),r,null,[[3,10]])})));return function(t){return r.apply(this,arguments)}}(),p=function(){var r=i()(o.a.mark((function r(){var e,n,a,i,u;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null===(e=t._googlesitekitLegacyData)||void 0===e||null===(n=e.admin)||void 0===n?void 0:n.nojscache)){r.next=2;break}return r.abrupt("return",null);case 2:if(void 0!==s){r.next=25;break}a=c(d),r.prev=4,a.s();case 6:if((i=a.n()).done){r.next=16;break}if(u=i.value,!s){r.next=10;break}return r.abrupt("continue",14);case 10:return r.next=12,v(u);case 12:if(!r.sent){r.next=14;break}s=t[u];case 14:r.next=6;break;case 16:r.next=21;break;case 18:r.prev=18,r.t0=r.catch(4),a.e(r.t0);case 21:return r.prev=21,a.f(),r.finish(21);case 24:void 0===s&&(s=null);case 25:return r.abrupt("return",s);case 26:case"end":return r.stop()}}),r,null,[[4,18,21,24]])})));return function(){return r.apply(this,arguments)}}(),g=function(){var t=i()(o.a.mark((function t(r){var e,n,a,i,c,u,s;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(e=t.sent)){t.next=10;break}if(!(n=e.getItem("".concat(l).concat(r)))){t.next=10;break}if(a=JSON.parse(n),i=a.timestamp,c=a.ttl,u=a.value,s=a.isError,!i||c&&!(Math.round(Date.now()/1e3)-i<c)){t.next=10;break}return t.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return t.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}(),b=function(){var r=i()(o.a.mark((function r(e,n){var a,i,c,u,s,f,d,v,g=arguments;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=g.length>2&&void 0!==g[2]?g[2]:{},i=a.ttl,c=void 0===i?3600:i,u=a.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=a.isError,d=void 0!==f&&f,r.next=3,p();case 3:if(!(v=r.sent)){r.next=14;break}return r.prev=5,v.setItem("".concat(l).concat(e),JSON.stringify({timestamp:s,ttl:c,value:n,isError:d})),r.abrupt("return",!0);case 10:return r.prev=10,r.t0=r.catch(5),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",!1);case 14:return r.abrupt("return",!1);case 15:case"end":return r.stop()}}),r,null,[[5,10]])})));return function(t,e){return r.apply(this,arguments)}}(),h=function(){var r=i()(o.a.mark((function r(e){var n;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,p();case 2:if(!(n=r.sent)){r.next=13;break}return r.prev=4,n.removeItem("".concat(l).concat(e)),r.abrupt("return",!0);case 9:return r.prev=9,r.t0=r.catch(4),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",!1);case 13:return r.abrupt("return",!1);case 14:case"end":return r.stop()}}),r,null,[[4,9]])})));return function(t){return r.apply(this,arguments)}}(),m=function(){var r=i()(o.a.mark((function r(){var e,n,a,i;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,p();case 2:if(!(e=r.sent)){r.next=14;break}for(r.prev=4,n=[],a=0;a<e.length;a++)0===(i=e.key(a)).indexOf(l)&&n.push(i.substring(l.length));return r.abrupt("return",n);case 10:return r.prev=10,r.t0=r.catch(4),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",[]);case 14:return r.abrupt("return",[]);case 15:case"end":return r.stop()}}),r,null,[[4,10]])})));return function(){return r.apply(this,arguments)}}()}).call(this,e(18))},950:function(t,r,e){"use strict";e.r(r);var n=e(4),o=e.n(n),a=e(76),i=e(124),c=e(6),u=e.n(c),s=e(10),l=e.n(s),f=e(80),d=e.n(f);function v(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function p(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?v(Object(e),!0).forEach((function(r){u()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var g={initialState:{},actions:{setValues:function(t,r){return l()(t&&"string"==typeof t,"a valid formName is required for setting values."),l()(d()(r),"formData must be an object."),{payload:{formName:t,formData:r},type:"SET_FORM_VALUES"}}},controls:{},reducer:function(t,r){var e=r.type,n=r.payload;switch(e){case"SET_FORM_VALUES":var o=n.formName,a=n.formData;return p(p({},t),{},u()({},o,p(p({},t[o]||{}),a)));default:return t}},resolvers:{},selectors:{getValue:function(t,r,e){return(t[r]||{})[e]},hasForm:function(t,r){return!!t[r]}}},b=e(123),h=o.a.combineStores(o.a.commonStore,g,Object(i.a)(b.b),Object(a.b)());h.initialState,h.actions,h.controls,h.reducer,h.resolvers,h.selectors;o.a.registerStore(b.b,h)},98:function(t,r,e){"use strict";function n(t){return new URL(t).pathname}function o(t,r){return new URL(r,t).href}function a(t){return t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}e.d(r,"b",(function(){return n})),e.d(r,"a",(function(){return o})),e.d(r,"c",(function(){return a}))}},[[950,1,0]]]);
dist/assets/js/{googlesitekit-datastore-site.ec6351fa9a5255ab8570.js → googlesitekit-datastore-site.6e0d5f9db9ee81e1f048.js} RENAMED
@@ -1,4 +1,4 @@
1
- (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[12],{0:function(e,t){e.exports=googlesitekit.i18n},101:function(e,t,r){"use strict";function n(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function o(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function a(e){for(var t=e,r=0,a=[n,o,i];r<a.length;r++){t=(0,a[r])(t)}return t}r.d(t,"a",(function(){return a}))},102:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(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)]}},103:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));var n=r(229),o=r(67),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=r.invertColor,a=void 0!==i&&i;return Object(n.a)(e.createElement(o.a,{direction:t>0?"up":"down",invertColor:a}))},a=function(e){var t,r,n,o,i,a,c,u,s,l,f,d,p,v,g;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(r=t.data)||void 0===r||null===(n=r.rows)||void 0===n?void 0:n.length)||(null==e||null===(o=e[0])||void 0===o||null===(i=o.data)||void 0===i||null===(a=i.rows)||void 0===a||null===(c=a[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==e||null===(f=e[0])||void 0===f||null===(d=f.data)||void 0===d||null===(p=d.totals)||void 0===p||null===(v=p[0])||void 0===v||null===(g=v.values)||void 0===g?void 0:g[0])}}).call(this,r(2))},104:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n=r(6),o=r.n(n),i=r(105),a=r(106);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=u(u({},s),t);return o.referenceSiteURL&&(o.referenceSiteURL=o.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(o,r),disableTracking:function(){o.trackingEnabled=!1},isTrackingEnabled:function(){return!!o.trackingEnabled},trackEvent:Object(a.a)(o,r,n)}}}).call(this,r(18))},105:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=r(66),o=r(44);function i(t,r){var i=Object(n.a)(r);return function(){t.trackingEnabled=!0;var r=e.document;if(!r.querySelector("script[".concat(o.b,"]"))){var n=r.createElement("script");n.setAttribute(o.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(o.a),r.head.appendChild(n),i("js",new Date),i("config",t.trackingID)}}}}).call(this,r(18))},106:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return p}));var n=r(7),o=r.n(n),i=r(6),a=r.n(i),c=r(14),u=r.n(c),s=r(66),l=r(56);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(t,r,n){var i=Object(s.a)(r);return function(){var r=u()(o.a.mark((function r(a,c,u,s){var f,p,v,g,b,y,m,O;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(v=t.isFirstAdmin,g=t.referenceSiteURL,b=t.trackingEnabled,y=t.trackingID,m=t.userIDHash,!(null===(f=n._gaUserPrefs)||void 0===f||null===(p=f.ioo)||void 0===p?void 0:p.call(f))){r.next=3;break}return r.abrupt("return");case 3:if(b){r.next=5;break}return r.abrupt("return");case 5:return O={send_to:y,event_category:a,event_label:u,value:s,dimension1:g,dimension2:v?"true":"false",dimension3:m,dimension4:"1.34.0",dimension5:Array.from(l.a).join(", ")},r.abrupt("return",new Promise((function(t){var r=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(a,'") took too long to fire.')),t()}),1e3);i("event",c,d(d({},O),{},{event_callback:function(){clearTimeout(r),t()}}))})));case 7:case"end":return r.stop()}}),r)})));return function(e,t,n,o){return r.apply(this,arguments)}}()}}).call(this,r(18))},107:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o}));var n=r(146),o=r.n(n)()(e)}).call(this,r(18))},113:function(e,t,r){"use strict";(function(e){var n=r(35),o=r.n(n),i=r(154),a=e._googlesitekitAPIFetchData||{},c=a.nonce,u=a.nonceEndpoint,s=a.preloadedData,l=a.rootURL;o.a.nonceEndpoint=u,o.a.nonceMiddleware=o.a.createNonceMiddleware(c),o.a.rootURLMiddleware=o.a.createRootURLMiddleware(l),o.a.preloadingMiddleware=Object(i.a)(s),o.a.use(o.a.nonceMiddleware),o.a.use(o.a.mediaUploadMiddleware),o.a.use(o.a.rootURLMiddleware),o.a.use(o.a.preloadingMiddleware),t.default=o.a}).call(this,r(18))},154:function(e,t,r){"use strict";var n=r(152);t.a=function(e){var t=Object.keys(e).reduce((function(t,r){return t[Object(n.getStablePath)(r)]=e[r],t}),{}),r=!1;return function(e,o){if(r)return o(e);setTimeout((function(){r=!0}),1e3);var i=e.parse,a=void 0===i||i,c=e.path;if("string"==typeof e.path){var u,s=(null===(u=e.method)||void 0===u?void 0:u.toUpperCase())||"GET",l=Object(n.getStablePath)(c);if(a&&"GET"===s&&t[l]){var f=Promise.resolve(t[l].body);return delete t[l],f}if("OPTIONS"===s&&t[s]&&t[s][l]){var d=Promise.resolve(t[s][l]);return delete t[s][l],d}}return o(e)}}},20:function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return i}));var n="core/site",o="primary",i="secondary"},32:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return c}));var n=r(25),o=r.n(n),i=r(2),a=function(e){return function(t){return function FilteredComponent(r){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,r),e)}}},c=function(t,r){return function(n){return function InnerComponent(i){return e.createElement(t,o()({},i,r,{OriginalComponent:n}))}}}}).call(this,r(2))},329:function(e,t,r){"use strict";r.d(t,"a",(function(){return g})),r.d(t,"b",(function(){return b}));var n=r(7),o=r.n(n),i=r(14),a=r.n(i),c=r(10),u=r.n(c),s=r(353),l=r.n(s),f=r(113),d=r(247),p=r(99),v=r(20),g=function(e,t){var r=t.find((function(t){return t.test(e)}));return!!r&&r.exec(e)[1]},b=l()(function(){var e=a()(o.a.mark((function e(t){var r,n,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.homeURL,n=t.ampMode,u()(Object(d.a)(r),"homeURL must be valid URL"),i=[r],v.b!==n){e.next=14;break}return e.prev=4,e.next=7,Object(f.default)({path:"/wp/v2/posts?per_page=1"}).then((function(e){return e.slice(0,1).map((function(e){return Object(p.a)(e.link,{amp:1})})).pop()}));case 7:(a=e.sent)&&i.push(a),e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(4),e.abrupt("return",i);case 14:return e.abrupt("return",i);case 15:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(t){return e.apply(this,arguments)}}())},362:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return b}));var n=r(7),o=r.n(n),i=r(6),a=r.n(i),c=r(10),u=r.n(c),s=r(51),l=r.n(s),f=r(4),d=r.n(f),p=r(61);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=function(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=i.client,s=void 0===c||c,f=i.server,v=void 0===f||f,b=i.storeName,y=void 0===b?void 0:b;u()(t,"type is required."),u()(r,"identifier is required."),u()(n,"datapoint is required.");var m=y||"".concat(t,"/").concat(r),O={serverNotifications:v?void 0:{},clientNotifications:s?void 0:{}},h=Object(p.a)({baseName:"getNotifications",controlCallback:function(){return l.a.get(t,r,n)},reducerCallback:function(e,t){return g(g({},e),{},{serverNotifications:t.reduce((function(e,t){return g(g({},e),{},a()({},t.id,t))}),{})})}}),j={addNotification:function(e){return u()(e,"notification is required."),{payload:{notification:e},type:"ADD_NOTIFICATION"}},removeNotification:function(e){return u()(e,"id is required."),{payload:{id:e},type:"REMOVE_NOTIFICATION"}}},w={},R=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O,r=arguments.length>1?arguments[1]:void 0,n=r.type,o=r.payload;switch(n){case"ADD_NOTIFICATION":var i=o.notification;return g(g({},t),{},{clientNotifications:g(g({},t.clientNotifications||{}),{},a()({},i.id,i))});case"REMOVE_NOTIFICATION":var c=o.id;if(void 0===t.clientNotifications||void 0===t.clientNotifications[c])return void 0!==t.serverNotifications&&void 0!==t.serverNotifications[c]&&e.console.warn('Cannot remove server-side notification with ID "'.concat(c,'"; this may be changed in a future release.')),t;var u=g({},t.clientNotifications);return delete u[c],g(g({},t),{},{clientNotifications:u});default:return t}},P={getNotifications:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.actions.fetchGetNotifications();case 2:case"end":return e.stop()}}),e)}))};v||delete P.getNotifications;var E={getNotifications:function(e){var t=e.serverNotifications,r=e.clientNotifications;return void 0===t&&void 0===r?t:Object.values(g(g({},t||{}),r||{}))}},S=d.a.combineStores(h,{initialState:O,actions:j,controls:w,reducer:R,resolvers:P,selectors:E});return g(g({},S),{},{STORE_NAME:m})}}).call(this,r(18))},4:function(e,t){e.exports=googlesitekit.data},42:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return i}));var n="Date param must construct to a valid date instance or be a valid date instance itself.",o="Invalid dateString parameter, it must be a string.",i='Invalid date range, it must be a string with the format "last-x-days".'},44:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}));var n="_googlesitekitDataLayer",o="data-googlesitekit-gtag"},45:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(53),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var r=e.split("-");return 3===r.length&&Object(n.a)(new Date(e))}},48:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n,o=r(15),i=r.n(o),a=r(16),c=r.n(a),u=function(t){var r=e[t];if(!r)return!1;try{var n="__storage_test__";return r.setItem(n,n),r.removeItem(n),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==r.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return n||(n=u("sessionStorage")?e.sessionStorage:u("localStorage")?e.localStorage:new s),n}}).call(this,r(18))},5:function(e,t,r){"use strict";(function(e){r.d(t,"l",(function(){return E})),r.d(t,"a",(function(){return S})),r.d(t,"i",(function(){return k})),r.d(t,"k",(function(){return L})),r.d(t,"y",(function(){return _})),r.d(t,"u",(function(){return D})),r.d(t,"d",(function(){return x}));var n=r(6),o=r.n(n),i=r(33),a=r.n(i),c=r(145),u=r.n(c),s=r(139),l=r.n(s),f=r(17),d=r(99),p=r(58);r.d(t,"w",(function(){return p.b}));var v=r(32),g=r(75);r.d(t,"t",(function(){return g.a})),r.d(t,"x",(function(){return g.b}));var b=r(72);r.d(t,"v",(function(){return b.a}));var y=r(84);r.d(t,"b",(function(){return y.b})),r.d(t,"j",(function(){return y.c}));r(48);var m=r(85);r.d(t,"h",(function(){return m.a})),r.d(t,"o",(function(){return m.b})),r.d(t,"r",(function(){return m.c})),r.d(t,"s",(function(){return m.d})),r.d(t,"e",(function(){return v.b}));var O=r(101);r.d(t,"p",(function(){return O.a}));var h=r(102);r.d(t,"c",(function(){return h.a}));r(50);var j=r(103);r.d(t,"f",(function(){return j.a})),r.d(t,"n",(function(){return j.b}));var w=r(98);function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.d(t,"g",(function(){return w.a})),r.d(t,"m",(function(){return w.b})),r.d(t,"q",(function(){return w.c}));var E=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},S=function(e,t){if("0"===e||0===e||isNaN(e))return null;var r=(t-e)/e;return isNaN(r)||!u()(r)?null:r},k=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e._googlesitekitLegacyData,r=t.modules;return r?Object.keys(r).reduce((function(e,t){return"object"!==a()(r[t])||void 0===r[t].slug||void 0===r[t].name||r[t].slug!==t?e:P(P({},e),{},o()({},t,r[t]))}),{}):{}},L=function(t,r){var n=e._googlesitekitLegacyData.admin.adminRoot;return t||(t="googlesitekit-dashboard"),r=P({page:t},r),Object(d.a)(n,r)},_=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(f.b)("googlesitekit.ErrorNotification","googlesitekit.ErrorNotification",Object(v.b)(e,t),1)},x=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return l()(t)}}).call(this,r(18))},50:function(e,t,r){"use strict";r.d(t,"a",(function(){return n.b})),r.d(t,"b",(function(){return n.c})),r.d(t,"e",(function(){return o.a})),r.d(t,"f",(function(){return i.a})),r.d(t,"g",(function(){return a})),r.d(t,"h",(function(){return c})),r.d(t,"i",(function(){return u.a})),r.d(t,"d",(function(){return s})),r.d(t,"c",(function(){return f}));var n=r(42),o=r(65),i=r(55),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t%7,n=0===r;if(n)return Object(i.a)(e,t);var o=t>7&&r<3,a=o?t-r:t+(7-r);return Object(i.a)(e,a)},c=(r(53),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}),u=r(45);function s(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var l=r(0);function f(){var e=function(e){return Object(l.sprintf)(
2
  /* translators: %s: number of days */
3
  Object(l._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}}}},51:function(e,t){e.exports=googlesitekit.api},53:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e){return e instanceof Date&&!isNaN(e)}},55:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(11),o=r.n(n),i=r(10),a=r.n(i),c=r(42),u=r(65),s=r(45),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;a()(Object(s.a)(e),c.c);var r=e.split("-"),n=o()(r,3),i=n[0],l=n[1],f=n[2],d=new Date(i,l-1,f);return d.setDate(d.getDate()-t),Object(u.a)(d)}},56:function(e,t,r){"use strict";(function(e){var n,o;r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));var i=new Set((null===(n=e)||void 0===n||null===(o=n._googlesitekitBaseData)||void 0===o?void 0:o.enabledFeatures)||[]),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,r(18))},58:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return d}));var n=r(104),o=e._googlesitekitBaseData||{},i=o.isFirstAdmin,a=o.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:o.trackingEnabled,trackingID:o.trackingID,referenceSiteURL:o.referenceSiteURL,userIDHash:o.userIDHash},u=Object(n.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function p(e){e?s():l()}!0===a&&p(f())}).call(this,r(18))},61:function(e,t,r){"use strict";r.d(t,"a",(function(){return j}));var n=r(7),o=r.n(n),i=r(6),a=r.n(i),c=r(10),u=r.n(c),s=r(80),l=r.n(s),f=r(76),d=r(87),p=r(5);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=function(e){return e},y=function(){return{}},m=function(){},O=f.a.clearError,h=f.a.receiveError,j=function(e){var t,r,n=o.a.mark(A),i=e.baseName,c=e.controlCallback,s=e.reducerCallback,f=void 0===s?b:s,v=e.argsToParams,j=void 0===v?y:v,w=e.validateParams,R=void 0===w?m:w;u()(i,"baseName is required."),u()("function"==typeof c,"controlCallback is required and must be a function."),u()("function"==typeof f,"reducerCallback must be a function."),u()("function"==typeof j,"argsToParams must be a function."),u()("function"==typeof R,"validateParams must be a function.");try{R(j()),r=!1}catch(e){r=!0}var P=Object(d.b)(i),E=Object(d.a)(i),S="FETCH_".concat(E),k="START_".concat(S),L="FINISH_".concat(S),_="CATCH_".concat(S),D="RECEIVE_".concat(E),x="fetch".concat(P),U="receive".concat(P),N="isFetching".concat(P),C=a()({},N,{});function A(e,t){var r,a;return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,{payload:{params:e},type:k};case 2:return n.next=4,O(i,t);case 4:return n.prev=4,n.next=7,{payload:{params:e},type:S};case 7:return r=n.sent,n.next=10,I[U](r,e);case 10:return n.next=12,{payload:{params:e},type:L};case 12:n.next=23;break;case 14:return n.prev=14,n.t0=n.catch(4),a=n.t0,n.next=19,h(a,i,t);case 19:return n.next=21,h(a);case 21:return n.next=23,{payload:{params:e},type:_};case 23:return n.abrupt("return",{response:r,error:a});case 24:case"end":return n.stop()}}),n,null,[[4,14]])}var I=(t={},a()(t,x,(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=j.apply(void 0,t);return R(n),A(n,t)})),a()(t,U,(function(e,t){return u()(void 0!==e,"response is required."),r?(u()(l()(t),"params is required."),R(t)):t={},{payload:{response:e,params:t},type:D}})),t),T=a()({},S,(function(e){var t=e.payload;return c(t.params)})),M=a()({},N,(function(e){if(void 0===e[N])return!1;var t;try{for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];t=j.apply(void 0,n),R(t)}catch(e){return!1}return!!e[N][Object(p.v)(t)]}));return{initialState:C,actions:I,controls:T,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case k:var o=n.params;return g(g({},e),{},a()({},N,g(g({},e[N]),{},a()({},Object(p.v)(o),!0))));case D:var i=n.response,c=n.params;return f(e,i,c);case L:var u=n.params;return g(g({},e),{},a()({},N,g(g({},e[N]),{},a()({},Object(p.v)(u),!1))));case _:var s=n.params;return g(g({},e),{},a()({},N,g(g({},e[N]),{},a()({},Object(p.v)(s),!1))));default:return e}},resolvers:{},selectors:M}}},630:function(e,t,r){"use strict";(function(e){var n=r(26),o=r.n(n),i=r(7),a=r.n(i),c=r(6),u=r.n(c),s=r(10),l=r.n(s),f=r(631),d=r.n(f),p=r(99),v=r(357),g=r(4),b=r.n(g),y=r(20),m=r(5);function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var j=b.a.createRegistrySelector;function w(e){return j((function(t){return function(){return(t(y.d).getSiteInfo()||{})[e]}}))}var R={siteInfo:void 0,permaLink:!1},P={receiveSiteInfo:function(e){return l()(e,"siteInfo is required."),{payload:{siteInfo:e},type:"RECEIVE_SITE_INFO"}},receivePermaLinkParam:function(e){return l()(e,"permaLink is required."),{payload:{permaLink:e},type:"RECEIVE_PERMALINK_PARAM"}}},E={getSiteInfo:a.a.mark((function t(){var r,n,o,i,c,u,s,l,f,d,p,v,g,m,O,h;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b.a.commonActions.getRegistry();case 2:if(!t.sent.select(y.d).getSiteInfo()){t.next=5;break}return t.abrupt("return");case 5:if(e._googlesitekitBaseData&&e._googlesitekitEntityData){t.next=8;break}return e.console.error("Could not load core/site info."),t.abrupt("return");case 8:return r=e._googlesitekitBaseData,n=r.adminURL,o=r.ampMode,i=r.homeURL,c=r.proxyPermissionsURL,u=r.proxySetupURL,s=r.referenceSiteURL,l=r.siteName,f=r.timezone,d=r.usingProxy,p=r.webStoriesActive,v=e._googlesitekitEntityData,g=v.currentEntityID,m=v.currentEntityTitle,O=v.currentEntityType,h=v.currentEntityURL,t.next=12,P.receiveSiteInfo({adminURL:n,ampMode:o,currentEntityID:g,currentEntityTitle:m,currentEntityType:O,currentEntityURL:h,homeURL:i,proxyPermissionsURL:c,proxySetupURL:u,referenceSiteURL:s,siteName:l,timezone:f,usingProxy:!!d,webStoriesActive:p});case 12:case"end":return t.stop()}}),t)}))},S={getSiteInfo:function(e){return e.siteInfo},getAdminURL:j((function(e){return function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e(y.d).getSiteInfo()||{},a=i.adminURL;if(void 0===a||void 0===r)return a;var c="/"===a[a.length-1]?a:"".concat(a,"/"),u=r,s="admin.php";if(-1!==r.indexOf(".php?")){var l=r.split("?");if(!(u=d.a.parse(l.pop()).page))return a;s=l.shift()}n.page;var f=o()(n,["page"]);return Object(p.a)("".concat(c).concat(s),h({page:u},f))}})),getAMPMode:w("ampMode"),getCurrentEntityID:w("currentEntityID"),getCurrentEntityTitle:w("currentEntityTitle"),getCurrentEntityType:w("currentEntityType"),getCurrentEntityURL:w("currentEntityURL"),getHomeURL:w("homeURL"),getReferenceSiteURL:w("referenceSiteURL"),getProxySetupURL:w("proxySetupURL"),getProxyPermissionsURL:w("proxyPermissionsURL"),getCurrentReferenceURL:j((function(e){return function(){var t=e(y.d).getCurrentEntityURL();return null!==t?t:e(y.d).getReferenceSiteURL()}})),isAMP:j((function(e){return function(){var t=e(y.d).getAMPMode();if(void 0!==t)return!!t}})),isPrimaryAMP:j((function(e){return function(){var t=e(y.d).getAMPMode();if(void 0!==t)return t===y.a}})),isSecondaryAMP:j((function(e){return function(){var t=e(y.d).getAMPMode();if(void 0!==t)return t===y.b}})),getTimezone:w("timezone"),isUsingProxy:w("usingProxy"),getSiteName:w("siteName"),getPermaLinkParam:function(t){if(t.permaLink)return t.permaLink;var r=Object(v.a)(e.location.href,"permaLink");return r||!1},getGoogleSupportURL:function(e,t){var r=t||{},n=r.path,o=r.query,i=r.hash;if(!n)return null;var a=new URL(Object(p.a)("https://support.google.com".concat(n),h(h({},o),{},{hl:Object(m.h)()})));return a.hash=i||"",a.toString()},isWebStoriesActive:w("webStoriesActive"),isSiteURLMatch:j((function(e){return function(t,r){var n=e(y.d).getReferenceSiteURL();return Object(m.q)(n)===Object(m.q)(r)}})),getSiteURLPermutations:j((function(e){return function(){var t=e(y.d).getReferenceSiteURL(),r=[],n=new URL(t);return n.hostname=n.hostname.replace(/^www\./i,""),n.protocol="http",r.push(Object(m.x)(n)),n.protocol="https",r.push(Object(m.x)(n)),n.hostname="www."+n.hostname,r.push(Object(m.x)(n)),n.protocol="http",r.push(Object(m.x)(n)),r}}))};t.a={initialState:R,actions:P,controls:{},reducer:function(e,t){var r=t.payload;switch(t.type){case"RECEIVE_SITE_INFO":var n=r.siteInfo,o=n.adminURL,i=n.ampMode,a=n.currentEntityID,c=n.currentEntityTitle,u=n.currentEntityType,s=n.currentEntityURL,l=n.homeURL,f=n.proxyPermissionsURL,d=n.proxySetupURL,p=n.referenceSiteURL,v=n.siteName,g=n.timezone,b=n.usingProxy,y=n.webStoriesActive;return h(h({},e),{},{siteInfo:{adminURL:o,ampMode:i,currentEntityID:parseInt(a,10),currentEntityTitle:c,currentEntityType:u,currentEntityURL:s,homeURL:l,proxyPermissionsURL:f,proxySetupURL:d,referenceSiteURL:p,siteName:v,timezone:g,usingProxy:b,webStoriesActive:y}});case"RECEIVE_PERMALINK_PARAM":var m=r.permaLink;return h(h({},e),{},{permaLink:m});default:return e}},resolvers:E,selectors:S}}).call(this,r(18))},65:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(10),o=r.n(n),i=r(42),a=r(53),c=function(e){var t=new Date(e);o()(Object(a.a)(t),i.a);var r="".concat(t.getMonth()+1),n="".concat(t.getDate());return[t.getFullYear(),r.length<2?"0".concat(r):r,n.length<2?"0".concat(n):n].join("-")}},66:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(44);function o(e){return function(){e[n.a]=e[n.a]||[],e[n.a].push(arguments)}}},67:function(e,t,r){"use strict";(function(e){var n=r(1),o=r.n(n),i=r(8),a=r.n(i);function ChangeArrow(t){var r=t.direction,n=t.invertColor,o=t.width,i=t.height;return e.createElement("svg",{className:a()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(r),{"googlesitekit-change-arrow--inverted-color":n}),width:o,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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.a.string,invertColor:o.a.bool,width:o.a.number,height:o.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,r(2))},72:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(33),o=r.n(n),i=r(97),a=r.n(i),c=function(e){return a()(JSON.stringify(function e(t){var r={};return Object.keys(t).sort().forEach((function(n){var i=t[n];i&&"object"===o()(i)&&!Array.isArray(i)&&(i=e(i)),r[n]=i})),r}(e)))}},75:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return c}));var n=r(33),o=r.n(n),i=r(107),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,r="object"===o()(e)?e.toString():e;return null==r||null===(t=r.replace)||void 0===t?void 0:t.call(r,/\/+$/,"")}},76:function(e,t,r){"use strict";r.d(t,"a",(function(){return g})),r.d(t,"b",(function(){return b}));var n=r(6),o=r.n(n),i=r(33),a=r.n(i),c=r(10),u=r.n(c),s=r(97),l=r.n(s),f=r(5);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t){if(t&&Array.isArray(t)){var r=t.map((function(e){return"object"===a()(e)?Object(f.v)(e):e}));return"".concat(e,"::").concat(l()(JSON.stringify(r)))}return e}var g={receiveError:function(e,t,r){return u()(e,"error is required."),t&&u()(r&&Array.isArray(r),"args is required (and must be an array) when baseName is specified."),{type:"RECEIVE_ERROR",payload:{error:e,baseName:t,args:r}}},clearError:function(e,t){return e&&u()(t&&Array.isArray(t),"args is required (and must be an array) when baseName is specified."),{type:"CLEAR_ERROR",payload:{baseName:e,args:t}}},clearErrors:function(e){return{type:"CLEAR_ERRORS",payload:{baseName:e}}}};function b(){var e={getErrorForSelector:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(r,"selectorName is required."),e.getError(t,r,n)},getErrorForAction:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(r,"actionName is required."),e.getError(t,r,n)},getError:function(e,t,r){var n=e.error,o=e.errors;return t||r?(u()(t,"baseName is required."),o[v(t,r)]):n},getErrors:function(e){var t=new Set(Object.values(e.errors));return void 0!==e.error&&t.add(e.error),Array.from(t)},hasErrors:function(t){return e.getErrors(t).length>0}};return{initialState:{errors:{},error:void 0},actions:g,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"RECEIVE_ERROR":var i=n.baseName,a=n.args,c=n.error;return p(p({},e),{},i?{errors:p(p({},e.errors||{}),{},o()({},v(i,a),c))}:{error:c});case"CLEAR_ERROR":var u=n.baseName,s=n.args,l=p({},e);if(u){var f=v(u,s);l.errors=p({},e.errors||{}),delete l.errors[f]}else l.error=void 0;return l;case"CLEAR_ERRORS":var d=n.baseName,g=p({},e);if(d)for(var b in g.errors=p({},e.errors||{}),g.errors)(b===d||b.startsWith("".concat(d,"::")))&&delete g.errors[b];else g.errors={},g.error=void 0;return g;default:return e}},resolvers:{},selectors:e}}},84:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return f}));var n=r(11),o=r.n(n),i=r(0);function a(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,r=null,n=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),o=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(n&&o)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),r=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===r)return!1;var a=document.createElement("span");a.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(i.sprintf)(
4
  /* translators: %d is the number of notifications */
1
+ (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[12],{0:function(e,t){e.exports=googlesitekit.i18n},101:function(e,t,r){"use strict";function n(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function o(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function a(e){for(var t=e,r=0,a=[n,o,i];r<a.length;r++){t=(0,a[r])(t)}return t}r.d(t,"a",(function(){return a}))},102:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(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)]}},103:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));var n=r(229),o=r(67),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=r.invertColor,a=void 0!==i&&i;return Object(n.a)(e.createElement(o.a,{direction:t>0?"up":"down",invertColor:a}))},a=function(e){var t,r,n,o,i,a,c,u,s,l,f,d,p,v,g;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(r=t.data)||void 0===r||null===(n=r.rows)||void 0===n?void 0:n.length)||(null==e||null===(o=e[0])||void 0===o||null===(i=o.data)||void 0===i||null===(a=i.rows)||void 0===a||null===(c=a[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==e||null===(f=e[0])||void 0===f||null===(d=f.data)||void 0===d||null===(p=d.totals)||void 0===p||null===(v=p[0])||void 0===v||null===(g=v.values)||void 0===g?void 0:g[0])}}).call(this,r(2))},104:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n=r(6),o=r.n(n),i=r(105),a=r(106);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=u(u({},s),t);return o.referenceSiteURL&&(o.referenceSiteURL=o.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(o,r),disableTracking:function(){o.trackingEnabled=!1},isTrackingEnabled:function(){return!!o.trackingEnabled},trackEvent:Object(a.a)(o,r,n)}}}).call(this,r(18))},105:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=r(66),o=r(44);function i(t,r){var i=Object(n.a)(r);return function(){t.trackingEnabled=!0;var r=e.document;if(!r.querySelector("script[".concat(o.b,"]"))){var n=r.createElement("script");n.setAttribute(o.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(o.a),r.head.appendChild(n),i("js",new Date),i("config",t.trackingID)}}}}).call(this,r(18))},106:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return p}));var n=r(7),o=r.n(n),i=r(6),a=r.n(i),c=r(14),u=r.n(c),s=r(66),l=r(56);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(t,r,n){var i=Object(s.a)(r);return function(){var r=u()(o.a.mark((function r(a,c,u,s){var f,p,v,g,b,y,m,O;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(v=t.isFirstAdmin,g=t.referenceSiteURL,b=t.trackingEnabled,y=t.trackingID,m=t.userIDHash,!(null===(f=n._gaUserPrefs)||void 0===f||null===(p=f.ioo)||void 0===p?void 0:p.call(f))){r.next=3;break}return r.abrupt("return");case 3:if(b){r.next=5;break}return r.abrupt("return");case 5:return O={send_to:y,event_category:a,event_label:u,value:s,dimension1:g,dimension2:v?"true":"false",dimension3:m,dimension4:"1.34.1",dimension5:Array.from(l.a).join(", ")},r.abrupt("return",new Promise((function(t){var r=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(a,'") took too long to fire.')),t()}),1e3);i("event",c,d(d({},O),{},{event_callback:function(){clearTimeout(r),t()}}))})));case 7:case"end":return r.stop()}}),r)})));return function(e,t,n,o){return r.apply(this,arguments)}}()}}).call(this,r(18))},107:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o}));var n=r(146),o=r.n(n)()(e)}).call(this,r(18))},113:function(e,t,r){"use strict";(function(e){var n=r(35),o=r.n(n),i=r(154),a=e._googlesitekitAPIFetchData||{},c=a.nonce,u=a.nonceEndpoint,s=a.preloadedData,l=a.rootURL;o.a.nonceEndpoint=u,o.a.nonceMiddleware=o.a.createNonceMiddleware(c),o.a.rootURLMiddleware=o.a.createRootURLMiddleware(l),o.a.preloadingMiddleware=Object(i.a)(s),o.a.use(o.a.nonceMiddleware),o.a.use(o.a.mediaUploadMiddleware),o.a.use(o.a.rootURLMiddleware),o.a.use(o.a.preloadingMiddleware),t.default=o.a}).call(this,r(18))},154:function(e,t,r){"use strict";var n=r(152);t.a=function(e){var t=Object.keys(e).reduce((function(t,r){return t[Object(n.getStablePath)(r)]=e[r],t}),{}),r=!1;return function(e,o){if(r)return o(e);setTimeout((function(){r=!0}),1e3);var i=e.parse,a=void 0===i||i,c=e.path;if("string"==typeof e.path){var u,s=(null===(u=e.method)||void 0===u?void 0:u.toUpperCase())||"GET",l=Object(n.getStablePath)(c);if(a&&"GET"===s&&t[l]){var f=Promise.resolve(t[l].body);return delete t[l],f}if("OPTIONS"===s&&t[s]&&t[s][l]){var d=Promise.resolve(t[s][l]);return delete t[s][l],d}}return o(e)}}},20:function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return i}));var n="core/site",o="primary",i="secondary"},32:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return c}));var n=r(25),o=r.n(n),i=r(2),a=function(e){return function(t){return function FilteredComponent(r){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,r),e)}}},c=function(t,r){return function(n){return function InnerComponent(i){return e.createElement(t,o()({},i,r,{OriginalComponent:n}))}}}}).call(this,r(2))},329:function(e,t,r){"use strict";r.d(t,"a",(function(){return g})),r.d(t,"b",(function(){return b}));var n=r(7),o=r.n(n),i=r(14),a=r.n(i),c=r(10),u=r.n(c),s=r(353),l=r.n(s),f=r(113),d=r(247),p=r(99),v=r(20),g=function(e,t){var r=t.find((function(t){return t.test(e)}));return!!r&&r.exec(e)[1]},b=l()(function(){var e=a()(o.a.mark((function e(t){var r,n,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.homeURL,n=t.ampMode,u()(Object(d.a)(r),"homeURL must be valid URL"),i=[r],v.b!==n){e.next=14;break}return e.prev=4,e.next=7,Object(f.default)({path:"/wp/v2/posts?per_page=1"}).then((function(e){return e.slice(0,1).map((function(e){return Object(p.a)(e.link,{amp:1})})).pop()}));case 7:(a=e.sent)&&i.push(a),e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(4),e.abrupt("return",i);case 14:return e.abrupt("return",i);case 15:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(t){return e.apply(this,arguments)}}())},362:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return b}));var n=r(7),o=r.n(n),i=r(6),a=r.n(i),c=r(10),u=r.n(c),s=r(51),l=r.n(s),f=r(4),d=r.n(f),p=r(61);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=function(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=i.client,s=void 0===c||c,f=i.server,v=void 0===f||f,b=i.storeName,y=void 0===b?void 0:b;u()(t,"type is required."),u()(r,"identifier is required."),u()(n,"datapoint is required.");var m=y||"".concat(t,"/").concat(r),O={serverNotifications:v?void 0:{},clientNotifications:s?void 0:{}},h=Object(p.a)({baseName:"getNotifications",controlCallback:function(){return l.a.get(t,r,n)},reducerCallback:function(e,t){return g(g({},e),{},{serverNotifications:t.reduce((function(e,t){return g(g({},e),{},a()({},t.id,t))}),{})})}}),j={addNotification:function(e){return u()(e,"notification is required."),{payload:{notification:e},type:"ADD_NOTIFICATION"}},removeNotification:function(e){return u()(e,"id is required."),{payload:{id:e},type:"REMOVE_NOTIFICATION"}}},w={},R=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O,r=arguments.length>1?arguments[1]:void 0,n=r.type,o=r.payload;switch(n){case"ADD_NOTIFICATION":var i=o.notification;return g(g({},t),{},{clientNotifications:g(g({},t.clientNotifications||{}),{},a()({},i.id,i))});case"REMOVE_NOTIFICATION":var c=o.id;if(void 0===t.clientNotifications||void 0===t.clientNotifications[c])return void 0!==t.serverNotifications&&void 0!==t.serverNotifications[c]&&e.console.warn('Cannot remove server-side notification with ID "'.concat(c,'"; this may be changed in a future release.')),t;var u=g({},t.clientNotifications);return delete u[c],g(g({},t),{},{clientNotifications:u});default:return t}},P={getNotifications:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.actions.fetchGetNotifications();case 2:case"end":return e.stop()}}),e)}))};v||delete P.getNotifications;var E={getNotifications:function(e){var t=e.serverNotifications,r=e.clientNotifications;return void 0===t&&void 0===r?t:Object.values(g(g({},t||{}),r||{}))}},S=d.a.combineStores(h,{initialState:O,actions:j,controls:w,reducer:R,resolvers:P,selectors:E});return g(g({},S),{},{STORE_NAME:m})}}).call(this,r(18))},4:function(e,t){e.exports=googlesitekit.data},42:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return i}));var n="Date param must construct to a valid date instance or be a valid date instance itself.",o="Invalid dateString parameter, it must be a string.",i='Invalid date range, it must be a string with the format "last-x-days".'},44:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}));var n="_googlesitekitDataLayer",o="data-googlesitekit-gtag"},45:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(53),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var r=e.split("-");return 3===r.length&&Object(n.a)(new Date(e))}},48:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n,o=r(15),i=r.n(o),a=r(16),c=r.n(a),u=function(t){var r=e[t];if(!r)return!1;try{var n="__storage_test__";return r.setItem(n,n),r.removeItem(n),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==r.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return n||(n=u("sessionStorage")?e.sessionStorage:u("localStorage")?e.localStorage:new s),n}}).call(this,r(18))},5:function(e,t,r){"use strict";(function(e){r.d(t,"l",(function(){return E})),r.d(t,"a",(function(){return S})),r.d(t,"i",(function(){return k})),r.d(t,"k",(function(){return L})),r.d(t,"y",(function(){return _})),r.d(t,"u",(function(){return D})),r.d(t,"d",(function(){return x}));var n=r(6),o=r.n(n),i=r(33),a=r.n(i),c=r(145),u=r.n(c),s=r(139),l=r.n(s),f=r(17),d=r(99),p=r(58);r.d(t,"w",(function(){return p.b}));var v=r(32),g=r(75);r.d(t,"t",(function(){return g.a})),r.d(t,"x",(function(){return g.b}));var b=r(72);r.d(t,"v",(function(){return b.a}));var y=r(84);r.d(t,"b",(function(){return y.b})),r.d(t,"j",(function(){return y.c}));r(48);var m=r(85);r.d(t,"h",(function(){return m.a})),r.d(t,"o",(function(){return m.b})),r.d(t,"r",(function(){return m.c})),r.d(t,"s",(function(){return m.d})),r.d(t,"e",(function(){return v.b}));var O=r(101);r.d(t,"p",(function(){return O.a}));var h=r(102);r.d(t,"c",(function(){return h.a}));r(50);var j=r(103);r.d(t,"f",(function(){return j.a})),r.d(t,"n",(function(){return j.b}));var w=r(98);function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.d(t,"g",(function(){return w.a})),r.d(t,"m",(function(){return w.b})),r.d(t,"q",(function(){return w.c}));var E=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},S=function(e,t){if("0"===e||0===e||isNaN(e))return null;var r=(t-e)/e;return isNaN(r)||!u()(r)?null:r},k=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e._googlesitekitLegacyData,r=t.modules;return r?Object.keys(r).reduce((function(e,t){return"object"!==a()(r[t])||void 0===r[t].slug||void 0===r[t].name||r[t].slug!==t?e:P(P({},e),{},o()({},t,r[t]))}),{}):{}},L=function(t,r){var n=e._googlesitekitLegacyData.admin.adminRoot;return t||(t="googlesitekit-dashboard"),r=P({page:t},r),Object(d.a)(n,r)},_=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(f.b)("googlesitekit.ErrorNotification","googlesitekit.ErrorNotification",Object(v.b)(e,t),1)},x=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return l()(t)}}).call(this,r(18))},50:function(e,t,r){"use strict";r.d(t,"a",(function(){return n.b})),r.d(t,"b",(function(){return n.c})),r.d(t,"e",(function(){return o.a})),r.d(t,"f",(function(){return i.a})),r.d(t,"g",(function(){return a})),r.d(t,"h",(function(){return c})),r.d(t,"i",(function(){return u.a})),r.d(t,"d",(function(){return s})),r.d(t,"c",(function(){return f}));var n=r(42),o=r(65),i=r(55),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t%7,n=0===r;if(n)return Object(i.a)(e,t);var o=t>7&&r<3,a=o?t-r:t+(7-r);return Object(i.a)(e,a)},c=(r(53),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}),u=r(45);function s(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var l=r(0);function f(){var e=function(e){return Object(l.sprintf)(
2
  /* translators: %s: number of days */
3
  Object(l._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}}}},51:function(e,t){e.exports=googlesitekit.api},53:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e){return e instanceof Date&&!isNaN(e)}},55:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(11),o=r.n(n),i=r(10),a=r.n(i),c=r(42),u=r(65),s=r(45),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;a()(Object(s.a)(e),c.c);var r=e.split("-"),n=o()(r,3),i=n[0],l=n[1],f=n[2],d=new Date(i,l-1,f);return d.setDate(d.getDate()-t),Object(u.a)(d)}},56:function(e,t,r){"use strict";(function(e){var n,o;r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));var i=new Set((null===(n=e)||void 0===n||null===(o=n._googlesitekitBaseData)||void 0===o?void 0:o.enabledFeatures)||[]),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,r(18))},58:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return d}));var n=r(104),o=e._googlesitekitBaseData||{},i=o.isFirstAdmin,a=o.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:o.trackingEnabled,trackingID:o.trackingID,referenceSiteURL:o.referenceSiteURL,userIDHash:o.userIDHash},u=Object(n.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function p(e){e?s():l()}!0===a&&p(f())}).call(this,r(18))},61:function(e,t,r){"use strict";r.d(t,"a",(function(){return j}));var n=r(7),o=r.n(n),i=r(6),a=r.n(i),c=r(10),u=r.n(c),s=r(80),l=r.n(s),f=r(76),d=r(87),p=r(5);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=function(e){return e},y=function(){return{}},m=function(){},O=f.a.clearError,h=f.a.receiveError,j=function(e){var t,r,n=o.a.mark(A),i=e.baseName,c=e.controlCallback,s=e.reducerCallback,f=void 0===s?b:s,v=e.argsToParams,j=void 0===v?y:v,w=e.validateParams,R=void 0===w?m:w;u()(i,"baseName is required."),u()("function"==typeof c,"controlCallback is required and must be a function."),u()("function"==typeof f,"reducerCallback must be a function."),u()("function"==typeof j,"argsToParams must be a function."),u()("function"==typeof R,"validateParams must be a function.");try{R(j()),r=!1}catch(e){r=!0}var P=Object(d.b)(i),E=Object(d.a)(i),S="FETCH_".concat(E),k="START_".concat(S),L="FINISH_".concat(S),_="CATCH_".concat(S),D="RECEIVE_".concat(E),x="fetch".concat(P),U="receive".concat(P),N="isFetching".concat(P),C=a()({},N,{});function A(e,t){var r,a;return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,{payload:{params:e},type:k};case 2:return n.next=4,O(i,t);case 4:return n.prev=4,n.next=7,{payload:{params:e},type:S};case 7:return r=n.sent,n.next=10,I[U](r,e);case 10:return n.next=12,{payload:{params:e},type:L};case 12:n.next=23;break;case 14:return n.prev=14,n.t0=n.catch(4),a=n.t0,n.next=19,h(a,i,t);case 19:return n.next=21,h(a);case 21:return n.next=23,{payload:{params:e},type:_};case 23:return n.abrupt("return",{response:r,error:a});case 24:case"end":return n.stop()}}),n,null,[[4,14]])}var I=(t={},a()(t,x,(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=j.apply(void 0,t);return R(n),A(n,t)})),a()(t,U,(function(e,t){return u()(void 0!==e,"response is required."),r?(u()(l()(t),"params is required."),R(t)):t={},{payload:{response:e,params:t},type:D}})),t),T=a()({},S,(function(e){var t=e.payload;return c(t.params)})),M=a()({},N,(function(e){if(void 0===e[N])return!1;var t;try{for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];t=j.apply(void 0,n),R(t)}catch(e){return!1}return!!e[N][Object(p.v)(t)]}));return{initialState:C,actions:I,controls:T,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case k:var o=n.params;return g(g({},e),{},a()({},N,g(g({},e[N]),{},a()({},Object(p.v)(o),!0))));case D:var i=n.response,c=n.params;return f(e,i,c);case L:var u=n.params;return g(g({},e),{},a()({},N,g(g({},e[N]),{},a()({},Object(p.v)(u),!1))));case _:var s=n.params;return g(g({},e),{},a()({},N,g(g({},e[N]),{},a()({},Object(p.v)(s),!1))));default:return e}},resolvers:{},selectors:M}}},630:function(e,t,r){"use strict";(function(e){var n=r(26),o=r.n(n),i=r(7),a=r.n(i),c=r(6),u=r.n(c),s=r(10),l=r.n(s),f=r(631),d=r.n(f),p=r(99),v=r(357),g=r(4),b=r.n(g),y=r(20),m=r(5);function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var j=b.a.createRegistrySelector;function w(e){return j((function(t){return function(){return(t(y.d).getSiteInfo()||{})[e]}}))}var R={siteInfo:void 0,permaLink:!1},P={receiveSiteInfo:function(e){return l()(e,"siteInfo is required."),{payload:{siteInfo:e},type:"RECEIVE_SITE_INFO"}},receivePermaLinkParam:function(e){return l()(e,"permaLink is required."),{payload:{permaLink:e},type:"RECEIVE_PERMALINK_PARAM"}}},E={getSiteInfo:a.a.mark((function t(){var r,n,o,i,c,u,s,l,f,d,p,v,g,m,O,h;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b.a.commonActions.getRegistry();case 2:if(!t.sent.select(y.d).getSiteInfo()){t.next=5;break}return t.abrupt("return");case 5:if(e._googlesitekitBaseData&&e._googlesitekitEntityData){t.next=8;break}return e.console.error("Could not load core/site info."),t.abrupt("return");case 8:return r=e._googlesitekitBaseData,n=r.adminURL,o=r.ampMode,i=r.homeURL,c=r.proxyPermissionsURL,u=r.proxySetupURL,s=r.referenceSiteURL,l=r.siteName,f=r.timezone,d=r.usingProxy,p=r.webStoriesActive,v=e._googlesitekitEntityData,g=v.currentEntityID,m=v.currentEntityTitle,O=v.currentEntityType,h=v.currentEntityURL,t.next=12,P.receiveSiteInfo({adminURL:n,ampMode:o,currentEntityID:g,currentEntityTitle:m,currentEntityType:O,currentEntityURL:h,homeURL:i,proxyPermissionsURL:c,proxySetupURL:u,referenceSiteURL:s,siteName:l,timezone:f,usingProxy:!!d,webStoriesActive:p});case 12:case"end":return t.stop()}}),t)}))},S={getSiteInfo:function(e){return e.siteInfo},getAdminURL:j((function(e){return function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e(y.d).getSiteInfo()||{},a=i.adminURL;if(void 0===a||void 0===r)return a;var c="/"===a[a.length-1]?a:"".concat(a,"/"),u=r,s="admin.php";if(-1!==r.indexOf(".php?")){var l=r.split("?");if(!(u=d.a.parse(l.pop()).page))return a;s=l.shift()}n.page;var f=o()(n,["page"]);return Object(p.a)("".concat(c).concat(s),h({page:u},f))}})),getAMPMode:w("ampMode"),getCurrentEntityID:w("currentEntityID"),getCurrentEntityTitle:w("currentEntityTitle"),getCurrentEntityType:w("currentEntityType"),getCurrentEntityURL:w("currentEntityURL"),getHomeURL:w("homeURL"),getReferenceSiteURL:w("referenceSiteURL"),getProxySetupURL:w("proxySetupURL"),getProxyPermissionsURL:w("proxyPermissionsURL"),getCurrentReferenceURL:j((function(e){return function(){var t=e(y.d).getCurrentEntityURL();return null!==t?t:e(y.d).getReferenceSiteURL()}})),isAMP:j((function(e){return function(){var t=e(y.d).getAMPMode();if(void 0!==t)return!!t}})),isPrimaryAMP:j((function(e){return function(){var t=e(y.d).getAMPMode();if(void 0!==t)return t===y.a}})),isSecondaryAMP:j((function(e){return function(){var t=e(y.d).getAMPMode();if(void 0!==t)return t===y.b}})),getTimezone:w("timezone"),isUsingProxy:w("usingProxy"),getSiteName:w("siteName"),getPermaLinkParam:function(t){if(t.permaLink)return t.permaLink;var r=Object(v.a)(e.location.href,"permaLink");return r||!1},getGoogleSupportURL:function(e,t){var r=t||{},n=r.path,o=r.query,i=r.hash;if(!n)return null;var a=new URL(Object(p.a)("https://support.google.com".concat(n),h(h({},o),{},{hl:Object(m.h)()})));return a.hash=i||"",a.toString()},isWebStoriesActive:w("webStoriesActive"),isSiteURLMatch:j((function(e){return function(t,r){var n=e(y.d).getReferenceSiteURL();return Object(m.q)(n)===Object(m.q)(r)}})),getSiteURLPermutations:j((function(e){return function(){var t=e(y.d).getReferenceSiteURL(),r=[],n=new URL(t);return n.hostname=n.hostname.replace(/^www\./i,""),n.protocol="http",r.push(Object(m.x)(n)),n.protocol="https",r.push(Object(m.x)(n)),n.hostname="www."+n.hostname,r.push(Object(m.x)(n)),n.protocol="http",r.push(Object(m.x)(n)),r}}))};t.a={initialState:R,actions:P,controls:{},reducer:function(e,t){var r=t.payload;switch(t.type){case"RECEIVE_SITE_INFO":var n=r.siteInfo,o=n.adminURL,i=n.ampMode,a=n.currentEntityID,c=n.currentEntityTitle,u=n.currentEntityType,s=n.currentEntityURL,l=n.homeURL,f=n.proxyPermissionsURL,d=n.proxySetupURL,p=n.referenceSiteURL,v=n.siteName,g=n.timezone,b=n.usingProxy,y=n.webStoriesActive;return h(h({},e),{},{siteInfo:{adminURL:o,ampMode:i,currentEntityID:parseInt(a,10),currentEntityTitle:c,currentEntityType:u,currentEntityURL:s,homeURL:l,proxyPermissionsURL:f,proxySetupURL:d,referenceSiteURL:p,siteName:v,timezone:g,usingProxy:b,webStoriesActive:y}});case"RECEIVE_PERMALINK_PARAM":var m=r.permaLink;return h(h({},e),{},{permaLink:m});default:return e}},resolvers:E,selectors:S}}).call(this,r(18))},65:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(10),o=r.n(n),i=r(42),a=r(53),c=function(e){var t=new Date(e);o()(Object(a.a)(t),i.a);var r="".concat(t.getMonth()+1),n="".concat(t.getDate());return[t.getFullYear(),r.length<2?"0".concat(r):r,n.length<2?"0".concat(n):n].join("-")}},66:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(44);function o(e){return function(){e[n.a]=e[n.a]||[],e[n.a].push(arguments)}}},67:function(e,t,r){"use strict";(function(e){var n=r(1),o=r.n(n),i=r(8),a=r.n(i);function ChangeArrow(t){var r=t.direction,n=t.invertColor,o=t.width,i=t.height;return e.createElement("svg",{className:a()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(r),{"googlesitekit-change-arrow--inverted-color":n}),width:o,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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.a.string,invertColor:o.a.bool,width:o.a.number,height:o.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,r(2))},72:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(33),o=r.n(n),i=r(97),a=r.n(i),c=function(e){return a()(JSON.stringify(function e(t){var r={};return Object.keys(t).sort().forEach((function(n){var i=t[n];i&&"object"===o()(i)&&!Array.isArray(i)&&(i=e(i)),r[n]=i})),r}(e)))}},75:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return c}));var n=r(33),o=r.n(n),i=r(107),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,r="object"===o()(e)?e.toString():e;return null==r||null===(t=r.replace)||void 0===t?void 0:t.call(r,/\/+$/,"")}},76:function(e,t,r){"use strict";r.d(t,"a",(function(){return g})),r.d(t,"b",(function(){return b}));var n=r(6),o=r.n(n),i=r(33),a=r.n(i),c=r(10),u=r.n(c),s=r(97),l=r.n(s),f=r(5);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t){if(t&&Array.isArray(t)){var r=t.map((function(e){return"object"===a()(e)?Object(f.v)(e):e}));return"".concat(e,"::").concat(l()(JSON.stringify(r)))}return e}var g={receiveError:function(e,t,r){return u()(e,"error is required."),t&&u()(r&&Array.isArray(r),"args is required (and must be an array) when baseName is specified."),{type:"RECEIVE_ERROR",payload:{error:e,baseName:t,args:r}}},clearError:function(e,t){return e&&u()(t&&Array.isArray(t),"args is required (and must be an array) when baseName is specified."),{type:"CLEAR_ERROR",payload:{baseName:e,args:t}}},clearErrors:function(e){return{type:"CLEAR_ERRORS",payload:{baseName:e}}}};function b(){var e={getErrorForSelector:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(r,"selectorName is required."),e.getError(t,r,n)},getErrorForAction:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(r,"actionName is required."),e.getError(t,r,n)},getError:function(e,t,r){var n=e.error,o=e.errors;return t||r?(u()(t,"baseName is required."),o[v(t,r)]):n},getErrors:function(e){var t=new Set(Object.values(e.errors));return void 0!==e.error&&t.add(e.error),Array.from(t)},hasErrors:function(t){return e.getErrors(t).length>0}};return{initialState:{errors:{},error:void 0},actions:g,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"RECEIVE_ERROR":var i=n.baseName,a=n.args,c=n.error;return p(p({},e),{},i?{errors:p(p({},e.errors||{}),{},o()({},v(i,a),c))}:{error:c});case"CLEAR_ERROR":var u=n.baseName,s=n.args,l=p({},e);if(u){var f=v(u,s);l.errors=p({},e.errors||{}),delete l.errors[f]}else l.error=void 0;return l;case"CLEAR_ERRORS":var d=n.baseName,g=p({},e);if(d)for(var b in g.errors=p({},e.errors||{}),g.errors)(b===d||b.startsWith("".concat(d,"::")))&&delete g.errors[b];else g.errors={},g.error=void 0;return g;default:return e}},resolvers:{},selectors:e}}},84:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return f}));var n=r(11),o=r.n(n),i=r(0);function a(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,r=null,n=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),o=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(n&&o)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),r=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===r)return!1;var a=document.createElement("span");a.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(i.sprintf)(
4
  /* translators: %d is the number of notifications */
dist/assets/js/{googlesitekit-datastore-ui.ccb03788c0a056e8776b.js → googlesitekit-datastore-ui.a9eba9ea095a3f5ab756.js} RENAMED
@@ -1,4 +1,4 @@
1
- (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[13],{0:function(t,e){t.exports=googlesitekit.i18n},101:function(t,e,r){"use strict";function n(t){return t.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function o(t){return"<p>".concat(t.replace(/\n{2,}/g,"</p><p>"),"</p>")}function a(t){return t.replace(/\n/gi,"<br>")}function i(t){for(var e=t,r=0,i=[n,o,a];r<i.length;r++){e=(0,i[r])(e)}return e}r.d(e,"a",(function(){return i}))},102:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var n=function(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)]}},103:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return i}));var n=r(229),o=r(67),a=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(e)))return"";var a=r.invertColor,i=void 0!==a&&a;return Object(n.a)(t.createElement(o.a,{direction:e>0?"up":"down",invertColor:i}))},i=function(t){var e,r,n,o,a,i,c,u,s,l,f,d,v,p,g;if(void 0!==t)return 1===(null==t||null===(e=t[0])||void 0===e||null===(r=e.data)||void 0===r||null===(n=r.rows)||void 0===n?void 0:n.length)||(null==t||null===(o=t[0])||void 0===o||null===(a=o.data)||void 0===a||null===(i=a.rows)||void 0===i||null===(c=i[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==t||null===(f=t[0])||void 0===f||null===(d=f.data)||void 0===d||null===(v=d.totals)||void 0===v||null===(p=v[0])||void 0===p||null===(g=p.values)||void 0===g?void 0:g[0])}}).call(this,r(2))},104:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return l}));var n=r(6),o=r.n(n),a=r(105),i=r(106);function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,o=u(u({},s),e);return o.referenceSiteURL&&(o.referenceSiteURL=o.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(a.a)(o,r),disableTracking:function(){o.trackingEnabled=!1},isTrackingEnabled:function(){return!!o.trackingEnabled},trackEvent:Object(i.a)(o,r,n)}}}).call(this,r(18))},105:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return a}));var n=r(66),o=r(44);function a(e,r){var a=Object(n.a)(r);return function(){e.trackingEnabled=!0;var r=t.document;if(!r.querySelector("script[".concat(o.b,"]"))){var n=r.createElement("script");n.setAttribute(o.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(e.trackingID,"&l=").concat(o.a),r.head.appendChild(n),a("js",new Date),a("config",e.trackingID)}}}}).call(this,r(18))},106:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return v}));var n=r(7),o=r.n(n),a=r(6),i=r.n(a),c=r(14),u=r.n(c),s=r(66),l=r(56);function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){i()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function v(e,r,n){var a=Object(s.a)(r);return function(){var r=u()(o.a.mark((function r(i,c,u,s){var f,v,p,g,b,h,y,m;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(p=e.isFirstAdmin,g=e.referenceSiteURL,b=e.trackingEnabled,h=e.trackingID,y=e.userIDHash,!(null===(f=n._gaUserPrefs)||void 0===f||null===(v=f.ioo)||void 0===v?void 0:v.call(f))){r.next=3;break}return r.abrupt("return");case 3:if(b){r.next=5;break}return r.abrupt("return");case 5:return m={send_to:h,event_category:i,event_label:u,value:s,dimension1:g,dimension2:p?"true":"false",dimension3:y,dimension4:"1.34.0",dimension5:Array.from(l.a).join(", ")},r.abrupt("return",new Promise((function(e){var r=setTimeout((function(){t.console.warn('Tracking event "'.concat(c,'" (category "').concat(i,'") took too long to fire.')),e()}),1e3);a("event",c,d(d({},m),{},{event_callback:function(){clearTimeout(r),e()}}))})));case 7:case"end":return r.stop()}}),r)})));return function(t,e,n,o){return r.apply(this,arguments)}}()}}).call(this,r(18))},107:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return o}));var n=r(146),o=r.n(n)()(t)}).call(this,r(18))},124:function(t,e,r){"use strict";r.d(e,"a",(function(){return g})),r.d(e,"c",(function(){return h})),r.d(e,"b",(function(){return y}));var n=r(26),o=r.n(n),a=r(6),i=r.n(a),c=r(7),u=r.n(c),s=r(10),l=r.n(s),f=r(4),d=r.n(f),v=r(89),p=d.a.createRegistryControl,g=function(t){var e;l()(t,"storeName is required to create a snapshot store.");var r={},n={deleteSnapshot:u.a.mark((function t(){var e;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})),restoreSnapshot:u.a.mark((function t(){var e,r,n,o,a,i,c=arguments;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:{},r=e.clearAfterRestore,n=void 0===r||r,t.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(o=t.sent,a=o.cacheHit,i=o.value,!a){t.next=13;break}return t.next=10,{payload:{snapshot:i},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!n){t.next=13;break}return t.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return t.abrupt("return",a);case 14:case"end":return t.stop()}}),t)})),createSnapshot:u.a.mark((function t(){var e;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)}))},a=(e={},i()(e,"DELETE_SNAPSHOT",(function(){return Object(v.a)("datastore::cache::".concat(t))})),i()(e,"CREATE_SNAPSHOT",p((function(e){return function(){return Object(v.d)("datastore::cache::".concat(t),e.stores[t].store.getState())}}))),i()(e,"RESTORE_SNAPSHOT",(function(){return Object(v.b)("datastore::cache::".concat(t),3600)})),e);return{initialState:r,actions:n,controls:a,reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,e=arguments.length>1?arguments[1]:void 0,n=e.type,a=e.payload;switch(n){case"SET_STATE_FROM_SNAPSHOT":var i=a.snapshot,c=(i.error,o()(i,["error"]));return c;default:return t}}}},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Object.values(t.stores).filter((function(t){return Object.keys(t.getActions()).includes("restoreSnapshot")}))},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Promise.all(b(t).map((function(t){return t.getActions().createSnapshot()})))},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Promise.all(b(t).map((function(t){return t.getActions().restoreSnapshot()})))}},32:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return c}));var n=r(25),o=r.n(n),a=r(2),i=function(t){return function(e){return function FilteredComponent(r){return Object(a.createElement)(a.Fragment,{},"",Object(a.createElement)(e,r),t)}}},c=function(e,r){return function(n){return function InnerComponent(a){return t.createElement(e,o()({},a,r,{OriginalComponent:n}))}}}}).call(this,r(2))},4:function(t,e){t.exports=googlesitekit.data},42:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"c",(function(){return o})),r.d(e,"b",(function(){return a}));var n="Date param must construct to a valid date instance or be a valid date instance itself.",o="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".'},44:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return o}));var n="_googlesitekitDataLayer",o="data-googlesitekit-gtag"},45:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(53),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="string"==typeof t;if(!e)return!1;var r=t.split("-");return 3===r.length&&Object(n.a)(new Date(t))}},48:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return l}));var n,o=r(15),a=r.n(o),i=r(16),c=r.n(i),u=function(e){var r=t[e];if(!r)return!1;try{var n="__storage_test__";return r.setItem(n,n),r.removeItem(n),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==r.length}},s=function(){function NullStorage(){a()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return n||(n=u("sessionStorage")?t.sessionStorage:u("localStorage")?t.localStorage:new s),n}}).call(this,r(18))},5:function(t,e,r){"use strict";(function(t){r.d(e,"l",(function(){return S})),r.d(e,"a",(function(){return _})),r.d(e,"i",(function(){return D})),r.d(e,"k",(function(){return P})),r.d(e,"y",(function(){return A})),r.d(e,"u",(function(){return x})),r.d(e,"d",(function(){return N}));var n=r(6),o=r.n(n),a=r(33),i=r.n(a),c=r(145),u=r.n(c),s=r(139),l=r.n(s),f=r(17),d=r(99),v=r(58);r.d(e,"w",(function(){return v.b}));var p=r(32),g=r(75);r.d(e,"t",(function(){return g.a})),r.d(e,"x",(function(){return g.b}));var b=r(72);r.d(e,"v",(function(){return b.a}));var h=r(84);r.d(e,"b",(function(){return h.b})),r.d(e,"j",(function(){return h.c}));r(48);var y=r(85);r.d(e,"h",(function(){return y.a})),r.d(e,"o",(function(){return y.b})),r.d(e,"r",(function(){return y.c})),r.d(e,"s",(function(){return y.d})),r.d(e,"e",(function(){return p.b}));var m=r(101);r.d(e,"p",(function(){return m.a}));var O=r(102);r.d(e,"c",(function(){return O.a}));r(50);var j=r(103);r.d(e,"f",(function(){return j.a})),r.d(e,"n",(function(){return j.b}));var w=r(98);function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?k(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}r.d(e,"g",(function(){return w.a})),r.d(e,"m",(function(){return w.b})),r.d(e,"q",(function(){return w.c}));var S=function(t){switch(t){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},_=function(t,e){if("0"===t||0===t||isNaN(t))return null;var r=(e-t)/t;return isNaN(r)||!u()(r)?null:r},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t._googlesitekitLegacyData,r=e.modules;return r?Object.keys(r).reduce((function(t,e){return"object"!==i()(r[e])||void 0===r[e].slug||void 0===r[e].name||r[e].slug!==e?t:E(E({},t),{},o()({},e,r[e]))}),{}):{}},P=function(e,r){var n=t._googlesitekitLegacyData.admin.adminRoot;return e||(e="googlesitekit-dashboard"),r=E({page:e},r),Object(d.a)(n,r)},A=function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}},x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(f.b)("googlesitekit.ErrorNotification","googlesitekit.ErrorNotification",Object(p.b)(t,e),1)},N=function(t){if(!t)return"";var e=t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(e)})).replace(/(\\)/g,"");return l()(e)}}).call(this,r(18))},50:function(t,e,r){"use strict";r.d(e,"a",(function(){return n.b})),r.d(e,"b",(function(){return n.c})),r.d(e,"e",(function(){return o.a})),r.d(e,"f",(function(){return a.a})),r.d(e,"g",(function(){return i})),r.d(e,"h",(function(){return c})),r.d(e,"i",(function(){return u.a})),r.d(e,"d",(function(){return s})),r.d(e,"c",(function(){return f}));var n=r(42),o=r(65),a=r(55),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=e%7,n=0===r;if(n)return Object(a.a)(t,e);var o=e>7&&r<3,i=o?e-r:e+(7-r);return Object(a.a)(t,i)},c=(r(53),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.split("-");return 3===e.length&&"last"===e[0]&&!Number.isNaN(e[1])&&!Number.isNaN(parseFloat(e[1]))&&"days"===e[2]}),u=r(45);function s(t){var e=t.match(/last-(\d+)-days/);if(e&&e[1])return parseInt(e[1],10);throw new Error("Unrecognized date range slug.")}var l=r(0);function f(){var t=function(t){return Object(l.sprintf)(
2
  /* translators: %s: number of days */
3
  Object(l._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}}}},52:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return n}));var n="core/ui"},53:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var n=function(t){return t instanceof Date&&!isNaN(t)}},55:function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));var n=r(11),o=r.n(n),a=r(10),i=r.n(a),c=r(42),u=r(65),s=r(45),l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;i()(Object(s.a)(t),c.c);var r=t.split("-"),n=o()(r,3),a=n[0],l=n[1],f=n[2],d=new Date(a,l-1,f);return d.setDate(d.getDate()-e),Object(u.a)(d)}},56:function(t,e,r){"use strict";(function(t){var n,o;r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return i}));var a=new Set((null===(n=t)||void 0===n||null===(o=n._googlesitekitBaseData)||void 0===o?void 0:o.enabledFeatures)||[]),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return e instanceof Set&&e.has(t)}}).call(this,r(18))},58:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return v})),r.d(e,"b",(function(){return d}));var n=r(104),o=t._googlesitekitBaseData||{},a=o.isFirstAdmin,i=o.trackingAllowed,c={isFirstAdmin:a,trackingEnabled:o.trackingEnabled,trackingID:o.trackingID,referenceSiteURL:o.referenceSiteURL,userIDHash:o.userIDHash},u=Object(n.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function v(t){t?s():l()}!0===i&&v(f())}).call(this,r(18))},65:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(10),o=r.n(n),a=r(42),i=r(53),c=function(t){var e=new Date(t);o()(Object(i.a)(e),a.a);var r="".concat(e.getMonth()+1),n="".concat(e.getDate());return[e.getFullYear(),r.length<2?"0".concat(r):r,n.length<2?"0".concat(n):n].join("-")}},66:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(44);function o(t){return function(){t[n.a]=t[n.a]||[],t[n.a].push(arguments)}}},67:function(t,e,r){"use strict";(function(t){var n=r(1),o=r.n(n),a=r(8),i=r.n(a);function ChangeArrow(e){var r=e.direction,n=e.invertColor,o=e.width,a=e.height;return t.createElement("svg",{className:i()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(r),{"googlesitekit-change-arrow--inverted-color":n}),width:o,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("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.a.string,invertColor:o.a.bool,width:o.a.number,height:o.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},e.a=ChangeArrow}).call(this,r(2))},72:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(33),o=r.n(n),a=r(97),i=r.n(a),c=function(t){return i()(JSON.stringify(function t(e){var r={};return Object.keys(e).sort().forEach((function(n){var a=e[n];a&&"object"===o()(a)&&!Array.isArray(a)&&(a=t(a)),r[n]=a})),r}(t)))}},75:function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return c}));var n=r(33),o=r.n(n),a=r(107),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:a.a.sanitize(t,e)}};function c(t){var e,r="object"===o()(t)?t.toString():t;return null==r||null===(e=r.replace)||void 0===e?void 0:e.call(r,/\/+$/,"")}},76:function(t,e,r){"use strict";r.d(e,"a",(function(){return g})),r.d(e,"b",(function(){return b}));var n=r(6),o=r.n(n),a=r(33),i=r.n(a),c=r(10),u=r.n(c),s=r(97),l=r.n(s),f=r(5);function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function p(t,e){if(e&&Array.isArray(e)){var r=e.map((function(t){return"object"===i()(t)?Object(f.v)(t):t}));return"".concat(t,"::").concat(l()(JSON.stringify(r)))}return t}var g={receiveError:function(t,e,r){return u()(t,"error is required."),e&&u()(r&&Array.isArray(r),"args is required (and must be an array) when baseName is specified."),{type:"RECEIVE_ERROR",payload:{error:t,baseName:e,args:r}}},clearError:function(t,e){return t&&u()(e&&Array.isArray(e),"args is required (and must be an array) when baseName is specified."),{type:"CLEAR_ERROR",payload:{baseName:t,args:e}}},clearErrors:function(t){return{type:"CLEAR_ERRORS",payload:{baseName:t}}}};function b(){var t={getErrorForSelector:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(r,"selectorName is required."),t.getError(e,r,n)},getErrorForAction:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(r,"actionName is required."),t.getError(e,r,n)},getError:function(t,e,r){var n=t.error,o=t.errors;return e||r?(u()(e,"baseName is required."),o[p(e,r)]):n},getErrors:function(t){var e=new Set(Object.values(t.errors));return void 0!==t.error&&e.add(t.error),Array.from(e)},hasErrors:function(e){return t.getErrors(e).length>0}};return{initialState:{errors:{},error:void 0},actions:g,controls:{},reducer:function(t,e){var r=e.type,n=e.payload;switch(r){case"RECEIVE_ERROR":var a=n.baseName,i=n.args,c=n.error;return v(v({},t),{},a?{errors:v(v({},t.errors||{}),{},o()({},p(a,i),c))}:{error:c});case"CLEAR_ERROR":var u=n.baseName,s=n.args,l=v({},t);if(u){var f=p(u,s);l.errors=v({},t.errors||{}),delete l.errors[f]}else l.error=void 0;return l;case"CLEAR_ERRORS":var d=n.baseName,g=v({},t);if(d)for(var b in g.errors=v({},t.errors||{}),g.errors)(b===d||b.startsWith("".concat(d,"::")))&&delete g.errors[b];else g.errors={},g.error=void 0;return g;default:return t}},resolvers:{},selectors:t}}},84:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u})),r.d(e,"b",(function(){return s})),r.d(e,"c",(function(){return f}));var n=r(11),o=r.n(n),a=r(0);function i(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=null,r=null,n=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),o=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(n&&o)return!1;if(e=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),r=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===e&&null===r)return!1;var i=document.createElement("span");i.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(t));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=t;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(a.sprintf)(
4
  /* translators: %d is the number of notifications */
@@ -13,4 +13,4 @@ Object(l._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?
13
  Object(l.__)("%sM","google-site-kit"),y(g(t),t%10==0?{}:e)):1e4<=t?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(l.__)("%sK","google-site-kit"),y(g(t))):1e3<=t?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(l.__)("%sK","google-site-kit"),y(g(t),t%10==0?{}:e)):y(t,{signDisplay:"never",maximumFractionDigits:1})},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(s.isFinite)(t)?t:Number(t),Object(s.isFinite)(t)||(console.warn("Invalid number",t,o()(t)),t=0);var r={};if("%"===e)r={style:"percent",maximumFractionDigits:2};else{if("s"===e)return v(t,{unitDisplay:"narrow"});e&&"string"==typeof e?r={style:"currency",currency:e}:Object(s.isPlainObject)(e)&&(r=d({},e))}var n=r,a=n.style,i=void 0===a?"metric":a;return"metric"===i?b(t):"duration"===i?v(t,e):y(t,r)},y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.locale,n=void 0===r?O():r,o=u()(e,["locale"]);return new Intl.NumberFormat(n,o).format(t)},m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.locale,n=void 0===r?O():r,o=e.style,a=void 0===o?"long":o,i=e.type,c=void 0===i?"conjunction":i;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:a,type:c});return u.format(t)}
16
- /* translators: used between list items, there is a space after the comma. */var s=Object(l.__)(", ","google-site-kit");return t.join(s)},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,r=Object(s.get)(e,["_googlesitekitLegacyData","locale"]);if(r){var n=r.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return e.navigator.language}}).call(this,r(18))},89:function(t,e,r){"use strict";(function(t){r.d(e,"b",(function(){return g})),r.d(e,"d",(function(){return b})),r.d(e,"a",(function(){return h})),r.d(e,"c",(function(){return y}));var n=r(7),o=r.n(n),a=r(14),i=r.n(a);r(37);function c(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var s,l="googlesitekit_".concat("1.34.0","_"),f=["sessionStorage","localStorage"],d=[].concat(f),v=function(){var e=i()(o.a.mark((function e(r){var n,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t[r]){e.next=3;break}return e.abrupt("return",!1);case 3:return e.prev=3,a="__storage_test__",n.setItem(a,a),n.removeItem(a),e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(3),e.abrupt("return",e.t0 instanceof DOMException&&(22===e.t0.code||1014===e.t0.code||"QuotaExceededError"===e.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.t0.name)&&0!==n.length);case 13:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=i()(o.a.mark((function e(){var r,n,a,i,u;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null===(r=t._googlesitekitLegacyData)||void 0===r||null===(n=r.admin)||void 0===n?void 0:n.nojscache)){e.next=2;break}return e.abrupt("return",null);case 2:if(void 0!==s){e.next=25;break}a=c(d),e.prev=4,a.s();case 6:if((i=a.n()).done){e.next=16;break}if(u=i.value,!s){e.next=10;break}return e.abrupt("continue",14);case 10:return e.next=12,v(u);case 12:if(!e.sent){e.next=14;break}s=t[u];case 14:e.next=6;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(4),a.e(e.t0);case 21:return e.prev=21,a.f(),e.finish(21);case 24:void 0===s&&(s=null);case 25:return e.abrupt("return",s);case 26:case"end":return e.stop()}}),e,null,[[4,18,21,24]])})));return function(){return e.apply(this,arguments)}}(),g=function(){var t=i()(o.a.mark((function t(e){var r,n,a,i,c,u,s;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(r=t.sent)){t.next=10;break}if(!(n=r.getItem("".concat(l).concat(e)))){t.next=10;break}if(a=JSON.parse(n),i=a.timestamp,c=a.ttl,u=a.value,s=a.isError,!i||c&&!(Math.round(Date.now()/1e3)-i<c)){t.next=10;break}return t.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return t.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),b=function(){var e=i()(o.a.mark((function e(r,n){var a,i,c,u,s,f,d,v,g=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=g.length>2&&void 0!==g[2]?g[2]:{},i=a.ttl,c=void 0===i?3600:i,u=a.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=a.isError,d=void 0!==f&&f,e.next=3,p();case 3:if(!(v=e.sent)){e.next=14;break}return e.prev=5,v.setItem("".concat(l).concat(r),JSON.stringify({timestamp:s,ttl:c,value:n,isError:d})),e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(5),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",!1);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[5,10]])})));return function(t,r){return e.apply(this,arguments)}}(),h=function(){var e=i()(o.a.mark((function e(r){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=13;break}return e.prev=4,n.removeItem("".concat(l).concat(r)),e.abrupt("return",!0);case 9:return e.prev=9,e.t0=e.catch(4),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",!1);case 13:return e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[4,9]])})));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=i()(o.a.mark((function e(){var r,n,a,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(r=e.sent)){e.next=14;break}for(e.prev=4,n=[],a=0;a<r.length;a++)0===(i=r.key(a)).indexOf(l)&&n.push(i.substring(l.length));return e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(4),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",[]);case 14:return e.abrupt("return",[]);case 15:case"end":return e.stop()}}),e,null,[[4,10]])})));return function(){return e.apply(this,arguments)}}()}).call(this,r(18))},951:function(t,e,r){"use strict";r.r(e);var n=r(4),o=r.n(n),a=r(76),i=r(124),c=r(6),u=r.n(c),s=r(10),l=r.n(s),f=r(80),d=r.n(f);function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){u()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var g={initialState:{},actions:{setValues:function(t){return l()(d()(t),"values must be an object."),{payload:{values:t},type:"SET_VALUES"}},setValue:function(t,e){return l()(t,"key is required."),{payload:{key:t,value:e},type:"SET_VALUE"}}},controls:{},reducer:function(t,e){var r=e.type,n=e.payload;switch(r){case"SET_VALUES":var o=n.values;return p(p({},t),o);case"SET_VALUE":var a=n.key,i=n.value;return p(p({},t),{},u()({},a,i));default:return t}},resolvers:{},selectors:{getValue:function(t,e){return t[e]}}},b=r(52),h=o.a.combineStores(o.a.commonStore,g,Object(i.a)(b.b),Object(a.b)());h.initialState,h.actions,h.controls,h.reducer,h.resolvers,h.selectors;o.a.registerStore(b.b,h)},98:function(t,e,r){"use strict";function n(t){return new URL(t).pathname}function o(t,e){return new URL(e,t).href}function a(t){return t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return o})),r.d(e,"c",(function(){return a}))}},[[951,1,0]]]);
1
+ (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[13],{0:function(t,e){t.exports=googlesitekit.i18n},101:function(t,e,r){"use strict";function n(t){return t.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function o(t){return"<p>".concat(t.replace(/\n{2,}/g,"</p><p>"),"</p>")}function a(t){return t.replace(/\n/gi,"<br>")}function i(t){for(var e=t,r=0,i=[n,o,a];r<i.length;r++){e=(0,i[r])(e)}return e}r.d(e,"a",(function(){return i}))},102:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var n=function(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)]}},103:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return i}));var n=r(229),o=r(67),a=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(e)))return"";var a=r.invertColor,i=void 0!==a&&a;return Object(n.a)(t.createElement(o.a,{direction:e>0?"up":"down",invertColor:i}))},i=function(t){var e,r,n,o,a,i,c,u,s,l,f,d,v,p,g;if(void 0!==t)return 1===(null==t||null===(e=t[0])||void 0===e||null===(r=e.data)||void 0===r||null===(n=r.rows)||void 0===n?void 0:n.length)||(null==t||null===(o=t[0])||void 0===o||null===(a=o.data)||void 0===a||null===(i=a.rows)||void 0===i||null===(c=i[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==t||null===(f=t[0])||void 0===f||null===(d=f.data)||void 0===d||null===(v=d.totals)||void 0===v||null===(p=v[0])||void 0===p||null===(g=p.values)||void 0===g?void 0:g[0])}}).call(this,r(2))},104:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return l}));var n=r(6),o=r.n(n),a=r(105),i=r(106);function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,o=u(u({},s),e);return o.referenceSiteURL&&(o.referenceSiteURL=o.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(a.a)(o,r),disableTracking:function(){o.trackingEnabled=!1},isTrackingEnabled:function(){return!!o.trackingEnabled},trackEvent:Object(i.a)(o,r,n)}}}).call(this,r(18))},105:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return a}));var n=r(66),o=r(44);function a(e,r){var a=Object(n.a)(r);return function(){e.trackingEnabled=!0;var r=t.document;if(!r.querySelector("script[".concat(o.b,"]"))){var n=r.createElement("script");n.setAttribute(o.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(e.trackingID,"&l=").concat(o.a),r.head.appendChild(n),a("js",new Date),a("config",e.trackingID)}}}}).call(this,r(18))},106:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return v}));var n=r(7),o=r.n(n),a=r(6),i=r.n(a),c=r(14),u=r.n(c),s=r(66),l=r(56);function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){i()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function v(e,r,n){var a=Object(s.a)(r);return function(){var r=u()(o.a.mark((function r(i,c,u,s){var f,v,p,g,b,h,y,m;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(p=e.isFirstAdmin,g=e.referenceSiteURL,b=e.trackingEnabled,h=e.trackingID,y=e.userIDHash,!(null===(f=n._gaUserPrefs)||void 0===f||null===(v=f.ioo)||void 0===v?void 0:v.call(f))){r.next=3;break}return r.abrupt("return");case 3:if(b){r.next=5;break}return r.abrupt("return");case 5:return m={send_to:h,event_category:i,event_label:u,value:s,dimension1:g,dimension2:p?"true":"false",dimension3:y,dimension4:"1.34.1",dimension5:Array.from(l.a).join(", ")},r.abrupt("return",new Promise((function(e){var r=setTimeout((function(){t.console.warn('Tracking event "'.concat(c,'" (category "').concat(i,'") took too long to fire.')),e()}),1e3);a("event",c,d(d({},m),{},{event_callback:function(){clearTimeout(r),e()}}))})));case 7:case"end":return r.stop()}}),r)})));return function(t,e,n,o){return r.apply(this,arguments)}}()}}).call(this,r(18))},107:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return o}));var n=r(146),o=r.n(n)()(t)}).call(this,r(18))},124:function(t,e,r){"use strict";r.d(e,"a",(function(){return g})),r.d(e,"c",(function(){return h})),r.d(e,"b",(function(){return y}));var n=r(26),o=r.n(n),a=r(6),i=r.n(a),c=r(7),u=r.n(c),s=r(10),l=r.n(s),f=r(4),d=r.n(f),v=r(89),p=d.a.createRegistryControl,g=function(t){var e;l()(t,"storeName is required to create a snapshot store.");var r={},n={deleteSnapshot:u.a.mark((function t(){var e;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})),restoreSnapshot:u.a.mark((function t(){var e,r,n,o,a,i,c=arguments;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:{},r=e.clearAfterRestore,n=void 0===r||r,t.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(o=t.sent,a=o.cacheHit,i=o.value,!a){t.next=13;break}return t.next=10,{payload:{snapshot:i},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!n){t.next=13;break}return t.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return t.abrupt("return",a);case 14:case"end":return t.stop()}}),t)})),createSnapshot:u.a.mark((function t(){var e;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)}))},a=(e={},i()(e,"DELETE_SNAPSHOT",(function(){return Object(v.a)("datastore::cache::".concat(t))})),i()(e,"CREATE_SNAPSHOT",p((function(e){return function(){return Object(v.d)("datastore::cache::".concat(t),e.stores[t].store.getState())}}))),i()(e,"RESTORE_SNAPSHOT",(function(){return Object(v.b)("datastore::cache::".concat(t),3600)})),e);return{initialState:r,actions:n,controls:a,reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,e=arguments.length>1?arguments[1]:void 0,n=e.type,a=e.payload;switch(n){case"SET_STATE_FROM_SNAPSHOT":var i=a.snapshot,c=(i.error,o()(i,["error"]));return c;default:return t}}}},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Object.values(t.stores).filter((function(t){return Object.keys(t.getActions()).includes("restoreSnapshot")}))},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Promise.all(b(t).map((function(t){return t.getActions().createSnapshot()})))},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Promise.all(b(t).map((function(t){return t.getActions().restoreSnapshot()})))}},32:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return c}));var n=r(25),o=r.n(n),a=r(2),i=function(t){return function(e){return function FilteredComponent(r){return Object(a.createElement)(a.Fragment,{},"",Object(a.createElement)(e,r),t)}}},c=function(e,r){return function(n){return function InnerComponent(a){return t.createElement(e,o()({},a,r,{OriginalComponent:n}))}}}}).call(this,r(2))},4:function(t,e){t.exports=googlesitekit.data},42:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"c",(function(){return o})),r.d(e,"b",(function(){return a}));var n="Date param must construct to a valid date instance or be a valid date instance itself.",o="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".'},44:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return o}));var n="_googlesitekitDataLayer",o="data-googlesitekit-gtag"},45:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(53),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="string"==typeof t;if(!e)return!1;var r=t.split("-");return 3===r.length&&Object(n.a)(new Date(t))}},48:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return l}));var n,o=r(15),a=r.n(o),i=r(16),c=r.n(i),u=function(e){var r=t[e];if(!r)return!1;try{var n="__storage_test__";return r.setItem(n,n),r.removeItem(n),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==r.length}},s=function(){function NullStorage(){a()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return n||(n=u("sessionStorage")?t.sessionStorage:u("localStorage")?t.localStorage:new s),n}}).call(this,r(18))},5:function(t,e,r){"use strict";(function(t){r.d(e,"l",(function(){return S})),r.d(e,"a",(function(){return _})),r.d(e,"i",(function(){return D})),r.d(e,"k",(function(){return P})),r.d(e,"y",(function(){return A})),r.d(e,"u",(function(){return x})),r.d(e,"d",(function(){return N}));var n=r(6),o=r.n(n),a=r(33),i=r.n(a),c=r(145),u=r.n(c),s=r(139),l=r.n(s),f=r(17),d=r(99),v=r(58);r.d(e,"w",(function(){return v.b}));var p=r(32),g=r(75);r.d(e,"t",(function(){return g.a})),r.d(e,"x",(function(){return g.b}));var b=r(72);r.d(e,"v",(function(){return b.a}));var h=r(84);r.d(e,"b",(function(){return h.b})),r.d(e,"j",(function(){return h.c}));r(48);var y=r(85);r.d(e,"h",(function(){return y.a})),r.d(e,"o",(function(){return y.b})),r.d(e,"r",(function(){return y.c})),r.d(e,"s",(function(){return y.d})),r.d(e,"e",(function(){return p.b}));var m=r(101);r.d(e,"p",(function(){return m.a}));var O=r(102);r.d(e,"c",(function(){return O.a}));r(50);var j=r(103);r.d(e,"f",(function(){return j.a})),r.d(e,"n",(function(){return j.b}));var w=r(98);function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?k(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}r.d(e,"g",(function(){return w.a})),r.d(e,"m",(function(){return w.b})),r.d(e,"q",(function(){return w.c}));var S=function(t){switch(t){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},_=function(t,e){if("0"===t||0===t||isNaN(t))return null;var r=(e-t)/t;return isNaN(r)||!u()(r)?null:r},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t._googlesitekitLegacyData,r=e.modules;return r?Object.keys(r).reduce((function(t,e){return"object"!==i()(r[e])||void 0===r[e].slug||void 0===r[e].name||r[e].slug!==e?t:E(E({},t),{},o()({},e,r[e]))}),{}):{}},P=function(e,r){var n=t._googlesitekitLegacyData.admin.adminRoot;return e||(e="googlesitekit-dashboard"),r=E({page:e},r),Object(d.a)(n,r)},A=function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}},x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(f.b)("googlesitekit.ErrorNotification","googlesitekit.ErrorNotification",Object(p.b)(t,e),1)},N=function(t){if(!t)return"";var e=t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(e)})).replace(/(\\)/g,"");return l()(e)}}).call(this,r(18))},50:function(t,e,r){"use strict";r.d(e,"a",(function(){return n.b})),r.d(e,"b",(function(){return n.c})),r.d(e,"e",(function(){return o.a})),r.d(e,"f",(function(){return a.a})),r.d(e,"g",(function(){return i})),r.d(e,"h",(function(){return c})),r.d(e,"i",(function(){return u.a})),r.d(e,"d",(function(){return s})),r.d(e,"c",(function(){return f}));var n=r(42),o=r(65),a=r(55),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=e%7,n=0===r;if(n)return Object(a.a)(t,e);var o=e>7&&r<3,i=o?e-r:e+(7-r);return Object(a.a)(t,i)},c=(r(53),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.split("-");return 3===e.length&&"last"===e[0]&&!Number.isNaN(e[1])&&!Number.isNaN(parseFloat(e[1]))&&"days"===e[2]}),u=r(45);function s(t){var e=t.match(/last-(\d+)-days/);if(e&&e[1])return parseInt(e[1],10);throw new Error("Unrecognized date range slug.")}var l=r(0);function f(){var t=function(t){return Object(l.sprintf)(
2
  /* translators: %s: number of days */
3
  Object(l._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}}}},52:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return n}));var n="core/ui"},53:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var n=function(t){return t instanceof Date&&!isNaN(t)}},55:function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));var n=r(11),o=r.n(n),a=r(10),i=r.n(a),c=r(42),u=r(65),s=r(45),l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;i()(Object(s.a)(t),c.c);var r=t.split("-"),n=o()(r,3),a=n[0],l=n[1],f=n[2],d=new Date(a,l-1,f);return d.setDate(d.getDate()-e),Object(u.a)(d)}},56:function(t,e,r){"use strict";(function(t){var n,o;r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return i}));var a=new Set((null===(n=t)||void 0===n||null===(o=n._googlesitekitBaseData)||void 0===o?void 0:o.enabledFeatures)||[]),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return e instanceof Set&&e.has(t)}}).call(this,r(18))},58:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return v})),r.d(e,"b",(function(){return d}));var n=r(104),o=t._googlesitekitBaseData||{},a=o.isFirstAdmin,i=o.trackingAllowed,c={isFirstAdmin:a,trackingEnabled:o.trackingEnabled,trackingID:o.trackingID,referenceSiteURL:o.referenceSiteURL,userIDHash:o.userIDHash},u=Object(n.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function v(t){t?s():l()}!0===i&&v(f())}).call(this,r(18))},65:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(10),o=r.n(n),a=r(42),i=r(53),c=function(t){var e=new Date(t);o()(Object(i.a)(e),a.a);var r="".concat(e.getMonth()+1),n="".concat(e.getDate());return[e.getFullYear(),r.length<2?"0".concat(r):r,n.length<2?"0".concat(n):n].join("-")}},66:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(44);function o(t){return function(){t[n.a]=t[n.a]||[],t[n.a].push(arguments)}}},67:function(t,e,r){"use strict";(function(t){var n=r(1),o=r.n(n),a=r(8),i=r.n(a);function ChangeArrow(e){var r=e.direction,n=e.invertColor,o=e.width,a=e.height;return t.createElement("svg",{className:i()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(r),{"googlesitekit-change-arrow--inverted-color":n}),width:o,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("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.a.string,invertColor:o.a.bool,width:o.a.number,height:o.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},e.a=ChangeArrow}).call(this,r(2))},72:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(33),o=r.n(n),a=r(97),i=r.n(a),c=function(t){return i()(JSON.stringify(function t(e){var r={};return Object.keys(e).sort().forEach((function(n){var a=e[n];a&&"object"===o()(a)&&!Array.isArray(a)&&(a=t(a)),r[n]=a})),r}(t)))}},75:function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return c}));var n=r(33),o=r.n(n),a=r(107),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:a.a.sanitize(t,e)}};function c(t){var e,r="object"===o()(t)?t.toString():t;return null==r||null===(e=r.replace)||void 0===e?void 0:e.call(r,/\/+$/,"")}},76:function(t,e,r){"use strict";r.d(e,"a",(function(){return g})),r.d(e,"b",(function(){return b}));var n=r(6),o=r.n(n),a=r(33),i=r.n(a),c=r(10),u=r.n(c),s=r(97),l=r.n(s),f=r(5);function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function p(t,e){if(e&&Array.isArray(e)){var r=e.map((function(t){return"object"===i()(t)?Object(f.v)(t):t}));return"".concat(t,"::").concat(l()(JSON.stringify(r)))}return t}var g={receiveError:function(t,e,r){return u()(t,"error is required."),e&&u()(r&&Array.isArray(r),"args is required (and must be an array) when baseName is specified."),{type:"RECEIVE_ERROR",payload:{error:t,baseName:e,args:r}}},clearError:function(t,e){return t&&u()(e&&Array.isArray(e),"args is required (and must be an array) when baseName is specified."),{type:"CLEAR_ERROR",payload:{baseName:t,args:e}}},clearErrors:function(t){return{type:"CLEAR_ERRORS",payload:{baseName:t}}}};function b(){var t={getErrorForSelector:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(r,"selectorName is required."),t.getError(e,r,n)},getErrorForAction:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(r,"actionName is required."),t.getError(e,r,n)},getError:function(t,e,r){var n=t.error,o=t.errors;return e||r?(u()(e,"baseName is required."),o[p(e,r)]):n},getErrors:function(t){var e=new Set(Object.values(t.errors));return void 0!==t.error&&e.add(t.error),Array.from(e)},hasErrors:function(e){return t.getErrors(e).length>0}};return{initialState:{errors:{},error:void 0},actions:g,controls:{},reducer:function(t,e){var r=e.type,n=e.payload;switch(r){case"RECEIVE_ERROR":var a=n.baseName,i=n.args,c=n.error;return v(v({},t),{},a?{errors:v(v({},t.errors||{}),{},o()({},p(a,i),c))}:{error:c});case"CLEAR_ERROR":var u=n.baseName,s=n.args,l=v({},t);if(u){var f=p(u,s);l.errors=v({},t.errors||{}),delete l.errors[f]}else l.error=void 0;return l;case"CLEAR_ERRORS":var d=n.baseName,g=v({},t);if(d)for(var b in g.errors=v({},t.errors||{}),g.errors)(b===d||b.startsWith("".concat(d,"::")))&&delete g.errors[b];else g.errors={},g.error=void 0;return g;default:return t}},resolvers:{},selectors:t}}},84:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u})),r.d(e,"b",(function(){return s})),r.d(e,"c",(function(){return f}));var n=r(11),o=r.n(n),a=r(0);function i(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=null,r=null,n=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),o=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(n&&o)return!1;if(e=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),r=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===e&&null===r)return!1;var i=document.createElement("span");i.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(t));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=t;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(a.sprintf)(
4
  /* translators: %d is the number of notifications */
13
  Object(l.__)("%sM","google-site-kit"),y(g(t),t%10==0?{}:e)):1e4<=t?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(l.__)("%sK","google-site-kit"),y(g(t))):1e3<=t?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(l.__)("%sK","google-site-kit"),y(g(t),t%10==0?{}:e)):y(t,{signDisplay:"never",maximumFractionDigits:1})},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(s.isFinite)(t)?t:Number(t),Object(s.isFinite)(t)||(console.warn("Invalid number",t,o()(t)),t=0);var r={};if("%"===e)r={style:"percent",maximumFractionDigits:2};else{if("s"===e)return v(t,{unitDisplay:"narrow"});e&&"string"==typeof e?r={style:"currency",currency:e}:Object(s.isPlainObject)(e)&&(r=d({},e))}var n=r,a=n.style,i=void 0===a?"metric":a;return"metric"===i?b(t):"duration"===i?v(t,e):y(t,r)},y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.locale,n=void 0===r?O():r,o=u()(e,["locale"]);return new Intl.NumberFormat(n,o).format(t)},m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.locale,n=void 0===r?O():r,o=e.style,a=void 0===o?"long":o,i=e.type,c=void 0===i?"conjunction":i;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:a,type:c});return u.format(t)}
16
+ /* translators: used between list items, there is a space after the comma. */var s=Object(l.__)(", ","google-site-kit");return t.join(s)},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,r=Object(s.get)(e,["_googlesitekitLegacyData","locale"]);if(r){var n=r.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return e.navigator.language}}).call(this,r(18))},89:function(t,e,r){"use strict";(function(t){r.d(e,"b",(function(){return g})),r.d(e,"d",(function(){return b})),r.d(e,"a",(function(){return h})),r.d(e,"c",(function(){return y}));var n=r(7),o=r.n(n),a=r(14),i=r.n(a);r(37);function c(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var s,l="googlesitekit_".concat("1.34.1","_"),f=["sessionStorage","localStorage"],d=[].concat(f),v=function(){var e=i()(o.a.mark((function e(r){var n,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t[r]){e.next=3;break}return e.abrupt("return",!1);case 3:return e.prev=3,a="__storage_test__",n.setItem(a,a),n.removeItem(a),e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(3),e.abrupt("return",e.t0 instanceof DOMException&&(22===e.t0.code||1014===e.t0.code||"QuotaExceededError"===e.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.t0.name)&&0!==n.length);case 13:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=i()(o.a.mark((function e(){var r,n,a,i,u;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null===(r=t._googlesitekitLegacyData)||void 0===r||null===(n=r.admin)||void 0===n?void 0:n.nojscache)){e.next=2;break}return e.abrupt("return",null);case 2:if(void 0!==s){e.next=25;break}a=c(d),e.prev=4,a.s();case 6:if((i=a.n()).done){e.next=16;break}if(u=i.value,!s){e.next=10;break}return e.abrupt("continue",14);case 10:return e.next=12,v(u);case 12:if(!e.sent){e.next=14;break}s=t[u];case 14:e.next=6;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(4),a.e(e.t0);case 21:return e.prev=21,a.f(),e.finish(21);case 24:void 0===s&&(s=null);case 25:return e.abrupt("return",s);case 26:case"end":return e.stop()}}),e,null,[[4,18,21,24]])})));return function(){return e.apply(this,arguments)}}(),g=function(){var t=i()(o.a.mark((function t(e){var r,n,a,i,c,u,s;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(r=t.sent)){t.next=10;break}if(!(n=r.getItem("".concat(l).concat(e)))){t.next=10;break}if(a=JSON.parse(n),i=a.timestamp,c=a.ttl,u=a.value,s=a.isError,!i||c&&!(Math.round(Date.now()/1e3)-i<c)){t.next=10;break}return t.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return t.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),b=function(){var e=i()(o.a.mark((function e(r,n){var a,i,c,u,s,f,d,v,g=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=g.length>2&&void 0!==g[2]?g[2]:{},i=a.ttl,c=void 0===i?3600:i,u=a.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=a.isError,d=void 0!==f&&f,e.next=3,p();case 3:if(!(v=e.sent)){e.next=14;break}return e.prev=5,v.setItem("".concat(l).concat(r),JSON.stringify({timestamp:s,ttl:c,value:n,isError:d})),e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(5),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",!1);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[5,10]])})));return function(t,r){return e.apply(this,arguments)}}(),h=function(){var e=i()(o.a.mark((function e(r){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=13;break}return e.prev=4,n.removeItem("".concat(l).concat(r)),e.abrupt("return",!0);case 9:return e.prev=9,e.t0=e.catch(4),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",!1);case 13:return e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[4,9]])})));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=i()(o.a.mark((function e(){var r,n,a,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(r=e.sent)){e.next=14;break}for(e.prev=4,n=[],a=0;a<r.length;a++)0===(i=r.key(a)).indexOf(l)&&n.push(i.substring(l.length));return e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(4),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",[]);case 14:return e.abrupt("return",[]);case 15:case"end":return e.stop()}}),e,null,[[4,10]])})));return function(){return e.apply(this,arguments)}}()}).call(this,r(18))},951:function(t,e,r){"use strict";r.r(e);var n=r(4),o=r.n(n),a=r(76),i=r(124),c=r(6),u=r.n(c),s=r(10),l=r.n(s),f=r(80),d=r.n(f);function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){u()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var g={initialState:{},actions:{setValues:function(t){return l()(d()(t),"values must be an object."),{payload:{values:t},type:"SET_VALUES"}},setValue:function(t,e){return l()(t,"key is required."),{payload:{key:t,value:e},type:"SET_VALUE"}}},controls:{},reducer:function(t,e){var r=e.type,n=e.payload;switch(r){case"SET_VALUES":var o=n.values;return p(p({},t),o);case"SET_VALUE":var a=n.key,i=n.value;return p(p({},t),{},u()({},a,i));default:return t}},resolvers:{},selectors:{getValue:function(t,e){return t[e]}}},b=r(52),h=o.a.combineStores(o.a.commonStore,g,Object(i.a)(b.b),Object(a.b)());h.initialState,h.actions,h.controls,h.reducer,h.resolvers,h.selectors;o.a.registerStore(b.b,h)},98:function(t,e,r){"use strict";function n(t){return new URL(t).pathname}function o(t,e){return new URL(e,t).href}function a(t){return t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return o})),r.d(e,"c",(function(){return a}))}},[[951,1,0]]]);
dist/assets/js/{googlesitekit-datastore-user.e6aea7efb0fb02724cf8.js → googlesitekit-datastore-user.c9978922fbbae0abb4c3.js} RENAMED
@@ -1,6 +1,6 @@
1
- (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[14],{0:function(e,t){e.exports=googlesitekit.i18n},101:function(e,t,r){"use strict";function n(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,r=0,o=[n,a,i];r<o.length;r++){t=(0,o[r])(t)}return t}r.d(t,"a",(function(){return o}))},102:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(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)]}},103:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o}));var n=r(229),a=r(67),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=r.invertColor,o=void 0!==i&&i;return Object(n.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,r,n,a,i,o,c,u,s,l,f,d,p,v,g;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(r=t.data)||void 0===r||null===(n=r.rows)||void 0===n?void 0:n.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==e||null===(f=e[0])||void 0===f||null===(d=f.data)||void 0===d||null===(p=d.totals)||void 0===p||null===(v=p[0])||void 0===v||null===(g=v.values)||void 0===g?void 0:g[0])}}).call(this,r(2))},104:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n=r(6),a=r.n(n),i=r(105),o=r(106);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=u(u({},s),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,r),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,r,n)}}}).call(this,r(18))},105:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=r(66),a=r(44);function i(t,r){var i=Object(n.a)(r);return function(){t.trackingEnabled=!0;var r=e.document;if(!r.querySelector("script[".concat(a.b,"]"))){var n=r.createElement("script");n.setAttribute(a.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),r.head.appendChild(n),i("js",new Date),i("config",t.trackingID)}}}}).call(this,r(18))},106:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return p}));var n=r(7),a=r.n(n),i=r(6),o=r.n(i),c=r(14),u=r.n(c),s=r(66),l=r(56);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(t,r,n){var i=Object(s.a)(r);return function(){var r=u()(a.a.mark((function r(o,c,u,s){var f,p,v,g,b,y,m,h;return a.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(v=t.isFirstAdmin,g=t.referenceSiteURL,b=t.trackingEnabled,y=t.trackingID,m=t.userIDHash,!(null===(f=n._gaUserPrefs)||void 0===f||null===(p=f.ioo)||void 0===p?void 0:p.call(f))){r.next=3;break}return r.abrupt("return");case 3:if(b){r.next=5;break}return r.abrupt("return");case 5:return h={send_to:y,event_category:o,event_label:u,value:s,dimension1:g,dimension2:v?"true":"false",dimension3:m,dimension4:"1.34.0",dimension5:Array.from(l.a).join(", ")},r.abrupt("return",new Promise((function(t){var r=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,d(d({},h),{},{event_callback:function(){clearTimeout(r),t()}}))})));case 7:case"end":return r.stop()}}),r)})));return function(e,t,n,a){return r.apply(this,arguments)}}()}}).call(this,r(18))},107:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a}));var n=r(146),a=r.n(n)()(e)}).call(this,r(18))},113:function(e,t,r){"use strict";(function(e){var n=r(35),a=r.n(n),i=r(154),o=e._googlesitekitAPIFetchData||{},c=o.nonce,u=o.nonceEndpoint,s=o.preloadedData,l=o.rootURL;a.a.nonceEndpoint=u,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(l),a.a.preloadingMiddleware=Object(i.a)(s),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,r(18))},114:function(e,t,r){"use strict";r.d(t,"a",(function(){return I})),r.d(t,"b",(function(){return D})),r.d(t,"c",(function(){return x})),r.d(t,"d",(function(){return R})),r.d(t,"e",(function(){return P})),r.d(t,"g",(function(){return C})),r.d(t,"f",(function(){return N}));var n,a=r(7),i=r.n(a),o=r(37),c=r.n(o),u=r(6),s=r.n(u),l=r(10),f=r.n(l),d=r(289),p=r.n(d),v=r(125),g=r.n(v),b=r(140);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var h=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.reduce((function(e,t){return m(m({},e),t)}),{}),a=t.reduce((function(e,t){return[].concat(c()(e),c()(Object.keys(t)))}),[]),i=T(a);return f()(0===i.length,"collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ".concat(i.join(", "),". Check your data stores for duplicates.")),n},O=h,S=h,E=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,a=[].concat(t);return"function"!=typeof a[0]&&(n=a.shift()),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a.reduce((function(e,r){return r(e,t)}),e)}},w=h,j=h,_=h,k=function(e){return e},I=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=_.apply(void 0,c()(t.map((function(e){return e.initialState||{}}))));return{initialState:n,controls:S.apply(void 0,c()(t.map((function(e){return e.controls||{}})))),actions:O.apply(void 0,c()(t.map((function(e){return e.actions||{}})))),reducer:E.apply(void 0,[n].concat(c()(t.map((function(e){return e.reducer||k}))))),resolvers:w.apply(void 0,c()(t.map((function(e){return e.resolvers||{}})))),selectors:j.apply(void 0,c()(t.map((function(e){return e.selectors||{}}))))}},D={getRegistry:function(){return{payload:{},type:"GET_REGISTRY"}},await:i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{payload:{value:t},type:"AWAIT"});case 1:case"end":return e.stop()}}),e)}))},x=(n={},s()(n,"GET_REGISTRY",Object(b.d)((function(e){return function(){return e}}))),s()(n,"AWAIT",(function(e){return e.payload.value})),n),T=function(e){for(var t=[],r={},n=0;n<e.length;n++){var a=e[n];r[a]=r[a]>=1?r[a]+1:1,r[a]>1&&t.push(a)}return t},R={actions:D,controls:x,reducer:k},P=function(e){return function(t){return A(e(t))}},A=g()((function(e){return p()(e,(function(e,t){return function(){var r=e.apply(void 0,arguments);return f()(void 0!==r,"".concat(t,"(...) is not resolved")),r}}))}));function C(e){return{safeSelector:Object(b.e)((function(t){return function(r){try{for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];return e.apply(void 0,[t,r].concat(a)),!0}catch(e){return!1}}})),dangerousSelector:Object(b.e)((function(t){return function(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];e.apply(void 0,[t,r].concat(a))}}))}}function N(e,t){return f()("function"==typeof e,"a validator function is required."),f()("function"==typeof t,"an action creator function is required."),f()("Generator"!==e[Symbol.toStringTag]&&"GeneratorFunction"!==e[Symbol.toStringTag],"an action’s validator function must not be a generator."),function(){return e.apply(void 0,arguments),t.apply(void 0,arguments)}}},12:function(e,t,r){"use strict";r.d(t,"e",(function(){return n})),r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a})),r.d(t,"d",(function(){return i})),r.d(t,"c",(function(){return o}));var n="core/user",a="connected_url_mismatch",i="googlesitekit_view_dashboard",o="googlesitekit_manage_options"},154:function(e,t,r){"use strict";var n=r(152);t.a=function(e){var t=Object.keys(e).reduce((function(t,r){return t[Object(n.getStablePath)(r)]=e[r],t}),{}),r=!1;return function(e,a){if(r)return a(e);setTimeout((function(){r=!0}),1e3);var i=e.parse,o=void 0===i||i,c=e.path;if("string"==typeof e.path){var u,s=(null===(u=e.method)||void 0===u?void 0:u.toUpperCase())||"GET",l=Object(n.getStablePath)(c);if(o&&"GET"===s&&t[l]){var f=Promise.resolve(t[l].body);return delete t[l],f}if("OPTIONS"===s&&t[s]&&t[s][l]){var d=Promise.resolve(t[s][l]);return delete t[s][l],d}}return a(e)}}},171:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(7),a=r.n(n),i=r(14),o=r.n(i),c=r(5),u=["fetch_error"];function s(e){return l.apply(this,arguments)}function l(){return(l=o()(a.a.mark((function e(t){var r,n,i,o,s,l,f,d;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.method,o=t.type,s=t.identifier,l=t.datapoint,(f=t.error)&&!u.includes(null==f?void 0:f.code)){e.next=3;break}return e.abrupt("return");case 3:return d="code: ".concat(f.code),(null===(r=f.data)||void 0===r?void 0:r.reason)&&(d+=", reason: ".concat(f.data.reason)),e.next=7,Object(c.w)("api_error","".concat(i,":").concat(o,"/").concat(s,"/data/").concat(l),"".concat(f.message," (").concat(d,")"),(null===(n=f.data)||void 0===n?void 0:n.status)||f.code);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},31:function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a}));var n="core/modules",a="insufficient_module_dependencies"},32:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return c}));var n=r(25),a=r.n(n),i=r(2),o=function(e){return function(t){return function FilteredComponent(r){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,r),e)}}},c=function(t,r){return function(n){return function InnerComponent(i){return e.createElement(t,a()({},i,r,{OriginalComponent:n}))}}}}).call(this,r(2))},345:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a}));var n="dashboard",a="pageDashboard"},362:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return b}));var n=r(7),a=r.n(n),i=r(6),o=r.n(i),c=r(10),u=r.n(c),s=r(51),l=r.n(s),f=r(4),d=r.n(f),p=r(61);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=function(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=i.client,s=void 0===c||c,f=i.server,v=void 0===f||f,b=i.storeName,y=void 0===b?void 0:b;u()(t,"type is required."),u()(r,"identifier is required."),u()(n,"datapoint is required.");var m=y||"".concat(t,"/").concat(r),h={serverNotifications:v?void 0:{},clientNotifications:s?void 0:{}},O=Object(p.a)({baseName:"getNotifications",controlCallback:function(){return l.a.get(t,r,n)},reducerCallback:function(e,t){return g(g({},e),{},{serverNotifications:t.reduce((function(e,t){return g(g({},e),{},o()({},t.id,t))}),{})})}}),S={addNotification:function(e){return u()(e,"notification is required."),{payload:{notification:e},type:"ADD_NOTIFICATION"}},removeNotification:function(e){return u()(e,"id is required."),{payload:{id:e},type:"REMOVE_NOTIFICATION"}}},E={},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,r=arguments.length>1?arguments[1]:void 0,n=r.type,a=r.payload;switch(n){case"ADD_NOTIFICATION":var i=a.notification;return g(g({},t),{},{clientNotifications:g(g({},t.clientNotifications||{}),{},o()({},i.id,i))});case"REMOVE_NOTIFICATION":var c=a.id;if(void 0===t.clientNotifications||void 0===t.clientNotifications[c])return void 0!==t.serverNotifications&&void 0!==t.serverNotifications[c]&&e.console.warn('Cannot remove server-side notification with ID "'.concat(c,'"; this may be changed in a future release.')),t;var u=g({},t.clientNotifications);return delete u[c],g(g({},t),{},{clientNotifications:u});default:return t}},j={getNotifications:a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O.actions.fetchGetNotifications();case 2:case"end":return e.stop()}}),e)}))};v||delete j.getNotifications;var _={getNotifications:function(e){var t=e.serverNotifications,r=e.clientNotifications;return void 0===t&&void 0===r?t:Object.values(g(g({},t||{}),r||{}))}},k=d.a.combineStores(O,{initialState:h,actions:S,controls:E,reducer:w,resolvers:j,selectors:_});return g(g({},k),{},{STORE_NAME:m})}}).call(this,r(18))},391:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return y}));var n=r(7),a=r.n(n),i=r(14),o=r.n(i),c=r(10),u=r.n(c),s=r(113),l=r(99),f=r(89),d=r(5),p=r(73),v=r(171),g=r(12),b=!0,y=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=[e,t,r].filter((function(e){return!!e&&e.length}));return 3===a.length&&n&&n.constructor===Object&&Object.keys(n).length&&a.push(Object(d.v)(n)),a.join("::")},m=function(t){var r,n,a,i,o=null===(r=e.googlesitekit)||void 0===r||null===(n=r.data)||void 0===n||null===(a=n.dispatch)||void 0===a?void 0:a.call(n,g.a);o&&(t.code===p.a?o.setPermissionScopeError(t):(null===(i=t.data)||void 0===i?void 0:i.reconnectURL)&&o.setAuthError(t))},h=function(){var t=o()(a.a.mark((function t(r,n,i){var o,c,d,p,g,b,h,O,S,w,j,_,k,I,D,x,T=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=T.length>3&&void 0!==T[3]?T[3]:{},c=o.bodyParams,d=o.cacheTTL,p=void 0===d?3600:d,g=o.method,b=void 0===g?"GET":g,h=o.queryParams,O=o.useCache,S=void 0===O?void 0:O,u()(r,"`type` argument for requests is required."),u()(n,"`identifier` argument for requests is required."),u()(i,"`datapoint` argument for requests is required."),w="GET"===b&&(void 0!==S?S:E()),j=y(r,n,i,h),!w){t.next=18;break}return t.next=9,Object(f.b)(j);case 9:if(_=t.sent,k=_.cacheHit,I=_.value,!_.isError){t.next=16;break}throw m(I),I;case 16:if(!k){t.next=18;break}return t.abrupt("return",I);case 18:return t.prev=18,t.next=21,Object(s.default)({data:c,method:b,path:Object(l.a)("/google-site-kit/v1/".concat(r,"/").concat(n,"/data/").concat(i),h)});case 21:if(D=t.sent,!w){t.next=25;break}return t.next=25,Object(f.d)(j,D,{ttl:p});case 25:return t.abrupt("return",D);case 28:if(t.prev=28,t.t0=t.catch(18),!(null===t.t0||void 0===t.t0||null===(x=t.t0.data)||void 0===x?void 0:x.cacheTTL)){t.next=33;break}return t.next=33,Object(f.d)(j,t.t0,{ttl:t.t0.data.cacheTTL,isError:!0});case 33:throw Object(v.a)({method:b,datapoint:i,type:r,identifier:n,error:t.t0}),m(t.t0),e.console.error("Google Site Kit API Error","method:".concat(b),"datapoint:".concat(i),"type:".concat(r),"identifier:".concat(n),'error:"'.concat(t.t0.message,'"')),t.t0;case 37:case"end":return t.stop()}}),t,null,[[18,28]])})));return function(e,r,n){return t.apply(this,arguments)}}(),O=function(){var e=o()(a.a.mark((function e(t,r,n,i){var o,c,u,s,l,f=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=f.length>4&&void 0!==f[4]?f[4]:{},c=o.cacheTTL,u=void 0===c?3600:c,s=o.useCache,l=void 0===s?void 0:s,e.abrupt("return",h(t,r,n,{cacheTTL:u,queryParams:i,useCache:l}));case 2:case"end":return e.stop()}}),e)})));return function(t,r,n,a){return e.apply(this,arguments)}}(),S=function(){var e=o()(a.a.mark((function e(t,r,n,i){var o,c,u,s,l,f,d=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=d.length>4&&void 0!==d[4]?d[4]:{},c=o.method,u=void 0===c?"POST":c,s=o.queryParams,l=void 0===s?{}:s,e.next=3,h(t,r,n,{bodyParams:{data:i},method:u,queryParams:l,useCache:!1});case 3:return f=e.sent,e.next=6,w(t,r,n);case 6:return e.abrupt("return",f);case 7:case"end":return e.stop()}}),e)})));return function(t,r,n,a){return e.apply(this,arguments)}}(),E=function(){return b},w=function(){var e=o()(a.a.mark((function e(t,r,n){var i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=y(t,r,n),e.next=3,Object(f.c)();case 3:e.sent.forEach((function(e){0===e.indexOf(i)&&Object(f.a)(e)}));case 5:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),j={invalidateCache:w,get:O,set:S,setUsingCache:function(e){return b=!!e},usingCache:E};t.b=j}).call(this,r(18))},4:function(e,t){e.exports=googlesitekit.data},42:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"c",(function(){return a})),r.d(t,"b",(function(){return i}));var n="Date param must construct to a valid date instance or be a valid date instance itself.",a="Invalid dateString parameter, it must be a string.",i='Invalid date range, it must be a string with the format "last-x-days".'},44:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a}));var n="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},45:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(53),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var r=e.split("-");return 3===r.length&&Object(n.a)(new Date(e))}},48:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n,a=r(15),i=r.n(a),o=r(16),c=r.n(o),u=function(t){var r=e[t];if(!r)return!1;try{var n="__storage_test__";return r.setItem(n,n),r.removeItem(n),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==r.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return n||(n=u("sessionStorage")?e.sessionStorage:u("localStorage")?e.localStorage:new s),n}}).call(this,r(18))},5:function(e,t,r){"use strict";(function(e){r.d(t,"l",(function(){return _})),r.d(t,"a",(function(){return k})),r.d(t,"i",(function(){return I})),r.d(t,"k",(function(){return D})),r.d(t,"y",(function(){return x})),r.d(t,"u",(function(){return T})),r.d(t,"d",(function(){return R}));var n=r(6),a=r.n(n),i=r(33),o=r.n(i),c=r(145),u=r.n(c),s=r(139),l=r.n(s),f=r(17),d=r(99),p=r(58);r.d(t,"w",(function(){return p.b}));var v=r(32),g=r(75);r.d(t,"t",(function(){return g.a})),r.d(t,"x",(function(){return g.b}));var b=r(72);r.d(t,"v",(function(){return b.a}));var y=r(84);r.d(t,"b",(function(){return y.b})),r.d(t,"j",(function(){return y.c}));r(48);var m=r(85);r.d(t,"h",(function(){return m.a})),r.d(t,"o",(function(){return m.b})),r.d(t,"r",(function(){return m.c})),r.d(t,"s",(function(){return m.d})),r.d(t,"e",(function(){return v.b}));var h=r(101);r.d(t,"p",(function(){return h.a}));var O=r(102);r.d(t,"c",(function(){return O.a}));r(50);var S=r(103);r.d(t,"f",(function(){return S.a})),r.d(t,"n",(function(){return S.b}));var E=r(98);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.d(t,"g",(function(){return E.a})),r.d(t,"m",(function(){return E.b})),r.d(t,"q",(function(){return E.c}));var _=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},k=function(e,t){if("0"===e||0===e||isNaN(e))return null;var r=(t-e)/e;return isNaN(r)||!u()(r)?null:r},I=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e._googlesitekitLegacyData,r=t.modules;return r?Object.keys(r).reduce((function(e,t){return"object"!==o()(r[t])||void 0===r[t].slug||void 0===r[t].name||r[t].slug!==t?e:j(j({},e),{},a()({},t,r[t]))}),{}):{}},D=function(t,r){var n=e._googlesitekitLegacyData.admin.adminRoot;return t||(t="googlesitekit-dashboard"),r=j({page:t},r),Object(d.a)(n,r)},x=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(f.b)("googlesitekit.ErrorNotification","googlesitekit.ErrorNotification",Object(v.b)(e,t),1)},R=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return l()(t)}}).call(this,r(18))},50:function(e,t,r){"use strict";r.d(t,"a",(function(){return n.b})),r.d(t,"b",(function(){return n.c})),r.d(t,"e",(function(){return a.a})),r.d(t,"f",(function(){return i.a})),r.d(t,"g",(function(){return o})),r.d(t,"h",(function(){return c})),r.d(t,"i",(function(){return u.a})),r.d(t,"d",(function(){return s})),r.d(t,"c",(function(){return f}));var n=r(42),a=r(65),i=r(55),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t%7,n=0===r;if(n)return Object(i.a)(e,t);var a=t>7&&r<3,o=a?t-r:t+(7-r);return Object(i.a)(e,o)},c=(r(53),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}),u=r(45);function s(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var l=r(0);function f(){var e=function(e){return Object(l.sprintf)(
2
  /* translators: %s: number of days */
3
- Object(l._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}}}},51:function(e,t){e.exports=googlesitekit.api},52:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return n}));var n="core/ui"},53:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e){return e instanceof Date&&!isNaN(e)}},55:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(11),a=r.n(n),i=r(10),o=r.n(i),c=r(42),u=r(65),s=r(45),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;o()(Object(s.a)(e),c.c);var r=e.split("-"),n=a()(r,3),i=n[0],l=n[1],f=n[2],d=new Date(i,l-1,f);return d.setDate(d.getDate()-t),Object(u.a)(d)}},56:function(e,t,r){"use strict";(function(e){var n,a;r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o}));var i=new Set((null===(n=e)||void 0===n||null===(a=n._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,r(18))},58:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return d}));var n=r(104),a=e._googlesitekitBaseData||{},i=a.isFirstAdmin,o=a.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},u=Object(n.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function p(e){e?s():l()}!0===o&&p(f())}).call(this,r(18))},61:function(e,t,r){"use strict";r.d(t,"a",(function(){return S}));var n=r(7),a=r.n(n),i=r(6),o=r.n(i),c=r(10),u=r.n(c),s=r(80),l=r.n(s),f=r(76),d=r(87),p=r(5);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=function(e){return e},y=function(){return{}},m=function(){},h=f.a.clearError,O=f.a.receiveError,S=function(e){var t,r,n=a.a.mark(N),i=e.baseName,c=e.controlCallback,s=e.reducerCallback,f=void 0===s?b:s,v=e.argsToParams,S=void 0===v?y:v,E=e.validateParams,w=void 0===E?m:E;u()(i,"baseName is required."),u()("function"==typeof c,"controlCallback is required and must be a function."),u()("function"==typeof f,"reducerCallback must be a function."),u()("function"==typeof S,"argsToParams must be a function."),u()("function"==typeof w,"validateParams must be a function.");try{w(S()),r=!1}catch(e){r=!0}var j=Object(d.b)(i),_=Object(d.a)(i),k="FETCH_".concat(_),I="START_".concat(k),D="FINISH_".concat(k),x="CATCH_".concat(k),T="RECEIVE_".concat(_),R="fetch".concat(j),P="receive".concat(j),A="isFetching".concat(j),C=o()({},A,{});function N(e,t){var r,o;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,{payload:{params:e},type:I};case 2:return n.next=4,h(i,t);case 4:return n.prev=4,n.next=7,{payload:{params:e},type:k};case 7:return r=n.sent,n.next=10,U[P](r,e);case 10:return n.next=12,{payload:{params:e},type:D};case 12:n.next=23;break;case 14:return n.prev=14,n.t0=n.catch(4),o=n.t0,n.next=19,O(o,i,t);case 19:return n.next=21,O(o);case 21:return n.next=23,{payload:{params:e},type:x};case 23:return n.abrupt("return",{response:r,error:o});case 24:case"end":return n.stop()}}),n,null,[[4,14]])}var U=(t={},o()(t,R,(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=S.apply(void 0,t);return w(n),N(n,t)})),o()(t,P,(function(e,t){return u()(void 0!==e,"response is required."),r?(u()(l()(t),"params is required."),w(t)):t={},{payload:{response:e,params:t},type:T}})),t),L=o()({},k,(function(e){var t=e.payload;return c(t.params)})),F=o()({},A,(function(e){if(void 0===e[A])return!1;var t;try{for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];t=S.apply(void 0,n),w(t)}catch(e){return!1}return!!e[A][Object(p.v)(t)]}));return{initialState:C,actions:U,controls:L,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case I:var a=n.params;return g(g({},e),{},o()({},A,g(g({},e[A]),{},o()({},Object(p.v)(a),!0))));case T:var i=n.response,c=n.params;return f(e,i,c);case D:var u=n.params;return g(g({},e),{},o()({},A,g(g({},e[A]),{},o()({},Object(p.v)(u),!1))));case x:var s=n.params;return g(g({},e),{},o()({},A,g(g({},e[A]),{},o()({},Object(p.v)(s),!1))));default:return e}},resolvers:{},selectors:F}}},633:function(e,t,r){"use strict";(function(e){var n=r(7),a=r.n(n),i=r(6),o=r.n(i),c=r(10),u=r.n(c),s=r(4),l=r.n(s),f=r(12);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var v=l.a.createRegistrySelector,g={permissionError:null,capabilities:void 0},b={clearPermissionScopeError:function(){return{payload:{},type:"CLEAR_PERMISSION_SCOPE_ERROR"}},setPermissionScopeError:function(e){return u()(e,"permissionError is required."),{payload:{permissionError:e},type:"SET_PERMISSION_SCOPE_ERROR"}},receiveCapabilities:function(e){return{type:"RECEIVE_CAPABILITIES",payload:{capabilities:e}}}},y={getCapabilities:a.a.mark((function t(){var r,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.a.commonActions.getRegistry();case 2:if(!t.sent.select(f.e).getCapabilities()){t.next=5;break}return t.abrupt("return");case 5:return(null===(r=e._googlesitekitUserData)||void 0===r?void 0:r.permissions)||e.console.error("Could not load core/user permissions."),t.next=8,b.receiveCapabilities(null===(n=e._googlesitekitUserData)||void 0===n?void 0:n.permissions);case 8:case"end":return t.stop()}}),t)}))},m={getPermissionScopeError:function(e){return e.permissionError},getCapabilities:function(e){return e.capabilities},hasCapability:v((function(e){return function(t,r){var n=e(f.e).getCapabilities();if(n)return!!n[r]}}))};t.a={initialState:g,actions:b,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"CLEAR_PERMISSION_SCOPE_ERROR":return p(p({},e),{},{permissionError:null});case"SET_PERMISSION_SCOPE_ERROR":var a=n.permissionError;return p(p({},e),{},{permissionError:a});case"RECEIVE_CAPABILITIES":var i=n.capabilities;return p(p({},e),{},{capabilities:i});default:return e}},resolvers:y,selectors:m}}).call(this,r(18))},634:function(e,t,r){"use strict";(function(e){var n=r(7),a=r.n(n),i=r(6),o=r.n(i),c=r(10),u=r.n(c),s=r(99),l=r(4),f=r.n(l),d=r(12);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=f.a.createRegistrySelector,b={connectURL:void 0,initialVersion:void 0,user:void 0,verified:void 0},y={receiveConnectURL:function(e){return u()(e,"connectURL is required."),{payload:{connectURL:e},type:"RECEIVE_CONNECT_URL"}},receiveUserInfo:function(e){return u()(e,"userInfo is required."),{payload:{user:e},type:"RECEIVE_USER_INFO"}},receiveInitialSiteKitVersion:function(e){return u()(e,"initialVersion is required."),{payload:{initialVersion:e},type:"RECEIVE_USER_INITIAL_SITE_KIT_VERSION"}},receiveUserIsVerified:function(e){return u()(void 0!==e,"userIsVerified is required."),{payload:{verified:e},type:"RECEIVE_USER_IS_VERIFIED"}},receiveUserInputState:function(e){return u()(e,"userInputState is required."),{payload:{userInputState:e},type:"RECEIVE_USER_INPUT_STATE"}}},m={getConnectURL:a.a.mark((function t(){var r,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,!(0,r.select)(d.e).getConnectURL()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:return n=e._googlesitekitUserData.connectURL,t.next=12,y.receiveConnectURL(n);case 12:case"end":return t.stop()}}),t)})),getUser:a.a.mark((function t(){var r,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,void 0===(0,r.select)(d.e).getUser()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:return n=e._googlesitekitUserData.user,t.next=12,y.receiveUserInfo(n);case 12:case"end":return t.stop()}}),t)})),getInitialSiteKitVersion:a.a.mark((function t(){var r,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,void 0===(0,r.select)(d.e).getInitialSiteKitVersion()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:if(!(n=e._googlesitekitUserData.initialVersion)){t.next=13;break}return t.next=13,y.receiveInitialSiteKitVersion(n);case 13:case"end":return t.stop()}}),t)})),isVerified:a.a.mark((function t(){var r,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,void 0===(0,r.select)(d.e).isVerified()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:return n=e._googlesitekitUserData.verified,t.next=12,y.receiveUserIsVerified(n);case 12:case"end":return t.stop()}}),t)})),getUserInputState:a.a.mark((function t(){var r,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,!(0,r.select)(d.e).getUserInputState()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:return n=e._googlesitekitUserData.userInputState,t.next=12,y.receiveUserInputState(n);case 12:case"end":return t.stop()}}),t)}))},h={getUser:function(e){return e.user},getConnectURL:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.additionalScopes,n=void 0===r?[]:r,a=t.redirectURL,i=void 0===a?void 0:a,o=e.connectURL,c={redirect:i};if(void 0!==o)return(null==n?void 0:n.length)?Object(s.a)(o,v(v({},c),{},{additional_scopes:n})):Object(s.a)(o,c)},getID:g((function(e){return function(){var t=e(d.e).getUser();return void 0!==t?t.id:t}})),getName:g((function(e){return function(){var t=e(d.e).getUser();return void 0!==t?t.name:t}})),getEmail:g((function(e){return function(){var t=e(d.e).getUser();return void 0!==t?t.email:t}})),getPicture:g((function(e){return function(){var t=e(d.e).getUser();return void 0!==t?t.picture:t}})),getInitialSiteKitVersion:function(e){return e.initialVersion},isVerified:function(e){return e.verified},getUserInputState:function(e){return e.userInputState}};t.a={initialState:b,actions:y,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"RECEIVE_CONNECT_URL":var a=n.connectURL;return v(v({},e),{},{connectURL:a});case"RECEIVE_USER_INFO":var i=n.user;return v(v({},e),{},{user:i});case"RECEIVE_USER_INITIAL_SITE_KIT_VERSION":var o=n.initialVersion;return v(v({},e),{},{initialVersion:o});case"RECEIVE_USER_IS_VERIFIED":var c=n.verified;return v(v({},e),{},{verified:c});case"RECEIVE_USER_INPUT_STATE":var u=n.userInputState;return v(v({},e),{},{userInputState:u});default:return e}},resolvers:m,selectors:h}}).call(this,r(18))},65:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(10),a=r.n(n),i=r(42),o=r(53),c=function(e){var t=new Date(e);a()(Object(o.a)(t),i.a);var r="".concat(t.getMonth()+1),n="".concat(t.getDate());return[t.getFullYear(),r.length<2?"0".concat(r):r,n.length<2?"0".concat(n):n].join("-")}},66:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(44);function a(e){return function(){e[n.a]=e[n.a]||[],e[n.a].push(arguments)}}},67:function(e,t,r){"use strict";(function(e){var n=r(1),a=r.n(n),i=r(8),o=r.n(i);function ChangeArrow(t){var r=t.direction,n=t.invertColor,a=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(r),{"googlesitekit-change-arrow--inverted-color":n}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,r(2))},72:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(33),a=r.n(n),i=r(97),o=r.n(i),c=function(e){return o()(JSON.stringify(function e(t){var r={};return Object.keys(t).sort().forEach((function(n){var i=t[n];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),r[n]=i})),r}(e)))}},73:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return c})),r.d(t,"b",(function(){return u}));var n=r(80),a=r.n(n),i="missing_required_scopes";function o(e){return a()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function u(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},75:function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return c}));var n=r(33),a=r.n(n),i=r(107),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,r="object"===a()(e)?e.toString():e;return null==r||null===(t=r.replace)||void 0===t?void 0:t.call(r,/\/+$/,"")}},76:function(e,t,r){"use strict";r.d(t,"a",(function(){return g})),r.d(t,"b",(function(){return b}));var n=r(6),a=r.n(n),i=r(33),o=r.n(i),c=r(10),u=r.n(c),s=r(97),l=r.n(s),f=r(5);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t){if(t&&Array.isArray(t)){var r=t.map((function(e){return"object"===o()(e)?Object(f.v)(e):e}));return"".concat(e,"::").concat(l()(JSON.stringify(r)))}return e}var g={receiveError:function(e,t,r){return u()(e,"error is required."),t&&u()(r&&Array.isArray(r),"args is required (and must be an array) when baseName is specified."),{type:"RECEIVE_ERROR",payload:{error:e,baseName:t,args:r}}},clearError:function(e,t){return e&&u()(t&&Array.isArray(t),"args is required (and must be an array) when baseName is specified."),{type:"CLEAR_ERROR",payload:{baseName:e,args:t}}},clearErrors:function(e){return{type:"CLEAR_ERRORS",payload:{baseName:e}}}};function b(){var e={getErrorForSelector:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(r,"selectorName is required."),e.getError(t,r,n)},getErrorForAction:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(r,"actionName is required."),e.getError(t,r,n)},getError:function(e,t,r){var n=e.error,a=e.errors;return t||r?(u()(t,"baseName is required."),a[v(t,r)]):n},getErrors:function(e){var t=new Set(Object.values(e.errors));return void 0!==e.error&&t.add(e.error),Array.from(t)},hasErrors:function(t){return e.getErrors(t).length>0}};return{initialState:{errors:{},error:void 0},actions:g,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"RECEIVE_ERROR":var i=n.baseName,o=n.args,c=n.error;return p(p({},e),{},i?{errors:p(p({},e.errors||{}),{},a()({},v(i,o),c))}:{error:c});case"CLEAR_ERROR":var u=n.baseName,s=n.args,l=p({},e);if(u){var f=v(u,s);l.errors=p({},e.errors||{}),delete l.errors[f]}else l.error=void 0;return l;case"CLEAR_ERRORS":var d=n.baseName,g=p({},e);if(d)for(var b in g.errors=p({},e.errors||{}),g.errors)(b===d||b.startsWith("".concat(d,"::")))&&delete g.errors[b];else g.errors={},g.error=void 0;return g;default:return e}},resolvers:{},selectors:e}}},84:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return f}));var n=r(11),a=r.n(n),i=r(0);function o(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){u=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,r=null,n=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(n&&a)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),r=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===r)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(i.sprintf)(
4
  /* translators: %d is the number of notifications */
5
  Object(i._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(u),t&&null===n&&t.appendChild(o),r&&null===a&&r.appendChild(o),o},s=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},l=function(e){for(var t=location.search.substr(1).split("&"),r={},n=0;n<t.length;n++)r[t[n].split("=")[0]]=decodeURIComponent(t[n].split("=")[1]);return e?r.hasOwnProperty(e)?decodeURIComponent(r[e].replace(/\+/g," ")):"":r},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,r=new URL(t.href);if(e)return r.searchParams&&r.searchParams.get?r.searchParams.get(e):l(e);var n,i={},c=o(r.searchParams.entries());try{for(c.s();!(n=c.n()).done;){var u=a()(n.value,2),s=u[0],f=u[1];i[s]=f}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,r(18))},85:function(e,t,r){"use strict";(function(e){r.d(t,"c",(function(){return y})),r.d(t,"d",(function(){return m})),r.d(t,"b",(function(){return h})),r.d(t,"a",(function(){return O}));var n=r(33),a=r.n(n),i=r(6),o=r.n(i),c=r(26),u=r.n(c),s=r(23),l=r(0);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=v(e,t),n=r.formatUnit,a=r.formatDecimal;try{return n()}catch(e){return a()}},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var r=Math.floor(e/60/60),n=Math.floor(e/60%60),a=Math.floor(e%60);return{hours:r,minutes:n,seconds:a,formatUnit:function(){var i=t.unitDisplay,o=d(d({unitDisplay:void 0===i?"short":i},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?m(a,d(d({},o),{},{unit:"second"})):Object(l.sprintf)(
6
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
@@ -13,4 +13,4 @@ Object(l._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?
13
  Object(l.__)("%sM","google-site-kit"),m(g(e),e%10==0?{}:t)):1e4<=e?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(l.__)("%sK","google-site-kit"),m(g(e))):1e3<=e?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(l.__)("%sK","google-site-kit"),m(g(e),e%10==0?{}:t)):m(e,{signDisplay:"never",maximumFractionDigits:1})},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(s.isFinite)(e)?e:Number(e),Object(s.isFinite)(e)||(console.warn("Invalid number",e,a()(e)),e=0);var r={};if("%"===t)r={style:"percent",maximumFractionDigits:2};else{if("s"===t)return p(e,{unitDisplay:"narrow"});t&&"string"==typeof t?r={style:"currency",currency:t}:Object(s.isPlainObject)(t)&&(r=d({},t))}var n=r,i=n.style,o=void 0===i?"metric":i;return"metric"===o?b(e):"duration"===o?p(e,t):m(e,r)},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?O():r,a=u()(t,["locale"]);return new Intl.NumberFormat(n,a).format(e)},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?O():r,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:i,type:c});return u.format(e)}
16
- /* translators: used between list items, there is a space after the comma. */var s=Object(l.__)(", ","google-site-kit");return e.join(s)},O=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=Object(s.get)(t,["_googlesitekitLegacyData","locale"]);if(r){var n=r.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,r(18))},87:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return i}));var n=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},a=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function i(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},89:function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return g})),r.d(t,"d",(function(){return b})),r.d(t,"a",(function(){return y})),r.d(t,"c",(function(){return m}));var n=r(7),a=r.n(n),i=r(14),o=r.n(i);r(37);function c(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s,l="googlesitekit_".concat("1.34.0","_"),f=["sessionStorage","localStorage"],d=[].concat(f),p=function(){var t=o()(a.a.mark((function t(r){var n,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e[r]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",n.setItem(i,i),n.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==n.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),v=function(){var t=o()(a.a.mark((function t(){var r,n,i,o,u;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(r=e._googlesitekitLegacyData)||void 0===r||null===(n=r.admin)||void 0===n?void 0:n.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}i=c(d),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(u=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,p(u);case 12:if(!t.sent){t.next=14;break}s=e[u];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),g=function(){var e=o()(a.a.mark((function e(t){var r,n,i,o,c,u,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v();case 2:if(!(r=e.sent)){e.next=10;break}if(!(n=r.getItem("".concat(l).concat(t)))){e.next=10;break}if(i=JSON.parse(n),o=i.timestamp,c=i.ttl,u=i.value,s=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(r,n){var i,o,c,u,s,f,d,p,g=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=g.length>2&&void 0!==g[2]?g[2]:{},o=i.ttl,c=void 0===o?3600:o,u=i.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=i.isError,d=void 0!==f&&f,t.next=3,v();case 3:if(!(p=t.sent)){t.next=14;break}return t.prev=5,p.setItem("".concat(l).concat(r),JSON.stringify({timestamp:s,ttl:c,value:n,isError:d})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,r){return t.apply(this,arguments)}}(),y=function(){var t=o()(a.a.mark((function t(r){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v();case 2:if(!(n=t.sent)){t.next=13;break}return t.prev=4,n.removeItem("".concat(l).concat(r)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),m=function(){var t=o()(a.a.mark((function t(){var r,n,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v();case 2:if(!(r=t.sent)){t.next=14;break}for(t.prev=4,n=[],i=0;i<r.length;i++)0===(o=r.key(i)).indexOf(l)&&n.push(o.substring(l.length));return t.abrupt("return",n);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,r(18))},9:function(e,t,r){"use strict";r.d(t,"p",(function(){return n})),r.d(t,"f",(function(){return n})),r.d(t,"a",(function(){return a})),r.d(t,"h",(function(){return i})),r.d(t,"g",(function(){return o})),r.d(t,"d",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"k",(function(){return s})),r.d(t,"c",(function(){return l})),r.d(t,"b",(function(){return f})),r.d(t,"t",(function(){return d})),r.d(t,"s",(function(){return p})),r.d(t,"u",(function(){return v})),r.d(t,"q",(function(){return g})),r.d(t,"r",(function(){return b})),r.d(t,"n",(function(){return y})),r.d(t,"o",(function(){return m})),r.d(t,"l",(function(){return h})),r.d(t,"m",(function(){return O})),r.d(t,"j",(function(){return S})),r.d(t,"i",(function(){return E}));var n="modules/analytics",a="account_create",i="property_create",o="profile_create",c="analyticsAccountCreate",u="analyticsSetup",s="https://www.googleapis.com/auth/analytics.provision",l="https://www.googleapis.com/auth/analytics.edit",f=1,d="dashboardAllTrafficWidgetDimensionName",p="dashboardAllTrafficWidgetDimensionColor",v="dashboardAllTrafficWidgetDimensionValue",g="dashboardAllTrafficWidgetActiveRowIndex",b="dashboardAllTrafficWidgetLoaded",y="legacy",m="ua",h="ga4",O="ga4-transitional",S="ua",E="ga4"},943:function(e,t,r){"use strict";r.r(t);var n=r(4),a=r.n(n),i=r(76),o=r(7),c=r.n(o),u=r(6),s=r.n(u),l=r(51),f=r.n(l),d=r(12),p=r(61);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=a.a.createRegistrySelector;function y(e){return b((function(t){return function(){return(t(d.e).getAuthentication()||{})[e]}}))}var m=Object(p.a)({baseName:"getAuthentication",controlCallback:function(){return f.a.get("core","user","authentication",void 0,{useCache:!1})},reducerCallback:function(e,t){return g(g({},e),{},{authentication:t})}}),h={authentication:void 0,authError:null},O={setAuthError:function(e){return{payload:{error:e},type:"SET_AUTH_ERROR"}},clearAuthError:function(){return{payload:{},type:"CLEAR_AUTH_ERROR"}}},S={getAuthentication:c.a.mark((function e(){var t;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.commonActions.getRegistry();case 2:if(t=e.sent,(0,t.select)(d.e).getAuthentication()){e.next=7;break}return e.next=7,m.actions.fetchGetAuthentication();case 7:case"end":return e.stop()}}),e)}))},E={getAuthentication:function(e){return e.authentication},hasScope:b((function(e){return function(t,r){var n=e(d.e).getGrantedScopes(t);if(void 0!==n)return n.includes(r)}})),isAuthenticated:y("authenticated"),getGrantedScopes:y("grantedScopes"),getRequiredScopes:y("requiredScopes"),getUnsatisfiedScopes:y("unsatisfiedScopes"),needsReauthentication:y("needsReauthentication"),getDisconnectedReason:y("disconnectedReason"),getAuthError:function(e){return e.authError}},w=a.a.combineStores(m,{initialState:h,actions:O,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_AUTH_ERROR":return g(g({},e),{},{authError:n.error});case"CLEAR_AUTH_ERROR":return g(g({},e),{},{authError:null});default:return e}},resolvers:S,selectors:E}),j=(w.initialState,w.actions,w.controls,w.reducer,w.resolvers,w.selectors,w),_=r(10),k=r.n(_),I=r(50);function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var T={dateRange:"last-28-days",referenceDate:Object(I.e)(new Date)};var R={getDateRange:function(e){return e.dateRange},getDateRangeDates:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.compare,n=void 0!==r&&r,a=t.offsetDays,i=void 0===a?0:a,o=t.referenceDate,c=void 0===o?e.referenceDate:o,u=t.weekDayAlign,s=void 0!==u&&u,l=R.getDateRange(e),f=Object(I.f)(c,i),d=l.match("-(.*)-"),p=Number(d?d[1]:28),v=Object(I.f)(f,p-1),g={startDate:v,endDate:f};if(n){var b=s?Object(I.g)(f,p):Object(I.f)(v,1),y=Object(I.f)(b,p-1);g.compareStartDate=y,g.compareEndDate=b}return g},getDateRangeNumberOfDays:function(e){var t=R.getDateRange(e).match(/-(\d+)-/);return parseInt(t?t[1]:28,10)},getReferenceDate:function(e){return e.referenceDate}},P={initialState:T,actions:{setDateRange:function(e){return k()(e,"Date range slug is required."),k()(Object(I.h)(e),I.a),{type:"SET_DATE_RANGE",payload:{slug:e}}},setReferenceDate:function(e){return k()(e,"Date string is required."),k()(Object(I.i)(e),I.b),{type:"SET_REFERENCE_DATE",payload:{dateString:e}}}},controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_DATE_RANGE":return x(x({},e),{},{dateRange:n.slug});case"SET_REFERENCE_DATE":return x(x({},e),{},{referenceDate:n.dateString});default:return e}},resolvers:{},selectors:R};function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var N,U,L=a.a.createRegistrySelector,F=Object(p.a)({baseName:"disconnect",controlCallback:function(){return f.a.set("core","user","disconnect")},reducerCallback:function(e,t){return C(C({},e),{},{disconnected:t})}}),V={disconnected:void 0},q={disconnect:c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F.actions.fetchDisconnect();case 2:case"end":return e.stop()}}),e)}))},M={isDoingDisconnect:L((function(e){return function(){return e(d.e).isFetchingDisconnect()}}))},G=a.a.combineStores(F,{initialState:V,actions:q,selectors:M}),H=(G.initialState,G.actions,G.controls,G.reducer,G.resolvers,G.selectors,G),K=r(14),$=r.n(K),W=r(632),B=r.n(W),J=r(0),Q=r(345),Y=r(52),z=r(31),Z=r(9),X=r(56),ee={slug:"helpVisibility",contexts:[Q.a,Q.b],version:"1.29.0",gaEventCategory:"global_help_menu",checkRequirements:(N=$()(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(X.b)("helpVisibility"));case 1:case"end":return e.stop()}}),e)}))),function(){return N.apply(this,arguments)}),steps:[{target:".googlesitekit-help-menu",title:Object(J.__)("Need help?","google-site-kit"),content:Object(J.__)("Access the Site Kit docs or ask a question in our support forum from here.","google-site-kit"),placement:"bottom-start"}]},te=[{slug:"allTrafficWidget",contexts:[Q.a],version:"1.25.0",gaEventCategory:"all_traffic_widget",checkRequirements:function(){var e=$()(c.a.mark((function e(t){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.__experimentalResolveSelect(z.a).getModules();case 2:if(t.select(z.a).isModuleConnected("analytics")){e.next=4;break}return e.abrupt("return",!1);case 4:return e.next=6,new Promise((function(e){setTimeout((function r(){t.select(Y.a).getValue(Z.r)?e():setTimeout(r,250)}),250)}));case 6:return e.abrupt("return",!0);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),steps:[{target:".googlesitekit-widget--analyticsAllTraffic__totals",title:Object(J.__)("It’s now easier to see your site’s traffic at a glance","google-site-kit"),content:Object(J.__)("Check the trend graph to see how your traffic changed over time","google-site-kit"),placement:"top"},{target:".googlesitekit-widget--analyticsAllTraffic__dimensions",title:Object(J.__)("See where your visitors come from","google-site-kit"),content:Object(J.__)("Click on the chart slices to see how each segment has changed over time","google-site-kit"),placement:"top"},{target:".googlesitekit-header__date-range-selector-menu",title:Object(J.__)("Check how your traffic changed since you last looked","google-site-kit"),content:Object(J.__)("Select a time frame to see the comparison with the previous time period","google-site-kit")}]},ee],re=r(89);function ne(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return ae(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ae(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw i}}}}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ce,ue=a.a.createRegistrySelector,se=a.a.createRegistryControl,le=a.a.commonActions.getRegistry,fe=Object(p.a)({baseName:"getDismissedTours",controlCallback:function(){return f.a.get("core","user","dismissed-tours",{},{useCache:!1})},reducerCallback:function(e,t){return oe(oe({},e),{},{dismissedTourSlugs:t})}}),de=fe.actions.fetchGetDismissedTours,pe=Object(p.a)({baseName:"dismissTour",controlCallback:function(e){var t=e.slug;return f.a.set("core","user","dismiss-tour",{slug:t})},reducerCallback:function(e,t){return oe(oe({},e),{},{dismissedTourSlugs:t})},argsToParams:function(e){return{slug:e}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.slug;k()(t,"slug is required.")}}),ve=pe.actions.fetchDismissTour,ge={lastDismissedAt:void 0,dismissedTourSlugs:void 0,tours:te,viewTours:{}},be={dismissTour:function(e){return k()(e,"A tour slug is required to dismiss a tour."),c.a.mark((function t(){var r,n,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,le();case 2:if(r=t.sent,!(n=r.select)(d.e).isFetchingDismissTour(e)){t.next=7;break}return a=n(d.e).getDismissedFeatureTourSlugs(),t.abrupt("return",{response:a,error:void 0});case 7:return t.next=9,{payload:{slug:e},type:"DISMISS_TOUR"};case 9:return t.next=11,Se.setLastDismissedAt(Date.now());case 11:return t.next=13,ve(e);case 13:return t.abrupt("return",t.sent);case 14:case"end":return t.stop()}}),t)}))()},receiveFeatureToursForView:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.viewContext;return k()(Array.isArray(e),"viewTours must be an array."),k()(r,"viewContext is required."),{payload:{viewTours:e,viewContext:r},type:"RECEIVE_READY_TOURS"}},receiveAllFeatureTours:function(e){return k()(Array.isArray(e),"tours must be an array."),{payload:{tours:e},type:"RECEIVE_TOURS"}},receiveLastDismissedAt:function(e){return k()(void 0!==e,"A timestamp is required."),{type:"RECEIVE_LAST_DISMISSED_AT",payload:{timestamp:e}}},setLastDismissedAt:function(e){return k()(e,"A timestamp is required."),c.a.mark((function t(){return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"CACHE_LAST_DISMISSED_AT",payload:{timestamp:e}};case 2:return t.next=4,{type:"RECEIVE_LAST_DISMISSED_AT",payload:{timestamp:e}};case 4:case"end":return t.stop()}}),t)}))()}},ye=(U={},s()(U,"CHECK_TOUR_REQUIREMENTS",se((function(e){return function(){var t=$()(c.a.mark((function t(r){var n,a,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.payload,a=n.tour,i=n.viewContext,a.contexts.includes(i)){t.next=4;break}return t.abrupt("return",!1);case 4:if(o=e.select(d.e).getInitialSiteKitVersion()){t.next=9;break}return t.abrupt("return",!1);case 9:if(!B.a.compare(o,a.version,">=")){t.next=11;break}return t.abrupt("return",!1);case 11:return t.next=13,e.__experimentalResolveSelect(d.e).getDismissedFeatureTourSlugs();case 13:if(!e.select(d.e).isTourDismissed(a.slug)){t.next=15;break}return t.abrupt("return",!1);case 15:if(!a.checkRequirements){t.next=19;break}return t.next=18,a.checkRequirements(e);case 18:return t.abrupt("return",!!t.sent);case 19:return t.abrupt("return",!0);case 20:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}))),s()(U,"CACHE_LAST_DISMISSED_AT",(ce=$()(c.a.mark((function e(t){var r,n;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.payload,n=r.timestamp,e.next=4,Object(re.d)("feature_tour_last_dismissed_at",n,{ttl:7200});case 4:case"end":return e.stop()}}),e)}))),function(e){return ce.apply(this,arguments)})),U),me={getDismissedFeatureTourSlugs:c.a.mark((function e(){var t;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le();case 2:if(t=e.sent,(0,t.select)(d.e).getDismissedFeatureTourSlugs()){e.next=7;break}return e.next=7,de();case 7:case"end":return e.stop()}}),e)})),getFeatureToursForView:c.a.mark((function e(t){var r,n,a,i,o,u;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le();case 2:r=e.sent,n=r.select(d.e).getAllFeatureTours(),a=[],i=ne(n),e.prev=6,i.s();case 8:if((o=i.n()).done){e.next=16;break}return u=o.value,e.next=12,{payload:{tour:u,viewContext:t},type:"CHECK_TOUR_REQUIREMENTS"};case 12:e.sent&&a.push(u);case 14:e.next=8;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(6),i.e(e.t0);case 21:return e.prev=21,i.f(),e.finish(21);case 24:return e.next=26,Se.receiveFeatureToursForView(a,{viewContext:t});case 26:case"end":return e.stop()}}),e,null,[[6,18,21,24]])})),getLastDismissedAt:c.a.mark((function e(){var t,r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.commonActions.await(Object(re.b)("feature_tour_last_dismissed_at"));case 2:return t=e.sent,r=t.value,e.next=6,Se.receiveLastDismissedAt(r||null);case 6:case"end":return e.stop()}}),e)}))},he={getDismissedFeatureTourSlugs:function(e){return e.dismissedTourSlugs},getFeatureToursForView:function(e,t){return e.viewTours[t]},getAllFeatureTours:function(e){return e.tours},isTourDismissed:ue((function(e){return function(t,r){var n=e(d.e).getDismissedFeatureTourSlugs();if(void 0!==n)return n.includes(r)}})),getLastDismissedAt:function(e){return e.lastDismissedAt},areFeatureToursOnCooldown:ue((function(e){return function(){var t=e(d.e).getLastDismissedAt();if(void 0!==t){if(null===t)return!1;var r=t+72e5;return Date.now()<r}}}))},Oe=a.a.combineStores({initialState:ge,actions:be,controls:ye,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"DISMISS_TOUR":var a=n.slug,i=e.dismissedTourSlugs,o=void 0===i?[]:i;return o.includes(a)?e:oe(oe({},e),{},{dismissedTourSlugs:o.concat(a)});case"RECEIVE_READY_TOURS":var c=n.viewContext,u=n.viewTours;return oe(oe({},e),{},{viewTours:oe(oe({},e.viewTours),{},s()({},c,u))});case"RECEIVE_TOURS":return oe(oe({},e),{},{tours:n.tours});case"RECEIVE_LAST_DISMISSED_AT":return oe(oe({},e),{},{lastDismissedAt:n.timestamp});default:return e}},resolvers:me,selectors:he},pe,fe),Se=Oe.actions,Ee=Oe.controls,we=Oe.initialState,je=Oe.reducer,_e=Oe.resolvers,ke=Oe.selectors,Ie={actions:Se,controls:Ee,initialState:we,reducer:je,resolvers:_e,selectors:ke},De=r(362),xe=Object(De.a)("core","user","notifications",{server:!1}),Te=r(633),Re=r(80),Pe=r.n(Re),Ae=r(114),Ce=r(391);function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Le=Object(p.a)({baseName:"triggerSurvey",controlCallback:function(e){var t=e.triggerID;return f.a.set("core","user","survey-trigger",{triggerID:t})},argsToParams:function(e){return{triggerID:e}},reducerCallback:function(e,t){var r=t.survey_payload,n=t.session;return qe.getCurrentSurvey(e)?e:Ue(Ue({},e),{},{currentSurvey:r,currentSurveySession:n})},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.triggerID;k()("string"==typeof t&&t.length,"triggerID is required and must be a string")}}),Fe=Object(p.a)({baseName:"sendSurveyEvent",controlCallback:function(e){var t=e.event,r=e.session;return f.a.set("core","user","survey-event",{event:t,session:r})},argsToParams:function(e,t){return{event:e,session:t}}}),Ve={triggerSurvey:Object(Ae.f)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.ttl,n=void 0===r?0:r;k()("string"==typeof e&&e.length,"triggerID is required and must be a string"),k()(Pe()(t),"options must be an object"),k()("number"==typeof n,"options.ttl must be a number")}),c.a.mark((function e(t){var r,n,i,o,u,s,l,f,p,v=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=v.length>1&&void 0!==v[1]?v[1]:{},n=r.ttl,i=void 0===n?0:n,e.next=4,a.a.commonActions.getRegistry();case 4:if(o=e.sent,!(0,o.select)(d.e).getCurrentSurvey()){e.next=8;break}return e.abrupt("return",{});case 8:return u=Object(Ce.a)("core","user","survey-trigger",{triggerID:t}),e.next=11,a.a.commonActions.await(Object(re.b)(u));case 11:if(s=e.sent,!1!==s.cacheHit){e.next=24;break}return e.next=16,Le.actions.fetchTriggerSurvey(t);case 16:if(l=e.sent,f=l.response,!(p=l.error)){e.next=21;break}return e.abrupt("return",{response:f,error:p});case 21:if(!(i>0)){e.next=24;break}return e.next=24,a.a.commonActions.await(Object(re.d)(u,{}));case 24:return e.abrupt("return",{response:{},error:!1});case 25:case"end":return e.stop()}}),e)}))),sendSurveyEvent:Object(Ae.f)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k()("string"==typeof e&&e.length,"eventID is required and must be a string"),k()(Pe()(t),"eventData must be an object")}),c.a.mark((function e(t){var r,n,i,o,u,l,f,p,v=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=v.length>1&&void 0!==v[1]?v[1]:{},n=s()({},t,r),e.next=4,a.a.commonActions.getRegistry();case 4:if(i=e.sent,o=i.select,!(u=o(d.e).getCurrentSurveySession())){e.next=14;break}return e.next=10,Fe.actions.fetchSendSurveyEvent(n,u);case 10:return l=e.sent,f=l.response,p=l.error,e.abrupt("return",{response:f,error:p});case 14:case"end":return e.stop()}}),e)})))},qe={getCurrentSurvey:function(e){return e.currentSurvey},getCurrentSurveySession:function(e){return e.currentSurveySession}},Me=a.a.combineStores(Le,Fe,{initialState:{currentSurvey:null,currentSurveySession:null},actions:Ve,selectors:qe}),Ge=(Me.initialState,Me.actions,Me.selectors,Me);function He(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ke(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?He(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):He(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var $e,We=i.a.receiveError,Be=i.a.clearError,Je=function(e,t){return Ke(Ke({},e),{},{tracking:t})},Qe=Object(p.a)({baseName:"getTracking",controlCallback:function(){return f.a.get("core","user","tracking")},reducerCallback:Je}),Ye=Object(p.a)({baseName:"setTracking",controlCallback:function(e){return f.a.set("core","user","tracking",{enabled:!!e})},reducerCallback:Je,argsToParams:function(e){return e}}),ze={tracking:void 0,isSavingTrackingEnabled:!1},Ze={setTrackingEnabled:c.a.mark((function e(t){var r,n,a;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Be("setTrackingEnabled",[t]);case 2:return e.next=4,{type:"SET_TRACKING_ENABLED_SAVING_ACTION",payload:{isSaving:!0}};case 4:return e.next=6,Ye.actions.fetchSetTracking(t);case 6:if(r=e.sent,n=r.response,!(a=r.error)){e.next=12;break}return e.next=12,We(a,"setTrackingEnabled",[t]);case 12:return e.next=14,{type:"SET_TRACKING_ENABLED_SAVING_ACTION",payload:{isSaving:!1}};case 14:return e.abrupt("return",{response:n,error:a});case 15:case"end":return e.stop()}}),e)}))},Xe={isTrackingEnabled:c.a.mark((function e(){var t;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.commonActions.getRegistry();case 2:if(t=e.sent,void 0!==(0,t.select)(d.e).isTrackingEnabled()){e.next=7;break}return e.next=7,Qe.actions.fetchGetTracking();case 7:case"end":return e.stop()}}),e)}))},et=a.a.combineStores(Qe,Ye,{initialState:ze,actions:Ze,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_TRACKING_ENABLED_SAVING_ACTION":return Ke(Ke({},e),{},{isSavingTrackingEnabled:n.isSaving});default:return e}},resolvers:Xe,selectors:{isSavingTrackingEnabled:function(e){return!!(null==e?void 0:e.isSavingTrackingEnabled)},isTrackingEnabled:function(e){var t=e.tracking;return null==t?void 0:t.enabled}}}),tt=(et.initialState,et.actions,et.controls,et.reducer,et.resolvers,et.selectors,et),rt=r(634);function nt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var it=a.a.commonActions,ot=a.a.createRegistryControl,ct=a.a.createRegistrySelector,ut=i.a.receiveError,st=i.a.clearError;function lt(e,t){return at(at({},e),{},{inputSettings:t})}var ft,dt=Object(p.a)({baseName:"getUserInputSettings",controlCallback:(ft=$()(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",f.a.get("core","user","user-input-settings",void 0,{useCache:!1}));case 1:case"end":return e.stop()}}),e)}))),function(){return ft.apply(this,arguments)}),reducerCallback:lt}),pt=Object(p.a)({baseName:"saveUserInputSettings",controlCallback:function(e){return f.a.set("core","user","user-input-settings",{settings:e})},reducerCallback:lt,argsToParams:function(e){return e},validateParams:function(e){k()(Pe()(e),"valid settings are required.")}}),vt={inputSettings:void 0,isSavingInputSettings:!1},gt={setUserInputSettingsFromCache:c.a.mark((function e(){var t,r,n,a;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{type:"GET_CACHED_USER_INPUT_SETTINGS",payload:{}};case 2:if(!(t=e.sent).cacheHit){e.next=12;break}r=0,n=Object.keys(t.value);case 5:if(!(r<n.length)){e.next=12;break}return a=n[r],e.next=9,gt.setUserInputSetting(a,t.value[a].values);case 9:r++,e.next=5;break;case 12:return e.abrupt("return",t.cacheHit?t.value:{});case 13:case"end":return e.stop()}}),e)})),setUserInputSetting:c.a.mark((function e(t,r){var n,i;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.commonActions.getRegistry();case 2:if(n=e.sent,i=r.map((function(e){return e.trim()})),"completed"===n.select(d.e).getUserInputState()){e.next=7;break}return e.next=7,{type:"SET_CACHED_USER_INPUT_SETTING",payload:{settingID:t,values:i}};case 7:return e.abrupt("return",{type:"SET_USER_INPUT_SETTING",payload:{settingID:t,values:i}});case 8:case"end":return e.stop()}}),e)})),saveUserInputSettings:c.a.mark((function e(){var t,r,n,i,o,u,l,f;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.commonActions.getRegistry();case 2:return t=e.sent,e.next=5,st("saveUserInputSettings",[]);case 5:return r=function(e){return e.trim()},n=function(e){return e.length>0},i=t.select(d.e).getUserInputSettings(),o=Object.keys(i).reduce((function(e,t){var a;return at(at({},e),{},s()({},t,((null===(a=i[t])||void 0===a?void 0:a.values)||[]).map(r).filter(n)))}),{}),e.next=11,{type:"SET_USER_INPUT_SETTINGS_SAVING_FLAG",payload:{isSaving:!0}};case 11:return e.next=13,pt.actions.fetchSaveUserInputSettings(o);case 13:if(u=e.sent,l=u.response,!(f=u.error)){e.next=19;break}return e.next=19,ut(f,"saveUserInputSettings",[]);case 19:return e.next=21,{type:"DELETE_CACHED_USER_INPUT_SETTINGS",payload:{}};case 21:return e.next=23,{type:"SET_USER_INPUT_SETTINGS_SAVING_FLAG",payload:{isSaving:!1}};case 23:return e.abrupt("return",{response:l,error:f});case 24:case"end":return e.stop()}}),e)}))},bt=($e={},s()($e,"DELETE_CACHED_USER_INPUT_SETTINGS",(function(){return Object(re.a)("userInputSettings")})),s()($e,"GET_CACHED_USER_INPUT_SETTINGS",(function(){return Object(re.b)("userInputSettings")})),s()($e,"SET_CACHED_USER_INPUT_SETTING",ot((function(e){return function(){var t=$()(c.a.mark((function t(r){var n,a,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.payload,a=n.settingID,i=n.values,(o=e.select(d.e).getUserInputSettings()||{})[a]={values:i},t.abrupt("return",Object(re.d)("userInputSettings",o));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}))),$e),yt={getUserInputSettings:c.a.mark((function e(){var t,r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,it.getRegistry();case 2:if(t=e.sent,(r=t.select)(d.e).getUserInputSettings()){e.next=7;break}return e.next=7,dt.actions.fetchGetUserInputSettings();case 7:if("completed"===r(d.e).getUserInputState()){e.next=10;break}return e.next=10,gt.setUserInputSettingsFromCache();case 10:case"end":return e.stop()}}),e)}))},mt={isSavingUserInputSettings:function(e){return!!(null==e?void 0:e.isSavingInputSettings)},getUserInputSettings:function(e){return e.inputSettings},getUserInputSetting:ct((function(e){return function(t,r){var n,a=null===(n=(e(d.e).getUserInputSettings()||{})[r])||void 0===n?void 0:n.values;return Array.isArray(a)?a:[]}})),getUserInputSettingScope:ct((function(e){return function(t,r){var n;return null===(n=(e(d.e).getUserInputSettings()||{})[r])||void 0===n?void 0:n.scope}})),getUserInputSettingAuthor:ct((function(e){return function(t,r){var n;return null===(n=(e(d.e).getUserInputSettings()||{})[r])||void 0===n?void 0:n.author}}))},ht=a.a.combineStores(dt,pt,{initialState:vt,actions:gt,controls:bt,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_USER_INPUT_SETTING":return at(at({},e),{},{inputSettings:at(at({},e.inputSettings),{},s()({},n.settingID,at(at({},(e.inputSettings||{})[n.settingID]||{}),{},{values:n.values})))});case"SET_USER_INPUT_SETTINGS_SAVING_FLAG":return at(at({},e),{},{isSavingInputSettings:n.isSaving});default:return e}},resolvers:yt,selectors:mt}),Ot=(ht.initialState,ht.actions,ht.controls,ht.reducer,ht.resolvers,ht.selectors,ht),St=a.a.combineStores(a.a.commonStore,Object(i.b)(),j,P,H,Ie,xe,Te.a,Ge,tt,rt.a,Ot);St.initialState,St.actions,St.controls,St.reducer,St.resolvers,St.selectors;a.a.registerStore(d.e,St)},98:function(e,t,r){"use strict";function n(e){return new URL(e).pathname}function a(e,t){return new URL(t,e).href}function i(e){return e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return i}))}},[[943,1,0]]]);
1
+ (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[14],{0:function(e,t){e.exports=googlesitekit.i18n},101:function(e,t,r){"use strict";function n(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,r=0,o=[n,a,i];r<o.length;r++){t=(0,o[r])(t)}return t}r.d(t,"a",(function(){return o}))},102:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(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)]}},103:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o}));var n=r(229),a=r(67),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=r.invertColor,o=void 0!==i&&i;return Object(n.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,r,n,a,i,o,c,u,s,l,f,d,p,v,g;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(r=t.data)||void 0===r||null===(n=r.rows)||void 0===n?void 0:n.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==e||null===(f=e[0])||void 0===f||null===(d=f.data)||void 0===d||null===(p=d.totals)||void 0===p||null===(v=p[0])||void 0===v||null===(g=v.values)||void 0===g?void 0:g[0])}}).call(this,r(2))},104:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n=r(6),a=r.n(n),i=r(105),o=r(106);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=u(u({},s),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,r),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,r,n)}}}).call(this,r(18))},105:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=r(66),a=r(44);function i(t,r){var i=Object(n.a)(r);return function(){t.trackingEnabled=!0;var r=e.document;if(!r.querySelector("script[".concat(a.b,"]"))){var n=r.createElement("script");n.setAttribute(a.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),r.head.appendChild(n),i("js",new Date),i("config",t.trackingID)}}}}).call(this,r(18))},106:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return p}));var n=r(7),a=r.n(n),i=r(6),o=r.n(i),c=r(14),u=r.n(c),s=r(66),l=r(56);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(t,r,n){var i=Object(s.a)(r);return function(){var r=u()(a.a.mark((function r(o,c,u,s){var f,p,v,g,b,y,m,h;return a.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(v=t.isFirstAdmin,g=t.referenceSiteURL,b=t.trackingEnabled,y=t.trackingID,m=t.userIDHash,!(null===(f=n._gaUserPrefs)||void 0===f||null===(p=f.ioo)||void 0===p?void 0:p.call(f))){r.next=3;break}return r.abrupt("return");case 3:if(b){r.next=5;break}return r.abrupt("return");case 5:return h={send_to:y,event_category:o,event_label:u,value:s,dimension1:g,dimension2:v?"true":"false",dimension3:m,dimension4:"1.34.1",dimension5:Array.from(l.a).join(", ")},r.abrupt("return",new Promise((function(t){var r=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,d(d({},h),{},{event_callback:function(){clearTimeout(r),t()}}))})));case 7:case"end":return r.stop()}}),r)})));return function(e,t,n,a){return r.apply(this,arguments)}}()}}).call(this,r(18))},107:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a}));var n=r(146),a=r.n(n)()(e)}).call(this,r(18))},113:function(e,t,r){"use strict";(function(e){var n=r(35),a=r.n(n),i=r(154),o=e._googlesitekitAPIFetchData||{},c=o.nonce,u=o.nonceEndpoint,s=o.preloadedData,l=o.rootURL;a.a.nonceEndpoint=u,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(l),a.a.preloadingMiddleware=Object(i.a)(s),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,r(18))},114:function(e,t,r){"use strict";r.d(t,"a",(function(){return I})),r.d(t,"b",(function(){return D})),r.d(t,"c",(function(){return x})),r.d(t,"d",(function(){return R})),r.d(t,"e",(function(){return P})),r.d(t,"g",(function(){return C})),r.d(t,"f",(function(){return N}));var n,a=r(7),i=r.n(a),o=r(37),c=r.n(o),u=r(6),s=r.n(u),l=r(10),f=r.n(l),d=r(289),p=r.n(d),v=r(125),g=r.n(v),b=r(140);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var h=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.reduce((function(e,t){return m(m({},e),t)}),{}),a=t.reduce((function(e,t){return[].concat(c()(e),c()(Object.keys(t)))}),[]),i=T(a);return f()(0===i.length,"collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ".concat(i.join(", "),". Check your data stores for duplicates.")),n},O=h,S=h,E=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,a=[].concat(t);return"function"!=typeof a[0]&&(n=a.shift()),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a.reduce((function(e,r){return r(e,t)}),e)}},w=h,j=h,_=h,k=function(e){return e},I=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=_.apply(void 0,c()(t.map((function(e){return e.initialState||{}}))));return{initialState:n,controls:S.apply(void 0,c()(t.map((function(e){return e.controls||{}})))),actions:O.apply(void 0,c()(t.map((function(e){return e.actions||{}})))),reducer:E.apply(void 0,[n].concat(c()(t.map((function(e){return e.reducer||k}))))),resolvers:w.apply(void 0,c()(t.map((function(e){return e.resolvers||{}})))),selectors:j.apply(void 0,c()(t.map((function(e){return e.selectors||{}}))))}},D={getRegistry:function(){return{payload:{},type:"GET_REGISTRY"}},await:i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{payload:{value:t},type:"AWAIT"});case 1:case"end":return e.stop()}}),e)}))},x=(n={},s()(n,"GET_REGISTRY",Object(b.d)((function(e){return function(){return e}}))),s()(n,"AWAIT",(function(e){return e.payload.value})),n),T=function(e){for(var t=[],r={},n=0;n<e.length;n++){var a=e[n];r[a]=r[a]>=1?r[a]+1:1,r[a]>1&&t.push(a)}return t},R={actions:D,controls:x,reducer:k},P=function(e){return function(t){return A(e(t))}},A=g()((function(e){return p()(e,(function(e,t){return function(){var r=e.apply(void 0,arguments);return f()(void 0!==r,"".concat(t,"(...) is not resolved")),r}}))}));function C(e){return{safeSelector:Object(b.e)((function(t){return function(r){try{for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];return e.apply(void 0,[t,r].concat(a)),!0}catch(e){return!1}}})),dangerousSelector:Object(b.e)((function(t){return function(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];e.apply(void 0,[t,r].concat(a))}}))}}function N(e,t){return f()("function"==typeof e,"a validator function is required."),f()("function"==typeof t,"an action creator function is required."),f()("Generator"!==e[Symbol.toStringTag]&&"GeneratorFunction"!==e[Symbol.toStringTag],"an action’s validator function must not be a generator."),function(){return e.apply(void 0,arguments),t.apply(void 0,arguments)}}},12:function(e,t,r){"use strict";r.d(t,"e",(function(){return n})),r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a})),r.d(t,"d",(function(){return i})),r.d(t,"c",(function(){return o}));var n="core/user",a="connected_url_mismatch",i="googlesitekit_view_dashboard",o="googlesitekit_manage_options"},154:function(e,t,r){"use strict";var n=r(152);t.a=function(e){var t=Object.keys(e).reduce((function(t,r){return t[Object(n.getStablePath)(r)]=e[r],t}),{}),r=!1;return function(e,a){if(r)return a(e);setTimeout((function(){r=!0}),1e3);var i=e.parse,o=void 0===i||i,c=e.path;if("string"==typeof e.path){var u,s=(null===(u=e.method)||void 0===u?void 0:u.toUpperCase())||"GET",l=Object(n.getStablePath)(c);if(o&&"GET"===s&&t[l]){var f=Promise.resolve(t[l].body);return delete t[l],f}if("OPTIONS"===s&&t[s]&&t[s][l]){var d=Promise.resolve(t[s][l]);return delete t[s][l],d}}return a(e)}}},171:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(7),a=r.n(n),i=r(14),o=r.n(i),c=r(5),u=["fetch_error"];function s(e){return l.apply(this,arguments)}function l(){return(l=o()(a.a.mark((function e(t){var r,n,i,o,s,l,f,d;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.method,o=t.type,s=t.identifier,l=t.datapoint,(f=t.error)&&!u.includes(null==f?void 0:f.code)){e.next=3;break}return e.abrupt("return");case 3:return d="code: ".concat(f.code),(null===(r=f.data)||void 0===r?void 0:r.reason)&&(d+=", reason: ".concat(f.data.reason)),e.next=7,Object(c.w)("api_error","".concat(i,":").concat(o,"/").concat(s,"/data/").concat(l),"".concat(f.message," (").concat(d,")"),(null===(n=f.data)||void 0===n?void 0:n.status)||f.code);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},31:function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a}));var n="core/modules",a="insufficient_module_dependencies"},32:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return c}));var n=r(25),a=r.n(n),i=r(2),o=function(e){return function(t){return function FilteredComponent(r){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,r),e)}}},c=function(t,r){return function(n){return function InnerComponent(i){return e.createElement(t,a()({},i,r,{OriginalComponent:n}))}}}}).call(this,r(2))},345:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a}));var n="dashboard",a="pageDashboard"},362:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return b}));var n=r(7),a=r.n(n),i=r(6),o=r.n(i),c=r(10),u=r.n(c),s=r(51),l=r.n(s),f=r(4),d=r.n(f),p=r(61);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=function(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=i.client,s=void 0===c||c,f=i.server,v=void 0===f||f,b=i.storeName,y=void 0===b?void 0:b;u()(t,"type is required."),u()(r,"identifier is required."),u()(n,"datapoint is required.");var m=y||"".concat(t,"/").concat(r),h={serverNotifications:v?void 0:{},clientNotifications:s?void 0:{}},O=Object(p.a)({baseName:"getNotifications",controlCallback:function(){return l.a.get(t,r,n)},reducerCallback:function(e,t){return g(g({},e),{},{serverNotifications:t.reduce((function(e,t){return g(g({},e),{},o()({},t.id,t))}),{})})}}),S={addNotification:function(e){return u()(e,"notification is required."),{payload:{notification:e},type:"ADD_NOTIFICATION"}},removeNotification:function(e){return u()(e,"id is required."),{payload:{id:e},type:"REMOVE_NOTIFICATION"}}},E={},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,r=arguments.length>1?arguments[1]:void 0,n=r.type,a=r.payload;switch(n){case"ADD_NOTIFICATION":var i=a.notification;return g(g({},t),{},{clientNotifications:g(g({},t.clientNotifications||{}),{},o()({},i.id,i))});case"REMOVE_NOTIFICATION":var c=a.id;if(void 0===t.clientNotifications||void 0===t.clientNotifications[c])return void 0!==t.serverNotifications&&void 0!==t.serverNotifications[c]&&e.console.warn('Cannot remove server-side notification with ID "'.concat(c,'"; this may be changed in a future release.')),t;var u=g({},t.clientNotifications);return delete u[c],g(g({},t),{},{clientNotifications:u});default:return t}},j={getNotifications:a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O.actions.fetchGetNotifications();case 2:case"end":return e.stop()}}),e)}))};v||delete j.getNotifications;var _={getNotifications:function(e){var t=e.serverNotifications,r=e.clientNotifications;return void 0===t&&void 0===r?t:Object.values(g(g({},t||{}),r||{}))}},k=d.a.combineStores(O,{initialState:h,actions:S,controls:E,reducer:w,resolvers:j,selectors:_});return g(g({},k),{},{STORE_NAME:m})}}).call(this,r(18))},391:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return y}));var n=r(7),a=r.n(n),i=r(14),o=r.n(i),c=r(10),u=r.n(c),s=r(113),l=r(99),f=r(89),d=r(5),p=r(73),v=r(171),g=r(12),b=!0,y=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=[e,t,r].filter((function(e){return!!e&&e.length}));return 3===a.length&&n&&n.constructor===Object&&Object.keys(n).length&&a.push(Object(d.v)(n)),a.join("::")},m=function(t){var r,n,a,i,o=null===(r=e.googlesitekit)||void 0===r||null===(n=r.data)||void 0===n||null===(a=n.dispatch)||void 0===a?void 0:a.call(n,g.a);o&&(t.code===p.a?o.setPermissionScopeError(t):(null===(i=t.data)||void 0===i?void 0:i.reconnectURL)&&o.setAuthError(t))},h=function(){var t=o()(a.a.mark((function t(r,n,i){var o,c,d,p,g,b,h,O,S,w,j,_,k,I,D,x,T=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=T.length>3&&void 0!==T[3]?T[3]:{},c=o.bodyParams,d=o.cacheTTL,p=void 0===d?3600:d,g=o.method,b=void 0===g?"GET":g,h=o.queryParams,O=o.useCache,S=void 0===O?void 0:O,u()(r,"`type` argument for requests is required."),u()(n,"`identifier` argument for requests is required."),u()(i,"`datapoint` argument for requests is required."),w="GET"===b&&(void 0!==S?S:E()),j=y(r,n,i,h),!w){t.next=18;break}return t.next=9,Object(f.b)(j);case 9:if(_=t.sent,k=_.cacheHit,I=_.value,!_.isError){t.next=16;break}throw m(I),I;case 16:if(!k){t.next=18;break}return t.abrupt("return",I);case 18:return t.prev=18,t.next=21,Object(s.default)({data:c,method:b,path:Object(l.a)("/google-site-kit/v1/".concat(r,"/").concat(n,"/data/").concat(i),h)});case 21:if(D=t.sent,!w){t.next=25;break}return t.next=25,Object(f.d)(j,D,{ttl:p});case 25:return t.abrupt("return",D);case 28:if(t.prev=28,t.t0=t.catch(18),!(null===t.t0||void 0===t.t0||null===(x=t.t0.data)||void 0===x?void 0:x.cacheTTL)){t.next=33;break}return t.next=33,Object(f.d)(j,t.t0,{ttl:t.t0.data.cacheTTL,isError:!0});case 33:throw Object(v.a)({method:b,datapoint:i,type:r,identifier:n,error:t.t0}),m(t.t0),e.console.error("Google Site Kit API Error","method:".concat(b),"datapoint:".concat(i),"type:".concat(r),"identifier:".concat(n),'error:"'.concat(t.t0.message,'"')),t.t0;case 37:case"end":return t.stop()}}),t,null,[[18,28]])})));return function(e,r,n){return t.apply(this,arguments)}}(),O=function(){var e=o()(a.a.mark((function e(t,r,n,i){var o,c,u,s,l,f=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=f.length>4&&void 0!==f[4]?f[4]:{},c=o.cacheTTL,u=void 0===c?3600:c,s=o.useCache,l=void 0===s?void 0:s,e.abrupt("return",h(t,r,n,{cacheTTL:u,queryParams:i,useCache:l}));case 2:case"end":return e.stop()}}),e)})));return function(t,r,n,a){return e.apply(this,arguments)}}(),S=function(){var e=o()(a.a.mark((function e(t,r,n,i){var o,c,u,s,l,f,d=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=d.length>4&&void 0!==d[4]?d[4]:{},c=o.method,u=void 0===c?"POST":c,s=o.queryParams,l=void 0===s?{}:s,e.next=3,h(t,r,n,{bodyParams:{data:i},method:u,queryParams:l,useCache:!1});case 3:return f=e.sent,e.next=6,w(t,r,n);case 6:return e.abrupt("return",f);case 7:case"end":return e.stop()}}),e)})));return function(t,r,n,a){return e.apply(this,arguments)}}(),E=function(){return b},w=function(){var e=o()(a.a.mark((function e(t,r,n){var i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=y(t,r,n),e.next=3,Object(f.c)();case 3:e.sent.forEach((function(e){0===e.indexOf(i)&&Object(f.a)(e)}));case 5:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),j={invalidateCache:w,get:O,set:S,setUsingCache:function(e){return b=!!e},usingCache:E};t.b=j}).call(this,r(18))},4:function(e,t){e.exports=googlesitekit.data},42:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"c",(function(){return a})),r.d(t,"b",(function(){return i}));var n="Date param must construct to a valid date instance or be a valid date instance itself.",a="Invalid dateString parameter, it must be a string.",i='Invalid date range, it must be a string with the format "last-x-days".'},44:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a}));var n="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},45:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(53),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var r=e.split("-");return 3===r.length&&Object(n.a)(new Date(e))}},48:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n,a=r(15),i=r.n(a),o=r(16),c=r.n(o),u=function(t){var r=e[t];if(!r)return!1;try{var n="__storage_test__";return r.setItem(n,n),r.removeItem(n),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==r.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return n||(n=u("sessionStorage")?e.sessionStorage:u("localStorage")?e.localStorage:new s),n}}).call(this,r(18))},5:function(e,t,r){"use strict";(function(e){r.d(t,"l",(function(){return _})),r.d(t,"a",(function(){return k})),r.d(t,"i",(function(){return I})),r.d(t,"k",(function(){return D})),r.d(t,"y",(function(){return x})),r.d(t,"u",(function(){return T})),r.d(t,"d",(function(){return R}));var n=r(6),a=r.n(n),i=r(33),o=r.n(i),c=r(145),u=r.n(c),s=r(139),l=r.n(s),f=r(17),d=r(99),p=r(58);r.d(t,"w",(function(){return p.b}));var v=r(32),g=r(75);r.d(t,"t",(function(){return g.a})),r.d(t,"x",(function(){return g.b}));var b=r(72);r.d(t,"v",(function(){return b.a}));var y=r(84);r.d(t,"b",(function(){return y.b})),r.d(t,"j",(function(){return y.c}));r(48);var m=r(85);r.d(t,"h",(function(){return m.a})),r.d(t,"o",(function(){return m.b})),r.d(t,"r",(function(){return m.c})),r.d(t,"s",(function(){return m.d})),r.d(t,"e",(function(){return v.b}));var h=r(101);r.d(t,"p",(function(){return h.a}));var O=r(102);r.d(t,"c",(function(){return O.a}));r(50);var S=r(103);r.d(t,"f",(function(){return S.a})),r.d(t,"n",(function(){return S.b}));var E=r(98);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.d(t,"g",(function(){return E.a})),r.d(t,"m",(function(){return E.b})),r.d(t,"q",(function(){return E.c}));var _=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},k=function(e,t){if("0"===e||0===e||isNaN(e))return null;var r=(t-e)/e;return isNaN(r)||!u()(r)?null:r},I=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e._googlesitekitLegacyData,r=t.modules;return r?Object.keys(r).reduce((function(e,t){return"object"!==o()(r[t])||void 0===r[t].slug||void 0===r[t].name||r[t].slug!==t?e:j(j({},e),{},a()({},t,r[t]))}),{}):{}},D=function(t,r){var n=e._googlesitekitLegacyData.admin.adminRoot;return t||(t="googlesitekit-dashboard"),r=j({page:t},r),Object(d.a)(n,r)},x=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(f.b)("googlesitekit.ErrorNotification","googlesitekit.ErrorNotification",Object(v.b)(e,t),1)},R=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return l()(t)}}).call(this,r(18))},50:function(e,t,r){"use strict";r.d(t,"a",(function(){return n.b})),r.d(t,"b",(function(){return n.c})),r.d(t,"e",(function(){return a.a})),r.d(t,"f",(function(){return i.a})),r.d(t,"g",(function(){return o})),r.d(t,"h",(function(){return c})),r.d(t,"i",(function(){return u.a})),r.d(t,"d",(function(){return s})),r.d(t,"c",(function(){return f}));var n=r(42),a=r(65),i=r(55),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t%7,n=0===r;if(n)return Object(i.a)(e,t);var a=t>7&&r<3,o=a?t-r:t+(7-r);return Object(i.a)(e,o)},c=(r(53),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}),u=r(45);function s(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var l=r(0);function f(){var e=function(e){return Object(l.sprintf)(
2
  /* translators: %s: number of days */
3
+ Object(l._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}}}},51:function(e,t){e.exports=googlesitekit.api},52:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return n}));var n="core/ui"},53:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e){return e instanceof Date&&!isNaN(e)}},55:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(11),a=r.n(n),i=r(10),o=r.n(i),c=r(42),u=r(65),s=r(45),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;o()(Object(s.a)(e),c.c);var r=e.split("-"),n=a()(r,3),i=n[0],l=n[1],f=n[2],d=new Date(i,l-1,f);return d.setDate(d.getDate()-t),Object(u.a)(d)}},56:function(e,t,r){"use strict";(function(e){var n,a;r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o}));var i=new Set((null===(n=e)||void 0===n||null===(a=n._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,r(18))},58:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return d}));var n=r(104),a=e._googlesitekitBaseData||{},i=a.isFirstAdmin,o=a.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},u=Object(n.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function p(e){e?s():l()}!0===o&&p(f())}).call(this,r(18))},61:function(e,t,r){"use strict";r.d(t,"a",(function(){return S}));var n=r(7),a=r.n(n),i=r(6),o=r.n(i),c=r(10),u=r.n(c),s=r(80),l=r.n(s),f=r(76),d=r(87),p=r(5);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=function(e){return e},y=function(){return{}},m=function(){},h=f.a.clearError,O=f.a.receiveError,S=function(e){var t,r,n=a.a.mark(N),i=e.baseName,c=e.controlCallback,s=e.reducerCallback,f=void 0===s?b:s,v=e.argsToParams,S=void 0===v?y:v,E=e.validateParams,w=void 0===E?m:E;u()(i,"baseName is required."),u()("function"==typeof c,"controlCallback is required and must be a function."),u()("function"==typeof f,"reducerCallback must be a function."),u()("function"==typeof S,"argsToParams must be a function."),u()("function"==typeof w,"validateParams must be a function.");try{w(S()),r=!1}catch(e){r=!0}var j=Object(d.b)(i),_=Object(d.a)(i),k="FETCH_".concat(_),I="START_".concat(k),D="FINISH_".concat(k),x="CATCH_".concat(k),T="RECEIVE_".concat(_),R="fetch".concat(j),P="receive".concat(j),A="isFetching".concat(j),C=o()({},A,{});function N(e,t){var r,o;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,{payload:{params:e},type:I};case 2:return n.next=4,h(i,t);case 4:return n.prev=4,n.next=7,{payload:{params:e},type:k};case 7:return r=n.sent,n.next=10,U[P](r,e);case 10:return n.next=12,{payload:{params:e},type:D};case 12:n.next=23;break;case 14:return n.prev=14,n.t0=n.catch(4),o=n.t0,n.next=19,O(o,i,t);case 19:return n.next=21,O(o);case 21:return n.next=23,{payload:{params:e},type:x};case 23:return n.abrupt("return",{response:r,error:o});case 24:case"end":return n.stop()}}),n,null,[[4,14]])}var U=(t={},o()(t,R,(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=S.apply(void 0,t);return w(n),N(n,t)})),o()(t,P,(function(e,t){return u()(void 0!==e,"response is required."),r?(u()(l()(t),"params is required."),w(t)):t={},{payload:{response:e,params:t},type:T}})),t),L=o()({},k,(function(e){var t=e.payload;return c(t.params)})),F=o()({},A,(function(e){if(void 0===e[A])return!1;var t;try{for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];t=S.apply(void 0,n),w(t)}catch(e){return!1}return!!e[A][Object(p.v)(t)]}));return{initialState:C,actions:U,controls:L,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case I:var a=n.params;return g(g({},e),{},o()({},A,g(g({},e[A]),{},o()({},Object(p.v)(a),!0))));case T:var i=n.response,c=n.params;return f(e,i,c);case D:var u=n.params;return g(g({},e),{},o()({},A,g(g({},e[A]),{},o()({},Object(p.v)(u),!1))));case x:var s=n.params;return g(g({},e),{},o()({},A,g(g({},e[A]),{},o()({},Object(p.v)(s),!1))));default:return e}},resolvers:{},selectors:F}}},633:function(e,t,r){"use strict";(function(e){var n=r(7),a=r.n(n),i=r(6),o=r.n(i),c=r(10),u=r.n(c),s=r(4),l=r.n(s),f=r(12);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var v=l.a.createRegistrySelector,g={permissionError:null,capabilities:void 0},b={clearPermissionScopeError:function(){return{payload:{},type:"CLEAR_PERMISSION_SCOPE_ERROR"}},setPermissionScopeError:function(e){return u()(e,"permissionError is required."),{payload:{permissionError:e},type:"SET_PERMISSION_SCOPE_ERROR"}},receiveCapabilities:function(e){return{type:"RECEIVE_CAPABILITIES",payload:{capabilities:e}}}},y={getCapabilities:a.a.mark((function t(){var r,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.a.commonActions.getRegistry();case 2:if(!t.sent.select(f.e).getCapabilities()){t.next=5;break}return t.abrupt("return");case 5:return(null===(r=e._googlesitekitUserData)||void 0===r?void 0:r.permissions)||e.console.error("Could not load core/user permissions."),t.next=8,b.receiveCapabilities(null===(n=e._googlesitekitUserData)||void 0===n?void 0:n.permissions);case 8:case"end":return t.stop()}}),t)}))},m={getPermissionScopeError:function(e){return e.permissionError},getCapabilities:function(e){return e.capabilities},hasCapability:v((function(e){return function(t,r){var n=e(f.e).getCapabilities();if(n)return!!n[r]}}))};t.a={initialState:g,actions:b,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"CLEAR_PERMISSION_SCOPE_ERROR":return p(p({},e),{},{permissionError:null});case"SET_PERMISSION_SCOPE_ERROR":var a=n.permissionError;return p(p({},e),{},{permissionError:a});case"RECEIVE_CAPABILITIES":var i=n.capabilities;return p(p({},e),{},{capabilities:i});default:return e}},resolvers:y,selectors:m}}).call(this,r(18))},634:function(e,t,r){"use strict";(function(e){var n=r(7),a=r.n(n),i=r(6),o=r.n(i),c=r(10),u=r.n(c),s=r(99),l=r(4),f=r.n(l),d=r(12);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=f.a.createRegistrySelector,b={connectURL:void 0,initialVersion:void 0,user:void 0,verified:void 0},y={receiveConnectURL:function(e){return u()(e,"connectURL is required."),{payload:{connectURL:e},type:"RECEIVE_CONNECT_URL"}},receiveUserInfo:function(e){return u()(e,"userInfo is required."),{payload:{user:e},type:"RECEIVE_USER_INFO"}},receiveInitialSiteKitVersion:function(e){return u()(e,"initialVersion is required."),{payload:{initialVersion:e},type:"RECEIVE_USER_INITIAL_SITE_KIT_VERSION"}},receiveUserIsVerified:function(e){return u()(void 0!==e,"userIsVerified is required."),{payload:{verified:e},type:"RECEIVE_USER_IS_VERIFIED"}},receiveUserInputState:function(e){return u()(e,"userInputState is required."),{payload:{userInputState:e},type:"RECEIVE_USER_INPUT_STATE"}}},m={getConnectURL:a.a.mark((function t(){var r,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,!(0,r.select)(d.e).getConnectURL()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:return n=e._googlesitekitUserData.connectURL,t.next=12,y.receiveConnectURL(n);case 12:case"end":return t.stop()}}),t)})),getUser:a.a.mark((function t(){var r,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,void 0===(0,r.select)(d.e).getUser()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:return n=e._googlesitekitUserData.user,t.next=12,y.receiveUserInfo(n);case 12:case"end":return t.stop()}}),t)})),getInitialSiteKitVersion:a.a.mark((function t(){var r,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,void 0===(0,r.select)(d.e).getInitialSiteKitVersion()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:if(!(n=e._googlesitekitUserData.initialVersion)){t.next=13;break}return t.next=13,y.receiveInitialSiteKitVersion(n);case 13:case"end":return t.stop()}}),t)})),isVerified:a.a.mark((function t(){var r,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,void 0===(0,r.select)(d.e).isVerified()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:return n=e._googlesitekitUserData.verified,t.next=12,y.receiveUserIsVerified(n);case 12:case"end":return t.stop()}}),t)})),getUserInputState:a.a.mark((function t(){var r,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,!(0,r.select)(d.e).getUserInputState()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:return n=e._googlesitekitUserData.userInputState,t.next=12,y.receiveUserInputState(n);case 12:case"end":return t.stop()}}),t)}))},h={getUser:function(e){return e.user},getConnectURL:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.additionalScopes,n=void 0===r?[]:r,a=t.redirectURL,i=void 0===a?void 0:a,o=e.connectURL,c={redirect:i};if(void 0!==o){if(null==n?void 0:n.length){var u=n.map((function(e){return e.replace(/^http(s)?:/,"gttp$1:")}));return Object(s.a)(o,v(v({},c),{},{additional_scopes:u}))}return Object(s.a)(o,c)}},getID:g((function(e){return function(){var t=e(d.e).getUser();return void 0!==t?t.id:t}})),getName:g((function(e){return function(){var t=e(d.e).getUser();return void 0!==t?t.name:t}})),getEmail:g((function(e){return function(){var t=e(d.e).getUser();return void 0!==t?t.email:t}})),getPicture:g((function(e){return function(){var t=e(d.e).getUser();return void 0!==t?t.picture:t}})),getInitialSiteKitVersion:function(e){return e.initialVersion},isVerified:function(e){return e.verified},getUserInputState:function(e){return e.userInputState}};t.a={initialState:b,actions:y,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"RECEIVE_CONNECT_URL":var a=n.connectURL;return v(v({},e),{},{connectURL:a});case"RECEIVE_USER_INFO":var i=n.user;return v(v({},e),{},{user:i});case"RECEIVE_USER_INITIAL_SITE_KIT_VERSION":var o=n.initialVersion;return v(v({},e),{},{initialVersion:o});case"RECEIVE_USER_IS_VERIFIED":var c=n.verified;return v(v({},e),{},{verified:c});case"RECEIVE_USER_INPUT_STATE":var u=n.userInputState;return v(v({},e),{},{userInputState:u});default:return e}},resolvers:m,selectors:h}}).call(this,r(18))},65:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(10),a=r.n(n),i=r(42),o=r(53),c=function(e){var t=new Date(e);a()(Object(o.a)(t),i.a);var r="".concat(t.getMonth()+1),n="".concat(t.getDate());return[t.getFullYear(),r.length<2?"0".concat(r):r,n.length<2?"0".concat(n):n].join("-")}},66:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(44);function a(e){return function(){e[n.a]=e[n.a]||[],e[n.a].push(arguments)}}},67:function(e,t,r){"use strict";(function(e){var n=r(1),a=r.n(n),i=r(8),o=r.n(i);function ChangeArrow(t){var r=t.direction,n=t.invertColor,a=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(r),{"googlesitekit-change-arrow--inverted-color":n}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,r(2))},72:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(33),a=r.n(n),i=r(97),o=r.n(i),c=function(e){return o()(JSON.stringify(function e(t){var r={};return Object.keys(t).sort().forEach((function(n){var i=t[n];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),r[n]=i})),r}(e)))}},73:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return c})),r.d(t,"b",(function(){return u}));var n=r(80),a=r.n(n),i="missing_required_scopes";function o(e){return a()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function u(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},75:function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return c}));var n=r(33),a=r.n(n),i=r(107),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,r="object"===a()(e)?e.toString():e;return null==r||null===(t=r.replace)||void 0===t?void 0:t.call(r,/\/+$/,"")}},76:function(e,t,r){"use strict";r.d(t,"a",(function(){return g})),r.d(t,"b",(function(){return b}));var n=r(6),a=r.n(n),i=r(33),o=r.n(i),c=r(10),u=r.n(c),s=r(97),l=r.n(s),f=r(5);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t){if(t&&Array.isArray(t)){var r=t.map((function(e){return"object"===o()(e)?Object(f.v)(e):e}));return"".concat(e,"::").concat(l()(JSON.stringify(r)))}return e}var g={receiveError:function(e,t,r){return u()(e,"error is required."),t&&u()(r&&Array.isArray(r),"args is required (and must be an array) when baseName is specified."),{type:"RECEIVE_ERROR",payload:{error:e,baseName:t,args:r}}},clearError:function(e,t){return e&&u()(t&&Array.isArray(t),"args is required (and must be an array) when baseName is specified."),{type:"CLEAR_ERROR",payload:{baseName:e,args:t}}},clearErrors:function(e){return{type:"CLEAR_ERRORS",payload:{baseName:e}}}};function b(){var e={getErrorForSelector:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(r,"selectorName is required."),e.getError(t,r,n)},getErrorForAction:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(r,"actionName is required."),e.getError(t,r,n)},getError:function(e,t,r){var n=e.error,a=e.errors;return t||r?(u()(t,"baseName is required."),a[v(t,r)]):n},getErrors:function(e){var t=new Set(Object.values(e.errors));return void 0!==e.error&&t.add(e.error),Array.from(t)},hasErrors:function(t){return e.getErrors(t).length>0}};return{initialState:{errors:{},error:void 0},actions:g,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"RECEIVE_ERROR":var i=n.baseName,o=n.args,c=n.error;return p(p({},e),{},i?{errors:p(p({},e.errors||{}),{},a()({},v(i,o),c))}:{error:c});case"CLEAR_ERROR":var u=n.baseName,s=n.args,l=p({},e);if(u){var f=v(u,s);l.errors=p({},e.errors||{}),delete l.errors[f]}else l.error=void 0;return l;case"CLEAR_ERRORS":var d=n.baseName,g=p({},e);if(d)for(var b in g.errors=p({},e.errors||{}),g.errors)(b===d||b.startsWith("".concat(d,"::")))&&delete g.errors[b];else g.errors={},g.error=void 0;return g;default:return e}},resolvers:{},selectors:e}}},84:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return f}));var n=r(11),a=r.n(n),i=r(0);function o(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){u=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,r=null,n=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(n&&a)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),r=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===r)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(i.sprintf)(
4
  /* translators: %d is the number of notifications */
5
  Object(i._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(u),t&&null===n&&t.appendChild(o),r&&null===a&&r.appendChild(o),o},s=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},l=function(e){for(var t=location.search.substr(1).split("&"),r={},n=0;n<t.length;n++)r[t[n].split("=")[0]]=decodeURIComponent(t[n].split("=")[1]);return e?r.hasOwnProperty(e)?decodeURIComponent(r[e].replace(/\+/g," ")):"":r},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,r=new URL(t.href);if(e)return r.searchParams&&r.searchParams.get?r.searchParams.get(e):l(e);var n,i={},c=o(r.searchParams.entries());try{for(c.s();!(n=c.n()).done;){var u=a()(n.value,2),s=u[0],f=u[1];i[s]=f}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,r(18))},85:function(e,t,r){"use strict";(function(e){r.d(t,"c",(function(){return y})),r.d(t,"d",(function(){return m})),r.d(t,"b",(function(){return h})),r.d(t,"a",(function(){return O}));var n=r(33),a=r.n(n),i=r(6),o=r.n(i),c=r(26),u=r.n(c),s=r(23),l=r(0);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=v(e,t),n=r.formatUnit,a=r.formatDecimal;try{return n()}catch(e){return a()}},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var r=Math.floor(e/60/60),n=Math.floor(e/60%60),a=Math.floor(e%60);return{hours:r,minutes:n,seconds:a,formatUnit:function(){var i=t.unitDisplay,o=d(d({unitDisplay:void 0===i?"short":i},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?m(a,d(d({},o),{},{unit:"second"})):Object(l.sprintf)(
6
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
13
  Object(l.__)("%sM","google-site-kit"),m(g(e),e%10==0?{}:t)):1e4<=e?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(l.__)("%sK","google-site-kit"),m(g(e))):1e3<=e?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(l.__)("%sK","google-site-kit"),m(g(e),e%10==0?{}:t)):m(e,{signDisplay:"never",maximumFractionDigits:1})},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(s.isFinite)(e)?e:Number(e),Object(s.isFinite)(e)||(console.warn("Invalid number",e,a()(e)),e=0);var r={};if("%"===t)r={style:"percent",maximumFractionDigits:2};else{if("s"===t)return p(e,{unitDisplay:"narrow"});t&&"string"==typeof t?r={style:"currency",currency:t}:Object(s.isPlainObject)(t)&&(r=d({},t))}var n=r,i=n.style,o=void 0===i?"metric":i;return"metric"===o?b(e):"duration"===o?p(e,t):m(e,r)},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?O():r,a=u()(t,["locale"]);return new Intl.NumberFormat(n,a).format(e)},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?O():r,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:i,type:c});return u.format(e)}
16
+ /* translators: used between list items, there is a space after the comma. */var s=Object(l.__)(", ","google-site-kit");return e.join(s)},O=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=Object(s.get)(t,["_googlesitekitLegacyData","locale"]);if(r){var n=r.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,r(18))},87:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return i}));var n=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},a=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function i(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},89:function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return g})),r.d(t,"d",(function(){return b})),r.d(t,"a",(function(){return y})),r.d(t,"c",(function(){return m}));var n=r(7),a=r.n(n),i=r(14),o=r.n(i);r(37);function c(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s,l="googlesitekit_".concat("1.34.1","_"),f=["sessionStorage","localStorage"],d=[].concat(f),p=function(){var t=o()(a.a.mark((function t(r){var n,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e[r]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",n.setItem(i,i),n.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==n.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),v=function(){var t=o()(a.a.mark((function t(){var r,n,i,o,u;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(r=e._googlesitekitLegacyData)||void 0===r||null===(n=r.admin)||void 0===n?void 0:n.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}i=c(d),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(u=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,p(u);case 12:if(!t.sent){t.next=14;break}s=e[u];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),g=function(){var e=o()(a.a.mark((function e(t){var r,n,i,o,c,u,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v();case 2:if(!(r=e.sent)){e.next=10;break}if(!(n=r.getItem("".concat(l).concat(t)))){e.next=10;break}if(i=JSON.parse(n),o=i.timestamp,c=i.ttl,u=i.value,s=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(r,n){var i,o,c,u,s,f,d,p,g=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=g.length>2&&void 0!==g[2]?g[2]:{},o=i.ttl,c=void 0===o?3600:o,u=i.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=i.isError,d=void 0!==f&&f,t.next=3,v();case 3:if(!(p=t.sent)){t.next=14;break}return t.prev=5,p.setItem("".concat(l).concat(r),JSON.stringify({timestamp:s,ttl:c,value:n,isError:d})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,r){return t.apply(this,arguments)}}(),y=function(){var t=o()(a.a.mark((function t(r){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v();case 2:if(!(n=t.sent)){t.next=13;break}return t.prev=4,n.removeItem("".concat(l).concat(r)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),m=function(){var t=o()(a.a.mark((function t(){var r,n,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v();case 2:if(!(r=t.sent)){t.next=14;break}for(t.prev=4,n=[],i=0;i<r.length;i++)0===(o=r.key(i)).indexOf(l)&&n.push(o.substring(l.length));return t.abrupt("return",n);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,r(18))},9:function(e,t,r){"use strict";r.d(t,"p",(function(){return n})),r.d(t,"f",(function(){return n})),r.d(t,"a",(function(){return a})),r.d(t,"h",(function(){return i})),r.d(t,"g",(function(){return o})),r.d(t,"d",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"k",(function(){return s})),r.d(t,"c",(function(){return l})),r.d(t,"b",(function(){return f})),r.d(t,"t",(function(){return d})),r.d(t,"s",(function(){return p})),r.d(t,"u",(function(){return v})),r.d(t,"q",(function(){return g})),r.d(t,"r",(function(){return b})),r.d(t,"n",(function(){return y})),r.d(t,"o",(function(){return m})),r.d(t,"l",(function(){return h})),r.d(t,"m",(function(){return O})),r.d(t,"j",(function(){return S})),r.d(t,"i",(function(){return E}));var n="modules/analytics",a="account_create",i="property_create",o="profile_create",c="analyticsAccountCreate",u="analyticsSetup",s="https://www.googleapis.com/auth/analytics.provision",l="https://www.googleapis.com/auth/analytics.edit",f=1,d="dashboardAllTrafficWidgetDimensionName",p="dashboardAllTrafficWidgetDimensionColor",v="dashboardAllTrafficWidgetDimensionValue",g="dashboardAllTrafficWidgetActiveRowIndex",b="dashboardAllTrafficWidgetLoaded",y="legacy",m="ua",h="ga4",O="ga4-transitional",S="ua",E="ga4"},943:function(e,t,r){"use strict";r.r(t);var n=r(4),a=r.n(n),i=r(76),o=r(7),c=r.n(o),u=r(6),s=r.n(u),l=r(51),f=r.n(l),d=r(12),p=r(61);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=a.a.createRegistrySelector;function y(e){return b((function(t){return function(){return(t(d.e).getAuthentication()||{})[e]}}))}var m=Object(p.a)({baseName:"getAuthentication",controlCallback:function(){return f.a.get("core","user","authentication",void 0,{useCache:!1})},reducerCallback:function(e,t){return g(g({},e),{},{authentication:t})}}),h={authentication:void 0,authError:null},O={setAuthError:function(e){return{payload:{error:e},type:"SET_AUTH_ERROR"}},clearAuthError:function(){return{payload:{},type:"CLEAR_AUTH_ERROR"}}},S={getAuthentication:c.a.mark((function e(){var t;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.commonActions.getRegistry();case 2:if(t=e.sent,(0,t.select)(d.e).getAuthentication()){e.next=7;break}return e.next=7,m.actions.fetchGetAuthentication();case 7:case"end":return e.stop()}}),e)}))},E={getAuthentication:function(e){return e.authentication},hasScope:b((function(e){return function(t,r){var n=e(d.e).getGrantedScopes(t);if(void 0!==n)return n.includes(r)}})),isAuthenticated:y("authenticated"),getGrantedScopes:y("grantedScopes"),getRequiredScopes:y("requiredScopes"),getUnsatisfiedScopes:y("unsatisfiedScopes"),needsReauthentication:y("needsReauthentication"),getDisconnectedReason:y("disconnectedReason"),getAuthError:function(e){return e.authError}},w=a.a.combineStores(m,{initialState:h,actions:O,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_AUTH_ERROR":return g(g({},e),{},{authError:n.error});case"CLEAR_AUTH_ERROR":return g(g({},e),{},{authError:null});default:return e}},resolvers:S,selectors:E}),j=(w.initialState,w.actions,w.controls,w.reducer,w.resolvers,w.selectors,w),_=r(10),k=r.n(_),I=r(50);function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var T={dateRange:"last-28-days",referenceDate:Object(I.e)(new Date)};var R={getDateRange:function(e){return e.dateRange},getDateRangeDates:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.compare,n=void 0!==r&&r,a=t.offsetDays,i=void 0===a?0:a,o=t.referenceDate,c=void 0===o?e.referenceDate:o,u=t.weekDayAlign,s=void 0!==u&&u,l=R.getDateRange(e),f=Object(I.f)(c,i),d=l.match("-(.*)-"),p=Number(d?d[1]:28),v=Object(I.f)(f,p-1),g={startDate:v,endDate:f};if(n){var b=s?Object(I.g)(f,p):Object(I.f)(v,1),y=Object(I.f)(b,p-1);g.compareStartDate=y,g.compareEndDate=b}return g},getDateRangeNumberOfDays:function(e){var t=R.getDateRange(e).match(/-(\d+)-/);return parseInt(t?t[1]:28,10)},getReferenceDate:function(e){return e.referenceDate}},P={initialState:T,actions:{setDateRange:function(e){return k()(e,"Date range slug is required."),k()(Object(I.h)(e),I.a),{type:"SET_DATE_RANGE",payload:{slug:e}}},setReferenceDate:function(e){return k()(e,"Date string is required."),k()(Object(I.i)(e),I.b),{type:"SET_REFERENCE_DATE",payload:{dateString:e}}}},controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_DATE_RANGE":return x(x({},e),{},{dateRange:n.slug});case"SET_REFERENCE_DATE":return x(x({},e),{},{referenceDate:n.dateString});default:return e}},resolvers:{},selectors:R};function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var N,U,L=a.a.createRegistrySelector,F=Object(p.a)({baseName:"disconnect",controlCallback:function(){return f.a.set("core","user","disconnect")},reducerCallback:function(e,t){return C(C({},e),{},{disconnected:t})}}),V={disconnected:void 0},q={disconnect:c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F.actions.fetchDisconnect();case 2:case"end":return e.stop()}}),e)}))},M={isDoingDisconnect:L((function(e){return function(){return e(d.e).isFetchingDisconnect()}}))},G=a.a.combineStores(F,{initialState:V,actions:q,selectors:M}),H=(G.initialState,G.actions,G.controls,G.reducer,G.resolvers,G.selectors,G),K=r(14),$=r.n(K),W=r(632),B=r.n(W),J=r(0),Q=r(345),Y=r(52),z=r(31),Z=r(9),X=r(56),ee={slug:"helpVisibility",contexts:[Q.a,Q.b],version:"1.29.0",gaEventCategory:"global_help_menu",checkRequirements:(N=$()(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(X.b)("helpVisibility"));case 1:case"end":return e.stop()}}),e)}))),function(){return N.apply(this,arguments)}),steps:[{target:".googlesitekit-help-menu",title:Object(J.__)("Need help?","google-site-kit"),content:Object(J.__)("Access the Site Kit docs or ask a question in our support forum from here.","google-site-kit"),placement:"bottom-start"}]},te=[{slug:"allTrafficWidget",contexts:[Q.a],version:"1.25.0",gaEventCategory:"all_traffic_widget",checkRequirements:function(){var e=$()(c.a.mark((function e(t){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.__experimentalResolveSelect(z.a).getModules();case 2:if(t.select(z.a).isModuleConnected("analytics")){e.next=4;break}return e.abrupt("return",!1);case 4:return e.next=6,new Promise((function(e){setTimeout((function r(){t.select(Y.a).getValue(Z.r)?e():setTimeout(r,250)}),250)}));case 6:return e.abrupt("return",!0);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),steps:[{target:".googlesitekit-widget--analyticsAllTraffic__totals",title:Object(J.__)("It’s now easier to see your site’s traffic at a glance","google-site-kit"),content:Object(J.__)("Check the trend graph to see how your traffic changed over time","google-site-kit"),placement:"top"},{target:".googlesitekit-widget--analyticsAllTraffic__dimensions",title:Object(J.__)("See where your visitors come from","google-site-kit"),content:Object(J.__)("Click on the chart slices to see how each segment has changed over time","google-site-kit"),placement:"top"},{target:".googlesitekit-header__date-range-selector-menu",title:Object(J.__)("Check how your traffic changed since you last looked","google-site-kit"),content:Object(J.__)("Select a time frame to see the comparison with the previous time period","google-site-kit")}]},ee],re=r(89);function ne(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return ae(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ae(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw i}}}}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ce,ue=a.a.createRegistrySelector,se=a.a.createRegistryControl,le=a.a.commonActions.getRegistry,fe=Object(p.a)({baseName:"getDismissedTours",controlCallback:function(){return f.a.get("core","user","dismissed-tours",{},{useCache:!1})},reducerCallback:function(e,t){return oe(oe({},e),{},{dismissedTourSlugs:t})}}),de=fe.actions.fetchGetDismissedTours,pe=Object(p.a)({baseName:"dismissTour",controlCallback:function(e){var t=e.slug;return f.a.set("core","user","dismiss-tour",{slug:t})},reducerCallback:function(e,t){return oe(oe({},e),{},{dismissedTourSlugs:t})},argsToParams:function(e){return{slug:e}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.slug;k()(t,"slug is required.")}}),ve=pe.actions.fetchDismissTour,ge={lastDismissedAt:void 0,dismissedTourSlugs:void 0,tours:te,viewTours:{}},be={dismissTour:function(e){return k()(e,"A tour slug is required to dismiss a tour."),c.a.mark((function t(){var r,n,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,le();case 2:if(r=t.sent,!(n=r.select)(d.e).isFetchingDismissTour(e)){t.next=7;break}return a=n(d.e).getDismissedFeatureTourSlugs(),t.abrupt("return",{response:a,error:void 0});case 7:return t.next=9,{payload:{slug:e},type:"DISMISS_TOUR"};case 9:return t.next=11,Se.setLastDismissedAt(Date.now());case 11:return t.next=13,ve(e);case 13:return t.abrupt("return",t.sent);case 14:case"end":return t.stop()}}),t)}))()},receiveFeatureToursForView:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.viewContext;return k()(Array.isArray(e),"viewTours must be an array."),k()(r,"viewContext is required."),{payload:{viewTours:e,viewContext:r},type:"RECEIVE_READY_TOURS"}},receiveAllFeatureTours:function(e){return k()(Array.isArray(e),"tours must be an array."),{payload:{tours:e},type:"RECEIVE_TOURS"}},receiveLastDismissedAt:function(e){return k()(void 0!==e,"A timestamp is required."),{type:"RECEIVE_LAST_DISMISSED_AT",payload:{timestamp:e}}},setLastDismissedAt:function(e){return k()(e,"A timestamp is required."),c.a.mark((function t(){return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"CACHE_LAST_DISMISSED_AT",payload:{timestamp:e}};case 2:return t.next=4,{type:"RECEIVE_LAST_DISMISSED_AT",payload:{timestamp:e}};case 4:case"end":return t.stop()}}),t)}))()}},ye=(U={},s()(U,"CHECK_TOUR_REQUIREMENTS",se((function(e){return function(){var t=$()(c.a.mark((function t(r){var n,a,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.payload,a=n.tour,i=n.viewContext,a.contexts.includes(i)){t.next=4;break}return t.abrupt("return",!1);case 4:if(o=e.select(d.e).getInitialSiteKitVersion()){t.next=9;break}return t.abrupt("return",!1);case 9:if(!B.a.compare(o,a.version,">=")){t.next=11;break}return t.abrupt("return",!1);case 11:return t.next=13,e.__experimentalResolveSelect(d.e).getDismissedFeatureTourSlugs();case 13:if(!e.select(d.e).isTourDismissed(a.slug)){t.next=15;break}return t.abrupt("return",!1);case 15:if(!a.checkRequirements){t.next=19;break}return t.next=18,a.checkRequirements(e);case 18:return t.abrupt("return",!!t.sent);case 19:return t.abrupt("return",!0);case 20:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}))),s()(U,"CACHE_LAST_DISMISSED_AT",(ce=$()(c.a.mark((function e(t){var r,n;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.payload,n=r.timestamp,e.next=4,Object(re.d)("feature_tour_last_dismissed_at",n,{ttl:7200});case 4:case"end":return e.stop()}}),e)}))),function(e){return ce.apply(this,arguments)})),U),me={getDismissedFeatureTourSlugs:c.a.mark((function e(){var t;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le();case 2:if(t=e.sent,(0,t.select)(d.e).getDismissedFeatureTourSlugs()){e.next=7;break}return e.next=7,de();case 7:case"end":return e.stop()}}),e)})),getFeatureToursForView:c.a.mark((function e(t){var r,n,a,i,o,u;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le();case 2:r=e.sent,n=r.select(d.e).getAllFeatureTours(),a=[],i=ne(n),e.prev=6,i.s();case 8:if((o=i.n()).done){e.next=16;break}return u=o.value,e.next=12,{payload:{tour:u,viewContext:t},type:"CHECK_TOUR_REQUIREMENTS"};case 12:e.sent&&a.push(u);case 14:e.next=8;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(6),i.e(e.t0);case 21:return e.prev=21,i.f(),e.finish(21);case 24:return e.next=26,Se.receiveFeatureToursForView(a,{viewContext:t});case 26:case"end":return e.stop()}}),e,null,[[6,18,21,24]])})),getLastDismissedAt:c.a.mark((function e(){var t,r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.commonActions.await(Object(re.b)("feature_tour_last_dismissed_at"));case 2:return t=e.sent,r=t.value,e.next=6,Se.receiveLastDismissedAt(r||null);case 6:case"end":return e.stop()}}),e)}))},he={getDismissedFeatureTourSlugs:function(e){return e.dismissedTourSlugs},getFeatureToursForView:function(e,t){return e.viewTours[t]},getAllFeatureTours:function(e){return e.tours},isTourDismissed:ue((function(e){return function(t,r){var n=e(d.e).getDismissedFeatureTourSlugs();if(void 0!==n)return n.includes(r)}})),getLastDismissedAt:function(e){return e.lastDismissedAt},areFeatureToursOnCooldown:ue((function(e){return function(){var t=e(d.e).getLastDismissedAt();if(void 0!==t){if(null===t)return!1;var r=t+72e5;return Date.now()<r}}}))},Oe=a.a.combineStores({initialState:ge,actions:be,controls:ye,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"DISMISS_TOUR":var a=n.slug,i=e.dismissedTourSlugs,o=void 0===i?[]:i;return o.includes(a)?e:oe(oe({},e),{},{dismissedTourSlugs:o.concat(a)});case"RECEIVE_READY_TOURS":var c=n.viewContext,u=n.viewTours;return oe(oe({},e),{},{viewTours:oe(oe({},e.viewTours),{},s()({},c,u))});case"RECEIVE_TOURS":return oe(oe({},e),{},{tours:n.tours});case"RECEIVE_LAST_DISMISSED_AT":return oe(oe({},e),{},{lastDismissedAt:n.timestamp});default:return e}},resolvers:me,selectors:he},pe,fe),Se=Oe.actions,Ee=Oe.controls,we=Oe.initialState,je=Oe.reducer,_e=Oe.resolvers,ke=Oe.selectors,Ie={actions:Se,controls:Ee,initialState:we,reducer:je,resolvers:_e,selectors:ke},De=r(362),xe=Object(De.a)("core","user","notifications",{server:!1}),Te=r(633),Re=r(80),Pe=r.n(Re),Ae=r(114),Ce=r(391);function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Le=Object(p.a)({baseName:"triggerSurvey",controlCallback:function(e){var t=e.triggerID;return f.a.set("core","user","survey-trigger",{triggerID:t})},argsToParams:function(e){return{triggerID:e}},reducerCallback:function(e,t){var r=t.survey_payload,n=t.session;return qe.getCurrentSurvey(e)?e:Ue(Ue({},e),{},{currentSurvey:r,currentSurveySession:n})},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.triggerID;k()("string"==typeof t&&t.length,"triggerID is required and must be a string")}}),Fe=Object(p.a)({baseName:"sendSurveyEvent",controlCallback:function(e){var t=e.event,r=e.session;return f.a.set("core","user","survey-event",{event:t,session:r})},argsToParams:function(e,t){return{event:e,session:t}}}),Ve={triggerSurvey:Object(Ae.f)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.ttl,n=void 0===r?0:r;k()("string"==typeof e&&e.length,"triggerID is required and must be a string"),k()(Pe()(t),"options must be an object"),k()("number"==typeof n,"options.ttl must be a number")}),c.a.mark((function e(t){var r,n,i,o,u,s,l,f,p,v=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=v.length>1&&void 0!==v[1]?v[1]:{},n=r.ttl,i=void 0===n?0:n,e.next=4,a.a.commonActions.getRegistry();case 4:if(o=e.sent,!(0,o.select)(d.e).getCurrentSurvey()){e.next=8;break}return e.abrupt("return",{});case 8:return u=Object(Ce.a)("core","user","survey-trigger",{triggerID:t}),e.next=11,a.a.commonActions.await(Object(re.b)(u));case 11:if(s=e.sent,!1!==s.cacheHit){e.next=24;break}return e.next=16,Le.actions.fetchTriggerSurvey(t);case 16:if(l=e.sent,f=l.response,!(p=l.error)){e.next=21;break}return e.abrupt("return",{response:f,error:p});case 21:if(!(i>0)){e.next=24;break}return e.next=24,a.a.commonActions.await(Object(re.d)(u,{}));case 24:return e.abrupt("return",{response:{},error:!1});case 25:case"end":return e.stop()}}),e)}))),sendSurveyEvent:Object(Ae.f)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k()("string"==typeof e&&e.length,"eventID is required and must be a string"),k()(Pe()(t),"eventData must be an object")}),c.a.mark((function e(t){var r,n,i,o,u,l,f,p,v=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=v.length>1&&void 0!==v[1]?v[1]:{},n=s()({},t,r),e.next=4,a.a.commonActions.getRegistry();case 4:if(i=e.sent,o=i.select,!(u=o(d.e).getCurrentSurveySession())){e.next=14;break}return e.next=10,Fe.actions.fetchSendSurveyEvent(n,u);case 10:return l=e.sent,f=l.response,p=l.error,e.abrupt("return",{response:f,error:p});case 14:case"end":return e.stop()}}),e)})))},qe={getCurrentSurvey:function(e){return e.currentSurvey},getCurrentSurveySession:function(e){return e.currentSurveySession}},Me=a.a.combineStores(Le,Fe,{initialState:{currentSurvey:null,currentSurveySession:null},actions:Ve,selectors:qe}),Ge=(Me.initialState,Me.actions,Me.selectors,Me);function He(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ke(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?He(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):He(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var $e,We=i.a.receiveError,Be=i.a.clearError,Je=function(e,t){return Ke(Ke({},e),{},{tracking:t})},Qe=Object(p.a)({baseName:"getTracking",controlCallback:function(){return f.a.get("core","user","tracking")},reducerCallback:Je}),Ye=Object(p.a)({baseName:"setTracking",controlCallback:function(e){return f.a.set("core","user","tracking",{enabled:!!e})},reducerCallback:Je,argsToParams:function(e){return e}}),ze={tracking:void 0,isSavingTrackingEnabled:!1},Ze={setTrackingEnabled:c.a.mark((function e(t){var r,n,a;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Be("setTrackingEnabled",[t]);case 2:return e.next=4,{type:"SET_TRACKING_ENABLED_SAVING_ACTION",payload:{isSaving:!0}};case 4:return e.next=6,Ye.actions.fetchSetTracking(t);case 6:if(r=e.sent,n=r.response,!(a=r.error)){e.next=12;break}return e.next=12,We(a,"setTrackingEnabled",[t]);case 12:return e.next=14,{type:"SET_TRACKING_ENABLED_SAVING_ACTION",payload:{isSaving:!1}};case 14:return e.abrupt("return",{response:n,error:a});case 15:case"end":return e.stop()}}),e)}))},Xe={isTrackingEnabled:c.a.mark((function e(){var t;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.commonActions.getRegistry();case 2:if(t=e.sent,void 0!==(0,t.select)(d.e).isTrackingEnabled()){e.next=7;break}return e.next=7,Qe.actions.fetchGetTracking();case 7:case"end":return e.stop()}}),e)}))},et=a.a.combineStores(Qe,Ye,{initialState:ze,actions:Ze,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_TRACKING_ENABLED_SAVING_ACTION":return Ke(Ke({},e),{},{isSavingTrackingEnabled:n.isSaving});default:return e}},resolvers:Xe,selectors:{isSavingTrackingEnabled:function(e){return!!(null==e?void 0:e.isSavingTrackingEnabled)},isTrackingEnabled:function(e){var t=e.tracking;return null==t?void 0:t.enabled}}}),tt=(et.initialState,et.actions,et.controls,et.reducer,et.resolvers,et.selectors,et),rt=r(634);function nt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var it=a.a.commonActions,ot=a.a.createRegistryControl,ct=a.a.createRegistrySelector,ut=i.a.receiveError,st=i.a.clearError;function lt(e,t){return at(at({},e),{},{inputSettings:t})}var ft,dt=Object(p.a)({baseName:"getUserInputSettings",controlCallback:(ft=$()(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",f.a.get("core","user","user-input-settings",void 0,{useCache:!1}));case 1:case"end":return e.stop()}}),e)}))),function(){return ft.apply(this,arguments)}),reducerCallback:lt}),pt=Object(p.a)({baseName:"saveUserInputSettings",controlCallback:function(e){return f.a.set("core","user","user-input-settings",{settings:e})},reducerCallback:lt,argsToParams:function(e){return e},validateParams:function(e){k()(Pe()(e),"valid settings are required.")}}),vt={inputSettings:void 0,isSavingInputSettings:!1},gt={setUserInputSettingsFromCache:c.a.mark((function e(){var t,r,n,a;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{type:"GET_CACHED_USER_INPUT_SETTINGS",payload:{}};case 2:if(!(t=e.sent).cacheHit){e.next=12;break}r=0,n=Object.keys(t.value);case 5:if(!(r<n.length)){e.next=12;break}return a=n[r],e.next=9,gt.setUserInputSetting(a,t.value[a].values);case 9:r++,e.next=5;break;case 12:return e.abrupt("return",t.cacheHit?t.value:{});case 13:case"end":return e.stop()}}),e)})),setUserInputSetting:c.a.mark((function e(t,r){var n,i;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.commonActions.getRegistry();case 2:if(n=e.sent,i=r.map((function(e){return e.trim()})),"completed"===n.select(d.e).getUserInputState()){e.next=7;break}return e.next=7,{type:"SET_CACHED_USER_INPUT_SETTING",payload:{settingID:t,values:i}};case 7:return e.abrupt("return",{type:"SET_USER_INPUT_SETTING",payload:{settingID:t,values:i}});case 8:case"end":return e.stop()}}),e)})),saveUserInputSettings:c.a.mark((function e(){var t,r,n,i,o,u,l,f;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.commonActions.getRegistry();case 2:return t=e.sent,e.next=5,st("saveUserInputSettings",[]);case 5:return r=function(e){return e.trim()},n=function(e){return e.length>0},i=t.select(d.e).getUserInputSettings(),o=Object.keys(i).reduce((function(e,t){var a;return at(at({},e),{},s()({},t,((null===(a=i[t])||void 0===a?void 0:a.values)||[]).map(r).filter(n)))}),{}),e.next=11,{type:"SET_USER_INPUT_SETTINGS_SAVING_FLAG",payload:{isSaving:!0}};case 11:return e.next=13,pt.actions.fetchSaveUserInputSettings(o);case 13:if(u=e.sent,l=u.response,!(f=u.error)){e.next=19;break}return e.next=19,ut(f,"saveUserInputSettings",[]);case 19:return e.next=21,{type:"DELETE_CACHED_USER_INPUT_SETTINGS",payload:{}};case 21:return e.next=23,{type:"SET_USER_INPUT_SETTINGS_SAVING_FLAG",payload:{isSaving:!1}};case 23:return e.abrupt("return",{response:l,error:f});case 24:case"end":return e.stop()}}),e)}))},bt=($e={},s()($e,"DELETE_CACHED_USER_INPUT_SETTINGS",(function(){return Object(re.a)("userInputSettings")})),s()($e,"GET_CACHED_USER_INPUT_SETTINGS",(function(){return Object(re.b)("userInputSettings")})),s()($e,"SET_CACHED_USER_INPUT_SETTING",ot((function(e){return function(){var t=$()(c.a.mark((function t(r){var n,a,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.payload,a=n.settingID,i=n.values,(o=e.select(d.e).getUserInputSettings()||{})[a]={values:i},t.abrupt("return",Object(re.d)("userInputSettings",o));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}))),$e),yt={getUserInputSettings:c.a.mark((function e(){var t,r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,it.getRegistry();case 2:if(t=e.sent,(r=t.select)(d.e).getUserInputSettings()){e.next=7;break}return e.next=7,dt.actions.fetchGetUserInputSettings();case 7:if("completed"===r(d.e).getUserInputState()){e.next=10;break}return e.next=10,gt.setUserInputSettingsFromCache();case 10:case"end":return e.stop()}}),e)}))},mt={isSavingUserInputSettings:function(e){return!!(null==e?void 0:e.isSavingInputSettings)},getUserInputSettings:function(e){return e.inputSettings},getUserInputSetting:ct((function(e){return function(t,r){var n,a=null===(n=(e(d.e).getUserInputSettings()||{})[r])||void 0===n?void 0:n.values;return Array.isArray(a)?a:[]}})),getUserInputSettingScope:ct((function(e){return function(t,r){var n;return null===(n=(e(d.e).getUserInputSettings()||{})[r])||void 0===n?void 0:n.scope}})),getUserInputSettingAuthor:ct((function(e){return function(t,r){var n;return null===(n=(e(d.e).getUserInputSettings()||{})[r])||void 0===n?void 0:n.author}}))},ht=a.a.combineStores(dt,pt,{initialState:vt,actions:gt,controls:bt,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_USER_INPUT_SETTING":return at(at({},e),{},{inputSettings:at(at({},e.inputSettings),{},s()({},n.settingID,at(at({},(e.inputSettings||{})[n.settingID]||{}),{},{values:n.values})))});case"SET_USER_INPUT_SETTINGS_SAVING_FLAG":return at(at({},e),{},{isSavingInputSettings:n.isSaving});default:return e}},resolvers:yt,selectors:mt}),Ot=(ht.initialState,ht.actions,ht.controls,ht.reducer,ht.resolvers,ht.selectors,ht),St=a.a.combineStores(a.a.commonStore,Object(i.b)(),j,P,H,Ie,xe,Te.a,Ge,tt,rt.a,Ot);St.initialState,St.actions,St.controls,St.reducer,St.resolvers,St.selectors;a.a.registerStore(d.e,St)},98:function(e,t,r){"use strict";function n(e){return new URL(e).pathname}function a(e,t){return new URL(t,e).href}function i(e){return e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return i}))}},[[943,1,0]]]);
dist/assets/js/{googlesitekit-module.14c81771c3ed102a101b.js → googlesitekit-module.203e1af2c45cf2ff7602.js} RENAMED
@@ -2,7 +2,7 @@
2
  /* translators: 1: date for user stats, 2: previous date for user stats comparison */
3
  Object(l._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(P,L),x[n][0].toLocaleDateString(P,L)),s=Object(l.sprintf)(
4
  /* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
5
- Object(l._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),k[t],j[t](e[1]),i,Object(u.r)(Math.abs(a),"%"));D.push([e[0],'<div class="'.concat(c()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":a>0,"googlesitekit-visualization-tooltip--down":a<0}),'">\n\t\t\t\t<p>').concat(o,"</p>\n\t\t\t\t<p>").concat(s,"</p>\n\t\t\t</div>"),E?Object(u.c)(e[1]):e[1],E?Object(u.c)(x[n][1]):x[n][1]])}})),D}var R=function(e){if(!e||!e.length)return null;var t=e[0].data.rows,n=[[{type:"date",label:"Day"},{type:"number",label:"Users"},{type:"number",label:"Sessions"},{type:"number",label:"Goals Completed"}]];return Object(i.each)(t,(function(e){var t=e.metrics[0].values,r=e.dimensions[0],a=Object(g.a)(r);n.push([a,t[0],t[1],t[4]])})),n},A=function(e){var t;return e.error&&e.error.status?function(e,t){var n="";switch(e){case"INVALID_ARGUMENT":n=Object(l.__)("Analytics module needs to be configured.","google-site-kit");break;case"UNAUTHENTICATED":n=Object(l.__)("You need to be authenticated to get this data.","google-site-kit");break;case"PERMISSION_DENIED":n=Object(l.__)("Your account does not have sufficient permission to access this data, please consult to your web administrator.","google-site-kit");break;case"RESOURCE_EXHAUSTED":n=Object(l.__)("Your account exceeded the maximum quota. Please try again later.","google-site-kit");break;case"INTERNAL":n=Object(l.__)("Unexpected internal server error occurred.","google-site-kit");break;case"BACKEND_ERROR":n=Object(l.__)("Analytics server returned unknown error. Please try again later.","google-site-kit");break;case"UNAVAILABLE":n=Object(l.__)("The service was unable to process the request. Please try again later.","google-site-kit");break;default:n=t}return n}(e.error.status,e.error.message):!!(e.code&&e.message&&(null===(t=e.data)||void 0===t?void 0:t.status))&&e.message},x=function(e){if(!e||!e.length)return!0;if(e&&e[0]&&e[0].data&&e[0].data.totals&&e[0].data.totals[0]){var t=e[0].data.totals[0].values,n=!0;return Object(i.each)(t,(function(e){0!==parseInt(e,10)&&(n=!1)})),n}return!1},P={dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:adsenseRevenue",alias:"Earnings"},{expression:"ga:adsenseECPM",alias:"Page RPM"},{expression:"ga:adsensePageImpressions",alias:"Impressions"}],orderby:[{fieldName:"ga:adsenseRevenue",sortOrder:"DESCENDING"}],limit:10},L={compareDateRanges:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"}],limit:180},T={multiDateRange:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"},{expression:"ga:pageviews",alias:"Pageviews"}],limit:10},M={multiDateRange:1,metrics:[{expression:"ga:users",alias:"Total Users"}]},I={dimensions:"ga:channelGrouping",metrics:[{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:users",alias:"Users"},{expression:"ga:newUsers",alias:"New Users"}],orderby:[{fieldName:"ga:users",sortOrder:"DESCENDING"}],limit:10},U=function(){return{dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:pageviews",alias:"Pageviews"},{expression:"ga:uniquePageviews",alias:"Unique Pageviews"},{expression:"ga:bounceRate",alias:"Bounce rate"}],orderby:[{fieldName:"ga:pageviews",sortOrder:"DESCENDING"}],limit:10}},W=function(e){var t,n,r,a,i,o,c,l,s,u;return{totalUsers:null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.totals)||void 0===r||null===(a=r[0])||void 0===a||null===(i=a.values)||void 0===i?void 0:i[0],previousTotalUsers:null==e||null===(o=e[0])||void 0===o||null===(c=o.data)||void 0===c||null===(l=c.totals)||void 0===l||null===(s=l[1])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0]}}},function(e,t,n){"use strict";var r=n(11),a=n.n(r),i=n(23),o=n(113),c=n(99),l=n(17),s=n(32),u=n(84),d=n(73),g=n(161),f=n(128),p=n(38),m=n(88);n.d(t,"a",(function(){return m.a})),n.d(t,"b",(function(){return m.b}));var h=n(134),b=n(171),v={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],s=25;Object(i.each)(e,(function(e){e.key=Object(p.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(p.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),s),s+=25):r.push(e)})),r=Object(i.sortBy)(r,"priority");var g=[],f=[],m={},h=!!r.find((function(e){return e.priority<10}));Object(i.each)(r,(function(e,t){!n&&10<=e.priority&&h?f.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],g.push(e))}));var b=10,v=g.slice(0,b),y=g.slice(b);if(y=y.concat(f),0!==v.length||0!==y.length){0<y.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(y,!0)}),50):this.maxRequests=10;var _=null!==Object(u.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:_||void 0}),data:{request:v},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=a()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(d.d)(o)){var c=m[i][0],s=r[c],u=s.datapoint,g=s.type,f=s.identifier;t.handleWPError({method:"GET",datapoint:u,type:g,identifier:f,error:o})}else Object(p.f)(i,o);m[i].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===y.length&&Object(l.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(l.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,a=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(a),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(b.a)({method:t,datapoint:n,type:r,identifier:a,error:i});var o=i.data;if(o&&(o.reason||o.reconnectURL)){var c=0;["authError","insufficientPermissions"].includes(o.reason)&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(f.a),1),c++),o.reconnectURL&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(g.a),1),c++),c&&Object(l.b)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease",(function(e){return Object(l.g)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease"),e+c}))}},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:h.a,collectModuleData:function(e,t){var n=Object(l.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=Object(p.d)(e,t,n,a);if(!i){var s=Object(p.c)(l,3600);if(void 0!==s)return new Promise((function(e){e(s)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),a)}).then((function(e){return i||Object(p.f)(l,e),Promise.resolve(e)})).catch((function(a){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},set:function(e,t,n,r){var a=this,i={};return i.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(r){return v.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return a.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(m.a,"modules","activation",{slug:e,active:t})}};Object(l.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(l.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",v.collectModuleData.bind(v)),t.c=v},function(e,t,n){"use strict";(function(e){var r=n(1),a=n.n(r),i=n(8),o=n.n(i),c=n(184);function PreviewBlock(t){var n=t.className,r=t.width,a=t.height,i=t.shape,l=t.padding,s=t.smallWidth,u=t.smallHeight,d=t.tabletWidth,g=t.tabletHeight,f=t.desktopWidth,p=t.desktopHeight,m=Object(c.a)(),h=r,b=a;return"small"===m&&s&&u&&(h=s,b=u),"tablet"===m&&d&&g&&(h=d,b=g),("xlarge"===m||"desktop"===m)&&f&&p&&(h=f,b=p),e.createElement("div",{className:o()("googlesitekit-preview-block",n,{"googlesitekit-preview-block--padding":l}),style:{width:h,height:b}},e.createElement("div",{className:o()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===i})}))}PreviewBlock.propTypes={className:a.a.string,width:a.a.string,height:a.a.string,shape:a.a.string,padding:a.a.bool,smallWidth:a.a.string,smallHeight:a.a.string,tabletWidth:a.a.string,tabletHeight:a.a.string,desktopWidth:a.a.string,desktopHeight:a.a.string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0},t.a=PreviewBlock}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var r="modules/adsense",a=1},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core/modules",a="insufficient_module_dependencies"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(25),a=n.n(r),i=n(2),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(i){return e.createElement(t,a()({},i,n,{OriginalComponent:r}))}}}}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(21),l=n.n(c),s=n(22),u=n.n(s),d=n(13),g=n.n(d),f=n(1),p=n.n(f),m=n(8),h=n.n(m),b=n(2),v=n(195),y=n(196);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var O=function(t){l()(Layout,t);var n=_(Layout);function Layout(){return a()(this,Layout),n.apply(this,arguments)}return o()(Layout,[{key:"render",value:function(){var t=this.props,n=t.header,r=t.footer,a=t.children,i=t.title,o=t.headerCTALabel,c=t.headerCTALink,l=t.footerCTALabel,s=t.footerCTALink,u=t.footerContent,d=t.className,g=t.fill,f=t.relative;return e.createElement("div",{className:h()("googlesitekit-layout",d,{"googlesitekit-layout--fill":g,"googlesitekit-layout--relative":f})},n&&e.createElement(v.a,{title:i,ctaLabel:o,ctaLink:c}),a,r&&e.createElement(y.a,{ctaLabel:l,ctaLink:s,footerContent:u}))}}]),Layout}(b.Component);O.propTypes={header:p.a.bool,footer:p.a.bool,children:p.a.node.isRequired,title:p.a.string,headerCTALabel:p.a.string,headerCTALink:p.a.string,footerCTALabel:p.a.string,footerCTALink:p.a.string,footerContent:p.a.node,className:p.a.string,fill:p.a.bool,relative:p.a.bool},O.defaultProps={header:!1,footer:!1,title:"",headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=O}).call(this,n(2))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var r="modules/search-console",a=1},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return f}));var r=n(33),a=n.n(r),i=n(23),o=n(48),c=n(72),l="googlesitekit_legacy_1.34.0_",s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(l+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(l+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},g=function(t){s(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(l+t)},f=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],l=0,s=o;l<s.length;l++){var u=s[l];if(!u||!u.length)break;i.push(u)}return 3===i.length&&r&&"object"===a()(r)&&Object.keys(r).length&&i.push(Object(c.a)(r)),i.join("::")}}).call(this,n(18))},,function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(49),l=n.n(c),s=n(21),u=n.n(s),d=n(22),g=n.n(d),f=n(13),p=n.n(f),m=n(1),h=n.n(m),b=n(8),v=n.n(b),y=n(2),_=n(0),O=n(67),k=n(78),j=n(5);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}var S=function(t){u()(DataBlock,t);var n=E(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(l()(t)),t.handleKeyPress=t.handleKeyPress.bind(l()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,l=t.context,s=t.period,u=t.selected,d=t.handleStatSelection,g=t.source,f=t.sparkline,p=t.invertChangeColor,m="button"===l?"button":"",h=f;h&&p&&(h=Object(y.cloneElement)(f,{invertChangeColor:p}));var b=o;c&&(b="%"===c?Object(j.r)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(j.r)(o,c)),s&&(b=Object(_.sprintf)(s,b));var E=a&&Object(j.r)(a,i||void 0);return e.createElement("div",{className:v()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},E)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:v()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(y.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(O.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},b))),g&&e.createElement(k.a,{className:"googlesitekit-data-block__source",name:g.name,href:g.link,external:null==g?void 0:g.external})))}}]),DataBlock}(y.Component);S.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},S.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=S}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(25),a=n.n(r),i=n(11),o=n.n(i),c=n(15),l=n.n(c),s=n(16),u=n.n(s),d=n(49),g=n.n(d),f=n(21),p=n.n(f),m=n(22),h=n.n(m),b=n(13),v=n.n(b),y=n(293),_=n.n(y),O=n(125),k=n.n(O),j=n(17),E=n(2),S=n(0),D=n(4),w=n.n(D),C=n(5),N=n(94),R=n(112),A=n(188),x=n(88),P=n(12),L=n(236);function T(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v()(e);if(t){var a=v()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var U=w.a.withSelect,W=k()(C.v);t.a=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{inGrid:!1,fullWidth:!1,createGrid:!1},c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e){if(e&&e.error)return e.error.message?e.error.message:e.error.errors&&e.error.errors[0]&&e.error.errors[0].message?e.error.errors[0].message:Object(S.__)("Unidentified error","google-site-kit");if(e&&e.errors&&e.errors[0]&&e.errors[0].message)return e.errors[0].message;if(e&&e.error_data){var t=Object.values(e.error_data);if(t[0]&&"RateLimitExceeded"===t[0].reason)return Object(S.__)("Too many requests have been sent within a given time span. Please reload this page again in a few seconds.","google-site-kit")}if(e&&e.errors){var n=Object.values(e.errors);if(n[0]&&n[0][0])return n[0][0]}return!!(e.code&&e.message&&e.data&&e.data.status)&&e.message},d=n.reduce((function(e,t){return _()(t.context).forEach((function(n){e[n]=e[n]||[],e[n].push(t)})),e}),{}),f=function(n){p()(NewComponent,n);var f=I(NewComponent);function NewComponent(e){var t;return l()(this,NewComponent),(t=f.call(this,e)).state={data:!1,zeroData:!1,errorMessage:!1,moduleRequiringSetup:""},t.handleModuleDataReset=t.handleModuleDataReset.bind(g()(t)),t.handleReturnedData=t.handleReturnedData.bind(g()(t)),t.addDataRequests=t.addDataRequests.bind(g()(t)),t.removeDataRequests=t.removeDataRequests.bind(g()(t)),t}return u()(NewComponent,[{key:"componentDidMount",value:function(){Object(j.a)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.addDataRequests()}},{key:"componentWillUnmount",value:function(){Object(j.f)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.removeDataRequests()}},{key:"handleModuleDataReset",value:function(){this.removeDataRequests(),this.addDataRequests(),this.setState({data:!1,errorMessage:!1,zeroData:!1})}},{key:"addDataRequests",value:function(){var e=this,t=this.props.dateRange;Object.entries(d).forEach((function(n){var r=o()(n,2),a=r[0],i=r[1];Object(j.b)("googlesitekit.module".concat(a,"DataRequest"),"googlesitekit.withData.".concat(W(i)),(function(n){var r,a=Object(C.i)(),o=[],c=T(i);try{var l=function(){var n,i,c=r.value,l=c||{},s=l.type,u=l.identifier;if(x.b===s&&!(null===(n=a[u])||void 0===n?void 0:n.setupComplete))return e.setState({moduleRequiringSetup:u,moduleRequiringActivation:!(null===(i=a[u])||void 0===i?void 0:i.active)}),"continue";var d=Object(L.a)(c,t);d.callback=function(t){e.handleReturnedData(t,c)},o.push(d)};for(c.s();!(r=c.n()).done;)l()}catch(e){c.e(e)}finally{c.f()}return n.concat(o)}))}))}},{key:"removeDataRequests",value:function(){Object.entries(d).forEach((function(e){var t=o()(e,2),n=t[0],r=t[1];Object(j.g)("googlesitekit.module".concat(n,"DataRequest"),"googlesitekit.withData.".concat(W(r)))}))}},{key:"handleReturnedData",value:function(e,t){var n=this.props,r=n.handleDataError,a=n.handleDataSuccess,i=t.datapoint,o=t.identifier,l=t.toState,u=s(e);u?(this.setState({errorMessage:u,errorObj:e,module:o}),r&&r(u,e)):c(e,i,t)?(r&&r(u,e),this.setState({zeroData:!0})):a&&a(),this.setState({requestDataToState:l,data:e,datapoint:i,module:o})}},{key:"render",value:function(){var n=this.state,o=n.data,c=n.datapoint,l=n.module,s=n.zeroData,u=n.errorMessage,d=n.errorObj,g=n.requestDataToState,f=n.moduleRequiringSetup;if(n.moduleRequiringActivation)return Object(A.b)(f,i.inGrid,i.fullWidth,i.createGrid);if(f)return Object(A.a)(f,i.inGrid,i.fullWidth,i.createGrid);if(!o)return r;if(u)return"string"!=typeof u?u:Object(R.a)(l,u,i.inGrid,i.fullWidth,i.createGrid,d);if(s){var p,m=(null===(p=Object(C.i)()[l])||void 0===p?void 0:p.name)||Object(S.__)("Site Kit","google-site-kit");return Object(N.a)(m,i.inGrid,i.fullWidth,i.createGrid)}return e.createElement(t,a()({data:o,datapoint:c,requestDataToState:g},this.props))}}]),NewComponent}(E.Component),m=t.displayName||t.name||"AnonymousComponent";return f.displayName="withData(".concat(m,")"),U((function(e){return{dateRange:e(P.a).getDateRange(),dateRangeLength:e(P.a).getDateRangeNumberOfDays()}}))(f)}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return i}));var r="Date param must construct to a valid date instance or be a valid date instance itself.",a="Invalid dateString parameter, it must be a string.",i='Invalid date range, it must be a string with the format "last-x-days".'},function(e,t,n){"use strict";(function(e){var r=n(25),a=n.n(r),i=n(26),o=n.n(i),c=n(8),l=n.n(c),s=n(1),u=n.n(s),d=n(157),g=n(2),f=n(19),p=Object(g.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,s=t.className,u=t.danger,p=t.disabled,m=t.target,h=t.icon,b=t.trailingIcon,v=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon"]),y=Object(g.useCallback)((function(e){null!==e&&f.i.attachTo(e)}),[]),_=Object(d.a)(n,y),O=i&&!p?"a":"button";return e.createElement(O,a()({className:l()("mdc-button",s,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:p?void 0:i,ref:_,disabled:!!p,target:m||"_self",role:"a"===O?"button":void 0},v),h,r&&e.createElement("span",{className:"mdc-button__label"},r),b)}));p.displayName="Button",p.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element},p.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null},t.a=p}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(53),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(r.a)(new Date(e))}},function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(7),o=n.n(i),c=n(14),l=n.n(c),s=n(15),u=n.n(s),d=n(16),g=n.n(d),f=n(49),p=n.n(f),m=n(21),h=n.n(m),b=n(22),v=n.n(b),y=n(13),_=n.n(y),O=n(1),k=n.n(O),j=n(8),E=n.n(j),S=n(23),D=n(2),w=n(144),C=n(75),N=n(38),R=n(40),A=n(43),x=n(170),P=n(185),L=n(24),T=n(137);function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_()(e);if(t){var a=_()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var I=function(t){h()(Notification,t);var n,r,i=M(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(D.createRef)(),t.handleDismiss=t.handleDismiss.bind(p()(t)),t.handleCTAClick=t.handleCTAClick.bind(p()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(N.f)("notification::displayed::".concat(t.props.id),new Date),t}return g()(Notification,[{key:"handleDismiss",value:(r=l()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(N.f)("notification::dismissed::".concat(e.props.id),new Date),t.style.display="none";var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=l()(o.a.mark((function e(t){var n,r,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,r=n.isDismissable,!(a=n.onCTAClick)){e.next=5;break}return e.next=5,a(t);case 5:r&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,r=Object(N.c)("notification::dismissed::".concat(t));if(r){var a=new Date(r);a.setSeconds(a.getSeconds()+parseInt(n,10)),a<new Date&&Object(N.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,r=this.props,i=r.children,o=r.id,c=r.className,l=r.title,s=r.description,u=r.blockData,d=r.WinImageSVG,g=r.SmallImageSVG,f=r.format,p=r.learnMoreURL,m=r.learnMoreDescription,h=r.learnMoreLabel,b=r.ctaLink,v=r.ctaLabel,y=r.ctaTarget,_=r.type,O=r.dismiss,k=r.isDismissable,j=r.logo,M=r.module,I=r.moduleName,U=r.pageIndex,W=r.anchorLink,z=r.anchorLinkLabel;if(Object(N.c)("notification::dismissed::".concat(o)))return null;var F,q=n?"is-closed":"is-open",H="large"===f&&"win-stats-increase"===_,G="mdc-layout-grid__cell--span-12";"large"===f?(G="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",H&&(G="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===f&&(G="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),F="win-warning"===_?e.createElement(x.a,null):"win-error"===_?e.createElement(P.a,null):"";var V=e.createElement(D.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(S.map)(u,(function(t,n){return e.createElement("div",{key:n,className:E()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":H,"mdc-layout-grid__cell--span-4-desktop":!H})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(R.a,t)))})))),B=e.createElement(D.Fragment,null,l&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},l),W&&z&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(L.a,{href:W},z)),s&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(D.isValidElement)(s)?s:e.createElement("span",{dangerouslySetInnerHTML:Object(C.a)(s,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),h&&e.createElement(D.Fragment,null," ",e.createElement(L.a,{href:p,external:!0,inherit:!0},h),m),U&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},U))),i),$=M?e.createElement(T.a,{slug:M,size:19}):e.createElement(w.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:E()(c,"googlesitekit-publisher-win",(t={},a()(t,"googlesitekit-publisher-win--".concat(f),f),a()(t,"googlesitekit-publisher-win--".concat(_),_),a()(t,"googlesitekit-publisher-win--".concat(q),q),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},j&&e.createElement("div",{className:E()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":H,"mdc-layout-grid__cell--order-1-tablet":H})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},$),I&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},I)),g&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(g,null)),e.createElement("div",{className:E()("mdc-layout-grid__cell",G)},H?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},B),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},V)):e.createElement(D.Fragment,null,B,V),b&&e.createElement(A.a,{className:"googlesitekit-notification__cta",href:b,target:y,onClick:this.handleCTAClick},v),k&&O&&e.createElement(L.a,{onClick:this.handleDismiss},O)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(d,null))),("win-error"===_||"win-warning"===_)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},F)))))}}]),Notification}(D.Component);I.propTypes={id:k.a.string.isRequired,className:k.a.string,title:k.a.string.isRequired,description:k.a.node,learnMoreURL:k.a.string,learnMoreDescription:k.a.string,learnMoreLabel:k.a.string,blockData:k.a.array,WinImageSVG:k.a.elementType,SmallImageSVG:k.a.elementType,format:k.a.string,ctaLink:k.a.string,ctaLabel:k.a.string,type:k.a.string,dismiss:k.a.string,isDismissable:k.a.bool,logo:k.a.bool,module:k.a.string,moduleName:k.a.string,pageIndex:k.a.string,dismissExpires:k.a.number,showOnce:k.a.bool,onCTAClick:k.a.func,onDismiss:k.a.func,anchorLink:k.a.string,anchorLinkLabel:k.a.string},I.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=I}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r,a=n(15),i=n.n(a),o=n(16),c=n.n(o),l=function(t){var n=e[t];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return r||(r=l("sessionStorage")?e.sessionStorage:l("localStorage")?e.localStorage:new s),r}}).call(this,n(18))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r.b})),n.d(t,"b",(function(){return r.c})),n.d(t,"e",(function(){return a.a})),n.d(t,"f",(function(){return i.a})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return l.a})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return d}));var r=n(42),a=n(65),i=n(55),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t%7,r=0===n;if(r)return Object(i.a)(e,t);var a=t>7&&n<3,o=a?t-n:t+(7-n);return Object(i.a)(e,o)},c=(n(53),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}),l=n(45);function s(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var u=n(0);function d(){var e=function(e){return Object(u.sprintf)(
6
  /* translators: %s: number of days */
7
  Object(u._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,t){e.exports=googlesitekit.api},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/ui"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/location"},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(11),a=n.n(r),i=n(10),o=n.n(i),c=n(42),l=n(65),s=n(45),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;o()(Object(s.a)(e),c.c);var n=e.split("-"),r=a()(n,3),i=r[0],u=r[1],d=r[2],g=new Date(i,u-1,d);return g.setDate(g.getDate()-t),Object(l.a)(g)}},function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){var r=n(1),a=n.n(r),i=n(8),o=n.n(i),c=n(24),l=function CTA(t){var n=t.title,r=t.description,a=t.ctaLink,i=t.ctaLabel,l=t.error,s=t.onClick,u=t["aria-label"];return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":l})},n&&e.createElement("h3",{className:"googlesitekit-cta__title"},n),r&&"string"==typeof r&&e.createElement("p",{className:"googlesitekit-cta__description"},r),r&&"string"!=typeof r&&e.createElement("div",
2
  /* translators: 1: date for user stats, 2: previous date for user stats comparison */
3
  Object(l._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(P,L),x[n][0].toLocaleDateString(P,L)),s=Object(l.sprintf)(
4
  /* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
5
+ Object(l._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),k[t],j[t](e[1]),i,Object(u.r)(Math.abs(a),"%"));D.push([e[0],'<div class="'.concat(c()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":a>0,"googlesitekit-visualization-tooltip--down":a<0}),'">\n\t\t\t\t<p>').concat(o,"</p>\n\t\t\t\t<p>").concat(s,"</p>\n\t\t\t</div>"),E?Object(u.c)(e[1]):e[1],E?Object(u.c)(x[n][1]):x[n][1]])}})),D}var R=function(e){if(!e||!e.length)return null;var t=e[0].data.rows,n=[[{type:"date",label:"Day"},{type:"number",label:"Users"},{type:"number",label:"Sessions"},{type:"number",label:"Goals Completed"}]];return Object(i.each)(t,(function(e){var t=e.metrics[0].values,r=e.dimensions[0],a=Object(g.a)(r);n.push([a,t[0],t[1],t[4]])})),n},A=function(e){var t;return e.error&&e.error.status?function(e,t){var n="";switch(e){case"INVALID_ARGUMENT":n=Object(l.__)("Analytics module needs to be configured.","google-site-kit");break;case"UNAUTHENTICATED":n=Object(l.__)("You need to be authenticated to get this data.","google-site-kit");break;case"PERMISSION_DENIED":n=Object(l.__)("Your account does not have sufficient permission to access this data, please consult to your web administrator.","google-site-kit");break;case"RESOURCE_EXHAUSTED":n=Object(l.__)("Your account exceeded the maximum quota. Please try again later.","google-site-kit");break;case"INTERNAL":n=Object(l.__)("Unexpected internal server error occurred.","google-site-kit");break;case"BACKEND_ERROR":n=Object(l.__)("Analytics server returned unknown error. Please try again later.","google-site-kit");break;case"UNAVAILABLE":n=Object(l.__)("The service was unable to process the request. Please try again later.","google-site-kit");break;default:n=t}return n}(e.error.status,e.error.message):!!(e.code&&e.message&&(null===(t=e.data)||void 0===t?void 0:t.status))&&e.message},x=function(e){if(!e||!e.length)return!0;if(e&&e[0]&&e[0].data&&e[0].data.totals&&e[0].data.totals[0]){var t=e[0].data.totals[0].values,n=!0;return Object(i.each)(t,(function(e){0!==parseInt(e,10)&&(n=!1)})),n}return!1},P={dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:adsenseRevenue",alias:"Earnings"},{expression:"ga:adsenseECPM",alias:"Page RPM"},{expression:"ga:adsensePageImpressions",alias:"Impressions"}],orderby:[{fieldName:"ga:adsenseRevenue",sortOrder:"DESCENDING"}],limit:10},L={compareDateRanges:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"}],limit:180},T={multiDateRange:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"},{expression:"ga:pageviews",alias:"Pageviews"}],limit:10},M={multiDateRange:1,metrics:[{expression:"ga:users",alias:"Total Users"}]},I={dimensions:"ga:channelGrouping",metrics:[{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:users",alias:"Users"},{expression:"ga:newUsers",alias:"New Users"}],orderby:[{fieldName:"ga:users",sortOrder:"DESCENDING"}],limit:10},U=function(){return{dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:pageviews",alias:"Pageviews"},{expression:"ga:uniquePageviews",alias:"Unique Pageviews"},{expression:"ga:bounceRate",alias:"Bounce rate"}],orderby:[{fieldName:"ga:pageviews",sortOrder:"DESCENDING"}],limit:10}},W=function(e){var t,n,r,a,i,o,c,l,s,u;return{totalUsers:null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.totals)||void 0===r||null===(a=r[0])||void 0===a||null===(i=a.values)||void 0===i?void 0:i[0],previousTotalUsers:null==e||null===(o=e[0])||void 0===o||null===(c=o.data)||void 0===c||null===(l=c.totals)||void 0===l||null===(s=l[1])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0]}}},function(e,t,n){"use strict";var r=n(11),a=n.n(r),i=n(23),o=n(113),c=n(99),l=n(17),s=n(32),u=n(84),d=n(73),g=n(161),f=n(128),p=n(38),m=n(88);n.d(t,"a",(function(){return m.a})),n.d(t,"b",(function(){return m.b}));var h=n(134),b=n(171),v={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],s=25;Object(i.each)(e,(function(e){e.key=Object(p.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(p.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),s),s+=25):r.push(e)})),r=Object(i.sortBy)(r,"priority");var g=[],f=[],m={},h=!!r.find((function(e){return e.priority<10}));Object(i.each)(r,(function(e,t){!n&&10<=e.priority&&h?f.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],g.push(e))}));var b=10,v=g.slice(0,b),y=g.slice(b);if(y=y.concat(f),0!==v.length||0!==y.length){0<y.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(y,!0)}),50):this.maxRequests=10;var _=null!==Object(u.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:_||void 0}),data:{request:v},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=a()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(d.d)(o)){var c=m[i][0],s=r[c],u=s.datapoint,g=s.type,f=s.identifier;t.handleWPError({method:"GET",datapoint:u,type:g,identifier:f,error:o})}else Object(p.f)(i,o);m[i].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===y.length&&Object(l.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(l.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,a=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(a),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(b.a)({method:t,datapoint:n,type:r,identifier:a,error:i});var o=i.data;if(o&&(o.reason||o.reconnectURL)){var c=0;["authError","insufficientPermissions"].includes(o.reason)&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(f.a),1),c++),o.reconnectURL&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(g.a),1),c++),c&&Object(l.b)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease",(function(e){return Object(l.g)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease"),e+c}))}},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:h.a,collectModuleData:function(e,t){var n=Object(l.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=Object(p.d)(e,t,n,a);if(!i){var s=Object(p.c)(l,3600);if(void 0!==s)return new Promise((function(e){e(s)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),a)}).then((function(e){return i||Object(p.f)(l,e),Promise.resolve(e)})).catch((function(a){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},set:function(e,t,n,r){var a=this,i={};return i.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(r){return v.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return a.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(m.a,"modules","activation",{slug:e,active:t})}};Object(l.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(l.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",v.collectModuleData.bind(v)),t.c=v},function(e,t,n){"use strict";(function(e){var r=n(1),a=n.n(r),i=n(8),o=n.n(i),c=n(184);function PreviewBlock(t){var n=t.className,r=t.width,a=t.height,i=t.shape,l=t.padding,s=t.smallWidth,u=t.smallHeight,d=t.tabletWidth,g=t.tabletHeight,f=t.desktopWidth,p=t.desktopHeight,m=Object(c.a)(),h=r,b=a;return"small"===m&&s&&u&&(h=s,b=u),"tablet"===m&&d&&g&&(h=d,b=g),("xlarge"===m||"desktop"===m)&&f&&p&&(h=f,b=p),e.createElement("div",{className:o()("googlesitekit-preview-block",n,{"googlesitekit-preview-block--padding":l}),style:{width:h,height:b}},e.createElement("div",{className:o()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===i})}))}PreviewBlock.propTypes={className:a.a.string,width:a.a.string,height:a.a.string,shape:a.a.string,padding:a.a.bool,smallWidth:a.a.string,smallHeight:a.a.string,tabletWidth:a.a.string,tabletHeight:a.a.string,desktopWidth:a.a.string,desktopHeight:a.a.string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0},t.a=PreviewBlock}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var r="modules/adsense",a=1},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core/modules",a="insufficient_module_dependencies"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(25),a=n.n(r),i=n(2),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(i){return e.createElement(t,a()({},i,n,{OriginalComponent:r}))}}}}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(21),l=n.n(c),s=n(22),u=n.n(s),d=n(13),g=n.n(d),f=n(1),p=n.n(f),m=n(8),h=n.n(m),b=n(2),v=n(195),y=n(196);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var O=function(t){l()(Layout,t);var n=_(Layout);function Layout(){return a()(this,Layout),n.apply(this,arguments)}return o()(Layout,[{key:"render",value:function(){var t=this.props,n=t.header,r=t.footer,a=t.children,i=t.title,o=t.headerCTALabel,c=t.headerCTALink,l=t.footerCTALabel,s=t.footerCTALink,u=t.footerContent,d=t.className,g=t.fill,f=t.relative;return e.createElement("div",{className:h()("googlesitekit-layout",d,{"googlesitekit-layout--fill":g,"googlesitekit-layout--relative":f})},n&&e.createElement(v.a,{title:i,ctaLabel:o,ctaLink:c}),a,r&&e.createElement(y.a,{ctaLabel:l,ctaLink:s,footerContent:u}))}}]),Layout}(b.Component);O.propTypes={header:p.a.bool,footer:p.a.bool,children:p.a.node.isRequired,title:p.a.string,headerCTALabel:p.a.string,headerCTALink:p.a.string,footerCTALabel:p.a.string,footerCTALink:p.a.string,footerContent:p.a.node,className:p.a.string,fill:p.a.bool,relative:p.a.bool},O.defaultProps={header:!1,footer:!1,title:"",headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=O}).call(this,n(2))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var r="modules/search-console",a=1},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return f}));var r=n(33),a=n.n(r),i=n(23),o=n(48),c=n(72),l="googlesitekit_legacy_1.34.1_",s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(l+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(l+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},g=function(t){s(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(l+t)},f=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],l=0,s=o;l<s.length;l++){var u=s[l];if(!u||!u.length)break;i.push(u)}return 3===i.length&&r&&"object"===a()(r)&&Object.keys(r).length&&i.push(Object(c.a)(r)),i.join("::")}}).call(this,n(18))},,function(e,t,n){"use strict";(function(e){var r=n(15),a=n.n(r),i=n(16),o=n.n(i),c=n(49),l=n.n(c),s=n(21),u=n.n(s),d=n(22),g=n.n(d),f=n(13),p=n.n(f),m=n(1),h=n.n(m),b=n(8),v=n.n(b),y=n(2),_=n(0),O=n(67),k=n(78),j=n(5);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}var S=function(t){u()(DataBlock,t);var n=E(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(l()(t)),t.handleKeyPress=t.handleKeyPress.bind(l()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,l=t.context,s=t.period,u=t.selected,d=t.handleStatSelection,g=t.source,f=t.sparkline,p=t.invertChangeColor,m="button"===l?"button":"",h=f;h&&p&&(h=Object(y.cloneElement)(f,{invertChangeColor:p}));var b=o;c&&(b="%"===c?Object(j.r)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(j.r)(o,c)),s&&(b=Object(_.sprintf)(s,b));var E=a&&Object(j.r)(a,i||void 0);return e.createElement("div",{className:v()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},E)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:v()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(y.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(O.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},b))),g&&e.createElement(k.a,{className:"googlesitekit-data-block__source",name:g.name,href:g.link,external:null==g?void 0:g.external})))}}]),DataBlock}(y.Component);S.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},S.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=S}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(25),a=n.n(r),i=n(11),o=n.n(i),c=n(15),l=n.n(c),s=n(16),u=n.n(s),d=n(49),g=n.n(d),f=n(21),p=n.n(f),m=n(22),h=n.n(m),b=n(13),v=n.n(b),y=n(293),_=n.n(y),O=n(125),k=n.n(O),j=n(17),E=n(2),S=n(0),D=n(4),w=n.n(D),C=n(5),N=n(94),R=n(112),A=n(188),x=n(88),P=n(12),L=n(236);function T(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v()(e);if(t){var a=v()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var U=w.a.withSelect,W=k()(C.v);t.a=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{inGrid:!1,fullWidth:!1,createGrid:!1},c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e){if(e&&e.error)return e.error.message?e.error.message:e.error.errors&&e.error.errors[0]&&e.error.errors[0].message?e.error.errors[0].message:Object(S.__)("Unidentified error","google-site-kit");if(e&&e.errors&&e.errors[0]&&e.errors[0].message)return e.errors[0].message;if(e&&e.error_data){var t=Object.values(e.error_data);if(t[0]&&"RateLimitExceeded"===t[0].reason)return Object(S.__)("Too many requests have been sent within a given time span. Please reload this page again in a few seconds.","google-site-kit")}if(e&&e.errors){var n=Object.values(e.errors);if(n[0]&&n[0][0])return n[0][0]}return!!(e.code&&e.message&&e.data&&e.data.status)&&e.message},d=n.reduce((function(e,t){return _()(t.context).forEach((function(n){e[n]=e[n]||[],e[n].push(t)})),e}),{}),f=function(n){p()(NewComponent,n);var f=I(NewComponent);function NewComponent(e){var t;return l()(this,NewComponent),(t=f.call(this,e)).state={data:!1,zeroData:!1,errorMessage:!1,moduleRequiringSetup:""},t.handleModuleDataReset=t.handleModuleDataReset.bind(g()(t)),t.handleReturnedData=t.handleReturnedData.bind(g()(t)),t.addDataRequests=t.addDataRequests.bind(g()(t)),t.removeDataRequests=t.removeDataRequests.bind(g()(t)),t}return u()(NewComponent,[{key:"componentDidMount",value:function(){Object(j.a)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.addDataRequests()}},{key:"componentWillUnmount",value:function(){Object(j.f)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.removeDataRequests()}},{key:"handleModuleDataReset",value:function(){this.removeDataRequests(),this.addDataRequests(),this.setState({data:!1,errorMessage:!1,zeroData:!1})}},{key:"addDataRequests",value:function(){var e=this,t=this.props.dateRange;Object.entries(d).forEach((function(n){var r=o()(n,2),a=r[0],i=r[1];Object(j.b)("googlesitekit.module".concat(a,"DataRequest"),"googlesitekit.withData.".concat(W(i)),(function(n){var r,a=Object(C.i)(),o=[],c=T(i);try{var l=function(){var n,i,c=r.value,l=c||{},s=l.type,u=l.identifier;if(x.b===s&&!(null===(n=a[u])||void 0===n?void 0:n.setupComplete))return e.setState({moduleRequiringSetup:u,moduleRequiringActivation:!(null===(i=a[u])||void 0===i?void 0:i.active)}),"continue";var d=Object(L.a)(c,t);d.callback=function(t){e.handleReturnedData(t,c)},o.push(d)};for(c.s();!(r=c.n()).done;)l()}catch(e){c.e(e)}finally{c.f()}return n.concat(o)}))}))}},{key:"removeDataRequests",value:function(){Object.entries(d).forEach((function(e){var t=o()(e,2),n=t[0],r=t[1];Object(j.g)("googlesitekit.module".concat(n,"DataRequest"),"googlesitekit.withData.".concat(W(r)))}))}},{key:"handleReturnedData",value:function(e,t){var n=this.props,r=n.handleDataError,a=n.handleDataSuccess,i=t.datapoint,o=t.identifier,l=t.toState,u=s(e);u?(this.setState({errorMessage:u,errorObj:e,module:o}),r&&r(u,e)):c(e,i,t)?(r&&r(u,e),this.setState({zeroData:!0})):a&&a(),this.setState({requestDataToState:l,data:e,datapoint:i,module:o})}},{key:"render",value:function(){var n=this.state,o=n.data,c=n.datapoint,l=n.module,s=n.zeroData,u=n.errorMessage,d=n.errorObj,g=n.requestDataToState,f=n.moduleRequiringSetup;if(n.moduleRequiringActivation)return Object(A.b)(f,i.inGrid,i.fullWidth,i.createGrid);if(f)return Object(A.a)(f,i.inGrid,i.fullWidth,i.createGrid);if(!o)return r;if(u)return"string"!=typeof u?u:Object(R.a)(l,u,i.inGrid,i.fullWidth,i.createGrid,d);if(s){var p,m=(null===(p=Object(C.i)()[l])||void 0===p?void 0:p.name)||Object(S.__)("Site Kit","google-site-kit");return Object(N.a)(m,i.inGrid,i.fullWidth,i.createGrid)}return e.createElement(t,a()({data:o,datapoint:c,requestDataToState:g},this.props))}}]),NewComponent}(E.Component),m=t.displayName||t.name||"AnonymousComponent";return f.displayName="withData(".concat(m,")"),U((function(e){return{dateRange:e(P.a).getDateRange(),dateRangeLength:e(P.a).getDateRangeNumberOfDays()}}))(f)}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return i}));var r="Date param must construct to a valid date instance or be a valid date instance itself.",a="Invalid dateString parameter, it must be a string.",i='Invalid date range, it must be a string with the format "last-x-days".'},function(e,t,n){"use strict";(function(e){var r=n(25),a=n.n(r),i=n(26),o=n.n(i),c=n(8),l=n.n(c),s=n(1),u=n.n(s),d=n(157),g=n(2),f=n(19),p=Object(g.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,s=t.className,u=t.danger,p=t.disabled,m=t.target,h=t.icon,b=t.trailingIcon,v=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon"]),y=Object(g.useCallback)((function(e){null!==e&&f.i.attachTo(e)}),[]),_=Object(d.a)(n,y),O=i&&!p?"a":"button";return e.createElement(O,a()({className:l()("mdc-button",s,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:p?void 0:i,ref:_,disabled:!!p,target:m||"_self",role:"a"===O?"button":void 0},v),h,r&&e.createElement("span",{className:"mdc-button__label"},r),b)}));p.displayName="Button",p.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element},p.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null},t.a=p}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(53),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(r.a)(new Date(e))}},function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(7),o=n.n(i),c=n(14),l=n.n(c),s=n(15),u=n.n(s),d=n(16),g=n.n(d),f=n(49),p=n.n(f),m=n(21),h=n.n(m),b=n(22),v=n.n(b),y=n(13),_=n.n(y),O=n(1),k=n.n(O),j=n(8),E=n.n(j),S=n(23),D=n(2),w=n(144),C=n(75),N=n(38),R=n(40),A=n(43),x=n(170),P=n(185),L=n(24),T=n(137);function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_()(e);if(t){var a=_()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var I=function(t){h()(Notification,t);var n,r,i=M(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(D.createRef)(),t.handleDismiss=t.handleDismiss.bind(p()(t)),t.handleCTAClick=t.handleCTAClick.bind(p()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(N.f)("notification::displayed::".concat(t.props.id),new Date),t}return g()(Notification,[{key:"handleDismiss",value:(r=l()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(N.f)("notification::dismissed::".concat(e.props.id),new Date),t.style.display="none";var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=l()(o.a.mark((function e(t){var n,r,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,r=n.isDismissable,!(a=n.onCTAClick)){e.next=5;break}return e.next=5,a(t);case 5:r&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,r=Object(N.c)("notification::dismissed::".concat(t));if(r){var a=new Date(r);a.setSeconds(a.getSeconds()+parseInt(n,10)),a<new Date&&Object(N.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,r=this.props,i=r.children,o=r.id,c=r.className,l=r.title,s=r.description,u=r.blockData,d=r.WinImageSVG,g=r.SmallImageSVG,f=r.format,p=r.learnMoreURL,m=r.learnMoreDescription,h=r.learnMoreLabel,b=r.ctaLink,v=r.ctaLabel,y=r.ctaTarget,_=r.type,O=r.dismiss,k=r.isDismissable,j=r.logo,M=r.module,I=r.moduleName,U=r.pageIndex,W=r.anchorLink,z=r.anchorLinkLabel;if(Object(N.c)("notification::dismissed::".concat(o)))return null;var F,q=n?"is-closed":"is-open",H="large"===f&&"win-stats-increase"===_,G="mdc-layout-grid__cell--span-12";"large"===f?(G="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",H&&(G="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===f&&(G="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),F="win-warning"===_?e.createElement(x.a,null):"win-error"===_?e.createElement(P.a,null):"";var V=e.createElement(D.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(S.map)(u,(function(t,n){return e.createElement("div",{key:n,className:E()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":H,"mdc-layout-grid__cell--span-4-desktop":!H})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(R.a,t)))})))),B=e.createElement(D.Fragment,null,l&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},l),W&&z&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(L.a,{href:W},z)),s&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(D.isValidElement)(s)?s:e.createElement("span",{dangerouslySetInnerHTML:Object(C.a)(s,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),h&&e.createElement(D.Fragment,null," ",e.createElement(L.a,{href:p,external:!0,inherit:!0},h),m),U&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},U))),i),$=M?e.createElement(T.a,{slug:M,size:19}):e.createElement(w.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:E()(c,"googlesitekit-publisher-win",(t={},a()(t,"googlesitekit-publisher-win--".concat(f),f),a()(t,"googlesitekit-publisher-win--".concat(_),_),a()(t,"googlesitekit-publisher-win--".concat(q),q),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},j&&e.createElement("div",{className:E()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":H,"mdc-layout-grid__cell--order-1-tablet":H})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},$),I&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},I)),g&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(g,null)),e.createElement("div",{className:E()("mdc-layout-grid__cell",G)},H?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},B),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},V)):e.createElement(D.Fragment,null,B,V),b&&e.createElement(A.a,{className:"googlesitekit-notification__cta",href:b,target:y,onClick:this.handleCTAClick},v),k&&O&&e.createElement(L.a,{onClick:this.handleDismiss},O)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(d,null))),("win-error"===_||"win-warning"===_)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},F)))))}}]),Notification}(D.Component);I.propTypes={id:k.a.string.isRequired,className:k.a.string,title:k.a.string.isRequired,description:k.a.node,learnMoreURL:k.a.string,learnMoreDescription:k.a.string,learnMoreLabel:k.a.string,blockData:k.a.array,WinImageSVG:k.a.elementType,SmallImageSVG:k.a.elementType,format:k.a.string,ctaLink:k.a.string,ctaLabel:k.a.string,type:k.a.string,dismiss:k.a.string,isDismissable:k.a.bool,logo:k.a.bool,module:k.a.string,moduleName:k.a.string,pageIndex:k.a.string,dismissExpires:k.a.number,showOnce:k.a.bool,onCTAClick:k.a.func,onDismiss:k.a.func,anchorLink:k.a.string,anchorLinkLabel:k.a.string},I.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=I}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r,a=n(15),i=n.n(a),o=n(16),c=n.n(o),l=function(t){var n=e[t];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return r||(r=l("sessionStorage")?e.sessionStorage:l("localStorage")?e.localStorage:new s),r}}).call(this,n(18))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r.b})),n.d(t,"b",(function(){return r.c})),n.d(t,"e",(function(){return a.a})),n.d(t,"f",(function(){return i.a})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return l.a})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return d}));var r=n(42),a=n(65),i=n(55),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t%7,r=0===n;if(r)return Object(i.a)(e,t);var a=t>7&&n<3,o=a?t-n:t+(7-n);return Object(i.a)(e,o)},c=(n(53),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}),l=n(45);function s(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var u=n(0);function d(){var e=function(e){return Object(u.sprintf)(
6
  /* translators: %s: number of days */
7
  Object(u._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,t){e.exports=googlesitekit.api},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/ui"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/location"},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(11),a=n.n(r),i=n(10),o=n.n(i),c=n(42),l=n(65),s=n(45),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;o()(Object(s.a)(e),c.c);var n=e.split("-"),r=a()(n,3),i=r[0],u=r[1],d=r[2],g=new Date(i,u-1,d);return g.setDate(g.getDate()-t),Object(l.a)(g)}},function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){var r=n(1),a=n.n(r),i=n(8),o=n.n(i),c=n(24),l=function CTA(t){var n=t.title,r=t.description,a=t.ctaLink,i=t.ctaLabel,l=t.error,s=t.onClick,u=t["aria-label"];return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":l})},n&&e.createElement("h3",{className:"googlesitekit-cta__title"},n),r&&"string"==typeof r&&e.createElement("p",{className:"googlesitekit-cta__description"},r),r&&"string"!=typeof r&&e.createElement("div",