@konemono/nostr-share-component 0.0.15 → 0.0.17

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.
@@ -1,4 +1,4 @@
1
- var qn=Object.defineProperty;var ur=w=>{throw TypeError(w)};var Dn=(w,x,k)=>x in w?qn(w,x,{enumerable:!0,configurable:!0,writable:!0,value:k}):w[x]=k;var F=(w,x,k)=>Dn(w,typeof x!="symbol"?x+"":x,k),fr=(w,x,k)=>x.has(w)||ur("Cannot "+k);var A=(w,x,k)=>(fr(w,x,"read from private field"),k?k.call(w):x.get(w)),he=(w,x,k)=>x.has(w)?ur("Cannot add the same private member more than once"):x instanceof WeakSet?x.add(w):x.set(w,k),de=(w,x,k,Tt)=>(fr(w,x,"write to private field"),Tt?Tt.call(w,k):x.set(w,k),k);(function(){"use strict";var K,q;const w="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(w);const x=1,k=2,Tt=16,cr=8,vr=1,hr=2,_e="[",jt="[!",Gt="]",ot={},dr=Symbol(),_r=["touchstart","touchmove"];function pr(t){return _r.includes(t)}const pe=!1;var ge=Array.isArray,Kt=Array.from,St=Object.keys,Ct=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,gr=Object.getOwnPropertyDescriptors,$r=Object.getPrototypeOf;function mr(t){for(var e=0;e<t.length;e++)t[e]()}const I=2,$e=4,At=8,Wt=16,P=32,at=64,Jt=128,ut=256,Rt=512,R=1024,W=2048,mt=4096,H=8192,ft=16384,br=32768,Xt=65536,wr=1<<19,me=1<<20,yr=Symbol("$state"),be=Symbol("legacy props"),xr=Symbol("");function we(t){return t===this.v}function Er(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function kr(t){return!Er(t,this.v)}function Tr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Sr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Cr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Nr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let ye=!1;function Ot(t,e){var r={f:0,v:t,reactions:null,equals:we,version:0};return r}function Rr(t){return Or(Ot(t))}function Zt(t,e=!1){const r=Ot(t);return e||(r.equals=kr),r}function Or(t){return y!==null&&y.f&I&&(Y===null?Ur([t]):Y.push(t)),t}function qt(t,e){return y!==null&&Gr()&&y.f&(I|Wt)&&(Y===null||!Y.includes(t))&&Ar(),xe(t,e)}function xe(t,e){return t.equals(e)||(t.v=e,t.version=Be(),Ee(t,W),p!==null&&p.f&R&&!(p.f&P)&&(T!==null&&T.includes(t)?(G(p,W),Bt(p)):Z===null?jr([t]):Z.push(t))),e}function Ee(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,l=0;l<n;l++){var s=r[l],i=s.f;i&W||(G(s,e),i&(R|ut)&&(i&I?Ee(s,mt):Bt(s)))}}function Dt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let g=!1;function j(t){g=t}let $;function M(t){if(t===null)throw Dt(),ot;return $=t}function rt(){return M(V($))}function nt(t){if(g){if(V($)!==null)throw Dt(),ot;$=t}}function qr(t=1){if(g){for(var e=t,r=$;e--;)r=V(r);$=r}}function Qt(){for(var t=0,e=$;;){if(e.nodeType===8){var r=e.data;if(r===Gt){if(t===0)return e;t-=1}else(r===_e||r===jt)&&(t+=1)}var n=V(e);e.remove(),e=n}}var ke,Te,Se;function te(){if(ke===void 0){ke=window;var t=Element.prototype,e=Node.prototype;Te=Nt(e,"firstChild").get,Se=Nt(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0}}function bt(t=""){return document.createTextNode(t)}function J(t){return Te.call(t)}function V(t){return Se.call(t)}function ct(t,e){if(!g)return J(t);var r=J($);return r===null&&(r=$.appendChild(bt())),M(r),r}function ee(t,e){if(!g){var r=J(t);return r instanceof Comment&&r.data===""?V(r):r}return $}function re(t,e=1,r=!1){let n=g?$:t;for(var l;e--;)l=n,n=V(n);if(!g)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var i=bt();return n===null?l==null||l.after(i):n.before(i),M(i),i}return M(n),n}function Ce(t){t.textContent=""}function Dr(t){var e=I|W;p===null?e|=ut:p.f|=me;var r=y!==null&&y.f&I?y:null;const n={children:null,ctx:L,deps:null,equals:we,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function Ne(t){var e=t.children;if(e!==null){t.children=null;for(var r=0;r<e.length;r+=1){var n=e[r];n.f&I?ne(n):B(n)}}}function Ir(t){for(var e=t.parent;e!==null;){if(!(e.f&I))return e;e=e.parent}return null}function Ae(t){var e,r=p;X(Ir(t));try{Ne(t),e=Ye(t)}finally{X(r)}return e}function Re(t){var e=Ae(t),r=(st||t.f&ut)&&t.deps!==null?mt:R;G(t,r),t.equals(e)||(t.v=e,t.version=Be())}function ne(t){Ne(t),Et(t,0),G(t,ft),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Mr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function vt(t,e,r,n=!0){var l=(t&at)!==0,s=p,i={ctx:L,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|W,first:null,fn:e,last:null,next:null,parent:l?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var o=dt;try{He(!0),Vt(i),i.f|=br}catch(h){throw B(i),h}finally{He(o)}}else e!==null&&Bt(i);var u=r&&i.deps===null&&i.first===null&&i.nodes_start===null&&i.teardown===null&&(i.f&me)===0;if(!u&&!l&&n&&(s!==null&&Mr(i,s),y!==null&&y.f&I)){var v=y;(v.children??(v.children=[])).push(i)}return i}function Lr(t){const e=vt(at,t,!0);return()=>{B(e)}}function zr(t){const e=vt(at,t,!0);return(r={})=>new Promise(n=>{r.outro?Mt(e,()=>{B(e),n(void 0)}):(B(e),n(void 0))})}function Fr(t){return vt($e,t,!1)}function Pr(t){return vt(At,t,!0)}function Oe(t){return It(t)}function It(t,e=0){return vt(At|Wt|e,t,!0)}function ht(t,e=!0){return vt(At|P,t,!0,e)}function qe(t){var e=t.teardown;if(e!==null){const r=y;pt(null);try{e.call(null)}finally{pt(r)}}}function De(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)ne(e[r])}}function Ie(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;B(r,e),r=n}}function Hr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&P||B(e),e=r}}function B(t,e=!0){var r=!1;if((e||t.f&wr)&&t.nodes_start!==null){for(var n=t.nodes_start,l=t.nodes_end;n!==null;){var s=n===l?null:V(n);n.remove(),n=s}r=!0}Ie(t,e&&!r),De(t),Et(t,0),G(t,ft);var i=t.transitions;if(i!==null)for(const u of i)u.stop();qe(t);var o=t.parent;o!==null&&o.first!==null&&Me(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Me(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Mt(t,e){var r=[];le(t,r,!0),Le(r,()=>{B(t),e&&e()})}function Le(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var l of t)l.out(n)}else e()}function le(t,e,r){if(!(t.f&H)){if(t.f^=H,t.transitions!==null)for(const i of t.transitions)(i.is_global||r)&&e.push(i);for(var n=t.first;n!==null;){var l=n.next,s=(n.f&Xt)!==0||(n.f&P)!==0;le(n,e,s?r:!1),n=l}}}function Lt(t){ze(t,!0)}function ze(t,e){if(t.f&H){xt(t)&&Vt(t),t.f^=H;for(var r=t.first;r!==null;){var n=r.next,l=(r.f&Xt)!==0||(r.f&P)!==0;ze(r,l?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let zt=!1,se=[];function Fe(){zt=!1;const t=se.slice();se=[],mr(t)}function Vr(t){zt||(zt=!0,queueMicrotask(Fe)),se.push(t)}function Br(){zt&&Fe()}const Pe=0,Yr=1;let Ft=!1,Pt=Pe,wt=!1,yt=null,dt=!1;function He(t){dt=t}let lt=[],_t=0,In=[],y=null;function pt(t){y=t}let p=null;function X(t){p=t}let Y=null;function Ur(t){Y=t}let T=null,O=0,Z=null;function jr(t){Z=t}let Ve=1,st=!1,L=null;function Be(){return++Ve}function Gr(){return!ye}function xt(t){var i,o;var e=t.f;if(e&W)return!0;if(e&mt){var r=t.deps,n=(e&ut)!==0;if(r!==null){var l;if(e&Rt){for(l=0;l<r.length;l++)((i=r[l]).reactions??(i.reactions=[])).push(t);t.f^=Rt}for(l=0;l<r.length;l++){var s=r[l];if(xt(s)&&Re(s),n&&p!==null&&!st&&!((o=s==null?void 0:s.reactions)!=null&&o.includes(t))&&(s.reactions??(s.reactions=[])).push(t),s.version>t.version)return!0}}(!n||p!==null&&!st)&&G(t,R)}return!1}function Kr(t,e){for(var r=e;r!==null;){if(r.f&Jt)try{r.fn(t);return}catch{r.f^=Jt}r=r.parent}throw Ft=!1,t}function Wr(t){return(t.f&ft)===0&&(t.parent===null||(t.parent.f&Jt)===0)}function Ht(t,e,r,n){if(Ft){if(r===null&&(Ft=!1),Wr(e))throw t;return}r!==null&&(Ft=!0);{Kr(t,e);return}}function Ye(t){var c;var e=T,r=O,n=Z,l=y,s=st,i=Y,o=L,u=t.f;T=null,O=0,Z=null,y=u&(P|at)?null:t,st=!dt&&(u&ut)!==0,Y=null,L=t.ctx;try{var v=(0,t.fn)(),h=t.deps;if(T!==null){var a;if(Et(t,O),h!==null&&O>0)for(h.length=O+T.length,a=0;a<T.length;a++)h[O+a]=T[a];else t.deps=h=T;if(!st)for(a=O;a<h.length;a++)((c=h[a]).reactions??(c.reactions=[])).push(t)}else h!==null&&O<h.length&&(Et(t,O),h.length=O);return v}finally{T=e,O=r,Z=n,y=l,st=s,Y=i,L=o}}function Jr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var l=r.length-1;l===0?r=e.reactions=null:(r[n]=r[l],r.pop())}}r===null&&e.f&I&&(T===null||!T.includes(e))&&(G(e,mt),e.f&(ut|Rt)||(e.f^=Rt),Et(e,0))}function Et(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Jr(t,r[n])}function Vt(t){var e=t.f;if(!(e&ft)){G(t,R);var r=p,n=L;p=t;try{e&Wt?Hr(t):Ie(t),De(t),qe(t);var l=Ye(t);t.teardown=typeof l=="function"?l:null,t.version=Ve}catch(s){Ht(s,t,r,n||t.ctx)}finally{p=r}}}function Ue(){if(_t>1e3){_t=0;try{Tr()}catch(t){if(yt!==null)Ht(t,yt,null);else throw t}}_t++}function je(t){var e=t.length;if(e!==0){Ue();var r=dt;dt=!0;try{for(var n=0;n<e;n++){var l=t[n];l.f&R||(l.f^=R);var s=[];Ge(l,s),Xr(s)}}finally{dt=r}}}function Xr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(ft|H)))try{xt(n)&&(Vt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Me(n):n.fn=null))}catch(l){Ht(l,n,null,n.ctx)}}}function Zr(){if(wt=!1,_t>1001)return;const t=lt;lt=[],je(t),wt||(_t=0,yt=null)}function Bt(t){Pt===Pe&&(wt||(wt=!0,queueMicrotask(Zr))),yt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(at|P)){if(!(r&R))return;e.f^=R}}lt.push(e)}function Ge(t,e){var r=t.first,n=[];t:for(;r!==null;){var l=r.f,s=(l&P)!==0,i=s&&(l&R)!==0,o=r.next;if(!i&&!(l&H))if(l&At){if(s)r.f^=R;else try{xt(r)&&Vt(r)}catch(a){Ht(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else l&$e&&n.push(r);if(o===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var v=a.next;if(v!==null){r=v;continue t}a=a.parent}}r=o}for(var h=0;h<n.length;h++)u=n[h],e.push(u),Ge(u,e)}function U(t){var e=Pt,r=lt;try{Ue();const l=[];Pt=Yr,lt=l,wt=!1,je(r);var n=t==null?void 0:t();return Br(),(lt.length>0||l.length>0)&&U(),_t=0,yt=null,n}finally{Pt=e,lt=r}}function z(t){var h;var e=t.f,r=(e&I)!==0;if(r&&e&ft){var n=Ae(t);return ne(t),n}if(y!==null){Y!==null&&Y.includes(t)&&Nr();var l=y.deps;T===null&&l!==null&&l[O]===t?O++:T===null?T=[t]:T.push(t),Z!==null&&p!==null&&p.f&R&&!(p.f&P)&&Z.includes(t)&&(G(p,W),Bt(p))}else if(r&&t.deps===null)for(var s=t,i=s.parent,o=s;i!==null;)if(i.f&I){var u=i;o=u,i=u.parent}else{var v=i;(h=v.deriveds)!=null&&h.includes(o)||(v.deriveds??(v.deriveds=[])).push(o);break}return r&&(s=t,xt(s)&&Re(s)),t.v}function Qr(t){const e=y;try{return y=null,t()}finally{y=e}}const tn=~(W|mt|R);function G(t,e){t.f=t.f&tn|e}function ie(t,e=!1,r){L={p:L,c:null,e:null,m:!1,s:t,x:null,l:null}}function oe(t){const e=L;if(e!==null){t!==void 0&&(e.x=t);const i=e.e;if(i!==null){var r=p,n=y;e.e=null;try{for(var l=0;l<i.length;l++){var s=i[l];X(s.effect),pt(s.reaction),Fr(s.fn)}}finally{X(r),pt(n)}}L=e.p,e.m=!0}return t||{}}const Ke=new Set,ae=new Set;function We(t){for(var e=0;e<t.length;e++)Ke.add(t[e]);for(var r of ae)r(t)}function Yt(t){var _;var e=this,r=e.ownerDocument,n=t.type,l=((_=t.composedPath)==null?void 0:_.call(t))||[],s=l[0]||t.target,i=0,o=t.__root;if(o){var u=l.indexOf(o);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var v=l.indexOf(e);if(v===-1)return;u<=v&&(i=u)}if(s=l[i]||t.target,s!==e){Ct(t,"currentTarget",{configurable:!0,get(){return s||r}});var h=y,a=p;pt(null),X(null);try{for(var c,f=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var b=s["__"+n];if(b!==void 0&&!s.disabled)if(ge(b)){var[C,...S]=b;C.apply(s,[t,...S])}else b.call(s,t)}catch(m){c?f.push(m):c=m}if(t.cancelBubble||d===e||d===null)break;s=d}if(c){for(let m of f)queueMicrotask(()=>{throw m});throw c}}finally{t.__root=e,delete t.currentTarget,pt(h),X(a)}}}function Je(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Q(t,e){var r=p;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function kt(t,e){var r=(e&vr)!==0,n=(e&hr)!==0,l,s=!t.startsWith("<!>");return()=>{if(g)return Q($,null),$;l===void 0&&(l=Je(s?t:"<!>"+t),r||(l=J(l)));var i=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var o=J(i),u=i.lastChild;Q(o,u)}else Q(i,i);return i}}function en(){if(g)return Q($,null),$;var t=document.createDocumentFragment(),e=document.createComment(""),r=bt();return t.append(e,r),Q(e,r),t}function it(t,e){if(g){p.nodes_end=$,rt();return}t!==null&&t.before(e)}function rn(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=r==null?"":r+"")}function Xe(t,e){return Ze(t,e)}function nn(t,e){te(),e.intro=e.intro??!1;const r=e.target,n=g,l=$;try{for(var s=J(r);s&&(s.nodeType!==8||s.data!==_e);)s=V(s);if(!s)throw ot;j(!0),M(s),rt();const i=Ze(t,{...e,anchor:s});if($===null||$.nodeType!==8||$.data!==Gt)throw Dt(),ot;return j(!1),i}catch(i){if(i===ot)return e.recover===!1&&Sr(),te(),Ce(r),j(!1),Xe(t,e);throw i}finally{j(n),M(l)}}const gt=new Map;function Ze(t,{target:e,anchor:r,props:n={},events:l,context:s,intro:i=!0}){te();var o=new Set,u=a=>{for(var c=0;c<a.length;c++){var f=a[c];if(!o.has(f)){o.add(f);var d=pr(f);e.addEventListener(f,Yt,{passive:d});var b=gt.get(f);b===void 0?(document.addEventListener(f,Yt,{passive:d}),gt.set(f,1)):gt.set(f,b+1)}}};u(Kt(Ke)),ae.add(u);var v=void 0,h=zr(()=>{var a=r??e.appendChild(bt());return ht(()=>{if(s){ie({});var c=L;c.c=s}l&&(n.$$events=l),g&&Q(a,null),v=t(a,n)||{},g&&(p.nodes_end=$),s&&oe()}),()=>{var d;for(var c of o){e.removeEventListener(c,Yt);var f=gt.get(c);--f===0?(document.removeEventListener(c,Yt),gt.delete(c)):gt.set(c,f)}ae.delete(u),a!==r&&((d=a.parentNode)==null||d.removeChild(a))}});return ue.set(v,h),v}let ue=new WeakMap;function ln(t,e){const r=ue.get(t);return r?(ue.delete(t),r(e)):Promise.resolve()}function Qe(t,e,r=!1){g&&rt();var n=t,l=null,s=null,i=dr,o=r?Xt:0,u=!1;const v=(a,c=!0)=>{u=!0,h(c,a)},h=(a,c)=>{if(i===(i=a))return;let f=!1;if(g){const d=n.data===jt;!!i===d&&(n=Qt(),M(n),j(!1),f=!0)}i?(l?Lt(l):c&&(l=ht(()=>c(n))),s&&Mt(s,()=>{s=null})):(s?Lt(s):c&&(s=ht(()=>c(n))),l&&Mt(l,()=>{l=null})),f&&j(!0)};It(()=>{u=!1,e(v),u||h(null,null)},o),g&&(n=$)}function sn(t,e){return e}function on(t,e,r,n){for(var l=[],s=e.length,i=0;i<s;i++)le(e[i].e,l,!0);var o=s>0&&l.length===0&&r!==null;if(o){var u=r.parentNode;Ce(u),u.append(r),n.clear(),tt(t,e[0].prev,e[s-1].next)}Le(l,()=>{for(var v=0;v<s;v++){var h=e[v];o||(n.delete(h.k),tt(t,h.prev,h.next)),B(h.e,!o)}})}function an(t,e,r,n,l,s=null){var i=t,o={flags:e,items:new Map,first:null};{var u=t;i=g?M(J(u)):u.appendChild(bt())}g&&rt();var v=null,h=!1;It(()=>{var a=r(),c=ge(a)?a:a==null?[]:Kt(a),f=c.length;if(h&&f===0)return;h=f===0;let d=!1;if(g){var b=i.data===jt;b!==(f===0)&&(i=Qt(),M(i),j(!1),d=!0)}if(g){for(var C=null,S,_=0;_<f;_++){if($.nodeType===8&&$.data===Gt){i=$,d=!0,j(!1);break}var m=c[_],D=n(m,_);S=tr($,o,C,null,m,D,_,l,e),o.items.set(D,S),C=S}f>0&&M(Qt())}if(!g){var E=y;un(c,o,i,l,e,(E.f&H)!==0,n)}s!==null&&(f===0?v?Lt(v):v=ht(()=>s(i)):v!==null&&Mt(v,()=>{v=null})),d&&j(!0)}),g&&(i=$)}function un(t,e,r,n,l,s,i,o){var u=t.length,v=e.items,h=e.first,a=h,c,f=null,d=[],b=[],C,S,_,m;for(m=0;m<u;m+=1){if(C=t[m],S=i(C,m),_=v.get(S),_===void 0){var D=a?a.e.nodes_start:r;f=tr(D,e,f,f===null?e.first:f.next,C,S,m,n,l),v.set(S,f),d=[],b=[],a=f.next;continue}if(fn(_,C,m),_.e.f&H&&Lt(_.e),_!==a){if(c!==void 0&&c.has(_)){if(d.length<b.length){var E=b[0],N;f=E.prev;var $t=d[0],ce=d[d.length-1];for(N=0;N<d.length;N+=1)er(d[N],E,r);for(N=0;N<b.length;N+=1)c.delete(b[N]);tt(e,$t.prev,ce.next),tt(e,f,$t),tt(e,ce,E),a=E,f=ce,m-=1,d=[],b=[]}else c.delete(_),er(_,a,r),tt(e,_.prev,_.next),tt(e,_,f===null?e.first:f.next),tt(e,f,_),f=_;continue}for(d=[],b=[];a!==null&&a.k!==S;)(s||!(a.e.f&H))&&(c??(c=new Set)).add(a),b.push(a),a=a.next;if(a===null)continue;_=a}d.push(_),f=_,a=_.next}if(a!==null||c!==void 0){for(var ve=c===void 0?[]:Kt(c);a!==null;)(s||!(a.e.f&H))&&ve.push(a),a=a.next;var Rn=ve.length;if(Rn>0){var On=u===0?r:null;on(e,ve,On,v)}}p.first=e.first&&e.first.e,p.last=f&&f.e}function fn(t,e,r,n){xe(t.v,e),t.i=r}function tr(t,e,r,n,l,s,i,o,u,v){var h=(u&x)!==0,a=(u&Tt)===0,c=h?a?Zt(l):Ot(l):l,f=u&k?Ot(i):i,d={i:f,v:c,k:s,a:null,e:null,prev:r,next:n};try{return d.e=ht(()=>o(t,c,f),g),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?e.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{}}function er(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,l=e?e.e.nodes_start:r,s=t.e.nodes_start;s!==n;){var i=V(s);l.before(s),s=i}}function tt(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function rr(t,e,r,n,l){var s=t,i="",o;It(()=>{if(i===(i=e()??"")){g&&rt();return}o!==void 0&&(B(o),o=void 0),i!==""&&(o=ht(()=>{if(g){$.data;for(var u=rt(),v=u;u!==null&&(u.nodeType!==8||u.data!=="");)v=u,u=V(u);if(u===null)throw Dt(),ot;Q($,v),s=M(u);return}var h=i+"",a=Je(h);Q(J(a),a.lastChild),s.before(a)}))})}function cn(t,e,r,n,l){var o;g&&rt();var s=(o=e.$$slots)==null?void 0:o[r],i=!1;s===!0&&(s=e.children,i=!0),s===void 0?l!==null&&l(t):s(t,i?()=>n:n)}function nr(t,e){Vr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const l=document.createElement("style");l.id=e.hash,l.textContent=e.code,n.appendChild(l)}})}function fe(t,e,r,n){var l=t.__attributes??(t.__attributes={});g&&(l[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||l[e]!==(l[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[xr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&vn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var lr=new Map;function vn(t){var e=lr.get(t.nodeName);if(e)return e;lr.set(t.nodeName,e=[]);for(var r,n=t,l=Element.prototype;l!==n;){r=gr(n);for(var s in r)r[s].set&&e.push(s);n=$r(n)}return e}function hn(t,e){var r=t.__className,n=dn(e);g&&t.className===n?t.__className=n:(r!==n||g&&t.className!==n)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function dn(t){return t??""}function _n(t){for(var e=p,r=p;e!==null&&!(e.f&(P|at));)e=e.parent;try{return X(e),t()}finally{X(r)}}function et(t,e,r,n){var D;var l=!ye,s=(r&cr)!==0,i=!1,o;o=t[e];var u=yr in t||be in t,v=((D=Nt(t,e))==null?void 0:D.set)??(u&&s&&e in t?E=>t[e]=E:void 0),h=n,a=!0,c=!1,f=()=>(c=!0,a&&(a=!1,h=n),h);o===void 0&&n!==void 0&&(v&&l&&Cr(),o=f(),v&&v(o));var d;if(d=()=>{var E=t[e];return E===void 0?f():(a=!0,c=!1,E)},v){var b=t.$$legacy;return function(E,N){return arguments.length>0?((!N||b||i)&&v(N?d():E),E):d()}}var C=!1,S=!1,_=Zt(o),m=_n(()=>Dr(()=>{var E=d(),N=z(_);return C?(C=!1,S=!0,N):(S=!1,_.v=E)}));return function(E,N){if(arguments.length>0){const $t=N?z(m):E;return m.equals($t)||(C=!0,qt(_,$t),c&&h!==void 0&&(h=$t),Qr(()=>z(m))),E}return z(m)}}function pn(t){return new gn(t)}class gn{constructor(e){he(this,K);he(this,q);var s;var r=new Map,n=(i,o)=>{var u=Zt(o);return r.set(i,u),u};const l=new Proxy({...e.props||{},$$events:{}},{get(i,o){return z(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===be?!0:(z(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,u){return qt(r.get(o)??n(o,u),u),Reflect.set(i,o,u)}});de(this,q,(e.hydrate?nn:Xe)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&U(),de(this,K,l.$$events);for(const i of Object.keys(A(this,q)))i==="$set"||i==="$destroy"||i==="$on"||Ct(this,i,{get(){return A(this,q)[i]},set(o){A(this,q)[i]=o},enumerable:!0});A(this,q).$set=i=>{Object.assign(l,i)},A(this,q).$destroy=()=>{ln(A(this,q))}}$set(e){A(this,q).$set(e)}$on(e,r){A(this,K)[e]=A(this,K)[e]||[];const n=(...l)=>r.call(this,...l);return A(this,K)[e].push(n),()=>{A(this,K)[e]=A(this,K)[e].filter(l=>l!==n)}}$destroy(){A(this,q).$destroy()}}K=new WeakMap,q=new WeakMap;let sr;typeof HTMLElement=="function"&&(sr=class extends HTMLElement{constructor(e,r,n){super();F(this,"$$ctor");F(this,"$$s");F(this,"$$c");F(this,"$$cn",!1);F(this,"$$d",{});F(this,"$$r",!1);F(this,"$$p_d",{});F(this,"$$l",{});F(this,"$$l_u",new Map);F(this,"$$me");this.$$ctor=e,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const l=this.$$c.$on(e,r);this.$$l_u.set(r,l)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const l=this.$$l_u.get(r);l&&(l(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return s=>{const i=document.createElement("slot");l!=="default"&&(i.name=l),it(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=$n(this);for(const l of this.$$s)l in n&&(l==="default"&&!this.$$d.children?(this.$$d.children=e(l),r.default=!0):r[l]=e(l));for(const l of this.attributes){const s=this.$$g_p(l.name);s in this.$$d||(this.$$d[s]=Ut(s,l.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=pn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Lr(()=>{Pr(()=>{var l;this.$$r=!0;for(const s of St(this.$$c)){if(!((l=this.$$p_d[s])!=null&&l.reflect))continue;this.$$d[s]=this.$$c[s];const i=Ut(s,this.$$d[s],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,i)}this.$$r=!1})});for(const l in this.$$l)for(const s of this.$$l[l]){const i=this.$$c.$on(l,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,r,n){var l;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ut(e,n,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return St(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Ut(t,e,r,n){var s;const l=(s=r[t])==null?void 0:s.type;if(e=l==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(l){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(l){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function $n(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function ir(t,e,r,n,l,s){let i=class extends sr{constructor(){super(t,r,l),this.$$p_d=e}static get observedAttributes(){return St(e).map(o=>(e[o].attribute||o).toLowerCase())}};return St(e).forEach(o=>{Ct(i.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var a;u=Ut(o,u,e),this.$$d[o]=u;var v=this.$$c;if(v){var h=(a=Nt(v,o))==null?void 0:a.get;h?v[o]=u:v.$set({[o]:u})}}})}),n.forEach(o=>{Ct(i.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),t.element=i,i}const mn=[{name:"nostter",url:"https://nostter.app/post?content={text}&url={url}&title={title}",icon:"https://nostter.app/favicon.ico"},{name:"lumilumi",url:"https://lumilumi.vercel.app/post?url={url}&text={text}&title={title}",icon:"https://lumilumi.vercel.app/favicon.ico"}];var bn=t=>t.stopPropagation(),wn=(t,e,r)=>e(z(r).url),yn=kt('<button class="item svelte-qvlz7l"><img> </button>'),xn=kt('<div class="overlay svelte-qvlz7l"><div class="inner svelte-qvlz7l"><button class="close-button svelte-qvlz7l" aria-label="Close">✖</button> <h2 class="title svelte-qvlz7l">Share</h2> <div class="list svelte-qvlz7l"></div></div></div>');const En={hash:"svelte-qvlz7l",code:`
1
+ var NostrShare=function(b){"use strict";var Dn=Object.defineProperty;var fr=b=>{throw TypeError(b)};var Mn=(b,x,k)=>x in b?Dn(b,x,{enumerable:!0,configurable:!0,writable:!0,value:k}):b[x]=k;var F=(b,x,k)=>Mn(b,typeof x!="symbol"?x+"":x,k),cr=(b,x,k)=>x.has(b)||fr("Cannot "+k);var A=(b,x,k)=>(cr(b,x,"read from private field"),k?k.call(b):x.get(b)),de=(b,x,k)=>x.has(b)?fr("Cannot add the same private member more than once"):x instanceof WeakSet?x.add(b):x.set(b,k),_e=(b,x,k,Tt)=>(cr(b,x,"write to private field"),Tt?Tt.call(b,k):x.set(b,k),k);var K,q;const x="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(x);const k=1,Tt=2,vr=16,hr=8,dr=1,_r=2,pe="[",jt="[!",Gt="]",ot={},pr=Symbol(),gr=["touchstart","touchmove"];function $r(t){return gr.includes(t)}const ge=!1;var $e=Array.isArray,Kt=Array.from,St=Object.keys,Ct=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,mr=Object.getOwnPropertyDescriptors,br=Object.getPrototypeOf;function wr(t){for(var e=0;e<t.length;e++)t[e]()}const M=2,me=4,At=8,Wt=16,P=32,at=64,Jt=128,ut=256,Rt=512,R=1024,W=2048,mt=4096,H=8192,ft=16384,yr=32768,Xt=65536,xr=1<<19,be=1<<20,Er=Symbol("$state"),we=Symbol("legacy props"),kr=Symbol("");function ye(t){return t===this.v}function Tr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Sr(t){return!Tr(t,this.v)}function Cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ar(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Rr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let xe=!1;function Ot(t,e){var r={f:0,v:t,reactions:null,equals:ye,version:0};return r}function qr(t){return Dr(Ot(t))}function Zt(t,e=!1){const r=Ot(t);return e||(r.equals=Sr),r}function Dr(t){return y!==null&&y.f&M&&(Y===null?Gr([t]):Y.push(t)),t}function qt(t,e){return y!==null&&Wr()&&y.f&(M|Wt)&&(Y===null||!Y.includes(t))&&Or(),Ee(t,e)}function Ee(t,e){return t.equals(e)||(t.v=e,t.version=Ye(),ke(t,W),p!==null&&p.f&R&&!(p.f&P)&&(T!==null&&T.includes(t)?(G(p,W),Bt(p)):Z===null?Kr([t]):Z.push(t))),e}function ke(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,l=0;l<n;l++){var s=r[l],i=s.f;i&W||(G(s,e),i&(R|ut)&&(i&M?ke(s,mt):Bt(s)))}}function Dt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let g=!1;function j(t){g=t}let $;function I(t){if(t===null)throw Dt(),ot;return $=t}function rt(){return I(V($))}function nt(t){if(g){if(V($)!==null)throw Dt(),ot;$=t}}function Mr(t=1){if(g){for(var e=t,r=$;e--;)r=V(r);$=r}}function Qt(){for(var t=0,e=$;;){if(e.nodeType===8){var r=e.data;if(r===Gt){if(t===0)return e;t-=1}else(r===pe||r===jt)&&(t+=1)}var n=V(e);e.remove(),e=n}}var Te,Se,Ce;function te(){if(Te===void 0){Te=window;var t=Element.prototype,e=Node.prototype;Se=Nt(e,"firstChild").get,Ce=Nt(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0}}function bt(t=""){return document.createTextNode(t)}function J(t){return Se.call(t)}function V(t){return Ce.call(t)}function ct(t,e){if(!g)return J(t);var r=J($);return r===null&&(r=$.appendChild(bt())),I(r),r}function ee(t,e){if(!g){var r=J(t);return r instanceof Comment&&r.data===""?V(r):r}return $}function re(t,e=1,r=!1){let n=g?$:t;for(var l;e--;)l=n,n=V(n);if(!g)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var i=bt();return n===null?l==null||l.after(i):n.before(i),I(i),i}return I(n),n}function Ne(t){t.textContent=""}function Ir(t){var e=M|W;p===null?e|=ut:p.f|=be;var r=y!==null&&y.f&M?y:null;const n={children:null,ctx:L,deps:null,equals:ye,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function Ae(t){var e=t.children;if(e!==null){t.children=null;for(var r=0;r<e.length;r+=1){var n=e[r];n.f&M?ne(n):B(n)}}}function Lr(t){for(var e=t.parent;e!==null;){if(!(e.f&M))return e;e=e.parent}return null}function Re(t){var e,r=p;X(Lr(t));try{Ae(t),e=Ue(t)}finally{X(r)}return e}function Oe(t){var e=Re(t),r=(st||t.f&ut)&&t.deps!==null?mt:R;G(t,r),t.equals(e)||(t.v=e,t.version=Ye())}function ne(t){Ae(t),Et(t,0),G(t,ft),t.v=t.children=t.deps=t.ctx=t.reactions=null}function zr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function vt(t,e,r,n=!0){var l=(t&at)!==0,s=p,i={ctx:L,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|W,first:null,fn:e,last:null,next:null,parent:l?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var o=dt;try{Ve(!0),Vt(i),i.f|=yr}catch(h){throw B(i),h}finally{Ve(o)}}else e!==null&&Bt(i);var u=r&&i.deps===null&&i.first===null&&i.nodes_start===null&&i.teardown===null&&(i.f&be)===0;if(!u&&!l&&n&&(s!==null&&zr(i,s),y!==null&&y.f&M)){var v=y;(v.children??(v.children=[])).push(i)}return i}function Fr(t){const e=vt(at,t,!0);return()=>{B(e)}}function Pr(t){const e=vt(at,t,!0);return(r={})=>new Promise(n=>{r.outro?It(e,()=>{B(e),n(void 0)}):(B(e),n(void 0))})}function Hr(t){return vt(me,t,!1)}function Vr(t){return vt(At,t,!0)}function qe(t){return Mt(t)}function Mt(t,e=0){return vt(At|Wt|e,t,!0)}function ht(t,e=!0){return vt(At|P,t,!0,e)}function De(t){var e=t.teardown;if(e!==null){const r=y;pt(null);try{e.call(null)}finally{pt(r)}}}function Me(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)ne(e[r])}}function Ie(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;B(r,e),r=n}}function Br(t){for(var e=t.first;e!==null;){var r=e.next;e.f&P||B(e),e=r}}function B(t,e=!0){var r=!1;if((e||t.f&xr)&&t.nodes_start!==null){for(var n=t.nodes_start,l=t.nodes_end;n!==null;){var s=n===l?null:V(n);n.remove(),n=s}r=!0}Ie(t,e&&!r),Me(t),Et(t,0),G(t,ft);var i=t.transitions;if(i!==null)for(const u of i)u.stop();De(t);var o=t.parent;o!==null&&o.first!==null&&Le(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Le(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function It(t,e){var r=[];le(t,r,!0),ze(r,()=>{B(t),e&&e()})}function ze(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var l of t)l.out(n)}else e()}function le(t,e,r){if(!(t.f&H)){if(t.f^=H,t.transitions!==null)for(const i of t.transitions)(i.is_global||r)&&e.push(i);for(var n=t.first;n!==null;){var l=n.next,s=(n.f&Xt)!==0||(n.f&P)!==0;le(n,e,s?r:!1),n=l}}}function Lt(t){Fe(t,!0)}function Fe(t,e){if(t.f&H){xt(t)&&Vt(t),t.f^=H;for(var r=t.first;r!==null;){var n=r.next,l=(r.f&Xt)!==0||(r.f&P)!==0;Fe(r,l?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let zt=!1,se=[];function Pe(){zt=!1;const t=se.slice();se=[],wr(t)}function Yr(t){zt||(zt=!0,queueMicrotask(Pe)),se.push(t)}function Ur(){zt&&Pe()}const He=0,jr=1;let Ft=!1,Pt=He,wt=!1,yt=null,dt=!1;function Ve(t){dt=t}let lt=[],_t=0,In=[],y=null;function pt(t){y=t}let p=null;function X(t){p=t}let Y=null;function Gr(t){Y=t}let T=null,O=0,Z=null;function Kr(t){Z=t}let Be=1,st=!1,L=null;function Ye(){return++Be}function Wr(){return!xe}function xt(t){var i,o;var e=t.f;if(e&W)return!0;if(e&mt){var r=t.deps,n=(e&ut)!==0;if(r!==null){var l;if(e&Rt){for(l=0;l<r.length;l++)((i=r[l]).reactions??(i.reactions=[])).push(t);t.f^=Rt}for(l=0;l<r.length;l++){var s=r[l];if(xt(s)&&Oe(s),n&&p!==null&&!st&&!((o=s==null?void 0:s.reactions)!=null&&o.includes(t))&&(s.reactions??(s.reactions=[])).push(t),s.version>t.version)return!0}}(!n||p!==null&&!st)&&G(t,R)}return!1}function Jr(t,e){for(var r=e;r!==null;){if(r.f&Jt)try{r.fn(t);return}catch{r.f^=Jt}r=r.parent}throw Ft=!1,t}function Xr(t){return(t.f&ft)===0&&(t.parent===null||(t.parent.f&Jt)===0)}function Ht(t,e,r,n){if(Ft){if(r===null&&(Ft=!1),Xr(e))throw t;return}r!==null&&(Ft=!0);{Jr(t,e);return}}function Ue(t){var c;var e=T,r=O,n=Z,l=y,s=st,i=Y,o=L,u=t.f;T=null,O=0,Z=null,y=u&(P|at)?null:t,st=!dt&&(u&ut)!==0,Y=null,L=t.ctx;try{var v=(0,t.fn)(),h=t.deps;if(T!==null){var a;if(Et(t,O),h!==null&&O>0)for(h.length=O+T.length,a=0;a<T.length;a++)h[O+a]=T[a];else t.deps=h=T;if(!st)for(a=O;a<h.length;a++)((c=h[a]).reactions??(c.reactions=[])).push(t)}else h!==null&&O<h.length&&(Et(t,O),h.length=O);return v}finally{T=e,O=r,Z=n,y=l,st=s,Y=i,L=o}}function Zr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var l=r.length-1;l===0?r=e.reactions=null:(r[n]=r[l],r.pop())}}r===null&&e.f&M&&(T===null||!T.includes(e))&&(G(e,mt),e.f&(ut|Rt)||(e.f^=Rt),Et(e,0))}function Et(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Zr(t,r[n])}function Vt(t){var e=t.f;if(!(e&ft)){G(t,R);var r=p,n=L;p=t;try{e&Wt?Br(t):Ie(t),Me(t),De(t);var l=Ue(t);t.teardown=typeof l=="function"?l:null,t.version=Be}catch(s){Ht(s,t,r,n||t.ctx)}finally{p=r}}}function je(){if(_t>1e3){_t=0;try{Cr()}catch(t){if(yt!==null)Ht(t,yt,null);else throw t}}_t++}function Ge(t){var e=t.length;if(e!==0){je();var r=dt;dt=!0;try{for(var n=0;n<e;n++){var l=t[n];l.f&R||(l.f^=R);var s=[];Ke(l,s),Qr(s)}}finally{dt=r}}}function Qr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(ft|H)))try{xt(n)&&(Vt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Le(n):n.fn=null))}catch(l){Ht(l,n,null,n.ctx)}}}function tn(){if(wt=!1,_t>1001)return;const t=lt;lt=[],Ge(t),wt||(_t=0,yt=null)}function Bt(t){Pt===He&&(wt||(wt=!0,queueMicrotask(tn))),yt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(at|P)){if(!(r&R))return;e.f^=R}}lt.push(e)}function Ke(t,e){var r=t.first,n=[];t:for(;r!==null;){var l=r.f,s=(l&P)!==0,i=s&&(l&R)!==0,o=r.next;if(!i&&!(l&H))if(l&At){if(s)r.f^=R;else try{xt(r)&&Vt(r)}catch(a){Ht(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else l&me&&n.push(r);if(o===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var v=a.next;if(v!==null){r=v;continue t}a=a.parent}}r=o}for(var h=0;h<n.length;h++)u=n[h],e.push(u),Ke(u,e)}function U(t){var e=Pt,r=lt;try{je();const l=[];Pt=jr,lt=l,wt=!1,Ge(r);var n=t==null?void 0:t();return Ur(),(lt.length>0||l.length>0)&&U(),_t=0,yt=null,n}finally{Pt=e,lt=r}}function z(t){var h;var e=t.f,r=(e&M)!==0;if(r&&e&ft){var n=Re(t);return ne(t),n}if(y!==null){Y!==null&&Y.includes(t)&&Rr();var l=y.deps;T===null&&l!==null&&l[O]===t?O++:T===null?T=[t]:T.push(t),Z!==null&&p!==null&&p.f&R&&!(p.f&P)&&Z.includes(t)&&(G(p,W),Bt(p))}else if(r&&t.deps===null)for(var s=t,i=s.parent,o=s;i!==null;)if(i.f&M){var u=i;o=u,i=u.parent}else{var v=i;(h=v.deriveds)!=null&&h.includes(o)||(v.deriveds??(v.deriveds=[])).push(o);break}return r&&(s=t,xt(s)&&Oe(s)),t.v}function en(t){const e=y;try{return y=null,t()}finally{y=e}}const rn=~(W|mt|R);function G(t,e){t.f=t.f&rn|e}function ie(t,e=!1,r){L={p:L,c:null,e:null,m:!1,s:t,x:null,l:null}}function oe(t){const e=L;if(e!==null){t!==void 0&&(e.x=t);const i=e.e;if(i!==null){var r=p,n=y;e.e=null;try{for(var l=0;l<i.length;l++){var s=i[l];X(s.effect),pt(s.reaction),Hr(s.fn)}}finally{X(r),pt(n)}}L=e.p,e.m=!0}return t||{}}const We=new Set,ae=new Set;function Je(t){for(var e=0;e<t.length;e++)We.add(t[e]);for(var r of ae)r(t)}function Yt(t){var _;var e=this,r=e.ownerDocument,n=t.type,l=((_=t.composedPath)==null?void 0:_.call(t))||[],s=l[0]||t.target,i=0,o=t.__root;if(o){var u=l.indexOf(o);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var v=l.indexOf(e);if(v===-1)return;u<=v&&(i=u)}if(s=l[i]||t.target,s!==e){Ct(t,"currentTarget",{configurable:!0,get(){return s||r}});var h=y,a=p;pt(null),X(null);try{for(var c,f=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var w=s["__"+n];if(w!==void 0&&!s.disabled)if($e(w)){var[C,...S]=w;C.apply(s,[t,...S])}else w.call(s,t)}catch(m){c?f.push(m):c=m}if(t.cancelBubble||d===e||d===null)break;s=d}if(c){for(let m of f)queueMicrotask(()=>{throw m});throw c}}finally{t.__root=e,delete t.currentTarget,pt(h),X(a)}}}function Xe(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Q(t,e){var r=p;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function kt(t,e){var r=(e&dr)!==0,n=(e&_r)!==0,l,s=!t.startsWith("<!>");return()=>{if(g)return Q($,null),$;l===void 0&&(l=Xe(s?t:"<!>"+t),r||(l=J(l)));var i=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var o=J(i),u=i.lastChild;Q(o,u)}else Q(i,i);return i}}function nn(){if(g)return Q($,null),$;var t=document.createDocumentFragment(),e=document.createComment(""),r=bt();return t.append(e,r),Q(e,r),t}function it(t,e){if(g){p.nodes_end=$,rt();return}t!==null&&t.before(e)}function ln(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=r==null?"":r+"")}function Ze(t,e){return Qe(t,e)}function sn(t,e){te(),e.intro=e.intro??!1;const r=e.target,n=g,l=$;try{for(var s=J(r);s&&(s.nodeType!==8||s.data!==pe);)s=V(s);if(!s)throw ot;j(!0),I(s),rt();const i=Qe(t,{...e,anchor:s});if($===null||$.nodeType!==8||$.data!==Gt)throw Dt(),ot;return j(!1),i}catch(i){if(i===ot)return e.recover===!1&&Nr(),te(),Ne(r),j(!1),Ze(t,e);throw i}finally{j(n),I(l)}}const gt=new Map;function Qe(t,{target:e,anchor:r,props:n={},events:l,context:s,intro:i=!0}){te();var o=new Set,u=a=>{for(var c=0;c<a.length;c++){var f=a[c];if(!o.has(f)){o.add(f);var d=$r(f);e.addEventListener(f,Yt,{passive:d});var w=gt.get(f);w===void 0?(document.addEventListener(f,Yt,{passive:d}),gt.set(f,1)):gt.set(f,w+1)}}};u(Kt(We)),ae.add(u);var v=void 0,h=Pr(()=>{var a=r??e.appendChild(bt());return ht(()=>{if(s){ie({});var c=L;c.c=s}l&&(n.$$events=l),g&&Q(a,null),v=t(a,n)||{},g&&(p.nodes_end=$),s&&oe()}),()=>{var d;for(var c of o){e.removeEventListener(c,Yt);var f=gt.get(c);--f===0?(document.removeEventListener(c,Yt),gt.delete(c)):gt.set(c,f)}ae.delete(u),a!==r&&((d=a.parentNode)==null||d.removeChild(a))}});return ue.set(v,h),v}let ue=new WeakMap;function on(t,e){const r=ue.get(t);return r?(ue.delete(t),r(e)):Promise.resolve()}function tr(t,e,r=!1){g&&rt();var n=t,l=null,s=null,i=pr,o=r?Xt:0,u=!1;const v=(a,c=!0)=>{u=!0,h(c,a)},h=(a,c)=>{if(i===(i=a))return;let f=!1;if(g){const d=n.data===jt;!!i===d&&(n=Qt(),I(n),j(!1),f=!0)}i?(l?Lt(l):c&&(l=ht(()=>c(n))),s&&It(s,()=>{s=null})):(s?Lt(s):c&&(s=ht(()=>c(n))),l&&It(l,()=>{l=null})),f&&j(!0)};Mt(()=>{u=!1,e(v),u||h(null,null)},o),g&&(n=$)}function an(t,e){return e}function un(t,e,r,n){for(var l=[],s=e.length,i=0;i<s;i++)le(e[i].e,l,!0);var o=s>0&&l.length===0&&r!==null;if(o){var u=r.parentNode;Ne(u),u.append(r),n.clear(),tt(t,e[0].prev,e[s-1].next)}ze(l,()=>{for(var v=0;v<s;v++){var h=e[v];o||(n.delete(h.k),tt(t,h.prev,h.next)),B(h.e,!o)}})}function fn(t,e,r,n,l,s=null){var i=t,o={flags:e,items:new Map,first:null};{var u=t;i=g?I(J(u)):u.appendChild(bt())}g&&rt();var v=null,h=!1;Mt(()=>{var a=r(),c=$e(a)?a:a==null?[]:Kt(a),f=c.length;if(h&&f===0)return;h=f===0;let d=!1;if(g){var w=i.data===jt;w!==(f===0)&&(i=Qt(),I(i),j(!1),d=!0)}if(g){for(var C=null,S,_=0;_<f;_++){if($.nodeType===8&&$.data===Gt){i=$,d=!0,j(!1);break}var m=c[_],D=n(m,_);S=er($,o,C,null,m,D,_,l,e),o.items.set(D,S),C=S}f>0&&I(Qt())}if(!g){var E=y;cn(c,o,i,l,e,(E.f&H)!==0,n)}s!==null&&(f===0?v?Lt(v):v=ht(()=>s(i)):v!==null&&It(v,()=>{v=null})),d&&j(!0)}),g&&(i=$)}function cn(t,e,r,n,l,s,i,o){var u=t.length,v=e.items,h=e.first,a=h,c,f=null,d=[],w=[],C,S,_,m;for(m=0;m<u;m+=1){if(C=t[m],S=i(C,m),_=v.get(S),_===void 0){var D=a?a.e.nodes_start:r;f=er(D,e,f,f===null?e.first:f.next,C,S,m,n,l),v.set(S,f),d=[],w=[],a=f.next;continue}if(vn(_,C,m),_.e.f&H&&Lt(_.e),_!==a){if(c!==void 0&&c.has(_)){if(d.length<w.length){var E=w[0],N;f=E.prev;var $t=d[0],ve=d[d.length-1];for(N=0;N<d.length;N+=1)rr(d[N],E,r);for(N=0;N<w.length;N+=1)c.delete(w[N]);tt(e,$t.prev,ve.next),tt(e,f,$t),tt(e,ve,E),a=E,f=ve,m-=1,d=[],w=[]}else c.delete(_),rr(_,a,r),tt(e,_.prev,_.next),tt(e,_,f===null?e.first:f.next),tt(e,f,_),f=_;continue}for(d=[],w=[];a!==null&&a.k!==S;)(s||!(a.e.f&H))&&(c??(c=new Set)).add(a),w.push(a),a=a.next;if(a===null)continue;_=a}d.push(_),f=_,a=_.next}if(a!==null||c!==void 0){for(var he=c===void 0?[]:Kt(c);a!==null;)(s||!(a.e.f&H))&&he.push(a),a=a.next;var On=he.length;if(On>0){var qn=u===0?r:null;un(e,he,qn,v)}}p.first=e.first&&e.first.e,p.last=f&&f.e}function vn(t,e,r,n){Ee(t.v,e),t.i=r}function er(t,e,r,n,l,s,i,o,u,v){var h=(u&k)!==0,a=(u&vr)===0,c=h?a?Zt(l):Ot(l):l,f=u&Tt?Ot(i):i,d={i:f,v:c,k:s,a:null,e:null,prev:r,next:n};try{return d.e=ht(()=>o(t,c,f),g),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?e.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{}}function rr(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,l=e?e.e.nodes_start:r,s=t.e.nodes_start;s!==n;){var i=V(s);l.before(s),s=i}}function tt(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function nr(t,e,r,n,l){var s=t,i="",o;Mt(()=>{if(i===(i=e()??"")){g&&rt();return}o!==void 0&&(B(o),o=void 0),i!==""&&(o=ht(()=>{if(g){$.data;for(var u=rt(),v=u;u!==null&&(u.nodeType!==8||u.data!=="");)v=u,u=V(u);if(u===null)throw Dt(),ot;Q($,v),s=I(u);return}var h=i+"",a=Xe(h);Q(J(a),a.lastChild),s.before(a)}))})}function hn(t,e,r,n,l){var o;g&&rt();var s=(o=e.$$slots)==null?void 0:o[r],i=!1;s===!0&&(s=e.children,i=!0),s===void 0?l!==null&&l(t):s(t,i?()=>n:n)}function lr(t,e){Yr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const l=document.createElement("style");l.id=e.hash,l.textContent=e.code,n.appendChild(l)}})}function fe(t,e,r,n){var l=t.__attributes??(t.__attributes={});g&&(l[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||l[e]!==(l[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[kr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&dn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var sr=new Map;function dn(t){var e=sr.get(t.nodeName);if(e)return e;sr.set(t.nodeName,e=[]);for(var r,n=t,l=Element.prototype;l!==n;){r=mr(n);for(var s in r)r[s].set&&e.push(s);n=br(n)}return e}function _n(t,e){var r=t.__className,n=pn(e);g&&t.className===n?t.__className=n:(r!==n||g&&t.className!==n)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function pn(t){return t??""}function gn(t){for(var e=p,r=p;e!==null&&!(e.f&(P|at));)e=e.parent;try{return X(e),t()}finally{X(r)}}function et(t,e,r,n){var D;var l=!xe,s=(r&hr)!==0,i=!1,o;o=t[e];var u=Er in t||we in t,v=((D=Nt(t,e))==null?void 0:D.set)??(u&&s&&e in t?E=>t[e]=E:void 0),h=n,a=!0,c=!1,f=()=>(c=!0,a&&(a=!1,h=n),h);o===void 0&&n!==void 0&&(v&&l&&Ar(),o=f(),v&&v(o));var d;if(d=()=>{var E=t[e];return E===void 0?f():(a=!0,c=!1,E)},v){var w=t.$$legacy;return function(E,N){return arguments.length>0?((!N||w||i)&&v(N?d():E),E):d()}}var C=!1,S=!1,_=Zt(o),m=gn(()=>Ir(()=>{var E=d(),N=z(_);return C?(C=!1,S=!0,N):(S=!1,_.v=E)}));return function(E,N){if(arguments.length>0){const $t=N?z(m):E;return m.equals($t)||(C=!0,qt(_,$t),c&&h!==void 0&&(h=$t),en(()=>z(m))),E}return z(m)}}function $n(t){return new mn(t)}class mn{constructor(e){de(this,K);de(this,q);var s;var r=new Map,n=(i,o)=>{var u=Zt(o);return r.set(i,u),u};const l=new Proxy({...e.props||{},$$events:{}},{get(i,o){return z(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===we?!0:(z(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,u){return qt(r.get(o)??n(o,u),u),Reflect.set(i,o,u)}});_e(this,q,(e.hydrate?sn:Ze)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&U(),_e(this,K,l.$$events);for(const i of Object.keys(A(this,q)))i==="$set"||i==="$destroy"||i==="$on"||Ct(this,i,{get(){return A(this,q)[i]},set(o){A(this,q)[i]=o},enumerable:!0});A(this,q).$set=i=>{Object.assign(l,i)},A(this,q).$destroy=()=>{on(A(this,q))}}$set(e){A(this,q).$set(e)}$on(e,r){A(this,K)[e]=A(this,K)[e]||[];const n=(...l)=>r.call(this,...l);return A(this,K)[e].push(n),()=>{A(this,K)[e]=A(this,K)[e].filter(l=>l!==n)}}$destroy(){A(this,q).$destroy()}}K=new WeakMap,q=new WeakMap;let ir;typeof HTMLElement=="function"&&(ir=class extends HTMLElement{constructor(e,r,n){super();F(this,"$$ctor");F(this,"$$s");F(this,"$$c");F(this,"$$cn",!1);F(this,"$$d",{});F(this,"$$r",!1);F(this,"$$p_d",{});F(this,"$$l",{});F(this,"$$l_u",new Map);F(this,"$$me");this.$$ctor=e,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const l=this.$$c.$on(e,r);this.$$l_u.set(r,l)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const l=this.$$l_u.get(r);l&&(l(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return s=>{const i=document.createElement("slot");l!=="default"&&(i.name=l),it(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=bn(this);for(const l of this.$$s)l in n&&(l==="default"&&!this.$$d.children?(this.$$d.children=e(l),r.default=!0):r[l]=e(l));for(const l of this.attributes){const s=this.$$g_p(l.name);s in this.$$d||(this.$$d[s]=Ut(s,l.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=$n({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Fr(()=>{Vr(()=>{var l;this.$$r=!0;for(const s of St(this.$$c)){if(!((l=this.$$p_d[s])!=null&&l.reflect))continue;this.$$d[s]=this.$$c[s];const i=Ut(s,this.$$d[s],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,i)}this.$$r=!1})});for(const l in this.$$l)for(const s of this.$$l[l]){const i=this.$$c.$on(l,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,r,n){var l;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ut(e,n,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return St(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Ut(t,e,r,n){var s;const l=(s=r[t])==null?void 0:s.type;if(e=l==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(l){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(l){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function bn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function or(t,e,r,n,l,s){let i=class extends ir{constructor(){super(t,r,l),this.$$p_d=e}static get observedAttributes(){return St(e).map(o=>(e[o].attribute||o).toLowerCase())}};return St(e).forEach(o=>{Ct(i.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var a;u=Ut(o,u,e),this.$$d[o]=u;var v=this.$$c;if(v){var h=(a=Nt(v,o))==null?void 0:a.get;h?v[o]=u:v.$set({[o]:u})}}})}),n.forEach(o=>{Ct(i.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),t.element=i,i}const wn=[{name:"nostter",url:"https://nostter.app/post?content={text}&url={url}&title={title}",icon:"https://nostter.app/favicon.ico"},{name:"lumilumi",url:"https://lumilumi.vercel.app/post?url={url}&text={text}&title={title}",icon:"https://lumilumi.vercel.app/favicon.ico"}];var yn=t=>t.stopPropagation(),xn=(t,e,r)=>e(z(r).url),En=kt('<button class="item svelte-qvlz7l"><img> </button>'),kn=kt('<div class="overlay svelte-qvlz7l"><div class="inner svelte-qvlz7l"><button class="close-button svelte-qvlz7l" aria-label="Close">✖</button> <h2 class="title svelte-qvlz7l">Share</h2> <div class="list svelte-qvlz7l"></div></div></div>');const Tn={hash:"svelte-qvlz7l",code:`
2
2
  /* オーバーレイ背景 */.overlay.svelte-qvlz7l {position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.3); /* 少し濃い背景 */display:flex;justify-content:center;align-items:center;}
3
3
 
4
4
  /* ダイアログ本体 */.inner.svelte-qvlz7l {display:flex;flex-direction:column;position:relative;background-color:#ffffff;padding:1.5rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
@@ -11,7 +11,7 @@ var qn=Object.defineProperty;var ur=w=>{throw TypeError(w)};var Dn=(w,x,k)=>x in
11
11
  box-shadow 0.2s ease;}.item.svelte-qvlz7l:hover {background-color:#e5e7eb; /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-qvlz7l:active {background-color:#d1d5db; /* グレー300 */}
12
12
 
13
13
  /* バツボタン */.close-button.svelte-qvlz7l {position:absolute;right:12px;top:12px;width:36px;height:36px;display:flex;justify-content:center;align-items:center;background-color:#f3f4f6; /* グレー200 */border:none;border-radius:50%;font-size:1.25rem;color:#374151; /* グレー700 */cursor:pointer;transition:background-color 0.2s ease,
14
- transform 0.1s ease;}.close-button.svelte-qvlz7l:hover {background-color:#e5e7eb; /* グレー300 */}.close-button.svelte-qvlz7l:active {background-color:#d1d5db; /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}`};function or(t,e){ie(e,!0),nr(t,En);let r=et(e,"url",7,""),n=et(e,"text",7,""),l=et(e,"shareTitle",7,""),s=et(e,"handleClose",7);const i=a=>{const c=a.replace("{url}",encodeURIComponent(r())).replace("{title}",encodeURIComponent(l())).replace("{text}",encodeURIComponent(n()));console.log(c),window.open(c,"_blank","noreferrer"),s()()};var o=xn();o.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var u=ct(o);u.__click=[bn];var v=ct(u);v.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var h=re(v,4);return an(h,21,()=>mn,sn,(a,c)=>{var f=yn();f.__click=[wn,i,c];var d=ct(f);fe(d,"width",24);var b=re(d);nt(f),Oe(()=>{fe(d,"src",z(c).icon),fe(d,"alt",z(c).name),rn(b,` ${z(c).name??""}`)}),it(a,f)}),nt(h),nt(u),nt(o),it(t,o),oe({get url(){return r()},set url(a=""){r(a),U()},get text(){return n()},set text(a=""){n(a),U()},get shareTitle(){return l()},set shareTitle(a=""){l(a),U()},get handleClose(){return s()},set handleClose(a){s(a),U()}})}We(["click"]),customElements.define("nostr-share-dialog",ir(or,{url:{},text:{},shareTitle:{},handleClose:{}},[],[],!0));const ar=`<svg
14
+ transform 0.1s ease;}.close-button.svelte-qvlz7l:hover {background-color:#e5e7eb; /* グレー300 */}.close-button.svelte-qvlz7l:active {background-color:#d1d5db; /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}`};function ce(t,e){ie(e,!0),lr(t,Tn);let r=et(e,"url",7,""),n=et(e,"text",7,""),l=et(e,"shareTitle",7,""),s=et(e,"handleClose",7);const i=a=>{const c=a.replace("{url}",encodeURIComponent(r())).replace("{title}",encodeURIComponent(l())).replace("{text}",encodeURIComponent(n()));console.log(c),window.open(c,"_blank","noreferrer"),s()()};var o=kn();o.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var u=ct(o);u.__click=[yn];var v=ct(u);v.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var h=re(v,4);return fn(h,21,()=>wn,an,(a,c)=>{var f=En();f.__click=[xn,i,c];var d=ct(f);fe(d,"width",24);var w=re(d);nt(f),qe(()=>{fe(d,"src",z(c).icon),fe(d,"alt",z(c).name),ln(w,` ${z(c).name??""}`)}),it(a,f)}),nt(h),nt(u),nt(o),it(t,o),oe({get url(){return r()},set url(a=""){r(a),U()},get text(){return n()},set text(a=""){n(a),U()},get shareTitle(){return l()},set shareTitle(a=""){l(a),U()},get handleClose(){return s()},set handleClose(a){s(a),U()}})}Je(["click"]),customElements.define("nostr-share-dialog",or(ce,{url:{},text:{},shareTitle:{},handleClose:{}},[],[],!0));const ar=`<svg
15
15
  version="1.1"
16
16
  id="_8"
17
17
  xmlns="http://www.w3.org/2000/svg"
@@ -63,7 +63,7 @@ c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7
63
63
  s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"
64
64
  />
65
65
  </g>
66
- </svg>`,kn=(t,e)=>{qt(e,!0)};var Tn=kt('<div class="nostrShare-svg svelte-16pn564"><!></div>'),Sn=kt('<div class="nostrShare-svg svelte-16pn564"><!></div> <span class="nostrShare-text svelte-16pn564">Share</span>',1),Cn=kt("<button><!></button> <!>",1);const Nn={hash:"svelte-16pn564",code:`
66
+ </svg>`,Sn=(t,e)=>{qt(e,!0)};var Cn=kt('<div class="nostrShare-svg svelte-16pn564"><!></div>'),Nn=kt('<div class="nostrShare-svg svelte-16pn564"><!></div> <span class="nostrShare-text svelte-16pn564">Share</span>',1),An=kt("<button><!></button> <!>",1);const Rn={hash:"svelte-16pn564",code:`
67
67
  /* ボタン全体の基本スタイル */.nostrShare-button.svelte-16pn564,
68
68
  .nostrShare-icon.svelte-16pn564 {display:flex;align-items:center;justify-content:center;border:none;outline:none;cursor:pointer;transition:all 0.2s ease-in-out;}
69
69
 
@@ -80,4 +80,4 @@ s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"
80
80
 
81
81
  /* アイコンスタイル */.nostrShare-icon.svelte-16pn564 {width:40px;height:40px;margin:4px;border-radius:50%;background-color:#f3f4f6;color:#374151;}.nostrShare-icon.svelte-16pn564:hover {background-color:#e5e7eb;box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}.nostrShare-icon.svelte-16pn564:active {background-color:#d1d5db;transform:scale(0.95);}
82
82
 
83
- /* アイコン内部のSVG */.nostrShare-svg.svelte-16pn564 {width:24px;height:24px;display:flex;align-items:center;justify-content:center;}`};function An(t,e){ie(e,!0),nr(t,Nn);let r=et(e,"url",7),n=et(e,"text",7),l=et(e,"shareTitle",7),s=et(e,"icon",7,!1),i=Rr(!1);const o=()=>{qt(i,!1)};var u=Cn(),v=ee(u);v.__click=[kn,i];var h=ct(v);cn(h,e,"default",{},f=>{var d=en(),b=ee(d);{var C=_=>{var m=Tn(),D=ct(m);rr(D,()=>ar),nt(m),it(_,m)},S=_=>{var m=Sn(),D=ee(m),E=ct(D);rr(E,()=>ar),nt(D),qr(2),it(_,m)};Qe(b,_=>{s()?_(C):_(S,!1)})}it(f,d)}),nt(v);var a=re(v,2);{var c=f=>{or(f,{handleClose:o,get url(){return r()},get text(){return n()},get shareTitle(){return l()}})};Qe(a,f=>{z(i)&&f(c)})}return Oe(()=>hn(v,`${(e.class?e.class:s()?"nostrShare-icon":"nostrShare-button")??""} svelte-16pn564`)),it(t,u),oe({get url(){return r()},set url(f){r(f),U()},get text(){return n()},set text(f){n(f),U()},get shareTitle(){return l()},set shareTitle(f){l(f),U()},get icon(){return s()},set icon(f=!1){s(f),U()}})}We(["click"]),customElements.define("nostr-share",ir(An,{url:{},text:{},shareTitle:{},icon:{}},["default"],[],!0))})();
83
+ /* アイコン内部のSVG */.nostrShare-svg.svelte-16pn564 {width:24px;height:24px;display:flex;align-items:center;justify-content:center;}`};function ur(t,e){ie(e,!0),lr(t,Rn);let r=et(e,"url",7),n=et(e,"text",7),l=et(e,"shareTitle",7),s=et(e,"icon",7,!1),i=qr(!1);const o=()=>{qt(i,!1)};var u=An(),v=ee(u);v.__click=[Sn,i];var h=ct(v);hn(h,e,"default",{},f=>{var d=nn(),w=ee(d);{var C=_=>{var m=Cn(),D=ct(m);nr(D,()=>ar),nt(m),it(_,m)},S=_=>{var m=Nn(),D=ee(m),E=ct(D);nr(E,()=>ar),nt(D),Mr(2),it(_,m)};tr(w,_=>{s()?_(C):_(S,!1)})}it(f,d)}),nt(v);var a=re(v,2);{var c=f=>{ce(f,{handleClose:o,get url(){return r()},get text(){return n()},get shareTitle(){return l()}})};tr(a,f=>{z(i)&&f(c)})}return qe(()=>_n(v,`${(e.class?e.class:s()?"nostrShare-icon":"nostrShare-button")??""} svelte-16pn564`)),it(t,u),oe({get url(){return r()},set url(f){r(f),U()},get text(){return n()},set text(f){n(f),U()},get shareTitle(){return l()},set shareTitle(f){l(f),U()},get icon(){return s()},set icon(f=!1){s(f),U()}})}return Je(["click"]),customElements.define("nostr-share",or(ur,{url:{},text:{},shareTitle:{},icon:{}},["default"],[],!0)),b.Dialog=ce,b.NostrShare=ur,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),b}({});
@@ -0,0 +1,83 @@
1
+ (function(g,w){typeof exports=="object"&&typeof module<"u"?w(exports):typeof define=="function"&&define.amd?define(["exports"],w):(g=typeof globalThis<"u"?globalThis:g||self,w(g.NostrShare={}))})(this,function(g){"use strict";var Dn=Object.defineProperty;var fr=g=>{throw TypeError(g)};var Mn=(g,w,k)=>w in g?Dn(g,w,{enumerable:!0,configurable:!0,writable:!0,value:k}):g[w]=k;var F=(g,w,k)=>Mn(g,typeof w!="symbol"?w+"":w,k),cr=(g,w,k)=>w.has(g)||fr("Cannot "+k);var A=(g,w,k)=>(cr(g,w,"read from private field"),k?k.call(g):w.get(g)),dt=(g,w,k)=>w.has(g)?fr("Cannot add the same private member more than once"):w instanceof WeakSet?w.add(g):w.set(g,k),_t=(g,w,k,Te)=>(cr(g,w,"write to private field"),Te?Te.call(g,k):w.set(g,k),k);var K,q;const w="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(w);const k=1,Te=2,vr=16,hr=8,dr=1,_r=2,pt="[",je="[!",Ge="]",oe={},pr=Symbol(),gr=["touchstart","touchmove"];function $r(e){return gr.includes(e)}const gt=!1;var $t=Array.isArray,Ke=Array.from,Se=Object.keys,Ce=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,mr=Object.getOwnPropertyDescriptors,br=Object.getPrototypeOf;function wr(e){for(var t=0;t<e.length;t++)e[t]()}const M=2,mt=4,Ae=8,We=16,P=32,ae=64,Je=128,ue=256,Re=512,R=1024,W=2048,me=4096,H=8192,fe=16384,yr=32768,Xe=65536,xr=1<<19,bt=1<<20,Er=Symbol("$state"),wt=Symbol("legacy props"),kr=Symbol("");function yt(e){return e===this.v}function Tr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Sr(e){return!Tr(e,this.v)}function Cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ar(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Rr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let xt=!1;function Oe(e,t){var r={f:0,v:e,reactions:null,equals:yt,version:0};return r}function qr(e){return Dr(Oe(e))}function Ze(e,t=!1){const r=Oe(e);return t||(r.equals=Sr),r}function Dr(e){return x!==null&&x.f&M&&(Y===null?Gr([e]):Y.push(e)),e}function qe(e,t){return x!==null&&Wr()&&x.f&(M|We)&&(Y===null||!Y.includes(e))&&Or(),Et(e,t)}function Et(e,t){return e.equals(t)||(e.v=t,e.version=Yt(),kt(e,W),p!==null&&p.f&R&&!(p.f&P)&&(T!==null&&T.includes(e)?(G(p,W),Be(p)):Z===null?Kr([e]):Z.push(e))),t}function kt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,l=0;l<n;l++){var s=r[l],i=s.f;i&W||(G(s,t),i&(R|ue)&&(i&M?kt(s,me):Be(s)))}}function De(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function j(e){$=e}let m;function I(e){if(e===null)throw De(),oe;return m=e}function re(){return I(V(m))}function ne(e){if($){if(V(m)!==null)throw De(),oe;m=e}}function Mr(e=1){if($){for(var t=e,r=m;t--;)r=V(r);m=r}}function Qe(){for(var e=0,t=m;;){if(t.nodeType===8){var r=t.data;if(r===Ge){if(e===0)return t;e-=1}else(r===pt||r===je)&&(e+=1)}var n=V(t);t.remove(),t=n}}var Tt,St,Ct;function et(){if(Tt===void 0){Tt=window;var e=Element.prototype,t=Node.prototype;St=Ne(t,"firstChild").get,Ct=Ne(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function be(e=""){return document.createTextNode(e)}function J(e){return St.call(e)}function V(e){return Ct.call(e)}function ce(e,t){if(!$)return J(e);var r=J(m);return r===null&&(r=m.appendChild(be())),I(r),r}function tt(e,t){if(!$){var r=J(e);return r instanceof Comment&&r.data===""?V(r):r}return m}function rt(e,t=1,r=!1){let n=$?m:e;for(var l;t--;)l=n,n=V(n);if(!$)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var i=be();return n===null?l==null||l.after(i):n.before(i),I(i),i}return I(n),n}function Nt(e){e.textContent=""}function Ir(e){var t=M|W;p===null?t|=ue:p.f|=bt;var r=x!==null&&x.f&M?x:null;const n={children:null,ctx:L,deps:null,equals:yt,f:t,fn:e,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function At(e){var t=e.children;if(t!==null){e.children=null;for(var r=0;r<t.length;r+=1){var n=t[r];n.f&M?nt(n):B(n)}}}function Lr(e){for(var t=e.parent;t!==null;){if(!(t.f&M))return t;t=t.parent}return null}function Rt(e){var t,r=p;X(Lr(e));try{At(e),t=Ut(e)}finally{X(r)}return t}function Ot(e){var t=Rt(e),r=(se||e.f&ue)&&e.deps!==null?me:R;G(e,r),e.equals(t)||(e.v=t,e.version=Yt())}function nt(e){At(e),Ee(e,0),G(e,fe),e.v=e.children=e.deps=e.ctx=e.reactions=null}function zr(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ve(e,t,r,n=!0){var l=(e&ae)!==0,s=p,i={ctx:L,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:e|W,first:null,fn:t,last:null,next:null,parent:l?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var o=de;try{Vt(!0),Ve(i),i.f|=yr}catch(h){throw B(i),h}finally{Vt(o)}}else t!==null&&Be(i);var u=r&&i.deps===null&&i.first===null&&i.nodes_start===null&&i.teardown===null&&(i.f&bt)===0;if(!u&&!l&&n&&(s!==null&&zr(i,s),x!==null&&x.f&M)){var v=x;(v.children??(v.children=[])).push(i)}return i}function Fr(e){const t=ve(ae,e,!0);return()=>{B(t)}}function Pr(e){const t=ve(ae,e,!0);return(r={})=>new Promise(n=>{r.outro?Ie(t,()=>{B(t),n(void 0)}):(B(t),n(void 0))})}function Hr(e){return ve(mt,e,!1)}function Vr(e){return ve(Ae,e,!0)}function qt(e){return Me(e)}function Me(e,t=0){return ve(Ae|We|t,e,!0)}function he(e,t=!0){return ve(Ae|P,e,!0,t)}function Dt(e){var t=e.teardown;if(t!==null){const r=x;pe(null);try{t.call(null)}finally{pe(r)}}}function Mt(e){var t=e.deriveds;if(t!==null){e.deriveds=null;for(var r=0;r<t.length;r+=1)nt(t[r])}}function It(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var n=r.next;B(r,t),r=n}}function Br(e){for(var t=e.first;t!==null;){var r=t.next;t.f&P||B(t),t=r}}function B(e,t=!0){var r=!1;if((t||e.f&xr)&&e.nodes_start!==null){for(var n=e.nodes_start,l=e.nodes_end;n!==null;){var s=n===l?null:V(n);n.remove(),n=s}r=!0}It(e,t&&!r),Mt(e),Ee(e,0),G(e,fe);var i=e.transitions;if(i!==null)for(const u of i)u.stop();Dt(e);var o=e.parent;o!==null&&o.first!==null&&Lt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Lt(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ie(e,t){var r=[];lt(e,r,!0),zt(r,()=>{B(e),t&&t()})}function zt(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var l of e)l.out(n)}else t()}function lt(e,t,r){if(!(e.f&H)){if(e.f^=H,e.transitions!==null)for(const i of e.transitions)(i.is_global||r)&&t.push(i);for(var n=e.first;n!==null;){var l=n.next,s=(n.f&Xe)!==0||(n.f&P)!==0;lt(n,t,s?r:!1),n=l}}}function Le(e){Ft(e,!0)}function Ft(e,t){if(e.f&H){xe(e)&&Ve(e),e.f^=H;for(var r=e.first;r!==null;){var n=r.next,l=(r.f&Xe)!==0||(r.f&P)!==0;Ft(r,l?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let ze=!1,st=[];function Pt(){ze=!1;const e=st.slice();st=[],wr(e)}function Yr(e){ze||(ze=!0,queueMicrotask(Pt)),st.push(e)}function Ur(){ze&&Pt()}const Ht=0,jr=1;let Fe=!1,Pe=Ht,we=!1,ye=null,de=!1;function Vt(e){de=e}let le=[],_e=0,In=[],x=null;function pe(e){x=e}let p=null;function X(e){p=e}let Y=null;function Gr(e){Y=e}let T=null,O=0,Z=null;function Kr(e){Z=e}let Bt=1,se=!1,L=null;function Yt(){return++Bt}function Wr(){return!xt}function xe(e){var i,o;var t=e.f;if(t&W)return!0;if(t&me){var r=e.deps,n=(t&ue)!==0;if(r!==null){var l;if(t&Re){for(l=0;l<r.length;l++)((i=r[l]).reactions??(i.reactions=[])).push(e);e.f^=Re}for(l=0;l<r.length;l++){var s=r[l];if(xe(s)&&Ot(s),n&&p!==null&&!se&&!((o=s==null?void 0:s.reactions)!=null&&o.includes(e))&&(s.reactions??(s.reactions=[])).push(e),s.version>e.version)return!0}}(!n||p!==null&&!se)&&G(e,R)}return!1}function Jr(e,t){for(var r=t;r!==null;){if(r.f&Je)try{r.fn(e);return}catch{r.f^=Je}r=r.parent}throw Fe=!1,e}function Xr(e){return(e.f&fe)===0&&(e.parent===null||(e.parent.f&Je)===0)}function He(e,t,r,n){if(Fe){if(r===null&&(Fe=!1),Xr(t))throw e;return}r!==null&&(Fe=!0);{Jr(e,t);return}}function Ut(e){var c;var t=T,r=O,n=Z,l=x,s=se,i=Y,o=L,u=e.f;T=null,O=0,Z=null,x=u&(P|ae)?null:e,se=!de&&(u&ue)!==0,Y=null,L=e.ctx;try{var v=(0,e.fn)(),h=e.deps;if(T!==null){var a;if(Ee(e,O),h!==null&&O>0)for(h.length=O+T.length,a=0;a<T.length;a++)h[O+a]=T[a];else e.deps=h=T;if(!se)for(a=O;a<h.length;a++)((c=h[a]).reactions??(c.reactions=[])).push(e)}else h!==null&&O<h.length&&(Ee(e,O),h.length=O);return v}finally{T=t,O=r,Z=n,x=l,se=s,Y=i,L=o}}function Zr(e,t){let r=t.reactions;if(r!==null){var n=r.indexOf(e);if(n!==-1){var l=r.length-1;l===0?r=t.reactions=null:(r[n]=r[l],r.pop())}}r===null&&t.f&M&&(T===null||!T.includes(t))&&(G(t,me),t.f&(ue|Re)||(t.f^=Re),Ee(t,0))}function Ee(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Zr(e,r[n])}function Ve(e){var t=e.f;if(!(t&fe)){G(e,R);var r=p,n=L;p=e;try{t&We?Br(e):It(e),Mt(e),Dt(e);var l=Ut(e);e.teardown=typeof l=="function"?l:null,e.version=Bt}catch(s){He(s,e,r,n||e.ctx)}finally{p=r}}}function jt(){if(_e>1e3){_e=0;try{Cr()}catch(e){if(ye!==null)He(e,ye,null);else throw e}}_e++}function Gt(e){var t=e.length;if(t!==0){jt();var r=de;de=!0;try{for(var n=0;n<t;n++){var l=e[n];l.f&R||(l.f^=R);var s=[];Kt(l,s),Qr(s)}}finally{de=r}}}function Qr(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var n=e[r];if(!(n.f&(fe|H)))try{xe(n)&&(Ve(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Lt(n):n.fn=null))}catch(l){He(l,n,null,n.ctx)}}}function en(){if(we=!1,_e>1001)return;const e=le;le=[],Gt(e),we||(_e=0,ye=null)}function Be(e){Pe===Ht&&(we||(we=!0,queueMicrotask(en))),ye=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(ae|P)){if(!(r&R))return;t.f^=R}}le.push(t)}function Kt(e,t){var r=e.first,n=[];e:for(;r!==null;){var l=r.f,s=(l&P)!==0,i=s&&(l&R)!==0,o=r.next;if(!i&&!(l&H))if(l&Ae){if(s)r.f^=R;else try{xe(r)&&Ve(r)}catch(a){He(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else l&mt&&n.push(r);if(o===null){let a=r.parent;for(;a!==null;){if(e===a)break e;var v=a.next;if(v!==null){r=v;continue e}a=a.parent}}r=o}for(var h=0;h<n.length;h++)u=n[h],t.push(u),Kt(u,t)}function U(e){var t=Pe,r=le;try{jt();const l=[];Pe=jr,le=l,we=!1,Gt(r);var n=e==null?void 0:e();return Ur(),(le.length>0||l.length>0)&&U(),_e=0,ye=null,n}finally{Pe=t,le=r}}function z(e){var h;var t=e.f,r=(t&M)!==0;if(r&&t&fe){var n=Rt(e);return nt(e),n}if(x!==null){Y!==null&&Y.includes(e)&&Rr();var l=x.deps;T===null&&l!==null&&l[O]===e?O++:T===null?T=[e]:T.push(e),Z!==null&&p!==null&&p.f&R&&!(p.f&P)&&Z.includes(e)&&(G(p,W),Be(p))}else if(r&&e.deps===null)for(var s=e,i=s.parent,o=s;i!==null;)if(i.f&M){var u=i;o=u,i=u.parent}else{var v=i;(h=v.deriveds)!=null&&h.includes(o)||(v.deriveds??(v.deriveds=[])).push(o);break}return r&&(s=e,xe(s)&&Ot(s)),e.v}function tn(e){const t=x;try{return x=null,e()}finally{x=t}}const rn=~(W|me|R);function G(e,t){e.f=e.f&rn|t}function it(e,t=!1,r){L={p:L,c:null,e:null,m:!1,s:e,x:null,l:null}}function ot(e){const t=L;if(t!==null){e!==void 0&&(t.x=e);const i=t.e;if(i!==null){var r=p,n=x;t.e=null;try{for(var l=0;l<i.length;l++){var s=i[l];X(s.effect),pe(s.reaction),Hr(s.fn)}}finally{X(r),pe(n)}}L=t.p,t.m=!0}return e||{}}const Wt=new Set,at=new Set;function Jt(e){for(var t=0;t<e.length;t++)Wt.add(e[t]);for(var r of at)r(e)}function Ye(e){var _;var t=this,r=t.ownerDocument,n=e.type,l=((_=e.composedPath)==null?void 0:_.call(e))||[],s=l[0]||e.target,i=0,o=e.__root;if(o){var u=l.indexOf(o);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var v=l.indexOf(t);if(v===-1)return;u<=v&&(i=u)}if(s=l[i]||e.target,s!==t){Ce(e,"currentTarget",{configurable:!0,get(){return s||r}});var h=x,a=p;pe(null),X(null);try{for(var c,f=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+n];if(y!==void 0&&!s.disabled)if($t(y)){var[C,...S]=y;C.apply(s,[e,...S])}else y.call(s,e)}catch(b){c?f.push(b):c=b}if(e.cancelBubble||d===t||d===null)break;s=d}if(c){for(let b of f)queueMicrotask(()=>{throw b});throw c}}finally{e.__root=t,delete e.currentTarget,pe(h),X(a)}}}function Xt(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Q(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function ke(e,t){var r=(t&dr)!==0,n=(t&_r)!==0,l,s=!e.startsWith("<!>");return()=>{if($)return Q(m,null),m;l===void 0&&(l=Xt(s?e:"<!>"+e),r||(l=J(l)));var i=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var o=J(i),u=i.lastChild;Q(o,u)}else Q(i,i);return i}}function nn(){if($)return Q(m,null),m;var e=document.createDocumentFragment(),t=document.createComment(""),r=be();return e.append(t,r),Q(t,r),e}function ie(e,t){if($){p.nodes_end=m,re();return}e!==null&&e.before(t)}function ln(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r==null?"":r+"")}function Zt(e,t){return Qt(e,t)}function sn(e,t){et(),t.intro=t.intro??!1;const r=t.target,n=$,l=m;try{for(var s=J(r);s&&(s.nodeType!==8||s.data!==pt);)s=V(s);if(!s)throw oe;j(!0),I(s),re();const i=Qt(e,{...t,anchor:s});if(m===null||m.nodeType!==8||m.data!==Ge)throw De(),oe;return j(!1),i}catch(i){if(i===oe)return t.recover===!1&&Nr(),et(),Nt(r),j(!1),Zt(e,t);throw i}finally{j(n),I(l)}}const ge=new Map;function Qt(e,{target:t,anchor:r,props:n={},events:l,context:s,intro:i=!0}){et();var o=new Set,u=a=>{for(var c=0;c<a.length;c++){var f=a[c];if(!o.has(f)){o.add(f);var d=$r(f);t.addEventListener(f,Ye,{passive:d});var y=ge.get(f);y===void 0?(document.addEventListener(f,Ye,{passive:d}),ge.set(f,1)):ge.set(f,y+1)}}};u(Ke(Wt)),at.add(u);var v=void 0,h=Pr(()=>{var a=r??t.appendChild(be());return he(()=>{if(s){it({});var c=L;c.c=s}l&&(n.$$events=l),$&&Q(a,null),v=e(a,n)||{},$&&(p.nodes_end=m),s&&ot()}),()=>{var d;for(var c of o){t.removeEventListener(c,Ye);var f=ge.get(c);--f===0?(document.removeEventListener(c,Ye),ge.delete(c)):ge.set(c,f)}at.delete(u),a!==r&&((d=a.parentNode)==null||d.removeChild(a))}});return ut.set(v,h),v}let ut=new WeakMap;function on(e,t){const r=ut.get(e);return r?(ut.delete(e),r(t)):Promise.resolve()}function er(e,t,r=!1){$&&re();var n=e,l=null,s=null,i=pr,o=r?Xe:0,u=!1;const v=(a,c=!0)=>{u=!0,h(c,a)},h=(a,c)=>{if(i===(i=a))return;let f=!1;if($){const d=n.data===je;!!i===d&&(n=Qe(),I(n),j(!1),f=!0)}i?(l?Le(l):c&&(l=he(()=>c(n))),s&&Ie(s,()=>{s=null})):(s?Le(s):c&&(s=he(()=>c(n))),l&&Ie(l,()=>{l=null})),f&&j(!0)};Me(()=>{u=!1,t(v),u||h(null,null)},o),$&&(n=m)}function an(e,t){return t}function un(e,t,r,n){for(var l=[],s=t.length,i=0;i<s;i++)lt(t[i].e,l,!0);var o=s>0&&l.length===0&&r!==null;if(o){var u=r.parentNode;Nt(u),u.append(r),n.clear(),ee(e,t[0].prev,t[s-1].next)}zt(l,()=>{for(var v=0;v<s;v++){var h=t[v];o||(n.delete(h.k),ee(e,h.prev,h.next)),B(h.e,!o)}})}function fn(e,t,r,n,l,s=null){var i=e,o={flags:t,items:new Map,first:null};{var u=e;i=$?I(J(u)):u.appendChild(be())}$&&re();var v=null,h=!1;Me(()=>{var a=r(),c=$t(a)?a:a==null?[]:Ke(a),f=c.length;if(h&&f===0)return;h=f===0;let d=!1;if($){var y=i.data===je;y!==(f===0)&&(i=Qe(),I(i),j(!1),d=!0)}if($){for(var C=null,S,_=0;_<f;_++){if(m.nodeType===8&&m.data===Ge){i=m,d=!0,j(!1);break}var b=c[_],D=n(b,_);S=tr(m,o,C,null,b,D,_,l,t),o.items.set(D,S),C=S}f>0&&I(Qe())}if(!$){var E=x;cn(c,o,i,l,t,(E.f&H)!==0,n)}s!==null&&(f===0?v?Le(v):v=he(()=>s(i)):v!==null&&Ie(v,()=>{v=null})),d&&j(!0)}),$&&(i=m)}function cn(e,t,r,n,l,s,i,o){var u=e.length,v=t.items,h=t.first,a=h,c,f=null,d=[],y=[],C,S,_,b;for(b=0;b<u;b+=1){if(C=e[b],S=i(C,b),_=v.get(S),_===void 0){var D=a?a.e.nodes_start:r;f=tr(D,t,f,f===null?t.first:f.next,C,S,b,n,l),v.set(S,f),d=[],y=[],a=f.next;continue}if(vn(_,C,b),_.e.f&H&&Le(_.e),_!==a){if(c!==void 0&&c.has(_)){if(d.length<y.length){var E=y[0],N;f=E.prev;var $e=d[0],vt=d[d.length-1];for(N=0;N<d.length;N+=1)rr(d[N],E,r);for(N=0;N<y.length;N+=1)c.delete(y[N]);ee(t,$e.prev,vt.next),ee(t,f,$e),ee(t,vt,E),a=E,f=vt,b-=1,d=[],y=[]}else c.delete(_),rr(_,a,r),ee(t,_.prev,_.next),ee(t,_,f===null?t.first:f.next),ee(t,f,_),f=_;continue}for(d=[],y=[];a!==null&&a.k!==S;)(s||!(a.e.f&H))&&(c??(c=new Set)).add(a),y.push(a),a=a.next;if(a===null)continue;_=a}d.push(_),f=_,a=_.next}if(a!==null||c!==void 0){for(var ht=c===void 0?[]:Ke(c);a!==null;)(s||!(a.e.f&H))&&ht.push(a),a=a.next;var On=ht.length;if(On>0){var qn=u===0?r:null;un(t,ht,qn,v)}}p.first=t.first&&t.first.e,p.last=f&&f.e}function vn(e,t,r,n){Et(e.v,t),e.i=r}function tr(e,t,r,n,l,s,i,o,u,v){var h=(u&k)!==0,a=(u&vr)===0,c=h?a?Ze(l):Oe(l):l,f=u&Te?Oe(i):i,d={i:f,v:c,k:s,a:null,e:null,prev:r,next:n};try{return d.e=he(()=>o(e,c,f),$),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?t.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{}}function rr(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,l=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==n;){var i=V(s);l.before(s),s=i}}function ee(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function nr(e,t,r,n,l){var s=e,i="",o;Me(()=>{if(i===(i=t()??"")){$&&re();return}o!==void 0&&(B(o),o=void 0),i!==""&&(o=he(()=>{if($){m.data;for(var u=re(),v=u;u!==null&&(u.nodeType!==8||u.data!=="");)v=u,u=V(u);if(u===null)throw De(),oe;Q(m,v),s=I(u);return}var h=i+"",a=Xt(h);Q(J(a),a.lastChild),s.before(a)}))})}function hn(e,t,r,n,l){var o;$&&re();var s=(o=t.$$slots)==null?void 0:o[r],i=!1;s===!0&&(s=t.children,i=!0),s===void 0?l!==null&&l(e):s(e,i?()=>n:n)}function lr(e,t){Yr(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const l=document.createElement("style");l.id=t.hash,l.textContent=t.code,n.appendChild(l)}})}function ft(e,t,r,n){var l=e.__attributes??(e.__attributes={});$&&(l[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||l[t]!==(l[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[kr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&dn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}var sr=new Map;function dn(e){var t=sr.get(e.nodeName);if(t)return t;sr.set(e.nodeName,t=[]);for(var r,n=e,l=Element.prototype;l!==n;){r=mr(n);for(var s in r)r[s].set&&t.push(s);n=br(n)}return t}function _n(e,t){var r=e.__className,n=pn(t);$&&e.className===n?e.__className=n:(r!==n||$&&e.className!==n)&&(t==null?e.removeAttribute("class"):e.className=n,e.__className=n)}function pn(e){return e??""}function gn(e){for(var t=p,r=p;t!==null&&!(t.f&(P|ae));)t=t.parent;try{return X(t),e()}finally{X(r)}}function te(e,t,r,n){var D;var l=!xt,s=(r&hr)!==0,i=!1,o;o=e[t];var u=Er in e||wt in e,v=((D=Ne(e,t))==null?void 0:D.set)??(u&&s&&t in e?E=>e[t]=E:void 0),h=n,a=!0,c=!1,f=()=>(c=!0,a&&(a=!1,h=n),h);o===void 0&&n!==void 0&&(v&&l&&Ar(),o=f(),v&&v(o));var d;if(d=()=>{var E=e[t];return E===void 0?f():(a=!0,c=!1,E)},v){var y=e.$$legacy;return function(E,N){return arguments.length>0?((!N||y||i)&&v(N?d():E),E):d()}}var C=!1,S=!1,_=Ze(o),b=gn(()=>Ir(()=>{var E=d(),N=z(_);return C?(C=!1,S=!0,N):(S=!1,_.v=E)}));return function(E,N){if(arguments.length>0){const $e=N?z(b):E;return b.equals($e)||(C=!0,qe(_,$e),c&&h!==void 0&&(h=$e),tn(()=>z(b))),E}return z(b)}}function $n(e){return new mn(e)}class mn{constructor(t){dt(this,K);dt(this,q);var s;var r=new Map,n=(i,o)=>{var u=Ze(o);return r.set(i,u),u};const l=new Proxy({...t.props||{},$$events:{}},{get(i,o){return z(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===wt?!0:(z(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,u){return qe(r.get(o)??n(o,u),u),Reflect.set(i,o,u)}});_t(this,q,(t.hydrate?sn:Zt)(t.component,{target:t.target,anchor:t.anchor,props:l,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((s=t==null?void 0:t.props)!=null&&s.$$host)||t.sync===!1)&&U(),_t(this,K,l.$$events);for(const i of Object.keys(A(this,q)))i==="$set"||i==="$destroy"||i==="$on"||Ce(this,i,{get(){return A(this,q)[i]},set(o){A(this,q)[i]=o},enumerable:!0});A(this,q).$set=i=>{Object.assign(l,i)},A(this,q).$destroy=()=>{on(A(this,q))}}$set(t){A(this,q).$set(t)}$on(t,r){A(this,K)[t]=A(this,K)[t]||[];const n=(...l)=>r.call(this,...l);return A(this,K)[t].push(n),()=>{A(this,K)[t]=A(this,K)[t].filter(l=>l!==n)}}$destroy(){A(this,q).$destroy()}}K=new WeakMap,q=new WeakMap;let ir;typeof HTMLElement=="function"&&(ir=class extends HTMLElement{constructor(t,r,n){super();F(this,"$$ctor");F(this,"$$s");F(this,"$$c");F(this,"$$cn",!1);F(this,"$$d",{});F(this,"$$r",!1);F(this,"$$p_d",{});F(this,"$$l",{});F(this,"$$l_u",new Map);F(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const l=this.$$c.$on(t,r);this.$$l_u.set(r,l)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const l=this.$$l_u.get(r);l&&(l(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(l){return s=>{const i=document.createElement("slot");l!=="default"&&(i.name=l),ie(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=bn(this);for(const l of this.$$s)l in n&&(l==="default"&&!this.$$d.children?(this.$$d.children=t(l),r.default=!0):r[l]=t(l));for(const l of this.attributes){const s=this.$$g_p(l.name);s in this.$$d||(this.$$d[s]=Ue(s,l.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=$n({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Fr(()=>{Vr(()=>{var l;this.$$r=!0;for(const s of Se(this.$$c)){if(!((l=this.$$p_d[s])!=null&&l.reflect))continue;this.$$d[s]=this.$$c[s];const i=Ue(s,this.$$d[s],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,i)}this.$$r=!1})});for(const l in this.$$l)for(const s of this.$$l[l]){const i=this.$$c.$on(l,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(t,r,n){var l;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ue(t,n,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$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 Se(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Ue(e,t,r,n){var s;const l=(s=r[e])==null?void 0:s.type;if(t=l==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(l){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(l){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function bn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function or(e,t,r,n,l,s){let i=class extends ir{constructor(){super(e,r,l),this.$$p_d=t}static get observedAttributes(){return Se(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Se(t).forEach(o=>{Ce(i.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var a;u=Ue(o,u,t),this.$$d[o]=u;var v=this.$$c;if(v){var h=(a=Ne(v,o))==null?void 0:a.get;h?v[o]=u:v.$set({[o]:u})}}})}),n.forEach(o=>{Ce(i.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),e.element=i,i}const wn=[{name:"nostter",url:"https://nostter.app/post?content={text}&url={url}&title={title}",icon:"https://nostter.app/favicon.ico"},{name:"lumilumi",url:"https://lumilumi.vercel.app/post?url={url}&text={text}&title={title}",icon:"https://lumilumi.vercel.app/favicon.ico"}];var yn=e=>e.stopPropagation(),xn=(e,t,r)=>t(z(r).url),En=ke('<button class="item svelte-qvlz7l"><img> </button>'),kn=ke('<div class="overlay svelte-qvlz7l"><div class="inner svelte-qvlz7l"><button class="close-button svelte-qvlz7l" aria-label="Close">✖</button> <h2 class="title svelte-qvlz7l">Share</h2> <div class="list svelte-qvlz7l"></div></div></div>');const Tn={hash:"svelte-qvlz7l",code:`
2
+ /* オーバーレイ背景 */.overlay.svelte-qvlz7l {position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.3); /* 少し濃い背景 */display:flex;justify-content:center;align-items:center;}
3
+
4
+ /* ダイアログ本体 */.inner.svelte-qvlz7l {display:flex;flex-direction:column;position:relative;background-color:#ffffff;padding:1.5rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
5
+
6
+ /* タイトル */.title.svelte-qvlz7l {margin:0;font-size:1.25rem;font-weight:bold;text-align:center;color:#374151; /* グレー700 */}
7
+
8
+ /* リスト */.list.svelte-qvlz7l {display:flex;flex-direction:column;gap:0.75rem; /* ゆったりした間隔 */}
9
+
10
+ /* リストアイテム */.item.svelte-qvlz7l {display:flex;align-items:center;gap:0.5rem;padding:0.75rem 1rem;background-color:#f9fafb; /* グレー100 */border:1px solid #d1d5db; /* グレー300 */border-radius:8px;font-size:1rem;font-weight:medium;cursor:pointer;transition:background-color 0.2s ease,
11
+ box-shadow 0.2s ease;}.item.svelte-qvlz7l:hover {background-color:#e5e7eb; /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-qvlz7l:active {background-color:#d1d5db; /* グレー300 */}
12
+
13
+ /* バツボタン */.close-button.svelte-qvlz7l {position:absolute;right:12px;top:12px;width:36px;height:36px;display:flex;justify-content:center;align-items:center;background-color:#f3f4f6; /* グレー200 */border:none;border-radius:50%;font-size:1.25rem;color:#374151; /* グレー700 */cursor:pointer;transition:background-color 0.2s ease,
14
+ transform 0.1s ease;}.close-button.svelte-qvlz7l:hover {background-color:#e5e7eb; /* グレー300 */}.close-button.svelte-qvlz7l:active {background-color:#d1d5db; /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}`};function ct(e,t){it(t,!0),lr(e,Tn);let r=te(t,"url",7,""),n=te(t,"text",7,""),l=te(t,"shareTitle",7,""),s=te(t,"handleClose",7);const i=a=>{const c=a.replace("{url}",encodeURIComponent(r())).replace("{title}",encodeURIComponent(l())).replace("{text}",encodeURIComponent(n()));console.log(c),window.open(c,"_blank","noreferrer"),s()()};var o=kn();o.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var u=ce(o);u.__click=[yn];var v=ce(u);v.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var h=rt(v,4);return fn(h,21,()=>wn,an,(a,c)=>{var f=En();f.__click=[xn,i,c];var d=ce(f);ft(d,"width",24);var y=rt(d);ne(f),qt(()=>{ft(d,"src",z(c).icon),ft(d,"alt",z(c).name),ln(y,` ${z(c).name??""}`)}),ie(a,f)}),ne(h),ne(u),ne(o),ie(e,o),ot({get url(){return r()},set url(a=""){r(a),U()},get text(){return n()},set text(a=""){n(a),U()},get shareTitle(){return l()},set shareTitle(a=""){l(a),U()},get handleClose(){return s()},set handleClose(a){s(a),U()}})}Jt(["click"]),customElements.define("nostr-share-dialog",or(ct,{url:{},text:{},shareTitle:{},handleClose:{}},[],[],!0));const ar=`<svg
15
+ version="1.1"
16
+ id="_8"
17
+ xmlns="http://www.w3.org/2000/svg"
18
+ xmlns:xlink="http://www.w3.org/1999/xlink"
19
+ x="0px"
20
+ y="0px"
21
+ viewBox="0 0 256 256"
22
+ style="enable-background:new 0 0 256 256;"
23
+ xml:space="preserve"
24
+ >
25
+ <style type="text/css">
26
+ .st0 {
27
+ fill: none;
28
+ }
29
+ .st1 {
30
+ fill: #ffffff;
31
+ }
32
+ .st2 {
33
+ fill: #662482;
34
+ }
35
+ </style>
36
+ <g>
37
+ <path
38
+ class="st0"
39
+ d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2
40
+ c-11.1,3.5-21.5,3.5-42.2,3.5H96.8c-20.7,0-31.1,0-42.2-3.5c-12.2-4.4-21.8-14-26.2-26.2c-3.5-11.1-3.5-21.5-3.5-42.2V96.8
41
+ c0-20.7,0-31.1,3.5-42.2c4.4-12.2,14-21.8,26.2-26.2c11.2-3.5,21.5-3.5,42.2-3.5h62.5c20.7,0,31.1,0,42.2,3.5
42
+ c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"
43
+ />
44
+ <circle class="st1" cx="137.9" cy="99" r="12.1" />
45
+ <path
46
+ class="st1"
47
+ d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5
48
+ c0-3.1-2.5-5.7-5.7-5.7H57.7c-3.1,0-5.7,2.5-5.7,5.7v144c0,3.1,2.5,5.7,5.7,5.7h33.7c3.1,0,5.6-2.5,5.6-5.6v-8.4
49
+ c0-62.8-33.2-109.8-0.4-116c30-5.7,64.1-3,64.5,20.1c0,2,0.3,8,8.6,11.2c5,2,12.6,2.6,22.6,2.4c0,0,9.1-0.7,9.1,8.5
50
+ c0,11.5-20.4,10.7-20.4,10.7c-6.7,0.3-22.6-1.5-31.7,1.2c-4.8,1.5-9,4.2-11.5,9.1c-4.2,8.3-6.2,26.5-6.5,45.5v15.5
51
+ c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"
52
+ />
53
+ <path
54
+ class="st2"
55
+ d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5
56
+ c-12.2,4.4-21.8,14-26.2,26.2c-3.5,11.2-3.5,21.5-3.5,42.2v62.5c0,20.7,0,31.1,3.5,42.2c4.4,12.2,14,21.8,26.2,26.2
57
+ c11.2,3.5,21.5,3.5,42.2,3.5h62.5c20.7,0,31.1,0,42.2-3.5c12.2-4.4,21.8-14,26.2-26.2c3.5-11.1,3.5-21.5,3.5-42.2V96.8
58
+ C231.2,76.1,231.2,65.7,227.6,54.6z M205.1,204.8h-68c-3.1,0-5.7-2.5-5.7-5.7v-15.5c0.3-19,2.3-37.2,6.5-45.5
59
+ c2.5-5,6.7-7.7,11.5-9.1c9-2.7,24.9-0.9,31.7-1.2c0,0,20.4,0.8,20.4-10.7c0-9.3-9.1-8.5-9.1-8.5c-10,0.3-17.7-0.4-22.6-2.4
60
+ c-8.3-3.3-8.6-9.2-8.6-11.2c-0.4-23.1-34.5-25.9-64.5-20.1c-32.8,6.2,0.4,53.3,0.4,116v8.4c-0.1,3.1-2.5,5.6-5.6,5.6H57.7
61
+ c-3.1,0-5.7-2.5-5.7-5.7v-144c0-3.1,2.5-5.7,5.7-5.7h31.7c3.1,0,5.7,2.5,5.7,5.7c0,4.7,5.2,7.2,9,4.5c11.4-8.2,26-12.5,42.4-12.5
62
+ c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7,99c0-6.7,5.4-12.1,12.1-12.1S150,92.3,150,99
63
+ s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"
64
+ />
65
+ </g>
66
+ </svg>`,Sn=(e,t)=>{qe(t,!0)};var Cn=ke('<div class="nostrShare-svg svelte-16pn564"><!></div>'),Nn=ke('<div class="nostrShare-svg svelte-16pn564"><!></div> <span class="nostrShare-text svelte-16pn564">Share</span>',1),An=ke("<button><!></button> <!>",1);const Rn={hash:"svelte-16pn564",code:`
67
+ /* ボタン全体の基本スタイル */.nostrShare-button.svelte-16pn564,
68
+ .nostrShare-icon.svelte-16pn564 {display:flex;align-items:center;justify-content:center;border:none;outline:none;cursor:pointer;transition:all 0.2s ease-in-out;}
69
+
70
+ /* ボタンスタイル */.nostrShare-button.svelte-16pn564 {padding:8px 16px;margin:4px;font-family:-apple-system,
71
+ BlinkMacSystemFont,
72
+ Helvetica Neue,
73
+ Arial,
74
+ Hiragino Kaku Gothic ProN,
75
+ Hiragino Sans,
76
+ Meiryo,
77
+ sans-serif;font-weight:bold;border-radius:8px;background-color:#f3f4f6; /* グレー */color:#374151; /* ダークグレー */}.nostrShare-button.svelte-16pn564:hover {background-color:#e5e7eb; /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-button.svelte-16pn564:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
78
+
79
+ /* テキスト用スタイル */.nostrShare-text.svelte-16pn564 {margin-left:8px;font-size:14px;}
80
+
81
+ /* アイコンスタイル */.nostrShare-icon.svelte-16pn564 {width:40px;height:40px;margin:4px;border-radius:50%;background-color:#f3f4f6;color:#374151;}.nostrShare-icon.svelte-16pn564:hover {background-color:#e5e7eb;box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}.nostrShare-icon.svelte-16pn564:active {background-color:#d1d5db;transform:scale(0.95);}
82
+
83
+ /* アイコン内部のSVG */.nostrShare-svg.svelte-16pn564 {width:24px;height:24px;display:flex;align-items:center;justify-content:center;}`};function ur(e,t){it(t,!0),lr(e,Rn);let r=te(t,"url",7),n=te(t,"text",7),l=te(t,"shareTitle",7),s=te(t,"icon",7,!1),i=qr(!1);const o=()=>{qe(i,!1)};var u=An(),v=tt(u);v.__click=[Sn,i];var h=ce(v);hn(h,t,"default",{},f=>{var d=nn(),y=tt(d);{var C=_=>{var b=Cn(),D=ce(b);nr(D,()=>ar),ne(b),ie(_,b)},S=_=>{var b=Nn(),D=tt(b),E=ce(D);nr(E,()=>ar),ne(D),Mr(2),ie(_,b)};er(y,_=>{s()?_(C):_(S,!1)})}ie(f,d)}),ne(v);var a=rt(v,2);{var c=f=>{ct(f,{handleClose:o,get url(){return r()},get text(){return n()},get shareTitle(){return l()}})};er(a,f=>{z(i)&&f(c)})}return qt(()=>_n(v,`${(t.class?t.class:s()?"nostrShare-icon":"nostrShare-button")??""} svelte-16pn564`)),ie(e,u),ot({get url(){return r()},set url(f){r(f),U()},get text(){return n()},set text(f){n(f),U()},get shareTitle(){return l()},set shareTitle(f){l(f),U()},get icon(){return s()},set icon(f=!1){s(f),U()}})}Jt(["click"]),customElements.define("nostr-share",or(ur,{url:{},text:{},shareTitle:{},icon:{}},["default"],[],!0)),g.Dialog=ct,g.NostrShare=ur,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "name": "@konemono/nostr-share-component",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "type": "module",
5
- "main": "dist/nostr-share-component.js",
5
+ "main": "dist/nostr-share-component.umd.js",
6
6
  "module": "dist/nostr-share-component.es.js",
7
- "unpkg": "dist/nostr-share-component.js",
8
- "browser": "dist/nostr-share-component.js",
9
7
  "jsdelivr": "dist/nostr-share-component.js",
10
8
  "exports": {
11
9
  ".": {
12
- "require": "./dist/nostr-share-component.js",
13
- "import": "./dist/nostr-share-component.es.js"
10
+ "import": "./dist/nostr-share-component.es.js",
11
+ "require": "./dist/nostr-share-component.umd.js"
14
12
  }
15
13
  },
14
+ "types": "dist/main.d.ts",
16
15
  "files": [
17
16
  "dist",
18
17
  "!dist/vite.svg",
@@ -26,17 +25,18 @@
26
25
  "scripts": {
27
26
  "prepare": "npm run build",
28
27
  "dev": "vite",
29
- "build": "vite build",
28
+ "build:types": "tsc --project tsconfig.json",
29
+ "build": "vite build && npm run build:types",
30
30
  "preview": "vite preview",
31
31
  "check": "svelte-check --tsconfig ./tsconfig.json && tsc -p tsconfig.node.json"
32
32
  },
33
33
  "devDependencies": {
34
- "@sveltejs/vite-plugin-svelte": "^5.0.0",
34
+ "@sveltejs/vite-plugin-svelte": "^5.0.3",
35
35
  "@tsconfig/svelte": "^5.0.4",
36
- "svelte": "^5.2.7",
37
- "svelte-check": "^4.1.0",
36
+ "svelte": "^5.15.0",
37
+ "svelte-check": "^4.1.1",
38
38
  "tslib": "^2.8.1",
39
- "typescript": "~5.6.2",
40
- "vite": "^6.0.1"
39
+ "typescript": "~5.7.2",
40
+ "vite": "^6.0.5"
41
41
  }
42
- }
42
+ }