@htmlbricks/hb-form 0.62.0 → 0.62.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(ei){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Kr=1,Xr=2,ti=4,ds=8,vs=16,hs=1,bs=2,ri="[",Zr="[!",gn="]",ur={},Z=Symbol(),_s="http://www.w3.org/1999/xhtml",ni=!1;var ii=Array.isArray,ps=Array.prototype.indexOf,yn=Array.from,Qr=Object.keys,en=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,ms=Object.getOwnPropertyDescriptors,gs=Object.prototype,ys=Array.prototype,si=Object.getPrototypeOf,ai=Object.isExtensible;function ws(e){for(var t=0;t<e.length;t++)e[t]()}function oi(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const Q=2,tn=4,wn=8,pt=16,mt=32,Nt=64,rn=128,De=512,ee=1024,fe=2048,gt=4096,ve=8192,Tt=16384,jn=32768,cr=65536,li=1<<17,ui=1<<18,Kt=1<<19,js=1<<20,Er=32768,xn=1<<21,En=1<<22,$t=1<<23,kn=Symbol("$state"),xs=Symbol("legacy props"),Es=Symbol(""),dr=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Sn=3,vr=8;function ks(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ss(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ns(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ts(e){throw new Error("https://svelte.dev/e/effect_orphan")}function $s(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function qs(){throw new Error("https://svelte.dev/e/hydration_failed")}function Cs(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Os(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function As(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Rs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function nn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ms(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function Ve(e){$=e}let R;function ce(e){if(e===null)throw nn(),ur;return R=e}function kr(){return ce(tt(R))}function yt(e){if($){if(tt(R)!==null)throw nn(),ur;R=e}}function Ls(e=1){if($){for(var t=e,r=R;t--;)r=tt(r);R=r}}function sn(e=!0){for(var t=0,r=R;;){if(r.nodeType===vr){var n=r.data;if(n===gn){if(t===0)return r;t-=1}else(n===ri||n===Zr)&&(t+=1)}var i=tt(r);e&&r.remove(),r=i}}function fi(e){if(!e||e.nodeType!==vr)throw nn(),ur;return e.data}function ci(e){return e===this.v}function Ds(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function di(e){return!Ds(e,this.v)}let Vs=!1,me=null;function hr(e){me=e}function vi(e,t=!1,r){me={p:me,i:!1,c:null,e:null,s:e,x:null,l:null}}function hi(e){var t=me,r=t.e;if(r!==null){t.e=null;for(var n of r)Ri(n)}return e!==void 0&&(t.x=e),t.i=!0,me=t.p,e??{}}function bi(){return!0}let Xt=[];function _i(){var e=Xt;Xt=[],ws(e)}function Sr(e){if(Xt.length===0&&!Nr){var t=Xt;queueMicrotask(()=>{t===Xt&&_i()})}Xt.push(e)}function Is(){for(;Xt.length>0;)_i()}function pi(e){var t=A;if(t===null)return C.f|=$t,e;if((t.f&jn)===0){if((t.f&rn)===0)throw e;t.b.error(e)}else br(e,t)}function br(e,t){for(;t!==null;){if((t.f&rn)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const an=new Set;let z=null,he=null,et=[],on=null,Nn=!1,Nr=!1;class Ie{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#a=[];#o=[];skipped_effects=new Set;is_fork=!1;process(t){et=[],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.#u(),this.#n>0||this.is_fork?(this.#s(r.effects),this.#s(r.render_effects),this.#s(r.block_effects)):(z=null,gi(r.render_effects),gi(r.effects),this.#l?.resolve()),he=null}#i(t,r){t.f^=ee;for(var n=t.first;n!==null;){var i=n.f,s=(i&(mt|Nt))!==0,a=s&&(i&ee)!==0,o=a||(i&ve)!==0||this.skipped_effects.has(n);if((n.f&rn)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!o&&n.fn!==null){s?n.f^=ee:(i&tn)!==0?r.effects.push(n):qr(n)&&((n.f&pt)!==0&&r.block_effects.push(n),Cr(n));var u=n.first;if(u!==null){n=u;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&fe)!==0?this.#a:this.#o).push(r),ne(r,ee)}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&$t)===0&&(this.current.set(t,t.v),he?.set(t,t.v))}activate(){z=this,this.apply()}deactivate(){z=null,he=null}flush(){if(this.activate(),et.length>0){if(mi(),z!==null&&z!==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.#f()}#f(){if(an.size>1){this.previous.clear();var t=he,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of an){if(i===this){r=!1;continue}const s=[];for(const[o,u]of this.current){if(i.current.has(o))if(r&&u!==i.current.get(o))i.current.set(o,u);else continue;s.push(o)}if(s.length===0)continue;const a=[...i.current.keys()].filter(o=>!this.current.has(o));if(a.length>0){const o=new Set,u=new Map;for(const f of s)yi(f,a,o,u);if(et.length>0){z=i,i.apply();for(const f of et)i.#i(f,n);et=[],i.deactivate()}}}z=null,he=t}this.committed=!0,an.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.#a)ne(t,fe),Zt(t);for(const t of this.#o)ne(t,gt),Zt(t);this.#a=[],this.#o=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=oi()).promise}static ensure(){if(z===null){const t=z=new Ie;an.add(z),Nr||Ie.enqueue(()=>{z===t&&t.flush()})}return z}static enqueue(t){Sr(t)}apply(){}}function qt(e){var t=Nr;Nr=!0;try{for(var r;;){if(Is(),et.length===0&&(z?.flush(),et.length===0))return on=null,r;mi()}}finally{Nr=t}}function mi(){var e=tr;Nn=!0;try{var t=0;for(Ji(!0);et.length>0;){var r=Ie.ensure();if(t++>1e3){var n,i;Ps()}r.process(et),Ct.clear()}}finally{Nn=!1,Ji(e),on=null}}function Ps(){try{$s()}catch(e){br(e,on)}}let wt=null;function gi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Tt|ve))===0&&qr(n)&&(wt=new Set,Cr(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Vi(n):n.fn=null),wt?.size>0)){Ct.clear();for(const i of wt){if((i.f&(Tt|ve))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)wt.has(a)&&(wt.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const u=s[o];(u.f&(Tt|ve))===0&&Cr(u)}}wt.clear()}}wt=null}}function yi(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&Q)!==0?yi(i,t,r,n):(s&(En|pt))!==0&&(s&fe)===0&&wi(i,t,n)&&(ne(i,fe),Zt(i))}}function wi(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&Q)!==0&&wi(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Zt(e){for(var t=on=e;t.parent!==null;){t=t.parent;var r=t.f;if(Nn&&t===A&&(r&pt)!==0&&(r&ui)===0)return;if((r&(Nt|mt))!==0){if((r&ee)===0)return;t.f^=ee}}et.push(t)}function Fs(e){let t=0,r=Qt(0),n;return()=>{dn()&&(l(r),Mi(()=>(t===0&&(n=la(()=>e(()=>Tr(r)))),t+=1,()=>{Sr(()=>{t-=1,t===0&&(n?.(),n=void 0,Tr(r))})})))}}var Js=cr|Kt|rn;function Bs(e,t,r){new Hs(e,t,r)}class Hs{parent;#t=!1;#e;#r=$?R:null;#n;#l;#a;#o=null;#i=null;#s=null;#u=null;#f=null;#v=0;#c=0;#h=!1;#d=null;#g=Fs(()=>(this.#d=Qt(this.#v),()=>{this.#d=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=A.b,this.#t=!!this.#n.pending,this.#a=On(()=>{if(A.b=this,$){const s=this.#r;kr(),s.nodeType===vr&&s.data===Zr?this.#w():this.#y()}else{var i=this.#p();try{this.#o=ye(()=>n(i))}catch(s){this.error(s)}this.#c>0?this.#_():this.#t=!1}return()=>{this.#f?.remove()}},Js),$&&(this.#e=R)}#y(){try{this.#o=ye(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#n.pending;t&&(this.#i=ye(()=>t(this.#e)),Ie.enqueue(()=>{var r=this.#p();this.#o=this.#b(()=>(Ie.ensure(),ye(()=>this.#l(r)))),this.#c>0?this.#_():(pr(this.#i,()=>{this.#i=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#f=ge(),this.#e.before(this.#f),t=this.#f),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#b(t){var r=A,n=C,i=me;we(this.#a),re(this.#a),hr(this.#a.ctx);try{return t()}catch(s){return pi(s),null}finally{we(r),re(n),hr(i)}}#_(){const t=this.#n.pending;this.#o!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#f),Fi(this.#o,this.#u)),this.#i===null&&(this.#i=ye(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#i&&pr(this.#i,()=>{this.#i=null}),this.#u&&(this.#e.before(this.#u),this.#u=null))}update_pending_count(t){this.#m(t),this.#v+=t,this.#d&&_r(this.#d,this.#v)}get_effect_pending(){return this.#g(),l(this.#d)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#h||!r&&!n)throw t;this.#o&&(te(this.#o),this.#o=null),this.#i&&(te(this.#i),this.#i=null),this.#s&&(te(this.#s),this.#s=null),$&&(ce(this.#r),Ls(),ce(sn()));var i=!1,s=!1;const a=()=>{if(i){Ms();return}i=!0,s&&Rs(),Ie.ensure(),this.#v=0,this.#s!==null&&pr(this.#s,()=>{this.#s=null}),this.#t=this.has_pending_snippet(),this.#o=this.#b(()=>(this.#h=!1,ye(()=>this.#l(this.#e)))),this.#c>0?this.#_():this.#t=!1};var o=C;try{re(null),s=!0,r?.(t,a),s=!1}catch(u){br(u,this.#a&&this.#a.parent)}finally{re(o)}n&&Sr(()=>{this.#s=this.#b(()=>{Ie.ensure(),this.#h=!0;try{return ye(()=>{n(this.#e,()=>t,()=>a)})}catch(u){return br(u,this.#a.parent),null}finally{this.#h=!1}})})}}function Us(e,t,r,n){const i=un;if(r.length===0&&e.length===0){n(t.map(i));return}var s=z,a=A,o=Ys();function u(){Promise.all(r.map(f=>zs(f))).then(f=>{o();try{n([...t.map(i),...f])}catch(d){(a.f&Tt)===0&&br(d,a)}s?.deactivate(),ln()}).catch(f=>{br(f,a)})}e.length>0?Promise.all(e).then(()=>{o();try{return u()}finally{s?.deactivate(),ln()}}):u()}function Ys(){var e=A,t=C,r=me,n=z;return function(s=!0){we(e),re(t),hr(r),s&&n?.activate()}}function ln(){we(null),re(null),hr(null)}function un(e){var t=Q|fe,r=C!==null&&(C.f&Q)!==0?C:null;return A!==null&&(A.f|=Kt),{ctx:me,deps:null,effects:null,equals:ci,f:t,fn:e,reactions:null,rv:0,v:Z,wv:0,parent:r??A,ac:null}}function zs(e,t){let r=A;r===null&&ks();var n=r.b,i=void 0,s=Qt(Z),a=!C,o=new Map;return na(()=>{var u=oi();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{f===z&&f.committed&&f.deactivate(),ln()})}catch(c){u.reject(c),ln()}var f=z;if(a){var d=!n.is_pending();n.update_pending_count(1),f.increment(d),o.get(f)?.reject(dr),o.delete(f),o.set(f,u)}const w=(c,g=void 0)=>{if(f.activate(),g)g!==dr&&(s.f|=$t,_r(s,g));else{(s.f&$t)!==0&&(s.f^=$t),_r(s,c);for(const[m,O]of o){if(o.delete(m),m===f)break;O.reject(dr)}}a&&(n.update_pending_count(-1),f.decrement(d))};u.promise.then(w,c=>w(null,c||"unknown"))}),Ai(()=>{for(const u of o.values())u.reject(dr)}),new Promise(u=>{function f(d){function w(){d===i?u(s):f(i)}d.then(w,w)}f(i)})}function fn(e){const t=un(e);return Hi(t),t}function Ws(e){const t=un(e);return t.equals=di,t}function ji(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)te(t[r])}}function Gs(e){for(var t=e.parent;t!==null;){if((t.f&Q)===0)return t;t=t.parent}return null}function Tn(e){var t,r=A;we(Gs(e));try{e.f&=~Er,ji(e),t=Gi(e)}finally{we(r)}return t}function xi(e){var t=Tn(e);if(e.equals(t)||(e.v=t,e.wv=zi()),!rr)if(he!==null)dn()&&he.set(e,e.v);else{var r=(e.f&De)===0?gt:ee;ne(e,r)}}let $n=new Set;const Ct=new Map;let Ei=!1;function Qt(e,t){var r={f:0,v:e,reactions:null,equals:ci,rv:0,wv:0};return r}function F(e,t){const r=Qt(e);return Hi(r),r}function ki(e,t=!1,r=!0){const n=Qt(e);return t||(n.equals=di),n}function be(e,t,r=!1){C!==null&&(!nt||(C.f&li)!==0)&&bi()&&(C.f&(Q|pt|En|li))!==0&&!xt?.includes(e)&&As();let n=r?jt(t):t;return _r(e,n)}function _r(e,t){if(!e.equals(t)){var r=e.v;rr?Ct.set(e,t):Ct.set(e,r),e.v=t;var n=Ie.ensure();n.capture(e,r),(e.f&Q)!==0&&((e.f&fe)!==0&&Tn(e),ne(e,(e.f&De)!==0?ee:gt)),e.wv=zi(),Si(e,fe),A!==null&&(A.f&ee)!==0&&(A.f&(mt|Nt))===0&&(je===null?aa([e]):je.push(e)),!n.is_fork&&$n.size>0&&!Ei&&Ks()}return t}function Ks(){Ei=!1;const e=Array.from($n);for(const t of e)(t.f&ee)!==0&&ne(t,gt),qr(t)&&Cr(t);$n.clear()}function Tr(e){be(e,e.v+1)}function Si(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,o=(a&fe)===0;if(o&&ne(s,t),(a&Q)!==0){var u=s;he?.delete(u),(a&Er)===0&&(a&De&&(s.f|=Er),Si(u,gt))}else o&&((a&pt)!==0&&wt!==null&&wt.add(s),Zt(s))}}function jt(e){if(typeof e!="object"||e===null||kn in e)return e;const t=si(e);if(t!==gs&&t!==ys)return e;var r=new Map,n=ii(e),i=F(0),s=nr,a=o=>{if(nr===s)return o();var u=C,f=nr;re(null),Yi(s);var d=o();return re(u),Yi(f),d};return n&&r.set("length",F(e.length)),new Proxy(e,{defineProperty(o,u,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Cs();var d=r.get(u);return d===void 0?d=a(()=>{var w=F(f.value);return r.set(u,w),w}):be(d,f.value,!0),!0},deleteProperty(o,u){var f=r.get(u);if(f===void 0){if(u in o){const d=a(()=>F(Z));r.set(u,d),Tr(i)}}else be(f,Z),Tr(i);return!0},get(o,u,f){if(u===kn)return e;var d=r.get(u),w=u in o;if(d===void 0&&(!w||fr(o,u)?.writable)&&(d=a(()=>{var g=jt(w?o[u]:Z),m=F(g);return m}),r.set(u,d)),d!==void 0){var c=l(d);return c===Z?void 0:c}return Reflect.get(o,u,f)},getOwnPropertyDescriptor(o,u){var f=Reflect.getOwnPropertyDescriptor(o,u);if(f&&"value"in f){var d=r.get(u);d&&(f.value=l(d))}else if(f===void 0){var w=r.get(u),c=w?.v;if(w!==void 0&&c!==Z)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(o,u){if(u===kn)return!0;var f=r.get(u),d=f!==void 0&&f.v!==Z||Reflect.has(o,u);if(f!==void 0||A!==null&&(!d||fr(o,u)?.writable)){f===void 0&&(f=a(()=>{var c=d?jt(o[u]):Z,g=F(c);return g}),r.set(u,f));var w=l(f);if(w===Z)return!1}return d},set(o,u,f,d){var w=r.get(u),c=u in o;if(n&&u==="length")for(var g=f;g<w.v;g+=1){var m=r.get(g+"");m!==void 0?be(m,Z):g in o&&(m=a(()=>F(Z)),r.set(g+"",m))}if(w===void 0)(!c||fr(o,u)?.writable)&&(w=a(()=>F(void 0)),be(w,jt(f)),r.set(u,w));else{c=w.v!==Z;var O=a(()=>jt(f));be(w,O)}var q=Reflect.getOwnPropertyDescriptor(o,u);if(q?.set&&q.set.call(d,f),!c){if(n&&typeof u=="string"){var B=r.get("length"),I=Number(u);Number.isInteger(I)&&I>=B.v&&be(B,I+1)}Tr(i)}return!0},ownKeys(o){l(i);var u=Reflect.ownKeys(o).filter(w=>{var c=r.get(w);return c===void 0||c.v!==Z});for(var[f,d]of r)d.v!==Z&&!(f in o)&&u.push(f);return u},setPrototypeOf(){Os()}})}var Ni,Ti,$i,qi;function qn(){if(Ni===void 0){Ni=window,Ti=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;$i=fr(t,"firstChild").get,qi=fr(t,"nextSibling").get,ai(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ai(r)&&(r.__t=void 0)}}function ge(e=""){return document.createTextNode(e)}function er(e){return $i.call(e)}function tt(e){return qi.call(e)}function Ot(e,t){if(!$)return er(e);var r=er(R);return r===null&&(r=R.appendChild(ge())),ce(r),r}function M(e,t=!1){if(!$){var r=er(e);return r instanceof Comment&&r.data===""?tt(r):r}if(t&&R?.nodeType!==Sn){var n=ge();return R?.before(n),ce(n),n}return R}function cn(e,t=1,r=!1){let n=$?R:e;for(var i;t--;)i=n,n=tt(n);if(!$)return n;if(r&&n?.nodeType!==Sn){var s=ge();return n===null?i?.after(s):n.before(s),ce(s),s}return ce(n),n}function Ci(e){e.textContent=""}function Oi(){return!1}function Cn(e){var t=C,r=A;re(null),we(null);try{return e()}finally{re(t),we(r)}}function Xs(e){A===null&&(C===null&&Ts(),Ns()),rr&&Ss()}function Zs(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function rt(e,t,r,n=!0){var i=A;i!==null&&(i.f&ve)!==0&&(e|=ve);var s={ctx:me,deps:null,nodes_start:null,nodes_end:null,f:e|fe|De,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{Cr(s),s.f|=jn}catch(u){throw te(s),u}else t!==null&&Zt(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&Kt)===0&&(a=a.first,(e&pt)!==0&&(e&cr)!==0&&a!==null&&(a.f|=cr)),a!==null&&(a.parent=i,i!==null&&Zs(a,i),C!==null&&(C.f&Q)!==0&&(e&Nt)===0)){var o=C;(o.effects??=[]).push(a)}}return s}function dn(){return C!==null&&!nt}function Ai(e){const t=rt(wn,null,!1);return ne(t,ee),t.teardown=e,t}function Qs(e){Xs();var t=A.f,r=!C&&(t&mt)!==0&&(t&jn)===0;if(r){var n=me;(n.e??=[]).push(e)}else return Ri(e)}function Ri(e){return rt(tn|js,e,!1)}function ea(e){Ie.ensure();const t=rt(Nt|Kt,e,!0);return()=>{te(t)}}function ta(e){Ie.ensure();const t=rt(Nt|Kt,e,!0);return(r={})=>new Promise(n=>{r.outro?pr(t,()=>{te(t),n(void 0)}):(te(t),n(void 0))})}function ra(e){return rt(tn,e,!1)}function na(e){return rt(En|Kt,e,!0)}function Mi(e,t=0){return rt(wn|t,e,!0)}function _(e,t=[],r=[],n=[],i=!1){Us(n,t,r,s=>{rt(i?tn:wn,()=>e(...s.map(l)),!0)})}function On(e,t=0){var r=rt(pt|t,e,!0);return r}function ye(e,t=!0){return rt(mt|Kt,e,!0,t)}function Li(e){var t=e.teardown;if(t!==null){const r=rr,n=C;Bi(!0),re(null);try{t.call(null)}finally{Bi(r),re(n)}}}function Di(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Cn(()=>{i.abort(dr)});var n=r.next;(r.f&Nt)!==0?r.parent=null:te(r,t),r=n}}function ia(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&mt)===0&&te(t),t=r}}function te(e,t=!0){var r=!1;(t||(e.f&ui)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(sa(e.nodes_start,e.nodes_end),r=!0),Di(e,t&&!r),vn(e,0),ne(e,Tt);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Li(e);var i=e.parent;i!==null&&i.first!==null&&Vi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function sa(e,t){for(;e!==null;){var r=e===t?null:tt(e);e.remove(),e=r}}function Vi(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 pr(e,t,r=!0){var n=[];An(e,n,!0),Ii(n,()=>{r&&te(e),t&&t()})}function Ii(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function An(e,t,r){if((e.f&ve)===0){if(e.f^=ve,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&cr)!==0||(n.f&mt)!==0&&(e.f&pt)!==0;An(n,t,s?r:!1),n=i}}}function Rn(e){Pi(e,!0)}function Pi(e,t){if((e.f&ve)!==0){e.f^=ve,(e.f&ee)===0&&(ne(e,fe),Zt(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&cr)!==0||(r.f&mt)!==0;Pi(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function Fi(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:tt(r);t.append(r),r=i}}let tr=!1;function Ji(e){tr=e}let rr=!1;function Bi(e){rr=e}let C=null,nt=!1;function re(e){C=e}let A=null;function we(e){A=e}let xt=null;function Hi(e){C!==null&&(xt===null?xt=[e]:xt.push(e))}let se=null,_e=0,je=null;function aa(e){je=e}let Ui=1,$r=0,nr=$r;function Yi(e){nr=e}function zi(){return++Ui}function qr(e){var t=e.f;if((t&fe)!==0)return!0;if(t&Q&&(e.f&=~Er),(t&gt)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(qr(s)&&xi(s),s.wv>e.wv)return!0}(t&De)!==0&&he===null&&ne(e,ee)}return!1}function Wi(e,t,r=!0){var n=e.reactions;if(n!==null&&!xt?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&Q)!==0?Wi(s,t,!1):t===s&&(r?ne(s,fe):(s.f&ee)!==0&&ne(s,gt),Zt(s))}}function Gi(e){var t=se,r=_e,n=je,i=C,s=xt,a=me,o=nt,u=nr,f=e.f;se=null,_e=0,je=null,C=(f&(mt|Nt))===0?e:null,xt=null,hr(e.ctx),nt=!1,nr=++$r,e.ac!==null&&(Cn(()=>{e.ac.abort(dr)}),e.ac=null);try{e.f|=xn;var d=e.fn,w=d(),c=e.deps;if(se!==null){var g;if(vn(e,_e),c!==null&&_e>0)for(c.length=_e+se.length,g=0;g<se.length;g++)c[_e+g]=se[g];else e.deps=c=se;if(tr&&dn()&&(e.f&De)!==0)for(g=_e;g<c.length;g++)(c[g].reactions??=[]).push(e)}else c!==null&&_e<c.length&&(vn(e,_e),c.length=_e);if(bi()&&je!==null&&!nt&&c!==null&&(e.f&(Q|gt|fe))===0)for(g=0;g<je.length;g++)Wi(je[g],e);return i!==null&&i!==e&&($r++,je!==null&&(n===null?n=je:n.push(...je))),(e.f&$t)!==0&&(e.f^=$t),w}catch(m){return pi(m)}finally{e.f^=xn,se=t,_e=r,je=n,C=i,xt=s,hr(a),nt=o,nr=u}}function oa(e,t){let r=t.reactions;if(r!==null){var n=ps.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&Q)!==0&&(se===null||!se.includes(t))&&(ne(t,gt),(t.f&De)!==0&&(t.f^=De,t.f&=~Er),ji(t),vn(t,0))}function vn(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)oa(e,r[n])}function Cr(e){var t=e.f;if((t&Tt)===0){ne(e,ee);var r=A,n=tr;A=e,tr=!0;try{(t&pt)!==0?ia(e):Di(e),Li(e);var i=Gi(e);e.teardown=typeof i=="function"?i:null,e.wv=Ui;var s;ni&&Vs&&(e.f&fe)!==0&&e.deps}finally{tr=n,A=r}}}function l(e){var t=e.f,r=(t&Q)!==0;if(C!==null&&!nt){var n=A!==null&&(A.f&Tt)!==0;if(!n&&!xt?.includes(e)){var i=C.deps;if((C.f&xn)!==0)e.rv<$r&&(e.rv=$r,se===null&&i!==null&&i[_e]===e?_e++:se===null?se=[e]:se.includes(e)||se.push(e));else{(C.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[C]:s.includes(C)||s.push(C)}}}if(rr){if(Ct.has(e))return Ct.get(e);if(r){var a=e,o=a.v;return((a.f&ee)===0&&a.reactions!==null||Xi(a))&&(o=Tn(a)),Ct.set(a,o),o}}else if(r){if(a=e,he?.has(a))return he.get(a);qr(a)&&xi(a),tr&&dn()&&(a.f&De)===0&&Ki(a)}else if(he?.has(e))return he.get(e);if((e.f&$t)!==0)throw e.v;return e.v}function Ki(e){if(e.deps!==null){e.f^=De;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Q)!==0&&(t.f&De)===0&&Ki(t)}}function Xi(e){if(e.v===Z)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ct.has(t)||(t.f&Q)!==0&&Xi(t))return!0;return!1}function la(e){var t=nt;try{return nt=!0,e()}finally{nt=t}}const ua=-7169;function ne(e,t){e.f=e.f&ua|t}const Zi=new Set,Mn=new Set;function fa(e,t,r,n={}){function i(s){if(n.capture||Or.call(t,s),!s.cancelBubble)return Cn(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Sr(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function k(e,t,r,n,i){var s={capture:n,passive:i},a=fa(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ai(()=>{t.removeEventListener(e,a,s)})}function ca(e){for(var t=0;t<e.length;t++)Zi.add(e[t]);for(var r of Mn)r(e)}let Qi=null;function Or(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Qi=e;var a=0,o=Qi===e&&e.__root;if(o){var u=i.indexOf(o);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;u<=f&&(a=u)}if(s=i[a]||e.target,s!==t){en(e,"currentTarget",{configurable:!0,get(){return s||r}});var d=C,w=A;re(null),we(null);try{for(var c,g=[];s!==null;){var m=s.assignedSlot||s.parentNode||s.host||null;try{var O=s["__"+n];O!=null&&(!s.disabled||e.target===s)&&O.call(s,e)}catch(q){c?g.push(q):c=q}if(e.cancelBubble||m===t||m===null)break;s=m}if(c){for(let q of g)queueMicrotask(()=>{throw q});throw c}}finally{e.__root=t,delete e.currentTarget,re(d),we(w)}}}function da(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function At(e,t){var r=A;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function S(e,t){var r=(t&hs)!==0,n=(t&bs)!==0,i,s=!e.startsWith("<!>");return()=>{if($)return At(R,null),R;i===void 0&&(i=da(s?e:"<!>"+e),r||(i=er(i)));var a=n||Ti?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=er(a),u=a.lastChild;At(o,u)}else At(a,a);return a}}function va(e=""){if(!$){var t=ge(e+"");return At(t,t),t}var r=R;return r.nodeType!==Sn&&(r.before(r=ge()),ce(r)),At(r,r),r}function L(){if($)return At(R,null),R;var e=document.createDocumentFragment(),t=document.createComment(""),r=ge();return e.append(t,r),At(t,r),e}function h(e,t){if($){A.nodes_end=R,kr();return}e!==null&&e.before(t)}const ha=["touchstart","touchmove"];function ba(e){return ha.includes(e)}function es(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function ts(e,t){return rs(e,t)}function _a(e,t){qn(),t.intro=t.intro??!1;const r=t.target,n=$,i=R;try{for(var s=er(r);s&&(s.nodeType!==vr||s.data!==ri);)s=tt(s);if(!s)throw ur;Ve(!0),ce(s);const a=rs(e,{...t,anchor:s});return Ve(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==ur&&console.warn("Failed to hydrate: ",a),t.recover===!1&&qs(),qn(),Ci(r),Ve(!1),ts(e,t)}finally{Ve(n),ce(i)}}const mr=new Map;function rs(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){qn();var o=new Set,u=w=>{for(var c=0;c<w.length;c++){var g=w[c];if(!o.has(g)){o.add(g);var m=ba(g);t.addEventListener(g,Or,{passive:m});var O=mr.get(g);O===void 0?(document.addEventListener(g,Or,{passive:m}),mr.set(g,1)):mr.set(g,O+1)}}};u(yn(Zi)),Mn.add(u);var f=void 0,d=ta(()=>{var w=r??t.appendChild(ge());return Bs(w,{pending:()=>{}},c=>{if(s){vi({});var g=me;g.c=s}if(i&&(n.$$events=i),$&&At(c,null),f=e(c,n)||{},$&&(A.nodes_end=R,R===null||R.nodeType!==vr||R.data!==gn))throw nn(),ur;s&&hi()}),()=>{for(var c of o){t.removeEventListener(c,Or);var g=mr.get(c);--g===0?(document.removeEventListener(c,Or),mr.delete(c)):mr.set(c,g)}Mn.delete(u),w!==r&&w.parentNode?.removeChild(w)}});return Ln.set(f,d),f}let Ln=new WeakMap;function pa(e,t){const r=Ln.get(e);return r?(Ln.delete(e),r(t)):Promise.resolve()}class ma{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=z;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Rn(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,a]of this.#t){if(this.#t.delete(s),s===t)break;const o=this.#r.get(a);o&&(te(o.effect),this.#r.delete(a))}for(const[s,a]of this.#e){if(s===r)continue;const o=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();Fi(a,f),f.append(ge()),this.#r.set(s,{effect:a,fragment:f})}else te(a);this.#e.delete(s)};this.#n||!n?pr(a,o,!1):o()}}};#a=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(te(i.effect),this.#r.delete(n))};ensure(t,r){var n=z,i=Oi();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),a=ge();s.append(a),this.#r.set(t,{effect:ye(()=>r(a)),fragment:s})}else this.#e.set(t,ye(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[o,u]of this.#e)o===t?n.skipped_effects.delete(u):n.skipped_effects.add(u);for(const[o,u]of this.#r)o===t?n.skipped_effects.delete(u.effect):n.skipped_effects.add(u.effect);n.oncommit(this.#l),n.ondiscard(this.#a)}else $&&(this.anchor=R),this.#l()}}function N(e,t,r=!1){$&&kr();var n=new ma(e),i=r?cr:0;function s(a,o){if($){const f=fi(e)===Zr;if(a===f){var u=sn();ce(u),n.anchor=u,Ve(!1),n.ensure(a,o),Ve(!0);return}}n.ensure(a,o)}On(()=>{var a=!1;t((o,u=!0)=>{a=!0,s(u,o)}),a||s(!1,null)},i)}function ga(e,t,r){for(var n=e.items,i=[],s=t.length,a=0;a<s;a++)An(t[a].e,i,!0);var o=s>0&&i.length===0&&r!==null;if(o){var u=r.parentNode;Ci(u),u.append(r),n.clear(),it(e,t[0].prev,t[s-1].next)}Ii(i,()=>{for(var f=0;f<s;f++){var d=t[f];o||(n.delete(d.k),it(e,d.prev,d.next)),te(d.e,!o)}})}function ns(e,t,r,n,i,s=null){var a=e,o={flags:t,items:new Map,first:null},u=(t&ti)!==0;if(u){var f=e;a=$?ce(er(f)):f.appendChild(ge())}$&&kr();var d=null,w=!1,c=new Map,g=Ws(()=>{var B=r();return ii(B)?B:B==null?[]:yn(B)}),m,O;function q(){ya(O,m,o,c,a,i,t,n,r),s!==null&&(m.length===0?d?Rn(d):d=ye(()=>s(a)):d!==null&&pr(d,()=>{d=null}))}On(()=>{O??=A,m=l(g);var B=m.length;if(w&&B===0)return;w=B===0;let I=!1;if($){var le=fi(a)===Zr;le!==(B===0)&&(a=sn(),ce(a),Ve(!1),I=!0)}if($){for(var J=null,Y,v=0;v<B;v++){if(R.nodeType===vr&&R.data===gn){a=R,I=!0,Ve(!1);break}var T=m[v],H=n(T,v);Y=Dn(R,o,J,null,T,H,v,i,t,r),o.items.set(H,Y),J=Y}B>0&&ce(sn())}if($)B===0&&s&&(d=ye(()=>s(a)));else if(Oi()){var Rt=new Set,U=z;for(v=0;v<B;v+=1){T=m[v],H=n(T,v);var ue=o.items.get(H)??c.get(H);ue?(t&(Kr|Xr))!==0&&is(ue,T,v,t):(Y=Dn(null,o,null,null,T,H,v,i,t,r,!0),c.set(H,Y)),Rt.add(H)}for(const[E,Et]of o.items)Rt.has(E)||U.skipped_effects.add(Et.e);U.oncommit(q)}else q();I&&Ve(!0),l(g)}),$&&(a=R)}function ya(e,t,r,n,i,s,a,o,u){var f=(a&ds)!==0,d=(a&(Kr|Xr))!==0,w=t.length,c=r.items,g=r.first,m=g,O,q=null,B,I=[],le=[],J,Y,v,T;if(f)for(T=0;T<w;T+=1)J=t[T],Y=o(J,T),v=c.get(Y),v!==void 0&&(v.a?.measure(),(B??=new Set).add(v));for(T=0;T<w;T+=1){if(J=t[T],Y=o(J,T),v=c.get(Y),v===void 0){var H=n.get(Y);if(H!==void 0){n.delete(Y),c.set(Y,H);var Rt=q?q.next:m;it(r,q,H),it(r,H,Rt),Vn(H,Rt,i),q=H}else{var U=m?m.e.nodes_start:i;q=Dn(U,r,q,q===null?r.first:q.next,J,Y,T,s,a,u)}c.set(Y,q),I=[],le=[],m=q.next;continue}if(d&&is(v,J,T,a),(v.e.f&ve)!==0&&(Rn(v.e),f&&(v.a?.unfix(),(B??=new Set).delete(v))),v!==m){if(O!==void 0&&O.has(v)){if(I.length<le.length){var ue=le[0],E;q=ue.prev;var Et=I[0],gr=I[I.length-1];for(E=0;E<I.length;E+=1)Vn(I[E],ue,i);for(E=0;E<le.length;E+=1)O.delete(le[E]);it(r,Et.prev,gr.next),it(r,q,Et),it(r,gr,ue),m=ue,q=gr,T-=1,I=[],le=[]}else O.delete(v),Vn(v,m,i),it(r,v.prev,v.next),it(r,v,q===null?r.first:q.next),it(r,q,v),q=v;continue}for(I=[],le=[];m!==null&&m.k!==Y;)(m.e.f&ve)===0&&(O??=new Set).add(m),le.push(m),m=m.next;if(m===null)continue;v=m}I.push(v),q=v,m=v.next}if(m!==null||O!==void 0){for(var Mt=O===void 0?[]:yn(O);m!==null;)(m.e.f&ve)===0&&Mt.push(m),m=m.next;var Ar=Mt.length;if(Ar>0){var ar=(a&ti)!==0&&w===0?i:null;if(f){for(T=0;T<Ar;T+=1)Mt[T].a?.measure();for(T=0;T<Ar;T+=1)Mt[T].a?.fix()}ga(r,Mt,ar)}}f&&Sr(()=>{if(B!==void 0)for(v of B)v.a?.apply()}),e.first=r.first&&r.first.e,e.last=q&&q.e;for(var Jn of n.values())te(Jn.e);n.clear()}function is(e,t,r,n){(n&Kr)!==0&&_r(e.v,t),(n&Xr)!==0?_r(e.i,r):e.i=r}function Dn(e,t,r,n,i,s,a,o,u,f,d){var w=(u&Kr)!==0,c=(u&vs)===0,g=w?c?ki(i,!1,!1):Qt(i):i,m=(u&Xr)===0?a:Qt(a),O={i:m,v:g,k:s,a:null,e:null,prev:r,next:n};try{if(e===null){var q=document.createDocumentFragment();q.append(e=ge())}return O.e=ye(()=>o(e,g,m,f),$),O.e.prev=r&&r.e,O.e.next=n&&n.e,r===null?d||(t.first=O):(r.next=O,r.e.next=O.e),n!==null&&(n.prev=O,n.e.prev=O.e),O}finally{}}function Vn(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=tt(s);i.before(s),s=a}}function it(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function In(e,t,r,n,i){$&&kr();var s=t.$$slots?.[r],a=!1;s===!0&&(s=t[r==="default"?"children":r],a=!0),s===void 0?i!==null&&i(e):s(e,a?()=>n:n)}function wa(e,t){ra(()=>{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 ja(e,t,r){var n=e==null?"":""+e;return n===""?null:n}function xa(e,t){return e==null?null:String(e)}function V(e,t,r,n,i,s){var a=e.__className;if($||a!==r||a===void 0){var o=ja(r);(!$||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return s}function D(e,t,r,n){var i=e.__style;if($||i!==t){var s=xa(t);(!$||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const Ea=Symbol("is custom element"),ka=Symbol("is html");function Pn(e,t,r,n){var i=Sa(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Es]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ss(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function p(e,t,r){var n=C,i=A;let s=$;$&&Ve(!1),re(null),we(null);try{t!=="style"&&(Fn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?ss(e).includes(t):r&&typeof r=="object")?e[t]=r:Pn(e,t,r==null?r:String(r))}finally{re(n),we(i),s&&Ve(!0)}}function Sa(e){return e.__attributes??={[Ea]:e.nodeName.includes("-"),[ka]:e.namespaceURI===_s}}var Fn=new Map;function ss(e){var t=e.getAttribute("is")||e.nodeName,r=Fn.get(t);if(r)return r;Fn.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=ms(i);for(var a in n)n[a].set&&r.push(a);i=si(i)}return r}function ir(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),o;o=e[t],o===void 0&&n!==void 0&&(o=a());var u;u=()=>{var c=e[t];return c===void 0?a():(s=!0,c)};var f=!1,d=un(()=>(f=!1,u())),w=A;return(function(c,g){if(arguments.length>0){const m=g?l(d):c;return be(d,m),f=!0,i!==void 0&&(i=m),c}return rr&&f||(w.f&Tt)!==0?d.v:l(d)})}function Na(e){return new Ta(e)}class Ta{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var o=ki(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return l(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===xs?!0:(l(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return be(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#e=(t.hydrate?_a:ts)(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)&&qt(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||en(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{pa(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 as;typeof HTMLElement=="function"&&(as=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),h(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=$a(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]=hn(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=Na({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ea(()=>{Mi(()=>{this.$$r=!0;for(const n of Qr(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=hn(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]=hn(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 Qr(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function hn(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 $a(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function qa(e,t,r,n,i,s){let a=class extends as{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Qr(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Qr(t).forEach(o=>{en(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){u=hn(o,u,t),this.$$d[o]=u;var f=this.$$c;if(f){var d=fr(f,o)?.get;d?f[o]=u:f.$set({[o]:u})}}})}),n.forEach(o=>{en(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const ae={version:"0.62.0"},Ca=(e,t)=>e.reduce((r,n)=>{for(const i of t(n))(r[i]=r[i]||[]).push(n);return r},{});var sr={},os;function Oa(){if(os)return sr;os=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.LanguageTranslator=void 0,sr.getChildStyleToPass=e,sr.addComponent=t;function e(n,i){var s,a,o="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||a===void 0)&&a.length))for(var u=function(c){var g=i?.filter(function(m){return m.name===c&&m.defaultValue!==n[c]});g&&(o+="".concat(c,":").concat(n[c],";"))},f=0,d=Object.keys(n);f<d.length;f++){var w=d[f];u(w)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}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 a=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)o.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var u=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(u+"-",""),"/").concat(a)}document.head.appendChild(o)}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,a){return n.formatDate(i,s,a||this.lang)},n.getDefaultLang=function(){var i,s,a,o="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},n.getDictionaryWord=function(i,s,a){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((o=s[a])===null||o===void 0)&&o[i]))return s[a][i];var u="",f=n.getDefaultLang();if(!a||f!==a){var d=s?.[f];d?.[i]&&(u=d[i])}return u},n.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(a||n.getDefaultLang(),s);return o.format(i)},n})();return sr.LanguageTranslator=r,sr}var oe=Oa(),Aa=S('<label class="svelte-yjqjiw"> </label>'),Ra=S("<hb-input-array-objects></hb-input-array-objects>",2),Ma=S("<hb-input-array-tags></hb-input-array-tags>",2),La=S("<hb-input-text></hb-input-text>",2),Da=S("<hb-input-color></hb-input-color>",2),Va=S("<hb-input-range></hb-input-range>",2),Ia=S("<hb-input-file></hb-input-file>",2),Pa=S("<hb-input-email></hb-input-email>",2),Fa=S("<hb-input-date></hb-input-date>",2),Ja=S("<hb-input-datetime></hb-input-datetime>",2),Ba=S("<hb-input-checkbox></hb-input-checkbox>",2),Ha=S("<hb-input-number></hb-input-number>",2),Ua=S("<hb-input-area></hb-input-area>",2),Ya=S("<hb-input-radio></hb-input-radio>",2),za=S("<hb-input-select></hb-input-select>",2),Wa=S("<hb-input-coords></hb-input-coords>",2),Ga=S('<div class="col mb-3 svelte-yjqjiw"><!> <!></div>'),Ka=S('<div class="row svelte-yjqjiw"></div>'),Xa=S('<label class="svelte-yjqjiw"> </label>'),Za=S("<hb-input-text></hb-input-text>",2),Qa=S("<hb-input-array-objects></hb-input-array-objects>",2),eo=S("<hb-input-array-tags></hb-input-array-tags>",2),to=S("<hb-input-color></hb-input-color>",2),ro=S("<hb-input-range></hb-input-range>",2),no=S("<hb-input-file></hb-input-file>",2),io=S("<hb-input-email></hb-input-email>",2),so=S("<hb-input-date></hb-input-date>",2),ao=S("<hb-input-datetime></hb-input-datetime>",2),oo=S("<hb-input-checkbox></hb-input-checkbox>",2),lo=S("<hb-input-number></hb-input-number>",2),uo=S("<hb-input-area></hb-input-area>",2),fo=S("<hb-input-radio></hb-input-radio>",2),co=S("<hb-input-select></hb-input-select>",2),vo=S("<hb-input-coords></hb-input-coords>",2),ho=S('<div class="col mb-3 svelte-yjqjiw"><!> <!></div>'),bo=S('<button part="main_button" type="button" class="btn btn-primary svelte-yjqjiw"><!></button>'),_o=S('<div id="button_container" part="button_container" class="svelte-yjqjiw"><span class="svelte-yjqjiw"><!></span> <!></div>'),po=S("<!> <!>",1),mo=S('<div class="container-fluid svelte-yjqjiw"><!></div>');const go={hash:"svelte-yjqjiw",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
1
+ (function(Qn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const ei=1,ti=2,ri=4,fs=8,cs=16,ds=1,vs=2,ni="[",Gr="[!",mn="]",fr={},X=Symbol(),hs="http://www.w3.org/1999/xhtml",gn=!1;var ii=Array.isArray,bs=Array.prototype.indexOf,yn=Array.from,Kr=Object.keys,Xr=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,_s=Object.getOwnPropertyDescriptors,ps=Object.prototype,ms=Array.prototype,si=Object.getPrototypeOf,ai=Object.isExtensible;function gs(e){for(var t=0;t<e.length;t++)e[t]()}function oi(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const G=2,wn=4,jn=8,mt=16,gt=32,qt=64,Zr=128,De=512,Z=1024,le=2048,yt=4096,de=8192,wt=16384,Qr=32768,dr=65536,li=1<<17,ui=1<<18,Xt=1<<19,ys=1<<20,Zt=32768,xn=1<<21,En=1<<22,Ct=1<<23,kn=Symbol("$state"),ws=Symbol("legacy props"),js=Symbol(""),vr=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Sn=3,hr=8;function xs(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Es(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ks(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ss(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ns(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ts(){throw new Error("https://svelte.dev/e/hydration_failed")}function $s(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Cs(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Os(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function en(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function As(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let T=!1;function Ve(e){T=e}let R;function ue(e){if(e===null)throw en(),fr;return R=e}function Er(){return ue(nt(R))}function jt(e){if(T){if(nt(R)!==null)throw en(),fr;R=e}}function Rs(e=1){if(T){for(var t=e,r=R;t--;)r=nt(r);R=r}}function tn(e=!0){for(var t=0,r=R;;){if(r.nodeType===hr){var n=r.data;if(n===mn){if(t===0)return r;t-=1}else(n===ni||n===Gr)&&(t+=1)}var i=nt(r);e&&r.remove(),r=i}}function fi(e){if(!e||e.nodeType!==hr)throw en(),fr;return e.data}function ci(e){return e===this.v}function Ms(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function di(e){return!Ms(e,this.v)}let Ls=!1,pe=null;function br(e){pe=e}function vi(e,t=!1,r){pe={p:pe,i:!1,c:null,e:null,s:e,x:null,l:null}}function hi(e){var t=pe,r=t.e;if(r!==null){t.e=null;for(var n of r)Mi(n)}return e!==void 0&&(t.x=e),t.i=!0,pe=t.p,e??{}}function bi(){return!0}let Qt=[];function _i(){var e=Qt;Qt=[],gs(e)}function kr(e){if(Qt.length===0&&!Sr){var t=Qt;queueMicrotask(()=>{t===Qt&&_i()})}Qt.push(e)}function Ds(){for(;Qt.length>0;)_i()}function pi(e){var t=A;if(t===null)return C.f|=Ct,e;if((t.f&Qr)===0){if((t.f&Zr)===0)throw e;t.b.error(e)}else _r(e,t)}function _r(e,t){for(;t!==null;){if((t.f&Zr)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const rn=new Set;let J=null,me=null,ge=[],nn=null,Nn=!1,Sr=!1;class Ie{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){ge=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#a(n,r);this.is_fork||this.#f(),this.is_deferred()?(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects)):(J=null,gi(r.render_effects),gi(r.effects),this.#l?.resolve()),me=null}#a(t,r){t.f^=Z;for(var n=t.first;n!==null;){var i=n.f,s=(i&(gt|qt))!==0,a=s&&(i&Z)!==0,l=a||(i&de)!==0||this.skipped_effects.has(n);if((n.f&Zr)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!l&&n.fn!==null){s?n.f^=Z:(i&wn)!==0?r.effects.push(n):$r(n)&&((n.f&mt)!==0&&r.block_effects.push(n),qr(n));var o=n.first;if(o!==null){n=o;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#o(t){for(const r of t)((r.f&le)!==0?this.#s:this.#i).push(r),this.#u(r.deps),ee(r,Z)}#u(t){if(t!==null)for(const r of t)(r.f&G)===0||(r.f&Zt)===0||(r.f^=Zt,this.#u(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Ct)===0&&(this.current.set(t,t.v),me?.set(t,t.v))}activate(){J=this,this.apply()}deactivate(){J===this&&(J=null,me=null)}flush(){if(this.activate(),ge.length>0){if(mi(),J!==null&&J!==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.#c()}#c(){if(rn.size>1){this.previous.clear();var t=me,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of rn){if(s===this){r=!1;continue}const a=[];for(const[o,f]of this.current){if(s.current.has(o))if(r&&f!==s.current.get(o))s.current.set(o,f);else continue;a.push(o)}if(a.length===0)continue;const l=[...s.current.keys()].filter(o=>!this.current.has(o));if(l.length>0){var i=ge;ge=[];const o=new Set,f=new Map;for(const d of a)yi(d,l,o,f);if(ge.length>0){J=s,s.apply();for(const d of ge)s.#a(d,n);s.deactivate()}ge=i}}J=null,me=t}this.committed=!0,rn.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)ee(t,le),er(t);for(const t of this.#i)ee(t,yt),er(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=oi()).promise}static ensure(){if(J===null){const t=J=new Ie;rn.add(J),Sr||Ie.enqueue(()=>{J===t&&t.flush()})}return J}static enqueue(t){kr(t)}apply(){}}function Ot(e){var t=Sr;Sr=!0;try{for(var r;;){if(Ds(),ge.length===0&&(J?.flush(),ge.length===0))return nn=null,r;mi()}}finally{Sr=t}}function mi(){var e=Mt;Nn=!0;var t=null;try{var r=0;for(fn(!0);ge.length>0;){var n=Ie.ensure();if(r++>1e3){var i,s;Vs()}n.process(ge),At.clear()}}finally{Nn=!1,fn(e),nn=null}}function Vs(){try{Ns()}catch(e){_r(e,nn)}}let xt=null;function gi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(wt|de))===0&&$r(n)&&(xt=new Set,qr(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Ii(n):n.fn=null),xt?.size>0)){At.clear();for(const i of xt){if((i.f&(wt|de))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)xt.has(a)&&(xt.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const o=s[l];(o.f&(wt|de))===0&&qr(o)}}xt.clear()}}xt=null}}function yi(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&G)!==0?yi(i,t,r,n):(s&(En|mt))!==0&&(s&le)===0&&wi(i,t,n)&&(ee(i,le),er(i))}}function wi(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&G)!==0&&wi(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function er(e){for(var t=nn=e;t.parent!==null;){t=t.parent;var r=t.f;if(Nn&&t===A&&(r&mt)!==0&&(r&ui)===0)return;if((r&(qt|gt))!==0){if((r&Z)===0)return;t.f^=Z}}ge.push(t)}function Is(e){let t=0,r=tr(0),n;return()=>{un()&&(u(r),Li(()=>(t===0&&(n=ua(()=>e(()=>Nr(r)))),t+=1,()=>{kr(()=>{t-=1,t===0&&(n?.(),n=void 0,Nr(r))})})))}}var Ps=dr|Xt|Zr;function Fs(e,t,r){new Js(e,t,r)}class Js{parent;#t=!1;#e;#r=T?R:null;#n;#l;#s;#i=null;#a=null;#o=null;#u=null;#f=null;#c=0;#d=0;#h=!1;#v=null;#g=Is(()=>(this.#v=tr(this.#c),()=>{this.#v=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=A.b,this.#t=!!this.#n.pending,this.#s=An(()=>{if(A.b=this,T){const s=this.#r;Er(),s.nodeType===hr&&s.data===Gr?this.#w():this.#y()}else{var i=this.#p();try{this.#i=ye(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#_():this.#t=!1}return()=>{this.#f?.remove()}},Ps),T&&(this.#e=R)}#y(){try{this.#i=ye(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#n.pending;t&&(this.#a=ye(()=>t(this.#e)),Ie.enqueue(()=>{var r=this.#p();this.#i=this.#b(()=>(Ie.ensure(),ye(()=>this.#l(r)))),this.#d>0?this.#_():(mr(this.#a,()=>{this.#a=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#f=he(),this.#e.before(this.#f),t=this.#f),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#b(t){var r=A,n=C,i=pe;we(this.#s),Q(this.#s),br(this.#s.ctx);try{return t()}catch(s){return pi(s),null}finally{we(r),Q(n),br(i)}}#_(){const t=this.#n.pending;this.#i!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#f),Ji(this.#i,this.#u)),this.#a===null&&(this.#a=ye(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#a&&mr(this.#a,()=>{this.#a=null}),this.#u&&(this.#e.before(this.#u),this.#u=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#v&&pr(this.#v,this.#c)}get_effect_pending(){return this.#g(),u(this.#v)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#h||!r&&!n)throw t;this.#i&&(ne(this.#i),this.#i=null),this.#a&&(ne(this.#a),this.#a=null),this.#o&&(ne(this.#o),this.#o=null),T&&(ue(this.#r),Rs(),ue(tn()));var i=!1,s=!1;const a=()=>{if(i){As();return}i=!0,s&&Os(),Ie.ensure(),this.#c=0,this.#o!==null&&mr(this.#o,()=>{this.#o=null}),this.#t=this.has_pending_snippet(),this.#i=this.#b(()=>(this.#h=!1,ye(()=>this.#l(this.#e)))),this.#d>0?this.#_():this.#t=!1};var l=C;try{Q(null),s=!0,r?.(t,a),s=!1}catch(o){_r(o,this.#s&&this.#s.parent)}finally{Q(l)}n&&kr(()=>{this.#o=this.#b(()=>{Ie.ensure(),this.#h=!0;try{return ye(()=>{n(this.#e,()=>t,()=>a)})}catch(o){return _r(o,this.#s.parent),null}finally{this.#h=!1}})})}}function Bs(e,t,r){for(var n=[],i=t.length,s=0;s<i;s++)Rn(t[s].e,n,!0);Pi(n,()=>{var a=n.length===0&&r!==null;if(a){var l=r,o=l.parentNode;Oi(o),o.append(l),e.items.clear(),rt(e,t[0].prev,t[i-1].next)}for(var f=0;f<i;f++){var d=t[f];a||(e.items.delete(d.k),rt(e,d.prev,d.next)),ne(d.e,!a)}e.first===t[0]&&(e.first=t[0].prev)})}function ji(e,t,r,n,i,s=null){var a=e,l=new Map,o=null,f=(t&ri)!==0,d=(t&ei)!==0,g=(t&ti)!==0;if(f){var c=e;a=T?ue(rr(c)):c.appendChild(he())}T&&Er();var v=null,$=Gs(()=>{var q=r();return ii(q)?q:q==null?[]:yn(q)}),F,j=!0;function P(){Hs(Pe,F,a,t,n),v!==null&&(F.length===0?(v.fragment?(a.before(v.fragment),v.fragment=null):Mn(v.effect),B.first=v.effect):mr(v.effect,()=>{v=null}))}var B=An(()=>{F=u($);var q=F.length;let Fe=!1;if(T){var k=fi(a)===Gr;k!==(q===0)&&(a=tn(),ue(a),Ve(!1),Fe=!0)}for(var K=new Set,te=J,St=null,H=Ai(),oe=0;oe<q;oe+=1){T&&R.nodeType===hr&&R.data===mn&&(a=R,Fe=!0,Ve(!1));var S=F[oe],Nt=n(S,oe),fe=j?null:l.get(Nt);fe?(d&&pr(fe.v,S),g?pr(fe.i,oe):fe.i=oe,H&&te.skipped_effects.delete(fe.e)):(fe=Us(j?a:null,St,S,Nt,oe,i,t,r),j&&(fe.o=!0,St===null?o=fe:St.next=fe,St=fe),l.set(Nt,fe)),K.add(Nt)}if(q===0&&s&&!v)if(j)v={fragment:null,effect:ye(()=>s(a))};else{var Or=document.createDocumentFragment(),vn=he();Or.append(vn),v={fragment:Or,effect:ye(()=>s(vn))}}if(T&&q>0&&ue(tn()),!j)if(H){for(const[or,Fn]of l)K.has(or)||te.skipped_effects.add(Fn.e);te.oncommit(P),te.ondiscard(()=>{})}else P();Fe&&Ve(!0),u($)}),Pe={effect:B,items:l,first:o};j=!1,T&&(a=R)}function Hs(e,t,r,n,i){var s=(n&fs)!==0,a=t.length,l=e.items,o=e.first,f,d=null,g,c=[],v=[],$,F,j,P;if(s)for(P=0;P<a;P+=1)$=t[P],F=i($,P),j=l.get(F),j.a?.measure(),(g??=new Set).add(j);for(P=0;P<a;P+=1){if($=t[P],F=i($,P),j=l.get(F),e.first??=j,!j.o){j.o=!0;var B=d?d.next:o;rt(e,d,j),rt(e,j,B),Tn(j,B,r),d=j,c=[],v=[],o=d.next;continue}if((j.e.f&de)!==0&&(Mn(j.e),s&&(j.a?.unfix(),(g??=new Set).delete(j))),j!==o){if(f!==void 0&&f.has(j)){if(c.length<v.length){var Pe=v[0],q;d=Pe.prev;var Fe=c[0],k=c[c.length-1];for(q=0;q<c.length;q+=1)Tn(c[q],Pe,r);for(q=0;q<v.length;q+=1)f.delete(v[q]);rt(e,Fe.prev,k.next),rt(e,d,Fe),rt(e,k,Pe),o=Pe,d=k,P-=1,c=[],v=[]}else f.delete(j),Tn(j,o,r),rt(e,j.prev,j.next),rt(e,j,d===null?e.first:d.next),rt(e,d,j),d=j;continue}for(c=[],v=[];o!==null&&o.k!==F;)(o.e.f&de)===0&&(f??=new Set).add(o),v.push(o),o=o.next;if(o===null)continue;j=o}c.push(j),d=j,o=j.next}if(o!==null||f!==void 0){for(var K=f===void 0?[]:yn(f);o!==null;)(o.e.f&de)===0&&K.push(o),o=o.next;var te=K.length;if(te>0){var St=(n&ri)!==0&&a===0?r:null;if(s){for(P=0;P<te;P+=1)K[P].a?.measure();for(P=0;P<te;P+=1)K[P].a?.fix()}Bs(e,K,St)}}s&&kr(()=>{if(g!==void 0)for(j of g)j.a?.apply()})}function Us(e,t,r,n,i,s,a,l){var o=(a&ei)!==0,f=(a&cs)===0,d=o?f?Si(r,!1,!1):tr(r):r,g=(a&ti)===0?i:tr(i),c={i:g,v:d,k:n,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var v=document.createDocumentFragment();v.append(e=he())}return c.e=ye(()=>s(e,d,g,l)),t!==null&&(t.next=c),c}finally{}}function Tn(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=nt(s);i.before(s),s=a}}function rt(e,t,r){t===null?(e.first=r,e.effect.first=r&&r.e):(t.e.next&&(t.e.next.prev=null),t.next=r,t.e.next=r&&r.e),r===null?e.effect.last=t&&t.e:(r.e.prev&&(r.e.prev.next=null),r.prev=t,r.e.prev=t&&t.e)}function Ys(e,t,r,n){const i=an;if(r.length===0&&e.length===0){n(t.map(i));return}var s=J,a=A,l=zs();function o(){Promise.all(r.map(f=>Ws(f))).then(f=>{l();try{n([...t.map(i),...f])}catch(d){(a.f&wt)===0&&_r(d,a)}s?.deactivate(),sn()}).catch(f=>{_r(f,a)})}e.length>0?Promise.all(e).then(()=>{l();try{return o()}finally{s?.deactivate(),sn()}}):o()}function zs(){var e=A,t=C,r=pe,n=J;return function(s=!0){we(e),Q(t),br(r),s&&n?.activate()}}function sn(){we(null),Q(null),br(null)}function an(e){var t=G|le,r=C!==null&&(C.f&G)!==0?C:null;return A!==null&&(A.f|=Xt),{ctx:pe,deps:null,effects:null,equals:ci,f:t,fn:e,reactions:null,rv:0,v:X,wv:0,parent:r??A,ac:null}}function Ws(e,t){let r=A;r===null&&xs();var n=r.b,i=void 0,s=tr(X),a=!C,l=new Map;return ia(()=>{var o=oi();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{f===J&&f.committed&&f.deactivate(),sn()})}catch(c){o.reject(c),sn()}var f=J;if(a){var d=!n.is_pending();n.update_pending_count(1),f.increment(d),l.get(f)?.reject(vr),l.delete(f),l.set(f,o)}const g=(c,v=void 0)=>{if(f.activate(),v)v!==vr&&(s.f|=Ct,pr(s,v));else{(s.f&Ct)!==0&&(s.f^=Ct),pr(s,c);for(const[$,F]of l){if(l.delete($),$===f)break;F.reject(vr)}}a&&(n.update_pending_count(-1),f.decrement(d))};o.promise.then(g,c=>g(null,c||"unknown"))}),Ri(()=>{for(const o of l.values())o.reject(vr)}),new Promise(o=>{function f(d){function g(){d===i?o(s):f(i)}d.then(g,g)}f(i)})}function on(e){const t=an(e);return Hi(t),t}function Gs(e){const t=an(e);return t.equals=di,t}function xi(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ne(t[r])}}function Ks(e){for(var t=e.parent;t!==null;){if((t.f&G)===0)return(t.f&wt)===0?t:null;t=t.parent}return null}function $n(e){var t,r=A;we(Ks(e));try{e.f&=~Zt,xi(e),t=Gi(e)}finally{we(r)}return t}function Ei(e){var t=$n(e);if(e.equals(t)||(J?.is_fork||(e.v=t),e.wv=zi()),!nr)if(me!==null)un()&&me.set(e,t);else{var r=(e.f&De)===0?yt:Z;ee(e,r)}}let qn=new Set;const At=new Map;let ki=!1;function tr(e,t){var r={f:0,v:e,reactions:null,equals:ci,rv:0,wv:0};return r}function I(e,t){const r=tr(e);return Hi(r),r}function Si(e,t=!1,r=!0){const n=tr(e);return t||(n.equals=di),n}function ve(e,t,r=!1){C!==null&&(!st||(C.f&li)!==0)&&bi()&&(C.f&(G|mt|En|li))!==0&&!kt?.includes(e)&&Cs();let n=r?Et(t):t;return pr(e,n)}function pr(e,t){if(!e.equals(t)){var r=e.v;nr?At.set(e,t):At.set(e,r),e.v=t;var n=Ie.ensure();n.capture(e,r),(e.f&G)!==0&&((e.f&le)!==0&&$n(e),ee(e,(e.f&De)!==0?Z:yt)),e.wv=zi(),Ni(e,le),A!==null&&(A.f&Z)!==0&&(A.f&(gt|qt))===0&&(je===null?oa([e]):je.push(e)),!n.is_fork&&qn.size>0&&!ki&&Xs()}return t}function Xs(){ki=!1;var e=Mt;fn(!0);const t=Array.from(qn);try{for(const r of t)(r.f&Z)!==0&&ee(r,yt),$r(r)&&qr(r)}finally{fn(e)}qn.clear()}function Nr(e){ve(e,e.v+1)}function Ni(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,l=(a&le)===0;if(l&&ee(s,t),(a&G)!==0){var o=s;me?.delete(o),(a&Zt)===0&&(a&De&&(s.f|=Zt),Ni(o,yt))}else l&&((a&mt)!==0&&xt!==null&&xt.add(s),er(s))}}function Et(e){if(typeof e!="object"||e===null||kn in e)return e;const t=si(e);if(t!==ps&&t!==ms)return e;var r=new Map,n=ii(e),i=I(0),s=ir,a=l=>{if(ir===s)return l();var o=C,f=ir;Q(null),Yi(s);var d=l();return Q(o),Yi(f),d};return n&&r.set("length",I(e.length)),new Proxy(e,{defineProperty(l,o,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&$s();var d=r.get(o);return d===void 0?d=a(()=>{var g=I(f.value);return r.set(o,g),g}):ve(d,f.value,!0),!0},deleteProperty(l,o){var f=r.get(o);if(f===void 0){if(o in l){const d=a(()=>I(X));r.set(o,d),Nr(i)}}else ve(f,X),Nr(i);return!0},get(l,o,f){if(o===kn)return e;var d=r.get(o),g=o in l;if(d===void 0&&(!g||cr(l,o)?.writable)&&(d=a(()=>{var v=Et(g?l[o]:X),$=I(v);return $}),r.set(o,d)),d!==void 0){var c=u(d);return c===X?void 0:c}return Reflect.get(l,o,f)},getOwnPropertyDescriptor(l,o){var f=Reflect.getOwnPropertyDescriptor(l,o);if(f&&"value"in f){var d=r.get(o);d&&(f.value=u(d))}else if(f===void 0){var g=r.get(o),c=g?.v;if(g!==void 0&&c!==X)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(l,o){if(o===kn)return!0;var f=r.get(o),d=f!==void 0&&f.v!==X||Reflect.has(l,o);if(f!==void 0||A!==null&&(!d||cr(l,o)?.writable)){f===void 0&&(f=a(()=>{var c=d?Et(l[o]):X,v=I(c);return v}),r.set(o,f));var g=u(f);if(g===X)return!1}return d},set(l,o,f,d){var g=r.get(o),c=o in l;if(n&&o==="length")for(var v=f;v<g.v;v+=1){var $=r.get(v+"");$!==void 0?ve($,X):v in l&&($=a(()=>I(X)),r.set(v+"",$))}if(g===void 0)(!c||cr(l,o)?.writable)&&(g=a(()=>I(void 0)),ve(g,Et(f)),r.set(o,g));else{c=g.v!==X;var F=a(()=>Et(f));ve(g,F)}var j=Reflect.getOwnPropertyDescriptor(l,o);if(j?.set&&j.set.call(d,f),!c){if(n&&typeof o=="string"){var P=r.get("length"),B=Number(o);Number.isInteger(B)&&B>=P.v&&ve(P,B+1)}Nr(i)}return!0},ownKeys(l){u(i);var o=Reflect.ownKeys(l).filter(g=>{var c=r.get(g);return c===void 0||c.v!==X});for(var[f,d]of r)d.v!==X&&!(f in l)&&o.push(f);return o},setPrototypeOf(){qs()}})}var Ti,$i,qi,Ci;function Cn(){if(Ti===void 0){Ti=window,$i=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;qi=cr(t,"firstChild").get,Ci=cr(t,"nextSibling").get,ai(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ai(r)&&(r.__t=void 0)}}function he(e=""){return document.createTextNode(e)}function rr(e){return qi.call(e)}function nt(e){return Ci.call(e)}function Rt(e,t){if(!T)return rr(e);var r=rr(R);return r===null&&(r=R.appendChild(he())),ue(r),r}function O(e,t=!1){if(!T){var r=rr(e);return r instanceof Comment&&r.data===""?nt(r):r}if(t&&R?.nodeType!==Sn){var n=he();return R?.before(n),ue(n),n}return R}function ln(e,t=1,r=!1){let n=T?R:e;for(var i;t--;)i=n,n=nt(n);if(!T)return n;if(r&&n?.nodeType!==Sn){var s=he();return n===null?i?.after(s):n.before(s),ue(s),s}return ue(n),n}function Oi(e){e.textContent=""}function Ai(){return!1}function On(e){var t=C,r=A;Q(null),we(null);try{return e()}finally{Q(t),we(r)}}function Zs(e){A===null&&(C===null&&Ss(),ks()),nr&&Es()}function Qs(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function it(e,t,r){var n=A;n!==null&&(n.f&de)!==0&&(e|=de);var i={ctx:pe,deps:null,nodes_start:null,nodes_end:null,f:e|le|De,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{qr(i),i.f|=Qr}catch(l){throw ne(i),l}else t!==null&&er(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&Xt)===0&&(s=s.first,(e&mt)!==0&&(e&dr)!==0&&s!==null&&(s.f|=dr)),s!==null&&(s.parent=n,n!==null&&Qs(s,n),C!==null&&(C.f&G)!==0&&(e&qt)===0)){var a=C;(a.effects??=[]).push(s)}return i}function un(){return C!==null&&!st}function Ri(e){const t=it(jn,null,!1);return ee(t,Z),t.teardown=e,t}function ea(e){Zs();var t=A.f,r=!C&&(t&gt)!==0&&(t&Qr)===0;if(r){var n=pe;(n.e??=[]).push(e)}else return Mi(e)}function Mi(e){return it(wn|ys,e,!1)}function ta(e){Ie.ensure();const t=it(qt|Xt,e,!0);return()=>{ne(t)}}function ra(e){Ie.ensure();const t=it(qt|Xt,e,!0);return(r={})=>new Promise(n=>{r.outro?mr(t,()=>{ne(t),n(void 0)}):(ne(t),n(void 0))})}function na(e){return it(wn,e,!1)}function ia(e){return it(En|Xt,e,!0)}function Li(e,t=0){return it(jn|t,e,!0)}function _(e,t=[],r=[],n=[]){Ys(n,t,r,i=>{it(jn,()=>e(...i.map(u)),!0)})}function An(e,t=0){var r=it(mt|t,e,!0);return r}function ye(e){return it(gt|Xt,e,!0)}function Di(e){var t=e.teardown;if(t!==null){const r=nr,n=C;Bi(!0),Q(null);try{t.call(null)}finally{Bi(r),Q(n)}}}function Vi(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&On(()=>{i.abort(vr)});var n=r.next;(r.f&qt)!==0?r.parent=null:ne(r,t),r=n}}function sa(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&gt)===0&&ne(t),t=r}}function ne(e,t=!0){var r=!1;(t||(e.f&ui)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(aa(e.nodes_start,e.nodes_end),r=!0),Vi(e,t&&!r),cn(e,0),ee(e,wt);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Di(e);var i=e.parent;i!==null&&i.first!==null&&Ii(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function aa(e,t){for(;e!==null;){var r=e===t?null:nt(e);e.remove(),e=r}}function Ii(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 mr(e,t,r=!0){var n=[];Rn(e,n,!0),Pi(n,()=>{r&&ne(e),t&&t()})}function Pi(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Rn(e,t,r){if((e.f&de)===0){if(e.f^=de,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&dr)!==0||(n.f&gt)!==0&&(e.f&mt)!==0;Rn(n,t,s?r:!1),n=i}}}function Mn(e){Fi(e,!0)}function Fi(e,t){if((e.f&de)!==0){e.f^=de,(e.f&Z)===0&&(ee(e,le),er(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&dr)!==0||(r.f&gt)!==0;Fi(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function Ji(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:nt(r);t.append(r),r=i}}let Mt=!1;function fn(e){Mt=e}let nr=!1;function Bi(e){nr=e}let C=null,st=!1;function Q(e){C=e}let A=null;function we(e){A=e}let kt=null;function Hi(e){C!==null&&(kt===null?kt=[e]:kt.push(e))}let ie=null,be=0,je=null;function oa(e){je=e}let Ui=1,Tr=0,ir=Tr;function Yi(e){ir=e}function zi(){return++Ui}function $r(e){var t=e.f;if((t&le)!==0)return!0;if(t&G&&(e.f&=~Zt),(t&yt)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if($r(s)&&Ei(s),s.wv>e.wv)return!0}(t&De)!==0&&me===null&&ee(e,Z)}return!1}function Wi(e,t,r=!0){var n=e.reactions;if(n!==null&&!kt?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&G)!==0?Wi(s,t,!1):t===s&&(r?ee(s,le):(s.f&Z)!==0&&ee(s,yt),er(s))}}function Gi(e){var t=ie,r=be,n=je,i=C,s=kt,a=pe,l=st,o=ir,f=e.f;ie=null,be=0,je=null,C=(f&(gt|qt))===0?e:null,kt=null,br(e.ctx),st=!1,ir=++Tr,e.ac!==null&&(On(()=>{e.ac.abort(vr)}),e.ac=null);try{e.f|=xn;var d=e.fn,g=d(),c=e.deps;if(ie!==null){var v;if(cn(e,be),c!==null&&be>0)for(c.length=be+ie.length,v=0;v<ie.length;v++)c[be+v]=ie[v];else e.deps=c=ie;if(Mt&&un()&&(e.f&De)!==0)for(v=be;v<c.length;v++)(c[v].reactions??=[]).push(e)}else c!==null&&be<c.length&&(cn(e,be),c.length=be);if(bi()&&je!==null&&!st&&c!==null&&(e.f&(G|yt|le))===0)for(v=0;v<je.length;v++)Wi(je[v],e);return i!==null&&i!==e&&(Tr++,je!==null&&(n===null?n=je:n.push(...je))),(e.f&Ct)!==0&&(e.f^=Ct),g}catch($){return pi($)}finally{e.f^=xn,ie=t,be=r,je=n,C=i,kt=s,br(a),st=l,ir=o}}function la(e,t){let r=t.reactions;if(r!==null){var n=bs.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&G)!==0&&(ie===null||!ie.includes(t))&&(ee(t,yt),(t.f&De)!==0&&(t.f^=De,t.f&=~Zt),xi(t),cn(t,0))}function cn(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)la(e,r[n])}function qr(e){var t=e.f;if((t&wt)===0){ee(e,Z);var r=A,n=Mt;A=e,Mt=!0;try{(t&mt)!==0?sa(e):Vi(e),Di(e);var i=Gi(e);e.teardown=typeof i=="function"?i:null,e.wv=Ui;var s;gn&&Ls&&(e.f&le)!==0&&e.deps}finally{Mt=n,A=r}}}function u(e){var t=e.f,r=(t&G)!==0;if(C!==null&&!st){var n=A!==null&&(A.f&wt)!==0;if(!n&&!kt?.includes(e)){var i=C.deps;if((C.f&xn)!==0)e.rv<Tr&&(e.rv=Tr,ie===null&&i!==null&&i[be]===e?be++:ie===null?ie=[e]:ie.includes(e)||ie.push(e));else{(C.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[C]:s.includes(C)||s.push(C)}}}if(nr){if(At.has(e))return At.get(e);if(r){var a=e,l=a.v;return((a.f&Z)===0&&a.reactions!==null||Xi(a))&&(l=$n(a)),At.set(a,l),l}}else r&&!me?.has(e)&&(a=e,$r(a)&&Ei(a),Mt&&un()&&(a.f&De)===0&&Ki(a));if(me?.has(e))return me.get(e);if((e.f&Ct)!==0)throw e.v;return e.v}function Ki(e){if(e.deps!==null){e.f^=De;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&G)!==0&&(t.f&De)===0&&Ki(t)}}function Xi(e){if(e.v===X)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(At.has(t)||(t.f&G)!==0&&Xi(t))return!0;return!1}function ua(e){var t=st;try{return st=!0,e()}finally{st=t}}const fa=-7169;function ee(e,t){e.f=e.f&fa|t}const Zi=new Set,Ln=new Set;function ca(e,t,r,n={}){function i(s){if(n.capture||Cr.call(t,s),!s.cancelBubble)return On(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?kr(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function x(e,t,r,n,i){var s={capture:n,passive:i},a=ca(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ri(()=>{t.removeEventListener(e,a,s)})}function da(e){for(var t=0;t<e.length;t++)Zi.add(e[t]);for(var r of Ln)r(e)}let Qi=null;function Cr(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Qi=e;var a=0,l=Qi===e&&e.__root;if(l){var o=i.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;o<=f&&(a=o)}if(s=i[a]||e.target,s!==t){Xr(e,"currentTarget",{configurable:!0,get(){return s||r}});var d=C,g=A;Q(null),we(null);try{for(var c,v=[];s!==null;){var $=s.assignedSlot||s.parentNode||s.host||null;try{var F=s["__"+n];F!=null&&(!s.disabled||e.target===s)&&F.call(s,e)}catch(j){c?v.push(j):c=j}if(e.cancelBubble||$===t||$===null)break;s=$}if(c){for(let j of v)queueMicrotask(()=>{throw j});throw c}}finally{e.__root=t,delete e.currentTarget,Q(d),we(g)}}}function va(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Lt(e,t){var r=A;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function E(e,t){var r=(t&ds)!==0,n=(t&vs)!==0,i,s=!e.startsWith("<!>");return()=>{if(T)return Lt(R,null),R;i===void 0&&(i=va(s?e:"<!>"+e),r||(i=rr(i)));var a=n||$i?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=rr(a),o=a.lastChild;Lt(l,o)}else Lt(a,a);return a}}function ha(e=""){if(!T){var t=he(e+"");return Lt(t,t),t}var r=R;return r.nodeType!==Sn&&(r.before(r=he()),ue(r)),Lt(r,r),r}function M(){if(T)return Lt(R,null),R;var e=document.createDocumentFragment(),t=document.createComment(""),r=he();return e.append(t,r),Lt(t,r),e}function h(e,t){if(T){var r=A;((r.f&Qr)===0||r.nodes_end===null)&&(r.nodes_end=R),Er();return}e!==null&&e.before(t)}const ba=["touchstart","touchmove"];function _a(e){return ba.includes(e)}function es(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function ts(e,t){return rs(e,t)}function pa(e,t){Cn(),t.intro=t.intro??!1;const r=t.target,n=T,i=R;try{for(var s=rr(r);s&&(s.nodeType!==hr||s.data!==ni);)s=nt(s);if(!s)throw fr;Ve(!0),ue(s);const a=rs(e,{...t,anchor:s});return Ve(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==fr&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Ts(),Cn(),Oi(r),Ve(!1),ts(e,t)}finally{Ve(n),ue(i)}}const gr=new Map;function rs(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){Cn();var l=new Set,o=g=>{for(var c=0;c<g.length;c++){var v=g[c];if(!l.has(v)){l.add(v);var $=_a(v);t.addEventListener(v,Cr,{passive:$});var F=gr.get(v);F===void 0?(document.addEventListener(v,Cr,{passive:$}),gr.set(v,1)):gr.set(v,F+1)}}};o(yn(Zi)),Ln.add(o);var f=void 0,d=ra(()=>{var g=r??t.appendChild(he());return Fs(g,{pending:()=>{}},c=>{if(s){vi({});var v=pe;v.c=s}if(i&&(n.$$events=i),T&&Lt(c,null),f=e(c,n)||{},T&&(A.nodes_end=R,R===null||R.nodeType!==hr||R.data!==mn))throw en(),fr;s&&hi()}),()=>{for(var c of l){t.removeEventListener(c,Cr);var v=gr.get(c);--v===0?(document.removeEventListener(c,Cr),gr.delete(c)):gr.set(c,v)}Ln.delete(o),g!==r&&g.parentNode?.removeChild(g)}});return Dn.set(f,d),f}let Dn=new WeakMap;function ma(e,t){const r=Dn.get(e);return r?(Dn.delete(e),r(t)):Promise.resolve()}class ga{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=J;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Mn(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,a]of this.#t){if(this.#t.delete(s),s===t)break;const l=this.#r.get(a);l&&(ne(l.effect),this.#r.delete(a))}for(const[s,a]of this.#e){if(s===r||this.#n.has(s))continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();Ji(a,f),f.append(he()),this.#r.set(s,{effect:a,fragment:f})}else ne(a);this.#n.delete(s),this.#e.delete(s)};this.#l||!n?(this.#n.add(s),mr(a,l,!1)):l()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(ne(i.effect),this.#r.delete(n))};ensure(t,r){var n=J,i=Ai();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),a=he();s.append(a),this.#r.set(t,{effect:ye(()=>r(a)),fragment:s})}else this.#e.set(t,ye(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[l,o]of this.#e)l===t?n.skipped_effects.delete(o):n.skipped_effects.add(o);for(const[l,o]of this.#r)l===t?n.skipped_effects.delete(o.effect):n.skipped_effects.add(o.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else T&&(this.anchor=R),this.#s()}}function N(e,t,r=!1){T&&Er();var n=new ga(e),i=r?dr:0;function s(a,l){if(T){const f=fi(e)===Gr;if(a===f){var o=tn();ue(o),n.anchor=o,Ve(!1),n.ensure(a,l),Ve(!0);return}}n.ensure(a,l)}An(()=>{var a=!1;t((l,o=!0)=>{a=!0,s(o,l)}),a||s(!1,null)},i)}function Vn(e,t,r,n,i){T&&Er();var s=t.$$slots?.[r],a=!1;s===!0&&(s=t[r==="default"?"children":r],a=!0),s===void 0?i!==null&&i(e):s(e,a?()=>n:n)}function ya(e,t){na(()=>{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 wa(e,t,r){var n=e==null?"":""+e;return n===""?null:n}function ja(e,t){return e==null?null:String(e)}function D(e,t,r,n,i,s){var a=e.__className;if(T||a!==r||a===void 0){var l=wa(r);(!T||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return s}function L(e,t,r,n){var i=e.__style;if(T||i!==t){var s=ja(t);(!T||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const xa=Symbol("is custom element"),Ea=Symbol("is html");function In(e,t,r,n){var i=ka(e);T&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[js]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ns(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function p(e,t,r){var n=C,i=A;let s=T;T&&Ve(!1),Q(null),we(null);try{t!=="style"&&(Pn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?ns(e).includes(t):r&&typeof r=="object")?e[t]=r:In(e,t,r==null?r:String(r))}finally{Q(n),we(i),s&&Ve(!0)}}function ka(e){return e.__attributes??={[xa]:e.nodeName.includes("-"),[Ea]:e.namespaceURI===hs}}var Pn=new Map;function ns(e){var t=e.getAttribute("is")||e.nodeName,r=Pn.get(t);if(r)return r;Pn.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=_s(i);for(var a in n)n[a].set&&r.push(a);i=si(i)}return r}function sr(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),l;l=e[t],l===void 0&&n!==void 0&&(l=a());var o;o=()=>{var c=e[t];return c===void 0?a():(s=!0,c)};var f=!1,d=an(()=>(f=!1,o())),g=A;return(function(c,v){if(arguments.length>0){const $=v?u(d):c;return ve(d,$),f=!0,i!==void 0&&(i=$),c}return nr&&f||(g.f&wt)!==0?d.v:u(d)})}function Sa(e){return new Na(e)}class Na{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var l=Si(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return u(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===ws?!0:(u(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return ve(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?pa:ts)(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)&&Ot(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Xr(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{ma(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 is;typeof HTMLElement=="function"&&(is=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),h(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Ta(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]=dn(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=Sa({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ta(()=>{Li(()=>{this.$$r=!0;for(const n of Kr(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=dn(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]=dn(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 Kr(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function dn(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 Ta(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function $a(e,t,r,n,i,s){let a=class extends is{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Kr(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Kr(t).forEach(l=>{Xr(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=dn(l,o,t),this.$$d[l]=o;var f=this.$$c;if(f){var d=cr(f,l)?.get;d?f[l]=o:f.$set({[l]:o})}}})}),n.forEach(l=>{Xr(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}const se={version:"0.62.2"},qa=(e,t)=>e.reduce((r,n)=>{for(const i of t(n))(r[i]=r[i]||[]).push(n);return r},{});var ar={},ss;function Ca(){if(ss)return ar;ss=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.LanguageTranslator=void 0,ar.getChildStyleToPass=e,ar.addComponent=t;function e(n,i){var s,a,l="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||a===void 0)&&a.length))for(var o=function(c){var v=i?.filter(function($){return $.name===c&&$.defaultValue!==n[c]});v&&(l+="".concat(c,":").concat(n[c],";"))},f=0,d=Object.keys(n);f<d.length;f++){var g=d[f];o(g)}}catch(c){console.error("error getting child style to pass",c)}finally{return l}}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 a=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)l.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(a)}document.head.appendChild(l)}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,a){return n.formatDate(i,s,a||this.lang)},n.getDefaultLang=function(){var i,s,a,l="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},n.getDictionaryWord=function(i,s,a){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((l=s[a])===null||l===void 0)&&l[i]))return s[a][i];var o="",f=n.getDefaultLang();if(!a||f!==a){var d=s?.[f];d?.[i]&&(o=d[i])}return o},n.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||n.getDefaultLang(),s);return l.format(i)},n})();return ar.LanguageTranslator=r,ar}var ae=Ca(),Oa=E('<label class="svelte-yjqjiw"> </label>'),Aa=E("<hb-input-array-objects></hb-input-array-objects>",2),Ra=E("<hb-input-array-tags></hb-input-array-tags>",2),Ma=E("<hb-input-text></hb-input-text>",2),La=E("<hb-input-color></hb-input-color>",2),Da=E("<hb-input-range></hb-input-range>",2),Va=E("<hb-input-file></hb-input-file>",2),Ia=E("<hb-input-email></hb-input-email>",2),Pa=E("<hb-input-date></hb-input-date>",2),Fa=E("<hb-input-datetime></hb-input-datetime>",2),Ja=E("<hb-input-checkbox></hb-input-checkbox>",2),Ba=E("<hb-input-number></hb-input-number>",2),Ha=E("<hb-input-area></hb-input-area>",2),Ua=E("<hb-input-radio></hb-input-radio>",2),Ya=E("<hb-input-select></hb-input-select>",2),za=E("<hb-input-coords></hb-input-coords>",2),Wa=E('<div class="col mb-3 svelte-yjqjiw"><!> <!></div>'),Ga=E('<div class="row svelte-yjqjiw"></div>'),Ka=E('<label class="svelte-yjqjiw"> </label>'),Xa=E("<hb-input-text></hb-input-text>",2),Za=E("<hb-input-array-objects></hb-input-array-objects>",2),Qa=E("<hb-input-array-tags></hb-input-array-tags>",2),eo=E("<hb-input-color></hb-input-color>",2),to=E("<hb-input-range></hb-input-range>",2),ro=E("<hb-input-file></hb-input-file>",2),no=E("<hb-input-email></hb-input-email>",2),io=E("<hb-input-date></hb-input-date>",2),so=E("<hb-input-datetime></hb-input-datetime>",2),ao=E("<hb-input-checkbox></hb-input-checkbox>",2),oo=E("<hb-input-number></hb-input-number>",2),lo=E("<hb-input-area></hb-input-area>",2),uo=E("<hb-input-radio></hb-input-radio>",2),fo=E("<hb-input-select></hb-input-select>",2),co=E("<hb-input-coords></hb-input-coords>",2),vo=E('<div class="col mb-3 svelte-yjqjiw"><!> <!></div>'),ho=E('<button part="main_button" type="button" class="btn btn-primary svelte-yjqjiw"><!></button>'),bo=E('<div id="button_container" part="button_container" class="svelte-yjqjiw"><span class="svelte-yjqjiw"><!></span> <!></div>'),_o=E("<!> <!>",1),po=E('<div class="container-fluid svelte-yjqjiw"><!></div>');const mo={hash:"svelte-yjqjiw",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
@@ -95,5 +95,5 @@ button.svelte-yjqjiw {margin:0;font-family:inherit;font-size:inherit;line-height
95
95
  @media (min-width: 1200px) {
96
96
  }
97
97
  @media (min-width: 1400px) {
98
- }:host {font-family:"Roboto", sans-serif;}`};function ls(e,t){vi(t,!0),wa(e,go);jt({});let r=F(""),n=F(""),i=F(""),s=F(""),a=F(""),o=F(""),u=F(""),f=F(""),d=F(""),w=F(""),c=F(""),g=F(""),m=F(""),O=F(""),q=F("");const B={row:{component:void 0,options:{row:!0}},select:{component:"hb-input-select"},arrayobjects:{component:"hb-input-array-objects"},arraytags:{component:"hb-input-array-tags"},date:{component:"hb-input-date"},datetime:{component:"hb-input-datetime"},text:{component:"hb-input-text"},number:{component:"hb-input-number"},email:{component:"hb-input-email"},color:{component:"hb-input-color"},file:{component:"hb-input-file"},textarea:{component:"hb-input-area"},range:{component:"hb-input-range"},checkbox:{component:"hb-input-checkbox",options:{labelIsHandledByComponent:!0}},radio:{component:"hb-input-radio"},coords:{component:"hb-input-coords"}};let I=fn(()=>{const b={};for(const j of J())if(j.type!=="row")b[j.id]=j.value;else if(j.type==="row"&&j.params?.columns?.length)for(const W of j.params.columns)b[W.id]=W.value;return b}),le=ir(t,"id",7,""),J=ir(t,"schema"),Y=ir(t,"i18nlang"),v=ir(t,"show_validation",7,"no"),T=ir(t,"hide_submit",7,!1),H=ir(t,"submitted",7,"no"),Rt=ir(t,"getvals",7,"no"),U=F(jt({})),ue=F(jt({})),E=F(jt({})),Et=fn(()=>{const b=[];for(const j of J())j.type==="row"&&j.params?.columns?.length?b.push(...j.params.columns):b.push(j);return Ca(b.filter(j=>j.dependencies?.length),j=>j.dependencies.map(W=>W.id))});function gr(b){b?.forEach?.(j=>{const W=B[j.type];if(!W)throw new Error(`FormRenderer: Tried to render an unknown component type ${j.type}!`);W.options?.row&&gr(j.params?.columns??[]),l(U)[j.id]=l(U)[j.id]||!j.dependencies?.length})}function Mt(b){return b?.map?.(j=>{const W=B[j.type];if(!W)throw new Error(`FormRenderer: Tried to render an unknown component type ${j.type}!`);return W.options?.row?{entry:j,columns:Mt(j.params?.columns??[]),options:W.options}:{entry:j,component:W.component,options:W.options||{}}})||[]}let Ar=fn(()=>Mt(J()));T()===!0||T()==="yes"||T()==="true"?T(!0):T(!1),J()||console.warn("no schema provided"),Qs(()=>{if(typeof J()=="string")try{J(JSON.parse(J())),be(ue,{},!0),be(E,{},!0),be(U,{},!0),H()&&H()==="yes"&&J()&&typeof J()!="string"?de():H()==="yes"&&H("no"),console.log("effectform"),gr(J())}catch(b){console.error("error with schema",J(),b)}});let ar=fn(()=>!l(ue)||!Object.entries(l(ue))?.length?!0:!!Object.entries(l(ue)).find(([b,j])=>!j&&l(U)&&l(U)[b]));const Jn=b=>{console.log("canShow",b);for(const j of b.dependencies||[])if(l(U)&&!l(U)[j.id]||l(I)&&!l(I)[j.id]||l(I)&&j?.values&&!j?.values?.includes(l(I)[j.id]))return!1;return!0},us=b=>{Jn(b)?yo(b,b.value):fs(b)},yo=(b,j)=>{l(U)[b.id]=!0,b.type!=="row"&&(l(I)[b.id]=l(E)[b.id]??j);for(const W of l(Et)[b.id]||[])us(W)},fs=b=>{l(U)[b.id]=!1,delete l(I)[b.id];for(const j of l(Et)[b.id]||[])fs(j)};oe.addComponent({repoName:"@htmlbricks/hb-input-text",version:ae.version}),oe.addComponent({repoName:"@htmlbricks/hb-input-date",version:ae.version}),oe.addComponent({repoName:"@htmlbricks/hb-input-email",version:ae.version}),oe.addComponent({repoName:"@htmlbricks/hb-input-checkbox",version:ae.version}),oe.addComponent({repoName:"@htmlbricks/hb-input-number",version:ae.version}),oe.addComponent({repoName:"@htmlbricks/hb-input-area",version:ae.version}),oe.addComponent({repoName:"@htmlbricks/hb-input-radio",version:ae.version}),oe.addComponent({repoName:"@htmlbricks/hb-input-select",version:ae.version}),oe.addComponent({repoName:"@htmlbricks/hb-input-file",version:ae.version}),oe.addComponent({repoName:"@htmlbricks/hb-input-color",version:ae.version}),oe.addComponent({repoName:"@htmlbricks/hb-input-range",version:ae.version}),oe.addComponent({repoName:"@htmlbricks/hb-input-datetime",version:ae.version}),oe.addComponent({repoName:"@htmlbricks/hb-input-array-objects",version:ae.version}),oe.addComponent({repoName:"@htmlbricks/hb-input-array-tags",version:ae.version}),oe.addComponent({repoName:"@htmlbricks/hb-input-coords",version:ae.version});let Bn=F(void 0);function cs(b,j){b==="update"?(console.log("update",j),l(Bn)&&clearTimeout(l(Bn)),be(Bn,setTimeout(()=>{t.$$host.dispatchEvent(new CustomEvent(b,{detail:j}))},300),!0)):t.$$host.dispatchEvent(new CustomEvent(b,{detail:j}))}const de=()=>{if(console.log("submitting form"),v("yes"),H("no"),console.log(l(ar),JSON.stringify(l(ue)),l(U),l(I)),l(ar))return console.warn("Form is invalid");const b=Object.assign({_valid:!l(ar)},l(I));cs("submit",b)};function P(b){console.info("setValByMessage",b);let j;if(l(E)[b.id]!==b.value){if(l(E)[b.id]=b.value,l(U)[b.id]&&(l(I)[b.id]=b.value),l(Et)[b.id])for(const W of l(Et)[b.id])us(W);j=Object.assign({_valid:!l(ar),_id:le()},l(I))}l(ue)[b.id]!==b.valid&&(l(ue)[b.id]=b.valid,j=Object.assign({_valid:!l(ar),_id:le()},l(I))),j&&cs("update",j)}var wo={get id(){return le()},set id(b=""){le(b),qt()},get schema(){return J()},set schema(b){J(b),qt()},get i18nlang(){return Y()},set i18nlang(b){Y(b),qt()},get show_validation(){return v()},set show_validation(b="no"){v(b),qt()},get hide_submit(){return T()},set hide_submit(b=!1){T(b),qt()},get submitted(){return H()},set submitted(b="no"){H(b),qt()},get getvals(){return Rt()},set getvals(b="no"){Rt(b),qt()}},Hn=mo(),jo=Ot(Hn);{var xo=b=>{var j=po(),W=M(j);ns(W,17,()=>l(Ar),({entry:or,component:kt,options:y,columns:K})=>or.id,(or,kt)=>{let y=()=>l(kt).entry,K=()=>l(kt).component,bn=()=>l(kt).options,Rr=()=>l(kt).columns;var yr=L(),Un=M(yr);{var Yn=wr=>{var Lt=Ka();ns(Lt,21,Rr,({entry:Mr,component:jr,options:Lr})=>Mr.id,(Mr,jr,Lr,_n)=>{let x=()=>l(jr).entry,X=()=>l(jr).component,Wn=()=>l(jr).options;var pn=L(),Gn=M(pn);{var xe=G=>{var st=Ga(),mn=Ot(st);{var Kn=Ee=>{var ie=Aa(),ke=Ot(ie);yt(ie),_(()=>{Pn(ie,"for",x().id),es(ke,`${x().label??""}${x().required?"*":""}`)}),h(Ee,ie)};N(mn,Ee=>{Wn().labelIsHandledByComponent||Ee(Kn)})}var Dt=cn(mn,2);{var Pe=Ee=>{var ie=Ra();D(ie,l(m)),_(()=>p(ie,"schemaentry",JSON.stringify({...x(),value:l(E)[x().id]??x().value}))),_(()=>p(ie,"show_validation",v())),V(ie,1,"svelte-yjqjiw"),k("setVal",ie,ke=>P(ke.detail)),h(Ee,ie)},Dr=Ee=>{var ie=L(),ke=M(ie);{var Fe=Vt=>{var Je=Ma();D(Je,l(O)),_(()=>p(Je,"schemaentry",JSON.stringify({...x(),value:l(E)[x().id]??x().value}))),_(()=>p(Je,"show_validation",v())),V(Je,1,"svelte-yjqjiw"),k("setVal",Je,at=>P(at.detail)),h(Vt,Je)},Vr=Vt=>{var Je=L(),at=M(Je);{var Be=It=>{var Se=La();D(Se,l(a)),_(()=>p(Se,"schemaentry",JSON.stringify({...x(),value:l(E)[x().id]??x().value}))),_(()=>p(Se,"show_validation",v())),V(Se,1,"svelte-yjqjiw"),k("setVal",Se,ot=>P(ot.detail)),k("clickEnter",Se,()=>de()),h(It,Se)},Ir=It=>{var Se=L(),ot=M(Se);{var He=Pt=>{var Ue=Da();D(Ue,l(f)),_(()=>p(Ue,"schemaentry",JSON.stringify({...x(),value:l(E)[x().id]??x().value}))),_(()=>p(Ue,"show_validation",v())),V(Ue,1,"svelte-yjqjiw"),k("setVal",Ue,lt=>P(lt.detail)),h(Pt,Ue)},Pr=Pt=>{var Ue=L(),lt=M(Ue);{var Ye=Ft=>{var ze=Va();D(ze,l(g)),_(()=>p(ze,"schemaentry",JSON.stringify({...x(),value:l(E)[x().id]??x().value}))),_(()=>p(ze,"show_validation",v())),V(ze,1,"svelte-yjqjiw"),k("setVal",ze,ut=>P(ut.detail)),h(Ft,ze)},Fr=Ft=>{var ze=L(),ut=M(ze);{var Ne=Jt=>{var We=Ia();D(We,l(d)),_(()=>p(We,"schemaentry",JSON.stringify({...x(),value:l(E)[x().id]??x().value}))),_(()=>p(We,"show_validation",v())),V(We,1,"svelte-yjqjiw"),k("setVal",We,ft=>P(ft.detail)),h(Jt,We)},Jr=Jt=>{var We=L(),ft=M(We);{var Te=Bt=>{var $e=Pa();D($e,l(u)),_(()=>p($e,"schemaentry",JSON.stringify({...x(),value:l(E)[x().id]??x().value}))),_(()=>p($e,"show_validation",v())),V($e,1,"svelte-yjqjiw"),k("setVal",$e,ct=>P(ct.detail)),k("clickEnter",$e,()=>de()),h(Bt,$e)},Br=Bt=>{var $e=L(),ct=M($e);{var qe=Ht=>{var Ce=Fa();D(Ce,l(n)),_(()=>p(Ce,"schemaentry",JSON.stringify({...x(),value:l(E)[x().id]??x().value}))),_(()=>p(Ce,"show_validation",v())),V(Ce,1,"svelte-yjqjiw"),k("setVal",Ce,dt=>P(dt.detail)),k("clickEnter",Ce,()=>de()),h(Ht,Ce)},Hr=Ht=>{var Ce=L(),dt=M(Ce);{var Ge=Ut=>{var Oe=Ja();D(Oe,l(i)),_(()=>p(Oe,"schemaentry",JSON.stringify({...x(),value:l(E)[x().id]??x().value}))),_(()=>p(Oe,"show_validation",v())),V(Oe,1,"svelte-yjqjiw"),k("setVal",Oe,vt=>P(vt.detail)),k("clickEnter",Oe,()=>de()),h(Ut,Oe)},Ur=Ut=>{var Oe=L(),vt=M(Oe);{var Ae=Yt=>{var Ke=Ba();D(Ke,l(w)),V(Ke,1,"checkbox-inline svelte-yjqjiw"),_(()=>p(Ke,"schemaentry",JSON.stringify({...x(),value:l(E)[x().id]??x().value}))),_(()=>p(Ke,"show_validation",v())),k("setVal",Ke,ht=>P(ht.detail)),h(Yt,Ke)},Yr=Yt=>{var Ke=L(),ht=M(Ke);{var Re=zt=>{var Me=Ha();D(Me,l(o)),_(()=>p(Me,"schemaentry",JSON.stringify({...x(),value:l(E)[x().id]??x().value}))),_(()=>p(Me,"show_validation",v())),V(Me,1,"svelte-yjqjiw"),k("setVal",Me,bt=>P(bt.detail)),k("clickEnter",Me,()=>de()),h(zt,Me)},zr=zt=>{var Me=L(),bt=M(Me);{var Xe=Wt=>{var Le=Ua();D(Le,l(s)),_(()=>p(Le,"schemaentry",JSON.stringify({...x(),value:l(E)[x().id]??x().value}))),_(()=>p(Le,"show_validation",v())),V(Le,1,"svelte-yjqjiw"),k("setVal",Le,_t=>P(_t.detail)),k("clickEnter",Le,()=>de()),h(Wt,Le)},Wr=Wt=>{var Le=L(),_t=M(Le);{var Ze=Gt=>{var pe=Ya();D(pe,l(c)),_(()=>p(pe,"schemaentry",JSON.stringify({...x(),value:l(E)[x().id]??x().value}))),_(()=>p(pe,"show_validation",v())),V(pe,1,"svelte-yjqjiw"),k("setVal",pe,Qe=>P(Qe.detail)),h(Gt,pe)},Gr=Gt=>{var pe=L(),Qe=M(pe);{var Xn=xr=>{var St=za();D(St,l(r)),_(()=>p(St,"schemaentry",JSON.stringify({...x(),value:l(E)[x().id]??x().value}))),_(()=>p(St,"show_validation",v())),V(St,1,"svelte-yjqjiw"),k("setVal",St,Zn=>P(Zn.detail)),h(xr,St)},So=xr=>{var St=L(),Zn=M(St);{var No=Qn=>{var lr=Wa();D(lr,l(q)),_(()=>p(lr,"schemaentry",JSON.stringify({...x(),value:l(E)[x().id]??x().value}))),_(()=>p(lr,"i18nlang",Y())),_(()=>p(lr,"show_validation",v())),V(lr,1,"svelte-yjqjiw"),k("setVal",lr,To=>P(To.detail)),h(Qn,lr)};N(Zn,Qn=>{X()==="hb-input-coords"&&Qn(No)},!0)}h(xr,St)};N(Qe,xr=>{X()==="hb-input-select"?xr(Xn):xr(So,!1)},!0)}h(Gt,pe)};N(_t,Gt=>{X()==="hb-input-radio"?Gt(Ze):Gt(Gr,!1)},!0)}h(Wt,Le)};N(bt,Wt=>{X()==="hb-input-area"?Wt(Xe):Wt(Wr,!1)},!0)}h(zt,Me)};N(ht,zt=>{X()==="hb-input-number"?zt(Re):zt(zr,!1)},!0)}h(Yt,Ke)};N(vt,Yt=>{X()==="hb-input-checkbox"?Yt(Ae):Yt(Yr,!1)},!0)}h(Ut,Oe)};N(dt,Ut=>{X()==="hb-input-datetime"?Ut(Ge):Ut(Ur,!1)},!0)}h(Ht,Ce)};N(ct,Ht=>{X()==="hb-input-date"?Ht(qe):Ht(Hr,!1)},!0)}h(Bt,$e)};N(ft,Bt=>{X()==="hb-input-email"?Bt(Te):Bt(Br,!1)},!0)}h(Jt,We)};N(ut,Jt=>{X()==="hb-input-file"?Jt(Ne):Jt(Jr,!1)},!0)}h(Ft,ze)};N(lt,Ft=>{X()==="hb-input-range"?Ft(Ye):Ft(Fr,!1)},!0)}h(Pt,Ue)};N(ot,Pt=>{X()==="hb-input-color"?Pt(He):Pt(Pr,!1)},!0)}h(It,Se)};N(at,It=>{X()==="hb-input-text"?It(Be):It(Ir,!1)},!0)}h(Vt,Je)};N(ke,Vt=>{X()==="hb-input-array-tags"?Vt(Fe):Vt(Vr,!1)},!0)}h(Ee,ie)};N(Dt,Ee=>{X()==="hb-array-objects"?Ee(Pe):Ee(Dr,!1)})}yt(st),_(()=>D(st,X()==="hb-input-checkbox"?"line-height:52px;":"")),h(G,st)};N(Gn,G=>{l(U)[x().id]&&G(xe)})}h(Mr,pn)}),yt(Lt),h(wr,Lt)},zn=wr=>{var Lt=L(),Mr=M(Lt);{var jr=Lr=>{var _n=ho(),x=Ot(_n);{var X=xe=>{var G=Xa(),st=Ot(G);yt(G),_(()=>{Pn(G,"for",y().id),es(st,`${y().label??""}${y().required?"*":""}`)}),h(xe,G)};N(x,xe=>{bn()?.labelIsHandledByComponent||xe(X)})}var Wn=cn(x,2);{var pn=xe=>{var G=Za();D(G,l(a)),_(()=>p(G,"schemaentry",JSON.stringify({...y(),value:l(E)[y().id]??y().value},null,0))),_(()=>p(G,"show_validation",v())),V(G,1,"svelte-yjqjiw"),k("setVal",G,st=>P(st.detail)),k("clickEnter",G,()=>de()),h(xe,G)},Gn=xe=>{var G=L(),st=M(G);{var mn=Dt=>{var Pe=Qa();D(Pe,l(m)),_(()=>p(Pe,"schemaentry",JSON.stringify({...y(),value:l(E)[y().id]??y().value},null,0))),_(()=>p(Pe,"show_validation",v())),V(Pe,1,"svelte-yjqjiw"),k("setVal",Pe,Dr=>P(Dr.detail)),h(Dt,Pe)},Kn=Dt=>{var Pe=L(),Dr=M(Pe);{var Ee=ke=>{var Fe=eo();D(Fe,l(O)),_(()=>p(Fe,"schemaentry",JSON.stringify({...y(),value:l(E)[y().id]??y().value},null,0))),_(()=>p(Fe,"show_validation",v())),V(Fe,1,"svelte-yjqjiw"),k("setVal",Fe,Vr=>P(Vr.detail)),h(ke,Fe)},ie=ke=>{var Fe=L(),Vr=M(Fe);{var Vt=at=>{var Be=to();D(Be,l(f)),_(()=>p(Be,"schemaentry",JSON.stringify({...y(),value:l(E)[y().id]??y().value},null,0))),_(()=>p(Be,"show_validation",v())),V(Be,1,"svelte-yjqjiw"),k("setVal",Be,Ir=>P(Ir.detail)),h(at,Be)},Je=at=>{var Be=L(),Ir=M(Be);{var It=ot=>{var He=ro();D(He,l(g)),_(()=>p(He,"schemaentry",JSON.stringify({...y(),value:l(E)[y().id]??y().value},null,0))),_(()=>p(He,"show_validation",v())),V(He,1,"svelte-yjqjiw"),k("setVal",He,Pr=>P(Pr.detail)),h(ot,He)},Se=ot=>{var He=L(),Pr=M(He);{var Pt=lt=>{var Ye=no();D(Ye,l(d)),_(()=>p(Ye,"schemaentry",JSON.stringify({...y(),value:l(E)[y().id]??y().value},null,0))),_(()=>p(Ye,"show_validation",v())),V(Ye,1,"svelte-yjqjiw"),k("setVal",Ye,Fr=>P(Fr.detail)),h(lt,Ye)},Ue=lt=>{var Ye=L(),Fr=M(Ye);{var Ft=ut=>{var Ne=io();D(Ne,l(u)),_(()=>p(Ne,"schemaentry",JSON.stringify({...y(),value:l(E)[y().id]??y().value},null,0))),_(()=>p(Ne,"show_validation",v())),V(Ne,1,"svelte-yjqjiw"),k("setVal",Ne,Jr=>P(Jr.detail)),k("clickEnter",Ne,()=>de()),h(ut,Ne)},ze=ut=>{var Ne=L(),Jr=M(Ne);{var Jt=ft=>{var Te=so();D(Te,l(n)),_(()=>p(Te,"schemaentry",JSON.stringify({...y(),value:l(E)[y().id]??y().value},null,0))),_(()=>p(Te,"show_validation",v())),V(Te,1,"svelte-yjqjiw"),k("setVal",Te,Br=>P(Br.detail)),k("clickEnter",Te,()=>de()),h(ft,Te)},We=ft=>{var Te=L(),Br=M(Te);{var Bt=ct=>{var qe=ao();D(qe,l(n)),_(()=>p(qe,"schemaentry",JSON.stringify({...y(),value:l(E)[y().id]??y().value},null,0))),_(()=>p(qe,"show_validation",v())),V(qe,1,"svelte-yjqjiw"),k("setVal",qe,Hr=>P(Hr.detail)),k("clickEnter",qe,()=>de()),h(ct,qe)},$e=ct=>{var qe=L(),Hr=M(qe);{var Ht=dt=>{var Ge=oo();D(Ge,l(w)),_(()=>p(Ge,"schemaentry",JSON.stringify({...y(),value:l(E)[y().id]??y().value},null,0))),_(()=>p(Ge,"show_validation",v())),V(Ge,1,"svelte-yjqjiw"),k("setVal",Ge,Ur=>P(Ur.detail)),h(dt,Ge)},Ce=dt=>{var Ge=L(),Ur=M(Ge);{var Ut=vt=>{var Ae=lo();D(Ae,l(o)),_(()=>p(Ae,"schemaentry",JSON.stringify({...y(),value:l(E)[y().id]??y().value},null,0))),_(()=>p(Ae,"show_validation",v())),V(Ae,1,"svelte-yjqjiw"),k("setVal",Ae,Yr=>P(Yr.detail)),k("clickEnter",Ae,()=>de()),h(vt,Ae)},Oe=vt=>{var Ae=L(),Yr=M(Ae);{var Yt=ht=>{var Re=uo();D(Re,l(s)),_(()=>p(Re,"schemaentry",JSON.stringify({...y(),value:l(E)[y().id]??y().value},null,0))),_(()=>p(Re,"show_validation",v())),V(Re,1,"svelte-yjqjiw"),k("setVal",Re,zr=>P(zr.detail)),k("clickEnter",Re,()=>de()),h(ht,Re)},Ke=ht=>{var Re=L(),zr=M(Re);{var zt=bt=>{var Xe=fo();D(Xe,l(c)),_(()=>p(Xe,"schemaentry",JSON.stringify({...y(),value:l(E)[y().id]??y().value},null,0))),_(()=>p(Xe,"show_validation",v())),V(Xe,1,"svelte-yjqjiw"),k("setVal",Xe,Wr=>P(Wr.detail)),h(bt,Xe)},Me=bt=>{var Xe=L(),Wr=M(Xe);{var Wt=_t=>{var Ze=co();D(Ze,l(r)),_(()=>p(Ze,"schemaentry",JSON.stringify({...y(),value:l(E)[y().id]??y().value},null,0))),_(()=>p(Ze,"show_validation",v())),V(Ze,1,"svelte-yjqjiw"),k("setVal",Ze,Gr=>P(Gr.detail)),h(_t,Ze)},Le=_t=>{var Ze=L(),Gr=M(Ze);{var Gt=pe=>{var Qe=vo();D(Qe,l(q)),_(()=>p(Qe,"schemaentry",JSON.stringify({...y(),value:l(E)[y().id]??y().value},null,0))),_(()=>p(Qe,"i18nlang",Y())),_(()=>p(Qe,"show_validation",v())),V(Qe,1,"svelte-yjqjiw"),k("setVal",Qe,Xn=>P(Xn.detail)),h(pe,Qe)};N(Gr,pe=>{K()==="hb-input-coords"&&pe(Gt)},!0)}h(_t,Ze)};N(Wr,_t=>{K()==="hb-input-select"?_t(Wt):_t(Le,!1)},!0)}h(bt,Xe)};N(zr,bt=>{K()==="hb-input-radio"?bt(zt):bt(Me,!1)},!0)}h(ht,Re)};N(Yr,ht=>{K()==="hb-input-area"?ht(Yt):ht(Ke,!1)},!0)}h(vt,Ae)};N(Ur,vt=>{K()==="hb-input-number"?vt(Ut):vt(Oe,!1)},!0)}h(dt,Ge)};N(Hr,dt=>{K()==="hb-input-checkbox"?dt(Ht):dt(Ce,!1)},!0)}h(ct,qe)};N(Br,ct=>{K()==="hb-input-datetime"?ct(Bt):ct($e,!1)},!0)}h(ft,Te)};N(Jr,ft=>{K()==="hb-input-date"?ft(Jt):ft(We,!1)},!0)}h(ut,Ne)};N(Fr,ut=>{K()==="hb-input-email"?ut(Ft):ut(ze,!1)},!0)}h(lt,Ye)};N(Pr,lt=>{K()==="hb-input-file"?lt(Pt):lt(Ue,!1)},!0)}h(ot,He)};N(Ir,ot=>{K()==="hb-input-range"?ot(It):ot(Se,!1)},!0)}h(at,Be)};N(Vr,at=>{K()==="hb-input-color"?at(Vt):at(Je,!1)},!0)}h(ke,Fe)};N(Dr,ke=>{K()==="hb-input-array-tags"?ke(Ee):ke(ie,!1)},!0)}h(Dt,Pe)};N(st,Dt=>{K()==="hb-input-array-objects"?Dt(mn):Dt(Kn,!1)},!0)}h(xe,G)};N(Wn,xe=>{K()==="hb-input-text"?xe(pn):xe(Gn,!1)})}yt(_n),h(Lr,_n)};N(Mr,Lr=>{l(U)&&l(U)[y().id]&&Lr(jr)},!0)}h(wr,Lt)};N(Un,wr=>{bn()?.row&&(l(U)[y().id]||l(U)[y().id]!==!1)&&Rr()?.length&&Rr().some(Lt=>l(U)[Lt.entry.id])?wr(Yn):wr(zn,!1)})}h(or,yr)});var Eo=cn(W,2);{var ko=or=>{var kt=_o(),y=Ot(kt);y.__click=()=>de();var K=Ot(y);In(K,t,"submit_button",{},Rr=>{var yr=bo(),Un=Ot(yr);In(Un,t,"submit_label",{},Yn=>{var zn=va("Submit");h(Yn,zn)}),yt(yr),h(Rr,yr)}),yt(y);var bn=cn(y,2);In(bn,t,"other_buttons",{},null),yt(kt),h(or,kt)};N(Eo,or=>{T()||or(ko)})}h(b,j)};N(jo,b=>{J()&&typeof J()=="object"&&J()?.length&&b(xo)})}return yt(Hn),h(e,Hn),hi(wo)}ca(["click"]),customElements.define("hb-form",qa(ls,{id:{},schema:{},i18nlang:{},show_validation:{},hide_submit:{},submitted:{},getvals:{}},["submit_button","submit_label","other_buttons"],[],!0)),ei.Component=ls,Object.defineProperty(ei,Symbol.toStringTag,{value:"Module"})})(this.form=this.form||{});
98
+ }:host {font-family:"Roboto", sans-serif;}`};function as(e,t){vi(t,!0),ya(e,mo);Et({});let r=I(""),n=I(""),i=I(""),s=I(""),a=I(""),l=I(""),o=I(""),f=I(""),d=I(""),g=I(""),c=I(""),v=I(""),$=I(""),F=I(""),j=I("");const P={row:{component:void 0,options:{row:!0}},select:{component:"hb-input-select"},arrayobjects:{component:"hb-input-array-objects"},arraytags:{component:"hb-input-array-tags"},date:{component:"hb-input-date"},datetime:{component:"hb-input-datetime"},text:{component:"hb-input-text"},number:{component:"hb-input-number"},email:{component:"hb-input-email"},color:{component:"hb-input-color"},file:{component:"hb-input-file"},textarea:{component:"hb-input-area"},range:{component:"hb-input-range"},checkbox:{component:"hb-input-checkbox",options:{labelIsHandledByComponent:!0}},radio:{component:"hb-input-radio"},coords:{component:"hb-input-coords"}};let B=on(()=>{const b={};for(const y of q())if(y.type!=="row")b[y.id]=y.value;else if(y.type==="row"&&y.params?.columns?.length)for(const U of y.params.columns)b[U.id]=U.value;return b}),Pe=sr(t,"id",7,""),q=sr(t,"schema"),Fe=sr(t,"i18nlang"),k=sr(t,"show_validation",7,"no"),K=sr(t,"hide_submit",7,!1),te=sr(t,"submitted",7,"no"),St=sr(t,"getvals",7,"no"),H=I(Et({})),oe=I(Et({})),S=I(Et({})),Nt=on(()=>{const b=[];for(const y of q())y.type==="row"&&y.params?.columns?.length?b.push(...y.params.columns):b.push(y);return qa(b.filter(y=>y.dependencies?.length),y=>y.dependencies.map(U=>U.id))});function fe(b){b?.forEach?.(y=>{const U=P[y.type];if(!U)throw new Error(`FormRenderer: Tried to render an unknown component type ${y.type}!`);U.options?.row&&fe(y.params?.columns??[]),u(H)[y.id]=u(H)[y.id]||!y.dependencies?.length})}function Or(b){return b?.map?.(y=>{const U=P[y.type];if(!U)throw new Error(`FormRenderer: Tried to render an unknown component type ${y.type}!`);return U.options?.row?{entry:y,columns:Or(y.params?.columns??[]),options:U.options}:{entry:y,component:U.component,options:U.options||{}}})||[]}let vn=on(()=>Or(q()));K()===!0||K()==="yes"||K()==="true"?K(!0):K(!1),q()||console.warn("no schema provided"),ea(()=>{if(typeof q()=="string")try{q(JSON.parse(q())),ve(oe,{},!0),ve(S,{},!0),ve(H,{},!0),te()&&te()==="yes"&&q()&&typeof q()!="string"?ce():te()==="yes"&&te("no"),console.log("effectform"),fe(q())}catch(b){console.error("error with schema",q(),b)}});let or=on(()=>!u(oe)||!Object.entries(u(oe))?.length?!0:!!Object.entries(u(oe)).find(([b,y])=>!y&&u(H)&&u(H)[b]));const Fn=b=>{console.log("canShow",b);for(const y of b.dependencies||[])if(u(H)&&!u(H)[y.id]||u(B)&&!u(B)[y.id]||u(B)&&y?.values&&!y?.values?.includes(u(B)[y.id]))return!1;return!0},os=b=>{Fn(b)?go(b,b.value):ls(b)},go=(b,y)=>{u(H)[b.id]=!0,b.type!=="row"&&(u(B)[b.id]=u(S)[b.id]??y);for(const U of u(Nt)[b.id]||[])os(U)},ls=b=>{u(H)[b.id]=!1,delete u(B)[b.id];for(const y of u(Nt)[b.id]||[])ls(y)};ae.addComponent({repoName:"@htmlbricks/hb-input-text",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-date",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-email",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-checkbox",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-number",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-area",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-radio",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-select",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-file",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-color",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-range",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-datetime",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-array-objects",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-array-tags",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-coords",version:se.version});let Jn=I(void 0);function us(b,y){b==="update"?(console.log("update",y),u(Jn)&&clearTimeout(u(Jn)),ve(Jn,setTimeout(()=>{t.$$host.dispatchEvent(new CustomEvent(b,{detail:y}))},300),!0)):t.$$host.dispatchEvent(new CustomEvent(b,{detail:y}))}const ce=()=>{if(console.log("submitting form"),k("yes"),te("no"),console.log(u(or),JSON.stringify(u(oe)),u(H),u(B)),u(or))return console.warn("Form is invalid");const b=Object.assign({_valid:!u(or)},u(B));us("submit",b)};function V(b){console.info("setValByMessage",b);let y;if(u(S)[b.id]!==b.value){if(u(S)[b.id]=b.value,u(H)[b.id]&&(u(B)[b.id]=b.value),u(Nt)[b.id])for(const U of u(Nt)[b.id])os(U);y=Object.assign({_valid:!u(or),_id:Pe()},u(B))}u(oe)[b.id]!==b.valid&&(u(oe)[b.id]=b.valid,y=Object.assign({_valid:!u(or),_id:Pe()},u(B))),y&&us("update",y)}var yo={get id(){return Pe()},set id(b=""){Pe(b),Ot()},get schema(){return q()},set schema(b){q(b),Ot()},get i18nlang(){return Fe()},set i18nlang(b){Fe(b),Ot()},get show_validation(){return k()},set show_validation(b="no"){k(b),Ot()},get hide_submit(){return K()},set hide_submit(b=!1){K(b),Ot()},get submitted(){return te()},set submitted(b="no"){te(b),Ot()},get getvals(){return St()},set getvals(b="no"){St(b),Ot()}},Bn=po(),wo=Rt(Bn);{var jo=b=>{var y=_o(),U=O(y);ji(U,17,()=>u(vn),({entry:lr,component:Tt,options:m,columns:z})=>lr.id,(lr,Tt)=>{let m=()=>u(Tt).entry,z=()=>u(Tt).component,hn=()=>u(Tt).options,Ar=()=>u(Tt).columns;var yr=M(),Hn=O(yr);{var Un=wr=>{var Dt=Ga();ji(Dt,21,Ar,({entry:Rr,component:jr,options:Mr})=>Rr.id,(Rr,jr,Mr,bn)=>{let w=()=>u(jr).entry,W=()=>u(jr).component,zn=()=>u(jr).options;var _n=M(),Wn=O(_n);{var xe=Y=>{var at=Wa(),pn=Rt(at);{var Gn=Ee=>{var re=Oa(),ke=Rt(re);jt(re),_(()=>{In(re,"for",w().id),es(ke,`${w().label??""}${w().required?"*":""}`)}),h(Ee,re)};N(pn,Ee=>{zn().labelIsHandledByComponent||Ee(Gn)})}var Vt=ln(pn,2);{var Je=Ee=>{var re=Aa();L(re,u($)),_(()=>p(re,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(re,"show_validation",k())),D(re,1,"svelte-yjqjiw"),x("setVal",re,ke=>V(ke.detail)),h(Ee,re)},Lr=Ee=>{var re=M(),ke=O(re);{var Be=It=>{var He=Ra();L(He,u(F)),_(()=>p(He,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(He,"show_validation",k())),D(He,1,"svelte-yjqjiw"),x("setVal",He,ot=>V(ot.detail)),h(It,He)},Dr=It=>{var He=M(),ot=O(He);{var Ue=Pt=>{var Se=Ma();L(Se,u(a)),_(()=>p(Se,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(Se,"show_validation",k())),D(Se,1,"svelte-yjqjiw"),x("setVal",Se,lt=>V(lt.detail)),x("clickEnter",Se,()=>ce()),h(Pt,Se)},Vr=Pt=>{var Se=M(),lt=O(Se);{var Ye=Ft=>{var ze=La();L(ze,u(f)),_(()=>p(ze,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(ze,"show_validation",k())),D(ze,1,"svelte-yjqjiw"),x("setVal",ze,ut=>V(ut.detail)),h(Ft,ze)},Ir=Ft=>{var ze=M(),ut=O(ze);{var We=Jt=>{var Ge=Da();L(Ge,u(v)),_(()=>p(Ge,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(Ge,"show_validation",k())),D(Ge,1,"svelte-yjqjiw"),x("setVal",Ge,ft=>V(ft.detail)),h(Jt,Ge)},Pr=Jt=>{var Ge=M(),ft=O(Ge);{var Ne=Bt=>{var Ke=Va();L(Ke,u(d)),_(()=>p(Ke,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(Ke,"show_validation",k())),D(Ke,1,"svelte-yjqjiw"),x("setVal",Ke,ct=>V(ct.detail)),h(Bt,Ke)},Fr=Bt=>{var Ke=M(),ct=O(Ke);{var Te=Ht=>{var $e=Ia();L($e,u(o)),_(()=>p($e,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p($e,"show_validation",k())),D($e,1,"svelte-yjqjiw"),x("setVal",$e,dt=>V(dt.detail)),x("clickEnter",$e,()=>ce()),h(Ht,$e)},Jr=Ht=>{var $e=M(),dt=O($e);{var qe=Ut=>{var Ce=Pa();L(Ce,u(n)),_(()=>p(Ce,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(Ce,"show_validation",k())),D(Ce,1,"svelte-yjqjiw"),x("setVal",Ce,vt=>V(vt.detail)),x("clickEnter",Ce,()=>ce()),h(Ut,Ce)},Br=Ut=>{var Ce=M(),vt=O(Ce);{var Xe=Yt=>{var Oe=Fa();L(Oe,u(i)),_(()=>p(Oe,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(Oe,"show_validation",k())),D(Oe,1,"svelte-yjqjiw"),x("setVal",Oe,ht=>V(ht.detail)),x("clickEnter",Oe,()=>ce()),h(Yt,Oe)},Hr=Yt=>{var Oe=M(),ht=O(Oe);{var Ae=zt=>{var Ze=Ja();L(Ze,u(g)),D(Ze,1,"checkbox-inline svelte-yjqjiw"),_(()=>p(Ze,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(Ze,"show_validation",k())),x("setVal",Ze,bt=>V(bt.detail)),h(zt,Ze)},Ur=zt=>{var Ze=M(),bt=O(Ze);{var Re=Wt=>{var Me=Ba();L(Me,u(l)),_(()=>p(Me,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(Me,"show_validation",k())),D(Me,1,"svelte-yjqjiw"),x("setVal",Me,_t=>V(_t.detail)),x("clickEnter",Me,()=>ce()),h(Wt,Me)},Yr=Wt=>{var Me=M(),_t=O(Me);{var Qe=Gt=>{var Le=Ha();L(Le,u(s)),_(()=>p(Le,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(Le,"show_validation",k())),D(Le,1,"svelte-yjqjiw"),x("setVal",Le,pt=>V(pt.detail)),x("clickEnter",Le,()=>ce()),h(Gt,Le)},zr=Gt=>{var Le=M(),pt=O(Le);{var et=Kt=>{var _e=Ua();L(_e,u(c)),_(()=>p(_e,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(_e,"show_validation",k())),D(_e,1,"svelte-yjqjiw"),x("setVal",_e,tt=>V(tt.detail)),h(Kt,_e)},Wr=Kt=>{var _e=M(),tt=O(_e);{var Kn=xr=>{var $t=Ya();L($t,u(r)),_(()=>p($t,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p($t,"show_validation",k())),D($t,1,"svelte-yjqjiw"),x("setVal",$t,Xn=>V(Xn.detail)),h(xr,$t)},ko=xr=>{var $t=M(),Xn=O($t);{var So=Zn=>{var ur=za();L(ur,u(j)),_(()=>p(ur,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(ur,"i18nlang",Fe())),_(()=>p(ur,"show_validation",k())),D(ur,1,"svelte-yjqjiw"),x("setVal",ur,No=>V(No.detail)),h(Zn,ur)};N(Xn,Zn=>{W()==="hb-input-coords"&&Zn(So)},!0)}h(xr,$t)};N(tt,xr=>{W()==="hb-input-select"?xr(Kn):xr(ko,!1)},!0)}h(Kt,_e)};N(pt,Kt=>{W()==="hb-input-radio"?Kt(et):Kt(Wr,!1)},!0)}h(Gt,Le)};N(_t,Gt=>{W()==="hb-input-area"?Gt(Qe):Gt(zr,!1)},!0)}h(Wt,Me)};N(bt,Wt=>{W()==="hb-input-number"?Wt(Re):Wt(Yr,!1)},!0)}h(zt,Ze)};N(ht,zt=>{W()==="hb-input-checkbox"?zt(Ae):zt(Ur,!1)},!0)}h(Yt,Oe)};N(vt,Yt=>{W()==="hb-input-datetime"?Yt(Xe):Yt(Hr,!1)},!0)}h(Ut,Ce)};N(dt,Ut=>{W()==="hb-input-date"?Ut(qe):Ut(Br,!1)},!0)}h(Ht,$e)};N(ct,Ht=>{W()==="hb-input-email"?Ht(Te):Ht(Jr,!1)},!0)}h(Bt,Ke)};N(ft,Bt=>{W()==="hb-input-file"?Bt(Ne):Bt(Fr,!1)},!0)}h(Jt,Ge)};N(ut,Jt=>{W()==="hb-input-range"?Jt(We):Jt(Pr,!1)},!0)}h(Ft,ze)};N(lt,Ft=>{W()==="hb-input-color"?Ft(Ye):Ft(Ir,!1)},!0)}h(Pt,Se)};N(ot,Pt=>{W()==="hb-input-text"?Pt(Ue):Pt(Vr,!1)},!0)}h(It,He)};N(ke,It=>{W()==="hb-input-array-tags"?It(Be):It(Dr,!1)},!0)}h(Ee,re)};N(Vt,Ee=>{W()==="hb-array-objects"?Ee(Je):Ee(Lr,!1)})}jt(at),_(()=>L(at,W()==="hb-input-checkbox"?"line-height:52px;":"")),h(Y,at)};N(Wn,Y=>{u(H)[w().id]&&Y(xe)})}h(Rr,_n)}),jt(Dt),h(wr,Dt)},Yn=wr=>{var Dt=M(),Rr=O(Dt);{var jr=Mr=>{var bn=vo(),w=Rt(bn);{var W=xe=>{var Y=Ka(),at=Rt(Y);jt(Y),_(()=>{In(Y,"for",m().id),es(at,`${m().label??""}${m().required?"*":""}`)}),h(xe,Y)};N(w,xe=>{hn()?.labelIsHandledByComponent||xe(W)})}var zn=ln(w,2);{var _n=xe=>{var Y=Xa();L(Y,u(a)),_(()=>p(Y,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Y,"show_validation",k())),D(Y,1,"svelte-yjqjiw"),x("setVal",Y,at=>V(at.detail)),x("clickEnter",Y,()=>ce()),h(xe,Y)},Wn=xe=>{var Y=M(),at=O(Y);{var pn=Vt=>{var Je=Za();L(Je,u($)),_(()=>p(Je,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Je,"show_validation",k())),D(Je,1,"svelte-yjqjiw"),x("setVal",Je,Lr=>V(Lr.detail)),h(Vt,Je)},Gn=Vt=>{var Je=M(),Lr=O(Je);{var Ee=ke=>{var Be=Qa();L(Be,u(F)),_(()=>p(Be,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Be,"show_validation",k())),D(Be,1,"svelte-yjqjiw"),x("setVal",Be,Dr=>V(Dr.detail)),h(ke,Be)},re=ke=>{var Be=M(),Dr=O(Be);{var It=ot=>{var Ue=eo();L(Ue,u(f)),_(()=>p(Ue,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Ue,"show_validation",k())),D(Ue,1,"svelte-yjqjiw"),x("setVal",Ue,Vr=>V(Vr.detail)),h(ot,Ue)},He=ot=>{var Ue=M(),Vr=O(Ue);{var Pt=lt=>{var Ye=to();L(Ye,u(v)),_(()=>p(Ye,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Ye,"show_validation",k())),D(Ye,1,"svelte-yjqjiw"),x("setVal",Ye,Ir=>V(Ir.detail)),h(lt,Ye)},Se=lt=>{var Ye=M(),Ir=O(Ye);{var Ft=ut=>{var We=ro();L(We,u(d)),_(()=>p(We,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(We,"show_validation",k())),D(We,1,"svelte-yjqjiw"),x("setVal",We,Pr=>V(Pr.detail)),h(ut,We)},ze=ut=>{var We=M(),Pr=O(We);{var Jt=ft=>{var Ne=no();L(Ne,u(o)),_(()=>p(Ne,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Ne,"show_validation",k())),D(Ne,1,"svelte-yjqjiw"),x("setVal",Ne,Fr=>V(Fr.detail)),x("clickEnter",Ne,()=>ce()),h(ft,Ne)},Ge=ft=>{var Ne=M(),Fr=O(Ne);{var Bt=ct=>{var Te=io();L(Te,u(n)),_(()=>p(Te,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Te,"show_validation",k())),D(Te,1,"svelte-yjqjiw"),x("setVal",Te,Jr=>V(Jr.detail)),x("clickEnter",Te,()=>ce()),h(ct,Te)},Ke=ct=>{var Te=M(),Jr=O(Te);{var Ht=dt=>{var qe=so();L(qe,u(n)),_(()=>p(qe,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(qe,"show_validation",k())),D(qe,1,"svelte-yjqjiw"),x("setVal",qe,Br=>V(Br.detail)),x("clickEnter",qe,()=>ce()),h(dt,qe)},$e=dt=>{var qe=M(),Br=O(qe);{var Ut=vt=>{var Xe=ao();L(Xe,u(g)),_(()=>p(Xe,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Xe,"show_validation",k())),D(Xe,1,"svelte-yjqjiw"),x("setVal",Xe,Hr=>V(Hr.detail)),h(vt,Xe)},Ce=vt=>{var Xe=M(),Hr=O(Xe);{var Yt=ht=>{var Ae=oo();L(Ae,u(l)),_(()=>p(Ae,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Ae,"show_validation",k())),D(Ae,1,"svelte-yjqjiw"),x("setVal",Ae,Ur=>V(Ur.detail)),x("clickEnter",Ae,()=>ce()),h(ht,Ae)},Oe=ht=>{var Ae=M(),Ur=O(Ae);{var zt=bt=>{var Re=lo();L(Re,u(s)),_(()=>p(Re,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Re,"show_validation",k())),D(Re,1,"svelte-yjqjiw"),x("setVal",Re,Yr=>V(Yr.detail)),x("clickEnter",Re,()=>ce()),h(bt,Re)},Ze=bt=>{var Re=M(),Yr=O(Re);{var Wt=_t=>{var Qe=uo();L(Qe,u(c)),_(()=>p(Qe,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Qe,"show_validation",k())),D(Qe,1,"svelte-yjqjiw"),x("setVal",Qe,zr=>V(zr.detail)),h(_t,Qe)},Me=_t=>{var Qe=M(),zr=O(Qe);{var Gt=pt=>{var et=fo();L(et,u(r)),_(()=>p(et,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(et,"show_validation",k())),D(et,1,"svelte-yjqjiw"),x("setVal",et,Wr=>V(Wr.detail)),h(pt,et)},Le=pt=>{var et=M(),Wr=O(et);{var Kt=_e=>{var tt=co();L(tt,u(j)),_(()=>p(tt,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(tt,"i18nlang",Fe())),_(()=>p(tt,"show_validation",k())),D(tt,1,"svelte-yjqjiw"),x("setVal",tt,Kn=>V(Kn.detail)),h(_e,tt)};N(Wr,_e=>{z()==="hb-input-coords"&&_e(Kt)},!0)}h(pt,et)};N(zr,pt=>{z()==="hb-input-select"?pt(Gt):pt(Le,!1)},!0)}h(_t,Qe)};N(Yr,_t=>{z()==="hb-input-radio"?_t(Wt):_t(Me,!1)},!0)}h(bt,Re)};N(Ur,bt=>{z()==="hb-input-area"?bt(zt):bt(Ze,!1)},!0)}h(ht,Ae)};N(Hr,ht=>{z()==="hb-input-number"?ht(Yt):ht(Oe,!1)},!0)}h(vt,Xe)};N(Br,vt=>{z()==="hb-input-checkbox"?vt(Ut):vt(Ce,!1)},!0)}h(dt,qe)};N(Jr,dt=>{z()==="hb-input-datetime"?dt(Ht):dt($e,!1)},!0)}h(ct,Te)};N(Fr,ct=>{z()==="hb-input-date"?ct(Bt):ct(Ke,!1)},!0)}h(ft,Ne)};N(Pr,ft=>{z()==="hb-input-email"?ft(Jt):ft(Ge,!1)},!0)}h(ut,We)};N(Ir,ut=>{z()==="hb-input-file"?ut(Ft):ut(ze,!1)},!0)}h(lt,Ye)};N(Vr,lt=>{z()==="hb-input-range"?lt(Pt):lt(Se,!1)},!0)}h(ot,Ue)};N(Dr,ot=>{z()==="hb-input-color"?ot(It):ot(He,!1)},!0)}h(ke,Be)};N(Lr,ke=>{z()==="hb-input-array-tags"?ke(Ee):ke(re,!1)},!0)}h(Vt,Je)};N(at,Vt=>{z()==="hb-input-array-objects"?Vt(pn):Vt(Gn,!1)},!0)}h(xe,Y)};N(zn,xe=>{z()==="hb-input-text"?xe(_n):xe(Wn,!1)})}jt(bn),h(Mr,bn)};N(Rr,Mr=>{u(H)&&u(H)[m().id]&&Mr(jr)},!0)}h(wr,Dt)};N(Hn,wr=>{hn()?.row&&(u(H)[m().id]||u(H)[m().id]!==!1)&&Ar()?.length&&Ar().some(Dt=>u(H)[Dt.entry.id])?wr(Un):wr(Yn,!1)})}h(lr,yr)});var xo=ln(U,2);{var Eo=lr=>{var Tt=bo(),m=Rt(Tt);m.__click=()=>ce();var z=Rt(m);Vn(z,t,"submit_button",{},Ar=>{var yr=ho(),Hn=Rt(yr);Vn(Hn,t,"submit_label",{},Un=>{var Yn=ha("Submit");h(Un,Yn)}),jt(yr),h(Ar,yr)}),jt(m);var hn=ln(m,2);Vn(hn,t,"other_buttons",{},null),jt(Tt),h(lr,Tt)};N(xo,lr=>{K()||lr(Eo)})}h(b,y)};N(wo,b=>{q()&&typeof q()=="object"&&q()?.length&&b(jo)})}return jt(Bn),h(e,Bn),hi(yo)}da(["click"]),customElements.define("hb-form",$a(as,{id:{},schema:{},i18nlang:{},show_validation:{},hide_submit:{},submitted:{},getvals:{}},["submit_button","submit_label","other_buttons"],[],!0)),Qn.Component=as,Object.defineProperty(Qn,Symbol.toStringTag,{value:"Module"})})(this.form=this.form||{});
99
99
  //# sourceMappingURL=main.iife.js.map