@htmlbricks/hb-input-datetime 0.61.57 → 0.62.0
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 +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(jt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const zr=1,Wr=2,Ft="[",gt="[!",It="]",pe={},k=Symbol(),Jr="http://www.w3.org/1999/xhtml",Vt=!1;var Gr=Array.isArray,Kr=Array.prototype.indexOf,Xr=Array.from,Je=Object.keys,Ge=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,Zr=Object.getOwnPropertyDescriptors,Qr=Object.prototype,en=Array.prototype,Bt=Object.getPrototypeOf,Ht=Object.isExtensible;function tn(e){for(var t=0;t<e.length;t++)e[t]()}function Ut(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const x=2,Ke=4,mt=8,J=16,G=32,re=64,Xe=128,F=512,E=1024,A=2048,K=4096,B=8192,ne=16384,yt=32768,me=65536,Yt=1<<17,zt=1<<18,le=1<<19,rn=1<<20,De=32768,wt=1<<21,$t=1<<22,ie=1<<23,kt=Symbol("$state"),nn=Symbol("legacy props"),ye=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},xt=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 I(e){if(e===null)throw Ze(),pe;return y=e}function Et(){return I(Q(y))}function we(e){if(g){if(Q(y)!==null)throw Ze(),pe;y=e}}function _n(e=1){if(g){for(var t=e,r=y;t--;)r=Q(r);y=r}}function Wt(e=!0){for(var t=0,r=y;;){if(r.nodeType===Re){var n=r.data;if(n===It){if(t===0)return r;t-=1}else(n===Ft||n===gt)&&(t+=1)}var i=Q(r);e&&r.remove(),r=i}}function pn(e){if(!e||e.nodeType!==Re)throw Ze(),pe;return e.data}function Jt(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,L=null;function $e(e){L=e}function Gt(e,t=!1,r){L={p:L,i:!1,c:null,e:null,s:e,x:null,l:null}}function Kt(e){var t=L,r=t.e;if(r!==null){t.e=null;for(var n of r)vr(n)}return e!==void 0&&(t.x=e),t.i=!0,L=t.p,e??{}}function Xt(){return!0}let fe=[];function Zt(){var e=fe;fe=[],tn(e)}function Qe(e){if(fe.length===0&&!Me){var t=fe;queueMicrotask(()=>{t===fe&&Zt()})}fe.push(e)}function wn(){for(;fe.length>0;)Zt()}function Qt(e){var t=p;if(t===null)return _.f|=ie,e;if((t.f&yt)===0){if((t.f&Xe)===0)throw e;t.b.error(e)}else ke(e,t)}function ke(e,t){for(;t!==null;){if((t.f&Xe)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const et=new Set;let $=null,R=null,H=[],tt=null,St=!1,Me=!1;class V{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#o=[];#a=[];skipped_effects=new Set;is_fork=!1;process(t){H=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#i(n,r);this.is_fork||this.#f(),this.#n>0||this.is_fork?(this.#s(r.effects),this.#s(r.render_effects),this.#s(r.block_effects)):($=null,tr(r.render_effects),tr(r.effects),this.#l?.resolve()),R=null}#i(t,r){t.f^=E;for(var n=t.first;n!==null;){var i=n.f,s=(i&(G|re))!==0,o=s&&(i&E)!==0,a=o||(i&B)!==0||this.skipped_effects.has(n);if((n.f&Xe)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){s?n.f^=E:(i&Ke)!==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.#s(r.effects),this.#s(r.render_effects),this.#s(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#s(t){for(const r of t)((r.f&A)!==0?this.#o:this.#a).push(r),N(r,E)}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&ie)===0&&(this.current.set(t,t.v),R?.set(t,t.v))}activate(){$=this,this.apply()}deactivate(){$=null,R=null}flush(){if(this.activate(),H.length>0){if(er(),$!==null&&$!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#u()}#u(){if(et.size>1){this.previous.clear();var t=R,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of et){if(i===this){r=!1;continue}const s=[];for(const[a,l]of this.current){if(i.current.has(a))if(r&&l!==i.current.get(a))i.current.set(a,l);else continue;s.push(a)}if(s.length===0)continue;const o=[...i.current.keys()].filter(a=>!this.current.has(a));if(o.length>0){const a=new Set,l=new Map;for(const f of s)rr(f,o,a,l);if(H.length>0){$=i,i.apply();for(const f of H)i.#i(f,n);H=[],i.deactivate()}}}$=null,R=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.#o)N(t,A),ue(t);for(const t of this.#a)N(t,K),ue(t);this.#o=[],this.#a=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=Ut()).promise}static ensure(){if($===null){const t=$=new V;et.add($),Me||V.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(),H.length===0&&($?.flush(),H.length===0))return tt=null,r;er()}}finally{Me=t}}function er(){var e=ce;St=!0;try{var t=0;for(kr(!0);H.length>0;){var r=V.ensure();if(t++>1e3){var n,i;$n()}r.process(H),oe.clear()}}finally{St=!1,kr(e),tt=null}}function $n(){try{fn()}catch(e){ke(e,tt)}}let X=null;function tr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ne|B))===0&&Be(n)&&(X=new Set,He(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?mr(n):n.fn=null),X?.size>0)){oe.clear();for(const i of X){if((i.f&(ne|B))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)X.has(o)&&(X.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const l=s[a];(l.f&(ne|B))===0&&He(l)}}X.clear()}}X=null}}function rr(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&x)!==0?rr(i,t,r,n):(s&($t|J))!==0&&(s&A)===0&&nr(i,t,n)&&(N(i,A),ue(i))}}function nr(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&x)!==0&&nr(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function ue(e){for(var t=tt=e;t.parent!==null;){t=t.parent;var r=t.f;if(St&&t===p&&(r&J)!==0&&(r&zt)===0)return;if((r&(re|G))!==0){if((r&E)===0)return;t.f^=E}}H.push(t)}function kn(e){let t=0,r=Pe(0),n;return()=>{ot()&&(d(r),br(()=>(t===0&&(n=Wn(()=>e(()=>je(r)))),t+=1,()=>{Qe(()=>{t-=1,t===0&&(n?.(),n=void 0,je(r))})})))}}var xn=me|le|Xe;function En(e,t,r){new Sn(e,t,r)}class Sn{parent;#t=!1;#e;#r=g?y:null;#n;#l;#o;#a=null;#i=null;#s=null;#f=null;#u=null;#h=0;#c=0;#v=!1;#d=null;#m=kn(()=>(this.#d=Pe(this.#h),()=>{this.#d=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=p.b,this.#t=!!this.#n.pending,this.#o=_r(()=>{if(p.b=this,g){const s=this.#r;Et(),s.nodeType===Re&&s.data===gt?this.#w():this.#y()}else{var i=this.#p();try{this.#a=ee(()=>n(i))}catch(s){this.error(s)}this.#c>0?this.#_():this.#t=!1}return()=>{this.#u?.remove()}},xn),g&&(this.#e=y)}#y(){try{this.#a=ee(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#n.pending;t&&(this.#i=ee(()=>t(this.#e)),V.enqueue(()=>{var r=this.#p();this.#a=this.#b(()=>(V.ensure(),ee(()=>this.#l(r)))),this.#c>0?this.#_():(Ie(this.#i,()=>{this.#i=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=Z(),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=L;P(this.#o),T(this.#o),$e(this.#o.ctx);try{return t()}catch(s){return Qt(s),null}finally{P(r),T(n),$e(i)}}#_(){const t=this.#n.pending;this.#a!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),$r(this.#a,this.#f)),this.#i===null&&(this.#i=ee(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#i&&Ie(this.#i,()=>{this.#i=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#h+=t,this.#d&&it(this.#d,this.#h)}get_effect_pending(){return this.#m(),d(this.#d)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)throw t;this.#a&&(O(this.#a),this.#a=null),this.#i&&(O(this.#i),this.#i=null),this.#s&&(O(this.#s),this.#s=null),g&&(I(this.#r),_n(),I(Wt()));var i=!1,s=!1;const o=()=>{if(i){bn();return}i=!0,s&&vn(),V.ensure(),this.#h=0,this.#s!==null&&Ie(this.#s,()=>{this.#s=null}),this.#t=this.has_pending_snippet(),this.#a=this.#b(()=>(this.#v=!1,ee(()=>this.#l(this.#e)))),this.#c>0?this.#_():this.#t=!1};var a=_;try{T(null),s=!0,r?.(t,o),s=!1}catch(l){ke(l,this.#o&&this.#o.parent)}finally{T(a)}n&&Qe(()=>{this.#s=this.#b(()=>{V.ensure(),this.#v=!0;try{return ee(()=>{n(this.#e,()=>t,()=>o)})}catch(l){return ke(l,this.#o.parent),null}finally{this.#v=!1}})})}}function Tn(e,t,r,n){const i=Tt;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(c){(o.f&ne)===0&&ke(c,o)}s?.deactivate(),nt()}).catch(f=>{ke(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=L,n=$;return function(s=!0){P(e),T(t),$e(r),s&&n?.activate()}}function nt(){P(null),T(null),$e(null)}function Tt(e){var t=x|A,r=_!==null&&(_.f&x)!==0?_:null;return p!==null&&(p.f|=le),{ctx:L,deps:null,effects:null,equals:Jt,f:t,fn:e,reactions:null,rv:0,v:k,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(k),o=!_,a=new Map;return In(()=>{var l=Ut();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=!n.is_pending();n.update_pending_count(1),f.increment(c),a.get(f)?.reject(ye),a.delete(f),a.set(f,l)}const h=(u,v=void 0)=>{if(f.activate(),v)v!==ye&&(s.f|=ie,it(s,v));else{(s.f&ie)!==0&&(s.f^=ie),it(s,u);for(const[m,q]of a){if(a.delete(m),m===f)break;q.reject(ye)}}o&&(n.update_pending_count(-1),f.decrement(c))};l.promise.then(h,u=>h(null,u||"unknown"))}),dr(()=>{for(const l of a.values())l.reject(ye)}),new Promise(l=>{function f(c){function h(){c===i?l(s):f(i)}c.then(h,h)}f(i)})}function Le(e){const t=Tt(e);return Er(t),t}function ir(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&x)===0)return t;t=t.parent}return null}function Nt(e){var t,r=p;P(Cn(e));try{e.f&=~De,ir(e),t=Cr(e)}finally{P(r)}return t}function sr(e){var t=Nt(e);if(e.equals(t)||(e.v=t,e.wv=Nr()),!de)if(R!==null)ot()&&R.set(e,e.v);else{var r=(e.f&F)===0?K:E;N(e,r)}}let qt=new Set;const oe=new Map;let or=!1;function Pe(e,t){var r={f:0,v:e,reactions:null,equals:Jt,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&Yt)!==0)&&Xt()&&(_.f&(x|J|$t|Yt))!==0&&!te?.includes(e)&&hn();let n=r?xe(t):t;return it(e,n)}function it(e,t){if(!e.equals(t)){var r=e.v;de?oe.set(e,t):oe.set(e,r),e.v=t;var n=V.ensure();n.capture(e,r),(e.f&x)!==0&&((e.f&A)!==0&&Nt(e),N(e,(e.f&F)!==0?E:K)),e.wv=Nr(),ar(e,A),p!==null&&(p.f&E)!==0&&(p.f&(G|re))===0&&(j===null?Yn([e]):j.push(e)),!n.is_fork&&qt.size>0&&!or&&On()}return t}function On(){or=!1;const e=Array.from(qt);for(const t of e)(t.f&E)!==0&&N(t,K),Be(t)&&He(t);qt.clear()}function je(e){w(e,e.v+1)}function ar(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&x)!==0){var l=s;R?.delete(l),(o&De)===0&&(o&F&&(s.f|=De),ar(l,K))}else a&&((o&J)!==0&&X!==null&&X.add(s),ue(s))}}function xe(e){if(typeof e!="object"||e===null||kt in e)return e;const t=Bt(e);if(t!==Qr&&t!==en)return e;var r=new Map,n=Gr(e),i=S(0),s=he,o=a=>{if(he===s)return a();var l=_,f=he;T(null),Tr(s);var c=a();return T(l),Tr(f),c};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 c=r.get(l);return c===void 0?c=o(()=>{var h=S(f.value);return r.set(l,h),h}):w(c,f.value,!0),!0},deleteProperty(a,l){var f=r.get(l);if(f===void 0){if(l in a){const c=o(()=>S(k));r.set(l,c),je(i)}}else w(f,k),je(i);return!0},get(a,l,f){if(l===kt)return e;var c=r.get(l),h=l in a;if(c===void 0&&(!h||ge(a,l)?.writable)&&(c=o(()=>{var v=xe(h?a[l]:k),m=S(v);return m}),r.set(l,c)),c!==void 0){var u=d(c);return u===k?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=r.get(l);c&&(f.value=d(c))}else if(f===void 0){var h=r.get(l),u=h?.v;if(h!==void 0&&u!==k)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(a,l){if(l===kt)return!0;var f=r.get(l),c=f!==void 0&&f.v!==k||Reflect.has(a,l);if(f!==void 0||p!==null&&(!c||ge(a,l)?.writable)){f===void 0&&(f=o(()=>{var u=c?xe(a[l]):k,v=S(u);return v}),r.set(l,f));var h=d(f);if(h===k)return!1}return c},set(a,l,f,c){var h=r.get(l),u=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,k):v in a&&(m=o(()=>S(k)),r.set(v+"",m))}if(h===void 0)(!u||ge(a,l)?.writable)&&(h=o(()=>S(void 0)),w(h,xe(f)),r.set(l,h));else{u=h.v!==k;var q=o(()=>xe(f));w(h,q)}var z=Reflect.getOwnPropertyDescriptor(a,l);if(z?.set&&z.set.call(c,f),!u){if(n&&typeof l=="string"){var ze=r.get("length"),ae=Number(l);Number.isInteger(ae)&&ae>=ze.v&&w(ze,ae+1)}je(i)}return!0},ownKeys(a){d(i);var l=Reflect.ownKeys(a).filter(h=>{var u=r.get(h);return u===void 0||u.v!==k});for(var[f,c]of r)c.v!==k&&!(f in a)&&l.push(f);return l},setPrototypeOf(){dn()}})}var lr,fr,ur,cr;function Ct(){if(lr===void 0){lr=window,fr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;ur=ge(t,"firstChild").get,cr=ge(t,"nextSibling").get,Ht(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ht(r)&&(r.__t=void 0)}}function Z(e=""){return document.createTextNode(e)}function Ee(e){return ur.call(e)}function Q(e){return cr.call(e)}function Se(e,t){if(!g)return Ee(e);var r=Ee(y);if(r===null)r=y.appendChild(Z());else if(t&&r.nodeType!==xt){var n=Z();return r?.before(n),I(n),n}return I(r),r}function st(e,t=!1){if(!g){var r=Ee(e);return r instanceof Comment&&r.data===""?Q(r):r}if(t&&y?.nodeType!==xt){var n=Z();return y?.before(n),I(n),n}return y}function Fe(e,t=1,r=!1){let n=g?y:e;for(var i;t--;)i=n,n=Q(n);if(!g)return n;if(r&&n?.nodeType!==xt){var s=Z();return n===null?i?.after(s):n.before(s),I(s),s}return I(n),n}function Dn(e){e.textContent=""}function Rn(){return!1}function At(e){var t=_,r=p;T(null),P(null);try{return e()}finally{T(t),P(r)}}function Mn(e){p===null&&(_===null&&ln(),an()),de&&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,n=!0){var i=p;i!==null&&(i.f&B)!==0&&(e|=B);var s={ctx:L,deps:null,nodes_start:null,nodes_end:null,f:e|A|F,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{He(s),s.f|=yt}catch(l){throw O(s),l}else t!==null&&ue(s);if(n){var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&le)===0&&(o=o.first,(e&J)!==0&&(e&me)!==0&&o!==null&&(o.f|=me)),o!==null&&(o.parent=i,i!==null&&Ln(o,i),_!==null&&(_.f&x)!==0&&(e&re)===0)){var a=_;(a.effects??=[]).push(o)}}return s}function ot(){return _!==null&&!Y}function dr(e){const t=U(mt,null,!1);return N(t,E),t.teardown=e,t}function hr(e){Mn();var t=p.f,r=!_&&(t&G)!==0&&(t&yt)===0;if(r){var n=L;(n.e??=[]).push(e)}else return vr(e)}function vr(e){return U(Ke|rn,e,!1)}function Pn(e){V.ensure();const t=U(re|le,e,!0);return()=>{O(t)}}function jn(e){V.ensure();const t=U(re|le,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(Ke,e,!1)}function In(e){return U($t|le,e,!0)}function br(e,t=0){return U(mt|t,e,!0)}function Te(e,t=[],r=[],n=[],i=!1){Tn(n,t,r,s=>{U(i?Ke:mt,()=>e(...s.map(d)),!0)})}function _r(e,t=0){var r=U(J|t,e,!0);return r}function ee(e,t=!0){return U(G|le,e,!0,t)}function pr(e){var t=e.teardown;if(t!==null){const r=de,n=_;xr(!0),T(null);try{t.call(null)}finally{xr(r),T(n)}}}function gr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&At(()=>{i.abort(ye)});var n=r.next;(r.f&re)!==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&zt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Bn(e.nodes_start,e.nodes_end),r=!0),gr(e,t&&!r),at(e,0),N(e,ne);var n=e.transitions;if(n!==null)for(const s of n)s.stop();pr(e);var i=e.parent;i!==null&&i.first!==null&&mr(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:Q(e);e.remove(),e=r}}function mr(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=[];yr(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 yr(e,t,r){if((e.f&B)===0){if(e.f^=B,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&me)!==0||(n.f&G)!==0&&(e.f&J)!==0;yr(n,t,s?r:!1),n=i}}}function Un(e){wr(e,!0)}function wr(e,t){if((e.f&B)!==0){e.f^=B,(e.f&E)===0&&(N(e,A),ue(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&me)!==0||(r.f&G)!==0;wr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function $r(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:Q(r);t.append(r),r=i}}let ce=!1;function kr(e){ce=e}let de=!1;function xr(e){de=e}let _=null,Y=!1;function T(e){_=e}let p=null;function P(e){p=e}let te=null;function Er(e){_!==null&&(te===null?te=[e]:te.push(e))}let C=null,M=0,j=null;function Yn(e){j=e}let Sr=1,Ve=0,he=Ve;function Tr(e){he=e}function Nr(){return++Sr}function Be(e){var t=e.f;if((t&A)!==0)return!0;if(t&x&&(e.f&=~De),(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)&&sr(s),s.wv>e.wv)return!0}(t&F)!==0&&R===null&&N(e,E)}return!1}function qr(e,t,r=!0){var n=e.reactions;if(n!==null&&!te?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&x)!==0?qr(s,t,!1):t===s&&(r?N(s,A):(s.f&E)!==0&&N(s,K),ue(s))}}function Cr(e){var t=C,r=M,n=j,i=_,s=te,o=L,a=Y,l=he,f=e.f;C=null,M=0,j=null,_=(f&(G|re))===0?e:null,te=null,$e(e.ctx),Y=!1,he=++Ve,e.ac!==null&&(At(()=>{e.ac.abort(ye)}),e.ac=null);try{e.f|=wt;var c=e.fn,h=c(),u=e.deps;if(C!==null){var v;if(at(e,M),u!==null&&M>0)for(u.length=M+C.length,v=0;v<C.length;v++)u[M+v]=C[v];else e.deps=u=C;if(ce&&ot()&&(e.f&F)!==0)for(v=M;v<u.length;v++)(u[v].reactions??=[]).push(e)}else u!==null&&M<u.length&&(at(e,M),u.length=M);if(Xt()&&j!==null&&!Y&&u!==null&&(e.f&(x|K|A))===0)for(v=0;v<j.length;v++)qr(j[v],e);return i!==null&&i!==e&&(Ve++,j!==null&&(n===null?n=j:n.push(...j))),(e.f&ie)!==0&&(e.f^=ie),h}catch(m){return Qt(m)}finally{e.f^=wt,C=t,M=r,j=n,_=i,te=s,$e(o),Y=a,he=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&x)!==0&&(C===null||!C.includes(t))&&(N(t,K),(t.f&F)!==0&&(t.f^=F,t.f&=~De),ir(t),at(t,0))}function at(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&ne)===0){N(e,E);var r=p,n=ce;p=e,ce=!0;try{(t&J)!==0?Vn(e):gr(e),pr(e);var i=Cr(e);e.teardown=typeof i=="function"?i:null,e.wv=Sr;var s;Vt&&yn&&(e.f&A)!==0&&e.deps}finally{ce=n,p=r}}}function d(e){var t=e.f,r=(t&x)!==0;if(_!==null&&!Y){var n=p!==null&&(p.f&ne)!==0;if(!n&&!te?.includes(e)){var i=_.deps;if((_.f&wt)!==0)e.rv<Ve&&(e.rv=Ve,C===null&&i!==null&&i[M]===e?M++: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(de){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=Nt(o)),oe.set(o,a),a}}else if(r){if(o=e,R?.has(o))return R.get(o);Be(o)&&sr(o),ce&&ot()&&(o.f&F)===0&&Ar(o)}else if(R?.has(e))return R.get(e);if((e.f&ie)!==0)throw e.v;return e.v}function Ar(e){if(e.deps!==null){e.f^=F;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&x)!==0&&(t.f&F)===0&&Ar(t)}}function Or(e){if(e.v===k)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(oe.has(t)||(t.f&x)!==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 At(()=>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 lt(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)&&dr(()=>{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 c=_,h=p;T(null),P(null);try{for(var u,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){u?v.push(z):u=z}if(e.cancelBubble||m===t||m===null)break;s=m}if(u){for(let z of v)queueMicrotask(()=>{throw z});throw u}}finally{e.__root=t,delete e.currentTarget,T(c),P(h)}}}function Xn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ne(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function ft(e,t){var r=(t&zr)!==0,n=(t&Wr)!==0,i,s=!e.startsWith("<!>");return()=>{if(g)return Ne(y,null),y;i===void 0&&(i=Xn(s?e:"<!>"+e),r||(i=Ee(i)));var o=n||fr?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Ee(o),l=o.lastChild;Ne(a,l)}else Ne(o,o);return o}}function Zn(){if(g)return Ne(y,null),y;var e=document.createDocumentFragment(),t=document.createComment(""),r=Z();return e.append(t,r),Ne(t,r),e}function qe(e,t){if(g){p.nodes_end=y,Et();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){Ct(),t.intro=t.intro??!1;const r=t.target,n=g,i=y;try{for(var s=Ee(r);s&&(s.nodeType!==Re||s.data!==Ft);)s=Q(s);if(!s)throw pe;se(!0),I(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!==pe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&un(),Ct(),Dn(r),se(!1),Mr(e,t)}finally{se(n),I(i)}}const Ce=new Map;function Lr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){Ct();var a=new Set,l=h=>{for(var u=0;u<h.length;u++){var v=h[u];if(!a.has(v)){a.add(v);var m=ei(v);t.addEventListener(v,Ue,{passive:m});var q=Ce.get(v);q===void 0?(document.addEventListener(v,Ue,{passive:m}),Ce.set(v,1)):Ce.set(v,q+1)}}};l(Xr(Gn)),Dr.add(l);var f=void 0,c=jn(()=>{var h=r??t.appendChild(Z());return En(h,{pending:()=>{}},u=>{if(s){Gt({});var v=L;v.c=s}if(i&&(n.$$events=i),g&&Ne(u,null),f=e(u,n)||{},g&&(p.nodes_end=y,y===null||y.nodeType!==Re||y.data!==It))throw Ze(),pe;s&&Kt()}),()=>{for(var u of a){t.removeEventListener(u,Ue);var v=Ce.get(u);--v===0?(document.removeEventListener(u,Ue),Ce.delete(u)):Ce.set(u,v)}Dr.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return Ot.set(f,c),f}let Ot=new WeakMap;function ni(e,t){const r=Ot.get(e);return r?(Ot.delete(e),r(t)):Promise.resolve()}class ii{anchor;#t=new Map;#e=new Map;#r=new Map;#n=!0;constructor(t,r=!0){this.anchor=t,this.#n=r}#l=()=>{var t=$;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Un(n);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)continue;const a=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();$r(o,f),f.append(Z()),this.#r.set(s,{effect:o,fragment:f})}else O(o);this.#e.delete(s)};this.#n||!n?Ie(o,a,!1):a()}}};#o=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=Z();s.append(o),this.#r.set(t,{effect:ee(()=>r(o)),fragment:s})}else this.#e.set(t,ee(()=>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.#l),n.ondiscard(this.#o)}else g&&(this.anchor=y),this.#l()}}function ut(e,t,r=!1){g&&Et();var n=new ii(e),i=r?me:0;function s(o,a){if(g){const f=pn(e)===gt;if(o===f){var l=Wt();I(l),n.anchor=l,se(!1),n.ensure(o,a),se(!0);return}}n.ensure(o,a)}_r(()=>{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 ct(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 dt(e,t,r){var n=_,i=p;let s=g;g&&se(!1),T(null),P(null);try{t!=="style"&&(Dt.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),P(i),s&&se(!0)}}function ci(e){return e.__attributes??={[li]:e.nodeName.includes("-"),[fi]:e.namespaceURI===Jr}}var Dt=new Map;function Pr(e){var t=e.getAttribute("is")||e.nodeName,r=Dt.get(t);if(r)return r;Dt.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=Bt(i)}return r}function Rt(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 u=e[t];return u===void 0?o():(s=!0,u)};var f=!1,c=Tt(()=>(f=!1,l())),h=p;return(function(u,v){if(arguments.length>0){const m=v?d(c):u;return w(c,m),f=!0,i!==void 0&&(i=m),u}return de&&f||(h.f&ne)!==0?c.v:d(c)})}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),qe(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]=ht(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(()=>{br(()=>{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=ht(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]=ht(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 ht(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=ht(a,l,t),this.$$d[a]=l;var f=this.$$c;if(f){var c=ge(f,a)?.get;c?f[a]=l:f.$set({[a]:l})}}})}),n.forEach(a=>{Ge(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}var ve={},Fr;function _i(){if(Fr)return ve;Fr=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.LanguageTranslator=void 0,ve.getChildStyleToPass=e,ve.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(u){return Object.keys(n).includes(u.name)}))===null||o===void 0)&&o.length))for(var l=function(u){var v=i?.filter(function(m){return m.name===u&&m.defaultValue!==n[u]});v&&(a+="".concat(u,":").concat(n[u],";"))},f=0,c=Object.keys(n);f<c.length;f++){var h=c[f];l(h)}}catch(u){console.error("error getting child style to pass",u)}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 c=s?.[f];c?.[i]&&(l=c[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 ve.LanguageTranslator=r,ve}var Ir=_i();const Vr={version:"0.61.57"};var pi=ft(': <div class="input svelte-1x2sq1k"><hb-input-number></hb-input-number></div>',3),gi=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),mi=ft('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-1x2sq1k"> </div>'),yi=ft("<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!==pe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&un(),Ct(),Dn(r),se(!1),Mr(e,t)}finally{se(n),I(i)}}const Ce=new Map;function Lr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){Ct();var a=new Set,l=h=>{for(var u=0;u<h.length;u++){var v=h[u];if(!a.has(v)){a.add(v);var m=ei(v);t.addEventListener(v,Ue,{passive:m});var q=Ce.get(v);q===void 0?(document.addEventListener(v,Ue,{passive:m}),Ce.set(v,1)):Ce.set(v,q+1)}}};l(Xr(Gn)),Dr.add(l);var f=void 0,c=jn(()=>{var h=r??t.appendChild(Z());return En(h,{pending:()=>{}},u=>{if(s){Gt({});var v=L;v.c=s}if(i&&(n.$$events=i),g&&Ne(u,null),f=e(u,n)||{},g&&(p.nodes_end=y,y===null||y.nodeType!==Re||y.data!==It))throw Ze(),pe;s&&Kt()}),()=>{for(var u of a){t.removeEventListener(u,Ue);var v=Ce.get(u);--v===0?(document.removeEventListener(u,Ue),Ce.delete(u)):Ce.set(u,v)}Dr.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return Ot.set(f,c),f}let Ot=new WeakMap;function ni(e,t){const r=Ot.get(e);return r?(Ot.delete(e),r(t)):Promise.resolve()}class ii{anchor;#t=new Map;#e=new Map;#r=new Map;#n=!0;constructor(t,r=!0){this.anchor=t,this.#n=r}#l=()=>{var t=$;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Un(n);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)continue;const a=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();$r(o,f),f.append(Z()),this.#r.set(s,{effect:o,fragment:f})}else O(o);this.#e.delete(s)};this.#n||!n?Ie(o,a,!1):a()}}};#o=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=Z();s.append(o),this.#r.set(t,{effect:ee(()=>r(o)),fragment:s})}else this.#e.set(t,ee(()=>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.#l),n.ondiscard(this.#o)}else g&&(this.anchor=y),this.#l()}}function ut(e,t,r=!1){g&&Et();var n=new ii(e),i=r?me:0;function s(o,a){if(g){const f=pn(e)===gt;if(o===f){var l=Wt();I(l),n.anchor=l,se(!1),n.ensure(o,a),se(!0);return}}n.ensure(o,a)}_r(()=>{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 ct(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 dt(e,t,r){var n=_,i=p;let s=g;g&&se(!1),T(null),P(null);try{t!=="style"&&(Dt.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),P(i),s&&se(!0)}}function ci(e){return e.__attributes??={[li]:e.nodeName.includes("-"),[fi]:e.namespaceURI===Jr}}var Dt=new Map;function Pr(e){var t=e.getAttribute("is")||e.nodeName,r=Dt.get(t);if(r)return r;Dt.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=Bt(i)}return r}function Rt(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 u=e[t];return u===void 0?o():(s=!0,u)};var f=!1,c=Tt(()=>(f=!1,l())),h=p;return(function(u,v){if(arguments.length>0){const m=v?d(c):u;return w(c,m),f=!0,i!==void 0&&(i=m),u}return de&&f||(h.f&ne)!==0?c.v:d(c)})}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),qe(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]=ht(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(()=>{br(()=>{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=ht(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]=ht(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 ht(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=ht(a,l,t),this.$$d[a]=l;var f=this.$$c;if(f){var c=ge(f,a)?.get;c?f[a]=l:f.$set({[a]:l})}}})}),n.forEach(a=>{Ge(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}var ve={},Fr;function _i(){if(Fr)return ve;Fr=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.LanguageTranslator=void 0,ve.getChildStyleToPass=e,ve.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(u){return Object.keys(n).includes(u.name)}))===null||o===void 0)&&o.length))for(var l=function(u){var v=i?.filter(function(m){return m.name===u&&m.defaultValue!==n[u]});v&&(a+="".concat(u,":").concat(n[u],";"))},f=0,c=Object.keys(n);f<c.length;f++){var h=c[f];l(h)}}catch(u){console.error("error getting child style to pass",u)}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 c=s?.[f];c?.[i]&&(l=c[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 ve.LanguageTranslator=r,ve}var Ir=_i();const Vr={version:"0.62.0"};var pi=ft(': <div class="input svelte-1x2sq1k"><hb-input-number></hb-input-number></div>',3),gi=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),mi=ft('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-1x2sq1k"> </div>'),yi=ft("<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