1!function(){try{var t="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="55f8f76e-6511-442c-9feb-b994cb0366ff",t._sentryDebugIdIdentifier="sentry-dbid-55f8f76e-6511-442c-9feb-b994cb0366ff")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3312],{11301:t=>{"use strict";t.exports={AFR:"afr",AMH:"amh",ARA:"ara",ASM:"asm",AZE:"aze",AZE_CYRL:"aze_cyrl",BEL:"bel",BEN:"ben",BOD:"bod",BOS:"bos",BUL:"bul",CAT:"cat",CEB:"ceb",CES:"ces",CHI_SIM:"chi_sim",CHI_TRA:"chi_tra",CHR:"chr",CYM:"cym",DAN:"dan",DEU:"deu",DZO:"dzo",ELL:"ell",ENG:"eng",ENM:"enm",EPO:"epo",EST:"est",EUS:"eus",FAS:"fas",FIN:"fin",FRA:"fra",FRK:"frk",FRM:"frm",GLE:"gle",GLG:"glg",GRC:"grc",GUJ:"guj",HAT:"hat",HEB:"heb",HIN:"hin",HRV:"hrv",HUN:"hun",IKU:"iku",IND:"ind",ISL:"isl",ITA:"ita",ITA_OLD:"ita_old",JAV:"jav",JPN:"jpn",KAN:"kan",KAT:"kat",KAT_OLD:"kat_old",KAZ:"kaz",KHM:"khm",KIR:"kir",KOR:"kor",KUR:"kur",LAO:"lao",LAT:"lat",LAV:"lav",LIT:"lit",MAL:"mal",MAR:"mar",MKD:"mkd",MLT:"mlt",MSA:"msa",MYA:"mya",NEP:"nep",NLD:"nld",NOR:"nor",ORI:"ori",PAN:"pan",POL:"pol",POR:"por",PUS:"pus",RON:"ron",RUS:"rus",SAN:"san",SIN:"sin",SLK:"slk",SLV:"slv",SPA:"spa",SPA_OLD:"spa_old",SQI:"sqi",SRP:"srp",SRP_LATN:"srp_latn",SWA:"swa",SWE:"swe",SYR:"syr",TAM:"tam",TEL:"tel",TGK:"tgk",TGL:"tgl",THA:"tha",TIR:"tir",TUR:"tur",UIG:"uig",UKR:"ukr",URD:"urd",UZB:"uzb",UZB_CYRL:"uzb_cyrl",VIE:"vie",YID:"yid"}},12191:(t,e,r)=>{"use strict";var n=r(41463);t.exports=t=>{let e={};return("u">typeof WorkerGlobalScope?e.type="webworker":"object"==typeof document?e.type="browser":"object"==typeof n&&(e.type="node"),void 0===t)?e:e[t]}},14486:(t,e,r)=>{"use strict";let n="browser"===r(12191)("type")?t=>new URL(t,window.location.href).href:t=>t;t.exports=t=>{let e={...t};return["corePath","workerPath","langPath"].forEach(r=>{t[r]&&(e[r]=n(e[r]))}),e}},21881:function(t,e,r){"use strict";let n=r(88499),{log:o}=r(57956),a=r(24939),i=0;t.exports=()=>{let t=a("Scheduler",i),e={},r={},s=[];i+=1;let c=()=>Object.keys(e).length,l=()=>{if(0!==s.length){let t=Object.keys(e);for(let n=0;n<t.length;n+=1)if(void 0===r[t[n]]){s[0](e[t[n]]);break}}},u=(e,a)=>new Promise((i,c)=>{let u=n({action:e,payload:a});s.push(async t=>{s.shift(),r[t.id]=u;try{i(await t[e].apply(this,[...a,u.id]))}catch(t){c(t)}finally{delete r[t.id],l()}}),o(`[${t}]: Add ${u.id} to JobQueue`),o(`[${t}]: JobQueue length=${s.length}`),l()});return{addWorker:r=>(e[r.id]=r,o(`[${t}]: Add ${r.id}`),o(`[${t}]: Number of workers=${c()}`),l(),r.id),addJob:async(e,...r)=>{if(0===c())throw Error(`[${t}]: You need to have at least one worker before adding jobs`);return u(e,r)},terminate:async()=>{Object.keys(e).forEach(async t=>{await e[t].terminate()}),s=[]},getQueueLen:()=>s.length,getNumWorkers:c}}},23451:t=>{"use strict";t.exports={workerBlobURL:!0,logger:()=>{}}},24738:(t,e,r)=>{"use strict";let n=r(46406);t.exports={recognize:async(t,e,r)=>{let o=await n(e,1,r);return o.recognize(t).finally(async()=>{await o.terminate()})},detect:async(t,e)=>{let r=await n("osd",0,e);return r.detect(t).finally(async()=>{await r.terminate()})}}},24939:t=>{"use strict";t.exports=(t,e)=>`${t}-${e}-${Math.random().toString(16).slice(3,8)}`},25431:t=>{"use strict";let e=t=>new Promise((e,r)=>{let n=new FileReader;n.onload=()=>{e(n.result)},n.onerror=({target:{error:{code:t}}})=>{r(Error(`File could not be read! Code=${t}`))},n.readAsArrayBuffer(t)}),r=async t=>{let n=t;if(void 0===t)return"undefined";if("string"==typeof t)if(/data:image\/([a-zA-Z]*);base64,([^"]*)/.test(t))n=atob(t.split(",")[1]).split("").map(t=>t.charCodeAt(0));else{let e=await fetch(t);n=await e.arrayBuffer()}else if("u">typeof HTMLElement&&t instanceof HTMLElement)"IMG"===t.tagName&&(n=await r(t.src)),"VIDEO"===t.tagName&&(n=await r(t.poster)),"CANVAS"===t.tagName&&await new Promise(r=>{t.toBlob(async t=>{n=await e(t),r()})});else if("u">typeof OffscreenCanvas&&t instanceof OffscreenCanvas){let r=await t.convertToBlob();n=await e(r)}else(t instanceof File||t instanceof Blob)&&(n=await e(t));return new Uint8Array(n)};t.exports=r},46406:(t,e,r)=>{"use strict";let n=r(14486),o=r(88499),{log:a}=r(57956),i=r(24939),s=r(68409),{defaultOptions:c,spawnWorker:l,terminateWorker:u,onMessage:h,loadImage:f,send:d}=r(95534),p=0;t.exports=async(t="eng",e=s.LSTM_ONLY,r={},y={})=>{let g,m,w=i("Worker",p),{logger:v,errorHandler:L,...b}=n({...c,...r}),E={},S="string"==typeof t?t.split("+"):t,_=e,A=y,T=[s.DEFAULT,s.LSTM_ONLY].includes(e)&&!b.legacyCore,O=new Promise((t,e)=>{m=t,g=e}),N=l(b);N.onerror=t=>{g(t.message)},p+=1;let x=({id:t,action:e,payload:r})=>new Promise((n,o)=>{a(`[${w}]: Start ${t}, action=${e}`),E[`${e}-${t}`]={resolve:n,reject:o},d(N,{workerId:w,jobId:t,action:e,payload:r})}),R=(t,e)=>x(o({id:e,action:"loadLanguage",payload:{langs:t,options:{langPath:b.langPath,dataPath:b.dataPath,cachePath:b.cachePath,cacheMethod:b.cacheMethod,gzip:b.gzip,lstmOnly:[s.DEFAULT,s.LSTM_ONLY].includes(_)&&!b.legacyLang}}})),k=(t,e,r,n)=>x(o({id:n,action:"initialize",payload:{langs:t,oem:e,config:r}})),I=async(t,e={},r={text:!0},n)=>x(o({id:n,action:"recognize",payload:{image:await f(t),options:e,output:r}})),P=async(t,e)=>{if(T)throw Error("`worker.detect` requires Legacy model, which was not loaded.");return x(o({id:e,action:"detect",payload:{image:await f(t)}}))},C=async()=>(null!==N&&(u(N),N=null),Promise.resolve());h(N,({workerId:t,jobId:e,status:r,action:n,data:o})=>{let i=`${n}-${e}`;if("resolve"===r)a(`[${t}]: Complete ${e}`),E[i].resolve({jobId:e,data:o}),delete E[i];else if("reject"===r)if(E[i].reject(o),delete E[i],"load"===n&&g(o),L)L(o);else throw Error(o);else"progress"===r&&v({...o,userJobId:e})});let M={id:w,worker:N,load:()=>console.warn("`load` is depreciated and should be removed from code (workers now come pre-loaded)"),writeText:(t,e,r)=>x(o({id:r,action:"FS",payload:{method:"writeFile",args:[t,e]}})),readText:(t,e)=>x(o({id:e,action:"FS",payload:{method:"readFile",args:[t,{encoding:"utf8"}]}})),removeFile:(t,e)=>x(o({id:e,action:"FS",payload:{method:"unlink",args:[t]}})),FS:(t,e,r)=>x(o({id:r,action:"FS",payload:{method:t,args:e}})),reinitialize:(t="eng",e,r,n)=>{if(T&&[s.TESSERACT_ONLY,s.TESSERACT_LSTM_COMBINED].includes(e))throw Error("Legacy model requested but code missing.");let o=e||_;_=o;let a=r||A;A=a;let i=("string"==typeof t?t.split("+"):t).filter(t=>!S.includes(t));return(S.push(...i),i.length>0)?R(i,n).then(()=>k(t,o,a,n)):k(t,o,a,n)},setParameters:(t={},e)=>x(o({id:e,action:"setParameters",payload:{params:t}})),recognize:I,detect:P,terminate:C};return x(o({id:void 0,action:"load",payload:{options:{lstmOnly:T,corePath:b.corePath,logging:b.logging}}})).then(()=>R(t)).then(()=>k(t,e,y)).then(()=>m(M)).catch(()=>{}),O}},49525:t=>{"use strict";
1t.exports=(t,e)=>{t.onmessage=({data:t})=>{e(t)}}},54558:t=>{"use strict";t.exports={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",CIRCLE_WORD:"9",SINGLE_CHAR:"10",SPARSE_TEXT:"11",SPARSE_TEXT_OSD:"12",RAW_LINE:"13"}},54560:t=>{"use strict";t.exports={rE:"7.0.0"}},57083:t=>{"use strict";t.exports=t=>{t.terminate()}},57956:function(t,e){"use strict";let r=!1;e.logging=!1,e.setLogging=t=>{r=t},e.log=(...t)=>r?console.log.apply(this,t):null},68409:t=>{"use strict";t.exports={TESSERACT_ONLY:0,LSTM_ONLY:1,TESSERACT_LSTM_COMBINED:2,DEFAULT:3}},70235:t=>{"use strict";t.exports=({workerPath:t,workerBlobURL:e})=>{let r;if(Blob&&URL&&e){let e=new Blob([`importScripts("${t}");`],{type:"application/javascript"});r=new Worker(URL.createObjectURL(e))}else r=new Worker(t);return r}},73312:(t,e,r)=>{"use strict";r(74591);let n=r(21881),o=r(46406),a=r(24738),i=r(11301),s=r(68409),c=r(54558),{setLogging:l}=r(57956);t.exports={languages:i,OEM:s,PSM:c,createScheduler:n,createWorker:o,setLogging:l,...a}},74591:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,r,n,a){var i,s,c,l,u=Object.create((r&&r.prototype instanceof g?r:g).prototype);return o(u,"_invoke",{value:(i=t,s=n,c=new O(a||[]),l=f,function(t,r){if(l===d)throw Error("Generator is already running");if(l===p){if("throw"===t)throw r;return x()}for(c.method=t,c.arg=r;;){var n=c.delegate;if(n){var o=function t(r,n){var o=n.method,a=r.iterator[o];if(e===a)return(n.delegate=null,"throw"===o&&r.iterator.return&&(n.method="return",n.arg=e,t(r,n),"throw"===n.method))?y:("return"!==o&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+o+"' method")),y);var i=h(a,r.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var s=i.arg;return s?s.done?(n[r.resultName]=s.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):s:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,y)}(n,c);if(o){if(o===y)continue;return o}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===f)throw l=p,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=d;var a=h(i,s,c);if("normal"===a.type){if(l=c.done?p:"suspendedYield",a.arg===y)continue;return{value:a.arg,done:c.done}}"throw"===a.type&&(l=p,c.method="throw",c.arg=a.arg)}})}),u}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",d="executing",p="completed",y={};function g(){}function m(){}function w(){}var v={};l(v,i,function(){return this});var L=Object.getPrototypeOf,b=L&&L(L(N([])));b&&b!==r&&n.call(b,i)&&(v=b);var E=w.prototype=g.prototype=Object.create(v);function S(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function _(t,e){var r;o(this,"_invoke",{value:function(o,a){function i(){return new e(function(r,i){!function r(o,a,i,s){var c=h(t[o],t,a);if("throw"===c.type)s(c.arg);else{var l=c.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?e.resolve(u.__await).then(function(t){r("next",t,i,s)},function(t){r("throw",t,i,s)}):e.resolve(u).then(function(t){l.value=t,i(l)},function(t){return r("throw",t,i,s)})}}(o,a,r,i)})}return r=r?r.then(i,i):i()}})}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function N(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:x}}function x(){return{value:e,done:!0}}return m.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=l(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},S(_.prototype),l(_.prototype,s,function(){return this}),t.AsyncIterator=_,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new _(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},S(E),l(E,c,"Generator"),l(E,i,function(){return this}),l(E,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
1h(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);else if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else if(l){if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else throw Error("try statement without catch or finally")}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return(i.type=t,i.arg=e,a)?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},75132:t=>{"use strict";t.exports=async(t,e)=>{t.postMessage(e)}},87579:(t,e,r)=>{"use strict";let n=r(54560).rE;t.exports={...r(23451),workerPath:`https://cdn.jsdelivr.net/npm/tesseract.js@v${n}/dist/worker.min.js`}},88499:(t,e,r)=>{"use strict";let n=r(24939),o=0;t.exports=({id:t,action:e,payload:r={}})=>{let a=t;return void 0===a&&(a=n("Job",o),o+=1),{id:a,action:e,payload:r}}},95534:(t,e,r)=>{"use strict";let n=r(87579),o=r(70235),a=r(57083),i=r(49525);t.exports={defaultOptions:n,spawnWorker:o,terminateWorker:a,onMessage:i,send:r(75132),loadImage:r(25431)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.