dcmjs 0.53.0 → 0.53.2
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/build/dcmjs.es.js +249 -552
- package/build/dcmjs.es.js.map +1 -1
- package/build/dcmjs.js +88 -24
- package/build/dcmjs.js.map +1 -1
- package/build/dcmjs.min.js +1 -1
- package/build/dcmjs.min.js.map +1 -1
- package/package.json +1 -1
package/build/dcmjs.es.js
CHANGED
|
@@ -1,378 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function getDefaultExportFromCjs (x) {
|
|
4
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
var loglevel$1 = {exports: {}};
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
* loglevel - https://github.com/pimterry/loglevel
|
|
11
|
-
*
|
|
12
|
-
* Copyright (c) 2013 Tim Perry
|
|
13
|
-
* Licensed under the MIT license.
|
|
14
|
-
*/
|
|
15
|
-
var loglevel = loglevel$1.exports;
|
|
16
|
-
|
|
17
|
-
var hasRequiredLoglevel;
|
|
18
|
-
|
|
19
|
-
function requireLoglevel () {
|
|
20
|
-
if (hasRequiredLoglevel) return loglevel$1.exports;
|
|
21
|
-
hasRequiredLoglevel = 1;
|
|
22
|
-
(function (module) {
|
|
23
|
-
(function (root, definition) {
|
|
24
|
-
if (module.exports) {
|
|
25
|
-
module.exports = definition();
|
|
26
|
-
} else {
|
|
27
|
-
root.log = definition();
|
|
28
|
-
}
|
|
29
|
-
}(loglevel, function () {
|
|
30
|
-
|
|
31
|
-
// Slightly dubious tricks to cut down minimized file size
|
|
32
|
-
var noop = function() {};
|
|
33
|
-
var undefinedType = "undefined";
|
|
34
|
-
var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (
|
|
35
|
-
/Trident\/|MSIE /.test(window.navigator.userAgent)
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
var logMethods = [
|
|
39
|
-
"trace",
|
|
40
|
-
"debug",
|
|
41
|
-
"info",
|
|
42
|
-
"warn",
|
|
43
|
-
"error"
|
|
44
|
-
];
|
|
45
|
-
|
|
46
|
-
var _loggersByName = {};
|
|
47
|
-
var defaultLogger = null;
|
|
48
|
-
|
|
49
|
-
// Cross-browser bind equivalent that works at least back to IE6
|
|
50
|
-
function bindMethod(obj, methodName) {
|
|
51
|
-
var method = obj[methodName];
|
|
52
|
-
if (typeof method.bind === 'function') {
|
|
53
|
-
return method.bind(obj);
|
|
54
|
-
} else {
|
|
55
|
-
try {
|
|
56
|
-
return Function.prototype.bind.call(method, obj);
|
|
57
|
-
} catch (e) {
|
|
58
|
-
// Missing bind shim or IE8 + Modernizr, fallback to wrapping
|
|
59
|
-
return function() {
|
|
60
|
-
return Function.prototype.apply.apply(method, [obj, arguments]);
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Trace() doesn't print the message in IE, so for that case we need to wrap it
|
|
67
|
-
function traceForIE() {
|
|
68
|
-
if (console.log) {
|
|
69
|
-
if (console.log.apply) {
|
|
70
|
-
console.log.apply(console, arguments);
|
|
71
|
-
} else {
|
|
72
|
-
// In old IE, native console methods themselves don't have apply().
|
|
73
|
-
Function.prototype.apply.apply(console.log, [console, arguments]);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
if (console.trace) console.trace();
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// Build the best logging method possible for this env
|
|
80
|
-
// Wherever possible we want to bind, not wrap, to preserve stack traces
|
|
81
|
-
function realMethod(methodName) {
|
|
82
|
-
if (methodName === 'debug') {
|
|
83
|
-
methodName = 'log';
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
if (typeof console === undefinedType) {
|
|
87
|
-
return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives
|
|
88
|
-
} else if (methodName === 'trace' && isIE) {
|
|
89
|
-
return traceForIE;
|
|
90
|
-
} else if (console[methodName] !== undefined) {
|
|
91
|
-
return bindMethod(console, methodName);
|
|
92
|
-
} else if (console.log !== undefined) {
|
|
93
|
-
return bindMethod(console, 'log');
|
|
94
|
-
} else {
|
|
95
|
-
return noop;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// These private functions always need `this` to be set properly
|
|
100
|
-
|
|
101
|
-
function replaceLoggingMethods() {
|
|
102
|
-
/*jshint validthis:true */
|
|
103
|
-
var level = this.getLevel();
|
|
104
|
-
|
|
105
|
-
// Replace the actual methods.
|
|
106
|
-
for (var i = 0; i < logMethods.length; i++) {
|
|
107
|
-
var methodName = logMethods[i];
|
|
108
|
-
this[methodName] = (i < level) ?
|
|
109
|
-
noop :
|
|
110
|
-
this.methodFactory(methodName, level, this.name);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// Define log.log as an alias for log.debug
|
|
114
|
-
this.log = this.debug;
|
|
115
|
-
|
|
116
|
-
// Return any important warnings.
|
|
117
|
-
if (typeof console === undefinedType && level < this.levels.SILENT) {
|
|
118
|
-
return "No console available for logging";
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// In old IE versions, the console isn't present until you first open it.
|
|
123
|
-
// We build realMethod() replacements here that regenerate logging methods
|
|
124
|
-
function enableLoggingWhenConsoleArrives(methodName) {
|
|
125
|
-
return function () {
|
|
126
|
-
if (typeof console !== undefinedType) {
|
|
127
|
-
replaceLoggingMethods.call(this);
|
|
128
|
-
this[methodName].apply(this, arguments);
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
// By default, we use closely bound real methods wherever possible, and
|
|
134
|
-
// otherwise we wait for a console to appear, and then try again.
|
|
135
|
-
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
136
|
-
/*jshint validthis:true */
|
|
137
|
-
return realMethod(methodName) ||
|
|
138
|
-
enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
function Logger(name, factory) {
|
|
142
|
-
// Private instance variables.
|
|
143
|
-
var self = this;
|
|
144
|
-
/**
|
|
145
|
-
* The level inherited from a parent logger (or a global default). We
|
|
146
|
-
* cache this here rather than delegating to the parent so that it stays
|
|
147
|
-
* in sync with the actual logging methods that we have installed (the
|
|
148
|
-
* parent could change levels but we might not have rebuilt the loggers
|
|
149
|
-
* in this child yet).
|
|
150
|
-
* @type {number}
|
|
151
|
-
*/
|
|
152
|
-
var inheritedLevel;
|
|
153
|
-
/**
|
|
154
|
-
* The default level for this logger, if any. If set, this overrides
|
|
155
|
-
* `inheritedLevel`.
|
|
156
|
-
* @type {number|null}
|
|
157
|
-
*/
|
|
158
|
-
var defaultLevel;
|
|
159
|
-
/**
|
|
160
|
-
* A user-specific level for this logger. If set, this overrides
|
|
161
|
-
* `defaultLevel`.
|
|
162
|
-
* @type {number|null}
|
|
163
|
-
*/
|
|
164
|
-
var userLevel;
|
|
165
|
-
|
|
166
|
-
var storageKey = "loglevel";
|
|
167
|
-
if (typeof name === "string") {
|
|
168
|
-
storageKey += ":" + name;
|
|
169
|
-
} else if (typeof name === "symbol") {
|
|
170
|
-
storageKey = undefined;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
function persistLevelIfPossible(levelNum) {
|
|
174
|
-
var levelName = (logMethods[levelNum] || 'silent').toUpperCase();
|
|
175
|
-
|
|
176
|
-
if (typeof window === undefinedType || !storageKey) return;
|
|
177
|
-
|
|
178
|
-
// Use localStorage if available
|
|
179
|
-
try {
|
|
180
|
-
window.localStorage[storageKey] = levelName;
|
|
181
|
-
return;
|
|
182
|
-
} catch (ignore) {}
|
|
183
|
-
|
|
184
|
-
// Use session cookie as fallback
|
|
185
|
-
try {
|
|
186
|
-
window.document.cookie =
|
|
187
|
-
encodeURIComponent(storageKey) + "=" + levelName + ";";
|
|
188
|
-
} catch (ignore) {}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
function getPersistedLevel() {
|
|
192
|
-
var storedLevel;
|
|
193
|
-
|
|
194
|
-
if (typeof window === undefinedType || !storageKey) return;
|
|
195
|
-
|
|
196
|
-
try {
|
|
197
|
-
storedLevel = window.localStorage[storageKey];
|
|
198
|
-
} catch (ignore) {}
|
|
199
|
-
|
|
200
|
-
// Fallback to cookies if local storage gives us nothing
|
|
201
|
-
if (typeof storedLevel === undefinedType) {
|
|
202
|
-
try {
|
|
203
|
-
var cookie = window.document.cookie;
|
|
204
|
-
var cookieName = encodeURIComponent(storageKey);
|
|
205
|
-
var location = cookie.indexOf(cookieName + "=");
|
|
206
|
-
if (location !== -1) {
|
|
207
|
-
storedLevel = /^([^;]+)/.exec(
|
|
208
|
-
cookie.slice(location + cookieName.length + 1)
|
|
209
|
-
)[1];
|
|
210
|
-
}
|
|
211
|
-
} catch (ignore) {}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
// If the stored level is not valid, treat it as if nothing was stored.
|
|
215
|
-
if (self.levels[storedLevel] === undefined) {
|
|
216
|
-
storedLevel = undefined;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
return storedLevel;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
function clearPersistedLevel() {
|
|
223
|
-
if (typeof window === undefinedType || !storageKey) return;
|
|
224
|
-
|
|
225
|
-
// Use localStorage if available
|
|
226
|
-
try {
|
|
227
|
-
window.localStorage.removeItem(storageKey);
|
|
228
|
-
} catch (ignore) {}
|
|
229
|
-
|
|
230
|
-
// Use session cookie as fallback
|
|
231
|
-
try {
|
|
232
|
-
window.document.cookie =
|
|
233
|
-
encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
234
|
-
} catch (ignore) {}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
function normalizeLevel(input) {
|
|
238
|
-
var level = input;
|
|
239
|
-
if (typeof level === "string" && self.levels[level.toUpperCase()] !== undefined) {
|
|
240
|
-
level = self.levels[level.toUpperCase()];
|
|
241
|
-
}
|
|
242
|
-
if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
|
|
243
|
-
return level;
|
|
244
|
-
} else {
|
|
245
|
-
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
/*
|
|
250
|
-
*
|
|
251
|
-
* Public logger API - see https://github.com/pimterry/loglevel for details
|
|
252
|
-
*
|
|
253
|
-
*/
|
|
254
|
-
|
|
255
|
-
self.name = name;
|
|
256
|
-
|
|
257
|
-
self.levels = { "TRACE": 0, "DEBUG": 1, "INFO": 2, "WARN": 3,
|
|
258
|
-
"ERROR": 4, "SILENT": 5};
|
|
259
|
-
|
|
260
|
-
self.methodFactory = factory || defaultMethodFactory;
|
|
261
|
-
|
|
262
|
-
self.getLevel = function () {
|
|
263
|
-
if (userLevel != null) {
|
|
264
|
-
return userLevel;
|
|
265
|
-
} else if (defaultLevel != null) {
|
|
266
|
-
return defaultLevel;
|
|
267
|
-
} else {
|
|
268
|
-
return inheritedLevel;
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
self.setLevel = function (level, persist) {
|
|
273
|
-
userLevel = normalizeLevel(level);
|
|
274
|
-
if (persist !== false) { // defaults to true
|
|
275
|
-
persistLevelIfPossible(userLevel);
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
// NOTE: in v2, this should call rebuild(), which updates children.
|
|
279
|
-
return replaceLoggingMethods.call(self);
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
self.setDefaultLevel = function (level) {
|
|
283
|
-
defaultLevel = normalizeLevel(level);
|
|
284
|
-
if (!getPersistedLevel()) {
|
|
285
|
-
self.setLevel(level, false);
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
|
|
289
|
-
self.resetLevel = function () {
|
|
290
|
-
userLevel = null;
|
|
291
|
-
clearPersistedLevel();
|
|
292
|
-
replaceLoggingMethods.call(self);
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
self.enableAll = function(persist) {
|
|
296
|
-
self.setLevel(self.levels.TRACE, persist);
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
self.disableAll = function(persist) {
|
|
300
|
-
self.setLevel(self.levels.SILENT, persist);
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
self.rebuild = function () {
|
|
304
|
-
if (defaultLogger !== self) {
|
|
305
|
-
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
|
306
|
-
}
|
|
307
|
-
replaceLoggingMethods.call(self);
|
|
308
|
-
|
|
309
|
-
if (defaultLogger === self) {
|
|
310
|
-
for (var childName in _loggersByName) {
|
|
311
|
-
_loggersByName[childName].rebuild();
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
// Initialize all the internal levels.
|
|
317
|
-
inheritedLevel = normalizeLevel(
|
|
318
|
-
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
|
319
|
-
);
|
|
320
|
-
var initialLevel = getPersistedLevel();
|
|
321
|
-
if (initialLevel != null) {
|
|
322
|
-
userLevel = normalizeLevel(initialLevel);
|
|
323
|
-
}
|
|
324
|
-
replaceLoggingMethods.call(self);
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
/*
|
|
328
|
-
*
|
|
329
|
-
* Top-level API
|
|
330
|
-
*
|
|
331
|
-
*/
|
|
332
|
-
|
|
333
|
-
defaultLogger = new Logger();
|
|
334
|
-
|
|
335
|
-
defaultLogger.getLogger = function getLogger(name) {
|
|
336
|
-
if ((typeof name !== "symbol" && typeof name !== "string") || name === "") {
|
|
337
|
-
throw new TypeError("You must supply a name when creating a logger.");
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
var logger = _loggersByName[name];
|
|
341
|
-
if (!logger) {
|
|
342
|
-
logger = _loggersByName[name] = new Logger(
|
|
343
|
-
name,
|
|
344
|
-
defaultLogger.methodFactory
|
|
345
|
-
);
|
|
346
|
-
}
|
|
347
|
-
return logger;
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
// Grab the current global log variable in case of overwrite
|
|
351
|
-
var _log = (typeof window !== undefinedType) ? window.log : undefined;
|
|
352
|
-
defaultLogger.noConflict = function() {
|
|
353
|
-
if (typeof window !== undefinedType &&
|
|
354
|
-
window.log === defaultLogger) {
|
|
355
|
-
window.log = _log;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
return defaultLogger;
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
defaultLogger.getLoggers = function getLoggers() {
|
|
362
|
-
return _loggersByName;
|
|
363
|
-
};
|
|
364
|
-
|
|
365
|
-
// ES6 default export, for compatibility
|
|
366
|
-
defaultLogger['default'] = defaultLogger;
|
|
367
|
-
|
|
368
|
-
return defaultLogger;
|
|
369
|
-
}));
|
|
370
|
-
} (loglevel$1));
|
|
371
|
-
return loglevel$1.exports;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
var loglevelExports = requireLoglevel();
|
|
375
|
-
var log = /*@__PURE__*/getDefaultExportFromCjs(loglevelExports);
|
|
1
|
+
import log from 'loglevel';
|
|
2
|
+
export { default as log } from 'loglevel';
|
|
376
3
|
|
|
377
4
|
log.setLevel("warn");
|
|
378
5
|
var validationLog = log.getLogger("validation.dcmjs");
|
|
@@ -9007,6 +8634,12 @@ var BufferStream = /*#__PURE__*/function () {
|
|
|
9007
8634
|
var end = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : start + 1;
|
|
9008
8635
|
return this.view.hasData(start, end);
|
|
9009
8636
|
}
|
|
8637
|
+
|
|
8638
|
+
/**
|
|
8639
|
+
* Returns a read stream over the next `length` bytes and moves past them.
|
|
8640
|
+
* The new stream decodes text with this stream's decoder, so sequence items
|
|
8641
|
+
* use the dataset's SpecificCharacterSet.
|
|
8642
|
+
*/
|
|
9010
8643
|
}, {
|
|
9011
8644
|
key: "more",
|
|
9012
8645
|
value: function more(length) {
|
|
@@ -9020,7 +8653,9 @@ var BufferStream = /*#__PURE__*/function () {
|
|
|
9020
8653
|
// start: this.offset,
|
|
9021
8654
|
// stop: this.offset + length
|
|
9022
8655
|
// });
|
|
9023
|
-
var newBuf = new ReadBufferStream(this.slice(this.offset, this.offset + length)
|
|
8656
|
+
var newBuf = new ReadBufferStream(this.slice(this.offset, this.offset + length), null, {
|
|
8657
|
+
decoder: this.decoder
|
|
8658
|
+
});
|
|
9024
8659
|
this.increment(length);
|
|
9025
8660
|
newBuf.setComplete();
|
|
9026
8661
|
return newBuf;
|
|
@@ -9071,7 +8706,8 @@ var ReadBufferStream = /*#__PURE__*/function (_BufferStream2) {
|
|
|
9071
8706
|
littleEndian: littleEndian
|
|
9072
8707
|
})]);
|
|
9073
8708
|
_this2.noCopy = options.noCopy;
|
|
9074
|
-
|
|
8709
|
+
// A stream over part of a dataset gets the dataset's decoder in options
|
|
8710
|
+
_this2.decoder = options.decoder || new TextDecoder("latin1");
|
|
9075
8711
|
if (buffer instanceof BufferStream) {
|
|
9076
8712
|
_this2.view.from(buffer.view, options);
|
|
9077
8713
|
_this2.isComplete = true;
|
|
@@ -9519,30 +9155,30 @@ var BULKDATA_VRS = new Set(["DS",
|
|
|
9519
9155
|
]);
|
|
9520
9156
|
|
|
9521
9157
|
var constants = /*#__PURE__*/Object.freeze({
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9158
|
+
__proto__: null,
|
|
9159
|
+
BULKDATA_VRS: BULKDATA_VRS,
|
|
9160
|
+
DEFAULT_INFORMATION_TAGS: DEFAULT_INFORMATION_TAGS,
|
|
9161
|
+
DEFLATED_EXPLICIT_LITTLE_ENDIAN: DEFLATED_EXPLICIT_LITTLE_ENDIAN,
|
|
9162
|
+
EXPLICIT_BIG_ENDIAN: EXPLICIT_BIG_ENDIAN,
|
|
9163
|
+
EXPLICIT_LITTLE_ENDIAN: EXPLICIT_LITTLE_ENDIAN$1,
|
|
9164
|
+
IMPLICIT_LITTLE_ENDIAN: IMPLICIT_LITTLE_ENDIAN,
|
|
9165
|
+
ITEM_DELIMITATION_LENGTH: ITEM_DELIMITATION_LENGTH,
|
|
9166
|
+
PADDING_NULL: PADDING_NULL,
|
|
9167
|
+
PADDING_SPACE: PADDING_SPACE,
|
|
9168
|
+
PN_COMPONENT_DELIMITER: PN_COMPONENT_DELIMITER,
|
|
9169
|
+
SEQUENCE_DELIMITATION_VALUE: SEQUENCE_DELIMITATION_VALUE,
|
|
9170
|
+
SEQUENCE_DELIMITER_TAG: SEQUENCE_DELIMITER_TAG,
|
|
9171
|
+
SEQUENCE_ITEM_TAG: SEQUENCE_ITEM_TAG,
|
|
9172
|
+
TAG_NAME_MAP: TAG_NAME_MAP,
|
|
9173
|
+
TagHex: TagHex,
|
|
9174
|
+
UNDEFINED_LENGTH: UNDEFINED_LENGTH,
|
|
9175
|
+
UNDEFINED_LENGTH_FIX: UNDEFINED_LENGTH_FIX,
|
|
9176
|
+
VALID_VRS: VALID_VRS,
|
|
9177
|
+
VM_DELIMITER: VM_DELIMITER,
|
|
9178
|
+
encodingMapping: encodingMapping,
|
|
9179
|
+
isVideoTransferSyntax: isVideoTransferSyntax,
|
|
9180
|
+
unencapsulatedTransferSyntaxes: unencapsulatedTransferSyntaxes,
|
|
9181
|
+
videoTransferSyntaxUIDs: videoTransferSyntaxUIDs
|
|
9546
9182
|
});
|
|
9547
9183
|
|
|
9548
9184
|
/**
|
|
@@ -10875,6 +10511,8 @@ var SequenceOfItems = /*#__PURE__*/function (_ValueRepresentation8) {
|
|
|
10875
10511
|
if (undef) stream.increment(8);
|
|
10876
10512
|
var items = DicomMessage$3._read(itemStream, syntax);
|
|
10877
10513
|
elements.push(items);
|
|
10514
|
+
} else {
|
|
10515
|
+
elements.push({});
|
|
10878
10516
|
}
|
|
10879
10517
|
if (!undefLength && read == sqlength) {
|
|
10880
10518
|
break;
|
|
@@ -11197,7 +10835,9 @@ var ParsedUnknownValue = /*#__PURE__*/function (_BinaryRepresentation2) {
|
|
|
11197
10835
|
key: "read",
|
|
11198
10836
|
value: function read(stream, length, syntax, readOptions) {
|
|
11199
10837
|
var arrayBuffer = this.readBytes(stream, length, syntax)[0];
|
|
11200
|
-
var streamFromBuffer = new ReadBufferStream(arrayBuffer, true
|
|
10838
|
+
var streamFromBuffer = new ReadBufferStream(arrayBuffer, true, {
|
|
10839
|
+
decoder: stream.decoder
|
|
10840
|
+
});
|
|
11201
10841
|
var vr = ValueRepresentation.createByTypeString(this.type);
|
|
11202
10842
|
if (vr.isBinary() && length > vr.maxLength && !vr.noMultiple) {
|
|
11203
10843
|
var values = [];
|
|
@@ -12846,6 +12486,13 @@ function paddingLeft(paddingValue, string) {
|
|
|
12846
12486
|
return String(paddingValue + string).slice(-paddingValue.length);
|
|
12847
12487
|
}
|
|
12848
12488
|
var DicomMessage$1;
|
|
12489
|
+
|
|
12490
|
+
/** True when every value is an item dataset object, not binary data. */
|
|
12491
|
+
function isItemList(values) {
|
|
12492
|
+
return Array.isArray(values) && values.length > 0 && values.every(function (v) {
|
|
12493
|
+
return v !== null && _typeof(v) === "object" && !(v instanceof ArrayBuffer) && !ArrayBuffer.isView(v);
|
|
12494
|
+
});
|
|
12495
|
+
}
|
|
12849
12496
|
var Tag = /*#__PURE__*/function () {
|
|
12850
12497
|
function Tag(value) {
|
|
12851
12498
|
_classCallCheck(this, Tag);
|
|
@@ -12920,6 +12567,10 @@ var Tag = /*#__PURE__*/function () {
|
|
|
12920
12567
|
}, {
|
|
12921
12568
|
key: "write",
|
|
12922
12569
|
value: function write(stream, vrType, values, syntax, writeOptions) {
|
|
12570
|
+
// A UN whose values are item datasets is a sequence: write it as SQ (PS3.5 §6.2.2).
|
|
12571
|
+
if (vrType === "UN" && isItemList(values)) {
|
|
12572
|
+
vrType = "SQ";
|
|
12573
|
+
}
|
|
12923
12574
|
var vr = ValueRepresentation.createByTypeString(vrType);
|
|
12924
12575
|
var useSyntax = DicomMessage$1._normalizeSyntax(syntax);
|
|
12925
12576
|
var implicit = useSyntax === IMPLICIT_LITTLE_ENDIAN;
|
|
@@ -13060,6 +12711,15 @@ function deepEqual(obj1, obj2) {
|
|
|
13060
12711
|
}
|
|
13061
12712
|
|
|
13062
12713
|
var singleVRs = ["SQ", "OF", "OW", "OB", "UN", "LT"];
|
|
12714
|
+
|
|
12715
|
+
/**
|
|
12716
|
+
* PS3.5 §6.2.2: a UN value that holds a sequence is Implicit VR LE.
|
|
12717
|
+
* dcmjs finds that case by the item tag (FFFE,E000), FE FF 00 E0, at the
|
|
12718
|
+
* start of a defined-length value.
|
|
12719
|
+
*/
|
|
12720
|
+
function isUnSequenceValue(stream, length) {
|
|
12721
|
+
return length >= 8 && length !== UNDEFINED_LENGTH && stream.peekUint8(0) === 0xfe && stream.peekUint8(1) === 0xff && stream.peekUint8(2) === 0x00 && stream.peekUint8(3) === 0xe0;
|
|
12722
|
+
}
|
|
13063
12723
|
var DicomMessage = /*#__PURE__*/function () {
|
|
13064
12724
|
function DicomMessage() {
|
|
13065
12725
|
_classCallCheck(this, DicomMessage);
|
|
@@ -13299,7 +12959,9 @@ var DicomMessage = /*#__PURE__*/function () {
|
|
|
13299
12959
|
}
|
|
13300
12960
|
var length = null,
|
|
13301
12961
|
vr = null,
|
|
13302
|
-
vrType
|
|
12962
|
+
vrType,
|
|
12963
|
+
wireVrType = null; // VR as literally encoded in the stream (explicit mode)
|
|
12964
|
+
|
|
13303
12965
|
if (implicit) {
|
|
13304
12966
|
length = stream.readUint32();
|
|
13305
12967
|
var elementData = DicomMessage.lookupTag(tag);
|
|
@@ -13322,6 +12984,8 @@ var DicomMessage = /*#__PURE__*/function () {
|
|
|
13322
12984
|
vr = ValueRepresentation.createByTypeString(vrType);
|
|
13323
12985
|
} else {
|
|
13324
12986
|
vrType = stream.readVR();
|
|
12987
|
+
wireVrType = vrType; // remember literal stream VR before any override
|
|
12988
|
+
|
|
13325
12989
|
if (vrType === "UN" && DicomMessage.lookupTag(tag) && DicomMessage.lookupTag(tag).vr) {
|
|
13326
12990
|
vrType = DicomMessage.lookupTag(tag).vr;
|
|
13327
12991
|
vr = ValueRepresentation.parseUnknownVr(vrType);
|
|
@@ -13335,20 +12999,26 @@ var DicomMessage = /*#__PURE__*/function () {
|
|
|
13335
12999
|
length = stream.readUint16();
|
|
13336
13000
|
}
|
|
13337
13001
|
}
|
|
13002
|
+
var readSyntax = syntax;
|
|
13003
|
+
if (!implicit && wireVrType === "UN" && isUnSequenceValue(stream, length)) {
|
|
13004
|
+
vrType = "SQ";
|
|
13005
|
+
vr = ValueRepresentation.createByTypeString("SQ");
|
|
13006
|
+
readSyntax = IMPLICIT_LITTLE_ENDIAN;
|
|
13007
|
+
}
|
|
13338
13008
|
var values = [];
|
|
13339
13009
|
var rawValues = [];
|
|
13340
13010
|
if (vr.isBinary() && length > vr.maxLength && !vr.noMultiple) {
|
|
13341
13011
|
var times = length / vr.maxLength,
|
|
13342
13012
|
i = 0;
|
|
13343
13013
|
while (i++ < times) {
|
|
13344
|
-
var _vr$read = vr.read(stream, vr.maxLength,
|
|
13014
|
+
var _vr$read = vr.read(stream, vr.maxLength, readSyntax, options),
|
|
13345
13015
|
rawValue = _vr$read.rawValue,
|
|
13346
13016
|
value = _vr$read.value;
|
|
13347
13017
|
rawValues.push(rawValue);
|
|
13348
13018
|
values.push(value);
|
|
13349
13019
|
}
|
|
13350
13020
|
} else {
|
|
13351
|
-
var _ref = vr.read(stream, length,
|
|
13021
|
+
var _ref = vr.read(stream, length, readSyntax, options) || {},
|
|
13352
13022
|
_rawValue = _ref.rawValue,
|
|
13353
13023
|
_value = _ref.value;
|
|
13354
13024
|
if (!vr.isBinary() && singleVRs.indexOf(vr.type) == -1) {
|
|
@@ -13467,13 +13137,13 @@ function lookupPrivateTag(keyStr) {
|
|
|
13467
13137
|
}
|
|
13468
13138
|
|
|
13469
13139
|
var privateData = /*#__PURE__*/Object.freeze({
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
|
|
13473
|
-
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13140
|
+
__proto__: null,
|
|
13141
|
+
initPackedPrivate: initPackedPrivate,
|
|
13142
|
+
keyBlob: keyBlob,
|
|
13143
|
+
lookupPrivateTag: lookupPrivateTag,
|
|
13144
|
+
nameBlob: nameBlob,
|
|
13145
|
+
vmTable: vmTable,
|
|
13146
|
+
vrTable: vrTable
|
|
13477
13147
|
});
|
|
13478
13148
|
|
|
13479
13149
|
var DICOMWEB = /*#__PURE__*/function () {
|
|
@@ -14656,12 +14326,14 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14656
14326
|
key: "readSequence",
|
|
14657
14327
|
value: function () {
|
|
14658
14328
|
var _readSequence = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(listener, sqTagInfo, options) {
|
|
14659
|
-
var
|
|
14329
|
+
var _ref, _sqTagInfo$sequenceRe;
|
|
14330
|
+
var length, stream, sequenceReadSyntax, endOffset, tagInfo, tag, itemLength, itemUntilOffset, decoder, _t;
|
|
14660
14331
|
return _regeneratorRuntime().wrap(function (_context6) {
|
|
14661
14332
|
while (1) switch (_context6.prev = _context6.next) {
|
|
14662
14333
|
case 0:
|
|
14663
14334
|
length = sqTagInfo.length;
|
|
14664
|
-
stream = this.stream
|
|
14335
|
+
stream = this.stream;
|
|
14336
|
+
sequenceReadSyntax = (_ref = (_sqTagInfo$sequenceRe = sqTagInfo.sequenceReadSyntax) !== null && _sqTagInfo$sequenceRe !== void 0 ? _sqTagInfo$sequenceRe : options === null || options === void 0 ? void 0 : options.readSyntax) !== null && _ref !== void 0 ? _ref : this.syntax;
|
|
14665
14337
|
endOffset = length === UNDEFINED_LENGTH_FIX ? Number.MAX_SAFE_INTEGER : stream.offset + length;
|
|
14666
14338
|
case 1:
|
|
14667
14339
|
_t = stream.offset < endOffset;
|
|
@@ -14679,7 +14351,9 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14679
14351
|
break;
|
|
14680
14352
|
}
|
|
14681
14353
|
readLog.debug("readSequence loop", stream.offset, endOffset);
|
|
14682
|
-
tagInfo = this.readTagHeader(
|
|
14354
|
+
tagInfo = this.readTagHeader(_objectSpread2(_objectSpread2({}, options), {}, {
|
|
14355
|
+
readSyntax: sequenceReadSyntax
|
|
14356
|
+
}));
|
|
14683
14357
|
tag = tagInfo.tag;
|
|
14684
14358
|
if (!(tag === TagHex.Item)) {
|
|
14685
14359
|
_context6.next = 5;
|
|
@@ -14693,12 +14367,17 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14693
14367
|
// first item because read() treats subsequent Item tags
|
|
14694
14368
|
// as instructions and skips them.
|
|
14695
14369
|
itemLength = tagInfo.length;
|
|
14696
|
-
itemUntilOffset = itemLength === UNDEFINED_LENGTH_FIX ? endOffset : Math.min(stream.offset + itemLength, endOffset);
|
|
14370
|
+
itemUntilOffset = itemLength === UNDEFINED_LENGTH_FIX ? endOffset : Math.min(stream.offset + itemLength, endOffset); // A SpecificCharacterSet in the item applies only to that
|
|
14371
|
+
// item (PS3.5 7.5.3), but the item is read on this stream:
|
|
14372
|
+
// put back the decoder the item started with.
|
|
14373
|
+
decoder = stream.decoder;
|
|
14697
14374
|
_context6.next = 4;
|
|
14698
14375
|
return this.read(listener, _objectSpread2(_objectSpread2({}, options), {}, {
|
|
14699
|
-
untilOffset: itemUntilOffset
|
|
14376
|
+
untilOffset: itemUntilOffset,
|
|
14377
|
+
readSyntax: sequenceReadSyntax
|
|
14700
14378
|
}));
|
|
14701
14379
|
case 4:
|
|
14380
|
+
stream.setDecoder(decoder);
|
|
14702
14381
|
_context6.next = 7;
|
|
14703
14382
|
break;
|
|
14704
14383
|
case 5:
|
|
@@ -15124,16 +14803,17 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
15124
14803
|
}, {
|
|
15125
14804
|
key: "readTagHeader",
|
|
15126
14805
|
value: function readTagHeader() {
|
|
14806
|
+
var _options$readSyntax;
|
|
15127
14807
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
15128
14808
|
untilTag: null,
|
|
15129
14809
|
includeUntilTagValue: false
|
|
15130
14810
|
};
|
|
15131
|
-
var stream = this.stream
|
|
15132
|
-
syntax = this.syntax;
|
|
14811
|
+
var stream = this.stream;
|
|
15133
14812
|
var untilTag = options.untilTag,
|
|
15134
14813
|
includeUntilTagValue = options.includeUntilTagValue;
|
|
15135
|
-
var
|
|
15136
|
-
var
|
|
14814
|
+
var effectiveSyntax = (_options$readSyntax = options === null || options === void 0 ? void 0 : options.readSyntax) !== null && _options$readSyntax !== void 0 ? _options$readSyntax : this.syntax;
|
|
14815
|
+
var implicit = effectiveSyntax == IMPLICIT_LITTLE_ENDIAN;
|
|
14816
|
+
var isLittleEndian = effectiveSyntax !== EXPLICIT_BIG_ENDIAN;
|
|
15137
14817
|
stream.setEndian(isLittleEndian);
|
|
15138
14818
|
var tagObj = Tag.readTag(stream);
|
|
15139
14819
|
var tag = tagObj.cleanString;
|
|
@@ -15151,6 +14831,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
15151
14831
|
var length = null;
|
|
15152
14832
|
var vr = null;
|
|
15153
14833
|
var vrType;
|
|
14834
|
+
var wireVrType = null;
|
|
15154
14835
|
var isCommand = tagObj.group() === 0;
|
|
15155
14836
|
if (tagObj.isInstruction()) {
|
|
15156
14837
|
length = stream.readUint32();
|
|
@@ -15182,6 +14863,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
15182
14863
|
} else {
|
|
15183
14864
|
var _DicomMessage$lookupT;
|
|
15184
14865
|
vrType = stream.readVR();
|
|
14866
|
+
wireVrType = vrType;
|
|
15185
14867
|
if (vrType === "UN" && (_DicomMessage$lookupT = DicomMessage.lookupTag(tagObj)) !== null && _DicomMessage$lookupT !== void 0 && _DicomMessage$lookupT.vr) {
|
|
15186
14868
|
vrType = DicomMessage.lookupTag(tagObj).vr;
|
|
15187
14869
|
vr = ValueRepresentation.parseUnknownVr(vrType);
|
|
@@ -15195,11 +14877,16 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
15195
14877
|
length = stream.readUint16();
|
|
15196
14878
|
}
|
|
15197
14879
|
}
|
|
14880
|
+
var sequenceReadSyntax;
|
|
14881
|
+
if (!implicit && wireVrType === "UN" && isUnSequenceValue(stream, length)) {
|
|
14882
|
+
vr = ValueRepresentation.createByTypeString("SQ");
|
|
14883
|
+
sequenceReadSyntax = IMPLICIT_LITTLE_ENDIAN;
|
|
14884
|
+
}
|
|
15198
14885
|
var punctuatedTag = DicomMetaDictionary.punctuateTag(tag);
|
|
15199
14886
|
var entry = DicomMetaDictionary.dictionary[punctuatedTag];
|
|
15200
14887
|
|
|
15201
14888
|
// Include both the string and object values for vr and tag
|
|
15202
|
-
var header = {
|
|
14889
|
+
var header = _objectSpread2({
|
|
15203
14890
|
vrObj: vr,
|
|
15204
14891
|
vr: vr.type,
|
|
15205
14892
|
tag: tag,
|
|
@@ -15207,7 +14894,9 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
15207
14894
|
vm: entry === null || entry === void 0 ? void 0 : entry.vm,
|
|
15208
14895
|
name: entry === null || entry === void 0 ? void 0 : entry.name,
|
|
15209
14896
|
length: length === UNDEFINED_LENGTH ? -1 : length
|
|
15210
|
-
}
|
|
14897
|
+
}, sequenceReadSyntax !== undefined && {
|
|
14898
|
+
sequenceReadSyntax: sequenceReadSyntax
|
|
14899
|
+
});
|
|
15211
14900
|
return header;
|
|
15212
14901
|
}
|
|
15213
14902
|
|
|
@@ -15221,12 +14910,14 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
15221
14910
|
key: "readSingle",
|
|
15222
14911
|
value: (function () {
|
|
15223
14912
|
var _readSingle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(tagInfo, listener, options) {
|
|
15224
|
-
var
|
|
14913
|
+
var _options$readSyntax2;
|
|
14914
|
+
var length, stream, readSyntax, vr, values, times, i, _vr$read, value, _vr$read2, _value, delimiterChar, _values, _values2, coding, valuesForListener;
|
|
15225
14915
|
return _regeneratorRuntime().wrap(function (_context11) {
|
|
15226
14916
|
while (1) switch (_context11.prev = _context11.next) {
|
|
15227
14917
|
case 0:
|
|
15228
14918
|
length = tagInfo.length;
|
|
15229
|
-
stream = this.stream
|
|
14919
|
+
stream = this.stream;
|
|
14920
|
+
readSyntax = (_options$readSyntax2 = options === null || options === void 0 ? void 0 : options.readSyntax) !== null && _options$readSyntax2 !== void 0 ? _options$readSyntax2 : this.syntax;
|
|
15230
14921
|
_context11.next = 1;
|
|
15231
14922
|
return this.stream.ensureAvailable(length);
|
|
15232
14923
|
case 1:
|
|
@@ -15237,11 +14928,11 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
15237
14928
|
i = 0;
|
|
15238
14929
|
while (i++ < times) {
|
|
15239
14930
|
readLog.trace("readSingle multi-value loop", i, times);
|
|
15240
|
-
_vr$read = vr.read(stream, vr.maxLength,
|
|
14931
|
+
_vr$read = vr.read(stream, vr.maxLength, readSyntax), value = _vr$read.value;
|
|
15241
14932
|
values.push(value);
|
|
15242
14933
|
}
|
|
15243
14934
|
} else {
|
|
15244
|
-
_value = (_vr$read2 = vr.read(stream, length,
|
|
14935
|
+
_value = (_vr$read2 = vr.read(stream, length, readSyntax)) === null || _vr$read2 === void 0 ? void 0 : _vr$read2.value;
|
|
15245
14936
|
if (!vr.isBinary() && singleVRs.indexOf(vr.type) == -1) {
|
|
15246
14937
|
values = _value;
|
|
15247
14938
|
if (typeof _value === "string") {
|
|
@@ -18518,6 +18209,12 @@ ArrowAnnotate$2.isValidCornerstoneTrackingIdentifier = function (TrackingIdentif
|
|
|
18518
18209
|
};
|
|
18519
18210
|
MeasurementReport$3.registerTool(ArrowAnnotate$2);
|
|
18520
18211
|
|
|
18212
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
18213
|
+
|
|
18214
|
+
function getDefaultExportFromCjs (x) {
|
|
18215
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
18216
|
+
}
|
|
18217
|
+
|
|
18521
18218
|
var iota_1;
|
|
18522
18219
|
var hasRequiredIota;
|
|
18523
18220
|
|
|
@@ -19016,7 +18713,7 @@ function h(matrix) {
|
|
|
19016
18713
|
var _matrix$shape = _slicedToArray(matrix.shape, 2),
|
|
19017
18714
|
rows = _matrix$shape[0],
|
|
19018
18715
|
cols = _matrix$shape[1];
|
|
19019
|
-
var result = ndarray(new
|
|
18716
|
+
var result = ndarray(new matrix.data.constructor(rows * cols), [rows, cols]);
|
|
19020
18717
|
for (var i = 0; i < rows; i++) {
|
|
19021
18718
|
for (var j = 0; j < cols; j++) {
|
|
19022
18719
|
result.set(i, j, matrix.get(i, cols - 1 - j));
|
|
@@ -19035,7 +18732,7 @@ function v(matrix) {
|
|
|
19035
18732
|
var _matrix$shape2 = _slicedToArray(matrix.shape, 2),
|
|
19036
18733
|
rows = _matrix$shape2[0],
|
|
19037
18734
|
cols = _matrix$shape2[1];
|
|
19038
|
-
var result = ndarray(new
|
|
18735
|
+
var result = ndarray(new matrix.data.constructor(rows * cols), [rows, cols]);
|
|
19039
18736
|
for (var j = 0; j < cols; j++) {
|
|
19040
18737
|
for (var i = 0; i < rows; i++) {
|
|
19041
18738
|
result.set(i, j, matrix.get(rows - 1 - i, j));
|
|
@@ -19054,7 +18751,7 @@ function rotateMatrix902D (matrix) {
|
|
|
19054
18751
|
var _matrix$shape = _slicedToArray(matrix.shape, 2),
|
|
19055
18752
|
rows = _matrix$shape[0],
|
|
19056
18753
|
cols = _matrix$shape[1];
|
|
19057
|
-
var result = ndarray(new
|
|
18754
|
+
var result = ndarray(new matrix.data.constructor(rows * cols), [cols, rows]);
|
|
19058
18755
|
var resultColsMinus1 = result.shape[1] - 1;
|
|
19059
18756
|
for (var i = 0; i < rows; i++) {
|
|
19060
18757
|
for (var j = 0; j < cols; j++) {
|
|
@@ -19104,14 +18801,14 @@ function nearlyEqual(a, b, epsilon) {
|
|
|
19104
18801
|
}
|
|
19105
18802
|
|
|
19106
18803
|
var orientation = /*#__PURE__*/Object.freeze({
|
|
19107
|
-
|
|
19108
|
-
|
|
19109
|
-
|
|
19110
|
-
|
|
19111
|
-
|
|
19112
|
-
|
|
19113
|
-
|
|
19114
|
-
|
|
18804
|
+
__proto__: null,
|
|
18805
|
+
crossProduct3D: crossProduct3D,
|
|
18806
|
+
flipImageOrientationPatient: flipImageOrientationPatient,
|
|
18807
|
+
flipMatrix2D: flipMatrix2D,
|
|
18808
|
+
nearlyEqual: nearlyEqual,
|
|
18809
|
+
rotateDirectionCosinesInPlane: rotateDirectionCosinesInPlane,
|
|
18810
|
+
rotateMatrix902D: rotateMatrix902D,
|
|
18811
|
+
rotateVectorAroundUnitVector: rotateVectorAroundUnitVector
|
|
19115
18812
|
});
|
|
19116
18813
|
|
|
19117
18814
|
var Segmentation$3 = {
|
|
@@ -19686,9 +19383,9 @@ function decodeFrame(rleEncodedFrame, pixelData) {
|
|
|
19686
19383
|
}
|
|
19687
19384
|
|
|
19688
19385
|
var compression = /*#__PURE__*/Object.freeze({
|
|
19689
|
-
|
|
19690
|
-
|
|
19691
|
-
|
|
19386
|
+
__proto__: null,
|
|
19387
|
+
decode: decode,
|
|
19388
|
+
encode: encode
|
|
19692
19389
|
});
|
|
19693
19390
|
|
|
19694
19391
|
var lodash_clonedeep = {exports: {}};
|
|
@@ -24119,56 +23816,56 @@ var forEach = function () {
|
|
|
24119
23816
|
}();
|
|
24120
23817
|
|
|
24121
23818
|
var vec3 = /*#__PURE__*/Object.freeze({
|
|
24122
|
-
|
|
24123
|
-
|
|
24124
|
-
|
|
24125
|
-
|
|
24126
|
-
|
|
24127
|
-
|
|
24128
|
-
|
|
24129
|
-
|
|
24130
|
-
|
|
24131
|
-
|
|
24132
|
-
|
|
24133
|
-
|
|
24134
|
-
|
|
24135
|
-
|
|
24136
|
-
|
|
24137
|
-
|
|
24138
|
-
|
|
24139
|
-
|
|
24140
|
-
|
|
24141
|
-
|
|
24142
|
-
|
|
24143
|
-
|
|
24144
|
-
|
|
24145
|
-
|
|
24146
|
-
|
|
24147
|
-
|
|
24148
|
-
|
|
24149
|
-
|
|
24150
|
-
|
|
24151
|
-
|
|
24152
|
-
|
|
24153
|
-
|
|
24154
|
-
|
|
24155
|
-
|
|
24156
|
-
|
|
24157
|
-
|
|
24158
|
-
|
|
24159
|
-
|
|
24160
|
-
|
|
24161
|
-
|
|
24162
|
-
|
|
24163
|
-
|
|
24164
|
-
|
|
24165
|
-
|
|
24166
|
-
|
|
24167
|
-
|
|
24168
|
-
|
|
24169
|
-
|
|
24170
|
-
|
|
24171
|
-
|
|
23819
|
+
__proto__: null,
|
|
23820
|
+
add: add,
|
|
23821
|
+
angle: angle,
|
|
23822
|
+
bezier: bezier,
|
|
23823
|
+
ceil: ceil,
|
|
23824
|
+
clone: clone,
|
|
23825
|
+
copy: copy,
|
|
23826
|
+
create: create,
|
|
23827
|
+
cross: cross$1,
|
|
23828
|
+
dist: dist,
|
|
23829
|
+
distance: distance,
|
|
23830
|
+
div: div,
|
|
23831
|
+
divide: divide,
|
|
23832
|
+
dot: dot,
|
|
23833
|
+
equals: equals,
|
|
23834
|
+
exactEquals: exactEquals,
|
|
23835
|
+
floor: floor,
|
|
23836
|
+
forEach: forEach,
|
|
23837
|
+
fromValues: fromValues,
|
|
23838
|
+
hermite: hermite,
|
|
23839
|
+
inverse: inverse,
|
|
23840
|
+
len: len,
|
|
23841
|
+
length: length,
|
|
23842
|
+
lerp: lerp,
|
|
23843
|
+
max: max,
|
|
23844
|
+
min: min,
|
|
23845
|
+
mul: mul,
|
|
23846
|
+
multiply: multiply,
|
|
23847
|
+
negate: negate,
|
|
23848
|
+
normalize: normalize$1,
|
|
23849
|
+
random: random,
|
|
23850
|
+
rotateX: rotateX,
|
|
23851
|
+
rotateY: rotateY,
|
|
23852
|
+
rotateZ: rotateZ,
|
|
23853
|
+
round: round,
|
|
23854
|
+
scale: scale,
|
|
23855
|
+
scaleAndAdd: scaleAndAdd,
|
|
23856
|
+
set: set,
|
|
23857
|
+
slerp: slerp,
|
|
23858
|
+
sqrDist: sqrDist,
|
|
23859
|
+
sqrLen: sqrLen,
|
|
23860
|
+
squaredDistance: squaredDistance,
|
|
23861
|
+
squaredLength: squaredLength,
|
|
23862
|
+
str: str,
|
|
23863
|
+
sub: sub,
|
|
23864
|
+
subtract: subtract$1,
|
|
23865
|
+
transformMat3: transformMat3,
|
|
23866
|
+
transformMat4: transformMat4,
|
|
23867
|
+
transformQuat: transformQuat,
|
|
23868
|
+
zero: zero
|
|
24172
23869
|
});
|
|
24173
23870
|
|
|
24174
23871
|
var ELLIPTICALROI = "EllipticalROI";
|
|
@@ -25868,9 +25565,9 @@ var CodedConcept = /*#__PURE__*/function () {
|
|
|
25868
25565
|
}();
|
|
25869
25566
|
|
|
25870
25567
|
var coding = /*#__PURE__*/Object.freeze({
|
|
25871
|
-
|
|
25872
|
-
|
|
25873
|
-
|
|
25568
|
+
__proto__: null,
|
|
25569
|
+
Code: Code,
|
|
25570
|
+
CodedConcept: CodedConcept
|
|
25874
25571
|
});
|
|
25875
25572
|
|
|
25876
25573
|
var ValueTypes = {
|
|
@@ -26424,28 +26121,28 @@ var TcoordContentItem = /*#__PURE__*/function (_ContentItem12) {
|
|
|
26424
26121
|
}(ContentItem);
|
|
26425
26122
|
|
|
26426
26123
|
var valueTypes = /*#__PURE__*/Object.freeze({
|
|
26427
|
-
|
|
26428
|
-
|
|
26429
|
-
|
|
26430
|
-
|
|
26431
|
-
|
|
26432
|
-
|
|
26433
|
-
|
|
26434
|
-
|
|
26435
|
-
|
|
26436
|
-
|
|
26437
|
-
|
|
26438
|
-
|
|
26439
|
-
|
|
26440
|
-
|
|
26441
|
-
|
|
26442
|
-
|
|
26443
|
-
|
|
26444
|
-
|
|
26445
|
-
|
|
26446
|
-
|
|
26447
|
-
|
|
26448
|
-
|
|
26124
|
+
__proto__: null,
|
|
26125
|
+
CodeContentItem: CodeContentItem,
|
|
26126
|
+
CompositeContentItem: CompositeContentItem,
|
|
26127
|
+
ContainerContentItem: ContainerContentItem,
|
|
26128
|
+
ContentSequence: ContentSequence,
|
|
26129
|
+
DateContentItem: DateContentItem,
|
|
26130
|
+
DateTimeContentItem: DateTimeContentItem,
|
|
26131
|
+
GraphicTypes: GraphicTypes,
|
|
26132
|
+
GraphicTypes3D: GraphicTypes3D,
|
|
26133
|
+
ImageContentItem: ImageContentItem,
|
|
26134
|
+
NumContentItem: NumContentItem,
|
|
26135
|
+
PNameContentItem: PNameContentItem,
|
|
26136
|
+
PixelOriginInterpretations: PixelOriginInterpretations,
|
|
26137
|
+
RelationshipTypes: RelationshipTypes,
|
|
26138
|
+
Scoord3DContentItem: Scoord3DContentItem,
|
|
26139
|
+
ScoordContentItem: ScoordContentItem,
|
|
26140
|
+
TcoordContentItem: TcoordContentItem,
|
|
26141
|
+
TemporalRangeTypes: TemporalRangeTypes,
|
|
26142
|
+
TextContentItem: TextContentItem,
|
|
26143
|
+
TimeContentItem: TimeContentItem,
|
|
26144
|
+
UIDRefContentItem: UIDRefContentItem,
|
|
26145
|
+
ValueTypes: ValueTypes
|
|
26449
26146
|
});
|
|
26450
26147
|
|
|
26451
26148
|
var LongitudinalTemporalOffsetFromEvent = /*#__PURE__*/function (_NumContentItem) {
|
|
@@ -26778,18 +26475,18 @@ var ReferencedSegmentation = /*#__PURE__*/function (_ContentSequence2) {
|
|
|
26778
26475
|
}(ContentSequence);
|
|
26779
26476
|
|
|
26780
26477
|
var contentItems = /*#__PURE__*/Object.freeze({
|
|
26781
|
-
|
|
26782
|
-
|
|
26783
|
-
|
|
26784
|
-
|
|
26785
|
-
|
|
26786
|
-
|
|
26787
|
-
|
|
26788
|
-
|
|
26789
|
-
|
|
26790
|
-
|
|
26791
|
-
|
|
26792
|
-
|
|
26478
|
+
__proto__: null,
|
|
26479
|
+
FindingSite: FindingSite,
|
|
26480
|
+
ImageRegion: ImageRegion,
|
|
26481
|
+
ImageRegion3D: ImageRegion3D,
|
|
26482
|
+
LongitudinalTemporalOffsetFromEvent: LongitudinalTemporalOffsetFromEvent,
|
|
26483
|
+
ReferencedRealWorldValueMap: ReferencedRealWorldValueMap,
|
|
26484
|
+
ReferencedSegmentation: ReferencedSegmentation,
|
|
26485
|
+
ReferencedSegmentationFrame: ReferencedSegmentationFrame,
|
|
26486
|
+
SourceImageForRegion: SourceImageForRegion,
|
|
26487
|
+
SourceImageForSegmentation: SourceImageForSegmentation,
|
|
26488
|
+
SourceSeriesForSegmentation: SourceSeriesForSegmentation,
|
|
26489
|
+
VolumeSurface: VolumeSurface
|
|
26793
26490
|
});
|
|
26794
26491
|
|
|
26795
26492
|
var Template = /*#__PURE__*/function (_ContentSequence) {
|
|
@@ -28155,27 +27852,27 @@ var TrackingIdentifier = /*#__PURE__*/function (_Template19) {
|
|
|
28155
27852
|
}(Template);
|
|
28156
27853
|
|
|
28157
27854
|
var templates = /*#__PURE__*/Object.freeze({
|
|
28158
|
-
|
|
28159
|
-
|
|
28160
|
-
|
|
28161
|
-
|
|
28162
|
-
|
|
28163
|
-
|
|
28164
|
-
|
|
28165
|
-
|
|
28166
|
-
|
|
28167
|
-
|
|
28168
|
-
|
|
28169
|
-
|
|
28170
|
-
|
|
28171
|
-
|
|
28172
|
-
|
|
28173
|
-
|
|
28174
|
-
|
|
28175
|
-
|
|
28176
|
-
|
|
28177
|
-
|
|
28178
|
-
|
|
27855
|
+
__proto__: null,
|
|
27856
|
+
AlgorithmIdentification: AlgorithmIdentification,
|
|
27857
|
+
DeviceObserverIdentifyingAttributes: DeviceObserverIdentifyingAttributes,
|
|
27858
|
+
ImageLibrary: ImageLibrary,
|
|
27859
|
+
LanguageOfContentItemAndDescendants: LanguageOfContentItemAndDescendants,
|
|
27860
|
+
Measurement: Measurement,
|
|
27861
|
+
MeasurementAndQualitativeEvaluationGroup: MeasurementAndQualitativeEvaluationGroup,
|
|
27862
|
+
MeasurementReport: MeasurementReport,
|
|
27863
|
+
MeasurementsDerivedFromMultipleROIMeasurements: MeasurementsDerivedFromMultipleROIMeasurements,
|
|
27864
|
+
ObservationContext: ObservationContext,
|
|
27865
|
+
ObserverContext: ObserverContext,
|
|
27866
|
+
PersonObserverIdentifyingAttributes: PersonObserverIdentifyingAttributes,
|
|
27867
|
+
PlanarROIMeasurementsAndQualitativeEvaluations: PlanarROIMeasurementsAndQualitativeEvaluations,
|
|
27868
|
+
ROIMeasurements: ROIMeasurements,
|
|
27869
|
+
SubjectContext: SubjectContext,
|
|
27870
|
+
SubjectContextDevice: SubjectContextDevice,
|
|
27871
|
+
SubjectContextFetus: SubjectContextFetus,
|
|
27872
|
+
SubjectContextSpecimen: SubjectContextSpecimen,
|
|
27873
|
+
TimePointContext: TimePointContext,
|
|
27874
|
+
TrackingIdentifier: TrackingIdentifier,
|
|
27875
|
+
VolumetricROIMeasurementsAndQualitativeEvaluations: VolumetricROIMeasurementsAndQualitativeEvaluations
|
|
28179
27876
|
});
|
|
28180
27877
|
|
|
28181
27878
|
var _attributesToInclude = [
|
|
@@ -28343,8 +28040,8 @@ var Comprehensive3DSR = /*#__PURE__*/_createClass(function Comprehensive3DSR(opt
|
|
|
28343
28040
|
});
|
|
28344
28041
|
|
|
28345
28042
|
var documents = /*#__PURE__*/Object.freeze({
|
|
28346
|
-
|
|
28347
|
-
|
|
28043
|
+
__proto__: null,
|
|
28044
|
+
Comprehensive3DSR: Comprehensive3DSR
|
|
28348
28045
|
});
|
|
28349
28046
|
|
|
28350
28047
|
var sr = {
|
|
@@ -28469,5 +28166,5 @@ ValueRepresentation.setDicomMessageClass(DicomMessage);
|
|
|
28469
28166
|
ValueRepresentation.setTagClass(Tag);
|
|
28470
28167
|
Tag.setDicomMessageClass(DicomMessage);
|
|
28471
28168
|
|
|
28472
|
-
export { DICOMWEB, adapters, anonymizer, async, constants, data, dcmjs as default, derivations,
|
|
28169
|
+
export { DICOMWEB, adapters, anonymizer, async, constants, data, dcmjs as default, derivations, normalizers, sr, utilities };
|
|
28473
28170
|
//# sourceMappingURL=dcmjs.es.js.map
|