dcmjs 0.53.1 → 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 +230 -548
- package/build/dcmjs.es.js.map +1 -1
- package/build/dcmjs.js +69 -20
- 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");
|
|
@@ -9528,30 +9155,30 @@ var BULKDATA_VRS = new Set(["DS",
|
|
|
9528
9155
|
]);
|
|
9529
9156
|
|
|
9530
9157
|
var constants = /*#__PURE__*/Object.freeze({
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
9548
|
-
|
|
9549
|
-
|
|
9550
|
-
|
|
9551
|
-
|
|
9552
|
-
|
|
9553
|
-
|
|
9554
|
-
|
|
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
|
|
9555
9182
|
});
|
|
9556
9183
|
|
|
9557
9184
|
/**
|
|
@@ -10884,6 +10511,8 @@ var SequenceOfItems = /*#__PURE__*/function (_ValueRepresentation8) {
|
|
|
10884
10511
|
if (undef) stream.increment(8);
|
|
10885
10512
|
var items = DicomMessage$3._read(itemStream, syntax);
|
|
10886
10513
|
elements.push(items);
|
|
10514
|
+
} else {
|
|
10515
|
+
elements.push({});
|
|
10887
10516
|
}
|
|
10888
10517
|
if (!undefLength && read == sqlength) {
|
|
10889
10518
|
break;
|
|
@@ -12857,6 +12486,13 @@ function paddingLeft(paddingValue, string) {
|
|
|
12857
12486
|
return String(paddingValue + string).slice(-paddingValue.length);
|
|
12858
12487
|
}
|
|
12859
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
|
+
}
|
|
12860
12496
|
var Tag = /*#__PURE__*/function () {
|
|
12861
12497
|
function Tag(value) {
|
|
12862
12498
|
_classCallCheck(this, Tag);
|
|
@@ -12931,6 +12567,10 @@ var Tag = /*#__PURE__*/function () {
|
|
|
12931
12567
|
}, {
|
|
12932
12568
|
key: "write",
|
|
12933
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
|
+
}
|
|
12934
12574
|
var vr = ValueRepresentation.createByTypeString(vrType);
|
|
12935
12575
|
var useSyntax = DicomMessage$1._normalizeSyntax(syntax);
|
|
12936
12576
|
var implicit = useSyntax === IMPLICIT_LITTLE_ENDIAN;
|
|
@@ -13071,6 +12711,15 @@ function deepEqual(obj1, obj2) {
|
|
|
13071
12711
|
}
|
|
13072
12712
|
|
|
13073
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
|
+
}
|
|
13074
12723
|
var DicomMessage = /*#__PURE__*/function () {
|
|
13075
12724
|
function DicomMessage() {
|
|
13076
12725
|
_classCallCheck(this, DicomMessage);
|
|
@@ -13310,7 +12959,9 @@ var DicomMessage = /*#__PURE__*/function () {
|
|
|
13310
12959
|
}
|
|
13311
12960
|
var length = null,
|
|
13312
12961
|
vr = null,
|
|
13313
|
-
vrType
|
|
12962
|
+
vrType,
|
|
12963
|
+
wireVrType = null; // VR as literally encoded in the stream (explicit mode)
|
|
12964
|
+
|
|
13314
12965
|
if (implicit) {
|
|
13315
12966
|
length = stream.readUint32();
|
|
13316
12967
|
var elementData = DicomMessage.lookupTag(tag);
|
|
@@ -13333,6 +12984,8 @@ var DicomMessage = /*#__PURE__*/function () {
|
|
|
13333
12984
|
vr = ValueRepresentation.createByTypeString(vrType);
|
|
13334
12985
|
} else {
|
|
13335
12986
|
vrType = stream.readVR();
|
|
12987
|
+
wireVrType = vrType; // remember literal stream VR before any override
|
|
12988
|
+
|
|
13336
12989
|
if (vrType === "UN" && DicomMessage.lookupTag(tag) && DicomMessage.lookupTag(tag).vr) {
|
|
13337
12990
|
vrType = DicomMessage.lookupTag(tag).vr;
|
|
13338
12991
|
vr = ValueRepresentation.parseUnknownVr(vrType);
|
|
@@ -13346,20 +12999,26 @@ var DicomMessage = /*#__PURE__*/function () {
|
|
|
13346
12999
|
length = stream.readUint16();
|
|
13347
13000
|
}
|
|
13348
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
|
+
}
|
|
13349
13008
|
var values = [];
|
|
13350
13009
|
var rawValues = [];
|
|
13351
13010
|
if (vr.isBinary() && length > vr.maxLength && !vr.noMultiple) {
|
|
13352
13011
|
var times = length / vr.maxLength,
|
|
13353
13012
|
i = 0;
|
|
13354
13013
|
while (i++ < times) {
|
|
13355
|
-
var _vr$read = vr.read(stream, vr.maxLength,
|
|
13014
|
+
var _vr$read = vr.read(stream, vr.maxLength, readSyntax, options),
|
|
13356
13015
|
rawValue = _vr$read.rawValue,
|
|
13357
13016
|
value = _vr$read.value;
|
|
13358
13017
|
rawValues.push(rawValue);
|
|
13359
13018
|
values.push(value);
|
|
13360
13019
|
}
|
|
13361
13020
|
} else {
|
|
13362
|
-
var _ref = vr.read(stream, length,
|
|
13021
|
+
var _ref = vr.read(stream, length, readSyntax, options) || {},
|
|
13363
13022
|
_rawValue = _ref.rawValue,
|
|
13364
13023
|
_value = _ref.value;
|
|
13365
13024
|
if (!vr.isBinary() && singleVRs.indexOf(vr.type) == -1) {
|
|
@@ -13478,13 +13137,13 @@ function lookupPrivateTag(keyStr) {
|
|
|
13478
13137
|
}
|
|
13479
13138
|
|
|
13480
13139
|
var privateData = /*#__PURE__*/Object.freeze({
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13484
|
-
|
|
13485
|
-
|
|
13486
|
-
|
|
13487
|
-
|
|
13140
|
+
__proto__: null,
|
|
13141
|
+
initPackedPrivate: initPackedPrivate,
|
|
13142
|
+
keyBlob: keyBlob,
|
|
13143
|
+
lookupPrivateTag: lookupPrivateTag,
|
|
13144
|
+
nameBlob: nameBlob,
|
|
13145
|
+
vmTable: vmTable,
|
|
13146
|
+
vrTable: vrTable
|
|
13488
13147
|
});
|
|
13489
13148
|
|
|
13490
13149
|
var DICOMWEB = /*#__PURE__*/function () {
|
|
@@ -14667,12 +14326,14 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14667
14326
|
key: "readSequence",
|
|
14668
14327
|
value: function () {
|
|
14669
14328
|
var _readSequence = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(listener, sqTagInfo, options) {
|
|
14670
|
-
var
|
|
14329
|
+
var _ref, _sqTagInfo$sequenceRe;
|
|
14330
|
+
var length, stream, sequenceReadSyntax, endOffset, tagInfo, tag, itemLength, itemUntilOffset, decoder, _t;
|
|
14671
14331
|
return _regeneratorRuntime().wrap(function (_context6) {
|
|
14672
14332
|
while (1) switch (_context6.prev = _context6.next) {
|
|
14673
14333
|
case 0:
|
|
14674
14334
|
length = sqTagInfo.length;
|
|
14675
|
-
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;
|
|
14676
14337
|
endOffset = length === UNDEFINED_LENGTH_FIX ? Number.MAX_SAFE_INTEGER : stream.offset + length;
|
|
14677
14338
|
case 1:
|
|
14678
14339
|
_t = stream.offset < endOffset;
|
|
@@ -14690,7 +14351,9 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14690
14351
|
break;
|
|
14691
14352
|
}
|
|
14692
14353
|
readLog.debug("readSequence loop", stream.offset, endOffset);
|
|
14693
|
-
tagInfo = this.readTagHeader(
|
|
14354
|
+
tagInfo = this.readTagHeader(_objectSpread2(_objectSpread2({}, options), {}, {
|
|
14355
|
+
readSyntax: sequenceReadSyntax
|
|
14356
|
+
}));
|
|
14694
14357
|
tag = tagInfo.tag;
|
|
14695
14358
|
if (!(tag === TagHex.Item)) {
|
|
14696
14359
|
_context6.next = 5;
|
|
@@ -14710,7 +14373,8 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14710
14373
|
decoder = stream.decoder;
|
|
14711
14374
|
_context6.next = 4;
|
|
14712
14375
|
return this.read(listener, _objectSpread2(_objectSpread2({}, options), {}, {
|
|
14713
|
-
untilOffset: itemUntilOffset
|
|
14376
|
+
untilOffset: itemUntilOffset,
|
|
14377
|
+
readSyntax: sequenceReadSyntax
|
|
14714
14378
|
}));
|
|
14715
14379
|
case 4:
|
|
14716
14380
|
stream.setDecoder(decoder);
|
|
@@ -15139,16 +14803,17 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
15139
14803
|
}, {
|
|
15140
14804
|
key: "readTagHeader",
|
|
15141
14805
|
value: function readTagHeader() {
|
|
14806
|
+
var _options$readSyntax;
|
|
15142
14807
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
15143
14808
|
untilTag: null,
|
|
15144
14809
|
includeUntilTagValue: false
|
|
15145
14810
|
};
|
|
15146
|
-
var stream = this.stream
|
|
15147
|
-
syntax = this.syntax;
|
|
14811
|
+
var stream = this.stream;
|
|
15148
14812
|
var untilTag = options.untilTag,
|
|
15149
14813
|
includeUntilTagValue = options.includeUntilTagValue;
|
|
15150
|
-
var
|
|
15151
|
-
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;
|
|
15152
14817
|
stream.setEndian(isLittleEndian);
|
|
15153
14818
|
var tagObj = Tag.readTag(stream);
|
|
15154
14819
|
var tag = tagObj.cleanString;
|
|
@@ -15166,6 +14831,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
15166
14831
|
var length = null;
|
|
15167
14832
|
var vr = null;
|
|
15168
14833
|
var vrType;
|
|
14834
|
+
var wireVrType = null;
|
|
15169
14835
|
var isCommand = tagObj.group() === 0;
|
|
15170
14836
|
if (tagObj.isInstruction()) {
|
|
15171
14837
|
length = stream.readUint32();
|
|
@@ -15197,6 +14863,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
15197
14863
|
} else {
|
|
15198
14864
|
var _DicomMessage$lookupT;
|
|
15199
14865
|
vrType = stream.readVR();
|
|
14866
|
+
wireVrType = vrType;
|
|
15200
14867
|
if (vrType === "UN" && (_DicomMessage$lookupT = DicomMessage.lookupTag(tagObj)) !== null && _DicomMessage$lookupT !== void 0 && _DicomMessage$lookupT.vr) {
|
|
15201
14868
|
vrType = DicomMessage.lookupTag(tagObj).vr;
|
|
15202
14869
|
vr = ValueRepresentation.parseUnknownVr(vrType);
|
|
@@ -15210,11 +14877,16 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
15210
14877
|
length = stream.readUint16();
|
|
15211
14878
|
}
|
|
15212
14879
|
}
|
|
14880
|
+
var sequenceReadSyntax;
|
|
14881
|
+
if (!implicit && wireVrType === "UN" && isUnSequenceValue(stream, length)) {
|
|
14882
|
+
vr = ValueRepresentation.createByTypeString("SQ");
|
|
14883
|
+
sequenceReadSyntax = IMPLICIT_LITTLE_ENDIAN;
|
|
14884
|
+
}
|
|
15213
14885
|
var punctuatedTag = DicomMetaDictionary.punctuateTag(tag);
|
|
15214
14886
|
var entry = DicomMetaDictionary.dictionary[punctuatedTag];
|
|
15215
14887
|
|
|
15216
14888
|
// Include both the string and object values for vr and tag
|
|
15217
|
-
var header = {
|
|
14889
|
+
var header = _objectSpread2({
|
|
15218
14890
|
vrObj: vr,
|
|
15219
14891
|
vr: vr.type,
|
|
15220
14892
|
tag: tag,
|
|
@@ -15222,7 +14894,9 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
15222
14894
|
vm: entry === null || entry === void 0 ? void 0 : entry.vm,
|
|
15223
14895
|
name: entry === null || entry === void 0 ? void 0 : entry.name,
|
|
15224
14896
|
length: length === UNDEFINED_LENGTH ? -1 : length
|
|
15225
|
-
}
|
|
14897
|
+
}, sequenceReadSyntax !== undefined && {
|
|
14898
|
+
sequenceReadSyntax: sequenceReadSyntax
|
|
14899
|
+
});
|
|
15226
14900
|
return header;
|
|
15227
14901
|
}
|
|
15228
14902
|
|
|
@@ -15236,12 +14910,14 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
15236
14910
|
key: "readSingle",
|
|
15237
14911
|
value: (function () {
|
|
15238
14912
|
var _readSingle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(tagInfo, listener, options) {
|
|
15239
|
-
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;
|
|
15240
14915
|
return _regeneratorRuntime().wrap(function (_context11) {
|
|
15241
14916
|
while (1) switch (_context11.prev = _context11.next) {
|
|
15242
14917
|
case 0:
|
|
15243
14918
|
length = tagInfo.length;
|
|
15244
|
-
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;
|
|
15245
14921
|
_context11.next = 1;
|
|
15246
14922
|
return this.stream.ensureAvailable(length);
|
|
15247
14923
|
case 1:
|
|
@@ -15252,11 +14928,11 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
15252
14928
|
i = 0;
|
|
15253
14929
|
while (i++ < times) {
|
|
15254
14930
|
readLog.trace("readSingle multi-value loop", i, times);
|
|
15255
|
-
_vr$read = vr.read(stream, vr.maxLength,
|
|
14931
|
+
_vr$read = vr.read(stream, vr.maxLength, readSyntax), value = _vr$read.value;
|
|
15256
14932
|
values.push(value);
|
|
15257
14933
|
}
|
|
15258
14934
|
} else {
|
|
15259
|
-
_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;
|
|
15260
14936
|
if (!vr.isBinary() && singleVRs.indexOf(vr.type) == -1) {
|
|
15261
14937
|
values = _value;
|
|
15262
14938
|
if (typeof _value === "string") {
|
|
@@ -18533,6 +18209,12 @@ ArrowAnnotate$2.isValidCornerstoneTrackingIdentifier = function (TrackingIdentif
|
|
|
18533
18209
|
};
|
|
18534
18210
|
MeasurementReport$3.registerTool(ArrowAnnotate$2);
|
|
18535
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
|
+
|
|
18536
18218
|
var iota_1;
|
|
18537
18219
|
var hasRequiredIota;
|
|
18538
18220
|
|
|
@@ -19031,7 +18713,7 @@ function h(matrix) {
|
|
|
19031
18713
|
var _matrix$shape = _slicedToArray(matrix.shape, 2),
|
|
19032
18714
|
rows = _matrix$shape[0],
|
|
19033
18715
|
cols = _matrix$shape[1];
|
|
19034
|
-
var result = ndarray(new
|
|
18716
|
+
var result = ndarray(new matrix.data.constructor(rows * cols), [rows, cols]);
|
|
19035
18717
|
for (var i = 0; i < rows; i++) {
|
|
19036
18718
|
for (var j = 0; j < cols; j++) {
|
|
19037
18719
|
result.set(i, j, matrix.get(i, cols - 1 - j));
|
|
@@ -19050,7 +18732,7 @@ function v(matrix) {
|
|
|
19050
18732
|
var _matrix$shape2 = _slicedToArray(matrix.shape, 2),
|
|
19051
18733
|
rows = _matrix$shape2[0],
|
|
19052
18734
|
cols = _matrix$shape2[1];
|
|
19053
|
-
var result = ndarray(new
|
|
18735
|
+
var result = ndarray(new matrix.data.constructor(rows * cols), [rows, cols]);
|
|
19054
18736
|
for (var j = 0; j < cols; j++) {
|
|
19055
18737
|
for (var i = 0; i < rows; i++) {
|
|
19056
18738
|
result.set(i, j, matrix.get(rows - 1 - i, j));
|
|
@@ -19069,7 +18751,7 @@ function rotateMatrix902D (matrix) {
|
|
|
19069
18751
|
var _matrix$shape = _slicedToArray(matrix.shape, 2),
|
|
19070
18752
|
rows = _matrix$shape[0],
|
|
19071
18753
|
cols = _matrix$shape[1];
|
|
19072
|
-
var result = ndarray(new
|
|
18754
|
+
var result = ndarray(new matrix.data.constructor(rows * cols), [cols, rows]);
|
|
19073
18755
|
var resultColsMinus1 = result.shape[1] - 1;
|
|
19074
18756
|
for (var i = 0; i < rows; i++) {
|
|
19075
18757
|
for (var j = 0; j < cols; j++) {
|
|
@@ -19119,14 +18801,14 @@ function nearlyEqual(a, b, epsilon) {
|
|
|
19119
18801
|
}
|
|
19120
18802
|
|
|
19121
18803
|
var orientation = /*#__PURE__*/Object.freeze({
|
|
19122
|
-
|
|
19123
|
-
|
|
19124
|
-
|
|
19125
|
-
|
|
19126
|
-
|
|
19127
|
-
|
|
19128
|
-
|
|
19129
|
-
|
|
18804
|
+
__proto__: null,
|
|
18805
|
+
crossProduct3D: crossProduct3D,
|
|
18806
|
+
flipImageOrientationPatient: flipImageOrientationPatient,
|
|
18807
|
+
flipMatrix2D: flipMatrix2D,
|
|
18808
|
+
nearlyEqual: nearlyEqual,
|
|
18809
|
+
rotateDirectionCosinesInPlane: rotateDirectionCosinesInPlane,
|
|
18810
|
+
rotateMatrix902D: rotateMatrix902D,
|
|
18811
|
+
rotateVectorAroundUnitVector: rotateVectorAroundUnitVector
|
|
19130
18812
|
});
|
|
19131
18813
|
|
|
19132
18814
|
var Segmentation$3 = {
|
|
@@ -19701,9 +19383,9 @@ function decodeFrame(rleEncodedFrame, pixelData) {
|
|
|
19701
19383
|
}
|
|
19702
19384
|
|
|
19703
19385
|
var compression = /*#__PURE__*/Object.freeze({
|
|
19704
|
-
|
|
19705
|
-
|
|
19706
|
-
|
|
19386
|
+
__proto__: null,
|
|
19387
|
+
decode: decode,
|
|
19388
|
+
encode: encode
|
|
19707
19389
|
});
|
|
19708
19390
|
|
|
19709
19391
|
var lodash_clonedeep = {exports: {}};
|
|
@@ -24134,56 +23816,56 @@ var forEach = function () {
|
|
|
24134
23816
|
}();
|
|
24135
23817
|
|
|
24136
23818
|
var vec3 = /*#__PURE__*/Object.freeze({
|
|
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
|
-
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24185
|
-
|
|
24186
|
-
|
|
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
|
|
24187
23869
|
});
|
|
24188
23870
|
|
|
24189
23871
|
var ELLIPTICALROI = "EllipticalROI";
|
|
@@ -25883,9 +25565,9 @@ var CodedConcept = /*#__PURE__*/function () {
|
|
|
25883
25565
|
}();
|
|
25884
25566
|
|
|
25885
25567
|
var coding = /*#__PURE__*/Object.freeze({
|
|
25886
|
-
|
|
25887
|
-
|
|
25888
|
-
|
|
25568
|
+
__proto__: null,
|
|
25569
|
+
Code: Code,
|
|
25570
|
+
CodedConcept: CodedConcept
|
|
25889
25571
|
});
|
|
25890
25572
|
|
|
25891
25573
|
var ValueTypes = {
|
|
@@ -26439,28 +26121,28 @@ var TcoordContentItem = /*#__PURE__*/function (_ContentItem12) {
|
|
|
26439
26121
|
}(ContentItem);
|
|
26440
26122
|
|
|
26441
26123
|
var valueTypes = /*#__PURE__*/Object.freeze({
|
|
26442
|
-
|
|
26443
|
-
|
|
26444
|
-
|
|
26445
|
-
|
|
26446
|
-
|
|
26447
|
-
|
|
26448
|
-
|
|
26449
|
-
|
|
26450
|
-
|
|
26451
|
-
|
|
26452
|
-
|
|
26453
|
-
|
|
26454
|
-
|
|
26455
|
-
|
|
26456
|
-
|
|
26457
|
-
|
|
26458
|
-
|
|
26459
|
-
|
|
26460
|
-
|
|
26461
|
-
|
|
26462
|
-
|
|
26463
|
-
|
|
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
|
|
26464
26146
|
});
|
|
26465
26147
|
|
|
26466
26148
|
var LongitudinalTemporalOffsetFromEvent = /*#__PURE__*/function (_NumContentItem) {
|
|
@@ -26793,18 +26475,18 @@ var ReferencedSegmentation = /*#__PURE__*/function (_ContentSequence2) {
|
|
|
26793
26475
|
}(ContentSequence);
|
|
26794
26476
|
|
|
26795
26477
|
var contentItems = /*#__PURE__*/Object.freeze({
|
|
26796
|
-
|
|
26797
|
-
|
|
26798
|
-
|
|
26799
|
-
|
|
26800
|
-
|
|
26801
|
-
|
|
26802
|
-
|
|
26803
|
-
|
|
26804
|
-
|
|
26805
|
-
|
|
26806
|
-
|
|
26807
|
-
|
|
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
|
|
26808
26490
|
});
|
|
26809
26491
|
|
|
26810
26492
|
var Template = /*#__PURE__*/function (_ContentSequence) {
|
|
@@ -28170,27 +27852,27 @@ var TrackingIdentifier = /*#__PURE__*/function (_Template19) {
|
|
|
28170
27852
|
}(Template);
|
|
28171
27853
|
|
|
28172
27854
|
var templates = /*#__PURE__*/Object.freeze({
|
|
28173
|
-
|
|
28174
|
-
|
|
28175
|
-
|
|
28176
|
-
|
|
28177
|
-
|
|
28178
|
-
|
|
28179
|
-
|
|
28180
|
-
|
|
28181
|
-
|
|
28182
|
-
|
|
28183
|
-
|
|
28184
|
-
|
|
28185
|
-
|
|
28186
|
-
|
|
28187
|
-
|
|
28188
|
-
|
|
28189
|
-
|
|
28190
|
-
|
|
28191
|
-
|
|
28192
|
-
|
|
28193
|
-
|
|
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
|
|
28194
27876
|
});
|
|
28195
27877
|
|
|
28196
27878
|
var _attributesToInclude = [
|
|
@@ -28358,8 +28040,8 @@ var Comprehensive3DSR = /*#__PURE__*/_createClass(function Comprehensive3DSR(opt
|
|
|
28358
28040
|
});
|
|
28359
28041
|
|
|
28360
28042
|
var documents = /*#__PURE__*/Object.freeze({
|
|
28361
|
-
|
|
28362
|
-
|
|
28043
|
+
__proto__: null,
|
|
28044
|
+
Comprehensive3DSR: Comprehensive3DSR
|
|
28363
28045
|
});
|
|
28364
28046
|
|
|
28365
28047
|
var sr = {
|
|
@@ -28484,5 +28166,5 @@ ValueRepresentation.setDicomMessageClass(DicomMessage);
|
|
|
28484
28166
|
ValueRepresentation.setTagClass(Tag);
|
|
28485
28167
|
Tag.setDicomMessageClass(DicomMessage);
|
|
28486
28168
|
|
|
28487
|
-
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 };
|
|
28488
28170
|
//# sourceMappingURL=dcmjs.es.js.map
|