@konemono/nostr-share-component 0.3.0 → 0.4.1

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,18 +1,18 @@
1
- var NostrShare=function($){"use strict";var Mn=Object.defineProperty;var fr=$=>{throw TypeError($)};var Ln=($,w,S)=>w in $?Mn($,w,{enumerable:!0,configurable:!0,writable:!0,value:S}):$[w]=S;var j=($,w,S)=>Ln($,typeof w!="symbol"?w+"":w,S),vr=($,w,S)=>w.has($)||fr("Cannot "+S);var O=($,w,S)=>(vr($,w,"read from private field"),S?S.call($):w.get($)),me=($,w,S)=>w.has($)?fr("Cannot add the same private member more than once"):w instanceof WeakSet?w.add($):w.set($,S),$e=($,w,S,St)=>(vr($,w,"write to private field"),St?St.call($,S):w.set($,S),S);var W,M;const w="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(w);const S=1,St=2,dr=16,hr=8,_r=1,pr=2,xe="[",Jt="[!",Xt="]",pt={},gr=Symbol(),br=["touchstart","touchmove"];function mr(t){return br.includes(t)}const ye=!1;var we=Array.isArray,Zt=Array.from,Tt=Object.keys,Ct=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,xr=Object.getPrototypeOf;function yr(t){for(var e=0;e<t.length;e++)t[e]()}const L=2,Ee=4,At=8,Qt=16,F=32,lt=64,te=128,it=256,Ot=512,R=1024,X=2048,gt=4096,P=8192,at=16384,wr=32768,ee=65536,Er=1<<19,ke=1<<20,kr=Symbol("$state"),Se=Symbol("legacy props"),Sr=Symbol("");function Te(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 Cr(t){return!Tr(t,this.v)}function Nr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ar(){throw new Error("https://svelte.dev/e/hydration_failed")}function Or(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 Dr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Ce=!1;function Rt(t,e){var r={f:0,v:t,reactions:null,equals:Te,version:0};return r}function Ir(t){return Mr(Rt(t))}function re(t,e=!1){const r=Rt(t);return e||(r.equals=Cr),r}function Mr(t){return x!==null&&x.f&L&&(H===null?Gr([t]):H.push(t)),t}function Dt(t,e){return x!==null&&Wr()&&x.f&(L|Qt)&&(H===null||!H.includes(t))&&Dr(),Ne(t,e)}function Ne(t,e){return t.equals(e)||(t.v=e,t.version=We(),Ae(t,X),p!==null&&p.f&R&&!(p.f&F)&&(A!==null&&A.includes(t)?(K(p,X),Yt(p)):Q===null?Kr([t]):Q.push(t))),e}function Ae(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var s=r[o],l=s.f;l&X||(K(s,e),l&(R|it)&&(l&L?Ae(s,gt):Yt(s)))}}function ne(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let b=!1;function B(t){b=t}let m;function q(t){if(t===null)throw ne(),pt;return m=t}function bt(){return q(U(m))}function mt(t){if(b){if(U(m)!==null)throw ne(),pt;m=t}}function Lr(t=1){if(b){for(var e=t,r=m;e--;)r=U(r);m=r}}function oe(){for(var t=0,e=m;;){if(e.nodeType===8){var r=e.data;if(r===Xt){if(t===0)return e;t-=1}else(r===xe||r===Jt)&&(t+=1)}var n=U(e);e.remove(),e=n}}var Oe,Re,De;function se(){if(Oe===void 0){Oe=window;var t=Element.prototype,e=Node.prototype;Re=Nt(e,"firstChild").get,De=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 It(t=""){return document.createTextNode(t)}function Y(t){return Re.call(t)}function U(t){return De.call(t)}function Mt(t,e){if(!b)return Y(t);var r=Y(m);return r===null&&(r=m.appendChild(It())),q(r),r}function Ie(t,e){if(!b){var r=Y(t);return r instanceof Comment&&r.data===""?U(r):r}return m}function Lt(t,e=1,r=!1){let n=b?m:t;for(var o;e--;)o=n,n=U(n);if(!b)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var l=It();return n===null?o==null||o.after(l):n.before(l),q(l),l}return q(n),n}function Me(t){t.textContent=""}function le(t){var e=L|X;p===null?e|=it:p.f|=ke;var r=x!==null&&x.f&L?x:null;const n={children:null,ctx:z,deps:null,equals:Te,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function Le(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&L?ie(n):G(n)}}}function zr(t){for(var e=t.parent;e!==null;){if(!(e.f&L))return e;e=e.parent}return null}function ze(t){var e,r=p;Z(zr(t));try{Le(t),e=Je(t)}finally{Z(r)}return e}function je(t){var e=ze(t),r=(ot||t.f&it)&&t.deps!==null?gt:R;K(t,r),t.equals(e)||(t.v=e,t.version=We())}function ie(t){Le(t),Et(t,0),K(t,at),t.v=t.children=t.deps=t.ctx=t.reactions=null}function jr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function ut(t,e,r,n=!0){var o=(t&lt)!==0,s=p,l={ctx:z,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|X,first:null,fn:e,last:null,next:null,parent:o?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var i=ct;try{Ge(!0),Bt(l),l.f|=wr}catch(f){throw G(l),f}finally{Ge(i)}}else e!==null&&Yt(l);var u=r&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&ke)===0;if(!u&&!o&&n&&(s!==null&&jr(l,s),x!==null&&x.f&L)){var c=x;(c.children??(c.children=[])).push(l)}return l}function Fr(t){const e=ut(lt,t,!0);return()=>{G(e)}}function Pr(t){const e=ut(lt,t,!0);return(r={})=>new Promise(n=>{r.outro?jt(e,()=>{G(e),n(void 0)}):(G(e),n(void 0))})}function qr(t){return ut(Ee,t,!1)}function Hr(t){return ut(At,t,!0)}function zt(t){return ae(t)}function ae(t,e=0){return ut(At|Qt|e,t,!0)}function $t(t,e=!0){return ut(At|F,t,!0,e)}function Fe(t){var e=t.teardown;if(e!==null){const r=x;vt(null);try{e.call(null)}finally{vt(r)}}}function Pe(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)ie(e[r])}}function qe(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;G(r,e),r=n}}function Vr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&F||G(e),e=r}}function G(t,e=!0){var r=!1;if((e||t.f&Er)&&t.nodes_start!==null){for(var n=t.nodes_start,o=t.nodes_end;n!==null;){var s=n===o?null:U(n);n.remove(),n=s}r=!0}qe(t,e&&!r),Pe(t),Et(t,0),K(t,at);var l=t.transitions;if(l!==null)for(const u of l)u.stop();Fe(t);var i=t.parent;i!==null&&i.first!==null&&He(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function He(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 jt(t,e){var r=[];ue(t,r,!0),Ve(r,()=>{G(t),e&&e()})}function Ve(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function ue(t,e,r){if(!(t.f&P)){if(t.f^=P,t.transitions!==null)for(const l of t.transitions)(l.is_global||r)&&e.push(l);for(var n=t.first;n!==null;){var o=n.next,s=(n.f&ee)!==0||(n.f&F)!==0;ue(n,e,s?r:!1),n=o}}}function Ft(t){Be(t,!0)}function Be(t,e){if(t.f&P){wt(t)&&Bt(t),t.f^=P;for(var r=t.first;r!==null;){var n=r.next,o=(r.f&ee)!==0||(r.f&F)!==0;Be(r,o?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let Pt=!1,ce=[];function Ye(){Pt=!1;const t=ce.slice();ce=[],yr(t)}function Br(t){Pt||(Pt=!0,queueMicrotask(Ye)),ce.push(t)}function Yr(){Pt&&Ye()}const Ue=0,Ur=1;let qt=!1,Ht=Ue,xt=!1,yt=null,ct=!1;function Ge(t){ct=t}let nt=[],ft=0,zn=[],x=null;function vt(t){x=t}let p=null;function Z(t){p=t}let H=null;function Gr(t){H=t}let A=null,D=0,Q=null;function Kr(t){Q=t}let Ke=1,ot=!1,z=null;function We(){return++Ke}function Wr(){return!Ce}function wt(t){var l,i;var e=t.f;if(e&X)return!0;if(e&gt){var r=t.deps,n=(e&it)!==0;if(r!==null){var o;if(e&Ot){for(o=0;o<r.length;o++)((l=r[o]).reactions??(l.reactions=[])).push(t);t.f^=Ot}for(o=0;o<r.length;o++){var s=r[o];if(wt(s)&&je(s),n&&p!==null&&!ot&&!((i=s==null?void 0:s.reactions)!=null&&i.includes(t))&&(s.reactions??(s.reactions=[])).push(t),s.version>t.version)return!0}}(!n||p!==null&&!ot)&&K(t,R)}return!1}function Jr(t,e){for(var r=e;r!==null;){if(r.f&te)try{r.fn(t);return}catch{r.f^=te}r=r.parent}throw qt=!1,t}function Xr(t){return(t.f&at)===0&&(t.parent===null||(t.parent.f&te)===0)}function Vt(t,e,r,n){if(qt){if(r===null&&(qt=!1),Xr(e))throw t;return}r!==null&&(qt=!0);{Jr(t,e);return}}function Je(t){var v;var e=A,r=D,n=Q,o=x,s=ot,l=H,i=z,u=t.f;A=null,D=0,Q=null,x=u&(F|lt)?null:t,ot=!ct&&(u&it)!==0,H=null,z=t.ctx;try{var c=(0,t.fn)(),f=t.deps;if(A!==null){var a;if(Et(t,D),f!==null&&D>0)for(f.length=D+A.length,a=0;a<A.length;a++)f[D+a]=A[a];else t.deps=f=A;if(!ot)for(a=D;a<f.length;a++)((v=f[a]).reactions??(v.reactions=[])).push(t)}else f!==null&&D<f.length&&(Et(t,D),f.length=D);return c}finally{A=e,D=r,Q=n,x=o,ot=s,H=l,z=i}}function Zr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var o=r.length-1;o===0?r=e.reactions=null:(r[n]=r[o],r.pop())}}r===null&&e.f&L&&(A===null||!A.includes(e))&&(K(e,gt),e.f&(it|Ot)||(e.f^=Ot),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 Bt(t){var e=t.f;if(!(e&at)){K(t,R);var r=p,n=z;p=t;try{e&Qt?Vr(t):qe(t),Pe(t),Fe(t);var o=Je(t);t.teardown=typeof o=="function"?o:null,t.version=Ke}catch(s){Vt(s,t,r,n||t.ctx)}finally{p=r}}}function Xe(){if(ft>1e3){ft=0;try{Nr()}catch(t){if(yt!==null)Vt(t,yt,null);else throw t}}ft++}function Ze(t){var e=t.length;if(e!==0){Xe();var r=ct;ct=!0;try{for(var n=0;n<e;n++){var o=t[n];o.f&R||(o.f^=R);var s=[];Qe(o,s),Qr(s)}}finally{ct=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&(at|P)))try{wt(n)&&(Bt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?He(n):n.fn=null))}catch(o){Vt(o,n,null,n.ctx)}}}function tn(){if(xt=!1,ft>1001)return;const t=nt;nt=[],Ze(t),xt||(ft=0,yt=null)}function Yt(t){Ht===Ue&&(xt||(xt=!0,queueMicrotask(tn))),yt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(lt|F)){if(!(r&R))return;e.f^=R}}nt.push(e)}function Qe(t,e){var r=t.first,n=[];t:for(;r!==null;){var o=r.f,s=(o&F)!==0,l=s&&(o&R)!==0,i=r.next;if(!l&&!(o&P))if(o&At){if(s)r.f^=R;else try{wt(r)&&Bt(r)}catch(a){Vt(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else o&Ee&&n.push(r);if(i===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var c=a.next;if(c!==null){r=c;continue t}a=a.parent}}r=i}for(var f=0;f<n.length;f++)u=n[f],e.push(u),Qe(u,e)}function V(t){var e=Ht,r=nt;try{Xe();const o=[];Ht=Ur,nt=o,xt=!1,Ze(r);var n=t==null?void 0:t();return Yr(),(nt.length>0||o.length>0)&&V(),ft=0,yt=null,n}finally{Ht=e,nt=r}}function I(t){var f;var e=t.f,r=(e&L)!==0;if(r&&e&at){var n=ze(t);return ie(t),n}if(x!==null){H!==null&&H.includes(t)&&Rr();var o=x.deps;A===null&&o!==null&&o[D]===t?D++:A===null?A=[t]:A.push(t),Q!==null&&p!==null&&p.f&R&&!(p.f&F)&&Q.includes(t)&&(K(p,X),Yt(p))}else if(r&&t.deps===null)for(var s=t,l=s.parent,i=s;l!==null;)if(l.f&L){var u=l;i=u,l=u.parent}else{var c=l;(f=c.deriveds)!=null&&f.includes(i)||(c.deriveds??(c.deriveds=[])).push(i);break}return r&&(s=t,wt(s)&&je(s)),t.v}function en(t){const e=x;try{return x=null,t()}finally{x=e}}const rn=~(X|gt|R);function K(t,e){t.f=t.f&rn|e}function Ut(t,e=!1,r){z={p:z,c:null,e:null,m:!1,s:t,x:null,l:null}}function Gt(t){const e=z;if(e!==null){t!==void 0&&(e.x=t);const l=e.e;if(l!==null){var r=p,n=x;e.e=null;try{for(var o=0;o<l.length;o++){var s=l[o];Z(s.effect),vt(s.reaction),qr(s.fn)}}finally{Z(r),vt(n)}}z=e.p,e.m=!0}return t||{}}const tr=new Set,fe=new Set;function er(t){for(var e=0;e<t.length;e++)tr.add(t[e]);for(var r of fe)r(t)}function Kt(t){var _;var e=this,r=e.ownerDocument,n=t.type,o=((_=t.composedPath)==null?void 0:_.call(t))||[],s=o[0]||t.target,l=0,i=t.__root;if(i){var u=o.indexOf(i);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var c=o.indexOf(e);if(c===-1)return;u<=c&&(l=u)}if(s=o[l]||t.target,s!==e){Ct(t,"currentTarget",{configurable:!0,get(){return s||r}});var f=x,a=p;vt(null),Z(null);try{for(var v,d=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var E=s["__"+n];if(E!==void 0&&!s.disabled)if(we(E)){var[g,...T]=E;g.apply(s,[t,...T])}else E.call(s,t)}catch(y){v?d.push(y):v=y}if(t.cancelBubble||h===e||h===null)break;s=h}if(v){for(let y of d)queueMicrotask(()=>{throw y});throw v}}finally{t.__root=e,delete t.currentTarget,vt(f),Z(a)}}}function rr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function dt(t,e){var r=p;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function kt(t,e){var r=(e&_r)!==0,n=(e&pr)!==0,o,s=!t.startsWith("<!>");return()=>{if(b)return dt(m,null),m;o===void 0&&(o=rr(s?t:"<!>"+t),r||(o=Y(o)));var l=n?document.importNode(o,!0):o.cloneNode(!0);if(r){var i=Y(l),u=l.lastChild;dt(i,u)}else dt(l,l);return l}}function nn(t,e,r="svg"){var n=!t.startsWith("<!>"),o=`<${r}>${n?t:"<!>"+t}</${r}>`,s;return()=>{if(b)return dt(m,null),m;if(!s){var l=rr(o),i=Y(l);s=Y(i)}var u=s.cloneNode(!0);return dt(u,u),u}}function st(t,e){if(b){p.nodes_end=m,bt();return}t!==null&&t.before(e)}function on(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 nr(t,e){return or(t,e)}function sn(t,e){se(),e.intro=e.intro??!1;const r=e.target,n=b,o=m;try{for(var s=Y(r);s&&(s.nodeType!==8||s.data!==xe);)s=U(s);if(!s)throw pt;B(!0),q(s),bt();const l=or(t,{...e,anchor:s});if(m===null||m.nodeType!==8||m.data!==Xt)throw ne(),pt;return B(!1),l}catch(l){if(l===pt)return e.recover===!1&&Ar(),se(),Me(r),B(!1),nr(t,e);throw l}finally{B(n),q(o)}}const ht=new Map;function or(t,{target:e,anchor:r,props:n={},events:o,context:s,intro:l=!0}){se();var i=new Set,u=a=>{for(var v=0;v<a.length;v++){var d=a[v];if(!i.has(d)){i.add(d);var h=mr(d);e.addEventListener(d,Kt,{passive:h});var E=ht.get(d);E===void 0?(document.addEventListener(d,Kt,{passive:h}),ht.set(d,1)):ht.set(d,E+1)}}};u(Zt(tr)),fe.add(u);var c=void 0,f=Pr(()=>{var a=r??e.appendChild(It());return $t(()=>{if(s){Ut({});var v=z;v.c=s}o&&(n.$$events=o),b&&dt(a,null),c=t(a,n)||{},b&&(p.nodes_end=m),s&&Gt()}),()=>{var h;for(var v of i){e.removeEventListener(v,Kt);var d=ht.get(v);--d===0?(document.removeEventListener(v,Kt),ht.delete(v)):ht.set(v,d)}fe.delete(u),a!==r&&((h=a.parentNode)==null||h.removeChild(a))}});return ve.set(c,f),c}let ve=new WeakMap;function ln(t,e){const r=ve.get(t);return r?(ve.delete(t),r(e)):Promise.resolve()}function de(t,e,r=!1){b&&bt();var n=t,o=null,s=null,l=gr,i=r?ee:0,u=!1;const c=(a,v=!0)=>{u=!0,f(v,a)},f=(a,v)=>{if(l===(l=a))return;let d=!1;if(b){const h=n.data===Jt;!!l===h&&(n=oe(),q(n),B(!1),d=!0)}l?(o?Ft(o):v&&(o=$t(()=>v(n))),s&&jt(s,()=>{s=null})):(s?Ft(s):v&&(s=$t(()=>v(n))),o&&jt(o,()=>{o=null})),d&&B(!0)};ae(()=>{u=!1,e(c),u||f(null,null)},i),b&&(n=m)}function an(t,e){return e}function un(t,e,r,n){for(var o=[],s=e.length,l=0;l<s;l++)ue(e[l].e,o,!0);var i=s>0&&o.length===0&&r!==null;if(i){var u=r.parentNode;Me(u),u.append(r),n.clear(),tt(t,e[0].prev,e[s-1].next)}Ve(o,()=>{for(var c=0;c<s;c++){var f=e[c];i||(n.delete(f.k),tt(t,f.prev,f.next)),G(f.e,!i)}})}function cn(t,e,r,n,o,s=null){var l=t,i={flags:e,items:new Map,first:null};{var u=t;l=b?q(Y(u)):u.appendChild(It())}b&&bt();var c=null,f=!1;ae(()=>{var a=r(),v=we(a)?a:a==null?[]:Zt(a),d=v.length;if(f&&d===0)return;f=d===0;let h=!1;if(b){var E=l.data===Jt;E!==(d===0)&&(l=oe(),q(l),B(!1),h=!0)}if(b){for(var g=null,T,_=0;_<d;_++){if(m.nodeType===8&&m.data===Xt){l=m,h=!0,B(!1);break}var y=v[_],J=n(y,_);T=sr(m,i,g,null,y,J,_,o,e),i.items.set(J,T),g=T}d>0&&q(oe())}if(!b){var k=x;fn(v,i,l,o,e,(k.f&P)!==0,n)}s!==null&&(d===0?c?Ft(c):c=$t(()=>s(l)):c!==null&&jt(c,()=>{c=null})),h&&B(!0)}),b&&(l=m)}function fn(t,e,r,n,o,s,l,i){var u=t.length,c=e.items,f=e.first,a=f,v,d=null,h=[],E=[],g,T,_,y;for(y=0;y<u;y+=1){if(g=t[y],T=l(g,y),_=c.get(T),_===void 0){var J=a?a.e.nodes_start:r;d=sr(J,e,d,d===null?e.first:d.next,g,T,y,n,o),c.set(T,d),h=[],E=[],a=d.next;continue}if(vn(_,g,y),_.e.f&P&&Ft(_.e),_!==a){if(v!==void 0&&v.has(_)){if(h.length<E.length){var k=E[0],C;d=k.prev;var N=h[0],rt=h[h.length-1];for(C=0;C<h.length;C+=1)lr(h[C],k,r);for(C=0;C<E.length;C+=1)v.delete(E[C]);tt(e,N.prev,rt.next),tt(e,d,N),tt(e,rt,k),a=k,d=rt,y-=1,h=[],E=[]}else v.delete(_),lr(_,a,r),tt(e,_.prev,_.next),tt(e,_,d===null?e.first:d.next),tt(e,d,_),d=_;continue}for(h=[],E=[];a!==null&&a.k!==T;)(s||!(a.e.f&P))&&(v??(v=new Set)).add(a),E.push(a),a=a.next;if(a===null)continue;_=a}h.push(_),d=_,a=_.next}if(a!==null||v!==void 0){for(var be=v===void 0?[]:Zt(v);a!==null;)(s||!(a.e.f&P))&&be.push(a),a=a.next;var Dn=be.length;if(Dn>0){var In=u===0?r:null;un(e,be,In,c)}}p.first=e.first&&e.first.e,p.last=d&&d.e}function vn(t,e,r,n){Ne(t.v,e),t.i=r}function sr(t,e,r,n,o,s,l,i,u,c){var f=(u&S)!==0,a=(u&dr)===0,v=f?a?re(o):Rt(o):o,d=u&St?Rt(l):l,h={i:d,v,k:s,a:null,e:null,prev:r,next:n};try{return h.e=$t(()=>i(t,v,d),b),h.e.prev=r&&r.e,h.e.next=n&&n.e,r===null?e.first=h:(r.next=h,r.e.next=h.e),n!==null&&(n.prev=h,n.e.prev=h.e),h}finally{}}function lr(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,s=t.e.nodes_start;s!==n;){var l=U(s);o.before(s),s=l}}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 dn(t,e,r,n,o){var i;b&&bt();var s=(i=e.$$slots)==null?void 0:i[r],l=!1;s===!0&&(s=e.children,l=!0),s===void 0?o!==null&&o(t):s(t,l?()=>n:n)}function he(t,e){Br(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,n.appendChild(o)}})}function _t(t,e,r,n){var o=t.__attributes??(t.__attributes={});b&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[Sr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&hn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var ir=new Map;function hn(t){var e=ir.get(t.nodeName);if(e)return e;ir.set(t.nodeName,e=[]);for(var r,n=t,o=Element.prototype;o!==n;){r=$r(n);for(var s in r)r[s].set&&e.push(s);n=xr(n)}return e}function ar(t,e){var r=t.__className,n=_n(e);b&&t.className===n?t.__className=n:(r!==n||b&&t.className!==n)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function _n(t){return t??""}function pn(t){for(var e=p,r=p;e!==null&&!(e.f&(F|lt));)e=e.parent;try{return Z(e),t()}finally{Z(r)}}function et(t,e,r,n){var J;var o=!Ce,s=(r&hr)!==0,l=!1,i;i=t[e];var u=kr in t||Se in t,c=((J=Nt(t,e))==null?void 0:J.set)??(u&&s&&e in t?k=>t[e]=k:void 0),f=n,a=!0,v=!1,d=()=>(v=!0,a&&(a=!1,f=n),f);i===void 0&&n!==void 0&&(c&&o&&Or(),i=d(),c&&c(i));var h;if(h=()=>{var k=t[e];return k===void 0?d():(a=!0,v=!1,k)},c){var E=t.$$legacy;return function(k,C){return arguments.length>0?((!C||E||l)&&c(C?h():k),k):h()}}var g=!1,T=!1,_=re(i),y=pn(()=>le(()=>{var k=h(),C=I(_);return g?(g=!1,T=!0,C):(T=!1,_.v=k)}));return function(k,C){if(arguments.length>0){const N=C?I(y):k;return y.equals(N)||(g=!0,Dt(_,N),v&&f!==void 0&&(f=N),en(()=>I(y))),k}return I(y)}}function gn(t){return new bn(t)}class bn{constructor(e){me(this,W);me(this,M);var s;var r=new Map,n=(l,i)=>{var u=re(i);return r.set(l,u),u};const o=new Proxy({...e.props||{},$$events:{}},{get(l,i){return I(r.get(i)??n(i,Reflect.get(l,i)))},has(l,i){return i===Se?!0:(I(r.get(i)??n(i,Reflect.get(l,i))),Reflect.has(l,i))},set(l,i,u){return Dt(r.get(i)??n(i,u),u),Reflect.set(l,i,u)}});$e(this,M,(e.hydrate?sn:nr)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&V(),$e(this,W,o.$$events);for(const l of Object.keys(O(this,M)))l==="$set"||l==="$destroy"||l==="$on"||Ct(this,l,{get(){return O(this,M)[l]},set(i){O(this,M)[l]=i},enumerable:!0});O(this,M).$set=l=>{Object.assign(o,l)},O(this,M).$destroy=()=>{ln(O(this,M))}}$set(e){O(this,M).$set(e)}$on(e,r){O(this,W)[e]=O(this,W)[e]||[];const n=(...o)=>r.call(this,...o);return O(this,W)[e].push(n),()=>{O(this,W)[e]=O(this,W)[e].filter(o=>o!==n)}}$destroy(){O(this,M).$destroy()}}W=new WeakMap,M=new WeakMap;let ur;typeof HTMLElement=="function"&&(ur=class extends HTMLElement{constructor(e,r,n){super();j(this,"$$ctor");j(this,"$$s");j(this,"$$c");j(this,"$$cn",!1);j(this,"$$d",{});j(this,"$$r",!1);j(this,"$$p_d",{});j(this,"$$l",{});j(this,"$$l_u",new Map);j(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 o=this.$$c.$on(e,r);this.$$l_u.set(r,o)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const o=this.$$l_u.get(r);o&&(o(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return s=>{const l=document.createElement("slot");o!=="default"&&(l.name=o),st(s,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=mn(this);for(const o of this.$$s)o in n&&(o==="default"&&!this.$$d.children?(this.$$d.children=e(o),r.default=!0):r[o]=e(o));for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=Wt(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=gn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Fr(()=>{Hr(()=>{var o;this.$$r=!0;for(const s of Tt(this.$$c)){if(!((o=this.$$p_d[s])!=null&&o.reflect))continue;this.$$d[s]=this.$$c[s];const l=Wt(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1})});for(const o in this.$$l)for(const s of this.$$l[o]){const l=this.$$c.$on(o,s);this.$$l_u.set(s,l)}this.$$l={}}}attributeChangedCallback(e,r,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Wt(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$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 Tt(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Wt(t,e,r,n){var s;const o=(s=r[t])==null?void 0:s.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function mn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function _e(t,e,r,n,o,s){let l=class extends ur{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return Tt(e).map(i=>(e[i].attribute||i).toLowerCase())}};return Tt(e).forEach(i=>{Ct(l.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Wt(i,u,e),this.$$d[i]=u;var c=this.$$c;if(c){var f=(a=Nt(c,i))==null?void 0:a.get;f?c[i]=u:c.$set({[i]:u})}}})}),n.forEach(i=>{Ct(l.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=l,l}const $n=[{name:"nostter",url:"https://nostter.app/post?content={text}",icon:"https://nostter.app/favicon.ico"},{name:"Lumilumi",url:"https://lumilumi.app/post?text={text}",icon:"https://lumilumi.app/favicon.ico"}];var xn=t=>t.stopPropagation(),yn=(t,e,r)=>e(I(r).url),wn=kt('<button class="item svelte-xie82o"><img> </button>'),En=kt('<div class="overlay svelte-xie82o"><div class="inner svelte-xie82o"><button class="close-button svelte-xie82o" aria-label="Close">✖</button> <h2 class="title svelte-xie82o">Select Share Client</h2> <div class="list svelte-xie82o"></div> <div class="footer svelte-xie82o"><a target="_blank" referrerpolicy="no-referrer" href="https://tsukemonogit.github.io/nostr-share-component/" class="svelte-xie82o">nostr-share-component</a></div></div></div>');const kn={hash:"svelte-xie82o",code:`
2
- /* オーバーレイ背景 */.overlay.svelte-xie82o {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;z-index:50;}
1
+ var NostrShare=function(b){"use strict";var Rn=Object.defineProperty;var cr=b=>{throw TypeError(b)};var Dn=(b,w,k)=>w in b?Rn(b,w,{enumerable:!0,configurable:!0,writable:!0,value:k}):b[w]=k;var j=(b,w,k)=>Dn(b,typeof w!="symbol"?w+"":w,k),fr=(b,w,k)=>w.has(b)||cr("Cannot "+k);var z=(b,w,k)=>(fr(b,w,"read from private field"),k?k.call(b):w.get(b)),pe=(b,w,k)=>w.has(b)?cr("Cannot add the same private member more than once"):w instanceof WeakSet?w.add(b):w.set(b,k),ge=(b,w,k,Ct)=>(fr(b,w,"write to private field"),Ct?Ct.call(b,k):w.set(b,k),k);var G,D;const w="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(w);const k=1,Ct=2,vr=16,hr=8,dr=1,_r=2,be="[",Kt="[!",Wt="]",_t={},pr=Symbol(),gr=["touchstart","touchmove"];function br(t){return gr.includes(t)}const $e=!1;var me=Array.isArray,Jt=Array.from,St=Object.keys,Nt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,mr=Object.getPrototypeOf;function yr(t){for(var e=0;e<t.length;e++)t[e]()}const I=2,ye=4,At=8,Xt=16,F=32,nt=64,Zt=128,lt=256,Ot=512,A=1024,W=2048,pt=4096,P=8192,ot=16384,xr=32768,Qt=65536,wr=1<<19,xe=1<<20,Er=Symbol("$state"),we=Symbol("legacy props"),kr=Symbol("");function Ee(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 Cr(t){return!Tr(t,this.v)}function Sr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function zr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let ke=!1;function Rt(t,e){var r={f:0,v:t,reactions:null,equals:Ee,version:0};return r}function Rr(t){return Dr(Rt(t))}function te(t,e=!1){const r=Rt(t);return e||(r.equals=Cr),r}function Dr(t){return y!==null&&y.f&I&&(H===null?Ur([t]):H.push(t)),t}function Dt(t,e){return y!==null&&Kr()&&y.f&(I|Xt)&&(H===null||!H.includes(t))&&Or(),Te(t,e)}function Te(t,e){return t.equals(e)||(t.v=e,t.version=Ge(),Ce(t,W),p!==null&&p.f&A&&!(p.f&F)&&(T!==null&&T.includes(t)?(U(p,W),Vt(p)):X===null?Gr([t]):X.push(t))),e}function Ce(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,l=0;l<n;l++){var o=r[l],s=o.f;s&W||(U(o,e),s&(A|lt)&&(s&I?Ce(o,pt):Vt(o)))}}function ee(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function q(t){$=t}let g;function M(t){if(t===null)throw ee(),_t;return g=t}function gt(){return M(B(g))}function st(t){if($){if(B(g)!==null)throw ee(),_t;g=t}}function Ir(t=1){if($){for(var e=t,r=g;e--;)r=B(r);g=r}}function re(){for(var t=0,e=g;;){if(e.nodeType===8){var r=e.data;if(r===Wt){if(t===0)return e;t-=1}else(r===be||r===Kt)&&(t+=1)}var n=B(e);e.remove(),e=n}}var Se,Ne,ze;function ne(){if(Se===void 0){Se=window;var t=Element.prototype,e=Node.prototype;Ne=zt(e,"firstChild").get,ze=zt(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 V(t){return Ne.call(t)}function B(t){return ze.call(t)}function $t(t,e){if(!$)return V(t);var r=V(g);if(r===null)r=g.appendChild(bt());else if(e&&r.nodeType!==3){var n=bt();return r==null||r.before(n),M(n),n}return M(r),r}function Ae(t,e){if(!$){var r=V(t);return r instanceof Comment&&r.data===""?B(r):r}return g}function It(t,e=1,r=!1){let n=$?g:t;for(var l;e--;)l=n,n=B(n);if(!$)return n;var o=n==null?void 0:n.nodeType;if(r&&o!==3){var s=bt();return n===null?l==null||l.after(s):n.before(s),M(s),s}return M(n),n}function Oe(t){t.textContent=""}function Re(t){var e=I|W;p===null?e|=lt:p.f|=xe;var r=y!==null&&y.f&I?y:null;const n={children:null,ctx:L,deps:null,equals:Ee,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function De(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?le(n):Y(n)}}}function Mr(t){for(var e=t.parent;e!==null;){if(!(e.f&I))return e;e=e.parent}return null}function Ie(t){var e,r=p;J(Mr(t));try{De(t),e=Ke(t)}finally{J(r)}return e}function Me(t){var e=Ie(t),r=(et||t.f&lt)&&t.deps!==null?pt:A;U(t,r),t.equals(e)||(t.v=e,t.version=Ge())}function le(t){De(t),Et(t,0),U(t,ot),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Lr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function it(t,e,r,n=!0){var l=(t&nt)!==0,o=p,s={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:o,prev:null,teardown:null,transitions:null,version:0};if(r){var i=at;try{Ye(!0),qt(s),s.f|=xr}catch(v){throw Y(s),v}finally{Ye(i)}}else e!==null&&Vt(s);var u=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&xe)===0;if(!u&&!l&&n&&(o!==null&&Lr(s,o),y!==null&&y.f&I)){var c=y;(c.children??(c.children=[])).push(s)}return s}function jr(t){const e=it(nt,t,!0);return()=>{Y(e)}}function Fr(t){const e=it(nt,t,!0);return(r={})=>new Promise(n=>{r.outro?Mt(e,()=>{Y(e),n(void 0)}):(Y(e),n(void 0))})}function Pr(t){return it(ye,t,!1)}function Hr(t){return it(At,t,!0)}function oe(t){return se(t)}function se(t,e=0){return it(At|Xt|e,t,!0)}function mt(t,e=!0){return it(At|F,t,!0,e)}function Le(t){var e=t.teardown;if(e!==null){const r=y;ct(null);try{e.call(null)}finally{ct(r)}}}function je(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)le(e[r])}}function Fe(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;Y(r,e),r=n}}function qr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&F||Y(e),e=r}}function Y(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 o=n===l?null:B(n);n.remove(),n=o}r=!0}Fe(t,e&&!r),je(t),Et(t,0),U(t,ot);var s=t.transitions;if(s!==null)for(const u of s)u.stop();Le(t);var i=t.parent;i!==null&&i.first!==null&&Pe(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Pe(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=[];ie(t,r,!0),He(r,()=>{Y(t),e&&e()})}function He(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var l of t)l.out(n)}else e()}function ie(t,e,r){if(!(t.f&P)){if(t.f^=P,t.transitions!==null)for(const s of t.transitions)(s.is_global||r)&&e.push(s);for(var n=t.first;n!==null;){var l=n.next,o=(n.f&Qt)!==0||(n.f&F)!==0;ie(n,e,o?r:!1),n=l}}}function Lt(t){qe(t,!0)}function qe(t,e){if(t.f&P){wt(t)&&qt(t),t.f^=P;for(var r=t.first;r!==null;){var n=r.next,l=(r.f&Qt)!==0||(r.f&F)!==0;qe(r,l?e:!1),r=n}if(t.transitions!==null)for(const o of t.transitions)(o.is_global||e)&&o.in()}}let jt=!1,ae=[];function Ve(){jt=!1;const t=ae.slice();ae=[],yr(t)}function Vr(t){jt||(jt=!0,queueMicrotask(Ve)),ae.push(t)}function Br(){jt&&Ve()}const Be=0,Yr=1;let Ft=!1,Pt=Be,yt=!1,xt=null,at=!1;function Ye(t){at=t}let tt=[],ut=0,In=[],y=null;function ct(t){y=t}let p=null;function J(t){p=t}let H=null;function Ur(t){H=t}let T=null,O=0,X=null;function Gr(t){X=t}let Ue=1,et=!1,L=null;function Ge(){return++Ue}function Kr(){return!ke}function wt(t){var s,i;var e=t.f;if(e&W)return!0;if(e&pt){var r=t.deps,n=(e&lt)!==0;if(r!==null){var l;if(e&Ot){for(l=0;l<r.length;l++)((s=r[l]).reactions??(s.reactions=[])).push(t);t.f^=Ot}for(l=0;l<r.length;l++){var o=r[l];if(wt(o)&&Me(o),n&&p!==null&&!et&&!((i=o==null?void 0:o.reactions)!=null&&i.includes(t))&&(o.reactions??(o.reactions=[])).push(t),o.version>t.version)return!0}}(!n||p!==null&&!et)&&U(t,A)}return!1}function Wr(t,e){for(var r=e;r!==null;){if(r.f&Zt)try{r.fn(t);return}catch{r.f^=Zt}r=r.parent}throw Ft=!1,t}function Jr(t){return(t.f&ot)===0&&(t.parent===null||(t.parent.f&Zt)===0)}function Ht(t,e,r,n){if(Ft){if(r===null&&(Ft=!1),Jr(e))throw t;return}r!==null&&(Ft=!0);{Wr(t,e);return}}function Ke(t){var h;var e=T,r=O,n=X,l=y,o=et,s=H,i=L,u=t.f;T=null,O=0,X=null,y=u&(F|nt)?null:t,et=!at&&(u&lt)!==0,H=null,L=t.ctx;try{var c=(0,t.fn)(),v=t.deps;if(T!==null){var a;if(Et(t,O),v!==null&&O>0)for(v.length=O+T.length,a=0;a<T.length;a++)v[O+a]=T[a];else t.deps=v=T;if(!et)for(a=O;a<v.length;a++)((h=v[a]).reactions??(h.reactions=[])).push(t)}else v!==null&&O<v.length&&(Et(t,O),v.length=O);return c}finally{T=e,O=r,X=n,y=l,et=o,H=s,L=i}}function Xr(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))&&(U(e,pt),e.f&(lt|Ot)||(e.f^=Ot),Et(e,0))}function Et(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Xr(t,r[n])}function qt(t){var e=t.f;if(!(e&ot)){U(t,A);var r=p,n=L;p=t;try{e&Xt?qr(t):Fe(t),je(t),Le(t);var l=Ke(t);t.teardown=typeof l=="function"?l:null,t.version=Ue}catch(o){Ht(o,t,r,n||t.ctx)}finally{p=r}}}function We(){if(ut>1e3){ut=0;try{Sr()}catch(t){if(xt!==null)Ht(t,xt,null);else throw t}}ut++}function Je(t){var e=t.length;if(e!==0){We();var r=at;at=!0;try{for(var n=0;n<e;n++){var l=t[n];l.f&A||(l.f^=A);var o=[];Xe(l,o),Zr(o)}}finally{at=r}}}function Zr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(ot|P)))try{wt(n)&&(qt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Pe(n):n.fn=null))}catch(l){Ht(l,n,null,n.ctx)}}}function Qr(){if(yt=!1,ut>1001)return;const t=tt;tt=[],Je(t),yt||(ut=0,xt=null)}function Vt(t){Pt===Be&&(yt||(yt=!0,queueMicrotask(Qr))),xt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(nt|F)){if(!(r&A))return;e.f^=A}}tt.push(e)}function Xe(t,e){var r=t.first,n=[];t:for(;r!==null;){var l=r.f,o=(l&F)!==0,s=o&&(l&A)!==0,i=r.next;if(!s&&!(l&P))if(l&At){if(o)r.f^=A;else try{wt(r)&&qt(r)}catch(a){Ht(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else l&ye&&n.push(r);if(i===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var c=a.next;if(c!==null){r=c;continue t}a=a.parent}}r=i}for(var v=0;v<n.length;v++)u=n[v],e.push(u),Xe(u,e)}function Z(t){var e=Pt,r=tt;try{We();const l=[];Pt=Yr,tt=l,yt=!1,Je(r);var n=t==null?void 0:t();return Br(),(tt.length>0||l.length>0)&&Z(),ut=0,xt=null,n}finally{Pt=e,tt=r}}function R(t){var v;var e=t.f,r=(e&I)!==0;if(r&&e&ot){var n=Ie(t);return le(t),n}if(y!==null){H!==null&&H.includes(t)&&Ar();var l=y.deps;T===null&&l!==null&&l[O]===t?O++:T===null?T=[t]:T.push(t),X!==null&&p!==null&&p.f&A&&!(p.f&F)&&X.includes(t)&&(U(p,W),Vt(p))}else if(r&&t.deps===null)for(var o=t,s=o.parent,i=o;s!==null;)if(s.f&I){var u=s;i=u,s=u.parent}else{var c=s;(v=c.deriveds)!=null&&v.includes(i)||(c.deriveds??(c.deriveds=[])).push(i);break}return r&&(o=t,wt(o)&&Me(o)),t.v}function tn(t){const e=y;try{return y=null,t()}finally{y=e}}const en=~(W|pt|A);function U(t,e){t.f=t.f&en|e}function Bt(t,e=!1,r){L={p:L,c:null,e:null,m:!1,s:t,x:null,l:null}}function Yt(t){const e=L;if(e!==null){t!==void 0&&(e.x=t);const s=e.e;if(s!==null){var r=p,n=y;e.e=null;try{for(var l=0;l<s.length;l++){var o=s[l];J(o.effect),ct(o.reaction),Pr(o.fn)}}finally{J(r),ct(n)}}L=e.p,e.m=!0}return t||{}}const Ze=new Set,ue=new Set;function Qe(t){for(var e=0;e<t.length;e++)Ze.add(t[e]);for(var r of ue)r(t)}function Ut(t){var _;var e=this,r=e.ownerDocument,n=t.type,l=((_=t.composedPath)==null?void 0:_.call(t))||[],o=l[0]||t.target,s=0,i=t.__root;if(i){var u=l.indexOf(i);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var c=l.indexOf(e);if(c===-1)return;u<=c&&(s=u)}if(o=l[s]||t.target,o!==e){Nt(t,"currentTarget",{configurable:!0,get(){return o||r}});var v=y,a=p;ct(null),J(null);try{for(var h,f=[];o!==null;){var d=o.assignedSlot||o.parentNode||o.host||null;try{var x=o["__"+n];if(x!==void 0&&!o.disabled)if(me(x)){var[S,...C]=x;S.apply(o,[t,...C])}else x.call(o,t)}catch(m){h?f.push(m):h=m}if(t.cancelBubble||d===e||d===null)break;o=d}if(h){for(let m of f)queueMicrotask(()=>{throw m});throw h}}finally{t.__root=e,delete t.currentTarget,ct(v),J(a)}}}function tr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function ft(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,o=!t.startsWith("<!>");return()=>{if($)return ft(g,null),g;l===void 0&&(l=tr(o?t:"<!>"+t),r||(l=V(l)));var s=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var i=V(s),u=s.lastChild;ft(i,u)}else ft(s,s);return s}}function rn(t,e,r="svg"){var n=!t.startsWith("<!>"),l=`<${r}>${n?t:"<!>"+t}</${r}>`,o;return()=>{if($)return ft(g,null),g;if(!o){var s=tr(l),i=V(s);o=V(i)}var u=o.cloneNode(!0);return ft(u,u),u}}function rt(t,e){if($){p.nodes_end=g,gt();return}t!==null&&t.before(e)}function nn(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 er(t,e){return rr(t,e)}function ln(t,e){ne(),e.intro=e.intro??!1;const r=e.target,n=$,l=g;try{for(var o=V(r);o&&(o.nodeType!==8||o.data!==be);)o=B(o);if(!o)throw _t;q(!0),M(o),gt();const s=rr(t,{...e,anchor:o});if(g===null||g.nodeType!==8||g.data!==Wt)throw ee(),_t;return q(!1),s}catch(s){if(s===_t)return e.recover===!1&&Nr(),ne(),Oe(r),q(!1),er(t,e);throw s}finally{q(n),M(l)}}const vt=new Map;function rr(t,{target:e,anchor:r,props:n={},events:l,context:o,intro:s=!0}){ne();var i=new Set,u=a=>{for(var h=0;h<a.length;h++){var f=a[h];if(!i.has(f)){i.add(f);var d=br(f);e.addEventListener(f,Ut,{passive:d});var x=vt.get(f);x===void 0?(document.addEventListener(f,Ut,{passive:d}),vt.set(f,1)):vt.set(f,x+1)}}};u(Jt(Ze)),ue.add(u);var c=void 0,v=Fr(()=>{var a=r??e.appendChild(bt());return mt(()=>{if(o){Bt({});var h=L;h.c=o}l&&(n.$$events=l),$&&ft(a,null),c=t(a,n)||{},$&&(p.nodes_end=g),o&&Yt()}),()=>{var d;for(var h of i){e.removeEventListener(h,Ut);var f=vt.get(h);--f===0?(document.removeEventListener(h,Ut),vt.delete(h)):vt.set(h,f)}ue.delete(u),a!==r&&((d=a.parentNode)==null||d.removeChild(a))}});return ce.set(c,v),c}let ce=new WeakMap;function on(t,e){const r=ce.get(t);return r?(ce.delete(t),r(e)):Promise.resolve()}function nr(t,e,r=!1){$&&gt();var n=t,l=null,o=null,s=pr,i=r?Qt:0,u=!1;const c=(a,h=!0)=>{u=!0,v(h,a)},v=(a,h)=>{if(s===(s=a))return;let f=!1;if($){const d=n.data===Kt;!!s===d&&(n=re(),M(n),q(!1),f=!0)}s?(l?Lt(l):h&&(l=mt(()=>h(n))),o&&Mt(o,()=>{o=null})):(o?Lt(o):h&&(o=mt(()=>h(n))),l&&Mt(l,()=>{l=null})),f&&q(!0)};se(()=>{u=!1,e(c),u||v(null,null)},i),$&&(n=g)}function sn(t,e){return e}function an(t,e,r,n){for(var l=[],o=e.length,s=0;s<o;s++)ie(e[s].e,l,!0);var i=o>0&&l.length===0&&r!==null;if(i){var u=r.parentNode;Oe(u),u.append(r),n.clear(),Q(t,e[0].prev,e[o-1].next)}He(l,()=>{for(var c=0;c<o;c++){var v=e[c];i||(n.delete(v.k),Q(t,v.prev,v.next)),Y(v.e,!i)}})}function un(t,e,r,n,l,o=null){var s=t,i={flags:e,items:new Map,first:null};{var u=t;s=$?M(V(u)):u.appendChild(bt())}$&&gt();var c=null,v=!1;se(()=>{var a=r(),h=me(a)?a:a==null?[]:Jt(a),f=h.length;if(v&&f===0)return;v=f===0;let d=!1;if($){var x=s.data===Kt;x!==(f===0)&&(s=re(),M(s),q(!1),d=!0)}if($){for(var S=null,C,_=0;_<f;_++){if(g.nodeType===8&&g.data===Wt){s=g,d=!0,q(!1);break}var m=h[_],K=n(m,_);C=lr(g,i,S,null,m,K,_,l,e),i.items.set(K,C),S=C}f>0&&M(re())}if(!$){var E=y;cn(h,i,s,l,e,(E.f&P)!==0,n)}o!==null&&(f===0?c?Lt(c):c=mt(()=>o(s)):c!==null&&Mt(c,()=>{c=null})),d&&q(!0)}),$&&(s=g)}function cn(t,e,r,n,l,o,s,i){var u=t.length,c=e.items,v=e.first,a=v,h,f=null,d=[],x=[],S,C,_,m;for(m=0;m<u;m+=1){if(S=t[m],C=s(S,m),_=c.get(C),_===void 0){var K=a?a.e.nodes_start:r;f=lr(K,e,f,f===null?e.first:f.next,S,C,m,n,l),c.set(C,f),d=[],x=[],a=f.next;continue}if(fn(_,S,m),_.e.f&P&&Lt(_.e),_!==a){if(h!==void 0&&h.has(_)){if(d.length<x.length){var E=x[0],N;f=E.prev;var dt=d[0],de=d[d.length-1];for(N=0;N<d.length;N+=1)or(d[N],E,r);for(N=0;N<x.length;N+=1)h.delete(x[N]);Q(e,dt.prev,de.next),Q(e,f,dt),Q(e,de,E),a=E,f=de,m-=1,d=[],x=[]}else h.delete(_),or(_,a,r),Q(e,_.prev,_.next),Q(e,_,f===null?e.first:f.next),Q(e,f,_),f=_;continue}for(d=[],x=[];a!==null&&a.k!==C;)(o||!(a.e.f&P))&&(h??(h=new Set)).add(a),x.push(a),a=a.next;if(a===null)continue;_=a}d.push(_),f=_,a=_.next}if(a!==null||h!==void 0){for(var _e=h===void 0?[]:Jt(h);a!==null;)(o||!(a.e.f&P))&&_e.push(a),a=a.next;var An=_e.length;if(An>0){var On=u===0?r:null;an(e,_e,On,c)}}p.first=e.first&&e.first.e,p.last=f&&f.e}function fn(t,e,r,n){Te(t.v,e),t.i=r}function lr(t,e,r,n,l,o,s,i,u,c){var v=(u&k)!==0,a=(u&vr)===0,h=v?a?te(l):Rt(l):l,f=u&Ct?Rt(s):s,d={i:f,v:h,k:o,a:null,e:null,prev:r,next:n};try{return d.e=mt(()=>i(t,h,f),$),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 or(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,l=e?e.e.nodes_start:r,o=t.e.nodes_start;o!==n;){var s=B(o);l.before(o),o=s}}function Q(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 vn(t,e,r,n,l){var i;$&&gt();var o=(i=e.$$slots)==null?void 0:i[r],s=!1;o===!0&&(o=e.children,s=!0),o===void 0?l!==null&&l(t):o(t,s?()=>n:n)}function fe(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 Tt(t,e,r,n){var l=t.__attributes??(t.__attributes={});$&&(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"&&hn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var sr=new Map;function hn(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=$r(n);for(var o in r)r[o].set&&e.push(o);n=mr(n)}return e}function dn(t){for(var e=p,r=p;e!==null&&!(e.f&(F|nt));)e=e.parent;try{return J(e),t()}finally{J(r)}}function ht(t,e,r,n){var K;var l=!ke,o=(r&hr)!==0,s=!1,i;i=t[e];var u=Er in t||we in t,c=((K=zt(t,e))==null?void 0:K.set)??(u&&o&&e in t?E=>t[e]=E:void 0),v=n,a=!0,h=!1,f=()=>(h=!0,a&&(a=!1,v=n),v);i===void 0&&n!==void 0&&(c&&l&&zr(),i=f(),c&&c(i));var d;if(d=()=>{var E=t[e];return E===void 0?f():(a=!0,h=!1,E)},c){var x=t.$$legacy;return function(E,N){return arguments.length>0?((!N||x||s)&&c(N?d():E),E):d()}}var S=!1,C=!1,_=te(i),m=dn(()=>Re(()=>{var E=d(),N=R(_);return S?(S=!1,C=!0,N):(C=!1,_.v=E)}));return function(E,N){if(arguments.length>0){const dt=N?R(m):E;return m.equals(dt)||(S=!0,Dt(_,dt),h&&v!==void 0&&(v=dt),tn(()=>R(m))),E}return R(m)}}function _n(t){return new pn(t)}class pn{constructor(e){pe(this,G);pe(this,D);var o;var r=new Map,n=(s,i)=>{var u=te(i);return r.set(s,u),u};const l=new Proxy({...e.props||{},$$events:{}},{get(s,i){return R(r.get(i)??n(i,Reflect.get(s,i)))},has(s,i){return i===we?!0:(R(r.get(i)??n(i,Reflect.get(s,i))),Reflect.has(s,i))},set(s,i,u){return Dt(r.get(i)??n(i,u),u),Reflect.set(s,i,u)}});ge(this,D,(e.hydrate?ln:er)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((o=e==null?void 0:e.props)!=null&&o.$$host)||e.sync===!1)&&Z(),ge(this,G,l.$$events);for(const s of Object.keys(z(this,D)))s==="$set"||s==="$destroy"||s==="$on"||Nt(this,s,{get(){return z(this,D)[s]},set(i){z(this,D)[s]=i},enumerable:!0});z(this,D).$set=s=>{Object.assign(l,s)},z(this,D).$destroy=()=>{on(z(this,D))}}$set(e){z(this,D).$set(e)}$on(e,r){z(this,G)[e]=z(this,G)[e]||[];const n=(...l)=>r.call(this,...l);return z(this,G)[e].push(n),()=>{z(this,G)[e]=z(this,G)[e].filter(l=>l!==n)}}$destroy(){z(this,D).$destroy()}}G=new WeakMap,D=new WeakMap;let ir;typeof HTMLElement=="function"&&(ir=class extends HTMLElement{constructor(e,r,n){super();j(this,"$$ctor");j(this,"$$s");j(this,"$$c");j(this,"$$cn",!1);j(this,"$$d",{});j(this,"$$r",!1);j(this,"$$p_d",{});j(this,"$$l",{});j(this,"$$l_u",new Map);j(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 o=>{const s=document.createElement("slot");l!=="default"&&(s.name=l),rt(o,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=gn(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 o=this.$$g_p(l.name);o in this.$$d||(this.$$d[o]=Gt(o,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=jr(()=>{Hr(()=>{var l;this.$$r=!0;for(const o of St(this.$$c)){if(!((l=this.$$p_d[o])!=null&&l.reflect))continue;this.$$d[o]=this.$$c[o];const s=Gt(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1})});for(const l in this.$$l)for(const o of this.$$l[l]){const s=this.$$c.$on(l,o);this.$$l_u.set(o,s)}this.$$l={}}}attributeChangedCallback(e,r,n){var l;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Gt(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 Gt(t,e,r,n){var o;const l=(o=r[t])==null?void 0:o.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 gn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function ve(t,e,r,n,l,o){let s=class extends ir{constructor(){super(t,r,l),this.$$p_d=e}static get observedAttributes(){return St(e).map(i=>(e[i].attribute||i).toLowerCase())}};return St(e).forEach(i=>{Nt(s.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Gt(i,u,e),this.$$d[i]=u;var c=this.$$c;if(c){var v=(a=zt(c,i))==null?void 0:a.get;v?c[i]=u:c.$set({[i]:u})}}})}),n.forEach(i=>{Nt(s.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=s,s}const bn=[{name:"Nos Haiku",url:"https://nos-haiku.vercel.app/antenna?content={text}",icon:"https://nos-haiku.vercel.app/favicon.png"},{name:"nostter",url:"https://nostter.app/post?content={text}",icon:"https://nostter.app/favicon.ico"},{name:"Lumilumi",url:"https://lumilumi.app/post?text={text}",icon:"https://lumilumi.app/favicon.ico"}];var $n=t=>t.stopPropagation(),mn=(t,e,r)=>e(R(r).url),yn=kt('<button class="item svelte-1sy5hzc"><img> <span class="item-name"> </span></button>'),xn=kt('<div class="overlay svelte-1sy5hzc"><div class="inner svelte-1sy5hzc"><button class="close-button svelte-1sy5hzc" aria-label="Close">✖</button> <h2 class="title svelte-1sy5hzc">Select Share Client</h2> <div class="list svelte-1sy5hzc"></div> <div class="footer svelte-1sy5hzc"><a target="_blank" referrerpolicy="no-referrer" href="https://tsukemonogit.github.io/nostr-share-component/" class="svelte-1sy5hzc">nostr-share-component</a></div></div></div>');const wn={hash:"svelte-1sy5hzc",code:`
2
+ /* オーバーレイ背景 */.overlay.svelte-1sy5hzc {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;z-index:50;}
3
3
 
4
- /* ダイアログ本体 */.inner.svelte-xie82o {display:flex;flex-direction:column;position:relative;background-color:var(--bg-color);padding:1rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
4
+ /* ダイアログ本体 */.inner.svelte-1sy5hzc {display:flex;flex-direction:column;position:relative;background-color:var(--bg-color);padding:1rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
5
5
 
6
- /* タイトル */.title.svelte-xie82o {margin:0.5em;font-size:1.25rem;font-weight:bold;text-align:center;color:var(--text-color-main); /* グレー700 */}
6
+ /* タイトル */.title.svelte-1sy5hzc {margin:0.5em;font-size:1.25rem;font-weight:bold;text-align:center;color:var(--text-color-main); /* グレー700 */}
7
7
 
8
- /* リスト */.list.svelte-xie82o {display:flex;flex-wrap:wrap;justify-content:center;gap:0.75rem; /* ゆったりした間隔 */}
8
+ /* リスト */.list.svelte-1sy5hzc {display:flex;flex-wrap:wrap;justify-content:center;gap:0.75rem; /* ゆったりした間隔 */}
9
9
 
10
- /* リストアイテム */.item.svelte-xie82o {color:var(--button2-text-color);display:flex;width:120px;justify-content:center;align-items:center;gap:0.5rem;padding:0.5rem 1rem;background-color:var(--button2-bg-color); /* グレー100 */border:1px solid var(--border-color); /* グレー300 */border-radius:8px;font-size:1rem;cursor:pointer;transition:background-color 0.2s ease,
11
- box-shadow 0.2s ease;}.item.svelte-xie82o:hover {background-color:var(--button2-hover-color); /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-xie82o:active {background-color:var(--button2-active-color); /* グレー300 */}
10
+ /* リストアイテム */.item.svelte-1sy5hzc {color:var(--button2-text-color);display:flex;min-width:120px;justify-content:center;align-items:center;gap:0.5rem;padding:0.5rem;background-color:var(--button2-bg-color); /* グレー100 */border:1px solid var(--border-color); /* グレー300 */border-radius:8px;font-size:1rem;cursor:pointer;transition:background-color 0.2s ease,
11
+ box-shadow 0.2s ease;}.item.svelte-1sy5hzc:hover {background-color:var(--button2-hover-color); /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-1sy5hzc:active {background-color:var(--button2-active-color); /* グレー300 */}
12
12
 
13
- /* バツボタン */.close-button.svelte-xie82o {position:absolute;right:12px;top:12px;width:36px;height:36px;display:flex;justify-content:center;align-items:center;background-color:var(--button2-bg-color); /* グレー200 */border:none;border-radius:50%;font-size:1.25rem;color:var(--button2-text-color); /* グレー700 */cursor:pointer;transition:background-color 0.2s ease,
14
- transform 0.1s ease;}.close-button.svelte-xie82o:hover {background-color:var(--button2-hover-color); /* グレー300 */}.close-button.svelte-xie82o:active {background-color:var(--button2-active-color); /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}.footer.svelte-xie82o {margin-top:1rem;text-align:center;font-size:0.75rem;border-top:1px solid var(--border-color); /* 線を追加 */padding-top:0.5rem; /* 線とコンテンツの間にスペースを追加 */}a.svelte-xie82o {font-weight:500;color:var(--button1-border-color);}a.svelte-xie82o:hover {color:var(--button2-text-color);}`};function pe(t,e){Ut(e,!0),he(t,kn);let r=et(e,"text",7,""),n=et(e,"handleClose",7);const o=c=>{r()===""&&r(`${document.title}
15
- ${window.location.href}`);const f=c.replace("{text}",encodeURIComponent(r()));console.log(f),window.open(f,"_blank","noreferrer"),n()()};var s=En();s.__click=function(...c){var f;(f=n())==null||f.apply(this,c)};var l=Mt(s);l.__click=[xn];var i=Mt(l);i.__click=function(...c){var f;(f=n())==null||f.apply(this,c)};var u=Lt(i,4);return cn(u,21,()=>$n,an,(c,f)=>{var a=wn();a.__click=[yn,o,f];var v=Mt(a);_t(v,"width",24);var d=Lt(v);mt(a),zt(()=>{_t(v,"src",I(f).icon),_t(v,"alt",I(f).name),on(d,` ${I(f).name??""}`)}),st(c,a)}),mt(u),Lr(2),mt(l),mt(s),st(t,s),Gt({get text(){return r()},set text(c=""){r(c),V()},get handleClose(){return n()},set handleClose(c){n(c),V()}})}er(["click"]),customElements.define("nostr-share-dialog",_e(pe,{text:{},handleClose:{}},[],[],!0));var Sn=nn(`<svg class="nostr-icon svelte-givlj7" version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" xml:space="preserve"><g><path class="st0 svelte-givlj7" 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
13
+ /* バツボタン */.close-button.svelte-1sy5hzc {position:absolute;right:12px;top:12px;width:36px;height:36px;display:flex;justify-content:center;align-items:center;background-color:var(--button2-bg-color); /* グレー200 */border:none;border-radius:50%;font-size:1.25rem;color:var(--button2-text-color); /* グレー700 */cursor:pointer;transition:background-color 0.2s ease,
14
+ transform 0.1s ease;}.close-button.svelte-1sy5hzc:hover {background-color:var(--button2-hover-color); /* グレー300 */}.close-button.svelte-1sy5hzc:active {background-color:var(--button2-active-color); /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}.footer.svelte-1sy5hzc {margin-top:1rem;text-align:center;font-size:0.75rem;border-top:1px solid var(--border-color); /* 線を追加 */padding-top:0.5rem; /* 線とコンテンツの間にスペースを追加 */}a.svelte-1sy5hzc {font-weight:500;color:var(--button1-border-color);}a.svelte-1sy5hzc:hover {color:var(--button2-text-color);}`};function he(t,e){Bt(e,!0),fe(t,wn);let r=ht(e,"text",7,""),n=ht(e,"handleClose",7);const l=c=>{r()===""&&r(`${document.title}
15
+ ${window.location.href}`);const v=c.replace("{text}",encodeURIComponent(r()));console.log(v),window.open(v,"_blank","noreferrer"),n()()};var o=xn();o.__click=function(...c){var v;(v=n())==null||v.apply(this,c)};var s=$t(o);s.__click=[$n];var i=$t(s);i.__click=function(...c){var v;(v=n())==null||v.apply(this,c)};var u=It(i,4);return un(u,21,()=>bn,sn,(c,v)=>{var a=yn();a.__click=[mn,l,v];var h=$t(a);Tt(h,"width",24);var f=It(h,2),d=$t(f,!0);st(f),st(a),oe(()=>{Tt(h,"src",R(v).icon),Tt(h,"alt",R(v).name),nn(d,R(v).name)}),rt(c,a)}),st(u),Ir(2),st(s),st(o),rt(t,o),Yt({get text(){return r()},set text(c=""){r(c),Z()},get handleClose(){return n()},set handleClose(c){n(c),Z()}})}Qe(["click"]),customElements.define("nostr-share-dialog",ve(he,{text:{},handleClose:{}},[],[],!0));var En=rn(`<svg class="nostr-icon svelte-givlj7" version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" xml:space="preserve"><g><path class="st0 svelte-givlj7" 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
16
16
  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
17
17
  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
18
18
  c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"></path><circle class="st1 svelte-givlj7" cx="137.9" cy="99" r="12.1"></circle><path class="st1 svelte-givlj7" 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
@@ -27,19 +27,9 @@ ${window.location.href}`);const f=c.replace("{text}",encodeURIComponent(r()));co
27
27
  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
28
28
  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
29
29
  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
30
- s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg>`);const Tn={hash:"svelte-givlj7",code:`
31
- /* アイコン内部のSVG */.nostr-icon.svelte-givlj7 {margin:auto;display:flex;align-items:center;justify-content:center;}.st0.svelte-givlj7 {fill:none;}.st1.svelte-givlj7 {fill:var(--bg-color);}.st2.svelte-givlj7 {fill:var(--nostr-color);}`};function ge(t,e){Ut(e,!0),he(t,Tn);let r=et(e,"size",7,28);var n=Sn();return zt(()=>_t(n,"style",`enable-background:new 0 0 256 256; width: ${r()??""}px; height: ${r()??""}px;`)),st(t,n),Gt({get size(){return r()},set size(o=28){r(o),V()}})}_e(ge,{size:{}},[],[],!0);const Cn=(t,e)=>{Dt(e,!0)};var Nn=kt("<span>Nostr</span>"),An=kt("<!> <!>",1),On=kt("<button><!></button> <!>",1);const Rn={hash:"svelte-1swpyup",code:`:host {font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
32
- Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;display:flex;justify-content:center;align-items:center;--text-color-main: #2e2e2e;--button1-text-color: #662482;--button1-bg-color: #ececec;--button1-hover-color: #b1b1b1;--button1-border-color: #b9b9b9;--button2-text-color: rgb(73, 73, 73);--button2-bg-color: #f3f4f6;--button2-hover-color: #e5e7eb;--nostr-color: #662482;--bg-color: #ffffff;--border-color: #d1d5db;}
33
- @media (prefers-color-scheme: dark) {:host {display:flex;justify-content:center;align-items:center;--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button1-border-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
34
- }
35
- /* デフォルトのスタイルを無効にする?*/button.svelte-1swpyup {background:none;border:none;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;}
36
-
37
- /* ボタン全体の基本スタイル */[data-nostr-share="nostr-share-button"].svelte-1swpyup,
38
- [data-nostr-share="nostr-share-mini"].svelte-1swpyup {color:var(--button1-text-color);display:flex;align-items:center;justify-content:center;border:1px solid var(--button1-border-color);cursor:pointer;transition:all 0.2s ease-in-out;}[data-nostr-share="nostr-share-icon"].svelte-1swpyup {color:var(--button1-text-color);display:flex;align-items:center;justify-content:center;cursor:pointer;width:var(--icon-size);height:var(--icon-size);margin:auto;padding:4px;border-radius:50%;border:none;background-color:transparent;}
39
-
40
- /* ボタンスタイル */[data-nostr-share="nostr-share-button"].svelte-1swpyup {padding:6px 16px;margin:4px;font-weight:bold;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}[data-nostr-share="nostr-share-button"].svelte-1swpyup:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}[data-nostr-share="nostr-share-button"].svelte-1swpyup:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
41
-
42
- /* テキスト用スタイル */.nostrShare-text.svelte-1swpyup {margin-left:8px;font-size:medium;color:var(--button2-text-color);}[data-nostr-share="nostr-share-icon"].svelte-1swpyup:hover {background-color:var(--button1-hover-color); /* グレー */box-shadow:0 0 6px rgba(0, 0, 0, 0.1);transition:all 0.2s ease-in-out;}[data-nostr-share="nostr-share-icon"].svelte-1swpyup:active {background-color:#d1d5db;transform:scale(0.95);transition:all 0.2s ease-in-out;}
43
-
44
- /* miniスタイル */[data-nostr-share="nostr-share-mini"].svelte-1swpyup {padding:2px 6px;margin:2px;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}[data-nostr-share="nostr-share-mini"].svelte-1swpyup:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}[data-nostr-share="nostr-share-mini"].svelte-1swpyup:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
45
- /* テキスト用スタイル */.nostrShare-text-mini.svelte-1swpyup {margin-left:4px;font-size:small;font-weight:bold;color:var(--button2-text-color);}`};function cr(t,e){Ut(e,!0),he(t,Rn);let r=et(e,"data-text",7),n=et(e,"data-type",7,"default"),o=et(e,"icon-size",7,28),s=et(e,"class",7),l=et(e,"data-style",7),i=Ir(!1);const u=()=>{Dt(i,!1)},c=typeof o()=="string"?parseInt(o(),10):o();let f=le(()=>l()?"":n()==="icon"?"nostr-share-icon":n()==="mini"?"nostr-share-mini":"nostr-share-button");var a=On(),v=Ie(a);v.__click=[Cn,i];var d=Mt(v);dn(d,e,"default",{},g=>{var T=An(),_=Ie(T);{var y=N=>{ge(N,{size:24})},J=N=>{var rt=le(()=>n()==="icon"?c:28);ge(N,{get size(){return I(rt)}})};de(_,N=>{n()==="mini"?N(y):N(J,!1)})}var k=Lt(_,2);{var C=N=>{var rt=Nn();zt(()=>ar(rt,`${(n()==="mini"?"nostrShare-text-mini":"nostrShare-text")??""} svelte-1swpyup`)),st(N,rt)};de(k,N=>{n()!=="icon"&&N(C)})}st(g,T)}),mt(v);var h=Lt(v,2);{var E=g=>{pe(g,{handleClose:u,get text(){return r()}})};de(h,g=>{I(i)&&g(E)})}return zt(()=>{ar(v,`${s()??""} svelte-1swpyup`),_t(v,"data-nostr-share",I(f)),_t(v,"style",l()||"")}),st(t,a),Gt({get"data-text"(){return r()},set"data-text"(g){r(g),V()},get"data-type"(){return n()},set"data-type"(g="default"){n(g),V()},get"icon-size"(){return o()},set"icon-size"(g=28){o(g),V()},get class(){return s()},set class(g){s(g),V()},get"data-style"(){return l()},set"data-style"(g){l(g),V()}})}return er(["click"]),customElements.define("nostr-share",_e(cr,{"data-text":{},"data-type":{},"icon-size":{},class:{},"data-style":{}},["default"],[],!0)),$.Dialog=pe,$.NostrShare=cr,Object.defineProperty($,Symbol.toStringTag,{value:"Module"}),$}({});
30
+ s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg>`);const kn={hash:"svelte-givlj7",code:`
31
+ /* アイコン内部のSVG */.nostr-icon.svelte-givlj7 {margin:auto;display:flex;align-items:center;justify-content:center;}.st0.svelte-givlj7 {fill:none;}.st1.svelte-givlj7 {fill:var(--bg-color);}.st2.svelte-givlj7 {fill:var(--nostr-color);}`};function ar(t,e){Bt(e,!0),fe(t,kn);let r=ht(e,"size",7,28);var n=En();return oe(()=>Tt(n,"style",`enable-background:new 0 0 256 256; width: ${r()??""}px; height: ${r()??""}px;`)),rt(t,n),Yt({get size(){return r()},set size(l=28){r(l),Z()}})}ve(ar,{size:{}},[],[],!0);const Tn=(t,e)=>{Dt(e,!0)};var Cn=kt('<span part="text" class="svelte-1h3gn4x">Nostr</span>'),Sn=kt("<!> <!>",1),Nn=kt('<button part="button" class="svelte-1h3gn4x"><!></button> <!>',1);const zn={hash:"svelte-1h3gn4x",code:`:host {font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
32
+ Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;display:flex;justify-content:center;align-items:center;--text-color-main: #2e2e2e;--button1-text-color: #662482;--button1-bg-color: #ececec;--button1-hover-color: #b1b1b1;--button1-active-color: #999999;--button1-border-color: #b9b9b9;--button2-text-color: rgb(73, 73, 73);--button2-bg-color: #f3f4f6;--button2-hover-color: #e5e7eb;--nostr-color: #662482;--bg-color: #ffffff;--border-color: #d1d5db;}
33
+ @media (prefers-color-scheme: dark) {:host {display:flex;justify-content:center;align-items:center;--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button1-active-color: #757575;--button1-border-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
34
+ }[part="button"].svelte-1h3gn4x {display:flex;align-items:center;justify-content:center;cursor:pointer;gap:0.5em;transition:all 0.1s ease-in-out;border-radius:8px;font-weight:bold;}[part="button"].svelte-1h3gn4x:active {transform:scale(0.98);}[data-nostr-share="default"].svelte-1h3gn4x {padding:6px 16px;background-color:var(--button1-bg-color);color:var(--button2-text-color);border:1px solid var(--button1-border-color);}[data-nostr-share="mini"].svelte-1h3gn4x {padding:2px 6px;background-color:var(--button1-bg-color);color:var(--button2-text-color);border:1px solid var(--button1-border-color);}[data-nostr-share="default"].svelte-1h3gn4x:hover,
35
+ [data-nostr-share="mini"].svelte-1h3gn4x:hover {background-color:var(--button1-hover-color);box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}[data-nostr-share="icon"].svelte-1h3gn4x {width:var(--icon-size);height:var(--icon-size);padding:2px;border-radius:50%;background-color:transparent;border:none;}[data-nostr-share="icon"].svelte-1h3gn4x:hover {background-color:var(--button1-hover-color);box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}[part="text"].svelte-1h3gn4x {font-size:medium;}[data-nostr-share="mini"].svelte-1h3gn4x [part="text"]:where(.svelte-1h3gn4x) {font-size:small;}`};function ur(t,e){Bt(e,!0),fe(t,zn);let r=ht(e,"data-text",7),n=ht(e,"data-type",7,"default"),l=ht(e,"icon-size",7,28),o=Rr(!1);const s=()=>{Dt(o,!1)},i=typeof l()=="string"?parseInt(l(),10):l();var u=Nn(),c=Ae(u);c.__click=[Tn,o];var v=$t(c);vn(v,e,"default",{},f=>{var d=Sn(),x=Ae(d),S=Re(()=>n()==="icon"?i:28);ar(x,{get size(){return R(S)}});var C=It(x,2);{var _=m=>{var K=Cn();rt(m,K)};nr(C,m=>{n()!=="icon"&&m(_)})}rt(f,d)}),st(c);var a=It(c,2);{var h=f=>{he(f,{handleClose:s,get text(){return r()}})};nr(a,f=>{R(o)&&f(h)})}return oe(()=>Tt(c,"data-nostr-share",n())),rt(t,u),Yt({get"data-text"(){return r()},set"data-text"(f){r(f),Z()},get"data-type"(){return n()},set"data-type"(f="default"){n(f),Z()},get"icon-size"(){return l()},set"icon-size"(f=28){l(f),Z()}})}return Qe(["click"]),customElements.define("nostr-share",ve(ur,{"data-text":{},"data-type":{},"icon-size":{}},["default"],[],!0)),b.Dialog=he,b.NostrShare=ur,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),b}({});
@@ -1,18 +1,18 @@
1
- (function(g,x){typeof exports=="object"&&typeof module<"u"?x(exports):typeof define=="function"&&define.amd?define(["exports"],x):(g=typeof globalThis<"u"?globalThis:g||self,x(g.NostrShare={}))})(this,function(g){"use strict";var Mn=Object.defineProperty;var fr=g=>{throw TypeError(g)};var Ln=(g,x,S)=>x in g?Mn(g,x,{enumerable:!0,configurable:!0,writable:!0,value:S}):g[x]=S;var j=(g,x,S)=>Ln(g,typeof x!="symbol"?x+"":x,S),vr=(g,x,S)=>x.has(g)||fr("Cannot "+S);var O=(g,x,S)=>(vr(g,x,"read from private field"),S?S.call(g):x.get(g)),me=(g,x,S)=>x.has(g)?fr("Cannot add the same private member more than once"):x instanceof WeakSet?x.add(g):x.set(g,S),$e=(g,x,S,St)=>(vr(g,x,"write to private field"),St?St.call(g,S):x.set(g,S),S);var W,M;const x="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(x);const S=1,St=2,dr=16,hr=8,_r=1,pr=2,xe="[",Jt="[!",Xt="]",pt={},gr=Symbol(),br=["touchstart","touchmove"];function mr(t){return br.includes(t)}const ye=!1;var we=Array.isArray,Zt=Array.from,Tt=Object.keys,Ct=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,xr=Object.getPrototypeOf;function yr(t){for(var e=0;e<t.length;e++)t[e]()}const L=2,Ee=4,At=8,Qt=16,F=32,lt=64,te=128,it=256,Ot=512,R=1024,X=2048,gt=4096,P=8192,at=16384,wr=32768,ee=65536,Er=1<<19,ke=1<<20,kr=Symbol("$state"),Se=Symbol("legacy props"),Sr=Symbol("");function Te(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 Cr(t){return!Tr(t,this.v)}function Nr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ar(){throw new Error("https://svelte.dev/e/hydration_failed")}function Or(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 Dr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Ce=!1;function Rt(t,e){var r={f:0,v:t,reactions:null,equals:Te,version:0};return r}function Ir(t){return Mr(Rt(t))}function re(t,e=!1){const r=Rt(t);return e||(r.equals=Cr),r}function Mr(t){return y!==null&&y.f&L&&(H===null?Gr([t]):H.push(t)),t}function Dt(t,e){return y!==null&&Wr()&&y.f&(L|Qt)&&(H===null||!H.includes(t))&&Dr(),Ne(t,e)}function Ne(t,e){return t.equals(e)||(t.v=e,t.version=We(),Ae(t,X),p!==null&&p.f&R&&!(p.f&F)&&(A!==null&&A.includes(t)?(K(p,X),Yt(p)):Q===null?Kr([t]):Q.push(t))),e}function Ae(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var s=r[o],l=s.f;l&X||(K(s,e),l&(R|it)&&(l&L?Ae(s,gt):Yt(s)))}}function ne(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let m=!1;function B(t){m=t}let $;function q(t){if(t===null)throw ne(),pt;return $=t}function bt(){return q(U($))}function mt(t){if(m){if(U($)!==null)throw ne(),pt;$=t}}function Lr(t=1){if(m){for(var e=t,r=$;e--;)r=U(r);$=r}}function oe(){for(var t=0,e=$;;){if(e.nodeType===8){var r=e.data;if(r===Xt){if(t===0)return e;t-=1}else(r===xe||r===Jt)&&(t+=1)}var n=U(e);e.remove(),e=n}}var Oe,Re,De;function se(){if(Oe===void 0){Oe=window;var t=Element.prototype,e=Node.prototype;Re=Nt(e,"firstChild").get,De=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 It(t=""){return document.createTextNode(t)}function Y(t){return Re.call(t)}function U(t){return De.call(t)}function Mt(t,e){if(!m)return Y(t);var r=Y($);return r===null&&(r=$.appendChild(It())),q(r),r}function Ie(t,e){if(!m){var r=Y(t);return r instanceof Comment&&r.data===""?U(r):r}return $}function Lt(t,e=1,r=!1){let n=m?$:t;for(var o;e--;)o=n,n=U(n);if(!m)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var l=It();return n===null?o==null||o.after(l):n.before(l),q(l),l}return q(n),n}function Me(t){t.textContent=""}function le(t){var e=L|X;p===null?e|=it:p.f|=ke;var r=y!==null&&y.f&L?y:null;const n={children:null,ctx:z,deps:null,equals:Te,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function Le(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&L?ie(n):G(n)}}}function zr(t){for(var e=t.parent;e!==null;){if(!(e.f&L))return e;e=e.parent}return null}function ze(t){var e,r=p;Z(zr(t));try{Le(t),e=Je(t)}finally{Z(r)}return e}function je(t){var e=ze(t),r=(ot||t.f&it)&&t.deps!==null?gt:R;K(t,r),t.equals(e)||(t.v=e,t.version=We())}function ie(t){Le(t),Et(t,0),K(t,at),t.v=t.children=t.deps=t.ctx=t.reactions=null}function jr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function ut(t,e,r,n=!0){var o=(t&lt)!==0,s=p,l={ctx:z,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|X,first:null,fn:e,last:null,next:null,parent:o?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var i=ct;try{Ge(!0),Bt(l),l.f|=wr}catch(f){throw G(l),f}finally{Ge(i)}}else e!==null&&Yt(l);var u=r&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&ke)===0;if(!u&&!o&&n&&(s!==null&&jr(l,s),y!==null&&y.f&L)){var c=y;(c.children??(c.children=[])).push(l)}return l}function Fr(t){const e=ut(lt,t,!0);return()=>{G(e)}}function Pr(t){const e=ut(lt,t,!0);return(r={})=>new Promise(n=>{r.outro?jt(e,()=>{G(e),n(void 0)}):(G(e),n(void 0))})}function qr(t){return ut(Ee,t,!1)}function Hr(t){return ut(At,t,!0)}function zt(t){return ae(t)}function ae(t,e=0){return ut(At|Qt|e,t,!0)}function $t(t,e=!0){return ut(At|F,t,!0,e)}function Fe(t){var e=t.teardown;if(e!==null){const r=y;vt(null);try{e.call(null)}finally{vt(r)}}}function Pe(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)ie(e[r])}}function qe(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;G(r,e),r=n}}function Vr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&F||G(e),e=r}}function G(t,e=!0){var r=!1;if((e||t.f&Er)&&t.nodes_start!==null){for(var n=t.nodes_start,o=t.nodes_end;n!==null;){var s=n===o?null:U(n);n.remove(),n=s}r=!0}qe(t,e&&!r),Pe(t),Et(t,0),K(t,at);var l=t.transitions;if(l!==null)for(const u of l)u.stop();Fe(t);var i=t.parent;i!==null&&i.first!==null&&He(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function He(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 jt(t,e){var r=[];ue(t,r,!0),Ve(r,()=>{G(t),e&&e()})}function Ve(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function ue(t,e,r){if(!(t.f&P)){if(t.f^=P,t.transitions!==null)for(const l of t.transitions)(l.is_global||r)&&e.push(l);for(var n=t.first;n!==null;){var o=n.next,s=(n.f&ee)!==0||(n.f&F)!==0;ue(n,e,s?r:!1),n=o}}}function Ft(t){Be(t,!0)}function Be(t,e){if(t.f&P){wt(t)&&Bt(t),t.f^=P;for(var r=t.first;r!==null;){var n=r.next,o=(r.f&ee)!==0||(r.f&F)!==0;Be(r,o?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let Pt=!1,ce=[];function Ye(){Pt=!1;const t=ce.slice();ce=[],yr(t)}function Br(t){Pt||(Pt=!0,queueMicrotask(Ye)),ce.push(t)}function Yr(){Pt&&Ye()}const Ue=0,Ur=1;let qt=!1,Ht=Ue,xt=!1,yt=null,ct=!1;function Ge(t){ct=t}let nt=[],ft=0,zn=[],y=null;function vt(t){y=t}let p=null;function Z(t){p=t}let H=null;function Gr(t){H=t}let A=null,D=0,Q=null;function Kr(t){Q=t}let Ke=1,ot=!1,z=null;function We(){return++Ke}function Wr(){return!Ce}function wt(t){var l,i;var e=t.f;if(e&X)return!0;if(e&gt){var r=t.deps,n=(e&it)!==0;if(r!==null){var o;if(e&Ot){for(o=0;o<r.length;o++)((l=r[o]).reactions??(l.reactions=[])).push(t);t.f^=Ot}for(o=0;o<r.length;o++){var s=r[o];if(wt(s)&&je(s),n&&p!==null&&!ot&&!((i=s==null?void 0:s.reactions)!=null&&i.includes(t))&&(s.reactions??(s.reactions=[])).push(t),s.version>t.version)return!0}}(!n||p!==null&&!ot)&&K(t,R)}return!1}function Jr(t,e){for(var r=e;r!==null;){if(r.f&te)try{r.fn(t);return}catch{r.f^=te}r=r.parent}throw qt=!1,t}function Xr(t){return(t.f&at)===0&&(t.parent===null||(t.parent.f&te)===0)}function Vt(t,e,r,n){if(qt){if(r===null&&(qt=!1),Xr(e))throw t;return}r!==null&&(qt=!0);{Jr(t,e);return}}function Je(t){var v;var e=A,r=D,n=Q,o=y,s=ot,l=H,i=z,u=t.f;A=null,D=0,Q=null,y=u&(F|lt)?null:t,ot=!ct&&(u&it)!==0,H=null,z=t.ctx;try{var c=(0,t.fn)(),f=t.deps;if(A!==null){var a;if(Et(t,D),f!==null&&D>0)for(f.length=D+A.length,a=0;a<A.length;a++)f[D+a]=A[a];else t.deps=f=A;if(!ot)for(a=D;a<f.length;a++)((v=f[a]).reactions??(v.reactions=[])).push(t)}else f!==null&&D<f.length&&(Et(t,D),f.length=D);return c}finally{A=e,D=r,Q=n,y=o,ot=s,H=l,z=i}}function Zr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var o=r.length-1;o===0?r=e.reactions=null:(r[n]=r[o],r.pop())}}r===null&&e.f&L&&(A===null||!A.includes(e))&&(K(e,gt),e.f&(it|Ot)||(e.f^=Ot),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 Bt(t){var e=t.f;if(!(e&at)){K(t,R);var r=p,n=z;p=t;try{e&Qt?Vr(t):qe(t),Pe(t),Fe(t);var o=Je(t);t.teardown=typeof o=="function"?o:null,t.version=Ke}catch(s){Vt(s,t,r,n||t.ctx)}finally{p=r}}}function Xe(){if(ft>1e3){ft=0;try{Nr()}catch(t){if(yt!==null)Vt(t,yt,null);else throw t}}ft++}function Ze(t){var e=t.length;if(e!==0){Xe();var r=ct;ct=!0;try{for(var n=0;n<e;n++){var o=t[n];o.f&R||(o.f^=R);var s=[];Qe(o,s),Qr(s)}}finally{ct=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&(at|P)))try{wt(n)&&(Bt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?He(n):n.fn=null))}catch(o){Vt(o,n,null,n.ctx)}}}function tn(){if(xt=!1,ft>1001)return;const t=nt;nt=[],Ze(t),xt||(ft=0,yt=null)}function Yt(t){Ht===Ue&&(xt||(xt=!0,queueMicrotask(tn))),yt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(lt|F)){if(!(r&R))return;e.f^=R}}nt.push(e)}function Qe(t,e){var r=t.first,n=[];t:for(;r!==null;){var o=r.f,s=(o&F)!==0,l=s&&(o&R)!==0,i=r.next;if(!l&&!(o&P))if(o&At){if(s)r.f^=R;else try{wt(r)&&Bt(r)}catch(a){Vt(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else o&Ee&&n.push(r);if(i===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var c=a.next;if(c!==null){r=c;continue t}a=a.parent}}r=i}for(var f=0;f<n.length;f++)u=n[f],e.push(u),Qe(u,e)}function V(t){var e=Ht,r=nt;try{Xe();const o=[];Ht=Ur,nt=o,xt=!1,Ze(r);var n=t==null?void 0:t();return Yr(),(nt.length>0||o.length>0)&&V(),ft=0,yt=null,n}finally{Ht=e,nt=r}}function I(t){var f;var e=t.f,r=(e&L)!==0;if(r&&e&at){var n=ze(t);return ie(t),n}if(y!==null){H!==null&&H.includes(t)&&Rr();var o=y.deps;A===null&&o!==null&&o[D]===t?D++:A===null?A=[t]:A.push(t),Q!==null&&p!==null&&p.f&R&&!(p.f&F)&&Q.includes(t)&&(K(p,X),Yt(p))}else if(r&&t.deps===null)for(var s=t,l=s.parent,i=s;l!==null;)if(l.f&L){var u=l;i=u,l=u.parent}else{var c=l;(f=c.deriveds)!=null&&f.includes(i)||(c.deriveds??(c.deriveds=[])).push(i);break}return r&&(s=t,wt(s)&&je(s)),t.v}function en(t){const e=y;try{return y=null,t()}finally{y=e}}const rn=~(X|gt|R);function K(t,e){t.f=t.f&rn|e}function Ut(t,e=!1,r){z={p:z,c:null,e:null,m:!1,s:t,x:null,l:null}}function Gt(t){const e=z;if(e!==null){t!==void 0&&(e.x=t);const l=e.e;if(l!==null){var r=p,n=y;e.e=null;try{for(var o=0;o<l.length;o++){var s=l[o];Z(s.effect),vt(s.reaction),qr(s.fn)}}finally{Z(r),vt(n)}}z=e.p,e.m=!0}return t||{}}const tr=new Set,fe=new Set;function er(t){for(var e=0;e<t.length;e++)tr.add(t[e]);for(var r of fe)r(t)}function Kt(t){var _;var e=this,r=e.ownerDocument,n=t.type,o=((_=t.composedPath)==null?void 0:_.call(t))||[],s=o[0]||t.target,l=0,i=t.__root;if(i){var u=o.indexOf(i);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var c=o.indexOf(e);if(c===-1)return;u<=c&&(l=u)}if(s=o[l]||t.target,s!==e){Ct(t,"currentTarget",{configurable:!0,get(){return s||r}});var f=y,a=p;vt(null),Z(null);try{for(var v,d=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var E=s["__"+n];if(E!==void 0&&!s.disabled)if(we(E)){var[b,...T]=E;b.apply(s,[t,...T])}else E.call(s,t)}catch(w){v?d.push(w):v=w}if(t.cancelBubble||h===e||h===null)break;s=h}if(v){for(let w of d)queueMicrotask(()=>{throw w});throw v}}finally{t.__root=e,delete t.currentTarget,vt(f),Z(a)}}}function rr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function dt(t,e){var r=p;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function kt(t,e){var r=(e&_r)!==0,n=(e&pr)!==0,o,s=!t.startsWith("<!>");return()=>{if(m)return dt($,null),$;o===void 0&&(o=rr(s?t:"<!>"+t),r||(o=Y(o)));var l=n?document.importNode(o,!0):o.cloneNode(!0);if(r){var i=Y(l),u=l.lastChild;dt(i,u)}else dt(l,l);return l}}function nn(t,e,r="svg"){var n=!t.startsWith("<!>"),o=`<${r}>${n?t:"<!>"+t}</${r}>`,s;return()=>{if(m)return dt($,null),$;if(!s){var l=rr(o),i=Y(l);s=Y(i)}var u=s.cloneNode(!0);return dt(u,u),u}}function st(t,e){if(m){p.nodes_end=$,bt();return}t!==null&&t.before(e)}function on(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 nr(t,e){return or(t,e)}function sn(t,e){se(),e.intro=e.intro??!1;const r=e.target,n=m,o=$;try{for(var s=Y(r);s&&(s.nodeType!==8||s.data!==xe);)s=U(s);if(!s)throw pt;B(!0),q(s),bt();const l=or(t,{...e,anchor:s});if($===null||$.nodeType!==8||$.data!==Xt)throw ne(),pt;return B(!1),l}catch(l){if(l===pt)return e.recover===!1&&Ar(),se(),Me(r),B(!1),nr(t,e);throw l}finally{B(n),q(o)}}const ht=new Map;function or(t,{target:e,anchor:r,props:n={},events:o,context:s,intro:l=!0}){se();var i=new Set,u=a=>{for(var v=0;v<a.length;v++){var d=a[v];if(!i.has(d)){i.add(d);var h=mr(d);e.addEventListener(d,Kt,{passive:h});var E=ht.get(d);E===void 0?(document.addEventListener(d,Kt,{passive:h}),ht.set(d,1)):ht.set(d,E+1)}}};u(Zt(tr)),fe.add(u);var c=void 0,f=Pr(()=>{var a=r??e.appendChild(It());return $t(()=>{if(s){Ut({});var v=z;v.c=s}o&&(n.$$events=o),m&&dt(a,null),c=t(a,n)||{},m&&(p.nodes_end=$),s&&Gt()}),()=>{var h;for(var v of i){e.removeEventListener(v,Kt);var d=ht.get(v);--d===0?(document.removeEventListener(v,Kt),ht.delete(v)):ht.set(v,d)}fe.delete(u),a!==r&&((h=a.parentNode)==null||h.removeChild(a))}});return ve.set(c,f),c}let ve=new WeakMap;function ln(t,e){const r=ve.get(t);return r?(ve.delete(t),r(e)):Promise.resolve()}function de(t,e,r=!1){m&&bt();var n=t,o=null,s=null,l=gr,i=r?ee:0,u=!1;const c=(a,v=!0)=>{u=!0,f(v,a)},f=(a,v)=>{if(l===(l=a))return;let d=!1;if(m){const h=n.data===Jt;!!l===h&&(n=oe(),q(n),B(!1),d=!0)}l?(o?Ft(o):v&&(o=$t(()=>v(n))),s&&jt(s,()=>{s=null})):(s?Ft(s):v&&(s=$t(()=>v(n))),o&&jt(o,()=>{o=null})),d&&B(!0)};ae(()=>{u=!1,e(c),u||f(null,null)},i),m&&(n=$)}function an(t,e){return e}function un(t,e,r,n){for(var o=[],s=e.length,l=0;l<s;l++)ue(e[l].e,o,!0);var i=s>0&&o.length===0&&r!==null;if(i){var u=r.parentNode;Me(u),u.append(r),n.clear(),tt(t,e[0].prev,e[s-1].next)}Ve(o,()=>{for(var c=0;c<s;c++){var f=e[c];i||(n.delete(f.k),tt(t,f.prev,f.next)),G(f.e,!i)}})}function cn(t,e,r,n,o,s=null){var l=t,i={flags:e,items:new Map,first:null};{var u=t;l=m?q(Y(u)):u.appendChild(It())}m&&bt();var c=null,f=!1;ae(()=>{var a=r(),v=we(a)?a:a==null?[]:Zt(a),d=v.length;if(f&&d===0)return;f=d===0;let h=!1;if(m){var E=l.data===Jt;E!==(d===0)&&(l=oe(),q(l),B(!1),h=!0)}if(m){for(var b=null,T,_=0;_<d;_++){if($.nodeType===8&&$.data===Xt){l=$,h=!0,B(!1);break}var w=v[_],J=n(w,_);T=sr($,i,b,null,w,J,_,o,e),i.items.set(J,T),b=T}d>0&&q(oe())}if(!m){var k=y;fn(v,i,l,o,e,(k.f&P)!==0,n)}s!==null&&(d===0?c?Ft(c):c=$t(()=>s(l)):c!==null&&jt(c,()=>{c=null})),h&&B(!0)}),m&&(l=$)}function fn(t,e,r,n,o,s,l,i){var u=t.length,c=e.items,f=e.first,a=f,v,d=null,h=[],E=[],b,T,_,w;for(w=0;w<u;w+=1){if(b=t[w],T=l(b,w),_=c.get(T),_===void 0){var J=a?a.e.nodes_start:r;d=sr(J,e,d,d===null?e.first:d.next,b,T,w,n,o),c.set(T,d),h=[],E=[],a=d.next;continue}if(vn(_,b,w),_.e.f&P&&Ft(_.e),_!==a){if(v!==void 0&&v.has(_)){if(h.length<E.length){var k=E[0],C;d=k.prev;var N=h[0],rt=h[h.length-1];for(C=0;C<h.length;C+=1)lr(h[C],k,r);for(C=0;C<E.length;C+=1)v.delete(E[C]);tt(e,N.prev,rt.next),tt(e,d,N),tt(e,rt,k),a=k,d=rt,w-=1,h=[],E=[]}else v.delete(_),lr(_,a,r),tt(e,_.prev,_.next),tt(e,_,d===null?e.first:d.next),tt(e,d,_),d=_;continue}for(h=[],E=[];a!==null&&a.k!==T;)(s||!(a.e.f&P))&&(v??(v=new Set)).add(a),E.push(a),a=a.next;if(a===null)continue;_=a}h.push(_),d=_,a=_.next}if(a!==null||v!==void 0){for(var be=v===void 0?[]:Zt(v);a!==null;)(s||!(a.e.f&P))&&be.push(a),a=a.next;var Dn=be.length;if(Dn>0){var In=u===0?r:null;un(e,be,In,c)}}p.first=e.first&&e.first.e,p.last=d&&d.e}function vn(t,e,r,n){Ne(t.v,e),t.i=r}function sr(t,e,r,n,o,s,l,i,u,c){var f=(u&S)!==0,a=(u&dr)===0,v=f?a?re(o):Rt(o):o,d=u&St?Rt(l):l,h={i:d,v,k:s,a:null,e:null,prev:r,next:n};try{return h.e=$t(()=>i(t,v,d),m),h.e.prev=r&&r.e,h.e.next=n&&n.e,r===null?e.first=h:(r.next=h,r.e.next=h.e),n!==null&&(n.prev=h,n.e.prev=h.e),h}finally{}}function lr(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,s=t.e.nodes_start;s!==n;){var l=U(s);o.before(s),s=l}}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 dn(t,e,r,n,o){var i;m&&bt();var s=(i=e.$$slots)==null?void 0:i[r],l=!1;s===!0&&(s=e.children,l=!0),s===void 0?o!==null&&o(t):s(t,l?()=>n:n)}function he(t,e){Br(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,n.appendChild(o)}})}function _t(t,e,r,n){var o=t.__attributes??(t.__attributes={});m&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[Sr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&hn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var ir=new Map;function hn(t){var e=ir.get(t.nodeName);if(e)return e;ir.set(t.nodeName,e=[]);for(var r,n=t,o=Element.prototype;o!==n;){r=$r(n);for(var s in r)r[s].set&&e.push(s);n=xr(n)}return e}function ar(t,e){var r=t.__className,n=_n(e);m&&t.className===n?t.__className=n:(r!==n||m&&t.className!==n)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function _n(t){return t??""}function pn(t){for(var e=p,r=p;e!==null&&!(e.f&(F|lt));)e=e.parent;try{return Z(e),t()}finally{Z(r)}}function et(t,e,r,n){var J;var o=!Ce,s=(r&hr)!==0,l=!1,i;i=t[e];var u=kr in t||Se in t,c=((J=Nt(t,e))==null?void 0:J.set)??(u&&s&&e in t?k=>t[e]=k:void 0),f=n,a=!0,v=!1,d=()=>(v=!0,a&&(a=!1,f=n),f);i===void 0&&n!==void 0&&(c&&o&&Or(),i=d(),c&&c(i));var h;if(h=()=>{var k=t[e];return k===void 0?d():(a=!0,v=!1,k)},c){var E=t.$$legacy;return function(k,C){return arguments.length>0?((!C||E||l)&&c(C?h():k),k):h()}}var b=!1,T=!1,_=re(i),w=pn(()=>le(()=>{var k=h(),C=I(_);return b?(b=!1,T=!0,C):(T=!1,_.v=k)}));return function(k,C){if(arguments.length>0){const N=C?I(w):k;return w.equals(N)||(b=!0,Dt(_,N),v&&f!==void 0&&(f=N),en(()=>I(w))),k}return I(w)}}function gn(t){return new bn(t)}class bn{constructor(e){me(this,W);me(this,M);var s;var r=new Map,n=(l,i)=>{var u=re(i);return r.set(l,u),u};const o=new Proxy({...e.props||{},$$events:{}},{get(l,i){return I(r.get(i)??n(i,Reflect.get(l,i)))},has(l,i){return i===Se?!0:(I(r.get(i)??n(i,Reflect.get(l,i))),Reflect.has(l,i))},set(l,i,u){return Dt(r.get(i)??n(i,u),u),Reflect.set(l,i,u)}});$e(this,M,(e.hydrate?sn:nr)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&V(),$e(this,W,o.$$events);for(const l of Object.keys(O(this,M)))l==="$set"||l==="$destroy"||l==="$on"||Ct(this,l,{get(){return O(this,M)[l]},set(i){O(this,M)[l]=i},enumerable:!0});O(this,M).$set=l=>{Object.assign(o,l)},O(this,M).$destroy=()=>{ln(O(this,M))}}$set(e){O(this,M).$set(e)}$on(e,r){O(this,W)[e]=O(this,W)[e]||[];const n=(...o)=>r.call(this,...o);return O(this,W)[e].push(n),()=>{O(this,W)[e]=O(this,W)[e].filter(o=>o!==n)}}$destroy(){O(this,M).$destroy()}}W=new WeakMap,M=new WeakMap;let ur;typeof HTMLElement=="function"&&(ur=class extends HTMLElement{constructor(e,r,n){super();j(this,"$$ctor");j(this,"$$s");j(this,"$$c");j(this,"$$cn",!1);j(this,"$$d",{});j(this,"$$r",!1);j(this,"$$p_d",{});j(this,"$$l",{});j(this,"$$l_u",new Map);j(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 o=this.$$c.$on(e,r);this.$$l_u.set(r,o)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const o=this.$$l_u.get(r);o&&(o(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return s=>{const l=document.createElement("slot");o!=="default"&&(l.name=o),st(s,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=mn(this);for(const o of this.$$s)o in n&&(o==="default"&&!this.$$d.children?(this.$$d.children=e(o),r.default=!0):r[o]=e(o));for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=Wt(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=gn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Fr(()=>{Hr(()=>{var o;this.$$r=!0;for(const s of Tt(this.$$c)){if(!((o=this.$$p_d[s])!=null&&o.reflect))continue;this.$$d[s]=this.$$c[s];const l=Wt(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1})});for(const o in this.$$l)for(const s of this.$$l[o]){const l=this.$$c.$on(o,s);this.$$l_u.set(s,l)}this.$$l={}}}attributeChangedCallback(e,r,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Wt(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$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 Tt(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Wt(t,e,r,n){var s;const o=(s=r[t])==null?void 0:s.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function mn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function _e(t,e,r,n,o,s){let l=class extends ur{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return Tt(e).map(i=>(e[i].attribute||i).toLowerCase())}};return Tt(e).forEach(i=>{Ct(l.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Wt(i,u,e),this.$$d[i]=u;var c=this.$$c;if(c){var f=(a=Nt(c,i))==null?void 0:a.get;f?c[i]=u:c.$set({[i]:u})}}})}),n.forEach(i=>{Ct(l.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=l,l}const $n=[{name:"nostter",url:"https://nostter.app/post?content={text}",icon:"https://nostter.app/favicon.ico"},{name:"Lumilumi",url:"https://lumilumi.app/post?text={text}",icon:"https://lumilumi.app/favicon.ico"}];var xn=t=>t.stopPropagation(),yn=(t,e,r)=>e(I(r).url),wn=kt('<button class="item svelte-xie82o"><img> </button>'),En=kt('<div class="overlay svelte-xie82o"><div class="inner svelte-xie82o"><button class="close-button svelte-xie82o" aria-label="Close">✖</button> <h2 class="title svelte-xie82o">Select Share Client</h2> <div class="list svelte-xie82o"></div> <div class="footer svelte-xie82o"><a target="_blank" referrerpolicy="no-referrer" href="https://tsukemonogit.github.io/nostr-share-component/" class="svelte-xie82o">nostr-share-component</a></div></div></div>');const kn={hash:"svelte-xie82o",code:`
2
- /* オーバーレイ背景 */.overlay.svelte-xie82o {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;z-index:50;}
1
+ (function(g,$){typeof exports=="object"&&typeof module<"u"?$(exports):typeof define=="function"&&define.amd?define(["exports"],$):(g=typeof globalThis<"u"?globalThis:g||self,$(g.NostrShare={}))})(this,function(g){"use strict";var Rn=Object.defineProperty;var cr=g=>{throw TypeError(g)};var Dn=(g,$,k)=>$ in g?Rn(g,$,{enumerable:!0,configurable:!0,writable:!0,value:k}):g[$]=k;var j=(g,$,k)=>Dn(g,typeof $!="symbol"?$+"":$,k),fr=(g,$,k)=>$.has(g)||cr("Cannot "+k);var z=(g,$,k)=>(fr(g,$,"read from private field"),k?k.call(g):$.get(g)),pe=(g,$,k)=>$.has(g)?cr("Cannot add the same private member more than once"):$ instanceof WeakSet?$.add(g):$.set(g,k),ge=(g,$,k,Ct)=>(fr(g,$,"write to private field"),Ct?Ct.call(g,k):$.set(g,k),k);var G,D;const $="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($);const k=1,Ct=2,vr=16,hr=8,dr=1,_r=2,be="[",Kt="[!",Wt="]",_t={},pr=Symbol(),gr=["touchstart","touchmove"];function br(t){return gr.includes(t)}const $e=!1;var me=Array.isArray,Jt=Array.from,St=Object.keys,Nt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,mr=Object.getPrototypeOf;function yr(t){for(var e=0;e<t.length;e++)t[e]()}const I=2,ye=4,At=8,Xt=16,F=32,nt=64,Zt=128,ot=256,Ot=512,A=1024,W=2048,pt=4096,P=8192,lt=16384,xr=32768,Qt=65536,wr=1<<19,xe=1<<20,Er=Symbol("$state"),we=Symbol("legacy props"),kr=Symbol("");function Ee(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 Cr(t){return!Tr(t,this.v)}function Sr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function zr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let ke=!1;function Rt(t,e){var r={f:0,v:t,reactions:null,equals:Ee,version:0};return r}function Rr(t){return Dr(Rt(t))}function te(t,e=!1){const r=Rt(t);return e||(r.equals=Cr),r}function Dr(t){return x!==null&&x.f&I&&(H===null?Ur([t]):H.push(t)),t}function Dt(t,e){return x!==null&&Kr()&&x.f&(I|Xt)&&(H===null||!H.includes(t))&&Or(),Te(t,e)}function Te(t,e){return t.equals(e)||(t.v=e,t.version=Ge(),Ce(t,W),p!==null&&p.f&A&&!(p.f&F)&&(T!==null&&T.includes(t)?(U(p,W),Vt(p)):X===null?Gr([t]):X.push(t))),e}function Ce(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var l=r[o],s=l.f;s&W||(U(l,e),s&(A|ot)&&(s&I?Ce(l,pt):Vt(l)))}}function ee(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let m=!1;function q(t){m=t}let b;function M(t){if(t===null)throw ee(),_t;return b=t}function gt(){return M(B(b))}function st(t){if(m){if(B(b)!==null)throw ee(),_t;b=t}}function Ir(t=1){if(m){for(var e=t,r=b;e--;)r=B(r);b=r}}function re(){for(var t=0,e=b;;){if(e.nodeType===8){var r=e.data;if(r===Wt){if(t===0)return e;t-=1}else(r===be||r===Kt)&&(t+=1)}var n=B(e);e.remove(),e=n}}var Se,Ne,ze;function ne(){if(Se===void 0){Se=window;var t=Element.prototype,e=Node.prototype;Ne=zt(e,"firstChild").get,ze=zt(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 V(t){return Ne.call(t)}function B(t){return ze.call(t)}function $t(t,e){if(!m)return V(t);var r=V(b);if(r===null)r=b.appendChild(bt());else if(e&&r.nodeType!==3){var n=bt();return r==null||r.before(n),M(n),n}return M(r),r}function Ae(t,e){if(!m){var r=V(t);return r instanceof Comment&&r.data===""?B(r):r}return b}function It(t,e=1,r=!1){let n=m?b:t;for(var o;e--;)o=n,n=B(n);if(!m)return n;var l=n==null?void 0:n.nodeType;if(r&&l!==3){var s=bt();return n===null?o==null||o.after(s):n.before(s),M(s),s}return M(n),n}function Oe(t){t.textContent=""}function Re(t){var e=I|W;p===null?e|=ot:p.f|=xe;var r=x!==null&&x.f&I?x:null;const n={children:null,ctx:L,deps:null,equals:Ee,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function De(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?oe(n):Y(n)}}}function Mr(t){for(var e=t.parent;e!==null;){if(!(e.f&I))return e;e=e.parent}return null}function Ie(t){var e,r=p;J(Mr(t));try{De(t),e=Ke(t)}finally{J(r)}return e}function Me(t){var e=Ie(t),r=(et||t.f&ot)&&t.deps!==null?pt:A;U(t,r),t.equals(e)||(t.v=e,t.version=Ge())}function oe(t){De(t),Et(t,0),U(t,lt),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Lr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function it(t,e,r,n=!0){var o=(t&nt)!==0,l=p,s={ctx:L,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|W,first:null,fn:e,last:null,next:null,parent:o?null:l,prev:null,teardown:null,transitions:null,version:0};if(r){var i=at;try{Ye(!0),qt(s),s.f|=xr}catch(v){throw Y(s),v}finally{Ye(i)}}else e!==null&&Vt(s);var u=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&xe)===0;if(!u&&!o&&n&&(l!==null&&Lr(s,l),x!==null&&x.f&I)){var c=x;(c.children??(c.children=[])).push(s)}return s}function jr(t){const e=it(nt,t,!0);return()=>{Y(e)}}function Fr(t){const e=it(nt,t,!0);return(r={})=>new Promise(n=>{r.outro?Mt(e,()=>{Y(e),n(void 0)}):(Y(e),n(void 0))})}function Pr(t){return it(ye,t,!1)}function Hr(t){return it(At,t,!0)}function le(t){return se(t)}function se(t,e=0){return it(At|Xt|e,t,!0)}function mt(t,e=!0){return it(At|F,t,!0,e)}function Le(t){var e=t.teardown;if(e!==null){const r=x;ct(null);try{e.call(null)}finally{ct(r)}}}function je(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)oe(e[r])}}function Fe(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;Y(r,e),r=n}}function qr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&F||Y(e),e=r}}function Y(t,e=!0){var r=!1;if((e||t.f&wr)&&t.nodes_start!==null){for(var n=t.nodes_start,o=t.nodes_end;n!==null;){var l=n===o?null:B(n);n.remove(),n=l}r=!0}Fe(t,e&&!r),je(t),Et(t,0),U(t,lt);var s=t.transitions;if(s!==null)for(const u of s)u.stop();Le(t);var i=t.parent;i!==null&&i.first!==null&&Pe(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Pe(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=[];ie(t,r,!0),He(r,()=>{Y(t),e&&e()})}function He(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function ie(t,e,r){if(!(t.f&P)){if(t.f^=P,t.transitions!==null)for(const s of t.transitions)(s.is_global||r)&&e.push(s);for(var n=t.first;n!==null;){var o=n.next,l=(n.f&Qt)!==0||(n.f&F)!==0;ie(n,e,l?r:!1),n=o}}}function Lt(t){qe(t,!0)}function qe(t,e){if(t.f&P){wt(t)&&qt(t),t.f^=P;for(var r=t.first;r!==null;){var n=r.next,o=(r.f&Qt)!==0||(r.f&F)!==0;qe(r,o?e:!1),r=n}if(t.transitions!==null)for(const l of t.transitions)(l.is_global||e)&&l.in()}}let jt=!1,ae=[];function Ve(){jt=!1;const t=ae.slice();ae=[],yr(t)}function Vr(t){jt||(jt=!0,queueMicrotask(Ve)),ae.push(t)}function Br(){jt&&Ve()}const Be=0,Yr=1;let Ft=!1,Pt=Be,yt=!1,xt=null,at=!1;function Ye(t){at=t}let tt=[],ut=0,In=[],x=null;function ct(t){x=t}let p=null;function J(t){p=t}let H=null;function Ur(t){H=t}let T=null,O=0,X=null;function Gr(t){X=t}let Ue=1,et=!1,L=null;function Ge(){return++Ue}function Kr(){return!ke}function wt(t){var s,i;var e=t.f;if(e&W)return!0;if(e&pt){var r=t.deps,n=(e&ot)!==0;if(r!==null){var o;if(e&Ot){for(o=0;o<r.length;o++)((s=r[o]).reactions??(s.reactions=[])).push(t);t.f^=Ot}for(o=0;o<r.length;o++){var l=r[o];if(wt(l)&&Me(l),n&&p!==null&&!et&&!((i=l==null?void 0:l.reactions)!=null&&i.includes(t))&&(l.reactions??(l.reactions=[])).push(t),l.version>t.version)return!0}}(!n||p!==null&&!et)&&U(t,A)}return!1}function Wr(t,e){for(var r=e;r!==null;){if(r.f&Zt)try{r.fn(t);return}catch{r.f^=Zt}r=r.parent}throw Ft=!1,t}function Jr(t){return(t.f&lt)===0&&(t.parent===null||(t.parent.f&Zt)===0)}function Ht(t,e,r,n){if(Ft){if(r===null&&(Ft=!1),Jr(e))throw t;return}r!==null&&(Ft=!0);{Wr(t,e);return}}function Ke(t){var h;var e=T,r=O,n=X,o=x,l=et,s=H,i=L,u=t.f;T=null,O=0,X=null,x=u&(F|nt)?null:t,et=!at&&(u&ot)!==0,H=null,L=t.ctx;try{var c=(0,t.fn)(),v=t.deps;if(T!==null){var a;if(Et(t,O),v!==null&&O>0)for(v.length=O+T.length,a=0;a<T.length;a++)v[O+a]=T[a];else t.deps=v=T;if(!et)for(a=O;a<v.length;a++)((h=v[a]).reactions??(h.reactions=[])).push(t)}else v!==null&&O<v.length&&(Et(t,O),v.length=O);return c}finally{T=e,O=r,X=n,x=o,et=l,H=s,L=i}}function Xr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var o=r.length-1;o===0?r=e.reactions=null:(r[n]=r[o],r.pop())}}r===null&&e.f&I&&(T===null||!T.includes(e))&&(U(e,pt),e.f&(ot|Ot)||(e.f^=Ot),Et(e,0))}function Et(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Xr(t,r[n])}function qt(t){var e=t.f;if(!(e&lt)){U(t,A);var r=p,n=L;p=t;try{e&Xt?qr(t):Fe(t),je(t),Le(t);var o=Ke(t);t.teardown=typeof o=="function"?o:null,t.version=Ue}catch(l){Ht(l,t,r,n||t.ctx)}finally{p=r}}}function We(){if(ut>1e3){ut=0;try{Sr()}catch(t){if(xt!==null)Ht(t,xt,null);else throw t}}ut++}function Je(t){var e=t.length;if(e!==0){We();var r=at;at=!0;try{for(var n=0;n<e;n++){var o=t[n];o.f&A||(o.f^=A);var l=[];Xe(o,l),Zr(l)}}finally{at=r}}}function Zr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(lt|P)))try{wt(n)&&(qt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Pe(n):n.fn=null))}catch(o){Ht(o,n,null,n.ctx)}}}function Qr(){if(yt=!1,ut>1001)return;const t=tt;tt=[],Je(t),yt||(ut=0,xt=null)}function Vt(t){Pt===Be&&(yt||(yt=!0,queueMicrotask(Qr))),xt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(nt|F)){if(!(r&A))return;e.f^=A}}tt.push(e)}function Xe(t,e){var r=t.first,n=[];t:for(;r!==null;){var o=r.f,l=(o&F)!==0,s=l&&(o&A)!==0,i=r.next;if(!s&&!(o&P))if(o&At){if(l)r.f^=A;else try{wt(r)&&qt(r)}catch(a){Ht(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else o&ye&&n.push(r);if(i===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var c=a.next;if(c!==null){r=c;continue t}a=a.parent}}r=i}for(var v=0;v<n.length;v++)u=n[v],e.push(u),Xe(u,e)}function Z(t){var e=Pt,r=tt;try{We();const o=[];Pt=Yr,tt=o,yt=!1,Je(r);var n=t==null?void 0:t();return Br(),(tt.length>0||o.length>0)&&Z(),ut=0,xt=null,n}finally{Pt=e,tt=r}}function R(t){var v;var e=t.f,r=(e&I)!==0;if(r&&e&lt){var n=Ie(t);return oe(t),n}if(x!==null){H!==null&&H.includes(t)&&Ar();var o=x.deps;T===null&&o!==null&&o[O]===t?O++:T===null?T=[t]:T.push(t),X!==null&&p!==null&&p.f&A&&!(p.f&F)&&X.includes(t)&&(U(p,W),Vt(p))}else if(r&&t.deps===null)for(var l=t,s=l.parent,i=l;s!==null;)if(s.f&I){var u=s;i=u,s=u.parent}else{var c=s;(v=c.deriveds)!=null&&v.includes(i)||(c.deriveds??(c.deriveds=[])).push(i);break}return r&&(l=t,wt(l)&&Me(l)),t.v}function tn(t){const e=x;try{return x=null,t()}finally{x=e}}const en=~(W|pt|A);function U(t,e){t.f=t.f&en|e}function Bt(t,e=!1,r){L={p:L,c:null,e:null,m:!1,s:t,x:null,l:null}}function Yt(t){const e=L;if(e!==null){t!==void 0&&(e.x=t);const s=e.e;if(s!==null){var r=p,n=x;e.e=null;try{for(var o=0;o<s.length;o++){var l=s[o];J(l.effect),ct(l.reaction),Pr(l.fn)}}finally{J(r),ct(n)}}L=e.p,e.m=!0}return t||{}}const Ze=new Set,ue=new Set;function Qe(t){for(var e=0;e<t.length;e++)Ze.add(t[e]);for(var r of ue)r(t)}function Ut(t){var _;var e=this,r=e.ownerDocument,n=t.type,o=((_=t.composedPath)==null?void 0:_.call(t))||[],l=o[0]||t.target,s=0,i=t.__root;if(i){var u=o.indexOf(i);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var c=o.indexOf(e);if(c===-1)return;u<=c&&(s=u)}if(l=o[s]||t.target,l!==e){Nt(t,"currentTarget",{configurable:!0,get(){return l||r}});var v=x,a=p;ct(null),J(null);try{for(var h,f=[];l!==null;){var d=l.assignedSlot||l.parentNode||l.host||null;try{var w=l["__"+n];if(w!==void 0&&!l.disabled)if(me(w)){var[S,...C]=w;S.apply(l,[t,...C])}else w.call(l,t)}catch(y){h?f.push(y):h=y}if(t.cancelBubble||d===e||d===null)break;l=d}if(h){for(let y of f)queueMicrotask(()=>{throw y});throw h}}finally{t.__root=e,delete t.currentTarget,ct(v),J(a)}}}function tr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function ft(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,o,l=!t.startsWith("<!>");return()=>{if(m)return ft(b,null),b;o===void 0&&(o=tr(l?t:"<!>"+t),r||(o=V(o)));var s=n?document.importNode(o,!0):o.cloneNode(!0);if(r){var i=V(s),u=s.lastChild;ft(i,u)}else ft(s,s);return s}}function rn(t,e,r="svg"){var n=!t.startsWith("<!>"),o=`<${r}>${n?t:"<!>"+t}</${r}>`,l;return()=>{if(m)return ft(b,null),b;if(!l){var s=tr(o),i=V(s);l=V(i)}var u=l.cloneNode(!0);return ft(u,u),u}}function rt(t,e){if(m){p.nodes_end=b,gt();return}t!==null&&t.before(e)}function nn(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 er(t,e){return rr(t,e)}function on(t,e){ne(),e.intro=e.intro??!1;const r=e.target,n=m,o=b;try{for(var l=V(r);l&&(l.nodeType!==8||l.data!==be);)l=B(l);if(!l)throw _t;q(!0),M(l),gt();const s=rr(t,{...e,anchor:l});if(b===null||b.nodeType!==8||b.data!==Wt)throw ee(),_t;return q(!1),s}catch(s){if(s===_t)return e.recover===!1&&Nr(),ne(),Oe(r),q(!1),er(t,e);throw s}finally{q(n),M(o)}}const vt=new Map;function rr(t,{target:e,anchor:r,props:n={},events:o,context:l,intro:s=!0}){ne();var i=new Set,u=a=>{for(var h=0;h<a.length;h++){var f=a[h];if(!i.has(f)){i.add(f);var d=br(f);e.addEventListener(f,Ut,{passive:d});var w=vt.get(f);w===void 0?(document.addEventListener(f,Ut,{passive:d}),vt.set(f,1)):vt.set(f,w+1)}}};u(Jt(Ze)),ue.add(u);var c=void 0,v=Fr(()=>{var a=r??e.appendChild(bt());return mt(()=>{if(l){Bt({});var h=L;h.c=l}o&&(n.$$events=o),m&&ft(a,null),c=t(a,n)||{},m&&(p.nodes_end=b),l&&Yt()}),()=>{var d;for(var h of i){e.removeEventListener(h,Ut);var f=vt.get(h);--f===0?(document.removeEventListener(h,Ut),vt.delete(h)):vt.set(h,f)}ue.delete(u),a!==r&&((d=a.parentNode)==null||d.removeChild(a))}});return ce.set(c,v),c}let ce=new WeakMap;function ln(t,e){const r=ce.get(t);return r?(ce.delete(t),r(e)):Promise.resolve()}function nr(t,e,r=!1){m&&gt();var n=t,o=null,l=null,s=pr,i=r?Qt:0,u=!1;const c=(a,h=!0)=>{u=!0,v(h,a)},v=(a,h)=>{if(s===(s=a))return;let f=!1;if(m){const d=n.data===Kt;!!s===d&&(n=re(),M(n),q(!1),f=!0)}s?(o?Lt(o):h&&(o=mt(()=>h(n))),l&&Mt(l,()=>{l=null})):(l?Lt(l):h&&(l=mt(()=>h(n))),o&&Mt(o,()=>{o=null})),f&&q(!0)};se(()=>{u=!1,e(c),u||v(null,null)},i),m&&(n=b)}function sn(t,e){return e}function an(t,e,r,n){for(var o=[],l=e.length,s=0;s<l;s++)ie(e[s].e,o,!0);var i=l>0&&o.length===0&&r!==null;if(i){var u=r.parentNode;Oe(u),u.append(r),n.clear(),Q(t,e[0].prev,e[l-1].next)}He(o,()=>{for(var c=0;c<l;c++){var v=e[c];i||(n.delete(v.k),Q(t,v.prev,v.next)),Y(v.e,!i)}})}function un(t,e,r,n,o,l=null){var s=t,i={flags:e,items:new Map,first:null};{var u=t;s=m?M(V(u)):u.appendChild(bt())}m&&gt();var c=null,v=!1;se(()=>{var a=r(),h=me(a)?a:a==null?[]:Jt(a),f=h.length;if(v&&f===0)return;v=f===0;let d=!1;if(m){var w=s.data===Kt;w!==(f===0)&&(s=re(),M(s),q(!1),d=!0)}if(m){for(var S=null,C,_=0;_<f;_++){if(b.nodeType===8&&b.data===Wt){s=b,d=!0,q(!1);break}var y=h[_],K=n(y,_);C=or(b,i,S,null,y,K,_,o,e),i.items.set(K,C),S=C}f>0&&M(re())}if(!m){var E=x;cn(h,i,s,o,e,(E.f&P)!==0,n)}l!==null&&(f===0?c?Lt(c):c=mt(()=>l(s)):c!==null&&Mt(c,()=>{c=null})),d&&q(!0)}),m&&(s=b)}function cn(t,e,r,n,o,l,s,i){var u=t.length,c=e.items,v=e.first,a=v,h,f=null,d=[],w=[],S,C,_,y;for(y=0;y<u;y+=1){if(S=t[y],C=s(S,y),_=c.get(C),_===void 0){var K=a?a.e.nodes_start:r;f=or(K,e,f,f===null?e.first:f.next,S,C,y,n,o),c.set(C,f),d=[],w=[],a=f.next;continue}if(fn(_,S,y),_.e.f&P&&Lt(_.e),_!==a){if(h!==void 0&&h.has(_)){if(d.length<w.length){var E=w[0],N;f=E.prev;var dt=d[0],de=d[d.length-1];for(N=0;N<d.length;N+=1)lr(d[N],E,r);for(N=0;N<w.length;N+=1)h.delete(w[N]);Q(e,dt.prev,de.next),Q(e,f,dt),Q(e,de,E),a=E,f=de,y-=1,d=[],w=[]}else h.delete(_),lr(_,a,r),Q(e,_.prev,_.next),Q(e,_,f===null?e.first:f.next),Q(e,f,_),f=_;continue}for(d=[],w=[];a!==null&&a.k!==C;)(l||!(a.e.f&P))&&(h??(h=new Set)).add(a),w.push(a),a=a.next;if(a===null)continue;_=a}d.push(_),f=_,a=_.next}if(a!==null||h!==void 0){for(var _e=h===void 0?[]:Jt(h);a!==null;)(l||!(a.e.f&P))&&_e.push(a),a=a.next;var An=_e.length;if(An>0){var On=u===0?r:null;an(e,_e,On,c)}}p.first=e.first&&e.first.e,p.last=f&&f.e}function fn(t,e,r,n){Te(t.v,e),t.i=r}function or(t,e,r,n,o,l,s,i,u,c){var v=(u&k)!==0,a=(u&vr)===0,h=v?a?te(o):Rt(o):o,f=u&Ct?Rt(s):s,d={i:f,v:h,k:l,a:null,e:null,prev:r,next:n};try{return d.e=mt(()=>i(t,h,f),m),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 lr(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,l=t.e.nodes_start;l!==n;){var s=B(l);o.before(l),l=s}}function Q(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 vn(t,e,r,n,o){var i;m&&gt();var l=(i=e.$$slots)==null?void 0:i[r],s=!1;l===!0&&(l=e.children,s=!0),l===void 0?o!==null&&o(t):l(t,s?()=>n:n)}function fe(t,e){Vr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,n.appendChild(o)}})}function Tt(t,e,r,n){var o=t.__attributes??(t.__attributes={});m&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[kr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&hn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var sr=new Map;function hn(t){var e=sr.get(t.nodeName);if(e)return e;sr.set(t.nodeName,e=[]);for(var r,n=t,o=Element.prototype;o!==n;){r=$r(n);for(var l in r)r[l].set&&e.push(l);n=mr(n)}return e}function dn(t){for(var e=p,r=p;e!==null&&!(e.f&(F|nt));)e=e.parent;try{return J(e),t()}finally{J(r)}}function ht(t,e,r,n){var K;var o=!ke,l=(r&hr)!==0,s=!1,i;i=t[e];var u=Er in t||we in t,c=((K=zt(t,e))==null?void 0:K.set)??(u&&l&&e in t?E=>t[e]=E:void 0),v=n,a=!0,h=!1,f=()=>(h=!0,a&&(a=!1,v=n),v);i===void 0&&n!==void 0&&(c&&o&&zr(),i=f(),c&&c(i));var d;if(d=()=>{var E=t[e];return E===void 0?f():(a=!0,h=!1,E)},c){var w=t.$$legacy;return function(E,N){return arguments.length>0?((!N||w||s)&&c(N?d():E),E):d()}}var S=!1,C=!1,_=te(i),y=dn(()=>Re(()=>{var E=d(),N=R(_);return S?(S=!1,C=!0,N):(C=!1,_.v=E)}));return function(E,N){if(arguments.length>0){const dt=N?R(y):E;return y.equals(dt)||(S=!0,Dt(_,dt),h&&v!==void 0&&(v=dt),tn(()=>R(y))),E}return R(y)}}function _n(t){return new pn(t)}class pn{constructor(e){pe(this,G);pe(this,D);var l;var r=new Map,n=(s,i)=>{var u=te(i);return r.set(s,u),u};const o=new Proxy({...e.props||{},$$events:{}},{get(s,i){return R(r.get(i)??n(i,Reflect.get(s,i)))},has(s,i){return i===we?!0:(R(r.get(i)??n(i,Reflect.get(s,i))),Reflect.has(s,i))},set(s,i,u){return Dt(r.get(i)??n(i,u),u),Reflect.set(s,i,u)}});ge(this,D,(e.hydrate?on:er)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Z(),ge(this,G,o.$$events);for(const s of Object.keys(z(this,D)))s==="$set"||s==="$destroy"||s==="$on"||Nt(this,s,{get(){return z(this,D)[s]},set(i){z(this,D)[s]=i},enumerable:!0});z(this,D).$set=s=>{Object.assign(o,s)},z(this,D).$destroy=()=>{ln(z(this,D))}}$set(e){z(this,D).$set(e)}$on(e,r){z(this,G)[e]=z(this,G)[e]||[];const n=(...o)=>r.call(this,...o);return z(this,G)[e].push(n),()=>{z(this,G)[e]=z(this,G)[e].filter(o=>o!==n)}}$destroy(){z(this,D).$destroy()}}G=new WeakMap,D=new WeakMap;let ir;typeof HTMLElement=="function"&&(ir=class extends HTMLElement{constructor(e,r,n){super();j(this,"$$ctor");j(this,"$$s");j(this,"$$c");j(this,"$$cn",!1);j(this,"$$d",{});j(this,"$$r",!1);j(this,"$$p_d",{});j(this,"$$l",{});j(this,"$$l_u",new Map);j(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 o=this.$$c.$on(e,r);this.$$l_u.set(r,o)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const o=this.$$l_u.get(r);o&&(o(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return l=>{const s=document.createElement("slot");o!=="default"&&(s.name=o),rt(l,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=gn(this);for(const o of this.$$s)o in n&&(o==="default"&&!this.$$d.children?(this.$$d.children=e(o),r.default=!0):r[o]=e(o));for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=Gt(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=_n({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=jr(()=>{Hr(()=>{var o;this.$$r=!0;for(const l of St(this.$$c)){if(!((o=this.$$p_d[l])!=null&&o.reflect))continue;this.$$d[l]=this.$$c[l];const s=Gt(l,this.$$d[l],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,s)}this.$$r=!1})});for(const o in this.$$l)for(const l of this.$$l[o]){const s=this.$$c.$on(o,l);this.$$l_u.set(l,s)}this.$$l={}}}attributeChangedCallback(e,r,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Gt(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$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 Gt(t,e,r,n){var l;const o=(l=r[t])==null?void 0:l.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function gn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function ve(t,e,r,n,o,l){let s=class extends ir{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return St(e).map(i=>(e[i].attribute||i).toLowerCase())}};return St(e).forEach(i=>{Nt(s.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Gt(i,u,e),this.$$d[i]=u;var c=this.$$c;if(c){var v=(a=zt(c,i))==null?void 0:a.get;v?c[i]=u:c.$set({[i]:u})}}})}),n.forEach(i=>{Nt(s.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=s,s}const bn=[{name:"Nos Haiku",url:"https://nos-haiku.vercel.app/antenna?content={text}",icon:"https://nos-haiku.vercel.app/favicon.png"},{name:"nostter",url:"https://nostter.app/post?content={text}",icon:"https://nostter.app/favicon.ico"},{name:"Lumilumi",url:"https://lumilumi.app/post?text={text}",icon:"https://lumilumi.app/favicon.ico"}];var $n=t=>t.stopPropagation(),mn=(t,e,r)=>e(R(r).url),yn=kt('<button class="item svelte-1sy5hzc"><img> <span class="item-name"> </span></button>'),xn=kt('<div class="overlay svelte-1sy5hzc"><div class="inner svelte-1sy5hzc"><button class="close-button svelte-1sy5hzc" aria-label="Close">✖</button> <h2 class="title svelte-1sy5hzc">Select Share Client</h2> <div class="list svelte-1sy5hzc"></div> <div class="footer svelte-1sy5hzc"><a target="_blank" referrerpolicy="no-referrer" href="https://tsukemonogit.github.io/nostr-share-component/" class="svelte-1sy5hzc">nostr-share-component</a></div></div></div>');const wn={hash:"svelte-1sy5hzc",code:`
2
+ /* オーバーレイ背景 */.overlay.svelte-1sy5hzc {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;z-index:50;}
3
3
 
4
- /* ダイアログ本体 */.inner.svelte-xie82o {display:flex;flex-direction:column;position:relative;background-color:var(--bg-color);padding:1rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
4
+ /* ダイアログ本体 */.inner.svelte-1sy5hzc {display:flex;flex-direction:column;position:relative;background-color:var(--bg-color);padding:1rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
5
5
 
6
- /* タイトル */.title.svelte-xie82o {margin:0.5em;font-size:1.25rem;font-weight:bold;text-align:center;color:var(--text-color-main); /* グレー700 */}
6
+ /* タイトル */.title.svelte-1sy5hzc {margin:0.5em;font-size:1.25rem;font-weight:bold;text-align:center;color:var(--text-color-main); /* グレー700 */}
7
7
 
8
- /* リスト */.list.svelte-xie82o {display:flex;flex-wrap:wrap;justify-content:center;gap:0.75rem; /* ゆったりした間隔 */}
8
+ /* リスト */.list.svelte-1sy5hzc {display:flex;flex-wrap:wrap;justify-content:center;gap:0.75rem; /* ゆったりした間隔 */}
9
9
 
10
- /* リストアイテム */.item.svelte-xie82o {color:var(--button2-text-color);display:flex;width:120px;justify-content:center;align-items:center;gap:0.5rem;padding:0.5rem 1rem;background-color:var(--button2-bg-color); /* グレー100 */border:1px solid var(--border-color); /* グレー300 */border-radius:8px;font-size:1rem;cursor:pointer;transition:background-color 0.2s ease,
11
- box-shadow 0.2s ease;}.item.svelte-xie82o:hover {background-color:var(--button2-hover-color); /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-xie82o:active {background-color:var(--button2-active-color); /* グレー300 */}
10
+ /* リストアイテム */.item.svelte-1sy5hzc {color:var(--button2-text-color);display:flex;min-width:120px;justify-content:center;align-items:center;gap:0.5rem;padding:0.5rem;background-color:var(--button2-bg-color); /* グレー100 */border:1px solid var(--border-color); /* グレー300 */border-radius:8px;font-size:1rem;cursor:pointer;transition:background-color 0.2s ease,
11
+ box-shadow 0.2s ease;}.item.svelte-1sy5hzc:hover {background-color:var(--button2-hover-color); /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-1sy5hzc:active {background-color:var(--button2-active-color); /* グレー300 */}
12
12
 
13
- /* バツボタン */.close-button.svelte-xie82o {position:absolute;right:12px;top:12px;width:36px;height:36px;display:flex;justify-content:center;align-items:center;background-color:var(--button2-bg-color); /* グレー200 */border:none;border-radius:50%;font-size:1.25rem;color:var(--button2-text-color); /* グレー700 */cursor:pointer;transition:background-color 0.2s ease,
14
- transform 0.1s ease;}.close-button.svelte-xie82o:hover {background-color:var(--button2-hover-color); /* グレー300 */}.close-button.svelte-xie82o:active {background-color:var(--button2-active-color); /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}.footer.svelte-xie82o {margin-top:1rem;text-align:center;font-size:0.75rem;border-top:1px solid var(--border-color); /* 線を追加 */padding-top:0.5rem; /* 線とコンテンツの間にスペースを追加 */}a.svelte-xie82o {font-weight:500;color:var(--button1-border-color);}a.svelte-xie82o:hover {color:var(--button2-text-color);}`};function pe(t,e){Ut(e,!0),he(t,kn);let r=et(e,"text",7,""),n=et(e,"handleClose",7);const o=c=>{r()===""&&r(`${document.title}
15
- ${window.location.href}`);const f=c.replace("{text}",encodeURIComponent(r()));console.log(f),window.open(f,"_blank","noreferrer"),n()()};var s=En();s.__click=function(...c){var f;(f=n())==null||f.apply(this,c)};var l=Mt(s);l.__click=[xn];var i=Mt(l);i.__click=function(...c){var f;(f=n())==null||f.apply(this,c)};var u=Lt(i,4);return cn(u,21,()=>$n,an,(c,f)=>{var a=wn();a.__click=[yn,o,f];var v=Mt(a);_t(v,"width",24);var d=Lt(v);mt(a),zt(()=>{_t(v,"src",I(f).icon),_t(v,"alt",I(f).name),on(d,` ${I(f).name??""}`)}),st(c,a)}),mt(u),Lr(2),mt(l),mt(s),st(t,s),Gt({get text(){return r()},set text(c=""){r(c),V()},get handleClose(){return n()},set handleClose(c){n(c),V()}})}er(["click"]),customElements.define("nostr-share-dialog",_e(pe,{text:{},handleClose:{}},[],[],!0));var Sn=nn(`<svg class="nostr-icon svelte-givlj7" version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" xml:space="preserve"><g><path class="st0 svelte-givlj7" 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
13
+ /* バツボタン */.close-button.svelte-1sy5hzc {position:absolute;right:12px;top:12px;width:36px;height:36px;display:flex;justify-content:center;align-items:center;background-color:var(--button2-bg-color); /* グレー200 */border:none;border-radius:50%;font-size:1.25rem;color:var(--button2-text-color); /* グレー700 */cursor:pointer;transition:background-color 0.2s ease,
14
+ transform 0.1s ease;}.close-button.svelte-1sy5hzc:hover {background-color:var(--button2-hover-color); /* グレー300 */}.close-button.svelte-1sy5hzc:active {background-color:var(--button2-active-color); /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}.footer.svelte-1sy5hzc {margin-top:1rem;text-align:center;font-size:0.75rem;border-top:1px solid var(--border-color); /* 線を追加 */padding-top:0.5rem; /* 線とコンテンツの間にスペースを追加 */}a.svelte-1sy5hzc {font-weight:500;color:var(--button1-border-color);}a.svelte-1sy5hzc:hover {color:var(--button2-text-color);}`};function he(t,e){Bt(e,!0),fe(t,wn);let r=ht(e,"text",7,""),n=ht(e,"handleClose",7);const o=c=>{r()===""&&r(`${document.title}
15
+ ${window.location.href}`);const v=c.replace("{text}",encodeURIComponent(r()));console.log(v),window.open(v,"_blank","noreferrer"),n()()};var l=xn();l.__click=function(...c){var v;(v=n())==null||v.apply(this,c)};var s=$t(l);s.__click=[$n];var i=$t(s);i.__click=function(...c){var v;(v=n())==null||v.apply(this,c)};var u=It(i,4);return un(u,21,()=>bn,sn,(c,v)=>{var a=yn();a.__click=[mn,o,v];var h=$t(a);Tt(h,"width",24);var f=It(h,2),d=$t(f,!0);st(f),st(a),le(()=>{Tt(h,"src",R(v).icon),Tt(h,"alt",R(v).name),nn(d,R(v).name)}),rt(c,a)}),st(u),Ir(2),st(s),st(l),rt(t,l),Yt({get text(){return r()},set text(c=""){r(c),Z()},get handleClose(){return n()},set handleClose(c){n(c),Z()}})}Qe(["click"]),customElements.define("nostr-share-dialog",ve(he,{text:{},handleClose:{}},[],[],!0));var En=rn(`<svg class="nostr-icon svelte-givlj7" version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" xml:space="preserve"><g><path class="st0 svelte-givlj7" 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
16
16
  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
17
17
  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
18
18
  c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"></path><circle class="st1 svelte-givlj7" cx="137.9" cy="99" r="12.1"></circle><path class="st1 svelte-givlj7" 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
@@ -27,19 +27,9 @@ ${window.location.href}`);const f=c.replace("{text}",encodeURIComponent(r()));co
27
27
  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
28
28
  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
29
29
  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
30
- s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg>`);const Tn={hash:"svelte-givlj7",code:`
31
- /* アイコン内部のSVG */.nostr-icon.svelte-givlj7 {margin:auto;display:flex;align-items:center;justify-content:center;}.st0.svelte-givlj7 {fill:none;}.st1.svelte-givlj7 {fill:var(--bg-color);}.st2.svelte-givlj7 {fill:var(--nostr-color);}`};function ge(t,e){Ut(e,!0),he(t,Tn);let r=et(e,"size",7,28);var n=Sn();return zt(()=>_t(n,"style",`enable-background:new 0 0 256 256; width: ${r()??""}px; height: ${r()??""}px;`)),st(t,n),Gt({get size(){return r()},set size(o=28){r(o),V()}})}_e(ge,{size:{}},[],[],!0);const Cn=(t,e)=>{Dt(e,!0)};var Nn=kt("<span>Nostr</span>"),An=kt("<!> <!>",1),On=kt("<button><!></button> <!>",1);const Rn={hash:"svelte-1swpyup",code:`:host {font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
32
- Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;display:flex;justify-content:center;align-items:center;--text-color-main: #2e2e2e;--button1-text-color: #662482;--button1-bg-color: #ececec;--button1-hover-color: #b1b1b1;--button1-border-color: #b9b9b9;--button2-text-color: rgb(73, 73, 73);--button2-bg-color: #f3f4f6;--button2-hover-color: #e5e7eb;--nostr-color: #662482;--bg-color: #ffffff;--border-color: #d1d5db;}
33
- @media (prefers-color-scheme: dark) {:host {display:flex;justify-content:center;align-items:center;--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button1-border-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
34
- }
35
- /* デフォルトのスタイルを無効にする?*/button.svelte-1swpyup {background:none;border:none;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;}
36
-
37
- /* ボタン全体の基本スタイル */[data-nostr-share="nostr-share-button"].svelte-1swpyup,
38
- [data-nostr-share="nostr-share-mini"].svelte-1swpyup {color:var(--button1-text-color);display:flex;align-items:center;justify-content:center;border:1px solid var(--button1-border-color);cursor:pointer;transition:all 0.2s ease-in-out;}[data-nostr-share="nostr-share-icon"].svelte-1swpyup {color:var(--button1-text-color);display:flex;align-items:center;justify-content:center;cursor:pointer;width:var(--icon-size);height:var(--icon-size);margin:auto;padding:4px;border-radius:50%;border:none;background-color:transparent;}
39
-
40
- /* ボタンスタイル */[data-nostr-share="nostr-share-button"].svelte-1swpyup {padding:6px 16px;margin:4px;font-weight:bold;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}[data-nostr-share="nostr-share-button"].svelte-1swpyup:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}[data-nostr-share="nostr-share-button"].svelte-1swpyup:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
41
-
42
- /* テキスト用スタイル */.nostrShare-text.svelte-1swpyup {margin-left:8px;font-size:medium;color:var(--button2-text-color);}[data-nostr-share="nostr-share-icon"].svelte-1swpyup:hover {background-color:var(--button1-hover-color); /* グレー */box-shadow:0 0 6px rgba(0, 0, 0, 0.1);transition:all 0.2s ease-in-out;}[data-nostr-share="nostr-share-icon"].svelte-1swpyup:active {background-color:#d1d5db;transform:scale(0.95);transition:all 0.2s ease-in-out;}
43
-
44
- /* miniスタイル */[data-nostr-share="nostr-share-mini"].svelte-1swpyup {padding:2px 6px;margin:2px;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}[data-nostr-share="nostr-share-mini"].svelte-1swpyup:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}[data-nostr-share="nostr-share-mini"].svelte-1swpyup:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
45
- /* テキスト用スタイル */.nostrShare-text-mini.svelte-1swpyup {margin-left:4px;font-size:small;font-weight:bold;color:var(--button2-text-color);}`};function cr(t,e){Ut(e,!0),he(t,Rn);let r=et(e,"data-text",7),n=et(e,"data-type",7,"default"),o=et(e,"icon-size",7,28),s=et(e,"class",7),l=et(e,"data-style",7),i=Ir(!1);const u=()=>{Dt(i,!1)},c=typeof o()=="string"?parseInt(o(),10):o();let f=le(()=>l()?"":n()==="icon"?"nostr-share-icon":n()==="mini"?"nostr-share-mini":"nostr-share-button");var a=On(),v=Ie(a);v.__click=[Cn,i];var d=Mt(v);dn(d,e,"default",{},b=>{var T=An(),_=Ie(T);{var w=N=>{ge(N,{size:24})},J=N=>{var rt=le(()=>n()==="icon"?c:28);ge(N,{get size(){return I(rt)}})};de(_,N=>{n()==="mini"?N(w):N(J,!1)})}var k=Lt(_,2);{var C=N=>{var rt=Nn();zt(()=>ar(rt,`${(n()==="mini"?"nostrShare-text-mini":"nostrShare-text")??""} svelte-1swpyup`)),st(N,rt)};de(k,N=>{n()!=="icon"&&N(C)})}st(b,T)}),mt(v);var h=Lt(v,2);{var E=b=>{pe(b,{handleClose:u,get text(){return r()}})};de(h,b=>{I(i)&&b(E)})}return zt(()=>{ar(v,`${s()??""} svelte-1swpyup`),_t(v,"data-nostr-share",I(f)),_t(v,"style",l()||"")}),st(t,a),Gt({get"data-text"(){return r()},set"data-text"(b){r(b),V()},get"data-type"(){return n()},set"data-type"(b="default"){n(b),V()},get"icon-size"(){return o()},set"icon-size"(b=28){o(b),V()},get class(){return s()},set class(b){s(b),V()},get"data-style"(){return l()},set"data-style"(b){l(b),V()}})}er(["click"]),customElements.define("nostr-share",_e(cr,{"data-text":{},"data-type":{},"icon-size":{},class:{},"data-style":{}},["default"],[],!0)),g.Dialog=pe,g.NostrShare=cr,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
30
+ s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg>`);const kn={hash:"svelte-givlj7",code:`
31
+ /* アイコン内部のSVG */.nostr-icon.svelte-givlj7 {margin:auto;display:flex;align-items:center;justify-content:center;}.st0.svelte-givlj7 {fill:none;}.st1.svelte-givlj7 {fill:var(--bg-color);}.st2.svelte-givlj7 {fill:var(--nostr-color);}`};function ar(t,e){Bt(e,!0),fe(t,kn);let r=ht(e,"size",7,28);var n=En();return le(()=>Tt(n,"style",`enable-background:new 0 0 256 256; width: ${r()??""}px; height: ${r()??""}px;`)),rt(t,n),Yt({get size(){return r()},set size(o=28){r(o),Z()}})}ve(ar,{size:{}},[],[],!0);const Tn=(t,e)=>{Dt(e,!0)};var Cn=kt('<span part="text" class="svelte-1h3gn4x">Nostr</span>'),Sn=kt("<!> <!>",1),Nn=kt('<button part="button" class="svelte-1h3gn4x"><!></button> <!>',1);const zn={hash:"svelte-1h3gn4x",code:`:host {font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
32
+ Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;display:flex;justify-content:center;align-items:center;--text-color-main: #2e2e2e;--button1-text-color: #662482;--button1-bg-color: #ececec;--button1-hover-color: #b1b1b1;--button1-active-color: #999999;--button1-border-color: #b9b9b9;--button2-text-color: rgb(73, 73, 73);--button2-bg-color: #f3f4f6;--button2-hover-color: #e5e7eb;--nostr-color: #662482;--bg-color: #ffffff;--border-color: #d1d5db;}
33
+ @media (prefers-color-scheme: dark) {:host {display:flex;justify-content:center;align-items:center;--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button1-active-color: #757575;--button1-border-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
34
+ }[part="button"].svelte-1h3gn4x {display:flex;align-items:center;justify-content:center;cursor:pointer;gap:0.5em;transition:all 0.1s ease-in-out;border-radius:8px;font-weight:bold;}[part="button"].svelte-1h3gn4x:active {transform:scale(0.98);}[data-nostr-share="default"].svelte-1h3gn4x {padding:6px 16px;background-color:var(--button1-bg-color);color:var(--button2-text-color);border:1px solid var(--button1-border-color);}[data-nostr-share="mini"].svelte-1h3gn4x {padding:2px 6px;background-color:var(--button1-bg-color);color:var(--button2-text-color);border:1px solid var(--button1-border-color);}[data-nostr-share="default"].svelte-1h3gn4x:hover,
35
+ [data-nostr-share="mini"].svelte-1h3gn4x:hover {background-color:var(--button1-hover-color);box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}[data-nostr-share="icon"].svelte-1h3gn4x {width:var(--icon-size);height:var(--icon-size);padding:2px;border-radius:50%;background-color:transparent;border:none;}[data-nostr-share="icon"].svelte-1h3gn4x:hover {background-color:var(--button1-hover-color);box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}[part="text"].svelte-1h3gn4x {font-size:medium;}[data-nostr-share="mini"].svelte-1h3gn4x [part="text"]:where(.svelte-1h3gn4x) {font-size:small;}`};function ur(t,e){Bt(e,!0),fe(t,zn);let r=ht(e,"data-text",7),n=ht(e,"data-type",7,"default"),o=ht(e,"icon-size",7,28),l=Rr(!1);const s=()=>{Dt(l,!1)},i=typeof o()=="string"?parseInt(o(),10):o();var u=Nn(),c=Ae(u);c.__click=[Tn,l];var v=$t(c);vn(v,e,"default",{},f=>{var d=Sn(),w=Ae(d),S=Re(()=>n()==="icon"?i:28);ar(w,{get size(){return R(S)}});var C=It(w,2);{var _=y=>{var K=Cn();rt(y,K)};nr(C,y=>{n()!=="icon"&&y(_)})}rt(f,d)}),st(c);var a=It(c,2);{var h=f=>{he(f,{handleClose:s,get text(){return r()}})};nr(a,f=>{R(l)&&f(h)})}return le(()=>Tt(c,"data-nostr-share",n())),rt(t,u),Yt({get"data-text"(){return r()},set"data-text"(f){r(f),Z()},get"data-type"(){return n()},set"data-type"(f="default"){n(f),Z()},get"icon-size"(){return o()},set"icon-size"(f=28){o(f),Z()}})}Qe(["click"]),customElements.define("nostr-share",ve(ur,{"data-text":{},"data-type":{},"icon-size":{}},["default"],[],!0)),g.Dialog=he,g.NostrShare=ur,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konemono/nostr-share-component",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "main": "dist/nostr-share-component.umd.js",
6
6
  "module": "dist/nostr-share-component.es.js",
@@ -40,4 +40,4 @@
40
40
  "typescript": "~5.7.2",
41
41
  "vite": "^6.0.5"
42
42
  }
43
- }
43
+ }