@konemono/nostr-share-component 0.0.17 → 0.1.0

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