1/*! For license information please see 8906-f10b9b1464f30e0f324f.js.LICENSE.txt */ 2(self.webpackChunkmkbservicedesk_gatsby=self.webpackChunkmkbservicedesk_gatsby||[]).push([[8906],{8906:function(e,t,n){"use strict";var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function i(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(t){a(t)}}function s(e){try{u(r.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}var o=n(6199),s=n(5319);var u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u.apply(this,arguments)};function c(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(t){a(t)}}function s(e){try{u(r.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}var p,h=n(6336),v=n(1588),m="0.4.17",g=1e4,b="w:"+m,y="FIS_v2",w="https://firebaseinstallations.googleapis.com/v1",I=36e5,_=((p={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',p["not-registered"]="Firebase Installation is not registered.",p["installation-not-found"]="Firebase Installation not found.",p["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',p["app-offline"]="Could not process request. Application offline.",p["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",p),E=new h.ErrorFactory("installations","Installations",_);function T(e){return e instanceof h.FirebaseError&&e.code.includes("request-failed")}function S(e){var t=e.projectId;return w+"/projects/"+t+"/installations"}
2function C(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}function k(e,t){return c(this,void 0,void 0,(function(){var n,r;return l(this,(function(i){switch(i.label){case 0:return[4,t.json()];case 1:return n=i.sent(),r=n.error,[2,E.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})]}}))}))}function x(e){var t=e.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function P(e,t){var n=t.refreshToken,r=x(e);return r.append("Authorization",function(e){return y+" "+e}(n)),r}function D(e){return c(this,void 0,void 0,(function(){var t;return l(this,(function(n){switch(n.label){case 0:return[4,e()];case 1:return(t=n.sent()).status>=500&&t.status<600?[2,e()]:[2,t]}}))}))}function N(e,t){var n=t.fid;return c(this,void 0,void 0,(function(){var t,r,i,a,o,s;return l(this,(function(u){switch(u.label){case 0:return t=S(e),r=x(e),i={fid:n,authVersion:y,appId:e.appId,sdkVersion:b},a={method:"POST",headers:r,body:JSON.stringify(i)},[4,D((function(){return fetch(t,a)}))];case 1:return(o=u.sent()).ok?[4,o.json()]:[3,3];case 2:return s=u.sent(),[2,{fid:s.fid||n,registrationStatus:2,refreshToken:s.refreshToken,authToken:C(s.authToken)}];case 3:return[4,k("Create Installation",o)];case 4:throw u.sent()}}))}))}function A(e){return new Promise((function(t){setTimeout(t,e)}))}function O(e){var t=btoa(String.fromCharCode.apply(String,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e}(e)));return t.replace(/\+/g,"-").replace(/\//g,"_")}var j=/^[cdef][\w-]{21}$/,F="";function M(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var t=function(e){var t=O(e);return t.substr(0,22)}(e);return j.test(t)?t:F}catch(p){return F}}function q(e){return e.appName+"!"+e.appId}var B=new Map;function L(e,t){var n=q(e);R(n,t),function(e,t){var n=K();n&&n.postMessage({key:e,fid:t});G()}(n,t)}function R(e,t){var n,r,i=B.get(e);if(i)try{for(var a=f(i),o=a.next();!o.done;o=a.next()){(0,o.value)(t)}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}var V=null;function K(){return!V&&"BroadcastChannel"in self&&((V=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){R(e.data.key,e.data.fid)}),V}function G(){0===B.size&&V&&(V.close(),V=null)}var U,$="firebase-installations-database",z=1,H="firebase-installations-store",W=null;function J(){return W||(W=(0,v.openDb)($,z,(function(e){if(0===e.oldVersion)e.createObjectStore(H)}))),W}function X(e,t){return c(this,void 0,void 0,(function(){var n,r,i,a,o;return l(this,(function(s){switch(s.label){case 0:return n=q(e),[4,J()];case 1:return r=s.sent(),i=r.transaction(H,"readwrite"),[4,(a=i.objectStore(H)).get(n)];case 2:return o=s.sent(),[4,a.put(t,n)];case 3:return s.sent(),[4,i.complete];case 4:return s.sent(),o&&o.fid===t.fid||L(e,t.fid),[2,t]}}))}))}function Y(e){return c(this,void 0,void 0,(function(){var t,n,r;return l(this,(function(i){switch(i.label){case 0:return t=q(e),[4,J()];case 1:return n=i.sent(),[4,(r=n.transaction(H,"readwrite")).objectStore(H).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function Q(e,t){return c(this,void 0,void 0,(function(){var n,r,i,a,o,s;return l(this,(function(u){switch(u.label){case 0:return n=q(e),[4,J()];case 1:return r=u.sent(),i=r.transaction(H,"readwrite"),[4,(a=i.objectStore(H)).get(n)];case 2:return o=u.sent(),void 0!==(s=t(o))?[3,4]:[4,a.delete(n)];case 3:return u.sent(),[3,6];case 4:return[4,a.put(s,n)];case 5:u.sent(),u.label=6;case 6:return[4,i.complete];case 7:return u.sent(),!s||o&&o.fid===s.fid||L(e,s.fid),[2,s]}}))}))}function Z(e){return c(this,void 0,void 0,(function(){var t,n,r;return l(this,(function(i){switch(i.label){case 0:return[4,Q(e,(function(n){var r=function(e){var t=e||{fid:M(),registrationStatus:0};return ne(t)}(n),i=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(E.create("app-offline"))};var n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=function(e,t){return c(this,void 0,void 0,(function(){var n,r;return l(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,N(e,t)];case 1:return n=i.sent(),[2,X(e,n)];case 2:return T(r=i.sent())&&409===r.serverCode?[4,Y(e)]:[3,4];case 3:return i.sent(),[3,6];case 4:return[4,X(e,{fid:t.fid,registrationStatus:0})];case 5:i.sent(),i.label=6;case 6:throw r;case 7:return[2]}}
2))}))}(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:ee(e)}:{installationEntry:t}}(e,r);return t=i.registrationPromise,i.installationEntry}))];case 1:return(n=i.sent()).fid!==F?[3,3]:(r={},[4,t]);case 2:return[2,(r.installationEntry=i.sent(),r)];case 3:return[2,{installationEntry:n,registrationPromise:t}]}}))}))}function ee(e){return c(this,void 0,void 0,(function(){var t,n,r,i;return l(this,(function(a){switch(a.label){case 0:return[4,te(e)];case 1:t=a.sent(),a.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,A(100)];case 3:return a.sent(),[4,te(e)];case 4:return t=a.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,Z(e)];case 6:return n=a.sent(),r=n.installationEntry,(i=n.registrationPromise)?[2,i]:[2,r];case 7:return[2,t]}}))}))}function te(e){return Q(e,(function(e){if(!e)throw E.create("installation-not-found");return ne(e)}))}function ne(e){return 1===(t=e).registrationStatus&&t.registrationTime+g<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}function re(e,t){var n=e.appConfig,r=e.platformLoggerProvider;return c(this,void 0,void 0,(function(){var e,i,a,o,s,u,c;return l(this,(function(l){switch(l.label){case 0:return e=function(e,t){var n=t.fid;return S(e)+"/"+n+"/authTokens:generate"}(n,t),i=P(n,t),(a=r.getImmediate({optional:!0}))&&i.append("x-firebase-client",a.getPlatformInfoString()),o={installation:{sdkVersion:b}},s={method:"POST",headers:i,body:JSON.stringify(o)},[4,D((function(){return fetch(e,s)}))];case 1:return(u=l.sent()).ok?[4,u.json()]:[3,3];case 2:return c=l.sent(),[2,C(c)];case 3:return[4,k("Generate Auth Token",u)];case 4:throw l.sent()}}))}))}function ie(e,t){return void 0===t&&(t=!1),c(this,void 0,void 0,(function(){var n,r,i;return l(this,(function(a){switch(a.label){case 0:return[4,Q(e.appConfig,(function(r){if(!oe(r))throw E.create("not-registered");var i=r.authToken;if(!t&&function(e){return 2===e.requestStatus&&!function(e){var t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+I}(e)}(i))return r;if(1===i.requestStatus)return n=function(e,t){return c(this,void 0,void 0,(function(){var n,r;return l(this,(function(i){switch(i.label){case 0:return[4,ae(e.appConfig)];case 1:n=i.sent(),i.label=2;case 2:return 1!==n.authToken.requestStatus?[3,5]:[4,A(100)];case 3:return i.sent(),[4,ae(e.appConfig)];case 4:return n=i.sent(),[3,2];case 5:return 0===(r=n.authToken).requestStatus?[2,ie(e,t)]:[2,r]}}))}))}(e,t),r;if(!navigator.onLine)throw E.create("app-offline");var a=function(e){var t={requestStatus:1,requestTime:Date.now()};return u(u({},e),{authToken:t})}(r);return n=function(e,t){return c(this,void 0,void 0,(function(){var n,r,i;return l(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,8]),[4,re(e,t)];case 1:return n=a.sent(),i=u(u({},t),{authToken:n}),[4,X(e.appConfig,i)];case 2:return a.sent(),[2,n];case 3:return!T(r=a.sent())||401!==r.serverCode&&404!==r.serverCode?[3,5]:[4,Y(e.appConfig)];case 4:return a.sent(),[3,7];case 5:return i=u(u({},t),{authToken:{requestStatus:0}}),[4,X(e.appConfig,i)];case 6:a.sent(),a.label=7;case 7:throw r;case 8:return[2]}}
2))}))}(e,a),a}))];case 1:return r=a.sent(),n?[4,n]:[3,3];case 2:return i=a.sent(),[3,4];case 3:i=r.authToken,a.label=4;case 4:return[2,i]}}))}))}function ae(e){return Q(e,(function(e){if(!oe(e))throw E.create("not-registered");var t,n=e.authToken;return 1===(t=n).requestStatus&&t.requestTime+g<Date.now()?u(u({},e),{authToken:{requestStatus:0}}):e}))}function oe(e){return void 0!==e&&2===e.registrationStatus}function se(e){return c(this,void 0,void 0,(function(){var t;return l(this,(function(n){switch(n.label){case 0:return[4,Z(e)];case 1:return(t=n.sent().registrationPromise)?[4,t]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))}function ue(e,t){return c(this,void 0,void 0,(function(){var n,r,i,a;return l(this,(function(o){switch(o.label){case 0:return n=function(e,t){var n=t.fid;return S(e)+"/"+n}(e,t),r=P(e,t),i={method:"DELETE",headers:r},[4,D((function(){return fetch(n,i)}))];case 1:return(a=o.sent()).ok?[3,3]:[4,k("Delete Installation",a)];case 2:throw o.sent();case 3:return[2]}}))}))}function ce(e,t){var n=e.appConfig;return function(e,t){K();var n=q(e),r=B.get(n);r||(r=new Set,B.set(n,r)),r.add(t)}(n,t),function(){!function(e,t){var n=q(e),r=B.get(n);r&&(r.delete(t),0===r.size&&B.delete(n),G())}(n,t)}}function le(e){return E.create("missing-app-config-values",{valueName:e})}(U=o.default).INTERNAL.registerComponent(new s.Component("installations",(function(e){var t=e.getProvider("app").getImmediate(),n=function(e){var t,n;if(!e||!e.options)throw le("App Configuration");if(!e.name)throw le("App Name");try{for(var r=f(["projectId","apiKey","appId"]),i=r.next();!i.done;i=r.next()){var a=i.value;if(!e.options[a])throw le(a)}}catch(o){t={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),r={appConfig:n,platformLoggerProvider:e.getProvider("platform-logger")},i={app:t,getId:function(){return function(e){return c(this,void 0,void 0,(function(){var t,n,r;return l(this,(function(i){switch(i.label){case 0:return[4,Z(e.appConfig)];case 1:return t=i.sent(),n=t.installationEntry,(r=t.registrationPromise)?r.catch(console.error):ie(e).catch(console.error),[2,n.fid]}}))}))}(r)},getToken:function(e){return function(e,t){return void 0===t&&(t=!1),c(this,void 0,void 0,(function(){return l(this,(function(n){switch(n.label){case 0:return[4,se(e.appConfig)];case 1:return n.sent(),[4,ie(e,t)];case 2:return[2,n.sent().token]}}))}))}(r,e)},delete:function(){return function(e){return c(this,void 0,void 0,(function(){var t,n;return l(this,(function(r){switch(r.label){case 0:return[4,Q(t=e.appConfig,(function(e){if(!e||0!==e.registrationStatus)return e}))];case 1:if(!(n=r.sent()))return[3,6];if(1!==n.registrationStatus)return[3,2];throw E.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw E.create("app-offline");case 3:return[4,ue(t,n)];case 4:return r.sent(),[4,Y(t)];case 5:r.sent(),r.label=6;case 6:return[2]}}
2))}))}(r)},onIdChange:function(e){return ce(r,e)}};return i}),"PUBLIC")),U.registerVersion("@firebase/installations",m);var fe,de,pe=n(2477),he="firebase_id",ve="origin",me=6e4,ge="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",be="https://www.googletagmanager.com/gtag/js";!function(e){e.EVENT="event",e.SET="set",e.CONFIG="config"}(fe||(fe={})),function(e){e.ADD_SHIPPING_INFO="add_shipping_info",e.ADD_PAYMENT_INFO="add_payment_info",e.ADD_TO_CART="add_to_cart",e.ADD_TO_WISHLIST="add_to_wishlist",e.BEGIN_CHECKOUT="begin_checkout",e.CHECKOUT_PROGRESS="checkout_progress",e.EXCEPTION="exception",e.GENERATE_LEAD="generate_lead",e.LOGIN="login",e.PAGE_VIEW="page_view",e.PURCHASE="purchase",e.REFUND="refund",e.REMOVE_FROM_CART="remove_from_cart",e.SCREEN_VIEW="screen_view",e.SEARCH="search",e.SELECT_CONTENT="select_content",e.SELECT_ITEM="select_item",e.SELECT_PROMOTION="select_promotion",e.SET_CHECKOUT_OPTION="set_checkout_option",e.SHARE="share",e.SIGN_UP="sign_up",e.TIMING_COMPLETE="timing_complete",e.VIEW_CART="view_cart",e.VIEW_ITEM="view_item",e.VIEW_ITEM_LIST="view_item_list",e.VIEW_PROMOTION="view_promotion",e.VIEW_SEARCH_RESULTS="view_search_results"}(de||(de={}));var ye,we=new pe.Logger("@firebase/analytics");function Ie(e,t,n,r,o,s){return i(this,void 0,void 0,(function(){var i,u,c,l;return a(this,(function(a){switch(a.label){case 0:i=r[o],a.label=1;case 1:return a.trys.push([1,7,,8]),i?[4,t[i]]:[3,3];case 2:return a.sent(),[3,6];case 3:return[4,Promise.all(n)];case 4:return u=a.sent(),(c=u.find((function(e){return e.measurementId===o})))?[4,t[c.appId]]:[3,6];case 5:a.sent(),a.label=6;case 6:return[3,8];case 7:return l=a.sent(),we.error(l),[3,8];case 8:return e(fe.CONFIG,o,s),[2]}}))}))}function _e(e,t,n,r,o){return i(this,void 0,void 0,(function(){var i,s,u,c,l,f,d,p;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,4,,5]),i=[],o&&o.send_to?(s=o.send_to,Array.isArray(s)||(s=[s]),[4,Promise.all(n)]):[3,2];case 1:for(u=a.sent(),c=function(e){var n=u.find((function(t){return t.measurementId===e})),r=n&&t[n.appId];if(!r)return i=[],"break";i.push(r)},l=0,f=s;l<f.length&&(d=f[l],"break"!==c(d));l++);a.label=2;case 2:return 0===i.length&&(i=Object.values(t)),[4,Promise.all(i)];case 3:return a.sent(),e(fe.EVENT,r,o||{}),[3,5];case 4:return p=a.sent(),we.error(p),[3,5];case 5:return[2]}}
2))}))}function Ee(e,t,n,r,o){var s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];window[r].push(arguments)};return window[o]&&"function"==typeof window[o]&&(s=window[o]),window[o]=function(e,t,n,r){return function(o,s,u){return i(this,void 0,void 0,(function(){var i;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,6,,7]),o!==fe.EVENT?[3,2]:[4,_e(e,t,n,s,u)];case 1:return a.sent(),[3,5];case 2:return o!==fe.CONFIG?[3,4]:[4,Ie(e,t,n,r,s,u)];case 3:return a.sent(),[3,5];case 4:e(fe.SET,s),a.label=5;case 5:return[3,7];case 6:return i=a.sent(),we.error(i),[3,7];case 7:return[2]}}))}))}}(s,e,t,n),{gtagCore:s,wrappedGtag:window[o]}}var Te=((ye={})["already-exists"]="A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.",ye["already-initialized"]="Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",ye["interop-component-reg-failed"]="Firebase Analytics Interop Component failed to instantiate: {$reason}",ye["invalid-analytics-context"]="Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",ye["indexeddb-unavailable"]="IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",ye["fetch-throttle"]="The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.",ye["config-fetch-failed"]="Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}",ye["no-api-key"]='The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',ye["no-app-id"]='The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',ye),Se=new h.ErrorFactory("analytics","Analytics",Te),Ce=30,ke=new(function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t=1e3),this.throttleMetadata=e,this.intervalMillis=t}return e.prototype.getThrottleMetadata=function(e){return this.throttleMetadata[e]},e.prototype.setThrottleMetadata=function(e,t){this.throttleMetadata[e]=t},e.prototype.deleteThrottleMetadata=function(e){delete this.throttleMetadata[e]},e}());function xe(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}function Pe(e){var t;return i(this,void 0,void 0,(function(){var n,r,i,o,s,u,c;return a(this,(function(a){switch(a.label){case 0:return n=e.appId,r=e.apiKey,i={method:"GET",headers:xe(r)},o=ge.replace("{app-id}",n),[4,fetch(o,i)];case 1:if(200===(s=a.sent()).status||304===s.status)return[3,6];u="",a.label=2;case 2:return a.trys.push([2,4,,5]),[4,s.json()];case 3:return c=a.sent(),(null===(t=c.error)||void 0===t?void 0:t.message)&&(u=c.error.message),[3,5];case 4:return a.sent(),[3,5];case 5:throw Se.create("config-fetch-failed",{httpStatus:s.status,responseMessage:u});case 6:return[2,s.json()]}}))}))}function De(e,t,n,r){var o=t.throttleEndTimeMillis,s=t.backoffCount;return void 0===r&&(r=ke),i(this,void 0,void 0,(function(){var t,i,u,c,l,f,d;return a(this,(function(a){switch(a.label){case 0:t=e.appId,i=e.measurementId,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,Ne(n,o)];case 2:return a.sent(),[3,4];case 3:if(u=a.sent(),i)return we.warn("Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID "+i+' provided in the "measurementId" field in the local Firebase config. ['+u.message+"]"),[2,{appId:t,measurementId:i}];throw u;case 4:return a.trys.push([4,6,,7]),[4,Pe(e)];case 5:return c=a.sent(),r.deleteThrottleMetadata(t),[2,c];case 6:if(!function(e){if(!(e instanceof h.FirebaseError))return!1;var t=Number(e.httpStatus);return 429===t||500===t||503===t||504===t}(l=a.sent())){if(r.deleteThrottleMetadata(t),i)return we.warn("Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID "+i+' provided in the "measurementId" field in the local Firebase config. ['+l.message+"]"),[2,{appId:t,measurementId:i}];throw l}return f=503===Number(l.httpStatus)?(0,h.calculateBackoffMillis)(s,r.intervalMillis,Ce):(0,h.calculateBackoffMillis)(s,r.intervalMillis),d={throttleEndTimeMillis:Date.now()+f,backoffCount:s+1},r.setThrottleMetadata(t,d),we.debug("Calling attemptFetch again in "+f+" millis"),[2,De(e,d,n,r)];case 7:return[2]}}
2))}))}function Ne(e,t){return new Promise((function(n,r){var i=Math.max(t-Date.now(),0),a=setTimeout(n,i);e.addEventListener((function(){clearTimeout(a),r(Se.create("fetch-throttle",{throttleEndTimeMillis:t}))}))}))}var Ae=function(){function e(){this.listeners=[]}return e.prototype.addEventListener=function(e){this.listeners.push(e)},e.prototype.abort=function(){this.listeners.forEach((function(e){return e()}))},e}();function Oe(e,t,n,r,o){return i(this,void 0,void 0,(function(){var s,u,c,l,f,d,p;return a(this,(function(v){switch(v.label){case 0:return s=function(e,t,n){return void 0===t&&(t=ke),i(this,void 0,void 0,(function(){var r,o,s,u,c,l,f=this;return a(this,(function(d){if(r=e.options,o=r.appId,s=r.apiKey,u=r.measurementId,!o)throw Se.create("no-app-id");if(!s){if(u)return[2,{measurementId:u,appId:o}];throw Se.create("no-api-key")}return c=t.getThrottleMetadata(o)||{backoffCount:0,throttleEndTimeMillis:Date.now()},l=new Ae,setTimeout((function(){return i(f,void 0,void 0,(function(){return a(this,(function(e){return l.abort(),[2]}))}))}),void 0!==n?n:me),[2,De({appId:o,apiKey:s,measurementId:u},c,l,t)]}))}))}(e),s.then((function(t){n[t.measurementId]=t.appId,e.options.measurementId&&t.measurementId!==e.options.measurementId&&we.warn("The measurement ID in the local Firebase config ("+e.options.measurementId+") does not match the measurement ID fetched from the server ("+t.measurementId+"). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.")})).catch((function(e){return we.error(e)})),t.push(s),u=function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return(0,h.isIndexedDBAvailable)()?[3,1]:(we.warn(Se.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),[2,!1]);case 1:return t.trys.push([1,3,,4]),[4,(0,h.validateIndexedDBOpenable)()];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),we.warn(Se.create("indexeddb-unavailable",{errorInfo:e}).message),[2,!1];case 4:return[2,!0]}}))}))}().then((function(e){return e?r.getId():void 0})),[4,Promise.all([s,u])];case 1:return c=v.sent(),l=c[0],f=c[1],o("js",new Date),(p={})[ve]="firebase",p.update=!0,d=p,null!=f&&(d[he]=f),o(fe.CONFIG,l.measurementId,d),[2,l.measurementId]}}))}))}var je,Fe,Me={},qe=[],Be={},Le="dataLayer",Re="gtag",Ve=!1;function Ke(e){if(Ve)throw Se.create("already-initialized");e.dataLayerName&&(Le=e.dataLayerName),e.gtagName&&(Re=e.gtagName)}function Ge(e,t){!function(){var e=[];if((0,h.isBrowserExtension)()&&e.push("This is a browser extension environment."),(0,h.areCookiesEnabled)()||e.push("Cookies are not available."),e.length>0){var t=e.map((function(e,t){return"("+(t+1)+") "+e})).join(" "),n=Se.create("invalid-analytics-context",{errorInfo:t});we.warn(n.message)}}();var n=e.options.appId;if(!n)throw Se.create("no-app-id");if(!e.options.apiKey){if(!e.options.measurementId)throw Se.create("no-api-key");we.warn('The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID '+e.options.measurementId+' provided in the "measurementId" field in the local Firebase config.')}if(null!=Me[n])throw Se.create("already-exists",{id:n});if(!Ve){(function(){for(var e=window.document.getElementsByTagName("script"),t=0,n=Object.values(e);t<n.length;t++){var r=n[t];if(r.src&&r.src.includes(be))return r}return null})()||function(e){var t=document.createElement("script");t.src=be+"?l="+e,t.async=!0,document.head.appendChild(t)}(Le),function(e){var t=[];Array.isArray(window[e])?t=window[e]:window[e]=t}(Le);var o=Ee(Me,qe,Be,Le,Re),s=o.wrappedGtag,u=o.gtagCore;Fe=s,je=u,Ve=!0}Me[n]=Oe(e,qe,Be,t,je);var c={app:e,logEvent:function(e,t,o){(function(e,t,n,o,s){return i(this,void 0,void 0,(function(){var i,u;return a(this,(function(a){switch(a.label){case 0:return s&&s.global?(e(fe.EVENT,n,o),[2]):[3,1];case 1:return[4,t];case 2:i=a.sent(),u=r(r({},o),{send_to:i}),e(fe.EVENT,n,u),a.label=3;case 3:return[2]}}
2))}))})(Fe,Me[n],e,t,o).catch((function(e){return we.error(e)}))},setCurrentScreen:function(e,t){(function(e,t,n,r){return i(this,void 0,void 0,(function(){var i;return a(this,(function(a){switch(a.label){case 0:return r&&r.global?(e(fe.SET,{screen_name:n}),[2,Promise.resolve()]):[3,1];case 1:return[4,t];case 2:i=a.sent(),e(fe.CONFIG,i,{update:!0,screen_name:n}),a.label=3;case 3:return[2]}}))}))})(Fe,Me[n],e,t).catch((function(e){return we.error(e)}))},setUserId:function(e,t){(function(e,t,n,r){return i(this,void 0,void 0,(function(){var i;return a(this,(function(a){switch(a.label){case 0:return r&&r.global?(e(fe.SET,{user_id:n}),[2,Promise.resolve()]):[3,1];case 1:return[4,t];case 2:i=a.sent(),e(fe.CONFIG,i,{update:!0,user_id:n}),a.label=3;case 3:return[2]}}))}))})(Fe,Me[n],e,t).catch((function(e){return we.error(e)}))},setUserProperties:function(e,t){(function(e,t,n,r){return i(this,void 0,void 0,(function(){var i,o,s,u,c;return a(this,(function(a){switch(a.label){case 0:if(!r||!r.global)return[3,1];for(i={},o=0,s=Object.keys(n);o<s.length;o++)u=s[o],i["user_properties."+u]=n[u];return e(fe.SET,i),[2,Promise.resolve()];case 1:return[4,t];case 2:c=a.sent(),e(fe.CONFIG,c,{update:!0,user_properties:n}),a.label=3;case 3:return[2]}}
2))}))})(Fe,Me[n],e,t).catch((function(e){return we.error(e)}))},setAnalyticsCollectionEnabled:function(e){(function(e,t){return i(this,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return[4,e];case 1:return n=r.sent(),window["ga-disable-"+n]=!t,[2]}}))}))})(Me[n],e).catch((function(e){return we.error(e)}))},INTERNAL:{delete:function(){return delete Me[n],Promise.resolve()}}};return c}var Ue="analytics";function $e(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:if((0,h.isBrowserExtension)())return[2,!1];if(!(0,h.areCookiesEnabled)())return[2,!1];if(!(0,h.isIndexedDBAvailable)())return[2,!1];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,(0,h.validateIndexedDBOpenable)()];case 2:return[2,e.sent()];case 3:return e.sent(),[2,!1];case 4:return[2]}}))}))}!function(e){e.INTERNAL.registerComponent(new s.Component(Ue,(function(e){return Ge(e.getProvider("app").getImmediate(),e.getProvider("installations").getImmediate())}),"PUBLIC").setServiceProps({settings:Ke,EventName:de,isSupported:$e})),e.INTERNAL.registerComponent(new s.Component("analytics-internal",(function(e){try{return{logEvent:e.getProvider(Ue).getImmediate().logEvent}}catch(t){throw Se.create("interop-component-reg-failed",{reason:t})}}),"PRIVATE")),e.registerVersion("@firebase/analytics","0.6.0")}(o.default)},1588:function(e,t){!function(e){"use strict";function t(e){return Array.prototype.slice.call(e)}function n(e){return new Promise((function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function r(e,t,r){var i,a=new Promise((function(a,o){n(i=e[t].apply(e,r)).then(a,o)}));return a.request=i,a}function i(e,t,n){var i=r(e,t,n);return i.then((function(e){if(e)return new l(e,i.request)}))}function a(e,t,n){n.forEach((function(n){Object.defineProperty(e.prototype,n,{get:function(){return this[t][n]},set:function(e){this[t][n]=e}})}))}function o(e,t,n,i){i.forEach((function(i){i in n.prototype&&(e.prototype[i]=function(){return r(this[t],i,arguments)})}))}function s(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return this[t][r].apply(this[t],arguments)})}))}function u(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return i(this[t],r,arguments)})}))}function c(e){this._index=e}function l(e,t){this._cursor=e,this._request=t}function f(e){this._store=e}function d(e){this._tx=e,this.complete=new Promise((function(t,n){e.oncomplete=function(){t()},e.onerror=function(){n(e.error)},e.onabort=function(){n(e.error)}}))}function p(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new d(n)}function h(e){this._db=e}function v(e,t,n){var i=r(indexedDB,"open",[e,t]),a=i.request;return a&&(a.onupgradeneeded=function(e){n&&n(new p(a.result,e.oldVersion,a.transaction))}),i.then((function(e){return new h(e)}))}function m(e){return r(indexedDB,"deleteDatabase",[e])}a(c,"_index",["name","keyPath","multiEntry","unique"]),o(c,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),u(c,"_index",IDBIndex,["openCursor","o
2penKeyCursor"]),a(l,"_cursor",["direction","key","primaryKey","value"]),o(l,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach((function(e){e in IDBCursor.prototype&&(l.prototype[e]=function(){var t=this,r=arguments;return Promise.resolve().then((function(){return t._cursor[e].apply(t._cursor,r),n(t._request).then((function(e){if(e)return new l(e,t._request)}))}))})})),f.prototype.createIndex=function(){return new c(this._store.createIndex.apply(this._store,arguments))},f.prototype.index=function(){return new c(this._store.index.apply(this._store,arguments))},a(f,"_store",["name","keyPath","indexNames","autoIncrement"]),o(f,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),u(f,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),s(f,"_store",IDBObjectStore,["deleteIndex"]),d.prototype.objectStore=function(){return new f(this._tx.objectStore.apply(this._tx,arguments))},a(d,"_tx",["objectStoreNames","mode"]),s(d,"_tx",IDBTransaction,["abort"]),p.prototype.createObjectStore=function(){return new f(this._db.createObjectStore.apply(this._db,arguments))},a(p,"_db",["name","version","objectStoreNames"]),s(p,"_db",IDBDatabase,["deleteObjectStore","close"]),h.prototype.transaction=function(){return new d(this._db.transaction.apply(this._db,arguments))},a(h,"_db",["name","version","objectStoreNames"]),s(h,"_db",IDBDatabase,["close"]),["openCursor","o
2penKeyCursor"].forEach((function(e){[f,c].forEach((function(n){e in n.prototype&&(n.prototype[e.replace("open","iterate")]=function(){var n=t(arguments),r=n[n.length-1],i=this._store||this._index,a=i[e].apply(i,n.slice(0,-1));a.onsuccess=function(){r(a.result)}})}))})),[c,f].forEach((function(e){e.prototype.getAll||(e.prototype.getAll=function(e,t){var n=this,r=[];return new Promise((function(i){n.iterateCursor(e,(function(e){e?(r.push(e.value),void 0===t||r.length!=t?e.continue():i(r)):i(r)}))}))})})),e.openDb=v,e.deleteDb=m,Object.defineProperty(e,"__esModule",{value:!0})}(t)}}]); 3//# sourceMappingURL=8906-f10b9b1464f30e0f324f.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.