mirror of
https://github.com/daylinmorgan/task.mk.git
synced 2024-11-09 19:13:14 -06:00
2 lines
143 KiB
JavaScript
2 lines
143 KiB
JavaScript
|
var AsciinemaPlayer=function(A){"use strict";function g(A,g,I,B,Q,C,E){try{var t=A[C](E),e=t.value}catch(A){return void I(A)}t.done?g(e):Promise.resolve(e).then(B,Q)}function I(A){return function(){var I=this,B=arguments;return new Promise((function(Q,C){var E=A.apply(I,B);function t(A){g(E,Q,C,t,e,"next",A)}function e(A){g(E,Q,C,t,e,"throw",A)}t(void 0)}))}}function B(A,g){if(!(A instanceof g))throw new TypeError("Cannot call a class as a function")}function Q(A,g){for(var I=0;I<g.length;I++){var B=g[I];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(A,B.key,B)}}function C(A,g,I){return g&&Q(A.prototype,g),I&&Q(A,I),A}var E={exports:{}};!function(A){var g=function(A){var g,I=Object.prototype,B=I.hasOwnProperty,Q="function"==typeof Symbol?Symbol:{},C=Q.iterator||"@@iterator",E=Q.asyncIterator||"@@asyncIterator",t=Q.toStringTag||"@@toStringTag";function e(A,g,I){return Object.defineProperty(A,g,{value:I,enumerable:!0,configurable:!0,writable:!0}),A[g]}try{e({},"")}catch(A){e=function(A,g,I){return A[g]=I}}function i(A,g,I,B){var Q=g&&g.prototype instanceof u?g:u,C=Object.create(Q.prototype),E=new M(B||[]);return C._invoke=function(A,g,I){var B=o;return function(Q,C){if(B===s)throw new Error("Generator is already running");if(B===a){if("throw"===Q)throw C;return p()}for(I.method=Q,I.arg=C;;){var E=I.delegate;if(E){var t=N(E,I);if(t){if(t===c)continue;return t}}if("next"===I.method)I.sent=I._sent=I.arg;else if("throw"===I.method){if(B===o)throw B=a,I.arg;I.dispatchException(I.arg)}else"return"===I.method&&I.abrupt("return",I.arg);B=s;var e=n(A,g,I);if("normal"===e.type){if(B=I.done?a:r,e.arg===c)continue;return{value:e.arg,done:I.done}}"throw"===e.type&&(B=a,I.method="throw",I.arg=e.arg)}}}(A,I,E),C}function n(A,g,I){try{return{type:"normal",arg:A.call(g,I)}}catch(A){return{type:"throw",arg:A}}}A.wrap=i;var o="suspendedStart",r="suspendedYield",s="executing",a="completed",c={};function u(){}function w(){}function D(){}var h={};e(h,C,(function(){return this}));var l=Object.getPrototypeOf,y=l&&l(l(R([])));y&&y!==I&&B.call(y,C)&&(h=y);var f=D.prototype=u.prototype=Object.create(h);function G(A){["next","throw","return"].forEach((function(g){e(A,g,(function(A){return this._invoke(g,A)}))}))}function k(A,g){function I(Q,C,E,t){var e=n(A[Q],A,C);if("throw"!==e.type){var i=e.arg,o=i.value;return o&&"object"==typeof o&&B.call(o,"__await")?g.resolve(o.__await).then((function(A){I("next",A,E,t)}),(function(A){I("throw",A,E,t)})):g.resolve(o).then((function(A){i.value=A,E(i)}),(function(A){return I("throw",A,E,t)}))}t(e.arg)}var Q;this._invoke=function(A,B){function C(){return new g((function(g,Q){I(A,B,g,Q)}))}return Q=Q?Q.then(C,C):C()}}function N(A,I){var B=A.iterator[I.method];if(B===g){if(I.delegate=null,"throw"===I.method){if(A.iterator.return&&(I.method="return",I.arg=g,N(A,I),"throw"===I.method))return c;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var Q=n(B,A.iterator,I.arg);if("throw"===Q.type)return I.method="throw",I.arg=Q.arg,I.delegate=null,c;var C=Q.arg;return C?C.done?(I[A.resultName]=C.value,I.next=A.nextLoc,"return"!==I.method&&(I.method="next",I.arg=g),I.delegate=null,c):C:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,c)}function d(A){var g={tryLoc:A[0]};1 in A&&(g.catchLoc=A[1]),2 in A&&(g.finallyLoc=A[2],g.afterLoc=A[3]),this.tryEntries.push(g)}function F(A){var g=A.completion||{};g.type="normal",delete g.arg,A.completion=g}function M(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(d,this),this.reset(!0)}function R(A){if(A){var I=A[C];if(I)return I.call(A);if("function"==typeof A.next)return A;if(!isNaN(A.length)){var Q=-1,E=function I(){for(;++Q<A.length;)if(B.call(A,Q))return I.value=A[Q],I.done=!1,I;return I.value=g,I.done=!0,I};return E.next=E}}return{next:p}}function p(){return{value:g,done:!0}}return w.prototype=D,e(f,"constructor",D),e(D,"constructor",w),w.displayName=e(D,t,"GeneratorFunction"),A.isGeneratorFunction=function(A){var g="function"==typeof A&&A.constr
|