maildo 1.3.11 → 1.3.12
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/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const f of i.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const ct=!1;var tr=Array.isArray,nr=Array.prototype.indexOf,Me=Array.prototype.includes,rr=Array.from,tn=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,nn=Object.getOwnPropertyDescriptors,sr=Object.prototype,ir=Array.prototype,kt=Object.getPrototypeOf,qt=Object.isExtensible;const _e=()=>{};function or(e){return e()}function dt(e){for(var t=0;t<e.length;t++)e[t]()}function rn(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const R=2,st=4,qe=8,sn=1<<24,te=16,J=32,ye=64,ht=128,Y=512,M=1024,O=2048,K=4096,W=8192,oe=16384,ge=32768,Ce=65536,Yt=1<<17,on=1<<18,Oe=1<<19,ln=1<<20,me=65536,pt=1<<21,xt=1<<22,le=1<<23,Ue=Symbol("$state"),he=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function an(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function lr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ar(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function fr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ur(e){throw new Error("https://svelte.dev/e/effect_orphan")}function cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function dr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function hr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function pr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function _r(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const vr=1,gr=2,C=Symbol(),fn="http://www.w3.org/1999/xhtml";function mr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function un(e){return e===this.v}function cn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function dn(e){return!cn(e,this.v)}let Ye=!1,br=!1;function yr(){Ye=!0}let w=null;function De(e){w=e}function hn(e){return pn().get(e)}function Bt(e,t){return pn().set(e,t),t}function it(e,t=!1,n){w={p:w,i:!1,c:null,e:null,s:e,x:null,l:Ye&&!t?{s:null,u:null,$:[]}:null}}function ot(e){var t=w,n=t.e;if(n!==null){t.e=null;for(var r of n)Rn(r)}return t.i=!0,w=t.p,{}}function Be(){return!Ye||w!==null&&w.l===null}function pn(e){return w===null&&an(),w.c??=new Map(wr(w)||void 0)}function wr(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let Se=[];function Er(){var e=Se;Se=[],dt(e)}function Ae(e){if(Se.length===0){var t=Se;queueMicrotask(()=>{t===Se&&Er()})}Se.push(e)}function _n(e){var t=y;if(t===null)return b.f|=le,e;if((t.f&ge)===0&&(t.f&st)===0)throw e;ie(e,t)}function ie(e,t){for(;t!==null;){if((t.f&ht)!==0){if((t.f&ge)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const kr=-7169;function x(e,t){e.f=e.f&kr|t}function St(e){(e.f&Y)!==0||e.deps===null?x(e,M):x(e,K)}function vn(e){if(e!==null)for(const t of e)(t.f&R)===0||(t.f&me)===0||(t.f^=me,vn(t.deps))}function gn(e,t,n){(e.f&O)!==0?t.add(e):(e.f&K)!==0&&n.add(e),vn(e.deps),x(e,M)}const Ze=new Set;let k=null,z=null,q=[],Tt=null,_t=!1;class ae{current=new Map;previous=new Map;#t=new Set;#l=new Set;#e=0;#i=0;#n=null;#o=new Set;#r=new Set;#s=new Map;is_fork=!1;#a=!1;#u(){return this.is_fork||this.#i>0}skip_effect(t){this.#s.has(t)||this.#s.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#s.get(t);if(n){this.#s.delete(t);for(var r of n.d)x(r,O),H(r);for(r of n.m)x(r,K),H(r)}}process(t){q=[],this.apply();var n=[],r=[];for(const s of t)this.#f(s,n,r);if(this.#u()){this.#c(r),this.#c(n);for(const[s,i]of this.#s)yn(s,i)}else{for(const s of this.#t)s();this.#t.clear(),this.#e===0&&this.#h(),k=null,Vt(r),Vt(n),this.#n?.resolve()}z=null}#f(t,n,r){t.f^=M;for(var s=t.first;s!==null;){var i=s.f,f=(i&(J|ye))!==0,l=f&&(i&M)!==0,o=l||(i&W)!==0||this.#s.has(s);if(!o&&s.fn!==null){f?s.f^=M:(i&st)!==0?n.push(s):ze(s)&&((i&te)!==0&&this.#r.add(s),Re(s));var a=s.first;if(a!==null){s=a;continue}}for(;s!==null;){var d=s.next;if(d!==null){s=d;break}s=s.parent}}}#c(t){for(var n=0;n<t.length;n+=1)gn(t[n],this.#o,this.#r)}capture(t,n){n!==C&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&le)===0&&(this.current.set(t,t.v),z?.set(t,t.v))}activate(){k=this,this.apply()}deactivate(){k===this&&(k=null,z=null)}flush(){if(this.activate(),q.length>0){if(xr(),k!==null&&k!==this)return}else this.#e===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#l)t(this);this.#l.clear()}#h(){if(Ze.size>1){this.previous.clear();var t=z,n=!0;for(const s of Ze){if(s===this){n=!1;continue}const i=[];for(const[l,o]of this.current){if(s.current.has(l))if(n&&o!==s.current.get(l))s.current.set(l,o);else continue;i.push(l)}if(i.length===0)continue;const f=[...s.current.keys()].filter(l=>!this.current.has(l));if(f.length>0){var r=q;q=[];const l=new Set,o=new Map;for(const a of i)mn(a,f,l,o);if(q.length>0){k=s,s.apply();for(const a of q)s.#f(a,[],[]);s.deactivate()}q=r}}k=null,z=t}Ze.delete(this)}increment(t){this.#e+=1,t&&(this.#i+=1)}decrement(t){this.#e-=1,t&&(this.#i-=1),!this.#a&&(this.#a=!0,Ae(()=>{this.#a=!1,this.#u()?q.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#o)this.#r.delete(t),x(t,O),H(t);for(const t of this.#r)x(t,K),H(t);this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#l.add(t)}settled(){return(this.#n??=rn()).promise}static ensure(){if(k===null){const t=k=new ae;Ze.add(k),Ae(()=>{k===t&&t.flush()})}return k}apply(){}}function xr(){_t=!0;var e=null;try{for(var t=0;q.length>0;){var n=ae.ensure();if(t++>1e3){var r,s;Sr()}n.process(q),fe.clear()}}finally{q=[],_t=!1,Tt=null}}function Sr(){try{cr()}catch(e){ie(e,Tt)}}let Q=null;function Vt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(oe|W))===0&&ze(r)&&(Q=new Set,Re(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Nn(r),Q?.size>0)){fe.clear();for(const s of Q){if((s.f&(oe|W))!==0)continue;const i=[s];let f=s.parent;for(;f!==null;)Q.has(f)&&(Q.delete(f),i.push(f)),f=f.parent;for(let l=i.length-1;l>=0;l--){const o=i[l];(o.f&(oe|W))===0&&Re(o)}}Q.clear()}}Q=null}}function mn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&R)!==0?mn(s,t,n,r):(i&(xt|te))!==0&&(i&O)===0&&bn(s,t,r)&&(x(s,O),H(s))}}function bn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(Me.call(t,s))return!0;if((s.f&R)!==0&&bn(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function H(e){var t=Tt=e,n=t.b;if(n?.is_pending&&(e.f&(st|qe|sn))!==0&&(e.f&ge)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(_t&&t===y&&(r&te)!==0&&(r&on)===0&&(r&ge)!==0)return;if((r&(ye|J))!==0){if((r&M)===0)return;t.f^=M}}q.push(t)}function yn(e,t){if(!((e.f&J)!==0&&(e.f&M)!==0)){(e.f&O)!==0?t.d.push(e):(e.f&K)!==0&&t.m.push(e),x(e,M);for(var n=e.first;n!==null;)yn(n,t),n=n.next}}function Tr(e){let t=0,n=Ve(0),r;return()=>{Ct()&&(p(n),Gr(()=>(t===0&&(r=at(()=>e(()=>Fe(n)))),t+=1,()=>{Ae(()=>{t-=1,t===0&&(r?.(),r=void 0,Fe(n))})})))}}var Ar=Ce|Oe;function Mr(e,t,n,r){new Cr(e,t,n,r)}class Cr{parent;is_pending=!1;transform_error;#t;#l=null;#e;#i;#n;#o=null;#r=null;#s=null;#a=null;#u=0;#f=0;#c=!1;#h=new Set;#p=new Set;#d=null;#b=Tr(()=>(this.#d=Ve(this.#u),()=>{this.#d=null}));constructor(t,n,r,s){this.#t=t,this.#e=n,this.#i=i=>{var f=y;f.b=this,f.f|=ht,r(i)},this.parent=y.b,this.transform_error=s??this.parent?.transform_error??(i=>i),this.#n=On(()=>{this.#g()},Ar)}#y(){try{this.#o=X(()=>this.#i(this.#t))}catch(t){this.error(t)}}#w(t){const n=this.#e.failed;n&&(this.#s=X(()=>{n(this.#t,()=>t,()=>()=>{})}))}#E(){const t=this.#e.pending;t&&(this.is_pending=!0,this.#r=X(()=>t(this.#t)),Ae(()=>{var n=this.#a=document.createDocumentFragment(),r=et();n.append(r),this.#o=this.#v(()=>(ae.ensure(),X(()=>this.#i(r)))),this.#f===0&&(this.#t.before(n),this.#a=null,je(this.#r,()=>{this.#r=null}),this.#_())}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#u=0,this.#o=X(()=>{this.#i(this.#t)}),this.#f>0){var t=this.#a=document.createDocumentFragment();Un(this.#o,t);const n=this.#e.pending;this.#r=X(()=>n(this.#t))}else this.#_()}catch(n){this.error(n)}}#_(){this.is_pending=!1;for(const t of this.#h)x(t,O),H(t);for(const t of this.#p)x(t,K),H(t);this.#h.clear(),this.#p.clear()}defer_effect(t){gn(t,this.#h,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#v(t){var n=y,r=b,s=w;Z(this.#n),V(this.#n),De(this.#n.ctx);try{return t()}catch(i){return _n(i),null}finally{Z(n),V(r),De(s)}}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#f+=t,this.#f===0&&(this.#_(),this.#r&&je(this.#r,()=>{this.#r=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(t){this.#m(t),this.#u+=t,!(!this.#d||this.#c)&&(this.#c=!0,Ae(()=>{this.#c=!1,this.#d&&Xe(this.#d,this.#u)}))}get_effect_pending(){return this.#b(),p(this.#d)}error(t){var n=this.#e.onerror;let r=this.#e.failed;if(!n&&!r)throw t;this.#o&&(j(this.#o),this.#o=null),this.#r&&(j(this.#r),this.#r=null),this.#s&&(j(this.#s),this.#s=null);var s=!1,i=!1;const f=()=>{if(s){mr();return}s=!0,i&&_r(),this.#s!==null&&je(this.#s,()=>{this.#s=null}),this.#v(()=>{ae.ensure(),this.#g()})},l=o=>{try{i=!0,n?.(o,f),i=!1}catch(a){ie(a,this.#n&&this.#n.parent)}r&&(this.#s=this.#v(()=>{ae.ensure();try{return X(()=>{var a=y;a.b=this,a.f|=ht,r(this.#t,()=>o,()=>f)})}catch(a){return ie(a,this.#n.parent),null}}))};Ae(()=>{var o;try{o=this.transform_error(t)}catch(a){ie(a,this.#n&&this.#n.parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(l,a=>ie(a,this.#n&&this.#n.parent)):l(o)})}}function Dr(e,t,n,r){const s=Be()?At:Nr;var i=e.filter(u=>!u.settled);if(n.length===0&&i.length===0){r(t.map(s));return}var f=y,l=Rr(),o=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(u=>u.promise)):null;function a(u){l();try{r(u)}catch(c){(f.f&oe)===0&&ie(c,f)}vt()}if(n.length===0){o.then(()=>a(t.map(s)));return}function d(){l(),Promise.all(n.map(u=>$r(u))).then(u=>a([...t.map(s),...u])).catch(u=>ie(u,f))}o?o.then(d):d()}function Rr(){var e=y,t=b,n=w,r=k;return function(i=!0){Z(e),V(t),De(n),i&&r?.activate()}}function vt(e=!0){Z(null),V(null),De(null),e&&k?.deactivate()}function Or(){var e=y.b,t=k,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function At(e){var t=R|O,n=b!==null&&(b.f&R)!==0?b:null;return y!==null&&(y.f|=Oe),{ctx:w,deps:null,effects:null,equals:un,f:t,fn:e,reactions:null,rv:0,v:C,wv:0,parent:n??y,ac:null}}function $r(e,t,n){y===null&&lr();var s=void 0,i=Ve(C),f=!b,l=new Map;return Hr(()=>{var o=rn();s=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).finally(vt)}catch(c){o.reject(c),vt()}var a=k;if(f){var d=Or();l.get(a)?.reject(he),l.delete(a),l.set(a,o)}const u=(c,v=void 0)=>{if(a.activate(),v)v!==he&&(i.f|=le,Xe(i,v));else{(i.f&le)!==0&&(i.f^=le),Xe(i,c);for(const[_,g]of l){if(l.delete(_),_===a)break;g.reject(he)}}d&&d()};o.promise.then(u,c=>u(null,c||"unknown"))}),Dn(()=>{for(const o of l.values())o.reject(he)}),new Promise(o=>{function a(d){function u(){d===s?o(i):a(s)}d.then(u,u)}a(s)})}function Nr(e){const t=At(e);return t.equals=dn,t}function Pr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)j(t[n])}}function Lr(e){for(var t=e.parent;t!==null;){if((t.f&R)===0)return(t.f&oe)===0?t:null;t=t.parent}return null}function Mt(e){var t,n=y;Z(Lr(e));try{e.f&=~me,Pr(e),t=qn(e)}finally{Z(n)}return t}function wn(e){var t=Mt(e);if(!e.equals(t)&&(e.wv=jn(),(!k?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){x(e,M);return}be||(z!==null?(Ct()||k?.is_fork)&&z.set(e,t):St(e))}function Ur(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(he),t.teardown=_e,t.ac=null,Ie(t,0),Dt(t))}function En(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Re(t)}let gt=new Set;const fe=new Map;let kn=!1;function Ve(e,t){var n={f:0,v:e,reactions:null,equals:un,rv:0,wv:0};return n}function D(e,t){const n=Ve(e);return Jr(n),n}function Fr(e,t=!1,n=!0){const r=Ve(e);return t||(r.equals=dn),Ye&&n&&w!==null&&w.l!==null&&(w.l.s??=[]).push(r),r}function E(e,t,n=!1){b!==null&&(!G||(b.f&Yt)!==0)&&Be()&&(b.f&(R|te|xt|Yt))!==0&&(B===null||!Me.call(B,e))&&pr();let r=n?$e(t):t;return Xe(e,r)}function Xe(e,t){if(!e.equals(t)){var n=e.v;be?fe.set(e,t):fe.set(e,n),e.v=t;var r=ae.ensure();if(r.capture(e,n),(e.f&R)!==0){const s=e;(e.f&O)!==0&&Mt(s),St(s)}e.wv=jn(),xn(e,O),Be()&&y!==null&&(y.f&M)!==0&&(y.f&(J|ye))===0&&(I===null?Qr([e]):I.push(e)),!r.is_fork&>.size>0&&!kn&&jr()}return t}function jr(){kn=!1;for(const e of gt)(e.f&M)!==0&&x(e,K),ze(e)&&Re(e);gt.clear()}function Fe(e){E(e,e.v+1)}function xn(e,t){var n=e.reactions;if(n!==null)for(var r=Be(),s=n.length,i=0;i<s;i++){var f=n[i],l=f.f;if(!(!r&&f===y)){var o=(l&O)===0;if(o&&x(f,t),(l&R)!==0){var a=f;z?.delete(a),(l&me)===0&&(l&Y&&(f.f|=me),xn(a,K))}else o&&((l&te)!==0&&Q!==null&&Q.add(f),H(f))}}}function $e(e){if(typeof e!="object"||e===null||Ue in e)return e;const t=kt(e);if(t!==sr&&t!==ir)return e;var n=new Map,r=tr(e),s=D(0),i=ve,f=l=>{if(ve===i)return l();var o=b,a=ve;V(null),Gt(i);var d=l();return V(o),Gt(a),d};return r&&n.set("length",D(e.length)),new Proxy(e,{defineProperty(l,o,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&dr();var d=n.get(o);return d===void 0?f(()=>{var u=D(a.value);return n.set(o,u),u}):E(d,a.value,!0),!0},deleteProperty(l,o){var a=n.get(o);if(a===void 0){if(o in l){const d=f(()=>D(C));n.set(o,d),Fe(s)}}else E(a,C),Fe(s);return!0},get(l,o,a){if(o===Ue)return e;var d=n.get(o),u=o in l;if(d===void 0&&(!u||Le(l,o)?.writable)&&(d=f(()=>{var v=$e(u?l[o]:C),_=D(v);return _}),n.set(o,d)),d!==void 0){var c=p(d);return c===C?void 0:c}return Reflect.get(l,o,a)},getOwnPropertyDescriptor(l,o){var a=Reflect.getOwnPropertyDescriptor(l,o);if(a&&"value"in a){var d=n.get(o);d&&(a.value=p(d))}else if(a===void 0){var u=n.get(o),c=u?.v;if(u!==void 0&&c!==C)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(l,o){if(o===Ue)return!0;var a=n.get(o),d=a!==void 0&&a.v!==C||Reflect.has(l,o);if(a!==void 0||y!==null&&(!d||Le(l,o)?.writable)){a===void 0&&(a=f(()=>{var c=d?$e(l[o]):C,v=D(c);return v}),n.set(o,a));var u=p(a);if(u===C)return!1}return d},set(l,o,a,d){var u=n.get(o),c=o in l;if(r&&o==="length")for(var v=a;v<u.v;v+=1){var _=n.get(v+"");_!==void 0?E(_,C):v in l&&(_=f(()=>D(C)),n.set(v+"",_))}if(u===void 0)(!c||Le(l,o)?.writable)&&(u=f(()=>D(void 0)),E(u,$e(a)),n.set(o,u));else{c=u.v!==C;var g=f(()=>$e(a));E(u,g)}var T=Reflect.getOwnPropertyDescriptor(l,o);if(T?.set&&T.set.call(d,a),!c){if(r&&typeof o=="string"){var S=n.get("length"),$=Number(o);Number.isInteger($)&&$>=S.v&&E(S,$+1)}Fe(s)}return!0},ownKeys(l){p(s);var o=Reflect.ownKeys(l).filter(u=>{var c=n.get(u);return c===void 0||c.v!==C});for(var[a,d]of n)d.v!==C&&!(a in l)&&o.push(a);return o},setPrototypeOf(){hr()}})}var zt,Sn,Tn,An;function Ir(){if(zt===void 0){zt=window,Sn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Tn=Le(t,"firstChild").get,An=Le(t,"nextSibling").get,qt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),qt(n)&&(n.__t=void 0)}}function et(e=""){return document.createTextNode(e)}function tt(e){return Tn.call(e)}function lt(e){return An.call(e)}function N(e,t){return tt(e)}function Ne(e,t=!1){{var n=tt(e);return n instanceof Comment&&n.data===""?lt(n):n}}function A(e,t=1,n=!1){let r=e;for(;t--;)r=lt(r);return r}function qr(){return!1}function Yr(e,t,n){return document.createElementNS(fn,e,void 0)}function Mn(e){var t=b,n=y;V(null),Z(null);try{return e()}finally{V(t),Z(n)}}function Cn(e){y===null&&(b===null&&ur(),fr()),be&&ar()}function Br(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ne(e,t,n){var r=y;r!==null&&(r.f&W)!==0&&(e|=W);var s={ctx:w,deps:null,nodes:null,f:e|O|Y,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{Re(s)}catch(l){throw j(s),l}else t!==null&&H(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Oe)===0&&(i=i.first,(e&te)!==0&&(e&Ce)!==0&&i!==null&&(i.f|=Ce)),i!==null&&(i.parent=r,r!==null&&Br(i,r),b!==null&&(b.f&R)!==0&&(e&ye)===0)){var f=b;(f.effects??=[]).push(i)}return s}function Ct(){return b!==null&&!G}function Dn(e){const t=ne(qe,null,!1);return x(t,M),t.teardown=e,t}function mt(e){Cn();var t=y.f,n=!b&&(t&J)!==0&&(t&ge)===0;if(n){var r=w;(r.e??=[]).push(e)}else return Rn(e)}function Rn(e){return ne(st|ln,e,!1)}function Vr(e){return Cn(),ne(qe|ln,e,!0)}function zr(e){ae.ensure();const t=ne(ye|Oe,e,!0);return(n={})=>new Promise(r=>{n.outro?je(t,()=>{j(t),r(void 0)}):(j(t),r(void 0))})}function Hr(e){return ne(xt|Oe,e,!0)}function Gr(e,t=0){return ne(qe|t,e,!0)}function xe(e,t=[],n=[],r=[]){Dr(r,t,n,s=>{ne(qe,()=>e(...s.map(p)),!0)})}function On(e,t=0){var n=ne(te|t,e,!0);return n}function X(e){return ne(J|Oe,e,!0)}function $n(e){var t=e.teardown;if(t!==null){const n=be,r=b;Ht(!0),V(null);try{t.call(null)}finally{Ht(n),V(r)}}}function Dt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Mn(()=>{s.abort(he)});var r=n.next;(n.f&ye)!==0?n.parent=null:j(n,t),n=r}}function Kr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&J)===0&&j(t),t=n}}function j(e,t=!0){var n=!1;(t||(e.f&on)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Wr(e.nodes.start,e.nodes.end),n=!0),Dt(e,t&&!n),Ie(e,0),x(e,oe);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();$n(e);var s=e.parent;s!==null&&s.first!==null&&Nn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Wr(e,t){for(;e!==null;){var n=e===t?null:lt(e);e.remove(),e=n}}function Nn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function je(e,t,n=!0){var r=[];Pn(e,r,!0);var s=()=>{n&&j(e),t&&t()},i=r.length;if(i>0){var f=()=>--i||s();for(var l of r)l.out(f)}else s()}function Pn(e,t,n){if((e.f&W)===0){e.f^=W;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var i=s.next,f=(s.f&Ce)!==0||(s.f&J)!==0&&(e.f&te)!==0;Pn(s,t,f?n:!1),s=i}}}function Zr(e){Ln(e,!0)}function Ln(e,t){if((e.f&W)!==0){e.f^=W,(e.f&M)===0&&(x(e,O),H(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Ce)!==0||(n.f&J)!==0;Ln(n,s?t:!1),n=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const f of i)(f.is_global||t)&&f.in()}}function Un(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:lt(n);t.append(n),n=s}}let Qe=!1,be=!1;function Ht(e){be=e}let b=null,G=!1;function V(e){b=e}let y=null;function Z(e){y=e}let B=null;function Jr(e){b!==null&&(B===null?B=[e]:B.push(e))}let P=null,F=0,I=null;function Qr(e){I=e}let Fn=1,pe=0,ve=pe;function Gt(e){ve=e}function jn(){return++Fn}function ze(e){var t=e.f;if((t&O)!==0)return!0;if(t&R&&(e.f&=~me),(t&K)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(ze(i)&&wn(i),i.wv>e.wv)return!0}(t&Y)!==0&&z===null&&x(e,M)}return!1}function In(e,t,n=!0){var r=e.reactions;if(r!==null&&!(B!==null&&Me.call(B,e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&R)!==0?In(i,t,!1):t===i&&(n?x(i,O):(i.f&M)!==0&&x(i,K),H(i))}}function qn(e){var t=P,n=F,r=I,s=b,i=B,f=w,l=G,o=ve,a=e.f;P=null,F=0,I=null,b=(a&(J|ye))===0?e:null,B=null,De(e.ctx),G=!1,ve=++pe,e.ac!==null&&(Mn(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=pt;var d=e.fn,u=d();e.f|=ge;var c=e.deps,v=k?.is_fork;if(P!==null){var _;if(v||Ie(e,F),c!==null&&F>0)for(c.length=F+P.length,_=0;_<P.length;_++)c[F+_]=P[_];else e.deps=c=P;if(Ct()&&(e.f&Y)!==0)for(_=F;_<c.length;_++)(c[_].reactions??=[]).push(e)}else!v&&c!==null&&F<c.length&&(Ie(e,F),c.length=F);if(Be()&&I!==null&&!G&&c!==null&&(e.f&(R|K|O))===0)for(_=0;_<I.length;_++)In(I[_],e);if(s!==null&&s!==e){if(pe++,s.deps!==null)for(let g=0;g<n;g+=1)s.deps[g].rv=pe;if(t!==null)for(const g of t)g.rv=pe;I!==null&&(r===null?r=I:r.push(...I))}return(e.f&le)!==0&&(e.f^=le),u}catch(g){return _n(g)}finally{e.f^=pt,P=t,F=n,I=r,b=s,B=i,De(f),G=l,ve=o}}function Xr(e,t){let n=t.reactions;if(n!==null){var r=nr.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&R)!==0&&(P===null||!Me.call(P,t))){var i=t;(i.f&Y)!==0&&(i.f^=Y,i.f&=~me),St(i),Ur(i),Ie(i,0)}}function Ie(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Xr(e,n[r])}function Re(e){var t=e.f;if((t&oe)===0){x(e,M);var n=y,r=Qe;y=e,Qe=!0;try{(t&(te|sn))!==0?Kr(e):Dt(e),$n(e);var s=qn(e);e.teardown=typeof s=="function"?s:null,e.wv=Fn;var i;ct&&br&&(e.f&O)!==0&&e.deps}finally{Qe=r,y=n}}}function p(e){var t=e.f,n=(t&R)!==0;if(b!==null&&!G){var r=y!==null&&(y.f&oe)!==0;if(!r&&(B===null||!Me.call(B,e))){var s=b.deps;if((b.f&pt)!==0)e.rv<pe&&(e.rv=pe,P===null&&s!==null&&s[F]===e?F++:P===null?P=[e]:P.push(e));else{(b.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[b]:Me.call(i,b)||i.push(b)}}}if(be&&fe.has(e))return fe.get(e);if(n){var f=e;if(be){var l=f.v;return((f.f&M)===0&&f.reactions!==null||Bn(f))&&(l=Mt(f)),fe.set(f,l),l}var o=(f.f&Y)===0&&!G&&b!==null&&(Qe||(b.f&Y)!==0),a=(f.f&ge)===0;ze(f)&&(o&&(f.f|=Y),wn(f)),o&&!a&&(En(f),Yn(f))}if(z?.has(e))return z.get(e);if((e.f&le)!==0)throw e.v;return e.v}function Yn(e){if(e.f|=Y,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&R)!==0&&(t.f&Y)===0&&(En(t),Yn(t))}function Bn(e){if(e.v===C)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(fe.has(t)||(t.f&R)!==0&&Bn(t))return!0;return!1}function at(e){var t=G;try{return G=!0,e()}finally{G=t}}function es(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Ue in e)bt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Ue in n&&bt(n)}}}function bt(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{bt(e[r],t)}catch{}const n=kt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=nn(n);for(let s in r){const i=r[s].get;if(i)try{i.call(e)}catch{}}}}}const ts=["touchstart","touchmove"];function ns(e){return ts.includes(e)}const Pe=Symbol("events"),Vn=new Set,yt=new Set;function ee(e,t,n){(t[Pe]??={})[e]=n}function zn(e){for(var t=0;t<e.length;t++)Vn.add(e[t]);for(var n of yt)n(e)}let Kt=null;function Wt(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Kt=e;var f=0,l=Kt===e&&e[Pe];if(l){var o=s.indexOf(l);if(o!==-1&&(t===document||t===window)){e[Pe]=t;return}var a=s.indexOf(t);if(a===-1)return;o<=a&&(f=o)}if(i=s[f]||e.target,i!==t){tn(e,"currentTarget",{configurable:!0,get(){return i||n}});var d=b,u=y;V(null),Z(null);try{for(var c,v=[];i!==null;){var _=i.assignedSlot||i.parentNode||i.host||null;try{var g=i[Pe]?.[r];g!=null&&(!i.disabled||e.target===i)&&g.call(i,e)}catch(T){c?v.push(T):c=T}if(e.cancelBubble||_===t||_===null)break;i=_}if(c){for(let T of v)queueMicrotask(()=>{throw T});throw c}}finally{e[Pe]=t,delete e.currentTarget,V(d),Z(u)}}}const rs=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ss(e){return rs?.createHTML(e)??e}function is(e){var t=Yr("template");return t.innerHTML=ss(e.replaceAll("<!>","<!---->")),t.content}function Zt(e,t){var n=y;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function we(e,t){var n=(t&vr)!==0,r=(t&gr)!==0,s,i=!e.startsWith("<!>");return()=>{s===void 0&&(s=is(i?e:"<!>"+e),n||(s=tt(s)));var f=r||Sn?document.importNode(s,!0):s.cloneNode(!0);if(n){var l=tt(f),o=f.lastChild;Zt(l,o)}else Zt(f,f);return f}}function de(e,t){e!==null&&e.before(t)}function se(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function os(e,t){return ls(e,t)}const Je=new Map;function ls(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:f=!0,transformError:l}){Ir();var o=void 0,a=zr(()=>{var d=n??t.appendChild(et());Mr(d,{pending:()=>{}},v=>{it({});var _=w;i&&(_.c=i),s&&(r.$$events=s),o=e(v,r)||{},ot()},l);var u=new Set,c=v=>{for(var _=0;_<v.length;_++){var g=v[_];if(!u.has(g)){u.add(g);var T=ns(g);for(const ue of[t,document]){var S=Je.get(ue);S===void 0&&(S=new Map,Je.set(ue,S));var $=S.get(g);$===void 0?(ue.addEventListener(g,Wt,{passive:T}),S.set(g,1)):S.set(g,$+1)}}}};return c(rr(Vn)),yt.add(c),()=>{for(var v of u)for(const T of[t,document]){var _=Je.get(T),g=_.get(v);--g==0?(T.removeEventListener(v,Wt),_.delete(v),_.size===0&&Je.delete(T)):_.set(v,g)}yt.delete(c),d!==n&&d.parentNode?.removeChild(d)}});return as.set(o,a),o}let as=new WeakMap;class fs{anchor;#t=new Map;#l=new Map;#e=new Map;#i=new Set;#n=!0;constructor(t,n=!0){this.anchor=t,this.#n=n}#o=()=>{var t=k;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#l.get(n);if(r)Zr(r),this.#i.delete(n);else{var s=this.#e.get(n);s&&(this.#l.set(n,s.effect),this.#e.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,f]of this.#t){if(this.#t.delete(i),i===t)break;const l=this.#e.get(f);l&&(j(l.effect),this.#e.delete(f))}for(const[i,f]of this.#l){if(i===n||this.#i.has(i))continue;const l=()=>{if(Array.from(this.#t.values()).includes(i)){var a=document.createDocumentFragment();Un(f,a),a.append(et()),this.#e.set(i,{effect:f,fragment:a})}else j(f);this.#i.delete(i),this.#l.delete(i)};this.#n||!r?(this.#i.add(i),je(f,l,!1)):l()}}};#r=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,s]of this.#e)n.includes(r)||(j(s.effect),this.#e.delete(r))};ensure(t,n){var r=k,s=qr();if(n&&!this.#l.has(t)&&!this.#e.has(t))if(s){var i=document.createDocumentFragment(),f=et();i.append(f),this.#e.set(t,{effect:X(()=>n(f)),fragment:i})}else this.#l.set(t,X(()=>n(this.anchor)));if(this.#t.set(r,t),s){for(const[l,o]of this.#l)l===t?r.unskip_effect(o):r.skip_effect(o);for(const[l,o]of this.#e)l===t?r.unskip_effect(o.effect):r.skip_effect(o.effect);r.oncommit(this.#o),r.ondiscard(this.#r)}else this.#o()}}function Te(e,t,n=!1){var r=new fs(e),s=n?Ce:0;function i(f,l){r.ensure(f,l)}On(()=>{var f=!1;t((l,o=0)=>{f=!0,i(o,l)}),f||i(!1,null)},s)}const us=Symbol("is custom element"),cs=Symbol("is html");function wt(e,t,n,r){var s=ds(e);s[t]!==(s[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&hs(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ds(e){return e.__attributes??={[us]:e.nodeName.includes("-"),[cs]:e.namespaceURI===fn}}var Jt=new Map;function hs(e){var t=e.getAttribute("is")||e.nodeName,n=Jt.get(t);if(n)return n;Jt.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=nn(s);for(var f in r)r[f].set&&n.push(f);s=kt(s)}return n}function ps(e=!1){const t=w,n=t.l.u;if(!n)return;let r=()=>es(t.s);if(e){let s=0,i={};const f=At(()=>{let l=!1;const o=t.s;for(const a in o)o[a]!==i[a]&&(i[a]=o[a],l=!0);return l&&s++,s});r=()=>p(f)}n.b.length&&Vr(()=>{Qt(t,r),dt(n.b)}),mt(()=>{const s=at(()=>n.m.map(or));return()=>{for(const i of s)typeof i=="function"&&i()}}),n.a.length&&mt(()=>{Qt(t,r),dt(n.a)})}function Qt(e,t){if(e.l.s)for(const n of e.l.s)p(n);t()}function Hn(e,t,n){if(e==null)return t(void 0),_e;const r=at(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const ke=[];function Xt(e,t=_e){let n=null;const r=new Set;function s(l){if(cn(e,l)&&(e=l,n)){const o=!ke.length;for(const a of r)a[1](),ke.push(a,e);if(o){for(let a=0;a<ke.length;a+=2)ke[a][0](ke[a+1]);ke.length=0}}}function i(l){s(l(e))}function f(l,o=_e){const a=[l,o];return r.add(a),r.size===1&&(n=t(s,i)||_e),l(e),()=>{r.delete(a),r.size===0&&n&&(n(),n=null)}}return{set:s,update:i,subscribe:f}}function _s(e){let t;return Hn(e,n=>t=n)(),t}let Et=Symbol();function nt(e,t,n){const r=n[t]??={store:null,source:Fr(void 0),unsubscribe:_e};if(r.store!==e&&!(Et in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=_e;else{var s=!0;r.unsubscribe=Hn(e,i=>{s?r.source.v=i:E(r.source,i)}),s=!1}return e&&Et in n?_s(e):p(r.source)}function rt(e,t){return e.set(t),t}function Rt(){const e={};function t(){Dn(()=>{for(var n in e)e[n].unsubscribe();tn(e,Et,{enumerable:!1,value:!0})})}return[e,t]}function Ot(e){w===null&&an(),Ye&&w.l!==null?vs(w).m.push(e):mt(()=>{const t=at(e);if(typeof t=="function")return t})}function vs(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const gs="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(gs);yr();var ms=we("<strong>cc</strong> <br/>",1),bs=we("<strong>bcc</strong> <br/>",1),ys=we("<strong>subject</strong> <br/>",1),ws=we("<strong>body</strong> <br/>",1),Es=we('<dialog open=""><article><h4> </h4> <p><small><!> <!> <!> <!></small></p> <section><a href="#gmail">open in <strong>Gmail</strong></a> <a href="#outlook">open in <strong>Outlook</strong></a> <a href="#yahoo">open in <strong>Yahoo Mail</strong></a> <a><strong>open</strong> default</a> <a href="#copy"><strong> </strong></a></section> <footer><small><a href="https://github.com/Sammy-T/maildo" target="_blank">maildo</a></small></footer></article></dialog>');function ks(e,t){it(t,!0);const n=()=>nt(l,"$selectedMailto",r),[r,s]=Rt(),i="type-url",f="type-data",l=hn("selectedMailto");let o="",a=D(""),d=D(""),u=D(""),c=D(""),v=D(""),_=D(""),g=D(!1);function T(){const h=new URL(n().href),{searchParams:m}=h;E(a,h.pathname,!0),E(d,m.get("cc"),!0),E(u,m.get("bcc"),!0),E(c,m.get("subject"),!0),E(v,m.get("body"),!0)}function S(){const{dataset:h}=n();E(a,h.address&&h.domain?`${h.address}@${h.domain}`:"",!0),E(d,h.ccAddress&&h.ccDomain?`${h.ccAddress}@${h.ccDomain}`:"",!0),E(u,h.bccAddress&&h.bccDomain?`${h.bccAddress}@${h.bccDomain}`:"",!0),E(c,h.subject,!0),E(v,h.body,!0)}function $(){switch(o){case i:return n().href;case f:const h=new URLSearchParams;p(d)&&h.set("cc",p(d)),p(u)&&h.set("bcc",p(u)),p(c)&&h.set("subject",p(c)),p(v)&&h.set("body",p(v));const m=new URL(`mailto:${p(a)}`);return m.search=h.toString(),m.toString();default:return console.error(`Invalid mailto type: ${o}`),""}}function ue(h){h.preventDefault();const m="https://mail.google.com/mail/?extsrc=mailto&url="+encodeURIComponent(p(_));window.open(m,"_blank","noopener, noreferrer"),re()}function He(h){h.preventDefault();const m=new URLSearchParams;m.set("path","/mail/action/compose"),p(a)&&m.set("to",p(a)),p(c)&&m.set("subject",p(c)),p(v)&&m.set("body",p(v));const U=new URL("https://outlook.live.com/owa/");U.search=m.toString(),window.open(U.toString(),"_blank","noopener, noreferrer"),re()}function Ge(h){h.preventDefault();const m=new URLSearchParams;p(a)&&m.set("to",p(a)),p(c)&&m.set("subject",p(c)),p(v)&&m.set("body",p(v));const U=new URL("https://compose.mail.yahoo.com");U.search=m.toString(),window.open(U.toString(),"_blank","noopener, noreferrer"),re()}async function Ke(h){h.preventDefault();try{await navigator.clipboard.writeText(p(a)),E(g,!0),setTimeout(re,1500)}catch(m){console.error("Unable to copy to clipboard.",m)}}function re(h=null){h&&h.currentTarget!==h.target||rt(l,null)}Ot(()=>{n().href.startsWith("mailto:")?(o=i,T()):(o=f,S()),E(_,$(),!0)});var Ee=Es(),ft=N(Ee),We=N(ft),L=N(We),ce=A(We,2),ut=N(ce),$t=N(ut);{var Gn=h=>{var m=ms(),U=A(Ne(m));xe(()=>se(U,` ${p(d)??""}`)),de(h,m)};Te($t,h=>{p(d)&&h(Gn)})}var Nt=A($t,2);{var Kn=h=>{var m=bs(),U=A(Ne(m));xe(()=>se(U,` ${p(u)??""}`)),de(h,m)};Te(Nt,h=>{p(u)&&h(Kn)})}var Pt=A(Nt,2);{var Wn=h=>{var m=ys(),U=A(Ne(m));xe(()=>se(U,` ${p(c)??""}`)),de(h,m)};Te(Pt,h=>{p(c)&&h(Wn)})}var Zn=A(Pt,2);{var Jn=h=>{var m=ws(),U=A(Ne(m));xe(()=>se(U,` ${p(v)??""}`)),de(h,m)};Te(Zn,h=>{p(v)&&h(Jn)})}var Qn=A(ce,2),Lt=N(Qn),Ut=A(Lt,2),Ft=A(Ut,2),jt=A(Ft,2),It=A(jt,2),Xn=N(It),er=N(Xn);xe(()=>{se(L,p(a)),wt(jt,"href",p(_)),se(er,p(g)?"copied":"copy")}),ee("click",Ee,re),ee("click",Lt,ue),ee("click",Ut,He),ee("click",Ft,Ge),ee("click",It,Ke),de(e,Ee),ot(),s()}zn(["click"]);var xs=we('<dialog open=""><article><h4> </h4> <section><a href="#whatsapp">open in <strong>WhatsApp</strong></a> <a href="#skype">open in <strong>Skype</strong></a> <a><strong>call</strong> as default</a> <a><strong>text</strong> as default</a> <a href="#copy"><strong> </strong></a></section> <footer><small><a href="https://github.com/Sammy-T/maildo" target="_blank">maildo</a></small></footer></article></dialog>');function Ss(e,t){it(t,!0);const n=()=>nt(f,"$selectedCallto",r),[r,s]=Rt(),i=/^(tel:)|^(callto:)/,f=hn("selectedCallto");let l=D(""),o=D(!1);function a(){E(l,n().href.replace(i,""),!0)}function d(){const{dataset:L}=n();E(l,L.tel,!0)}function u(L){L.preventDefault();const ut=`https://wa.me/${p(l).replaceAll(/\D/g,"").replace(/^0+/,"")}`;window.open(ut,"_blank","noopener, noreferrer"),_()}function c(L){L.preventDefault();const ce=`skype:${encodeURIComponent(p(l))}`;window.open(ce,"_blank","noopener, noreferrer"),_()}async function v(L){L.preventDefault();try{await navigator.clipboard.writeText(p(l)),E(o,!0),setTimeout(_,1500)}catch(ce){console.error("Unable to copy to clipboard.",ce)}}function _(L=null){L&&L.currentTarget!==L.target||rt(f,null)}Ot(()=>{i.test(n().href)?a():d()});var g=xs(),T=N(g),S=N(T),$=N(S),ue=A(S,2),He=N(ue),Ge=A(He,2),Ke=A(Ge,2),re=A(Ke,2),Ee=A(re,2),ft=N(Ee),We=N(ft);xe(()=>{se($,p(l)),wt(Ke,"href",`tel:${p(l)}`),wt(re,"href",`sms:${p(l)}`),se(We,p(o)?"copied":"copy")}),ee("click",g,_),ee("click",He,u),ee("click",Ge,c),ee("click",Ee,v),de(e,g),ot(),s()}zn(["click"]);var Ts=we("<!> <!>",1);function As(e,t){it(t,!1);const n=()=>nt(o,"$selectedMailto",s),r=()=>nt(a,"$selectedCallto",s),[s,i]=Rt(),f='a[href^="mailto:"]:not(.no-maildo), a[href="#maildo"][data-address], a.maildo[data-address]',l='a[href^="tel:"]:not(.no-maildo), a[href^="callto:"]:not(.no-maildo), a[href="#maildo"][data-tel], a.maildo[data-tel]',o=Xt(null);Bt("selectedMailto",o);const a=Xt(null);Bt("selectedCallto",a),Ot(()=>{const g=document.querySelectorAll(f),T=document.querySelectorAll(l);g.forEach(S=>{S.addEventListener("click",$=>{$.preventDefault(),rt(o,S)})}),T.forEach(S=>{S.addEventListener("click",$=>{$.preventDefault(),rt(a,S)})})}),ps();var d=Ts(),u=Ne(d);{var c=g=>{ks(g,{})};Te(u,g=>{n()&&g(c)})}var v=A(u,2);{var _=g=>{Ss(g,{})};Te(v,g=>{r()&&g(_)})}de(e,d),ot(),i()}const en="maildo-app";function Ms(){let e=document.getElementById(en);if(!e)e=document.createElement("slot"),e.id=en,document.body.appendChild(e);else if(e.childElementCount>0){console.warn("App target already exists");return}os(As,{target:e})}Ms();
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const dt=!1;var er=Array.isArray,tr=Array.prototype.indexOf,Ae=Array.prototype.includes,nr=Array.from,tn=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,nn=Object.getOwnPropertyDescriptors,rr=Object.prototype,sr=Array.prototype,kt=Object.getPrototypeOf,qt=Object.isExtensible;const _e=()=>{};function ir(e){return e()}function ht(e){for(var t=0;t<e.length;t++)e[t]()}function rn(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const R=2,Be=4,Me=8,sn=1<<24,fe=16,J=32,be=64,pt=128,Y=512,M=1024,$=2048,K=4096,W=8192,ie=16384,Oe=32768,Ce=65536,Yt=1<<17,or=1<<18,Ne=1<<19,on=1<<20,ge=65536,_t=1<<21,xt=1<<22,oe=1<<23,je=Symbol("$state"),he=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function ln(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function lr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ar(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function fr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ur(e){throw new Error("https://svelte.dev/e/effect_orphan")}function cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function dr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function hr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function pr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function _r(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const vr=1,gr=2,C=Symbol(),an="http://www.w3.org/1999/xhtml";function mr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function fn(e){return e===this.v}function un(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function cn(e){return!un(e,this.v)}let Ve=!1,br=!1;function yr(){Ve=!0}let w=null;function De(e){w=e}function dn(e){return hn().get(e)}function Bt(e,t){return hn().set(e,t),t}function ot(e,t=!1,n){w={p:w,i:!1,c:null,e:null,s:e,x:null,l:Ve&&!t?{s:null,u:null,$:[]}:null}}function lt(e){var t=w,n=t.e;if(n!==null){t.e=null;for(var r of n)Dn(r)}return t.i=!0,w=t.p,{}}function ze(){return!Ve||w!==null&&w.l===null}function hn(e){return w===null&&ln(),w.c??=new Map(wr(w)||void 0)}function wr(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let xe=[];function Er(){var e=xe;xe=[],ht(e)}function Te(e){if(xe.length===0){var t=xe;queueMicrotask(()=>{t===xe&&Er()})}xe.push(e)}function pn(e){var t=y;if(t===null)return b.f|=oe,e;if((t.f&Oe)===0&&(t.f&Be)===0)throw e;se(e,t)}function se(e,t){for(;t!==null;){if((t.f&pt)!==0){if((t.f&Oe)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const kr=-7169;function x(e,t){e.f=e.f&kr|t}function St(e){(e.f&Y)!==0||e.deps===null?x(e,M):x(e,K)}function _n(e){if(e!==null)for(const t of e)(t.f&R)===0||(t.f&ge)===0||(t.f^=ge,_n(t.deps))}function vn(e,t,n){(e.f&$)!==0?t.add(e):(e.f&K)!==0&&n.add(e),_n(e.deps),x(e,M)}const Qe=new Set;let k=null,z=null,q=[],Tt=null,Re=null;class le{current=new Map;previous=new Map;#e=new Set;#l=new Set;#t=0;#o=0;#n=null;#i=new Set;#r=new Set;#s=new Map;is_fork=!1;#a=!1;#u(){return this.is_fork||this.#o>0}skip_effect(t){this.#s.has(t)||this.#s.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#s.get(t);if(n){this.#s.delete(t);for(var r of n.d)x(r,$),H(r);for(r of n.m)x(r,K),H(r)}}process(t){q=[],this.apply();var n=Re=[],r=[];for(const s of t)this.#f(s,n,r);if(Re=null,this.#u()){this.#c(r),this.#c(n);for(const[s,i]of this.#s)bn(s,i)}else{k=null;for(const s of this.#e)s(this);this.#e.clear(),this.#t===0&&this.#d(),Vt(r),Vt(n),this.#i.clear(),this.#r.clear(),this.#n?.resolve()}z=null}#f(t,n,r){t.f^=M;for(var s=t.first;s!==null;){var i=s.f,a=(i&(J|be))!==0,f=a&&(i&M)!==0,o=f||(i&W)!==0||this.#s.has(s);if(!o&&s.fn!==null){a?s.f^=M:(i&Be)!==0?n.push(s):Ge(s)&&((i&fe)!==0&&this.#r.add(s),$e(s));var l=s.first;if(l!==null){s=l;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#c(t){for(var n=0;n<t.length;n+=1)vn(t[n],this.#i,this.#r)}capture(t,n){n!==C&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&oe)===0&&(this.current.set(t,t.v),z?.set(t,t.v))}activate(){k=this,this.apply()}deactivate(){k===this&&(k=null,z=null)}flush(){if(q.length>0)k=this,xr();else if(this.#t===0&&!this.is_fork){for(const t of this.#e)t(this);this.#e.clear(),this.#d(),this.#n?.resolve()}this.deactivate()}discard(){for(const t of this.#l)t(this);this.#l.clear()}#d(){if(Qe.size>1){this.previous.clear();var t=k,n=z,r=!0;for(const i of Qe){if(i===this){r=!1;continue}const a=[];for(const[o,l]of this.current){if(i.current.has(o))if(r&&l!==i.current.get(o))i.current.set(o,l);else continue;a.push(o)}if(a.length===0)continue;const f=[...i.current.keys()].filter(o=>!this.current.has(o));if(f.length>0){var s=q;q=[];const o=new Set,l=new Map;for(const u of a)gn(u,f,o,l);if(q.length>0){k=i,i.apply();for(const u of q)i.#f(u,[],[]);i.deactivate()}q=s}}k=t,z=n}this.#s.clear(),Qe.delete(this)}increment(t){this.#t+=1,t&&(this.#o+=1)}decrement(t){this.#t-=1,t&&(this.#o-=1),!this.#a&&(this.#a=!0,Te(()=>{this.#a=!1,this.#u()?q.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#i)this.#r.delete(t),x(t,$),H(t);for(const t of this.#r)x(t,K),H(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#l.add(t)}settled(){return(this.#n??=rn()).promise}static ensure(){if(k===null){const t=k=new le;Qe.add(k),Te(()=>{k===t&&t.flush()})}return k}apply(){}}function xr(){var e=null;try{for(var t=0;q.length>0;){var n=le.ensure();if(t++>1e3){var r,s;Sr()}n.process(q),ae.clear()}}finally{q=[],Tt=null,Re=null}}function Sr(){try{cr()}catch(e){se(e,Tt)}}let Q=null;function Vt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ie|W))===0&&Ge(r)&&(Q=new Set,$e(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&On(r),Q?.size>0)){ae.clear();for(const s of Q){if((s.f&(ie|W))!==0)continue;const i=[s];let a=s.parent;for(;a!==null;)Q.has(a)&&(Q.delete(a),i.push(a)),a=a.parent;for(let f=i.length-1;f>=0;f--){const o=i[f];(o.f&(ie|W))===0&&$e(o)}}Q.clear()}}Q=null}}function gn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&R)!==0?gn(s,t,n,r):(i&(xt|fe))!==0&&(i&$)===0&&mn(s,t,r)&&(x(s,$),H(s))}}function mn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(Ae.call(t,s))return!0;if((s.f&R)!==0&&mn(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function H(e){var t=Tt=e,n=t.b;if(n?.is_pending&&(e.f&(Be|Me|sn))!==0&&(e.f&Oe)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(Re!==null&&t===y&&(e.f&Me)===0)return;if((r&(be|J))!==0){if((r&M)===0)return;t.f^=M}}q.push(t)}function bn(e,t){if(!((e.f&J)!==0&&(e.f&M)!==0)){(e.f&$)!==0?t.d.push(e):(e.f&K)!==0&&t.m.push(e),x(e,M);for(var n=e.first;n!==null;)bn(n,t),n=n.next}}function Tr(e){let t=0,n=He(0),r;return()=>{Ct()&&(p(n),Gr(()=>(t===0&&(r=ft(()=>e(()=>Ie(n)))),t+=1,()=>{Te(()=>{t-=1,t===0&&(r?.(),r=void 0,Ie(n))})})))}}var Ar=Ce|Ne;function Mr(e,t,n,r){new Cr(e,t,n,r)}class Cr{parent;is_pending=!1;transform_error;#e;#l=null;#t;#o;#n;#i=null;#r=null;#s=null;#a=null;#u=0;#f=0;#c=!1;#d=new Set;#p=new Set;#h=null;#b=Tr(()=>(this.#h=He(this.#u),()=>{this.#h=null}));constructor(t,n,r,s){this.#e=t,this.#t=n,this.#o=i=>{var a=y;a.b=this,a.f|=pt,r(i)},this.parent=y.b,this.transform_error=s??this.parent?.transform_error??(i=>i),this.#n=Rn(()=>{this.#g()},Ar)}#y(){try{this.#i=X(()=>this.#o(this.#e))}catch(t){this.error(t)}}#w(t){const n=this.#t.failed;n&&(this.#s=X(()=>{n(this.#e,()=>t,()=>()=>{})}))}#E(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#r=X(()=>t(this.#e)),Te(()=>{var n=this.#a=document.createDocumentFragment(),r=nt();n.append(r),this.#i=this.#v(()=>(le.ensure(),X(()=>this.#o(r)))),this.#f===0&&(this.#e.before(n),this.#a=null,qe(this.#r,()=>{this.#r=null}),this.#_())}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#u=0,this.#i=X(()=>{this.#o(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();Ln(this.#i,t);const n=this.#t.pending;this.#r=X(()=>n(this.#e))}else this.#_()}catch(n){this.error(n)}}#_(){this.is_pending=!1;for(const t of this.#d)x(t,$),H(t);for(const t of this.#p)x(t,K),H(t);this.#d.clear(),this.#p.clear()}defer_effect(t){vn(t,this.#d,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#v(t){var n=y,r=b,s=w;Z(this.#n),V(this.#n),De(this.#n.ctx);try{return t()}catch(i){return pn(i),null}finally{Z(n),V(r),De(s)}}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#f+=t,this.#f===0&&(this.#_(),this.#r&&qe(this.#r,()=>{this.#r=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t){this.#m(t),this.#u+=t,!(!this.#h||this.#c)&&(this.#c=!0,Te(()=>{this.#c=!1,this.#h&&tt(this.#h,this.#u)}))}get_effect_pending(){return this.#b(),p(this.#h)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#i&&(j(this.#i),this.#i=null),this.#r&&(j(this.#r),this.#r=null),this.#s&&(j(this.#s),this.#s=null);var s=!1,i=!1;const a=()=>{if(s){mr();return}s=!0,i&&_r(),this.#s!==null&&qe(this.#s,()=>{this.#s=null}),this.#v(()=>{le.ensure(),this.#g()})},f=o=>{try{i=!0,n?.(o,a),i=!1}catch(l){se(l,this.#n&&this.#n.parent)}r&&(this.#s=this.#v(()=>{le.ensure();try{return X(()=>{var l=y;l.b=this,l.f|=pt,r(this.#e,()=>o,()=>a)})}catch(l){return se(l,this.#n.parent),null}}))};Te(()=>{var o;try{o=this.transform_error(t)}catch(l){se(l,this.#n&&this.#n.parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(f,l=>se(l,this.#n&&this.#n.parent)):f(o)})}}function Dr(e,t,n,r){const s=ze()?At:Nr;var i=e.filter(c=>!c.settled);if(n.length===0&&i.length===0){r(t.map(s));return}var a=y,f=Rr(),o=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(c=>c.promise)):null;function l(c){f();try{r(c)}catch(d){(a.f&ie)===0&&se(d,a)}vt()}if(n.length===0){o.then(()=>l(t.map(s)));return}function u(){f(),Promise.all(n.map(c=>Or(c))).then(c=>l([...t.map(s),...c])).catch(c=>se(c,a))}o?o.then(u):u()}function Rr(){var e=y,t=b,n=w,r=k;return function(i=!0){Z(e),V(t),De(n),i&&r?.activate()}}function vt(e=!0){Z(null),V(null),De(null),e&&k?.deactivate()}function $r(){var e=y.b,t=k,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function At(e){var t=R|$,n=b!==null&&(b.f&R)!==0?b:null;return y!==null&&(y.f|=Ne),{ctx:w,deps:null,effects:null,equals:fn,f:t,fn:e,reactions:null,rv:0,v:C,wv:0,parent:n??y,ac:null}}function Or(e,t,n){y===null&&lr();var s=void 0,i=He(C),a=!b,f=new Map;return Hr(()=>{var o=rn();s=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).finally(vt)}catch(d){o.reject(d),vt()}var l=k;if(a){var u=$r();f.get(l)?.reject(he),f.delete(l),f.set(l,o)}const c=(d,v=void 0)=>{if(l.activate(),v)v!==he&&(i.f|=oe,tt(i,v));else{(i.f&oe)!==0&&(i.f^=oe),tt(i,d);for(const[_,g]of f){if(f.delete(_),_===l)break;g.reject(he)}}u&&u()};o.promise.then(c,d=>c(null,d||"unknown"))}),Cn(()=>{for(const o of f.values())o.reject(he)}),new Promise(o=>{function l(u){function c(){u===s?o(i):l(s)}u.then(c,c)}l(s)})}function Nr(e){const t=At(e);return t.equals=cn,t}function Pr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)j(t[n])}}function Lr(e){for(var t=e.parent;t!==null;){if((t.f&R)===0)return(t.f&ie)===0?t:null;t=t.parent}return null}function Mt(e){var t,n=y;Z(Lr(e));try{e.f&=~ge,Pr(e),t=In(e)}finally{Z(n)}return t}function yn(e){var t=Mt(e);if(!e.equals(t)&&(e.wv=Fn(),(!k?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){x(e,M);return}me||(z!==null?(Ct()||k?.is_fork)&&z.set(e,t):St(e))}function Ur(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(he),t.teardown=_e,t.ac=null,Ye(t,0),Dt(t))}function wn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&$e(t)}let gt=new Set;const ae=new Map;let En=!1;function He(e,t){var n={f:0,v:e,reactions:null,equals:fn,rv:0,wv:0};return n}function D(e,t){const n=He(e);return Jr(n),n}function Fr(e,t=!1,n=!0){const r=He(e);return t||(r.equals=cn),Ve&&n&&w!==null&&w.l!==null&&(w.l.s??=[]).push(r),r}function E(e,t,n=!1){b!==null&&(!G||(b.f&Yt)!==0)&&ze()&&(b.f&(R|fe|xt|Yt))!==0&&(B===null||!Ae.call(B,e))&&pr();let r=n?Pe(t):t;return tt(e,r)}function tt(e,t){if(!e.equals(t)){var n=e.v;me?ae.set(e,t):ae.set(e,n),e.v=t;var r=le.ensure();if(r.capture(e,n),(e.f&R)!==0){const s=e;(e.f&$)!==0&&Mt(s),St(s)}e.wv=Fn(),kn(e,$),ze()&&y!==null&&(y.f&M)!==0&&(y.f&(J|be))===0&&(I===null?Qr([e]):I.push(e)),!r.is_fork&>.size>0&&!En&&jr()}return t}function jr(){En=!1;for(const e of gt)(e.f&M)!==0&&x(e,K),Ge(e)&&$e(e);gt.clear()}function Ie(e){E(e,e.v+1)}function kn(e,t){var n=e.reactions;if(n!==null)for(var r=ze(),s=n.length,i=0;i<s;i++){var a=n[i],f=a.f;if(!(!r&&a===y)){var o=(f&$)===0;if(o&&x(a,t),(f&R)!==0){var l=a;z?.delete(l),(f&ge)===0&&(f&Y&&(a.f|=ge),kn(l,K))}else o&&((f&fe)!==0&&Q!==null&&Q.add(a),H(a))}}}function Pe(e){if(typeof e!="object"||e===null||je in e)return e;const t=kt(e);if(t!==rr&&t!==sr)return e;var n=new Map,r=er(e),s=D(0),i=ve,a=f=>{if(ve===i)return f();var o=b,l=ve;V(null),Gt(i);var u=f();return V(o),Gt(l),u};return r&&n.set("length",D(e.length)),new Proxy(e,{defineProperty(f,o,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&dr();var u=n.get(o);return u===void 0?a(()=>{var c=D(l.value);return n.set(o,c),c}):E(u,l.value,!0),!0},deleteProperty(f,o){var l=n.get(o);if(l===void 0){if(o in f){const u=a(()=>D(C));n.set(o,u),Ie(s)}}else E(l,C),Ie(s);return!0},get(f,o,l){if(o===je)return e;var u=n.get(o),c=o in f;if(u===void 0&&(!c||Fe(f,o)?.writable)&&(u=a(()=>{var v=Pe(c?f[o]:C),_=D(v);return _}),n.set(o,u)),u!==void 0){var d=p(u);return d===C?void 0:d}return Reflect.get(f,o,l)},getOwnPropertyDescriptor(f,o){var l=Reflect.getOwnPropertyDescriptor(f,o);if(l&&"value"in l){var u=n.get(o);u&&(l.value=p(u))}else if(l===void 0){var c=n.get(o),d=c?.v;if(c!==void 0&&d!==C)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return l},has(f,o){if(o===je)return!0;var l=n.get(o),u=l!==void 0&&l.v!==C||Reflect.has(f,o);if(l!==void 0||y!==null&&(!u||Fe(f,o)?.writable)){l===void 0&&(l=a(()=>{var d=u?Pe(f[o]):C,v=D(d);return v}),n.set(o,l));var c=p(l);if(c===C)return!1}return u},set(f,o,l,u){var c=n.get(o),d=o in f;if(r&&o==="length")for(var v=l;v<c.v;v+=1){var _=n.get(v+"");_!==void 0?E(_,C):v in f&&(_=a(()=>D(C)),n.set(v+"",_))}if(c===void 0)(!d||Fe(f,o)?.writable)&&(c=a(()=>D(void 0)),E(c,Pe(l)),n.set(o,c));else{d=c.v!==C;var g=a(()=>Pe(l));E(c,g)}var T=Reflect.getOwnPropertyDescriptor(f,o);if(T?.set&&T.set.call(u,l),!d){if(r&&typeof o=="string"){var S=n.get("length"),O=Number(o);Number.isInteger(O)&&O>=S.v&&E(S,O+1)}Ie(s)}return!0},ownKeys(f){p(s);var o=Reflect.ownKeys(f).filter(c=>{var d=n.get(c);return d===void 0||d.v!==C});for(var[l,u]of n)u.v!==C&&!(l in f)&&o.push(l);return o},setPrototypeOf(){hr()}})}var zt,xn,Sn,Tn;function Ir(){if(zt===void 0){zt=window,xn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Sn=Fe(t,"firstChild").get,Tn=Fe(t,"nextSibling").get,qt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),qt(n)&&(n.__t=void 0)}}function nt(e=""){return document.createTextNode(e)}function rt(e){return Sn.call(e)}function at(e){return Tn.call(e)}function N(e,t){return rt(e)}function Le(e,t=!1){{var n=rt(e);return n instanceof Comment&&n.data===""?at(n):n}}function A(e,t=1,n=!1){let r=e;for(;t--;)r=at(r);return r}function qr(){return!1}function Yr(e,t,n){return document.createElementNS(an,e,void 0)}function An(e){var t=b,n=y;V(null),Z(null);try{return e()}finally{V(t),Z(n)}}function Mn(e){y===null&&(b===null&&ur(),fr()),me&&ar()}function Br(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function te(e,t){var n=y;n!==null&&(n.f&W)!==0&&(e|=W);var r={ctx:w,deps:null,nodes:null,f:e|$|Y,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&Be)!==0)Re!==null?Re.push(r):H(r);else if(t!==null){try{$e(r)}catch(a){throw j(r),a}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&Ne)===0&&(s=s.first,(e&fe)!==0&&(e&Ce)!==0&&s!==null&&(s.f|=Ce))}if(s!==null&&(s.parent=n,n!==null&&Br(s,n),b!==null&&(b.f&R)!==0&&(e&be)===0)){var i=b;(i.effects??=[]).push(s)}return r}function Ct(){return b!==null&&!G}function Cn(e){const t=te(Me,null);return x(t,M),t.teardown=e,t}function mt(e){Mn();var t=y.f,n=!b&&(t&J)!==0&&(t&Oe)===0;if(n){var r=w;(r.e??=[]).push(e)}else return Dn(e)}function Dn(e){return te(Be|on,e)}function Vr(e){return Mn(),te(Me|on,e)}function zr(e){le.ensure();const t=te(be|Ne,e);return(n={})=>new Promise(r=>{n.outro?qe(t,()=>{j(t),r(void 0)}):(j(t),r(void 0))})}function Hr(e){return te(xt|Ne,e)}function Gr(e,t=0){return te(Me|t,e)}function ke(e,t=[],n=[],r=[]){Dr(r,t,n,s=>{te(Me,()=>e(...s.map(p)))})}function Rn(e,t=0){var n=te(fe|t,e);return n}function X(e){return te(J|Ne,e)}function $n(e){var t=e.teardown;if(t!==null){const n=me,r=b;Ht(!0),V(null);try{t.call(null)}finally{Ht(n),V(r)}}}function Dt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&An(()=>{s.abort(he)});var r=n.next;(n.f&be)!==0?n.parent=null:j(n,t),n=r}}function Kr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&J)===0&&j(t),t=n}}function j(e,t=!0){var n=!1;(t||(e.f&or)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Wr(e.nodes.start,e.nodes.end),n=!0),Dt(e,t&&!n),Ye(e,0),x(e,ie);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();$n(e);var s=e.parent;s!==null&&s.first!==null&&On(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Wr(e,t){for(;e!==null;){var n=e===t?null:at(e);e.remove(),e=n}}function On(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function qe(e,t,n=!0){var r=[];Nn(e,r,!0);var s=()=>{n&&j(e),t&&t()},i=r.length;if(i>0){var a=()=>--i||s();for(var f of r)f.out(a)}else s()}function Nn(e,t,n){if((e.f&W)===0){e.f^=W;var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)(f.is_global||n)&&t.push(f);for(var s=e.first;s!==null;){var i=s.next,a=(s.f&Ce)!==0||(s.f&J)!==0&&(e.f&fe)!==0;Nn(s,t,a?n:!1),s=i}}}function Zr(e){Pn(e,!0)}function Pn(e,t){if((e.f&W)!==0){e.f^=W,(e.f&M)===0&&(x(e,$),H(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Ce)!==0||(n.f&J)!==0;Pn(n,s?t:!1),n=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const a of i)(a.is_global||t)&&a.in()}}function Ln(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:at(n);t.append(n),n=s}}let et=!1,me=!1;function Ht(e){me=e}let b=null,G=!1;function V(e){b=e}let y=null;function Z(e){y=e}let B=null;function Jr(e){b!==null&&(B===null?B=[e]:B.push(e))}let P=null,F=0,I=null;function Qr(e){I=e}let Un=1,pe=0,ve=pe;function Gt(e){ve=e}function Fn(){return++Un}function Ge(e){var t=e.f;if((t&$)!==0)return!0;if(t&R&&(e.f&=~ge),(t&K)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(Ge(i)&&yn(i),i.wv>e.wv)return!0}(t&Y)!==0&&z===null&&x(e,M)}return!1}function jn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(B!==null&&Ae.call(B,e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&R)!==0?jn(i,t,!1):t===i&&(n?x(i,$):(i.f&M)!==0&&x(i,K),H(i))}}function In(e){var t=P,n=F,r=I,s=b,i=B,a=w,f=G,o=ve,l=e.f;P=null,F=0,I=null,b=(l&(J|be))===0?e:null,B=null,De(e.ctx),G=!1,ve=++pe,e.ac!==null&&(An(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=_t;var u=e.fn,c=u();e.f|=Oe;var d=e.deps,v=k?.is_fork;if(P!==null){var _;if(v||Ye(e,F),d!==null&&F>0)for(d.length=F+P.length,_=0;_<P.length;_++)d[F+_]=P[_];else e.deps=d=P;if(Ct()&&(e.f&Y)!==0)for(_=F;_<d.length;_++)(d[_].reactions??=[]).push(e)}else!v&&d!==null&&F<d.length&&(Ye(e,F),d.length=F);if(ze()&&I!==null&&!G&&d!==null&&(e.f&(R|K|$))===0)for(_=0;_<I.length;_++)jn(I[_],e);if(s!==null&&s!==e){if(pe++,s.deps!==null)for(let g=0;g<n;g+=1)s.deps[g].rv=pe;if(t!==null)for(const g of t)g.rv=pe;I!==null&&(r===null?r=I:r.push(...I))}return(e.f&oe)!==0&&(e.f^=oe),c}catch(g){return pn(g)}finally{e.f^=_t,P=t,F=n,I=r,b=s,B=i,De(a),G=f,ve=o}}function Xr(e,t){let n=t.reactions;if(n!==null){var r=tr.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&R)!==0&&(P===null||!Ae.call(P,t))){var i=t;(i.f&Y)!==0&&(i.f^=Y,i.f&=~ge),St(i),Ur(i),Ye(i,0)}}function Ye(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Xr(e,n[r])}function $e(e){var t=e.f;if((t&ie)===0){x(e,M);var n=y,r=et;y=e,et=!0;try{(t&(fe|sn))!==0?Kr(e):Dt(e),$n(e);var s=In(e);e.teardown=typeof s=="function"?s:null,e.wv=Un;var i;dt&&br&&(e.f&$)!==0&&e.deps}finally{et=r,y=n}}}function p(e){var t=e.f,n=(t&R)!==0;if(b!==null&&!G){var r=y!==null&&(y.f&ie)!==0;if(!r&&(B===null||!Ae.call(B,e))){var s=b.deps;if((b.f&_t)!==0)e.rv<pe&&(e.rv=pe,P===null&&s!==null&&s[F]===e?F++:P===null?P=[e]:P.push(e));else{(b.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[b]:Ae.call(i,b)||i.push(b)}}}if(me&&ae.has(e))return ae.get(e);if(n){var a=e;if(me){var f=a.v;return((a.f&M)===0&&a.reactions!==null||Yn(a))&&(f=Mt(a)),ae.set(a,f),f}var o=(a.f&Y)===0&&!G&&b!==null&&(et||(b.f&Y)!==0),l=(a.f&Oe)===0;Ge(a)&&(o&&(a.f|=Y),yn(a)),o&&!l&&(wn(a),qn(a))}if(z?.has(e))return z.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function qn(e){if(e.f|=Y,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&R)!==0&&(t.f&Y)===0&&(wn(t),qn(t))}function Yn(e){if(e.v===C)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ae.has(t)||(t.f&R)!==0&&Yn(t))return!0;return!1}function ft(e){var t=G;try{return G=!0,e()}finally{G=t}}function es(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(je in e)bt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&je in n&&bt(n)}}}function bt(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{bt(e[r],t)}catch{}const n=kt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=nn(n);for(let s in r){const i=r[s].get;if(i)try{i.call(e)}catch{}}}}}const ts=["touchstart","touchmove"];function ns(e){return ts.includes(e)}const Ue=Symbol("events"),Bn=new Set,yt=new Set;function ee(e,t,n){(t[Ue]??={})[e]=n}function Vn(e){for(var t=0;t<e.length;t++)Bn.add(e[t]);for(var n of yt)n(e)}let Kt=null;function Wt(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Kt=e;var a=0,f=Kt===e&&e[Ue];if(f){var o=s.indexOf(f);if(o!==-1&&(t===document||t===window)){e[Ue]=t;return}var l=s.indexOf(t);if(l===-1)return;o<=l&&(a=o)}if(i=s[a]||e.target,i!==t){tn(e,"currentTarget",{configurable:!0,get(){return i||n}});var u=b,c=y;V(null),Z(null);try{for(var d,v=[];i!==null;){var _=i.assignedSlot||i.parentNode||i.host||null;try{var g=i[Ue]?.[r];g!=null&&(!i.disabled||e.target===i)&&g.call(i,e)}catch(T){d?v.push(T):d=T}if(e.cancelBubble||_===t||_===null)break;i=_}if(d){for(let T of v)queueMicrotask(()=>{throw T});throw d}}finally{e[Ue]=t,delete e.currentTarget,V(u),Z(c)}}}const rs=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ss(e){return rs?.createHTML(e)??e}function is(e){var t=Yr("template");return t.innerHTML=ss(e.replaceAll("<!>","<!---->")),t.content}function Zt(e,t){var n=y;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ye(e,t){var n=(t&vr)!==0,r=(t&gr)!==0,s,i=!e.startsWith("<!>");return()=>{s===void 0&&(s=is(i?e:"<!>"+e),n||(s=rt(s)));var a=r||xn?document.importNode(s,!0):s.cloneNode(!0);if(n){var f=rt(a),o=a.lastChild;Zt(f,o)}else Zt(a,a);return a}}function de(e,t){e!==null&&e.before(t)}function re(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function os(e,t){return ls(e,t)}const Xe=new Map;function ls(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:a=!0,transformError:f}){Ir();var o=void 0,l=zr(()=>{var u=n??t.appendChild(nt());Mr(u,{pending:()=>{}},v=>{ot({});var _=w;i&&(_.c=i),s&&(r.$$events=s),o=e(v,r)||{},lt()},f);var c=new Set,d=v=>{for(var _=0;_<v.length;_++){var g=v[_];if(!c.has(g)){c.add(g);var T=ns(g);for(const ue of[t,document]){var S=Xe.get(ue);S===void 0&&(S=new Map,Xe.set(ue,S));var O=S.get(g);O===void 0?(ue.addEventListener(g,Wt,{passive:T}),S.set(g,1)):S.set(g,O+1)}}}};return d(nr(Bn)),yt.add(d),()=>{for(var v of c)for(const T of[t,document]){var _=Xe.get(T),g=_.get(v);--g==0?(T.removeEventListener(v,Wt),_.delete(v),_.size===0&&Xe.delete(T)):_.set(v,g)}yt.delete(d),u!==n&&u.parentNode?.removeChild(u)}});return as.set(o,l),o}let as=new WeakMap;class fs{anchor;#e=new Map;#l=new Map;#t=new Map;#o=new Set;#n=!0;constructor(t,n=!0){this.anchor=t,this.#n=n}#i=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#l.get(n);if(r)Zr(r),this.#o.delete(n);else{var s=this.#t.get(n);s&&(this.#l.set(n,s.effect),this.#t.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,a]of this.#e){if(this.#e.delete(i),i===t)break;const f=this.#t.get(a);f&&(j(f.effect),this.#t.delete(a))}for(const[i,a]of this.#l){if(i===n||this.#o.has(i))continue;const f=()=>{if(Array.from(this.#e.values()).includes(i)){var l=document.createDocumentFragment();Ln(a,l),l.append(nt()),this.#t.set(i,{effect:a,fragment:l})}else j(a);this.#o.delete(i),this.#l.delete(i)};this.#n||!r?(this.#o.add(i),qe(a,f,!1)):f()}}};#r=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,s]of this.#t)n.includes(r)||(j(s.effect),this.#t.delete(r))};ensure(t,n){var r=k,s=qr();if(n&&!this.#l.has(t)&&!this.#t.has(t))if(s){var i=document.createDocumentFragment(),a=nt();i.append(a),this.#t.set(t,{effect:X(()=>n(a)),fragment:i})}else this.#l.set(t,X(()=>n(this.anchor)));if(this.#e.set(r,t),s){for(const[f,o]of this.#l)f===t?r.unskip_effect(o):r.skip_effect(o);for(const[f,o]of this.#t)f===t?r.unskip_effect(o.effect):r.skip_effect(o.effect);r.oncommit(this.#i),r.ondiscard(this.#r)}else this.#i(r)}}function Se(e,t,n=!1){var r=new fs(e),s=n?Ce:0;function i(a,f){r.ensure(a,f)}Rn(()=>{var a=!1;t((f,o=0)=>{a=!0,i(o,f)}),a||i(!1,null)},s)}const us=Symbol("is custom element"),cs=Symbol("is html");function wt(e,t,n,r){var s=ds(e);s[t]!==(s[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&hs(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ds(e){return e.__attributes??={[us]:e.nodeName.includes("-"),[cs]:e.namespaceURI===an}}var Jt=new Map;function hs(e){var t=e.getAttribute("is")||e.nodeName,n=Jt.get(t);if(n)return n;Jt.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=nn(s);for(var a in r)r[a].set&&n.push(a);s=kt(s)}return n}function ps(e=!1){const t=w,n=t.l.u;if(!n)return;let r=()=>es(t.s);if(e){let s=0,i={};const a=At(()=>{let f=!1;const o=t.s;for(const l in o)o[l]!==i[l]&&(i[l]=o[l],f=!0);return f&&s++,s});r=()=>p(a)}n.b.length&&Vr(()=>{Qt(t,r),ht(n.b)}),mt(()=>{const s=ft(()=>n.m.map(ir));return()=>{for(const i of s)typeof i=="function"&&i()}}),n.a.length&&mt(()=>{Qt(t,r),ht(n.a)})}function Qt(e,t){if(e.l.s)for(const n of e.l.s)p(n);t()}function zn(e,t,n){if(e==null)return t(void 0),_e;const r=ft(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const Ee=[];function Xt(e,t=_e){let n=null;const r=new Set;function s(f){if(un(e,f)&&(e=f,n)){const o=!Ee.length;for(const l of r)l[1](),Ee.push(l,e);if(o){for(let l=0;l<Ee.length;l+=2)Ee[l][0](Ee[l+1]);Ee.length=0}}}function i(f){s(f(e))}function a(f,o=_e){const l=[f,o];return r.add(l),r.size===1&&(n=t(s,i)||_e),f(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:s,update:i,subscribe:a}}function _s(e){let t;return zn(e,n=>t=n)(),t}let Et=Symbol();function st(e,t,n){const r=n[t]??={store:null,source:Fr(void 0),unsubscribe:_e};if(r.store!==e&&!(Et in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=_e;else{var s=!0;r.unsubscribe=zn(e,i=>{s?r.source.v=i:E(r.source,i)}),s=!1}return e&&Et in n?_s(e):p(r.source)}function it(e,t){return e.set(t),t}function Rt(){const e={};function t(){Cn(()=>{for(var n in e)e[n].unsubscribe();tn(e,Et,{enumerable:!1,value:!0})})}return[e,t]}function $t(e){w===null&&ln(),Ve&&w.l!==null?vs(w).m.push(e):mt(()=>{const t=ft(e);if(typeof t=="function")return t})}function vs(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const gs="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(gs);yr();var ms=ye("<strong>cc</strong> <br/>",1),bs=ye("<strong>bcc</strong> <br/>",1),ys=ye("<strong>subject</strong> <br/>",1),ws=ye("<strong>body</strong> <br/>",1),Es=ye('<dialog open=""><article><h4> </h4> <p><small><!> <!> <!> <!></small></p> <section><a href="#gmail">open in <strong>Gmail</strong></a> <a href="#outlook">open in <strong>Outlook</strong></a> <a href="#yahoo">open in <strong>Yahoo Mail</strong></a> <a><strong>open</strong> default</a> <a href="#copy"><strong> </strong></a></section> <footer><small><a href="https://github.com/Sammy-T/maildo" target="_blank">maildo</a></small></footer></article></dialog>');function ks(e,t){ot(t,!0);const n=()=>st(f,"$selectedMailto",r),[r,s]=Rt(),i="type-url",a="type-data",f=dn("selectedMailto");let o="",l=D(""),u=D(""),c=D(""),d=D(""),v=D(""),_=D(""),g=D(!1);function T(){const h=new URL(n().href),{searchParams:m}=h;E(l,h.pathname,!0),E(u,m.get("cc"),!0),E(c,m.get("bcc"),!0),E(d,m.get("subject"),!0),E(v,m.get("body"),!0)}function S(){const{dataset:h}=n();E(l,h.address&&h.domain?`${h.address}@${h.domain}`:"",!0),E(u,h.ccAddress&&h.ccDomain?`${h.ccAddress}@${h.ccDomain}`:"",!0),E(c,h.bccAddress&&h.bccDomain?`${h.bccAddress}@${h.bccDomain}`:"",!0),E(d,h.subject,!0),E(v,h.body,!0)}function O(){switch(o){case i:return n().href;case a:const h=new URLSearchParams;p(u)&&h.set("cc",p(u)),p(c)&&h.set("bcc",p(c)),p(d)&&h.set("subject",p(d)),p(v)&&h.set("body",p(v));const m=new URL(`mailto:${p(l)}`);return m.search=h.toString(),m.toString();default:return console.error(`Invalid mailto type: ${o}`),""}}function ue(h){h.preventDefault();const m="https://mail.google.com/mail/?extsrc=mailto&url="+encodeURIComponent(p(_));window.open(m,"_blank","noopener, noreferrer"),ne()}function Ke(h){h.preventDefault();const m=new URLSearchParams;m.set("path","/mail/action/compose"),p(l)&&m.set("to",p(l)),p(d)&&m.set("subject",p(d)),p(v)&&m.set("body",p(v));const U=new URL("https://outlook.live.com/owa/");U.search=m.toString(),window.open(U.toString(),"_blank","noopener, noreferrer"),ne()}function We(h){h.preventDefault();const m=new URLSearchParams;p(l)&&m.set("to",p(l)),p(d)&&m.set("subject",p(d)),p(v)&&m.set("body",p(v));const U=new URL("https://compose.mail.yahoo.com");U.search=m.toString(),window.open(U.toString(),"_blank","noopener, noreferrer"),ne()}async function Ze(h){h.preventDefault();try{await navigator.clipboard.writeText(p(l)),E(g,!0),setTimeout(ne,1500)}catch(m){console.error("Unable to copy to clipboard.",m)}}function ne(h=null){h&&h.currentTarget!==h.target||it(f,null)}$t(()=>{n().href.startsWith("mailto:")?(o=i,T()):(o=a,S()),E(_,O(),!0)});var we=Es(),ut=N(we),Je=N(ut),L=N(Je),ce=A(Je,2),ct=N(ce),Ot=N(ct);{var Hn=h=>{var m=ms(),U=A(Le(m));ke(()=>re(U,` ${p(u)??""}`)),de(h,m)};Se(Ot,h=>{p(u)&&h(Hn)})}var Nt=A(Ot,2);{var Gn=h=>{var m=bs(),U=A(Le(m));ke(()=>re(U,` ${p(c)??""}`)),de(h,m)};Se(Nt,h=>{p(c)&&h(Gn)})}var Pt=A(Nt,2);{var Kn=h=>{var m=ys(),U=A(Le(m));ke(()=>re(U,` ${p(d)??""}`)),de(h,m)};Se(Pt,h=>{p(d)&&h(Kn)})}var Wn=A(Pt,2);{var Zn=h=>{var m=ws(),U=A(Le(m));ke(()=>re(U,` ${p(v)??""}`)),de(h,m)};Se(Wn,h=>{p(v)&&h(Zn)})}var Jn=A(ce,2),Lt=N(Jn),Ut=A(Lt,2),Ft=A(Ut,2),jt=A(Ft,2),It=A(jt,2),Qn=N(It),Xn=N(Qn);ke(()=>{re(L,p(l)),wt(jt,"href",p(_)),re(Xn,p(g)?"copied":"copy")}),ee("click",we,ne),ee("click",Lt,ue),ee("click",Ut,Ke),ee("click",Ft,We),ee("click",It,Ze),de(e,we),lt(),s()}Vn(["click"]);var xs=ye('<dialog open=""><article><h4> </h4> <section><a href="#whatsapp">open in <strong>WhatsApp</strong></a> <a href="#skype">open in <strong>Skype</strong></a> <a><strong>call</strong> as default</a> <a><strong>text</strong> as default</a> <a href="#copy"><strong> </strong></a></section> <footer><small><a href="https://github.com/Sammy-T/maildo" target="_blank">maildo</a></small></footer></article></dialog>');function Ss(e,t){ot(t,!0);const n=()=>st(a,"$selectedCallto",r),[r,s]=Rt(),i=/^(tel:)|^(callto:)/,a=dn("selectedCallto");let f=D(""),o=D(!1);function l(){E(f,n().href.replace(i,""),!0)}function u(){const{dataset:L}=n();E(f,L.tel,!0)}function c(L){L.preventDefault();const ct=`https://wa.me/${p(f).replaceAll(/\D/g,"").replace(/^0+/,"")}`;window.open(ct,"_blank","noopener, noreferrer"),_()}function d(L){L.preventDefault();const ce=`skype:${encodeURIComponent(p(f))}`;window.open(ce,"_blank","noopener, noreferrer"),_()}async function v(L){L.preventDefault();try{await navigator.clipboard.writeText(p(f)),E(o,!0),setTimeout(_,1500)}catch(ce){console.error("Unable to copy to clipboard.",ce)}}function _(L=null){L&&L.currentTarget!==L.target||it(a,null)}$t(()=>{i.test(n().href)?l():u()});var g=xs(),T=N(g),S=N(T),O=N(S),ue=A(S,2),Ke=N(ue),We=A(Ke,2),Ze=A(We,2),ne=A(Ze,2),we=A(ne,2),ut=N(we),Je=N(ut);ke(()=>{re(O,p(f)),wt(Ze,"href",`tel:${p(f)}`),wt(ne,"href",`sms:${p(f)}`),re(Je,p(o)?"copied":"copy")}),ee("click",g,_),ee("click",Ke,c),ee("click",We,d),ee("click",we,v),de(e,g),lt(),s()}Vn(["click"]);var Ts=ye("<!> <!>",1);function As(e,t){ot(t,!1);const n=()=>st(o,"$selectedMailto",s),r=()=>st(l,"$selectedCallto",s),[s,i]=Rt(),a='a[href^="mailto:"]:not(.no-maildo), a[href="#maildo"][data-address], a.maildo[data-address]',f='a[href^="tel:"]:not(.no-maildo), a[href^="callto:"]:not(.no-maildo), a[href="#maildo"][data-tel], a.maildo[data-tel]',o=Xt(null);Bt("selectedMailto",o);const l=Xt(null);Bt("selectedCallto",l),$t(()=>{const g=document.querySelectorAll(a),T=document.querySelectorAll(f);g.forEach(S=>{S.addEventListener("click",O=>{O.preventDefault(),it(o,S)})}),T.forEach(S=>{S.addEventListener("click",O=>{O.preventDefault(),it(l,S)})})}),ps();var u=Ts(),c=Le(u);{var d=g=>{ks(g,{})};Se(c,g=>{n()&&g(d)})}var v=A(c,2);{var _=g=>{Ss(g,{})};Se(v,g=>{r()&&g(_)})}de(e,u),lt(),i()}const en="maildo-app";function Ms(){let e=document.getElementById(en);if(!e)e=document.createElement("slot"),e.id=en,document.body.appendChild(e);else if(e.childElementCount>0){console.warn("App target already exists");return}os(As,{target:e})}Ms();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maildo",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.12",
|
|
4
4
|
"description": "Mailto links extended.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Sammy-T",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@sveltejs/vite-plugin-svelte": "^6.2.4",
|
|
20
|
-
"svelte": "^5.53.
|
|
20
|
+
"svelte": "^5.53.6",
|
|
21
21
|
"vite": "^7.3.1"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|