2024-04-18 20:46:41 -04:00
|
|
|
var AsciinemaPlayer=function(A){"use strict";const g={};const B=Symbol("solid-proxy"),I=Symbol("solid-track"),Q={equals:(A,g)=>A===g};let C=M;const E=1,e=2,i={owned:null,cleanups:null,context:null,owner:null};var t=null;let o=null,V=null,s=null,n=null,r=0;function a(A,g){const B=V,I=t,Q=0===A.length,C=Q?i:{owned:null,cleanups:null,context:null,owner:void 0===g?I:g},E=Q?A:()=>A((()=>h((()=>p(C)))));t=C,V=null;try{return f(E,!0)}finally{V=B,t=I}}function D(A,g){const B={value:A,observers:null,observerSlots:null,comparator:(g=g?Object.assign({},Q,g):Q).equals||void 0};return[d.bind(B),A=>("function"==typeof A&&(A=A(B.value)),N(B,A))]}function c(A,g,B){F(u(A,g,!1,E))}function w(A,g,B){B=B?Object.assign({},Q,B):Q;const I=u(A,g,!0,0);return I.observers=null,I.observerSlots=null,I.comparator=B.equals||void 0,F(I),d.bind(I)}function G(A){return f(A,!1)}function h(A){if(null===V)return A();const g=V;V=null;try{return A()}finally{V=g}}function y(A){!function(A,g,B){C=q;const I=u(A,g,!1,E);I.user=!0,n?n.push(I):F(I)}((()=>h(A)))}function l(A){return null===t||(null===t.cleanups?t.cleanups=[A]:t.cleanups.push(A)),A}function Y(){return V}function k(A){const g=w(A),B=w((()=>U(g())));return B.toArray=()=>{const A=B();return Array.isArray(A)?A:null!=A?[A]:[]},B}function d(){const A=o;if(this.sources&&(this.state||A))if(this.state===E||A)F(this);else{const A=s;s=null,f((()=>J(this)),!1),s=A}if(V){const A=this.observers?this.observers.length:0;V.sources?(V.sources.push(this),V.sourceSlots.push(A)):(V.sources=[this],V.sourceSlots=[A]),this.observers?(this.observers.push(V),this.observerSlots.push(V.sources.length-1)):(this.observers=[V],this.observerSlots=[V.sources.length-1])}return this.value}function N(A,g,B){let I=A.value;return A.comparator&&A.comparator(I,g)||(A.value=g,A.observers&&A.observers.length&&f((()=>{for(let g=0;g<A.observers.length;g+=1){const B=A.observers[g],I=o&&o.running;I&&o.disposed.has(B),(I&&!B.tState||!I&&!B.state)&&(B.pure?s.push(B):n.push(B),B.observers&&S(B)),I||(B.state=E)}if(s.length>1e6)throw s=[],new Error}),!1)),g}function F(A){if(!A.fn)return;p(A);const g=t,B=V,I=r;V=t=A,function(A,g,B){let I;try{I=A.fn(g)}catch(g){A.pure&&(A.state=E,A.owned&&A.owned.forEach(p),A.owned=null),L(g)}(!A.updatedAt||A.updatedAt<=B)&&(null!=A.updatedAt&&"observers"in A?N(A,I):A.value=I,A.updatedAt=B)}(A,A.value,I),V=B,t=g}function u(A,g,B,I=E,Q){const C={fn:A,state:I,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:g,owner:t,context:null,pure:B};return null===t||t!==i&&(t.owned?t.owned.push(C):t.owned=[C]),C}function R(A){const g=o;if(0===A.state||g)return;if(A.state===e||g)return J(A);if(A.suspense&&h(A.suspense.inFallback))return A.suspense.effects.push(A);const B=[A];for(;(A=A.owner)&&(!A.updatedAt||A.updatedAt<r);)(A.state||g)&&B.push(A);for(let I=B.length-1;I>=0;I--)if((A=B[I]).state===E||g)F(A);else if(A.state===e||g){const g=s;s=null,f((()=>J(A,B[0])),!1),s=g}}function f(A,g){if(s)return A();let B=!1;g||(s=[]),n?B=!0:n=[],r++;try{const g=A();return function(A){s&&(M(s),s=null);if(A)return;const g=n;n=null,g.length&&f((()=>C(g)),!1)}(B),g}catch(A){B||(n=null),s=null,L(A)}}function M(A){for(let g=0;g<A.length;g++)R(A[g])}function q(A){let B,I=0;for(B=0;B<A.length;B++){const g=A[B];g.user?A[I++]=g:R(g)}var Q;for(g.context&&(g.context=Q),B=0;B<I;B++)R(A[B])}function J(A,g){const B=o;A.state=0;for(let I=0;I<A.sources.length;I+=1){const Q=A.sources[I];Q.sources&&(Q.state===E||B?Q!==g&&R(Q):(Q.state===e||B)&&J(Q,g))}}function S(A){const g=o;for(let B=0;B<A.observers.length;B+=1){const I=A.observers[B];I.state&&!g||(I.state=e,I.pure?s.push(I):n.push(I),I.observers&&S(I))}}function p(A){let g;if(A.sources)for(;A.sources.length;){const g=A.sources.pop(),B=A.sourceSlots.pop(),I=g.observers;if(I&&I.length){const A=I.pop(),Q=g.observerSlots.pop();B<I.length&&(A.sourceSlots[Q]=B,I[B]=A,g.observerSlots[B]=Q)}}if(A.owned){for(g=0;g<A.owned.length;g++)p(A.owned[g]);A.owned=null}if(A.cleanups){for(g=0;g<A.cleanups.length;g++)A.cleanups[g]();A.cleanups=null}A.state=0,A.context=null}function L(A){throw A=function
|