From f3d972ff3d79fbed38bed8110af63cb1dba59b29 Mon Sep 17 00:00:00 2001 From: Valexr Date: Thu, 25 Apr 2024 07:36:55 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20Valexr/c?= =?UTF-8?q?ounty@a686d7292e06e281c30de3c33ed77a0808ced4d1=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/app.css | 2 +- build/app.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/app.css b/build/app.css index 41794f4..01ecbf3 100644 --- a/build/app.css +++ b/build/app.css @@ -1 +1 @@ -blockquote.svelte-10fl26u.svelte-10fl26u{font-size:large;margin:0}blockquote.svelte-10fl26u p.svelte-10fl26u{font-style:italic;margin:1em}blockquote.svelte-10fl26u a.svelte-10fl26u{font-style:normal}button.svelte-1wl0gbz{padding:0}button.clear.svelte-1wl0gbz{background:transparent;font-family:inherit;font-weight:inherit}ul.svelte-8frftt.svelte-8frftt{list-style:none;padding:0;margin:0 0 .25em;font-size:min(22.5vw,27vh);font-weight:700;display:flex;justify-content:center;gap:.25em}ul.svelte-8frftt li.svelte-8frftt{position:relative}ul.svelte-8frftt li.svelte-8frftt:after{content:attr(id);font-size:20%;font-weight:400;position:absolute;inset:90% 0 0}svg.svelte-e5fszy{flex:0 0 var(--icon-size)}.spin.svelte-e5fszy{animation:svelte-e5fszy-spin .75s linear infinite}.bordered.svelte-e5fszy{box-shadow:0 0 0 1px var(--color-border);border-radius:4px}@keyframes svelte-e5fszy-spin{to{transform:rotate(360deg)}}form.svelte-1ajygs9.svelte-1ajygs9{max-width:15em;margin:auto}fieldset.svelte-1ajygs9.svelte-1ajygs9{margin:0;padding:0;display:flex;flex-flow:column nowrap;border:0}#add fieldset.svelte-1ajygs9.svelte-1ajygs9{gap:1em}input.svelte-1ajygs9.svelte-1ajygs9{font-size:1.5em;font-weight:700;font-family:inherit;line-height:2em;text-align:center;outline:0;width:100%;background:transparent;border:2px solid currentColor;border-radius:.25rem;color:inherit;margin:auto}input[type=date].svelte-1ajygs9.svelte-1ajygs9::-webkit-datetime-edit{flex:1}input.clear.svelte-1ajygs9.svelte-1ajygs9{border-color:transparent}form.svelte-1ajygs9 button.svelte-1ajygs9{min-width:100%}:root{--dark: #1c1b22;--light: #f2f2f2;--back: #e9e9ed;--hover: #d0d0d7;--active: #b1b1b9}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--light: #1c1b22;--dark: #f2f2f2;--back: #2b2a33;--hover: #52525e;--active: #5b5b66}}:root{color-scheme:dark;--light: #1c1b22;--dark: #f2f2f2;--back: #2b2a33;--hover: #52525e;--active: #5b5b66}body,html{height:100%;font-family:system-ui}html:after{content:attr(title);position:absolute;inset:97.5% 0 0;font-size:.8em;font-weight:300;font-family:inherit;opacity:.69;text-align:center}body{margin:0;display:grid;grid-template-rows:1fr 4.5em;grid-template-columns:1fr;text-align:center;overflow:hidden}body:after{content:"";background:#00000045;position:absolute;z-index:-1;inset:0;overflow:hidden}header,footer{display:flex;align-items:center;justify-content:space-between;padding:1rem}header>*{margin:0}button{text-align:inherit;color:inherit;background-color:var(--back);padding:.45rem 1rem;margin:0;border:0;border-radius:.25rem;font-size:inherit;user-select:none;-webkit-user-select:none;cursor:pointer}button:hover{background-color:var(--hover)}button:hover:active{background-color:var(--active)}button.box{aspect-ratio:1/1;align-items:center;display:flex}a{color:inherit}*{box-sizing:border-box}header.svelte-23jc0k.svelte-23jc0k{justify-content:center;padding:0}main.svelte-23jc0k.svelte-23jc0k{display:flex;max-width:100vw;overflow:scroll;scroll-snap-type:x mandatory}main.svelte-23jc0k>.svelte-23jc0k{padding:0 1em;flex:1 0 100%;scroll-snap-align:center;align-content:center}main.svelte-23jc0k.svelte-23jc0k{-ms-overflow-style:none;scrollbar-width:none}main.svelte-23jc0k.svelte-23jc0k::-webkit-scrollbar{display:none}section#add.svelte-23jc0k.svelte-23jc0k{align-content:center}footer.svelte-23jc0k.svelte-23jc0k{justify-content:center}footer.active.svelte-23jc0k.svelte-23jc0k{justify-content:space-between} +blockquote.svelte-10fl26u.svelte-10fl26u{font-size:large;margin:0}blockquote.svelte-10fl26u p.svelte-10fl26u{font-style:italic;margin:1em}blockquote.svelte-10fl26u a.svelte-10fl26u{font-style:normal}button.svelte-1wl0gbz{padding:0}button.clear.svelte-1wl0gbz{background:transparent;font-family:inherit;font-weight:inherit}ul.svelte-m8bu4d.svelte-m8bu4d{list-style:none;padding:0;margin:0 0 .5em;font-size:min(25vw,27vh);font-weight:700;display:flex;justify-content:center;gap:.25em}ul.svelte-m8bu4d li.svelte-m8bu4d{position:relative}ul.svelte-m8bu4d li.svelte-m8bu4d:after{content:attr(id);font-size:20%;font-weight:400;position:absolute;inset:90% 0 0}svg.svelte-e5fszy{flex:0 0 var(--icon-size)}.spin.svelte-e5fszy{animation:svelte-e5fszy-spin .75s linear infinite}.bordered.svelte-e5fszy{box-shadow:0 0 0 1px var(--color-border);border-radius:4px}@keyframes svelte-e5fszy-spin{to{transform:rotate(360deg)}}form.svelte-1ajygs9.svelte-1ajygs9{max-width:15em;margin:auto}fieldset.svelte-1ajygs9.svelte-1ajygs9{margin:0;padding:0;display:flex;flex-flow:column nowrap;border:0}#add fieldset.svelte-1ajygs9.svelte-1ajygs9{gap:1em}input.svelte-1ajygs9.svelte-1ajygs9{font-size:1.5em;font-weight:700;font-family:inherit;line-height:2em;text-align:center;outline:0;width:100%;background:transparent;border:2px solid currentColor;border-radius:.25rem;color:inherit;margin:auto}input[type=date].svelte-1ajygs9.svelte-1ajygs9::-webkit-datetime-edit{flex:1}input.clear.svelte-1ajygs9.svelte-1ajygs9{border-color:transparent}form.svelte-1ajygs9 button.svelte-1ajygs9{min-width:100%}:root{--dark: #1c1b22;--light: #f2f2f2;--back: #e9e9ed;--hover: #d0d0d7;--active: #b1b1b9}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--light: #1c1b22;--dark: #f2f2f2;--back: #2b2a33;--hover: #52525e;--active: #5b5b66}}:root{color-scheme:dark;--light: #1c1b22;--dark: #f2f2f2;--back: #2b2a33;--hover: #52525e;--active: #5b5b66}body,html{height:100%;font-family:system-ui}html:after{content:attr(title);position:absolute;inset:97.5% 0 0;font-size:.8em;font-weight:300;font-family:inherit;opacity:.69;text-align:center}body{margin:0;display:grid;grid-template-rows:1fr 4.5em;grid-template-columns:1fr;text-align:center;overflow:hidden}body:after{content:"";background:#00000045;position:absolute;z-index:-1;inset:0;overflow:hidden}header,footer{display:flex;align-items:center;justify-content:space-between;padding:1rem}header>*{margin:0}button{text-align:inherit;color:inherit;background-color:var(--back);padding:.45rem 1rem;margin:0;border:0;border-radius:.25rem;font-size:inherit;user-select:none;-webkit-user-select:none;cursor:pointer}button:hover{background-color:var(--hover)}button:hover:active{background-color:var(--active)}button.box{aspect-ratio:1/1;align-items:center;display:flex}a{color:inherit}*{box-sizing:border-box}header.svelte-177psuq.svelte-177psuq{justify-content:center;padding:0}main.svelte-177psuq.svelte-177psuq{display:flex;max-width:100vw;overflow:scroll;scroll-snap-type:x mandatory}main.svelte-177psuq>.svelte-177psuq{flex:1 0 100%;scroll-snap-align:center;align-content:center}main.svelte-177psuq.svelte-177psuq{-ms-overflow-style:none;scrollbar-width:none}main.svelte-177psuq.svelte-177psuq::-webkit-scrollbar{display:none}section#add.svelte-177psuq.svelte-177psuq{align-content:center}footer.svelte-177psuq.svelte-177psuq{justify-content:center}footer.active.svelte-177psuq.svelte-177psuq{justify-content:space-between} diff --git a/build/app.js b/build/app.js index 65a409f..8968fc7 100644 --- a/build/app.js +++ b/build/app.js @@ -1,7 +1,7 @@ -var oe="county";var re={type:"git",url:"https://github.com/Valexr/county.git"};function b(){}var rt=e=>e;function se(e,t){for(let n in t)e[n]=t[n];return e}function ie(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function Dt(e){return e()}function ht(){return Object.create(null)}function M(e){e.forEach(Dt)}function W(e){return typeof e=="function"}function le(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function j(e,t){return e!=e?t==t:e!==t}function ce(e){return Object.keys(e).length===0}function Lt(e,...t){if(e==null){for(let o of t)o(void 0);return b}let n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ut(e,t,n){e.$$.on_destroy.push(Lt(t,n))}function ue(e,t,n,o){if(e){let r=ae(e,t,n,o);return e[0](r)}}function ae(e,t,n,o){return e[1]&&o?se(n.ctx.slice(),e[1](o(t))):n.ctx}function fe(e,t,n,o){if(e[2]&&o){let r=e[2](o(n));if(t.dirty===void 0)return r;if(typeof r=="object"){let s=[],l=Math.max(t.dirty.length,r.length);for(let u=0;u32){let t=[],n=e.ctx.length/32;for(let o=0;owindow.performance.now():()=>Date.now(),at=me?e=>requestAnimationFrame(e):b;var st=new Set;function he(e){st.forEach(t=>{t.c(e)||(st.delete(t),t.f())}),st.size!==0&&at(he)}function It(e){let t;return st.size===0&&at(he),{promise:new Promise(n=>{st.add(t={c:e,f:n})}),abort(){st.delete(t)}}}var Mt=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var bt=class e{_listeners="WeakMap"in Mt?new WeakMap:void 0;_observer=void 0;options;constructor(t){this.options=t}observe(t,n){return this._listeners.set(t,n),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(t=>{for(let n of t)e.entries.set(n.target,n),this._listeners.get(n.target)?.(n)}))}};bt.entries="WeakMap"in Mt?new WeakMap:void 0;var be=!1;function ge(){be=!0}function ye(){be=!1}function w(e,t){e.appendChild(t)}function jt(e){if(!e)return document;let t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function xe(e){let t=F("style");return t.textContent="/* empty */",Ze(jt(e),t),t.sheet}function Ze(e,t){return w(e.head||e,t),t.sheet}function x(e,t,n){e.insertBefore(t,n||null)}function y(e){e.parentNode&&e.parentNode.removeChild(e)}function Fe(e,t){for(let n=0;ne.removeEventListener(t,n,o)}function Qe(e){return function(t){return t.preventDefault(),e.call(this,t)}}function f(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function $e(e){return Array.from(e.childNodes)}function V(e,t){t=""+t,e.data!==t&&(e.data=t)}function O(e,t,n){e.classList.toggle(t,!!n)}function gt(e,t,{bubbles:n=!1,cancelable:o=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:o})}function Ue(e){let t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}var yt=new Map,xt=0;function Ge(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Xe(e,t){let n={stylesheet:xe(t),rules:{}};return yt.set(e,n),n}function Tt(e,t,n,o,r,s,l,u=0){let i=16.666/o,c=`{ +var oe="county";var re={type:"git",url:"https://github.com/Valexr/county.git"};function b(){}var rt=e=>e;function se(e,t){for(let n in t)e[n]=t[n];return e}function ie(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function Dt(e){return e()}function ht(){return Object.create(null)}function M(e){e.forEach(Dt)}function W(e){return typeof e=="function"}function le(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function C(e,t){return e!=e?t==t:e!==t}function ce(e){return Object.keys(e).length===0}function Lt(e,...t){if(e==null){for(let o of t)o(void 0);return b}let n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ut(e,t,n){e.$$.on_destroy.push(Lt(t,n))}function ue(e,t,n,o){if(e){let r=ae(e,t,n,o);return e[0](r)}}function ae(e,t,n,o){return e[1]&&o?se(n.ctx.slice(),e[1](o(t))):n.ctx}function fe(e,t,n,o){if(e[2]&&o){let r=e[2](o(n));if(t.dirty===void 0)return r;if(typeof r=="object"){let s=[],l=Math.max(t.dirty.length,r.length);for(let u=0;u32){let t=[],n=e.ctx.length/32;for(let o=0;owindow.performance.now():()=>Date.now(),at=me?e=>requestAnimationFrame(e):b;var st=new Set;function he(e){st.forEach(t=>{t.c(e)||(st.delete(t),t.f())}),st.size!==0&&at(he)}function It(e){let t;return st.size===0&&at(he),{promise:new Promise(n=>{st.add(t={c:e,f:n})}),abort(){st.delete(t)}}}var Mt=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var bt=class e{_listeners="WeakMap"in Mt?new WeakMap:void 0;_observer=void 0;options;constructor(t){this.options=t}observe(t,n){return this._listeners.set(t,n),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(t=>{for(let n of t)e.entries.set(n.target,n),this._listeners.get(n.target)?.(n)}))}};bt.entries="WeakMap"in Mt?new WeakMap:void 0;var be=!1;function ge(){be=!0}function ye(){be=!1}function w(e,t){e.appendChild(t)}function Ct(e){if(!e)return document;let t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function xe(e){let t=F("style");return t.textContent="/* empty */",Ze(Ct(e),t),t.sheet}function Ze(e,t){return w(e.head||e,t),t.sheet}function x(e,t,n){e.insertBefore(t,n||null)}function y(e){e.parentNode&&e.parentNode.removeChild(e)}function Fe(e,t){for(let n=0;ne.removeEventListener(t,n,o)}function Qe(e){return function(t){return t.preventDefault(),e.call(this,t)}}function f(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function $e(e){return Array.from(e.childNodes)}function V(e,t){t=""+t,e.data!==t&&(e.data=t)}function O(e,t,n){e.classList.toggle(t,!!n)}function gt(e,t,{bubbles:n=!1,cancelable:o=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:o})}function Ue(e){let t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}var yt=new Map,xt=0;function Ge(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Xe(e,t){let n={stylesheet:xe(t),rules:{}};return yt.set(e,n),n}function qt(e,t,n,o,r,s,l,u=0){let i=16.666/o,c=`{ `;for(let _=0;_<=1;_+=i){let g=t+(n-t)*s(_);c+=_*100+`%{${l(g,1-g)}} `}let p=c+`100% {${l(n,1-n)}} -}`,a=`__svelte_${Ge(p)}_${u}`,d=jt(e),{stylesheet:h,rules:m}=yt.get(d)||Xe(d,e);m[a]||(m[a]=!0,h.insertRule(`@keyframes ${a} ${p}`,h.cssRules.length));let $=e.style.animation||"";return e.style.animation=`${$?`${$}, `:""}${a} ${o}ms linear ${r}ms 1 both`,xt+=1,a}function Ft(e,t){let n=(e.style.animation||"").split(", "),o=n.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),r=n.length-o.length;r&&(e.style.animation=o.join(", "),xt-=r,xt||He())}function He(){at(()=>{xt||(yt.forEach(e=>{let{ownerNode:t}=e.stylesheet;t&&y(t)}),yt.clear())})}var P;function R(e){P=e}function ve(){if(!P)throw new Error("Function called outside component initialization");return P}var Y=[];var A=[],lt=[],Rt=[],Ye=Promise.resolve(),qt=!1;function we(){qt||(qt=!0,Ye.then(pt))}function Z(e){lt.push(e)}function K(e){Rt.push(e)}var Ot=new Set,it=0;function pt(){if(it!==0)return;let e=P;do{try{for(;ite.indexOf(o)===-1?t.push(o):n.push(o)),n.forEach(o=>o()),lt=t}var dt;function tn(){return dt||(dt=Promise.resolve(),dt.then(()=>{dt=null})),dt}function ke(e,t,n){e.dispatchEvent(gt(`${t?"intro":"outro"}${n}`))}var Qt=new Set,tt;function G(){tt={r:0,c:[],p:tt}}function X(){tt.r||M(tt.c),tt=tt.p}function Q(e,t){e&&e.i&&(Qt.delete(e),e.i(t))}function U(e,t,n,o){if(e&&e.o){if(Qt.has(e))return;Qt.add(e),tt.c.push(()=>{Qt.delete(e),o&&(n&&e.d(1),o())}),e.o(t)}else o&&o()}var en={duration:0};function Ee(e,t,n){let o={direction:"in"},r=t(e,n,o),s=!1,l,u,i=0;function c(){l&&Ft(e,l)}function p(){let{delay:d=0,duration:h=300,easing:m=rt,tick:$=b,css:_}=r||en;_&&(l=Tt(e,0,1,h,d,m,_,i++)),$(0,1);let g=Nt()+d,B=g+h;u&&u.abort(),s=!0,Z(()=>ke(e,!0,"start")),u=It(k=>{if(s){if(k>=B)return $(1,0),ke(e,!0,"end"),c(),s=!1;if(k>=g){let H=m((k-g)/h);$(H,1-H)}}return s})}let a=!1;return{start(){a||(a=!0,Ft(e),W(r)?(r=r(o),tn().then(p)):p())},invalidate(){a=!1},end(){s&&(c(),s=!1)}}}function Vt(e,t){let n=t.token={};function o(r,s,l,u){if(t.token!==n)return;t.resolved=u;let i=t.ctx;l!==void 0&&(i=i.slice(),i[l]=u);let c=r&&(t.current=r)(i),p=!1;t.block&&(t.blocks?t.blocks.forEach((a,d)=>{d!==s&&a&&(G(),U(a,1,1,()=>{t.blocks[d]===a&&(t.blocks[d]=null)}),X())}):t.block.d(1),c.c(),Q(c,1),c.m(t.mount(),t.anchor),p=!0),t.block=c,t.blocks&&(t.blocks[s]=c),p&&pt()}if(ie(e)){let r=ve();if(e.then(s=>{R(r),o(t.then,1,t.value,s),R(null)},s=>{if(R(r),o(t.catch,2,t.error,s),R(null),!t.hasCatch)throw s}),t.current!==t.pending)return o(t.pending,0),!0}else{if(t.current!==t.then)return o(t.then,1,t.value,e),!0;t.resolved=e}}function zt(e,t,n){let o=t.slice(),{resolved:r}=e;e.current===e.then&&(o[e.value]=r),e.current===e.catch&&(o[e.error]=r),e.block.p(o,n)}function _t(e){return e?.length!==void 0?e:Array.from(e)}var nn=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],on=new Set([...nn]);function et(e,t,n){let o=e.$$.props[t];o!==void 0&&(e.$$.bound[o]=n,n(e.$$.ctx[o]))}function I(e){e&&e.c()}function S(e,t,n){let{fragment:o,after_update:r}=e.$$;o&&o.m(t,n),Z(()=>{let s=e.$$.on_mount.map(Dt).filter(W);e.$$.on_destroy?e.$$.on_destroy.push(...s):M(s),e.$$.on_mount=[]}),r.forEach(Z)}function D(e,t){let n=e.$$;n.fragment!==null&&(Be(n.after_update),M(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function sn(e,t){e.$$.dirty[0]===-1&&(Y.push(e),we(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{let m=h.length?h[0]:d;return c.ctx&&r(c.ctx[a],c.ctx[a]=m)&&(!c.skip_bound&&c.bound[a]&&c.bound[a](m),p&&sn(e,a)),d}):[],c.update(),p=!0,M(c.before_update),c.fragment=o?o(c.ctx):!1,t.target){if(t.hydrate){ge();let a=$e(t.target);c.fragment&&c.fragment.l(a),a.forEach(y)}else c.fragment&&c.fragment.c();t.intro&&Q(e.$$.fragment),S(e,t.target,t.anchor),ye(),pt()}R(i)}var ln;typeof HTMLElement=="function"&&(ln=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let s;return{c:function(){s=F("slot"),r!=="default"&&f(s,"name",r)},m:function(i,c){x(i,s,c)},d:function(i){i&&y(s)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Ue(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Jt(s,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let s=Jt(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let s of this.$$l[r]){let l=this.$$c.$on(r,s);this.$$l_u.set(s,l)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Jt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Jt(e,t,n,o){let r=n[e]?.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!o||!n[e])return t;if(o==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}var N=class{$$=void 0;$$set=void 0;$destroy(){D(this,1),this.$destroy=b}$on(t,n){if(!W(n))return b;let o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(n),()=>{let r=o.indexOf(n);r!==-1&&o.splice(r,1)}}$set(t){this.$$set&&!ce(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}};var Se="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Se);var ct=[];function $t(e,t){return{subscribe:mt(e,t).subscribe}}function mt(e,t=b){let n,o=new Set;function r(u){if(le(e,u)&&(e=u,n)){let i=!ct.length;for(let c of o)c[1](),ct.push(c,e);if(i){for(let c=0;c{o.delete(c),o.size===0&&n&&(n(),n=null)}}return{set:r,update:s,subscribe:l}}function De(e,t,n){let o=!Array.isArray(e),r=o?[e]:e;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=t.length<2;return $t(n,(l,u)=>{let i=!1,c=[],p=0,a=b,d=()=>{if(p)return;a();let m=t(o?c[0]:c,l,u);s?l(m):a=W(m)?m:b},h=r.map((m,$)=>Lt(m,_=>{c[$]=_,p&=~(1<<$),i&&d()},()=>{p|=1<<$}));return i=!0,d(),function(){M(h),a(),i=!1}})}function Le(e,t,n){let{subscribe:o,set:r}=mt(t),s=typeof window=="object"?n?localStorage:sessionStorage:void 0,l=s?.getItem(e)||"";try{t=l?JSON.parse(l):t}catch{t=t}u(t);function u(i){return s?.setItem(e,JSON.stringify(i)),t=i,r(t)}return{get:()=>t,set:i=>u(i),update:i=>u(i(t)),remove:()=>s?.removeItem(e),clear:()=>s?.clear(),subscribe:o}}function Ut(e){let{subscribe:t,set:n}=mt(e);return{subscribe:t,get:()=>e,set:o=>n(e=o),update:o=>n(e=o(e))}}function Ne(e){return Math.floor(Math.random()*e)}function Wt(e,t){return vt()==="ru"?t:e}function vt(){return navigator.language.includes("ru")?"ru":"en"}function q(e,t=0){let n=vt()==="ru",o=t===1||t>20&&String(t).endsWith("1"),r=[2,3,4].includes(t),s={years:o?"\u0433\u043E\u0434":r?"\u0433\u043E\u0434\u0430":"\u043B\u0435\u0442",months:!t||t>4?"\u043C\u0435\u0441\u044F\u0446\u0435\u0432":r?"\u043C\u0435\u0441\u044F\u0446\u0430":"\u043C\u0435\u0441\u044F\u0446",days:o?"\u0434\u0435\u043D\u044C":r?"\u0434\u043D\u044F":"\u0434\u043D\u0435\u0439",hours:o?"\u0447\u0430\u0441":r?"\u0447\u0430\u0441\u0430":"\u0447\u0430\u0441\u043E\u0432"};return n?s[e]:t===1?e.substring(0,e.length-1):e}var nt=cn();function cn(){let{subscribe:e,set:t,get:n,update:o}=Ut([["",""]]);return{subscribe:e,set:t,get:n,update:o,async load(){let r=`./assets/quotes_${vt()}.json`,l=await(await fetch(r)).json();t(l)},random(r){return n()[Ne(n().length-r)]}}}var J=un();function un(){let{subscribe:e,get:t,set:n,update:o}=Le("CountyDates",[],!0);return{subscribe:e,get:t,set:n,update:o,add(r){o(s=>s.concat(r))},change(r,s){J.update(l=>l.map((u,i)=>i===Number(r)?Object.assign(u,s):u))},del(r){J.update(s=>s.filter((l,u)=>u!==r))},quote(r){this.change(r,{quote:nt.random(r)})}}}var Ie=$t(new Date().toLocaleDateString("en-CA")),Me=$t(new Date().toLocaleTimeString("ru"),e=>{let t=setInterval(()=>{let n=new Date().toLocaleTimeString("ru");e(n)},1e3);return()=>clearInterval(t)});var je=De([J,nt],([e,t],n)=>{n(e.map(({start:r,title:s,quote:l},u)=>o(u,r,s,l)));function o(r,s,l,u){let i=new Date,c=new Date(s),p=i.getTime()-c.getTime(),a=i.getMonth()-c.getMonth(),d=i.getDate()-c.getDate(),h=new Date(i.getFullYear(),i.getMonth()+1,0).getDate(),m=new Date(p).getFullYear()-1970,$=(m*12+a)%12,_=($*h+d)%h;return{id:r,title:l,quote:u||nt.random(r),start:s,years:Math.abs(m),months:Math.abs($),days:Math.abs(_),full:{months:m*12+Math.abs($),days:Math.trunc(p/(36e5*24)),hours:Math.trunc(p/36e5)}}}},[]);function Ce(e,{delay:t=0,duration:n=400,easing:o=rt}={}){let r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:o,css:s=>`opacity: ${s*r}`}}function At(e){let t=e.slice(),n=t[0];return t[2]=n[0],t[3]=n[1],t}function Te(e){let t,n,o=e[2]+"",r,s,l,u,i,c=e[3]+"",p,a;return{c(){t=F("blockquote"),n=F("p"),r=C(o),s=L(),l=F("p"),u=F("a"),i=C("~ "),p=C(c),f(n,"class","svelte-10fl26u"),f(u,"href",e[1]),f(u,"target","_blank"),f(u,"class","svelte-10fl26u"),f(l,"class","svelte-10fl26u"),f(t,"class","svelte-10fl26u")},m(d,h){x(d,t,h),w(t,n),w(n,r),w(t,s),w(t,l),w(l,u),w(u,i),w(u,p)},p(d,h){h&1&&o!==(o=d[2]+"")&&V(r,o),h&1&&c!==(c=d[3]+"")&&V(p,c),h&2&&f(u,"href",d[1])},i(d){d&&(a||Z(()=>{a=Ee(t,Ce,{}),a.start()}))},o:b,d(d){d&&y(t)}}}function an(e){let t,n=e[0]&&Te(At(e));return{c(){n&&n.c(),t=ft()},m(o,r){n&&n.m(o,r),x(o,t,r)},p(o,[r]){o[0]?n?(n.p(At(o),r),r&1&&Q(n,1)):(n=Te(At(o)),n.c(),Q(n,1),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i(o){Q(n)},o:b,d(o){o&&y(t),n&&n.d(o)}}}function fn(e,t,n){let{quote:o}=t,{href:r=""}=t;return e.$$set=s=>{"quote"in s&&n(0,o=s.quote),"href"in s&&n(1,r=s.href)},[o,r]}var Pt=class extends N{constructor(t){super(),T(this,t,fn,an,j,{quote:0,href:1})}},Oe=Pt;function pn(e){let t,n,o,r,s=e[4].default,l=ue(s,e,e[3],null);return{c(){t=F("button"),l&&l.c(),f(t,"id",e[0]),f(t,"class","clear outline svelte-1wl0gbz")},m(u,i){x(u,t,i),l&&l.m(t,null),n=!0,o||(r=z(t,"click",e[1]),o=!0)},p(u,[i]){l&&l.p&&(!n||i&8)&&pe(l,s,u,u[3],n?fe(s,u[3],i,null):de(u[3]),null),(!n||i&1)&&f(t,"id",u[0])},i(u){n||(Q(l,u),n=!0)},o(u){U(l,u),n=!1},d(u){u&&y(t),l&&l.d(u),o=!1,r()}}}function dn(e,t,n){let{$$slots:o={},$$scope:r}=t,{id:s=""}=t,{type:l}=t;function u(i){let{id:c}=i.currentTarget;n(2,l=c)}return e.$$set=i=>{"id"in i&&n(0,s=i.id),"type"in i&&n(2,l=i.type),"$$scope"in i&&n(3,r=i.$$scope)},[s,u,l,r,o]}var Zt=class extends N{constructor(t){super(),T(this,t,dn,pn,j,{id:0,type:2})}},ot=Zt;function _n(e){let t,n,o,r,s,l,u,i,c,p,a,d,h,m,$;function _(v){e[5](v)}let g={id:"hours",$$slots:{default:[gn]},$$scope:{ctx:e}};e[1]!==void 0&&(g.type=e[1]),n=new ot({props:g}),A.push(()=>et(n,"type",_));function B(v){e[6](v)}let k={id:"months",$$slots:{default:[yn]},$$scope:{ctx:e}};e[1]!==void 0&&(k.type=e[1]),u=new ot({props:k}),A.push(()=>et(u,"type",B));function H(v){e[7](v)}let ee={id:"days",$$slots:{default:[xn]},$$scope:{ctx:e}};return e[1]!==void 0&&(ee.type=e[1]),d=new ot({props:ee}),A.push(()=>et(d,"type",H)),{c(){t=F("li"),I(n.$$.fragment),s=L(),l=F("li"),I(u.$$.fragment),p=L(),a=F("li"),I(d.$$.fragment),f(t,"id",r=q("years",e[0].years)),f(t,"class","svelte-8frftt"),f(l,"id",c=q("months",e[0].months)),f(l,"class","svelte-8frftt"),f(a,"id",m=q("days",e[0].days)),f(a,"class","svelte-8frftt")},m(v,E){x(v,t,E),S(n,t,null),x(v,s,E),x(v,l,E),S(u,l,null),x(v,p,E),x(v,a,E),S(d,a,null),$=!0},p(v,E){let kt={};E&257&&(kt.$$scope={dirty:E,ctx:v}),!o&&E&2&&(o=!0,kt.type=v[1],K(()=>o=!1)),n.$set(kt),(!$||E&1&&r!==(r=q("years",v[0].years)))&&f(t,"id",r);let Et={};E&257&&(Et.$$scope={dirty:E,ctx:v}),!i&&E&2&&(i=!0,Et.type=v[1],K(()=>i=!1)),u.$set(Et),(!$||E&1&&c!==(c=q("months",v[0].months)))&&f(l,"id",c);let St={};E&257&&(St.$$scope={dirty:E,ctx:v}),!h&&E&2&&(h=!0,St.type=v[1],K(()=>h=!1)),d.$set(St),(!$||E&1&&m!==(m=q("days",v[0].days)))&&f(a,"id",m)},i(v){$||(Q(n.$$.fragment,v),Q(u.$$.fragment,v),Q(d.$$.fragment,v),$=!0)},o(v){U(n.$$.fragment,v),U(u.$$.fragment,v),U(d.$$.fragment,v),$=!1},d(v){v&&(y(t),y(s),y(l),y(p),y(a)),D(n),D(u),D(d)}}}function mn(e){let t,n,o,r,s;function l(i){e[4](i)}let u={id:"",$$slots:{default:[Fn]},$$scope:{ctx:e}};return e[1]!==void 0&&(u.type=e[1]),n=new ot({props:u}),A.push(()=>et(n,"type",l)),{c(){t=F("li"),I(n.$$.fragment),f(t,"id",r=q("hours",e[0].full.hours)),f(t,"class","svelte-8frftt")},m(i,c){x(i,t,c),S(n,t,null),s=!0},p(i,c){let p={};c&257&&(p.$$scope={dirty:c,ctx:i}),!o&&c&2&&(o=!0,p.type=i[1],K(()=>o=!1)),n.$set(p),(!s||c&1&&r!==(r=q("hours",i[0].full.hours)))&&f(t,"id",r)},i(i){s||(Q(n.$$.fragment,i),s=!0)},o(i){U(n.$$.fragment,i),s=!1},d(i){i&&y(t),D(n)}}}function hn(e){let t,n,o,r,s;function l(i){e[3](i)}let u={id:"",$$slots:{default:[Qn]},$$scope:{ctx:e}};return e[1]!==void 0&&(u.type=e[1]),n=new ot({props:u}),A.push(()=>et(n,"type",l)),{c(){t=F("li"),I(n.$$.fragment),f(t,"id",r=q("days",e[0].full.days)),f(t,"class","svelte-8frftt")},m(i,c){x(i,t,c),S(n,t,null),s=!0},p(i,c){let p={};c&257&&(p.$$scope={dirty:c,ctx:i}),!o&&c&2&&(o=!0,p.type=i[1],K(()=>o=!1)),n.$set(p),(!s||c&1&&r!==(r=q("days",i[0].full.days)))&&f(t,"id",r)},i(i){s||(Q(n.$$.fragment,i),s=!0)},o(i){U(n.$$.fragment,i),s=!1},d(i){i&&y(t),D(n)}}}function bn(e){let t,n,o,r,s;function l(i){e[2](i)}let u={id:"",$$slots:{default:[$n]},$$scope:{ctx:e}};return e[1]!==void 0&&(u.type=e[1]),n=new ot({props:u}),A.push(()=>et(n,"type",l)),{c(){t=F("li"),I(n.$$.fragment),f(t,"id",r=q("months",e[0].full.months)),f(t,"class","svelte-8frftt")},m(i,c){x(i,t,c),S(n,t,null),s=!0},p(i,c){let p={};c&257&&(p.$$scope={dirty:c,ctx:i}),!o&&c&2&&(o=!0,p.type=i[1],K(()=>o=!1)),n.$set(p),(!s||c&1&&r!==(r=q("months",i[0].full.months)))&&f(t,"id",r)},i(i){s||(Q(n.$$.fragment,i),s=!0)},o(i){U(n.$$.fragment,i),s=!1},d(i){i&&y(t),D(n)}}}function gn(e){let t=e[0].years+"",n;return{c(){n=C(t)},m(o,r){x(o,n,r)},p(o,r){r&1&&t!==(t=o[0].years+"")&&V(n,t)},d(o){o&&y(n)}}}function yn(e){let t=e[0].months+"",n;return{c(){n=C(t)},m(o,r){x(o,n,r)},p(o,r){r&1&&t!==(t=o[0].months+"")&&V(n,t)},d(o){o&&y(n)}}}function xn(e){let t=e[0].days+"",n;return{c(){n=C(t)},m(o,r){x(o,n,r)},p(o,r){r&1&&t!==(t=o[0].days+"")&&V(n,t)},d(o){o&&y(n)}}}function Fn(e){let t=e[0].full.hours+"",n;return{c(){n=C(t)},m(o,r){x(o,n,r)},p(o,r){r&1&&t!==(t=o[0].full.hours+"")&&V(n,t)},d(o){o&&y(n)}}}function Qn(e){let t=e[0].full.days+"",n;return{c(){n=C(t)},m(o,r){x(o,n,r)},p(o,r){r&1&&t!==(t=o[0].full.days+"")&&V(n,t)},d(o){o&&y(n)}}}function $n(e){let t=e[0].full.months+"",n;return{c(){n=C(t)},m(o,r){x(o,n,r)},p(o,r){r&1&&t!==(t=o[0].full.months+"")&&V(n,t)},d(o){o&&y(n)}}}function Un(e){let t,n,o,r,s=[bn,hn,mn,_n],l=[];function u(i,c){return i[1]==="months"?0:i[1]==="days"?1:i[1]==="hours"?2:3}return n=u(e,-1),o=l[n]=s[n](e),{c(){t=F("ul"),o.c(),f(t,"class","svelte-8frftt")},m(i,c){x(i,t,c),l[n].m(t,null),r=!0},p(i,[c]){let p=n;n=u(i,c),n===p?l[n].p(i,c):(G(),U(l[p],1,1,()=>{l[p]=null}),X(),o=l[n],o?o.p(i,c):(o=l[n]=s[n](i),o.c()),Q(o,1),o.m(t,null))},i(i){r||(Q(o),r=!0)},o(i){U(o),r=!1},d(i){i&&y(t),l[n].d()}}}function vn(e,t,n){let{counter:o}=t,r="";function s(a){r=a,n(1,r)}function l(a){r=a,n(1,r)}function u(a){r=a,n(1,r)}function i(a){r=a,n(1,r)}function c(a){r=a,n(1,r)}function p(a){r=a,n(1,r)}return e.$$set=a=>{"counter"in a&&n(0,o=a.counter)},[o,r,s,l,u,i,c,p]}var Gt=class extends N{constructor(t){super(),T(this,t,vn,Un,j,{counter:0})}},Re=Gt;var wt=wn();function wn(){let{subscribe:e,set:t,get:n,update:o}=Ut([]);async function r(){if(!n().length){let i=await fetch("./assets/photos.json");t(await i.json())}s()}function s(){let[{src:u,alt:i}]=l();document.documentElement.style.cssText=` +}`,a=`__svelte_${Ge(p)}_${u}`,d=Ct(e),{stylesheet:h,rules:m}=yt.get(d)||Xe(d,e);m[a]||(m[a]=!0,h.insertRule(`@keyframes ${a} ${p}`,h.cssRules.length));let $=e.style.animation||"";return e.style.animation=`${$?`${$}, `:""}${a} ${o}ms linear ${r}ms 1 both`,xt+=1,a}function Ft(e,t){let n=(e.style.animation||"").split(", "),o=n.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),r=n.length-o.length;r&&(e.style.animation=o.join(", "),xt-=r,xt||He())}function He(){at(()=>{xt||(yt.forEach(e=>{let{ownerNode:t}=e.stylesheet;t&&y(t)}),yt.clear())})}var P;function T(e){P=e}function ve(){if(!P)throw new Error("Function called outside component initialization");return P}var Y=[];var A=[],lt=[],Tt=[],Ye=Promise.resolve(),Rt=!1;function we(){Rt||(Rt=!0,Ye.then(pt))}function Z(e){lt.push(e)}function K(e){Tt.push(e)}var Ot=new Set,it=0;function pt(){if(it!==0)return;let e=P;do{try{for(;ite.indexOf(o)===-1?t.push(o):n.push(o)),n.forEach(o=>o()),lt=t}var dt;function tn(){return dt||(dt=Promise.resolve(),dt.then(()=>{dt=null})),dt}function Ee(e,t,n){e.dispatchEvent(gt(`${t?"intro":"outro"}${n}`))}var Qt=new Set,tt;function G(){tt={r:0,c:[],p:tt}}function X(){tt.r||M(tt.c),tt=tt.p}function Q(e,t){e&&e.i&&(Qt.delete(e),e.i(t))}function U(e,t,n,o){if(e&&e.o){if(Qt.has(e))return;Qt.add(e),tt.c.push(()=>{Qt.delete(e),o&&(n&&e.d(1),o())}),e.o(t)}else o&&o()}var en={duration:0};function ke(e,t,n){let o={direction:"in"},r=t(e,n,o),s=!1,l,u,i=0;function c(){l&&Ft(e,l)}function p(){let{delay:d=0,duration:h=300,easing:m=rt,tick:$=b,css:_}=r||en;_&&(l=qt(e,0,1,h,d,m,_,i++)),$(0,1);let g=Nt()+d,B=g+h;u&&u.abort(),s=!0,Z(()=>Ee(e,!0,"start")),u=It(E=>{if(s){if(E>=B)return $(1,0),Ee(e,!0,"end"),c(),s=!1;if(E>=g){let H=m((E-g)/h);$(H,1-H)}}return s})}let a=!1;return{start(){a||(a=!0,Ft(e),W(r)?(r=r(o),tn().then(p)):p())},invalidate(){a=!1},end(){s&&(c(),s=!1)}}}function Vt(e,t){let n=t.token={};function o(r,s,l,u){if(t.token!==n)return;t.resolved=u;let i=t.ctx;l!==void 0&&(i=i.slice(),i[l]=u);let c=r&&(t.current=r)(i),p=!1;t.block&&(t.blocks?t.blocks.forEach((a,d)=>{d!==s&&a&&(G(),U(a,1,1,()=>{t.blocks[d]===a&&(t.blocks[d]=null)}),X())}):t.block.d(1),c.c(),Q(c,1),c.m(t.mount(),t.anchor),p=!0),t.block=c,t.blocks&&(t.blocks[s]=c),p&&pt()}if(ie(e)){let r=ve();if(e.then(s=>{T(r),o(t.then,1,t.value,s),T(null)},s=>{if(T(r),o(t.catch,2,t.error,s),T(null),!t.hasCatch)throw s}),t.current!==t.pending)return o(t.pending,0),!0}else{if(t.current!==t.then)return o(t.then,1,t.value,e),!0;t.resolved=e}}function zt(e,t,n){let o=t.slice(),{resolved:r}=e;e.current===e.then&&(o[e.value]=r),e.current===e.catch&&(o[e.error]=r),e.block.p(o,n)}function _t(e){return e?.length!==void 0?e:Array.from(e)}var nn=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],on=new Set([...nn]);function et(e,t,n){let o=e.$$.props[t];o!==void 0&&(e.$$.bound[o]=n,n(e.$$.ctx[o]))}function I(e){e&&e.c()}function S(e,t,n){let{fragment:o,after_update:r}=e.$$;o&&o.m(t,n),Z(()=>{let s=e.$$.on_mount.map(Dt).filter(W);e.$$.on_destroy?e.$$.on_destroy.push(...s):M(s),e.$$.on_mount=[]}),r.forEach(Z)}function D(e,t){let n=e.$$;n.fragment!==null&&(Be(n.after_update),M(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function sn(e,t){e.$$.dirty[0]===-1&&(Y.push(e),we(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{let m=h.length?h[0]:d;return c.ctx&&r(c.ctx[a],c.ctx[a]=m)&&(!c.skip_bound&&c.bound[a]&&c.bound[a](m),p&&sn(e,a)),d}):[],c.update(),p=!0,M(c.before_update),c.fragment=o?o(c.ctx):!1,t.target){if(t.hydrate){ge();let a=$e(t.target);c.fragment&&c.fragment.l(a),a.forEach(y)}else c.fragment&&c.fragment.c();t.intro&&Q(e.$$.fragment),S(e,t.target,t.anchor),ye(),pt()}T(i)}var ln;typeof HTMLElement=="function"&&(ln=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let s;return{c:function(){s=F("slot"),r!=="default"&&f(s,"name",r)},m:function(i,c){x(i,s,c)},d:function(i){i&&y(s)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Ue(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Jt(s,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let s=Jt(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let s of this.$$l[r]){let l=this.$$c.$on(r,s);this.$$l_u.set(s,l)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Jt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Jt(e,t,n,o){let r=n[e]?.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!o||!n[e])return t;if(o==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}var N=class{$$=void 0;$$set=void 0;$destroy(){D(this,1),this.$destroy=b}$on(t,n){if(!W(n))return b;let o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(n),()=>{let r=o.indexOf(n);r!==-1&&o.splice(r,1)}}$set(t){this.$$set&&!ce(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}};var Se="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Se);var ct=[];function $t(e,t){return{subscribe:mt(e,t).subscribe}}function mt(e,t=b){let n,o=new Set;function r(u){if(le(e,u)&&(e=u,n)){let i=!ct.length;for(let c of o)c[1](),ct.push(c,e);if(i){for(let c=0;c{o.delete(c),o.size===0&&n&&(n(),n=null)}}return{set:r,update:s,subscribe:l}}function De(e,t,n){let o=!Array.isArray(e),r=o?[e]:e;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=t.length<2;return $t(n,(l,u)=>{let i=!1,c=[],p=0,a=b,d=()=>{if(p)return;a();let m=t(o?c[0]:c,l,u);s?l(m):a=W(m)?m:b},h=r.map((m,$)=>Lt(m,_=>{c[$]=_,p&=~(1<<$),i&&d()},()=>{p|=1<<$}));return i=!0,d(),function(){M(h),a(),i=!1}})}function Le(e,t,n){let{subscribe:o,set:r}=mt(t),s=typeof window=="object"?n?localStorage:sessionStorage:void 0,l=s?.getItem(e)||"";try{t=l?JSON.parse(l):t}catch{t=t}u(t);function u(i){return s?.setItem(e,JSON.stringify(i)),t=i,r(t)}return{get:()=>t,set:i=>u(i),update:i=>u(i(t)),remove:()=>s?.removeItem(e),clear:()=>s?.clear(),subscribe:o}}function Ut(e){let{subscribe:t,set:n}=mt(e);return{subscribe:t,get:()=>e,set:o=>n(e=o),update:o=>n(e=o(e))}}function Ne(e){return Math.floor(Math.random()*e)}function Wt(e,t){return vt()==="ru"?t:e}function vt(){return navigator.language.includes("ru")?"ru":"en"}function R(e,t=0){let n=vt()==="ru",o=t===1||t>20&&String(t).endsWith("1"),r=[2,3,4].includes(t),s={years:o?"\u0433\u043E\u0434":r?"\u0433\u043E\u0434\u0430":"\u043B\u0435\u0442",months:!t||t>4?"\u043C\u0435\u0441\u044F\u0446\u0435\u0432":r?"\u043C\u0435\u0441\u044F\u0446\u0430":"\u043C\u0435\u0441\u044F\u0446",days:o?"\u0434\u0435\u043D\u044C":r?"\u0434\u043D\u044F":"\u0434\u043D\u0435\u0439",hours:o?"\u0447\u0430\u0441":r?"\u0447\u0430\u0441\u0430":"\u0447\u0430\u0441\u043E\u0432"};return n?s[e]:t===1?e.substring(0,e.length-1):e}var nt=cn();function cn(){let{subscribe:e,set:t,get:n,update:o}=Ut([["",""]]);return{subscribe:e,set:t,get:n,update:o,async load(){let r=`./assets/quotes_${vt()}.json`,l=await(await fetch(r)).json();t(l)},random(r){return n()[Ne(n().length-r)]}}}var J=un();function un(){let{subscribe:e,get:t,set:n,update:o}=Le("CountyDates",[],!0);return{subscribe:e,get:t,set:n,update:o,add(r){o(s=>s.concat(r))},change(r,s){J.update(l=>l.map((u,i)=>i===Number(r)?Object.assign(u,s):u))},del(r){J.update(s=>s.filter((l,u)=>u!==r))},quote(r){this.change(r,{quote:nt.random(r)})}}}var Ie=$t(new Date().toLocaleDateString("en-CA")),Me=$t(new Date().toLocaleTimeString("ru"),e=>{let t=setInterval(()=>{let n=new Date().toLocaleTimeString("ru");e(n)},1e3);return()=>clearInterval(t)});var Ce=De([J,nt],([e,t],n)=>{n(e.map(({start:r,title:s,quote:l},u)=>o(u,r,s,l)));function o(r,s,l,u){let i=new Date,c=new Date(s),p=i.getTime()-c.getTime(),a=i.getMonth()-c.getMonth(),d=i.getDate()-c.getDate(),h=new Date(i.getFullYear(),i.getMonth()+1,0).getDate(),m=new Date(p).getFullYear()-1970,$=(m*12+a)%12,_=($*h+d)%h;return{id:r,title:l,quote:u||nt.random(r),start:s,years:Math.abs(m),months:Math.abs($),days:Math.abs(_),full:{months:m*12+Math.abs($),days:Math.trunc(p/(36e5*24)),hours:Math.trunc(p/36e5)}}}},[]);function je(e,{delay:t=0,duration:n=400,easing:o=rt}={}){let r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:o,css:s=>`opacity: ${s*r}`}}function At(e){let t=e.slice(),n=t[0];return t[2]=n[0],t[3]=n[1],t}function qe(e){let t,n,o=e[2]+"",r,s,l,u,i,c=e[3]+"",p,a;return{c(){t=F("blockquote"),n=F("p"),r=j(o),s=L(),l=F("p"),u=F("a"),i=j("~ "),p=j(c),f(n,"class","svelte-10fl26u"),f(u,"href",e[1]),f(u,"target","_blank"),f(u,"class","svelte-10fl26u"),f(l,"class","svelte-10fl26u"),f(t,"class","svelte-10fl26u")},m(d,h){x(d,t,h),w(t,n),w(n,r),w(t,s),w(t,l),w(l,u),w(u,i),w(u,p)},p(d,h){h&1&&o!==(o=d[2]+"")&&V(r,o),h&1&&c!==(c=d[3]+"")&&V(p,c),h&2&&f(u,"href",d[1])},i(d){d&&(a||Z(()=>{a=ke(t,je,{}),a.start()}))},o:b,d(d){d&&y(t)}}}function an(e){let t,n=e[0]&&qe(At(e));return{c(){n&&n.c(),t=ft()},m(o,r){n&&n.m(o,r),x(o,t,r)},p(o,[r]){o[0]?n?(n.p(At(o),r),r&1&&Q(n,1)):(n=qe(At(o)),n.c(),Q(n,1),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i(o){Q(n)},o:b,d(o){o&&y(t),n&&n.d(o)}}}function fn(e,t,n){let{quote:o}=t,{href:r=""}=t;return e.$$set=s=>{"quote"in s&&n(0,o=s.quote),"href"in s&&n(1,r=s.href)},[o,r]}var Pt=class extends N{constructor(t){super(),q(this,t,fn,an,C,{quote:0,href:1})}},Oe=Pt;function pn(e){let t,n,o,r,s=e[4].default,l=ue(s,e,e[3],null);return{c(){t=F("button"),l&&l.c(),f(t,"id",e[0]),f(t,"class","clear outline svelte-1wl0gbz")},m(u,i){x(u,t,i),l&&l.m(t,null),n=!0,o||(r=z(t,"click",e[1]),o=!0)},p(u,[i]){l&&l.p&&(!n||i&8)&&pe(l,s,u,u[3],n?fe(s,u[3],i,null):de(u[3]),null),(!n||i&1)&&f(t,"id",u[0])},i(u){n||(Q(l,u),n=!0)},o(u){U(l,u),n=!1},d(u){u&&y(t),l&&l.d(u),o=!1,r()}}}function dn(e,t,n){let{$$slots:o={},$$scope:r}=t,{id:s=""}=t,{type:l}=t;function u(i){let{id:c}=i.currentTarget;n(2,l=c)}return e.$$set=i=>{"id"in i&&n(0,s=i.id),"type"in i&&n(2,l=i.type),"$$scope"in i&&n(3,r=i.$$scope)},[s,u,l,r,o]}var Zt=class extends N{constructor(t){super(),q(this,t,dn,pn,C,{id:0,type:2})}},ot=Zt;function _n(e){let t,n,o,r,s,l,u,i,c,p,a,d,h,m,$;function _(v){e[5](v)}let g={id:"hours",$$slots:{default:[gn]},$$scope:{ctx:e}};e[1]!==void 0&&(g.type=e[1]),n=new ot({props:g}),A.push(()=>et(n,"type",_));function B(v){e[6](v)}let E={id:"months",$$slots:{default:[yn]},$$scope:{ctx:e}};e[1]!==void 0&&(E.type=e[1]),u=new ot({props:E}),A.push(()=>et(u,"type",B));function H(v){e[7](v)}let ee={id:"days",$$slots:{default:[xn]},$$scope:{ctx:e}};return e[1]!==void 0&&(ee.type=e[1]),d=new ot({props:ee}),A.push(()=>et(d,"type",H)),{c(){t=F("li"),I(n.$$.fragment),s=L(),l=F("li"),I(u.$$.fragment),p=L(),a=F("li"),I(d.$$.fragment),f(t,"id",r=R("years",e[0].years)),f(t,"class","svelte-m8bu4d"),f(l,"id",c=R("months",e[0].months)),f(l,"class","svelte-m8bu4d"),f(a,"id",m=R("days",e[0].days)),f(a,"class","svelte-m8bu4d")},m(v,k){x(v,t,k),S(n,t,null),x(v,s,k),x(v,l,k),S(u,l,null),x(v,p,k),x(v,a,k),S(d,a,null),$=!0},p(v,k){let Et={};k&257&&(Et.$$scope={dirty:k,ctx:v}),!o&&k&2&&(o=!0,Et.type=v[1],K(()=>o=!1)),n.$set(Et),(!$||k&1&&r!==(r=R("years",v[0].years)))&&f(t,"id",r);let kt={};k&257&&(kt.$$scope={dirty:k,ctx:v}),!i&&k&2&&(i=!0,kt.type=v[1],K(()=>i=!1)),u.$set(kt),(!$||k&1&&c!==(c=R("months",v[0].months)))&&f(l,"id",c);let St={};k&257&&(St.$$scope={dirty:k,ctx:v}),!h&&k&2&&(h=!0,St.type=v[1],K(()=>h=!1)),d.$set(St),(!$||k&1&&m!==(m=R("days",v[0].days)))&&f(a,"id",m)},i(v){$||(Q(n.$$.fragment,v),Q(u.$$.fragment,v),Q(d.$$.fragment,v),$=!0)},o(v){U(n.$$.fragment,v),U(u.$$.fragment,v),U(d.$$.fragment,v),$=!1},d(v){v&&(y(t),y(s),y(l),y(p),y(a)),D(n),D(u),D(d)}}}function mn(e){let t,n,o,r,s;function l(i){e[4](i)}let u={id:"",$$slots:{default:[Fn]},$$scope:{ctx:e}};return e[1]!==void 0&&(u.type=e[1]),n=new ot({props:u}),A.push(()=>et(n,"type",l)),{c(){t=F("li"),I(n.$$.fragment),f(t,"id",r=R("hours",e[0].full.hours)),f(t,"class","svelte-m8bu4d")},m(i,c){x(i,t,c),S(n,t,null),s=!0},p(i,c){let p={};c&257&&(p.$$scope={dirty:c,ctx:i}),!o&&c&2&&(o=!0,p.type=i[1],K(()=>o=!1)),n.$set(p),(!s||c&1&&r!==(r=R("hours",i[0].full.hours)))&&f(t,"id",r)},i(i){s||(Q(n.$$.fragment,i),s=!0)},o(i){U(n.$$.fragment,i),s=!1},d(i){i&&y(t),D(n)}}}function hn(e){let t,n,o,r,s;function l(i){e[3](i)}let u={id:"",$$slots:{default:[Qn]},$$scope:{ctx:e}};return e[1]!==void 0&&(u.type=e[1]),n=new ot({props:u}),A.push(()=>et(n,"type",l)),{c(){t=F("li"),I(n.$$.fragment),f(t,"id",r=R("days",e[0].full.days)),f(t,"class","svelte-m8bu4d")},m(i,c){x(i,t,c),S(n,t,null),s=!0},p(i,c){let p={};c&257&&(p.$$scope={dirty:c,ctx:i}),!o&&c&2&&(o=!0,p.type=i[1],K(()=>o=!1)),n.$set(p),(!s||c&1&&r!==(r=R("days",i[0].full.days)))&&f(t,"id",r)},i(i){s||(Q(n.$$.fragment,i),s=!0)},o(i){U(n.$$.fragment,i),s=!1},d(i){i&&y(t),D(n)}}}function bn(e){let t,n,o,r,s;function l(i){e[2](i)}let u={id:"",$$slots:{default:[$n]},$$scope:{ctx:e}};return e[1]!==void 0&&(u.type=e[1]),n=new ot({props:u}),A.push(()=>et(n,"type",l)),{c(){t=F("li"),I(n.$$.fragment),f(t,"id",r=R("months",e[0].full.months)),f(t,"class","svelte-m8bu4d")},m(i,c){x(i,t,c),S(n,t,null),s=!0},p(i,c){let p={};c&257&&(p.$$scope={dirty:c,ctx:i}),!o&&c&2&&(o=!0,p.type=i[1],K(()=>o=!1)),n.$set(p),(!s||c&1&&r!==(r=R("months",i[0].full.months)))&&f(t,"id",r)},i(i){s||(Q(n.$$.fragment,i),s=!0)},o(i){U(n.$$.fragment,i),s=!1},d(i){i&&y(t),D(n)}}}function gn(e){let t=e[0].years+"",n;return{c(){n=j(t)},m(o,r){x(o,n,r)},p(o,r){r&1&&t!==(t=o[0].years+"")&&V(n,t)},d(o){o&&y(n)}}}function yn(e){let t=e[0].months+"",n;return{c(){n=j(t)},m(o,r){x(o,n,r)},p(o,r){r&1&&t!==(t=o[0].months+"")&&V(n,t)},d(o){o&&y(n)}}}function xn(e){let t=e[0].days+"",n;return{c(){n=j(t)},m(o,r){x(o,n,r)},p(o,r){r&1&&t!==(t=o[0].days+"")&&V(n,t)},d(o){o&&y(n)}}}function Fn(e){let t=e[0].full.hours+"",n;return{c(){n=j(t)},m(o,r){x(o,n,r)},p(o,r){r&1&&t!==(t=o[0].full.hours+"")&&V(n,t)},d(o){o&&y(n)}}}function Qn(e){let t=e[0].full.days+"",n;return{c(){n=j(t)},m(o,r){x(o,n,r)},p(o,r){r&1&&t!==(t=o[0].full.days+"")&&V(n,t)},d(o){o&&y(n)}}}function $n(e){let t=e[0].full.months+"",n;return{c(){n=j(t)},m(o,r){x(o,n,r)},p(o,r){r&1&&t!==(t=o[0].full.months+"")&&V(n,t)},d(o){o&&y(n)}}}function Un(e){let t,n,o,r,s=[bn,hn,mn,_n],l=[];function u(i,c){return i[1]==="months"?0:i[1]==="days"?1:i[1]==="hours"?2:3}return n=u(e,-1),o=l[n]=s[n](e),{c(){t=F("ul"),o.c(),f(t,"class","svelte-m8bu4d")},m(i,c){x(i,t,c),l[n].m(t,null),r=!0},p(i,[c]){let p=n;n=u(i,c),n===p?l[n].p(i,c):(G(),U(l[p],1,1,()=>{l[p]=null}),X(),o=l[n],o?o.p(i,c):(o=l[n]=s[n](i),o.c()),Q(o,1),o.m(t,null))},i(i){r||(Q(o),r=!0)},o(i){U(o),r=!1},d(i){i&&y(t),l[n].d()}}}function vn(e,t,n){let{counter:o}=t,r="";function s(a){r=a,n(1,r)}function l(a){r=a,n(1,r)}function u(a){r=a,n(1,r)}function i(a){r=a,n(1,r)}function c(a){r=a,n(1,r)}function p(a){r=a,n(1,r)}return e.$$set=a=>{"counter"in a&&n(0,o=a.counter)},[o,r,s,l,u,i,c,p]}var Gt=class extends N{constructor(t){super(),q(this,t,vn,Un,C,{counter:0})}},Te=Gt;var wt=wn();function wn(){let{subscribe:e,set:t,get:n,update:o}=Ut([]);async function r(){if(!n().length){let i=await fetch("./assets/photos.json");t(await i.json())}s()}function s(){let[{src:u,alt:i}]=l();document.documentElement.style.cssText=` background: url(${u}) center no-repeat; background-size: cover; - `,document.documentElement.title=i}function l(u=1,i={width:window.innerWidth,height:window.innerHeight}){let c=Array.from({length:u},()=>Math.floor(Math.random()*24644));return n().reduce((d,[h,m,$],_)=>{if(c.includes(_)){let g={width:i.height*(m/10),height:i.height},B={width:i.width,height:i.height},k=`?w=${p(a(g,B).width)}`;d.push({id:_,src:`https://images.unsplash.com/photo-${h}${k}`,alt:`Image by ${$} from Unsplash`,...a(g,B)})}return d},[]);function p(d){return d*devicePixelRatio}function a(d,h){let m=Math.min(h.width/d.width,h.height,d.height);return{width:Math.round(d.width*m),height:Math.round(d.height*m)}}}return{subscribe:e,set:t,update:o,load:r,prepare:l,back:s}}function Bn(e){let t,n,o,r;return{c(){t=Ct("svg"),n=Ct("use"),f(n,"href",o="./assets/sprite.svg#"+e[1]),f(t,"id",e[0]),f(t,"width",e[2]),f(t,"height",e[2]),f(t,"fill",e[3]),f(t,"style",r="transform: rotate("+e[4]+"deg); --icon-size: "+e[2]+"; "+e[6]),f(t,"class","svelte-e5fszy"),O(t,"spin",e[5]),O(t,"bordered",e[7])},m(s,l){x(s,t,l),w(t,n)},p(s,[l]){l&2&&o!==(o="./assets/sprite.svg#"+s[1])&&f(n,"href",o),l&1&&f(t,"id",s[0]),l&4&&f(t,"width",s[2]),l&4&&f(t,"height",s[2]),l&8&&f(t,"fill",s[3]),l&84&&r!==(r="transform: rotate("+s[4]+"deg); --icon-size: "+s[2]+"; "+s[6])&&f(t,"style",r),l&32&&O(t,"spin",s[5]),l&128&&O(t,"bordered",s[7])},i:b,o:b,d(s){s&&y(t)}}}function kn(e,t,n){let{id:o=""}=t,{name:r="Close"}=t,{size:s="16px"}=t,{color:l="currentColor"}=t,{rotate:u=0}=t,{spin:i=!1}=t,{style:c=""}=t,{bordered:p=!1}=t;return e.$$set=a=>{"id"in a&&n(0,o=a.id),"name"in a&&n(1,r=a.name),"size"in a&&n(2,s=a.size),"color"in a&&n(3,l=a.color),"rotate"in a&&n(4,u=a.rotate),"spin"in a&&n(5,i=a.spin),"style"in a&&n(6,c=a.style),"bordered"in a&&n(7,p=a.bordered)},[o,r,s,l,u,i,c,p]}var Xt=class extends N{constructor(t){super(),T(this,t,kn,Bn,j,{id:0,name:1,size:2,color:3,rotate:4,spin:5,style:6,bordered:7})}},Bt=Xt;function En(e){let t,n,o,r,s,l,u,i,c,p,a;return n=new Bt({props:{name:"Images"}}),s=new Bt({props:{name:"Delete"}}),i=new Bt({props:{name:"Quote"}}),{c(){t=F("button"),I(n.$$.fragment),o=L(),r=F("button"),I(s.$$.fragment),l=L(),u=F("button"),I(i.$$.fragment),f(t,"class","box"),f(r,"class","box"),f(r,"id",e[0]),f(u,"class","box"),f(u,"id",e[0])},m(d,h){x(d,t,h),S(n,t,null),x(d,o,h),x(d,r,h),S(s,r,null),x(d,l,h),x(d,u,h),S(i,u,null),c=!0,p||(a=[z(t,"click",wt.back),z(r,"click",Dn),z(u,"click",Sn)],p=!0)},p(d,[h]){(!c||h&1)&&f(r,"id",d[0]),(!c||h&1)&&f(u,"id",d[0])},i(d){c||(Q(n.$$.fragment,d),Q(s.$$.fragment,d),Q(i.$$.fragment,d),c=!0)},o(d){U(n.$$.fragment,d),U(s.$$.fragment,d),U(i.$$.fragment,d),c=!1},d(d){d&&(y(t),y(o),y(r),y(l),y(u)),D(n),D(s),D(i),p=!1,M(a)}}}function Sn(e){let{id:t}=e.target;J.quote(Number(t))}function Dn(e){let{id:t}=e.target;J.del(Number(t))}function Ln(e,t,n){let{active:o}=t;return e.$$set=r=>{"active"in r&&n(0,o=r.active)},[o]}var Ht=class extends N{constructor(t){super(),T(this,t,Ln,En,j,{active:0})}},qe=Ht;function Ve(e){let t,n,o;return{c(){t=F("fieldset"),n=F("h2"),o=F("button"),o.textContent=`${Wt("Add counter","\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u0447\u0451\u0442\u0447\u0438\u043A")}`,f(o,"class","svelte-1ajygs9"),f(t,"class","svelte-1ajygs9")},m(r,s){x(r,t,s),w(t,n),w(n,o)},d(r){r&&y(t)}}}function Nn(e){let t,n,o,r,s,l,u,i,c,p,a,d,h,m,$,_=!e[1]&&Ve(e);return{c(){t=F("form"),n=F("fieldset"),o=F("label"),r=F("input"),u=L(),i=F("label"),c=F("input"),h=L(),_&&_.c(),f(r,"id",s=String(e[0])),f(r,"type","date"),f(r,"name","start"),r.value=l=e[1]?.start||e[2],r.required=!0,f(r,"class","svelte-1ajygs9"),O(r,"clear",e[1]),f(c,"id",p=String(e[0])),f(c,"type","text"),f(c,"name","title"),f(c,"maxlength","15"),c.value=a=e[1]?.title||"",f(c,"placeholder",d=Wt("Counter name","\u0418\u043C\u044F \u0441\u0447\u0451\u0442\u0447\u0438\u043A\u0430")),f(c,"autocomplete","off"),c.required=!0,f(c,"class","svelte-1ajygs9"),O(c,"clear",e[1]),f(n,"class","svelte-1ajygs9"),f(t,"action","post"),f(t,"class","svelte-1ajygs9")},m(g,B){x(g,t,B),w(t,n),w(n,o),w(o,r),w(n,u),w(n,i),w(i,c),w(n,h),_&&_.m(n,null),m||($=[z(r,"change",e[4]),z(c,"change",e[4]),z(t,"submit",Qe(e[3]))],m=!0)},p(g,[B]){B&1&&s!==(s=String(g[0]))&&f(r,"id",s),B&6&&l!==(l=g[1]?.start||g[2])&&(r.value=l),B&2&&O(r,"clear",g[1]),B&1&&p!==(p=String(g[0]))&&f(c,"id",p),B&2&&a!==(a=g[1]?.title||"")&&c.value!==a&&(c.value=a),B&2&&O(c,"clear",g[1]),g[1]?_&&(_.d(1),_=null):_||(_=Ve(g),_.c(),_.m(n,null))},i:b,o:b,d(g){g&&y(t),_&&_.d(),m=!1,M($)}}}function In(e,t,n){let o;ut(e,Ie,i=>n(2,o=i));let{id:r=0}=t,{counter:s=void 0}=t;function l(i){if(s)return;let c=new FormData(i.target),p=Object.fromEntries(c);J.add(p)}function u(i){if(!s)return;let{id:c,name:p,value:a}=i.currentTarget,d={[p]:a};J.change(Number(c),d)}return e.$$set=i=>{"id"in i&&n(0,r=i.id),"counter"in i&&n(1,s=i.counter)},[r,s,o,l,u]}var Yt=class extends N{constructor(t){super(),T(this,t,In,Nn,j,{id:0,counter:1})}},Kt=Yt;function ze(e,t,n){let o=e.slice();return o[6]=t[n],o[8]=n,o}function Mn(e){return{c:b,m:b,p:b,i:b,o:b,d:b}}function jn(e){let t,n,o,r={ctx:e,current:null,token:null,hasCatch:!1,pending:qn,then:Tn,catch:Cn,blocks:[,,,]};return Vt(n=nt.load(),r),{c(){t=ft(),r.block.c()},m(s,l){x(s,t,l),r.block.m(s,r.anchor=l),r.mount=()=>t.parentNode,r.anchor=t,o=!0},p(s,l){e=s,zt(r,e,l)},i(s){o||(Q(r.block),o=!0)},o(s){for(let l=0;l<3;l+=1){let u=r.blocks[l];U(u)}o=!1},d(s){s&&y(t),r.block.d(s),r.token=null,r=null}}}function Cn(e){return{c:b,m:b,p:b,i:b,o:b,d:b}}function Tn(e){let t,n,o,r,s,l,u,i,c,p=_t(e[3]),a=[];for(let _=0;_U(a[_],1,1,()=>{a[_]=null});r=new Kt({});let h=[Rn,On],m=[];function $(_,g){return _[2]?0:1}return u=$(e,-1),i=m[u]=h[u](e),{c(){t=F("main");for(let _=0;_{m[B]=null}),X(),i=m[u],i?i.p(_,g):(i=m[u]=h[u](_),i.c()),Q(i,1),i.m(l,null)),(!c||g&4)&&O(l,"active",_[2])},i(_){if(!c){for(let g=0;go.parentNode,l.anchor=o,s=!0},p(u,[i]){e=u,(!s||i&1)&&t!==(t=e[0])&&(document.title=t),zt(l,e,i)},i(u){s||(Q(l.block),s=!0)},o(u){for(let i=0;i<3;i+=1){let c=l.blocks[i];U(c)}s=!1},d(u){u&&(y(n),y(o)),l.block.d(u),l.token=null,l=null}}}function Jn(e,t,n){let o,r;ut(e,je,c=>n(3,o=c)),ut(e,Me,c=>n(4,r=c));let{name:s}=t,{repository:l}=t,u="0";function i(c){new IntersectionObserver(a,{threshold:1}).observe(c);function a(d){let h=d.find(m=>m.isIntersecting);n(2,u=h?.target.id)}}return e.$$set=c=>{"name"in c&&n(0,s=c.name),"repository"in c&&n(1,l=c.repository)},[s,l,u,o,r,i]}var te=class extends N{constructor(t){super(),T(this,t,Jn,zn,j,{name:0,repository:1})}},Ae=te;var ni=new Ae({target:document.body,props:{name:oe,repository:re.url}});export{ni as default}; + `,document.documentElement.title=i}function l(u=1,i={width:window.innerWidth,height:window.innerHeight}){let c=Array.from({length:u},()=>Math.floor(Math.random()*24644));return n().reduce((d,[h,m,$],_)=>{if(c.includes(_)){let g={width:i.height*(m/10),height:i.height},B={width:i.width,height:i.height},E=`?w=${p(a(g,B).width)}`;d.push({id:_,src:`https://images.unsplash.com/photo-${h}${E}`,alt:`Image by ${$} from Unsplash`,...a(g,B)})}return d},[]);function p(d){return d*devicePixelRatio}function a(d,h){let m=Math.min(h.width/d.width,h.height,d.height);return{width:Math.round(d.width*m),height:Math.round(d.height*m)}}}return{subscribe:e,set:t,update:o,load:r,prepare:l,back:s}}function Bn(e){let t,n,o,r;return{c(){t=jt("svg"),n=jt("use"),f(n,"href",o="./assets/sprite.svg#"+e[1]),f(t,"id",e[0]),f(t,"width",e[2]),f(t,"height",e[2]),f(t,"fill",e[3]),f(t,"style",r="transform: rotate("+e[4]+"deg); --icon-size: "+e[2]+"; "+e[6]),f(t,"class","svelte-e5fszy"),O(t,"spin",e[5]),O(t,"bordered",e[7])},m(s,l){x(s,t,l),w(t,n)},p(s,[l]){l&2&&o!==(o="./assets/sprite.svg#"+s[1])&&f(n,"href",o),l&1&&f(t,"id",s[0]),l&4&&f(t,"width",s[2]),l&4&&f(t,"height",s[2]),l&8&&f(t,"fill",s[3]),l&84&&r!==(r="transform: rotate("+s[4]+"deg); --icon-size: "+s[2]+"; "+s[6])&&f(t,"style",r),l&32&&O(t,"spin",s[5]),l&128&&O(t,"bordered",s[7])},i:b,o:b,d(s){s&&y(t)}}}function En(e,t,n){let{id:o=""}=t,{name:r="Close"}=t,{size:s="16px"}=t,{color:l="currentColor"}=t,{rotate:u=0}=t,{spin:i=!1}=t,{style:c=""}=t,{bordered:p=!1}=t;return e.$$set=a=>{"id"in a&&n(0,o=a.id),"name"in a&&n(1,r=a.name),"size"in a&&n(2,s=a.size),"color"in a&&n(3,l=a.color),"rotate"in a&&n(4,u=a.rotate),"spin"in a&&n(5,i=a.spin),"style"in a&&n(6,c=a.style),"bordered"in a&&n(7,p=a.bordered)},[o,r,s,l,u,i,c,p]}var Xt=class extends N{constructor(t){super(),q(this,t,En,Bn,C,{id:0,name:1,size:2,color:3,rotate:4,spin:5,style:6,bordered:7})}},Bt=Xt;function kn(e){let t,n,o,r,s,l,u,i,c,p,a;return n=new Bt({props:{name:"Images"}}),s=new Bt({props:{name:"Delete"}}),i=new Bt({props:{name:"Quote"}}),{c(){t=F("button"),I(n.$$.fragment),o=L(),r=F("button"),I(s.$$.fragment),l=L(),u=F("button"),I(i.$$.fragment),f(t,"class","box"),f(r,"class","box"),f(r,"id",e[0]),f(u,"class","box"),f(u,"id",e[0])},m(d,h){x(d,t,h),S(n,t,null),x(d,o,h),x(d,r,h),S(s,r,null),x(d,l,h),x(d,u,h),S(i,u,null),c=!0,p||(a=[z(t,"click",wt.back),z(r,"click",Dn),z(u,"click",Sn)],p=!0)},p(d,[h]){(!c||h&1)&&f(r,"id",d[0]),(!c||h&1)&&f(u,"id",d[0])},i(d){c||(Q(n.$$.fragment,d),Q(s.$$.fragment,d),Q(i.$$.fragment,d),c=!0)},o(d){U(n.$$.fragment,d),U(s.$$.fragment,d),U(i.$$.fragment,d),c=!1},d(d){d&&(y(t),y(o),y(r),y(l),y(u)),D(n),D(s),D(i),p=!1,M(a)}}}function Sn(e){let{id:t}=e.target;J.quote(Number(t))}function Dn(e){let{id:t}=e.target;J.del(Number(t))}function Ln(e,t,n){let{active:o}=t;return e.$$set=r=>{"active"in r&&n(0,o=r.active)},[o]}var Ht=class extends N{constructor(t){super(),q(this,t,Ln,kn,C,{active:0})}},Re=Ht;function Ve(e){let t,n,o;return{c(){t=F("fieldset"),n=F("h2"),o=F("button"),o.textContent=`${Wt("Add counter","\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u0447\u0451\u0442\u0447\u0438\u043A")}`,f(o,"class","svelte-1ajygs9"),f(t,"class","svelte-1ajygs9")},m(r,s){x(r,t,s),w(t,n),w(n,o)},d(r){r&&y(t)}}}function Nn(e){let t,n,o,r,s,l,u,i,c,p,a,d,h,m,$,_=!e[1]&&Ve(e);return{c(){t=F("form"),n=F("fieldset"),o=F("label"),r=F("input"),u=L(),i=F("label"),c=F("input"),h=L(),_&&_.c(),f(r,"id",s=String(e[0])),f(r,"type","date"),f(r,"name","start"),r.value=l=e[1]?.start||e[2],r.required=!0,f(r,"class","svelte-1ajygs9"),O(r,"clear",e[1]),f(c,"id",p=String(e[0])),f(c,"type","text"),f(c,"name","title"),f(c,"maxlength","15"),c.value=a=e[1]?.title||"",f(c,"placeholder",d=Wt("Counter name","\u0418\u043C\u044F \u0441\u0447\u0451\u0442\u0447\u0438\u043A\u0430")),f(c,"autocomplete","off"),c.required=!0,f(c,"class","svelte-1ajygs9"),O(c,"clear",e[1]),f(n,"class","svelte-1ajygs9"),f(t,"action","post"),f(t,"class","svelte-1ajygs9")},m(g,B){x(g,t,B),w(t,n),w(n,o),w(o,r),w(n,u),w(n,i),w(i,c),w(n,h),_&&_.m(n,null),m||($=[z(r,"change",e[4]),z(c,"change",e[4]),z(t,"submit",Qe(e[3]))],m=!0)},p(g,[B]){B&1&&s!==(s=String(g[0]))&&f(r,"id",s),B&6&&l!==(l=g[1]?.start||g[2])&&(r.value=l),B&2&&O(r,"clear",g[1]),B&1&&p!==(p=String(g[0]))&&f(c,"id",p),B&2&&a!==(a=g[1]?.title||"")&&c.value!==a&&(c.value=a),B&2&&O(c,"clear",g[1]),g[1]?_&&(_.d(1),_=null):_||(_=Ve(g),_.c(),_.m(n,null))},i:b,o:b,d(g){g&&y(t),_&&_.d(),m=!1,M($)}}}function In(e,t,n){let o;ut(e,Ie,i=>n(2,o=i));let{id:r=0}=t,{counter:s=void 0}=t;function l(i){if(s)return;let c=new FormData(i.target),p=Object.fromEntries(c);J.add(p)}function u(i){if(!s)return;let{id:c,name:p,value:a}=i.currentTarget,d={[p]:a};J.change(Number(c),d)}return e.$$set=i=>{"id"in i&&n(0,r=i.id),"counter"in i&&n(1,s=i.counter)},[r,s,o,l,u]}var Yt=class extends N{constructor(t){super(),q(this,t,In,Nn,C,{id:0,counter:1})}},Kt=Yt;function ze(e,t,n){let o=e.slice();return o[6]=t[n],o[8]=n,o}function Mn(e){return{c:b,m:b,p:b,i:b,o:b,d:b}}function Cn(e){let t,n,o,r={ctx:e,current:null,token:null,hasCatch:!1,pending:Rn,then:qn,catch:jn,blocks:[,,,]};return Vt(n=nt.load(),r),{c(){t=ft(),r.block.c()},m(s,l){x(s,t,l),r.block.m(s,r.anchor=l),r.mount=()=>t.parentNode,r.anchor=t,o=!0},p(s,l){e=s,zt(r,e,l)},i(s){o||(Q(r.block),o=!0)},o(s){for(let l=0;l<3;l+=1){let u=r.blocks[l];U(u)}o=!1},d(s){s&&y(t),r.block.d(s),r.token=null,r=null}}}function jn(e){return{c:b,m:b,p:b,i:b,o:b,d:b}}function qn(e){let t,n,o,r,s,l,u,i,c,p=_t(e[3]),a=[];for(let _=0;_U(a[_],1,1,()=>{a[_]=null});r=new Kt({});let h=[Tn,On],m=[];function $(_,g){return _[2]?0:1}return u=$(e,-1),i=m[u]=h[u](e),{c(){t=F("main");for(let _=0;_{m[B]=null}),X(),i=m[u],i?i.p(_,g):(i=m[u]=h[u](_),i.c()),Q(i,1),i.m(l,null)),(!c||g&4)&&O(l,"active",_[2])},i(_){if(!c){for(let g=0;go.parentNode,l.anchor=o,s=!0},p(u,[i]){e=u,(!s||i&1)&&t!==(t=e[0])&&(document.title=t),zt(l,e,i)},i(u){s||(Q(l.block),s=!0)},o(u){for(let i=0;i<3;i+=1){let c=l.blocks[i];U(c)}s=!1},d(u){u&&(y(n),y(o)),l.block.d(u),l.token=null,l=null}}}function Jn(e,t,n){let o,r;ut(e,Ce,c=>n(3,o=c)),ut(e,Me,c=>n(4,r=c));let{name:s}=t,{repository:l}=t,u="0";function i(c){new IntersectionObserver(a,{threshold:1}).observe(c);function a(d){let h=d.find(m=>m.isIntersecting);n(2,u=h?.target.id)}}return e.$$set=c=>{"name"in c&&n(0,s=c.name),"repository"in c&&n(1,l=c.repository)},[s,l,u,o,r,i]}var te=class extends N{constructor(t){super(),q(this,t,Jn,zn,C,{name:0,repository:1})}},Ae=te;var ni=new Ae({target:document.body,props:{name:oe,repository:re.url}});export{ni as default};