From f796dec337dc8e0f0639349c5da5972eb87caee5 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Tue, 4 Mar 2025 22:56:45 +0200 Subject: [PATCH] --- ... => Base.astro_astro_type_script_index_0_lang.ClhA5AL1.js} | 4 ++-- ...Base.astro_astro_type_script_index_0_lang.ClhA5AL1.js.map} | 2 +- ...entRouter.astro_astro_type_script_index_0_lang.C8jTZiCo.js | 1 + ...uter.astro_astro_type_script_index_0_lang.C8jTZiCo.js.map} | 2 +- ...entRouter.astro_astro_type_script_index_0_lang.DhkwVEGS.js | 1 - Target/_astro/index.esm.CDlMbkfU.js | 1 + .../{index.esm.D9h2tUuG.js.map => index.esm.CDlMbkfU.js.map} | 2 +- Target/_astro/index.esm.D9h2tUuG.js | 1 - Target/index.html | 2 +- 9 files changed, 8 insertions(+), 8 deletions(-) rename Target/_astro/{Base.astro_astro_type_script_index_0_lang.CHHzqNhJ.js => Base.astro_astro_type_script_index_0_lang.ClhA5AL1.js} (95%) rename Target/_astro/{Base.astro_astro_type_script_index_0_lang.CHHzqNhJ.js.map => Base.astro_astro_type_script_index_0_lang.ClhA5AL1.js.map} (81%) create mode 100644 Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.C8jTZiCo.js rename Target/_astro/{ClientRouter.astro_astro_type_script_index_0_lang.DhkwVEGS.js.map => ClientRouter.astro_astro_type_script_index_0_lang.C8jTZiCo.js.map} (54%) delete mode 100644 Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.DhkwVEGS.js create mode 100644 Target/_astro/index.esm.CDlMbkfU.js rename Target/_astro/{index.esm.D9h2tUuG.js.map => index.esm.CDlMbkfU.js.map} (79%) delete mode 100644 Target/_astro/index.esm.D9h2tUuG.js diff --git a/Target/_astro/Base.astro_astro_type_script_index_0_lang.CHHzqNhJ.js b/Target/_astro/Base.astro_astro_type_script_index_0_lang.ClhA5AL1.js similarity index 95% rename from Target/_astro/Base.astro_astro_type_script_index_0_lang.CHHzqNhJ.js rename to Target/_astro/Base.astro_astro_type_script_index_0_lang.ClhA5AL1.js index c9efe5b6..d04d14ae 100644 --- a/Target/_astro/Base.astro_astro_type_script_index_0_lang.CHHzqNhJ.js +++ b/Target/_astro/Base.astro_astro_type_script_index_0_lang.ClhA5AL1.js @@ -51,7 +51,7 @@ const f = "modulepreload", }; ( await E(async () => { - const { initializeApp: o } = await import("./index.esm.D9h2tUuG.js"); + const { initializeApp: o } = await import("./index.esm.CDlMbkfU.js"); return { initializeApp: o }; }, []) ).initializeApp({ @@ -64,4 +64,4 @@ const f = "modulepreload", appId: "1:451350706276:web:b8dcaa0d46ce2aca058771", measurementId: "G-9E2P7HPRNM", }); -//# sourceMappingURL=Base.astro_astro_type_script_index_0_lang.CHHzqNhJ.js.map +//# sourceMappingURL=Base.astro_astro_type_script_index_0_lang.ClhA5AL1.js.map diff --git a/Target/_astro/Base.astro_astro_type_script_index_0_lang.CHHzqNhJ.js.map b/Target/_astro/Base.astro_astro_type_script_index_0_lang.ClhA5AL1.js.map similarity index 81% rename from Target/_astro/Base.astro_astro_type_script_index_0_lang.CHHzqNhJ.js.map rename to Target/_astro/Base.astro_astro_type_script_index_0_lang.ClhA5AL1.js.map index bcd9e760..88620b22 100644 --- a/Target/_astro/Base.astro_astro_type_script_index_0_lang.CHHzqNhJ.js.map +++ b/Target/_astro/Base.astro_astro_type_script_index_0_lang.ClhA5AL1.js.map @@ -1 +1 @@ -{"version":3,"mappings":"","names":[],"ignoreList":[],"sources":[],"sourcesContent":[],"file":"_astro/Base.astro_astro_type_script_index_0_lang.CHHzqNhJ.js"} \ No newline at end of file +{"version":3,"mappings":"","names":[],"ignoreList":[],"sources":[],"sourcesContent":[],"file":"_astro/Base.astro_astro_type_script_index_0_lang.ClhA5AL1.js"} \ No newline at end of file diff --git a/Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.C8jTZiCo.js b/Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.C8jTZiCo.js new file mode 100644 index 00000000..df63d4d3 --- /dev/null +++ b/Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.C8jTZiCo.js @@ -0,0 +1 @@ +import{i as B}from"./index.BqqcOND9.js";const y="data-astro-transition-persist",D=new Set;function O(t){const e=t.src?new URL(t.src,location.href).href:t.textContent;return!!D.has(e)||(D.add(e),!1)}function W(t){for(const e of t.scripts)!e.hasAttribute("data-astro-rerun")&&O(e)&&(e.dataset.astroExec="")}function V(t){const e=document.documentElement,n=[...e.attributes].filter((({name:t})=>(e.removeAttribute(t),t.startsWith("data-astro-"))));[...t.documentElement.attributes,...n].forEach((({name:t,value:n})=>e.setAttribute(t,n)))}function K(t){for(const e of Array.from(document.head.children)){const n=z(e,t);n?n.remove():e.remove()}document.head.append(...t.head.children)}function j(t,e){e.replaceWith(t);for(const n of e.querySelectorAll(`[${y}]`)){const e=n.getAttribute(y),o=t.querySelector(`[${y}="${e}"]`);o&&(o.replaceWith(n),"astro-island"===o.localName&&J(n)&&!Q(n,o)&&(n.setAttribute("ssr",""),n.setAttribute("props",o.getAttribute("props"))))}}const G=()=>{const t=document.activeElement;if(t?.closest(`[${y}]`)){if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){const e=t.selectionStart,n=t.selectionEnd;return()=>E({activeElement:t,start:e,end:n})}return()=>E({activeElement:t})}return()=>E({activeElement:null})},E=({activeElement:t,start:e,end:n})=>{t&&(t.focus(),(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&("number"==typeof e&&(t.selectionStart=e),"number"==typeof n&&(t.selectionEnd=n)))},z=(t,e)=>{const n=t.getAttribute(y),o=n&&e.head.querySelector(`[${y}="${n}"]`);if(o)return o;if(t.matches("link[rel=stylesheet]")){const n=t.getAttribute("href");return e.head.querySelector(`link[rel=stylesheet][href="${n}"]`)}return null},J=t=>{const e=t.dataset.astroTransitionPersistProps;return null==e||"false"===e},Q=(t,e)=>t.getAttribute("props")===e.getAttribute("props"),Z=t=>{W(t),V(t),K(t);const e=G();j(t.body,document.body),e()},tt="astro:before-preparation",et="astro:after-preparation",nt="astro:before-swap",ot="astro:after-swap",rt=t=>document.dispatchEvent(new Event(t));class X extends Event{from;to;direction;navigationType;sourceElement;info;newDocument;signal;constructor(t,e,n,o,r,i,a,s,l,c){super(t,e),this.from=n,this.to=o,this.direction=r,this.navigationType=i,this.sourceElement=a,this.info=s,this.newDocument=l,this.signal=c,Object.defineProperties(this,{from:{enumerable:!0},to:{enumerable:!0,writable:!0},direction:{enumerable:!0,writable:!0},navigationType:{enumerable:!0},sourceElement:{enumerable:!0},info:{enumerable:!0},newDocument:{enumerable:!0,writable:!0},signal:{enumerable:!0}})}}class it extends X{formData;loader;constructor(t,e,n,o,r,i,a,s,l,c){super(tt,{cancelable:!0},t,e,n,o,r,i,a,s),this.formData=l,this.loader=c.bind(this,this),Object.defineProperties(this,{formData:{enumerable:!0},loader:{enumerable:!0,writable:!0}})}}class st extends X{direction;viewTransition;swap;constructor(t,e){super(nt,void 0,t.from,t.to,t.direction,t.navigationType,t.sourceElement,t.info,t.newDocument,t.signal),this.direction=t.direction,this.viewTransition=e,this.swap=()=>Z(this.newDocument),Object.defineProperties(this,{direction:{enumerable:!0},viewTransition:{enumerable:!0},swap:{enumerable:!0,writable:!0}})}}async function at(t,e,n,o,r,i,a,s,l){const c=new it(t,e,n,o,r,i,window.document,a,s,l);return document.dispatchEvent(c)&&(await c.loader(),c.defaultPrevented||(rt(et),"traverse"!==c.navigationType&&R({scrollX:scrollX,scrollY:scrollY}))),c}function ct(t,e){const n=new st(t,e);return document.dispatchEvent(n),n.swap(),n}const lt=history.pushState.bind(history),T=history.replaceState.bind(history),R=t=>{history.state&&(history.scrollRestoration="manual",T({...history.state,...t},""))},L=!!document.startViewTransition,P=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),Y=(t,e)=>t.pathname===e.pathname&&t.search===e.search;let f,b,v;const _=t=>document.dispatchEvent(new Event(t)),$=()=>_("astro:page-load"),ut=()=>{let t=document.createElement("div");t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),t.className="astro-route-announcer",document.body.append(t),setTimeout((()=>{let e=document.title||document.querySelector("h1")?.textContent||location.pathname;t.textContent=e}),60)},x="data-astro-transition-persist",k="data-astro-transition",S="data-astro-transition-fallback";let I,g=0;async function dt(t,e){try{const n=await fetch(t,e),o=(n.headers.get("content-type")??"").split(";",1)[0].trim();return"text/html"!==o&&"application/xhtml+xml"!==o?null:{html:await n.text(),redirected:n.redirected?n.url:void 0,mediaType:o}}catch{return null}}function q(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}function ft(){let t=Promise.resolve();for(const e of document.getElementsByTagName("script")){if(""===e.dataset.astroExec)continue;const n=e.getAttribute("type");if(n&&"module"!==n&&"text/javascript"!==n)continue;const o=document.createElement("script");o.innerHTML=e.innerHTML;for(const n of e.attributes){if("src"===n.name){const e=new Promise((t=>{o.onload=o.onerror=t}));t=t.then((()=>e))}o.setAttribute(n.name,n.value)}o.dataset.astroExec="",e.replaceWith(o)}return t}history.state?(g=history.state.index,scrollTo({left:history.state.scrollX,top:history.state.scrollY})):P()&&(T({index:g,scrollX:scrollX,scrollY:scrollY},""),history.scrollRestoration="manual");const C=(t,e,n,o,r)=>{const i=Y(e,t),a=document.title;document.title=o;let s=!1;if(t.href!==location.href&&!r)if("replace"===n.history){const e=history.state;T({...n.state,index:e.index,scrollX:e.scrollX,scrollY:e.scrollY},"",t.href)}else lt({...n.state,index:++g,scrollX:0,scrollY:0},"",t.href);if(document.title=a,v=t,i||(scrollTo({left:0,top:0,behavior:"instant"}),s=!0),r)scrollTo(r.scrollX,r.scrollY);else{if(t.hash){history.scrollRestoration="auto";const e=history.state;location.href=t.href,history.state||(T(e,""),i&&window.dispatchEvent(new PopStateEvent("popstate")))}else s||scrollTo({left:0,top:0,behavior:"instant"});history.scrollRestoration="manual"}};function mt(t){const e=[];for(const n of t.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${x}="${n.getAttribute(x)}"], link[rel=stylesheet][href="${n.getAttribute("href")}"]`)){const t=document.createElement("link");t.setAttribute("rel","preload"),t.setAttribute("as","style"),t.setAttribute("href",n.getAttribute("href")),e.push(new Promise((e=>{["load","error"].forEach((n=>t.addEventListener(n,e))),document.head.append(t)})))}return e}async function N(t,e,n,o,r){async function i(t){const e=document.getAnimations();document.documentElement.setAttribute(S,t);const n=document.getAnimations().filter((t=>!e.includes(t)&&!function(t){const e=t.effect;return!!(e&&e instanceof KeyframeEffect&&e.target)&&"infinite"===window.getComputedStyle(e.target,e.pseudoElement).animationIterationCount}(t)));return Promise.allSettled(n.map((t=>t.finished)))}if("animate"===r&&!n.transitionSkipped&&!t.signal.aborted)try{await i("old")}catch{}const a=document.title,s=ct(t,n.viewTransition);C(s.to,s.from,e,a,o),_(ot),"animate"===r&&(n.transitionSkipped||s.signal.aborted?n.viewTransitionFinished():i("new").finally((()=>n.viewTransitionFinished())))}function ht(){return f?.controller.abort(),f={controller:new AbortController}}async function U(t,e,n,o,r){const i=ht();if(!P()||location.origin!==n.origin)return i===f&&(f=void 0),void(location.href=n.href);const a=r?"traverse":"replace"===o.history?"replace":"push";if("traverse"!==a&&R({scrollX:scrollX,scrollY:scrollY}),Y(e,n)&&("back"!==t&&n.hash||"back"===t&&e.hash))return C(n,e,o,document.title,r),void(i===f&&(f=void 0));const s=await at(e,n,t,a,o.sourceElement,o.info,i.controller.signal,o.formData,(async function(t){const n=t.to.href,o={signal:t.signal};if(t.formData){o.method="POST";const n=t.sourceElement instanceof HTMLFormElement?t.sourceElement:t.sourceElement instanceof HTMLElement&&"form"in t.sourceElement?t.sourceElement.form:t.sourceElement?.closest("form");o.body=void 0!==e&&"application/x-www-form-urlencoded"===Reflect.get(HTMLFormElement.prototype,"attributes",n).getNamedItem("enctype")?.value?new URLSearchParams(t.formData):t.formData}const r=await dt(n,o);if(null===r)return void t.preventDefault();if(r.redirected){const e=new URL(r.redirected);if(e.origin!==t.to.origin)return void t.preventDefault();t.to=e}if(I??=new DOMParser,t.newDocument=I.parseFromString(r.html,r.mediaType),t.newDocument.querySelectorAll("noscript").forEach((t=>t.remove())),!t.newDocument.querySelector('[name="astro-view-transitions-enabled"]')&&!t.formData)return void t.preventDefault();const i=mt(t.newDocument);i.length&&!t.signal.aborted&&await Promise.all(i)}));if(s.defaultPrevented||s.signal.aborted)return i===f&&(f=void 0),void(s.signal.aborted||(location.href=n.href));const l=await async function(){if(b&&b.viewTransition){try{b.viewTransition.skipTransition()}catch{}try{await b.viewTransition.updateCallbackDone}catch{}}return b={transitionSkipped:!1}}();if(s.signal.aborted)i===f&&(f=void 0);else{if(document.documentElement.setAttribute(k,s.direction),L)l.viewTransition=document.startViewTransition((async()=>await N(s,o,l,r)));else{const t=(async()=>{await Promise.resolve(),await N(s,o,l,r,q())})();l.viewTransition={updateCallbackDone:t,ready:t,finished:new Promise((t=>l.viewTransitionFinished=t)),skipTransition:()=>{l.transitionSkipped=!0,document.documentElement.removeAttribute(S)}}}l.viewTransition?.updateCallbackDone.finally((async()=>{await ft(),$(),ut()})),l.viewTransition?.finished.finally((()=>{l.viewTransition=void 0,l===b&&(b=void 0),i===f&&(f=void 0),document.documentElement.removeAttribute(k),document.documentElement.removeAttribute(S)}));try{await(l.viewTransition?.updateCallbackDone)}catch(t){const e=t;console.log("[astro]",e.name,e.message,e.stack)}}}async function M(t,e){await U("forward",v,new URL(t,location.href),e??{})}function wt(t){if(!P()&&t.state)return void location.reload();if(null===t.state)return;const e=history.state,n=e.index,o=n>g?"forward":"back";g=n,U(o,v,new URL(location.href),{},e)}const F=()=>{history.state&&(scrollX!==history.state.scrollX||scrollY!==history.state.scrollY)&&R({scrollX:scrollX,scrollY:scrollY})};if(L||"none"!==q())if(v=new URL(location.href),addEventListener("popstate",wt),addEventListener("load",$),"onscrollend"in window)addEventListener("scrollend",F);else{let t,e,n,o;const r=()=>o!==history.state?.index?(clearInterval(t),void(t=void 0)):e===scrollY&&n===scrollX?(clearInterval(t),t=void 0,void F()):(e=scrollY,void(n=scrollX));addEventListener("scroll",(()=>{void 0===t&&(o=history.state?.index,e=scrollY,n=scrollX,t=window.setInterval(r,50))}),{passive:!0})}for(const t of document.getElementsByTagName("script"))O(t);function bt(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}function H(t){return void 0!==t.dataset.astroReload}(L||"none"!==bt())&&(document.addEventListener("click",(t=>{let e=t.target;if(t.composed&&(e=t.composedPath()[0]),e instanceof Element&&(e=e.closest("a, area")),!(e instanceof HTMLAnchorElement||e instanceof SVGAElement||e instanceof HTMLAreaElement))return;const n=e instanceof HTMLElement?e.target:e.target.baseVal,o=e instanceof HTMLElement?e.href:e.href.baseVal,r=new URL(o,location.href).origin;H(e)||e.hasAttribute("download")||!e.href||n&&"_self"!==n||r!==location.origin||0!==t.button||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented||(t.preventDefault(),M(o,{history:"replace"===e.dataset.astroHistory?"replace":"auto",sourceElement:e}))})),document.addEventListener("submit",(t=>{let e=t.target;if("FORM"!==e.tagName||t.defaultPrevented||H(e))return;const n=e,o=t.submitter,r=new FormData(n,o),i="string"==typeof n.action?n.action:n.getAttribute("action"),a="string"==typeof n.method?n.method:n.getAttribute("method");let s=o?.getAttribute("formaction")??i??location.pathname;const l=o?.getAttribute("formmethod")??a??"get";if("dialog"===l||location.origin!==new URL(s,location.href).origin)return;const c={sourceElement:o??n};if("get"===l){const t=new URLSearchParams(r),e=new URL(s);e.search=t.toString(),s=e.toString()}else c.formData=r;t.preventDefault(),M(s,c)})),B({prefetchAll:!0})); \ No newline at end of file diff --git a/Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.DhkwVEGS.js.map b/Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.C8jTZiCo.js.map similarity index 54% rename from Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.DhkwVEGS.js.map rename to Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.C8jTZiCo.js.map index f38fbd52..a72c2d41 100644 --- a/Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.DhkwVEGS.js.map +++ b/Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.C8jTZiCo.js.map @@ -1 +1 @@ -{"version":3,"file":"ClientRouter.astro_astro_type_script_index_0_lang.DhkwVEGS.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} \ No newline at end of file +{"version":3,"file":"ClientRouter.astro_astro_type_script_index_0_lang.C8jTZiCo.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} \ No newline at end of file diff --git a/Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.DhkwVEGS.js b/Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.DhkwVEGS.js deleted file mode 100644 index 3a96f2f6..00000000 --- a/Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.DhkwVEGS.js +++ /dev/null @@ -1 +0,0 @@ -import{i as q}from"./index.BqqcOND9.js";const y="data-astro-transition-persist";function B(t){for(const e of document.scripts)for(const n of t.scripts)if(!n.hasAttribute("data-astro-rerun")&&(!e.src&&e.textContent===n.textContent||e.src&&e.type===n.type&&e.src===n.src)){n.dataset.astroExec="";break}}function U(t){const e=document.documentElement,n=[...e.attributes].filter((({name:t})=>(e.removeAttribute(t),t.startsWith("data-astro-"))));[...t.documentElement.attributes,...n].forEach((({name:t,value:n})=>e.setAttribute(t,n)))}function W(t){for(const e of Array.from(document.head.children)){const n=j(e,t);n?n.remove():e.remove()}document.head.append(...t.head.children)}function V(t,e){e.replaceWith(t);for(const n of e.querySelectorAll(`[${y}]`)){const e=n.getAttribute(y),o=t.querySelector(`[${y}="${e}"]`);o&&(o.replaceWith(n),"astro-island"===o.localName&&G(n)&&!z(n,o)&&(n.setAttribute("ssr",""),n.setAttribute("props",o.getAttribute("props"))))}}const K=()=>{const t=document.activeElement;if(t?.closest(`[${y}]`)){if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){const e=t.selectionStart,n=t.selectionEnd;return()=>E({activeElement:t,start:e,end:n})}return()=>E({activeElement:t})}return()=>E({activeElement:null})},E=({activeElement:t,start:e,end:n})=>{t&&(t.focus(),(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&("number"==typeof e&&(t.selectionStart=e),"number"==typeof n&&(t.selectionEnd=n)))},j=(t,e)=>{const n=t.getAttribute(y),o=n&&e.head.querySelector(`[${y}="${n}"]`);if(o)return o;if(t.matches("link[rel=stylesheet]")){const n=t.getAttribute("href");return e.head.querySelector(`link[rel=stylesheet][href="${n}"]`)}return null},G=t=>{const e=t.dataset.astroTransitionPersistProps;return null==e||"false"===e},z=(t,e)=>t.getAttribute("props")===e.getAttribute("props"),J=t=>{B(t),U(t),W(t);const e=K();V(t.body,document.body),e()},Q="astro:before-preparation",Z="astro:after-preparation",tt="astro:before-swap",et="astro:after-swap",nt=t=>document.dispatchEvent(new Event(t));class H extends Event{from;to;direction;navigationType;sourceElement;info;newDocument;signal;constructor(t,e,n,o,r,i,a,s,c,l){super(t,e),this.from=n,this.to=o,this.direction=r,this.navigationType=i,this.sourceElement=a,this.info=s,this.newDocument=c,this.signal=l,Object.defineProperties(this,{from:{enumerable:!0},to:{enumerable:!0,writable:!0},direction:{enumerable:!0,writable:!0},navigationType:{enumerable:!0},sourceElement:{enumerable:!0},info:{enumerable:!0},newDocument:{enumerable:!0,writable:!0},signal:{enumerable:!0}})}}class ot extends H{formData;loader;constructor(t,e,n,o,r,i,a,s,c,l){super(Q,{cancelable:!0},t,e,n,o,r,i,a,s),this.formData=c,this.loader=l.bind(this,this),Object.defineProperties(this,{formData:{enumerable:!0},loader:{enumerable:!0,writable:!0}})}}class rt extends H{direction;viewTransition;swap;constructor(t,e){super(tt,void 0,t.from,t.to,t.direction,t.navigationType,t.sourceElement,t.info,t.newDocument,t.signal),this.direction=t.direction,this.viewTransition=e,this.swap=()=>J(this.newDocument),Object.defineProperties(this,{direction:{enumerable:!0},viewTransition:{enumerable:!0},swap:{enumerable:!0,writable:!0}})}}async function it(t,e,n,o,r,i,a,s,c){const l=new ot(t,e,n,o,r,i,window.document,a,s,c);return document.dispatchEvent(l)&&(await l.loader(),l.defaultPrevented||(nt(Z),"traverse"!==l.navigationType&&R({scrollX:scrollX,scrollY:scrollY}))),l}function st(t,e){const n=new rt(t,e);return document.dispatchEvent(n),n.swap(),n}const at=history.pushState.bind(history),T=history.replaceState.bind(history),R=t=>{history.state&&(history.scrollRestoration="manual",T({...history.state,...t},""))},P=!!document.startViewTransition,x=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),O=(t,e)=>t.pathname===e.pathname&&t.search===e.search;let f,b,v;const X=t=>document.dispatchEvent(new Event(t)),Y=()=>X("astro:page-load"),ct=()=>{let t=document.createElement("div");t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),t.className="astro-route-announcer",document.body.append(t),setTimeout((()=>{let e=document.title||document.querySelector("h1")?.textContent||location.pathname;t.textContent=e}),60)},D="data-astro-transition-persist",L="data-astro-transition",S="data-astro-transition-fallback";let k,g=0;async function lt(t,e){try{const n=await fetch(t,e),o=(n.headers.get("content-type")??"").split(";",1)[0].trim();return"text/html"!==o&&"application/xhtml+xml"!==o?null:{html:await n.text(),redirected:n.redirected?n.url:void 0,mediaType:o}}catch{return null}}function _(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}function ut(){let t=Promise.resolve();for(const e of document.getElementsByTagName("script")){if(""===e.dataset.astroExec)continue;const n=e.getAttribute("type");if(n&&"module"!==n&&"text/javascript"!==n)continue;const o=document.createElement("script");o.innerHTML=e.innerHTML;for(const n of e.attributes){if("src"===n.name){const e=new Promise((t=>{o.onload=o.onerror=t}));t=t.then((()=>e))}o.setAttribute(n.name,n.value)}o.dataset.astroExec="",e.replaceWith(o)}return t}history.state?(g=history.state.index,scrollTo({left:history.state.scrollX,top:history.state.scrollY})):x()&&(T({index:g,scrollX:scrollX,scrollY:scrollY},""),history.scrollRestoration="manual");const C=(t,e,n,o,r)=>{const i=O(e,t),a=document.title;document.title=o;let s=!1;if(t.href!==location.href&&!r)if("replace"===n.history){const e=history.state;T({...n.state,index:e.index,scrollX:e.scrollX,scrollY:e.scrollY},"",t.href)}else at({...n.state,index:++g,scrollX:0,scrollY:0},"",t.href);if(document.title=a,v=t,i||(scrollTo({left:0,top:0,behavior:"instant"}),s=!0),r)scrollTo(r.scrollX,r.scrollY);else{if(t.hash){history.scrollRestoration="auto";const e=history.state;location.href=t.href,history.state||(T(e,""),i&&window.dispatchEvent(new PopStateEvent("popstate")))}else s||scrollTo({left:0,top:0,behavior:"instant"});history.scrollRestoration="manual"}};function dt(t){const e=[];for(const n of t.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${D}="${n.getAttribute(D)}"], link[rel=stylesheet][href="${n.getAttribute("href")}"]`)){const t=document.createElement("link");t.setAttribute("rel","preload"),t.setAttribute("as","style"),t.setAttribute("href",n.getAttribute("href")),e.push(new Promise((e=>{["load","error"].forEach((n=>t.addEventListener(n,e))),document.head.append(t)})))}return e}async function I(t,e,n,o,r){async function i(t){const e=document.getAnimations();document.documentElement.setAttribute(S,t);const n=document.getAnimations().filter((t=>!e.includes(t)&&!function(t){const e=t.effect;return!!(e&&e instanceof KeyframeEffect&&e.target)&&"infinite"===window.getComputedStyle(e.target,e.pseudoElement).animationIterationCount}(t)));return Promise.allSettled(n.map((t=>t.finished)))}if("animate"===r&&!n.transitionSkipped&&!t.signal.aborted)try{await i("old")}catch{}const a=document.title,s=st(t,n.viewTransition);C(s.to,s.from,e,a,o),X(et),"animate"===r&&(n.transitionSkipped||s.signal.aborted?n.viewTransitionFinished():i("new").finally((()=>n.viewTransitionFinished())))}function ft(){return f?.controller.abort(),f={controller:new AbortController}}async function $(t,e,n,o,r){const i=ft();if(!x()||location.origin!==n.origin)return i===f&&(f=void 0),void(location.href=n.href);const a=r?"traverse":"replace"===o.history?"replace":"push";if("traverse"!==a&&R({scrollX:scrollX,scrollY:scrollY}),O(e,n)&&("back"!==t&&n.hash||"back"===t&&e.hash))return C(n,e,o,document.title,r),void(i===f&&(f=void 0));const s=await it(e,n,t,a,o.sourceElement,o.info,i.controller.signal,o.formData,(async function(t){const e=t.to.href,n={signal:t.signal};if(t.formData){n.method="POST";const e=t.sourceElement instanceof HTMLFormElement?t.sourceElement:t.sourceElement instanceof HTMLElement&&"form"in t.sourceElement?t.sourceElement.form:t.sourceElement?.closest("form");n.body="application/x-www-form-urlencoded"===e?.attributes.getNamedItem("enctype")?.value?new URLSearchParams(t.formData):t.formData}const o=await lt(e,n);if(null===o)return void t.preventDefault();if(o.redirected){const e=new URL(o.redirected);if(e.origin!==t.to.origin)return void t.preventDefault();t.to=e}if(k??=new DOMParser,t.newDocument=k.parseFromString(o.html,o.mediaType),t.newDocument.querySelectorAll("noscript").forEach((t=>t.remove())),!t.newDocument.querySelector('[name="astro-view-transitions-enabled"]')&&!t.formData)return void t.preventDefault();const r=dt(t.newDocument);r.length&&!t.signal.aborted&&await Promise.all(r)}));if(s.defaultPrevented||s.signal.aborted)return i===f&&(f=void 0),void(s.signal.aborted||(location.href=n.href));const c=await async function(){if(b&&b.viewTransition){try{b.viewTransition.skipTransition()}catch{}try{await b.viewTransition.updateCallbackDone}catch{}}return b={transitionSkipped:!1}}();if(s.signal.aborted)i===f&&(f=void 0);else{if(document.documentElement.setAttribute(L,s.direction),P)c.viewTransition=document.startViewTransition((async()=>await I(s,o,c,r)));else{const t=(async()=>{await Promise.resolve(),await I(s,o,c,r,_())})();c.viewTransition={updateCallbackDone:t,ready:t,finished:new Promise((t=>c.viewTransitionFinished=t)),skipTransition:()=>{c.transitionSkipped=!0,document.documentElement.removeAttribute(S)}}}c.viewTransition?.updateCallbackDone.finally((async()=>{await ut(),Y(),ct()})),c.viewTransition?.finished.finally((()=>{c.viewTransition=void 0,c===b&&(b=void 0),i===f&&(f=void 0),document.documentElement.removeAttribute(L),document.documentElement.removeAttribute(S)}));try{await(c.viewTransition?.updateCallbackDone)}catch(t){const e=t;console.log("[astro]",e.name,e.message,e.stack)}}}async function N(t,e){await $("forward",v,new URL(t,location.href),e??{})}function mt(t){if(!x()&&t.state)return void location.reload();if(null===t.state)return;const e=history.state,n=e.index,o=n>g?"forward":"back";g=n,$(o,v,new URL(location.href),{},e)}const M=()=>{history.state&&(scrollX!==history.state.scrollX||scrollY!==history.state.scrollY)&&R({scrollX:scrollX,scrollY:scrollY})};if(P||"none"!==_())if(v=new URL(location.href),addEventListener("popstate",mt),addEventListener("load",Y),"onscrollend"in window)addEventListener("scrollend",M);else{let t,e,n,o;const r=()=>o!==history.state?.index?(clearInterval(t),void(t=void 0)):e===scrollY&&n===scrollX?(clearInterval(t),t=void 0,void M()):(e=scrollY,void(n=scrollX));addEventListener("scroll",(()=>{void 0===t&&(o=history.state?.index,e=scrollY,n=scrollX,t=window.setInterval(r,50))}),{passive:!0})}for(const t of document.getElementsByTagName("script"))t.dataset.astroExec="";function ht(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}function F(t){return void 0!==t.dataset.astroReload}(P||"none"!==ht())&&(document.addEventListener("click",(t=>{let e=t.target;if(t.composed&&(e=t.composedPath()[0]),e instanceof Element&&(e=e.closest("a, area")),!(e instanceof HTMLAnchorElement||e instanceof SVGAElement||e instanceof HTMLAreaElement))return;const n=e instanceof HTMLElement?e.target:e.target.baseVal,o=e instanceof HTMLElement?e.href:e.href.baseVal,r=new URL(o,location.href).origin;F(e)||e.hasAttribute("download")||!e.href||n&&"_self"!==n||r!==location.origin||0!==t.button||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented||(t.preventDefault(),N(o,{history:"replace"===e.dataset.astroHistory?"replace":"auto",sourceElement:e}))})),document.addEventListener("submit",(t=>{let e=t.target;if("FORM"!==e.tagName||t.defaultPrevented||F(e))return;const n=e,o=t.submitter,r=new FormData(n,o),i="string"==typeof n.action?n.action:n.getAttribute("action"),a="string"==typeof n.method?n.method:n.getAttribute("method");let s=o?.getAttribute("formaction")??i??location.pathname;const c=o?.getAttribute("formmethod")??a??"get";if("dialog"===c||location.origin!==new URL(s,location.href).origin)return;const l={sourceElement:o??n};if("get"===c){const t=new URLSearchParams(r),e=new URL(s);e.search=t.toString(),s=e.toString()}else l.formData=r;t.preventDefault(),N(s,l)})),q({prefetchAll:!0})); \ No newline at end of file diff --git a/Target/_astro/index.esm.CDlMbkfU.js b/Target/_astro/index.esm.CDlMbkfU.js new file mode 100644 index 00000000..ace07a41 --- /dev/null +++ b/Target/_astro/index.esm.CDlMbkfU.js @@ -0,0 +1 @@ +const ee=()=>{};var H={};const W=function(e){const t=[];let r=0;for(let n=0;n>6|192,t[r++]=63&a|128):55296==(64512&a)&&n+1>18|240,t[r++]=a>>12&63|128,t[r++]=a>>6&63|128,t[r++]=63&a|128):(t[r++]=a>>12|224,t[r++]=a>>6&63|128,t[r++]=63&a|128)}return t},te=function(e){const t=[];let r=0,n=0;for(;r191&&a<224){const i=e[r++];t[n++]=String.fromCharCode((31&a)<<6|63&i)}else if(a>239&&a<365){const i=((7&a)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536;t[n++]=String.fromCharCode(55296+(i>>10)),t[n++]=String.fromCharCode(56320+(1023&i))}else{const i=e[r++],s=e[r++];t[n++]=String.fromCharCode((15&a)<<12|(63&i)<<6|63&s)}}return t.join("")},G={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:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let t=0;t>2,l=(3&a)<<4|s>>4;let d=(15&s)<<2|c>>6,u=63&c;o||(u=64,i||(d=64)),n.push(r[h],r[l],r[d],r[u])}return n.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(W(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):te(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const r=t?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let t=0;t>4;if(n.push(c),64!==s){const e=i<<4&240|s>>2;if(n.push(e),64!==o){const e=s<<6&192|o;n.push(e)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class ne extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const re=function(e){const t=W(e);return G.encodeByteArray(t,!0)},J=function(e){return re(e).replace(/\./g,"")},se=function(e){try{return G.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function ae(){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 ie=()=>ae().__FIREBASE_DEFAULTS__,oe=()=>{if(typeof process>"u"||typeof H>"u")return;const e=H.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0},ce=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&se(e[1]);return t&&JSON.parse(t)},he=()=>{try{return ee()||ie()||oe()||ce()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},le=()=>{var e;return null===(e=he())||void 0===e?void 0:e.config};class de{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,r))}}}function fe(){try{return"object"==typeof indexedDB}catch{return!1}}function ue(){return new Promise(((e,t)=>{try{let r=!0;const n="validate-browser-context-for-indexeddb-analytics-module",a=self.indexedDB.open(n);a.onsuccess=()=>{a.result.close(),r||self.indexedDB.deleteDatabase(n),e(!0)},a.onupgradeneeded=()=>{r=!1},a.onerror=()=>{var e;t((null===(e=a.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}}))}const pe="FirebaseError";class b extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name=pe,Object.setPrototypeOf(this,b.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,K.prototype.create)}}class K{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){const r=t[0]||{},n=`${this.service}/${e}`,a=this.errors[e],i=a?me(a,r):"Error",s=`${this.serviceName}: ${i} (${n}).`;return new b(n,s,r)}}function me(e,t){return e.replace(ge,((e,r)=>{const n=t[r];return null!=n?String(n):`<${r}?>`}))}const ge=/\{\$([^}]+)}/g;function C(e,t){if(e===t)return!0;const r=Object.keys(e),n=Object.keys(t);for(const a of r){if(!n.includes(a))return!1;const r=e[a],i=t[a];if(L(r)&&L(i)){if(!C(r,i))return!1}else if(r!==i)return!1}for(const e of n)if(!r.includes(e))return!1;return!0}function L(e){return null!==e&&"object"==typeof e}class D{constructor(e,t,r){this.name=e,this.instanceFactory=t,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 u="[DEFAULT]";class be{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new de;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const r=this.getOrInitializeService({instanceIdentifier:t});r&&e.resolve(r)}catch{}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const r=this.normalizeInstanceIdentifier(e?.identifier),n=null!==(t=e?.optional)&&void 0!==t&&t;if(!this.isInitialized(r)&&!this.shouldAutoInitialize()){if(n)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:r})}catch(e){if(n)return null;throw e}}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(Ee(e))try{this.getOrInitializeService({instanceIdentifier:u})}catch{}for(const[e,t]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:r});t.resolve(e)}catch{}}}}clearInstance(e=u){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((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(e=u){return this.instances.has(e)}getOptions(e=u){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=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 n=this.getOrInitializeService({instanceIdentifier:r,options:t});for(const[e,t]of this.instancesDeferred.entries()){r===this.normalizeInstanceIdentifier(e)&&t.resolve(n)}return n}onInit(e,t){var r;const n=this.normalizeInstanceIdentifier(t),a=null!==(r=this.onInitCallbacks.get(n))&&void 0!==r?r:new Set;a.add(e),this.onInitCallbacks.set(n,a);const i=this.instances.get(n);return i&&e(i,n),()=>{a.delete(e)}}invokeOnInitCallbacks(e,t){const r=this.onInitCallbacks.get(t);if(r)for(const n of r)try{n(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:_e(e),options:t}),this.instances.set(e,r),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=u){return this.component?this.component.multipleInstances?e:u:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}function _e(e){return e===u?void 0:e}function Ee(e){return"EAGER"===e.instantiationMode}class ye{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.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 t=new be(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}var c;!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"}(c||(c={}));const De={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},Ie=c.INFO,ve={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},Se=(e,t,...r)=>{if(tt.some((t=>e instanceof t));let P,F;function Ae(){return P||(P=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Be(){return F||(F=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Y=new WeakMap,A=new WeakMap,X=new WeakMap,I=new WeakMap,N=new WeakMap;function Oe(e){const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("success",a),e.removeEventListener("error",i)},a=()=>{t(f(e.result)),n()},i=()=>{r(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&Y.set(t,e)})).catch((()=>{})),N.set(t,e),t}function Te(e){if(A.has(e))return;const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",i),e.removeEventListener("abort",i)},a=()=>{t(),n()},i=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",i),e.addEventListener("abort",i)}));A.set(e,t)}let B={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return A.get(e);if("objectStoreNames"===t)return e.objectStoreNames||X.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return f(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Me(e){B=e(B)}function $e(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?Be().includes(e)?function(...t){return e.apply(v(this),t),f(Y.get(this))}:function(...t){return f(e.apply(v(this),t))}:function(t,...r){const n=e.call(v(this),t,...r);return X.set(n,t.sort?t.sort():[t]),f(n)}}function Ne(e){return"function"==typeof e?$e(e):(e instanceof IDBTransaction&&Te(e),Ce(e,Ae())?new Proxy(e,B):e)}function f(e){if(e instanceof IDBRequest)return Oe(e);if(I.has(e))return I.get(e);const t=Ne(e);return t!==e&&(I.set(e,t),N.set(t,e)),t}const v=e=>N.get(e);function Re(e,t,{blocked:r,upgrade:n,blocking:a,terminated:i}={}){const s=indexedDB.open(e,t),o=f(s);return n&&s.addEventListener("upgradeneeded",(e=>{n(f(s.result),e.oldVersion,e.newVersion,f(s.transaction),e)})),r&&s.addEventListener("blocked",(e=>r(e.oldVersion,e.newVersion,e))),o.then((e=>{i&&e.addEventListener("close",(()=>i())),a&&e.addEventListener("versionchange",(e=>a(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),o}const He=["get","getKey","getAll","getAllKeys","count"],Le=["put","add","delete","clear"],S=new Map;function x(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(S.get(t))return S.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,a=Le.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!a&&!He.includes(r))return;const i=async function(e,...t){const i=this.transaction(e,a?"readwrite":"readonly");let s=i.store;return n&&(s=s.index(t.shift())),(await Promise.all([s[r](...t),a&&i.done]))[0]};return S.set(t,i),i}Me((e=>({...e,get:(t,r,n)=>x(t,r)||e.get(t,r,n),has:(t,r)=>!!x(t,r)||e.has(t,r)})));class Pe{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(Fe(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}function Fe(e){const t=e.getComponent();return"VERSION"===t?.type}const O="@firebase/app",V="0.11.2",d=new we("@firebase/app"),xe="@firebase/app-compat",Ve="@firebase/analytics-compat",je="@firebase/analytics",ke="@firebase/app-check-compat",Ue="@firebase/app-check",ze="@firebase/auth",We="@firebase/auth-compat",Ge="@firebase/database",Je="@firebase/data-connect",Ke="@firebase/database-compat",Ye="@firebase/functions",Xe="@firebase/functions-compat",Ze="@firebase/installations",qe="@firebase/installations-compat",Qe="@firebase/messaging",et="@firebase/messaging-compat",tt="@firebase/performance",nt="@firebase/performance-compat",rt="@firebase/remote-config",st="@firebase/remote-config-compat",at="@firebase/storage",it="@firebase/storage-compat",ot="@firebase/firestore",ct="@firebase/vertexai",ht="@firebase/firestore-compat",lt="firebase",dt="[DEFAULT]",ft={[O]:"fire-core",[xe]:"fire-core-compat",[je]:"fire-analytics",[Ve]:"fire-analytics-compat",[Ue]:"fire-app-check",[ke]:"fire-app-check-compat",[ze]:"fire-auth",[We]:"fire-auth-compat",[Ge]:"fire-rtdb",[Je]:"fire-data-connect",[Ke]:"fire-rtdb-compat",[Ye]:"fire-fn",[Xe]:"fire-fn-compat",[Ze]:"fire-iid",[qe]:"fire-iid-compat",[Qe]:"fire-fcm",[et]:"fire-fcm-compat",[tt]:"fire-perf",[nt]:"fire-perf-compat",[rt]:"fire-rc",[st]:"fire-rc-compat",[at]:"fire-gcs",[it]:"fire-gcs-compat",[ot]:"fire-fst",[ht]:"fire-fst-compat",[ct]:"fire-vertex","fire-js":"fire-js",[lt]:"fire-js-all"},T=new Map,ut=new Map,M=new Map;function j(e,t){try{e.container.addComponent(t)}catch(r){d.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,r)}}function $(e){const t=e.name;if(M.has(t))return d.debug(`There were multiple attempts to register component ${t}.`),!1;M.set(t,e);for(const t of T.values())j(t,e);for(const t of ut.values())j(t,e);return!0}const pt={"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."},p=new K("app","Firebase",pt);class mt{constructor(e,t,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new D("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 p.create("app-deleted",{appName:this._name})}}function Bt(e,t={}){let r=e;"object"!=typeof t&&(t={name:t});const n=Object.assign({name:dt,automaticDataCollectionEnabled:!1},t),a=n.name;if("string"!=typeof a||!a)throw p.create("bad-app-name",{appName:String(a)});if(r||(r=le()),!r)throw p.create("no-options");const i=T.get(a);if(i){if(C(r,i.options)&&C(n,i.config))return i;throw p.create("duplicate-app",{appName:a})}const s=new ye(a);for(const e of M.values())s.addComponent(e);const o=new mt(r,n,s);return T.set(a,o),o}function y(e,t,r){var n;let a=null!==(n=ft[e])&&void 0!==n?n:e;r&&(a+=`-${r}`);const i=a.match(/\s|\//),s=t.match(/\s|\//);if(i||s){const e=[`Unable to register library "${a}" with version "${t}":`];return i&&e.push(`library name "${a}" contains illegal characters (whitespace or "/")`),i&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void d.warn(e.join(" "))}$(new D(`${a}-version`,(()=>({library:a,version:t})),"VERSION"))}const gt="firebase-heartbeat-database",bt=1,g="firebase-heartbeat-store";let w=null;function Z(){return w||(w=Re(gt,1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(g)}catch(e){console.warn(e)}}}).catch((e=>{throw p.create("idb-open",{originalErrorMessage:e.message})}))),w}async function _t(e){try{const t=(await Z()).transaction(g),r=await t.objectStore(g).get(q(e));return await t.done,r}catch(e){if(e instanceof b)d.warn(e.message);else{const t=p.create("idb-get",{originalErrorMessage:e?.message});d.warn(t.message)}}}async function k(e,t){try{const r=(await Z()).transaction(g,"readwrite");await r.objectStore(g).put(t,q(e)),await r.done}catch(e){if(e instanceof b)d.warn(e.message);else{const t=p.create("idb-set",{originalErrorMessage:e?.message});d.warn(t.message)}}}function q(e){return`${e.name}!${e.options.appId}`}const Et=1024,yt=30;class Dt{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new vt(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e,t;try{const r=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=U();if(null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats))||this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some((e=>e.date===n)))return;if(this._heartbeatsCache.heartbeats.push({date:n,agent:r}),this._heartbeatsCache.heartbeats.length>30){const e=St(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){d.warn(e)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=U(),{heartbeatsToSend:r,unsentEntries:n}=It(this._heartbeatsCache.heartbeats),a=J(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=t,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),a}catch(e){return d.warn(e),""}}}function U(){return(new Date).toISOString().substring(0,10)}function It(e,t=Et){const r=[];let n=e.slice();for(const a of e){const e=r.find((e=>e.agent===a.agent));if(e){if(e.dates.push(a.date),z(r)>t){e.dates.pop();break}}else if(r.push({agent:a.agent,dates:[a.date]}),z(r)>t){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}class vt{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!fe()&&ue().then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){const e=await _t(this.app);return e?.heartbeats?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const r=await this.read();return k(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const r=await this.read();return k(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}}}function z(e){return J(JSON.stringify({version:2,heartbeats:e})).length}function St(e){if(0===e.length)return-1;let t=0,r=e[0].date;for(let n=1;nnew Pe(e)),"PRIVATE")),$(new D("heartbeat",(e=>new Dt(e)),"PRIVATE")),y(O,V,e),y(O,V,"esm2017"),y("fire-js","")}wt("");var Ct="firebase",At="11.4.0";y(Ct,At,"app");export{b as FirebaseError,dt as _DEFAULT_ENTRY_NAME,j as _addComponent,T as _apps,M as _components,$ as _registerComponent,ut as _serverApps,Bt as initializeApp,y as registerVersion}; \ No newline at end of file diff --git a/Target/_astro/index.esm.D9h2tUuG.js.map b/Target/_astro/index.esm.CDlMbkfU.js.map similarity index 79% rename from Target/_astro/index.esm.D9h2tUuG.js.map rename to Target/_astro/index.esm.CDlMbkfU.js.map index 84f35e34..4783d915 100644 --- a/Target/_astro/index.esm.D9h2tUuG.js.map +++ b/Target/_astro/index.esm.CDlMbkfU.js.map @@ -1 +1 @@ -{"version":3,"file":"index.esm.D9h2tUuG.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"index.esm.CDlMbkfU.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/Target/_astro/index.esm.D9h2tUuG.js b/Target/_astro/index.esm.D9h2tUuG.js deleted file mode 100644 index bc5da260..00000000 --- a/Target/_astro/index.esm.D9h2tUuG.js +++ /dev/null @@ -1 +0,0 @@ -var H={};const W=function(e){const t=[];let r=0;for(let n=0;n>6|192,t[r++]=63&a|128):55296==(64512&a)&&n+1>18|240,t[r++]=a>>12&63|128,t[r++]=a>>6&63|128,t[r++]=63&a|128):(t[r++]=a>>12|224,t[r++]=a>>6&63|128,t[r++]=63&a|128)}return t},ee=function(e){const t=[];let r=0,n=0;for(;r191&&a<224){const i=e[r++];t[n++]=String.fromCharCode((31&a)<<6|63&i)}else if(a>239&&a<365){const i=((7&a)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536;t[n++]=String.fromCharCode(55296+(i>>10)),t[n++]=String.fromCharCode(56320+(1023&i))}else{const i=e[r++],s=e[r++];t[n++]=String.fromCharCode((15&a)<<12|(63&i)<<6|63&s)}}return t.join("")},G={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:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let t=0;t>2,l=(3&a)<<4|s>>4;let d=(15&s)<<2|c>>6,u=63&c;o||(u=64,i||(d=64)),n.push(r[h],r[l],r[d],r[u])}return n.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(W(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):ee(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const r=t?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let t=0;t>4;if(n.push(c),64!==s){const e=i<<4&240|s>>2;if(n.push(e),64!==o){const e=s<<6&192|o;n.push(e)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class te extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const ne=function(e){const t=W(e);return G.encodeByteArray(t,!0)},J=function(e){return ne(e).replace(/\./g,"")},re=function(e){try{return G.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function se(){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 ae=()=>se().__FIREBASE_DEFAULTS__,ie=()=>{if(typeof process>"u"||typeof H>"u")return;const e=H.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0},oe=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&re(e[1]);return t&&JSON.parse(t)},ce=()=>{try{return ae()||ie()||oe()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},he=()=>{var e;return null===(e=ce())||void 0===e?void 0:e.config};class le{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,r))}}}function de(){try{return"object"==typeof indexedDB}catch{return!1}}function fe(){return new Promise(((e,t)=>{try{let r=!0;const n="validate-browser-context-for-indexeddb-analytics-module",a=self.indexedDB.open(n);a.onsuccess=()=>{a.result.close(),r||self.indexedDB.deleteDatabase(n),e(!0)},a.onupgradeneeded=()=>{r=!1},a.onerror=()=>{var e;t((null===(e=a.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}}))}const ue="FirebaseError";class b extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name=ue,Object.setPrototypeOf(this,b.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,K.prototype.create)}}class K{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){const r=t[0]||{},n=`${this.service}/${e}`,a=this.errors[e],i=a?pe(a,r):"Error",s=`${this.serviceName}: ${i} (${n}).`;return new b(n,s,r)}}function pe(e,t){return e.replace(me,((e,r)=>{const n=t[r];return null!=n?String(n):`<${r}?>`}))}const me=/\{\$([^}]+)}/g;function C(e,t){if(e===t)return!0;const r=Object.keys(e),n=Object.keys(t);for(const a of r){if(!n.includes(a))return!1;const r=e[a],i=t[a];if(L(r)&&L(i)){if(!C(r,i))return!1}else if(r!==i)return!1}for(const e of n)if(!r.includes(e))return!1;return!0}function L(e){return null!==e&&"object"==typeof e}class D{constructor(e,t,r){this.name=e,this.instanceFactory=t,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 u="[DEFAULT]";class ge{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new le;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const r=this.getOrInitializeService({instanceIdentifier:t});r&&e.resolve(r)}catch{}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const r=this.normalizeInstanceIdentifier(e?.identifier),n=null!==(t=e?.optional)&&void 0!==t&&t;if(!this.isInitialized(r)&&!this.shouldAutoInitialize()){if(n)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:r})}catch(e){if(n)return null;throw e}}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(_e(e))try{this.getOrInitializeService({instanceIdentifier:u})}catch{}for(const[e,t]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:r});t.resolve(e)}catch{}}}}clearInstance(e=u){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((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(e=u){return this.instances.has(e)}getOptions(e=u){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=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 n=this.getOrInitializeService({instanceIdentifier:r,options:t});for(const[e,t]of this.instancesDeferred.entries()){r===this.normalizeInstanceIdentifier(e)&&t.resolve(n)}return n}onInit(e,t){var r;const n=this.normalizeInstanceIdentifier(t),a=null!==(r=this.onInitCallbacks.get(n))&&void 0!==r?r:new Set;a.add(e),this.onInitCallbacks.set(n,a);const i=this.instances.get(n);return i&&e(i,n),()=>{a.delete(e)}}invokeOnInitCallbacks(e,t){const r=this.onInitCallbacks.get(t);if(r)for(const n of r)try{n(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:be(e),options:t}),this.instances.set(e,r),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=u){return this.component?this.component.multipleInstances?e:u:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}function be(e){return e===u?void 0:e}function _e(e){return"EAGER"===e.instantiationMode}class Ee{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.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 t=new ge(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}var c;!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"}(c||(c={}));const ye={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},De=c.INFO,Ie={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},ve=(e,t,...r)=>{if(tt.some((t=>e instanceof t));let P,F;function Ce(){return P||(P=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ae(){return F||(F=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Y=new WeakMap,A=new WeakMap,X=new WeakMap,I=new WeakMap,N=new WeakMap;function Be(e){const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("success",a),e.removeEventListener("error",i)},a=()=>{t(f(e.result)),n()},i=()=>{r(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&Y.set(t,e)})).catch((()=>{})),N.set(t,e),t}function Oe(e){if(A.has(e))return;const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",i),e.removeEventListener("abort",i)},a=()=>{t(),n()},i=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",i),e.addEventListener("abort",i)}));A.set(e,t)}let B={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return A.get(e);if("objectStoreNames"===t)return e.objectStoreNames||X.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return f(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Te(e){B=e(B)}function Me(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?Ae().includes(e)?function(...t){return e.apply(v(this),t),f(Y.get(this))}:function(...t){return f(e.apply(v(this),t))}:function(t,...r){const n=e.call(v(this),t,...r);return X.set(n,t.sort?t.sort():[t]),f(n)}}function $e(e){return"function"==typeof e?Me(e):(e instanceof IDBTransaction&&Oe(e),we(e,Ce())?new Proxy(e,B):e)}function f(e){if(e instanceof IDBRequest)return Be(e);if(I.has(e))return I.get(e);const t=$e(e);return t!==e&&(I.set(e,t),N.set(t,e)),t}const v=e=>N.get(e);function Ne(e,t,{blocked:r,upgrade:n,blocking:a,terminated:i}={}){const s=indexedDB.open(e,t),o=f(s);return n&&s.addEventListener("upgradeneeded",(e=>{n(f(s.result),e.oldVersion,e.newVersion,f(s.transaction),e)})),r&&s.addEventListener("blocked",(e=>r(e.oldVersion,e.newVersion,e))),o.then((e=>{i&&e.addEventListener("close",(()=>i())),a&&e.addEventListener("versionchange",(e=>a(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),o}const Re=["get","getKey","getAll","getAllKeys","count"],He=["put","add","delete","clear"],S=new Map;function x(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(S.get(t))return S.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,a=He.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!a&&!Re.includes(r))return;const i=async function(e,...t){const i=this.transaction(e,a?"readwrite":"readonly");let s=i.store;return n&&(s=s.index(t.shift())),(await Promise.all([s[r](...t),a&&i.done]))[0]};return S.set(t,i),i}Te((e=>({...e,get:(t,r,n)=>x(t,r)||e.get(t,r,n),has:(t,r)=>!!x(t,r)||e.has(t,r)})));class Le{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(Pe(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}function Pe(e){const t=e.getComponent();return"VERSION"===t?.type}const O="@firebase/app",V="0.11.1",d=new Se("@firebase/app"),Fe="@firebase/app-compat",xe="@firebase/analytics-compat",Ve="@firebase/analytics",je="@firebase/app-check-compat",ke="@firebase/app-check",Ue="@firebase/auth",ze="@firebase/auth-compat",We="@firebase/database",Ge="@firebase/data-connect",Je="@firebase/database-compat",Ke="@firebase/functions",Ye="@firebase/functions-compat",Xe="@firebase/installations",Ze="@firebase/installations-compat",qe="@firebase/messaging",Qe="@firebase/messaging-compat",et="@firebase/performance",tt="@firebase/performance-compat",nt="@firebase/remote-config",rt="@firebase/remote-config-compat",st="@firebase/storage",at="@firebase/storage-compat",it="@firebase/firestore",ot="@firebase/vertexai",ct="@firebase/firestore-compat",ht="firebase",lt="[DEFAULT]",dt={[O]:"fire-core",[Fe]:"fire-core-compat",[Ve]:"fire-analytics",[xe]:"fire-analytics-compat",[ke]:"fire-app-check",[je]:"fire-app-check-compat",[Ue]:"fire-auth",[ze]:"fire-auth-compat",[We]:"fire-rtdb",[Ge]:"fire-data-connect",[Je]:"fire-rtdb-compat",[Ke]:"fire-fn",[Ye]:"fire-fn-compat",[Xe]:"fire-iid",[Ze]:"fire-iid-compat",[qe]:"fire-fcm",[Qe]:"fire-fcm-compat",[et]:"fire-perf",[tt]:"fire-perf-compat",[nt]:"fire-rc",[rt]:"fire-rc-compat",[st]:"fire-gcs",[at]:"fire-gcs-compat",[it]:"fire-fst",[ct]:"fire-fst-compat",[ot]:"fire-vertex","fire-js":"fire-js",[ht]:"fire-js-all"},T=new Map,ft=new Map,M=new Map;function j(e,t){try{e.container.addComponent(t)}catch(r){d.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,r)}}function $(e){const t=e.name;if(M.has(t))return d.debug(`There were multiple attempts to register component ${t}.`),!1;M.set(t,e);for(const t of T.values())j(t,e);for(const t of ft.values())j(t,e);return!0}const ut={"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."},p=new K("app","Firebase",ut);class pt{constructor(e,t,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new D("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 p.create("app-deleted",{appName:this._name})}}function At(e,t={}){let r=e;"object"!=typeof t&&(t={name:t});const n=Object.assign({name:lt,automaticDataCollectionEnabled:!1},t),a=n.name;if("string"!=typeof a||!a)throw p.create("bad-app-name",{appName:String(a)});if(r||(r=he()),!r)throw p.create("no-options");const i=T.get(a);if(i){if(C(r,i.options)&&C(n,i.config))return i;throw p.create("duplicate-app",{appName:a})}const s=new Ee(a);for(const e of M.values())s.addComponent(e);const o=new pt(r,n,s);return T.set(a,o),o}function y(e,t,r){var n;let a=null!==(n=dt[e])&&void 0!==n?n:e;r&&(a+=`-${r}`);const i=a.match(/\s|\//),s=t.match(/\s|\//);if(i||s){const e=[`Unable to register library "${a}" with version "${t}":`];return i&&e.push(`library name "${a}" contains illegal characters (whitespace or "/")`),i&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void d.warn(e.join(" "))}$(new D(`${a}-version`,(()=>({library:a,version:t})),"VERSION"))}const mt="firebase-heartbeat-database",gt=1,g="firebase-heartbeat-store";let w=null;function Z(){return w||(w=Ne(mt,1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(g)}catch(e){console.warn(e)}}}).catch((e=>{throw p.create("idb-open",{originalErrorMessage:e.message})}))),w}async function bt(e){try{const t=(await Z()).transaction(g),r=await t.objectStore(g).get(q(e));return await t.done,r}catch(e){if(e instanceof b)d.warn(e.message);else{const t=p.create("idb-get",{originalErrorMessage:e?.message});d.warn(t.message)}}}async function k(e,t){try{const r=(await Z()).transaction(g,"readwrite");await r.objectStore(g).put(t,q(e)),await r.done}catch(e){if(e instanceof b)d.warn(e.message);else{const t=p.create("idb-set",{originalErrorMessage:e?.message});d.warn(t.message)}}}function q(e){return`${e.name}!${e.options.appId}`}const _t=1024,Et=30;class yt{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new It(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e,t;try{const r=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=U();if(null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats))||this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some((e=>e.date===n)))return;if(this._heartbeatsCache.heartbeats.push({date:n,agent:r}),this._heartbeatsCache.heartbeats.length>30){const e=vt(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){d.warn(e)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=U(),{heartbeatsToSend:r,unsentEntries:n}=Dt(this._heartbeatsCache.heartbeats),a=J(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=t,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),a}catch(e){return d.warn(e),""}}}function U(){return(new Date).toISOString().substring(0,10)}function Dt(e,t=_t){const r=[];let n=e.slice();for(const a of e){const e=r.find((e=>e.agent===a.agent));if(e){if(e.dates.push(a.date),z(r)>t){e.dates.pop();break}}else if(r.push({agent:a.agent,dates:[a.date]}),z(r)>t){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}class It{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!de()&&fe().then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){const e=await bt(this.app);return e?.heartbeats?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const r=await this.read();return k(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const r=await this.read();return k(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}}}function z(e){return J(JSON.stringify({version:2,heartbeats:e})).length}function vt(e){if(0===e.length)return-1;let t=0,r=e[0].date;for(let n=1;nnew Le(e)),"PRIVATE")),$(new D("heartbeat",(e=>new yt(e)),"PRIVATE")),y(O,V,e),y(O,V,"esm2017"),y("fire-js","")}St("");var wt="firebase",Ct="11.3.1";y(wt,Ct,"app");export{b as FirebaseError,lt as _DEFAULT_ENTRY_NAME,j as _addComponent,T as _apps,M as _components,$ as _registerComponent,ft as _serverApps,At as initializeApp,y as registerVersion}; \ No newline at end of file diff --git a/Target/index.html b/Target/index.html index fab967ff..f7141182 100644 --- a/Target/index.html +++ b/Target/index.html @@ -1 +1 @@ -CrepesJS \ No newline at end of file +CrepesJS \ No newline at end of file