@ohif/app 3.9.0-beta.76 → 3.9.0-beta.78
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.d347a831c1be751d0627.js → 1994.bundle.083fb36bc0648f2dbda6.js} +3 -3
- package/dist/{9824.bundle.e16a5ef35eedfa74b3be.js → 2119.bundle.3446480f91f1200cd45c.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.fb376c67d110f8177eea.js → 4210.bundle.38eb5056ac41a0b04d21.js} +2 -2
- package/dist/{4842.bundle.619edd60983634d9f8dd.js → 4842.bundle.0427b8aa1b52aa050ed2.js} +12 -8
- package/dist/{5888.bundle.91227a2efe569869fdd0.js → 5888.bundle.ebca6329037cf353968f.js} +14 -7
- package/dist/{2417.bundle.4a0334c8c4047005979e.js → 5898.bundle.be696e0b355efc1c7f05.js} +1947 -1
- package/dist/{2281.bundle.216a0d86eaed7f4870ae.js → 655.bundle.28f107410332c62993a3.js} +170 -66
- package/dist/{6591.bundle.ace15b11ac7df3edf1bb.js → 6591.bundle.92a28f98c3f45ac3b3f1.js} +15 -1
- package/dist/{7502.bundle.abf1ade64f101ba01596.js → 7502.bundle.550aee57ecd221eab7c1.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.5d8f4c26b1fa393e26a4.js → 8999.bundle.e23beb310b14ca9ded76.js} +13 -133
- package/dist/{9579.bundle.7212d7a737a71bb61502.js → 9579.bundle.f9c9be0c5ab6cddbde3d.js} +8 -7
- package/dist/{5516.bundle.074fac92088b103bf0e3.js → 962.bundle.04afab064299df16f869.js} +408 -179
- package/dist/app-config.js +1 -0
- package/dist/{app.bundle.016cbb7783086e131b26.js → app.bundle.53faac5b01b67714fad2.js} +658 -352
- 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.35f9f8c81db7a40221cf.js → 153.bundle.3ba838ef3c08a266ae35.js} +0 -0
- package/dist/{2791.bundle.29069810b8cf85d6aa0f.js → 2791.bundle.cfa27e4347069ab301b7.js} +0 -0
- package/dist/{3497.bundle.a04a2444975bf50fddf8.js → 3497.bundle.512610422a2862584c55.js} +0 -0
- package/dist/{3962.bundle.9a463bda1035e46ebbba.js → 3962.bundle.31bfadcde7f5a2dd8932.js} +0 -0
- package/dist/{4353.bundle.ac8577aa909c2c56db16.js → 4353.bundle.c13a0c72c607850ea3c0.js} +0 -0
- package/dist/{4978.bundle.19b43e91a7fe302599c6.js → 4978.bundle.655344cfd52d9f0641e5.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.11a6fa77c63c0df329bc.js → 7246.bundle.f1cbdd5ec9387bb6f8fe.js} +0 -0
- package/dist/{7360.bundle.114b1294460b2d9bfeb9.js → 7360.bundle.d0bdb43af1494bccc433.js} +0 -0
- package/dist/{7376.bundle.e9fea4789985d4409171.js → 7376.bundle.d6b445de2d468ab2e8b3.js} +0 -0
- package/dist/{3424.css → 79.css} +1 -1
- /package/dist/{7913.bundle.dc45c449f89985c7dd7c.js → 7913.bundle.353baac2e2a5b4bb330d.js} +0 -0
- /package/dist/{818.bundle.b64fae7e982e16a82ca2.js → 818.bundle.b6027359846cc90e32ff.js} +0 -0
- /package/dist/{8944.bundle.a3cecebcc7b2ca3c7259.js → 8944.bundle.29926bb653a467c7e7d8.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.78";
|
|
1033
|
+
const commitHash = "7599ec9421129dcade94e6fa6ec7908424ab3134";
|
|
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.77"}');
|
|
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
|
|
@@ -75432,11 +75418,20 @@ function debounce(func, wait, immediate) {
|
|
|
75432
75418
|
* @param value - to return a fixed measurement value from
|
|
75433
75419
|
* @param precision - defining how many digits after 1..9 are desired
|
|
75434
75420
|
*/
|
|
75421
|
+
|
|
75435
75422
|
function roundNumber(value, precision = 2) {
|
|
75436
|
-
if (value
|
|
75423
|
+
if (Array.isArray(value)) {
|
|
75424
|
+
return value.map(v => roundNumber(v, precision)).join(", ");
|
|
75425
|
+
}
|
|
75426
|
+
if (value === undefined || value === null || value === "") {
|
|
75427
|
+
return "NaN";
|
|
75428
|
+
}
|
|
75437
75429
|
value = Number(value);
|
|
75438
|
-
|
|
75439
|
-
|
|
75430
|
+
const absValue = Math.abs(value);
|
|
75431
|
+
if (absValue < 0.0001) {
|
|
75432
|
+
return `${value}`;
|
|
75433
|
+
}
|
|
75434
|
+
const fixedPrecision = absValue >= 100 ? precision - 2 : absValue >= 10 ? precision - 1 : absValue >= 1 ? precision : absValue >= 0.1 ? precision + 1 : absValue >= 0.01 ? precision + 2 : absValue >= 0.001 ? precision + 3 : precision + 4;
|
|
75440
75435
|
return value.toFixed(fixedPrecision);
|
|
75441
75436
|
}
|
|
75442
75437
|
/* harmony default export */ const utils_roundNumber = (roundNumber);
|
|
@@ -75773,6 +75768,7 @@ function createStudyBrowserTabs(primaryStudyInstanceUIDs, studyDisplayList, disp
|
|
|
75773
75768
|
|
|
75774
75769
|
|
|
75775
75770
|
|
|
75771
|
+
|
|
75776
75772
|
|
|
75777
75773
|
|
|
75778
75774
|
// Commented out unused functionality.
|
|
@@ -75804,12 +75800,13 @@ const utils = {
|
|
|
75804
75800
|
Queue: Queue,
|
|
75805
75801
|
isDicomUid: isDicomUid,
|
|
75806
75802
|
isEqualWithin: isEqualWithin,
|
|
75803
|
+
sopClassDictionary: sopClassDictionary,
|
|
75807
75804
|
addAccessors: utils_addAccessors,
|
|
75808
75805
|
resolveObjectPath: resolveObjectPath,
|
|
75809
75806
|
hierarchicalListUtils: utils_hierarchicalListUtils,
|
|
75810
75807
|
progressTrackingUtils: utils_progressTrackingUtils,
|
|
75811
75808
|
isLowPriorityModality: isLowPriorityModality/* default */.Z,
|
|
75812
|
-
isImage: isImage
|
|
75809
|
+
isImage: isImage,
|
|
75813
75810
|
isDisplaySetReconstructable: isDisplaySetReconstructable/* default */.ZP,
|
|
75814
75811
|
debounce: utils_debounce,
|
|
75815
75812
|
roundNumber: utils_roundNumber,
|
|
@@ -75930,6 +75927,8 @@ function seriesInfoSortingCriteria(firstSeries, secondSeries) {
|
|
|
75930
75927
|
const aLowPriority = (0,_isLowPriorityModality__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(firstSeries.Modality ?? firstSeries.modality);
|
|
75931
75928
|
const bLowPriority = (0,_isLowPriorityModality__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(secondSeries.Modality ?? secondSeries.modality);
|
|
75932
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.
|
|
75933
75932
|
return bLowPriority ? defaultSeriesSort(secondSeries, firstSeries) : 1;
|
|
75934
75933
|
} else if (bLowPriority) {
|
|
75935
75934
|
return -1;
|
|
@@ -197081,7 +197080,7 @@ class VideoViewport extends _Viewport__WEBPACK_IMPORTED_MODULE_5__/* ["default"]
|
|
|
197081
197080
|
};
|
|
197082
197081
|
}
|
|
197083
197082
|
setDataIds(imageIds, options) {
|
|
197084
|
-
this.setVideo(imageIds[0], options?.viewReference?.sliceIndex || 1);
|
|
197083
|
+
this.setVideo(imageIds[0], (options?.viewReference?.sliceIndex || 0) + 1);
|
|
197085
197084
|
}
|
|
197086
197085
|
setVideo(imageId, frameNumber) {
|
|
197087
197086
|
this.imageId = Array.isArray(imageId) ? imageId[0] : imageId;
|
|
@@ -199203,14 +199202,14 @@ class WSIViewport extends _Viewport__WEBPACK_IMPORTED_MODULE_5__/* ["default"] *
|
|
|
199203
199202
|
return (0,_init__WEBPACK_IMPORTED_MODULE_9__/* .peerImport */ .Dm)('dicom-microscopy-viewer');
|
|
199204
199203
|
}; }
|
|
199205
199204
|
setDataIds(imageIds) {
|
|
199206
|
-
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]);
|
|
199207
199206
|
if (!webClient) {
|
|
199208
199207
|
throw new Error(`To use setDataIds on WSI data, you must provide metaData.webClient for ${imageIds[0]}`);
|
|
199209
199208
|
}
|
|
199210
199209
|
return this.setWSI(imageIds, webClient);
|
|
199211
199210
|
}
|
|
199212
199211
|
async setWSI(imageIds, client) {
|
|
199213
|
-
this.microscopyElement.style.background = '
|
|
199212
|
+
this.microscopyElement.style.background = 'black';
|
|
199214
199213
|
this.microscopyElement.innerText = 'Loading';
|
|
199215
199214
|
this.imageIds = imageIds;
|
|
199216
199215
|
const DicomMicroscopyViewer = await WSIViewport.getDicomMicroscopyViewer();
|
|
@@ -206950,10 +206949,18 @@ function vtkStreamingOpenGLVolumeMapper(publicAPI, model) {
|
|
|
206950
206949
|
}
|
|
206951
206950
|
}
|
|
206952
206951
|
if (shouldReset) {
|
|
206953
|
-
model.
|
|
206952
|
+
const norm16Ext = model.context.getExtension('EXT_texture_norm16');
|
|
206953
|
+
model.scalarTexture.setOglNorm16Ext(norm16Ext);
|
|
206954
206954
|
model.scalarTexture.releaseGraphicsResources(model._openGLRenderWindow);
|
|
206955
206955
|
model.scalarTexture.resetFormatAndType();
|
|
206956
|
-
|
|
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
|
+
}
|
|
206957
206964
|
}
|
|
206958
206965
|
else {
|
|
206959
206966
|
model.scalarTexture.deactivate();
|
|
@@ -211650,7 +211657,7 @@ var MetadataModules;
|
|
|
211650
211657
|
MetadataModules["SOP_COMMON"] = "sopCommonModule";
|
|
211651
211658
|
MetadataModules["ULTRASOUND_ENHANCED_REGION"] = "ultrasoundEnhancedRegionModule";
|
|
211652
211659
|
MetadataModules["VOI_LUT"] = "voiLutModule";
|
|
211653
|
-
MetadataModules["
|
|
211660
|
+
MetadataModules["WADO_WEB_CLIENT"] = "wadoWebClient";
|
|
211654
211661
|
})(MetadataModules || (MetadataModules = {}));
|
|
211655
211662
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MetadataModules);
|
|
211656
211663
|
|
|
@@ -211982,7 +211989,7 @@ class CornerstoneEventTarget {
|
|
|
211982
211989
|
}
|
|
211983
211990
|
dispatchEvent(event) {
|
|
211984
211991
|
if (!this.listeners[event.type]) {
|
|
211985
|
-
return;
|
|
211992
|
+
return !event.defaultPrevented;
|
|
211986
211993
|
}
|
|
211987
211994
|
const stack = this.listeners[event.type].slice();
|
|
211988
211995
|
const stackLength = stack.length;
|
|
@@ -212120,6 +212127,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
212120
212127
|
peerImport: () => (/* reexport */ init/* peerImport */.Dm),
|
|
212121
212128
|
registerImageLoader: () => (/* reexport */ imageLoader.registerImageLoader),
|
|
212122
212129
|
requestPoolManager: () => (/* reexport */ imageLoadPoolManager/* default */.Z),
|
|
212130
|
+
resetInitialization: () => (/* reexport */ init/* resetInitialization */.x$),
|
|
212123
212131
|
resetUseCPURendering: () => (/* reexport */ init/* resetUseCPURendering */.Y0),
|
|
212124
212132
|
resetUseSharedArrayBuffer: () => (/* reexport */ init/* resetUseSharedArrayBuffer */.zr),
|
|
212125
212133
|
setConfiguration: () => (/* reexport */ init/* setConfiguration */.Dg),
|
|
@@ -212428,6 +212436,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
212428
212436
|
S1: () => (/* binding */ init),
|
|
212429
212437
|
uF: () => (/* binding */ isCornerstoneInitialized),
|
|
212430
212438
|
Dm: () => (/* binding */ peerImport),
|
|
212439
|
+
x$: () => (/* binding */ resetInitialization),
|
|
212431
212440
|
Y0: () => (/* binding */ resetUseCPURendering),
|
|
212432
212441
|
zr: () => (/* binding */ resetUseSharedArrayBuffer),
|
|
212433
212442
|
Dg: () => (/* binding */ setConfiguration),
|
|
@@ -212616,6 +212625,9 @@ function getShouldUseSharedArrayBuffer() {
|
|
|
212616
212625
|
function isCornerstoneInitialized() {
|
|
212617
212626
|
return csRenderInitialized;
|
|
212618
212627
|
}
|
|
212628
|
+
function resetInitialization() {
|
|
212629
|
+
csRenderInitialized = false;
|
|
212630
|
+
}
|
|
212619
212631
|
function getConfiguration() {
|
|
212620
212632
|
return config;
|
|
212621
212633
|
}
|
|
@@ -221366,12 +221378,17 @@ function makeVolumeMetadata(imageIds) {
|
|
|
221366
221378
|
let genericMetadataProvider_state = {};
|
|
221367
221379
|
const genericMetadataProvider_metadataProvider = {
|
|
221368
221380
|
add: (imageId, payload) => {
|
|
221381
|
+
genericMetadataProvider_metadataProvider.addRaw(imageId, {
|
|
221382
|
+
...payload,
|
|
221383
|
+
metadata: structuredClone(payload.metadata),
|
|
221384
|
+
});
|
|
221385
|
+
},
|
|
221386
|
+
addRaw: (imageId, payload) => {
|
|
221369
221387
|
const type = payload.type;
|
|
221370
221388
|
if (!genericMetadataProvider_state[imageId]) {
|
|
221371
221389
|
genericMetadataProvider_state[imageId] = {};
|
|
221372
221390
|
}
|
|
221373
|
-
genericMetadataProvider_state[imageId][type] =
|
|
221374
|
-
payload.rawMetadata ?? structuredClone(payload.metadata);
|
|
221391
|
+
genericMetadataProvider_state[imageId][type] = payload.metadata;
|
|
221375
221392
|
},
|
|
221376
221393
|
get: (type, imageId) => {
|
|
221377
221394
|
return genericMetadataProvider_state[imageId]?.[type];
|
|
@@ -276478,9 +276495,9 @@ var __webpack_unused_export__;
|
|
|
276478
276495
|
|
|
276479
276496
|
|
|
276480
276497
|
|
|
276481
|
-
|
|
276482
|
-
|
|
276483
|
-
|
|
276498
|
+
const base64 = __webpack_require__(3506)
|
|
276499
|
+
const ieee754 = __webpack_require__(75597)
|
|
276500
|
+
const customInspectSymbol =
|
|
276484
276501
|
(typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation
|
|
276485
276502
|
? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation
|
|
276486
276503
|
: null
|
|
@@ -276489,7 +276506,7 @@ exports.lW = Buffer
|
|
|
276489
276506
|
__webpack_unused_export__ = SlowBuffer
|
|
276490
276507
|
exports.h2 = 50
|
|
276491
276508
|
|
|
276492
|
-
|
|
276509
|
+
const K_MAX_LENGTH = 0x7fffffff
|
|
276493
276510
|
__webpack_unused_export__ = K_MAX_LENGTH
|
|
276494
276511
|
|
|
276495
276512
|
/**
|
|
@@ -276519,8 +276536,8 @@ if (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&
|
|
|
276519
276536
|
function typedArraySupport () {
|
|
276520
276537
|
// Can typed array instances can be augmented?
|
|
276521
276538
|
try {
|
|
276522
|
-
|
|
276523
|
-
|
|
276539
|
+
const arr = new Uint8Array(1)
|
|
276540
|
+
const proto = { foo: function () { return 42 } }
|
|
276524
276541
|
Object.setPrototypeOf(proto, Uint8Array.prototype)
|
|
276525
276542
|
Object.setPrototypeOf(arr, proto)
|
|
276526
276543
|
return arr.foo() === 42
|
|
@@ -276550,7 +276567,7 @@ function createBuffer (length) {
|
|
|
276550
276567
|
throw new RangeError('The value "' + length + '" is invalid for option "size"')
|
|
276551
276568
|
}
|
|
276552
276569
|
// Return an augmented `Uint8Array` instance
|
|
276553
|
-
|
|
276570
|
+
const buf = new Uint8Array(length)
|
|
276554
276571
|
Object.setPrototypeOf(buf, Buffer.prototype)
|
|
276555
276572
|
return buf
|
|
276556
276573
|
}
|
|
@@ -276613,19 +276630,17 @@ function from (value, encodingOrOffset, length) {
|
|
|
276613
276630
|
)
|
|
276614
276631
|
}
|
|
276615
276632
|
|
|
276616
|
-
|
|
276633
|
+
const valueOf = value.valueOf && value.valueOf()
|
|
276617
276634
|
if (valueOf != null && valueOf !== value) {
|
|
276618
276635
|
return Buffer.from(valueOf, encodingOrOffset, length)
|
|
276619
276636
|
}
|
|
276620
276637
|
|
|
276621
|
-
|
|
276638
|
+
const b = fromObject(value)
|
|
276622
276639
|
if (b) return b
|
|
276623
276640
|
|
|
276624
276641
|
if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&
|
|
276625
276642
|
typeof value[Symbol.toPrimitive] === 'function') {
|
|
276626
|
-
return Buffer.from(
|
|
276627
|
-
value[Symbol.toPrimitive]('string'), encodingOrOffset, length
|
|
276628
|
-
)
|
|
276643
|
+
return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)
|
|
276629
276644
|
}
|
|
276630
276645
|
|
|
276631
276646
|
throw new TypeError(
|
|
@@ -276710,10 +276725,10 @@ function fromString (string, encoding) {
|
|
|
276710
276725
|
throw new TypeError('Unknown encoding: ' + encoding)
|
|
276711
276726
|
}
|
|
276712
276727
|
|
|
276713
|
-
|
|
276714
|
-
|
|
276728
|
+
const length = byteLength(string, encoding) | 0
|
|
276729
|
+
let buf = createBuffer(length)
|
|
276715
276730
|
|
|
276716
|
-
|
|
276731
|
+
const actual = buf.write(string, encoding)
|
|
276717
276732
|
|
|
276718
276733
|
if (actual !== length) {
|
|
276719
276734
|
// Writing a hex string, for example, that contains invalid characters will
|
|
@@ -276726,9 +276741,9 @@ function fromString (string, encoding) {
|
|
|
276726
276741
|
}
|
|
276727
276742
|
|
|
276728
276743
|
function fromArrayLike (array) {
|
|
276729
|
-
|
|
276730
|
-
|
|
276731
|
-
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) {
|
|
276732
276747
|
buf[i] = array[i] & 255
|
|
276733
276748
|
}
|
|
276734
276749
|
return buf
|
|
@@ -276736,7 +276751,7 @@ function fromArrayLike (array) {
|
|
|
276736
276751
|
|
|
276737
276752
|
function fromArrayView (arrayView) {
|
|
276738
276753
|
if (isInstance(arrayView, Uint8Array)) {
|
|
276739
|
-
|
|
276754
|
+
const copy = new Uint8Array(arrayView)
|
|
276740
276755
|
return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)
|
|
276741
276756
|
}
|
|
276742
276757
|
return fromArrayLike(arrayView)
|
|
@@ -276751,7 +276766,7 @@ function fromArrayBuffer (array, byteOffset, length) {
|
|
|
276751
276766
|
throw new RangeError('"length" is outside of buffer bounds')
|
|
276752
276767
|
}
|
|
276753
276768
|
|
|
276754
|
-
|
|
276769
|
+
let buf
|
|
276755
276770
|
if (byteOffset === undefined && length === undefined) {
|
|
276756
276771
|
buf = new Uint8Array(array)
|
|
276757
276772
|
} else if (length === undefined) {
|
|
@@ -276768,8 +276783,8 @@ function fromArrayBuffer (array, byteOffset, length) {
|
|
|
276768
276783
|
|
|
276769
276784
|
function fromObject (obj) {
|
|
276770
276785
|
if (Buffer.isBuffer(obj)) {
|
|
276771
|
-
|
|
276772
|
-
|
|
276786
|
+
const len = checked(obj.length) | 0
|
|
276787
|
+
const buf = createBuffer(len)
|
|
276773
276788
|
|
|
276774
276789
|
if (buf.length === 0) {
|
|
276775
276790
|
return buf
|
|
@@ -276824,10 +276839,10 @@ Buffer.compare = function compare (a, b) {
|
|
|
276824
276839
|
|
|
276825
276840
|
if (a === b) return 0
|
|
276826
276841
|
|
|
276827
|
-
|
|
276828
|
-
|
|
276842
|
+
let x = a.length
|
|
276843
|
+
let y = b.length
|
|
276829
276844
|
|
|
276830
|
-
for (
|
|
276845
|
+
for (let i = 0, len = Math.min(x, y); i < len; ++i) {
|
|
276831
276846
|
if (a[i] !== b[i]) {
|
|
276832
276847
|
x = a[i]
|
|
276833
276848
|
y = b[i]
|
|
@@ -276868,7 +276883,7 @@ Buffer.concat = function concat (list, length) {
|
|
|
276868
276883
|
return Buffer.alloc(0)
|
|
276869
276884
|
}
|
|
276870
276885
|
|
|
276871
|
-
|
|
276886
|
+
let i
|
|
276872
276887
|
if (length === undefined) {
|
|
276873
276888
|
length = 0
|
|
276874
276889
|
for (i = 0; i < list.length; ++i) {
|
|
@@ -276876,13 +276891,14 @@ Buffer.concat = function concat (list, length) {
|
|
|
276876
276891
|
}
|
|
276877
276892
|
}
|
|
276878
276893
|
|
|
276879
|
-
|
|
276880
|
-
|
|
276894
|
+
const buffer = Buffer.allocUnsafe(length)
|
|
276895
|
+
let pos = 0
|
|
276881
276896
|
for (i = 0; i < list.length; ++i) {
|
|
276882
|
-
|
|
276897
|
+
let buf = list[i]
|
|
276883
276898
|
if (isInstance(buf, Uint8Array)) {
|
|
276884
276899
|
if (pos + buf.length > buffer.length) {
|
|
276885
|
-
Buffer.
|
|
276900
|
+
if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)
|
|
276901
|
+
buf.copy(buffer, pos)
|
|
276886
276902
|
} else {
|
|
276887
276903
|
Uint8Array.prototype.set.call(
|
|
276888
276904
|
buffer,
|
|
@@ -276914,12 +276930,12 @@ function byteLength (string, encoding) {
|
|
|
276914
276930
|
)
|
|
276915
276931
|
}
|
|
276916
276932
|
|
|
276917
|
-
|
|
276918
|
-
|
|
276933
|
+
const len = string.length
|
|
276934
|
+
const mustMatch = (arguments.length > 2 && arguments[2] === true)
|
|
276919
276935
|
if (!mustMatch && len === 0) return 0
|
|
276920
276936
|
|
|
276921
276937
|
// Use a for loop to avoid recursion
|
|
276922
|
-
|
|
276938
|
+
let loweredCase = false
|
|
276923
276939
|
for (;;) {
|
|
276924
276940
|
switch (encoding) {
|
|
276925
276941
|
case 'ascii':
|
|
@@ -276950,7 +276966,7 @@ function byteLength (string, encoding) {
|
|
|
276950
276966
|
Buffer.byteLength = byteLength
|
|
276951
276967
|
|
|
276952
276968
|
function slowToString (encoding, start, end) {
|
|
276953
|
-
|
|
276969
|
+
let loweredCase = false
|
|
276954
276970
|
|
|
276955
276971
|
// No need to verify that "this.length <= MAX_UINT32" since it's a read-only
|
|
276956
276972
|
// property of a typed array.
|
|
@@ -277028,28 +277044,28 @@ function slowToString (encoding, start, end) {
|
|
|
277028
277044
|
Buffer.prototype._isBuffer = true
|
|
277029
277045
|
|
|
277030
277046
|
function swap (b, n, m) {
|
|
277031
|
-
|
|
277047
|
+
const i = b[n]
|
|
277032
277048
|
b[n] = b[m]
|
|
277033
277049
|
b[m] = i
|
|
277034
277050
|
}
|
|
277035
277051
|
|
|
277036
277052
|
Buffer.prototype.swap16 = function swap16 () {
|
|
277037
|
-
|
|
277053
|
+
const len = this.length
|
|
277038
277054
|
if (len % 2 !== 0) {
|
|
277039
277055
|
throw new RangeError('Buffer size must be a multiple of 16-bits')
|
|
277040
277056
|
}
|
|
277041
|
-
for (
|
|
277057
|
+
for (let i = 0; i < len; i += 2) {
|
|
277042
277058
|
swap(this, i, i + 1)
|
|
277043
277059
|
}
|
|
277044
277060
|
return this
|
|
277045
277061
|
}
|
|
277046
277062
|
|
|
277047
277063
|
Buffer.prototype.swap32 = function swap32 () {
|
|
277048
|
-
|
|
277064
|
+
const len = this.length
|
|
277049
277065
|
if (len % 4 !== 0) {
|
|
277050
277066
|
throw new RangeError('Buffer size must be a multiple of 32-bits')
|
|
277051
277067
|
}
|
|
277052
|
-
for (
|
|
277068
|
+
for (let i = 0; i < len; i += 4) {
|
|
277053
277069
|
swap(this, i, i + 3)
|
|
277054
277070
|
swap(this, i + 1, i + 2)
|
|
277055
277071
|
}
|
|
@@ -277057,11 +277073,11 @@ Buffer.prototype.swap32 = function swap32 () {
|
|
|
277057
277073
|
}
|
|
277058
277074
|
|
|
277059
277075
|
Buffer.prototype.swap64 = function swap64 () {
|
|
277060
|
-
|
|
277076
|
+
const len = this.length
|
|
277061
277077
|
if (len % 8 !== 0) {
|
|
277062
277078
|
throw new RangeError('Buffer size must be a multiple of 64-bits')
|
|
277063
277079
|
}
|
|
277064
|
-
for (
|
|
277080
|
+
for (let i = 0; i < len; i += 8) {
|
|
277065
277081
|
swap(this, i, i + 7)
|
|
277066
277082
|
swap(this, i + 1, i + 6)
|
|
277067
277083
|
swap(this, i + 2, i + 5)
|
|
@@ -277071,7 +277087,7 @@ Buffer.prototype.swap64 = function swap64 () {
|
|
|
277071
277087
|
}
|
|
277072
277088
|
|
|
277073
277089
|
Buffer.prototype.toString = function toString () {
|
|
277074
|
-
|
|
277090
|
+
const length = this.length
|
|
277075
277091
|
if (length === 0) return ''
|
|
277076
277092
|
if (arguments.length === 0) return utf8Slice(this, 0, length)
|
|
277077
277093
|
return slowToString.apply(this, arguments)
|
|
@@ -277086,8 +277102,8 @@ Buffer.prototype.equals = function equals (b) {
|
|
|
277086
277102
|
}
|
|
277087
277103
|
|
|
277088
277104
|
Buffer.prototype.inspect = function inspect () {
|
|
277089
|
-
|
|
277090
|
-
|
|
277105
|
+
let str = ''
|
|
277106
|
+
const max = exports.h2
|
|
277091
277107
|
str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()
|
|
277092
277108
|
if (this.length > max) str += ' ... '
|
|
277093
277109
|
return '<Buffer ' + str + '>'
|
|
@@ -277141,14 +277157,14 @@ Buffer.prototype.compare = function compare (target, start, end, thisStart, this
|
|
|
277141
277157
|
|
|
277142
277158
|
if (this === target) return 0
|
|
277143
277159
|
|
|
277144
|
-
|
|
277145
|
-
|
|
277146
|
-
|
|
277160
|
+
let x = thisEnd - thisStart
|
|
277161
|
+
let y = end - start
|
|
277162
|
+
const len = Math.min(x, y)
|
|
277147
277163
|
|
|
277148
|
-
|
|
277149
|
-
|
|
277164
|
+
const thisCopy = this.slice(thisStart, thisEnd)
|
|
277165
|
+
const targetCopy = target.slice(start, end)
|
|
277150
277166
|
|
|
277151
|
-
for (
|
|
277167
|
+
for (let i = 0; i < len; ++i) {
|
|
277152
277168
|
if (thisCopy[i] !== targetCopy[i]) {
|
|
277153
277169
|
x = thisCopy[i]
|
|
277154
277170
|
y = targetCopy[i]
|
|
@@ -277227,9 +277243,9 @@ function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
|
|
|
277227
277243
|
}
|
|
277228
277244
|
|
|
277229
277245
|
function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
|
|
277230
|
-
|
|
277231
|
-
|
|
277232
|
-
|
|
277246
|
+
let indexSize = 1
|
|
277247
|
+
let arrLength = arr.length
|
|
277248
|
+
let valLength = val.length
|
|
277233
277249
|
|
|
277234
277250
|
if (encoding !== undefined) {
|
|
277235
277251
|
encoding = String(encoding).toLowerCase()
|
|
@@ -277253,9 +277269,9 @@ function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
|
|
|
277253
277269
|
}
|
|
277254
277270
|
}
|
|
277255
277271
|
|
|
277256
|
-
|
|
277272
|
+
let i
|
|
277257
277273
|
if (dir) {
|
|
277258
|
-
|
|
277274
|
+
let foundIndex = -1
|
|
277259
277275
|
for (i = byteOffset; i < arrLength; i++) {
|
|
277260
277276
|
if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
|
|
277261
277277
|
if (foundIndex === -1) foundIndex = i
|
|
@@ -277268,8 +277284,8 @@ function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
|
|
|
277268
277284
|
} else {
|
|
277269
277285
|
if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
|
|
277270
277286
|
for (i = byteOffset; i >= 0; i--) {
|
|
277271
|
-
|
|
277272
|
-
for (
|
|
277287
|
+
let found = true
|
|
277288
|
+
for (let j = 0; j < valLength; j++) {
|
|
277273
277289
|
if (read(arr, i + j) !== read(val, j)) {
|
|
277274
277290
|
found = false
|
|
277275
277291
|
break
|
|
@@ -277296,7 +277312,7 @@ Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding)
|
|
|
277296
277312
|
|
|
277297
277313
|
function hexWrite (buf, string, offset, length) {
|
|
277298
277314
|
offset = Number(offset) || 0
|
|
277299
|
-
|
|
277315
|
+
const remaining = buf.length - offset
|
|
277300
277316
|
if (!length) {
|
|
277301
277317
|
length = remaining
|
|
277302
277318
|
} else {
|
|
@@ -277306,13 +277322,14 @@ function hexWrite (buf, string, offset, length) {
|
|
|
277306
277322
|
}
|
|
277307
277323
|
}
|
|
277308
277324
|
|
|
277309
|
-
|
|
277325
|
+
const strLen = string.length
|
|
277310
277326
|
|
|
277311
277327
|
if (length > strLen / 2) {
|
|
277312
277328
|
length = strLen / 2
|
|
277313
277329
|
}
|
|
277314
|
-
|
|
277315
|
-
|
|
277330
|
+
let i
|
|
277331
|
+
for (i = 0; i < length; ++i) {
|
|
277332
|
+
const parsed = parseInt(string.substr(i * 2, 2), 16)
|
|
277316
277333
|
if (numberIsNaN(parsed)) return i
|
|
277317
277334
|
buf[offset + i] = parsed
|
|
277318
277335
|
}
|
|
@@ -277362,7 +277379,7 @@ Buffer.prototype.write = function write (string, offset, length, encoding) {
|
|
|
277362
277379
|
)
|
|
277363
277380
|
}
|
|
277364
277381
|
|
|
277365
|
-
|
|
277382
|
+
const remaining = this.length - offset
|
|
277366
277383
|
if (length === undefined || length > remaining) length = remaining
|
|
277367
277384
|
|
|
277368
277385
|
if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
|
|
@@ -277371,7 +277388,7 @@ Buffer.prototype.write = function write (string, offset, length, encoding) {
|
|
|
277371
277388
|
|
|
277372
277389
|
if (!encoding) encoding = 'utf8'
|
|
277373
277390
|
|
|
277374
|
-
|
|
277391
|
+
let loweredCase = false
|
|
277375
277392
|
for (;;) {
|
|
277376
277393
|
switch (encoding) {
|
|
277377
277394
|
case 'hex':
|
|
@@ -277421,13 +277438,13 @@ function base64Slice (buf, start, end) {
|
|
|
277421
277438
|
|
|
277422
277439
|
function utf8Slice (buf, start, end) {
|
|
277423
277440
|
end = Math.min(buf.length, end)
|
|
277424
|
-
|
|
277441
|
+
const res = []
|
|
277425
277442
|
|
|
277426
|
-
|
|
277443
|
+
let i = start
|
|
277427
277444
|
while (i < end) {
|
|
277428
|
-
|
|
277429
|
-
|
|
277430
|
-
|
|
277445
|
+
const firstByte = buf[i]
|
|
277446
|
+
let codePoint = null
|
|
277447
|
+
let bytesPerSequence = (firstByte > 0xEF)
|
|
277431
277448
|
? 4
|
|
277432
277449
|
: (firstByte > 0xDF)
|
|
277433
277450
|
? 3
|
|
@@ -277436,7 +277453,7 @@ function utf8Slice (buf, start, end) {
|
|
|
277436
277453
|
: 1
|
|
277437
277454
|
|
|
277438
277455
|
if (i + bytesPerSequence <= end) {
|
|
277439
|
-
|
|
277456
|
+
let secondByte, thirdByte, fourthByte, tempCodePoint
|
|
277440
277457
|
|
|
277441
277458
|
switch (bytesPerSequence) {
|
|
277442
277459
|
case 1:
|
|
@@ -277498,17 +277515,17 @@ function utf8Slice (buf, start, end) {
|
|
|
277498
277515
|
// Based on http://stackoverflow.com/a/22747272/680742, the browser with
|
|
277499
277516
|
// the lowest limit is Chrome, with 0x10000 args.
|
|
277500
277517
|
// We go 1 magnitude less, for safety
|
|
277501
|
-
|
|
277518
|
+
const MAX_ARGUMENTS_LENGTH = 0x1000
|
|
277502
277519
|
|
|
277503
277520
|
function decodeCodePointsArray (codePoints) {
|
|
277504
|
-
|
|
277521
|
+
const len = codePoints.length
|
|
277505
277522
|
if (len <= MAX_ARGUMENTS_LENGTH) {
|
|
277506
277523
|
return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
|
|
277507
277524
|
}
|
|
277508
277525
|
|
|
277509
277526
|
// Decode in chunks to avoid "call stack size exceeded".
|
|
277510
|
-
|
|
277511
|
-
|
|
277527
|
+
let res = ''
|
|
277528
|
+
let i = 0
|
|
277512
277529
|
while (i < len) {
|
|
277513
277530
|
res += String.fromCharCode.apply(
|
|
277514
277531
|
String,
|
|
@@ -277519,50 +277536,50 @@ function decodeCodePointsArray (codePoints) {
|
|
|
277519
277536
|
}
|
|
277520
277537
|
|
|
277521
277538
|
function asciiSlice (buf, start, end) {
|
|
277522
|
-
|
|
277539
|
+
let ret = ''
|
|
277523
277540
|
end = Math.min(buf.length, end)
|
|
277524
277541
|
|
|
277525
|
-
for (
|
|
277542
|
+
for (let i = start; i < end; ++i) {
|
|
277526
277543
|
ret += String.fromCharCode(buf[i] & 0x7F)
|
|
277527
277544
|
}
|
|
277528
277545
|
return ret
|
|
277529
277546
|
}
|
|
277530
277547
|
|
|
277531
277548
|
function latin1Slice (buf, start, end) {
|
|
277532
|
-
|
|
277549
|
+
let ret = ''
|
|
277533
277550
|
end = Math.min(buf.length, end)
|
|
277534
277551
|
|
|
277535
|
-
for (
|
|
277552
|
+
for (let i = start; i < end; ++i) {
|
|
277536
277553
|
ret += String.fromCharCode(buf[i])
|
|
277537
277554
|
}
|
|
277538
277555
|
return ret
|
|
277539
277556
|
}
|
|
277540
277557
|
|
|
277541
277558
|
function hexSlice (buf, start, end) {
|
|
277542
|
-
|
|
277559
|
+
const len = buf.length
|
|
277543
277560
|
|
|
277544
277561
|
if (!start || start < 0) start = 0
|
|
277545
277562
|
if (!end || end < 0 || end > len) end = len
|
|
277546
277563
|
|
|
277547
|
-
|
|
277548
|
-
for (
|
|
277564
|
+
let out = ''
|
|
277565
|
+
for (let i = start; i < end; ++i) {
|
|
277549
277566
|
out += hexSliceLookupTable[buf[i]]
|
|
277550
277567
|
}
|
|
277551
277568
|
return out
|
|
277552
277569
|
}
|
|
277553
277570
|
|
|
277554
277571
|
function utf16leSlice (buf, start, end) {
|
|
277555
|
-
|
|
277556
|
-
|
|
277572
|
+
const bytes = buf.slice(start, end)
|
|
277573
|
+
let res = ''
|
|
277557
277574
|
// If bytes.length is odd, the last 8 bits must be ignored (same as node.js)
|
|
277558
|
-
for (
|
|
277575
|
+
for (let i = 0; i < bytes.length - 1; i += 2) {
|
|
277559
277576
|
res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))
|
|
277560
277577
|
}
|
|
277561
277578
|
return res
|
|
277562
277579
|
}
|
|
277563
277580
|
|
|
277564
277581
|
Buffer.prototype.slice = function slice (start, end) {
|
|
277565
|
-
|
|
277582
|
+
const len = this.length
|
|
277566
277583
|
start = ~~start
|
|
277567
277584
|
end = end === undefined ? len : ~~end
|
|
277568
277585
|
|
|
@@ -277582,7 +277599,7 @@ Buffer.prototype.slice = function slice (start, end) {
|
|
|
277582
277599
|
|
|
277583
277600
|
if (end < start) end = start
|
|
277584
277601
|
|
|
277585
|
-
|
|
277602
|
+
const newBuf = this.subarray(start, end)
|
|
277586
277603
|
// Return an augmented `Uint8Array` instance
|
|
277587
277604
|
Object.setPrototypeOf(newBuf, Buffer.prototype)
|
|
277588
277605
|
|
|
@@ -277603,9 +277620,9 @@ Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert)
|
|
|
277603
277620
|
byteLength = byteLength >>> 0
|
|
277604
277621
|
if (!noAssert) checkOffset(offset, byteLength, this.length)
|
|
277605
277622
|
|
|
277606
|
-
|
|
277607
|
-
|
|
277608
|
-
|
|
277623
|
+
let val = this[offset]
|
|
277624
|
+
let mul = 1
|
|
277625
|
+
let i = 0
|
|
277609
277626
|
while (++i < byteLength && (mul *= 0x100)) {
|
|
277610
277627
|
val += this[offset + i] * mul
|
|
277611
277628
|
}
|
|
@@ -277621,8 +277638,8 @@ Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert)
|
|
|
277621
277638
|
checkOffset(offset, byteLength, this.length)
|
|
277622
277639
|
}
|
|
277623
277640
|
|
|
277624
|
-
|
|
277625
|
-
|
|
277641
|
+
let val = this[offset + --byteLength]
|
|
277642
|
+
let mul = 1
|
|
277626
277643
|
while (byteLength > 0 && (mul *= 0x100)) {
|
|
277627
277644
|
val += this[offset + --byteLength] * mul
|
|
277628
277645
|
}
|
|
@@ -277673,14 +277690,58 @@ Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
|
|
|
277673
277690
|
this[offset + 3])
|
|
277674
277691
|
}
|
|
277675
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
|
+
|
|
277676
277737
|
Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
|
|
277677
277738
|
offset = offset >>> 0
|
|
277678
277739
|
byteLength = byteLength >>> 0
|
|
277679
277740
|
if (!noAssert) checkOffset(offset, byteLength, this.length)
|
|
277680
277741
|
|
|
277681
|
-
|
|
277682
|
-
|
|
277683
|
-
|
|
277742
|
+
let val = this[offset]
|
|
277743
|
+
let mul = 1
|
|
277744
|
+
let i = 0
|
|
277684
277745
|
while (++i < byteLength && (mul *= 0x100)) {
|
|
277685
277746
|
val += this[offset + i] * mul
|
|
277686
277747
|
}
|
|
@@ -277696,9 +277757,9 @@ Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
|
|
|
277696
277757
|
byteLength = byteLength >>> 0
|
|
277697
277758
|
if (!noAssert) checkOffset(offset, byteLength, this.length)
|
|
277698
277759
|
|
|
277699
|
-
|
|
277700
|
-
|
|
277701
|
-
|
|
277760
|
+
let i = byteLength
|
|
277761
|
+
let mul = 1
|
|
277762
|
+
let val = this[offset + --i]
|
|
277702
277763
|
while (i > 0 && (mul *= 0x100)) {
|
|
277703
277764
|
val += this[offset + --i] * mul
|
|
277704
277765
|
}
|
|
@@ -277719,14 +277780,14 @@ Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
|
|
|
277719
277780
|
Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
|
|
277720
277781
|
offset = offset >>> 0
|
|
277721
277782
|
if (!noAssert) checkOffset(offset, 2, this.length)
|
|
277722
|
-
|
|
277783
|
+
const val = this[offset] | (this[offset + 1] << 8)
|
|
277723
277784
|
return (val & 0x8000) ? val | 0xFFFF0000 : val
|
|
277724
277785
|
}
|
|
277725
277786
|
|
|
277726
277787
|
Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
|
|
277727
277788
|
offset = offset >>> 0
|
|
277728
277789
|
if (!noAssert) checkOffset(offset, 2, this.length)
|
|
277729
|
-
|
|
277790
|
+
const val = this[offset + 1] | (this[offset] << 8)
|
|
277730
277791
|
return (val & 0x8000) ? val | 0xFFFF0000 : val
|
|
277731
277792
|
}
|
|
277732
277793
|
|
|
@@ -277750,6 +277811,48 @@ Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
|
|
|
277750
277811
|
(this[offset + 3])
|
|
277751
277812
|
}
|
|
277752
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
|
+
|
|
277753
277856
|
Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
|
|
277754
277857
|
offset = offset >>> 0
|
|
277755
277858
|
if (!noAssert) checkOffset(offset, 4, this.length)
|
|
@@ -277786,12 +277889,12 @@ Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength,
|
|
|
277786
277889
|
offset = offset >>> 0
|
|
277787
277890
|
byteLength = byteLength >>> 0
|
|
277788
277891
|
if (!noAssert) {
|
|
277789
|
-
|
|
277892
|
+
const maxBytes = Math.pow(2, 8 * byteLength) - 1
|
|
277790
277893
|
checkInt(this, value, offset, byteLength, maxBytes, 0)
|
|
277791
277894
|
}
|
|
277792
277895
|
|
|
277793
|
-
|
|
277794
|
-
|
|
277896
|
+
let mul = 1
|
|
277897
|
+
let i = 0
|
|
277795
277898
|
this[offset] = value & 0xFF
|
|
277796
277899
|
while (++i < byteLength && (mul *= 0x100)) {
|
|
277797
277900
|
this[offset + i] = (value / mul) & 0xFF
|
|
@@ -277806,12 +277909,12 @@ Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength,
|
|
|
277806
277909
|
offset = offset >>> 0
|
|
277807
277910
|
byteLength = byteLength >>> 0
|
|
277808
277911
|
if (!noAssert) {
|
|
277809
|
-
|
|
277912
|
+
const maxBytes = Math.pow(2, 8 * byteLength) - 1
|
|
277810
277913
|
checkInt(this, value, offset, byteLength, maxBytes, 0)
|
|
277811
277914
|
}
|
|
277812
277915
|
|
|
277813
|
-
|
|
277814
|
-
|
|
277916
|
+
let i = byteLength - 1
|
|
277917
|
+
let mul = 1
|
|
277815
277918
|
this[offset + i] = value & 0xFF
|
|
277816
277919
|
while (--i >= 0 && (mul *= 0x100)) {
|
|
277817
277920
|
this[offset + i] = (value / mul) & 0xFF
|
|
@@ -277873,18 +277976,70 @@ Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert
|
|
|
277873
277976
|
return offset + 4
|
|
277874
277977
|
}
|
|
277875
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
|
+
|
|
277876
278031
|
Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
|
|
277877
278032
|
value = +value
|
|
277878
278033
|
offset = offset >>> 0
|
|
277879
278034
|
if (!noAssert) {
|
|
277880
|
-
|
|
278035
|
+
const limit = Math.pow(2, (8 * byteLength) - 1)
|
|
277881
278036
|
|
|
277882
278037
|
checkInt(this, value, offset, byteLength, limit - 1, -limit)
|
|
277883
278038
|
}
|
|
277884
278039
|
|
|
277885
|
-
|
|
277886
|
-
|
|
277887
|
-
|
|
278040
|
+
let i = 0
|
|
278041
|
+
let mul = 1
|
|
278042
|
+
let sub = 0
|
|
277888
278043
|
this[offset] = value & 0xFF
|
|
277889
278044
|
while (++i < byteLength && (mul *= 0x100)) {
|
|
277890
278045
|
if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
|
|
@@ -277900,14 +278055,14 @@ Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, no
|
|
|
277900
278055
|
value = +value
|
|
277901
278056
|
offset = offset >>> 0
|
|
277902
278057
|
if (!noAssert) {
|
|
277903
|
-
|
|
278058
|
+
const limit = Math.pow(2, (8 * byteLength) - 1)
|
|
277904
278059
|
|
|
277905
278060
|
checkInt(this, value, offset, byteLength, limit - 1, -limit)
|
|
277906
278061
|
}
|
|
277907
278062
|
|
|
277908
|
-
|
|
277909
|
-
|
|
277910
|
-
|
|
278063
|
+
let i = byteLength - 1
|
|
278064
|
+
let mul = 1
|
|
278065
|
+
let sub = 0
|
|
277911
278066
|
this[offset + i] = value & 0xFF
|
|
277912
278067
|
while (--i >= 0 && (mul *= 0x100)) {
|
|
277913
278068
|
if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
|
|
@@ -277969,6 +278124,14 @@ Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert)
|
|
|
277969
278124
|
return offset + 4
|
|
277970
278125
|
}
|
|
277971
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
|
+
|
|
277972
278135
|
function checkIEEE754 (buf, value, offset, ext, max, min) {
|
|
277973
278136
|
if (offset + ext > buf.length) throw new RangeError('Index out of range')
|
|
277974
278137
|
if (offset < 0) throw new RangeError('Index out of range')
|
|
@@ -278036,7 +278199,7 @@ Buffer.prototype.copy = function copy (target, targetStart, start, end) {
|
|
|
278036
278199
|
end = target.length - targetStart + start
|
|
278037
278200
|
}
|
|
278038
278201
|
|
|
278039
|
-
|
|
278202
|
+
const len = end - start
|
|
278040
278203
|
|
|
278041
278204
|
if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {
|
|
278042
278205
|
// Use built-in when available, missing from IE11
|
|
@@ -278074,7 +278237,7 @@ Buffer.prototype.fill = function fill (val, start, end, encoding) {
|
|
|
278074
278237
|
throw new TypeError('Unknown encoding: ' + encoding)
|
|
278075
278238
|
}
|
|
278076
278239
|
if (val.length === 1) {
|
|
278077
|
-
|
|
278240
|
+
const code = val.charCodeAt(0)
|
|
278078
278241
|
if ((encoding === 'utf8' && code < 128) ||
|
|
278079
278242
|
encoding === 'latin1') {
|
|
278080
278243
|
// Fast path: If `val` fits into a single byte, use that numeric value.
|
|
@@ -278101,16 +278264,16 @@ Buffer.prototype.fill = function fill (val, start, end, encoding) {
|
|
|
278101
278264
|
|
|
278102
278265
|
if (!val) val = 0
|
|
278103
278266
|
|
|
278104
|
-
|
|
278267
|
+
let i
|
|
278105
278268
|
if (typeof val === 'number') {
|
|
278106
278269
|
for (i = start; i < end; ++i) {
|
|
278107
278270
|
this[i] = val
|
|
278108
278271
|
}
|
|
278109
278272
|
} else {
|
|
278110
|
-
|
|
278273
|
+
const bytes = Buffer.isBuffer(val)
|
|
278111
278274
|
? val
|
|
278112
278275
|
: Buffer.from(val, encoding)
|
|
278113
|
-
|
|
278276
|
+
const len = bytes.length
|
|
278114
278277
|
if (len === 0) {
|
|
278115
278278
|
throw new TypeError('The value "' + val +
|
|
278116
278279
|
'" is invalid for argument "value"')
|
|
@@ -278123,10 +278286,143 @@ Buffer.prototype.fill = function fill (val, start, end, encoding) {
|
|
|
278123
278286
|
return this
|
|
278124
278287
|
}
|
|
278125
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
|
+
|
|
278126
278422
|
// HELPER FUNCTIONS
|
|
278127
278423
|
// ================
|
|
278128
278424
|
|
|
278129
|
-
|
|
278425
|
+
const INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g
|
|
278130
278426
|
|
|
278131
278427
|
function base64clean (str) {
|
|
278132
278428
|
// Node takes equal signs as end of the Base64 encoding
|
|
@@ -278144,12 +278440,12 @@ function base64clean (str) {
|
|
|
278144
278440
|
|
|
278145
278441
|
function utf8ToBytes (string, units) {
|
|
278146
278442
|
units = units || Infinity
|
|
278147
|
-
|
|
278148
|
-
|
|
278149
|
-
|
|
278150
|
-
|
|
278443
|
+
let codePoint
|
|
278444
|
+
const length = string.length
|
|
278445
|
+
let leadSurrogate = null
|
|
278446
|
+
const bytes = []
|
|
278151
278447
|
|
|
278152
|
-
for (
|
|
278448
|
+
for (let i = 0; i < length; ++i) {
|
|
278153
278449
|
codePoint = string.charCodeAt(i)
|
|
278154
278450
|
|
|
278155
278451
|
// is surrogate component
|
|
@@ -278223,8 +278519,8 @@ function utf8ToBytes (string, units) {
|
|
|
278223
278519
|
}
|
|
278224
278520
|
|
|
278225
278521
|
function asciiToBytes (str) {
|
|
278226
|
-
|
|
278227
|
-
for (
|
|
278522
|
+
const byteArray = []
|
|
278523
|
+
for (let i = 0; i < str.length; ++i) {
|
|
278228
278524
|
// Node's code seems to be doing this and not & 0x7F..
|
|
278229
278525
|
byteArray.push(str.charCodeAt(i) & 0xFF)
|
|
278230
278526
|
}
|
|
@@ -278232,9 +278528,9 @@ function asciiToBytes (str) {
|
|
|
278232
278528
|
}
|
|
278233
278529
|
|
|
278234
278530
|
function utf16leToBytes (str, units) {
|
|
278235
|
-
|
|
278236
|
-
|
|
278237
|
-
for (
|
|
278531
|
+
let c, hi, lo
|
|
278532
|
+
const byteArray = []
|
|
278533
|
+
for (let i = 0; i < str.length; ++i) {
|
|
278238
278534
|
if ((units -= 2) < 0) break
|
|
278239
278535
|
|
|
278240
278536
|
c = str.charCodeAt(i)
|
|
@@ -278252,7 +278548,8 @@ function base64ToBytes (str) {
|
|
|
278252
278548
|
}
|
|
278253
278549
|
|
|
278254
278550
|
function blitBuffer (src, dst, offset, length) {
|
|
278255
|
-
|
|
278551
|
+
let i
|
|
278552
|
+
for (i = 0; i < length; ++i) {
|
|
278256
278553
|
if ((i + offset >= dst.length) || (i >= src.length)) break
|
|
278257
278554
|
dst[i + offset] = src[i]
|
|
278258
278555
|
}
|
|
@@ -278274,18 +278571,27 @@ function numberIsNaN (obj) {
|
|
|
278274
278571
|
|
|
278275
278572
|
// Create lookup table for `toString('hex')`
|
|
278276
278573
|
// See: https://github.com/feross/buffer/issues/219
|
|
278277
|
-
|
|
278278
|
-
|
|
278279
|
-
|
|
278280
|
-
for (
|
|
278281
|
-
|
|
278282
|
-
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) {
|
|
278283
278580
|
table[i16 + j] = alphabet[i] + alphabet[j]
|
|
278284
278581
|
}
|
|
278285
278582
|
}
|
|
278286
278583
|
return table
|
|
278287
278584
|
})()
|
|
278288
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
|
+
|
|
278289
278595
|
|
|
278290
278596
|
/***/ }),
|
|
278291
278597
|
|
|
@@ -399317,7 +399623,7 @@ function __disposeResources(env) {
|
|
|
399317
399623
|
/******/ // This function allow to reference async chunks
|
|
399318
399624
|
/******/ __webpack_require__.u = (chunkId) => {
|
|
399319
399625
|
/******/ // return url for filenames based on template
|
|
399320
|
-
/******/ 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":"3ba838ef3c08a266ae35","655":"28f107410332c62993a3","818":"b6027359846cc90e32ff","962":"04afab064299df16f869","1169":"d32f38ab5aa329346850","1202":"55f140afb05e1ad5512c","1498":"a2d05ac1f27d0c2d2c9f","1540":"2a0208cc8d5cabfc569d","1985":"0a70e65fe89169ec7508","1994":"083fb36bc0648f2dbda6","2119":"3446480f91f1200cd45c","2158":"d97bab3206c49329f64b","2412":"e1abf9a60dcecb7f0c77","2791":"cfa27e4347069ab301b7","2831":"22245416b8edb6c9dc56","2898":"21f0702e5d67b8aca5af","3286":"b9b3a165dc5a8b24b47f","3497":"512610422a2862584c55","3658":"ca4d24aa942995e51df2","3962":"31bfadcde7f5a2dd8932","4210":"38eb5056ac41a0b04d21","4353":"c13a0c72c607850ea3c0","4530":"ec12dfd2fbf9083b164e","4757":"ed362a485344485c9f1c","4842":"0427b8aa1b52aa050ed2","4978":"655344cfd52d9f0641e5","5793":"d1b4e887564bbb98752d","5888":"ebca6329037cf353968f","5898":"be696e0b355efc1c7f05","5931":"f16bcd50591d83af9f7a","6010":"a41bef6e63d1f8f8af7f","6591":"92a28f98c3f45ac3b3f1","6904":"da0d83fcd48a48cfaac1","7246":"f1cbdd5ec9387bb6f8fe","7360":"d0bdb43af1494bccc433","7376":"d6b445de2d468ab2e8b3","7502":"550aee57ecd221eab7c1","7607":"54d68bc1808ad3d77994","7913":"353baac2e2a5b4bb330d","8315":"5066943ed0a18dd2ae4e","8714":"fb419b4e3c25ae85d9fb","8944":"29926bb653a467c7e7d8","8993":"23cd5f8560800a97d798","8999":"e23beb310b14ca9ded76"}[chunkId] + ".js";
|
|
399321
399627
|
/******/ };
|
|
399322
399628
|
/******/ })();
|
|
399323
399629
|
/******/
|
|
@@ -399489,7 +399795,7 @@ function __disposeResources(env) {
|
|
|
399489
399795
|
/******/ };
|
|
399490
399796
|
/******/
|
|
399491
399797
|
/******/ __webpack_require__.f.miniCss = (chunkId, promises) => {
|
|
399492
|
-
/******/ var cssChunks = {"
|
|
399798
|
+
/******/ var cssChunks = {"79":1,"1169":1,"1540":1,"1994":1,"2119":1,"3286":1,"4210":1,"4757":1};
|
|
399493
399799
|
/******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
|
|
399494
399800
|
/******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
|
|
399495
399801
|
/******/ promises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(() => {
|
|
@@ -399504,7 +399810,7 @@ function __disposeResources(env) {
|
|
|
399504
399810
|
/******/ // no hmr
|
|
399505
399811
|
/******/
|
|
399506
399812
|
/******/ __webpack_require__.F.miniCss = (chunkId) => {
|
|
399507
|
-
/******/ 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)) {
|
|
399508
399814
|
/******/ installedCssChunks[chunkId] = null;
|
|
399509
399815
|
/******/ var link = document.createElement('link');
|
|
399510
399816
|
/******/
|
|
@@ -399545,7 +399851,7 @@ function __disposeResources(env) {
|
|
|
399545
399851
|
/******/ if(installedChunkData) {
|
|
399546
399852
|
/******/ promises.push(installedChunkData[2]);
|
|
399547
399853
|
/******/ } else {
|
|
399548
|
-
/******/ if(!/^(
|
|
399854
|
+
/******/ if(!/^(1540|4757)$/.test(chunkId)) {
|
|
399549
399855
|
/******/ // setup Promise in chunk cache
|
|
399550
399856
|
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
|
|
399551
399857
|
/******/ promises.push(installedChunkData[2] = promise);
|
|
@@ -399576,7 +399882,7 @@ function __disposeResources(env) {
|
|
|
399576
399882
|
/******/ };
|
|
399577
399883
|
/******/
|
|
399578
399884
|
/******/ __webpack_require__.F.j = (chunkId) => {
|
|
399579
|
-
/******/ if((!__webpack_require__.o(installedChunks, chunkId) || installedChunks[chunkId] === undefined) && !/^(
|
|
399885
|
+
/******/ if((!__webpack_require__.o(installedChunks, chunkId) || installedChunks[chunkId] === undefined) && !/^(1540|4757)$/.test(chunkId)) {
|
|
399580
399886
|
/******/ installedChunks[chunkId] = null;
|
|
399581
399887
|
/******/ var link = document.createElement('link');
|
|
399582
399888
|
/******/
|
|
@@ -399636,12 +399942,16 @@ function __disposeResources(env) {
|
|
|
399636
399942
|
/******/ /* webpack/runtime/chunk prefetch trigger */
|
|
399637
399943
|
/******/ (() => {
|
|
399638
399944
|
/******/ var chunkToChildrenMap = {
|
|
399945
|
+
/******/ "1540": [
|
|
399946
|
+
/******/ 1169
|
|
399947
|
+
/******/ ],
|
|
399639
399948
|
/******/ "1994": [
|
|
399640
399949
|
/******/ 8714,
|
|
399641
399950
|
/******/ 1498
|
|
399642
399951
|
/******/ ],
|
|
399643
|
-
/******/ "
|
|
399644
|
-
/******/ 1169
|
|
399952
|
+
/******/ "2119": [
|
|
399953
|
+
/******/ 1169,
|
|
399954
|
+
/******/ 2898
|
|
399645
399955
|
/******/ ],
|
|
399646
399956
|
/******/ "2791": [
|
|
399647
399957
|
/******/ 3658
|
|
@@ -399657,10 +399967,6 @@ function __disposeResources(env) {
|
|
|
399657
399967
|
/******/ ],
|
|
399658
399968
|
/******/ "8944": [
|
|
399659
399969
|
/******/ 3286
|
|
399660
|
-
/******/ ],
|
|
399661
|
-
/******/ "9824": [
|
|
399662
|
-
/******/ 1169,
|
|
399663
|
-
/******/ 2898
|
|
399664
399970
|
/******/ ]
|
|
399665
399971
|
/******/ };
|
|
399666
399972
|
/******/ __webpack_require__.f.prefetch = (chunkId, promises) => (Promise.all(promises).then(() => {
|