@htmlbricks/hb-input-coords 0.61.51 → 0.61.53

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,13 +1,13 @@
1
- (function(Et){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Sr=1,Ar=2,xt="[",kt="[!",Tt="]",he={},w=Symbol(),Or="http://www.w3.org/1999/xhtml",Nt=!1;var qt=Array.isArray,Rr=Array.prototype.indexOf,Pr=Array.from,Se=Object.keys,ve=Object.defineProperty,be=Object.getOwnPropertyDescriptor,Mr=Object.getOwnPropertyDescriptors,Dr=Object.prototype,Ir=Array.prototype,Ct=Object.getPrototypeOf,Lt=Object.isExtensible;function St(e){for(var t=0;t<e.length;t++)e[t]()}function jr(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const L=2,Je=4,Ge=8,_e=16,Y=32,G=64,At=128,A=256,Ae=512,x=1024,O=2048,K=4096,X=8192,ne=16384,Ke=32768,Xe=65536,Ot=1<<17,Fr=1<<18,ge=1<<19,Vr=1<<20,Ze=1<<21,Qe=1<<22,ie=1<<23,et=Symbol("$state"),Wr=Symbol("legacy props"),Br=Symbol(""),tt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Rt=3,Oe=8;function Ur(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Hr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Yr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function zr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Jr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Gr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Kr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Xr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Zr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Qr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Re(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let m=!1;function Z(e){m=e}let $;function Q(e){if(e===null)throw Re(),he;return $=e}function rt(){return Q(me($))}function F(e){if(m){if(me($)!==null)throw Re(),he;$=e}}function en(){for(var e=0,t=$;;){if(t.nodeType===Oe){var r=t.data;if(r===Tt){if(e===0)return t;e-=1}else(r===xt||r===kt)&&(e+=1)}var n=me(t);t.remove(),t=n}}function tn(e){if(!e||e.nodeType!==Oe)throw Re(),he;return e.data}function Pt(e){return e===this.v}function rn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function nn(e){return!rn(e,this.v)}let sn=!1,M=null;function Pe(e){M=e}function Mt(e,t=!1,r){M={p:M,c:null,e:null,s:e,x:null,l:null}}function Dt(e){var t=M,r=t.e;if(r!==null){t.e=null;for(var n of r)er(n)}return e!==void 0&&(t.x=e),M=t.p,e??{}}function It(){return!0}const on=new WeakMap;function an(e){var t=_;if(t===null)return g.f|=ie,e;if((t.f&Ke)===0){if((t.f&At)===0)throw!t.parent&&e instanceof Error&&jt(e),e;t.b.error(e)}else nt(e,t)}function nt(e,t){for(;t!==null;){if((t.f&At)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&jt(e),e}function jt(e){const t=on.get(e);t&&(ve(e,"message",{value:t.message}),ve(e,"stack",{value:t.stack}))}let xe=[],it=[];function Ft(){var e=xe;xe=[],St(e)}function ln(){var e=it;it=[],St(e)}function un(e){xe.length===0&&queueMicrotask(Ft),xe.push(e)}function fn(){xe.length>0&&Ft(),it.length>0&&ln()}function cn(){const e=_.b;return e===null&&Ur(),e}function st(e){var t=L|O,r=g!==null&&(g.f&L)!==0?g:null;return _===null||r!==null&&(r.f&A)!==0?t|=A:_.f|=ge,{ctx:M,deps:null,effects:null,equals:Pt,f:t,fn:e,reactions:null,rv:0,v:w,wv:0,parent:r??_,ac:null}}function dn(e,t){let r=_;r===null&&Hr();var n=r.b,i=void 0,s=ut(w),o=null,a=!g;return Nn(()=>{try{var l=e();o&&Promise.resolve(l).catch(()=>{})}catch(d){l=Promise.reject(d)}var u=()=>l;i=o?.then(u,u)??Promise.resolve(l),o=i;var f=E,h=n.is_pending();a&&(n.update_pending_count(1),h||f.increment());const c=(d,v=void 0)=>{o=null,h||f.activate(),v?v!==tt&&(s.f|=ie,ft(s,v)):((s.f&ie)!==0&&(s.f^=ie),ft(s,d)),a&&(n.update_pending_count(-1),h||f.decrement()),Bt()};if(i.then(c,d=>c(null,d||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(l=>{function u(f){function h(){f===i?l(s):u(i)}f.then(h,h)}u(i)})}function hn(e){const t=st(e);return ur(t),t}function Vt(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&L)===0)return t;t=t.parent}return null}function ot(e){var t,r=_;U(vn(e));try{Vt(e),t=vr(e)}finally{U(r)}return t}function Wt(e){var t=ot(e);if(e.equals(t)||(e.v=t,e.wv=dr()),!ue){var r=(re||(e.f&A)!==0)&&e.deps!==null?K:x;C(e,r)}}function bn(e,t,r){const n=st;if(t.length===0){r(e.map(n));return}var i=E,s=_,o=_n(),a=cn();Promise.all(t.map(l=>dn(l))).then(l=>{i?.activate(),o();try{r([...e.map(n),...l])}catch(u){(s.f&ne)===0&&nt(u,s)}i?.deactivate(),Bt()}).catch(l=>{a.error(l)})}function _n(){var e=_,t=g,r=M,n=E;return function(){U(e),R(t),Pe(r),n?.activate()}}function Bt(){U(null),R(null),Pe(null)}const at=new Set;let E=null,Ut=new Set,Me=[];function Ht(){const e=Me.shift();Me.length>0&&queueMicrotask(Ht),e()}let se=[],De=null,lt=!1,Ie=!1;class oe{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#i=[];#o=[];#s=[];#n=[];#a=[];#c=[];#d=[];skipped_effects=new Set;process(t){se=[];for(const i of t)this.#v(i);if(this.#i.length===0&&this.#r===0){this.#h();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#a=[],E=null,zt(r),zt(n),E===null?E=this:at.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#n),this.#l(this.#a);for(const i of this.#i)we(i);for(const i of this.#o)we(i);this.#i=[],this.#o=[]}#v(t){t.f^=x;for(var r=t.first;r!==null;){var n=r.f,i=(n&(Y|G))!==0,s=i&&(n&x)!==0,o=s||(n&X)!==0||this.skipped_effects.has(r);if(!o&&r.fn!==null){if(i)r.f^=x;else if((n&Je)!==0)this.#n.push(r);else if((n&x)===0)if((n&Qe)!==0){var a=r.b?.is_pending()?this.#o:this.#i;a.push(r)}else je(r)&&((r.f&_e)!==0&&this.#a.push(r),we(r));var l=r.first;if(l!==null){r=l;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#l(t){for(const r of t)((r.f&O)!==0?this.#c:this.#d).push(r),C(r,x);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){E=this}deactivate(){E=null;for(const t of Ut)if(Ut.delete(t),t(),E!==null)break}neuter(){this.#f=!0}flush(){se.length>0?Yt():this.#h(),E===this&&(this.#r===0&&at.delete(this),this.deactivate())}#h(){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)C(t,O),pe(t);for(const t of this.#d)C(t,K),pe(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=jr()).promise}static ensure(){if(E===null){const t=E=new oe;at.add(E),Ie||oe.enqueue(()=>{E===t&&t.flush()})}return E}static enqueue(t){Me.length===0&&queueMicrotask(Ht),Me.unshift(t)}}function ke(e){var t=Ie;Ie=!0;try{for(var r;;){if(fn(),se.length===0&&(E?.flush(),se.length===0))return De=null,r;Yt()}}finally{Ie=t}}function Yt(){var e=ye;lt=!0;try{var t=0;for(ar(!0);se.length>0;){var r=oe.ensure();if(t++>1e3){var n,i;gn()}r.process(se),ee.clear()}}finally{lt=!1,ar(e),De=null}}function gn(){try{Gr()}catch(e){nt(e,De)}}let ae=null;function zt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ne|X))===0&&je(n)&&(ae=[],we(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?nr(n):n.fn=null),ae?.length>0)){ee.clear();for(const i of ae)we(i);ae=[]}}ae=null}}function pe(e){for(var t=De=e;t.parent!==null;){t=t.parent;var r=t.f;if(lt&&t===_&&(r&_e)!==0)return;if((r&(G|Y))!==0){if((r&x)===0)return;t.f^=x}}se.push(t)}const ee=new Map;function ut(e,t){var r={f:0,v:e,reactions:null,equals:Pt,rv:0,wv:0};return r}function q(e,t){const r=ut(e);return ur(r),r}function pn(e,t=!1,r=!0){const n=ut(e);return t||(n.equals=nn),n}function y(e,t,r=!1){g!==null&&(!fe||(g.f&Ot)!==0)&&It()&&(g.f&(L|_e|Qe|Ot))!==0&&!z?.includes(e)&&Qr();let n=r?le(t):t;return ft(e,n)}function ft(e,t){if(!e.equals(t)){var r=e.v;ue?ee.set(e,t):ee.set(e,r),e.v=t;var n=oe.ensure();n.capture(e,r),(e.f&L)!==0&&((e.f&O)!==0&&ot(e),C(e,(e.f&A)===0?x:K)),e.wv=dr(),Jt(e,O),_!==null&&(_.f&x)!==0&&(_.f&(Y|G))===0&&(P===null?Rn([e]):P.push(e))}return t}function ct(e){y(e,e.v+1)}function Jt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,a=(o&O)===0;a&&C(s,t),(o&L)!==0?Jt(s,K):a&&((o&_e)!==0&&ae!==null&&ae.push(s),pe(s))}}function le(e){if(typeof e!="object"||e===null||et in e)return e;const t=Ct(e);if(t!==Dr&&t!==Ir)return e;var r=new Map,n=qt(e),i=q(0),s=ce,o=a=>{if(ce===s)return a();var l=g,u=ce;R(null),cr(s);var f=a();return R(l),cr(u),f};return n&&r.set("length",q(e.length)),new Proxy(e,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Xr();var f=r.get(l);return f===void 0?f=o(()=>{var h=q(u.value);return r.set(l,h),h}):y(f,u.value,!0),!0},deleteProperty(a,l){var u=r.get(l);if(u===void 0){if(l in a){const f=o(()=>q(w));r.set(l,f),ct(i)}}else y(u,w),ct(i);return!0},get(a,l,u){if(l===et)return e;var f=r.get(l),h=l in a;if(f===void 0&&(!h||be(a,l)?.writable)&&(f=o(()=>{var d=le(h?a[l]:w),v=q(d);return v}),r.set(l,f)),f!==void 0){var c=b(f);return c===w?void 0:c}return Reflect.get(a,l,u)},getOwnPropertyDescriptor(a,l){var u=Reflect.getOwnPropertyDescriptor(a,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=b(f))}else if(u===void 0){var h=r.get(l),c=h?.v;if(h!==void 0&&c!==w)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(a,l){if(l===et)return!0;var u=r.get(l),f=u!==void 0&&u.v!==w||Reflect.has(a,l);if(u!==void 0||_!==null&&(!f||be(a,l)?.writable)){u===void 0&&(u=o(()=>{var c=f?le(a[l]):w,d=q(c);return d}),r.set(l,u));var h=b(u);if(h===w)return!1}return f},set(a,l,u,f){var h=r.get(l),c=l in a;if(n&&l==="length")for(var d=u;d<h.v;d+=1){var v=r.get(d+"");v!==void 0?y(v,w):d in a&&(v=o(()=>q(w)),r.set(d+"",v))}if(h===void 0)(!c||be(a,l)?.writable)&&(h=o(()=>q(void 0)),y(h,le(u)),r.set(l,h));else{c=h.v!==w;var k=o(()=>le(u));y(h,k)}var D=Reflect.getOwnPropertyDescriptor(a,l);if(D?.set&&D.set.call(f,u),!c){if(n&&typeof l=="string"){var I=r.get("length"),N=Number(l);Number.isInteger(N)&&N>=I.v&&y(I,N+1)}ct(i)}return!0},ownKeys(a){b(i);var l=Reflect.ownKeys(a).filter(h=>{var c=r.get(h);return c===void 0||c.v!==w});for(var[u,f]of r)f.v!==w&&!(u in a)&&l.push(u);return l},setPrototypeOf(){Zr()}})}var Gt,Kt,Xt,Zt;function dt(){if(Gt===void 0){Gt=window,Kt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Xt=be(t,"firstChild").get,Zt=be(t,"nextSibling").get,Lt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Lt(r)&&(r.__t=void 0)}}function Te(e=""){return document.createTextNode(e)}function Ne(e){return Xt.call(e)}function me(e){return Zt.call(e)}function V(e,t){if(!m)return Ne(e);var r=Ne($);if(r===null)r=$.appendChild(Te());else if(t&&r.nodeType!==Rt){var n=Te();return r?.before(n),Q(n),n}return Q(r),r}function qe(e,t=1,r=!1){let n=m?$:e;for(var i;t--;)i=n,n=me(n);if(!m)return n;if(r&&n?.nodeType!==Rt){var s=Te();return n===null?i?.after(s):n.before(s),Q(s),s}return Q(n),n}function mn(e){e.textContent=""}function yn(){return!1}function ht(e){var t=g,r=_;R(null),U(null);try{return e()}finally{R(t),U(r)}}function wn(e){_===null&&g===null&&Jr(),g!==null&&(g.f&A)!==0&&_===null&&zr(),ue&&Yr()}function $n(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function W(e,t,r,n=!0){var i=_;i!==null&&(i.f&X)!==0&&(e|=X);var s={ctx:M,deps:null,nodes_start:null,nodes_end:null,f:e|O,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{we(s),s.f|=Ke}catch(l){throw te(s),l}else t!==null&&pe(s);if(n){var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&ge)===0&&(o=o.first),o!==null&&(o.parent=i,i!==null&&$n(o,i),g!==null&&(g.f&L)!==0&&(e&G)===0)){var a=g;(a.effects??=[]).push(o)}}return s}function En(e){const t=W(Ge,null,!1);return C(t,x),t.teardown=e,t}function Qt(e){wn();var t=_.f,r=!g&&(t&Y)!==0&&(t&Ke)===0;if(r){var n=M;(n.e??=[]).push(e)}else return er(e)}function er(e){return W(Je|Vr,e,!1)}function xn(e){oe.ensure();const t=W(G|ge,e,!0);return()=>{te(t)}}function kn(e){oe.ensure();const t=W(G|ge,e,!0);return(r={})=>new Promise(n=>{r.outro?ir(t,()=>{te(t),n(void 0)}):(te(t),n(void 0))})}function Tn(e){return W(Je,e,!1)}function Nn(e){return W(Qe|ge,e,!0)}function qn(e,t=0){return W(Ge|t,e,!0)}function B(e,t=[],r=[]){bn(t,r,n=>{W(Ge,()=>e(...n.map(b)),!0)})}function Cn(e,t=0){var r=W(_e|t,e,!0);return r}function vt(e,t=!0){return W(Y|ge,e,!0,t)}function tr(e){var t=e.teardown;if(t!==null){const r=ue,n=g;lr(!0),R(null);try{t.call(null)}finally{lr(r),R(n)}}}function rr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&ht(()=>{i.abort(tt)});var n=r.next;(r.f&G)!==0?r.parent=null:te(r,t),r=n}}function Ln(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Y)===0&&te(t),t=r}}function te(e,t=!0){var r=!1;(t||(e.f&Fr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Sn(e.nodes_start,e.nodes_end),r=!0),rr(e,t&&!r),Fe(e,0),C(e,ne);var n=e.transitions;if(n!==null)for(const s of n)s.stop();tr(e);var i=e.parent;i!==null&&i.first!==null&&nr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Sn(e,t){for(;e!==null;){var r=e===t?null:me(e);e.remove(),e=r}}function nr(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 ir(e,t){var r=[];sr(e,r,!0),An(r,()=>{te(e),t&&t()})}function An(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function sr(e,t,r){if((e.f&X)===0){if(e.f^=X,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Xe)!==0||(n.f&Y)!==0;sr(n,t,s?r:!1),n=i}}}function On(e){or(e,!0)}function or(e,t){if((e.f&X)!==0){e.f^=X,(e.f&x)===0&&(C(e,O),pe(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Xe)!==0||(r.f&Y)!==0;or(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let ye=!1;function ar(e){ye=e}let ue=!1;function lr(e){ue=e}let g=null,fe=!1;function R(e){g=e}let _=null;function U(e){_=e}let z=null;function ur(e){g!==null&&(z===null?z=[e]:z.push(e))}let T=null,S=0,P=null;function Rn(e){P=e}let fr=1,Ce=0,ce=Ce;function cr(e){ce=e}let re=!1;function dr(){return++fr}function je(e){var t=e.f;if((t&O)!==0)return!0;if((t&K)!==0){var r=e.deps,n=(t&A)!==0;if(r!==null){var i,s,o=(t&Ae)!==0,a=n&&_!==null&&!re,l=r.length;if((o||a)&&(_===null||(_.f&ne)===0)){var u=e,f=u.parent;for(i=0;i<l;i++)s=r[i],(o||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);o&&(u.f^=Ae),a&&f!==null&&(f.f&A)===0&&(u.f^=A)}for(i=0;i<l;i++)if(s=r[i],je(s)&&Wt(s),s.wv>e.wv)return!0}(!n||_!==null&&!re)&&C(e,x)}return!1}function hr(e,t,r=!0){var n=e.reactions;if(n!==null&&!z?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&L)!==0?hr(s,t,!1):t===s&&(r?C(s,O):(s.f&x)!==0&&C(s,K),pe(s))}}function vr(e){var t=T,r=S,n=P,i=g,s=re,o=z,a=M,l=fe,u=ce,f=e.f;T=null,S=0,P=null,re=(f&A)!==0&&(fe||!ye||g===null),g=(f&(Y|G))===0?e:null,z=null,Pe(e.ctx),fe=!1,ce=++Ce,e.ac!==null&&(ht(()=>{e.ac.abort(tt)}),e.ac=null);try{e.f|=Ze;var h=e.fn,c=h(),d=e.deps;if(T!==null){var v;if(Fe(e,S),d!==null&&S>0)for(d.length=S+T.length,v=0;v<T.length;v++)d[S+v]=T[v];else e.deps=d=T;if(!re||(f&L)!==0&&e.reactions!==null)for(v=S;v<d.length;v++)(d[v].reactions??=[]).push(e)}else d!==null&&S<d.length&&(Fe(e,S),d.length=S);if(It()&&P!==null&&!fe&&d!==null&&(e.f&(L|K|O))===0)for(v=0;v<P.length;v++)hr(P[v],e);return i!==null&&i!==e&&(Ce++,P!==null&&(n===null?n=P:n.push(...P))),(e.f&ie)!==0&&(e.f^=ie),c}catch(k){return an(k)}finally{e.f^=Ze,T=t,S=r,P=n,g=i,re=s,z=o,Pe(a),fe=l,ce=u}}function Pn(e,t){let r=t.reactions;if(r!==null){var n=Rr.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&L)!==0&&(T===null||!T.includes(t))&&(C(t,K),(t.f&(A|Ae))===0&&(t.f^=Ae),Vt(t),Fe(t,0))}function Fe(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Pn(e,r[n])}function we(e){var t=e.f;if((t&ne)===0){C(e,x);var r=_,n=ye;_=e,ye=!0;try{(t&_e)!==0?Ln(e):rr(e),tr(e);var i=vr(e);e.teardown=typeof i=="function"?i:null,e.wv=fr;var s;Nt&&sn&&(e.f&O)!==0&&e.deps}finally{ye=n,_=r}}}function b(e){var t=e.f,r=(t&L)!==0;if(g!==null&&!fe){var n=_!==null&&(_.f&ne)!==0;if(!n&&!z?.includes(e)){var i=g.deps;if((g.f&Ze)!==0)e.rv<Ce&&(e.rv=Ce,T===null&&i!==null&&i[S]===e?S++:T===null?T=[e]:(!re||!T.includes(e))&&T.push(e));else{(g.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[g]:s.includes(g)||s.push(g)}}}else if(r&&e.deps===null&&e.effects===null){var o=e,a=o.parent;a!==null&&(a.f&A)===0&&(o.f^=A)}if(ue){if(ee.has(e))return ee.get(e);if(r){o=e;var l=o.v;return((o.f&x)===0&&o.reactions!==null||br(o))&&(l=ot(o)),ee.set(o,l),l}}else r&&(o=e,je(o)&&Wt(o));if((e.f&ie)!==0)throw e.v;return e.v}function br(e){if(e.v===w)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ee.has(t)||(t.f&L)!==0&&br(t))return!0;return!1}const Mn=-7169;function C(e,t){e.f=e.f&Mn|t}const Dn=new Set,_r=new Set;function In(e,t,r,n={}){function i(s){if(n.capture||Le.call(t,s),!s.cancelBubble)return ht(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?un(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function bt(e,t,r,n,i){var s={capture:n,passive:i},o=In(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&En(()=>{t.removeEventListener(e,o,s)})}let gr=null;function Le(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;gr=e;var o=0,a=gr===e&&e.__root;if(a){var l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(o=l)}if(s=i[o]||e.target,s!==t){ve(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=g,h=_;R(null),U(null);try{for(var c,d=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var k=s["__"+n];if(k!=null&&(!s.disabled||e.target===s))if(qt(k)){var[D,...I]=k;D.apply(s,[e,...I])}else k.call(s,e)}catch(N){c?d.push(N):c=N}if(e.cancelBubble||v===t||v===null)break;s=v}if(c){for(let N of d)queueMicrotask(()=>{throw N});throw c}}finally{e.__root=t,delete e.currentTarget,R(f),U(h)}}}function jn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ve(e,t){var r=_;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function pr(e,t){var r=(t&Sr)!==0,n=(t&Ar)!==0,i,s=!e.startsWith("<!>");return()=>{if(m)return Ve($,null),$;i===void 0&&(i=jn(s?e:"<!>"+e),r||(i=Ne(i)));var o=n||Kt?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Ne(o),l=o.lastChild;Ve(a,l)}else Ve(o,o);return o}}function _t(e,t){if(m){_.nodes_end=$,rt();return}e!==null&&e.before(t)}const Fn=["touchstart","touchmove"];function Vn(e){return Fn.includes(e)}function gt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function mr(e,t){return yr(e,t)}function Wn(e,t){dt(),t.intro=t.intro??!1;const r=t.target,n=m,i=$;try{for(var s=Ne(r);s&&(s.nodeType!==Oe||s.data!==xt);)s=me(s);if(!s)throw he;Z(!0),Q(s),rt();const o=yr(e,{...t,anchor:s});if($===null||$.nodeType!==Oe||$.data!==Tt)throw Re(),he;return Z(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==he&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Kr(),dt(),mn(r),Z(!1),mr(e,t)}finally{Z(n),Q(i)}}const $e=new Map;function yr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){dt();var a=new Set,l=h=>{for(var c=0;c<h.length;c++){var d=h[c];if(!a.has(d)){a.add(d);var v=Vn(d);t.addEventListener(d,Le,{passive:v});var k=$e.get(d);k===void 0?(document.addEventListener(d,Le,{passive:v}),$e.set(d,1)):$e.set(d,k+1)}}};l(Pr(Dn)),_r.add(l);var u=void 0,f=kn(()=>{var h=r??t.appendChild(Te());return vt(()=>{if(s){Mt({});var c=M;c.c=s}i&&(n.$$events=i),m&&Ve(h,null),u=e(h,n)||{},m&&(_.nodes_end=$),s&&Dt()}),()=>{for(var c of a){t.removeEventListener(c,Le);var d=$e.get(c);--d===0?(document.removeEventListener(c,Le),$e.delete(c)):$e.set(c,d)}_r.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return pt.set(u,f),u}let pt=new WeakMap;function Bn(e,t){const r=pt.get(e);return r?(pt.delete(e),r(t)):Promise.resolve()}function Un(e,t,r=!1){m&&rt();var n=e,i=null,s=null,o=w,a=r?Xe:0,l=!1;const u=(d,v=!0)=>{l=!0,c(v,d)};var f=null;function h(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var d=o?i:s,v=o?s:i;d&&On(d),v&&ir(v,()=>{o?s=null:i=null})}const c=(d,v)=>{if(o===(o=d))return;let k=!1;if(m){const He=tn(n)===kt;!!o===He&&(n=en(),Q(n),Z(!1),k=!0)}var D=yn(),I=n;if(D&&(f=document.createDocumentFragment(),f.append(I=Te())),o?i??=v&&vt(()=>v(I)):s??=v&&vt(()=>v(I)),D){var N=E,Ee=o?i:s,j=o?s:i;Ee&&N.skipped_effects.delete(Ee),j&&N.skipped_effects.add(j),N.add_callback(h)}else h();k&&Z(!0)};Cn(()=>{l=!1,t(u),l||c(null,null)},a),m&&(n=$)}function Hn(e,t){Tn(()=>{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 Yn(e,t,r){var n=""+e;return n}function zn(e,t){return String(e)}function mt(e,t,r,n,i,s){var o=e.__className;if(m||o!==r||o===void 0){var a=Yn(r);(!m||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return s}function Jn(e,t,r,n){var i=e.__style;if(m||i!==t){var s=zn(t);(!m||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const Gn=Symbol("is custom element"),Kn=Symbol("is html");function Xn(e,t,r,n){var i=Zn(e);m&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Br]=r),r==null?e.removeAttribute(t):typeof r!="string"&&wr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function J(e,t,r){var n=g,i=_;let s=m;m&&Z(!1),R(null),U(null);try{t!=="style"&&(yt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?wr(e).includes(t):r&&typeof r=="object")?e[t]=r:Xn(e,t,r==null?r:String(r))}finally{R(n),U(i),s&&Z(!0)}}function Zn(e){return e.__attributes??={[Gn]:e.nodeName.includes("-"),[Kn]:e.namespaceURI===Or}}var yt=new Map;function wr(e){var t=e.getAttribute("is")||e.nodeName,r=yt.get(t);if(r)return r;yt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Mr(i);for(var o in n)n[o].set&&r.push(o);i=Ct(i)}return r}function We(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var u=!1,f=st(()=>(u=!1,l())),h=_;return(function(c,d){if(arguments.length>0){const v=d?b(f):c;return y(f,v),u=!0,i!==void 0&&(i=v),c}return ue&&u||(h.f&ne)!==0?f.v:b(f)})}function Qn(e){return new ei(e)}class ei{#t;#e;constructor(t){var r=new Map,n=(s,o)=>{var a=pn(o,!1,!1);return r.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return b(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===Wr?!0:(b(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,a){return y(r.get(o)??n(o,a),a),Reflect.set(s,o,a)}});this.#e=(t.hydrate?Wn:mr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&ke(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||ve(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=()=>{Bn(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 $r;typeof HTMLElement=="function"&&($r=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),_t(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ti(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]=Be(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=Qn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=xn(()=>{qn(()=>{this.$$r=!0;for(const n of Se(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Be(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Be(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 Se(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Be(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 ti(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ri(e,t,r,n,i,s){let o=class extends $r{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Se(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Se(t).forEach(a=>{ve(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=Be(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var f=be(u,a)?.get;f?u[a]=l:u.$set({[a]:l})}}})}),n.forEach(a=>{ve(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}var de={},Er;function ni(){if(Er)return de;Er=1,Object.defineProperty(de,"__esModule",{value:!0}),de.LanguageTranslator=void 0,de.getChildStyleToPass=e,de.addComponent=t;function e(n,i){var s,o,a="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||o===void 0)&&o.length))for(var l=function(c){var d=i?.filter(function(v){return v.name===c&&v.defaultValue!==n[c]});d&&(a+="".concat(c,":").concat(n[c],";"))},u=0,f=Object.keys(n);u<f.length;u++){var h=f[u];l(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return a}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var o=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var a=document.createElement("script");if(a.id=s+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(o),n?.local)a.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=s.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(s.replace(l+"-",""),"/").concat(o)}document.head.appendChild(a)}catch(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,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,o){return n.formatDate(i,s,o||this.lang)},n.getDefaultLang=function(){var i,s,o,a,l,u="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)&&(u=(l=(a=navigator.languages[0])===null||a===void 0?void 0:a.split("-")[0])===null||l===void 0?void 0:l.toLowerCase()),u},n.getDictionaryWord=function(i,s,o){var a;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(o&&(!((a=s[o])===null||a===void 0)&&a[i]))return s[o][i];var l="",u=n.getDefaultLang();if(!o||u!==o){var f=s?.[u];f?.[i]&&(l=f[i])}return l},n.formatDate=function(i,s,o){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(o||n.getDefaultLang(),s);return a.format(i)},n})();return de.LanguageTranslator=r,de}var Ue=ni();const xr={en:{latitude:"Latitude",longitude:"Longitude",latitudePlaceholder:"Insert latitude...",longitudePlaceholder:"Insert longitude...",latitudeLabel:"Latitude",longitudeLabel:"Longitude"},it:{latitude:"Latitudine",longitude:"Longitudine",latitudePlaceholder:"Inserisci latitudine...",longitudePlaceholder:"Inserisci longitudine...",latitudeLabel:"Latitudine",longitudeLabel:"Longitudine"}},kr={version:"0.61.51"};var ii=pr('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-q2pihy"> </div>'),si=pr('<div class="form-control svelte-q2pihy"><div class="container-fluid svelte-q2pihy"><div class="row svelte-q2pihy"><div class="col-6 svelte-q2pihy" style="padding: 0px;"><hb-map></hb-map></div> <div class="col-6 svelte-q2pihy" style="margin-bottom: 12px;"><div class="row coord svelte-q2pihy"><div class="col-12 svelte-q2pihy"> <hb-input-number></hb-input-number></div></div> <div class="row coord svelte-q2pihy"><div class="col-12 svelte-q2pihy"> <hb-input-number></hb-input-number></div></div> <!></div></div></div></div>',2);const oi={hash:"svelte-q2pihy",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
1
+ (function(Nt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Fr=1,qr=2,Ct="[",st="[!",St="]",me={},$=Symbol(),Br="http://www.w3.org/1999/xhtml",Lt=!1;var Vr=Array.isArray,Wr=Array.prototype.indexOf,Ur=Array.from,Be=Object.keys,Ve=Object.defineProperty,we=Object.getOwnPropertyDescriptor,zr=Object.getOwnPropertyDescriptors,Hr=Object.prototype,Yr=Array.prototype,At=Object.getPrototypeOf,Ot=Object.isExtensible;function Jr(e){for(var t=0;t<e.length;t++)e[t]()}function Rt(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const E=2,We=4,ot=8,K=16,X=32,ne=64,Ue=128,I=512,k=1024,S=2048,Z=4096,B=8192,ie=16384,at=32768,ye=65536,Pt=1<<17,Mt=1<<18,ue=1<<19,Gr=1<<20,Ne=32768,lt=1<<21,ft=1<<22,se=1<<23,ut=Symbol("$state"),Kr=Symbol("legacy props"),Xr=Symbol(""),xe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Dt=3,Ce=8;function Zr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Qr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function en(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function tn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function rn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function nn(){throw new Error("https://svelte.dev/e/hydration_failed")}function sn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function on(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function an(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ln(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ze(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function fn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function oe(e){m=e}let w;function V(e){if(e===null)throw ze(),me;return w=e}function ct(){return V(le(w))}function W(e){if(m){if(le(w)!==null)throw ze(),me;w=e}}function un(e=1){if(m){for(var t=e,r=w;t--;)r=le(r);w=r}}function It(e=!0){for(var t=0,r=w;;){if(r.nodeType===Ce){var n=r.data;if(n===St){if(t===0)return r;t-=1}else(n===Ct||n===st)&&(t+=1)}var i=le(r);e&&r.remove(),r=i}}function cn(e){if(!e||e.nodeType!==Ce)throw ze(),me;return e.data}function jt(e){return e===this.v}function dn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function hn(e){return!dn(e,this.v)}let vn=!1,P=null;function $e(e){P=e}function Ft(e,t=!1,r){P={p:P,i:!1,c:null,e:null,s:e,x:null,l:null}}function qt(e){var t=P,r=t.e;if(r!==null){t.e=null;for(var n of r)ir(n)}return e!==void 0&&(t.x=e),t.i=!0,P=t.p,e??{}}function Bt(){return!0}let ce=[];function Vt(){var e=ce;ce=[],Jr(e)}function He(e){if(ce.length===0&&!Se){var t=ce;queueMicrotask(()=>{t===ce&&Vt()})}ce.push(e)}function bn(){for(;ce.length>0;)Vt()}function Wt(e){var t=_;if(t===null)return b.f|=se,e;if((t.f&at)===0){if((t.f&Ue)===0)throw e;t.b.error(e)}else Ee(e,t)}function Ee(e,t){for(;t!==null;){if((t.f&Ue)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Ye=new Set;let x=null,O=null,U=[],Je=null,dt=!1,Se=!1;class j{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#o=[];#a=[];skipped_effects=new Set;is_fork=!1;process(t){U=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#i(n,r);this.is_fork||this.#f(),this.#n>0||this.is_fork?(this.#s(r.effects),this.#s(r.render_effects),this.#s(r.block_effects)):(x=null,zt(r.render_effects),zt(r.effects),this.#l?.resolve()),O=null}#i(t,r){t.f^=k;for(var n=t.first;n!==null;){var i=n.f,s=(i&(X|ne))!==0,o=s&&(i&k)!==0,a=o||(i&B)!==0||this.skipped_effects.has(n);if((n.f&Ue)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){s?n.f^=k:(i&We)!==0?r.effects.push(n):Ie(n)&&((n.f&K)!==0&&r.block_effects.push(n),je(n));var l=n.first;if(l!==null){n=l;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#s(r.effects),this.#s(r.render_effects),this.#s(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#s(t){for(const r of t)((r.f&S)!==0?this.#o:this.#a).push(r),N(r,k)}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&se)===0&&(this.current.set(t,t.v),O?.set(t,t.v))}activate(){x=this,this.apply()}deactivate(){x=null,O=null}flush(){if(this.activate(),U.length>0){if(Ut(),x!==null&&x!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#u()}#u(){if(Ye.size>1){this.previous.clear();var t=O,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Ye){if(i===this){r=!1;continue}const s=[];for(const[a,l]of this.current){if(i.current.has(a))if(r&&l!==i.current.get(a))i.current.set(a,l);else continue;s.push(a)}if(s.length===0)continue;const o=[...i.current.keys()].filter(a=>!this.current.has(a));if(o.length>0){const a=new Set,l=new Map;for(const f of s)Ht(f,o,a,l);if(U.length>0){x=i,i.apply();for(const f of U)i.#i(f,n);U=[],i.deactivate()}}}x=null,O=t}this.committed=!0,Ye.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#o)N(t,S),de(t);for(const t of this.#a)N(t,Z),de(t);this.#o=[],this.#a=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=Rt()).promise}static ensure(){if(x===null){const t=x=new j;Ye.add(x),Se||j.enqueue(()=>{x===t&&t.flush()})}return x}static enqueue(t){He(t)}apply(){}}function Le(e){var t=Se;Se=!0;try{for(var r;;){if(bn(),U.length===0&&(x?.flush(),U.length===0))return Je=null,r;Ut()}}finally{Se=t}}function Ut(){var e=be;dt=!0;try{var t=0;for(hr(!0);U.length>0;){var r=j.ensure();if(t++>1e3){var n,i;_n()}r.process(U),ae.clear()}}finally{dt=!1,hr(e),Je=null}}function _n(){try{rn()}catch(e){Ee(e,Je)}}let Q=null;function zt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ie|B))===0&&Ie(n)&&(Q=new Set,je(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?fr(n):n.fn=null),Q?.size>0)){ae.clear();for(const i of Q){if((i.f&(ie|B))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)Q.has(o)&&(Q.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const l=s[a];(l.f&(ie|B))===0&&je(l)}}Q.clear()}}Q=null}}function Ht(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&E)!==0?Ht(i,t,r,n):(s&(ft|K))!==0&&(s&S)===0&&Yt(i,t,n)&&(N(i,S),de(i))}}function Yt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&E)!==0&&Yt(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function de(e){for(var t=Je=e;t.parent!==null;){t=t.parent;var r=t.f;if(dt&&t===_&&(r&K)!==0&&(r&Mt)===0)return;if((r&(ne|X))!==0){if((r&k)===0)return;t.f^=k}}U.push(t)}function pn(e){let t=0,r=Ae(0),n;return()=>{Xe()&&(v(r),sr(()=>(t===0&&(n=Vn(()=>e(()=>Oe(r)))),t+=1,()=>{He(()=>{t-=1,t===0&&(n?.(),n=void 0,Oe(r))})})))}}var gn=ye|ue|Ue;function mn(e,t,r){new wn(e,t,r)}class wn{parent;#t=!1;#e;#r=m?w:null;#n;#l;#o;#a=null;#i=null;#s=null;#f=null;#u=null;#h=0;#c=0;#v=!1;#d=null;#m=pn(()=>(this.#d=Ae(this.#h),()=>{this.#d=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=_.b,this.#t=!!this.#n.pending,this.#o=or(()=>{if(_.b=this,m){const s=this.#r;ct(),s.nodeType===Ce&&s.data===st?this.#y():this.#w()}else{var i=this.#p();try{this.#a=ee(()=>n(i))}catch(s){this.error(s)}this.#c>0?this.#_():this.#t=!1}return()=>{this.#u?.remove()}},gn),m&&(this.#e=w)}#w(){try{this.#a=ee(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#n.pending;t&&(this.#i=ee(()=>t(this.#e)),j.enqueue(()=>{var r=this.#p();this.#a=this.#b(()=>(j.ensure(),ee(()=>this.#l(r)))),this.#c>0?this.#_():(Me(this.#i,()=>{this.#i=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=ve(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#b(t){var r=_,n=b,i=P;M(this.#o),T(this.#o),$e(this.#o.ctx);try{return t()}catch(s){return Wt(s),null}finally{M(r),T(n),$e(i)}}#_(){const t=this.#n.pending;this.#a!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),dr(this.#a,this.#f)),this.#i===null&&(this.#i=ee(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#i&&Me(this.#i,()=>{this.#i=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#h+=t,this.#d&&Ke(this.#d,this.#h)}get_effect_pending(){return this.#m(),v(this.#d)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)throw t;this.#a&&(A(this.#a),this.#a=null),this.#i&&(A(this.#i),this.#i=null),this.#s&&(A(this.#s),this.#s=null),m&&(V(this.#r),un(),V(It()));var i=!1,s=!1;const o=()=>{if(i){fn();return}i=!0,s&&ln(),j.ensure(),this.#h=0,this.#s!==null&&Me(this.#s,()=>{this.#s=null}),this.#t=this.has_pending_snippet(),this.#a=this.#b(()=>(this.#v=!1,ee(()=>this.#l(this.#e)))),this.#c>0?this.#_():this.#t=!1};var a=b;try{T(null),s=!0,r?.(t,o),s=!1}catch(l){Ee(l,this.#o&&this.#o.parent)}finally{T(a)}n&&He(()=>{this.#s=this.#b(()=>{j.ensure(),this.#v=!0;try{return ee(()=>{n(this.#e,()=>t,()=>o)})}catch(l){return Ee(l,this.#o.parent),null}finally{this.#v=!1}})})}}function yn(e,t,r,n){const i=ht;if(r.length===0&&e.length===0){n(t.map(i));return}var s=x,o=_,a=xn();function l(){Promise.all(r.map(f=>$n(f))).then(f=>{a();try{n([...t.map(i),...f])}catch(c){(o.f&ie)===0&&Ee(c,o)}s?.deactivate(),Ge()}).catch(f=>{Ee(f,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{s?.deactivate(),Ge()}}):l()}function xn(){var e=_,t=b,r=P,n=x;return function(s=!0){M(e),T(t),$e(r),s&&n?.activate()}}function Ge(){M(null),T(null),$e(null)}function ht(e){var t=E|S,r=b!==null&&(b.f&E)!==0?b:null;return _!==null&&(_.f|=ue),{ctx:P,deps:null,effects:null,equals:jt,f:t,fn:e,reactions:null,rv:0,v:$,wv:0,parent:r??_,ac:null}}function $n(e,t){let r=_;r===null&&Zr();var n=r.b,i=void 0,s=Ae($),o=!b,a=new Map;return Mn(()=>{var l=Rt();i=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===x&&f.committed&&f.deactivate(),Ge()})}catch(u){l.reject(u),Ge()}var f=x;if(o){var c=!n.is_pending();n.update_pending_count(1),f.increment(c),a.get(f)?.reject(xe),a.delete(f),a.set(f,l)}const h=(u,d=void 0)=>{if(f.activate(),d)d!==xe&&(s.f|=se,Ke(s,d));else{(s.f&se)!==0&&(s.f^=se),Ke(s,u);for(const[g,F]of a){if(a.delete(g),g===f)break;F.reject(xe)}}o&&(n.update_pending_count(-1),f.decrement(c))};l.promise.then(h,u=>h(null,u||"unknown"))}),rr(()=>{for(const l of a.values())l.reject(xe)}),new Promise(l=>{function f(c){function h(){c===i?l(s):f(i)}c.then(h,h)}f(i)})}function En(e){const t=ht(e);return br(t),t}function Jt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)A(t[r])}}function kn(e){for(var t=e.parent;t!==null;){if((t.f&E)===0)return t;t=t.parent}return null}function vt(e){var t,r=_;M(kn(e));try{e.f&=~Ne,Jt(e),t=wr(e)}finally{M(r)}return t}function Gt(e){var t=vt(e);if(e.equals(t)||(e.v=t,e.wv=gr()),!_e)if(O!==null)Xe()&&O.set(e,e.v);else{var r=(e.f&I)===0?Z:k;N(e,r)}}let bt=new Set;const ae=new Map;let Kt=!1;function Ae(e,t){var r={f:0,v:e,reactions:null,equals:jt,rv:0,wv:0};return r}function L(e,t){const r=Ae(e);return br(r),r}function Tn(e,t=!1,r=!0){const n=Ae(e);return t||(n.equals=hn),n}function y(e,t,r=!1){b!==null&&(!J||(b.f&Pt)!==0)&&Bt()&&(b.f&(E|K|ft|Pt))!==0&&!te?.includes(e)&&an();let n=r?he(t):t;return Ke(e,n)}function Ke(e,t){if(!e.equals(t)){var r=e.v;_e?ae.set(e,t):ae.set(e,r),e.v=t;var n=j.ensure();n.capture(e,r),(e.f&E)!==0&&((e.f&S)!==0&&vt(e),N(e,(e.f&I)!==0?k:Z)),e.wv=gr(),Xt(e,S),_!==null&&(_.f&k)!==0&&(_.f&(X|ne))===0&&(D===null?qn([e]):D.push(e)),!n.is_fork&&bt.size>0&&!Kt&&Nn()}return t}function Nn(){Kt=!1;const e=Array.from(bt);for(const t of e)(t.f&k)!==0&&N(t,Z),Ie(t)&&je(t);bt.clear()}function Oe(e){y(e,e.v+1)}function Xt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,a=(o&S)===0;if(a&&N(s,t),(o&E)!==0){var l=s;O?.delete(l),(o&Ne)===0&&(o&I&&(s.f|=Ne),Xt(l,Z))}else a&&((o&K)!==0&&Q!==null&&Q.add(s),de(s))}}function he(e){if(typeof e!="object"||e===null||ut in e)return e;const t=At(e);if(t!==Hr&&t!==Yr)return e;var r=new Map,n=Vr(e),i=L(0),s=pe,o=a=>{if(pe===s)return a();var l=b,f=pe;T(null),pr(s);var c=a();return T(l),pr(f),c};return n&&r.set("length",L(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&sn();var c=r.get(l);return c===void 0?c=o(()=>{var h=L(f.value);return r.set(l,h),h}):y(c,f.value,!0),!0},deleteProperty(a,l){var f=r.get(l);if(f===void 0){if(l in a){const c=o(()=>L($));r.set(l,c),Oe(i)}}else y(f,$),Oe(i);return!0},get(a,l,f){if(l===ut)return e;var c=r.get(l),h=l in a;if(c===void 0&&(!h||we(a,l)?.writable)&&(c=o(()=>{var d=he(h?a[l]:$),g=L(d);return g}),r.set(l,c)),c!==void 0){var u=v(c);return u===$?void 0:u}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var c=r.get(l);c&&(f.value=v(c))}else if(f===void 0){var h=r.get(l),u=h?.v;if(h!==void 0&&u!==$)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(a,l){if(l===ut)return!0;var f=r.get(l),c=f!==void 0&&f.v!==$||Reflect.has(a,l);if(f!==void 0||_!==null&&(!c||we(a,l)?.writable)){f===void 0&&(f=o(()=>{var u=c?he(a[l]):$,d=L(u);return d}),r.set(l,f));var h=v(f);if(h===$)return!1}return c},set(a,l,f,c){var h=r.get(l),u=l in a;if(n&&l==="length")for(var d=f;d<h.v;d+=1){var g=r.get(d+"");g!==void 0?y(g,$):d in a&&(g=o(()=>L($)),r.set(d+"",g))}if(h===void 0)(!u||we(a,l)?.writable)&&(h=o(()=>L(void 0)),y(h,he(f)),r.set(l,h));else{u=h.v!==$;var F=o(()=>he(f));y(h,F)}var q=Reflect.getOwnPropertyDescriptor(a,l);if(q?.set&&q.set.call(c,f),!u){if(n&&typeof l=="string"){var qe=r.get("length"),Te=Number(l);Number.isInteger(Te)&&Te>=qe.v&&y(qe,Te+1)}Oe(i)}return!0},ownKeys(a){v(i);var l=Reflect.ownKeys(a).filter(h=>{var u=r.get(h);return u===void 0||u.v!==$});for(var[f,c]of r)c.v!==$&&!(f in a)&&l.push(f);return l},setPrototypeOf(){on()}})}var Zt,Qt,er,tr;function _t(){if(Zt===void 0){Zt=window,Qt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;er=we(t,"firstChild").get,tr=we(t,"nextSibling").get,Ot(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ot(r)&&(r.__t=void 0)}}function ve(e=""){return document.createTextNode(e)}function Re(e){return er.call(e)}function le(e){return tr.call(e)}function z(e,t){if(!m)return Re(e);var r=Re(w);if(r===null)r=w.appendChild(ve());else if(t&&r.nodeType!==Dt){var n=ve();return r?.before(n),V(n),n}return V(r),r}function Pe(e,t=1,r=!1){let n=m?w:e;for(var i;t--;)i=n,n=le(n);if(!m)return n;if(r&&n?.nodeType!==Dt){var s=ve();return n===null?i?.after(s):n.before(s),V(s),s}return V(n),n}function Cn(e){e.textContent=""}function Sn(){return!1}function pt(e){var t=b,r=_;T(null),M(null);try{return e()}finally{T(t),M(r)}}function Ln(e){_===null&&(b===null&&tn(),en()),_e&&Qr()}function An(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function H(e,t,r,n=!0){var i=_;i!==null&&(i.f&B)!==0&&(e|=B);var s={ctx:P,deps:null,nodes_start:null,nodes_end:null,f:e|S|I,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{je(s),s.f|=at}catch(l){throw A(s),l}else t!==null&&de(s);if(n){var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&ue)===0&&(o=o.first,(e&K)!==0&&(e&ye)!==0&&o!==null&&(o.f|=ye)),o!==null&&(o.parent=i,i!==null&&An(o,i),b!==null&&(b.f&E)!==0&&(e&ne)===0)){var a=b;(a.effects??=[]).push(o)}}return s}function Xe(){return b!==null&&!J}function rr(e){const t=H(ot,null,!1);return N(t,k),t.teardown=e,t}function nr(e){Ln();var t=_.f,r=!b&&(t&X)!==0&&(t&at)===0;if(r){var n=P;(n.e??=[]).push(e)}else return ir(e)}function ir(e){return H(We|Gr,e,!1)}function On(e){j.ensure();const t=H(ne|ue,e,!0);return()=>{A(t)}}function Rn(e){j.ensure();const t=H(ne|ue,e,!0);return(r={})=>new Promise(n=>{r.outro?Me(t,()=>{A(t),n(void 0)}):(A(t),n(void 0))})}function Pn(e){return H(We,e,!1)}function Mn(e){return H(ft|ue,e,!0)}function sr(e,t=0){return H(ot|t,e,!0)}function Y(e,t=[],r=[],n=[],i=!1){yn(n,t,r,s=>{H(i?We:ot,()=>e(...s.map(v)),!0)})}function or(e,t=0){var r=H(K|t,e,!0);return r}function ee(e,t=!0){return H(X|ue,e,!0,t)}function ar(e){var t=e.teardown;if(t!==null){const r=_e,n=b;vr(!0),T(null);try{t.call(null)}finally{vr(r),T(n)}}}function lr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&pt(()=>{i.abort(xe)});var n=r.next;(r.f&ne)!==0?r.parent=null:A(r,t),r=n}}function Dn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&X)===0&&A(t),t=r}}function A(e,t=!0){var r=!1;(t||(e.f&Mt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(In(e.nodes_start,e.nodes_end),r=!0),lr(e,t&&!r),Ze(e,0),N(e,ie);var n=e.transitions;if(n!==null)for(const s of n)s.stop();ar(e);var i=e.parent;i!==null&&i.first!==null&&fr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function In(e,t){for(;e!==null;){var r=e===t?null:le(e);e.remove(),e=r}}function fr(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 Me(e,t,r=!0){var n=[];ur(e,n,!0),jn(n,()=>{r&&A(e),t&&t()})}function jn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function ur(e,t,r){if((e.f&B)===0){if(e.f^=B,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&ye)!==0||(n.f&X)!==0&&(e.f&K)!==0;ur(n,t,s?r:!1),n=i}}}function Fn(e){cr(e,!0)}function cr(e,t){if((e.f&B)!==0){e.f^=B,(e.f&k)===0&&(N(e,S),de(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&ye)!==0||(r.f&X)!==0;cr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function dr(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:le(r);t.append(r),r=i}}let be=!1;function hr(e){be=e}let _e=!1;function vr(e){_e=e}let b=null,J=!1;function T(e){b=e}let _=null;function M(e){_=e}let te=null;function br(e){b!==null&&(te===null?te=[e]:te.push(e))}let C=null,R=0,D=null;function qn(e){D=e}let _r=1,De=0,pe=De;function pr(e){pe=e}function gr(){return++_r}function Ie(e){var t=e.f;if((t&S)!==0)return!0;if(t&E&&(e.f&=~Ne),(t&Z)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(Ie(s)&&Gt(s),s.wv>e.wv)return!0}(t&I)!==0&&O===null&&N(e,k)}return!1}function mr(e,t,r=!0){var n=e.reactions;if(n!==null&&!te?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&E)!==0?mr(s,t,!1):t===s&&(r?N(s,S):(s.f&k)!==0&&N(s,Z),de(s))}}function wr(e){var t=C,r=R,n=D,i=b,s=te,o=P,a=J,l=pe,f=e.f;C=null,R=0,D=null,b=(f&(X|ne))===0?e:null,te=null,$e(e.ctx),J=!1,pe=++De,e.ac!==null&&(pt(()=>{e.ac.abort(xe)}),e.ac=null);try{e.f|=lt;var c=e.fn,h=c(),u=e.deps;if(C!==null){var d;if(Ze(e,R),u!==null&&R>0)for(u.length=R+C.length,d=0;d<C.length;d++)u[R+d]=C[d];else e.deps=u=C;if(be&&Xe()&&(e.f&I)!==0)for(d=R;d<u.length;d++)(u[d].reactions??=[]).push(e)}else u!==null&&R<u.length&&(Ze(e,R),u.length=R);if(Bt()&&D!==null&&!J&&u!==null&&(e.f&(E|Z|S))===0)for(d=0;d<D.length;d++)mr(D[d],e);return i!==null&&i!==e&&(De++,D!==null&&(n===null?n=D:n.push(...D))),(e.f&se)!==0&&(e.f^=se),h}catch(g){return Wt(g)}finally{e.f^=lt,C=t,R=r,D=n,b=i,te=s,$e(o),J=a,pe=l}}function Bn(e,t){let r=t.reactions;if(r!==null){var n=Wr.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&E)!==0&&(C===null||!C.includes(t))&&(N(t,Z),(t.f&I)!==0&&(t.f^=I,t.f&=~Ne),Jt(t),Ze(t,0))}function Ze(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Bn(e,r[n])}function je(e){var t=e.f;if((t&ie)===0){N(e,k);var r=_,n=be;_=e,be=!0;try{(t&K)!==0?Dn(e):lr(e),ar(e);var i=wr(e);e.teardown=typeof i=="function"?i:null,e.wv=_r;var s;Lt&&vn&&(e.f&S)!==0&&e.deps}finally{be=n,_=r}}}function v(e){var t=e.f,r=(t&E)!==0;if(b!==null&&!J){var n=_!==null&&(_.f&ie)!==0;if(!n&&!te?.includes(e)){var i=b.deps;if((b.f&lt)!==0)e.rv<De&&(e.rv=De,C===null&&i!==null&&i[R]===e?R++:C===null?C=[e]:C.includes(e)||C.push(e));else{(b.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[b]:s.includes(b)||s.push(b)}}}if(_e){if(ae.has(e))return ae.get(e);if(r){var o=e,a=o.v;return((o.f&k)===0&&o.reactions!==null||xr(o))&&(a=vt(o)),ae.set(o,a),a}}else if(r){if(o=e,O?.has(o))return O.get(o);Ie(o)&&Gt(o),be&&Xe()&&(o.f&I)===0&&yr(o)}else if(O?.has(e))return O.get(e);if((e.f&se)!==0)throw e.v;return e.v}function yr(e){if(e.deps!==null){e.f^=I;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&E)!==0&&(t.f&I)===0&&yr(t)}}function xr(e){if(e.v===$)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ae.has(t)||(t.f&E)!==0&&xr(t))return!0;return!1}function Vn(e){var t=J;try{return J=!0,e()}finally{J=t}}const Wn=-7169;function N(e,t){e.f=e.f&Wn|t}const Un=new Set,$r=new Set;function zn(e,t,r,n={}){function i(s){if(n.capture||Fe.call(t,s),!s.cancelBubble)return pt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?He(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function gt(e,t,r,n,i){var s={capture:n,passive:i},o=zn(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&rr(()=>{t.removeEventListener(e,o,s)})}let Er=null;function Fe(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Er=e;var o=0,a=Er===e&&e.__root;if(a){var l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(s=i[o]||e.target,s!==t){Ve(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=b,h=_;T(null),M(null);try{for(var u,d=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var F=s["__"+n];F!=null&&(!s.disabled||e.target===s)&&F.call(s,e)}catch(q){u?d.push(q):u=q}if(e.cancelBubble||g===t||g===null)break;s=g}if(u){for(let q of d)queueMicrotask(()=>{throw q});throw u}}finally{e.__root=t,delete e.currentTarget,T(c),M(h)}}}function Hn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Qe(e,t){var r=_;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function kr(e,t){var r=(t&Fr)!==0,n=(t&qr)!==0,i,s=!e.startsWith("<!>");return()=>{if(m)return Qe(w,null),w;i===void 0&&(i=Hn(s?e:"<!>"+e),r||(i=Re(i)));var o=n||Qt?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Re(o),l=o.lastChild;Qe(a,l)}else Qe(o,o);return o}}function mt(e,t){if(m){_.nodes_end=w,ct();return}e!==null&&e.before(t)}const Yn=["touchstart","touchmove"];function Jn(e){return Yn.includes(e)}function wt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Tr(e,t){return Nr(e,t)}function Gn(e,t){_t(),t.intro=t.intro??!1;const r=t.target,n=m,i=w;try{for(var s=Re(r);s&&(s.nodeType!==Ce||s.data!==Ct);)s=le(s);if(!s)throw me;oe(!0),V(s);const o=Nr(e,{...t,anchor:s});return oe(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==me&&console.warn("Failed to hydrate: ",o),t.recover===!1&&nn(),_t(),Cn(r),oe(!1),Tr(e,t)}finally{oe(n),V(i)}}const ke=new Map;function Nr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){_t();var a=new Set,l=h=>{for(var u=0;u<h.length;u++){var d=h[u];if(!a.has(d)){a.add(d);var g=Jn(d);t.addEventListener(d,Fe,{passive:g});var F=ke.get(d);F===void 0?(document.addEventListener(d,Fe,{passive:g}),ke.set(d,1)):ke.set(d,F+1)}}};l(Ur(Un)),$r.add(l);var f=void 0,c=Rn(()=>{var h=r??t.appendChild(ve());return mn(h,{pending:()=>{}},u=>{if(s){Ft({});var d=P;d.c=s}if(i&&(n.$$events=i),m&&Qe(u,null),f=e(u,n)||{},m&&(_.nodes_end=w,w===null||w.nodeType!==Ce||w.data!==St))throw ze(),me;s&&qt()}),()=>{for(var u of a){t.removeEventListener(u,Fe);var d=ke.get(u);--d===0?(document.removeEventListener(u,Fe),ke.delete(u)):ke.set(u,d)}$r.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return yt.set(f,c),f}let yt=new WeakMap;function Kn(e,t){const r=yt.get(e);return r?(yt.delete(e),r(t)):Promise.resolve()}class Xn{anchor;#t=new Map;#e=new Map;#r=new Map;#n=!0;constructor(t,r=!0){this.anchor=t,this.#n=r}#l=()=>{var t=x;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Fn(n);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===t)break;const a=this.#r.get(o);a&&(A(a.effect),this.#r.delete(o))}for(const[s,o]of this.#e){if(s===r)continue;const a=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();dr(o,f),f.append(ve()),this.#r.set(s,{effect:o,fragment:f})}else A(o);this.#e.delete(s)};this.#n||!n?Me(o,a,!1):a()}}};#o=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(A(i.effect),this.#r.delete(n))};ensure(t,r){var n=x,i=Sn();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),o=ve();s.append(o),this.#r.set(t,{effect:ee(()=>r(o)),fragment:s})}else this.#e.set(t,ee(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[a,l]of this.#e)a===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[a,l]of this.#r)a===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#l),n.ondiscard(this.#o)}else m&&(this.anchor=w),this.#l()}}function Zn(e,t,r=!1){m&&ct();var n=new Xn(e),i=r?ye:0;function s(o,a){if(m){const f=cn(e)===st;if(o===f){var l=It();V(l),n.anchor=l,oe(!1),n.ensure(o,a),oe(!0);return}}n.ensure(o,a)}or(()=>{var o=!1;t((a,l=!0)=>{o=!0,s(l,a)}),o||s(!1,null)},i)}function Qn(e,t){Pn(()=>{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,r){var n=""+e;return n}function ti(e,t){return String(e)}function xt(e,t,r,n,i,s){var o=e.__className;if(m||o!==r||o===void 0){var a=ei(r);(!m||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return s}function ri(e,t,r,n){var i=e.__style;if(m||i!==t){var s=ti(t);(!m||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const ni=Symbol("is custom element"),ii=Symbol("is html");function si(e,t,r,n){var i=oi(e);m&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Xr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Cr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function re(e,t,r){var n=b,i=_;let s=m;m&&oe(!1),T(null),M(null);try{t!=="style"&&($t.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Cr(e).includes(t):r&&typeof r=="object")?e[t]=r:si(e,t,r==null?r:String(r))}finally{T(n),M(i),s&&oe(!0)}}function oi(e){return e.__attributes??={[ni]:e.nodeName.includes("-"),[ii]:e.namespaceURI===Br}}var $t=new Map;function Cr(e){var t=e.getAttribute("is")||e.nodeName,r=$t.get(t);if(r)return r;$t.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=zr(i);for(var o in n)n[o].set&&r.push(o);i=At(i)}return r}function et(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var u=e[t];return u===void 0?o():(s=!0,u)};var f=!1,c=ht(()=>(f=!1,l())),h=_;return(function(u,d){if(arguments.length>0){const g=d?v(c):u;return y(c,g),f=!0,i!==void 0&&(i=g),u}return _e&&f||(h.f&ie)!==0?c.v:v(c)})}function ai(e){return new li(e)}class li{#t;#e;constructor(t){var r=new Map,n=(s,o)=>{var a=Tn(o,!1,!1);return r.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return v(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===Kr?!0:(v(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,a){return y(r.get(o)??n(o,a),a),Reflect.set(s,o,a)}});this.#e=(t.hydrate?Gn:Tr)(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)&&Le(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ve(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=()=>{Kn(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 Sr;typeof HTMLElement=="function"&&(Sr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),mt(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=fi(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]=tt(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=ai({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=On(()=>{sr(()=>{this.$$r=!0;for(const n of Be(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=tt(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=tt(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 Be(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function tt(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 fi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ui(e,t,r,n,i,s){let o=class extends Sr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Be(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Be(t).forEach(a=>{Ve(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=tt(a,l,t),this.$$d[a]=l;var f=this.$$c;if(f){var c=we(f,a)?.get;c?f[a]=l:f.$set({[a]:l})}}})}),n.forEach(a=>{Ve(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}var ge={},Lr;function ci(){if(Lr)return ge;Lr=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.LanguageTranslator=void 0,ge.getChildStyleToPass=e,ge.addComponent=t;function e(n,i){var s,o,a="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(u){return Object.keys(n).includes(u.name)}))===null||o===void 0)&&o.length))for(var l=function(u){var d=i?.filter(function(g){return g.name===u&&g.defaultValue!==n[u]});d&&(a+="".concat(u,":").concat(n[u],";"))},f=0,c=Object.keys(n);f<c.length;f++){var h=c[f];l(h)}}catch(u){console.error("error getting child style to pass",u)}finally{return a}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var o=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var a=document.createElement("script");if(a.id=s+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(o),n?.local)a.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=s.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(s.replace(l+"-",""),"/").concat(o)}document.head.appendChild(a)}catch(f){console.warn(f)}}var r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,o){return n.formatDate(i,s,o||this.lang)},n.getDefaultLang=function(){var i,s,o,a="en";return navigator?.languages&&(!((o=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||o===void 0)&&o.length)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},n.getDictionaryWord=function(i,s,o){var a;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(o&&(!((a=s[o])===null||a===void 0)&&a[i]))return s[o][i];var l="",f=n.getDefaultLang();if(!o||f!==o){var c=s?.[f];c?.[i]&&(l=c[i])}return l},n.formatDate=function(i,s,o){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(o||n.getDefaultLang(),s);return a.format(i)},n})();return ge.LanguageTranslator=r,ge}var rt=ci();const Ar={en:{latitude:"Latitude",longitude:"Longitude",latitudePlaceholder:"Insert latitude...",longitudePlaceholder:"Insert longitude...",latitudeLabel:"Latitude",longitudeLabel:"Longitude"},it:{latitude:"Latitudine",longitude:"Longitudine",latitudePlaceholder:"Inserisci latitudine...",longitudePlaceholder:"Inserisci longitudine...",latitudeLabel:"Latitudine",longitudeLabel:"Longitudine"}},Or={version:"0.61.53"};var di=kr('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-tr0h8x"> </div>'),hi=kr('<div class="form-control svelte-tr0h8x"><div class="container-fluid svelte-tr0h8x"><div class="row svelte-tr0h8x"><div class="col-6 svelte-tr0h8x" style="padding: 0px;"><hb-map></hb-map></div> <div class="col-6 svelte-tr0h8x" style="margin-bottom: 12px;"><div class="row coord svelte-tr0h8x"><div class="col-12 svelte-tr0h8x"> <hb-input-number></hb-input-number></div></div> <div class="row coord svelte-tr0h8x"><div class="col-12 svelte-tr0h8x"> <hb-input-number></hb-input-number></div></div> <!></div></div></div></div>',2);const vi={hash:"svelte-tr0h8x",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
3
3
  /*!
4
4
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
5
5
  * Copyright 2011-2021 The Bootstrap Authors
6
6
  * Copyright 2011-2021 Twitter, Inc.
7
7
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
8
- */:host {--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgb(5.2, 44, 101.2);--bs-secondary-text-emphasis: rgb(43.2, 46.8, 50);--bs-success-text-emphasis: rgb(10, 54, 33.6);--bs-info-text-emphasis: rgb(5.2, 80.8, 96);--bs-warning-text-emphasis: rgb(102, 77.2, 2.8);--bs-danger-text-emphasis: rgb(88, 21.2, 27.6);--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgb(206.6, 226, 254.6);--bs-secondary-bg-subtle: rgb(225.6, 227.4, 229);--bs-success-bg-subtle: rgb(209, 231, 220.8);--bs-info-bg-subtle: rgb(206.6, 244.4, 252);--bs-warning-bg-subtle: rgb(255, 242.6, 205.4);--bs-danger-bg-subtle: rgb(248, 214.6, 217.8);--bs-light-bg-subtle: rgb(251.5, 252, 252.5);--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgb(158.2, 197, 254.2);--bs-secondary-border-subtle: rgb(196.2, 199.8, 203);--bs-success-border-subtle: rgb(163, 207, 186.6);--bs-info-border-subtle: rgb(158.2, 233.8, 249);--bs-warning-border-subtle: rgb(255, 230.2, 155.8);--bs-danger-border-subtle: rgb(241, 174.2, 180.6);--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg: #fff;--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb: 33, 37, 41;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb: 33, 37, 41;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: #0d6efd;--bs-link-color-rgb: 13, 110, 253;--bs-link-decoration: underline;--bs-link-hover-color: rgb(10.4, 88, 202.4);--bs-link-hover-color-rgb: 10, 88, 202;--bs-code-color: #d63384;--bs-highlight-color: #212529;--bs-highlight-bg: rgb(255, 242.6, 205.4);--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, 0.175);--bs-border-radius: 0.375rem;--bs-border-radius-sm: 0.25rem;--bs-border-radius-lg: 0.5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width: 0.25rem;--bs-focus-ring-opacity: 0.25;--bs-focus-ring-color: rgba(13, 110, 253, 0.25);--bs-form-valid-color: #198754;--bs-form-valid-border-color: #198754;--bs-form-invalid-color: #dc3545;--bs-form-invalid-border-color: #dc3545;}.svelte-q2pihy,
9
- .svelte-q2pihy::before,
10
- .svelte-q2pihy::after {box-sizing:border-box;}
8
+ */:host {--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgb(5.2, 44, 101.2);--bs-secondary-text-emphasis: rgb(43.2, 46.8, 50);--bs-success-text-emphasis: rgb(10, 54, 33.6);--bs-info-text-emphasis: rgb(5.2, 80.8, 96);--bs-warning-text-emphasis: rgb(102, 77.2, 2.8);--bs-danger-text-emphasis: rgb(88, 21.2, 27.6);--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgb(206.6, 226, 254.6);--bs-secondary-bg-subtle: rgb(225.6, 227.4, 229);--bs-success-bg-subtle: rgb(209, 231, 220.8);--bs-info-bg-subtle: rgb(206.6, 244.4, 252);--bs-warning-bg-subtle: rgb(255, 242.6, 205.4);--bs-danger-bg-subtle: rgb(248, 214.6, 217.8);--bs-light-bg-subtle: rgb(251.5, 252, 252.5);--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgb(158.2, 197, 254.2);--bs-secondary-border-subtle: rgb(196.2, 199.8, 203);--bs-success-border-subtle: rgb(163, 207, 186.6);--bs-info-border-subtle: rgb(158.2, 233.8, 249);--bs-warning-border-subtle: rgb(255, 230.2, 155.8);--bs-danger-border-subtle: rgb(241, 174.2, 180.6);--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg: #fff;--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb: 33, 37, 41;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb: 33, 37, 41;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: #0d6efd;--bs-link-color-rgb: 13, 110, 253;--bs-link-decoration: underline;--bs-link-hover-color: rgb(10.4, 88, 202.4);--bs-link-hover-color-rgb: 10, 88, 202;--bs-code-color: #d63384;--bs-highlight-color: #212529;--bs-highlight-bg: rgb(255, 242.6, 205.4);--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, 0.175);--bs-border-radius: 0.375rem;--bs-border-radius-sm: 0.25rem;--bs-border-radius-lg: 0.5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width: 0.25rem;--bs-focus-ring-opacity: 0.25;--bs-focus-ring-color: rgba(13, 110, 253, 0.25);--bs-form-valid-color: #198754;--bs-form-valid-border-color: #198754;--bs-form-invalid-color: #dc3545;--bs-form-invalid-border-color: #dc3545;}.svelte-tr0h8x,
9
+ .svelte-tr0h8x::before,
10
+ .svelte-tr0h8x::after {box-sizing:border-box;}
11
11
  @media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
12
12
  }
13
13
  @media (min-width: 1200px) {
@@ -17,15 +17,15 @@
17
17
  @media (min-width: 1200px) {
18
18
  }
19
19
  @media (min-width: 1200px) {
20
- }.svelte-q2pihy::-moz-focus-inner {padding:0;border-style:none;}
20
+ }.svelte-tr0h8x::-moz-focus-inner {padding:0;border-style:none;}
21
21
  @media (min-width: 1200px) {
22
- }.svelte-q2pihy::-webkit-datetime-edit-fields-wrapper,
23
- .svelte-q2pihy::-webkit-datetime-edit-text,
24
- .svelte-q2pihy::-webkit-datetime-edit-minute,
25
- .svelte-q2pihy::-webkit-datetime-edit-hour-field,
26
- .svelte-q2pihy::-webkit-datetime-edit-day-field,
27
- .svelte-q2pihy::-webkit-datetime-edit-month-field,
28
- .svelte-q2pihy::-webkit-datetime-edit-year-field {padding:0;}.svelte-q2pihy::-webkit-inner-spin-button {height:auto;}
22
+ }.svelte-tr0h8x::-webkit-datetime-edit-fields-wrapper,
23
+ .svelte-tr0h8x::-webkit-datetime-edit-text,
24
+ .svelte-tr0h8x::-webkit-datetime-edit-minute,
25
+ .svelte-tr0h8x::-webkit-datetime-edit-hour-field,
26
+ .svelte-tr0h8x::-webkit-datetime-edit-day-field,
27
+ .svelte-tr0h8x::-webkit-datetime-edit-month-field,
28
+ .svelte-tr0h8x::-webkit-datetime-edit-year-field {padding:0;}.svelte-tr0h8x::-webkit-inner-spin-button {height:auto;}
29
29
  /* rtl:raw:
30
30
  [type="tel"],
31
31
  [type="url"],
@@ -33,8 +33,8 @@
33
33
  [type="number"] {
34
34
  direction: ltr;
35
35
  }
36
- */.svelte-q2pihy::-webkit-search-decoration {-webkit-appearance:none;}.svelte-q2pihy::-webkit-color-swatch-wrapper {padding:0;}.svelte-q2pihy::file-selector-button {font:inherit;-webkit-appearance:button;}
37
- .container-fluid.svelte-q2pihy {--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-right:auto;margin-left:auto;}
36
+ */.svelte-tr0h8x::-webkit-search-decoration {-webkit-appearance:none;}.svelte-tr0h8x::-webkit-color-swatch-wrapper {padding:0;}.svelte-tr0h8x::file-selector-button {font:inherit;-webkit-appearance:button;}
37
+ .container-fluid.svelte-tr0h8x {--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-right:auto;margin-left:auto;}
38
38
  @media (min-width: 576px) {
39
39
  }
40
40
  @media (min-width: 768px) {
@@ -44,7 +44,7 @@
44
44
  @media (min-width: 1200px) {
45
45
  }
46
46
  @media (min-width: 1400px) {
47
- }:host {--bs-breakpoint-xs: 0;--bs-breakpoint-sm: 576px;--bs-breakpoint-md: 768px;--bs-breakpoint-lg: 992px;--bs-breakpoint-xl: 1200px;--bs-breakpoint-xxl: 1400px;}.row.svelte-q2pihy {--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-0.5 * var(--bs-gutter-x));margin-left:calc(-0.5 * var(--bs-gutter-x));}.row.svelte-q2pihy > :where(.svelte-q2pihy) {flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-top:var(--bs-gutter-y);}.col-6.svelte-q2pihy {flex:0 0 auto;width:50%;}.col-12.svelte-q2pihy {flex:0 0 auto;width:100%;}
47
+ }:host {--bs-breakpoint-xs: 0;--bs-breakpoint-sm: 576px;--bs-breakpoint-md: 768px;--bs-breakpoint-lg: 992px;--bs-breakpoint-xl: 1200px;--bs-breakpoint-xxl: 1400px;}.row.svelte-tr0h8x {--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-0.5 * var(--bs-gutter-x));margin-left:calc(-0.5 * var(--bs-gutter-x));}.row.svelte-tr0h8x > :where(.svelte-tr0h8x) {flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-top:var(--bs-gutter-y);}.col-6.svelte-tr0h8x {flex:0 0 auto;width:50%;}.col-12.svelte-tr0h8x {flex:0 0 auto;width:100%;}
48
48
  @media (min-width: 576px) {
49
49
  }
50
50
  @media (min-width: 768px) {
@@ -54,11 +54,11 @@
54
54
  @media (min-width: 1200px) {
55
55
  }
56
56
  @media (min-width: 1400px) {
57
- }.form-control.svelte-q2pihy {display:block;width:100%;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
58
- @media (prefers-reduced-motion: reduce) {.form-control.svelte-q2pihy {transition:none;}
59
- }.form-control.svelte-q2pihy:focus {color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:rgb(134, 182.5, 254);outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);}.form-control.svelte-q2pihy::-webkit-date-and-time-value {min-width:85px;height:1.5em;margin:0;}.form-control.svelte-q2pihy::-webkit-datetime-edit {display:block;padding:0;}.form-control.svelte-q2pihy::placeholder {color:var(--bs-secondary-color);opacity:1;}.form-control.svelte-q2pihy:disabled {background-color:var(--bs-secondary-bg);opacity:1;}.form-control.svelte-q2pihy::file-selector-button {padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;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;}
60
- @media (prefers-reduced-motion: reduce) {.form-control.svelte-q2pihy::file-selector-button {transition:none;}
61
- }.form-control.svelte-q2pihy:hover:not(:disabled):not([readonly])::file-selector-button {background-color:var(--bs-secondary-bg);}
57
+ }.form-control.svelte-tr0h8x {display:block;width:100%;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
58
+ @media (prefers-reduced-motion: reduce) {.form-control.svelte-tr0h8x {transition:none;}
59
+ }.form-control.svelte-tr0h8x:focus {color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:rgb(134, 182.5, 254);outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);}.form-control.svelte-tr0h8x::-webkit-date-and-time-value {min-width:85px;height:1.5em;margin:0;}.form-control.svelte-tr0h8x::-webkit-datetime-edit {display:block;padding:0;}.form-control.svelte-tr0h8x::placeholder {color:var(--bs-secondary-color);opacity:1;}.form-control.svelte-tr0h8x:disabled {background-color:var(--bs-secondary-bg);opacity:1;}.form-control.svelte-tr0h8x::file-selector-button {padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;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;}
60
+ @media (prefers-reduced-motion: reduce) {.form-control.svelte-tr0h8x::file-selector-button {transition:none;}
61
+ }.form-control.svelte-tr0h8x:hover:not(:disabled):not([readonly])::file-selector-button {background-color:var(--bs-secondary-bg);}
62
62
  @media (prefers-reduced-motion: reduce) {
63
63
  }
64
64
  @media (prefers-reduced-motion: reduce) {
@@ -68,15 +68,15 @@
68
68
  @media (prefers-reduced-motion: reduce) {
69
69
  }
70
70
  @media (prefers-reduced-motion: reduce) {
71
- }.invalid-feedback.svelte-q2pihy {display:none;width:100%;margin-top:0.25rem;font-size:0.875em;color:var(--bs-form-invalid-color);}
71
+ }.invalid-feedback.svelte-tr0h8x {display:none;width:100%;margin-top:0.25rem;font-size:0.875em;color:var(--bs-form-invalid-color);}
72
72
  @media (prefers-reduced-motion: reduce) {
73
73
  }
74
- @keyframes svelte-q2pihy-placeholder-glow {
74
+ @keyframes svelte-tr0h8x-placeholder-glow {
75
75
  50% {
76
76
  opacity: 0.2;
77
77
  }
78
78
  }
79
- @keyframes svelte-q2pihy-placeholder-wave {
79
+ @keyframes svelte-tr0h8x-placeholder-wave {
80
80
  100% {
81
81
  mask-position: -200% 0%;
82
82
  }
@@ -92,13 +92,5 @@
92
92
  @media (min-width: 1200px) {
93
93
  }
94
94
  @media (min-width: 1400px) {
95
- }:host {font-family:"Roboto", sans-serif;min-height:400px;width:auto;}hb-input-number.svelte-q2pihy {width:100%;display:block;}.coord.svelte-q2pihy {margin:10px 0px 0px 0px;}.form-control.svelte-q2pihy {padding:0px;}`};function Tr(e,t){Mt(t,!0),Hn(e,oi);/**
96
- * Svelte Input Coords WebComponent
97
- * =====================
98
- *
99
- * @contributors: Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)
100
- *
101
- * @license: MIT License
102
- *
103
- */let r=We(t,"schemaentry"),n=We(t,"show_validation",7,"no"),i=We(t,"id",7,void 0),s=We(t,"i18nlang"),o=q(le(new Ue.LanguageTranslator({dictionary:xr,lang:s()}))),a=q(void 0),l=q(0),u=q(0),f=hn(()=>r()?r()?.required?!!(b(l)&&b(u)):!0:!1),h=q(0),c=q(le([0,0]));function d(p,H){t.$$host.dispatchEvent(new CustomEvent(p,{detail:H}))}Qt(()=>{if(typeof r()=="string")try{r(JSON.parse(r())),r()?.value?.lat&&r()?.value?.lon&&(y(l,r().value.lat,!0),y(u,r().value.lon,!0)),r()?.id&&i(r().id),y(h,b(h)||r()?.params?.zoom||14,!0),y(c,b(c)?.[0]?b(c):r()?.params?.center||[0,0],!0)}catch{}b(o)&&s()&&b(o).lang&&b(o).lang!==s()&&y(o,new Ue.LanguageTranslator({dictionary:xr,lang:s()}),!0),console.log("center",b(c)),console.log("zoom",b(h))}),Qt(()=>{console.log("setval",b(a)),d("setVal",{value:b(a),valid:b(f),id:i()})}),Ue.addComponent({repoName:"@htmlbricks/hb-input-number",version:kr.version}),Ue.addComponent({repoName:"@htmlbricks/hb-map",version:kr.version});function v(p,H){console.log("changeCoords",p,b(a)),y(p==="lat"?l:u,H||0,!0),y(a,{lat:b(l),lon:b(u)},!0),d("setVal",{value:b(a),valid:b(f),id:i()})}var k={get schemaentry(){return r()},set schemaentry(p){r(p),ke()},get show_validation(){return n()},set show_validation(p="no"){n(p),ke()},get id(){return i()},set id(p=void 0){i(p),ke()},get i18nlang(){return s()},set i18nlang(p){s(p),ke()}},D=si(),I=V(D),N=V(I),Ee=V(N),j=V(Ee);Jn(j,"width: 100%; height: 100%;"),J(j,"center",JSON.stringify([0,0])),B(()=>J(j,"zoom",b(h))),B(()=>J(j,"source",JSON.stringify(r()?.params?.source?r()?.params?.source:{type:"osm"}))),B(()=>J(j,"options",JSON.stringify(r()?.params?.options?r()?.params?.options:{centerFromGeometries:!0}))),B(()=>J(j,"data",JSON.stringify([{marker:{lngLat:[b(a)?.lon||0,b(a)?.lat||0]}}]))),mt(j,1,"svelte-q2pihy"),F(Ee);var He=qe(Ee,2),wt=V(He),Nr=V(wt),qr=V(Nr),Ye=qe(qr);B(()=>J(Ye,"schemaentry",JSON.stringify({id:"lat",value:b(l)||0,label:r()?.params?.latitudeLabel||b(o).translateWord("latitude"),placeholder:r()?.params?.latitudePlaceholder||b(o).translateWord("latitudePlaceholder"),required:!0}))),B(()=>J(Ye,"show_validation",n())),mt(Ye,1,"svelte-q2pihy"),F(Nr),F(wt);var $t=qe(wt,2),Cr=V($t),Lr=V(Cr),ze=qe(Lr);B(()=>J(ze,"schemaentry",JSON.stringify({id:"lon",value:b(u)||0,label:r()?.params?.longitudeLabel||b(o).translateWord("longitude"),placeholder:r()?.params?.longitudePlaceholder||b(o).translateWord("longitudePlaceholder"),required:!0}))),B(()=>J(ze,"show_validation",n())),mt(ze,1,"svelte-q2pihy"),F(Cr),F($t);var ai=qe($t,2);{var li=p=>{var H=ii(),ui=V(H,!0);F(H),B(()=>gt(ui,r().validationTip)),_t(p,H)};Un(ai,p=>{r()?.validationTip&&n()==="yes"&&p(li)})}return F(He),F(N),F(I),F(D),B((p,H)=>{gt(qr,`${p??""}:`),gt(Lr,`${H??""}: `)},[()=>b(o).translateWord("latitude"),()=>b(o).translateWord("longitude")]),bt("pointClickCoordinates",j,p=>{console.log("pointClickCoordinates",p.detail),y(l,p.detail.coordinates.latitude,!0),y(u,p.detail.coordinates.longitude,!0),y(h,p.detail.zoom,!0)}),bt("setVal",Ye,p=>{v("lat",p.detail.value)}),bt("setVal",ze,p=>{v("lon",p.detail.value)}),_t(e,D),Dt(k)}customElements.define("hb-input-coords",ri(Tr,{schemaentry:{},show_validation:{},id:{},i18nlang:{}},[],[],!0)),Et.Component=Tr,Object.defineProperty(Et,Symbol.toStringTag,{value:"Module"})})(this["input-coords"]=this["input-coords"]||{});
95
+ }:host {font-family:"Roboto", sans-serif;min-height:400px;width:auto;}hb-input-number.svelte-tr0h8x {width:100%;display:block;}.coord.svelte-tr0h8x {margin:10px 0px 0px 0px;}.form-control.svelte-tr0h8x {padding:0px;}`};function Rr(e,t){Ft(t,!0),Qn(e,vi);let r=et(t,"schemaentry"),n=et(t,"show_validation",7,"no"),i=et(t,"id",7,void 0),s=et(t,"i18nlang"),o=L(he(new rt.LanguageTranslator({dictionary:Ar,lang:s()}))),a=L(void 0),l=L(0),f=L(0),c=En(()=>r()?r()?.required?!!(v(l)&&v(f)):!0:!1),h=L(0),u=L(he([0,0]));function d(p,G){t.$$host.dispatchEvent(new CustomEvent(p,{detail:G}))}nr(()=>{if(typeof r()=="string")try{r(JSON.parse(r())),r()?.value?.lat&&r()?.value?.lon&&(y(l,r().value.lat,!0),y(f,r().value.lon,!0)),r()?.id&&i(r().id),y(h,v(h)||r()?.params?.zoom||14,!0),y(u,v(u)?.[0]?v(u):r()?.params?.center||[0,0],!0)}catch{}v(o)&&s()&&v(o).lang&&v(o).lang!==s()&&y(o,new rt.LanguageTranslator({dictionary:Ar,lang:s()}),!0),console.log("center",v(u)),console.log("zoom",v(h))}),nr(()=>{console.log("setval",v(a)),d("setVal",{value:v(a),valid:v(c),id:i()})}),rt.addComponent({repoName:"@htmlbricks/hb-input-number",version:Or.version}),rt.addComponent({repoName:"@htmlbricks/hb-map",version:Or.version});function g(p,G){console.log("changeCoords",p,v(a)),y(p==="lat"?l:f,G||0,!0),y(a,{lat:v(l),lon:v(f)},!0),d("setVal",{value:v(a),valid:v(c),id:i()})}var F={get schemaentry(){return r()},set schemaentry(p){r(p),Le()},get show_validation(){return n()},set show_validation(p="no"){n(p),Le()},get id(){return i()},set id(p=void 0){i(p),Le()},get i18nlang(){return s()},set i18nlang(p){s(p),Le()}},q=hi(),qe=z(q),Te=z(qe),Et=z(Te),fe=z(Et);ri(fe,"width: 100%; height: 100%;"),re(fe,"center",JSON.stringify([0,0])),Y(()=>re(fe,"zoom",v(h))),Y(()=>re(fe,"source",JSON.stringify(r()?.params?.source?r()?.params?.source:{type:"osm"}))),Y(()=>re(fe,"options",JSON.stringify(r()?.params?.options?r()?.params?.options:{centerFromGeometries:!0}))),Y(()=>re(fe,"data",JSON.stringify([{marker:{lngLat:[v(a)?.lon||0,v(a)?.lat||0]}}]))),xt(fe,1,"svelte-tr0h8x"),W(Et);var Pr=Pe(Et,2),kt=z(Pr),Mr=z(kt),Dr=z(Mr),nt=Pe(Dr);Y(()=>re(nt,"schemaentry",JSON.stringify({id:"lat",value:v(l)||0,label:r()?.params?.latitudeLabel||v(o).translateWord("latitude"),placeholder:r()?.params?.latitudePlaceholder||v(o).translateWord("latitudePlaceholder"),required:!0}))),Y(()=>re(nt,"show_validation",n())),xt(nt,1,"svelte-tr0h8x"),W(Mr),W(kt);var Tt=Pe(kt,2),Ir=z(Tt),jr=z(Ir),it=Pe(jr);Y(()=>re(it,"schemaentry",JSON.stringify({id:"lon",value:v(f)||0,label:r()?.params?.longitudeLabel||v(o).translateWord("longitude"),placeholder:r()?.params?.longitudePlaceholder||v(o).translateWord("longitudePlaceholder"),required:!0}))),Y(()=>re(it,"show_validation",n())),xt(it,1,"svelte-tr0h8x"),W(Ir),W(Tt);var bi=Pe(Tt,2);{var _i=p=>{var G=di(),pi=z(G,!0);W(G),Y(()=>wt(pi,r().validationTip)),mt(p,G)};Zn(bi,p=>{r()?.validationTip&&n()==="yes"&&p(_i)})}return W(Pr),W(Te),W(qe),W(q),Y((p,G)=>{wt(Dr,`${p??""}:`),wt(jr,`${G??""}: `)},[()=>v(o).translateWord("latitude"),()=>v(o).translateWord("longitude")]),gt("pointClickCoordinates",fe,p=>{console.log("pointClickCoordinates",p.detail),y(l,p.detail.coordinates.latitude,!0),y(f,p.detail.coordinates.longitude,!0),y(h,p.detail.zoom,!0)}),gt("setVal",nt,p=>{g("lat",p.detail.value)}),gt("setVal",it,p=>{g("lon",p.detail.value)}),mt(e,q),qt(F)}customElements.define("hb-input-coords",ui(Rr,{schemaentry:{},show_validation:{},id:{},i18nlang:{}},[],[],!0)),Nt.Component=Rr,Object.defineProperty(Nt,Symbol.toStringTag,{value:"Module"})})(this["input-coords"]=this["input-coords"]||{});
104
96
  //# sourceMappingURL=main.iife.js.map