Ubuntu
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[12],{0:function(e,t){e.exports=googlesitekit.i18n},102:function(e,t,r){"use strict";function n(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'$1')}function o(e){return"".concat(e.replace(/\n{2,}/g,"
"),"
")}function i(e){return e.replace(/\n/gi,"
")}function a(e){for(var t=e,r=0,a=[n,o,i];r1&&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))},105: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(106),a=r(107);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;t1&&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(19))},106:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=r(67),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(19))},107: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(67),l=r(55);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;t3&&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(19))},4:function(e,t){e.exports=googlesitekit.data},43: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(54),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))}},47: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(19))},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(149),u=r.n(c),s=r(143),l=r.n(s),f=r(20),d=r(100),p=r(58);r.d(t,"w",(function(){return p.b}));var v=r(32),g=r(76);r.d(t,"t",(function(){return g.a})),r.d(t,"x",(function(){return g.b}));var b=r(71);r.d(t,"v",(function(){return b.a}));var y=r(86);r.d(t,"b",(function(){return y.b})),r.d(t,"j",(function(){return y.c}));r(47);var m=r(88);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(102);r.d(t,"p",(function(){return O.a}));var h=r(103);r.d(t,"c",(function(){return h.a}));r(50);var j=r(104);r.d(t,"f",(function(){return j.a})),r.d(t,"n",(function(){return j.b}));var w=r(99);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;t0&&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(19))},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(43),o=r(66),i=r(56),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(54),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)(
/* translators: %s: number of days */
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},54: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";(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(19))},56:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(12),o=r.n(n),i=r(10),a=r.n(i),c=r(43),u=r(66),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)}},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(105),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(19))},62: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(81),l=r.n(s),f=r(75),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;t1?r-1:0),o=1;o2&&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(19))},66:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(10),o=r.n(n),i=r(43),a=r(54),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("-")}},67: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)}}},68: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))},71:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(33),o=r.n(n),i=r(98),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 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(98),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;t2&&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}}},76: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(108),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,/\/+$/,"")}},86: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(12),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);r0&&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)(
/* translators: %d is the number of notifications */
Object(i._n)("%d notification","%d notifications",e,"google-site-kit"),e),a.appendChild(c),a.appendChild(u),t&&null===n&&t.appendChild(a),r&&null===o&&r.appendChild(a),a},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;n1&&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=a(r.searchParams.entries());try{for(c.s();!(n=c.n()).done;){var u=o()(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(19))},87:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return o})),r.d(t,"c",(function(){return i}));var n=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},o=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("")}},88: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 O})),r.d(t,"a",(function(){return h}));var n=r(33),o=r.n(n),i=r(6),a=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;t1&&void 0!==arguments[1]?arguments[1]:{},r=v(e,t),n=r.formatUnit,o=r.formatDecimal;try{return n()}catch(e){return o()}},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),o=Math.floor(e%60);return{hours:r,minutes:n,seconds:o,formatUnit:function(){var i=t.unitDisplay,a=d(d({unitDisplay:void 0===i?"short":i},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?m(o,d(d({},a),{},{unit:"second"})):Object(l.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(l._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?m(o,d(d({},a),{},{unit:"second"})):"",n?m(n,d(d({},a),{},{unit:"minute"})):"",r?m(r,d(d({},a),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(l.sprintf)(// translators: %s number of seconds with "s" as the abbreviated unit.
Object(l.__)("%ds","google-site-kit"),o);if(0===e)return t;var i=Object(l.sprintf)(// translators: %s number of minutes with "m" as the abbreviated unit.
Object(l.__)("%dm","google-site-kit"),n),a=Object(l.sprintf)(// translators: %s number of hours with "h" as the abbreviated unit.
Object(l.__)("%dh","google-site-kit"),r);return Object(l.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(l._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?t:"",n?i:"",r?a:"").trim()}}},g=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},b=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(l.sprintf)(// translators: %s: an abbreviated number in millions.
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.
Object(l.__)("%sK","google-site-kit"),m(g(e))):1e3<=e?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
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,o()(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,a=void 0===i?"metric":i;return"metric"===a?b(e):"duration"===a?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?h():r,o=u()(t,["locale"]);return new Intl.NumberFormat(n,o).format(e)},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?h():r,o=t.style,i=void 0===o?"long":o,a=t.type,c=void 0===a?"conjunction":a;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:i,type:c});return u.format(e)}
/* translators: used between list items, there is a space after the comma. */var s=Object(l.__)(", ","google-site-kit");return e.join(s)},h=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(19))},969:function(e,t,r){"use strict";r.r(t);var n=r(4),o=r.n(n),i=r(7),a=r.n(i),c=r(6),u=r.n(c),s=r(51),l=r.n(s),f=r(17),d=r(62);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;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.url;S()(Object(k.a)(t),"a valid url is required to fetch HTML.")},controlCallback:(U=P()(a.a.mark((function e(t){var r,n,o,i,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.url,n={credentials:"omit"},o={tagverify:1,timestamp:Date.now()},e.next=5,fetch(Object(L.a)(r,o),n);case 5:return i=e.sent,e.prev=6,e.next=9,i.text();case 9:return c=e.sent,e.abrupt("return",void 0!==c?c:null);case 13:return e.prev=13,e.t0=e.catch(6),e.abrupt("return",null);case 16:case"end":return e.stop()}}),e,null,[[6,13]])}))),function(e){return U.apply(this,arguments)}),reducerCallback:function(e,t,r){var n=r.url;return x(x({},e),{},{htmlForURL:x(x({},e.htmlForURL),{},u()({},n,t))})}}),A={resetHTMLForURL:a.a.mark((function e(t){var r,n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.a.commonActions.getRegistry();case 2:return r=e.sent,n=r.dispatch,e.next=6,{payload:{url:t},type:"RESET_HTML_FOR_URL"};case 6:return e.abrupt("return",n(f.d).invalidateResolutionForStoreSelector("getHTMLForURL"));case 7:case"end":return e.stop()}}),e)})),checkForSetupTag:a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CHECK_FOR_SETUP_TAG"};case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})),waitForHTMLForURL:a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{url:t},type:"WAIT_FOR_HTML_FOR_URL"};case 2:case"end":return e.stop()}}),e)}))},I=(g={},u()(g,"WAIT_FOR_HTML_FOR_URL",N((function(e){return function(t){var r=t.payload.url;return e.__experimentalResolveSelect(f.d).getHTMLForURL(r)}}))),u()(g,"CHECK_FOR_SETUP_TAG",N((function(e){return P()(a.a.mark((function t(){var r,n,o,i,c,u,s,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=!1,t.prev=1,t.next=4,l.a.set("core","site","setup-tag");case 4:return c=t.sent,o=c.token,t.next=8,e.select(f.d).getHomeURL();case 8:return u=t.sent,t.next=11,e.dispatch(f.d).fetchGetHTMLForURL(u);case 11:s=t.sent,n=s.response,r=s.error,t.next=19;break;case 16:t.prev=16,t.t0=t.catch(1),r="check_fetch_failed";case 19:return r||(d=Object(_.a)(n,[/