@ohif/app 3.9.0-beta.77 → 3.9.0-beta.79
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.
- package/dist/{1169.bundle.a3d3d310f1d8d7e335bf.js → 1169.bundle.d32f38ab5aa329346850.js} +46 -106
- package/dist/{1202.bundle.1468f0e71fea0c593081.js → 1202.bundle.55f140afb05e1ad5512c.js} +503 -153
- package/dist/{2568.css → 1540.css} +1 -0
- package/dist/{1994.bundle.39ea4d1a48d42cdca49b.js → 1994.bundle.04ba989c747992f45c6e.js} +3 -3
- package/dist/{9824.bundle.8e8afc799f0534014fa9.js → 2119.bundle.142793bed5b53a2f4a30.js} +4 -4
- package/dist/{9824.css → 2119.css} +1 -0
- package/dist/{2650.bundle.1f7d90198b9e361dfb9c.js → 2650.bundle.feb3b241748314884ae4.js} +57 -35
- package/dist/{3117.bundle.c83d0f403d17104a7c4c.js → 3117.bundle.463d5fa4671a93939d36.js} +8 -7
- package/dist/{4210.bundle.f1af90765358215ca053.js → 4210.bundle.e81688aaa6aec1c4f973.js} +2 -2
- package/dist/{4842.bundle.11abbf3f8699b84a7537.js → 4842.bundle.9264e466874f0206d564.js} +12 -8
- package/dist/{5888.bundle.f48daf22ce156ac4956a.js → 5888.bundle.8b4c8f227376800c6e1d.js} +14 -7
- package/dist/{2417.bundle.4a0334c8c4047005979e.js → 5898.bundle.be696e0b355efc1c7f05.js} +1947 -1
- package/dist/{2281.bundle.b20397636c4b681f4463.js → 655.bundle.805114d0d89a4bd4d92d.js} +170 -66
- package/dist/{6591.bundle.092858f2e84426bc0010.js → 6591.bundle.5b4b8bfff223013aa46f.js} +15 -1
- package/dist/{7502.bundle.7f3a72a5571a00fda890.js → 7502.bundle.e37c3a247f287d282838.js} +4 -6
- package/dist/{3424.bundle.1b6101d721148c04242b.js → 79.bundle.b03daeeef3e6faf9dca3.js} +5 -47
- package/dist/{8993.bundle.256bb3c84d2564a5f3cf.js → 8993.bundle.23cd5f8560800a97d798.js} +39 -32
- package/dist/{2065.bundle.fc147f9fde903e0768f4.js → 8999.bundle.d9dbbf80990887877381.js} +13 -133
- package/dist/{9579.bundle.7212d7a737a71bb61502.js → 9579.bundle.f9c9be0c5ab6cddbde3d.js} +8 -7
- package/dist/{5516.bundle.f61b8aebe75f7bafd5b1.js → 962.bundle.c6dcf9d6c1d56ebff24d.js} +408 -179
- package/dist/app-config.js +1 -0
- package/dist/{app.bundle.e3ce3b1cf2fae5cedcd3.js → app.bundle.7851cb292073f6e7a0c5.js} +646 -349
- package/dist/index.html +1 -1
- package/dist/{polySeg.bundle.40b9a8c9006bb15691ee.js → polySeg.bundle.0a70e65fe89169ec7508.js} +1 -1
- package/dist/{suv-peak-worker.bundle.a70e70b9ef87c18b896c.js → suv-peak-worker.bundle.54d68bc1808ad3d77994.js} +1 -1
- package/dist/sw.js +1 -1
- package/package.json +18 -18
- package/dist/7604.bundle.42d3f08efb3a9eae4581.js +0 -1950
- package/dist/{1498.bundle.d8f5281952d09c57ef87.js → 1498.bundle.a2d05ac1f27d0c2d2c9f.js} +0 -0
- package/dist/{153.bundle.94f93195fab889e0add8.js → 153.bundle.52f9f8d3ecfc88f18ebb.js} +0 -0
- package/dist/{2791.bundle.597dca661f5f08060ad3.js → 2791.bundle.cdffc588e0401363be5c.js} +0 -0
- package/dist/{3497.bundle.a04a2444975bf50fddf8.js → 3497.bundle.512610422a2862584c55.js} +0 -0
- package/dist/{3962.bundle.db07d757866d3a3b20b3.js → 3962.bundle.0d49146b27c7b7dcb48a.js} +0 -0
- package/dist/{4353.bundle.c835b4ea70768a207c59.js → 4353.bundle.7aacb9d40bc20bb4aa36.js} +0 -0
- package/dist/{4978.bundle.c5d6cac06bcc9656c900.js → 4978.bundle.f580a489066e909c8dc9.js} +0 -0
- package/dist/{5793.bundle.eed3fe9019c31999efff.js → 5793.bundle.d1b4e887564bbb98752d.js} +0 -0
- package/dist/{6904.bundle.27abf08c0f2e4fe5e06d.js → 6904.bundle.da0d83fcd48a48cfaac1.js} +0 -0
- package/dist/{7246.bundle.d3f1bb1a40801b133810.js → 7246.bundle.32f7f871fb1016362af8.js} +0 -0
- package/dist/{7360.bundle.b28c83aa3910eaa427ee.js → 7360.bundle.4233f9f8747d6facdc54.js} +0 -0
- package/dist/{7376.bundle.1173819ab2acd8610f1e.js → 7376.bundle.f087dc1e0e16a41dedbe.js} +0 -0
- package/dist/{3424.css → 79.css} +1 -1
- /package/dist/{7913.bundle.5702ee8798da273c0c5d.js → 7913.bundle.207d7463f90bb92e4ab4.js} +0 -0
- /package/dist/{818.bundle.b64fae7e982e16a82ca2.js → 818.bundle.b6027359846cc90e32ff.js} +0 -0
- /package/dist/{8944.bundle.3bf7ef09ea87195b9e23.js → 8944.bundle.2c07f90c73692457ffa3.js} +0 -0
|
@@ -1029,8 +1029,8 @@ function WorkList({
|
|
|
1029
1029
|
};
|
|
1030
1030
|
});
|
|
1031
1031
|
const hasStudies = numOfStudies > 0;
|
|
1032
|
-
const versionNumber = "3.9.0-beta.
|
|
1033
|
-
const commitHash = "
|
|
1032
|
+
const versionNumber = "3.9.0-beta.79";
|
|
1033
|
+
const commitHash = "b2c0faf29df81898f4ea250c7cade2bd4849e367";
|
|
1034
1034
|
const menuOptions = [{
|
|
1035
1035
|
title: t('Header:About'),
|
|
1036
1036
|
icon: 'info',
|
|
@@ -1549,7 +1549,6 @@ function EmptyViewport() {
|
|
|
1549
1549
|
|
|
1550
1550
|
|
|
1551
1551
|
|
|
1552
|
-
|
|
1553
1552
|
function ViewerViewportGrid(props) {
|
|
1554
1553
|
const {
|
|
1555
1554
|
servicesManager,
|
|
@@ -1717,27 +1716,29 @@ function ViewerViewportGrid(props) {
|
|
|
1717
1716
|
displaySetInstanceUID: referencedDisplaySetInstanceUID
|
|
1718
1717
|
} = measurement;
|
|
1719
1718
|
const updatedViewports = _getUpdatedViewports(viewportId, referencedDisplaySetInstanceUID);
|
|
1720
|
-
|
|
1721
|
-
const viewport = updatedViewports?.[0];
|
|
1722
|
-
if (!viewport) {
|
|
1719
|
+
if (!updatedViewports[0]) {
|
|
1723
1720
|
console.warn('ViewportGrid::Unable to navigate to viewport containing', referencedDisplaySetInstanceUID);
|
|
1724
1721
|
return;
|
|
1725
1722
|
}
|
|
1726
|
-
viewport
|
|
1727
|
-
viewport.
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1723
|
+
// Arbitrarily assign the viewport to element 0
|
|
1724
|
+
// TODO - this should perform a search to find the most suitable viewport.
|
|
1725
|
+
updatedViewports[0] = {
|
|
1726
|
+
...updatedViewports[0]
|
|
1727
|
+
};
|
|
1728
|
+
const [viewport] = updatedViewports;
|
|
1729
|
+
|
|
1730
|
+
// Copy the viewport options to prevent modifying the internal data
|
|
1731
|
+
viewport.viewportOptions = {
|
|
1732
|
+
...viewport.viewportOptions,
|
|
1733
|
+
orientation: 'acquisition',
|
|
1734
|
+
// The preferred way to jump to the measurement view is to set the
|
|
1735
|
+
// view reference, as this can hold information such as the orientation
|
|
1736
|
+
// or zoom level required to display an annotation. The metadata attribute
|
|
1737
|
+
// of the measurement is a viewReference, so use it to show the measurement.
|
|
1738
|
+
// Longer term this should clear the view reference data
|
|
1739
|
+
viewReference: measurement.metadata,
|
|
1740
|
+
viewportType: measurement.metadata.volumeId ? 'volume' : null
|
|
1741
|
+
};
|
|
1741
1742
|
viewportGridService.setDisplaySetsForViewports(updatedViewports);
|
|
1742
1743
|
});
|
|
1743
1744
|
return () => {
|
|
@@ -1851,10 +1852,6 @@ function ViewerViewportGrid(props) {
|
|
|
1851
1852
|
numCols: numCols
|
|
1852
1853
|
}, getViewportPanes()));
|
|
1853
1854
|
}
|
|
1854
|
-
ViewerViewportGrid.propTypes = {
|
|
1855
|
-
viewportComponents: (prop_types_default()).array.isRequired,
|
|
1856
|
-
servicesManager: prop_types_default().instanceOf(Object).isRequired
|
|
1857
|
-
};
|
|
1858
1855
|
function _getViewportComponent(displaySets, viewportComponents, uiNotificationService) {
|
|
1859
1856
|
if (!displaySets || !displaySets.length) {
|
|
1860
1857
|
return components_EmptyViewport;
|
|
@@ -1910,15 +1907,15 @@ modes.push("@ohif/mode-preclinical-4d");
|
|
|
1910
1907
|
async function loadModule(module) {
|
|
1911
1908
|
if (typeof module !== 'string') return module;
|
|
1912
1909
|
if (module === "@ohif/extension-default") {
|
|
1913
|
-
const imported = await Promise.all(/* import() */[__webpack_require__.e(6904), __webpack_require__.e(818), __webpack_require__.e(3497), __webpack_require__.e(8993), __webpack_require__.e(
|
|
1910
|
+
const imported = await Promise.all(/* import() */[__webpack_require__.e(6904), __webpack_require__.e(818), __webpack_require__.e(3497), __webpack_require__.e(8993), __webpack_require__.e(5898), __webpack_require__.e(655), __webpack_require__.e(4757)]).then(__webpack_require__.bind(__webpack_require__, 10655));
|
|
1914
1911
|
return imported.default;
|
|
1915
1912
|
}
|
|
1916
1913
|
if (module === "@ohif/extension-cornerstone") {
|
|
1917
|
-
const imported = await Promise.all(/* import() */[__webpack_require__.e(6904), __webpack_require__.e(818), __webpack_require__.e(3497), __webpack_require__.e(8993), __webpack_require__.e(
|
|
1914
|
+
const imported = await Promise.all(/* import() */[__webpack_require__.e(6904), __webpack_require__.e(818), __webpack_require__.e(3497), __webpack_require__.e(8993), __webpack_require__.e(5898), __webpack_require__.e(5793), __webpack_require__.e(6010), __webpack_require__.e(655), __webpack_require__.e(962), __webpack_require__.e(1540)]).then(__webpack_require__.bind(__webpack_require__, 962));
|
|
1918
1915
|
return imported.default;
|
|
1919
1916
|
}
|
|
1920
1917
|
if (module === "@ohif/extension-measurement-tracking") {
|
|
1921
|
-
const imported = await Promise.all(/* import() */[__webpack_require__.e(6904), __webpack_require__.e(818), __webpack_require__.e(3497), __webpack_require__.e(8993), __webpack_require__.e(
|
|
1918
|
+
const imported = await Promise.all(/* import() */[__webpack_require__.e(6904), __webpack_require__.e(818), __webpack_require__.e(3497), __webpack_require__.e(8993), __webpack_require__.e(5898), __webpack_require__.e(1202), __webpack_require__.e(4530), __webpack_require__.e(655), __webpack_require__.e(7360), __webpack_require__.e(1994)]).then(__webpack_require__.bind(__webpack_require__, 64595));
|
|
1922
1919
|
return imported.default;
|
|
1923
1920
|
}
|
|
1924
1921
|
if (module === "@ohif/extension-cornerstone-dicom-sr") {
|
|
@@ -1926,11 +1923,11 @@ async function loadModule(module) {
|
|
|
1926
1923
|
return imported.default;
|
|
1927
1924
|
}
|
|
1928
1925
|
if (module === "@ohif/extension-cornerstone-dicom-seg") {
|
|
1929
|
-
const imported = await Promise.all(/* import() */[__webpack_require__.e(6904), __webpack_require__.e(818), __webpack_require__.e(3497), __webpack_require__.e(8993), __webpack_require__.e(
|
|
1926
|
+
const imported = await Promise.all(/* import() */[__webpack_require__.e(6904), __webpack_require__.e(818), __webpack_require__.e(3497), __webpack_require__.e(8993), __webpack_require__.e(5898), __webpack_require__.e(1202), __webpack_require__.e(2831), __webpack_require__.e(655), __webpack_require__.e(4210)]).then(__webpack_require__.bind(__webpack_require__, 18291));
|
|
1930
1927
|
return imported.default;
|
|
1931
1928
|
}
|
|
1932
1929
|
if (module === "@ohif/extension-cornerstone-dicom-pmap") {
|
|
1933
|
-
const imported = await Promise.all(/* import() */[__webpack_require__.e(6904), __webpack_require__.e(818), __webpack_require__.e(3497), __webpack_require__.e(8993), __webpack_require__.e(
|
|
1930
|
+
const imported = await Promise.all(/* import() */[__webpack_require__.e(6904), __webpack_require__.e(818), __webpack_require__.e(3497), __webpack_require__.e(8993), __webpack_require__.e(5898), __webpack_require__.e(1202), __webpack_require__.e(5793), __webpack_require__.e(6010), __webpack_require__.e(655), __webpack_require__.e(962), __webpack_require__.e(2119)]).then(__webpack_require__.bind(__webpack_require__, 78491));
|
|
1934
1931
|
return imported.default;
|
|
1935
1932
|
}
|
|
1936
1933
|
if (module === "@ohif/extension-cornerstone-dynamic-volume") {
|
|
@@ -1938,7 +1935,7 @@ async function loadModule(module) {
|
|
|
1938
1935
|
return imported.default;
|
|
1939
1936
|
}
|
|
1940
1937
|
if (module === "@ohif/extension-dicom-microscopy") {
|
|
1941
|
-
const imported = await Promise.all(/* import() */[__webpack_require__.e(5931), __webpack_require__.e(
|
|
1938
|
+
const imported = await Promise.all(/* import() */[__webpack_require__.e(5931), __webpack_require__.e(8999)]).then(__webpack_require__.bind(__webpack_require__, 38999));
|
|
1942
1939
|
return imported.default;
|
|
1943
1940
|
}
|
|
1944
1941
|
if (module === "@ohif/extension-dicom-pdf") {
|
|
@@ -6955,159 +6952,6 @@ const reconstructionIssues = {
|
|
|
6955
6952
|
};
|
|
6956
6953
|
|
|
6957
6954
|
|
|
6958
|
-
/***/ }),
|
|
6959
|
-
|
|
6960
|
-
/***/ 74440:
|
|
6961
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6962
|
-
|
|
6963
|
-
"use strict";
|
|
6964
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6965
|
-
/* harmony export */ O: () => (/* binding */ isImage)
|
|
6966
|
-
/* harmony export */ });
|
|
6967
|
-
/* harmony import */ var _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66050);
|
|
6968
|
-
|
|
6969
|
-
const imagesTypes = [_sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.ComputedRadiographyImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.DigitalXRayImageStorageForPresentation, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.DigitalXRayImageStorageForProcessing, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.DigitalMammographyXRayImageStorageForPresentation, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.DigitalMammographyXRayImageStorageForProcessing, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.DigitalIntraOralXRayImageStorageForPresentation, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.DigitalIntraOralXRayImageStorageForProcessing, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.CTImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.EnhancedCTImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.LegacyConvertedEnhancedCTImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.UltrasoundMultiframeImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.EnhancedUSVolumeStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.MRImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.EnhancedMRImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.EnhancedMRColorImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.LegacyConvertedEnhancedMRImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.UltrasoundImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.SecondaryCaptureImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.MultiframeSingleBitSecondaryCaptureImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.MultiframeGrayscaleByteSecondaryCaptureImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.MultiframeGrayscaleWordSecondaryCaptureImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.MultiframeTrueColorSecondaryCaptureImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.XRayAngiographicImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.EnhancedXAImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.XRayRadiofluoroscopicImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.EnhancedXRFImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.XRay3DAngiographicImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.XRay3DCraniofacialImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.BreastTomosynthesisImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.BreastProjectionXRayImageStorageForPresentation, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.BreastProjectionXRayImageStorageForProcessing, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.IntravascularOpticalCoherenceTomographyImageStorageForPresentation, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.IntravascularOpticalCoherenceTomographyImageStorageForProcessing, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.NuclearMedicineImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.VLEndoscopicImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.VideoEndoscopicImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.VLMicroscopicImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.VideoMicroscopicImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.VLSlideCoordinatesMicroscopicImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.VLPhotographicImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.VideoPhotographicImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.OphthalmicPhotography8BitImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.OphthalmicPhotography16BitImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.OphthalmicTomographyImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.VLWholeSlideMicroscopyImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.PositronEmissionTomographyImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.EnhancedPETImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.LegacyConvertedEnhancedPETImageStorage, _sopClassDictionary__WEBPACK_IMPORTED_MODULE_0__/* .sopClassDictionary */ .G.RTImageStorage];
|
|
6970
|
-
|
|
6971
|
-
/**
|
|
6972
|
-
* Checks whether dicom files with specified SOP Class UID have image data
|
|
6973
|
-
* @param {string} SOPClassUID - SOP Class UID to be checked
|
|
6974
|
-
* @returns {boolean} - true if it has image data
|
|
6975
|
-
*/
|
|
6976
|
-
const isImage = SOPClassUID => {
|
|
6977
|
-
if (!SOPClassUID) {
|
|
6978
|
-
return false;
|
|
6979
|
-
}
|
|
6980
|
-
return imagesTypes.indexOf(SOPClassUID) !== -1;
|
|
6981
|
-
};
|
|
6982
|
-
|
|
6983
|
-
/***/ }),
|
|
6984
|
-
|
|
6985
|
-
/***/ 66050:
|
|
6986
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6987
|
-
|
|
6988
|
-
"use strict";
|
|
6989
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6990
|
-
/* harmony export */ G: () => (/* binding */ sopClassDictionary),
|
|
6991
|
-
/* harmony export */ Z: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
6992
|
-
/* harmony export */ });
|
|
6993
|
-
// TODO: Deprecate since we have the same thing in dcmjs?
|
|
6994
|
-
const sopClassDictionary = {
|
|
6995
|
-
ComputedRadiographyImageStorage: '1.2.840.10008.5.1.4.1.1.1',
|
|
6996
|
-
DigitalXRayImageStorageForPresentation: '1.2.840.10008.5.1.4.1.1.1.1',
|
|
6997
|
-
DigitalXRayImageStorageForProcessing: '1.2.840.10008.5.1.4.1.1.1.1.1',
|
|
6998
|
-
DigitalMammographyXRayImageStorageForPresentation: '1.2.840.10008.5.1.4.1.1.1.2',
|
|
6999
|
-
DigitalMammographyXRayImageStorageForProcessing: '1.2.840.10008.5.1.4.1.1.1.2.1',
|
|
7000
|
-
DigitalIntraOralXRayImageStorageForPresentation: '1.2.840.10008.5.1.4.1.1.1.3',
|
|
7001
|
-
DigitalIntraOralXRayImageStorageForProcessing: '1.2.840.10008.5.1.4.1.1.1.3.1',
|
|
7002
|
-
CTImageStorage: '1.2.840.10008.5.1.4.1.1.2',
|
|
7003
|
-
EnhancedCTImageStorage: '1.2.840.10008.5.1.4.1.1.2.1',
|
|
7004
|
-
LegacyConvertedEnhancedCTImageStorage: '1.2.840.10008.5.1.4.1.1.2.2',
|
|
7005
|
-
UltrasoundMultiframeImageStorage: '1.2.840.10008.5.1.4.1.1.3.1',
|
|
7006
|
-
MRImageStorage: '1.2.840.10008.5.1.4.1.1.4',
|
|
7007
|
-
EnhancedMRImageStorage: '1.2.840.10008.5.1.4.1.1.4.1',
|
|
7008
|
-
MRSpectroscopyStorage: '1.2.840.10008.5.1.4.1.1.4.2',
|
|
7009
|
-
EnhancedMRColorImageStorage: '1.2.840.10008.5.1.4.1.1.4.3',
|
|
7010
|
-
LegacyConvertedEnhancedMRImageStorage: '1.2.840.10008.5.1.4.1.1.4.4',
|
|
7011
|
-
UltrasoundImageStorage: '1.2.840.10008.5.1.4.1.1.6.1',
|
|
7012
|
-
EnhancedUSVolumeStorage: '1.2.840.10008.5.1.4.1.1.6.2',
|
|
7013
|
-
SecondaryCaptureImageStorage: '1.2.840.10008.5.1.4.1.1.7',
|
|
7014
|
-
MultiframeSingleBitSecondaryCaptureImageStorage: '1.2.840.10008.5.1.4.1.1.7.1',
|
|
7015
|
-
MultiframeGrayscaleByteSecondaryCaptureImageStorage: '1.2.840.10008.5.1.4.1.1.7.2',
|
|
7016
|
-
MultiframeGrayscaleWordSecondaryCaptureImageStorage: '1.2.840.10008.5.1.4.1.1.7.3',
|
|
7017
|
-
MultiframeTrueColorSecondaryCaptureImageStorage: '1.2.840.10008.5.1.4.1.1.7.4',
|
|
7018
|
-
Sop12LeadECGWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.1.1',
|
|
7019
|
-
GeneralECGWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.1.2',
|
|
7020
|
-
AmbulatoryECGWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.1.3',
|
|
7021
|
-
HemodynamicWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.2.1',
|
|
7022
|
-
CardiacElectrophysiologyWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.3.1',
|
|
7023
|
-
BasicVoiceAudioWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.4.1',
|
|
7024
|
-
GeneralAudioWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.4.2',
|
|
7025
|
-
ArterialPulseWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.5.1',
|
|
7026
|
-
RespiratoryWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.6.1',
|
|
7027
|
-
GrayscaleSoftcopyPresentationStateStorage: '1.2.840.10008.5.1.4.1.1.11.1',
|
|
7028
|
-
ColorSoftcopyPresentationStateStorage: '1.2.840.10008.5.1.4.1.1.11.2',
|
|
7029
|
-
PseudoColorSoftcopyPresentationStateStorage: '1.2.840.10008.5.1.4.1.1.11.3',
|
|
7030
|
-
BlendingSoftcopyPresentationStateStorage: '1.2.840.10008.5.1.4.1.1.11.4',
|
|
7031
|
-
XAXRFGrayscaleSoftcopyPresentationStateStorage: '1.2.840.10008.5.1.4.1.1.11.5',
|
|
7032
|
-
XRayAngiographicImageStorage: '1.2.840.10008.5.1.4.1.1.12.1',
|
|
7033
|
-
EnhancedXAImageStorage: '1.2.840.10008.5.1.4.1.1.12.1.1',
|
|
7034
|
-
XRayRadiofluoroscopicImageStorage: '1.2.840.10008.5.1.4.1.1.12.2',
|
|
7035
|
-
EnhancedXRFImageStorage: '1.2.840.10008.5.1.4.1.1.12.2.1',
|
|
7036
|
-
XRay3DAngiographicImageStorage: '1.2.840.10008.5.1.4.1.1.13.1.1',
|
|
7037
|
-
XRay3DCraniofacialImageStorage: '1.2.840.10008.5.1.4.1.1.13.1.2',
|
|
7038
|
-
BreastTomosynthesisImageStorage: '1.2.840.10008.5.1.4.1.1.13.1.3',
|
|
7039
|
-
BreastProjectionXRayImageStorageForPresentation: '1.2.840.10008.5.1.4.1.1.13.1.4',
|
|
7040
|
-
BreastProjectionXRayImageStorageForProcessing: '1.2.840.10008.5.1.4.1.1.13.1.5',
|
|
7041
|
-
IntravascularOpticalCoherenceTomographyImageStorageForPresentation: '1.2.840.10008.5.1.4.1.1.14.1',
|
|
7042
|
-
IntravascularOpticalCoherenceTomographyImageStorageForProcessing: '1.2.840.10008.5.1.4.1.1.14.2',
|
|
7043
|
-
NuclearMedicineImageStorage: '1.2.840.10008.5.1.4.1.1.20',
|
|
7044
|
-
RawDataStorage: '1.2.840.10008.5.1.4.1.1.66',
|
|
7045
|
-
SpatialRegistrationStorage: '1.2.840.10008.5.1.4.1.1.66.1',
|
|
7046
|
-
SpatialFiducialsStorage: '1.2.840.10008.5.1.4.1.1.66.2',
|
|
7047
|
-
DeformableSpatialRegistrationStorage: '1.2.840.10008.5.1.4.1.1.66.3',
|
|
7048
|
-
SegmentationStorage: '1.2.840.10008.5.1.4.1.1.66.4',
|
|
7049
|
-
SurfaceSegmentationStorage: '1.2.840.10008.5.1.4.1.1.66.5',
|
|
7050
|
-
RealWorldValueMappingStorage: '1.2.840.10008.5.1.4.1.1.67',
|
|
7051
|
-
SurfaceScanMeshStorage: '1.2.840.10008.5.1.4.1.1.68.1',
|
|
7052
|
-
SurfaceScanPointCloudStorage: '1.2.840.10008.5.1.4.1.1.68.2',
|
|
7053
|
-
VLEndoscopicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.1',
|
|
7054
|
-
VideoEndoscopicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.1.1',
|
|
7055
|
-
VLMicroscopicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.2',
|
|
7056
|
-
VideoMicroscopicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.2.1',
|
|
7057
|
-
VLSlideCoordinatesMicroscopicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.3',
|
|
7058
|
-
VLPhotographicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.4',
|
|
7059
|
-
VideoPhotographicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.4.1',
|
|
7060
|
-
OphthalmicPhotography8BitImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.5.1',
|
|
7061
|
-
OphthalmicPhotography16BitImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.5.2',
|
|
7062
|
-
StereometricRelationshipStorage: '1.2.840.10008.5.1.4.1.1.77.1.5.3',
|
|
7063
|
-
OphthalmicTomographyImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.5.4',
|
|
7064
|
-
VLWholeSlideMicroscopyImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.6',
|
|
7065
|
-
LensometryMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.1',
|
|
7066
|
-
AutorefractionMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.2',
|
|
7067
|
-
KeratometryMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.3',
|
|
7068
|
-
SubjectiveRefractionMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.4',
|
|
7069
|
-
VisualAcuityMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.5',
|
|
7070
|
-
SpectaclePrescriptionReportStorage: '1.2.840.10008.5.1.4.1.1.78.6',
|
|
7071
|
-
OphthalmicAxialMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.7',
|
|
7072
|
-
IntraocularLensCalculationsStorage: '1.2.840.10008.5.1.4.1.1.78.8',
|
|
7073
|
-
MacularGridThicknessandVolumeReport: '1.2.840.10008.5.1.4.1.1.79.1',
|
|
7074
|
-
OphthalmicVisualFieldStaticPerimetryMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.80.1',
|
|
7075
|
-
OphthalmicThicknessMapStorage: '1.2.840.10008.5.1.4.1.1.81.1',
|
|
7076
|
-
CornealTopographyMapStorage: '1.2.840.10008.5.1.4.1.1.82.1',
|
|
7077
|
-
BasicTextSR: '1.2.840.10008.5.1.4.1.1.88.11',
|
|
7078
|
-
EnhancedSR: '1.2.840.10008.5.1.4.1.1.88.22',
|
|
7079
|
-
ComprehensiveSR: '1.2.840.10008.5.1.4.1.1.88.33',
|
|
7080
|
-
Comprehensive3DSR: '1.2.840.10008.5.1.4.1.1.88.34',
|
|
7081
|
-
ProcedureLog: '1.2.840.10008.5.1.4.1.1.88.40',
|
|
7082
|
-
MammographyCADSR: '1.2.840.10008.5.1.4.1.1.88.50',
|
|
7083
|
-
KeyObjectSelection: '1.2.840.10008.5.1.4.1.1.88.59',
|
|
7084
|
-
ChestCADSR: '1.2.840.10008.5.1.4.1.1.88.65',
|
|
7085
|
-
XRayRadiationDoseSR: '1.2.840.10008.5.1.4.1.1.88.67',
|
|
7086
|
-
RadiopharmaceuticalRadiationDoseSR: '1.2.840.10008.5.1.4.1.1.88.68',
|
|
7087
|
-
ColonCADSR: '1.2.840.10008.5.1.4.1.1.88.69',
|
|
7088
|
-
ImplantationPlanSRDocumentStorage: '1.2.840.10008.5.1.4.1.1.88.70',
|
|
7089
|
-
EncapsulatedPDFStorage: '1.2.840.10008.5.1.4.1.1.104.1',
|
|
7090
|
-
EncapsulatedCDAStorage: '1.2.840.10008.5.1.4.1.1.104.2',
|
|
7091
|
-
PositronEmissionTomographyImageStorage: '1.2.840.10008.5.1.4.1.1.128',
|
|
7092
|
-
EnhancedPETImageStorage: '1.2.840.10008.5.1.4.1.1.130',
|
|
7093
|
-
LegacyConvertedEnhancedPETImageStorage: '1.2.840.10008.5.1.4.1.1.128.1',
|
|
7094
|
-
BasicStructuredDisplayStorage: '1.2.840.10008.5.1.4.1.1.131',
|
|
7095
|
-
RTImageStorage: '1.2.840.10008.5.1.4.1.1.481.1',
|
|
7096
|
-
RTDoseStorage: '1.2.840.10008.5.1.4.1.1.481.2',
|
|
7097
|
-
RTStructureSetStorage: '1.2.840.10008.5.1.4.1.1.481.3',
|
|
7098
|
-
RTBeamsTreatmentRecordStorage: '1.2.840.10008.5.1.4.1.1.481.4',
|
|
7099
|
-
RTPlanStorage: '1.2.840.10008.5.1.4.1.1.481.5',
|
|
7100
|
-
RTBrachyTreatmentRecordStorage: '1.2.840.10008.5.1.4.1.1.481.6',
|
|
7101
|
-
RTTreatmentSummaryRecordStorage: '1.2.840.10008.5.1.4.1.1.481.7',
|
|
7102
|
-
RTIonPlanStorage: '1.2.840.10008.5.1.4.1.1.481.8',
|
|
7103
|
-
RTIonBeamsTreatmentRecordStorage: '1.2.840.10008.5.1.4.1.1.481.9',
|
|
7104
|
-
RTBeamsDeliveryInstructionStorage: '1.2.840.10008.5.1.4.34.7',
|
|
7105
|
-
GenericImplantTemplateStorage: '1.2.840.10008.5.1.4.43.1',
|
|
7106
|
-
ImplantAssemblyTemplateStorage: '1.2.840.10008.5.1.4.44.1',
|
|
7107
|
-
ImplantTemplateGroupStorage: '1.2.840.10008.5.1.4.45.1'
|
|
7108
|
-
};
|
|
7109
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (sopClassDictionary);
|
|
7110
|
-
|
|
7111
6955
|
/***/ }),
|
|
7112
6956
|
|
|
7113
6957
|
/***/ 76450:
|
|
@@ -8236,7 +8080,7 @@ const detectionOptions = {
|
|
|
8236
8080
|
}
|
|
8237
8081
|
});
|
|
8238
8082
|
;// CONCATENATED MODULE: ../../i18n/package.json
|
|
8239
|
-
const package_namespaceObject = JSON.parse('{"i8":"3.9.0-beta.
|
|
8083
|
+
const package_namespaceObject = JSON.parse('{"i8":"3.9.0-beta.78"}');
|
|
8240
8084
|
;// CONCATENATED MODULE: ../../i18n/src/utils.js
|
|
8241
8085
|
const languagesMap = {
|
|
8242
8086
|
ar: 'Arabic',
|
|
@@ -38004,6 +37848,10 @@ function StudyBrowserSort({
|
|
|
38004
37848
|
|
|
38005
37849
|
|
|
38006
37850
|
|
|
37851
|
+
|
|
37852
|
+
const {
|
|
37853
|
+
sortStudySeries
|
|
37854
|
+
} = src.utils;
|
|
38007
37855
|
const getTrackedSeries = displaySets => {
|
|
38008
37856
|
let trackedSeries = 0;
|
|
38009
37857
|
displaySets.forEach(displaySet => {
|
|
@@ -38032,6 +37880,9 @@ const StudyBrowser = ({
|
|
|
38032
37880
|
const {
|
|
38033
37881
|
customizationService
|
|
38034
37882
|
} = servicesManager?.services || {};
|
|
37883
|
+
const {
|
|
37884
|
+
experimentalStudyBrowserSort
|
|
37885
|
+
} = window.config;
|
|
38035
37886
|
const getTabContent = () => {
|
|
38036
37887
|
const tabData = tabs.find(tab => tab.name === activeTabName);
|
|
38037
37888
|
return tabData.studies.map(({
|
|
@@ -38042,6 +37893,9 @@ const StudyBrowser = ({
|
|
|
38042
37893
|
modalities,
|
|
38043
37894
|
displaySets
|
|
38044
37895
|
}) => {
|
|
37896
|
+
if (!experimentalStudyBrowserSort) {
|
|
37897
|
+
sortStudySeries(displaySets);
|
|
37898
|
+
}
|
|
38045
37899
|
const isExpanded = expandedStudyInstanceUIDs.includes(studyInstanceUid);
|
|
38046
37900
|
return /*#__PURE__*/react.createElement(react.Fragment, {
|
|
38047
37901
|
key: studyInstanceUid
|
|
@@ -38097,7 +37951,7 @@ const StudyBrowser = ({
|
|
|
38097
37951
|
},
|
|
38098
37952
|
disabled: isDisabled
|
|
38099
37953
|
}, t(label));
|
|
38100
|
-
})),
|
|
37954
|
+
})), experimentalStudyBrowserSort && /*#__PURE__*/react.createElement(components_StudyBrowserSort, {
|
|
38101
37955
|
servicesManager: servicesManager
|
|
38102
37956
|
})), /*#__PURE__*/react.createElement("div", {
|
|
38103
37957
|
className: "ohif-scrollbar invisible-scrollbar flex flex-1 flex-col overflow-auto"
|
|
@@ -66056,7 +65910,7 @@ class DisplaySetService extends pubSubServiceInterface/* PubSubService */.h {
|
|
|
66056
65910
|
getDisplaySetForSOPInstanceUID(sopInstanceUID, seriesInstanceUID, frameNumber) {
|
|
66057
65911
|
const displaySets = seriesInstanceUID ? this.getDisplaySetsForSeries(seriesInstanceUID) : [...this.getDisplaySetCache().values()];
|
|
66058
65912
|
const displaySet = displaySets.find(ds => {
|
|
66059
|
-
return ds.
|
|
65913
|
+
return ds.instances?.some(i => i.SOPInstanceUID === sopInstanceUID);
|
|
66060
65914
|
});
|
|
66061
65915
|
return displaySet;
|
|
66062
65916
|
}
|
|
@@ -68036,8 +67890,8 @@ class ProtocolEngine {
|
|
|
68036
67890
|
return this.matchedProtocols.get(highestScoringProtocolId);
|
|
68037
67891
|
}
|
|
68038
67892
|
}
|
|
68039
|
-
// EXTERNAL MODULE: ../../core/src/utils/index.ts +
|
|
68040
|
-
var utils = __webpack_require__(
|
|
67893
|
+
// EXTERNAL MODULE: ../../core/src/utils/index.ts + 30 modules
|
|
67894
|
+
var utils = __webpack_require__(61512);
|
|
68041
67895
|
;// CONCATENATED MODULE: ../../core/src/services/HangingProtocolService/custom-attribute/isDisplaySetFromUrl.ts
|
|
68042
67896
|
|
|
68043
67897
|
|
|
@@ -72678,7 +72532,8 @@ class MetadataProvider {
|
|
|
72678
72532
|
break;
|
|
72679
72533
|
case WADO_IMAGE_LOADER_TAGS.CINE_MODULE:
|
|
72680
72534
|
metadata = {
|
|
72681
|
-
frameTime: instance.FrameTime
|
|
72535
|
+
frameTime: instance.FrameTime,
|
|
72536
|
+
numberOfFrames: instance.NumberOfFrames ? Number(instance.NumberOfFrames) : 1
|
|
72682
72537
|
};
|
|
72683
72538
|
break;
|
|
72684
72539
|
case WADO_IMAGE_LOADER_TAGS.PER_SERIES_MODULE:
|
|
@@ -74168,7 +74023,7 @@ class PubSubService {
|
|
|
74168
74023
|
|
|
74169
74024
|
/***/ }),
|
|
74170
74025
|
|
|
74171
|
-
/***/
|
|
74026
|
+
/***/ 61512:
|
|
74172
74027
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
74173
74028
|
|
|
74174
74029
|
"use strict";
|
|
@@ -75376,8 +75231,139 @@ const progressTrackingUtils = {
|
|
|
75376
75231
|
/* harmony default export */ const utils_progressTrackingUtils = (progressTrackingUtils);
|
|
75377
75232
|
// EXTERNAL MODULE: ../../core/src/utils/isLowPriorityModality.ts
|
|
75378
75233
|
var isLowPriorityModality = __webpack_require__(99081);
|
|
75379
|
-
|
|
75380
|
-
|
|
75234
|
+
;// CONCATENATED MODULE: ../../core/src/utils/sopClassDictionary.js
|
|
75235
|
+
// TODO: Deprecate since we have the same thing in dcmjs?
|
|
75236
|
+
const sopClassDictionary = {
|
|
75237
|
+
ComputedRadiographyImageStorage: '1.2.840.10008.5.1.4.1.1.1',
|
|
75238
|
+
DigitalXRayImageStorageForPresentation: '1.2.840.10008.5.1.4.1.1.1.1',
|
|
75239
|
+
DigitalXRayImageStorageForProcessing: '1.2.840.10008.5.1.4.1.1.1.1.1',
|
|
75240
|
+
DigitalMammographyXRayImageStorageForPresentation: '1.2.840.10008.5.1.4.1.1.1.2',
|
|
75241
|
+
DigitalMammographyXRayImageStorageForProcessing: '1.2.840.10008.5.1.4.1.1.1.2.1',
|
|
75242
|
+
DigitalIntraOralXRayImageStorageForPresentation: '1.2.840.10008.5.1.4.1.1.1.3',
|
|
75243
|
+
DigitalIntraOralXRayImageStorageForProcessing: '1.2.840.10008.5.1.4.1.1.1.3.1',
|
|
75244
|
+
CTImageStorage: '1.2.840.10008.5.1.4.1.1.2',
|
|
75245
|
+
EnhancedCTImageStorage: '1.2.840.10008.5.1.4.1.1.2.1',
|
|
75246
|
+
LegacyConvertedEnhancedCTImageStorage: '1.2.840.10008.5.1.4.1.1.2.2',
|
|
75247
|
+
UltrasoundMultiframeImageStorage: '1.2.840.10008.5.1.4.1.1.3.1',
|
|
75248
|
+
MRImageStorage: '1.2.840.10008.5.1.4.1.1.4',
|
|
75249
|
+
EnhancedMRImageStorage: '1.2.840.10008.5.1.4.1.1.4.1',
|
|
75250
|
+
MRSpectroscopyStorage: '1.2.840.10008.5.1.4.1.1.4.2',
|
|
75251
|
+
EnhancedMRColorImageStorage: '1.2.840.10008.5.1.4.1.1.4.3',
|
|
75252
|
+
LegacyConvertedEnhancedMRImageStorage: '1.2.840.10008.5.1.4.1.1.4.4',
|
|
75253
|
+
UltrasoundImageStorage: '1.2.840.10008.5.1.4.1.1.6.1',
|
|
75254
|
+
EnhancedUSVolumeStorage: '1.2.840.10008.5.1.4.1.1.6.2',
|
|
75255
|
+
SecondaryCaptureImageStorage: '1.2.840.10008.5.1.4.1.1.7',
|
|
75256
|
+
MultiframeSingleBitSecondaryCaptureImageStorage: '1.2.840.10008.5.1.4.1.1.7.1',
|
|
75257
|
+
MultiframeGrayscaleByteSecondaryCaptureImageStorage: '1.2.840.10008.5.1.4.1.1.7.2',
|
|
75258
|
+
MultiframeGrayscaleWordSecondaryCaptureImageStorage: '1.2.840.10008.5.1.4.1.1.7.3',
|
|
75259
|
+
MultiframeTrueColorSecondaryCaptureImageStorage: '1.2.840.10008.5.1.4.1.1.7.4',
|
|
75260
|
+
Sop12LeadECGWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.1.1',
|
|
75261
|
+
GeneralECGWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.1.2',
|
|
75262
|
+
AmbulatoryECGWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.1.3',
|
|
75263
|
+
HemodynamicWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.2.1',
|
|
75264
|
+
CardiacElectrophysiologyWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.3.1',
|
|
75265
|
+
BasicVoiceAudioWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.4.1',
|
|
75266
|
+
GeneralAudioWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.4.2',
|
|
75267
|
+
ArterialPulseWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.5.1',
|
|
75268
|
+
RespiratoryWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.6.1',
|
|
75269
|
+
GrayscaleSoftcopyPresentationStateStorage: '1.2.840.10008.5.1.4.1.1.11.1',
|
|
75270
|
+
ColorSoftcopyPresentationStateStorage: '1.2.840.10008.5.1.4.1.1.11.2',
|
|
75271
|
+
PseudoColorSoftcopyPresentationStateStorage: '1.2.840.10008.5.1.4.1.1.11.3',
|
|
75272
|
+
BlendingSoftcopyPresentationStateStorage: '1.2.840.10008.5.1.4.1.1.11.4',
|
|
75273
|
+
XAXRFGrayscaleSoftcopyPresentationStateStorage: '1.2.840.10008.5.1.4.1.1.11.5',
|
|
75274
|
+
XRayAngiographicImageStorage: '1.2.840.10008.5.1.4.1.1.12.1',
|
|
75275
|
+
EnhancedXAImageStorage: '1.2.840.10008.5.1.4.1.1.12.1.1',
|
|
75276
|
+
XRayRadiofluoroscopicImageStorage: '1.2.840.10008.5.1.4.1.1.12.2',
|
|
75277
|
+
EnhancedXRFImageStorage: '1.2.840.10008.5.1.4.1.1.12.2.1',
|
|
75278
|
+
XRay3DAngiographicImageStorage: '1.2.840.10008.5.1.4.1.1.13.1.1',
|
|
75279
|
+
XRay3DCraniofacialImageStorage: '1.2.840.10008.5.1.4.1.1.13.1.2',
|
|
75280
|
+
BreastTomosynthesisImageStorage: '1.2.840.10008.5.1.4.1.1.13.1.3',
|
|
75281
|
+
BreastProjectionXRayImageStorageForPresentation: '1.2.840.10008.5.1.4.1.1.13.1.4',
|
|
75282
|
+
BreastProjectionXRayImageStorageForProcessing: '1.2.840.10008.5.1.4.1.1.13.1.5',
|
|
75283
|
+
IntravascularOpticalCoherenceTomographyImageStorageForPresentation: '1.2.840.10008.5.1.4.1.1.14.1',
|
|
75284
|
+
IntravascularOpticalCoherenceTomographyImageStorageForProcessing: '1.2.840.10008.5.1.4.1.1.14.2',
|
|
75285
|
+
NuclearMedicineImageStorage: '1.2.840.10008.5.1.4.1.1.20',
|
|
75286
|
+
RawDataStorage: '1.2.840.10008.5.1.4.1.1.66',
|
|
75287
|
+
SpatialRegistrationStorage: '1.2.840.10008.5.1.4.1.1.66.1',
|
|
75288
|
+
SpatialFiducialsStorage: '1.2.840.10008.5.1.4.1.1.66.2',
|
|
75289
|
+
DeformableSpatialRegistrationStorage: '1.2.840.10008.5.1.4.1.1.66.3',
|
|
75290
|
+
SegmentationStorage: '1.2.840.10008.5.1.4.1.1.66.4',
|
|
75291
|
+
SurfaceSegmentationStorage: '1.2.840.10008.5.1.4.1.1.66.5',
|
|
75292
|
+
RealWorldValueMappingStorage: '1.2.840.10008.5.1.4.1.1.67',
|
|
75293
|
+
SurfaceScanMeshStorage: '1.2.840.10008.5.1.4.1.1.68.1',
|
|
75294
|
+
SurfaceScanPointCloudStorage: '1.2.840.10008.5.1.4.1.1.68.2',
|
|
75295
|
+
VLEndoscopicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.1',
|
|
75296
|
+
VideoEndoscopicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.1.1',
|
|
75297
|
+
VLMicroscopicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.2',
|
|
75298
|
+
VideoMicroscopicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.2.1',
|
|
75299
|
+
VLSlideCoordinatesMicroscopicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.3',
|
|
75300
|
+
VLPhotographicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.4',
|
|
75301
|
+
VideoPhotographicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.4.1',
|
|
75302
|
+
OphthalmicPhotography8BitImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.5.1',
|
|
75303
|
+
OphthalmicPhotography16BitImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.5.2',
|
|
75304
|
+
StereometricRelationshipStorage: '1.2.840.10008.5.1.4.1.1.77.1.5.3',
|
|
75305
|
+
OphthalmicTomographyImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.5.4',
|
|
75306
|
+
VLWholeSlideMicroscopyImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.6',
|
|
75307
|
+
LensometryMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.1',
|
|
75308
|
+
AutorefractionMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.2',
|
|
75309
|
+
KeratometryMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.3',
|
|
75310
|
+
SubjectiveRefractionMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.4',
|
|
75311
|
+
VisualAcuityMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.5',
|
|
75312
|
+
SpectaclePrescriptionReportStorage: '1.2.840.10008.5.1.4.1.1.78.6',
|
|
75313
|
+
OphthalmicAxialMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.7',
|
|
75314
|
+
IntraocularLensCalculationsStorage: '1.2.840.10008.5.1.4.1.1.78.8',
|
|
75315
|
+
MacularGridThicknessandVolumeReport: '1.2.840.10008.5.1.4.1.1.79.1',
|
|
75316
|
+
OphthalmicVisualFieldStaticPerimetryMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.80.1',
|
|
75317
|
+
OphthalmicThicknessMapStorage: '1.2.840.10008.5.1.4.1.1.81.1',
|
|
75318
|
+
CornealTopographyMapStorage: '1.2.840.10008.5.1.4.1.1.82.1',
|
|
75319
|
+
BasicTextSR: '1.2.840.10008.5.1.4.1.1.88.11',
|
|
75320
|
+
EnhancedSR: '1.2.840.10008.5.1.4.1.1.88.22',
|
|
75321
|
+
ComprehensiveSR: '1.2.840.10008.5.1.4.1.1.88.33',
|
|
75322
|
+
Comprehensive3DSR: '1.2.840.10008.5.1.4.1.1.88.34',
|
|
75323
|
+
ProcedureLog: '1.2.840.10008.5.1.4.1.1.88.40',
|
|
75324
|
+
MammographyCADSR: '1.2.840.10008.5.1.4.1.1.88.50',
|
|
75325
|
+
KeyObjectSelection: '1.2.840.10008.5.1.4.1.1.88.59',
|
|
75326
|
+
ChestCADSR: '1.2.840.10008.5.1.4.1.1.88.65',
|
|
75327
|
+
XRayRadiationDoseSR: '1.2.840.10008.5.1.4.1.1.88.67',
|
|
75328
|
+
RadiopharmaceuticalRadiationDoseSR: '1.2.840.10008.5.1.4.1.1.88.68',
|
|
75329
|
+
ColonCADSR: '1.2.840.10008.5.1.4.1.1.88.69',
|
|
75330
|
+
ImplantationPlanSRDocumentStorage: '1.2.840.10008.5.1.4.1.1.88.70',
|
|
75331
|
+
EncapsulatedPDFStorage: '1.2.840.10008.5.1.4.1.1.104.1',
|
|
75332
|
+
EncapsulatedCDAStorage: '1.2.840.10008.5.1.4.1.1.104.2',
|
|
75333
|
+
PositronEmissionTomographyImageStorage: '1.2.840.10008.5.1.4.1.1.128',
|
|
75334
|
+
EnhancedPETImageStorage: '1.2.840.10008.5.1.4.1.1.130',
|
|
75335
|
+
LegacyConvertedEnhancedPETImageStorage: '1.2.840.10008.5.1.4.1.1.128.1',
|
|
75336
|
+
BasicStructuredDisplayStorage: '1.2.840.10008.5.1.4.1.1.131',
|
|
75337
|
+
RTImageStorage: '1.2.840.10008.5.1.4.1.1.481.1',
|
|
75338
|
+
RTDoseStorage: '1.2.840.10008.5.1.4.1.1.481.2',
|
|
75339
|
+
RTStructureSetStorage: '1.2.840.10008.5.1.4.1.1.481.3',
|
|
75340
|
+
RTBeamsTreatmentRecordStorage: '1.2.840.10008.5.1.4.1.1.481.4',
|
|
75341
|
+
RTPlanStorage: '1.2.840.10008.5.1.4.1.1.481.5',
|
|
75342
|
+
RTBrachyTreatmentRecordStorage: '1.2.840.10008.5.1.4.1.1.481.6',
|
|
75343
|
+
RTTreatmentSummaryRecordStorage: '1.2.840.10008.5.1.4.1.1.481.7',
|
|
75344
|
+
RTIonPlanStorage: '1.2.840.10008.5.1.4.1.1.481.8',
|
|
75345
|
+
RTIonBeamsTreatmentRecordStorage: '1.2.840.10008.5.1.4.1.1.481.9',
|
|
75346
|
+
RTBeamsDeliveryInstructionStorage: '1.2.840.10008.5.1.4.34.7',
|
|
75347
|
+
GenericImplantTemplateStorage: '1.2.840.10008.5.1.4.43.1',
|
|
75348
|
+
ImplantAssemblyTemplateStorage: '1.2.840.10008.5.1.4.44.1',
|
|
75349
|
+
ImplantTemplateGroupStorage: '1.2.840.10008.5.1.4.45.1'
|
|
75350
|
+
};
|
|
75351
|
+
/* harmony default export */ const utils_sopClassDictionary = ((/* unused pure expression or super */ null && (sopClassDictionary)));
|
|
75352
|
+
;// CONCATENATED MODULE: ../../core/src/utils/isImage.js
|
|
75353
|
+
|
|
75354
|
+
const imagesTypes = [sopClassDictionary.ComputedRadiographyImageStorage, sopClassDictionary.DigitalXRayImageStorageForPresentation, sopClassDictionary.DigitalXRayImageStorageForProcessing, sopClassDictionary.DigitalMammographyXRayImageStorageForPresentation, sopClassDictionary.DigitalMammographyXRayImageStorageForProcessing, sopClassDictionary.DigitalIntraOralXRayImageStorageForPresentation, sopClassDictionary.DigitalIntraOralXRayImageStorageForProcessing, sopClassDictionary.CTImageStorage, sopClassDictionary.EnhancedCTImageStorage, sopClassDictionary.LegacyConvertedEnhancedCTImageStorage, sopClassDictionary.UltrasoundMultiframeImageStorage, sopClassDictionary.EnhancedUSVolumeStorage, sopClassDictionary.MRImageStorage, sopClassDictionary.EnhancedMRImageStorage, sopClassDictionary.EnhancedMRColorImageStorage, sopClassDictionary.LegacyConvertedEnhancedMRImageStorage, sopClassDictionary.UltrasoundImageStorage, sopClassDictionary.SecondaryCaptureImageStorage, sopClassDictionary.MultiframeSingleBitSecondaryCaptureImageStorage, sopClassDictionary.MultiframeGrayscaleByteSecondaryCaptureImageStorage, sopClassDictionary.MultiframeGrayscaleWordSecondaryCaptureImageStorage, sopClassDictionary.MultiframeTrueColorSecondaryCaptureImageStorage, sopClassDictionary.XRayAngiographicImageStorage, sopClassDictionary.EnhancedXAImageStorage, sopClassDictionary.XRayRadiofluoroscopicImageStorage, sopClassDictionary.EnhancedXRFImageStorage, sopClassDictionary.XRay3DAngiographicImageStorage, sopClassDictionary.XRay3DCraniofacialImageStorage, sopClassDictionary.BreastTomosynthesisImageStorage, sopClassDictionary.BreastProjectionXRayImageStorageForPresentation, sopClassDictionary.BreastProjectionXRayImageStorageForProcessing, sopClassDictionary.IntravascularOpticalCoherenceTomographyImageStorageForPresentation, sopClassDictionary.IntravascularOpticalCoherenceTomographyImageStorageForProcessing, sopClassDictionary.NuclearMedicineImageStorage, sopClassDictionary.VLEndoscopicImageStorage, sopClassDictionary.VideoEndoscopicImageStorage, sopClassDictionary.VLMicroscopicImageStorage, sopClassDictionary.VideoMicroscopicImageStorage, sopClassDictionary.VLSlideCoordinatesMicroscopicImageStorage, sopClassDictionary.VLPhotographicImageStorage, sopClassDictionary.VideoPhotographicImageStorage, sopClassDictionary.OphthalmicPhotography8BitImageStorage, sopClassDictionary.OphthalmicPhotography16BitImageStorage, sopClassDictionary.OphthalmicTomographyImageStorage, sopClassDictionary.VLWholeSlideMicroscopyImageStorage, sopClassDictionary.PositronEmissionTomographyImageStorage, sopClassDictionary.EnhancedPETImageStorage, sopClassDictionary.LegacyConvertedEnhancedPETImageStorage, sopClassDictionary.RTImageStorage];
|
|
75355
|
+
|
|
75356
|
+
/**
|
|
75357
|
+
* Checks whether dicom files with specified SOP Class UID have image data
|
|
75358
|
+
* @param {string} SOPClassUID - SOP Class UID to be checked
|
|
75359
|
+
* @returns {boolean} - true if it has image data
|
|
75360
|
+
*/
|
|
75361
|
+
const isImage = SOPClassUID => {
|
|
75362
|
+
if (!SOPClassUID) {
|
|
75363
|
+
return false;
|
|
75364
|
+
}
|
|
75365
|
+
return imagesTypes.indexOf(SOPClassUID) !== -1;
|
|
75366
|
+
};
|
|
75381
75367
|
// EXTERNAL MODULE: ../../core/src/utils/isDisplaySetReconstructable.js
|
|
75382
75368
|
var isDisplaySetReconstructable = __webpack_require__(74824);
|
|
75383
75369
|
// EXTERNAL MODULE: ../../core/src/utils/sortInstancesByPosition.ts
|
|
@@ -75782,6 +75768,7 @@ function createStudyBrowserTabs(primaryStudyInstanceUIDs, studyDisplayList, disp
|
|
|
75782
75768
|
|
|
75783
75769
|
|
|
75784
75770
|
|
|
75771
|
+
|
|
75785
75772
|
|
|
75786
75773
|
|
|
75787
75774
|
// Commented out unused functionality.
|
|
@@ -75813,12 +75800,13 @@ const utils = {
|
|
|
75813
75800
|
Queue: Queue,
|
|
75814
75801
|
isDicomUid: isDicomUid,
|
|
75815
75802
|
isEqualWithin: isEqualWithin,
|
|
75803
|
+
sopClassDictionary: sopClassDictionary,
|
|
75816
75804
|
addAccessors: utils_addAccessors,
|
|
75817
75805
|
resolveObjectPath: resolveObjectPath,
|
|
75818
75806
|
hierarchicalListUtils: utils_hierarchicalListUtils,
|
|
75819
75807
|
progressTrackingUtils: utils_progressTrackingUtils,
|
|
75820
75808
|
isLowPriorityModality: isLowPriorityModality/* default */.Z,
|
|
75821
|
-
isImage: isImage
|
|
75809
|
+
isImage: isImage,
|
|
75822
75810
|
isDisplaySetReconstructable: isDisplaySetReconstructable/* default */.ZP,
|
|
75823
75811
|
debounce: utils_debounce,
|
|
75824
75812
|
roundNumber: utils_roundNumber,
|
|
@@ -75939,6 +75927,8 @@ function seriesInfoSortingCriteria(firstSeries, secondSeries) {
|
|
|
75939
75927
|
const aLowPriority = (0,_isLowPriorityModality__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(firstSeries.Modality ?? firstSeries.modality);
|
|
75940
75928
|
const bLowPriority = (0,_isLowPriorityModality__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(secondSeries.Modality ?? secondSeries.modality);
|
|
75941
75929
|
if (aLowPriority) {
|
|
75930
|
+
// Use the reverse sort order for low priority modalities so that the
|
|
75931
|
+
// most recent one comes up first as usually that is the one of interest.
|
|
75942
75932
|
return bLowPriority ? defaultSeriesSort(secondSeries, firstSeries) : 1;
|
|
75943
75933
|
} else if (bLowPriority) {
|
|
75944
75934
|
return -1;
|
|
@@ -197090,7 +197080,7 @@ class VideoViewport extends _Viewport__WEBPACK_IMPORTED_MODULE_5__/* ["default"]
|
|
|
197090
197080
|
};
|
|
197091
197081
|
}
|
|
197092
197082
|
setDataIds(imageIds, options) {
|
|
197093
|
-
this.setVideo(imageIds[0], options?.viewReference?.sliceIndex || 1);
|
|
197083
|
+
this.setVideo(imageIds[0], (options?.viewReference?.sliceIndex || 0) + 1);
|
|
197094
197084
|
}
|
|
197095
197085
|
setVideo(imageId, frameNumber) {
|
|
197096
197086
|
this.imageId = Array.isArray(imageId) ? imageId[0] : imageId;
|
|
@@ -199212,14 +199202,14 @@ class WSIViewport extends _Viewport__WEBPACK_IMPORTED_MODULE_5__/* ["default"] *
|
|
|
199212
199202
|
return (0,_init__WEBPACK_IMPORTED_MODULE_9__/* .peerImport */ .Dm)('dicom-microscopy-viewer');
|
|
199213
199203
|
}; }
|
|
199214
199204
|
setDataIds(imageIds) {
|
|
199215
|
-
const webClient = _metaData__WEBPACK_IMPORTED_MODULE_3__.get(_enums__WEBPACK_IMPORTED_MODULE_1__.MetadataModules.
|
|
199205
|
+
const webClient = _metaData__WEBPACK_IMPORTED_MODULE_3__.get(_enums__WEBPACK_IMPORTED_MODULE_1__.MetadataModules.WADO_WEB_CLIENT, imageIds[0]);
|
|
199216
199206
|
if (!webClient) {
|
|
199217
199207
|
throw new Error(`To use setDataIds on WSI data, you must provide metaData.webClient for ${imageIds[0]}`);
|
|
199218
199208
|
}
|
|
199219
199209
|
return this.setWSI(imageIds, webClient);
|
|
199220
199210
|
}
|
|
199221
199211
|
async setWSI(imageIds, client) {
|
|
199222
|
-
this.microscopyElement.style.background = '
|
|
199212
|
+
this.microscopyElement.style.background = 'black';
|
|
199223
199213
|
this.microscopyElement.innerText = 'Loading';
|
|
199224
199214
|
this.imageIds = imageIds;
|
|
199225
199215
|
const DicomMicroscopyViewer = await WSIViewport.getDicomMicroscopyViewer();
|
|
@@ -206959,10 +206949,18 @@ function vtkStreamingOpenGLVolumeMapper(publicAPI, model) {
|
|
|
206959
206949
|
}
|
|
206960
206950
|
}
|
|
206961
206951
|
if (shouldReset) {
|
|
206962
|
-
model.
|
|
206952
|
+
const norm16Ext = model.context.getExtension('EXT_texture_norm16');
|
|
206953
|
+
model.scalarTexture.setOglNorm16Ext(norm16Ext);
|
|
206963
206954
|
model.scalarTexture.releaseGraphicsResources(model._openGLRenderWindow);
|
|
206964
206955
|
model.scalarTexture.resetFormatAndType();
|
|
206965
|
-
|
|
206956
|
+
if (model.renderable.getPreferSizeOverAccuracy() ||
|
|
206957
|
+
(norm16Ext && dataType === Constants/* VtkDataTypes */.Tu.UNSIGNED_SHORT) ||
|
|
206958
|
+
dataType === Constants/* VtkDataTypes */.Tu.SHORT) {
|
|
206959
|
+
model.scalarTexture.create3DFilterableFromDataArray(dims[0], dims[1], dims[2], scalars, model.renderable.getPreferSizeOverAccuracy());
|
|
206960
|
+
}
|
|
206961
|
+
else {
|
|
206962
|
+
model.scalarTexture.create3DFilterableFromRaw(dims[0], dims[1], dims[2], numComp, scalars.getDataType(), scalars.getData());
|
|
206963
|
+
}
|
|
206966
206964
|
}
|
|
206967
206965
|
else {
|
|
206968
206966
|
model.scalarTexture.deactivate();
|
|
@@ -211659,7 +211657,7 @@ var MetadataModules;
|
|
|
211659
211657
|
MetadataModules["SOP_COMMON"] = "sopCommonModule";
|
|
211660
211658
|
MetadataModules["ULTRASOUND_ENHANCED_REGION"] = "ultrasoundEnhancedRegionModule";
|
|
211661
211659
|
MetadataModules["VOI_LUT"] = "voiLutModule";
|
|
211662
|
-
MetadataModules["
|
|
211660
|
+
MetadataModules["WADO_WEB_CLIENT"] = "wadoWebClient";
|
|
211663
211661
|
})(MetadataModules || (MetadataModules = {}));
|
|
211664
211662
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MetadataModules);
|
|
211665
211663
|
|
|
@@ -211991,7 +211989,7 @@ class CornerstoneEventTarget {
|
|
|
211991
211989
|
}
|
|
211992
211990
|
dispatchEvent(event) {
|
|
211993
211991
|
if (!this.listeners[event.type]) {
|
|
211994
|
-
return;
|
|
211992
|
+
return !event.defaultPrevented;
|
|
211995
211993
|
}
|
|
211996
211994
|
const stack = this.listeners[event.type].slice();
|
|
211997
211995
|
const stackLength = stack.length;
|
|
@@ -212129,6 +212127,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
212129
212127
|
peerImport: () => (/* reexport */ init/* peerImport */.Dm),
|
|
212130
212128
|
registerImageLoader: () => (/* reexport */ imageLoader.registerImageLoader),
|
|
212131
212129
|
requestPoolManager: () => (/* reexport */ imageLoadPoolManager/* default */.Z),
|
|
212130
|
+
resetInitialization: () => (/* reexport */ init/* resetInitialization */.x$),
|
|
212132
212131
|
resetUseCPURendering: () => (/* reexport */ init/* resetUseCPURendering */.Y0),
|
|
212133
212132
|
resetUseSharedArrayBuffer: () => (/* reexport */ init/* resetUseSharedArrayBuffer */.zr),
|
|
212134
212133
|
setConfiguration: () => (/* reexport */ init/* setConfiguration */.Dg),
|
|
@@ -212437,6 +212436,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
212437
212436
|
S1: () => (/* binding */ init),
|
|
212438
212437
|
uF: () => (/* binding */ isCornerstoneInitialized),
|
|
212439
212438
|
Dm: () => (/* binding */ peerImport),
|
|
212439
|
+
x$: () => (/* binding */ resetInitialization),
|
|
212440
212440
|
Y0: () => (/* binding */ resetUseCPURendering),
|
|
212441
212441
|
zr: () => (/* binding */ resetUseSharedArrayBuffer),
|
|
212442
212442
|
Dg: () => (/* binding */ setConfiguration),
|
|
@@ -212625,6 +212625,9 @@ function getShouldUseSharedArrayBuffer() {
|
|
|
212625
212625
|
function isCornerstoneInitialized() {
|
|
212626
212626
|
return csRenderInitialized;
|
|
212627
212627
|
}
|
|
212628
|
+
function resetInitialization() {
|
|
212629
|
+
csRenderInitialized = false;
|
|
212630
|
+
}
|
|
212628
212631
|
function getConfiguration() {
|
|
212629
212632
|
return config;
|
|
212630
212633
|
}
|
|
@@ -221375,12 +221378,17 @@ function makeVolumeMetadata(imageIds) {
|
|
|
221375
221378
|
let genericMetadataProvider_state = {};
|
|
221376
221379
|
const genericMetadataProvider_metadataProvider = {
|
|
221377
221380
|
add: (imageId, payload) => {
|
|
221381
|
+
genericMetadataProvider_metadataProvider.addRaw(imageId, {
|
|
221382
|
+
...payload,
|
|
221383
|
+
metadata: structuredClone(payload.metadata),
|
|
221384
|
+
});
|
|
221385
|
+
},
|
|
221386
|
+
addRaw: (imageId, payload) => {
|
|
221378
221387
|
const type = payload.type;
|
|
221379
221388
|
if (!genericMetadataProvider_state[imageId]) {
|
|
221380
221389
|
genericMetadataProvider_state[imageId] = {};
|
|
221381
221390
|
}
|
|
221382
|
-
genericMetadataProvider_state[imageId][type] =
|
|
221383
|
-
payload.rawMetadata ?? structuredClone(payload.metadata);
|
|
221391
|
+
genericMetadataProvider_state[imageId][type] = payload.metadata;
|
|
221384
221392
|
},
|
|
221385
221393
|
get: (type, imageId) => {
|
|
221386
221394
|
return genericMetadataProvider_state[imageId]?.[type];
|
|
@@ -276487,9 +276495,9 @@ var __webpack_unused_export__;
|
|
|
276487
276495
|
|
|
276488
276496
|
|
|
276489
276497
|
|
|
276490
|
-
|
|
276491
|
-
|
|
276492
|
-
|
|
276498
|
+
const base64 = __webpack_require__(3506)
|
|
276499
|
+
const ieee754 = __webpack_require__(75597)
|
|
276500
|
+
const customInspectSymbol =
|
|
276493
276501
|
(typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation
|
|
276494
276502
|
? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation
|
|
276495
276503
|
: null
|
|
@@ -276498,7 +276506,7 @@ exports.lW = Buffer
|
|
|
276498
276506
|
__webpack_unused_export__ = SlowBuffer
|
|
276499
276507
|
exports.h2 = 50
|
|
276500
276508
|
|
|
276501
|
-
|
|
276509
|
+
const K_MAX_LENGTH = 0x7fffffff
|
|
276502
276510
|
__webpack_unused_export__ = K_MAX_LENGTH
|
|
276503
276511
|
|
|
276504
276512
|
/**
|
|
@@ -276528,8 +276536,8 @@ if (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&
|
|
|
276528
276536
|
function typedArraySupport () {
|
|
276529
276537
|
// Can typed array instances can be augmented?
|
|
276530
276538
|
try {
|
|
276531
|
-
|
|
276532
|
-
|
|
276539
|
+
const arr = new Uint8Array(1)
|
|
276540
|
+
const proto = { foo: function () { return 42 } }
|
|
276533
276541
|
Object.setPrototypeOf(proto, Uint8Array.prototype)
|
|
276534
276542
|
Object.setPrototypeOf(arr, proto)
|
|
276535
276543
|
return arr.foo() === 42
|
|
@@ -276559,7 +276567,7 @@ function createBuffer (length) {
|
|
|
276559
276567
|
throw new RangeError('The value "' + length + '" is invalid for option "size"')
|
|
276560
276568
|
}
|
|
276561
276569
|
// Return an augmented `Uint8Array` instance
|
|
276562
|
-
|
|
276570
|
+
const buf = new Uint8Array(length)
|
|
276563
276571
|
Object.setPrototypeOf(buf, Buffer.prototype)
|
|
276564
276572
|
return buf
|
|
276565
276573
|
}
|
|
@@ -276622,19 +276630,17 @@ function from (value, encodingOrOffset, length) {
|
|
|
276622
276630
|
)
|
|
276623
276631
|
}
|
|
276624
276632
|
|
|
276625
|
-
|
|
276633
|
+
const valueOf = value.valueOf && value.valueOf()
|
|
276626
276634
|
if (valueOf != null && valueOf !== value) {
|
|
276627
276635
|
return Buffer.from(valueOf, encodingOrOffset, length)
|
|
276628
276636
|
}
|
|
276629
276637
|
|
|
276630
|
-
|
|
276638
|
+
const b = fromObject(value)
|
|
276631
276639
|
if (b) return b
|
|
276632
276640
|
|
|
276633
276641
|
if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&
|
|
276634
276642
|
typeof value[Symbol.toPrimitive] === 'function') {
|
|
276635
|
-
return Buffer.from(
|
|
276636
|
-
value[Symbol.toPrimitive]('string'), encodingOrOffset, length
|
|
276637
|
-
)
|
|
276643
|
+
return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)
|
|
276638
276644
|
}
|
|
276639
276645
|
|
|
276640
276646
|
throw new TypeError(
|
|
@@ -276719,10 +276725,10 @@ function fromString (string, encoding) {
|
|
|
276719
276725
|
throw new TypeError('Unknown encoding: ' + encoding)
|
|
276720
276726
|
}
|
|
276721
276727
|
|
|
276722
|
-
|
|
276723
|
-
|
|
276728
|
+
const length = byteLength(string, encoding) | 0
|
|
276729
|
+
let buf = createBuffer(length)
|
|
276724
276730
|
|
|
276725
|
-
|
|
276731
|
+
const actual = buf.write(string, encoding)
|
|
276726
276732
|
|
|
276727
276733
|
if (actual !== length) {
|
|
276728
276734
|
// Writing a hex string, for example, that contains invalid characters will
|
|
@@ -276735,9 +276741,9 @@ function fromString (string, encoding) {
|
|
|
276735
276741
|
}
|
|
276736
276742
|
|
|
276737
276743
|
function fromArrayLike (array) {
|
|
276738
|
-
|
|
276739
|
-
|
|
276740
|
-
for (
|
|
276744
|
+
const length = array.length < 0 ? 0 : checked(array.length) | 0
|
|
276745
|
+
const buf = createBuffer(length)
|
|
276746
|
+
for (let i = 0; i < length; i += 1) {
|
|
276741
276747
|
buf[i] = array[i] & 255
|
|
276742
276748
|
}
|
|
276743
276749
|
return buf
|
|
@@ -276745,7 +276751,7 @@ function fromArrayLike (array) {
|
|
|
276745
276751
|
|
|
276746
276752
|
function fromArrayView (arrayView) {
|
|
276747
276753
|
if (isInstance(arrayView, Uint8Array)) {
|
|
276748
|
-
|
|
276754
|
+
const copy = new Uint8Array(arrayView)
|
|
276749
276755
|
return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)
|
|
276750
276756
|
}
|
|
276751
276757
|
return fromArrayLike(arrayView)
|
|
@@ -276760,7 +276766,7 @@ function fromArrayBuffer (array, byteOffset, length) {
|
|
|
276760
276766
|
throw new RangeError('"length" is outside of buffer bounds')
|
|
276761
276767
|
}
|
|
276762
276768
|
|
|
276763
|
-
|
|
276769
|
+
let buf
|
|
276764
276770
|
if (byteOffset === undefined && length === undefined) {
|
|
276765
276771
|
buf = new Uint8Array(array)
|
|
276766
276772
|
} else if (length === undefined) {
|
|
@@ -276777,8 +276783,8 @@ function fromArrayBuffer (array, byteOffset, length) {
|
|
|
276777
276783
|
|
|
276778
276784
|
function fromObject (obj) {
|
|
276779
276785
|
if (Buffer.isBuffer(obj)) {
|
|
276780
|
-
|
|
276781
|
-
|
|
276786
|
+
const len = checked(obj.length) | 0
|
|
276787
|
+
const buf = createBuffer(len)
|
|
276782
276788
|
|
|
276783
276789
|
if (buf.length === 0) {
|
|
276784
276790
|
return buf
|
|
@@ -276833,10 +276839,10 @@ Buffer.compare = function compare (a, b) {
|
|
|
276833
276839
|
|
|
276834
276840
|
if (a === b) return 0
|
|
276835
276841
|
|
|
276836
|
-
|
|
276837
|
-
|
|
276842
|
+
let x = a.length
|
|
276843
|
+
let y = b.length
|
|
276838
276844
|
|
|
276839
|
-
for (
|
|
276845
|
+
for (let i = 0, len = Math.min(x, y); i < len; ++i) {
|
|
276840
276846
|
if (a[i] !== b[i]) {
|
|
276841
276847
|
x = a[i]
|
|
276842
276848
|
y = b[i]
|
|
@@ -276877,7 +276883,7 @@ Buffer.concat = function concat (list, length) {
|
|
|
276877
276883
|
return Buffer.alloc(0)
|
|
276878
276884
|
}
|
|
276879
276885
|
|
|
276880
|
-
|
|
276886
|
+
let i
|
|
276881
276887
|
if (length === undefined) {
|
|
276882
276888
|
length = 0
|
|
276883
276889
|
for (i = 0; i < list.length; ++i) {
|
|
@@ -276885,13 +276891,14 @@ Buffer.concat = function concat (list, length) {
|
|
|
276885
276891
|
}
|
|
276886
276892
|
}
|
|
276887
276893
|
|
|
276888
|
-
|
|
276889
|
-
|
|
276894
|
+
const buffer = Buffer.allocUnsafe(length)
|
|
276895
|
+
let pos = 0
|
|
276890
276896
|
for (i = 0; i < list.length; ++i) {
|
|
276891
|
-
|
|
276897
|
+
let buf = list[i]
|
|
276892
276898
|
if (isInstance(buf, Uint8Array)) {
|
|
276893
276899
|
if (pos + buf.length > buffer.length) {
|
|
276894
|
-
Buffer.
|
|
276900
|
+
if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)
|
|
276901
|
+
buf.copy(buffer, pos)
|
|
276895
276902
|
} else {
|
|
276896
276903
|
Uint8Array.prototype.set.call(
|
|
276897
276904
|
buffer,
|
|
@@ -276923,12 +276930,12 @@ function byteLength (string, encoding) {
|
|
|
276923
276930
|
)
|
|
276924
276931
|
}
|
|
276925
276932
|
|
|
276926
|
-
|
|
276927
|
-
|
|
276933
|
+
const len = string.length
|
|
276934
|
+
const mustMatch = (arguments.length > 2 && arguments[2] === true)
|
|
276928
276935
|
if (!mustMatch && len === 0) return 0
|
|
276929
276936
|
|
|
276930
276937
|
// Use a for loop to avoid recursion
|
|
276931
|
-
|
|
276938
|
+
let loweredCase = false
|
|
276932
276939
|
for (;;) {
|
|
276933
276940
|
switch (encoding) {
|
|
276934
276941
|
case 'ascii':
|
|
@@ -276959,7 +276966,7 @@ function byteLength (string, encoding) {
|
|
|
276959
276966
|
Buffer.byteLength = byteLength
|
|
276960
276967
|
|
|
276961
276968
|
function slowToString (encoding, start, end) {
|
|
276962
|
-
|
|
276969
|
+
let loweredCase = false
|
|
276963
276970
|
|
|
276964
276971
|
// No need to verify that "this.length <= MAX_UINT32" since it's a read-only
|
|
276965
276972
|
// property of a typed array.
|
|
@@ -277037,28 +277044,28 @@ function slowToString (encoding, start, end) {
|
|
|
277037
277044
|
Buffer.prototype._isBuffer = true
|
|
277038
277045
|
|
|
277039
277046
|
function swap (b, n, m) {
|
|
277040
|
-
|
|
277047
|
+
const i = b[n]
|
|
277041
277048
|
b[n] = b[m]
|
|
277042
277049
|
b[m] = i
|
|
277043
277050
|
}
|
|
277044
277051
|
|
|
277045
277052
|
Buffer.prototype.swap16 = function swap16 () {
|
|
277046
|
-
|
|
277053
|
+
const len = this.length
|
|
277047
277054
|
if (len % 2 !== 0) {
|
|
277048
277055
|
throw new RangeError('Buffer size must be a multiple of 16-bits')
|
|
277049
277056
|
}
|
|
277050
|
-
for (
|
|
277057
|
+
for (let i = 0; i < len; i += 2) {
|
|
277051
277058
|
swap(this, i, i + 1)
|
|
277052
277059
|
}
|
|
277053
277060
|
return this
|
|
277054
277061
|
}
|
|
277055
277062
|
|
|
277056
277063
|
Buffer.prototype.swap32 = function swap32 () {
|
|
277057
|
-
|
|
277064
|
+
const len = this.length
|
|
277058
277065
|
if (len % 4 !== 0) {
|
|
277059
277066
|
throw new RangeError('Buffer size must be a multiple of 32-bits')
|
|
277060
277067
|
}
|
|
277061
|
-
for (
|
|
277068
|
+
for (let i = 0; i < len; i += 4) {
|
|
277062
277069
|
swap(this, i, i + 3)
|
|
277063
277070
|
swap(this, i + 1, i + 2)
|
|
277064
277071
|
}
|
|
@@ -277066,11 +277073,11 @@ Buffer.prototype.swap32 = function swap32 () {
|
|
|
277066
277073
|
}
|
|
277067
277074
|
|
|
277068
277075
|
Buffer.prototype.swap64 = function swap64 () {
|
|
277069
|
-
|
|
277076
|
+
const len = this.length
|
|
277070
277077
|
if (len % 8 !== 0) {
|
|
277071
277078
|
throw new RangeError('Buffer size must be a multiple of 64-bits')
|
|
277072
277079
|
}
|
|
277073
|
-
for (
|
|
277080
|
+
for (let i = 0; i < len; i += 8) {
|
|
277074
277081
|
swap(this, i, i + 7)
|
|
277075
277082
|
swap(this, i + 1, i + 6)
|
|
277076
277083
|
swap(this, i + 2, i + 5)
|
|
@@ -277080,7 +277087,7 @@ Buffer.prototype.swap64 = function swap64 () {
|
|
|
277080
277087
|
}
|
|
277081
277088
|
|
|
277082
277089
|
Buffer.prototype.toString = function toString () {
|
|
277083
|
-
|
|
277090
|
+
const length = this.length
|
|
277084
277091
|
if (length === 0) return ''
|
|
277085
277092
|
if (arguments.length === 0) return utf8Slice(this, 0, length)
|
|
277086
277093
|
return slowToString.apply(this, arguments)
|
|
@@ -277095,8 +277102,8 @@ Buffer.prototype.equals = function equals (b) {
|
|
|
277095
277102
|
}
|
|
277096
277103
|
|
|
277097
277104
|
Buffer.prototype.inspect = function inspect () {
|
|
277098
|
-
|
|
277099
|
-
|
|
277105
|
+
let str = ''
|
|
277106
|
+
const max = exports.h2
|
|
277100
277107
|
str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()
|
|
277101
277108
|
if (this.length > max) str += ' ... '
|
|
277102
277109
|
return '<Buffer ' + str + '>'
|
|
@@ -277150,14 +277157,14 @@ Buffer.prototype.compare = function compare (target, start, end, thisStart, this
|
|
|
277150
277157
|
|
|
277151
277158
|
if (this === target) return 0
|
|
277152
277159
|
|
|
277153
|
-
|
|
277154
|
-
|
|
277155
|
-
|
|
277160
|
+
let x = thisEnd - thisStart
|
|
277161
|
+
let y = end - start
|
|
277162
|
+
const len = Math.min(x, y)
|
|
277156
277163
|
|
|
277157
|
-
|
|
277158
|
-
|
|
277164
|
+
const thisCopy = this.slice(thisStart, thisEnd)
|
|
277165
|
+
const targetCopy = target.slice(start, end)
|
|
277159
277166
|
|
|
277160
|
-
for (
|
|
277167
|
+
for (let i = 0; i < len; ++i) {
|
|
277161
277168
|
if (thisCopy[i] !== targetCopy[i]) {
|
|
277162
277169
|
x = thisCopy[i]
|
|
277163
277170
|
y = targetCopy[i]
|
|
@@ -277236,9 +277243,9 @@ function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
|
|
|
277236
277243
|
}
|
|
277237
277244
|
|
|
277238
277245
|
function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
|
|
277239
|
-
|
|
277240
|
-
|
|
277241
|
-
|
|
277246
|
+
let indexSize = 1
|
|
277247
|
+
let arrLength = arr.length
|
|
277248
|
+
let valLength = val.length
|
|
277242
277249
|
|
|
277243
277250
|
if (encoding !== undefined) {
|
|
277244
277251
|
encoding = String(encoding).toLowerCase()
|
|
@@ -277262,9 +277269,9 @@ function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
|
|
|
277262
277269
|
}
|
|
277263
277270
|
}
|
|
277264
277271
|
|
|
277265
|
-
|
|
277272
|
+
let i
|
|
277266
277273
|
if (dir) {
|
|
277267
|
-
|
|
277274
|
+
let foundIndex = -1
|
|
277268
277275
|
for (i = byteOffset; i < arrLength; i++) {
|
|
277269
277276
|
if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
|
|
277270
277277
|
if (foundIndex === -1) foundIndex = i
|
|
@@ -277277,8 +277284,8 @@ function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
|
|
|
277277
277284
|
} else {
|
|
277278
277285
|
if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
|
|
277279
277286
|
for (i = byteOffset; i >= 0; i--) {
|
|
277280
|
-
|
|
277281
|
-
for (
|
|
277287
|
+
let found = true
|
|
277288
|
+
for (let j = 0; j < valLength; j++) {
|
|
277282
277289
|
if (read(arr, i + j) !== read(val, j)) {
|
|
277283
277290
|
found = false
|
|
277284
277291
|
break
|
|
@@ -277305,7 +277312,7 @@ Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding)
|
|
|
277305
277312
|
|
|
277306
277313
|
function hexWrite (buf, string, offset, length) {
|
|
277307
277314
|
offset = Number(offset) || 0
|
|
277308
|
-
|
|
277315
|
+
const remaining = buf.length - offset
|
|
277309
277316
|
if (!length) {
|
|
277310
277317
|
length = remaining
|
|
277311
277318
|
} else {
|
|
@@ -277315,13 +277322,14 @@ function hexWrite (buf, string, offset, length) {
|
|
|
277315
277322
|
}
|
|
277316
277323
|
}
|
|
277317
277324
|
|
|
277318
|
-
|
|
277325
|
+
const strLen = string.length
|
|
277319
277326
|
|
|
277320
277327
|
if (length > strLen / 2) {
|
|
277321
277328
|
length = strLen / 2
|
|
277322
277329
|
}
|
|
277323
|
-
|
|
277324
|
-
|
|
277330
|
+
let i
|
|
277331
|
+
for (i = 0; i < length; ++i) {
|
|
277332
|
+
const parsed = parseInt(string.substr(i * 2, 2), 16)
|
|
277325
277333
|
if (numberIsNaN(parsed)) return i
|
|
277326
277334
|
buf[offset + i] = parsed
|
|
277327
277335
|
}
|
|
@@ -277371,7 +277379,7 @@ Buffer.prototype.write = function write (string, offset, length, encoding) {
|
|
|
277371
277379
|
)
|
|
277372
277380
|
}
|
|
277373
277381
|
|
|
277374
|
-
|
|
277382
|
+
const remaining = this.length - offset
|
|
277375
277383
|
if (length === undefined || length > remaining) length = remaining
|
|
277376
277384
|
|
|
277377
277385
|
if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
|
|
@@ -277380,7 +277388,7 @@ Buffer.prototype.write = function write (string, offset, length, encoding) {
|
|
|
277380
277388
|
|
|
277381
277389
|
if (!encoding) encoding = 'utf8'
|
|
277382
277390
|
|
|
277383
|
-
|
|
277391
|
+
let loweredCase = false
|
|
277384
277392
|
for (;;) {
|
|
277385
277393
|
switch (encoding) {
|
|
277386
277394
|
case 'hex':
|
|
@@ -277430,13 +277438,13 @@ function base64Slice (buf, start, end) {
|
|
|
277430
277438
|
|
|
277431
277439
|
function utf8Slice (buf, start, end) {
|
|
277432
277440
|
end = Math.min(buf.length, end)
|
|
277433
|
-
|
|
277441
|
+
const res = []
|
|
277434
277442
|
|
|
277435
|
-
|
|
277443
|
+
let i = start
|
|
277436
277444
|
while (i < end) {
|
|
277437
|
-
|
|
277438
|
-
|
|
277439
|
-
|
|
277445
|
+
const firstByte = buf[i]
|
|
277446
|
+
let codePoint = null
|
|
277447
|
+
let bytesPerSequence = (firstByte > 0xEF)
|
|
277440
277448
|
? 4
|
|
277441
277449
|
: (firstByte > 0xDF)
|
|
277442
277450
|
? 3
|
|
@@ -277445,7 +277453,7 @@ function utf8Slice (buf, start, end) {
|
|
|
277445
277453
|
: 1
|
|
277446
277454
|
|
|
277447
277455
|
if (i + bytesPerSequence <= end) {
|
|
277448
|
-
|
|
277456
|
+
let secondByte, thirdByte, fourthByte, tempCodePoint
|
|
277449
277457
|
|
|
277450
277458
|
switch (bytesPerSequence) {
|
|
277451
277459
|
case 1:
|
|
@@ -277507,17 +277515,17 @@ function utf8Slice (buf, start, end) {
|
|
|
277507
277515
|
// Based on http://stackoverflow.com/a/22747272/680742, the browser with
|
|
277508
277516
|
// the lowest limit is Chrome, with 0x10000 args.
|
|
277509
277517
|
// We go 1 magnitude less, for safety
|
|
277510
|
-
|
|
277518
|
+
const MAX_ARGUMENTS_LENGTH = 0x1000
|
|
277511
277519
|
|
|
277512
277520
|
function decodeCodePointsArray (codePoints) {
|
|
277513
|
-
|
|
277521
|
+
const len = codePoints.length
|
|
277514
277522
|
if (len <= MAX_ARGUMENTS_LENGTH) {
|
|
277515
277523
|
return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
|
|
277516
277524
|
}
|
|
277517
277525
|
|
|
277518
277526
|
// Decode in chunks to avoid "call stack size exceeded".
|
|
277519
|
-
|
|
277520
|
-
|
|
277527
|
+
let res = ''
|
|
277528
|
+
let i = 0
|
|
277521
277529
|
while (i < len) {
|
|
277522
277530
|
res += String.fromCharCode.apply(
|
|
277523
277531
|
String,
|
|
@@ -277528,50 +277536,50 @@ function decodeCodePointsArray (codePoints) {
|
|
|
277528
277536
|
}
|
|
277529
277537
|
|
|
277530
277538
|
function asciiSlice (buf, start, end) {
|
|
277531
|
-
|
|
277539
|
+
let ret = ''
|
|
277532
277540
|
end = Math.min(buf.length, end)
|
|
277533
277541
|
|
|
277534
|
-
for (
|
|
277542
|
+
for (let i = start; i < end; ++i) {
|
|
277535
277543
|
ret += String.fromCharCode(buf[i] & 0x7F)
|
|
277536
277544
|
}
|
|
277537
277545
|
return ret
|
|
277538
277546
|
}
|
|
277539
277547
|
|
|
277540
277548
|
function latin1Slice (buf, start, end) {
|
|
277541
|
-
|
|
277549
|
+
let ret = ''
|
|
277542
277550
|
end = Math.min(buf.length, end)
|
|
277543
277551
|
|
|
277544
|
-
for (
|
|
277552
|
+
for (let i = start; i < end; ++i) {
|
|
277545
277553
|
ret += String.fromCharCode(buf[i])
|
|
277546
277554
|
}
|
|
277547
277555
|
return ret
|
|
277548
277556
|
}
|
|
277549
277557
|
|
|
277550
277558
|
function hexSlice (buf, start, end) {
|
|
277551
|
-
|
|
277559
|
+
const len = buf.length
|
|
277552
277560
|
|
|
277553
277561
|
if (!start || start < 0) start = 0
|
|
277554
277562
|
if (!end || end < 0 || end > len) end = len
|
|
277555
277563
|
|
|
277556
|
-
|
|
277557
|
-
for (
|
|
277564
|
+
let out = ''
|
|
277565
|
+
for (let i = start; i < end; ++i) {
|
|
277558
277566
|
out += hexSliceLookupTable[buf[i]]
|
|
277559
277567
|
}
|
|
277560
277568
|
return out
|
|
277561
277569
|
}
|
|
277562
277570
|
|
|
277563
277571
|
function utf16leSlice (buf, start, end) {
|
|
277564
|
-
|
|
277565
|
-
|
|
277572
|
+
const bytes = buf.slice(start, end)
|
|
277573
|
+
let res = ''
|
|
277566
277574
|
// If bytes.length is odd, the last 8 bits must be ignored (same as node.js)
|
|
277567
|
-
for (
|
|
277575
|
+
for (let i = 0; i < bytes.length - 1; i += 2) {
|
|
277568
277576
|
res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))
|
|
277569
277577
|
}
|
|
277570
277578
|
return res
|
|
277571
277579
|
}
|
|
277572
277580
|
|
|
277573
277581
|
Buffer.prototype.slice = function slice (start, end) {
|
|
277574
|
-
|
|
277582
|
+
const len = this.length
|
|
277575
277583
|
start = ~~start
|
|
277576
277584
|
end = end === undefined ? len : ~~end
|
|
277577
277585
|
|
|
@@ -277591,7 +277599,7 @@ Buffer.prototype.slice = function slice (start, end) {
|
|
|
277591
277599
|
|
|
277592
277600
|
if (end < start) end = start
|
|
277593
277601
|
|
|
277594
|
-
|
|
277602
|
+
const newBuf = this.subarray(start, end)
|
|
277595
277603
|
// Return an augmented `Uint8Array` instance
|
|
277596
277604
|
Object.setPrototypeOf(newBuf, Buffer.prototype)
|
|
277597
277605
|
|
|
@@ -277612,9 +277620,9 @@ Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert)
|
|
|
277612
277620
|
byteLength = byteLength >>> 0
|
|
277613
277621
|
if (!noAssert) checkOffset(offset, byteLength, this.length)
|
|
277614
277622
|
|
|
277615
|
-
|
|
277616
|
-
|
|
277617
|
-
|
|
277623
|
+
let val = this[offset]
|
|
277624
|
+
let mul = 1
|
|
277625
|
+
let i = 0
|
|
277618
277626
|
while (++i < byteLength && (mul *= 0x100)) {
|
|
277619
277627
|
val += this[offset + i] * mul
|
|
277620
277628
|
}
|
|
@@ -277630,8 +277638,8 @@ Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert)
|
|
|
277630
277638
|
checkOffset(offset, byteLength, this.length)
|
|
277631
277639
|
}
|
|
277632
277640
|
|
|
277633
|
-
|
|
277634
|
-
|
|
277641
|
+
let val = this[offset + --byteLength]
|
|
277642
|
+
let mul = 1
|
|
277635
277643
|
while (byteLength > 0 && (mul *= 0x100)) {
|
|
277636
277644
|
val += this[offset + --byteLength] * mul
|
|
277637
277645
|
}
|
|
@@ -277682,14 +277690,58 @@ Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
|
|
|
277682
277690
|
this[offset + 3])
|
|
277683
277691
|
}
|
|
277684
277692
|
|
|
277693
|
+
Buffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {
|
|
277694
|
+
offset = offset >>> 0
|
|
277695
|
+
validateNumber(offset, 'offset')
|
|
277696
|
+
const first = this[offset]
|
|
277697
|
+
const last = this[offset + 7]
|
|
277698
|
+
if (first === undefined || last === undefined) {
|
|
277699
|
+
boundsError(offset, this.length - 8)
|
|
277700
|
+
}
|
|
277701
|
+
|
|
277702
|
+
const lo = first +
|
|
277703
|
+
this[++offset] * 2 ** 8 +
|
|
277704
|
+
this[++offset] * 2 ** 16 +
|
|
277705
|
+
this[++offset] * 2 ** 24
|
|
277706
|
+
|
|
277707
|
+
const hi = this[++offset] +
|
|
277708
|
+
this[++offset] * 2 ** 8 +
|
|
277709
|
+
this[++offset] * 2 ** 16 +
|
|
277710
|
+
last * 2 ** 24
|
|
277711
|
+
|
|
277712
|
+
return BigInt(lo) + (BigInt(hi) << BigInt(32))
|
|
277713
|
+
})
|
|
277714
|
+
|
|
277715
|
+
Buffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {
|
|
277716
|
+
offset = offset >>> 0
|
|
277717
|
+
validateNumber(offset, 'offset')
|
|
277718
|
+
const first = this[offset]
|
|
277719
|
+
const last = this[offset + 7]
|
|
277720
|
+
if (first === undefined || last === undefined) {
|
|
277721
|
+
boundsError(offset, this.length - 8)
|
|
277722
|
+
}
|
|
277723
|
+
|
|
277724
|
+
const hi = first * 2 ** 24 +
|
|
277725
|
+
this[++offset] * 2 ** 16 +
|
|
277726
|
+
this[++offset] * 2 ** 8 +
|
|
277727
|
+
this[++offset]
|
|
277728
|
+
|
|
277729
|
+
const lo = this[++offset] * 2 ** 24 +
|
|
277730
|
+
this[++offset] * 2 ** 16 +
|
|
277731
|
+
this[++offset] * 2 ** 8 +
|
|
277732
|
+
last
|
|
277733
|
+
|
|
277734
|
+
return (BigInt(hi) << BigInt(32)) + BigInt(lo)
|
|
277735
|
+
})
|
|
277736
|
+
|
|
277685
277737
|
Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
|
|
277686
277738
|
offset = offset >>> 0
|
|
277687
277739
|
byteLength = byteLength >>> 0
|
|
277688
277740
|
if (!noAssert) checkOffset(offset, byteLength, this.length)
|
|
277689
277741
|
|
|
277690
|
-
|
|
277691
|
-
|
|
277692
|
-
|
|
277742
|
+
let val = this[offset]
|
|
277743
|
+
let mul = 1
|
|
277744
|
+
let i = 0
|
|
277693
277745
|
while (++i < byteLength && (mul *= 0x100)) {
|
|
277694
277746
|
val += this[offset + i] * mul
|
|
277695
277747
|
}
|
|
@@ -277705,9 +277757,9 @@ Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
|
|
|
277705
277757
|
byteLength = byteLength >>> 0
|
|
277706
277758
|
if (!noAssert) checkOffset(offset, byteLength, this.length)
|
|
277707
277759
|
|
|
277708
|
-
|
|
277709
|
-
|
|
277710
|
-
|
|
277760
|
+
let i = byteLength
|
|
277761
|
+
let mul = 1
|
|
277762
|
+
let val = this[offset + --i]
|
|
277711
277763
|
while (i > 0 && (mul *= 0x100)) {
|
|
277712
277764
|
val += this[offset + --i] * mul
|
|
277713
277765
|
}
|
|
@@ -277728,14 +277780,14 @@ Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
|
|
|
277728
277780
|
Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
|
|
277729
277781
|
offset = offset >>> 0
|
|
277730
277782
|
if (!noAssert) checkOffset(offset, 2, this.length)
|
|
277731
|
-
|
|
277783
|
+
const val = this[offset] | (this[offset + 1] << 8)
|
|
277732
277784
|
return (val & 0x8000) ? val | 0xFFFF0000 : val
|
|
277733
277785
|
}
|
|
277734
277786
|
|
|
277735
277787
|
Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
|
|
277736
277788
|
offset = offset >>> 0
|
|
277737
277789
|
if (!noAssert) checkOffset(offset, 2, this.length)
|
|
277738
|
-
|
|
277790
|
+
const val = this[offset + 1] | (this[offset] << 8)
|
|
277739
277791
|
return (val & 0x8000) ? val | 0xFFFF0000 : val
|
|
277740
277792
|
}
|
|
277741
277793
|
|
|
@@ -277759,6 +277811,48 @@ Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
|
|
|
277759
277811
|
(this[offset + 3])
|
|
277760
277812
|
}
|
|
277761
277813
|
|
|
277814
|
+
Buffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {
|
|
277815
|
+
offset = offset >>> 0
|
|
277816
|
+
validateNumber(offset, 'offset')
|
|
277817
|
+
const first = this[offset]
|
|
277818
|
+
const last = this[offset + 7]
|
|
277819
|
+
if (first === undefined || last === undefined) {
|
|
277820
|
+
boundsError(offset, this.length - 8)
|
|
277821
|
+
}
|
|
277822
|
+
|
|
277823
|
+
const val = this[offset + 4] +
|
|
277824
|
+
this[offset + 5] * 2 ** 8 +
|
|
277825
|
+
this[offset + 6] * 2 ** 16 +
|
|
277826
|
+
(last << 24) // Overflow
|
|
277827
|
+
|
|
277828
|
+
return (BigInt(val) << BigInt(32)) +
|
|
277829
|
+
BigInt(first +
|
|
277830
|
+
this[++offset] * 2 ** 8 +
|
|
277831
|
+
this[++offset] * 2 ** 16 +
|
|
277832
|
+
this[++offset] * 2 ** 24)
|
|
277833
|
+
})
|
|
277834
|
+
|
|
277835
|
+
Buffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {
|
|
277836
|
+
offset = offset >>> 0
|
|
277837
|
+
validateNumber(offset, 'offset')
|
|
277838
|
+
const first = this[offset]
|
|
277839
|
+
const last = this[offset + 7]
|
|
277840
|
+
if (first === undefined || last === undefined) {
|
|
277841
|
+
boundsError(offset, this.length - 8)
|
|
277842
|
+
}
|
|
277843
|
+
|
|
277844
|
+
const val = (first << 24) + // Overflow
|
|
277845
|
+
this[++offset] * 2 ** 16 +
|
|
277846
|
+
this[++offset] * 2 ** 8 +
|
|
277847
|
+
this[++offset]
|
|
277848
|
+
|
|
277849
|
+
return (BigInt(val) << BigInt(32)) +
|
|
277850
|
+
BigInt(this[++offset] * 2 ** 24 +
|
|
277851
|
+
this[++offset] * 2 ** 16 +
|
|
277852
|
+
this[++offset] * 2 ** 8 +
|
|
277853
|
+
last)
|
|
277854
|
+
})
|
|
277855
|
+
|
|
277762
277856
|
Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
|
|
277763
277857
|
offset = offset >>> 0
|
|
277764
277858
|
if (!noAssert) checkOffset(offset, 4, this.length)
|
|
@@ -277795,12 +277889,12 @@ Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength,
|
|
|
277795
277889
|
offset = offset >>> 0
|
|
277796
277890
|
byteLength = byteLength >>> 0
|
|
277797
277891
|
if (!noAssert) {
|
|
277798
|
-
|
|
277892
|
+
const maxBytes = Math.pow(2, 8 * byteLength) - 1
|
|
277799
277893
|
checkInt(this, value, offset, byteLength, maxBytes, 0)
|
|
277800
277894
|
}
|
|
277801
277895
|
|
|
277802
|
-
|
|
277803
|
-
|
|
277896
|
+
let mul = 1
|
|
277897
|
+
let i = 0
|
|
277804
277898
|
this[offset] = value & 0xFF
|
|
277805
277899
|
while (++i < byteLength && (mul *= 0x100)) {
|
|
277806
277900
|
this[offset + i] = (value / mul) & 0xFF
|
|
@@ -277815,12 +277909,12 @@ Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength,
|
|
|
277815
277909
|
offset = offset >>> 0
|
|
277816
277910
|
byteLength = byteLength >>> 0
|
|
277817
277911
|
if (!noAssert) {
|
|
277818
|
-
|
|
277912
|
+
const maxBytes = Math.pow(2, 8 * byteLength) - 1
|
|
277819
277913
|
checkInt(this, value, offset, byteLength, maxBytes, 0)
|
|
277820
277914
|
}
|
|
277821
277915
|
|
|
277822
|
-
|
|
277823
|
-
|
|
277916
|
+
let i = byteLength - 1
|
|
277917
|
+
let mul = 1
|
|
277824
277918
|
this[offset + i] = value & 0xFF
|
|
277825
277919
|
while (--i >= 0 && (mul *= 0x100)) {
|
|
277826
277920
|
this[offset + i] = (value / mul) & 0xFF
|
|
@@ -277882,18 +277976,70 @@ Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert
|
|
|
277882
277976
|
return offset + 4
|
|
277883
277977
|
}
|
|
277884
277978
|
|
|
277979
|
+
function wrtBigUInt64LE (buf, value, offset, min, max) {
|
|
277980
|
+
checkIntBI(value, min, max, buf, offset, 7)
|
|
277981
|
+
|
|
277982
|
+
let lo = Number(value & BigInt(0xffffffff))
|
|
277983
|
+
buf[offset++] = lo
|
|
277984
|
+
lo = lo >> 8
|
|
277985
|
+
buf[offset++] = lo
|
|
277986
|
+
lo = lo >> 8
|
|
277987
|
+
buf[offset++] = lo
|
|
277988
|
+
lo = lo >> 8
|
|
277989
|
+
buf[offset++] = lo
|
|
277990
|
+
let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))
|
|
277991
|
+
buf[offset++] = hi
|
|
277992
|
+
hi = hi >> 8
|
|
277993
|
+
buf[offset++] = hi
|
|
277994
|
+
hi = hi >> 8
|
|
277995
|
+
buf[offset++] = hi
|
|
277996
|
+
hi = hi >> 8
|
|
277997
|
+
buf[offset++] = hi
|
|
277998
|
+
return offset
|
|
277999
|
+
}
|
|
278000
|
+
|
|
278001
|
+
function wrtBigUInt64BE (buf, value, offset, min, max) {
|
|
278002
|
+
checkIntBI(value, min, max, buf, offset, 7)
|
|
278003
|
+
|
|
278004
|
+
let lo = Number(value & BigInt(0xffffffff))
|
|
278005
|
+
buf[offset + 7] = lo
|
|
278006
|
+
lo = lo >> 8
|
|
278007
|
+
buf[offset + 6] = lo
|
|
278008
|
+
lo = lo >> 8
|
|
278009
|
+
buf[offset + 5] = lo
|
|
278010
|
+
lo = lo >> 8
|
|
278011
|
+
buf[offset + 4] = lo
|
|
278012
|
+
let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))
|
|
278013
|
+
buf[offset + 3] = hi
|
|
278014
|
+
hi = hi >> 8
|
|
278015
|
+
buf[offset + 2] = hi
|
|
278016
|
+
hi = hi >> 8
|
|
278017
|
+
buf[offset + 1] = hi
|
|
278018
|
+
hi = hi >> 8
|
|
278019
|
+
buf[offset] = hi
|
|
278020
|
+
return offset + 8
|
|
278021
|
+
}
|
|
278022
|
+
|
|
278023
|
+
Buffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {
|
|
278024
|
+
return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))
|
|
278025
|
+
})
|
|
278026
|
+
|
|
278027
|
+
Buffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {
|
|
278028
|
+
return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))
|
|
278029
|
+
})
|
|
278030
|
+
|
|
277885
278031
|
Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
|
|
277886
278032
|
value = +value
|
|
277887
278033
|
offset = offset >>> 0
|
|
277888
278034
|
if (!noAssert) {
|
|
277889
|
-
|
|
278035
|
+
const limit = Math.pow(2, (8 * byteLength) - 1)
|
|
277890
278036
|
|
|
277891
278037
|
checkInt(this, value, offset, byteLength, limit - 1, -limit)
|
|
277892
278038
|
}
|
|
277893
278039
|
|
|
277894
|
-
|
|
277895
|
-
|
|
277896
|
-
|
|
278040
|
+
let i = 0
|
|
278041
|
+
let mul = 1
|
|
278042
|
+
let sub = 0
|
|
277897
278043
|
this[offset] = value & 0xFF
|
|
277898
278044
|
while (++i < byteLength && (mul *= 0x100)) {
|
|
277899
278045
|
if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
|
|
@@ -277909,14 +278055,14 @@ Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, no
|
|
|
277909
278055
|
value = +value
|
|
277910
278056
|
offset = offset >>> 0
|
|
277911
278057
|
if (!noAssert) {
|
|
277912
|
-
|
|
278058
|
+
const limit = Math.pow(2, (8 * byteLength) - 1)
|
|
277913
278059
|
|
|
277914
278060
|
checkInt(this, value, offset, byteLength, limit - 1, -limit)
|
|
277915
278061
|
}
|
|
277916
278062
|
|
|
277917
|
-
|
|
277918
|
-
|
|
277919
|
-
|
|
278063
|
+
let i = byteLength - 1
|
|
278064
|
+
let mul = 1
|
|
278065
|
+
let sub = 0
|
|
277920
278066
|
this[offset + i] = value & 0xFF
|
|
277921
278067
|
while (--i >= 0 && (mul *= 0x100)) {
|
|
277922
278068
|
if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
|
|
@@ -277978,6 +278124,14 @@ Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert)
|
|
|
277978
278124
|
return offset + 4
|
|
277979
278125
|
}
|
|
277980
278126
|
|
|
278127
|
+
Buffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {
|
|
278128
|
+
return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))
|
|
278129
|
+
})
|
|
278130
|
+
|
|
278131
|
+
Buffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {
|
|
278132
|
+
return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))
|
|
278133
|
+
})
|
|
278134
|
+
|
|
277981
278135
|
function checkIEEE754 (buf, value, offset, ext, max, min) {
|
|
277982
278136
|
if (offset + ext > buf.length) throw new RangeError('Index out of range')
|
|
277983
278137
|
if (offset < 0) throw new RangeError('Index out of range')
|
|
@@ -278045,7 +278199,7 @@ Buffer.prototype.copy = function copy (target, targetStart, start, end) {
|
|
|
278045
278199
|
end = target.length - targetStart + start
|
|
278046
278200
|
}
|
|
278047
278201
|
|
|
278048
|
-
|
|
278202
|
+
const len = end - start
|
|
278049
278203
|
|
|
278050
278204
|
if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {
|
|
278051
278205
|
// Use built-in when available, missing from IE11
|
|
@@ -278083,7 +278237,7 @@ Buffer.prototype.fill = function fill (val, start, end, encoding) {
|
|
|
278083
278237
|
throw new TypeError('Unknown encoding: ' + encoding)
|
|
278084
278238
|
}
|
|
278085
278239
|
if (val.length === 1) {
|
|
278086
|
-
|
|
278240
|
+
const code = val.charCodeAt(0)
|
|
278087
278241
|
if ((encoding === 'utf8' && code < 128) ||
|
|
278088
278242
|
encoding === 'latin1') {
|
|
278089
278243
|
// Fast path: If `val` fits into a single byte, use that numeric value.
|
|
@@ -278110,16 +278264,16 @@ Buffer.prototype.fill = function fill (val, start, end, encoding) {
|
|
|
278110
278264
|
|
|
278111
278265
|
if (!val) val = 0
|
|
278112
278266
|
|
|
278113
|
-
|
|
278267
|
+
let i
|
|
278114
278268
|
if (typeof val === 'number') {
|
|
278115
278269
|
for (i = start; i < end; ++i) {
|
|
278116
278270
|
this[i] = val
|
|
278117
278271
|
}
|
|
278118
278272
|
} else {
|
|
278119
|
-
|
|
278273
|
+
const bytes = Buffer.isBuffer(val)
|
|
278120
278274
|
? val
|
|
278121
278275
|
: Buffer.from(val, encoding)
|
|
278122
|
-
|
|
278276
|
+
const len = bytes.length
|
|
278123
278277
|
if (len === 0) {
|
|
278124
278278
|
throw new TypeError('The value "' + val +
|
|
278125
278279
|
'" is invalid for argument "value"')
|
|
@@ -278132,10 +278286,143 @@ Buffer.prototype.fill = function fill (val, start, end, encoding) {
|
|
|
278132
278286
|
return this
|
|
278133
278287
|
}
|
|
278134
278288
|
|
|
278289
|
+
// CUSTOM ERRORS
|
|
278290
|
+
// =============
|
|
278291
|
+
|
|
278292
|
+
// Simplified versions from Node, changed for Buffer-only usage
|
|
278293
|
+
const errors = {}
|
|
278294
|
+
function E (sym, getMessage, Base) {
|
|
278295
|
+
errors[sym] = class NodeError extends Base {
|
|
278296
|
+
constructor () {
|
|
278297
|
+
super()
|
|
278298
|
+
|
|
278299
|
+
Object.defineProperty(this, 'message', {
|
|
278300
|
+
value: getMessage.apply(this, arguments),
|
|
278301
|
+
writable: true,
|
|
278302
|
+
configurable: true
|
|
278303
|
+
})
|
|
278304
|
+
|
|
278305
|
+
// Add the error code to the name to include it in the stack trace.
|
|
278306
|
+
this.name = `${this.name} [${sym}]`
|
|
278307
|
+
// Access the stack to generate the error message including the error code
|
|
278308
|
+
// from the name.
|
|
278309
|
+
this.stack // eslint-disable-line no-unused-expressions
|
|
278310
|
+
// Reset the name to the actual name.
|
|
278311
|
+
delete this.name
|
|
278312
|
+
}
|
|
278313
|
+
|
|
278314
|
+
get code () {
|
|
278315
|
+
return sym
|
|
278316
|
+
}
|
|
278317
|
+
|
|
278318
|
+
set code (value) {
|
|
278319
|
+
Object.defineProperty(this, 'code', {
|
|
278320
|
+
configurable: true,
|
|
278321
|
+
enumerable: true,
|
|
278322
|
+
value,
|
|
278323
|
+
writable: true
|
|
278324
|
+
})
|
|
278325
|
+
}
|
|
278326
|
+
|
|
278327
|
+
toString () {
|
|
278328
|
+
return `${this.name} [${sym}]: ${this.message}`
|
|
278329
|
+
}
|
|
278330
|
+
}
|
|
278331
|
+
}
|
|
278332
|
+
|
|
278333
|
+
E('ERR_BUFFER_OUT_OF_BOUNDS',
|
|
278334
|
+
function (name) {
|
|
278335
|
+
if (name) {
|
|
278336
|
+
return `${name} is outside of buffer bounds`
|
|
278337
|
+
}
|
|
278338
|
+
|
|
278339
|
+
return 'Attempt to access memory outside buffer bounds'
|
|
278340
|
+
}, RangeError)
|
|
278341
|
+
E('ERR_INVALID_ARG_TYPE',
|
|
278342
|
+
function (name, actual) {
|
|
278343
|
+
return `The "${name}" argument must be of type number. Received type ${typeof actual}`
|
|
278344
|
+
}, TypeError)
|
|
278345
|
+
E('ERR_OUT_OF_RANGE',
|
|
278346
|
+
function (str, range, input) {
|
|
278347
|
+
let msg = `The value of "${str}" is out of range.`
|
|
278348
|
+
let received = input
|
|
278349
|
+
if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
|
|
278350
|
+
received = addNumericalSeparator(String(input))
|
|
278351
|
+
} else if (typeof input === 'bigint') {
|
|
278352
|
+
received = String(input)
|
|
278353
|
+
if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {
|
|
278354
|
+
received = addNumericalSeparator(received)
|
|
278355
|
+
}
|
|
278356
|
+
received += 'n'
|
|
278357
|
+
}
|
|
278358
|
+
msg += ` It must be ${range}. Received ${received}`
|
|
278359
|
+
return msg
|
|
278360
|
+
}, RangeError)
|
|
278361
|
+
|
|
278362
|
+
function addNumericalSeparator (val) {
|
|
278363
|
+
let res = ''
|
|
278364
|
+
let i = val.length
|
|
278365
|
+
const start = val[0] === '-' ? 1 : 0
|
|
278366
|
+
for (; i >= start + 4; i -= 3) {
|
|
278367
|
+
res = `_${val.slice(i - 3, i)}${res}`
|
|
278368
|
+
}
|
|
278369
|
+
return `${val.slice(0, i)}${res}`
|
|
278370
|
+
}
|
|
278371
|
+
|
|
278372
|
+
// CHECK FUNCTIONS
|
|
278373
|
+
// ===============
|
|
278374
|
+
|
|
278375
|
+
function checkBounds (buf, offset, byteLength) {
|
|
278376
|
+
validateNumber(offset, 'offset')
|
|
278377
|
+
if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {
|
|
278378
|
+
boundsError(offset, buf.length - (byteLength + 1))
|
|
278379
|
+
}
|
|
278380
|
+
}
|
|
278381
|
+
|
|
278382
|
+
function checkIntBI (value, min, max, buf, offset, byteLength) {
|
|
278383
|
+
if (value > max || value < min) {
|
|
278384
|
+
const n = typeof min === 'bigint' ? 'n' : ''
|
|
278385
|
+
let range
|
|
278386
|
+
if (byteLength > 3) {
|
|
278387
|
+
if (min === 0 || min === BigInt(0)) {
|
|
278388
|
+
range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`
|
|
278389
|
+
} else {
|
|
278390
|
+
range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +
|
|
278391
|
+
`${(byteLength + 1) * 8 - 1}${n}`
|
|
278392
|
+
}
|
|
278393
|
+
} else {
|
|
278394
|
+
range = `>= ${min}${n} and <= ${max}${n}`
|
|
278395
|
+
}
|
|
278396
|
+
throw new errors.ERR_OUT_OF_RANGE('value', range, value)
|
|
278397
|
+
}
|
|
278398
|
+
checkBounds(buf, offset, byteLength)
|
|
278399
|
+
}
|
|
278400
|
+
|
|
278401
|
+
function validateNumber (value, name) {
|
|
278402
|
+
if (typeof value !== 'number') {
|
|
278403
|
+
throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)
|
|
278404
|
+
}
|
|
278405
|
+
}
|
|
278406
|
+
|
|
278407
|
+
function boundsError (value, length, type) {
|
|
278408
|
+
if (Math.floor(value) !== value) {
|
|
278409
|
+
validateNumber(value, type)
|
|
278410
|
+
throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)
|
|
278411
|
+
}
|
|
278412
|
+
|
|
278413
|
+
if (length < 0) {
|
|
278414
|
+
throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()
|
|
278415
|
+
}
|
|
278416
|
+
|
|
278417
|
+
throw new errors.ERR_OUT_OF_RANGE(type || 'offset',
|
|
278418
|
+
`>= ${type ? 1 : 0} and <= ${length}`,
|
|
278419
|
+
value)
|
|
278420
|
+
}
|
|
278421
|
+
|
|
278135
278422
|
// HELPER FUNCTIONS
|
|
278136
278423
|
// ================
|
|
278137
278424
|
|
|
278138
|
-
|
|
278425
|
+
const INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g
|
|
278139
278426
|
|
|
278140
278427
|
function base64clean (str) {
|
|
278141
278428
|
// Node takes equal signs as end of the Base64 encoding
|
|
@@ -278153,12 +278440,12 @@ function base64clean (str) {
|
|
|
278153
278440
|
|
|
278154
278441
|
function utf8ToBytes (string, units) {
|
|
278155
278442
|
units = units || Infinity
|
|
278156
|
-
|
|
278157
|
-
|
|
278158
|
-
|
|
278159
|
-
|
|
278443
|
+
let codePoint
|
|
278444
|
+
const length = string.length
|
|
278445
|
+
let leadSurrogate = null
|
|
278446
|
+
const bytes = []
|
|
278160
278447
|
|
|
278161
|
-
for (
|
|
278448
|
+
for (let i = 0; i < length; ++i) {
|
|
278162
278449
|
codePoint = string.charCodeAt(i)
|
|
278163
278450
|
|
|
278164
278451
|
// is surrogate component
|
|
@@ -278232,8 +278519,8 @@ function utf8ToBytes (string, units) {
|
|
|
278232
278519
|
}
|
|
278233
278520
|
|
|
278234
278521
|
function asciiToBytes (str) {
|
|
278235
|
-
|
|
278236
|
-
for (
|
|
278522
|
+
const byteArray = []
|
|
278523
|
+
for (let i = 0; i < str.length; ++i) {
|
|
278237
278524
|
// Node's code seems to be doing this and not & 0x7F..
|
|
278238
278525
|
byteArray.push(str.charCodeAt(i) & 0xFF)
|
|
278239
278526
|
}
|
|
@@ -278241,9 +278528,9 @@ function asciiToBytes (str) {
|
|
|
278241
278528
|
}
|
|
278242
278529
|
|
|
278243
278530
|
function utf16leToBytes (str, units) {
|
|
278244
|
-
|
|
278245
|
-
|
|
278246
|
-
for (
|
|
278531
|
+
let c, hi, lo
|
|
278532
|
+
const byteArray = []
|
|
278533
|
+
for (let i = 0; i < str.length; ++i) {
|
|
278247
278534
|
if ((units -= 2) < 0) break
|
|
278248
278535
|
|
|
278249
278536
|
c = str.charCodeAt(i)
|
|
@@ -278261,7 +278548,8 @@ function base64ToBytes (str) {
|
|
|
278261
278548
|
}
|
|
278262
278549
|
|
|
278263
278550
|
function blitBuffer (src, dst, offset, length) {
|
|
278264
|
-
|
|
278551
|
+
let i
|
|
278552
|
+
for (i = 0; i < length; ++i) {
|
|
278265
278553
|
if ((i + offset >= dst.length) || (i >= src.length)) break
|
|
278266
278554
|
dst[i + offset] = src[i]
|
|
278267
278555
|
}
|
|
@@ -278283,18 +278571,27 @@ function numberIsNaN (obj) {
|
|
|
278283
278571
|
|
|
278284
278572
|
// Create lookup table for `toString('hex')`
|
|
278285
278573
|
// See: https://github.com/feross/buffer/issues/219
|
|
278286
|
-
|
|
278287
|
-
|
|
278288
|
-
|
|
278289
|
-
for (
|
|
278290
|
-
|
|
278291
|
-
for (
|
|
278574
|
+
const hexSliceLookupTable = (function () {
|
|
278575
|
+
const alphabet = '0123456789abcdef'
|
|
278576
|
+
const table = new Array(256)
|
|
278577
|
+
for (let i = 0; i < 16; ++i) {
|
|
278578
|
+
const i16 = i * 16
|
|
278579
|
+
for (let j = 0; j < 16; ++j) {
|
|
278292
278580
|
table[i16 + j] = alphabet[i] + alphabet[j]
|
|
278293
278581
|
}
|
|
278294
278582
|
}
|
|
278295
278583
|
return table
|
|
278296
278584
|
})()
|
|
278297
278585
|
|
|
278586
|
+
// Return not function with Error if BigInt not supported
|
|
278587
|
+
function defineBigIntMethod (fn) {
|
|
278588
|
+
return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn
|
|
278589
|
+
}
|
|
278590
|
+
|
|
278591
|
+
function BufferBigIntNotDefined () {
|
|
278592
|
+
throw new Error('BigInt not supported')
|
|
278593
|
+
}
|
|
278594
|
+
|
|
278298
278595
|
|
|
278299
278596
|
/***/ }),
|
|
278300
278597
|
|
|
@@ -399326,7 +399623,7 @@ function __disposeResources(env) {
|
|
|
399326
399623
|
/******/ // This function allow to reference async chunks
|
|
399327
399624
|
/******/ __webpack_require__.u = (chunkId) => {
|
|
399328
399625
|
/******/ // return url for filenames based on template
|
|
399329
|
-
/******/ return "" + ({"1985":"polySeg","2158":"histogram-worker","7607":"suv-peak-worker"}[chunkId] || chunkId) + ".bundle." + {"153":"
|
|
399626
|
+
/******/ return "" + ({"1985":"polySeg","2158":"histogram-worker","7607":"suv-peak-worker"}[chunkId] || chunkId) + ".bundle." + {"79":"b03daeeef3e6faf9dca3","153":"52f9f8d3ecfc88f18ebb","655":"805114d0d89a4bd4d92d","818":"b6027359846cc90e32ff","962":"c6dcf9d6c1d56ebff24d","1169":"d32f38ab5aa329346850","1202":"55f140afb05e1ad5512c","1498":"a2d05ac1f27d0c2d2c9f","1540":"2a0208cc8d5cabfc569d","1985":"0a70e65fe89169ec7508","1994":"04ba989c747992f45c6e","2119":"142793bed5b53a2f4a30","2158":"d97bab3206c49329f64b","2412":"e1abf9a60dcecb7f0c77","2791":"cdffc588e0401363be5c","2831":"22245416b8edb6c9dc56","2898":"21f0702e5d67b8aca5af","3286":"b9b3a165dc5a8b24b47f","3497":"512610422a2862584c55","3658":"ca4d24aa942995e51df2","3962":"0d49146b27c7b7dcb48a","4210":"e81688aaa6aec1c4f973","4353":"7aacb9d40bc20bb4aa36","4530":"ec12dfd2fbf9083b164e","4757":"ed362a485344485c9f1c","4842":"9264e466874f0206d564","4978":"f580a489066e909c8dc9","5793":"d1b4e887564bbb98752d","5888":"8b4c8f227376800c6e1d","5898":"be696e0b355efc1c7f05","5931":"f16bcd50591d83af9f7a","6010":"a41bef6e63d1f8f8af7f","6591":"5b4b8bfff223013aa46f","6904":"da0d83fcd48a48cfaac1","7246":"32f7f871fb1016362af8","7360":"4233f9f8747d6facdc54","7376":"f087dc1e0e16a41dedbe","7502":"e37c3a247f287d282838","7607":"54d68bc1808ad3d77994","7913":"207d7463f90bb92e4ab4","8315":"5066943ed0a18dd2ae4e","8714":"fb419b4e3c25ae85d9fb","8944":"2c07f90c73692457ffa3","8993":"23cd5f8560800a97d798","8999":"d9dbbf80990887877381"}[chunkId] + ".js";
|
|
399330
399627
|
/******/ };
|
|
399331
399628
|
/******/ })();
|
|
399332
399629
|
/******/
|
|
@@ -399498,7 +399795,7 @@ function __disposeResources(env) {
|
|
|
399498
399795
|
/******/ };
|
|
399499
399796
|
/******/
|
|
399500
399797
|
/******/ __webpack_require__.f.miniCss = (chunkId, promises) => {
|
|
399501
|
-
/******/ var cssChunks = {"
|
|
399798
|
+
/******/ var cssChunks = {"79":1,"1169":1,"1540":1,"1994":1,"2119":1,"3286":1,"4210":1,"4757":1};
|
|
399502
399799
|
/******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
|
|
399503
399800
|
/******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
|
|
399504
399801
|
/******/ promises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(() => {
|
|
@@ -399513,7 +399810,7 @@ function __disposeResources(env) {
|
|
|
399513
399810
|
/******/ // no hmr
|
|
399514
399811
|
/******/
|
|
399515
399812
|
/******/ __webpack_require__.F.miniCss = (chunkId) => {
|
|
399516
|
-
/******/ if((!__webpack_require__.o(installedCssChunks, chunkId) || installedCssChunks[chunkId] === undefined) && /^((
|
|
399813
|
+
/******/ if((!__webpack_require__.o(installedCssChunks, chunkId) || installedCssChunks[chunkId] === undefined) && /^(1(169|540|994)|21(19|43)|3286|4210|4757|79)$/.test(chunkId)) {
|
|
399517
399814
|
/******/ installedCssChunks[chunkId] = null;
|
|
399518
399815
|
/******/ var link = document.createElement('link');
|
|
399519
399816
|
/******/
|
|
@@ -399554,7 +399851,7 @@ function __disposeResources(env) {
|
|
|
399554
399851
|
/******/ if(installedChunkData) {
|
|
399555
399852
|
/******/ promises.push(installedChunkData[2]);
|
|
399556
399853
|
/******/ } else {
|
|
399557
|
-
/******/ if(!/^(
|
|
399854
|
+
/******/ if(!/^(1540|4757)$/.test(chunkId)) {
|
|
399558
399855
|
/******/ // setup Promise in chunk cache
|
|
399559
399856
|
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
|
|
399560
399857
|
/******/ promises.push(installedChunkData[2] = promise);
|
|
@@ -399585,7 +399882,7 @@ function __disposeResources(env) {
|
|
|
399585
399882
|
/******/ };
|
|
399586
399883
|
/******/
|
|
399587
399884
|
/******/ __webpack_require__.F.j = (chunkId) => {
|
|
399588
|
-
/******/ if((!__webpack_require__.o(installedChunks, chunkId) || installedChunks[chunkId] === undefined) && !/^(
|
|
399885
|
+
/******/ if((!__webpack_require__.o(installedChunks, chunkId) || installedChunks[chunkId] === undefined) && !/^(1540|4757)$/.test(chunkId)) {
|
|
399589
399886
|
/******/ installedChunks[chunkId] = null;
|
|
399590
399887
|
/******/ var link = document.createElement('link');
|
|
399591
399888
|
/******/
|
|
@@ -399645,12 +399942,16 @@ function __disposeResources(env) {
|
|
|
399645
399942
|
/******/ /* webpack/runtime/chunk prefetch trigger */
|
|
399646
399943
|
/******/ (() => {
|
|
399647
399944
|
/******/ var chunkToChildrenMap = {
|
|
399945
|
+
/******/ "1540": [
|
|
399946
|
+
/******/ 1169
|
|
399947
|
+
/******/ ],
|
|
399648
399948
|
/******/ "1994": [
|
|
399649
399949
|
/******/ 8714,
|
|
399650
399950
|
/******/ 1498
|
|
399651
399951
|
/******/ ],
|
|
399652
|
-
/******/ "
|
|
399653
|
-
/******/ 1169
|
|
399952
|
+
/******/ "2119": [
|
|
399953
|
+
/******/ 1169,
|
|
399954
|
+
/******/ 2898
|
|
399654
399955
|
/******/ ],
|
|
399655
399956
|
/******/ "2791": [
|
|
399656
399957
|
/******/ 3658
|
|
@@ -399666,10 +399967,6 @@ function __disposeResources(env) {
|
|
|
399666
399967
|
/******/ ],
|
|
399667
399968
|
/******/ "8944": [
|
|
399668
399969
|
/******/ 3286
|
|
399669
|
-
/******/ ],
|
|
399670
|
-
/******/ "9824": [
|
|
399671
|
-
/******/ 1169,
|
|
399672
|
-
/******/ 2898
|
|
399673
399970
|
/******/ ]
|
|
399674
399971
|
/******/ };
|
|
399675
399972
|
/******/ __webpack_require__.f.prefetch = (chunkId, promises) => (Promise.all(promises).then(() => {
|