text: !function(a){"use strict";function b(a){a.scripts&&a.scripts.length>0&&importScripts.apply(void 0,a.scripts),postMessage({type:"importScripts"})}function c(b){var c=a[b.codecClass],d=b.sn;if(j[d])throw Error("duplicated sn");j[d]={codec:new c(b.options),crcInput:"input"===b.crcType,crcOutput:"output"===b.crcType,crc:new g},postMessage({type:"newTask",sn:d})}function d(a){var b=a.sn,d=a.type,e=a.data,f=j[b];!f&&a.codecClass&&(c(a),f=j[b]);var g,h="append"===d,i=k();if(h)try{g=f.codec.append(e,function(a){postMessage({type:"progress",sn:b,loaded:a})})}catch(l){throw delete j[b],l}else delete j[b],g=f.codec.flush();var m=k()-i;i=k(),e&&f.crcInput&&f.crc.append(e),g&&f.crcOutput&&f.crc.append(g);var n=k()-i,o={type:d,sn:b,codecTime:m,crcTime:n},p=[];g&&(o.data=g,p.push(g.buffer)),h||!f.crcInput&&!f.crcOutput||(o.crc=f.crc.get()),postMessage(o,p)}function e(a,b,c){var d={type:a,sn:b,error:f(c)};postMessage(d)}function f(a){return{message:a.message,stack:a.stack}}function g(){this.crc=-1}function h(){}if(a.zWorkerInitialized)throw new Error("z-worker.js should be run only once");a.zWorkerInitialized=!0,addEventListener("message",function(a){var b=a.data,c=b.type,d=b.sn,f=i[c];if(f)try{f(b)}catch(g){e(c,d,g)}});var i={importScripts:b,newTask:c,append:d,flush:d},j={},k=a.performance?a.performance.now.bind(a.performance):Date.now;g.prototype.append=function(a){for(var b=0|this.crc,c=this.table,d=0,e=0|a.length;e>d;d++)b=b>>>8^c[255&(b^a[d])];this.crc=b},g.prototype.get=function(){return~this.crc},g.prototype.table=function(){var a,b,c,d=[];for(a=0;256>a;a++){for(c=a,b=0;8>b;b++)1&c?c=c>>>1^3988292384:c>>>=1;d[a]=c}return d}(),a.NOOP=h,h.prototype.append=function(a,b){return a},h.prototype.flush=function(){}}(this);