1import{g as yt,a as wt,j as d,L as F,R as It,w as _t,D as xt,u as vt,M as je,G as Be,O as Et,S as St,H as $e,I as At,i as Ct}from"./chunk-LFPYN7LY-DRNZEIC3.js";import{c as y}from"./compiler-runtime-CpOmovQN.js";import{c as h}from"./cn-C8nBGPD0.js";const Me="cookie-consent",X=new Set;function Tt(){for(const t of X)t()}function Dt(t){return X.add(t),()=>{X.delete(t)}}function Nt(){const t=localStorage.getItem(Me);return t==="granted"||t==="denied"?t:"pending"}function Rt(){return null}function kt(){const t=y.c(7),e=yt.useSyncExternalStore(Dt,Nt,Rt),n=jt;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=p=>{localStorage.setItem(Me,p),n(p),Tt()},t[0]=r):r=t[0];const s=r;let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>s("granted"),t[1]=a):a=t[1];const i=a;let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=()=>s("denied"),t[2]=o):o=t[2];const l=o,c=e==="pending",u=e!==null;let m;return t[3]!==e||t[4]!==c||t[5]!==u?(m={consent:e,acceptConsent:i,declineConsent:l,isPending:c,isLoaded:u},t[3]=e,t[4]=c,t[5]=u,t[6]=m):m=t[6],m}function jt(t){typeof window<"u"&&window.gtag&&window.gtag("consent","update",{ad_storage:t,ad_user_data:t,ad_personalization:t,analytics_storage:t})}function Bt(){const t=y.c(12),e=wt(),{isLoaded:n,isPending:r,acceptConsent:s,declineConsent:a}=kt();if(e.pathname.startsWith("/admin")||!n||!r)return null;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=h("fixed right-0 bottom-0 left-0 z-50","bg-cream/95 backdrop-blur-sm","border-gold-9/30 border-t","shadow-[0_-4px_20px_rgba(0,0,0,0.08)]","animate-[slideUp_0.3s_ease-out]"),t[0]=i):i=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=d.jsx("h2",{id:"cookie-consent-title",className:"font-source-sans3 text-wine-3 text-sm font-semibold sm:text-base",children:"Cookies et confidentialité"}),t[1]=o):o=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=d.jsxs("div",{className:"flex-1",children:[o,d.jsxs("p",{id:"cookie-consent-description",className:"font-source-serif4 text-wine-4/80 mt-1 text-xs leading-relaxed sm:text-sm",children:["Ce site utilise des cookies pour analyser le trafic de manière anonyme."," ",d.jsx(F,{to:"/politique-confidentialite",className:"text-wine-5 hover:text-wine-4 relative font-medium no-underline transition-colors duration-300",children:"En savoir plus"})]})]}),t[2]=l):l=t[2];let c;t[3]===Symbol.for("react.memo_cache_sentinel")?(c=h("font-source-sans3 text-sm font-medium","text-wine-5 hover:text-wine-4","px-4 py-2","rounded-lg","border-wine-8/50 hover:border-wine-7/50 border","hover:bg-wine-11/50 bg-transparent","transition-colors duration-200","focus-visible:outline-gold-6"),t[3]=c):c=t[3];let u;t[4]!==a?(u=d.jsx("button",{type:"button",onClick:a,className:c,children:"Refuser"}),t[4]=a,t[5]=u):u=t[5];let m;t[6]===Symbol.for("react.memo_cache_sentinel")?(m=h("font-source-sans3 text-sm font-medium","text-cream","px-4 py-2","rounded-lg","bg-wine-5 hover:bg-wine-4","transition-colors duration-200","focus-visible:outline-gold-6"),t[6]=m):m=t[6];let p;t[7]!==s?(p=d.jsx("button",{type:"button",onClick:s,className:m,children:"Accepter"}),t[7]=s,t[8]=p):p=t[8];let w;return t[9]!==u||t[10]!==p?(w=d.jsx("div",{role:"dialog","aria-labelledby":"cookie-consent-title","aria-describedby":"cookie-consent-description",className:i,children:d.jsx("div",{className:"mx-auto max-w-4xl px-4 py-4 sm:px-6 sm:py-5",children:d.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[l,d.jsxs("div",{className:"flex gap-3",children:[u,p]})]})})}),t[9]=u,t[10]=p,t[11]=w):w=t[11],w}const $t=h("font-source-sans3 text-primary-5 block leading-tight font-normal text-pretty"),Mt={h1:h("text-[length:var(--text-fluid-6xl)] tracking-[var(--tracking-heading-1)]"),h2:h("text-[length:var(--text-fluid-5xl)] tracking-[var(--tracking-heading-2)]"),h3:h("text-[length:var(--text-fluid-4xl)] tracking-[var(--tracking-heading-3)]"),h4:h("text-[length:var(--text-fluid-3xl)] tracking-[var(--tracking-heading-4)]"),h5:h("text-[length:var(--text-fluid-2xl)] tracking-[var(--tracking-heading-5)]"),h6:h("text-[length:var(--text-fluid-xl)] tracking-[var(--tracking-heading-6)]")};function k(t){const e=y.c(37);let n,r,s,a,i;e[0]!==t?({variant:i,as:n,className:s,children:r,...a}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=a,e[5]=i):(n=e[1],r=e[2],s=e[3],a=e[4],i=e[5]);const o=Mt[i];let l;e[6]!==s||e[7]!==o?(l=h($t,o,s),e[6]=s,e[7]=o,e[8]=l):l=e[8];const c=l;switch(n??i){case"h1":{let u;return e[9]!==r||e[10]!==a||e[11]!==c?(u=d.jsx("h1",{className:c,...a,children:r}),e[9]=r,e[10]=a,e[11]=c,e[12]=u):u=e[12],u}case"h2":{let u;return e[13]!==r||e[14]!==a||e[15]!==c?(u=d.jsx("h2",{className:c,...a,children:r}),e[13]=r,e[14]=a,e[15]=c,e[16]=u):u=e[16],u}case"h3":{let u;return e[17]!==r||e[18]!==a||e[19]!==c?(u=d.jsx("h3",{className:c,...a,children:r}),e[17]=r,e[18]=a,e[19]=c,e[20]=u):u=e[20],u}case"h4":{let u;return e[21]!==r||e[22]!==a||e[23]!==c?(u=d.jsx("h4",{className:c,...a,children:r}),e[21]=r,e[22]=a,e[23]=c,e[24]=u):u=e[24],u}case"h5":{let u;return e[25]!==r||e[26]!==a||e[27]!==c?(u=d.jsx("h5",{className:c,...a,children:r}),e[25]=r,e[26]=a,e[27]=c,e[28]=u):u=e[28],u}case"h6":{let u;
1return e[29]!==r||e[30]!==a||e[31]!==c?(u=d.jsx("h6",{className:c,...a,children:r}),e[29]=r,e[30]=a,e[31]=c,e[32]=u):u=e[32],u}case"p":{let u;return e[33]!==r||e[34]!==a||e[35]!==c?(u=d.jsx("p",{className:c,...a,children:r}),e[33]=r,e[34]=a,e[35]=c,e[36]=u):u=e[36],u}default:return null}}const Ot=h("font-source-serif4 text-primary-4 block leading-relaxed font-light"),Pt={body1:h("text-[length:var(--text-fluid-lg)]"),body2:h("text-[length:var(--text-fluid-base)]"),body3:h("text-[length:var(--text-fluid-sm)]"),caption:h("text-[length:var(--text-fluid-xs)] font-extralight")};function se(t){const e=y.c(12);let n,r,s,a;e[0]!==t?({variant:a,className:r,children:n,...s}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=a):(n=e[1],r=e[2],s=e[3],a=e[4]);const i=Pt[a];let o;e[5]!==r||e[6]!==i?(o=h(Ot,i,r),e[5]=r,e[6]=i,e[7]=o):o=e[7];const l=o;let c;return e[8]!==n||e[9]!==s||e[10]!==l?(c=d.jsx("p",{className:l,...s,children:n}),e[8]=n,e[9]=s,e[10]=l,e[11]=c):c=e[11],c}function Ft(){const t=y.c(5);let e,n,r,s;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=h("flex flex-col items-center justify-center space-y-8","mx-auto h-svh max-w-7xl px-4 sm:px-6 lg:px-8"),n=d.jsx(k,{variant:"h1",className:"text-primary-8",children:"404"}),r=d.jsx(k,{variant:"h2",className:"text-primary-8",children:"Page introuvable"}),s=d.jsx(se,{variant:"body1",className:"max-w-xl",children:"La page que vous recherchez n'existe pas ou a été déplacée. Veuillez retourner à la page d'accueil."}),t[0]=e,t[1]=n,t[2]=r,t[3]=s):(e=t[0],n=t[1],r=t[2],s=t[3]);let a;return t[4]===Symbol.for("react.memo_cache_sentinel")?(a=d.jsxs("div",{className:e,children:[n,r,s,d.jsx(F,{to:"/",className:h("rounded-md px-4 py-2","bg-primary-4 text-primary-8 hover:bg-primary-2 hover:text-primary-10","focus-visible:outline-slate-900 active:bg-slate-800 active:text-slate-300"),children:"Retour à l'accueil"})]}),t[4]=a):a=t[4],a}function Lt(){const t=y.c(5);let e,n,r,s;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=h("flex flex-col items-center justify-center space-y-8","mx-auto h-svh max-w-7xl px-4 sm:px-6 lg:px-8"),n=d.jsx(k,{variant:"h1",className:"text-primary-8",children:"500"}),r=d.jsx(k,{variant:"h2",className:"text-primary-8",children:"Erreur interne du serveur"}),s=d.jsx(se,{variant:"body1",className:"max-w-xl",children:"Une erreur interne du serveur est survenue. Veuillez réessayer plus tard."}),t[0]=e,t[1]=n,t[2]=r,t[3]=s):(e=t[0],n=t[1],r=t[2],s=t[3]);let a;return t[4]===Symbol.for("react.memo_cache_sentinel")?(a=d.jsxs("div",{className:e,children:[n,r,s,d.jsx(F,{to:"/",className:h("rounded-md px-4 py-2","bg-primary-4 text-primary-8 hover:bg-primary-2 hover:text-primary-10","focus-visible:outline-slate-900 active:bg-slate-800 active:text-slate-300"),children:"Retour à l'accueil"})]}),t[4]=a):a=t[4],a}function Ht(t){const e=y.c(10),{code:n,message:r}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=h("flex flex-col items-center justify-center space-y-8","mx-auto h-svh max-w-7xl px-4 sm:px-6 lg:px-8"),e[0]=s):s=e[0];let a;e[1]!==n?(a=n?d.jsx(k,{variant:"h1",className:"text-primary-8",children:n}):null,e[1]=n,e[2]=a):a=e[2];let i;e[3]!==r?(i=d.jsx(k,{variant:"h2",className:"text-primary-8",children:r}),e[3]=r,e[4]=i):i=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=d.jsx(se,{variant:"body1",className:"max-w-xl",children:"Une erreur est survenue. Veuillez réessayer plus tard."}),e[5]=o):o=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=d.jsx(F,{to:"/",className:h("rounded-md px-4 py-2","bg-primary-4 text-primary-8 hover:bg-primary-2 hover:text-primary-10","focus-visible:outline-slate-900 active:bg-slate-800 active:text-slate-300"),children:"Retour à l'accueil"}),e[6]=l):l=e[6];let c;return e[7]!==a||e[8]!==i?(c=d.jsxs("div",{className:s,children:[a,i,o,l]}),e[7]=a,e[8]=i,e[9]=c):c=e[9],c}const zt=()=>{};var he={};const Oe=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let s=t.charCodeAt(r);s<128?e[n++]=s:s<2048?(e[n++]=s>>6|192,e[n++]=s&63|128):(s&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(s=65536+((s&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=s>>18|240,e[n++]=s>>12&63|128,e[n++]=s>>6&63|128,e[n++]=s&63|128):(e[n++]=s>>12|224,e[n++]=s>>6&63|128,e[n++]=s&63|128)}return e},Ut=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const s=t[n++];if(s<128)e[r++]=String.fromCharCode(s);else if(s>191&&s<224){const a=t[n++];e[r++]=String.fromCharCode((s&31)<<6|a&63)}else if(s>239&&s<365){const a=t[n++],i=t[n++],o=t[n++],l=((s&7)<<18|(a&63)<<12|(i&63)<<6|o&63)-65536;e[r++]=String.fromCharCode(55296+(l>>10)),e[r++]=String.fromCharCode(56320+(l&1023))}else{const a=t[n++],i=t[n++];e[r++]=String.fromCharCode((s&15)<<12|(a&63)<<6|i&63)}}return e.join("")},Pe={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(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let s=0;s<t.length;s+=3){const a=t[s],i=s+1<t.length,o=i?t[s+1]:0,l=s+2<t.length,c=l?t[s+2]:0,u=a>>2,m=(a&3)<<4|o>>4;let p=(o&15)<<2|c>>6,w=c&63;l||(w=64,i||(p=64)),r.push(n[u],n[m],n[p],n[w])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(Oe(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):Ut(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let s=0;s<t.length;){const a=n[t.charAt(s++)],o=s<t.length?n[t.charAt(s)]:0;++s;const c=s<t.length?n[t.charAt(s)]:64;++s;const m=s<t.length?n[t.charAt(s)]:64;if(++s,a==null||o==null||c==null||m==null)throw new Vt;const p=a<<2|o>>4;if(r.push(p),c!==64){const w=o<<4&240|c>>2;if(r.push(w),m!==64){const bt=c<<6&192|m;r.push(bt)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};
1class Vt extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const qt=function(t){const e=Oe(t);return Pe.encodeByteArray(e,!0)},Fe=function(t){return qt(t).replace(/\./g,"")},Wt=function(t){try{return Pe.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function Gt(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}const Kt=()=>Gt().__FIREBASE_DEFAULTS__,Yt=()=>{if(typeof process>"u"||typeof he>"u")return;const t=he.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},Jt=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&Wt(t[1]);return e&&JSON.parse(e)},Xt=()=>{try{return zt()||Kt()||Yt()||Jt()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},Le=()=>Xt()?.config;class Zt{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r))}}}function Qt(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function He(){try{return typeof indexedDB=="object"}catch{return!1}}function ze(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",s=self.indexedDB.open(r);s.onsuccess=()=>{s.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},s.onupgradeneeded=()=>{n=!1},s.onerror=()=>{e(s.error?.message||"")}}catch(n){e(n)}})}function en(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}const tn="FirebaseError";class N extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=tn,Object.setPrototypeOf(this,N.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,L.prototype.create)}}class L{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},s=`${this.service}/${e}`,a=this.errors[e],i=a?nn(a,r):"Error",o=`${this.serviceName}: ${i} (${s}).`;return new N(s,o,r)}}function nn(t,e){return t.replace(rn,(n,r)=>{const s=e[r];return s!=null?String(s):`<${r}?>`})}const rn=/\{\$([^}]+)}/g;function M(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const s of n){if(!r.includes(s))return!1;const a=t[s],i=e[s];if(pe(a)&&pe(i)){if(!M(a,i))return!1}else if(a!==i)return!1}for(const s of r)if(!n.includes(s))return!1;return!0}function pe(t){return t!==null&&typeof t=="object"}const sn=1e3,an=2,on=14400*1e3,cn=.5;function me(t,e=sn,n=an){const r=e*Math.pow(n,t),s=Math.round(cn*r*(Math.random()-.5)*2);return Math.min(on,r+s)}function ae(t){return t&&t._delegate?t._delegate:t}class E{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const S="[DEFAULT]";class ln{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new Zt;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const s=this.getOrInitializeService({instanceIdentifier:n});s&&r.resolve(s)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){const n=this.normalizeInstanceIdentifier(e?.identifier),r=e?.optional??!1;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(s){if(r)return null;throw s}else{if(r)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(un(e))try{this.getOrInitializeService({instanceIdentifier:S})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const s=this.normalizeInstanceIdentifier(n);try{const a=this.getOrInitializeService({instanceIdentifier:s});r.resolve(a)}catch{}}}}clearInstance(e=S){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=S){return this.instances.has(e)}getOptions(e=S){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.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`);const s=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[a,i]of this.instancesDeferred.entries()){const o=this.normalizeInstanceIdentifier(a);r===o&&i.resolve(s)}return s}onInit(e,n){const r=this.normalizeInstanceIdentifier(n),s=this.onInitCallbacks.get(r)??new Set;s.add(e),this.onInitCallbacks.set(r,s);const a=this.instances.get(r);return a&&e(a,r),()=>{s.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const s of r)try{s(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:dn(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=S){return this.component?this.component.multipleInstances?e:S:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function dn(t){return t===S?void 0:t}function un(t){return t.instantiationMode==="EAGER"}class fn{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new ln(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}var f;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(f||(f={}));const hn={debug:f.DEBUG,verbose:f.VERBOSE,info:f.INFO,warn:f.WARN,error:f.ERROR,silent:f.SILENT},pn=f.INFO,mn={[f.DEBUG]:"log",[f.VERBOSE]:"log",[f.INFO]:"info",[f.WARN]:"warn",[f.ERROR]:"error"},gn=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),s=mn[e];if(s)console[s](`[${r}] ${t.name}:`,...n);
1else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class Ue{constructor(e){this.name=e,this._logLevel=pn,this._logHandler=gn,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in f))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?hn[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,f.DEBUG,...e),this._logHandler(this,f.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,f.VERBOSE,...e),this._logHandler(this,f.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,f.INFO,...e),this._logHandler(this,f.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,f.WARN,...e),this._logHandler(this,f.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,f.ERROR,...e),this._logHandler(this,f.ERROR,...e)}}const bn=(t,e)=>e.some(n=>t instanceof n);let ge,be;function yn(){return ge||(ge=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function wn(){return be||(be=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Ve=new WeakMap,Z=new WeakMap,qe=new WeakMap,V=new WeakMap,ie=new WeakMap;function In(t){const e=new Promise((n,r)=>{const s=()=>{t.removeEventListener("success",a),t.removeEventListener("error",i)},a=()=>{n(_(t.result)),s()},i=()=>{r(t.error),s()};t.addEventListener("success",a),t.addEventListener("error",i)});return e.then(n=>{n instanceof IDBCursor&&Ve.set(n,t)}).catch(()=>{}),ie.set(e,t),e}function _n(t){if(Z.has(t))return;const e=new Promise((n,r)=>{const s=()=>{t.removeEventListener("complete",a),t.removeEventListener("error",i),t.removeEventListener("abort",i)},a=()=>{n(),s()},i=()=>{r(t.error||new DOMException("AbortError","AbortError")),s()};t.addEventListener("complete",a),t.addEventListener("error",i),t.addEventListener("abort",i)});Z.set(t,e)}let Q={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Z.get(t);if(e==="objectStoreNames")return t.objectStoreNames||qe.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return _(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function xn(t){Q=t(Q)}function vn(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(q(this),e,...n);return qe.set(r,e.sort?e.sort():[e]),_(r)}:wn().includes(t)?function(...e){return t.apply(q(this),e),_(Ve.get(this))}:function(...e){return _(t.apply(q(this),e))}}function En(t){return typeof t=="function"?vn(t):(t instanceof IDBTransaction&&_n(t),bn(t,yn())?new Proxy(t,Q):t)}function _(t){if(t instanceof IDBRequest)return In(t);if(V.has(t))return V.get(t);const e=En(t);return e!==t&&(V.set(t,e),ie.set(e,t)),e}const q=t=>ie.get(t);function We(t,e,{blocked:n,upgrade:r,blocking:s,terminated:a}={}){const i=indexedDB.open(t,e),o=_(i);return r&&i.addEventListener("upgradeneeded",l=>{r(_(i.result),l.oldVersion,l.newVersion,_(i.transaction),l)}),n&&i.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),o.then(l=>{a&&l.addEventListener("close",()=>a()),s&&l.addEventListener("versionchange",c=>s(c.oldVersion,c.newVersion,c))}).catch(()=>{}),o}const Sn=["get","getKey","getAll","getAllKeys","count"],An=["put","add","delete","clear"],W=new Map;function ye(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(W.get(e))return W.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,s=An.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(s||Sn.includes(n)))return;const a=async function(i,...o){const l=this.transaction(i,s?"readwrite":"readonly");let c=l.store;
1return r&&(c=c.index(o.shift())),(await Promise.all([c[n](...o),s&&l.done]))[0]};return W.set(e,a),a}xn(t=>({...t,get:(e,n,r)=>ye(e,n)||t.get(e,n,r),has:(e,n)=>!!ye(e,n)||t.has(e,n)}));class Cn{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(Tn(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function Tn(t){return t.getComponent()?.type==="VERSION"}const ee="@firebase/app",we="0.14.10";const I=new Ue("@firebase/app"),Dn="@firebase/app-compat",Nn="@firebase/analytics-compat",Rn="@firebase/analytics",kn="@firebase/app-check-compat",jn="@firebase/app-check",Bn="@firebase/auth",$n="@firebase/auth-compat",Mn="@firebase/database",On="@firebase/data-connect",Pn="@firebase/database-compat",Fn="@firebase/functions",Ln="@firebase/functions-compat",Hn="@firebase/installations",zn="@firebase/installations-compat",Un="@firebase/messaging",Vn="@firebase/messaging-compat",qn="@firebase/performance",Wn="@firebase/performance-compat",Gn="@firebase/remote-config",Kn="@firebase/remote-config-compat",Yn="@firebase/storage",Jn="@firebase/storage-compat",Xn="@firebase/firestore",Zn="@firebase/ai",Qn="@firebase/firestore-compat",er="firebase";const te="[DEFAULT]",tr={[ee]:"fire-core",[Dn]:"fire-core-compat",[Rn]:"fire-analytics",[Nn]:"fire-analytics-compat",[jn]:"fire-app-check",[kn]:"fire-app-check-compat",[Bn]:"fire-auth",[$n]:"fire-auth-compat",[Mn]:"fire-rtdb",[On]:"fire-data-connect",[Pn]:"fire-rtdb-compat",[Fn]:"fire-fn",[Ln]:"fire-fn-compat",[Hn]:"fire-iid",[zn]:"fire-iid-compat",[Un]:"fire-fcm",[Vn]:"fire-fcm-compat",[qn]:"fire-perf",[Wn]:"fire-perf-compat",[Gn]:"fire-rc",[Kn]:"fire-rc-compat",[Yn]:"fire-gcs",[Jn]:"fire-gcs-compat",[Xn]:"fire-fst",[Qn]:"fire-fst-compat",[Zn]:"fire-vertex","fire-js":"fire-js",[er]:"fire-js-all"};const B=new Map,nr=new Map,ne=new Map;function Ie(t,e){try{t.container.addComponent(e)}catch(n){I.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function C(t){const e=t.name;if(ne.has(e))return I.debug(`There were multiple attempts to register component ${e}.`),!1;ne.set(e,t);for(const n of B.values())Ie(n,t);for(const n of nr.values())Ie(n,t);return!0}function H(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}const rr={"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.","invali
1d-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."},x=new L("app","Firebase",rr);class sr{constructor(e,n,r){this._isDeleted=!1,this._options={...e},this._config={...n},this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new E("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}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(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw x.create("app-deleted",{appName:this._name})}}function Ge(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r={name:te,automaticDataCollectionEnabled:!0,...e},s=r.name;if(typeof s!="string"||!s)throw x.create("bad-app-name",{appName:String(s)});if(n||(n=Le()),!n)throw x.create("no-options");const a=B.get(s);if(a){if(M(n,a.options)&&M(r,a.config))return a;throw x.create("duplicate-app",{appName:s})}const i=new fn(s);for(const l of ne.values())i.addComponent(l);const o=new sr(n,r,i);return B.set(s,o),o}function ar(t=te){const e=B.get(t);if(!e&&t===te&&Le())return Ge();if(!e)throw x.create("no-app",{appName:t});return e}function ir(){return Array.from(B.values())}function v(t,e,n){let r=tr[t]??t;n&&(r+=`-${n}`);const s=r.match(/\s|\//),a=e.match(/\s|\//);if(s||a){const i=[`Unable to register library "${r}" with version "${e}":`];s&&i.push(`library name "${r}" contains illegal characters (whitespace or "/")`),s&&a&&i.push("and"),a&&i.push(`version name "${e}" contains illegal characters (whitespace or "/")`),I.warn(i.join(" "));return}C(new E(`${r}-version`,()=>({library:r,version:e}),"VERSION"))}const or="firebase-heartbeat-database",cr=1,$="firebase-heartbeat-store";let G=null;function Ke(){return G||(G=We(or,cr,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore($)}catch(n){console.warn(n)}}}}).catch(t=>{throw x.create("idb-open",{originalErrorMessage:t.message})})),G}async function lr(t){try{const n=(await Ke()).transaction($),r=await n.objectStore($).get(Ye(t));return await n.done,r}catch(e){if(e instanceof N)I.warn(e.message);else{const n=x.create("idb-get",{originalErrorMessage:e?.message});I.warn(n.message)}}}async function _e(t,e){try{const r=(await Ke()).transaction($,"readwrite");await r.objectStore($).put(e,Ye(t)),await r.done}catch(n){if(n instanceof N)I.warn(n.message);else{const r=x.create("idb-set",{originalErrorMessage:n?.message});I.warn(r.message)}}}function Ye(t){return`${t.name}!${t.options.appId}`}const dr=1024,ur=30;class fr{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new pr(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){try{const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=xe();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(s=>s.date===r))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats.length>ur){const s=mr(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(s,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){I.warn(e)}}async getHeartbeatsHeader(){try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return"";const e=xe(),{heartbeatsToSend:n,unsentEntries:r}=hr(this._heartbeatsCache.heartbeats),s=Fe(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),s}catch(e){return I.warn(e),""}}}function xe(){return new Date().toISOString().substring(0,10)}function hr(t,e=dr){const n=[];let r=t.slice();for(const s of t){const a=n.find(i=>i.agent===s.agent);if(a){if(a.dates.push(s.date),ve(n)>e){a.dates.pop();break}}else if(n.push({agent:s.agent,dates:[s.date]}),ve(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class pr{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return He()?ze().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await lr(this.app);return n?.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){if(await this._canUseIndexedDBPromise){const r=await this.read();return _e(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){if(await this._canUseIndexedDBPromise){const r=await this.read();return _e(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}else return}}function ve(t){return Fe(JSON.stringify({version:2,heartbeats:t})).length}function mr(t){if(t.length===0)return-1;let e=0,n=t[0].date;for(let r=1;r<t.length;r++)t[r].date<n&&(n=t[r].date,e=r);return e}function gr(t){C(new E("platform-logger",e=>new Cn(e),"PRIVATE")),C(new E("heartbeat",e=>new fr(e),"PRIVATE")),v(ee,we,t),v(ee,we,"esm2020"),v("fire-js","")}gr("");const Je="@firebase/installations",oe="0.6.21";const Xe=1e4,Ze=`w:${oe}`,Qe="FIS_v2",br="https://firebaseinstallations.googleapis.com/v1",yr=3600*1e3,wr="installations",Ir="Installations";const _r={"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."},T=new L(wr,Ir,_r);function et(t){return t instanceof N&&t.code.includes("request-failed")}function tt({projectId:t}){return`${br}/projects/${t}/installations`}
1function nt(t){return{token:t.token,requestStatus:2,expiresIn:vr(t.expiresIn),creationTime:Date.now()}}async function rt(t,e){const r=(await e.json()).error;return T.create("request-failed",{requestName:t,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function st({apiKey:t}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function xr(t,{refreshToken:e}){const n=st(t);return n.append("Authorization",Er(e)),n}async function at(t){const e=await t();return e.status>=500&&e.status<600?t():e}function vr(t){return Number(t.replace("s","000"))}function Er(t){return`${Qe} ${t}`}async function Sr({appConfig:t,heartbeatServiceProvider:e},{fid:n}){const r=tt(t),s=st(t),a=e.getImmediate({optional:!0});if(a){const c=await a.getHeartbeatsHeader();c&&s.append("x-firebase-client",c)}const i={fid:n,authVersion:Qe,appId:t.appId,sdkVersion:Ze},o={method:"POST",headers:s,body:JSON.stringify(i)},l=await at(()=>fetch(r,o));if(l.ok){const c=await l.json();return{fid:c.fid||n,registrationStatus:2,refreshToken:c.refreshToken,authToken:nt(c.authToken)}}else throw await rt("Create Installation",l)}function it(t){return new Promise(e=>{setTimeout(e,t)})}function Ar(t){return btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")}const Cr=/^[cdef][\w-]{21}$/,re="";function Tr(){try{const t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;const n=Dr(t);return Cr.test(n)?n:re}catch{return re}}function Dr(t){return Ar(t).substr(0,22)}function z(t){return`${t.appName}!${t.appId}`}const ot=new Map;function ct(t,e){const n=z(t);lt(n,e),Nr(n,e)}function lt(t,e){const n=ot.get(t);if(n)for(const r of n)r(e)}function Nr(t,e){const n=Rr();n&&n.postMessage({key:t,fid:e}),kr()}let A=null;function Rr(){return!A&&"BroadcastChannel"in self&&(A=new BroadcastChannel("[Firebase] FID Change"),A.onmessage=t=>{lt(t.data.key,t.data.fid)}),A}function kr(){ot.size===0&&A&&(A.close(),A=null)}const jr="firebase-installations-database",Br=1,D="firebase-installations-store";let K=null;function ce(){return K||(K=We(jr,Br,{upgrade:(t,e)=>{e===0&&t.createObjectStore(D)}})),K}async function O(t,e){const n=z(t),s=(await ce()).transaction(D,"readwrite"),a=s.objectStore(D),i=await a.get(n);return await a.put(e,n),await s.done,(!i||i.fid!==e.fid)&&ct(t,e.fid),e}async function dt(t){const e=z(t),r=(await ce()).transaction(D,"readwrite");await r.objectStore(D).delete(e),await r.done}async function U(t,e){const n=z(t),s=(await ce()).transaction(D,"readwrite"),a=s.objectStore(D),i=await a.get(n),o=e(i);return o===void 0?await a.delete(n):await a.put(o,n),await s.done,o&&(!i||i.fid!==o.fid)&&ct(t,o.fid),o}async function le(t){let e;const n=await U(t.appConfig,r=>{const s=$r(r),a=Mr(t,s);return e=a.registrationPromise,a.installationEntry});return n.fid===re?{installationEntry:await e}:{installationEntry:n,registrationPromise:e}}function $r(t){const e=t||{fid:Tr(),registrationStatus:0};return ut(e)}function Mr(t,e){if(e.registrationStatus===0){if(!navigator.onLine){const s=Promise.reject(T.create("app-offline"));return{installationEntry:e,registrationPromise:s}}const n={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},r=Or(t,n);return{installationEntry:n,registrationPromise:r}}else return e.registrationStatus===1?{installationEntry:e,registrationPromise:Pr(t)}:{installationEntry:e}}async function Or(t,e){try{const n=await Sr(t,e);return O(t.appConfig,n)}catch(n){throw et(n)&&n.customData.serverCode===409?await dt(t.appConfig):await O(t.appConfig,{fid:e.fid,registrationStatus:0}),n}}async function Pr(t){let e=await Ee(t.appConfig);for(;e.registrationStatus===1;)await it(100),e=await Ee(t.appConfig);if(e.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await le(t);return r||n}return e}function Ee(t){return U(t,e=>{if(!e)throw T.create("installation-not-found");return ut(e)})}function ut(t){return Fr(t)?{fid:t.fid,registrationStatus:0}:t}function Fr(t){return t.registrationStatus===1&&t.registrationTime+Xe<Date.now()}async function Lr({appConfig:t,heartbeatServiceProvider:e},n){const r=Hr(t,n),s=xr(t,n),a=e.getImmediate({optional:!0});if(a){const c=await a.getHeartbeatsHeader();c&&s.append("x-firebase-client",c)}const i={installation:{sdkVersion:Ze,appId:t.appId}},o={method:"POST",headers:s,body:JSON.stringify(i)},l=await at(()=>fetch(r,o));if(l.ok){const c=await l.json();return nt(c)}else throw await rt("Generate Auth Token",l)}function Hr(t,{fid:e}){return`${tt(t)}/${e}/authTokens:generate`}async function de(t,e=!1){let n;const r=await U(t.appConfig,a=>{if(!ft(a))throw T.create("not-registered");const i=a.authToken;if(!e&&Vr(i))return a;
1if(i.requestStatus===1)return n=zr(t,e),a;{if(!navigator.onLine)throw T.create("app-offline");const o=Wr(a);return n=Ur(t,o),o}});return n?await n:r.authToken}async function zr(t,e){let n=await Se(t.appConfig);for(;n.authToken.requestStatus===1;)await it(100),n=await Se(t.appConfig);const r=n.authToken;return r.requestStatus===0?de(t,e):r}function Se(t){return U(t,e=>{if(!ft(e))throw T.create("not-registered");const n=e.authToken;return Gr(n)?{...e,authToken:{requestStatus:0}}:e})}async function Ur(t,e){try{const n=await Lr(t,e),r={...e,authToken:n};return await O(t.appConfig,r),n}catch(n){if(et(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await dt(t.appConfig);else{const r={...e,authToken:{requestStatus:0}};await O(t.appConfig,r)}throw n}}function ft(t){return t!==void 0&&t.registrationStatus===2}function Vr(t){return t.requestStatus===2&&!qr(t)}function qr(t){const e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+yr}function Wr(t){const e={requestStatus:1,requestTime:Date.now()};return{...t,authToken:e}}function Gr(t){return t.requestStatus===1&&t.requestTime+Xe<Date.now()}async function Kr(t){const e=t,{installationEntry:n,registrationPromise:r}=await le(e);return r?r.catch(console.error):de(e).catch(console.error),n.fid}async function Yr(t,e=!1){const n=t;return await Jr(n),(await de(n,e)).token}async function Jr(t){const{registrationPromise:e}=await le(t);e&&await e}function Xr(t){if(!t||!t.options)throw Y("App Configuration");if(!t.name)throw Y("App Name");const e=["projectId","apiKey","appId"];for(const n of e)if(!t.options[n])throw Y(n);return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}function Y(t){return T.create("missing-app-config-values",{valueName:t})}const ht="installations",Zr="installations-internal",Qr=t=>{const e=t.getProvider("app").getImmediate(),n=Xr(e),r=H(e,"heartbeat");return{app:e,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},es=t=>{const e=t.getProvider("app").getImmediate(),n=H(e,ht).getImmediate();return{getId:()=>Kr(n),getToken:s=>Yr(n,s)}};function ts(){C(new E(ht,Qr,"PUBLIC")),C(new E(Zr,es,"PRIVATE"))}ts();v(Je,oe);v(Je,oe,"esm2020");const P="analytics",ns="firebase_id",rs="origin",ss=60*1e3,as="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",ue="https://www.googletagmanager.com/gtag/js";const g=new Ue("@firebase/analytics");const is={"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","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}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invali
1d-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."},b=new L("analytics","Analytics",is);function os(t){if(!t.startsWith(ue)){const e=b.create("invalid-gtag-resource",{gtagURL:t});return g.warn(e.message),""}return t}function pt(t){return Promise.all(t.map(e=>e.catch(n=>n)))}function cs(t,e){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(t,e)),n}function ls(t,e){const n=cs("firebase-js-sdk-policy",{createScriptURL:os}),r=document.createElement("script"),s=`${ue}?l=${t}&id=${e}`;r.src=n?n?.createScriptURL(s):s,r.async=!0,document.head.appendChild(r)}function ds(t){let e=[];return Array.isArray(window[t])?e=window[t]:window[t]=e,e}async function us(t,e,n,r,s,a){const i=r[s];try{if(i)await e[i];else{const l=(await pt(n)).find(c=>c.measurementId===s);l&&await e[l.appId]}}catch(o){g.error(o)}t("config",s,a)}async function fs(t,e,n,r,s){try{let a=[];if(s&&s.send_to){let i=s.send_to;Array.isArray(i)||(i=[i]);const o=await pt(n);for(const l of i){const c=o.find(m=>m.measurementId===l),u=c&&e[c.appId];if(u)a.push(u);else{a=[];break}}}a.length===0&&(a=Object.values(e)),await Promise.all(a),t("event",r,s||{})}catch(a){g.error(a)}}function hs(t,e,n,r){async function s(a,...i){try{if(a==="event"){const[o,l]=i;await fs(t,e,n,o,l)}else if(a==="config"){const[o,l]=i;await us(t,e,n,r,o,l)}else if(a==="consent"){const[o,l]=i;t("consent",o,l)}else if(a==="get"){const[o,l,c]=i;t("get",o,l,c)}else if(a==="set"){const[o]=i;t("set",o)}else t(a,...i)}catch(o){g.error(o)}}return s}function ps(t,e,n,r,s){let a=function(...i){window[r].push(arguments)};return window[s]&&typeof window[s]=="function"&&(a=window[s]),window[s]=hs(a,t,e,n),{gtagCore:a,wrappedGtag:window[s]}}function ms(t){const e=window.document.getElementsByTagName("script");for(const n of Object.values(e))if(n.src&&n.src.includes(ue)&&n.src.includes(t))return n;return null}const gs=30,bs=1e3;class ys{constructor(e={},n=bs){this.throttleMetadata=e,this.intervalMillis=n}getThrottleMetadata(e){return this.throttleMetadata[e]}setThrottleMetadata(e,n){this.throttleMetadata[e]=n}deleteThrottleMetadata(e){delete this.throttleMetadata[e]}}const mt=new ys;function ws(t){return new Headers({Accept:"application/json","x-goog-api-key":t})}async function Is(t){const{appId:e,apiKey:n}=t,r={method:"GET",headers:ws(n)},s=as.replace("{app-id}",e),a=await fetch(s,r);if(a.status!==200&&a.status!==304){let i="";try{const o=await a.json();o.error?.message&&(i=o.error.message)}catch{}throw b.create("config-fetch-failed",{httpStatus:a.status,responseMessage:i})}return a.json()}async function _s(t,e=mt,n){const{appId:r,apiKey:s,measurementId:a}=t.options;if(!r)throw b.create("no-app-id");if(!s){if(a)return{measurementId:a,appId:r};throw b.create("no-api-key")}const i=e.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},o=new Es;return setTimeout(async()=>{o.abort()},ss),gt({appId:r,apiKey:s,measurementId:a},i,o,e)}async function gt(t,{throttleEndTimeMillis:e,backoffCount:n},r,s=mt){const{appId:a,measurementId:i}=t;try{await xs(r,e)}catch(o){if(i)return g.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. [${o?.message}]`),{appId:a,measurementId:i};throw o}try{const o=await Is(t);return s.deleteThrottleMetadata(a),o}catch(o){const l=o;if(!vs(l)){if(s.deleteThrottleMetadata(a),i)return g.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}]`),{appId:a,measurementId:i};throw o}const c=Number(l?.customData?.httpStatus)===503?me(n,s.intervalMillis,gs):me(n,s.intervalMillis),u={throttleEndTimeMillis:Date.now()+c,backoffCount:n+1};return s.setThrottleMetadata(a,u),g.debug(`Calling attemptFetch again in ${c} millis`),gt(t,u,r,s)}}function xs(t,e){return new Promise((n,r)=>{const s=Math.max(e-Date.now(),0),a=setTimeout(n,s);t.addEventListener(()=>{clearTimeout(a),r(b.create("fetch-throttle",{throttleEndTimeMillis:e}))})})}function vs(t){if(!(t instanceof N)||!t.customData)return!1;const e=Number(t.customData.httpStatus);return e===429||e===500||e===503||e===504}class Es{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}
1abort(){this.listeners.forEach(e=>e())}}async function Ss(t,e,n,r,s){if(s&&s.global){t("event",n,r);return}else{const a=await e,i={...r,send_to:a};t("event",n,i)}}async function As(t,e,n,r){if(r&&r.global){const s={};for(const a of Object.keys(n))s[`user_properties.${a}`]=n[a];return t("set",s),Promise.resolve()}else{const s=await e;t("config",s,{update:!0,user_properties:n})}}async function Cs(){if(He())try{await ze()}catch(t){return g.warn(b.create("indexeddb-unavailable",{errorInfo:t?.toString()}).message),!1}else return g.warn(b.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;return!0}async function Ts(t,e,n,r,s,a,i){const o=_s(t);o.then(p=>{n[p.measurementId]=p.appId,t.options.measurementId&&p.measurementId!==t.options.measurementId&&g.warn(`The measurement ID in the local Firebase config (${t.options.measurementId}) does not match the measurement ID fetched from the server (${p.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(p=>g.error(p)),e.push(o);const l=Cs().then(p=>{if(p)return r.getId()}),[c,u]=await Promise.all([o,l]);ms(a)||ls(a,c.measurementId),s("js",new Date);const m=i?.config??{};return m[rs]="firebase",m.update=!0,u!=null&&(m[ns]=u),s("config",c.measurementId,m),c.measurementId}class Ds{constructor(e){this.app=e}_delete(){return delete R[this.app.options.appId],Promise.resolve()}}let R={},Ae=[];const Ce={};let J="dataLayer",Ns="gtag",Te,fe,De=!1;function Rs(){const t=[];if(Qt()&&t.push("This is a browser extension environment."),en()||t.push("Cookies are not available."),t.length>0){const e=t.map((r,s)=>`(${s+1}) ${r}`).join(" "),n=b.create("invalid-analytics-context",{errorInfo:e});g.warn(n.message)}}function ks(t,e,n){Rs();const r=t.options.appId;if(!r)throw b.create("no-app-id");if(!t.options.apiKey)if(t.options.measurementId)g.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 ${t.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw b.create("no-api-key");if(R[r]!=null)throw b.create("already-exists",{id:r});if(!De){ds(J);const{wrappedGtag:a,gtagCore:i}=ps(R,Ae,Ce,J,Ns);fe=a,Te=i,De=!0}return R[r]=Ts(t,Ae,Ce,e,Te,J,n),new Ds(t)}function Ne(t=ar()){t=ae(t);const e=H(t,P);return e.isInitialized()?e.getImmediate():js(t)}function js(t,e={}){const n=H(t,P);if(n.isInitialized()){const s=n.getImmediate();if(M(e,n.getOptions()))return s;throw b.create("already-initialized")}return n.initialize({options:e})}function Bs(t,e,n){t=ae(t),As(fe,R[t.app.options.appId],e,n).catch(r=>g.error(r))}function $s(t,e,n,r){t=ae(t),Ss(fe,R[t.app.options.appId],e,n,r).catch(s=>g.error(s))}const Re="@firebase/analytics",ke="0.10.21";function Ms(){C(new E(P,(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),s=e.getProvider("installations-internal").getImmediate();return ks(r,s,n)},"PUBLIC")),C(new E("analytics-internal",t,"PRIVATE")),v(Re,ke),v(Re,ke,"esm2020");function t(e){try{const n=e.getProvider(P).getImmediate();return{logEvent:(r,s,a)=>$s(n,r,s,a),setUserProperties:(r,s)=>Bs(n,r,s)}}catch(n){throw b.create("interop-component-reg-failed",{reason:n})}}}Ms();var Os="firebase",Ps="12.11.0";v(Os,Ps,"app");const Fs={apiKey:"AIzaSyDh1_NpJKEXz4w2t7yZE3ijwULw1mEeY_k",authDomain:"audrey-fella.firebaseapp.com",projectId:"audrey-fella",storageBucket:"audrey-fella.appspot.com",messagingSenderId:"624746183073",appId:"1:624746183073:web:008eb3812030ac7f7f73e0",measurementId:"G-G11KWG8JCQ"};let j=null;const Ls=()=>{const t=ir();if(t.length>0)return j||(j=Ne(t[0])),{app:t[0],analytics:j};const e=Ge(Fs);return j=Ne(e),{app:e,analytics:j}};function Hs(){const t=y.c(1);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],t[0]=e):e=t[0],It.useEffect(zs,e)}function zs(){Ls()}const Us=` 2window.dataLayer = window.dataLayer || []; 3function gtag(){dataLayer.push(arguments);} 4gtag('consent', 'default', { 5 'ad_storage': 'denied', 6 'ad_user_data': 'denied', 7 'ad_personalization': 'denied', 8 'analytics_storage': 'denied' 9}); 10// Check if user already gave consent 11var consent = localStorage.getItem('cookie-consent'); 12if (consent === 'granted') { 13 gtag('consent', 'update', { 14 'ad_storage': 'granted', 15 'ad_user_data': 'granted', 16 'ad_personalization': 'granted',
17 'analytics_storage': 'granted' 18 }); 19} 20`,Ks=()=>[{title:"Audrey Fella"},{name:"description",content:"Auteur, essayiste et scénariste française, Audrey Fella est lâauteur de plus dâune dizaine de livres sur les femmes et le sacré, la mystique chrétienne et laïque, le chamanisme au féminin, et de nombreuses figures comme la visionnaire Hildegarde de Bingen, lâécrivaine Christiane Singer, la chorégraphe Carolyn Carlson, la metteuse en scène Irina Brook, la chanteuse Camille et la peintre Frédérique Lemarchand."},{name:"keywords",content:"Audrey Fella, audreyfella, Femmes chamanes, Chamanisme, Spiritualité, Histoire, Mamaeditions, Mama Ãditions, Hildegarde de Bingen, Ãternel féminin, Christiane Singer, Fécondité spirituelle, Sexualités, Reine Zénobie, Aliénor d'Aquitaine, Michelle Perrot, Autrice, Essayiste, Scénariste"}],Ys=_t(function(){const e=y.c(4),{lang:n}=vt();Hs();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=d.jsxs("head",{children:[d.jsx("meta",{charSet:"utf-8"}),d.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, viewport-fit=cover"}),d.jsx("meta",{name:"theme-color",content:"#F0F3F5"}),d.jsx("script",{dangerouslySetInnerHTML:{__html:Us}}),d.jsx("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),d.jsx("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),d.jsx("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),d.jsx("link",{rel:"manifest",href:"/site.webmanifest"}),d.jsx(je,{}),d.jsx(Be,{})]}),e[0]=r):r=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=d.jsxs("body",{className:"bg-[#fdfdfd]",children:[d.jsx(Et,{}),d.jsx(Bt,{}),d.jsx(St,{}),d.jsx($e,{})]}),e[1]=s):s=e[1];let a;return e[2]!==n?(a=d.jsxs("html",{lang:n,className:"lg:scroll-smooth",children:[r,s]}),e[2]=n,e[3]=a):a=e[3],a}),Js=xt(function(){const e=y.c(2);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=d.jsxs("head",{children:[d.jsx("meta",{charSet:"utf-8"}),d.jsx("meta",{name:"theme-color",content:"#F0F3F5"}),d.jsx("title",{children:"Erreur !"}),d.jsx(je,{}),d.jsx(Be,{})]}),e[0]=n):n=e[0];let r;return e[1]===Symbol.for("react.memo_cache_sentinel")?(r=d.jsxs("html",{lang:"fr",children:[n,d.jsxs("body",{className:"bg-[#fdfdfd]",children:[d.jsx(Vs,{}),d.jsx($e,{})]})]}),e[1]=r):r=e[1],r});function Vs(){const t=y.c(14),e=At();if(e instanceof Error){let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=h("mx-auto my-4 h-full max-w-6xl","flex flex-col items-center justify-center","space-y-2 rounded-xl bg-red-300 px-4 py-4"),t[0]=n):n=t[0];let r;t[1]!==e.message?(r=d.jsxs("h1",{className:"text-4xl font-bold text-red-500",children:["Oups ",e.message,"!"]}),t[1]=e.message,t[2]=r):r=t[2];let s;t[3]!==e.stack?(s=d.jsxs("h2",{className:"text-base",children:["The stack trace is: ",e.stack]}),t[3]=e.stack,t[4]=s):s=t[4];let a;return t[5]!==r||t[6]!==s?(a=d.jsxs("div",{className:n,children:[r,s]}),t[5]=r,t[6]=s,t[7]=a):a=t[7],a}if(!Ct(e)){let n;return t[8]===Symbol.for("react.memo_cache_sentinel")?(n=d.jsx("div",{className:h("mx-auto my-4 h-full max-w-6xl","flex flex-col items-center justify-center","space-y-2 rounded-xl bg-red-300 px-4 py-4"),children:d.jsx("h1",{className:"text-4xl font-bold text-red-500",children:"Une erreur inattendue est survenue"})}),t[8]=n):n=t[8],n}switch(e.status){case 404:{let n;return t[9]===Symbol.for("react.memo_cache_sentinel")?(n=d.jsx(Ft,{}),t[9]=n):n=t[9],n}case 500:{let n;return t[10]===Symbol.for("react.memo_cache_sentinel")?(n=d.jsx(Lt,{}),t[10]=n):n=t[10],n}default:{let n;return t[11]!==e.status||t[12]!==e.statusText?(n=d.jsx(Ht,{code:e.status,message:e.statusText}),t[11]=e.status,t[12]=e.statusText,t[13]=n):n=t[13],n}}}export{Js as ErrorBoundary,Ys as default,Ks as meta};
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.