@ohif/app 3.9.0-beta.45 → 3.9.0-beta.47

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 (89) hide show
  1. package/dist/031089e563a18ada8441.wasm +0 -0
  2. package/dist/{445.bundle.38c6d2af64e41cd7c614.js → 10.bundle.c626810bd199ab63f3a2.js} +3 -3
  3. package/dist/{501.bundle.2f703ca4598a3be0d748.js → 129.bundle.3102eccbd5c78524c3dd.js} +6036 -11592
  4. package/dist/{140.bundle.fcf29be726bb9dcea834.js → 153.bundle.d3732d0fdebb39e139b4.js} +7 -4
  5. package/dist/{139.bundle.09e5af0a9ae8a285af77.js → 169.bundle.eeb9614e7b06f896c70f.js} +65 -535
  6. package/dist/{139.css → 169.css} +0 -1
  7. package/dist/{164.bundle.2b23bfbcb23497d7c87a.js → 196.bundle.cf8c2311aafb5312bbf7.js} +15562 -8539
  8. package/dist/{342.bundle.fcb2038060a062129d34.js → 202.bundle.bb0e8196739bb896dc9e.js} +238 -276
  9. package/dist/{129.bundle.894f29369d609094208b.js → 210.bundle.d6d6cbd1b65e4f506ed1.js} +46 -46
  10. package/dist/{363.bundle.c7e38cf0c1fc7d19a701.js → 217.bundle.042317b439df47cd38b1.js} +2099 -195
  11. package/dist/{363.css → 217.css} +1 -0
  12. package/dist/{14.bundle.60eed1138c62b91572a7.js → 246.bundle.288317813cd5781e64f7.js} +11 -11
  13. package/dist/250.bundle.4743b359797751102600.js +663 -0
  14. package/dist/{944.bundle.baa0880e0bbde13fccc5.js → 281.bundle.5946cbee5150dec1532f.js} +241 -254
  15. package/dist/{727.bundle.7b7f3962207601643615.js → 286.bundle.985c5ebbb2158c7e59ab.js} +4 -4
  16. package/dist/29.bundle.976319462f33868497c2.js +12347 -0
  17. package/dist/{675.bundle.c9720f40fd7c7e9b7e54.js → 315.bundle.92d7aefc4dc9cfd951bd.js} +18 -18
  18. package/dist/{218.bundle.a1709956bc65c4f54874.js → 353.bundle.58b3ea80771ebaca956b.js} +8 -8
  19. package/dist/{799.bundle.33fc63add3b915d0c2b2.js → 360.bundle.81592d66456d25930928.js} +62 -62
  20. package/dist/{555.bundle.768f1594e1d40b707342.js → 372.bundle.5e3dc2539055ca5861e6.js} +50 -50
  21. package/dist/{211.bundle.194272cd32bedb302303.js → 376.bundle.45b94427174400b86d5d.js} +8 -8
  22. package/dist/{612.bundle.297a033523539e0b47f9.js → 412.bundle.836f106f6e2896dc42a5.js} +4 -4
  23. package/dist/{931.bundle.058f8de4606f27b31f4f.js → 417.bundle.abf8bcee0f246002acb9.js} +25 -25
  24. package/dist/{370.bundle.bd9884c274c26a54dfae.js → 428.bundle.744fc5865b2d747de88a.js} +829 -1511
  25. package/dist/{483.bundle.0f1848f6a2cf34829fef.js → 497.bundle.ee102d6243f984113f08.js} +141 -141
  26. package/dist/{323.bundle.955cc8f5eb5c01295118.js → 498.bundle.bb47c493dd02451f77ef.js} +17 -17
  27. package/dist/{552.bundle.0d11c419f675cb5a63b1.js → 502.bundle.857675fc2cbb2fbe3e47.js} +8 -9
  28. package/dist/{835.bundle.5d1951da8bbc6afdf3e0.js → 530.bundle.87f8b13ff55bf7b2a6d1.js} +28 -28
  29. package/dist/{121.bundle.57fe5a392b0910f33c2d.js → 552.bundle.95c0f28b051797242104.js} +733 -62
  30. package/dist/{265.bundle.61b0e1ce9d444704a976.js → 571.bundle.a80609c9815339516d77.js} +24 -24
  31. package/dist/{853.bundle.26b774ab3259f3e6087c.js → 591.bundle.1dca7dfd3e0490ea6dc1.js} +15 -14
  32. package/dist/604.bundle.83f50929b208c60e48da.js +1950 -0
  33. package/dist/610.min.worker.js +1 -1
  34. package/dist/610.min.worker.js.map +1 -1
  35. package/dist/{792.bundle.485ad2f98823a4b3feb1.js → 658.bundle.219ed199728759098008.js} +17 -17
  36. package/dist/{989.bundle.4be1e8f36734961852a8.js → 791.bundle.be08fa50f9a84244253b.js} +11 -11
  37. package/dist/{722.bundle.1242e0348afc63ca4f5e.js → 793.bundle.c92f52ddff0e3bf506e6.js} +13 -13
  38. package/dist/{914.bundle.e15be8089bf422ed7b51.js → 818.bundle.cda4e369fdee5459a544.js} +1239 -627
  39. package/dist/{726.bundle.90d63d40a19b058034ee.js → 831.bundle.9e1a3495947e5bb49756.js} +512 -512
  40. package/dist/{382.bundle.7cdad0f12b64f248dd28.js → 842.bundle.0664bcdeb7f153ab52bb.js} +11 -11
  41. package/dist/{806.bundle.1ec5fda0b16e053350d7.js → 888.bundle.2d02f805cedcf5d2ee7d.js} +14 -14
  42. package/dist/{702.bundle.963481fbf871984b646f.js → 909.bundle.1fbb8bb4c41d0bb2994d.js} +119 -381
  43. package/dist/{109.bundle.b4fee2a22b622839baf5.js → 931.bundle.f6fa2a436ace89ebf60f.js} +5036 -4642
  44. package/dist/{141.bundle.556b4c1e4cab770417ac.js → 937.bundle.cc709c922731f9496810.js} +86 -478
  45. package/dist/{444.bundle.75f58f53dab4d04db97d.js → 944.bundle.194f4f4e4e55ec466b78.js} +9 -10
  46. package/dist/945.min.worker.js +1 -1
  47. package/dist/945.min.worker.js.map +1 -1
  48. package/dist/{194.bundle.e6fb48f13f312eded76b.js → 962.bundle.225fcd92e6a5af66b6a2.js} +33 -37
  49. package/dist/{920.bundle.f75637a18563de8c8235.js → 978.bundle.4edc8c4615d7e3b4717a.js} +6 -6
  50. package/dist/{236.bundle.34db90a140e37d34fd71.js → 993.bundle.aa31ebda5a5f62c44de5.js} +2363 -2351
  51. package/dist/{717.bundle.3b84fbd289af82208a19.js → 994.bundle.269ce05b16fd6aa28006.js} +90 -164
  52. package/dist/app-config.js +58 -4
  53. package/dist/app.bundle.css +3 -3
  54. package/dist/{app.bundle.e2d3b6781252f9c7b2a3.js → app.bundle.ecc3736aff52e6abfd49.js} +52547 -36094
  55. package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
  56. package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
  57. package/dist/dicom-microscopy-viewer/5004fdc02f329ce53b69.wasm +0 -0
  58. package/dist/dicom-microscopy-viewer/c22b37c3488e1d6c3aa4.wasm +0 -0
  59. package/dist/dicom-microscopy-viewer/dicomMicroscopyViewer.min.js +3 -0
  60. package/dist/{dicomMicroscopyViewer.min.js.LICENSE.txt → dicom-microscopy-viewer/dicomMicroscopyViewer.min.js.LICENSE.txt} +11 -0
  61. package/dist/dicom-microscopy-viewer/index.worker.min.worker.js +2 -0
  62. package/dist/dicom-microscopy-viewer/index.worker.min.worker.js.map +1 -0
  63. package/dist/{histogram-worker.bundle.6b31e5ed4c4a7a6998f2.js → histogram-worker.bundle.e7e9fea2c3236b0e747a.js} +12 -16
  64. package/dist/index.html +1 -1
  65. package/dist/index.worker.5a5a581362c14598c3d9.worker.js +2 -0
  66. package/dist/index.worker.5a5a581362c14598c3d9.worker.js.map +1 -0
  67. package/dist/{polySeg.bundle.df492df5042827938ba4.js → polySeg.bundle.b25c61224998018d0f79.js} +24 -5
  68. package/dist/{suv-peak-worker.bundle.8f4b505fad3d371489fe.js → suv-peak-worker.bundle.eb11e71db02e52601ecf.js} +40 -21
  69. package/dist/sw.js +1 -1
  70. package/package.json +25 -33
  71. package/dist/117.bundle.1f7b56504d506e7259e3.js +0 -6552
  72. package/dist/172.bundle.e0ee762bee7496d6491e.js +0 -662
  73. package/dist/36785fbd89b0e17f6099.wasm +0 -0
  74. package/dist/62ab5d58a2bea7b5a1dc.wasm +0 -0
  75. package/dist/644.bundle.1e77691d2eeb96a423b0.js +0 -19159
  76. package/dist/75a0c2dfe07b824c7d21.wasm +0 -0
  77. package/dist/dicom-microscopy-viewer.bundle.d3a56dc9f62df5e11019.js +0 -13
  78. package/dist/dicomMicroscopyViewer.min.js +0 -3
  79. package/dist/index.worker.f4bda803c15bc6359d5f.worker.js +0 -2
  80. package/dist/index.worker.f4bda803c15bc6359d5f.worker.js.map +0 -1
  81. package/dist/index.worker.min.worker.js +0 -2
  82. package/dist/index.worker.min.worker.js.map +0 -1
  83. /package/dist/{129.css → 210.css} +0 -0
  84. /package/dist/{727.css → 286.css} +0 -0
  85. /package/dist/{172.css → 552.css} +0 -0
  86. /package/dist/{404.css → 757.css} +0 -0
  87. /package/dist/{717.css → 994.css} +0 -0
  88. /package/dist/{65916ef3def695744bda.wasm → dicom-microscopy-viewer/65916ef3def695744bda.wasm} +0 -0
  89. /package/dist/{b6b803111e2d06a825bd.wasm → dicom-microscopy-viewer/b6b803111e2d06a825bd.wasm} +0 -0
@@ -13,6 +13,17 @@
13
13
  * @license MIT
14
14
  */
15
15
 
16
+ /*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */
17
+
18
+ /**
19
+ * @license
20
+ * Lodash <https://lodash.com/>
21
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
22
+ * Released under MIT license <https://lodash.com/license>
23
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
24
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
25
+ */
26
+
16
27
  /**
17
28
  * @license Complex.js v2.1.1 12/05/2020
18
29
  *
@@ -0,0 +1,2 @@
1
+ (()=>{var __webpack_modules__={8327:function(t,e){var r,n=(r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(r=r||__filename),function(t){var e,n,o=void 0!==(t=t||{})?t:{};o.ready=new Promise((function(t,r){e=t,n=r}));var i,a,s,u=Object.assign({},o),c=[],f="object"==typeof window,l="function"==typeof importScripts,p="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,d="";if(p){var h=require("fs"),v=require("path");d=l?v.dirname(d)+"/":__dirname+"/",i=(t,e)=>(t=L(t)?new URL(t):v.normalize(t),h.readFileSync(t,e?void 0:"utf8")),s=t=>{var e=i(t,!0);return e.buffer||(e=new Uint8Array(e)),e},a=(t,e,r)=>{t=L(t)?new URL(t):v.normalize(t),h.readFile(t,(function(t,n){t?r(t):e(n.buffer)}))},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),c=process.argv.slice(2),process.on("uncaughtException",(function(t){if(!(t instanceof N))throw t})),process.on("unhandledRejection",(function(t){throw t})),o.inspect=function(){return"[Emscripten Module object]"}}else(f||l)&&(l?d=self.location.href:"undefined"!=typeof document&&document.currentScript&&(d=document.currentScript.src),r&&(d=r),d=0!==d.indexOf("blob:")?d.substr(0,d.replace(/[?#].*/,"").lastIndexOf("/")+1):"",i=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},l&&(s=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),a=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)});o.print||console.log.bind(console);var m,y=o.printErr||console.warn.bind(console);Object.assign(o,u),u=null,o.arguments&&(c=o.arguments),o.thisProgram&&o.thisProgram,o.quit&&o.quit,o.wasmBinary&&(m=o.wasmBinary);var g;o.noExitRuntime;"object"!=typeof WebAssembly&&q("no native wasm support detected");var w,b,T,_,x,P,C,$,A,k=!1,S="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function j(t,e){return t?function(t,e,r){for(var n=e+r,o=e;t[o]&&!(o>=n);)++o;if(o-e>16&&t.buffer&&S)return S.decode(t.subarray(e,o));for(var i="";e<o;){var a=t[e++];if(128&a){var s=63&t[e++];if(192!=(224&a)){var u=63&t[e++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&t[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}(T,t,e):""}function E(t,e,r){return function(t,e,r,n){if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a<t.length;++a){var s=t.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(r>=i)break;e[r++]=s}else if(s<=2047){if(r+1>=i)break;e[r++]=192|s>>6,e[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;e[r++]=224|s>>12,e[r++]=128|s>>6&63,e[r++]=128|63&s}else{if(r+3>=i)break;e[r++]=240|s>>18,e[r++]=128|s>>12&63,e[r++]=128|s>>6&63,e[r++]=128|63&s}}return e[r]=0,r-o}(t,T,e,r)}function O(t){w=t,o.HEAP8=b=new Int8Array(t),o.HEAP16=_=new Int16Array(t),o.HEAP32=P=new Int32Array(t),o.HEAPU8=T=new Uint8Array(t),o.HEAPU16=x=new Uint16Array(t),o.HEAPU32=C=new Uint32Array(t),o.HEAPF32=$=new Float32Array(t),o.HEAPF64=A=new Float64Array(t)}o.INITIAL_MEMORY;var F,R,W,I=[],D=[],U=[],M=0,z=null,H=null;function q(t){o.onAbort&&o.onAbort(t),y(t="Aborted("+t+")"),k=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw n(e),e}function V(t){return t.startsWith("data:application/octet-stream;base64,")}function L(t){return t.startsWith("file://")}function B(t){try{if(t==R&&m)return new Uint8Array(m);if(s)return s(t);throw"both async and sync fetching of the wasm failed"}catch(t){q(t)}}function N(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function G(t){for(;t.length>0;)t.shift()(o)}function X(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(t){C[this.ptr+4>>2]=t},this.get_type=function(){return C[this.ptr+4>>2]},this.set_destructor=function(t){C[this.ptr+8>>2]=t},this.get_destructor=function(){return C[this.ptr+8>>2]},this.set_refcount=function(t){P[this.ptr>>2]=t},this.set_caught=function(t){t=t?1:0,b[this.ptr+12>>0]=t},this.get_caught=function(){return 0!=b[this.ptr+12>>0]},this.set_rethrown=function(t){t=t?1:0,b[this.ptr+13>>0]=t},this.get_rethrown=function(){return 0!=b[this.ptr+13>>0]},this.init=function(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var t=P[this.ptr>>2];P[this.ptr>>2]=t+1},this.release_ref=function(){var t=P[this.ptr>>2];return P[this.ptr>>2]=t-1,1===t},this.set_adjusted_ptr=function(t){C[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return C[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Oe(this.get_type()))return C[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}}V(R="charlswasm_decode.wasm")||(W=R,R=o.locateFile?o.locateFile(W,d):d+W);var Y={};function J(t){for(;t.length;){var e=t.pop();t.pop()(e)}}function Z(t){return this.fromWireType(P[t>>2])}var K={},Q={},tt={};function et(t){if(void 0===t)return"_unknown";var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?"_"+t:t}function rt(t,e){return t=et(t),new Function("body","return function "+t+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(e)}function nt(t,e){var r=rt(e,(function(t){this.name=e,this.message=t;var r=new Error(t).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var ot=void 0;function it(t){throw new ot(t)}function at(t,e,r){function n(e){var n=r(e);n.length!==t.length&&it("Mismatched type converter count");for(var o=0;o<t.length;++o)pt(t[o],n[o])}t.forEach((function(t){tt[t]=e}));var o=new Array(e.length),i=[],a=0;e.forEach(((t,e)=>{Q.hasOwnProperty(t)?o[e]=Q[t]:(i.push(t),K.hasOwnProperty(t)||(K[t]=[]),K[t].push((()=>{o[e]=Q[t],++a===i.length&&n(o)})))})),0===i.length&&n(o)}function st(t){switch(t){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+t)}}var ut=void 0;function ct(t){for(var e="",r=t;T[r];)e+=ut[T[r++]];return e}var ft=void 0;function lt(t){throw new ft(t)}function pt(t,e,r={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=e.name;if(t||lt('type "'+n+'" must have a positive integer typeid pointer'),Q.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;lt("Cannot register type '"+n+"' twice")}if(Q[t]=e,delete tt[t],K.hasOwnProperty(t)){var o=K[t];delete K[t],o.forEach((t=>t()))}}function dt(t){if(!(this instanceof Wt))return!1;if(!(t instanceof Wt))return!1;for(var e=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=t.$$.ptrType.registeredClass,o=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return e===n&&r===o}function ht(t){lt(t.$$.ptrType.registeredClass.name+" instance already deleted")}var vt=!1;function mt(t){}function yt(t){t.count.value-=1,0===t.count.value&&function(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)}(t)}function gt(t,e,r){if(e===r)return t;if(void 0===r.baseClass)return null;var n=gt(t,e,r.baseClass);return null===n?null:r.downcast(n)}var wt={};function bt(){return Object.keys($t).length}function Tt(){var t=[];for(var e in $t)$t.hasOwnProperty(e)&&t.push($t[e]);return t}var _t=[];function xt(){for(;_t.length;){var t=_t.pop();t.$$.deleteScheduled=!1,t.delete()}}var Pt=void 0;function Ct(t){Pt=t,_t.length&&Pt&&Pt(xt)}var $t={};function At(t,e){return e=function(t,e){for(void 0===e&&lt("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e}(t,e),$t[e]}function kt(t,e){return e.ptrType&&e.ptr||it("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&it("Both smartPtrType and smartPtr must be specified"),e.count={value:1},jt(Object.create(t,{$$:{value:e}}))}function St(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=At(this.registeredClass,e);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var n=r.clone();return this.destructor(t),n}function o(){return this.isSmartPointer?kt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):kt(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var i,a=this.registeredClass.getActualType(e),s=wt[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var u=gt(e,this.registeredClass,i.registeredClass);return null===u?o.call(this):this.isSmartPointer?kt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u,smartPtrType:this,smartPtr:t}):kt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u})}function jt(t){return"undefined"==typeof FinalizationRegistry?(jt=t=>t,t):(vt=new FinalizationRegistry((t=>{yt(t.$$)})),jt=t=>{var e=t.$$;if(e.smartPtr){var r={$$:e};vt.register(t,r,t)}return t},mt=t=>vt.unregister(t),jt(t))}function Et(){if(this.$$.ptr||ht(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t,e=jt(Object.create(Object.getPrototypeOf(this),{$$:{value:(t=this.$$,{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType})}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function Ot(){this.$$.ptr||ht(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&lt("Object already scheduled for deletion"),mt(this),yt(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Ft(){return!this.$$.ptr}function Rt(){return this.$$.ptr||ht(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&lt("Object already scheduled for deletion"),_t.push(this),1===_t.length&&Pt&&Pt(xt),this.$$.deleteScheduled=!0,this}function Wt(){}function It(t,e,r){if(void 0===t[e].overloadTable){var n=t[e];t[e]=function(){return t[e].overloadTable.hasOwnProperty(arguments.length)||lt("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+t[e].overloadTable+")!"),t[e].overloadTable[arguments.length].apply(this,arguments)},t[e].overloadTable=[],t[e].overloadTable[n.argCount]=n}}function Dt(t,e,r){o.hasOwnProperty(t)?((void 0===r||void 0!==o[t].overloadTable&&void 0!==o[t].overloadTable[r])&&lt("Cannot register public name '"+t+"' twice"),It(o,t,t),o.hasOwnProperty(r)&&lt("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),o[t].overloadTable[r]=e):(o[t]=e,void 0!==r&&(o[t].numArguments=r))}function Ut(t,e,r,n,o,i,a,s){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function Mt(t,e,r){for(;e!==r;)e.upcast||lt("Expected null or instance of "+r.name+", got an instance of "+e.name),t=e.upcast(t),e=e.baseClass;return t}function zt(t,e){if(null===e)return this.isReference&&lt("null is not a valid "+this.name),0;e.$$||lt('Cannot pass "'+ce(e)+'" as a '+this.name),e.$$.ptr||lt("Cannot pass deleted object as a pointer of type "+this.name);var r=e.$$.ptrType.registeredClass;return Mt(e.$$.ptr,r,this.registeredClass)}function Ht(t,e){var r;if(null===e)return this.isReference&&lt("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;e.$$||lt('Cannot pass "'+ce(e)+'" as a '+this.name),e.$$.ptr||lt("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&lt("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);var n=e.$$.ptrType.registeredClass;if(r=Mt(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&lt("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:lt("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var o=e.clone();r=this.rawShare(r,ue.toHandle((function(){o.delete()}))),null!==t&&t.push(this.rawDestructor,r)}break;default:lt("Unsupporting sharing policy")}return r}function qt(t,e){if(null===e)return this.isReference&&lt("null is not a valid "+this.name),0;e.$$||lt('Cannot pass "'+ce(e)+'" as a '+this.name),e.$$.ptr||lt("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&lt("Cannot convert argument of type "+e.$$.ptrType.name+" to parameter type "+this.name);var r=e.$$.ptrType.registeredClass;return Mt(e.$$.ptr,r,this.registeredClass)}function Vt(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t}function Lt(t){this.rawDestructor&&this.rawDestructor(t)}function Bt(t){null!==t&&t.delete()}function Nt(t,e,r,n,o,i,a,s,u,c,f){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,o||void 0!==e.baseClass?this.toWireType=Ht:n?(this.toWireType=zt,this.destructorFunction=null):(this.toWireType=qt,this.destructorFunction=null)}function Gt(t,e,r){o.hasOwnProperty(t)||it("Replacing nonexistant public symbol"),void 0!==o[t].overloadTable&&void 0!==r?o[t].overloadTable[r]=e:(o[t]=e,o[t].argCount=r)}var Xt=[];function Yt(t){var e=Xt[t];return e||(t>=Xt.length&&(Xt.length=t+1),Xt[t]=e=F.get(t)),e}function Jt(t,e,r){return t.includes("j")?function(t,e,r){var n=o["dynCall_"+t];return r&&r.length?n.apply(null,[e].concat(r)):n.call(null,e)}(t,e,r):Yt(e).apply(null,r)}function Zt(t,e){var r,n,o,i=(t=ct(t)).includes("j")?(r=t,n=e,o=[],function(){return o.length=0,Object.assign(o,arguments),Jt(r,n,o)}):Yt(e);return"function"!=typeof i&&lt("unknown function pointer with signature "+t+": "+e),i}var Kt=void 0;function Qt(t){var e=Ae(t),r=ct(e);return ke(e),r}function te(t,e){var r=[],n={};throw e.forEach((function t(e){n[e]||Q[e]||(tt[e]?tt[e].forEach(t):(r.push(e),n[e]=!0))})),new Kt(t+": "+r.map(Qt).join([", "]))}function ee(t,e){for(var r=[],n=0;n<t;n++)r.push(C[e+4*n>>2]);return r}function re(t,e,r,n,o){var i=e.length;i<2&&lt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==e[1]&&null!==r,s=!1,u=1;u<e.length;++u)if(null!==e[u]&&void 0===e[u].destructorFunction){s=!0;break}var c="void"!==e[0].name,f="",l="";for(u=0;u<i-2;++u)f+=(0!==u?", ":"")+"arg"+u,l+=(0!==u?", ":"")+"arg"+u+"Wired";var p="return function "+et(t)+"("+f+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+t+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";s&&(p+="var destructors = [];\n");var d=s?"destructors":"null",h=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[lt,n,o,J,e[0],e[1]];for(a&&(p+="var thisWired = classParam.toWireType("+d+", this);\n"),u=0;u<i-2;++u)p+="var arg"+u+"Wired = argType"+u+".toWireType("+d+", arg"+u+"); // "+e[u+2].name+"\n",h.push("argType"+u),v.push(e[u+2]);if(a&&(l="thisWired"+(l.length>0?", ":"")+l),p+=(c?"var rv = ":"")+"invoker(fn"+(l.length>0?", ":"")+l+");\n",s)p+="runDestructors(destructors);\n";else for(u=a?1:2;u<e.length;++u){var m=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==e[u].destructorFunction&&(p+=m+"_dtor("+m+"); // "+e[u].name+"\n",h.push(m+"_dtor"),v.push(e[u].destructorFunction))}return c&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",h.push(p),function(t,e){if(!(t instanceof Function))throw new TypeError("new_ called with constructor type "+typeof t+" which is not a function");var r=rt(t.name||"unknownFunctionName",(function(){}));r.prototype=t.prototype;var n=new r,o=t.apply(n,e);return o instanceof Object?o:n}(Function,h).apply(null,v)}var ne=[],oe=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function ie(t){t>4&&0==--oe[t].refcount&&(oe[t]=void 0,ne.push(t))}function ae(){for(var t=0,e=5;e<oe.length;++e)void 0!==oe[e]&&++t;return t}function se(){for(var t=5;t<oe.length;++t)if(void 0!==oe[t])return oe[t];return null}var ue={toValue:t=>(t||lt("Cannot use deleted val. handle = "+t),oe[t].value),toHandle:t=>{switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=ne.length?ne.pop():oe.length;return oe[e]={refcount:1,value:t},e}}};function ce(t){if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t}function fe(t,e){switch(e){case 2:return function(t){return this.fromWireType($[t>>2])};case 3:return function(t){return this.fromWireType(A[t>>3])};default:throw new TypeError("Unknown float type: "+t)}}function le(t,e,r){switch(e){case 0:return r?function(t){return b[t]}:function(t){return T[t]};case 1:return r?function(t){return _[t>>1]}:function(t){return x[t>>1]};case 2:return r?function(t){return P[t>>2]}:function(t){return C[t>>2]};default:throw new TypeError("Unknown integer type: "+t)}}var pe="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function de(t,e){for(var r=t,n=r>>1,o=n+e/2;!(n>=o)&&x[n];)++n;if((r=n<<1)-t>32&&pe)return pe.decode(T.subarray(t,r));for(var i="",a=0;!(a>=e/2);++a){var s=_[t+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i}function he(t,e,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=e,o=(r-=2)<2*t.length?r/2:t.length,i=0;i<o;++i){var a=t.charCodeAt(i);_[e>>1]=a,e+=2}return _[e>>1]=0,e-n}function ve(t){return 2*t.length}function me(t,e){for(var r=0,n="";!(r>=e/4);){var o=P[t+4*r>>2];if(0==o)break;if(++r,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n}function ye(t,e,r){if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=e,o=n+r-4,i=0;i<t.length;++i){var a=t.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++i)),P[e>>2]=a,(e+=4)+4>o)break}return P[e>>2]=0,e-n}function ge(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&++r,e+=4}return e}var we={};function be(){return"object"==typeof globalThis?globalThis:Function("return this")()}function Te(t,e){var r=Q[t];return void 0===r&&lt(e+" has unknown type "+Qt(t)),r}var _e={};function xe(t){try{return g.grow(t-w.byteLength+65535>>>16),O(g.buffer),1}catch(t){}}ot=o.InternalError=nt(Error,"InternalError"),function(){for(var t=new Array(256),e=0;e<256;++e)t[e]=String.fromCharCode(e);ut=t}(),ft=o.BindingError=nt(Error,"BindingError"),Wt.prototype.isAliasOf=dt,Wt.prototype.clone=Et,Wt.prototype.delete=Ot,Wt.prototype.isDeleted=Ft,Wt.prototype.deleteLater=Rt,o.getInheritedInstanceCount=bt,o.getLiveInheritedInstances=Tt,o.flushPendingDeletes=xt,o.setDelayFunction=Ct,Nt.prototype.getPointee=Vt,Nt.prototype.destructor=Lt,Nt.prototype.argPackAdvance=8,Nt.prototype.readValueFromPointer=Z,Nt.prototype.deleteObject=Bt,Nt.prototype.fromWireType=St,Kt=o.UnboundTypeError=nt(Error,"UnboundTypeError"),o.count_emval_handles=ae,o.get_first_emval=se;var Pe,Ce={h:function(t,e,r){throw new X(t).init(e,r),t},q:function(t){var e=Y[t];delete Y[t];var r=e.rawConstructor,n=e.rawDestructor,o=e.fields;at([t],o.map((t=>t.getterReturnType)).concat(o.map((t=>t.setterArgumentType))),(t=>{var i={};return o.forEach(((e,r)=>{var n=e.fieldName,a=t[r],s=e.getter,u=e.getterContext,c=t[r+o.length],f=e.setter,l=e.setterContext;i[n]={read:t=>a.fromWireType(s(u,t)),write:(t,e)=>{var r=[];f(l,t,c.toWireType(r,e)),J(r)}}})),[{name:e.name,fromWireType:function(t){var e={};for(var r in i)e[r]=i[r].read(t);return n(t),e},toWireType:function(t,e){for(var o in i)if(!(o in e))throw new TypeError('Missing field: "'+o+'"');var a=r();for(o in i)i[o].write(a,e[o]);return null!==t&&t.push(n,a),a},argPackAdvance:8,readValueFromPointer:Z,destructorFunction:n}]}))},r:function(t,e,r,n,o){},w:function(t,e,r,n,o){var i=st(r);pt(t,{name:e=ct(e),fromWireType:function(t){return!!t},toWireType:function(t,e){return e?n:o},argPackAdvance:8,readValueFromPointer:function(t){var n;if(1===r)n=b;else if(2===r)n=_;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+e);n=P}return this.fromWireType(n[t>>i])},destructorFunction:null})},p:function(t,e,r,n,o,i,a,s,u,c,f,l,p){f=ct(f),i=Zt(o,i),s&&(s=Zt(a,s)),c&&(c=Zt(u,c)),p=Zt(l,p);var d=et(f);Dt(d,(function(){te("Cannot construct "+f+" due to unbound types",[n])})),at([t,e,r],n?[n]:[],(function(e){var r,o;e=e[0],o=n?(r=e.registeredClass).instancePrototype:Wt.prototype;var a=rt(d,(function(){if(Object.getPrototypeOf(this)!==u)throw new ft("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new ft(f+" has no accessible constructor");var t=l.constructor_body[arguments.length];if(void 0===t)throw new ft("Tried to invoke ctor of "+f+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(l.constructor_body).toString()+") parameters instead!");return t.apply(this,arguments)})),u=Object.create(o,{constructor:{value:a}});a.prototype=u;var l=new Ut(f,a,u,p,r,i,s,c),h=new Nt(f,l,!0,!1,!1),v=new Nt(f+"*",l,!1,!1,!1),m=new Nt(f+" const*",l,!1,!0,!1);return wt[t]={pointerType:v,constPointerType:m},Gt(d,a),[h,v,m]}))},o:function(t,e,r,n,o,i){var a;e>0||q(a);var s=ee(e,r);o=Zt(n,o),at([],[t],(function(t){var r="constructor "+(t=t[0]).name;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new ft("Cannot register multiple constructors with identical number of parameters ("+(e-1)+") for class '"+t.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return t.registeredClass.constructor_body[e-1]=()=>{te("Cannot construct "+t.name+" due to unbound types",s)},at([],s,(function(n){return n.splice(1,0,null),t.registeredClass.constructor_body[e-1]=re(r,n,null,o,i),[]})),[]}))},c:function(t,e,r,n,o,i,a,s){var u=ee(r,n);e=ct(e),i=Zt(o,i),at([],[t],(function(t){var n=(t=t[0]).name+"."+e;function o(){te("Cannot call "+n+" due to unbound types",u)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(e);var c=t.registeredClass.instancePrototype,f=c[e];return void 0===f||void 0===f.overloadTable&&f.className!==t.name&&f.argCount===r-2?(o.argCount=r-2,o.className=t.name,c[e]=o):(It(c,e,n),c[e].overloadTable[r-2]=o),at([],u,(function(o){var s=re(n,o,t,i,a);return void 0===c[e].overloadTable?(s.argCount=r-2,c[e]=s):c[e].overloadTable[r-2]=s,[]})),[]}))},v:function(t,e){pt(t,{name:e=ct(e),fromWireType:function(t){var e=ue.toValue(t);return ie(t),e},toWireType:function(t,e){return ue.toHandle(e)},argPackAdvance:8,readValueFromPointer:Z,destructorFunction:null})},k:function(t,e,r){var n=st(r);pt(t,{name:e=ct(e),fromWireType:function(t){return t},toWireType:function(t,e){return e},argPackAdvance:8,readValueFromPointer:fe(e,n),destructorFunction:null})},e:function(t,e,r,n,o,i){var a=ee(e,r);t=ct(t),o=Zt(n,o),Dt(t,(function(){te("Cannot call "+t+" due to unbound types",a)}),e-1),at([],a,(function(r){var n=[r[0],null].concat(r.slice(1));return Gt(t,re(t,n,null,o,i),e-1),[]}))},b:function(t,e,r,n,o){e=ct(e),-1===o&&(o=4294967295);var i=st(r),a=t=>t;if(0===n){var s=32-8*r;a=t=>t<<s>>>s}var u=e.includes("unsigned");pt(t,{name:e,fromWireType:a,toWireType:u?function(t,e){return this.name,e>>>0}:function(t,e){return this.name,e},argPackAdvance:8,readValueFromPointer:le(e,i,0!==n),destructorFunction:null})},a:function(t,e,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function o(t){var e=C,r=e[t>>=2],o=e[t+1];return new n(w,o,r)}pt(t,{name:r=ct(r),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},j:function(t,e){var r="std::string"===(e=ct(e));pt(t,{name:e,fromWireType:function(t){var e,n=C[t>>2],o=t+4;if(r)for(var i=o,a=0;a<=n;++a){var s=o+a;if(a==n||0==T[s]){var u=j(i,s-i);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),i=s+1}}else{var c=new Array(n);for(a=0;a<n;++a)c[a]=String.fromCharCode(T[o+a]);e=c.join("")}return ke(t),e},toWireType:function(t,e){var n;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var o="string"==typeof e;o||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||lt("Cannot pass non-string to std::string"),n=r&&o?function(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++r):e+=3}return e}(e):e.length;var i=$e(4+n+1),a=i+4;if(C[i>>2]=n,r&&o)E(e,a,n+1);else if(o)for(var s=0;s<n;++s){var u=e.charCodeAt(s);u>255&&(ke(a),lt("String has UTF-16 code units that do not fit in 8 bits")),T[a+s]=u}else for(s=0;s<n;++s)T[a+s]=e[s];return null!==t&&t.push(ke,i),i},argPackAdvance:8,readValueFromPointer:Z,destructorFunction:function(t){ke(t)}})},g:function(t,e,r){var n,o,i,a,s;r=ct(r),2===e?(n=de,o=he,a=ve,i=()=>x,s=1):4===e&&(n=me,o=ye,a=ge,i=()=>C,s=2),pt(t,{name:r,fromWireType:function(t){for(var r,o=C[t>>2],a=i(),u=t+4,c=0;c<=o;++c){var f=t+4+c*e;if(c==o||0==a[f>>s]){var l=n(u,f-u);void 0===r?r=l:(r+=String.fromCharCode(0),r+=l),u=f+e}}return ke(t),r},toWireType:function(t,n){"string"!=typeof n&&lt("Cannot pass non-string to C++ string type "+r);var i=a(n),u=$e(4+i+e);return C[u>>2]=i>>s,o(n,u+4,i+e),null!==t&&t.push(ke,u),u},argPackAdvance:8,readValueFromPointer:Z,destructorFunction:function(t){ke(t)}})},u:function(t,e,r,n,o,i){Y[t]={name:ct(e),rawConstructor:Zt(r,n),rawDestructor:Zt(o,i),fields:[]}},d:function(t,e,r,n,o,i,a,s,u,c){Y[t].fields.push({fieldName:ct(e),getterReturnType:r,getter:Zt(n,o),getterContext:i,setterArgumentType:a,setter:Zt(s,u),setterContext:c})},x:function(t,e){pt(t,{isVoid:!0,name:e=ct(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(t,e){}})},i:ie,m:function(t){return 0===t?ue.toHandle(be()):(t=void 0===(r=we[e=t])?ct(e):r,ue.toHandle(be()[t]));var e,r},l:function(t){t>4&&(oe[t].refcount+=1)},y:function(t,e,r,n){t=ue.toValue(t);var i=_e[e];return i||(i=function(t){for(var e="",r=0;r<t;++r)e+=(0!==r?", ":"")+"arg"+r;var n="return function emval_allocator_"+t+"(constructor, argTypes, args) {\n var HEAPU32 = getMemory();\n";for(r=0;r<t;++r)n+="var argType"+r+" = requireRegisteredType(HEAPU32[((argTypes)>>2)], 'parameter "+r+"');\nvar arg"+r+" = argType"+r+".readValueFromPointer(args);\nargs += argType"+r+"['argPackAdvance'];\nargTypes += 4;\n";return n+="var obj = new constructor("+e+");\nreturn valueToHandle(obj);\n}\n",new Function("requireRegisteredType","Module","valueToHandle","getMemory",n)(Te,o,ue.toHandle,(()=>C))}(e),_e[e]=i),i(t,r,n)},n:function(t,e){var r=(t=Te(t,"_emval_take_value")).readValueFromPointer(e);return ue.toHandle(r)},f:function(){q("")},t:function(t,e,r){T.copyWithin(t,e,e+r)},s:function(t){var e,r,n=T.length,o=2147483648;if((t>>>=0)>o)return!1;for(var i=1;i<=4;i*=2){var a=n*(1+.2/i);if(a=Math.min(a,t+100663296),xe(Math.min(o,(e=Math.max(t,a))+((r=65536)-e%r)%r)))return!0}return!1}},$e=(function(){var t={a:Ce};function e(t,e){var r,n=t.exports;o.asm=n,O((g=o.asm.z).buffer),F=o.asm.C,r=o.asm.A,D.unshift(r),function(t){if(M--,o.monitorRunDependencies&&o.monitorRunDependencies(M),0==M&&(null!==z&&(clearInterval(z),z=null),H)){var e=H;H=null,e()}}()}function r(t){e(t.instance)}function i(e){return function(){if(!m&&(f||l)){if("function"==typeof fetch&&!L(R))return fetch(R,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+R+"'";return t.arrayBuffer()})).catch((function(){return B(R)}));if(a)return new Promise((function(t,e){a(R,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return B(R)}))}().then((function(e){return WebAssembly.instantiate(e,t)})).then((function(t){return t})).then(e,(function(t){y("failed to asynchronously prepare wasm: "+t),q(t)}))}if(M++,o.monitorRunDependencies&&o.monitorRunDependencies(M),o.instantiateWasm)try{return o.instantiateWasm(t,e)}catch(t){y("Module.instantiateWasm callback failed with error: "+t),n(t)}(m||"function"!=typeof WebAssembly.instantiateStreaming||V(R)||L(R)||p||"function"!=typeof fetch?i(r):fetch(R,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(r,(function(t){return y("wasm streaming compile failed: "+t),y("falling back to ArrayBuffer instantiation"),i(r)}))}))).catch(n)}(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.A).apply(null,arguments)},o._malloc=function(){return($e=o._malloc=o.asm.B).apply(null,arguments)}),Ae=o.___getTypeName=function(){return(Ae=o.___getTypeName=o.asm.D).apply(null,arguments)},ke=(o.__embind_initialize_bindings=function(){return(o.__embind_initialize_bindings=o.asm.E).apply(null,arguments)},o._free=function(){return(ke=o._free=o.asm.F).apply(null,arguments)}),Se=o.stackSave=function(){return(Se=o.stackSave=o.asm.G).apply(null,arguments)},je=o.stackRestore=function(){return(je=o.stackRestore=o.asm.H).apply(null,arguments)},Ee=o.stackAlloc=function(){return(Ee=o.stackAlloc=o.asm.I).apply(null,arguments)},Oe=o.___cxa_is_pointer_type=function(){return(Oe=o.___cxa_is_pointer_type=o.asm.J).apply(null,arguments)};function Fe(t){function r(){Pe||(Pe=!0,o.calledRun=!0,k||(G(D),e(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),function(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)t=o.postRun.shift(),U.unshift(t);var t;G(U)}()))}t=t||c,M>0||(function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)t=o.preRun.shift(),I.unshift(t);var t;G(I)}(),M>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),r()}),1)):r()))}if(o.ccall=function(t,e,r,n,i){var a={string:t=>{var e=0;if(null!=t&&0!==t){var r=1+(t.length<<2);E(t,e=Ee(r),r)}return e},array:t=>{var e=Ee(t.length);return function(t,e){b.set(t,e)}(t,e),e}},s=function(t){return o["_"+t]}(t),u=[],c=0;if(n)for(var f=0;f<n.length;f++){var l=a[r[f]];l?(0===c&&(c=Se()),u[f]=l(n[f])):u[f]=n[f]}var p=s.apply(null,u);return p=function(t){return 0!==c&&je(c),function(t){return"string"===e?j(t):"boolean"===e?Boolean(t):t}(t)}(p)},H=function t(){Pe||Fe(),Pe||(H=t)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Fe(),t.ready});"object"==typeof e&&"object"==typeof t?t.exports=n:"function"==typeof define&&define.amd?define([],(function(){return n})):"object"==typeof e&&(e.CharLSWASM=n)},9400:function(t,e){var r,n=(r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(r=r||__filename),function(t){var e,n,o=void 0!==(t=t||{})?t:{};o.ready=new Promise((function(t,r){e=t,n=r}));var i,a,s,u=Object.assign({},o),c=[],f="./this.program",l=(t,e)=>{throw e},p="object"==typeof window,d="function"==typeof importScripts,h="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,v="";if(h){var m=require("fs"),y=require("path");v=d?y.dirname(v)+"/":__dirname+"/",i=(t,e)=>(t=J(t)?new URL(t):y.normalize(t),m.readFileSync(t,e?void 0:"utf8")),s=t=>{var e=i(t,!0);return e.buffer||(e=new Uint8Array(e)),e},a=(t,e,r)=>{t=J(t)?new URL(t):y.normalize(t),m.readFile(t,(function(t,n){t?r(t):e(n.buffer)}))},process.argv.length>1&&(f=process.argv[1].replace(/\\/g,"/")),c=process.argv.slice(2),process.on("uncaughtException",(function(t){if(!(t instanceof K))throw t})),process.on("unhandledRejection",(function(t){throw t})),l=(t,e)=>{if(q())throw process.exitCode=t,e;var r;(r=e)instanceof K||b("exiting due to exception: "+r),process.exit(t)},o.inspect=function(){return"[Emscripten Module object]"}}else(p||d)&&(d?v=self.location.href:"undefined"!=typeof document&&document.currentScript&&(v=document.currentScript.src),r&&(v=r),v=0!==v.indexOf("blob:")?v.substr(0,v.replace(/[?#].*/,"").lastIndexOf("/")+1):"",i=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},d&&(s=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),a=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)});var g,w=o.print||console.log.bind(console),b=o.printErr||console.warn.bind(console);Object.assign(o,u),u=null,o.arguments&&(c=o.arguments),o.thisProgram&&(f=o.thisProgram),o.quit&&(l=o.quit),o.wasmBinary&&(g=o.wasmBinary);var T,_=o.noExitRuntime||!0;"object"!=typeof WebAssembly&&X("no native wasm support detected");var x,P,C,$,A,k,S,j,E,O=!1,F="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function R(t,e,r){for(var n=e+r,o=e;t[o]&&!(o>=n);)++o;if(o-e>16&&t.buffer&&F)return F.decode(t.subarray(e,o));for(var i="";e<o;){var a=t[e++];if(128&a){var s=63&t[e++];if(192!=(224&a)){var u=63&t[e++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&t[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function W(t,e){return t?R(C,t,e):""}function I(t,e,r){return function(t,e,r,n){if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a<t.length;++a){var s=t.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(r>=i)break;e[r++]=s}else if(s<=2047){if(r+1>=i)break;e[r++]=192|s>>6,e[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;e[r++]=224|s>>12,e[r++]=128|s>>6&63,e[r++]=128|63&s}else{if(r+3>=i)break;e[r++]=240|s>>18,e[r++]=128|s>>12&63,e[r++]=128|s>>6&63,e[r++]=128|63&s}}return e[r]=0,r-o}(t,C,e,r)}function D(t){x=t,o.HEAP8=P=new Int8Array(t),o.HEAP16=$=new Int16Array(t),o.HEAP32=k=new Int32Array(t),o.HEAPU8=C=new Uint8Array(t),o.HEAPU16=A=new Uint16Array(t),o.HEAPU32=S=new Uint32Array(t),o.HEAPF32=j=new Float32Array(t),o.HEAPF64=E=new Float64Array(t)}o.INITIAL_MEMORY;var U,M=[],z=[],H=[];function q(){return _}var V,L,B=0,N=null,G=null;function X(t){o.onAbort&&o.onAbort(t),b(t="Aborted("+t+")"),O=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw n(e),e}function Y(t){return t.startsWith("data:application/octet-stream;base64,")}function J(t){return t.startsWith("file://")}function Z(t){try{if(t==V&&g)return new Uint8Array(g);if(s)return s(t);throw"both async and sync fetching of the wasm failed"}catch(t){X(t)}}function K(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function Q(t){for(;t.length>0;)t.shift()(o)}function tt(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(t){S[this.ptr+4>>2]=t},this.get_type=function(){return S[this.ptr+4>>2]},this.set_destructor=function(t){S[this.ptr+8>>2]=t},this.get_destructor=function(){return S[this.ptr+8>>2]},this.set_refcount=function(t){k[this.ptr>>2]=t},this.set_caught=function(t){t=t?1:0,P[this.ptr+12>>0]=t},this.get_caught=function(){return 0!=P[this.ptr+12>>0]},this.set_rethrown=function(t){t=t?1:0,P[this.ptr+13>>0]=t},this.get_rethrown=function(){return 0!=P[this.ptr+13>>0]},this.init=function(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var t=k[this.ptr>>2];k[this.ptr>>2]=t+1},this.release_ref=function(){var t=k[this.ptr>>2];return k[this.ptr>>2]=t-1,1===t},this.set_adjusted_ptr=function(t){S[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return S[this.ptr+16>>2]},this.get_exception_ptr=function(){if(qe(this.get_type()))return S[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}}Y(V="libjpegturbowasm_decode.wasm")||(L=V,V=o.locateFile?o.locateFile(L,v):v+L);var et={};function rt(t){for(;t.length;){var e=t.pop();t.pop()(e)}}function nt(t){return this.fromWireType(k[t>>2])}var ot={},it={},at={};function st(t){if(void 0===t)return"_unknown";var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?"_"+t:t}function ut(t,e){return t=st(t),new Function("body","return function "+t+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(e)}function ct(t,e){var r=ut(e,(function(t){this.name=e,this.message=t;var r=new Error(t).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var ft=void 0;function lt(t){throw new ft(t)}function pt(t,e,r){function n(e){var n=r(e);n.length!==t.length&&lt("Mismatched type converter count");for(var o=0;o<t.length;++o)gt(t[o],n[o])}t.forEach((function(t){at[t]=e}));var o=new Array(e.length),i=[],a=0;e.forEach(((t,e)=>{it.hasOwnProperty(t)?o[e]=it[t]:(i.push(t),ot.hasOwnProperty(t)||(ot[t]=[]),ot[t].push((()=>{o[e]=it[t],++a===i.length&&n(o)})))})),0===i.length&&n(o)}function dt(t){switch(t){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+t)}}var ht=void 0;function vt(t){for(var e="",r=t;C[r];)e+=ht[C[r++]];return e}var mt=void 0;function yt(t){throw new mt(t)}function gt(t,e,r={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=e.name;if(t||yt('type "'+n+'" must have a positive integer typeid pointer'),it.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;yt("Cannot register type '"+n+"' twice")}if(it[t]=e,delete at[t],ot.hasOwnProperty(t)){var o=ot[t];delete ot[t],o.forEach((t=>t()))}}function wt(t){if(!(this instanceof Ht))return!1;if(!(t instanceof Ht))return!1;for(var e=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=t.$$.ptrType.registeredClass,o=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return e===n&&r===o}function bt(t){yt(t.$$.ptrType.registeredClass.name+" instance already deleted")}var Tt=!1;function _t(t){}function xt(t){t.count.value-=1,0===t.count.value&&function(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)}(t)}function Pt(t,e,r){if(e===r)return t;if(void 0===r.baseClass)return null;var n=Pt(t,e,r.baseClass);return null===n?null:r.downcast(n)}var Ct={};function $t(){return Object.keys(Ot).length}function At(){var t=[];for(var e in Ot)Ot.hasOwnProperty(e)&&t.push(Ot[e]);return t}var kt=[];function St(){for(;kt.length;){var t=kt.pop();t.$$.deleteScheduled=!1,t.delete()}}var jt=void 0;function Et(t){jt=t,kt.length&&jt&&jt(St)}var Ot={};function Ft(t,e){return e=function(t,e){for(void 0===e&&yt("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e}(t,e),Ot[e]}function Rt(t,e){return e.ptrType&&e.ptr||lt("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&lt("Both smartPtrType and smartPtr must be specified"),e.count={value:1},It(Object.create(t,{$$:{value:e}}))}function Wt(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=Ft(this.registeredClass,e);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var n=r.clone();return this.destructor(t),n}function o(){return this.isSmartPointer?Rt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):Rt(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var i,a=this.registeredClass.getActualType(e),s=Ct[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var u=Pt(e,this.registeredClass,i.registeredClass);return null===u?o.call(this):this.isSmartPointer?Rt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u,smartPtrType:this,smartPtr:t}):Rt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u})}function It(t){return"undefined"==typeof FinalizationRegistry?(It=t=>t,t):(Tt=new FinalizationRegistry((t=>{xt(t.$$)})),It=t=>{var e=t.$$;if(e.smartPtr){var r={$$:e};Tt.register(t,r,t)}return t},_t=t=>Tt.unregister(t),It(t))}function Dt(){if(this.$$.ptr||bt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t,e=It(Object.create(Object.getPrototypeOf(this),{$$:{value:(t=this.$$,{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType})}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function Ut(){this.$$.ptr||bt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&yt("Object already scheduled for deletion"),_t(this),xt(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Mt(){return!this.$$.ptr}function zt(){return this.$$.ptr||bt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&yt("Object already scheduled for deletion"),kt.push(this),1===kt.length&&jt&&jt(St),this.$$.deleteScheduled=!0,this}function Ht(){}function qt(t,e,r){if(void 0===t[e].overloadTable){var n=t[e];t[e]=function(){return t[e].overloadTable.hasOwnProperty(arguments.length)||yt("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+t[e].overloadTable+")!"),t[e].overloadTable[arguments.length].apply(this,arguments)},t[e].overloadTable=[],t[e].overloadTable[n.argCount]=n}}function Vt(t,e,r,n,o,i,a,s){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function Lt(t,e,r){for(;e!==r;)e.upcast||yt("Expected null or instance of "+r.name+", got an instance of "+e.name),t=e.upcast(t),e=e.baseClass;return t}function Bt(t,e){if(null===e)return this.isReference&&yt("null is not a valid "+this.name),0;e.$$||yt('Cannot pass "'+de(e)+'" as a '+this.name),e.$$.ptr||yt("Cannot pass deleted object as a pointer of type "+this.name);var r=e.$$.ptrType.registeredClass;return Lt(e.$$.ptr,r,this.registeredClass)}function Nt(t,e){var r;if(null===e)return this.isReference&&yt("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;e.$$||yt('Cannot pass "'+de(e)+'" as a '+this.name),e.$$.ptr||yt("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&yt("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);var n=e.$$.ptrType.registeredClass;if(r=Lt(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&yt("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:yt("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var o=e.clone();r=this.rawShare(r,pe.toHandle((function(){o.delete()}))),null!==t&&t.push(this.rawDestructor,r)}break;default:yt("Unsupporting sharing policy")}return r}function Gt(t,e){if(null===e)return this.isReference&&yt("null is not a valid "+this.name),0;e.$$||yt('Cannot pass "'+de(e)+'" as a '+this.name),e.$$.ptr||yt("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&yt("Cannot convert argument of type "+e.$$.ptrType.name+" to parameter type "+this.name);var r=e.$$.ptrType.registeredClass;return Lt(e.$$.ptr,r,this.registeredClass)}function Xt(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t}function Yt(t){this.rawDestructor&&this.rawDestructor(t)}function Jt(t){null!==t&&t.delete()}function Zt(t,e,r,n,o,i,a,s,u,c,f){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,o||void 0!==e.baseClass?this.toWireType=Nt:n?(this.toWireType=Bt,this.destructorFunction=null):(this.toWireType=Gt,this.destructorFunction=null)}var Kt=[];function Qt(t){var e=Kt[t];return e||(t>=Kt.length&&(Kt.length=t+1),Kt[t]=e=U.get(t)),e}function te(t,e,r){return t.includes("j")?function(t,e,r){var n=o["dynCall_"+t];return r&&r.length?n.apply(null,[e].concat(r)):n.call(null,e)}(t,e,r):Qt(e).apply(null,r)}function ee(t,e){var r,n,o,i=(t=vt(t)).includes("j")?(r=t,n=e,o=[],function(){return o.length=0,Object.assign(o,arguments),te(r,n,o)}):Qt(e);return"function"!=typeof i&&yt("unknown function pointer with signature "+t+": "+e),i}var re=void 0;function ne(t){var e=De(t),r=vt(e);return Ie(e),r}function oe(t,e){var r=[],n={};throw e.forEach((function t(e){n[e]||it[e]||(at[e]?at[e].forEach(t):(r.push(e),n[e]=!0))})),new re(t+": "+r.map(ne).join([", "]))}function ie(t,e){for(var r=[],n=0;n<t;n++)r.push(S[e+4*n>>2]);return r}function ae(t,e,r,n,o){var i=e.length;i<2&&yt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==e[1]&&null!==r,s=!1,u=1;u<e.length;++u)if(null!==e[u]&&void 0===e[u].destructorFunction){s=!0;break}var c="void"!==e[0].name,f="",l="";for(u=0;u<i-2;++u)f+=(0!==u?", ":"")+"arg"+u,l+=(0!==u?", ":"")+"arg"+u+"Wired";var p="return function "+st(t)+"("+f+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+t+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";s&&(p+="var destructors = [];\n");var d=s?"destructors":"null",h=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[yt,n,o,rt,e[0],e[1]];for(a&&(p+="var thisWired = classParam.toWireType("+d+", this);\n"),u=0;u<i-2;++u)p+="var arg"+u+"Wired = argType"+u+".toWireType("+d+", arg"+u+"); // "+e[u+2].name+"\n",h.push("argType"+u),v.push(e[u+2]);if(a&&(l="thisWired"+(l.length>0?", ":"")+l),p+=(c?"var rv = ":"")+"invoker(fn"+(l.length>0?", ":"")+l+");\n",s)p+="runDestructors(destructors);\n";else for(u=a?1:2;u<e.length;++u){var m=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==e[u].destructorFunction&&(p+=m+"_dtor("+m+"); // "+e[u].name+"\n",h.push(m+"_dtor"),v.push(e[u].destructorFunction))}return c&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",h.push(p),function(t,e){if(!(t instanceof Function))throw new TypeError("new_ called with constructor type "+typeof t+" which is not a function");var r=ut(t.name||"unknownFunctionName",(function(){}));r.prototype=t.prototype;var n=new r,o=t.apply(n,e);return o instanceof Object?o:n}(Function,h).apply(null,v)}var se=[],ue=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function ce(t){t>4&&0==--ue[t].refcount&&(ue[t]=void 0,se.push(t))}function fe(){for(var t=0,e=5;e<ue.length;++e)void 0!==ue[e]&&++t;return t}function le(){for(var t=5;t<ue.length;++t)if(void 0!==ue[t])return ue[t];return null}var pe={toValue:t=>(t||yt("Cannot use deleted val. handle = "+t),ue[t].value),toHandle:t=>{switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=se.length?se.pop():ue.length;return ue[e]={refcount:1,value:t},e}}};function de(t){if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t}function he(t,e){switch(e){case 2:return function(t){return this.fromWireType(j[t>>2])};case 3:return function(t){return this.fromWireType(E[t>>3])};default:throw new TypeError("Unknown float type: "+t)}}function ve(t,e,r){switch(e){case 0:return r?function(t){return P[t]}:function(t){return C[t]};case 1:return r?function(t){return $[t>>1]}:function(t){return A[t>>1]};case 2:return r?function(t){return k[t>>2]}:function(t){return S[t>>2]};default:throw new TypeError("Unknown integer type: "+t)}}var me="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function ye(t,e){for(var r=t,n=r>>1,o=n+e/2;!(n>=o)&&A[n];)++n;if((r=n<<1)-t>32&&me)return me.decode(C.subarray(t,r));for(var i="",a=0;!(a>=e/2);++a){var s=$[t+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i}function ge(t,e,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=e,o=(r-=2)<2*t.length?r/2:t.length,i=0;i<o;++i){var a=t.charCodeAt(i);$[e>>1]=a,e+=2}return $[e>>1]=0,e-n}function we(t){return 2*t.length}function be(t,e){for(var r=0,n="";!(r>=e/4);){var o=k[t+4*r>>2];if(0==o)break;if(++r,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n}function Te(t,e,r){if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=e,o=n+r-4,i=0;i<t.length;++i){var a=t.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++i)),k[e>>2]=a,(e+=4)+4>o)break}return k[e>>2]=0,e-n}function _e(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&++r,e+=4}return e}var xe={};function Pe(){return"object"==typeof globalThis?globalThis:Function("return this")()}function Ce(t,e){var r=it[t];return void 0===r&&yt(e+" has unknown type "+ne(t)),r}var $e={};function Ae(t){try{return T.grow(t-x.byteLength+65535>>>16),D(T.buffer),1}catch(t){}}var ke={};function Se(){if(!Se.strings){var t={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",_:f||"./this.program"};for(var e in ke)void 0===ke[e]?delete t[e]:t[e]=ke[e];var r=[];for(var e in t)r.push(e+"="+t[e]);Se.strings=r}return Se.strings}var je=function(t,e){var r;r=t,q()||(o.onExit&&o.onExit(r),O=!0),l(r,new K(r))},Ee=[null,[],[]];function Oe(t,e){var r=Ee[t];0===e||10===e?((1===t?w:b)(R(r,0)),r.length=0):r.push(e)}ft=o.InternalError=ct(Error,"InternalError"),function(){for(var t=new Array(256),e=0;e<256;++e)t[e]=String.fromCharCode(e);ht=t}(),mt=o.BindingError=ct(Error,"BindingError"),Ht.prototype.isAliasOf=wt,Ht.prototype.clone=Dt,Ht.prototype.delete=Ut,Ht.prototype.isDeleted=Mt,Ht.prototype.deleteLater=zt,o.getInheritedInstanceCount=$t,o.getLiveInheritedInstances=At,o.flushPendingDeletes=St,o.setDelayFunction=Et,Zt.prototype.getPointee=Xt,Zt.prototype.destructor=Yt,Zt.prototype.argPackAdvance=8,Zt.prototype.readValueFromPointer=nt,Zt.prototype.deleteObject=Jt,Zt.prototype.fromWireType=Wt,re=o.UnboundTypeError=ct(Error,"UnboundTypeError"),o.count_emval_handles=fe,o.get_first_emval=le;var Fe,Re={g:function(t,e,r){throw new tt(t).init(e,r),t},A:function(t){var e=et[t];delete et[t];var r=e.rawConstructor,n=e.rawDestructor,o=e.fields;pt([t],o.map((t=>t.getterReturnType)).concat(o.map((t=>t.setterArgumentType))),(t=>{var i={};return o.forEach(((e,r)=>{var n=e.fieldName,a=t[r],s=e.getter,u=e.getterContext,c=t[r+o.length],f=e.setter,l=e.setterContext;i[n]={read:t=>a.fromWireType(s(u,t)),write:(t,e)=>{var r=[];f(l,t,c.toWireType(r,e)),rt(r)}}})),[{name:e.name,fromWireType:function(t){var e={};for(var r in i)e[r]=i[r].read(t);return n(t),e},toWireType:function(t,e){for(var o in i)if(!(o in e))throw new TypeError('Missing field: "'+o+'"');var a=r();for(o in i)i[o].write(a,e[o]);return null!==t&&t.push(n,a),a},argPackAdvance:8,readValueFromPointer:nt,destructorFunction:n}]}))},w:function(t,e,r,n,o){},F:function(t,e,r,n,o){var i=dt(r);gt(t,{name:e=vt(e),fromWireType:function(t){return!!t},toWireType:function(t,e){return e?n:o},argPackAdvance:8,readValueFromPointer:function(t){var n;if(1===r)n=P;else if(2===r)n=$;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+e);n=k}return this.fromWireType(n[t>>i])},destructorFunction:null})},u:function(t,e,r,n,i,a,s,u,c,f,l,p,d){l=vt(l),a=ee(i,a),u&&(u=ee(s,u)),f&&(f=ee(c,f)),d=ee(p,d);var h=st(l);!function(t,e,r){o.hasOwnProperty(t)?((void 0===r||void 0!==o[t].overloadTable&&void 0!==o[t].overloadTable[r])&&yt("Cannot register public name '"+t+"' twice"),qt(o,t,t),o.hasOwnProperty(r)&&yt("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),o[t].overloadTable[r]=e):(o[t]=e,void 0!==r&&(o[t].numArguments=r))}(h,(function(){oe("Cannot construct "+l+" due to unbound types",[n])})),pt([t,e,r],n?[n]:[],(function(e){var r,i;e=e[0],i=n?(r=e.registeredClass).instancePrototype:Ht.prototype;var s=ut(h,(function(){if(Object.getPrototypeOf(this)!==c)throw new mt("Use 'new' to construct "+l);if(void 0===p.constructor_body)throw new mt(l+" has no accessible constructor");var t=p.constructor_body[arguments.length];if(void 0===t)throw new mt("Tried to invoke ctor of "+l+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(p.constructor_body).toString()+") parameters instead!");return t.apply(this,arguments)})),c=Object.create(i,{constructor:{value:s}});s.prototype=c;var p=new Vt(l,s,c,d,r,a,u,f),v=new Zt(l,p,!0,!1,!1),m=new Zt(l+"*",p,!1,!1,!1),y=new Zt(l+" const*",p,!1,!0,!1);return Ct[t]={pointerType:m,constPointerType:y},function(t,e,r){o.hasOwnProperty(t)||lt("Replacing nonexistant public symbol"),void 0!==o[t].overloadTable&&void 0!==r?o[t].overloadTable[r]=e:(o[t]=e,o[t].argCount=r)}(h,s),[v,m,y]}))},t:function(t,e,r,n,o,i){var a;e>0||X(a);var s=ie(e,r);o=ee(n,o),pt([],[t],(function(t){var r="constructor "+(t=t[0]).name;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new mt("Cannot register multiple constructors with identical number of parameters ("+(e-1)+") for class '"+t.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return t.registeredClass.constructor_body[e-1]=()=>{oe("Cannot construct "+t.name+" due to unbound types",s)},pt([],s,(function(n){return n.splice(1,0,null),t.registeredClass.constructor_body[e-1]=ae(r,n,null,o,i),[]})),[]}))},c:function(t,e,r,n,o,i,a,s){var u=ie(r,n);e=vt(e),i=ee(o,i),pt([],[t],(function(t){var n=(t=t[0]).name+"."+e;function o(){oe("Cannot call "+n+" due to unbound types",u)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(e);var c=t.registeredClass.instancePrototype,f=c[e];return void 0===f||void 0===f.overloadTable&&f.className!==t.name&&f.argCount===r-2?(o.argCount=r-2,o.className=t.name,c[e]=o):(qt(c,e,n),c[e].overloadTable[r-2]=o),pt([],u,(function(o){var s=ae(n,o,t,i,a);return void 0===c[e].overloadTable?(s.argCount=r-2,c[e]=s):c[e].overloadTable[r-2]=s,[]})),[]}))},E:function(t,e){gt(t,{name:e=vt(e),fromWireType:function(t){var e=pe.toValue(t);return ce(t),e},toWireType:function(t,e){return pe.toHandle(e)},argPackAdvance:8,readValueFromPointer:nt,destructorFunction:null})},m:function(t,e,r){var n=dt(r);gt(t,{name:e=vt(e),fromWireType:function(t){return t},toWireType:function(t,e){return e},argPackAdvance:8,readValueFromPointer:he(e,n),destructorFunction:null})},b:function(t,e,r,n,o){e=vt(e),-1===o&&(o=4294967295);var i=dt(r),a=t=>t;if(0===n){var s=32-8*r;a=t=>t<<s>>>s}var u=e.includes("unsigned");gt(t,{name:e,fromWireType:a,toWireType:u?function(t,e){return this.name,e>>>0}:function(t,e){return this.name,e},argPackAdvance:8,readValueFromPointer:ve(e,i,0!==n),destructorFunction:null})},a:function(t,e,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function o(t){var e=S,r=e[t>>=2],o=e[t+1];return new n(x,o,r)}gt(t,{name:r=vt(r),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},l:function(t,e){var r="std::string"===(e=vt(e));gt(t,{name:e,fromWireType:function(t){var e,n=S[t>>2],o=t+4;if(r)for(var i=o,a=0;a<=n;++a){var s=o+a;if(a==n||0==C[s]){var u=W(i,s-i);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),i=s+1}}else{var c=new Array(n);for(a=0;a<n;++a)c[a]=String.fromCharCode(C[o+a]);e=c.join("")}return Ie(t),e},toWireType:function(t,e){var n;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var o="string"==typeof e;o||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||yt("Cannot pass non-string to std::string"),n=r&&o?function(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++r):e+=3}return e}(e):e.length;var i=We(4+n+1),a=i+4;if(S[i>>2]=n,r&&o)I(e,a,n+1);else if(o)for(var s=0;s<n;++s){var u=e.charCodeAt(s);u>255&&(Ie(a),yt("String has UTF-16 code units that do not fit in 8 bits")),C[a+s]=u}else for(s=0;s<n;++s)C[a+s]=e[s];return null!==t&&t.push(Ie,i),i},argPackAdvance:8,readValueFromPointer:nt,destructorFunction:function(t){Ie(t)}})},h:function(t,e,r){var n,o,i,a,s;r=vt(r),2===e?(n=ye,o=ge,a=we,i=()=>A,s=1):4===e&&(n=be,o=Te,a=_e,i=()=>S,s=2),gt(t,{name:r,fromWireType:function(t){for(var r,o=S[t>>2],a=i(),u=t+4,c=0;c<=o;++c){var f=t+4+c*e;if(c==o||0==a[f>>s]){var l=n(u,f-u);void 0===r?r=l:(r+=String.fromCharCode(0),r+=l),u=f+e}}return Ie(t),r},toWireType:function(t,n){"string"!=typeof n&&yt("Cannot pass non-string to C++ string type "+r);var i=a(n),u=We(4+i+e);return S[u>>2]=i>>s,o(n,u+4,i+e),null!==t&&t.push(Ie,u),u},argPackAdvance:8,readValueFromPointer:nt,destructorFunction:function(t){Ie(t)}})},J:function(t,e,r,n,o,i){et[t]={name:vt(e),rawConstructor:ee(r,n),rawDestructor:ee(o,i),fields:[]}},d:function(t,e,r,n,o,i,a,s,u,c){et[t].fields.push({fieldName:vt(e),getterReturnType:r,getter:ee(n,o),getterContext:i,setterArgumentType:a,setter:ee(s,u),setterContext:c})},G:function(t,e){gt(t,{isVoid:!0,name:e=vt(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(t,e){}})},x:function(){throw 1/0},i:ce,r:function(t){return 0===t?pe.toHandle(Pe()):(t=void 0===(r=xe[e=t])?vt(e):r,pe.toHandle(Pe()[t]));var e,r},p:function(t){t>4&&(ue[t].refcount+=1)},q:function(t,e,r,n){t=pe.toValue(t);var i=$e[e];return i||(i=function(t){for(var e="",r=0;r<t;++r)e+=(0!==r?", ":"")+"arg"+r;var n="return function emval_allocator_"+t+"(constructor, argTypes, args) {\n var HEAPU32 = getMemory();\n";for(r=0;r<t;++r)n+="var argType"+r+" = requireRegisteredType(HEAPU32[((argTypes)>>2)], 'parameter "+r+"');\nvar arg"+r+" = argType"+r+".readValueFromPointer(args);\nargs += argType"+r+"['argPackAdvance'];\nargTypes += 4;\n";return n+="var obj = new constructor("+e+");\nreturn valueToHandle(obj);\n}\n",new Function("requireRegisteredType","Module","valueToHandle","getMemory",n)(Ce,o,pe.toHandle,(()=>S))}(e),$e[e]=i),i(t,r,n)},s:function(t,e){var r=(t=Ce(t,"_emval_take_value")).readValueFromPointer(e);return pe.toHandle(r)},j:function(){X("")},D:function(t,e,r){C.copyWithin(t,e,e+r)},y:function(t){var e,r,n=C.length,o=2147483648;if((t>>>=0)>o)return!1;for(var i=1;i<=4;i*=2){var a=n*(1+.2/i);if(a=Math.min(a,t+100663296),Ae(Math.min(o,(e=Math.max(t,a))+((r=65536)-e%r)%r)))return!0}return!1},z:function(t,e){var r=0;return Se().forEach((function(n,o){var i=e+r;S[t+4*o>>2]=i,function(t,e,r){for(var n=0;n<t.length;++n)P[e++>>0]=t.charCodeAt(n);r||(P[e>>0]=0)}(n,i),r+=n.length+1})),0},B:function(t,e){var r=Se();S[t>>2]=r.length;var n=0;return r.forEach((function(t){n+=t.length+1})),S[e>>2]=n,0},I:je,C:function(t){return 52},v:function(t,e,r,n,o){return 70},k:function(t,e,r,n){for(var o=0,i=0;i<r;i++){var a=S[e>>2],s=S[e+4>>2];e+=8;for(var u=0;u<s;u++)Oe(t,C[a+u]);o+=s}return S[n>>2]=o,0},o:function(t,e){var r=Me();try{return Qt(t)(e)}catch(t){if(ze(r),t!==t+0)throw t;Ue(1,0)}},n:function(t,e,r){var n=Me();try{return Qt(t)(e,r)}catch(t){if(ze(n),t!==t+0)throw t;Ue(1,0)}},H:function(t,e,r,n){var o=Me();try{return Qt(t)(e,r,n)}catch(t){if(ze(o),t!==t+0)throw t;Ue(1,0)}},f:function(t,e){var r=Me();try{Qt(t)(e)}catch(t){if(ze(r),t!==t+0)throw t;Ue(1,0)}},e:function(t,e,r,n){var o=Me();try{Qt(t)(e,r,n)}catch(t){if(ze(o),t!==t+0)throw t;Ue(1,0)}}},We=(function(){var t={a:Re};function e(t,e){var r,n=t.exports;o.asm=n,D((T=o.asm.K).buffer),U=o.asm.M,r=o.asm.L,z.unshift(r),function(t){if(B--,o.monitorRunDependencies&&o.monitorRunDependencies(B),0==B&&(null!==N&&(clearInterval(N),N=null),G)){var e=G;G=null,e()}}()}function r(t){e(t.instance)}function i(e){return function(){if(!g&&(p||d)){if("function"==typeof fetch&&!J(V))return fetch(V,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+V+"'";return t.arrayBuffer()})).catch((function(){return Z(V)}));if(a)return new Promise((function(t,e){a(V,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return Z(V)}))}().then((function(e){return WebAssembly.instantiate(e,t)})).then((function(t){return t})).then(e,(function(t){b("failed to asynchronously prepare wasm: "+t),X(t)}))}if(B++,o.monitorRunDependencies&&o.monitorRunDependencies(B),o.instantiateWasm)try{return o.instantiateWasm(t,e)}catch(t){b("Module.instantiateWasm callback failed with error: "+t),n(t)}(g||"function"!=typeof WebAssembly.instantiateStreaming||Y(V)||J(V)||h||"function"!=typeof fetch?i(r):fetch(V,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(r,(function(t){return b("wasm streaming compile failed: "+t),b("falling back to ArrayBuffer instantiation"),i(r)}))}))).catch(n)}(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.L).apply(null,arguments)},o._malloc=function(){return(We=o._malloc=o.asm.N).apply(null,arguments)}),Ie=o._free=function(){return(Ie=o._free=o.asm.O).apply(null,arguments)},De=o.___getTypeName=function(){return(De=o.___getTypeName=o.asm.P).apply(null,arguments)},Ue=(o.__embind_initialize_bindings=function(){return(o.__embind_initialize_bindings=o.asm.Q).apply(null,arguments)},o._setThrew=function(){return(Ue=o._setThrew=o.asm.R).apply(null,arguments)}),Me=o.stackSave=function(){return(Me=o.stackSave=o.asm.S).apply(null,arguments)},ze=o.stackRestore=function(){return(ze=o.stackRestore=o.asm.T).apply(null,arguments)},He=o.stackAlloc=function(){return(He=o.stackAlloc=o.asm.U).apply(null,arguments)},qe=o.___cxa_is_pointer_type=function(){return(qe=o.___cxa_is_pointer_type=o.asm.V).apply(null,arguments)};function Ve(t){function r(){Fe||(Fe=!0,o.calledRun=!0,O||(Q(z),e(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),function(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)t=o.postRun.shift(),H.unshift(t);var t;Q(H)}()))}t=t||c,B>0||(function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)t=o.preRun.shift(),M.unshift(t);var t;Q(M)}(),B>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),r()}),1)):r()))}if(o.dynCall_jiji=function(){return(o.dynCall_jiji=o.asm.W).apply(null,arguments)},o.ccall=function(t,e,r,n,i){var a={string:t=>{var e=0;if(null!=t&&0!==t){var r=1+(t.length<<2);I(t,e=He(r),r)}return e},array:t=>{var e=He(t.length);return function(t,e){P.set(t,e)}(t,e),e}},s=function(t){return o["_"+t]}(t),u=[],c=0;if(n)for(var f=0;f<n.length;f++){var l=a[r[f]];l?(0===c&&(c=Me()),u[f]=l(n[f])):u[f]=n[f]}var p=s.apply(null,u);return p=function(t){return 0!==c&&ze(c),function(t){return"string"===e?W(t):"boolean"===e?Boolean(t):t}(t)}(p)},G=function t(){Fe||Ve(),Fe||(G=t)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Ve(),t.ready});"object"==typeof e&&"object"==typeof t?t.exports=n:"function"==typeof define&&define.amd?define([],(function(){return n})):"object"==typeof e&&(e.libjpegturbowasm_decode=n)},4044:function(t,e){var r,n=(r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(r=r||__filename),function(t){var e,n,o=void 0!==(t=t||{})?t:{};o.ready=new Promise((function(t,r){e=t,n=r}));var i,a,s,u=Object.assign({},o),c=[],f="./this.program",l="object"==typeof window,p="function"==typeof importScripts,d="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,h="";if(d){var v=require("fs"),m=require("path");h=p?m.dirname(h)+"/":__dirname+"/",i=(t,e)=>(t=G(t)?new URL(t):m.normalize(t),v.readFileSync(t,e?void 0:"utf8")),s=t=>{var e=i(t,!0);return e.buffer||(e=new Uint8Array(e)),e},a=(t,e,r)=>{t=G(t)?new URL(t):m.normalize(t),v.readFile(t,(function(t,n){t?r(t):e(n.buffer)}))},process.argv.length>1&&(f=process.argv[1].replace(/\\/g,"/")),c=process.argv.slice(2),process.on("uncaughtException",(function(t){if(!(t instanceof Y))throw t})),process.on("unhandledRejection",(function(t){throw t})),o.inspect=function(){return"[Emscripten Module object]"}}else(l||p)&&(p?h=self.location.href:"undefined"!=typeof document&&document.currentScript&&(h=document.currentScript.src),r&&(h=r),h=0!==h.indexOf("blob:")?h.substr(0,h.replace(/[?#].*/,"").lastIndexOf("/")+1):"",i=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},p&&(s=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),a=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)});var y,g=o.print||console.log.bind(console),w=o.printErr||console.warn.bind(console);Object.assign(o,u),u=null,o.arguments&&(c=o.arguments),o.thisProgram&&(f=o.thisProgram),o.quit&&o.quit,o.wasmBinary&&(y=o.wasmBinary);var b;o.noExitRuntime;"object"!=typeof WebAssembly&&B("no native wasm support detected");var T,_,x,P,C,$,A,k,S,j=!1,E="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function O(t,e,r){for(var n=e+r,o=e;t[o]&&!(o>=n);)++o;if(o-e>16&&t.buffer&&E)return E.decode(t.subarray(e,o));for(var i="";e<o;){var a=t[e++];if(128&a){var s=63&t[e++];if(192!=(224&a)){var u=63&t[e++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&t[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function F(t,e){return t?O(x,t,e):""}function R(t,e,r){return function(t,e,r,n){if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a<t.length;++a){var s=t.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(r>=i)break;e[r++]=s}else if(s<=2047){if(r+1>=i)break;e[r++]=192|s>>6,e[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;e[r++]=224|s>>12,e[r++]=128|s>>6&63,e[r++]=128|63&s}else{if(r+3>=i)break;e[r++]=240|s>>18,e[r++]=128|s>>12&63,e[r++]=128|s>>6&63,e[r++]=128|63&s}}return e[r]=0,r-o}(t,x,e,r)}function W(t){T=t,o.HEAP8=_=new Int8Array(t),o.HEAP16=P=new Int16Array(t),o.HEAP32=$=new Int32Array(t),o.HEAPU8=x=new Uint8Array(t),o.HEAPU16=C=new Uint16Array(t),o.HEAPU32=A=new Uint32Array(t),o.HEAPF32=k=new Float32Array(t),o.HEAPF64=S=new Float64Array(t)}o.INITIAL_MEMORY;var I,D,U,M=[],z=[],H=[],q=0,V=null,L=null;function B(t){o.onAbort&&o.onAbort(t),w(t="Aborted("+t+")"),j=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw n(e),e}function N(t){return t.startsWith("data:application/octet-stream;base64,")}function G(t){return t.startsWith("file://")}function X(t){try{if(t==D&&y)return new Uint8Array(y);if(s)return s(t);throw"both async and sync fetching of the wasm failed"}catch(t){B(t)}}function Y(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function J(t){for(;t.length>0;)t.shift()(o)}function Z(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(t){A[this.ptr+4>>2]=t},this.get_type=function(){return A[this.ptr+4>>2]},this.set_destructor=function(t){A[this.ptr+8>>2]=t},this.get_destructor=function(){return A[this.ptr+8>>2]},this.set_refcount=function(t){$[this.ptr>>2]=t},this.set_caught=function(t){t=t?1:0,_[this.ptr+12>>0]=t},this.get_caught=function(){return 0!=_[this.ptr+12>>0]},this.set_rethrown=function(t){t=t?1:0,_[this.ptr+13>>0]=t},this.get_rethrown=function(){return 0!=_[this.ptr+13>>0]},this.init=function(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var t=$[this.ptr>>2];$[this.ptr>>2]=t+1},this.release_ref=function(){var t=$[this.ptr>>2];return $[this.ptr>>2]=t-1,1===t},this.set_adjusted_ptr=function(t){A[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return A[this.ptr+16>>2]},this.get_exception_ptr=function(){if(De(this.get_type()))return A[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}}N(D="openjpegwasm_decode.wasm")||(U=D,D=o.locateFile?o.locateFile(U,h):h+U);var K={};function Q(t){for(;t.length;){var e=t.pop();t.pop()(e)}}function tt(t){return this.fromWireType($[t>>2])}var et={},rt={},nt={};function ot(t){if(void 0===t)return"_unknown";var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?"_"+t:t}function it(t,e){return t=ot(t),new Function("body","return function "+t+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(e)}function at(t,e){var r=it(e,(function(t){this.name=e,this.message=t;var r=new Error(t).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var st=void 0;function ut(t){throw new st(t)}function ct(t,e,r){function n(e){var n=r(e);n.length!==t.length&&ut("Mismatched type converter count");for(var o=0;o<t.length;++o)vt(t[o],n[o])}t.forEach((function(t){nt[t]=e}));var o=new Array(e.length),i=[],a=0;e.forEach(((t,e)=>{rt.hasOwnProperty(t)?o[e]=rt[t]:(i.push(t),et.hasOwnProperty(t)||(et[t]=[]),et[t].push((()=>{o[e]=rt[t],++a===i.length&&n(o)})))})),0===i.length&&n(o)}function ft(t){switch(t){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+t)}}var lt=void 0;function pt(t){for(var e="",r=t;x[r];)e+=lt[x[r++]];return e}var dt=void 0;function ht(t){throw new dt(t)}function vt(t,e,r={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=e.name;if(t||ht('type "'+n+'" must have a positive integer typeid pointer'),rt.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;ht("Cannot register type '"+n+"' twice")}if(rt[t]=e,delete nt[t],et.hasOwnProperty(t)){var o=et[t];delete et[t],o.forEach((t=>t()))}}function mt(t){if(!(this instanceof Ut))return!1;if(!(t instanceof Ut))return!1;for(var e=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=t.$$.ptrType.registeredClass,o=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return e===n&&r===o}function yt(t){ht(t.$$.ptrType.registeredClass.name+" instance already deleted")}var gt=!1;function wt(t){}function bt(t){t.count.value-=1,0===t.count.value&&function(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)}(t)}function Tt(t,e,r){if(e===r)return t;if(void 0===r.baseClass)return null;var n=Tt(t,e,r.baseClass);return null===n?null:r.downcast(n)}var _t={};function xt(){return Object.keys(St).length}function Pt(){var t=[];for(var e in St)St.hasOwnProperty(e)&&t.push(St[e]);return t}var Ct=[];function $t(){for(;Ct.length;){var t=Ct.pop();t.$$.deleteScheduled=!1,t.delete()}}var At=void 0;function kt(t){At=t,Ct.length&&At&&At($t)}var St={};function jt(t,e){return e=function(t,e){for(void 0===e&&ht("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e}(t,e),St[e]}function Et(t,e){return e.ptrType&&e.ptr||ut("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&ut("Both smartPtrType and smartPtr must be specified"),e.count={value:1},Ft(Object.create(t,{$$:{value:e}}))}function Ot(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=jt(this.registeredClass,e);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var n=r.clone();return this.destructor(t),n}function o(){return this.isSmartPointer?Et(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):Et(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var i,a=this.registeredClass.getActualType(e),s=_t[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var u=Tt(e,this.registeredClass,i.registeredClass);return null===u?o.call(this):this.isSmartPointer?Et(i.registeredClass.instancePrototype,{ptrType:i,ptr:u,smartPtrType:this,smartPtr:t}):Et(i.registeredClass.instancePrototype,{ptrType:i,ptr:u})}function Ft(t){return"undefined"==typeof FinalizationRegistry?(Ft=t=>t,t):(gt=new FinalizationRegistry((t=>{bt(t.$$)})),Ft=t=>{var e=t.$$;if(e.smartPtr){var r={$$:e};gt.register(t,r,t)}return t},wt=t=>gt.unregister(t),Ft(t))}function Rt(){if(this.$$.ptr||yt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t,e=Ft(Object.create(Object.getPrototypeOf(this),{$$:{value:(t=this.$$,{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType})}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function Wt(){this.$$.ptr||yt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ht("Object already scheduled for deletion"),wt(this),bt(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function It(){return!this.$$.ptr}function Dt(){return this.$$.ptr||yt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ht("Object already scheduled for deletion"),Ct.push(this),1===Ct.length&&At&&At($t),this.$$.deleteScheduled=!0,this}function Ut(){}function Mt(t,e,r){if(void 0===t[e].overloadTable){var n=t[e];t[e]=function(){return t[e].overloadTable.hasOwnProperty(arguments.length)||ht("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+t[e].overloadTable+")!"),t[e].overloadTable[arguments.length].apply(this,arguments)},t[e].overloadTable=[],t[e].overloadTable[n.argCount]=n}}function zt(t,e,r,n,o,i,a,s){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function Ht(t,e,r){for(;e!==r;)e.upcast||ht("Expected null or instance of "+r.name+", got an instance of "+e.name),t=e.upcast(t),e=e.baseClass;return t}function qt(t,e){if(null===e)return this.isReference&&ht("null is not a valid "+this.name),0;e.$$||ht('Cannot pass "'+fe(e)+'" as a '+this.name),e.$$.ptr||ht("Cannot pass deleted object as a pointer of type "+this.name);var r=e.$$.ptrType.registeredClass;return Ht(e.$$.ptr,r,this.registeredClass)}function Vt(t,e){var r;if(null===e)return this.isReference&&ht("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;e.$$||ht('Cannot pass "'+fe(e)+'" as a '+this.name),e.$$.ptr||ht("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&ht("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);var n=e.$$.ptrType.registeredClass;if(r=Ht(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&ht("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:ht("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var o=e.clone();r=this.rawShare(r,ce.toHandle((function(){o.delete()}))),null!==t&&t.push(this.rawDestructor,r)}break;default:ht("Unsupporting sharing policy")}return r}function Lt(t,e){if(null===e)return this.isReference&&ht("null is not a valid "+this.name),0;e.$$||ht('Cannot pass "'+fe(e)+'" as a '+this.name),e.$$.ptr||ht("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&ht("Cannot convert argument of type "+e.$$.ptrType.name+" to parameter type "+this.name);var r=e.$$.ptrType.registeredClass;return Ht(e.$$.ptr,r,this.registeredClass)}function Bt(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t}function Nt(t){this.rawDestructor&&this.rawDestructor(t)}function Gt(t){null!==t&&t.delete()}function Xt(t,e,r,n,o,i,a,s,u,c,f){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,o||void 0!==e.baseClass?this.toWireType=Vt:n?(this.toWireType=qt,this.destructorFunction=null):(this.toWireType=Lt,this.destructorFunction=null)}var Yt=[];function Jt(t){var e=Yt[t];return e||(t>=Yt.length&&(Yt.length=t+1),Yt[t]=e=I.get(t)),e}function Zt(t,e,r){return t.includes("j")?function(t,e,r){var n=o["dynCall_"+t];return r&&r.length?n.apply(null,[e].concat(r)):n.call(null,e)}(t,e,r):Jt(e).apply(null,r)}function Kt(t,e){var r,n,o,i=(t=pt(t)).includes("j")?(r=t,n=e,o=[],function(){return o.length=0,Object.assign(o,arguments),Zt(r,n,o)}):Jt(e);return"function"!=typeof i&&ht("unknown function pointer with signature "+t+": "+e),i}var Qt=void 0;function te(t){var e=Fe(t),r=pt(e);return Oe(e),r}function ee(t,e){var r=[],n={};throw e.forEach((function t(e){n[e]||rt[e]||(nt[e]?nt[e].forEach(t):(r.push(e),n[e]=!0))})),new Qt(t+": "+r.map(te).join([", "]))}function re(t,e){for(var r=[],n=0;n<t;n++)r.push(A[e+4*n>>2]);return r}function ne(t,e,r,n,o){var i=e.length;i<2&&ht("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==e[1]&&null!==r,s=!1,u=1;u<e.length;++u)if(null!==e[u]&&void 0===e[u].destructorFunction){s=!0;break}var c="void"!==e[0].name,f="",l="";for(u=0;u<i-2;++u)f+=(0!==u?", ":"")+"arg"+u,l+=(0!==u?", ":"")+"arg"+u+"Wired";var p="return function "+ot(t)+"("+f+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+t+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";s&&(p+="var destructors = [];\n");var d=s?"destructors":"null",h=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[ht,n,o,Q,e[0],e[1]];for(a&&(p+="var thisWired = classParam.toWireType("+d+", this);\n"),u=0;u<i-2;++u)p+="var arg"+u+"Wired = argType"+u+".toWireType("+d+", arg"+u+"); // "+e[u+2].name+"\n",h.push("argType"+u),v.push(e[u+2]);if(a&&(l="thisWired"+(l.length>0?", ":"")+l),p+=(c?"var rv = ":"")+"invoker(fn"+(l.length>0?", ":"")+l+");\n",s)p+="runDestructors(destructors);\n";else for(u=a?1:2;u<e.length;++u){var m=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==e[u].destructorFunction&&(p+=m+"_dtor("+m+"); // "+e[u].name+"\n",h.push(m+"_dtor"),v.push(e[u].destructorFunction))}return c&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",h.push(p),function(t,e){if(!(t instanceof Function))throw new TypeError("new_ called with constructor type "+typeof t+" which is not a function");var r=it(t.name||"unknownFunctionName",(function(){}));r.prototype=t.prototype;var n=new r,o=t.apply(n,e);return o instanceof Object?o:n}(Function,h).apply(null,v)}var oe=[],ie=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function ae(t){t>4&&0==--ie[t].refcount&&(ie[t]=void 0,oe.push(t))}function se(){for(var t=0,e=5;e<ie.length;++e)void 0!==ie[e]&&++t;return t}function ue(){for(var t=5;t<ie.length;++t)if(void 0!==ie[t])return ie[t];return null}var ce={toValue:t=>(t||ht("Cannot use deleted val. handle = "+t),ie[t].value),toHandle:t=>{switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=oe.length?oe.pop():ie.length;return ie[e]={refcount:1,value:t},e}}};function fe(t){if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t}function le(t,e){switch(e){case 2:return function(t){return this.fromWireType(k[t>>2])};case 3:return function(t){return this.fromWireType(S[t>>3])};default:throw new TypeError("Unknown float type: "+t)}}function pe(t,e,r){switch(e){case 0:return r?function(t){return _[t]}:function(t){return x[t]};case 1:return r?function(t){return P[t>>1]}:function(t){return C[t>>1]};case 2:return r?function(t){return $[t>>2]}:function(t){return A[t>>2]};default:throw new TypeError("Unknown integer type: "+t)}}var de="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function he(t,e){for(var r=t,n=r>>1,o=n+e/2;!(n>=o)&&C[n];)++n;if((r=n<<1)-t>32&&de)return de.decode(x.subarray(t,r));for(var i="",a=0;!(a>=e/2);++a){var s=P[t+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i}function ve(t,e,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=e,o=(r-=2)<2*t.length?r/2:t.length,i=0;i<o;++i){var a=t.charCodeAt(i);P[e>>1]=a,e+=2}return P[e>>1]=0,e-n}function me(t){return 2*t.length}function ye(t,e){for(var r=0,n="";!(r>=e/4);){var o=$[t+4*r>>2];if(0==o)break;if(++r,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n}function ge(t,e,r){if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=e,o=n+r-4,i=0;i<t.length;++i){var a=t.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++i)),$[e>>2]=a,(e+=4)+4>o)break}return $[e>>2]=0,e-n}function we(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&++r,e+=4}return e}var be={};function Te(){return"object"==typeof globalThis?globalThis:Function("return this")()}function _e(t,e){var r=rt[t];return void 0===r&&ht(e+" has unknown type "+te(t)),r}var xe={};function Pe(t){try{return b.grow(t-T.byteLength+65535>>>16),W(b.buffer),1}catch(t){}}var Ce={};function $e(){if(!$e.strings){var t={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",_:f||"./this.program"};for(var e in Ce)void 0===Ce[e]?delete t[e]:t[e]=Ce[e];var r=[];for(var e in t)r.push(e+"="+t[e]);$e.strings=r}return $e.strings}var Ae=[null,[],[]];function ke(t,e){var r=Ae[t];0===e||10===e?((1===t?g:w)(O(r,0)),r.length=0):r.push(e)}st=o.InternalError=at(Error,"InternalError"),function(){for(var t=new Array(256),e=0;e<256;++e)t[e]=String.fromCharCode(e);lt=t}(),dt=o.BindingError=at(Error,"BindingError"),Ut.prototype.isAliasOf=mt,Ut.prototype.clone=Rt,Ut.prototype.delete=Wt,Ut.prototype.isDeleted=It,Ut.prototype.deleteLater=Dt,o.getInheritedInstanceCount=xt,o.getLiveInheritedInstances=Pt,o.flushPendingDeletes=$t,o.setDelayFunction=kt,Xt.prototype.getPointee=Bt,Xt.prototype.destructor=Nt,Xt.prototype.argPackAdvance=8,Xt.prototype.readValueFromPointer=tt,Xt.prototype.deleteObject=Gt,Xt.prototype.fromWireType=Ot,Qt=o.UnboundTypeError=at(Error,"UnboundTypeError"),o.count_emval_handles=se,o.get_first_emval=ue;var Se,je={D:function(t,e,r){throw new Z(t).init(e,r),t},e:function(t){var e=K[t];delete K[t];var r=e.rawConstructor,n=e.rawDestructor,o=e.fields;ct([t],o.map((t=>t.getterReturnType)).concat(o.map((t=>t.setterArgumentType))),(t=>{var i={};return o.forEach(((e,r)=>{var n=e.fieldName,a=t[r],s=e.getter,u=e.getterContext,c=t[r+o.length],f=e.setter,l=e.setterContext;i[n]={read:t=>a.fromWireType(s(u,t)),write:(t,e)=>{var r=[];f(l,t,c.toWireType(r,e)),Q(r)}}})),[{name:e.name,fromWireType:function(t){var e={};for(var r in i)e[r]=i[r].read(t);return n(t),e},toWireType:function(t,e){for(var o in i)if(!(o in e))throw new TypeError('Missing field: "'+o+'"');var a=r();for(o in i)i[o].write(a,e[o]);return null!==t&&t.push(n,a),a},argPackAdvance:8,readValueFromPointer:tt,destructorFunction:n}]}))},t:function(t,e,r,n,o){},B:function(t,e,r,n,o){var i=ft(r);vt(t,{name:e=pt(e),fromWireType:function(t){return!!t},toWireType:function(t,e){return e?n:o},argPackAdvance:8,readValueFromPointer:function(t){var n;if(1===r)n=_;else if(2===r)n=P;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+e);n=$}return this.fromWireType(n[t>>i])},destructorFunction:null})},r:function(t,e,r,n,i,a,s,u,c,f,l,p,d){l=pt(l),a=Kt(i,a),u&&(u=Kt(s,u)),f&&(f=Kt(c,f)),d=Kt(p,d);var h=ot(l);!function(t,e,r){o.hasOwnProperty(t)?((void 0===r||void 0!==o[t].overloadTable&&void 0!==o[t].overloadTable[r])&&ht("Cannot register public name '"+t+"' twice"),Mt(o,t,t),o.hasOwnProperty(r)&&ht("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),o[t].overloadTable[r]=e):(o[t]=e,void 0!==r&&(o[t].numArguments=r))}(h,(function(){ee("Cannot construct "+l+" due to unbound types",[n])})),ct([t,e,r],n?[n]:[],(function(e){var r,i;e=e[0],i=n?(r=e.registeredClass).instancePrototype:Ut.prototype;var s=it(h,(function(){if(Object.getPrototypeOf(this)!==c)throw new dt("Use 'new' to construct "+l);if(void 0===p.constructor_body)throw new dt(l+" has no accessible constructor");var t=p.constructor_body[arguments.length];if(void 0===t)throw new dt("Tried to invoke ctor of "+l+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(p.constructor_body).toString()+") parameters instead!");return t.apply(this,arguments)})),c=Object.create(i,{constructor:{value:s}});s.prototype=c;var p=new zt(l,s,c,d,r,a,u,f),v=new Xt(l,p,!0,!1,!1),m=new Xt(l+"*",p,!1,!1,!1),y=new Xt(l+" const*",p,!1,!0,!1);return _t[t]={pointerType:m,constPointerType:y},function(t,e,r){o.hasOwnProperty(t)||ut("Replacing nonexistant public symbol"),void 0!==o[t].overloadTable&&void 0!==r?o[t].overloadTable[r]=e:(o[t]=e,o[t].argCount=r)}(h,s),[v,m,y]}))},q:function(t,e,r,n,o,i){var a;e>0||B(a);var s=re(e,r);o=Kt(n,o),ct([],[t],(function(t){var r="constructor "+(t=t[0]).name;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new dt("Cannot register multiple constructors with identical number of parameters ("+(e-1)+") for class '"+t.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return t.registeredClass.constructor_body[e-1]=()=>{ee("Cannot construct "+t.name+" due to unbound types",s)},ct([],s,(function(n){return n.splice(1,0,null),t.registeredClass.constructor_body[e-1]=ne(r,n,null,o,i),[]})),[]}))},b:function(t,e,r,n,o,i,a,s){var u=re(r,n);e=pt(e),i=Kt(o,i),ct([],[t],(function(t){var n=(t=t[0]).name+"."+e;function o(){ee("Cannot call "+n+" due to unbound types",u)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(e);var c=t.registeredClass.instancePrototype,f=c[e];return void 0===f||void 0===f.overloadTable&&f.className!==t.name&&f.argCount===r-2?(o.argCount=r-2,o.className=t.name,c[e]=o):(Mt(c,e,n),c[e].overloadTable[r-2]=o),ct([],u,(function(o){var s=ne(n,o,t,i,a);return void 0===c[e].overloadTable?(s.argCount=r-2,c[e]=s):c[e].overloadTable[r-2]=s,[]})),[]}))},A:function(t,e){vt(t,{name:e=pt(e),fromWireType:function(t){var e=ce.toValue(t);return ae(t),e},toWireType:function(t,e){return ce.toHandle(e)},argPackAdvance:8,readValueFromPointer:tt,destructorFunction:null})},l:function(t,e,r){var n=ft(r);vt(t,{name:e=pt(e),fromWireType:function(t){return t},toWireType:function(t,e){return e},argPackAdvance:8,readValueFromPointer:le(e,n),destructorFunction:null})},d:function(t,e,r,n,o){e=pt(e),-1===o&&(o=4294967295);var i=ft(r),a=t=>t;if(0===n){var s=32-8*r;a=t=>t<<s>>>s}var u=e.includes("unsigned");vt(t,{name:e,fromWireType:a,toWireType:u?function(t,e){return this.name,e>>>0}:function(t,e){return this.name,e},argPackAdvance:8,readValueFromPointer:pe(e,i,0!==n),destructorFunction:null})},a:function(t,e,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function o(t){var e=A,r=e[t>>=2],o=e[t+1];return new n(T,o,r)}vt(t,{name:r=pt(r),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},k:function(t,e){var r="std::string"===(e=pt(e));vt(t,{name:e,fromWireType:function(t){var e,n=A[t>>2],o=t+4;if(r)for(var i=o,a=0;a<=n;++a){var s=o+a;if(a==n||0==x[s]){var u=F(i,s-i);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),i=s+1}}else{var c=new Array(n);for(a=0;a<n;++a)c[a]=String.fromCharCode(x[o+a]);e=c.join("")}return Oe(t),e},toWireType:function(t,e){var n;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var o="string"==typeof e;o||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||ht("Cannot pass non-string to std::string"),n=r&&o?function(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++r):e+=3}return e}(e):e.length;var i=Ee(4+n+1),a=i+4;if(A[i>>2]=n,r&&o)R(e,a,n+1);else if(o)for(var s=0;s<n;++s){var u=e.charCodeAt(s);u>255&&(Oe(a),ht("String has UTF-16 code units that do not fit in 8 bits")),x[a+s]=u}else for(s=0;s<n;++s)x[a+s]=e[s];return null!==t&&t.push(Oe,i),i},argPackAdvance:8,readValueFromPointer:tt,destructorFunction:function(t){Oe(t)}})},f:function(t,e,r){var n,o,i,a,s;r=pt(r),2===e?(n=he,o=ve,a=me,i=()=>C,s=1):4===e&&(n=ye,o=ge,a=we,i=()=>A,s=2),vt(t,{name:r,fromWireType:function(t){for(var r,o=A[t>>2],a=i(),u=t+4,c=0;c<=o;++c){var f=t+4+c*e;if(c==o||0==a[f>>s]){var l=n(u,f-u);void 0===r?r=l:(r+=String.fromCharCode(0),r+=l),u=f+e}}return Oe(t),r},toWireType:function(t,n){"string"!=typeof n&&ht("Cannot pass non-string to C++ string type "+r);var i=a(n),u=Ee(4+i+e);return A[u>>2]=i>>s,o(n,u+4,i+e),null!==t&&t.push(Oe,u),u},argPackAdvance:8,readValueFromPointer:tt,destructorFunction:function(t){Oe(t)}})},g:function(t,e,r,n,o,i){K[t]={name:pt(e),rawConstructor:Kt(r,n),rawDestructor:Kt(o,i),fields:[]}},c:function(t,e,r,n,o,i,a,s,u,c){K[t].fields.push({fieldName:pt(e),getterReturnType:r,getter:Kt(n,o),getterContext:i,setterArgumentType:a,setter:Kt(s,u),setterContext:c})},C:function(t,e){vt(t,{isVoid:!0,name:e=pt(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(t,e){}})},h:ae,o:function(t){return 0===t?ce.toHandle(Te()):(t=void 0===(r=be[e=t])?pt(e):r,ce.toHandle(Te()[t]));var e,r},m:function(t){t>4&&(ie[t].refcount+=1)},n:function(t,e,r,n){t=ce.toValue(t);var i=xe[e];return i||(i=function(t){for(var e="",r=0;r<t;++r)e+=(0!==r?", ":"")+"arg"+r;var n="return function emval_allocator_"+t+"(constructor, argTypes, args) {\n var HEAPU32 = getMemory();\n";for(r=0;r<t;++r)n+="var argType"+r+" = requireRegisteredType(HEAPU32[((argTypes)>>2)], 'parameter "+r+"');\nvar arg"+r+" = argType"+r+".readValueFromPointer(args);\nargs += argType"+r+"['argPackAdvance'];\nargTypes += 4;\n";return n+="var obj = new constructor("+e+");\nreturn valueToHandle(obj);\n}\n",new Function("requireRegisteredType","Module","valueToHandle","getMemory",n)(_e,o,ce.toHandle,(()=>A))}(e),xe[e]=i),i(t,r,n)},p:function(t,e){var r=(t=_e(t,"_emval_take_value")).readValueFromPointer(e);return ce.toHandle(r)},i:function(){B("")},v:function(){return 2147483648},z:function(t,e,r){x.copyWithin(t,e,e+r)},u:function(t){var e,r,n=x.length,o=2147483648;if((t>>>=0)>o)return!1;for(var i=1;i<=4;i*=2){var a=n*(1+.2/i);if(a=Math.min(a,t+100663296),Pe(Math.min(o,(e=Math.max(t,a))+((r=65536)-e%r)%r)))return!0}return!1},w:function(t,e){var r=0;return $e().forEach((function(n,o){var i=e+r;A[t+4*o>>2]=i,function(t,e,r){for(var n=0;n<t.length;++n)_[e++>>0]=t.charCodeAt(n);r||(_[e>>0]=0)}(n,i),r+=n.length+1})),0},x:function(t,e){var r=$e();A[t>>2]=r.length;var n=0;return r.forEach((function(t){n+=t.length+1})),A[e>>2]=n,0},y:function(t){return 52},s:function(t,e,r,n,o){return 70},j:function(t,e,r,n){for(var o=0,i=0;i<r;i++){var a=A[e>>2],s=A[e+4>>2];e+=8;for(var u=0;u<s;u++)ke(t,x[a+u]);o+=s}return A[n>>2]=o,0}},Ee=(function(){var t={a:je};function e(t,e){var r,n=t.exports;o.asm=n,W((b=o.asm.E).buffer),I=o.asm.G,r=o.asm.F,z.unshift(r),function(t){if(q--,o.monitorRunDependencies&&o.monitorRunDependencies(q),0==q&&(null!==V&&(clearInterval(V),V=null),L)){var e=L;L=null,e()}}()}function r(t){e(t.instance)}function i(e){return function(){if(!y&&(l||p)){if("function"==typeof fetch&&!G(D))return fetch(D,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+D+"'";return t.arrayBuffer()})).catch((function(){return X(D)}));if(a)return new Promise((function(t,e){a(D,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return X(D)}))}().then((function(e){return WebAssembly.instantiate(e,t)})).then((function(t){return t})).then(e,(function(t){w("failed to asynchronously prepare wasm: "+t),B(t)}))}if(q++,o.monitorRunDependencies&&o.monitorRunDependencies(q),o.instantiateWasm)try{return o.instantiateWasm(t,e)}catch(t){w("Module.instantiateWasm callback failed with error: "+t),n(t)}(y||"function"!=typeof WebAssembly.instantiateStreaming||N(D)||G(D)||d||"function"!=typeof fetch?i(r):fetch(D,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(r,(function(t){return w("wasm streaming compile failed: "+t),w("falling back to ArrayBuffer instantiation"),i(r)}))}))).catch(n)}(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.F).apply(null,arguments)},o._malloc=function(){return(Ee=o._malloc=o.asm.H).apply(null,arguments)}),Oe=o._free=function(){return(Oe=o._free=o.asm.I).apply(null,arguments)},Fe=o.___getTypeName=function(){return(Fe=o.___getTypeName=o.asm.J).apply(null,arguments)},Re=(o.__embind_initialize_bindings=function(){return(o.__embind_initialize_bindings=o.asm.K).apply(null,arguments)},o.stackSave=function(){return(Re=o.stackSave=o.asm.L).apply(null,arguments)}),We=o.stackRestore=function(){return(We=o.stackRestore=o.asm.M).apply(null,arguments)},Ie=o.stackAlloc=function(){return(Ie=o.stackAlloc=o.asm.N).apply(null,arguments)},De=o.___cxa_is_pointer_type=function(){return(De=o.___cxa_is_pointer_type=o.asm.O).apply(null,arguments)};function Ue(t){function r(){Se||(Se=!0,o.calledRun=!0,j||(J(z),e(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),function(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)t=o.postRun.shift(),H.unshift(t);var t;J(H)}()))}t=t||c,q>0||(function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)t=o.preRun.shift(),M.unshift(t);var t;J(M)}(),q>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),r()}),1)):r()))}if(o.dynCall_iji=function(){return(o.dynCall_iji=o.asm.P).apply(null,arguments)},o.dynCall_jji=function(){return(o.dynCall_jji=o.asm.Q).apply(null,arguments)},o.dynCall_iiji=function(){return(o.dynCall_iiji=o.asm.R).apply(null,arguments)},o.dynCall_jiji=function(){return(o.dynCall_jiji=o.asm.S).apply(null,arguments)},o.ccall=function(t,e,r,n,i){var a={string:t=>{var e=0;if(null!=t&&0!==t){var r=1+(t.length<<2);R(t,e=Ie(r),r)}return e},array:t=>{var e=Ie(t.length);return function(t,e){_.set(t,e)}(t,e),e}},s=function(t){return o["_"+t]}(t),u=[],c=0;if(n)for(var f=0;f<n.length;f++){var l=a[r[f]];l?(0===c&&(c=Re()),u[f]=l(n[f])):u[f]=n[f]}var p=s.apply(null,u);return p=function(t){return 0!==c&&We(c),function(t){return"string"===e?F(t):"boolean"===e?Boolean(t):t}(t)}(p)},L=function t(){Se||Ue(),Se||(L=t)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Ue(),t.ready});"object"==typeof e&&"object"==typeof t?t.exports=n:"function"==typeof define&&define.amd?define([],(function(){return n})):"object"==typeof e&&(e.OpenJPEGWASM=n)},9708:function(t,e){var r,n=(r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(r=r||__filename),function(t){var e,n,o=void 0!==(t=t||{})?t:{};o.ready=new Promise((function(t,r){e=t,n=r}));var i,a,s,u,c,f,l=Object.assign({},o),p=[],d="object"==typeof window,h="function"==typeof importScripts,v="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,m="";v?(m=h?require("path").dirname(m)+"/":__dirname+"/",f=()=>{c||(u=require("fs"),c=require("path"))},i=function(t,e){return f(),t=c.normalize(t),u.readFileSync(t,e?void 0:"utf8")},s=t=>{var e=i(t,!0);return e.buffer||(e=new Uint8Array(e)),e},a=(t,e,r)=>{f(),t=c.normalize(t),u.readFile(t,(function(t,n){t?r(t):e(n.buffer)}))},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),p=process.argv.slice(2),process.on("uncaughtException",(function(t){if(!(t instanceof He))throw t})),process.on("unhandledRejection",(function(t){throw t})),o.inspect=function(){return"[Emscripten Module object]"}):(d||h)&&(h?m=self.location.href:"undefined"!=typeof document&&document.currentScript&&(m=document.currentScript.src),r&&(m=r),m=0!==m.indexOf("blob:")?m.substr(0,m.replace(/[?#].*/,"").lastIndexOf("/")+1):"",i=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},h&&(s=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),a=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)});var y,g=o.print||console.log.bind(console),w=o.printErr||console.warn.bind(console);Object.assign(o,l),l=null,o.arguments&&(p=o.arguments),o.thisProgram&&o.thisProgram,o.quit&&o.quit,o.wasmBinary&&(y=o.wasmBinary);var b;o.noExitRuntime;"object"!=typeof WebAssembly&&et("no native wasm support detected");var T=!1,_="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function x(t,e,r){for(var n=e+r,o=e;t[o]&&!(o>=n);)++o;if(o-e>16&&t.subarray&&_)return _.decode(t.subarray(e,o));for(var i="";e<o;){var a=t[e++];if(128&a){var s=63&t[e++];if(192!=(224&a)){var u=63&t[e++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&t[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function P(t,e){return t?x(j,t,e):""}function C(t,e,r,n){if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a<t.length;++a){var s=t.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(r>=i)break;e[r++]=s}else if(s<=2047){if(r+1>=i)break;e[r++]=192|s>>6,e[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;e[r++]=224|s>>12,e[r++]=128|s>>6&63,e[r++]=128|63&s}else{if(r+3>=i)break;e[r++]=240|s>>18,e[r++]=128|s>>12&63,e[r++]=128|s>>6&63,e[r++]=128|63&s}}return e[r]=0,r-o}function $(t,e,r){return C(t,j,e,r)}function A(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&t.charCodeAt(++r)),n<=127?++e:e+=n<=2047?2:n<=65535?3:4}return e}var k,S,j,E,O,F,R,W,I,D="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function U(t,e){for(var r=t,n=r>>1,o=n+e/2;!(n>=o)&&O[n];)++n;if((r=n<<1)-t>32&&D)return D.decode(j.subarray(t,r));for(var i="",a=0;!(a>=e/2);++a){var s=E[t+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i}function M(t,e,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=e,o=(r-=2)<2*t.length?r/2:t.length,i=0;i<o;++i){var a=t.charCodeAt(i);E[e>>1]=a,e+=2}return E[e>>1]=0,e-n}function z(t){return 2*t.length}function H(t,e){for(var r=0,n="";!(r>=e/4);){var o=F[t+4*r>>2];if(0==o)break;if(++r,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n}function q(t,e,r){if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=e,o=n+r-4,i=0;i<t.length;++i){var a=t.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++i)),F[e>>2]=a,(e+=4)+4>o)break}return F[e>>2]=0,e-n}function V(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&++r,e+=4}return e}function L(t){var e=A(t)+1,r=We(e);return r&&C(t,S,r,e),r}function B(t){k=t,o.HEAP8=S=new Int8Array(t),o.HEAP16=E=new Int16Array(t),o.HEAP32=F=new Int32Array(t),o.HEAPU8=j=new Uint8Array(t),o.HEAPU16=O=new Uint16Array(t),o.HEAPU32=R=new Uint32Array(t),o.HEAPF32=W=new Float32Array(t),o.HEAPF64=I=new Float64Array(t)}o.INITIAL_MEMORY;var N,G,X,Y=[],J=[],Z=[],K=0,Q=null,tt=null;function et(t){o.onAbort&&o.onAbort(t),w(t="Aborted("+t+")"),T=!0,t+=". Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(t);throw n(e),e}function rt(t){return t.startsWith("data:application/octet-stream;base64,")}function nt(t){return t.startsWith("file://")}function ot(t){try{if(t==G&&y)return new Uint8Array(y);if(s)return s(t);throw"both async and sync fetching of the wasm failed"}catch(t){et(t)}}function it(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var r=e.func;"number"==typeof r?void 0===e.arg?st(r)():st(r)(e.arg):r(void 0===e.arg?null:e.arg)}else e(o)}}o.preloadedImages={},o.preloadedAudios={},rt(G="dicomiccwasm.wasm")||(X=G,G=o.locateFile?o.locateFile(X,m):m+X);var at=[];function st(t){var e=at[t];return e||(t>=at.length&&(at.length=t+1),at[t]=e=N.get(t)),e}var ut={buffers:[null,[],[]],printChar:function(t,e){var r=ut.buffers[t];0===e||10===e?((1===t?g:w)(x(r,0)),r.length=0):r.push(e)},varargs:void 0,get:function(){return ut.varargs+=4,F[ut.varargs-4>>2]},getStr:function(t){return P(t)},get64:function(t,e){return t}},ct={};function ft(t){for(;t.length;){var e=t.pop();t.pop()(e)}}function lt(t){return this.fromWireType(R[t>>2])}var pt={},dt={},ht={};function vt(t){if(void 0===t)return"_unknown";var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?"_"+t:t}function mt(t,e){return t=vt(t),new Function("body","return function "+t+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(e)}function yt(t,e){var r=mt(e,(function(t){this.name=e,this.message=t;var r=new Error(t).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var gt=void 0;function wt(t){throw new gt(t)}function bt(t,e,r){function n(e){var n=r(e);n.length!==t.length&&wt("Mismatched type converter count");for(var o=0;o<t.length;++o)$t(t[o],n[o])}t.forEach((function(t){ht[t]=e}));var o=new Array(e.length),i=[],a=0;e.forEach((function(t,e){dt.hasOwnProperty(t)?o[e]=dt[t]:(i.push(t),pt.hasOwnProperty(t)||(pt[t]=[]),pt[t].push((function(){o[e]=dt[t],++a===i.length&&n(o)})))})),0===i.length&&n(o)}function Tt(t){switch(t){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+t)}}var _t=void 0;function xt(t){for(var e="",r=t;j[r];)e+=_t[j[r++]];return e}var Pt=void 0;function Ct(t){throw new Pt(t)}function $t(t,e,r={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=e.name;if(t||Ct('type "'+n+'" must have a positive integer typeid pointer'),dt.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;Ct("Cannot register type '"+n+"' twice")}if(dt[t]=e,delete ht[t],pt.hasOwnProperty(t)){var o=pt[t];delete pt[t],o.forEach((function(t){t()}))}}function At(t){if(!(this instanceof Yt))return!1;if(!(t instanceof Yt))return!1;for(var e=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=t.$$.ptrType.registeredClass,o=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return e===n&&r===o}function kt(t){Ct(t.$$.ptrType.registeredClass.name+" instance already deleted")}var St=!1;function jt(t){}function Et(t){t.count.value-=1,0===t.count.value&&function(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)}(t)}function Ot(t,e,r){if(e===r)return t;if(void 0===r.baseClass)return null;var n=Ot(t,e,r.baseClass);return null===n?null:r.downcast(n)}var Ft={};function Rt(){return Object.keys(zt).length}function Wt(){var t=[];for(var e in zt)zt.hasOwnProperty(e)&&t.push(zt[e]);return t}var It=[];function Dt(){for(;It.length;){var t=It.pop();t.$$.deleteScheduled=!1,t.delete()}}var Ut=void 0;function Mt(t){Ut=t,It.length&&Ut&&Ut(Dt)}var zt={};function Ht(t,e){return e=function(t,e){for(void 0===e&&Ct("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e}(t,e),zt[e]}function qt(t,e){return e.ptrType&&e.ptr||wt("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&wt("Both smartPtrType and smartPtr must be specified"),e.count={value:1},Lt(Object.create(t,{$$:{value:e}}))}function Vt(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=Ht(this.registeredClass,e);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var n=r.clone();return this.destructor(t),n}function o(){return this.isSmartPointer?qt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):qt(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var i,a=this.registeredClass.getActualType(e),s=Ft[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var u=Ot(e,this.registeredClass,i.registeredClass);return null===u?o.call(this):this.isSmartPointer?qt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u,smartPtrType:this,smartPtr:t}):qt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u})}function Lt(t){return"undefined"==typeof FinalizationRegistry?(Lt=t=>t,t):(St=new FinalizationRegistry((t=>{Et(t.$$)})),Lt=t=>{var e=t.$$;if(e.smartPtr){var r={$$:e};St.register(t,r,t)}return t},jt=t=>St.unregister(t),Lt(t))}function Bt(){if(this.$$.ptr||kt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t,e=Lt(Object.create(Object.getPrototypeOf(this),{$$:{value:(t=this.$$,{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType})}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function Nt(){this.$$.ptr||kt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ct("Object already scheduled for deletion"),jt(this),Et(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Gt(){return!this.$$.ptr}function Xt(){return this.$$.ptr||kt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ct("Object already scheduled for deletion"),It.push(this),1===It.length&&Ut&&Ut(Dt),this.$$.deleteScheduled=!0,this}function Yt(){}function Jt(t,e,r){if(void 0===t[e].overloadTable){var n=t[e];t[e]=function(){return t[e].overloadTable.hasOwnProperty(arguments.length)||Ct("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+t[e].overloadTable+")!"),t[e].overloadTable[arguments.length].apply(this,arguments)},t[e].overloadTable=[],t[e].overloadTable[n.argCount]=n}}function Zt(t,e,r){o.hasOwnProperty(t)?((void 0===r||void 0!==o[t].overloadTable&&void 0!==o[t].overloadTable[r])&&Ct("Cannot register public name '"+t+"' twice"),Jt(o,t,t),o.hasOwnProperty(r)&&Ct("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),o[t].overloadTable[r]=e):(o[t]=e,void 0!==r&&(o[t].numArguments=r))}function Kt(t,e,r,n,o,i,a,s){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function Qt(t,e,r){for(;e!==r;)e.upcast||Ct("Expected null or instance of "+r.name+", got an instance of "+e.name),t=e.upcast(t),e=e.baseClass;return t}function te(t,e){if(null===e)return this.isReference&&Ct("null is not a valid "+this.name),0;e.$$||Ct('Cannot pass "'+_e(e)+'" as a '+this.name),e.$$.ptr||Ct("Cannot pass deleted object as a pointer of type "+this.name);var r=e.$$.ptrType.registeredClass;return Qt(e.$$.ptr,r,this.registeredClass)}function ee(t,e){var r;if(null===e)return this.isReference&&Ct("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;e.$$||Ct('Cannot pass "'+_e(e)+'" as a '+this.name),e.$$.ptr||Ct("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&Ct("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);var n=e.$$.ptrType.registeredClass;if(r=Qt(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&Ct("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:Ct("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var o=e.clone();r=this.rawShare(r,Te.toHandle((function(){o.delete()}))),null!==t&&t.push(this.rawDestructor,r)}break;default:Ct("Unsupporting sharing policy")}return r}function re(t,e){if(null===e)return this.isReference&&Ct("null is not a valid "+this.name),0;e.$$||Ct('Cannot pass "'+_e(e)+'" as a '+this.name),e.$$.ptr||Ct("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&Ct("Cannot convert argument of type "+e.$$.ptrType.name+" to parameter type "+this.name);var r=e.$$.ptrType.registeredClass;return Qt(e.$$.ptr,r,this.registeredClass)}function ne(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t}function oe(t){this.rawDestructor&&this.rawDestructor(t)}function ie(t){null!==t&&t.delete()}function ae(t,e,r,n,o,i,a,s,u,c,f){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,o||void 0!==e.baseClass?this.toWireType=ee:n?(this.toWireType=te,this.destructorFunction=null):(this.toWireType=re,this.destructorFunction=null)}function se(t,e,r){o.hasOwnProperty(t)||wt("Replacing nonexistant public symbol"),void 0!==o[t].overloadTable&&void 0!==r?o[t].overloadTable[r]=e:(o[t]=e,o[t].argCount=r)}function ue(t,e,r){return t.includes("j")?function(t,e,r){var n=o["dynCall_"+t];return r&&r.length?n.apply(null,[e].concat(r)):n.call(null,e)}(t,e,r):st(e).apply(null,r)}function ce(t,e){var r,n,o,i=(t=xt(t)).includes("j")?(r=t,n=e,o=[],function(){return o.length=0,Object.assign(o,arguments),ue(r,n,o)}):st(e);return"function"!=typeof i&&Ct("unknown function pointer with signature "+t+": "+e),i}var fe=void 0;function le(t){var e=De(t),r=xt(e);return Ie(e),r}function pe(t,e){var r=[],n={};throw e.forEach((function t(e){n[e]||dt[e]||(ht[e]?ht[e].forEach(t):(r.push(e),n[e]=!0))})),new fe(t+": "+r.map(le).join([", "]))}function de(t,e){for(var r=[],n=0;n<t;n++)r.push(F[(e>>2)+n]);return r}function he(t,e){if(!(t instanceof Function))throw new TypeError("new_ called with constructor type "+typeof t+" which is not a function");var r=mt(t.name||"unknownFunctionName",(function(){}));r.prototype=t.prototype;var n=new r,o=t.apply(n,e);return o instanceof Object?o:n}function ve(t,e,r,n,o){var i=e.length;i<2&&Ct("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==e[1]&&null!==r,s=!1,u=1;u<e.length;++u)if(null!==e[u]&&void 0===e[u].destructorFunction){s=!0;break}var c="void"!==e[0].name,f="",l="";for(u=0;u<i-2;++u)f+=(0!==u?", ":"")+"arg"+u,l+=(0!==u?", ":"")+"arg"+u+"Wired";var p="return function "+vt(t)+"("+f+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+t+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";s&&(p+="var destructors = [];\n");var d=s?"destructors":"null",h=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[Ct,n,o,ft,e[0],e[1]];for(a&&(p+="var thisWired = classParam.toWireType("+d+", this);\n"),u=0;u<i-2;++u)p+="var arg"+u+"Wired = argType"+u+".toWireType("+d+", arg"+u+"); // "+e[u+2].name+"\n",h.push("argType"+u),v.push(e[u+2]);if(a&&(l="thisWired"+(l.length>0?", ":"")+l),p+=(c?"var rv = ":"")+"invoker(fn"+(l.length>0?", ":"")+l+");\n",s)p+="runDestructors(destructors);\n";else for(u=a?1:2;u<e.length;++u){var m=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==e[u].destructorFunction&&(p+=m+"_dtor("+m+"); // "+e[u].name+"\n",h.push(m+"_dtor"),v.push(e[u].destructorFunction))}return c&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",h.push(p),he(Function,h).apply(null,v)}var me=[],ye=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function ge(t){t>4&&0==--ye[t].refcount&&(ye[t]=void 0,me.push(t))}function we(){for(var t=0,e=5;e<ye.length;++e)void 0!==ye[e]&&++t;return t}function be(){for(var t=5;t<ye.length;++t)if(void 0!==ye[t])return ye[t];return null}var Te={toValue:function(t){return t||Ct("Cannot use deleted val. handle = "+t),ye[t].value},toHandle:function(t){switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=me.length?me.pop():ye.length;return ye[e]={refcount:1,value:t},e}}};function _e(t){if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t}function xe(t,e){switch(e){case 2:return function(t){return this.fromWireType(W[t>>2])};case 3:return function(t){return this.fromWireType(I[t>>3])};default:throw new TypeError("Unknown float type: "+t)}}function Pe(t,e,r){switch(e){case 0:return r?function(t){return S[t]}:function(t){return j[t]};case 1:return r?function(t){return E[t>>1]}:function(t){return O[t>>1]};case 2:return r?function(t){return F[t>>2]}:function(t){return R[t>>2]};default:throw new TypeError("Unknown integer type: "+t)}}function Ce(t,e){var r=dt[t];return void 0===r&&Ct(e+" has unknown type "+le(t)),r}var $e={};function Ae(t){var e=$e[t];return void 0===e?xt(t):e}var ke=[];function Se(){return"object"==typeof globalThis?globalThis:Function("return this")()}var je=[],Ee={};function Oe(t){try{return b.grow(t-k.byteLength+65535>>>16),B(b.buffer),1}catch(t){}}gt=o.InternalError=yt(Error,"InternalError"),function(){for(var t=new Array(256),e=0;e<256;++e)t[e]=String.fromCharCode(e);_t=t}(),Pt=o.BindingError=yt(Error,"BindingError"),Yt.prototype.isAliasOf=At,Yt.prototype.clone=Bt,Yt.prototype.delete=Nt,Yt.prototype.isDeleted=Gt,Yt.prototype.deleteLater=Xt,o.getInheritedInstanceCount=Rt,o.getLiveInheritedInstances=Wt,o.flushPendingDeletes=Dt,o.setDelayFunction=Mt,ae.prototype.getPointee=ne,ae.prototype.destructor=oe,ae.prototype.argPackAdvance=8,ae.prototype.readValueFromPointer=lt,ae.prototype.deleteObject=ie,ae.prototype.fromWireType=Vt,fe=o.UnboundTypeError=yt(Error,"UnboundTypeError"),o.count_emval_handles=we,o.get_first_emval=be;var Fe,Re={a:function(t,e,r,n){et("Assertion failed: "+P(t)+", at: "+[e?P(e):"unknown filename",r,n?P(n):"unknown function"])},j:function(t,e,r){return ut.varargs=r,0},A:function(t,e,r){return ut.varargs=r,0},B:function(t,e,r){ut.varargs=r},w:function(t){},x:function(t){},D:function(t){var e=ct[t];delete ct[t];var r=e.rawConstructor,n=e.rawDestructor,o=e.fields;bt([t],o.map((function(t){return t.getterReturnType})).concat(o.map((function(t){return t.setterArgumentType}))),(function(t){var i={};return o.forEach((function(e,r){var n=e.fieldName,a=t[r],s=e.getter,u=e.getterContext,c=t[r+o.length],f=e.setter,l=e.setterContext;i[n]={read:function(t){return a.fromWireType(s(u,t))},write:function(t,e){var r=[];f(l,t,c.toWireType(r,e)),ft(r)}}})),[{name:e.name,fromWireType:function(t){var e={};for(var r in i)e[r]=i[r].read(t);return n(t),e},toWireType:function(t,e){for(var o in i)if(!(o in e))throw new TypeError('Missing field: "'+o+'"');var a=r();for(o in i)i[o].write(a,e[o]);return null!==t&&t.push(n,a),a},argPackAdvance:8,readValueFromPointer:lt,destructorFunction:n}]}))},s:function(t,e,r,n,o){},H:function(t,e,r,n,o){var i=Tt(r);$t(t,{name:e=xt(e),fromWireType:function(t){return!!t},toWireType:function(t,e){return e?n:o},argPackAdvance:8,readValueFromPointer:function(t){var n;if(1===r)n=S;else if(2===r)n=E;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+e);n=F}return this.fromWireType(n[t>>i])},destructorFunction:null})},u:function(t,e,r,n,o,i,a,s,u,c,f,l,p){f=xt(f),i=ce(o,i),s&&(s=ce(a,s)),c&&(c=ce(u,c)),p=ce(l,p);var d=vt(f);Zt(d,(function(){pe("Cannot construct "+f+" due to unbound types",[n])})),bt([t,e,r],n?[n]:[],(function(e){var r,o;e=e[0],o=n?(r=e.registeredClass).instancePrototype:Yt.prototype;var a=mt(d,(function(){if(Object.getPrototypeOf(this)!==u)throw new Pt("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new Pt(f+" has no accessible constructor");var t=l.constructor_body[arguments.length];if(void 0===t)throw new Pt("Tried to invoke ctor of "+f+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(l.constructor_body).toString()+") parameters instead!");return t.apply(this,arguments)})),u=Object.create(o,{constructor:{value:a}});a.prototype=u;var l=new Kt(f,a,u,p,r,i,s,c),h=new ae(f,l,!0,!1,!1),v=new ae(f+"*",l,!1,!1,!1),m=new ae(f+" const*",l,!1,!0,!1);return Ft[t]={pointerType:v,constPointerType:m},se(d,a),[h,v,m]}))},q:function(t,e,r,n,o,i){var a;e>0||et(a);var s=de(e,r);o=ce(n,o),bt([],[t],(function(t){var r="constructor "+(t=t[0]).name;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new Pt("Cannot register multiple constructors with identical number of parameters ("+(e-1)+") for class '"+t.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return t.registeredClass.constructor_body[e-1]=()=>{pe("Cannot construct "+t.name+" due to unbound types",s)},bt([],s,(function(n){return n.splice(1,0,null),t.registeredClass.constructor_body[e-1]=ve(r,n,null,o,i),[]})),[]}))},g:function(t,e,r,n,o,i,a,s){var u=de(r,n);e=xt(e),i=ce(o,i),bt([],[t],(function(t){var n=(t=t[0]).name+"."+e;function o(){pe("Cannot call "+n+" due to unbound types",u)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(e);var c=t.registeredClass.instancePrototype,f=c[e];return void 0===f||void 0===f.overloadTable&&f.className!==t.name&&f.argCount===r-2?(o.argCount=r-2,o.className=t.name,c[e]=o):(Jt(c,e,n),c[e].overloadTable[r-2]=o),bt([],u,(function(o){var s=ve(n,o,t,i,a);return void 0===c[e].overloadTable?(s.argCount=r-2,c[e]=s):c[e].overloadTable[r-2]=s,[]})),[]}))},G:function(t,e){$t(t,{name:e=xt(e),fromWireType:function(t){var e=Te.toValue(t);return ge(t),e},toWireType:function(t,e){return Te.toHandle(e)},argPackAdvance:8,readValueFromPointer:lt,destructorFunction:null})},k:function(t,e,r){var n=Tt(r);$t(t,{name:e=xt(e),fromWireType:function(t){return t},toWireType:function(t,e){return e},argPackAdvance:8,readValueFromPointer:xe(e,n),destructorFunction:null})},n:function(t,e,r,n,o,i){var a=de(e,r);t=xt(t),o=ce(n,o),Zt(t,(function(){pe("Cannot call "+t+" due to unbound types",a)}),e-1),bt([],a,(function(r){var n=[r[0],null].concat(r.slice(1));return se(t,ve(t,n,null,o,i),e-1),[]}))},c:function(t,e,r,n,o){e=xt(e),-1===o&&(o=4294967295);var i=Tt(r),a=t=>t;if(0===n){var s=32-8*r;a=t=>t<<s>>>s}var u=e.includes("unsigned");$t(t,{name:e,fromWireType:a,toWireType:u?function(t,e){return this.name,e>>>0}:function(t,e){return this.name,e},argPackAdvance:8,readValueFromPointer:Pe(e,i,0!==n),destructorFunction:null})},b:function(t,e,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function o(t){var e=R,r=e[t>>=2],o=e[t+1];return new n(k,o,r)}$t(t,{name:r=xt(r),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},l:function(t,e){var r="std::string"===(e=xt(e));$t(t,{name:e,fromWireType:function(t){var e,n=R[t>>2];if(r)for(var o=t+4,i=0;i<=n;++i){var a=t+4+i;if(i==n||0==j[a]){var s=P(o,a-o);void 0===e?e=s:(e+=String.fromCharCode(0),e+=s),o=a+1}}else{var u=new Array(n);for(i=0;i<n;++i)u[i]=String.fromCharCode(j[t+4+i]);e=u.join("")}return Ie(t),e},toWireType:function(t,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||Ct("Cannot pass non-string to std::string");var o=(r&&n?()=>A(e):()=>e.length)(),i=We(4+o+1);if(R[i>>2]=o,r&&n)$(e,i+4,o+1);else if(n)for(var a=0;a<o;++a){var s=e.charCodeAt(a);s>255&&(Ie(i),Ct("String has UTF-16 code units that do not fit in 8 bits")),j[i+4+a]=s}else for(a=0;a<o;++a)j[i+4+a]=e[a];return null!==t&&t.push(Ie,i),i},argPackAdvance:8,readValueFromPointer:lt,destructorFunction:function(t){Ie(t)}})},f:function(t,e,r){var n,o,i,a,s;r=xt(r),2===e?(n=U,o=M,a=z,i=()=>O,s=1):4===e&&(n=H,o=q,a=V,i=()=>R,s=2),$t(t,{name:r,fromWireType:function(t){for(var r,o=R[t>>2],a=i(),u=t+4,c=0;c<=o;++c){var f=t+4+c*e;if(c==o||0==a[f>>s]){var l=n(u,f-u);void 0===r?r=l:(r+=String.fromCharCode(0),r+=l),u=f+e}}return Ie(t),r},toWireType:function(t,n){"string"!=typeof n&&Ct("Cannot pass non-string to C++ string type "+r);var i=a(n),u=We(4+i+e);return R[u>>2]=i>>s,o(n,u+4,i+e),null!==t&&t.push(Ie,u),u},argPackAdvance:8,readValueFromPointer:lt,destructorFunction:function(t){Ie(t)}})},R:function(t,e,r,n,o,i){ct[t]={name:xt(e),rawConstructor:ce(r,n),rawDestructor:ce(o,i),fields:[]}},e:function(t,e,r,n,o,i,a,s,u,c){ct[t].fields.push({fieldName:xt(e),getterReturnType:r,getter:ce(n,o),getterContext:i,setterArgumentType:a,setter:ce(s,u),setterContext:c})},I:function(t,e){$t(t,{isVoid:!0,name:e=xt(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(t,e){}})},O:function(t,e,r){t=Te.toValue(t),e=Ce(e,"emval::as");var n=[],o=Te.toHandle(n);return F[r>>2]=o,e.toWireType(n,t)},K:function(t,e,r,n){(t=ke[t])(e=Te.toValue(e),r=Ae(r),null,n)},d:ge,p:function(t){return 0===t?Te.toHandle(Se()):(t=Ae(t),Te.toHandle(Se()[t]))},L:function(t,e){var r=function(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=Ce(F[(e>>2)+n],"parameter "+n);return r}(t,e),n=r[0],o=n.name+"_$"+r.slice(1).map((function(t){return t.name})).join("_")+"$",i=je[o];if(void 0!==i)return i;for(var a=["retType"],s=[n],u="",c=0;c<t-1;++c)u+=(0!==c?", ":"")+"arg"+c,a.push("argType"+c),s.push(r[1+c]);var f="return function "+vt("methodCaller_"+o)+"(handle, name, destructors, args) {\n",l=0;for(c=0;c<t-1;++c)f+=" var arg"+c+" = argType"+c+".readValueFromPointer(args"+(l?"+"+l:"")+");\n",l+=r[c+1].argPackAdvance;for(f+=" var rv = handle[name]("+u+");\n",c=0;c<t-1;++c)r[c+1].deleteObject&&(f+=" argType"+c+".deleteObject(arg"+c+");\n");n.isVoid||(f+=" return retType.toWireType(destructors, rv);\n"),f+="};\n",a.push(f);var p,d,h=he(Function,a).apply(null,s);return p=h,d=ke.length,ke.push(p),i=d,je[o]=i,i},P:function(t,e){return t=Te.toValue(t),e=Te.toValue(e),Te.toHandle(t[e])},m:function(t){t>4&&(ye[t].refcount+=1)},o:function(t,e,r,n){t=Te.toValue(t);var i=Ee[e];return i||(i=function(t){for(var e="",r=0;r<t;++r)e+=(0!==r?", ":"")+"arg"+r;var n="return function emval_allocator_"+t+"(constructor, argTypes, args) {\n";for(r=0;r<t;++r)n+="var argType"+r+" = requireRegisteredType(Module['HEAP32'][(argTypes >>> 2) + "+r+'], "parameter '+r+'");\nvar arg'+r+" = argType"+r+".readValueFromPointer(args);\nargs += argType"+r+"['argPackAdvance'];\n";return n+="var obj = new constructor("+e+");\nreturn valueToHandle(obj);\n}\n",new Function("requireRegisteredType","Module","valueToHandle",n)(Ce,o,Te.toHandle)}(e),Ee[e]=i),i(t,r,n)},Q:function(t){return Te.toHandle(Ae(t))},N:function(t){ft(Te.toValue(t)),ge(t)},M:function(t,e){var r=(t=Ce(t,"_emval_take_value")).readValueFromPointer(e);return Te.toHandle(r)},C:function(t,e){var r=new Date(1e3*F[t>>2]);F[e>>2]=r.getUTCSeconds(),F[e+4>>2]=r.getUTCMinutes(),F[e+8>>2]=r.getUTCHours(),F[e+12>>2]=r.getUTCDate(),F[e+16>>2]=r.getUTCMonth(),F[e+20>>2]=r.getUTCFullYear()-1900,F[e+24>>2]=r.getUTCDay();var n=Date.UTC(r.getUTCFullYear(),0,1,0,0,0,0),o=(r.getTime()-n)/864e5|0;F[e+28>>2]=o},E:function t(e,r,n){t.called||(t.called=!0,function(t,e,r){var n=(new Date).getFullYear(),o=new Date(n,0,1),i=new Date(n,6,1),a=o.getTimezoneOffset(),s=i.getTimezoneOffset(),u=Math.max(a,s);function c(t){var e=t.toTimeString().match(/\(([A-Za-z ]+)\)$/);return e?e[1]:"GMT"}F[t>>2]=60*u,F[e>>2]=Number(a!=s);var f=c(o),l=c(i),p=L(f),d=L(l);s<a?(F[r>>2]=p,F[r+4>>2]=d):(F[r>>2]=d,F[r+4>>2]=p)}(e,r,n))},h:function(){et("")},F:function(t,e,r){j.copyWithin(t,e,e+r)},v:function(t){var e,r,n=j.length,o=2147483648;if((t>>>=0)>o)return!1;for(var i=1;i<=4;i*=2){var a=n*(1+.2/i);if(a=Math.min(a,t+100663296),Oe(Math.min(o,((e=Math.max(t,a))%(r=65536)>0&&(e+=r-e%r),e))))return!0}return!1},i:function(t){return 0},z:function(t,e,r,n){var o=ut.getStreamFromFD(t),i=ut.doReadv(o,e,r);return F[n>>2]=i,0},r:function(t,e,r,n,o){},y:function(t,e,r,n){for(var o=0,i=0;i<r;i++){var a=F[e>>2],s=F[e+4>>2];e+=8;for(var u=0;u<s;u++)ut.printChar(t,j[a+u]);o+=s}return F[n>>2]=o,0},t:function(t){},J:function(t){var e=Date.now()/1e3|0;return t&&(F[t>>2]=e),e}},We=(function(){var t={a:Re};function e(t,e){var r,n=t.exports;o.asm=n,B((b=o.asm.S).buffer),N=o.asm.V,r=o.asm.T,J.unshift(r),function(t){if(K--,o.monitorRunDependencies&&o.monitorRunDependencies(K),0==K&&(null!==Q&&(clearInterval(Q),Q=null),tt)){var e=tt;tt=null,e()}}()}function r(t){e(t.instance)}function i(e){return function(){if(!y&&(d||h)){if("function"==typeof fetch&&!nt(G))return fetch(G,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+G+"'";return t.arrayBuffer()})).catch((function(){return ot(G)}));if(a)return new Promise((function(t,e){a(G,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return ot(G)}))}().then((function(e){return WebAssembly.instantiate(e,t)})).then((function(t){return t})).then(e,(function(t){w("failed to asynchronously prepare wasm: "+t),et(t)}))}if(K++,o.monitorRunDependencies&&o.monitorRunDependencies(K),o.instantiateWasm)try{return o.instantiateWasm(t,e)}catch(t){return w("Module.instantiateWasm callback failed with error: "+t),!1}(y||"function"!=typeof WebAssembly.instantiateStreaming||rt(G)||nt(G)||"function"!=typeof fetch?i(r):fetch(G,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(r,(function(t){return w("wasm streaming compile failed: "+t),w("falling back to ArrayBuffer instantiation"),i(r)}))}))).catch(n)}(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.T).apply(null,arguments)},o._malloc=function(){return(We=o._malloc=o.asm.U).apply(null,arguments)}),Ie=o._free=function(){return(Ie=o._free=o.asm.W).apply(null,arguments)},De=o.___getTypeName=function(){return(De=o.___getTypeName=o.asm.X).apply(null,arguments)},Ue=(o.___embind_register_native_and_builtin_types=function(){return(o.___embind_register_native_and_builtin_types=o.asm.Y).apply(null,arguments)},o.stackSave=function(){return(Ue=o.stackSave=o.asm.Z).apply(null,arguments)}),Me=o.stackRestore=function(){return(Me=o.stackRestore=o.asm._).apply(null,arguments)},ze=o.stackAlloc=function(){return(ze=o.stackAlloc=o.asm.$).apply(null,arguments)};function He(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function qe(t){function r(){Fe||(Fe=!0,o.calledRun=!0,T||(it(J),e(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),function(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)t=o.postRun.shift(),Z.unshift(t);var t;it(Z)}()))}t=t||p,K>0||(function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)t=o.preRun.shift(),Y.unshift(t);var t;it(Y)}(),K>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),r()}),1)):r()))}if(o.dynCall_jiji=function(){return(o.dynCall_jiji=o.asm.aa).apply(null,arguments)},o.ccall=function(t,e,r,n,i){var a={string:function(t){var e=0;if(null!=t&&0!==t){var r=1+(t.length<<2);$(t,e=ze(r),r)}return e},array:function(t){var e=ze(t.length);return function(t,e){S.set(t,e)}(t,e),e}},s=function(t){return o["_"+t]}(t),u=[],c=0;if(n)for(var f=0;f<n.length;f++){var l=a[r[f]];l?(0===c&&(c=Ue()),u[f]=l(n[f])):u[f]=n[f]}var p=s.apply(null,u);return p=function(t){return 0!==c&&Me(c),function(t){return"string"===e?P(t):"boolean"===e?Boolean(t):t}(t)}(p)},tt=function t(){Fe||qe(),Fe||(tt=t)},o.run=qe,o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return qe(),t.ready});"object"==typeof e&&"object"==typeof t?t.exports=n:"function"==typeof define&&define.amd?define([],(function(){return n})):"object"==typeof e&&(e.dicomicc=n)},3476:module=>{"use strict";const toBytes=t=>[...t].map((t=>t.charCodeAt(0))),xpiZipFilename=toBytes("META-INF/mozilla.rsa"),oxmlContentTypes=toBytes("[Content_Types].xml"),oxmlRels=toBytes("_rels/.rels");function readUInt64LE(t,e=0){let r=t[e],n=1,o=0;for(;++o<8;)n*=256,r+=t[e+o]*n;return r}const fileType=t=>{if(!(t instanceof Uint8Array||t instanceof ArrayBuffer||Buffer.isBuffer(t)))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof t}\``);const e=t instanceof Uint8Array?t:new Uint8Array(t);if(!(e&&e.length>1))return null;const r=(t,r)=>{r=Object.assign({offset:0},r);for(let n=0;n<t.length;n++)if(r.mask){if(t[n]!==(r.mask[n]&e[n+r.offset]))return!1}else if(t[n]!==e[n+r.offset])return!1;return!0},n=(t,e)=>r(toBytes(t),e);if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])){if(r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r(xpiZipFilename,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(n("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30}))return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};if(n("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30}))return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};if(n("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30}))return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};const t=(t,e=0)=>t.findIndex(((t,r,n)=>r>=e&&80===n[r]&&75===n[r+1]&&3===n[r+2]&&4===n[r+3]));let o=0,i=!1,a=null;do{const s=o+30;if(i||(i=r(oxmlContentTypes,{offset:s})||r(oxmlRels,{offset:s})),a||(n("word/",{offset:s})?a={ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}:n("ppt/",{offset:s})?a={ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}:n("xl/",{offset:s})&&(a={ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})),i&&a)return a;o=t(e,s)}while(o>=0);if(a)return a}if(r([80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3]))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(0===e[6]||1===e[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([51,103,112,53])||r([0,0,0])&&r([102,116,121,112],{offset:4})&&(r([109,112,52,49],{offset:8})||r([109,112,52,50],{offset:8})||r([105,115,111,109],{offset:8})||r([105,115,111,50],{offset:8})||r([109,109,112,52],{offset:8})||r([77,52,86],{offset:8})||r([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){const t=e.subarray(4,4100),r=t.findIndex(((t,e,r)=>66===r[e]&&130===r[e+1]));if(-1!==r){const e=r+3,n=r=>[...r].every(((r,n)=>t[e+n]===r.charCodeAt(0)));if(n("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(n("webm"))return{ext:"webm",mime:"video/webm"}}}if(r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([109,111,111,118],{offset:4})||r([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(r([82,73,70,70])){if(r([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(r([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(r([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(r([48,38,178,117,142,102,207,17,166,217])){let t=30;do{const n=readUInt64LE(e,t+16);if(r([145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101],{offset:t})){if(r([64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43],{offset:t+24}))return{ext:"wma",mime:"audio/x-ms-wma"};if(r([192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43],{offset:t+24}))return{ext:"wmv",mime:"video/x-ms-asf"};break}t+=n}while(t+24<=e.length);return{ext:"asf",mime:"application/vnd.ms-asf"}}if(r([0,0,1,186])||r([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(r([102,116,121,112,51,103],{offset:4}))return{ext:"3gp",mime:"video/3gpp"};for(let t=0;t<2&&t<e.length-16;t++){if(r([73,68,51],{offset:t})||r([255,226],{offset:t,mask:[255,226]}))return{ext:"mp3",mime:"audio/mpeg"};if(r([255,228],{offset:t,mask:[255,228]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([255,248],{offset:t,mask:[255,252]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([255,240],{offset:t,mask:[255,252]}))return{ext:"mp4",mime:"audio/mpeg"}}if(r([102,116,121,112,77,52,65],{offset:4}))return{ext:"m4a",mime:"audio/mp4"};if(r([79,112,117,115,72,101,97,100],{offset:28}))return{ext:"opus",mime:"audio/opus"};if(r([79,103,103,83]))return r([128,116,104,101,111,114,97],{offset:28})?{ext:"ogv",mime:"video/ogg"}:r([1,118,105,100,101,111,0],{offset:28})?{ext:"ogm",mime:"video/ogg"}:r([127,70,76,65,67],{offset:28})?{ext:"oga",mime:"audio/ogg"}:r([83,112,101,101,120,32,32],{offset:28})?{ext:"spx",mime:"audio/ogg"}:r([1,118,111,114,98,105,115],{offset:28})?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"};if(r([102,76,97,67]))return{ext:"flac",mime:"audio/x-flac"};if(r([77,65,67,32]))return{ext:"ape",mime:"audio/ape"};if(r([119,118,112,107]))return{ext:"wv",mime:"audio/wavpack"};if(r([35,33,65,77,82,10]))return{ext:"amr",mime:"audio/amr"};if(r([37,80,68,70]))return{ext:"pdf",mime:"application/pdf"};if(r([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if((67===e[0]||70===e[0])&&r([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(r([123,92,114,116,102]))return{ext:"rtf",mime:"application/rtf"};if(r([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4})))return{ext:"woff",mime:"font/woff"};if(r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(r([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(r([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(r([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(r([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(r([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(r([37,33]))return{ext:"ps",mime:"application/postscript"};if(r([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(r([83,81,76,105]))return{ext:"sqlite",mime:"application/x-sqlite3"};if(r([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(r([67,114,50,52]))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(r([77,83,67,70])||r([73,83,99,40]))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121]))return{ext:"deb",mime:"application/x-deb"};if(r([33,60,97,114,99,104,62]))return{ext:"ar",mime:"application/x-unix-archive"};if(r([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(r([31,160])||r([31,157]))return{ext:"Z",mime:"application/x-compress"};if(r([76,90,73,80]))return{ext:"lz",mime:"application/x-lzip"};if(r([208,207,17,224,161,177,26,225]))return{ext:"msi",mime:"application/x-msi"};if(r([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(r([66,76,69,78,68,69,82]))return{ext:"blend",mime:"application/x-blender"};if(r([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(r([0,0,0,12,106,80,32,32,13,10,135,10])){if(r([106,112,50,32],{offset:20}))return{ext:"jp2",mime:"image/jp2"};if(r([106,112,120,32],{offset:20}))return{ext:"jpx",mime:"image/jpx"};if(r([106,112,109,32],{offset:20}))return{ext:"jpm",mime:"image/jpm"};if(r([109,106,112,50],{offset:20}))return{ext:"mj2",mime:"image/mj2"}}if(r([70,79,82,77]))return{ext:"aif",mime:"audio/aiff"};if(n("<?xml "))return{ext:"xml",mime:"application/xml"};if(r([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(r([102,116,121,112],{offset:4})){if(r([109,105,102,49],{offset:8}))return{ext:"heic",mime:"image/heif"};if(r([109,115,102,49],{offset:8}))return{ext:"heic",mime:"image/heif-sequence"};if(r([104,101,105,99],{offset:8})||r([104,101,105,120],{offset:8}))return{ext:"heic",mime:"image/heic"};if(r([104,101,118,99],{offset:8})||r([104,101,118,120],{offset:8}))return{ext:"heic",mime:"image/heic-sequence"}}return r([171,75,84,88,32,49,49,187,13,10,26,10])?{ext:"ktx",mime:"image/ktx"}:r([68,73,67,77],{offset:128})?{ext:"dcm",mime:"application/dicom"}:r([77,80,43])||r([77,80,67,75])?{ext:"mpc",mime:"audio/x-musepack"}:r([66,69,71,73,78,58])?{ext:"ics",mime:"text/calendar"}:r([103,108,84,70,2,0,0,0])?{ext:"glb",mime:"model/gltf-binary"}:r([212,195,178,161])||r([161,178,195,212])?{ext:"pcap",mime:"application/vnd.tcpdump.pcap"}:null};module.exports=fileType,module.exports.default=fileType,Object.defineProperty(fileType,"minimumBytes",{value:4100}),module.exports.stream=readableStream=>new Promise(((resolve,reject)=>{const stream=eval("require")("stream");readableStream.once("readable",(()=>{const t=new stream.PassThrough,e=readableStream.read(module.exports.minimumBytes)||readableStream.read();try{t.fileType=fileType(e)}catch(t){reject(t)}readableStream.unshift(e),stream.pipeline?resolve(stream.pipeline(readableStream,t,(()=>{}))):resolve(readableStream.pipe(t))}))}))},7e3:(t,e,r)=>{"use strict";const n=r(3476),o=new Set(["jpg","png","gif","webp","flif","cr2","tif","bmp","jxr","psd","ico","bpg","jp2","jpm","jpx","heic","cur","dcm"]),i=t=>{const e=n(t);return o.has(e&&e.ext)?e:null};t.exports=i,t.exports.default=i,Object.defineProperty(i,"minimumBytes",{value:n.minimumBytes})},3521:function(t,e,r){t.exports=r.p+"5004fdc02f329ce53b69.wasm"},2491:function(t,e,r){t.exports=r.p+"c22b37c3488e1d6c3aa4.wasm"},3621:function(t,e,r){t.exports=r.p+"65916ef3def695744bda.wasm"},2614:function(t,e,r){t.exports=r.p+"b6b803111e2d06a825bd.wasm"},2997:(t,e,r)=>{t.exports=r(3219)},6463:(t,e,r)=>{t.exports=r(2603)},3356:(t,e,r)=>{t.exports=r(2274)},9845:(t,e,r)=>{t.exports=r(7754)},4317:(t,e,r)=>{"use strict";var n=r(9565),o=r(8428),i=String.prototype;t.exports=function(t){var e=t.endsWith;return"string"==typeof t||t===i||n(i,t)&&e===i.endsWith?o:e}},3477:(t,e,r)=>{"use strict";var n=r(9565),o=r(8255),i=String.prototype;t.exports=function(t){var e=t.padStart;return"string"==typeof t||t===i||n(i,t)&&e===i.padStart?o:e}},98:(t,e,r)=>{"use strict";r(8362),r(3413),r(7784),r(778),r(4730),r(2729),r(7303),r(5437),r(3603);var n=r(8613);t.exports=n.Promise},2193:(t,e,r)=>{"use strict";r(3413),r(7784),r(340),r(2451),r(6174),r(8793),r(2330),r(8361),r(322),r(7368),r(3603);var n=r(8613);t.exports=n.Set},8428:(t,e,r)=>{"use strict";r(3506);var n=r(8816);t.exports=n("String","endsWith")},8255:(t,e,r)=>{"use strict";r(8745);var n=r(8816);t.exports=n("String","padStart")},2889:(t,e,r)=>{"use strict";var n=r(8804),o=r(1394),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},9618:(t,e,r)=>{"use strict";var n=r(7382),o=r(1394),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a constructor")}},7986:(t,e,r)=>{"use strict";var n=r(977),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},3637:(t,e,r)=>{"use strict";var n=r(1394),o=TypeError;t.exports=function(t){if("object"==typeof t&&"size"in t&&"has"in t&&"add"in t&&"delete"in t&&"keys"in t)return t;throw new o(n(t)+" is not a set")}},7478:t=>{"use strict";t.exports=function(){}},1385:(t,e,r)=>{"use strict";var n=r(9565),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new o("Incorrect invocation")}},1506:(t,e,r)=>{"use strict";var n=r(8046),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},3582:(t,e,r)=>{"use strict";var n=r(458);t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},9333:(t,e,r)=>{"use strict";var n=r(300),o=r(2048),i=r(7079),a=function(t){return function(e,r,a){var s=n(e),u=i(s);if(0===u)return!t&&-1;var c,f=o(a,u);if(t&&r!=r){for(;u>f;)if((c=s[f++])!=c)return!0}else for(;u>f;f++)if((t||f in s)&&s[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},1098:(t,e,r)=>{"use strict";var n=r(6698),o=r(1781),i=r(2529),a=r(3199),s=r(7079),u=r(4857),c=o([].push),f=function(t){var e=1===t,r=2===t,o=3===t,f=4===t,l=6===t,p=7===t,d=5===t||l;return function(h,v,m,y){for(var g,w,b=a(h),T=i(b),_=s(T),x=n(v,m),P=0,C=y||u,$=e?C(h,_):r||p?C(h,0):void 0;_>P;P++)if((d||P in T)&&(w=x(g=T[P],P,b),t))if(e)$[P]=w;else if(w)switch(t){case 3:return!0;case 5:return g;case 6:return P;case 2:c($,g)}else switch(t){case 4:return!1;case 7:c($,g)}return l?-1:o||f?f:$}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},7943:(t,e,r)=>{"use strict";var n=r(1781);t.exports=n([].slice)},3511:(t,e,r)=>{"use strict";var n=r(1367),o=r(7382),i=r(8046),a=r(7549)("species"),s=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(o(e)&&(e===s||n(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},4857:(t,e,r)=>{"use strict";var n=r(3511);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},8645:t=>{"use strict";t.exports=function(t,e){return 1===e?function(e,r){return e[t](r)}:function(e,r,n){return e[t](r,n)}}},8972:(t,e,r)=>{"use strict";var n=r(7549)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(t){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},3179:(t,e,r)=>{"use strict";var n=r(1781),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},2377:(t,e,r)=>{"use strict";var n=r(1352),o=r(8804),i=r(3179),a=r(7549)("toStringTag"),s=Object,u="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?r:u?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},7110:(t,e,r)=>{"use strict";var n=r(5963),o=r(6999),i=r(211),a=r(6698),s=r(1385),u=r(9330),c=r(4783),f=r(6775),l=r(948),p=r(4954),d=r(3870),h=r(714).fastKey,v=r(7233),m=v.set,y=v.getterFor;t.exports={getConstructor:function(t,e,r,f){var l=t((function(t,o){s(t,p),m(t,{type:e,index:n(null),first:void 0,last:void 0,size:0}),d||(t.size=0),u(o)||c(o,t[f],{that:t,AS_ENTRIES:r})})),p=l.prototype,v=y(e),g=function(t,e,r){var n,o,i=v(t),a=w(t,e);return a?a.value=r:(i.last=a={index:o=h(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),d?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},w=function(t,e){var r,n=v(t),o=h(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return i(p,{clear:function(){for(var t=v(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),e=e.next;t.first=t.last=void 0,t.index=n(null),d?t.size=0:this.size=0},delete:function(t){var e=this,r=v(e),n=w(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),d?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=v(this),n=a(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!w(this,t)}}),i(p,r?{get:function(t){var e=w(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),d&&o(p,"size",{configurable:!0,get:function(){return v(this).size}}),l},setStrong:function(t,e,r){var n=e+" Iterator",o=y(e),i=y(n);f(t,e,(function(t,e){m(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?l("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=void 0,l(void 0,!0))}),r?"entries":"values",!r,!0),p(e)}}},1045:(t,e,r)=>{"use strict";var n=r(7153),o=r(8781),i=r(714),a=r(458),s=r(8266),u=r(4783),c=r(1385),f=r(8804),l=r(8046),p=r(9330),d=r(2979),h=r(4574).f,v=r(1098).forEach,m=r(3870),y=r(7233),g=y.set,w=y.getterFor;t.exports=function(t,e,r){var y,b=-1!==t.indexOf("Map"),T=-1!==t.indexOf("Weak"),_=b?"set":"add",x=o[t],P=x&&x.prototype,C={};if(m&&f(x)&&(T||P.forEach&&!a((function(){(new x).entries().next()})))){var $=(y=e((function(e,r){g(c(e,$),{type:t,collection:new x}),p(r)||u(r,e[_],{that:e,AS_ENTRIES:b})}))).prototype,A=w(t);v(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"===t||"set"===t;!(t in P)||T&&"clear"===t||s($,t,(function(r,n){var o=A(this).collection;if(!e&&T&&!l(r))return"get"===t&&void 0;var i=o[t](0===r?0:r,n);return e?this:i}))})),T||h($,"size",{configurable:!0,get:function(){return A(this).collection.size}})}else y=r.getConstructor(e,t,b,_),i.enable();return d(y,t,!1,!0),C[t]=y,n({global:!0,forced:!0},C),T||r.setStrong(y,t,b),y}},1621:(t,e,r)=>{"use strict";var n=r(4511),o=r(9686),i=r(8805),a=r(4574);t.exports=function(t,e,r){for(var s=o(e),u=a.f,c=i.f,f=0;f<s.length;f++){var l=s[f];n(t,l)||r&&n(r,l)||u(t,l,c(e,l))}}},8153:(t,e,r)=>{"use strict";var n=r(7549)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},5580:(t,e,r)=>{"use strict";var n=r(458);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},948:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},8266:(t,e,r)=>{"use strict";var n=r(3870),o=r(4574),i=r(8435);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},8435:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6999:(t,e,r)=>{"use strict";var n=r(4574);t.exports=function(t,e,r){return n.f(t,e,r)}},334:(t,e,r)=>{"use strict";var n=r(8266);t.exports=function(t,e,r,o){return o&&o.enumerable?t[e]=r:n(t,e,r),t}},211:(t,e,r)=>{"use strict";var n=r(334);t.exports=function(t,e,r){for(var o in e)r&&r.unsafe&&t[o]?t[o]=e[o]:n(t,o,e[o],r);return t}},4802:(t,e,r)=>{"use strict";var n=r(8781),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},3870:(t,e,r)=>{"use strict";var n=r(458);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},2115:(t,e,r)=>{"use strict";var n=r(8781),o=r(8046),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},4035:t=>{"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},3294:(t,e,r)=>{"use strict";var n=r(9017),o=r(4714);t.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},9017:t=>{"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},113:(t,e,r)=>{"use strict";var n=r(7159);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},7217:(t,e,r)=>{"use strict";var n=r(7159);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},4714:(t,e,r)=>{"use strict";var n=r(8781),o=r(3179);t.exports="process"===o(n.process)},4677:(t,e,r)=>{"use strict";var n=r(7159);t.exports=/web0s(?!.*chrome)/i.test(n)},7159:t=>{"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4450:(t,e,r)=>{"use strict";var n,o,i=r(8781),a=r(7159),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,f=c&&c.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},587:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8956:(t,e,r)=>{"use strict";var n=r(1781),o=Error,i=n("".replace),a=String(new o("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(a);t.exports=function(t,e){if(u&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=i(t,s,"");return t}},2674:(t,e,r)=>{"use strict";var n=r(8266),o=r(8956),i=r(2807),a=Error.captureStackTrace;t.exports=function(t,e,r,s){i&&(a?a(t,e):n(t,"stack",o(r,s)))}},2807:(t,e,r)=>{"use strict";var n=r(458),o=r(8435);t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},7153:(t,e,r)=>{"use strict";var n=r(8781),o=r(7865),i=r(388),a=r(8804),s=r(8805).f,u=r(5309),c=r(8613),f=r(6698),l=r(8266),p=r(4511);r(8721);var d=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return o(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,o,h,v,m,y,g,w,b,T=t.target,_=t.global,x=t.stat,P=t.proto,C=_?n:x?n[T]:n[T]&&n[T].prototype,$=_?c:c[T]||l(c,T,{})[T],A=$.prototype;for(v in e)o=!(r=u(_?v:T+(x?".":"#")+v,t.forced))&&C&&p(C,v),y=$[v],o&&(g=t.dontCallGetSet?(b=s(C,v))&&b.value:C[v]),m=o&&g?g:e[v],(r||P||typeof y!=typeof m)&&(w=t.bind&&o?f(m,n):t.wrap&&o?d(m):P&&a(m)?i(m):m,(t.sham||m&&m.sham||y&&y.sham)&&l(w,"sham",!0),l($,v,w),P&&(p(c,h=T+"Prototype")||l(c,h,{}),l(c[h],v,m),t.real&&A&&(r||!A[v])&&l(A,v,m)))}},458:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},3860:(t,e,r)=>{"use strict";var n=r(458);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},7865:(t,e,r)=>{"use strict";var n=r(9866),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},6698:(t,e,r)=>{"use strict";var n=r(388),o=r(2889),i=r(9866),a=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},9866:(t,e,r)=>{"use strict";var n=r(458);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},7746:(t,e,r)=>{"use strict";var n=r(9866),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},5215:(t,e,r)=>{"use strict";var n=r(3870),o=r(4511),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},5184:(t,e,r)=>{"use strict";var n=r(1781),o=r(2889);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},388:(t,e,r)=>{"use strict";var n=r(3179),o=r(1781);t.exports=function(t){if("Function"===n(t))return o(t)}},1781:(t,e,r)=>{"use strict";var n=r(9866),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);t.exports=n?a:function(t){return function(){return i.apply(t,arguments)}}},8816:(t,e,r)=>{"use strict";var n=r(8781),o=r(8613);t.exports=function(t,e){var r=o[t+"Prototype"],i=r&&r[e];if(i)return i;var a=n[t],s=a&&a.prototype;return s&&s[e]}},8982:(t,e,r)=>{"use strict";var n=r(8613),o=r(8781),i=r(8804),a=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(n[t])||a(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},3539:t=>{"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},540:(t,e,r)=>{"use strict";var n=r(2377),o=r(720),i=r(9330),a=r(6701),s=r(7549)("iterator");t.exports=function(t){if(!i(t))return o(t,s)||o(t,"@@iterator")||a[n(t)]}},4172:(t,e,r)=>{"use strict";var n=r(7746),o=r(2889),i=r(1506),a=r(1394),s=r(540),u=TypeError;t.exports=function(t,e){var r=arguments.length<2?s(t):e;if(o(r))return i(n(r,t));throw new u(a(t)+" is not iterable")}},720:(t,e,r)=>{"use strict";var n=r(2889),o=r(9330);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},3427:(t,e,r)=>{"use strict";var n=r(2889),o=r(1506),i=r(7746),a=r(4216),s=r(3539),u="Invalid size",c=RangeError,f=TypeError,l=Math.max,p=function(t,e){this.set=t,this.size=l(e,0),this.has=n(t.has),this.keys=n(t.keys)};p.prototype={getIterator:function(){return s(o(i(this.keys,this.set)))},includes:function(t){return i(this.has,this.set,t)}},t.exports=function(t){o(t);var e=+t.size;if(e!=e)throw new f(u);var r=a(e);if(r<0)throw new c(u);return new p(t,r)}},8781:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4511:(t,e,r)=>{"use strict";var n=r(1781),o=r(3199),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},5076:t=>{"use strict";t.exports={}},4739:t=>{"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},2623:(t,e,r)=>{"use strict";var n=r(8982);t.exports=n("document","documentElement")},5978:(t,e,r)=>{"use strict";var n=r(3870),o=r(458),i=r(2115);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2529:(t,e,r)=>{"use strict";var n=r(1781),o=r(458),i=r(3179),a=Object,s=n("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?s(t,""):a(t)}:a},2182:(t,e,r)=>{"use strict";var n=r(1781),o=r(8804),i=r(8721),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},9931:(t,e,r)=>{"use strict";var n=r(8046),o=r(8266);t.exports=function(t,e){n(e)&&"cause"in e&&o(t,"cause",e.cause)}},714:(t,e,r)=>{"use strict";var n=r(7153),o=r(1781),i=r(5076),a=r(8046),s=r(4511),u=r(4574).f,c=r(4811),f=r(1154),l=r(6941),p=r(1201),d=r(3860),h=!1,v=p("meta"),m=0,y=function(t){u(t,v,{value:{objectID:"O"+m++,weakData:{}}})},g=t.exports={enable:function(){g.enable=function(){},h=!0;var t=c.f,e=o([].splice),r={};r[v]=1,t(r).length&&(c.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===v){e(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,v)){if(!l(t))return"F";if(!e)return"E";y(t)}return t[v].objectID},getWeakData:function(t,e){if(!s(t,v)){if(!l(t))return!0;if(!e)return!1;y(t)}return t[v].weakData},onFreeze:function(t){return d&&h&&l(t)&&!s(t,v)&&y(t),t}};i[v]=!0},7233:(t,e,r)=>{"use strict";var n,o,i,a=r(7135),s=r(8781),u=r(8046),c=r(8266),f=r(4511),l=r(8721),p=r(9068),d=r(5076),h="Object already initialized",v=s.TypeError,m=s.WeakMap;if(a||l.state){var y=l.state||(l.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,n=function(t,e){if(y.has(t))throw new v(h);return e.facade=t,y.set(t,e),e},o=function(t){return y.get(t)||{}},i=function(t){return y.has(t)}}else{var g=p("state");d[g]=!0,n=function(t,e){if(f(t,g))throw new v(h);return e.facade=t,c(t,g,e),e},o=function(t){return f(t,g)?t[g]:{}},i=function(t){return f(t,g)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=o(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return r}}}},6489:(t,e,r)=>{"use strict";var n=r(7549),o=r(6701),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},1367:(t,e,r)=>{"use strict";var n=r(3179);t.exports=Array.isArray||function(t){return"Array"===n(t)}},8804:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},7382:(t,e,r)=>{"use strict";var n=r(1781),o=r(458),i=r(8804),a=r(2377),s=r(8982),u=r(2182),c=function(){},f=s("Reflect","construct"),l=/^\s*(?:class|function)\b/,p=n(l.exec),d=!l.test(c),h=function(t){if(!i(t))return!1;try{return f(c,[],t),!0}catch(t){return!1}},v=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!p(l,u(t))}catch(t){return!0}};v.sham=!0,t.exports=!f||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?v:h},5309:(t,e,r)=>{"use strict";var n=r(458),o=r(8804),i=/#|\.prototype\./,a=function(t,e){var r=u[s(t)];return r===f||r!==c&&(o(e)?n(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},9330:t=>{"use strict";t.exports=function(t){return null==t}},8046:(t,e,r)=>{"use strict";var n=r(8804);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},977:(t,e,r)=>{"use strict";var n=r(8046);t.exports=function(t){return n(t)||null===t}},2145:t=>{"use strict";t.exports=!0},5251:(t,e,r)=>{"use strict";var n=r(8046),o=r(3179),i=r(7549)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"===o(t))}},4319:(t,e,r)=>{"use strict";var n=r(8982),o=r(8804),i=r(9565),a=r(2746),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,s(t))}},3258:(t,e,r)=>{"use strict";var n=r(7746);t.exports=function(t,e,r){for(var o,i,a=r?t:t.iterator,s=t.next;!(o=n(s,a)).done;)if(void 0!==(i=e(o.value)))return i}},4783:(t,e,r)=>{"use strict";var n=r(6698),o=r(7746),i=r(1506),a=r(1394),s=r(6489),u=r(7079),c=r(9565),f=r(4172),l=r(540),p=r(3791),d=TypeError,h=function(t,e){this.stopped=t,this.result=e},v=h.prototype;t.exports=function(t,e,r){var m,y,g,w,b,T,_,x=r&&r.that,P=!(!r||!r.AS_ENTRIES),C=!(!r||!r.IS_RECORD),$=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),k=n(e,x),S=function(t){return m&&p(m,"normal",t),new h(!0,t)},j=function(t){return P?(i(t),A?k(t[0],t[1],S):k(t[0],t[1])):A?k(t,S):k(t)};if(C)m=t.iterator;else if($)m=t;else{if(!(y=l(t)))throw new d(a(t)+" is not iterable");if(s(y)){for(g=0,w=u(t);w>g;g++)if((b=j(t[g]))&&c(v,b))return b;return new h(!1)}m=f(t,y)}for(T=C?t.next:m.next;!(_=o(T,m)).done;){try{b=j(_.value)}catch(t){p(m,"throw",t)}if("object"==typeof b&&b&&c(v,b))return b}return new h(!1)}},3791:(t,e,r)=>{"use strict";var n=r(7746),o=r(1506),i=r(720);t.exports=function(t,e,r){var a,s;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw r;return r}a=n(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw r;if(s)throw a;return o(a),r}},8650:(t,e,r)=>{"use strict";var n=r(2215).IteratorPrototype,o=r(5963),i=r(8435),a=r(2979),s=r(6701),u=function(){return this};t.exports=function(t,e,r,c){var f=e+" Iterator";return t.prototype=o(n,{next:i(+!c,r)}),a(t,f,!1,!0),s[f]=u,t}},6775:(t,e,r)=>{"use strict";var n=r(7153),o=r(7746),i=r(2145),a=r(5215),s=r(8804),u=r(8650),c=r(7608),f=r(7144),l=r(2979),p=r(8266),d=r(334),h=r(7549),v=r(6701),m=r(2215),y=a.PROPER,g=a.CONFIGURABLE,w=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,T=h("iterator"),_="keys",x="values",P="entries",C=function(){return this};t.exports=function(t,e,r,a,h,m,$){u(r,e,a);var A,k,S,j=function(t){if(t===h&&W)return W;if(!b&&t&&t in F)return F[t];switch(t){case _:case x:case P:return function(){return new r(this,t)}}return function(){return new r(this)}},E=e+" Iterator",O=!1,F=t.prototype,R=F[T]||F["@@iterator"]||h&&F[h],W=!b&&R||j(h),I="Array"===e&&F.entries||R;if(I&&(A=c(I.call(new t)))!==Object.prototype&&A.next&&(i||c(A)===w||(f?f(A,w):s(A[T])||d(A,T,C)),l(A,E,!0,!0),i&&(v[E]=C)),y&&h===x&&R&&R.name!==x&&(!i&&g?p(F,"name",x):(O=!0,W=function(){return o(R,this)})),h)if(k={values:j(x),keys:m?W:j(_),entries:j(P)},$)for(S in k)(b||O||!(S in F))&&d(F,S,k[S]);else n({target:e,proto:!0,forced:b||O},k);return i&&!$||F[T]===W||d(F,T,W,{name:h}),v[e]=W,k}},2215:(t,e,r)=>{"use strict";var n,o,i,a=r(458),s=r(8804),u=r(8046),c=r(5963),f=r(7608),l=r(334),p=r(7549),d=r(2145),h=p("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(n=o):v=!0),!u(n)||a((function(){var t={};return n[h].call(t)!==t}))?n={}:d&&(n=c(n)),s(n[h])||l(n,h,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},6701:t=>{"use strict";t.exports={}},7079:(t,e,r)=>{"use strict";var n=r(1036);t.exports=function(t){return n(t.length)}},2814:t=>{"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},309:(t,e,r)=>{"use strict";var n,o,i,a,s,u=r(8781),c=r(61),f=r(6698),l=r(5126).set,p=r(5641),d=r(7217),h=r(113),v=r(4677),m=r(4714),y=u.MutationObserver||u.WebKitMutationObserver,g=u.document,w=u.process,b=u.Promise,T=c("queueMicrotask");if(!T){var _=new p,x=function(){var t,e;for(m&&(t=w.domain)&&t.exit();e=_.get();)try{e()}catch(t){throw _.head&&n(),t}t&&t.enter()};d||m||v||!y||!g?!h&&b&&b.resolve?((a=b.resolve(void 0)).constructor=b,s=f(a.then,a),n=function(){s(x)}):m?n=function(){w.nextTick(x)}:(l=f(l,u),n=function(){l(x)}):(o=!0,i=g.createTextNode(""),new y(x).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),T=function(t){_.head||n(),_.add(t)}}t.exports=T},9832:(t,e,r)=>{"use strict";var n=r(2889),o=TypeError,i=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw new o("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},6733:(t,e,r)=>{"use strict";var n=r(5174);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},6238:(t,e,r)=>{"use strict";var n=r(5251),o=TypeError;t.exports=function(t){if(n(t))throw new o("The method doesn't accept regular expressions");return t}},5963:(t,e,r)=>{"use strict";var n,o=r(1506),i=r(2341),a=r(587),s=r(5076),u=r(2623),c=r(2115),f=r(9068),l=f("IE_PROTO"),p=function(){},d=function(t){return"<script>"+t+"</"+"script>"},h=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e;v="undefined"!=typeof document?document.domain&&n?h(n):((e=c("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):h(n);for(var r=a.length;r--;)delete v.prototype[a[r]];return v()};s[l]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(p.prototype=o(t),r=new p,p.prototype=null,r[l]=t):r=v(),void 0===e?r:i.f(r,e)}},2341:(t,e,r)=>{"use strict";var n=r(3870),o=r(5022),i=r(4574),a=r(1506),s=r(300),u=r(4944);e.f=n&&!o?Object.defineProperties:function(t,e){a(t);for(var r,n=s(e),o=u(e),c=o.length,f=0;c>f;)i.f(t,r=o[f++],n[r]);return t}},4574:(t,e,r)=>{"use strict";var n=r(3870),o=r(5978),i=r(5022),a=r(1506),s=r(8372),u=TypeError,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",d="writable";e.f=n?i?function(t,e,r){if(a(t),e=s(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&d in r&&!r.writable){var n=f(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:p in r?r.configurable:n.configurable,enumerable:l in r?r.enumerable:n.enumerable,writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(a(t),e=s(e),a(r),o)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},8805:(t,e,r)=>{"use strict";var n=r(3870),o=r(7746),i=r(3982),a=r(8435),s=r(300),u=r(8372),c=r(4511),f=r(5978),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=s(t),e=u(e),f)try{return l(t,e)}catch(t){}if(c(t,e))return a(!o(i.f,t,e),t[e])}},1154:(t,e,r)=>{"use strict";var n=r(3179),o=r(300),i=r(4811).f,a=r(7943),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"===n(t)?function(t){try{return i(t)}catch(t){return a(s)}}(t):i(o(t))}},4811:(t,e,r)=>{"use strict";var n=r(4890),o=r(587).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},5241:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},7608:(t,e,r)=>{"use strict";var n=r(4511),o=r(8804),i=r(3199),a=r(9068),s=r(5580),u=a("IE_PROTO"),c=Object,f=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=i(t);if(n(e,u))return e[u];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof c?f:null}},6941:(t,e,r)=>{"use strict";var n=r(458),o=r(8046),i=r(3179),a=r(3582),s=Object.isExtensible,u=n((function(){s(1)}));t.exports=u||a?function(t){return!!o(t)&&((!a||"ArrayBuffer"!==i(t))&&(!s||s(t)))}:s},9565:(t,e,r)=>{"use strict";var n=r(1781);t.exports=n({}.isPrototypeOf)},4890:(t,e,r)=>{"use strict";var n=r(1781),o=r(4511),i=r(300),a=r(9333).indexOf,s=r(5076),u=n([].push);t.exports=function(t,e){var r,n=i(t),c=0,f=[];for(r in n)!o(s,r)&&o(n,r)&&u(f,r);for(;e.length>c;)o(n,r=e[c++])&&(~a(f,r)||u(f,r));return f}},4944:(t,e,r)=>{"use strict";var n=r(4890),o=r(587);t.exports=Object.keys||function(t){return n(t,o)}},3982:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},7144:(t,e,r)=>{"use strict";var n=r(5184),o=r(8046),i=r(8384),a=r(7986);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return i(r),a(n),o(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},9181:(t,e,r)=>{"use strict";var n=r(1352),o=r(2377);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},9107:(t,e,r)=>{"use strict";var n=r(7746),o=r(8804),i=r(8046),a=TypeError;t.exports=function(t,e){var r,s;if("string"===e&&o(r=t.toString)&&!i(s=n(r,t)))return s;if(o(r=t.valueOf)&&!i(s=n(r,t)))return s;if("string"!==e&&o(r=t.toString)&&!i(s=n(r,t)))return s;throw new a("Can't convert object to primitive value")}},9686:(t,e,r)=>{"use strict";var n=r(8982),o=r(1781),i=r(4811),a=r(5241),s=r(1506),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(s(t)),r=a.f;return r?u(e,r(t)):e}},8613:t=>{"use strict";t.exports={}},8178:t=>{"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},3178:(t,e,r)=>{"use strict";var n=r(8781),o=r(575),i=r(8804),a=r(5309),s=r(2182),u=r(7549),c=r(3294),f=r(9017),l=r(2145),p=r(4450),d=o&&o.prototype,h=u("species"),v=!1,m=i(n.PromiseRejectionEvent),y=a("Promise",(function(){var t=s(o),e=t!==String(o);if(!e&&66===p)return!0;if(l&&(!d.catch||!d.finally))return!0;if(!p||p<51||!/native code/.test(t)){var r=new o((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(v=r.then((function(){}))instanceof n))return!0}return!e&&(c||f)&&!m}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:m,SUBCLASSING:v}},575:(t,e,r)=>{"use strict";var n=r(8781);t.exports=n.Promise},6054:(t,e,r)=>{"use strict";var n=r(1506),o=r(8046),i=r(9832);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},847:(t,e,r)=>{"use strict";var n=r(575),o=r(8972),i=r(3178).CONSTRUCTOR;t.exports=i||!o((function(t){n.all(t).then(void 0,(function(){}))}))},5641:t=>{"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},8384:(t,e,r)=>{"use strict";var n=r(9330),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},61:(t,e,r)=>{"use strict";var n=r(8781),o=r(3870),i=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!o)return n[t];var e=i(n,t);return e&&e.value}},8627:(t,e,r)=>{"use strict";var n=r(9496),o=r(9507),i=n.Set,a=n.add;t.exports=function(t){var e=new i;return o(t,(function(t){a(e,t)})),e}},3701:(t,e,r)=>{"use strict";var n=r(3637),o=r(9496),i=r(8627),a=r(4895),s=r(3427),u=r(9507),c=r(3258),f=o.has,l=o.remove;t.exports=function(t){var e=n(this),r=s(t),o=i(e);return a(e)<=r.size?u(e,(function(t){r.includes(t)&&l(o,t)})):c(r.getIterator(),(function(t){f(e,t)&&l(o,t)})),o}},9496:(t,e,r)=>{"use strict";var n=r(8982),o=r(8645),i=n("Set"),a=i.prototype;t.exports={Set:i,add:o("add",1),has:o("has",1),remove:o("delete",1),proto:a}},7690:(t,e,r)=>{"use strict";var n=r(3637),o=r(9496),i=r(4895),a=r(3427),s=r(9507),u=r(3258),c=o.Set,f=o.add,l=o.has;t.exports=function(t){var e=n(this),r=a(t),o=new c;return i(e)>r.size?u(r.getIterator(),(function(t){l(e,t)&&f(o,t)})):s(e,(function(t){r.includes(t)&&f(o,t)})),o}},1026:(t,e,r)=>{"use strict";var n=r(3637),o=r(9496).has,i=r(4895),a=r(3427),s=r(9507),u=r(3258),c=r(3791);t.exports=function(t){var e=n(this),r=a(t);if(i(e)<=r.size)return!1!==s(e,(function(t){if(r.includes(t))return!1}),!0);var f=r.getIterator();return!1!==u(f,(function(t){if(o(e,t))return c(f,"normal",!1)}))}},2073:(t,e,r)=>{"use strict";var n=r(3637),o=r(4895),i=r(9507),a=r(3427);t.exports=function(t){var e=n(this),r=a(t);return!(o(e)>r.size)&&!1!==i(e,(function(t){if(!r.includes(t))return!1}),!0)}},7552:(t,e,r)=>{"use strict";var n=r(3637),o=r(9496).has,i=r(4895),a=r(3427),s=r(3258),u=r(3791);t.exports=function(t){var e=n(this),r=a(t);if(i(e)<r.size)return!1;var c=r.getIterator();return!1!==s(c,(function(t){if(!o(e,t))return u(c,"normal",!1)}))}},9507:(t,e,r)=>{"use strict";var n=r(3258);t.exports=function(t,e,r){return r?n(t.keys(),e,!0):t.forEach(e)}},6914:t=>{"use strict";t.exports=function(){return!1}},4895:t=>{"use strict";t.exports=function(t){return t.size}},4954:(t,e,r)=>{"use strict";var n=r(8982),o=r(6999),i=r(7549),a=r(3870),s=i("species");t.exports=function(t){var e=n(t);a&&e&&!e[s]&&o(e,s,{configurable:!0,get:function(){return this}})}},4295:(t,e,r)=>{"use strict";var n=r(3637),o=r(9496),i=r(8627),a=r(3427),s=r(3258),u=o.add,c=o.has,f=o.remove;t.exports=function(t){var e=n(this),r=a(t).getIterator(),o=i(e);return s(r,(function(t){c(e,t)?f(o,t):u(o,t)})),o}},2979:(t,e,r)=>{"use strict";var n=r(1352),o=r(4574).f,i=r(8266),a=r(4511),s=r(9181),u=r(7549)("toStringTag");t.exports=function(t,e,r,c){var f=r?t:t&&t.prototype;f&&(a(f,u)||o(f,u,{configurable:!0,value:e}),c&&!n&&i(f,"toString",s))}},6986:(t,e,r)=>{"use strict";var n=r(3637),o=r(9496).add,i=r(8627),a=r(3427),s=r(3258);t.exports=function(t){var e=n(this),r=a(t).getIterator(),u=i(e);return s(r,(function(t){o(u,t)})),u}},9068:(t,e,r)=>{"use strict";var n=r(5790),o=r(1201),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},8721:(t,e,r)=>{"use strict";var n=r(2145),o=r(8781),i=r(4802),a="__core-js_shared__",s=t.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.37.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5790:(t,e,r)=>{"use strict";var n=r(8721);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},5627:(t,e,r)=>{"use strict";var n=r(1506),o=r(9618),i=r(9330),a=r(7549)("species");t.exports=function(t,e){var r,s=n(t).constructor;return void 0===s||i(r=n(s)[a])?e:o(r)}},6823:(t,e,r)=>{"use strict";var n=r(1781),o=r(4216),i=r(5174),a=r(8384),s=n("".charAt),u=n("".charCodeAt),c=n("".slice),f=function(t){return function(e,r){var n,f,l=i(a(e)),p=o(r),d=l.length;return p<0||p>=d?t?"":void 0:(n=u(l,p))<55296||n>56319||p+1===d||(f=u(l,p+1))<56320||f>57343?t?s(l,p):n:t?c(l,p,p+2):f-56320+(n-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},9576:(t,e,r)=>{"use strict";var n=r(7159);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},6495:(t,e,r)=>{"use strict";var n=r(1781),o=r(1036),i=r(5174),a=r(4588),s=r(8384),u=n(a),c=n("".slice),f=Math.ceil,l=function(t){return function(e,r,n){var a,l,p=i(s(e)),d=o(r),h=p.length,v=void 0===n?" ":i(n);return d<=h||""===v?p:((l=u(v,f((a=d-h)/v.length))).length>a&&(l=c(l,0,a)),t?p+l:l+p)}};t.exports={start:l(!1),end:l(!0)}},4588:(t,e,r)=>{"use strict";var n=r(4216),o=r(5174),i=r(8384),a=RangeError;t.exports=function(t){var e=o(i(this)),r="",s=n(t);if(s<0||s===1/0)throw new a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(r+=e);return r}},5264:(t,e,r)=>{"use strict";var n=r(4450),o=r(458),i=r(8781).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},5126:(t,e,r)=>{"use strict";var n,o,i,a,s=r(8781),u=r(7865),c=r(6698),f=r(8804),l=r(4511),p=r(458),d=r(2623),h=r(7943),v=r(2115),m=r(7661),y=r(7217),g=r(4714),w=s.setImmediate,b=s.clearImmediate,T=s.process,_=s.Dispatch,x=s.Function,P=s.MessageChannel,C=s.String,$=0,A={},k="onreadystatechange";p((function(){n=s.location}));var S=function(t){if(l(A,t)){var e=A[t];delete A[t],e()}},j=function(t){return function(){S(t)}},E=function(t){S(t.data)},O=function(t){s.postMessage(C(t),n.protocol+"//"+n.host)};w&&b||(w=function(t){m(arguments.length,1);var e=f(t)?t:x(t),r=h(arguments,1);return A[++$]=function(){u(e,void 0,r)},o($),$},b=function(t){delete A[t]},g?o=function(t){T.nextTick(j(t))}:_&&_.now?o=function(t){_.now(j(t))}:P&&!y?(a=(i=new P).port2,i.port1.onmessage=E,o=c(a.postMessage,a)):s.addEventListener&&f(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!p(O)?(o=O,s.addEventListener("message",E,!1)):o=k in v("script")?function(t){d.appendChild(v("script")).onreadystatechange=function(){d.removeChild(this),S(t)}}:function(t){setTimeout(j(t),0)}),t.exports={set:w,clear:b}},2048:(t,e,r)=>{"use strict";var n=r(4216),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},300:(t,e,r)=>{"use strict";var n=r(2529),o=r(8384);t.exports=function(t){return n(o(t))}},4216:(t,e,r)=>{"use strict";var n=r(2814);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},1036:(t,e,r)=>{"use strict";var n=r(4216),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},3199:(t,e,r)=>{"use strict";var n=r(8384),o=Object;t.exports=function(t){return o(n(t))}},3562:(t,e,r)=>{"use strict";var n=r(7746),o=r(8046),i=r(4319),a=r(720),s=r(9107),u=r(7549),c=TypeError,f=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,u=a(t,f);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!o(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},8372:(t,e,r)=>{"use strict";var n=r(3562),o=r(4319);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},1352:(t,e,r)=>{"use strict";var n={};n[r(7549)("toStringTag")]="z",t.exports="[object z]"===String(n)},5174:(t,e,r)=>{"use strict";var n=r(2377),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},1394:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},1201:(t,e,r)=>{"use strict";var n=r(1781),o=0,i=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},2746:(t,e,r)=>{"use strict";var n=r(5264);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5022:(t,e,r)=>{"use strict";var n=r(3870),o=r(458);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},7661:t=>{"use strict";var e=TypeError;t.exports=function(t,r){if(t<r)throw new e("Not enough arguments");return t}},7135:(t,e,r)=>{"use strict";var n=r(8781),o=r(8804),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},7549:(t,e,r)=>{"use strict";var n=r(8781),o=r(5790),i=r(4511),a=r(1201),s=r(5264),u=r(2746),c=n.Symbol,f=o("wks"),l=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return i(f,t)||(f[t]=s&&i(c,t)?c[t]:l("Symbol."+t)),f[t]}},1761:(t,e,r)=>{"use strict";var n=r(7153),o=r(9565),i=r(7608),a=r(7144),s=r(1621),u=r(5963),c=r(8266),f=r(8435),l=r(9931),p=r(2674),d=r(4783),h=r(6733),v=r(7549)("toStringTag"),m=Error,y=[].push,g=function(t,e){var r,n=o(w,this);a?r=a(new m,n?i(this):w):(r=n?this:u(w),c(r,v,"Error")),void 0!==e&&c(r,"message",h(e)),p(r,g,r.stack,1),arguments.length>2&&l(r,arguments[2]);var s=[];return d(t,y,{that:s}),c(r,"errors",s),r};a?a(g,m):s(g,m,{name:!0});var w=g.prototype=u(m.prototype,{constructor:f(1,g),message:f(1,""),name:f(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},8362:(t,e,r)=>{"use strict";r(1761)},3413:(t,e,r)=>{"use strict";var n=r(300),o=r(7478),i=r(6701),a=r(7233),s=r(4574).f,u=r(6775),c=r(948),f=r(2145),l=r(3870),p="Array Iterator",d=a.set,h=a.getterFor(p);t.exports=u(Array,"Array",(function(t,e){d(this,{type:p,target:n(t),index:0,kind:e})}),(function(){var t=h(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,c(void 0,!0);switch(t.kind){case"keys":return c(r,!1);case"values":return c(e[r],!1)}return c([r,e[r]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!f&&l&&"values"!==v.name)try{s(v,"name",{value:"values"})}catch(t){}},7784:()=>{},4730:(t,e,r)=>{"use strict";var n=r(7153),o=r(7746),i=r(2889),a=r(9832),s=r(8178),u=r(4783);n({target:"Promise",stat:!0,forced:r(847)},{allSettled:function(t){var e=this,r=a.f(e),n=r.resolve,c=r.reject,f=s((function(){var r=i(e.resolve),a=[],s=0,c=1;u(t,(function(t){var i=s++,u=!1;c++,o(r,e,t).then((function(t){u||(u=!0,a[i]={status:"fulfilled",value:t},--c||n(a))}),(function(t){u||(u=!0,a[i]={status:"rejected",reason:t},--c||n(a))}))})),--c||n(a)}));return f.error&&c(f.value),r.promise}})},7723:(t,e,r)=>{"use strict";var n=r(7153),o=r(7746),i=r(2889),a=r(9832),s=r(8178),u=r(4783);n({target:"Promise",stat:!0,forced:r(847)},{all:function(t){var e=this,r=a.f(e),n=r.resolve,c=r.reject,f=s((function(){var r=i(e.resolve),a=[],s=0,f=1;u(t,(function(t){var i=s++,u=!1;f++,o(r,e,t).then((function(t){u||(u=!0,a[i]=t,--f||n(a))}),c)})),--f||n(a)}));return f.error&&c(f.value),r.promise}})},2729:(t,e,r)=>{"use strict";var n=r(7153),o=r(7746),i=r(2889),a=r(8982),s=r(9832),u=r(8178),c=r(4783),f=r(847),l="No one promise resolved";n({target:"Promise",stat:!0,forced:f},{any:function(t){var e=this,r=a("AggregateError"),n=s.f(e),f=n.resolve,p=n.reject,d=u((function(){var n=i(e.resolve),a=[],s=0,u=1,d=!1;c(t,(function(t){var i=s++,c=!1;u++,o(n,e,t).then((function(t){c||d||(d=!0,f(t))}),(function(t){c||d||(c=!0,a[i]=t,--u||p(new r(a,l)))}))})),--u||p(new r(a,l))}));return d.error&&p(d.value),n.promise}})},947:(t,e,r)=>{"use strict";var n=r(7153),o=r(2145),i=r(3178).CONSTRUCTOR,a=r(575),s=r(8982),u=r(8804),c=r(334),f=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&u(a)){var l=s("Promise").prototype.catch;f.catch!==l&&c(f,"catch",l,{unsafe:!0})}},3722:(t,e,r)=>{"use strict";var n,o,i,a=r(7153),s=r(2145),u=r(4714),c=r(8781),f=r(7746),l=r(334),p=r(7144),d=r(2979),h=r(4954),v=r(2889),m=r(8804),y=r(8046),g=r(1385),w=r(5627),b=r(5126).set,T=r(309),_=r(4739),x=r(8178),P=r(5641),C=r(7233),$=r(575),A=r(3178),k=r(9832),S="Promise",j=A.CONSTRUCTOR,E=A.REJECTION_EVENT,O=A.SUBCLASSING,F=C.getterFor(S),R=C.set,W=$&&$.prototype,I=$,D=W,U=c.TypeError,M=c.document,z=c.process,H=k.f,q=H,V=!!(M&&M.createEvent&&c.dispatchEvent),L="unhandledrejection",B=function(t){var e;return!(!y(t)||!m(e=t.then))&&e},N=function(t,e){var r,n,o,i=e.value,a=1===e.state,s=a?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(a||(2===e.rejection&&Z(e),e.rejection=1),!0===s?r=i:(l&&l.enter(),r=s(i),l&&(l.exit(),o=!0)),r===t.promise?c(new U("Promise-chain cycle")):(n=B(r))?f(n,r,u,c):u(r)):c(i)}catch(t){l&&!o&&l.exit(),c(t)}},G=function(t,e){t.notified||(t.notified=!0,T((function(){for(var r,n=t.reactions;r=n.get();)N(r,t);t.notified=!1,e&&!t.rejection&&Y(t)})))},X=function(t,e,r){var n,o;V?((n=M.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:e,reason:r},!E&&(o=c["on"+t])?o(n):t===L&&_("Unhandled promise rejection",r)},Y=function(t){f(b,c,(function(){var e,r=t.facade,n=t.value;if(J(t)&&(e=x((function(){u?z.emit("unhandledRejection",n,r):X(L,r,n)})),t.rejection=u||J(t)?2:1,e.error))throw e.value}))},J=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){f(b,c,(function(){var e=t.facade;u?z.emit("rejectionHandled",e):X("rejectionhandled",e,t.value)}))},K=function(t,e,r){return function(n){t(e,n,r)}},Q=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,G(t,!0))},tt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new U("Promise can't be resolved itself");var n=B(e);n?T((function(){var r={done:!1};try{f(n,e,K(tt,r,t),K(Q,r,t))}catch(e){Q(r,e,t)}})):(t.value=e,t.state=1,G(t,!1))}catch(e){Q({done:!1},e,t)}}};if(j&&(D=(I=function(t){g(this,D),v(t),f(n,this);var e=F(this);try{t(K(tt,e),K(Q,e))}catch(t){Q(e,t)}}).prototype,(n=function(t){R(this,{type:S,done:!1,notified:!1,parent:!1,reactions:new P,rejection:!1,state:0,value:void 0})}).prototype=l(D,"then",(function(t,e){var r=F(this),n=H(w(this,I));return r.parent=!0,n.ok=!m(t)||t,n.fail=m(e)&&e,n.domain=u?z.domain:void 0,0===r.state?r.reactions.add(n):T((function(){N(n,r)})),n.promise})),o=function(){var t=new n,e=F(t);this.promise=t,this.resolve=K(tt,e),this.reject=K(Q,e)},k.f=H=function(t){return t===I||undefined===t?new o(t):q(t)},!s&&m($)&&W!==Object.prototype)){i=W.then,O||l(W,"then",(function(t,e){var r=this;return new I((function(t,e){f(i,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete W.constructor}catch(t){}p&&p(W,D)}a({global:!0,constructor:!0,wrap:!0,forced:j},{Promise:I}),d(I,S,!1,!0),h(S)},5437:(t,e,r)=>{"use strict";var n=r(7153),o=r(2145),i=r(575),a=r(458),s=r(8982),u=r(8804),c=r(5627),f=r(6054),l=r(334),p=i&&i.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){p.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=c(this,s("Promise")),r=u(t);return this.then(r?function(r){return f(e,t()).then((function(){return r}))}:t,r?function(r){return f(e,t()).then((function(){throw r}))}:t)}}),!o&&u(i)){var d=s("Promise").prototype.finally;p.finally!==d&&l(p,"finally",d,{unsafe:!0})}},778:(t,e,r)=>{"use strict";r(3722),r(7723),r(947),r(2900),r(1245),r(3807)},2900:(t,e,r)=>{"use strict";var n=r(7153),o=r(7746),i=r(2889),a=r(9832),s=r(8178),u=r(4783);n({target:"Promise",stat:!0,forced:r(847)},{race:function(t){var e=this,r=a.f(e),n=r.reject,c=s((function(){var a=i(e.resolve);u(t,(function(t){o(a,e,t).then(r.resolve,n)}))}));return c.error&&n(c.value),r.promise}})},1245:(t,e,r)=>{"use strict";var n=r(7153),o=r(9832);n({target:"Promise",stat:!0,forced:r(3178).CONSTRUCTOR},{reject:function(t){var e=o.f(this);return(0,e.reject)(t),e.promise}})},3807:(t,e,r)=>{"use strict";var n=r(7153),o=r(8982),i=r(2145),a=r(575),s=r(3178).CONSTRUCTOR,u=r(6054),c=o("Promise"),f=i&&!s;n({target:"Promise",stat:!0,forced:i||s},{resolve:function(t){return u(f&&this===c?a:this,t)}})},7303:(t,e,r)=>{"use strict";var n=r(7153),o=r(9832);n({target:"Promise",stat:!0},{withResolvers:function(){var t=o.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}})},8317:(t,e,r)=>{"use strict";r(1045)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(7110))},2451:(t,e,r)=>{"use strict";var n=r(7153),o=r(3701);n({target:"Set",proto:!0,real:!0,forced:!r(6914)("difference")},{difference:o})},6174:(t,e,r)=>{"use strict";var n=r(7153),o=r(458),i=r(7690);n({target:"Set",proto:!0,real:!0,forced:!r(6914)("intersection")||o((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:i})},8793:(t,e,r)=>{"use strict";var n=r(7153),o=r(1026);n({target:"Set",proto:!0,real:!0,forced:!r(6914)("isDisjointFrom")},{isDisjointFrom:o})},2330:(t,e,r)=>{"use strict";var n=r(7153),o=r(2073);n({target:"Set",proto:!0,real:!0,forced:!r(6914)("isSubsetOf")},{isSubsetOf:o})},8361:(t,e,r)=>{"use strict";var n=r(7153),o=r(7552);n({target:"Set",proto:!0,real:!0,forced:!r(6914)("isSupersetOf")},{isSupersetOf:o})},340:(t,e,r)=>{"use strict";r(8317)},322:(t,e,r)=>{"use strict";var n=r(7153),o=r(4295);n({target:"Set",proto:!0,real:!0,forced:!r(6914)("symmetricDifference")},{symmetricDifference:o})},7368:(t,e,r)=>{"use strict";var n=r(7153),o=r(6986);n({target:"Set",proto:!0,real:!0,forced:!r(6914)("union")},{union:o})},3506:(t,e,r)=>{"use strict";var n,o=r(7153),i=r(388),a=r(8805).f,s=r(1036),u=r(5174),c=r(6238),f=r(8384),l=r(8153),p=r(2145),d=i("".slice),h=Math.min,v=l("endsWith");o({target:"String",proto:!0,forced:!!(p||v||(n=a(String.prototype,"endsWith"),!n||n.writable))&&!v},{endsWith:function(t){var e=u(f(this));c(t);var r=arguments.length>1?arguments[1]:void 0,n=e.length,o=void 0===r?n:h(s(r),n),i=u(t);return d(e,o-i.length,o)===i}})},3603:(t,e,r)=>{"use strict";var n=r(6823).charAt,o=r(5174),i=r(7233),a=r(6775),s=r(948),u="String Iterator",c=i.set,f=i.getterFor(u);a(String,"String",(function(t){c(this,{type:u,string:o(t),index:0})}),(function(){var t,e=f(this),r=e.string,o=e.index;return o>=r.length?s(void 0,!0):(t=n(r,o),e.index+=t.length,s(t,!1))}))},8745:(t,e,r)=>{"use strict";var n=r(7153),o=r(6495).start;n({target:"String",proto:!0,forced:r(9576)},{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},7015:(t,e,r)=>{"use strict";r(3413);var n=r(4035),o=r(8781),i=r(2979),a=r(6701);for(var s in n)i(o[s],s),a[s]=a.Array},3219:(t,e,r)=>{"use strict";var n=r(4317);t.exports=n},2603:(t,e,r)=>{"use strict";var n=r(3477);t.exports=n},2274:(t,e,r)=>{"use strict";var n=r(98);r(7015),t.exports=n},7754:(t,e,r)=>{"use strict";var n=r(2193);r(7015),t.exports=n}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.p="/dicom-microscopy-viewer/";var __webpack_exports__={};(()=>{"use strict";const t={};let e,r=!1;function n(n){if(t[n.taskType])return console.info('attempt to register duplicate task handler "',n.taskType,'"'),!1;t[n.taskType]=n,r&&n.initialize(e.taskConfiguration)}self.onmessage=function(o){if(o.data.taskType)if(console.info(`run task "${o.data.taskType}" on web worker #${o.data.workerIndex}`),"initialize"!==o.data.taskType){if("loadWebWorkerTask"===o.data.taskType)return i=o.data,e=i.config,void self.importScripts(i.sourcePath);var i;if(t[o.data.taskType])try{t[o.data.taskType]._handler(o.data,(function(t,e){self.postMessage({taskType:o.data.taskType,status:"success",result:t,workerIndex:o.data.workerIndex},e)}))}catch(t){console.error(`task "${o.data.taskType}" failed: ${t.message}`),self.postMessage({taskType:o.data.taskType,status:"failed",result:t.message,workerIndex:o.data.workerIndex})}else console.warn("no task handler for ",o.data.taskType,taskHandler),self.postMessage({taskType:o.data.taskType,status:"failed - no task handler registered",workerIndex:o.data.workerIndex})}else!function(t){if(!r){if(e=t.config,self.registerTaskHandler=n,t.config.webWorkerTaskPaths)for(let e=0;e<t.config.webWorkerTaskPaths.length;e++)self.importScripts(t.config.webWorkerTaskPaths[e]);self.postMessage({taskType:"initialize",status:"success",result:{},workerIndex:t.workerIndex}),r=!0}}(o.data);else console.info(o.data)};var o=__webpack_require__(6463),i=__webpack_require__.n(o),a=__webpack_require__(9845),s=__webpack_require__.n(a),u=__webpack_require__(3356),c=__webpack_require__.n(u),f=__webpack_require__(2997),l=__webpack_require__.n(f),p=__webpack_require__(4044),d=__webpack_require__.n(p),h=__webpack_require__(3621),v=__webpack_require__.n(h);class m{constructor(){this.codec=void 0,this.decoder=void 0}_initialize(){return c().resolve()}async decode(t){this.codec||await this._initialize();return this.decoder.getEncodedBuffer(t.length).set(t),this.decoder.decode(),{frameBuffer:this.decoder.getDecodedBuffer(),frameInfo:this.decoder.getFrameInfo()}}}var y=__webpack_require__(8327),g=__webpack_require__.n(y),w=__webpack_require__(3521),b=__webpack_require__.n(w);var T=__webpack_require__(9400),_=__webpack_require__.n(T),x=__webpack_require__(2491),P=__webpack_require__.n(x);var C=__webpack_require__(9708),$=__webpack_require__.n(C),A=__webpack_require__(2614),k=__webpack_require__.n(A);class S extends class{constructor(){this.codec=void 0,this.transformers=[]}_initialize(){return c().resolve()}}{constructor(t,e){if(super(),t.length!==e.length)throw new Error(`Argument "metadata" and "iccProfiles" must have same length: ${t.length} versus ${e.length}`);this.metadata=t,this.iccProfiles=e,this.codec=null,this.transformers={}}_initialize(){if(this.codec)return c().resolve();const t=$()({locateFile:t=>l()(t).call(t,".wasm")?k():t});return new(c())(((e,r)=>{t.then((t=>{this.codec=t;for(let t=0;t<this.metadata.length;t++){const e=this.metadata[t].Columns,r=this.metadata[t].Rows,n=this.metadata[t].BitsAllocated,o=this.metadata[t].SamplesPerPixel,i=this.metadata[t].PlanarConfiguration,a=this.metadata[t].SOPInstanceUID,s=this.iccProfiles[t];this.transformers[a]=new this.codec.ColorManager({columns:e,rows:r,bitsPerSample:n,samplesPerPixel:o,planarConfiguration:i},s)}e(this.transformers)}),r)}))}async transform(t,e){let r;if(null==this.codec&&await this._initialize(),t in this.transformers){const n=this.transformers[t];r=n?n.transform(e):new(c())((function(t){t(e)}))}else r=new(c())((function(t){t(e)}));return r}}var j=__webpack_require__(7e3),E=__webpack_require__.n(j);const O=new class extends m{_initialize(){if(this.codec)return c().resolve();const t=d()({locateFile:t=>l()(t).call(t,".wasm")?v():t});return new(c())(((e,r)=>{t.then((t=>{this.codec=t,this.decoder=new t.J2KDecoder,e()}),r)}))}},F=new class extends m{_initialize(){if(this.codec)return c().resolve();const t=g()({locateFile:t=>l()(t).call(t,".wasm")?b():t});return new(c())(((e,r)=>{t.then((t=>{this.codec=t,this.decoder=new t.JpegLSDecoder,e()}),r)}))}},R=new class extends m{_initialize(){if(this.codec)return c().resolve();const t=_()({locateFile:t=>l()(t).call(t,".wasm")?P():t});return new(c())(((e,r)=>{t.then((t=>{this.codec=t,this.decoder=new t.JPEGDecoder,e()}),r)}))}};let W;n({taskType:"decodeAndTransformTask",_handler:function(t,e){const{bitsAllocated:r,columns:n,rows:o,samplesPerPixel:a,pixelRepresentation:u,frame:c,sopInstanceUID:f,metadata:l,iccProfiles:p}=t.data;(async function({bitsAllocated:t,columns:e,rows:r,samplesPerPixel:n,pixelRepresentation:o,frame:a}){let u=new Uint8Array(a);const c=E()(u),f=function(t){var e;return i()(e=t.toString(16)).call(e,2,"0").toUpperCase()};let l;if(null==c)"FF"===f(u[u.length-3])&&"D9"===f(u[u.length-2])&&"00"===f(u[u.length-1])?(l="image/jp2",u=new Uint8Array(u.buffer,0,u.length-1)):l="FF"===f(u[u.length-2])&&"D9"===f(u[u.length-1])?"image/jp2":"application/octet-stream";else if("F7"===f(u[3])||"E8"===f(u[3]))l="image/jls";else{l=new(s())(["image/jpeg","image/jls","image/jp2","image/jpx"]).has(c.mime)?c.mime:"application/octet-stream"}if("application/octet-stream"===l)return console.debug(`decode uncompressed frame with media type "${l}"`),u;console.debug(`decode compressed frame with media type "${l}"`);const{frameBuffer:p,frameInfo:d}=await async function(t,e){if("image/jpeg"===t)return await R.decode(e);if("image/jp2"===t||"image/jpx"===t)return await O.decode(e);if("image/jls"===t)return await F.decode(e)}(l,u);if(d.bitsPerSample!==t)throw new Error(`Frame does not have expected Bits Allocated: ${d.bitsPerSample} instead of ${t}.`);if(d.height!==r)throw new Error(`Frame does not have expected Rows: ${d.height} instead of ${r}.`);if(d.width!==e)throw new Error(`Frame does not have expected Columns: ${d.width} instead of ${e}.`);if(d.componentCount!==n)throw new Error(`Frame does not have expected Samples Per Pixel: ${d.componentCount} instead of ${n}.`);if(null!=d.isSigned){const t=1===o;if(d.isSigned!==t)throw new Error(`Frame does not have expected Pixel Representation: "${d.isSigned}" instead of "${t}".`)}const h=e*r*n*(t/8);if(h!==p.length)throw new Error(`Frame value does not have expected length: ${p.length} instead of ${h}.`);return p})({bitsAllocated:r,columns:n,rows:o,samplesPerPixel:a,pixelRepresentation:u,frame:c}).then((t=>{null!=p&&p.length>0?(void 0===W&&(W=new S(l,p)),W.transform(f,t).then((t=>{e({frameData:t.buffer},[t.buffer])})).catch((t=>{throw new Error(`Failed to transform frame: ${t}`)}))):e({frameData:t.buffer},[t.buffer])})).catch((t=>{throw new Error(`Failed to decode frame: ${t}`)}))}})})()})();
2
+ //# sourceMappingURL=index.worker.min.worker.js.map