@htmlbricks/hb-messages-send 0.66.0 → 0.66.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(wi){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const _i=1,ki=2,$i=4,Lr=8,Dr=16,Gr=1,Hr=4,Ir=8,Fr=16,Ur=2,ji="[",he="[!",qe="]",Wt={},O=Symbol(),Yr="http://www.w3.org/1999/xhtml",We=!1;var Ei=Array.isArray,qr=Array.prototype.indexOf,Ve=Array.from,ye=Object.keys,we=Object.defineProperty,Bt=Object.getOwnPropertyDescriptor,Wr=Object.getOwnPropertyDescriptors,Vr=Object.prototype,Kr=Array.prototype,Ai=Object.getPrototypeOf,Ri=Object.isExtensible;function Jr(t){for(var e=0;e<t.length;e++)t[e]()}function zi(){var t,e,i=new Promise((r,o)=>{t=r,e=o});return{promise:i,resolve:t,reject:e}}const N=2,Ke=4,Je=8,ft=16,ct=32,jt=64,_e=128,nt=512,P=1024,U=2048,ut=4096,q=8192,xt=16384,ke=32768,Vt=65536,Ti=1<<17,Xe=1<<18,Nt=1<<19,Xr=1<<20,Ot=32768,Ze=1<<21,Qe=1<<22,Et=1<<23,ae=Symbol("$state"),Si=Symbol("legacy props"),Zr=Symbol(""),Kt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ti=3,Pt=8;function Qr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function tn(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function en(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function rn(t){throw new Error("https://svelte.dev/e/effect_orphan")}function nn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function on(){throw new Error("https://svelte.dev/e/hydration_failed")}function vn(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function an(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ln(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function sn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function pn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function $e(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function bn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let h=!1;function ot(t){h=t}let _;function L(t){if(t===null)throw $e(),Wt;return _=t}function je(){return L(Q(_))}function M(t){if(h){if(Q(_)!==null)throw $e(),Wt;_=t}}function Ci(t=1){if(h){for(var e=t,i=_;e--;)i=Q(i);_=i}}function Ee(t=!0){for(var e=0,i=_;;){if(i.nodeType===Pt){var r=i.data;if(r===qe){if(e===0)return i;e-=1}else(r===ji||r===he)&&(e+=1)}var o=Q(i);t&&i.remove(),i=o}}function Mi(t){if(!t||t.nodeType!==Pt)throw $e(),Wt;return t.data}function Bi(t){return t===this.v}function mn(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ni(t){return!mn(t,this.v)}let dn=!1,J=null;function Jt(t){J=t}function Oi(t,e=!1,i){J={p:J,i:!1,c:null,e:null,s:t,x:null,l:null}}function Pi(t){var e=J,i=e.e;if(i!==null){e.e=null;for(var r of i)or(r)}return t!==void 0&&(e.x=t),e.i=!0,J=e.p,t??{}}function Li(){return!0}let Lt=[];function Di(){var t=Lt;Lt=[],Jr(t)}function Xt(t){if(Lt.length===0&&!le){var e=Lt;queueMicrotask(()=>{e===Lt&&Di()})}Lt.push(t)}function gn(){for(;Lt.length>0;)Di()}function Gi(t){var e=k;if(e===null)return y.f|=Et,t;if((e.f&ke)===0){if((e.f&_e)===0)throw t;e.b.error(t)}else Zt(t,e)}function Zt(t,e){for(;e!==null;){if((e.f&_e)!==0)try{e.b.error(t);return}catch(i){t=i}e=e.parent}throw t}const Ae=new Set;let R=null,Re=null,X=null,Z=[],ze=null,ei=!1,le=!1;class vt{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#i=0;#r=0;#l=null;#o=[];#n=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(e){Z=[],Re=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)this.#v(r,i);this.is_fork||this.#p(),this.is_deferred()?(this.#a(i.effects),this.#a(i.render_effects),this.#a(i.block_effects)):(Re=this,R=null,Ii(i.render_effects),Ii(i.effects),Re=null,this.#l?.resolve()),X=null}#v(e,i){e.f^=P;for(var r=e.first;r!==null;){var o=r.f,n=(o&(ct|jt))!==0,v=n&&(o&P)!==0,l=v||(o&q)!==0||this.skipped_effects.has(r);if((r.f&_e)!==0&&r.b?.is_pending()&&(i={parent:i,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){n?r.f^=P:(o&Ke)!==0?i.effects.push(r):me(r)&&((r.f&ft)!==0&&i.block_effects.push(r),de(r));var a=r.first;if(a!==null){r=a;continue}}var s=r.parent;for(r=r.next;r===null&&s!==null;)s===i.effect&&(this.#a(i.effects),this.#a(i.render_effects),this.#a(i.block_effects),i=i.parent),r=s.next,s=s.parent}}#a(e){for(const i of e)((i.f&U)!==0?this.#o:this.#n).push(i),this.#s(i.deps),D(i,P)}#s(e){if(e!==null)for(const i of e)(i.f&N)===0||(i.f&Ot)===0||(i.f^=Ot,this.#s(i.deps))}capture(e,i){this.previous.has(e)||this.previous.set(e,i),(e.f&Et)===0&&(this.current.set(e,e.v),X?.set(e,e.v))}activate(){R=this,this.apply()}deactivate(){R===this&&(R=null,X=null)}flush(){if(this.activate(),Z.length>0){if(Hi(),R!==null&&R!==this)return}else this.#i===0&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#p(){if(this.#r===0){for(const e of this.#e)e();this.#e.clear()}this.#i===0&&this.#b()}#b(){if(Ae.size>1){this.previous.clear();var e=X,i=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of Ae){if(n===this){i=!1;continue}const v=[];for(const[a,s]of this.current){if(n.current.has(a))if(i&&s!==n.current.get(a))n.current.set(a,s);else continue;v.push(a)}if(v.length===0)continue;const l=[...n.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){var o=Z;Z=[];const a=new Set,s=new Map;for(const m of v)Fi(m,l,a,s);if(Z.length>0){R=n,n.apply();for(const m of Z)n.#v(m,r);n.deactivate()}Z=o}}R=null,X=e}this.committed=!0,Ae.delete(this)}increment(e){this.#i+=1,e&&(this.#r+=1)}decrement(e){this.#i-=1,e&&(this.#r-=1),this.revive()}revive(){for(const e of this.#o)D(e,U),Gt(e);for(const e of this.#n)D(e,ut),Gt(e);this.#o=[],this.#n=[],this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#l??=zi()).promise}static ensure(){if(R===null){const e=R=new vt;Ae.add(R),le||vt.enqueue(()=>{R===e&&e.flush()})}return R}static enqueue(e){Xt(e)}apply(){}}function Dt(t){var e=le;le=!0;try{for(var i;;){if(gn(),Z.length===0&&(R?.flush(),Z.length===0))return ze=null,i;Hi()}}finally{le=e}}function Hi(){var t=Tt;ei=!0;var e=null;try{var i=0;for(Ne(!0);Z.length>0;){var r=vt.ensure();if(i++>1e3){var o,n;fn()}r.process(Z),At.clear()}}finally{ei=!1,Ne(t),ze=null}}function fn(){try{nn()}catch(t){Zt(t,ze)}}let ht=null;function Ii(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var r=t[i++];if((r.f&(xt|q))===0&&me(r)&&(ht=new Set,de(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?sr(r):r.fn=null),ht?.size>0)){At.clear();for(const o of ht){if((o.f&(xt|q))!==0)continue;const n=[o];let v=o.parent;for(;v!==null;)ht.has(v)&&(ht.delete(v),n.push(v)),v=v.parent;for(let l=n.length-1;l>=0;l--){const a=n[l];(a.f&(xt|q))===0&&de(a)}}ht.clear()}}ht=null}}function Fi(t,e,i,r){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const o of t.reactions){const n=o.f;(n&N)!==0?Fi(o,e,i,r):(n&(Qe|ft))!==0&&(n&U)===0&&Ui(o,e,r)&&(D(o,U),Gt(o))}}function Ui(t,e,i){const r=i.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const o of t.deps){if(e.includes(o))return!0;if((o.f&N)!==0&&Ui(o,e,i))return i.set(o,!0),!0}return i.set(t,!1),!1}function Gt(t){for(var e=ze=t;e.parent!==null;){e=e.parent;var i=e.f;if(ei&&e===k&&(i&ft)!==0&&(i&Xe)===0)return;if((i&(jt|ct))!==0){if((i&P)===0)return;e.f^=P}}Z.push(e)}function cn(t){let e=0,i=Ht(0),r;return()=>{Ce()&&(g(i),Me(()=>(e===0&&(r=Pe(()=>t(()=>se(i)))),e+=1,()=>{Xt(()=>{e-=1,e===0&&(r?.(),r=void 0,se(i))})})))}}var un=Vt|Nt|_e;function xn(t,e,i){new hn(t,e,i)}class hn{parent;#e=!1;#t;#i=h?_:null;#r;#l;#o;#n=null;#v=null;#a=null;#s=null;#p=null;#b=0;#m=0;#g=!1;#d=null;#h=cn(()=>(this.#d=Ht(this.#b),()=>{this.#d=null}));constructor(e,i,r){this.#t=e,this.#r=i,this.#l=r,this.parent=k.b,this.#e=!!this.#r.pending,this.#o=Be(()=>{if(k.b=this,h){const n=this.#i;je(),n.nodeType===Pt&&n.data===he?this.#w():this.#y()}else{var o=this.#u();try{this.#n=tt(()=>r(o))}catch(n){this.error(n)}this.#m>0?this.#c():this.#e=!1}return()=>{this.#p?.remove()}},un),h&&(this.#t=_)}#y(){try{this.#n=tt(()=>this.#l(this.#t))}catch(e){this.error(e)}this.#e=!1}#w(){const e=this.#r.pending;e&&(this.#v=tt(()=>e(this.#t)),vt.enqueue(()=>{var i=this.#u();this.#n=this.#f(()=>(vt.ensure(),tt(()=>this.#l(i)))),this.#m>0?this.#c():(te(this.#v,()=>{this.#v=null}),this.#e=!1)}))}#u(){var e=this.#t;return this.#e&&(this.#p=W(),this.#t.before(this.#p),e=this.#p),e}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#f(e){var i=k,r=y,o=J;bt(this.#o),Y(this.#o),Jt(this.#o.ctx);try{return e()}catch(n){return Gi(n),null}finally{bt(i),Y(r),Jt(o)}}#c(){const e=this.#r.pending;this.#n!==null&&(this.#s=document.createDocumentFragment(),this.#s.append(this.#p),mr(this.#n,this.#s)),this.#v===null&&(this.#v=tt(()=>e(this.#t)))}#x(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#x(e);return}this.#m+=e,this.#m===0&&(this.#e=!1,this.#v&&te(this.#v,()=>{this.#v=null}),this.#s&&(this.#t.before(this.#s),this.#s=null))}update_pending_count(e){this.#x(e),this.#b+=e,this.#d&&Qt(this.#d,this.#b)}get_effect_pending(){return this.#h(),g(this.#d)}error(e){var i=this.#r.onerror;let r=this.#r.failed;if(this.#g||!i&&!r)throw e;this.#n&&(I(this.#n),this.#n=null),this.#v&&(I(this.#v),this.#v=null),this.#a&&(I(this.#a),this.#a=null),h&&(L(this.#i),Ci(),L(Ee()));var o=!1,n=!1;const v=()=>{if(o){bn();return}o=!0,n&&pn(),vt.ensure(),this.#b=0,this.#a!==null&&te(this.#a,()=>{this.#a=null}),this.#e=this.has_pending_snippet(),this.#n=this.#f(()=>(this.#g=!1,tt(()=>this.#l(this.#t)))),this.#m>0?this.#c():this.#e=!1};var l=y;try{Y(null),n=!0,i?.(e,v),n=!1}catch(a){Zt(a,this.#o&&this.#o.parent)}finally{Y(l)}r&&Xt(()=>{this.#a=this.#f(()=>{vt.ensure(),this.#g=!0;try{return tt(()=>{r(this.#t,()=>e,()=>v)})}catch(a){return Zt(a,this.#o.parent),null}finally{this.#g=!1}})})}}function yn(t,e,i){for(var r=[],o=e.length,n=0;n<o;n++)li(e[n].e,r,!0);pr(r,()=>{var v=r.length===0&&i!==null;if(v){var l=i,a=l.parentNode;ai(a),a.append(l),t.items.clear(),at(t,e[0].prev,e[o-1].next)}for(var s=0;s<o;s++){var m=e[s];v||(t.items.delete(m.k),at(t,m.prev,m.next)),I(m.e,!v)}t.first===e[0]&&(t.first=e[0].prev)})}function Yi(t,e,i,r,o,n=null){var v=t,l=new Map,a=null,s=(e&$i)!==0,m=(e&_i)!==0,f=(e&ki)!==0;if(s){var p=t;v=h?L(zt(p)):p.appendChild(W())}h&&je();var d=null,x=qi(()=>{var T=i();return Ei(T)?T:T==null?[]:Ve(T)}),E,c=!0;function A(){wn(K,E,v,e,r),d!==null&&(E.length===0?(d.fragment?(v.before(d.fragment),d.fragment=null):si(d.effect),S.first=d.effect):te(d.effect,()=>{d=null}))}var S=Be(()=>{E=g(x);var T=E.length;let St=!1;if(h){var Yt=Mi(v)===he;Yt!==(T===0)&&(v=Ee(),L(v),ot(!1),St=!0)}for(var dt=new Set,gt=R,_t=null,Ie=ir(),kt=0;kt<T;kt+=1){h&&_.nodeType===Pt&&_.data===qe&&(v=_,St=!0,ot(!1));var ue=E[kt],oe=r(ue,kt),G=c?null:l.get(oe);G?(m&&Qt(G.v,ue),f?Qt(G.i,kt):G.i=kt,Ie&>.skipped_effects.delete(G.e)):(G=_n(c?v:null,_t,ue,oe,kt,o,e,i),c&&(G.o=!0,_t===null?a=G:_t.next=G,_t=G),l.set(oe,G)),dt.add(oe)}if(T===0&&n&&!d)if(c)d={fragment:null,effect:tt(()=>n(v))};else{var Fe=document.createDocumentFragment(),qt=W();Fe.append(qt),d={fragment:Fe,effect:tt(()=>n(qt))}}if(h&&T>0&&L(Ee()),!c)if(Ie){for(const[xe,Ue]of l)dt.has(xe)||gt.skipped_effects.add(Ue.e);gt.oncommit(A),gt.ondiscard(()=>{})}else A();St&&ot(!0),g(x)}),K={effect:S,items:l,first:a};c=!1,h&&(v=_)}function wn(t,e,i,r,o){var n=(r&Lr)!==0,v=e.length,l=t.items,a=t.first,s,m=null,f,p=[],d=[],x,E,c,A;if(n)for(A=0;A<v;A+=1)x=e[A],E=o(x,A),c=l.get(E),c.a?.measure(),(f??=new Set).add(c);for(A=0;A<v;A+=1){if(x=e[A],E=o(x,A),c=l.get(E),t.first??=c,!c.o){c.o=!0;var S=m?m.next:a;at(t,m,c),at(t,c,S),ii(c,S,i),m=c,p=[],d=[],a=m.next;continue}if((c.e.f&q)!==0&&(si(c.e),n&&(c.a?.unfix(),(f??=new Set).delete(c))),c!==a){if(s!==void 0&&s.has(c)){if(p.length<d.length){var K=d[0],T;m=K.prev;var St=p[0],Yt=p[p.length-1];for(T=0;T<p.length;T+=1)ii(p[T],K,i);for(T=0;T<d.length;T+=1)s.delete(d[T]);at(t,St.prev,Yt.next),at(t,m,St),at(t,Yt,K),a=K,m=Yt,A-=1,p=[],d=[]}else s.delete(c),ii(c,a,i),at(t,c.prev,c.next),at(t,c,m===null?t.first:m.next),at(t,m,c),m=c;continue}for(p=[],d=[];a!==null&&a.k!==E;)(a.e.f&q)===0&&(s??=new Set).add(a),d.push(a),a=a.next;if(a===null)continue;c=a}p.push(c),m=c,a=c.next}if(a!==null||s!==void 0){for(var dt=s===void 0?[]:Ve(s);a!==null;)(a.e.f&q)===0&&dt.push(a),a=a.next;var gt=dt.length;if(gt>0){var _t=(r&$i)!==0&&v===0?i:null;if(n){for(A=0;A<gt;A+=1)dt[A].a?.measure();for(A=0;A<gt;A+=1)dt[A].a?.fix()}yn(t,dt,_t)}}n&&Xt(()=>{if(f!==void 0)for(c of f)c.a?.apply()})}function _n(t,e,i,r,o,n,v,l){var a=(v&_i)!==0,s=(v&Dr)===0,m=a?s?Ji(i,!1,!1):Ht(i):i,f=(v&ki)===0?o:Ht(o),p={i:f,v:m,k:r,a:null,e:null,o:!1,prev:e,next:null};try{if(t===null){var d=document.createDocumentFragment();d.append(t=W())}return p.e=tt(()=>n(t,m,f,l)),e!==null&&(e.next=p),p}finally{}}function ii(t,e,i){for(var r=t.next?t.next.e.nodes_start:i,o=e?e.e.nodes_start:i,n=t.e.nodes_start;n!==null&&n!==r;){var v=Q(n);o.before(n),n=v}}function at(t,e,i){e===null?(t.first=i,t.effect.first=i&&i.e):(e.e.next&&(e.e.next.prev=null),e.next=i,e.e.next=i&&i.e),i===null?t.effect.last=e&&e.e:(i.e.prev&&(i.e.prev.next=null),i.prev=e,i.e.prev=e&&e.e)}function kn(t,e,i,r){const o=ri;if(i.length===0&&t.length===0){r(e.map(o));return}var n=R,v=k,l=$n();function a(){Promise.all(i.map(s=>jn(s))).then(s=>{l();try{r([...e.map(o),...s])}catch(m){(v.f&xt)===0&&Zt(m,v)}n?.deactivate(),Te()}).catch(s=>{Zt(s,v)})}t.length>0?Promise.all(t).then(()=>{l();try{return a()}finally{n?.deactivate(),Te()}}):a()}function $n(){var t=k,e=y,i=J,r=R;return function(n=!0){bt(t),Y(e),Jt(i),n&&r?.activate()}}function Te(){bt(null),Y(null),Jt(null)}function ri(t){var e=N|U,i=y!==null&&(y.f&N)!==0?y:null;return k!==null&&(k.f|=Nt),{ctx:J,deps:null,effects:null,equals:Bi,f:e,fn:t,reactions:null,rv:0,v:O,wv:0,parent:i??k,ac:null}}function jn(t,e){let i=k;i===null&&Qr();var r=i.b,o=void 0,n=Ht(O),v=!y,l=new Map;return On(()=>{var a=zi();o=a.promise;try{Promise.resolve(t()).then(a.resolve,a.reject).then(()=>{s===R&&s.committed&&s.deactivate(),Te()})}catch(p){a.reject(p),Te()}var s=R;if(v){var m=!r.is_pending();r.update_pending_count(1),s.increment(m),l.get(s)?.reject(Kt),l.delete(s),l.set(s,a)}const f=(p,d=void 0)=>{if(s.activate(),d)d!==Kt&&(n.f|=Et,Qt(n,d));else{(n.f&Et)!==0&&(n.f^=Et),Qt(n,p);for(const[x,E]of l){if(l.delete(x),x===s)break;E.reject(Kt)}}v&&(r.update_pending_count(-1),s.decrement(m))};a.promise.then(f,p=>f(null,p||"unknown"))}),nr(()=>{for(const a of l.values())a.reject(Kt)}),new Promise(a=>{function s(m){function f(){m===o?a(n):s(o)}m.then(f,f)}s(o)})}function qi(t){const e=ri(t);return e.equals=Ni,e}function Wi(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)I(e[i])}}function En(t){for(var e=t.parent;e!==null;){if((e.f&N)===0)return(e.f&xt)===0?e:null;e=e.parent}return null}function ni(t){var e,i=k;bt(En(t));try{t.f&=~Ot,Wi(t),e=xr(t)}finally{bt(i)}return e}function Vi(t){var e=ni(t);if(t.equals(e)||(R?.is_fork||(t.v=e),t.wv=cr()),!It)if(X!==null)Ce()&&X.set(t,e);else{var i=(t.f&nt)===0?ut:P;D(t,i)}}let oi=new Set;const At=new Map;let Ki=!1;function Ht(t,e){var i={f:0,v:t,reactions:null,equals:Bi,rv:0,wv:0};return i}function H(t,e){const i=Ht(t);return Dn(i),i}function Ji(t,e=!1,i=!0){const r=Ht(t);return e||(r.equals=Ni),r}function z(t,e,i=!1){y!==null&&(!pt||(y.f&Ti)!==0)&&Li()&&(y.f&(N|ft|Qe|Ti))!==0&&!wt?.includes(t)&&sn();let r=i?Rt(e):e;return Qt(t,r)}function Qt(t,e){if(!t.equals(e)){var i=t.v;It?At.set(t,e):At.set(t,i),t.v=e;var r=vt.ensure();r.capture(t,i),(t.f&N)!==0&&((t.f&U)!==0&&ni(t),D(t,(t.f&nt)!==0?P:ut)),t.wv=cr(),Xi(t,U),k!==null&&(k.f&P)!==0&&(k.f&(ct|jt))===0&&(et===null?Gn([t]):et.push(t)),!r.is_fork&&oi.size>0&&!Ki&&An()}return e}function An(){Ki=!1;var t=Tt;Ne(!0);const e=Array.from(oi);try{for(const i of e)(i.f&P)!==0&&D(i,ut),me(i)&&de(i)}finally{Ne(t)}oi.clear()}function se(t){z(t,t.v+1)}function Xi(t,e){var i=t.reactions;if(i!==null)for(var r=i.length,o=0;o<r;o++){var n=i[o],v=n.f,l=(v&U)===0;if(l&&D(n,e),(v&N)!==0){var a=n;X?.delete(a),(v&Ot)===0&&(v&nt&&(n.f|=Ot),Xi(a,ut))}else l&&((v&ft)!==0&&ht!==null&&ht.add(n),Gt(n))}}function Rt(t){if(typeof t!="object"||t===null||ae in t)return t;const e=Ai(t);if(e!==Vr&&e!==Kr)return t;var i=new Map,r=Ei(t),o=H(0),n=Ft,v=l=>{if(Ft===n)return l();var a=y,s=Ft;Y(null),fr(n);var m=l();return Y(a),fr(s),m};return r&&i.set("length",H(t.length)),new Proxy(t,{defineProperty(l,a,s){(!("value"in s)||s.configurable===!1||s.enumerable===!1||s.writable===!1)&&an();var m=i.get(a);return m===void 0?m=v(()=>{var f=H(s.value);return i.set(a,f),f}):z(m,s.value,!0),!0},deleteProperty(l,a){var s=i.get(a);if(s===void 0){if(a in l){const m=v(()=>H(O));i.set(a,m),se(o)}}else z(s,O),se(o);return!0},get(l,a,s){if(a===ae)return t;var m=i.get(a),f=a in l;if(m===void 0&&(!f||Bt(l,a)?.writable)&&(m=v(()=>{var d=Rt(f?l[a]:O),x=H(d);return x}),i.set(a,m)),m!==void 0){var p=g(m);return p===O?void 0:p}return Reflect.get(l,a,s)},getOwnPropertyDescriptor(l,a){var s=Reflect.getOwnPropertyDescriptor(l,a);if(s&&"value"in s){var m=i.get(a);m&&(s.value=g(m))}else if(s===void 0){var f=i.get(a),p=f?.v;if(f!==void 0&&p!==O)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return s},has(l,a){if(a===ae)return!0;var s=i.get(a),m=s!==void 0&&s.v!==O||Reflect.has(l,a);if(s!==void 0||k!==null&&(!m||Bt(l,a)?.writable)){s===void 0&&(s=v(()=>{var p=m?Rt(l[a]):O,d=H(p);return d}),i.set(a,s));var f=g(s);if(f===O)return!1}return m},set(l,a,s,m){var f=i.get(a),p=a in l;if(r&&a==="length")for(var d=s;d<f.v;d+=1){var x=i.get(d+"");x!==void 0?z(x,O):d in l&&(x=v(()=>H(O)),i.set(d+"",x))}if(f===void 0)(!p||Bt(l,a)?.writable)&&(f=v(()=>H(void 0)),z(f,Rt(s)),i.set(a,f));else{p=f.v!==O;var E=v(()=>Rt(s));z(f,E)}var c=Reflect.getOwnPropertyDescriptor(l,a);if(c?.set&&c.set.call(m,s),!p){if(r&&typeof a=="string"){var A=i.get("length"),S=Number(a);Number.isInteger(S)&&S>=A.v&&z(A,S+1)}se(o)}return!0},ownKeys(l){g(o);var a=Reflect.ownKeys(l).filter(f=>{var p=i.get(f);return p===void 0||p.v!==O});for(var[s,m]of i)m.v!==O&&!(s in l)&&a.push(s);return a},setPrototypeOf(){ln()}})}var Zi,Qi,tr,er;function vi(){if(Zi===void 0){Zi=window,Qi=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;tr=Bt(e,"firstChild").get,er=Bt(e,"nextSibling").get,Ri(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Ri(i)&&(i.__t=void 0)}}function W(t=""){return document.createTextNode(t)}function zt(t){return tr.call(t)}function Q(t){return er.call(t)}function B(t,e){if(!h)return zt(t);var i=zt(_);if(i===null)i=_.appendChild(W());else if(e&&i.nodeType!==ti){var r=W();return i?.before(r),L(r),r}return L(i),i}function Rn(t,e=!1){if(!h){var i=zt(t);return i instanceof Comment&&i.data===""?Q(i):i}if(e&&_?.nodeType!==ti){var r=W();return _?.before(r),L(r),r}return _}function lt(t,e=1,i=!1){let r=h?_:t;for(var o;e--;)o=r,r=Q(r);if(!h)return r;if(i&&r?.nodeType!==ti){var n=W();return r===null?o?.after(n):r.before(n),L(n),n}return L(r),r}function ai(t){t.textContent=""}function ir(){return!1}function zn(t){h&&zt(t)!==null&&ai(t)}let rr=!1;function Tn(){rr||(rr=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function Se(t){var e=y,i=k;Y(null),bt(null);try{return t()}finally{Y(e),bt(i)}}function Sn(t,e,i,r=i){t.addEventListener(e,()=>Se(i));const o=t.__on_r;o?t.__on_r=()=>{o(),r(!0)}:t.__on_r=()=>r(!0),Tn()}function Cn(t){k===null&&(y===null&&rn(),en()),It&&tn()}function Mn(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function st(t,e,i){var r=k;r!==null&&(r.f&q)!==0&&(t|=q);var o={ctx:J,deps:null,nodes_start:null,nodes_end:null,f:t|U|nt,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(i)try{de(o),o.f|=ke}catch(l){throw I(o),l}else e!==null&&Gt(o);var n=o;if(i&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&(n.f&Nt)===0&&(n=n.first,(t&ft)!==0&&(t&Vt)!==0&&n!==null&&(n.f|=Vt)),n!==null&&(n.parent=r,r!==null&&Mn(n,r),y!==null&&(y.f&N)!==0&&(t&jt)===0)){var v=y;(v.effects??=[]).push(n)}return o}function Ce(){return y!==null&&!pt}function nr(t){const e=st(Je,null,!1);return D(e,P),e.teardown=t,e}function pe(t){Cn();var e=k.f,i=!y&&(e&ct)!==0&&(e&ke)===0;if(i){var r=J;(r.e??=[]).push(t)}else return or(t)}function or(t){return st(Ke|Xr,t,!1)}function Bn(t){vt.ensure();const e=st(jt|Nt,t,!0);return()=>{I(e)}}function Nn(t){vt.ensure();const e=st(jt|Nt,t,!0);return(i={})=>new Promise(r=>{i.outro?te(e,()=>{I(e),r(void 0)}):(I(e),r(void 0))})}function vr(t){return st(Ke,t,!1)}function On(t){return st(Qe|Nt,t,!0)}function Me(t,e=0){return st(Je|e,t,!0)}function yt(t,e=[],i=[],r=[]){kn(r,e,i,o=>{st(Je,()=>t(...o.map(g)),!0)})}function Be(t,e=0){var i=st(ft|e,t,!0);return i}function tt(t){return st(ct|Nt,t,!0)}function ar(t){var e=t.teardown;if(e!==null){const i=It,r=y;dr(!0),Y(null);try{e.call(null)}finally{dr(i),Y(r)}}}function lr(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const o=i.ac;o!==null&&Se(()=>{o.abort(Kt)});var r=i.next;(i.f&jt)!==0?i.parent=null:I(i,e),i=r}}function Pn(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&ct)===0&&I(e),e=i}}function I(t,e=!0){var i=!1;(e||(t.f&Xe)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Ln(t.nodes_start,t.nodes_end),i=!0),lr(t,e&&!i),Oe(t,0),D(t,xt);var r=t.transitions;if(r!==null)for(const n of r)n.stop();ar(t);var o=t.parent;o!==null&&o.first!==null&&sr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Ln(t,e){for(;t!==null;){var i=t===e?null:Q(t);t.remove(),t=i}}function sr(t){var e=t.parent,i=t.prev,r=t.next;i!==null&&(i.next=r),r!==null&&(r.prev=i),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=i))}function te(t,e,i=!0){var r=[];li(t,r,!0),pr(r,()=>{i&&I(t),e&&e()})}function pr(t,e){var i=t.length;if(i>0){var r=()=>--i||e();for(var o of t)o.out(r)}else e()}function li(t,e,i){if((t.f&q)===0){if(t.f^=q,t.transitions!==null)for(const v of t.transitions)(v.is_global||i)&&e.push(v);for(var r=t.first;r!==null;){var o=r.next,n=(r.f&Vt)!==0||(r.f&ct)!==0&&(t.f&ft)!==0;li(r,e,n?i:!1),r=o}}}function si(t){br(t,!0)}function br(t,e){if((t.f&q)!==0){t.f^=q,(t.f&P)===0&&(D(t,U),Gt(t));for(var i=t.first;i!==null;){var r=i.next,o=(i.f&Vt)!==0||(i.f&ct)!==0;br(i,o?e:!1),i=r}if(t.transitions!==null)for(const n of t.transitions)(n.is_global||e)&&n.in()}}function mr(t,e){for(var i=t.nodes_start,r=t.nodes_end;i!==null;){var o=i===r?null:Q(i);e.append(i),i=o}}let Tt=!1;function Ne(t){Tt=t}let It=!1;function dr(t){It=t}let y=null,pt=!1;function Y(t){y=t}let k=null;function bt(t){k=t}let wt=null;function Dn(t){y!==null&&(wt===null?wt=[t]:wt.push(t))}let F=null,V=0,et=null;function Gn(t){et=t}let gr=1,be=0,Ft=be;function fr(t){Ft=t}function cr(){return++gr}function me(t){var e=t.f;if((e&U)!==0)return!0;if(e&N&&(t.f&=~Ot),(e&ut)!==0){var i=t.deps;if(i!==null)for(var r=i.length,o=0;o<r;o++){var n=i[o];if(me(n)&&Vi(n),n.wv>t.wv)return!0}(e&nt)!==0&&X===null&&D(t,P)}return!1}function ur(t,e,i=!0){var r=t.reactions;if(r!==null&&!wt?.includes(t))for(var o=0;o<r.length;o++){var n=r[o];(n.f&N)!==0?ur(n,e,!1):e===n&&(i?D(n,U):(n.f&P)!==0&&D(n,ut),Gt(n))}}function xr(t){var e=F,i=V,r=et,o=y,n=wt,v=J,l=pt,a=Ft,s=t.f;F=null,V=0,et=null,y=(s&(ct|jt))===0?t:null,wt=null,Jt(t.ctx),pt=!1,Ft=++be,t.ac!==null&&(Se(()=>{t.ac.abort(Kt)}),t.ac=null);try{t.f|=Ze;var m=t.fn,f=m(),p=t.deps;if(F!==null){var d;if(Oe(t,V),p!==null&&V>0)for(p.length=V+F.length,d=0;d<F.length;d++)p[V+d]=F[d];else t.deps=p=F;if(Tt&&Ce()&&(t.f&nt)!==0)for(d=V;d<p.length;d++)(p[d].reactions??=[]).push(t)}else p!==null&&V<p.length&&(Oe(t,V),p.length=V);if(Li()&&et!==null&&!pt&&p!==null&&(t.f&(N|ut|U))===0)for(d=0;d<et.length;d++)ur(et[d],t);return o!==null&&o!==t&&(be++,et!==null&&(r===null?r=et:r.push(...et))),(t.f&Et)!==0&&(t.f^=Et),f}catch(x){return Gi(x)}finally{t.f^=Ze,F=e,V=i,et=r,y=o,wt=n,Jt(v),pt=l,Ft=a}}function Hn(t,e){let i=e.reactions;if(i!==null){var r=qr.call(i,t);if(r!==-1){var o=i.length-1;o===0?i=e.reactions=null:(i[r]=i[o],i.pop())}}i===null&&(e.f&N)!==0&&(F===null||!F.includes(e))&&(D(e,ut),(e.f&nt)!==0&&(e.f^=nt,e.f&=~Ot),Wi(e),Oe(e,0))}function Oe(t,e){var i=t.deps;if(i!==null)for(var r=e;r<i.length;r++)Hn(t,i[r])}function de(t){var e=t.f;if((e&xt)===0){D(t,P);var i=k,r=Tt;k=t,Tt=!0;try{(e&ft)!==0?Pn(t):lr(t),ar(t);var o=xr(t);t.teardown=typeof o=="function"?o:null,t.wv=gr;var n;We&&dn&&(t.f&U)!==0&&t.deps}finally{Tt=r,k=i}}}async function In(){await Promise.resolve(),Dt()}function g(t){var e=t.f,i=(e&N)!==0;if(y!==null&&!pt){var r=k!==null&&(k.f&xt)!==0;if(!r&&!wt?.includes(t)){var o=y.deps;if((y.f&Ze)!==0)t.rv<be&&(t.rv=be,F===null&&o!==null&&o[V]===t?V++:F===null?F=[t]:F.includes(t)||F.push(t));else{(y.deps??=[]).push(t);var n=t.reactions;n===null?t.reactions=[y]:n.includes(y)||n.push(y)}}}if(It){if(At.has(t))return At.get(t);if(i){var v=t,l=v.v;return((v.f&P)===0&&v.reactions!==null||yr(v))&&(l=ni(v)),At.set(v,l),l}}else i&&!X?.has(t)&&(v=t,me(v)&&Vi(v),Tt&&Ce()&&(v.f&nt)===0&&hr(v));if(X?.has(t))return X.get(t);if((t.f&Et)!==0)throw t.v;return t.v}function hr(t){if(t.deps!==null){t.f^=nt;for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&N)!==0&&(e.f&nt)===0&&hr(e)}}function yr(t){if(t.v===O)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(At.has(e)||(e.f&N)!==0&&yr(e))return!0;return!1}function Pe(t){var e=pt;try{return pt=!0,t()}finally{pt=e}}const Fn=-7169;function D(t,e){t.f=t.f&Fn|e}const wr=new Set,pi=new Set;function Un(t,e,i,r={}){function o(n){if(r.capture||ge.call(e,n),!n.cancelBubble)return Se(()=>i?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Xt(()=>{e.addEventListener(t,o,r)}):e.addEventListener(t,o,r),o}function Yn(t,e,i,r,o){var n={capture:r,passive:o},v=Un(t,e,i,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&nr(()=>{e.removeEventListener(t,v,n)})}function qn(t){for(var e=0;e<t.length;e++)wr.add(t[e]);for(var i of pi)i(t)}let _r=null;function ge(t){var e=this,i=e.ownerDocument,r=t.type,o=t.composedPath?.()||[],n=o[0]||t.target;_r=t;var v=0,l=_r===t&&t.__root;if(l){var a=o.indexOf(l);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var s=o.indexOf(e);if(s===-1)return;a<=s&&(v=a)}if(n=o[v]||t.target,n!==e){we(t,"currentTarget",{configurable:!0,get(){return n||i}});var m=y,f=k;Y(null),bt(null);try{for(var p,d=[];n!==null;){var x=n.assignedSlot||n.parentNode||n.host||null;try{var E=n["__"+r];E!=null&&(!n.disabled||t.target===n)&&E.call(n,t)}catch(c){p?d.push(c):p=c}if(t.cancelBubble||x===e||x===null)break;n=x}if(p){for(let c of d)queueMicrotask(()=>{throw c});throw p}}finally{t.__root=e,delete t.currentTarget,Y(m),bt(f)}}}function Wn(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function fe(t,e){var i=k;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function mt(t,e){var i=(e&Ur)!==0,r,o=!t.startsWith("<!>");return()=>{if(h)return fe(_,null),_;r===void 0&&(r=Wn(o?t:"<!>"+t),r=zt(r));var n=i||Qi?document.importNode(r,!0):r.cloneNode(!0);return fe(n,n),n}}function Vn(){if(h)return fe(_,null),_;var t=document.createDocumentFragment(),e=document.createComment(""),i=W();return t.append(e,i),fe(e,i),t}function it(t,e){if(h){var i=k;((i.f&ke)===0||i.nodes_end===null)&&(i.nodes_end=_),je();return}t!==null&&t.before(e)}const Kn=["touchstart","touchmove"];function Jn(t){return Kn.includes(t)}function Le(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function kr(t,e){return $r(t,e)}function Xn(t,e){vi(),e.intro=e.intro??!1;const i=e.target,r=h,o=_;try{for(var n=zt(i);n&&(n.nodeType!==Pt||n.data!==ji);)n=Q(n);if(!n)throw Wt;ot(!0),L(n);const v=$r(t,{...e,anchor:n});return ot(!1),v}catch(v){if(v instanceof Error&&v.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw v;return v!==
|
|
3
|
-
\r\f \v\uFEFF`];function io(t,e,i){var r=t==null?"":""+t;if(e&&(r=r?r+" "+e:e),i){for(var o in i)if(i[o])r=r?r+" "+o:o;else if(r.length)for(var n=o.length,v=0;(v=r.indexOf(o,v))>=0;){var l=v+n;(v===0||jr.includes(r[v-1]))&&(l===r.length||jr.includes(r[l]))?r=(v===0?"":r.substring(0,v))+r.substring(l+1):v=l}}return r===""?null:r}function ro(t,e){return t==null?null:String(t)}function re(t,e,i,r,o,n){var v=t.__className;if(h||v!==i||v===void 0){var l=io(i,r,n);(!h||l!==t.getAttribute("class"))&&(l==null?t.removeAttribute("class"):t.className=l),t.__className=i}else if(n&&o!==n)for(var a in n){var s=!!n[a];(o==null||s!==!!o[a])&&t.classList.toggle(a,s)}return n}function De(t,e,i,r){var o=t.__style;if(h||o!==e){var n=ro(e);(!h||n!==t.getAttribute("style"))&&(n==null?t.removeAttribute("style"):t.style.cssText=n),t.__style=e}return r}const no=Symbol("is custom element"),oo=Symbol("is html");function ne(t,e,i,r){var o=vo(t);h&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=i)&&(e==="loading"&&(t[Zr]=i),i==null?t.removeAttribute(e):typeof i!="string"&&ao(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function vo(t){return t.__attributes??={[no]:t.nodeName.includes("-"),[oo]:t.namespaceURI===Yr}}var Er=new Map;function ao(t){var e=t.getAttribute("is")||t.nodeName,i=Er.get(e);if(i)return i;Er.set(e,i=[]);for(var r,o=t,n=Element.prototype;n!==o;){r=Wr(o);for(var v in r)r[v].set&&i.push(v);o=Ai(o)}return i}function lo(t,e,i=e){var r=new WeakSet;Sn(t,"input",async o=>{var n=o?t.defaultValue:t.value;if(n=mi(t)?di(n):n,i(n),R!==null&&r.add(R),await In(),n!==(n=e())){var v=t.selectionStart,l=t.selectionEnd,a=t.value.length;if(t.value=n??"",l!==null){var s=t.value.length;v===l&&l===a&&s>a?(t.selectionStart=s,t.selectionEnd=s):(t.selectionStart=v,t.selectionEnd=Math.min(l,s))}}}),(h&&t.defaultValue!==t.value||Pe(e)==null&&t.value)&&(i(mi(t)?di(t.value):t.value),R!==null&&r.add(R)),Me(()=>{var o=e();if(t===document.activeElement){var n=Re??R;if(r.has(n))return}mi(t)&&o===di(t.value)||t.type==="date"&&!o&&!t.value||o!==t.value&&(t.value=o??"")})}function mi(t){var e=t.type;return e==="number"||e==="range"}function di(t){return t===""?null:+t}function Ar(t,e){return t===e||t?.[ae]===e}function Rr(t={},e,i,r){return vr(()=>{var o,n;return Me(()=>{o=n,n=[],Pe(()=>{t!==i(...n)&&(e(t,...n),o&&Ar(i(...o),t)&&e(null,...o))})}),()=>{Xt(()=>{n&&Ar(i(...n),t)&&e(null,...n)})}}),t}let Ge=!1;function so(t){var e=Ge;try{return Ge=!1,[t(),Ge]}finally{Ge=e}}function ce(t,e,i,r){var o=(i&Ir)!==0,n=(i&Fr)!==0,v=r,l=!0,a=()=>(l&&(l=!1,v=n?Pe(r):r),v),s;if(o){var m=ae in t||Si in t;s=Bt(t,e)?.set??(m&&e in t?S=>t[e]=S:void 0)}var f,p=!1;o?[f,p]=so(()=>t[e]):f=t[e],f===void 0&&r!==void 0&&(f=a(),s&&(vn(),s(f)));var d;if(d=()=>{var S=t[e];return S===void 0?a():(l=!0,S)},(i&Hr)===0)return d;if(s){var x=t.$$legacy;return(function(S,K){return arguments.length>0?((!K||x||p)&&s(K?d():S),S):d()})}var E=!1,c=((i&Gr)!==0?ri:qi)(()=>(E=!1,d()));o&&g(c);var A=k;return(function(S,K){if(arguments.length>0){const T=K?g(c):o?Rt(S):S;return z(c,T),E=!0,v!==void 0&&(v=T),S}return It&&E||(A.f&xt)!==0?c.v:g(c)})}function po(t){return new bo(t)}class bo{#e;#t;constructor(e){var i=new Map,r=(n,v)=>{var l=Ji(v,!1,!1);return i.set(n,l),l};const o=new Proxy({...e.props||{},$$events:{}},{get(n,v){return g(i.get(v)??r(v,Reflect.get(n,v)))},has(n,v){return v===Si?!0:(g(i.get(v)??r(v,Reflect.get(n,v))),Reflect.has(n,v))},set(n,v,l){return z(i.get(v)??r(v,l),l),Reflect.set(n,v,l)}});this.#t=(e.hydrate?Xn:kr)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Dt(),this.#e=o.$$events;for(const n of Object.keys(this.#t))n==="$set"||n==="$destroy"||n==="$on"||we(this,n,{get(){return this.#t[n]},set(v){this.#t[n]=v},enumerable:!0});this.#t.$set=n=>{Object.assign(o,n)},this.#t.$destroy=()=>{Zn(this.#t)}}$set(e){this.#t.$set(e)}$on(e,i){this.#e[e]=this.#e[e]||[];const r=(...o)=>i.call(this,...o);return this.#e[e].push(r),()=>{this.#e[e]=this.#e[e].filter(o=>o!==r)}}$destroy(){this.#t.$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;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return o=>{const n=document.createElement("slot");r!=="default"&&(n.name=r),it(o,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},i=mo(this);for(const r of this.$$s)r in i&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const o=this.$$g_p(r.name);o in this.$$d||(this.$$d[o]=He(o,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=po({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Bn(()=>{Me(()=>{this.$$r=!0;for(const r of ye(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const o=He(r,this.$$d[r],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,o)}this.$$r=!1})});for(const r in this.$$l)for(const o of this.$$l[r]){const n=this.$$c.$on(r,o);this.$$l_u.set(o,n)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=He(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return ye(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function He(t,e,i,r){const o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!i[t])return e;if(r==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function mo(t){const e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function go(t,e,i,r,o,n){let v=class extends zr{constructor(){super(t,i,o),this.$$p_d=e}static get observedAttributes(){return ye(e).map(l=>(e[l].attribute||l).toLowerCase())}};return ye(e).forEach(l=>{we(v.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=He(l,a,e),this.$$d[l]=a;var s=this.$$c;if(s){var m=Bt(s,l)?.get;m?s[l]=a:s.$set({[l]:a})}}})}),r.forEach(l=>{we(v.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=v,v}var Ut={},Tr;function fo(){if(Tr)return Ut;Tr=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.LanguageTranslator=void 0,Ut.getChildStyleToPass=t,Ut.addComponent=e;function t(r,o){var n,v,l="";try{if(r&&o?.length&&(!((n=Object.keys(r))===null||n===void 0)&&n.length)&&(!((v=o?.filter(function(p){return Object.keys(r).includes(p.name)}))===null||v===void 0)&&v.length))for(var a=function(p){var d=o?.filter(function(x){return x.name===p&&x.defaultValue!==r[p]});d&&(l+="".concat(p,":").concat(r[p],";"))},s=0,m=Object.keys(r);s<m.length;s++){var f=m[s];a(f)}}catch(p){console.error("error getting child style to pass",p)}finally{return l}}function e(r){var o,n=((o=r?.repoName.split("/"))===null||o===void 0?void 0:o[1])||r?.repoName;if(!n)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var v=r?.iifePath||"main.iife.js";if(!document.getElementById(n+"-script"))try{var l=document.createElement("script");if(l.id=n+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(v),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=n.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(n.replace(a+"-",""),"/").concat(v)}document.head.appendChild(l)}catch(s){console.warn(s)}}var i=(function(){function r(o){if(this.lang="",!o?.dictionary)throw new Error("no dictionary provided");this.dictionary=o.dictionary,this.setLang(o?.lang)}return r.prototype.setLang=function(o){o||(o=r.getDefaultLang()),this.lang=o},r.prototype.translateWord=function(o,n){return r.getDictionaryWord(o,this.dictionary,n||this.lang)},r.prototype.translateDate=function(o,n,v){return r.formatDate(o,n,v||this.lang)},r.getDefaultLang=function(){var o,n,v,l="en";return navigator?.languages&&(!((v=(n=(o=navigator.languages[0])===null||o===void 0?void 0:o.split("-")[0])===null||n===void 0?void 0:n.toLowerCase())===null||v===void 0)&&v.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(o,n,v){var l;if(!o)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(v&&(!((l=n[v])===null||l===void 0)&&l[o]))return n[v][o];var a="",s=r.getDefaultLang();if(!v||s!==v){var m=n?.[s];m?.[o]&&(a=m[o])}return a},r.formatDate=function(o,n,v){if(!o)throw new Error("no date provided");if(typeof o.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(v||r.getDefaultLang(),n);return l.format(o)},r})();return Ut.LanguageTranslator=i,Ut}fo();var co=mt('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1p3vbiv"/>'),uo=mt('<img class="file-image svelte-1p3vbiv"/>'),xo=mt("<i></i>"),ho=mt('<div class="col-6 col-md-4 col-lg-3 svelte-1p3vbiv"><div class="file-card svelte-1p3vbiv"><div class="file-preview svelte-1p3vbiv"><!></div> <div class="file-details svelte-1p3vbiv"><div class="file-name svelte-1p3vbiv"> </div> <div class="file-meta svelte-1p3vbiv"><span class="file-size svelte-1p3vbiv"> </span></div></div> <button type="button" class="btn btn-sm btn-outline-danger remove-file-btn svelte-1p3vbiv" aria-label="Remove file" title="Remove file"><i class="bi bi-x svelte-1p3vbiv"></i></button></div></div>'),yo=mt('<div id="files-display" class="svelte-1p3vbiv"><div class="row g-2 svelte-1p3vbiv"></div></div>'),wo=mt('<button id="maximize-button" type="button"><i></i></button>'),_o=mt('<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger svelte-1p3vbiv"> <span class="visually-hidden svelte-1p3vbiv">selected files</span></span>'),ko=mt('<label id="upload-file" class="btn file-button btn-sm position-relative svelte-1p3vbiv" style="--tag-color: var(--bs-primary, #007bff)"><input type="file" class="svelte-1p3vbiv"/> <i class="bi bi-paperclip svelte-1p3vbiv"></i> <!></label>'),$o=mt('<button type="button"><i></i> </button>'),jo=mt('<div id="chat-container" class="svelte-1p3vbiv"><div id="chat-box" class="svelte-1p3vbiv"><!> <div id="textarea-container" class="svelte-1p3vbiv"><textarea id="send-message-text" placeholder="Type your message..."></textarea> <!></div> <div id="buttons-container" class="svelte-1p3vbiv"><div id="left-buttons" class="svelte-1p3vbiv"><!> <!></div> <div id="right-buttons" class="svelte-1p3vbiv"><button type="button" id="send-message-button" aria-label="Send message" class="svelte-1p3vbiv"><i class="bi bi-send-fill svelte-1p3vbiv"></i></button></div></div></div></div>');const Eo={hash:"svelte-1p3vbiv",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(Ai){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Zr=1,Qr=2,Ri=4,tn=8,en=16,rn=1,nn=4,on=8,vn=16,ln=2,Ti="[",Ve="[!",zi="[?",We="]",Jt={},D=Symbol(),Si="http://www.w3.org/1999/xhtml",an=!1;var Ci=Array.isArray,sn=Array.prototype.indexOf,Xt=Array.prototype.includes,ke=Array.from,$e=Object.keys,je=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,pn=Object.getOwnPropertyDescriptors,bn=Object.prototype,mn=Array.prototype,Mi=Object.getPrototypeOf,Ni=Object.isExtensible;const dn=()=>{};function gn(t){for(var e=0;e<t.length;e++)t[e]()}function Bi(){var t,e,i=new Promise((r,n)=>{t=r,e=n});return{promise:i,resolve:t,reject:e}}const O=2,Zt=4,Ee=8,Oi=1<<24,$t=16,vt=32,jt=64,qe=128,J=512,N=1024,G=2048,mt=4096,V=8192,X=16384,Et=32768,Ke=1<<25,Qt=65536,Li=1<<17,Pi=1<<18,At=1<<19,fn=1<<20,dt=1<<25,It=65536,Je=1<<21,Xe=1<<22,Rt=1<<23,me=Symbol("$state"),Di=Symbol("legacy props"),cn=Symbol(""),ht=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},un=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Ae=3,te=8;function xn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function hn(t,e,i){throw new Error("https://svelte.dev/e/each_key_duplicate")}function yn(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function wn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _n(t){throw new Error("https://svelte.dev/e/effect_orphan")}function kn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function $n(){throw new Error("https://svelte.dev/e/hydration_failed")}function jn(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function En(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function An(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Rn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Tn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Re(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function zn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function lt(t){w=t}let $;function I(t){if(t===null)throw Re(),Jt;return $=t}function Te(){return I(Z($))}function B(t){if(w){if(Z($)!==null)throw Re(),Jt;$=t}}function Gi(t=1){if(w){for(var e=t,i=$;e--;)i=Z(i);$=i}}function ze(t=!0){for(var e=0,i=$;;){if(i.nodeType===te){var r=i.data;if(r===We){if(e===0)return i;e-=1}else(r===Ti||r===Ve||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(e+=1)}var n=Z(i);t&&i.remove(),i=n}}function Ii(t){if(!t||t.nodeType!==te)throw Re(),Jt;return t.data}function Hi(t){return t===this.v}function Sn(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Fi(t){return!Sn(t,this.v)}let Cn=!1,W=null;function ee(t){W=t}function Ui(t,e=!1,i){W={p:W,i:!1,c:null,e:null,s:t,x:null,r:k,l:null}}function Yi(t){var e=W,i=e.e;if(i!==null){e.e=null;for(var r of i)ur(r)}return t!==void 0&&(e.x=t),e.i=!0,W=e.p,t??{}}function Vi(){return!0}let Ht=[];function Wi(){var t=Ht;Ht=[],gn(t)}function Tt(t){if(Ht.length===0&&!de){var e=Ht;queueMicrotask(()=>{e===Ht&&Wi()})}Ht.push(t)}function Mn(){for(;Ht.length>0;)Wi()}function qi(t){var e=k;if(e===null)return _.f|=Rt,t;if((e.f&Et)===0&&(e.f&Zt)===0)throw t;zt(t,e)}function zt(t,e){for(;e!==null;){if((e.f&qe)!==0){if((e.f&Et)===0)throw t;try{e.b.error(t);return}catch(i){t=i}}e=e.parent}throw t}const Nn=-7169;function C(t,e){t.f=t.f&Nn|e}function Ze(t){(t.f&J)!==0||t.deps===null?C(t,N):C(t,mt)}function Ki(t){if(t!==null)for(const e of t)(e.f&O)===0||(e.f&It)===0||(e.f^=It,Ki(e.deps))}function Ji(t,e,i){(t.f&G)!==0?e.add(t):(t.f&mt)!==0&&i.add(t),Ki(t.deps),C(t,N)}let Se=!1;function Bn(t){var e=Se;try{return Se=!1,[t(),Se]}finally{Se=e}}const St=new Set;let E=null,at=null,Qe=null,de=!1,ti=!1,ie=null,Ce=null;var Xi=0;let On=1;class yt{id=On++;current=new Map;previous=new Map;#t=new Set;#i=new Set;#e=new Map;#n=new Map;#o=null;#r=[];#v=new Set;#l=new Set;#a=new Map;is_fork=!1;#b=!1;#s=new Set;#m(){return this.is_fork||this.#n.size>0}#g(){for(const r of this.#s)for(const n of r.#n.keys()){for(var e=!1,i=n;i.parent!==null;){if(this.#a.has(i)){e=!0;break}i=i.parent}if(!e)return!0}return!1}skip_effect(e){this.#a.has(e)||this.#a.set(e,{d:[],m:[]})}unskip_effect(e){var i=this.#a.get(e);if(i){this.#a.delete(e);for(var r of i.d)C(r,G),this.schedule(r);for(r of i.m)C(r,mt),this.schedule(r)}}#d(){if(Xi++>1e3&&(St.delete(this),Ln()),!this.#m()){for(const l of this.#v)this.#l.delete(l),C(l,G),this.schedule(l);for(const l of this.#l)C(l,mt),this.schedule(l)}const e=this.#r;this.#r=[],this.apply();var i=ie=[],r=[],n=Ce=[];for(const l of e)try{this.#p(l,i,r)}catch(a){throw ir(l),a}if(E=null,n.length>0){var o=yt.ensure();for(const l of n)o.schedule(l)}if(ie=null,Ce=null,this.#m()||this.#g()){this.#f(r),this.#f(i);for(const[l,a]of this.#a)er(l,a)}else{this.#e.size===0&&St.delete(this),this.#v.clear(),this.#l.clear();for(const l of this.#t)l(this);this.#t.clear(),Zi(r),Zi(i),this.#o?.resolve()}var v=E;if(this.#r.length>0){const l=v??=this;l.#r.push(...this.#r.filter(a=>!l.#r.includes(a)))}v!==null&&(St.add(v),v.#d()),St.has(this)||this.#c()}#p(e,i,r){e.f^=N;for(var n=e.first;n!==null;){var o=n.f,v=(o&(vt|jt))!==0,l=v&&(o&N)!==0,a=l||(o&V)!==0||this.#a.has(n);if(!a&&n.fn!==null){v?n.f^=N:(o&Zt)!==0?i.push(n):ce(n)&&((o&$t)!==0&&this.#l.add(n),ne(n));var s=n.first;if(s!==null){n=s;continue}}for(;n!==null;){var p=n.next;if(p!==null){n=p;break}n=n.parent}}}#f(e){for(var i=0;i<e.length;i+=1)Ji(e[i],this.#v,this.#l)}capture(e,i,r=!1){i!==D&&!this.previous.has(e)&&this.previous.set(e,i),(e.f&Rt)===0&&(this.current.set(e,[e.v,r]),at?.set(e,e.v))}activate(){E=this}deactivate(){E=null,at=null}flush(){try{ti=!0,E=this,this.#d()}finally{Xi=0,Qe=null,ie=null,Ce=null,ti=!1,E=null,at=null,Ct.clear()}}discard(){for(const e of this.#i)e(this);this.#i.clear(),St.delete(this)}#c(){for(const s of St){var e=s.id<this.id,i=[];for(const[p,[c,b]]of this.current){if(s.current.has(p)){var r=s.current.get(p)[0];if(e&&c!==r)s.current.set(p,[c,b]);else continue}i.push(p)}var n=[...s.current.keys()].filter(p=>!this.current.has(p));if(n.length===0)e&&s.discard();else if(i.length>0){s.activate();var o=new Set,v=new Map;for(var l of i)Qi(l,n,o,v);if(s.#r.length>0){s.apply();for(var a of s.#r)s.#p(a,[],[]);s.#r=[]}s.deactivate()}}for(const s of St)s.#s.has(this)&&(s.#s.delete(this),s.#s.size===0&&!s.#m()&&(s.activate(),s.#d()))}increment(e,i){let r=this.#e.get(i)??0;if(this.#e.set(i,r+1),e){let n=this.#n.get(i)??0;this.#n.set(i,n+1)}}decrement(e,i,r){let n=this.#e.get(i)??0;if(n===1?this.#e.delete(i):this.#e.set(i,n-1),e){let o=this.#n.get(i)??0;o===1?this.#n.delete(i):this.#n.set(i,o-1)}this.#b||r||(this.#b=!0,Tt(()=>{this.#b=!1,this.flush()}))}transfer_effects(e,i){for(const r of e)this.#v.add(r);for(const r of i)this.#l.add(r);e.clear(),i.clear()}oncommit(e){this.#t.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#o??=Bi()).promise}static ensure(){if(E===null){const e=E=new yt;ti||(St.add(E),de||Tt(()=>{E===e&&e.flush()}))}return E}apply(){{at=null;return}}schedule(e){if(Qe=e,e.b?.is_pending&&(e.f&(Zt|Ee|Oi))!==0&&(e.f&Et)===0){e.b.defer_effect(e);return}for(var i=e;i.parent!==null;){i=i.parent;var r=i.f;if(ie!==null&&i===k&&(_===null||(_.f&O)===0))return;if((r&(jt|vt))!==0){if((r&N)===0)return;i.f^=N}}this.#r.push(i)}}function Ft(t){var e=de;de=!0;try{for(var i;;){if(Mn(),E===null)return i;E.flush()}}finally{de=e}}function Ln(){try{kn()}catch(t){zt(t,Qe)}}let wt=null;function Zi(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var r=t[i++];if((r.f&(X|V))===0&&ce(r)&&(wt=new Set,ne(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&yr(r),wt?.size>0)){Ct.clear();for(const n of wt){if((n.f&(X|V))!==0)continue;const o=[n];let v=n.parent;for(;v!==null;)wt.has(v)&&(wt.delete(v),o.push(v)),v=v.parent;for(let l=o.length-1;l>=0;l--){const a=o[l];(a.f&(X|V))===0&&ne(a)}}wt.clear()}}wt=null}}function Qi(t,e,i,r){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const n of t.reactions){const o=n.f;(o&O)!==0?Qi(n,e,i,r):(o&(Xe|$t))!==0&&(o&G)===0&&tr(n,e,r)&&(C(n,G),ei(n))}}function tr(t,e,i){const r=i.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const n of t.deps){if(Xt.call(e,n))return!0;if((n.f&O)!==0&&tr(n,e,i))return i.set(n,!0),!0}return i.set(t,!1),!1}function ei(t){E.schedule(t)}function er(t,e){if(!((t.f&vt)!==0&&(t.f&N)!==0)){(t.f&G)!==0?e.d.push(t):(t.f&mt)!==0&&e.m.push(t),C(t,N);for(var i=t.first;i!==null;)er(i,e),i=i.next}}function ir(t){C(t,N);for(var e=t.first;e!==null;)ir(e),e=e.next}function Pn(t){let e=0,i=Ut(0),r;return()=>{ai()&&(f(i),Oe(()=>(e===0&&(r=De(()=>t(()=>ge(i)))),e+=1,()=>{Tt(()=>{e-=1,e===0&&(r?.(),r=void 0,ge(i))})})))}}var Dn=Qt|At;function Gn(t,e,i,r){new In(t,e,i,r)}class In{parent;is_pending=!1;transform_error;#t;#i=w?$:null;#e;#n;#o;#r=null;#v=null;#l=null;#a=null;#b=0;#s=0;#m=!1;#g=new Set;#d=new Set;#p=null;#f=Pn(()=>(this.#p=Ut(this.#b),()=>{this.#p=null}));constructor(e,i,r,n){this.#t=e,this.#e=i,this.#n=o=>{var v=k;v.b=this,v.f|=qe,r(o)},this.parent=k.b,this.transform_error=n??this.parent?.transform_error??(o=>o),this.#o=Le(()=>{if(w){const o=this.#i;Te();const v=o.data===Ve;if(o.data.startsWith(zi)){const a=JSON.parse(o.data.slice(zi.length));this.#w(a)}else v?this.#_():this.#c()}else this.#h()},Dn),w&&(this.#t=$)}#c(){try{this.#r=Q(()=>this.#n(this.#t))}catch(e){this.error(e)}}#w(e){const i=this.#e.failed;i&&(this.#l=Q(()=>{i(this.#t,()=>e,()=>()=>{})}))}#_(){const e=this.#e.pending;e&&(this.is_pending=!0,this.#v=Q(()=>e(this.#t)),Tt(()=>{var i=this.#a=document.createDocumentFragment(),r=q();i.append(r),this.#r=this.#x(()=>Q(()=>this.#n(r))),this.#s===0&&(this.#t.before(i),this.#a=null,Yt(this.#v,()=>{this.#v=null}),this.#u(E))}))}#h(){try{if(this.is_pending=this.has_pending_snippet(),this.#s=0,this.#b=0,this.#r=Q(()=>{this.#n(this.#t)}),this.#s>0){var e=this.#a=document.createDocumentFragment();bi(this.#r,e);const i=this.#e.pending;this.#v=Q(()=>i(this.#t))}else this.#u(E)}catch(i){this.error(i)}}#u(e){this.is_pending=!1,e.transfer_effects(this.#g,this.#d)}defer_effect(e){Ji(e,this.#g,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#x(e){var i=k,r=_,n=W;ct(this.#o),tt(this.#o),ee(this.#o.ctx);try{return yt.ensure(),e()}catch(o){return qi(o),null}finally{ct(i),tt(r),ee(n)}}#y(e,i){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(e,i);return}this.#s+=e,this.#s===0&&(this.#u(i),this.#v&&Yt(this.#v,()=>{this.#v=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(e,i){this.#y(e,i),this.#b+=e,!(!this.#p||this.#m)&&(this.#m=!0,Tt(()=>{this.#m=!1,this.#p&&re(this.#p,this.#b)}))}get_effect_pending(){return this.#f(),f(this.#p)}error(e){var i=this.#e.onerror;let r=this.#e.failed;if(!i&&!r)throw e;this.#r&&(F(this.#r),this.#r=null),this.#v&&(F(this.#v),this.#v=null),this.#l&&(F(this.#l),this.#l=null),w&&(I(this.#i),Gi(),I(ze()));var n=!1,o=!1;const v=()=>{if(n){zn();return}n=!0,o&&Tn(),this.#l!==null&&Yt(this.#l,()=>{this.#l=null}),this.#x(()=>{this.#h()})},l=a=>{try{o=!0,i?.(a,v),o=!1}catch(s){zt(s,this.#o&&this.#o.parent)}r&&(this.#l=this.#x(()=>{try{return Q(()=>{var s=k;s.b=this,s.f|=qe,r(this.#t,()=>a,()=>v)})}catch(s){return zt(s,this.#o.parent),null}}))};Tt(()=>{var a;try{a=this.transform_error(e)}catch(s){zt(s,this.#o&&this.#o.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,s=>zt(s,this.#o&&this.#o.parent)):l(a)})}}function Hn(t,e,i,r){const n=Ne;var o=t.filter(b=>!b.settled);if(i.length===0&&o.length===0){r(e.map(n));return}var v=k,l=Fn(),a=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(b=>b.promise)):null;function s(b){l();try{r(b)}catch(u){(v.f&X)===0&&zt(u,v)}Me()}if(i.length===0){a.then(()=>s(e.map(n)));return}var p=rr();function c(){Promise.all(i.map(b=>Un(b))).then(b=>s([...e.map(n),...b])).catch(b=>zt(b,v)).finally(()=>p())}a?a.then(()=>{l(),c(),Me()}):c()}function Fn(){var t=k,e=_,i=W,r=E;return function(o=!0){ct(t),tt(e),ee(i),o&&(t.f&X)===0&&(r?.activate(),r?.apply())}}function Me(t=!0){ct(null),tt(null),ee(null),t&&E?.deactivate()}function rr(){var t=k,e=t.b,i=E,r=e.is_rendered();return e.update_pending_count(1,i),i.increment(r,t),(n=!1)=>{e.update_pending_count(-1,i),i.decrement(r,t,n)}}function Ne(t){var e=O|G,i=_!==null&&(_.f&O)!==0?_:null;return k!==null&&(k.f|=At),{ctx:W,deps:null,effects:null,equals:Hi,f:e,fn:t,reactions:null,rv:0,v:D,wv:0,parent:i??k,ac:null}}function Un(t,e,i){let r=k;r===null&&xn();var n=void 0,o=Ut(D),v=!_,l=new Map;return no(()=>{var a=k,s=Bi();n=s.promise;try{Promise.resolve(t()).then(s.resolve,s.reject).finally(Me)}catch(u){s.reject(u),Me()}var p=E;if(v){if((a.f&Et)!==0)var c=rr();if(r.b.is_rendered())l.get(p)?.reject(ht),l.delete(p);else{for(const u of l.values())u.reject(ht);l.clear()}l.set(p,s)}const b=(u,g=void 0)=>{if(c){var h=g===ht;c(h)}if(!(g===ht||(a.f&X)!==0)){if(p.activate(),g)o.f|=Rt,re(o,g);else{(o.f&Rt)!==0&&(o.f^=Rt),re(o,u);for(const[d,y]of l){if(l.delete(d),d===p)break;y.reject(ht)}}p.deactivate()}};s.promise.then(b,u=>b(null,u||"unknown"))}),cr(()=>{for(const a of l.values())a.reject(ht)}),new Promise(a=>{function s(p){function c(){p===n?a(o):s(n)}p.then(c,c)}s(n)})}function Yn(t){const e=Ne(t);return $r(e),e}function nr(t){const e=Ne(t);return e.equals=Fi,e}function Vn(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)F(e[i])}}function Wn(t){for(var e=t.parent;e!==null;){if((e.f&O)===0)return(e.f&X)===0?e:null;e=e.parent}return null}function ii(t){var e,i=k;ct(Wn(t));try{t.f&=~It,Vn(t),e=Tr(t)}finally{ct(i)}return e}function or(t){var e=t.v,i=ii(t);if(!t.equals(i)&&(t.wv=Ar(),(!E?.is_fork||t.deps===null)&&(t.v=i,E?.capture(t,e,!0),t.deps===null))){C(t,N);return}Bt||(at!==null?(ai()||E?.is_fork)&&at.set(t,i):Ze(t))}function qn(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(ht),e.teardown=dn,e.ac=null,ue(e,0),si(e))}function vr(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&ne(e)}let ri=new Set;const Ct=new Map;let lr=!1;function Ut(t,e){var i={f:0,v:t,reactions:null,equals:Hi,rv:0,wv:0};return i}function H(t,e){const i=Ut(t);return $r(i),i}function ar(t,e=!1,i=!0){const r=Ut(t);return e||(r.equals=Fi),r}function S(t,e,i=!1){_!==null&&(!st||(_.f&Li)!==0)&&Vi()&&(_.f&(O|$t|Xe|Li))!==0&&(et===null||!Xt.call(et,t))&&Rn();let r=i?Mt(e):e;return re(t,r,Ce)}function re(t,e,i=null){if(!t.equals(e)){var r=t.v;Bt?Ct.set(t,e):Ct.set(t,r),t.v=e;var n=yt.ensure();if(n.capture(t,r),(t.f&O)!==0){const o=t;(t.f&G)!==0&&ii(o),at===null&&Ze(o)}t.wv=Ar(),sr(t,G,i),k!==null&&(k.f&N)!==0&&(k.f&(vt|jt))===0&&(it===null?lo([t]):it.push(t)),!n.is_fork&&ri.size>0&&!lr&&Kn()}return e}function Kn(){lr=!1;for(const t of ri)(t.f&N)!==0&&C(t,mt),ce(t)&&ne(t);ri.clear()}function ge(t){S(t,t.v+1)}function sr(t,e,i){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var v=r[o],l=v.f,a=(l&G)===0;if(a&&C(v,e),(l&O)!==0){var s=v;at?.delete(s),(l&It)===0&&(l&J&&(v.f|=It),sr(s,mt,i))}else if(a){var p=v;(l&$t)!==0&&wt!==null&&wt.add(p),i!==null?i.push(p):ei(p)}}}function Mt(t){if(typeof t!="object"||t===null||me in t)return t;const e=Mi(t);if(e!==bn&&e!==mn)return t;var i=new Map,r=Ci(t),n=H(0),o=Wt,v=l=>{if(Wt===o)return l();var a=_,s=Wt;tt(null),Er(o);var p=l();return tt(a),Er(s),p};return r&&i.set("length",H(t.length)),new Proxy(t,{defineProperty(l,a,s){(!("value"in s)||s.configurable===!1||s.enumerable===!1||s.writable===!1)&&En();var p=i.get(a);return p===void 0?v(()=>{var c=H(s.value);return i.set(a,c),c}):S(p,s.value,!0),!0},deleteProperty(l,a){var s=i.get(a);if(s===void 0){if(a in l){const p=v(()=>H(D));i.set(a,p),ge(n)}}else S(s,D),ge(n);return!0},get(l,a,s){if(a===me)return t;var p=i.get(a),c=a in l;if(p===void 0&&(!c||Gt(l,a)?.writable)&&(p=v(()=>{var u=Mt(c?l[a]:D),g=H(u);return g}),i.set(a,p)),p!==void 0){var b=f(p);return b===D?void 0:b}return Reflect.get(l,a,s)},getOwnPropertyDescriptor(l,a){var s=Reflect.getOwnPropertyDescriptor(l,a);if(s&&"value"in s){var p=i.get(a);p&&(s.value=f(p))}else if(s===void 0){var c=i.get(a),b=c?.v;if(c!==void 0&&b!==D)return{enumerable:!0,configurable:!0,value:b,writable:!0}}return s},has(l,a){if(a===me)return!0;var s=i.get(a),p=s!==void 0&&s.v!==D||Reflect.has(l,a);if(s!==void 0||k!==null&&(!p||Gt(l,a)?.writable)){s===void 0&&(s=v(()=>{var b=p?Mt(l[a]):D,u=H(b);return u}),i.set(a,s));var c=f(s);if(c===D)return!1}return p},set(l,a,s,p){var c=i.get(a),b=a in l;if(r&&a==="length")for(var u=s;u<c.v;u+=1){var g=i.get(u+"");g!==void 0?S(g,D):u in l&&(g=v(()=>H(D)),i.set(u+"",g))}if(c===void 0)(!b||Gt(l,a)?.writable)&&(c=v(()=>H(void 0)),S(c,Mt(s)),i.set(a,c));else{b=c.v!==D;var h=v(()=>Mt(s));S(c,h)}var d=Reflect.getOwnPropertyDescriptor(l,a);if(d?.set&&d.set.call(p,s),!b){if(r&&typeof a=="string"){var y=i.get("length"),z=Number(a);Number.isInteger(z)&&z>=y.v&&S(y,z+1)}ge(n)}return!0},ownKeys(l){f(n);var a=Reflect.ownKeys(l).filter(c=>{var b=i.get(c);return b===void 0||b.v!==D});for(var[s,p]of i)p.v!==D&&!(s in l)&&a.push(s);return a},setPrototypeOf(){An()}})}var pr,br,mr,dr;function ni(){if(pr===void 0){pr=window,br=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;mr=Gt(e,"firstChild").get,dr=Gt(e,"nextSibling").get,Ni(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Ni(i)&&(i.__t=void 0)}}function q(t=""){return document.createTextNode(t)}function Nt(t){return mr.call(t)}function Z(t){return dr.call(t)}function L(t,e){if(!w)return Nt(t);var i=Nt($);if(i===null)i=$.appendChild(q());else if(e&&i.nodeType!==Ae){var r=q();return i?.before(r),I(r),r}return e&&li(i),I(i),i}function Jn(t,e=!1){if(!w){var i=Nt(t);return i instanceof Comment&&i.data===""?Z(i):i}if(e){if($?.nodeType!==Ae){var r=q();return $?.before(r),I(r),r}li($)}return $}function gt(t,e=1,i=!1){let r=w?$:t;for(var n;e--;)n=r,r=Z(r);if(!w)return r;if(i){if(r?.nodeType!==Ae){var o=q();return r===null?n?.after(o):r.before(o),I(o),o}li(r)}return I(r),r}function oi(t){t.textContent=""}function gr(){return!1}function vi(t,e,i){return document.createElementNS(Si,t,void 0)}function li(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===Ae;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function Xn(t){w&&Nt(t)!==null&&oi(t)}let fr=!1;function Zn(){fr||(fr=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function Be(t){var e=_,i=k;tt(null),ct(null);try{return t()}finally{tt(e),ct(i)}}function Qn(t,e,i,r=i){t.addEventListener(e,()=>Be(i));const n=t.__on_r;n?t.__on_r=()=>{n(),r(!0)}:t.__on_r=()=>r(!0),Zn()}function to(t){k===null&&(_===null&&_n(),wn()),Bt&&yn()}function eo(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ft(t,e){var i=k;i!==null&&(i.f&V)!==0&&(t|=V);var r={ctx:W,deps:null,nodes:null,f:t|G|J,first:null,fn:e,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null},n=r;if((t&Zt)!==0)ie!==null?ie.push(r):yt.ensure().schedule(r);else if(e!==null){try{ne(r)}catch(v){throw F(r),v}n.deps===null&&n.teardown===null&&n.nodes===null&&n.first===n.last&&(n.f&At)===0&&(n=n.first,(t&$t)!==0&&(t&Qt)!==0&&n!==null&&(n.f|=Qt))}if(n!==null&&(n.parent=i,i!==null&&eo(n,i),_!==null&&(_.f&O)!==0&&(t&jt)===0)){var o=_;(o.effects??=[]).push(n)}return r}function ai(){return _!==null&&!st}function cr(t){const e=ft(Ee,null);return C(e,N),e.teardown=t,e}function fe(t){to();var e=k.f,i=!_&&(e&vt)!==0&&(e&Et)===0;if(i){var r=W;(r.e??=[]).push(t)}else return ur(t)}function ur(t){return ft(Zt|fn,t)}function io(t){yt.ensure();const e=ft(jt|At,t);return()=>{F(e)}}function ro(t){yt.ensure();const e=ft(jt|At,t);return(i={})=>new Promise(r=>{i.outro?Yt(e,()=>{F(e),r(void 0)}):(F(e),r(void 0))})}function xr(t){return ft(Zt,t)}function no(t){return ft(Xe|At,t)}function Oe(t,e=0){return ft(Ee|e,t)}function _t(t,e=[],i=[],r=[]){Hn(r,e,i,n=>{ft(Ee,()=>t(...n.map(f)))})}function Le(t,e=0){var i=ft($t|e,t);return i}function Q(t){return ft(vt|At,t)}function hr(t){var e=t.teardown;if(e!==null){const i=Bt,r=_;kr(!0),tt(null);try{e.call(null)}finally{kr(i),tt(r)}}}function si(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const n=i.ac;n!==null&&Be(()=>{n.abort(ht)});var r=i.next;(i.f&jt)!==0?i.parent=null:F(i,e),i=r}}function oo(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&vt)===0&&F(e),e=i}}function F(t,e=!0){var i=!1;(e||(t.f&Pi)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(vo(t.nodes.start,t.nodes.end),i=!0),C(t,Ke),si(t,e&&!i),ue(t,0);var r=t.nodes&&t.nodes.t;if(r!==null)for(const o of r)o.stop();hr(t),t.f^=Ke,t.f|=X;var n=t.parent;n!==null&&n.first!==null&&yr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function vo(t,e){for(;t!==null;){var i=t===e?null:Z(t);t.remove(),t=i}}function yr(t){var e=t.parent,i=t.prev,r=t.next;i!==null&&(i.next=r),r!==null&&(r.prev=i),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=i))}function Yt(t,e,i=!0){var r=[];wr(t,r,!0);var n=()=>{i&&F(t),e&&e()},o=r.length;if(o>0){var v=()=>--o||n();for(var l of r)l.out(v)}else n()}function wr(t,e,i){if((t.f&V)===0){t.f^=V;var r=t.nodes&&t.nodes.t;if(r!==null)for(const l of r)(l.is_global||i)&&e.push(l);for(var n=t.first;n!==null;){var o=n.next,v=(n.f&Qt)!==0||(n.f&vt)!==0&&(t.f&$t)!==0;wr(n,e,v?i:!1),n=o}}}function pi(t){_r(t,!0)}function _r(t,e){if((t.f&V)!==0){t.f^=V,(t.f&N)===0&&(C(t,G),yt.ensure().schedule(t));for(var i=t.first;i!==null;){var r=i.next,n=(i.f&Qt)!==0||(i.f&vt)!==0;_r(i,n?e:!1),i=r}var o=t.nodes&&t.nodes.t;if(o!==null)for(const v of o)(v.is_global||e)&&v.in()}}function bi(t,e){if(t.nodes)for(var i=t.nodes.start,r=t.nodes.end;i!==null;){var n=i===r?null:Z(i);e.append(i),i=n}}let Pe=!1,Bt=!1;function kr(t){Bt=t}let _=null,st=!1;function tt(t){_=t}let k=null;function ct(t){k=t}let et=null;function $r(t){_!==null&&(et===null?et=[t]:et.push(t))}let Y=null,K=0,it=null;function lo(t){it=t}let jr=1,Vt=0,Wt=Vt;function Er(t){Wt=t}function Ar(){return++jr}function ce(t){var e=t.f;if((e&G)!==0)return!0;if(e&O&&(t.f&=~It),(e&mt)!==0){for(var i=t.deps,r=i.length,n=0;n<r;n++){var o=i[n];if(ce(o)&&or(o),o.wv>t.wv)return!0}(e&J)!==0&&at===null&&C(t,N)}return!1}function Rr(t,e,i=!0){var r=t.reactions;if(r!==null&&!(et!==null&&Xt.call(et,t)))for(var n=0;n<r.length;n++){var o=r[n];(o.f&O)!==0?Rr(o,e,!1):e===o&&(i?C(o,G):(o.f&N)!==0&&C(o,mt),ei(o))}}function Tr(t){var e=Y,i=K,r=it,n=_,o=et,v=W,l=st,a=Wt,s=t.f;Y=null,K=0,it=null,_=(s&(vt|jt))===0?t:null,et=null,ee(t.ctx),st=!1,Wt=++Vt,t.ac!==null&&(Be(()=>{t.ac.abort(ht)}),t.ac=null);try{t.f|=Je;var p=t.fn,c=p();t.f|=Et;var b=t.deps,u=E?.is_fork;if(Y!==null){var g;if(u||ue(t,K),b!==null&&K>0)for(b.length=K+Y.length,g=0;g<Y.length;g++)b[K+g]=Y[g];else t.deps=b=Y;if(ai()&&(t.f&J)!==0)for(g=K;g<b.length;g++)(b[g].reactions??=[]).push(t)}else!u&&b!==null&&K<b.length&&(ue(t,K),b.length=K);if(Vi()&&it!==null&&!st&&b!==null&&(t.f&(O|mt|G))===0)for(g=0;g<it.length;g++)Rr(it[g],t);if(n!==null&&n!==t){if(Vt++,n.deps!==null)for(let h=0;h<i;h+=1)n.deps[h].rv=Vt;if(e!==null)for(const h of e)h.rv=Vt;it!==null&&(r===null?r=it:r.push(...it))}return(t.f&Rt)!==0&&(t.f^=Rt),c}catch(h){return qi(h)}finally{t.f^=Je,Y=e,K=i,it=r,_=n,et=o,ee(v),st=l,Wt=a}}function ao(t,e){let i=e.reactions;if(i!==null){var r=sn.call(i,t);if(r!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[r]=i[n],i.pop())}}if(i===null&&(e.f&O)!==0&&(Y===null||!Xt.call(Y,e))){var o=e;(o.f&J)!==0&&(o.f^=J,o.f&=~It),Ze(o),qn(o),ue(o,0)}}function ue(t,e){var i=t.deps;if(i!==null)for(var r=e;r<i.length;r++)ao(t,i[r])}function ne(t){var e=t.f;if((e&X)===0){C(t,N);var i=k,r=Pe;k=t,Pe=!0;try{(e&($t|Oi))!==0?oo(t):si(t),hr(t);var n=Tr(t);t.teardown=typeof n=="function"?n:null,t.wv=jr;var o;an&&Cn&&(t.f&G)!==0&&t.deps}finally{Pe=r,k=i}}}async function so(){await Promise.resolve(),Ft()}function f(t){var e=t.f,i=(e&O)!==0;if(_!==null&&!st){var r=k!==null&&(k.f&X)!==0;if(!r&&(et===null||!Xt.call(et,t))){var n=_.deps;if((_.f&Je)!==0)t.rv<Vt&&(t.rv=Vt,Y===null&&n!==null&&n[K]===t?K++:Y===null?Y=[t]:Y.push(t));else{(_.deps??=[]).push(t);var o=t.reactions;o===null?t.reactions=[_]:Xt.call(o,_)||o.push(_)}}}if(Bt&&Ct.has(t))return Ct.get(t);if(i){var v=t;if(Bt){var l=v.v;return((v.f&N)===0&&v.reactions!==null||Sr(v))&&(l=ii(v)),Ct.set(v,l),l}var a=(v.f&J)===0&&!st&&_!==null&&(Pe||(_.f&J)!==0),s=(v.f&Et)===0;ce(v)&&(a&&(v.f|=J),or(v)),a&&!s&&(vr(v),zr(v))}if(at?.has(t))return at.get(t);if((t.f&Rt)!==0)throw t.v;return t.v}function zr(t){if(t.f|=J,t.deps!==null)for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&O)!==0&&(e.f&J)===0&&(vr(e),zr(e))}function Sr(t){if(t.v===D)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Ct.has(e)||(e.f&O)!==0&&Sr(e))return!0;return!1}function De(t){var e=st;try{return st=!0,t()}finally{st=e}}const xe=Symbol("events"),Cr=new Set,mi=new Set;function po(t,e,i,r={}){function n(o){if(r.capture||di.call(e,o),!o.cancelBubble)return Be(()=>i?.call(this,o))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Tt(()=>{e.addEventListener(t,n,r)}):e.addEventListener(t,n,r),n}function bo(t,e,i,r,n){var o={capture:r,passive:n},v=po(t,e,i,o);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&cr(()=>{e.removeEventListener(t,v,o)})}function qt(t,e,i){(e[xe]??={})[t]=i}function mo(t){for(var e=0;e<t.length;e++)Cr.add(t[e]);for(var i of mi)i(t)}let Mr=null;function di(t){var e=this,i=e.ownerDocument,r=t.type,n=t.composedPath?.()||[],o=n[0]||t.target;Mr=t;var v=0,l=Mr===t&&t[xe];if(l){var a=n.indexOf(l);if(a!==-1&&(e===document||e===window)){t[xe]=e;return}var s=n.indexOf(e);if(s===-1)return;a<=s&&(v=a)}if(o=n[v]||t.target,o!==e){je(t,"currentTarget",{configurable:!0,get(){return o||i}});var p=_,c=k;tt(null),ct(null);try{for(var b,u=[];o!==null;){var g=o.assignedSlot||o.parentNode||o.host||null;try{var h=o[xe]?.[r];h!=null&&(!o.disabled||t.target===o)&&h.call(o,t)}catch(d){b?u.push(d):b=d}if(t.cancelBubble||g===e||g===null)break;o=g}if(b){for(let d of u)queueMicrotask(()=>{throw d});throw b}}finally{t[xe]=e,delete t.currentTarget,tt(p),ct(c)}}}const go=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function fo(t){return go?.createHTML(t)??t}function co(t){var e=vi("template");return e.innerHTML=fo(t.replaceAll("<!>","<!---->")),e.content}function he(t,e){var i=k;i.nodes===null&&(i.nodes={start:t,end:e,a:null,t:null})}function ut(t,e){var i=(e&ln)!==0,r,n=!t.startsWith("<!>");return()=>{if(w)return he($,null),$;r===void 0&&(r=co(n?t:"<!>"+t),r=Nt(r));var o=i||br?document.importNode(r,!0):r.cloneNode(!0);return he(o,o),o}}function uo(){if(w)return he($,null),$;var t=document.createDocumentFragment(),e=document.createComment(""),i=q();return t.append(e,i),he(e,i),t}function rt(t,e){if(w){var i=k;((i.f&Et)===0||i.nodes.end===null)&&(i.nodes.end=$),Te();return}t!==null&&t.before(e)}const xo=["touchstart","touchmove"];function ho(t){return xo.includes(t)}function Ge(t,e){var i=e==null?"":typeof e=="object"?`${e}`:e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=`${i}`)}function Nr(t,e){return Br(t,e)}function yo(t,e){ni(),e.intro=e.intro??!1;const i=e.target,r=w,n=$;try{for(var o=Nt(i);o&&(o.nodeType!==te||o.data!==Ti);)o=Z(o);if(!o)throw Jt;lt(!0),I(o);const v=Br(t,{...e,anchor:o});return lt(!1),v}catch(v){if(v instanceof Error&&v.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw v;return v!==Jt&&console.warn("Failed to hydrate: ",v),e.recover===!1&&$n(),ni(),oi(i),lt(!1),Nr(t,e)}finally{lt(r),I(n)}}const Ie=new Map;function Br(t,{target:e,anchor:i,props:r={},events:n,context:o,intro:v=!0,transformError:l}){ni();var a=void 0,s=ro(()=>{var p=i??e.appendChild(q());Gn(p,{pending:()=>{}},u=>{Ui({});var g=W;if(o&&(g.c=o),n&&(r.$$events=n),w&&he(u,null),a=t(u,r)||{},w&&(k.nodes.end=$,$===null||$.nodeType!==te||$.data!==We))throw Re(),Jt;Yi()},l);var c=new Set,b=u=>{for(var g=0;g<u.length;g++){var h=u[g];if(!c.has(h)){c.add(h);var d=ho(h);for(const T of[e,document]){var y=Ie.get(T);y===void 0&&(y=new Map,Ie.set(T,y));var z=y.get(h);z===void 0?(T.addEventListener(h,di,{passive:d}),y.set(h,1)):y.set(h,z+1)}}}};return b(ke(Cr)),mi.add(b),()=>{for(var u of c)for(const d of[e,document]){var g=Ie.get(d),h=g.get(u);--h==0?(d.removeEventListener(u,di),g.delete(u),g.size===0&&Ie.delete(d)):g.set(u,h)}mi.delete(b),p!==i&&p.parentNode?.removeChild(p)}});return gi.set(a,s),a}let gi=new WeakMap;function wo(t,e){const i=gi.get(t);return i?(gi.delete(t),i(e)):Promise.resolve()}class _o{anchor;#t=new Map;#i=new Map;#e=new Map;#n=new Set;#o=!0;constructor(e,i=!0){this.anchor=e,this.#o=i}#r=e=>{if(this.#t.has(e)){var i=this.#t.get(e),r=this.#i.get(i);if(r)pi(r),this.#n.delete(i);else{var n=this.#e.get(i);n&&(this.#i.set(i,n.effect),this.#e.delete(i),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),r=n.effect)}for(const[o,v]of this.#t){if(this.#t.delete(o),o===e)break;const l=this.#e.get(v);l&&(F(l.effect),this.#e.delete(v))}for(const[o,v]of this.#i){if(o===i||this.#n.has(o))continue;const l=()=>{if(Array.from(this.#t.values()).includes(o)){var s=document.createDocumentFragment();bi(v,s),s.append(q()),this.#e.set(o,{effect:v,fragment:s})}else F(v);this.#n.delete(o),this.#i.delete(o)};this.#o||!r?(this.#n.add(o),Yt(v,l,!1)):l()}}};#v=e=>{this.#t.delete(e);const i=Array.from(this.#t.values());for(const[r,n]of this.#e)i.includes(r)||(F(n.effect),this.#e.delete(r))};ensure(e,i){var r=E,n=gr();if(i&&!this.#i.has(e)&&!this.#e.has(e))if(n){var o=document.createDocumentFragment(),v=q();o.append(v),this.#e.set(e,{effect:Q(()=>i(v)),fragment:o})}else this.#i.set(e,Q(()=>i(this.anchor)));if(this.#t.set(r,e),n){for(const[l,a]of this.#i)l===e?r.unskip_effect(a):r.skip_effect(a);for(const[l,a]of this.#e)l===e?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#v)}else w&&(this.anchor=$),this.#r(r)}}function oe(t,e,i=!1){var r;w&&(r=$,Te());var n=new _o(t),o=i?Qt:0;function v(l,a){if(w){var s=Ii(r);if(l!==parseInt(s.substring(1))){var p=ze();I(p),n.anchor=p,lt(!1),n.ensure(l,a),lt(!0);return}}n.ensure(l,a)}Le(()=>{var l=!1;e((a,s=0)=>{l=!0,v(s,a)}),l||v(-1,null)},o)}function ko(t,e,i){for(var r=[],n=e.length,o,v=e.length,l=0;l<n;l++){let c=e[l];Yt(c,()=>{if(o){if(o.pending.delete(c),o.done.add(c),o.pending.size===0){var b=t.outrogroups;fi(t,ke(o.done)),b.delete(o),b.size===0&&(t.outrogroups=null)}}else v-=1},!1)}if(v===0){var a=r.length===0&&i!==null;if(a){var s=i,p=s.parentNode;oi(p),p.append(s),t.items.clear()}fi(t,e,!a)}else o={pending:new Set(e),done:new Set},(t.outrogroups??=new Set).add(o)}function fi(t,e,i=!0){var r;if(t.pending.size>0){r=new Set;for(const v of t.pending.values())for(const l of v)r.add(t.items.get(l).e)}for(var n=0;n<e.length;n++){var o=e[n];if(r?.has(o)){o.f|=dt;const v=document.createDocumentFragment();bi(o,v)}else F(e[n],i)}}var Or;function Lr(t,e,i,r,n,o=null){var v=t,l=new Map,a=(e&Ri)!==0;if(a){var s=t;v=w?I(Nt(s)):s.appendChild(q())}w&&Te();var p=null,c=nr(()=>{var T=i();return Ci(T)?T:T==null?[]:ke(T)}),b,u=new Map,g=!0;function h(T){(z.effect.f&X)===0&&(z.pending.delete(T),z.fallback=p,$o(z,b,v,e,r),p!==null&&(b.length===0?(p.f&dt)===0?pi(p):(p.f^=dt,we(p,null,v)):Yt(p,()=>{p=null})))}function d(T){z.pending.delete(T)}var y=Le(()=>{b=f(c);var T=b.length;let P=!1;if(w){var ae=Ii(v)===Ve;ae!==(T===0)&&(v=ze(),I(v),lt(!1),P=!0)}for(var xt=new Set,U=E,Lt=gr(),pt=0;pt<T;pt+=1){w&&$.nodeType===te&&$.data===We&&(v=$,P=!0,lt(!1));var nt=b[pt],se=r(nt,pt),bt=g?null:l.get(se);bt?(bt.v&&re(bt.v,nt),bt.i&&re(bt.i,pt),Lt&&U.unskip_effect(bt.e)):(bt=jo(l,g?v:Or??=q(),nt,se,pt,n,e,i),g||(bt.e.f|=dt),l.set(se,bt)),xt.add(se)}if(T===0&&o&&!p&&(g?p=Q(()=>o(v)):(p=Q(()=>o(Or??=q())),p.f|=dt)),T>xt.size&&hn(),w&&T>0&&I(ze()),!g)if(u.set(U,xt),Lt){for(const[xi,pe]of l)xt.has(xi)||U.skip_effect(pe.e);U.oncommit(h),U.ondiscard(d)}else h(U);P&<(!0),f(c)}),z={effect:y,items:l,pending:u,outrogroups:null,fallback:p};g=!1,w&&(v=$)}function ye(t){for(;t!==null&&(t.f&vt)===0;)t=t.next;return t}function $o(t,e,i,r,n){var o=(r&tn)!==0,v=e.length,l=t.items,a=ye(t.effect.first),s,p=null,c,b=[],u=[],g,h,d,y;if(o)for(y=0;y<v;y+=1)g=e[y],h=n(g,y),d=l.get(h).e,(d.f&dt)===0&&(d.nodes?.a?.measure(),(c??=new Set).add(d));for(y=0;y<v;y+=1){if(g=e[y],h=n(g,y),d=l.get(h).e,t.outrogroups!==null)for(const nt of t.outrogroups)nt.pending.delete(d),nt.done.delete(d);if((d.f&V)!==0&&(pi(d),o&&(d.nodes?.a?.unfix(),(c??=new Set).delete(d))),(d.f&dt)!==0)if(d.f^=dt,d===a)we(d,null,i);else{var z=p?p.next:a;d===t.effect.last&&(t.effect.last=d.prev),d.prev&&(d.prev.next=d.next),d.next&&(d.next.prev=d.prev),Ot(t,p,d),Ot(t,d,z),we(d,z,i),p=d,b=[],u=[],a=ye(p.next);continue}if(d!==a){if(s!==void 0&&s.has(d)){if(b.length<u.length){var T=u[0],P;p=T.prev;var ae=b[0],xt=b[b.length-1];for(P=0;P<b.length;P+=1)we(b[P],T,i);for(P=0;P<u.length;P+=1)s.delete(u[P]);Ot(t,ae.prev,xt.next),Ot(t,p,ae),Ot(t,xt,T),a=T,p=xt,y-=1,b=[],u=[]}else s.delete(d),we(d,a,i),Ot(t,d.prev,d.next),Ot(t,d,p===null?t.effect.first:p.next),Ot(t,p,d),p=d;continue}for(b=[],u=[];a!==null&&a!==d;)(s??=new Set).add(a),u.push(a),a=ye(a.next);if(a===null)continue}(d.f&dt)===0&&b.push(d),p=d,a=ye(d.next)}if(t.outrogroups!==null){for(const nt of t.outrogroups)nt.pending.size===0&&(fi(t,ke(nt.done)),t.outrogroups?.delete(nt));t.outrogroups.size===0&&(t.outrogroups=null)}if(a!==null||s!==void 0){var U=[];if(s!==void 0)for(d of s)(d.f&V)===0&&U.push(d);for(;a!==null;)(a.f&V)===0&&a!==t.fallback&&U.push(a),a=ye(a.next);var Lt=U.length;if(Lt>0){var pt=(r&Ri)!==0&&v===0?i:null;if(o){for(y=0;y<Lt;y+=1)U[y].nodes?.a?.measure();for(y=0;y<Lt;y+=1)U[y].nodes?.a?.fix()}ko(t,U,pt)}}o&&Tt(()=>{if(c!==void 0)for(d of c)d.nodes?.a?.apply()})}function jo(t,e,i,r,n,o,v,l){var a=(v&Zr)!==0?(v&en)===0?ar(i,!1,!1):Ut(i):null,s=(v&Qr)!==0?Ut(n):null;return{v:a,i:s,e:Q(()=>(o(e,a??i,s??n,l),()=>{t.delete(r)}))}}function we(t,e,i){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end,o=e&&(e.f&dt)===0?e.nodes.start:i;r!==null;){var v=Z(r);if(o.before(r),r===n)return;r=v}}function Ot(t,e,i){e===null?t.effect.first=i:e.next=i,i===null?t.effect.last=e:i.prev=e}function Eo(t,e){let i=null,r=w;var n;if(w){i=$;for(var o=Nt(document.head);o!==null&&(o.nodeType!==te||o.data!==t);)o=Z(o);if(o===null)lt(!1);else{var v=Z(o);o.remove(),I(v)}}w||(n=document.head.appendChild(q()));try{Le(()=>e(n),Pi|At)}finally{r&&(lt(!0),I(i))}}function Ao(t,e){xr(()=>{var i=t.getRootNode(),r=i.host?i:i.head??i.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const n=vi("style");n.id=e.hash,n.textContent=e.code,r.appendChild(n)}})}const Pr=[...`
|
|
3
|
+
\r\f \v\uFEFF`];function Ro(t,e,i){var r=t==null?"":""+t;if(e&&(r=r?r+" "+e:e),i){for(var n of Object.keys(i))if(i[n])r=r?r+" "+n:n;else if(r.length)for(var o=n.length,v=0;(v=r.indexOf(n,v))>=0;){var l=v+o;(v===0||Pr.includes(r[v-1]))&&(l===r.length||Pr.includes(r[l]))?r=(v===0?"":r.substring(0,v))+r.substring(l+1):v=l}}return r===""?null:r}function To(t,e){return t==null?null:String(t)}function ve(t,e,i,r,n,o){var v=t.__className;if(w||v!==i||v===void 0){var l=Ro(i,r,o);(!w||l!==t.getAttribute("class"))&&(l==null?t.removeAttribute("class"):t.className=l),t.__className=i}else if(o&&n!==o)for(var a in o){var s=!!o[a];(n==null||s!==!!n[a])&&t.classList.toggle(a,s)}return o}function He(t,e,i,r){var n=t.__style;if(w||n!==e){var o=To(e);(!w||o!==t.getAttribute("style"))&&(o==null?t.removeAttribute("style"):t.style.cssText=o),t.__style=e}return r}const zo=Symbol("is custom element"),So=Symbol("is html"),Co=un?"link":"LINK";function le(t,e,i,r){var n=Mo(t);w&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===Co)||n[e]!==(n[e]=i)&&(e==="loading"&&(t[cn]=i),i==null?t.removeAttribute(e):typeof i!="string"&&No(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Mo(t){return t.__attributes??={[zo]:t.nodeName.includes("-"),[So]:t.namespaceURI===Si}}var Dr=new Map;function No(t){var e=t.getAttribute("is")||t.nodeName,i=Dr.get(e);if(i)return i;Dr.set(e,i=[]);for(var r,n=t,o=Element.prototype;o!==n;){r=pn(n);for(var v in r)r[v].set&&i.push(v);n=Mi(n)}return i}function Bo(t,e,i=e){var r=new WeakSet;Qn(t,"input",async n=>{var o=n?t.defaultValue:t.value;if(o=ci(t)?ui(o):o,i(o),E!==null&&r.add(E),await so(),o!==(o=e())){var v=t.selectionStart,l=t.selectionEnd,a=t.value.length;if(t.value=o??"",l!==null){var s=t.value.length;v===l&&l===a&&s>a?(t.selectionStart=s,t.selectionEnd=s):(t.selectionStart=v,t.selectionEnd=Math.min(l,s))}}}),(w&&t.defaultValue!==t.value||De(e)==null&&t.value)&&(i(ci(t)?ui(t.value):t.value),E!==null&&r.add(E)),Oe(()=>{var n=e();if(t===document.activeElement){var o=E;if(r.has(o))return}ci(t)&&n===ui(t.value)||t.type==="date"&&!n&&!t.value||n!==t.value&&(t.value=n??"")})}function ci(t){var e=t.type;return e==="number"||e==="range"}function ui(t){return t===""?null:+t}function Gr(t,e){return t===e||t?.[me]===e}function Ir(t={},e,i,r){var n=W.r,o=k;return xr(()=>{var v,l;return Oe(()=>{v=l,l=[],De(()=>{t!==i(...l)&&(e(t,...l),v&&Gr(i(...v),t)&&e(null,...v))})}),()=>{let a=o;for(;a!==n&&a.parent!==null&&a.parent.f&Ke;)a=a.parent;const s=()=>{l&&Gr(i(...l),t)&&e(null,...l)},p=a.teardown;a.teardown=()=>{s(),p?.()}}}),t}function _e(t,e,i,r){var n=(i&on)!==0,o=(i&vn)!==0,v=r,l=!0,a=()=>(l&&(l=!1,v=o?De(r):r),v);let s;if(n){var p=me in t||Di in t;s=Gt(t,e)?.set??(p&&e in t?z=>t[e]=z:void 0)}var c,b=!1;n?[c,b]=Bn(()=>t[e]):c=t[e],c===void 0&&r!==void 0&&(c=a(),s&&(jn(),s(c)));var u;if(u=()=>{var z=t[e];return z===void 0?a():(l=!0,z)},(i&nn)===0)return u;if(s){var g=t.$$legacy;return(function(z,T){return arguments.length>0?((!T||g||b)&&s(T?u():z),z):u()})}var h=!1,d=((i&rn)!==0?Ne:nr)(()=>(h=!1,u()));n&&f(d);var y=k;return(function(z,T){if(arguments.length>0){const P=T?f(d):n?Mt(z):z;return S(d,P),h=!0,v!==void 0&&(v=P),z}return Bt&&h||(y.f&X)!==0?d.v:f(d)})}function Oo(t){return new Lo(t)}class Lo{#t;#i;constructor(e){var i=new Map,r=(o,v)=>{var l=ar(v,!1,!1);return i.set(o,l),l};const n=new Proxy({...e.props||{},$$events:{}},{get(o,v){return f(i.get(v)??r(v,Reflect.get(o,v)))},has(o,v){return v===Di?!0:(f(i.get(v)??r(v,Reflect.get(o,v))),Reflect.has(o,v))},set(o,v,l){return S(i.get(v)??r(v,l),l),Reflect.set(o,v,l)}});this.#i=(e.hydrate?yo:Nr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&Ft(),this.#t=n.$$events;for(const o of Object.keys(this.#i))o==="$set"||o==="$destroy"||o==="$on"||je(this,o,{get(){return this.#i[o]},set(v){this.#i[o]=v},enumerable:!0});this.#i.$set=o=>{Object.assign(n,o)},this.#i.$destroy=()=>{wo(this.#i)}}$set(e){this.#i.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];const r=(...n)=>i.call(this,...n);return this.#t[e].push(r),()=>{this.#t[e]=this.#t[e].filter(n=>n!==r)}}$destroy(){this.#i.$destroy()}}let Hr;typeof HTMLElement=="function"&&(Hr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&(this.$$shadowRoot=this.attachShadow(i))}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return n=>{const o=vi("slot");r!=="default"&&(o.name=r),rt(n,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},i=Po(this);for(const r of this.$$s)r in i&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const n=this.$$g_p(r.name);n in this.$$d||(this.$$d[n]=Fe(n,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Oo({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=io(()=>{Oe(()=>{this.$$r=!0;for(const r of $e(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const n=Fe(r,this.$$d[r],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,n)}this.$$r=!1})});for(const r in this.$$l)for(const n of this.$$l[r]){const o=this.$$c.$on(r,n);this.$$l_u.set(n,o)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Fe(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return $e(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Fe(t,e,i,r){const n=i[t]?.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!i[t])return e;if(r==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Po(t){const e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function Do(t,e,i,r,n,o){let v=class extends Hr{constructor(){super(t,i,n),this.$$p_d=e}static get observedAttributes(){return $e(e).map(l=>(e[l].attribute||l).toLowerCase())}};return $e(e).forEach(l=>{je(v.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Fe(l,a,e),this.$$d[l]=a;var s=this.$$c;if(s){var p=Gt(s,l)?.get;p?s[l]=a:s.$set({[l]:a})}}})}),r.forEach(l=>{je(v.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=v,v}var Kt={},Fr;function Go(){if(Fr)return Kt;Fr=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.LanguageTranslator=void 0,Kt.getChildStyleToPass=t,Kt.addComponent=e;function t(r,n){var o,v,l="";try{if(r&&n?.length&&(!((o=Object.keys(r))===null||o===void 0)&&o.length)&&(!((v=n?.filter(function(b){return Object.keys(r).includes(b.name)}))===null||v===void 0)&&v.length))for(var a=function(b){var u=n?.filter(function(g){return g.name===b&&g.defaultValue!==r[b]});u&&(l+="".concat(b,":").concat(r[b],";"))},s=0,p=Object.keys(r);s<p.length;s++){var c=p[s];a(c)}}catch(b){console.error("error getting child style to pass",b)}finally{return l}}function e(r){var n,o=((n=r?.repoName.split("/"))===null||n===void 0?void 0:n[1])||r?.repoName;if(!o)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var v=r?.iifePath||"main.iife.js";if(!document.getElementById(o+"-script"))try{var l=document.createElement("script");if(l.id=o+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(v),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=o.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(o.replace(a+"-",""),"/").concat(v)}document.head.appendChild(l)}catch(s){console.warn(s)}}var i=(function(){function r(n){if(this.lang="",!n?.dictionary)throw new Error("no dictionary provided");this.dictionary=n.dictionary,this.setLang(n?.lang)}return r.prototype.setLang=function(n){n||(n=r.getDefaultLang()),this.lang=n},r.prototype.translateWord=function(n,o){return r.getDictionaryWord(n,this.dictionary,o||this.lang)},r.prototype.translateDate=function(n,o,v){return r.formatDate(n,o,v||this.lang)},r.getDefaultLang=function(){var n,o,v,l="en";return navigator?.languages&&(!((v=(o=(n=navigator.languages[0])===null||n===void 0?void 0:n.split("-")[0])===null||o===void 0?void 0:o.toLowerCase())===null||v===void 0)&&v.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(n,o,v){var l;if(!n)throw new Error("no wordKey provided");if(!o)throw new Error("no dictionary provided");if(v&&(!((l=o[v])===null||l===void 0)&&l[n]))return o[v][n];var a="",s=r.getDefaultLang();if(!v||s!==v){var p=o?.[s];p?.[n]&&(a=p[n])}return a},r.formatDate=function(n,o,v){if(!n)throw new Error("no date provided");if(typeof n.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(v||r.getDefaultLang(),o);return l.format(n)},r})();return Kt.LanguageTranslator=i,Kt}Go();var Io=ut('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1p3vbiv"/>'),Ho=ut('<img class="file-image svelte-1p3vbiv"/>'),Fo=ut("<i></i>"),Uo=ut('<div class="col-6 col-md-4 col-lg-3 svelte-1p3vbiv"><div class="file-card svelte-1p3vbiv"><div class="file-preview svelte-1p3vbiv"><!></div> <div class="file-details svelte-1p3vbiv"><div class="file-name svelte-1p3vbiv"> </div> <div class="file-meta svelte-1p3vbiv"><span class="file-size svelte-1p3vbiv"> </span></div></div> <button type="button" class="btn btn-sm btn-outline-danger remove-file-btn svelte-1p3vbiv" aria-label="Remove file" title="Remove file"><i class="bi bi-x svelte-1p3vbiv"></i></button></div></div>'),Yo=ut('<div id="files-display" class="svelte-1p3vbiv"><div class="row g-2 svelte-1p3vbiv"></div></div>'),Vo=ut('<button id="maximize-button" type="button"><i></i></button>'),Wo=ut('<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger svelte-1p3vbiv"> <span class="visually-hidden svelte-1p3vbiv">selected files</span></span>'),qo=ut('<label id="upload-file" class="btn file-button btn-sm position-relative svelte-1p3vbiv" style="--tag-color: var(--bs-primary, #007bff)"><input type="file" class="svelte-1p3vbiv"/> <i class="bi bi-paperclip svelte-1p3vbiv"></i> <!></label>'),Ko=ut('<button type="button"><i></i> </button>'),Jo=ut('<div id="chat-container" class="svelte-1p3vbiv"><div id="chat-box" class="svelte-1p3vbiv"><!> <div id="textarea-container" class="svelte-1p3vbiv"><textarea id="send-message-text" placeholder="Type your message..."></textarea> <!></div> <div id="buttons-container" class="svelte-1p3vbiv"><div id="left-buttons" class="svelte-1p3vbiv"><!> <!></div> <div id="right-buttons" class="svelte-1p3vbiv"><button type="button" id="send-message-button" aria-label="Send message" class="svelte-1p3vbiv"><i class="bi bi-send-fill svelte-1p3vbiv"></i></button></div></div></div></div>');const Xo={hash:"svelte-1p3vbiv",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");
|
|
4
4
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
|
|
5
5
|
/*!
|
|
6
6
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
@@ -186,5 +186,5 @@ textarea.svelte-1p3vbiv {margin:0;font-family:inherit;font-size:inherit;line-hei
|
|
|
186
186
|
.file-button.tag-selected.svelte-1p3vbiv,
|
|
187
187
|
.file-button.file-selected.svelte-1p3vbiv {background-color:var(--tag-color);color:white;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.tag-button.tag-selected.svelte-1p3vbiv:hover, .tag-button.file-selected.svelte-1p3vbiv:hover,
|
|
188
188
|
.file-button.tag-selected.svelte-1p3vbiv:hover,
|
|
189
|
-
.file-button.file-selected.svelte-1p3vbiv:hover {background-color:var(--tag-color);opacity:0.9;}#send-message-button.svelte-1p3vbiv {display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:50%;background-color:var(--bs-primary, #007bff);color:white;cursor:pointer;transition:all 0.2s ease;font-size:14px;}#send-message-button.svelte-1p3vbiv:hover:not(:disabled) {background-color:var(--bs-primary, #0056b3);transform:scale(1.05);}#send-message-button.svelte-1p3vbiv:active:not(:disabled) {transform:scale(0.95);}#send-message-button.svelte-1p3vbiv:disabled {background-color:var(--bs-secondary, #6c757d);cursor:not-allowed;transform:none;}#send-message-button.svelte-1p3vbiv > i:where(.svelte-1p3vbiv) {margin:0;}#maximize-button.svelte-1p3vbiv {position:absolute;top:20px;right:20px;width:24px;height:24px;border:none;border-radius:4px;color:var(--bs-primary, #007bff);background-color:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:all 0.2s ease;z-index:10;}#maximize-button.svelte-1p3vbiv:hover {color:var(--bs-primary, #007bff);transform:scale(1.1);box-shadow:0 2px 6px rgba(0, 0, 0, 0.15);}#maximize-button.svelte-1p3vbiv:active {transform:scale(0.95);}#maximize-button.maximized.svelte-1p3vbiv {color:var(--bs-primary, #007bff);}#maximize-button.maximized.svelte-1p3vbiv:hover {background-color:rgba(0, 123, 255, 0.2);}#maximize-button.svelte-1p3vbiv > i:where(.svelte-1p3vbiv) {margin:0;}`};function
|
|
189
|
+
.file-button.file-selected.svelte-1p3vbiv:hover {background-color:var(--tag-color);opacity:0.9;}#send-message-button.svelte-1p3vbiv {display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:50%;background-color:var(--bs-primary, #007bff);color:white;cursor:pointer;transition:all 0.2s ease;font-size:14px;}#send-message-button.svelte-1p3vbiv:hover:not(:disabled) {background-color:var(--bs-primary, #0056b3);transform:scale(1.05);}#send-message-button.svelte-1p3vbiv:active:not(:disabled) {transform:scale(0.95);}#send-message-button.svelte-1p3vbiv:disabled {background-color:var(--bs-secondary, #6c757d);cursor:not-allowed;transform:none;}#send-message-button.svelte-1p3vbiv > i:where(.svelte-1p3vbiv) {margin:0;}#maximize-button.svelte-1p3vbiv {position:absolute;top:20px;right:20px;width:24px;height:24px;border:none;border-radius:4px;color:var(--bs-primary, #007bff);background-color:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:all 0.2s ease;z-index:10;}#maximize-button.svelte-1p3vbiv:hover {color:var(--bs-primary, #007bff);transform:scale(1.1);box-shadow:0 2px 6px rgba(0, 0, 0, 0.15);}#maximize-button.svelte-1p3vbiv:active {transform:scale(0.95);}#maximize-button.maximized.svelte-1p3vbiv {color:var(--bs-primary, #007bff);}#maximize-button.maximized.svelte-1p3vbiv:hover {background-color:rgba(0, 123, 255, 0.2);}#maximize-button.svelte-1p3vbiv > i:where(.svelte-1p3vbiv) {margin:0;}`};function Ur(t,e){Ui(e,!0),Ao(t,Xo);function i(m,x){e.$$host.dispatchEvent(new CustomEvent(m,{detail:x}))}let r=_e(e,"id",7,""),n=_e(e,"text",7,""),o=_e(e,"expandable",7,!1),v=_e(e,"tags",23,()=>[]),l=_e(e,"files",7),a=H(Mt([])),s=H(130),p=H(0),c=H(0),b,u,g=H(!1),h=H(!1),d=H(Mt([]));function y(){const m=["#e74c3c","#3498db","#2ecc71","#f39c12","#9b59b6","#1abc9c","#34495e","#e67e22","#95a5a6","#f1c40f","#e91e63","#00bcd4","#4caf50","#ff9800","#673ab7"];return m[Math.floor(Math.random()*m.length)]}function z(m){return m.color||y()}fe(()=>{if(typeof v()=="string")try{v(JSON.parse(v()))}catch(m){console.error("error parsing buttons",m)}if(typeof l()=="string")try{l(JSON.parse(l()))}catch(m){console.error("error parsing files",m)}typeof o()=="string"&&o(o()==="yes"||o()==="true")}),fe(()=>{b&&n()&&setTimeout(()=>{pe()},0)}),fe(()=>{if(u){const m=new ResizeObserver(x=>{for(const A of x)S(c,A.contentRect.width,!0)});return m.observe(u),S(c,u.offsetWidth,!0),()=>{m.disconnect()}}}),fe(()=>{if(f(a).length>0){const R=T(f(c)),j=Math.ceil(f(a).length/R),M=j>1?(j-1)*8:0,ot=j*108+M+16;S(p,Math.min(ot,250),!0)}else S(p,0);b&&pe()}),fe(()=>{l()?.mode==="single"&&f(a).length>1&&S(a,[f(a)[0]],!0)});function T(m){return m>=992?4:m>=768?3:2}function P(){return Date.now().toString(36)+Math.random().toString(36).substr(2)}function ae(m){const x=m.target,A=x.files;if(A)if(l()?.mode==="single"){const R=A[0],j={id:P(),name:R.name,mimetype:R.type,fileSize:R.size,content:R,objectUrl:R.type.startsWith("image/")?URL.createObjectURL(R):void 0};S(a,[j],!0)}else for(let R=0;R<A.length;R++){const j=A[R],M={id:P(),name:j.name,mimetype:j.type,fileSize:j.size,content:j,objectUrl:j.type.startsWith("image/")?URL.createObjectURL(j):void 0};S(a,[...f(a),M],!0)}x.value=""}function xt(m){const x=f(a).find(A=>A.id===m);x&&x.objectUrl&&URL.revokeObjectURL(x.objectUrl),S(a,f(a).filter(A=>A.id!==m),!0)}function U(m){return m.startsWith("image/")?"bi-image":m.startsWith("video/")?"bi-play-circle":m.startsWith("audio/")?"bi-music-note":m.includes("pdf")?"bi-file-pdf":m.includes("word")||m.includes("document")?"bi-file-word":m.includes("excel")||m.includes("spreadsheet")?"bi-file-excel":m.includes("powerpoint")||m.includes("presentation")?"bi-file-ppt":m.includes("zip")||m.includes("rar")||m.includes("archive")?"bi-file-zip":"bi-file-earmark"}function Lt(m){if(m===0)return"0 B";const x=1024,A=["B","KB","MB","GB","TB"],R=Math.floor(Math.log(m)/Math.log(x));return parseFloat((m/Math.pow(x,R)).toFixed(1))+" "+A[R]}function pt(){if(!n()?.length&&!f(a).length)return console.warn("no message to send");console.log("send message "+n()),i("sendMessage",{text:n(),id:r(),files:f(a),tags:f(d)||[]})}function nt(m){S(d,f(d).includes(m)?f(d).filter(x=>x!==m):[...f(d),m],!0)}function se(m){m.key==="Enter"&&!m.shiftKey&&(m.preventDefault(),pt())}function bt(){o()&&!f(g)&&pe()}function xi(){if(S(g,!f(g)),f(g))b.style.height="400px",b.style.maxHeight="400px",b.style.minHeight="400px",b.style.overflowY="auto",S(s,484+f(p));else{b.style.maxHeight="",b.style.minHeight="";const m=140,x=32,A=52;b.style.height=m+"px",b.style.overflowY="auto",S(s,x+m+A+f(p)),S(h,!0)}}function pe(){if(b&&!f(g)){b.style.height="auto";const m=b.scrollHeight,x=140;let A=40;o()&&(A=Math.max(m,80));const R=Math.min(Math.max(m,A),x);b.style.height=R+"px",m>x?b.style.overflowY="auto":b.style.overflowY="hidden",S(s,Math.max(32+R+52+f(p),130),!0),S(h,R>=x)}}var Zo={get id(){return r()},set id(m=""){r(m),Ft()},get text(){return n()},set text(m=""){n(m),Ft()},get expandable(){return o()},set expandable(m=!1){o(m),Ft()},get tags(){return v()},set tags(m=[]){v(m),Ft()},get files(){return l()},set files(m){l(m),Ft()}},Ue=Jo();Eo("1p3vbiv",m=>{var x=Io();rt(m,x)});var hi=L(Ue),Yr=L(hi);{var Qo=m=>{var x=Yo(),A=L(x);Lr(A,21,()=>f(a),R=>R.id,(R,j)=>{var M=Uo(),ot=L(M),kt=L(ot),ki=L(kt);{var $i=Dt=>{var be=Ho();_t(()=>{le(be,"src",f(j).objectUrl),le(be,"alt",f(j).name)}),rt(Dt,be)},ji=Yn(()=>f(j).mimetype.startsWith("image/")&&f(j).objectUrl),ov=Dt=>{var be=Fo();_t(sv=>ve(be,1,`bi ${sv??""} file-icon`,"svelte-1p3vbiv"),[()=>U(f(j).mimetype)]),rt(Dt,be)};oe(ki,Dt=>{f(ji)?Dt($i):Dt(ov,-1)})}B(kt);var Ei=gt(kt,2),Ye=L(Ei),vv=L(Ye,!0);B(Ye);var Jr=gt(Ye,2),Xr=L(Jr),lv=L(Xr,!0);B(Xr),B(Jr),B(Ei);var av=gt(Ei,2);B(ot),B(M),_t(Dt=>{le(Ye,"title",f(j).name),Ge(vv,f(j).name),Ge(lv,Dt)},[()=>Lt(f(j).fileSize)]),qt("click",av,()=>xt(f(j).id)),rt(R,M)}),B(A),B(x),_t(()=>He(x,`height: ${f(p)??""}px;`)),rt(m,x)};oe(Yr,m=>{f(a).length>0&&m(Qo)})}var yi=gt(Yr,2),Pt=L(yi);Xn(Pt);let Vr;Ir(Pt,m=>b=m,()=>b);var tv=gt(Pt,2);{var ev=m=>{var x=Vo();let A;var R=L(x);B(x),_t(()=>{le(x,"aria-label",f(g)?"Minimize textarea":"Maximize textarea"),le(x,"title",f(g)?"Minimize textarea":"Maximize textarea"),A=ve(x,1,"svelte-1p3vbiv",null,A,{maximized:f(g)}),ve(R,1,`bi bi-${f(g)?"arrows-angle-contract":"arrows-angle-expand"}`,"svelte-1p3vbiv")}),qt("click",x,xi),rt(m,x)};oe(tv,m=>{f(h)&&m(ev)})}B(yi);var Wr=gt(yi,2),wi=L(Wr),qr=L(wi);{var iv=m=>{var x=qo(),A=L(x),R=gt(A,4);{var j=M=>{var ot=Wo(),kt=L(ot);Gi(),B(ot),_t(()=>Ge(kt,`${f(a).length??""} `)),rt(M,ot)};oe(R,M=>{f(a).length>0&&M(j)})}B(x),_t(()=>A.multiple=l()?.mode!=="single"),qt("change",A,ae),rt(m,x)};oe(qr,m=>{typeof l()=="object"&&m(iv)})}var rv=gt(qr,2);{var nv=m=>{var x=uo(),A=Jn(x);Lr(A,17,v,R=>R.id,(R,j)=>{var M=Ko();let ot;var kt=L(M),ki=gt(kt);B(M),_t(($i,ji)=>{ot=ve(M,1,"btn tag-button btn-sm svelte-1p3vbiv",null,ot,$i),He(M,`--tag-color: ${ji??""}`),le(M,"aria-label",`Use ${f(j).label}`),ve(kt,1,`bi bi-${f(j).icon??""}`,"svelte-1p3vbiv"),Ge(ki,` ${f(j).label??""}`)},[()=>({"tag-selected":f(d).includes(f(j).id)}),()=>z(f(j))]),qt("click",M,()=>nt(f(j).id)),rt(R,M)}),rt(m,x)};oe(rv,m=>{v()?.length&&typeof v()=="object"&&m(nv)})}B(wi);var Kr=gt(wi,2),_i=L(Kr);return B(Kr),B(Wr),B(hi),B(Ue),Ir(Ue,m=>u=m,()=>u),_t(()=>{He(hi,`height: ${f(s)??""}px;`),Vr=ve(Pt,1,"svelte-1p3vbiv",null,Vr,{expandable:o(),maximized:f(g)}),_i.disabled=!(n()?.length||f(a).length),He(_i,`opacity:${n()?.length||f(a).length?"1":"0.25"}`)}),qt("keydown",Pt,se),qt("input",Pt,pe),bo("focus",Pt,bt),Bo(Pt,n),qt("click",_i,()=>pt()),rt(t,Ue),Yi(Zo)}mo(["click","keydown","input","change"]),customElements.define("hb-messages-send",Do(Ur,{id:{},text:{},expandable:{},tags:{},files:{}},[],[],{mode:"open"})),Ai.Component=Ur,Object.defineProperty(Ai,Symbol.toStringTag,{value:"Module"})})(this["messages-send"]=this["messages-send"]||{});
|
|
190
190
|
//# sourceMappingURL=main.iife.js.map
|