PageSourceSearch

https://support.egpkenya.go.ke/static/deskpro-messenger-init/firebase-4F2JO35W.js

js egpkenya.go.ke collected 2026-10-07 19:16:01 UTC 49,703 bytes, 111 lines download raw bytes

vendor: 36,339 bytes, line 1
1var Ne=function(e){let t=[],n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},kt=function(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){let o=e[n++];t[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){let o=e[n++],s=e[n++],a=e[n++],c=((i&7)<<18|(o&63)<<12|(s&63)<<6|a&63)-65536;t[r++]=String.fromCharCode(55296+(c>>10)),t[r++]=String.fromCharCode(56320+(c&1023))}else{let o=e[n++],s=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}}return t.join("")},xe={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){let o=e[i],s=i+1<e.length,a=s?e[i+1]:0,c=i+2<e.length,f=c?e[i+2]:0,u=o>>2,C=(o&3)<<4|a>>4,x=(a&15)<<2|f>>6,R=f&63;c||(R=64,s||(x=64)),r.push(n[u],n[C],n[x],n[R])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(Ne(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):kt(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){let o=n[e.charAt(i++)],a=i<e.length?n[e.charAt(i)]:0;++i;let f=i<e.length?n[e.charAt(i)]:64;++i;let C=i<e.length?n[e.charAt(i)]:64;if(++i,o==null||a==null||f==null||C==null)throw new q;let x=o<<2|a>>4;if(r.push(x),f!==64){let R=a<<4&240|f>>2;if(r.push(R),C!==64){let Ct=f<<6&192|C;r.push(Ct)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},q=class extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}},Ot=function(e){let t=Ne(e);return xe.encodeByteArray(t,!0)},G=function(e){return Ot(e).replace(/\./g,"")},Nt=function(e){try{return xe.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function xt(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof global!="undefined")return global;throw new Error("Unable to locate global object.")}var Rt=()=>xt().__FIREBASE_DEFAULTS__,Mt=()=>{if(typeof process=="undefined"||typeof process.env=="undefined")return;let e=process.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},Bt=()=>{if(typeof document=="undefined")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}let t=e&&Nt(e[1]);return t&&JSON.parse(t)},Pt=()=>{try{return Rt()||Mt()||Bt()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}};var J=()=>{var e;return(e=Pt())===null||e===void 0?void 0:e.config};var M=class{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}};function B(){try{return typeof indexedDB=="object"}catch(e){return!1}}function P(){return new Promise((e,t)=>{try{let n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;t(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){t(n)}})}function Re(){return!(typeof navigator=="undefined"||!navigator.cookieEnabled)}var Lt="FirebaseError",p=class extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=Lt,Object.setPrototypeOf(this,p.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,b.prototype.create)}},b=class{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){let r=n[0]||{},i=`${this.service}/${t}`,o=this.errors[t],s=o?Ft(o,r):"Error",a=`${this.serviceName}: ${s} (${i}).`;return new p(i,a,r)}};function Ft(e,t){return e.replace(jt,(n,r)=>{let i=t[r];return i!=null?String(i):`<${r}?>`})}var jt=/\{\$([^}]+)}/g;function L(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);for(let i of n){if(!r.includes(i))return!1;let o=e[i],s=t[i];if(Oe(o)&&Oe(s)){if(!L(o,s))return!1}else if(o!==s)return!1}for(let i of r)if(!n.includes(i))return!1;return!0}function Oe(e){return e!==null&&typeof e=="object"}var di=4*60*60*1e3;function F(e){return e&&e._delegate?e._delegate:e}var h=class{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}};var E="[DEFAULT]";var Y=class{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){let n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){let r=new M;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{let i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch(i){}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;let r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),i=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(Ht(t))try{this.getOrInitializeService({instanceIdentifier:E})}catch(n){}for(let[n,r]of this.instancesDeferred.entries()){let i=this.normalizeInstanceIdentifier(n);try{let o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch(o){}}}}clearInstance(t=E){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){let t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=E){return this.instances.has(t)}getOptions(t=E){return this.instancesOptions.get(t)||{}}initialize(t={}){let{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(let[o,s]of this.instancesDeferred.entries()){let a=this.normalizeInstanceIdentifier(o);r===a&&s.resolve(i)}return i}onInit(t,n){var r;let i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(t),this.onInitCallbacks.set(i,o);let s=this.instances.get(i);return s&&t(s,i),()=>{o.delete(t)}}invokeOnInitCallbacks(t,n){let r=this.onInitCallbacks.get(n);if(!!r)for(let i of r)try{i(t,n)}catch(o){}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:$t(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch(i){}return r||null}normalizeInstanceIdentifier(t=E){return this.component?this.component.multipleInstances?t:E:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function $t(e){return e===E?void 0:e}function Ht(e){return e.instantiationMode==="EAGER"}var j=class{constructor(t){this.name=t,this.providers=new Map}addComponent(t){let n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);let n=new Y(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}};var Vt=[],d;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(d||(d={}));var Wt={debug:d.DEBUG,verbose:d.VERBOSE,info:d.INFO,warn:d.WARN,error:d.ERROR,silent:d.SILENT},Ut=d.INFO,zt={[d.DEBUG]:"log",[d.VERBOSE]:"log",[d.INFO]:"info",[d.WARN]:"warn",[d.ERROR]:"error"},Kt=(e,t,...n)=>{if(t<e.logLevel)return;let r=new Date().toISOString(),i=zt[t];if(i)console[i](`[${r}]  ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)},$=class{constructor(t){this.name=t,this._logLevel=Ut,this._logHandler=Kt,this._userLogHandler=null,Vt.push(this)}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in d))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?Wt[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,d.DEBUG,...t),this._logHandler(this,d.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,d.VERBOSE,...t),this._logHandler(this,d.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,d.INFO,...t),this._logHandler(this,d.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,d.WARN,...t),this._logHandler(this,d.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,d.ERROR,...t),this._logHandler(this,d.ERROR,...t)}};var qt=(e,t)=>t.some(n=>e instanceof n),Me,Be;function Gt(){return Me||(Me=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Jt(){return Be||(Be=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var Pe=new WeakMap,Q=new WeakMap,Le=new WeakMap,X=new WeakMap,ee=new WeakMap;function Yt(e){let t=new Promise((n,r)=>{let i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(g(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&Pe.set(n,e)}).catch(()=>{}),ee.set(t,e),t}function Xt(e){if(Q.has(e))return;let t=new Promise((n,r)=>{let i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});Q.set(e,t)}var Z={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Q.get(e);if(t==="objectStoreNames")return e.objectStoreNames||Le.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return g(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function Fe(e){Z=e(Z)}function Qt(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){let r=e.call(H(this),t,...n);return Le.set(r,t.sort?t.sort():[t]),g(r)}:Jt().includes(e)?function(...t){return e.apply(H(this),t),g(Pe.get(this))}:function(...t){return g(e.apply(H(this),t))}}function Zt(e){return typeof e=="function"?Qt(e):(e instanceof IDBTransaction&&Xt(e),qt(e,Gt())?new Proxy(e,Z):e)}function g(e){if(e instanceof IDBRequest)return Yt(e);if(X.has(e))return X.get(e);let t=Zt(e);return t!==e&&(X.set(e,t),ee.set(t,e)),t}var H=e=>ee.get(e);function I(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){let s=indexedDB.open(e,t),a=g(s);return r&&s.addEventListener("upgradeneeded",c=>{r(g(s.result),c.oldVersion,c.newVersion,g(s.transaction),c)}),n&&s.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),a.then(c=>{o&&c.addEventListener("close",()=>o()),i&&c.addEventListener("versionchange",f=>i(f.oldVersion,f.newVersion,f))}).catch(()=>{}),a}function V(e,{blocked:t}={}){let n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",r=>t(r.oldVersion,r)),g(n).then(()=>{})}var en=["get","getKey","getAll","getAllKeys","count"],tn=["put","add","delete","clear"],te=new Map;function je(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(te.get(t))return te.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=tn.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||en.includes(n)))return;let o=async function(s,...a){let c=this.transaction(s,i?"readwrite":"readonly"),f=c.store;return r&&(f=f.index(a.shift())),(await Promise.all([f[n](...a),i&&c.done]))[0]};return te.set(t,o),o}Fe(e=>({...e,get:(t,n,r)=>je(t,n)||e.get(t,n,r),has:(t,n)=>!!je(t,n)||e.has(t,n)}));var re=class{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(nn(n)){let r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}};function nn(e){let t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}var ie="@firebase/app",$e="0.10.13";var w=new $("@firebase/app"),rn="@firebase/app-compat",on="@firebase/analytics-compat",sn="@firebase/analytics",an="@firebase/app-check-compat",cn="@firebase/app-check",un="@firebase/auth",fn="@firebase/auth-compat",dn="@firebase/database",ln="@firebase/data-connect",hn="@firebase/database-compat",pn="@firebase/functions",gn="@firebase/functions-compat",mn="@firebase/installations",bn="@firebase/installations-compat",wn="@firebase/messaging",yn="@firebase/messaging-compat",vn="@firebase/performance",_n="@firebase/performance-compat",En="@firebase/remote-config",In="@firebase/remote-config-compat",Sn="@firebase/storage",An="@firebase/storage-compat",Tn="@firebase/firestore",Dn="@firebase/vertexai-preview",Cn="@firebase/firestore-compat",kn="firebase";var oe="[DEFAULT]",On={[ie]:"fire-core",[rn]:"fire-core-compat",[sn]:"fire-analytics",[on]:"fire-analytics-compat",[cn]:"fire-app-check",[an]:"fire-app-check-compat",[un]:"fire-auth",[fn]:"fire-auth-compat",[dn]:"fire-rtdb",[ln]:"fire-data-connect",[hn]:"fire-rtdb-compat",[pn]:"fire-fn",[gn]:"fire-fn-compat",[mn]:"fire-iid",[bn]:"fire-iid-compat",[wn]:"fire-fcm",[yn]:"fire-fcm-compat",[vn]:"fire-perf",[_n]:"fire-perf-compat",[En]:"fire-rc",[In]:"fire-rc-compat",[Sn]:"fire-gcs",[An]:"fire-gcs-compat",[Tn]:"fire-fst",[Cn]:"fire-fst-compat",[Dn]:"fire-vertex","fire-js":"fire-js",[kn]:"fire-js-all"};var W=new Map,Nn=new Map,se=new Map;function He(e,t){try{e.container.addComponent(t)}catch(n){w.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function y(e){let t=e.name;if(se.has(t))return w.debug(`There were multiple attempts to register component ${t}.`),!1;se.set(t,e);for(let n of W.values())He(n,e);for(let n of Nn.values())He(n,e);return!0}function O(e,t){let n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}var xn={["no-app"]:"No Firebase App '{$appName}' has been created - call initializeApp() first",["bad-app-name"]:"Illegal App name: '{$appName}'",["duplicate-app"]:"Firebase App named '{$appName}' already exists with different options or config",["app-deleted"]:"Firebase App named '{$appName}' already deleted",["server-app-deleted"]:"Firebase Server App has been deleted",["no-options"]:"Need to provide options, when not being deployed to hosting via source.",["invalid-app-argument"]:"firebase.{$appName}() takes either no argument or a Firebase App instance.",["invalid-log-argument"]:"First argument to `onLog` must be null or a function.",["idb-open"]:"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.",["idb-get"]:"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",["idb-set"]:"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",["idb-delete"]:"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",["finalization-registry-not-supported"]:"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",["invalid-server-app-environment"]:"FirebaseServerApp is not for use in browser environments."},_=new b("app","Firebase",xn);var ae=class{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new h("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw _.create("app-deleted",{appName:this._name})}};function fe(e,t={}){let n=e;typeof t!="object"&&(t={name:t});let r=Object.assign({name:oe,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw _.create("bad-app-name",{appName:String(i)});if(n||(n=J()),!n)throw _.create("no-options");let o=W.get(i);if(o){if(L(n,o.options)&&L(r,o.config))return o;throw _.create("duplicate-app",{appName:i})}let s=new j(i);for(let c of se.values())s.addComponent(c);let a=new ae(n,r,s);return W.set(i,a),a}function de(e=oe){let t=W.get(e);if(!t&&e===oe&&J())return fe();if(!t)throw _.create("no-app",{appName:e});return t}function m(e,t,n){var r;let i=(r=On[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);let o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){let a=[`Unable to register library "${i}" with version "${t}":`];o&&a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&a.push("and"),s&&a.push(`version name "${t}" contains illegal characters (whitespace or "/")`),w.warn(a.join(" "));return}y(new h(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}var Rn="firebase-heartbeat-database",Mn=1,k="firebase-heartbeat-store",ne=null;function ze(){return ne||(ne=I(Rn,Mn,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(k)}catch(n){console.warn(n)}}}}).catch(e=>{throw _.create("idb-open",{originalErrorMessage:e.message})})),ne}async function Bn(e){try{let n=(await ze()).transaction(k),r=await n.objectStore(k).get(Ke(e));return await n.done,r}catch(t){if(t instanceof p)w.warn(t.message);else{let n=_.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});w.warn(n.message)}}}async function Ve(e,t){try{let r=(await ze()).transaction(k,"readwrite");await r.objectStore(k).put(t,Ke(e)),await r.done}catch(n){if(n instanceof p)w.warn(n.message);else{let r=_.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});w.warn(r.message)}}}function Ke(e){return`${e.name}!${e.options.appId}`}var Pn=1024,Ln=30*24*60*60*1e3,ce=class{constructor(t){this.container=t,this._heartbeatsCache=null;let n=this.container.getProvider("app").getImmediate();this._storage=new ue(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{let i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=We();return((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(s=>s.date===o)?void 0:(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{let a=new Date(s.date).valueOf();return Date.now()-a<=Ln}),this._storage.overwrite(this._heartbeatsCache))}catch(r){w.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";let n=We(),{heartbeatsToSend:r,unsentEntries:i}=Fn(this._heartbeatsCache.heartbeats),o=G(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}catch(n){return w.warn(n),""}}};function We(){return new Date().toISOString().substring(0,10)}function Fn(e,t=Pn){let n=[],r=e.slice();for(let i of e){let o=n.find(s=>s.agent===i.agent);if(o){if(o.dates.push(i.date),Ue(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Ue(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}var ue=class{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return B()?P().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){let n=await Bn(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){let i=await this.read();return Ve(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){let i=await this.read();return Ve(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}};function Ue(e){return G(JSON.stringify({version:2,heartbeats:e})).length}function jn(e){y(new h("platform-logger",t=>new re(t),"PRIVATE")),y(new h("heartbeat",t=>new ce(t),"PRIVATE")),m(ie,$e,e),m(ie,$e,"esm2017"),m("fire-js","")}jn("");var $n="firebase",Hn="10.14.1";m($n,Hn,"app");var Je="@firebase/installations",ge="0.6.9";var Ye=1e4,Xe=`w:${ge}`,Qe="FIS_v2",Vn="https://firebaseinstallations.googleapis.com/v1",Wn=60*60*1e3,Un="installations",zn="Installations";var Kn={["missing-app-config-values"]:'Missing App configuration value: "{$valueName}"',["not-registered"]:"Firebase Installation is not registered.",["installation-not-found"]:"Firebase Installation not found.",["request-failed"]:'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',["app-offline"]:"Could not process request. Application offline.",["delete-pending-registration"]:"Can't delete installation while there is a pending registration request."},A=new b(Un,zn,Kn);function Ze(e){return e instanceof p&&e.code.includes("request-failed")}function et({projectId:e}){return`${Vn}/projects/${e}/installations`}function tt(e){return{token:e.token,requestStatus:2,expiresIn:Gn(e.expiresIn),creationTime:Date.now()}}async function nt(e,t){let r=(await t.json()).error;return A.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function rt({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function qn(e,{refreshToken:t}){let n=rt(e);return n.append("Authorization",Jn(t)),n}async function it(e){let t=await e();return t.status>=500&&t.status<600?e():t}function Gn(e){return Number(e.replace("s","000"))}function Jn(e){return`${Qe} ${e}`}async function Yn({appConfig:e,heartbeatServiceProvider:t},{fid:n}){let r=et(e),i=rt(e),o=t.getImmediate({optional:!0});if(o){let f=await o.getHeartbeatsHeader();f&&i.append("x-firebase-client",f)}let s={fid:n,authVersion:Qe,appId:e.appId,sdkVersion:Xe},a={method:"POST",headers:i,body:JSON.stringify(s)},c=await it(()=>fetch(r,a));if(c.ok){let f=await c.json();return{fid:f.fid||n,registrationStatus:2,refreshToken:f.refreshToken,authToken:tt(f.authToken)}}else throw await nt("Create Installation",c)}function ot(e){return new Promise(t=>{setTimeout(t,e)})}function Xn(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}var Qn=/^[cdef][\w-]{21}$/,pe="";function Zn(){try{let e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;let n=er(e);return Qn.test(n)?n:pe}catch(e){return pe}}function er(e){return Xn(e).substr(0,22)}function z(e){return`${e.appName}!${e.appId}`}var st=new Map;function at(e,t){let n=z(e);ct(n,t),tr(n,t)}function ct(e,t){let n=st.get(e);if(!!n)for(let r of n)r(t)}function tr(e,t){let n=nr();n&&n.postMessage({key:e,fid:t}),rr()}var S=null;function nr(){return!S&&"BroadcastChannel"in self&&(S=new BroadcastChannel("[Firebase] FID Change"),S.onmessage=e=>{ct(e.data.key,e.data.fid)}),S}function rr(){st.size===0&&S&&(S.close(),S=null)}var ir="firebase-installations-database",or=1,T="firebase-installations-store",le=null;function me(){return le||(le=I(ir,or,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(T)}}})),le}async function U(e,t){let n=z(e),i=(await me()).transaction(T,"readwrite"),o=i.objectStore(T),s=await o.get(n);return await o.put(t,n),await i.done,(!s||s.fid!==t.fid)&&at(e,t.fid),t}async function ut(e){let t=z(e),r=(await me()).transaction(T,"readwrite");await r.objectStore(T).delete(t),await r.done}async function K(e,t){let n=z(e),i=(await me()).transaction(T,"readwrite"),o=i.objectStore(T),s=await o.get(n),a=t(s);return a===void 0?await o.delete(n):await o.put(a,n),await i.done,a&&(!s||s.fid!==a.fid)&&at(e,a.fid),a}async function be(e){let t,n=await K(e.appConfig,r=>{let i=sr(r),o=ar(e,i);return t=o.registrationPromise,o.installationEntry});return n.fid===pe?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function sr(e){let t=e||{fid:Zn(),registrationStatus:0};return ft(t)}function ar(e,t){if(t.registrationStatus===0){if(!navigator.onLine){let i=Promise.reject(A.create("app-offline"));return{installationEntry:t,registrationPromise:i}}let n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=cr(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:ur(e)}:{installationEntry:t}}async function cr(e,t){try{let n=await Yn(e,t);return U(e.appConfig,n)}catch(n){throw Ze(n)&&n.customData.serverCode===409?await ut(e.appConfig):await U(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function ur(e){let t=await qe(e.appConfig);for(;t.registrationStatus===1;)await ot(100),t=await qe(e.appConfig);if(t.registrationStatus===0){let{installationEntry:n,registrationPromise:r}=await be(e);return r||n}return t}function qe(e){return K(e,t=>{if(!t)throw A.create("installation-not-found");return ft(t)})}function ft(e){return fr(e)?{fid:e.fid,registrationStatus:0}:e}function fr(e){return e.registrationStatus===1&&e.registrationTime+Ye<Date.now()}async function dr({appConfig:e,heartbeatServiceProvider:t},n){let r=lr(e,n),i=qn(e,n),o=t.getImmediate({optional:!0});if(o){let f=await o.getHeartbeatsHeader();f&&i.append("x-firebase-client",f)}let s={installation:{sdkVersion:Xe,appId:e.appId}},a={method:"POST",headers:i,body:JSON.stringify(s)},c=await it(()=>fetch(r,a));if(c.ok){let f=await c.json();return tt(f)}else throw await nt("Generate Auth Token",c)}function lr(e,{fid:t}){return`${et(e)}/${t}/authTokens:generate`}async function we(e,t=!1){let n,r=await K(e.appConfig,o=>{if(!dt(o))throw A.create("not-registered");let s=o.authToken;if(!t&&gr(s))return o;if(s.requestStatus===1)return n=hr(e,t),o;{if(!navigator.onLine)throw A.create("app-offline");let a=br(o);return n=pr(e,a),a}});return n?await n:r.authToken}async function hr(e,t){let n=await Ge(e.appConfig);for(;n.authToken.requestStatus===1;)await ot(100),n=await Ge(e.appConfig);let r=n.authToken;return r.requestStatus===0?we(e,t):r}function Ge(e){return K(e,t=>{if(!dt(t))throw A.create("not-registered");let n=t.authToken;return wr(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function pr(e,t){try{let n=await dr(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await U(e.appConfig,r),n}catch(n){if(Ze(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await ut(e.appConfig);else{let r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await U(e.appConfig,r)}throw n}}function dt(e){return e!==void 0&&e.registrationStatus===2}function gr(e){return e.requestStatus===2&&!mr(e)}function mr(e){let t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+Wn}function br(e){let t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function wr(e){return e.requestStatus===1&&e.requestTime+Ye<Date.now()}async function yr(e){let t=e,{installationEntry:n,registrationPromise:r}=await be(t);return r?r.catch(console.error):we(t).catch(console.error),n.fid}async function vr(e,t=!1){let n=e;return await _r(n),(await we(n,t)).token}async function _r(e){let{registrationPromise:t}=await be(e);t&&await t}function Er(e){if(!e||!e.options)throw he("App Configuration");if(!e.name)throw he("App Name");let t=["projectId","apiKey","appId"];for(let n of t)if(!e.options[n])throw he(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function he(e){return A.create("missing-app-config-values",{valueName:e})}var lt="installations",Ir="installations-internal",Sr=e=>{let t=e.getProvider("app").getImmediate(),n=Er(t),r=O(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},Ar=e=>{let t=e.getProvider("app").getImmediate(),n=O(t,lt).getImmediate();return{getId:()=>yr(n),getToken:i=>vr(n,i)}};function Tr(){y(new h(lt,Sr,"PUBLIC")),y(new h(Ir,Ar,"PRIVATE"))}Tr();m(Je,ge);m(Je,ge,"esm2017");var Dr="/firebase-messaging-sw.js",Cr="/firebase-cloud-messaging-push-scope",yt="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",kr="https://fcmregistrations.googleapis.com/v1",vt="google.c.a.c_id",Or="google.c.a.c_l",Nr="google.c.a.ts",xr="google.c.a.e",ht;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(ht||(ht={}));var N;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"})(N||(N={}));function v(e){let t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Rr(e){let t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(n),i=new Uint8Array(r.length);for(let o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i}var ye="fcm_token_details_db",Mr=5,pt="fcm_token_object_Store";async function Br(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(ye))return null;let t=null;return(await I(ye,Mr,{upgrade:async(r,i,o,s)=>{var a;if(i<2||!r.objectStoreNames.contains(pt))return;let c=s.objectStore(pt),f=await c.index("fcmSenderId").get(e);if(await c.clear(),!!f){if(i===2){let u=f;if(!u.auth||!u.p256dh||!u.endpoint)return;t={token:u.fcmToken,createTime:(a=u.createTime)!==null&&a!==void 0?a:Date.now(),subscriptionOptions:{auth:u.auth,p256dh:u.p256dh,endpoint:u.endpoint,swScope:u.swScope,vapidKey:typeof u.vapidKey=="string"?u.vapidKey:v(u.vapidKey)}}}else if(i===3){let u=f;t={token:u.fcmToken,createTime:u.createTime,subscriptionOptions:{auth:v(u.auth),p256dh:v(u.p256dh),endpoint:u.endpoint,swScope:u.swScope,vapidKey:v(u.vapidKey)}}}else if(i===4){let u=f;t={token:u.fcmToken,createTime:u.createTime,subscriptionOptions:{auth:v(u.auth),p256dh:v(u.p256dh),endpoint:u.endpoint,swScope:u.swScope,vapidKey:v(u.vapidKey)}}}}}})).close(),await V(ye),await V("fcm_vapid_details_db"),await V("undefined"),Pr(t)?t:null}function Pr(e){if(!e||!e.subscriptionOptions)return!1;let{subscriptionOptions:t}=e;return typeof e.createTime=="number"&&e.createTime>0&&typeof e.token=="string"&&e.token.length>0&&typeof t.auth=="string"&&t.auth.length>0&&typeof t.p256dh=="string"&&t.p256dh.length>0&&typeof t.endpoint=="string"&&t.endpoint.length>0&&typeof t.swScope=="string"&&t.swScope.length>0&&typeof t.vapidKey=="string"&&t.vapidKey.length>0}var Lr="firebase-messaging-database",Fr=1,D="firebase-messaging-store",ve=null;function Ie(){return ve||(ve=I(Lr,Fr,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(D)}}})),ve}async function _t(e){let t=Ae(e),r=await(await Ie()).transaction(D).objectStore(D).get(t);if(r)return r;{let i=await Br(e.appConfig.senderId);if(i)return await Se(e,i),i}}async function Se(e,t){let n=Ae(e),i=(await Ie()).transaction(D,"readwrite");return await i.objectStore(D).put(t,n),await i.done,t}async function jr(e){let t=Ae(e),r=(await Ie()).transaction(D,"readwrite");await r.objectStore(D).delete(t),await r.done}function Ae({appConfig:e}){return e.appId}var $r={["missing-app-config-values"]:'Missing App configuration value: "{$valueName}"',["only-available-in-window"]:"This method is available in a Window context.",["only-available-in-sw"]:"This method is available in a service worker context.",["permission-default"]:"The notification permission was not granted and dismissed instead.",["permission-blocked"]:"The notification permission was not granted and blocked instead.",["unsupported-browser"]:"This browser doesn't support the API's required to use the Firebase SDK.",["indexed-db-unsupported"]:"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)",["failed-service-worker-registration"]:"We are unable to register the default service worker. {$browserErrorMessage}",["token-subscribe-failed"]:"A problem occurred while subscribing the user to FCM: {$errorInfo}",["token-subscribe-no-token"]:"FCM returned no token when subscribing the user to push.",["token-unsubscribe-failed"]:"A problem occurred while unsubscribing the user from FCM: {$errorInfo}",["token-update-failed"]:"A problem occurred while updating the user from FCM: {$errorInfo}",["token-update-no-token"]:"FCM returned no token when updating the user to push.",["use-sw-after-get-token"]:"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",["invali
1d-sw-registration"]:"The input to useServiceWorker() must be a ServiceWorkerRegistration.",["invalid-bg-handler"]:"The input to setBackgroundMessageHandler() must be a function.",["invalid-vapid-key"]:"The public VAPID key must be a string.",["use-vapid-key-after-get-token"]:"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},l=new b("messaging","Messaging",$r);async function Hr(e,t){let n=await De(e),r=It(t),i={method:"POST",headers:n,body:JSON.stringify(r)},o;try{o=await(await fetch(Te(e.appConfig),i)).json()}catch(s){throw l.create("token-subscribe-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){let s=o.error.message;throw l.create("token-subscribe-failed",{errorInfo:s})}if(!o.token)throw l.create("token-subscribe-no-token");return o.token}async function Vr(e,t){let n=await De(e),r=It(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)},o;try{o=await(await fetch(`${Te(e.appConfig)}/${t.token}`,i)).json()}catch(s){throw l.create("token-update-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){let s=o.error.message;throw l.create("token-update-failed",{errorInfo:s})}if(!o.token)throw l.create("token-update-no-token");return o.token}async function Et(e,t){let n=await De(e),r={method:"DELETE",headers:n};try{let o=await(await fetch(`${Te(e.appConfig)}/${t}`,r)).json();if(o.error){let s=o.error.message;throw l.create("token-unsubscribe-failed",{errorInfo:s})}}catch(i){throw l.create("token-unsubscribe-failed",{errorInfo:i==null?void 0:i.toString()})}}function Te({projectId:e}){return`${kr}/projects/${e}/registrations`}async function De({appConfig:e,installations:t}){let n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function It({p256dh:e,auth:t,endpoint:n,vapidKey:r}){let i={web:{endpoint:n,auth:t,p256dh:e}};return r!==yt&&(i.web.applicationPubKey=r),i}var Wr=7*24*60*60*1e3;async function Ur(e){let t=await qr(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:v(t.getKey("auth")),p256dh:v(t.getKey("p256dh"))},r=await _t(e.firebaseDependencies);if(r){if(Gr(r.subscriptionOptions,n))return Date.now()>=r.createTime+Wr?Kr(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await Et(e.firebaseDependencies,r.token)}catch(i){console.warn(i)}return gt(e.firebaseDependencies,n)}else return gt(e.firebaseDependencies,n)}async function zr(e){let t=await _t(e.firebaseDependencies);t&&(await Et(e.firebaseDependencies,t.token),await jr(e.firebaseDependencies));let n=await e.swRegistration.pushManager.getSubscription();return n?n.unsubscribe():!0}async function Kr(e,t){try{let n=await Vr(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await Se(e.firebaseDependencies,r),n}catch(n){throw n}}async function gt(e,t){let r={token:await Hr(e,t),createTime:Date.now(),subscriptionOptions:t};return await Se(e,r),r.token}async function qr(e,t){let n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Rr(t)})}function Gr(e,t){let n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,i=t.auth===e.auth,o=t.p256dh===e.p256dh;return n&&r&&i&&o}function mt(e){let t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return Jr(t,e),Yr(t,e),Xr(t,e),t}function Jr(e,t){if(!t.notification)return;e.notification={};let n=t.notification.title;n&&(e.notification.title=n);let r=t.notification.body;r&&(e.notification.body=r);let i=t.notification.image;i&&(e.notification.image=i);let o=t.notification.icon;o&&(e.notification.icon=o)}function Yr(e,t){!t.data||(e.data=t.data)}function Xr(e,t){var n,r,i,o,s;if(!t.fcmOptions&&!(!((n=t.notification)===null||n===void 0)&&n.click_action))return;e.fcmOptions={};let a=(i=(r=t.fcmOptions)===null||r===void 0?void 0:r.link)!==null&&i!==void 0?i:(o=t.notification)===null||o===void 0?void 0:o.click_action;a&&(e.fcmOptions.link=a);let c=(s=t.fcmOptions)===null||s===void 0?void 0:s.analytics_label;c&&(e.fcmOptions.analyticsLabel=c)}function Qr(e){return typeof e=="object"&&!!e&&vt in e}Zr("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");function Zr(e,t){let n=[];for(let r=0;r<e.length;r++)n.push(e.charAt(r)),r<t.length&&n.push(t.charAt(r));return n.join("")}function ei(e){if(!e||!e.options)throw _e("App Configuration Object");
1if(!e.name)throw _e("App Name");let t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(let r of t)if(!n[r])throw _e(r);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function _e(e){return l.create("missing-app-config-values",{valueName:e})}var Ee=class{constructor(t,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;let i=ei(t);this.firebaseDependencies={app:t,appConfig:i,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}};async function St(e){try{e.swRegistration=await navigator.serviceWorker.register(Dr,{scope:Cr}),e.swRegistration.update().catch(()=>{})}catch(t){throw l.create("failed-service-worker-registration",{browserErrorMessage:t==null?void 0:t.message})}}async function ti(e,t){if(!t&&!e.swRegistration&&await St(e),!(!t&&!!e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw l.create("invalid-sw-registration");e.swRegistration=t}}async function ni(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=yt)}async function At(e,t){if(!navigator)throw l.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw l.create("permission-blocked");return await ni(e,t==null?void 0:t.vapidKey),await ti(e,t==null?void 0:t.serviceWorkerRegistration),Ur(e)}async function ri(e,t,n){let r=ii(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[vt],message_name:n[Or],message_time:n[Nr],message_device_time:Math.floor(Date.now()/1e3)})}function ii(e){switch(e){case N.NOTIFICATION_CLICKED:return"notification_open";case N.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}async function oi(e,t){let n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===N.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler(mt(n)):e.onMessageHandler.next(mt(n)));let r=n.data;Qr(r)&&r[xr]==="1"&&await ri(e,n.messageType,r)}var bt="@firebase/messaging",wt="0.12.12";var si=e=>{let t=new Ee(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>oi(t,n)),t},ai=e=>{let t=e.getProvider("messaging").getImmediate();return{getToken:r=>At(t,r)}};function ci(){y(new h("messaging",si,"PUBLIC")),y(new h("messaging-internal",ai,"PRIVATE")),m(bt,wt),m(bt,wt,"esm2017")}async function ui(){try{await P()}catch(e){return!1}return typeof window!="undefined"&&B()&&Re()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}async function fi(e){if(!navigator)throw l.create("only-available-in-window");return e.swRegistration||await St(e),zr(e)}function Tt(e=de()){return ui().then(t=>{if(!t)throw l.create("unsupported-browser")},t=>{throw l.create("indexed-db-unsupported")}),O(F(e),"messaging").getImmediate()}async function Dt(e,t){return e=F(e),At(e,t)}function Ce(e){return e=F(e),fi(e)}ci();var ke=class{constructor(t){this.options=t;this.serviceWorkerRegistration=null;this.messaging=Tt(fe(this.options.config))}
1async init(){let t=await this.registerServiceWorker();!t||(this.serviceWorkerRegistration=t)}async subscribe(t){try{if(!this.serviceWorkerRegistration)return null;let n=await Dt(this.messaging,{vapidKey:this.options.vapidKey,serviceWorkerRegistration:this.serviceWorkerRegistration});return this.setFcmToken(n),{type:"firebase",token:n}}catch(n){this.unsetFcmToken(),Ce(this.messaging)}return null}async unsubscribe(t){return this.serviceWorkerRegistration?(this.unsetFcmToken(),Ce(this.messaging),!0):!1}async registerServiceWorker(){return window.navigator.serviceWorker.getRegistration("/firebase-cloud-messaging-push-scope").then(t=>t?(t.update(),t):window.navigator.serviceWorker.register("/firebase-messaging-sw.js").then(n=>n).catch(n=>{console.error("[dp-messenger-init] Error registering Firebase service worker",n)}))}getFcmToken(){return typeof window=="undefined"?null:localStorage.getItem("dp-messenger-fcm-token")}setFcmToken(t){if(typeof window=="undefined")return null;localStorage.setItem("dp-messenger-fcm-token",t)}unsetFcmToken(){if(typeof window=="undefined")return null;localStorage.removeItem("dp-messenger-fcm-token")}},Ji=ke;export{Ji as default};
2/**
3 * @license
4 * Copyright 2017 Google LLC
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 *   http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18/**
19 * @license
20 * Copyright 2018 Google LLC
21 *
22 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
23 * in compliance with the License. You may obtain a copy of the License at
24 *
25 * http://www.apache.org/licenses/LICENSE-2.0
26 *
27 * Unless required by applicable law or agreed to in writing, software distributed under the License
28 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
29 * or implied. See the License for the specific language governing permissions and limitations under
30 * the License.
31 */
32/**
33 * @license
34 * Copyright 2019 Google LLC
35 *
36 * Licensed under the Apache License, Version 2.0 (the "License");
37 * you may not use this file except in compliance with the License.
38 * You may obtain a copy of the License at
39 *
40 *   http://www.apache.org/licenses/LICENSE-2.0
41 *
42 * Unless required by applicable law or agreed to in writing, software
43 * distributed under the License is distributed on an "AS IS" BASIS,
44 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
45 * See the License for the specific language governing permissions and
46 * limitations under the License.
47 */
48/**
49 * @license
50 * Copyright 2020 Google LLC
51 *
52 * Licensed under the Apache License, Version 2.0 (the "License");
53 * you may not use this file except in compliance with the License.
54 * You may obtain a copy of the License at
55 *
56 *   http://www.apache.org/licenses/LICENSE-2.0
57 *
58 * Unless required by applicable law or agreed to in writing, software
59 * distributed under the License is distributed on an "AS IS" BASIS,
60 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
61 * See the License for the specific language governing permissions and
62 * limitations under the License.
63 */
64/**
65 * @license
66 * Copyright 2021 Google LLC
67 *
68 * Licensed under the Apache License, Version 2.0 (the "License");
69 * you may not use this file except in compliance with the License.
70 * You may obtain a copy of the License at
71 *
72 *   http://www.apache.org/licenses/LICENSE-2.0
73 *
74 * Unless required by applicable law or agreed to in writing, software
75 * distributed under the License is distributed on an "AS IS" BASIS,
76 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
77 * See the License for the specific language governing permissions and
78 * limitations under the License.
79 */
80/**
81 * @license
82 * Copyright 2022 Google LLC
83 *
84 * Licensed under the Apache License, Version 2.0 (the "License");
85 * you may not use this file except in compliance with the License.
86 * You may obtain a copy of the License at
87 *
88 *   http://www.apache.org/licenses/LICENSE-2.0
89 *
90 * Unless required by applicable law or agreed to in writing, software
91 * distributed under the License is distributed on an "AS IS" BASIS,
92 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
93 * See the License for the specific language governing permissions and
94 * limitations under the License.
95 */
96/**
97 * @license
98 * Copyright 2023 Google LLC
99 *
100 * Licensed under the Apache License, Version 2.0 (the "License");
101 * you may not use this file except in compliance with the License.
102 * You may obtain a copy of the License at
103 *
104 *   http://www.apache.org/licenses/LICENSE-2.0
105 *
106 * Unless required by applicable law or agreed to in writing, software
107 * distributed under the License is distributed on an "AS IS" BASIS,
108 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
109 * See the License for the specific language governing permissions and
110 * limitations under the License.
111 */

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.