@htmlbricks/hb-input-datetime 0.50.0-alpha.3 → 0.50.0-alpha.4

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
  var di=Object.defineProperty;var Fr=x=>{throw TypeError(x)};var vi=(x,N,A)=>N in x?di(x,N,{enumerable:!0,configurable:!0,writable:!0,value:A}):x[N]=A;var X=(x,N,A)=>vi(x,typeof N!="symbol"?N+"":N,A),Vr=(x,N,A)=>N.has(x)||Fr("Cannot "+A);var F=(x,N,A)=>(Vr(x,N,"read from private field"),A?A.call(x):N.get(x)),qt=(x,N,A)=>N.has(x)?Fr("Cannot add the same private member more than once"):N instanceof WeakSet?N.add(x):N.set(x,A),jt=(x,N,A,Ge)=>(Vr(x,N,"write to private field"),Ge?Ge.call(x,A):N.set(x,A),A);(function(x){"use strict";var ae,z;const N="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(N);const A=1,Ge=2,Ft="[",Vt="[!",Ht="]",Ie={},L=Symbol(),mt=!1,W=2,Yt=4,Ue=8,bt=16,ie=32,ye=64,ze=128,B=256,We=512,D=1024,se=2048,$e=4096,Ee=8192,Xe=16384,Hr=32768,pt=65536,Yr=1<<19,Bt=1<<20,gt=Symbol("$state"),Br=Symbol("legacy props"),Gr=Symbol("");var Gt=Array.isArray,Ur=Array.prototype.indexOf,zr=Array.from,Je=Object.keys,Ke=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,Wr=Object.getOwnPropertyDescriptors,Xr=Object.prototype,Jr=Array.prototype,Ut=Object.getPrototypeOf;function Kr(e){for(var t=0;t<e.length;t++)e[t]()}let Ze=!1,wt=[];function zt(){Ze=!1;const e=wt.slice();wt=[],Kr(e)}function Wt(e){Ze||(Ze=!0,queueMicrotask(zt)),wt.push(e)}function Zr(){Ze&&zt()}function Xt(e){return e===this.v}function Qr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function en(e){return!Qr(e,this.v)}function tn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function rn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function nn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function sn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function on(){throw new Error("https://svelte.dev/e/hydration_failed")}function an(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ln(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function un(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function fn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let cn=!1;function J(e,t){var r={f:0,v:e,reactions:null,equals:Xt,rv:0,wv:0};return r}function G(e){return dn(J(e))}function Jt(e,t=!1){const r=J(e);return t||(r.equals=en),r}function dn(e){return y!==null&&!K&&y.f&W&&(ee===null?gn([e]):ee.push(e)),e}function p(e,t){return y!==null&&!K&&Nr()&&y.f&(W|bt)&&(ee===null||!ee.includes(e))&&fn(),vn(e,t)}function vn(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=fr(),Kt(e,se),E!==null&&E.f&D&&!(E.f&(ie|ye))&&(oe===null?wn([e]):oe.push(e))),t}function Kt(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,n=0;n<i;n++){var s=r[n],o=s.f;o&se||(te(s,t),o&(D|B)&&(o&W?Kt(s,$e):st(s)))}}function Zt(e){var t=W|se,r=y!==null&&y.f&W?y:null;return E===null||r!==null&&r.f&B?t|=B:E.f|=Bt,{ctx:H,deps:null,effects:null,equals:Xt,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??E}}function Qt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ve(t[r])}}function hn(e){for(var t=e.parent;t!==null;){if(!(t.f&W))return t;t=t.parent}return null}function _n(e){var t,r=E;Q(hn(e));try{Qt(e),t=dr(e)}finally{Q(r)}return t}function er(e){var t=_n(e),r=(ce||e.f&B)&&e.deps!==null?$e:D;te(e,r),e.equals(t)||(e.v=t,e.wv=fr())}function yt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let O=!1;function ue(e){O=e}let R;function fe(e){if(e===null)throw yt(),Ie;return R=e}function $t(){return fe(me(R))}function xe(e){if(O){if(me(R)!==null)throw yt(),Ie;R=e}}function mn(){for(var e=0,t=R;;){if(t.nodeType===8){var r=t.data;if(r===Ht){if(e===0)return t;e-=1}else(r===Ft||r===Vt)&&(e+=1)}var i=me(t);t.remove(),t=i}}function $(e,t=null,r){if(typeof e!="object"||e===null||gt in e)return e;const i=Ut(e);if(i!==Xr&&i!==Jr)return e;var n=new Map,s=Gt(e),o=J(0);s&&n.set("length",J(e.length));var l;return new Proxy(e,{defineProperty(u,a,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&an();var c=n.get(a);return c===void 0?(c=J(d.value),n.set(a,c)):p(c,$(d.value,l)),!0},deleteProperty(u,a){var d=n.get(a);if(d===void 0)a in u&&n.set(a,J(L));else{if(s&&typeof a=="string"){var c=n.get("length"),f=Number(a);Number.isInteger(f)&&f<c.v&&p(c,f)}p(d,L),tr(o)}return!0},get(u,a,d){var g;if(a===gt)return e;var c=n.get(a),f=a in u;if(c===void 0&&(!f||(g=ke(u,a))!=null&&g.writable)&&(c=J($(f?u[a]:L,l)),n.set(a,c)),c!==void 0){var h=v(c);return h===L?void 0:h}return Reflect.get(u,a,d)},getOwnPropertyDescriptor(u,a){var d=Reflect.getOwnPropertyDescriptor(u,a);if(d&&"value"in d){var c=n.get(a);c&&(d.value=v(c))}else if(d===void 0){var f=n.get(a),h=f==null?void 0:f.v;if(f!==void 0&&h!==L)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return d},has(u,a){var h;if(a===gt)return!0;var d=n.get(a),c=d!==void 0&&d.v!==L||Reflect.has(u,a);if(d!==void 0||E!==null&&(!c||(h=ke(u,a))!=null&&h.writable)){d===void 0&&(d=J(c?$(u[a],l):L),n.set(a,d));var f=v(d);if(f===L)return!1}return c},set(u,a,d,c){var C;var f=n.get(a),h=a in u;if(s&&a==="length")for(var g=d;g<f.v;g+=1){var _=n.get(g+"");_!==void 0?p(_,L):g in u&&(_=J(L),n.set(g+"",_))}f===void 0?(!h||(C=ke(u,a))!=null&&C.writable)&&(f=J(void 0),p(f,$(d,l)),n.set(a,f)):(h=f.v!==L,p(f,$(d,l)));var T=Reflect.getOwnPropertyDescriptor(u,a);if(T!=null&&T.set&&T.set.call(c,d),!h){if(s&&typeof a=="string"){var P=n.get("length"),S=Number(a);Number.isInteger(S)&&S>=P.v&&p(P,S+1)}tr(o)}return!0},ownKeys(u){v(o);var a=Reflect.ownKeys(u).filter(f=>{var h=n.get(f);return h===void 0||h.v!==L});for(var[d,c]of n)c.v!==L&&!(d in u)&&a.push(d);return a},setPrototypeOf(){ln()}})}function tr(e,t=1){p(e,e.v+t)}var rr,nr,ir,sr;function Et(){if(rr===void 0){rr=window,nr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;ir=ke(t,"firstChild").get,sr=ke(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function Qe(e=""){return document.createTextNode(e)}function Ne(e){return ir.call(e)}function me(e){return sr.call(e)}function Se(e,t){if(!O)return Ne(e);var r=Ne(R);if(r===null)r=R.appendChild(Qe());else if(t&&r.nodeType!==3){var i=Qe();return r==null||r.before(i),fe(i),i}return fe(r),r}function kt(e,t){if(!O){var r=Ne(e);return r instanceof Comment&&r.data===""?me(r):r}return R}function Le(e,t=1,r=!1){let i=O?R:e;for(var n;t--;)n=i,i=me(i);if(!O)return i;var s=i==null?void 0:i.nodeType;if(r&&s!==3){var o=Qe();return i===null?n==null||n.after(o):i.before(o),fe(o),o}return fe(i),i}function bn(e){e.textContent=""}const or=0,pn=1;let et=!1,tt=or,Me=!1,qe=null,Te=!1,xt=!1;function ar(e){Te=e}function lr(e){xt=e}let be=[],Oe=0,hi=[],y=null,K=!1;function Z(e){y=e}let E=null;function Q(e){E=e}let ee=null;function gn(e){ee=e}let I=null,V=0,oe=null;function wn(e){oe=e}let ur=1,rt=0,ce=!1;function fr(){return++ur}function je(e){var c;var t=e.f;if(t&se)return!0;if(t&$e){var r=e.deps,i=(t&B)!==0;if(r!==null){var n,s,o=(t&We)!==0,l=i&&E!==null&&!ce,u=r.length;if(o||l){var a=e,d=a.parent;for(n=0;n<u;n++)s=r[n],(o||!((c=s==null?void 0:s.reactions)!=null&&c.includes(a)))&&(s.reactions??(s.reactions=[])).push(a);o&&(a.f^=We),l&&d!==null&&!(d.f&B)&&(a.f^=B)}for(n=0;n<u;n++)if(s=r[n],je(s)&&er(s),s.wv>e.wv)return!0}(!i||E!==null&&!ce)&&te(e,D)}return!1}function yn(e,t){for(var r=t;r!==null;){if(r.f&ze)try{r.fn(e);return}catch{r.f^=ze}r=r.parent}throw et=!1,e}function $n(e){return(e.f&Xe)===0&&(e.parent===null||(e.parent.f&ze)===0)}function nt(e,t,r,i){if(et){if(r===null&&(et=!1),$n(t))throw e;return}r!==null&&(et=!0);{yn(e,t);return}}function cr(e,t,r=!0){var i=e.reactions;if(i!==null)for(var n=0;n<i.length;n++){var s=i[n];s.f&W?cr(s,t,!1):t===s&&(r?te(s,se):s.f&D&&te(s,$e),st(s))}}function dr(e){var h;var t=I,r=V,i=oe,n=y,s=ce,o=ee,l=H,u=K,a=e.f;I=null,V=0,oe=null,y=a&(ie|ye)?null:e,ce=(a&B)!==0&&(!Te||n===null||u),ee=null,Er(e.ctx),K=!1,rt++;try{var d=(0,e.fn)(),c=e.deps;if(I!==null){var f;if(it(e,V),c!==null&&V>0)for(c.length=V+I.length,f=0;f<I.length;f++)c[V+f]=I[f];else e.deps=c=I;if(!ce)for(f=V;f<c.length;f++)((h=c[f]).reactions??(h.reactions=[])).push(e)}else c!==null&&V<c.length&&(it(e,V),c.length=V);if(Nr()&&oe!==null&&!K&&c!==null&&!(e.f&(W|$e|se)))for(f=0;f<oe.length;f++)cr(oe[f],e);return n!==null&&rt++,d}finally{I=t,V=r,oe=i,y=n,ce=s,ee=o,Er(l),K=u}}function En(e,t){let r=t.reactions;if(r!==null){var i=Ur.call(r,e);if(i!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[i]=r[n],r.pop())}}r===null&&t.f&W&&(I===null||!I.includes(t))&&(te(t,$e),t.f&(B|We)||(t.f^=We),Qt(t),it(t,0))}function it(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)En(e,r[i])}function Nt(e){var t=e.f;if(!(t&Xe)){te(e,D);var r=E,i=H;E=e;try{t&bt?Ln(e):pr(e),br(e);var n=dr(e);e.teardown=typeof n=="function"?n:null,e.wv=ur;var s=e.deps,o;mt&&cn&&e.f&se}catch(l){nt(l,e,r,i||e.ctx)}finally{E=r}}}function vr(){if(Oe>1e3){Oe=0;try{sn()}catch(e){if(qe!==null)nt(e,qe,null);else throw e}}Oe++}function hr(e){var t=e.length;if(t!==0){vr();var r=Te;Te=!0;try{for(var i=0;i<t;i++){var n=e[i];n.f&D||(n.f^=D);var s=Nn(n);kn(s)}}finally{Te=r}}}function kn(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var i=e[r];if(!(i.f&(Xe|Ee)))try{je(i)&&(Nt(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?gr(i):i.fn=null))}catch(n){nt(n,i,null,i.ctx)}}}function xn(){if(Me=!1,Oe>1001)return;const e=be;be=[],hr(e),Me||(Oe=0,qe=null)}function st(e){tt===or&&(Me||(Me=!0,queueMicrotask(xn))),qe=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(ye|ie)){if(!(r&D))return;t.f^=D}}be.push(t)}function Nn(e){var t=[],r=e.first;e:for(;r!==null;){var i=r.f,n=(i&ie)!==0,s=n&&(i&D)!==0,o=r.next;if(!s&&!(i&Ee)){if(i&Yt)t.push(r);else if(n)r.f^=D;else{var l=y;try{y=r,je(r)&&Nt(r)}catch(d){nt(d,r,null,r.ctx)}finally{y=l}}var u=r.first;if(u!==null){r=u;continue}}if(o===null){let d=r.parent;for(;d!==null;){if(e===d)break e;var a=d.next;if(a!==null){r=a;continue e}d=d.parent}}r=o}return t}function de(e){var t=tt,r=be;try{vr();const n=[];tt=pn,be=n,Me=!1,hr(r);var i=e==null?void 0:e();return Zr(),(be.length>0||n.length>0)&&de(),Oe=0,qe=null,i}finally{tt=t,be=r}}function v(e){var t=e.f,r=(t&W)!==0;if(y!==null&&!K){ee!==null&&ee.includes(e)&&un();var i=y.deps;e.rv<rt&&(e.rv=rt,I===null&&i!==null&&i[V]===e?V++:I===null?I=[e]:(!ce||!I.includes(e))&&I.push(e))}else if(r&&e.deps===null&&e.effects===null){var n=e,s=n.parent;s!==null&&!(s.f&B)&&(n.f^=B)}return r&&(n=e,je(n)&&er(n)),e.v}function Sn(e){var t=K;try{return K=!0,e()}finally{K=t}}const Tn=-7169;function te(e,t){e.f=e.f&Tn|t}function On(e){E===null&&y===null&&nn(),y!==null&&y.f&B&&E===null&&rn(),xt&&tn()}function Rn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function pe(e,t,r,i=!0){var n=(e&ye)!==0,s=E,o={ctx:H,deps:null,nodes_start:null,nodes_end:null,f:e|se,first:null,fn:t,last:null,next:null,parent:n?null:s,prev:null,teardown:null,transitions:null,wv:0};if(r){var l=Te;try{ar(!0),Nt(o),o.f|=Hr}catch(d){throw ve(o),d}finally{ar(l)}}else t!==null&&st(o);var u=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(Bt|ze))===0;if(!u&&!n&&i&&(s!==null&&Rn(o,s),y!==null&&y.f&W)){var a=y;(a.effects??(a.effects=[])).push(o)}return o}function An(e){const t=pe(Ue,null,!1);return te(t,D),t.teardown=e,t}function Cn(e){On();var t=E!==null&&(E.f&ie)!==0&&H!==null&&!H.m;if(t){var r=H;(r.e??(r.e=[])).push({fn:e,effect:E,reaction:y})}else{var i=_r(e);return i}}function Pn(e){const t=pe(ye,e,!0);return()=>{ve(t)}}function Dn(e){const t=pe(ye,e,!0);return(r={})=>new Promise(i=>{r.outro?Tt(t,()=>{ve(t),i(void 0)}):(ve(t),i(void 0))})}function _r(e){return pe(Yt,e,!1)}function In(e){return pe(Ue,e,!0)}function re(e,t=[],r=Zt){const i=t.map(r);return mr(()=>e(...i.map(v)))}function mr(e,t=0){return pe(Ue|bt|t,e,!0)}function St(e,t=!0){return pe(Ue|ie,e,!0,t)}function br(e){var t=e.teardown;if(t!==null){const r=xt,i=y;lr(!0),Z(null);try{t.call(null)}finally{lr(r),Z(i)}}}function pr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var i=r.next;ve(r,t),r=i}}function Ln(e){for(var t=e.first;t!==null;){var r=t.next;t.f&ie||ve(t),t=r}}function ve(e,t=!0){var r=!1;if((t||e.f&Yr)&&e.nodes_start!==null){for(var i=e.nodes_start,n=e.nodes_end;i!==null;){var s=i===n?null:me(i);i.remove(),i=s}r=!0}pr(e,t&&!r),it(e,0),te(e,Xe);var o=e.transitions;if(o!==null)for(const u of o)u.stop();br(e);var l=e.parent;l!==null&&l.first!==null&&gr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function gr(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function Tt(e,t){var r=[];wr(e,r,!0),Mn(r,()=>{ve(e),t&&t()})}function Mn(e,t){var r=e.length;if(r>0){var i=()=>--r||t();for(var n of e)n.out(i)}else t()}function wr(e,t,r){if(!(e.f&Ee)){if(e.f^=Ee,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var i=e.first;i!==null;){var n=i.next,s=(i.f&pt)!==0||(i.f&ie)!==0;wr(i,t,s?r:!1),i=n}}}function yr(e){$r(e,!0)}function $r(e,t){if(e.f&Ee){e.f^=Ee,e.f&D||(e.f^=D),je(e)&&(te(e,se),st(e));for(var r=e.first;r!==null;){var i=r.next,n=(r.f&pt)!==0||(r.f&ie)!==0;$r(r,n?t:!1),r=i}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let H=null;function Er(e){H=e}function kr(e,t=!1,r){H={p:H,c:null,e:null,m:!1,s:e,x:null,l:null}}function xr(e){const t=H;if(t!==null){e!==void 0&&(t.x=e);const o=t.e;if(o!==null){var r=E,i=y;t.e=null;try{for(var n=0;n<o.length;n++){var s=o[n];Q(s.effect),Z(s.reaction),_r(s.fn)}}finally{Q(r),Z(i)}}H=t.p,t.m=!0}return e||{}}function Nr(){return!0}const qn=["touchstart","touchmove"];function jn(e){return qn.includes(e)}function Fn(e){var t=y,r=E;Z(null),Q(null);try{return e()}finally{Z(t),Q(r)}}const Vn=new Set,Sr=new Set;function Hn(e,t,r,i={}){function n(s){if(i.capture||Fe.call(t,s),!s.cancelBubble)return Fn(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Wt(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function ot(e,t,r,i,n){var s={capture:i,passive:n},o=Hn(e,t,r,s);(t===document.body||t===window||t===document)&&An(()=>{t.removeEventListener(e,o,s)})}function Fe(e){var S;var t=this,r=t.ownerDocument,i=e.type,n=((S=e.composedPath)==null?void 0:S.call(e))||[],s=n[0]||e.target,o=0,l=e.__root;if(l){var u=n.indexOf(l);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var a=n.indexOf(t);if(a===-1)return;u<=a&&(o=u)}if(s=n[o]||e.target,s!==t){Ke(e,"currentTarget",{configurable:!0,get(){return s||r}});var d=y,c=E;Z(null),Q(null);try{for(var f,h=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var _=s["__"+i];if(_!==void 0&&!s.disabled)if(Gt(_)){var[T,...P]=_;T.apply(s,[e,...P])}else _.call(s,e)}catch(C){f?h.push(C):f=C}if(e.cancelBubble||g===t||g===null)break;s=g}if(f){for(let C of h)queueMicrotask(()=>{throw C});throw f}}finally{e.__root=t,delete e.currentTarget,Z(d),Q(c)}}}function Yn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function at(e,t){var r=E;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function lt(e,t){var r=(t&A)!==0,i=(t&Ge)!==0,n,s=!e.startsWith("<!>");return()=>{if(O)return at(R,null),R;n===void 0&&(n=Yn(s?e:"<!>"+e),r||(n=Ne(n)));var o=i||nr?document.importNode(n,!0):n.cloneNode(!0);if(r){var l=Ne(o),u=o.lastChild;at(l,u)}else at(o,o);return o}}function Ve(e,t){if(O){E.nodes_end=R,$t();return}e!==null&&e.before(t)}function Bn(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function Tr(e,t){return Or(e,t)}function Gn(e,t){Et(),t.intro=t.intro??!1;const r=t.target,i=O,n=R;try{for(var s=Ne(r);s&&(s.nodeType!==8||s.data!==Ft);)s=me(s);if(!s)throw Ie;ue(!0),fe(s),$t();const o=Or(e,{...t,anchor:s});if(R===null||R.nodeType!==8||R.data!==Ht)throw yt(),Ie;return ue(!1),o}catch(o){if(o===Ie)return t.recover===!1&&on(),Et(),bn(r),ue(!1),Tr(e,t);throw o}finally{ue(i),fe(n)}}const Re=new Map;function Or(e,{target:t,anchor:r,props:i={},events:n,context:s,intro:o=!0}){Et();var l=new Set,u=c=>{for(var f=0;f<c.length;f++){var h=c[f];if(!l.has(h)){l.add(h);var g=jn(h);t.addEventListener(h,Fe,{passive:g});var _=Re.get(h);_===void 0?(document.addEventListener(h,Fe,{passive:g}),Re.set(h,1)):Re.set(h,_+1)}}};u(zr(Vn)),Sr.add(u);var a=void 0,d=Dn(()=>{var c=r??t.appendChild(Qe());return St(()=>{if(s){kr({});var f=H;f.c=s}n&&(i.$$events=n),O&&at(c,null),a=e(c,i)||{},O&&(E.nodes_end=R),s&&xr()}),()=>{var g;for(var f of l){t.removeEventListener(f,Fe);var h=Re.get(f);--h===0?(document.removeEventListener(f,Fe),Re.delete(f)):Re.set(f,h)}Sr.delete(u),c!==r&&((g=c.parentNode)==null||g.removeChild(c))}});return Ot.set(a,d),a}let Ot=new WeakMap;function Un(e,t){const r=Ot.get(e);return r?(Ot.delete(e),r(t)):Promise.resolve()}function Rt(e,t,r=!1){O&&$t();var i=e,n=null,s=null,o=L,l=r?pt:0,u=!1;const a=(c,f=!0)=>{u=!0,d(f,c)},d=(c,f)=>{if(o===(o=c))return;let h=!1;if(O){const g=i.data===Vt;!!o===g&&(i=mn(),fe(i),ue(!1),h=!0)}o?(n?yr(n):f&&(n=St(()=>f(i))),s&&Tt(s,()=>{s=null})):(s?yr(s):f&&(s=St(()=>f(i))),n&&Tt(n,()=>{n=null})),h&&ue(!0)};mr(()=>{u=!1,t(a),u||d(null,null)},l),O&&(i=R)}function zn(e,t){Wt(()=>{var r=e.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const n=document.createElement("style");n.id=t.hash,n.textContent=t.code,i.appendChild(n)}})}function Wn(e,t,r,i){var n=e.__attributes??(e.__attributes={});O&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||n[t]!==(n[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[Gr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Rr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function U(e,t,r){var i=y,n=E;let s=O;O&&ue(!1),Z(null),Q(null);try{(At.has(e.nodeName)||!customElements||customElements.get(e.tagName.toLowerCase())?Rr(e).includes(t):r&&typeof r=="object")?e[t]=r:Wn(e,t,r==null?r:String(r))}finally{Z(i),Q(n),s&&ue(!0)}}var At=new Map;function Rr(e){var t=At.get(e.nodeName);if(t)return t;At.set(e.nodeName,t=[]);for(var r,i=e,n=Element.prototype;n!==i;){r=Wr(i);for(var s in r)r[s].set&&t.push(s);i=Ut(i)}return t}function Xn(e,t,r){var i=e.__className,n=Jn(t);O&&e.className===n?e.__className=n:(i!==n||O&&e.className!==n)&&(t==null?e.removeAttribute("class"):e.className=n,e.__className=n)}function Jn(e,t){return(e??"")+""}function Ae(e,t,r,i){var n;n=e[t];var s=i,o=!0,l=!1,u=()=>(l=!0,o&&(o=!1,s=i),s);n===void 0&&i!==void 0&&(n=u());var a;a=()=>{var h=e[t];return h===void 0?u():(o=!0,l=!1,h)};var d=!1,c=Jt(n),f=Zt(()=>{var h=a(),g=v(c);return d?(d=!1,g):c.v=h});return function(h,g){if(arguments.length>0){const _=g?v(f):h;return f.equals(_)||(d=!0,p(c,_),l&&s!==void 0&&(s=_),Sn(()=>v(f))),h}return v(f)}}function Kn(e){return new Zn(e)}class Zn{constructor(t){qt(this,ae);qt(this,z);var s;var r=new Map,i=(o,l)=>{var u=Jt(l);return r.set(o,u),u};const n=new Proxy({...t.props||{},$$events:{}},{get(o,l){return v(r.get(l)??i(l,Reflect.get(o,l)))},has(o,l){return l===Br?!0:(v(r.get(l)??i(l,Reflect.get(o,l))),Reflect.has(o,l))},set(o,l,u){return p(r.get(l)??i(l,u),u),Reflect.set(o,l,u)}});jt(this,z,(t.hydrate?Gn:Tr)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((s=t==null?void 0:t.props)!=null&&s.$$host)||t.sync===!1)&&de(),jt(this,ae,n.$$events);for(const o of Object.keys(F(this,z)))o==="$set"||o==="$destroy"||o==="$on"||Ke(this,o,{get(){return F(this,z)[o]},set(l){F(this,z)[o]=l},enumerable:!0});F(this,z).$set=o=>{Object.assign(n,o)},F(this,z).$destroy=()=>{Un(F(this,z))}}$set(t){F(this,z).$set(t)}$on(t,r){F(this,ae)[t]=F(this,ae)[t]||[];const i=(...n)=>r.call(this,...n);return F(this,ae)[t].push(i),()=>{F(this,ae)[t]=F(this,ae)[t].filter(n=>n!==i)}}$destroy(){F(this,z).$destroy()}}ae=new WeakMap,z=new WeakMap;let Ar;typeof HTMLElement=="function"&&(Ar=class extends HTMLElement{constructor(t,r,i){super();X(this,"$$ctor");X(this,"$$s");X(this,"$$c");X(this,"$$cn",!1);X(this,"$$d",{});X(this,"$$r",!1);X(this,"$$p_d",{});X(this,"$$l",{});X(this,"$$l_u",new Map);X(this,"$$me");this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return s=>{const o=document.createElement("slot");n!=="default"&&(o.name=n),Ve(s,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=Qn(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),r.default=!0):r[n]=t(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=ut(s,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=Kn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Pn(()=>{In(()=>{var n;this.$$r=!0;for(const s of Je(this.$$c)){if(!((n=this.$$p_d[s])!=null&&n.reflect))continue;this.$$d[s]=this.$$c[s];const o=ut(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const o=this.$$c.$on(n,s);this.$$l_u.set(s,o)}this.$$l={}}}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=ut(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Je(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function ut(e,t,r,i){var s;const n=(s=r[e])==null?void 0:s.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Qn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ei(e,t,r,i,n,s){let o=class extends Ar{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Je(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Je(t).forEach(l=>{Ke(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){var c;u=ut(l,u,t),this.$$d[l]=u;var a=this.$$c;if(a){var d=(c=ke(a,l))==null?void 0:c.get;d?a[l]=u:a.$set({[l]:u})}}})}),i.forEach(l=>{Ke(o.prototype,l,{get(){var u;return(u=this.$$c)==null?void 0:u[l]}})}),e.element=o,o}function Cr(e,t){var i,n;let r="";if(e&&(t!=null&&t.length)&&((i=Object.keys(e))!=null&&i.length)&&((n=t==null?void 0:t.filter(s=>Object.keys(e).includes(s.name)))!=null&&n.length))for(const s of Object.keys(e))(t==null?void 0:t.filter(l=>l.name===s&&l.defaultValue!==e[s]))&&(r+=`${s}:${e[s]};`);return r}function Pr(e){var i;const t=((i=e==null?void 0:e.repoName.split("/"))==null?void 0:i[1])||(e==null?void 0:e.repoName);if(!t)throw new Error("wrong componentPath "+(e==null?void 0:e.repoName));if(!(e!=null&&e.version))throw new Error("wrong version "+(e==null?void 0:e.version));const r=(e==null?void 0:e.iifePath)||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e!=null&&e.local&&location.href.includes("localhost")&&(n.src=`${e.local}`),document.head.appendChild(n)}catch(n){console.warn(n)}}const Ct={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"}]},Pt={vars:[{name:"--hb-area-code-background",defaultValue:"rgb(232 232 232 / 57%)",valueType:"color"}]};function ti(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ce={},Dt,Dr;function ri(){if(Dr)return Dt;Dr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
2
- `,a="/",d="*",c="",f="comment",h="declaration";Dt=function(_,T){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];T=T||{};var P=1,S=1;function C(w){var b=w.match(t);b&&(P+=b.length);var Y=w.lastIndexOf(u);S=~Y?w.length-Y:S+w.length}function le(){var w={line:P,column:S};return function(b){return b.position=new He(w),ft(),b}}function He(w){this.start=w,this.end={line:P,column:S},this.source=T.source}He.prototype.content=_;function Ye(w){var b=new Error(T.source+":"+P+":"+S+": "+w);if(b.reason=w,b.filename=T.source,b.line=P,b.column=S,b.source=_,!T.silent)throw b}function he(w){var b=w.exec(_);if(b){var Y=b[0];return C(Y),_=_.slice(Y.length),b}}function ft(){he(r)}function ct(w){var b;for(w=w||[];b=dt();)b!==!1&&w.push(b);return w}function dt(){var w=le();if(!(a!=_.charAt(0)||d!=_.charAt(1))){for(var b=2;c!=_.charAt(b)&&(d!=_.charAt(b)||a!=_.charAt(b+1));)++b;if(b+=2,c===_.charAt(b-1))return Ye("End of comment missing");var Y=_.slice(2,b-2);return S+=2,C(Y),_=_.slice(b),S+=2,w({type:f,comment:Y})}}function It(){var w=le(),b=he(i);if(b){if(dt(),!he(n))return Ye("property missing ':'");var Y=he(s),Lt=w({type:h,property:g(b[0].replace(e,c)),value:Y?g(Y[0].replace(e,c)):c});return he(o),Lt}}function vt(){var w=[];ct(w);for(var b;b=It();)b!==!1&&(w.push(b),ct(w));return w}return ft(),vt()};function g(_){return _?_.replace(l,c):c}return Dt}var Ir;function ni(){if(Ir)return Ce;Ir=1;var e=Ce&&Ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.default=r;var t=e(ri());function r(i,n){var s=null;if(!i||typeof i!="string")return s;var o=(0,t.default)(i),l=typeof n=="function";return o.forEach(function(u){if(u.type==="declaration"){var a=u.property,d=u.value;l?n(a,d,u):d&&(s=s||{},s[a]=d)}}),s}return Ce}var ii=ni();const Lr=ti(ii),si=Lr.default||Lr,Mr={version:"0.50.0-alpha.003"};var oi=lt(': <div class="input svelte-f79o9e"><hb-input-number></hb-input-number></div>',3),ai=lt('<div style="margin-right:20px" class="input svelte-f79o9e"><hb-input-date></hb-input-date></div> <div class="input svelte-f79o9e"><hb-input-number></hb-input-number></div> : <div class="input svelte-f79o9e"><hb-input-number></hb-input-number></div> <!>',3),li=lt('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-f79o9e"> </div>'),ui=lt("<div><!></div> <!>",1);const fi={hash:"svelte-f79o9e",code:`
2
+ `,a="/",d="*",c="",f="comment",h="declaration";Dt=function(_,T){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];T=T||{};var P=1,S=1;function C(w){var b=w.match(t);b&&(P+=b.length);var Y=w.lastIndexOf(u);S=~Y?w.length-Y:S+w.length}function le(){var w={line:P,column:S};return function(b){return b.position=new He(w),ft(),b}}function He(w){this.start=w,this.end={line:P,column:S},this.source=T.source}He.prototype.content=_;function Ye(w){var b=new Error(T.source+":"+P+":"+S+": "+w);if(b.reason=w,b.filename=T.source,b.line=P,b.column=S,b.source=_,!T.silent)throw b}function he(w){var b=w.exec(_);if(b){var Y=b[0];return C(Y),_=_.slice(Y.length),b}}function ft(){he(r)}function ct(w){var b;for(w=w||[];b=dt();)b!==!1&&w.push(b);return w}function dt(){var w=le();if(!(a!=_.charAt(0)||d!=_.charAt(1))){for(var b=2;c!=_.charAt(b)&&(d!=_.charAt(b)||a!=_.charAt(b+1));)++b;if(b+=2,c===_.charAt(b-1))return Ye("End of comment missing");var Y=_.slice(2,b-2);return S+=2,C(Y),_=_.slice(b),S+=2,w({type:f,comment:Y})}}function It(){var w=le(),b=he(i);if(b){if(dt(),!he(n))return Ye("property missing ':'");var Y=he(s),Lt=w({type:h,property:g(b[0].replace(e,c)),value:Y?g(Y[0].replace(e,c)):c});return he(o),Lt}}function vt(){var w=[];ct(w);for(var b;b=It();)b!==!1&&(w.push(b),ct(w));return w}return ft(),vt()};function g(_){return _?_.replace(l,c):c}return Dt}var Ir;function ni(){if(Ir)return Ce;Ir=1;var e=Ce&&Ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.default=r;var t=e(ri());function r(i,n){var s=null;if(!i||typeof i!="string")return s;var o=(0,t.default)(i),l=typeof n=="function";return o.forEach(function(u){if(u.type==="declaration"){var a=u.property,d=u.value;l?n(a,d,u):d&&(s=s||{},s[a]=d)}}),s}return Ce}var ii=ni();const Lr=ti(ii),si=Lr.default||Lr,Mr={version:"0.50.0-alpha.004"};var oi=lt(': <div class="input svelte-f79o9e"><hb-input-number></hb-input-number></div>',3),ai=lt('<div style="margin-right:20px" class="input svelte-f79o9e"><hb-input-date></hb-input-date></div> <div class="input svelte-f79o9e"><hb-input-number></hb-input-number></div> : <div class="input svelte-f79o9e"><hb-input-number></hb-input-number></div> <!>',3),li=lt('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-f79o9e"> </div>'),ui=lt("<div><!></div> <!>",1);const fi={hash:"svelte-f79o9e",code:`
3
3
  @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");
4
4
  /*!
5
5
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
package/manifest.json CHANGED
@@ -211,5 +211,5 @@
211
211
  "size": {},
212
212
  "iifePath": "main.iife.js",
213
213
  "repoName": "@htmlbricks/hb-area-code",
214
- "version": "0.50.0-alpha.003"
214
+ "version": "0.50.0-alpha.004"
215
215
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-input-datetime",
3
- "version": "0.50.0-alpha.003",
3
+ "version": "0.50.0-alpha.004",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [