@htmlbricks/hb-input-datetime 0.65.3 → 0.65.5

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
1
  (function(It){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const zr=1,Wr=2,Vt="[",mt="[!",Bt="]",ge={},x=Symbol(),Jr="http://www.w3.org/1999/xhtml",yt=!1;var Gr=Array.isArray,Kr=Array.prototype.indexOf,Xr=Array.from,Je=Object.keys,Ge=Object.defineProperty,me=Object.getOwnPropertyDescriptor,Zr=Object.getOwnPropertyDescriptors,Qr=Object.prototype,en=Array.prototype,Ht=Object.getPrototypeOf,Ut=Object.isExtensible;function tn(e){for(var t=0;t<e.length;t++)e[t]()}function Yt(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const k=2,wt=4,$t=8,J=16,G=32,ne=64,Ke=128,I=512,E=1024,A=2048,K=4096,H=8192,X=16384,Xe=32768,ye=65536,zt=1<<17,Wt=1<<18,fe=1<<19,rn=1<<20,ue=32768,kt=1<<21,xt=1<<22,ie=1<<23,Et=Symbol("$state"),nn=Symbol("legacy props"),we=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},St=3,Re=8;function sn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function on(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function an(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ln(e){throw new Error("https://svelte.dev/e/effect_orphan")}function fn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function un(){throw new Error("https://svelte.dev/e/hydration_failed")}function cn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function dn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function hn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function vn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ze(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function bn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let g=!1;function se(e){g=e}let y;function V(e){if(e===null)throw Ze(),ge;return y=e}function Tt(){return V(ee(y))}function $e(e){if(g){if(ee(y)!==null)throw Ze(),ge;y=e}}function _n(e=1){if(g){for(var t=e,r=y;t--;)r=ee(r);y=r}}function Jt(e=!0){for(var t=0,r=y;;){if(r.nodeType===Re){var n=r.data;if(n===Bt){if(t===0)return r;t-=1}else(n===Vt||n===mt)&&(t+=1)}var i=ee(r);e&&r.remove(),r=i}}function pn(e){if(!e||e.nodeType!==Re)throw Ze(),ge;return e.data}function Gt(e){return e===this.v}function gn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function mn(e){return!gn(e,this.v)}let yn=!1,M=null;function ke(e){M=e}function Kt(e,t=!1,r){M={p:M,i:!1,c:null,e:null,s:e,x:null,l:null}}function Xt(e){var t=M,r=t.e;if(r!==null){t.e=null;for(var n of r)br(n)}return e!==void 0&&(t.x=e),t.i=!0,M=t.p,e??{}}function Zt(){return!0}let ce=[];function Qt(){var e=ce;ce=[],tn(e)}function Qe(e){if(ce.length===0&&!Me){var t=ce;queueMicrotask(()=>{t===ce&&Qt()})}ce.push(e)}function wn(){for(;ce.length>0;)Qt()}function er(e){var t=p;if(t===null)return _.f|=ie,e;if((t.f&Xe)===0){if((t.f&Ke)===0)throw e;t.b.error(e)}else xe(e,t)}function xe(e,t){for(;t!==null;){if((t.f&Ke)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const et=new Set;let $=null,L=null,P=[],tt=null,Nt=!1,Me=!1;class B{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){P=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#o(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects)):($=null,rr(r.render_effects),rr(r.effects),this.#l?.resolve()),L=null}#o(t,r){t.f^=E;for(var n=t.first;n!==null;){var i=n.f,s=(i&(G|ne))!==0,o=s&&(i&E)!==0,a=o||(i&H)!==0||this.skipped_effects.has(n);if((n.f&Ke)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){s?n.f^=E:(i&wt)!==0?r.effects.push(n):Be(n)&&((n.f&J)!==0&&r.block_effects.push(n),He(n));var l=n.first;if(l!==null){n=l;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#a(t){for(const r of t)((r.f&A)!==0?this.#s:this.#i).push(r),this.#f(r.deps),N(r,E)}#f(t){if(t!==null)for(const r of t)(r.f&k)===0||(r.f&ue)===0||(r.f^=ue,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&ie)===0&&(this.current.set(t,t.v),L?.set(t,t.v))}activate(){$=this,this.apply()}deactivate(){$===this&&($=null,L=null)}flush(){if(this.activate(),P.length>0){if(tr(),$!==null&&$!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(et.size>1){this.previous.clear();var t=L,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of et){if(s===this){r=!1;continue}const o=[];for(const[l,f]of this.current){if(s.current.has(l))if(r&&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=P;P=[];const l=new Set,f=new Map;for(const u of o)nr(u,a,l,f);if(P.length>0){$=s,s.apply();for(const u of P)s.#o(u,n);s.deactivate()}P=i}}$=null,L=t}this.committed=!0,et.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#s)N(t,A),de(t);for(const t of this.#i)N(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??=Yt()).promise}static ensure(){if($===null){const t=$=new B;et.add($),Me||B.enqueue(()=>{$===t&&t.flush()})}return $}static enqueue(t){Qe(t)}apply(){}}function rt(e){var t=Me;Me=!0;try{for(var r;;){if(wn(),P.length===0&&($?.flush(),P.length===0))return tt=null,r;tr()}}finally{Me=t}}function tr(){var e=ae;Nt=!0;var t=null;try{var r=0;for(at(!0);P.length>0;){var n=B.ensure();if(r++>1e3){var i,s;$n()}n.process(P),oe.clear()}}finally{Nt=!1,at(e),tt=null}}function $n(){try{fn()}catch(e){xe(e,tt)}}let Z=null;function rr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(X|H))===0&&Be(n)&&(Z=new Set,He(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?yr(n):n.fn=null),Z?.size>0)){oe.clear();for(const i of Z){if((i.f&(X|H))!==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|H))===0&&He(l)}}Z.clear()}}Z=null}}function nr(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&k)!==0?nr(i,t,r,n):(s&(xt|J))!==0&&(s&A)===0&&ir(i,t,n)&&(N(i,A),de(i))}}function ir(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&k)!==0&&ir(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function de(e){for(var t=tt=e;t.parent!==null;){t=t.parent;var r=t.f;if(Nt&&t===p&&(r&J)!==0&&(r&Wt)===0)return;if((r&(ne|G))!==0){if((r&E)===0)return;t.f^=E}}P.push(t)}function kn(e){let t=0,r=Pe(0),n;return()=>{ot()&&(d(r),_r(()=>(t===0&&(n=Wn(()=>e(()=>je(r)))),t+=1,()=>{Qe(()=>{t-=1,t===0&&(n?.(),n=void 0,je(r))})})))}}var xn=ye|fe|Ke;function En(e,t,r){new Sn(e,t,r)}class Sn{parent;#t=!1;#e;#r=g?y:null;#n;#l;#s;#i=null;#o=null;#a=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#m=kn(()=>(this.#h=Pe(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=p.b,this.#t=!!this.#n.pending,this.#s=pr(()=>{if(p.b=this,g){const s=this.#r;Tt(),s.nodeType===Re&&s.data===mt?this.#w():this.#y()}else{var i=this.#p();try{this.#i=te(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#_():this.#t=!1}return()=>{this.#u?.remove()}},xn),g&&(this.#e=y)}#y(){try{this.#i=te(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#n.pending;t&&(this.#o=te(()=>t(this.#e)),B.enqueue(()=>{var r=this.#p();this.#i=this.#b(()=>(B.ensure(),te(()=>this.#l(r)))),this.#d>0?this.#_():(Ie(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#p(){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.#n.pending}#b(t){var r=p,n=_,i=M;j(this.#s),T(this.#s),ke(this.#s.ctx);try{return t()}catch(s){return er(s),null}finally{j(r),T(n),ke(i)}}#_(){const t=this.#n.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),kr(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&&Ie(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&&it(this.#h,this.#c)}get_effect_pending(){return this.#m(),d(this.#h)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)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),g&&(V(this.#r),_n(),V(Jt()));var i=!1,s=!1;const o=()=>{if(i){bn();return}i=!0,s&&vn(),B.ensure(),this.#c=0,this.#a!==null&&Ie(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#i=this.#b(()=>(this.#v=!1,te(()=>this.#l(this.#e)))),this.#d>0?this.#_():this.#t=!1};var a=_;try{T(null),s=!0,r?.(t,o),s=!1}catch(l){xe(l,this.#s&&this.#s.parent)}finally{T(a)}n&&Qe(()=>{this.#a=this.#b(()=>{B.ensure(),this.#v=!0;try{return te(()=>{n(this.#e,()=>t,()=>o)})}catch(l){return xe(l,this.#s.parent),null}finally{this.#v=!1}})})}}function Tn(e,t,r,n){const i=qt;if(r.length===0&&e.length===0){n(t.map(i));return}var s=$,o=p,a=Nn();function l(){Promise.all(r.map(f=>qn(f))).then(f=>{a();try{n([...t.map(i),...f])}catch(u){(o.f&X)===0&&xe(u,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 Nn(){var e=p,t=_,r=M,n=$;return function(s=!0){j(e),T(t),ke(r),s&&n?.activate()}}function nt(){j(null),T(null),ke(null)}function qt(e){var t=k|A,r=_!==null&&(_.f&k)!==0?_:null;return p!==null&&(p.f|=fe),{ctx:M,deps:null,effects:null,equals:Gt,f:t,fn:e,reactions:null,rv:0,v:x,wv:0,parent:r??p,ac:null}}function qn(e,t){let r=p;r===null&&sn();var n=r.b,i=void 0,s=Pe(x),o=!_,a=new Map;return In(()=>{var l=Yt();i=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===$&&f.committed&&f.deactivate(),nt()})}catch(c){l.reject(c),nt()}var f=$;if(o){var u=!n.is_pending();n.update_pending_count(1),f.increment(u),a.get(f)?.reject(we),a.delete(f),a.set(f,l)}const h=(c,v=void 0)=>{if(f.activate(),v)v!==we&&(s.f|=ie,it(s,v));else{(s.f&ie)!==0&&(s.f^=ie),it(s,c);for(const[m,q]of a){if(a.delete(m),m===f)break;q.reject(we)}}o&&(n.update_pending_count(-1),f.decrement(u))};l.promise.then(h,c=>h(null,c||"unknown"))}),hr(()=>{for(const l of a.values())l.reject(we)}),new Promise(l=>{function f(u){function h(){u===i?l(s):f(i)}u.then(h,h)}f(i)})}function Le(e){const t=qt(e);return Er(t),t}function sr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)O(t[r])}}function Cn(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 Ct(e){var t,r=p;j(Cn(e));try{e.f&=~ue,sr(e),t=Cr(e)}finally{j(r)}return t}function or(e){var t=Ct(e);if(e.equals(t)||($?.is_fork||(e.v=t),e.wv=Nr()),!he)if(L!==null)ot()&&L.set(e,t);else{var r=(e.f&I)===0?K:E;N(e,r)}}let At=new Set;const oe=new Map;let ar=!1;function Pe(e,t){var r={f:0,v:e,reactions:null,equals:Gt,rv:0,wv:0};return r}function S(e,t){const r=Pe(e);return Er(r),r}function An(e,t=!1,r=!0){const n=Pe(e);return t||(n.equals=mn),n}function w(e,t,r=!1){_!==null&&(!Y||(_.f&zt)!==0)&&Zt()&&(_.f&(k|J|xt|zt))!==0&&!re?.includes(e)&&hn();let n=r?Ee(t):t;return it(e,n)}function it(e,t){if(!e.equals(t)){var r=e.v;he?oe.set(e,t):oe.set(e,r),e.v=t;var n=B.ensure();n.capture(e,r),(e.f&k)!==0&&((e.f&A)!==0&&Ct(e),N(e,(e.f&I)!==0?E:K)),e.wv=Nr(),lr(e,A),p!==null&&(p.f&E)!==0&&(p.f&(G|ne))===0&&(F===null?Yn([e]):F.push(e)),!n.is_fork&&At.size>0&&!ar&&On()}return t}function On(){ar=!1;var e=ae;at(!0);const t=Array.from(At);try{for(const r of t)(r.f&E)!==0&&N(r,K),Be(r)&&He(r)}finally{at(e)}At.clear()}function je(e){w(e,e.v+1)}function lr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,a=(o&A)===0;if(a&&N(s,t),(o&k)!==0){var l=s;L?.delete(l),(o&ue)===0&&(o&I&&(s.f|=ue),lr(l,K))}else a&&((o&J)!==0&&Z!==null&&Z.add(s),de(s))}}function Ee(e){if(typeof e!="object"||e===null||Et in e)return e;const t=Ht(e);if(t!==Qr&&t!==en)return e;var r=new Map,n=Gr(e),i=S(0),s=ve,o=a=>{if(ve===s)return a();var l=_,f=ve;T(null),Tr(s);var u=a();return T(l),Tr(f),u};return n&&r.set("length",S(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&cn();var u=r.get(l);return u===void 0?u=o(()=>{var h=S(f.value);return r.set(l,h),h}):w(u,f.value,!0),!0},deleteProperty(a,l){var f=r.get(l);if(f===void 0){if(l in a){const u=o(()=>S(x));r.set(l,u),je(i)}}else w(f,x),je(i);return!0},get(a,l,f){if(l===Et)return e;var u=r.get(l),h=l in a;if(u===void 0&&(!h||me(a,l)?.writable)&&(u=o(()=>{var v=Ee(h?a[l]:x),m=S(v);return m}),r.set(l,u)),u!==void 0){var c=d(u);return c===x?void 0:c}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var u=r.get(l);u&&(f.value=d(u))}else if(f===void 0){var h=r.get(l),c=h?.v;if(h!==void 0&&c!==x)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(a,l){if(l===Et)return!0;var f=r.get(l),u=f!==void 0&&f.v!==x||Reflect.has(a,l);if(f!==void 0||p!==null&&(!u||me(a,l)?.writable)){f===void 0&&(f=o(()=>{var c=u?Ee(a[l]):x,v=S(c);return v}),r.set(l,f));var h=d(f);if(h===x)return!1}return u},set(a,l,f,u){var h=r.get(l),c=l in a;if(n&&l==="length")for(var v=f;v<h.v;v+=1){var m=r.get(v+"");m!==void 0?w(m,x):v in a&&(m=o(()=>S(x)),r.set(v+"",m))}if(h===void 0)(!c||me(a,l)?.writable)&&(h=o(()=>S(void 0)),w(h,Ee(f)),r.set(l,h));else{c=h.v!==x;var q=o(()=>Ee(f));w(h,q)}var z=Reflect.getOwnPropertyDescriptor(a,l);if(z?.set&&z.set.call(u,f),!c){if(n&&typeof l=="string"){var ze=r.get("length"),le=Number(l);Number.isInteger(le)&&le>=ze.v&&w(ze,le+1)}je(i)}return!0},ownKeys(a){d(i);var l=Reflect.ownKeys(a).filter(h=>{var c=r.get(h);return c===void 0||c.v!==x});for(var[f,u]of r)u.v!==x&&!(f in a)&&l.push(f);return l},setPrototypeOf(){dn()}})}var fr,ur,cr,dr;function Ot(){if(fr===void 0){fr=window,ur=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;cr=me(t,"firstChild").get,dr=me(t,"nextSibling").get,Ut(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ut(r)&&(r.__t=void 0)}}function Q(e=""){return document.createTextNode(e)}function Se(e){return cr.call(e)}function ee(e){return dr.call(e)}function Te(e,t){if(!g)return Se(e);var r=Se(y);if(r===null)r=y.appendChild(Q());else if(t&&r.nodeType!==St){var n=Q();return r?.before(n),V(n),n}return V(r),r}function st(e,t=!1){if(!g){var r=Se(e);return r instanceof Comment&&r.data===""?ee(r):r}if(t&&y?.nodeType!==St){var n=Q();return y?.before(n),V(n),n}return y}function Fe(e,t=1,r=!1){let n=g?y:e;for(var i;t--;)i=n,n=ee(n);if(!g)return n;if(r&&n?.nodeType!==St){var s=Q();return n===null?i?.after(s):n.before(s),V(s),s}return V(n),n}function Dn(e){e.textContent=""}function Rn(){return!1}function Dt(e){var t=_,r=p;T(null),j(null);try{return e()}finally{T(t),j(r)}}function Mn(e){p===null&&(_===null&&ln(),an()),he&&on()}function Ln(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function U(e,t,r){var n=p;n!==null&&(n.f&H)!==0&&(e|=H);var i={ctx:M,deps:null,nodes_start:null,nodes_end:null,f:e|A|I,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{He(i),i.f|=Xe}catch(a){throw O(i),a}else t!==null&&de(i);var s=i;if(r&&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&ye)!==0&&s!==null&&(s.f|=ye)),s!==null&&(s.parent=n,n!==null&&Ln(s,n),_!==null&&(_.f&k)!==0&&(e&ne)===0)){var o=_;(o.effects??=[]).push(s)}return i}function ot(){return _!==null&&!Y}function hr(e){const t=U($t,null,!1);return N(t,E),t.teardown=e,t}function vr(e){Mn();var t=p.f,r=!_&&(t&G)!==0&&(t&Xe)===0;if(r){var n=M;(n.e??=[]).push(e)}else return br(e)}function br(e){return U(wt|rn,e,!1)}function Pn(e){B.ensure();const t=U(ne|fe,e,!0);return()=>{O(t)}}function jn(e){B.ensure();const t=U(ne|fe,e,!0);return(r={})=>new Promise(n=>{r.outro?Ie(t,()=>{O(t),n(void 0)}):(O(t),n(void 0))})}function Fn(e){return U(wt,e,!1)}function In(e){return U(xt|fe,e,!0)}function _r(e,t=0){return U($t|t,e,!0)}function Ne(e,t=[],r=[],n=[]){Tn(n,t,r,i=>{U($t,()=>e(...i.map(d)),!0)})}function pr(e,t=0){var r=U(J|t,e,!0);return r}function te(e){return U(G|fe,e,!0)}function gr(e){var t=e.teardown;if(t!==null){const r=he,n=_;xr(!0),T(null);try{t.call(null)}finally{xr(r),T(n)}}}function mr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Dt(()=>{i.abort(we)});var n=r.next;(r.f&ne)!==0?r.parent=null:O(r,t),r=n}}function Vn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&G)===0&&O(t),t=r}}function O(e,t=!0){var r=!1;(t||(e.f&Wt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Bn(e.nodes_start,e.nodes_end),r=!0),mr(e,t&&!r),lt(e,0),N(e,X);var n=e.transitions;if(n!==null)for(const s of n)s.stop();gr(e);var i=e.parent;i!==null&&i.first!==null&&yr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Bn(e,t){for(;e!==null;){var r=e===t?null:ee(e);e.remove(),e=r}}function yr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ie(e,t,r=!0){var n=[];wr(e,n,!0),Hn(n,()=>{r&&O(e),t&&t()})}function Hn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function wr(e,t,r){if((e.f&H)===0){if(e.f^=H,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&ye)!==0||(n.f&G)!==0&&(e.f&J)!==0;wr(n,t,s?r:!1),n=i}}}function Un(e){$r(e,!0)}function $r(e,t){if((e.f&H)!==0){e.f^=H,(e.f&E)===0&&(N(e,A),de(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&ye)!==0||(r.f&G)!==0;$r(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function kr(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:ee(r);t.append(r),r=i}}let ae=!1;function at(e){ae=e}let he=!1;function xr(e){he=e}let _=null,Y=!1;function T(e){_=e}let p=null;function j(e){p=e}let re=null;function Er(e){_!==null&&(re===null?re=[e]:re.push(e))}let C=null,R=0,F=null;function Yn(e){F=e}let Sr=1,Ve=0,ve=Ve;function Tr(e){ve=e}function Nr(){return++Sr}function Be(e){var t=e.f;if((t&A)!==0)return!0;if(t&k&&(e.f&=~ue),(t&K)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(Be(s)&&or(s),s.wv>e.wv)return!0}(t&I)!==0&&L===null&&N(e,E)}return!1}function qr(e,t,r=!0){var n=e.reactions;if(n!==null&&!re?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&k)!==0?qr(s,t,!1):t===s&&(r?N(s,A):(s.f&E)!==0&&N(s,K),de(s))}}function Cr(e){var t=C,r=R,n=F,i=_,s=re,o=M,a=Y,l=ve,f=e.f;C=null,R=0,F=null,_=(f&(G|ne))===0?e:null,re=null,ke(e.ctx),Y=!1,ve=++Ve,e.ac!==null&&(Dt(()=>{e.ac.abort(we)}),e.ac=null);try{e.f|=kt;var u=e.fn,h=u(),c=e.deps;if(C!==null){var v;if(lt(e,R),c!==null&&R>0)for(c.length=R+C.length,v=0;v<C.length;v++)c[R+v]=C[v];else e.deps=c=C;if(ae&&ot()&&(e.f&I)!==0)for(v=R;v<c.length;v++)(c[v].reactions??=[]).push(e)}else c!==null&&R<c.length&&(lt(e,R),c.length=R);if(Zt()&&F!==null&&!Y&&c!==null&&(e.f&(k|K|A))===0)for(v=0;v<F.length;v++)qr(F[v],e);return i!==null&&i!==e&&(Ve++,F!==null&&(n===null?n=F:n.push(...F))),(e.f&ie)!==0&&(e.f^=ie),h}catch(m){return er(m)}finally{e.f^=kt,C=t,R=r,F=n,_=i,re=s,ke(o),Y=a,ve=l}}function zn(e,t){let r=t.reactions;if(r!==null){var n=Kr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&k)!==0&&(C===null||!C.includes(t))&&(N(t,K),(t.f&I)!==0&&(t.f^=I,t.f&=~ue),sr(t),lt(t,0))}function lt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)zn(e,r[n])}function He(e){var t=e.f;if((t&X)===0){N(e,E);var r=p,n=ae;p=e,ae=!0;try{(t&J)!==0?Vn(e):mr(e),gr(e);var i=Cr(e);e.teardown=typeof i=="function"?i:null,e.wv=Sr;var s;yt&&yn&&(e.f&A)!==0&&e.deps}finally{ae=n,p=r}}}function d(e){var t=e.f,r=(t&k)!==0;if(_!==null&&!Y){var n=p!==null&&(p.f&X)!==0;if(!n&&!re?.includes(e)){var i=_.deps;if((_.f&kt)!==0)e.rv<Ve&&(e.rv=Ve,C===null&&i!==null&&i[R]===e?R++:C===null?C=[e]:C.includes(e)||C.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:s.includes(_)||s.push(_)}}}if(he){if(oe.has(e))return oe.get(e);if(r){var o=e,a=o.v;return((o.f&E)===0&&o.reactions!==null||Or(o))&&(a=Ct(o)),oe.set(o,a),a}}else r&&!L?.has(e)&&(o=e,Be(o)&&or(o),ae&&ot()&&(o.f&I)===0&&Ar(o));if(L?.has(e))return L.get(e);if((e.f&ie)!==0)throw e.v;return e.v}function Ar(e){if(e.deps!==null){e.f^=I;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&k)!==0&&(t.f&I)===0&&Ar(t)}}function Or(e){if(e.v===x)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(oe.has(t)||(t.f&k)!==0&&Or(t))return!0;return!1}function Wn(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const Jn=-7169;function N(e,t){e.f=e.f&Jn|t}const Gn=new Set,Dr=new Set;function Kn(e,t,r,n={}){function i(s){if(n.capture||Ue.call(t,s),!s.cancelBubble)return Dt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Qe(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function ft(e,t,r,n,i){var s={capture:n,passive:i},o=Kn(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&hr(()=>{t.removeEventListener(e,o,s)})}let Rr=null;function Ue(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Rr=e;var o=0,a=Rr===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){Ge(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=_,h=p;T(null),j(null);try{for(var c,v=[];s!==null;){var m=s.assignedSlot||s.parentNode||s.host||null;try{var q=s["__"+n];q!=null&&(!s.disabled||e.target===s)&&q.call(s,e)}catch(z){c?v.push(z):c=z}if(e.cancelBubble||m===t||m===null)break;s=m}if(c){for(let z of v)queueMicrotask(()=>{throw z});throw c}}finally{e.__root=t,delete e.currentTarget,T(u),j(h)}}}function Xn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function qe(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function ut(e,t){var r=(t&zr)!==0,n=(t&Wr)!==0,i,s=!e.startsWith("<!>");return()=>{if(g)return qe(y,null),y;i===void 0&&(i=Xn(s?e:"<!>"+e),r||(i=Se(i)));var o=n||ur?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Se(o),l=o.lastChild;qe(a,l)}else qe(o,o);return o}}function Zn(){if(g)return qe(y,null),y;var e=document.createDocumentFragment(),t=document.createComment(""),r=Q();return e.append(t,r),qe(t,r),e}function Ce(e,t){if(g){var r=p;((r.f&Xe)===0||r.nodes_end===null)&&(r.nodes_end=y),Tt();return}e!==null&&e.before(t)}const Qn=["touchstart","touchmove"];function ei(e){return Qn.includes(e)}function ti(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Mr(e,t){return Lr(e,t)}function ri(e,t){Ot(),t.intro=t.intro??!1;const r=t.target,n=g,i=y;try{for(var s=Se(r);s&&(s.nodeType!==Re||s.data!==Vt);)s=ee(s);if(!s)throw ge;se(!0),V(s);const o=Lr(e,{...t,anchor:s});return se(!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&&un(),Ot(),Dn(r),se(!1),Mr(e,t)}finally{se(n),V(i)}}const Ae=new Map;function Lr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){Ot();var a=new Set,l=h=>{for(var c=0;c<h.length;c++){var v=h[c];if(!a.has(v)){a.add(v);var m=ei(v);t.addEventListener(v,Ue,{passive:m});var q=Ae.get(v);q===void 0?(document.addEventListener(v,Ue,{passive:m}),Ae.set(v,1)):Ae.set(v,q+1)}}};l(Xr(Gn)),Dr.add(l);var f=void 0,u=jn(()=>{var h=r??t.appendChild(Q());return En(h,{pending:()=>{}},c=>{if(s){Kt({});var v=M;v.c=s}if(i&&(n.$$events=i),g&&qe(c,null),f=e(c,n)||{},g&&(p.nodes_end=y,y===null||y.nodeType!==Re||y.data!==Bt))throw Ze(),ge;s&&Xt()}),()=>{for(var c of a){t.removeEventListener(c,Ue);var v=Ae.get(c);--v===0?(document.removeEventListener(c,Ue),Ae.delete(c)):Ae.set(c,v)}Dr.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return Rt.set(f,u),f}let Rt=new WeakMap;function ni(e,t){const r=Rt.get(e);return r?(Rt.delete(e),r(t)):Promise.resolve()}class ii{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,r=!0){this.anchor=t,this.#l=r}#s=()=>{var t=$;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Un(n),this.#n.delete(r);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===t)break;const a=this.#r.get(o);a&&(O(a.effect),this.#r.delete(o))}for(const[s,o]of this.#e){if(s===r||this.#n.has(s))continue;const a=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();kr(o,f),f.append(Q()),this.#r.set(s,{effect:o,fragment:f})}else O(o);this.#n.delete(s),this.#e.delete(s)};this.#l||!n?(this.#n.add(s),Ie(o,a,!1)):a()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(O(i.effect),this.#r.delete(n))};ensure(t,r){var n=$,i=Rn();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),o=Q();s.append(o),this.#r.set(t,{effect:te(()=>r(o)),fragment:s})}else this.#e.set(t,te(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[a,l]of this.#e)a===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[a,l]of this.#r)a===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else g&&(this.anchor=y),this.#s()}}function ct(e,t,r=!1){g&&Tt();var n=new ii(e),i=r?ye:0;function s(o,a){if(g){const f=pn(e)===mt;if(o===f){var l=Jt();V(l),n.anchor=l,se(!1),n.ensure(o,a),se(!0);return}}n.ensure(o,a)}pr(()=>{var o=!1;t((a,l=!0)=>{o=!0,s(l,a)}),o||s(!1,null)},i)}function si(e,t){Fn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function oi(e,t,r){var n=e==null?"":""+e;return t&&(n=n?n+" "+t:t),n===""?null:n}function ai(e,t){return e==null?null:String(e)}function Ye(e,t,r,n,i,s){var o=e.__className;if(g||o!==r||o===void 0){var a=oi(r,n);(!g||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return s}function dt(e,t,r,n){var i=e.__style;if(g||i!==t){var s=ai(t);(!g||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const li=Symbol("is custom element"),fi=Symbol("is html");function ui(e,t,r,n){var i=ci(e);g&&(i[t]=e.getAttribute(t)),i[t]!==(i[t]=r)&&(r==null?e.removeAttribute(t):typeof r!="string"&&Pr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ht(e,t,r){var n=_,i=p;let s=g;g&&se(!1),T(null),j(null);try{t!=="style"&&(Mt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Pr(e).includes(t):r&&typeof r=="object")?e[t]=r:ui(e,t,r==null?r:String(r))}finally{T(n),j(i),s&&se(!0)}}function ci(e){return e.__attributes??={[li]:e.nodeName.includes("-"),[fi]:e.namespaceURI===Jr}}var Mt=new Map;function Pr(e){var t=e.getAttribute("is")||e.nodeName,r=Mt.get(t);if(r)return r;Mt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Zr(i);for(var o in n)n[o].set&&r.push(o);i=Ht(i)}return r}function Lt(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var f=!1,u=qt(()=>(f=!1,l())),h=p;return(function(c,v){if(arguments.length>0){const m=v?d(u):c;return w(u,m),f=!0,i!==void 0&&(i=m),c}return he&&f||(h.f&X)!==0?u.v:d(u)})}function di(e){return new hi(e)}class hi{#t;#e;constructor(t){var r=new Map,n=(s,o)=>{var a=An(o,!1,!1);return r.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return d(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===nn?!0:(d(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,a){return w(r.get(o)??n(o,a),a),Reflect.set(s,o,a)}});this.#e=(t.hydrate?ri:Mr)(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)&&rt(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ge(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=()=>{ni(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let jr;typeof HTMLElement=="function"&&(jr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),Ce(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=vi(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=vt(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=di({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Pn(()=>{_r(()=>{this.$$r=!0;for(const n of Je(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=vt(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=vt(e,r,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 Je(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function vt(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 vi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function bi(e,t,r,n,i,s){let o=class extends jr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Je(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Je(t).forEach(a=>{Ge(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=vt(a,l,t),this.$$d[a]=l;var f=this.$$c;if(f){var u=me(f,a)?.get;u?f[a]=l:f.$set({[a]:l})}}})}),n.forEach(a=>{Ge(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}var be={},Fr;function _i(){if(Fr)return be;Fr=1,Object.defineProperty(be,"__esModule",{value:!0}),be.LanguageTranslator=void 0,be.getChildStyleToPass=e,be.addComponent=t;function e(n,i){var s,o,a="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||o===void 0)&&o.length))for(var l=function(c){var v=i?.filter(function(m){return m.name===c&&m.defaultValue!==n[c]});v&&(a+="".concat(c,":").concat(n[c],";"))},f=0,u=Object.keys(n);f<u.length;f++){var h=u[f];l(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return a}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var o=n?.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(n.repoName,"@").concat(n.version,"/").concat(o),n?.local)a.src="".concat(n.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 r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,o){return n.formatDate(i,s,o||this.lang)},n.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},n.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=n.getDefaultLang();if(!o||f!==o){var u=s?.[f];u?.[i]&&(l=u[i])}return l},n.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||n.getDefaultLang(),s);return a.format(i)},n})();return be.LanguageTranslator=r,be}var Ir=_i();const Vr={version:"0.65.3"};var pi=ut(': <div class="input svelte-1x2sq1k"><hb-input-number></hb-input-number></div>',3),gi=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>'),yi=ut("<div><!></div> <!>",1);const wi={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");
2
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==ge&&console.warn("Failed to hydrate: ",o),t.recover===!1&&un(),Ot(),Dn(r),se(!1),Mr(e,t)}finally{se(n),V(i)}}const Ae=new Map;function Lr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){Ot();var a=new Set,l=h=>{for(var c=0;c<h.length;c++){var v=h[c];if(!a.has(v)){a.add(v);var m=ei(v);t.addEventListener(v,Ue,{passive:m});var q=Ae.get(v);q===void 0?(document.addEventListener(v,Ue,{passive:m}),Ae.set(v,1)):Ae.set(v,q+1)}}};l(Xr(Gn)),Dr.add(l);var f=void 0,u=jn(()=>{var h=r??t.appendChild(Q());return En(h,{pending:()=>{}},c=>{if(s){Kt({});var v=M;v.c=s}if(i&&(n.$$events=i),g&&qe(c,null),f=e(c,n)||{},g&&(p.nodes_end=y,y===null||y.nodeType!==Re||y.data!==Bt))throw Ze(),ge;s&&Xt()}),()=>{for(var c of a){t.removeEventListener(c,Ue);var v=Ae.get(c);--v===0?(document.removeEventListener(c,Ue),Ae.delete(c)):Ae.set(c,v)}Dr.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return Rt.set(f,u),f}let Rt=new WeakMap;function ni(e,t){const r=Rt.get(e);return r?(Rt.delete(e),r(t)):Promise.resolve()}class ii{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,r=!0){this.anchor=t,this.#l=r}#s=()=>{var t=$;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Un(n),this.#n.delete(r);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===t)break;const a=this.#r.get(o);a&&(O(a.effect),this.#r.delete(o))}for(const[s,o]of this.#e){if(s===r||this.#n.has(s))continue;const a=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();kr(o,f),f.append(Q()),this.#r.set(s,{effect:o,fragment:f})}else O(o);this.#n.delete(s),this.#e.delete(s)};this.#l||!n?(this.#n.add(s),Ie(o,a,!1)):a()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(O(i.effect),this.#r.delete(n))};ensure(t,r){var n=$,i=Rn();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),o=Q();s.append(o),this.#r.set(t,{effect:te(()=>r(o)),fragment:s})}else this.#e.set(t,te(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[a,l]of this.#e)a===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[a,l]of this.#r)a===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else g&&(this.anchor=y),this.#s()}}function ct(e,t,r=!1){g&&Tt();var n=new ii(e),i=r?ye:0;function s(o,a){if(g){const f=pn(e)===mt;if(o===f){var l=Jt();V(l),n.anchor=l,se(!1),n.ensure(o,a),se(!0);return}}n.ensure(o,a)}pr(()=>{var o=!1;t((a,l=!0)=>{o=!0,s(l,a)}),o||s(!1,null)},i)}function si(e,t){Fn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function oi(e,t,r){var n=e==null?"":""+e;return t&&(n=n?n+" "+t:t),n===""?null:n}function ai(e,t){return e==null?null:String(e)}function Ye(e,t,r,n,i,s){var o=e.__className;if(g||o!==r||o===void 0){var a=oi(r,n);(!g||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return s}function dt(e,t,r,n){var i=e.__style;if(g||i!==t){var s=ai(t);(!g||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const li=Symbol("is custom element"),fi=Symbol("is html");function ui(e,t,r,n){var i=ci(e);g&&(i[t]=e.getAttribute(t)),i[t]!==(i[t]=r)&&(r==null?e.removeAttribute(t):typeof r!="string"&&Pr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ht(e,t,r){var n=_,i=p;let s=g;g&&se(!1),T(null),j(null);try{t!=="style"&&(Mt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Pr(e).includes(t):r&&typeof r=="object")?e[t]=r:ui(e,t,r==null?r:String(r))}finally{T(n),j(i),s&&se(!0)}}function ci(e){return e.__attributes??={[li]:e.nodeName.includes("-"),[fi]:e.namespaceURI===Jr}}var Mt=new Map;function Pr(e){var t=e.getAttribute("is")||e.nodeName,r=Mt.get(t);if(r)return r;Mt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Zr(i);for(var o in n)n[o].set&&r.push(o);i=Ht(i)}return r}function Lt(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var f=!1,u=qt(()=>(f=!1,l())),h=p;return(function(c,v){if(arguments.length>0){const m=v?d(u):c;return w(u,m),f=!0,i!==void 0&&(i=m),c}return he&&f||(h.f&X)!==0?u.v:d(u)})}function di(e){return new hi(e)}class hi{#t;#e;constructor(t){var r=new Map,n=(s,o)=>{var a=An(o,!1,!1);return r.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return d(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===nn?!0:(d(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,a){return w(r.get(o)??n(o,a),a),Reflect.set(s,o,a)}});this.#e=(t.hydrate?ri:Mr)(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)&&rt(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ge(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=()=>{ni(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let jr;typeof HTMLElement=="function"&&(jr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),Ce(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=vi(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=vt(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=di({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Pn(()=>{_r(()=>{this.$$r=!0;for(const n of Je(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=vt(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=vt(e,r,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 Je(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function vt(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 vi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function bi(e,t,r,n,i,s){let o=class extends jr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Je(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Je(t).forEach(a=>{Ge(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=vt(a,l,t),this.$$d[a]=l;var f=this.$$c;if(f){var u=me(f,a)?.get;u?f[a]=l:f.$set({[a]:l})}}})}),n.forEach(a=>{Ge(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}var be={},Fr;function _i(){if(Fr)return be;Fr=1,Object.defineProperty(be,"__esModule",{value:!0}),be.LanguageTranslator=void 0,be.getChildStyleToPass=e,be.addComponent=t;function e(n,i){var s,o,a="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||o===void 0)&&o.length))for(var l=function(c){var v=i?.filter(function(m){return m.name===c&&m.defaultValue!==n[c]});v&&(a+="".concat(c,":").concat(n[c],";"))},f=0,u=Object.keys(n);f<u.length;f++){var h=u[f];l(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return a}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var o=n?.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(n.repoName,"@").concat(n.version,"/").concat(o),n?.local)a.src="".concat(n.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 r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,o){return n.formatDate(i,s,o||this.lang)},n.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},n.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=n.getDefaultLang();if(!o||f!==o){var u=s?.[f];u?.[i]&&(l=u[i])}return l},n.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||n.getDefaultLang(),s);return a.format(i)},n})();return be.LanguageTranslator=r,be}var Ir=_i();const Vr={version:"0.65.5"};var pi=ut(': <div class="input svelte-1x2sq1k"><hb-input-number></hb-input-number></div>',3),gi=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>'),yi=ut("<div><!></div> <!>",1);const wi={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
package/manifest.json CHANGED
@@ -277,5 +277,5 @@
277
277
  "size": {},
278
278
  "iifePath": "main.iife.js",
279
279
  "repoName": "@htmlbricks/hb-input-datetime",
280
- "version": "0.65.3"
280
+ "version": "0.65.5"
281
281
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-input-datetime",
3
- "version": "0.65.3",
3
+ "version": "0.65.5",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [