mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 16:24:23 +00:00
3 lines
84 KiB
JavaScript
3 lines
84 KiB
JavaScript
/*! For license information please see tesseract.js.LICENSE.txt */
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[249],{1046:function(t,e,r){"use strict";var n=r(1156),i=r(1157),s=Object.prototype.toString;function o(t){return"[object Array]"===s.call(t)}function a(t){return null!==t&&"object"==typeof t}function f(t){return"[object Function]"===s.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===s.call(t)},isBuffer:i,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===s.call(t)},isFile:function(t){return"[object File]"===s.call(t)},isBlob:function(t){return"[object Blob]"===s.call(t)},isFunction:f,isStream:function(t){return a(t)&&f(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function t(){var e={};function r(r,n){"object"==typeof e[n]&&"object"==typeof r?e[n]=t(e[n],r):e[n]=r}for(var n=0,i=arguments.length;n<i;n++)u(arguments[n],r);return e},extend:function(t,e,r){return u(e,(function(e,i){t[i]=r&&"function"==typeof e?n(e,r):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},1047:function(t,e,r){"use strict";var n=r(1165),i=r(1157),s=Object.prototype.toString;function o(t){return"[object Array]"===s.call(t)}function a(t){return null!==t&&"object"==typeof t}function f(t){return"[object Function]"===s.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===s.call(t)},isBuffer:i,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===s.call(t)},isFile:function(t){return"[object File]"===s.call(t)},isBlob:function(t){return"[object Blob]"===s.call(t)},isFunction:f,isStream:function(t){return a(t)&&f(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function t(){var e={};function r(r,n){"object"==typeof e[n]&&"object"==typeof r?e[n]=t(e[n],r):e[n]=r}for(var n=0,i=arguments.length;n<i;n++)u(arguments[n],r);return e},extend:function(t,e,r){return u(e,(function(e,i){t[i]=r&&"function"==typeof e?n(e,r):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},1105:function(t,e,r){"use strict";(function(e){var n=r(1046),i=r(1282),s={"Content-Type":"application/x-www-form-urlencoded"};function o(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,f={adapter:("undefined"!=typeof XMLHttpRequest?a=r(1158):void 0!==e&&(a=r(1158)),a),transformRequest:[function(t,e){return i(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(o(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(o(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};f.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){f.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){f.headers[t]=n.merge(s)})),t.exports=f}).call(this,r(50))},1106:function(t,e,r){"use strict";(function(e){var n=r(1047),i=r(1306),s={"Content-Type":"application/x-www-form-urlencoded"};function o(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,f={adapter:("undefined"!=typeof XMLHttpRequest?a=r(1166):void 0!==e&&(a=r(1166)),a),transformRequest:[function(t,e){return i(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(o(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(o(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};f.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){f.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){f.headers[t]=n.merge(s)})),t.exports=f}).call(this,r(50))},1155:function(module,exports,__webpack_require__){"use strict";var toBytes=function(t){return[].concat(t).map((function(t){return t.charCodeAt(0)}))},xpiZipFilename=toBytes("META-INF/mozilla.rsa"),oxmlContentTypes=toBytes("[Content_Types].xml"),oxmlRels=toBytes("_rels/.rels");function readUInt64LE(t,e){void 0===e&&(e=0);for(var r=t[e],n=1,i=0;++i<8;)n*=256,r+=t[e+i]*n;return r}var fileType=function(t){if(!(t instanceof Uint8Array||t instanceof ArrayBuffer||Buffer.isBuffer(t)))throw new TypeError("Expected the `input` argument to be of type `Uint8Array` or `Buffer` or `ArrayBuffer`, got `"+typeof t+"`");var e=t instanceof Uint8Array?t:new Uint8Array(t);if(!(e&&e.length>1))return null;var r=function(t,r){r=Object.assign({offset:0},r);for(var n=0;n<t.length;n++)if(r.mask){if(t[n]!==(r.mask[n]&e[n+r.offset]))return!1}else if(t[n]!==e[n+r.offset])return!1;return!0},n=function(t,e){return r(toBytes(t),e)};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])){if(r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r(xpiZipFilename,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(n("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30}))return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};if(n("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30}))return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};if(n("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30}))return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};var i=function(t,e){return void 0===e&&(e=0),t.findIndex((function(t,r,n){return r>=e&&80===n[r]&&75===n[r+1]&&3===n[r+2]&&4===n[r+3]}))},s=0,o=!1,a=null;do{var f=s+30;if(o||(o=r(oxmlContentTypes,{offset:f})||r(oxmlRels,{offset:f})),a||(n("word/",{offset:f})?a={ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}:n("ppt/",{offset:f})?a={ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}:n("xl/",{offset:f})&&(a={ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})),o&&a)return a;s=i(e,f)}while(s>=0);if(a)return a}if(r([80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3]))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(0===e[6]||1===e[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([51,103,112,53])||r([0,0,0])&&r([102,116,121,112],{offset:4})&&(r([109,112,52,49],{offset:8})||r([109,112,52,50],{offset:8})||r([105,115,111,109],{offset:8})||r([105,115,111,50],{offset:8})||r([109,109,112,52],{offset:8})||r([77,52,86],{offset:8})||r([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){var u=e.subarray(4,4100),c=u.findIndex((function(t,e,r){return 66===r[e]&&130===r[e+1]}));if(-1!==c){var h=c+3,p=function(t){return[].concat(t).every((function(t,e){return u[h+e]===t.charCodeAt(0)}))};if(p("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(p("webm"))return{ext:"webm",mime:"video/webm"}}}if(r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([109,111,111,118],{offset:4})||r([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(r([82,73,70,70])){if(r([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(r([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(r([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(r([48,38,178,117,142,102,207,17,166,217])){var l=30;do{var d=readUInt64LE(e,l+16);if(r([145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101],{offset:l})){if(r([64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43],{offset:l+24}))return{ext:"wma",mime:"audio/x-ms-wma"};if(r([192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43],{offset:l+24}))return{ext:"wmv",mime:"video/x-ms-asf"};break}l+=d}while(l+24<=e.length);return{ext:"asf",mime:"application/vnd.ms-asf"}}if(r([0,0,1,186])||r([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(r([102,116,121,112,51,103],{offset:4}))return{ext:"3gp",mime:"video/3gpp"};for(var m=0;m<2&&m<e.length-16;m++){if(r([73,68,51],{offset:m})||r([255,226],{offset:m,mask:[255,226]}))return{ext:"mp3",mime:"audio/mpeg"};if(r([255,228],{offset:m,mask:[255,228]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([255,248],{offset:m,mask:[255,252]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([255,240],{offset:m,mask:[255,252]}))return{ext:"mp4",mime:"audio/mpeg"}}if(r([102,116,121,112,77,52,65],{offset:4}))return{ext:"m4a",mime:"audio/mp4"};if(r([79,112,117,115,72,101,97,100],{offset:28}))return{ext:"opus",mime:"audio/opus"};if(r([79,103,103,83]))return r([128,116,104,101,111,114,97],{offset:28})?{ext:"ogv",mime:"video/ogg"}:r([1,118,105,100,101,111,0],{offset:28})?{ext:"ogm",mime:"video/ogg"}:r([127,70,76,65,67],{offset:28})?{ext:"oga",mime:"audio/ogg"}:r([83,112,101,101,120,32,32],{offset:28})?{ext:"spx",mime:"audio/ogg"}:r([1,118,111,114,98,105,115],{offset:28})?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"};if(r([102,76,97,67]))return{ext:"flac",mime:"audio/x-flac"};if(r([77,65,67,32]))return{ext:"ape",mime:"audio/ape"};if(r([119,118,112,107]))return{ext:"wv",mime:"audio/wavpack"};if(r([35,33,65,77,82,10]))return{ext:"amr",mime:"audio/amr"};if(r([37,80,68,70]))return{ext:"pdf",mime:"application/pdf"};if(r([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if((67===e[0]||70===e[0])&&r([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(r([123,92,114,116,102]))return{ext:"rtf",mime:"application/rtf"};if(r([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4})))return{ext:"woff",mime:"font/woff"};if(r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(r([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(r([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(r([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(r([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(r([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(r([37,33]))return{ext:"ps",mime:"application/postscript"};if(r([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(r([83,81,76,105]))return{ext:"sqlite",mime:"application/x-sqlite3"};if(r([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(r([67,114,50,52]))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(r([77,83,67,70])||r([73,83,99,40]))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121]))return{ext:"deb",mime:"application/x-deb"};if(r([33,60,97,114,99,104,62]))return{ext:"ar",mime:"application/x-unix-archive"};if(r([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(r([31,160])||r([31,157]))return{ext:"Z",mime:"application/x-compress"};if(r([76,90,73,80]))return{ext:"lz",mime:"application/x-lzip"};if(r([208,207,17,224,161,177,26,225]))return{ext:"msi",mime:"application/x-msi"};if(r([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(r([66,76,69,78,68,69,82]))return{ext:"blend",mime:"application/x-blender"};if(r([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(r([0,0,0,12,106,80,32,32,13,10,135,10])){if(r([106,112,50,32],{offset:20}))return{ext:"jp2",mime:"image/jp2"};if(r([106,112,120,32],{offset:20}))return{ext:"jpx",mime:"image/jpx"};if(r([106,112,109,32],{offset:20}))return{ext:"jpm",mime:"image/jpm"};if(r([109,106,112,50],{offset:20}))return{ext:"mj2",mime:"image/mj2"}}if(r([70,79,82,77]))return{ext:"aif",mime:"audio/aiff"};if(n("<?xml "))return{ext:"xml",mime:"application/xml"};if(r([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(r([102,116,121,112],{offset:4})){if(r([109,105,102,49],{offset:8}))return{ext:"heic",mime:"image/heif"};if(r([109,115,102,49],{offset:8}))return{ext:"heic",mime:"image/heif-sequence"};if(r([104,101,105,99],{offset:8})||r([104,101,105,120],{offset:8}))return{ext:"heic",mime:"image/heic"};if(r([104,101,118,99],{offset:8})||r([104,101,118,120],{offset:8}))return{ext:"heic",mime:"image/heic-sequence"}}return r([171,75,84,88,32,49,49,187,13,10,26,10])?{ext:"ktx",mime:"image/ktx"}:r([68,73,67,77],{offset:128})?{ext:"dcm",mime:"application/dicom"}:r([77,80,43])?{ext:"mpc",mime:"audio/x-musepack"}:r([77,80,67,75])?{ext:"mpc",mime:"audio/x-musepack"}:r([66,69,71,73,78,58])?{ext:"ics",mime:"text/calendar"}:r([103,108,84,70,2,0,0,0])?{ext:"glb",mime:"model/gltf-binary"}:r([212,195,178,161])||r([161,178,195,212])?{ext:"pcap",mime:"application/vnd.tcpdump.pcap"}:null};module.exports=fileType,module.exports.default=fileType,Object.defineProperty(fileType,"minimumBytes",{value:4100}),module.exports.stream=function(readableStream){return new Promise((function(resolve,reject){var stream=eval("require")("stream");readableStream.once("readable",(function(){var t=new stream.PassThrough,e=readableStream.read(module.exports.minimumBytes)||readableStream.read();try{t.fileType=fileType(e)}catch(t){reject(t)}readableStream.unshift(e),stream.pipeline?resolve(stream.pipeline(readableStream,t,(function(){}))):resolve(readableStream.pipe(t))}))}))}},1156:function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},1157:function(t,e){t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},1158:function(t,e,r){"use strict";var n=r(1046),i=r(1283),s=r(1285),o=r(1286),a=r(1287),f=r(1159);t.exports=function(t){return new Promise((function(e,u){var c=t.data,h=t.headers;n.isFormData(c)&&delete h["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var l=t.auth.username||"",d=t.auth.password||"";h.Authorization="Basic "+btoa(l+":"+d)}if(p.open(t.method.toUpperCase(),s(t.url,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?o(p.getAllResponseHeaders()):null,n={data:t.responseType&&"text"!==t.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:t,request:p};i(e,u,n),p=null}},p.onerror=function(){u(f("Network Error",t,null,p)),p=null},p.ontimeout=function(){u(f("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",p)),p=null},n.isStandardBrowserEnv()){var m=r(1288),g=(t.withCredentials||a(t.url))&&t.xsrfCookieName?m.read(t.xsrfCookieName):void 0;g&&(h[t.xsrfHeaderName]=g)}if("setRequestHeader"in p&&n.forEach(h,(function(t,e){void 0===c&&"content-type"===e.toLowerCase()?delete h[e]:p.setRequestHeader(e,t)})),t.withCredentials&&(p.withCredentials=!0),t.responseType)try{p.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),u(t),p=null)})),void 0===c&&(c=null),p.send(c)}))}},1159:function(t,e,r){"use strict";var n=r(1284);t.exports=function(t,e,r,i,s){var o=new Error(t);return n(o,e,r,i,s)}},1160:function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},1161:function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},1162:function(t,e,r){var n;!function(i){"use strict";var s,o,a,f,u,c,h,p,l,d,m,g,b;function v(t){return null!=t}function y(t){return"number"==typeof t&&t>d&&t<m}function w(t){return"number"==typeof t&&t%1==0}function x(t,e){return y(t)&&t>e}function k(t,e){return y(t)&&t<e}function E(t,e){return y(t)&&t>=e}function A(t,e){return y(t)&&t<=e}function U(t){return"string"==typeof t}function _(t){return U(t)&&""!==t}function j(t){return"[object Object]"===Object.prototype.toString.call(t)}function S(t,e){try{return t instanceof e}catch(t){return!1}}function I(t,e){var r;for(r in e)if(e.hasOwnProperty(r)){if(!1===t.hasOwnProperty(r)||typeof t[r]!=typeof e[r])return!1;if(j(t[r])&&!1===I(t[r],e[r]))return!1}return!0}function L(t){return g(t)}function T(t){return v(t)&&E(t.length,0)}function B(t){return"function"==typeof t}function C(t,e){var r={};return Object.keys(e).forEach((function(n){var i=e[n];B(i)?c.assigned(t)?r[n]=!!i.m:r[n]=i(t[n]):j(i)&&(r[n]=C(t[n],i))})),r}function P(t,e){var r;for(r=0;r<t.length;r+=1)if(t[r]===e)return e;return!e}function O(t,e){var r,n;for(r in t)if(t.hasOwnProperty(r)){if(j(n=t[r])&&O(n,e)===e)return e;if(n===e)return e}return!e}function R(t,e){return Object.keys(e).forEach((function(r){t[r]=e[r]})),t}function N(t,e){return function(){return z(t,arguments,e)}}function z(t,e,r){var n=t.l||t.length,i=e[n],s=e[n+1];return q(t.apply(null,e),_(i)?i:r,B(s)?s:TypeError),e[0]}function q(t,e,r){if(t)return t;throw new(r||Error)(e||"Assertion failed")}function D(t){var e=function(){return F(t.apply(null,arguments))};return e.l=t.length,e}function F(t){return!t}function M(t,e,r){var n=function(){var n,i;if(n=arguments[0],"maybe"===t&&c.assigned(n))return!0;if(!e(n))return!1;n=J(e,n),i=l.call(arguments,1);try{n.forEach((function(e){if(("maybe"!==t||v(e))&&!r.apply(null,[e].concat(i)))throw 0}))}catch(t){return!1}return!0};return n.l=r.length,n}function J(t,e){switch(t){case T:return l.call(e);case j:return Object.keys(e).map((function(t){return e[t]}));default:return e}}function H(t,e){return G([t,a,e])}function G(t){var e,r,n,i;return e=t.shift(),r=t.pop(),n=t.pop(),i=r||{},Object.keys(n).forEach((function(r){Object.defineProperty(i,r,{configurable:!1,enumerable:!0,writable:!1,value:e.apply(null,t.concat(n[r],o[r]))})})),i}function V(t,e){return G([t,e,null])}function W(t,e){p.forEach((function(r){t[r].of=V(e,a[r].of)}))}s={v:"value",n:"number",s:"string",b:"boolean",o:"object",t:"type",a:"array",al:"array-like",i:"iterable",d:"date",f:"function",l:"length"},o={},a={},[{n:"equal",f:function(t,e){return t===e},s:"v"},{n:"undefined",f:function(t){return void 0===t},s:"v"},{n:"null",f:function(t){return null===t},s:"v"},{n:"assigned",f:v,s:"v"},{n:"primitive",f:function(t){var e;switch(t){case null:case void 0:case!1:case!0:return!0}return"string"===(e=typeof t)||"number"===e||b&&"symbol"===e},s:"v"},{n:"includes",f:function(t,e){var r,n,i,s,o;if(!v(t))return!1;if(b&&t[Symbol.iterator]&&B(t.values)){r=t.values();do{if((n=r.next()).value===e)return!0}while(!n.done);return!1}for(i=Object.keys(t),s=i.length,o=0;o<s;++o)if(t[i[o]]===e)return!0;return!1},s:"v"},{n:"zero",f:function(t){return 0===t}},{n:"infinity",f:function(t){return t===d||t===m}},{n:"number",f:y},{n:"integer",f:w},{n:"even",f:function(t){return"number"==typeof t&&t%2==0}},{n:"odd",f:function(t){return w(t)&&t%2!=0}},{n:"greater",f:x},{n:"less",f:k},{n:"between",f:function(t,e,r){if(e<r)return x(t,e)&&t<r;return k(t,e)&&t>r}},{n:"greaterOrEqual",f:E},{n:"lessOrEqual",f:A},{n:"inRange",f:function(t,e,r){if(e<r)return E(t,e)&&t<=r;return A(t,e)&&t>=r}},{n:"positive",f:function(t){return x(t,0)}},{n:"negative",f:function(t){return k(t,0)}},{n:"string",f:U,s:"s"},{n:"emptyString",f:function(t){return""===t},s:"s"},{n:"nonEmptyString",f:_,s:"s"},{n:"contains",f:function(t,e){return U(t)&&-1!==t.indexOf(e)},s:"s"},{n:"match",f:function(t,e){return U(t)&&!!t.match(e)},s:"s"},{n:"boolean",f:function(t){return!1===t||!0===t},s:"b"},{n:"object",f:j,s:"o"},{n:"emptyObject",f:function(t){return j(t)&&0===Object.keys(t).length},s:"o"},{n:"nonEmptyObject",f:function(t){return j(t)&&Object.keys(t).length>0},s:"o"},{n:"instanceStrict",f:S,s:"t"},{n:"instance",f:function(t,e){try{return S(t,e)||t.constructor.name===e.name||Object.prototype.toString.call(t)==="[object "+e.name+"]"}catch(t){return!1}},s:"t"},{n:"like",f:I,s:"t"},{n:"array",f:L,s:"a"},{n:"emptyArray",f:function(t){return L(t)&&0===t.length},s:"a"},{n:"nonEmptyArray",f:function(t){return L(t)&&x(t.length,0)},s:"a"},{n:"arrayLike",f:T,s:"al"},{n:"iterable",f:function(t){if(!b)return T(t);return v(t)&&B(t[Symbol.iterator])},s:"i"},{n:"date",f:function(t){return S(t,Date)&&w(t.getTime())},s:"d"},{n:"function",f:B,s:"f"},{n:"hasLength",f:function(t,e){return v(t)&&t.length===e},s:"l"}].map((function(t){var e=t.n;o[e]="Invalid "+s[t.s||"n"],a[e]=t.f})),f={apply:function(t,e){if(u.array(t),B(e))return t.map((function(t){return e(t)}));return u.array(e),u.hasLength(t,e.length),t.map((function(t,r){return e[r](t)}))},map:function(t,e){if(u.object(t),B(e))return function(t,e){var r={};return Object.keys(t).forEach((function(n){r[n]=e(t[n])})),r}(t,e);return u.object(e),C(t,e)},all:function(t){if(L(t))return P(t,!1);return u.object(t),O(t,!1)},any:function(t){if(L(t))return P(t,!0);return u.object(t),O(t,!0)}},p=["array","arrayLike","iterable","object"],l=Array.prototype.slice,d=Number.NEGATIVE_INFINITY,m=Number.POSITIVE_INFINITY,g=Array.isArray,b="function"==typeof Symbol,f=R(f,a),u=H(N,q),c=H(D,F),h=H((function(t){var e=function(){return!!c.assigned(arguments[0])||t.apply(null,arguments)};return e.l=t.length,e.m=!0,e}),(function(t){if(!1===v(t))return!0;return t})),u.not=V(N,c),u.maybe=V(N,h),p.forEach((function(t){a[t].of=G([M.bind(null,null),a[t],a,null])})),W(u,N),W(c,D),p.forEach((function(t){h[t].of=G([M.bind(null,"maybe"),a[t],a,null]),u.maybe[t].of=V(N,h[t].of),u.not[t].of=V(N,c[t].of)})),function(i){void 0===(n=function(){return i}.call(e,r,e,t))||(t.exports=n)}(R(f,{assert:u,not:c,maybe:h}))}()},1163:function(t,e,r){var n,i;void 0===(i="function"==typeof(n=function(){return function(){var t=arguments.length;if(0===t)throw new Error("resolveUrl requires at least one argument; got none.");var e=document.createElement("base");if(e.href=arguments[0],1===t)return e.href;var r=document.getElementsByTagName("head")[0];r.insertBefore(e,r.firstChild);for(var n,i=document.createElement("a"),s=1;s<t;s++)i.href=arguments[s],n=i.href,e.href=n;return r.removeChild(e),n}})?n.call(e,r,e,t):n)||(t.exports=i)},1164:function(t,e,r){"use strict";(function(t){var n=r(56)(r(10)),i=r(1162),s=r(1163),o=r(1303),a=r(1320),f=r(1321).defaultOptions,u=r(1322).version,c=function(t,e){var r=new FileReader;r.onload=function(){e(r.result)},r.readAsArrayBuffer(t)};e.defaultOptions=(0,n.default)({},f,{workerPath:void 0!==t&&"development"===t.env.TESS_ENV?s("/dist/worker.dev.js?nocache="+Math.random().toString(36).slice(3)):"https://unpkg.com/tesseract.js@v"+u+"/dist/worker.min.js",corePath:"https://unpkg.com/tesseract.js-core@v2.0.0-beta.10/tesseract-core."+("object"==typeof WebAssembly?"wasm":"asm")+".js"}),e.spawnWorker=function(t,e){var r,n=e.workerPath,i=e.workerBlobURL;if(Blob&&URL&&i){var s=new Blob(['importScripts("'+n+'");'],{type:"application/javascript"});r=new Worker(URL.createObjectURL(s))}else r=new Worker(n);return r.onmessage=function(e){var r=e.data;if(r.jobId.startsWith("Job"))t.recv(r);else if(r.jobId.startsWith("Download")){var n=r.path,i=r.data,s=r.type;!function(t,e){if(navigator.msSaveBlob)navigator.msSaveBlob(e,t);else{var r=document.createElement("a");if(void 0!==r.download){var n=URL.createObjectURL(e);r.setAttribute("href",n),r.setAttribute("download",t),r.style.visibility="hidden",document.body.appendChild(r),r.click(),document.body.removeChild(r)}}}(n,new Blob([i],{type:s}))}},r},e.terminateWorker=function(t){t.worker.terminate()},e.sendPacket=function(t,e){var r=(0,n.default)({},e);(function t(e){if(i.string(e))return/data:image\/([a-zA-Z]*);base64,([^"]*)/.test(e)?Promise.resolve(a(e.split(",")[1])):o.get(s(e),{responseType:"arraybuffer"}).then((function(t){return t.data}));if(i.instance(e,HTMLElement)){if("IMG"===e.tagName)return t(e.src);if("VIDEO"===e.tagName)return t(e.poster);if("CANVAS"===e.tagName)return new Promise((function(t){e.toBlob((function(e){c(e,t)}))}))}return i.instance(e,File)||i.instance(e,Blob)?new Promise((function(t){c(e,t)})):Promise.reject()})(r.payload.image).then((function(t){return new Uint8Array(t)})).then((function(e){r.payload.image=Array.from(e),t.worker.postMessage(r)}))}}).call(this,r(50))},1165:function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},1166:function(t,e,r){"use strict";var n=r(1047),i=r(1307),s=r(1309),o=r(1310),a=r(1311),f=r(1167);t.exports=function(t){return new Promise((function(e,u){var c=t.data,h=t.headers;n.isFormData(c)&&delete h["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var l=t.auth.username||"",d=t.auth.password||"";h.Authorization="Basic "+btoa(l+":"+d)}if(p.open(t.method.toUpperCase(),s(t.url,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?o(p.getAllResponseHeaders()):null,n={data:t.responseType&&"text"!==t.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:t,request:p};i(e,u,n),p=null}},p.onerror=function(){u(f("Network Error",t,null,p)),p=null},p.ontimeout=function(){u(f("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",p)),p=null},n.isStandardBrowserEnv()){var m=r(1312),g=(t.withCredentials||a(t.url))&&t.xsrfCookieName?m.read(t.xsrfCookieName):void 0;g&&(h[t.xsrfHeaderName]=g)}if("setRequestHeader"in p&&n.forEach(h,(function(t,e){void 0===c&&"content-type"===e.toLowerCase()?delete h[e]:p.setRequestHeader(e,t)})),t.withCredentials&&(p.withCredentials=!0),t.responseType)try{p.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),u(t),p=null)})),void 0===c&&(c=null),p.send(c)}))}},1167:function(t,e,r){"use strict";var n=r(1308);t.exports=function(t,e,r,i,s){var o=new Error(t);return n(o,e,r,i,s)}},1168:function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},1169:function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},1170:function(t,e,r){"use strict";t.exports={OEM:{TESSERACT_ONLY:0,LSTM_ONLY:1,TESSERACT_LSTM_COMBINED:2,DEFAULT:3},PSM:{OSD_ONLY:"0",AUTO_OSD:"1",AUTO_ONLY:"2",AUTO:"3",SINGLE_COLUMN:"4",SINGLE_BLOCK_VERT_TEXT:"5",SINGLE_BLOCK:"6",SINGLE_LINE:"7",SINGLE_WORD:"8",SINGLE_CHAR:"9",SPARSE_TEXT:"10",SPARSE_TEXT_OSD:"11",RAW_LINE:"12"}}},1274:function(t,e,r){"use strict";var n=r(56)(r(10)),i=r(1275);t.exports={loadLang:r(1277)((0,n.default)({gunzip:r(1296)},i)),readImage:r(1298),cache:i}},1275:function(t,e,r){"use strict";var n=r(1276),i=n.set,s=n.get,o=n.del;t.exports={readCache:s,writeCache:i,deleteCache:o,checkCache:function(t){return s(t).then((function(t){return void 0!==t}))}}},1276:function(t,e,r){"use strict";r.r(e),r.d(e,"Store",(function(){return i})),r.d(e,"get",(function(){return o})),r.d(e,"set",(function(){return a})),r.d(e,"del",(function(){return f})),r.d(e,"clear",(function(){return u})),r.d(e,"keys",(function(){return c}));var n,i=function(){function t(t,e){void 0===t&&(t="keyval-store"),void 0===e&&(e="keyval"),this.storeName=e,this._dbp=new Promise((function(r,n){var i=indexedDB.open(t,1);i.onerror=function(){return n(i.error)},i.onsuccess=function(){return r(i.result)},i.onupgradeneeded=function(){i.result.createObjectStore(e)}}))}return t.prototype._withIDBStore=function(t,e){var r=this;return this._dbp.then((function(n){return new Promise((function(i,s){var o=n.transaction(r.storeName,t);o.oncomplete=function(){return i()},o.onabort=o.onerror=function(){return s(o.error)},e(o.objectStore(r.storeName))}))}))},t}();function s(){return n||(n=new i),n}function o(t,e){var r;return void 0===e&&(e=s()),e._withIDBStore("readonly",(function(e){r=e.get(t)})).then((function(){return r.result}))}function a(t,e,r){return void 0===r&&(r=s()),r._withIDBStore("readwrite",(function(r){r.put(e,t)}))}function f(t,e){return void 0===e&&(e=s()),e._withIDBStore("readwrite",(function(e){e.delete(t)}))}function u(t){return void 0===t&&(t=s()),t._withIDBStore("readwrite",(function(t){t.clear()}))}function c(t){void 0===t&&(t=s());var e=[];return t._withIDBStore("readonly",(function(t){(t.openKeyCursor||t.openCursor).call(t).onsuccess=function(){this.result&&(e.push(this.result.key),this.result.continue())}})).then((function(){return e}))}},1277:function(t,e,r){"use strict";var n=r(56),i=n(r(10)),s=n(r(32)),o=r(1278),a=r(1155),f=r(1279);t.exports=function(t){return function(e){var r=e.langs,n=(0,s.default)(e,["langs"]);return Promise.all(("string"==typeof r?r.split("+"):r).map(function(t){return function(e){var r=e.langPath,n=e.cachePath,u=e.cacheMethod,c=e.gzip,h=void 0===c||c,p=(0,s.default)(e,["langPath","cachePath","cacheMethod","gzip"]);return function(e){var s="string"==typeof e?e:e.code,c=function(e){var r=a(e);return null!==r&&"application/gzip"===r.mime?t.gunzip(new Uint8Array(e)):new Uint8Array(e)},l=function(t){return function(e){var r=e.TessModule,n=e.dataPath,i=e.cachePath,s=e.cacheMethod,o=e.langCode;return function(e){if(r){if(n)try{r.FS.mkdir(n)}catch(t){}r.FS.writeFile((n||".")+"/"+o+".traineddata",e)}return["write","refresh",void 0].includes(s)?t.writeCache((i||".")+"/"+o+".traineddata",e).then((function(){return e})):e}}}(t)((0,i.default)({cachePath:n,cacheMethod:u,langCode:s},p)),d=t.readCache;return["refresh","none"].includes(u)&&(d=function(){return Promise.resolve()}),d((n||".")+"/"+s+".traineddata").then((function(t){return void 0===t?Promise.reject():l(t)})).catch((function(){if("string"==typeof e){return o(r)||r.startsWith("chrome-extension://")?(n=r,f.get(n+"/"+s+".traineddata"+(h?".gz":""),{responseType:"arraybuffer"}).then((function(t){var e=t.data;return new Uint8Array(e)})).then(c).then(l)):t.readCache(r+"/"+s+".traineddata"+(h?".gz":"")).then(c).then(l)}var n;return Promise.resolve(e.data).then(c).then(l)}))}}}(t)(n)))}}},1278:function(t,e,r){"use strict";t.exports=function(t){if("string"!=typeof t)return!1;var e=t.match(n);if(!e)return!1;var r=e[1];if(!r)return!1;if(i.test(r)||s.test(r))return!0;return!1};var n=/^(?:\w+:)?\/\/(\S+)$/,i=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,s=/^[^\s\.]+\.\S{2,}$/},1279:function(t,e,r){"use strict";t.exports=r(1280)},1280:function(t,e,r){"use strict";var n=r(1046),i=r(1156),s=r(1281),o=r(1105);function a(t){var e=new s(t),r=i(s.prototype.request,e);return n.extend(r,s.prototype,e),n.extend(r,e),r}var f=a(o);f.Axios=s,f.create=function(t){return a(n.merge(o,t))},f.Cancel=r(1161),f.CancelToken=r(1294),f.isCancel=r(1160),f.all=function(t){return Promise.all(t)},f.spread=r(1295),t.exports=f,t.exports.default=f},1281:function(t,e,r){"use strict";var n=r(1105),i=r(1046),s=r(1289),o=r(1290);function a(t){this.defaults=t,this.interceptors={request:new s,response:new s}}a.prototype.request=function(t){"string"==typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),(t=i.merge(n,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[o,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)r=r.then(e.shift(),e.shift());return r},i.forEach(["delete","get","head","options"],(function(t){a.prototype[t]=function(e,r){return this.request(i.merge(r||{},{method:t,url:e}))}})),i.forEach(["post","put","patch"],(function(t){a.prototype[t]=function(e,r,n){return this.request(i.merge(n||{},{method:t,url:e,data:r}))}})),t.exports=a},1282:function(t,e,r){"use strict";var n=r(1046);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},1283:function(t,e,r){"use strict";var n=r(1159);t.exports=function(t,e,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},1284:function(t,e,r){"use strict";t.exports=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t}},1285:function(t,e,r){"use strict";var n=r(1046);function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var s;if(r)s=r(e);else if(n.isURLSearchParams(e))s=e.toString();else{var o=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),o.push(i(e)+"="+i(t))})))})),s=o.join("&")}return s&&(t+=(-1===t.indexOf("?")?"?":"&")+s),t}},1286:function(t,e,r){"use strict";var n=r(1046),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,s,o={};return t?(n.forEach(t.split("\n"),(function(t){if(s=t.indexOf(":"),e=n.trim(t.substr(0,s)).toLowerCase(),r=n.trim(t.substr(s+1)),e){if(o[e]&&i.indexOf(e)>=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([r]):o[e]?o[e]+", "+r:r}})),o):o}},1287:function(t,e,r){"use strict";var n=r(1046);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(e){var r=n.isString(e)?i(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},1288:function(t,e,r){"use strict";var n=r(1046);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,i,s,o){var a=[];a.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(i)&&a.push("path="+i),n.isString(s)&&a.push("domain="+s),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1289:function(t,e,r){"use strict";var n=r(1046);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},1290:function(t,e,r){"use strict";var n=r(1046),i=r(1291),s=r(1160),o=r(1105),a=r(1292),f=r(1293);function u(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return u(t),t.baseURL&&!a(t.url)&&(t.url=f(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||o.adapter)(t).then((function(e){return u(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return s(e)||(u(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},1291:function(t,e,r){"use strict";var n=r(1046);t.exports=function(t,e,r){return n.forEach(r,(function(r){t=r(t,e)})),t}},1292:function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},1293:function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},1294:function(t,e,r){"use strict";var n=r(1161);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},1295:function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},1296:function(t,e,r){"use strict";t.exports=r(1297).gunzipSync},1297:function(t,e,r){(function(t){(function(){"use strict";function r(t){throw t}var n=void 0,i=!0,s="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function o(t,e){this.index="number"==typeof e?e:0,this.m=0,this.buffer=t instanceof(s?Uint8Array:Array)?t:new(s?Uint8Array:Array)(32768),2*this.buffer.length<=this.index&&r(Error("invalid index")),this.buffer.length<=this.index&&this.f()}o.prototype.f=function(){var t,e=this.buffer,r=e.length,n=new(s?Uint8Array:Array)(r<<1);if(s)n.set(e);else for(t=0;t<r;++t)n[t]=e[t];return this.buffer=n},o.prototype.d=function(t,e,r){var n,i=this.buffer,s=this.index,o=this.m,a=i[s];if(r&&1<e&&(t=8<e?(p[255&t]<<24|p[t>>>8&255]<<16|p[t>>>16&255]<<8|p[t>>>24&255])>>32-e:p[t]>>8-e),8>e+o)a=a<<e|t,o+=e;else for(n=0;n<e;++n)a=a<<1|t>>e-n-1&1,8==++o&&(o=0,i[s++]=p[a],a=0,s===i.length&&(i=this.f()));i[s]=a,this.buffer=i,this.m=o,this.index=s},o.prototype.finish=function(){var t,e=this.buffer,r=this.index;return 0<this.m&&(e[r]<<=8-this.m,e[r]=p[e[r]],r++),s?t=e.subarray(0,r):(e.length=r,t=e),t};var a,f=new(s?Uint8Array:Array)(256);for(a=0;256>a;++a){for(var u=h=a,c=7,h=h>>>1;h;h>>>=1)u<<=1,u|=1&h,--c;f[a]=(u<<c&255)>>>0}var p=f;function l(t,e,r){var n,i="number"==typeof e?e:e=0,s="number"==typeof r?r:t.length;for(n=-1,i=7&s;i--;++e)n=n>>>8^m[255&(n^t[e])];for(i=s>>3;i--;e+=8)n=(n=(n=(n=(n=(n=(n=(n=n>>>8^m[255&(n^t[e])])>>>8^m[255&(n^t[e+1])])>>>8^m[255&(n^t[e+2])])>>>8^m[255&(n^t[e+3])])>>>8^m[255&(n^t[e+4])])>>>8^m[255&(n^t[e+5])])>>>8^m[255&(n^t[e+6])])>>>8^m[255&(n^t[e+7])];return(4294967295^n)>>>0}var d=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],m=s?new Uint32Array(d):d;function g(){}function b(t){this.buffer=new(s?Uint16Array:Array)(2*t),this.length=0}function v(t){var e,r,n,i,o,a,f,u,c,h,p=t.length,l=0,d=Number.POSITIVE_INFINITY;for(u=0;u<p;++u)t[u]>l&&(l=t[u]),t[u]<d&&(d=t[u]);for(e=1<<l,r=new(s?Uint32Array:Array)(e),n=1,i=0,o=2;n<=l;){for(u=0;u<p;++u)if(t[u]===n){for(a=0,f=i,c=0;c<n;++c)a=a<<1|1&f,f>>=1;for(h=n<<16|u,c=a;c<e;c+=o)r[c]=h;++i}++n,i<<=1,o<<=1}return[r,l,d]}function y(t,e){this.k=x,this.F=0,this.input=s&&t instanceof Array?new Uint8Array(t):t,this.b=0,e&&(e.lazy&&(this.F=e.lazy),"number"==typeof e.compressionType&&(this.k=e.compressionType),e.outputBuffer&&(this.a=s&&e.outputBuffer instanceof Array?new Uint8Array(e.outputBuffer):e.outputBuffer),"number"==typeof e.outputIndex&&(this.b=e.outputIndex)),this.a||(this.a=new(s?Uint8Array:Array)(32768))}b.prototype.getParent=function(t){return 2*((t-2)/4|0)},b.prototype.push=function(t,e){var r,n,i,s=this.buffer;for(r=this.length,s[this.length++]=e,s[this.length++]=t;0<r&&(n=this.getParent(r),s[r]>s[n]);)i=s[r],s[r]=s[n],s[n]=i,i=s[r+1],s[r+1]=s[n+1],s[n+1]=i,r=n;return this.length},b.prototype.pop=function(){var t,e,r,n,i,s=this.buffer;for(e=s[0],t=s[1],this.length-=2,s[0]=s[this.length],s[1]=s[this.length+1],i=0;!((n=2*i+2)>=this.length)&&(n+2<this.length&&s[n+2]>s[n]&&(n+=2),s[n]>s[i]);)r=s[i],s[i]=s[n],s[n]=r,r=s[i+1],s[i+1]=s[n+1],s[n+1]=r,i=n;return{index:t,value:e,length:this.length}};var w,x=2,k={NONE:0,L:1,t:x,X:3},E=[];for(w=0;288>w;w++)switch(i){case 143>=w:E.push([w+48,8]);break;case 255>=w:E.push([w-144+400,9]);break;case 279>=w:E.push([w-256+0,7]);break;case 287>=w:E.push([w-280+192,8]);break;default:r("invalid literal: "+w)}function A(t,e){this.length=t,this.N=e}y.prototype.h=function(){var t,e,a,f,u=this.input;switch(this.k){case 0:for(a=0,f=u.length;a<f;){var c,h,p,l=e=s?u.subarray(a,a+65535):u.slice(a,a+65535),d=(a+=e.length)===f,m=n,g=n,b=this.a,v=this.b;if(s){for(b=new Uint8Array(this.a.buffer);b.length<=v+l.length+5;)b=new Uint8Array(b.length<<1);b.set(this.a)}if(c=d?1:0,b[v++]=0|c,p=65536+~(h=l.length)&65535,b[v++]=255&h,b[v++]=h>>>8&255,b[v++]=255&p,b[v++]=p>>>8&255,s)b.set(l,v),v+=l.length,b=b.subarray(0,v);else{for(m=0,g=l.length;m<g;++m)b[v++]=l[m];b.length=v}this.b=v,this.a=b}break;case 1:var y=new o(s?new Uint8Array(this.a.buffer):this.a,this.b);y.d(1,1,i),y.d(1,2,i);var w,k,A,U=j(this,u);for(w=0,k=U.length;w<k;w++)if(A=U[w],o.prototype.d.apply(y,E[A]),256<A)y.d(U[++w],U[++w],i),y.d(U[++w],5),y.d(U[++w],U[++w],i);else if(256===A)break;this.a=y.finish(),this.b=this.a.length;break;case x:var _,S,T,B,C,P,O,R,N,z,q,D,F,M,J,H=new o(s?new Uint8Array(this.a.buffer):this.a,this.b),G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],V=Array(19);for(_=x,H.d(1,1,i),H.d(_,2,i),S=j(this,u),O=L(P=I(this.U,15)),N=L(R=I(this.T,7)),T=286;257<T&&0===P[T-1];T--);for(B=30;1<B&&0===R[B-1];B--);var W,X,Y,$,K,Z,Q=T,tt=B,et=new(s?Uint32Array:Array)(Q+tt),rt=new(s?Uint32Array:Array)(316),nt=new(s?Uint8Array:Array)(19);for(W=X=0;W<Q;W++)et[X++]=P[W];for(W=0;W<tt;W++)et[X++]=R[W];if(!s)for(W=0,$=nt.length;W<$;++W)nt[W]=0;for(W=K=0,$=et.length;W<$;W+=X){for(X=1;W+X<$&&et[W+X]===et[W];++X);if(Y=X,0===et[W])if(3>Y)for(;0<Y--;)rt[K++]=0,nt[0]++;else for(;0<Y;)(Z=138>Y?Y:138)>Y-3&&Z<Y&&(Z=Y-3),10>=Z?(rt[K++]=17,rt[K++]=Z-3,nt[17]++):(rt[K++]=18,rt[K++]=Z-11,nt[18]++),Y-=Z;else if(rt[K++]=et[W],nt[et[W]]++,3>--Y)for(;0<Y--;)rt[K++]=et[W],nt[et[W]]++;else for(;0<Y;)(Z=6>Y?Y:6)>Y-3&&Z<Y&&(Z=Y-3),rt[K++]=16,rt[K++]=Z-3,nt[16]++,Y-=Z}for(t=s?rt.subarray(0,K):rt.slice(0,K),z=I(nt,7),M=0;19>M;M++)V[M]=z[G[M]];for(C=19;4<C&&0===V[C-1];C--);for(q=L(z),H.d(T-257,5,i),H.d(B-1,5,i),H.d(C-4,4,i),M=0;M<C;M++)H.d(V[M],3,i);for(M=0,J=t.length;M<J;M++)if(D=t[M],H.d(q[D],z[D],i),16<=D){switch(M++,D){case 16:F=2;break;case 17:F=3;break;case 18:F=7;break;default:r("invalid code: "+D)}H.d(t[M],F,i)}var it,st,ot,at,ft,ut,ct,ht,pt=[O,P],lt=[N,R];for(ft=pt[0],ut=pt[1],ct=lt[0],ht=lt[1],it=0,st=S.length;it<st;++it)if(ot=S[it],H.d(ft[ot],ut[ot],i),256<ot)H.d(S[++it],S[++it],i),at=S[++it],H.d(ct[at],ht[at],i),H.d(S[++it],S[++it],i);else if(256===ot)break;this.a=H.finish(),this.b=this.a.length;break;default:r("invalid compression type")}return this.a};var U=function(){function t(t){switch(i){case 3===t:return[257,t-3,0];case 4===t:return[258,t-4,0];case 5===t:return[259,t-5,0];case 6===t:return[260,t-6,0];case 7===t:return[261,t-7,0];case 8===t:return[262,t-8,0];case 9===t:return[263,t-9,0];case 10===t:return[264,t-10,0];case 12>=t:return[265,t-11,1];case 14>=t:return[266,t-13,1];case 16>=t:return[267,t-15,1];case 18>=t:return[268,t-17,1];case 22>=t:return[269,t-19,2];case 26>=t:return[270,t-23,2];case 30>=t:return[271,t-27,2];case 34>=t:return[272,t-31,2];case 42>=t:return[273,t-35,3];case 50>=t:return[274,t-43,3];case 58>=t:return[275,t-51,3];case 66>=t:return[276,t-59,3];case 82>=t:return[277,t-67,4];case 98>=t:return[278,t-83,4];case 114>=t:return[279,t-99,4];case 130>=t:return[280,t-115,4];case 162>=t:return[281,t-131,5];case 194>=t:return[282,t-163,5];case 226>=t:return[283,t-195,5];case 257>=t:return[284,t-227,5];case 258===t:return[285,t-258,0];default:r("invalid length: "+t)}}var e,n,s=[];for(e=3;258>=e;e++)n=t(e),s[e]=n[2]<<24|n[1]<<16|n[0];return s}(),_=s?new Uint32Array(U):U;function j(t,e){function o(t,e){var n,s,o,a,f=t.N,u=[],c=0;switch(n=_[t.length],u[c++]=65535&n,u[c++]=n>>16&255,u[c++]=n>>24,i){case 1===f:s=[0,f-1,0];break;case 2===f:s=[1,f-2,0];break;case 3===f:s=[2,f-3,0];break;case 4===f:s=[3,f-4,0];break;case 6>=f:s=[4,f-5,1];break;case 8>=f:s=[5,f-7,1];break;case 12>=f:s=[6,f-9,2];break;case 16>=f:s=[7,f-13,2];break;case 24>=f:s=[8,f-17,3];break;case 32>=f:s=[9,f-25,3];break;case 48>=f:s=[10,f-33,4];break;case 64>=f:s=[11,f-49,4];break;case 96>=f:s=[12,f-65,5];break;case 128>=f:s=[13,f-97,5];break;case 192>=f:s=[14,f-129,6];break;case 256>=f:s=[15,f-193,6];break;case 384>=f:s=[16,f-257,7];break;case 512>=f:s=[17,f-385,7];break;case 768>=f:s=[18,f-513,8];break;case 1024>=f:s=[19,f-769,8];break;case 1536>=f:s=[20,f-1025,9];break;case 2048>=f:s=[21,f-1537,9];break;case 3072>=f:s=[22,f-2049,10];break;case 4096>=f:s=[23,f-3073,10];break;case 6144>=f:s=[24,f-4097,11];break;case 8192>=f:s=[25,f-6145,11];break;case 12288>=f:s=[26,f-8193,12];break;case 16384>=f:s=[27,f-12289,12];break;case 24576>=f:s=[28,f-16385,13];break;case 32768>=f:s=[29,f-24577,13];break;default:r("invalid distance")}for(n=s,u[c++]=n[0],u[c++]=n[1],u[c++]=n[2],o=0,a=u.length;o<a;++o)b[v++]=u[o];w[u[0]]++,x[u[3]]++,y=t.length+e-1,d=null}var a,f,u,c,h,p,l,d,m,g={},b=s?new Uint16Array(2*e.length):[],v=0,y=0,w=new(s?Uint32Array:Array)(286),x=new(s?Uint32Array:Array)(30),k=t.F;if(!s){for(u=0;285>=u;)w[u++]=0;for(u=0;29>=u;)x[u++]=0}for(w[256]=1,a=0,f=e.length;a<f;++a){for(u=h=0,c=3;u<c&&a+u!==f;++u)h=h<<8|e[a+u];if(g[h]===n&&(g[h]=[]),p=g[h],!(0<y--)){for(;0<p.length&&32768<a-p[0];)p.shift();if(a+3>=f){for(d&&o(d,-1),u=0,c=f-a;u<c;++u)m=e[a+u],b[v++]=m,++w[m];break}0<p.length?(l=S(e,a,p),d?d.length<l.length?(m=e[a-1],b[v++]=m,++w[m],o(l,0)):o(d,-1):l.length<k?d=l:o(l,0)):d?o(d,-1):(m=e[a],b[v++]=m,++w[m])}p.push(a)}return b[v++]=256,w[256]++,t.U=w,t.T=x,s?b.subarray(0,v):b}function S(t,e,r){var n,i,s,o,a,f,u=0,c=t.length;o=0,f=r.length;t:for(;o<f;o++){if(n=r[f-o-1],s=3,3<u){for(a=u;3<a;a--)if(t[n+a-1]!==t[e+a-1])continue t;s=u}for(;258>s&&e+s<c&&t[n+s]===t[e+s];)++s;if(s>u&&(i=n,u=s),258===s)break}return new A(u,e-i)}function I(t,e){var r,n,i,o,a,f=t.length,u=new b(572),c=new(s?Uint8Array:Array)(f);if(!s)for(o=0;o<f;o++)c[o]=0;for(o=0;o<f;++o)0<t[o]&&u.push(o,t[o]);if(r=Array(u.length/2),n=new(s?Uint32Array:Array)(u.length/2),1===r.length)return c[u.pop().index]=1,c;for(o=0,a=u.length/2;o<a;++o)r[o]=u.pop(),n[o]=r[o].value;for(i=function(t,e,r){function n(t){var r=d[t][m[t]];r===e?(n(t+1),n(t+1)):--p[r],++m[t]}var i,o,a,f,u,c=new(s?Uint16Array:Array)(r),h=new(s?Uint8Array:Array)(r),p=new(s?Uint8Array:Array)(e),l=Array(r),d=Array(r),m=Array(r),g=(1<<r)-e,b=1<<r-1;for(c[r-1]=e,o=0;o<r;++o)g<b?h[o]=0:(h[o]=1,g-=b),g<<=1,c[r-2-o]=(c[r-1-o]/2|0)+e;for(c[0]=h[0],l[0]=Array(c[0]),d[0]=Array(c[0]),o=1;o<r;++o)c[o]>2*c[o-1]+h[o]&&(c[o]=2*c[o-1]+h[o]),l[o]=Array(c[o]),d[o]=Array(c[o]);for(i=0;i<e;++i)p[i]=r;for(a=0;a<c[r-1];++a)l[r-1][a]=t[a],d[r-1][a]=a;for(i=0;i<r;++i)m[i]=0;for(1===h[r-1]&&(--p[0],++m[r-1]),o=r-2;0<=o;--o){for(f=i=0,u=m[o+1],a=0;a<c[o];a++)(f=l[o+1][u]+l[o+1][u+1])>t[i]?(l[o][a]=f,d[o][a]=e,u+=2):(l[o][a]=t[i],d[o][a]=i,++i);m[o]=0,1===h[o]&&n(o)}return p}(n,n.length,e),o=0,a=r.length;o<a;++o)c[r[o].index]=i[o];return c}function L(t){var e,r,n,i,o=new(s?Uint16Array:Array)(t.length),a=[],f=[],u=0;for(e=0,r=t.length;e<r;e++)a[t[e]]=1+(0|a[t[e]]);for(e=1,r=16;e<=r;e++)f[e]=u,u+=0|a[e],u<<=1;for(e=0,r=t.length;e<r;e++)for(u=f[t[e]],f[t[e]]+=1,n=o[e]=0,i=t[e];n<i;n++)o[e]=o[e]<<1|1&u,u>>>=1;return o}function T(t,e){this.input=t,this.b=this.c=0,this.g={},e&&(e.flags&&(this.g=e.flags),"string"==typeof e.filename&&(this.filename=e.filename),"string"==typeof e.comment&&(this.w=e.comment),e.deflateOptions&&(this.l=e.deflateOptions)),this.l||(this.l={})}T.prototype.h=function(){var t,e,r,i,o,a,f,u,c=new(s?Uint8Array:Array)(32768),h=0,p=this.input,d=this.c,m=this.filename,g=this.w;if(c[h++]=31,c[h++]=139,c[h++]=8,t=0,this.g.fname&&(t|=P),this.g.fcomment&&(t|=O),this.g.fhcrc&&(t|=C),c[h++]=t,e=(Date.now?Date.now():+new Date)/1e3|0,c[h++]=255&e,c[h++]=e>>>8&255,c[h++]=e>>>16&255,c[h++]=e>>>24&255,c[h++]=0,c[h++]=B,this.g.fname!==n){for(f=0,u=m.length;f<u;++f)255<(a=m.charCodeAt(f))&&(c[h++]=a>>>8&255),c[h++]=255&a;c[h++]=0}if(this.g.comment){for(f=0,u=g.length;f<u;++f)255<(a=g.charCodeAt(f))&&(c[h++]=a>>>8&255),c[h++]=255&a;c[h++]=0}return this.g.fhcrc&&(r=65535&l(c,0,h),c[h++]=255&r,c[h++]=r>>>8&255),this.l.outputBuffer=c,this.l.outputIndex=h,c=(o=new y(p,this.l)).h(),h=o.b,s&&(h+8>c.buffer.byteLength?(this.a=new Uint8Array(h+8),this.a.set(new Uint8Array(c.buffer)),c=this.a):c=new Uint8Array(c.buffer)),i=l(p,n,n),c[h++]=255&i,c[h++]=i>>>8&255,c[h++]=i>>>16&255,c[h++]=i>>>24&255,u=p.length,c[h++]=255&u,c[h++]=u>>>8&255,c[h++]=u>>>16&255,c[h++]=u>>>24&255,this.c=d,s&&h<c.length&&(this.a=c=c.subarray(0,h)),c};var B=255,C=2,P=8,O=16;function R(t,e){switch(this.o=[],this.p=32768,this.e=this.j=this.c=this.s=0,this.input=s?new Uint8Array(t):t,this.u=!1,this.q=z,this.K=!1,!e&&(e={})||(e.index&&(this.c=e.index),e.bufferSize&&(this.p=e.bufferSize),e.bufferType&&(this.q=e.bufferType),e.resize&&(this.K=e.resize)),this.q){case N:this.b=32768,this.a=new(s?Uint8Array:Array)(32768+this.p+258);break;case z:this.b=0,this.a=new(s?Uint8Array:Array)(this.p),this.f=this.S,this.z=this.O,this.r=this.Q;break;default:r(Error("invalid inflate mode"))}}var N=0,z=1;R.prototype.i=function(){for(;!this.u;){var t=nt(this,3);switch(1&t&&(this.u=i),t>>>=1){case 0:var e=this.input,o=this.c,a=this.a,f=this.b,u=e.length,c=n,h=a.length,p=n;switch(this.e=this.j=0,o+1>=u&&r(Error("invalid uncompressed block header: LEN")),c=e[o++]|e[o++]<<8,o+1>=u&&r(Error("invalid uncompressed block header: NLEN")),c===~(e[o++]|e[o++]<<8)&&r(Error("invalid uncompressed block header: length verify")),o+c>e.length&&r(Error("input buffer is broken")),this.q){case N:for(;f+c>a.length;){if(c-=p=h-f,s)a.set(e.subarray(o,o+p),f),f+=p,o+=p;else for(;p--;)a[f++]=e[o++];this.b=f,a=this.f(),f=this.b}break;case z:for(;f+c>a.length;)a=this.f({B:2});break;default:r(Error("invalid inflate mode"))}if(s)a.set(e.subarray(o,o+c),f),f+=c,o+=c;else for(;c--;)a[f++]=e[o++];this.c=o,this.b=f,this.a=a;break;case 1:this.r(tt,rt);break;case 2:var l,d,m,g,b=nt(this,5)+257,y=nt(this,5)+1,w=nt(this,4)+4,x=new(s?Uint8Array:Array)(M.length),k=n,E=n,A=n,U=n,_=n;for(_=0;_<w;++_)x[M[_]]=nt(this,3);if(!s)for(_=w,w=x.length;_<w;++_)x[M[_]]=0;for(l=v(x),k=new(s?Uint8Array:Array)(b+y),_=0,g=b+y;_<g;)switch(E=it(this,l)){case 16:for(U=3+nt(this,2);U--;)k[_++]=A;break;case 17:for(U=3+nt(this,3);U--;)k[_++]=0;A=0;break;case 18:for(U=11+nt(this,7);U--;)k[_++]=0;A=0;break;default:A=k[_++]=E}d=v(s?k.subarray(0,b):k.slice(0,b)),m=v(s?k.subarray(b):k.slice(b)),this.r(d,m);break;default:r(Error("unknown BTYPE: "+t))}}return this.z()};var q,D,F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],M=s?new Uint16Array(F):F,J=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],H=s?new Uint16Array(J):J,G=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],V=s?new Uint8Array(G):G,W=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],X=s?new Uint16Array(W):W,Y=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],$=s?new Uint8Array(Y):Y,K=new(s?Uint8Array:Array)(288);for(q=0,D=K.length;q<D;++q)K[q]=143>=q?8:255>=q?9:279>=q?7:8;var Z,Q,tt=v(K),et=new(s?Uint8Array:Array)(30);for(Z=0,Q=et.length;Z<Q;++Z)et[Z]=5;var rt=v(et);function nt(t,e){for(var n,i=t.j,s=t.e,o=t.input,a=t.c,f=o.length;s<e;)a>=f&&r(Error("input buffer is broken")),i|=o[a++]<<s,s+=8;return n=i&(1<<e)-1,t.j=i>>>e,t.e=s-e,t.c=a,n}function it(t,e){for(var n,i,s=t.j,o=t.e,a=t.input,f=t.c,u=a.length,c=e[0],h=e[1];o<h&&!(f>=u);)s|=a[f++]<<o,o+=8;return(i=(n=c[s&(1<<h)-1])>>>16)>o&&r(Error("invalid code length: "+i)),t.j=s>>i,t.e=o-i,t.c=f,65535&n}function st(t){this.input=t,this.c=0,this.G=[],this.R=!1}function ot(t){if("string"==typeof t){var e,r,n=t.split("");for(e=0,r=n.length;e<r;e++)n[e]=(255&n[e].charCodeAt(0))>>>0;t=n}for(var i,s=1,o=0,a=t.length,f=0;0<a;){a-=i=1024<a?1024:a;do{o+=s+=t[f++]}while(--i);s%=65521,o%=65521}return(o<<16|s)>>>0}function at(t,e){var n,i;switch(this.input=t,this.c=0,!e&&(e={})||(e.index&&(this.c=e.index),e.verify&&(this.V=e.verify)),n=t[this.c++],i=t[this.c++],15&n){case ft:this.method=ft;break;default:r(Error("unsupported compression method"))}0!=((n<<8)+i)%31&&r(Error("invalid fcheck flag:"+((n<<8)+i)%31)),32&i&&r(Error("fdict flag is not supported")),this.J=new R(t,{index:this.c,bufferSize:e.bufferSize,bufferType:e.bufferType,resize:e.resize})}R.prototype.r=function(t,e){var r=this.a,n=this.b;this.A=t;for(var i,s,o,a,f=r.length-258;256!==(i=it(this,t));)if(256>i)n>=f&&(this.b=n,r=this.f(),n=this.b),r[n++]=i;else for(a=H[s=i-257],0<V[s]&&(a+=nt(this,V[s])),i=it(this,e),o=X[i],0<$[i]&&(o+=nt(this,$[i])),n>=f&&(this.b=n,r=this.f(),n=this.b);a--;)r[n]=r[n++-o];for(;8<=this.e;)this.e-=8,this.c--;this.b=n},R.prototype.Q=function(t,e){var r=this.a,n=this.b;this.A=t;for(var i,s,o,a,f=r.length;256!==(i=it(this,t));)if(256>i)n>=f&&(f=(r=this.f()).length),r[n++]=i;else for(a=H[s=i-257],0<V[s]&&(a+=nt(this,V[s])),i=it(this,e),o=X[i],0<$[i]&&(o+=nt(this,$[i])),n+a>f&&(f=(r=this.f()).length);a--;)r[n]=r[n++-o];for(;8<=this.e;)this.e-=8,this.c--;this.b=n},R.prototype.f=function(){var t,e,r=new(s?Uint8Array:Array)(this.b-32768),n=this.b-32768,i=this.a;if(s)r.set(i.subarray(32768,r.length));else for(t=0,e=r.length;t<e;++t)r[t]=i[t+32768];if(this.o.push(r),this.s+=r.length,s)i.set(i.subarray(n,n+32768));else for(t=0;32768>t;++t)i[t]=i[n+t];return this.b=32768,i},R.prototype.S=function(t){var e,r,n,i=this.input.length/this.c+1|0,o=this.input,a=this.a;return t&&("number"==typeof t.B&&(i=t.B),"number"==typeof t.M&&(i+=t.M)),2>i?r=(n=(o.length-this.c)/this.A[2]/2*258|0)<a.length?a.length+n:a.length<<1:r=a.length*i,s?(e=new Uint8Array(r)).set(a):e=a,this.a=e},R.prototype.z=function(){var t,e,r,n,i,o=0,a=this.a,f=this.o,u=new(s?Uint8Array:Array)(this.s+(this.b-32768));if(0===f.length)return s?this.a.subarray(32768,this.b):this.a.slice(32768,this.b);for(e=0,r=f.length;e<r;++e)for(n=0,i=(t=f[e]).length;n<i;++n)u[o++]=t[n];for(e=32768,r=this.b;e<r;++e)u[o++]=a[e];return this.o=[],this.buffer=u},R.prototype.O=function(){var t,e=this.b;return s?this.K?(t=new Uint8Array(e)).set(this.a.subarray(0,e)):t=this.a.subarray(0,e):(this.a.length>e&&(this.a.length=e),t=this.a),this.buffer=t},st.prototype.i=function(){for(var t=this.input.length;this.c<t;){var e,o,a=new g,f=n,u=n,c=n,h=n,p=n,d=n,m=n,b=this.input,v=this.c;switch(a.C=b[v++],a.D=b[v++],(31!==a.C||139!==a.D)&&r(Error("invalid file signature:"+a.C+","+a.D)),a.v=b[v++],a.v){case 8:break;default:r(Error("unknown compression method: "+a.v))}if(a.n=b[v++],o=b[v++]|b[v++]<<8|b[v++]<<16|b[v++]<<24,a.$=new Date(1e3*o),a.ba=b[v++],a.aa=b[v++],0<(4&a.n)&&(a.W=b[v++]|b[v++]<<8,v+=a.W),0<(a.n&P)){for(d=[],p=0;0<(h=b[v++]);)d[p++]=String.fromCharCode(h);a.name=d.join("")}if(0<(a.n&O)){for(d=[],p=0;0<(h=b[v++]);)d[p++]=String.fromCharCode(h);a.w=d.join("")}0<(a.n&C)&&(a.P=65535&l(b,0,v),a.P!==(b[v++]|b[v++]<<8)&&r(Error("invalid header crc16"))),f=b[b.length-4]|b[b.length-3]<<8|b[b.length-2]<<16|b[b.length-1]<<24,b.length-v-4-4<512*f&&(c=f),u=new R(b,{index:v,bufferSize:c}),a.data=e=u.i(),v=u.c,a.Y=m=(b[v++]|b[v++]<<8|b[v++]<<16|b[v++]<<24)>>>0,l(e,n,n)!==m&&r(Error("invalid CRC-32 checksum: 0x"+l(e,n,n).toString(16)+" / 0x"+m.toString(16))),a.Z=f=(b[v++]|b[v++]<<8|b[v++]<<16|b[v++]<<24)>>>0,(4294967295&e.length)!==f&&r(Error("invalid input size: "+(4294967295&e.length)+" / "+f)),this.G.push(a),this.c=v}this.R=i;var y,w,x,k=this.G,E=0,A=0;for(y=0,w=k.length;y<w;++y)A+=k[y].data.length;if(s)for(x=new Uint8Array(A),y=0;y<w;++y)x.set(k[y].data,E),E+=k[y].data.length;else{for(x=[],y=0;y<w;++y)x[y]=k[y].data;x=Array.prototype.concat.apply([],x)}return x},at.prototype.i=function(){var t,e=this.input;return t=this.J.i(),this.c=this.J.c,this.V&&((e[this.c++]<<24|e[this.c++]<<16|e[this.c++]<<8|e[this.c++])>>>0!==ot(t)&&r(Error("invalid adler-32 checksum"))),t};var ft=8;function ut(t,e){this.input=t,this.a=new(s?Uint8Array:Array)(32768),this.k=ct.t;var r,n={};for(r in!e&&(e={})||"number"!=typeof e.compressionType||(this.k=e.compressionType),e)n[r]=e[r];n.outputBuffer=this.a,this.I=new y(this.input,n)}var ct=k;function ht(t,e){var r;return r=new ut(t).h(),e||(e={}),e.H?r:mt(r)}function pt(t,e){var r;return t.subarray=t.slice,r=new at(t).i(),e||(e={}),e.noBuffer?r:mt(r)}function lt(t,e){var r;return t.subarray=t.slice,r=new T(t).h(),e||(e={}),e.H?r:mt(r)}function dt(t,e){var r;return t.subarray=t.slice,r=new st(t).i(),e||(e={}),e.H?r:mt(r)}function mt(t){var e,r,n=new Buffer(t.length);for(e=0,r=t.length;e<r;++e)n[e]=t[e];return n}ut.prototype.h=function(){var t,e,n,i,o,a,f,u=0;switch(f=this.a,t=ft){case ft:e=Math.LOG2E*Math.log(32768)-8;break;default:r(Error("invalid compression method"))}switch(n=e<<4|t,f[u++]=n,t){case ft:switch(this.k){case ct.NONE:o=0;break;case ct.L:o=1;break;case ct.t:o=2;break;default:r(Error("unsupported compression type"))}break;default:r(Error("invalid compression method"))}return i=o<<6|0,f[u++]=i|31-(256*n+i)%31,a=ot(this.input),this.I.b=u,u=(f=this.I.h()).length,s&&((f=new Uint8Array(f.buffer)).length<=u+4&&(this.a=new Uint8Array(f.length+4),this.a.set(f),f=this.a),f=f.subarray(0,u+4)),f[u++]=a>>24&255,f[u++]=a>>16&255,f[u++]=a>>8&255,f[u++]=255&a,f},e.deflate=function(e,r,n){t.nextTick((function(){var t,i;try{i=ht(e,n)}catch(e){t=e}r(t,i)}))},e.deflateSync=ht,e.inflate=function(e,r,n){t.nextTick((function(){var t,i;try{i=pt(e,n)}catch(e){t=e}r(t,i)}))},e.inflateSync=pt,e.gzip=function(e,r,n){t.nextTick((function(){var t,i;try{i=lt(e,n)}catch(e){t=e}r(t,i)}))},e.gzipSync=lt,e.gunzip=function(e,r,n){t.nextTick((function(){var t,i;try{i=dt(e,n)}catch(e){t=e}r(t,i)}))},e.gunzipSync=dt}).call(this)}).call(this,r(50))},1298:function(t,e,r){"use strict";var n=r(1299),i=r(1155);t.exports=function(t,e,r){void 0===r&&(r=70);var s=Buffer.from(e),o=i(s),a=0,f=null,u=null,c=0,h=0;if(o&&"image/bmp"===o.mime){var p=n.decode(s);f=t._malloc(p.data.length*Uint8Array.BYTES_PER_ELEMENT),t.HEAPU8.set(p.data,f),c=p.width,h=p.height,a=4}else{var l=t._malloc(s.length*Uint8Array.BYTES_PER_ELEMENT);t.HEAPU8.set(s,l),u=t._pixReadMem(l,s.length),0===t.getValue(u+28,"i32")&&t.setValue(u+28,r,"i32");var d=Array(2).fill(0).map((function(e,r){return t.getValue(u+4*r,"i32")}));c=d[0],h=d[1]}return{w:c,h:h,bytesPerPixel:a,data:f,pix:u}}},1299:function(t,e,r){var n=r(1300),i=r(1301);t.exports={encode:n,decode:i}},1300:function(t,e){function r(t){this.buffer=t.data,this.width=t.width,this.height=t.height,this.extraBytes=this.width%4,this.rgbSize=this.height*(3*this.width+this.extraBytes),this.headerInfoSize=40,this.data=[],this.flag="BM",this.reserved=0,this.offset=54,this.fileSize=this.rgbSize+this.offset,this.planes=1,this.bitPP=24,this.compress=0,this.hr=0,this.vr=0,this.colors=0,this.importantColors=0}r.prototype.encode=function(){var t=new Buffer(this.offset+this.rgbSize);this.pos=0,t.write(this.flag,this.pos,2),this.pos+=2,t.writeUInt32LE(this.fileSize,this.pos),this.pos+=4,t.writeUInt32LE(this.reserved,this.pos),this.pos+=4,t.writeUInt32LE(this.offset,this.pos),this.pos+=4,t.writeUInt32LE(this.headerInfoSize,this.pos),this.pos+=4,t.writeUInt32LE(this.width,this.pos),this.pos+=4,t.writeInt32LE(-this.height,this.pos),this.pos+=4,t.writeUInt16LE(this.planes,this.pos),this.pos+=2,t.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,t.writeUInt32LE(this.compress,this.pos),this.pos+=4,t.writeUInt32LE(this.rgbSize,this.pos),this.pos+=4,t.writeUInt32LE(this.hr,this.pos),this.pos+=4,t.writeUInt32LE(this.vr,this.pos),this.pos+=4,t.writeUInt32LE(this.colors,this.pos),this.pos+=4,t.writeUInt32LE(this.importantColors,this.pos),this.pos+=4;for(var e=0,r=3*this.width+this.extraBytes,n=0;n<this.height;n++){for(var i=0;i<this.width;i++){var s=this.pos+n*r+3*i;e++,t[s]=this.buffer[e++],t[s+1]=this.buffer[e++],t[s+2]=this.buffer[e++]}if(this.extraBytes>0){var o=this.pos+n*r+3*this.width;t.fill(0,o,o+this.extraBytes)}}return t},t.exports=function(t,e){return void 0===e&&(e=100),{data:new r(t).encode(),width:t.width,height:t.height}}},1301:function(t,e){function r(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString("utf-8",0,this.pos+=2),"BM"!=this.flag)throw new Error("Invalid BMP File");this.parseHeader(),this.parseRGBA()}r.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),s=this.buffer.readUInt8(this.pos++);this.palette[e]={red:i,green:n,blue:r,quad:s}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},r.prototype.parseRGBA=function(){var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Buffer(e),this[t]()},r.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,r=this.height>=0?this.height-1:-this.height;for(r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<t;i++)for(var s=this.buffer.readUInt8(this.pos++),o=n*this.width*4+8*i*4,a=0;a<8&&8*i+a<this.width;a++){var f=this.palette[s>>7-a&1];this.data[o+4*a]=0,this.data[o+4*a+1]=f.blue,this.data[o+4*a+2]=f.green,this.data[o+4*a+3]=f.red}0!=e&&(this.pos+=4-e)}},r.prototype.bit4=function(){if(2==this.compress){var t=function(t){var r=this.palette[t];this.data[e]=0,this.data[e+1]=r.blue,this.data[e+2]=r.green,this.data[e+3]=r.red,e+=4};this.data.fill(255);for(var e=0,r=this.bottom_up?this.height-1:0,n=!1;e<this.data.length;){var i=this.buffer.readUInt8(this.pos++),s=this.buffer.readUInt8(this.pos++);if(0==i){if(0==s){this.bottom_up?r--:r++,e=r*this.width*4,n=!1;continue}if(1==s)break;if(2==s){var o=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++);this.bottom_up?r-=a:r+=a,e+=a*this.width*4+4*o}else{for(var f=this.buffer.readUInt8(this.pos++),u=0;u<s;u++)t.call(this,n?15&f:(240&f)>>4),1&u&&u+1<s&&(f=this.buffer.readUInt8(this.pos++)),n=!n;1==(s+1>>1&1)&&this.pos++}}else for(u=0;u<i;u++)t.call(this,n?15&s:(240&s)>>4),n=!n}}else{var c=Math.ceil(this.width/2),h=c%4;for(a=this.height-1;a>=0;a--){var p=this.bottom_up?a:this.height-1-a;for(o=0;o<c;o++){s=this.buffer.readUInt8(this.pos++),e=p*this.width*4+2*o*4;var l=s>>4,d=15&s,m=this.palette[l];if(this.data[e]=0,this.data[e+1]=m.blue,this.data[e+2]=m.green,this.data[e+3]=m.red,2*o+1>=this.width)break;m=this.palette[d],this.data[e+4]=0,this.data[e+4+1]=m.blue,this.data[e+4+2]=m.green,this.data[e+4+3]=m.red}0!=h&&(this.pos+=4-h)}}},r.prototype.bit8=function(){if(1==this.compress){var t=function(t){var r=this.palette[t];this.data[e]=0,this.data[e+1]=r.blue,this.data[e+2]=r.green,this.data[e+3]=r.red,e+=4};this.data.fill(255);for(var e=0,r=this.bottom_up?this.height-1:0;e<this.data.length;){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++);if(0==n){if(0==i){this.bottom_up?r--:r++,e=r*this.width*4;continue}if(1==i)break;if(2==i){var s=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++);this.bottom_up?r-=o:r+=o,e+=o*this.width*4+4*s}else{for(var a=0;a<i;a++){var f=this.buffer.readUInt8(this.pos++);t.call(this,f)}!0&i&&this.pos++}}else for(a=0;a<n;a++)t.call(this,i)}}else{var u=this.width%4;for(o=this.height-1;o>=0;o--){var c=this.bottom_up?o:this.height-1-o;for(s=0;s<this.width;s++){i=this.buffer.readUInt8(this.pos++),e=c*this.width*4+4*s;if(i<this.palette.length){var h=this.palette[i];this.data[e]=0,this.data[e+1]=h.blue,this.data[e+2]=h.green,this.data[e+3]=h.red}else this.data[e]=0,this.data[e+1]=255,this.data[e+2]=255,this.data[e+3]=255}0!=u&&(this.pos+=4-u)}}},r.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var s=this.buffer.readUInt16LE(this.pos);this.pos+=2;var o=(s&e)/e*255|0,a=(s>>5&e)/e*255|0,f=(s>>10&e)/e*255|0,u=s>>15?255:0,c=n*this.width*4+4*i;this.data[c]=u,this.data[c+1]=o,this.data[c+2]=a,this.data[c+3]=f}this.pos+=t}},r.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],r=0;r<16;r++)this.maskRed>>r&1&&e[0]++,this.maskGreen>>r&1&&e[1]++,this.maskBlue>>r&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,s=0;s<this.width;s++){var o=this.buffer.readUInt16LE(this.pos);this.pos+=2;var a=(o&this.maskBlue)<<e[0],f=(o&this.maskGreen)>>e[1],u=(o&this.maskRed)>>e[2],c=i*this.width*4+4*s;this.data[c]=0,this.data[c+1]=a,this.data[c+2]=f,this.data[c+3]=u}this.pos+=t}},r.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),s=this.buffer.readUInt8(this.pos++),o=e*this.width*4+4*r;this.data[o]=0,this.data[o+1]=n,this.data[o+2]=i,this.data[o+3]=s}this.pos+=this.width%4}},r.prototype.bit32=function(){if(3==this.compress){this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4;for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),s=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),a=e*this.width*4+4*r;this.data[a]=n,this.data[a+1]=i,this.data[a+2]=s,this.data[a+3]=o}}else for(t=this.height-1;t>=0;t--)for(e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){i=this.buffer.readUInt8(this.pos++),s=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++),a=e*this.width*4+4*r;this.data[a]=n,this.data[a+1]=i,this.data[a+2]=s,this.data[a+3]=o}},r.prototype.getData=function(){return this.data},t.exports=function(t){return new r(t)}},1302:function(t,e,r){"use strict";var n=r(56)(r(10)),i=r(1162),s="undefined"!=typeof window&&void 0!==window.document?r(1163):function(t){return t},o=r(1164),a=r(1323),f=r(1324),u=function(){function t(t){var e=this;void 0===t&&(t={}),this.worker=null,this.options=(0,n.default)({},o.defaultOptions,{},t),["corePath","workerPath","langPath"].forEach((function(r){var o;i.not.undefined(t[r])&&(e.options=(0,n.default)({},e.options,((o={})[r]=s(t[r]),o)))})),this._currentJob=null,this._queue=[]}var e=t.prototype;return e.recognize=function(t,e,r){return void 0===e&&(e="eng"),void 0===r&&(r={}),this._sendJob("recognize",t,e,r)},e.detect=function(t,e){return void 0===e&&(e={}),this._sendJob("detect",t,"osd",e)},e.recv=function(t){this._currentJob.id===t.jobId?this._currentJob.handle((0,n.default)({},t,{data:"resolve"===t.status&&"recognize"===t.action?a(t.data):t.data})):console.warn("Job ID "+t.jobId+" not known.")},e.dequeue=function(){this._currentJob=null,this._queue.length&&this._queue[0]()},e.terminate=function(){this.worker&&o.terminateWorker(this),this.worker=null,this._currentJob=null,this._queue=[]},e._sendJob=function(t,e,r,n){var i=this;return this._delay((function(s){s.send(t,{image:e,langs:r,params:n,options:i.options})}))},e._delay=function(t){var e=this;i.null(this.worker)&&(this.worker=o.spawnWorker(this,this.options));var r=new f(this);return this._queue.push((function(){e._queue.shift(),e._currentJob=r,t(r)})),i.null(this._currentJob)&&this.dequeue(),r},t}();t.exports=u},1303:function(t,e,r){"use strict";t.exports=r(1304)},1304:function(t,e,r){"use strict";var n=r(1047),i=r(1165),s=r(1305),o=r(1106);function a(t){var e=new s(t),r=i(s.prototype.request,e);return n.extend(r,s.prototype,e),n.extend(r,e),r}var f=a(o);f.Axios=s,f.create=function(t){return a(n.merge(o,t))},f.Cancel=r(1169),f.CancelToken=r(1318),f.isCancel=r(1168),f.all=function(t){return Promise.all(t)},f.spread=r(1319),t.exports=f,t.exports.default=f},1305:function(t,e,r){"use strict";var n=r(1106),i=r(1047),s=r(1313),o=r(1314);function a(t){this.defaults=t,this.interceptors={request:new s,response:new s}}a.prototype.request=function(t){"string"==typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),(t=i.merge(n,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[o,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)r=r.then(e.shift(),e.shift());return r},i.forEach(["delete","get","head","options"],(function(t){a.prototype[t]=function(e,r){return this.request(i.merge(r||{},{method:t,url:e}))}})),i.forEach(["post","put","patch"],(function(t){a.prototype[t]=function(e,r,n){return this.request(i.merge(n||{},{method:t,url:e,data:r}))}})),t.exports=a},1306:function(t,e,r){"use strict";var n=r(1047);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},1307:function(t,e,r){"use strict";var n=r(1167);t.exports=function(t,e,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},1308:function(t,e,r){"use strict";t.exports=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t}},1309:function(t,e,r){"use strict";var n=r(1047);function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var s;if(r)s=r(e);else if(n.isURLSearchParams(e))s=e.toString();else{var o=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),o.push(i(e)+"="+i(t))})))})),s=o.join("&")}return s&&(t+=(-1===t.indexOf("?")?"?":"&")+s),t}},1310:function(t,e,r){"use strict";var n=r(1047),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,s,o={};return t?(n.forEach(t.split("\n"),(function(t){if(s=t.indexOf(":"),e=n.trim(t.substr(0,s)).toLowerCase(),r=n.trim(t.substr(s+1)),e){if(o[e]&&i.indexOf(e)>=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([r]):o[e]?o[e]+", "+r:r}})),o):o}},1311:function(t,e,r){"use strict";var n=r(1047);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(e){var r=n.isString(e)?i(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},1312:function(t,e,r){"use strict";var n=r(1047);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,i,s,o){var a=[];a.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(i)&&a.push("path="+i),n.isString(s)&&a.push("domain="+s),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1313:function(t,e,r){"use strict";var n=r(1047);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},1314:function(t,e,r){"use strict";var n=r(1047),i=r(1315),s=r(1168),o=r(1106),a=r(1316),f=r(1317);function u(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return u(t),t.baseURL&&!a(t.url)&&(t.url=f(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||o.adapter)(t).then((function(e){return u(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return s(e)||(u(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},1315:function(t,e,r){"use strict";var n=r(1047);t.exports=function(t,e,r){return n.forEach(r,(function(r){t=r(t,e)})),t}},1316:function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},1317:function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},1318:function(t,e,r){"use strict";var n=r(1169);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},1319:function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},1320:function(t,e,r){"use strict";t.exports=function(t){return new Uint8Array(atob(t).split("").map((function(t){return t.charCodeAt(0)})))}},1321:function(t,e,r){"use strict";var n=r(1170),i=n.OEM,s=n.PSM;t.exports={defaultOptions:{langPath:"https://tessdata.projectnaptha.com/4.0.0",workerBlobURL:!0},defaultParams:{tessedit_ocr_engine_mode:i.LSTM_ONLY,tessedit_pageseg_mode:s.SINGLE_BLOCK,tessedit_char_whiltelist:"",tessjs_create_pdf:"0",tessjs_create_hocr:"1",tessjs_create_tsv:"1",tessjs_create_box:"0",tessjs_create_unlv:"0",tessjs_create_osd:"0",tessjs_textonly_pdf:"0",tessjs_pdf_name:"tesseract.js-ocr-result",tessjs_pdf_title:"Tesseract.js OCR Result",tessjs_pdf_auto_download:!0,tessjs_pdf_bin:!1,tessjs_image_rectangle_left:0,tessjs_image_rectangle_top:0,tessjs_image_rectangle_width:-1,tessjs_image_rectangle_height:-1}}},1322:function(t){t.exports=JSON.parse('{"name":"tesseract.js","version":"2.0.0-alpha.16","description":"Pure Javascript Multilingual OCR","main":"src/index.js","types":"types/index.d.ts","unpkg":"dist/tesseract.min.js","jsdelivr":"dist/tesseract.min.js","scripts":{"start":"node scripts/server.js","build":"rimraf dist && webpack --config scripts/webpack.config.prod.js","prepublishOnly":"npm run build","wait":"wait-on http://localhost:3000/package.json","test":"npm-run-all -p -r start test:all","test:all":"npm-run-all wait test:browser:* test:node","test:node":"nyc mocha --exit --bail --require ./scripts/test-helper.js ./tests/*.test.js","test:browser-tpl":"mocha-headless-chrome -a incognito -a no-sandbox -a disable-setuid-sandbox -t 300000","test:browser:detect":"npm run test:browser-tpl -- -f ./tests/detect.test.html","test:browser:recognize":"npm run test:browser-tpl -- -f ./tests/recognize.test.html","lint":"eslint src","postinstall":"opencollective-postinstall || true"},"browser":{"./src/node/index.js":"./src/browser/index.js"},"author":"","contributors":["jeromewu"],"license":"Apache-2.0","devDependencies":{"@babel/core":"^7.4.5","@babel/preset-env":"^7.4.5","acorn":"^6.1.1","babel-loader":"^8.0.6","cors":"^2.8.5","eslint":"^5.9.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.11.1","expect.js":"^0.3.1","express":"^4.16.4","mocha":"^5.2.0","mocha-headless-chrome":"^2.0.2","npm-run-all":"^4.1.5","nyc":"^13.1.0","rimraf":"^2.6.3","wait-on":"^3.2.0","webpack":"^4.26.0","webpack-cli":"^3.1.2","webpack-dev-middleware":"^3.4.0"},"dependencies":{"axios":"^0.18.0","check-types":"^7.4.0","is-url":"1.2.2","opencollective-postinstall":"^2.0.2","resolve-url":"^0.2.1","tesseract.js-core":"^2.0.0-beta.12","tesseract.js-utils":"^1.0.0-beta.8"},"repository":{"type":"git","url":"https://github.com/naptha/tesseract.js.git"},"bugs":{"url":"https://github.com/naptha/tesseract.js/issues"},"homepage":"https://github.com/naptha/tesseract.js","collective":{"type":"opencollective","url":"https://opencollective.com/tesseractjs"}}')},1323:function(t,e,r){"use strict";var n=r(56)(r(10));t.exports=function(t){var e=(0,n.default)({},t,{paragraphs:[],lines:[],words:[],symbols:[]});return e.blocks.forEach((function(t){var r=(0,n.default)({},t,{page:e,lines:[],words:[],symbols:[]});r.paragraphs.forEach((function(t){var i=(0,n.default)({},t,{block:r,page:e,words:[],symbols:[]});i.lines.forEach((function(t){var s=(0,n.default)({},t,{paragraph:i,block:r,page:e,symbols:[]});s.words.forEach((function(t){var o=(0,n.default)({},t,{line:s,paragraph:i,block:r,page:e});o.symbols.forEach((function(t){var a=(0,n.default)({},t,{word:o,line:s,paragraph:i,block:r,page:e});a.line.symbols.push(a),a.paragraph.symbols.push(a),a.block.symbols.push(a),a.page.symbols.push(a)})),o.paragraph.words.push(o),o.block.words.push(o),o.page.words.push(o)})),s.block.lines.push(s),s.page.lines.push(s)})),i.page.paragraphs.push(i)}))})),e}},1324:function(t,e,r){"use strict";var n=r(1164),i=0,s=function(){function t(t){i+=1,this.id="Job-"+i+"-"+Math.random().toString(16).slice(3,8),this._worker=t,this._resolve=[],this._reject=[],this._progress=[],this._finally=[]}var e=t.prototype;return e.then=function(t,e){var r=this;return new Promise((function(t,e){r._resolve.push?r._resolve.push(t):t(r._result),r.catch(e)})).then(t,e)},e.catch=function(t){return this._reject.push?this._reject.push(t):t(this._reject),this},e.progress=function(t){return this._progress.push(t),this},e.finally=function(t){return this._finally.push(t),this},e.send=function(t,e){n.sendPacket(this._worker,{jobId:this.id,action:t,payload:e})},e.handle=function(t){var e=t.data,r=!1;"resolve"===t.status?(0===this._resolve.length&&console.log(e),this._resolve.forEach((function(t){var r=t(e);r&&"function"==typeof r.then&&console.warn("TesseractJob instances do not chain like ES6 Promises. To convert it into a real promise, use Promise.resolve.")})),this._resolve=e,this._worker.dequeue(),r=!0):"reject"===t.status?(0===this._reject.length&&console.error(e),this._reject.forEach((function(t){return t(e)})),this._reject=e,this._worker.dequeue(),r=!0):"progress"===t.status?this._progress.forEach((function(t){return t(e)})):console.warn("Message type unknown",t.status),r&&this._finally.forEach((function(t){return t(e)}))},t}();t.exports=s},547:function(t,e,r){"use strict";var n=r(56)(r(10)),i=r(1274),s=r(1302),o=r(1170);t.exports=(0,n.default)({TesseractWorker:s,utils:i},o)}}]);
|
|
//# sourceMappingURL=tesseract.js.map
|