@htmlbricks/hb-input-coords 0.66.5 → 0.66.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,6 @@
1
- (function(Rt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Kr=1,Xr=2,Ot="[",Dt="[!",Mt="[?",Pt="]",Te={},S=Symbol(),It="http://www.w3.org/1999/xhtml",Zr=!1;var Qr=Array.isArray,en=Array.prototype.indexOf,Ne=Array.prototype.includes,tn=Array.from,qe=Object.keys,He=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,rn=Object.getOwnPropertyDescriptors,nn=Object.prototype,sn=Array.prototype,Ft=Object.getPrototypeOf,jt=Object.isExtensible;const ln=()=>{};function on(e){for(var t=0;t<e.length;t++)e[t]()}function zt(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const N=2,Ae=4,We=8,Vt=1<<24,se=16,H=32,le=64,st=128,P=512,T=1024,A=2048,W=4096,Y=8192,V=16384,oe=32768,Bt=1<<25,Le=65536,qt=1<<17,an=1<<18,me=1<<19,fn=1<<20,ge=65536,lt=1<<21,ot=1<<22,ae=1<<23,at=Symbol("$state"),un=Symbol("legacy props"),cn=Symbol(""),Q=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},dn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),ft=3,Ye=8;function hn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function vn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function _n(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function pn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function mn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function gn(){throw new Error("https://svelte.dev/e/hydration_failed")}function bn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function wn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function yn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function $n(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ue(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function xn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function fe(e){w=e}let $;function U(e){if(e===null)throw Ue(),Te;return $=e}function ut(){return U(he($))}function J(e){if(w){if(he($)!==null)throw Ue(),Te;$=e}}function En(e=1){if(w){for(var t=e,r=$;t--;)r=he(r);$=r}}function Ht(e=!0){for(var t=0,r=$;;){if(r.nodeType===Ye){var n=r.data;if(n===Pt){if(t===0)return r;t-=1}else(n===Ot||n===Dt||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=he(r);e&&r.remove(),r=i}}function kn(e){if(!e||e.nodeType!==Ye)throw Ue(),Te;return e.data}function Wt(e){return e===this.v}function Tn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Nn(e){return!Tn(e,this.v)}let Sn=!1,I=null;function Ce(e){I=e}function Yt(e,t=!1,r){I={p:I,i:!1,c:null,e:null,s:e,x:null,r:m,l:null}}function Ut(e){var t=I,r=t.e;if(r!==null){t.e=null;for(var n of r)mr(n)}return e!==void 0&&(t.x=e),t.i=!0,I=t.p,e??{}}function Jt(){return!0}let be=[];function Gt(){var e=be;be=[],on(e)}function we(e){if(be.length===0&&!De){var t=be;queueMicrotask(()=>{t===be&&Gt()})}be.push(e)}function An(){for(;be.length>0;)Gt()}function Kt(e){var t=m;if(t===null)return p.f|=ae,e;if((t.f&oe)===0&&(t.f&Ae)===0)throw e;ue(e,t)}function ue(e,t){for(;t!==null;){if((t.f&st)!==0){if((t.f&oe)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const Ln=-7169;function x(e,t){e.f=e.f&Ln|t}function ct(e){(e.f&P)!==0||e.deps===null?x(e,T):x(e,W)}function Xt(e){if(e!==null)for(const t of e)(t.f&N)===0||(t.f&ge)===0||(t.f^=ge,Xt(t.deps))}function Zt(e,t,r){(e.f&A)!==0?t.add(e):(e.f&W)!==0&&r.add(e),Xt(e.deps),x(e,T)}const ce=new Set;let y=null,B=null,dt=null,De=!1,ht=!1,Re=null,Je=null;var Qt=0;let Cn=1;class ee{id=Cn++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#i=new Map;#s=null;#n=[];#l=new Set;#o=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const n of this.#f)for(const i of n.#i.keys()){for(var t=!1,r=i;r.parent!==null;){if(this.#a.has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#a.get(t);if(r){this.#a.delete(t);for(var n of r.d)x(n,A),this.schedule(n);for(n of r.m)x(n,W),this.schedule(n)}}#h(){if(Qt++>1e3&&(ce.delete(this),Rn()),!this.#d()){for(const o of this.#l)this.#o.delete(o),x(o,A),this.schedule(o);for(const o of this.#o)x(o,W),this.schedule(o)}const t=this.#n;this.#n=[],this.apply();var r=Re=[],n=[],i=Je=[];for(const o of t)try{this.#u(o,r,n)}catch(a){throw ir(o),a}if(y=null,i.length>0){var s=ee.ensure();for(const o of i)s.schedule(o)}if(Re=null,Je=null,this.#d()||this.#v()){this.#_(n),this.#_(r);for(const[o,a]of this.#a)nr(o,a)}else{this.#t.size===0&&ce.delete(this),this.#l.clear(),this.#o.clear();for(const o of this.#e)o(this);this.#e.clear(),er(n),er(r),this.#s?.resolve()}var l=y;if(this.#n.length>0){const o=l??=this;o.#n.push(...this.#n.filter(a=>!o.#n.includes(a)))}l!==null&&(ce.add(l),l.#h()),ce.has(this)||this.#p()}#u(t,r,n){t.f^=T;for(var i=t.first;i!==null;){var s=i.f,l=(s&(H|le))!==0,o=l&&(s&T)!==0,a=o||(s&Y)!==0||this.#a.has(i);if(!a&&i.fn!==null){l?i.f^=T:(s&Ae)!==0?r.push(i):Ve(i)&&((s&se)!==0&&this.#o.add(i),Oe(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#_(t){for(var r=0;r<t.length;r+=1)Zt(t[r],this.#l,this.#o)}capture(t,r,n=!1){r!==S&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&ae)===0&&(this.current.set(t,[t.v,n]),B?.set(t,t.v))}activate(){y=this}deactivate(){y=null,B=null}flush(){try{ht=!0,y=this,this.#h()}finally{Qt=0,dt=null,Re=null,Je=null,ht=!1,y=null,B=null,de.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),ce.delete(this)}#p(){for(const f of ce){var t=f.id<this.id,r=[];for(const[u,[d,c]]of this.current){if(f.current.has(u)){var n=f.current.get(u)[0];if(t&&d!==n)f.current.set(u,[d,c]);else continue}r.push(u)}var i=[...f.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&f.discard();else if(r.length>0){f.activate();var s=new Set,l=new Map;for(var o of r)tr(o,i,s,l);if(f.#n.length>0){f.apply();for(var a of f.#n)f.#u(a,[],[]);f.#n=[]}f.deactivate()}}for(const f of ce)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#d()&&(f.activate(),f.#h()))}increment(t,r){let n=this.#t.get(r)??0;if(this.#t.set(r,n+1),t){let i=this.#i.get(r)??0;this.#i.set(r,i+1)}}decrement(t,r,n){let i=this.#t.get(r)??0;if(i===1?this.#t.delete(r):this.#t.set(r,i-1),t){let s=this.#i.get(r)??0;s===1?this.#i.delete(r):this.#i.set(r,s-1)}this.#c||n||(this.#c=!0,we(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,r){for(const n of t)this.#l.add(n);for(const n of r)this.#o.add(n);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#s??=zt()).promise}static ensure(){if(y===null){const t=y=new ee;ht||(ce.add(y),De||we(()=>{y===t&&t.flush()}))}return y}apply(){{B=null;return}}schedule(t){if(dt=t,t.b?.is_pending&&(t.f&(Ae|We|Vt))!==0&&(t.f&oe)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(Re!==null&&r===m&&(p===null||(p.f&N)===0))return;if((n&(le|H))!==0){if((n&T)===0)return;r.f^=T}}this.#n.push(r)}}function Me(e){var t=De;De=!0;try{for(var r;;){if(An(),y===null)return r;y.flush()}}finally{De=t}}function Rn(){try{mn()}catch(e){ue(e,dt)}}let te=null;function er(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(V|Y))===0&&Ve(n)&&(te=new Set,Oe(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&yr(n),te?.size>0)){de.clear();for(const i of te){if((i.f&(V|Y))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)te.has(l)&&(te.delete(l),s.push(l)),l=l.parent;for(let o=s.length-1;o>=0;o--){const a=s[o];(a.f&(V|Y))===0&&Oe(a)}}te.clear()}}te=null}}function tr(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&N)!==0?tr(i,t,r,n):(s&(ot|se))!==0&&(s&A)===0&&rr(i,t,n)&&(x(i,A),vt(i))}}function rr(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(Ne.call(t,i))return!0;if((i.f&N)!==0&&rr(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function vt(e){y.schedule(e)}function nr(e,t){if(!((e.f&H)!==0&&(e.f&T)!==0)){(e.f&A)!==0?t.d.push(e):(e.f&W)!==0&&t.m.push(e),x(e,T);for(var r=e.first;r!==null;)nr(r,t),r=r.next}}function ir(e){x(e,T);for(var t=e.first;t!==null;)ir(t),t=t.next}function On(e){let t=0,r=Pe(0),n;return()=>{yt()&&(_(r),gr(()=>(t===0&&(n=si(()=>e(()=>Ie(r)))),t+=1,()=>{we(()=>{t-=1,t===0&&(n?.(),n=void 0,Ie(r))})})))}}var Dn=Le|me;function Mn(e,t,r,n){new Pn(e,t,r,n)}class Pn{parent;is_pending=!1;transform_error;#e;#r=w?$:null;#t;#i;#s;#n=null;#l=null;#o=null;#a=null;#c=0;#f=0;#d=!1;#v=new Set;#h=new Set;#u=null;#_=On(()=>(this.#u=Pe(this.#c),()=>{this.#u=null}));constructor(t,r,n,i){this.#e=t,this.#t=r,this.#i=s=>{var l=m;l.b=this,l.f|=st,n(s)},this.parent=m.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=br(()=>{if(w){const s=this.#r;ut();const l=s.data===Dt;if(s.data.startsWith(Mt)){const a=JSON.parse(s.data.slice(Mt.length));this.#y(a)}else l?this.#$():this.#p()}else this.#b()},Dn),w&&(this.#e=$)}#p(){try{this.#n=re(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const r=this.#t.failed;r&&(this.#o=re(()=>{r(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=re(()=>t(this.#e)),we(()=>{var r=this.#a=document.createDocumentFragment(),n=$e();r.append(n),this.#n=this.#g(()=>re(()=>this.#i(n))),this.#f===0&&(this.#e.before(r),this.#a=null,ze(this.#l,()=>{this.#l=null}),this.#m(y))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#n=re(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();Er(this.#n,t);const r=this.#t.pending;this.#l=re(()=>r(this.#e))}else this.#m(y)}catch(r){this.error(r)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){Zt(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#g(t){var r=m,n=p,i=I;F(this.#s),R(this.#s),Ce(this.#s.ctx);try{return ee.ensure(),t()}catch(s){return Kt(s),null}finally{F(r),R(n),Ce(i)}}#w(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,r);return}this.#f+=t,this.#f===0&&(this.#m(r),this.#l&&ze(this.#l,()=>{this.#l=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,r){this.#w(t,r),this.#c+=t,!(!this.#u||this.#d)&&(this.#d=!0,we(()=>{this.#d=!1,this.#u&&Ke(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),_(this.#u)}error(t){var r=this.#t.onerror;let n=this.#t.failed;if(!r&&!n)throw t;this.#n&&(C(this.#n),this.#n=null),this.#l&&(C(this.#l),this.#l=null),this.#o&&(C(this.#o),this.#o=null),w&&(U(this.#r),En(),U(Ht()));var i=!1,s=!1;const l=()=>{if(i){xn();return}i=!0,s&&$n(),this.#o!==null&&ze(this.#o,()=>{this.#o=null}),this.#g(()=>{this.#b()})},o=a=>{try{s=!0,r?.(a,l),s=!1}catch(f){ue(f,this.#s&&this.#s.parent)}n&&(this.#o=this.#g(()=>{try{return re(()=>{var f=m;f.b=this,f.f|=st,n(this.#e,()=>a,()=>l)})}catch(f){return ue(f,this.#s.parent),null}}))};we(()=>{var a;try{a=this.transform_error(t)}catch(f){ue(f,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(o,f=>ue(f,this.#s&&this.#s.parent)):o(a)})}}function In(e,t,r,n){const i=_t;var s=e.filter(c=>!c.settled);if(r.length===0&&s.length===0){n(t.map(i));return}var l=m,o=Fn(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function f(c){o();try{n(c)}catch(v){(l.f&V)===0&&ue(v,l)}Ge()}if(r.length===0){a.then(()=>f(t.map(i)));return}var u=sr();function d(){Promise.all(r.map(c=>jn(c))).then(c=>f([...t.map(i),...c])).catch(c=>ue(c,l)).finally(()=>u())}a?a.then(()=>{o(),d(),Ge()}):d()}function Fn(){var e=m,t=p,r=I,n=y;return function(s=!0){F(e),R(t),Ce(r),s&&(e.f&V)===0&&(n?.activate(),n?.apply())}}function Ge(e=!0){F(null),R(null),Ce(null),e&&y?.deactivate()}function sr(){var e=m,t=e.b,r=y,n=t.is_rendered();return t.update_pending_count(1,r),r.increment(n,e),(i=!1)=>{t.update_pending_count(-1,r),r.decrement(n,e,i)}}function _t(e){var t=N|A,r=p!==null&&(p.f&N)!==0?p:null;return m!==null&&(m.f|=me),{ctx:I,deps:null,effects:null,equals:Wt,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:r??m,ac:null}}function jn(e,t,r){let n=m;n===null&&hn();var i=void 0,s=Pe(S),l=!p,o=new Map;return Qn(()=>{var a=m,f=zt();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Ge)}catch(v){f.reject(v),Ge()}var u=y;if(l){if((a.f&oe)!==0)var d=sr();if(n.b.is_rendered())o.get(u)?.reject(Q),o.delete(u);else{for(const v of o.values())v.reject(Q);o.clear()}o.set(u,f)}const c=(v,h=void 0)=>{if(d){var b=h===Q;d(b)}if(!(h===Q||(a.f&V)!==0)){if(u.activate(),h)s.f|=ae,Ke(s,h);else{(s.f&ae)!==0&&(s.f^=ae),Ke(s,v);for(const[k,D]of o){if(o.delete(k),k===u)break;D.reject(Q)}}u.deactivate()}};f.promise.then(c,v=>c(null,v||"unknown"))}),_r(()=>{for(const a of o.values())a.reject(Q)}),new Promise(a=>{function f(u){function d(){u===i?a(s):f(i)}u.then(d,d)}f(i)})}function zn(e){const t=_t(e);return Tr(t),t}function Vn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)C(t[r])}}function Bn(e){for(var t=e.parent;t!==null;){if((t.f&N)===0)return(t.f&V)===0?t:null;t=t.parent}return null}function pt(e){var t,r=m;F(Bn(e));try{e.f&=~ge,Vn(e),t=Cr(e)}finally{F(r)}return t}function lr(e){var t=e.v,r=pt(e);if(!e.equals(r)&&(e.wv=Ar(),(!y?.is_fork||e.deps===null)&&(e.v=r,y?.capture(e,t,!0),e.deps===null))){x(e,T);return}ve||(B!==null?(yt()||y?.is_fork)&&B.set(e,r):ct(e))}function qn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Q),t.teardown=ln,t.ac=null,Be(t,0),$t(t))}function or(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Oe(t)}let mt=new Set;const de=new Map;let ar=!1;function Pe(e,t){var r={f:0,v:e,reactions:null,equals:Wt,rv:0,wv:0};return r}function L(e,t){const r=Pe(e);return Tr(r),r}function Hn(e,t=!1,r=!0){const n=Pe(e);return t||(n.equals=Nn),n}function E(e,t,r=!1){p!==null&&(!q||(p.f&qt)!==0)&&Jt()&&(p.f&(N|se|ot|qt))!==0&&(j===null||!Ne.call(j,e))&&yn();let n=r?ye(t):t;return Ke(e,n,Je)}function Ke(e,t,r=null){if(!e.equals(t)){var n=e.v;ve?de.set(e,t):de.set(e,n),e.v=t;var i=ee.ensure();if(i.capture(e,n),(e.f&N)!==0){const s=e;(e.f&A)!==0&&pt(s),B===null&&ct(s)}e.wv=Ar(),fr(e,A,r),m!==null&&(m.f&T)!==0&&(m.f&(H|le))===0&&(z===null?ni([e]):z.push(e)),!i.is_fork&&mt.size>0&&!ar&&Wn()}return t}function Wn(){ar=!1;for(const e of mt)(e.f&T)!==0&&x(e,W),Ve(e)&&Oe(e);mt.clear()}function Ie(e){E(e,e.v+1)}function fr(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,s=0;s<i;s++){var l=n[s],o=l.f,a=(o&A)===0;if(a&&x(l,t),(o&N)!==0){var f=l;B?.delete(f),(o&ge)===0&&(o&P&&(l.f|=ge),fr(f,W,r))}else if(a){var u=l;(o&se)!==0&&te!==null&&te.add(u),r!==null?r.push(u):vt(u)}}}function ye(e){if(typeof e!="object"||e===null||at in e)return e;const t=Ft(e);if(t!==nn&&t!==sn)return e;var r=new Map,n=Qr(e),i=L(0),s=Ee,l=o=>{if(Ee===s)return o();var a=p,f=Ee;R(null),Sr(s);var u=o();return R(a),Sr(f),u};return n&&r.set("length",L(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&bn();var u=r.get(a);return u===void 0?l(()=>{var d=L(f.value);return r.set(a,d),d}):E(u,f.value,!0),!0},deleteProperty(o,a){var f=r.get(a);if(f===void 0){if(a in o){const u=l(()=>L(S));r.set(a,u),Ie(i)}}else E(f,S),Ie(i);return!0},get(o,a,f){if(a===at)return e;var u=r.get(a),d=a in o;if(u===void 0&&(!d||Se(o,a)?.writable)&&(u=l(()=>{var v=ye(d?o[a]:S),h=L(v);return h}),r.set(a,u)),u!==void 0){var c=_(u);return c===S?void 0:c}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var u=r.get(a);u&&(f.value=_(u))}else if(f===void 0){var d=r.get(a),c=d?.v;if(d!==void 0&&c!==S)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(o,a){if(a===at)return!0;var f=r.get(a),u=f!==void 0&&f.v!==S||Reflect.has(o,a);if(f!==void 0||m!==null&&(!u||Se(o,a)?.writable)){f===void 0&&(f=l(()=>{var c=u?ye(o[a]):S,v=L(c);return v}),r.set(a,f));var d=_(f);if(d===S)return!1}return u},set(o,a,f,u){var d=r.get(a),c=a in o;if(n&&a==="length")for(var v=f;v<d.v;v+=1){var h=r.get(v+"");h!==void 0?E(h,S):v in o&&(h=l(()=>L(S)),r.set(v+"",h))}if(d===void 0)(!c||Se(o,a)?.writable)&&(d=l(()=>L(void 0)),E(d,ye(f)),r.set(a,d));else{c=d.v!==S;var b=l(()=>ye(f));E(d,b)}var k=Reflect.getOwnPropertyDescriptor(o,a);if(k?.set&&k.set.call(u,f),!c){if(n&&typeof a=="string"){var D=r.get("length"),ie=Number(a);Number.isInteger(ie)&&ie>=D.v&&E(D,ie+1)}Ie(i)}return!0},ownKeys(o){_(i);var a=Reflect.ownKeys(o).filter(d=>{var c=r.get(d);return c===void 0||c.v!==S});for(var[f,u]of r)u.v!==S&&!(f in o)&&a.push(f);return a},setPrototypeOf(){wn()}})}var ur,cr,dr,hr;function gt(){if(ur===void 0){ur=window,cr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;dr=Se(t,"firstChild").get,hr=Se(t,"nextSibling").get,jt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),jt(r)&&(r.__t=void 0)}}function $e(e=""){return document.createTextNode(e)}function Fe(e){return dr.call(e)}function he(e){return hr.call(e)}function G(e,t){if(!w)return Fe(e);var r=Fe($);if(r===null)r=$.appendChild($e());else if(t&&r.nodeType!==ft){var n=$e();return r?.before(n),U(n),n}return t&&vr(r),U(r),r}function je(e,t=1,r=!1){let n=w?$:e;for(var i;t--;)i=n,n=he(n);if(!w)return n;if(r){if(n?.nodeType!==ft){var s=$e();return n===null?i?.after(s):n.before(s),U(s),s}vr(n)}return U(n),n}function Yn(e){e.textContent=""}function Un(){return!1}function bt(e,t,r){return document.createElementNS(It,e,void 0)}function vr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===ft;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function wt(e){var t=p,r=m;R(null),F(null);try{return e()}finally{R(t),F(r)}}function Jn(e){m===null&&(p===null&&pn(),_n()),ve&&vn()}function Gn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function K(e,t){var r=m;r!==null&&(r.f&Y)!==0&&(e|=Y);var n={ctx:I,deps:null,nodes:null,f:e|A|P,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},i=n;if((e&Ae)!==0)Re!==null?Re.push(n):ee.ensure().schedule(n);else if(t!==null){try{Oe(n)}catch(l){throw C(n),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&me)===0&&(i=i.first,(e&se)!==0&&(e&Le)!==0&&i!==null&&(i.f|=Le))}if(i!==null&&(i.parent=r,r!==null&&Gn(i,r),p!==null&&(p.f&N)!==0&&(e&le)===0)){var s=p;(s.effects??=[]).push(i)}return n}function yt(){return p!==null&&!q}function _r(e){const t=K(We,null);return x(t,T),t.teardown=e,t}function pr(e){Jn();var t=m.f,r=!p&&(t&H)!==0&&(t&oe)===0;if(r){var n=I;(n.e??=[]).push(e)}else return mr(e)}function mr(e){return K(Ae|fn,e)}function Kn(e){ee.ensure();const t=K(le|me,e);return()=>{C(t)}}function Xn(e){ee.ensure();const t=K(le|me,e);return(r={})=>new Promise(n=>{r.outro?ze(t,()=>{C(t),n(void 0)}):(C(t),n(void 0))})}function Zn(e){return K(Ae,e)}function Qn(e){return K(ot|me,e)}function gr(e,t=0){return K(We|t,e)}function X(e,t=[],r=[],n=[]){In(n,t,r,i=>{K(We,()=>e(...i.map(_)))})}function br(e,t=0){var r=K(se|t,e);return r}function re(e){return K(H|me,e)}function wr(e){var t=e.teardown;if(t!==null){const r=ve,n=p;kr(!0),R(null);try{t.call(null)}finally{kr(r),R(n)}}}function $t(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&wt(()=>{i.abort(Q)});var n=r.next;(r.f&le)!==0?r.parent=null:C(r,t),r=n}}function ei(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&H)===0&&C(t),t=r}}function C(e,t=!0){var r=!1;(t||(e.f&an)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(ti(e.nodes.start,e.nodes.end),r=!0),x(e,Bt),$t(e,t&&!r),Be(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();wr(e),e.f^=Bt,e.f|=V;var i=e.parent;i!==null&&i.first!==null&&yr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function ti(e,t){for(;e!==null;){var r=e===t?null:he(e);e.remove(),e=r}}function yr(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 ze(e,t,r=!0){var n=[];$r(e,n,!0);var i=()=>{r&&C(e),t&&t()},s=n.length;if(s>0){var l=()=>--s||i();for(var o of n)o.out(l)}else i()}function $r(e,t,r){if((e.f&Y)===0){e.f^=Y;var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||r)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,l=(i.f&Le)!==0||(i.f&H)!==0&&(e.f&se)!==0;$r(i,t,l?r:!1),i=s}}}function ri(e){xr(e,!0)}function xr(e,t){if((e.f&Y)!==0){e.f^=Y,(e.f&T)===0&&(x(e,A),ee.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Le)!==0||(r.f&H)!==0;xr(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const l of s)(l.is_global||t)&&l.in()}}function Er(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:he(r);t.append(r),r=i}}let Xe=!1,ve=!1;function kr(e){ve=e}let p=null,q=!1;function R(e){p=e}let m=null;function F(e){m=e}let j=null;function Tr(e){p!==null&&(j===null?j=[e]:j.push(e))}let O=null,M=0,z=null;function ni(e){z=e}let Nr=1,xe=0,Ee=xe;function Sr(e){Ee=e}function Ar(){return++Nr}function Ve(e){var t=e.f;if((t&A)!==0)return!0;if(t&N&&(e.f&=~ge),(t&W)!==0){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Ve(s)&&lr(s),s.wv>e.wv)return!0}(t&P)!==0&&B===null&&x(e,T)}return!1}function Lr(e,t,r=!0){var n=e.reactions;if(n!==null&&!(j!==null&&Ne.call(j,e)))for(var i=0;i<n.length;i++){var s=n[i];(s.f&N)!==0?Lr(s,t,!1):t===s&&(r?x(s,A):(s.f&T)!==0&&x(s,W),vt(s))}}function Cr(e){var t=O,r=M,n=z,i=p,s=j,l=I,o=q,a=Ee,f=e.f;O=null,M=0,z=null,p=(f&(H|le))===0?e:null,j=null,Ce(e.ctx),q=!1,Ee=++xe,e.ac!==null&&(wt(()=>{e.ac.abort(Q)}),e.ac=null);try{e.f|=lt;var u=e.fn,d=u();e.f|=oe;var c=e.deps,v=y?.is_fork;if(O!==null){var h;if(v||Be(e,M),c!==null&&M>0)for(c.length=M+O.length,h=0;h<O.length;h++)c[M+h]=O[h];else e.deps=c=O;if(yt()&&(e.f&P)!==0)for(h=M;h<c.length;h++)(c[h].reactions??=[]).push(e)}else!v&&c!==null&&M<c.length&&(Be(e,M),c.length=M);if(Jt()&&z!==null&&!q&&c!==null&&(e.f&(N|W|A))===0)for(h=0;h<z.length;h++)Lr(z[h],e);if(i!==null&&i!==e){if(xe++,i.deps!==null)for(let b=0;b<r;b+=1)i.deps[b].rv=xe;if(t!==null)for(const b of t)b.rv=xe;z!==null&&(n===null?n=z:n.push(...z))}return(e.f&ae)!==0&&(e.f^=ae),d}catch(b){return Kt(b)}finally{e.f^=lt,O=t,M=r,z=n,p=i,j=s,Ce(l),q=o,Ee=a}}function ii(e,t){let r=t.reactions;if(r!==null){var n=en.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(t.f&N)!==0&&(O===null||!Ne.call(O,t))){var s=t;(s.f&P)!==0&&(s.f^=P,s.f&=~ge),ct(s),qn(s),Be(s,0)}}function Be(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ii(e,r[n])}function Oe(e){var t=e.f;if((t&V)===0){x(e,T);var r=m,n=Xe;m=e,Xe=!0;try{(t&(se|Vt))!==0?ei(e):$t(e),wr(e);var i=Cr(e);e.teardown=typeof i=="function"?i:null,e.wv=Nr;var s;Zr&&Sn&&(e.f&A)!==0&&e.deps}finally{Xe=n,m=r}}}function _(e){var t=e.f,r=(t&N)!==0;if(p!==null&&!q){var n=m!==null&&(m.f&V)!==0;if(!n&&(j===null||!Ne.call(j,e))){var i=p.deps;if((p.f&lt)!==0)e.rv<xe&&(e.rv=xe,O===null&&i!==null&&i[M]===e?M++:O===null?O=[e]:O.push(e));else{(p.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[p]:Ne.call(s,p)||s.push(p)}}}if(ve&&de.has(e))return de.get(e);if(r){var l=e;if(ve){var o=l.v;return((l.f&T)===0&&l.reactions!==null||Or(l))&&(o=pt(l)),de.set(l,o),o}var a=(l.f&P)===0&&!q&&p!==null&&(Xe||(p.f&P)!==0),f=(l.f&oe)===0;Ve(l)&&(a&&(l.f|=P),lr(l)),a&&!f&&(or(l),Rr(l))}if(B?.has(e))return B.get(e);if((e.f&ae)!==0)throw e.v;return e.v}function Rr(e){if(e.f|=P,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&N)!==0&&(t.f&P)===0&&(or(t),Rr(t))}function Or(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(de.has(t)||(t.f&N)!==0&&Or(t))return!0;return!1}function si(e){var t=q;try{return q=!0,e()}finally{q=t}}const Ze=Symbol("events"),li=new Set,Dr=new Set;function oi(e,t,r,n={}){function i(s){if(n.capture||Et.call(t,s),!s.cancelBubble)return wt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?we(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function xt(e,t,r,n,i){var s={capture:n,passive:i},l=oi(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&_r(()=>{t.removeEventListener(e,l,s)})}let Mr=null;function Et(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Mr=e;var l=0,o=Mr===e&&e[Ze];if(o){var a=i.indexOf(o);if(a!==-1&&(t===document||t===window)){e[Ze]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(s=i[l]||e.target,s!==t){He(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=p,d=m;R(null),F(null);try{for(var c,v=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var b=s[Ze]?.[n];b!=null&&(!s.disabled||e.target===s)&&b.call(s,e)}catch(k){c?v.push(k):c=k}if(e.cancelBubble||h===t||h===null)break;s=h}if(c){for(let k of v)queueMicrotask(()=>{throw k});throw c}}finally{e[Ze]=t,delete e.currentTarget,R(u),F(d)}}}const ai=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function fi(e){return ai?.createHTML(e)??e}function ui(e){var t=bt("template");return t.innerHTML=fi(e.replaceAll("<!>","<!---->")),t.content}function Qe(e,t){var r=m;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Pr(e,t){var r=(t&Kr)!==0,n=(t&Xr)!==0,i,s=!e.startsWith("<!>");return()=>{if(w)return Qe($,null),$;i===void 0&&(i=ui(s?e:"<!>"+e),r||(i=Fe(i)));var l=n||cr?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=Fe(l),a=l.lastChild;Qe(o,a)}else Qe(l,l);return l}}function kt(e,t){if(w){var r=m;((r.f&oe)===0||r.nodes.end===null)&&(r.nodes.end=$),ut();return}e!==null&&e.before(t)}const ci=["touchstart","touchmove"];function di(e){return ci.includes(e)}function Tt(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function Ir(e,t){return Fr(e,t)}function hi(e,t){gt(),t.intro=t.intro??!1;const r=t.target,n=w,i=$;try{for(var s=Fe(r);s&&(s.nodeType!==Ye||s.data!==Ot);)s=he(s);if(!s)throw Te;fe(!0),U(s);const l=Fr(e,{...t,anchor:s});return fe(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Te&&console.warn("Failed to hydrate: ",l),t.recover===!1&&gn(),gt(),Yn(r),fe(!1),Ir(e,t)}finally{fe(n),U(i)}}const et=new Map;function Fr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:l=!0,transformError:o}){gt();var a=void 0,f=Xn(()=>{var u=r??t.appendChild($e());Mn(u,{pending:()=>{}},v=>{Yt({});var h=I;if(s&&(h.c=s),i&&(n.$$events=i),w&&Qe(v,null),a=e(v,n)||{},w&&(m.nodes.end=$,$===null||$.nodeType!==Ye||$.data!==Pt))throw Ue(),Te;Ut()},o);var d=new Set,c=v=>{for(var h=0;h<v.length;h++){var b=v[h];if(!d.has(b)){d.add(b);var k=di(b);for(const ke of[t,document]){var D=et.get(ke);D===void 0&&(D=new Map,et.set(ke,D));var ie=D.get(b);ie===void 0?(ke.addEventListener(b,Et,{passive:k}),D.set(b,1)):D.set(b,ie+1)}}}};return c(tn(li)),Dr.add(c),()=>{for(var v of d)for(const k of[t,document]){var h=et.get(k),b=h.get(v);--b==0?(k.removeEventListener(v,Et),h.delete(v),h.size===0&&et.delete(k)):h.set(v,b)}Dr.delete(c),u!==r&&u.parentNode?.removeChild(u)}});return Nt.set(a,f),a}let Nt=new WeakMap;function vi(e,t){const r=Nt.get(e);return r?(Nt.delete(e),r(t)):Promise.resolve()}class _i{anchor;#e=new Map;#r=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,r=!0){this.anchor=t,this.#s=r}#n=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#r.get(r);if(n)ri(n),this.#i.delete(r);else{var i=this.#t.get(r);i&&(this.#r.set(r,i.effect),this.#t.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,l]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(l);o&&(C(o.effect),this.#t.delete(l))}for(const[s,l]of this.#r){if(s===r||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();Er(l,f),f.append($e()),this.#t.set(s,{effect:l,fragment:f})}else C(l);this.#i.delete(s),this.#r.delete(s)};this.#s||!n?(this.#i.add(s),ze(l,o,!1)):o()}}};#l=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,i]of this.#t)r.includes(n)||(C(i.effect),this.#t.delete(n))};ensure(t,r){var n=y,i=Un();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),l=$e();s.append(l),this.#t.set(t,{effect:re(()=>r(l)),fragment:s})}else this.#r.set(t,re(()=>r(this.anchor)));if(this.#e.set(n,t),i){for(const[o,a]of this.#r)o===t?n.unskip_effect(a):n.skip_effect(a);for(const[o,a]of this.#t)o===t?n.unskip_effect(a.effect):n.skip_effect(a.effect);n.oncommit(this.#n),n.ondiscard(this.#l)}else w&&(this.anchor=$),this.#n(n)}}function pi(e,t,r=!1){var n;w&&(n=$,ut());var i=new _i(e),s=r?Le:0;function l(o,a){if(w){var f=kn(n);if(o!==parseInt(f.substring(1))){var u=Ht();U(u),i.anchor=u,fe(!1),i.ensure(o,a),fe(!0);return}}i.ensure(o,a)}br(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},s)}function mi(e,t){Zn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=bt("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function gi(e,t,r){var n=""+e;return n}function bi(e,t){return String(e)}function St(e,t,r,n,i,s){var l=e.__className;if(w||l!==r||l===void 0){var o=gi(r);(!w||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return s}function wi(e,t,r,n){var i=e.__style;if(w||i!==t){var s=bi(t);(!w||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const yi=Symbol("is custom element"),$i=Symbol("is html"),xi=dn?"link":"LINK";function Ei(e,t,r,n){var i=ki(e);w&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===xi)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[cn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&jr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ne(e,t,r){var n=p,i=m;let s=w;w&&fe(!1),R(null),F(null);try{t!=="style"&&(At.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?jr(e).includes(t):r&&typeof r=="object")?e[t]=r:Ei(e,t,r==null?r:String(r))}finally{R(n),F(i),s&&fe(!0)}}function ki(e){return e.__attributes??={[yi]:e.nodeName.includes("-"),[$i]:e.namespaceURI===It}}var At=new Map;function jr(e){var t=e.getAttribute("is")||e.nodeName,r=At.get(t);if(r)return r;At.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=rn(i);for(var l in n)n[l].set&&r.push(l);i=Ft(i)}return r}function tt(e,t,r,n){var i=n,s=!0,l=()=>(s&&(s=!1,i=n),i),o;o=e[t],o===void 0&&n!==void 0&&(o=l());var a;a=()=>{var c=e[t];return c===void 0?l():(s=!0,c)};var f=!1,u=_t(()=>(f=!1,a())),d=m;return(function(c,v){if(arguments.length>0){const h=v?_(u):c;return E(u,h),f=!0,i!==void 0&&(i=h),c}return ve&&f||(d.f&V)!==0?u.v:_(u)})}function Ti(e){return new Ni(e)}class Ni{#e;#r;constructor(t){var r=new Map,n=(s,l)=>{var o=Hn(l,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return _(r.get(l)??n(l,Reflect.get(s,l)))},has(s,l){return l===un?!0:(_(r.get(l)??n(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return E(r.get(l)??n(l,o),o),Reflect.set(s,l,o)}});this.#r=(t.hydrate?hi:Ir)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Me(),this.#e=i.$$events;for(const s of Object.keys(this.#r))s==="$set"||s==="$destroy"||s==="$on"||He(this,s,{get(){return this.#r[s]},set(l){this.#r[s]=l},enumerable:!0});this.#r.$set=s=>{Object.assign(i,s)},this.#r.$destroy=()=>{vi(this.#r)}}$set(t){this.#r.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...i)=>r.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#r.$destroy()}}let zr;typeof HTMLElement=="function"&&(zr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}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=bt("slot");n!=="default"&&(s.name=n),kt(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Si(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]=rt(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=Ti({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Kn(()=>{gr(()=>{this.$$r=!0;for(const n of qe(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=rt(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]=rt(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 qe(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function rt(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 Si(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Ai(e,t,r,n,i,s){let l=class extends zr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return qe(t).map(o=>(t[o].attribute||o).toLowerCase())}};return qe(t).forEach(o=>{He(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=rt(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=Se(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),n.forEach(o=>{He(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}function Vr(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}class _e{dictionary;lang="";constructor(t){if(!t?.dictionary)throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(t?.lang)}setLang(t){t||(t=_e.getDefaultLang()),this.lang=t}translateWord(t,r){return _e.getDictionaryWord(t,this.dictionary,r||this.lang)}translateDate(t,r,n){return _e.formatDate(t,r,n||this.lang)}static getDefaultLang(){let t="en";return navigator?.languages&&navigator.languages[0]?.split("-")[0]?.toLowerCase()?.length&&(t=navigator.languages[0].split("-")[0].toLowerCase()),t}static getDictionaryWord(t,r,n){if(!t)throw new Error("no wordKey provided");if(!r)throw new Error("no dictionary provided");if(n&&r[n]?.[t])return r[n][t];let i="";const s=_e.getDefaultLang();if(!n||s!==n){const l=r?.[s];l?.[t]&&(i=l[t])}return i}static formatDate(t,r,n){if(!t)throw new Error("no date provided");if(typeof t.getMonth!="function")throw new Error("wrong date format");return new Intl.DateTimeFormat(n||_e.getDefaultLang(),r).format(t)}}const Br={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"}},qr={version:"0.66.5"};var Li=Pr('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-tr0h8x"> </div>'),Ci=Pr('<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 Ri={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");
1
+ (function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function ee(e){for(var t=0;t<e.length;t++)e[t]()}function _(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var v=1024,y=2048,b=4096,te=8192,ne=16384,re=32768,ie=1<<25,ae=65536,x=1<<19,oe=1<<20,S=65536,se=1<<21,ce=1<<22,le=1<<23,ue=Symbol(`$state`),de=Symbol(`legacy props`),fe=Symbol(``),C=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},pe=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function me(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function he(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ge(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function _e(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function ve(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function ye(){throw Error(`https://svelte.dev/e/hydration_failed`)}function be(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function xe(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Se(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ce(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function we(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Te(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ee(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var w=!1;function De(e){w=e}var T;function E(e){if(e===null)throw Te(),t;return T=e}function Oe(){return E(Yt(T))}function D(e){if(w){if(Yt(T)!==null)throw Te(),t;T=e}}function ke(e=1){if(w){for(var t=e,n=T;t--;)n=Yt(n);T=n}}function Ae(e=!0){for(var t=0,n=T;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Yt(n);e&&n.remove(),n=i}}function je(e){if(!e||e.nodeType!==8)throw Te(),t;return e.data}function Me(e){return e===this.v}function Ne(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Pe(e){return!Ne(e,this.v)}var Fe=!1,Ie=!1,O=null;function Le(e){O=e}function Re(e,t=!1,n){O={p:O,i:!1,c:null,e:null,s:e,x:null,r:K,l:Ie&&!t?{s:null,u:null,$:[]}:null}}function ze(e){var t=O,n=t.e;if(n!==null){t.e=null;for(var r of n)cn(r)}return e!==void 0&&(t.x=e),t.i=!0,O=t.p,e??{}}function Be(){return!Ie||O!==null&&O.l===null}var Ve=[];function He(){var e=Ve;Ve=[],ee(e)}function Ue(e){if(Ve.length===0&&!tt){var t=Ve;queueMicrotask(()=>{t===Ve&&He()})}Ve.push(e)}function We(){for(;Ve.length>0;)He()}function Ge(e){var t=K;if(t===null)return U.f|=le,e;if(!(t.f&32768)&&!(t.f&4))throw e;Ke(e,t)}function Ke(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var qe=~(y|b|v);function k(e,t){e.f=e.f&qe|t}function Je(e){e.f&512||e.deps===null?k(e,v):k(e,b)}function Ye(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=S,Ye(t.deps))}function Xe(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Ye(e.deps),k(e,v)}var Ze=!1,Qe=!1;function $e(e){var t=Qe;try{return Qe=!1,[e(),Qe]}finally{Qe=t}}var A=new Set,j=null,M=null,et=null,tt=!1,nt=!1,rt=null,it=null,at=0,ot=1,st=class e{id=ot++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)k(n,y),this.schedule(n);for(n of t.m)k(n,b),this.schedule(n)}}#p(){if(at++>1e3&&(A.delete(this),lt()),!this.#d()){for(let e of this.#o)this.#s.delete(e),k(e,y),this.schedule(e);for(let e of this.#s)k(e,b),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=rt=[],r=[],i=it=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw ht(e),t}if(j=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(rt=null,it=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)mt(e,t)}else{this.#n.size===0&&A.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),ut(r),ut(n),this.#i?.resolve()}var o=j;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(A.add(o),o.#p()),A.has(this)||this.#g()}#m(e,t,n){e.f^=v;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=v:i&4?t.push(r):Fe&&i&16777224?n.push(r):In(r)&&(i&16&&this.#s.add(r),Vn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)Xe(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),M?.set(e,e.v))}activate(){j=this}deactivate(){j=null,M=null}flush(){try{nt=!0,j=this,this.#p()}finally{at=0,et=null,rt=null,it=null,nt=!1,j=null,M=null,P.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),A.delete(this)}#g(){for(let c of A){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)dt(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of A)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,Ue(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=_()).promise}static ensure(){if(j===null){let t=j=new e;nt||(A.add(j),tt||Ue(()=>{j===t&&t.flush()}))}return j}apply(){if(!Fe||!this.is_fork&&A.size===1){M=null;return}M=new Map;for(let[e,[t]]of this.current)M.set(e,t);for(let n of A)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)M.has(e)||M.set(e,t)}}schedule(e){if(et=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(rt!==null&&t===K&&(Fe||(U===null||!(U.f&2))&&!Ze))return;if(n&96){if(!(n&1024))return;t.f^=v}}this.#a.push(t)}};function ct(e){var t=tt;tt=!0;try{var n;for(e&&(j!==null&&!j.is_fork&&j.flush(),n=e());;){if(We(),j===null)return n;j.flush()}}finally{tt=t}}function lt(){try{ve()}catch(e){Ke(e,et)}}var N=null;function ut(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&In(r)&&(N=new Set,Vn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&yn(r),N?.size>0)){P.clear();for(let e of N){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)N.has(n)&&(N.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Vn(n)}}N.clear()}}N=null}}function dt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?dt(i,t,n,r):e&4194320&&!(e&2048)&&ft(i,t,r)&&(k(i,y),pt(i))}}function ft(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&&ft(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function pt(e){j.schedule(e)}function mt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),k(e,v);for(var n=e.first;n!==null;)mt(n,t),n=n.next}}function ht(e){k(e,v);for(var t=e.first;t!==null;)ht(t),t=t.next}function gt(e){let t=0,n=It(0),r;return()=>{an()&&(Q(n),pn(()=>(t===0&&(r=Wn(()=>e(()=>Bt(n)))),t+=1,()=>{Ue(()=>{--t,t===0&&(r?.(),r=void 0,Bt(n))})})))}}var _t=ae|x;function vt(e,t,n,r){new yt(e,t,n,r)}var yt=class{parent;is_pending=!1;transform_error;#e;#t=w?T:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=gt(()=>(this.#m=It(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=K;t.b=this,t.f|=128,n(e)},this.parent=K.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=mn(()=>{if(w){let e=this.#t;Oe();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},_t),w&&(this.#e=T)}#g(){try{this.#a=V(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=V(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=V(()=>e(this.#e)),Ue(()=>{var e=this.#c=document.createDocumentFragment(),t=qt();e.append(t),this.#a=this.#x(()=>V(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,bn(this.#o,()=>{this.#o=null}),this.#b(j))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=V(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();wn(this.#a,e);let t=this.#n.pending;this.#o=V(()=>t(this.#e))}else this.#b(j)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Xe(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=K,n=U,r=O;q(this.#i),G(this.#i),Le(this.#i.ctx);try{return st.ensure(),e()}catch(e){return Ge(e),null}finally{q(t),G(n),Le(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&bn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ue(()=>{this.#d=!1,this.#m&&Rt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Q(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),w&&(E(this.#t),ke(),E(Ae()));var r=!1,i=!1;let a=()=>{if(r){Ee();return}r=!0,i&&we(),this.#s!==null&&bn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Ke(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return V(()=>{var t=K;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Ke(e,this.#i.parent),null}}))};Ue(()=>{var t;try{t=this.transform_error(e)}catch(e){Ke(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Ke(e,this.#i&&this.#i.parent)):o(t)})}};function bt(e,t,n,r){let i=Be()?wt:Dt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=K,s=xt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||Ke(e,o)}St()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Ct();function d(){Promise.all(n.map(e=>Tt(e))).then(e=>l([...t.map(i),...e])).catch(e=>Ke(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),St()}):d()}function xt(){var e=K,t=U,n=O,r=j;return function(i=!0){q(e),G(t),Le(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function St(e=!0){q(null),G(null),Le(null),e&&j?.deactivate()}function Ct(){var e=K,t=e.b,n=j,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function wt(e){var t=2|y,r=U!==null&&U.f&2?U:null;return K!==null&&(K.f|=x),{ctx:O,deps:null,effects:null,equals:Me,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??K,ac:null}}function Tt(e,t,r){let i=K;i===null&&me();var a=void 0,o=It(n),s=!U,c=new Map;return fn(()=>{var t=K,n=_();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(St)}catch(e){n.reject(e),St()}var r=j;if(s){if(t.f&32768)var l=Ct();if(i.b.is_rendered())c.get(r)?.reject(C),c.delete(r);else{for(let e of c.values())e.reject(C);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===C),!(n===C||t.f&16384)){if(r.activate(),n)o.f|=le,Rt(o,n);else{o.f&8388608&&(o.f^=le),Rt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(C)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),on(()=>{for(let e of c.values())e.reject(C)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Et(e){let t=wt(e);return Fe||kn(t),t}function Dt(e){let t=wt(e);return t.equals=Pe,t}function Ot(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function kt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function At(e){var t,n=K;q(kt(e));try{e.f&=~S,Ot(e),t=Rn(e)}finally{q(n)}return t}function jt(e){var t=e.v,n=At(e);if(!e.equals(n)&&(e.wv=Fn(),(!j?.is_fork||e.deps===null)&&(e.v=n,j?.capture(e,t,!0),e.deps===null))){k(e,v);return}Dn||(M===null?Je(e):(an()||j?.is_fork)&&M.set(e,n))}function Mt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(C),t.teardown=g,t.ac=null,Bn(t,0),gn(t))}function Nt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Vn(t)}var Pt=new Set,P=new Map,Ft=!1;function It(e,t){return{f:0,v:e,reactions:null,equals:Me,rv:0,wv:0}}function F(e,t){let n=It(e,t);return kn(n),n}function Lt(e,t=!1,n=!0){let r=It(e);return t||(r.equals=Pe),Ie&&n&&O!==null&&O.l!==null&&(O.l.s??=[]).push(r),r}function I(e,t,n=!1){return U!==null&&(!W||U.f&131072)&&Be()&&U.f&4325394&&(J===null||!o.call(J,e))&&Ce(),Rt(e,n?L(t):t,it)}function Rt(e,t,n=null){if(!e.equals(t)){var r=e.v;Dn?P.set(e,t):P.set(e,r),e.v=t;var i=st.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&At(t),M===null&&Je(t)}e.wv=Fn(),Vt(e,y,n),Be()&&K!==null&&K.f&1024&&!(K.f&96)&&(Z===null?An([e]):Z.push(e)),!i.is_fork&&Pt.size>0&&!Ft&&zt()}return t}function zt(){Ft=!1;for(let e of Pt)e.f&1024&&k(e,b),In(e)&&Vn(e);Pt.clear()}function Bt(e){I(e,e.v+1)}function Vt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Be(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===K)){var l=(c&y)===0;if(l&&k(s,t),c&2){var u=s;M?.delete(u),c&65536||(c&512&&(s.f|=S),Vt(u,b,n))}else if(l){var d=s;c&16&&N!==null&&N.add(d),n===null?pt(d):n.push(d)}}}}function L(e){if(typeof e!=`object`||!e||ue in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=F(0),s=null,c=Nn,l=e=>{if(Nn===c)return e();var t=U,n=Nn;G(null),Pn(c);var r=e();return G(t),Pn(n),r};return a&&r.set(`length`,F(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&xe();var i=r.get(t);return i===void 0?l(()=>{var e=F(n.value,s);return r.set(t,e),e}):I(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>F(n,s));r.set(t,e),Bt(o)}}else I(i,n),Bt(o);return!0},get(t,i,a){if(i===ue)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>F(L(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=Q(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=Q(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===ue)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||K!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>F(a?L(e[t]):n,s)),r.set(t,i)),Q(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>F(n,s)),r.set(p+``,m)):I(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>F(void 0,s)),I(d,L(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>L(i));I(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var ee=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=ee.v&&I(ee,_+1)}Bt(o)}return!0},ownKeys(e){Q(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){Se()}})}var Ht,Ut,Wt,Gt;function Kt(){if(Ht===void 0){Ht=window,Ut=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=u(t,`firstChild`).get,Gt=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function qt(e=``){return document.createTextNode(e)}function Jt(e){return Wt.call(e)}function Yt(e){return Gt.call(e)}function R(e,t){if(!w)return Jt(e);var n=Jt(T);if(n===null)n=T.appendChild(qt());else if(t&&n.nodeType!==3){var r=qt();return n?.before(r),E(r),r}return t&&en(n),E(n),n}function Xt(e,t=1,n=!1){let r=w?T:e;for(var i;t--;)i=r,r=Yt(r);if(!w)return r;if(n){if(r?.nodeType!==3){var a=qt();return r===null?i?.after(a):r.before(a),E(a),a}en(r)}return E(r),r}function Zt(e){e.textContent=``}function Qt(){return!Fe||N!==null?!1:(K.f&re)!==0}function $t(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function en(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function tn(e){var t=U,n=K;G(null),q(null);try{return e()}finally{G(t),q(n)}}function nn(e){K===null&&(U===null&&_e(e),ge()),Dn&&he(e)}function rn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function z(e,t){var n=K;n!==null&&n.f&8192&&(e|=te);var r={ctx:O,deps:null,nodes:null,f:e|y|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)rt===null?st.ensure().schedule(r):rt.push(r);else if(t!==null){try{Vn(r)}catch(e){throw H(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ae))}if(i!==null&&(i.parent=n,n!==null&&rn(i,n),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function an(){return U!==null&&!W}function on(e){let t=z(8,null);return k(t,v),t.teardown=e,t}function sn(e){nn(`$effect`);var t=K.f;if(!U&&t&32&&!(t&32768)){var n=O;(n.e??=[]).push(e)}else return cn(e)}function cn(e){return z(4|oe,e)}function ln(e){st.ensure();let t=z(64|x,e);return()=>{H(t)}}function un(e){st.ensure();let t=z(64|x,e);return(e={})=>new Promise(n=>{e.outro?bn(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function dn(e){return z(4,e)}function fn(e){return z(ce|x,e)}function pn(e,t=0){return z(8|t,e)}function B(e,t=[],n=[],r=[]){bt(r,t,n,t=>{z(8,()=>e(...t.map(Q)))})}function mn(e,t=0){return z(16|t,e)}function V(e){return z(32|x,e)}function hn(e){var t=e.teardown;if(t!==null){let e=Dn,n=U;On(!0),G(null);try{t.call(null)}finally{On(e),G(n)}}}function gn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&tn(()=>{e.abort(C)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function _n(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(vn(e.nodes.start,e.nodes.end),n=!0),k(e,ie),gn(e,t&&!n),Bn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();hn(e),e.f^=ie,e.f|=ne;var i=e.parent;i!==null&&i.first!==null&&yn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function vn(e,t){for(;e!==null;){var n=e===t?null:Yt(e);e.remove(),e=n}}function yn(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 bn(e,t,n=!0){var r=[];xn(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function xn(e,t,n){if(!(e.f&8192)){e.f^=te;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;xn(i,t,o?n:!1),i=a}}}function Sn(e){Cn(e,!0)}function Cn(e,t){if(e.f&8192){e.f^=te,e.f&1024||(k(e,y),st.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Cn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function wn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Yt(n);t.append(n),n=i}}var Tn=null,En=!1,Dn=!1;function On(e){Dn=e}var U=null,W=!1;function G(e){U=e}var K=null;function q(e){K=e}var J=null;function kn(e){U!==null&&(!Fe||U.f&2)&&(J===null?J=[e]:J.push(e))}var Y=null,X=0,Z=null;function An(e){Z=e}var jn=1,Mn=0,Nn=Mn;function Pn(e){Nn=e}function Fn(){return++jn}function In(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~S),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(In(a)&&jt(a),a.wv>e.wv)return!0}t&512&&M===null&&k(e,v)}return!1}function Ln(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Fe&&J!==null&&o.call(J,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Ln(a,t,!1):t===a&&(n?k(a,y):a.f&1024&&k(a,b),pt(a))}}function Rn(e){var t=Y,n=X,r=Z,i=U,a=J,o=O,s=W,c=Nn,l=e.f;Y=null,X=0,Z=null,U=l&96?null:e,J=null,Le(e.ctx),W=!1,Nn=++Mn,e.ac!==null&&(tn(()=>{e.ac.abort(C)}),e.ac=null);try{e.f|=se;var u=e.fn,d=u();e.f|=re;var f=e.deps,p=j?.is_fork;if(Y!==null){var m;if(p||Bn(e,X),f!==null&&X>0)for(f.length=X+Y.length,m=0;m<Y.length;m++)f[X+m]=Y[m];else e.deps=f=Y;if(an()&&e.f&512)for(m=X;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&X<f.length&&(Bn(e,X),f.length=X);if(Be()&&Z!==null&&!W&&f!==null&&!(e.f&6146))for(m=0;m<Z.length;m++)Ln(Z[m],e);if(i!==null&&i!==e){if(Mn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Mn;if(t!==null)for(let e of t)e.rv=Mn;Z!==null&&(r===null?r=Z:r.push(...Z))}return e.f&8388608&&(e.f^=le),d}catch(e){return Ge(e)}finally{e.f^=se,Y=t,X=n,Z=r,U=i,J=a,Le(o),W=s,Nn=c}}function zn(e,t){let n=t.reactions;if(n!==null){var r=a.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Y===null||!o.call(Y,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~S),Je(s),Mt(s),Bn(s,0)}}function Bn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)zn(e,n[r])}function Vn(e){var t=e.f;if(!(t&16384)){k(e,v);var n=K,r=En;K=e,En=!0;try{t&16777232?_n(e):gn(e),hn(e);var i=Rn(e);e.teardown=typeof i==`function`?i:null,e.wv=jn}finally{En=r,K=n}}}function Q(e){var t=(e.f&2)!=0;if(Tn?.add(e),U!==null&&!W&&!(K!==null&&K.f&16384)&&(J===null||!o.call(J,e))){var n=U.deps;if(U.f&2097152)e.rv<Mn&&(e.rv=Mn,Y===null&&n!==null&&n[X]===e?X++:Y===null?Y=[e]:Y.push(e));else{(U.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[U]:o.call(r,U)||r.push(U)}}if(Dn&&P.has(e))return P.get(e);if(t){var i=e;if(Dn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Un(i))&&(a=At(i)),P.set(i,a),a}var s=(i.f&512)==0&&!W&&U!==null&&(En||(U.f&512)!=0),c=(i.f&re)===0;In(i)&&(s&&(i.f|=512),jt(i)),s&&!c&&(Nt(i),Hn(i))}if(M?.has(e))return M.get(e);if(e.f&8388608)throw e.v;return e.v}function Hn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Nt(t),Hn(t))}function Un(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(P.has(t)||t.f&2&&Un(t))return!0;return!1}function Wn(e){var t=W;try{return W=!0,e()}finally{W=t}}var Gn=Symbol(`events`),Kn=new Set,qn=new Set;function Jn(e,t,n,r={}){function i(e){if(r.capture||Zn.call(t,e),!e.cancelBubble)return tn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ue(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Yn(e,t,n,r,i){var a={capture:r,passive:i},o=Jn(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&on(()=>{t.removeEventListener(e,o,a)})}var Xn=null;function Zn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Xn=e;var o=0,s=Xn===e&&e[Gn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Gn]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=U,f=K;G(null),q(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Gn]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Gn]=t,delete e.currentTarget,G(d),q(f)}}}var Qn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function $n(e){return Qn?.createHTML(e)??e}function er(e){var t=$t(`template`);return t.innerHTML=$n(e.replaceAll(`<!>`,`<!---->`)),t.content}function tr(e,t){var n=K;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function nr(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(w)return tr(T,null),T;i===void 0&&(i=er(a?e:`<!>`+e),n||(i=Jt(i)));var t=r||Ut?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Jt(t),s=t.lastChild;tr(o,s)}else tr(t,t);return t}}function rr(e,t){if(w){var n=K;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=T),Oe();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var ir=[`touchstart`,`touchmove`];function ar(e){return ir.includes(e)}function or(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function sr(e,t){return ur(e,t)}function cr(e,n){Kt(),n.intro=n.intro??!1;let r=n.target,i=w,a=T;try{for(var o=Jt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=Yt(o);if(!o)throw t;De(!0),E(o);let i=ur(e,{...n,anchor:o});return De(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
+ `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&ye(),Kt(),Zt(r),De(!1),sr(e,n)}finally{De(i),E(a)}}var lr=new Map;function ur(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Kt();var u=void 0,d=un(()=>{var c=r??n.appendChild(qt());vt(c,{pending:()=>{}},n=>{Re({});var r=O;if(o&&(r.c=o),a&&(i.$$events=a),w&&tr(n,null),u=e(n,i)||{},w&&(K.nodes.end=T,T===null||T.nodeType!==8||T.data!==`]`))throw Te(),t;ze()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=ar(r);for(let e of[n,document]){var a=lr.get(e);a===void 0&&(a=new Map,lr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Zn,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Kn)),qn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=lr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,Zn),t.delete(e),t.size===0&&lr.delete(r)):t.set(e,i)}qn.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return dr.set(u,d),u}var dr=new WeakMap;function fr(e,t){let n=dr.get(e);return n?(dr.delete(e),n(t)):Promise.resolve()}var pr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Sn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(H(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();wn(r,t),t.append(qt()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),bn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(H(n.effect),this.#n.delete(e))};ensure(e,t){var n=j,r=Qt();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=qt();i.append(a),this.#n.set(e,{effect:V(()=>t(a)),fragment:i})}else this.#t.set(e,V(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else w&&(this.anchor=T),this.#a(n)}};function mr(e,t,n=!1){var r;w&&(r=T,Oe());var i=new pr(e),a=n?ae:0;function o(e,t){if(w){var n=je(r);if(e!==parseInt(n.substring(1))){var a=Ae();E(a),i.anchor=a,De(!1),i.ensure(e,t),De(!0);return}}i.ensure(e,t)}mn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function hr(e,t){dn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=$t(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var gr=[...`
3
+ \r\f\xA0\v`];function _r(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||gr.includes(r[o-1]))&&(s===r.length||gr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function vr(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function yr(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function br(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(yr)),i&&c.push(...Object.keys(i).map(yr));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=yr(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=vr(r)),i&&(n+=vr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function xr(e,t,n,r,i,a){var o=e.__className;if(w||o!==n||o===void 0){var s=_r(n,r,a);(!w||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Sr(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Cr(e,t,n,r){var i=e.__style;if(w||i!==t){var a=br(t,r);(!w||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Sr(e,n?.[0],r[0]),Sr(e,n?.[1],r[1],`important`)):Sr(e,n,r));return r}var wr=Symbol(`is custom element`),Tr=Symbol(`is html`),Er=pe?`link`:`LINK`;function Dr(e,t,n,r){var i=Or(e);w&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Er)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[fe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Ar(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function $(e,t,n){var r=U,i=K;let a=w;w&&De(!1),G(null),q(null);try{t!==`style`&&(kr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Ar(e).includes(t):n&&typeof n==`object`)?e[t]=n:Dr(e,t,n==null?n:String(n))}finally{G(r),q(i),a&&De(!0)}}function Or(e){return e.__attributes??={[wr]:e.nodeName.includes(`-`),[Tr]:e.namespaceURI===r}}var kr=new Map;function Ar(e){var t=e.getAttribute(`is`)||e.nodeName,n=kr.get(t);if(n)return n;kr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function jr(e,t,n,r){var i=!Ie||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Wn(r):r),s);let d;if(a){var f=ue in e||de in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=$e(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&be(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var ee=!1,_=(n&1?wt:Dt)(()=>(ee=!1,h()));a&&Q(_);var v=K;return(function(e,t){if(arguments.length>0){let n=t?Q(_):i&&a?L(e):e;return I(_,n),ee=!0,s!==void 0&&(s=n),e}return Dn&&ee||v.f&16384?_.v:Q(_)})}function Mr(e){return new Nr(e)}var Nr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Lt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Q(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===de?!0:(Q(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return I(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?cr:sr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Fe&&(!e?.props?.$$host||e.sync===!1)&&ct(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{fr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Pr;typeof HTMLElement==`function`&&(Pr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=$t(`slot`);e!==`default`&&(n.name=e),rr(t,n)}}let t={},n=Ir(this);for(let 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(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Fr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Mr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ln(()=>{pn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Fr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Fr(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 c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Fr(e,t,n,r){let 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 Ir(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Lr(e,t,n,r,i,a){let o=class extends Pr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Fr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function Rr(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var zr=class e{dictionary;lang=``;constructor(e){if(!e?.dictionary)throw Error(`no dictionary provided`);this.dictionary=e.dictionary,this.setLang(e?.lang)}setLang(t){t||=e.getDefaultLang(),this.lang=t}translateWord(t,n){return e.getDictionaryWord(t,this.dictionary,n||this.lang)}translateDate(t,n,r){return e.formatDate(t,n,r||this.lang)}static getDefaultLang(){let e=`en`;return navigator?.languages&&navigator.languages[0]?.split(`-`)[0]?.toLowerCase()?.length&&(e=navigator.languages[0].split(`-`)[0].toLowerCase()),e}static getDictionaryWord(t,n,r){if(!t)throw Error(`no wordKey provided`);if(!n)throw Error(`no dictionary provided`);if(r&&n[r]?.[t])return n[r][t];let i=``,a=e.getDefaultLang();if(!r||a!==r){let e=n?.[a];e?.[t]&&(i=e[t])}return i}static formatDate(t,n,r){if(!t)throw Error(`no date provided`);if(typeof t.getMonth!=`function`)throw Error(`wrong date format`);return new Intl.DateTimeFormat(r||e.getDefaultLang(),n).format(t)}},Br={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`}},Vr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.7`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,bootstrap:`^5.3.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.4.7`}},Hr=nr(`<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-tr0h8x"> </div>`),Ur=nr(`<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),Wr={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
4
  /*!
4
5
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
5
6
  * Copyright 2011-2021 The Bootstrap Authors
@@ -92,5 +93,5 @@
92
93
  @media (min-width: 1200px) {
93
94
  }
94
95
  @media (min-width: 1400px) {
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 Hr(e,t){Yt(t,!0),mi(e,Ri);let r=tt(t,"schemaentry"),n=tt(t,"show_validation",7,"no"),i=tt(t,"id",7,void 0),s=tt(t,"i18nlang"),l=L(ye(new _e({dictionary:Br,lang:s()}))),o=L(void 0),a=L(0),f=L(0),u=zn(()=>r()?r()?.required?!!(_(a)&&_(f)):!0:!1),d=L(0),c=L(ye([0,0]));function v(g,Z){t.$$host.dispatchEvent(new CustomEvent(g,{detail:Z}))}pr(()=>{if(typeof r()=="string")try{r(JSON.parse(r())),r()?.value?.lat&&r()?.value?.lon&&(E(a,r().value.lat,!0),E(f,r().value.lon,!0)),r()?.id&&i(r().id),E(d,_(d)||r()?.params?.zoom||14,!0),E(c,_(c)?.[0]?_(c):r()?.params?.center||[0,0],!0)}catch{}_(l)&&s()&&_(l).lang&&_(l).lang!==s()&&E(l,new _e({dictionary:Br,lang:s()}),!0),console.log("center",_(c)),console.log("zoom",_(d))}),pr(()=>{console.log("setval",_(o)),v("setVal",{value:_(o),valid:_(u),id:i()})}),Vr({repoName:"@htmlbricks/hb-input-number",version:qr.version}),Vr({repoName:"@htmlbricks/hb-map",version:qr.version});function h(g,Z){console.log("changeCoords",g,_(o)),E(g==="lat"?a:f,Z||0,!0),E(o,{lat:_(a),lon:_(f)},!0),v("setVal",{value:_(o),valid:_(u),id:i()})}var b={get schemaentry(){return r()},set schemaentry(g){r(g),Me()},get show_validation(){return n()},set show_validation(g="no"){n(g),Me()},get id(){return i()},set id(g=void 0){i(g),Me()},get i18nlang(){return s()},set i18nlang(g){s(g),Me()}},k=Ci(),D=G(k),ie=G(D),ke=G(ie),pe=G(ke);wi(pe,"width: 100%; height: 100%;"),ne(pe,"center",JSON.stringify([0,0])),X(()=>ne(pe,"zoom",_(d))),X(()=>ne(pe,"source",JSON.stringify(r()?.params?.source?r()?.params?.source:{type:"osm"}))),X(()=>ne(pe,"options",JSON.stringify(r()?.params?.options?r()?.params?.options:{centerFromGeometries:!0}))),X(()=>ne(pe,"data",JSON.stringify([{marker:{lngLat:[_(o)?.lon||0,_(o)?.lat||0]}}]))),St(pe,1,"svelte-tr0h8x"),J(ke);var Wr=je(ke,2),Lt=G(Wr),Yr=G(Lt),Ur=G(Yr),nt=je(Ur);X(()=>ne(nt,"schemaentry",JSON.stringify({id:"lat",value:_(a)||0,label:r()?.params?.latitudeLabel||_(l).translateWord("latitude"),placeholder:r()?.params?.latitudePlaceholder||_(l).translateWord("latitudePlaceholder"),required:!0}))),X(()=>ne(nt,"show_validation",n())),St(nt,1,"svelte-tr0h8x"),J(Yr),J(Lt);var Ct=je(Lt,2),Jr=G(Ct),Gr=G(Jr),it=je(Gr);X(()=>ne(it,"schemaentry",JSON.stringify({id:"lon",value:_(f)||0,label:r()?.params?.longitudeLabel||_(l).translateWord("longitude"),placeholder:r()?.params?.longitudePlaceholder||_(l).translateWord("longitudePlaceholder"),required:!0}))),X(()=>ne(it,"show_validation",n())),St(it,1,"svelte-tr0h8x"),J(Jr),J(Ct);var Oi=je(Ct,2);{var Di=g=>{var Z=Li(),Mi=G(Z,!0);J(Z),X(()=>Tt(Mi,r().validationTip)),kt(g,Z)};pi(Oi,g=>{r()?.validationTip&&n()==="yes"&&g(Di)})}return J(Wr),J(ie),J(D),J(k),X((g,Z)=>{Tt(Ur,`${g??""}:`),Tt(Gr,`${Z??""}: `)},[()=>_(l).translateWord("latitude"),()=>_(l).translateWord("longitude")]),xt("pointClickCoordinates",pe,g=>{console.log("pointClickCoordinates",g.detail),E(a,g.detail.coordinates.latitude,!0),E(f,g.detail.coordinates.longitude,!0),E(d,g.detail.zoom,!0)}),xt("setVal",nt,g=>{h("lat",g.detail.value)}),xt("setVal",it,g=>{h("lon",g.detail.value)}),kt(e,k),Ut(b)}customElements.define("hb-input-coords",Ai(Hr,{schemaentry:{},show_validation:{},id:{},i18nlang:{}},[],[],{mode:"open"})),Rt.Component=Hr,Object.defineProperty(Rt,Symbol.toStringTag,{value:"Module"})})(this["input-coords"]=this["input-coords"]||{});
96
- //# sourceMappingURL=main.iife.js.map
96
+ }: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 Gr(e,t){Re(t,!0),hr(e,Wr);let n=jr(t,`schemaentry`,7),r=jr(t,`show_validation`,7,`no`),i=jr(t,`id`,7,void 0),a=jr(t,`i18nlang`,7),o=F(L(new zr({dictionary:Br,lang:a()}))),s=F(void 0),c=F(0),l=F(0),u=Et(()=>n()?n()?.required?!!(Q(c)&&Q(l)):!0:!1),d=F(0),f=F(L([0,0]));function p(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}sn(()=>{if(typeof n()==`string`)try{n(JSON.parse(n())),n()?.value?.lat&&n()?.value?.lon&&(I(c,n().value.lat,!0),I(l,n().value.lon,!0)),n()?.id&&i(n().id),I(d,Q(d)||n()?.params?.zoom||14,!0),I(f,Q(f)?.[0]?Q(f):n()?.params?.center||[0,0],!0)}catch{}Q(o)&&a()&&Q(o).lang&&Q(o).lang!==a()&&I(o,new zr({dictionary:Br,lang:a()}),!0),console.log(`center`,Q(f)),console.log(`zoom`,Q(d))}),sn(()=>{console.log(`setval`,Q(s)),p(`setVal`,{value:Q(s),valid:Q(u),id:i()})}),Rr({repoName:`@htmlbricks/hb-input-number`,version:Vr.version}),Rr({repoName:`@htmlbricks/hb-map`,version:Vr.version});function m(e,t){console.log(`changeCoords`,e,Q(s)),I(e===`lat`?c:l,t||0,!0),I(s,{lat:Q(c),lon:Q(l)},!0),p(`setVal`,{value:Q(s),valid:Q(u),id:i()})}var h={get schemaentry(){return n()},set schemaentry(e){n(e),ct()},get show_validation(){return r()},set show_validation(e=`no`){r(e),ct()},get id(){return i()},set id(e=void 0){i(e),ct()},get i18nlang(){return a()},set i18nlang(e){a(e),ct()}},g=Ur(),ee=R(g),_=R(ee),v=R(_),y=R(v);Cr(y,`width: 100%; height: 100%;`),$(y,`center`,JSON.stringify([0,0])),B(()=>$(y,`zoom`,Q(d))),B(()=>$(y,`source`,JSON.stringify(n()?.params?.source?n()?.params?.source:{type:`osm`}))),B(()=>$(y,`options`,JSON.stringify(n()?.params?.options?n()?.params?.options:{centerFromGeometries:!0}))),B(()=>$(y,`data`,JSON.stringify([{marker:{lngLat:[Q(s)?.lon||0,Q(s)?.lat||0]}}]))),xr(y,1,`svelte-tr0h8x`),D(v);var b=Xt(v,2),te=R(b),ne=R(te),re=R(ne),ie=Xt(re);B(()=>$(ie,`schemaentry`,JSON.stringify({id:`lat`,value:Q(c)||0,label:n()?.params?.latitudeLabel||Q(o).translateWord(`latitude`),placeholder:n()?.params?.latitudePlaceholder||Q(o).translateWord(`latitudePlaceholder`),required:!0}))),B(()=>$(ie,`show_validation`,r())),xr(ie,1,`svelte-tr0h8x`),D(ne),D(te);var ae=Xt(te,2),x=R(ae),oe=R(x),S=Xt(oe);B(()=>$(S,`schemaentry`,JSON.stringify({id:`lon`,value:Q(l)||0,label:n()?.params?.longitudeLabel||Q(o).translateWord(`longitude`),placeholder:n()?.params?.longitudePlaceholder||Q(o).translateWord(`longitudePlaceholder`),required:!0}))),B(()=>$(S,`show_validation`,r())),xr(S,1,`svelte-tr0h8x`),D(x),D(ae);var se=Xt(ae,2),ce=e=>{var t=Hr(),r=R(t,!0);D(t),B(()=>or(r,n().validationTip)),rr(e,t)};return mr(se,e=>{n()?.validationTip&&r()===`yes`&&e(ce)}),D(b),D(_),D(ee),D(g),B((e,t)=>{or(re,`${e??``}:`),or(oe,`${t??``}: `)},[()=>Q(o).translateWord(`latitude`),()=>Q(o).translateWord(`longitude`)]),Yn(`pointClickCoordinates`,y,e=>{console.log(`pointClickCoordinates`,e.detail),I(c,e.detail.coordinates.latitude,!0),I(l,e.detail.coordinates.longitude,!0),I(d,e.detail.zoom,!0)}),Yn(`setVal`,ie,e=>{m(`lat`,e.detail.value)}),Yn(`setVal`,S,e=>{m(`lon`,e.detail.value)}),rr(e,g),ze(h)}customElements.define(`hb-input-coords`,Lr(Gr,{schemaentry:{},show_validation:{},id:{},i18nlang:{}},[],[],{mode:`open`})),e.Component=Gr})(this[`input-coords`]=this[`input-coords`]||{});
97
+ //# sourceMappingURL=main.iife.js.map