$/.test(e.current())){r=/^([\S]+) (.*)/.exec(t.inTag),t.inTag=null,e=">"==e.current()&&function(e,t){for(var n=0;n","i"),o=new RegExp("","i");t.token=function(e,t){if(e.match(a,!1))return t.token=s,t.localState=t.localMode=null;t=t.localMode.token(e,t.localState);var n=e.current(),i=n.search(o);return-1e.length-n)break;(!i||a>i.index+i[0].length)&&(i=r),r=r.index+1}return i}function p(e,t,n){t=c(t,"g");var i=n.line,r=n.ch;for(n=e.firstLine();n<=i;i--,r=-1){var a=e.getLine(i);if(r=d(a,t,r<0?0:a.length-r))return{from:f(i,r.index),to:f(i,r.index+r[0].length),match:r}}}function h(e,t,n,i){if(e.length==t.length)return n;var r=0;for(t=n+Math.max(0,e.length-t.length);;){if(r==t)return r;var a=r+t>>1,o=i(e.slice(0,a)).length;if(o==n)return a;nr.cursorCoords(t,"window").top&&((p=n).style.opacity=.4)}))}var p=null;o=b(a=r),l=u,s=d,c=function(e,t){var n=h.keyName(e),i=r.getOption("extraKeys");"findNext"==(n=i&&i[n]||h.keyMap[r.getOption("keyMap")][n])||"findPrev"==n||"findPersistentNext"==n||"findPersistentPrev"==n?(h.e_stop(e),y(r,f(r),t),r.execCommand(n)):"find"!=n&&"findPersistent"!=n||(h.e_stop(e),d(t,e))},a.openDialog(o,s,{value:l,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){v(a)},onKeyDown:c}),n&&u&&(y(r,i,u),$(r,t))}else m(r,b(r),"Search for:",u,function(e){e&&!i.query&&r.operation(function(){y(r,i,e),i.posFrom=i.posTo=r.getCursor(),$(r,t)})})}function $(n,i,r){n.operation(function(){var e=f(n),t=g(n,e.query,i?e.posFrom:e.posTo);(t.find(i)||(t=g(n,e.query,i?h.Pos(n.lastLine()):h.Pos(n.firstLine(),0))).find(i))&&(n.setSelection(t.from(),t.to()),n.scrollIntoView({from:t.from(),to:t.to()},20),e.posFrom=t.from(),e.posTo=t.to(),r&&r(t.from(),t.to()))})}function v(t){t.operation(function(){var e=f(t);(e.lastQuery=e.query)&&(e.query=e.queryText=null,t.removeOverlay(e.overlay),e.annotate&&(e.annotate.clear(),e.annotate=null))})}function b(e){return''+e.phrase("Search:")+' '+e.phrase("(Use /re/ syntax for regexp search)")+""}function w(t,i,r){t.operation(function(){for(var e=g(t,i);e.findNext();)if("string"!=typeof i){var n=t.getRange(e.from(),e.to()).match(i);e.replace(r.replace(/\$(\d)/g,function(e,t){return n[t]}))}else e.replace(r)})}function r(p,e){if(!p.getOption("readOnly")){var t=p.getSelection()||f(p).lastQuery,n=''+(e?p.phrase("Replace all:"):p.phrase("Replace:"))+"";m(p,n+' '+p.phrase("(Use /re/ syntax for regexp search)")+"",n,t,function(d){d&&(d=o(d),m(p,''+p.phrase("With:")+' ',p.phrase("Replace with:"),"",function(l){if(l=i(l),e)w(p,d,l);else{v(p);var s=g(p,d,p.getCursor("from")),c=function(){var e,t,n,i,r,a,o=s.from();!(e=s.findNext())&&(s=g(p,d),!(e=s.findNext())||o&&s.from().line==o.line&&s.from().ch==o.ch)||(p.setSelection(s.from(),s.to()),p.scrollIntoView({from:s.from(),to:s.to()}),n=''+(a=t=p).phrase("Replace?")+" ",i=p.phrase("Replace?"),r=[function(){u(e)},c,function(){w(p,d,l)}],t.openConfirm?t.openConfirm(n,r):confirm(i)&&r[0]())},u=function(n){s.replace("string"==typeof d?l:l.replace(/\$(\d)/g,function(e,t){return n[t]})),c()};c()}}))})}}h.commands.find=function(e){v(e),n(e)},h.commands.findPersistent=function(e){v(e),n(e,!1,!0)},h.commands.findPersistentNext=function(e){n(e,!1,!0,!0)},h.commands.findPersistentPrev=function(e){n(e,!0,!0,!0)},h.commands.findNext=n,h.commands.findPrev=function(e){n(e,!0)},h.commands.clearSearch=v,h.commands.replace=r,h.commands.replaceAll=function(e){r(e,!0)}},"object"==typeof i&&"object"==typeof n?r(t(102),t(107),t(108)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],r):r(CodeMirror)},(L=L||{}).scope={},L.arrayIteratorImpl=function(e){var t=0;return function(){return t '+o.phrase("(Use line:column or scroll% syntax)")+"",i=n.phrase("Jump to line:"),r=l.line+1+":"+l.ch,a=function(e){var t;e&&((t=/^\s*([\+\-]?\d+)\s*:\s*(\d+)\s*$/.exec(e))?n.setCursor(s(n,t[1]),Number(t[2])):(t=/^\s*([\+\-]?\d+(\.\d+)?)%\s*/.exec(e))?(e=Math.round(n.lineCount()*Number(t[1])/100),/^[-+]/.test(t[1])&&(e=l.line+e+1),n.setCursor(e-1,l.ch)):(t=/^\s*:?\s*([\+\-]?\d+)\s*/.exec(e))&&n.setCursor(s(n,t[1]),l.ch))},e.openDialog?e.openDialog(t,a,{value:r,selectValueOnOpen:!0}):a(prompt(i,r))},e.keyMap.default["Alt-G"]="jumpToLine"},"object"==typeof i&&"object"==typeof n?r(t(102),t(108)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../dialog/dialog"],r):r(CodeMirror)},shadow$provide[111]=function(e,t,n,i){var g=this||{};try{!function(e){if("+"!==new e("q=%2B").get("q")||"+"!==new e({q:"+"}).get("q")||"+"!==new e([["q","+"]]).get("q")||"q=%0A"!==new e("q=\n").toString()||"q=+%26"!==new e({q:" &"}).toString()||"q=%25zx"!==new e({q:"%zx"}).toString())throw e;g.URLSearchParams=e}(URLSearchParams)}catch(e){!function(e,a,o){function t(e){var t=d(null);switch(p(this,"_ungap",{value:t}),!0){case!e:break;case"string"==typeof e:"?"===e.charAt(0)&&(e=e.slice(1));for(var n=0,i=(e=e.split("&")).length;n=this.size;)e=r.concat(this._buffered),this._bufferedBytes-=this.size,this.push(e.slice(0,this.size)),this._buffered=[e.slice(this.size,e.length)];n()},e.prototype._flush=function(){if(this._bufferedBytes&&this._zeroPadding){var e=r.alloc(this.size-this._bufferedBytes);this._buffered.push(e),this.push(r.concat(this._buffered)),this._buffered=null}else this._bufferedBytes&&(this.push(r.concat(this._buffered)),this._buffered=null);this.push(null)},n.exports=e},shadow$provide[120]=function(e,t,n,i){n.exports=function(e){return Math.max(16384,1<this._size&&(t=this._size),e===this._size?(this.destroy(),this.push(null)):(this.reader.readAsArrayBuffer(this._file.slice(e,t)),this._offset=t)}else this.once("_ready",this._read.bind(this))},e.prototype.destroy=function(){if(this._file=null,this.reader){this.reader.onload=null,this.reader.onerror=null;try{this.reader.abort()}catch(e){}}this.reader=null},n.exports=e},shadow$provide[124]=function(e,t,n,i){function r(e){return a.existsSync(e)&&a.statSync(e).isFile()}var a=t(27);n.exports=function(e,n){if(!n)return r(e);a.stat(e,function(e,t){return e?n(e):n(null,t.isFile())})},n.exports.sync=r},shadow$provide[125]=function(e,t,n,i){i.re=function(){throw Error("`junk.re` was renamed to `junk.regex`")},i.regex=/^npm-debug\.log$|^\..*\.swp$|^\.DS_Store$|^\.AppleDouble$|^\.LSOverride$|^Icon\r$|^\._.*|^\.Spotlight-V100(?:$|\/)|\.Trashes|^__MACOSX$|~$|^Thumbs\.db$|^ehthumbs\.db$|^Desktop\.ini$|@eaDir$/,i.is=function(e){return i.regex.test(e)},i.not=function(e){return!i.is(e)},i.default=n.exports},shadow$provide[126]=function(e,t,n,i){function r(e){return o(e,{objectMode:!0,highWaterMark:16})}function a(e){return o(e)}function o(e,t){return!e||"function"==typeof e||e._readableState?e:(t=new s.Readable(t).wrap(e),e.destroy&&(t.destroy=e.destroy.bind(e)),t)}function l(e,t){var n=s.Readable.call(this,t)||this;return n.destroyed=!1,n._drained=!1,n._forwarding=!1,n._current=null,n._toStreams2=t&&t.objectMode?r:a,"function"==typeof e?n._queue=e:(n._queue=e.map(n._toStreams2),n._queue.forEach(function(e){"function"!=typeof e&&n._attachErrorListener(e)})),n._next(),n}var s=t(37);L.inherits(l,s.Readable),l.prototype._read=function(){this._drained=!0,this._forward()},l.prototype._forward=function(){if(!this._forwarding&&this._drained&&this._current){this._forwarding=!0;for(var e;null!==(e=this._current.read())&&this._drained;)this._drained=this.push(e);this._forwarding=!1}},l.prototype.destroy=function(e){this.destroyed||(this.destroyed=!0,this._current&&this._current.destroy&&this._current.destroy(),"function"!=typeof this._queue&&this._queue.forEach(function(e){e.destroy&&e.destroy()}),e&&this.emit("error",e),this.emit("close"))},l.prototype._next=function(){var n=this;if(this._current=null,"function"==typeof this._queue)this._queue(function(e,t){if(e)return n.destroy(e);t=n._toStreams2(t),n._attachErrorListener(t),n._gotNextStream(t)});else{var e=this._queue.shift();"function"==typeof e&&(e=this._toStreams2(e()),this._attachErrorListener(e)),this._gotNextStream(e)}},l.prototype._gotNextStream=function(e){var t=this;if(e){this._current=e,this._forward();function n(){t._forward()}function i(){e._readableState.ended||t.destroy()}var r=function(){t._current=null,e.removeListener("readable",n),e.removeListener("end",r),e.removeListener("close",i),t._next()};e.on("readable",n),e.once("end",r),e.once("close",i)}else this.push(null),this.destroy()},l.prototype._attachErrorListener=function(t){var n=this;if(t){var i=function(e){t.removeListener("error",i),n.destroy(e)};t.once("error",i)}},l.obj=function(e){return new l(e,{objectMode:!0,highWaterMark:16})},n.exports=l},shadow$provide[127]=function(e,t,n,i){n.exports=function e(r,t){function n(){for(var e=Array(arguments.length),t=0;t>2),r=new Uint8Array(i.buffer),a=e%4,o=e-a;switch(a){case 0:r[3+o]=0;case 1:r[2+o]=0;case 2:r[1+o]=0;case 3:r[0+o]=0}for(r=1+(e>>2);r>2]|=128<<24-(e%4<<3),i[14+(2+(e>>2)&-16)]=t/536870912|0,i[15+(2+(e>>2)&-16)]=t<<3,n},c.prototype._write=function(e,t,n,i){s(e,this._h8,this._h32,t,n,i||0)},c.prototype._coreCall=function(e,t,n,i,r){var a=n;this._write(e,t,n),r&&(a=this._padChunk(n,i)),this._core.hash(a,this._padMaxChunkLen)},c.prototype.rawDigest=function(e){var t=e.byteLength||e.length||e.size||0;this._initState(this._heap,this._padMaxChunkLen);var n,i=this._maxChunkLen;for(n=0;n+i>2]|0;var a=m[t+324>>2]|0;var o=m[t+328>>2]|0;var l=m[t+332>>2]|0;var s=m[t+336>>2]|0;for(n=0;(n|0)<(e|0);n=n+64|0){var c=r;var u=a;var d=o;var p=l;var h=s;for(i=0;64>(i|0);i=i+4|0){var f=m[n+i>>2]|0;var g=((r<<5|r>>>27)+(a&o|~a&l)|0)+((f+s|0)+1518500249|0)|0;s=l;l=o;o=a<<30|a>>>2;a=r;r=g;m[e+i>>2]=f}for(i=e+64|0;(i|0)<(e+80|0);i=i+4|0)f=(m[i-12>>2]^m[i-32>>2]^m[i-56>>2]^m[i-64>>2])<<1|(m[i-12>>2]^m[i-32>>2]^m[i-56>>2]^m[i-64>>2])>>>31,g=((r<<5|r>>>27)+(a&o|~a&l)|0)+((f+s|0)+1518500249|0)|0,s=l,l=o,o=a<<30|a>>>2,a=r,r=g,m[i>>2]=f;for(i=e+80|0;(i|0)<(e+160|0);i=i+4|0)f=(m[i-12>>2]^m[i-32>>2]^m[i-56>>2]^m[i-64>>2])<<1|(m[i-12>>2]^m[i-32>>2]^m[i-56>>2]^m[i-64>>2])>>>31,g=((r<<5|r>>>27)+(a^o^l)|0)+((f+s|0)+1859775393|0)|0,s=l,l=o,o=a<<30|a>>>2,a=r,r=g,m[i>>2]=f;for(i=e+160|0;(i|0)<(e+240|0);i=i+4|0)f=(m[i-12>>2]^m[i-32>>2]^m[i-56>>2]^m[i-64>>2])<<1|(m[i-12>>2]^m[i-32>>2]^m[i-56>>2]^m[i-64>>2])>>>31,g=((r<<5|r>>>27)+(a&o|a&l|o&l)|0)+((f+s|0)-1894007588|0)|0,s=l,l=o,o=a<<30|a>>>2,a=r,r=g,m[i>>2]=f;for(i=e+240|0;(i|0)<(e+320|0);i=i+4|0)f=(m[i-12>>2]^m[i-32>>2]^m[i-56>>2]^m[i-64>>2])<<1|(m[i-12>>2]^m[i-32>>2]^m[i-56>>2]^m[i-64>>2])>>>31,g=((r<<5|r>>>27)+(a^o^l)|0)+((f+s|0)-899497514|0)|0,s=l,l=o,o=a<<30|a>>>2,a=r,r=g,m[i>>2]=f;r=r+c|0;a=a+u|0;o=o+d|0;l=l+p|0;s=s+h|0}m[t+320>>2]=r;m[t+324>>2]=a;m[t+328>>2]=o;m[t+332>>2]=l;m[t+336>>2]=s}}}},function(e,t){var c=this,u=void 0;"undefined"!=typeof self&&void 0!==self.FileReaderSync&&(u=new self.FileReaderSync);function d(e,t,n,i,r,a){var o=a%4,l=(r+o)%4,s=r-l;switch(o){case 0:t[a]=e[i+3];case 1:t[a+1-(o<<1)|0]=e[i+2];case 2:t[a+2-(o<<1)|0]=e[i+1];case 3:t[a+3-(o<<1)|0]=e[i]}if(!(r<4-o+l)){for(r=4-o;r>2|0]=e[i+r]<<24|e[i+r+1]<<16|e[i+r+2]<<8|e[i+r+3];switch(l){case 3:t[a+s+1|0]=e[i+s+2];case 2:t[a+s+2|0]=e[i+s+1];case 1:t[a+s+3|0]=e[i+s]}}}e.exports=function(e,t,n,i,r,a){if("string"==typeof e){var o=a%4,l=(r+o)%4,s=r-l;switch(o){case 0:t[a]=e.charCodeAt(i+3);case 1:t[a+1-(o<<1)|0]=e.charCodeAt(i+2);case 2:t[a+2-(o<<1)|0]=e.charCodeAt(i+1);case 3:t[a+3-(o<<1)|0]=e.charCodeAt(i)}if(!(r>2]=e.charCodeAt(i+r)<<24|e.charCodeAt(i+r+1)<<16|e.charCodeAt(i+r+2)<<8|e.charCodeAt(i+r+3);switch(l){case 3:t[a+s+1|0]=e.charCodeAt(i+s+2);case 2:t[a+s+2|0]=e.charCodeAt(i+s+1);case 1:t[a+s+3|0]=e.charCodeAt(i+s)}}}else{if(e instanceof Array||c&&c.Buffer&&c.Buffer.isBuffer(e))return d(e,t,n,i,r,a);if(e instanceof ArrayBuffer)return d(new Uint8Array(e),t,n,i,r,a);if(e.buffer instanceof ArrayBuffer)return d(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t,n,i,r,a);if(!(e instanceof Blob))throw Error("Unsupported data type.");switch(s=r-(l=(r+(o=a%4))%4),e=new Uint8Array(u.readAsArrayBuffer(e.slice(i,i+r))),o){case 0:t[a]=e[3];case 1:t[a+1-(o<<1)|0]=e[2];case 2:t[a+2-(o<<1)|0]=e[1];case 3:t[a+3-(o<<1)|0]=e[0]}if(!(r>2|0]=e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3];switch(l){case 3:t[a+s+1|0]=e[s+2];case 2:t[a+s+2|0]=e[s+1];case 1:t[a+s+3|0]=e[s]}}}}},function(e,t,n){var i=n(0),r=n(1).toHex,a=(o.prototype.update=function(e){return this._rusha.append(e),this},o.prototype.digest=function(e){var t=this._rusha.rawEnd().buffer;if(!e)return t;if("hex"===e)return r(t);throw Error("unsupported digest encoding")},o);function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this._rusha=new i,this._rusha.resetState()}e.exports=function(){return new a}}],i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=3);function i(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var n,r},"object"==typeof i&&"object"==typeof n?n.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof i?i.Rusha=a():r.Rusha=a()},shadow$provide[131]=function(e,t,n,i){var r,a,o,l=t(130);n.exports=function(e,t){r||(r=l.createWorker(),a=1,o={},r.onmessage=function(e){var t=e.data.id,n=o[t];delete o[t],null!=e.data.error?n(Error("Rusha worker error: "+e.data.error)):n(null,e.data.hash)}),o[a]=t,r.postMessage({id:a,data:e}),a+=1}},shadow$provide[132]=function(e,t,n,i){function r(e){return a.digest(e)}e=t(130);var o=t(131),a=new e,l=(t=(t="undefined"!=typeof window?window:self).crypto||t.msCrypto||{}).subtle||t.webkitSubtle;try{l.digest({name:"sha-1"},new Uint8Array).catch(function(){l=!1})}catch(e){l=!1}n.exports=function(n,a){l?("string"==typeof n&&(n=function(e){for(var t=e.length,n=new Uint8Array(t),i=0;i>>4).toString(16)),n.push((15&r).toString(16))}e=n.join(""),a(e)},function(){a(r(n))})):"undefined"!=typeof window?o(n,function(e,t){a(e?r(n):t)}):queueMicrotask(function(){return a(r(n))})},n.exports.sync=r},shadow$provide[133]=function(t,e,n,i){function p(e){return e.reduce(function(e,t){return Array.isArray(t)?e.concat(p(t)):e.concat(t)},[])}function a(i,t,n){function r(){A(i.map(function(c){return function(e){var n,i,r,t,a,o,l,s={};if(g(c))s.getStream=(l=c,function(){return new b(l)}),s.length=c.size;else if(y.isBuffer(c))s.getStream=(o=c,function(){var e=new E.PassThrough;return e.end(o),e}),s.length=c.length;else{if(!m(c)){if("string"!=typeof c)throw Error("invalid input type");if("function"!=typeof w.stat)throw Error("filesystem paths do not work in the browser");return i=1t._pos){if(e=n.substr(t._pos),"x-user-defined"===t._charset){for(var i=new c(e.length),r=0;rt._pos&&(t.push(new c(new Uint8Array(a.result.slice(t._pos)))),t._pos=a.result.byteLength)},a.onload=function(){t.push(null)},a.readAsArrayBuffer(n)}}t._xhr.readyState===o.DONE&&"ms-stream"!==t._mode&&t.push(null)}},shadow$provide[137]=function(e,t,n,i){var r=t(23).Buffer;n.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,i=0;i>>10&1023|55296),e=56320|1023&e),t+v(e)}).join("")}function m(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function y(e,t,n){var i=0;for(e=n?$(e/700):e>>1,e+=$(e/t);455$((2147483647-a)/c))&&f("overflow"),a+=u*c;var d=n<=l?1:l+26<=n?26:n-l;if(u$(2147483647/(u=36-d))&&f("overflow"),c*=u}l=y(a-t,c=i.length+1,0==t),$(a/c)>2147483647-o&&f("overflow"),o+=$(a/c),a%=c,i.splice(a++,0,o)}return p(i)}function i(e){var t,n,i,r=[],a=(e=g(e)).length,o=128,l=0,s=72;for(i=0;i$((2147483647-l)/d)&&f("overflow"),l+=(u-o)*d,o=u,i=0;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=Math.floor,v=String.fromCharCode,b={version:"1.4.1",ucs2:{decode:g,encode:p},decode:n,encode:i,toASCII:function(e){return t(e,function(e){return u.test(e)?"xn--"+i(e):e})},toUnicode:function(e){return t(e,function(e){return c.test(e)?n(e.slice(4).toLowerCase()):e})}};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return b});else if(a&&o)if(k.exports==a)o.exports=b;else for(s in b)b.hasOwnProperty(s)&&(a[s]=b[s]);else e.punycode=b}(this)},shadow$provide[142]=function(e,t,n,i){n.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},shadow$provide[143]=function(e,t,n,i){n.exports=function(e,t,n,i){n=n||"=";var r={};if("string"!=typeof e||0===e.length)return r;var a=/\+/g;for(e=e.split(t||"&"),t=1e3,i&&"number"==typeof i.maxKeys&&(t=i.maxKeys),i=e.length,0"` \r\n\t'.split(""));var g=["'"].concat(e),m=["%","/","?",";","#"].concat(g),y=["/","?","#"],$=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},k={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=t(145);u.prototype.parse=function(e,t,n){if(!p.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?");if(i=-1!==i&&i>i)<<(i=(i+5)%8)|(t+1>8-i,t++):(a=a>>8-(i+5)&31,0===(i=(i+5)%8)&&t++),r[n]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(a),n++}for(t=n;t>>(t=(t+5)%8),i[n]=o,n++,o=255&a<<8-t}return i.slice(0,n)}},shadow$provide[151]=function(e,t,n,i){e=t(150),i.encode=e.encode,i.decode=e.decode},shadow$provide[152]=function(e,t,n,i){n.exports=function(e,t,n){if(0===e.length)return e;if(t){n||e.sort(t),n=1;for(var i,r=e.length,a=e[0],o=1;o>3;return 0!=e%8&&t++,t}(e=function(e,t){e=void 0===e?0:e,this.grow=(t=null!=t&&t.grow)&&isFinite(t)&&r(t)||t||0,this.buffer="number"==typeof e?new Uint8Array(r(e)):e}).prototype.get=function(e){var t=e>>3;return t>e%8)},e.prototype.set=function(e,t){var n=e>>3;void 0===t||t?(this.buffer.length<1+n&&((t=Math.max(1+n,Math.min(2*this.buffer.length,this.grow)))<=this.grow&&((t=new Uint8Array(t)).set(this.buffer),this.buffer=t)),this.buffer[n]|=128>>e%8):n>e%8))},void 0!==n&&(n.exports=e)},shadow$provide[162]=function(e,t,n,i){var a=t(119),o=t(37);e=function(t,e,n){n=void 0===n?{}:n;var i=o.Writable.call(this,n)||this;if(!t||!t.put||!t.get)throw Error("First argument must be an abstract-chunk-store compliant store");if(!(e=Number(e)))throw Error("Second argument must be a chunk length");i._blockstream=new a(e,{zeroPadding:!1});var r=i._outstandingPuts=0;return i._blockstream.on("data",function(e){i.destroyed||(i._outstandingPuts+=1,t.put(r,e,function(){--i._outstandingPuts,0===i._outstandingPuts&&"function"==typeof i._finalCb&&(i._finalCb(null),i._finalCb=null)}),r+=1)}).on("error",function(e){i.destroy(e)}),i},L.inherits(e,o.Writable),e.prototype._write=function(e,t,n){this._blockstream.write(e,t,n)},e.prototype._final=function(e){var t=this;this._blockstream.end(),this._blockstream.once("end",function(){0===t._outstandingPuts?e(null):t._finalCb=e})},e.prototype.destroy=function(e){this.destroyed||(this.destroyed=!0,e&&this.emit("error",e),this.emit("close"))},n.exports=e},shadow$provide[163]=function(e,t,n,i){var r=t(23).Buffer;i.DEFAULT_ANNOUNCE_PEERS=50,i.MAX_ANNOUNCE_PEERS=82,i.binaryToHex=function(e){return"string"!=typeof e&&(e=String(e)),r.from(e,"binary").toString("hex")},i.hexToBinary=function(e){return"string"!=typeof e&&(e=String(e)),r.from(e,"hex").toString("binary")},e=t(27),Object.assign(i,e)},shadow$provide[164]=function(e,t,n,i){var r=t(23).Buffer,a=t(114)("simple-websocket"),o=t(156),l=t(37),s=t(157),c=t(27),u="function"!=typeof c?WebSocket:c;e=function(e){"string"==typeof(e=void 0===e?{}:e)&&(e={url:e}),e=Object.assign({allowHalfOpen:!1},e);var t=l.Duplex.call(this,e)||this;if(null==e.url&&null==e.socket)throw Error("Missing required `url` or `socket` option");if(null!=e.url&&null!=e.socket)throw Error("Must specify either `url` or `socket` option, not both");if(t._id=o(4).toString("hex").slice(0,7),t._debug("new websocket: %o",e),t.connected=!1,t.destroyed=!1,t._chunk=null,t._cb=null,t._interval=null,e.socket)t.url=e.socket.url,t._ws=e.socket,t.connected=e.socket.readyState===u.OPEN;else{t.url=e.url;try{t._ws="function"==typeof c?new u(e.url,e):new u(e.url)}catch(e){return s(function(){return t.destroy(e)}),t}}return t._ws.binaryType="arraybuffer",t._ws.onopen=function(){t._onOpen()},t._ws.onmessage=function(e){t._onMessage(e)},t._ws.onclose=function(){t._onClose()},t._ws.onerror=function(){t.destroy(Error("connection error to "+t.url))},t._onFinishBound=function(){t._onFinish()},t.once("finish",t._onFinishBound),t},L.inherits(e,l.Duplex),e.prototype.send=function(e){this._ws.send(e)},e.prototype.destroy=function(e){this._destroy(e,function(){})},e.prototype._destroy=function(e,t){if(!this.destroyed){if(this._debug("destroy (error: %s)",e&&(e.message||e)),this.readable=this.writable=!1,this._readableState.ended||this.push(null),this._writableState.finished||this.end(),this.connected=!1,this.destroyed=!0,clearInterval(this._interval),this._cb=this._chunk=this._interval=null,this._onFinishBound&&this.removeListener("finish",this._onFinishBound),this._onFinishBound=null,this._ws){var n=this._ws,i=function(){n.onclose=null};if(n.readyState===u.CLOSED)i();else try{n.onclose=i,n.close()}catch(e){i()}n.onopen=null,n.onmessage=null,n.onerror=function(){}}this._ws=null,e&&("undefined"!=typeof DOMException&&e instanceof DOMException&&(i=e.code,(e=Error(e.message)).code=i),this.emit("error",e)),this.emit("close"),t()}},e.prototype._read=function(){},e.prototype._write=function(e,t,n){if(this.destroyed)return n(Error("cannot write after socket is destroyed"));if(this.connected){try{this.send(e)}catch(e){return this.destroy(e)}"function"!=typeof c&&65536this._metadataSize&&(n=this._metadataSize),t=this.metadata.slice(t,n),this._data(e,t,this._metadataSize)}else this._reject(e)},e.prototype._onData=function(e,t,n){16384this._bufferDuration)&&this._cb){var e=this._cb;this._cb=null,e()}},a.prototype._getBufferDuration=function(){for(var e=this._sourceBuffer.buffered,t=this._elem.currentTime,n=-1,i=0;i=e.length)throw new RangeError("invalid lower bound");if(void 0===r)r=e.length-1;else if((r|=0)=e.length)throw new RangeError("invalid upper bound");for(;i<=r;){var a=i+(r-i>>>1),o=+n(e[a],t,a,e);if(o<0)i=a+1;else{if(!(0e.length)throw new RangeError("Out of range index");return(n>>>=0)<(i=void 0===i?e.length:i>>>0)&&e.fill(t,n,i),e}var o=t(23).Buffer,l=function(){try{if(!o.isEncoding("latin1"))return!1;var e=o.alloc?o.alloc(4):new o(4);return e.fill("ab","ucs2"),"61006200"===e.toString("hex")}catch(e){return!1}}();n.exports=function(e,t,n,i,r){if(l)return e.fill(t,n,i,r);if("number"==typeof t)return a(e,t,n,i);if("string"==typeof t){if("string"==typeof n?(r=n,n=0,i=e.length):"string"==typeof i&&(r=i,i=e.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("latin1"===r&&(r="binary"),"string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(""===t)return a(e,0,n,i);if(1===t.length&&t.charCodeAt(0)<256)return a(e,t.charCodeAt(0),n,i);t=new o(t,r)}if(o.isBuffer(t)){if(n<0||i>e.length)throw new RangeError("Out of range index");if(!(i<=n)){for(i=void 0===i?e.length:i>>>0,n>>>=0,r=t.length;n<=i-r;)t.copy(e,n),n+=r;n!==i&&t.copy(e,n,0,i-n)}return e}return a(e,0,n,i)}},shadow$provide[186]=function(e,t,n,i){var r=t(23).Buffer;n.exports=function(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');return r.allocUnsafe?r.allocUnsafe(e):new r(e)}},shadow$provide[187]=function(e,t,n,i){var r=t(23).Buffer,a=t(185),o=t(186);n.exports=function(e,t,n){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');if(r.alloc)return r.alloc(e,t,n);var i=o(e);return 0===e?i:void 0===t?a(i,0):("string"!=typeof n&&(n=void 0),a(i,t,n))}},shadow$provide[188]=function(e,t,n,i){var r=t(187),a=Math.pow(2,32);i.encodingLength=function(){return 8},i.encode=function(e,t,n){t=t||r(8),n=n||0;var i=Math.floor(e/a);return e-=i*a,t.writeUInt32BE(i,n),t.writeUInt32BE(e,n+4),t},i.decode=function(e,t){t=t||0;var n=e.readUInt32BE(t);return e=e.readUInt32BE(t+4),n*a+e},i.encode.bytes=8,i.decode.bytes=8},shadow$provide[189]=function(e,t,n,l){var s=t(23).Buffer,c={3:"ESDescriptor",4:"DecoderConfigDescriptor",5:"DecoderSpecificInfo",6:"SLConfigDescriptor"};l.Descriptor={},l.Descriptor.decode=function(e,t,n){var i=e.readUInt8(t),r=t+1,a=0;do{var o=e.readUInt8(r++);a=a<<7|127&o}while(128&o);return(e=l[o=c[i]]?l[o].decode(e,r,n):{buffer:s.from(e.slice(r,r+a))}).tag=i,e.tagName=o,e.length=r-t+a,e.contentsLen=a,e},l.DescriptorArray={},l.DescriptorArray.decode=function(e,t,n){for(var i={};t+2<=n;){var r=l.Descriptor.decode(e,t,n);t+=r.length,i[c[r.tag]||"Descriptor"+r.tag]=r}return i},l.ESDescriptor={},l.ESDescriptor.decode=function(e,t,n){var i=e.readUInt8(t+2);t+=3,128&i&&(t+=2),64&i&&(t+=e.readUInt8(t)+1);return 32&i&&(t+=2),l.DescriptorArray.decode(e,t,n)},l.DecoderConfigDescriptor={},l.DecoderConfigDescriptor.decode=function(e,t,n){var i=e.readUInt8(t);return(e=l.DescriptorArray.decode(e,t+13,n)).oti=i,e}},shadow$provide[190]=function(e,t,n,a){function o(e,t,n){for(;t>3:0;var i=null;return t&&(i=t.toString(16),n&&(i+="."+n)),{mimeCodec:i,buffer:d.from(e.slice(0))}},a.esds.encodingLength=function(e){return e.buffer.length},a.stsz={},a.stsz.encode=function(e,t,n){var i=e.entries||[];for((t=t?t.slice(n):d.alloc(a.stsz.encodingLength(e))).writeUInt32BE(0,0),t.writeUInt32BE(i.length,4),e=0;en-t)throw Error("Data too short");return s.decodeWithoutHeaders(i,e,t+i.headersLen,t+i.length)},s.decodeWithoutHeaders=function(e,t,n,i){n=n||0,i=i||t.length;var r=e.type,a={};if(p[r])for(a.otherBoxes=[],r=p[r];8<=i-n;){var o=s.decode(t,n,i);if(n+=o.length,0<=r.indexOf(o.type))a[o.type]=o;else if(0<=r.indexOf(o.type+"s")){var l=o.type+"s";(a[l]=a[l]||[]).push(o)}else a.otherBoxes.push(o)}else d[r]?a=(a=d[r].decode)(t,n,i):a.buffer=c.from(t.slice(n,i));return a.length=e.length,a.contentLen=e.contentLen,a.type=e.type,a.version=e.version,a.flags=e.flags,a},s.encodingLength=function(n){var e=n.type,i=8;if(d.fullBoxes[e]&&(i+=4),p[e])p[e].forEach(function(t){if(5===t.length){var e=n[t]||[];t=t.substr(0,4),e.forEach(function(e){e.type=t,i+=s.encodingLength(e)})}else n[t]&&((e=n[t]).type=t,i+=s.encodingLength(e))}),n.otherBoxes&&n.otherBoxes.forEach(function(e){i+=s.encodingLength(e)});else if(d[e])i+=d[e].encodingLength(n);else{if(!n.buffer)throw Error("Either `type` must be set to a known type (not'"+e+"') or `buffer` must be set");i+=n.buffer.length}return 4294967295=e.length)return this._position+=e.length,n(null);if(a>e.length){this._position+=e.length,r=0===r?e:e.slice(r),t=i.stream.write(r)&&t;break}this._position+=a,r=0===r&&a===e.length?e:e.slice(r,a),t=i.stream.write(r)&&t,i.last&&i.stream.end(),e=e.slice(a),this._queue.shift()}t?n(null):i.stream.once("drain",n.bind(null,null))},e.prototype.slice=function(n){var i=this;if(this.destroyed)return null;Array.isArray(n)||(n=[n]);var r=new a;return n.forEach(function(e,t){i._queue.push({start:e.start,end:e.end,stream:r,last:t===n.length-1})}),this._buffer&&this._write(this._buffer,null,this._cb),r},e.prototype.destroy=function(e){this.destroyed||(this.destroyed=!0,e&&this.emit("error",e))},n.exports=e},shadow$provide[196]=function(e,t,n,i){function k(){return{version:0,flags:0,entries:[]}}var _=t(23).Buffer,r=t(183),a=t(15),s=t(194),x=t(191),c=t(195);e=function(e){var t=a.call(this)||this;return t._tracks=[],t._file=e,t._decoder=null,t._findMoov(0),t},L.inherits(e,a),e.prototype._findMoov=function(t){var n=this;this._decoder&&this._decoder.destroy();var i=0;this._decoder=s.decode();var r=this._file.createReadStream({start:t});r.pipe(this._decoder);var a=function(e){"moov"===e.type?(n._decoder.removeListener("box",a),n._decoder.decode(function(e){r.destroy();try{n._processMoov(e)}catch(e){e.message="Cannot parse mp4 file: "+e.message,n.emit("error",e)}})):e.length<4096?(i+=e.length,n._decoder.ignore()):(n._decoder.removeListener("box",a),i+=e.length,r.destroy(),n._decoder.destroy(),n._findMoov(t+i))};this._decoder.on("box",a)},e.prototype._processMoov=function(e){var t=e.traks;this._tracks=[],this._hasAudio=this._hasVideo=!1;for(var n=0;n=r.stsz.entries.length)break;u+=y,++s>=m.samplesPerChunk&&(u=s=0,c++,(m=r.stsc.entries[d+1])&&c+1>=m.firstChunk&&d++),p+=$,h.inc(),f&&f.inc(),b&&g++}i.mdia.mdhd.duration=0,i.tkhd.duration=0,o=m.sampleDescriptionId,r={type:"moov",mvhd:e.mvhd,traks:[{tkhd:i.tkhd,mdia:{mdhd:i.mdia.mdhd,hdlr:i.mdia.hdlr,elng:i.mdia.elng,minf:{vmhd:i.mdia.minf.vmhd,smhd:i.mdia.minf.smhd,dinf:i.mdia.minf.dinf,stbl:{stsd:r.stsd,stts:k(),ctts:k(),stsc:k(),stsz:k(),stco:k(),stss:k()}}}}],mvex:{mehd:{fragmentDuration:e.mvhd.duration},trexs:[{trackId:i.tkhd.trackId,defaultSampleDescriptionIndex:o,defaultSampleDuration:0,defaultSampleSize:0,defaultSampleFlags:0}]}},this._tracks.push({fragmentSequence:1,trackId:i.tkhd.trackId,timeScale:i.mdia.mdhd.timeScale,samples:a,currSample:null,currTime:null,moov:r,mime:l})}if(0===this._tracks.length)this.emit("error",Error("no playable tracks"));else{e.mvhd.duration=0,this._ftyp={type:"ftyp",brand:"iso5",brandVersion:0,compatibleBrands:["iso5"]};var w=x.encode(this._ftyp);e=this._tracks.map(function(e){var t=x.encode(e.moov);return{mime:e.mime,init:_.concat([w,t])}}),this.emit("ready",e)}},e.prototype.seek=function(t){var o=this;if(!this._tracks)throw Error("Not ready yet; wait for 'ready' event");this._fileStream&&(this._fileStream.destroy(),this._fileStream=null);var l=-1;if(this._tracks.map(function(n,i){n.outStream&&n.outStream.destroy(),n.inStream&&(n.inStream.destroy(),n.inStream=null);var r=n.outStream=s.encode(),e=o._generateFragment(i,t);if(!e)return r.finalize();(-1===l||e.ranges[0].start=n.samples.length)return null;for(var i=n.samples[t].dts,r=0,a=[],o=t;o=+n.timeScale)break;r+=l.size;var s=a.length-1;s<0||a[s].end!==l.offset?a.push({start:l.offset,end:l.offset+l.size}):a[s].end+=l.size}return n.currSample=o,{moof:this._generateMoof(e,t,o),ranges:a,length:r}},e.prototype._generateMoof=function(e,t,n){e=this._tracks[e];for(var i=[],r=0,a=t;a=this._entries[this._index][this._countName]&&(this._index++,this._offset=0),this.value=this._entries[this._index]},n.exports=e},shadow$provide[197]=function(e,t,n,i){function r(e,t,n){var i=this;if(n=void 0===n?{}:n,!(this instanceof r))return console.warn("don't invoked VideoStream without 'new'"),new r(e,t,n);this.detailedError=null,this._elem=t,this._elemWrapper=new a(t),this._waitingFired=!1,this._trackMeta=null,this._file=e,this._tracks=null,"none"!==this._elem.preload&&this._createMuxer(),this._onError=function(){i.detailedError=i._elemWrapper.detailedError,i.destroy()},this._onWaiting=function(){i._waitingFired=!0,i._muxer?i._tracks&&i._pump():i._createMuxer()},t.autoplay&&(t.preload="auto"),t.addEventListener("waiting",this._onWaiting),t.addEventListener("error",this._onError)}var a=t(180),o=t(174),l=t(196);r.prototype={_createMuxer:function(){var i=this;this._muxer=new l(this._file),this._muxer.on("ready",function(e){i._tracks=e.map(function(e){var t=i._elemWrapper.createWriteStream(e.mime);t.on("error",function(e){i._elemWrapper.error(e)});var n={muxed:null,mediaSource:t,initFlushed:!1,onInitFlushed:null};return t.write(e.init,function(e){n.initFlushed=!0,n.onInitFlushed&&n.onInitFlushed(e)}),n}),!i._waitingFired&&"auto"!==i._elem.preload||i._pump()}),this._muxer.on("error",function(e){i._elemWrapper.error(e)})},_pump:function(){var i=this,r=this._muxer.seek(this._elem.currentTime,!this._tracks);this._tracks.forEach(function(e,t){function n(){e.muxed&&(e.muxed.destroy(),e.mediaSource=i._elemWrapper.createWriteStream(e.mediaSource),e.mediaSource.on("error",function(e){i._elemWrapper.error(e)})),e.muxed=r[t],o(e.muxed,e.mediaSource)}e.initFlushed?n():e.onInitFlushed=function(e){e?i._elemWrapper.error(e):n()}})},destroy:function(){this.destroyed||(this.destroyed=!0,this._elem.removeEventListener("waiting",this._onWaiting),this._elem.removeEventListener("error",this._onError),this._tracks&&this._tracks.forEach(function(e){e.muxed&&e.muxed.destroy()}),this._elem.src="")}},n.exports=r},shadow$provide[198]=function(e,t,n,i){function a(n,i,e,r){function t(){return!("number"==typeof n.length&&n.length>e.maxBlobLength)||(v("File length too large for Blob URL approach: %d (max: %d)",n.length,e.maxBlobLength),c(Error("File length too large for Blob URL approach: "+n.length+" (max: "+e.maxBlobLength+")")),0)}function a(e){t()&&(u=i(e),$(n,function(e,t){if(e)return c(e);u.addEventListener("error",c),u.addEventListener("loadstart",o),u.addEventListener("canplay",l),u.src=t}))}function o(){u.removeEventListener("loadstart",o),e.autoplay&&u.play()}function l(){u.removeEventListener("canplay",l),r(null,u)}function s(){$(n,function(e,t){if(e)return c(e);".pdf"!==p?((u=i("iframe")).sandbox="allow-forms allow-scripts",u.src=t):((u=i("object")).setAttribute("typemustmatch",!0),u.setAttribute("type","application/pdf"),u.setAttribute("data",t)),r(null,u)})}function c(e){e.message='Error rendering file "'+n.name+'": '+e.message,v(e.message),r(e)}var u,d,p=k.extname(n.name).toLowerCase(),h=0;function f(){v("Use MediaSource API for "+n.name),y(),u.addEventListener("error",m),u.addEventListener("loadstart",o),u.addEventListener("canplay",l);var e=new w(u).createWriteStream({".m4a":'audio/mp4; codecs="mp4a.40.5"',".m4b":'audio/mp4; codecs="mp4a.40.5"',".m4p":'audio/mp4; codecs="mp4a.40.5"',".m4v":'video/mp4; codecs="avc1.640029, mp4a.40.5"',".mkv":'video/webm; codecs="avc1.640029, mp4a.40.5"',".mp3":"audio/mpeg",".mp4":'video/mp4; codecs="avc1.640029, mp4a.40.5"',".webm":'video/webm; codecs="vorbis, vp8"'}[k.extname(n.name).toLowerCase()]);n.createReadStream().pipe(e),h&&(u.currentTime=h)}function g(){v("Use Blob URL for "+n.name),y(),u.addEventListener("error",c),u.addEventListener("loadstart",o),u.addEventListener("canplay",l),$(n,function(e,t){if(e)return c(e);u.src=t,h&&(u.currentTime=h)})}function m(e){v("MediaSource API error: fallback to Blob URL: %o",e.message||e),t()&&(u.removeEventListener("error",m),u.removeEventListener("canplay",l),g())}function y(){u||(u=i(d)).addEventListener("progress",function(){h=u.currentTime})}0<=A.indexOf(p)?(d=0<=I.indexOf(p)?"video":"audio",z?0<=x.indexOf(p)?(v("Use `videostream` package for "+n.name),y(),u.addEventListener("error",function e(t){v("videostream error: fallback to MediaSource API: %o",t.message||t),u.removeEventListener("error",e),u.removeEventListener("canplay",l),f()}),u.addEventListener("loadstart",o),u.addEventListener("canplay",l),_(n,u)):f():g()):0<=j.indexOf(p)?a("video"):0<=E.indexOf(p)?a("audio"):0<=C.indexOf(p)?(u=i("img"),$(n,function(e,t){if(e)return c(e);u.src=t,u.alt=n.name,r(null,u)})):(0<=S.indexOf(p)?s:function(){v('Unknown file extension "%s" - will attempt to render into iframe',p);var t="";n.createReadStream({start:0,end:1e3}).setEncoding("utf8").on("data",function(e){t+=e}).on("end",function(){b(t)?(v('File extension "%s" appears ascii, so will render.',p),s()):(v('File extension "%s" appears non-ascii, will not render.',p),r(Error('Unsupported file type "'+p+'": Cannot append to DOM')))}).on("error",r)})()}function $(e,t){var n=k.extname(e.name).toLowerCase();r(e.createReadStream(),i.mime[n]).then(function(e){return t(null,e)},function(e){return t(e)})}function o(e){if(null==e)throw Error("file cannot be null or undefined");if("string"!=typeof e.name)throw Error("missing or invalid file.name property");if("function"!=typeof e.createReadStream)throw Error("missing or invalid file.createReadStream property")}function l(e){null==e.autoplay&&(e.autoplay=!1),null==e.muted&&(e.muted=!1),null==e.controls&&(e.controls=!0),null==e.maxBlobLength&&(e.maxBlobLength=c)}function s(e,t){e.autoplay=!!t.autoplay,e.muted=!!t.muted,e.controls=!!t.controls}i.render=function(n,i,r,e){"function"==typeof r&&(e=r,r={}),r=r||{},e=e||function(){},o(n),l(r),"string"==typeof i&&(i=document.querySelector(i)),a(n,function(e){if(i.nodeName===e.toUpperCase())return"video"!==e&&"audio"!==e||s(i,r),i;var t=k.extname(n.name).toLowerCase();throw Error('Cannot render "'+t+'" inside a "'+i.nodeName.toLowerCase()+'" element, expected "'+e+'"')},r,e)},i.append=function(e,t,n,i){function r(e){return e=document.createElement(e),t.appendChild(e),e}if("function"==typeof n&&(i=n,n={}),n=n||{},i=i||function(){},o(e),l(n),"string"==typeof t&&(t=document.querySelector(t)),t&&("VIDEO"===t.nodeName||"AUDIO"===t.nodeName))throw Error("Invalid video/audio node argument. Argument must be root element that video/audio tag will be appended to.");a(e,function(e){return"video"===e||"audio"===e?(s(e=r(e),n),t.appendChild(e),e):r(e)},n,function(e,t){e&&t&&t.remove(),i(e,t)})},i.mime=t(178);var v=t(114)("render-media"),b=t(179),w=t(180),k=t(100),r=t(182),_=t(197),x=[".m4a",".m4b",".m4p",".m4v",".mp4"],I=[".m4v",".mkv",".mp4",".webm"],A=[].concat(I,[".m4a",".m4b",".m4p",".mp3"]),j=[".mov",".ogv"],E=[".aac",".oga",".ogg",".wav",".flac"],C=".bmp .gif .jpeg .jpg .png .svg".split(" "),S=".css .html .js .md .pdf .txt".split(" "),c=2e8,z="undefined"!=typeof window&&window.MediaSource},shadow$provide[199]=function(e,t,n,i){var a=t(23).Buffer,o=t(128);n.exports=function(e,t,n){n=o(n);var i=a.alloc(t),r=0;e.on("data",function(e){e.copy(i,r),r+=e.length}).on("end",function(){n(null,i)}).on("error",n)}},shadow$provide[200]=function(e,t,n,i){var r=t(114)("webtorrent:file-stream"),a=t(37);e=function(e,t){var n=a.Readable.call(this,t)||this;n.destroyed=!1,n._torrent=e._torrent;var i=t&&t.start||0;t=t&&t.end&&t.end=e.length||t<0)){var n=e.pop();if(t=this._parserSize;)e=1===this._buffer.length?this._buffer[0]:a.concat(this._buffer),this._buffer=(this._bufferSize-=this._parserSize)?[e.slice(this._parserSize)]:[],this._parser(e.slice(0,this._parserSize));n(null)},e.prototype._callback=function(e,t,n){e&&(this._clearTimeout(),this.peerChoking||this._finished||this._updateTimeout(),e.callback(t,n))},e.prototype._clearTimeout=function(){this._timeout&&(clearTimeout(this._timeout),this._timeout=null)},e.prototype._updateTimeout=function(){var e=this;this._timeoutMs&&this.requests.length&&!this._timeout&&(this._timeout=setTimeout(function(){return e._onTimeout()},this._timeoutMs),this._timeoutUnref&&this._timeout.unref&&this._timeout.unref())},e.prototype._parse=function(e,t){this._parserSize=e,this._parser=t},e.prototype._onMessageLength=function(e){0<(e=e.readUInt32BE(0))?this._parse(e,this._onMessage):(this._onKeepAlive(),this._parse(4,this._onMessageLength))},e.prototype._onMessage=function(e){switch(this._parse(4,this._onMessageLength),e[0]){case 0:return this._onChoke();case 1:return this._onUnchoke();case 2:return this._onInterested();case 3:return this._onUninterested();case 4:return this._onHave(e.readUInt32BE(1));case 5:return this._onBitField(e.slice(1));case 6:return this._onRequest(e.readUInt32BE(1),e.readUInt32BE(5),e.readUInt32BE(9));case 7:return this._onPiece(e.readUInt32BE(1),e.readUInt32BE(5),e.slice(9));case 8:return this._onCancel(e.readUInt32BE(1),e.readUInt32BE(5),e.readUInt32BE(9));case 9:return this._onPort(e.readUInt16BE(1));case 20:return this._onExtended(e.readUInt8(1),e.slice(2));default:return this._debug("got unknown message"),this.emit("unknownmessage",e)}},e.prototype._parseHandshake=function(){var i=this;this._parse(1,function(e){var n=e.readUInt8(0);i._parse(n+48,function(e){var t=e.slice(0,n);"BitTorrent protocol"!==t.toString()?(i._debug("Error: wire not speaking BitTorrent protocol (%s)",t.toString()),i.end()):(e=e.slice(n),i._onHandshake(e.slice(8,28),e.slice(28,48),{dht:!!(1&e[7]),extended:!!(16&e[5])}),i._parse(4,i._onMessageLength))})})},e.prototype._onFinish=function(){for(this._finished=!0,this.push(null);this.read(););for(clearInterval(this._keepAliveInterval),this._parse(Number.MAX_VALUE,function(){});this.peerRequests.length;)this.peerRequests.pop();for(;this.requests.length;)this._callback(this.requests.pop(),Error("wire was closed"),null)},e.prototype._debug=function(e){for(var t=[],n=0;n=10"},license:"MIT",devDependencies:{tape:"^4.6.0",disc:"^1.3.3",finalhandler:"^1.0.0",standard:"*","webtorrent-fixtures":"^1.5.0",electron:"^7.0.0","bittorrent-tracker":"^9.14.0","run-series":"^1.1.4",browserify:"^16.4.0","network-address":"^1.1.0",airtap:"^2.0.3","serve-static":"^1.11.1","babel-minify":"^0.5.1"},dependencies:{pump:"^3.0.0","bittorrent-dht":"^9.0.0","render-media":"^3.0.0",randombytes:"^2.0.3","run-parallel-limit":"^1.0.3","chunk-store-stream":"^4.0.0","load-ip-set":"^2.1.0",bitfield:"^3.0.0","stream-to-blob":"^2.0.0","fs-chunk-store":"^2.0.0","addr-to-ip-port":"^1.4.2",multistream:"^4.0.0","end-of-stream":"^1.1.0","range-parser":"^1.2.0","memory-chunk-store":"^1.2.0","bittorrent-protocol":"^3.0.0",mime:"^2.4.0","chrome-net":"^3.3.2","readable-stream":"^3.0.6","simple-sha1":"^3.0.1","unordered-array-remove":"^1.0.2","parse-torrent":"^7.0.0","create-torrent":"^4.0.0",debug:"^4.1.0",speedometer:"^1.0.0","torrent-piece":"^2.0.0","torrent-discovery":"^9.1.1","package-json-versionify":"^1.0.2","immediate-chunk-store":"^2.0.0","simple-get":"^3.0.1","simple-concat":"^1.0.0",ut_metadata:"^3.3.0","stream-to-blob-url":"^3.0.0","http-node":"github:feross/http-node#webtorrent",ut_pex:"^2.0.0","escape-html":"^1.0.3","parse-numeric-range":"^0.0.2","random-iterate":"^1.0.1","run-parallel":"^1.1.6",uniq:"^1.0.1","stream-with-known-length-to-buffer":"^1.0.0","simple-peer":"^9.0.0"},author:{name:"WebTorrent, LLC",email:"feross@webtorrent.io",url:"https://webtorrent.io"},chromeapp:{"fs-chunk-store":"memory-chunk-store",http:"http-node","load-ip-set":!1,net:"chrome-net",os:!1},repository:{type:"git",url:"git://github.com/webtorrent/webtorrent.git"},homepage:"https://webtorrent.io",bundleDependencies:!1,browser:{"./lib/server.js":!1,"./lib/tcp-pool.js":!1,"bittorrent-dht/client":!1,"fs-chunk-store":"memory-chunk-store","load-ip-set":!1,net:!1,os:!1,ut_pex:!1},name:"webtorrent",main:"index.js",deprecated:!1,browserify:{transform:["package-json-versionify"]},keywords:"bittorrent;bittorrent client;download;mad science;p2p;peer-to-peer;peers;streaming;swarm;torrent;web torrent;webrtc;webrtc data;webtorrent".split(";"),bugs:{url:"https://github.com/webtorrent/webtorrent/issues"},version:"0.107.17",description:"Streaming torrent client",scripts:{"size-disc":"browserify --full-paths . | discify --open","size-js":"npm run build && cat webtorrent.min.js | gzip | wc -c","test-node":"tape test/*.js test/node/*.js",build:"browserify --standalone WebTorrent . | minify > webtorrent.min.js","build-debug":"browserify --standalone WebTorrent . > webtorrent.debug.js","test-browser-local":"airtap --local -- test/*.js test/browser/*.js","test-browser":"airtap -- test/*.js test/browser/*.js",size:"npm run size-js && npm run size-disc","update-authors":"./scripts/update-authors.sh",test:"standard && npm run test-node && npm run test-browser"}}},shadow$provide[205]=function(e,t,n,i){var r=t(23).Buffer,a=t(161),f=t(114)("webtorrent:webconn"),g=t(149),o=t(132),l=t(203),m=t(204).version;e=function(e,t){var n=l.call(this)||this;return n.url=e,n.webPeerId=o.sync(e),n._torrent=t,n._init(),n},L.inherits(e,l),e.prototype._init=function(){var r=this;this.setKeepAlive(!0),this.once("handshake",function(e,t){if(!r.destroyed){r.handshake(e,r.webPeerId),e=r._torrent.pieces.length,t=new a(e);for(var n=0;n<=e;n++)t.set(n,!0);r.bitfield(t)}}),this.once("interested",function(){f("interested"),r.unchoke()}),this.on("uninterested",function(){f("uninterested")}),this.on("choke",function(){f("choke")}),this.on("unchoke",function(){f("unchoke")}),this.on("bitfield",function(){f("bitfield")}),this.on("request",function(e,t,n,i){f("request pieceIndex=%d offset=%d length=%d",e,t,n),r.httpRequest(e,t,n,i)})},e.prototype.httpRequest=function(o,l,s,c){var t=this,n=o*this._torrent.pieceLength+l,i=n+s-1,e=this._torrent.files;if(e.length<=1)var u=[{url:this.url,start:n,end:i}];else{if((e=e.filter(function(e){return e.offset<=i&&e.offset+e.length>n})).length<1)return c(Error("Could not find file corresponnding to web seed range request"));u=e.map(function(e){return{url:t.url+("/"===t.url[t.url.length-1]?"":"/")+e.path,fileOffsetInRange:Math.max(e.offset-n,0),start:Math.max(n-e.offset,0),end:Math.min(e.offset+e.length-1,i-e.offset)}})}var d,p=0,h=!1;12*(a._numConns-a.numPeers)&&r.amInterested?r.destroy():(n=setTimeout(i,5e3)).unref&&n.unref())};r.on("bitfield",function(){e(),a._update()}),r.on("have",function(){e(),a._update()}),r.once("interested",function(){r.unchoke()}),r.once("close",function(){clearTimeout(n)}),r.on("choke",function(){clearTimeout(n),(n=setTimeout(i,5e3)).unref&&n.unref()}),r.on("unchoke",function(){clearTimeout(n),a._update()}),r.on("request",function(e,t,n,i){if(131072=h)return 1;for(var t=function(){var r=c.downloadSpeed()||1;if(R=t.from+t.offset;--n)if(c.peerPieces.get(n)&&p._request(c,n,!1))return}}();var t=2+Math.ceil(.5*c.downloadSpeed()/k.BLOCK_LENGTH);if(!(c.requests.length>=t)){var h=2+Math.ceil(c.downloadSpeed()/k.BLOCK_LENGTH);e(!1)||e(!0)}}},e.prototype._rechoke=function(){var t=this;if(this.ready){0=this.client.maxConns)){this._debug("drain (%s queued, %s/%s peers)",this._numQueued,this.numPeers,this.client.maxConns);var n=this._queue.shift();if(n){this._debug("tcp connect attempt to %s",n.addr);var e=r(n.addr);(e=n.conn=y.connect({host:e[0],port:e[1]})).once("connect",function(){n.onConnect()}),e.once("error",function(e){n.destroy(e)}),n.startConnectTimeout(),e.on("close",function(){if(!t.destroyed)if(n.retries>=N.length)t._debug("conn %s closed: will not re-add (max %s attempts)",n.addr,N.length);else{var e=N[n.retries];t._debug("conn %s closed: will re-add to queue in %sms (attempt %s)",n.addr,e,n.retries+1),(e=setTimeout(function(){var e=t._addPeer(n.addr);e&&(e.retries=n.retries+1)},e)).unref&&e.unref()}})}}},e.prototype._validAddr=function(e){try{var t=r(e)}catch(e){return!1}return e=t[0],0<(t=t[1])&&t<65535&&!("127.0.0.1"===e&&t===this.client.torrentPort)},L.global.Object.defineProperties(e.prototype,{timeRemaining:{configurable:!0,enumerable:!0,get:function(){return this.done?0:0===this.downloadSpeed?1/0:(this.length-this.downloaded)/this.downloadSpeed*1e3}},downloaded:{configurable:!0,enumerable:!0,get:function(){if(!this.bitfield)return 0;for(var e=0,t=0,n=this.pieces.length;t>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=i>>24&255,e[t+5]=i>>16&255,e[t+6]=i>>8&255,e[t+7]=255&i}function a(e,t,n,i,r){var a,o=0;for(a=0;a>>8)-1}function l(e,t,n,i){return a(e,t,n,i,16)}function g(e,t,n,i){return a(e,t,n,i,32)}function u(e,t,n,i){var r=255&i[0]|(255&i[1])<<8|(255&i[2])<<16|(255&i[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,o=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,s=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,c=255&i[4]|(255&i[5])<<8|(255&i[6])<<16|(255&i[7])<<24,u=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24;t=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24;for(var h,f=255&i[8]|(255&i[9])<<8|(255&i[10])<<16|(255&i[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,m=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,$=r,v=a,b=o,w=l,k=s,_=c,x=u,I=d,A=p,j=t,E=f,C=g,S=m,z=y,F=n=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,T=i=255&i[12]|(255&i[13])<<8|(255&i[14])<<16|(255&i[15])<<24,O=0;O<20;O+=2)$^=(h=(S^=(h=(A^=(h=(k^=(h=$+S|0)<<7|h>>>25)+$|0)<<9|h>>>23)+k|0)<<13|h>>>19)+A|0)<<18|h>>>14,_^=(h=(v^=(h=(z^=(h=(j^=(h=_+v|0)<<7|h>>>25)+_|0)<<9|h>>>23)+j|0)<<13|h>>>19)+z|0)<<18|h>>>14,E^=(h=(x^=(h=(b^=(h=(F^=(h=E+x|0)<<7|h>>>25)+E|0)<<9|h>>>23)+F|0)<<13|h>>>19)+b|0)<<18|h>>>14,T^=(h=(C^=(h=(I^=(h=(w^=(h=T+C|0)<<7|h>>>25)+T|0)<<9|h>>>23)+w|0)<<13|h>>>19)+I|0)<<18|h>>>14,$^=(h=(w^=(h=(b^=(h=(v^=(h=$+w|0)<<7|h>>>25)+$|0)<<9|h>>>23)+v|0)<<13|h>>>19)+b|0)<<18|h>>>14,_^=(h=(k^=(h=(I^=(h=(x^=(h=_+k|0)<<7|h>>>25)+_|0)<<9|h>>>23)+x|0)<<13|h>>>19)+I|0)<<18|h>>>14,E^=(h=(j^=(h=(A^=(h=(C^=(h=E+j|0)<<7|h>>>25)+E|0)<<9|h>>>23)+C|0)<<13|h>>>19)+A|0)<<18|h>>>14,T^=(h=(F^=(h=(z^=(h=(S^=(h=T+F|0)<<7|h>>>25)+T|0)<<9|h>>>23)+S|0)<<13|h>>>19)+z|0)<<18|h>>>14;$=$+r|0,v=v+a|0,b=b+o|0,w=w+l|0,k=k+s|0,_=_+c|0,x=x+u|0,I=I+d|0,A=A+p|0,j=j+t|0,E=E+f|0,C=C+g|0,S=S+m|0,z=z+y|0,F=F+n|0,T=T+i|0,e[0]=$>>>0&255,e[1]=$>>>8&255,e[2]=$>>>16&255,e[3]=$>>>24&255,e[4]=v>>>0&255,e[5]=v>>>8&255,e[6]=v>>>16&255,e[7]=v>>>24&255,e[8]=b>>>0&255,e[9]=b>>>8&255,e[10]=b>>>16&255,e[11]=b>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=k>>>0&255,e[17]=k>>>8&255,e[18]=k>>>16&255,e[19]=k>>>24&255,e[20]=_>>>0&255,e[21]=_>>>8&255,e[22]=_>>>16&255,e[23]=_>>>24&255,e[24]=x>>>0&255,e[25]=x>>>8&255,e[26]=x>>>16&255,e[27]=x>>>24&255,e[28]=I>>>0&255,e[29]=I>>>8&255,e[30]=I>>>16&255,e[31]=I>>>24&255,e[32]=A>>>0&255,e[33]=A>>>8&255,e[34]=A>>>16&255,e[35]=A>>>24&255,e[36]=j>>>0&255,e[37]=j>>>8&255,e[38]=j>>>16&255,e[39]=j>>>24&255,e[40]=E>>>0&255,e[41]=E>>>8&255,e[42]=E>>>16&255,e[43]=E>>>24&255,e[44]=C>>>0&255,e[45]=C>>>8&255,e[46]=C>>>16&255,e[47]=C>>>24&255,e[48]=S>>>0&255,e[49]=S>>>8&255,e[50]=S>>>16&255,e[51]=S>>>24&255,e[52]=z>>>0&255,e[53]=z>>>8&255,e[54]=z>>>16&255,e[55]=z>>>24&255,e[56]=F>>>0&255,e[57]=F>>>8&255,e[58]=F>>>16&255,e[59]=F>>>24&255,e[60]=T>>>0&255,e[61]=T>>>8&255,e[62]=T>>>16&255,e[63]=T>>>24&255}function c(e,t,n,i){var r=255&i[0]|(255&i[1])<<8|(255&i[2])<<16|(255&i[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,o=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,s=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,c=255&i[4]|(255&i[5])<<8|(255&i[6])<<16|(255&i[7])<<24,u=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24;t=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24;var h=255&i[8]|(255&i[9])<<8|(255&i[10])<<16|(255&i[11])<<24,f=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,g=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,m=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24;n=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,i=255&i[12]|(255&i[13])<<8|(255&i[14])<<16|(255&i[15])<<24;for(var y,$=0;$<20;$+=2)r^=(y=(g^=(y=(p^=(y=(s^=(y=r+g|0)<<7|y>>>25)+r|0)<<9|y>>>23)+s|0)<<13|y>>>19)+p|0)<<18|y>>>14,c^=(y=(a^=(y=(m^=(y=(t^=(y=c+a|0)<<7|y>>>25)+c|0)<<9|y>>>23)+t|0)<<13|y>>>19)+m|0)<<18|y>>>14,h^=(y=(u^=(y=(o^=(y=(n^=(y=h+u|0)<<7|y>>>25)+h|0)<<9|y>>>23)+n|0)<<13|y>>>19)+o|0)<<18|y>>>14,i^=(y=(f^=(y=(d^=(y=(l^=(y=i+f|0)<<7|y>>>25)+i|0)<<9|y>>>23)+l|0)<<13|y>>>19)+d|0)<<18|y>>>14,r^=(y=(l^=(y=(o^=(y=(a^=(y=r+l|0)<<7|y>>>25)+r|0)<<9|y>>>23)+a|0)<<13|y>>>19)+o|0)<<18|y>>>14,c^=(y=(s^=(y=(d^=(y=(u^=(y=c+s|0)<<7|y>>>25)+c|0)<<9|y>>>23)+u|0)<<13|y>>>19)+d|0)<<18|y>>>14,h^=(y=(t^=(y=(p^=(y=(f^=(y=h+t|0)<<7|y>>>25)+h|0)<<9|y>>>23)+f|0)<<13|y>>>19)+p|0)<<18|y>>>14,i^=(y=(n^=(y=(m^=(y=(g^=(y=i+n|0)<<7|y>>>25)+i|0)<<9|y>>>23)+g|0)<<13|y>>>19)+m|0)<<18|y>>>14;e[0]=r>>>0&255,e[1]=r>>>8&255,e[2]=r>>>16&255,e[3]=r>>>24&255,e[4]=c>>>0&255,e[5]=c>>>8&255,e[6]=c>>>16&255,e[7]=c>>>24&255,e[8]=h>>>0&255,e[9]=h>>>8&255,e[10]=h>>>16&255,e[11]=h>>>24&255,e[12]=i>>>0&255,e[13]=i>>>8&255,e[14]=i>>>16&255,e[15]=i>>>24&255,e[16]=u>>>0&255,e[17]=u>>>8&255,e[18]=u>>>16&255,e[19]=u>>>24&255,e[20]=d>>>0&255,e[21]=d>>>8&255,e[22]=d>>>16&255,e[23]=d>>>24&255,e[24]=p>>>0&255,e[25]=p>>>8&255,e[26]=p>>>16&255,e[27]=p>>>24&255,e[28]=t>>>0&255,e[29]=t>>>8&255,e[30]=t>>>16&255,e[31]=t>>>24&255}function d(e,t,n,i,r,a,o){var l,s=new Uint8Array(16),c=new Uint8Array(64);for(l=0;l<16;l++)s[l]=0;for(l=0;l<8;l++)s[l]=a[l];for(;64<=r;){for(u(c,s,o,oe),l=0;l<64;l++)e[t+l]=n[i+l]^c[l];for(a=1,l=8;l<16;l++)a=a+(255&s[l])|0,s[l]=255&a,a>>>=8;r-=64,t+=64,i+=64}if(0>>=8;n-=64,t+=64}if(0>16&1),i[n-1]&=65535;i[15]=r[15]-32767-(i[14]>>16&1),n=i[15]>>16&1,i[14]&=65535,w(r,i,1-n)}for(n=0;n<16;n++)e[2*n]=255&r[n],e[2*n+1]=r[n]>>8}function _(e,t){var n=new Uint8Array(32),i=new Uint8Array(32);return k(n,e),k(i,t),g(n,0,i,0)}function x(e){var t=new Uint8Array(32);return k(t,e),1&t[0]}function I(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function A(e,t,n){for(var i=0;i<16;i++)e[i]=t[i]+n[i]}function j(e,t,n){for(var i=0;i<16;i++)e[i]=t[i]-n[i]}function E(e,t,n){var i=n[0],r=n[1],a=n[2],o=n[3],l=n[4],s=n[5],c=n[6],u=n[7],d=n[8],p=n[9],h=n[10],f=n[11],g=n[12],m=n[13],y=n[14],$=n[15],v=(n=t[0])*i,b=n*r,w=n*a,k=n*o,_=n*l,x=n*s,I=n*c,A=n*u,j=n*d,E=n*p,C=n*h,S=n*f,z=n*g,F=n*m,T=n*y,O=n*$;b+=(n=t[1])*i,w+=n*r,k+=n*a,_+=n*o,x+=n*l,I+=n*s,A+=n*c,j+=n*u,E+=n*d,C+=n*p,S+=n*h,z+=n*f,F+=n*g,T+=n*m,O+=n*y;var R=n*$;w+=(n=t[2])*i,k+=n*r,_+=n*a,x+=n*o,I+=n*l,A+=n*s,j+=n*c,E+=n*u,C+=n*d,S+=n*p,z+=n*h,F+=n*f,T+=n*g,O+=n*m,R+=n*y;var P=n*$;k+=(n=t[3])*i,_+=n*r,x+=n*a,I+=n*o,A+=n*l,j+=n*s,E+=n*c,C+=n*u,S+=n*d,z+=n*p,F+=n*h,T+=n*f,O+=n*g,R+=n*m,P+=n*y;var N=n*$;_+=(n=t[4])*i,x+=n*r,I+=n*a,A+=n*o,j+=n*l,E+=n*s,C+=n*c,S+=n*u,z+=n*d,F+=n*p,T+=n*h,O+=n*f,R+=n*g,P+=n*m,N+=n*y;var M=n*$;x+=(n=t[5])*i,I+=n*r,A+=n*a,j+=n*o,E+=n*l,C+=n*s,S+=n*c,z+=n*u,F+=n*d,T+=n*p,O+=n*h,R+=n*f,P+=n*g,N+=n*m,M+=n*y;var B=n*$;I+=(n=t[6])*i,A+=n*r,j+=n*a,E+=n*o,C+=n*l,S+=n*s,z+=n*c,F+=n*u,T+=n*d,O+=n*p,R+=n*h,P+=n*f,N+=n*g,M+=n*m,B+=n*y;var L=n*$;A+=(n=t[7])*i,j+=n*r,E+=n*a,C+=n*o,S+=n*l,z+=n*s,F+=n*c,T+=n*u,O+=n*d,R+=n*p,P+=n*h,N+=n*f,M+=n*g,B+=n*m,L+=n*y;var D=n*$;j+=(n=t[8])*i,E+=n*r,C+=n*a,S+=n*o,z+=n*l,F+=n*s,T+=n*c,O+=n*u,R+=n*d,P+=n*p,N+=n*h,M+=n*f,B+=n*g,L+=n*m,D+=n*y;var q=n*$;E+=(n=t[9])*i,C+=n*r,S+=n*a,z+=n*o,F+=n*l,T+=n*s,O+=n*c,R+=n*u,P+=n*d,N+=n*p,M+=n*h,B+=n*f,L+=n*g,D+=n*m,q+=n*y;var U=n*$;C+=(n=t[10])*i,S+=n*r,z+=n*a,F+=n*o,T+=n*l,O+=n*s,R+=n*c,P+=n*u,N+=n*d,M+=n*p,B+=n*h,L+=n*f,D+=n*g,q+=n*m,U+=n*y;var H=n*$;S+=(n=t[11])*i,z+=n*r,F+=n*a,T+=n*o,O+=n*l,R+=n*s,P+=n*c,N+=n*u,M+=n*d,B+=n*p,L+=n*h,D+=n*f,q+=n*g,U+=n*m,H+=n*y;var W=n*$;z+=(n=t[12])*i,F+=n*r,T+=n*a,O+=n*o,R+=n*l,P+=n*s,N+=n*c,M+=n*u,B+=n*d,L+=n*p,D+=n*h,q+=n*f,U+=n*g,H+=n*m,W+=n*y;var V=n*$;F+=(n=t[13])*i,T+=n*r,O+=n*a,R+=n*o,P+=n*l,N+=n*s,M+=n*c,B+=n*u,L+=n*d,D+=n*p,q+=n*h,U+=n*f,H+=n*g,W+=n*m,V+=n*y;var G=n*$;T+=(n=t[14])*i,O+=n*r,R+=n*a,P+=n*o,N+=n*l,M+=n*s,B+=n*c,L+=n*u,D+=n*d,q+=n*p,U+=n*h,H+=n*f,W+=n*g,V+=n*m,G+=n*y;var X=n*$;O+=(n=t[15])*i,b+=38*(P+n*a),w+=38*(N+n*o),k+=38*(M+n*l),_+=38*(B+n*s),x+=38*(L+n*c),I+=38*(D+n*u),A+=38*(q+n*d),j+=38*(U+n*p),E+=38*(H+n*h),C+=38*(W+n*f),S+=38*(V+n*g),z+=38*(G+n*m),F+=38*(X+n*y),T+=38*n*$,v=(n=v+38*(R+n*r)+1+65535)-65536*(t=Math.floor(n/65536)),b=(n=b+t+65535)-65536*(t=Math.floor(n/65536)),w=(n=w+t+65535)-65536*(t=Math.floor(n/65536)),k=(n=k+t+65535)-65536*(t=Math.floor(n/65536)),_=(n=_+t+65535)-65536*(t=Math.floor(n/65536)),x=(n=x+t+65535)-65536*(t=Math.floor(n/65536)),I=(n=I+t+65535)-65536*(t=Math.floor(n/65536)),A=(n=A+t+65535)-65536*(t=Math.floor(n/65536)),j=(n=j+t+65535)-65536*(t=Math.floor(n/65536)),E=(n=E+t+65535)-65536*(t=Math.floor(n/65536)),C=(n=C+t+65535)-65536*(t=Math.floor(n/65536)),S=(n=S+t+65535)-65536*(t=Math.floor(n/65536)),z=(n=z+t+65535)-65536*(t=Math.floor(n/65536)),F=(n=F+t+65535)-65536*(t=Math.floor(n/65536)),T=(n=T+t+65535)-65536*(t=Math.floor(n/65536)),O=(n=O+t+65535)-65536*(t=Math.floor(n/65536)),v=(n=(v+=t-1+37*(t-1))+1+65535)-65536*(t=Math.floor(n/65536)),b=(n=b+t+65535)-65536*(t=Math.floor(n/65536)),w=(n=w+t+65535)-65536*(t=Math.floor(n/65536)),k=(n=k+t+65535)-65536*(t=Math.floor(n/65536)),_=(n=_+t+65535)-65536*(t=Math.floor(n/65536)),x=(n=x+t+65535)-65536*(t=Math.floor(n/65536)),I=(n=I+t+65535)-65536*(t=Math.floor(n/65536)),A=(n=A+t+65535)-65536*(t=Math.floor(n/65536)),j=(n=j+t+65535)-65536*(t=Math.floor(n/65536)),E=(n=E+t+65535)-65536*(t=Math.floor(n/65536)),C=(n=C+t+65535)-65536*(t=Math.floor(n/65536)),S=(n=S+t+65535)-65536*(t=Math.floor(n/65536)),z=(n=z+t+65535)-65536*(t=Math.floor(n/65536)),F=(n=F+t+65535)-65536*(t=Math.floor(n/65536)),T=(n=T+t+65535)-65536*(t=Math.floor(n/65536)),n=O+t+65535,t=Math.floor(n/65536),e[0]=v+(t-1+37*(t-1)),e[1]=b,e[2]=w,e[3]=k,e[4]=_,e[5]=x,e[6]=I,e[7]=A,e[8]=j,e[9]=E,e[10]=C,e[11]=S,e[12]=z,e[13]=F,e[14]=T,e[15]=n-65536*t}function C(e,t){E(e,t,t)}function S(e,t){var n,i=X();for(n=0;n<16;n++)i[n]=t[n];for(n=253;0<=n;n--)C(i,i),2!==n&&4!==n&&E(i,i,t);for(n=0;n<16;n++)e[n]=i[n]}function z(e,t){var n,i=X();for(n=0;n<16;n++)i[n]=t[n];for(n=250;0<=n;n--)C(i,i),1!==n&&E(i,i,t);for(n=0;n<16;n++)e[n]=i[n]}function F(e,t,n){var i,r=new Uint8Array(32),a=new Float64Array(80),o=X(),l=X(),s=X(),c=X(),u=X(),d=X();for(i=0;i<31;i++)r[i]=t[i];for(r[31]=127&t[31]|64,r[0]&=248,I(a,n),i=0;i<16;i++)l[i]=a[i],c[i]=o[i]=s[i]=0;for(o[0]=c[0]=1,i=254;0<=i;--i)w(o,l,t=r[i>>>3]>>>(7&i)&1),w(s,c,t),A(u,o,s),j(o,o,s),A(s,l,c),j(l,l,c),C(c,u),C(d,o),E(o,s,o),E(s,l,u),A(u,o,s),j(o,o,s),C(l,o),j(s,c,d),E(o,s,ee),A(o,o,c),E(s,s,o),E(o,c,d),E(c,l,a),C(l,u),w(o,l,t),w(s,c,t);for(i=0;i<16;i++)a[i+16]=o[i],a[i+32]=s[i],a[i+48]=l[i],a[i+64]=c[i];return r=a.subarray(32),a=a.subarray(16),S(r,r),E(a,a,r),k(e,a),0}function n(e,t){return F(e,t,K)}function i(e,t){return Y(t,32),n(e,t)}function T(e,t,n){var i=new Uint8Array(32);F(i,n,t),c(e,Z,i,oe)}function O(e,t,n,i){for(var r,a=new Int32Array(16),o=new Int32Array(16),l=e[0],s=e[1],c=e[2],u=e[3],d=e[4],p=e[5],h=e[6],f=e[7],g=t[0],m=t[1],y=t[2],$=t[3],v=t[4],b=t[5],w=t[6],k=t[7],_=0;128<=i;){for(r=0;r<16;r++){var x=8*r+_;a[r]=n[x+0]<<24|n[x+1]<<16|n[x+2]<<8|n[x+3],o[r]=n[x+4]<<24|n[x+5]<<16|n[x+6]<<8|n[x+7]}for(r=0;r<80;r++){x=l;var I=s,A=c,j=u,E=d,C=p,S=h,z=g,F=m,T=y,O=$,R=v,P=b,N=w,M=f,B=k,L=65535&B,D=B>>>16,q=65535&M,U=M>>>16;L+=65535&(B=(v>>>14|d<<18)^(v>>>18|d<<14)^(d>>>9|v<<23)),D+=B>>>16,q+=65535&(M=(d>>>14|v<<18)^(d>>>18|v<<14)^(v>>>9|d<<23)),U+=M>>>16,L+=65535&(B=v&b^~v&w),D+=B>>>16,q+=65535&(M=d&p^~d&h),U+=M>>>16,M=ce[2*r],L+=65535&(B=ce[2*r+1]),D+=B>>>16,q+=65535&M,U+=M>>>16,M=a[r%16],D+=(B=o[r%16])>>>16,q+=65535&M,U+=M>>>16;var H=65535&(q+=(D+=(L+=65535&B)>>>16)>>>16)|(U+=q>>>16)<<16,W=65535&L|D<<16;if(L=65535&(B=W),D=B>>>16,q=65535&(M=H),U=M>>>16,L+=65535&(B=(g>>>28|l<<4)^(l>>>2|g<<30)^(l>>>7|g<<25)),D+=B>>>16,q+=65535&(M=(l>>>28|g<<4)^(g>>>2|l<<30)^(g>>>7|l<<25)),U+=M>>>16,D+=(B=g&m^g&y^m&y)>>>16,q+=65535&(M=l&s^l&c^s&c),U+=M>>>16,l=65535&(q+=(D+=(L+=65535&B)>>>16)>>>16)|(U+=q>>>16)<<16,g=65535&L|D<<16,L=65535&(B=O),D=B>>>16,q=65535&(M=j),U=M>>>16,D+=(B=W)>>>16,q+=65535&(M=H),U+=M>>>16,s=x,c=I,u=A,d=j=65535&(q+=(D+=(L+=65535&B)>>>16)>>>16)|(U+=q>>>16)<<16,p=E,h=C,f=S,m=z,y=F,$=T,v=O=65535&L|D<<16,b=R,w=P,k=N,15==r%16)for(x=0;x<16;x++)M=a[x],L=65535&(B=o[x]),D=B>>>16,q=65535&M,U=M>>>16,M=a[(x+9)%16],L+=65535&(B=o[(x+9)%16]),D+=B>>>16,q+=65535&M,U+=M>>>16,H=a[(x+1)%16],L+=65535&(B=((W=o[(x+1)%16])>>>1|H<<31)^(W>>>8|H<<24)^(W>>>7|H<<25)),D+=B>>>16,q+=65535&(M=(H>>>1|W<<31)^(H>>>8|W<<24)^H>>>7),U+=M>>>16,H=a[(x+14)%16],D+=(B=((W=o[(x+14)%16])>>>19|H<<13)^(H>>>29|W<<3)^(W>>>6|H<<26))>>>16,q+=65535&(M=(H>>>19|W<<13)^(W>>>29|H<<3)^H>>>6),U+=M>>>16,U+=(q+=(D+=(L+=65535&B)>>>16)>>>16)>>>16,a[x]=65535&q|U<<16,o[x]=65535&L|D<<16}L=65535&(B=g),D=B>>>16,q=65535&(M=l),U=M>>>16,M=e[0],D+=(B=t[0])>>>16,q+=65535&M,U+=M>>>16,U+=(q+=(D+=(L+=65535&B)>>>16)>>>16)>>>16,e[0]=l=65535&q|U<<16,t[0]=g=65535&L|D<<16,L=65535&(B=m),D=B>>>16,q=65535&(M=s),U=M>>>16,M=e[1],D+=(B=t[1])>>>16,q+=65535&M,U+=M>>>16,U+=(q+=(D+=(L+=65535&B)>>>16)>>>16)>>>16,e[1]=s=65535&q|U<<16,t[1]=m=65535&L|D<<16,L=65535&(B=y),D=B>>>16,q=65535&(M=c),U=M>>>16,M=e[2],D+=(B=t[2])>>>16,q+=65535&M,U+=M>>>16,U+=(q+=(D+=(L+=65535&B)>>>16)>>>16)>>>16,e[2]=c=65535&q|U<<16,t[2]=y=65535&L|D<<16,L=65535&(B=$),D=B>>>16,q=65535&(M=u),U=M>>>16,M=e[3],D+=(B=t[3])>>>16,q+=65535&M,U+=M>>>16,U+=(q+=(D+=(L+=65535&B)>>>16)>>>16)>>>16,e[3]=u=65535&q|U<<16,t[3]=$=65535&L|D<<16,L=65535&(B=v),D=B>>>16,q=65535&(M=d),U=M>>>16,M=e[4],D+=(B=t[4])>>>16,q+=65535&M,U+=M>>>16,U+=(q+=(D+=(L+=65535&B)>>>16)>>>16)>>>16,e[4]=d=65535&q|U<<16,t[4]=v=65535&L|D<<16,L=65535&(B=b),D=B>>>16,q=65535&(M=p),U=M>>>16,M=e[5],D+=(B=t[5])>>>16,q+=65535&M,U+=M>>>16,U+=(q+=(D+=(L+=65535&B)>>>16)>>>16)>>>16,e[5]=p=65535&q|U<<16,t[5]=b=65535&L|D<<16,L=65535&(B=w),D=B>>>16,q=65535&(M=h),U=M>>>16,M=e[6],D+=(B=t[6])>>>16,q+=65535&M,U+=M>>>16,U+=(q+=(D+=(L+=65535&B)>>>16)>>>16)>>>16,e[6]=h=65535&q|U<<16,t[6]=w=65535&L|D<<16,L=65535&(B=k),D=B>>>16,q=65535&(M=f),U=M>>>16,M=e[7],D+=(B=t[7])>>>16,q+=65535&M,U+=M>>>16,U+=(q+=(D+=(L+=65535&B)>>>16)>>>16)>>>16,e[7]=f=65535&q|U<<16,t[7]=k=65535&L|D<<16,_+=128,i-=128}return i}function R(e,t,n){var i,r=new Int32Array(8),a=new Int32Array(8),o=new Uint8Array(256),l=n;for(r[0]=1779033703,r[1]=3144134277,r[2]=1013904242,r[3]=2773480762,r[4]=1359893119,r[5]=2600822924,r[6]=528734635,r[7]=1541459225,a[0]=4089235720,a[1]=2227873595,a[2]=4271175723,a[3]=1595750129,a[4]=2917565137,a[5]=725511199,a[6]=4215389547,a[7]=327033209,O(r,a,t,n),n%=128,i=0;i>(7&i)&1,o=e,l=t,s=a;for(r=0;r<4;r++)w(o[r],l[r],s);for(P(t,e),P(e,e),r=e,o=t,l=a,a=0;a<4;a++)w(r[a],o[a],l)}}function B(e,t){var n=[X(),X(),X(),X()];v(n[0],ie),v(n[1],re),v(n[2],J),E(n[3],ie,re),M(e,n,t)}function L(e,t,n){var i=new Uint8Array(64),r=[X(),X(),X(),X()];for(n||Y(t,32),R(i,t,32),i[0]&=248,i[31]&=127,i[31]|=64,B(r,i),N(e,r),n=0;n<32;n++)t[n+32]=e[n];return 0}function D(e,t){var n,i;for(n=63;32<=n;--n){var r=0,a=n-32;for(i=n-12;a>4)*ue[a],r=t[a]>>8,t[a]&=255;for(a=0;a<32;a++)t[a]-=r*ue[a];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function q(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;D(e,n)}function U(e,t,n,i){var r,a=new Uint8Array(64),o=new Uint8Array(64),l=new Uint8Array(64),s=new Float64Array(64),c=[X(),X(),X(),X()];R(a,i,32),a[0]&=248,a[31]&=127,a[31]|=64;var u=n+64;for(r=0;r>7&&j(l[0],Q,l[0]),E(l[3],l[0],l[1]),0))return-1;for(s=0;s>>13|n<<3),t=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|t<<6),n=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(t>>>7|n<<9),t=255&e[8]|(255&e[9])<<8,this.r[4]=255&(n>>>4|t<<12),this.r[5]=t>>>1&8190,n=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(t>>>14|n<<2),t=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(n>>>11|t<<5),n=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(t>>>8|n<<8),this.r[9]=n>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};le.prototype.blocks=function(e,t,n){for(var i,r,a,o,l,s,c,u,d,p,h,f=this.fin?0:2048,g=this.h[0],m=this.h[1],y=this.h[2],$=this.h[3],v=this.h[4],b=this.h[5],w=this.h[6],k=this.h[7],_=this.h[8],x=this.h[9],I=this.r[0],A=this.r[1],j=this.r[2],E=this.r[3],C=this.r[4],S=this.r[5],z=this.r[6],F=this.r[7],T=this.r[8],O=this.r[9];16<=n;)g+=8191&(i=255&e[t+0]|(255&e[t+1])<<8),m+=8191&(i>>>13|(r=255&e[t+2]|(255&e[t+3])<<8)<<3),y+=8191&(r>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6),$+=8191&(i>>>7|(r=255&e[t+6]|(255&e[t+7])<<8)<<9),v+=8191&(r>>>4|(i=255&e[t+8]|(255&e[t+9])<<8)<<12),b+=i>>>1&8191,w+=8191&(i>>>14|(r=255&e[t+10]|(255&e[t+11])<<8)<<2),k+=8191&(r>>>11|(i=255&e[t+12]|(255&e[t+13])<<8)<<5),_+=8191&(i>>>8|(r=255&e[t+14]|(255&e[t+15])<<8)<<8),x+=r>>>5|f,i=r=0,i+=g*I,i+=5*m*O,i+=5*y*T,i+=5*$*F,r=(i+=5*v*z)>>>13,i&=8191,i+=5*b*S,i+=5*w*C,i+=5*k*E,i+=5*_*j,a=r+=(i+=5*x*A)>>>13,a+=g*A,a+=m*I,a+=5*y*O,a+=5*$*T,r=(a+=5*v*F)>>>13,a&=8191,a+=5*b*z,a+=5*w*S,a+=5*k*C,a+=5*_*E,r+=(a+=5*x*j)>>>13,a&=8191,o=r,o+=g*j,o+=m*A,o+=y*I,o+=5*$*O,r=(o+=5*v*T)>>>13,o&=8191,o+=5*b*F,o+=5*w*z,o+=5*k*S,o+=5*_*C,l=r+=(o+=5*x*E)>>>13,l+=g*E,l+=m*j,l+=y*A,l+=$*I,r=(l+=5*v*O)>>>13,l&=8191,l+=5*b*T,l+=5*w*F,l+=5*k*z,l+=5*_*S,s=r+=(l+=5*x*C)>>>13,s+=g*C,s+=m*E,s+=y*j,s+=$*A,r=(s+=v*I)>>>13,s&=8191,s+=5*b*O,s+=5*w*T,s+=5*k*F,s+=5*_*z,c=r+=(s+=5*x*S)>>>13,c+=g*S,c+=m*C,c+=y*E,c+=$*j,r=(c+=v*A)>>>13,c&=8191,c+=b*I,c+=5*w*O,c+=5*k*T,c+=5*_*F,u=r+=(c+=5*x*z)>>>13,u+=g*z,u+=m*S,u+=y*C,u+=$*E,r=(u+=v*j)>>>13,u&=8191,u+=b*A,u+=w*I,u+=5*k*O,u+=5*_*T,d=r+=(u+=5*x*F)>>>13,d+=g*F,d+=m*z,d+=y*S,d+=$*C,r=(d+=v*E)>>>13,d&=8191,d+=b*j,d+=w*A,d+=k*I,d+=5*_*O,p=r+=(d+=5*x*T)>>>13,p+=g*T,p+=m*F,p+=y*z,p+=$*S,r=(p+=v*C)>>>13,p&=8191,p+=b*E,p+=w*j,p+=k*A,p+=_*I,h=r+=(p+=5*x*O)>>>13,h+=g*O,h+=m*T,h+=y*F,h+=$*z,r=(h+=v*S)>>>13,h&=8191,h+=b*C,h+=w*E,h+=k*j,h+=_*A,g=i=8191&(r=(r=((r+=(h+=x*I)>>>13)<<2)+r|0)+(i&=8191)|0),m=a+=r>>>=13,y=o&=8191,$=l&=8191,v=s&=8191,b=c&=8191,w=u&=8191,k=d&=8191,_=p&=8191,x=h&=8191,t+=16,n-=16;this.h[0]=g,this.h[1]=m,this.h[2]=y,this.h[3]=$,this.h[4]=v,this.h[5]=b,this.h[6]=w,this.h[7]=k,this.h[8]=_,this.h[9]=x},le.prototype.finish=function(e,t){var n=new Uint16Array(10);if(this.leftover){var i=this.leftover;for(this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}var r=this.h[1]>>>13;for(this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=r,r=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,n[0]=this.h[0]+5,r=n[0]>>>13,n[0]&=8191,i=1;i<10;i++)n[i]=this.h[i]+r,r=n[i]>>>13,n[i]&=8191;for(n[9]-=8192,r=(1^r)-1,i=0;i<10;i++)n[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|n[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),n=this.h[0]+this.pad[0],this.h[0]=65535&n,i=1;i<8;i++)n=(this.h[i]+this.pad[i]|0)+(n>>>16)|0,this.h[i]=65535&n;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},le.prototype.update=function(e,t,n){var i;if(this.leftover){var r=16-this.leftover;for(n>>0,a=new Uint8Array(r);e[t];){var o=c[e.charCodeAt(t)];if(255===o)return;for(var l=0,s=r-1;(0!==o||l>>0,a[s]=o%256>>>0,o=o/256>>>0;if(0!==o)throw Error("Non-zero carry");i=l,t++}if(" "!==e[t]){for(e=r-i;e!==r&&0===a[e];)e++;for((t=g.allocUnsafe(n+(r-e))).fill(0,0,n);e!==r;)t[n++]=a[e++];return t}}}if(255<=u.length)throw new TypeError("Alphabet too long");for(var c=new Uint8Array(256),e=0;e>>0,o=new Uint8Array(a);i!==r;){for(var l=e[i],s=0,c=a-1;(0!==l||s>>0,o[c]=l%d>>>0,l=l/d>>>0;if(0!==l)throw Error("Non-zero carry");n=s,i++}for(e=a-n;e!==a&&0===o[e];)e++;for(t=p.repeat(t);e=this._blockSize;){for(var i=this._blockOffset;i>>32-t}function a(e,t,n,i,r,a,o){return l(e+(t&n|~t&i)+r+a|0,o)+t|0}function o(e,t,n,i,r,a,o){return l(e+(t&i|n&~i)+r+a|0,o)+t|0}function s(e,t,n,i,r,a,o){return l(e+(t^n^i)+r+a|0,o)+t|0}function c(e,t,n,i,r,a,o){return l(e+(n^(t|~i))+r+a|0,o)+t|0}e=t(16);var u=t(213),d=t(24).Buffer,p=Array(16);e(r,u),r.prototype._update=function(){for(var e=0;e<16;++e)p[e]=this._block.readInt32LE(4*e);e=this._a;var t=this._b,n=this._c,i=this._d;e=a(e,t,n,i,p[0],3614090360,7),i=a(i,e,t,n,p[1],3905402710,12),n=a(n,i,e,t,p[2],606105819,17),t=a(t,n,i,e,p[3],3250441966,22),e=a(e,t,n,i,p[4],4118548399,7),i=a(i,e,t,n,p[5],1200080426,12),n=a(n,i,e,t,p[6],2821735955,17),t=a(t,n,i,e,p[7],4249261313,22),e=a(e,t,n,i,p[8],1770035416,7),i=a(i,e,t,n,p[9],2336552879,12),n=a(n,i,e,t,p[10],4294925233,17),t=a(t,n,i,e,p[11],2304563134,22),e=a(e,t,n,i,p[12],1804603682,7),i=a(i,e,t,n,p[13],4254626195,12),n=a(n,i,e,t,p[14],2792965006,17),e=o(e,t=a(t,n,i,e,p[15],1236535329,22),n,i,p[1],4129170786,5),i=o(i,e,t,n,p[6],3225465664,9),n=o(n,i,e,t,p[11],643717713,14),t=o(t,n,i,e,p[0],3921069994,20),e=o(e,t,n,i,p[5],3593408605,5),i=o(i,e,t,n,p[10],38016083,9),n=o(n,i,e,t,p[15],3634488961,14),t=o(t,n,i,e,p[4],3889429448,20),e=o(e,t,n,i,p[9],568446438,5),i=o(i,e,t,n,p[14],3275163606,9),n=o(n,i,e,t,p[3],4107603335,14),t=o(t,n,i,e,p[8],1163531501,20),e=o(e,t,n,i,p[13],2850285829,5),i=o(i,e,t,n,p[2],4243563512,9),n=o(n,i,e,t,p[7],1735328473,14),e=s(e,t=o(t,n,i,e,p[12],2368359562,20),n,i,p[5],4294588738,4),i=s(i,e,t,n,p[8],2272392833,11),n=s(n,i,e,t,p[11],1839030562,16),t=s(t,n,i,e,p[14],4259657740,23),e=s(e,t,n,i,p[1],2763975236,4),i=s(i,e,t,n,p[4],1272893353,11),n=s(n,i,e,t,p[7],4139469664,16),t=s(t,n,i,e,p[10],3200236656,23),e=s(e,t,n,i,p[13],681279174,4),i=s(i,e,t,n,p[0],3936430074,11),n=s(n,i,e,t,p[3],3572445317,16),t=s(t,n,i,e,p[6],76029189,23),e=s(e,t,n,i,p[9],3654602809,4),i=s(i,e,t,n,p[12],3873151461,11),n=s(n,i,e,t,p[15],530742520,16),e=c(e,t=s(t,n,i,e,p[2],3299628645,23),n,i,p[0],4096336452,6),i=c(i,e,t,n,p[7],1126891415,10),n=c(n,i,e,t,p[14],2878612391,15),t=c(t,n,i,e,p[5],4237533241,21),e=c(e,t,n,i,p[12],1700485571,6),i=c(i,e,t,n,p[3],2399980690,10),n=c(n,i,e,t,p[10],4293915773,15),t=c(t,n,i,e,p[1],2240044497,21),e=c(e,t,n,i,p[8],1873313359,6),i=c(i,e,t,n,p[15],4264355552,10),n=c(n,i,e,t,p[6],2734768916,15),t=c(t,n,i,e,p[13],1309151649,21),e=c(e,t,n,i,p[4],4149444226,6),i=c(i,e,t,n,p[11],3174756917,10),n=c(n,i,e,t,p[2],718787259,15),t=c(t,n,i,e,p[9],3951481745,21),this._a=this._a+e|0,this._b=this._b+t|0,this._c=this._c+n|0,this._d=this._d+i|0},r.prototype._digest=function(){this._block[this._blockOffset++]=128,56>>32-t}var a=t(23).Buffer;e=t(16);var o=t(213),f=Array(16),g=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],$=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],v=[0,1518500249,1859775393,2400959708,2840853838],b=[1352829926,1548603684,1836072691,2053994217,0];e(r,o),r.prototype._update=function(){for(var e=0;e<16;++e)f[e]=this._block.readInt32LE(4*e);var t=0|this._a;e=0|this._b;for(var n=0|this._c,i=0|this._d,r=0|this._e,a=0|this._a,o=0|this._b,l=0|this._c,s=0|this._d,c=0|this._e,u=0;u<80;u+=1){if(u<16){var d=r;d=h(t+(e^n^i)+f[g[u]]+v[0]|0,y[u])+d|0,t=c;var p=h(a+(o^(l|~s))+f[m[u]]+b[0]|0,$[u])+t|0}else p=u<32?(d=r,d=h(t+(e&n|~e&i)+f[g[u]]+v[1]|0,y[u])+d|0,t=c,h(a+(o&s|l&~s)+f[m[u]]+b[1]|0,$[u])+t|0):u<48?(d=r,d=h(t+((e|~n)^i)+f[g[u]]+v[2]|0,y[u])+d|0,t=c,h(a+((o|~l)^s)+f[m[u]]+b[2]|0,$[u])+t|0):u<64?(d=r,d=h(t+(e&i|n&~i)+f[g[u]]+v[3]|0,y[u])+d|0,t=c,h(a+(o&l|~o&s)+f[m[u]]+b[3]|0,$[u])+t|0):(d=r,d=h(t+(e^(n|~i))+f[g[u]]+v[4]|0,y[u])+d|0,t=c,h(a+(o^l^s)+f[m[u]]+b[4]|0,$[u])+t|0);t=r,r=i,i=h(n,10),n=e,e=d,a=c,c=s,s=h(l,10),l=o,o=p}n=this._b+n+s|0,this._b=this._c+i+c|0,this._c=this._d+r+a|0,this._d=this._e+t+o|0,this._e=this._a+e+l|0,this._a=n},r.prototype._digest=function(){this._block[this._blockOffset++]=128,56=this._finalSize&&(this._update(this._block),this._block.fill(0)),(t=8*this._len)<=4294967295)this._block.writeUInt32BE(t,this._blockSize-4);else{var n=(4294967295&t)>>>0;this._block.writeUInt32BE((t-n)/4294967296,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}return this._update(this._block),t=this._hash(),e?t.toString(e):t},r.prototype._update=function(){throw Error("_update must be implemented by subclass")},n.exports=r},shadow$provide[217]=function(e,t,n,i){function r(){this.init(),this._w=l,a.call(this,64,56)}e=t(16);var a=t(216),o=t(24).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],l=Array(80);e(r,a),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(e){for(var t=this._w,n=0|this._a,i=0|this._b,r=0|this._c,a=0|this._d,o=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=t[l-3]^t[l-8]^t[l-14]^t[l-16];for(e=0;e<80;++e){l=(n<<5|n>>>27)+(0===(l=~~(e/20))?i&r|~i&a:2===l?i&r|i&a|r&a:i^r^a)+o+t[e]+s[l]|0,o=a,a=r,r=i<<30|i>>>2,i=n,n=l}this._a=n+this._a|0,this._b=i+this._b|0,this._c=r+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0},r.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},n.exports=r},shadow$provide[218]=function(e,t,n,i){function r(){this.init(),this._w=l,a.call(this,64,56)}e=t(16);var a=t(216),o=t(24).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],l=Array(80);e(r,a),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(e){for(var t=this._w,n=0|this._a,i=0|this._b,r=0|this._c,a=0|this._d,o=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)e=t[l-3]^t[l-8]^t[l-14]^t[l-16],t[l]=e<<1|e>>>31;for(l=0;l<80;++l){e=(n<<5|n>>>27)+(0===(e=~~(l/20))?i&r|~i&a:2===e?i&r|i&a|r&a:i^r^a)+o+t[l]+s[e]|0,o=a,a=r,r=i<<30|i>>>2,i=n,n=e}this._a=n+this._a|0,this._b=i+this._b|0,this._c=r+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0},r.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},n.exports=r},shadow$provide[219]=function(e,t,n,i){function r(){this.init(),this._w=l,a.call(this,64,56)}e=t(16);var a=t(216),o=t(24).Buffer,p=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],l=Array(64);e(r,a),r.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},r.prototype._update=function(e){for(var t=this._w,n=0|this._a,i=0|this._b,r=0|this._c,a=0|this._d,o=0|this._e,l=0|this._f,s=0|this._g,c=0|this._h,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<64;++u){e=t[u-2];var d=t[u-15];t[u]=((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+t[u-7]+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3)+t[u-16]|0}for(u=0;u<64;++u)e=c+((o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7))+(s^o&(l^s))+p[u]+t[u]|0,d=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&i|r&(n|i))|0,c=s,s=l,l=o,o=a+e|0,a=r,r=i,i=n,n=e+d|0;this._a=n+this._a|0,this._b=i+this._b|0,this._c=r+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0,this._f=l+this._f|0,this._g=s+this._g|0,this._h=c+this._h|0},r.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},n.exports=r},shadow$provide[220]=function(e,t,n,i){function r(){this.init(),this._w=l,a.call(this,64,56)}e=t(16),i=t(219);var a=t(216),o=t(24).Buffer,l=Array(64);e(r,i),r.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},r.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},n.exports=r},shadow$provide[221]=function(e,t,n,i){function r(){this.init(),this._w=l,a.call(this,128,112)}function j(e,t){return e>>>0>>0?1:0}e=t(16);var a=t(216),o=t(24).Buffer,E=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],l=Array(160);e(r,a),r.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},r.prototype._update=function(e){for(var t=this._w,n=0|this._ah,i=0|this._bh,r=0|this._ch,a=0|this._dh,o=0|this._eh,l=0|this._fh,s=0|this._gh,c=0|this._hh,u=0|this._al,d=0|this._bl,p=0|this._cl,h=0|this._dl,f=0|this._el,g=0|this._fl,m=0|this._gl,y=0|this._hl,$=0;$<32;$+=2)t[$]=e.readInt32BE(4*$),t[$+1]=e.readInt32BE(4*$+4);for(;$<160;$+=2){e=t[$-30];var v=t[$-30+1],b=(e>>>1|v<<31)^(e>>>8|v<<24)^e>>>7,w=(v>>>1|e<<31)^(v>>>8|e<<24)^(v>>>7|e<<25),k=((e=t[$-4])>>>19|(v=t[$-4+1])<<13)^(v>>>29|e<<3)^e>>>6;v=(v>>>19|e<<13)^(e>>>29|v<<3)^(v>>>6|e<<26);var _=t[$-32],x=t[$-32+1];e=w+t[$-14+1]|0,b=(b=(b=b+t[$-14]+j(e,w)|0)+k+j(e=e+v|0,v)|0)+_+j(e=e+x|0,x)|0,t[$]=b,t[$+1]=e}for($=0;$<160;$+=2){b=t[$],e=t[$+1];var I=E[$+1],A=m^f&(g^m);w=(w=(w=(w=c+((o>>>14|f<<18)^(o>>>18|f<<14)^(f>>>9|o<<23))+j(k=y+((f>>>14|o<<18)^(f>>>18|o<<14)^(o>>>9|f<<23))|0,y)|0)+(s^o&(l^s))+j(k=k+A|0,A)|0)+E[$]+j(k=k+I|0,I)|0)+b+j(k=k+e|0,e)|0,b=(_=(n>>>28|u<<4)^(u>>>2|n<<30)^(u>>>7|n<<25))+(v=n&i|r&(n|i))+j(e=(x=(u>>>28|n<<4)^(n>>>2|u<<30)^(n>>>7|u<<25))+(u&d|p&(u|d))|0,x)|0,c=s,y=m,s=l,m=g,l=o,g=f,o=a+w+j(f=h+k|0,h)|0,a=r,h=p,r=i,p=d,i=n,d=u,n=w+b+j(u=k+e|0,k)|0}this._al=this._al+u|0,this._bl=this._bl+d|0,this._cl=this._cl+p|0,this._dl=this._dl+h|0,this._el=this._el+f|0,this._fl=this._fl+g|0,this._gl=this._gl+m|0,this._hl=this._hl+y|0,this._ah=this._ah+n+j(this._al,u)|0,this._bh=this._bh+i+j(this._bl,d)|0,this._ch=this._ch+r+j(this._cl,p)|0,this._dh=this._dh+a+j(this._dl,h)|0,this._eh=this._eh+o+j(this._el,f)|0,this._fh=this._fh+l+j(this._fl,g)|0,this._gh=this._gh+s+j(this._gl,m)|0,this._hh=this._hh+c+j(this._hl,y)|0},r.prototype._hash=function(){function e(e,t,n){i.writeInt32BE(e,n),i.writeInt32BE(t,n+4)}var i=o.allocUnsafe(64);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),i},n.exports=r},shadow$provide[222]=function(e,t,n,i){function r(){this.init(),this._w=l,a.call(this,128,112)}e=t(16),i=t(221);var a=t(216),o=t(24).Buffer,l=Array(160);e(r,i),r.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},r.prototype._hash=function(){function e(e,t,n){i.writeInt32BE(e,n),i.writeInt32BE(t,n+4)}var i=o.allocUnsafe(48);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),i},n.exports=r},shadow$provide[223]=function(e,t,n,i){(i=n.exports=function(e){e=e.toLowerCase();var t=i[e];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t}).sha=t(217),i.sha1=t(218),i.sha224=t(220),i.sha256=t(219),i.sha384=t(222),i.sha512=t(221)},shadow$provide[224]=function(e,t,n,i){function r(e){o.call(this),(this.hashMode="string"==typeof e)?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._encoding=this._decoder=null}var a=t(24).Buffer,o=t(42).Transform,l=t(33).StringDecoder;t(16)(r,o),r.prototype.update=function(e,t,n){return"string"==typeof e&&(e=a.from(e,t)),e=this._update(e),this.hashMode?this:(n&&(e=this._toString(e,n)),e)},r.prototype.setAutoPadding=function(){},r.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},r.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},r.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},r.prototype._transform=function(e,t,n){try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){var i=e}finally{n(i)}},r.prototype._flush=function(e){try{this.push(this.__final())}catch(e){var t=e}e(t)},r.prototype._finalOrDigest=function(e){var t=this.__final()||a.alloc(0);return e&&(t=this._toString(t,e,!0)),t},r.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new l(t),this._encoding=t),this._encoding!==t)throw Error("can't switch encodings");return e=this._decoder.write(e),n&&(e+=this._decoder.end()),e},n.exports=r},shadow$provide[225]=function(e,t,n,i){function r(e){s.call(this,"digest"),this._hash=e}e=t(16);var a=t(214),o=t(215),l=t(223),s=t(224);e(r,s),r.prototype._update=function(e){this._hash.update(e)},r.prototype._final=function(){return this._hash.digest()},n.exports=function(e){return"md5"===(e=e.toLowerCase())?new a:"rmd160"===e||"ripemd160"===e?new o:new r(l(e))}},shadow$provide[226]=function(e,t,n,i){var r=t(212),a=t(24).Buffer;n.exports=function(i){function t(e){var t=e.slice(0,-4);e=e.slice(-4);var n=i(t);if(!(e[0]^n[0]|e[1]^n[1]|e[2]^n[2]|e[3]^n[3]))return t}return{encode:function(e){var t=i(e);return r.encode(a.concat([e,t],e.length+4))},decode:function(e){if(!(e=t(e=r.decode(e))))throw Error("Invalid checksum");return e},decodeUnsafe:function(e){if(e=r.decodeUnsafe(e))return t(e)}}}},shadow$provide[227]=function(e,t,n,i){var r=t(225);e=t(226),n.exports=e(function(e){return e=r("sha256").update(e).digest(),r("sha256").update(e).digest()})},shadow$provide[228]=function(e,t,n,i){function r(e,t){if(e&&"object"==typeof e&&(t=e,e=null),t=t||{},!(this instanceof r))return new r(e,t);var n=t.tracker||{};n.getAnnounceOpts=n.getAnnounceOpts||function(){return{numwant:4}},t.iceServers&&(n.rtcConfig={iceServers:t.iceServers}),this.announce=t.announce||["wss://hub.bugout.link","wss://tracker.openwebtorrent.com","wss://tracker.btorrent.xyz"],this.wt=t.wt||new l({tracker:n}),this.nacl=w,this.seed=t.seed?t.seed:this.encodeseed(w.randomBytes(32)),this.timeout=t.timeout||A,this.keyPair=t.keyPair||w.sign.keyPair.fromSeed(Uint8Array.from(_.decode(this.seed)).slice(2)),this.keyPairEncrypt=w.box.keyPair(),this.pk=k.encode(o.from(this.keyPair.publicKey)),this.ek=k.encode(o.from(this.keyPairEncrypt.publicKey)),this.identifier=e||this.address(),this.peers={},this.seen={},this.lastwirecount=null,this.api={},this.callbacks={},this.heartbeattimer=this.serveraddress=null,v("address",this.address()),v("identifier",this.identifier),v("public key",this.pk),v("encryption key",this.ek),"object"==typeof File?e=new File([this.identifier],this.identifier):(e=new o.from(this.identifier)).name=this.identifier,(e=this.wt.seed(e,{name:this.identifier,announce:this.announce},$(function(t,e){v("torrent",t.identifier,e),t.emit("torrent",t.identifier,e),e.discovery.tracker&&e.discovery.tracker.on("update",function(e){t.emit("tracker",t.identifier,e)}),e.discovery.on("trackerAnnounce",function(){t.emit("announce",t.identifier),t.connections()})},this))).on("wire",$(a,this,this.identifier)),this.torrent=e,t.heartbeat&&this.heartbeat(t.heartbeat)}function d(e,t){var n,i={t:m(),i:e.identifier,pk:e.pk,ek:e.ek,n:w.randomBytes(8)};for(n in t)i[n]=t[n];return pe=b.encode(i),b.encode({s:w.sign.detached(pe,e.keyPair.secretKey),p:pe})}function p(e,t,n){if(!e.peers[e.address(t)])throw e.address(t)+" not seen - no encryption key.";var i=w.randomBytes(w.box.nonceLength);return n=b.encode({n:i,ek:k.encode(o.from(e.keyPairEncrypt.publicKey)),e:w.box(n,i,k.decode(e.peers[e.address(t)].ek),e.keyPairEncrypt.secretKey)})}function h(e,t){e=e.torrent.wires;for(var n=0;nr,v("packet",s),a&&o&&r)if(f(e,l,o=s.ek.toString(),t),"m"==s.y){v("message",t,s);var c=s.v.toString(),u=null;try{u=JSON.parse(c)}catch(e){v("Malformed message JSON: "+c)}u&&e.emit("message",e.address(l),u,s)}else if("r"==s.y){v("rpc",t,s),u=s.c.toString(),t=s.a.toString();try{c=JSON.parse(t)}catch(e){c=null,v("Malformed args JSON: "+t)}t=s.rn,e.emit("rpc",e.address(l),u,c,y(t)),function(e,t,n,i,r){var a={y:"rr",rn:r};e.api[n]?e.api[n](e.address(t),i,function(e){a.rr=JSON.stringify(e)}):a.rr=JSON.stringify({error:"No such API call."});a=d(e,a),a=p(e,t,a),h(e,a)}(e,l,u,c,t)}else if("rr"==s.y)if(t=y(s.rn),e.callbacks[t]){s=s.rr.toString();try{u=JSON.parse(s)}catch(e){v("Malformed response JSON: "+s),u=null}e.callbacks[t]&&u?(v("rpc-response",e.address(l),t,u),e.emit("rpc-response",e.address(l),t,u),e.callbacks[t](u),delete e.callbacks[t]):v("RPC response nonce not known:",t)}else v("dropped response with no callback.",t);else"p"==s.y?(l=e.address(l),v("ping from",l),e.emit("ping",l)):"x"==s.y?(l=e.address(l),v("got left from",l),delete e.peers[l],e.emit("left",l)):v("unknown packet type");else v("dropping bad packet",n,a,o,r)}else v("skipping packet with no payload",n,a);h(e,i)}e.seen[n]=m()}function f(e,t,n,i){v("sawPeer",e.address(t),n),i=m();var r=e.address(t);r!=e.address()&&(!e.peers[r]||e.peers[r].last+e.timeout=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e+(e<0?-.5:.5)|0},i.distance=function(e,t,n,i){return e-=n,t-=i,Math.sqrt(e*e+t*t)},i.sum=function(e){for(var t=0,n=0,i=e.length;n!==i;n++)t+=e[n];return t},t.default=i},function(e,t,n){function i(){return null!==a&&a.apply(this,arguments)||this}var r,a;e=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),n=n(7),e(i,a=n.default),i.getChecksumInstance=function(){return new i},n=i,t.default=n},function(e,t,n){function c(e,t,n,i){if(this.width=e,this.height=t,this.rowSize=n,this.bits=i,null==t&&(t=e),this.height=t,e<1||t<1)throw new d.default("Both dimensions must be greater than 0");null==n&&(n=Math.floor((e+31)/32)),this.rowSize=n,null==i&&(this.bits=new Int32Array(this.rowSize*this.height))}Object.defineProperty(t,"__esModule",{value:!0});var u=n(18),i=n(6),r=n(19),s=n(5),d=n(1);c.parseFromBooleanArray=function(e){for(var t=e.length,n=e[0].length,i=new c(n,t),r=0;r>>(31&e)&1)},c.prototype.set=function(e,t){this.bits[t*this.rowSize+Math.floor(e/32)]|=1<<(31&e)&4294967295},c.prototype.unset=function(e,t){this.bits[t*this.rowSize+Math.floor(e/32)]&=~(1<<(31&e)&4294967295)},c.prototype.flip=function(e,t){this.bits[t*this.rowSize+Math.floor(e/32)]^=1<<(31&e)&4294967295},c.prototype.xor=function(e){if(this.width!==e.getWidth()||this.height!==e.getHeight()||this.rowSize!==e.getRowSize())throw new d.default("input matrix dimensions do not match");for(var t=new u.default(Math.floor(this.width/32)+1),n=this.rowSize,i=this.bits,r=0,a=this.height;rthis.height||n>this.width)throw new d.default("The region must fit inside the matrix");for(var r=this.rowSize,a=this.bits;t>>u;)u--;a<32*s+u&&(a=32*s+u)}}}return a>>n;)n--;return e+=n,Int32Array.from([e,i])},c.prototype.getWidth=function(){return this.width},c.prototype.getHeight=function(){return this.height},c.prototype.getRowSize=function(){return this.rowSize},c.prototype.equals=function(e){return e instanceof c&&(this.width===e.width&&this.height===e.height&&this.rowSize===e.rowSize&&r.default.equals(this.bits,e.bits))},c.prototype.hashCode=function(){return 31*(31*(31*(31*this.width+this.width)+this.height)+this.rowSize)+r.default.hashCode(this.bits)},c.prototype.toString=function(e,t,n){return void 0===e&&(e="X "),void 0===t&&(t=" "),void 0===n&&(n="\n"),this.buildToString(e,t,n)},c.prototype.buildToString=function(e,t,n){for(var i=new s.default,r=0,a=this.height;r>>31)},i.numberOfLeadingZeros=function(e){if(0===e)return 32;var t=1;return 0==e>>>16&&(t+=16,e<<=16),0==e>>>24&&(t+=8,e<<=8),0==e>>>28&&(t+=4,e<<=4),0==e>>>30&&(t+=2,e<<=2),t-(e>>>31)},i.toHexString=function(e){return e.toString(16)},i.toBinaryString=function(e){return String(parseInt(String(e),2))},i.bitCount=function(e){return e=(e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135,63&(e+=e>>>8)+(e>>>16)},i.truncDivision=function(e,t){return Math.trunc(e/t)},i.parseInt=function(e,t){return void 0===t&&(t=void 0),parseInt(e,t)},i.MIN_VALUE_32_BITS=-2147483648,i.MAX_VALUE=Number.MAX_SAFE_INTEGER,t.default=i},function(e,t,n){var i,r;Object.defineProperty(t,"__esModule",{value:!0}),(r=i=i||{})[r.OTHER=0]="OTHER",r[r.ORIENTATION=1]="ORIENTATION",r[r.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",r[r.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",r[r.ISSUE_NUMBER=4]="ISSUE_NUMBER",r[r.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",r[r.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",r[r.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",r[r.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",r[r.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",r[r.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY",t.default=i},function(e,t,n){function a(){}Object.defineProperty(t,"__esModule",{value:!0});var f=n(18),g=n(8),m=n(14),y=n(4),$=n(0);a.prototype.decode=function(t,n){try{return this.doDecode(t,n)}catch(e){if(n&&!0===n.get(g.default.TRY_HARDER)&&t.isRotateSupported()){t=t.rotateCounterClockwise();var i=(n=this.doDecode(t,n)).getResultMetadata(),r=270;if(null!==i&&!0===i.get(m.default.ORIENTATION)&&(r+=i.get(m.default.ORIENTATION)%360),n.putMetadata(m.default.ORIENTATION,r),null!==(i=n.getResultPoints()))for(t=t.getHeight(),r=0;r>(n?8:5));n=n?t:15;for(var l=Math.trunc(t/2),s=0;so[0]&&t[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(36),o=n(55),s=n(11),l=n(56),c=n(2),u=n(0),d=n(59),p=n(60);Object.defineProperty(i.prototype,"hasNavigator",{get:function(){return"undefined"!=typeof navigator},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"canEnumerateDevices",{get:function(){return!(!this.isMediaDevicesSuported||!navigator.mediaDevices.enumerateDevices)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(e){this._timeBetweenDecodingAttempts=e<0?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hints",{get:function(){return this._hints},set:function(e){this._hints=e||null},enumerable:!0,configurable:!0}),i.prototype.listVideoInputDevices=function(){return a(this,void 0,void 0,function(){var t,n,i,r,a,o,l,s,c,u,d,p;return h(this,function(e){switch(e.label){case 0:if(!this.hasNavigator)throw Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:i=e.sent(),r=[];try{for(a=f(i),o=a.next();!o.done;o=a.next())l=o.value,"videoinput"===(s="video"===l.kind?"videoinput":l.kind)&&(c=l.deviceId||l.id,u=l.label||"Video device "+(r.length+1),d=l.groupId,p={deviceId:c,label:u,kind:s,groupId:d},r.push(p))}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return[2,r]}})})},i.prototype.getVideoInputDevices=function(){return a(this,void 0,void 0,function(){return h(this,function(e){switch(e.label){case 0:return[4,this.listVideoInputDevices()];case 1:return[2,e.sent().map(function(e){return new p.VideoInputDevice(e.deviceId,e.label)})]}})})},i.prototype.findDeviceById=function(n){return a(this,void 0,void 0,function(){var t;return h(this,function(e){switch(e.label){case 0:return[4,this.listVideoInputDevices()];case 1:return(t=e.sent())?[2,t.find(function(e){return e.deviceId===n})]:[2,null]}})})},i.prototype.decodeFromInputVideoDevice=function(t,n){return a(this,void 0,void 0,function(){return h(this,function(e){switch(e.label){case 0:return[4,this.decodeOnceFromVideoDevice(t,n)];case 1:return[2,e.sent()]}})})},i.prototype.decodeOnceFromVideoDevice=function(n,i){return a(this,void 0,void 0,function(){var t;return h(this,function(e){switch(e.label){case 0:return this.reset(),t={video:n?{deviceId:{exact:n}}:{facingMode:"environment"}},[4,this.decodeOnceFromConstraints(t,i)];case 1:return[2,e.sent()]}})})},i.prototype.decodeOnceFromConstraints=function(n,i){return a(this,void 0,void 0,function(){var t;return h(this,function(e){switch(e.label){case 0:return[4,navigator.mediaDevices.getUserMedia(n)];case 1:return t=e.sent(),[4,this.decodeOnceFromStream(t,i)];case 2:return[2,e.sent()]}})})},i.prototype.decodeOnceFromStream=function(n,i){return a(this,void 0,void 0,function(){var t;return h(this,function(e){switch(e.label){case 0:return this.reset(),[4,this.attachStreamToVideo(n,i)];case 1:return t=e.sent(),[4,this.decodeOnce(t)];case 2:return[2,e.sent()]}})})},i.prototype.decodeFromInputVideoDeviceContinuously=function(t,n,i){return a(this,void 0,void 0,function(){return h(this,function(e){switch(e.label){case 0:return[4,this.decodeFromVideoDevice(t,n,i)];case 1:return[2,e.sent()]}})})},i.prototype.decodeFromVideoDevice=function(n,i,r){return a(this,void 0,void 0,function(){var t;return h(this,function(e){switch(e.label){case 0:return t={video:n?{deviceId:{exact:n}}:{facingMode:"environment"}},[4,this.decodeFromConstraints(t,i,r)];case 1:return[2,e.sent()]}})})},i.prototype.decodeFromConstraints=function(n,i,r){return a(this,void 0,void 0,function(){var t;return h(this,function(e){switch(e.label){case 0:return[4,navigator.mediaDevices.getUserMedia(n)];case 1:return t=e.sent(),[4,this.decodeFromStream(t,i,r)];case 2:return[2,e.sent()]}})})},i.prototype.decodeFromStream=function(n,i,r){return a(this,void 0,void 0,function(){var t;return h(this,function(e){switch(e.label){case 0:return this.reset(),[4,this.attachStreamToVideo(n,i)];case 1:return t=e.sent(),[4,this.decodeContinuously(t,r)];case 2:return[2,e.sent()]}})})},i.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},i.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},i.prototype.attachStreamToVideo=function(n,i){return a(this,void 0,void 0,function(){var t;return h(this,function(e){switch(e.label){case 0:return t=this.prepareVideoElement(i),this.addVideoSource(t,n),this.videoElement=t,this.stream=n,[4,this.playVideoOnLoadAsync(t)];case 1:return e.sent(),[2,t]}})})},i.prototype.playVideoOnLoadAsync=function(n){var i=this;return new Promise(function(e,t){return i.playVideoOnLoad(n,function(){return e()})})},i.prototype.playVideoOnLoad=function(e,t){var n=this;this.videoEndedListener=function(){return n.stopStreams()},this.videoCanPlayListener=function(){return n.tryPlayVideo(e)},e.addEventListener("ended",this.videoEndedListener),e.addEventListener("canplay",this.videoCanPlayListener),e.addEventListener("playing",t),this.tryPlayVideo(e)},i.prototype.isVideoPlaying=function(e){return 032*this.bits.length&&(e=i.makeArray(e),r.default.arraycopy(this.bits,0,e,0,this.bits.length),this.bits=e)},i.prototype.get=function(e){return 0!=(this.bits[Math.floor(e/32)]&1<<(31&e))},i.prototype.set=function(e){this.bits[Math.floor(e/32)]|=1<<(31&e)},i.prototype.flip=function(e){this.bits[Math.floor(e/32)]^=1<<(31&e)},i.prototype.getNextSet=function(e){var t=this.size;if(t<=e)return t;var n=this.bits,i=Math.floor(e/32),r=n[i];for(r&=~((1<<(31&e))-1),e=n.length;0===r;){if(++i===e)return t;r=n[i]}return t<(n=32*i+a.default.numberOfTrailingZeros(r))?t:n},i.prototype.getNextUnset=function(e){var t=this.size;if(t<=e)return t;var n=this.bits,i=Math.floor(e/32),r=~n[i];for(r&=~((1<<(31&e))-1),e=n.length;0===r;){if(++i===e)return t;r=~n[i]}return t<(n=32*i+a.default.numberOfTrailingZeros(r))?t:n},i.prototype.setBulk=function(e,t){this.bits[Math.floor(e/32)]=t},i.prototype.setRange=function(e,t){if(tthis.size)throw new s.default;if(t!==e){t--;for(var n=Math.floor(e/32),i=Math.floor(t/32),r=this.bits,a=n;a<=i;a++)r[a]|=(2<<(athis.size)throw new s.default;if(t===e)return!0;t--;for(var i=Math.floor(e/32),r=Math.floor(t/32),a=this.bits,o=i;o<=r;o++){var l=(2<<(o>t-1&1))},i.prototype.appendBitArray=function(e){var t=e.size;this.ensureCapacity(this.size+t),this.appendBit;for(var n=0;n>1&1431655765|(1431655765&a)<<1)>>2&858993459|(858993459&a)<<2)>>4&252645135|(252645135&a)<<4)>>8&16711935|(16711935&a)<<8)>>16&65535|(65535&a)<<16,e[t-r]=a}if(this.size!==32*n){for(t=32*n-this.size,i=e[0]>>>t,r=1;r>>t;e[n-1]=i}this.bits=e},i.makeArray=function(e){return new Int32Array(Math.floor((e+31)/32))},i.prototype.equals=function(e){return e instanceof i&&(this.size===e.size&&o.default.equals(this.bits,e.bits))},i.prototype.hashCode=function(){return 31*this.size+o.default.hashCode(this.bits)},i.prototype.toString=function(){for(var e="",t=0,n=this.size;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=n(1),a=n(96);l.fill=function(e,t){for(var n=0,i=e.length;n toIndex("+n+")");if(t<0)throw new a.default(t);if(e>1,o=n(t,e[a]);if(0=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),r=n(10);s.prototype.PDF417Common=function(){},s.getBitCountSum=function(e){return r.default.sum(e)},s.toIntArray=function(e){var t;if(null==e||!e.length)return s.EMPTY_INT_ARRAY;var n=new Int32Array(e.length),i=0;try{for(var r=c(e),a=r.next();!a.done;a=r.next()){var o=a.value;n[i++]=o}}catch(e){var l={error:e}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(l)throw l.error}}return n},s.getCodeword=function(e){return(e=i.default.binarySearch(s.SYMBOL_TABLE,262143&e))<0?-1:(s.CODEWORD_TABLE[e]-1)%s.NUMBER_OF_CODEWORDS},s.MAX_CODEWORDS_IN_BARCODE=(s.NUMBER_OF_CODEWORDS=929)-1,s.MIN_ROWS_IN_BARCODE=3,s.MAX_ROWS_IN_BARCODE=90,s.MODULES_IN_CODEWORD=17,s.MODULES_IN_STOP_PATTERN=18,s.BARS_IN_MODULE=8,s.EMPTY_INT_ARRAY=new Int32Array([]),s.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),s.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]),t.default=s},function(e,t,n){function d(e,t,n){for(var i,r,a=[],o=3;o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(2);(i=e=t.CharacterSetValueIdentifiers||(t.CharacterSetValueIdentifiers={}))[i.Cp437=0]="Cp437",i[i.ISO8859_1=1]="ISO8859_1",i[i.ISO8859_2=2]="ISO8859_2",i[i.ISO8859_3=3]="ISO8859_3",i[i.ISO8859_4=4]="ISO8859_4",i[i.ISO8859_5=5]="ISO8859_5",i[i.ISO8859_6=6]="ISO8859_6",i[i.ISO8859_7=7]="ISO8859_7",i[i.ISO8859_8=8]="ISO8859_8",i[i.ISO8859_9=9]="ISO8859_9",i[i.ISO8859_10=10]="ISO8859_10",i[i.ISO8859_11=11]="ISO8859_11",i[i.ISO8859_13=12]="ISO8859_13",i[i.ISO8859_14=13]="ISO8859_14",i[i.ISO8859_15=14]="ISO8859_15",i[i.ISO8859_16=15]="ISO8859_16",i[i.SJIS=16]="SJIS",i[i.Cp1250=17]="Cp1250",i[i.Cp1251=18]="Cp1251",i[i.Cp1252=19]="Cp1252",i[i.Cp1256=20]="Cp1256",i[i.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",i[i.UTF8=22]="UTF8",i[i.ASCII=23]="ASCII",i[i.Big5=24]="Big5",i[i.GB18030=25]="GB18030",i[i.EUC_KR=26]="EUC_KR",d.prototype.getValueIdentifier=function(){return this.valueIdentifier},d.prototype.getName=function(){return this.name},d.prototype.getValue=function(){return this.values[0]},d.getCharacterSetECIByValue=function(e){if(e<0||900<=e)throw new r.default("incorect value");if(void 0===(e=d.VALUES_TO_ECI.get(e)))throw new r.default("incorect value");return e},d.getCharacterSetECIByName=function(e){if(void 0===(e=d.NAME_TO_ECI.get(e)))throw new r.default("incorect value");return e},d.prototype.equals=function(e){return e instanceof d&&this.getName()===e.getName()},d.VALUE_IDENTIFIER_TO_ECI=new Map,d.VALUES_TO_ECI=new Map,d.NAME_TO_ECI=new Map,d.Cp437=new d(e.Cp437,Int32Array.from([0,2]),"Cp437"),d.ISO8859_1=new d(e.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),d.ISO8859_2=new d(e.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),d.ISO8859_3=new d(e.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),d.ISO8859_4=new d(e.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),d.ISO8859_5=new d(e.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),d.ISO8859_6=new d(e.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),d.ISO8859_7=new d(e.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),d.ISO8859_8=new d(e.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),d.ISO8859_9=new d(e.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),d.ISO8859_10=new d(e.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),d.ISO8859_11=new d(e.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),d.ISO8859_13=new d(e.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),d.ISO8859_14=new d(e.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),d.ISO8859_15=new d(e.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),d.ISO8859_16=new d(e.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),d.SJIS=new d(e.SJIS,20,"SJIS","Shift_JIS"),d.Cp1250=new d(e.Cp1250,21,"Cp1250","windows-1250"),d.Cp1251=new d(e.Cp1251,22,"Cp1251","windows-1251"),d.Cp1252=new d(e.Cp1252,23,"Cp1252","windows-1252"),d.Cp1256=new d(e.Cp1256,24,"Cp1256","windows-1256"),d.UnicodeBigUnmarked=new d(e.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),d.UTF8=new d(e.UTF8,26,"UTF8","UTF-8"),d.ASCII=new d(e.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),d.Big5=new d(e.Big5,28,"Big5"),d.GB18030=new d(e.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),d.EUC_KR=new d(e.EUC_KR,30,"EUC_KR","EUC-KR"),i=d,t.default=i},function(e,t,n){function a(){}Object.defineProperty(t,"__esModule",{value:!0});var o=n(38),l=n(22);a.decode=function(e,t){return t=this.encodingName(t),this.customDecoder?this.customDecoder(e,t):"undefined"==typeof TextDecoder||this.shouldDecodeOnFallback(t)?this.decodeFallback(e,t):new TextDecoder(t).decode(e)},a.shouldDecodeOnFallback=function(e){return!a.isBrowser()&&"ISO-8859-1"===e},a.encode=function(e,t){return t=this.encodingName(t),this.customEncoder?this.customEncoder(e,t):"undefined"==typeof TextEncoder?this.encodeFallback(e):(new TextEncoder).encode(e)},a.isBrowser=function(){return"undefined"!=typeof window&&"[object Window]"==={}.toString.call(window)},a.encodingName=function(e){return"string"==typeof e?e:e.getName()},a.encodingCharacterSet=function(e){return e instanceof l.default?e:l.default.getCharacterSetECIByName(e)},a.decodeFallback=function(e,t){var n=this.encodingCharacterSet(t);if(a.isDecodeFallbackSupported(n)){t="",n=0;for(var i=e.length;n=(n/2|0);){var o=e,l=r;if(r=a,(e=t).isZero())throw new u.default("r_{i-1} was zero");for(t=o,a=i.getZero(),o=e.getCoefficient(e.getDegree()),o=i.inverse(o);t.getDegree()>=e.getDegree()&&!t.isZero();){var s=t.getDegree()-e.getDegree(),c=i.multiply(t.getCoefficient(t.getDegree()),o);a=a.addOrSubtract(i.buildMonomial(s,c)),t=t.addOrSubtract(e.multiplyByMonomial(s,c))}if(a=a.multiply(r).addOrSubtract(l),t.getDegree()>=e.getDegree())throw new d.default("Division algorithm failed to reduce polynomial?")}if(0===(n=a.getCoefficient(0)))throw new u.default("sigmaTilde(0) was zero");return n=i.inverse(n),[a.multiplyScalar(n),t.multiplyScalar(n)]},i.prototype.findErrorLocations=function(e){var t=e.getDegree();if(1===t)return Int32Array.from([e.getCoefficient(1)]);for(var n=new Int32Array(t),i=0,r=this.field,a=1;ae.length){var n=t;t=e,e=n}n=new Int32Array(e.length);var i=e.length-t.length;a.default.arraycopy(e,0,n,0,i);for(var r=i;r=e.getDegree()&&!i.isZero();){var a=i.getDegree()-e.getDegree(),o=t.multiply(i.getCoefficient(i.getDegree()),r),l=e.multiplyByMonomial(a,o);a=t.buildMonomial(a,o),n=n.addOrSubtract(a),i=i.addOrSubtract(l)}return[n,i]},c.prototype.toString=function(){for(var e="",t=this.getDegree();0<=t;t--){var n=this.getCoefficient(t);0!==n&&(n<0?(e+=" - ",n=-n):0=i.FOR_BITS.size)throw new o.default;return i.FOR_BITS.get(e)},i.FOR_BITS=new Map,i.FOR_VALUE=new Map,i.L=new i(e.L,"L",1),i.M=new i(e.M,"M",0),i.Q=new i(e.Q,"Q",3),i.H=new i(e.H,"H",2),r=i,t.default=r},function(e,t,n){var i,r;Object.defineProperty(t,"__esModule",{value:!0}),(r=i=i||{})[r.ERROR_CORRECTION=0]="ERROR_CORRECTION",r[r.CHARACTER_SET=1]="CHARACTER_SET",r[r.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",r[r.MIN_SIZE=3]="MIN_SIZE",r[r.MAX_SIZE=4]="MAX_SIZE",r[r.MARGIN=5]="MARGIN",r[r.PDF417_COMPACT=6]="PDF417_COMPACT",r[r.PDF417_COMPACTION=7]="PDF417_COMPACTION",r[r.PDF417_DIMENSIONS=8]="PDF417_DIMENSIONS",r[r.AZTEC_LAYERS=9]="AZTEC_LAYERS",r[r.QR_VERSION=10]="QR_VERSION",t.default=i},function(e,t,n){function a(e){return r.call(this,e)||this}var i,r;e=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),n=n(89),e(a,r=n.default),a.prototype.encodeCompressedGtin=function(e,t){e.append("(01)");var n=e.length();e.append("9"),this.encodeCompressedGtinWithoutAI(e,t,n)},a.prototype.encodeCompressedGtinWithoutAI=function(e,t,n){for(var i=0;i<4;++i){var r=this.getGeneralDecoder().extractNumericValueFromBitArray(t+10*i,10);0==r/100&&e.append("0"),0==r/10&&e.append("0"),e.append(r)}a.appendCheckDigit(e,n)},a.appendCheckDigit=function(e,t){for(var n=0,i=0;i<13;i++){var r=e.charAt(i+t).charCodeAt(0)-48;n+=0==(1&i)?3*r:r}10==(n=10-n%10)&&(n=0),e.append(n)},a.GTIN_SIZE=40,n=a,t.default=n},function(e,t,n){function i(){return null!==a&&a.apply(this,arguments)||this}var r,a;e=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),n=n(7),e(i,a=n.default),n=i,t.default=n},function(e,t,n){function i(){return null!==a&&a.apply(this,arguments)||this}var r,a;e=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),n=n(7),e(i,a=n.default),n=i,t.default=n},function(e,t,n){function i(){return null!==a&&a.apply(this,arguments)||this}var r,a;e=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),n=n(7),e(i,a=n.default),n=i,t.default=n},function(e,t,n){function i(){}Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),l=n(3),r=n(8),s=n(14),c=n(6),u=n(97),d=n(98);i.prototype.decode=function(e,t){void 0===t&&(t=null);var n=null,i=new d.default(e.getBlackMatrix()),r=null;e=null;try{r=(a=i.detectMirror(!1)).getPoints(),this.reportFoundResultPoints(t,r),e=(new u.default).decode(a)}catch(e){n=e}if(null==e)try{var a;r=(a=i.detectMirror(!0)).getPoints(),this.reportFoundResultPoints(t,r),e=(new u.default).decode(a)}catch(e){if(null!=n)throw n;throw e}return t=new o.default(e.getText(),e.getRawBytes(),e.getNumBits(),r,l.default.AZTEC,c.default.currentTimeMillis()),null!=(n=e.getByteSegments())&&t.putMetadata(s.default.BYTE_SEGMENTS,n),null!=(e=e.getECLevel())&&t.putMetadata(s.default.ERROR_CORRECTION_LEVEL,e),t},i.prototype.reportFoundResultPoints=function(e,t){if(null!=e){var i=e.get(r.default.NEED_RESULT_POINT_CALLBACK);null!=i&&t.forEach(function(e,t,n){i.foundPossibleResultPoint(e)})}},i.prototype.reset=function(){},t.default=i},function(e,t,n){function i(){return null!==a&&a.apply(this,arguments)||this}var r,a;e=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),n=n(7),e(i,a=n.default),n=i,t.default=n},function(e,t,n){function c(e,t,n,i){if(this.image=e,this.height=e.getHeight(),this.width=e.getWidth(),null==t&&(t=c.INIT_SIZE),null==n&&(n=e.getWidth()/2|0),null==i&&(i=e.getHeight()/2|0),e=t/2|0,this.leftInit=n-e,this.rightInit=n+e,this.upInit=i-e,this.downInit=i+e,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new f.default}Object.defineProperty(t,"__esModule",{value:!0});var u=n(4),d=n(10),f=n(0);c.prototype.detect=function(){for(var e=this.leftInit,t=this.rightInit,n=this.upInit,i=this.downInit,r=!1,a=!0,o=!1,l=!1,s=!1,c=!1,u=!1,d=this.width,p=this.height;a;){for(var h=!(a=!1);(h||!l)&&tthis.available())throw new s.default(""+e);var t=0,n=this.bitOffset,i=this.byteOffset,r=this.bytes;if(0>8-a<<(l=t-a);t=(r[i]&o)>>l,e-=a,8===(n+=a)&&(n=0,i++)}if(0>(l=8-e)<>l,n+=e)}return this.bitOffset=n,this.byteOffset=i,t},i.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},t.default=i},function(e,t,n){function i(){this.decoder=new s.default}Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=n(8),o=n(9),l=n(14),u=n(12),s=n(115),c=n(77),d=n(122),p=n(0);i.prototype.getDecoder=function(){return this.decoder},i.prototype.decode=function(e,t){e=null!=t&&void 0!==t.get(a.default.PURE_BARCODE)?(e=i.extractPureBits(e.getBlackMatrix()),t=this.decoder.decodeBitMatrix(e,t),i.NO_POINTS):(e=new d.default(e.getBlackMatrix()).detect(t),t=this.decoder.decodeBitMatrix(e.getBits(),t),e.getPoints()),t.getOther()instanceof c.default&&t.getOther().applyMirroredCorrection(e),e=new o.default(t.getText(),t.getRawBytes(),void 0,e,r.default.QR_CODE,void 0);var n=t.getByteSegments();return null!==n&&e.putMetadata(l.default.BYTE_SEGMENTS,n),null!==(n=t.getECLevel())&&e.putMetadata(l.default.ERROR_CORRECTION_LEVEL,n),t.hasStructuredAppend()&&(e.putMetadata(l.default.STRUCTURED_APPEND_SEQUENCE,t.getStructuredAppendSequenceNumber()),e.putMetadata(l.default.STRUCTURED_APPEND_PARITY,t.getStructuredAppendParity())),e},i.prototype.reset=function(){},i.extractPureBits=function(e){var t=e.getTopLeftOnBit(),n=e.getBottomRightOnBit();if(null===t||null===n)throw new p.default;var i=this.moduleSize(t,e),r=t[1],a=n[1];t=t[0];var o=n[0];if(o<=t||a<=r)throw new p.default;if(a-r!=o-t&&(o=t+(a-r))>=e.getWidth())throw new p.default;n=Math.round((o-t+1)/i);var l=Math.round((a-r+1)/i);if(n<=0||l<=0)throw new p.default;if(l!==n)throw new p.default;var s=Math.floor(i/2);if(r+=s,0<(o=(t+=s)+Math.floor((n-1)*i)-o)){if(s=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),l=n(76);e=n(117);var i=n(118),r=n(2),s=n(1);a.prototype.getVersionNumber=function(){return this.versionNumber},a.prototype.getAlignmentPatternCenters=function(){return this.alignmentPatternCenters},a.prototype.getTotalCodewords=function(){return this.totalCodewords},a.prototype.getDimensionForVersion=function(){return 17+4*this.versionNumber},a.prototype.getECBlocksForLevel=function(e){return this.ecBlocks[e.getValue()]},a.getProvisionalVersionForDimension=function(e){if(1!=e%4)throw new r.default;try{return this.getVersionForNumber((e-17)/4)}catch(e){throw new r.default}},a.getVersionForNumber=function(e){if(e<1||40=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(34),_=n(18),s=n(22),a=n(20),o=n(85),c=n(78),u=n(48),i=n(86),d=n(150),p=n(51),h=n(151),f=n(23),x=n(152),I=n(52);w.calculateMaskPenalty=function(e){return i.default.applyMaskPenaltyRule1(e)+i.default.applyMaskPenaltyRule2(e)+i.default.applyMaskPenaltyRule3(e)+i.default.applyMaskPenaltyRule4(e)},w.encode=function(e,t,n){void 0===n&&(n=null);var i=w.DEFAULT_BYTE_MODE_ENCODING,r=null!==n&&void 0!==n.get(l.default.CHARACTER_SET);r&&(i=n.get(l.default.CHARACTER_SET).toString());var a=this.chooseMode(e,i),o=new _.default;if(a!==c.default.BYTE||!r&&w.DEFAULT_BYTE_MODE_ENCODING===i||void 0!==(r=s.default.getCharacterSetECIByName(i))&&this.appendECI(r,o),this.appendModeInfo(a,o),r=new _.default,this.appendBytes(e,a,r,i),null!==n&&void 0!==n.get(l.default.QR_VERSION)){if(n=Number.parseInt(n.get(l.default.QR_VERSION).toString(),10),n=u.default.getVersionForNumber(n),i=this.calculateBitsNeeded(a,o,r,n),!this.willFit(i,n,t))throw new I.default("Data too big for requested version")}else n=this.recommendVersion(t,a,o,r);return(i=new _.default).appendBitArray(o),e=a===c.default.BYTE?r.getSizeInBytes():e.length,this.appendLengthInfo(e,n,a,i),i.appendBitArray(r),e=n.getECBlocksForLevel(t),o=n.getTotalCodewords()-e.getTotalECCodewords(),this.terminateBits(o,i),e=this.interleaveWithECBytes(i,n.getTotalCodewords(),o,e.getNumBlocks()),(o=new p.default).setECLevel(t),o.setMode(a),o.setVersion(n),a=n.getDimensionForVersion(),a=new d.default(a,a),r=this.chooseMaskPattern(e,t,n,a),o.setMaskPattern(r),h.default.buildMatrix(e,t,n,r,a),o.setMatrix(a),o},w.recommendVersion=function(e,t,n,i){var r=this.calculateBitsNeeded(t,n,i,u.default.getVersionForNumber(1));return r=this.chooseVersion(r,e),t=this.calculateBitsNeeded(t,n,i,r),this.chooseVersion(t,e)},w.calculateBitsNeeded=function(e,t,n,i){return t.getSize()+e.getCharacterCountBits(i)+n.getSize()},w.getAlphanumericCode=function(e){return en)throw new I.default("data bits cannot fit in the QR Code"+t.getSize()+" > "+n);for(var i=0;i<4&&t.getSize()>8)+(255&a),13)}},w.appendECI=function(e,t){t.appendBits(c.default.ECI.getBits(),4),t.appendBits(e.getValue(),8)},w.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),w.DEFAULT_BYTE_MODE_ENCODING=s.default.UTF8.getName(),t.default=w},function(e,t,n){function i(){this.maskPattern=-1}Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);i.prototype.getMode=function(){return this.mode},i.prototype.getECLevel=function(){return this.ecLevel},i.prototype.getVersion=function(){return this.version},i.prototype.getMaskPattern=function(){return this.maskPattern},i.prototype.getMatrix=function(){return this.matrix},i.prototype.toString=function(){var e=new r.default;return e.append("<<\n"),e.append(" mode: "),e.append(this.mode?this.mode.toString():"null"),e.append("\n ecLevel: "),e.append(this.ecLevel?this.ecLevel.toString():"null"),e.append("\n version: "),e.append(this.version?this.version.toString():"null"),e.append("\n maskPattern: "),e.append(this.maskPattern.toString()),this.matrix?(e.append("\n matrix:\n"),e.append(this.matrix.toString())):e.append("\n matrix: null\n"),e.append(">>\n"),e.toString()},i.prototype.setMode=function(e){this.mode=e},i.prototype.setECLevel=function(e){this.ecLevel=e},i.prototype.setVersion=function(e){this.version=e},i.prototype.setMaskPattern=function(e){this.maskPattern=e},i.prototype.setMatrix=function(e){this.matrix=e},i.isValidMaskPattern=function(e){return 0<=e&&e>y.BLOCK_SIZE_POWER;0!=(t&y.BLOCK_SIZE_MASK)&&i++;var r=n>>y.BLOCK_SIZE_POWER;0!=(n&y.BLOCK_SIZE_MASK)&&r++;var a=y.calculateBlackPoints(e,i,r,t,n),o=new s.default(t,n);y.calculateThresholdForBlock(e,i,r,t,n,a,o),this.matrix=o}else this.matrix=l.prototype.getBlackMatrix.call(this);return this.matrix},y.prototype.createBinarizer=function(e){return new y(e)},y.calculateThresholdForBlock=function(e,t,n,i,r,a,o){r-=y.BLOCK_SIZE;for(var l=i-y.BLOCK_SIZE,s=0;s>=2*y.BLOCK_SIZE_POWER,h-p<=y.MIN_DYNAMIC_RANGE&&(d=p/2,0>c.LUMINANCE_SHIFT]++;if(r=c.estimateBlackPoint(r),i<3)for(n=0;n>c.LUMINANCE_SHIFT]++;for(r=c.estimateBlackPoint(r),e=e.getMatrix(),a=0;ar&&(r=e[i=a]),e[a]>n&&(n=e[a]);var o=r=0;for(a=0;a>10;return t},l.prototype.getRow=function(e,t){if(e<0||e>=this.getHeight())throw new s.default("Requested row is outside the image: "+e);var n=this.getWidth();return e*=n,null===t?t=this.buffer.slice(e,e+n):(t.length=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var r,$=n(3),v=n(11),l=n(2),b=n(0),a=n(15),w=n(9),k=n(4);e(m,r=a.default),m.prototype.decodeRow=function(e,t,n){var i,r,a=this.counters;a.fill(0),this.decodeRowResult="",n=m.findAsteriskPattern(t,a);var o=t.getNextSet(n[1]),l=t.getSize();do{m.recordPattern(t,o,a);var s=m.toNarrowWidePattern(a);if(s<0)throw new b.default;var c=m.patternToChar(s);this.decodeRowResult+=c,s=o;try{for(var u=y(a),d=u.next();!d.done;d=u.next())o+=d.value}catch(e){var p={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(p)throw p.error}}o=t.getNextSet(o)}while("*"!==c);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1),t=0;try{for(var h=y(a),f=h.next();!f.done;f=h.next())t+=f.value}catch(e){var g={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(g)throw g.error}}if(o!==l&&2*(o-s-t)=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var r,c=n(69),u=n(101),o=n(9),d=n(8),m=n(0),l=n(5),s=n(3),p=n(4),h=n(70),y=n(44),$=n(10),v=n(71),b=n(6),w=n(15);e(f,r=c.default),f.prototype.decodeRow=function(e,t,n){var i,r,a=this.decodePair(t,!1,e,n);f.addOrTally(this.possibleLeftPairs,a),t.reverse(),e=this.decodePair(t,!0,e,n),f.addOrTally(this.possibleRightPairs,e),t.reverse();try{for(var o=g(this.possibleLeftPairs),l=o.next();!l.done;l=o.next()){var s=l.value;if(1=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(15),o=n(0),l=n(10);e(s,r=a.default),s.prototype.getDecodeFinderCounters=function(){return this.decodeFinderCounters},s.prototype.getDataCharacterCounters=function(){return this.dataCharacterCounters},s.prototype.getOddRoundingErrors=function(){return this.oddRoundingErrors},s.prototype.getEvenRoundingErrors=function(){return this.evenRoundingErrors},s.prototype.getOddCounts=function(){return this.oddCounts},s.prototype.getEvenCounts=function(){return this.evenCounts},s.prototype.parseFinderValue=function(e,t){for(var n=0;ni&&(i=t[r],n=r);e[n]++},s.decrement=function(e,t){for(var n=0,i=t[0],r=1;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0}),p.prototype.RSSUtils=function(){},p.getRSSvalue=function(e,t,n){var i,r=0;try{for(var a=h(e),o=a.next();!o.done;o=a.next())r+=o.value}catch(e){var l={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(l)throw l.error}}for(i=l=0,a=e.length,o=0;o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var r,g=n(3),m=n(8),y=n(9),$=n(4),c=n(15),v=n(5),u=n(6),b=n(2),d=n(0);e(h,r=c.default),h.prototype.decodeRow=function(e,t,n){var i,r=this.decodeStart(t),a=this.decodeEnd(t),o=new v.default;h.decodeMiddle(t,r[1],a[0],o),t=o.toString(),(o=null)!=n&&(o=n.get(m.default.ALLOWED_LENGTHS)),null==o&&(o=h.DEFAULT_ALLOWED_LENGTHS),n=t.length;var l=!1,s=0;try{for(var c=f(o),u=c.next();!u.done;u=c.next()){var d=u.value;if(n===d){l=!0;break}s=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(3),$=n(74),o=n(0);e(m,r=$.default),m.prototype.decodeMiddle=function(e,t,n){var i,r,a=this.decodeMiddleCounters;a[0]=0,a[1]=0,a[2]=0,a[3]=0;var o=e.getSize();t=t[1];for(var l=0,s=0;s<6&&t=t.getSize()||!t.isRange(r,l,!1))throw new y.default;if((r=o.toString()).length<8)throw new $.default;if(!u.checkChecksum(r))throw new v.default;o=(i[1]+i[0])/2,l=(a[1]+a[0])/2,i=this.getBarcodeFormat(),o=[new g.default(o,e),new g.default(l,e)],r=new h.default(r,null,0,o,i,(new Date).getTime()),o=0;try{var s=m.default.decodeRow(e,t,a[1]);r.putMetadata(f.default.UPC_EAN_EXTENSION,s.getText()),r.putAllMetadata(s.getResultMetadata()),r.addResultPoints(s.getResultPoints()),o=s.getText().length}catch(e){}if(null!=(e=null==n?null:n.get(p.default.ALLOWED_EAN_EXTENSIONS))){for(var c in t=!1,e)if(o.toString()===c){t=!0;break}if(!t)throw new y.default}return i===d.default.EAN_13||d.default.UPC_A,r},u.checkChecksum=function(e){return u.checkStandardUPCEANChecksum(e)},u.checkStandardUPCEANChecksum=function(e){var t=e.length;if(0===t)return!1;var n=parseInt(e.charAt(t-1),10);return u.getStandardUPCEANChecksum(e.substring(0,t-1))===n},u.getStandardUPCEANChecksum=function(e){for(var t=e.length,n=0,i=t-1;0<=i;i-=2){if((r=e.charAt(i).charCodeAt(0)-48)<0||9=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),l=n(3),s=n(47),c=n(39),u=n(43),d=n(45),p=n(0),h=n(79),f=n(84);i.prototype.decode=function(e,t){return this.setHints(t),this.decodeInternal(e)},i.prototype.decodeWithState=function(e){return null!==this.readers&&void 0!==this.readers||this.setHints(null),this.decodeInternal(e)},i.prototype.setHints=function(e){var t=null!=(this.hints=e)&&void 0!==e.get(a.default.TRY_HARDER),n=null==e?null:e.get(a.default.POSSIBLE_FORMATS),i=[];if(null!=n){var r=n.some(function(e){return e===l.default.UPC_A||e===l.default.UPC_E||e===l.default.EAN_13||e===l.default.EAN_8||e===l.default.CODABAR||e===l.default.CODE_39||e===l.default.CODE_93||e===l.default.CODE_128||e===l.default.ITF||e===l.default.RSS_14||e===l.default.RSS_EXPANDED});r&&!t&&i.push(new u.default(e)),n.includes(l.default.QR_CODE)&&i.push(new s.default),n.includes(l.default.DATA_MATRIX)&&i.push(new d.default),n.includes(l.default.AZTEC)&&i.push(new c.default),n.includes(l.default.PDF_417)&&i.push(new h.default),r&&t&&i.push(new u.default(e))}0===i.length&&(t||i.push(new u.default(e)),i.push(new s.default),i.push(new d.default),i.push(new c.default),i.push(new h.default),t&&i.push(new u.default(e))),this.readers=i},i.prototype.reset=function(){var e;if(null!==this.readers)try{for(var t=o(this.readers),n=t.next();!n.done;n=t.next())n.value.reset()}catch(e){var i={error:e}}finally{try{n&&!n.done&&(e=t.return)&&e.call(t)}finally{if(i)throw i.error}}},i.prototype.decodeInternal=function(e){var t;if(null===this.readers)throw new f.default("No readers where selected, nothing can be read.");try{for(var n=o(this.readers),i=n.next();!i.done;i=n.next()){var r=i.value;try{return r.decode(e,this.hints)}catch(e){}}}catch(e){var a={error:e}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}throw new p.default("No MultiFormat Readers were able to detect the code.")},t.default=i},function(e,t,n){function d(e){this.errorCorrectionLevel=i.default.forBits(e>>3&3),this.dataMask=7&e}var p=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(33),r=n(13);d.numBitsDiffering=function(e,t){return r.default.bitCount(e^t)},d.decodeFormatInformation=function(e,t){var n=d.doDecodeFormatInformation(e,t);return null!==n?n:d.doDecodeFormatInformation(e^d.FORMAT_INFO_MASK_QR,t^d.FORMAT_INFO_MASK_QR)},d.doDecodeFormatInformation=function(e,t){var n,i=Number.MAX_SAFE_INTEGER,r=0;try{for(var a=p(d.FORMAT_INFO_DECODE_LOOKUP),o=a.next();!o.done;o=a.next()){var l=o.value,s=l[0];if(s===e||s===t)return new d(l[1]);var c=d.numBitsDiffering(e,s);c=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(3),i=n(11),r=n(2),a=n(0),g=n(9),o=n(21),l=n(13),m=n(14),y=n(128),$=n(130);p.prototype.decode=function(e,t){if(void 0===t&&(t=null),null==(e=p.decode(e,t,!1))||0===e.length||null==e[0])throw a.default.getNotFoundInstance();return e[0]},p.prototype.decodeMultiple=function(e,t){void 0===t&&(t=null);try{return p.decode(e,t,!0)}catch(e){if(e instanceof r.default||e instanceof i.default)throw a.default.getNotFoundInstance();throw e}},p.decode=function(e,t,n){var i,r=[];e=y.default.detectMultiple(e,t,n);try{for(var a=h(e.getPoints()),o=a.next();!o.done;o=a.next()){var l=o.value,s=$.default.decode(e.getBits(),l[4],l[5],l[6],l[7],p.getMinCodewordWidth(l),p.getMaxCodewordWidth(l)),c=new g.default(s.getText(),s.getRawBytes(),void 0,l,f.default.PDF_417);c.putMetadata(m.default.ERROR_CORRECTION_LEVEL,s.getECLevel());var u=s.getOther();null!=u&&c.putMetadata(m.default.PDF417_EXTRA_METADATA,u),r.push(c)}}catch(e){var d={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(d)throw d.error}}return r.map(function(e){return e})},p.getMaxWidth=function(e,t){return null==e||null==t?0:Math.trunc(Math.abs(e.getX()-t.getX()))},p.getMinWidth=function(e,t){return null==e||null==t?l.default.MAX_VALUE:Math.trunc(Math.abs(e.getX()-t.getX()))},p.getMaxCodewordWidth=function(e){return Math.floor(Math.max(Math.max(p.getMaxWidth(e[0],e[4]),p.getMaxWidth(e[6],e[2])*o.default.MODULES_IN_CODEWORD/o.default.MODULES_IN_STOP_PATTERN),Math.max(p.getMaxWidth(e[1],e[5]),p.getMaxWidth(e[7],e[3])*o.default.MODULES_IN_CODEWORD/o.default.MODULES_IN_STOP_PATTERN)))},p.getMinCodewordWidth=function(e){return Math.floor(Math.min(Math.min(p.getMinWidth(e[0],e[4]),p.getMinWidth(e[6],e[2])*o.default.MODULES_IN_CODEWORD/o.default.MODULES_IN_STOP_PATTERN),Math.min(p.getMinWidth(e[1],e[5]),p.getMinWidth(e[7],e[3])*o.default.MODULES_IN_CODEWORD/o.default.MODULES_IN_STOP_PATTERN)))},p.prototype.reset=function(){},t.default=p},function(e,t,n){function s(e,t){if(0===t.length)throw new c.default;if(this.field=e,1<(e=t.length)&&0===t[0]){for(var n=1;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var c=n(1),o=n(6),i=n(5);s.prototype.getCoefficients=function(){return this.coefficients},s.prototype.getDegree=function(){return this.coefficients.length-1},s.prototype.isZero=function(){return 0===this.coefficients[0]},s.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},s.prototype.evaluateAt=function(e){var t;if(0===e)return this.getCoefficient(0);if(1===e){e=0;try{for(var n=a(this.coefficients),i=n.next();!i.done;i=n.next())e=this.field.add(e,i.value)}catch(e){var r={error:e}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(r)throw r.error}}return e}for(r=this.coefficients[0],t=this.coefficients.length,n=1;ne.length){var n=t;t=e,e=n}n=new Int32Array(e.length);var i=e.length-t.length;o.default.arraycopy(e,0,n,0,i);for(var r=i;r=this.image.getHeight()&&(t=this.image.getHeight()-1),t=new c.default(l.getX(),t),n?r=t:o=t),new s(this.image,i,r,a,o)},s.prototype.getMinX=function(){return this.minX},s.prototype.getMaxX=function(){return this.maxX},s.prototype.getMinY=function(){return this.minY},s.prototype.getMaxY=function(){return this.maxY},s.prototype.getTopLeft=function(){return this.topLeft},s.prototype.getTopRight=function(){return this.topRight},s.prototype.getBottomLeft=function(){return this.bottomLeft},s.prototype.getBottomRight=function(){return this.bottomRight},t.default=s},function(e,t,n){function r(e){this.boundingBox=new i.default(e),this.codewords=Array(e.getMaxY()-e.getMinY()+1)}var l=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(49),i=n(81);r.prototype.getCodewordNearby=function(e){var t=this.getCodeword(e);if(null!=t)return t;for(var n=1;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}},u=this&&this.__read||function(e,t){var n,i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;e=i.call(e);var r=[];try{for(;(void 0===t||0=t.length)for(var n=t[t.length-1],i=this.field,r=t.length;r<=e;r++)n=n.multiply(new a.default(i,Int32Array.from([1,i.exp(r-1+i.getGeneratorBase())]))),t.push(n);return t[e]},i.prototype.encode=function(e,t){if(0===t)throw new l.default("No error correction bytes");var n=e.length-t;if(n<=0)throw new l.default("No data bytes provided");var i=this.buildGenerator(t),r=new Int32Array(n);for(o.default.arraycopy(e,0,r,0,n),t-=(i=new a.default(this.field,r).multiplyByMonomial(t,1).divide(i)[1].getCoefficients()).length,r=0;rthis.information.getSize())return e+4<=this.information.getSize();for(var t=e;tthis.information.getSize())return 0==(e=this.extractNumericValueFromBitArray(e,4))?new s.default(this.information.getSize(),s.default.FNC1,s.default.FNC1):new s.default(this.information.getSize(),e-1,s.default.FNC1);var t=this.extractNumericValueFromBitArray(e,7);return new s.default(e+7,(t-8)/11,(t-8)%11)},i.prototype.extractNumericValueFromBitArray=function(e,t){return i.extractNumericValueFromBitArray(this.information,e,t)},i.extractNumericValueFromBitArray=function(e,t,n){for(var i=0,r=0;rthis.information.getSize())return!1;var t=this.extractNumericValueFromBitArray(e,5);return 5<=t&&t<16||!(e+7>this.information.getSize())&&(64<=(t=this.extractNumericValueFromBitArray(e,7))&&t<116||!(e+8>this.information.getSize())&&(232<=(e=this.extractNumericValueFromBitArray(e,8))&&e<253))},i.prototype.decodeIsoIec646=function(e){var t=this.extractNumericValueFromBitArray(e,5);if(15==t)return new l.default(e+5,l.default.FNC1);if(5<=t&&t<15)return new l.default(e+5,"0"+(t-5));if(64<=(t=this.extractNumericValueFromBitArray(e,7))&&t<90)return new l.default(e+7,""+(t+1));if(90<=t&&t<116)return new l.default(e+7,""+(t+7));switch(this.extractNumericValueFromBitArray(e,8)){case 232:t="!";break;case 233:t='"';break;case 234:t="%";break;case 235:t="&";break;case 236:t="'";break;case 237:t="(";break;case 238:t=")";break;case 239:t="*";break;case 240:t="+";break;case 241:t=",";break;case 242:t="-";break;case 243:t=".";break;case 244:t="/";break;case 245:t=":";break;case 246:t=";";break;case 247:t="<";break;case 248:t="=";break;case 249:t=">";break;case 250:t="?";break;case 251:t="_";break;case 252:t=" ";break;default:throw new r.default}return new l.default(e+8,t)},i.prototype.isStillAlpha=function(e){if(e+5>this.information.getSize())return!1;var t=this.extractNumericValueFromBitArray(e,5);return 5<=t&&t<16||!(e+6>this.information.getSize())&&(16<=(e=this.extractNumericValueFromBitArray(e,6))&&e<63)},i.prototype.decodeAlphanumeric=function(e){var t=this.extractNumericValueFromBitArray(e,5);if(15==t)return new l.default(e+5,l.default.FNC1);if(5<=t&&t<15)return new l.default(e+5,"0"+(t-5));if(32<=(t=this.extractNumericValueFromBitArray(e,6))&&t<58)return new l.default(e+6,""+(t+33));switch(t){case 58:t="*";break;case 59:t=",";break;case 60:t="-";break;case 61:t=".";break;case 62:t="/";break;default:throw new a.default("Decoding invalid alphanumeric value: "+t)}return new l.default(e+6,t)},i.prototype.isAlphaTo646ToAlphaLatch=function(e){if(e+1>this.information.getSize())return!1;for(var t=0;t<5&&t+ethis.information.getSize())return!1;for(var t=e;tthis.information.getSize())return!1;for(var t=0;t<4&&t+e","?","[","]","{","}","CTRL_UL"],c.DIGIT_TABLE="CTRL_PS; ;0;1;2;3;4;5;6;7;8;9;,;.;CTRL_UL;CTRL_US".split(";"),t.default=c},function(e,t,n){function i(e,t){this.x=e,this.y=t}function r(e){this.EXPECTED_CORNER_BITS=new Int32Array([3808,476,2107,1799]),this.image=e}Object.defineProperty(t,"__esModule",{value:!0});var u=n(4),a=n(99),c=n(10),l=n(41),o=n(20),s=n(27),d=n(0),p=n(31),h=n(13),f=(i.prototype.toResultPoint=function(){return new u.default(this.getX(),this.getY())},i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i);t.Point=f,r.prototype.detect=function(){return this.detectMirror(!1)},r.prototype.detectMirror=function(e){var t=this.getMatrixCenter();return t=this.getBullsEyeCorners(t),e&&(e=t[0],t[0]=t[2],t[2]=e),this.extractParameters(t),e=this.sampleGrid(this.image,t[this.shift%4],t[(this.shift+1)%4],t[(this.shift+2)%4],t[(this.shift+3)%4]),t=this.getMatrixCornerPoints(t),new a.default(e,t,this.compact,this.nbDataBlocks,this.nbLayers)},r.prototype.extractParameters=function(e){if(!(this.isValidPoint(e[0])&&this.isValidPoint(e[1])&&this.isValidPoint(e[2])&&this.isValidPoint(e[3])))throw new d.default;var t=2*this.nbCenterLayers;e=new Int32Array([this.sampleLine(e[0],e[1],t),this.sampleLine(e[1],e[2],t),this.sampleLine(e[2],e[3],t),this.sampleLine(e[3],e[0],t)]),this.shift=this.getRotation(e,t);for(var n=t=0;n<4;n++){var i=e[(this.shift+n)%4];this.compact?(t<<=7,t+=i>>1&127):(t<<=10,t+=(i>>2&992)+(i>>1&31))}e=this.getCorrectedParameterData(t,this.compact),this.compact?(this.nbLayers=1+(e>>6),this.nbDataBlocks=1+(63&e)):(this.nbLayers=1+(e>>11),this.nbDataBlocks=1+(2047&e))},r.prototype.getRotation=function(e,i){var r=0;for(e.forEach(function(e,t,n){r=(e>>i-2<<1)+(1&e)+(r<<3)}),r=((1&r)<<11)+(r>>1),e=0;e<4;e++)if(h.default.bitCount(r^this.EXPECTED_CORNER_BITS[e])<=2)return e;throw new d.default},r.prototype.getCorrectedParameterData=function(e,t){var n;t=t?(n=7,2):(n=10,4);var i=n-t,r=new Int32Array(n);for(--n;0<=n;--n)r[n]=15&e,e>>=4;try{new s.default(o.default.AZTEC_PARAM).decode(r,i)}catch(e){throw new d.default}for(n=e=0;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var a,o=n(3),l=n(8),c=n(15),u=n(73),d=n(106),p=n(0);e(i,a=c.default),i.prototype.decodeRow=function(e,t,n){var i;try{for(var r=s(this.readers),a=r.next();!a.done;a=r.next()){var o=a.value;try{return o.decodeRow(e,t,n)}catch(e){}}}catch(e){var l={error:e}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(l)throw l.error}}throw new p.default},i.prototype.reset=function(){var e;try{for(var t=s(this.readers),n=t.next();!n.done;n=t.next())n.value.reset()}catch(e){var i={error:e}}finally{try{n&&!n.done&&(e=t.return)&&e.call(t)}finally{if(i)throw i.error}}},n=i,t.default=n},function(e,t,n){function i(){}Object.defineProperty(t,"__esModule",{value:!0});var r=n(32),a=n(104),o=n(105);i.decodeRow=function(t,n,i){i=r.default.findGuardPattern(n,i,!1,this.EXTENSION_START_PATTERN,Array(this.EXTENSION_START_PATTERN.length).fill(0));try{return(new a.default).decodeRow(t,n,i)}catch(e){return(new o.default).decodeRow(t,n,i)}},i.EXTENSION_START_PATTERN=[1,1,2],t.default=i},function(e,t,n){function p(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=[0,0,0,0],this.decodeRowStringBuffer=""}var h=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),f=n(32),o=n(9),l=n(4),i=n(14),g=n(0);p.prototype.decodeRow=function(e,t,n){var i=this.decodeRowStringBuffer;t=this.decodeMiddle(t,n,i);var r=i.toString();return i=p.parseExtensionString(r),e=[new l.default((n[0]+n[1])/2,e),new l.default(t,e)],e=new o.default(r,null,0,e,a.default.UPC_EAN_EXTENSION,(new Date).getTime()),null!=i&&e.putAllMetadata(i),e},p.prototype.decodeMiddle=function(e,t,n){var i,r=this.decodeMiddleCounters;r[0]=0,r[1]=0,r[2]=0,r[3]=0;var a=e.getSize();t=t[1];for(var o=0,l=0;l<5&&t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),h=n(32),l=n(9),s=n(4),i=n(14),f=n(0);a.prototype.decodeRow=function(e,t,n){var i=this.decodeRowStringBuffer;t=this.decodeMiddle(t,n,i);var r=i.toString();return i=a.parseExtensionString(r),e=[new s.default((n[0]+n[1])/2,e),new s.default(t,e)],e=new l.default(r,null,0,e,o.default.UPC_EAN_EXTENSION,(new Date).getTime()),null!=i&&e.putAllMetadata(i),e},a.prototype.decodeMiddle=function(e,t,n){var i,r=this.decodeMiddleCounters;r[0]=0,r[1]=0,r[2]=0,r[3]=0;var a=e.getSize();t=t[1];for(var o=0,l=0;l<2&&t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var a,o=n(3),m=n(74);e(i,a=m.default),i.prototype.decodeMiddle=function(e,t,n){var i,r,a=this.decodeMiddleCounters;a[0]=0,a[1]=0,a[2]=0,a[3]=0;var o=e.getSize();t=t[1];for(var l=0;l<4&&t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(27),a=n(20),s=n(109),c=n(111),u=n(112),o=n(11);i.prototype.decode=function(e){var t,n=new s.default(e);e=n.getVersion(),n=n.readCodewords(),e=c.default.getDataBlocks(n,e),n=0;try{for(var i=l(e),r=i.next();!r.done;r=i.next())n+=r.value.getNumDataCodewords()}catch(e){var a={error:e}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(a)throw a.error}}for(a=new Uint8Array(n),t=e.length,i=0;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2),a=(i.prototype.getECCodewords=function(){return this.ecCodewords},i.prototype.getECBlocks=function(){return this.ecBlocks},i);t.ECBlocks=a;var o=(r.prototype.getCount=function(){return this.count},r.prototype.getDataCodewords=function(){return this.dataCodewords},r);t.ECB=o,l.prototype.getVersionNumber=function(){return this.versionNumber},l.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},l.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},l.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},l.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},l.prototype.getTotalCodewords=function(){return this.totalCodewords},l.prototype.getECBlocks=function(){return this.ecBlocks},l.getVersionForDimensions=function(e,t){var n;if(0!=(1&e)||0!=(1&t))throw new s.default;try{for(var i=d(l.VERSIONS),r=i.next();!r.done;r=i.next()){var a=r.value;if(a.symbolSizeRows===e&&a.symbolSizeColumns===t)return a}}catch(e){var o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}throw new s.default},l.prototype.toString=function(){return""+this.versionNumber},l.VERSIONS=(l.buildVersions=function(){return[new l(1,10,10,8,8,new a(5,new o(1,3))),new l(2,12,12,10,10,new a(7,new o(1,5))),new l(3,14,14,12,12,new a(10,new o(1,8))),new l(4,16,16,14,14,new a(12,new o(1,12))),new l(5,18,18,16,16,new a(14,new o(1,18))),new l(6,20,20,18,18,new a(18,new o(1,22))),new l(7,22,22,20,20,new a(20,new o(1,30))),new l(8,24,24,22,22,new a(24,new o(1,36))),new l(9,26,26,24,24,new a(28,new o(1,44))),new l(10,32,32,14,14,new a(36,new o(1,62))),new l(11,36,36,16,16,new a(42,new o(1,86))),new l(12,40,40,18,18,new a(48,new o(1,114))),new l(13,44,44,20,20,new a(56,new o(1,144))),new l(14,48,48,22,22,new a(68,new o(1,174))),new l(15,52,52,24,24,new a(42,new o(2,102))),new l(16,64,64,14,14,new a(56,new o(2,140))),new l(17,72,72,16,16,new a(36,new o(4,92))),new l(18,80,80,18,18,new a(48,new o(4,114))),new l(19,88,88,20,20,new a(56,new o(4,144))),new l(20,96,96,22,22,new a(68,new o(4,174))),new l(21,104,104,24,24,new a(56,new o(6,136))),new l(22,120,120,18,18,new a(68,new o(6,175))),new l(23,132,132,20,20,new a(62,new o(8,163))),new l(24,144,144,22,22,new a(62,new o(8,156),new o(2,155))),new l(25,8,18,6,16,new a(7,new o(1,5))),new l(26,8,32,6,14,new a(11,new o(1,10))),new l(27,12,26,10,24,new a(14,new o(1,16))),new l(28,12,36,10,16,new a(18,new o(1,22))),new l(29,16,36,14,16,new a(24,new o(1,32))),new l(30,16,48,14,22,new a(28,new o(1,49)))]})(),t.default=l},function(e,t,n){function m(e,t){this.numDataCodewords=e,this.codewords=t}var y=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var $=n(1);m.getDataBlocks=function(e,t){var n,i,r=t.getECBlocks(),a=0,o=r.getECBlocks();try{for(var l=y(o),s=l.next();!s.done;s=l.next())a+=(p=s.value).getCount()}catch(e){var c={error:e}}finally{try{s&&!s.done&&(n=l.return)&&n.call(l)}finally{if(c)throw c.error}}c=Array(a),n=0;try{for(var u=y(o),d=u.next();!d.done;d=u.next()){var p=d.value;for(o=0;o05"),n.insert(0,"");break;case 237:t.append("[)>06"),n.insert(0,"");break;case 238:return o.ANSIX12_ENCODE;case 239:return o.TEXT_ENCODE;case 240:return o.EDIFACT_ENCODE;case 241:break;default:if(254!==r||0!==e.available())throw new p.default}}while(0");break;case 3:t.append(" ");break;default:if(r<14)t.append(String.fromCharCode(r+44));else{if(!(r<40))throw new p.default;t.append(String.fromCharCode(r+51))}}}}while(0?@[\\]^_".split(""),i.TEXT_BASIC_SET_CHARS="*** 0123456789abcdefghijklmnopqrstuvwxyz".split(""),i.TEXT_SHIFT2_SET_CHARS=i.C40_SHIFT2_SET_CHARS,i.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)],t.default=i},function(e,t,n){function f(e){this.image=e,this.rectangleDetector=new a.default(e)}function i(e,t,n){this.from=e,this.to=t,this.transitions=n}var g=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}},m=this&&this.__read||function(e,t){var n,i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;e=i.call(e);var r=[];try{for(;(void 0===t||0Math.abs(r-n);if(o){var l=n;n=i,i=l,l=r,r=a,a=l}l=Math.abs(r-n);for(var s=Math.abs(a-i),c=-l/2,u=i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),a=n(20),o=n(27),l=n(116),s=n(77),y=n(120),$=n(121),c=n(11);i.prototype.decodeBooleanArray=function(e,t){return this.decodeBitMatrix(r.default.parseFromBooleanArray(e),t)},i.prototype.decodeBitMatrix=function(e,t){e=new l.default(e);try{return this.decodeBitMatrixParser(e,t)}catch(e){var n=e}try{e.remask(),e.setMirror(!0),e.readVersion(),e.readFormatInformation(),e.mirror();var i=this.decodeBitMatrixParser(e,t);return i.setOther(new s.default(!0)),i}catch(e){if(null!==n)throw n;throw e}},i.prototype.decodeBitMatrixParser=function(e,t){var n,i,r=e.readVersion(),a=e.readFormatInformation().getErrorCorrectionLevel();e=e.readCodewords(),e=y.default.getDataBlocks(e,r,a);var o=0;try{for(var l=m(e),s=l.next();!s.done;s=l.next())o+=(p=s.value).getNumDataCodewords()}catch(e){var c={error:e}}finally{try{s&&!s.done&&(n=l.return)&&n.call(l)}finally{if(c)throw c.error}}c=new Uint8Array(o),n=0;try{for(var u=m(e),d=u.next();!d.done;d=u.next()){var p,h=(p=d.value).getCodewords(),f=p.getNumDataCodewords();for(this.correctErrors(h,f),e=0;e=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0}),i.prototype.getECCodewordsPerBlock=function(){return this.ecCodewordsPerBlock},i.prototype.getNumBlocks=function(){var e,t=0,n=this.ecBlocks;try{for(var i=o(n),r=i.next();!r.done;r=i.next())t+=r.value.getCount()}catch(e){var a={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return t},i.prototype.getTotalECCodewords=function(){return this.ecCodewordsPerBlock*this.getNumBlocks()},i.prototype.getECBlocks=function(){return this.ecBlocks},t.default=i},function(e,t,n){function i(e,t){this.count=e,this.dataCodewords=t}Object.defineProperty(t,"__esModule",{value:!0}),i.prototype.getCount=function(){return this.count},i.prototype.getDataCodewords=function(){return this.dataCodewords},t.default=i},function(e,t,n){function i(e,t){this.value=e,this.isMasked=t}var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=e=t.DataMaskValues||(t.DataMaskValues={}))[r.DATA_MASK_000=0]="DATA_MASK_000",r[r.DATA_MASK_001=1]="DATA_MASK_001",r[r.DATA_MASK_010=2]="DATA_MASK_010",r[r.DATA_MASK_011=3]="DATA_MASK_011",r[r.DATA_MASK_100=4]="DATA_MASK_100",r[r.DATA_MASK_101=5]="DATA_MASK_101",r[r.DATA_MASK_110=6]="DATA_MASK_110",r[r.DATA_MASK_111=7]="DATA_MASK_111",i.prototype.unmaskBitMatrix=function(e,t){for(var n=0;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var y=n(1);g.getDataBlocks=function(e,t,n){var i,r;if(e.length!==t.getTotalCodewords())throw new y.default;var a=0;n=(t=t.getECBlocksForLevel(n)).getECBlocks();try{for(var o=m(n),l=o.next();!l.done;l=o.next())a+=(d=l.value).getCount()}catch(e){var s={error:e}}finally{try{l&&!l.done&&(i=o.return)&&i.call(o)}finally{if(s)throw s.error}}s=Array(a),i=0;try{for(var c=m(n),u=c.next();!u.done;u=c.next()){var d=u.value;for(n=0;ne.available())throw new _.default;for(var i=new Uint8Array(2*n),r=0;0>8&255,i[r+1]=255&a,r+=2,n--}try{t.append(c.default.decode(i,s.default.GB2312))}catch(e){throw new _.default(e)}},y.decodeKanjiSegment=function(e,t,n){if(13*n>e.available())throw new _.default;for(var i=new Uint8Array(2*n),r=0;0>8,i[r+1]=a,r+=2,n--}try{t.append(c.default.decode(i,s.default.SHIFT_JIS))}catch(e){throw new _.default(e)}},y.decodeByteSegment=function(e,t,n,i,r,a){if(8*n>e.available())throw new _.default;for(var o=new Uint8Array(n),l=0;l=y.ALPHANUMERIC_CHARS.length)throw new _.default;return y.ALPHANUMERIC_CHARS[e]},y.decodeAlphanumericSegment=function(e,t,n,i){for(var r=t.length();1=this.image.getWidth()&&(a=(this.image.getWidth()-1-e)/(n-e),n=this.image.getWidth()-1),i=Math.floor(t-(i-t)*a),a=1,i<0?(a=t/(t-i),i=0):i>=this.image.getHeight()&&(a=(this.image.getHeight()-1-t)/(i-t),i=this.image.getHeight()-1),n=Math.floor(e+(n-e)*a),r+this.sizeOfBlackWhiteBlackRun(e,t,n,i)-1},d.prototype.sizeOfBlackWhiteBlackRun=function(e,t,n,i){var r=Math.abs(i-t)>Math.abs(n-e);if(r){var a=e;e=t,t=a,a=n,n=i,i=a}a=Math.abs(n-e);for(var o=Math.abs(i-t),l=-a/2,s=e=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var u=n(8),d=n(4),s=n(124),h=n(125),g=n(0);p.prototype.getImage=function(){return this.image},p.prototype.getPossibleCenters=function(){return this.possibleCenters},p.prototype.find=function(e){var t=null!=e&&void 0!==e.get(u.default.TRY_HARDER);e=null!=e&&void 0!==e.get(u.default.PURE_BARCODE);var n=this.image,i=n.getHeight(),r=n.getWidth(),a=Math.floor(3*i/(4*p.MAX_MODULES));(ao[2]&&(l+=s-o[2]-a,c=r-1),o[s=0]=0,o[1]=0,o[2]=0,o[3]=0,o[4]=0):o[++s]++:o[s]++;p.foundPatternCross(o)&&!0===this.handlePossibleCenter(o,l,r,e)&&(a=o[0],this.hasSkipped&&(t=this.haveMultiplyConfirmedCenters()))}return e=this.selectBestPatterns(),d.default.orderBestPatterns(e),new h.default(e)},p.centerFromEnd=function(e,t){return t-e[4]-e[3]-e[2]/2},p.foundPatternCross=function(e){for(var t=0,n=0;n<5;n++){var i=e[n];if(0===i)return!1;t+=i}return!(t<7)&&(n=(t/=7)/2,Math.abs(t-e[0])n)return!1;for(;a<=e&&a<=t&&o.get(t-a,e-a)&&r[0]<=n;)r[0]++,a++;if(r[0]>n)return!1;var l=o.getHeight(),s=o.getWidth();for(a=1;e+a=n)return!1;for(;e+a=n)&&(Math.abs(r[0]+r[1]+r[2]+r[3]+r[4]-i)<2*i&&p.foundPatternCross(r))},p.prototype.crossCheckVertical=function(e,t,n,i){for(var r=this.image,a=r.getHeight(),o=this.getCrossCheckStateCount(),l=e;0<=l&&r.get(t,l);)o[2]++,l--;if(l<0)return NaN;for(;0<=l&&!r.get(t,l)&&o[1]<=n;)o[1]++,l--;if(l<0||o[1]>n)return NaN;for(;0<=l&&r.get(t,l)&&o[0]<=n;)o[0]++,l--;if(o[0]>n)return NaN;for(l=e+1;l=n)return NaN;for(;l=n)&&!(5*Math.abs(o[0]+o[1]+o[2]+o[3]+o[4]-i)>=2*i)&&p.foundPatternCross(o)?p.centerFromEnd(o,l):NaN},p.prototype.crossCheckHorizontal=function(e,t,n,i){for(var r=this.image,a=r.getWidth(),o=this.getCrossCheckStateCount(),l=e;0<=l&&r.get(l,t);)o[2]++,l--;if(l<0)return NaN;for(;0<=l&&!r.get(l,t)&&o[1]<=n;)o[1]++,l--;if(l<0||o[1]>n)return NaN;for(;0<=l&&r.get(l,t)&&o[0]<=n;)o[0]++,l--;if(o[0]>n)return NaN;for(l=e+1;l=n)return NaN;for(;l=n)&&!(5*Math.abs(o[0]+o[1]+o[2]+o[3]+o[4]-i)>=i)&&p.foundPatternCross(o)?p.centerFromEnd(o,l):NaN},p.prototype.handlePossibleCenter=function(e,t,n,i){var r=e[0]+e[1]+e[2]+e[3]+e[4];if(n=p.centerFromEnd(e,n),t=this.crossCheckVertical(t,Math.floor(n),e[2],r),isNaN(t)||(n=this.crossCheckHorizontal(Math.floor(n),Math.floor(t),e[2],r),isNaN(n)||i&&!this.crossCheckDiagonal(Math.floor(t),Math.floor(n),e[2],r)))return!1;i=r/7,r=!1;for(var a=0,o=(e=this.possibleCenters).length;a=p.CENTER_QUORUM){if(null!=t)return this.hasSkipped=!0,Math.floor((Math.abs(t.getX()-r.getX())-Math.abs(t.getY()-r.getY()))/2);t=r}}}catch(e){var a={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(a)throw a.error}}return 0},p.prototype.haveMultiplyConfirmedCenters=function(){var e,t,n=0,i=0,r=this.possibleCenters.length;try{for(var a=f(this.possibleCenters),o=a.next();!o.done;o=a.next())(u=o.value).getCount()>=p.CENTER_QUORUM&&(n++,i+=u.getEstimatedModuleSize())}catch(e){var l={error:e}}finally{try{o&&!o.done&&(e=a.return)&&e.call(a)}finally{if(l)throw l.error}}if(n<3)return!1;l=i/r,e=0;try{for(var s=f(this.possibleCenters),c=s.next();!c.done;c=s.next()){var u=c.value;e+=Math.abs(u.getEstimatedModuleSize()-l)}}catch(e){var d={error:e}}finally{try{c&&!c.done&&(t=s.return)&&t.call(s)}finally{if(d)throw d.error}}return e<=.05*i},p.prototype.selectBestPatterns=function(){var e,t,n=this.possibleCenters.length;if(n<3)throw new g.default;var i=this.possibleCenters;if(3c&&(i.splice(e,1),e--)}if(3=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var d=n(127),p=n(0);c.prototype.find=function(){for(var e=this.startX,t=this.height,n=e+this.width,i=this.startY+t/2,r=new Int32Array(3),a=this.image,o=0;o=n)return!1;return!0},c.prototype.crossCheckVertical=function(e,t,n,i){var r=this.image,a=r.getHeight(),o=this.crossCheckStateCount;o[0]=0,o[1]=0,o[2]=0;for(var l=e;0<=l&&r.get(t,l)&&o[1]<=n;)o[1]++,l--;if(l<0||o[1]>n)return NaN;for(;0<=l&&!r.get(t,l)&&o[0]<=n;)o[0]++,l--;if(o[0]>n)return NaN;for(l=e+1;ln)return NaN;for(;ln)&&!(5*Math.abs(o[0]+o[1]+o[2]-i)>=2*i)&&this.foundPatternCross(o)?c.centerFromEnd(o,l):NaN},c.prototype.handlePossibleCenter=function(e,t,n){var i,r=e[0]+e[1]+e[2];if(n=c.centerFromEnd(e,n),t=this.crossCheckVertical(t,n,2*e[1],r),!isNaN(t)){e=(e[0]+e[1]+e[2])/3;try{for(var a=u(this.possibleCenters),o=a.next();!o.done;o=a.next()){var l=o.value;if(l.aboutEquals(e,t,n))return l.combineEstimate(t,n,e)}}catch(e){var s={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(s)throw s.error}}s=new d.default(n,t,e),this.possibleCenters.push(s),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(s)}return null},t.default=c},function(e,t,n){function i(e,t,n){return(e=a.call(this,e,t)||this).estimatedModuleSize=n,e}var r,a;e=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),n=n(4),e(i,a=n.default),i.prototype.aboutEquals=function(e,t,n){return Math.abs(t-this.getY())<=e&&Math.abs(n-this.getX())<=e&&((e=Math.abs(e-this.estimatedModuleSize))<=1||e<=this.estimatedModuleSize)},i.prototype.combineEstimate=function(e,t,n){return new i((this.getX()+t)/2,(this.getY()+e)/2,(this.estimatedModuleSize+n)/2)},n=i,t.default=n},function(e,t,n){function p(){}var h=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var d=n(4),u=n(6),f=n(19),i=n(129);p.detectMultiple=function(e,t,n){return e=e.getBlackMatrix(),(t=p.detect(n,e)).length||((e=e.clone()).rotate180(),t=p.detect(n,e)),new i.default(e,t)},p.detect=function(e,t){for(var n,i,r=[],a=0,o=0,l=!1;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(11),a=n(2),m=n(0),c=n(10),u=n(21);e=n(131);var y=n(81),$=n(134),i=n(136),v=n(82),d=n(137),b=n(83),p=n(138),o=n(139),l=n(49);f.decode=function(e,t,n,i,r,a,o){r=new y.default(e,t,n,i,r);for(var l=null,s=null,c=!0;;c=!1){if(null!=t&&(l=f.getRowIndicatorColumn(e,r,t,!0,a,o)),null!=i&&(s=f.getRowIndicatorColumn(e,r,i,!1,a,o)),null==(n=f.merge(l,s)))throw m.default.getNotFoundInstance();var u=n.getBoundingBox();if(!c||null==u||!(u.getMinY()r.getMaxY()))break;r=u}for(n.setBoundingBox(r),t=n.getBarcodeColumnCount()+1,n.setDetectionResultColumn(0,l),n.setDetectionResultColumn(t,s),i=null!=l,l=1;l<=t;l++)if(s=i?l:t-l,void 0===n.getDetectionResultColumn(s)){c=0===s||s===t?new $.default(r,0===s):new v.default(r),n.setDetectionResultColumn(s,c);for(var d=u=-1,p=r.getMinY();p<=r.getMaxY();p++){if((u=f.getStartColumn(n,s,p,i))<0||u>r.getMaxX()){if(-1===d)continue;u=d}var h=f.detectCodeword(e,r.getMinX(),r.getMaxX(),i,u,p,a,o);null!=h&&(c.setCodeword(p,h),d=u,a=Math.min(a,h.getWidth()),o=Math.max(o,h.getWidth()))}}return f.createDecoderResult(n)},f.merge=function(e,t){if(null==e&&null==t)return null;var n=f.getBarcodeMetadata(e,t);return null==n?null:(e=y.default.merge(f.adjustBoundingBox(e),f.adjustBoundingBox(t)),new i.default(n,e))},f.adjustBoundingBox=function(e){var t;if(null==e)return null;var n=e.getRowHeights();if(null==n)return null;var i=f.getMax(n),r=0;try{for(var a=g(n),o=a.next();!o.done;o=a.next()){var l=o.value;if(r+=i-l,0=t.getMinY();u+=s){var d=f.detectCodeword(e,0,e.getWidth(),i,c,u,r,a);null!=d&&(o.setCodeword(u,d),c=i?d.getStartX():d.getEndX())}return o},f.adjustCodewordCount=function(e,t){var n=(t=t[0][1]).getValue();if(e=e.getBarcodeColumnCount()*e.getBarcodeRowCount()-f.getNumberOfECCodeWords(e.getBarcodeECLevel()),0===n.length){if(e<1||e>u.default.MAX_CODEWORDS_IN_BARCODE)throw m.default.getNotFoundInstance();t.setValue(e)}else n[0]!==e&&t.setValue(e)},f.createDecoderResult=function(e){var t=f.createBarcodeMatrix(e);f.adjustCodewordCount(e,t);for(var n=[],i=new Int32Array(e.getBarcodeRowCount()*e.getBarcodeColumnCount()),r=[],a=[],o=0;o=a.length)&&a[f][o].setValue(h.getValue())}}}catch(e){i={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}o++}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return a},f.isValidBarcodeColumn=function(e,t){return 0<=t&&t<=e.getBarcodeColumnCount()+1},f.getStartColumn=function(e,t,n,i){var r,a=i?1:-1,o=null;if(f.isValidBarcodeColumn(e,t-a)&&(o=e.getDetectionResultColumn(t-a).getCodeword(n)),null!=o)return i?o.getEndX():o.getStartX();if(null!=(o=e.getDetectionResultColumn(t).getCodewordNearby(n)))return i?o.getStartX():o.getEndX();if(f.isValidBarcodeColumn(e,t-a)&&(o=e.getDetectionResultColumn(t-a).getCodewordNearby(n)),null!=o)return i?o.getEndX():o.getStartX();for(n=0;f.isValidBarcodeColumn(e,t-a);){t-=a;try{for(var l=g(e.getDetectionResultColumn(t).getCodewords()),s=l.next();!s.done;s=l.next()){var c=s.value;if(null!=c)return(i?c.getEndX():c.getStartX())+a*n*(c.getEndX()-c.getStartX())}}catch(e){var u={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(u)throw u.error}}n++}return i?e.getBoundingBox().getMinX():e.getBoundingBox().getMaxX()},f.detectCodeword=function(e,t,n,i,r,a,o,l){if(r=f.adjustCodewordStartColumn(e,t,n,i,r,a),null==(e=f.getModuleBitCount(e,t,n,i,r,a)))return null;if(t=c.default.sum(e),i)i=r+t;else{for(i=0;if.CODEWORD_SKEW_SIZE)return r;o+=l}l=-l,i=!i}return o},f.checkCodewordSkew=function(e,t,n){return t-f.CODEWORD_SKEW_SIZE<=e&&e<=n+f.CODEWORD_SKEW_SIZE},f.decodeCodewords=function(e,t,n){if(0===e.length)throw a.default.getFormatInstance();var i=1<n/2+f.MAX_ERRORS||n<0||f.MAX_EC_CODEWORDSe.length)throw a.default.getFormatInstance();if(0===n){if(!(t>=1;return t},f.getCodewordBucketNumber=function(e){return e instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(e):this.getCodewordBucketNumber_number(e)},f.getCodewordBucketNumber_number=function(e){return f.getCodewordBucketNumber(f.getBitCountForCodeword(e))},f.getCodewordBucketNumber_Int32Array=function(e){return(e[0]-e[2]+e[4]-e[6]+9)%9},f.toString=function(e){for(var t=new l.default,n=0;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(11),m=n(80),r=n(132);i.prototype.decode=function(e,t,n){for(var i,r,a=new m.default(this.field,e),o=new Int32Array(t),l=!1,s=t;0=Math.round(n/2);){var a=e,o=i;if(i=r,(e=t).isZero())throw g.default.getChecksumInstance();for(t=a,r=this.field.getZero(),a=e.getCoefficient(e.getDegree()),a=this.field.inverse(a);t.getDegree()>=e.getDegree()&&!t.isZero();){var l=t.getDegree()-e.getDegree(),s=this.field.multiply(t.getCoefficient(t.getDegree()),a);r=r.add(this.field.buildMonomial(l,s)),t=t.subtract(e.multiplyByMonomial(l,s))}r=r.multiply(i).subtract(o).negative()}if(0===(n=r.getCoefficient(0)))throw g.default.getChecksumInstance();return n=this.field.inverse(n),[r.multiply(n),t.multiply(n)]},i.prototype.findErrorLocations=function(e){for(var t=e.getDegree(),n=new Int32Array(t),i=0,r=1;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var a,h=n(21),f=n(135),o=n(82),g=n(83);e(i,a=o.default),i.prototype.setRowNumbers=function(){var e;try{for(var t=p(this.getCodewords()),n=t.next();!n.done;n=t.next()){var i=n.value;null!=i&&i.setRowNumberAsRowIndicatorColumn()}}catch(e){var r={error:e}}finally{try{n&&!n.done&&(e=t.return)&&e.call(t)}finally{if(r)throw r.error}}},i.prototype.adjustCompleteIndicatorColumnRowNumbers=function(e){var t=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(t,e);var n=this.getBoundingBox(),i=this._isLeft?n.getTopLeft():n.getTopRight();n=this._isLeft?n.getBottomLeft():n.getBottomRight();var r=this.imageRowToCodewordIndex(Math.trunc(i.getY()));i=this.imageRowToCodewordIndex(Math.trunc(n.getY())),n=-1;for(var a=1,o=0;r=e.getRowCount()||r=t.length||t[a]++}}}catch(e){var o={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return t},i.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(e){var t=this.getBoundingBox(),n=this._isLeft?t.getTopLeft():t.getTopRight();t=this._isLeft?t.getBottomLeft():t.getBottomRight();var i=this.imageRowToCodewordIndex(Math.trunc(n.getY()));n=this.imageRowToCodewordIndex(Math.trunc(t.getY())),t=this.getCodewords();for(var r=-1;i=e.getRowCount()?t[i]=null:(r=a.getRowNumber(),0)}},i.prototype.getBarcodeMetadata=function(){var e,t=this.getCodewords(),n=new g.default,i=new g.default,r=new g.default,a=new g.default;try{for(var o=p(t),l=o.next();!l.done;l=o.next()){var s=l.value;if(null!=s){s.setRowNumberAsRowIndicatorColumn();var c=s.getValue()%30,u=s.getRowNumber();switch(this._isLeft||(u+=2),u%3){case 0:i.setValue(3*c+1);break;case 1:a.setValue(c/3),r.setValue(c%3);break;case 2:n.setValue(1+c)}}}}catch(e){var d={error:e}}finally{try{l&&!l.done&&(e=o.return)&&e.call(o)}finally{if(d)throw d.error}}return 0===n.getValue().length||0===i.getValue().length||0===r.getValue().length||0===a.getValue().length||n.getValue()[0]<1||i.getValue()[0]+r.getValue()[0]h.default.MAX_ROWS_IN_BARCODE?null:(d=new f.default(n.getValue()[0],i.getValue()[0],r.getValue()[0],a.getValue()[0]),this.removeIncorrectCodewords(t,d),d)},i.prototype.removeIncorrectCodewords=function(e,t){for(var n=0;nt.getRowCount())e[n]=null;else switch(this._isLeft||(i+=2),i%3){case 0:3*r+1!==t.getRowCountUpperPart()&&(e[n]=null);break;case 1:Math.trunc(r/3)===t.getErrorCorrectionLevel()&&r%3===t.getRowCountLowerPart()||(e[n]=null);break;case 2:1+r!==t.getColumnCount()&&(e[n]=null)}}}},i.prototype.isLeft=function(){return this._isLeft},i.prototype.toString=function(){return"IsLeft: "+this._isLeft+"\n"+a.prototype.toString.call(this)},n=i,t.default=n},function(e,t,n){function i(e,t,n,i){this.columnCount=e,this.errorCorrectionLevel=i,this.rowCountUpperPart=t,this.rowCountLowerPart=n,this.rowCount=t+n}Object.defineProperty(t,"__esModule",{value:!0}),i.prototype.getColumnCount=function(){return this.columnCount},i.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},i.prototype.getRowCount=function(){return this.rowCount},i.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},i.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},t.default=i},function(e,t,n){function u(e,t){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=e,this.barcodeColumnCount=e.getColumnCount(),this.boundingBox=t,this.detectionResultColumns=Array(this.barcodeColumnCount+2)}var d=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),a=n(49);u.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);for(var e,t=i.default.MAX_CODEWORDS_IN_BARCODE;e=t,0<(t=this.adjustRowNumbersAndGetCount())&&t>=1;n=1&t,s.RATIOS_TABLE[e]||(s.RATIOS_TABLE[e]=Array(u.default.BARS_IN_MODULE)),s.RATIOS_TABLE[e][u.default.BARS_IN_MODULE-i-1]=Math.fround(r/u.default.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},s.getDecodedValue=function(e){var t=s.getDecodedCodewordValue(s.sampleBitCounts(e));return-1!==t?t:s.getClosestDecodedValue(e)},s.sampleBitCounts=function(e){for(var t=c.default.sum(e),n=new Int32Array(u.default.BARS_IN_MODULE),i=0,r=0,a=0;ae[0])throw l.default.getFormatInstance();for(var i=new Int32Array(d.NUMBER_OF_SEQUENCE_CODEWORDS),r=0;r>u(8*(5-o))));o=l=0}}for(i===t[0]&&c>u(8*(5-o))));o=l=0}}}return r.append(y.default.decode(a.toByteArray(),n)),i},d.numericCompaction=function(e,t,n){for(var i=0,r=!1,a=new Int32Array(d.MAX_NUMERIC_CODEWORDS);t@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",d.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",d.EXP900=t()?function(){var e=[];e[0]=u(1);var t=u(900);e[1]=t;for(var n=2;n<16;n++)e[n]=e[n-1]*t;return e}():[],d.NUMBER_OF_SEQUENCE_CODEWORDS=2,n=d,r.default=n}).call(this,$(140))},function(e,t){t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,t,n){function i(){this.checksum=this.timestamp=this.fileSize=this.segmentCount=-1}Object.defineProperty(t,"__esModule",{value:!0}),i.prototype.getSegmentIndex=function(){return this.segmentIndex},i.prototype.setSegmentIndex=function(e){this.segmentIndex=e},i.prototype.getFileId=function(){return this.fileId},i.prototype.setFileId=function(e){this.fileId=e},i.prototype.getOptionalData=function(){return this.optionalData},i.prototype.setOptionalData=function(e){this.optionalData=e},i.prototype.isLastSegment=function(){return this.lastSegment},i.prototype.setLastSegment=function(e){this.lastSegment=e},i.prototype.getSegmentCount=function(){return this.segmentCount},i.prototype.setSegmentCount=function(e){this.segmentCount=e},i.prototype.getSender=function(){return this.sender||null},i.prototype.setSender=function(e){this.sender=e},i.prototype.getAddressee=function(){return this.addressee||null},i.prototype.setAddressee=function(e){this.addressee=e},i.prototype.getFileName=function(){return this.fileName},i.prototype.setFileName=function(e){this.fileName=e},i.prototype.getFileSize=function(){return this.fileSize},i.prototype.setFileSize=function(e){this.fileSize=e},i.prototype.getChecksum=function(){return this.checksum},i.prototype.setChecksum=function(e){this.checksum=e},i.prototype.getTimestamp=function(){return this.timestamp},i.prototype.setTimestamp=function(e){this.timestamp=e},t.default=i},function(e,t,n){function i(){}Object.defineProperty(t,"__esModule",{value:!0}),i.parseLong=function(e,t){return void 0===t&&(t=void 0),parseInt(e,t)},t.default=i},function(e,t,n){function i(e){void 0===e&&(e=32);var t=a.call(this)||this;if(e<(t.count=0))throw new c.default("Negative initial size: "+e);return t.buf=new Uint8Array(e),t}var r;e=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0});var a,o=n(19),l=n(144),s=n(13),c=n(1),u=n(146),d=n(6),p=n(37);e(i,a=l.default),i.prototype.ensureCapacity=function(e){0e.length||n<0||0e.length||n<0||t+n>e.length||t+n<0)throw new r.default;if(0!==n)for(var i=0;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(19),s=n(5);l.prototype.getHeight=function(){return this.height},l.prototype.getWidth=function(){return this.width},l.prototype.get=function(e,t){return this.bytes[t][e]},l.prototype.getArray=function(){return this.bytes},l.prototype.setNumber=function(e,t,n){this.bytes[t][e]=n},l.prototype.setBoolean=function(e,t,n){this.bytes[t][e]=n?1:0},l.prototype.clear=function(e){var t;try{for(var n=a(this.bytes),i=n.next();!i.done;i=n.next())o.default.fill(i.value,e)}catch(e){var r={error:e}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(r)throw r.error}}},l.prototype.equals=function(e){if(!(e instanceof l)||this.width!==e.width||this.height!==e.height)return!1;for(var t=0,n=this.height;t=n;)e^=t<=this.getHeight())throw new u.default("Requested row is outside the image: "+e);var n=this.getWidth();return(null==t||t.length>16&255)+(d>>7&510)+(255&d))/4&255}l.luminances=c}else l.luminances=e;if(void 0===i&&(l.dataWidth=t),void 0===r&&(l.dataHeight=n),void 0===a&&(l.left=0),void 0===o&&(l.top=0),l.left+t>l.dataWidth||l.top+n>l.dataHeight)throw new h.default("Crop rectangle does not fit within image data.");return l}var i;e=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),n(24);var p,a=n(24),o=n(25),l=n(6),h=n(1);e(r,p=o.default),r.prototype.getRow=function(e,t){if(e<0||e>=this.getHeight())throw new h.default("Requested row is outside the image: "+e);var n=this.getWidth();return(null==t||t.length=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(3),g=n(0),o=n(9),m=n(10),l=n(69),$=n(44),s=n(70),v=n(71),c=n(157),b=n(170),u=n(171),d=n(172),p=n(6);e(f,r=l.default),f.prototype.decodeRow=function(e,t,n){this.pairs.length=0,this.startFromEven=!1;try{return f.constructResult(this.decodeRow2pairs(e,t))}catch(e){console.log(e)}return this.pairs.length=0,this.startFromEven=!0,f.constructResult(this.decodeRow2pairs(e,t))},f.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},f.prototype.decodeRow2pairs=function(e,t){for(var n,i=!1;!i;)try{this.pairs.push(this.retrieveNextPair(t,this.pairs,e))}catch(e){if(!this.pairs.length)throw new e;i=!0}if(this.checkChecksum())return this.pairs;if(n=!!this.rows.length,this.storeRow(e,!1),n&&(null!=(e=this.checkRowsBoolean(!1))||null!=(e=this.checkRowsBoolean(!0))))return e;throw new g.default},f.prototype.checkRowsBoolean=function(e){if(25r.length)){for(var a=!0,o=0;oe){r=a.isEquivalent(this.pairs);break}i=a.isEquivalent(this.pairs),n++}r||i||f.isPartialRow(this.pairs,this.rows)||(this.rows.push(n,new u.default(this.pairs,e,t)),this.removePartialRows(this.pairs,this.rows))},f.prototype.removePartialRows=function(e,t){var n,i,r;try{for(var a=y(t),o=a.next();!o.done;o=a.next()){var l=o.value;if(l.getPairs().length!==e.length)try{for(var s=y(l.getPairs()),c=s.next();!c.done;c=s.next()){var u=c.value;try{for(var d=y(e),p=d.next();!p.done&&!b.default.equals(u,p.value);p=d.next());}catch(e){var h={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(h)throw h.error}}}}catch(e){var f={error:e}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(f)throw f.error}}}}catch(e){var g={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(g)throw g.error}}},f.isPartialRow=function(e,t){var n,i,r;try{for(var a=y(t),o=a.next();!o.done;o=a.next()){var l=o.value;t=!0;try{for(var s=y(e),c=s.next();!c.done;c=s.next()){var u=c.value,d=!1;try{for(var p=y(l.getPairs()),h=p.next();!h.done;h=p.next())if(u.equals(h.value)){d=!0;break}}catch(e){var f={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(f)throw f.error}}if(!d){t=!1;break}}}catch(e){var g={error:e}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(g)throw g.error}}if(t)return!0}}catch(e){var m={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(m)throw m.error}}return!1},f.prototype.getRows=function(){return this.rows},f.constructResult=function(e){var t=d.default.buildBitArray(e);t=c.createDecoder(t).parseInformation();var n=e[0].getFinderPattern().getResultPoints();return e=e[e.length-1].getFinderPattern().getResultPoints(),new o.default(t,null,null,[n[0],n[1],e[0],e[1]],a.default.RSS_EXPANDED,null)},f.prototype.checkChecksum=function(){var e=this.pairs.get(0),t=e.getLeftChar();if(null==(e=e.getRightChar()))return!1;e=e.getChecksumPortion();for(var n=2,i=1;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var w=n(0);v.parseFieldsInGeneralPurpose=function(e){var t,n,i,r;if(!e)return null;if(e.length<2)throw new w.default;var a=e.substring(0,2);try{for(var o=b(v.TWO_DIGIT_DATA_LENGTH),l=o.next();!l.done;l=o.next())if((y=l.value)[0]===a)return y[1]===v.VARIABLE_LENGTH?v.processVariableAI(2,y[2],e):v.processFixedAI(2,y[1],e)}catch(e){var s={error:e}}finally{try{l&&!l.done&&(t=o.return)&&t.call(o)}finally{if(s)throw s.error}}if(e.length<3)throw new w.default;s=e.substring(0,3);try{for(var c=b(v.THREE_DIGIT_DATA_LENGTH),u=c.next();!u.done;u=c.next())if((y=u.value)[0]===s)return y[1]===v.VARIABLE_LENGTH?v.processVariableAI(3,y[2],e):v.processFixedAI(3,y[1],e)}catch(e){var d={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(d)throw d.error}}try{for(var p=b(v.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),h=p.next();!h.done;h=p.next())if((y=h.value)[0]===s)return y[1]===v.VARIABLE_LENGTH?v.processVariableAI(4,y[2],e):v.processFixedAI(4,y[1],e)}catch(e){var f={error:e}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(f)throw f.error}}if(e.length<4)throw new w.default;d=e.substring(0,4);try{for(var g=b(v.FOUR_DIGIT_DATA_LENGTH),m=g.next();!m.done;m=g.next()){var y;if((y=m.value)[0]===d)return y[1]===v.VARIABLE_LENGTH?v.processVariableAI(4,y[2],e):v.processFixedAI(4,y[1],e)}}catch(e){var $={error:e}}finally{try{m&&!m.done&&(r=g.return)&&r.call(g)}finally{if($)throw $.error}}throw new w.default},v.processFixedAI=function(e,t,n){if(n.length>>0),l=0;function s(e,t,n){return e.call.apply(e.bind,arguments)}function c(t,n,e){if(!t)throw Error();if(2");var O=(new F).$initSecurityPrivateDoNotAccessOrElse_$("");function R(e,t){null!=e&&this.append.apply(this,arguments)}(new F).$initSecurityPrivateDoNotAccessOrElse_$("
"),(e=R.prototype).$buffer_$="",e.set=function(e){this.$buffer_$=""+e},e.append=function(e,t,n){if(this.$buffer_$+=String(e),null!=t)for(var i=1;i>>16&65535)*i+n*(t>>>16&65535)<<16>>>0)|0};function at(e){return e=rt(0|e,-862048943),rt(e<<15|e>>>-15,461845907)}function ot(e,t){return rt((e=(0|e)^(0|t))<<13|e>>>-13,5)+-430675100|0}function lt(e,t){return e=rt((e=(0|e)^t)^e>>>16,-2048144789),(e=rt(e^e>>>13,-1028477387))^e>>>16}function st(e){e:for(var t=1,n=0;;){if(!(t>2)}function ft(e,t,n,i,r){this.$ns$=e,this.name=t,this.$str$=n,this._hash=i,this.$_meta$=r,this.$cljs$lang$protocol_mask$partition0$$=2154168321,this.$cljs$lang$protocol_mask$partition1$$=4096}(e=ft.prototype).toString=function(){return this.$str$},e.$cljs$core$IEquiv$_equiv$arity$2$=function(e,t){return t instanceof ft&&this.$str$===t.$str$},e.call=function(e){switch(arguments.length-1){case 1:return this.$cljs$core$IFn$_invoke$arity$1$(arguments[1]);case 2:return this.$cljs$core$IFn$_invoke$arity$2$(arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",Tn.$cljs$core$IFn$_invoke$arity$1$(arguments.length-1)].join(""))}},e.apply=function(e,t){return this.call.apply(this,[this].concat(Q(t)))},e.$cljs$core$IFn$_invoke$arity$1$=function(e){return Tu.$cljs$core$IFn$_invoke$arity$2$?Tu.$cljs$core$IFn$_invoke$arity$2$(e,this):Tu.call(null,e,this)},e.$cljs$core$IFn$_invoke$arity$2$=function(e,t){return Tu.$cljs$core$IFn$_invoke$arity$3$?Tu.$cljs$core$IFn$_invoke$arity$3$(e,this,t):Tu.call(null,e,this,t)},e.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$_meta$},e.$cljs$core$IWithMeta$_with_meta$arity$2$=function(e,t){return new ft(this.$ns$,this.name,this.$str$,this._hash,t)},e.$cljs$core$IHash$_hash$arity$1$=function(){var e=this._hash;return null!=e?e:this._hash=e=ht(st(this.name),dt(this.$ns$))},e.$cljs$core$IPrintWithWriter$_pr_writer$arity$3$=function(e,t){return qe(t,this.$str$)};var gt=function e(t){switch(arguments.length){case 1:return e.$cljs$core$IFn$_invoke$arity$1$(t);case 2:return e.$cljs$core$IFn$_invoke$arity$2$(t,arguments[1]);default:throw Error(["Invalid arity: ",Tn.$cljs$core$IFn$_invoke$arity$1$(arguments.length)].join(""))}};function mt(e){return null!=e?131072&e.$cljs$lang$protocol_mask$partition1$$||B===e.$cljs$core$IIterable$$||!e.$cljs$lang$protocol_mask$partition1$$&&X(et,e):X(et,e)}function Au(e){if(null==e)return null;if(null!=e&&(8388608&e.$cljs$lang$protocol_mask$partition0$$||B===e.$cljs$core$ISeqable$$))return e.$cljs$core$ISeqable$_seq$arity$1$(null);if(G(e)||"string"==typeof e)return 0===e.length?null:new Ut(e,0,null);if(X(Re,e))return Pe(e);throw Error([Tn.$cljs$core$IFn$_invoke$arity$1$(e)," is not ISeqable"].join(""))}function ju(e){return null==e?null:null!=e&&(64&e.$cljs$lang$protocol_mask$partition0$$||B===e.$cljs$core$ISeq$$)?e.$cljs$core$ISeq$_first$arity$1$(null):null==(e=Au(e))?null:ue(e)}function yt(e){return null!=e&&(null!=e&&(64&e.$cljs$lang$protocol_mask$partition0$$||B===e.$cljs$core$ISeq$$)||(e=Au(e)))?e.$cljs$core$ISeq$_rest$arity$1$(null):Dn}function Eu(e){return null==e?null:null!=e&&(128&e.$cljs$lang$protocol_mask$partition0$$||B===e.$cljs$core$INext$$)?e.$cljs$core$INext$_next$arity$1$():Au(yt(e))}gt.$cljs$core$IFn$_invoke$arity$1$=function(e){for(;;){if(e instanceof ft)return e;if("string"==typeof e){var t=e.indexOf("/");return t<1?gt.$cljs$core$IFn$_invoke$arity$2$(null,e):gt.$cljs$core$IFn$_invoke$arity$2$(e.substring(0,t),e.substring(t+1,e.length))}if(!(e instanceof Vn))throw Error("no conversion to symbol");e=e.$fqn$}},gt.$cljs$core$IFn$_invoke$arity$2$=function(e,t){return new ft(e,t,null!=e?[Tn.$cljs$core$IFn$_invoke$arity$1$(e),"/",Tn.$cljs$core$IFn$_invoke$arity$1$(t)].join(""):t,null,null)},gt.$cljs$lang$maxFixedArity$=2;var Cu=function e(t){switch(arguments.length){case 1:return e.$cljs$core$IFn$_invoke$arity$1$(t);case 2:return e.$cljs$core$IFn$_invoke$arity$2$(t,arguments[1]);default:for(var n=[],i=arguments.length,r=0;r>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135)>>24}var Cn,Sn,zn,Fn,Tn=function e(t){switch(arguments.length){case 0:return e.$cljs$core$IFn$_invoke$arity$0$();case 1:return e.$cljs$core$IFn$_invoke$arity$1$(t);default:for(var n=[],i=arguments.length,r=0;r>>5<<5}function Ki(e,t,n){for(;;){if(0===t)return n;var i=Xi(e);i.$arr$[0]=n,n=i,t-=5}}Vi.$cljs$core$IFn$_invoke$arity$3$=function(e,t,n){var i,r=ju(t=Au(t));return(t=Eu(t))?Zt.$cljs$core$IFn$_invoke$arity$3$(e,r,Vi.$cljs$core$IFn$_invoke$arity$3$(Tu.$cljs$core$IFn$_invoke$arity$2$(e,r),t,n)):Zt.$cljs$core$IFn$_invoke$arity$3$(e,r,(i=Tu.$cljs$core$IFn$_invoke$arity$2$(e,r),n.$cljs$core$IFn$_invoke$arity$1$?n.$cljs$core$IFn$_invoke$arity$1$(i):n.call(null,i)))},Vi.$cljs$core$IFn$_invoke$arity$4$=function(e,t,n,i){var r,a=ju(t=Au(t));return(t=Eu(t))?Zt.$cljs$core$IFn$_invoke$arity$3$(e,a,Vi.$cljs$core$IFn$_invoke$arity$4$(Tu.$cljs$core$IFn$_invoke$arity$2$(e,a),t,n,i)):Zt.$cljs$core$IFn$_invoke$arity$3$(e,a,(r=Tu.$cljs$core$IFn$_invoke$arity$2$(e,a),n.$cljs$core$IFn$_invoke$arity$2$?n.$cljs$core$IFn$_invoke$arity$2$(r,i):n.call(null,r,i)))},Vi.$cljs$core$IFn$_invoke$arity$5$=function(e,t,n,i,r){var a,o=ju(t=Au(t));return(t=Eu(t))?Zt.$cljs$core$IFn$_invoke$arity$3$(e,o,Vi.$cljs$core$IFn$_invoke$arity$5$(Tu.$cljs$core$IFn$_invoke$arity$2$(e,o),t,n,i,r)):Zt.$cljs$core$IFn$_invoke$arity$3$(e,o,(a=Tu.$cljs$core$IFn$_invoke$arity$2$(e,o),n.$cljs$core$IFn$_invoke$arity$3$?n.$cljs$core$IFn$_invoke$arity$3$(a,i,r):n.call(null,a,i,r)))},Vi.$cljs$core$IFn$_invoke$arity$6$=function(e,t,n,i,r,a){var o,l=ju(t=Au(t));return(t=Eu(t))?Zt.$cljs$core$IFn$_invoke$arity$3$(e,l,Vi.$cljs$core$IFn$_invoke$arity$6$(Tu.$cljs$core$IFn$_invoke$arity$2$(e,l),t,n,i,r,a)):Zt.$cljs$core$IFn$_invoke$arity$3$(e,l,(o=Tu.$cljs$core$IFn$_invoke$arity$2$(e,l),n.$cljs$core$IFn$_invoke$arity$4$?n.$cljs$core$IFn$_invoke$arity$4$(o,i,r,a):n.call(null,o,i,r,a)))},Vi.$cljs$core$IFn$_invoke$arity$variadic$=function(e,t,n,i,r,a,o){var l=Au(t);return t=ju(l),(l=Eu(l))?Zt.$cljs$core$IFn$_invoke$arity$3$(e,t,Ii(Vi,Tu.$cljs$core$IFn$_invoke$arity$2$(e,t),l,n,i,Wt([r,a,o]))):Zt.$cljs$core$IFn$_invoke$arity$3$(e,t,Ii(n,Tu.$cljs$core$IFn$_invoke$arity$2$(e,t),i,r,a,Wt([o])))},Vi.$cljs$lang$applyTo$=function(e){var t=ju(e),n=Eu(e);e=ju(n);var i=Eu(n);n=ju(i);var r=Eu(i);i=ju(r);var a=Eu(r);r=ju(a);var o=Eu(a);return a=ju(o),o=Eu(o),this.$cljs$core$IFn$_invoke$arity$variadic$(t,e,n,i,r,a,o)},Vi.$cljs$lang$maxFixedArity$=6;function Qi(e,t){throw Error(["No item ",Tn.$cljs$core$IFn$_invoke$arity$1$(e)," in vector of length ",Tn.$cljs$core$IFn$_invoke$arity$1$(t)].join(""))}function Ji(e,t){if(t>=Zi(e))return e.tail;var n=e.root;for(e=e.shift;;){if(!(0>>e&31],e=i}}function er(e,t){return 0<=t&&t>>n&31;n-=5,i=i.$arr$[l],t=e.$cljs$core$IFn$_invoke$arity$5$?e.$cljs$core$IFn$_invoke$arity$5$(t,n,i,r,a):e.call(null,t,n,i,r,a),o.$arr$[l]=t}return o}(this,this.shift,this.root,t,n),this.tail,null);if(t===this.$cnt$)return this.$cljs$core$ICollection$_conj$arity$2$(null,n);throw Error(["Index ",Tn.$cljs$core$IFn$_invoke$arity$1$(t)," out of bounds [0,",Tn.$cljs$core$IFn$_invoke$arity$1$(this.$cnt$),"]"].join(""))},e.$cljs$core$IIterable$_iterator$arity$1$=function(){return rr(this,0,this.$cnt$)},e.$cljs$core$IMeta$_meta$arity$1$=function(){return this.meta},e.$cljs$core$ICounted$_count$arity$1$=function(){return this.$cnt$},e.$cljs$core$IStack$_peek$arity$1$=function(){return 0>>n&31;if(5>>5>1<>>n&31;return 5===n?a.$arr$[o]=r:(t=null!=(i=i.$arr$[o])?(n-=5,e.$cljs$core$IFn$_invoke$arity$4$?e.$cljs$core$IFn$_invoke$arity$4$(t,n,i,r):e.call(null,t,n,i,r)):Ki(null,n-5,r),a.$arr$[o]=t),a}(this,this.shift,this.root,new Gi(null,this.tail)),new Pu(this.meta,this.$cnt$+1,e,n,[t],null)},e.call=function(e){switch(arguments.length-1){case 1:return this.$cljs$core$IFn$_invoke$arity$1$(arguments[1]);case 2:return this.$cljs$core$IFn$_invoke$arity$2$(arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",Tn.$cljs$core$IFn$_invoke$arity$1$(arguments.length-1)].join(""))}},e.apply=function(e,t){return this.call.apply(this,[this].concat(Q(t)))},e.$cljs$core$IFn$_invoke$arity$1$=function(e){return this.$cljs$core$IIndexed$_nth$arity$2$(null,e)},e.$cljs$core$IFn$_invoke$arity$2$=function(e,t){return this.$cljs$core$IIndexed$_nth$arity$3$(null,e,t)};var Nu=new Gi(null,[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]),sr=new Pu(null,0,5,Nu,[],kt);function cr(e,t){var n=e.length;if(e=t?e:Q(e),n<32)return new Pu(null,n,5,Nu,e,null);for(var i=e.slice(0,32),r=new Pu(null,t=32,5,Nu,i,null).$cljs$core$IEditableCollection$_as_transient$arity$1$(null);;){if(!(tSu(t))throw Error("Index out of bounds");return new br(e,t,n,i,r)}n=t.start+n,i=t.start+i,t=t.$v$}}function _r(e,t,n){return kr(null,e,0|t,0|n,null)}function xr(e,t){return e===t.$edit$?t:new Gi(e,Q(t.$arr$))}function Ir(e){return new Gi({},Q(e.$arr$))}function Ar(e){var t=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null];return dn(e,0,t,0,e.length),t}gr.$cljs$core$IFn$_invoke$arity$variadic$=function(e){return e instanceof Ut&&0===e.i?cr(e.$arr$,!G(e.$arr$)):ur(e)},gr.$cljs$lang$maxFixedArity$=0,gr.$cljs$lang$applyTo$=function(e){return this.$cljs$core$IFn$_invoke$arity$variadic$(Au(e))},(e=mr.prototype).toString=function(){return it(this)},e.indexOf=((dr=function(e,t){switch(arguments.length){case 1:return Lt(this,e,0);case 2:return Lt(this,e,t)}throw Error("Invalid arity: "+arguments.length)}).$cljs$core$IFn$_invoke$arity$1$=function(e){return Lt(this,e,0)},dr.$cljs$core$IFn$_invoke$arity$2$=function(e,t){return Lt(this,e,t)},dr),e.lastIndexOf=((pr=function(e,t){switch(arguments.length){case 1:return yr.call(this,e);case 2:return Dt(this,e,t)}throw Error("Invalid arity: "+arguments.length)}).$cljs$core$IFn$_invoke$arity$1$=yr,pr.$cljs$core$IFn$_invoke$arity$2$=function(e,t){return Dt(this,e,t)},pr),e.$cljs$core$IMeta$_meta$arity$1$=function(){return this.meta},e.$cljs$core$INext$_next$arity$1$=function(){if(this.off+1>>5>1<>>n&31;if(5===n)t=r;else{var o=i.$arr$[a];t=null!=o?(n-=5,e.$cljs$core$IFn$_invoke$arity$4$?e.$cljs$core$IFn$_invoke$arity$4$(t,n,o,r):e.call(null,t,n,o,r)):Ki(t.root.$edit$,n-5,r)}return i.$arr$[a]=t,i}(this,this.shift,this.root,e)}return this.$cnt$+=1,this}throw Error("conj! after persistent!")},e.$cljs$core$ITransientCollection$_persistent_BANG_$arity$1$=function(){if(this.root.$edit$){this.root.$edit$=null;var e=this.$cnt$-Zi(this),t=Array(e);return dn(this.tail,0,t,0,e),new Pu(null,this.$cnt$,this.shift,this.root,t,null)}throw Error("persistent! called twice")},e.$cljs$core$ITransientAssociative$_assoc_BANG_$arity$3$=function(e,t,n){if("number"==typeof t)return function(r,a,o){if(r.root.$edit$){if(0<=a&&a>>t&31;t=e(t-5,n.$arr$[i]),n.$arr$[i]=t}return n}(r.shift,r.root);r.root=e}return r}if(a===r.$cnt$)return r.$cljs$core$ITransientCollection$_conj_BANG_$arity$2$(null,o);throw Error(["Index ",Tn.$cljs$core$IFn$_invoke$arity$1$(a)," out of bounds for TransientVector of length",Tn.$cljs$core$IFn$_invoke$arity$1$(r.$cnt$)].join(""))}throw Error("assoc! after persistent!")}(this,t,n);throw Error("TransientVector's key for assoc! must be a number.")},e.$cljs$core$ICounted$_count$arity$1$=function(){if(this.root.$edit$)return this.$cnt$;throw Error("count after persistent!")},e.$cljs$core$IIndexed$_nth$arity$2$=function(e,t){if(this.root.$edit$)return er(this,t)[31&t];throw Error("nth after persistent!")},e.$cljs$core$IIndexed$_nth$arity$3$=function(e,t,n){return 0<=t&&t>>e&31);if(0==(this.$bitmap$&r))return i;var a=En(this.$bitmap$&r-1);return r=this.$arr$[2*a],a=this.$arr$[2*a+1],null==r?a.$inode_lookup$(e+5,t,n,i):Zr(n,r)?a:i},e.$inode_assoc_BANG_$=function(e,t,n,i,r,a){var o=1<<(n>>>t&31),l=En(this.$bitmap$&o-1);if(0!=(this.$bitmap$&o))return s=this.$arr$[2*l],o=this.$arr$[2*l+1],null==s?(s=o.$inode_assoc_BANG_$(e,t+5,n,i,r,a))===o?this:Jr(this,e,2*l+1,s):Zr(i,s)?r===o?this:Jr(this,e,2*l+1,r):(a.val=!0,i=ha(e,a=t+5,s,o,n,i,r),l=(r=2*l)+1,(e=this.$ensure_editable$(e)).$arr$[r]=null,e.$arr$[l]=i,e);var s=En(this.$bitmap$);if(2*s>>t&31]=la.$inode_assoc_BANG_$(e,t+5,n,i,r,a),r=i=0;i<32;)0==(this.$bitmap$>>>i&1)||(l[i]=null!=this.$arr$[r]?la.$inode_assoc_BANG_$(e,t+5,pt(this.$arr$[r]),this.$arr$[r],this.$arr$[r+1],a):this.$arr$[r+1],r+=2),i+=1;return new ca(e,s+1,l)}return t=Array(2*(s+4)),dn(this.$arr$,0,t,0,2*l),t[2*l]=i,t[2*l+1]=r,dn(this.$arr$,2*l,t,2*(l+1),2*(s-l)),a.val=!0,(e=this.$ensure_editable$(e)).$arr$=t,e.$bitmap$|=o,e},e.$inode_assoc$=function(e,t,n,i,r){var a=1<<(t>>>e&31),o=En(this.$bitmap$&a-1);if(0==(this.$bitmap$&a)){var l=En(this.$bitmap$);if(16<=l){for((o=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null])[t>>>e&31]=la.$inode_assoc$(e+5,t,n,i,r),i=n=0;n<32;)0==(this.$bitmap$>>>n&1)||(o[n]=null!=this.$arr$[i]?la.$inode_assoc$(e+5,pt(this.$arr$[i]),this.$arr$[i],this.$arr$[i+1],r):this.$arr$[i+1],i+=2),n+=1;return new ca(null,l+1,o)}return e=Array(2*(l+1)),dn(this.$arr$,0,e,0,2*o),e[2*o]=n,e[2*o+1]=i,dn(this.$arr$,2*o,e,2*(o+1),2*(l-o)),r.val=!0,new na(null,this.$bitmap$|a,e)}var s=this.$arr$[2*o];return a=this.$arr$[2*o+1],null==s?(l=a.$inode_assoc$(e+5,t,n,i,r))===a?this:new na(null,this.$bitmap$,Kr(this.$arr$,2*o+1,l)):Zr(n,s)?i===a?this:new na(null,this.$bitmap$,Kr(this.$arr$,2*o+1,i)):(r.val=!0,r=this.$bitmap$,l=this.$arr$,e=pa(e+=5,s,a,t,n,i),o=(n=2*o)+1,(i=Q(l))[n]=null,i[o]=e,new na(null,r,i))},e.$inode_find$=function(e,t,n,i){var r=1<<(t>>>e&31);if(0==(this.$bitmap$&r))return i;var a=En(this.$bitmap$&r-1);return r=this.$arr$[2*a],a=this.$arr$[2*a+1],null==r?a.$inode_find$(e+5,t,n,i):Zr(n,r)?new Nr(r,a):i},e.$inode_without$=function(e,t,n){var i=1<<(t>>>e&31);if(0==(this.$bitmap$&i))return this;var r=En(this.$bitmap$&i-1),a=this.$arr$[2*r],o=this.$arr$[2*r+1];return null==a?(e=o.$inode_without$(e+5,t,n))===o?this:null!=e?new na(null,this.$bitmap$,Kr(this.$arr$,2*r+1,e)):this.$bitmap$===i?null:new na(null,this.$bitmap$^i,Qr(this.$arr$,r)):Zr(n,a)?new na(null,this.$bitmap$^i,Qr(this.$arr$,r)):this},e.$cljs$core$IIterable$_iterator$arity$1$=function(){return new ta(this.$arr$)};var ia,ra,aa,oa,la=new na(null,0,[]);function sa(e){this.$arr$=e,this.i=0,this.$next_iter$=null}function ca(e,t,n){this.$edit$=e,this.$cnt$=t,this.$arr$=n,this.$cljs$lang$protocol_mask$partition1$$=131072,this.$cljs$lang$protocol_mask$partition0$$=0}function ua(e,t,n){t*=2;for(var i=0;;){if(!(i>>e&31];return null!=r?r.$inode_lookup$(e+5,t,n,i):i},e.$inode_assoc_BANG_$=function(e,t,n,i,r,a){var o=n>>>t&31,l=this.$arr$[o];return null==l?((e=Jr(this,e,o,la.$inode_assoc_BANG_$(e,t+5,n,i,r,a))).$cnt$+=1,e):(t=l.$inode_assoc_BANG_$(e,t+5,n,i,r,a))===l?this:Jr(this,e,o,t)},e.$inode_assoc$=function(e,t,n,i,r){var a=t>>>e&31,o=this.$arr$[a];return null==o?new ca(null,this.$cnt$+1,Kr(this.$arr$,a,la.$inode_assoc$(e+5,t,n,i,r))):(e=o.$inode_assoc$(e+5,t,n,i,r))===o?this:new ca(null,this.$cnt$,Kr(this.$arr$,a,e))},e.$inode_find$=function(e,t,n,i){var r=this.$arr$[t>>>e&31];return null!=r?r.$inode_find$(e+5,t,n,i):i},e.$inode_without$=function(e,t,n){var i=t>>>e&31,r=this.$arr$[i];if(null==r)return this;if((e=r.$inode_without$(e+5,t,n))===r)i=this;else if(null==e)if(this.$cnt$<=8)e:{e=(r=this.$arr$).length,t=Array(2*(this.$cnt$-1));for(var a=1,o=n=0;;){if(!(n2*this.$cnt$?(t=2*this.$cnt$,n=2*this.$cnt$+1,(e=this.$ensure_editable$(e)).$arr$[t]=i,e.$arr$[n]=r,a.val=!0,e.$cnt$+=1,e):(n=this.$arr$.length,t=Array(n+2),dn(this.$arr$,0,t,0,n),t[n]=i,t[n+1]=r,a.val=!0,i=this.$cnt$+1,e=e===this.$edit$?(this.$arr$=t,this.$cnt$=i,this):new da(this.$edit$,this.$collision_hash$,i,t)):this.$arr$[t+1]===r?this:Jr(this,e,t+1,r):new na(e,1<<(this.$collision_hash$>>>t&31),[null,this,null,null]).$inode_assoc_BANG_$(e,t,n,i,r,a)},e.$inode_assoc$=function(e,t,n,i,r){return t===this.$collision_hash$?-1===(e=ua(this.$arr$,this.$cnt$,n))?(e=2*this.$cnt$,t=Array(e+2),dn(this.$arr$,0,t,0,e),t[e]=n,t[e+1]=i,r.val=!0,new da(null,this.$collision_hash$,this.$cnt$+1,t)):Cu.$cljs$core$IFn$_invoke$arity$2$(this.$arr$[e+1],i)?this:new da(null,this.$collision_hash$,this.$cnt$,Kr(this.$arr$,e+1,i)):new na(null,1<<(this.$collision_hash$>>>e&31),[null,this]).$inode_assoc$(e,t,n,i,r)},e.$inode_find$=function(e,t,n,i){return!((e=ua(this.$arr$,this.$cnt$,n))<0)&&Zr(n,this.$arr$[e])?new Nr(this.$arr$[e],this.$arr$[e+1]):i},e.$inode_without$=function(e,t,n){return-1===(e=ua(this.$arr$,this.$cnt$,n))?this:1===this.$cnt$?null:new da(null,this.$collision_hash$,this.$cnt$-1,Qr(this.$arr$,jn(e)))},e.$cljs$core$IIterable$_iterator$arity$1$=function(){return new ta(this.$arr$)},(e=fa.prototype).toString=function(){return it(this)},e.indexOf=((ia=function(e,t){switch(arguments.length){case 1:return Lt(this,e,0);case 2:return Lt(this,e,t)}throw Error("Invalid arity: "+arguments.length)}).$cljs$core$IFn$_invoke$arity$1$=function(e){return Lt(this,e,0)},ia.$cljs$core$IFn$_invoke$arity$2$=function(e,t){return Lt(this,e,t)},ia),e.lastIndexOf=((ra=function(e,t){switch(arguments.length){case 1:return ga.call(this,e);case 2:return Dt(this,e,t)}throw Error("Invalid arity: "+arguments.length)}).$cljs$core$IFn$_invoke$arity$1$=ga,ra.$cljs$core$IFn$_invoke$arity$2$=function(e,t){return Dt(this,e,t)},ra),e.$cljs$core$IMeta$_meta$arity$1$=function(){return this.meta},e.$cljs$core$INext$_next$arity$1$=function(){if(null==this.s){var e=this.$nodes$,t=this.i+2;return ya(e,t,null)}e=this.$nodes$,t=this.i;var n=Eu(this.s);return ya(e,t,n)},e.$cljs$core$IHash$_hash$arity$1$=function(){var e=this.$__hash$;return null!=e?e:this.$__hash$=e=wt(this)},e.$cljs$core$IEquiv$_equiv$arity$2$=function(e,t){return On(this,t)},e.$cljs$core$IEmptyableCollection$_empty$arity$1$=function(){return Dn},e.$cljs$core$IReduce$_reduce$arity$2$=function(e,t){return yn(t,this)},e.$cljs$core$IReduce$_reduce$arity$3$=function(e,t,n){return $n(t,n,this)},e.$cljs$core$ISeq$_first$arity$1$=function(){return null==this.s?new Nr(this.$nodes$[this.i],this.$nodes$[this.i+1]):ju(this.s)},e.$cljs$core$ISeq$_rest$arity$1$=function(){var e,t,n,i,r,a=this,o=null==a.s?(i=a.$nodes$,r=a.i+2,ya(i,r,null)):(e=a.$nodes$,t=a.i,n=Eu(a.s),ya(e,t,n));return null!=o?o:Dn},e.$cljs$core$ISeqable$_seq$arity$1$=function(){return this},e.$cljs$core$IWithMeta$_with_meta$arity$2$=function(e,t){return t===this.meta?this:new fa(t,this.$nodes$,this.i,this.s,this.$__hash$)},e.$cljs$core$ICollection$_conj$arity$2$=function(e,t){return Wn(t,this)},fa.prototype[K]=function(){return bt(this)},(e=$a.prototype).toString=function(){return it(this)},e.indexOf=((aa=function(e,t){switch(arguments.length){case 1:return Lt(this,e,0);case 2:return Lt(this,e,t)}throw Error("Invalid arity: "+arguments.length)}).$cljs$core$IFn$_invoke$arity$1$=function(e){return Lt(this,e,0)},aa.$cljs$core$IFn$_invoke$arity$2$=function(e,t){return Lt(this,e,t)},aa),e.lastIndexOf=((oa=function(e,t){switch(arguments.length){case 1:return va.call(this,e);case 2:return Dt(this,e,t)}throw Error("Invalid arity: "+arguments.length)}).$cljs$core$IFn$_invoke$arity$1$=va,oa.$cljs$core$IFn$_invoke$arity$2$=function(e,t){return Dt(this,e,t)},oa),e.$cljs$core$IMeta$_meta$arity$1$=function(){return this.meta},e.$cljs$core$INext$_next$arity$1$=function(){var e=this.$nodes$,t=this.i,n=Eu(this.s);return wa(e,t,n)},e.$cljs$core$IHash$_hash$arity$1$=function(){var e=this.$__hash$;return null!=e?e:this.$__hash$=e=wt(this)},e.$cljs$core$IEquiv$_equiv$arity$2$=function(e,t){return On(this,t)},e.$cljs$core$IEmptyableCollection$_empty$arity$1$=function(){return Dn},e.$cljs$core$IReduce$_reduce$arity$2$=function(e,t){return yn(t,this)},e.$cljs$core$IReduce$_reduce$arity$3$=function(e,t,n){return $n(t,n,this)},e.$cljs$core$ISeq$_first$arity$1$=function(){return ju(this.s)},e.$cljs$core$ISeq$_rest$arity$1$=function(){var e=this.$nodes$,t=this.i,n=Eu(this.s);return null!=(e=wa(e,t,n))?e:Dn},e.$cljs$core$ISeqable$_seq$arity$1$=function(){return this},e.$cljs$core$IWithMeta$_with_meta$arity$2$=function(e,t){return t===this.meta?this:new $a(t,this.$nodes$,this.i,this.s,this.$__hash$)},e.$cljs$core$ICollection$_conj$arity$2$=function(e,t){return Wn(t,this)},$a.prototype[K]=function(){return bt(this)},ka.prototype.$hasNext$=function(){return!this.seen||this.$root_iter$.$hasNext$()},ka.prototype.next=function(){return this.seen?this.$root_iter$.next():(this.seen=!0,new Nr(null,this.$nil_val$))},ka.prototype.remove=function(){return Error("Unsupported operation")},(e=_a.prototype).$cljs$core$IFind$_find$arity$2$=function(e,t){return null==t?this.$has_nil_QMARK_$?new Nr(null,this.$nil_val$):null:null==this.root?null:this.root.$inode_find$(0,pt(t),t,null)},e.toString=function(){return it(this)},e.keys=function(){return bt(Bu.$cljs$core$IFn$_invoke$arity$1$?Bu.$cljs$core$IFn$_invoke$arity$1$(this):Bu.call(null,this))},e.entries=function(){return new Or(Au(Au(this)))},e.values=function(){return bt(Ma.$cljs$core$IFn$_invoke$arity$1$?Ma.$cljs$core$IFn$_invoke$arity$1$(this):Ma.call(null,this))},e.has=function(e){return mn(this,e)},e.get=function(e,t){return this.$cljs$core$ILookup$_lookup$arity$3$(null,e,t)},e.forEach=function(e){for(var t=Au(this),n=null,i=0,r=0;;)if(rthis.end},Za.prototype.next=function(){var e=this.i;return this.i+=this.step,e},(e=Ka.prototype).toString=function(){return it(this)},e.indexOf=((Ha=function(e,t){switch(arguments.length){case 1:return Lt(this,e,0);case 2:return Lt(this,e,t)}throw Error("Invalid arity: "+arguments.length)}).$cljs$core$IFn$_invoke$arity$1$=function(e){return Lt(this,e,0)},Ha.$cljs$core$IFn$_invoke$arity$2$=function(e,t){return Lt(this,e,t)},Ha),e.lastIndexOf=((Wa=function(e,t){switch(arguments.length){case 1:return Qa.call(this,e);case 2:return Dt(this,e,t)}throw Error("Invalid arity: "+arguments.length)}).$cljs$core$IFn$_invoke$arity$1$=Qa,Wa.$cljs$core$IFn$_invoke$arity$2$=function(e,t){return Dt(this,e,t)},Wa),e.$cljs$core$IIndexed$_nth$arity$2$=function(e,t){if(0<=t&&tthis.end&&0===this.step)return this.start;throw Error("Index out of bounds")},e.$cljs$core$IIndexed$_nth$arity$3$=function(e,t,n){return 0<=t&&tthis.end&&0===this.step?this.start:n},e.$cljs$core$IIterable$_iterator$arity$1$=function(){return new Za(this.start,this.end,this.step)},e.$cljs$core$IMeta$_meta$arity$1$=function(){return this.meta},e.$cljs$core$INext$_next$arity$1$=function(){return 0this.end?new Ka(null,this.start+this.step,this.end,this.step,null,null,null):null},e.$cljs$core$ICounted$_count$arity$1$=function(){return Math.ceil((this.end-this.start)/this.step)},e.$cljs$core$IHash$_hash$arity$1$=function(){var e=this.$__hash$;return null!=e?e:this.$__hash$=e=wt(this)},e.$cljs$core$IEquiv$_equiv$arity$2$=function(e,t){return On(this,t)},e.$cljs$core$IEmptyableCollection$_empty$arity$1$=function(){return Dn},e.$cljs$core$IReduce$_reduce$arity$2$=function(e,t){return Tt(this,t)},e.$cljs$core$IReduce$_reduce$arity$3$=function(e,t,n){for(e=this.start;;){if(!(0this.end))return n;if(zt(n=t.$cljs$core$IFn$_invoke$arity$2$?t.$cljs$core$IFn$_invoke$arity$2$(n,e):t.call(null,n,e)))return _u(n);e+=this.step}},e.$cljs$core$ISeq$_first$arity$1$=function(){return this.start},e.$cljs$core$ISeq$_rest$arity$1$=function(){var e=this.$cljs$core$INext$_next$arity$1$();return null==e?Dn:e},e.$cljs$core$ISeqable$_seq$arity$1$=function(){return this},e.$cljs$core$IChunkedSeq$_chunked_first$arity$1$=function(){return Ja(this),this.chunk},e.$cljs$core$IChunkedSeq$_chunked_rest$arity$1$=function(){return Ja(this),null==this.$chunk_next$?Dn:this.$chunk_next$},e.$cljs$core$IWithMeta$_with_meta$arity$2$=function(e,t){return t===this.meta?this:new Ka(t,this.start,this.end,this.step,this.chunk,this.$chunk_next$,this.$__hash$)},e.$cljs$core$ICollection$_conj$arity$2$=function(e,t){return Wn(t,this)},e.$cljs$core$IChunkedNext$_chunked_next$arity$1$=function(){return Au(this.$cljs$core$IChunkedSeq$_chunked_rest$arity$1$(null))},Ka.prototype[K]=function(){return bt(this)};var oo={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};function lo(t,e,n){if(null==t)return qe(e,"nil");if(r=n,a=t,fn(Tu.$cljs$core$IFn$_invoke$arity$2$(r,ec))&&null!=a&&(131072&a.$cljs$lang$protocol_mask$partition0$$||B===a.$cljs$core$IMeta$$)&&null!=tn(a)){qe(e,"^");var i=tn(t);so.$cljs$core$IFn$_invoke$arity$3$?so.$cljs$core$IFn$_invoke$arity$3$(i,e,n):so.call(null,i,e,n),qe(e," ")}var r,a,o,l,s;if(t.$cljs$lang$type$)return t.$cljs$lang$ctorPrWriter$(e);if(null!=t?2147483648&t.$cljs$lang$protocol_mask$partition0$$||B===t.$cljs$core$IPrintWithWriter$$||!t.$cljs$lang$protocol_mask$partition0$$&&X(Ue,t):X(Ue,t))return Xe(t,e,n);if(!0===t||!1===t)return qe(e,Tn.$cljs$core$IFn$_invoke$arity$1$(t));if("number"==typeof t)return qe(e,isNaN(t)?"##NaN":t===Number.POSITIVE_INFINITY?"##Inf":t===Number.NEGATIVE_INFINITY?"##-Inf":Tn.$cljs$core$IFn$_invoke$arity$1$(t));if(null!=t&&t.constructor===Object)return qe(e,"#js "),i=Di.$cljs$core$IFn$_invoke$arity$2$(function(e){return new Nr(null!=no(/[A-Za-z_\*\+\?!\-'][\w\*\+\?!\-']*/,e)?Jn.$cljs$core$IFn$_invoke$arity$1$(e):e,t[e])},p(t)),ho.$cljs$core$IFn$_invoke$arity$4$?ho.$cljs$core$IFn$_invoke$arity$4$(i,so,e,n):ho.call(null,i,so,e,n);if(G(t))return io(e,so,"#js ["," ","]",n,t);if("string"==typeof t)return wu(pu.$cljs$core$IFn$_invoke$arity$1$(n))?qe(e,(o=t,['"',Tn.$cljs$core$IFn$_invoke$arity$1$(o.replace(/[\\"\b\f\n\r\t]/g,function(e){return oo[e]})),'"'].join(""))):qe(e,t);if(u(t)){var c=t.name;return ro(e,Wt(["#object[",n=wu(null==c||/^[\s\xa0]*$/.test(c))?"Function":c,"","]"]))}return t instanceof Date?(n=function(e,t){for(e=Tn.$cljs$core$IFn$_invoke$arity$1$(e);;){if(!(e.lengthjs",t)};function yo(e,t){return(null!=e?B===e.$cljs$core$IEncodeJS$$||!e.$cljs$lang$protocol_mask$partition$$&&X(go,e):X(go,e))?mo(e):"string"==typeof e||"number"==typeof e||e instanceof Vn||e instanceof ft?t.$cljs$core$IFn$_invoke$arity$1$?t.$cljs$core$IFn$_invoke$arity$1$(e):t.call(null,e):co(Wt([e]),H())}var Du=function e(t){for(var n=[],i=arguments.length,r=0;rclj",t)};function bo(e){var t=Wt([Xc,!1]),n=null!=t&&(64&t.$cljs$lang$protocol_mask$partition0$$||B===t.$cljs$core$ISeq$$)?wi(ja,t):t,a=wu(n=Tu.$cljs$core$IFn$_invoke$arity$2$(n,Xc))?Jn:Tn;return function i(r){return(null!=r?B===r.$cljs$core$IEncodeClojure$$||!r.$cljs$lang$protocol_mask$partition$$&&X($o,r):X($o,r))?vo(r,wi(Fa,t)):hn(r)?to(Di.$cljs$core$IFn$_invoke$arity$2$(i,r)):Br(r)?new Nr(i(ve(r)),i(be(r))):an(r)?Hi.$cljs$core$IFn$_invoke$arity$3$(Yt(r),Di.$cljs$core$IFn$_invoke$arity$1$(i),r):G(r)?Ke(kn(function(e,t){return hi.$cljs$core$IFn$_invoke$arity$2$(e,i(t))},Ye(sr),r)):(null==r?null:r.constructor)===Object?Ke(kn(function(e,t){var n=a.$cljs$core$IFn$_invoke$arity$1$?a.$cljs$core$IFn$_invoke$arity$1$(t):a.call(null,t);return t=i(h(r,t)),Qe(e,n,t)},Ye(Hr),p(r))):r}(e)}function wo(e){this.$uuid$=e,this.$__hash$=null,this.$cljs$lang$protocol_mask$partition0$$=2153775104,this.$cljs$lang$protocol_mask$partition1$$=2048}function ko(){function e(){return Math.floor(16*Math.random()).toString(16)}var t=(8|3&Math.floor(16*Math.random())).toString(16);return new wo([Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),"-",Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),"-4",Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),"-",Tn.$cljs$core$IFn$_invoke$arity$1$(t),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),"-",Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e()),Tn.$cljs$core$IFn$_invoke$arity$1$(e())].join("").toLowerCase())}function _o(e){var t=new Ur(null,1,[ns,Wo],null),n=Error("Promise error");return this.message="Promise error",this.data=t,this.$cause$=e,this.name=n.name,this.description=n.description,this.number=n.number,this.fileName=n.fileName,this.lineNumber=n.lineNumber,this.columnNumber=n.columnNumber,this.stack=n.stack,this}function xo(e){return e instanceof _o?e.data:null}wo.prototype.toString=function(){return this.$uuid$},wo.prototype.$cljs$core$IEquiv$_equiv$arity$2$=function(e,t){return t instanceof wo&&this.$uuid$===t.$uuid$},wo.prototype.$cljs$core$IPrintWithWriter$_pr_writer$arity$3$=function(e,t){return qe(t,['#uuid "',Tn.$cljs$core$IFn$_invoke$arity$1$(this.$uuid$),'"'].join(""))},wo.prototype.$cljs$core$IHash$_hash$arity$1$=function(){return null==this.$__hash$&&(this.$__hash$=pt(this.$uuid$)),this.$__hash$},_o.prototype.__proto__=Error.prototype,_o.prototype.$cljs$core$IPrintWithWriter$$=B,_o.prototype.$cljs$core$IPrintWithWriter$_pr_writer$arity$3$=function(e,t,n){return qe(t,"#error {:message "),so(this.message,t,n),wu(this.data)&&(qe(t,", :data "),so(this.data,t,n)),wu(this.$cause$)&&(qe(t,", :cause "),so(this.$cause$,t,n)),qe(t,"}")},_o.prototype.toString=function(){return it(this)};var Io=null;function Ao(a){return null==Io&&(Io=new Ni(Va)),function(e){return"undefined"!=typeof setTimeout&&(!!wu(e=setTimeout(e,0))||e)}.call(null,function(){for(var e=Au(_u(Io)),t=null,n=0,i=0;;)if(i","<>",1280186386),Hu=new Vn(null,"file-blobs","file-blobs",-1819372772),jl=new Vn(null,"div#logo","div#logo",1426956221),El=new Vn(null,"svg#lines","svg#lines",1290950951),Cl=new Vn(null,"store","store",1512230022),Sl=new Vn(null,"zipfile","zipfile",-626213216),zl=new Vn(null,"li.add-file-menu.topmenu","li.add-file-menu.topmenu",1094148234),Fl=new Vn(null,"flush-on-newline","flush-on-newline",-151457939),Tl=new Vn(null,"announce","announce",-2116265553),Ol=new Vn(null,"div#qrcode","div#qrcode",-1474041682),Rl=new Vn(null,"add-file","add-file",1330681286),Pl=new Vn(null,"button.success","button.success",692159507),Nl=new Vn(null,"add-menu","add-menu",1972422103),Ml=new Vn(null,"ul","ul",-1349521403),Bl=new Vn(null,"reagent-render","reagent-render",-985383853),Ll=new Vn(null,"div#panes","div#panes",-1350822105),Dl=new Vn(null,"warning","warning",-1685650671),ql=new Vn(null,"div.message-wrapper","div.message-wrapper",-1785118504),Ul=new Vn(null,"secret","secret",618547054),Hl=new Vn(null,"download","download",-300081668),Wl=new Vn(null,"d","d",1972142424),Vl=new Vn(null,"paper-plane","paper-plane",-1142375095),Gl=new Vn(null,"a","a",-2123407586),Xl=new Vn(null,"r","r",-471384190),Yl=new Vn(null,"array-buffer","array-buffer",519008380),Zl=new Vn(null,"componentWillUnmount","componentWillUnmount",1573788814),Kl=new Vn(null,"p","p",151049309),Ql=new Vn(null,"bars","bars",-586907130),Jl=new Vn(null,"lastModified","lastModified",-1993155246),es=new Vn(null,"contextType","contextType",1033066077),ts=new Vn(null,"section#editor.screen","section#editor.screen",-911618661),ns=new Vn(null,"error","error",-978969032),is=new Vn(null,"div#send-spinner","div#send-spinner",681665326),rs=new Vn(null,"getDerivedStateFromProps","getDerivedStateFromProps",-991834739),as=new Vn(null,"bugout-instance","bugout-instance",-1102775879),os=new Vn(null,"accept","accept",1874130431),ls=new Vn(null,"ref","ref",1289896967),ss=new Vn(null,"div","div",1057191632),cs=new Vn(null,"div#loading","div#loading",1871115588),us=new Vn(null,"value","value",305978217),ds=new Vn(null,"receive","receive",1830053389),ps=new Vn(null,"fallback-impl","fallback-impl",-1501286995),hs=new Vn(null,"display-name","display-name",694513143),fs=new Vn(null,"settings","settings",1556144875),gs=new Vn(null,"height","height",1025178622),ms=new Vn(null,"keyword-fn","keyword-fn",-64566675),ys=new Vn(null,"a.title","a.title",828429783),$s=new Vn(null,"done","done",-889844188),vs=new Vn(null,"lineNumbers","lineNumbers",1374890941),bs=new Vn(null,"upload","upload",-255769218),ws=new Vn(null,"for","for",-1323786319),ks=new Vn(null,"width","width",-384071477),_s=new Vn(null,"send","send",-652151114),xs=new Vn(null,"component-will-unmount","component-will-unmount",-2058314698),Is=new Vn(null,"span.icon-times","span.icon-times",2074287601),Wu=new Vn(null,"references","references",882562509),As=new Vn(null,"section#send.screen","section#send.screen",-2078964853),js=new Vn(null,"href","href",-793805698),Es=new Vn(null,"theme","theme",-1247880880),Cs=new Vn(null,"div.qr","div.qr",2003277733),Ss=new ft(null,"f","f",43394975,null),zs=new Vn(null,"play","play",-580418022),Fs=new Vn(null,"type","type",1174270348),Ts=new Vn(null,"div#dedication","div#dedication",-1879945994),Os=new Vn(null,"style","style",-496642736),Rs=new Vn(null,"autoCloseBrackets","autoCloseBrackets",1157493311),Ps=new Vn(null,"a.color-warn","a.color-warn",1978854667),Ns=new Vn(null,"div#add-menu","div#add-menu",-35783525),Ms=new Vn(null,"more-marker","more-marker",-14717935),Bs=new Vn(null,"fill-opacity","fill-opacity",-537571170),Ls=new Vn(null,"files","files",-472457450),Ds=new Vn(null,"span","span",1394872991),qs=new ft(null,"meta175481","meta175481",817230784,null),Us=new Vn(null,"mode-last","mode-last",1252679446),Hs=new Vn(null,"button#add-app","button#add-app",-1948540845),Ws=new Vn(null,"viewBox","viewBox",-469489477),Vs=new ft(null,"val","val",1769233139,null),Gs=new ft(null,"meta174269","meta174269",214793934,null),Xs=new Vn(null,"div.input-group","div.input-group",-2073660476),Ys=new Vn(null,"code","code",1586293142),Zs=new Vn(null,"nav","nav",719540477),Ks=new Vn(null,"link-out","link-out",1420447746),Qs=new Vn(null,"edit","edit",-1641834166),Js=new Vn(null,"button#copy","button#copy",-415239445),ec=new Vn(null,"meta","meta",1499536964),tc=new Vn(null,"displayName","displayName",-809144601),nc=new Vn(null,"search","search",1564939822),ic=new Vn(null,"windows","windows",2068861701),rc=new Vn(null,"a.back","a.back",-1446708396),ac=new Vn(null,"getDerivedStateFromError","getDerivedStateFromError",166658477),oc=new Vn(null,"ul#files","ul#files",38546823),lc=new Vn(null,"mode","mode",654403691),sc=new Vn(null,"scripts","scripts",626373193),cc=new Vn(null,"div.column","div.column",-1380853326),uc=new Vn(null,"section#apps.screen","section#apps.screen",-2139196962),dc=new Vn(null,"div.message","div.message",197515312),pc=new Vn(null,"class","class",-2030961996),hc=new Vn(null,"history","history",-247395220),fc=new Vn(null,"burger-menu","burger-menu",2097990522),gc=new Vn(null,"div#search","div#search",-1052339888),mc=new Vn(null,"on-key-down","on-key-down",-1374733765),yc=new Vn(null,"title","title",636505583),$c=new Vn(null,"cljsLegacyRender","cljsLegacyRender",-1527295613),vc=new Vn(null,"apps","apps",844744865),bc=new Vn(null,"scan","scan",-328900104),wc=new Vn(null,"seen","seen",-518999789),kc=new Vn(null,"editors","editors",557792993),_c=new Vn(null,"strong","strong",269529e3),xc=new Vn(null,"reagentRender","reagentRender",-358306383),Ic=new Vn(null,"name","name",1843675177),Ac=new Vn(null,"clone","clone",711747572),jc=new Vn(null,"on-set","on-set",-140953470),Ec=new Vn(null,"display","display",242065432),Cc=new Vn(null,"div.app","div.app",-99849286),Sc=new Vn(null,"stroke-linejoin","stroke-linejoin",-1810816406),zc=new Vn(null,"span.icon-search","span.icon-search",380335581),Fc=new Vn(null,"data-url","data-url",-1627669834),Tc=new Vn(null,"src","src",-1651076051),Oc=new ft(null,"meta175250","meta175250",-334380485,null),Rc=new Vn(null,"tab-index","tab-index",895755393),Pc=new Vn(null,"div.columns","div.columns",-437221213),Nc=new Vn(null,"dup","dup",556298533),Mc=new Vn(null,"read-only","read-only",-191706886),Bc=new Vn(null,"query","query",-1288509510),Lc=new Vn(null,"print-length","print-length",1931866356),Dc=new Vn(null,"back","back",-417520012),qc=new Vn(null,"svg.icon","svg.icon",521947604),Uc=new Vn(null,"app","app",-560961707),Hc=new Vn(null,"component-did-update","component-did-update",-1468549173),Wc=new Vn(null,"app-order","app-order",-1496153596),Vc=new Vn(null,"stroke-linecap","stroke-linecap",-1201103248),Gc=new Vn(null,"pencil","pencil",-217778832),Xc=new Vn(null,"keywordize-keys","keywordize-keys",1310784252),Yc=new Vn(null,"section#tags","section#tags",118673252),Zc=new Vn(null,"initiated","initiated",2096076574),Kc=new Vn(null,"cy","cy",755331060),Qc=new Vn(null,"cx","cx",1272694324),Jc=new Vn(null,"on-write","on-write",31519475),eu=new Vn(null,"message","message",-406056002),tu=new Vn(null,"key","key",-1516042587),nu=new Vn(null,"svg","svg",856789142),iu=new Vn(null,"times","times",1671571467),ru=new Vn(null,"on-mouse-leave","on-mouse-leave",-1864319528),au=new Vn(null,"section#header","section#header",547405294),ou=new Vn(null,"run","run",-1821166653),lu=new Vn(null,"validator","validator",-1966190681),su=new Vn(null,"sending","sending",-1806704862),cu=new Vn(null,"li.topmenu","li.topmenu",728846684),uu=new ft(null,"meta175310","meta175310",1169681045,null),du=new Vn(null,"icon-url","icon-url",869517518),pu=new Vn(null,"readably","readably",1129599760),hu=new Vn(null,"contextTypes","contextTypes",-2023853910),fu=new Vn(null,"skip","skip",602715391),gu=new Vn(null,"div.editor","div.editor",-1423342585),mu=new Vn(null,"ul#burger-menu","ul#burger-menu",490455881),yu=new ft(null,"blockable","blockable",-28395259,null),$u=new Vn(null,"file","file",-1269645878),Vu=new Vn(null,"editing","editing",1365491601),vu=new Vn(null,"downloading","downloading",-213530737),bu=new Vn(null,"shouldComponentUpdate","shouldComponentUpdate",1795750960),Gu=new Vn(null,"fill","fill",883462889),Xu=new Vn(null,"span.app-icon","span.app-icon",-1544378520),Yu=new Vn(null,"id","id",-1388402092),Zu=new Vn(null,"input#send-secret","input#send-secret",1520843508),Ku=new Vn(null,"button.remove","button.remove",853349757),Qu=new Vn(null,"text","text",-1790561697),Ju=new Vn(null,"ul#file-menu","ul#file-menu",-579287736),ed=new Vn(null,"keyPair","keyPair",-1211668761),td=new Vn(null,"section#about.screen","section#about.screen",-768431714),nd=new Vn(null,"menu-state","menu-state",1400425706),id={},rd={},ad=function e(t,n){if(null!=t&&null!=t.$cljs$core$async$impl$protocols$ReadPort$take_BANG_$arity$2$)return t.$cljs$core$async$impl$protocols$ReadPort$take_BANG_$arity$2$(t,n);var i=e[f(null==t?null:t)];if(null!=i)return i.$cljs$core$IFn$_invoke$arity$2$?i.$cljs$core$IFn$_invoke$arity$2$(t,n):i.call(null,t,n);if(null!=(i=e._))return i.$cljs$core$IFn$_invoke$arity$2$?i.$cljs$core$IFn$_invoke$arity$2$(t,n):i.call(null,t,n);throw Y("ReadPort.take!",t)},od=function e(t,n,i){if(null!=t&&null!=t.$cljs$core$async$impl$protocols$WritePort$put_BANG_$arity$3$)return t.$cljs$core$async$impl$protocols$WritePort$put_BANG_$arity$3$(t,n,i);var r=e[f(null==t?null:t)];if(null!=r)return r.$cljs$core$IFn$_invoke$arity$3$?r.$cljs$core$IFn$_invoke$arity$3$(t,n,i):r.call(null,t,n,i);if(null!=(r=e._))return r.$cljs$core$IFn$_invoke$arity$3$?r.$cljs$core$IFn$_invoke$arity$3$(t,n,i):r.call(null,t,n,i);throw Y("WritePort.put!",t)},ld=function e(t){if(null!=t&&null!=t.$cljs$core$async$impl$protocols$Channel$close_BANG_$arity$1$)return t.$cljs$core$async$impl$protocols$Channel$close_BANG_$arity$1$(t);var n=e[f(null==t?null:t)];if(null!=n)return n.$cljs$core$IFn$_invoke$arity$1$?n.$cljs$core$IFn$_invoke$arity$1$(t):n.call(null,t);if(null!=(n=e._))return n.$cljs$core$IFn$_invoke$arity$1$?n.$cljs$core$IFn$_invoke$arity$1$(t):n.call(null,t);throw Y("Channel.close!",t)},sd=function e(t){if(null!=t&&null!=t.$cljs$core$async$impl$protocols$Handler$active_QMARK_$arity$1$)return!0;var n=e[f(null==t?null:t)];if(null!=n)return n.$cljs$core$IFn$_invoke$arity$1$?n.$cljs$core$IFn$_invoke$arity$1$(t):n.call(null,t);if(null!=(n=e._))return n.$cljs$core$IFn$_invoke$arity$1$?n.$cljs$core$IFn$_invoke$arity$1$(t):n.call(null,t);throw Y("Handler.active?",t)},cd=function e(t){switch(arguments.length){case 1:return e.$cljs$core$IFn$_invoke$arity$1$(t);case 2:return e.$cljs$core$IFn$_invoke$arity$2$(t,arguments[1]);default:throw Error(["Invalid arity: ",Tn.$cljs$core$IFn$_invoke$arity$1$(arguments.length)].join(""))}};function ud(e,t,n,i,r){for(var a=0;athis.head?(ud(this.$arr$,this.tail,e,0,this.$arr$.length-this.tail),ud(this.$arr$,0,e,this.$arr$.length-this.tail,this.head),this.tail=0,this.head=this.length,this.$arr$=e):this.tail===this.head?(this.head=this.tail=0,this.$arr$=e):null},e.cleanup=function(e){for(var t=this.length,n=0;;){if(!(n=this.n},e.$cljs$core$async$impl$protocols$Buffer$remove_BANG_$arity$1$=function(){return this.buf.pop()},e.$cljs$core$async$impl$protocols$Buffer$add_BANG__STAR_$arity$2$=function(e,t){return this.buf.unbounded_unshift(t),this},e.$cljs$core$async$impl$protocols$Buffer$close_buf_BANG_$arity$1$=function(){},e.$cljs$core$ICounted$_count$arity$1$=function(){return this.buf.length};var hd={};function fd(){this.val=hd,this.$cljs$lang$protocol_mask$partition0$$=2,this.$cljs$lang$protocol_mask$partition1$$=0}function gd(){return z("iPhone")&&!z("iPod")&&!z("iPad")}(e=fd.prototype).$cljs$core$async$impl$protocols$Buffer$full_QMARK_$arity$1$=function(){return!1},e.$cljs$core$async$impl$protocols$Buffer$remove_BANG_$arity$1$=function(){return this.val},e.$cljs$core$async$impl$protocols$Buffer$add_BANG__STAR_$arity$2$=function(e,t){return hd===this.val&&(this.val=t),this},e.$cljs$core$async$impl$protocols$Buffer$close_buf_BANG_$arity$1$=function(){hd===this.val&&(this.val=null)},e.$cljs$core$ICounted$_count$arity$1$=function(){return hd===this.val?0:1},z("Opera"),z("Trident")||z("MSIE"),z("Edge"),!z("Gecko")||A("WebKit")&&!z("Edge")||z("Trident")||z("MSIE")||z("Edge"),A("WebKit")&&!z("Edge")&&z("Mobile"),z("Macintosh"),z("Windows"),z("Linux")||z("CrOS");var md,yd=o.navigator||null;function $d(e){var t=document;return e=String(e),"application/xhtml+xml"===t.contentType&&(e=e.toLowerCase()),t.createElement(e)}function vd(){var e=o.MessageChannel;if(void 0===e&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!z("Presto")&&(e=function(){var e,t,n=$d("IFRAME");n.style.display="none",e=n,t=(t=new k(I,b instanceof y&&b.constructor===y&&b.$STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_$===$?b.$stringConstValueWithSecurityContract__googStringSecurityPrivate_$:"type_error:Const"))instanceof k&&t.constructor===k&&t.$TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_$===x?t.$privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_$:(f(t),"type_error:TrustedResourceUrl"),e.src=t.toString(),document.documentElement.appendChild(n);var i=n.contentWindow;(n=i.document).open(),n.write(O instanceof F&&O.constructor===F&&O.$SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_$===T?O.$privateDoNotAccessOrElseSafeHtmlWrappedValue_$:(f(O),"type_error:SafeHtml")),n.close();var r="callImmediate"+Math.random(),a="file:"==i.location.protocol?"*":i.location.protocol+"//"+i.location.host;n=d(function(e){"*"!=a&&e.origin!=a||e.data!=r||this.port1.onmessage()},this),i.addEventListener("message",n,!1),this.port1={},this.port2={postMessage:function(){i.postMessage(r,a)}}}),void 0===e||z("Trident")||z("MSIE"))return"undefined"!=typeof document&&"onreadystatechange"in $d("SCRIPT")?function(e){var t=$d("SCRIPT");t.onreadystatechange=function(){t.onreadystatechange=null,t.parentNode.removeChild(t),t=null,e(),e=null},document.documentElement.appendChild(t)}:function(e){o.setTimeout(e,0)};var t=new e,n={},i=n;return t.port1.onmessage=function(){if(void 0!==n.next){var e=(n=n.next).$cb$;n.$cb$=null,e()}},function(e){i.next={$cb$:e},i=i.next,t.port2.postMessage(0)}}yd&&(yd.appVersion||"").indexOf("X11"),z("Android"),gd(),z("iPad"),z("iPod"),gd()||z("iPad")||z("iPod"),A("KaiOS"),A("GAFP");var bd=new dd(Array(32)),wd=!1,kd=!1;function _d(){kd=!(wd=!0);for(var e=0;;){var t=bd.pop();if(!(null!=t&&(t.$cljs$core$IFn$_invoke$arity$0$?t.$cljs$core$IFn$_invoke$arity$0$():t.call(null),e<1024)))break;e+=1}return wd=!1,0")}xp.$cljs$core$IFn$_invoke$arity$1$=function(e){return e},xp.$cljs$core$IFn$_invoke$arity$2$=function(e,n){return Su(e)")){case-1:if(null==(n=oh(wh,t))){var r=Eu(no(rh,Lu(t)));n=Fu(r,0,null),i=Fu(r,1,null),r=null==(r=Fu(r,2,null))?null:np(r,/\./," ");var a=Ai(-1,n.indexOf("-"));n=new $h(n,i,r,a),t=wh[t]=n}else t=n;return kh(t,e,1);case 0:return kh(new $h(t=Fu(e,1,null),null,null,null),e,2);default:e=en(new Pu(null,2,5,Nu,[t.substring(0,n),Zt.$cljs$core$IFn$_invoke$arity$3$(en(e,null),0,t.substring(n+1))],null),tn(e))}}}(e):hn(e)?xh.$cljs$core$IFn$_invoke$arity$1$?xh.$cljs$core$IFn$_invoke$arity$1$(e):xh.call(null,e):cp(e)?Lu(e):(null!=e?2147483648&e.$cljs$lang$protocol_mask$partition0$$||B===e.$cljs$core$IPrintWithWriter$$||!e.$cljs$lang$protocol_mask$partition0$$&&X(Ue,e):X(Ue,e))?co(Wt([e]),H()):e}function xh(e){return J(Di.$cljs$core$IFn$_invoke$arity$2$(_h,e))}function Ih(e,t,n,i){switch(Su(e)-i){case 0:return Jd.createElement(t,n);case 1:return Jd.createElement(t,n,_h(Fu(e,i,null)));default:return Jd.createElement.apply(null,_n(function(e,t,n){return i<=t&&e.push(_h(n)),e},[t,n],e))}}Wp=_h;var Ah=Qd(14),jh=new Ni(Hr);function Eh(e,t){return n=e,i=t,Tp(),function(t,n){var e=dp;dp=!0;try{return Ah.render(t.$cljs$core$IFn$_invoke$arity$0$?t.$cljs$core$IFn$_invoke$arity$0$():t.call(null),n,function(){var e=dp;dp=!1;try{return Bi.$cljs$core$IFn$_invoke$arity$4$(jh,Zt,n,new Pu(null,2,5,Nu,[t,n],null)),kp.flush_after_render(),null}finally{dp=e}})}finally{dp=e}}(function(){return _h(Qt(n)?n.$cljs$core$IFn$_invoke$arity$0$?n.$cljs$core$IFn$_invoke$arity$0$():n.call(null):n)},i);var n,i}function Ch(e,t){return new Pp(e,t)}ph=function(e){return Ah.findDOMNode(e)};var Sh=Mu([Ks,Ql,Vl,iu,nc,Gc,No,Fo,Dc,Ac,Ys,zs,Hl],"M1408 928v320q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h704q14 0 23 9t9 23v64q0 14-9 23t-23 9h-704q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-320q0-14 9-23t23-9h64q14 0 23 9t9 23zm384-864v512q0 26-19 45t-45 19-45-19l-176-176-652 652q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l652-652-176-176q-19-19-19-45t19-45 45-19h512q26 0 45 19t19 45z;M1664 1344v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45z;M1764 11q33 24 27 64l-256 1536q-5 29-32 45-14 8-31 8-11 0-24-5l-453-185-242 295q-18 23-49 23-13 0-22-4-19-7-30.5-23.5t-11.5-36.5v-349l864-1059-1069 925-395-162q-37-14-40-55-2-40 32-59l1664-960q15-9 32-9 20 0 36 11z;M1490 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z;M1216 832q0-185-131.5-316.5t-316.5-131.5-316.5 131.5-131.5 316.5 131.5 316.5 316.5 131.5 316.5-131.5 131.5-316.5zm512 832q0 52-38 90t-90 38q-54 0-90-38l-343-342q-179 124-399 124-143 0-273.5-55.5t-225-150-150-225-55.5-273.5 55.5-273.5 150-225 225-150 273.5-55.5 273.5 55.5 225 150 150 225 55.5 273.5q0 220-124 399l343 343q37 37 37 90z;M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z;M1664 192v1408q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-1408q0-26 19-45t45-19h1408q26 0 45 19t19 45z;M1472 989v259q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h255q13 0 22.5 9.5t9.5 22.5q0 27-26 32-77 26-133 60-10 4-16 4h-112q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-214q0-19 18-29 28-13 54-37 16-16 35-8 21 9 21 29zm237-496l-384 384q-18 19-45 19-12 0-25-5-39-17-39-59v-192h-160q-323 0-438 131-119 137-74 473 3 23-20 34-8 2-12 2-16 0-26-13-10-14-21-31t-39.5-68.5-49.5-99.5-38.5-114-17.5-122q0-49 3.5-91t14-90 28-88 47-81.5 68.5-74 94.5-61.5 124.5-48.5 159.5-30.5 196.5-11h160v-192q0-42 39-59 13-5 25-5 26 0 45 19l384 384q19 19 19 45t-19 45z;M1408 960v-128q0-26-19-45t-45-19h-502l189-189q19-19 19-45t-19-45l-91-91q-18-18-45-18t-45 18l-362 362-91 91q-18 18-18 45t18 45l91 91 362 362q18 18 45 18t45-18l91-91q18-18 18-45t-18-45l-189-189h502q26 0 45-19t19-45zm256-64q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z;M1664 1632v-1088q0-13-9.5-22.5t-22.5-9.5h-1088q-13 0-22.5 9.5t-9.5 22.5v1088q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5-9.5t9.5-22.5zm128-1088v1088q0 66-47 113t-113 47h-1088q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1088q66 0 113 47t47 113zm-384-384v160h-128v-160q0-13-9.5-22.5t-22.5-9.5h-1088q-13 0-22.5 9.5t-9.5 22.5v1088q0 13 9.5 22.5t22.5 9.5h160v128h-160q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1088q66 0 113 47t47 113z;M681 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z;M1576 927l-1328 738q-23 13-39.5 3t-16.5-36v-1472q0-26 16.5-36t39.5 3l1328 738q23 13 23 31t-23 31z;M1344 1344q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h465l135 136q58 56 136 56t136-56l136-136h464q40 0 68 28t28 68zm-325-569q17 41-14 70l-448 448q-18 19-45 19t-45-19l-448-448q-31-29-14-70 17-39 59-39h256v-448q0-26 19-45t45-19h256q26 0 45 19t19 45v448h256q42 0 59 39z".split(";"));function zh(e){return new Pu(null,3,5,Nu,[qc,new Ur(null,3,[ks,64,gs,32,Ws,"0 0 2048 1792"],null),new Pu(null,2,5,Nu,[_l,new Ur(null,1,[Wl,Sh.$cljs$core$IFn$_invoke$arity$1$?Sh.$cljs$core$IFn$_invoke$arity$1$(e):Sh.call(null,e)],null)],null)],null)}var Fh=Qd(96),Th=Qd(97),Oh=Qd(101),Rh=Qd(102),Ph=Qd(103),Nh=Qd(104),Mh=Qd(105),Bh=Qd(106),Lh=Qd(107),Dh=Qd(108),qh=Qd(109),Uh=Qd(110),Hh=Qd(111),Wh=Qd(209),Vh=Qd(210),Gh=Qd(212),Xh=Qd(228),Yh=Qd(229),Zh=Qd(231),Kh=Qd(233);console.log("CodeMirror includes:",Bh,Ph,Mh,Nh),console.log(qh,Lh,Uh,Dh),Ao("Slingcode start."),window.onerror=function(e){return Ao(new Ur(null,5,["message",e.message,"filename",e.filename,"lineno",e.lineno,"colno",e.colno,"error",bo(e.error)],null))};var Qh,Jh=Rp.$cljs$core$IFn$_invoke$arity$1$(Hr),ef=new DOMParser,tf=/([a-f0-9]+(-|$)){5}/g,nf=/(.*?)\/(.*)/,rf=/url\(["']{0,1}(.*?)["']{0,1}\)/gi,af=/["'](.*?)["']/gi,of=new Ur(null,2,[To,Dl,Qu,ip("\n",new Pu(null,4,5,Nu,["We couldn't open the app window.","Sometimes adblockers mistakenly do this.","Try disabling your adblocker","for this site and refresh."],null))],null),lf=new Ur(null,1,["signaling-servers",new Pu(null,3,5,Nu,["wss://hub.bugout.link","wss://tracker.openwebtorrent.com","wss://tracker.btorrent.xyz"],null)],null);try{Qh=!!wu(new File(["hello."],"hello.txt",{type:"text/plain"}))||null}catch(e){Qh=!1}var sf=Wh.WEBRTC_SUPPORT;function cf(e,t,n){var i=Du(new Pu(null,1,5,Nu,[e],null));return e=wu(e=e.lastModified)?e:new Date,(n=Du(n)).lastModified=e,wu(Qh)?new File(i,t,n):((i=new Blob(i,n)).name=t,i.lastModified=e,i)}function uf(e){var t=e.split("/").pop();return wu(t.match(tf))?new Pu(null,2,5,Nu,[t,e],null):null}function df(e){return ju(Ui(function(e){return Cu.$cljs$core$IFn$_invoke$arity$2$(e.name,"index.html")},e))}function pf(e,i){if(!wu(e))return new Promise(function(e){var t=Cu.$cljs$core$IFn$_invoke$arity$2$(i,Yl)?new ArrayBuffer(sr):"";return e.$cljs$core$IFn$_invoke$arity$1$?e.$cljs$core$IFn$_invoke$arity$1$(t):e.call(null,t)});if(!wu(e.text))return new Promise(function(t){var n=new FileReader;switch(n.onload=function(){var e=n.result;return t.$cljs$core$IFn$_invoke$arity$1$?t.$cljs$core$IFn$_invoke$arity$1$(e):t.call(null,e)},i instanceof Vn?i.$fqn$:null){case"array-buffer":return n.readAsArrayBuffer(e);case"binary-string":return n.readAsBinaryString(e);case"data-url":return n.readAsDataURL(e);default:return n.readAsText(e)}});switch(i instanceof Vn?i.$fqn$:null){case"array-buffer":case"binary-string":return e.arrayBuffer();default:return e.text()}}function hf(s,c){return wu(Qh)?s.getItem(["app/",Tn.$cljs$core$IFn$_invoke$arity$1$(c)].join("")):new Promise(function(o){var l=Ud(1);return Id(function(){var e,t,n=(t=null,(t=function(e){switch(arguments.length){case 0:return a.call(this);case 1:return r.call(this,e)}throw Error("Invalid arity: "+arguments.length)}).$cljs$core$IFn$_invoke$arity$0$=a,t.$cljs$core$IFn$_invoke$arity$1$=r,t);function i(e){var t=e[1];if(1===t)return t=["app/",Tn.$cljs$core$IFn$_invoke$arity$1$(c)].join(""),Ld(e,2,t=Gd(t=s.getItem(t)));if(2===t){t=e[7];var n=(t=e[2])instanceof _o,i=ns.$cljs$core$IFn$_invoke$arity$1$(xo(t));return i=Cu.$cljs$core$IFn$_invoke$arity$2$(i,Wo),e[7]=t,e[1]=wu(n&&i)?3:4,qu}if(3===t)throw t=e[7];return 4===t?(t=e[7],e[2]=t,e[1]=5,qu):5===t?(t=bo(e[2]),t=Di.$cljs$core$IFn$_invoke$arity$2$(function(e){var t=Tu.$cljs$core$IFn$_invoke$arity$2$(e,"content").split(","),n=Fu(t,0,null);t=Fu(t,1,null),t=atob(t),n=ju(ju(Eu(n.split(":"))).split(";"));for(var i=new ArrayBuffer(t.length),r=new Uint8Array(i),a=Au(eo(t.length)),o=null,l=0,s=0;;)if(s\n",Tn.$cljs$core$IFn$_invoke$arity$1$(s.documentElement.outerHTML)].join(""),dt.name,Mu([Fs],[dt.type])),oe=[Hu,Uu],le=Mu([sc,qo],[l,_]),se=Mu(oe,[i,le]),ce=new Pu(null,2,5,Nu,[ae,se],null);return e[33]=re,e[34]=ie,e[35]=te,Dd(e,ce)}if(32===t){z=e[19],i=e[8],T=e[21],F=e[22],S=e[23];var ue=If(i,ku(z,T),af),de=S,pe=F,he=T+1;e[19]=z,e[21]=he,e[22]=pe,e[36]=ue,e[23]=de;var fe=e;return fe[2]=null,fe[1]=30,qu}if(40===t){var ge=e[2],me=e;return me[2]=ge,me[1]=37,qu}if(33===t){S=e[23],U=e[29];var ye=Au(S);return e[29]=ye,e[1]=ye?35:36,qu}if(13===t){var $e=e[37],ve=Ou($e);return e[1]=ve?16:17,qu}if(22===t){R=e[24];var be=Au(N=e[27]);return e[24]=be,e[1]=be?24:25,qu}if(36===t){var we=e;return we[2]=null,we[1]=37,qu}if(29===t){var ke=e[2],_e=e;return _e[2]=ke,_e[1]=26,qu}if(6===t)return Ld(e,7,jf(e[2],"application/javascript",af));if(28===t){var xe=If(i=e[8],ju(R=e[24]),rf);N=Eu(R),M=null,L=B=0,e[25]=B,e[26]=L,e[27]=N,e[28]=M,e[38]=xe;var Ie=e;return Ie[2]=null,Ie[1]=19,qu}if(25===t){var Ae=e;return Ae[2]=null,Ae[1]=26,qu}if(34===t){var je=e[2],Ee=e;return Ee[2]=je,Ee[1]=31,qu}if(17===t){$e=e[37];var Ce=_f(i=e[8],ju($e),"src");x=Eu($e),I=null,j=A=0,e[15]=I,e[39]=Ce,e[16]=j,e[17]=x,e[18]=A;var Se=e;return Se[2]=null,Se[1]=8,qu}if(3===t)throw V=e[31];if(12===t){var ze=e[2],Fe=e;return Fe[2]=ze,Fe[1]=9,qu}if(2===t){V=e[31];var Te=e[2],Oe=Te instanceof _o,Re=ns.$cljs$core$IFn$_invoke$arity$1$(xo(Te)),Pe=Cu.$cljs$core$IFn$_invoke$arity$2$(Re,Wo),Ne=Oe&&Pe;return e[31]=Te,e[1]=wu(Ne)?3:4,qu}if(23===t){var Me=e[2],Be=e;return Be[2]=Me,Be[1]=20,qu}if(35===t){var Le=Ou(U=e[29]);return e[1]=Le?38:39,qu}if(19===t){B=e[25];var De=(L=e[26])\n\n \n Hello World.\n \n \n \n \n \n \n \n \n Not found
\n No app could be loaded.
\n Did you forget to save first?
\n \n