2025-05-27 18:30:47 +02:00
|
|
|
var AsciinemaPlayer=function(e){"use strict";class t{log(){}debug(){}info(){}warn(){}error(){}}const n=Symbol("solid-proxy"),r="function"==typeof Proxy,o=Symbol("solid-track"),s={equals:(e,t)=>e===t};let l=O;const i=1,a=2,c={owned:null,cleanups:null,context:null,owner:null};var u=null;let d=null,f=null,h=null,p=null,g=0;function v(e,t){const n=f,r=u,o=0===e.length,s=void 0===t?r:t,l=o?c:{owned:null,cleanups:null,context:s?s.context:null,owner:s},i=o?e:()=>e((()=>w((()=>j(l)))));u=l,f=null;try{return F(i,!0)}finally{f=n,u=r}}function m(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},s,t):s).equals||void 0};return[_.bind(n),e=>("function"==typeof e&&(e=e(n.value)),x(n,e))]}function y(e,t,n){S(P(e,t,!1,i))}function b(e,t,n){n=n?Object.assign({},s,n):s;const r=P(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,S(r),_.bind(r)}function k(e){return F(e,!1)}function w(e){if(null===f)return e();const t=f;f=null;try{return e()}finally{f=t}}function $(e){!function(e,t,n){l=T;const r=P(e,t,!1,i);n&&n.render||(r.user=!0),p?p.push(r):S(r)}((()=>w(e)))}function A(e){return null===u||(null===u.cleanups?u.cleanups=[e]:u.cleanups.push(e)),e}function C(){return f}function L(e){const t=b(e),n=b((()=>z(t())));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function _(){if(this.sources&&this.state)if(this.state===i)S(this);else{const e=h;h=null,F((()=>M(this)),!1),h=e}if(f){const e=this.observers?this.observers.length:0;f.sources?(f.sources.push(this),f.sourceSlots.push(e)):(f.sources=[this],f.sourceSlots=[e]),this.observers?(this.observers.push(f),this.observerSlots.push(f.sources.length-1)):(this.observers=[f],this.observerSlots=[f.sources.length-1])}return this.value}function x(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&F((()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=d&&d.running;r&&d.disposed.has(n),(r?n.tState:n.state)||(n.pure?h.push(n):p.push(n),n.observers&&H(n)),r||(n.state=i)}if(h.length>1e6)throw h=[],new Error}),!1)),t}function S(e){if(!e.fn)return;j(e);const t=g;!function(e,t,n){let r;const o=u,s=f;f=u=e;try{r=e.fn(t)}catch(t){return e.pure&&(e.state=i,e.owned&&e.owned.forEach(j),e.owned=null),e.updatedAt=n+1,N(t)}finally{f=s,u=o}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?x(e,r):e.value=r,e.updatedAt=n)}(e,e.value,t)}function P(e,t,n,r=i,o){const s={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:u,context:u?u.context:null,pure:n};return null===u||u!==c&&(u.owned?u.owned.push(s):u.owned=[s]),s}function E(e){if(0===e.state)return;if(e.state===a)return M(e);if(e.suspense&&w(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<g);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if((e=t[n]).state===i)S(e);else if(e.state===a){const n=h;h=null,F((()=>M(e,t[0])),!1),h=n}}function F(e,t){if(h)return e();let n=!1;t||(h=[]),p?n=!0:p=[],g++;try{const t=e();return function(e){h&&(O(h),h=null);if(e)return;const t=p;p=null,t.length&&F((()=>l(t)),!1)}(n),t}catch(e){n||(p=null),h=null,N(e)}}function O(e){for(let t=0;t<e.length;t++)E(e[t])}function T(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:E(r)}for(t=0;t<n;t++)E(e[t])}function M(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const e=r.state;e===i?r!==t&&(!r.updatedAt||r.updatedAt<g)&&E(r):e===a&&M(r,t)}}}function H(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=a,n.pure?h.push(n):p.push(n),n.observers&&H(n))}}function j(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)j(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)j(e.owned[t])
|