@htmlbricks/hb-input-datetime 0.66.0 → 0.66.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(Ft){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const zn=1,Un=2,jt="[",ht="[!",It="]",ge={},x=Symbol(),Wn="http://www.w3.org/1999/xhtml",vt=!1;var Jn=Array.isArray,Gn=Array.prototype.indexOf,Kn=Array.from,We=Object.keys,Je=Object.defineProperty,be=Object.getOwnPropertyDescriptor,Xn=Object.getOwnPropertyDescriptors,Zn=Object.prototype,Qn=Array.prototype,Vt=Object.getPrototypeOf,Bt=Object.isExtensible;function er(e){for(var t=0;t<e.length;t++)e[t]()}function Ht(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const k=2,_t=4,pt=8,J=16,G=32,ie=64,Ge=128,V=512,E=1024,N=2048,K=4096,Y=8192,X=16384,Ke=32768,we=65536,Yt=1<<17,zt=1<<18,fe=1<<19,tr=1<<20,ue=32768,mt=1<<21,gt=1<<22,se=1<<23,bt=Symbol("$state"),nr=Symbol("legacy props"),ye=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},wt=3,Ae=8;function rr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ir(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function sr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function or(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ar(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function lr(){throw new Error("https://svelte.dev/e/hydration_failed")}function fr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ur(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function cr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function dr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Xe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function hr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function oe(e){w=e}let b;function B(e){if(e===null)throw Xe(),ge;return b=e}function yt(){return B(ee(b))}function $e(e){if(w){if(ee(b)!==null)throw Xe(),ge;b=e}}function vr(e=1){if(w){for(var t=e,n=b;t--;)n=ee(n);b=n}}function Ut(e=!0){for(var t=0,n=b;;){if(n.nodeType===Ae){var r=n.data;if(r===It){if(t===0)return n;t-=1}else(r===jt||r===ht)&&(t+=1)}var i=ee(n);e&&n.remove(),n=i}}function _r(e){if(!e||e.nodeType!==Ae)throw Xe(),ge;return e.data}function Wt(e){return e===this.v}function pr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function mr(e){return!pr(e,this.v)}let gr=!1,R=null;function ke(e){R=e}function Jt(e,t=!1,n){R={p:R,i:!1,c:null,e:null,s:e,x:null,l:null}}function Gt(e){var t=R,n=t.e;if(n!==null){t.e=null;for(var r of n)vn(r)}return e!==void 0&&(t.x=e),t.i=!0,R=t.p,e??{}}function Kt(){return!0}let ce=[];function Xt(){var e=ce;ce=[],er(e)}function Ze(e){if(ce.length===0&&!De){var t=ce;queueMicrotask(()=>{t===ce&&Xt()})}ce.push(e)}function br(){for(;ce.length>0;)Xt()}function Zt(e){var t=m;if(t===null)return p.f|=se,e;if((t.f&Ke)===0){if((t.f&Ge)===0)throw e;t.b.error(e)}else xe(e,t)}function xe(e,t){for(;t!==null;){if((t.f&Ge)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Qe=new Set;let $=null,M=null,L=[],et=null,$t=!1,De=!1;class H{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#l=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){L=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#o(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#a(n.effects),this.#a(n.render_effects),this.#a(n.block_effects)):($=null,en(n.render_effects),en(n.effects),this.#l?.resolve()),M=null}#o(t,n){t.f^=E;for(var r=t.first;r!==null;){var i=r.f,s=(i&(G|ie))!==0,o=s&&(i&E)!==0,a=o||(i&Y)!==0||this.skipped_effects.has(r);if((r.f&Ge)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!a&&r.fn!==null){s?r.f^=E:(i&_t)!==0?n.effects.push(r):Ve(r)&&((r.f&J)!==0&&n.block_effects.push(r),Be(r));var l=r.first;if(l!==null){r=l;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)f===n.effect&&(this.#a(n.effects),this.#a(n.render_effects),this.#a(n.block_effects),n=n.parent),r=f.next,f=f.parent}}#a(t){for(const n of t)((n.f&N)!==0?this.#s:this.#i).push(n),this.#f(n.deps),T(n,E)}#f(t){if(t!==null)for(const n of t)(n.f&k)===0||(n.f&ue)===0||(n.f^=ue,this.#f(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&se)===0&&(this.current.set(t,t.v),M?.set(t,t.v))}activate(){$=this,this.apply()}deactivate(){$===this&&($=null,M=null)}flush(){if(this.activate(),L.length>0){if(Qt(),$!==null&&$!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#c()}#c(){if(Qe.size>1){this.previous.clear();var t=M,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Qe){if(s===this){n=!1;continue}const o=[];for(const[l,f]of this.current){if(s.current.has(l))if(n&&f!==s.current.get(l))s.current.set(l,f);else continue;o.push(l)}if(o.length===0)continue;const a=[...s.current.keys()].filter(l=>!this.current.has(l));if(a.length>0){var i=L;L=[];const l=new Set,f=new Map;for(const c of o)tn(c,a,l,f);if(L.length>0){$=s,s.apply();for(const c of L)s.#o(c,r);s.deactivate()}L=i}}$=null,M=t}this.committed=!0,Qe.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#s)T(t,N),de(t);for(const t of this.#i)T(t,K),de(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=Ht()).promise}static ensure(){if($===null){const t=$=new H;Qe.add($),De||H.enqueue(()=>{$===t&&t.flush()})}return $}static enqueue(t){Ze(t)}apply(){}}function tt(e){var t=De;De=!0;try{for(var n;;){if(br(),L.length===0&&($?.flush(),L.length===0))return et=null,n;Qt()}}finally{De=t}}function Qt(){var e=le;$t=!0;var t=null;try{var n=0;for(ot(!0);L.length>0;){var r=H.ensure();if(n++>1e3){var i,s;wr()}r.process(L),ae.clear()}}finally{$t=!1,ot(e),et=null}}function wr(){try{ar()}catch(e){xe(e,et)}}let Z=null;function en(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(X|Y))===0&&Ve(r)&&(Z=new Set,Be(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?bn(r):r.fn=null),Z?.size>0)){ae.clear();for(const i of Z){if((i.f&(X|Y))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)Z.has(o)&&(Z.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const l=s[a];(l.f&(X|Y))===0&&Be(l)}}Z.clear()}}Z=null}}function tn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&k)!==0?tn(i,t,n,r):(s&(gt|J))!==0&&(s&N)===0&&nn(i,t,r)&&(T(i,N),de(i))}}function nn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&k)!==0&&nn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function de(e){for(var t=et=e;t.parent!==null;){t=t.parent;var n=t.f;if($t&&t===m&&(n&J)!==0&&(n&zt)===0)return;if((n&(ie|G))!==0){if((n&E)===0)return;t.f^=E}}L.push(t)}function yr(e){let t=0,n=Me(0),r;return()=>{st()&&(d(n),_n(()=>(t===0&&(r=zr(()=>e(()=>Le(n)))),t+=1,()=>{Ze(()=>{t-=1,t===0&&(r?.(),r=void 0,Le(n))})})))}}var $r=we|fe|Ge;function kr(e,t,n){new xr(e,t,n)}class xr{parent;#t=!1;#e;#n=w?b:null;#r;#l;#s;#i=null;#o=null;#a=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#b=yr(()=>(this.#h=Me(this.#c),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#l=r,this.parent=m.b,this.#t=!!this.#r.pending,this.#s=pn(()=>{if(m.b=this,w){const s=this.#n;yt(),s.nodeType===Ae&&s.data===ht?this.#y():this.#w()}else{var i=this.#m();try{this.#i=te(()=>r(i))}catch(s){this.error(s)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},$r),w&&(this.#e=b)}#w(){try{this.#i=te(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#r.pending;t&&(this.#o=te(()=>t(this.#e)),H.enqueue(()=>{var n=this.#m();this.#i=this.#_(()=>(H.ensure(),te(()=>this.#l(n)))),this.#d>0?this.#p():(je(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#m(){var t=this.#e;return this.#t&&(this.#u=Q(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var n=m,r=p,i=R;P(this.#s),S(this.#s),ke(this.#s.ctx);try{return t()}catch(s){return Zt(s),null}finally{P(n),S(r),ke(i)}}#p(){const t=this.#r.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),$n(this.#i,this.#f)),this.#o===null&&(this.#o=te(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#o&&je(this.#o,()=>{this.#o=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&rt(this.#h,this.#c)}get_effect_pending(){return this.#b(),d(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#i&&(O(this.#i),this.#i=null),this.#o&&(O(this.#o),this.#o=null),this.#a&&(O(this.#a),this.#a=null),w&&(B(this.#n),vr(),B(Ut()));var i=!1,s=!1;const o=()=>{if(i){hr();return}i=!0,s&&dr(),H.ensure(),this.#c=0,this.#a!==null&&je(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,te(()=>this.#l(this.#e)))),this.#d>0?this.#p():this.#t=!1};var a=p;try{S(null),s=!0,n?.(t,o),s=!1}catch(l){xe(l,this.#s&&this.#s.parent)}finally{S(a)}r&&Ze(()=>{this.#a=this.#_(()=>{H.ensure(),this.#v=!0;try{return te(()=>{r(this.#e,()=>t,()=>o)})}catch(l){return xe(l,this.#s.parent),null}finally{this.#v=!1}})})}}function Er(e,t,n,r){const i=kt;if(n.length===0&&e.length===0){r(t.map(i));return}var s=$,o=m,a=Sr();function l(){Promise.all(n.map(f=>Tr(f))).then(f=>{a();try{r([...t.map(i),...f])}catch(c){(o.f&X)===0&&xe(c,o)}s?.deactivate(),nt()}).catch(f=>{xe(f,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{s?.deactivate(),nt()}}):l()}function Sr(){var e=m,t=p,n=R,r=$;return function(s=!0){P(e),S(t),ke(n),s&&r?.activate()}}function nt(){P(null),S(null),ke(null)}function kt(e){var t=k|N,n=p!==null&&(p.f&k)!==0?p:null;return m!==null&&(m.f|=fe),{ctx:R,deps:null,effects:null,equals:Wt,f:t,fn:e,reactions:null,rv:0,v:x,wv:0,parent:n??m,ac:null}}function Tr(e,t){let n=m;n===null&&rr();var r=n.b,i=void 0,s=Me(x),o=!p,a=new Map;return Fr(()=>{var l=Ht();i=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===$&&f.committed&&f.deactivate(),nt()})}catch(u){l.reject(u),nt()}var f=$;if(o){var c=!r.is_pending();r.update_pending_count(1),f.increment(c),a.get(f)?.reject(ye),a.delete(f),a.set(f,l)}const v=(u,h=void 0)=>{if(f.activate(),h)h!==ye&&(s.f|=se,rt(s,h));else{(s.f&se)!==0&&(s.f^=se),rt(s,u);for(const[g,j]of a){if(a.delete(g),g===f)break;j.reject(ye)}}o&&(r.update_pending_count(-1),f.decrement(c))};l.promise.then(v,u=>v(null,u||"unknown"))}),dn(()=>{for(const l of a.values())l.reject(ye)}),new Promise(l=>{function f(c){function v(){c===i?l(s):f(i)}c.then(v,v)}f(i)})}function Re(e){const t=kt(e);return xn(t),t}function rn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)O(t[n])}}function qr(e){for(var t=e.parent;t!==null;){if((t.f&k)===0)return(t.f&X)===0?t:null;t=t.parent}return null}function xt(e){var t,n=m;P(qr(e));try{e.f&=~ue,rn(e),t=Nn(e)}finally{P(n)}return t}function sn(e){var t=xt(e);if(e.equals(t)||($?.is_fork||(e.v=t),e.wv=Tn()),!he)if(M!==null)st()&&M.set(e,t);else{var n=(e.f&V)===0?K:E;T(e,n)}}let Et=new Set;const ae=new Map;let on=!1;function Me(e,t){var n={f:0,v:e,reactions:null,equals:Wt,rv:0,wv:0};return n}function A(e,t){const n=Me(e);return xn(n),n}function Nr(e,t=!1,n=!0){const r=Me(e);return t||(r.equals=mr),r}function y(e,t,n=!1){p!==null&&(!U||(p.f&Yt)!==0)&&Kt()&&(p.f&(k|J|gt|Yt))!==0&&!ne?.includes(e)&&cr();let r=n?Pe(t):t;return rt(e,r)}function rt(e,t){if(!e.equals(t)){var n=e.v;he?ae.set(e,t):ae.set(e,n),e.v=t;var r=H.ensure();r.capture(e,n),(e.f&k)!==0&&((e.f&N)!==0&&xt(e),T(e,(e.f&V)!==0?E:K)),e.wv=Tn(),an(e,N),m!==null&&(m.f&E)!==0&&(m.f&(G|ie))===0&&(F===null?Hr([e]):F.push(e)),!r.is_fork&&Et.size>0&&!on&&Or()}return t}function Or(){on=!1;var e=le;ot(!0);const t=Array.from(Et);try{for(const n of t)(n.f&E)!==0&&T(n,K),Ve(n)&&Be(n)}finally{ot(e)}Et.clear()}function Le(e){y(e,e.v+1)}function an(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],o=s.f,a=(o&N)===0;if(a&&T(s,t),(o&k)!==0){var l=s;M?.delete(l),(o&ue)===0&&(o&V&&(s.f|=ue),an(l,K))}else a&&((o&J)!==0&&Z!==null&&Z.add(s),de(s))}}function Pe(e){if(typeof e!="object"||e===null||bt in e)return e;const t=Vt(e);if(t!==Zn&&t!==Qn)return e;var n=new Map,r=Jn(e),i=A(0),s=ve,o=a=>{if(ve===s)return a();var l=p,f=ve;S(null),Sn(s);var c=a();return S(l),Sn(f),c};return r&&n.set("length",A(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&fr();var c=n.get(l);return c===void 0?c=o(()=>{var v=A(f.value);return n.set(l,v),v}):y(c,f.value,!0),!0},deleteProperty(a,l){var f=n.get(l);if(f===void 0){if(l in a){const c=o(()=>A(x));n.set(l,c),Le(i)}}else y(f,x),Le(i);return!0},get(a,l,f){if(l===bt)return e;var c=n.get(l),v=l in a;if(c===void 0&&(!v||be(a,l)?.writable)&&(c=o(()=>{var h=Pe(v?a[l]:x),g=A(h);return g}),n.set(l,c)),c!==void 0){var u=d(c);return u===x?void 0:u}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var c=n.get(l);c&&(f.value=d(c))}else if(f===void 0){var v=n.get(l),u=v?.v;if(v!==void 0&&u!==x)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(a,l){if(l===bt)return!0;var f=n.get(l),c=f!==void 0&&f.v!==x||Reflect.has(a,l);if(f!==void 0||m!==null&&(!c||be(a,l)?.writable)){f===void 0&&(f=o(()=>{var u=c?Pe(a[l]):x,h=A(u);return h}),n.set(l,f));var v=d(f);if(v===x)return!1}return c},set(a,l,f,c){var v=n.get(l),u=l in a;if(r&&l==="length")for(var h=f;h<v.v;h+=1){var g=n.get(h+"");g!==void 0?y(g,x):h in a&&(g=o(()=>A(x)),n.set(h+"",g))}if(v===void 0)(!u||be(a,l)?.writable)&&(v=o(()=>A(void 0)),y(v,Pe(f)),n.set(l,v));else{u=v.v!==x;var j=o(()=>Pe(f));y(v,j)}var I=Reflect.getOwnPropertyDescriptor(a,l);if(I?.set&&I.set.call(c,f),!u){if(r&&typeof l=="string"){var re=n.get("length"),ze=Number(l);Number.isInteger(ze)&&ze>=re.v&&y(re,ze+1)}Le(i)}return!0},ownKeys(a){d(i);var l=Reflect.ownKeys(a).filter(v=>{var u=n.get(v);return u===void 0||u.v!==x});for(var[f,c]of n)c.v!==x&&!(f in a)&&l.push(f);return l},setPrototypeOf(){ur()}})}var ln,fn,un,cn;function St(){if(ln===void 0){ln=window,fn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;un=be(t,"firstChild").get,cn=be(t,"nextSibling").get,Bt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Bt(n)&&(n.__t=void 0)}}function Q(e=""){return document.createTextNode(e)}function Ee(e){return un.call(e)}function ee(e){return cn.call(e)}function Se(e,t){if(!w)return Ee(e);var n=Ee(b);if(n===null)n=b.appendChild(Q());else if(t&&n.nodeType!==wt){var r=Q();return n?.before(r),B(r),r}return B(n),n}function it(e,t=!1){if(!w){var n=Ee(e);return n instanceof Comment&&n.data===""?ee(n):n}if(t&&b?.nodeType!==wt){var r=Q();return b?.before(r),B(r),r}return b}function Fe(e,t=1,n=!1){let r=w?b:e;for(var i;t--;)i=r,r=ee(r);if(!w)return r;if(n&&r?.nodeType!==wt){var s=Q();return r===null?i?.after(s):r.before(s),B(s),s}return B(r),r}function Cr(e){e.textContent=""}function Ar(){return!1}function Tt(e){var t=p,n=m;S(null),P(null);try{return e()}finally{S(t),P(n)}}function Dr(e){m===null&&(p===null&&or(),sr()),he&&ir()}function Rr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function z(e,t,n){var r=m;r!==null&&(r.f&Y)!==0&&(e|=Y);var i={ctx:R,deps:null,nodes_start:null,nodes_end:null,f:e|N|V,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Be(i),i.f|=Ke}catch(a){throw O(i),a}else t!==null&&de(i);var s=i;if(n&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&fe)===0&&(s=s.first,(e&J)!==0&&(e&we)!==0&&s!==null&&(s.f|=we)),s!==null&&(s.parent=r,r!==null&&Rr(s,r),p!==null&&(p.f&k)!==0&&(e&ie)===0)){var o=p;(o.effects??=[]).push(s)}return i}function st(){return p!==null&&!U}function dn(e){const t=z(pt,null,!1);return T(t,E),t.teardown=e,t}function hn(e){Dr();var t=m.f,n=!p&&(t&G)!==0&&(t&Ke)===0;if(n){var r=R;(r.e??=[]).push(e)}else return vn(e)}function vn(e){return z(_t|tr,e,!1)}function Mr(e){H.ensure();const t=z(ie|fe,e,!0);return()=>{O(t)}}function Lr(e){H.ensure();const t=z(ie|fe,e,!0);return(n={})=>new Promise(r=>{n.outro?je(t,()=>{O(t),r(void 0)}):(O(t),r(void 0))})}function Pr(e){return z(_t,e,!1)}function Fr(e){return z(gt|fe,e,!0)}function _n(e,t=0){return z(pt|t,e,!0)}function Te(e,t=[],n=[],r=[]){Er(r,t,n,i=>{z(pt,()=>e(...i.map(d)),!0)})}function pn(e,t=0){var n=z(J|t,e,!0);return n}function te(e){return z(G|fe,e,!0)}function mn(e){var t=e.teardown;if(t!==null){const n=he,r=p;kn(!0),S(null);try{t.call(null)}finally{kn(n),S(r)}}}function gn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Tt(()=>{i.abort(ye)});var r=n.next;(n.f&ie)!==0?n.parent=null:O(n,t),n=r}}function jr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&G)===0&&O(t),t=n}}function O(e,t=!0){var n=!1;(t||(e.f&zt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Ir(e.nodes_start,e.nodes_end),n=!0),gn(e,t&&!n),at(e,0),T(e,X);var r=e.transitions;if(r!==null)for(const s of r)s.stop();mn(e);var i=e.parent;i!==null&&i.first!==null&&bn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Ir(e,t){for(;e!==null;){var n=e===t?null:ee(e);e.remove(),e=n}}function bn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function je(e,t,n=!0){var r=[];wn(e,r,!0),Vr(r,()=>{n&&O(e),t&&t()})}function Vr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function wn(e,t,n){if((e.f&Y)===0){if(e.f^=Y,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&we)!==0||(r.f&G)!==0&&(e.f&J)!==0;wn(r,t,s?n:!1),r=i}}}function Br(e){yn(e,!0)}function yn(e,t){if((e.f&Y)!==0){e.f^=Y,(e.f&E)===0&&(T(e,N),de(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&we)!==0||(n.f&G)!==0;yn(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function $n(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:ee(n);t.append(n),n=i}}let le=!1;function ot(e){le=e}let he=!1;function kn(e){he=e}let p=null,U=!1;function S(e){p=e}let m=null;function P(e){m=e}let ne=null;function xn(e){p!==null&&(ne===null?ne=[e]:ne.push(e))}let q=null,D=0,F=null;function Hr(e){F=e}let En=1,Ie=0,ve=Ie;function Sn(e){ve=e}function Tn(){return++En}function Ve(e){var t=e.f;if((t&N)!==0)return!0;if(t&k&&(e.f&=~ue),(t&K)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(Ve(s)&&sn(s),s.wv>e.wv)return!0}(t&V)!==0&&M===null&&T(e,E)}return!1}function qn(e,t,n=!0){var r=e.reactions;if(r!==null&&!ne?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&k)!==0?qn(s,t,!1):t===s&&(n?T(s,N):(s.f&E)!==0&&T(s,K),de(s))}}function Nn(e){var t=q,n=D,r=F,i=p,s=ne,o=R,a=U,l=ve,f=e.f;q=null,D=0,F=null,p=(f&(G|ie))===0?e:null,ne=null,ke(e.ctx),U=!1,ve=++Ie,e.ac!==null&&(Tt(()=>{e.ac.abort(ye)}),e.ac=null);try{e.f|=mt;var c=e.fn,v=c(),u=e.deps;if(q!==null){var h;if(at(e,D),u!==null&&D>0)for(u.length=D+q.length,h=0;h<q.length;h++)u[D+h]=q[h];else e.deps=u=q;if(le&&st()&&(e.f&V)!==0)for(h=D;h<u.length;h++)(u[h].reactions??=[]).push(e)}else u!==null&&D<u.length&&(at(e,D),u.length=D);if(Kt()&&F!==null&&!U&&u!==null&&(e.f&(k|K|N))===0)for(h=0;h<F.length;h++)qn(F[h],e);return i!==null&&i!==e&&(Ie++,F!==null&&(r===null?r=F:r.push(...F))),(e.f&se)!==0&&(e.f^=se),v}catch(g){return Zt(g)}finally{e.f^=mt,q=t,D=n,F=r,p=i,ne=s,ke(o),U=a,ve=l}}function Yr(e,t){let n=t.reactions;if(n!==null){var r=Gn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&k)!==0&&(q===null||!q.includes(t))&&(T(t,K),(t.f&V)!==0&&(t.f^=V,t.f&=~ue),rn(t),at(t,0))}function at(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Yr(e,n[r])}function Be(e){var t=e.f;if((t&X)===0){T(e,E);var n=m,r=le;m=e,le=!0;try{(t&J)!==0?jr(e):gn(e),mn(e);var i=Nn(e);e.teardown=typeof i=="function"?i:null,e.wv=En;var s;vt&&gr&&(e.f&N)!==0&&e.deps}finally{le=r,m=n}}}function d(e){var t=e.f,n=(t&k)!==0;if(p!==null&&!U){var r=m!==null&&(m.f&X)!==0;if(!r&&!ne?.includes(e)){var i=p.deps;if((p.f&mt)!==0)e.rv<Ie&&(e.rv=Ie,q===null&&i!==null&&i[D]===e?D++:q===null?q=[e]:q.includes(e)||q.push(e));else{(p.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[p]:s.includes(p)||s.push(p)}}}if(he){if(ae.has(e))return ae.get(e);if(n){var o=e,a=o.v;return((o.f&E)===0&&o.reactions!==null||Cn(o))&&(a=xt(o)),ae.set(o,a),a}}else n&&!M?.has(e)&&(o=e,Ve(o)&&sn(o),le&&st()&&(o.f&V)===0&&On(o));if(M?.has(e))return M.get(e);if((e.f&se)!==0)throw e.v;return e.v}function On(e){if(e.deps!==null){e.f^=V;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&k)!==0&&(t.f&V)===0&&On(t)}}function Cn(e){if(e.v===x)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ae.has(t)||(t.f&k)!==0&&Cn(t))return!0;return!1}function zr(e){var t=U;try{return U=!0,e()}finally{U=t}}const Ur=-7169;function T(e,t){e.f=e.f&Ur|t}const Wr=new Set,An=new Set;function Jr(e,t,n,r={}){function i(s){if(r.capture||He.call(t,s),!s.cancelBubble)return Tt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ze(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function lt(e,t,n,r,i){var s={capture:r,passive:i},o=Jr(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&dn(()=>{t.removeEventListener(e,o,s)})}let Dn=null;function He(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Dn=e;var o=0,a=Dn===e&&e.__root;if(a){var l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(s=i[o]||e.target,s!==t){Je(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=p,v=m;S(null),P(null);try{for(var u,h=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var j=s["__"+r];j!=null&&(!s.disabled||e.target===s)&&j.call(s,e)}catch(I){u?h.push(I):u=I}if(e.cancelBubble||g===t||g===null)break;s=g}if(u){for(let I of h)queueMicrotask(()=>{throw I});throw u}}finally{e.__root=t,delete e.currentTarget,S(c),P(v)}}}function Gr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function qe(e,t){var n=m;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function ft(e,t){var n=(t&zn)!==0,r=(t&Un)!==0,i,s=!e.startsWith("<!>");return()=>{if(w)return qe(b,null),b;i===void 0&&(i=Gr(s?e:"<!>"+e),n||(i=Ee(i)));var o=r||fn?document.importNode(i,!0):i.cloneNode(!0);if(n){var a=Ee(o),l=o.lastChild;qe(a,l)}else qe(o,o);return o}}function Kr(){if(w)return qe(b,null),b;var e=document.createDocumentFragment(),t=document.createComment(""),n=Q();return e.append(t,n),qe(t,n),e}function Ne(e,t){if(w){var n=m;((n.f&Ke)===0||n.nodes_end===null)&&(n.nodes_end=b),yt();return}e!==null&&e.before(t)}const Xr=["touchstart","touchmove"];function Zr(e){return Xr.includes(e)}function Qr(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Rn(e,t){return Mn(e,t)}function ei(e,t){St(),t.intro=t.intro??!1;const n=t.target,r=w,i=b;try{for(var s=Ee(n);s&&(s.nodeType!==Ae||s.data!==jt);)s=ee(s);if(!s)throw ge;oe(!0),B(s);const o=Mn(e,{...t,anchor:s});return oe(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==ge&&console.warn("Failed to hydrate: ",o),t.recover===!1&&lr(),St(),Cr(n),oe(!1),Rn(e,t)}finally{oe(r),B(i)}}const Oe=new Map;function Mn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0}){St();var a=new Set,l=v=>{for(var u=0;u<v.length;u++){var h=v[u];if(!a.has(h)){a.add(h);var g=Zr(h);t.addEventListener(h,He,{passive:g});var j=Oe.get(h);j===void 0?(document.addEventListener(h,He,{passive:g}),Oe.set(h,1)):Oe.set(h,j+1)}}};l(Kn(Wr)),An.add(l);var f=void 0,c=Lr(()=>{var v=n??t.appendChild(Q());return kr(v,{pending:()=>{}},u=>{if(s){Jt({});var h=R;h.c=s}if(i&&(r.$$events=i),w&&qe(u,null),f=e(u,r)||{},w&&(m.nodes_end=b,b===null||b.nodeType!==Ae||b.data!==It))throw Xe(),ge;s&&Gt()}),()=>{for(var u of a){t.removeEventListener(u,He);var h=Oe.get(u);--h===0?(document.removeEventListener(u,He),Oe.delete(u)):Oe.set(u,h)}An.delete(l),v!==n&&v.parentNode?.removeChild(v)}});return qt.set(f,c),f}let qt=new WeakMap;function ti(e,t){const n=qt.get(e);return n?(qt.delete(e),n(t)):Promise.resolve()}class ni{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#l=!0;constructor(t,n=!0){this.anchor=t,this.#l=n}#s=()=>{var t=$;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)Br(r),this.#r.delete(n);else{var i=this.#n.get(n);i&&(this.#e.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===t)break;const a=this.#n.get(o);a&&(O(a.effect),this.#n.delete(o))}for(const[s,o]of this.#e){if(s===n||this.#r.has(s))continue;const a=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();$n(o,f),f.append(Q()),this.#n.set(s,{effect:o,fragment:f})}else O(o);this.#r.delete(s),this.#e.delete(s)};this.#l||!r?(this.#r.add(s),je(o,a,!1)):a()}}};#i=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#n)n.includes(r)||(O(i.effect),this.#n.delete(r))};ensure(t,n){var r=$,i=Ar();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),o=Q();s.append(o),this.#n.set(t,{effect:te(()=>n(o)),fragment:s})}else this.#e.set(t,te(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[a,l]of this.#e)a===t?r.skipped_effects.delete(l):r.skipped_effects.add(l);for(const[a,l]of this.#n)a===t?r.skipped_effects.delete(l.effect):r.skipped_effects.add(l.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else w&&(this.anchor=b),this.#s()}}function ut(e,t,n=!1){w&&yt();var r=new ni(e),i=n?we:0;function s(o,a){if(w){const f=_r(e)===ht;if(o===f){var l=Ut();B(l),r.anchor=l,oe(!1),r.ensure(o,a),oe(!0);return}}r.ensure(o,a)}pn(()=>{var o=!1;t((a,l=!0)=>{o=!0,s(l,a)}),o||s(!1,null)},i)}function ri(e,t){Pr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function ii(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function Ye(e,t,n,r,i,s){var o=e.__className;if(w||o!==n||o===void 0){var a=ii(n,r);(!w||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=n}return s}const si=Symbol("is custom element"),oi=Symbol("is html");function ai(e,t,n,r){var i=li(e);w&&(i[t]=e.getAttribute(t)),i[t]!==(i[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&Ln(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ct(e,t,n){var r=p,i=m;let s=w;w&&oe(!1),S(null),P(null);try{t!=="style"&&(Nt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Ln(e).includes(t):n&&typeof n=="object")?e[t]=n:ai(e,t,n==null?n:String(n))}finally{S(r),P(i),s&&oe(!0)}}function li(e){return e.__attributes??={[si]:e.nodeName.includes("-"),[oi]:e.namespaceURI===Wn}}var Nt=new Map;function Ln(e){var t=e.getAttribute("is")||e.nodeName,n=Nt.get(t);if(n)return n;Nt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Xn(i);for(var o in r)r[o].set&&n.push(o);i=Vt(i)}return n}function Ot(e,t,n,r){var i=r,s=!0,o=()=>(s&&(s=!1,i=r),i),a;a=e[t],a===void 0&&r!==void 0&&(a=o());var l;l=()=>{var u=e[t];return u===void 0?o():(s=!0,u)};var f=!1,c=kt(()=>(f=!1,l())),v=m;return(function(u,h){if(arguments.length>0){const g=h?d(c):u;return y(c,g),f=!0,i!==void 0&&(i=g),u}return he&&f||(v.f&X)!==0?c.v:d(c)})}function fi(e){return new ui(e)}class ui{#t;#e;constructor(t){var n=new Map,r=(s,o)=>{var a=Nr(o,!1,!1);return n.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return d(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===nr?!0:(d(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,a){return y(n.get(o)??r(o,a),a),Reflect.set(s,o,a)}});this.#e=(t.hydrate?ei:Rn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Je(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{ti(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let Pn;typeof HTMLElement=="function"&&(Pn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;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){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),Ne(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=ci(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=dt(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=fi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Mr(()=>{_n(()=>{this.$$r=!0;for(const r of We(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=dt(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=dt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return We(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function dt(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ci(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function di(e,t,n,r,i,s){let o=class extends Pn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return We(t).map(a=>(t[a].attribute||a).toLowerCase())}};return We(t).forEach(a=>{Je(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=dt(a,l,t),this.$$d[a]=l;var f=this.$$c;if(f){var c=be(f,a)?.get;c?f[a]=l:f.$set({[a]:l})}}})}),r.forEach(a=>{Je(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}var _e={},Fn;function hi(){if(Fn)return _e;Fn=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.LanguageTranslator=void 0,_e.getChildStyleToPass=e,_e.addComponent=t;function e(r,i){var s,o,a="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(u){return Object.keys(r).includes(u.name)}))===null||o===void 0)&&o.length))for(var l=function(u){var h=i?.filter(function(g){return g.name===u&&g.defaultValue!==r[u]});h&&(a+="".concat(u,":").concat(r[u],";"))},f=0,c=Object.keys(r);f<c.length;f++){var v=c[f];l(v)}}catch(u){console.error("error getting child style to pass",u)}finally{return a}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var o=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var a=document.createElement("script");if(a.id=s+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(o),r?.local)a.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var l=s.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(s.replace(l+"-",""),"/").concat(o)}document.head.appendChild(a)}catch(f){console.warn(f)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,o){return r.formatDate(i,s,o||this.lang)},r.getDefaultLang=function(){var i,s,o,a="en";return navigator?.languages&&(!((o=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||o===void 0)&&o.length)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},r.getDictionaryWord=function(i,s,o){var a;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(o&&(!((a=s[o])===null||a===void 0)&&a[i]))return s[o][i];var l="",f=r.getDefaultLang();if(!o||f!==o){var c=s?.[f];c?.[i]&&(l=c[i])}return l},r.formatDate=function(i,s,o){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(o||r.getDefaultLang(),s);return a.format(i)},r})();return _e.LanguageTranslator=n,_e}var jn=hi();const In={version:"0.66.0"};var vi=ft(': <div class="input svelte-1x2sq1k"><hb-input-number></hb-input-number></div>',3),_i=ft('<div style="margin-right:20px" class="input svelte-1x2sq1k"><hb-input-date></hb-input-date></div> <div class="input svelte-1x2sq1k"><hb-input-number></hb-input-number></div> : <div class="input svelte-1x2sq1k"><hb-input-number></hb-input-number></div> <!>',3),pi=ft('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-1x2sq1k"> </div>'),mi=ft("<div><!></div> <!>",1);const gi={hash:"svelte-1x2sq1k",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
1
+ (function(Bt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const ir=1,sr=2,zt="[",Yt="[!",Ut="[?",Wt="]",$e={},q=Symbol(),Jt="http://www.w3.org/1999/xhtml",or=!1;var lr=Array.isArray,ar=Array.prototype.indexOf,ke=Array.prototype.includes,ur=Array.from,Ge=Object.keys,Ke=Object.defineProperty,xe=Object.getOwnPropertyDescriptor,fr=Object.getOwnPropertyDescriptors,cr=Object.prototype,dr=Array.prototype,Gt=Object.getPrototypeOf,Kt=Object.isExtensible;const hr=()=>{};function vr(e){for(var t=0;t<e.length;t++)e[t]()}function Xt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const T=2,Ee=4,Xe=8,Zt=1<<24,re=16,U=32,ie=64,vt=128,P=512,S=1024,O=2048,W=4096,J=8192,H=16384,se=32768,Qt=1<<25,Se=65536,en=1<<17,_r=1<<18,he=1<<19,pr=1<<20,ve=65536,_t=1<<21,pt=1<<22,oe=1<<23,mt=Symbol("$state"),mr=Symbol("legacy props"),X=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ze=3,Qe=8;function gr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function br(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function wr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function yr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function $r(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function kr(){throw new Error("https://svelte.dev/e/hydration_failed")}function xr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Er(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Sr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Tr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function et(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Nr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let y=!1;function le(e){y=e}let b;function B(e){if(e===null)throw et(),$e;return b=e}function gt(){return B(te(b))}function Te(e){if(y){if(te(b)!==null)throw et(),$e;b=e}}function qr(e=1){if(y){for(var t=e,n=b;t--;)n=te(n);b=n}}function tn(e=!0){for(var t=0,n=b;;){if(n.nodeType===Qe){var r=n.data;if(r===Wt){if(t===0)return n;t-=1}else(r===zt||r===Yt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=te(n);e&&n.remove(),n=i}}function Or(e){if(!e||e.nodeType!==Qe)throw et(),$e;return e.data}function nn(e){return e===this.v}function Ar(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Cr(e){return!Ar(e,this.v)}let Dr=!1,F=null;function Ne(e){F=e}function rn(e,t=!1,n){F={p:F,i:!1,c:null,e:null,s:e,x:null,r:g,l:null}}function sn(e){var t=F,n=t.e;if(n!==null){t.e=null;for(var r of n)Nn(r)}return e!==void 0&&(t.x=e),t.i=!0,F=t.p,e??{}}function on(){return!0}let _e=[];function ln(){var e=_e;_e=[],vr(e)}function pe(e){if(_e.length===0&&!Pe){var t=_e;queueMicrotask(()=>{t===_e&&ln()})}_e.push(e)}function Rr(){for(;_e.length>0;)ln()}function an(e){var t=g;if(t===null)return m.f|=oe,e;if((t.f&se)===0&&(t.f&Ee)===0)throw e;ae(e,t)}function ae(e,t){for(;t!==null;){if((t.f&vt)!==0){if((t.f&se)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Mr=-7169;function E(e,t){e.f=e.f&Mr|t}function bt(e){(e.f&P)!==0||e.deps===null?E(e,S):E(e,W)}function un(e){if(e!==null)for(const t of e)(t.f&T)===0||(t.f&ve)===0||(t.f^=ve,un(t.deps))}function fn(e,t,n){(e.f&O)!==0?t.add(e):(e.f&W)!==0&&n.add(e),un(e.deps),E(e,S)}const ue=new Set;let $=null,z=null,wt=null,Pe=!1,yt=!1,qe=null,tt=null;var cn=0;let Lr=1;class Z{id=Lr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#o=new Set;#l=new Set;#a=new Map;is_fork=!1;#c=!1;#u=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#u)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#a.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#a.get(t);if(n){this.#a.delete(t);for(var r of n.d)E(r,O),this.schedule(r);for(r of n.m)E(r,W),this.schedule(r)}}#h(){if(cn++>1e3&&(ue.delete(this),Pr()),!this.#d()){for(const o of this.#o)this.#l.delete(o),E(o,O),this.schedule(o);for(const o of this.#l)E(o,W),this.schedule(o)}const t=this.#r;this.#r=[],this.apply();var n=qe=[],r=[],i=tt=[];for(const o of t)try{this.#f(o,n,r)}catch(a){throw pn(o),a}if($=null,i.length>0){var s=Z.ensure();for(const o of i)s.schedule(o)}if(qe=null,tt=null,this.#d()||this.#v()){this.#_(r),this.#_(n);for(const[o,a]of this.#a)_n(o,a)}else{this.#t.size===0&&ue.delete(this),this.#o.clear(),this.#l.clear();for(const o of this.#e)o(this);this.#e.clear(),dn(r),dn(n),this.#s?.resolve()}var l=$;if(this.#r.length>0){const o=l??=this;o.#r.push(...this.#r.filter(a=>!o.#r.includes(a)))}l!==null&&(ue.add(l),l.#h()),ue.has(this)||this.#p()}#f(t,n,r){t.f^=S;for(var i=t.first;i!==null;){var s=i.f,l=(s&(U|ie))!==0,o=l&&(s&S)!==0,a=o||(s&J)!==0||this.#a.has(i);if(!a&&i.fn!==null){l?i.f^=S:(s&Ee)!==0?n.push(i):ze(i)&&((s&re)!==0&&this.#l.add(i),De(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)fn(t[n],this.#o,this.#l)}capture(t,n,r=!1){n!==q&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&oe)===0&&(this.current.set(t,[t.v,r]),z?.set(t,t.v))}activate(){$=this}deactivate(){$=null,z=null}flush(){try{yt=!0,$=this,this.#h()}finally{cn=0,wt=null,qe=null,tt=null,yt=!1,$=null,z=null,fe.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),ue.delete(this)}#p(){for(const u of ue){var t=u.id<this.id,n=[];for(const[f,[v,c]]of this.current){if(u.current.has(f)){var r=u.current.get(f)[0];if(t&&v!==r)u.current.set(f,[v,c]);else continue}n.push(f)}var i=[...u.current.keys()].filter(f=>!this.current.has(f));if(i.length===0)t&&u.discard();else if(n.length>0){u.activate();var s=new Set,l=new Map;for(var o of n)hn(o,i,s,l);if(u.#r.length>0){u.apply();for(var a of u.#r)u.#f(a,[],[]);u.#r=[]}u.deactivate()}}for(const u of ue)u.#u.has(this)&&(u.#u.delete(this),u.#u.size===0&&!u.#d()&&(u.activate(),u.#h()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,pe(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#o.add(r);for(const r of n)this.#l.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Xt()).promise}static ensure(){if($===null){const t=$=new Z;yt||(ue.add($),Pe||pe(()=>{$===t&&t.flush()}))}return $}apply(){{z=null;return}}schedule(t){if(wt=t,t.b?.is_pending&&(t.f&(Ee|Xe|Zt))!==0&&(t.f&se)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(qe!==null&&n===g&&(m===null||(m.f&T)===0))return;if((r&(ie|U))!==0){if((r&S)===0)return;n.f^=S}}this.#r.push(n)}}function nt(e){var t=Pe;Pe=!0;try{for(var n;;){if(Rr(),$===null)return n;$.flush()}}finally{Pe=t}}function Pr(){try{$r()}catch(e){ae(e,wt)}}let Q=null;function dn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(H|J))===0&&ze(r)&&(Q=new Set,De(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Cn(r),Q?.size>0)){fe.clear();for(const i of Q){if((i.f&(H|J))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)Q.has(l)&&(Q.delete(l),s.push(l)),l=l.parent;for(let o=s.length-1;o>=0;o--){const a=s[o];(a.f&(H|J))===0&&De(a)}}Q.clear()}}Q=null}}function hn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&T)!==0?hn(i,t,n,r):(s&(pt|re))!==0&&(s&O)===0&&vn(i,t,r)&&(E(i,O),$t(i))}}function vn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(ke.call(t,i))return!0;if((i.f&T)!==0&&vn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function $t(e){$.schedule(e)}function _n(e,t){if(!((e.f&U)!==0&&(e.f&S)!==0)){(e.f&O)!==0?t.d.push(e):(e.f&W)!==0&&t.m.push(e),E(e,S);for(var n=e.first;n!==null;)_n(n,t),n=n.next}}function pn(e){E(e,S);for(var t=e.first;t!==null;)pn(t),t=t.next}function Fr(e){let t=0,n=Ie(0),r;return()=>{Ot()&&(d(n),qn(()=>(t===0&&(r=ui(()=>e(()=>je(n)))),t+=1,()=>{pe(()=>{t-=1,t===0&&(r?.(),r=void 0,je(n))})})))}}var Ir=Se|he;function jr(e,t,n,r){new Vr(e,t,n,r)}class Vr{parent;is_pending=!1;transform_error;#e;#n=y?b:null;#t;#i;#s;#r=null;#o=null;#l=null;#a=null;#c=0;#u=0;#d=!1;#v=new Set;#h=new Set;#f=null;#_=Fr(()=>(this.#f=Ie(this.#c),()=>{this.#f=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var l=g;l.b=this,l.f|=vt,r(s)},this.parent=g.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=On(()=>{if(y){const s=this.#n;gt();const l=s.data===Yt;if(s.data.startsWith(Ut)){const a=JSON.parse(s.data.slice(Ut.length));this.#y(a)}else l?this.#$():this.#p()}else this.#b()},Ir),y&&(this.#e=b)}#p(){try{this.#r=ne(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#t.failed;n&&(this.#l=ne(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=ne(()=>t(this.#e)),pe(()=>{var n=this.#a=document.createDocumentFragment(),r=ee();n.append(r),this.#r=this.#g(()=>ne(()=>this.#i(r))),this.#u===0&&(this.#e.before(n),this.#a=null,Be(this.#o,()=>{this.#o=null}),this.#m($))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#r=ne(()=>{this.#i(this.#e)}),this.#u>0){var t=this.#a=document.createDocumentFragment();Mn(this.#r,t);const n=this.#t.pending;this.#o=ne(()=>n(this.#e))}else this.#m($)}catch(n){this.error(n)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){fn(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#g(t){var n=g,r=m,i=F;I(this.#s),C(this.#s),Ne(this.#s.ctx);try{return Z.ensure(),t()}catch(s){return an(s),null}finally{I(n),C(r),Ne(i)}}#w(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,n);return}this.#u+=t,this.#u===0&&(this.#m(n),this.#o&&Be(this.#o,()=>{this.#o=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#w(t,n),this.#c+=t,!(!this.#f||this.#d)&&(this.#d=!0,pe(()=>{this.#d=!1,this.#f&&it(this.#f,this.#c)}))}get_effect_pending(){return this.#_(),d(this.#f)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(A(this.#r),this.#r=null),this.#o&&(A(this.#o),this.#o=null),this.#l&&(A(this.#l),this.#l=null),y&&(B(this.#n),qr(),B(tn()));var i=!1,s=!1;const l=()=>{if(i){Nr();return}i=!0,s&&Tr(),this.#l!==null&&Be(this.#l,()=>{this.#l=null}),this.#g(()=>{this.#b()})},o=a=>{try{s=!0,n?.(a,l),s=!1}catch(u){ae(u,this.#s&&this.#s.parent)}r&&(this.#l=this.#g(()=>{try{return ne(()=>{var u=g;u.b=this,u.f|=vt,r(this.#e,()=>a,()=>l)})}catch(u){return ae(u,this.#s.parent),null}}))};pe(()=>{var a;try{a=this.transform_error(t)}catch(u){ae(u,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(o,u=>ae(u,this.#s&&this.#s.parent)):o(a)})}}function Hr(e,t,n,r){const i=kt;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var l=g,o=Br(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function u(c){o();try{r(c)}catch(_){(l.f&H)===0&&ae(_,l)}rt()}if(n.length===0){a.then(()=>u(t.map(i)));return}var f=mn();function v(){Promise.all(n.map(c=>zr(c))).then(c=>u([...t.map(i),...c])).catch(c=>ae(c,l)).finally(()=>f())}a?a.then(()=>{o(),v(),rt()}):v()}function Br(){var e=g,t=m,n=F,r=$;return function(s=!0){I(e),C(t),Ne(n),s&&(e.f&H)===0&&(r?.activate(),r?.apply())}}function rt(e=!0){I(null),C(null),Ne(null),e&&$?.deactivate()}function mn(){var e=g,t=e.b,n=$,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function kt(e){var t=T|O,n=m!==null&&(m.f&T)!==0?m:null;return g!==null&&(g.f|=he),{ctx:F,deps:null,effects:null,equals:nn,f:t,fn:e,reactions:null,rv:0,v:q,wv:0,parent:n??g,ac:null}}function zr(e,t,n){let r=g;r===null&&gr();var i=void 0,s=Ie(q),l=!m,o=new Map;return ri(()=>{var a=g,u=Xt();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).finally(rt)}catch(_){u.reject(_),rt()}var f=$;if(l){if((a.f&se)!==0)var v=mn();if(r.b.is_rendered())o.get(f)?.reject(X),o.delete(f);else{for(const _ of o.values())_.reject(X);o.clear()}o.set(f,u)}const c=(_,h=void 0)=>{if(v){var w=h===X;v(w)}if(!(h===X||(a.f&H)!==0)){if(f.activate(),h)s.f|=oe,it(s,h);else{(s.f&oe)!==0&&(s.f^=oe),it(s,_);for(const[x,N]of o){if(o.delete(x),x===f)break;N.reject(X)}}f.deactivate()}};u.promise.then(c,_=>c(null,_||"unknown"))}),Sn(()=>{for(const a of o.values())a.reject(X)}),new Promise(a=>{function u(f){function v(){f===i?a(s):u(i)}f.then(v,v)}u(i)})}function Fe(e){const t=kt(e);return Pn(t),t}function Yr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)A(t[n])}}function Ur(e){for(var t=e.parent;t!==null;){if((t.f&T)===0)return(t.f&H)===0?t:null;t=t.parent}return null}function xt(e){var t,n=g;I(Ur(e));try{e.f&=~ve,Yr(e),t=Hn(e)}finally{I(n)}return t}function gn(e){var t=e.v,n=xt(e);if(!e.equals(n)&&(e.wv=jn(),(!$?.is_fork||e.deps===null)&&(e.v=n,$?.capture(e,t,!0),e.deps===null))){E(e,S);return}ce||(z!==null?(Ot()||$?.is_fork)&&z.set(e,n):bt(e))}function Wr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(X),t.teardown=hr,t.ac=null,Ye(t,0),At(t))}function bn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&De(t)}let Et=new Set;const fe=new Map;let wn=!1;function Ie(e,t){var n={f:0,v:e,reactions:null,equals:nn,rv:0,wv:0};return n}function M(e,t){const n=Ie(e);return Pn(n),n}function Jr(e,t=!1,n=!0){const r=Ie(e);return t||(r.equals=Cr),r}function k(e,t,n=!1){m!==null&&(!Y||(m.f&en)!==0)&&on()&&(m.f&(T|re|pt|en))!==0&&(j===null||!ke.call(j,e))&&Sr();let r=n?Ve(t):t;return it(e,r,tt)}function it(e,t,n=null){if(!e.equals(t)){var r=e.v;ce?fe.set(e,t):fe.set(e,r),e.v=t;var i=Z.ensure();if(i.capture(e,r),(e.f&T)!==0){const s=e;(e.f&O)!==0&&xt(s),z===null&&bt(s)}e.wv=jn(),yn(e,O,n),g!==null&&(g.f&S)!==0&&(g.f&(U|ie))===0&&(V===null?li([e]):V.push(e)),!i.is_fork&&Et.size>0&&!wn&&Gr()}return t}function Gr(){wn=!1;for(const e of Et)(e.f&S)!==0&&E(e,W),ze(e)&&De(e);Et.clear()}function je(e){k(e,e.v+1)}function yn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var l=r[s],o=l.f,a=(o&O)===0;if(a&&E(l,t),(o&T)!==0){var u=l;z?.delete(u),(o&ve)===0&&(o&P&&(l.f|=ve),yn(u,W,n))}else if(a){var f=l;(o&re)!==0&&Q!==null&&Q.add(f),n!==null?n.push(f):$t(f)}}}function Ve(e){if(typeof e!="object"||e===null||mt in e)return e;const t=Gt(e);if(t!==cr&&t!==dr)return e;var n=new Map,r=lr(e),i=M(0),s=ge,l=o=>{if(ge===s)return o();var a=m,u=ge;C(null),In(s);var f=o();return C(a),In(u),f};return r&&n.set("length",M(e.length)),new Proxy(e,{defineProperty(o,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&xr();var f=n.get(a);return f===void 0?l(()=>{var v=M(u.value);return n.set(a,v),v}):k(f,u.value,!0),!0},deleteProperty(o,a){var u=n.get(a);if(u===void 0){if(a in o){const f=l(()=>M(q));n.set(a,f),je(i)}}else k(u,q),je(i);return!0},get(o,a,u){if(a===mt)return e;var f=n.get(a),v=a in o;if(f===void 0&&(!v||xe(o,a)?.writable)&&(f=l(()=>{var _=Ve(v?o[a]:q),h=M(_);return h}),n.set(a,f)),f!==void 0){var c=d(f);return c===q?void 0:c}return Reflect.get(o,a,u)},getOwnPropertyDescriptor(o,a){var u=Reflect.getOwnPropertyDescriptor(o,a);if(u&&"value"in u){var f=n.get(a);f&&(u.value=d(f))}else if(u===void 0){var v=n.get(a),c=v?.v;if(v!==void 0&&c!==q)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(o,a){if(a===mt)return!0;var u=n.get(a),f=u!==void 0&&u.v!==q||Reflect.has(o,a);if(u!==void 0||g!==null&&(!f||xe(o,a)?.writable)){u===void 0&&(u=l(()=>{var c=f?Ve(o[a]):q,_=M(c);return _}),n.set(a,u));var v=d(u);if(v===q)return!1}return f},set(o,a,u,f){var v=n.get(a),c=a in o;if(r&&a==="length")for(var _=u;_<v.v;_+=1){var h=n.get(_+"");h!==void 0?k(h,q):_ in o&&(h=l(()=>M(q)),n.set(_+"",h))}if(v===void 0)(!c||xe(o,a)?.writable)&&(v=l(()=>M(void 0)),k(v,Ve(u)),n.set(a,v));else{c=v.v!==q;var w=l(()=>Ve(u));k(v,w)}var x=Reflect.getOwnPropertyDescriptor(o,a);if(x?.set&&x.set.call(f,u),!c){if(r&&typeof a=="string"){var N=n.get("length"),de=Number(a);Number.isInteger(de)&&de>=N.v&&k(N,de+1)}je(i)}return!0},ownKeys(o){d(i);var a=Reflect.ownKeys(o).filter(v=>{var c=n.get(v);return c===void 0||c.v!==q});for(var[u,f]of n)f.v!==q&&!(u in o)&&a.push(u);return a},setPrototypeOf(){Er()}})}var $n,kn,xn,En;function St(){if($n===void 0){$n=window,kn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;xn=xe(t,"firstChild").get,En=xe(t,"nextSibling").get,Kt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Kt(n)&&(n.__t=void 0)}}function ee(e=""){return document.createTextNode(e)}function Oe(e){return xn.call(e)}function te(e){return En.call(e)}function Ae(e,t){if(!y)return Oe(e);var n=Oe(b);if(n===null)n=b.appendChild(ee());else if(t&&n.nodeType!==Ze){var r=ee();return n?.before(r),B(r),r}return t&&Nt(n),B(n),n}function st(e,t=!1){if(!y){var n=Oe(e);return n instanceof Comment&&n.data===""?te(n):n}if(t){if(b?.nodeType!==Ze){var r=ee();return b?.before(r),B(r),r}Nt(b)}return b}function He(e,t=1,n=!1){let r=y?b:e;for(var i;t--;)i=r,r=te(r);if(!y)return r;if(n){if(r?.nodeType!==Ze){var s=ee();return r===null?i?.after(s):r.before(s),B(s),s}Nt(r)}return B(r),r}function Kr(e){e.textContent=""}function Xr(){return!1}function Tt(e,t,n){return document.createElementNS(Jt,e,void 0)}function Nt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Ze;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function qt(e){var t=m,n=g;C(null),I(null);try{return e()}finally{C(t),I(n)}}function Zr(e){g===null&&(m===null&&yr(),wr()),ce&&br()}function Qr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function G(e,t){var n=g;n!==null&&(n.f&J)!==0&&(e|=J);var r={ctx:F,deps:null,nodes:null,f:e|O|P,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&Ee)!==0)qe!==null?qe.push(r):Z.ensure().schedule(r);else if(t!==null){try{De(r)}catch(l){throw A(r),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&he)===0&&(i=i.first,(e&re)!==0&&(e&Se)!==0&&i!==null&&(i.f|=Se))}if(i!==null&&(i.parent=n,n!==null&&Qr(i,n),m!==null&&(m.f&T)!==0&&(e&ie)===0)){var s=m;(s.effects??=[]).push(i)}return r}function Ot(){return m!==null&&!Y}function Sn(e){const t=G(Xe,null);return E(t,S),t.teardown=e,t}function Tn(e){Zr();var t=g.f,n=!m&&(t&U)!==0&&(t&se)===0;if(n){var r=F;(r.e??=[]).push(e)}else return Nn(e)}function Nn(e){return G(Ee|pr,e)}function ei(e){Z.ensure();const t=G(ie|he,e);return()=>{A(t)}}function ti(e){Z.ensure();const t=G(ie|he,e);return(n={})=>new Promise(r=>{n.outro?Be(t,()=>{A(t),r(void 0)}):(A(t),r(void 0))})}function ni(e){return G(Ee,e)}function ri(e){return G(pt|he,e)}function qn(e,t=0){return G(Xe|t,e)}function Ce(e,t=[],n=[],r=[]){Hr(r,t,n,i=>{G(Xe,()=>e(...i.map(d)))})}function On(e,t=0){var n=G(re|t,e);return n}function ne(e){return G(U|he,e)}function An(e){var t=e.teardown;if(t!==null){const n=ce,r=m;Ln(!0),C(null);try{t.call(null)}finally{Ln(n),C(r)}}}function At(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&qt(()=>{i.abort(X)});var r=n.next;(n.f&ie)!==0?n.parent=null:A(n,t),n=r}}function ii(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&U)===0&&A(t),t=n}}function A(e,t=!0){var n=!1;(t||(e.f&_r)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(si(e.nodes.start,e.nodes.end),n=!0),E(e,Qt),At(e,t&&!n),Ye(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();An(e),e.f^=Qt,e.f|=H;var i=e.parent;i!==null&&i.first!==null&&Cn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function si(e,t){for(;e!==null;){var n=e===t?null:te(e);e.remove(),e=n}}function Cn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Be(e,t,n=!0){var r=[];Dn(e,r,!0);var i=()=>{n&&A(e),t&&t()},s=r.length;if(s>0){var l=()=>--s||i();for(var o of r)o.out(l)}else i()}function Dn(e,t,n){if((e.f&J)===0){e.f^=J;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,l=(i.f&Se)!==0||(i.f&U)!==0&&(e.f&re)!==0;Dn(i,t,l?n:!1),i=s}}}function oi(e){Rn(e,!0)}function Rn(e,t){if((e.f&J)!==0){e.f^=J,(e.f&S)===0&&(E(e,O),Z.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Se)!==0||(n.f&U)!==0;Rn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const l of s)(l.is_global||t)&&l.in()}}function Mn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:te(n);t.append(n),n=i}}let ot=!1,ce=!1;function Ln(e){ce=e}let m=null,Y=!1;function C(e){m=e}let g=null;function I(e){g=e}let j=null;function Pn(e){m!==null&&(j===null?j=[e]:j.push(e))}let D=null,L=0,V=null;function li(e){V=e}let Fn=1,me=0,ge=me;function In(e){ge=e}function jn(){return++Fn}function ze(e){var t=e.f;if((t&O)!==0)return!0;if(t&T&&(e.f&=~ve),(t&W)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(ze(s)&&gn(s),s.wv>e.wv)return!0}(t&P)!==0&&z===null&&E(e,S)}return!1}function Vn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(j!==null&&ke.call(j,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&T)!==0?Vn(s,t,!1):t===s&&(n?E(s,O):(s.f&S)!==0&&E(s,W),$t(s))}}function Hn(e){var t=D,n=L,r=V,i=m,s=j,l=F,o=Y,a=ge,u=e.f;D=null,L=0,V=null,m=(u&(U|ie))===0?e:null,j=null,Ne(e.ctx),Y=!1,ge=++me,e.ac!==null&&(qt(()=>{e.ac.abort(X)}),e.ac=null);try{e.f|=_t;var f=e.fn,v=f();e.f|=se;var c=e.deps,_=$?.is_fork;if(D!==null){var h;if(_||Ye(e,L),c!==null&&L>0)for(c.length=L+D.length,h=0;h<D.length;h++)c[L+h]=D[h];else e.deps=c=D;if(Ot()&&(e.f&P)!==0)for(h=L;h<c.length;h++)(c[h].reactions??=[]).push(e)}else!_&&c!==null&&L<c.length&&(Ye(e,L),c.length=L);if(on()&&V!==null&&!Y&&c!==null&&(e.f&(T|W|O))===0)for(h=0;h<V.length;h++)Vn(V[h],e);if(i!==null&&i!==e){if(me++,i.deps!==null)for(let w=0;w<n;w+=1)i.deps[w].rv=me;if(t!==null)for(const w of t)w.rv=me;V!==null&&(r===null?r=V:r.push(...V))}return(e.f&oe)!==0&&(e.f^=oe),v}catch(w){return an(w)}finally{e.f^=_t,D=t,L=n,V=r,m=i,j=s,Ne(l),Y=o,ge=a}}function ai(e,t){let n=t.reactions;if(n!==null){var r=ar.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&T)!==0&&(D===null||!ke.call(D,t))){var s=t;(s.f&P)!==0&&(s.f^=P,s.f&=~ve),bt(s),Wr(s),Ye(s,0)}}function Ye(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ai(e,n[r])}function De(e){var t=e.f;if((t&H)===0){E(e,S);var n=g,r=ot;g=e,ot=!0;try{(t&(re|Zt))!==0?ii(e):At(e),An(e);var i=Hn(e);e.teardown=typeof i=="function"?i:null,e.wv=Fn;var s;or&&Dr&&(e.f&O)!==0&&e.deps}finally{ot=r,g=n}}}function d(e){var t=e.f,n=(t&T)!==0;if(m!==null&&!Y){var r=g!==null&&(g.f&H)!==0;if(!r&&(j===null||!ke.call(j,e))){var i=m.deps;if((m.f&_t)!==0)e.rv<me&&(e.rv=me,D===null&&i!==null&&i[L]===e?L++:D===null?D=[e]:D.push(e));else{(m.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[m]:ke.call(s,m)||s.push(m)}}}if(ce&&fe.has(e))return fe.get(e);if(n){var l=e;if(ce){var o=l.v;return((l.f&S)===0&&l.reactions!==null||zn(l))&&(o=xt(l)),fe.set(l,o),o}var a=(l.f&P)===0&&!Y&&m!==null&&(ot||(m.f&P)!==0),u=(l.f&se)===0;ze(l)&&(a&&(l.f|=P),gn(l)),a&&!u&&(bn(l),Bn(l))}if(z?.has(e))return z.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function Bn(e){if(e.f|=P,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&T)!==0&&(t.f&P)===0&&(bn(t),Bn(t))}function zn(e){if(e.v===q)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(fe.has(t)||(t.f&T)!==0&&zn(t))return!0;return!1}function ui(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const lt=Symbol("events"),fi=new Set,Yn=new Set;function ci(e,t,n,r={}){function i(s){if(r.capture||Ct.call(t,s),!s.cancelBubble)return qt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?pe(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function at(e,t,n,r,i){var s={capture:r,passive:i},l=ci(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Sn(()=>{t.removeEventListener(e,l,s)})}let Un=null;function Ct(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Un=e;var l=0,o=Un===e&&e[lt];if(o){var a=i.indexOf(o);if(a!==-1&&(t===document||t===window)){e[lt]=t;return}var u=i.indexOf(t);if(u===-1)return;a<=u&&(l=a)}if(s=i[l]||e.target,s!==t){Ke(e,"currentTarget",{configurable:!0,get(){return s||n}});var f=m,v=g;C(null),I(null);try{for(var c,_=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var w=s[lt]?.[r];w!=null&&(!s.disabled||e.target===s)&&w.call(s,e)}catch(x){c?_.push(x):c=x}if(e.cancelBubble||h===t||h===null)break;s=h}if(c){for(let x of _)queueMicrotask(()=>{throw x});throw c}}finally{e[lt]=t,delete e.currentTarget,C(f),I(v)}}}const di=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function hi(e){return di?.createHTML(e)??e}function vi(e){var t=Tt("template");return t.innerHTML=hi(e.replaceAll("<!>","<!---->")),t.content}function Re(e,t){var n=g;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ut(e,t){var n=(t&ir)!==0,r=(t&sr)!==0,i,s=!e.startsWith("<!>");return()=>{if(y)return Re(b,null),b;i===void 0&&(i=vi(s?e:"<!>"+e),n||(i=Oe(i)));var l=r||kn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Oe(l),a=l.lastChild;Re(o,a)}else Re(l,l);return l}}function _i(){if(y)return Re(b,null),b;var e=document.createDocumentFragment(),t=document.createComment(""),n=ee();return e.append(t,n),Re(t,n),e}function Me(e,t){if(y){var n=g;((n.f&se)===0||n.nodes.end===null)&&(n.nodes.end=b),gt();return}e!==null&&e.before(t)}const pi=["touchstart","touchmove"];function mi(e){return pi.includes(e)}function gi(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Wn(e,t){return Jn(e,t)}function bi(e,t){St(),t.intro=t.intro??!1;const n=t.target,r=y,i=b;try{for(var s=Oe(n);s&&(s.nodeType!==Qe||s.data!==zt);)s=te(s);if(!s)throw $e;le(!0),B(s);const l=Jn(e,{...t,anchor:s});return le(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==$e&&console.warn("Failed to hydrate: ",l),t.recover===!1&&kr(),St(),Kr(n),le(!1),Wn(e,t)}finally{le(r),B(i)}}const ft=new Map;function Jn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:o}){St();var a=void 0,u=ti(()=>{var f=n??t.appendChild(ee());jr(f,{pending:()=>{}},_=>{rn({});var h=F;if(s&&(h.c=s),i&&(r.$$events=i),y&&Re(_,null),a=e(_,r)||{},y&&(g.nodes.end=b,b===null||b.nodeType!==Qe||b.data!==Wt))throw et(),$e;sn()},o);var v=new Set,c=_=>{for(var h=0;h<_.length;h++){var w=_[h];if(!v.has(w)){v.add(w);var x=mi(w);for(const We of[t,document]){var N=ft.get(We);N===void 0&&(N=new Map,ft.set(We,N));var de=N.get(w);de===void 0?(We.addEventListener(w,Ct,{passive:x}),N.set(w,1)):N.set(w,de+1)}}}};return c(ur(fi)),Yn.add(c),()=>{for(var _ of v)for(const x of[t,document]){var h=ft.get(x),w=h.get(_);--w==0?(x.removeEventListener(_,Ct),h.delete(_),h.size===0&&ft.delete(x)):h.set(_,w)}Yn.delete(c),f!==n&&f.parentNode?.removeChild(f)}});return Dt.set(a,u),a}let Dt=new WeakMap;function wi(e,t){const n=Dt.get(e);return n?(Dt.delete(e),n(t)):Promise.resolve()}class yi{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)oi(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,l]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(l);o&&(A(o.effect),this.#t.delete(l))}for(const[s,l]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var u=document.createDocumentFragment();Mn(l,u),u.append(ee()),this.#t.set(s,{effect:l,fragment:u})}else A(l);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),Be(l,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(A(i.effect),this.#t.delete(r))};ensure(t,n){var r=$,i=Xr();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),l=ee();s.append(l),this.#t.set(t,{effect:ne(()=>n(l)),fragment:s})}else this.#n.set(t,ne(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,a]of this.#n)o===t?r.unskip_effect(a):r.skip_effect(a);for(const[o,a]of this.#t)o===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#o)}else y&&(this.anchor=b),this.#r(r)}}function ct(e,t,n=!1){var r;y&&(r=b,gt());var i=new yi(e),s=n?Se:0;function l(o,a){if(y){var u=Or(r);if(o!==parseInt(u.substring(1))){var f=tn();B(f),i.anchor=f,le(!1),i.ensure(o,a),le(!0);return}}i.ensure(o,a)}On(()=>{var o=!1;t((a,u=0)=>{o=!0,l(u,a)}),o||l(-1,null)},s)}function $i(e,t){ni(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Tt("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function ki(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function Ue(e,t,n,r,i,s){var l=e.__className;if(y||l!==n||l===void 0){var o=ki(n,r);(!y||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}return s}const xi=Symbol("is custom element"),Ei=Symbol("is html");function Si(e,t,n,r){var i=Ti(e);y&&(i[t]=e.getAttribute(t)),i[t]!==(i[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&Gn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function dt(e,t,n){var r=m,i=g;let s=y;y&&le(!1),C(null),I(null);try{t!=="style"&&(Rt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Gn(e).includes(t):n&&typeof n=="object")?e[t]=n:Si(e,t,n==null?n:String(n))}finally{C(r),I(i),s&&le(!0)}}function Ti(e){return e.__attributes??={[xi]:e.nodeName.includes("-"),[Ei]:e.namespaceURI===Jt}}var Rt=new Map;function Gn(e){var t=e.getAttribute("is")||e.nodeName,n=Rt.get(t);if(n)return n;Rt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=fr(i);for(var l in r)r[l].set&&n.push(l);i=Gt(i)}return n}function Mt(e,t,n,r){var i=r,s=!0,l=()=>(s&&(s=!1,i=r),i),o;o=e[t],o===void 0&&r!==void 0&&(o=l());var a;a=()=>{var c=e[t];return c===void 0?l():(s=!0,c)};var u=!1,f=kt(()=>(u=!1,a())),v=g;return(function(c,_){if(arguments.length>0){const h=_?d(f):c;return k(f,h),u=!0,i!==void 0&&(i=h),c}return ce&&u||(v.f&H)!==0?f.v:d(f)})}function Ni(e){return new qi(e)}class qi{#e;#n;constructor(t){var n=new Map,r=(s,l)=>{var o=Jr(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return d(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===mr?!0:(d(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return k(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});this.#n=(t.hydrate?bi:Wn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&nt(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Ke(this,s,{get(){return this.#n[s]},set(l){this.#n[s]=l},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{wi(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let Kn;typeof HTMLElement=="function"&&(Kn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=Tt("slot");r!=="default"&&(s.name=r),Me(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Oi(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=ht(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Ni({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ei(()=>{qn(()=>{this.$$r=!0;for(const r of Ge(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=ht(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ht(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ge(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ht(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Oi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ai(e,t,n,r,i,s){let l=class extends Kn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Ge(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ge(t).forEach(o=>{Ke(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=ht(o,a,t),this.$$d[o]=a;var u=this.$$c;if(u){var f=xe(u,o)?.get;f?u[o]=a:u.$set({[o]:a})}}})}),r.forEach(o=>{Ke(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}var be={},Xn;function Ci(){if(Xn)return be;Xn=1,Object.defineProperty(be,"__esModule",{value:!0}),be.LanguageTranslator=void 0,be.getChildStyleToPass=e,be.addComponent=t;function e(r,i){var s,l,o="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||l===void 0)&&l.length))for(var a=function(c){var _=i?.filter(function(h){return h.name===c&&h.defaultValue!==r[c]});_&&(o+="".concat(c,":").concat(r[c],";"))},u=0,f=Object.keys(r);u<f.length;u++){var v=f[u];a(v)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(a+"-",""),"/").concat(l)}document.head.appendChild(o)}catch(u){console.warn(u)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,l){return r.formatDate(i,s,l||this.lang)},r.getDefaultLang=function(){var i,s,l,o="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(i,s,l){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((o=s[l])===null||o===void 0)&&o[i]))return s[l][i];var a="",u=r.getDefaultLang();if(!l||u!==l){var f=s?.[u];f?.[i]&&(a=f[i])}return a},r.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||r.getDefaultLang(),s);return o.format(i)},r})();return be.LanguageTranslator=n,be}var Zn=Ci();const Qn={version:"0.66.2"};var Di=ut(': <div class="input svelte-1x2sq1k"><hb-input-number></hb-input-number></div>',3),Ri=ut('<div style="margin-right:20px" class="input svelte-1x2sq1k"><hb-input-date></hb-input-date></div> <div class="input svelte-1x2sq1k"><hb-input-number></hb-input-number></div> : <div class="input svelte-1x2sq1k"><hb-input-number></hb-input-number></div> <!>',3),Mi=ut('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-1x2sq1k"> </div>'),Li=ut("<div><!></div> <!>",1);const Pi={hash:"svelte-1x2sq1k",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
3
3
  /*!
4
4
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
5
5
  * Copyright 2011-2021 The Bootstrap Authors
@@ -72,5 +72,5 @@
72
72
  @media (min-width: 1200px) {
73
73
  }
74
74
  @media (min-width: 1400px) {
75
- }:host {font-family:"Roboto", sans-serif;}.input.svelte-1x2sq1k {display:inline-block;}hb-input-date.svelte-1x2sq1k {max-width:140px;display:inline-block;}hb-input-number.svelte-1x2sq1k {width:100px;display:inline-block;}`};function Vn(e,t){Jt(t,!0),ri(e,gi);let n=Ot(t,"schemaentry"),r=Ot(t,"show_validation",7,"no"),i=Ot(t,"id",7,void 0),s=A(!1),o=A(void 0),a=A(void 0),l=A(void 0),f=A(void 0);function c(_,W){t.$$host.dispatchEvent(new CustomEvent(_,{detail:W}))}let v,u=!0;jn.addComponent({repoName:"@htmlbricks/hb-input-number",version:In.version}),jn.addComponent({repoName:"@htmlbricks/hb-input-date",version:In.version});let h=Re(()=>{if(d(o)&&(d(f)||d(f)===0)&&(d(a)||d(a)===0)&&(d(l)||d(l)===0)){console.log("NOW",d(o),d(a),d(l));try{return new Date(`${d(o)} ${d(a).toString().padStart(2,"0")}:${d(l).toString().padStart(2,"0")}:${d(f).toString().padStart(2,"0")||"00"}`).toISOString()}catch(_){console.error("convert error",_,`${d(o)} ${d(a).toString().padStart(2,"0")}:${d(l).toString().padStart(2,"0")}:${d(f).toString().padStart(2,"0")||"00"}`);return}}else{console.log("reset to 0 datetime");return}}),g=Re(()=>({id:"date",value:d(o)||void 0,required:!0})),j=Re(()=>({id:"hours",value:d(a)||void 0,required:!0,params:{min:0,max:23}})),I=Re(()=>({id:"minutes",value:d(l)||void 0,required:!0,params:{min:0,max:59}})),re=Re(()=>({id:"seconds",value:d(f)||void 0,required:!0,params:{min:0,max:59}}));hn(()=>{if(r()||r("no"),n()&&typeof n()=="string"&&n(JSON.parse(n())),n()?.value&&(v!==n()?.value||u)){console.info("computing values",n().value),u=!1;let _;try{_=new Date(n().value),_&&_.valueOf()>1e4&&_.valueOf()<1e13?(console.info("converting date"),y(o,`${_.getFullYear()}-${(_.getMonth()+1).toString().padStart(2,"0")}-${_.getDate().toString().padStart(2,"0")}`),y(a,_.getHours(),!0),y(l,_.getMinutes(),!0),y(f,_.getSeconds(),!0)):console.error("invalid data value on input-datetime",d(h))}catch(W){console.error("invalid input value on input-datetime",n()?.value,W)}}if(v=n()?.value,n()){if(n().required)if(d(h)){let _,W;n()?.params?.min&&(_=new Date(n().params.min)),n()?.params?.max&&(W=new Date(n().params.max));const pe=new Date(d(h));_&&!(pe.valueOf()>=_.valueOf())||W&&!(pe.valueOf()<=W.valueOf())?y(s,!1):y(s,!0)}else y(s,!1);else y(s,!0);n().id&&i(n().id)}else y(s,!1)}),hn(()=>{console.log("dispatch setvalz",d(h)?JSON.stringify(d(h)):"undefined"),c("setVal",{value:d(h),valid:d(s),id:i()})});function ze(_){console.log("changeDate",_),y(o,_,!0)}function bi(_){console.log("changeHour",_),y(a,_,!0),!d(l)&&d(I)&&(d(I).value=0),!d(f)&&d(re)&&(d(re).value=0)}function wi(_){console.log("changeMinutes",_),y(l,_,!0),!d(f)&&d(re)&&(d(re).value=0)}function yi(_){console.log("changeSeconds",_),y(f,_,!0)}var $i={get schemaentry(){return n()},set schemaentry(_){n(_),tt()},get show_validation(){return r()},set show_validation(_="no"){r(_),tt()},get id(){return i()},set id(_=void 0){i(_),tt()}},Bn=Kr(),ki=it(Bn);{var xi=_=>{var W=mi(),pe=it(W),Ei=Se(pe);{var Si=me=>{var Ce=_i(),Ue=it(Ce),Ct=Se(Ue);Te(()=>ct(Ct,"schemaentry",JSON.stringify(d(g)))),Ye(Ct,1,"svelte-1x2sq1k"),$e(Ue);var At=Fe(Ue,2),Dt=Se(At);Te(()=>ct(Dt,"schemaentry",JSON.stringify(d(j)))),Ye(Dt,1,"svelte-1x2sq1k"),$e(At);var Rt=Fe(At,2),Mt=Se(Rt);Te(()=>ct(Mt,"schemaentry",JSON.stringify(d(I)))),Ye(Mt,1,"svelte-1x2sq1k"),$e(Rt);var Ni=Fe(Rt,2);{var Oi=C=>{var Hn=vi(),Yn=Fe(it(Hn)),Lt=Se(Yn);Te(()=>ct(Lt,"schemaentry",JSON.stringify(d(re)))),Ye(Lt,1,"svelte-1x2sq1k"),$e(Yn),lt("setVal",Lt,Pt=>{(Pt.detail?.value||Number(Pt?.detail?.value)===0)&&yi(Pt.detail.value)}),Ne(C,Hn)};ut(Ni,C=>{n()?.params?.removeSeconds||C(Oi)})}lt("setVal",Ct,C=>{C.detail?.value&&ze(C.detail.value)}),lt("setVal",Dt,C=>{(C.detail?.value||Number(C.detail.value)===0)&&bi(C.detail.value)}),lt("setVal",Mt,C=>{(C.detail?.value||Number(C.detail.value)===0)&&wi(C.detail.value)}),Ne(me,Ce)};ut(Ei,me=>{d(g)&&d(j)&&d(I)&&d(re)&&me(Si)})}$e(pe);var Ti=Fe(pe,2);{var qi=me=>{var Ce=pi(),Ue=Se(Ce,!0);$e(Ce),Te(()=>Qr(Ue,n().validationTip)),Ne(me,Ce)};ut(Ti,me=>{n()?.validationTip&&r()==="yes"&&me(qi)})}Te(()=>Ye(pe,1,`form-control ${r()==="yes"&&n()?.required?d(s)?"is-valid":"is-invalid":""}`,"svelte-1x2sq1k")),Ne(_,W)};ut(ki,_=>{n()&&typeof n()=="object"&&_(xi)})}return Ne(e,Bn),Gt($i)}customElements.define("hb-input-datetime",di(Vn,{schemaentry:{},show_validation:{},id:{}},[],[],!0)),Ft.Component=Vn,Object.defineProperty(Ft,Symbol.toStringTag,{value:"Module"})})(this["input-datetime"]=this["input-datetime"]||{});
75
+ }:host {font-family:"Roboto", sans-serif;}.input.svelte-1x2sq1k {display:inline-block;}hb-input-date.svelte-1x2sq1k {max-width:140px;display:inline-block;}hb-input-number.svelte-1x2sq1k {width:100px;display:inline-block;}`};function er(e,t){rn(t,!0),$i(e,Pi);let n=Mt(t,"schemaentry"),r=Mt(t,"show_validation",7,"no"),i=Mt(t,"id",7,void 0),s=M(!1),l=M(void 0),o=M(void 0),a=M(void 0),u=M(void 0);function f(p,K){t.$$host.dispatchEvent(new CustomEvent(p,{detail:K}))}let v,c=!0;Zn.addComponent({repoName:"@htmlbricks/hb-input-number",version:Qn.version}),Zn.addComponent({repoName:"@htmlbricks/hb-input-date",version:Qn.version});let _=Fe(()=>{if(d(l)&&(d(u)||d(u)===0)&&(d(o)||d(o)===0)&&(d(a)||d(a)===0)){console.log("NOW",d(l),d(o),d(a));try{return new Date(`${d(l)} ${d(o).toString().padStart(2,"0")}:${d(a).toString().padStart(2,"0")}:${d(u).toString().padStart(2,"0")||"00"}`).toISOString()}catch(p){console.error("convert error",p,`${d(l)} ${d(o).toString().padStart(2,"0")}:${d(a).toString().padStart(2,"0")}:${d(u).toString().padStart(2,"0")||"00"}`);return}}else{console.log("reset to 0 datetime");return}}),h=Fe(()=>({id:"date",value:d(l)||void 0,required:!0})),w=Fe(()=>({id:"hours",value:d(o)||void 0,required:!0,params:{min:0,max:23}})),x=Fe(()=>({id:"minutes",value:d(a)||void 0,required:!0,params:{min:0,max:59}})),N=Fe(()=>({id:"seconds",value:d(u)||void 0,required:!0,params:{min:0,max:59}}));Tn(()=>{if(r()||r("no"),n()&&typeof n()=="string"&&n(JSON.parse(n())),n()?.value&&(v!==n()?.value||c)){console.info("computing values",n().value),c=!1;let p;try{p=new Date(n().value),p&&p.valueOf()>1e4&&p.valueOf()<1e13?(console.info("converting date"),k(l,`${p.getFullYear()}-${(p.getMonth()+1).toString().padStart(2,"0")}-${p.getDate().toString().padStart(2,"0")}`),k(o,p.getHours(),!0),k(a,p.getMinutes(),!0),k(u,p.getSeconds(),!0)):console.error("invalid data value on input-datetime",d(_))}catch(K){console.error("invalid input value on input-datetime",n()?.value,K)}}if(v=n()?.value,n()){if(n().required)if(d(_)){let p,K;n()?.params?.min&&(p=new Date(n().params.min)),n()?.params?.max&&(K=new Date(n().params.max));const we=new Date(d(_));p&&!(we.valueOf()>=p.valueOf())||K&&!(we.valueOf()<=K.valueOf())?k(s,!1):k(s,!0)}else k(s,!1);else k(s,!0);n().id&&i(n().id)}else k(s,!1)}),Tn(()=>{console.log("dispatch setvalz",d(_)?JSON.stringify(d(_)):"undefined"),f("setVal",{value:d(_),valid:d(s),id:i()})});function de(p){console.log("changeDate",p),k(l,p,!0)}function We(p){console.log("changeHour",p),k(o,p,!0),!d(a)&&d(x)&&(d(x).value=0),!d(u)&&d(N)&&(d(N).value=0)}function Fi(p){console.log("changeMinutes",p),k(a,p,!0),!d(u)&&d(N)&&(d(N).value=0)}function Ii(p){console.log("changeSeconds",p),k(u,p,!0)}var ji={get schemaentry(){return n()},set schemaentry(p){n(p),nt()},get show_validation(){return r()},set show_validation(p="no"){r(p),nt()},get id(){return i()},set id(p=void 0){i(p),nt()}},tr=_i(),Vi=st(tr);{var Hi=p=>{var K=Li(),we=st(K),Bi=Ae(we);{var zi=ye=>{var Le=Ri(),Je=st(Le),Lt=Ae(Je);Ce(()=>dt(Lt,"schemaentry",JSON.stringify(d(h)))),Ue(Lt,1,"svelte-1x2sq1k"),Te(Je);var Pt=He(Je,2),Ft=Ae(Pt);Ce(()=>dt(Ft,"schemaentry",JSON.stringify(d(w)))),Ue(Ft,1,"svelte-1x2sq1k"),Te(Pt);var It=He(Pt,2),jt=Ae(It);Ce(()=>dt(jt,"schemaentry",JSON.stringify(d(x)))),Ue(jt,1,"svelte-1x2sq1k"),Te(It);var Wi=He(It,2);{var Ji=R=>{var nr=Di(),rr=He(st(nr)),Vt=Ae(rr);Ce(()=>dt(Vt,"schemaentry",JSON.stringify(d(N)))),Ue(Vt,1,"svelte-1x2sq1k"),Te(rr),at("setVal",Vt,Ht=>{(Ht.detail?.value||Number(Ht?.detail?.value)===0)&&Ii(Ht.detail.value)}),Me(R,nr)};ct(Wi,R=>{n()?.params?.removeSeconds||R(Ji)})}at("setVal",Lt,R=>{R.detail?.value&&de(R.detail.value)}),at("setVal",Ft,R=>{(R.detail?.value||Number(R.detail.value)===0)&&We(R.detail.value)}),at("setVal",jt,R=>{(R.detail?.value||Number(R.detail.value)===0)&&Fi(R.detail.value)}),Me(ye,Le)};ct(Bi,ye=>{d(h)&&d(w)&&d(x)&&d(N)&&ye(zi)})}Te(we);var Yi=He(we,2);{var Ui=ye=>{var Le=Mi(),Je=Ae(Le,!0);Te(Le),Ce(()=>gi(Je,n().validationTip)),Me(ye,Le)};ct(Yi,ye=>{n()?.validationTip&&r()==="yes"&&ye(Ui)})}Ce(()=>Ue(we,1,`form-control ${r()==="yes"&&n()?.required?d(s)?"is-valid":"is-invalid":""}`,"svelte-1x2sq1k")),Me(p,K)};ct(Vi,p=>{n()&&typeof n()=="object"&&p(Hi)})}return Me(e,tr),sn(ji)}customElements.define("hb-input-datetime",Ai(er,{schemaentry:{},show_validation:{},id:{}},[],[],{mode:"open"})),Bt.Component=er,Object.defineProperty(Bt,Symbol.toStringTag,{value:"Module"})})(this["input-datetime"]=this["input-datetime"]||{});
76
76
  //# sourceMappingURL=main.iife.js.map