dicom-microscopy-viewer
Version:
Interactive web-based viewer for DICOM Microscopy Images
2 lines • 219 kB
JavaScript
/*! For license information please see index.worker.bundle.min.worker.js.LICENSE.txt */
(()=>{var __webpack_modules__={7:(t,e,r)=>{r(5227);var n=r(9839);t.exports=n.Object.getPrototypeOf},15:()=>{},45:(t,e,r)=>{var n=r(5200);t.exports=n},72:(t,e,r)=>{var n=r(1915);t.exports=function(t,e,r,o){return o&&o.enumerable?t[e]=r:n(t,e,r),t}},137:(t,e,r)=>{var n=r(7264);t.exports=n({}.isPrototypeOf)},195:(t,e,r)=>{r(2447)("iterator")},214:(t,e,r)=>{"use strict";var n=r(8171),o=r(4265),i=r(8980),a=r(2293),s=r(227).f,u=r(6060),c=r(9839),f=r(9520),l=r(1915),p=r(577),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.target,x=t.global,T=t.stat,P=t.proto,C=x?n:T?n[_]:(n[_]||{}).prototype,$=x?c:c[_]||l(c,_,{})[_],A=$.prototype;for(v in e)o=!(r=u(x?v:_+(T?".":"#")+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],o&&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=_+"Prototype")||l(c,h,{}),l(c[h],v,m),t.real&&A&&(r||!A[v])&&l(A,v,m)))}},227:(t,e,r)=>{var n=r(4636),o=r(7021),i=r(9669),a=r(1972),s=r(8741),u=r(7721),c=r(577),f=r(9213),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])}},259:(t,e,r)=>{var n=r(9164);t.exports=n},295:(t,e,r)=>{r(5573)},331:(t,e,r)=>{var n=r(214),o=r(7264),i=r(1189),a=r(6514),s=r(577),u=r(4817).f,c=r(7504),f=r(1834),l=r(8700),p=r(3328),d=r(4632),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},364:(t,e,r)=>{"use strict";var n=r(214),o=r(2587),i=r(4303);n({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=o.f(this),r=i(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}})},478:(t,e,r)=>{var n=r(4636),o=r(3727);t.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},485:(t,e,r)=>{r(2447)("replace")},544:(t,e,r)=>{"use strict";var n=r(8741),o=r(1221),i=r(5789),a=r(2333),s=r(4817).f,u=r(2176),c=r(8497),f=r(6107),l=r(4636),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.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,c(void 0,!0)):c("keys"==r?n:"values"==r?e[n]:[n,e[n]],!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){}},577:(t,e,r)=>{var n=r(7264),o=r(4357),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},584:(t,e,r)=>{t.exports=r(8934)},665:(t,e,r)=>{var n=r(8008);t.exports=n},677:t=>{t.exports=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}},678:(t,e,r)=>{var n=r(5909),o=TypeError;t.exports=function(t){if(n(t))throw o("Can't call method on "+t);return t}},752:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},792:(t,e,r)=>{t.exports=r(6530)},793:(t,e,r)=>{r(2447)("search")},879:(t,e,r)=>{var n=r(2427),o=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},889:(t,e,r)=>{"use strict";var n=r(214),o=r(8171),i=r(7021),a=r(7264),s=r(6107),u=r(4636),c=r(3807),f=r(3727),l=r(577),p=r(137),d=r(7639),h=r(8741),v=r(7721),m=r(879),y=r(1972),g=r(8872),w=r(2688),b=r(7504),_=r(1834),x=r(2997),T=r(227),P=r(4817),C=r(6321),$=r(9669),A=r(72),k=r(6090),S=r(9441),E=r(7783),j=r(1189),O=r(3328),F=r(915),R=r(3663),W=r(2447),I=r(4658),D=r(5663),U=r(2333),M=r(7165).forEach,L=E("hidden"),q="Symbol",H="prototype",z=U.set,N=U.getterFor(q),B=Object[H],V=o.Symbol,G=V&&V[H],X=o.TypeError,J=o.QObject,Y=T.f,K=P.f,Z=_.f,Q=$.f,tt=a([].push),et=S("symbols"),rt=S("op-symbols"),nt=S("wks"),ot=!J||!J[H]||!J[H].findChild,it=u&&f((function(){return 7!=g(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Y(B,e);n&&delete B[e],K(t,e,r),n&&t!==B&&K(B,e,n)}:K,at=function(t,e){var r=et[t]=g(G);return z(r,{type:q,tag:t,description:e}),u||(r.description=e),r},st=function(t,e,r){t===B&&st(rt,e,r),d(t);var n=v(e);return d(r),l(et,n)?(r.enumerable?(l(t,L)&&t[L][n]&&(t[L][n]=!1),r=g(r,{enumerable:y(0,!1)})):(l(t,L)||K(t,L,y(1,{})),t[L][n]=!0),it(t,n,r)):K(t,n,r)},ut=function(t,e){d(t);var r=h(e),n=w(r).concat(pt(r));return M(n,(function(e){u&&!i(ct,r,e)||st(t,e,r[e])})),t},ct=function(t){var e=v(t),r=i(Q,this,e);return!(this===B&&l(et,e)&&!l(rt,e))&&(!(r||!l(this,e)||!l(et,e)||l(this,L)&&this[L][e])||r)},ft=function(t,e){var r=h(t),n=v(e);if(r!==B||!l(et,n)||l(rt,n)){var o=Y(r,n);return!o||!l(et,n)||l(r,L)&&r[L][n]||(o.enumerable=!0),o}},lt=function(t){var e=Z(h(t)),r=[];return M(e,(function(t){l(et,t)||l(j,t)||tt(r,t)})),r},pt=function(t){var e=t===B,r=Z(e?rt:h(t)),n=[];return M(r,(function(t){!l(et,t)||e&&!l(B,t)||tt(n,et[t])})),n};c||(A(G=(V=function(){if(p(G,this))throw X("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=O(t),r=function(t){this===B&&i(r,rt,t),l(this,L)&&l(this[L],e)&&(this[L][e]=!1),it(this,e,y(1,t))};return u&&ot&&it(B,e,{configurable:!0,set:r}),at(e,t)})[H],"toString",(function(){return N(this).tag})),A(V,"withoutSetter",(function(t){return at(O(t),t)})),$.f=ct,P.f=st,C.f=ut,T.f=ft,b.f=_.f=lt,x.f=pt,R.f=function(t){return at(F(t),t)},u&&(k(G,"description",{configurable:!0,get:function(){return N(this).description}}),s||A(B,"propertyIsEnumerable",ct,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:V}),M(w(nt),(function(t){W(t)})),n({target:q,stat:!0,forced:!c},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?g(t):ut(g(t),e)},defineProperty:st,defineProperties:ut,getOwnPropertyDescriptor:ft}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:lt}),I(),D(V,q),j[L]=!0},907:(t,e,r)=>{r(2447)("dispose")},915:(t,e,r)=>{var n=r(8171),o=r(9441),i=r(577),a=r(3328),s=r(3807),u=r(9856),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]}},947:(t,e,r)=>{var n,o,i,a,s,u=r(8171),c=r(9520),f=r(227).f,l=r(2409).set,p=r(3801),d=r(4183),h=r(1324),v=r(4109),m=r(8688),y=u.MutationObserver||u.WebKitMutationObserver,g=u.document,w=u.process,b=u.Promise,_=f(u,"queueMicrotask"),x=_&&_.value;if(!x){var T=new p,P=function(){var t,e;for(m&&(t=w.domain)&&t.exit();e=T.get();)try{e()}catch(t){throw T.head&&n(),t}t&&t.enter()};d||m||v||!y||!g?!h&&b&&b.resolve?((a=b.resolve(void 0)).constructor=b,s=c(a.then,a),n=function(){s(P)}):m?n=function(){w.nextTick(P)}:(l=c(l,u),n=function(){l(P)}):(o=!0,i=g.createTextNode(""),new y(P).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),x=function(t){T.head||n(),T.add(t)}}t.exports=x},964:t=>{t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},975:(t,e,r)=>{var n=r(6676),o=TypeError;t.exports=function(t){if(n(t))throw o("The method doesn't accept regular expressions");return t}},1012:(t,e,r)=>{r(1488);var n=r(9839).Object;t.exports=function(t,e){return n.create(t,e)}},1044:(t,e,r)=>{t.exports=r(2614)},1157:(t,e,r)=>{t.exports=r(1571)},1189:t=>{t.exports={}},1208:(t,e,r)=>{r(2447)("matcher")},1221:t=>{t.exports=function(){}},1242:(t,e,r)=>{t.exports=r(792)},1270:(t,e,r)=>{var n=r(214),o=r(9703),i=r(4265),a=r(7021),s=r(7264),u=r(3727),c=r(2293),f=r(6117),l=r(2768),p=r(1829),d=r(3807),h=String,v=o("JSON","stringify"),m=s(/./.exec),y=s("".charAt),g=s("".charCodeAt),w=s("".replace),b=s(1..toString),_=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,T=/^[\uDC00-\uDFFF]$/,P=!d||u((function(){var t=o("Symbol")();return"[null]"!=v([t])||"{}"!=v({a:t})||"{}"!=v(Object(t))})),C=u((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),$=function(t,e){var r=l(arguments),n=p(e);if(c(n)||void 0!==t&&!f(t))return r[1]=function(t,e){if(c(n)&&(e=a(n,this,h(t),e)),!f(e))return e},i(v,null,r)},A=function(t,e,r){var n=y(r,e-1),o=y(r,e+1);return m(x,t)&&!m(T,o)||m(T,t)&&!m(x,n)?"\\u"+b(g(t,0),16):t};v&&n({target:"JSON",stat:!0,arity:3,forced:P||C},{stringify:function(t,e,r){var n=l(arguments),o=i(P?$:v,null,n);return C&&"string"==typeof o?w(o,_,A):o}})},1308:(t,e,r)=>{var n,o,i=r(8171),a=r(752),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},1324:(t,e,r)=>{var n=r(752);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},1341:(t,e,r)=>{var n=r(1433);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},1432: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 Ne))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&&Q("no native wasm support detected");var _=!1,x="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function T(t,e,r){for(var n=e+r,o=e;t[o]&&!(o>=n);)++o;if(o-e>16&&t.subarray&&x)return x.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?T(E,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,E,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,E,j,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(E.subarray(t,r));for(var i="",a=0;!(a>=e/2);++a){var s=j[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);j[e>>1]=a,e+=2}return j[e>>1]=0,e-n}function L(t){return 2*t.length}function q(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 H(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 z(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 N(t){var e=A(t)+1,r=Ue(e);return r&&C(t,S,r,e),r}function B(t){k=t,o.HEAP8=S=new Int8Array(t),o.HEAP16=j=new Int16Array(t),o.HEAP32=F=new Int32Array(t),o.HEAPU8=E=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 V,G=[],X=[],J=[],Y=0,K=null,Z=null;function Q(t){o.onAbort&&o.onAbort(t),w(t="Aborted("+t+")"),_=!0,t+=". Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(t);throw n(e),e}o.preloadedImages={},o.preloadedAudios={};var tt,et,rt="data:application/octet-stream;base64,";function nt(t){return t.startsWith(rt)}function ot(t){return t.startsWith("file://")}function it(t){try{if(t==tt&&y)return new Uint8Array(y);if(s)return s(t);throw"both async and sync fetching of the wasm failed"}catch(t){Q(t)}}function at(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var r=e.func;"number"==typeof r?void 0===e.arg?ut(r)():ut(r)(e.arg):r(void 0===e.arg?null:e.arg)}else e(o)}}nt(tt="dicomiccwasm.wasm")||(et=tt,tt=o.locateFile?o.locateFile(et,m):m+et);var st=[];function ut(t){var e=st[t];return e||(t>=st.length&&(st.length=t+1),st[t]=e=V.get(t)),e}var ct={buffers:[null,[],[]],printChar:function(t,e){var r=ct.buffers[t];0===e||10===e?((1===t?g:w)(T(r,0)),r.length=0):r.push(e)},varargs:void 0,get:function(){return ct.varargs+=4,F[ct.varargs-4>>2]},getStr:function(t){return P(t)},get64:function(t,e){return t}},ft={};function lt(t){for(;t.length;){var e=t.pop();t.pop()(e)}}function pt(t){return this.fromWireType(R[t>>2])}var dt={},ht={},vt={},mt=48,yt=57;function gt(t){if(void 0===t)return"_unknown";var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=mt&&e<=yt?"_"+t:t}function wt(t,e){return t=gt(t),new Function("body","return function "+t+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(e)}function bt(t,e){var r=wt(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 _t=void 0;function xt(t){throw new _t(t)}function Tt(t,e,r){function n(e){var n=r(e);n.length!==t.length&&xt("Mismatched type converter count");for(var o=0;o<t.length;++o)St(t[o],n[o])}t.forEach((function(t){vt[t]=e}));var o=new Array(e.length),i=[],a=0;e.forEach((function(t,e){ht.hasOwnProperty(t)?o[e]=ht[t]:(i.push(t),dt.hasOwnProperty(t)||(dt[t]=[]),dt[t].push((function(){o[e]=ht[t],++a===i.length&&n(o)})))})),0===i.length&&n(o)}function Pt(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 Ct=void 0;function $t(t){for(var e="",r=t;E[r];)e+=Ct[E[r++]];return e}var At=void 0;function kt(t){throw new At(t)}function St(t,e,r={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=e.name;if(t||kt('type "'+n+'" must have a positive integer typeid pointer'),ht.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;kt("Cannot register type '"+n+"' twice")}if(ht[t]=e,delete vt[t],dt.hasOwnProperty(t)){var o=dt[t];delete dt[t],o.forEach((function(t){t()}))}}function Et(t){if(!(this instanceof Zt))return!1;if(!(t instanceof Zt))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 jt(t){kt(t.$$.ptrType.registeredClass.name+" instance already deleted")}var Ot=!1;function Ft(t){}function Rt(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 Wt(t,e,r){if(e===r)return t;if(void 0===r.baseClass)return null;var n=Wt(t,e,r.baseClass);return null===n?null:r.downcast(n)}var It={};function Dt(){return Object.keys(zt).length}function Ut(){var t=[];for(var e in zt)zt.hasOwnProperty(e)&&t.push(zt[e]);return t}var Mt=[];function Lt(){for(;Mt.length;){var t=Mt.pop();t.$$.deleteScheduled=!1,t.delete()}}var qt=void 0;function Ht(t){qt=t,Mt.length&&qt&&qt(Lt)}var zt={};function Nt(t,e){return e=function(t,e){for(void 0===e&&kt("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e}(t,e),zt[e]}function Bt(t,e){return e.ptrType&&e.ptr||xt("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&xt("Both smartPtrType and smartPtr must be specified"),e.count={value:1},Gt(Object.create(t,{$$:{value:e}}))}function Vt(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=Nt(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?Bt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):Bt(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var i,a=this.registeredClass.getActualType(e),s=It[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var u=Wt(e,this.registeredClass,i.registeredClass);return null===u?o.call(this):this.isSmartPointer?Bt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u,smartPtrType:this,smartPtr:t}):Bt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u})}function Gt(t){return"undefined"==typeof FinalizationRegistry?(Gt=t=>t,t):(Ot=new FinalizationRegistry((t=>{Rt(t.$$)})),Gt=t=>{var e=t.$$;if(e.smartPtr){var r={$$:e};Ot.register(t,r,t)}return t},Ft=t=>Ot.unregister(t),Gt(t))}function Xt(){if(this.$$.ptr||jt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t,e=Gt(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 Jt(){this.$$.ptr||jt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&kt("Object already scheduled for deletion"),Ft(this),Rt(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Yt(){return!this.$$.ptr}function Kt(){return this.$$.ptr||jt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&kt("Object already scheduled for deletion"),Mt.push(this),1===Mt.length&&qt&&qt(Lt),this.$$.deleteScheduled=!0,this}function Zt(){}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)||kt("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 te(t,e,r){o.hasOwnProperty(t)?((void 0===r||void 0!==o[t].overloadTable&&void 0!==o[t].overloadTable[r])&&kt("Cannot register public name '"+t+"' twice"),Qt(o,t,t),o.hasOwnProperty(r)&&kt("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 ee(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 re(t,e,r){for(;e!==r;)e.upcast||kt("Expected null or instance of "+r.name+", got an instance of "+e.name),t=e.upcast(t),e=e.baseClass;return t}function ne(t,e){if(null===e)return this.isReference&&kt("null is not a valid "+this.name),0;e.$$||kt('Cannot pass "'+Ce(e)+'" as a '+this.name),e.$$.ptr||kt("Cannot pass deleted object as a pointer of type "+this.name);var r=e.$$.ptrType.registeredClass;return re(e.$$.ptr,r,this.registeredClass)}function oe(t,e){var r;if(null===e)return this.isReference&&kt("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;e.$$||kt('Cannot pass "'+Ce(e)+'" as a '+this.name),e.$$.ptr||kt("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&kt("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=re(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&kt("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:kt("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:kt("Unsupporting sharing policy")}return r}function ie(t,e){if(null===e)return this.isReference&&kt("null is not a valid "+this.name),0;e.$$||kt('Cannot pass "'+Ce(e)+'" as a '+this.name),e.$$.ptr||kt("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&kt("Cannot convert argument of type "+e.$$.ptrType.name+" to parameter type "+this.name);var r=e.$$.ptrType.registeredClass;return re(e.$$.ptr,r,this.registeredClass)}function ae(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t}function se(t){this.rawDestructor&&this.rawDestructor(t)}function ue(t){null!==t&&t.delete()}function ce(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=oe:n?(this.toWireType=ne,this.destructorFunction=null):(this.toWireType=ie,this.destructorFunction=null)}function fe(t,e,r){o.hasOwnProperty(t)||xt("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 le(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):ut(e).apply(null,r)}function pe(t,e){var r,n,o,i=(t=$t(t)).includes("j")?(r=t,n=e,o=[],function(){return o.length=0,Object.assign(o,arguments),le(r,n,o)}):ut(e);return"function"!=typeof i&&kt("unknown function pointer with signature "+t+": "+e),i}var de=void 0;function he(t){var e=Le(t),r=$t(e);return Me(e),r}function ve(t,e){var r=[],n={};throw e.forEach((function t(e){n[e]||ht[e]||(vt[e]?vt[e].forEach(t):(r.push(e),n[e]=!0))})),new de(t+": "+r.map(he).join([", "]))}function me(t,e){for(var r=[],n=0;n<t;n++)r.push(F[(e>>2)+n]);return r}function ye(t,e){if(!(t instanceof Function))throw new TypeError("new_ called with constructor type "+typeof t+" which is not a function");var r=wt(t.name||"unknownFunctionName",(function(){}));r.prototype=t.prototype;var n=new r,o=t.apply(n,e);return o instanceof Object?o:n}function ge(t,e,r,n,o){var i=e.length;i<2&&kt("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 "+gt(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=[kt,n,o,lt,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),ye(Function,h).apply(null,v)}var we=[],be=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function _e(t){t>4&&0==--be[t].refcount&&(be[t]=void 0,we.push(t))}function xe(){for(var t=0,e=5;e<be.length;++e)void 0!==be[e]&&++t;return t}function Te(){for(var t=5;t<be.length;++t)if(void 0!==be[t])return be[t];return null}var Pe={toValue:function(t){return t||kt("Cannot use deleted val. handle = "+t),be[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=we.length?we.pop():be.length;return be[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 $e(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 Ae(t,e,r){switch(e){case 0:return r?function(t){return S[t]}:function(t){return E[t]};case 1:return r?function(t){return j[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 ke(t,e){var r=ht[t];return void 0===r&&kt(e+" has unknown type "+he(t)),r}var Se={};function Ee(t){var e=Se[t];return void 0===e?$t(t):e}var je=[];function Oe(){return"object"==typeof globalThis?globalThis:Function("return this")()}var Fe=[],Re={};function We(t){try{return b.grow(t-k.byteLength+65535>>>16),B(b.buffer),1}catch(t){}}_t=o.InternalError=bt(Error,"InternalError"),function(){for(var t=new Array(256),e=0;e<256;++e)t[e]=String.fromCharCode(e);Ct=t}(),At=o.BindingError=bt(Error,"BindingError"),Zt.prototype.isAliasOf=Et,Zt.prototype.clone=Xt,Zt.prototype.delete=Jt,Zt.prototype.isDeleted=Yt,Zt.prototype.deleteLater=Kt,o.getInheritedInstanceCount=Dt,o.getLiveInheritedInstances=Ut,o.flushPendingDeletes=Lt,o.setDelayFunction=Ht,ce.prototype.getPointee=ae,ce.prototype.destructor=se,ce.prototype.argPackAdvance=8,ce.prototype.readValueFromPointer=pt,ce.prototype.deleteObject=ue,ce.prototype.fromWireType=Vt,de=o.UnboundTypeError=bt(Error,"UnboundTypeError"),o.count_emval_handles=xe,o.get_first_emval=Te;var Ie,De={a:function(t,e,r,n){Q("Assertion failed: "+P(t)+", at: "+[e?P(e):"unknown filename",r,n?P(n):"unknown function"])},j:function(t,e,r){return ct.varargs=r,0},A:function(t,e,r){return ct.varargs=r,0},B:function(t,e,r){ct.varargs=r},w:function(t){},x:function(t){},D:function(t){var e=ft[t];delete ft[t];var r=e.rawConstructor,n=e.rawDestructor,o=e.fields;Tt([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)),lt(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:pt,destructorFunction:n}]}))},s:function(t,e,r,n,o){},H:function(t,e,r,n,o){var i=Pt(r);St(t,{name:e=$t(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=j;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=$t(f),i=pe(o,i),s&&(s=pe(a,s)),c&&(c=pe(u,c)),p=pe(l,p);var d=gt(f);te(d,(function(){ve("Cannot construct "+f+" due to unbound types",[n])})),Tt([t,e,r],n?[n]:[],(function(e){var r,o;e=e[0],o=n?(r=e.registeredClass).instancePrototype:Zt.prototype;var a=wt(d,(function(){if(Object.getPrototypeOf(this)!==u)throw new At("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new At(f+" has no accessible constructor");var t=l.constructor_body[arguments.length];if(void 0===t)throw new At("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 ee(f,a,u,p,r,i,s,c),h=new ce(f,l,!0,!1,!1),v=new ce(f+"*",l,!1,!1,!1),m=new ce(f+" const*",l,!1,!0,!1);return It[t]={pointerType:v,constPointerType:m},fe(d,a),[h,v,m]}))},q:function(t,e,r,n,o,i){var a;e>0||Q(a);var s=me(e,r);o=pe(n,o),Tt([],[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 At("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]=()=>{ve("Cannot construct "+t.name+" due to unbound types",s)},Tt([],s,(function(n){return n.splice(1,0,null),t.registeredClass.constructor_body[e-1]=ge(r,n,null,o,i),[]})),[]}))},g:function(t,e,r,n,o,i,a,s){var u=me(r,n);e=$t(e),i=pe(o,i),Tt([],[t],(function(t){var n=(t=t[0]).name+"."+e;function o(){ve("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),Tt([],u,(function(o){var s=ge(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){St(t,{name:e=$t(e),fromWireType:function(t){var e=Pe.toValue(t);return _e(t),e},toWireType:function(t,e){return Pe.toHandle(e)},argPackAdvance:8,readValueFromPointer:pt,destructorFunction:null})},k:function(t,e,r){var n=Pt(r);St(t,{name:e=$t(e),fromWireType:function(t){return t},toWireType:function(t,e){return e},argPackAdvance:8,readValueFromPointer:$e(e,n),destructorFunction:null})},n:function(t,e,r,n,o,i){var a=me(e,r);t=$t(t),o=pe(n,o),te(t,(function(){ve("Cannot call "+t+" due to unbound types",a)}),e-1),Tt([],a,(function(r){var n=[r[0],null].concat(r.slice(1));return fe(t,ge(t,n,null,o,i),e-1),[]}))},c:function(t,e,r,n,o){e=$t(e),-1===o&&(o=4294967295);var i=Pt(r),a=t=>t;if(0===n){var s=32-8*r;a=t=>t<<s>>>s}var u=e.includes("unsigned");St(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:Ae(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)}St(t,{name:r=$t(r),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},l:function(t,e){var r="std::string"===(e=$t(e));St(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==E[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(E[t+4+i]);e=u.join("")}return Me(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||kt("Cannot pass non-string to std::string");var o=(r&&n?()=>A(e):()=>e.length)(),i=Ue(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&&(Me(i),kt("String has UTF-16 code units that do not fit in 8 bits")),E[i+4+a]=s}else for(a=0;a<o;++a)E[i+4+a]=e[a];return null!==t&&t.push(Me,i),i},argPackAdvance:8,readValueFromPointer:pt,destructorFunction:function(t){Me(t)}})},f:function(t,e,r){var n,o,i,a,s;r=$t(r),2===e?(n=U,o=M,a=L,i=()=>O,s=1):4===e&&(n=q,o=H,a=z,i=()=>R,s=2),St(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 Me(t),r},toWireType:function(t,n){"string"!=typeof n&&kt("Cannot pass non-string to C++ string type "+r);var i=a(n),u=Ue(4+i+e);return R[u>>2]=i>>s,o(n,u+4,i+e),null!==t&&t.push(Me,u),u},argPackAdvance:8,readValueFromPointer:pt,destructorFunction:function(t){Me(t)}})},R:function(t,e,r,n,o,i){ft[t]={name:$t(e),rawConstructor:pe(r,n),rawDestructor:pe(o,i),fields:[]}},e:function(t,e,r,n,o,i,a,s,u,c){ft[t].fields.push({fieldName:$t(e),getterReturnType:r,getter:pe(n,o),getterContext:i,setterArgumentType:a,setter:pe(s,u),setterContext:c})},I:function(t,e){St(t,{isVoid:!0,name:e=$t(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(t,e){}})},O:function(t,e,r){t=Pe.toValue(t),e=ke(e,"emval::as");var n=[],o=Pe.toHandle(n);return F[r>>2]=o,e.toWireType(n,t)},K:function(t,e,r,n){(t=je[t])(e=Pe.toValue(e),r=Ee(r),null,n)},d:_e,p:function(t){return 0===t?Pe.toHandle(Oe()):(t=Ee(t),Pe.toHandle(Oe()[t]))},L:function(t,e){var r=function(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=ke(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=Fe[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 "+gt("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=ye(Function,a).apply(null,s);return p=h,d=je.length,je.push(p),i=d,Fe[o]=i,i},P:function(t,e){return t=Pe.toValue(t),e=Pe.toValue(e),Pe.toHandle(t[e])},m:function(t){t>4&&(be[t].refcount+=1)},o:function(t,e,r,n){t=Pe.toValue(t);var i=Re[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)(ke,o,Pe.toHandle)}(e),Re[e]=i),i(t,r,n)},Q:function(t){return Pe.toHandle(Ee(t))},N:function(t){lt(Pe.toValue(t)),_e(t)},M:function(t,e){var r=(t=ke(t,"_emval_take_value")).readValueFromPointer(e);return Pe.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=N(f),d=N(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(){Q("")},F:function(t,e,r){E.copyWithin(t,e,e+r)},v:function(t){var e,r,n=E.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),We(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=ct.getStreamFromFD(t),i=ct.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++)ct.printChar(t,E[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}},Ue=(function(){var t={a:De};function e(t,e){var r,n=t.exports;o.asm=n,B((b=o.asm.S).buffer),V=o.asm.V,r=o.asm.T,X.unshift(r),function(t){if(Y--,o.monitorRunDependencies&&o.monitorRunDependencies(Y),0==Y&&(null!==K&&(clearInterval(K),K=null),Z)){var e=Z;Z=null,e()}}()}function r(t){e(t.instance)}function i(e){return function(){if(!y&&(d||h)){if("function"==typeof fetch&&!ot(tt))return fetch(tt,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+tt+"'";return t.arrayBuffer()})).catch((function(){return it(tt)}));if(a)return new Promise((function(t,e){a(tt,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return it(tt)}))}().then((function(e){return WebAssembly.instantiate(e,t)})).then((function(t){return t})).then(e,(function(t){w("failed to asynchronously prepare wasm: "+t),Q(t)}))}if(Y++,o.monitorRunDependencies&&o.monitorRunDependencies(Y),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||nt(tt)||ot(tt)||"function"!=typeof fetch?i(r):fetch(tt,{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(Ue=o._malloc=o.asm.U).apply(null,arguments)}),Me=o._free=function(){return(Me=o._free=o.asm.W).apply(null,arguments)},Le=o.___getTypeName=function(){return(Le=o.___getTypeName=o.asm.X).apply(null,arguments)},qe=(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(qe=o.stackSave=o.asm.Z).apply(null,arguments)}),He=o.stackRestore=function(){return(He=o.stackRestore=o.asm._).apply(null,arguments)},ze=o.stackAlloc=function(){return(ze=o.stackAlloc=o.asm.$).apply(null,arguments)};function Ne(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function Be(t){function r(){Ie||(Ie=!0,o.calledRun=!0,_||(at(X),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(),J.unshift(t);var t;at(J)}()))}t=t||p,Y>0||(function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)t=o.preRun.shift(),G.unshift(t);var t;at(G)}(),Y>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=qe()),u[f]=l(n[f])):u[f]=n[f]}var p=s.apply(null,u);return p=function(t){return 0!==c&&He(c),function(t){return"string"===e?P(t):"boolean"===e?Boolean(t):t}(t)}(p)},Z=function t(){Ie||Be(),Ie||(Z=t)},o.run=Be,o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Be(),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)},1433:(t,e,r)=>{var n=r(9512),o=r(8797),i=r(6514),a=r(915)("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}},1463:(t,e,r)=>{var n=r(72);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}},1488:(t,e,r)=>{r(214)({target:"Object",stat:!0,sham:!r(4636)},{create:r(8872)})},1508:(t,e,r)=>{var n=r(2447),o=r(4658);n("toPrimitive"),o()},1571:(t,e,r)=>{var n=r(7462);t.exports=n},1572:(t,e,r)=>{r(544),r(2131),r(8388),r(195);var n=r(3663);t.exports=n.f("iterator")},1603:(t,e,r)=>{r(3545)},1674: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(