Files
asciinema/assets/asciinema-player.min.js

2 lines
189 KiB
JavaScript
Raw Normal View History

var AsciinemaPlayer=function(A){"use strict";function g(A){return"number"==typeof A?A:"string"==typeof A?A.split(":").reverse().map(parseFloat).reduce(((A,g,I)=>A+g*Math.pow(60,I))):void 0}class I{log(){}debug(){}info(){}warn(){}error(){}}class B{constructor(A,g){this.logger=A,this.prefix=g}log(A){for(var g=arguments.length,I=new Array(g>1?g-1:0),B=1;B<g;B++)I[B-1]=arguments[B];this.logger.log(`${this.prefix}${A}`,...I)}debug(A){for(var g=arguments.length,I=new Array(g>1?g-1:0),B=1;B<g;B++)I[B-1]=arguments[B];this.logger.debug(`${this.prefix}${A}`,...I)}info(A){for(var g=arguments.length,I=new Array(g>1?g-1:0),B=1;B<g;B++)I[B-1]=arguments[B];this.logger.info(`${this.prefix}${A}`,...I)}warn(A){for(var g=arguments.length,I=new Array(g>1?g-1:0),B=1;B<g;B++)I[B-1]=arguments[B];this.logger.warn(`${this.prefix}${A}`,...I)}error(A){for(var g=arguments.length,I=new Array(g>1?g-1:0),B=1;B<g;B++)I[B-1]=arguments[B];this.logger.error(`${this.prefix}${A}`,...I)}}let Q;const C=new Array(128).fill(void 0);function E(A){return C[A]}C.push(void 0,null,!0,!1);let V=C.length;function e(A){const g=E(A);return function(A){A<132||(C[A]=V,V=A)}(A),g}const i="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&i.decode();let t=null;function o(){return null!==t&&0!==t.byteLength||(t=new Uint8Array(Q.memory.buffer)),t}function s(A,g){return A>>>=0,i.decode(o().subarray(A,A+g))}function n(A){V===C.length&&C.push(C.length+1);const g=V;return V=C[g],C[g]=A,g}function r(A){const g=typeof A;if("number"==g||"boolean"==g||null==A)return`${A}`;if("string"==g)return`"${A}"`;if("symbol"==g){const g=A.description;return null==g?"Symbol":`Symbol(${g})`}if("function"==g){const g=A.name;return"string"==typeof g&&g.length>0?`Function(${g})`:"Function"}if(Array.isArray(A)){const g=A.length;let I="[";g>0&&(I+=r(A[0]));for(let B=1;B<g;B++)I+=", "+r(A[B]);return I+="]",I}const I=/\[object ([^\]]+)\]/.exec(toString.call(A));let B;if(!(I.length>1))return toString.call(A);if(B=I[1],"Object"==B)try{return"Object("+JSON.stringify(A)+")"}catch(A){return"Object"}return A instanceof Error?`${A.name}: ${A.message}\n${A.stack}`:B}let a=0;const c="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},D="function"==typeof c.encodeInto?function(A,g){return c.encodeInto(A,g)}:function(A,g){const I=c.encode(A);return g.set(I),{read:A.length,written:I.length}};function w(A,g,I){if(void 0===I){const I=c.encode(A),B=g(I.length,1)>>>0;return o().subarray(B,B+I.length).set(I),a=I.length,B}let B=A.length,Q=g(B,1)>>>0;const C=o();let E=0;for(;E<B;E++){const g=A.charCodeAt(E);if(g>127)break;C[Q+E]=g}if(E!==B){0!==E&&(A=A.slice(E)),Q=I(Q,B,B=E+3*A.length,1)>>>0;const g=o().subarray(Q+E,Q+B);E+=D(A,g).written,Q=I(Q,B,E,1)>>>0}return a=E,Q}let h=null;function l(){return null!==h&&0!==h.byteLength||(h=new Int32Array(Q.memory.buffer)),h}let y=null;function k(A,g){return A>>>=0,(null!==y&&0!==y.byteLength||(y=new Uint32Array(Q.memory.buffer)),y).subarray(A/4,A/4+g)}const G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((A=>Q.__wbg_vt_free(A>>>0)));class F{static __wrap(A){A>>>=0;const g=Object.create(F.prototype);return g.__wbg_ptr=A,G.register(g,g.__wbg_ptr,g),g}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),A}free(){const A=this.__destroy_into_raw();Q.__wbg_vt_free(A)}feed(A){const g=w(A,Q.__wbindgen_malloc,Q.__wbindgen_realloc),I=a;return e(Q.vt_feed(this.__wbg_ptr,g,I))}resize(A,g){return e(Q.vt_resize(this.__wbg_ptr,A,g))}inspect(){let A,g;try{const C=Q.__wbindgen_add_to_stack_pointer(-16);Q.vt_inspect(C,this.__wbg_ptr);var I=l()[C/4+0],B=l()[C/4+1];return A=I,g=B,s(I,B)}finally{Q.__wbindgen_add_to_stack_pointer(16),Q.__wbindgen_free(A,g,1)}}getSize(){try{const B=Q.__wbindgen_add_to_stack_pointer(-16);Q.vt_getSize(B,this.__wbg_ptr);var A=l()[B/4+0],g=l()[B/4+1],I=k(A,g).slice();return Q.__wbindgen_free(A,4*g,4),I}finally{