@htmlbricks/hb-form-composer 0.61.50 → 0.61.52

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,12 +1,11 @@
1
- (function(Gt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const on=1,ln=2,sn=16,un=1,fn=4,cn=8,dn=16,vn=1,hn=2,Jt="[",ct="[!",dt="]",Ne={},I=Symbol(),_n="http://www.w3.org/1999/xhtml",Xt=!1;var vt=Array.isArray,bn=Array.prototype.indexOf,ht=Array.from,Ge=Object.keys,Ae=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,pn=Object.getOwnPropertyDescriptors,mn=Object.prototype,gn=Array.prototype,zt=Object.getPrototypeOf,Kt=Object.isExtensible;function Zt(e){for(var t=0;t<e.length;t++)e[t]()}function yn(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const H=2,_t=4,bt=8,Oe=16,le=32,ue=64,Qt=128,U=256,Je=512,D=1024,V=2048,fe=4096,K=8192,ye=16384,pt=32768,mt=65536,er=1<<17,wn=1<<18,Re=1<<19,En=1<<20,gt=1<<21,yt=1<<22,we=1<<23,Xe=Symbol("$state"),tr=Symbol("legacy props"),$n=Symbol(""),wt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},rr=3,Fe=8;function Tn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function xn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Sn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Cn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Nn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function An(e){throw new Error("https://svelte.dev/e/effect_orphan")}function On(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Rn(){throw new Error("https://svelte.dev/e/hydration_failed")}function kn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Pn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ln(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function In(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ze(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let C=!1;function Z(e){C=e}let N;function Q(e){if(e===null)throw ze(),Ne;return N=e}function Ke(){return Q(he(N))}function nr(e){if(C){if(he(N)!==null)throw ze(),Ne;N=e}}function Et(){for(var e=0,t=N;;){if(t.nodeType===Fe){var r=t.data;if(r===dt){if(e===0)return t;e-=1}else(r===Jt||r===ct)&&(e+=1)}var n=he(t);t.remove(),t=n}}function ir(e){if(!e||e.nodeType!==Fe)throw ze(),Ne;return e.data}function ar(e){return e===this.v}function Mn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function or(e){return!Mn(e,this.v)}let Dn=!1,W=null;function Ze(e){W=e}function lr(e,t=!1,r){W={p:W,c:null,e:null,s:e,x:null,l:null}}function sr(e){var t=W,r=t.e;if(r!==null){t.e=null;for(var n of r)Or(n)}return e!==void 0&&(t.x=e),W=t.p,e??{}}function ur(){return!0}const qn=new WeakMap;function Fn(e){var t=E;if(t===null)return T.f|=we,e;if((t.f&pt)===0){if((t.f&Qt)===0)throw!t.parent&&e instanceof Error&&fr(e),e;t.b.error(e)}else $t(e,t)}function $t(e,t){for(;t!==null;){if((t.f&Qt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&fr(e),e}function fr(e){const t=qn.get(e);t&&(Ae(e,"message",{value:t.message}),Ae(e,"stack",{value:t.stack}))}let je=[],Tt=[];function cr(){var e=je;je=[],Zt(e)}function jn(){var e=Tt;Tt=[],Zt(e)}function Bn(e){je.length===0&&queueMicrotask(cr),je.push(e)}function Hn(){je.length>0&&cr(),Tt.length>0&&jn()}function Yn(){const e=E.b;return e===null&&Tn(),e}function xt(e){var t=H|V,r=T!==null&&(T.f&H)!==0?T:null;return E===null||r!==null&&(r.f&U)!==0?t|=U:E.f|=Re,{ctx:W,deps:null,effects:null,equals:ar,f:t,fn:e,reactions:null,rv:0,v:I,wv:0,parent:r??E,ac:null}}function Un(e,t){let r=E;r===null&&Sn();var n=r.b,i=void 0,a=Be(I),o=null,l=!T;return ti(()=>{try{var s=e();o&&Promise.resolve(s).catch(()=>{})}catch(v){s=Promise.reject(v)}var u=()=>s;i=o?.then(u,u)??Promise.resolve(s),o=i;var c=P,_=n.is_pending();l&&(n.update_pending_count(1),_||c.increment());const f=(v,d=void 0)=>{o=null,_||c.activate(),d?d!==wt&&(a.f|=we,nt(a,d)):((a.f&we)!==0&&(a.f^=we),nt(a,v)),l&&(n.update_pending_count(-1),_||c.decrement()),_r()};if(i.then(f,v=>f(null,v||"unknown")),c)return()=>{queueMicrotask(()=>c.neuter())}}),new Promise(s=>{function u(c){function _(){c===i?s(a):u(i)}c.then(_,_)}u(i)})}function dr(e){const t=xt(e);return t.equals=or,t}function vr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)te(t[r])}}function Vn(e){for(var t=e.parent;t!==null;){if((t.f&H)===0)return t;t=t.parent}return null}function St(e){var t,r=E;ne(Vn(e));try{vr(e),t=Yr(e)}finally{ne(r)}return t}function hr(e){var t=St(e);if(e.equals(t)||(e.v=t,e.wv=Br()),!xe){var r=(_e||(e.f&U)!==0)&&e.deps!==null?fe:D;B(e,r)}}function Wn(e,t,r){const n=xt;if(t.length===0){r(e.map(n));return}var i=P,a=E,o=Gn(),l=Yn();Promise.all(t.map(s=>Un(s))).then(s=>{i?.activate(),o();try{r([...e.map(n),...s])}catch(u){(a.f&ye)===0&&$t(u,a)}i?.deactivate(),_r()}).catch(s=>{l.error(s)})}function Gn(){var e=E,t=T,r=W,n=P;return function(){ne(e),G(t),Ze(r),n?.activate()}}function _r(){ne(null),G(null),Ze(null)}const Ct=new Set;let P=null,br=new Set,Qe=[];function pr(){const e=Qe.shift();Qe.length>0&&queueMicrotask(pr),e()}let Ee=[],et=null,Nt=!1,tt=!1;class $e{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#i=[];#o=[];#a=[];#n=[];#l=[];#c=[];#d=[];skipped_effects=new Set;process(t){Ee=[];for(const i of t)this.#h(i);if(this.#i.length===0&&this.#r===0){this.#v();var r=this.#a,n=this.#n;this.#a=[],this.#n=[],this.#l=[],P=null,gr(r),gr(n),P===null?P=this:Ct.delete(this),this.#u?.resolve()}else this.#s(this.#a),this.#s(this.#n),this.#s(this.#l);for(const i of this.#i)Me(i);for(const i of this.#o)Me(i);this.#i=[],this.#o=[]}#h(t){t.f^=D;for(var r=t.first;r!==null;){var n=r.f,i=(n&(le|ue))!==0,a=i&&(n&D)!==0,o=a||(n&K)!==0||this.skipped_effects.has(r);if(!o&&r.fn!==null){if(i)r.f^=D;else if((n&_t)!==0)this.#n.push(r);else if((n&D)===0)if((n&yt)!==0){var l=r.b?.is_pending()?this.#o:this.#i;l.push(r)}else at(r)&&((r.f&Oe)!==0&&this.#l.push(r),Me(r));var s=r.first;if(s!==null){r=s;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#s(t){for(const r of t)((r.f&V)!==0?this.#c:this.#d).push(r),B(r,D);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){P=this}deactivate(){P=null;for(const t of br)if(br.delete(t),t(),P!==null)break}neuter(){this.#f=!0}flush(){Ee.length>0?mr():this.#v(),P===this&&(this.#r===0&&Ct.delete(this),this.deactivate())}#v(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)B(t,V),ke(t);for(const t of this.#d)B(t,fe),ke(t);this.#a=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=yn()).promise}static ensure(){if(P===null){const t=P=new $e;Ct.add(P),tt||$e.enqueue(()=>{P===t&&t.flush()})}return P}static enqueue(t){Qe.length===0&&queueMicrotask(pr),Qe.unshift(t)}}function rt(e){var t=tt;tt=!0;try{for(var r;;){if(Hn(),Ee.length===0&&(P?.flush(),Ee.length===0))return et=null,r;mr()}}finally{tt=t}}function mr(){var e=Ie;Nt=!0;try{var t=0;for(Dr(!0);Ee.length>0;){var r=$e.ensure();if(t++>1e3){var n,i;Jn()}r.process(Ee),ce.clear()}}finally{Nt=!1,Dr(e),et=null}}function Jn(){try{On()}catch(e){$t(e,et)}}let Te=null;function gr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ye|K))===0&&at(n)&&(Te=[],Me(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Lr(n):n.fn=null),Te?.length>0)){ce.clear();for(const i of Te)Me(i);Te=[]}}Te=null}}function ke(e){for(var t=et=e;t.parent!==null;){t=t.parent;var r=t.f;if(Nt&&t===E&&(r&Oe)!==0)return;if((r&(ue|le))!==0){if((r&D)===0)return;t.f^=D}}Ee.push(t)}const ce=new Map;function Be(e,t){var r={f:0,v:e,reactions:null,equals:ar,rv:0,wv:0};return r}function q(e,t){const r=Be(e);return ai(r),r}function yr(e,t=!1,r=!0){const n=Be(e);return t||(n.equals=or),n}function L(e,t,r=!1){T!==null&&(!re||(T.f&er)!==0)&&ur()&&(T.f&(H|Oe|yt|er))!==0&&!se?.includes(e)&&In();let n=r?de(t):t;return nt(e,n)}function nt(e,t){if(!e.equals(t)){var r=e.v;xe?ce.set(e,t):ce.set(e,r),e.v=t;var n=$e.ensure();n.capture(e,r),(e.f&H)!==0&&((e.f&V)!==0&&St(e),B(e,(e.f&U)===0?D:fe)),e.wv=Br(),wr(e,V),E!==null&&(E.f&D)!==0&&(E.f&(le|ue))===0&&(J===null?oi([e]):J.push(e))}return t}function At(e){L(e,e.v+1)}function wr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var a=r[i],o=a.f,l=(o&V)===0;l&&B(a,t),(o&H)!==0?wr(a,fe):l&&((o&Oe)!==0&&Te!==null&&Te.push(a),ke(a))}}function de(e){if(typeof e!="object"||e===null||Xe in e)return e;const t=zt(e);if(t!==mn&&t!==gn)return e;var r=new Map,n=vt(e),i=q(0),a=Se,o=l=>{if(Se===a)return l();var s=T,u=Se;G(null),jr(a);var c=l();return G(s),jr(u),c};return n&&r.set("length",q(e.length)),new Proxy(e,{defineProperty(l,s,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Pn();var c=r.get(s);return c===void 0?c=o(()=>{var _=q(u.value);return r.set(s,_),_}):L(c,u.value,!0),!0},deleteProperty(l,s){var u=r.get(s);if(u===void 0){if(s in l){const c=o(()=>q(I));r.set(s,c),At(i)}}else L(u,I),At(i);return!0},get(l,s,u){if(s===Xe)return e;var c=r.get(s),_=s in l;if(c===void 0&&(!_||ge(l,s)?.writable)&&(c=o(()=>{var v=de(_?l[s]:I),d=q(v);return d}),r.set(s,c)),c!==void 0){var f=S(c);return f===I?void 0:f}return Reflect.get(l,s,u)},getOwnPropertyDescriptor(l,s){var u=Reflect.getOwnPropertyDescriptor(l,s);if(u&&"value"in u){var c=r.get(s);c&&(u.value=S(c))}else if(u===void 0){var _=r.get(s),f=_?.v;if(_!==void 0&&f!==I)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return u},has(l,s){if(s===Xe)return!0;var u=r.get(s),c=u!==void 0&&u.v!==I||Reflect.has(l,s);if(u!==void 0||E!==null&&(!c||ge(l,s)?.writable)){u===void 0&&(u=o(()=>{var f=c?de(l[s]):I,v=q(f);return v}),r.set(s,u));var _=S(u);if(_===I)return!1}return c},set(l,s,u,c){var _=r.get(s),f=s in l;if(n&&s==="length")for(var v=u;v<_.v;v+=1){var d=r.get(v+"");d!==void 0?L(d,I):v in l&&(d=o(()=>q(I)),r.set(v+"",d))}if(_===void 0)(!f||ge(l,s)?.writable)&&(_=o(()=>q(void 0)),L(_,de(u)),r.set(s,_));else{f=_.v!==I;var h=o(()=>de(u));L(_,h)}var w=Reflect.getOwnPropertyDescriptor(l,s);if(w?.set&&w.set.call(c,u),!f){if(n&&typeof s=="string"){var A=r.get("length"),m=Number(s);Number.isInteger(m)&&m>=A.v&&L(A,m+1)}At(i)}return!0},ownKeys(l){S(i);var s=Reflect.ownKeys(l).filter(_=>{var f=r.get(_);return f===void 0||f.v!==I});for(var[u,c]of r)c.v!==I&&!(u in l)&&s.push(u);return s},setPrototypeOf(){Ln()}})}var Er,$r,Tr,xr;function Ot(){if(Er===void 0){Er=window,$r=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Tr=ge(t,"firstChild").get,xr=ge(t,"nextSibling").get,Kt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Kt(r)&&(r.__t=void 0)}}function ve(e=""){return document.createTextNode(e)}function Pe(e){return Tr.call(e)}function he(e){return xr.call(e)}function Sr(e,t){if(!C)return Pe(e);var r=Pe(N);return r===null&&(r=N.appendChild(ve())),Q(r),r}function it(e,t){if(!C){var r=Pe(e);return r instanceof Comment&&r.data===""?he(r):r}return N}function Rt(e,t=1,r=!1){let n=C?N:e;for(var i;t--;)i=n,n=he(n);if(!C)return n;if(r&&n?.nodeType!==rr){var a=ve();return n===null?i?.after(a):n.before(a),Q(a),a}return Q(n),n}function Cr(e){e.textContent=""}function Nr(){return!1}function kt(e){var t=T,r=E;G(null),ne(null);try{return e()}finally{G(t),ne(r)}}function Xn(e){E===null&&T===null&&An(),T!==null&&(T.f&U)!==0&&E===null&&Nn(),xe&&Cn()}function zn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ee(e,t,r,n=!0){var i=E;i!==null&&(i.f&K)!==0&&(e|=K);var a={ctx:W,deps:null,nodes_start:null,nodes_end:null,f:e|V,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{Me(a),a.f|=pt}catch(s){throw te(a),s}else t!==null&&ke(a);if(n){var o=a;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&Re)===0&&(o=o.first),o!==null&&(o.parent=i,i!==null&&zn(o,i),T!==null&&(T.f&H)!==0&&(e&ue)===0)){var l=T;(l.effects??=[]).push(o)}}return a}function Kn(e){const t=ee(bt,null,!1);return B(t,D),t.teardown=e,t}function Ar(e){Xn();var t=E.f,r=!T&&(t&le)!==0&&(t&pt)===0;if(r){var n=W;(n.e??=[]).push(e)}else return Or(e)}function Or(e){return ee(_t|En,e,!1)}function Zn(e){$e.ensure();const t=ee(ue|Re,e,!0);return()=>{te(t)}}function Qn(e){$e.ensure();const t=ee(ue|Re,e,!0);return(r={})=>new Promise(n=>{r.outro?Pt(t,()=>{te(t),n(void 0)}):(te(t),n(void 0))})}function ei(e){return ee(_t,e,!1)}function ti(e){return ee(yt|Re,e,!0)}function ri(e,t=0){return ee(bt|t,e,!0)}function He(e,t=[],r=[]){Wn(t,r,n=>{ee(bt,()=>e(...n.map(S)),!0)})}function Rr(e,t=0){var r=ee(Oe|t,e,!0);return r}function Le(e,t=!0){return ee(le|Re,e,!0,t)}function kr(e){var t=e.teardown;if(t!==null){const r=xe,n=T;qr(!0),G(null);try{t.call(null)}finally{qr(r),G(n)}}}function Pr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&kt(()=>{i.abort(wt)});var n=r.next;(r.f&ue)!==0?r.parent=null:te(r,t),r=n}}function ni(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&le)===0&&te(t),t=r}}function te(e,t=!0){var r=!1;(t||(e.f&wn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(ii(e.nodes_start,e.nodes_end),r=!0),Pr(e,t&&!r),ot(e,0),B(e,ye);var n=e.transitions;if(n!==null)for(const a of n)a.stop();kr(e);var i=e.parent;i!==null&&i.first!==null&&Lr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function ii(e,t){for(;e!==null;){var r=e===t?null:he(e);e.remove(),e=r}}function Lr(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 Pt(e,t){var r=[];Lt(e,r,!0),Ir(r,()=>{te(e),t&&t()})}function Ir(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Lt(e,t,r){if((e.f&K)===0){if(e.f^=K,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,a=(n.f&mt)!==0||(n.f&le)!==0;Lt(n,t,a?r:!1),n=i}}}function It(e){Mr(e,!0)}function Mr(e,t){if((e.f&K)!==0){e.f^=K,(e.f&D)===0&&(B(e,V),ke(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&mt)!==0||(r.f&le)!==0;Mr(r,i?t:!1),r=n}if(e.transitions!==null)for(const a of e.transitions)(a.is_global||t)&&a.in()}}let Ie=!1;function Dr(e){Ie=e}let xe=!1;function qr(e){xe=e}let T=null,re=!1;function G(e){T=e}let E=null;function ne(e){E=e}let se=null;function ai(e){T!==null&&(se===null?se=[e]:se.push(e))}let j=null,Y=0,J=null;function oi(e){J=e}let Fr=1,Ye=0,Se=Ye;function jr(e){Se=e}let _e=!1;function Br(){return++Fr}function at(e){var t=e.f;if((t&V)!==0)return!0;if((t&fe)!==0){var r=e.deps,n=(t&U)!==0;if(r!==null){var i,a,o=(t&Je)!==0,l=n&&E!==null&&!_e,s=r.length;if((o||l)&&(E===null||(E.f&ye)===0)){var u=e,c=u.parent;for(i=0;i<s;i++)a=r[i],(o||!a?.reactions?.includes(u))&&(a.reactions??=[]).push(u);o&&(u.f^=Je),l&&c!==null&&(c.f&U)===0&&(u.f^=U)}for(i=0;i<s;i++)if(a=r[i],at(a)&&hr(a),a.wv>e.wv)return!0}(!n||E!==null&&!_e)&&B(e,D)}return!1}function Hr(e,t,r=!0){var n=e.reactions;if(n!==null&&!se?.includes(e))for(var i=0;i<n.length;i++){var a=n[i];(a.f&H)!==0?Hr(a,t,!1):t===a&&(r?B(a,V):(a.f&D)!==0&&B(a,fe),ke(a))}}function Yr(e){var t=j,r=Y,n=J,i=T,a=_e,o=se,l=W,s=re,u=Se,c=e.f;j=null,Y=0,J=null,_e=(c&U)!==0&&(re||!Ie||T===null),T=(c&(le|ue))===0?e:null,se=null,Ze(e.ctx),re=!1,Se=++Ye,e.ac!==null&&(kt(()=>{e.ac.abort(wt)}),e.ac=null);try{e.f|=gt;var _=e.fn,f=_(),v=e.deps;if(j!==null){var d;if(ot(e,Y),v!==null&&Y>0)for(v.length=Y+j.length,d=0;d<j.length;d++)v[Y+d]=j[d];else e.deps=v=j;if(!_e||(c&H)!==0&&e.reactions!==null)for(d=Y;d<v.length;d++)(v[d].reactions??=[]).push(e)}else v!==null&&Y<v.length&&(ot(e,Y),v.length=Y);if(ur()&&J!==null&&!re&&v!==null&&(e.f&(H|fe|V))===0)for(d=0;d<J.length;d++)Hr(J[d],e);return i!==null&&i!==e&&(Ye++,J!==null&&(n===null?n=J:n.push(...J))),(e.f&we)!==0&&(e.f^=we),f}catch(h){return Fn(h)}finally{e.f^=gt,j=t,Y=r,J=n,T=i,_e=a,se=o,Ze(l),re=s,Se=u}}function li(e,t){let r=t.reactions;if(r!==null){var n=bn.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&H)!==0&&(j===null||!j.includes(t))&&(B(t,fe),(t.f&(U|Je))===0&&(t.f^=Je),vr(t),ot(t,0))}function ot(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)li(e,r[n])}function Me(e){var t=e.f;if((t&ye)===0){B(e,D);var r=E,n=Ie;E=e,Ie=!0;try{(t&Oe)!==0?ni(e):Pr(e),kr(e);var i=Yr(e);e.teardown=typeof i=="function"?i:null,e.wv=Fr;var a;Xt&&Dn&&(e.f&V)!==0&&e.deps}finally{Ie=n,E=r}}}function S(e){var t=e.f,r=(t&H)!==0;if(T!==null&&!re){var n=E!==null&&(E.f&ye)!==0;if(!n&&!se?.includes(e)){var i=T.deps;if((T.f&gt)!==0)e.rv<Ye&&(e.rv=Ye,j===null&&i!==null&&i[Y]===e?Y++:j===null?j=[e]:(!_e||!j.includes(e))&&j.push(e));else{(T.deps??=[]).push(e);var a=e.reactions;a===null?e.reactions=[T]:a.includes(T)||a.push(T)}}}else if(r&&e.deps===null&&e.effects===null){var o=e,l=o.parent;l!==null&&(l.f&U)===0&&(o.f^=U)}if(xe){if(ce.has(e))return ce.get(e);if(r){o=e;var s=o.v;return((o.f&D)===0&&o.reactions!==null||Ur(o))&&(s=St(o)),ce.set(o,s),s}}else r&&(o=e,at(o)&&hr(o));if((e.f&we)!==0)throw e.v;return e.v}function Ur(e){if(e.v===I)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ce.has(t)||(t.f&H)!==0&&Ur(t))return!0;return!1}function Vr(e){var t=re;try{return re=!0,e()}finally{re=t}}const si=-7169;function B(e,t){e.f=e.f&si|t}const Wr=new Set,Mt=new Set;function ui(e,t,r,n={}){function i(a){if(n.capture||Ve.call(t,a),!a.cancelBubble)return kt(()=>r?.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Bn(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Ue(e,t,r,n,i){var a={capture:n,passive:i},o=ui(e,t,r,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Kn(()=>{t.removeEventListener(e,o,a)})}function fi(e){for(var t=0;t<e.length;t++)Wr.add(e[t]);for(var r of Mt)r(e)}let Gr=null;function Ve(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Gr=e;var o=0,l=Gr===e&&e.__root;if(l){var s=i.indexOf(l);if(s!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;s<=u&&(o=s)}if(a=i[o]||e.target,a!==t){Ae(e,"currentTarget",{configurable:!0,get(){return a||r}});var c=T,_=E;G(null),ne(null);try{for(var f,v=[];a!==null;){var d=a.assignedSlot||a.parentNode||a.host||null;try{var h=a["__"+n];if(h!=null&&(!a.disabled||e.target===a))if(vt(h)){var[w,...A]=h;w.apply(a,[e,...A])}else h.call(a,e)}catch(m){f?v.push(m):f=m}if(e.cancelBubble||d===t||d===null)break;a=d}if(f){for(let m of v)queueMicrotask(()=>{throw m});throw f}}finally{e.__root=t,delete e.currentTarget,G(c),ne(_)}}}function ci(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function be(e,t){var r=E;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function lt(e,t){var r=(t&vn)!==0,n=(t&hn)!==0,i,a=!e.startsWith("<!>");return()=>{if(C)return be(N,null),N;i===void 0&&(i=ci(a?e:"<!>"+e),r||(i=Pe(i)));var o=n||$r?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=Pe(o),s=o.lastChild;be(l,s)}else be(o,o);return o}}function di(e=""){if(!C){var t=ve(e+"");return be(t,t),t}var r=N;return r.nodeType!==rr&&(r.before(r=ve()),Q(r)),be(r,r),r}function Jr(){if(C)return be(N,null),N;var e=document.createDocumentFragment(),t=document.createComment(""),r=ve();return e.append(t,r),be(t,r),e}function pe(e,t){if(C){E.nodes_end=N,Ke();return}e!==null&&e.before(t)}const vi=["touchstart","touchmove"];function hi(e){return vi.includes(e)}function Xr(e,t){return zr(e,t)}function _i(e,t){Ot(),t.intro=t.intro??!1;const r=t.target,n=C,i=N;try{for(var a=Pe(r);a&&(a.nodeType!==Fe||a.data!==Jt);)a=he(a);if(!a)throw Ne;Z(!0),Q(a),Ke();const o=zr(e,{...t,anchor:a});if(N===null||N.nodeType!==Fe||N.data!==dt)throw ze(),Ne;return Z(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==Ne&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Rn(),Ot(),Cr(r),Z(!1),Xr(e,t)}finally{Z(n),Q(i)}}const De=new Map;function zr(e,{target:t,anchor:r,props:n={},events:i,context:a,intro:o=!0}){Ot();var l=new Set,s=_=>{for(var f=0;f<_.length;f++){var v=_[f];if(!l.has(v)){l.add(v);var d=hi(v);t.addEventListener(v,Ve,{passive:d});var h=De.get(v);h===void 0?(document.addEventListener(v,Ve,{passive:d}),De.set(v,1)):De.set(v,h+1)}}};s(ht(Wr)),Mt.add(s);var u=void 0,c=Qn(()=>{var _=r??t.appendChild(ve());return Le(()=>{if(a){lr({});var f=W;f.c=a}i&&(n.$$events=i),C&&be(_,null),u=e(_,n)||{},C&&(E.nodes_end=N),a&&sr()}),()=>{for(var f of l){t.removeEventListener(f,Ve);var v=De.get(f);--v===0?(document.removeEventListener(f,Ve),De.delete(f)):De.set(f,v)}Mt.delete(s),_!==r&&_.parentNode?.removeChild(_)}});return Dt.set(u,c),u}let Dt=new WeakMap;function bi(e,t){const r=Dt.get(e);return r?(Dt.delete(e),r(t)):Promise.resolve()}function pi(e){W===null&&xn(),Ar(()=>{const t=Vr(e);if(typeof t=="function")return t})}function st(e,t,r=!1){C&&Ke();var n=e,i=null,a=null,o=I,l=r?mt:0,s=!1;const u=(v,d=!0)=>{s=!0,f(d,v)};var c=null;function _(){c!==null&&(c.lastChild.remove(),n.before(c),c=null);var v=o?i:a,d=o?a:i;v&&It(v),d&&Pt(d,()=>{o?a=null:i=null})}const f=(v,d)=>{if(o===(o=v))return;let h=!1;if(C){const k=ir(n)===ct;!!o===k&&(n=Et(),Q(n),Z(!1),h=!0)}var w=Nr(),A=n;if(w&&(c=document.createDocumentFragment(),c.append(A=ve())),o?i??=d&&Le(()=>d(A)):a??=d&&Le(()=>d(A)),w){var m=P,g=o?i:a,x=o?a:i;g&&m.skipped_effects.delete(g),x&&m.skipped_effects.add(x),m.add_callback(_)}else _();h&&Z(!0)};Rr(()=>{s=!1,t(u),s||f(null,null)},l),C&&(n=N)}function mi(e,t,r){for(var n=e.items,i=[],a=t.length,o=0;o<a;o++)Lt(t[o].e,i,!0);var l=a>0&&i.length===0&&r!==null;if(l){var s=r.parentNode;Cr(s),s.append(r),n.clear(),ie(e,t[0].prev,t[a-1].next)}Ir(i,()=>{for(var u=0;u<a;u++){var c=t[u];l||(n.delete(c.k),ie(e,c.prev,c.next)),te(c.e,!l)}})}function gi(e,t,r,n,i,a=null){var o=e,l={flags:t,items:new Map,first:null};C&&Ke();var s=null,u=!1,c=new Map,_=dr(()=>{var h=r();return vt(h)?h:h==null?[]:ht(h)}),f,v;function d(){yi(v,f,l,c,o,i,t,n,r),a!==null&&(f.length===0?s?It(s):s=Le(()=>a(o)):s!==null&&Pt(s,()=>{s=null}))}Rr(()=>{v??=E,f=S(_);var h=f.length;if(u&&h===0)return;u=h===0;let w=!1;if(C){var A=ir(o)===ct;A!==(h===0)&&(o=Et(),Q(o),Z(!1),w=!0)}if(C){for(var m=null,g,x=0;x<h;x++){if(N.nodeType===Fe&&N.data===dt){o=N,w=!0,Z(!1);break}var k=f[x],M=n(k,x);g=qt(N,l,m,null,k,M,x,i,t,r),l.items.set(M,g),m=g}h>0&&Q(Et())}if(C)h===0&&a&&(s=Le(()=>a(o)));else if(Nr()){var X=new Set,z=P;for(x=0;x<h;x+=1){k=f[x],M=n(k,x);var F=l.items.get(M)??c.get(M);F?Kr(F,k,x):(g=qt(null,l,null,null,k,M,x,i,t,r,!0),c.set(M,g)),X.add(M)}for(const[b,$]of l.items)X.has(b)||z.skipped_effects.add($.e);z.add_callback(d)}else d();w&&Z(!0),S(_)}),C&&(o=N)}function yi(e,t,r,n,i,a,o,l,s){var u=t.length,c=r.items,_=r.first,f=_,v,d=null,h=[],w=[],A,m,g,x;for(x=0;x<u;x+=1){if(A=t[x],m=l(A,x),g=c.get(m),g===void 0){var k=n.get(m);if(k!==void 0){n.delete(m),c.set(m,k);var M=d?d.next:f;ie(r,d,k),ie(r,k,M),Ft(k,M,i),d=k}else{var X=f?f.e.nodes_start:i;d=qt(X,r,d,d===null?r.first:d.next,A,m,x,a,o,s)}c.set(m,d),h=[],w=[],f=d.next;continue}if(Kr(g,A,x),(g.e.f&K)!==0&&It(g.e),g!==f){if(v!==void 0&&v.has(g)){if(h.length<w.length){var z=w[0],F;d=z.prev;var b=h[0],$=h[h.length-1];for(F=0;F<h.length;F+=1)Ft(h[F],z,i);for(F=0;F<w.length;F+=1)v.delete(w[F]);ie(r,b.prev,$.next),ie(r,d,b),ie(r,$,z),f=z,d=$,x-=1,h=[],w=[]}else v.delete(g),Ft(g,f,i),ie(r,g.prev,g.next),ie(r,g,d===null?r.first:d.next),ie(r,d,g),d=g;continue}for(h=[],w=[];f!==null&&f.k!==m;)(f.e.f&K)===0&&(v??=new Set).add(f),w.push(f),f=f.next;if(f===null)continue;g=f}h.push(g),d=g,f=g.next}if(f!==null||v!==void 0){for(var R=v===void 0?[]:ht(v);f!==null;)(f.e.f&K)===0&&R.push(f),f=f.next;var y=R.length;if(y>0){var p=null;mi(r,R,p)}}e.first=r.first&&r.first.e,e.last=d&&d.e;for(var O of n.values())te(O.e);n.clear()}function Kr(e,t,r,n){nt(e.v,t),e.i=r}function qt(e,t,r,n,i,a,o,l,s,u,c){var _=(s&on)!==0,f=(s&sn)===0,v=_?f?yr(i,!1,!1):Be(i):i,d=(s&ln)===0?o:Be(o),h={i:d,v,k:a,a:null,e:null,prev:r,next:n};try{if(e===null){var w=document.createDocumentFragment();w.append(e=ve())}return h.e=Le(()=>l(e,v,d,u),C),h.e.prev=r&&r.e,h.e.next=n&&n.e,r===null?c||(t.first=h):(r.next=h,r.e.next=h.e),n!==null&&(n.prev=h,n.e.prev=h.e),h}finally{}}function Ft(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,a=e.e.nodes_start;a!==null&&a!==n;){var o=he(a);i.before(a),a=o}}function ie(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 wi(e,t){ei(()=>{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 Ei(e,t){return e==null?null:String(e)}function jt(e,t,r,n){var i=e.__style;if(C||i!==t){var a=Ei(t);(!C||a!==e.getAttribute("style"))&&(a==null?e.removeAttribute("style"):e.style.cssText=a),e.__style=t}return n}const $i=Symbol("is custom element"),Ti=Symbol("is html");function xi(e,t,r,n){var i=Si(e);C&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[$n]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Zr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ae(e,t,r){var n=T,i=E;let a=C;C&&Z(!1),G(null),ne(null);try{t!=="style"&&(Bt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Zr(e).includes(t):r&&typeof r=="object")?e[t]=r:xi(e,t,r==null?r:String(r))}finally{G(n),ne(i),a&&Z(!0)}}function Si(e){return e.__attributes??={[$i]:e.nodeName.includes("-"),[Ti]:e.namespaceURI===_n}}var Bt=new Map;function Zr(e){var t=e.getAttribute("is")||e.nodeName,r=Bt.get(t);if(r)return r;Bt.set(t,r=[]);for(var n,i=e,a=Element.prototype;a!==i;){n=pn(i);for(var o in n)n[o].set&&r.push(o);i=zt(i)}return r}let ut=!1;function Ci(e){var t=ut;try{return ut=!1,[e(),ut]}finally{ut=t}}function Ht(e,t,r,n){var i=(r&cn)!==0,a=(r&dn)!==0,o=n,l=!0,s=()=>(l&&(l=!1,o=a?Vr(n):n),o),u;if(i){var c=Xe in e||tr in e;u=ge(e,t)?.set??(c&&t in e?m=>e[t]=m:void 0)}var _,f=!1;i?[_,f]=Ci(()=>e[t]):_=e[t],_===void 0&&n!==void 0&&(_=s(),u&&(kn(),u(_)));var v;if(v=()=>{var m=e[t];return m===void 0?s():(l=!0,m)},(r&fn)===0)return v;if(u){var d=e.$$legacy;return(function(m,g){return arguments.length>0?((!g||d||f)&&u(g?v():m),m):v()})}var h=!1,w=((r&un)!==0?xt:dr)(()=>(h=!1,v()));i&&S(w);var A=E;return(function(m,g){if(arguments.length>0){const x=g?S(w):i?de(m):m;return L(w,x),h=!0,o!==void 0&&(o=x),m}return xe&&h||(A.f&ye)!==0?w.v:S(w)})}function Ni(e){return new Ai(e)}class Ai{#t;#e;constructor(t){var r=new Map,n=(a,o)=>{var l=yr(o,!1,!1);return r.set(a,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(a,o){return S(r.get(o)??n(o,Reflect.get(a,o)))},has(a,o){return o===tr?!0:(S(r.get(o)??n(o,Reflect.get(a,o))),Reflect.has(a,o))},set(a,o,l){return L(r.get(o)??n(o,l),l),Reflect.set(a,o,l)}});this.#e=(t.hydrate?_i:Xr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&rt(),this.#t=i.$$events;for(const a of Object.keys(this.#e))a==="$set"||a==="$destroy"||a==="$on"||Ae(this,a,{get(){return this.#e[a]},set(o){this.#e[a]=o},enumerable:!0});this.#e.$set=a=>{Object.assign(i,a)},this.#e.$destroy=()=>{bi(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 Qr;typeof HTMLElement=="function"&&(Qr=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 a=document.createElement("slot");n!=="default"&&(a.name=n),pe(i,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Oi(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]=ft(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=Ni({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Zn(()=>{ri(()=>{this.$$r=!0;for(const n of Ge(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=ft(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 a=this.$$c.$on(n,i);this.$$l_u.set(i,a)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ft(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 Ge(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ft(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 Oi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Ri(e,t,r,n,i,a){let o=class extends Qr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Ge(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ge(t).forEach(l=>{Ae(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(s){s=ft(l,s,t),this.$$d[l]=s;var u=this.$$c;if(u){var c=ge(u,l)?.get;c?u[l]=s:u.$set({[l]:s})}}})}),n.forEach(l=>{Ae(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}const Yt={version:"0.61.50"};function ki(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qe={},Ut,en;function Pi(){if(en)return Ut;en=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,s=`
3
- `,u="/",c="*",_="",f="comment",v="declaration";Ut=function(h,w){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];w=w||{};var A=1,m=1;function g(y){var p=y.match(t);p&&(A+=p.length);var O=y.lastIndexOf(s);m=~O?y.length-O:m+y.length}function x(){var y={line:A,column:m};return function(p){return p.position=new k(y),z(),p}}function k(y){this.start=y,this.end={line:A,column:m},this.source=w.source}k.prototype.content=h;function M(y){var p=new Error(w.source+":"+A+":"+m+": "+y);if(p.reason=y,p.filename=w.source,p.line=A,p.column=m,p.source=h,!w.silent)throw p}function X(y){var p=y.exec(h);if(p){var O=p[0];return g(O),h=h.slice(O.length),p}}function z(){X(r)}function F(y){var p;for(y=y||[];p=b();)p!==!1&&y.push(p);return y}function b(){var y=x();if(!(u!=h.charAt(0)||c!=h.charAt(1))){for(var p=2;_!=h.charAt(p)&&(c!=h.charAt(p)||u!=h.charAt(p+1));)++p;if(p+=2,_===h.charAt(p-1))return M("End of comment missing");var O=h.slice(2,p-2);return m+=2,g(O),h=h.slice(p),m+=2,y({type:f,comment:O})}}function $(){var y=x(),p=X(n);if(p){if(b(),!X(i))return M("property missing ':'");var O=X(a),oe=y({type:v,property:d(p[0].replace(e,_)),value:O?d(O[0].replace(e,_)):_});return X(o),oe}}function R(){var y=[];F(y);for(var p;p=$();)p!==!1&&(y.push(p),F(y));return y}return z(),R()};function d(h){return h?h.replace(l,_):_}return Ut}var tn;function Li(){if(tn)return qe;tn=1;var e=qe&&qe.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(qe,"__esModule",{value:!0}),qe.default=r;var t=e(Pi());function r(n,i){var a=null;if(!n||typeof n!="string")return a;var o=(0,t.default)(n),l=typeof i=="function";return o.forEach(function(s){if(s.type==="declaration"){var u=s.property,c=s.value;l?i(u,c,s):c&&(a=a||{},a[u]=c)}}),a}return qe}var Ii=Li();const rn=ki(Ii);rn.default;var Ce={},nn;function Mi(){if(nn)return Ce;nn=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.LanguageTranslator=void 0,Ce.getChildStyleToPass=e,Ce.addComponent=t;function e(n,i){var a,o,l="";try{if(n&&i?.length&&(!((a=Object.keys(n))===null||a===void 0)&&a.length)&&(!((o=i?.filter(function(f){return Object.keys(n).includes(f.name)}))===null||o===void 0)&&o.length))for(var s=function(f){var v=i?.filter(function(d){return d.name===f&&d.defaultValue!==n[f]});v&&(l+="".concat(f,":").concat(n[f],";"))},u=0,c=Object.keys(n);u<c.length;u++){var _=c[u];s(_)}}catch(f){console.error("error getting child style to pass",f)}finally{return l}}function t(n){var i,a=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!a)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var o=n?.iifePath||"main.iife.js";if(!document.getElementById(a+"-script"))try{var l=document.createElement("script");if(l.id=a+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(o),n?.local)l.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var s=a.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(a.replace(s+"-",""),"/").concat(o)}document.head.appendChild(l)}catch(u){console.warn(u)}}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,a){return n.getDictionaryWord(i,this.dictionary,a||this.lang)},n.prototype.translateDate=function(i,a,o){return n.formatDate(i,a,o||this.lang)},n.getDefaultLang=function(){var i,a,o,l,s,u="en";return navigator?.languages&&(!((o=(a=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||a===void 0?void 0:a.toLowerCase())===null||o===void 0)&&o.length)&&(u=(s=(l=navigator.languages[0])===null||l===void 0?void 0:l.split("-")[0])===null||s===void 0?void 0:s.toLowerCase()),u},n.getDictionaryWord=function(i,a,o){var l;if(!i)throw new Error("no wordKey provided");if(!a)throw new Error("no dictionary provided");if(o&&(!((l=a[o])===null||l===void 0)&&l[i]))return a[o][i];var s="",u=n.getDefaultLang();if(!o||u!==o){var c=a?.[u];c?.[i]&&(s=c[i])}return s},n.formatDate=function(i,a,o){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(o||n.getDefaultLang(),a);return l.format(i)},n})();return Ce.LanguageTranslator=r,Ce}var Vt=Mi();function Di(e,t,r,n){const i={schema:t(),id:r()};n("done",i)}var qi=lt("<hb-dialogform></hb-dialogform>",2),Fi=lt("<hb-form></hb-form>",2),ji=lt('<h2 style="margin:60px;text-align:center;color:blue">output</h2> <!>',1),Bi=lt('<hb-table><span slot="buttons-container"><button class="btn btn-outline-primary btn-sm svelte-1m6bm7s">done</button></span></hb-table> <!> <!>',3);const Hi={hash:"svelte-1m6bm7s",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");:host {font-family:"Roboto", sans-serif;}
1
+ (function(Xt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const fr=1,ur=2,cr=16,dr=1,hr=4,vr=8,_r=16,pr=1,br=2,Zt="[",nt="[!",Et="]",Me={},O=Symbol(),mr="http://www.w3.org/1999/xhtml",Qt=!1;var en=Array.isArray,gr=Array.prototype.indexOf,xt=Array.from,rt=Object.keys,it=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,yr=Object.getOwnPropertyDescriptors,wr=Object.prototype,$r=Array.prototype,tn=Object.getPrototypeOf,nn=Object.isExtensible;function Er(e){for(var t=0;t<e.length;t++)e[t]()}function rn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const R=2,st=4,Tt=8,fe=16,ue=32,pe=64,ot=128,Q=512,L=1024,j=2048,ce=4096,H=8192,be=16384,St=32768,De=65536,sn=1<<17,on=1<<18,Se=1<<19,xr=1<<20,Ye=32768,Ct=1<<21,kt=1<<22,me=1<<23,lt=Symbol("$state"),ln=Symbol("legacy props"),Tr=Symbol(""),Ie=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},At=3,Fe=8;function Sr(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Cr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function kr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ar(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Nr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Or(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Rr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Lr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Pr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Mr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Dr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ir(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function at(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Fr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function ee(e){w=e}let $;function V(e){if(e===null)throw at(),Me;return $=e}function ft(){return V(ie($))}function an(e){if(w){if(ie($)!==null)throw at(),Me;$=e}}function qr(e=1){if(w){for(var t=e,n=$;t--;)n=ie(n);$=n}}function ut(e=!0){for(var t=0,n=$;;){if(n.nodeType===Fe){var r=n.data;if(r===Et){if(t===0)return n;t-=1}else(r===Zt||r===nt)&&(t+=1)}var i=ie(n);e&&n.remove(),n=i}}function fn(e){if(!e||e.nodeType!==Fe)throw at(),Me;return e.data}function un(e){return e===this.v}function jr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function cn(e){return!jr(e,this.v)}let Br=!1,U=null;function qe(e){U=e}function dn(e,t=!1,n){U={p:U,i:!1,c:null,e:null,s:e,x:null,l:null}}function hn(e){var t=U,n=t.e;if(n!==null){t.e=null;for(var r of n)Dn(r)}return e!==void 0&&(t.x=e),t.i=!0,U=t.p,e??{}}function vn(){return!0}let Ce=[];function _n(){var e=Ce;Ce=[],Er(e)}function ct(e){if(Ce.length===0&&!Je){var t=Ce;queueMicrotask(()=>{t===Ce&&_n()})}Ce.push(e)}function Hr(){for(;Ce.length>0;)_n()}function pn(e){var t=g;if(t===null)return m.f|=me,e;if((t.f&St)===0){if((t.f&ot)===0)throw e;t.b.error(e)}else je(e,t)}function je(e,t){for(;t!==null;){if((t.f&ot)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const dt=new Set;let C=null,Y=null,re=[],ht=null,Nt=!1,Je=!1;class te{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#a=null;#o=[];#l=[];skipped_effects=new Set;is_fork=!1;process(t){re=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#i(r,n);this.is_fork||this.#f(),this.#r>0||this.is_fork?(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects)):(C=null,mn(n.render_effects),mn(n.effects),this.#a?.resolve()),Y=null}#i(t,n){t.f^=L;for(var r=t.first;r!==null;){var i=r.f,s=(i&(ue|pe))!==0,o=s&&(i&L)!==0,l=o||(i&H)!==0||this.skipped_effects.has(r);if((r.f&ot)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){s?r.f^=L:(i&st)!==0?n.effects.push(r):Xe(r)&&((r.f&fe)!==0&&n.block_effects.push(r),Ze(r));var a=r.first;if(a!==null){r=a;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)f===n.effect&&(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects),n=n.parent),r=f.next,f=f.parent}}#s(t){for(const n of t)((n.f&j)!==0?this.#o:this.#l).push(n),I(n,L)}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&me)===0&&(this.current.set(t,t.v),Y?.set(t,t.v))}activate(){C=this,this.apply()}deactivate(){C=null,Y=null}flush(){if(this.activate(),re.length>0){if(bn(),C!==null&&C!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#u()}#u(){if(dt.size>1){this.previous.clear();var t=Y,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of dt){if(i===this){n=!1;continue}const s=[];for(const[l,a]of this.current){if(i.current.has(l))if(n&&a!==i.current.get(l))i.current.set(l,a);else continue;s.push(l)}if(s.length===0)continue;const o=[...i.current.keys()].filter(l=>!this.current.has(l));if(o.length>0){const l=new Set,a=new Map;for(const f of s)gn(f,o,l,a);if(re.length>0){C=i,i.apply();for(const f of re)i.#i(f,r);re=[],i.deactivate()}}}C=null,Y=t}this.committed=!0,dt.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#o)I(t,j),ke(t);for(const t of this.#l)I(t,ce),ke(t);this.#o=[],this.#l=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=rn()).promise}static ensure(){if(C===null){const t=C=new te;dt.add(C),Je||te.enqueue(()=>{C===t&&t.flush()})}return C}static enqueue(t){ct(t)}apply(){}}function vt(e){var t=Je;Je=!0;try{for(var n;;){if(Hr(),re.length===0&&(C?.flush(),re.length===0))return ht=null,n;bn()}}finally{Je=t}}function bn(){var e=Ne;Nt=!0;try{var t=0;for(Un(!0);re.length>0;){var n=te.ensure();if(t++>1e3){var r,i;Vr()}n.process(re),ge.clear()}}finally{Nt=!1,Un(e),ht=null}}function Vr(){try{Or()}catch(e){je(e,ht)}}let de=null;function mn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(be|H))===0&&Xe(r)&&(de=new Set,Ze(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?jn(r):r.fn=null),de?.size>0)){ge.clear();for(const i of de){if((i.f&(be|H))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)de.has(o)&&(de.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(be|H))===0&&Ze(a)}}de.clear()}}de=null}}function gn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&R)!==0?gn(i,t,n,r):(s&(kt|fe))!==0&&(s&j)===0&&yn(i,t,r)&&(I(i,j),ke(i))}}function yn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&R)!==0&&yn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function ke(e){for(var t=ht=e;t.parent!==null;){t=t.parent;var n=t.f;if(Nt&&t===g&&(n&fe)!==0&&(n&on)===0)return;if((n&(pe|ue))!==0){if((n&L)===0)return;t.f^=L}}re.push(t)}function Ur(e){let t=0,n=Ae(0),r;return()=>{bt()&&(y(n),In(()=>(t===0&&(r=jt(()=>e(()=>We(n)))),t+=1,()=>{ct(()=>{t-=1,t===0&&(r?.(),r=void 0,We(n))})})))}}var Yr=De|Se|ot;function Jr(e,t,n){new zr(e,t,n)}class zr{parent;#t=!1;#e;#n=w?$:null;#r;#a;#o;#l=null;#i=null;#s=null;#f=null;#u=null;#h=0;#c=0;#v=!1;#d=null;#g=Ur(()=>(this.#d=Ae(this.#h),()=>{this.#d=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#a=r,this.parent=g.b,this.#t=!!this.#r.pending,this.#o=It(()=>{if(g.b=this,w){const s=this.#n;ft(),s.nodeType===Fe&&s.data===nt?this.#w():this.#y()}else{var i=this.#b();try{this.#l=K(()=>r(i))}catch(s){this.error(s)}this.#c>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},Yr),w&&(this.#e=$)}#y(){try{this.#l=K(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#r.pending;t&&(this.#i=K(()=>t(this.#e)),te.enqueue(()=>{var n=this.#b();this.#l=this.#_(()=>(te.ensure(),K(()=>this.#a(n)))),this.#c>0?this.#p():(He(this.#i,()=>{this.#i=null}),this.#t=!1)}))}#b(){var t=this.#e;return this.#t&&(this.#u=ne(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var n=g,r=m,i=U;X(this.#o),D(this.#o),qe(this.#o.ctx);try{return t()}catch(s){return pn(s),null}finally{X(n),D(r),qe(i)}}#p(){const t=this.#r.pending;this.#l!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),Vn(this.#l,this.#f)),this.#i===null&&(this.#i=K(()=>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&&He(this.#i,()=>{this.#i=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#m(t),this.#h+=t,this.#d&&ze(this.#d,this.#h)}get_effect_pending(){return this.#g(),y(this.#d)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#l&&(M(this.#l),this.#l=null),this.#i&&(M(this.#i),this.#i=null),this.#s&&(M(this.#s),this.#s=null),w&&(V(this.#n),qr(),V(ut()));var i=!1,s=!1;const o=()=>{if(i){Fr();return}i=!0,s&&Ir(),te.ensure(),this.#h=0,this.#s!==null&&He(this.#s,()=>{this.#s=null}),this.#t=this.has_pending_snippet(),this.#l=this.#_(()=>(this.#v=!1,K(()=>this.#a(this.#e)))),this.#c>0?this.#p():this.#t=!1};var l=m;try{D(null),s=!0,n?.(t,o),s=!1}catch(a){je(a,this.#o&&this.#o.parent)}finally{D(l)}r&&ct(()=>{this.#s=this.#_(()=>{te.ensure(),this.#v=!0;try{return K(()=>{r(this.#e,()=>t,()=>o)})}catch(a){return je(a,this.#o.parent),null}finally{this.#v=!1}})})}}function Wr(e,t,n,r){const i=Ot;if(n.length===0&&e.length===0){r(t.map(i));return}var s=C,o=g,l=Gr();function a(){Promise.all(n.map(f=>Kr(f))).then(f=>{l();try{r([...t.map(i),...f])}catch(d){(o.f&be)===0&&je(d,o)}s?.deactivate(),_t()}).catch(f=>{je(f,o)})}e.length>0?Promise.all(e).then(()=>{l();try{return a()}finally{s?.deactivate(),_t()}}):a()}function Gr(){var e=g,t=m,n=U,r=C;return function(s=!0){X(e),D(t),qe(n),s&&r?.activate()}}function _t(){X(null),D(null),qe(null)}function Ot(e){var t=R|j,n=m!==null&&(m.f&R)!==0?m:null;return g!==null&&(g.f|=Se),{ctx:U,deps:null,effects:null,equals:un,f:t,fn:e,reactions:null,rv:0,v:O,wv:0,parent:n??g,ac:null}}function Kr(e,t){let n=g;n===null&&Cr();var r=n.b,i=void 0,s=Ae(O),o=!m,l=new Map;return ii(()=>{var a=rn();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{f===C&&f.committed&&f.deactivate(),_t()})}catch(u){a.reject(u),_t()}var f=C;if(o){var d=!r.is_pending();r.update_pending_count(1),f.increment(d),l.get(f)?.reject(Ie),l.delete(f),l.set(f,a)}const v=(u,c=void 0)=>{if(f.activate(),c)c!==Ie&&(s.f|=me,ze(s,c));else{(s.f&me)!==0&&(s.f^=me),ze(s,u);for(const[_,p]of l){if(l.delete(_),_===f)break;p.reject(Ie)}}o&&(r.update_pending_count(-1),f.decrement(d))};a.promise.then(v,u=>v(null,u||"unknown"))}),Pn(()=>{for(const a of l.values())a.reject(Ie)}),new Promise(a=>{function f(d){function v(){d===i?a(s):f(i)}d.then(v,v)}f(i)})}function wn(e){const t=Ot(e);return t.equals=cn,t}function $n(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)M(t[n])}}function Xr(e){for(var t=e.parent;t!==null;){if((t.f&R)===0)return t;t=t.parent}return null}function Rt(e){var t,n=g;X(Xr(e));try{e.f&=~Ye,$n(e),t=Kn(e)}finally{X(n)}return t}function En(e){var t=Rt(e);if(e.equals(t)||(e.v=t,e.wv=Wn()),!Oe)if(Y!==null)bt()&&Y.set(e,e.v);else{var n=(e.f&Q)===0?ce:L;I(e,n)}}let Lt=new Set;const ge=new Map;let xn=!1;function Ae(e,t){var n={f:0,v:e,reactions:null,equals:un,rv:0,wv:0};return n}function P(e,t){const n=Ae(e);return li(n),n}function Tn(e,t=!1,n=!0){const r=Ae(e);return t||(r.equals=cn),r}function k(e,t,n=!1){m!==null&&(!oe||(m.f&sn)!==0)&&vn()&&(m.f&(R|fe|kt|sn))!==0&&!he?.includes(e)&&Dr();let r=n?ye(t):t;return ze(e,r)}function ze(e,t){if(!e.equals(t)){var n=e.v;Oe?ge.set(e,t):ge.set(e,n),e.v=t;var r=te.ensure();r.capture(e,n),(e.f&R)!==0&&((e.f&j)!==0&&Rt(e),I(e,(e.f&Q)!==0?L:ce)),e.wv=Wn(),Sn(e,j),g!==null&&(g.f&L)!==0&&(g.f&(ue|pe))===0&&(Z===null?ai([e]):Z.push(e)),!r.is_fork&&Lt.size>0&&!xn&&Zr()}return t}function Zr(){xn=!1;const e=Array.from(Lt);for(const t of e)(t.f&L)!==0&&I(t,ce),Xe(t)&&Ze(t);Lt.clear()}function We(e){k(e,e.v+1)}function Sn(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],o=s.f,l=(o&j)===0;if(l&&I(s,t),(o&R)!==0){var a=s;Y?.delete(a),(o&Ye)===0&&(o&Q&&(s.f|=Ye),Sn(a,ce))}else l&&((o&fe)!==0&&de!==null&&de.add(s),ke(s))}}function ye(e){if(typeof e!="object"||e===null||lt in e)return e;const t=tn(e);if(t!==wr&&t!==$r)return e;var n=new Map,r=en(e),i=P(0),s=Re,o=l=>{if(Re===s)return l();var a=m,f=Re;D(null),zn(s);var d=l();return D(a),zn(f),d};return r&&n.set("length",P(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Pr();var d=n.get(a);return d===void 0?d=o(()=>{var v=P(f.value);return n.set(a,v),v}):k(d,f.value,!0),!0},deleteProperty(l,a){var f=n.get(a);if(f===void 0){if(a in l){const d=o(()=>P(O));n.set(a,d),We(i)}}else k(f,O),We(i);return!0},get(l,a,f){if(a===lt)return e;var d=n.get(a),v=a in l;if(d===void 0&&(!v||Te(l,a)?.writable)&&(d=o(()=>{var c=ye(v?l[a]:O),_=P(c);return _}),n.set(a,d)),d!==void 0){var u=y(d);return u===O?void 0:u}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var d=n.get(a);d&&(f.value=y(d))}else if(f===void 0){var v=n.get(a),u=v?.v;if(v!==void 0&&u!==O)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(l,a){if(a===lt)return!0;var f=n.get(a),d=f!==void 0&&f.v!==O||Reflect.has(l,a);if(f!==void 0||g!==null&&(!d||Te(l,a)?.writable)){f===void 0&&(f=o(()=>{var u=d?ye(l[a]):O,c=P(u);return c}),n.set(a,f));var v=y(f);if(v===O)return!1}return d},set(l,a,f,d){var v=n.get(a),u=a in l;if(r&&a==="length")for(var c=f;c<v.v;c+=1){var _=n.get(c+"");_!==void 0?k(_,O):c in l&&(_=o(()=>P(O)),n.set(c+"",_))}if(v===void 0)(!u||Te(l,a)?.writable)&&(v=o(()=>P(void 0)),k(v,ye(f)),n.set(a,v));else{u=v.v!==O;var p=o(()=>ye(f));k(v,p)}var T=Reflect.getOwnPropertyDescriptor(l,a);if(T?.set&&T.set.call(d,f),!u){if(r&&typeof a=="string"){var z=n.get("length"),S=Number(a);Number.isInteger(S)&&S>=z.v&&k(z,S+1)}We(i)}return!0},ownKeys(l){y(i);var a=Reflect.ownKeys(l).filter(v=>{var u=n.get(v);return u===void 0||u.v!==O});for(var[f,d]of n)d.v!==O&&!(f in l)&&a.push(f);return a},setPrototypeOf(){Mr()}})}var Cn,kn,An,Nn;function Pt(){if(Cn===void 0){Cn=window,kn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;An=Te(t,"firstChild").get,Nn=Te(t,"nextSibling").get,nn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),nn(n)&&(n.__t=void 0)}}function ne(e=""){return document.createTextNode(e)}function Be(e){return An.call(e)}function ie(e){return Nn.call(e)}function On(e,t){if(!w)return Be(e);var n=Be($);return n===null&&(n=$.appendChild(ne())),V(n),n}function pt(e,t=!1){if(!w){var n=Be(e);return n instanceof Comment&&n.data===""?ie(n):n}if(t&&$?.nodeType!==At){var r=ne();return $?.before(r),V(r),r}return $}function Mt(e,t=1,n=!1){let r=w?$:e;for(var i;t--;)i=r,r=ie(r);if(!w)return r;if(n&&r?.nodeType!==At){var s=ne();return r===null?i?.after(s):r.before(s),V(s),s}return V(r),r}function Rn(e){e.textContent=""}function Ln(){return!1}function Dt(e){var t=m,n=g;D(null),X(null);try{return e()}finally{D(t),X(n)}}function Qr(e){g===null&&(m===null&&Nr(),Ar()),Oe&&kr()}function ei(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function se(e,t,n,r=!0){var i=g;i!==null&&(i.f&H)!==0&&(e|=H);var s={ctx:U,deps:null,nodes_start:null,nodes_end:null,f:e|j|Q,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(n)try{Ze(s),s.f|=St}catch(a){throw M(s),a}else t!==null&&ke(s);if(r){var o=s;if(n&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&Se)===0&&(o=o.first,(e&fe)!==0&&(e&De)!==0&&o!==null&&(o.f|=De)),o!==null&&(o.parent=i,i!==null&&ei(o,i),m!==null&&(m.f&R)!==0&&(e&pe)===0)){var l=m;(l.effects??=[]).push(o)}}return s}function bt(){return m!==null&&!oe}function Pn(e){const t=se(Tt,null,!1);return I(t,L),t.teardown=e,t}function Mn(e){Qr();var t=g.f,n=!m&&(t&ue)!==0&&(t&St)===0;if(n){var r=U;(r.e??=[]).push(e)}else return Dn(e)}function Dn(e){return se(st|xr,e,!1)}function ti(e){te.ensure();const t=se(pe|Se,e,!0);return()=>{M(t)}}function ni(e){te.ensure();const t=se(pe|Se,e,!0);return(n={})=>new Promise(r=>{n.outro?He(t,()=>{M(t),r(void 0)}):(M(t),r(void 0))})}function ri(e){return se(st,e,!1)}function ii(e){return se(kt|Se,e,!0)}function In(e,t=0){return se(Tt|t,e,!0)}function Ge(e,t=[],n=[],r=[],i=!1){Wr(r,t,n,s=>{se(i?st:Tt,()=>e(...s.map(y)),!0)})}function It(e,t=0){var n=se(fe|t,e,!0);return n}function K(e,t=!0){return se(ue|Se,e,!0,t)}function Fn(e){var t=e.teardown;if(t!==null){const n=Oe,r=m;Yn(!0),D(null);try{t.call(null)}finally{Yn(n),D(r)}}}function qn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Dt(()=>{i.abort(Ie)});var r=n.next;(n.f&pe)!==0?n.parent=null:M(n,t),n=r}}function si(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ue)===0&&M(t),t=n}}function M(e,t=!0){var n=!1;(t||(e.f&on)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(oi(e.nodes_start,e.nodes_end),n=!0),qn(e,t&&!n),mt(e,0),I(e,be);var r=e.transitions;if(r!==null)for(const s of r)s.stop();Fn(e);var i=e.parent;i!==null&&i.first!==null&&jn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function oi(e,t){for(;e!==null;){var n=e===t?null:ie(e);e.remove(),e=n}}function jn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function He(e,t,n=!0){var r=[];Ft(e,r,!0),Bn(r,()=>{n&&M(e),t&&t()})}function Bn(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Ft(e,t,n){if((e.f&H)===0){if(e.f^=H,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&De)!==0||(r.f&ue)!==0&&(e.f&fe)!==0;Ft(r,t,s?n:!1),r=i}}}function qt(e){Hn(e,!0)}function Hn(e,t){if((e.f&H)!==0){e.f^=H,(e.f&L)===0&&(I(e,j),ke(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&De)!==0||(n.f&ue)!==0;Hn(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function Vn(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:ie(n);t.append(n),n=i}}let Ne=!1;function Un(e){Ne=e}let Oe=!1;function Yn(e){Oe=e}let m=null,oe=!1;function D(e){m=e}let g=null;function X(e){g=e}let he=null;function li(e){m!==null&&(he===null?he=[e]:he.push(e))}let q=null,J=0,Z=null;function ai(e){Z=e}let Jn=1,Ke=0,Re=Ke;function zn(e){Re=e}function Wn(){return++Jn}function Xe(e){var t=e.f;if((t&j)!==0)return!0;if(t&R&&(e.f&=~Ye),(t&ce)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(Xe(s)&&En(s),s.wv>e.wv)return!0}(t&Q)!==0&&Y===null&&I(e,L)}return!1}function Gn(e,t,n=!0){var r=e.reactions;if(r!==null&&!he?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&R)!==0?Gn(s,t,!1):t===s&&(n?I(s,j):(s.f&L)!==0&&I(s,ce),ke(s))}}function Kn(e){var t=q,n=J,r=Z,i=m,s=he,o=U,l=oe,a=Re,f=e.f;q=null,J=0,Z=null,m=(f&(ue|pe))===0?e:null,he=null,qe(e.ctx),oe=!1,Re=++Ke,e.ac!==null&&(Dt(()=>{e.ac.abort(Ie)}),e.ac=null);try{e.f|=Ct;var d=e.fn,v=d(),u=e.deps;if(q!==null){var c;if(mt(e,J),u!==null&&J>0)for(u.length=J+q.length,c=0;c<q.length;c++)u[J+c]=q[c];else e.deps=u=q;if(Ne&&bt()&&(e.f&Q)!==0)for(c=J;c<u.length;c++)(u[c].reactions??=[]).push(e)}else u!==null&&J<u.length&&(mt(e,J),u.length=J);if(vn()&&Z!==null&&!oe&&u!==null&&(e.f&(R|ce|j))===0)for(c=0;c<Z.length;c++)Gn(Z[c],e);return i!==null&&i!==e&&(Ke++,Z!==null&&(r===null?r=Z:r.push(...Z))),(e.f&me)!==0&&(e.f^=me),v}catch(_){return pn(_)}finally{e.f^=Ct,q=t,J=n,Z=r,m=i,he=s,qe(o),oe=l,Re=a}}function fi(e,t){let n=t.reactions;if(n!==null){var r=gr.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&R)!==0&&(q===null||!q.includes(t))&&(I(t,ce),(t.f&Q)!==0&&(t.f^=Q,t.f&=~Ye),$n(t),mt(t,0))}function mt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)fi(e,n[r])}function Ze(e){var t=e.f;if((t&be)===0){I(e,L);var n=g,r=Ne;g=e,Ne=!0;try{(t&fe)!==0?si(e):qn(e),Fn(e);var i=Kn(e);e.teardown=typeof i=="function"?i:null,e.wv=Jn;var s;Qt&&Br&&(e.f&j)!==0&&e.deps}finally{Ne=r,g=n}}}function y(e){var t=e.f,n=(t&R)!==0;if(m!==null&&!oe){var r=g!==null&&(g.f&be)!==0;if(!r&&!he?.includes(e)){var i=m.deps;if((m.f&Ct)!==0)e.rv<Ke&&(e.rv=Ke,q===null&&i!==null&&i[J]===e?J++:q===null?q=[e]:q.includes(e)||q.push(e));else{(m.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[m]:s.includes(m)||s.push(m)}}}if(Oe){if(ge.has(e))return ge.get(e);if(n){var o=e,l=o.v;return((o.f&L)===0&&o.reactions!==null||Zn(o))&&(l=Rt(o)),ge.set(o,l),l}}else if(n){if(o=e,Y?.has(o))return Y.get(o);Xe(o)&&En(o),Ne&&bt()&&(o.f&Q)===0&&Xn(o)}else if(Y?.has(e))return Y.get(e);if((e.f&me)!==0)throw e.v;return e.v}function Xn(e){if(e.deps!==null){e.f^=Q;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&R)!==0&&(t.f&Q)===0&&Xn(t)}}function Zn(e){if(e.v===O)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ge.has(t)||(t.f&R)!==0&&Zn(t))return!0;return!1}function jt(e){var t=oe;try{return oe=!0,e()}finally{oe=t}}const ui=-7169;function I(e,t){e.f=e.f&ui|t}const Qn=new Set,Bt=new Set;function ci(e,t,n,r={}){function i(s){if(r.capture||et.call(t,s),!s.cancelBubble)return Dt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ct(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Qe(e,t,n,r,i){var s={capture:r,passive:i},o=ci(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Pn(()=>{t.removeEventListener(e,o,s)})}function di(e){for(var t=0;t<e.length;t++)Qn.add(e[t]);for(var n of Bt)n(e)}let er=null;function et(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;er=e;var o=0,l=er===e&&e.__root;if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){it(e,"currentTarget",{configurable:!0,get(){return s||n}});var d=m,v=g;D(null),X(null);try{for(var u,c=[];s!==null;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var p=s["__"+r];p!=null&&(!s.disabled||e.target===s)&&p.call(s,e)}catch(T){u?c.push(T):u=T}if(e.cancelBubble||_===t||_===null)break;s=_}if(u){for(let T of c)queueMicrotask(()=>{throw T});throw u}}finally{e.__root=t,delete e.currentTarget,D(d),X(v)}}}function hi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function we(e,t){var n=g;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function gt(e,t){var n=(t&pr)!==0,r=(t&br)!==0,i,s=!e.startsWith("<!>");return()=>{if(w)return we($,null),$;i===void 0&&(i=hi(s?e:"<!>"+e),n||(i=Be(i)));var o=r||kn?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Be(o),a=o.lastChild;we(l,a)}else we(o,o);return o}}function vi(e=""){if(!w){var t=ne(e+"");return we(t,t),t}var n=$;return n.nodeType!==At&&(n.before(n=ne()),V(n)),we(n,n),n}function tr(){if(w)return we($,null),$;var e=document.createDocumentFragment(),t=document.createComment(""),n=ne();return e.append(t,n),we(t,n),e}function $e(e,t){if(w){g.nodes_end=$,ft();return}e!==null&&e.before(t)}const _i=["touchstart","touchmove"];function pi(e){return _i.includes(e)}function nr(e,t){return rr(e,t)}function bi(e,t){Pt(),t.intro=t.intro??!1;const n=t.target,r=w,i=$;try{for(var s=Be(n);s&&(s.nodeType!==Fe||s.data!==Zt);)s=ie(s);if(!s)throw Me;ee(!0),V(s);const o=rr(e,{...t,anchor:s});return ee(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==Me&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Rr(),Pt(),Rn(n),ee(!1),nr(e,t)}finally{ee(r),V(i)}}const Ve=new Map;function rr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0}){Pt();var l=new Set,a=v=>{for(var u=0;u<v.length;u++){var c=v[u];if(!l.has(c)){l.add(c);var _=pi(c);t.addEventListener(c,et,{passive:_});var p=Ve.get(c);p===void 0?(document.addEventListener(c,et,{passive:_}),Ve.set(c,1)):Ve.set(c,p+1)}}};a(xt(Qn)),Bt.add(a);var f=void 0,d=ni(()=>{var v=n??t.appendChild(ne());return Jr(v,{pending:()=>{}},u=>{if(s){dn({});var c=U;c.c=s}if(i&&(r.$$events=i),w&&we(u,null),f=e(u,r)||{},w&&(g.nodes_end=$,$===null||$.nodeType!==Fe||$.data!==Et))throw at(),Me;s&&hn()}),()=>{for(var u of l){t.removeEventListener(u,et);var c=Ve.get(u);--c===0?(document.removeEventListener(u,et),Ve.delete(u)):Ve.set(u,c)}Bt.delete(a),v!==n&&v.parentNode?.removeChild(v)}});return Ht.set(f,d),f}let Ht=new WeakMap;function mi(e,t){const n=Ht.get(e);return n?(Ht.delete(e),n(t)):Promise.resolve()}class gi{anchor;#t=new Map;#e=new Map;#n=new Map;#r=!0;constructor(t,n=!0){this.anchor=t,this.#r=n}#a=()=>{var t=C;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)qt(r);else{var i=this.#n.get(n);i&&(this.#e.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===t)break;const l=this.#n.get(o);l&&(M(l.effect),this.#n.delete(o))}for(const[s,o]of this.#e){if(s===n)continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();Vn(o,f),f.append(ne()),this.#n.set(s,{effect:o,fragment:f})}else M(o);this.#e.delete(s)};this.#r||!r?He(o,l,!1):l()}}};#o=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#n)n.includes(r)||(M(i.effect),this.#n.delete(r))};ensure(t,n){var r=C,i=Ln();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),o=ne();s.append(o),this.#n.set(t,{effect:K(()=>n(o)),fragment:s})}else this.#e.set(t,K(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[l,a]of this.#e)l===t?r.skipped_effects.delete(a):r.skipped_effects.add(a);for(const[l,a]of this.#n)l===t?r.skipped_effects.delete(a.effect):r.skipped_effects.add(a.effect);r.oncommit(this.#a),r.ondiscard(this.#o)}else w&&(this.anchor=$),this.#a()}}function yi(e){U===null&&Sr(),Mn(()=>{const t=jt(e);if(typeof t=="function")return t})}function yt(e,t,n=!1){w&&ft();var r=new gi(e),i=n?De:0;function s(o,l){if(w){const f=fn(e)===nt;if(o===f){var a=ut();V(a),r.anchor=a,ee(!1),r.ensure(o,l),ee(!0);return}}r.ensure(o,l)}It(()=>{var o=!1;t((l,a=!0)=>{o=!0,s(a,l)}),o||s(!1,null)},i)}function wi(e,t,n){for(var r=e.items,i=[],s=t.length,o=0;o<s;o++)Ft(t[o].e,i,!0);var l=s>0&&i.length===0&&n!==null;if(l){var a=n.parentNode;Rn(a),a.append(n),r.clear(),le(e,t[0].prev,t[s-1].next)}Bn(i,()=>{for(var f=0;f<s;f++){var d=t[f];l||(r.delete(d.k),le(e,d.prev,d.next)),M(d.e,!l)}})}function $i(e,t,n,r,i,s=null){var o=e,l={flags:t,items:new Map,first:null};w&&ft();var a=null,f=!1,d=new Map,v=wn(()=>{var p=n();return en(p)?p:p==null?[]:xt(p)}),u,c;function _(){Ei(c,u,l,d,o,i,t,r,n),s!==null&&(u.length===0?a?qt(a):a=K(()=>s(o)):a!==null&&He(a,()=>{a=null}))}It(()=>{c??=g,u=y(v);var p=u.length;if(f&&p===0)return;f=p===0;let T=!1;if(w){var z=fn(o)===nt;z!==(p===0)&&(o=ut(),V(o),ee(!1),T=!0)}if(w){for(var S=null,E,b=0;b<p;b++){if($.nodeType===Fe&&$.data===Et){o=$,T=!0,ee(!1);break}var F=u[b],W=r(F,b);E=Vt($,l,S,null,F,W,b,i,t,n),l.items.set(W,E),S=E}p>0&&V(ut())}if(w)p===0&&s&&(a=K(()=>s(o)));else if(Ln()){var Pe=new Set,ve=C;for(b=0;b<p;b+=1){F=u[b],W=r(F,b);var G=l.items.get(W)??d.get(W);G?ir(G,F,b):(E=Vt(null,l,null,null,F,W,b,i,t,n,!0),d.set(W,E)),Pe.add(W)}for(const[Ue,h]of l.items)Pe.has(Ue)||ve.skipped_effects.add(h.e);ve.oncommit(_)}else _();T&&ee(!0),y(v)}),w&&(o=$)}function Ei(e,t,n,r,i,s,o,l,a){var f=t.length,d=n.items,v=n.first,u=v,c,_=null,p=[],T=[],z,S,E,b;for(b=0;b<f;b+=1){if(z=t[b],S=l(z,b),E=d.get(S),E===void 0){var F=r.get(S);if(F!==void 0){r.delete(S),d.set(S,F);var W=_?_.next:u;le(n,_,F),le(n,F,W),Ut(F,W,i),_=F}else{var Pe=u?u.e.nodes_start:i;_=Vt(Pe,n,_,_===null?n.first:_.next,z,S,b,s,o,a)}d.set(S,_),p=[],T=[],u=_.next;continue}if(ir(E,z,b),(E.e.f&H)!==0&&qt(E.e),E!==u){if(c!==void 0&&c.has(E)){if(p.length<T.length){var ve=T[0],G;_=ve.prev;var Ue=p[0],h=p[p.length-1];for(G=0;G<p.length;G+=1)Ut(p[G],ve,i);for(G=0;G<T.length;G+=1)c.delete(T[G]);le(n,Ue.prev,h.next),le(n,_,Ue),le(n,h,ve),u=ve,_=h,b-=1,p=[],T=[]}else c.delete(E),Ut(E,u,i),le(n,E.prev,E.next),le(n,E,_===null?n.first:_.next),le(n,_,E),_=E;continue}for(p=[],T=[];u!==null&&u.k!==S;)(u.e.f&H)===0&&(c??=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;E=u}p.push(E),_=E,u=E.next}if(u!==null||c!==void 0){for(var x=c===void 0?[]:xt(c);u!==null;)(u.e.f&H)===0&&x.push(u),u=u.next;var N=x.length;if(N>0){var B=null;wi(n,x,B)}}e.first=n.first&&n.first.e,e.last=_&&_.e;for(var A of r.values())M(A.e);r.clear()}function ir(e,t,n,r){ze(e.v,t),e.i=n}function Vt(e,t,n,r,i,s,o,l,a,f,d){var v=(a&fr)!==0,u=(a&cr)===0,c=v?u?Tn(i,!1,!1):Ae(i):i,_=(a&ur)===0?o:Ae(o),p={i:_,v:c,k:s,a:null,e:null,prev:n,next:r};try{if(e===null){var T=document.createDocumentFragment();T.append(e=ne())}return p.e=K(()=>l(e,c,_,f),w),p.e.prev=n&&n.e,p.e.next=r&&r.e,n===null?d||(t.first=p):(n.next=p,n.e.next=p.e),r!==null&&(r.prev=p,r.e.prev=p.e),p}finally{}}function Ut(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,s=e.e.nodes_start;s!==null&&s!==r;){var o=ie(s);i.before(s),s=o}}function le(e,t,n){t===null?e.first=n:(t.next=n,t.e.next=n&&n.e),n!==null&&(n.prev=t,n.e.prev=t&&t.e)}function xi(e,t){ri(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Ti(e,t){return e==null?null:String(e)}function Yt(e,t,n,r){var i=e.__style;if(w||i!==t){var s=Ti(t);(!w||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Si=Symbol("is custom element"),Ci=Symbol("is html");function ki(e,t,n,r){var i=Ai(e);w&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Tr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&sr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ae(e,t,n){var r=m,i=g;let s=w;w&&ee(!1),D(null),X(null);try{t!=="style"&&(Jt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?sr(e).includes(t):n&&typeof n=="object")?e[t]=n:ki(e,t,n==null?n:String(n))}finally{D(r),X(i),s&&ee(!0)}}function Ai(e){return e.__attributes??={[Si]:e.nodeName.includes("-"),[Ci]:e.namespaceURI===mr}}var Jt=new Map;function sr(e){var t=e.getAttribute("is")||e.nodeName,n=Jt.get(t);if(n)return n;Jt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=yr(i);for(var o in r)r[o].set&&n.push(o);i=tn(i)}return n}let wt=!1;function Ni(e){var t=wt;try{return wt=!1,[e(),wt]}finally{wt=t}}function zt(e,t,n,r){var i=(n&vr)!==0,s=(n&_r)!==0,o=r,l=!0,a=()=>(l&&(l=!1,o=s?jt(r):r),o),f;if(i){var d=lt in e||ln in e;f=Te(e,t)?.set??(d&&t in e?S=>e[t]=S:void 0)}var v,u=!1;i?[v,u]=Ni(()=>e[t]):v=e[t],v===void 0&&r!==void 0&&(v=a(),f&&(Lr(),f(v)));var c;if(c=()=>{var S=e[t];return S===void 0?a():(l=!0,S)},(n&hr)===0)return c;if(f){var _=e.$$legacy;return(function(S,E){return arguments.length>0?((!E||_||u)&&f(E?c():S),S):c()})}var p=!1,T=((n&dr)!==0?Ot:wn)(()=>(p=!1,c()));i&&y(T);var z=g;return(function(S,E){if(arguments.length>0){const b=E?y(T):i?ye(S):S;return k(T,b),p=!0,o!==void 0&&(o=b),S}return Oe&&p||(z.f&be)!==0?T.v:y(T)})}function Oi(e){return new Ri(e)}class Ri{#t;#e;constructor(t){var n=new Map,r=(s,o)=>{var l=Tn(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return y(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===ln?!0:(y(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return k(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#e=(t.hydrate?bi:nr)(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)&&vt(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||it(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{mi(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let or;typeof HTMLElement=="function"&&(or=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),$e(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Li(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=$t(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Oi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ti(()=>{In(()=>{this.$$r=!0;for(const r of rt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=$t(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=$t(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return rt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function $t(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Li(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Pi(e,t,n,r,i,s){let o=class extends or{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return rt(t).map(l=>(t[l].attribute||l).toLowerCase())}};return rt(t).forEach(l=>{it(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=$t(l,a,t),this.$$d[l]=a;var f=this.$$c;if(f){var d=Te(f,l)?.get;d?f[l]=a:f.$set({[l]:a})}}})}),r.forEach(l=>{it(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}const Wt={version:"0.61.52"};var Le={},lr;function Mi(){if(lr)return Le;lr=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.LanguageTranslator=void 0,Le.getChildStyleToPass=e,Le.addComponent=t;function e(r,i){var s,o,l="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(u){return Object.keys(r).includes(u.name)}))===null||o===void 0)&&o.length))for(var a=function(u){var c=i?.filter(function(_){return _.name===u&&_.defaultValue!==r[u]});c&&(l+="".concat(u,":").concat(r[u],";"))},f=0,d=Object.keys(r);f<d.length;f++){var v=d[f];a(v)}}catch(u){console.error("error getting child style to pass",u)}finally{return l}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var o=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(o),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(a+"-",""),"/").concat(o)}document.head.appendChild(l)}catch(f){console.warn(f)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,o){return r.formatDate(i,s,o||this.lang)},r.getDefaultLang=function(){var i,s,o,l="en";return navigator?.languages&&(!((o=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||o===void 0)&&o.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(i,s,o){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(o&&(!((l=s[o])===null||l===void 0)&&l[i]))return s[o][i];var a="",f=r.getDefaultLang();if(!o||f!==o){var d=s?.[f];d?.[i]&&(a=d[i])}return a},r.formatDate=function(i,s,o){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(o||r.getDefaultLang(),s);return l.format(i)},r})();return Le.LanguageTranslator=n,Le}var Gt=Mi(),Di=gt("<hb-dialogform></hb-dialogform>",2),Ii=gt("<hb-form></hb-form>",2),Fi=gt('<h2 style="margin:60px;text-align:center;color:blue">output</h2> <!>',1),qi=gt('<hb-table><span slot="buttons-container"><button class="btn btn-outline-primary btn-sm svelte-1f1dlex">done</button></span></hb-table> <!> <!>',3);const ji={hash:"svelte-1f1dlex",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");:host {font-family:"Roboto", sans-serif;}
4
3
  /*!
5
4
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
6
5
  * Copyright 2011-2021 The Bootstrap Authors
7
6
  * Copyright 2011-2021 Twitter, Inc.
8
7
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
9
- */.btn.svelte-1m6bm7s {--bs-btn-padding-x: 0.75rem;--bs-btn-padding-y: 0.375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.5;--bs-btn-color: var(--bs-body-color);--bs-btn-bg: transparent;--bs-btn-border-width: var(--bs-border-width);--bs-btn-border-color: transparent;--bs-btn-border-radius: var(--bs-border-radius);--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity: 0.65;--bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
10
- @media (prefers-reduced-motion: reduce) {.btn.svelte-1m6bm7s {transition:none;}
11
- }.btn.svelte-1m6bm7s:hover {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);}.btn.svelte-1m6bm7s:focus-visible {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow);} .btn.svelte-1m6bm7s:first-child:active {color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color);} .btn.svelte-1m6bm7s:first-child:active:focus-visible {box-shadow:var(--bs-btn-focus-box-shadow);}.btn.svelte-1m6bm7s:disabled {color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity);}.btn-outline-primary.svelte-1m6bm7s {--bs-btn-color: #0d6efd;--bs-btn-border-color: #0d6efd;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #0d6efd;--bs-btn-hover-border-color: #0d6efd;--bs-btn-focus-shadow-rgb: 13, 110, 253;--bs-btn-active-color: #fff;--bs-btn-active-bg: #0d6efd;--bs-btn-active-border-color: #0d6efd;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #0d6efd;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0d6efd;--bs-gradient: none;}.btn-sm.svelte-1m6bm7s {--bs-btn-padding-y: 0.25rem;--bs-btn-padding-x: 0.5rem;--bs-btn-font-size: 0.875rem;--bs-btn-border-radius: var(--bs-border-radius-sm);}`};function an(e,t){lr(t,!0),wi(e,Hi);function r(b,$){t.$$host.dispatchEvent(new CustomEvent(b,{detail:$}))}let n=Ht(t,"id",7,""),i=Ht(t,"debug",7,!1),a=Ht(t,"output_schema",23,()=>[]);const o=[{id:"first-row",type:"row",params:{columns:[{type:"text",placeholder:"Label...",id:"label",required:!0,label:"Property Label",validationTip:"This field cannot be empty."},{type:"select",placeholder:"Select something here...",id:"type",required:!0,label:"Type",validationTip:"This field cannot be empty.",params:{options:[{label:"",value:"",id:""},{label:"text",value:"text",id:"text"},{label:"textarea",value:"textarea",id:"textarea"},{label:"email",value:"email",id:"email"},{label:"number",value:"number",id:"number"},{label:"select",value:"select",id:"select"},{label:"radio",value:"radio",id:"radio"},{label:"checkbox",value:"checkbox",id:"checkbox"},{label:"file",value:"file",id:"file"},{label:"date",value:"date",id:"date"},{label:"datetime",value:"datetime",id:"datetime"},{label:"color",value:"color",id:"color"},{label:"range",value:"range",id:"range"}]}}]}},{id:"conditionals-row",type:"row",params:{columns:[{type:"checkbox",placeholder:"Conditional...",id:"conditional",label:"Is Conditional?"},{type:"checkbox",placeholder:"Required...",id:"required",label:"Is Required?"}]}},{id:"size-row",type:"row",params:{columns:[{type:"number",placeholder:"Min...",id:"min",label:"Min",dependencies:[{id:"type",values:["number","date","datetime","text","textarea","range"]}]},{type:"number",placeholder:"Max...",id:"max",label:"Max",dependencies:[{id:"type",values:["number","date","datetime","text","textarea","range"]}]}]}},{type:"arrayobjects",label:"conditions",id:"conditions",params:{addPropertyLabel:"add condition",schema:[{id:"conditions-row",type:"row",params:{columns:[{type:"text",placeholder:"Condition Property name...",id:"conditionlabel",required:!0,label:"Label",validationTip:"This field cannot be empty."},{type:"text",placeholder:"Condition values (separated by comma)...",id:"conditionvalue",label:"Values",validationTip:"This field cannot be empty."}]}}]},dependencies:[{id:"conditional"}]},{type:"arrayobjects",label:"options",placeholder:"Insert your last name here...",id:"options",validationTip:"This field cannot be empty.",params:{addPropertyLabel:"add option",schema:[{id:"options-row",type:"row",params:{columns:[{type:"text",placeholder:"Property name...",id:"optionlabel",required:!0,label:"Label",validationTip:"This field cannot be empty."},{type:"text",placeholder:"Value...",id:"optionvalue",label:"Value",required:!0,validationTip:"This field cannot be empty."}]}}]},dependencies:[{id:"type",values:["select","radio"]}]}];let l=q(void 0);de({});let s=q(""),u=q(""),c=q(""),_=q(void 0);const f=[{label:"Label",key:"label"},{label:"type",key:"type"},{label:"params",key:"params",nosort:!0},{label:"dependencies",key:"dependencies"},{label:"required",key:"required"},{label:"value",key:"value"},{label:"modifiche",key:"mod",type:"actions",nosort:!0}];let v=q(de([])),d=q(!1);pi(()=>{Vt.addComponent({repoName:"@htmlbricks/hb-form",version:Yt.version}),Vt.addComponent({repoName:"@htmlbricks/hb-table",version:Yt.version}),Vt.addComponent({repoName:"@htmlbricks/hb-dialogform",version:Yt.version}),L(_,t.$$host?.shadowRoot?.querySelector("#schema"),!0),console.log("formComponent",S(_))}),Ar(()=>{if(typeof a()=="string"&&a()!=="")try{console.log("parsing output_schema"),a(JSON.parse(a()))}catch($){console.error("error parsing output_schema",$)}a()||a([]),typeof i()=="string"&&(i()==="true"||i()==="yes"||i()==="")?i(!0):i()!==!0&&i(!1),S(l)||L(l,[{counter:0,schema:JSON.stringify(o)}],!0);const b=[];for(const $ of a()){let R,y;$.params&&(y=JSON.stringify($.params)),$.dependencies&&(R=JSON.stringify($.dependencies)),b.push({_id:$.label,label:$.label,type:$.type,params:y,required:$.required,dependencies:R,value:$.value,_actions:[{name:"delete",type:"icon",iconOrText:"x-octagon-fill",disabled:!!$.value}]})}L(v,b,!0)});function h(b){console.log("addSchema",b);let $={},R=[];if(b.conditions&&(R=b.conditions.map(p=>({id:p.conditionlabel,values:p.conditionvalue?p.conditionvalue.replace(", ",",").replace(" ,",",").split(","):void 0}))),(b.type==="text"||b.type==="textarea"||b.type==="number"||b.type==="datetime"||b.type==="date"||b.type==="range")&&(b.min&&($.min=b.min),b.max&&($.max=b.max)),b.type==="select"||b.type==="radio"&&b.options?.length){$.options=[];for(const p of b.options)$.options.push({label:p.optionlabel,value:p.optionvalue})}const y={id:b.label,type:b.type,label:b.label,required:b.required,placeholder:b.placeholder,dependencies:R};Object.keys($).length&&(y.params=$),a().find(p=>p.label===b.label)?a(a().map(p=>p.label===b.label?y:p)):a([...a(),y]),S(l)?.length&&L(l,[...S(l),{counter:S(l).length,schema:JSON.stringify(o)}],!0),console.info("schema4selectorS",S(l))}function w(b){if(console.log(b,a()),a().find(R=>R.label===b)?.value)return console.warn("cannot remove default value");a(a().filter(R=>R.label!==b)),S(l)?.length&&L(l,S(l).filter(R=>R.counter!==S(l).length-1),!0)}var A={get id(){return n()},set id(b=""){n(b),rt()},get debug(){return i()},set debug(b=!1){i(b),rt()},get output_schema(){return a()},set output_schema(b=[]){a(b),rt()}},m=Bi(),g=it(m);ae(g,"id","table_specs"),jt(g,S(c)),ae(g,"disablepagination","yes"),He(()=>ae(g,"headers",JSON.stringify(f))),He(()=>ae(g,"rows",JSON.stringify(S(v)))),ae(g,"add_item","yes");var x=Sr(g),k=Sr(x);k.__click=[Di,a,n,r],nr(x),nr(g);var M=Rt(g,2);{var X=b=>{var $=Jr(),R=it($);gi(R,17,()=>S(l),y=>y.counter,(y,p)=>{var O=Jr(),oe=it(O);{var Yi=Wt=>{var me=qi();ae(me,"title","Add property"),He(()=>ae(me,"show",S(d)?"yes":"no")),He(()=>ae(me,"schema",S(p).schema)),jt(me,S(u)),Ue("modalFormConfirm",me,We=>{console.log(We.detail),h(We.detail),L(d,!1)}),Ue("modalFormCancel",me,We=>{console.log("cancelform"),L(d,!1)}),Ue("modalShow",me,We=>{console.log("modalShow"),L(d,We.detail.show,!0)}),pe(Wt,me)};st(oe,Wt=>{S(p).counter===S(l).length-1&&Wt(Yi)})}pe(y,O)}),pe(b,$)};st(M,b=>{S(l)&&b(X)})}var z=Rt(M,2);{var F=b=>{var $=ji(),R=Rt(it($),2);{var y=O=>{var oe=Fi();ae(oe,"hide_submit","yes"),He(()=>ae(oe,"schema",JSON.stringify(a()))),jt(oe,S(s)),pe(O,oe)},p=O=>{var oe=di("...no output");pe(O,oe)};st(R,O=>{a()?.length?O(y):O(p,!1)})}pe(b,$)};st(z,b=>{i()&&b(F)})}return Ue("tableCustomActionClick",g,b=>{b.detail.action==="delete"&&w(b.detail.itemId)}),Ue("addItem",g,b=>{L(d,!0)}),pe(e,m),sr(A)}fi(["click"]),customElements.define("hb-form-composer",Ri(an,{id:{},debug:{},output_schema:{}},[],[],!0)),Gt.Component=an,Object.defineProperty(Gt,Symbol.toStringTag,{value:"Module"})})(this["form-composer"]=this["form-composer"]||{});
8
+ */.btn.svelte-1f1dlex {--bs-btn-padding-x: 0.75rem;--bs-btn-padding-y: 0.375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.5;--bs-btn-color: var(--bs-body-color);--bs-btn-bg: transparent;--bs-btn-border-width: var(--bs-border-width);--bs-btn-border-color: transparent;--bs-btn-border-radius: var(--bs-border-radius);--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity: 0.65;--bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
9
+ @media (prefers-reduced-motion: reduce) {.btn.svelte-1f1dlex {transition:none;}
10
+ }.btn.svelte-1f1dlex:hover {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);}.btn.svelte-1f1dlex:focus-visible {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow);} .btn.svelte-1f1dlex:first-child:active {color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color);} .btn.svelte-1f1dlex:first-child:active:focus-visible {box-shadow:var(--bs-btn-focus-box-shadow);}.btn.svelte-1f1dlex:disabled {color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity);}.btn-outline-primary.svelte-1f1dlex {--bs-btn-color: #0d6efd;--bs-btn-border-color: #0d6efd;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #0d6efd;--bs-btn-hover-border-color: #0d6efd;--bs-btn-focus-shadow-rgb: 13, 110, 253;--bs-btn-active-color: #fff;--bs-btn-active-bg: #0d6efd;--bs-btn-active-border-color: #0d6efd;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #0d6efd;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0d6efd;--bs-gradient: none;}.btn-sm.svelte-1f1dlex {--bs-btn-padding-y: 0.25rem;--bs-btn-padding-x: 0.5rem;--bs-btn-font-size: 0.875rem;--bs-btn-border-radius: var(--bs-border-radius-sm);}`};function ar(e,t){dn(t,!0),xi(e,ji);function n(h,x){t.$$host.dispatchEvent(new CustomEvent(h,{detail:x}))}let r=zt(t,"id",7,""),i=zt(t,"debug",7,!1),s=zt(t,"output_schema",23,()=>[]);const o=[{id:"first-row",type:"row",params:{columns:[{type:"text",placeholder:"Label...",id:"label",required:!0,label:"Property Label",validationTip:"This field cannot be empty."},{type:"select",placeholder:"Select something here...",id:"type",required:!0,label:"Type",validationTip:"This field cannot be empty.",params:{options:[{label:"",value:"",id:""},{label:"text",value:"text",id:"text"},{label:"textarea",value:"textarea",id:"textarea"},{label:"email",value:"email",id:"email"},{label:"number",value:"number",id:"number"},{label:"select",value:"select",id:"select"},{label:"radio",value:"radio",id:"radio"},{label:"checkbox",value:"checkbox",id:"checkbox"},{label:"file",value:"file",id:"file"},{label:"date",value:"date",id:"date"},{label:"datetime",value:"datetime",id:"datetime"},{label:"color",value:"color",id:"color"},{label:"range",value:"range",id:"range"}]}}]}},{id:"conditionals-row",type:"row",params:{columns:[{type:"checkbox",placeholder:"Conditional...",id:"conditional",label:"Is Conditional?"},{type:"checkbox",placeholder:"Required...",id:"required",label:"Is Required?"}]}},{id:"size-row",type:"row",params:{columns:[{type:"number",placeholder:"Min...",id:"min",label:"Min",dependencies:[{id:"type",values:["number","date","datetime","text","textarea","range"]}]},{type:"number",placeholder:"Max...",id:"max",label:"Max",dependencies:[{id:"type",values:["number","date","datetime","text","textarea","range"]}]}]}},{type:"arrayobjects",label:"conditions",id:"conditions",params:{addPropertyLabel:"add condition",schema:[{id:"conditions-row",type:"row",params:{columns:[{type:"text",placeholder:"Condition Property name...",id:"conditionlabel",required:!0,label:"Label",validationTip:"This field cannot be empty."},{type:"text",placeholder:"Condition values (separated by comma)...",id:"conditionvalue",label:"Values",validationTip:"This field cannot be empty."}]}}]},dependencies:[{id:"conditional"}]},{type:"arrayobjects",label:"options",placeholder:"Insert your last name here...",id:"options",validationTip:"This field cannot be empty.",params:{addPropertyLabel:"add option",schema:[{id:"options-row",type:"row",params:{columns:[{type:"text",placeholder:"Property name...",id:"optionlabel",required:!0,label:"Label",validationTip:"This field cannot be empty."},{type:"text",placeholder:"Value...",id:"optionvalue",label:"Value",required:!0,validationTip:"This field cannot be empty."}]}}]},dependencies:[{id:"type",values:["select","radio"]}]}];let l=P(void 0);ye({});let a=P(""),f=P(""),d=P(""),v=P(void 0);const u=[{label:"Label",key:"label"},{label:"type",key:"type"},{label:"params",key:"params",nosort:!0},{label:"dependencies",key:"dependencies"},{label:"required",key:"required"},{label:"value",key:"value"},{label:"modifiche",key:"mod",type:"actions",nosort:!0}];let c=P(ye([])),_=P(!1);yi(()=>{Gt.addComponent({repoName:"@htmlbricks/hb-form",version:Wt.version}),Gt.addComponent({repoName:"@htmlbricks/hb-table",version:Wt.version}),Gt.addComponent({repoName:"@htmlbricks/hb-dialogform",version:Wt.version}),k(v,t.$$host?.shadowRoot?.querySelector("#schema"),!0),console.log("formComponent",y(v))}),Mn(()=>{if(typeof s()=="string"&&s()!=="")try{console.log("parsing output_schema"),s(JSON.parse(s()))}catch(x){console.error("error parsing output_schema",x)}s()||s([]),typeof i()=="string"&&(i()==="true"||i()==="yes"||i()==="")?i(!0):i()!==!0&&i(!1),y(l)||k(l,[{counter:0,schema:JSON.stringify(o)}],!0);const h=[];for(const x of s()){let N,B;x.params&&(B=JSON.stringify(x.params)),x.dependencies&&(N=JSON.stringify(x.dependencies)),h.push({_id:x.label,label:x.label,type:x.type,params:B,required:x.required,dependencies:N,value:x.value,_actions:[{name:"delete",type:"icon",iconOrText:"x-octagon-fill",disabled:!!x.value}]})}k(c,h,!0)});function p(h){console.log("addSchema",h);let x={},N=[];if(h.conditions&&(N=h.conditions.map(A=>({id:A.conditionlabel,values:A.conditionvalue?A.conditionvalue.replace(", ",",").replace(" ,",",").split(","):void 0}))),(h.type==="text"||h.type==="textarea"||h.type==="number"||h.type==="datetime"||h.type==="date"||h.type==="range")&&(h.min&&(x.min=h.min),h.max&&(x.max=h.max)),h.type==="select"||h.type==="radio"&&h.options?.length){x.options=[];for(const A of h.options)x.options.push({label:A.optionlabel,value:A.optionvalue})}const B={id:h.label,type:h.type,label:h.label,required:h.required,placeholder:h.placeholder,dependencies:N};Object.keys(x).length&&(B.params=x),s().find(A=>A.label===h.label)?s(s().map(A=>A.label===h.label?B:A)):s([...s(),B]),y(l)?.length&&k(l,[...y(l),{counter:y(l).length,schema:JSON.stringify(o)}],!0),console.info("schema4selectorS",y(l))}function T(h){if(console.log(h,s()),s().find(N=>N.label===h)?.value)return console.warn("cannot remove default value");s(s().filter(N=>N.label!==h)),y(l)?.length&&k(l,y(l).filter(N=>N.counter!==y(l).length-1),!0)}function z(){const h={schema:s(),id:r()};n("done",h)}var S={get id(){return r()},set id(h=""){r(h),vt()},get debug(){return i()},set debug(h=!1){i(h),vt()},get output_schema(){return s()},set output_schema(h=[]){s(h),vt()}},E=qi(),b=pt(E);ae(b,"id","table_specs"),Yt(b,y(d)),ae(b,"disablepagination","yes"),Ge(()=>ae(b,"headers",JSON.stringify(u))),Ge(()=>ae(b,"rows",JSON.stringify(y(c)))),ae(b,"add_item","yes");var F=On(b),W=On(F);W.__click=z,an(F),an(b);var Pe=Mt(b,2);{var ve=h=>{var x=tr(),N=pt(x);$i(N,17,()=>y(l),B=>B.counter,(B,A)=>{var _e=tr(),Ee=pt(_e);{var Bi=Kt=>{var xe=Di();ae(xe,"title","Add property"),Ge(()=>ae(xe,"show",y(_)?"yes":"no")),Ge(()=>ae(xe,"schema",y(A).schema)),Yt(xe,y(f)),Qe("modalFormConfirm",xe,tt=>{console.log(tt.detail),p(tt.detail),k(_,!1)}),Qe("modalFormCancel",xe,tt=>{console.log("cancelform"),k(_,!1)}),Qe("modalShow",xe,tt=>{console.log("modalShow"),k(_,tt.detail.show,!0)}),$e(Kt,xe)};yt(Ee,Kt=>{y(A).counter===y(l).length-1&&Kt(Bi)})}$e(B,_e)}),$e(h,x)};yt(Pe,h=>{y(l)&&h(ve)})}var G=Mt(Pe,2);{var Ue=h=>{var x=Fi(),N=Mt(pt(x),2);{var B=_e=>{var Ee=Ii();ae(Ee,"hide_submit","yes"),Ge(()=>ae(Ee,"schema",JSON.stringify(s()))),Yt(Ee,y(a)),$e(_e,Ee)},A=_e=>{var Ee=vi("...no output");$e(_e,Ee)};yt(N,_e=>{s()?.length?_e(B):_e(A,!1)})}$e(h,x)};yt(G,h=>{i()&&h(Ue)})}return Qe("tableCustomActionClick",b,h=>{h.detail.action==="delete"&&T(h.detail.itemId)}),Qe("addItem",b,h=>{k(_,!0)}),$e(e,E),hn(S)}di(["click"]),customElements.define("hb-form-composer",Pi(ar,{id:{},debug:{},output_schema:{}},[],[],!0)),Xt.Component=ar,Object.defineProperty(Xt,Symbol.toStringTag,{value:"Module"})})(this["form-composer"]=this["form-composer"]||{});
12
11
  //# sourceMappingURL=main.iife.js.map