scanbot-web-sdk 7.0.0-dev.2 → 7.0.0-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/@types/barcode-scanner-view.d.ts +6 -6
  2. package/@types/core-types.d.ts +28 -28
  3. package/@types/cropping-view.d.ts +2 -2
  4. package/@types/document-data-extractor-view.d.ts +3 -3
  5. package/@types/document-scanner-view.d.ts +6 -6
  6. package/@types/index.d.ts +7 -33
  7. package/@types/model/barcode/barcode-result.d.ts +3 -7
  8. package/@types/model/barcode/barcode.d.ts +4 -4
  9. package/@types/model/configuration/{barcode-scanner-configuration.d.ts → barcode-scanner-view-configuration.d.ts} +5 -5
  10. package/@types/model/configuration/document-data-extractor-view-configuration.d.ts +9 -0
  11. package/@types/model/configuration/{document-scanner-configuration.d.ts → document-scanner-view-configuration.d.ts} +7 -7
  12. package/@types/model/configuration/{mrz-scanner-configuration.d.ts → mrz-scanner-view-configuration.d.ts} +6 -6
  13. package/@types/model/configuration/selection-overlay-configuration.d.ts +2 -2
  14. package/@types/model/configuration/text-pattern-scanner-view-configuration.d.ts +9 -0
  15. package/@types/model/configuration/vin-scanner-view-configuration.d.ts +9 -0
  16. package/@types/mrz-scanner-view.d.ts +3 -3
  17. package/@types/scanbot-sdk.d.ts +77 -77
  18. package/@types/service/document-data-extractor.d.ts +2 -2
  19. package/@types/service/document-quality-analyzer.d.ts +2 -2
  20. package/@types/service/ocr-engine.d.ts +3 -3
  21. package/@types/service/simple-mrz-recognizer.d.ts +3 -3
  22. package/@types/service/text-pattern-scanner.d.ts +3 -3
  23. package/@types/service/tiff-generator.d.ts +2 -2
  24. package/@types/service/vin-scanner.d.ts +3 -3
  25. package/@types/ui2/barcode/controllers/barcode-scanner-controller.d.ts +2 -2
  26. package/@types/ui2/barcode/controllers/multiple-scanning-mode-controller.d.ts +2 -2
  27. package/@types/ui2/barcode/controllers/single-scanning-mode-controller.d.ts +2 -2
  28. package/@types/ui2/barcode/utils/camera-config.d.ts +1 -1
  29. package/@types/ui2/barcode/utils/styled-button.d.ts +1 -1
  30. package/@types/ui2/barcode/views/action-button/action-button-container.d.ts +2 -2
  31. package/@types/ui2/barcode/views/action-button/action-button.d.ts +1 -1
  32. package/@types/ui2/barcode/views/barcode-scanner.d.ts +3 -3
  33. package/@types/ui2/barcode/views/camera-permission-denied.d.ts +1 -1
  34. package/@types/ui2/barcode/views/drawer/subviews/drawer-header-content.d.ts +1 -1
  35. package/@types/ui2/barcode/views/form/dialog-button.d.ts +0 -1
  36. package/@types/ui2/barcode/views/navigation-bar.d.ts +1 -1
  37. package/@types/ui2/configuration/BarcodeItemMapper.d.ts +6 -0
  38. package/@types/ui2/configuration/BarcodeScannerTypes.d.ts +2 -0
  39. package/@types/ui2/configuration/BarcodeTypes.d.ts +1 -0
  40. package/@types/ui2/configuration/CommonFieldType.d.ts +1 -0
  41. package/@types/ui2/configuration/GenericDocument.d.ts +1 -0
  42. package/@types/ui2/configuration/Geometry.d.ts +1 -1
  43. package/@types/ui2/configuration/barcode/ArTrackingOverlayConfiguration.d.ts +3 -24
  44. package/@types/ui2/configuration/barcode/BarcodeInfoMapping.d.ts +3 -3
  45. package/@types/ui2/configuration/barcode/BarcodeRecognizerConfiguration.d.ts +6 -13
  46. package/@types/ui2/configuration/barcode/BarcodeScannerConfiguration.d.ts +13 -13
  47. package/@types/ui2/configuration/barcode/BarcodeScannerUIResult.d.ts +8 -8
  48. package/@types/ui2/configuration/barcode/BarcodeUseCase.d.ts +3 -3
  49. package/@types/ui2/configuration/barcode/FindAndPickScanningModeUseCase.d.ts +8 -6
  50. package/@types/ui2/configuration/barcode/MultipleScanningModeUseCase.d.ts +11 -6
  51. package/@types/ui2/configuration/barcode/SingleScanningModeUseCase.d.ts +4 -4
  52. package/@types/ui2/configuration.d.ts +12 -20
  53. package/@types/ui2/document/model/sb-document.d.ts +3 -3
  54. package/@types/ui2/document/views/camera-screen/use-document-scanner-view.d.ts +1 -1
  55. package/@types/ui2/document/views/camera-screen/user-guidance-text.d.ts +1 -1
  56. package/@types/ui2/scanbot-sdk-ui.d.ts +2 -2
  57. package/@types/utils/barcode-utils.d.ts +2 -2
  58. package/@types/view/action-bar/bottom-action-bar.d.ts +2 -2
  59. package/@types/view/barcode-calculation/barcode-calculation-popup-list.d.ts +2 -2
  60. package/@types/view/barcode-calculation/barcode-calculation-popup.d.ts +4 -4
  61. package/@types/view/barcode-polygon/animated-barcode-selection-overlay.d.ts +5 -5
  62. package/@types/view/barcode-polygon/barcode-overlay.d.ts +3 -3
  63. package/@types/view/barcode-polygon/barcode-polygon-label.d.ts +2 -2
  64. package/@types/view/document-outline.d.ts +1 -1
  65. package/@types/view/polygon/animated-document-polygon.d.ts +1 -1
  66. package/@types/view/polygon/animated-path.d.ts +1 -1
  67. package/@types/worker/worker-bridge.d.ts +98 -98
  68. package/bundle/ScanbotSDK.min.js +4 -4
  69. package/bundle/ScanbotSDK.ui2.min.js +16 -16
  70. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  71. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  72. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  73. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
  74. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  75. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
  76. package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
  77. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
  78. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  79. package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
  80. package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
  81. package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
  82. package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
  83. package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
  84. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  85. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  86. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  87. package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
  88. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  89. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
  90. package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
  91. package/package.json +1 -1
  92. package/@types/model/configuration/document-data-extractor-configuration.d.ts +0 -9
  93. package/@types/model/configuration/text-pattern-scanner-configuration.d.ts +0 -9
  94. package/@types/model/configuration/vin-scanner-configuration.d.ts +0 -9
  95. package/@types/ui2/configuration/barcode/ActionBarConfiguration.d.ts +0 -42
  96. package/@types/ui2/configuration/barcode/BarcodeItemMapper.d.ts +0 -6
  97. package/@types/ui2/configuration/barcode/BarcodeScannerTypes.d.ts +0 -2
  98. package/@types/ui2/configuration/barcode/BarcodeTypes.d.ts +0 -1
  99. package/@types/ui2/configuration/barcode/CameraConfiguration.d.ts +0 -60
  100. package/@types/ui2/configuration/barcode/CameraPermission.d.ts +0 -54
  101. package/@types/ui2/configuration/barcode/Common.d.ts +0 -359
  102. package/@types/ui2/configuration/barcode/CommonFieldType.d.ts +0 -1
  103. package/@types/ui2/configuration/barcode/GenericDocument.d.ts +0 -1
  104. package/@types/ui2/configuration/barcode/Geometry.d.ts +0 -1
  105. package/@types/ui2/configuration/barcode/ScanbotAlertDialog.d.ts +0 -49
  106. package/@types/ui2/configuration/barcode/TopBarConfiguration.d.ts +0 -55
  107. package/@types/ui2/configuration/barcode/UserGuidanceConfiguration.d.ts +0 -30
  108. package/@types/ui2/configuration/barcode/ViewFinderConfiguration.d.ts +0 -93
@@ -1 +1 @@
1
- !function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}([function(e,t,r){"use strict";(function(e){function i(e,t=!1){const r=[];if(t)return r;return function e(t){if(t)if(t.constructor===ImageData)r.push(t.data.buffer);else if(t.constructor===ArrayBuffer)r.push(t);else if(ArrayBuffer.isView(t))r.push(t.buffer);else if(Array.isArray(t))for(let r=0;r<t.length;++r)e(t[r]);else if(t.constructor===Object)for(const r in t)t.hasOwnProperty(r)&&e(t[r])}(e),r}function n(e){return e.startsWith("http:")||e.startsWith("https:")}function o(t){const{allowSimd:r=!0,allowThreads:i=!0}=t||{};let n="";if(r&&function(){try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))}catch(e){return!1}}()){n+="-simd";i&&function(){if("undefined"!=typeof e&&"undefined"!=typeof e.versions&&"undefined"!=typeof e.versions.node)return!1;if(/(iPad|iPhone|iPod)/g.test(navigator.userAgent))return!1;try{return(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]))}catch(e){return!1}}()&&(n+="-threads")}return n}r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return n})),r.d(t,"b",(function(){return o}))}).call(this,r(1))},function(e,t){var r,i,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var u,c=[],d=!1,l=-1;function m(){d&&u&&(d=!1,u.length?c=u.concat(c):l=-1,c.length&&h())}function h(){if(!d){var e=s(m);d=!0;for(var t=c.length;t;){for(u=c,c=[];++l<t;)u&&u[l].run();l=-1,t=c.length}u=null,d=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new f(e,t)),1!==c.length||d||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},function(e,t,r){"use strict";var i,n=(i="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e={}){function t(){return E.buffer!=A.buffer&&L(),A}function r(){return E.buffer!=A.buffer&&L(),D}function n(){return E.buffer!=A.buffer&&L(),k}function o(){return E.buffer!=A.buffer&&L(),Z}function a(){return E.buffer!=A.buffer&&L(),R}function s(){return E.buffer!=A.buffer&&L(),z}function u(){return E.buffer!=A.buffer&&L(),M}var c,d,l=e;l.ready=new Promise(((e,t)=>{c=e,d=t}));var m,h,f,p=Object.assign({},l),g="./this.program",v=(e,t)=>{throw t},y=l.ENVIRONMENT_IS_PTHREAD||!1,w="";function S(e){return l.locateFile?l.locateFile(e,w):w+e}w=self.location.href,i&&(w=i),w=0!==w.indexOf("blob:")?w.substr(0,w.replace(/[?#].*/,"").lastIndexOf("/")+1):"",m=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},f=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)},h=(e,t,r)=>{var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=()=>{200==i.status||0==i.status&&i.response?t(i.response):r()},i.onerror=r,i.send(null)};var b,F=l.print||console.log.bind(console),C=l.printErr||console.error.bind(console);Object.assign(l,p),p=null,l.arguments&&l.arguments,l.thisProgram&&(g=l.thisProgram),l.quit&&(v=l.quit),l.wasmBinary&&(b=l.wasmBinary);var E,_,x=l.noExitRuntime||!0;"object"!=typeof WebAssembly&&re("no native wasm support detected");var T,A,D,k,Z,R,z,P,M,W=!1;function O(e,t){e||re(t)}function L(){var e=E.buffer;l.HEAP8=A=new Int8Array(e),l.HEAP16=k=new Int16Array(e),l.HEAPU8=D=new Uint8Array(e),l.HEAPU16=Z=new Uint16Array(e),l.HEAP32=R=new Int32Array(e),l.HEAPU32=z=new Uint32Array(e),l.HEAPF32=P=new Float32Array(e),l.HEAPF64=M=new Float64Array(e)}var Q,N=l.INITIAL_MEMORY||67108864;if(O(N>=4194304,"INITIAL_MEMORY should be larger than STACK_SIZE, was "+N+"! (STACK_SIZE=4194304)"),y)E=l.wasmMemory;else if(l.wasmMemory)E=l.wasmMemory;else if(!((E=new WebAssembly.Memory({initial:N/65536,maximum:32768,shared:!0})).buffer instanceof SharedArrayBuffer))throw C("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),Error("bad memory");L(),N=E.buffer.byteLength;var B=[],I=[],$=[],j=0;function V(){return x||j>0}function H(){y||(l.noFSInit||_e.init.initialized||_e.init(),_e.ignorePermissions=!1,Se.init(),Re(I))}function U(e){B.unshift(e)}var G,Y,X,J=0,q=null,K=null;function ee(e){J++,l.monitorRunDependencies&&l.monitorRunDependencies(J)}function te(e){if(J--,l.monitorRunDependencies&&l.monitorRunDependencies(J),0==J&&(null!==q&&(clearInterval(q),q=null),K)){var t=K;K=null,t()}}function re(e){l.onAbort&&l.onAbort(e),C(e="Aborted("+e+")"),W=!0,T=1,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw d(t),t}function ie(e){return e.startsWith("data:application/octet-stream;base64,")}function ne(e){if(e==G&&b)return new Uint8Array(b);if(f)return f(e);throw"both async and sync fetching of the wasm failed"}function oe(e,t,r){return function(e){return b||"function"!=typeof fetch?Promise.resolve().then((()=>ne(e))):fetch(e,{credentials:"same-origin"}).then((t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((()=>ne(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(r,(e=>{C(`failed to asynchronously prepare wasm: ${e}`),re(e)}))}ie(G="ScanbotSDK.Asm-simd-threads.wasm")||(G=S(G));var ae={1378364:e=>si(function(){return this[xe(e)].toString()}.apply((0,eval)("(()=>this)()")))};function se(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var ue=e=>{e.terminate(),e.onmessage=e=>{}},ce=e=>{var t=Ze.pthreads[e];O(t),Ze.returnWorkerToPool(t)},de=e=>{var t=Ze.getNewWorker();if(!t)return 6;Ze.runningWorkers.push(t),Ze.pthreads[e.pthread_ptr]=t,t.pthread_ptr=e.pthread_ptr;var r={cmd:"run",start_routine:e.startRoutine,arg:e.arg,pthread_ptr:e.pthread_ptr};return t.postMessage(r,e.transferList),0},le={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,t)=>{for(var r=0,i=e.length-1;i>=0;i--){var n=e[i];"."===n?e.splice(i,1):".."===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=le.isAbs(e),r="/"===e.substr(-1);return(e=le.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=le.splitPath(e),r=t[0],i=t[1];return r||i?(i&&(i=i.substr(0,i.length-1)),r+i):"."},basename:e=>{if("/"===e)return"/";var t=(e=(e=le.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:function(){var e=Array.prototype.slice.call(arguments);return le.normalize(e.join("/"))},join2:(e,t)=>le.normalize(e+"/"+t)},me=e=>(me=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>(e.set(crypto.getRandomValues(new Uint8Array(e.byteLength))),e);re("initRandomDevice")})())(e),he={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var i=r>=0?arguments[r]:_e.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");if(!i)return"";e=i+"/"+e,t=le.isAbs(i)}return(t?"/":"")+(e=le.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))||"."},relative:(e,t)=>{function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=he.resolve(e).substr(1),t=he.resolve(t).substr(1);for(var i=r(e.split("/")),n=r(t.split("/")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var u=[];for(s=a;s<i.length;s++)u.push("..");return(u=u.concat(n.slice(a))).join("/")}},fe="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,pe=(e,t,r)=>{for(var i=t+r,n=t;e[n]&&!(n>=i);)++n;if(n-t>16&&e.buffer&&fe)return fe.decode(e.buffer instanceof SharedArrayBuffer?e.slice(t,n):e.subarray(t,n));for(var o="";t<n;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var u=63&e[t++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&e[t++])<65536)o+=String.fromCharCode(a);else{var c=a-65536;o+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o},ge=[],ve=e=>{for(var t=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);i<=127?t++:i<=2047?t+=2:i>=55296&&i<=57343?(t+=4,++r):t+=3}return t},ye=(e,t,r,i)=>{if(!(i>0))return 0;for(var n=r,o=r+i-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(r>=o)break;t[r++]=s}else if(s<=2047){if(r+1>=o)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=o)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-n};function we(e,t,r){var i=r>0?r:ve(e)+1,n=new Array(i),o=ye(e,n,0,n.length);return t&&(n.length=o),n}var Se={ttys:[],init(){},shutdown(){},register(e,t){Se.ttys[e]={input:[],output:[],ops:t},_e.registerDevice(e,Se.stream_ops)},stream_ops:{open(e){var t=Se.ttys[e.node.rdev];if(!t)throw new _e.ErrnoError(43);e.tty=t,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,t,r,i,n){if(!e.tty||!e.tty.ops.get_char)throw new _e.ErrnoError(60);for(var o=0,a=0;a<i;a++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new _e.ErrnoError(29)}if(void 0===s&&0===o)throw new _e.ErrnoError(6);if(null==s)break;o++,t[r+a]=s}return o&&(e.node.timestamp=Date.now()),o},write(e,t,r,i,n){if(!e.tty||!e.tty.ops.put_char)throw new _e.ErrnoError(60);try{for(var o=0;o<i;o++)e.tty.ops.put_char(e.tty,t[r+o])}catch(e){throw new _e.ErrnoError(29)}return i&&(e.node.timestamp=Date.now()),o}},default_tty_ops:{get_char:e=>(()=>{if(!ge.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e)return null;ge=we(e,!0)}return ge.shift()})(),put_char(e,t){null===t||10===t?(F(pe(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(F(pe(e.output,0)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,t,r)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,t){null===t||10===t?(C(pe(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(C(pe(e.output,0)),e.output=[])}}},be=e=>{e=((e,t)=>Math.ceil(e/t)*t)(e,65536);var t=Ci(65536,e);return t?((e,t)=>(r().fill(0,e,e+t),e))(t,e):0},Fe={ops_table:null,mount:e=>Fe.createNode(null,"/",16895,0),createNode(e,t,r,i){if(_e.isBlkdev(r)||_e.isFIFO(r))throw new _e.ErrnoError(63);Fe.ops_table||(Fe.ops_table={dir:{node:{getattr:Fe.node_ops.getattr,setattr:Fe.node_ops.setattr,lookup:Fe.node_ops.lookup,mknod:Fe.node_ops.mknod,rename:Fe.node_ops.rename,unlink:Fe.node_ops.unlink,rmdir:Fe.node_ops.rmdir,readdir:Fe.node_ops.readdir,symlink:Fe.node_ops.symlink},stream:{llseek:Fe.stream_ops.llseek}},file:{node:{getattr:Fe.node_ops.getattr,setattr:Fe.node_ops.setattr},stream:{llseek:Fe.stream_ops.llseek,read:Fe.stream_ops.read,write:Fe.stream_ops.write,allocate:Fe.stream_ops.allocate,mmap:Fe.stream_ops.mmap,msync:Fe.stream_ops.msync}},link:{node:{getattr:Fe.node_ops.getattr,setattr:Fe.node_ops.setattr,readlink:Fe.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Fe.node_ops.getattr,setattr:Fe.node_ops.setattr},stream:_e.chrdev_stream_ops}});var n=_e.createNode(e,t,r,i);return _e.isDir(n.mode)?(n.node_ops=Fe.ops_table.dir.node,n.stream_ops=Fe.ops_table.dir.stream,n.contents={}):_e.isFile(n.mode)?(n.node_ops=Fe.ops_table.file.node,n.stream_ops=Fe.ops_table.file.stream,n.usedBytes=0,n.contents=null):_e.isLink(n.mode)?(n.node_ops=Fe.ops_table.link.node,n.stream_ops=Fe.ops_table.link.stream):_e.isChrdev(n.mode)&&(n.node_ops=Fe.ops_table.chrdev.node,n.stream_ops=Fe.ops_table.chrdev.stream),n.timestamp=Date.now(),e&&(e.contents[t]=n,e.timestamp=n.timestamp),n},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var i=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(i.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr(e){var t={};return t.dev=_e.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,_e.isDir(e.mode)?t.size=4096:_e.isFile(e.mode)?t.size=e.usedBytes:_e.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&Fe.resizeFileStorage(e,t.size)},lookup(e,t){throw _e.genericErrors[44]},mknod:(e,t,r,i)=>Fe.createNode(e,t,r,i),rename(e,t,r){if(_e.isDir(e.mode)){var i;try{i=_e.lookupNode(t,r)}catch(e){}if(i)for(var n in i.contents)throw new _e.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},unlink(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir(e,t){var r=_e.lookupNode(e,t);for(var i in r.contents)throw new _e.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir(e){var t=[".",".."];for(var r in e.contents)e.contents.hasOwnProperty(r)&&t.push(r);return t},symlink(e,t,r){var i=Fe.createNode(e,t,41471,0);return i.link=r,i},readlink(e){if(!_e.isLink(e.mode))throw new _e.ErrnoError(28);return e.link}},stream_ops:{read(e,t,r,i,n){var o=e.node.contents;if(n>=e.node.usedBytes)return 0;var a=Math.min(e.node.usedBytes-n,i);if(a>8&&o.subarray)t.set(o.subarray(n,n+a),r);else for(var s=0;s<a;s++)t[r+s]=o[n+s];return a},write(e,r,i,n,o,a){if(r.buffer===t().buffer&&(a=!1),!n)return 0;var s=e.node;if(s.timestamp=Date.now(),r.subarray&&(!s.contents||s.contents.subarray)){if(a)return s.contents=r.subarray(i,i+n),s.usedBytes=n,n;if(0===s.usedBytes&&0===o)return s.contents=r.slice(i,i+n),s.usedBytes=n,n;if(o+n<=s.usedBytes)return s.contents.set(r.subarray(i,i+n),o),n}if(Fe.expandFileStorage(s,o+n),s.contents.subarray&&r.subarray)s.contents.set(r.subarray(i,i+n),o);else for(var u=0;u<n;u++)s.contents[o+u]=r[i+u];return s.usedBytes=Math.max(s.usedBytes,o+n),n},llseek(e,t,r){var i=t;if(1===r?i+=e.position:2===r&&_e.isFile(e.node.mode)&&(i+=e.node.usedBytes),i<0)throw new _e.ErrnoError(28);return i},allocate(e,t,r){Fe.expandFileStorage(e.node,t+r),e.node.usedBytes=Math.max(e.node.usedBytes,t+r)},mmap(e,r,i,n,o){if(!_e.isFile(e.node.mode))throw new _e.ErrnoError(43);var a,s,u=e.node.contents;if(2&o||u.buffer!==t().buffer){if((i>0||i+r<u.length)&&(u=u.subarray?u.subarray(i,i+r):Array.prototype.slice.call(u,i,i+r)),s=!0,!(a=be(r)))throw new _e.ErrnoError(48);t().set(u,a)}else s=!1,a=u.byteOffset;return{ptr:a,allocated:s}},msync:(e,t,r,i,n)=>(Fe.stream_ops.write(e,t,0,i,r,!1),0)}},Ce=l.preloadPlugins||[],Ee=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},_e={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(e,t={}){if(!(e=he.resolve(e)))return{path:"",node:null};if((t=Object.assign({follow_mount:!0,recurse_count:0},t)).recurse_count>8)throw new _e.ErrnoError(32);for(var r=e.split("/").filter((e=>!!e)),i=_e.root,n="/",o=0;o<r.length;o++){var a=o===r.length-1;if(a&&t.parent)break;if(i=_e.lookupNode(i,r[o]),n=le.join2(n,r[o]),_e.isMountpoint(i)&&(!a||a&&t.follow_mount)&&(i=i.mounted.root),!a||t.follow)for(var s=0;_e.isLink(i.mode);){var u=_e.readlink(n);if(n=he.resolve(le.dirname(n),u),i=_e.lookupPath(n,{recurse_count:t.recurse_count+1}).node,s++>40)throw new _e.ErrnoError(32)}}return{path:n,node:i}},getPath(e){for(var t;;){if(_e.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?`${r}/${t}`:r+t:r}t=t?`${e.name}/${t}`:e.name,e=e.parent}},hashName(e,t){for(var r=0,i=0;i<t.length;i++)r=(r<<5)-r+t.charCodeAt(i)|0;return(e+r>>>0)%_e.nameTable.length},hashAddNode(e){var t=_e.hashName(e.parent.id,e.name);e.name_next=_e.nameTable[t],_e.nameTable[t]=e},hashRemoveNode(e){var t=_e.hashName(e.parent.id,e.name);if(_e.nameTable[t]===e)_e.nameTable[t]=e.name_next;else for(var r=_e.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode(e,t){var r=_e.mayLookup(e);if(r)throw new _e.ErrnoError(r,e);for(var i=_e.hashName(e.id,t),n=_e.nameTable[i];n;n=n.name_next){var o=n.name;if(n.parent.id===e.id&&o===t)return n}return _e.lookup(e,t)},createNode(e,t,r,i){var n=new _e.FSNode(e,t,r,i);return _e.hashAddNode(n),n},destroyNode(e){_e.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagsToPermissionString(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>_e.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2,mayLookup(e){var t=_e.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:2)},mayCreate(e,t){try{return _e.lookupNode(e,t),20}catch(e){}return _e.nodePermissions(e,"wx")},mayDelete(e,t,r){var i;try{i=_e.lookupNode(e,t)}catch(e){return e.errno}var n=_e.nodePermissions(e,"wx");if(n)return n;if(r){if(!_e.isDir(i.mode))return 54;if(_e.isRoot(i)||_e.getPath(i)===_e.cwd())return 10}else if(_e.isDir(i.mode))return 31;return 0},mayOpen:(e,t)=>e?_e.isLink(e.mode)?32:_e.isDir(e.mode)&&("r"!==_e.flagsToPermissionString(t)||512&t)?31:_e.nodePermissions(e,_e.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=_e.MAX_OPEN_FDS;e++)if(!_e.streams[e])return e;throw new _e.ErrnoError(33)},getStreamChecked(e){var t=_e.getStream(e);if(!t)throw new _e.ErrnoError(8);return t},getStream:e=>_e.streams[e],createStream:(e,t=-1)=>(_e.FSStream||(_e.FSStream=function(){this.shared={}},_e.FSStream.prototype={},Object.defineProperties(_e.FSStream.prototype,{object:{get(){return this.node},set(e){this.node=e}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return 0!=(2097155&this.flags)}},isAppend:{get(){return 1024&this.flags}},flags:{get(){return this.shared.flags},set(e){this.shared.flags=e}},position:{get(){return this.shared.position},set(e){this.shared.position=e}}})),e=Object.assign(new _e.FSStream,e),-1==t&&(t=_e.nextfd()),e.fd=t,_e.streams[t]=e,e),closeStream(e){_e.streams[e]=null},chrdev_stream_ops:{open(e){var t=_e.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new _e.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice(e,t){_e.devices[e]={stream_ops:t}},getDevice:e=>_e.devices[e],getMounts(e){for(var t=[],r=[e];r.length;){var i=r.pop();t.push(i),r.push.apply(r,i.mounts)}return t},syncfs(e,t){"function"==typeof e&&(t=e,e=!1),_e.syncFSRequests++,_e.syncFSRequests>1&&C(`warning: ${_e.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var r=_e.getMounts(_e.root.mount),i=0;function n(e){return _e.syncFSRequests--,t(e)}function o(e){if(e)return o.errored?void 0:(o.errored=!0,n(e));++i>=r.length&&n(null)}r.forEach((t=>{if(!t.type.syncfs)return o(null);t.type.syncfs(t,e,o)}))},mount(e,t,r){var i,n="/"===r,o=!r;if(n&&_e.root)throw new _e.ErrnoError(10);if(!n&&!o){var a=_e.lookupPath(r,{follow_mount:!1});if(r=a.path,i=a.node,_e.isMountpoint(i))throw new _e.ErrnoError(10);if(!_e.isDir(i.mode))throw new _e.ErrnoError(54)}var s={type:e,opts:t,mountpoint:r,mounts:[]},u=e.mount(s);return u.mount=s,s.root=u,n?_e.root=u:i&&(i.mounted=s,i.mount&&i.mount.mounts.push(s)),u},unmount(e){var t=_e.lookupPath(e,{follow_mount:!1});if(!_e.isMountpoint(t.node))throw new _e.ErrnoError(28);var r=t.node,i=r.mounted,n=_e.getMounts(i);Object.keys(_e.nameTable).forEach((e=>{for(var t=_e.nameTable[e];t;){var r=t.name_next;n.includes(t.mount)&&_e.destroyNode(t),t=r}})),r.mounted=null;var o=r.mount.mounts.indexOf(i);r.mount.mounts.splice(o,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod(e,t,r){var i=_e.lookupPath(e,{parent:!0}).node,n=le.basename(e);if(!n||"."===n||".."===n)throw new _e.ErrnoError(28);var o=_e.mayCreate(i,n);if(o)throw new _e.ErrnoError(o);if(!i.node_ops.mknod)throw new _e.ErrnoError(63);return i.node_ops.mknod(i,n,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,_e.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,_e.mknod(e,t,0)),mkdirTree(e,t){for(var r=e.split("/"),i="",n=0;n<r.length;++n)if(r[n]){i+="/"+r[n];try{_e.mkdir(i,t)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,t,r)=>("undefined"==typeof r&&(r=t,t=438),t|=8192,_e.mknod(e,t,r)),symlink(e,t){if(!he.resolve(e))throw new _e.ErrnoError(44);var r=_e.lookupPath(t,{parent:!0}).node;if(!r)throw new _e.ErrnoError(44);var i=le.basename(t),n=_e.mayCreate(r,i);if(n)throw new _e.ErrnoError(n);if(!r.node_ops.symlink)throw new _e.ErrnoError(63);return r.node_ops.symlink(r,i,e)},rename(e,t){var r,i,n=le.dirname(e),o=le.dirname(t),a=le.basename(e),s=le.basename(t);if(r=_e.lookupPath(e,{parent:!0}).node,i=_e.lookupPath(t,{parent:!0}).node,!r||!i)throw new _e.ErrnoError(44);if(r.mount!==i.mount)throw new _e.ErrnoError(75);var u,c=_e.lookupNode(r,a),d=he.relative(e,o);if("."!==d.charAt(0))throw new _e.ErrnoError(28);if("."!==(d=he.relative(t,n)).charAt(0))throw new _e.ErrnoError(55);try{u=_e.lookupNode(i,s)}catch(e){}if(c!==u){var l=_e.isDir(c.mode),m=_e.mayDelete(r,a,l);if(m)throw new _e.ErrnoError(m);if(m=u?_e.mayDelete(i,s,l):_e.mayCreate(i,s))throw new _e.ErrnoError(m);if(!r.node_ops.rename)throw new _e.ErrnoError(63);if(_e.isMountpoint(c)||u&&_e.isMountpoint(u))throw new _e.ErrnoError(10);if(i!==r&&(m=_e.nodePermissions(r,"w")))throw new _e.ErrnoError(m);_e.hashRemoveNode(c);try{r.node_ops.rename(c,i,s)}catch(e){throw e}finally{_e.hashAddNode(c)}}},rmdir(e){var t=_e.lookupPath(e,{parent:!0}).node,r=le.basename(e),i=_e.lookupNode(t,r),n=_e.mayDelete(t,r,!0);if(n)throw new _e.ErrnoError(n);if(!t.node_ops.rmdir)throw new _e.ErrnoError(63);if(_e.isMountpoint(i))throw new _e.ErrnoError(10);t.node_ops.rmdir(t,r),_e.destroyNode(i)},readdir(e){var t=_e.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new _e.ErrnoError(54);return t.node_ops.readdir(t)},unlink(e){var t=_e.lookupPath(e,{parent:!0}).node;if(!t)throw new _e.ErrnoError(44);var r=le.basename(e),i=_e.lookupNode(t,r),n=_e.mayDelete(t,r,!1);if(n)throw new _e.ErrnoError(n);if(!t.node_ops.unlink)throw new _e.ErrnoError(63);if(_e.isMountpoint(i))throw new _e.ErrnoError(10);t.node_ops.unlink(t,r),_e.destroyNode(i)},readlink(e){var t=_e.lookupPath(e).node;if(!t)throw new _e.ErrnoError(44);if(!t.node_ops.readlink)throw new _e.ErrnoError(28);return he.resolve(_e.getPath(t.parent),t.node_ops.readlink(t))},stat(e,t){var r=_e.lookupPath(e,{follow:!t}).node;if(!r)throw new _e.ErrnoError(44);if(!r.node_ops.getattr)throw new _e.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>_e.stat(e,!0),chmod(e,t,r){var i;if(!(i="string"==typeof e?_e.lookupPath(e,{follow:!r}).node:e).node_ops.setattr)throw new _e.ErrnoError(63);i.node_ops.setattr(i,{mode:4095&t|-4096&i.mode,timestamp:Date.now()})},lchmod(e,t){_e.chmod(e,t,!0)},fchmod(e,t){var r=_e.getStreamChecked(e);_e.chmod(r.node,t)},chown(e,t,r,i){var n;if(!(n="string"==typeof e?_e.lookupPath(e,{follow:!i}).node:e).node_ops.setattr)throw new _e.ErrnoError(63);n.node_ops.setattr(n,{timestamp:Date.now()})},lchown(e,t,r){_e.chown(e,t,r,!0)},fchown(e,t,r){var i=_e.getStreamChecked(e);_e.chown(i.node,t,r)},truncate(e,t){if(t<0)throw new _e.ErrnoError(28);var r;if(!(r="string"==typeof e?_e.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new _e.ErrnoError(63);if(_e.isDir(r.mode))throw new _e.ErrnoError(31);if(!_e.isFile(r.mode))throw new _e.ErrnoError(28);var i=_e.nodePermissions(r,"w");if(i)throw new _e.ErrnoError(i);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate(e,t){var r=_e.getStreamChecked(e);if(0==(2097155&r.flags))throw new _e.ErrnoError(28);_e.truncate(r.node,t)},utime(e,t,r){var i=_e.lookupPath(e,{follow:!0}).node;i.node_ops.setattr(i,{timestamp:Math.max(t,r)})},open(e,t,r){if(""===e)throw new _e.ErrnoError(44);var i;if(r="undefined"==typeof r?438:r,r=64&(t="string"==typeof t?(e=>{var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if("undefined"==typeof t)throw new Error(`Unknown file open mode: ${e}`);return t})(t):t)?4095&r|32768:0,"object"==typeof e)i=e;else{e=le.normalize(e);try{i=_e.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var n=!1;if(64&t)if(i){if(128&t)throw new _e.ErrnoError(20)}else i=_e.mknod(e,r,0),n=!0;if(!i)throw new _e.ErrnoError(44);if(_e.isChrdev(i.mode)&&(t&=-513),65536&t&&!_e.isDir(i.mode))throw new _e.ErrnoError(54);if(!n){var o=_e.mayOpen(i,t);if(o)throw new _e.ErrnoError(o)}512&t&&!n&&_e.truncate(i,0),t&=-131713;var a=_e.createStream({node:i,path:_e.getPath(i),flags:t,seekable:!0,position:0,stream_ops:i.stream_ops,ungotten:[],error:!1});return a.stream_ops.open&&a.stream_ops.open(a),!l.logReadFiles||1&t||(_e.readFiles||(_e.readFiles={}),e in _e.readFiles||(_e.readFiles[e]=1)),a},close(e){if(_e.isClosed(e))throw new _e.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{_e.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,t,r){if(_e.isClosed(e))throw new _e.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new _e.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new _e.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read(e,t,r,i,n){if(i<0||n<0)throw new _e.ErrnoError(28);if(_e.isClosed(e))throw new _e.ErrnoError(8);if(1==(2097155&e.flags))throw new _e.ErrnoError(8);if(_e.isDir(e.node.mode))throw new _e.ErrnoError(31);if(!e.stream_ops.read)throw new _e.ErrnoError(28);var o="undefined"!=typeof n;if(o){if(!e.seekable)throw new _e.ErrnoError(70)}else n=e.position;var a=e.stream_ops.read(e,t,r,i,n);return o||(e.position+=a),a},write(e,t,r,i,n,o){if(i<0||n<0)throw new _e.ErrnoError(28);if(_e.isClosed(e))throw new _e.ErrnoError(8);if(0==(2097155&e.flags))throw new _e.ErrnoError(8);if(_e.isDir(e.node.mode))throw new _e.ErrnoError(31);if(!e.stream_ops.write)throw new _e.ErrnoError(28);e.seekable&&1024&e.flags&&_e.llseek(e,0,2);var a="undefined"!=typeof n;if(a){if(!e.seekable)throw new _e.ErrnoError(70)}else n=e.position;var s=e.stream_ops.write(e,t,r,i,n,o);return a||(e.position+=s),s},allocate(e,t,r){if(_e.isClosed(e))throw new _e.ErrnoError(8);if(t<0||r<=0)throw new _e.ErrnoError(28);if(0==(2097155&e.flags))throw new _e.ErrnoError(8);if(!_e.isFile(e.node.mode)&&!_e.isDir(e.node.mode))throw new _e.ErrnoError(43);if(!e.stream_ops.allocate)throw new _e.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap(e,t,r,i,n){if(0!=(2&i)&&0==(2&n)&&2!=(2097155&e.flags))throw new _e.ErrnoError(2);if(1==(2097155&e.flags))throw new _e.ErrnoError(2);if(!e.stream_ops.mmap)throw new _e.ErrnoError(43);return e.stream_ops.mmap(e,t,r,i,n)},msync:(e,t,r,i,n)=>e.stream_ops.msync?e.stream_ops.msync(e,t,r,i,n):0,munmap:e=>0,ioctl(e,t,r){if(!e.stream_ops.ioctl)throw new _e.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile(e,t={}){if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error(`Invalid encoding type "${t.encoding}"`);var r,i=_e.open(e,t.flags),n=_e.stat(e).size,o=new Uint8Array(n);return _e.read(i,o,0,n,0),"utf8"===t.encoding?r=pe(o,0):"binary"===t.encoding&&(r=o),_e.close(i),r},writeFile(e,t,r={}){r.flags=r.flags||577;var i=_e.open(e,r.flags,r.mode);if("string"==typeof t){var n=new Uint8Array(ve(t)+1),o=ye(t,n,0,n.length);_e.write(i,n,0,o,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");_e.write(i,t,0,t.byteLength,void 0,r.canOwn)}_e.close(i)},cwd:()=>_e.currentPath,chdir(e){var t=_e.lookupPath(e,{follow:!0});if(null===t.node)throw new _e.ErrnoError(44);if(!_e.isDir(t.node.mode))throw new _e.ErrnoError(54);var r=_e.nodePermissions(t.node,"x");if(r)throw new _e.ErrnoError(r);_e.currentPath=t.path},createDefaultDirectories(){_e.mkdir("/tmp"),_e.mkdir("/home"),_e.mkdir("/home/web_user")},createDefaultDevices(){_e.mkdir("/dev"),_e.registerDevice(_e.makedev(1,3),{read:()=>0,write:(e,t,r,i,n)=>i}),_e.mkdev("/dev/null",_e.makedev(1,3)),Se.register(_e.makedev(5,0),Se.default_tty_ops),Se.register(_e.makedev(6,0),Se.default_tty1_ops),_e.mkdev("/dev/tty",_e.makedev(5,0)),_e.mkdev("/dev/tty1",_e.makedev(6,0));var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=me(e).byteLength),e[--t]);_e.createDevice("/dev","random",r),_e.createDevice("/dev","urandom",r),_e.mkdir("/dev/shm"),_e.mkdir("/dev/shm/tmp")},createSpecialDirectories(){_e.mkdir("/proc");var e=_e.mkdir("/proc/self");_e.mkdir("/proc/self/fd"),_e.mount({mount(){var t=_e.createNode(e,"fd",16895,73);return t.node_ops={lookup(e,t){var r=+t,i=_e.getStreamChecked(r),n={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>i.path}};return n.parent=n,n}},t}},{},"/proc/self/fd")},createStandardStreams(){l.stdin?_e.createDevice("/dev","stdin",l.stdin):_e.symlink("/dev/tty","/dev/stdin"),l.stdout?_e.createDevice("/dev","stdout",null,l.stdout):_e.symlink("/dev/tty","/dev/stdout"),l.stderr?_e.createDevice("/dev","stderr",null,l.stderr):_e.symlink("/dev/tty1","/dev/stderr"),_e.open("/dev/stdin",0),_e.open("/dev/stdout",1),_e.open("/dev/stderr",1)},ensureErrnoError(){_e.ErrnoError||(_e.ErrnoError=function(e,t){this.name="ErrnoError",this.node=t,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},_e.ErrnoError.prototype=new Error,_e.ErrnoError.prototype.constructor=_e.ErrnoError,[44].forEach((e=>{_e.genericErrors[e]=new _e.ErrnoError(e),_e.genericErrors[e].stack="<generic error, no stack>"})))},staticInit(){_e.ensureErrnoError(),_e.nameTable=new Array(4096),_e.mount(Fe,{},"/"),_e.createDefaultDirectories(),_e.createDefaultDevices(),_e.createSpecialDirectories(),_e.filesystems={MEMFS:Fe}},init(e,t,r){_e.init.initialized=!0,_e.ensureErrnoError(),l.stdin=e||l.stdin,l.stdout=t||l.stdout,l.stderr=r||l.stderr,_e.createStandardStreams()},quit(){_e.init.initialized=!1;for(var e=0;e<_e.streams.length;e++){var t=_e.streams[e];t&&_e.close(t)}},findObject(e,t){var r=_e.analyzePath(e,t);return r.exists?r.object:null},analyzePath(e,t){try{e=(i=_e.lookupPath(e,{follow:!t})).path}catch(e){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var i=_e.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=i.path,r.parentObject=i.node,r.name=le.basename(e),i=_e.lookupPath(e,{follow:!t}),r.exists=!0,r.path=i.path,r.object=i.node,r.name=i.node.name,r.isRoot="/"===i.path}catch(e){r.error=e.errno}return r},createPath(e,t,r,i){e="string"==typeof e?e:_e.getPath(e);for(var n=t.split("/").reverse();n.length;){var o=n.pop();if(o){var a=le.join2(e,o);try{_e.mkdir(a)}catch(e){}e=a}}return a},createFile(e,t,r,i,n){var o=le.join2("string"==typeof e?e:_e.getPath(e),t),a=Ee(i,n);return _e.create(o,a)},createDataFile(e,t,r,i,n,o){var a=t;e&&(e="string"==typeof e?e:_e.getPath(e),a=t?le.join2(e,t):e);var s=Ee(i,n),u=_e.create(a,s);if(r){if("string"==typeof r){for(var c=new Array(r.length),d=0,l=r.length;d<l;++d)c[d]=r.charCodeAt(d);r=c}_e.chmod(u,146|s);var m=_e.open(u,577);_e.write(m,r,0,r.length,0,o),_e.close(m),_e.chmod(u,s)}return u},createDevice(e,t,r,i){var n=le.join2("string"==typeof e?e:_e.getPath(e),t),o=Ee(!!r,!!i);_e.createDevice.major||(_e.createDevice.major=64);var a=_e.makedev(_e.createDevice.major++,0);return _e.registerDevice(a,{open(e){e.seekable=!1},close(e){i&&i.buffer&&i.buffer.length&&i(10)},read(e,t,i,n,o){for(var a=0,s=0;s<n;s++){var u;try{u=r()}catch(e){throw new _e.ErrnoError(29)}if(void 0===u&&0===a)throw new _e.ErrnoError(6);if(null==u)break;a++,t[i+s]=u}return a&&(e.node.timestamp=Date.now()),a},write(e,t,r,n,o){for(var a=0;a<n;a++)try{i(t[r+a])}catch(e){throw new _e.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),a}}),_e.mkdev(n,o,a)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!m)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=we(m(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new _e.ErrnoError(29)}},createLazyFile(e,r,i,n,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[t]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",i,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+i+". Status: "+e.status);var t,r=Number(e.getResponseHeader("Content-length")),n=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,o=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,a=1048576;n||(a=r);var s=this;s.setDataGetter((e=>{var t=e*a,n=(e+1)*a-1;if(n=Math.min(n,r-1),"undefined"==typeof s.chunks[e]&&(s.chunks[e]=((e,t)=>{if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>r-1)throw new Error("only "+r+" bytes available! programmer error!");var n=new XMLHttpRequest;if(n.open("GET",i,!1),r!==a&&n.setRequestHeader("Range","bytes="+e+"-"+t),n.responseType="arraybuffer",n.overrideMimeType&&n.overrideMimeType("text/plain; charset=x-user-defined"),n.send(null),!(n.status>=200&&n.status<300||304===n.status))throw new Error("Couldn't load "+i+". Status: "+n.status);return void 0!==n.response?new Uint8Array(n.response||[]):we(n.responseText||"",!0)})(t,n)),"undefined"==typeof s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!o&&r||(a=r=1,r=this.getter(0).length,a=r,F("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){var s=new a;Object.defineProperties(s,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var u={isDevice:!1,contents:s}}else u={isDevice:!1,url:i};var c=_e.createFile(e,r,u,n,o);u.contents?c.contents=u.contents:u.url&&(c.contents=null,c.url=u.url),Object.defineProperties(c,{usedBytes:{get:function(){return this.contents.length}}});var d={};function l(e,t,r,i,n){var o=e.node.contents;if(n>=o.length)return 0;var a=Math.min(o.length-n,i);if(o.slice)for(var s=0;s<a;s++)t[r+s]=o[n+s];else for(s=0;s<a;s++)t[r+s]=o.get(n+s);return a}return Object.keys(c.stream_ops).forEach((e=>{var t=c.stream_ops[e];d[e]=function(){return _e.forceLoadFile(c),t.apply(null,arguments)}})),d.read=(e,t,r,i,n)=>(_e.forceLoadFile(c),l(e,t,r,i,n)),d.mmap=(e,r,i,n,o)=>{_e.forceLoadFile(c);var a=be(r);if(!a)throw new _e.ErrnoError(48);return l(e,t(),a,r,i),{ptr:a,allocated:!0}},c.stream_ops=d,c}},xe=(e,t)=>e?pe(r(),e,t):"",Te={DEFAULT_POLLMASK:5,calculateAt(e,t,r){if(le.isAbs(t))return t;var i;if(i=-100===e?_e.cwd():Te.getStreamFromFD(e).path,0==t.length){if(!r)throw new _e.ErrnoError(44);return i}return le.join2(i,t)},doStat(e,t,r){try{var i=e(t)}catch(e){if(e&&e.node&&le.normalize(t)!==le.normalize(_e.getPath(e.node)))return-54;throw e}a()[r>>2]=i.dev,a()[r+4>>2]=i.mode,s()[r+8>>2]=i.nlink,a()[r+12>>2]=i.uid,a()[r+16>>2]=i.gid,a()[r+20>>2]=i.rdev,X=[i.size>>>0,(Y=i.size,+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],a()[r+24>>2]=X[0],a()[r+28>>2]=X[1],a()[r+32>>2]=4096,a()[r+36>>2]=i.blocks;var n=i.atime.getTime(),o=i.mtime.getTime(),u=i.ctime.getTime();return X=[Math.floor(n/1e3)>>>0,(Y=Math.floor(n/1e3),+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],a()[r+40>>2]=X[0],a()[r+44>>2]=X[1],s()[r+48>>2]=n%1e3*1e3,X=[Math.floor(o/1e3)>>>0,(Y=Math.floor(o/1e3),+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],a()[r+56>>2]=X[0],a()[r+60>>2]=X[1],s()[r+64>>2]=o%1e3*1e3,X=[Math.floor(u/1e3)>>>0,(Y=Math.floor(u/1e3),+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],a()[r+72>>2]=X[0],a()[r+76>>2]=X[1],s()[r+80>>2]=u%1e3*1e3,X=[i.ino>>>0,(Y=i.ino,+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],a()[r+88>>2]=X[0],a()[r+92>>2]=X[1],0},doMsync(e,t,i,n,o){if(!_e.isFile(t.node.mode))throw new _e.ErrnoError(43);if(2&n)return 0;var a=r().slice(e,e+i);_e.msync(t,a,o,i,n)},varargs:void 0,get(){var e=a()[Te.varargs>>2];return Te.varargs+=4,e},getp:()=>Te.get(),getStr:e=>xe(e),getStreamFromFD:e=>_e.getStreamChecked(e)};function Ae(e){if(y)return xr(0,1,e);T=e,V()||(Ze.terminateAllThreads(),l.onExit&&l.onExit(e),W=!0),v(e,new se(e))}var De=(e,t)=>{if(T=e,y)throw ze(e),"unwind";Ae(e)},ke=e=>{if(e instanceof se||"unwind"==e)return T;v(1,e)},Ze={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init(){y?Ze.initWorker():Ze.initMainThread()},initMainThread(){for(var e=Math.min(4,Math.max(1,navigator.hardwareConcurrency-1));e--;)Ze.allocateUnusedWorker();U((()=>{ee(),Ze.loadWasmModuleToAllWorkers((()=>te()))}))},initWorker(){x=!1},setExitStatus:e=>{T=e},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var e of Ze.runningWorkers)ue(e);for(var e of Ze.unusedWorkers)ue(e);Ze.unusedWorkers=[],Ze.runningWorkers=[],Ze.pthreads=[]},returnWorkerToPool:e=>{var t=e.pthread_ptr;delete Ze.pthreads[t],Ze.unusedWorkers.push(e),Ze.runningWorkers.splice(Ze.runningWorkers.indexOf(e),1),e.pthread_ptr=0,Ti(t)},receiveObjectTransfer(e){},threadInitTLS(){Ze.tlsInitFunctions.forEach((e=>e()))},loadWasmModuleToWorker:e=>new Promise((t=>{e.onmessage=r=>{var i=r.data,n=i.cmd;if(i.targetThread&&i.targetThread!=bi()){var o=Ze.pthreads[i.targetThread];o?o.postMessage(i,i.transferList):C(`Internal error! Worker sent a message "${n}" to target pthread ${i.targetThread}, but that thread no longer exists!`)}else{var a;"checkMailbox"===n?Er():"spawnThread"===n?de(i):"cleanupThread"===n?ce(i.thread):"killThread"===n?(e=>{var t=Ze.pthreads[e];delete Ze.pthreads[e],ue(t),Ti(e),Ze.runningWorkers.splice(Ze.runningWorkers.indexOf(t),1),t.pthread_ptr=0})(i.thread):"cancelThread"===n?(a=i.thread,Ze.pthreads[a].postMessage({cmd:"cancel"})):"loaded"===n?(e.loaded=!0,t(e)):"alert"===n?alert(`Thread ${i.threadId}: ${i.text}`):"setimmediate"===i.target?e.postMessage(i):"callHandler"===n?l[i.handler](...i.args):n&&C(`worker sent an unknown command ${n}`)}},e.onerror=e=>{throw C(`worker sent an error! ${e.filename}:${e.lineno}: ${e.message}`),e};var r=[];for(var n of["onExit","onAbort","print","printErr"])l.hasOwnProperty(n)&&r.push(n);e.postMessage({cmd:"load",handlers:r,urlOrBlob:l.mainScriptUrlOrBlob||i,wasmMemory:E,wasmModule:_})})),loadWasmModuleToAllWorkers(e){if(y)return e();Promise.all(Ze.unusedWorkers.map(Ze.loadWasmModuleToWorker)).then(e)},allocateUnusedWorker(){var e,t=S("ScanbotSDK.Asm-simd-threads.worker.js");e=new Worker(t),Ze.unusedWorkers.push(e)},getNewWorker:()=>(0==Ze.unusedWorkers.length&&(Ze.allocateUnusedWorker(),Ze.loadWasmModuleToWorker(Ze.unusedWorkers[0])),Ze.unusedWorkers.pop())};l.PThread=Ze;var Re=e=>{for(;e.length>0;)e.shift()(l)};function ze(e){if(y)return xr(1,0,e);De(e)}l.establishStackSpace=()=>{var e=bi(),t=a()[e+52>>2],r=a()[e+56>>2];Zi(t,t-r),zi(t)};var Pe=e=>Q.get(e);l.invokeEntryPoint=(e,t)=>{!function(e){V()?Ze.setExitStatus(e):Ai(e)}(Pe(e)(t))};var Me=e=>{Ze.tlsInitFunctions.push(e)},We=[],Oe=0,Le=0;function Qe(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){s()[this.ptr+4>>2]=e},this.get_type=function(){return s()[this.ptr+4>>2]},this.set_destructor=function(e){s()[this.ptr+8>>2]=e},this.get_destructor=function(){return s()[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,t()[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=t()[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,t()[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=t()[this.ptr+13>>0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)},this.set_adjusted_ptr=function(e){s()[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return s()[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Li(this.get_type()))return s()[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var Ne=e=>{var t=Le;if(!t)return Fi(0),0;var r=new Qe(t);r.set_adjusted_ptr(t);var i=r.get_type();if(!i)return Fi(0),t;for(var n in e){var o=e[n];if(0===o||o===i)break;var a=r.ptr+16;if(Oi(o,i,a))return Fi(o),t}return Fi(i),t},Be=()=>{var e=We.pop();e||re("no exception to throw");var t=e.excPtr;throw e.get_rethrown()||(We.push(e),e.set_rethrown(!0),e.set_caught(!1),Oe++),Le=t};function Ie(e,t,r,i){return y?xr(2,1,e,t,r,i):$e(e,t,r,i)}var $e=(e,t,r,i)=>{if("undefined"==typeof SharedArrayBuffer)return C("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var n=[];if(y&&0===n.length)return Ie(e,t,r,i);var o={startRoutine:r,pthread_ptr:e,arg:i,transferList:n};return y?(o.cmd="spawnThread",postMessage(o,n),0):de(o)};function je(e,t,r,i,n){if(y)return xr(3,1,e,t,r,i,n);try{for(var o=0,s=t?a()[t>>2]:0,u=t?a()[t+4>>2]:0,c=r?a()[r>>2]:0,d=r?a()[r+4>>2]:0,l=i?a()[i>>2]:0,m=i?a()[i+4>>2]:0,h=0,f=0,p=0,g=0,v=0,w=0,S=(t?a()[t>>2]:0)|(r?a()[r>>2]:0)|(i?a()[i>>2]:0),b=(t?a()[t+4>>2]:0)|(r?a()[r+4>>2]:0)|(i?a()[i+4>>2]:0),F=function(e,t,r,i){return e<32?t&i:r&i},C=0;C<e;C++){var E=1<<C%32;if(F(C,S,b,E)){var _=Te.getStreamFromFD(C),x=Te.DEFAULT_POLLMASK;if(_.stream_ops.poll){var T=-1;n&&(T=1e3*((t?a()[n>>2]:0)+(t?a()[n+8>>2]:0)/1e6)),x=_.stream_ops.poll(_,T)}1&x&&F(C,s,u,E)&&(C<32?h|=E:f|=E,o++),4&x&&F(C,c,d,E)&&(C<32?p|=E:g|=E,o++),2&x&&F(C,l,m,E)&&(C<32?v|=E:w|=E,o++)}}return t&&(a()[t>>2]=h,a()[t+4>>2]=f),r&&(a()[r>>2]=p,a()[r+4>>2]=g),i&&(a()[i>>2]=v,a()[i+4>>2]=w),o}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return-e.errno}}function Ve(e,t,r){if(y)return xr(4,1,e,t,r);Te.varargs=r;try{var i=Te.getStreamFromFD(e);switch(t){case 0:if((o=Te.get())<0)return-28;for(;_e.streams[o];)o++;return _e.createStream(i,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return i.flags;case 4:var o=Te.get();return i.flags|=o,0;case 5:return o=Te.getp(),n()[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return s=28,a()[Si()>>2]=s,-1}}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return-e.errno}var s}function He(e,t){if(y)return xr(5,1,e,t);try{var r=Te.getStreamFromFD(e);return Te.doStat(_e.stat,r.path,t)}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return-e.errno}}function Ue(e,r,i){if(y)return xr(6,1,e,r,i);Te.varargs=i;try{var o=Te.getStreamFromFD(e);switch(r){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return o.tty?0:-59;case 21505:if(!o.tty)return-59;if(o.tty.ops.ioctl_tcgets){var s=o.tty.ops.ioctl_tcgets(o),u=Te.getp();a()[u>>2]=s.c_iflag||0,a()[u+4>>2]=s.c_oflag||0,a()[u+8>>2]=s.c_cflag||0,a()[u+12>>2]=s.c_lflag||0;for(var c=0;c<32;c++)t()[u+c+17>>0]=s.c_cc[c]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!o.tty)return-59;if(o.tty.ops.ioctl_tcsets){u=Te.getp();var d=a()[u>>2],l=a()[u+4>>2],m=a()[u+8>>2],h=a()[u+12>>2],f=[];for(c=0;c<32;c++)f.push(t()[u+c+17>>0]);return o.tty.ops.ioctl_tcsets(o.tty,r,{c_iflag:d,c_oflag:l,c_cflag:m,c_lflag:h,c_cc:f})}return 0;case 21519:return o.tty?(u=Te.getp(),a()[u>>2]=0,0):-59;case 21520:return o.tty?-28:-59;case 21531:return u=Te.getp(),_e.ioctl(o,r,u);case 21523:if(!o.tty)return-59;if(o.tty.ops.ioctl_tiocgwinsz){var p=o.tty.ops.ioctl_tiocgwinsz(o.tty);u=Te.getp(),n()[u>>1]=p[0],n()[u+2>>1]=p[1]}return 0;default:return-28}}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return-e.errno}}function Ge(e,t,r,i){if(y)return xr(8,1,e,t,r,i);try{t=Te.getStr(t);var n=256&i,o=4096&i;return i&=-6401,t=Te.calculateAt(e,t,o),Te.doStat(n?_e.lstat:_e.stat,t,r)}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return-e.errno}}function Ye(e,t,r,i){if(y)return xr(9,1,e,t,r,i);Te.varargs=i;try{t=Te.getStr(t),t=Te.calculateAt(e,t);var n=i?Te.get():0;return _e.open(t,r,n).fd}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return-e.errno}}function Xe(e){if(y)return xr(10,1,e);try{return e=Te.getStr(e),_e.rmdir(e),0}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return-e.errno}}function Je(e,t){if(y)return xr(11,1,e,t);try{return e=Te.getStr(e),Te.doStat(_e.stat,e,t)}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return-e.errno}}function qe(e,t,r){if(y)return xr(12,1,e,t,r);try{return t=Te.getStr(t),t=Te.calculateAt(e,t),0===r?_e.unlink(t):512===r?_e.rmdir(t):re("Invalid flags passed to unlinkat"),0}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return-e.errno}}var Ke={},et=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function tt(e){return this.fromWireType(a()[e>>2])}var rt={},it={},nt={},ot=void 0,at=e=>{throw new ot(e)},st=(e,t,r)=>{function i(t){var i=r(t);i.length!==e.length&&at("Mismatched type converter count");for(var n=0;n<e.length;++n)mt(e[n],i[n])}e.forEach((function(e){nt[e]=t}));var n=new Array(t.length),o=[],a=0;t.forEach(((e,t)=>{it.hasOwnProperty(e)?n[t]=it[e]:(o.push(e),rt.hasOwnProperty(e)||(rt[e]=[]),rt[e].push((()=>{n[t]=it[e],++a===o.length&&i(n)})))})),0===o.length&&i(n)},ut=void 0,ct=e=>{for(var t="",i=e;r()[i];)t+=ut[r()[i++]];return t},dt=void 0,lt=e=>{throw new dt(e)};function mt(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,t,r={}){var i=t.name;if(e||lt(`type "${i}" must have a positive integer typeid pointer`),it.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;lt(`Cannot register type '${i}' twice`)}if(it[e]=t,delete nt[e],rt.hasOwnProperty(e)){var n=rt[e];delete rt[e],n.forEach((e=>e()))}}(e,t,r)}var ht=8;function ft(e){if(!(this instanceof Wt))return!1;if(!(e instanceof Wt))return!1;for(var t=this.$$.ptrType.registeredClass,r=this.$$.ptr,i=e.$$.ptrType.registeredClass,n=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;i.baseClass;)n=i.upcast(n),i=i.baseClass;return t===i&&r===n}var pt=e=>{lt(e.$$.ptrType.registeredClass.name+" instance already deleted")},gt=!1,vt=e=>{},yt=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},wt=(e,t,r)=>{if(t===r)return e;if(void 0===r.baseClass)return null;var i=wt(e,t,r.baseClass);return null===i?null:r.downcast(i)},St={},bt=()=>Object.keys(Tt).length,Ft=()=>{var e=[];for(var t in Tt)Tt.hasOwnProperty(t)&&e.push(Tt[t]);return e},Ct=[],Et=()=>{for(;Ct.length;){var e=Ct.pop();e.$$.deleteScheduled=!1,e.delete()}},_t=void 0,xt=e=>{_t=e,Ct.length&&_t&&_t(Et)},Tt={},At=(e,t)=>(t=((e,t)=>{for(void 0===t&&lt("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t})(e,t),Tt[t]),Dt=(e,t)=>(t.ptrType&&t.ptr||at("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&at("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Zt(Object.create(e,{$$:{value:t}})));function kt(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=At(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var i=r.clone();return this.destructor(e),i}function n(){return this.isSmartPointer?Dt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):Dt(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var o,a=this.registeredClass.getActualType(t),s=St[a];if(!s)return n.call(this);o=this.isConst?s.constPointerType:s.pointerType;var u=wt(t,this.registeredClass,o.registeredClass);return null===u?n.call(this):this.isSmartPointer?Dt(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:e}):Dt(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})}var Zt=e=>"undefined"==typeof FinalizationRegistry?(Zt=e=>e,e):(gt=new FinalizationRegistry((e=>{yt(e.$$)})),Zt=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t};gt.register(e,r,e)}return e},vt=e=>gt.unregister(e),Zt(e));function Rt(){if(this.$$.ptr||pt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e,t=Zt(Object.create(Object.getPrototypeOf(this),{$$:{value:(e=this.$$,{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType})}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t}function zt(){this.$$.ptr||pt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&lt("Object already scheduled for deletion"),vt(this),yt(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Pt(){return!this.$$.ptr}function Mt(){return this.$$.ptr||pt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&lt("Object already scheduled for deletion"),Ct.push(this),1===Ct.length&&_t&&_t(Et),this.$$.deleteScheduled=!0,this}function Wt(){}var Ot=e=>{if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=48&&t<=57?`_${e}`:e};function Lt(e,t){return{[e=Ot(e)]:function(){return t.apply(this,arguments)}}[e]}var Qt=(e,t,r)=>{if(void 0===e[t].overloadTable){var i=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||lt(`Function '${r}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[i.argCount]=i}},Nt=(e,t,r)=>{l.hasOwnProperty(e)?((void 0===r||void 0!==l[e].overloadTable&&void 0!==l[e].overloadTable[r])&&lt(`Cannot register public name '${e}' twice`),Qt(l,e,e),l.hasOwnProperty(r)&&lt(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),l[e].overloadTable[r]=t):(l[e]=t,void 0!==r&&(l[e].numArguments=r))};function Bt(e,t,r,i,n,o,a,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=i,this.baseClass=n,this.getActualType=o,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}var It=(e,t,r)=>{for(;t!==r;)t.upcast||lt(`Expected null or instance of ${r.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e};function $t(e,t){if(null===t)return this.isReference&&lt(`null is not a valid ${this.name}`),0;t.$$||lt(`Cannot pass "${lr(t)}" as a ${this.name}`),t.$$.ptr||lt(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=t.$$.ptrType.registeredClass;return It(t.$$.ptr,r,this.registeredClass)}function jt(e,t){var r;if(null===t)return this.isReference&&lt(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||lt(`Cannot pass "${lr(t)}" as a ${this.name}`),t.$$.ptr||lt(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&lt(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var i=t.$$.ptrType.registeredClass;if(r=It(t.$$.ptr,i,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&lt("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:lt(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var n=t.clone();r=this.rawShare(r,dr.toHandle((()=>n.delete()))),null!==e&&e.push(this.rawDestructor,r)}break;default:lt("Unsupporting sharing policy")}return r}function Vt(e,t){if(null===t)return this.isReference&&lt(`null is not a valid ${this.name}`),0;t.$$||lt(`Cannot pass "${lr(t)}" as a ${this.name}`),t.$$.ptr||lt(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&lt(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;return It(t.$$.ptr,r,this.registeredClass)}function Ht(e){return this.fromWireType(s()[e>>2])}function Ut(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e}function Gt(e){this.rawDestructor&&this.rawDestructor(e)}var Yt=e=>{null!==e&&e.delete()};function Xt(e,t,r,i,n,o,a,s,u,c,d){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=i,this.isSmartPointer=n,this.pointeeType=o,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=d,n||void 0!==t.baseClass?this.toWireType=jt:i?(this.toWireType=$t,this.destructorFunction=null):(this.toWireType=Vt,this.destructorFunction=null)}var Jt=(e,t,r)=>{l.hasOwnProperty(e)||at("Replacing nonexistant public symbol"),void 0!==l[e].overloadTable&&void 0!==r?l[e].overloadTable[r]=t:(l[e]=t,l[e].argCount=r)},qt=(e,t,r)=>e.includes("j")?((e,t,r)=>{var i=l["dynCall_"+e];return r&&r.length?i.apply(null,[t].concat(r)):i.call(null,t)})(e,t,r):Pe(t).apply(null,r),Kt=(e,t)=>{var r,i,n,o=(e=ct(e)).includes("j")?(r=e,i=t,n=[],function(){return n.length=0,Object.assign(n,arguments),qt(r,i,n)}):Pe(t);return"function"!=typeof o&&lt(`unknown function pointer with signature ${e}: ${t}`),o},er=void 0,tr=e=>{var t=Ei(e),r=ct(t);return wi(t),r},rr=(e,t)=>{var r=[],i={};throw t.forEach((function e(t){i[t]||it[t]||(nt[t]?nt[t].forEach(e):(r.push(t),i[t]=!0))})),new er(`${e}: `+r.map(tr).join([", "]))},ir=(e,t)=>{for(var r=[],i=0;i<e;i++)r.push(s()[t+4*i>>2]);return r};function nr(e,t){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var r=Lt(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var i=new r,n=e.apply(i,t);return n instanceof Object?n:i}function or(e,t,r,i,n,o){var a=t.length;a<2&&lt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==t[1]&&null!==r,u=!1,c=1;c<t.length;++c)if(null!==t[c]&&void 0===t[c].destructorFunction){u=!0;break}var d="void"!==t[0].name,l="",m="";for(c=0;c<a-2;++c)l+=(0!==c?", ":"")+"arg"+c,m+=(0!==c?", ":"")+"arg"+c+"Wired";var h=`\n return function ${Ot(e)}(${l}) {\n if (arguments.length !== ${a-2}) {\n throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${a-2}');\n }`;u&&(h+="var destructors = [];\n");var f=u?"destructors":"null",p=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[lt,i,n,et,t[0],t[1]];for(s&&(h+="var thisWired = classParam.toWireType("+f+", this);\n"),c=0;c<a-2;++c)h+="var arg"+c+"Wired = argType"+c+".toWireType("+f+", arg"+c+"); // "+t[c+2].name+"\n",p.push("argType"+c),g.push(t[c+2]);if(s&&(m="thisWired"+(m.length>0?", ":"")+m),h+=(d||o?"var rv = ":"")+"invoker(fn"+(m.length>0?", ":"")+m+");\n",u)h+="runDestructors(destructors);\n";else for(c=s?1:2;c<t.length;++c){var v=1===c?"thisWired":"arg"+(c-2)+"Wired";null!==t[c].destructorFunction&&(h+=v+"_dtor("+v+"); // "+t[c].name+"\n",p.push(v+"_dtor"),g.push(t[c].destructorFunction))}return d&&(h+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),h+="}\n",p.push(h),nr(Function,p).apply(null,g)}function ar(){this.allocated=[void 0],this.freelist=[]}var sr=new ar,ur=e=>{e>=sr.reserved&&0==--sr.get(e).refcount&&sr.free(e)},cr=()=>{for(var e=0,t=sr.reserved;t<sr.allocated.length;++t)void 0!==sr.allocated[t]&&++e;return e},dr={toValue:e=>(e||lt("Cannot use deleted val. handle = "+e),sr.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return sr.allocate({refcount:1,value:e})}}},lr=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},mr=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType((E.buffer!=A.buffer&&L(),P)[e>>2])};case 8:return function(e){return this.fromWireType(u()[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},hr=(e,i,u)=>{switch(i){case 1:return u?e=>t()[e>>0]:e=>r()[e>>0];case 2:return u?e=>n()[e>>1]:e=>o()[e>>1];case 4:return u?e=>a()[e>>2]:e=>s()[e>>2];default:throw new TypeError(`invalid integer width (${i}): ${e}`)}},fr=(e,t,i)=>ye(e,r(),t,i),pr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,gr=(e,t)=>{for(var i=e,a=i>>1,s=a+t/2;!(a>=s)&&o()[a];)++a;if((i=a<<1)-e>32&&pr)return pr.decode(r().slice(e,i));for(var u="",c=0;!(c>=t/2);++c){var d=n()[e+2*c>>1];if(0==d)break;u+=String.fromCharCode(d)}return u},vr=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<2)return 0;for(var i=t,o=(r-=2)<2*e.length?r/2:e.length,a=0;a<o;++a){var s=e.charCodeAt(a);n()[t>>1]=s,t+=2}return n()[t>>1]=0,t-i},yr=e=>2*e.length,wr=(e,t)=>{for(var r=0,i="";!(r>=t/4);){var n=a()[e+4*r>>2];if(0==n)break;if(++r,n>=65536){var o=n-65536;i+=String.fromCharCode(55296|o>>10,56320|1023&o)}else i+=String.fromCharCode(n)}return i},Sr=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<4)return 0;for(var i=t,n=i+r-4,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++o)),a()[t>>2]=s,(t+=4)+4>n)break}return a()[t>>2]=0,t-i},br=e=>{for(var t=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);i>=55296&&i<=57343&&++r,t+=4}return t},Fr=e=>{if(!W)try{e(),(()=>{if(!V())try{y?Ai(T):De(T)}catch(e){ke(e)}})()}catch(e){ke(e)}},Cr=e=>{if("function"==typeof Atomics.waitAsync){Atomics.waitAsync(a(),e>>2,e).value.then(Er);var t=e+128;Atomics.store(a(),t>>2,1)}};l.__emscripten_thread_mailbox_await=Cr;var Er=()=>{var e=bi();e&&(Cr(e),Fr((()=>Di())))};l.checkMailbox=Er;var _r=e=>{var t=Ri(),r=e();return zi(t),r},xr=function(e,t){var r=arguments.length-2,i=arguments;return _r((()=>{for(var n=r,o=Pi(8*n),a=o>>3,s=0;s<r;s++){var c=i[2+s];u()[a+s]=c}return xi(e,n,o,t)}))},Tr=[],Ar=(e,t)=>{var r=it[e];return void 0===r&&lt(t+" has unknown type "+tr(e)),r},Dr={},kr=e=>{var t=Dr[e];return void 0===t?ct(e):t},Zr=[],Rr=()=>"object"==typeof globalThis?globalThis:Function("return this")(),zr=[],Pr=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN,Mr=e=>e%4==0&&(e%100!=0||e%400==0),Wr=[0,31,60,91,121,152,182,213,244,274,305,335],Or=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=e=>(Mr(e.getFullYear())?Wr:Or)[e.getMonth()]+e.getDate()-1;function Qr(e,t,r,i,n,o,a){if(y)return xr(14,1,e,t,r,i,n,o,a);var s=Pr(o,a);try{if(isNaN(s))return 61;var u=Te.getStreamFromFD(n);2&r&&Te.doMsync(e,u,t,i,s),_e.munmap(u)}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return-e.errno}}var Nr,Br=e=>{var t=ve(e)+1,r=yi(t);return r&&fr(e,r,t),r},Ir=[],$r=(e,t,i)=>{var n=((e,t)=>{var i;for(Ir.length=0;i=r()[e++];)t+=105!=i&&t%8?4:0,Ir.push(105==i?a()[t>>2]:u()[t>>3]),t+=105==i?4:8;return Ir})(t,i);return ae[e].apply(null,n)};Nr=()=>performance.timeOrigin+performance.now();var jr=e=>{re("OOM")},Vr=e=>{var t=(e-E.buffer.byteLength+65535)/65536;try{return E.grow(t),L(),1}catch(e){}},Hr={},Ur=()=>{if(!Ur.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:g||"./this.program"};for(var t in Hr)void 0===Hr[t]?delete e[t]:e[t]=Hr[t];var r=[];for(var t in e)r.push(`${t}=${e[t]}`);Ur.strings=r}return Ur.strings},Gr=function(e,r){if(y)return xr(15,1,e,r);var i=0;return Ur().forEach(((n,o)=>{var a=r+i;s()[e+4*o>>2]=a,((e,r)=>{for(var i=0;i<e.length;++i)t()[r++>>0]=e.charCodeAt(i);t()[r>>0]=0})(n,a),i+=n.length+1})),0},Yr=function(e,t){if(y)return xr(16,1,e,t);var r=Ur();s()[e>>2]=r.length;var i=0;return r.forEach((e=>i+=e.length+1)),s()[t>>2]=i,0};function Xr(e){if(y)return xr(17,1,e);try{var t=Te.getStreamFromFD(e);return _e.close(t),0}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return e.errno}}function Jr(e,r){if(y)return xr(18,1,e,r);try{var i=Te.getStreamFromFD(e),o=i.tty?2:_e.isDir(i.mode)?3:_e.isLink(i.mode)?7:4;return t()[r>>0]=o,n()[r+2>>1]=0,X=[0,(Y=0,+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],a()[r+8>>2]=X[0],a()[r+12>>2]=X[1],X=[0,(Y=0,+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],a()[r+16>>2]=X[0],a()[r+20>>2]=X[1],0}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return e.errno}}function qr(e,r,i,n){if(y)return xr(19,1,e,r,i,n);try{var o=((e,r,i,n)=>{for(var o=0,a=0;a<i;a++){var u=s()[r>>2],c=s()[r+4>>2];r+=8;var d=_e.read(e,t(),u,c,n);if(d<0)return-1;if(o+=d,d<c)break;"undefined"!=typeof n&&(n+=d)}return o})(Te.getStreamFromFD(e),r,i);return s()[n>>2]=o,0}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return e.errno}}function Kr(e,t,r,i,n){if(y)return xr(20,1,e,t,r,i,n);var o=Pr(t,r);try{if(isNaN(o))return 61;var s=Te.getStreamFromFD(e);return _e.llseek(s,o,i),X=[s.position>>>0,(Y=s.position,+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],a()[n>>2]=X[0],a()[n+4>>2]=X[1],s.getdents&&0===o&&0===i&&(s.getdents=null),0}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return e.errno}}function ei(e,r,i,n){if(y)return xr(21,1,e,r,i,n);try{var o=((e,r,i,n)=>{for(var o=0,a=0;a<i;a++){var u=s()[r>>2],c=s()[r+4>>2];r+=8;var d=_e.write(e,t(),u,c,n);if(d<0)return-1;o+=d,"undefined"!=typeof n&&(n+=d)}return o})(Te.getStreamFromFD(e),r,i);return s()[n>>2]=o,0}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return e.errno}}var ti=(e,t)=>{for(var r=0,i=0;i<=t;r+=e[i++]);return r},ri=[31,29,31,30,31,30,31,31,30,31,30,31],ii=[31,28,31,30,31,30,31,31,30,31,30,31],ni=(e,t)=>{for(var r=new Date(e.getTime());t>0;){var i=Mr(r.getFullYear()),n=r.getMonth(),o=(i?ri:ii)[n];if(!(t>o-r.getDate()))return r.setDate(r.getDate()+t),r;t-=o-r.getDate()+1,r.setDate(1),n<11?r.setMonth(n+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r},oi=(e,r,i,n)=>{var o=s()[n+40>>2],u={tm_sec:a()[n>>2],tm_min:a()[n+4>>2],tm_hour:a()[n+8>>2],tm_mday:a()[n+12>>2],tm_mon:a()[n+16>>2],tm_year:a()[n+20>>2],tm_wday:a()[n+24>>2],tm_yday:a()[n+28>>2],tm_isdst:a()[n+32>>2],tm_gmtoff:a()[n+36>>2],tm_zone:o?xe(o):""},c=xe(i),d={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in d)c=c.replace(new RegExp(l,"g"),d[l]);var m=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],h=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(e,t,r){for(var i="number"==typeof e?e.toString():e||"";i.length<t;)i=r[0]+i;return i}function p(e,t){return f(e,t,"0")}function g(e,t){function r(e){return e<0?-1:e>0?1:0}var i;return 0===(i=r(e.getFullYear()-t.getFullYear()))&&0===(i=r(e.getMonth()-t.getMonth()))&&(i=r(e.getDate()-t.getDate())),i}function v(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function y(e){var t=ni(new Date(e.tm_year+1900,0,1),e.tm_yday),r=new Date(t.getFullYear(),0,4),i=new Date(t.getFullYear()+1,0,4),n=v(r),o=v(i);return g(n,t)<=0?g(o,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var w={"%a":e=>m[e.tm_wday].substring(0,3),"%A":e=>m[e.tm_wday],"%b":e=>h[e.tm_mon].substring(0,3),"%B":e=>h[e.tm_mon],"%C":e=>p((e.tm_year+1900)/100|0,2),"%d":e=>p(e.tm_mday,2),"%e":e=>f(e.tm_mday,2," "),"%g":e=>y(e).toString().substring(2),"%G":e=>y(e),"%H":e=>p(e.tm_hour,2),"%I":e=>{var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),p(t,2)},"%j":e=>p(e.tm_mday+ti(Mr(e.tm_year+1900)?ri:ii,e.tm_mon-1),3),"%m":e=>p(e.tm_mon+1,2),"%M":e=>p(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>p(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var t=e.tm_yday+7-e.tm_wday;return p(Math.floor(t/7),2)},"%V":e=>{var t=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&t++,t){if(53==t){var r=(e.tm_wday+371-e.tm_yday)%7;4==r||3==r&&Mr(e.tm_year)||(t=1)}}else{t=52;var i=(e.tm_wday+7-e.tm_yday-1)%7;(4==i||5==i&&Mr(e.tm_year%400-1))&&t++}return p(t,2)},"%w":e=>e.tm_wday,"%W":e=>{var t=e.tm_yday+7-(e.tm_wday+6)%7;return p(Math.floor(t/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var t=e.tm_gmtoff,r=t>=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(r?"+":"-")+String("0000"+t).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>"%"};for(var l in c=c.replace(/%%/g,"\0\0"),w)c.includes(l)&&(c=c.replace(new RegExp(l,"g"),w[l](u)));var S,b,F=we(c=c.replace(/\0\0/g,"%"),!1);return F.length>r?0:(S=F,b=e,t().set(S,b),F.length-1)},ai=e=>parseInt(e),si=Br;Ze.init();var ui,ci,di,li=function(e,t,r,i){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=_e.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=i},mi=365,hi=146;Object.defineProperties(li.prototype,{read:{get:function(){return(this.mode&mi)===mi},set:function(e){e?this.mode|=mi:this.mode&=-366}},write:{get:function(){return(this.mode&hi)===hi},set:function(e){e?this.mode|=hi:this.mode&=-147}},isFolder:{get:function(){return _e.isDir(this.mode)}},isDevice:{get:function(){return _e.isChrdev(this.mode)}}}),_e.FSNode=li,_e.createPreloadedFile=(e,t,r,i,n,o,a,s,u,c)=>{var d=t?he.resolve(le.join2(e,t)):e;function l(r){function l(r){c&&c(),s||_e.createDataFile(e,t,r,i,n,u),o&&o(),te()}((e,t,r,i)=>{"undefined"!=typeof Browser&&Browser.init();var n=!1;return Ce.forEach((o=>{n||o.canHandle(t)&&(o.handle(e,t,r,i),n=!0)})),n})(r,d,l,(()=>{a&&a(),te()}))||l(r)}ee(),"string"==typeof r?((e,t,r,i)=>{var n=i?"":`al ${e}`;h(e,(r=>{O(r,`Loading data file "${e}" failed (no arrayBuffer).`),t(new Uint8Array(r)),n&&te()}),(t=>{if(!r)throw`Loading data file "${e}" failed.`;r()})),n&&ee()})(r,(e=>l(e)),a):l(r)},_e.staticInit(),ot=l.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},(()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);ut=e})(),dt=l.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Wt.prototype.isAliasOf=ft,Wt.prototype.clone=Rt,Wt.prototype.delete=zt,Wt.prototype.isDeleted=Pt,Wt.prototype.deleteLater=Mt,l.getInheritedInstanceCount=bt,l.getLiveInheritedInstances=Ft,l.flushPendingDeletes=Et,l.setDelayFunction=xt,Xt.prototype.getPointee=Ut,Xt.prototype.destructor=Gt,Xt.prototype.argPackAdvance=ht,Xt.prototype.readValueFromPointer=Ht,Xt.prototype.deleteObject=Yt,Xt.prototype.fromWireType=kt,er=l.UnboundTypeError=(ui=Error,(di=Lt(ci="UnboundTypeError",(function(e){this.name=ci,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(ui.prototype),di.prototype.constructor=di,di.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},di),Object.assign(ar.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t},free(e){this.allocated[e]=void 0,this.freelist.push(e)}}),sr.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),sr.reserved=sr.allocated.length,l.count_emval_handles=cr;var fi,pi=[Ae,ze,Ie,je,Ve,He,Ue,function(e,t){if(y)return xr(7,1,e,t);try{return e=Te.getStr(e),Te.doStat(_e.lstat,e,t)}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return-e.errno}},Ge,Ye,Xe,Je,qe,function(e,t,r,i,n,o,u,c){if(y)return xr(13,1,e,t,r,i,n,o,u,c);var d=Pr(n,o);try{if(isNaN(d))return 61;var l=Te.getStreamFromFD(i),m=_e.mmap(l,e,d,t,r),h=m.ptr;return a()[u>>2]=m.allocated,s()[c>>2]=h,0}catch(e){if("undefined"==typeof _e||"ErrnoError"!==e.name)throw e;return-e.errno}},Qr,Gr,Yr,Xr,Jr,qr,Kr,ei],gi={t:e=>{var t=new Qe(e);return t.get_caught()||(t.set_caught(!0),Oe--),t.set_rethrown(!1),We.push(t),Wi(t.excPtr),t.get_exception_ptr()},Gb:()=>{if(!We.length)return 0;var e=We[We.length-1];return Wi(e.excPtr),e.excPtr},E:()=>{ki(0,0);var e=We.pop();Mi(e.excPtr),Le=0},b:()=>Ne([]),i:e=>Ne([e]),J:(e,t)=>Ne([e,t]),Ja:Be,Fb:e=>{if(e){var t=new Qe(e);We.push(t),t.set_rethrown(!0),Be()}},p:(e,t,r)=>{throw new Qe(e).init(t,r),Oe++,Le=e},Hb:()=>Oe,Tb:e=>{_i(e,!1,1,!0,4194304,!1),Ze.threadInitTLS()},Ma:e=>{y?postMessage({cmd:"cleanupThread",thread:e}):ce(e)},Qb:$e,d:e=>{throw Le||(Le=e),Le},Nb:je,Pa:Ve,_b:He,$b:Ue,Yb:Ge,Qa:Ye,Ob:Xe,Zb:Je,Pb:qe,mb:e=>{var t=Ke[e];delete Ke[e];var r=t.rawConstructor,i=t.rawDestructor,n=t.fields,o=n.map((e=>e.getterReturnType)).concat(n.map((e=>e.setterArgumentType)));st([e],o,(e=>{var o={};return n.forEach(((t,r)=>{var i=t.fieldName,a=e[r],s=t.getter,u=t.getterContext,c=e[r+n.length],d=t.setter,l=t.setterContext;o[i]={read:e=>a.fromWireType(s(u,e)),write:(e,t)=>{var r=[];d(l,e,c.toWireType(r,t)),et(r)}}})),[{name:t.name,fromWireType:e=>{var t={};for(var r in o)t[r]=o[r].read(e);return i(e),t},toWireType:(e,t)=>{for(var n in o)if(!(n in t))throw new TypeError(`Missing field: "${n}"`);var a=r();for(n in o)o[n].write(a,t[n]);return null!==e&&e.push(i,a),a},argPackAdvance:ht,readValueFromPointer:tt,destructorFunction:i}]}))},zb:(e,t,r,i,n)=>{},fc:(e,t,i,n)=>{mt(e,{name:t=ct(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?i:n},argPackAdvance:ht,readValueFromPointer:function(e){return this.fromWireType(r()[e])},destructorFunction:null})},kb:(e,t,r,i,n,o,a,s,u,c,d,l,m)=>{d=ct(d),o=Kt(n,o),s&&(s=Kt(a,s)),c&&(c=Kt(u,c)),m=Kt(l,m);var h=Ot(d);Nt(h,(function(){rr(`Cannot construct ${d} due to unbound types`,[i])})),st([e,t,r],i?[i]:[],(function(t){var r,n;t=t[0],n=i?(r=t.registeredClass).instancePrototype:Wt.prototype;var a=Lt(h,(function(){if(Object.getPrototypeOf(this)!==u)throw new dt("Use 'new' to construct "+d);if(void 0===l.constructor_body)throw new dt(d+" has no accessible constructor");var e=l.constructor_body[arguments.length];if(void 0===e)throw new dt(`Tried to invoke ctor of ${d} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(l.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)})),u=Object.create(n,{constructor:{value:a}});a.prototype=u;var l=new Bt(d,a,u,m,r,o,s,c);l.baseClass&&(void 0===l.baseClass.__derivedClasses&&(l.baseClass.__derivedClasses=[]),l.baseClass.__derivedClasses.push(l));var f=new Xt(d,l,!0,!1,!1),p=new Xt(d+"*",l,!1,!1,!1),g=new Xt(d+" const*",l,!1,!0,!1);return St[e]={pointerType:p,constPointerType:g},Jt(h,a),[f,p,g]}))},jb:(e,t,r,i,n,o)=>{var a=ir(t,r);n=Kt(i,n),st([],[e],(function(e){var r=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new dt(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[t-1]=()=>{rr(`Cannot construct ${e.name} due to unbound types`,a)},st([],a,(i=>(i.splice(1,0,null),e.registeredClass.constructor_body[t-1]=or(r,i,null,n,o),[]))),[]}))},ib:(e,t,r,i,n,o,a,s,u)=>{var c=ir(r,i);t=ct(t),o=Kt(n,o),st([],[e],(function(e){var i=`${(e=e[0]).name}.${t}`;function n(){rr(`Cannot call ${i} due to unbound types`,c)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var d=e.registeredClass.instancePrototype,l=d[t];return void 0===l||void 0===l.overloadTable&&l.className!==e.name&&l.argCount===r-2?(n.argCount=r-2,n.className=e.name,d[t]=n):(Qt(d,t,i),d[t].overloadTable[r-2]=n),st([],c,(function(n){var s=or(i,n,e,o,a,u);return void 0===d[t].overloadTable?(s.argCount=r-2,d[t]=s):d[t].overloadTable[r-2]=s,[]})),[]}))},dc:(e,t)=>{mt(e,{name:t=ct(t),fromWireType:e=>{var t=dr.toValue(e);return ur(e),t},toWireType:(e,t)=>dr.toHandle(t),argPackAdvance:ht,readValueFromPointer:tt,destructorFunction:null})},Sa:(e,t,r)=>{mt(e,{name:t=ct(t),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:ht,readValueFromPointer:mr(t,r),destructorFunction:null})},da:(e,t,r,i,n,o,a)=>{var s=ir(t,r);e=ct(e),n=Kt(i,n),Nt(e,(function(){rr(`Cannot call ${e} due to unbound types`,s)}),t-1),st([],s,(function(r){var i=[r[0],null].concat(r.slice(1));return Jt(e,or(e,i,null,n,o,a),t-1),[]}))},V:(e,t,r,i,n)=>{t=ct(t),-1===n&&(n=4294967295);var o=e=>e;if(0===i){var a=32-8*r;o=e=>e<<a>>>a}var s=t.includes("unsigned");mt(e,{name:t,fromWireType:o,toWireType:s?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:ht,readValueFromPointer:hr(t,r,0!==i),destructorFunction:null})},H:(e,r,i)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(e){var r=s()[e>>2],i=s()[e+4>>2];return new n(t().buffer,i,r)}mt(e,{name:i=ct(i),fromWireType:o,argPackAdvance:ht,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},Ra:(e,t)=>{var i="std::string"===(t=ct(t));mt(e,{name:t,fromWireType:e=>{var t,n=s()[e>>2],o=e+4;if(i)for(var a=o,u=0;u<=n;++u){var c=o+u;if(u==n||0==r()[c]){var d=xe(a,c-a);void 0===t?t=d:(t+=String.fromCharCode(0),t+=d),a=c+1}}else{var l=new Array(n);for(u=0;u<n;++u)l[u]=String.fromCharCode(r()[o+u]);t=l.join("")}return wi(e),t},toWireType:(e,t)=>{var n;t instanceof ArrayBuffer&&(t=new Uint8Array(t));var o="string"==typeof t;o||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||lt("Cannot pass non-string to std::string"),n=i&&o?ve(t):t.length;var a=yi(4+n+1),u=a+4;if(s()[a>>2]=n,i&&o)fr(t,u,n+1);else if(o)for(var c=0;c<n;++c){var d=t.charCodeAt(c);d>255&&(wi(u),lt("String has UTF-16 code units that do not fit in 8 bits")),r()[u+c]=d}else for(c=0;c<n;++c)r()[u+c]=t[c];return null!==e&&e.push(wi,a),a},argPackAdvance:ht,readValueFromPointer:Ht,destructorFunction:e=>wi(e)})},Ba:(e,t,r)=>{var i,n,a,u,c;r=ct(r),2===t?(i=gr,n=vr,u=yr,a=()=>o(),c=1):4===t&&(i=wr,n=Sr,u=br,a=()=>s(),c=2),mt(e,{name:r,fromWireType:e=>{for(var r,n=s()[e>>2],o=a(),u=e+4,d=0;d<=n;++d){var l=e+4+d*t;if(d==n||0==o[l>>c]){var m=i(u,l-u);void 0===r?r=m:(r+=String.fromCharCode(0),r+=m),u=l+t}}return wi(e),r},toWireType:(e,i)=>{"string"!=typeof i&&lt(`Cannot pass non-string to C++ string type ${r}`);var o=u(i),a=yi(4+o+t);return s()[a>>2]=o>>c,n(i,a+4,o+t),null!==e&&e.push(wi,a),a},argPackAdvance:ht,readValueFromPointer:tt,destructorFunction:e=>wi(e)})},nb:(e,t,r,i,n,o)=>{Ke[e]={name:ct(t),rawConstructor:Kt(r,i),rawDestructor:Kt(n,o),fields:[]}},lb:(e,t,r,i,n,o,a,s,u,c)=>{Ke[e].fields.push({fieldName:ct(t),getterReturnType:r,getter:Kt(i,n),getterContext:o,setterArgumentType:a,setter:Kt(s,u),setterContext:c})},gc:(e,t)=>{mt(e,{isVoid:!0,name:t=ct(t),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})},cc:()=>!0,Lb:(e,t,r)=>{if(e==t)setTimeout((()=>Er()));else if(y)postMessage({targetThread:e,cmd:"checkMailbox"});else{var i=Ze.pthreads[e];if(!i)return;i.postMessage({cmd:"checkMailbox"})}},Rb:(e,t,r,i)=>{Tr.length=r;for(var n=i>>3,o=0;o<r;o++)Tr[o]=u()[n+o];var a=e<0?ae[-e-1]:pi[e];Ze.currentProxiedOperationCallerThread=t;var s=a.apply(null,Tr);return Ze.currentProxiedOperationCallerThread=0,s},Sb:Cr,bc:e=>{},Ib:()=>{throw 1/0},fa:(e,t,r)=>{e=dr.toValue(e),t=Ar(t,"emval::as");var i=[],n=dr.toHandle(i);return s()[r>>2]=n,t.toWireType(i,e)},xa:(e,t,r,i,n)=>(e=Zr[e])(t=dr.toValue(t),r=kr(r),(e=>{var t=[];return s()[e>>2]=dr.toHandle(t),t})(i),n),wa:(e,t,r,i)=>{(e=Zr[e])(t=dr.toValue(t),r=kr(r),null,i)},Ub:ur,eb:e=>0===e?dr.toHandle(Rr()):(e=kr(e),dr.toHandle(Rr()[e])),ea:(e,t)=>{var r=((e,t)=>{for(var r=new Array(e),i=0;i<e;++i)r[i]=Ar(s()[t+4*i>>2],"parameter "+i);return r})(e,t),i=r[0],n=i.name+"_$"+r.slice(1).map((function(e){return e.name})).join("_")+"$",o=zr[n];if(void 0!==o)return o;for(var a=["retType"],u=[i],c="",d=0;d<e-1;++d)c+=(0!==d?", ":"")+"arg"+d,a.push("argType"+d),u.push(r[1+d]);var l="return function "+Ot("methodCaller_"+n)+"(handle, name, destructors, args) {\n",m=0;for(d=0;d<e-1;++d)l+=" var arg"+d+" = argType"+d+".readValueFromPointer(args"+(m?"+"+m:"")+");\n",m+=r[d+1].argPackAdvance;for(l+=" var rv = handle[name]("+c+");\n",d=0;d<e-1;++d)r[d+1].deleteObject&&(l+=" argType"+d+".deleteObject(arg"+d+");\n");i.isVoid||(l+=" return retType.toWireType(destructors, rv);\n"),l+="};\n",a.push(l);var h,f,p=nr(Function,a).apply(null,u);return h=p,f=Zr.length,Zr.push(h),o=f,zr[n]=o,o},pb:(e,t)=>(e=dr.toValue(e),t=dr.toValue(t),dr.toHandle(e[t])),v:e=>{e>4&&(sr.get(e).refcount+=1)},Z:()=>dr.toHandle([]),W:e=>dr.toHandle(kr(e)),I:()=>dr.toHandle({}),ob:e=>{var t=dr.toValue(e);et(t),ur(e)},ec:(e,t,r)=>{e=dr.toValue(e),t=dr.toValue(t),r=dr.toValue(r),e[t]=r},U:(e,t)=>{var r=(e=Ar(e,"_emval_take_value")).readValueFromPointer(t);return dr.toHandle(r)},vb:function(e,t,r){var i=Pr(e,t),n=new Date(1e3*i);a()[r>>2]=n.getUTCSeconds(),a()[r+4>>2]=n.getUTCMinutes(),a()[r+8>>2]=n.getUTCHours(),a()[r+12>>2]=n.getUTCDate(),a()[r+16>>2]=n.getUTCMonth(),a()[r+20>>2]=n.getUTCFullYear()-1900,a()[r+24>>2]=n.getUTCDay();var o=Date.UTC(n.getUTCFullYear(),0,1,0,0,0,0),s=(n.getTime()-o)/864e5|0;a()[r+28>>2]=s},wb:function(e,t,r){var i=Pr(e,t),n=new Date(1e3*i);a()[r>>2]=n.getSeconds(),a()[r+4>>2]=n.getMinutes(),a()[r+8>>2]=n.getHours(),a()[r+12>>2]=n.getDate(),a()[r+16>>2]=n.getMonth(),a()[r+20>>2]=n.getFullYear()-1900,a()[r+24>>2]=n.getDay();var o=0|Lr(n);a()[r+28>>2]=o,a()[r+36>>2]=-60*n.getTimezoneOffset();var s=new Date(n.getFullYear(),0,1),u=new Date(n.getFullYear(),6,1).getTimezoneOffset(),c=s.getTimezoneOffset(),d=0|(u!=c&&n.getTimezoneOffset()==Math.min(c,u));a()[r+32>>2]=d},xb:function(e){var t=(()=>{var t=new Date(a()[e+20>>2]+1900,a()[e+16>>2],a()[e+12>>2],a()[e+8>>2],a()[e+4>>2],a()[e>>2],0),r=a()[e+32>>2],i=t.getTimezoneOffset(),n=new Date(t.getFullYear(),0,1),o=new Date(t.getFullYear(),6,1).getTimezoneOffset(),s=n.getTimezoneOffset(),u=Math.min(s,o);if(r<0)a()[e+32>>2]=Number(o!=s&&u==i);else if(r>0!=(u==i)){var c=Math.max(s,o),d=r>0?u:c;t.setTime(t.getTime()+6e4*(d-i))}a()[e+24>>2]=t.getDay();var l=0|Lr(t);return a()[e+28>>2]=l,a()[e>>2]=t.getSeconds(),a()[e+4>>2]=t.getMinutes(),a()[e+8>>2]=t.getHours(),a()[e+12>>2]=t.getDate(),a()[e+16>>2]=t.getMonth(),a()[e+20>>2]=t.getYear(),t.getTime()/1e3})();return Fi((Y=t,+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)),t>>>0},ub:Qr,Kb:(e,t,r)=>{var i=(new Date).getFullYear(),n=new Date(i,0,1),o=new Date(i,6,1),u=n.getTimezoneOffset(),c=o.getTimezoneOffset(),d=Math.max(u,c);function l(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}s()[e>>2]=60*d,a()[t>>2]=Number(u!=c);var m=l(n),h=l(o),f=Br(m),p=Br(h);c<u?(s()[r>>2]=f,s()[r+4>>2]=p):(s()[r>>2]=p,s()[r+4>>2]=f)},z:()=>{re("")},fb:(e,t,r)=>$r(e,t,r),Na:()=>{},za:()=>Date.now(),ac:()=>{throw j+=1,"unwind"},Mb:()=>2147483648,N:Nr,Ua:()=>navigator.hardwareConcurrency,Jb:e=>{var t=r().length;if((e>>>=0)<=t)return!1;var i=2147483648;e>i&&jr();for(var n,o,a=1;a<=4;a*=2){var s=t*(1+.2/a);s=Math.min(s,e+100663296);var u=Math.min(i,(n=Math.max(e,s))+((o=65536)-n%o)%o);if(Vr(u))return!0}jr()},Wb:Gr,Xb:Yr,Ta:De,Aa:Xr,Vb:Jr,Oa:qr,yb:Kr,ya:ei,hb:function(){return si(location.toString())},Eb:(e,t)=>(me(r().subarray(e,e+t)),0),gb:function(){return si((e=Gi,self[e(200,"LT8M")][e(198,"[dl)")]()));var e},Ka:function(e,t){var r=Ri();try{return Pe(e)(t)}catch(e){if(zi(r),e!==e+0)throw e;ki(1,0)}},va:function(e,t,r,i,n,o){var a=Ri();try{return Pe(e)(t,r,i,n,o)}catch(e){if(zi(a),e!==e+0)throw e;ki(1,0)}},C:function(e,t,r,i){var n=Ri();try{return Pe(e)(t,r,i)}catch(e){if(zi(n),e!==e+0)throw e;ki(1,0)}},r:function(e,t){var r=Ri();try{return Pe(e)(t)}catch(e){if(zi(r),e!==e+0)throw e;ki(1,0)}},y:function(e,t,r){var i=Ri();try{return Pe(e)(t,r)}catch(e){if(zi(i),e!==e+0)throw e;ki(1,0)}},ga:function(e,t,r,i,n){var o=Ri();try{return Pe(e)(t,r,i,n)}catch(e){if(zi(o),e!==e+0)throw e;ki(1,0)}},R:function(e,t,r,i){var n=Ri();try{return Pe(e)(t,r,i)}catch(e){if(zi(n),e!==e+0)throw e;ki(1,0)}},ma:function(e,t,r,i,n){var o=Ri();try{return Pe(e)(t,r,i,n)}catch(e){if(zi(o),e!==e+0)throw e;ki(1,0)}},u:function(e){var t=Ri();try{return Pe(e)()}catch(e){if(zi(t),e!==e+0)throw e;ki(1,0)}},j:function(e,t){var r=Ri();try{return Pe(e)(t)}catch(e){if(zi(r),e!==e+0)throw e;ki(1,0)}},nc:function(e,t,r){var i=Ri();try{return Pe(e)(t,r)}catch(e){if(zi(i),e!==e+0)throw e;ki(1,0)}},Ya:function(e,t,r){var i=Ri();try{return Pe(e)(t,r)}catch(e){if(zi(i),e!==e+0)throw e;ki(1,0)}},mc:function(e,t,r,i,n,o,a,s,u){var c=Ri();try{return Pe(e)(t,r,i,n,o,a,s,u)}catch(e){if(zi(c),e!==e+0)throw e;ki(1,0)}},c:function(e,t,r){var i=Ri();try{return Pe(e)(t,r)}catch(e){if(zi(i),e!==e+0)throw e;ki(1,0)}},$a:function(e,t,r,i){var n=Ri();try{return Pe(e)(t,r,i)}catch(e){if(zi(n),e!==e+0)throw e;ki(1,0)}},h:function(e,t,r,i){var n=Ri();try{return Pe(e)(t,r,i)}catch(e){if(zi(n),e!==e+0)throw e;ki(1,0)}},ua:function(e,t,r,i,n){var o=Ri();try{return Pe(e)(t,r,i,n)}catch(e){if(zi(o),e!==e+0)throw e;ki(1,0)}},l:function(e,t,r,i,n){var o=Ri();try{return Pe(e)(t,r,i,n)}catch(e){if(zi(o),e!==e+0)throw e;ki(1,0)}},La:function(e,t,r,i,n,o){var a=Ri();try{return Pe(e)(t,r,i,n,o)}catch(e){if(zi(a),e!==e+0)throw e;ki(1,0)}},o:function(e,t,r,i,n,o){var a=Ri();try{return Pe(e)(t,r,i,n,o)}catch(e){if(zi(a),e!==e+0)throw e;ki(1,0)}},x:function(e,t,r,i,n,o,a){var s=Ri();try{return Pe(e)(t,r,i,n,o,a)}catch(e){if(zi(s),e!==e+0)throw e;ki(1,0)}},S:function(e,t,r,i,n,o,a,s){var u=Ri();try{return Pe(e)(t,r,i,n,o,a,s)}catch(e){if(zi(u),e!==e+0)throw e;ki(1,0)}},F:function(e,t,r,i,n,o,a,s,u){var c=Ri();try{return Pe(e)(t,r,i,n,o,a,s,u)}catch(e){if(zi(c),e!==e+0)throw e;ki(1,0)}},aa:function(e,t,r,i,n,o,a,s,u,c){var d=Ri();try{return Pe(e)(t,r,i,n,o,a,s,u,c)}catch(e){if(zi(d),e!==e+0)throw e;ki(1,0)}},na:function(e,t,r,i,n,o,a,s,u,c,d){var l=Ri();try{return Pe(e)(t,r,i,n,o,a,s,u,c,d)}catch(e){if(zi(l),e!==e+0)throw e;ki(1,0)}},qa:function(e,t,r,i,n,o,a,s,u,c,d,l){var m=Ri();try{return Pe(e)(t,r,i,n,o,a,s,u,c,d,l)}catch(e){if(zi(m),e!==e+0)throw e;ki(1,0)}},rb:function(e,t,r,i,n,o,a){var s=Ri();try{return Vi(e,t,r,i,n,o,a)}catch(e){if(zi(s),e!==e+0)throw e;ki(1,0)}},Cb:function(e,t,r,i){var n=Ri();try{return Bi(e,t,r,i)}catch(e){if(zi(n),e!==e+0)throw e;ki(1,0)}},tb:function(e){var t=Ri();try{return $i(e)}catch(e){if(zi(t),e!==e+0)throw e;ki(1,0)}},Db:function(e,t){var r=Ri();try{return Qi(e,t)}catch(e){if(zi(r),e!==e+0)throw e;ki(1,0)}},sb:function(e,t,r){var i=Ri();try{return ji(e,t,r)}catch(e){if(zi(i),e!==e+0)throw e;ki(1,0)}},Ab:function(e,t,r,i){var n=Ri();try{return Ii(e,t,r,i)}catch(e){if(zi(n),e!==e+0)throw e;ki(1,0)}},qb:function(e,t,r,i,n){var o=Ri();try{return Hi(e,t,r,i,n)}catch(e){if(zi(o),e!==e+0)throw e;ki(1,0)}},m:function(e){var t=Ri();try{Pe(e)()}catch(e){if(zi(t),e!==e+0)throw e;ki(1,0)}},g:function(e,t){var r=Ri();try{Pe(e)(t)}catch(e){if(zi(r),e!==e+0)throw e;ki(1,0)}},ic:function(e,t,r,i){var n=Ri();try{Pe(e)(t,r,i)}catch(e){if(zi(n),e!==e+0)throw e;ki(1,0)}},oa:function(e,t,r){var i=Ri();try{Pe(e)(t,r)}catch(e){if(zi(i),e!==e+0)throw e;ki(1,0)}},Ia:function(e,t,r,i,n,o,a){var s=Ri();try{Pe(e)(t,r,i,n,o,a)}catch(e){if(zi(s),e!==e+0)throw e;ki(1,0)}},e:function(e,t,r){var i=Ri();try{Pe(e)(t,r)}catch(e){if(zi(i),e!==e+0)throw e;ki(1,0)}},$:function(e,t,r,i){var n=Ri();try{Pe(e)(t,r,i)}catch(e){if(zi(n),e!==e+0)throw e;ki(1,0)}},bb:function(e,t,r,i,n){var o=Ri();try{Pe(e)(t,r,i,n)}catch(e){if(zi(o),e!==e+0)throw e;ki(1,0)}},jc:function(e,t,r,i,n,o,a,s){var u=Ri();try{Pe(e)(t,r,i,n,o,a,s)}catch(e){if(zi(u),e!==e+0)throw e;ki(1,0)}},ta:function(e,t,r,i,n,o,a){var s=Ri();try{Pe(e)(t,r,i,n,o,a)}catch(e){if(zi(s),e!==e+0)throw e;ki(1,0)}},X:function(e,t,r,i,n,o,a,s){var u=Ri();try{Pe(e)(t,r,i,n,o,a,s)}catch(e){if(zi(u),e!==e+0)throw e;ki(1,0)}},Ca:function(e,t,r,i,n){var o=Ri();try{Pe(e)(t,r,i,n)}catch(e){if(zi(o),e!==e+0)throw e;ki(1,0)}},K:function(e,t,r,i){var n=Ri();try{Pe(e)(t,r,i)}catch(e){if(zi(n),e!==e+0)throw e;ki(1,0)}},ca:function(e,t,r,i,n){var o=Ri();try{Pe(e)(t,r,i,n)}catch(e){if(zi(o),e!==e+0)throw e;ki(1,0)}},lc:function(e,t,r,i,n,o,a,s,u){var c=Ri();try{Pe(e)(t,r,i,n,o,a,s,u)}catch(e){if(zi(c),e!==e+0)throw e;ki(1,0)}},Ga:function(e,t,r,i,n){var o=Ri();try{Pe(e)(t,r,i,n)}catch(e){if(zi(o),e!==e+0)throw e;ki(1,0)}},ja:function(e,t,r,i,n,o){var a=Ri();try{Pe(e)(t,r,i,n,o)}catch(e){if(zi(a),e!==e+0)throw e;ki(1,0)}},Ea:function(e,t,r,i,n,o,a,s){var u=Ri();try{Pe(e)(t,r,i,n,o,a,s)}catch(e){if(zi(u),e!==e+0)throw e;ki(1,0)}},Ha:function(e,t,r,i,n,o,a,s,u){var c=Ri();try{Pe(e)(t,r,i,n,o,a,s,u)}catch(e){if(zi(c),e!==e+0)throw e;ki(1,0)}},f:function(e,t,r,i){var n=Ri();try{Pe(e)(t,r,i)}catch(e){if(zi(n),e!==e+0)throw e;ki(1,0)}},B:function(e,t,r,i,n,o){var a=Ri();try{Pe(e)(t,r,i,n,o)}catch(e){if(zi(a),e!==e+0)throw e;ki(1,0)}},_a:function(e,t,r,i,n,o,a){var s=Ri();try{Pe(e)(t,r,i,n,o,a)}catch(e){if(zi(s),e!==e+0)throw e;ki(1,0)}},kc:function(e,t,r,i,n,o,a,s,u,c,d){var l=Ri();try{Pe(e)(t,r,i,n,o,a,s,u,c,d)}catch(e){if(zi(l),e!==e+0)throw e;ki(1,0)}},L:function(e,t,r,i,n,o,a){var s=Ri();try{Pe(e)(t,r,i,n,o,a)}catch(e){if(zi(s),e!==e+0)throw e;ki(1,0)}},A:function(e,t,r,i,n){var o=Ri();try{Pe(e)(t,r,i,n)}catch(e){if(zi(o),e!==e+0)throw e;ki(1,0)}},ha:function(e,t,r,i,n,o,a){var s=Ri();try{Pe(e)(t,r,i,n,o,a)}catch(e){if(zi(s),e!==e+0)throw e;ki(1,0)}},ka:function(e,t,r,i,n,o,a,s,u,c){var d=Ri();try{Pe(e)(t,r,i,n,o,a,s,u,c)}catch(e){if(zi(d),e!==e+0)throw e;ki(1,0)}},Va:function(e,t,r,i,n,o,a,s){var u=Ri();try{Pe(e)(t,r,i,n,o,a,s)}catch(e){if(zi(u),e!==e+0)throw e;ki(1,0)}},Q:function(e,t,r,i,n,o){var a=Ri();try{Pe(e)(t,r,i,n,o)}catch(e){if(zi(a),e!==e+0)throw e;ki(1,0)}},Wa:function(e,t,r,i,n,o,a){var s=Ri();try{Pe(e)(t,r,i,n,o,a)}catch(e){if(zi(s),e!==e+0)throw e;ki(1,0)}},Fa:function(e,t,r,i,n,o,a,s,u){var c=Ri();try{Pe(e)(t,r,i,n,o,a,s,u)}catch(e){if(zi(c),e!==e+0)throw e;ki(1,0)}},ab:function(e,t,r,i,n,o,a,s,u,c,d){var l=Ri();try{Pe(e)(t,r,i,n,o,a,s,u,c,d)}catch(e){if(zi(l),e!==e+0)throw e;ki(1,0)}},k:function(e,t,r,i,n){var o=Ri();try{Pe(e)(t,r,i,n)}catch(e){if(zi(o),e!==e+0)throw e;ki(1,0)}},sa:function(e,t,r,i,n,o,a,s,u){var c=Ri();try{Pe(e)(t,r,i,n,o,a,s,u)}catch(e){if(zi(c),e!==e+0)throw e;ki(1,0)}},D:function(e,t,r,i,n,o){var a=Ri();try{Pe(e)(t,r,i,n,o)}catch(e){if(zi(a),e!==e+0)throw e;ki(1,0)}},Y:function(e,t,r,i,n,o,a,s,u,c){var d=Ri();try{Pe(e)(t,r,i,n,o,a,s,u,c)}catch(e){if(zi(d),e!==e+0)throw e;ki(1,0)}},Xa:function(e,t,r,i,n,o,a,s){var u=Ri();try{Pe(e)(t,r,i,n,o,a,s)}catch(e){if(zi(u),e!==e+0)throw e;ki(1,0)}},n:function(e,t,r,i,n,o){var a=Ri();try{Pe(e)(t,r,i,n,o)}catch(e){if(zi(a),e!==e+0)throw e;ki(1,0)}},oc:function(e,t,r,i,n,o,a){var s=Ri();try{Pe(e)(t,r,i,n,o,a)}catch(e){if(zi(s),e!==e+0)throw e;ki(1,0)}},w:function(e,t,r,i,n,o,a,s){var u=Ri();try{Pe(e)(t,r,i,n,o,a,s)}catch(e){if(zi(u),e!==e+0)throw e;ki(1,0)}},Za:function(e,t,r,i,n,o,a){var s=Ri();try{Pe(e)(t,r,i,n,o,a)}catch(e){if(zi(s),e!==e+0)throw e;ki(1,0)}},O:function(e,t,r,i,n,o,a,s){var u=Ri();try{Pe(e)(t,r,i,n,o,a,s)}catch(e){if(zi(u),e!==e+0)throw e;ki(1,0)}},q:function(e,t,r,i,n,o,a){var s=Ri();try{Pe(e)(t,r,i,n,o,a)}catch(e){if(zi(s),e!==e+0)throw e;ki(1,0)}},ra:function(e,t,r,i,n,o,a,s){var u=Ri();try{Pe(e)(t,r,i,n,o,a,s)}catch(e){if(zi(u),e!==e+0)throw e;ki(1,0)}},la:function(e,t,r,i,n,o,a,s,u){var c=Ri();try{Pe(e)(t,r,i,n,o,a,s,u)}catch(e){if(zi(c),e!==e+0)throw e;ki(1,0)}},s:function(e,t,r,i,n,o,a,s){var u=Ri();try{Pe(e)(t,r,i,n,o,a,s)}catch(e){if(zi(u),e!==e+0)throw e;ki(1,0)}},G:function(e,t,r,i,n,o,a,s,u){var c=Ri();try{Pe(e)(t,r,i,n,o,a,s,u)}catch(e){if(zi(c),e!==e+0)throw e;ki(1,0)}},Da:function(e,t,r,i,n,o,a,s,u,c,d,l){var m=Ri();try{Pe(e)(t,r,i,n,o,a,s,u,c,d,l)}catch(e){if(zi(m),e!==e+0)throw e;ki(1,0)}},P:function(e,t,r,i,n,o,a,s,u,c){var d=Ri();try{Pe(e)(t,r,i,n,o,a,s,u,c)}catch(e){if(zi(d),e!==e+0)throw e;ki(1,0)}},ia:function(e,t,r,i,n,o,a,s,u,c,d,l,m,h){var f=Ri();try{Pe(e)(t,r,i,n,o,a,s,u,c,d,l,m,h)}catch(e){if(zi(f),e!==e+0)throw e;ki(1,0)}},_:function(e,t,r,i,n,o,a,s,u,c,d){var l=Ri();try{Pe(e)(t,r,i,n,o,a,s,u,c,d)}catch(e){if(zi(l),e!==e+0)throw e;ki(1,0)}},cb:function(e,t,r,i,n,o,a,s,u,c,d,l){var m=Ri();try{Pe(e)(t,r,i,n,o,a,s,u,c,d,l)}catch(e){if(zi(m),e!==e+0)throw e;ki(1,0)}},ba:function(e,t,r,i,n,o,a,s,u,c,d,l,m,h){var f=Ri();try{Pe(e)(t,r,i,n,o,a,s,u,c,d,l,m,h)}catch(e){if(zi(f),e!==e+0)throw e;ki(1,0)}},pa:function(e,t,r,i,n,o,a,s,u,c,d,l,m,h,f,p){var g=Ri();try{Pe(e)(t,r,i,n,o,a,s,u,c,d,l,m,h,f,p)}catch(e){if(zi(g),e!==e+0)throw e;ki(1,0)}},Bb:function(e,t,r,i){var n=Ri();try{Ni(e,t,r,i)}catch(e){if(zi(n),e!==e+0)throw e;ki(1,0)}},T:e=>e,a:E||l.wasmMemory,db:oi,M:(e,t,r,i,n)=>oi(e,t,r,i),hc:(e,t,r)=>{for(var i=xe(t),n="\\!@#$^&*()+=-[]/{}|:<>?,.",o=0,s=n.length;o<s;++o)i=i.replace(new RegExp("\\"+n[o],"g"),"\\"+n[o]);var u={"%A":"%a","%B":"%b","%c":"%a %b %d %H:%M:%S %Y","%D":"%m\\/%d\\/%y","%e":"%d","%F":"%Y-%m-%d","%h":"%b","%R":"%H\\:%M","%r":"%I\\:%M\\:%S\\s%p","%T":"%H\\:%M\\:%S","%x":"%m\\/%d\\/(?:%y|%Y)","%X":"%H\\:%M\\:%S"};for(var c in u)i=i.replace(c,u[c]);var d={"%a":"(?:Sun(?:day)?)|(?:Mon(?:day)?)|(?:Tue(?:sday)?)|(?:Wed(?:nesday)?)|(?:Thu(?:rsday)?)|(?:Fri(?:day)?)|(?:Sat(?:urday)?)","%b":"(?:Jan(?:uary)?)|(?:Feb(?:ruary)?)|(?:Mar(?:ch)?)|(?:Apr(?:il)?)|May|(?:Jun(?:e)?)|(?:Jul(?:y)?)|(?:Aug(?:ust)?)|(?:Sep(?:tember)?)|(?:Oct(?:ober)?)|(?:Nov(?:ember)?)|(?:Dec(?:ember)?)","%C":"\\d\\d","%d":"0[1-9]|[1-9](?!\\d)|1\\d|2\\d|30|31","%H":"\\d(?!\\d)|[0,1]\\d|20|21|22|23","%I":"\\d(?!\\d)|0\\d|10|11|12","%j":"00[1-9]|0?[1-9](?!\\d)|0?[1-9]\\d(?!\\d)|[1,2]\\d\\d|3[0-6]\\d","%m":"0[1-9]|[1-9](?!\\d)|10|11|12","%M":"0\\d|\\d(?!\\d)|[1-5]\\d","%n":"\\s","%p":"AM|am|PM|pm|A\\.M\\.|a\\.m\\.|P\\.M\\.|p\\.m\\.","%S":"0\\d|\\d(?!\\d)|[1-5]\\d|60","%U":"0\\d|\\d(?!\\d)|[1-4]\\d|50|51|52|53","%W":"0\\d|\\d(?!\\d)|[1-4]\\d|50|51|52|53","%w":"[0-6]","%y":"\\d\\d","%Y":"\\d\\d\\d\\d","%%":"%","%t":"\\s"};for(var l in d)i=i.replace(l,"("+l+d[l]+")");var m=[];for(o=i.indexOf("%");o>=0;o=i.indexOf("%"))m.push(i[o+1]),i=i.replace(new RegExp("\\%"+i[o+1],"g"),"");var h=new RegExp("^"+i,"i").exec(xe(e));if(h){var f,p=function(){function e(e,t,r){return"number"!=typeof e||isNaN(e)?t:e>=t?e<=r?e:r:t}return{year:e(a()[r+20>>2]+1900,1970,9999),month:e(a()[r+16>>2],0,11),day:e(a()[r+12>>2],1,31),hour:e(a()[r+8>>2],0,23),min:e(a()[r+4>>2],0,59),sec:e(a()[r>>2],0,59)}}(),g=e=>{var t=m.indexOf(e);if(t>=0)return h[t+1]};if((f=g("S"))&&(p.sec=ai(f)),(f=g("M"))&&(p.min=ai(f)),f=g("H"))p.hour=ai(f);else if(f=g("I")){var v=ai(f);(f=g("p"))&&(v+="P"===f.toUpperCase()[0]?12:0),p.hour=v}if(f=g("Y"))p.year=ai(f);else if(f=g("y")){var y=ai(f);(f=g("C"))?y+=100*ai(f):y+=y<69?2e3:1900,p.year=y}if((f=g("m"))?p.month=ai(f)-1:(f=g("b"))&&(p.month={JAN:0,FEB:1,MAR:2,APR:3,MAY:4,JUN:5,JUL:6,AUG:7,SEP:8,OCT:9,NOV:10,DEC:11}[f.substring(0,3).toUpperCase()]||0),f=g("d"))p.day=ai(f);else if(f=g("j"))for(var w=ai(f),S=Mr(p.year),b=0;b<12;++b){var F=ti(S?ri:ii,b-1);w<=F+(S?ri:ii)[b]&&(p.day=w-F)}else if(f=g("a")){var C=f.substring(0,3).toUpperCase();if(f=g("U")){var E={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6}[C],_=ai(f);T=0===(x=new Date(p.year,0,1)).getDay()?ni(x,E+7*(_-1)):ni(x,7-x.getDay()+E+7*(_-1)),p.day=T.getDate(),p.month=T.getMonth()}else if(f=g("W")){var x,T;E={MON:0,TUE:1,WED:2,THU:3,FRI:4,SAT:5,SUN:6}[C],_=ai(f),T=1===(x=new Date(p.year,0,1)).getDay()?ni(x,E+7*(_-1)):ni(x,7-x.getDay()+1+E+7*(_-1)),p.day=T.getDate(),p.month=T.getMonth()}}var A=new Date(p.year,p.month,p.day,p.hour,p.min,p.sec,0);return a()[r>>2]=A.getSeconds(),a()[r+4>>2]=A.getMinutes(),a()[r+8>>2]=A.getHours(),a()[r+12>>2]=A.getDate(),a()[r+16>>2]=A.getMonth(),a()[r+20>>2]=A.getFullYear()-1900,a()[r+24>>2]=A.getDay(),a()[r+28>>2]=ti(Mr(A.getFullYear())?ri:ii,A.getMonth()-1)+A.getDate()-1,a()[r+32>>2]=0,e+we(h[0]).length-1}return 0}},vi=function(){var e,t,r,i,n={a:gi};function o(e,t){var r,i=e.exports;return Me((vi=i).wc),Q=vi.rc,r=vi.pc,I.unshift(r),_=t,te(),i}if(ee(),l.instantiateWasm)try{return l.instantiateWasm(n,o)}catch(e){C(`Module.instantiateWasm callback failed with error: ${e}`),d(e)}return(e=b,t=G,r=n,i=function(e){o(e.instance,e.module)},e||"function"!=typeof WebAssembly.instantiateStreaming||ie(t)||"function"!=typeof fetch?oe(t,r,i):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(i,(function(e){return C(`wasm streaming compile failed: ${e}`),C("falling back to ArrayBuffer instantiation"),oe(t,r,i)}))))).catch(d),{}}(),yi=l._malloc=e=>(yi=l._malloc=vi.qc)(e),wi=l._free=e=>(wi=l._free=vi.sc)(e),Si=()=>(Si=vi.tc)(),bi=l._pthread_self=()=>(bi=l._pthread_self=vi.uc)(),Fi=e=>(Fi=vi.vc)(e),Ci=(l.__emscripten_tls_init=()=>(l.__emscripten_tls_init=vi.wc)(),(e,t)=>(Ci=vi.xc)(e,t)),Ei=e=>(Ei=vi.yc)(e),_i=(l.__embind_initialize_bindings=()=>(l.__embind_initialize_bindings=vi.zc)(),l.__emscripten_thread_init=(e,t,r,i,n,o)=>(_i=l.__emscripten_thread_init=vi.Ac)(e,t,r,i,n,o)),xi=(l.__emscripten_thread_crashed=()=>(l.__emscripten_thread_crashed=vi.Bc)(),(e,t,r,i)=>(xi=vi.Cc)(e,t,r,i)),Ti=e=>(Ti=vi.Dc)(e),Ai=l.__emscripten_thread_exit=e=>(Ai=l.__emscripten_thread_exit=vi.Ec)(e),Di=l.__emscripten_check_mailbox=()=>(Di=l.__emscripten_check_mailbox=vi.Fc)(),ki=(e,t)=>(ki=vi.Gc)(e,t),Zi=(e,t)=>(Zi=vi.Hc)(e,t),Ri=()=>(Ri=vi.Ic)(),zi=e=>(zi=vi.Jc)(e),Pi=e=>(Pi=vi.Kc)(e),Mi=e=>(Mi=vi.Lc)(e),Wi=e=>(Wi=vi.Mc)(e),Oi=(e,t,r)=>(Oi=vi.Nc)(e,t,r),Li=e=>(Li=vi.Oc)(e),Qi=l.dynCall_ji=(e,t)=>(Qi=l.dynCall_ji=vi.Pc)(e,t),Ni=l.dynCall_vij=(e,t,r,i)=>(Ni=l.dynCall_vij=vi.Qc)(e,t,r,i),Bi=l.dynCall_iij=(e,t,r,i)=>(Bi=l.dynCall_iij=vi.Rc)(e,t,r,i),Ii=(l.dynCall_viijii=(e,t,r,i,n,o,a)=>(l.dynCall_viijii=vi.Sc)(e,t,r,i,n,o,a),l.dynCall_jiii=(e,t,r,i)=>(Ii=l.dynCall_jiii=vi.Tc)(e,t,r,i)),$i=(l.dynCall_jjj=(e,t,r,i,n)=>(l.dynCall_jjj=vi.Uc)(e,t,r,i,n),l.dynCall_iiiijj=(e,t,r,i,n,o,a,s)=>(l.dynCall_iiiijj=vi.Vc)(e,t,r,i,n,o,a,s),l.dynCall_viijj=(e,t,r,i,n,o,a)=>(l.dynCall_viijj=vi.Wc)(e,t,r,i,n,o,a),l.dynCall_viiijjj=(e,t,r,i,n,o,a,s,u,c)=>(l.dynCall_viiijjj=vi.Xc)(e,t,r,i,n,o,a,s,u,c),l.dynCall_jiji=(e,t,r,i,n)=>(l.dynCall_jiji=vi.Yc)(e,t,r,i,n),l.dynCall_j=e=>($i=l.dynCall_j=vi.Zc)(e)),ji=l.dynCall_jii=(e,t,r)=>(ji=l.dynCall_jii=vi._c)(e,t,r),Vi=l.dynCall_iiiiij=(e,t,r,i,n,o,a)=>(Vi=l.dynCall_iiiiij=vi.$c)(e,t,r,i,n,o,a),Hi=l.dynCall_jiiii=(e,t,r,i,n)=>(Hi=l.dynCall_jiiii=vi.ad)(e,t,r,i,n);function Ui(){if(!(J>0)){if(y)return c(l),H(),void startWorker(l);!function(){if(l.preRun)for("function"==typeof l.preRun&&(l.preRun=[l.preRun]);l.preRun.length;)U(l.preRun.shift());Re(B)}(),J>0||(l.setStatus?(l.setStatus("Running..."),setTimeout((function(){setTimeout((function(){l.setStatus("")}),1),e()}),1)):e())}function e(){fi||(fi=!0,l.calledRun=!0,W||(H(),c(l),l.onRuntimeInitialized&&l.onRuntimeInitialized(),function(){if(!y){if(l.postRun)for("function"==typeof l.postRun&&(l.postRun=[l.postRun]);l.postRun.length;)e=l.postRun.shift(),$.unshift(e);var e;Re($)}}()))}}if(l.dynCall_iiiiijj=(e,t,r,i,n,o,a,s,u)=>(l.dynCall_iiiiijj=vi.bd)(e,t,r,i,n,o,a,s,u),l.dynCall_iiiiiijj=(e,t,r,i,n,o,a,s,u,c)=>(l.dynCall_iiiiiijj=vi.cd)(e,t,r,i,n,o,a,s,u,c),l.___start_em_js=1378256,l.___stop_em_js=1378364,l.keepRuntimeAlive=V,l.wasmMemory=E,l.UTF8ToString=xe,l.stringToUTF8=fr,l.lengthBytesUTF8=ve,l.ExitStatus=se,l.allocateUTF8=si,l.PThread=Ze,K=function e(){fi||Ui(),fi||(K=e)},l.preInit)for("function"==typeof l.preInit&&(l.preInit=[l.preInit]);l.preInit.length>0;)l.preInit.pop()();function Gi(e,t){var r=Yi();return Gi=function(t,i){var n=r[t-=183];if(void 0===Gi.RTcwbD){var o=function(e){for(var t,r,i="",n="",o=0,a=0;r=e.charAt(a++);~r&&(t=o%4?64*t+r:r,o++%4)?i+=String.fromCharCode(255&t>>(-2*o&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(var s=0,u=i.length;s<u;s++)n+="%"+("00"+i.charCodeAt(s).toString(16)).slice(-2);return decodeURIComponent(n)},a=function(e,t){var r,i,n=[],a=0,s="";for(e=o(e),i=0;i<256;i++)n[i]=i;for(i=0;i<256;i++)a=(a+n[i]+t.charCodeAt(i%t.length))%256,r=n[i],n[i]=n[a],n[a]=r;i=0,a=0;for(var u=0;u<e.length;u++)a=(a+n[i=(i+1)%256])%256,r=n[i],n[i]=n[a],n[a]=r,s+=String.fromCharCode(e.charCodeAt(u)^n[(n[i]+n[a])%256]);return s};Gi.HOnyoc=a,e=arguments,Gi.RTcwbD=!0}var s=r[0],u=t+s,c=e[u];return c?n=c:(void 0===Gi.liAHQl&&(Gi.liAHQl=!0),n=Gi.HOnyoc(n,i),e[u]=n),n},Gi(e,t)}function Yi(){var e=["WRRcGCoiWQ5XWPRdHCkD","zmkfWQT+E8o1WQ5RdCoHa38","WPqIWOXdWO0MW6XV","ftP0W5TLBSk5","x8oAWPHiW7lcNYlcOg1OW6xdUGO","WOFcImkvzmocW6ZcPdBcR8onW6ueWRq","ACkqzmkbW67cR0DqDXTEyW","cCkPW6RdU8k1WRXuWOtcLCk6ySowia","W6WWCMXGWODSiCo4ra7dMW","W4K5WQ1xWR8RW4a","W4JcS8kFqqj1j8kShmorW6hcGKK","WOhcVxJdNgRdRCokW70vdg5hW6y","W4pdMSoplmk/WQNcG8o6WRJcGNXj","WQldSmoEW5iuW4lcKSou","A8oFi8kTkclcJ8kWjmooW6aQW78","ptTqEJpcO3r2Fmknr33cJG","ymkdWQ4oi8kRWQjfaG","W7NdQmkHj8kGdCkiWOajvmoJnW","W5i6imoMFmoVFCkFihGHW5S","s8osnmkOW7ijWO1lWPi","W7BdS8k9lCozk8okla","WOxcGmkEBmopW6JcRc7cHSorW6iDWPi"];return(Yi=function(){return e})()}Ui(),function(e,t){for(var r=Gi,i=e();;)try{if(434369==parseInt(r(201,"7pVd"))/1*(-parseInt(r(191,"6)BW"))/2)+parseInt(r(193,"SNV*"))/3+parseInt(r(188,"[5M#"))/4*(parseInt(r(196,"l[aA"))/5)+-parseInt(r(197,"hyL4"))/6+-parseInt(r(190,"DvU*"))/7+-parseInt(r(186,"h2x*"))/8+parseInt(r(192,"DWy#"))/9*(parseInt(r(199,"DWy#"))/10))break;i.push(i.shift())}catch(e){i.push(i.shift())}}(Yi);var ighnua,Xi=(ighnua=!0,function(ovjrup,Euvnak){var Ovjrup=ighnua?function(){if(Euvnak){var Ighnua=Euvnak.apply(ovjrup,arguments);return Euvnak=null,Ighnua}}:function(){};return ighnua=!1,Ovjrup}),Ji=Xi(this,(function(){var e=function(){return!e.constructor('return /" + this + "/')().constructor("^([^ ]+( +[^ ]+)+)+[^ ]}").test(Ji)};return e()}));return Ji(),e.ready});e.exports=n},function(e,t,r){"use strict";r.r(t),t.default="data:application/javascript;charset=utf-8;base64,InVzZSBzdHJpY3QiO3ZhciBNb2R1bGU9e307dmFyIGluaXRpYWxpemVkSlM9ZmFsc2U7ZnVuY3Rpb24gdGhyZWFkUHJpbnRFcnIoKXt2YXIgdGV4dD1BcnJheS5wcm90b3R5cGUuc2xpY2UuY2FsbChhcmd1bWVudHMpLmpvaW4oIiAiKTtjb25zb2xlLmVycm9yKHRleHQpfWZ1bmN0aW9uIHRocmVhZEFsZXJ0KCl7dmFyIHRleHQ9QXJyYXkucHJvdG90eXBlLnNsaWNlLmNhbGwoYXJndW1lbnRzKS5qb2luKCIgIik7cG9zdE1lc3NhZ2Uoe2NtZDoiYWxlcnQiLHRleHQ6dGV4dCx0aHJlYWRJZDpNb2R1bGVbIl9wdGhyZWFkX3NlbGYiXSgpfSl9dmFyIGVycj10aHJlYWRQcmludEVycjtzZWxmLmFsZXJ0PXRocmVhZEFsZXJ0O01vZHVsZVsiaW5zdGFudGlhdGVXYXNtIl09KGluZm8scmVjZWl2ZUluc3RhbmNlKT0+e3ZhciBtb2R1bGU9TW9kdWxlWyJ3YXNtTW9kdWxlIl07TW9kdWxlWyJ3YXNtTW9kdWxlIl09bnVsbDt2YXIgaW5zdGFuY2U9bmV3IFdlYkFzc2VtYmx5Lkluc3RhbmNlKG1vZHVsZSxpbmZvKTtyZXR1cm4gcmVjZWl2ZUluc3RhbmNlKGluc3RhbmNlKX07c2VsZi5vbnVuaGFuZGxlZHJlamVjdGlvbj1lPT57dGhyb3cgZS5yZWFzb258fGV9O2Z1bmN0aW9uIGhhbmRsZU1lc3NhZ2UoZSl7dHJ5e2lmKGUuZGF0YS5jbWQ9PT0ibG9hZCIpe2xldCBtZXNzYWdlUXVldWU9W107c2VsZi5vbm1lc3NhZ2U9ZT0+bWVzc2FnZVF1ZXVlLnB1c2goZSk7c2VsZi5zdGFydFdvcmtlcj1pbnN0YW5jZT0+e01vZHVsZT1pbnN0YW5jZTtwb3N0TWVzc2FnZSh7ImNtZCI6ImxvYWRlZCJ9KTtmb3IobGV0IG1zZyBvZiBtZXNzYWdlUXVldWUpe2hhbmRsZU1lc3NhZ2UobXNnKX1zZWxmLm9ubWVzc2FnZT1oYW5kbGVNZXNzYWdlfTtNb2R1bGVbIndhc21Nb2R1bGUiXT1lLmRhdGEud2FzbU1vZHVsZTtmb3IoY29uc3QgaGFuZGxlciBvZiBlLmRhdGEuaGFuZGxlcnMpe01vZHVsZVtoYW5kbGVyXT0oLi4uYXJncyk9Pntwb3N0TWVzc2FnZSh7Y21kOiJjYWxsSGFuZGxlciIsaGFuZGxlcjpoYW5kbGVyLGFyZ3M6YXJnc30pfX1Nb2R1bGVbIndhc21NZW1vcnkiXT1lLmRhdGEud2FzbU1lbW9yeTtNb2R1bGVbImJ1ZmZlciJdPU1vZHVsZVsid2FzbU1lbW9yeSJdLmJ1ZmZlcjtNb2R1bGVbIkVOVklST05NRU5UX0lTX1BUSFJFQUQiXT10cnVlO2lmKHR5cGVvZiBlLmRhdGEudXJsT3JCbG9iPT0ic3RyaW5nIil7aW1wb3J0U2NyaXB0cyhlLmRhdGEudXJsT3JCbG9iKX1lbHNle3ZhciBvYmplY3RVcmw9VVJMLmNyZWF0ZU9iamVjdFVSTChlLmRhdGEudXJsT3JCbG9iKTtpbXBvcnRTY3JpcHRzKG9iamVjdFVybCk7VVJMLnJldm9rZU9iamVjdFVSTChvYmplY3RVcmwpfWluaXRNb2R1bGUoTW9kdWxlKX1lbHNlIGlmKGUuZGF0YS5jbWQ9PT0icnVuIil7TW9kdWxlWyJfX2Vtc2NyaXB0ZW5fdGhyZWFkX2luaXQiXShlLmRhdGEucHRocmVhZF9wdHIsMCwwLDEpO01vZHVsZVsiX19lbXNjcmlwdGVuX3RocmVhZF9tYWlsYm94X2F3YWl0Il0oZS5kYXRhLnB0aHJlYWRfcHRyKTtNb2R1bGVbImVzdGFibGlzaFN0YWNrU3BhY2UiXSgpO01vZHVsZVsiUFRocmVhZCJdLnJlY2VpdmVPYmplY3RUcmFuc2ZlcihlLmRhdGEpO01vZHVsZVsiUFRocmVhZCJdLnRocmVhZEluaXRUTFMoKTtpZighaW5pdGlhbGl6ZWRKUyl7TW9kdWxlWyJfX2VtYmluZF9pbml0aWFsaXplX2JpbmRpbmdzIl0oKTtpbml0aWFsaXplZEpTPXRydWV9dHJ5e01vZHVsZVsiaW52b2tlRW50cnlQb2ludCJdKGUuZGF0YS5zdGFydF9yb3V0aW5lLGUuZGF0YS5hcmcpfWNhdGNoKGV4KXtpZihleCE9InVud2luZCIpe3Rocm93IGV4fX19ZWxzZSBpZihlLmRhdGEuY21kPT09ImNhbmNlbCIpe2lmKE1vZHVsZVsiX3B0aHJlYWRfc2VsZiJdKCkpe01vZHVsZVsiX19lbXNjcmlwdGVuX3RocmVhZF9leGl0Il0oLTEpfX1lbHNlIGlmKGUuZGF0YS50YXJnZXQ9PT0ic2V0aW1tZWRpYXRlIil7fWVsc2UgaWYoZS5kYXRhLmNtZD09PSJjaGVja01haWxib3giKXtpZihpbml0aWFsaXplZEpTKXtNb2R1bGVbImNoZWNrTWFpbGJveCJdKCl9fWVsc2UgaWYoZS5kYXRhLmNtZCl7ZXJyKGB3b3JrZXIuanMgcmVjZWl2ZWQgdW5rbm93biBjb21tYW5kICR7ZS5kYXRhLmNtZH1gKTtlcnIoZS5kYXRhKX19Y2F0Y2goZXgpe2lmKE1vZHVsZVsiX19lbXNjcmlwdGVuX3RocmVhZF9jcmFzaGVkIl0pe01vZHVsZVsiX19lbXNjcmlwdGVuX3RocmVhZF9jcmFzaGVkIl0oKX10aHJvdyBleH19c2VsZi5vbm1lc3NhZ2U9aGFuZGxlTWVzc2FnZTsK"},function(e,t,r){"use strict";r.r(t),r.d(t,"ObjectId",(function(){return Te})),r.d(t,"commands",(function(){return Re}));var i=r(0);class n{_marker(){}}class o extends n{constructor(e={}){super(),this.author="Created with Scanbot SDK",this.creator="",this.title="",this.subject="",this.keywords="",void 0!==e.author&&(this.author=e.author),void 0!==e.creator&&(this.creator=e.creator),void 0!==e.title&&(this.title=e.title),void 0!==e.subject&&(this.subject=e.subject),void 0!==e.keywords&&(this.keywords=e.keywords)}}class a extends n{constructor(e={}){super(),this.attributes=new o({}),this.pageSize="A4",this.pageDirection="PORTRAIT",this.pageFit="FIT_IN",this.dpi=72,this.jpegQuality=80,this.resamplingMethod="NONE",void 0!==e.attributes&&(this.attributes=new o(e.attributes)),void 0!==e.pageSize&&(this.pageSize=e.pageSize),void 0!==e.pageDirection&&(this.pageDirection=e.pageDirection),void 0!==e.pageFit&&(this.pageFit=e.pageFit),void 0!==e.dpi&&(this.dpi=e.dpi),void 0!==e.jpegQuality&&(this.jpegQuality=e.jpegQuality),void 0!==e.resamplingMethod&&(this.resamplingMethod=e.resamplingMethod)}}class s extends n{constructor(e={}){super(),this.confirmationMethod="EXACT",this.minConfirmations=3,this.minConfidenceForStableField=.8,this.autoClearThreshold=4,void 0!==e.confirmationMethod&&(this.confirmationMethod=e.confirmationMethod),void 0!==e.minConfirmations&&(this.minConfirmations=e.minConfirmations),void 0!==e.minConfidenceForStableField&&(this.minConfidenceForStableField=e.minConfidenceForStableField),void 0!==e.autoClearThreshold&&(this.autoClearThreshold=e.autoClearThreshold)}}class u extends n{constructor(e={}){super(),this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=2,void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult)}}class c extends n{constructor(e={}){super(),this.frameAccumulationConfiguration=new u({}),this.enableDetection=!0,this.incompleteResultHandling="ACCEPT",void 0!==e.frameAccumulationConfiguration&&(this.frameAccumulationConfiguration=new u(e.frameAccumulationConfiguration)),void 0!==e.enableDetection&&(this.enableDetection=e.enableDetection),void 0!==e.incompleteResultHandling&&(this.incompleteResultHandling=e.incompleteResultHandling)}}class d extends n{constructor(e={}){if(super(),void 0===e.symbolQuality)throw new Error("symbolQuality must be present in constructor argument");if(this.symbolQuality=e.symbolQuality,void 0===e.symbolRatio)throw new Error("symbolRatio must be present in constructor argument");this.symbolRatio=e.symbolRatio}}class l extends n{constructor(e={}){super(),this.qualityThresholds=[new d({symbolQuality:.5,symbolRatio:.5}),new d({symbolQuality:.7,symbolRatio:.3}),new d({symbolQuality:.85,symbolRatio:.3}),new d({symbolQuality:.9,symbolRatio:.1})],this.qualityIndices=["VERY_POOR","POOR","REASONABLE","GOOD","EXCELLENT"],this.detectOrientation=!1,this.maxImageSize=2e3,this.minEstimatedNumberOfSymbolsForDocument=20,this.minProcessedFraction=0,this.maxProcessedFraction=.5,this.earlyStopIfNSymbolsFound=100,this.tileSize=300,void 0!==e.qualityThresholds&&(this.qualityThresholds=e.qualityThresholds.map((e=>new d(e)))),void 0!==e.qualityIndices&&(this.qualityIndices=e.qualityIndices.map((e=>e))),void 0!==e.detectOrientation&&(this.detectOrientation=e.detectOrientation),void 0!==e.maxImageSize&&(this.maxImageSize=e.maxImageSize),void 0!==e.minEstimatedNumberOfSymbolsForDocument&&(this.minEstimatedNumberOfSymbolsForDocument=e.minEstimatedNumberOfSymbolsForDocument),void 0!==e.minProcessedFraction&&(this.minProcessedFraction=e.minProcessedFraction),void 0!==e.maxProcessedFraction&&(this.maxProcessedFraction=e.maxProcessedFraction),void 0!==e.earlyStopIfNSymbolsFound&&(this.earlyStopIfNSymbolsFound=e.earlyStopIfNSymbolsFound),void 0!==e.tileSize&&(this.tileSize=e.tileSize)}}var m;!function(e){e.From=function(e){const t=e._type;switch(t){case"ScanbotBinarizationFilter":return new h(e);case"CustomBinarizationFilter":return new f(e);case"ColorDocumentFilter":return new p(e);case"BrightnessFilter":return new g(e);case"ContrastFilter":return new v(e);case"GrayscaleFilter":return new y(e);case"LegacyFilter":return new w(e);case"WhiteBlackPointFilter":return new S(e);default:throw`Unknown child class name: ${t}`}}}(m||(m={}));class h extends n{constructor(e={}){super(),this._type="ScanbotBinarizationFilter",this.outputMode="BINARY",void 0!==e.outputMode&&(this.outputMode=e.outputMode)}}class f extends n{constructor(e={}){super(),this._type="CustomBinarizationFilter",this.outputMode="BINARY",this.denoise=.5,this.radius=32,this.preset="PRESET_4",void 0!==e.outputMode&&(this.outputMode=e.outputMode),void 0!==e.denoise&&(this.denoise=e.denoise),void 0!==e.radius&&(this.radius=e.radius),void 0!==e.preset&&(this.preset=e.preset)}}class p extends n{constructor(e={}){super(),this._type="ColorDocumentFilter"}}class g extends n{constructor(e={}){super(),this._type="BrightnessFilter",this.brightness=0,void 0!==e.brightness&&(this.brightness=e.brightness)}}class v extends n{constructor(e={}){super(),this._type="ContrastFilter",this.contrast=0,void 0!==e.contrast&&(this.contrast=e.contrast)}}class y extends n{constructor(e={}){super(),this._type="GrayscaleFilter",this.borderWidthFraction=.06,this.blackOutliersFraction=0,this.whiteOutliersFraction=.02,void 0!==e.borderWidthFraction&&(this.borderWidthFraction=e.borderWidthFraction),void 0!==e.blackOutliersFraction&&(this.blackOutliersFraction=e.blackOutliersFraction),void 0!==e.whiteOutliersFraction&&(this.whiteOutliersFraction=e.whiteOutliersFraction)}}class w extends n{constructor(e={}){super(),this._type="LegacyFilter",this.filterType=0,void 0!==e.filterType&&(this.filterType=e.filterType)}}class S extends n{constructor(e={}){super(),this._type="WhiteBlackPointFilter",this.blackPoint=0,this.whitePoint=1,void 0!==e.blackPoint&&(this.blackPoint=e.blackPoint),void 0!==e.whitePoint&&(this.whitePoint=e.whitePoint)}}class b extends n{constructor(e={}){super(),this.width=1,this.height=1,void 0!==e.width&&(this.width=e.width),void 0!==e.height&&(this.height=e.height)}}class F extends n{constructor(e={}){super(),this.isLive=!1,this.acceptedAngleScore=75,this.acceptedSizeScore=80,this.acceptedBrightnessThreshold=0,this.acceptedAspectRatioScore=85,this.aspectRatios=[],this.ignoreOrientationMismatch=!1,void 0!==e.isLive&&(this.isLive=e.isLive),void 0!==e.acceptedAngleScore&&(this.acceptedAngleScore=e.acceptedAngleScore),void 0!==e.acceptedSizeScore&&(this.acceptedSizeScore=e.acceptedSizeScore),void 0!==e.acceptedBrightnessThreshold&&(this.acceptedBrightnessThreshold=e.acceptedBrightnessThreshold),void 0!==e.acceptedAspectRatioScore&&(this.acceptedAspectRatioScore=e.acceptedAspectRatioScore),void 0!==e.aspectRatios&&(this.aspectRatios=e.aspectRatios.map((e=>new b(e)))),void 0!==e.ignoreOrientationMismatch&&(this.ignoreOrientationMismatch=e.ignoreOrientationMismatch)}}var C;!function(e){e.From=function(e){const t=e._type;switch(t){case"DefaultContentValidator":return new E(e);case"PatternContentValidator":return new _(e);default:throw`Unknown child class name: ${t}`}}}(C||(C={}));class E extends n{constructor(e={}){super(),this._type="DefaultContentValidator",this.allowedCharacters="",void 0!==e.allowedCharacters&&(this.allowedCharacters=e.allowedCharacters)}}class _ extends n{constructor(e={}){if(super(),this._type="PatternContentValidator",this.allowedCharacters="",this.matchSubstring=!1,void 0!==e.allowedCharacters&&(this.allowedCharacters=e.allowedCharacters),void 0===e.pattern)throw new Error("pattern must be present in constructor argument");this.pattern=e.pattern,void 0!==e.matchSubstring&&(this.matchSubstring=e.matchSubstring)}}class x extends n{constructor(e={}){super(),this.ocrResolutionLimit=0,this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=2,this.validator=new E({}),void 0!==e.ocrResolutionLimit&&(this.ocrResolutionLimit=e.ocrResolutionLimit),void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.validator&&(this.validator=C.From(e.validator))}}class T extends n{constructor(e={}){super(),this.extractVINFromBarcode=!1,this.ocrResolutionLimit=0,this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=2,void 0!==e.extractVINFromBarcode&&(this.extractVINFromBarcode=e.extractVINFromBarcode),void 0!==e.ocrResolutionLimit&&(this.ocrResolutionLimit=e.ocrResolutionLimit),void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult)}}var A,D;!function(e){e.From=function(e){const t=e._type;switch(t){case"BarcodeFormatCodabarConfiguration":return new k(e);case"BarcodeFormatCode11Configuration":return new Z(e);case"BarcodeFormatCode39Configuration":return new R(e);case"BarcodeFormatCode93Configuration":return new z(e);case"BarcodeFormatCode128Configuration":return new P(e);case"BarcodeFormatCode2Of5Configuration":return new M(e);case"BarcodeFormatDataBarConfiguration":return new W(e);case"BarcodeFormatDataBarExpandedConfiguration":return new O(e);case"BarcodeFormatDataBarLimitedConfiguration":return new L(e);case"BarcodeFormatITFConfiguration":return new Q(e);case"BarcodeFormatMSIPlesseyConfiguration":return new N(e);case"BarcodeFormatUpcEanConfiguration":return new B(e);case"BarcodeFormatPharmaCodeConfiguration":return new I(e);case"BarcodeFormatAztecConfiguration":return new V(e);case"BarcodeFormatQRCodeConfiguration":return new H(e);case"BarcodeFormatPDF417Configuration":return new U(e);case"BarcodeFormatMicroPDF417Configuration":return new G(e);case"BarcodeFormatDataMatrixConfiguration":return new Y(e);case"BarcodeFormatMaxiCodeConfiguration":return new X(e);case"BarcodeFormatAustraliaPostConfiguration":return new J(e);case"BarcodeFormatJapanPostConfiguration":return new q(e);case"BarcodeFormatRoyalMailConfiguration":return new K(e);case"BarcodeFormatRoyalTNTPostConfiguration":return new ee(e);case"BarcodeFormatUSPSIntelligentMailConfiguration":return new te(e);case"BarcodeFormatPharmaCodeTwoTrackConfiguration":return new re(e);case"BarcodeFormatGS1CompositeConfiguration":return new ie(e);case"BarcodeFormatCommonOneDConfiguration":return new ne(e);case"BarcodeFormatCommonTwoDConfiguration":return new oe(e);case"BarcodeFormatCommonFourStateConfiguration":return new ae(e);case"BarcodeFormatCommonConfiguration":return new se(e);default:throw`Unknown child class name: ${t}`}}}(A||(A={})),function(e){e.From=function(e){const t=e._type;switch(t){case"BarcodeFormatCodabarConfiguration":return new k(e);case"BarcodeFormatCode11Configuration":return new Z(e);case"BarcodeFormatCode39Configuration":return new R(e);case"BarcodeFormatCode93Configuration":return new z(e);case"BarcodeFormatCode128Configuration":return new P(e);case"BarcodeFormatCode2Of5Configuration":return new M(e);case"BarcodeFormatDataBarConfiguration":return new W(e);case"BarcodeFormatDataBarExpandedConfiguration":return new O(e);case"BarcodeFormatDataBarLimitedConfiguration":return new L(e);case"BarcodeFormatITFConfiguration":return new Q(e);case"BarcodeFormatMSIPlesseyConfiguration":return new N(e);case"BarcodeFormatUpcEanConfiguration":return new B(e);case"BarcodeFormatPharmaCodeConfiguration":return new I(e);default:throw`Unknown child class name: ${t}`}}}(D||(D={}));class k extends n{constructor(e={}){super(),this._type="BarcodeFormatCodabarConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumTextLength=0,this.maximumTextLength=0,this.returnStartEnd=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.returnStartEnd&&(this.returnStartEnd=e.returnStartEnd)}}class Z extends n{constructor(e={}){super(),this._type="BarcodeFormatCode11Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.checksum=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.checksum&&(this.checksum=e.checksum)}}class R extends n{constructor(e={}){super(),this._type="BarcodeFormatCode39Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.code32=!1,this.code39=!0,this.pzn=!0,this.tryCode39ExtendedMode=!1,this.useCode39CheckDigit=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.code32&&(this.code32=e.code32),void 0!==e.code39&&(this.code39=e.code39),void 0!==e.pzn&&(this.pzn=e.pzn),void 0!==e.tryCode39ExtendedMode&&(this.tryCode39ExtendedMode=e.tryCode39ExtendedMode),void 0!==e.useCode39CheckDigit&&(this.useCode39CheckDigit=e.useCode39CheckDigit)}}class z extends n{constructor(e={}){super(),this._type="BarcodeFormatCode93Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumTextLength=0,this.maximumTextLength=0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength)}}class P extends n{constructor(e={}){super(),this._type="BarcodeFormatCode128Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",this.minimumTextLength=0,this.maximumTextLength=0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength)}}class M extends n{constructor(e={}){super(),this._type="BarcodeFormatCode2Of5Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.iata2of5=!0,this.code25=!1,this.industrial2of5=!0,this.useIATA2OF5Checksum=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.iata2of5&&(this.iata2of5=e.iata2of5),void 0!==e.code25&&(this.code25=e.code25),void 0!==e.industrial2of5&&(this.industrial2of5=e.industrial2of5),void 0!==e.useIATA2OF5Checksum&&(this.useIATA2OF5Checksum=e.useIATA2OF5Checksum)}}class W extends n{constructor(e={}){super(),this._type="BarcodeFormatDataBarConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class O extends n{constructor(e={}){super(),this._type="BarcodeFormatDataBarExpandedConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class L extends n{constructor(e={}){super(),this._type="BarcodeFormatDataBarLimitedConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class Q extends n{constructor(e={}){super(),this._type="BarcodeFormatITFConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumTextLength=0,this.maximumTextLength=0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength)}}class N extends n{constructor(e={}){super(),this._type="BarcodeFormatMSIPlesseyConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.checksumAlgorithms=["MOD_10"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.checksumAlgorithms&&(this.checksumAlgorithms=e.checksumAlgorithms.map((e=>e)))}}class B extends n{constructor(e={}){super(),this._type="BarcodeFormatUpcEanConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.ean8=!0,this.ean13=!0,this.upca=!0,this.upce=!0,this.extensions="ALLOW_ANY",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.ean8&&(this.ean8=e.ean8),void 0!==e.ean13&&(this.ean13=e.ean13),void 0!==e.upca&&(this.upca=e.upca),void 0!==e.upce&&(this.upce=e.upce),void 0!==e.extensions&&(this.extensions=e.extensions)}}class I extends n{constructor(e={}){super(),this._type="BarcodeFormatPharmaCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumValue=16,this.allowNarrowBarsOnly=!1,this.allowWideBarsOnly=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumValue&&(this.minimumValue=e.minimumValue),void 0!==e.allowNarrowBarsOnly&&(this.allowNarrowBarsOnly=e.allowNarrowBarsOnly),void 0!==e.allowWideBarsOnly&&(this.allowWideBarsOnly=e.allowWideBarsOnly)}}var $,j;!function(e){e.From=function(e){const t=e._type;switch(t){case"BarcodeFormatAztecConfiguration":return new V(e);case"BarcodeFormatQRCodeConfiguration":return new H(e);case"BarcodeFormatPDF417Configuration":return new U(e);case"BarcodeFormatMicroPDF417Configuration":return new G(e);case"BarcodeFormatDataMatrixConfiguration":return new Y(e);case"BarcodeFormatMaxiCodeConfiguration":return new X(e);default:throw`Unknown child class name: ${t}`}}}($||($={}));class V extends n{constructor(e={}){super(),this._type="BarcodeFormatAztecConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class H extends n{constructor(e={}){super(),this._type="BarcodeFormatQRCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,this.qr=!0,this.microQr=!1,this.rmqr=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.qr&&(this.qr=e.qr),void 0!==e.microQr&&(this.microQr=e.microQr),void 0!==e.rmqr&&(this.rmqr=e.rmqr)}}class U extends n{constructor(e={}){super(),this._type="BarcodeFormatPDF417Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class G extends n{constructor(e={}){super(),this._type="BarcodeFormatMicroPDF417Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class Y extends n{constructor(e={}){super(),this._type="BarcodeFormatDataMatrixConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class X extends n{constructor(e={}){super(),this._type="BarcodeFormatMaxiCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}!function(e){e.From=function(e){const t=e._type;switch(t){case"BarcodeFormatAustraliaPostConfiguration":return new J(e);case"BarcodeFormatJapanPostConfiguration":return new q(e);case"BarcodeFormatRoyalMailConfiguration":return new K(e);case"BarcodeFormatRoyalTNTPostConfiguration":return new ee(e);case"BarcodeFormatUSPSIntelligentMailConfiguration":return new te(e);case"BarcodeFormatPharmaCodeTwoTrackConfiguration":return new re(e);default:throw`Unknown child class name: ${t}`}}}(j||(j={}));class J extends n{constructor(e={}){super(),this._type="BarcodeFormatAustraliaPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.australiaPostCustomerFormat="ALPHA_NUMERIC",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.australiaPostCustomerFormat&&(this.australiaPostCustomerFormat=e.australiaPostCustomerFormat)}}class q extends n{constructor(e={}){super(),this._type="BarcodeFormatJapanPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class K extends n{constructor(e={}){super(),this._type="BarcodeFormatRoyalMailConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.stripCheckDigits=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits)}}class ee extends n{constructor(e={}){super(),this._type="BarcodeFormatRoyalTNTPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class te extends n{constructor(e={}){super(),this._type="BarcodeFormatUSPSIntelligentMailConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class re extends n{constructor(e={}){super(),this._type="BarcodeFormatPharmaCodeTwoTrackConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimumValue=364,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimumValue&&(this.minimumValue=e.minimumValue)}}class ie extends n{constructor(e={}){super(),this._type="BarcodeFormatGS1CompositeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class ne extends n{constructor(e={}){super(),this._type="BarcodeFormatCommonOneDConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.gs1Handling="PARSE",this.strictMode=!0,this.formats=["CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_8","EAN_13","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","MSI_PLESSEY","PHARMA_CODE","PZN","UPC_A","UPC_E"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class oe extends n{constructor(e={}){super(),this._type="BarcodeFormatCommonTwoDConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,this.formats=["AZTEC","DATA_MATRIX","MAXI_CODE","MICRO_QR_CODE","MICRO_PDF_417","PDF_417","QR_CODE","RMQR_CODE"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class ae extends n{constructor(e={}){super(),this._type="BarcodeFormatCommonFourStateConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.formats=["AUSTRALIA_POST","JAPAN_POST","ROYAL_MAIL","ROYAL_TNT_POST","USPS_INTELLIGENT_MAIL"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class se extends n{constructor(e={}){super(),this._type="BarcodeFormatCommonConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.gs1Handling="PARSE",this.strictMode=!0,this.formats=["AZTEC","CODABAR","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","ITF","MICRO_QR_CODE","PDF_417","QR_CODE","UPC_A","UPC_E"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class ue extends n{constructor(e={}){super(),this.barcodeFormatConfigurations=[new se({})],this.extractedDocumentFormats=["AAMVA","BOARDING_PASS","DE_MEDICAL_PLAN","MEDICAL_CERTIFICATE","ID_CARD_PDF_417","SEPA","SWISS_QR","VCARD","GS1","HIBC"],this.onlyAcceptDocuments=!1,this.returnBarcodeImage=!0,this.engineMode="NEXT_GEN_LOW_POWER",this.live=!0,void 0!==e.barcodeFormatConfigurations&&(this.barcodeFormatConfigurations=e.barcodeFormatConfigurations.map((e=>A.From(e)))),void 0!==e.extractedDocumentFormats&&(this.extractedDocumentFormats=e.extractedDocumentFormats.map((e=>e))),void 0!==e.onlyAcceptDocuments&&(this.onlyAcceptDocuments=e.onlyAcceptDocuments),void 0!==e.returnBarcodeImage&&(this.returnBarcodeImage=e.returnBarcodeImage),void 0!==e.engineMode&&(this.engineMode=e.engineMode),void 0!==e.live&&(this.live=e.live)}}var ce;!function(e){e.From=function(e){const t=e._type;switch(t){case"DateValidationConfiguration":return new de(e);case"EuropeanHealthInsuranceCardConfiguration":return new me(e);case"MRZFallbackConfiguration":return new he(e);case"DocumentDataExtractorCommonConfiguration":return new fe(e);default:throw`Unknown child class name: ${t}`}}}(ce||(ce={}));class de extends n{constructor(e={}){if(super(),this._type="DateValidationConfiguration",this.minYear=0,this.maxYear=2999,void 0!==e.minYear&&(this.minYear=e.minYear),void 0!==e.maxYear&&(this.maxYear=e.maxYear),void 0===e.fieldTypeName)throw new Error("fieldTypeName must be present in constructor argument");this.fieldTypeName=e.fieldTypeName}}const le=["AUSTRIA","BELGIUM","BULGARIA","CROATIA","CYPRUS","CZECH_REPUBLIC","DENMARK","ESTONIA","FINLAND","FRANCE","GERMANY","GREECE","HUNGARY","IRELAND","ITALY","LATVIA","LITHUANIA","LUXEMBOURG","MALTA","NETHERLANDS","POLAND","PORTUGAL","ROMANIA","SLOVAKIA","SLOVENIA","SPAIN","SWEDEN","SWITZERLAND"];class me extends n{constructor(e={}){super(),this._type="EuropeanHealthInsuranceCardConfiguration",this.expectedCountry=null,void 0!==e.expectedCountry&&(this.expectedCountry=null!=e.expectedCountry&&le.includes(e.expectedCountry)?e.expectedCountry:null)}}class he extends n{constructor(e={}){super(),this._type="MRZFallbackConfiguration",this.acceptedCountries=[],this.acceptedMRZTypes=[],void 0!==e.acceptedCountries&&(this.acceptedCountries=e.acceptedCountries.map((e=>e))),void 0!==e.acceptedMRZTypes&&(this.acceptedMRZTypes=e.acceptedMRZTypes.map((e=>e)))}}class fe extends n{constructor(e={}){if(super(),this._type="DocumentDataExtractorCommonConfiguration",void 0===e.acceptedDocumentTypes)throw new Error("acceptedDocumentTypes must be present in constructor argument");this.acceptedDocumentTypes=e.acceptedDocumentTypes.map((e=>e))}}class pe extends n{constructor(e={}){super(),this.mode="LIVE",void 0!==e.mode&&(this.mode=e.mode)}}class ge extends n{constructor(e={}){if(super(),this.resultAccumulationConfig=new s({}),this.fieldExcludeList=[],void 0!==e.resultAccumulationConfig&&(this.resultAccumulationConfig=new s(e.resultAccumulationConfig)),void 0!==e.fieldExcludeList&&(this.fieldExcludeList=e.fieldExcludeList.map((e=>e))),void 0===e.configurations)throw new Error("configurations must be present in constructor argument");this.configurations=e.configurations.map((e=>ce.From(e)))}}var ve,ye;!function(e){e.From=function(e){const t=e._type;switch(t){case"UserFieldDoubleValue":return new we(e);case"UserFieldStringValue":return new Se(e);case"UserFieldIntValue":return new be(e);default:throw`Unknown child class name: ${t}`}}}(ve||(ve={}));class we extends n{constructor(e={}){if(super(),this._type="UserFieldDoubleValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class Se extends n{constructor(e={}){if(super(),this._type="UserFieldStringValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class be extends n{constructor(e={}){if(super(),this._type="UserFieldIntValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class Fe extends n{constructor(e={}){if(super(),void 0===e.tag)throw new Error("tag must be present in constructor argument");if(this.tag=e.tag,void 0===e.name)throw new Error("name must be present in constructor argument");if(this.name=e.name,void 0===e.value)throw new Error("value must be present in constructor argument");this.value=ve.From(e.value)}}class Ce extends n{constructor(e={}){super(),this.compression="LZW",this.jpegQuality=80,this.zipCompressionLevel=6,this.dpi=72,this.userFields=[],this.binarizationFilter=null,void 0!==e.compression&&(this.compression=e.compression),void 0!==e.jpegQuality&&(this.jpegQuality=e.jpegQuality),void 0!==e.zipCompressionLevel&&(this.zipCompressionLevel=e.zipCompressionLevel),void 0!==e.dpi&&(this.dpi=e.dpi),void 0!==e.userFields&&(this.userFields=e.userFields.map((e=>new Fe(e)))),void 0!==e.binarizationFilter&&(this.binarizationFilter=null!=e.binarizationFilter?m.From(e.binarizationFilter):null)}}(ye=Ce||(Ce={})).defaultCompression="LZW",ye.binaryDocumentOptimizedCompression="CCITT_T6";var Ee=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))};let _e;class xe extends Error{}class Te{constructor(e){this.id=e}}const Ae={};function De(e){const t=Math.random().toString(36);return Ae[t]=e,new Te(t)}function ke(e){if(!Ae.hasOwnProperty(e.id))throw new Error(`Object ${e.id} does not exist`);return Ae[e.id]}function Ze(e){const t=ke(e);t.delete&&t.delete(),delete Ae[e.id]}const Re={initialize:function(e,t,n,o,a){return Ee(this,void 0,void 0,(function*(){try{const{captureConsole:s,jpegQuality:u=80,requestSuffix:c=""}=a||{};s&&(console.log=function(...e){self.postMessage({log:e})},console.error=function(...e){self.postMessage({logError:e})});const d=r(2),l=r(3),m={locateFile:function(e,r){let n;return n=t?Object(i.c)(t)?t:"":o,e.endsWith(".worker.js")&&l?l.default:new URL(n+e+c,location.href).href}},h=Object(i.b)(a),f=h.includes("-threads");m.mainScriptUrlOrBlob=m.locateFile(`ScanbotSDK.Asm${h}.js`);let p;if(!!navigator.userAgentData&&navigator.userAgentData.brands.some((e=>"Chromium"===e.brand))&&f){let e=[2147483648,805306368,536870912],t=134217728;const r=["barcode-scanner"],i=67108864;"undefined"!=typeof SCANBOTSDK_FLAVOR&&r.includes(SCANBOTSDK_FLAVOR)&&(t=i,e.push(4*i));for(let r=0;r<e.length;r++){const i=e[r];try{p=new WebAssembly.Memory({initial:0,maximum:i/65536,shared:!0}),p.grow(t/65536);break}catch(t){if(r===e.length-1)throw t}}}return p&&(m.wasmMemory=p),m.onAbort=function(e){const t="\nNo further calls to the SDK are possible until you destroy and reinitialize the SDK.";throw new xe("OOM"===e?"ScanbotSDK ran out of memory. "+t:"ScanbotSDK ran into an unexpected error: "+e+t)},yield d(m),_e=m,_e.initialize(e||"",n,u)}catch(e){throw console.error(e),e}}))},getLicenseInfo:function(){return Ee(this,void 0,void 0,(function*(){return _e.getLicenseInfo()}))},encodeJpeg:function(e){return Ee(this,void 0,void 0,(function*(){const t=Me(e);return ze(_e.encodeJpeg(t))}))},detectDocument:function(e,t){return Ee(this,void 0,void 0,(function*(){const r=new _e.DocumentDetector(new F(t)),i=r.detect(Me(e));return r.delete(),ze(i)}))},detectAndCropDocument:function(e){return Ee(this,void 0,void 0,(function*(){let t=ze(_e.detectAndCropDocument(Me(e)));return null===t.originalImage&&(t.originalImage=e),t}))},createDocumentScanner:function(e){return Ee(this,void 0,void 0,(function*(){return De(new _e.DocumentDetector(new F(e)))}))},documentScannerDetect:function(e,t){return Ee(this,void 0,void 0,(function*(){return Pe(ke(e).detect(Me(t)),t)}))},parseBarcodeDocument:function(e,t){return Ee(this,void 0,void 0,(function*(){return ze(_e.parseBarcodeDocument(e,t))}))},createBarcodeScanner:function(e){return Ee(this,void 0,void 0,(function*(){return De(new _e.BarcodeRecognizer(new ue(e)))}))},scanBarcodes:function(e,t){return Ee(this,void 0,void 0,(function*(){return Pe(ke(e).recognize(Me(t)),t)}))},beginPdf:function(e){return Ee(this,void 0,void 0,(function*(){return De(new _e.PdfGenerationContext(new a(e)))}))},addPageToPdf:function(e,t){return Ee(this,void 0,void 0,(function*(){ze(ke(e).addPage(Me(t)))}))},completePdf:function(e){return Ee(this,void 0,void 0,(function*(){try{const t=ke(e);return ze(t.complete())}finally{Ze(e)}}))},beginTiff:function(e){return Ee(this,void 0,void 0,(function*(){const t=new _e.TiffGenerationContext(new Ce(e));return ze(t.begin()),De(t)}))},addPageToTiff:function(e,t,r){return Ee(this,void 0,void 0,(function*(){return ze(ke(e).addPage(Me(t),r))}))},completeTiff:function(e){return Ee(this,void 0,void 0,(function*(){try{const t=ke(e);return ze(t.complete())}finally{Ze(e)}}))},createMRZScanner:function(e){return Ee(this,void 0,void 0,(function*(){e.incompleteResultHandling="REJECT",e.enableDetection=!1;return De(new _e.MRZScannerContext(new c(e)))}))},scanMRZ:function(e,t){return Ee(this,void 0,void 0,(function*(){return Pe(ke(e).scan(Me(t)),t)}))},releaseObject:function(e){return Ee(this,void 0,void 0,(function*(){Ze(e)}))},createOcrEngine:function(){return Ee(this,void 0,void 0,(function*(){return De(new _e.TLDROcrContext)}))},performOcr:function(e,t){return Ee(this,void 0,void 0,(function*(){return ze(ke(e).performOcr(Me(t)))}))},createTextPatternScanner:function(e){return Ee(this,void 0,void 0,(function*(){return De(new _e.GenericTextLineScanner(new x(e)))}))},scanTextLine:function(e,t){return Ee(this,void 0,void 0,(function*(){return Pe(ke(e).recognize(Me(t)),t)}))},cleanTextLineScanningQueue:function(e){return Ee(this,void 0,void 0,(function*(){ke(e).cleanRecognitionQueue()}))},createVinScanner:function(e){return Ee(this,void 0,void 0,(function*(){return De(new _e.VinScanner(new T(e)))}))},scanVin:function(e,t){return Ee(this,void 0,void 0,(function*(){return Pe(ke(e).run(Me(t)),t)}))},cleanVinScanningQueue:function(e){return Ee(this,void 0,void 0,(function*(){ke(e).cleanRecognitionQueue()}))},createDocumentQualityAnalyzer:function(e){return Ee(this,void 0,void 0,(function*(){return De(new _e.DocumentQualityAnalyzer(new l(e)))}))},documentQualityAnalyzerAnalyze:function(e,t){return Ee(this,void 0,void 0,(function*(){return ze(ke(e).analyze(Me(t)))}))},imageApplyFilter:function(e,t){return Ee(this,void 0,void 0,(function*(){return ze(_e.imageApplyFilter(Me(e),m.From(t)))}))},imageCrop:function(e,t){return Ee(this,void 0,void 0,(function*(){return ze(_e.imageCrop(Me(e),t))}))},imageResize:function(e,t){return Ee(this,void 0,void 0,(function*(){return ze(_e.imageResize(Me(e),t))}))},imageRotate:function(e,t){return Ee(this,void 0,void 0,(function*(){return ze(_e.imageRotate(Me(e),t))}))},documentDataExtractorCreate:function(e){return Ee(this,void 0,void 0,(function*(){return De(new _e.GenericDocumentRecognizer(new ge(e)))}))},documentDataExtractorExtract:function(e,t,r){return Ee(this,void 0,void 0,(function*(){return Pe(ke(e).recognize(Me(t),new pe(r)),t)}))},version:function(){return Ee(this,void 0,void 0,(function*(){return"7.0.0-dev.2"}))},__hasModuleFunction:function(e){return Ee(this,void 0,void 0,(function*(){return _e.hasOwnProperty(e)}))},__callModuleFunction:function(e,t=[]){return Ee(this,void 0,void 0,(function*(){return _e[e](...t)}))}};function ze(e){if(e.errorMessage)throw new Error(e.errorMessage);return e.result}function Pe(e,t){return Object.assign(Object.assign({},ze(e)),{originalImage:t})}function Me(e){if(!e)throw new Error("null image data or buffer");if("format"in e&&"string"==typeof e.format)return e;if("width"in e&&"number"==typeof e.width)return{data:e.data,width:e.width,height:e.height,format:"",step:0};return{data:ArrayBuffer.isView(e)?e:new Uint8Array(e),width:-1,height:-1,format:"",step:0}}onmessage=function(e){const{command:t,args:r,ticket:n}=e.data;_e||"initialize"===t?(()=>Ee(this,void 0,void 0,(function*(){return yield Re[t].apply(null,r)})))().then((e=>{const t=Object(i.a)(e);self.postMessage({ticket:n,result:e},t)})).catch((e=>{if(e instanceof xe)self.postMessage({ticket:n,unrecoverableError:e});else{const t="number"==typeof e?Error(_e.stringFromException(e)):e;console.error(t),self.postMessage({ticket:n,recoverableError:t})}})):self.postMessage({ticket:n,recoverableError:new Error("WASM module not loaded yet.")})}}]);
1
+ !function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}([function(e,t,r){"use strict";(function(e){function i(e,t=!1){const r=[];if(t)return r;return function e(t){if(t)if(t.constructor===ImageData)r.push(t.data.buffer);else if(t.constructor===ArrayBuffer)r.push(t);else if(ArrayBuffer.isView(t))r.push(t.buffer);else if(Array.isArray(t))for(let r=0;r<t.length;++r)e(t[r]);else if(t.constructor===Object)for(const r in t)t.hasOwnProperty(r)&&e(t[r])}(e),r}function n(e){return e.startsWith("http:")||e.startsWith("https:")}function o(t){const{allowSimd:r=!0,allowThreads:i=!0}=t||{};let n="";if(r&&function(){try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))}catch(e){return!1}}()){n+="-simd";i&&function(){if("undefined"!=typeof e&&"undefined"!=typeof e.versions&&"undefined"!=typeof e.versions.node)return!1;if(/(iPad|iPhone|iPod)/g.test(navigator.userAgent))return!1;try{return(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]))}catch(e){return!1}}()&&(n+="-threads")}return n}r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return n})),r.d(t,"b",(function(){return o}))}).call(this,r(1))},function(e,t){var r,i,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var u,c=[],d=!1,l=-1;function m(){d&&u&&(d=!1,u.length?c=u.concat(c):l=-1,c.length&&h())}function h(){if(!d){var e=s(m);d=!0;for(var t=c.length;t;){for(u=c,c=[];++l<t;)u&&u[l].run();l=-1,t=c.length}u=null,d=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new f(e,t)),1!==c.length||d||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},function(e,t,r){"use strict";var i,n=(i="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e={}){function t(){return _.buffer!=A.buffer&&Q(),A}function r(){return _.buffer!=A.buffer&&Q(),D}function n(){return _.buffer!=A.buffer&&Q(),k}function o(){return _.buffer!=A.buffer&&Q(),Z}function a(){return _.buffer!=A.buffer&&Q(),z}function s(){return _.buffer!=A.buffer&&Q(),P}function u(){return _.buffer!=A.buffer&&Q(),M}var c,d,l=e;l.ready=new Promise(((e,t)=>{c=e,d=t}));var m,h,f,p=Object.assign({},l),g="./this.program",v=(e,t)=>{throw t},y=l.ENVIRONMENT_IS_PTHREAD||!1,w="";function S(e){return l.locateFile?l.locateFile(e,w):w+e}w=self.location.href,i&&(w=i),w=0!==w.indexOf("blob:")?w.substr(0,w.replace(/[?#].*/,"").lastIndexOf("/")+1):"",m=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},f=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)},h=(e,t,r)=>{var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=()=>{200==i.status||0==i.status&&i.response?t(i.response):r()},i.onerror=r,i.send(null)};var b,F=l.print||console.log.bind(console),C=l.printErr||console.error.bind(console);Object.assign(l,p),p=null,l.arguments&&l.arguments,l.thisProgram&&(g=l.thisProgram),l.quit&&(v=l.quit),l.wasmBinary&&(b=l.wasmBinary);var _,E,x=l.noExitRuntime||!0;"object"!=typeof WebAssembly&&re("no native wasm support detected");var T,A,D,k,Z,z,P,R,M,W=!1;function O(e,t){e||re(t)}function Q(){var e=_.buffer;l.HEAP8=A=new Int8Array(e),l.HEAP16=k=new Int16Array(e),l.HEAPU8=D=new Uint8Array(e),l.HEAPU16=Z=new Uint16Array(e),l.HEAP32=z=new Int32Array(e),l.HEAPU32=P=new Uint32Array(e),l.HEAPF32=R=new Float32Array(e),l.HEAPF64=M=new Float64Array(e)}var L,N=l.INITIAL_MEMORY||67108864;if(O(N>=4194304,"INITIAL_MEMORY should be larger than STACK_SIZE, was "+N+"! (STACK_SIZE=4194304)"),y)_=l.wasmMemory;else if(l.wasmMemory)_=l.wasmMemory;else if(!((_=new WebAssembly.Memory({initial:N/65536,maximum:32768,shared:!0})).buffer instanceof SharedArrayBuffer))throw C("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),Error("bad memory");Q(),N=_.buffer.byteLength;var B=[],I=[],$=[],V=0;function j(){return x||V>0}function H(){y||(l.noFSInit||Ee.init.initialized||Ee.init(),Ee.ignorePermissions=!1,Se.init(),ze(I))}function U(e){B.unshift(e)}var G,Y,X,J=0,q=null,K=null;function ee(e){J++,l.monitorRunDependencies&&l.monitorRunDependencies(J)}function te(e){if(J--,l.monitorRunDependencies&&l.monitorRunDependencies(J),0==J&&(null!==q&&(clearInterval(q),q=null),K)){var t=K;K=null,t()}}function re(e){l.onAbort&&l.onAbort(e),C(e="Aborted("+e+")"),W=!0,T=1,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw d(t),t}function ie(e){return e.startsWith("data:application/octet-stream;base64,")}function ne(e){if(e==G&&b)return new Uint8Array(b);if(f)return f(e);throw"both async and sync fetching of the wasm failed"}function oe(e,t,r){return function(e){return b||"function"!=typeof fetch?Promise.resolve().then((()=>ne(e))):fetch(e,{credentials:"same-origin"}).then((t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((()=>ne(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(r,(e=>{C(`failed to asynchronously prepare wasm: ${e}`),re(e)}))}ie(G="ScanbotSDK.Asm-simd-threads.wasm")||(G=S(G));var ae={1378364:e=>si(function(){return this[xe(e)].toString()}.apply((0,eval)("(()=>this)()")))};function se(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var ue=e=>{e.terminate(),e.onmessage=e=>{}},ce=e=>{var t=Ze.pthreads[e];O(t),Ze.returnWorkerToPool(t)},de=e=>{var t=Ze.getNewWorker();if(!t)return 6;Ze.runningWorkers.push(t),Ze.pthreads[e.pthread_ptr]=t,t.pthread_ptr=e.pthread_ptr;var r={cmd:"run",start_routine:e.startRoutine,arg:e.arg,pthread_ptr:e.pthread_ptr};return t.postMessage(r,e.transferList),0},le={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,t)=>{for(var r=0,i=e.length-1;i>=0;i--){var n=e[i];"."===n?e.splice(i,1):".."===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=le.isAbs(e),r="/"===e.substr(-1);return(e=le.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=le.splitPath(e),r=t[0],i=t[1];return r||i?(i&&(i=i.substr(0,i.length-1)),r+i):"."},basename:e=>{if("/"===e)return"/";var t=(e=(e=le.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:function(){var e=Array.prototype.slice.call(arguments);return le.normalize(e.join("/"))},join2:(e,t)=>le.normalize(e+"/"+t)},me=e=>(me=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>(e.set(crypto.getRandomValues(new Uint8Array(e.byteLength))),e);re("initRandomDevice")})())(e),he={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var i=r>=0?arguments[r]:Ee.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");if(!i)return"";e=i+"/"+e,t=le.isAbs(i)}return(t?"/":"")+(e=le.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))||"."},relative:(e,t)=>{function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=he.resolve(e).substr(1),t=he.resolve(t).substr(1);for(var i=r(e.split("/")),n=r(t.split("/")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var u=[];for(s=a;s<i.length;s++)u.push("..");return(u=u.concat(n.slice(a))).join("/")}},fe="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,pe=(e,t,r)=>{for(var i=t+r,n=t;e[n]&&!(n>=i);)++n;if(n-t>16&&e.buffer&&fe)return fe.decode(e.buffer instanceof SharedArrayBuffer?e.slice(t,n):e.subarray(t,n));for(var o="";t<n;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var u=63&e[t++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&e[t++])<65536)o+=String.fromCharCode(a);else{var c=a-65536;o+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o},ge=[],ve=e=>{for(var t=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);i<=127?t++:i<=2047?t+=2:i>=55296&&i<=57343?(t+=4,++r):t+=3}return t},ye=(e,t,r,i)=>{if(!(i>0))return 0;for(var n=r,o=r+i-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(r>=o)break;t[r++]=s}else if(s<=2047){if(r+1>=o)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=o)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-n};function we(e,t,r){var i=r>0?r:ve(e)+1,n=new Array(i),o=ye(e,n,0,n.length);return t&&(n.length=o),n}var Se={ttys:[],init(){},shutdown(){},register(e,t){Se.ttys[e]={input:[],output:[],ops:t},Ee.registerDevice(e,Se.stream_ops)},stream_ops:{open(e){var t=Se.ttys[e.node.rdev];if(!t)throw new Ee.ErrnoError(43);e.tty=t,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,t,r,i,n){if(!e.tty||!e.tty.ops.get_char)throw new Ee.ErrnoError(60);for(var o=0,a=0;a<i;a++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new Ee.ErrnoError(29)}if(void 0===s&&0===o)throw new Ee.ErrnoError(6);if(null==s)break;o++,t[r+a]=s}return o&&(e.node.timestamp=Date.now()),o},write(e,t,r,i,n){if(!e.tty||!e.tty.ops.put_char)throw new Ee.ErrnoError(60);try{for(var o=0;o<i;o++)e.tty.ops.put_char(e.tty,t[r+o])}catch(e){throw new Ee.ErrnoError(29)}return i&&(e.node.timestamp=Date.now()),o}},default_tty_ops:{get_char:e=>(()=>{if(!ge.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e)return null;ge=we(e,!0)}return ge.shift()})(),put_char(e,t){null===t||10===t?(F(pe(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(F(pe(e.output,0)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,t,r)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,t){null===t||10===t?(C(pe(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(C(pe(e.output,0)),e.output=[])}}},be=e=>{e=((e,t)=>Math.ceil(e/t)*t)(e,65536);var t=Ci(65536,e);return t?((e,t)=>(r().fill(0,e,e+t),e))(t,e):0},Fe={ops_table:null,mount:e=>Fe.createNode(null,"/",16895,0),createNode(e,t,r,i){if(Ee.isBlkdev(r)||Ee.isFIFO(r))throw new Ee.ErrnoError(63);Fe.ops_table||(Fe.ops_table={dir:{node:{getattr:Fe.node_ops.getattr,setattr:Fe.node_ops.setattr,lookup:Fe.node_ops.lookup,mknod:Fe.node_ops.mknod,rename:Fe.node_ops.rename,unlink:Fe.node_ops.unlink,rmdir:Fe.node_ops.rmdir,readdir:Fe.node_ops.readdir,symlink:Fe.node_ops.symlink},stream:{llseek:Fe.stream_ops.llseek}},file:{node:{getattr:Fe.node_ops.getattr,setattr:Fe.node_ops.setattr},stream:{llseek:Fe.stream_ops.llseek,read:Fe.stream_ops.read,write:Fe.stream_ops.write,allocate:Fe.stream_ops.allocate,mmap:Fe.stream_ops.mmap,msync:Fe.stream_ops.msync}},link:{node:{getattr:Fe.node_ops.getattr,setattr:Fe.node_ops.setattr,readlink:Fe.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Fe.node_ops.getattr,setattr:Fe.node_ops.setattr},stream:Ee.chrdev_stream_ops}});var n=Ee.createNode(e,t,r,i);return Ee.isDir(n.mode)?(n.node_ops=Fe.ops_table.dir.node,n.stream_ops=Fe.ops_table.dir.stream,n.contents={}):Ee.isFile(n.mode)?(n.node_ops=Fe.ops_table.file.node,n.stream_ops=Fe.ops_table.file.stream,n.usedBytes=0,n.contents=null):Ee.isLink(n.mode)?(n.node_ops=Fe.ops_table.link.node,n.stream_ops=Fe.ops_table.link.stream):Ee.isChrdev(n.mode)&&(n.node_ops=Fe.ops_table.chrdev.node,n.stream_ops=Fe.ops_table.chrdev.stream),n.timestamp=Date.now(),e&&(e.contents[t]=n,e.timestamp=n.timestamp),n},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var i=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(i.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr(e){var t={};return t.dev=Ee.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,Ee.isDir(e.mode)?t.size=4096:Ee.isFile(e.mode)?t.size=e.usedBytes:Ee.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&Fe.resizeFileStorage(e,t.size)},lookup(e,t){throw Ee.genericErrors[44]},mknod:(e,t,r,i)=>Fe.createNode(e,t,r,i),rename(e,t,r){if(Ee.isDir(e.mode)){var i;try{i=Ee.lookupNode(t,r)}catch(e){}if(i)for(var n in i.contents)throw new Ee.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},unlink(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir(e,t){var r=Ee.lookupNode(e,t);for(var i in r.contents)throw new Ee.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir(e){var t=[".",".."];for(var r in e.contents)e.contents.hasOwnProperty(r)&&t.push(r);return t},symlink(e,t,r){var i=Fe.createNode(e,t,41471,0);return i.link=r,i},readlink(e){if(!Ee.isLink(e.mode))throw new Ee.ErrnoError(28);return e.link}},stream_ops:{read(e,t,r,i,n){var o=e.node.contents;if(n>=e.node.usedBytes)return 0;var a=Math.min(e.node.usedBytes-n,i);if(a>8&&o.subarray)t.set(o.subarray(n,n+a),r);else for(var s=0;s<a;s++)t[r+s]=o[n+s];return a},write(e,r,i,n,o,a){if(r.buffer===t().buffer&&(a=!1),!n)return 0;var s=e.node;if(s.timestamp=Date.now(),r.subarray&&(!s.contents||s.contents.subarray)){if(a)return s.contents=r.subarray(i,i+n),s.usedBytes=n,n;if(0===s.usedBytes&&0===o)return s.contents=r.slice(i,i+n),s.usedBytes=n,n;if(o+n<=s.usedBytes)return s.contents.set(r.subarray(i,i+n),o),n}if(Fe.expandFileStorage(s,o+n),s.contents.subarray&&r.subarray)s.contents.set(r.subarray(i,i+n),o);else for(var u=0;u<n;u++)s.contents[o+u]=r[i+u];return s.usedBytes=Math.max(s.usedBytes,o+n),n},llseek(e,t,r){var i=t;if(1===r?i+=e.position:2===r&&Ee.isFile(e.node.mode)&&(i+=e.node.usedBytes),i<0)throw new Ee.ErrnoError(28);return i},allocate(e,t,r){Fe.expandFileStorage(e.node,t+r),e.node.usedBytes=Math.max(e.node.usedBytes,t+r)},mmap(e,r,i,n,o){if(!Ee.isFile(e.node.mode))throw new Ee.ErrnoError(43);var a,s,u=e.node.contents;if(2&o||u.buffer!==t().buffer){if((i>0||i+r<u.length)&&(u=u.subarray?u.subarray(i,i+r):Array.prototype.slice.call(u,i,i+r)),s=!0,!(a=be(r)))throw new Ee.ErrnoError(48);t().set(u,a)}else s=!1,a=u.byteOffset;return{ptr:a,allocated:s}},msync:(e,t,r,i,n)=>(Fe.stream_ops.write(e,t,0,i,r,!1),0)}},Ce=l.preloadPlugins||[],_e=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},Ee={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(e,t={}){if(!(e=he.resolve(e)))return{path:"",node:null};if((t=Object.assign({follow_mount:!0,recurse_count:0},t)).recurse_count>8)throw new Ee.ErrnoError(32);for(var r=e.split("/").filter((e=>!!e)),i=Ee.root,n="/",o=0;o<r.length;o++){var a=o===r.length-1;if(a&&t.parent)break;if(i=Ee.lookupNode(i,r[o]),n=le.join2(n,r[o]),Ee.isMountpoint(i)&&(!a||a&&t.follow_mount)&&(i=i.mounted.root),!a||t.follow)for(var s=0;Ee.isLink(i.mode);){var u=Ee.readlink(n);if(n=he.resolve(le.dirname(n),u),i=Ee.lookupPath(n,{recurse_count:t.recurse_count+1}).node,s++>40)throw new Ee.ErrnoError(32)}}return{path:n,node:i}},getPath(e){for(var t;;){if(Ee.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?`${r}/${t}`:r+t:r}t=t?`${e.name}/${t}`:e.name,e=e.parent}},hashName(e,t){for(var r=0,i=0;i<t.length;i++)r=(r<<5)-r+t.charCodeAt(i)|0;return(e+r>>>0)%Ee.nameTable.length},hashAddNode(e){var t=Ee.hashName(e.parent.id,e.name);e.name_next=Ee.nameTable[t],Ee.nameTable[t]=e},hashRemoveNode(e){var t=Ee.hashName(e.parent.id,e.name);if(Ee.nameTable[t]===e)Ee.nameTable[t]=e.name_next;else for(var r=Ee.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode(e,t){var r=Ee.mayLookup(e);if(r)throw new Ee.ErrnoError(r,e);for(var i=Ee.hashName(e.id,t),n=Ee.nameTable[i];n;n=n.name_next){var o=n.name;if(n.parent.id===e.id&&o===t)return n}return Ee.lookup(e,t)},createNode(e,t,r,i){var n=new Ee.FSNode(e,t,r,i);return Ee.hashAddNode(n),n},destroyNode(e){Ee.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagsToPermissionString(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>Ee.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2,mayLookup(e){var t=Ee.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:2)},mayCreate(e,t){try{return Ee.lookupNode(e,t),20}catch(e){}return Ee.nodePermissions(e,"wx")},mayDelete(e,t,r){var i;try{i=Ee.lookupNode(e,t)}catch(e){return e.errno}var n=Ee.nodePermissions(e,"wx");if(n)return n;if(r){if(!Ee.isDir(i.mode))return 54;if(Ee.isRoot(i)||Ee.getPath(i)===Ee.cwd())return 10}else if(Ee.isDir(i.mode))return 31;return 0},mayOpen:(e,t)=>e?Ee.isLink(e.mode)?32:Ee.isDir(e.mode)&&("r"!==Ee.flagsToPermissionString(t)||512&t)?31:Ee.nodePermissions(e,Ee.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=Ee.MAX_OPEN_FDS;e++)if(!Ee.streams[e])return e;throw new Ee.ErrnoError(33)},getStreamChecked(e){var t=Ee.getStream(e);if(!t)throw new Ee.ErrnoError(8);return t},getStream:e=>Ee.streams[e],createStream:(e,t=-1)=>(Ee.FSStream||(Ee.FSStream=function(){this.shared={}},Ee.FSStream.prototype={},Object.defineProperties(Ee.FSStream.prototype,{object:{get(){return this.node},set(e){this.node=e}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return 0!=(2097155&this.flags)}},isAppend:{get(){return 1024&this.flags}},flags:{get(){return this.shared.flags},set(e){this.shared.flags=e}},position:{get(){return this.shared.position},set(e){this.shared.position=e}}})),e=Object.assign(new Ee.FSStream,e),-1==t&&(t=Ee.nextfd()),e.fd=t,Ee.streams[t]=e,e),closeStream(e){Ee.streams[e]=null},chrdev_stream_ops:{open(e){var t=Ee.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new Ee.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice(e,t){Ee.devices[e]={stream_ops:t}},getDevice:e=>Ee.devices[e],getMounts(e){for(var t=[],r=[e];r.length;){var i=r.pop();t.push(i),r.push.apply(r,i.mounts)}return t},syncfs(e,t){"function"==typeof e&&(t=e,e=!1),Ee.syncFSRequests++,Ee.syncFSRequests>1&&C(`warning: ${Ee.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var r=Ee.getMounts(Ee.root.mount),i=0;function n(e){return Ee.syncFSRequests--,t(e)}function o(e){if(e)return o.errored?void 0:(o.errored=!0,n(e));++i>=r.length&&n(null)}r.forEach((t=>{if(!t.type.syncfs)return o(null);t.type.syncfs(t,e,o)}))},mount(e,t,r){var i,n="/"===r,o=!r;if(n&&Ee.root)throw new Ee.ErrnoError(10);if(!n&&!o){var a=Ee.lookupPath(r,{follow_mount:!1});if(r=a.path,i=a.node,Ee.isMountpoint(i))throw new Ee.ErrnoError(10);if(!Ee.isDir(i.mode))throw new Ee.ErrnoError(54)}var s={type:e,opts:t,mountpoint:r,mounts:[]},u=e.mount(s);return u.mount=s,s.root=u,n?Ee.root=u:i&&(i.mounted=s,i.mount&&i.mount.mounts.push(s)),u},unmount(e){var t=Ee.lookupPath(e,{follow_mount:!1});if(!Ee.isMountpoint(t.node))throw new Ee.ErrnoError(28);var r=t.node,i=r.mounted,n=Ee.getMounts(i);Object.keys(Ee.nameTable).forEach((e=>{for(var t=Ee.nameTable[e];t;){var r=t.name_next;n.includes(t.mount)&&Ee.destroyNode(t),t=r}})),r.mounted=null;var o=r.mount.mounts.indexOf(i);r.mount.mounts.splice(o,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod(e,t,r){var i=Ee.lookupPath(e,{parent:!0}).node,n=le.basename(e);if(!n||"."===n||".."===n)throw new Ee.ErrnoError(28);var o=Ee.mayCreate(i,n);if(o)throw new Ee.ErrnoError(o);if(!i.node_ops.mknod)throw new Ee.ErrnoError(63);return i.node_ops.mknod(i,n,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,Ee.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,Ee.mknod(e,t,0)),mkdirTree(e,t){for(var r=e.split("/"),i="",n=0;n<r.length;++n)if(r[n]){i+="/"+r[n];try{Ee.mkdir(i,t)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,t,r)=>("undefined"==typeof r&&(r=t,t=438),t|=8192,Ee.mknod(e,t,r)),symlink(e,t){if(!he.resolve(e))throw new Ee.ErrnoError(44);var r=Ee.lookupPath(t,{parent:!0}).node;if(!r)throw new Ee.ErrnoError(44);var i=le.basename(t),n=Ee.mayCreate(r,i);if(n)throw new Ee.ErrnoError(n);if(!r.node_ops.symlink)throw new Ee.ErrnoError(63);return r.node_ops.symlink(r,i,e)},rename(e,t){var r,i,n=le.dirname(e),o=le.dirname(t),a=le.basename(e),s=le.basename(t);if(r=Ee.lookupPath(e,{parent:!0}).node,i=Ee.lookupPath(t,{parent:!0}).node,!r||!i)throw new Ee.ErrnoError(44);if(r.mount!==i.mount)throw new Ee.ErrnoError(75);var u,c=Ee.lookupNode(r,a),d=he.relative(e,o);if("."!==d.charAt(0))throw new Ee.ErrnoError(28);if("."!==(d=he.relative(t,n)).charAt(0))throw new Ee.ErrnoError(55);try{u=Ee.lookupNode(i,s)}catch(e){}if(c!==u){var l=Ee.isDir(c.mode),m=Ee.mayDelete(r,a,l);if(m)throw new Ee.ErrnoError(m);if(m=u?Ee.mayDelete(i,s,l):Ee.mayCreate(i,s))throw new Ee.ErrnoError(m);if(!r.node_ops.rename)throw new Ee.ErrnoError(63);if(Ee.isMountpoint(c)||u&&Ee.isMountpoint(u))throw new Ee.ErrnoError(10);if(i!==r&&(m=Ee.nodePermissions(r,"w")))throw new Ee.ErrnoError(m);Ee.hashRemoveNode(c);try{r.node_ops.rename(c,i,s)}catch(e){throw e}finally{Ee.hashAddNode(c)}}},rmdir(e){var t=Ee.lookupPath(e,{parent:!0}).node,r=le.basename(e),i=Ee.lookupNode(t,r),n=Ee.mayDelete(t,r,!0);if(n)throw new Ee.ErrnoError(n);if(!t.node_ops.rmdir)throw new Ee.ErrnoError(63);if(Ee.isMountpoint(i))throw new Ee.ErrnoError(10);t.node_ops.rmdir(t,r),Ee.destroyNode(i)},readdir(e){var t=Ee.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new Ee.ErrnoError(54);return t.node_ops.readdir(t)},unlink(e){var t=Ee.lookupPath(e,{parent:!0}).node;if(!t)throw new Ee.ErrnoError(44);var r=le.basename(e),i=Ee.lookupNode(t,r),n=Ee.mayDelete(t,r,!1);if(n)throw new Ee.ErrnoError(n);if(!t.node_ops.unlink)throw new Ee.ErrnoError(63);if(Ee.isMountpoint(i))throw new Ee.ErrnoError(10);t.node_ops.unlink(t,r),Ee.destroyNode(i)},readlink(e){var t=Ee.lookupPath(e).node;if(!t)throw new Ee.ErrnoError(44);if(!t.node_ops.readlink)throw new Ee.ErrnoError(28);return he.resolve(Ee.getPath(t.parent),t.node_ops.readlink(t))},stat(e,t){var r=Ee.lookupPath(e,{follow:!t}).node;if(!r)throw new Ee.ErrnoError(44);if(!r.node_ops.getattr)throw new Ee.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>Ee.stat(e,!0),chmod(e,t,r){var i;if(!(i="string"==typeof e?Ee.lookupPath(e,{follow:!r}).node:e).node_ops.setattr)throw new Ee.ErrnoError(63);i.node_ops.setattr(i,{mode:4095&t|-4096&i.mode,timestamp:Date.now()})},lchmod(e,t){Ee.chmod(e,t,!0)},fchmod(e,t){var r=Ee.getStreamChecked(e);Ee.chmod(r.node,t)},chown(e,t,r,i){var n;if(!(n="string"==typeof e?Ee.lookupPath(e,{follow:!i}).node:e).node_ops.setattr)throw new Ee.ErrnoError(63);n.node_ops.setattr(n,{timestamp:Date.now()})},lchown(e,t,r){Ee.chown(e,t,r,!0)},fchown(e,t,r){var i=Ee.getStreamChecked(e);Ee.chown(i.node,t,r)},truncate(e,t){if(t<0)throw new Ee.ErrnoError(28);var r;if(!(r="string"==typeof e?Ee.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new Ee.ErrnoError(63);if(Ee.isDir(r.mode))throw new Ee.ErrnoError(31);if(!Ee.isFile(r.mode))throw new Ee.ErrnoError(28);var i=Ee.nodePermissions(r,"w");if(i)throw new Ee.ErrnoError(i);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate(e,t){var r=Ee.getStreamChecked(e);if(0==(2097155&r.flags))throw new Ee.ErrnoError(28);Ee.truncate(r.node,t)},utime(e,t,r){var i=Ee.lookupPath(e,{follow:!0}).node;i.node_ops.setattr(i,{timestamp:Math.max(t,r)})},open(e,t,r){if(""===e)throw new Ee.ErrnoError(44);var i;if(r="undefined"==typeof r?438:r,r=64&(t="string"==typeof t?(e=>{var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if("undefined"==typeof t)throw new Error(`Unknown file open mode: ${e}`);return t})(t):t)?4095&r|32768:0,"object"==typeof e)i=e;else{e=le.normalize(e);try{i=Ee.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var n=!1;if(64&t)if(i){if(128&t)throw new Ee.ErrnoError(20)}else i=Ee.mknod(e,r,0),n=!0;if(!i)throw new Ee.ErrnoError(44);if(Ee.isChrdev(i.mode)&&(t&=-513),65536&t&&!Ee.isDir(i.mode))throw new Ee.ErrnoError(54);if(!n){var o=Ee.mayOpen(i,t);if(o)throw new Ee.ErrnoError(o)}512&t&&!n&&Ee.truncate(i,0),t&=-131713;var a=Ee.createStream({node:i,path:Ee.getPath(i),flags:t,seekable:!0,position:0,stream_ops:i.stream_ops,ungotten:[],error:!1});return a.stream_ops.open&&a.stream_ops.open(a),!l.logReadFiles||1&t||(Ee.readFiles||(Ee.readFiles={}),e in Ee.readFiles||(Ee.readFiles[e]=1)),a},close(e){if(Ee.isClosed(e))throw new Ee.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{Ee.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,t,r){if(Ee.isClosed(e))throw new Ee.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new Ee.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new Ee.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read(e,t,r,i,n){if(i<0||n<0)throw new Ee.ErrnoError(28);if(Ee.isClosed(e))throw new Ee.ErrnoError(8);if(1==(2097155&e.flags))throw new Ee.ErrnoError(8);if(Ee.isDir(e.node.mode))throw new Ee.ErrnoError(31);if(!e.stream_ops.read)throw new Ee.ErrnoError(28);var o="undefined"!=typeof n;if(o){if(!e.seekable)throw new Ee.ErrnoError(70)}else n=e.position;var a=e.stream_ops.read(e,t,r,i,n);return o||(e.position+=a),a},write(e,t,r,i,n,o){if(i<0||n<0)throw new Ee.ErrnoError(28);if(Ee.isClosed(e))throw new Ee.ErrnoError(8);if(0==(2097155&e.flags))throw new Ee.ErrnoError(8);if(Ee.isDir(e.node.mode))throw new Ee.ErrnoError(31);if(!e.stream_ops.write)throw new Ee.ErrnoError(28);e.seekable&&1024&e.flags&&Ee.llseek(e,0,2);var a="undefined"!=typeof n;if(a){if(!e.seekable)throw new Ee.ErrnoError(70)}else n=e.position;var s=e.stream_ops.write(e,t,r,i,n,o);return a||(e.position+=s),s},allocate(e,t,r){if(Ee.isClosed(e))throw new Ee.ErrnoError(8);if(t<0||r<=0)throw new Ee.ErrnoError(28);if(0==(2097155&e.flags))throw new Ee.ErrnoError(8);if(!Ee.isFile(e.node.mode)&&!Ee.isDir(e.node.mode))throw new Ee.ErrnoError(43);if(!e.stream_ops.allocate)throw new Ee.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap(e,t,r,i,n){if(0!=(2&i)&&0==(2&n)&&2!=(2097155&e.flags))throw new Ee.ErrnoError(2);if(1==(2097155&e.flags))throw new Ee.ErrnoError(2);if(!e.stream_ops.mmap)throw new Ee.ErrnoError(43);return e.stream_ops.mmap(e,t,r,i,n)},msync:(e,t,r,i,n)=>e.stream_ops.msync?e.stream_ops.msync(e,t,r,i,n):0,munmap:e=>0,ioctl(e,t,r){if(!e.stream_ops.ioctl)throw new Ee.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile(e,t={}){if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error(`Invalid encoding type "${t.encoding}"`);var r,i=Ee.open(e,t.flags),n=Ee.stat(e).size,o=new Uint8Array(n);return Ee.read(i,o,0,n,0),"utf8"===t.encoding?r=pe(o,0):"binary"===t.encoding&&(r=o),Ee.close(i),r},writeFile(e,t,r={}){r.flags=r.flags||577;var i=Ee.open(e,r.flags,r.mode);if("string"==typeof t){var n=new Uint8Array(ve(t)+1),o=ye(t,n,0,n.length);Ee.write(i,n,0,o,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");Ee.write(i,t,0,t.byteLength,void 0,r.canOwn)}Ee.close(i)},cwd:()=>Ee.currentPath,chdir(e){var t=Ee.lookupPath(e,{follow:!0});if(null===t.node)throw new Ee.ErrnoError(44);if(!Ee.isDir(t.node.mode))throw new Ee.ErrnoError(54);var r=Ee.nodePermissions(t.node,"x");if(r)throw new Ee.ErrnoError(r);Ee.currentPath=t.path},createDefaultDirectories(){Ee.mkdir("/tmp"),Ee.mkdir("/home"),Ee.mkdir("/home/web_user")},createDefaultDevices(){Ee.mkdir("/dev"),Ee.registerDevice(Ee.makedev(1,3),{read:()=>0,write:(e,t,r,i,n)=>i}),Ee.mkdev("/dev/null",Ee.makedev(1,3)),Se.register(Ee.makedev(5,0),Se.default_tty_ops),Se.register(Ee.makedev(6,0),Se.default_tty1_ops),Ee.mkdev("/dev/tty",Ee.makedev(5,0)),Ee.mkdev("/dev/tty1",Ee.makedev(6,0));var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=me(e).byteLength),e[--t]);Ee.createDevice("/dev","random",r),Ee.createDevice("/dev","urandom",r),Ee.mkdir("/dev/shm"),Ee.mkdir("/dev/shm/tmp")},createSpecialDirectories(){Ee.mkdir("/proc");var e=Ee.mkdir("/proc/self");Ee.mkdir("/proc/self/fd"),Ee.mount({mount(){var t=Ee.createNode(e,"fd",16895,73);return t.node_ops={lookup(e,t){var r=+t,i=Ee.getStreamChecked(r),n={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>i.path}};return n.parent=n,n}},t}},{},"/proc/self/fd")},createStandardStreams(){l.stdin?Ee.createDevice("/dev","stdin",l.stdin):Ee.symlink("/dev/tty","/dev/stdin"),l.stdout?Ee.createDevice("/dev","stdout",null,l.stdout):Ee.symlink("/dev/tty","/dev/stdout"),l.stderr?Ee.createDevice("/dev","stderr",null,l.stderr):Ee.symlink("/dev/tty1","/dev/stderr"),Ee.open("/dev/stdin",0),Ee.open("/dev/stdout",1),Ee.open("/dev/stderr",1)},ensureErrnoError(){Ee.ErrnoError||(Ee.ErrnoError=function(e,t){this.name="ErrnoError",this.node=t,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},Ee.ErrnoError.prototype=new Error,Ee.ErrnoError.prototype.constructor=Ee.ErrnoError,[44].forEach((e=>{Ee.genericErrors[e]=new Ee.ErrnoError(e),Ee.genericErrors[e].stack="<generic error, no stack>"})))},staticInit(){Ee.ensureErrnoError(),Ee.nameTable=new Array(4096),Ee.mount(Fe,{},"/"),Ee.createDefaultDirectories(),Ee.createDefaultDevices(),Ee.createSpecialDirectories(),Ee.filesystems={MEMFS:Fe}},init(e,t,r){Ee.init.initialized=!0,Ee.ensureErrnoError(),l.stdin=e||l.stdin,l.stdout=t||l.stdout,l.stderr=r||l.stderr,Ee.createStandardStreams()},quit(){Ee.init.initialized=!1;for(var e=0;e<Ee.streams.length;e++){var t=Ee.streams[e];t&&Ee.close(t)}},findObject(e,t){var r=Ee.analyzePath(e,t);return r.exists?r.object:null},analyzePath(e,t){try{e=(i=Ee.lookupPath(e,{follow:!t})).path}catch(e){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var i=Ee.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=i.path,r.parentObject=i.node,r.name=le.basename(e),i=Ee.lookupPath(e,{follow:!t}),r.exists=!0,r.path=i.path,r.object=i.node,r.name=i.node.name,r.isRoot="/"===i.path}catch(e){r.error=e.errno}return r},createPath(e,t,r,i){e="string"==typeof e?e:Ee.getPath(e);for(var n=t.split("/").reverse();n.length;){var o=n.pop();if(o){var a=le.join2(e,o);try{Ee.mkdir(a)}catch(e){}e=a}}return a},createFile(e,t,r,i,n){var o=le.join2("string"==typeof e?e:Ee.getPath(e),t),a=_e(i,n);return Ee.create(o,a)},createDataFile(e,t,r,i,n,o){var a=t;e&&(e="string"==typeof e?e:Ee.getPath(e),a=t?le.join2(e,t):e);var s=_e(i,n),u=Ee.create(a,s);if(r){if("string"==typeof r){for(var c=new Array(r.length),d=0,l=r.length;d<l;++d)c[d]=r.charCodeAt(d);r=c}Ee.chmod(u,146|s);var m=Ee.open(u,577);Ee.write(m,r,0,r.length,0,o),Ee.close(m),Ee.chmod(u,s)}return u},createDevice(e,t,r,i){var n=le.join2("string"==typeof e?e:Ee.getPath(e),t),o=_e(!!r,!!i);Ee.createDevice.major||(Ee.createDevice.major=64);var a=Ee.makedev(Ee.createDevice.major++,0);return Ee.registerDevice(a,{open(e){e.seekable=!1},close(e){i&&i.buffer&&i.buffer.length&&i(10)},read(e,t,i,n,o){for(var a=0,s=0;s<n;s++){var u;try{u=r()}catch(e){throw new Ee.ErrnoError(29)}if(void 0===u&&0===a)throw new Ee.ErrnoError(6);if(null==u)break;a++,t[i+s]=u}return a&&(e.node.timestamp=Date.now()),a},write(e,t,r,n,o){for(var a=0;a<n;a++)try{i(t[r+a])}catch(e){throw new Ee.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),a}}),Ee.mkdev(n,o,a)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!m)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=we(m(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new Ee.ErrnoError(29)}},createLazyFile(e,r,i,n,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[t]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",i,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+i+". Status: "+e.status);var t,r=Number(e.getResponseHeader("Content-length")),n=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,o=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,a=1048576;n||(a=r);var s=this;s.setDataGetter((e=>{var t=e*a,n=(e+1)*a-1;if(n=Math.min(n,r-1),"undefined"==typeof s.chunks[e]&&(s.chunks[e]=((e,t)=>{if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>r-1)throw new Error("only "+r+" bytes available! programmer error!");var n=new XMLHttpRequest;if(n.open("GET",i,!1),r!==a&&n.setRequestHeader("Range","bytes="+e+"-"+t),n.responseType="arraybuffer",n.overrideMimeType&&n.overrideMimeType("text/plain; charset=x-user-defined"),n.send(null),!(n.status>=200&&n.status<300||304===n.status))throw new Error("Couldn't load "+i+". Status: "+n.status);return void 0!==n.response?new Uint8Array(n.response||[]):we(n.responseText||"",!0)})(t,n)),"undefined"==typeof s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!o&&r||(a=r=1,r=this.getter(0).length,a=r,F("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){var s=new a;Object.defineProperties(s,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var u={isDevice:!1,contents:s}}else u={isDevice:!1,url:i};var c=Ee.createFile(e,r,u,n,o);u.contents?c.contents=u.contents:u.url&&(c.contents=null,c.url=u.url),Object.defineProperties(c,{usedBytes:{get:function(){return this.contents.length}}});var d={};function l(e,t,r,i,n){var o=e.node.contents;if(n>=o.length)return 0;var a=Math.min(o.length-n,i);if(o.slice)for(var s=0;s<a;s++)t[r+s]=o[n+s];else for(s=0;s<a;s++)t[r+s]=o.get(n+s);return a}return Object.keys(c.stream_ops).forEach((e=>{var t=c.stream_ops[e];d[e]=function(){return Ee.forceLoadFile(c),t.apply(null,arguments)}})),d.read=(e,t,r,i,n)=>(Ee.forceLoadFile(c),l(e,t,r,i,n)),d.mmap=(e,r,i,n,o)=>{Ee.forceLoadFile(c);var a=be(r);if(!a)throw new Ee.ErrnoError(48);return l(e,t(),a,r,i),{ptr:a,allocated:!0}},c.stream_ops=d,c}},xe=(e,t)=>e?pe(r(),e,t):"",Te={DEFAULT_POLLMASK:5,calculateAt(e,t,r){if(le.isAbs(t))return t;var i;if(i=-100===e?Ee.cwd():Te.getStreamFromFD(e).path,0==t.length){if(!r)throw new Ee.ErrnoError(44);return i}return le.join2(i,t)},doStat(e,t,r){try{var i=e(t)}catch(e){if(e&&e.node&&le.normalize(t)!==le.normalize(Ee.getPath(e.node)))return-54;throw e}a()[r>>2]=i.dev,a()[r+4>>2]=i.mode,s()[r+8>>2]=i.nlink,a()[r+12>>2]=i.uid,a()[r+16>>2]=i.gid,a()[r+20>>2]=i.rdev,X=[i.size>>>0,(Y=i.size,+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],a()[r+24>>2]=X[0],a()[r+28>>2]=X[1],a()[r+32>>2]=4096,a()[r+36>>2]=i.blocks;var n=i.atime.getTime(),o=i.mtime.getTime(),u=i.ctime.getTime();return X=[Math.floor(n/1e3)>>>0,(Y=Math.floor(n/1e3),+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],a()[r+40>>2]=X[0],a()[r+44>>2]=X[1],s()[r+48>>2]=n%1e3*1e3,X=[Math.floor(o/1e3)>>>0,(Y=Math.floor(o/1e3),+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],a()[r+56>>2]=X[0],a()[r+60>>2]=X[1],s()[r+64>>2]=o%1e3*1e3,X=[Math.floor(u/1e3)>>>0,(Y=Math.floor(u/1e3),+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],a()[r+72>>2]=X[0],a()[r+76>>2]=X[1],s()[r+80>>2]=u%1e3*1e3,X=[i.ino>>>0,(Y=i.ino,+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],a()[r+88>>2]=X[0],a()[r+92>>2]=X[1],0},doMsync(e,t,i,n,o){if(!Ee.isFile(t.node.mode))throw new Ee.ErrnoError(43);if(2&n)return 0;var a=r().slice(e,e+i);Ee.msync(t,a,o,i,n)},varargs:void 0,get(){var e=a()[Te.varargs>>2];return Te.varargs+=4,e},getp:()=>Te.get(),getStr:e=>xe(e),getStreamFromFD:e=>Ee.getStreamChecked(e)};function Ae(e){if(y)return xr(0,1,e);T=e,j()||(Ze.terminateAllThreads(),l.onExit&&l.onExit(e),W=!0),v(e,new se(e))}var De=(e,t)=>{if(T=e,y)throw Pe(e),"unwind";Ae(e)},ke=e=>{if(e instanceof se||"unwind"==e)return T;v(1,e)},Ze={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init(){y?Ze.initWorker():Ze.initMainThread()},initMainThread(){for(var e=Math.min(4,Math.max(1,navigator.hardwareConcurrency-1));e--;)Ze.allocateUnusedWorker();U((()=>{ee(),Ze.loadWasmModuleToAllWorkers((()=>te()))}))},initWorker(){x=!1},setExitStatus:e=>{T=e},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var e of Ze.runningWorkers)ue(e);for(var e of Ze.unusedWorkers)ue(e);Ze.unusedWorkers=[],Ze.runningWorkers=[],Ze.pthreads=[]},returnWorkerToPool:e=>{var t=e.pthread_ptr;delete Ze.pthreads[t],Ze.unusedWorkers.push(e),Ze.runningWorkers.splice(Ze.runningWorkers.indexOf(e),1),e.pthread_ptr=0,Ti(t)},receiveObjectTransfer(e){},threadInitTLS(){Ze.tlsInitFunctions.forEach((e=>e()))},loadWasmModuleToWorker:e=>new Promise((t=>{e.onmessage=r=>{var i=r.data,n=i.cmd;if(i.targetThread&&i.targetThread!=bi()){var o=Ze.pthreads[i.targetThread];o?o.postMessage(i,i.transferList):C(`Internal error! Worker sent a message "${n}" to target pthread ${i.targetThread}, but that thread no longer exists!`)}else{var a;"checkMailbox"===n?_r():"spawnThread"===n?de(i):"cleanupThread"===n?ce(i.thread):"killThread"===n?(e=>{var t=Ze.pthreads[e];delete Ze.pthreads[e],ue(t),Ti(e),Ze.runningWorkers.splice(Ze.runningWorkers.indexOf(t),1),t.pthread_ptr=0})(i.thread):"cancelThread"===n?(a=i.thread,Ze.pthreads[a].postMessage({cmd:"cancel"})):"loaded"===n?(e.loaded=!0,t(e)):"alert"===n?alert(`Thread ${i.threadId}: ${i.text}`):"setimmediate"===i.target?e.postMessage(i):"callHandler"===n?l[i.handler](...i.args):n&&C(`worker sent an unknown command ${n}`)}},e.onerror=e=>{throw C(`worker sent an error! ${e.filename}:${e.lineno}: ${e.message}`),e};var r=[];for(var n of["onExit","onAbort","print","printErr"])l.hasOwnProperty(n)&&r.push(n);e.postMessage({cmd:"load",handlers:r,urlOrBlob:l.mainScriptUrlOrBlob||i,wasmMemory:_,wasmModule:E})})),loadWasmModuleToAllWorkers(e){if(y)return e();Promise.all(Ze.unusedWorkers.map(Ze.loadWasmModuleToWorker)).then(e)},allocateUnusedWorker(){var e,t=S("ScanbotSDK.Asm-simd-threads.worker.js");e=new Worker(t),Ze.unusedWorkers.push(e)},getNewWorker:()=>(0==Ze.unusedWorkers.length&&(Ze.allocateUnusedWorker(),Ze.loadWasmModuleToWorker(Ze.unusedWorkers[0])),Ze.unusedWorkers.pop())};l.PThread=Ze;var ze=e=>{for(;e.length>0;)e.shift()(l)};function Pe(e){if(y)return xr(1,0,e);De(e)}l.establishStackSpace=()=>{var e=bi(),t=a()[e+52>>2],r=a()[e+56>>2];Zi(t,t-r),Pi(t)};var Re=e=>L.get(e);l.invokeEntryPoint=(e,t)=>{!function(e){j()?Ze.setExitStatus(e):Ai(e)}(Re(e)(t))};var Me=e=>{Ze.tlsInitFunctions.push(e)},We=[],Oe=0,Qe=0;function Le(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){s()[this.ptr+4>>2]=e},this.get_type=function(){return s()[this.ptr+4>>2]},this.set_destructor=function(e){s()[this.ptr+8>>2]=e},this.get_destructor=function(){return s()[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,t()[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=t()[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,t()[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=t()[this.ptr+13>>0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)},this.set_adjusted_ptr=function(e){s()[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return s()[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Qi(this.get_type()))return s()[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var Ne=e=>{var t=Qe;if(!t)return Fi(0),0;var r=new Le(t);r.set_adjusted_ptr(t);var i=r.get_type();if(!i)return Fi(0),t;for(var n in e){var o=e[n];if(0===o||o===i)break;var a=r.ptr+16;if(Oi(o,i,a))return Fi(o),t}return Fi(i),t},Be=()=>{var e=We.pop();e||re("no exception to throw");var t=e.excPtr;throw e.get_rethrown()||(We.push(e),e.set_rethrown(!0),e.set_caught(!1),Oe++),Qe=t};function Ie(e,t,r,i){return y?xr(2,1,e,t,r,i):$e(e,t,r,i)}var $e=(e,t,r,i)=>{if("undefined"==typeof SharedArrayBuffer)return C("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var n=[];if(y&&0===n.length)return Ie(e,t,r,i);var o={startRoutine:r,pthread_ptr:e,arg:i,transferList:n};return y?(o.cmd="spawnThread",postMessage(o,n),0):de(o)};function Ve(e,t,r,i,n){if(y)return xr(3,1,e,t,r,i,n);try{for(var o=0,s=t?a()[t>>2]:0,u=t?a()[t+4>>2]:0,c=r?a()[r>>2]:0,d=r?a()[r+4>>2]:0,l=i?a()[i>>2]:0,m=i?a()[i+4>>2]:0,h=0,f=0,p=0,g=0,v=0,w=0,S=(t?a()[t>>2]:0)|(r?a()[r>>2]:0)|(i?a()[i>>2]:0),b=(t?a()[t+4>>2]:0)|(r?a()[r+4>>2]:0)|(i?a()[i+4>>2]:0),F=function(e,t,r,i){return e<32?t&i:r&i},C=0;C<e;C++){var _=1<<C%32;if(F(C,S,b,_)){var E=Te.getStreamFromFD(C),x=Te.DEFAULT_POLLMASK;if(E.stream_ops.poll){var T=-1;n&&(T=1e3*((t?a()[n>>2]:0)+(t?a()[n+8>>2]:0)/1e6)),x=E.stream_ops.poll(E,T)}1&x&&F(C,s,u,_)&&(C<32?h|=_:f|=_,o++),4&x&&F(C,c,d,_)&&(C<32?p|=_:g|=_,o++),2&x&&F(C,l,m,_)&&(C<32?v|=_:w|=_,o++)}}return t&&(a()[t>>2]=h,a()[t+4>>2]=f),r&&(a()[r>>2]=p,a()[r+4>>2]=g),i&&(a()[i>>2]=v,a()[i+4>>2]=w),o}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return-e.errno}}function je(e,t,r){if(y)return xr(4,1,e,t,r);Te.varargs=r;try{var i=Te.getStreamFromFD(e);switch(t){case 0:if((o=Te.get())<0)return-28;for(;Ee.streams[o];)o++;return Ee.createStream(i,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return i.flags;case 4:var o=Te.get();return i.flags|=o,0;case 5:return o=Te.getp(),n()[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return s=28,a()[Si()>>2]=s,-1}}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return-e.errno}var s}function He(e,t){if(y)return xr(5,1,e,t);try{var r=Te.getStreamFromFD(e);return Te.doStat(Ee.stat,r.path,t)}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return-e.errno}}function Ue(e,r,i){if(y)return xr(6,1,e,r,i);Te.varargs=i;try{var o=Te.getStreamFromFD(e);switch(r){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return o.tty?0:-59;case 21505:if(!o.tty)return-59;if(o.tty.ops.ioctl_tcgets){var s=o.tty.ops.ioctl_tcgets(o),u=Te.getp();a()[u>>2]=s.c_iflag||0,a()[u+4>>2]=s.c_oflag||0,a()[u+8>>2]=s.c_cflag||0,a()[u+12>>2]=s.c_lflag||0;for(var c=0;c<32;c++)t()[u+c+17>>0]=s.c_cc[c]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!o.tty)return-59;if(o.tty.ops.ioctl_tcsets){u=Te.getp();var d=a()[u>>2],l=a()[u+4>>2],m=a()[u+8>>2],h=a()[u+12>>2],f=[];for(c=0;c<32;c++)f.push(t()[u+c+17>>0]);return o.tty.ops.ioctl_tcsets(o.tty,r,{c_iflag:d,c_oflag:l,c_cflag:m,c_lflag:h,c_cc:f})}return 0;case 21519:return o.tty?(u=Te.getp(),a()[u>>2]=0,0):-59;case 21520:return o.tty?-28:-59;case 21531:return u=Te.getp(),Ee.ioctl(o,r,u);case 21523:if(!o.tty)return-59;if(o.tty.ops.ioctl_tiocgwinsz){var p=o.tty.ops.ioctl_tiocgwinsz(o.tty);u=Te.getp(),n()[u>>1]=p[0],n()[u+2>>1]=p[1]}return 0;default:return-28}}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return-e.errno}}function Ge(e,t,r,i){if(y)return xr(8,1,e,t,r,i);try{t=Te.getStr(t);var n=256&i,o=4096&i;return i&=-6401,t=Te.calculateAt(e,t,o),Te.doStat(n?Ee.lstat:Ee.stat,t,r)}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return-e.errno}}function Ye(e,t,r,i){if(y)return xr(9,1,e,t,r,i);Te.varargs=i;try{t=Te.getStr(t),t=Te.calculateAt(e,t);var n=i?Te.get():0;return Ee.open(t,r,n).fd}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return-e.errno}}function Xe(e){if(y)return xr(10,1,e);try{return e=Te.getStr(e),Ee.rmdir(e),0}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return-e.errno}}function Je(e,t){if(y)return xr(11,1,e,t);try{return e=Te.getStr(e),Te.doStat(Ee.stat,e,t)}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return-e.errno}}function qe(e,t,r){if(y)return xr(12,1,e,t,r);try{return t=Te.getStr(t),t=Te.calculateAt(e,t),0===r?Ee.unlink(t):512===r?Ee.rmdir(t):re("Invalid flags passed to unlinkat"),0}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return-e.errno}}var Ke={},et=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function tt(e){return this.fromWireType(a()[e>>2])}var rt={},it={},nt={},ot=void 0,at=e=>{throw new ot(e)},st=(e,t,r)=>{function i(t){var i=r(t);i.length!==e.length&&at("Mismatched type converter count");for(var n=0;n<e.length;++n)mt(e[n],i[n])}e.forEach((function(e){nt[e]=t}));var n=new Array(t.length),o=[],a=0;t.forEach(((e,t)=>{it.hasOwnProperty(e)?n[t]=it[e]:(o.push(e),rt.hasOwnProperty(e)||(rt[e]=[]),rt[e].push((()=>{n[t]=it[e],++a===o.length&&i(n)})))})),0===o.length&&i(n)},ut=void 0,ct=e=>{for(var t="",i=e;r()[i];)t+=ut[r()[i++]];return t},dt=void 0,lt=e=>{throw new dt(e)};function mt(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,t,r={}){var i=t.name;if(e||lt(`type "${i}" must have a positive integer typeid pointer`),it.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;lt(`Cannot register type '${i}' twice`)}if(it[e]=t,delete nt[e],rt.hasOwnProperty(e)){var n=rt[e];delete rt[e],n.forEach((e=>e()))}}(e,t,r)}var ht=8;function ft(e){if(!(this instanceof Wt))return!1;if(!(e instanceof Wt))return!1;for(var t=this.$$.ptrType.registeredClass,r=this.$$.ptr,i=e.$$.ptrType.registeredClass,n=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;i.baseClass;)n=i.upcast(n),i=i.baseClass;return t===i&&r===n}var pt=e=>{lt(e.$$.ptrType.registeredClass.name+" instance already deleted")},gt=!1,vt=e=>{},yt=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},wt=(e,t,r)=>{if(t===r)return e;if(void 0===r.baseClass)return null;var i=wt(e,t,r.baseClass);return null===i?null:r.downcast(i)},St={},bt=()=>Object.keys(Tt).length,Ft=()=>{var e=[];for(var t in Tt)Tt.hasOwnProperty(t)&&e.push(Tt[t]);return e},Ct=[],_t=()=>{for(;Ct.length;){var e=Ct.pop();e.$$.deleteScheduled=!1,e.delete()}},Et=void 0,xt=e=>{Et=e,Ct.length&&Et&&Et(_t)},Tt={},At=(e,t)=>(t=((e,t)=>{for(void 0===t&&lt("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t})(e,t),Tt[t]),Dt=(e,t)=>(t.ptrType&&t.ptr||at("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&at("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Zt(Object.create(e,{$$:{value:t}})));function kt(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=At(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var i=r.clone();return this.destructor(e),i}function n(){return this.isSmartPointer?Dt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):Dt(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var o,a=this.registeredClass.getActualType(t),s=St[a];if(!s)return n.call(this);o=this.isConst?s.constPointerType:s.pointerType;var u=wt(t,this.registeredClass,o.registeredClass);return null===u?n.call(this):this.isSmartPointer?Dt(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:e}):Dt(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})}var Zt=e=>"undefined"==typeof FinalizationRegistry?(Zt=e=>e,e):(gt=new FinalizationRegistry((e=>{yt(e.$$)})),Zt=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t};gt.register(e,r,e)}return e},vt=e=>gt.unregister(e),Zt(e));function zt(){if(this.$$.ptr||pt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e,t=Zt(Object.create(Object.getPrototypeOf(this),{$$:{value:(e=this.$$,{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType})}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t}function Pt(){this.$$.ptr||pt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&lt("Object already scheduled for deletion"),vt(this),yt(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Rt(){return!this.$$.ptr}function Mt(){return this.$$.ptr||pt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&lt("Object already scheduled for deletion"),Ct.push(this),1===Ct.length&&Et&&Et(_t),this.$$.deleteScheduled=!0,this}function Wt(){}var Ot=e=>{if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=48&&t<=57?`_${e}`:e};function Qt(e,t){return{[e=Ot(e)]:function(){return t.apply(this,arguments)}}[e]}var Lt=(e,t,r)=>{if(void 0===e[t].overloadTable){var i=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||lt(`Function '${r}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[i.argCount]=i}},Nt=(e,t,r)=>{l.hasOwnProperty(e)?((void 0===r||void 0!==l[e].overloadTable&&void 0!==l[e].overloadTable[r])&&lt(`Cannot register public name '${e}' twice`),Lt(l,e,e),l.hasOwnProperty(r)&&lt(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),l[e].overloadTable[r]=t):(l[e]=t,void 0!==r&&(l[e].numArguments=r))};function Bt(e,t,r,i,n,o,a,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=i,this.baseClass=n,this.getActualType=o,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}var It=(e,t,r)=>{for(;t!==r;)t.upcast||lt(`Expected null or instance of ${r.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e};function $t(e,t){if(null===t)return this.isReference&&lt(`null is not a valid ${this.name}`),0;t.$$||lt(`Cannot pass "${lr(t)}" as a ${this.name}`),t.$$.ptr||lt(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=t.$$.ptrType.registeredClass;return It(t.$$.ptr,r,this.registeredClass)}function Vt(e,t){var r;if(null===t)return this.isReference&&lt(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||lt(`Cannot pass "${lr(t)}" as a ${this.name}`),t.$$.ptr||lt(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&lt(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var i=t.$$.ptrType.registeredClass;if(r=It(t.$$.ptr,i,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&lt("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:lt(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var n=t.clone();r=this.rawShare(r,dr.toHandle((()=>n.delete()))),null!==e&&e.push(this.rawDestructor,r)}break;default:lt("Unsupporting sharing policy")}return r}function jt(e,t){if(null===t)return this.isReference&&lt(`null is not a valid ${this.name}`),0;t.$$||lt(`Cannot pass "${lr(t)}" as a ${this.name}`),t.$$.ptr||lt(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&lt(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;return It(t.$$.ptr,r,this.registeredClass)}function Ht(e){return this.fromWireType(s()[e>>2])}function Ut(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e}function Gt(e){this.rawDestructor&&this.rawDestructor(e)}var Yt=e=>{null!==e&&e.delete()};function Xt(e,t,r,i,n,o,a,s,u,c,d){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=i,this.isSmartPointer=n,this.pointeeType=o,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=d,n||void 0!==t.baseClass?this.toWireType=Vt:i?(this.toWireType=$t,this.destructorFunction=null):(this.toWireType=jt,this.destructorFunction=null)}var Jt=(e,t,r)=>{l.hasOwnProperty(e)||at("Replacing nonexistant public symbol"),void 0!==l[e].overloadTable&&void 0!==r?l[e].overloadTable[r]=t:(l[e]=t,l[e].argCount=r)},qt=(e,t,r)=>e.includes("j")?((e,t,r)=>{var i=l["dynCall_"+e];return r&&r.length?i.apply(null,[t].concat(r)):i.call(null,t)})(e,t,r):Re(t).apply(null,r),Kt=(e,t)=>{var r,i,n,o=(e=ct(e)).includes("j")?(r=e,i=t,n=[],function(){return n.length=0,Object.assign(n,arguments),qt(r,i,n)}):Re(t);return"function"!=typeof o&&lt(`unknown function pointer with signature ${e}: ${t}`),o},er=void 0,tr=e=>{var t=_i(e),r=ct(t);return wi(t),r},rr=(e,t)=>{var r=[],i={};throw t.forEach((function e(t){i[t]||it[t]||(nt[t]?nt[t].forEach(e):(r.push(t),i[t]=!0))})),new er(`${e}: `+r.map(tr).join([", "]))},ir=(e,t)=>{for(var r=[],i=0;i<e;i++)r.push(s()[t+4*i>>2]);return r};function nr(e,t){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var r=Qt(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var i=new r,n=e.apply(i,t);return n instanceof Object?n:i}function or(e,t,r,i,n,o){var a=t.length;a<2&&lt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==t[1]&&null!==r,u=!1,c=1;c<t.length;++c)if(null!==t[c]&&void 0===t[c].destructorFunction){u=!0;break}var d="void"!==t[0].name,l="",m="";for(c=0;c<a-2;++c)l+=(0!==c?", ":"")+"arg"+c,m+=(0!==c?", ":"")+"arg"+c+"Wired";var h=`\n return function ${Ot(e)}(${l}) {\n if (arguments.length !== ${a-2}) {\n throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${a-2}');\n }`;u&&(h+="var destructors = [];\n");var f=u?"destructors":"null",p=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[lt,i,n,et,t[0],t[1]];for(s&&(h+="var thisWired = classParam.toWireType("+f+", this);\n"),c=0;c<a-2;++c)h+="var arg"+c+"Wired = argType"+c+".toWireType("+f+", arg"+c+"); // "+t[c+2].name+"\n",p.push("argType"+c),g.push(t[c+2]);if(s&&(m="thisWired"+(m.length>0?", ":"")+m),h+=(d||o?"var rv = ":"")+"invoker(fn"+(m.length>0?", ":"")+m+");\n",u)h+="runDestructors(destructors);\n";else for(c=s?1:2;c<t.length;++c){var v=1===c?"thisWired":"arg"+(c-2)+"Wired";null!==t[c].destructorFunction&&(h+=v+"_dtor("+v+"); // "+t[c].name+"\n",p.push(v+"_dtor"),g.push(t[c].destructorFunction))}return d&&(h+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),h+="}\n",p.push(h),nr(Function,p).apply(null,g)}function ar(){this.allocated=[void 0],this.freelist=[]}var sr=new ar,ur=e=>{e>=sr.reserved&&0==--sr.get(e).refcount&&sr.free(e)},cr=()=>{for(var e=0,t=sr.reserved;t<sr.allocated.length;++t)void 0!==sr.allocated[t]&&++e;return e},dr={toValue:e=>(e||lt("Cannot use deleted val. handle = "+e),sr.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return sr.allocate({refcount:1,value:e})}}},lr=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},mr=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType((_.buffer!=A.buffer&&Q(),R)[e>>2])};case 8:return function(e){return this.fromWireType(u()[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},hr=(e,i,u)=>{switch(i){case 1:return u?e=>t()[e>>0]:e=>r()[e>>0];case 2:return u?e=>n()[e>>1]:e=>o()[e>>1];case 4:return u?e=>a()[e>>2]:e=>s()[e>>2];default:throw new TypeError(`invalid integer width (${i}): ${e}`)}},fr=(e,t,i)=>ye(e,r(),t,i),pr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,gr=(e,t)=>{for(var i=e,a=i>>1,s=a+t/2;!(a>=s)&&o()[a];)++a;if((i=a<<1)-e>32&&pr)return pr.decode(r().slice(e,i));for(var u="",c=0;!(c>=t/2);++c){var d=n()[e+2*c>>1];if(0==d)break;u+=String.fromCharCode(d)}return u},vr=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<2)return 0;for(var i=t,o=(r-=2)<2*e.length?r/2:e.length,a=0;a<o;++a){var s=e.charCodeAt(a);n()[t>>1]=s,t+=2}return n()[t>>1]=0,t-i},yr=e=>2*e.length,wr=(e,t)=>{for(var r=0,i="";!(r>=t/4);){var n=a()[e+4*r>>2];if(0==n)break;if(++r,n>=65536){var o=n-65536;i+=String.fromCharCode(55296|o>>10,56320|1023&o)}else i+=String.fromCharCode(n)}return i},Sr=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<4)return 0;for(var i=t,n=i+r-4,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++o)),a()[t>>2]=s,(t+=4)+4>n)break}return a()[t>>2]=0,t-i},br=e=>{for(var t=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);i>=55296&&i<=57343&&++r,t+=4}return t},Fr=e=>{if(!W)try{e(),(()=>{if(!j())try{y?Ai(T):De(T)}catch(e){ke(e)}})()}catch(e){ke(e)}},Cr=e=>{if("function"==typeof Atomics.waitAsync){Atomics.waitAsync(a(),e>>2,e).value.then(_r);var t=e+128;Atomics.store(a(),t>>2,1)}};l.__emscripten_thread_mailbox_await=Cr;var _r=()=>{var e=bi();e&&(Cr(e),Fr((()=>Di())))};l.checkMailbox=_r;var Er=e=>{var t=zi(),r=e();return Pi(t),r},xr=function(e,t){var r=arguments.length-2,i=arguments;return Er((()=>{for(var n=r,o=Ri(8*n),a=o>>3,s=0;s<r;s++){var c=i[2+s];u()[a+s]=c}return xi(e,n,o,t)}))},Tr=[],Ar=(e,t)=>{var r=it[e];return void 0===r&&lt(t+" has unknown type "+tr(e)),r},Dr={},kr=e=>{var t=Dr[e];return void 0===t?ct(e):t},Zr=[],zr=()=>"object"==typeof globalThis?globalThis:Function("return this")(),Pr=[],Rr=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN,Mr=e=>e%4==0&&(e%100!=0||e%400==0),Wr=[0,31,60,91,121,152,182,213,244,274,305,335],Or=[0,31,59,90,120,151,181,212,243,273,304,334],Qr=e=>(Mr(e.getFullYear())?Wr:Or)[e.getMonth()]+e.getDate()-1;function Lr(e,t,r,i,n,o,a){if(y)return xr(14,1,e,t,r,i,n,o,a);var s=Rr(o,a);try{if(isNaN(s))return 61;var u=Te.getStreamFromFD(n);2&r&&Te.doMsync(e,u,t,i,s),Ee.munmap(u)}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return-e.errno}}var Nr,Br=e=>{var t=ve(e)+1,r=yi(t);return r&&fr(e,r,t),r},Ir=[],$r=(e,t,i)=>{var n=((e,t)=>{var i;for(Ir.length=0;i=r()[e++];)t+=105!=i&&t%8?4:0,Ir.push(105==i?a()[t>>2]:u()[t>>3]),t+=105==i?4:8;return Ir})(t,i);return ae[e].apply(null,n)};Nr=()=>performance.timeOrigin+performance.now();var Vr=e=>{re("OOM")},jr=e=>{var t=(e-_.buffer.byteLength+65535)/65536;try{return _.grow(t),Q(),1}catch(e){}},Hr={},Ur=()=>{if(!Ur.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:g||"./this.program"};for(var t in Hr)void 0===Hr[t]?delete e[t]:e[t]=Hr[t];var r=[];for(var t in e)r.push(`${t}=${e[t]}`);Ur.strings=r}return Ur.strings},Gr=function(e,r){if(y)return xr(15,1,e,r);var i=0;return Ur().forEach(((n,o)=>{var a=r+i;s()[e+4*o>>2]=a,((e,r)=>{for(var i=0;i<e.length;++i)t()[r++>>0]=e.charCodeAt(i);t()[r>>0]=0})(n,a),i+=n.length+1})),0},Yr=function(e,t){if(y)return xr(16,1,e,t);var r=Ur();s()[e>>2]=r.length;var i=0;return r.forEach((e=>i+=e.length+1)),s()[t>>2]=i,0};function Xr(e){if(y)return xr(17,1,e);try{var t=Te.getStreamFromFD(e);return Ee.close(t),0}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return e.errno}}function Jr(e,r){if(y)return xr(18,1,e,r);try{var i=Te.getStreamFromFD(e),o=i.tty?2:Ee.isDir(i.mode)?3:Ee.isLink(i.mode)?7:4;return t()[r>>0]=o,n()[r+2>>1]=0,X=[0,(Y=0,+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],a()[r+8>>2]=X[0],a()[r+12>>2]=X[1],X=[0,(Y=0,+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],a()[r+16>>2]=X[0],a()[r+20>>2]=X[1],0}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return e.errno}}function qr(e,r,i,n){if(y)return xr(19,1,e,r,i,n);try{var o=((e,r,i,n)=>{for(var o=0,a=0;a<i;a++){var u=s()[r>>2],c=s()[r+4>>2];r+=8;var d=Ee.read(e,t(),u,c,n);if(d<0)return-1;if(o+=d,d<c)break;"undefined"!=typeof n&&(n+=d)}return o})(Te.getStreamFromFD(e),r,i);return s()[n>>2]=o,0}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return e.errno}}function Kr(e,t,r,i,n){if(y)return xr(20,1,e,t,r,i,n);var o=Rr(t,r);try{if(isNaN(o))return 61;var s=Te.getStreamFromFD(e);return Ee.llseek(s,o,i),X=[s.position>>>0,(Y=s.position,+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],a()[n>>2]=X[0],a()[n+4>>2]=X[1],s.getdents&&0===o&&0===i&&(s.getdents=null),0}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return e.errno}}function ei(e,r,i,n){if(y)return xr(21,1,e,r,i,n);try{var o=((e,r,i,n)=>{for(var o=0,a=0;a<i;a++){var u=s()[r>>2],c=s()[r+4>>2];r+=8;var d=Ee.write(e,t(),u,c,n);if(d<0)return-1;o+=d,"undefined"!=typeof n&&(n+=d)}return o})(Te.getStreamFromFD(e),r,i);return s()[n>>2]=o,0}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return e.errno}}var ti=(e,t)=>{for(var r=0,i=0;i<=t;r+=e[i++]);return r},ri=[31,29,31,30,31,30,31,31,30,31,30,31],ii=[31,28,31,30,31,30,31,31,30,31,30,31],ni=(e,t)=>{for(var r=new Date(e.getTime());t>0;){var i=Mr(r.getFullYear()),n=r.getMonth(),o=(i?ri:ii)[n];if(!(t>o-r.getDate()))return r.setDate(r.getDate()+t),r;t-=o-r.getDate()+1,r.setDate(1),n<11?r.setMonth(n+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r},oi=(e,r,i,n)=>{var o=s()[n+40>>2],u={tm_sec:a()[n>>2],tm_min:a()[n+4>>2],tm_hour:a()[n+8>>2],tm_mday:a()[n+12>>2],tm_mon:a()[n+16>>2],tm_year:a()[n+20>>2],tm_wday:a()[n+24>>2],tm_yday:a()[n+28>>2],tm_isdst:a()[n+32>>2],tm_gmtoff:a()[n+36>>2],tm_zone:o?xe(o):""},c=xe(i),d={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in d)c=c.replace(new RegExp(l,"g"),d[l]);var m=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],h=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(e,t,r){for(var i="number"==typeof e?e.toString():e||"";i.length<t;)i=r[0]+i;return i}function p(e,t){return f(e,t,"0")}function g(e,t){function r(e){return e<0?-1:e>0?1:0}var i;return 0===(i=r(e.getFullYear()-t.getFullYear()))&&0===(i=r(e.getMonth()-t.getMonth()))&&(i=r(e.getDate()-t.getDate())),i}function v(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function y(e){var t=ni(new Date(e.tm_year+1900,0,1),e.tm_yday),r=new Date(t.getFullYear(),0,4),i=new Date(t.getFullYear()+1,0,4),n=v(r),o=v(i);return g(n,t)<=0?g(o,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var w={"%a":e=>m[e.tm_wday].substring(0,3),"%A":e=>m[e.tm_wday],"%b":e=>h[e.tm_mon].substring(0,3),"%B":e=>h[e.tm_mon],"%C":e=>p((e.tm_year+1900)/100|0,2),"%d":e=>p(e.tm_mday,2),"%e":e=>f(e.tm_mday,2," "),"%g":e=>y(e).toString().substring(2),"%G":e=>y(e),"%H":e=>p(e.tm_hour,2),"%I":e=>{var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),p(t,2)},"%j":e=>p(e.tm_mday+ti(Mr(e.tm_year+1900)?ri:ii,e.tm_mon-1),3),"%m":e=>p(e.tm_mon+1,2),"%M":e=>p(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>p(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var t=e.tm_yday+7-e.tm_wday;return p(Math.floor(t/7),2)},"%V":e=>{var t=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&t++,t){if(53==t){var r=(e.tm_wday+371-e.tm_yday)%7;4==r||3==r&&Mr(e.tm_year)||(t=1)}}else{t=52;var i=(e.tm_wday+7-e.tm_yday-1)%7;(4==i||5==i&&Mr(e.tm_year%400-1))&&t++}return p(t,2)},"%w":e=>e.tm_wday,"%W":e=>{var t=e.tm_yday+7-(e.tm_wday+6)%7;return p(Math.floor(t/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var t=e.tm_gmtoff,r=t>=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(r?"+":"-")+String("0000"+t).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>"%"};for(var l in c=c.replace(/%%/g,"\0\0"),w)c.includes(l)&&(c=c.replace(new RegExp(l,"g"),w[l](u)));var S,b,F=we(c=c.replace(/\0\0/g,"%"),!1);return F.length>r?0:(S=F,b=e,t().set(S,b),F.length-1)},ai=e=>parseInt(e),si=Br;Ze.init();var ui,ci,di,li=function(e,t,r,i){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=Ee.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=i},mi=365,hi=146;Object.defineProperties(li.prototype,{read:{get:function(){return(this.mode&mi)===mi},set:function(e){e?this.mode|=mi:this.mode&=-366}},write:{get:function(){return(this.mode&hi)===hi},set:function(e){e?this.mode|=hi:this.mode&=-147}},isFolder:{get:function(){return Ee.isDir(this.mode)}},isDevice:{get:function(){return Ee.isChrdev(this.mode)}}}),Ee.FSNode=li,Ee.createPreloadedFile=(e,t,r,i,n,o,a,s,u,c)=>{var d=t?he.resolve(le.join2(e,t)):e;function l(r){function l(r){c&&c(),s||Ee.createDataFile(e,t,r,i,n,u),o&&o(),te()}((e,t,r,i)=>{"undefined"!=typeof Browser&&Browser.init();var n=!1;return Ce.forEach((o=>{n||o.canHandle(t)&&(o.handle(e,t,r,i),n=!0)})),n})(r,d,l,(()=>{a&&a(),te()}))||l(r)}ee(),"string"==typeof r?((e,t,r,i)=>{var n=i?"":`al ${e}`;h(e,(r=>{O(r,`Loading data file "${e}" failed (no arrayBuffer).`),t(new Uint8Array(r)),n&&te()}),(t=>{if(!r)throw`Loading data file "${e}" failed.`;r()})),n&&ee()})(r,(e=>l(e)),a):l(r)},Ee.staticInit(),ot=l.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},(()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);ut=e})(),dt=l.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Wt.prototype.isAliasOf=ft,Wt.prototype.clone=zt,Wt.prototype.delete=Pt,Wt.prototype.isDeleted=Rt,Wt.prototype.deleteLater=Mt,l.getInheritedInstanceCount=bt,l.getLiveInheritedInstances=Ft,l.flushPendingDeletes=_t,l.setDelayFunction=xt,Xt.prototype.getPointee=Ut,Xt.prototype.destructor=Gt,Xt.prototype.argPackAdvance=ht,Xt.prototype.readValueFromPointer=Ht,Xt.prototype.deleteObject=Yt,Xt.prototype.fromWireType=kt,er=l.UnboundTypeError=(ui=Error,(di=Qt(ci="UnboundTypeError",(function(e){this.name=ci,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(ui.prototype),di.prototype.constructor=di,di.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},di),Object.assign(ar.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t},free(e){this.allocated[e]=void 0,this.freelist.push(e)}}),sr.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),sr.reserved=sr.allocated.length,l.count_emval_handles=cr;var fi,pi=[Ae,Pe,Ie,Ve,je,He,Ue,function(e,t){if(y)return xr(7,1,e,t);try{return e=Te.getStr(e),Te.doStat(Ee.lstat,e,t)}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return-e.errno}},Ge,Ye,Xe,Je,qe,function(e,t,r,i,n,o,u,c){if(y)return xr(13,1,e,t,r,i,n,o,u,c);var d=Rr(n,o);try{if(isNaN(d))return 61;var l=Te.getStreamFromFD(i),m=Ee.mmap(l,e,d,t,r),h=m.ptr;return a()[u>>2]=m.allocated,s()[c>>2]=h,0}catch(e){if("undefined"==typeof Ee||"ErrnoError"!==e.name)throw e;return-e.errno}},Lr,Gr,Yr,Xr,Jr,qr,Kr,ei],gi={t:e=>{var t=new Le(e);return t.get_caught()||(t.set_caught(!0),Oe--),t.set_rethrown(!1),We.push(t),Wi(t.excPtr),t.get_exception_ptr()},Gb:()=>{if(!We.length)return 0;var e=We[We.length-1];return Wi(e.excPtr),e.excPtr},E:()=>{ki(0,0);var e=We.pop();Mi(e.excPtr),Qe=0},b:()=>Ne([]),i:e=>Ne([e]),J:(e,t)=>Ne([e,t]),Ja:Be,Fb:e=>{if(e){var t=new Le(e);We.push(t),t.set_rethrown(!0),Be()}},p:(e,t,r)=>{throw new Le(e).init(t,r),Oe++,Qe=e},Hb:()=>Oe,Tb:e=>{Ei(e,!1,1,!0,4194304,!1),Ze.threadInitTLS()},Ma:e=>{y?postMessage({cmd:"cleanupThread",thread:e}):ce(e)},Qb:$e,d:e=>{throw Qe||(Qe=e),Qe},Nb:Ve,Pa:je,_b:He,$b:Ue,Yb:Ge,Qa:Ye,Ob:Xe,Zb:Je,Pb:qe,mb:e=>{var t=Ke[e];delete Ke[e];var r=t.rawConstructor,i=t.rawDestructor,n=t.fields,o=n.map((e=>e.getterReturnType)).concat(n.map((e=>e.setterArgumentType)));st([e],o,(e=>{var o={};return n.forEach(((t,r)=>{var i=t.fieldName,a=e[r],s=t.getter,u=t.getterContext,c=e[r+n.length],d=t.setter,l=t.setterContext;o[i]={read:e=>a.fromWireType(s(u,e)),write:(e,t)=>{var r=[];d(l,e,c.toWireType(r,t)),et(r)}}})),[{name:t.name,fromWireType:e=>{var t={};for(var r in o)t[r]=o[r].read(e);return i(e),t},toWireType:(e,t)=>{for(var n in o)if(!(n in t))throw new TypeError(`Missing field: "${n}"`);var a=r();for(n in o)o[n].write(a,t[n]);return null!==e&&e.push(i,a),a},argPackAdvance:ht,readValueFromPointer:tt,destructorFunction:i}]}))},zb:(e,t,r,i,n)=>{},fc:(e,t,i,n)=>{mt(e,{name:t=ct(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?i:n},argPackAdvance:ht,readValueFromPointer:function(e){return this.fromWireType(r()[e])},destructorFunction:null})},kb:(e,t,r,i,n,o,a,s,u,c,d,l,m)=>{d=ct(d),o=Kt(n,o),s&&(s=Kt(a,s)),c&&(c=Kt(u,c)),m=Kt(l,m);var h=Ot(d);Nt(h,(function(){rr(`Cannot construct ${d} due to unbound types`,[i])})),st([e,t,r],i?[i]:[],(function(t){var r,n;t=t[0],n=i?(r=t.registeredClass).instancePrototype:Wt.prototype;var a=Qt(h,(function(){if(Object.getPrototypeOf(this)!==u)throw new dt("Use 'new' to construct "+d);if(void 0===l.constructor_body)throw new dt(d+" has no accessible constructor");var e=l.constructor_body[arguments.length];if(void 0===e)throw new dt(`Tried to invoke ctor of ${d} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(l.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)})),u=Object.create(n,{constructor:{value:a}});a.prototype=u;var l=new Bt(d,a,u,m,r,o,s,c);l.baseClass&&(void 0===l.baseClass.__derivedClasses&&(l.baseClass.__derivedClasses=[]),l.baseClass.__derivedClasses.push(l));var f=new Xt(d,l,!0,!1,!1),p=new Xt(d+"*",l,!1,!1,!1),g=new Xt(d+" const*",l,!1,!0,!1);return St[e]={pointerType:p,constPointerType:g},Jt(h,a),[f,p,g]}))},jb:(e,t,r,i,n,o)=>{var a=ir(t,r);n=Kt(i,n),st([],[e],(function(e){var r=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new dt(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[t-1]=()=>{rr(`Cannot construct ${e.name} due to unbound types`,a)},st([],a,(i=>(i.splice(1,0,null),e.registeredClass.constructor_body[t-1]=or(r,i,null,n,o),[]))),[]}))},ib:(e,t,r,i,n,o,a,s,u)=>{var c=ir(r,i);t=ct(t),o=Kt(n,o),st([],[e],(function(e){var i=`${(e=e[0]).name}.${t}`;function n(){rr(`Cannot call ${i} due to unbound types`,c)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var d=e.registeredClass.instancePrototype,l=d[t];return void 0===l||void 0===l.overloadTable&&l.className!==e.name&&l.argCount===r-2?(n.argCount=r-2,n.className=e.name,d[t]=n):(Lt(d,t,i),d[t].overloadTable[r-2]=n),st([],c,(function(n){var s=or(i,n,e,o,a,u);return void 0===d[t].overloadTable?(s.argCount=r-2,d[t]=s):d[t].overloadTable[r-2]=s,[]})),[]}))},dc:(e,t)=>{mt(e,{name:t=ct(t),fromWireType:e=>{var t=dr.toValue(e);return ur(e),t},toWireType:(e,t)=>dr.toHandle(t),argPackAdvance:ht,readValueFromPointer:tt,destructorFunction:null})},Sa:(e,t,r)=>{mt(e,{name:t=ct(t),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:ht,readValueFromPointer:mr(t,r),destructorFunction:null})},da:(e,t,r,i,n,o,a)=>{var s=ir(t,r);e=ct(e),n=Kt(i,n),Nt(e,(function(){rr(`Cannot call ${e} due to unbound types`,s)}),t-1),st([],s,(function(r){var i=[r[0],null].concat(r.slice(1));return Jt(e,or(e,i,null,n,o,a),t-1),[]}))},V:(e,t,r,i,n)=>{t=ct(t),-1===n&&(n=4294967295);var o=e=>e;if(0===i){var a=32-8*r;o=e=>e<<a>>>a}var s=t.includes("unsigned");mt(e,{name:t,fromWireType:o,toWireType:s?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:ht,readValueFromPointer:hr(t,r,0!==i),destructorFunction:null})},H:(e,r,i)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(e){var r=s()[e>>2],i=s()[e+4>>2];return new n(t().buffer,i,r)}mt(e,{name:i=ct(i),fromWireType:o,argPackAdvance:ht,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},Ra:(e,t)=>{var i="std::string"===(t=ct(t));mt(e,{name:t,fromWireType:e=>{var t,n=s()[e>>2],o=e+4;if(i)for(var a=o,u=0;u<=n;++u){var c=o+u;if(u==n||0==r()[c]){var d=xe(a,c-a);void 0===t?t=d:(t+=String.fromCharCode(0),t+=d),a=c+1}}else{var l=new Array(n);for(u=0;u<n;++u)l[u]=String.fromCharCode(r()[o+u]);t=l.join("")}return wi(e),t},toWireType:(e,t)=>{var n;t instanceof ArrayBuffer&&(t=new Uint8Array(t));var o="string"==typeof t;o||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||lt("Cannot pass non-string to std::string"),n=i&&o?ve(t):t.length;var a=yi(4+n+1),u=a+4;if(s()[a>>2]=n,i&&o)fr(t,u,n+1);else if(o)for(var c=0;c<n;++c){var d=t.charCodeAt(c);d>255&&(wi(u),lt("String has UTF-16 code units that do not fit in 8 bits")),r()[u+c]=d}else for(c=0;c<n;++c)r()[u+c]=t[c];return null!==e&&e.push(wi,a),a},argPackAdvance:ht,readValueFromPointer:Ht,destructorFunction:e=>wi(e)})},Ba:(e,t,r)=>{var i,n,a,u,c;r=ct(r),2===t?(i=gr,n=vr,u=yr,a=()=>o(),c=1):4===t&&(i=wr,n=Sr,u=br,a=()=>s(),c=2),mt(e,{name:r,fromWireType:e=>{for(var r,n=s()[e>>2],o=a(),u=e+4,d=0;d<=n;++d){var l=e+4+d*t;if(d==n||0==o[l>>c]){var m=i(u,l-u);void 0===r?r=m:(r+=String.fromCharCode(0),r+=m),u=l+t}}return wi(e),r},toWireType:(e,i)=>{"string"!=typeof i&&lt(`Cannot pass non-string to C++ string type ${r}`);var o=u(i),a=yi(4+o+t);return s()[a>>2]=o>>c,n(i,a+4,o+t),null!==e&&e.push(wi,a),a},argPackAdvance:ht,readValueFromPointer:tt,destructorFunction:e=>wi(e)})},nb:(e,t,r,i,n,o)=>{Ke[e]={name:ct(t),rawConstructor:Kt(r,i),rawDestructor:Kt(n,o),fields:[]}},lb:(e,t,r,i,n,o,a,s,u,c)=>{Ke[e].fields.push({fieldName:ct(t),getterReturnType:r,getter:Kt(i,n),getterContext:o,setterArgumentType:a,setter:Kt(s,u),setterContext:c})},gc:(e,t)=>{mt(e,{isVoid:!0,name:t=ct(t),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})},cc:()=>!0,Lb:(e,t,r)=>{if(e==t)setTimeout((()=>_r()));else if(y)postMessage({targetThread:e,cmd:"checkMailbox"});else{var i=Ze.pthreads[e];if(!i)return;i.postMessage({cmd:"checkMailbox"})}},Rb:(e,t,r,i)=>{Tr.length=r;for(var n=i>>3,o=0;o<r;o++)Tr[o]=u()[n+o];var a=e<0?ae[-e-1]:pi[e];Ze.currentProxiedOperationCallerThread=t;var s=a.apply(null,Tr);return Ze.currentProxiedOperationCallerThread=0,s},Sb:Cr,bc:e=>{},Ib:()=>{throw 1/0},fa:(e,t,r)=>{e=dr.toValue(e),t=Ar(t,"emval::as");var i=[],n=dr.toHandle(i);return s()[r>>2]=n,t.toWireType(i,e)},xa:(e,t,r,i,n)=>(e=Zr[e])(t=dr.toValue(t),r=kr(r),(e=>{var t=[];return s()[e>>2]=dr.toHandle(t),t})(i),n),wa:(e,t,r,i)=>{(e=Zr[e])(t=dr.toValue(t),r=kr(r),null,i)},Ub:ur,eb:e=>0===e?dr.toHandle(zr()):(e=kr(e),dr.toHandle(zr()[e])),ea:(e,t)=>{var r=((e,t)=>{for(var r=new Array(e),i=0;i<e;++i)r[i]=Ar(s()[t+4*i>>2],"parameter "+i);return r})(e,t),i=r[0],n=i.name+"_$"+r.slice(1).map((function(e){return e.name})).join("_")+"$",o=Pr[n];if(void 0!==o)return o;for(var a=["retType"],u=[i],c="",d=0;d<e-1;++d)c+=(0!==d?", ":"")+"arg"+d,a.push("argType"+d),u.push(r[1+d]);var l="return function "+Ot("methodCaller_"+n)+"(handle, name, destructors, args) {\n",m=0;for(d=0;d<e-1;++d)l+=" var arg"+d+" = argType"+d+".readValueFromPointer(args"+(m?"+"+m:"")+");\n",m+=r[d+1].argPackAdvance;for(l+=" var rv = handle[name]("+c+");\n",d=0;d<e-1;++d)r[d+1].deleteObject&&(l+=" argType"+d+".deleteObject(arg"+d+");\n");i.isVoid||(l+=" return retType.toWireType(destructors, rv);\n"),l+="};\n",a.push(l);var h,f,p=nr(Function,a).apply(null,u);return h=p,f=Zr.length,Zr.push(h),o=f,Pr[n]=o,o},pb:(e,t)=>(e=dr.toValue(e),t=dr.toValue(t),dr.toHandle(e[t])),v:e=>{e>4&&(sr.get(e).refcount+=1)},Z:()=>dr.toHandle([]),W:e=>dr.toHandle(kr(e)),I:()=>dr.toHandle({}),ob:e=>{var t=dr.toValue(e);et(t),ur(e)},ec:(e,t,r)=>{e=dr.toValue(e),t=dr.toValue(t),r=dr.toValue(r),e[t]=r},U:(e,t)=>{var r=(e=Ar(e,"_emval_take_value")).readValueFromPointer(t);return dr.toHandle(r)},vb:function(e,t,r){var i=Rr(e,t),n=new Date(1e3*i);a()[r>>2]=n.getUTCSeconds(),a()[r+4>>2]=n.getUTCMinutes(),a()[r+8>>2]=n.getUTCHours(),a()[r+12>>2]=n.getUTCDate(),a()[r+16>>2]=n.getUTCMonth(),a()[r+20>>2]=n.getUTCFullYear()-1900,a()[r+24>>2]=n.getUTCDay();var o=Date.UTC(n.getUTCFullYear(),0,1,0,0,0,0),s=(n.getTime()-o)/864e5|0;a()[r+28>>2]=s},wb:function(e,t,r){var i=Rr(e,t),n=new Date(1e3*i);a()[r>>2]=n.getSeconds(),a()[r+4>>2]=n.getMinutes(),a()[r+8>>2]=n.getHours(),a()[r+12>>2]=n.getDate(),a()[r+16>>2]=n.getMonth(),a()[r+20>>2]=n.getFullYear()-1900,a()[r+24>>2]=n.getDay();var o=0|Qr(n);a()[r+28>>2]=o,a()[r+36>>2]=-60*n.getTimezoneOffset();var s=new Date(n.getFullYear(),0,1),u=new Date(n.getFullYear(),6,1).getTimezoneOffset(),c=s.getTimezoneOffset(),d=0|(u!=c&&n.getTimezoneOffset()==Math.min(c,u));a()[r+32>>2]=d},xb:function(e){var t=(()=>{var t=new Date(a()[e+20>>2]+1900,a()[e+16>>2],a()[e+12>>2],a()[e+8>>2],a()[e+4>>2],a()[e>>2],0),r=a()[e+32>>2],i=t.getTimezoneOffset(),n=new Date(t.getFullYear(),0,1),o=new Date(t.getFullYear(),6,1).getTimezoneOffset(),s=n.getTimezoneOffset(),u=Math.min(s,o);if(r<0)a()[e+32>>2]=Number(o!=s&&u==i);else if(r>0!=(u==i)){var c=Math.max(s,o),d=r>0?u:c;t.setTime(t.getTime()+6e4*(d-i))}a()[e+24>>2]=t.getDay();var l=0|Qr(t);return a()[e+28>>2]=l,a()[e>>2]=t.getSeconds(),a()[e+4>>2]=t.getMinutes(),a()[e+8>>2]=t.getHours(),a()[e+12>>2]=t.getDate(),a()[e+16>>2]=t.getMonth(),a()[e+20>>2]=t.getYear(),t.getTime()/1e3})();return Fi((Y=t,+Math.abs(Y)>=1?Y>0?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)),t>>>0},ub:Lr,Kb:(e,t,r)=>{var i=(new Date).getFullYear(),n=new Date(i,0,1),o=new Date(i,6,1),u=n.getTimezoneOffset(),c=o.getTimezoneOffset(),d=Math.max(u,c);function l(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}s()[e>>2]=60*d,a()[t>>2]=Number(u!=c);var m=l(n),h=l(o),f=Br(m),p=Br(h);c<u?(s()[r>>2]=f,s()[r+4>>2]=p):(s()[r>>2]=p,s()[r+4>>2]=f)},z:()=>{re("")},fb:(e,t,r)=>$r(e,t,r),Na:()=>{},za:()=>Date.now(),ac:()=>{throw V+=1,"unwind"},Mb:()=>2147483648,N:Nr,Ua:()=>navigator.hardwareConcurrency,Jb:e=>{var t=r().length;if((e>>>=0)<=t)return!1;var i=2147483648;e>i&&Vr();for(var n,o,a=1;a<=4;a*=2){var s=t*(1+.2/a);s=Math.min(s,e+100663296);var u=Math.min(i,(n=Math.max(e,s))+((o=65536)-n%o)%o);if(jr(u))return!0}Vr()},Wb:Gr,Xb:Yr,Ta:De,Aa:Xr,Vb:Jr,Oa:qr,yb:Kr,ya:ei,hb:function(){return si(location.toString())},Eb:(e,t)=>(me(r().subarray(e,e+t)),0),gb:function(){return si((e=Gi,self[e(513,"5PB8")][e(501,"7#wN")]()));var e},Ka:function(e,t){var r=zi();try{return Re(e)(t)}catch(e){if(Pi(r),e!==e+0)throw e;ki(1,0)}},va:function(e,t,r,i,n,o){var a=zi();try{return Re(e)(t,r,i,n,o)}catch(e){if(Pi(a),e!==e+0)throw e;ki(1,0)}},C:function(e,t,r,i){var n=zi();try{return Re(e)(t,r,i)}catch(e){if(Pi(n),e!==e+0)throw e;ki(1,0)}},r:function(e,t){var r=zi();try{return Re(e)(t)}catch(e){if(Pi(r),e!==e+0)throw e;ki(1,0)}},y:function(e,t,r){var i=zi();try{return Re(e)(t,r)}catch(e){if(Pi(i),e!==e+0)throw e;ki(1,0)}},ga:function(e,t,r,i,n){var o=zi();try{return Re(e)(t,r,i,n)}catch(e){if(Pi(o),e!==e+0)throw e;ki(1,0)}},R:function(e,t,r,i){var n=zi();try{return Re(e)(t,r,i)}catch(e){if(Pi(n),e!==e+0)throw e;ki(1,0)}},ma:function(e,t,r,i,n){var o=zi();try{return Re(e)(t,r,i,n)}catch(e){if(Pi(o),e!==e+0)throw e;ki(1,0)}},u:function(e){var t=zi();try{return Re(e)()}catch(e){if(Pi(t),e!==e+0)throw e;ki(1,0)}},j:function(e,t){var r=zi();try{return Re(e)(t)}catch(e){if(Pi(r),e!==e+0)throw e;ki(1,0)}},nc:function(e,t,r){var i=zi();try{return Re(e)(t,r)}catch(e){if(Pi(i),e!==e+0)throw e;ki(1,0)}},Ya:function(e,t,r){var i=zi();try{return Re(e)(t,r)}catch(e){if(Pi(i),e!==e+0)throw e;ki(1,0)}},mc:function(e,t,r,i,n,o,a,s,u){var c=zi();try{return Re(e)(t,r,i,n,o,a,s,u)}catch(e){if(Pi(c),e!==e+0)throw e;ki(1,0)}},c:function(e,t,r){var i=zi();try{return Re(e)(t,r)}catch(e){if(Pi(i),e!==e+0)throw e;ki(1,0)}},$a:function(e,t,r,i){var n=zi();try{return Re(e)(t,r,i)}catch(e){if(Pi(n),e!==e+0)throw e;ki(1,0)}},h:function(e,t,r,i){var n=zi();try{return Re(e)(t,r,i)}catch(e){if(Pi(n),e!==e+0)throw e;ki(1,0)}},ua:function(e,t,r,i,n){var o=zi();try{return Re(e)(t,r,i,n)}catch(e){if(Pi(o),e!==e+0)throw e;ki(1,0)}},l:function(e,t,r,i,n){var o=zi();try{return Re(e)(t,r,i,n)}catch(e){if(Pi(o),e!==e+0)throw e;ki(1,0)}},La:function(e,t,r,i,n,o){var a=zi();try{return Re(e)(t,r,i,n,o)}catch(e){if(Pi(a),e!==e+0)throw e;ki(1,0)}},o:function(e,t,r,i,n,o){var a=zi();try{return Re(e)(t,r,i,n,o)}catch(e){if(Pi(a),e!==e+0)throw e;ki(1,0)}},x:function(e,t,r,i,n,o,a){var s=zi();try{return Re(e)(t,r,i,n,o,a)}catch(e){if(Pi(s),e!==e+0)throw e;ki(1,0)}},S:function(e,t,r,i,n,o,a,s){var u=zi();try{return Re(e)(t,r,i,n,o,a,s)}catch(e){if(Pi(u),e!==e+0)throw e;ki(1,0)}},F:function(e,t,r,i,n,o,a,s,u){var c=zi();try{return Re(e)(t,r,i,n,o,a,s,u)}catch(e){if(Pi(c),e!==e+0)throw e;ki(1,0)}},aa:function(e,t,r,i,n,o,a,s,u,c){var d=zi();try{return Re(e)(t,r,i,n,o,a,s,u,c)}catch(e){if(Pi(d),e!==e+0)throw e;ki(1,0)}},na:function(e,t,r,i,n,o,a,s,u,c,d){var l=zi();try{return Re(e)(t,r,i,n,o,a,s,u,c,d)}catch(e){if(Pi(l),e!==e+0)throw e;ki(1,0)}},qa:function(e,t,r,i,n,o,a,s,u,c,d,l){var m=zi();try{return Re(e)(t,r,i,n,o,a,s,u,c,d,l)}catch(e){if(Pi(m),e!==e+0)throw e;ki(1,0)}},rb:function(e,t,r,i,n,o,a){var s=zi();try{return ji(e,t,r,i,n,o,a)}catch(e){if(Pi(s),e!==e+0)throw e;ki(1,0)}},Cb:function(e,t,r,i){var n=zi();try{return Bi(e,t,r,i)}catch(e){if(Pi(n),e!==e+0)throw e;ki(1,0)}},tb:function(e){var t=zi();try{return $i(e)}catch(e){if(Pi(t),e!==e+0)throw e;ki(1,0)}},Db:function(e,t){var r=zi();try{return Li(e,t)}catch(e){if(Pi(r),e!==e+0)throw e;ki(1,0)}},sb:function(e,t,r){var i=zi();try{return Vi(e,t,r)}catch(e){if(Pi(i),e!==e+0)throw e;ki(1,0)}},Ab:function(e,t,r,i){var n=zi();try{return Ii(e,t,r,i)}catch(e){if(Pi(n),e!==e+0)throw e;ki(1,0)}},qb:function(e,t,r,i,n){var o=zi();try{return Hi(e,t,r,i,n)}catch(e){if(Pi(o),e!==e+0)throw e;ki(1,0)}},m:function(e){var t=zi();try{Re(e)()}catch(e){if(Pi(t),e!==e+0)throw e;ki(1,0)}},g:function(e,t){var r=zi();try{Re(e)(t)}catch(e){if(Pi(r),e!==e+0)throw e;ki(1,0)}},ic:function(e,t,r,i){var n=zi();try{Re(e)(t,r,i)}catch(e){if(Pi(n),e!==e+0)throw e;ki(1,0)}},oa:function(e,t,r){var i=zi();try{Re(e)(t,r)}catch(e){if(Pi(i),e!==e+0)throw e;ki(1,0)}},Ia:function(e,t,r,i,n,o,a){var s=zi();try{Re(e)(t,r,i,n,o,a)}catch(e){if(Pi(s),e!==e+0)throw e;ki(1,0)}},e:function(e,t,r){var i=zi();try{Re(e)(t,r)}catch(e){if(Pi(i),e!==e+0)throw e;ki(1,0)}},$:function(e,t,r,i){var n=zi();try{Re(e)(t,r,i)}catch(e){if(Pi(n),e!==e+0)throw e;ki(1,0)}},bb:function(e,t,r,i,n){var o=zi();try{Re(e)(t,r,i,n)}catch(e){if(Pi(o),e!==e+0)throw e;ki(1,0)}},jc:function(e,t,r,i,n,o,a,s){var u=zi();try{Re(e)(t,r,i,n,o,a,s)}catch(e){if(Pi(u),e!==e+0)throw e;ki(1,0)}},ta:function(e,t,r,i,n,o,a){var s=zi();try{Re(e)(t,r,i,n,o,a)}catch(e){if(Pi(s),e!==e+0)throw e;ki(1,0)}},X:function(e,t,r,i,n,o,a,s){var u=zi();try{Re(e)(t,r,i,n,o,a,s)}catch(e){if(Pi(u),e!==e+0)throw e;ki(1,0)}},Ca:function(e,t,r,i,n){var o=zi();try{Re(e)(t,r,i,n)}catch(e){if(Pi(o),e!==e+0)throw e;ki(1,0)}},K:function(e,t,r,i){var n=zi();try{Re(e)(t,r,i)}catch(e){if(Pi(n),e!==e+0)throw e;ki(1,0)}},ca:function(e,t,r,i,n){var o=zi();try{Re(e)(t,r,i,n)}catch(e){if(Pi(o),e!==e+0)throw e;ki(1,0)}},lc:function(e,t,r,i,n,o,a,s,u){var c=zi();try{Re(e)(t,r,i,n,o,a,s,u)}catch(e){if(Pi(c),e!==e+0)throw e;ki(1,0)}},Ga:function(e,t,r,i,n){var o=zi();try{Re(e)(t,r,i,n)}catch(e){if(Pi(o),e!==e+0)throw e;ki(1,0)}},ja:function(e,t,r,i,n,o){var a=zi();try{Re(e)(t,r,i,n,o)}catch(e){if(Pi(a),e!==e+0)throw e;ki(1,0)}},Ea:function(e,t,r,i,n,o,a,s){var u=zi();try{Re(e)(t,r,i,n,o,a,s)}catch(e){if(Pi(u),e!==e+0)throw e;ki(1,0)}},Ha:function(e,t,r,i,n,o,a,s,u){var c=zi();try{Re(e)(t,r,i,n,o,a,s,u)}catch(e){if(Pi(c),e!==e+0)throw e;ki(1,0)}},f:function(e,t,r,i){var n=zi();try{Re(e)(t,r,i)}catch(e){if(Pi(n),e!==e+0)throw e;ki(1,0)}},B:function(e,t,r,i,n,o){var a=zi();try{Re(e)(t,r,i,n,o)}catch(e){if(Pi(a),e!==e+0)throw e;ki(1,0)}},_a:function(e,t,r,i,n,o,a){var s=zi();try{Re(e)(t,r,i,n,o,a)}catch(e){if(Pi(s),e!==e+0)throw e;ki(1,0)}},kc:function(e,t,r,i,n,o,a,s,u,c,d){var l=zi();try{Re(e)(t,r,i,n,o,a,s,u,c,d)}catch(e){if(Pi(l),e!==e+0)throw e;ki(1,0)}},L:function(e,t,r,i,n,o,a){var s=zi();try{Re(e)(t,r,i,n,o,a)}catch(e){if(Pi(s),e!==e+0)throw e;ki(1,0)}},A:function(e,t,r,i,n){var o=zi();try{Re(e)(t,r,i,n)}catch(e){if(Pi(o),e!==e+0)throw e;ki(1,0)}},ha:function(e,t,r,i,n,o,a){var s=zi();try{Re(e)(t,r,i,n,o,a)}catch(e){if(Pi(s),e!==e+0)throw e;ki(1,0)}},ka:function(e,t,r,i,n,o,a,s,u,c){var d=zi();try{Re(e)(t,r,i,n,o,a,s,u,c)}catch(e){if(Pi(d),e!==e+0)throw e;ki(1,0)}},Va:function(e,t,r,i,n,o,a,s){var u=zi();try{Re(e)(t,r,i,n,o,a,s)}catch(e){if(Pi(u),e!==e+0)throw e;ki(1,0)}},Q:function(e,t,r,i,n,o){var a=zi();try{Re(e)(t,r,i,n,o)}catch(e){if(Pi(a),e!==e+0)throw e;ki(1,0)}},Wa:function(e,t,r,i,n,o,a){var s=zi();try{Re(e)(t,r,i,n,o,a)}catch(e){if(Pi(s),e!==e+0)throw e;ki(1,0)}},Fa:function(e,t,r,i,n,o,a,s,u){var c=zi();try{Re(e)(t,r,i,n,o,a,s,u)}catch(e){if(Pi(c),e!==e+0)throw e;ki(1,0)}},ab:function(e,t,r,i,n,o,a,s,u,c,d){var l=zi();try{Re(e)(t,r,i,n,o,a,s,u,c,d)}catch(e){if(Pi(l),e!==e+0)throw e;ki(1,0)}},k:function(e,t,r,i,n){var o=zi();try{Re(e)(t,r,i,n)}catch(e){if(Pi(o),e!==e+0)throw e;ki(1,0)}},sa:function(e,t,r,i,n,o,a,s,u){var c=zi();try{Re(e)(t,r,i,n,o,a,s,u)}catch(e){if(Pi(c),e!==e+0)throw e;ki(1,0)}},D:function(e,t,r,i,n,o){var a=zi();try{Re(e)(t,r,i,n,o)}catch(e){if(Pi(a),e!==e+0)throw e;ki(1,0)}},Y:function(e,t,r,i,n,o,a,s,u,c){var d=zi();try{Re(e)(t,r,i,n,o,a,s,u,c)}catch(e){if(Pi(d),e!==e+0)throw e;ki(1,0)}},Xa:function(e,t,r,i,n,o,a,s){var u=zi();try{Re(e)(t,r,i,n,o,a,s)}catch(e){if(Pi(u),e!==e+0)throw e;ki(1,0)}},n:function(e,t,r,i,n,o){var a=zi();try{Re(e)(t,r,i,n,o)}catch(e){if(Pi(a),e!==e+0)throw e;ki(1,0)}},oc:function(e,t,r,i,n,o,a){var s=zi();try{Re(e)(t,r,i,n,o,a)}catch(e){if(Pi(s),e!==e+0)throw e;ki(1,0)}},w:function(e,t,r,i,n,o,a,s){var u=zi();try{Re(e)(t,r,i,n,o,a,s)}catch(e){if(Pi(u),e!==e+0)throw e;ki(1,0)}},Za:function(e,t,r,i,n,o,a){var s=zi();try{Re(e)(t,r,i,n,o,a)}catch(e){if(Pi(s),e!==e+0)throw e;ki(1,0)}},O:function(e,t,r,i,n,o,a,s){var u=zi();try{Re(e)(t,r,i,n,o,a,s)}catch(e){if(Pi(u),e!==e+0)throw e;ki(1,0)}},q:function(e,t,r,i,n,o,a){var s=zi();try{Re(e)(t,r,i,n,o,a)}catch(e){if(Pi(s),e!==e+0)throw e;ki(1,0)}},ra:function(e,t,r,i,n,o,a,s){var u=zi();try{Re(e)(t,r,i,n,o,a,s)}catch(e){if(Pi(u),e!==e+0)throw e;ki(1,0)}},la:function(e,t,r,i,n,o,a,s,u){var c=zi();try{Re(e)(t,r,i,n,o,a,s,u)}catch(e){if(Pi(c),e!==e+0)throw e;ki(1,0)}},s:function(e,t,r,i,n,o,a,s){var u=zi();try{Re(e)(t,r,i,n,o,a,s)}catch(e){if(Pi(u),e!==e+0)throw e;ki(1,0)}},G:function(e,t,r,i,n,o,a,s,u){var c=zi();try{Re(e)(t,r,i,n,o,a,s,u)}catch(e){if(Pi(c),e!==e+0)throw e;ki(1,0)}},Da:function(e,t,r,i,n,o,a,s,u,c,d,l){var m=zi();try{Re(e)(t,r,i,n,o,a,s,u,c,d,l)}catch(e){if(Pi(m),e!==e+0)throw e;ki(1,0)}},P:function(e,t,r,i,n,o,a,s,u,c){var d=zi();try{Re(e)(t,r,i,n,o,a,s,u,c)}catch(e){if(Pi(d),e!==e+0)throw e;ki(1,0)}},ia:function(e,t,r,i,n,o,a,s,u,c,d,l,m,h){var f=zi();try{Re(e)(t,r,i,n,o,a,s,u,c,d,l,m,h)}catch(e){if(Pi(f),e!==e+0)throw e;ki(1,0)}},_:function(e,t,r,i,n,o,a,s,u,c,d){var l=zi();try{Re(e)(t,r,i,n,o,a,s,u,c,d)}catch(e){if(Pi(l),e!==e+0)throw e;ki(1,0)}},cb:function(e,t,r,i,n,o,a,s,u,c,d,l){var m=zi();try{Re(e)(t,r,i,n,o,a,s,u,c,d,l)}catch(e){if(Pi(m),e!==e+0)throw e;ki(1,0)}},ba:function(e,t,r,i,n,o,a,s,u,c,d,l,m,h){var f=zi();try{Re(e)(t,r,i,n,o,a,s,u,c,d,l,m,h)}catch(e){if(Pi(f),e!==e+0)throw e;ki(1,0)}},pa:function(e,t,r,i,n,o,a,s,u,c,d,l,m,h,f,p){var g=zi();try{Re(e)(t,r,i,n,o,a,s,u,c,d,l,m,h,f,p)}catch(e){if(Pi(g),e!==e+0)throw e;ki(1,0)}},Bb:function(e,t,r,i){var n=zi();try{Ni(e,t,r,i)}catch(e){if(Pi(n),e!==e+0)throw e;ki(1,0)}},T:e=>e,a:_||l.wasmMemory,db:oi,M:(e,t,r,i,n)=>oi(e,t,r,i),hc:(e,t,r)=>{for(var i=xe(t),n="\\!@#$^&*()+=-[]/{}|:<>?,.",o=0,s=n.length;o<s;++o)i=i.replace(new RegExp("\\"+n[o],"g"),"\\"+n[o]);var u={"%A":"%a","%B":"%b","%c":"%a %b %d %H:%M:%S %Y","%D":"%m\\/%d\\/%y","%e":"%d","%F":"%Y-%m-%d","%h":"%b","%R":"%H\\:%M","%r":"%I\\:%M\\:%S\\s%p","%T":"%H\\:%M\\:%S","%x":"%m\\/%d\\/(?:%y|%Y)","%X":"%H\\:%M\\:%S"};for(var c in u)i=i.replace(c,u[c]);var d={"%a":"(?:Sun(?:day)?)|(?:Mon(?:day)?)|(?:Tue(?:sday)?)|(?:Wed(?:nesday)?)|(?:Thu(?:rsday)?)|(?:Fri(?:day)?)|(?:Sat(?:urday)?)","%b":"(?:Jan(?:uary)?)|(?:Feb(?:ruary)?)|(?:Mar(?:ch)?)|(?:Apr(?:il)?)|May|(?:Jun(?:e)?)|(?:Jul(?:y)?)|(?:Aug(?:ust)?)|(?:Sep(?:tember)?)|(?:Oct(?:ober)?)|(?:Nov(?:ember)?)|(?:Dec(?:ember)?)","%C":"\\d\\d","%d":"0[1-9]|[1-9](?!\\d)|1\\d|2\\d|30|31","%H":"\\d(?!\\d)|[0,1]\\d|20|21|22|23","%I":"\\d(?!\\d)|0\\d|10|11|12","%j":"00[1-9]|0?[1-9](?!\\d)|0?[1-9]\\d(?!\\d)|[1,2]\\d\\d|3[0-6]\\d","%m":"0[1-9]|[1-9](?!\\d)|10|11|12","%M":"0\\d|\\d(?!\\d)|[1-5]\\d","%n":"\\s","%p":"AM|am|PM|pm|A\\.M\\.|a\\.m\\.|P\\.M\\.|p\\.m\\.","%S":"0\\d|\\d(?!\\d)|[1-5]\\d|60","%U":"0\\d|\\d(?!\\d)|[1-4]\\d|50|51|52|53","%W":"0\\d|\\d(?!\\d)|[1-4]\\d|50|51|52|53","%w":"[0-6]","%y":"\\d\\d","%Y":"\\d\\d\\d\\d","%%":"%","%t":"\\s"};for(var l in d)i=i.replace(l,"("+l+d[l]+")");var m=[];for(o=i.indexOf("%");o>=0;o=i.indexOf("%"))m.push(i[o+1]),i=i.replace(new RegExp("\\%"+i[o+1],"g"),"");var h=new RegExp("^"+i,"i").exec(xe(e));if(h){var f,p=function(){function e(e,t,r){return"number"!=typeof e||isNaN(e)?t:e>=t?e<=r?e:r:t}return{year:e(a()[r+20>>2]+1900,1970,9999),month:e(a()[r+16>>2],0,11),day:e(a()[r+12>>2],1,31),hour:e(a()[r+8>>2],0,23),min:e(a()[r+4>>2],0,59),sec:e(a()[r>>2],0,59)}}(),g=e=>{var t=m.indexOf(e);if(t>=0)return h[t+1]};if((f=g("S"))&&(p.sec=ai(f)),(f=g("M"))&&(p.min=ai(f)),f=g("H"))p.hour=ai(f);else if(f=g("I")){var v=ai(f);(f=g("p"))&&(v+="P"===f.toUpperCase()[0]?12:0),p.hour=v}if(f=g("Y"))p.year=ai(f);else if(f=g("y")){var y=ai(f);(f=g("C"))?y+=100*ai(f):y+=y<69?2e3:1900,p.year=y}if((f=g("m"))?p.month=ai(f)-1:(f=g("b"))&&(p.month={JAN:0,FEB:1,MAR:2,APR:3,MAY:4,JUN:5,JUL:6,AUG:7,SEP:8,OCT:9,NOV:10,DEC:11}[f.substring(0,3).toUpperCase()]||0),f=g("d"))p.day=ai(f);else if(f=g("j"))for(var w=ai(f),S=Mr(p.year),b=0;b<12;++b){var F=ti(S?ri:ii,b-1);w<=F+(S?ri:ii)[b]&&(p.day=w-F)}else if(f=g("a")){var C=f.substring(0,3).toUpperCase();if(f=g("U")){var _={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6}[C],E=ai(f);T=0===(x=new Date(p.year,0,1)).getDay()?ni(x,_+7*(E-1)):ni(x,7-x.getDay()+_+7*(E-1)),p.day=T.getDate(),p.month=T.getMonth()}else if(f=g("W")){var x,T;_={MON:0,TUE:1,WED:2,THU:3,FRI:4,SAT:5,SUN:6}[C],E=ai(f),T=1===(x=new Date(p.year,0,1)).getDay()?ni(x,_+7*(E-1)):ni(x,7-x.getDay()+1+_+7*(E-1)),p.day=T.getDate(),p.month=T.getMonth()}}var A=new Date(p.year,p.month,p.day,p.hour,p.min,p.sec,0);return a()[r>>2]=A.getSeconds(),a()[r+4>>2]=A.getMinutes(),a()[r+8>>2]=A.getHours(),a()[r+12>>2]=A.getDate(),a()[r+16>>2]=A.getMonth(),a()[r+20>>2]=A.getFullYear()-1900,a()[r+24>>2]=A.getDay(),a()[r+28>>2]=ti(Mr(A.getFullYear())?ri:ii,A.getMonth()-1)+A.getDate()-1,a()[r+32>>2]=0,e+we(h[0]).length-1}return 0}},vi=function(){var e,t,r,i,n={a:gi};function o(e,t){var r,i=e.exports;return Me((vi=i).wc),L=vi.rc,r=vi.pc,I.unshift(r),E=t,te(),i}if(ee(),l.instantiateWasm)try{return l.instantiateWasm(n,o)}catch(e){C(`Module.instantiateWasm callback failed with error: ${e}`),d(e)}return(e=b,t=G,r=n,i=function(e){o(e.instance,e.module)},e||"function"!=typeof WebAssembly.instantiateStreaming||ie(t)||"function"!=typeof fetch?oe(t,r,i):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(i,(function(e){return C(`wasm streaming compile failed: ${e}`),C("falling back to ArrayBuffer instantiation"),oe(t,r,i)}))))).catch(d),{}}(),yi=l._malloc=e=>(yi=l._malloc=vi.qc)(e),wi=l._free=e=>(wi=l._free=vi.sc)(e),Si=()=>(Si=vi.tc)(),bi=l._pthread_self=()=>(bi=l._pthread_self=vi.uc)(),Fi=e=>(Fi=vi.vc)(e),Ci=(l.__emscripten_tls_init=()=>(l.__emscripten_tls_init=vi.wc)(),(e,t)=>(Ci=vi.xc)(e,t)),_i=e=>(_i=vi.yc)(e),Ei=(l.__embind_initialize_bindings=()=>(l.__embind_initialize_bindings=vi.zc)(),l.__emscripten_thread_init=(e,t,r,i,n,o)=>(Ei=l.__emscripten_thread_init=vi.Ac)(e,t,r,i,n,o)),xi=(l.__emscripten_thread_crashed=()=>(l.__emscripten_thread_crashed=vi.Bc)(),(e,t,r,i)=>(xi=vi.Cc)(e,t,r,i)),Ti=e=>(Ti=vi.Dc)(e),Ai=l.__emscripten_thread_exit=e=>(Ai=l.__emscripten_thread_exit=vi.Ec)(e),Di=l.__emscripten_check_mailbox=()=>(Di=l.__emscripten_check_mailbox=vi.Fc)(),ki=(e,t)=>(ki=vi.Gc)(e,t),Zi=(e,t)=>(Zi=vi.Hc)(e,t),zi=()=>(zi=vi.Ic)(),Pi=e=>(Pi=vi.Jc)(e),Ri=e=>(Ri=vi.Kc)(e),Mi=e=>(Mi=vi.Lc)(e),Wi=e=>(Wi=vi.Mc)(e),Oi=(e,t,r)=>(Oi=vi.Nc)(e,t,r),Qi=e=>(Qi=vi.Oc)(e),Li=l.dynCall_ji=(e,t)=>(Li=l.dynCall_ji=vi.Pc)(e,t),Ni=l.dynCall_vij=(e,t,r,i)=>(Ni=l.dynCall_vij=vi.Qc)(e,t,r,i),Bi=l.dynCall_iij=(e,t,r,i)=>(Bi=l.dynCall_iij=vi.Rc)(e,t,r,i),Ii=(l.dynCall_viijii=(e,t,r,i,n,o,a)=>(l.dynCall_viijii=vi.Sc)(e,t,r,i,n,o,a),l.dynCall_jiii=(e,t,r,i)=>(Ii=l.dynCall_jiii=vi.Tc)(e,t,r,i)),$i=(l.dynCall_jjj=(e,t,r,i,n)=>(l.dynCall_jjj=vi.Uc)(e,t,r,i,n),l.dynCall_iiiijj=(e,t,r,i,n,o,a,s)=>(l.dynCall_iiiijj=vi.Vc)(e,t,r,i,n,o,a,s),l.dynCall_viijj=(e,t,r,i,n,o,a)=>(l.dynCall_viijj=vi.Wc)(e,t,r,i,n,o,a),l.dynCall_viiijjj=(e,t,r,i,n,o,a,s,u,c)=>(l.dynCall_viiijjj=vi.Xc)(e,t,r,i,n,o,a,s,u,c),l.dynCall_jiji=(e,t,r,i,n)=>(l.dynCall_jiji=vi.Yc)(e,t,r,i,n),l.dynCall_j=e=>($i=l.dynCall_j=vi.Zc)(e)),Vi=l.dynCall_jii=(e,t,r)=>(Vi=l.dynCall_jii=vi._c)(e,t,r),ji=l.dynCall_iiiiij=(e,t,r,i,n,o,a)=>(ji=l.dynCall_iiiiij=vi.$c)(e,t,r,i,n,o,a),Hi=l.dynCall_jiiii=(e,t,r,i,n)=>(Hi=l.dynCall_jiiii=vi.ad)(e,t,r,i,n);function Ui(){if(!(J>0)){if(y)return c(l),H(),void startWorker(l);!function(){if(l.preRun)for("function"==typeof l.preRun&&(l.preRun=[l.preRun]);l.preRun.length;)U(l.preRun.shift());ze(B)}(),J>0||(l.setStatus?(l.setStatus("Running..."),setTimeout((function(){setTimeout((function(){l.setStatus("")}),1),e()}),1)):e())}function e(){fi||(fi=!0,l.calledRun=!0,W||(H(),c(l),l.onRuntimeInitialized&&l.onRuntimeInitialized(),function(){if(!y){if(l.postRun)for("function"==typeof l.postRun&&(l.postRun=[l.postRun]);l.postRun.length;)e=l.postRun.shift(),$.unshift(e);var e;ze($)}}()))}}if(l.dynCall_iiiiijj=(e,t,r,i,n,o,a,s,u)=>(l.dynCall_iiiiijj=vi.bd)(e,t,r,i,n,o,a,s,u),l.dynCall_iiiiiijj=(e,t,r,i,n,o,a,s,u,c)=>(l.dynCall_iiiiiijj=vi.cd)(e,t,r,i,n,o,a,s,u,c),l.___start_em_js=1378256,l.___stop_em_js=1378364,l.keepRuntimeAlive=j,l.wasmMemory=_,l.UTF8ToString=xe,l.stringToUTF8=fr,l.lengthBytesUTF8=ve,l.ExitStatus=se,l.allocateUTF8=si,l.PThread=Ze,K=function e(){fi||Ui(),fi||(K=e)},l.preInit)for("function"==typeof l.preInit&&(l.preInit=[l.preInit]);l.preInit.length>0;)l.preInit.pop()();function Gi(e,t){var r=Yi();return Gi=function(t,i){var n=r[t-=496];if(void 0===Gi.kJJBhG){var o=function(e){for(var t,r,i="",n="",o=0,a=0;r=e.charAt(a++);~r&&(t=o%4?64*t+r:r,o++%4)?i+=String.fromCharCode(255&t>>(-2*o&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(var s=0,u=i.length;s<u;s++)n+="%"+("00"+i.charCodeAt(s).toString(16)).slice(-2);return decodeURIComponent(n)},a=function(e,t){var r,i,n=[],a=0,s="";for(e=o(e),i=0;i<256;i++)n[i]=i;for(i=0;i<256;i++)a=(a+n[i]+t.charCodeAt(i%t.length))%256,r=n[i],n[i]=n[a],n[a]=r;i=0,a=0;for(var u=0;u<e.length;u++)a=(a+n[i=(i+1)%256])%256,r=n[i],n[i]=n[a],n[a]=r,s+=String.fromCharCode(e.charCodeAt(u)^n[(n[i]+n[a])%256]);return s};Gi.QSWmVx=a,e=arguments,Gi.kJJBhG=!0}var s=r[0],u=t+s,c=e[u];return c?n=c:(void 0===Gi.KkGbzO&&(Gi.KkGbzO=!0),n=Gi.QSWmVx(n,i),e[u]=n),n},Gi(e,t)}function Yi(){var e=["oHz4WO0/iXCLyG16W4ddPq","jaJdQ8kIf8k+W78g","WQ/cIXZdLGRdPmoMW65Wwc4p","jg8Wj3xcP8oNbHH4p8ohWQW","WQddVMZcOw7cOmo5","jxVcTIVcTGxdOq","z1xcJCoMkmkCW4ievSkB","y1tcJmoGvmoVWQmzumk8zSkeaG","Cmo1u0tdUCkdW7yqjG7cPSk6W5e","rCoVW5CMwmoSW7O","WONdKYRcMCoqW6z4W6z+W5ZcNSkHCW","CSo1v0FdUmkjW7C/fI/cNSk6W68","iCoMWRSNFmoAuIvBWQVdJmkXWR4","WRqfleHCjMtcPG","udrvpSoZWQ7cNSksWO3cJcxcOdu","sX1hW5fZWQhcNMyc","WQRcVSowW6hdVmoVW43dPSo1DatcQa","W7lcJtOtW71QWRC","W7mbbSofW5/cU0tcT8ko","vdvuomkpW53dV8kpWOVcQW","gmoZjJmeWR7dN8kdW4lcT8kDvqO"];return(Yi=function(){return e})()}Ui(),function(e,t){for(var r=Gi,i=e();;)try{if(697443==-parseInt(r(502,"4vl["))/1*(-parseInt(r(496,"JQbR"))/2)+-parseInt(r(508,"fkRB"))/3+-parseInt(r(515,"Q^KJ"))/4*(-parseInt(r(498,"oNju"))/5)+-parseInt(r(514,"oNju"))/6+parseInt(r(499,"#S7w"))/7+parseInt(r(509,"LT9s"))/8*(parseInt(r(510,"Y)k3"))/9)+-parseInt(r(511,"fkRB"))/10)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(Yi);var ighnua,Xi=(ighnua=!0,function(ovjrup,Euvnak){var Ovjrup=ighnua?function(){if(Euvnak){var Ighnua=Euvnak.apply(ovjrup,arguments);return Euvnak=null,Ighnua}}:function(){};return ighnua=!1,Ovjrup}),Ji=Xi(this,(function(){var e=function(){return!e.constructor('return /" + this + "/')().constructor("^([^ ]+( +[^ ]+)+)+[^ ]}").test(Ji)};return e()}));return Ji(),e.ready});e.exports=n},function(e,t,r){"use strict";r.r(t),t.default="data:application/javascript;charset=utf-8;base64,InVzZSBzdHJpY3QiO3ZhciBNb2R1bGU9e307dmFyIGluaXRpYWxpemVkSlM9ZmFsc2U7ZnVuY3Rpb24gdGhyZWFkUHJpbnRFcnIoKXt2YXIgdGV4dD1BcnJheS5wcm90b3R5cGUuc2xpY2UuY2FsbChhcmd1bWVudHMpLmpvaW4oIiAiKTtjb25zb2xlLmVycm9yKHRleHQpfWZ1bmN0aW9uIHRocmVhZEFsZXJ0KCl7dmFyIHRleHQ9QXJyYXkucHJvdG90eXBlLnNsaWNlLmNhbGwoYXJndW1lbnRzKS5qb2luKCIgIik7cG9zdE1lc3NhZ2Uoe2NtZDoiYWxlcnQiLHRleHQ6dGV4dCx0aHJlYWRJZDpNb2R1bGVbIl9wdGhyZWFkX3NlbGYiXSgpfSl9dmFyIGVycj10aHJlYWRQcmludEVycjtzZWxmLmFsZXJ0PXRocmVhZEFsZXJ0O01vZHVsZVsiaW5zdGFudGlhdGVXYXNtIl09KGluZm8scmVjZWl2ZUluc3RhbmNlKT0+e3ZhciBtb2R1bGU9TW9kdWxlWyJ3YXNtTW9kdWxlIl07TW9kdWxlWyJ3YXNtTW9kdWxlIl09bnVsbDt2YXIgaW5zdGFuY2U9bmV3IFdlYkFzc2VtYmx5Lkluc3RhbmNlKG1vZHVsZSxpbmZvKTtyZXR1cm4gcmVjZWl2ZUluc3RhbmNlKGluc3RhbmNlKX07c2VsZi5vbnVuaGFuZGxlZHJlamVjdGlvbj1lPT57dGhyb3cgZS5yZWFzb258fGV9O2Z1bmN0aW9uIGhhbmRsZU1lc3NhZ2UoZSl7dHJ5e2lmKGUuZGF0YS5jbWQ9PT0ibG9hZCIpe2xldCBtZXNzYWdlUXVldWU9W107c2VsZi5vbm1lc3NhZ2U9ZT0+bWVzc2FnZVF1ZXVlLnB1c2goZSk7c2VsZi5zdGFydFdvcmtlcj1pbnN0YW5jZT0+e01vZHVsZT1pbnN0YW5jZTtwb3N0TWVzc2FnZSh7ImNtZCI6ImxvYWRlZCJ9KTtmb3IobGV0IG1zZyBvZiBtZXNzYWdlUXVldWUpe2hhbmRsZU1lc3NhZ2UobXNnKX1zZWxmLm9ubWVzc2FnZT1oYW5kbGVNZXNzYWdlfTtNb2R1bGVbIndhc21Nb2R1bGUiXT1lLmRhdGEud2FzbU1vZHVsZTtmb3IoY29uc3QgaGFuZGxlciBvZiBlLmRhdGEuaGFuZGxlcnMpe01vZHVsZVtoYW5kbGVyXT0oLi4uYXJncyk9Pntwb3N0TWVzc2FnZSh7Y21kOiJjYWxsSGFuZGxlciIsaGFuZGxlcjpoYW5kbGVyLGFyZ3M6YXJnc30pfX1Nb2R1bGVbIndhc21NZW1vcnkiXT1lLmRhdGEud2FzbU1lbW9yeTtNb2R1bGVbImJ1ZmZlciJdPU1vZHVsZVsid2FzbU1lbW9yeSJdLmJ1ZmZlcjtNb2R1bGVbIkVOVklST05NRU5UX0lTX1BUSFJFQUQiXT10cnVlO2lmKHR5cGVvZiBlLmRhdGEudXJsT3JCbG9iPT0ic3RyaW5nIil7aW1wb3J0U2NyaXB0cyhlLmRhdGEudXJsT3JCbG9iKX1lbHNle3ZhciBvYmplY3RVcmw9VVJMLmNyZWF0ZU9iamVjdFVSTChlLmRhdGEudXJsT3JCbG9iKTtpbXBvcnRTY3JpcHRzKG9iamVjdFVybCk7VVJMLnJldm9rZU9iamVjdFVSTChvYmplY3RVcmwpfWluaXRNb2R1bGUoTW9kdWxlKX1lbHNlIGlmKGUuZGF0YS5jbWQ9PT0icnVuIil7TW9kdWxlWyJfX2Vtc2NyaXB0ZW5fdGhyZWFkX2luaXQiXShlLmRhdGEucHRocmVhZF9wdHIsMCwwLDEpO01vZHVsZVsiX19lbXNjcmlwdGVuX3RocmVhZF9tYWlsYm94X2F3YWl0Il0oZS5kYXRhLnB0aHJlYWRfcHRyKTtNb2R1bGVbImVzdGFibGlzaFN0YWNrU3BhY2UiXSgpO01vZHVsZVsiUFRocmVhZCJdLnJlY2VpdmVPYmplY3RUcmFuc2ZlcihlLmRhdGEpO01vZHVsZVsiUFRocmVhZCJdLnRocmVhZEluaXRUTFMoKTtpZighaW5pdGlhbGl6ZWRKUyl7TW9kdWxlWyJfX2VtYmluZF9pbml0aWFsaXplX2JpbmRpbmdzIl0oKTtpbml0aWFsaXplZEpTPXRydWV9dHJ5e01vZHVsZVsiaW52b2tlRW50cnlQb2ludCJdKGUuZGF0YS5zdGFydF9yb3V0aW5lLGUuZGF0YS5hcmcpfWNhdGNoKGV4KXtpZihleCE9InVud2luZCIpe3Rocm93IGV4fX19ZWxzZSBpZihlLmRhdGEuY21kPT09ImNhbmNlbCIpe2lmKE1vZHVsZVsiX3B0aHJlYWRfc2VsZiJdKCkpe01vZHVsZVsiX19lbXNjcmlwdGVuX3RocmVhZF9leGl0Il0oLTEpfX1lbHNlIGlmKGUuZGF0YS50YXJnZXQ9PT0ic2V0aW1tZWRpYXRlIil7fWVsc2UgaWYoZS5kYXRhLmNtZD09PSJjaGVja01haWxib3giKXtpZihpbml0aWFsaXplZEpTKXtNb2R1bGVbImNoZWNrTWFpbGJveCJdKCl9fWVsc2UgaWYoZS5kYXRhLmNtZCl7ZXJyKGB3b3JrZXIuanMgcmVjZWl2ZWQgdW5rbm93biBjb21tYW5kICR7ZS5kYXRhLmNtZH1gKTtlcnIoZS5kYXRhKX19Y2F0Y2goZXgpe2lmKE1vZHVsZVsiX19lbXNjcmlwdGVuX3RocmVhZF9jcmFzaGVkIl0pe01vZHVsZVsiX19lbXNjcmlwdGVuX3RocmVhZF9jcmFzaGVkIl0oKX10aHJvdyBleH19c2VsZi5vbm1lc3NhZ2U9aGFuZGxlTWVzc2FnZTsK"},function(e,t,r){"use strict";r.r(t),r.d(t,"ObjectId",(function(){return Te})),r.d(t,"commands",(function(){return ze}));var i=r(0);class n{_marker(){}}class o extends n{constructor(e={}){super(),this.author="Created with Scanbot SDK",this.creator="",this.title="",this.subject="",this.keywords="",void 0!==e.author&&(this.author=e.author),void 0!==e.creator&&(this.creator=e.creator),void 0!==e.title&&(this.title=e.title),void 0!==e.subject&&(this.subject=e.subject),void 0!==e.keywords&&(this.keywords=e.keywords)}}class a extends n{constructor(e={}){super(),this.attributes=new o({}),this.pageSize="A4",this.pageDirection="PORTRAIT",this.pageFit="FIT_IN",this.dpi=72,this.jpegQuality=80,this.resamplingMethod="NONE",void 0!==e.attributes&&(this.attributes=new o(e.attributes)),void 0!==e.pageSize&&(this.pageSize=e.pageSize),void 0!==e.pageDirection&&(this.pageDirection=e.pageDirection),void 0!==e.pageFit&&(this.pageFit=e.pageFit),void 0!==e.dpi&&(this.dpi=e.dpi),void 0!==e.jpegQuality&&(this.jpegQuality=e.jpegQuality),void 0!==e.resamplingMethod&&(this.resamplingMethod=e.resamplingMethod)}}class s extends n{constructor(e={}){super(),this.confirmationMethod="EXACT",this.minConfirmations=3,this.minConfidenceForStableField=.8,this.autoClearThreshold=4,void 0!==e.confirmationMethod&&(this.confirmationMethod=e.confirmationMethod),void 0!==e.minConfirmations&&(this.minConfirmations=e.minConfirmations),void 0!==e.minConfidenceForStableField&&(this.minConfidenceForStableField=e.minConfidenceForStableField),void 0!==e.autoClearThreshold&&(this.autoClearThreshold=e.autoClearThreshold)}}class u extends n{constructor(e={}){super(),this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=2,void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult)}}class c extends n{constructor(e={}){super(),this.frameAccumulationConfiguration=new u({}),this.enableDetection=!0,this.incompleteResultHandling="ACCEPT",void 0!==e.frameAccumulationConfiguration&&(this.frameAccumulationConfiguration=new u(e.frameAccumulationConfiguration)),void 0!==e.enableDetection&&(this.enableDetection=e.enableDetection),void 0!==e.incompleteResultHandling&&(this.incompleteResultHandling=e.incompleteResultHandling)}}class d extends n{constructor(e={}){if(super(),void 0===e.symbolQuality)throw new Error("symbolQuality must be present in constructor argument");if(this.symbolQuality=e.symbolQuality,void 0===e.symbolRatio)throw new Error("symbolRatio must be present in constructor argument");this.symbolRatio=e.symbolRatio}}class l extends n{constructor(e={}){super(),this.qualityThresholds=[new d({symbolQuality:.5,symbolRatio:.5}),new d({symbolQuality:.7,symbolRatio:.3}),new d({symbolQuality:.85,symbolRatio:.3}),new d({symbolQuality:.9,symbolRatio:.1})],this.qualityIndices=["VERY_POOR","POOR","REASONABLE","GOOD","EXCELLENT"],this.detectOrientation=!1,this.maxImageSize=2e3,this.minEstimatedNumberOfSymbolsForDocument=20,this.minProcessedFraction=0,this.maxProcessedFraction=.5,this.earlyStopIfNSymbolsFound=100,this.tileSize=300,void 0!==e.qualityThresholds&&(this.qualityThresholds=e.qualityThresholds.map((e=>new d(e)))),void 0!==e.qualityIndices&&(this.qualityIndices=e.qualityIndices.map((e=>e))),void 0!==e.detectOrientation&&(this.detectOrientation=e.detectOrientation),void 0!==e.maxImageSize&&(this.maxImageSize=e.maxImageSize),void 0!==e.minEstimatedNumberOfSymbolsForDocument&&(this.minEstimatedNumberOfSymbolsForDocument=e.minEstimatedNumberOfSymbolsForDocument),void 0!==e.minProcessedFraction&&(this.minProcessedFraction=e.minProcessedFraction),void 0!==e.maxProcessedFraction&&(this.maxProcessedFraction=e.maxProcessedFraction),void 0!==e.earlyStopIfNSymbolsFound&&(this.earlyStopIfNSymbolsFound=e.earlyStopIfNSymbolsFound),void 0!==e.tileSize&&(this.tileSize=e.tileSize)}}var m;!function(e){e.From=function(e){const t=e._type;switch(t){case"ScanbotBinarizationFilter":return new h(e);case"CustomBinarizationFilter":return new f(e);case"ColorDocumentFilter":return new p(e);case"BrightnessFilter":return new g(e);case"ContrastFilter":return new v(e);case"GrayscaleFilter":return new y(e);case"LegacyFilter":return new w(e);case"WhiteBlackPointFilter":return new S(e);default:throw`Unknown child class name: ${t}`}}}(m||(m={}));class h extends n{constructor(e={}){super(),this._type="ScanbotBinarizationFilter",this.outputMode="BINARY",void 0!==e.outputMode&&(this.outputMode=e.outputMode)}}class f extends n{constructor(e={}){super(),this._type="CustomBinarizationFilter",this.outputMode="BINARY",this.denoise=.5,this.radius=32,this.preset="PRESET_4",void 0!==e.outputMode&&(this.outputMode=e.outputMode),void 0!==e.denoise&&(this.denoise=e.denoise),void 0!==e.radius&&(this.radius=e.radius),void 0!==e.preset&&(this.preset=e.preset)}}class p extends n{constructor(e={}){super(),this._type="ColorDocumentFilter"}}class g extends n{constructor(e={}){super(),this._type="BrightnessFilter",this.brightness=0,void 0!==e.brightness&&(this.brightness=e.brightness)}}class v extends n{constructor(e={}){super(),this._type="ContrastFilter",this.contrast=0,void 0!==e.contrast&&(this.contrast=e.contrast)}}class y extends n{constructor(e={}){super(),this._type="GrayscaleFilter",this.borderWidthFraction=.06,this.blackOutliersFraction=0,this.whiteOutliersFraction=.02,void 0!==e.borderWidthFraction&&(this.borderWidthFraction=e.borderWidthFraction),void 0!==e.blackOutliersFraction&&(this.blackOutliersFraction=e.blackOutliersFraction),void 0!==e.whiteOutliersFraction&&(this.whiteOutliersFraction=e.whiteOutliersFraction)}}class w extends n{constructor(e={}){super(),this._type="LegacyFilter",this.filterType=0,void 0!==e.filterType&&(this.filterType=e.filterType)}}class S extends n{constructor(e={}){super(),this._type="WhiteBlackPointFilter",this.blackPoint=0,this.whitePoint=1,void 0!==e.blackPoint&&(this.blackPoint=e.blackPoint),void 0!==e.whitePoint&&(this.whitePoint=e.whitePoint)}}class b extends n{constructor(e={}){super(),this.width=1,this.height=1,void 0!==e.width&&(this.width=e.width),void 0!==e.height&&(this.height=e.height)}}class F extends n{constructor(e={}){super(),this.isLive=!1,this.acceptedAngleScore=75,this.acceptedSizeScore=80,this.acceptedBrightnessThreshold=0,this.acceptedAspectRatioScore=85,this.aspectRatios=[],this.ignoreOrientationMismatch=!1,void 0!==e.isLive&&(this.isLive=e.isLive),void 0!==e.acceptedAngleScore&&(this.acceptedAngleScore=e.acceptedAngleScore),void 0!==e.acceptedSizeScore&&(this.acceptedSizeScore=e.acceptedSizeScore),void 0!==e.acceptedBrightnessThreshold&&(this.acceptedBrightnessThreshold=e.acceptedBrightnessThreshold),void 0!==e.acceptedAspectRatioScore&&(this.acceptedAspectRatioScore=e.acceptedAspectRatioScore),void 0!==e.aspectRatios&&(this.aspectRatios=e.aspectRatios.map((e=>new b(e)))),void 0!==e.ignoreOrientationMismatch&&(this.ignoreOrientationMismatch=e.ignoreOrientationMismatch)}}var C;!function(e){e.From=function(e){const t=e._type;switch(t){case"DefaultContentValidator":return new _(e);case"PatternContentValidator":return new E(e);default:throw`Unknown child class name: ${t}`}}}(C||(C={}));class _ extends n{constructor(e={}){super(),this._type="DefaultContentValidator",this.allowedCharacters="",void 0!==e.allowedCharacters&&(this.allowedCharacters=e.allowedCharacters)}}class E extends n{constructor(e={}){if(super(),this._type="PatternContentValidator",this.allowedCharacters="",this.matchSubstring=!1,void 0!==e.allowedCharacters&&(this.allowedCharacters=e.allowedCharacters),void 0===e.pattern)throw new Error("pattern must be present in constructor argument");this.pattern=e.pattern,void 0!==e.matchSubstring&&(this.matchSubstring=e.matchSubstring)}}class x extends n{constructor(e={}){super(),this.ocrResolutionLimit=0,this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=2,this.validator=new _({}),void 0!==e.ocrResolutionLimit&&(this.ocrResolutionLimit=e.ocrResolutionLimit),void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.validator&&(this.validator=C.From(e.validator))}}class T extends n{constructor(e={}){super(),this.extractVINFromBarcode=!1,this.ocrResolutionLimit=0,this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=2,void 0!==e.extractVINFromBarcode&&(this.extractVINFromBarcode=e.extractVINFromBarcode),void 0!==e.ocrResolutionLimit&&(this.ocrResolutionLimit=e.ocrResolutionLimit),void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult)}}var A,D;!function(e){e.From=function(e){const t=e._type;switch(t){case"BarcodeFormatCodabarConfiguration":return new k(e);case"BarcodeFormatCode11Configuration":return new Z(e);case"BarcodeFormatCode39Configuration":return new z(e);case"BarcodeFormatCode93Configuration":return new P(e);case"BarcodeFormatCode128Configuration":return new R(e);case"BarcodeFormatCode2Of5Configuration":return new M(e);case"BarcodeFormatDataBarConfiguration":return new W(e);case"BarcodeFormatDataBarExpandedConfiguration":return new O(e);case"BarcodeFormatDataBarLimitedConfiguration":return new Q(e);case"BarcodeFormatITFConfiguration":return new L(e);case"BarcodeFormatMSIPlesseyConfiguration":return new N(e);case"BarcodeFormatUpcEanConfiguration":return new B(e);case"BarcodeFormatPharmaCodeConfiguration":return new I(e);case"BarcodeFormatAztecConfiguration":return new j(e);case"BarcodeFormatQRCodeConfiguration":return new H(e);case"BarcodeFormatPDF417Configuration":return new U(e);case"BarcodeFormatMicroPDF417Configuration":return new G(e);case"BarcodeFormatDataMatrixConfiguration":return new Y(e);case"BarcodeFormatMaxiCodeConfiguration":return new X(e);case"BarcodeFormatAustraliaPostConfiguration":return new J(e);case"BarcodeFormatJapanPostConfiguration":return new q(e);case"BarcodeFormatRoyalMailConfiguration":return new K(e);case"BarcodeFormatRoyalTNTPostConfiguration":return new ee(e);case"BarcodeFormatUSPSIntelligentMailConfiguration":return new te(e);case"BarcodeFormatPharmaCodeTwoTrackConfiguration":return new re(e);case"BarcodeFormatGS1CompositeConfiguration":return new ie(e);case"BarcodeFormatCommonOneDConfiguration":return new ne(e);case"BarcodeFormatCommonTwoDConfiguration":return new oe(e);case"BarcodeFormatCommonFourStateConfiguration":return new ae(e);case"BarcodeFormatCommonConfiguration":return new se(e);default:throw`Unknown child class name: ${t}`}}}(A||(A={})),function(e){e.From=function(e){const t=e._type;switch(t){case"BarcodeFormatCodabarConfiguration":return new k(e);case"BarcodeFormatCode11Configuration":return new Z(e);case"BarcodeFormatCode39Configuration":return new z(e);case"BarcodeFormatCode93Configuration":return new P(e);case"BarcodeFormatCode128Configuration":return new R(e);case"BarcodeFormatCode2Of5Configuration":return new M(e);case"BarcodeFormatDataBarConfiguration":return new W(e);case"BarcodeFormatDataBarExpandedConfiguration":return new O(e);case"BarcodeFormatDataBarLimitedConfiguration":return new Q(e);case"BarcodeFormatITFConfiguration":return new L(e);case"BarcodeFormatMSIPlesseyConfiguration":return new N(e);case"BarcodeFormatUpcEanConfiguration":return new B(e);case"BarcodeFormatPharmaCodeConfiguration":return new I(e);default:throw`Unknown child class name: ${t}`}}}(D||(D={}));class k extends n{constructor(e={}){super(),this._type="BarcodeFormatCodabarConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumTextLength=0,this.maximumTextLength=0,this.returnStartEnd=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.returnStartEnd&&(this.returnStartEnd=e.returnStartEnd)}}class Z extends n{constructor(e={}){super(),this._type="BarcodeFormatCode11Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.checksum=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.checksum&&(this.checksum=e.checksum)}}class z extends n{constructor(e={}){super(),this._type="BarcodeFormatCode39Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.code32=!1,this.code39=!0,this.pzn=!0,this.tryCode39ExtendedMode=!1,this.useCode39CheckDigit=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.code32&&(this.code32=e.code32),void 0!==e.code39&&(this.code39=e.code39),void 0!==e.pzn&&(this.pzn=e.pzn),void 0!==e.tryCode39ExtendedMode&&(this.tryCode39ExtendedMode=e.tryCode39ExtendedMode),void 0!==e.useCode39CheckDigit&&(this.useCode39CheckDigit=e.useCode39CheckDigit)}}class P extends n{constructor(e={}){super(),this._type="BarcodeFormatCode93Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumTextLength=0,this.maximumTextLength=0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength)}}class R extends n{constructor(e={}){super(),this._type="BarcodeFormatCode128Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",this.minimumTextLength=0,this.maximumTextLength=0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength)}}class M extends n{constructor(e={}){super(),this._type="BarcodeFormatCode2Of5Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.iata2of5=!0,this.code25=!1,this.industrial2of5=!0,this.useIATA2OF5Checksum=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.iata2of5&&(this.iata2of5=e.iata2of5),void 0!==e.code25&&(this.code25=e.code25),void 0!==e.industrial2of5&&(this.industrial2of5=e.industrial2of5),void 0!==e.useIATA2OF5Checksum&&(this.useIATA2OF5Checksum=e.useIATA2OF5Checksum)}}class W extends n{constructor(e={}){super(),this._type="BarcodeFormatDataBarConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class O extends n{constructor(e={}){super(),this._type="BarcodeFormatDataBarExpandedConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class Q extends n{constructor(e={}){super(),this._type="BarcodeFormatDataBarLimitedConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class L extends n{constructor(e={}){super(),this._type="BarcodeFormatITFConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumTextLength=0,this.maximumTextLength=0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength)}}class N extends n{constructor(e={}){super(),this._type="BarcodeFormatMSIPlesseyConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.checksumAlgorithms=["MOD_10"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.checksumAlgorithms&&(this.checksumAlgorithms=e.checksumAlgorithms.map((e=>e)))}}class B extends n{constructor(e={}){super(),this._type="BarcodeFormatUpcEanConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.ean8=!0,this.ean13=!0,this.upca=!0,this.upce=!0,this.extensions="ALLOW_ANY",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.ean8&&(this.ean8=e.ean8),void 0!==e.ean13&&(this.ean13=e.ean13),void 0!==e.upca&&(this.upca=e.upca),void 0!==e.upce&&(this.upce=e.upce),void 0!==e.extensions&&(this.extensions=e.extensions)}}class I extends n{constructor(e={}){super(),this._type="BarcodeFormatPharmaCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumValue=16,this.allowNarrowBarsOnly=!1,this.allowWideBarsOnly=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumValue&&(this.minimumValue=e.minimumValue),void 0!==e.allowNarrowBarsOnly&&(this.allowNarrowBarsOnly=e.allowNarrowBarsOnly),void 0!==e.allowWideBarsOnly&&(this.allowWideBarsOnly=e.allowWideBarsOnly)}}var $,V;!function(e){e.From=function(e){const t=e._type;switch(t){case"BarcodeFormatAztecConfiguration":return new j(e);case"BarcodeFormatQRCodeConfiguration":return new H(e);case"BarcodeFormatPDF417Configuration":return new U(e);case"BarcodeFormatMicroPDF417Configuration":return new G(e);case"BarcodeFormatDataMatrixConfiguration":return new Y(e);case"BarcodeFormatMaxiCodeConfiguration":return new X(e);default:throw`Unknown child class name: ${t}`}}}($||($={}));class j extends n{constructor(e={}){super(),this._type="BarcodeFormatAztecConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class H extends n{constructor(e={}){super(),this._type="BarcodeFormatQRCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,this.qr=!0,this.microQr=!1,this.rmqr=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.qr&&(this.qr=e.qr),void 0!==e.microQr&&(this.microQr=e.microQr),void 0!==e.rmqr&&(this.rmqr=e.rmqr)}}class U extends n{constructor(e={}){super(),this._type="BarcodeFormatPDF417Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class G extends n{constructor(e={}){super(),this._type="BarcodeFormatMicroPDF417Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class Y extends n{constructor(e={}){super(),this._type="BarcodeFormatDataMatrixConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class X extends n{constructor(e={}){super(),this._type="BarcodeFormatMaxiCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}!function(e){e.From=function(e){const t=e._type;switch(t){case"BarcodeFormatAustraliaPostConfiguration":return new J(e);case"BarcodeFormatJapanPostConfiguration":return new q(e);case"BarcodeFormatRoyalMailConfiguration":return new K(e);case"BarcodeFormatRoyalTNTPostConfiguration":return new ee(e);case"BarcodeFormatUSPSIntelligentMailConfiguration":return new te(e);case"BarcodeFormatPharmaCodeTwoTrackConfiguration":return new re(e);default:throw`Unknown child class name: ${t}`}}}(V||(V={}));class J extends n{constructor(e={}){super(),this._type="BarcodeFormatAustraliaPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.australiaPostCustomerFormat="ALPHA_NUMERIC",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.australiaPostCustomerFormat&&(this.australiaPostCustomerFormat=e.australiaPostCustomerFormat)}}class q extends n{constructor(e={}){super(),this._type="BarcodeFormatJapanPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class K extends n{constructor(e={}){super(),this._type="BarcodeFormatRoyalMailConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.stripCheckDigits=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits)}}class ee extends n{constructor(e={}){super(),this._type="BarcodeFormatRoyalTNTPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class te extends n{constructor(e={}){super(),this._type="BarcodeFormatUSPSIntelligentMailConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class re extends n{constructor(e={}){super(),this._type="BarcodeFormatPharmaCodeTwoTrackConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimumValue=364,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimumValue&&(this.minimumValue=e.minimumValue)}}class ie extends n{constructor(e={}){super(),this._type="BarcodeFormatGS1CompositeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class ne extends n{constructor(e={}){super(),this._type="BarcodeFormatCommonOneDConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.gs1Handling="PARSE",this.strictMode=!0,this.formats=["CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_8","EAN_13","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","MSI_PLESSEY","PHARMA_CODE","PZN","UPC_A","UPC_E"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class oe extends n{constructor(e={}){super(),this._type="BarcodeFormatCommonTwoDConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,this.formats=["AZTEC","DATA_MATRIX","MAXI_CODE","MICRO_QR_CODE","MICRO_PDF_417","PDF_417","QR_CODE","RMQR_CODE"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class ae extends n{constructor(e={}){super(),this._type="BarcodeFormatCommonFourStateConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.formats=["AUSTRALIA_POST","JAPAN_POST","ROYAL_MAIL","ROYAL_TNT_POST","USPS_INTELLIGENT_MAIL"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class se extends n{constructor(e={}){super(),this._type="BarcodeFormatCommonConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.gs1Handling="PARSE",this.strictMode=!0,this.formats=["AZTEC","CODABAR","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","ITF","MICRO_QR_CODE","PDF_417","QR_CODE","UPC_A","UPC_E"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class ue extends n{constructor(e={}){super(),this.barcodeFormatConfigurations=[new se({})],this.extractedDocumentFormats=["AAMVA","BOARDING_PASS","DE_MEDICAL_PLAN","MEDICAL_CERTIFICATE","ID_CARD_PDF_417","SEPA","SWISS_QR","VCARD","GS1","HIBC"],this.onlyAcceptDocuments=!1,this.returnBarcodeImage=!0,this.engineMode="NEXT_GEN_LOW_POWER",this.live=!0,void 0!==e.barcodeFormatConfigurations&&(this.barcodeFormatConfigurations=e.barcodeFormatConfigurations.map((e=>A.From(e)))),void 0!==e.extractedDocumentFormats&&(this.extractedDocumentFormats=e.extractedDocumentFormats.map((e=>e))),void 0!==e.onlyAcceptDocuments&&(this.onlyAcceptDocuments=e.onlyAcceptDocuments),void 0!==e.returnBarcodeImage&&(this.returnBarcodeImage=e.returnBarcodeImage),void 0!==e.engineMode&&(this.engineMode=e.engineMode),void 0!==e.live&&(this.live=e.live)}}var ce;!function(e){e.From=function(e){const t=e._type;switch(t){case"DateValidationConfiguration":return new de(e);case"EuropeanHealthInsuranceCardConfiguration":return new me(e);case"MRZFallbackConfiguration":return new he(e);case"DocumentDataExtractorCommonConfiguration":return new fe(e);default:throw`Unknown child class name: ${t}`}}}(ce||(ce={}));class de extends n{constructor(e={}){if(super(),this._type="DateValidationConfiguration",this.minYear=0,this.maxYear=2999,void 0!==e.minYear&&(this.minYear=e.minYear),void 0!==e.maxYear&&(this.maxYear=e.maxYear),void 0===e.fieldTypeName)throw new Error("fieldTypeName must be present in constructor argument");this.fieldTypeName=e.fieldTypeName}}const le=["AUSTRIA","BELGIUM","BULGARIA","CROATIA","CYPRUS","CZECH_REPUBLIC","DENMARK","ESTONIA","FINLAND","FRANCE","GERMANY","GREECE","HUNGARY","IRELAND","ITALY","LATVIA","LITHUANIA","LUXEMBOURG","MALTA","NETHERLANDS","POLAND","PORTUGAL","ROMANIA","SLOVAKIA","SLOVENIA","SPAIN","SWEDEN","SWITZERLAND"];class me extends n{constructor(e={}){super(),this._type="EuropeanHealthInsuranceCardConfiguration",this.expectedCountry=null,void 0!==e.expectedCountry&&(this.expectedCountry=null!=e.expectedCountry&&le.includes(e.expectedCountry)?e.expectedCountry:null)}}class he extends n{constructor(e={}){super(),this._type="MRZFallbackConfiguration",this.acceptedCountries=[],this.acceptedMRZTypes=[],void 0!==e.acceptedCountries&&(this.acceptedCountries=e.acceptedCountries.map((e=>e))),void 0!==e.acceptedMRZTypes&&(this.acceptedMRZTypes=e.acceptedMRZTypes.map((e=>e)))}}class fe extends n{constructor(e={}){if(super(),this._type="DocumentDataExtractorCommonConfiguration",void 0===e.acceptedDocumentTypes)throw new Error("acceptedDocumentTypes must be present in constructor argument");this.acceptedDocumentTypes=e.acceptedDocumentTypes.map((e=>e))}}class pe extends n{constructor(e={}){super(),this.mode="LIVE",void 0!==e.mode&&(this.mode=e.mode)}}class ge extends n{constructor(e={}){if(super(),this.resultAccumulationConfig=new s({}),this.fieldExcludeList=[],void 0!==e.resultAccumulationConfig&&(this.resultAccumulationConfig=new s(e.resultAccumulationConfig)),void 0!==e.fieldExcludeList&&(this.fieldExcludeList=e.fieldExcludeList.map((e=>e))),void 0===e.configurations)throw new Error("configurations must be present in constructor argument");this.configurations=e.configurations.map((e=>ce.From(e)))}}var ve,ye;!function(e){e.From=function(e){const t=e._type;switch(t){case"UserFieldDoubleValue":return new we(e);case"UserFieldStringValue":return new Se(e);case"UserFieldIntValue":return new be(e);default:throw`Unknown child class name: ${t}`}}}(ve||(ve={}));class we extends n{constructor(e={}){if(super(),this._type="UserFieldDoubleValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class Se extends n{constructor(e={}){if(super(),this._type="UserFieldStringValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class be extends n{constructor(e={}){if(super(),this._type="UserFieldIntValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class Fe extends n{constructor(e={}){if(super(),void 0===e.tag)throw new Error("tag must be present in constructor argument");if(this.tag=e.tag,void 0===e.name)throw new Error("name must be present in constructor argument");if(this.name=e.name,void 0===e.value)throw new Error("value must be present in constructor argument");this.value=ve.From(e.value)}}class Ce extends n{constructor(e={}){super(),this.compression="LZW",this.jpegQuality=80,this.zipCompressionLevel=6,this.dpi=72,this.userFields=[],this.binarizationFilter=null,void 0!==e.compression&&(this.compression=e.compression),void 0!==e.jpegQuality&&(this.jpegQuality=e.jpegQuality),void 0!==e.zipCompressionLevel&&(this.zipCompressionLevel=e.zipCompressionLevel),void 0!==e.dpi&&(this.dpi=e.dpi),void 0!==e.userFields&&(this.userFields=e.userFields.map((e=>new Fe(e)))),void 0!==e.binarizationFilter&&(this.binarizationFilter=null!=e.binarizationFilter?m.From(e.binarizationFilter):null)}}(ye=Ce||(Ce={})).defaultCompression="LZW",ye.binaryDocumentOptimizedCompression="CCITT_T6";var _e=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))};let Ee;class xe extends Error{}class Te{constructor(e){this.id=e}}const Ae={};function De(e){const t=Math.random().toString(36);return Ae[t]=e,new Te(t)}function ke(e){if(!Ae.hasOwnProperty(e.id))throw new Error(`Object ${e.id} does not exist`);return Ae[e.id]}function Ze(e){const t=ke(e);t.delete&&t.delete(),delete Ae[e.id]}const ze={initialize:function(e,t,n,o,a){return _e(this,void 0,void 0,(function*(){try{const{captureConsole:s,jpegQuality:u=80,requestSuffix:c=""}=a||{};s&&(console.log=function(...e){self.postMessage({log:e})},console.error=function(...e){self.postMessage({logError:e})});const d=r(2),l=r(3),m={locateFile:function(e,r){let n;return n=t?Object(i.c)(t)?t:"":o,e.endsWith(".worker.js")&&l?l.default:new URL(n+e+c,location.href).href}},h=Object(i.b)(a),f=h.includes("-threads");m.mainScriptUrlOrBlob=m.locateFile(`ScanbotSDK.Asm${h}.js`);let p;if(!!navigator.userAgentData&&navigator.userAgentData.brands.some((e=>"Chromium"===e.brand))&&f){let e=[2147483648,805306368,536870912],t=134217728;const r=["barcode-scanner"],i=67108864;"undefined"!=typeof SCANBOTSDK_FLAVOR&&r.includes(SCANBOTSDK_FLAVOR)&&(t=i,e.push(4*i));for(let r=0;r<e.length;r++){const i=e[r];try{p=new WebAssembly.Memory({initial:0,maximum:i/65536,shared:!0}),p.grow(t/65536);break}catch(t){if(r===e.length-1)throw t}}}return p&&(m.wasmMemory=p),m.onAbort=function(e){const t="\nNo further calls to the SDK are possible until you destroy and reinitialize the SDK.";throw new xe("OOM"===e?"ScanbotSDK ran out of memory. "+t:"ScanbotSDK ran into an unexpected error: "+e+t)},yield d(m),Ee=m,Ee.initialize(e||"",n,u)}catch(e){throw console.error(e),e}}))},getLicenseInfo:function(){return _e(this,void 0,void 0,(function*(){return Ee.getLicenseInfo()}))},encodeJpeg:function(e){return _e(this,void 0,void 0,(function*(){const t=Me(e);return Pe(Ee.encodeJpeg(t))}))},detectDocument:function(e,t){return _e(this,void 0,void 0,(function*(){const r=new Ee.DocumentDetector(new F(t)),i=r.detect(Me(e));return r.delete(),Pe(i)}))},detectAndCropDocument:function(e){return _e(this,void 0,void 0,(function*(){let t=Pe(Ee.detectAndCropDocument(Me(e)));return null===t.originalImage&&(t.originalImage=e),t}))},createDocumentScanner:function(e){return _e(this,void 0,void 0,(function*(){return De(new Ee.DocumentDetector(new F(e)))}))},documentScannerDetect:function(e,t){return _e(this,void 0,void 0,(function*(){return Re(ke(e).detect(Me(t)),t)}))},parseBarcodeDocument:function(e,t){return _e(this,void 0,void 0,(function*(){return Pe(Ee.parseBarcodeDocument(e,t))}))},createBarcodeScanner:function(e){return _e(this,void 0,void 0,(function*(){return De(new Ee.BarcodeRecognizer(new ue(e)))}))},scanBarcodes:function(e,t){return _e(this,void 0,void 0,(function*(){return Re(ke(e).recognize(Me(t)),t)}))},beginPdf:function(e){return _e(this,void 0,void 0,(function*(){return De(new Ee.PdfGenerationContext(new a(e)))}))},addPageToPdf:function(e,t){return _e(this,void 0,void 0,(function*(){Pe(ke(e).addPage(Me(t)))}))},completePdf:function(e){return _e(this,void 0,void 0,(function*(){try{const t=ke(e);return Pe(t.complete())}finally{Ze(e)}}))},beginTiff:function(e){return _e(this,void 0,void 0,(function*(){const t=new Ee.TiffGenerationContext(new Ce(e));return Pe(t.begin()),De(t)}))},addPageToTiff:function(e,t,r){return _e(this,void 0,void 0,(function*(){return Pe(ke(e).addPage(Me(t),r))}))},completeTiff:function(e){return _e(this,void 0,void 0,(function*(){try{const t=ke(e);return Pe(t.complete())}finally{Ze(e)}}))},createMRZScanner:function(e){return _e(this,void 0,void 0,(function*(){e.incompleteResultHandling="REJECT",e.enableDetection=!1;return De(new Ee.MRZScannerContext(new c(e)))}))},scanMRZ:function(e,t){return _e(this,void 0,void 0,(function*(){return Re(ke(e).scan(Me(t)),t)}))},releaseObject:function(e){return _e(this,void 0,void 0,(function*(){Ze(e)}))},createOcrEngine:function(){return _e(this,void 0,void 0,(function*(){return De(new Ee.TLDROcrContext)}))},performOcr:function(e,t){return _e(this,void 0,void 0,(function*(){return Pe(ke(e).performOcr(Me(t)))}))},createTextPatternScanner:function(e){return _e(this,void 0,void 0,(function*(){return De(new Ee.GenericTextLineScanner(new x(e)))}))},scanTextLine:function(e,t){return _e(this,void 0,void 0,(function*(){return Re(ke(e).recognize(Me(t)),t)}))},cleanTextLineScanningQueue:function(e){return _e(this,void 0,void 0,(function*(){ke(e).cleanRecognitionQueue()}))},createVinScanner:function(e){return _e(this,void 0,void 0,(function*(){return De(new Ee.VinScanner(new T(e)))}))},scanVin:function(e,t){return _e(this,void 0,void 0,(function*(){return Re(ke(e).run(Me(t)),t)}))},cleanVinScanningQueue:function(e){return _e(this,void 0,void 0,(function*(){ke(e).cleanRecognitionQueue()}))},createDocumentQualityAnalyzer:function(e){return _e(this,void 0,void 0,(function*(){return De(new Ee.DocumentQualityAnalyzer(new l(e)))}))},documentQualityAnalyzerAnalyze:function(e,t){return _e(this,void 0,void 0,(function*(){return Pe(ke(e).analyze(Me(t)))}))},imageApplyFilter:function(e,t){return _e(this,void 0,void 0,(function*(){return Pe(Ee.imageApplyFilter(Me(e),m.From(t)))}))},imageCrop:function(e,t){return _e(this,void 0,void 0,(function*(){return Pe(Ee.imageCrop(Me(e),t))}))},imageResize:function(e,t){return _e(this,void 0,void 0,(function*(){return Pe(Ee.imageResize(Me(e),t))}))},imageRotate:function(e,t){return _e(this,void 0,void 0,(function*(){return Pe(Ee.imageRotate(Me(e),t))}))},documentDataExtractorCreate:function(e){return _e(this,void 0,void 0,(function*(){return De(new Ee.GenericDocumentRecognizer(new ge(e)))}))},documentDataExtractorExtract:function(e,t,r){return _e(this,void 0,void 0,(function*(){return Re(ke(e).recognize(Me(t),new pe(r)),t)}))},version:function(){return _e(this,void 0,void 0,(function*(){return"7.0.0-dev.4"}))},__hasModuleFunction:function(e){return _e(this,void 0,void 0,(function*(){return Ee.hasOwnProperty(e)}))},__callModuleFunction:function(e,t=[]){return _e(this,void 0,void 0,(function*(){return Ee[e](...t)}))}};function Pe(e){if(e.errorMessage)throw new Error(e.errorMessage);return e.result}function Re(e,t){return Object.assign(Object.assign({},Pe(e)),{originalImage:t})}function Me(e){if(!e)throw new Error("null image data or buffer");if("format"in e&&"string"==typeof e.format)return e;if("width"in e&&"number"==typeof e.width)return{data:e.data,width:e.width,height:e.height,format:"",step:0};return{data:ArrayBuffer.isView(e)?e:new Uint8Array(e),width:-1,height:-1,format:"",step:0}}onmessage=function(e){const{command:t,args:r,ticket:n}=e.data;Ee||"initialize"===t?(()=>_e(this,void 0,void 0,(function*(){return yield ze[t].apply(null,r)})))().then((e=>{const t=Object(i.a)(e);self.postMessage({ticket:n,result:e},t)})).catch((e=>{if(e instanceof xe)self.postMessage({ticket:n,unrecoverableError:e});else{const t="number"==typeof e?Error(Ee.stringFromException(e)):e;console.error(t),self.postMessage({ticket:n,recoverableError:t})}})):self.postMessage({ticket:n,recoverableError:new Error("WASM module not loaded yet.")})}}]);