soop-avatar 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -55,4 +55,5 @@ npm 패키지를 CDN으로 제공한 뒤 userscript의 `@require`로 불러옵
55
55
 
56
56
  // 사용이 끝난 경우 제거
57
57
  // avatars.destroy();
58
- })();
58
+ })();
59
+ ```
@@ -0,0 +1,11 @@
1
+ {
2
+ "virtual:solid-ssr-entry-client.tsx": {
3
+ "file": "assets/virtual_solid-ssr-entry-client-B47oZ3MP.js",
4
+ "name": "virtual_solid-ssr-entry-client",
5
+ "src": "virtual:solid-ssr-entry-client.tsx",
6
+ "isEntry": true,
7
+ "css": [
8
+ "assets/virtual_solid-ssr-entry-client-Gx1vRsIe.css"
9
+ ]
10
+ }
11
+ }
@@ -0,0 +1 @@
1
+ var e=class extends Error{source;constructor(e){let t=Error,n=t.stackTraceLimit;n!==void 0&&(t.stackTraceLimit=0),super(),n!==void 0&&(t.stackTraceLimit=n),this.source=e}},t=class extends Error{source;constructor(e,t){super(t instanceof Error?t.message:String(t),{cause:t}),this.source=e}};function n(e){return e instanceof t?e.cause:e}var r=1024,i=2048,a=4096,o=1024,s=4096,c={},l={};function u(e){return e===l?void 0:e}var d={},f=Symbol(`refresh`),p=new Set;function m(e){for(;e.tn;)e=e.tn;return e}function h(e,t){if(e=m(e),t=m(t),e===t)return e;t.tn=e;for(let n of t.Ae)e.Ae.add(n);return t.Ae.clear(),e.en[0].push(...t.en[0]),e.en[1].push(...t.en[1]),t.en[0].length=0,t.en[1].length=0,e}function g(e){let t=e.o?.Be;if(!t)return;let n=m(t);if(p.has(n))return n;e.o!==null&&(e.o.Be=void 0)}function _(e){if(v(e)&&e.o?.Et){let t=B(e).Et=ke(e.o?.Et);if(t.an!==!0)return t;e.o!==null&&(e.o.Et=null)}return g(e)?._e??e._e}function v(e){let t=e.o;return t!==null&&t.De!==void 0&&t.De!==c}function ee(e,t){let n=m(t),r=e.o?.Be;if(r){if(r.tn){B(e).Be=t,e.T|=o;return}let i=m(r);if(p.has(i)){i!==n&&!v(e)&&(n.rn&&m(n.rn)===i?(B(e).Be=t,e.T|=o):i.rn&&m(i.rn)===n||h(n,i));return}}B(e).Be=t,e.T|=o}var y=new Set,b={eE:Array(2e3).fill(void 0),tE:!1,xe:0,EE:0},x={eE:Array(2e3).fill(void 0),tE:!1,xe:0,EE:0};function te(e){e.ie&16?e.ie&=-12:(j(e,x),e.ie&=-4)}var S=0,C=null,w=!1,ne=!1,re=!1,ie=0,ae=new Set;function oe(e){let t=e.k;return y.size===0&&p.size===0&&e.Qt.length===0&&t.Ke.length===0&&t.m.length===0&&t.cn.size===0&&ae.size===0}function se(){if(ae.size!==0)for(let e of ae){if(e.u!==null){ae.delete(e);continue}e.Pe===c&&(e.o?.De===void 0||e.o?.De===c)&&(e.o?.t||(ae.delete(e),e.o?.ft?.()))}}function ce(){return{Te:S,yt:[],Ne:new Map,Ke:[],m:[],cn:new Set,oe:[],bt:{Lt:[[],[]],Qt:[]},an:!1,ln:new Set}}function le(e,t){t.an=e,e.oe.push(...t.oe);for(let n of p)n._e===t&&(n._e=e);t.Ke.length&&(e.Ke.push(...t.Ke),t.Ke.length=0),t.m.length&&(e.m.push(...t.m),t.m.length=0);for(let n of t.cn)e.cn.add(n);for(let[n,r]of t.Ne){let t=e.Ne.get(n);t||e.Ne.set(n,t=new Set);for(let e of r)t.add(e)}for(let n of t.ln)e.ln.add(n)}function T(){if(ne){de();return}w||(w=!0,!ie&&!O.sn&&queueMicrotask(Te))}function ue(e){if(ne)return;ne=!0;let t=`[REACTIVITY_HALTED]`;e===void 0?console.error(t):console.error(t,e)}function de(){re||(re=!0,console.error(`[REACTIVITY_HALTED]`))}var fe=0,pe=class{ve=null;Lt=[[],[]];Qt=[];Mt=0;created=S;addChild(e){this.Qt.push(e),e.ve=this}removeChild(e){let t=this.Qt.indexOf(e);t>=0&&(this.Qt.splice(t,1),e.ve=null)}notify(e,t,n,r){return this.ve?this.ve.notify(e,t,n,r):!1}run(e){if(this.Lt[e-1].length){let t=this.Lt[e-1];this.Lt[e-1]=[],Ee(t,e)}let t=this.Qt,n=++fe;for(let r=0;r<t.length;){let i=t[r];if(i.Mt!==n&&(i.Mt=n,i.run?.(e),t[r]!==i)){r=0;continue}r++}}enqueue(e,t){e&&(L?m(L).en[e-1].push(t):this.Lt[e-1].push(t)),T()}stashQueues(e){e.Lt[0].push(...this.Lt[0]),e.Lt[1].push(...this.Lt[1]),this.Lt=[[],[]];for(let t=0;t<this.Qt.length;t++){let n=this.Qt[t],r=e.Qt[t];r||(r={Lt:[[],[]],Qt:[]},e.Qt[t]=r),n.stashQueues(r)}}restoreQueues(e){this.Lt[0].push(...e.Lt[0]),this.Lt[1].push(...e.Lt[1]);for(let t=0;t<e.Qt.length;t++){let n=e.Qt[t],r=this.Qt[t];r&&r.restoreQueues(n)}}},E=class e extends pe{sn=!1;k=ce();static Ce;static Fe;static tt;static Vt=null;static G=null;static M=null;static h=null;static j=null;static Rt=null;static Gt=null;static Oe=null;static de=null;static ye=null;static un=null;static Pt=null;static Dt=null;static Ht=null;static Je=null;static p=null;static Bt=null;static wt=null;static vt=null;static fn=null;static En=null;static Tn=null;static dn=null;static Ft=null;static ht=null;static gt=null;static je=null;static $e=null;static ze=null;static In=null;flush(){if(!this.sn){if(C===null&&b.EE<b.xe&&this.Lt[0].length===0&&this.Lt[1].length===0&&this.Qt.length===0&&oe(this)){this.sn=!0;try{be()}finally{this.sn=!1}S++,w=b.EE>=b.xe||this.Lt[0].length!==0||this.Lt[1].length!==0||this.k.yt.length!==0;return}this.sn=!0;try{if(Ie(b,e.Ce),C){if(!Oe(C)){let t=C;Ie(x,this.k===t?te:e.Ce),this.k===t&&(we=this.k=ce()),p.size&&(e.dn(1),e.dn(2)),this.stashQueues(t.bt),S++,w=b.EE>=b.xe||this.k.yt.length>0,Ce(t.yt),C=null,xe(null,!0);return}let t=C,n=this.k;if(n!==t&&n.yt.push(...t.yt),this.restoreQueues(t.bt),y.delete(t),C=null,Ce(n.yt),xe(t),n===t){let e=ce();e.yt=n.yt,e.Ke=n.Ke,e.m=n.m,e.cn=n.cn,we=this.k=e}}else oe(this)?(be(),b.EE>=b.xe&&(Ie(b,e.Ce),be())):(y.size&&Ie(x,e.Ce),xe());S++,w=b.EE>=b.xe,p.size&&e.dn(1),this.run(1),p.size&&e.dn(2),this.run(2)}finally{this.sn=!1}}}notify(t,n,r,i){if(n&1){if(r&1){let n=i===void 0?t.o?._:i;if(n?.i)return!0;if(C&&n){let r=n.source,i=C.Ne.get(r);i||C.Ne.set(r,i=new Set);let a=i.size;i.add(t),i.size!==a&&(T(),e.wt?.(C))}}return!0}return!1}initTransition(e){if(e&&=ke(e),e&&e===C||!e&&C&&C.Te===S)return;if(!C)C=e??ce();else if(e){let t=C;le(e,t),y.delete(t),C=e}y.add(C),C.Te=S;let t=this.k;if(t!==C){for(let e=0;e<t.yt.length;e++){let n=t.yt[e];n._e=C,C.yt.push(n)}for(let e=0;e<t.Ke.length;e++){let n=t.Ke[e];n._e=C,C.Ke.push(n)}t.m.length&&C.m.push(...t.m);for(let e of t.cn)C.cn.add(e);if(t.ln.size){for(let e of t.ln)C.ln.add(e);t.ln.clear()}we=this.k=C}for(let e of p)e._e||=C}};function D(e){we.yt.push(e)}var me=!1,he=0;function ge(){he++}function _e(e,t=!1){e._t=he;let n=e.T,r=(n&1024?e.o?.Be:void 0)||L,o=!!(n&512)&&e.o?.Qe!==void 0,s=me;for(let n=e.u;n!==null;n=n.fe){let e=n.ae;if(s&&(e.ie&=~i),e.ie&4&&n.ll===e.Ze&&n!==e.Ye&&(e.ie|=a),o&&e.T&8){e.ie|=256;continue}t&&r?(e.ie|=128,ee(e,r)):t&&(e.ie|=128,e.o&&(e.o.Be=void 0)),A(e)}}function ve(e){let t=e;if(!t.Se){e.Pe!==c&&(e.be=e.Pe,e.Pe=c),e.T&256&&E.un(e);return}e.Pe!==c&&(e.be=e.Pe,e.Pe=c,e.Re&&e.Re!==3&&(e.Xe=!0)),t.Ie=!1,t.ie&=~r,t.S&1||(t.S&=-5),t.o!=null&&(t.o.qe!==null||t.o.We!==null)&&E.Fe(t,!1,!0),e.T&256&&E.un(e)}var ye=null;function be(){let e=we.yt;for(let t=0;t<e.length;t++)ve(e[t]);e.length=0,ye?.()}function xe(e=null,t=!1){let n=!t;n&&be(),!t&&O.Qt.length&&Se(O);let r=b.EE>=b.xe;if(r&&Ie(b,E.Ce),n){r&&be();let t=e??O.k;if(t.Ke.length&&E.fn(t.Ke),t.ln.size){for(let e of t.ln)e.ie&64||A(e);t.ln.clear(),T()}t.m.length&&(E.M(t.m),O.Qt.length&&Se(O)),t.cn.size&&E.Vt(t.cn,e),se(),p.size&&E.Tn(e)}}function Se(e){for(let t of e.Qt)t.se?.(),Se(t)}function Ce(e){for(let t=0;t<e.length;t++)e[t]._e=C}var O=new E,we=O.k;function Te(e){if(e){ie++;try{return e()}finally{try{Te()}finally{ie--}}}if(!O.sn&&!ne)for(;w||C;)O.flush()}function Ee(e,t){for(let n=0;n<e.length;n++)e[n](t)}function De(t,n){if(t.ie&96)return!1;if(t.o?.le?.has(n))return!0;for(let e=t.nt;e;e=e.it){let t=e.ut;for(;t;){if(t===n||t.lt===n)return!0;t=t.o?.It}}return!!(t.S&1&&t.o?._ instanceof e&&t.o?._.source===n)}function Oe(e){if(e.an)return!0;if(e.oe.length)return!1;let t=!0;for(let[n,r]of e.Ne){let i=!1;for(let e of r){if(De(e,n)){i=!0;break}r.delete(e)}if(!i)e.Ne.delete(n);else if(n.S&1&&n.o?._?.source===n){t=!1;break}}return t&&E.En?.(e)&&(t=!1),t&&(e.an=!0),t}function ke(e){for(;e.an&&typeof e.an==`object`;)e=e.an;return e}function Ae(e,t){let n=C;try{return C=ke(e),t()}finally{C=n}}function k(e){return e.ie&32?x:b}function A(e){if(e.Re===3){let t=e;t.Xe||(t.Xe=!0,t.C.enqueue(2,t.Ut));return}let t=k(e);t.xe>e.Le&&(t.xe=e.Le),Me(e,t)}function je(e,t){let n=(e.ve?.Ct?e.ve.Ot?.Le:e.ve?.Le)??-1;n>=e.Le&&(e.Le=n+1);let r=e.Le,i=t.eE[r];if(i===void 0)t.eE[r]=e;else{let t=i.st;t.ot=e,e.st=t,i.st=e}r>t.EE&&(t.EE=r)}function Me(e,t){let n=e.ie;n&1036||(n&1?e.ie=n&-4|10:(e.ie=n|8,t.tE&&!(n&2)&&(t.tE=!1)),n&16||je(e,t))}function Ne(e,t){let n=e.ie;n&1052||(e.ie=n|16,je(e,t))}function j(e,t){let n=e.ie;if(!(n&24))return;e.ie=n&-25;let r=e.Le;if(e.st===e)t.eE[r]=void 0;else{let n=e.ot,i=t.eE[r],a=n??i;e===i?t.eE[r]=n:e.st.ot=n,a.st=e.st}e.st=e,e.ot=void 0}function Pe(e){if(!e.tE){e.tE=!0;for(let t=0;t<=e.EE;t++)for(let n=e.eE[t];n!==void 0;n=n.ot)n.ie&8&&Fe(n)}}function Fe(e,t=2){let n=e.ie;if(!((n&3)>=t)){e.ie=n&-4|t;for(let t=e.u;t!==null;t=t.fe)Fe(t.ae,1);if(e.T&4096)for(let t=e.o.l;t!==null;t=t.ce)for(let e=t.u;e!==null;e=e.fe)Fe(e.ae,1)}}function Ie(e,t){for(e.tE=!1,e.xe=0;e.xe<=e.EE;e.xe++){let n=e.eE[e.xe];for(;n!==void 0;)n.ie&8?t(n):Le(n,e),n=e.eE[e.xe]}e.EE=0}function Le(e,t){j(e,t);let n=e.Le;for(let t=e.nt;t;t=t.it){let e=t.ut,r=e.lt||e;r.Se&&r.Le>=n&&(n=r.Le+1)}if(e.Le!==n){e.Le=n;for(let t=e.u;t!==null;t=t.fe)Ne(t.ae,k(t.ae))}}function Re(e){let t=e.ke;for(;t;){let e=t.ie;t.ie=e|32,e&24&&(j(t,e&32?x:b),e&8?Me(t,x):Ne(t,x)),Re(t),t=t.Ve}}function ze(e,t=!1,n){let r=e.ie;if(r&64)return;if(t){e.ie=r|64;let t=e;(t.o?.Ge||t.o?.ge)&&E.un(t)}t&&e.Se&&e.o!==null&&(e.o.Ee=null);let i=n?e.o?.qe??null:e.ke;for(;i;){let e=i.Ve,t=i;t.T&=-33,j(t,k(t)),Xe(t),ze(i,!0),i=e}if(n?e.o!==null&&(e.o.qe=null):(e.ke=null,e.Me=0),t&&!n&&!(r&32)&&e.ve!==null&&!(e.ve.ie&64)){let t=e.ct,n=e.Ve;t===null?e.ve.ke=n:t.Ve=n,n!==null&&(n.ct=t),e.ct=null}if(Be(e,n),t&&e.At){let t=e.At;e.At=void 0,t()}}function Be(e,t){let n=t?e.o?.We:e.he;if(n){if(Array.isArray(n))for(let e=0;e<n.length;e++){let t=n[e];t.call(t)}else n.call(n);t?e.o!==null&&(e.o.We=null):e.he=null}}function Ve(e,t){let n=e;for(;n.T&4&&n.ve;)n=n.ve;if(n.id!=null)return We(n.id,t?n.Me++:n.Me);throw Error(``)}function He(e){return Ve(e,!0)}function Ue(e,t,n){return e?.id??(t?n?.id:n?.id==null?void 0:He(n))}function We(e,t){let n=t.toString(36),r=n.length-1;return e+(r?String.fromCharCode(64+r):``)+n}function Ge(e){return I&&(I.he?Array.isArray(I.he)?I.he.push(e):I.he=[I.he,e]:I.he=e),e}function Ke(e=!0){ze(this,e)}function M(e){let t=I,n=e?.transparent??!1,r={id:Ue(e,n,t),T:n?4:0,Ct:!0,Ot:t?.Ct?t.Ot:t,ke:null,Ve:null,ct:null,he:null,C:t?.C??O,we:t?.we||d,Me:0,o:null,ve:t,dispose:Ke};if(t){let e=t.ke;e===null?t.ke=r:(r.Ve=e,e.ct=r,t.ke=r)}return r}function qe(e,t){let n=M(t);return G(n,()=>e(()=>n.dispose()))}function Je(e){let t=e.ut,n=e.it,r=e.fe,i=e.el;if(r===null?t.rt=i:r.el=i,i!==null)i.fe=r;else if(t.u=r,r===null){t.o?.ft?.();let e=t;e.Se&&e.T&32&&!(e.ie&32)&&!(e.S&1)&&Ze(e)}return n}function Ye(e){let t=e.Ye,n=t===null?e.nt:t.it;if(n!==null){do n=Je(n);while(n!==null);t===null?e.nt=null:t.it=null}}function Xe(e){let t=e.nt;if(t){do t=Je(t);while(t!==null);e.nt=null,e.Ye=null}}function Ze(e){j(e,k(e)),Xe(e),ze(e,!0)}function Qe(e,t,n=!1){let r=t.Ye;if(r!==null&&r.ut===e){r.me&&=n;return}let i=null,a=t.ie&4;if(a&&(i=r===null?t.nt:r.it,i!==null&&i.ut===e)){i.ll=t.Ze,t.Ye=i,i.me=n;return}let o=e.rt;if(o!==null&&o.ae===t&&(!a||o.ll===t.Ze)){a?o.me&&=n:o.me=n;return}let s=t.Ye=e.rt={ut:e,ae:t,it:i,el:o,fe:null,ll:t.Ze,me:n};r===null?t.nt=s:r.it=s,o===null?e.u=s:o.fe=s,ge()}function $e(e,t){return!e.o?.le?.has(t)&&((B(e).le??=new Set).add(t),!0)}function et(e,t){return e.o?.le?.delete(t)?(e.o?.le.size===0&&e.o!==null&&(e.o.le=void 0),!0):!1}function tt(e){e.o?.le?.clear(),e.o!==null&&(e.o.le=void 0)}function nt(e,t){B(e).ue=!0,t.source&&$e(e,t.source),e.S&2||rt(e,t.source,t)}function rt(t,n,r){if(!n){t.o!==null&&(t.o._=null);return}if(r instanceof e&&r.source===n){B(t)._=r;return}let i=t.o?._;(!(i instanceof e)||i.source!==n)&&(B(t)._=new e(n))}function N(e,t){for(let n=e.u;n!==null;n=n.fe)t(n.ae,n);for(let n=e.o?.l??null;n!==null;n=n.ce)for(let e=n.u;e!==null;e=e.fe)t(e.ae,e)}function it(e){e.Se&&e.T&32&&!e.u&&!(e.ie&32)&&!(e.S&1)&&Ze(e)}function at(e){let t,n=new Set,r=e=>{n.has(e)||(n.add(e),!e.u&&e.T&32&&(t??=[]).push(e),N(e,r))};if(N(e,r),t)for(let e of t)it(e)}function ot(e,t){let n=!1,r=new Set,i=e=>{r.has(e)||(r.add(e),e.o?._===t&&(A(e),n=!0),N(e,i))};N(e,i),n&&T()}function st(e){let t=!1,n,r=new Set,i=E.de,a=o=>{if(r.has(o)||!et(o,e))return;r.add(o),o.Te=S;let s=o.o?.le?.values().next().value,c=o.S&2;s?(c||rt(o,s),i!==null&&i(o)):(o.S&=-2,c||rt(o),i!==null&&i(o),o.o?.ue&&(A(o),t=!0),o.o!==null&&(o.o.ue=!1),!o.u&&o.T&32&&(n??=[]).push(o)),N(o,a)};if(N(e,a),n)for(let e of n)it(e);t&&T()}function ct(e){return typeof e==`object`&&!!e&&typeof e.then==`function`}function lt(t,n,r){let i=!1,a=!1;if(typeof n==`object`&&n&&H(()=>{i=n[Symbol.asyncIterator],a=!i&&ct(n)}),!a&&!i)return t.o!==null&&(t.o.Ee=null),t.Ie=!1,n;B(t).Ee=n;let o,s=()=>{let e=_(t);if(e&&t.S&4&&!ke(e).Ne.has(t)){t._e=null;return}O.initTransition(e)},l=r=>{if(t.o?.Ee!==n)return;let i=r instanceof e;if(i&&t.Ie){t.o!==null&&(t.o.Ee=null),nt(t,r),t.Te=S;return}s(),P(t,i?1:2,r),t.Te=S,i||at(t)},u=(e,i)=>{if(t.o?.Ee!==n||t.ie&130)return;s();let a=!!(t.S&4);Ye(t),ut(t);let o=g(t);if(o&&o.Ae.delete(t),r)r(e),a&&ut(t,!0);else if(t.o?.De!==void 0)t.Pe===c&&D(t),t.Pe=e,E.Oe!==null&&E.Oe(t,e),v(t)||_e(t),t.Te=S;else if(o){let n=t.Re,r=t.be,i=t.Ue;try{(!n&&a||!i||!i(e,r))&&(t.be=e,t.Te=S,E.Oe!==null&&E.Oe(t,e),_e(t,!0))}catch(e){P(t,2,e)}}else try{W(t,()=>e)}catch(e){P(t,2,e)}t.Pe===c&&(t.Ie=!1),st(t),T(),Te(),i?.()},d=()=>t.T&32&&!t.u&&!(t.S&1)?(Ze(t),!0):!1,f=(e,r)=>{let i=e[Symbol.asyncIterator](),a=!1,s=!1,c=!r,f=()=>{if(!s){s=!0;try{let e=i.return?.();ct(e)&&e.then(void 0,()=>{})}catch{}}};r?r(f):Ge(f);let p=()=>{d()||m()},m=()=>{let e,r,f=!1,h=!1,g=!0,_=i.next();if((ct(_)?_:{then:e=>void e(_)}).then(r=>{if(g&&c)e=r,f=!0,r.done&&(s=!0);else if(t.o?.Ee!==n)return;else r.done?(s=!0,a?(T(),Te()):u(void 0),d()):(a=!0,u(r.value,p))},e=>{g&&c?(r=e,h=!0):t.o?.Ee===n&&(s=!0,l(e),d())}),g=!1,h){if(s=!0,l(r),c)throw r;return!0}return f&&!e.done?(o=e.value,a=!0,m()):f&&e.done},h=m();return c=!1,a||h},p=null,m=(e,t)=>{let n=!1;if(typeof e==`object`&&e&&H(()=>{n=e[Symbol.asyncIterator]}),!n)return!1;let r=f(e,t);return t||(p=r),!0};if(a){let r=!1,i=!1,a,s=!0,c=e=>{t.he?Array.isArray(t.he)?t.he.push(e):t.he=[t.he,e]:t.he=e};if(n.then(e=>{s?(o=e,r=!0):t.o?.Ee===n&&!(t.ie&64)&&m(e,c)||(u(e),d())},e=>{s?(a=e,i=!0):(l(e),d())}),s=!1,i)throw l(a),a;if(r)m(o)||(t.Ie=!1);else{if(t.Ie)return t.be;throw O.initTransition(_(t)),new e(I)}}if(i&&m(n),p!==null){if(!p){if(t.Ie)return t.be;throw O.initTransition(_(t)),new e(I)}t.Ie=!1}return o}function ut(e,t=!1){e.o?.le&&tt(e),e.o?.ue&&e.o!==null&&(e.o.ue=!1),e.o!==null&&(e.o.pe=!1),e.S=t?0:e.S&4,e.o?._&&rt(e),(e.o?.Ge||e.o?.ge)&&E.de(e),e.o?.l&&e.T&2048&&E.ye!==null&&E.ye(e),e.o?.A&&e.o.A.call(e)}function P(n,r,i,a,o){r===2&&!(i instanceof t)&&!(i instanceof e)&&(i=new t(n,i));let s=r===1&&i instanceof e?i.source:void 0,c=s===n,l=r===1&&n.o?.De!==void 0&&!c,u=l&&v(n);a||(r===1&&s?($e(n,s),n.S=1|n.S&4,rt(n,s,i)):(tt(n),n.S=r|(r===2?0:n.S&4),B(n)._=i),E.de!==null&&E.de(n),n.o?.l&&n.T&2048&&E.ye!==null&&E.ye(n)),o&&!a&&ee(n,o);let d=a||u,f=a||l?void 0:o;if(n.o?.A){if(a&&r===1)return;d?n.o.A.call(n,r,i):n.o.A.call(n);return}N(n,(t,n)=>{if(t.Te=S,r===1&&s&&!t.o?.le?.has(s)||r!==1&&(t.o?._!==i||t.o?.le)){if(n.me&&r!==1&&!(i instanceof e)){A(t),T();return}!d&&!t._e&&D(t),P(t,r,i,d,f)}})}E.Ce=R,E.Fe=ze;var F=!1,dt=!1,ft=!1,pt=!1,I=null,L=null;function R(t,n=!1){ge();let r=t.Re;if(!n){if(t._e&&(!r||C)&&C!==t._e&&O.initTransition(t._e),j(t,k(t)),t.o!==null&&(t.o.Ee=null),t._e||r===3)ze(t);else if(t.ke!==null||t.he!==null){Re(t);let e=B(t);e.We=t.he,e.qe=t.ke,t.he=null,t.ke=null,t.Me=0}}let o=!!(t.ie&128),s=!!(t.T&128)&&t.o?.De!==c&&t.o?.De!==void 0,d=!!(t.S&4),f=t.S&2?t.o?._:void 0,p=(t.ie&i)!==0,m=t.Ie,h=I;I=t,t.Ye=null,t.Ze++,t.ie=4,t.Te=S;let g=t.Pe===c?t.be:t.Pe,_=t.Le,v=!1,ee=F,y=L;F=!0;let b=pt;if(pt=!1,o){let e=E.je(t,!0);e?L=e:e===!1&&(o=!1)}else if(C&&!n&&C.Ke.length){let e=E.je(t,!1);e&&(o=!0,L=e)}let x=r&&r!==2,te=dt;x&&(dt=!0);try{if(t.T&64)g=t.Se(g),t.o!==null&&(t.o.Ee=null),t.Ie=!1;else{let e=t.o?.Ee,n=t.Se(g),r=typeof n==`object`&&!!n,i=t.o?.Ee!==e;g=i||!r?n:lt(t,n),!i&&!r&&(t.o!==null&&(t.o.Ee=null),t.Ie=!1)}(t.S!==0||t.o!==null)&&ut(t,n),t.T&1024&&t.o?.Be&&E.ze(t)}catch(n){let r=n instanceof e;if(r&&t.Ie)nt(t,n);else{r&&L&&E.$e(t);let e=!1;r&&(B(t).ue=!0,E.Je!==null&&(e=E.Je(t,p))),P(t,r?1:2,n,void 0,r?t.o?.Be:void 0),e&&E.p(t)}}finally{F=ee,pt=b,x&&(dt=te),v=(t.ie&a)!==0,t.ie=0|(n?t.ie&256:0),I=h}if(!t.o?._){Ye(t);let e=s?u(t.o?.De):t.Pe===c?t.be:t.Pe,i=!1;try{i=!r&&d||!t.Ue||!t.Ue(e,g)}catch(e){P(t,2,e)}if(r&&i&&(t.Xe=!t.o?._,n||t.C.enqueue(r,t.et??=E.tt.bind(null,t))),!t.o?._){if(i){let e=s?t.o?.De:void 0;n||r&&(C!==t._e||C===null)||o?(t.be=g,s&&o&&(B(t).De=g===void 0?l:g,t.Pe=c)):(t.Pe=g,m&&(t.Ie=!0),(C||t._e)&&E.Oe!==null&&E.Oe(t,g)),t.u!==null&&(!s||o||t.o?.De!==e)&&_e(t,o||s)}else if(s)t.Pe===c&&D(t),t.Pe=g,m&&(t.Ie=!0);else if(t.Le!=_)for(let e=t.u;e!==null;e=e.fe)Ne(e.ae,k(e.ae))}f!==void 0&&!i&&!t.o?._&&ot(t,f)}L=y,(t.Pe!==c||t.o!==null&&(t.o.qe!==null||t.o.We!==null)||t.S&5)&&(!n||t.S&1)&&(!t._e||s)&&D(t),t._e&&r&&C!==t._e&&Ae(t._e,()=>R(t)),v&&(A(t),T())}function mt(e){if(!(e.ie&4)){if(e.ie&1)for(let t=e.nt;t;t=t.it){let n=t.ut,r=n.lt||n;if(r.Se&&mt(r),e.ie&2)break}(e.ie&130||e.o?._&&e.Te<S&&!e.o?.Ee)&&R(e),e.ie&=280}}function z(e,t){let n=t?.transparent??!1,r=typeof t==`object`&&!!t&&`loadingValue`in t,i={id:Ue(t,n,I),T:(n?4:0)|!!t?.ownedWrite|(!I||t?.lazy?32:0)|(t?.sync?64:0)|(t?.H?2:0)|0,Ue:t?.equals==null?vt:t.equals,he:null,C:I?.C??O,we:I?.we??d,Me:0,Se:e,be:r?t.loadingValue:void 0,Le:0,ot:void 0,st:null,nt:null,Ye:null,Ze:0,u:null,rt:null,ve:I,Ve:null,ct:null,ke:null,ie:t?.lazy?512:0,S:r?0:4,Te:S,Pe:c,_e:null,_t:-1,Ie:r,o:null};return t?.unobserved&&(B(i).ft=t.unobserved),_t(i,t),i}function B(e){return e.o??={De:void 0,Et:void 0,Be:void 0,Ge:void 0,ge:void 0,It:void 0,t:0,Ee:null,_:void 0,ue:void 0,le:void 0,A:void 0,pe:!1,l:null,ft:void 0,Qe:void 0,We:null,qe:null,Nt:void 0}}function ht(e,t,n,r,i,a){let o=a?.transparent??!1,s={id:Ue(a,o,I),T:(o?4:0)|!!a?.ownedWrite|(a?.sync?64:0)|0,Ue:!1,he:null,C:I?.C??O,we:I?.we??d,Me:0,Se:e,be:void 0,Le:0,ot:void 0,st:null,nt:null,Ye:null,Ze:0,u:null,rt:null,ve:I,Ve:null,ct:null,ke:null,ie:512,S:4,Te:S,Pe:c,_e:null,_t:-1,Ie:!1,Xe:!1,Tt:void 0,dt:t,St:n,At:void 0,Re:r,o:null};return i!==void 0&&(B(s).A=i),a?.unobserved&&(B(s).ft=a.unobserved),_t(s,gt),s}var gt={lazy:!0};function _t(e,t){e.st=e;let n=I?.Ct?I.Ot:I;if(I){let t=I.ke;t===null?I.ke=e:(e.Ve=t,t.ct=e,I.ke=e)}n&&(e.Le=n.Le+1),E.Rt!==null&&E.Rt(e),!t?.lazy&&R(e,!0)}function V(e,t,n=null){let r={Ue:t?.equals==null?vt:t.equals,T:+!!t?.ownedWrite|(t?.H?2:0),be:e,u:null,rt:null,Te:S,lt:n,ce:n?.o?.l||null,Pe:c,_e:null,_t:-1,o:null};return t?.unobserved&&(B(r).ft=t.unobserved),n&&(B(n).l=r,n.T|=s),r}function vt(e,t){return e===t}function H(e,t){if(E.Gt===null&&!F)return e();let n=F;F=!1;try{return E.Gt===null?e():E.Gt(e)}finally{F=n}}function yt(e,t){e.ie&512?(e.ie&=-513,R(e,!0)):e.ie&64?e.T&32&&R(e,!0):t&&mt(e)}function U(e){if(pt)return E.Pt(e);let t=I;t?.Ct&&(t=t.Ot);let n=e,r=e.lt||e;if(typeof n.Se==`function`&&yt(e,!1),!n.Se&&r===e&&e.o?.De===void 0&&e.o?.Qe===void 0&&C===null&&L===null)return t&&F&&Qe(e,t),!t||e.Pe===c||t.T&16?e.be:e.Pe;if(t&&F&&(Qe(e,t,ft),r.Se)){let n=k(e);r.Le>=n.xe&&(Fe(t),Pe(n),mt(r));let i=r.Le;i>=t.Le&&e.ve!==t&&(t.Le=i+1)}if(r.S&1){if(t&&!(dt&&r._e&&C!==r._e)){if(L===null||E.ht(r))throw!F&&e!==t&&Qe(e,t),r.o?._}else if(t&&r.S&4)throw!F&&e!==t&&Qe(e,t),r.o?._;else if(!t&&r.S&4)throw r.o?._}if(r.Se&&r.S&2){if(F&&r.Te<S)return R(r),U(e);throw r.o?._}if(e.o?.De!==void 0&&e.o?.De!==c)return u(e.o?.De);if(L!==null&&C!==null&&t!==null&&E.Ft(e,r,t))return e.be;let i=!t||L!==null&&E.gt(e,r,t)||e.Pe===c||t.T&16||dt&&e._e&&C!==e._e?e.be:e.Pe;return!t&&r===e&&typeof n.Se==`function`&&e.T&32&&!(r.S&1)&&!e.u&&Ze(e),i}function W(e,t){if(e._e&&C!==e._e&&O.initTransition(e._e),e.T&128)return E.vt(e,t);let n=e.Pe===c?e.be:e.Pe;if(typeof t==`function`&&(t=t(n)),!(e.S&4||!e.Ue||!e.Ue(n,t)))return t;let r=e.Pe!==c;return r||D(e),e.Pe=t,e.T&256&&E.Oe!==null&&E.Oe(e,t),e.Se!==void 0&&(e.Te=S),r&&e._t===he&&L===null?t:(_e(e),T(),t)}function bt(e){j(e,k(e)),!(e.ie&1024)&&e.Pe===c&&(D(e),T()),e.ie=e.ie&-4|r,e.kt=S}function xt(e,t){let n=W(e,t);return bt(e),n}function G(e,t){let n=I,r=F;I=e,F=!1;try{return t()}finally{I=n,F=r}}function St(e,t,n,r){let i=ht(e,t,n,r?.user?2:1,Ct,r);R(i,!0),!r?.defer&&(i.Re===2||r?.schedule?i.C.enqueue(i.Re,wt.bind(null,i)):wt(i))}function Ct(e,t){let r=e===void 0?this.S:e,i=t===void 0?this.o?._:t;if(r&2){if(this.C.notify(this,1,0),this.Re===2){this.S&2&&(this.Xe=!0,this.C.enqueue(this.Re,this.et??=wt.bind(null,this)));return}if(!this.C.notify(this,2,2))throw ue(n(i)),i}else this.Re===1&&this.C.notify(this,3,r,i)}function wt(e){if(!e.Xe||e.ie&64)return;if(e.S&2&&e.Re===2){let t=n(e.o?._);e.Tt=e.be,e.Xe=!1;try{e.St?e.St(t,()=>{let t=e.At;e.At=void 0,t?.()}):console.error(t)}catch(t){if(!e.C.notify(e,2,2))throw ue(t),t}return}let r=e.At;e.At=void 0;try{r?.(),e.At=e.dt(e.be,e.Tt)}catch(n){if(B(e)._=new t(e,n),e.S|=2,!e.C.notify(e,2,2))throw ue(n),n}finally{e.Tt=e.be,e.Xe=!1}}E.tt=wt;function K(e){let t=U.bind(null,e);return t[f]=e,t}function Tt(e,t){if(typeof e==`function`){let n=z(e,t);return n.T&=-33,[K(n),xt.bind(null,n)]}let n=V(e,t);return[K(n),W.bind(null,n)]}function Et(e,t){return K(z(e,t))}function Dt(e,t,n){St(e,t,void 0,n)}var Ot=Symbol(0);function kt(e,t,n){let r=typeof n?.keyed==`function`?n.keyed:void 0,i=t.length>1,a=t,o={jt:M(),Wt:0,xt:e,Kt:[],$t:a,qt:[],zt:[],Jt:r,Xt:r||n?.keyed===!1?[]:void 0,Yt:i&&n?.keyed!==!1?[]:void 0,Zt:n?.keyed===!1,ts:n?.fallback},s=z(jt.bind(o));return o.jt.Ot=s,s.T&=-33,K(s)}var At={ownedWrite:!0};function jt(){let e=this.xt()||[],t=e.length;return e[Ot],G(this.jt,()=>{let n,r,i,a,o=this.Xt?this.Zt?()=>(i[r]=V(e[r],At),this.$t(K(i[r]),r)):()=>(i[r]=V(e[r],At),a&&(a[r]=V(r,At)),this.$t(K(i[r]),a?K(a[r]):void 0)):this.Yt?()=>{let t=e[r];return a[r]=V(r,At),this.$t(t,K(a[r]))}:()=>{let t=e[r];return this.$t(t)};if(t===0)this.Wt!==0&&(this.jt.dispose(!1),this.zt=[],this.Kt=[],this.qt=[],this.Wt=0,this.Xt&&=[],this.Yt&&=[]),this.ts&&!this.qt[0]&&(this.zt[0]?.dispose(),this.qt[0]=G(this.zt[0]=M(),this.ts));else if(this.Wt===0){let s=Array(t),c=Array(t);i=this.Xt&&Array(t),a=this.Yt&&Array(t);try{for(r=0;r<t;r++)s[r]=G(c[r]=M(),o)}catch(e){for(n=0;n<=r;n++)c[n]?.dispose();throw e}this.zt[0]&&this.zt[0].dispose(),this.qt=s,this.zt=c,i&&(this.Xt=i),a&&(this.Yt=a),this.Kt=e.slice(0),this.Wt=t}else{let s,c,l,u,d,f,p,m,h;for(s=0,c=Math.min(this.Wt,t);s<c&&(this.Kt[s]===e[s]||this.Xt&&Mt(this.Jt,this.Kt[s],e[s]));s++)this.Xt&&W(this.Xt[s],e[s]);for(c=this.Wt-1,l=t-1;c>=s&&l>=s&&(this.Kt[c]===e[l]||this.Xt&&Mt(this.Jt,this.Kt[c],e[l]));c--,l--);if(s===t&&this.Wt===t){this.Kt=e.slice(0);return}let g=t-this.Wt,_=Array(t),v=Array(t);for(i=this.Xt?Array(t):void 0,a=this.Yt?Array(t):void 0,f=new Map,p=Array(l+1),r=l;r>=s;r--)u=e[r],d=this.Jt?this.Jt(u):u,n=f.get(d),p[r]=n===void 0?-1:n,f.set(d,r);for(n=s;n<=c;n++)u=this.Kt[n],d=this.Jt?this.Jt(u):u,r=f.get(d),r!==void 0&&r!==-1?(_[r]=this.qt[n],v[r]=this.zt[n],i&&(i[r]=this.Xt[n]),a&&(a[r]=this.Yt[n]),r=p[r],f.set(d,r)):(m??=[]).push(this.zt[n]);try{for(r=s;r<=l;r++)v[r]===void 0&&((h??=[]).push(v[r]=M()),_[r]=G(v[r],o))}catch(e){if(h)for(n=0;n<h.length;n++)h[n].dispose();throw e}for(n=0;n<s;n++)_[n]=this.qt[n],v[n]=this.zt[n],i&&(i[n]=this.Xt[n]),a&&(a[n]=this.Yt[n]);for(r=s;r<=l;r++)i&&W(i[r],e[r]),a&&W(a[r],r);for(r=l+1;r<t;r++)_[r]=this.qt[r-g],v[r]=this.zt[r-g],i&&(i[r]=this.Xt[r-g],W(i[r],e[r])),a&&(a[r]=this.Yt[r-g],g!==0&&W(a[r],r));if(this.qt=_,this.zt=v,i&&(this.Xt=i),a&&(this.Yt=a),this.Wt=t,this.Kt=e.slice(0),m)for(n=0;n<m.length;n++)m[n].dispose()}}),this.qt}function Mt(e,t,n){return!e||e(t)===e(n)}function Nt(e,t){let r=z(e,{lazy:!0});return B(r).A=(e,t)=>{let i=e===void 0?r.S:e,a=t===void 0?r.o?._:t;r.S&=~r.R;let o=r.C.notify(r,3,i,a),s=i&~r.R&3;if(s&&(r.S&=~s,r.o?._===a&&!(r.S&3)&&r.o!==null&&(r.o._=void 0)),!o&&i&2)throw ue(n(a)),a},r.R=t,r.T&=-33,R(r,!0),r}function Pt(e,t,n,r){let i=e.C;return i.addChild(e.C=n),Ge(()=>i.removeChild(e.C)),G(e,()=>{let e=z(t);return Nt(()=>Bt(U(e)),r)})}var Ft=Symbol(),It=class extends pe{ee;v=new Set;te;N=!0;I=V(!1,{ownedWrite:!0,H:!0});_;D=V(!1,{ownedWrite:!0,H:!0});W;L=!1;re;ne=Ft;constructor(e){super(),this.ee=e}run(e){if(!(!e||U(this.I)))return super.run(e)}notify(e,t,r,i){if(!(t&this.ee))return super.notify(e,t,r,i);if(this.L&&this.re){let e=H(()=>{try{return this.re()}catch{return Ft}});e!==this.ne&&(this.ne=e,this.L=!1,this.v.clear())}if(this.ee&1&&this.L)return super.notify(e,t,r,i);if(r&this.ee){this.N=!0;let t=i?.source||e.o?._?.source;if(t){let e=this.v.size===0;this.v.add(t),e&&W(this.I,!0),this.ee&2&&W(this._,n(t.o?._))}}return t&=~this.ee,!t||super.notify(e,t,r,i)}se(){for(let e of this.v)(e.ie&64||!e.o?.t&&!(e.S&this.ee)&&!(this.ee&2&&e.S&1))&&this.v.delete(e);if(!this.v.size&&(this.N=this.ee&1&&this.N&&!this.L&&this.te?!!(this.te.S&this.ee):!1,!this.N&&(W(this.I,!1),this.re)))try{this.ne=H(()=>this.re())}catch{}}};function Lt(t,n,r,i){let a=M(),o=new It(t);t===2&&(o._=V(void 0,{ownedWrite:!0,H:!0})),i&&(o.re=i);let s=o.te=Pt(a,n,o,t);return H(()=>{let n=!1;try{U(s)}catch(t){if(t instanceof e)n=!0;else throw t}o.N=n||!!(s.S&t)||s.o?._ instanceof e}),K(z(()=>{if(!U(o.I)){let e=U(s);if(!H(()=>U(o.I)))return o.L=!0,e}return r(o)},{H:!0}))}function Rt(e,t,n){return Lt(1,e,()=>t(),n?.on)}function zt(e,t){return Lt(2,e,e=>t(K(e._),()=>{for(let t of e.v)R(t);T()}))}function Bt(e,t){if(typeof e==`function`&&!e.length){if(t?.doNotUnwrap)return e;do e=e();while(typeof e==`function`&&!e.length)}if(!(t?.skipNonRendered&&(e==null||e===!0||e===!1||e===``))){if(Array.isArray(e)){let n=[];return Vt(e,n,t)?()=>{let e=[];return Vt(n,e,{...t,doNotUnwrap:!1}),e}:n}return e}}function Vt(t,n=[],r){let i=null,a=!1;for(let o=0;o<t.length;o++)try{let e=t[o];if(typeof e==`function`&&!e.length){if(r?.doNotUnwrap){n.push(e),a=!0;continue}do e=e();while(typeof e==`function`&&!e.length)}Array.isArray(e)?a=Vt(e,n,r):r?.skipNonRendered&&(e==null||e===!0||e===!1||e===``)||n.push(e)}catch(t){if(!(t instanceof e))throw t;i=t}if(i)throw i;return a}var Ht=!1,Ut={hydrating:!1,registry:void 0,done:!1},Wt=(...e)=>Et(...e),Gt=(...e)=>Tt(...e),Kt=(...e)=>zt(...e),qt=(...e)=>Dt(...e),Jt=(e,t,n)=>Rt(e,t,n);function q(e,t){return H(()=>e(t||{}))}var Yt=0;function Xt(){return Ut.hydrating?Ut.getNextContextId():`cl-${Yt++}`}var Zt=e=>`Stale read from <${e}>.`;function Qt(e){let t=`fallback`in e?{keyed:e.keyed,fallback:()=>e.fallback}:{keyed:e.keyed};return kt(()=>e.each,e.children,t)}function $t(e){let t=e.keyed,n=Et(()=>e.when,void 0),r=t?n:Et(n,{equals:(e,t)=>!e==!t,sync:!0});return Et(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?H(t?()=>a(i):()=>a(()=>{if(!H(r))throw Zt(`Show`);return n()}),Ht):a}return e.fallback},{sync:!0})}function en(e){return Kt(()=>e.children,(t,n)=>{let r=e.fallback;return typeof r==`function`&&r.length?r(t,n):r})}function tn(e){return Jt(()=>e.children,()=>e.fallback,`on`in e?{on:()=>e.on}:void 0)}var J=Symbol(`slot`),nn=Symbol(`host`),rn={transparent:!0,sync:!0};function Y(e,t,n){qt(e,t,n?{sync:!0,...n,transparent:!n.scope}:rn)}function an(e,t,n,r){let i=n.length,a=t.length,o=i,s=0,c=0,l=t[a-1],u=l[J],d=l.parentNode===e&&(!u||u===r)?l.nextSibling:r||null,f=null,p,m,h=t=>{if(!t)return!1;let n=t[J];return t.parentNode===e&&(!n||n===r)};for(;s<a||c<o;){if(t[s]===n[c]&&h(t[s])){s++,c++;continue}for(;t[a-1]===n[o-1]&&h(t[a-1]);)a--,o--;if(a===s){let t;if(o<i){if(c){let i=n[c-1],a=i[J];t=i.parentNode===e&&(!a||a===r)?i.nextSibling:d}else t=n[o-c]}else t=d;for(;c<o;){let i=n[c++];e.insertBefore(i,t),r&&(i[J]=r)}}else if(o===c)for(;s<a;){let n=t[s++];if(!f||!f.has(n)){let t=n[J];n.parentNode===e&&(!t||t===r)&&n.remove()}}else if((p=t[s])===n[o-1]&&n[c]===t[a-1]&&p.parentNode===e&&(!(m=p[J])||m===r)){if(r)do{let n=t[--a];if(e.insertBefore(n,p),n[J]=r,c++,s>=a-1||c>=o)break}while(t[s]===n[o-1]&&n[c]===t[a-1]);else do if(e.insertBefore(t[--a],p),c++,s>=a-1||c>=o)break;while(t[s]===n[o-1]&&n[c]===t[a-1])}else{if(!f){f=new Map;let e=c;for(;e<o;)f.set(n[e],e++)}let i=f.get(t[s]);if(i!=null){if(c<i&&i<o){let l=s,u=1,p;for(;++l<a&&l<o&&(p=f.get(t[l]))!=null&&p===i+u;)u++;if(u>i-c){let a=t[s],o=a[J],l=a.parentNode===e&&(!o||o===r)?a:d;for(;c<i;){let t=n[c++];e.insertBefore(t,l),r&&(t[J]=r)}}else{let i=t[s++],a=n[c++],o=i[J];i.parentNode===e&&(!o||o===r)?e.replaceChild(a,i):e.insertBefore(a,d),r&&(a[J]=r)}}else s++}else{let n=t[s++],i=n[J];n.parentNode===e&&(!i||i===r)&&n.remove()}}}}var on=`_$SOLID_EVENT_OWNER`,sn={},cn=new Set,X=new Map;function ln(e,t,n,r={}){let i;fn(t);try{qe(a=>{if(i=a,t===document){let t=e();Y(()=>Bt(t),()=>{})}else{let i=e();$(t,()=>i,t.firstChild?null:void 0,n,{...r.insertOptions,schedule:!0})}},{id:r.renderId}),Te()}catch(e){throw i&&i(),pn(t),e}return()=>{i(),pn(t),t.textContent=``}}function un(e,t,n){let r=document.createElement(`template`);return r.innerHTML=e,n===2?r.content.firstChild.firstChild:r.content.firstChild}function Z(e,t){let n;return t===1?r=>document.importNode(n||=un(e,r,t),!0):r=>(n||=un(e,r,t)).cloneNode(!0)}function dn(e){for(let t=0,n=e.length;t<n;t++){let n=e[t];cn.has(n)||(cn.add(n),X.forEach((e,t)=>gn(n,t,e)))}}function fn(e){let t=mn(e,e);t&&(t.roots=(t.roots||0)+1)}function pn(e){let t=X.get(e);t&&(t.roots>1?t.roots--:delete t.roots),hn(e,e)}function mn(e,t=e){if(!e||!t)return;let n=X.get(e);return n||X.set(e,n={owners:new Map,handlers:new Map}),n.owners.set(t,(n.owners.get(t)||0)+1),cn.forEach(t=>gn(t,e,n)),n}function hn(e,t=e){let n=X.get(e);if(!n)return;let r=n.owners.get(t);r>1?n.owners.set(t,r-1):n.owners.delete(t),!n.owners.size&&(n.handlers.forEach((t,n)=>e.removeEventListener(n,t)),X.delete(e))}function gn(e,t,n){if(n.handlers.has(e))return;let r=e=>Cn(e,t,n);n.handlers.set(e,r),t.addEventListener(e,r)}function _n(e,t){let n=e,r=0;for(;n;){if(t.owners.has(n))return{owner:n,distance:r};r++,n=n._$host||n.parentNode||n.host}}var vn=null;function yn(e){if(vn!==null)for(let t=0;t<vn.length;t++)vn[t](e);return e}function bn(e,t,n){Sn(e)||(n==null||n===!1?e.removeAttribute(t):e.setAttribute(t,n===!0?``:n),vn!==null&&(t===`href`||t===`action`)&&yn(e))}var xn={scope:!0},Q=null;function $(e,t,n,r,i){let a=n!==void 0,o=i&&i.host;if(a&&!r&&(r=[]),Q!==null&&(r=Q.claimInitial(e,a,r)),typeof t!=`function`&&(t=Tn(t,r,a,!0),typeof t!=`function`)){wn(e,t,r,n),o&&En(t,o);return}if(a&&r.length===0){let t=document.createTextNode(``);e.insertBefore(t,n),r=[t]}let s=r;Y(r=>{Q!==null&&(s=Q.reclaimRegion(s,e,n));let c=Tn(t(),s,a,!0);return typeof c==`function`?(Y(()=>(Q!==null&&(s=Q.reclaimRegion(s,e,n)),Tn(c,s,a)),t=>{s=wn(e,t,s,n),o&&En(s,o)},r!==void 0&&!(i&&i.schedule)?{...i,schedule:!0}:i),sn):c},t=>{t!==sn&&(s=wn(e,t,s,n),o&&En(s,o))},t.$s?i?{...i,scope:!0}:xn:i)}function Sn(e){if(!Ut.hydrating)return!1;if(!e||e.isConnected)return!0;let t=Ut.claimRoots;if(t){for(let n=0;n<t.length;n++)if(t[n].contains(e))return!0}return!1}function Cn(e,t,n){if(Q!==null&&Q.dedupEvent(e))return;let r=e[on],i;if(r){if(r===!0||r===t||!t.contains(r))return;i=r}let a=n&&(n.owners.size===1&&n.owners.has(t)?t:_n(e.target,n)?.owner);if(n&&!a||a&&a===i)return;e[on]=a||!0;let o=i||e.target,s=`$$${e.type}`,c=e.target,l=a||t||e.currentTarget,u=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),d=()=>{let t=o[s];if(t===void 0&&o.hasAttribute&&o.hasAttribute(`_bnd`)){let n=globalThis[Symbol.for(`solid.bnd`)];n&&(t=n.resolve(o,e.type))}if(t&&!o.disabled){let n=o[`${s}Data`];if(n===void 0?t.call(o,e):t.call(o,n,e),e.cancelBubble)return}return o.host&&typeof o.host!=`string`&&!o.host._$host&&o.contains(e.target)&&u(o.host),!0},f=()=>{for(;o&&d()&&o!==l&&o.parentNode!==l;)o=o._$host||o.parentNode||o.host};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return o||l||document}}),i)i===e.target&&(o=i._$host||i.parentNode||i.host),o&&o!==l&&f();else if(e.composedPath){let t=e.composedPath();if(t.length){u(t[0]);for(let e=0;e<t.length&&(o=t[e],d());e++){if(o._$host){o=o._$host,f();break}if(o===l||o.parentNode===l)break}}else f()}else f();u(c)}function wn(e,t,n,r){if(Q!==null&&Sn(e)){if(t&&t!==n){let e=Array.isArray(t);for(let r of e?t:[t])if(r&&r.nodeType){if(!Sn(r))return n}else if(e&&(typeof r==`string`||typeof r==`number`))return n}return t}if(t===n)return t;let i=typeof t,a=r!==void 0;if(i===`string`||i===`number`){let r=typeof n;r===`string`||r===`number`?e.firstChild.data=t:On(e,n)?e.textContent=t:(kn(e,n),e.insertBefore(document.createTextNode(t),e.firstChild))}else if(t===void 0)An(e,n,r);else if(t.nodeType)Array.isArray(n)?An(e,n,a?r:null,t):n&&n.nodeType?n.parentNode===e?e.replaceChild(t,n):e.appendChild(t):n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t),r&&(t[J]=r);else if(Array.isArray(t)){let i=n&&Array.isArray(n);for(let e=0,r=t.length;e<r;e++){let r=t[e],a=typeof r;if(a===`string`||a===`number`){let a=i?n[e]:void 0;a&&a.nodeType===3?(a.data!==``+r&&(a.data=r),t[e]=a):t[e]=document.createTextNode(r)}}t.length===0?An(e,n,r):i?n.length===0?Dn(e,t,r):an(e,n,t,r):(n&&An(e,n),Dn(e,t))}return t}function Tn(e,t,n,r){if(e=Bt(e,{skipNonRendered:!0,doNotUnwrap:r}),r&&typeof e==`function`)return e;if(n&&!Array.isArray(e)&&(e=[e??``]),Ut.hydrating&&Array.isArray(e))for(let n=0,r=e.length;n<r;n++){let r=e[n],i=t&&t[n],a=typeof r;(a===`string`||a===`number`)&&i&&i.nodeType===3&&(e[n]=i)}return e}function En(e,t){if(Array.isArray(e))for(let n=0,r=e.length;n<r;n++)En(e[n],t);else e&&e.nodeType&&e[nn]!==t&&(e[nn]=t,Object.defineProperty(e,"_$host",{get:t,configurable:!0}))}function Dn(e,t,n=null){for(let r=0,i=t.length;r<i;r++){let i=t[r];e.insertBefore(i,n),n&&(i[J]=n)}}function On(e,t){if(t==null)return!0;if(Array.isArray(t))return t.length?e.firstChild===t[0]&&e.lastChild===t[t.length-1]:e.firstChild===null;if(t===``)return e.firstChild===null;if(t.nodeType)return e.firstChild===t&&e.lastChild===t;let n=e.firstChild;return n!==null&&n.nodeType===3&&e.lastChild===n}function kn(e,t){if(Array.isArray(t))for(let n=0;n<t.length;n++){let r=t[n];r.parentNode===e&&r.remove()}else if(t.nodeType)t.parentNode===e&&t.remove();else{let t=e.firstChild;t&&t.nodeType===3&&t.remove()}}function An(e,t,n,r){if(n===void 0)return On(e,t)?e.textContent=``:kn(e,t);if(t.length){let i=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(r!==o){let t=o[J],s=o.parentNode===e&&(!t||t===n);r&&!i&&!a?s?e.replaceChild(r,o):e.insertBefore(r,n):s&&o.remove()}else i=!0}}else r&&e.insertBefore(r,n);r&&n&&(r[J]=n)}var jn=Z(`<span style=font-size:1.5em;text-align:center;position:fixed;left:0;bottom:55%;width:100%>`);function Mn(e){console.error(e.error());var t=jn();return $(t,`Error | Uncaught Client Exception`),t}function Nn(e){return q(en,{fallback:e=>q(Mn,{error:e}),get children(){return e.children}})}var Pn=class{#e;constructor(e,t){this.#e=new URL(e,t)}async fetchBody(){try{let e=await fetch(this.#e);return e.ok?await e.json():void 0}catch{return}}},Fn=class e{static#e={channel:`https://api-channel.sooplive.com`,profile:`https://stimg.sooplive.com`,preview:`https://liveimg.sooplive.com`};static station(t){let n=`/v1.1/channel/${t}/station`,r=e.#e.channel;return new Pn(n,r)}static broadcast(t){let n=`/v1.1/channel/${t}/home/section/broad`,r=e.#e.channel;return new Pn(n,r)}static profile(t){let[n,r]=[t,t.substring(0,2)],i=`/LOGO/${r}/${n}/${n}.webp`,a=e.#e.profile;return new URL(i,a)}static preview(t){let n=`/${t}`,r=e.#e.preview;return new URL(n,r)}},In=class e{id;profile;nickname;constructor(e){this.id=e.id,this.nickname=e.nickname,this.profile=Fn.profile(this.id)}async fetchBroadcast(){return Ln.create(this.id)}static async create(t){let n=await Fn.station(t).fetchBody();if(!n)return;let{userNick:r,broadStart:i,profileImage:a}=n.station;return new e({id:t,nickname:r})}},Ln=class e{id;preview;title;viewers;category;static async create(t){let n=await Fn.broadcast(t).fetchBody();if(!n||typeof n.broadNo!=`number`||!Number.isFinite(n.broadNo))return;let{broadNo:r,broadTitle:i,currentSumViewer:a,categoryName:o}=n;return new e({id:r.toString(),title:i,viewers:a,category:o})}constructor(e){this.id=e.id,this.title=e.title,this.viewers=e.viewers,this.category=e.category,this.preview=Fn.preview(this.id)}},Rn=Z(`<div class=avatar-preview-anchor>`),zn=Z(`<img class=avatar>`),Bn=Z(`<button class=avatar-more type=button>+`),Vn=Z(`<div class=avatar-overflow role=list>`),Hn=Z(`<section class=avatar-list aria-label="Avatar list"style=min-width:264px><div class=avatar-stack><!><!></div><!><!>`),Un=Z(`<div class=avatar-stack-item>`),Wn=Z(`<div class=avatar-overflow-item role=listitem>`),Gn=Z(`<img class=avatar-preview alt="Broadcast preview">`);function Kn(e){let t=Wt(async()=>{let t=await In.create(e.userId);return t?{user:t,broad:await t.fetchBroadcast()}:{user:void 0,broad:void 0}}),n=()=>t()?.user,r=()=>t()?.broad?.preview.href,i=()=>!!r();return q(en,{fallback:[],get children(){return q(tn,{fallback:[],get children(){var t=Rn();return t.addEventListener(`blur`,()=>e.onPreviewChange?.(void 0)),t.addEventListener(`focus`,()=>e.onPreviewChange?.(r())),t.addEventListener(`mouseleave`,()=>e.onPreviewChange?.(void 0)),t.addEventListener(`mouseenter`,()=>e.onPreviewChange?.(r())),$(t,q($t,{get when(){return n()},keyed:!0,children:t=>(()=>{var n=zn();return Y(()=>({e:t.profile.href,t:`${e.userId} profile`}),({e,t},r)=>{e!==r?.e&&bn(n,`src`,e),t!==r?.t&&bn(n,`alt`,t)}),n})()})),Y(()=>({e:!!i(),t:!i()}),({e,t:n},r)=>{e!==r?.e&&t.classList.toggle(`avatar-live`,e),n!==r?.t&&t.classList.toggle(`avatar-offline`,n)}),t}})}})}function qn(e){let[t,n]=Gt(!1),[r,i]=Gt(),a=`avatar-overflow-${Xt()}`,o=()=>typeof e.userIds==`function`?e.userIds():e.userIds,s=()=>{let t=typeof e.visibleCount==`function`?e.visibleCount():e.visibleCount;return Math.max(0,t??4)},c=()=>o().slice(0,s()),l=()=>o().slice(s());var u=Hn(),d=u.firstChild,f=d.firstChild,p=f.nextSibling,m=d.nextSibling,h=m.nextSibling;return $(d,q(Qt,{get each(){return c()},children:e=>(()=>{var t=Un();return $(t,q(Kn,{userId:e,onPreviewChange:i})),t})()}),f),$(d,q($t,{get when(){return l().length>0},get children(){var e=Bn();return e.firstChild,e.$$click=()=>n(e=>!e),bn(e,`aria-controls`,a),$(e,()=>l().length,null),Y(()=>t()?`true`:`false`,t=>{bn(e,`aria-expanded`,t)}),e}}),p),$(u,q($t,{get when(){return t()},get children(){var e=Vn();return bn(e,`id`,a),$(e,q(Qt,{get each(){return l()},children:e=>(()=>{var t=Wn();return $(t,q(Kn,{userId:e,onPreviewChange:i})),t})()})),e}}),m),$(u,q($t,{get when(){return r()},children:e=>(()=>{var t=Gn();return Y(()=>e(),e=>{bn(t,`src`,e)}),t})()}),h),u}dn([`click`]);var Jn=Z(`<header class=header>`),Yn=[`mawang0216`,`lilpa0309`,`b13246`,`tjrdbs999`,`mawang0216`,`lilpa0309`,`b13246`,`tjrdbs999`,`mawang0216`,`lilpa0309`,`b13246`,`tjrdbs999`,`mawang0216`,`lilpa0309`,`b13246`,`tjrdbs999`];function Xn(){var e=Jn();return $(e,q(qn,{userIds:Yn,visibleCount:4})),e}ln(()=>q(Nn,{get children(){return q(Xn,{})}}),document.body);
@@ -0,0 +1 @@
1
+ body{margin:0;font-family:system-ui,-apple-system,sans-serif}.avatar-preview-anchor{border-radius:50%;place-items:center;width:40px;height:40px;display:grid;position:relative}.avatar-preview-anchor.avatar-live{background:0 0;position:relative}.avatar-preview-anchor.avatar-live:before{content:"";background:linear-gradient(113.84deg,#0082ff 5.63%,#0a96ff 44.46%,#05bcff 57.4%,#00f0ff 75.9%,#04f0fc 78.67%,#10f1f5 81.44%,#24f4e8 84.22%,#40f7d7 87.92%,#64fbc1 90.69%,#82ffb0 92.54%);border-radius:50%;padding:2px;position:absolute;inset:0;-webkit-mask:radial-gradient(farthest-side,#0000 calc(100% - 2px),#000 0);mask:radial-gradient(farthest-side,#0000 calc(100% - 2px),#000 0)}.avatar{z-index:1;object-fit:cover;background:0 0;border-radius:50%;width:32px;height:32px;display:block;position:relative}.avatar-offline .avatar{filter:grayscale()}.avatar-preview{z-index:30;box-sizing:border-box;opacity:1;pointer-events:none;width:min(372px,100vw);max-width:372px;height:auto;transition:opacity .15s,transform .15s;position:absolute;inset:auto 0 calc(100% + .75rem) auto;transform:translateY(0)}.avatar-list .avatar-preview{aspect-ratio:16/9;object-fit:cover;height:auto}.avatar-preview-anchor:hover,.avatar-preview-anchor:focus-within{transition:transform .15s;transform:scale(1.08)}.avatar-list{width:100%;max-width:264px;position:relative}.avatar-stack{align-items:center;width:100%;min-height:40px;display:flex}.avatar-stack-item{flex:0 0 40px;height:40px;margin-right:-12px;transition:transform .15s;position:static}.avatar-stack-item:hover,.avatar-stack-item:focus-within{z-index:10}.avatar-more{z-index:11;color:#fff;cursor:pointer;width:40px;height:40px;font:inherit;background:#282c34;border:1px solid #fff9;border-radius:50%;flex:0 0 40px;margin-left:8px;font-size:.85rem;transition:background-color .15s,transform .15s;position:relative}.avatar-more:hover,.avatar-more:focus-visible{background:#3c4350;transform:translateY(-2px)}.avatar-more:focus-visible{outline-offset:3px;outline:2px solid #82ffb0}.avatar-overflow{z-index:20;box-sizing:border-box;background:#20242b;border:1px solid #fff3;border-radius:8px;grid-template-columns:repeat(auto-fit,minmax(40px,1fr));gap:12px;width:100%;max-height:200px;padding:12px;display:grid;position:absolute;top:52px;left:0;overflow:hidden auto}.avatar-overflow-item{place-items:center;width:100%;height:40px;display:grid;position:static}.avatar-overflow-item:hover,.avatar-overflow-item:focus-within{z-index:2}.header{color:#fff;text-align:center;background-color:#282c34;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;font-size:calc(10px + 2vmin);display:flex}.logo{pointer-events:none;height:40vmin;animation:20s linear infinite logo-spin}.increment{cursor:pointer;padding:.5rem 1.5rem;font-size:1rem}.link{color:#93c5fd;text-underline-offset:.2em;margin-top:1rem;font-weight:600;text-decoration-color:#38bdf8;text-decoration-thickness:.1em;transition:color .15s}.link:hover{color:#dbeafe}.link:focus-visible{outline-offset:4px;border-radius:.2rem;outline:3px solid #38bdf8}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
@@ -0,0 +1 @@
1
+ <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="icon" href="/favicon.ico"><title>Solid App</title><link rel="stylesheet" href="/assets/virtual_solid-ssr-entry-client-Gx1vRsIe.css"><script type="module" src="/assets/virtual_solid-ssr-entry-client-B47oZ3MP.js"></script></head><body></body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "soop-avatar",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "scripts": {
Binary file