exifreader 4.14.1 → 4.15.0
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/README.md +34 -30
- package/bin/build.js +8 -8
- package/dist/exif-reader.js +1 -1
- package/dist/exif-reader.js.gz +0 -0
- package/dist/exif-reader.js.map +1 -1
- package/package.json +27 -31
- package/src/exif-reader.js +2 -1
- package/src/mpf-tags.js +150 -0
- package/src/tags-helpers.js +187 -0
- package/src/tags.js +2 -315
- package/src/utils.js +3 -3
- package/src/xmp-tags.js +36 -8
- package/webpack.config.js +1 -1
package/README.md
CHANGED
|
@@ -7,9 +7,8 @@ browser or from Node. Supports JPEG, TIFF, PNG, HEIC, and WebP files with Exif,
|
|
|
7
7
|
IPTC, XMP, ICC, and MPF metadata (depending on file type).
|
|
8
8
|
|
|
9
9
|
ExifReader is highly and easily configurable and the resulting bundle can be as
|
|
10
|
-
small as
|
|
11
|
-
and/or GPS values).
|
|
12
|
-
[making a custom build](#configure-a-custom-build).
|
|
10
|
+
small as **~4 KiB** (gzipped) if you're only interested in a few tags (e.g. date
|
|
11
|
+
and/or GPS values).
|
|
13
12
|
|
|
14
13
|
ExifReader supports module formats ESM, AMD, CommonJS, and globals and can
|
|
15
14
|
therefore easily be used from Webpack, RequireJS, Browserify, Node etc.
|
|
@@ -38,9 +37,6 @@ with an attached example image and I'll see what I can do.
|
|
|
38
37
|
If you come here from the popular but now dead exif-js package, please let me
|
|
39
38
|
know if you're missing anything from it and I will try to help you. Some notes:
|
|
40
39
|
|
|
41
|
-
- Questions, bug reports, suggestions, and pull requests are very much
|
|
42
|
-
welcome. If you've been using another Exif package you probably have some
|
|
43
|
-
good insights on what's missing in this one.
|
|
44
40
|
- ExifReader has a different API, hopefully better. :-)
|
|
45
41
|
- XMP support in exif-js does not seem perfect. ExifReader should be a bit
|
|
46
42
|
better on that part.
|
|
@@ -48,12 +44,30 @@ know if you're missing anything from it and I will try to help you. Some notes:
|
|
|
48
44
|
- I've been maintaining this package since 2012 and I have no plans to stop
|
|
49
45
|
doing that anytime soon.
|
|
50
46
|
|
|
47
|
+
Table of Contents
|
|
48
|
+
-----------------
|
|
49
|
+
|
|
50
|
+
1. [Support](#support)
|
|
51
|
+
2. [Installation](#installation)
|
|
52
|
+
3. [Usage](#usage)
|
|
53
|
+
4. [Configure a Custom Build](#configure-a-custom-build)
|
|
54
|
+
5. [Notes](#notes)
|
|
55
|
+
6. [Client/Browser Support](#clientbrowser-support)
|
|
56
|
+
7. [Examples](#examples)
|
|
57
|
+
8. [Tips](#tips)
|
|
58
|
+
9. [Known Limitations](#known-limitations)
|
|
59
|
+
10. [Contributing](#contributing)
|
|
60
|
+
11. [Code of Conduct](#code-of-conduct)
|
|
61
|
+
12. [License](#license)
|
|
62
|
+
13. [Changelog](#changelog)
|
|
63
|
+
|
|
51
64
|
Support
|
|
52
65
|
-------
|
|
53
66
|
|
|
54
67
|
Monetary support is not necessary for me to continue working on this, but in
|
|
55
68
|
case you like this library and want to support its development you are very
|
|
56
|
-
welcome to click the button below.
|
|
69
|
+
welcome to click the button below. You can also use GitHub's sponsor feature on
|
|
70
|
+
the right-hand side on the repository's main page.
|
|
57
71
|
|
|
58
72
|
<a href="https://www.buymeacoffee.com/mattiasw" target="_blank">
|
|
59
73
|
<img src="https://cdn.buymeacoffee.com/buttons/v2/default-violet.png" alt="Buy me a coffee" width="181" height="50">
|
|
@@ -85,9 +99,9 @@ After that, the transpiled, concatenated and minified ES5 file will be in the
|
|
|
85
99
|
|
|
86
100
|
### Type definitions
|
|
87
101
|
|
|
88
|
-
Type definitions for TypeScript are included in the package. I'm not
|
|
89
|
-
those so if you're missing any definitions for tags or something
|
|
90
|
-
pull-request would be very welcome.
|
|
102
|
+
Type definitions for TypeScript are included in the package. I'm not perfect in
|
|
103
|
+
maintaining those so if you're missing any definitions for tags or something
|
|
104
|
+
else, a pull-request would be very welcome.
|
|
91
105
|
|
|
92
106
|
Usage
|
|
93
107
|
-----
|
|
@@ -291,7 +305,8 @@ sure to add this to your Webpack config (probably the `webpack.config.js` file):
|
|
|
291
305
|
include a `Buffer` shim for browsers. This configuration will stop Webpack from
|
|
292
306
|
doing that. Webpack 5 does this automatically.
|
|
293
307
|
|
|
294
|
-
|
|
308
|
+
Configure a Custom Build
|
|
309
|
+
------------------------
|
|
295
310
|
|
|
296
311
|
Configuring a custom build can reduce the bundle size significantly.
|
|
297
312
|
|
|
@@ -327,7 +342,7 @@ almost half the size of the full one (non-gzipped)):
|
|
|
327
342
|
```
|
|
328
343
|
|
|
329
344
|
**Example 2:** Only include TIFF files, and the Exif `DateTime` tag and the GPS
|
|
330
|
-
tags (resulting bundle will be ~
|
|
345
|
+
tags (resulting bundle will be ~19 % of a gzipped full build):
|
|
331
346
|
|
|
332
347
|
```javascript
|
|
333
348
|
"exifreader": {
|
|
@@ -450,22 +465,6 @@ Tips
|
|
|
450
465
|
this optimization fits your use case. Use the `length` option to only read
|
|
451
466
|
the beginning of the file. See above for more details on that.
|
|
452
467
|
|
|
453
|
-
Testing
|
|
454
|
-
-------
|
|
455
|
-
|
|
456
|
-
Testing is done with [Mocha](https://mochajs.org/) and
|
|
457
|
-
[Chai](http://chaijs.com/). Run with:
|
|
458
|
-
|
|
459
|
-
```bash
|
|
460
|
-
npm test
|
|
461
|
-
```
|
|
462
|
-
|
|
463
|
-
Test coverage can be generated like this:
|
|
464
|
-
|
|
465
|
-
```bash
|
|
466
|
-
npm run coverage
|
|
467
|
-
```
|
|
468
|
-
|
|
469
468
|
Known Limitations
|
|
470
469
|
-----------------
|
|
471
470
|
|
|
@@ -475,7 +474,10 @@ Known Limitations
|
|
|
475
474
|
Contributing
|
|
476
475
|
------------
|
|
477
476
|
|
|
478
|
-
|
|
477
|
+
Questions, bug reports, suggestions, and pull requests are very much welcome. If
|
|
478
|
+
you've been using another Exif package, you probably have some good insights on
|
|
479
|
+
what's missing in this one. See [CONTRIBUTING.md](CONTRIBUTING.md) for more
|
|
480
|
+
info.
|
|
479
481
|
|
|
480
482
|
Code of Conduct
|
|
481
483
|
---------------
|
|
@@ -498,7 +500,9 @@ case is covered.
|
|
|
498
500
|
Changelog
|
|
499
501
|
---------
|
|
500
502
|
|
|
501
|
-
|
|
503
|
+
A selection of notable changes.
|
|
504
|
+
|
|
505
|
+
- **December 2022**:
|
|
502
506
|
- Add option `length` to only read the first `length` bytes of the file.
|
|
503
507
|
- **October 2021**:
|
|
504
508
|
- Major version update 4.0.0. A couple of small breaking changes that
|
package/bin/build.js
CHANGED
|
@@ -17,15 +17,15 @@ function checkConfig() {
|
|
|
17
17
|
if (!isDependenciesInstalled()) {
|
|
18
18
|
console.log('Installing ExifReader custom build dependencies...'); // eslint-disable-line no-console
|
|
19
19
|
const packages = [
|
|
20
|
-
'@babel/core@7.
|
|
21
|
-
'@babel/preset-env@7.
|
|
22
|
-
'@babel/register@7.
|
|
23
|
-
'babel-loader@8.2.
|
|
20
|
+
'@babel/core@7.23.2',
|
|
21
|
+
'@babel/preset-env@7.23.2',
|
|
22
|
+
'@babel/register@7.22.15',
|
|
23
|
+
'babel-loader@8.2.5',
|
|
24
24
|
'cross-env@7.0.3',
|
|
25
|
-
'string-replace-loader@3.0
|
|
26
|
-
'webpack@5.
|
|
27
|
-
'webpack-cli@
|
|
28
|
-
'terser-webpack-plugin@5.
|
|
25
|
+
'string-replace-loader@3.1.0',
|
|
26
|
+
'webpack@5.89.0',
|
|
27
|
+
'webpack-cli@5.1.4',
|
|
28
|
+
'terser-webpack-plugin@5.3.9'
|
|
29
29
|
];
|
|
30
30
|
execSync(`npm install --production=false --loglevel=error --no-optional --no-package-lock --no-save ${packages.join(' ')}`, {stdio: 'inherit'});
|
|
31
31
|
console.log('Done.'); // eslint-disable-line no-console
|
package/dist/exif-reader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ExifReader=t():e.ExifReader=t()}("undefined"!=typeof self?self:this,(function(){return function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:1,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:1})}},t={};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t,n){for(var r=[],i=0;i<n&&t+i<e.byteLength;i++)r.push(e.getUint8(t+i));return o(r)}function i(e,t,n){for(var r=[],i=0;i<n&&t+i<e.byteLength;i+=2)r.push(e.getUint16(t+i));return o(r)}function o(e){return e.map((function(e){return String.fromCharCode(e)})).join("")}function a(){for(var e=1;e<arguments.length;e++)for(var t in arguments[e])arguments[0][t]=arguments[e][t];return arguments[0]}function u(e,t,n){var r=0;Object.defineProperty(e,t,{get:function(){return r||(r=1,Object.defineProperty(e,t,{configurable:1,enumerable:1,value:n.apply(e),writable:1})),e[t]},configurable:1,enumerable:1})}function c(e){return"undefined"!=typeof btoa?"string"==typeof e?btoa(e):btoa(Array.prototype.reduce.call(new Uint8Array(e),(function(e,t){return e+String.fromCharCode(t)}),"")):"undefined"!=typeof Buffer?void 0!==n(Buffer.from)?Buffer.from(e).toString("base64"):new Buffer(e).toString("base64"):void 0}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}e.r(t),e.d(t,{default:function(){return bn},errors:function(){return Cn},load:function(){return An},loadView:function(){return wn}});var s=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e){return"object"!==f(e)||void 0===e.length||void 0===e.readUInt8||void 0===e.readUInt16LE||void 0===e.readUInt16BE||void 0===e.readUInt32LE||void 0===e.readUInt32BE||void 0===e.readInt32LE||void 0===e.readInt32BE}(t))throw Error("DataView: Passed buffer type is unsupported.");this.buffer=t,this.byteLength=this.buffer.length}var t;return(t=[{key:"getUint8",value:function(e){return this.buffer.readUInt8(e)}},{key:"getUint16",value:function(e,t){return t?this.buffer.readUInt16LE(e):this.buffer.readUInt16BE(e)}},{key:"getUint32",value:function(e,t){return t?this.buffer.readUInt32LE(e):this.buffer.readUInt32BE(e)}},{key:"getInt32",value:function(e,t){return t?this.buffer.readInt32LE(e):this.buffer.readInt32BE(e)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||0,r.configurable=1,"value"in r&&(r.writable=1),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function l(e){return e.map((function(e){return String.fromCharCode(e)})).join("")}function d(e){if(e.length>=8){var t=l(e.slice(0,8));if("ASCII\0\0\0"===t)return l(e.slice(8));if("JIS\0\0\0\0\0"===t)return"[JIS encoded text]";if("UNICODE\0"===t)return"[Unicode encoded text]";if("\0\0\0\0\0\0\0\0"===t)return"[Undefined encoding]"}return"Undefined"}function p(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}var m=18761,g=m,v=function(e,t){if(e.getUint16(t)===m)return m;if(19789===e.getUint16(t))return 19789;throw Error("Illegal byte order value. Faulty image.")},h=65505;function y(e,t){return 65472===e.getUint16(t)}function S(e,t){return 65474===e.getUint16(t)}function b(e,t){return 65506===e.getUint16(t)&&"ICC_PROFILE\0"===r(e,t+4,12)}function C(e,t){return 65506===e.getUint16(t)&&"MPF\0"===r(e,t+4,4)}function A(e,t){return 65504===e.getUint16(t)&&"JFIF"===r(e,t+4,4)&&0===e.getUint8(t+4+4)}function I(e,t){return e.getUint16(t)===h&&"Exif"===r(e,t+4,4)&&0===e.getUint8(t+4+4)}function P(e,t){return e.getUint16(t)===h&&function(e,t){return"http://ns.adobe.com/xap/1.0/\0"===r(e,t+4,29)}(e,t)}function U(e,t){return e.getUint16(t)===h&&function(e,t){return"http://ns.adobe.com/xmp/extension/\0"===r(e,t+4,35)}(e,t)}function w(e,t){return{dataOffset:e+33,length:t-31}}function T(e,t){return{dataOffset:e+79,length:t-77}}function D(e,t){return 65517===e.getUint16(t)&&"Photoshop 3.0"===r(e,t+4,13)&&0===e.getUint8(t+4+13)}function x(e,t){var n=e.getUint16(t);return n>=65504&&n<=65519||65534===n||65472===n||65474===n||65476===n||65499===n||65501===n||65498===n}function O(e,t){return 65535===e.getUint16(t)}var M="PNG\r\n\n",F="iTXt",R="pHYs",k="tIME";function E(e,t){return"IHDR"===r(e,t+4,4)}function L(e,t){return"iTXt"===r(e,t+4,4)&&"XML:com.adobe.xmp\0"===r(e,t+8,18)}function N(e,t){var n=r(e,t+4,4);return"tEXt"===n||"iTXt"===n}function G(e,t){return"eXIf"===r(e,t+4,4)}function B(e,t){var n=[R,k],i=r(e,t+4,4);return n.includes(i)}function j(e,t){t+=28;for(var n=0;n<2&&t<e.byteLength;)0===e.getUint8(t)&&n++,t++;if(!(n<2))return t}function z(e,t){var n=e.getUint32(t);return function(e){return 0===e}(n)?e.byteLength-t:function(e){return 1===e}(n)&&function(e,t){return 0===e.getUint32(t+8)}(e,t)?e.getUint32(t+12):n}var V=function(e){if(function(e){return!!e&&e.byteLength>=4&&function(e){var t=e.getUint16(0)===g;return 42===e.getUint16(2,t)}(e)}(e))return W({hasAppMarkers:1,tiffHeaderOffset:0},"tiff","TIFF");if(function(e){return!!e&&e.byteLength>=2&&65496===e.getUint16(0)}(e))return W(function(e){for(var t,n,r,i,o,a,u,c,f,s=2;s+4+5<=e.byteLength;){if(y(e,s))n=s+2;else if(S(e,s))r=s+2;else if(A(e,s))t=e.getUint16(s+2),i=s+2;else if(I(e,s))t=e.getUint16(s+2),o=s+10;else if(P(e,s))u||(u=[]),t=e.getUint16(s+2),u.push(w(s,t));else if(U(e,s))u||(u=[]),t=e.getUint16(s+2),u.push(T(s,t));else if(D(e,s))t=e.getUint16(s+2),a=s+18;else if(b(e,s)){var l=s+18,d=(t=e.getUint16(s+2))-16,p=e.getUint8(s+16),m=e.getUint8(s+17);c||(c=[]),c.push({offset:l,length:d,chunkNumber:p,chunksTotal:m})}else if(C(e,s))t=e.getUint16(s+2),f=s+8;else{if(!x(e,s)){if(O(e,s)){s++;continue}break}t=e.getUint16(s+2)}s+=2+t}return{hasAppMarkers:s>2,fileDataOffset:n||r,jfifDataOffset:i,tiffHeaderOffset:o,iptcDataOffset:a,xmpChunks:u,iccChunks:c,mpfDataOffset:f}}(e),"jpeg","JPEG");if(function(e){return!!e&&r(e,0,8)===M}(e))return W(function(e){for(var t={hasAppMarkers:0},n=8;n+4+4<=e.byteLength;){if(E(e,n))t.hasAppMarkers=1,t.pngHeaderOffset=n+8;else if(L(e,n)){var i=j(e,n);void 0!==i&&(t.hasAppMarkers=1,t.xmpChunks=[{dataOffset:i,length:e.getUint32(n+0)-(i-(n+8))}])}else if(N(e,n)){t.hasAppMarkers=1;var o=r(e,n+4,4);t.pngTextChunks||(t.pngTextChunks=[]),t.pngTextChunks.push({length:e.getUint32(n+0),type:o,offset:n+8})}else G(e,n)?(t.hasAppMarkers=1,t.tiffHeaderOffset=n+8):B(e,n)&&(t.hasAppMarkers=1,t.pngChunkOffsets||(t.pngChunkOffsets=[]),t.pngChunkOffsets.push(n+0));n+=e.getUint32(n+0)+4+4+4}return t}(e),"png","PNG");if(function(e){if(!e)return 0;var t=r(e,8,4);return"ftyp"===r(e,4,4)&&-1!==["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"].indexOf(t)}(e))return W(function(e){var t=function(e){for(var t=0;t+4+4<=e.byteLength;){var n=z(e,t);if(n>=8&&"meta"===r(e,t+4,4))return{offset:t,length:n};t+=n}return{offset:void 0,length:0}}(e),n=t.offset,i=t.length;if(void 0===n)return{hasAppMarkers:0};var o=Math.min(n+i,e.byteLength),a=function(e,t,n){for(var i={ilocOffset:void 0,exifItemOffset:void 0,colrOffset:void 0};t+4<=n&&(!i.ilocOffset||!i.exifItemOffset||!i.colrOffset);){var o=r(e,t,4);"iloc"===o?i.ilocOffset=t:"Exif"===o?i.exifItemOffset=t+-4:"colr"===o&&(i.colrOffset=t+-4),t++}return i}(e,n,o),u=a.exifItemOffset,c=a.ilocOffset,f=a.colrOffset,s=function(e,t,n,r){if(n&&t&&!(t+2>r)){var i=e.getUint16(t);for(n+=12;n+16<=r;){if(e.getUint16(n)===i){var o=e.getUint32(n+8);if(o+4<=e.byteLength)return o+(e.getUint32(o)+4)}n+=16}}}(e,u,c,o),l=function(e,t,n){if(t&&!(t+12>n)){var i=r(e,t+8,4);if("prof"===i||"rICC"===i)return[{offset:t+12,length:z(e,t)-12,chunkNumber:1,chunksTotal:1}]}}(e,f,o);return{hasAppMarkers:void 0!==s||void 0!==l,tiffHeaderOffset:s,iccChunks:l}}(e),"heic","HEIC");if(function(e){return!!e&&"RIFF"===r(e,0,4)&&"WEBP"===r(e,8,4)}(e))return W(function(e){for(var t,n,i,o,a=12,u=0;a+8<e.byteLength;){var c=r(e,a,4),f=e.getUint32(a+4,1);"EXIF"===c?(u=1,t="Exif\0\0"===r(e,a+8,6)?a+8+6:a+8):"XMP "===c?(u=1,n=[{dataOffset:a+8,length:f}]):"ICCP"===c?(u=1,i=[{offset:a+8,length:f,chunkNumber:1,chunksTotal:1}]):"VP8X"===c&&(u=1,o=a+8),a+=8+(f%2==0?f:f+1)}return{hasAppMarkers:u,tiffHeaderOffset:t,xmpChunks:n,iccChunks:i,vp8xChunkOffset:o}}(e),"webp","WebP");throw Error("Invalid image format")};function W(e,t,n){return a({},e,{fileType:{value:t,description:n}})}var H={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},X={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},Y={getAsciiValue:function(e){return e.map((function(e){return String.fromCharCode(e)}))},getByteAt:_,getAsciiAt:function(e,t){return e.getUint8(t)},getShortAt:function(e,t,n){return e.getUint16(t,n===g)},getLongAt:q,getRationalAt:function(e,t,n){return[q(e,t,n),q(e,t+4,n)]},getUndefinedAt:function(e,t){return _(e,t)},getSlongAt:J,getSrationalAt:function(e,t,n){return[J(e,t,n),J(e,t+4,n)]},getIfdPointerAt:function(e,t,n){return q(e,t,n)},typeSizes:H,tagTypes:X,getTypeSize:function(e){if(void 0===X[e])throw Error("No such type found.");return H[X[e]]}};function _(e,t){return e.getUint8(t)}function q(e,t,n){return e.getUint32(t,n===g)}function J(e,t,n){return e.getInt32(t,n===g)}var K={ApertureValue:function(e){return Math.pow(Math.sqrt(2),e[0]/e[1]).toFixed(2)},ColorSpace:function(e){return 1===e?"sRGB":65535===e?"Uncalibrated":"Unknown"},ComponentsConfiguration:function(e){return e.map((function(e){return 49===e?"Y":50===e?"Cb":51===e?"Cr":52===e?"R":53===e?"G":54===e?"B":void 0})).join("")},Contrast:function(e){return 0===e?"Normal":1===e?"Soft":2===e?"Hard":"Unknown"},CustomRendered:function(e){return 0===e?"Normal process":1===e?"Custom process":"Unknown"},ExposureMode:function(e){return 0===e?"Auto exposure":1===e?"Manual exposure":2===e?"Auto bracket":"Unknown"},ExposureProgram:function(e){return 0===e?"Undefined":1===e?"Manual":2===e?"Normal program":3===e?"Aperture priority":4===e?"Shutter priority":5===e?"Creative program":6===e?"Action program":7===e?"Portrait mode":8===e?"Landscape mode":9===e?"Bulb":"Unknown"},ExposureTime:function(e){return e[0]>=e[1]?"".concat(Math.round(e[0]/e[1])):0!==e[0]?"1/".concat(Math.round(e[1]/e[0])):"0/".concat(e[1])},FNumber:function(e){return"f/".concat(e[0]/e[1])},FocalLength:function(e){return e[0]/e[1]+" mm"},FocalPlaneResolutionUnit:function(e){return 2===e?"inches":3===e?"centimeters":"Unknown"},LightSource:function(e){return 1===e?"Daylight":2===e?"Fluorescent":3===e?"Tungsten (incandescent light)":4===e?"Flash":9===e?"Fine weather":10===e?"Cloudy weather":11===e?"Shade":12===e?"Daylight fluorescent (D 5700 – 7100K)":13===e?"Day white fluorescent (N 4600 – 5400K)":14===e?"Cool white fluorescent (W 3900 – 4500K)":15===e?"White fluorescent (WW 3200 – 3700K)":17===e?"Standard light A":18===e?"Standard light B":19===e?"Standard light C":20===e?"D55":21===e?"D65":22===e?"D75":23===e?"D50":24===e?"ISO studio tungsten":255===e?"Other light source":"Unknown"},MeteringMode:function(e){return 1===e?"Average":2===e?"CenterWeightedAverage":3===e?"Spot":4===e?"MultiSpot":5===e?"Pattern":6===e?"Partial":255===e?"Other":"Unknown"},ResolutionUnit:function(e){return 2===e?"inches":3===e?"centimeters":"Unknown"},Saturation:function(e){return 0===e?"Normal":1===e?"Low saturation":2===e?"High saturation":"Unknown"},SceneCaptureType:function(e){return 0===e?"Standard":1===e?"Landscape":2===e?"Portrait":3===e?"Night scene":"Unknown"},Sharpness:function(e){return 0===e?"Normal":1===e?"Soft":2===e?"Hard":"Unknown"},ShutterSpeedValue:function(e){var t=Math.pow(2,e[0]/e[1]);return t<=1?"".concat(Math.round(1/t)):"1/".concat(Math.round(t))},WhiteBalance:function(e){return 0===e?"Auto white balance":1===e?"Manual white balance":"Unknown"},XResolution:function(e){return""+Math.round(e[0]/e[1])},YResolution:function(e){return""+Math.round(e[0]/e[1])}},$={11:"ProcessingSoftware",254:{name:"SubfileType",description:function(e){return{0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"}[e]||"Unknown"}},255:{name:"OldSubfileType",description:function(e){return{0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"}[e]||"Unknown"}},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:function(e){return{1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"}[e]||"Unknown"}},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:function(e){return{1:"Normal",2:"Reversed"}[e]||"Unknown"}},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:function(e){return 1===e?"top-left":2===e?"top-right":3===e?"bottom-right":4===e?"bottom-left":5===e?"left-top":6===e?"right-top":7===e?"right-bottom":8===e?"left-bottom":"Undefined"}},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:K.XResolution},283:{name:"YResolution",description:K.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:function(e){return""+Math.round(e[0]/e[1])}},287:{name:"YPosition",description:function(e){return""+Math.round(e[0]/e[1])}},290:{name:"GrayResponseUnit",description:function(e){return{1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"}[e]||"Unknown"}},296:{name:"ResolutionUnit",description:K.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:function(e){return e.map((function(e){return"".concat(e[0],"/").concat(e[1])})).join(", ")}},319:{name:"PrimaryChromaticities",description:function(e){return e.map((function(e){return"".concat(e[0],"/").concat(e[1])})).join(", ")}},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:function(e){return{1:"CMYK",2:"Not CMYK"}[e]||"Unknown"}},337:"TargetPrinter",338:{name:"ExtraSamples",description:function(e){return{0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"}[e]||"Unknown"}},339:{name:"SampleFormat",description:function(e){var t={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(e)?e.map((function(e){return t[e]||"Unknown"})).join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:function(e){return e.map((function(e){return""+e[0]/e[1]})).join("/")}},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:function(e){return 1===e?"centered":2===e?"co-sited":"undefined "+e}},532:{name:"ReferenceBlackWhite",description:function(e){return e.map((function(e){return""+e[0]/e[1]})).join(", ")}},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:function(e){return e.join("; ")}},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",42112:"GDALMetadata",42113:"GDALNoData",50341:"PrintIM",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50739:"ShadowScale",50741:{name:"MakerNoteSafety",description:function(e){return{0:"Unsafe",1:"Safe"}[e]||"Unknown"}},50778:{name:"CalibrationIlluminant1",description:K.LightSource},50779:{name:"CalibrationIlluminant2",description:K.LightSource},50781:"RawDataUniqueID",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50885:"SRawType",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:{name:"ProfileEmbedPolicy",description:function(e){return{0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"}[e]||"Unknown"}},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:function(e){return{1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"}[e]||"Unknown"}},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:function(e){return{0:"Linear",1:"sRGB"}[e]||"Unknown"}},51108:{name:"ProfileLookTableEncoding",description:function(e){return{0:"Linear",1:"sRGB"}[e]||"Unknown"}},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:function(e){return{0:"Auto",1:"None"}[e]||"Unknown"}},51111:"NewRawImageDigest",51112:"RawToPreviewGain"};function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ee,te={0:{name:"GPSVersionID",description:function(e){return 2===e[0]&&2===e[1]&&0===e[2]&&0===e[3]?"Version 2.2":"Unknown"}},1:{name:"GPSLatitudeRef",description:function(e){var t=e.join("");return"N"===t?"North latitude":"S"===t?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:p},3:{name:"GPSLongitudeRef",description:function(e){var t=e.join("");return"E"===t?"East longitude":"W"===t?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:p},5:{name:"GPSAltitudeRef",description:function(e){return 0===e?"Sea level":1===e?"Sea level reference (negative value)":"Unknown"}},6:{name:"GPSAltitude",description:function(e){return e[0]/e[1]+" m"}},7:{name:"GPSTimeStamp",description:function(e){return e.map((function(e){var t,n=(2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=1,u=0;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),2!==o.length);a=1);}catch(e){u=1,i=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}}(t)||function(e,t){if(e){if("string"==typeof e)return Z(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=n[0]/n[1];return/^\d(\.|$)/.test("".concat(r))?"0".concat(r):r})).join(":")}},8:"GPSSatellites",9:{name:"GPSStatus",description:function(e){var t=e.join("");return"A"===t?"Measurement in progress":"V"===t?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:function(e){var t=e.join("");return"2"===t?"2-dimensional measurement":"3"===t?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:function(e){var t=e.join("");return"K"===t?"Kilometers per hour":"M"===t?"Miles per hour":"N"===t?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:function(e){var t=e.join("");return"T"===t?"True direction":"M"===t?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:function(e){var t=e.join("");return"T"===t?"True direction":"M"===t?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:function(e){var t=e.join("");return"N"===t?"North latitude":"S"===t?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:function(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}},21:{name:"GPSDestLongitudeRef",description:function(e){var t=e.join("");return"E"===t?"East longitude":"W"===t?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:function(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}},23:{name:"GPSDestBearingRef",description:function(e){var t=e.join("");return"T"===t?"True direction":"M"===t?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:function(e){var t=e.join("");return"K"===t?"Kilometers":"M"===t?"Miles":"N"===t?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:d},28:{name:"GPSAreaInformation",description:d},29:"GPSDateStamp",30:{name:"GPSDifferential",description:function(e){return 0===e?"Measurement without differential correction":1===e?"Differential correction applied":"Unknown"}},31:"GPSHPositioningError"},ne={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:function(e){return l(e)}},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},re={45056:{name:"MPFVersion",description:function(e){return l(e)}},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"};function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:1,configurable:1,writable:1}):e[t]=n,e}var oe=a({},$,{33434:{name:"ExposureTime",description:K.ExposureTime},33437:{name:"FNumber",description:K.FNumber},34850:{name:"ExposureProgram",description:K.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:function(){return"[Raw OECF table data]"}},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:function(e){return{1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"}[e]||"Unknown"}},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:function(e){return l(e)}},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:K.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:K.ShutterSpeedValue},37378:{name:"ApertureValue",description:K.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:function(e){return Math.pow(Math.sqrt(2),e[0]/e[1]).toFixed(2)}},37382:{name:"SubjectDistance",description:function(e){return e[0]/e[1]+" m"}},37383:{name:"MeteringMode",description:K.MeteringMode},37384:{name:"LightSource",description:K.LightSource},37385:{name:"Flash",description:function(e){return 0===e?"Flash did not fire":1===e?"Flash fired":5===e?"Strobe return light not detected":7===e?"Strobe return light detected":9===e?"Flash fired, compulsory flash mode":13===e?"Flash fired, compulsory flash mode, return light not detected":15===e?"Flash fired, compulsory flash mode, return light detected":16===e?"Flash did not fire, compulsory flash mode":24===e?"Flash did not fire, auto mode":25===e?"Flash fired, auto mode":29===e?"Flash fired, auto mode, return light not detected":31===e?"Flash fired, auto mode, return light detected":32===e?"No flash function":65===e?"Flash fired, red-eye reduction mode":69===e?"Flash fired, red-eye reduction mode, return light not detected":71===e?"Flash fired, red-eye reduction mode, return light detected":73===e?"Flash fired, compulsory flash mode, red-eye reduction mode":77===e?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":79===e?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":89===e?"Flash fired, auto mode, red-eye reduction mode":93===e?"Flash fired, auto mode, return light not detected, red-eye reduction mode":95===e?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"}},37386:{name:"FocalLength",description:K.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:function(e){return{C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"}[e]||"Unknown"}},37395:"ImageHistory",37396:{name:"SubjectArea",description:function(e){return 2===e.length?"Location; X: ".concat(e[0],", Y: ").concat(e[1]):3===e.length?"Circle; X: ".concat(e[0],", Y: ").concat(e[1],", diameter: ").concat(e[2]):4===e.length?"Rectangle; X: ".concat(e[0],", Y: ").concat(e[1],", width: ").concat(e[2],", height: ").concat(e[3]):"Unknown"}},37500:{name:"MakerNote",description:function(){return"[Raw maker note data]"}},37510:{name:"UserComment",description:d},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37888:{name:"AmbientTemperature",description:function(e){return e[0]/e[1]+" °C"}},37889:{name:"Humidity",description:function(e){return e[0]/e[1]+" %"}},37890:{name:"Pressure",description:function(e){return e[0]/e[1]+" hPa"}},37891:{name:"WaterDepth",description:function(e){return e[0]/e[1]+" m"}},37892:{name:"Acceleration",description:function(e){return e[0]/e[1]+" mGal"}},37893:{name:"CameraElevationAngle",description:function(e){return e[0]/e[1]+" °"}},40960:{name:"FlashpixVersion",description:function(e){return e.map((function(e){return String.fromCharCode(e)})).join("")}},40961:{name:"ColorSpace",description:K.ColorSpace},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:function(){return"[Raw SFR table data]"}},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:K.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:function(e){var t,n=(2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=1,u=0;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),2!==o.length);a=1);}catch(e){u=1,i=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}}(t)||function(e,t){if(e){if("string"==typeof e)return Q(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=n[0],i=n[1];return"X: ".concat(r,", Y: ").concat(i)}},41493:"ExposureIndex",41495:{name:"SensingMethod",description:function(e){return 1===e?"Undefined":2===e?"One-chip color area sensor":3===e?"Two-chip color area sensor":4===e?"Three-chip color area sensor":5===e?"Color sequential area sensor":7===e?"Trilinear sensor":8===e?"Color sequential linear sensor":"Unknown"}},41728:{name:"FileSource",description:function(e){return 3===e?"DSC":"Unknown"}},41729:{name:"SceneType",description:function(e){return 1===e?"A directly photographed image":"Unknown"}},41730:{name:"CFAPattern",description:function(){return"[Raw CFA pattern table data]"}},41985:{name:"CustomRendered",description:K.CustomRendered},41986:{name:"ExposureMode",description:K.ExposureMode},41987:{name:"WhiteBalance",description:K.WhiteBalance},41988:{name:"DigitalZoomRatio",description:function(e){return 0===e[0]?"Digital zoom was not used":""+e[0]/e[1]}},41989:{name:"FocalLengthIn35mmFilm",description:function(e){return 0===e?"Unknown":e}},41990:{name:"SceneCaptureType",description:K.SceneCaptureType},41991:{name:"GainControl",description:function(e){return 0===e?"None":1===e?"Low gain up":2===e?"High gain up":3===e?"Low gain down":4===e?"High gain down":"Unknown"}},41992:{name:"Contrast",description:K.Contrast},41993:{name:"Saturation",description:K.Saturation},41994:{name:"Sharpness",description:K.Sharpness},41995:{name:"DeviceSettingDescription",description:function(){return"[Raw device settings table data]"}},41996:{name:"SubjectDistanceRange",description:function(e){return 1===e?"Macro":2===e?"Close view":3===e?"Distant view":"Unknown"}},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:function(e){var t="".concat(e[0][0]/e[0][1],"-").concat(e[1][0]/e[1][1]," mm");return 0===e[3][1]?"".concat(t," f/?"):"".concat(t," f/").concat(1/(e[2][1]/e[2][1]/(e[3][0]/e[3][1])))}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:function(e){return{1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"}[e]||"Unknown"}},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"}),ae="0th",ue="exif",ce="interoperability",fe=(ie(ee={},ae,oe),ie(ee,"1st",$),ie(ee,ue,oe),ie(ee,"gps",te),ie(ee,ce,ne),ie(ee,"mpf",re),ee),se={1:Y.getByteAt,2:Y.getAsciiAt,3:Y.getShortAt,4:Y.getLongAt,5:Y.getRationalAt,7:Y.getUndefinedAt,9:Y.getSlongAt,10:Y.getSrationalAt,13:Y.getIfdPointerAt},le=function(e,t,n){var r=v(e,t),i=function(e,t,n,r){return Se(e,ae,t,pe(e,t,n),n,r)}(e,t,r,n);return function(e,t,n,r,i){return void 0!==e["Interoperability IFD Pointer"]?a(e,Se(t,ce,n,n+e["Interoperability IFD Pointer"].value,r,i)):e}(i=function(e,t,n,r,i){return void 0!==e["GPS Info IFD Pointer"]?a(e,Se(t,"gps",n,n+e["GPS Info IFD Pointer"].value,r,i)):e}(i=function(e,t,n,r,i){return void 0!==e["Exif IFD Pointer"]?a(e,Se(t,ue,n,n+e["Exif IFD Pointer"].value,r,i)):e}(i,e,t,r,n),e,t,r,n),e,t,r,n)},de=function(e,t,n){var r=v(e,t);return function(e,t,n,r){var i=16;if(!n.MPEntry)return n;for(var o=[],a=0;a<Math.ceil(n.MPEntry.value.length/i);a++){o[a]={};var f=me(n.MPEntry.value,a*i,Y.getTypeSize("LONG"),r);o[a].ImageFlags=ge(f),o[a].ImageFormat=ve(f),o[a].ImageType=he(f);var s=me(n.MPEntry.value,a*i+4,Y.getTypeSize("LONG"),r);o[a].ImageSize={value:s,description:""+s};var l=ye(a)?0:me(n.MPEntry.value,a*i+8,Y.getTypeSize("LONG"),r)+t;o[a].ImageOffset={value:l,description:""+l};var d=me(n.MPEntry.value,a*i+12,Y.getTypeSize("SHORT"),r);o[a].DependentImage1EntryNumber={value:d,description:""+d};var p=me(n.MPEntry.value,a*i+14,Y.getTypeSize("SHORT"),r);o[a].DependentImage2EntryNumber={value:p,description:""+p},o[a].image=e.buffer.slice(l,l+s),u(o[a],"base64",(function(){return c(this.image)}))}return n.Images=o,n}(e,t,Se(e,"mpf",t,pe(e,t,r),r,n),r)};function pe(e,t,n){return t+Y.getLongAt(e,t+4,n)}function me(e,t,n,r){if(r===g){for(var i=0,o=0;o<n;o++)i+=e[t+o]<<8*o;return i}for(var a=0,u=0;u<n;u++)a+=e[t+u]<<8*(n-1-u);return a}function ge(e){var t=[e>>31&1,e>>30&1,e>>29&1],n=[];return t[0]&&n.push("Dependent Parent Image"),t[1]&&n.push("Dependent Child Image"),t[2]&&n.push("Representative Image"),{value:t,description:n.join(", ")||"None"}}function ve(e){var t=e>>24&7;return{value:t,description:0===t?"JPEG":"Unknown"}}function he(e){var t=16777215&e;return{value:t,description:{196608:"Baseline MP Primary Image",65537:"Large Thumbnail (VGA equivalent)",65538:"Large Thumbnail (Full HD equivalent)",131073:"Multi-Frame Image (Panorama)",131074:"Multi-Frame Image (Disparity)",131075:"Multi-Frame Image (Multi-Angle)",0:"Undefined"}[t]||"Unknown"}}function ye(e){return 0===e}function Se(e,t,n,r,i,o){var a=Y.getTypeSize("SHORT"),u={},c=function(e,t,n){return t+Y.getTypeSize("SHORT")<=e.byteLength?Y.getShortAt(e,t,n):0}(e,r,i);r+=a;for(var f=0;f<c&&!(r+12>e.byteLength);f++){var s=be(e,t,n,r,i,o);void 0!==s&&(u[s.name]={id:s.id,value:s.value,description:s.description}),r+=12}if(r<e.byteLength-Y.getTypeSize("LONG")){var l=Y.getLongAt(e,r,i);0!==l&&t===ae&&(u.Thumbnail=Se(e,"1st",n,n+l,i,1))}return u}function be(e,t,n,r,i,o){var a,u=Y.getTypeSize("SHORT"),c=u+Y.getTypeSize("SHORT"),f=c+Y.getTypeSize("LONG"),s=Y.getShortAt(e,r,i),l=Y.getShortAt(e,r+u,i),d=Y.getLongAt(e,r+c,i);if(void 0!==Y.typeSizes[l]&&(o||void 0!==fe[t][s])){if(function(e,t){return Y.typeSizes[e]*t<=Y.getTypeSize("LONG")}(l,d))a=Ce(e,r+f,l,d,i);else{var p=Y.getLongAt(e,r+f,i);a=function(e,t,n,r,i){return t+n+Y.typeSizes[r]*i<=e.byteLength}(e,n,p,l,d)?Ce(e,n+p,l,d,i,33723===s):"<faulty value>"}l===Y.tagTypes.ASCII&&(a=function(e){try{return e.map((function(e){return decodeURIComponent(escape(e))}))}catch(t){return e}}(a=function(e){for(var t=[],n=0,r=0;r<e.length;r++)"\0"!==e[r]?(void 0===t[n]&&(t[n]=""),t[n]+=e[r]):n++;return t}(a)));var m="undefined-".concat(s),g=a;if(void 0!==fe[t][s])if(void 0!==fe[t][s].name&&void 0!==fe[t][s].description){m=fe[t][s].name;try{g=fe[t][s].description(a)}catch(e){g=Ae(a)}}else l===Y.tagTypes.RATIONAL||l===Y.tagTypes.SRATIONAL?(m=fe[t][s],g=""+a[0]/a[1]):(m=fe[t][s],g=Ae(a));return{id:s,name:m,value:a,description:g}}}function Ce(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=[];o&&(r*=Y.typeSizes[n],n=Y.tagTypes.BYTE);for(var u=0;u<r;u++)a.push(se[n](e,t,i)),t+=Y.typeSizes[n];return n===Y.tagTypes.ASCII?a=Y.getAsciiValue(a):1===a.length&&(a=a[0]),a}function Ae(e){return e instanceof Array?e.join(", "):e}var Ie=function(e,t){var n=function(e,t){return Y.getShortAt(e,t)}(e,t),r=function(e,t,n){if(!(8>n)){var r=Y.getByteAt(e,t+7);return{value:r,description:""+r}}}(e,t,n);return{"Bits Per Sample":Pe(e,t,n),"Image Height":Ue(e,t,n),"Image Width":we(e,t,n),"Color Components":r,Subsampling:r&&Te(e,t,r.value,n)}};function Pe(e,t,n){if(!(3>n)){var r=Y.getByteAt(e,t+2);return{value:r,description:""+r}}}function Ue(e,t,n){if(!(5>n)){var r=Y.getShortAt(e,t+3);return{value:r,description:"".concat(r,"px")}}}function we(e,t,n){if(!(7>n)){var r=Y.getShortAt(e,t+5);return{value:r,description:"".concat(r,"px")}}}function Te(e,t,n,r){if(!(8+3*n>r)){for(var i=[],o=0;o<n;o++){var a=t+8+3*o;i.push([Y.getByteAt(e,a),Y.getByteAt(e,a+1),Y.getByteAt(e,a+2)])}return{value:i,description:i.length>1?De(i)+xe(i):""}}}function De(e){var t={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return e.map((function(e){return t[e[0]]})).join("")}function xe(e){var t={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return 0===e.length||void 0===e[0][1]||void 0===t[e[0][1]]?"":t[e[0][1]]}var Oe=function(e,t){var n=function(e,t){return Y.getShortAt(e,t)}(e,t),r=function(e,t,n){if(!(15>n)){var r=Y.getByteAt(e,t+14);return{value:r,description:"".concat(r,"px")}}}(e,t,n),i=function(e,t,n){if(!(16>n)){var r=Y.getByteAt(e,t+15);return{value:r,description:"".concat(r,"px")}}}(e,t,n),o={"JFIF Version":Me(e,t,n),"Resolution Unit":Fe(e,t,n),XResolution:ke(e,t,n),YResolution:Ee(e,t,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":i};if(void 0!==r&&void 0!==i){var a=function(e,t,n,r){if(!(0===n||16+n>r))return{value:e.buffer.slice(t+16,t+16+n),description:"<24-bit RGB pixel data>"}}(e,t,3*r.value*i.value,n);a&&(o["JFIF Thumbnail"]=a)}for(var u in o)void 0===o[u]&&delete o[u];return o};function Me(e,t,n){if(!(9>n)){var r=Y.getByteAt(e,t+7),i=Y.getByteAt(e,t+7+1);return{value:256*r+i,description:r+"."+i}}}function Fe(e,t,n){if(!(10>n)){var r=Y.getByteAt(e,t+9);return{value:r,description:Re(r)}}}function Re(e){return 0===e?"None":1===e?"inches":2===e?"cm":"Unknown"}function ke(e,t,n){if(!(12>n)){var r=Y.getShortAt(e,t+10);return{value:r,description:""+r}}}function Ee(e,t,n){if(!(14>n)){var r=Y.getShortAt(e,t+12);return{value:r,description:""+r}}}var Le={iptc:{256:{name:"Model Version",description:function(e){return""+((e[0]<<8)+e[1])}},261:{name:"Destination",repeatable:1},276:{name:"File Format",description:function(e){return""+((e[0]<<8)+e[1])}},278:{name:"File Format Version",description:function(e){return""+((e[0]<<8)+e[1])}},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:Ne},336:{name:"Time Sent",description:Ge},346:{name:"Coded Character Set",description:Be,encoding_name:Be},356:"UNO",376:{name:"ARM Identifier",description:function(e){return""+((e[0]<<8)+e[1])}},378:{name:"ARM Version",description:function(e){return""+((e[0]<<8)+e[1])}},512:{name:"Record Version",description:function(e){return""+((e[0]<<8)+e[1])}},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:function(e){return"01"===l(e)?"Additional Language":"Unknown"}},522:"Urgency",524:{name:"Subject Reference",repeatable:1,description:function(e){var t=l(e).split(":");return t[2]+(t[3]?"/"+t[3]:"")+(t[4]?"/"+t[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:1},534:"Fixture Identifier",537:{name:"Keywords",repeatable:1},538:{name:"Content Location Code",repeatable:1},539:{name:"Content Location Name",repeatable:1},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:function(e){var t=l(e);return"01"===t?"Object Kill":"02"===t?"Object Replace":"03"===t?"Object Append":"04"===t?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:1},559:{name:"Reference Date",repeatable:1},562:{name:"Reference Number",repeatable:1},567:{name:"Date Created",description:Ne},572:{name:"Time Created",description:Ge},574:{name:"Digital Creation Date",description:Ne},575:{name:"Digital Creation Time",description:Ge},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:function(e){var t=l(e);return"a"===t?"morning":"p"===t?"evening":"b"===t?"both":"Unknown"}},592:{name:"By-line",repeatable:1},597:{name:"By-line Title",repeatable:1},602:"City",604:"Sub-location",607:"Province/State",612:"Country/Primary Location Code",613:"Country/Primary Location Name",615:"Original Transmission Reference",617:"Headline",622:"Credit",627:"Source",628:"Copyright Notice",630:{name:"Contact",repeatable:1},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:1},637:{name:"Rasterized Caption",description:function(e){return e}},642:"Image Type",643:{name:"Image Orientation",description:function(e){var t=l(e);return"P"===t?"Portrait":"L"===t?"Landscape":"S"===t?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:function(e){var t=l(e),n=t.charAt(0),r=t.charAt(1),i="";return"1"===n?i+="Mono":"2"===n&&(i+="Stereo"),"A"===r?i+=", actuality":"C"===r?i+=", question and answer session":"M"===r?i+=", music, transmitted by itself":"Q"===r?i+=", response to a question":"R"===r?i+=", raw sound":"S"===r?i+=", scener":"V"===r?i+=", voicer":"W"===r&&(i+=", wrap"),""!==i?i:t}},663:{name:"Audio Sampling Rate",description:function(e){return parseInt(l(e),10)+" Hz"}},664:{name:"Audio Sampling Resolution",description:function(e){var t=parseInt(l(e),10);return t+(1===t?" bit":" bits")}},665:{name:"Audio Duration",description:function(e){var t=l(e);return t.length>=6?t.substr(0,2)+":"+t.substr(2,2)+":"+t.substr(4,2):t}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:function(e){return 2===e.length?"ObjectData Preview File Format":"Record 2 destination"},description:function(e){if(2===e.length){var t=(e[0]<<8)+e[1];return 0===t?"No ObjectData":1===t?"IPTC-NAA Digital Newsphoto Parameter Record":2===t?"IPTC7901 Recommended Message Format":3===t?"Tagged Image File Format (Adobe/Aldus Image data)":4===t?"Illustrator (Adobe Graphics data)":5===t?"AppleSingle (Apple Computer Inc)":6===t?"NAA 89-3 (ANPA 1312)":7===t?"MacBinary II":8===t?"IPTC Unstructured Character Oriented File Format (UCOFF)":9===t?"United Press International ANPA 1312 variant":10===t?"United Press International Down-Load Message":11===t?"JPEG File Interchange (JFIF)":12===t?"Photo-CD Image-Pac (Eastman Kodak)":13===t?"Microsoft Bit Mapped Graphics File [*.BMP]":14===t?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":15===t?"Audio plus Moving Video [*.AVI] (Microsoft)":16===t?"PC DOS/Windows Executable Files [*.COM][*.EXE]":17===t?"Compressed Binary File [*.ZIP] (PKWare Inc)":18===t?"Audio Interchange File Format AIFF (Apple Computer Inc)":19===t?"RIFF Wave (Microsoft Corporation)":20===t?"Freehand (Macromedia/Aldus)":21===t?'Hypertext Markup Language "HTML" (The Internet Society)':22===t?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":23===t?"MPEG 2 Audio Layer 3, ISO/IEC":24===t?"Portable Document File (*.PDF) Adobe":25===t?"News Industry Text Format (NITF)":26===t?"Tape Archive (*.TAR)":27===t?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":28===t?"Ritzaus Bureau NITF version (RBNITF DTD)":29===t?"Corel Draw [*.CDR]":"Unknown format ".concat(t)}return l(e)}},713:{name:"ObjectData Preview File Format Version",description:function(e,t){var n={"00":{"00":"1"},"01":{"01":"1","02":"2","03":"3","04":"4"},"02":{"04":"4"},"03":{"01":"5.0","02":"6.0"},"04":{"01":"1.40"},"05":{"01":"2"},"06":{"01":"1"},11:{"01":"1.02"},20:{"01":"3.1","02":"4.0","03":"5.0","04":"5.5"},21:{"02":"2.0"}},r=l(e);if(t["ObjectData Preview File Format"]){var i=l(t["ObjectData Preview File Format"].value);if(n[i]&&n[i][r])return n[i][r]}return r}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:function(e){return e[0].toString()}},1812:{name:"Max Subfile Size",description:function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<8)+e[n];return t.toString()}},1882:{name:"ObjectData Size Announced",description:function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<8)+e[n];return t.toString()}},1887:{name:"Maximum ObjectData Size",description:function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<8)+e[n];return t.toString()}}}};function Ne(e){var t=l(e);return t.length>=8?t.substr(0,4)+"-"+t.substr(4,2)+"-"+t.substr(6,2):t}function Ge(e){var t=l(e),n=t;return t.length>=6&&(n=t.substr(0,2)+":"+t.substr(2,2)+":"+t.substr(4,2),11===t.length&&(n+=t.substr(6,1)+t.substr(7,2)+":"+t.substr(9,2))),n}function Be(e){var t=l(e);return"%G"===t?"UTF-8":"%5"===t?"Windows-1252":"%/G"===t?"UTF-8 Level 1":"%/H"===t?"UTF-8 Level 2":"%/I"===t?"UTF-8 Level 3":"/A"===t?"ISO-8859-1":"/B"===t?"ISO-8859-2":"/C"===t?"ISO-8859-3":"/D"===t?"ISO-8859-4":"/@"===t?"ISO-8859-5":"/G"===t?"ISO-8859-6":"/F"===t?"ISO-8859-7":"/H"===t?"ISO-8859-8":"Unknown"}var je=function(e,t){var n=function(){if("undefined"!=typeof TextDecoder)return TextDecoder}();if("undefined"!=typeof n&&void 0!==e)try{return new n(e).decode(Uint8Array.from(t))}catch(e){}return function(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}(t.map((function(e){return String.fromCharCode(e)})).join(""))},ze=function(e,t,n){try{if(Array.isArray(e))return Xe(new DataView(Uint8Array.from(e).buffer),{size:e.length},0,n);var r=function(e,t){for(;t+12<=e.byteLength;){var n=Ve(e,t);if(We(n))return{naaBlock:n,dataOffset:t+12};t+=12+n.size+He(n)}throw Error("No IPTC NAA resource block.")}(e,t);return Xe(e,r.naaBlock,r.dataOffset,n)}catch(e){return{}}};function Ve(e,t){if(943868237!==e.getUint32(t,0))throw Error("Not an IPTC resource block.");return{type:e.getUint16(t+4),size:e.getUint16(t+10)}}function We(e){return 1028===e.type}function He(e){return e.size%2!=0?1:0}function Xe(e,t,n,r){for(var i={},o=void 0,a=n+t.size;n<a&&n<e.byteLength;){var u=Ye(e,n,i,o,r),c=u.tag,f=u.tagSize;if(null===c)break;c&&("encoding"in c&&(o=c.encoding),void 0===i[c.name]||void 0===c.repeatable?i[c.name]={id:c.id,value:c.value,description:c.description}:(i[c.name]instanceof Array||(i[c.name]=[{id:i[c.name].id,value:i[c.name].value,description:i[c.name].description}]),i[c.name].push({id:c.id,value:c.value,description:c.description}))),n+=5+f}return i}function Ye(e,t,n,r,i){if(function(e,t){return 28!==e.getUint8(t)}(e,t))return{tag:null,tagSize:0};var o=e.getUint16(t+1),a=e.getUint16(t+3);if(!i&&!Le.iptc[o])return{tag:void 0,tagSize:a};var u=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(e.getUint8(t+i));return r}(e,t+5,a),c={id:o,name:_e(Le.iptc[o],o,u),value:u,description:qe(Le.iptc[o],u,n,r)};return function(e){return Le.iptc[e]&&Le.iptc[e].repeatable}(o)&&(c.repeatable=1),function(e){return Le.iptc[e]&&void 0!==Le.iptc[e].encoding_name}(o)&&(c.encoding=Le.iptc[o].encoding_name(u)),{tag:c,tagSize:a}}function _e(e,t,n){return e?function(e){return"string"==typeof e}(e)?e:function(e){return"function"==typeof e.name}(e)?e.name(n):e.name:"undefined-".concat(t)}function qe(e,t,n,r){if(function(e){return e&&void 0!==e.description}(e))try{return e.description(t,n)}catch(e){}return function(e,t){return e&&t instanceof Array}(e,t)?je(r,t):t}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ke={"tiff:Orientation":function(e){return"1"===e?"Horizontal (normal)":"2"===e?"Mirror horizontal":"3"===e?"Rotate 180":"4"===e?"Mirror vertical":"5"===e?"Mirror horizontal and rotate 270 CW":"6"===e?"Rotate 90 CW":"7"===e?"Mirror horizontal and rotate 90 CW":"8"===e?"Rotate 270 CW":e},"tiff:ResolutionUnit":function(e){return K.ResolutionUnit(parseInt(e,10))},"tiff:XResolution":function(e){return $e(K.XResolution,e)},"tiff:YResolution":function(e){return $e(K.YResolution,e)},"exif:ApertureValue":function(e){return $e(K.ApertureValue,e)},"exif:GPSLatitude":Ze,"exif:GPSLongitude":Ze,"exif:FNumber":function(e){return $e(K.FNumber,e)},"exif:FocalLength":function(e){return $e(K.FocalLength,e)},"exif:FocalPlaneResolutionUnit":function(e){return K.FocalPlaneResolutionUnit(parseInt(e,10))},"exif:ColorSpace":function(e){return K.ColorSpace(function(e){return"0x"===e.substring(0,2)?parseInt(e.substring(2),16):parseInt(e,10)}(e))},"exif:ComponentsConfiguration":function(e,t){if(/^\d, \d, \d, \d$/.test(t)){var n=t.split(", ").map((function(e){return e.charCodeAt(0)}));return K.ComponentsConfiguration(n)}return t},"exif:Contrast":function(e){return K.Contrast(parseInt(e,10))},"exif:CustomRendered":function(e){return K.CustomRendered(parseInt(e,10))},"exif:ExposureMode":function(e){return K.ExposureMode(parseInt(e,10))},"exif:ExposureProgram":function(e){return K.ExposureProgram(parseInt(e,10))},"exif:ExposureTime":function(e){return Qe(e)?K.ExposureTime(e.split("/").map((function(e){return parseInt(e,10)}))):e},"exif:MeteringMode":function(e){return K.MeteringMode(parseInt(e,10))},"exif:Saturation":function(e){return K.Saturation(parseInt(e,10))},"exif:SceneCaptureType":function(e){return K.SceneCaptureType(parseInt(e,10))},"exif:Sharpness":function(e){return K.Sharpness(parseInt(e,10))},"exif:ShutterSpeedValue":function(e){return $e(K.ShutterSpeedValue,e)},"exif:WhiteBalance":function(e){return K.WhiteBalance(parseInt(e,10))}};function $e(e,t){return Qe(t)?e(t.split("/")):t}function Qe(e){return/^-?\d+\/-?\d+$/.test(e)}function Ze(e){var t,n=(2,function(e){if(Array.isArray(e))return e}(t=e.split(","))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=1,u=0;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),2!==o.length);a=1);}catch(e){u=1,i=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}}(t)||function(e,t){if(e){if("string"==typeof e)return Je(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Je(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=n[0],i=n[1];if(void 0!==r&&void 0!==i){var o=parseFloat(r),a=parseFloat(i),u=i.charAt(i.length-1);if(!Number.isNaN(o)&&!Number.isNaN(a))return""+(o+a/60)+u}return e}function et(e){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},et(e)}function tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var nt=function(e,t){var n={};if("string"==typeof e)return it(n,e),n;var r,i=(r=function(e,t){if(0===t.length)return[];var n=[rt(e,t.slice(0,1))];return t.length>1&&n.push(rt(e,t.slice(1))),n}(e,t),2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=1,u=0;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),2!==o.length);a=1);}catch(e){u=1,i=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}}(r)||function(e,t){if(e){if("string"==typeof e)return tt(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tt(e,2):void 0}}(r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],a=i[1],u=it(n,o);if(a){var c=it(n,a);u||c||(delete n._raw,it(n,rt(e,t)))}return n};function rt(e,t){for(var n=t.reduce((function(e,t){return e+t.length}),0),r=new Uint8Array(n),i=0,o=0;o<t.length;o++){var a=t[o],u=e.buffer.slice(a.dataOffset,a.dataOffset+a.length);r.set(new Uint8Array(u),i),i+=a.length}return new DataView(r.buffer)}function it(e,t){try{var n=function(e){var t=function(){if("undefined"!=typeof DOMParser)return new DOMParser;try{return new(require("@xmldom/xmldom").DOMParser)({errorHandler:{error:function(){throw Error("Faulty XML")}}})}catch(e){return}}();if(!t)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),Error();var n="string"==typeof e?e:r(e,0,e.byteLength),i=t.parseFromString(n.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1"),"application/xml");if("parsererror"===i.documentElement.nodeName)throw Error(i.documentElement.textContent);return{doc:i,raw:n}}(t),i=n.doc,o=n.raw;return e._raw=(e._raw||"")+o,a(e,dt(at(ot(i),1))),1}catch(e){return 0}}function ot(e){for(var t=0;t<e.childNodes.length;t++){if("x:xmpmeta"===e.childNodes[t].tagName)return ot(e.childNodes[t]);if("rdf:RDF"===e.childNodes[t].tagName)return e.childNodes[t]}throw Error()}function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=ut(e);return ct(n)?t?{}:ft(n[0]):st(n)}function ut(e){for(var t=[],n=0;n<e.childNodes.length;n++)t.push(e.childNodes[n]);return t}function ct(e){return 1===e.length&&"#text"===e[0].nodeName}function ft(e){return e.nodeValue}function st(e){var t={};return e.forEach((function(e){if(function(e){return e.nodeName&&"#text"!==e.nodeName}(e)){var n=function(e){return{attributes:lt(e),value:at(e)}}(e);void 0!==t[e.nodeName]?(Array.isArray(t[e.nodeName])||(t[e.nodeName]=[t[e.nodeName]]),t[e.nodeName].push(n)):t[e.nodeName]=n}})),t}function lt(e){for(var t={},n=0;n<e.attributes.length;n++)t[e.attributes[n].nodeName]=decodeURIComponent(escape(e.attributes[n].value));return t}function dt(e){var t={};if("string"==typeof e)return e;for(var n in e){var r=e[n];Array.isArray(r)||(r=[r]),r.forEach((function(e){a(t,pt(e.attributes)),"object"===et(e.value)&&a(t,Ct(e.value))}))}return t}function pt(e){var t={};for(var n in e)mt(n)&&(t[vt(n)]={value:e[n],attributes:{},description:ht(e[n],n)});return t}function mt(e){return"rdf:parseType"!==e&&!gt(e)}function gt(e){return"xmlns"===e.split(":")[0]}function vt(e){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(e)?"RatingPercent":e.split(":")[1]}function ht(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(Array.isArray(e)){var n=yt(e);return t&&"function"==typeof Ke[t]?Ke[t](e,n):n}if("object"===et(e))return St(e);try{return t&&"function"==typeof Ke[t]?Ke[t](e):decodeURIComponent(escape(e))}catch(t){return e}}function yt(e){return e.map((function(e){return void 0!==e.value?ht(e.value):ht(e)})).join(", ")}function St(e){var t=[];for(var n in e)t.push("".concat(bt(n),": ").concat(ht(e[n].value)));return t.join("; ")}function bt(e){return"CiAdrCity"===e?"CreatorCity":"CiAdrCtry"===e?"CreatorCountry":"CiAdrExtadr"===e?"CreatorAddress":"CiAdrPcode"===e?"CreatorPostalCode":"CiAdrRegion"===e?"CreatorRegion":"CiEmailWork"===e?"CreatorWorkEmail":"CiTelWork"===e?"CreatorWorkPhone":"CiUrlWork"===e?"CreatorWorkUrl":e}function Ct(e){var t={};for(var n in e)gt(n)||(t[vt(n)]=At(e[n],n));return t}function At(e,t){return It(e)?Pt(e,t):wt(e)?Tt(e,t):Dt(e)?xt(e,t):function(e){return void 0!==Ot(e.value)}(e)?function(e,t){var n=Ot(e.value).value["rdf:li"],r=Ut(e),i=[];return void 0===n?n=[]:Array.isArray(n)||(n=[n]),n.forEach((function(e){i.push(function(e){return It(e)?Pt(e):wt(e)?Tt(e).value:Dt(e)?xt(e).value:Mt(e)}(e))})),{value:i,attributes:r,description:ht(i,t)}}(e,t):Mt(e,t)}function It(e){return"Resource"===e.attributes["rdf:parseType"]&&void 0!==e.value["rdf:value"]||void 0!==e.value["rdf:Description"]&&void 0!==e.value["rdf:Description"].value["rdf:value"]}function Pt(e,t){var n=Ut(e);void 0!==e.value["rdf:Description"]&&(e=e.value["rdf:Description"]),a(n,Ut(e),function(e){var t={};for(var n in e.value)"rdf:value"===n||gt(n)||(t[vt(n)]=e.value[n].value);return t}(e));var r=function(e){return Ft(e.value["rdf:value"])||e.value["rdf:value"].value}(e);return{value:r,attributes:n,description:ht(r,t)}}function Ut(e){var t={};for(var n in e.attributes)"rdf:parseType"===n||"rdf:resource"===n||gt(n)||(t[vt(n)]=e.attributes[n]);return t}function wt(e){return"Resource"===e.attributes["rdf:parseType"]||void 0!==e.value["rdf:Description"]&&void 0===e.value["rdf:Description"].value["rdf:value"]}function Tt(e,t){var n={value:{},attributes:{}};return void 0!==e.value["rdf:Description"]&&(a(n.value,pt(e.value["rdf:Description"].attributes)),a(n.attributes,Ut(e)),e=e.value["rdf:Description"]),a(n.value,Ct(e.value)),n.description=ht(n.value,t),n}function Dt(e){return 0===Object.keys(e.value).length&&void 0===e.attributes["xml:lang"]&&void 0===e.attributes["rdf:resource"]}function xt(e,t){var n=pt(e.attributes);return{value:n,attributes:{},description:ht(n,t)}}function Ot(e){return e["rdf:Bag"]||e["rdf:Seq"]||e["rdf:Alt"]}function Mt(e,t){var n=Ft(e)||dt(e.value);return{value:n,attributes:Ut(e),description:ht(n,t)}}function Ft(e){return e.attributes&&e.attributes["rdf:resource"]}var Rt={desc:{name:"ICC Description"},cprt:{name:"ICC Copyright"},dmdd:{name:"ICC Device Model Description"},vued:{name:"ICC Viewing Conditions Description"},dmnd:{name:"ICC Device Manufacturer for Display"},tech:{name:"Technology"}},kt={4:{name:"Preferred CMM type",value:function(e,t){return r(e,t,4)},description:function(e){return null!==e?Et(e):""}},8:{name:"Profile Version",value:function(e,t){return e.getUint8(t).toString(10)+"."+(e.getUint8(t+1)>>4).toString(10)+"."+(e.getUint8(t+1)%16).toString(10)}},12:{name:"Profile/Device class",value:function(e,t){return r(e,t,4)},description:function(e){switch(e.toLowerCase()){case"scnr":return"Input Device profile";case"mntr":return"Display Device profile";case"prtr":return"Output Device profile";case"link":return"DeviceLink profile";case"abst":return"Abstract profile";case"spac":return"ColorSpace profile";case"nmcl":return"NamedColor profile";case"cenc":return"ColorEncodingSpace profile";case"mid ":return"MultiplexIdentification profile";case"mlnk":return"MultiplexLink profile";case"mvis":return"MultiplexVisualization profile";default:return e}}},16:{name:"Color Space",value:function(e,t){return r(e,t,4)}},20:{name:"Connection Space",value:function(e,t){return r(e,t,4)}},24:{name:"ICC Profile Date",value:function(e,t){return function(e,t){var n=e.getUint16(t),r=e.getUint16(t+2)-1,i=e.getUint16(t+4),o=e.getUint16(t+6),a=e.getUint16(t+8),u=e.getUint16(t+10);return new Date(Date.UTC(n,r,i,o,a,u))}(e,t).toISOString()}},36:{name:"ICC Signature",value:function(e,t){return n=e.buffer.slice(t,t+4),String.fromCharCode.apply(null,new Uint8Array(n));var n}},40:{name:"Primary Platform",value:function(e,t){return r(e,t,4)},description:function(e){return Et(e)}},48:{name:"Device Manufacturer",value:function(e,t){return r(e,t,4)},description:function(e){return Et(e)}},52:{name:"Device Model Number",value:function(e,t){return r(e,t,4)}},64:{name:"Rendering Intent",value:function(e,t){return e.getUint32(t)},description:function(e){switch(e){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return e}}},80:{name:"Profile Creator",value:function(e,t){return r(e,t,4)}}};function Et(e){switch(e.toLowerCase()){case"appl":return"Apple";case"adbe":return"Adobe";case"msft":return"Microsoft";case"sunw":return"Sun Microsystems";case"sgi":return"Silicon Graphics";case"tgnt":return"Taligent";default:return e}}var Lt=function(e,t){try{for(var n=t.reduce((function(e,t){return e+t.length}),0),o=new Uint8Array(n),a=0,u=function(e){return Array.isArray(e)?new DataView(Uint8Array.from(e).buffer).buffer:e.buffer}(e),c=function(e){var n=t.find((function(t){return t.chunkNumber===e}));if(!n)throw Error("ICC chunk ".concat(e," not found"));var r=u.slice(n.offset,n.offset+n.length),i=new Uint8Array(r);o.set(i,a),a+=i.length},f=1;f<=t.length;f++)c(f);return function(e){var t=e.buffer,n=e.getUint32();if(e.byteLength!==n)throw Error("ICC profile length not matching");if(e.length<84)throw Error("ICC profile too short");for(var o={},a=Object.keys(kt),u=0;u<a.length;u++){var c=a[u],f=kt[c],s=f.value(e,parseInt(c,10)),l=s;f.description&&(l=f.description(s)),o[f.name]={value:s,description:l}}if(Wt(t.slice(36,40))!==Nt)throw Error("ICC profile: missing signature");if(function(e){return e.length<132}(t))return o;for(var d=e.getUint32(128),p=132,m=0;m<d;m++){if(Vt(t,p))return o;var g=r(e,p,4),v=e.getUint32(p+4),h=e.getUint32(p+8);if(v>t.length)return o;var y=r(e,v,4);if(y===Gt){var S=e.getUint32(v+8);if(S>h)return o;Ht(o,g,Wt(t.slice(v+12,v+S+11)))}else if(y===Bt){for(var b=e.getUint32(v+8),C=e.getUint32(v+12),A=v+16,I=[],P=0;P<b;P++){var U=r(e,A+0,2),w=r(e,A+2,2),T=e.getUint32(A+4),D=e.getUint32(A+8),x=i(e,v+D,T);I.push({languageCode:U,countryCode:w,text:x}),A+=C}if(1===b)Ht(o,g,I[0].text);else{for(var O={},M=0;M<I.length;M++)O["".concat(I[M].languageCode,"-").concat(I[M].countryCode)]=I[M].text;Ht(o,g,O)}}else y===jt?Ht(o,g,Wt(t.slice(v+8,v+h-7))):y===zt&&Ht(o,g,Wt(t.slice(v+8,v+12)));p+=12}return o}(new DataView(o.buffer))}catch(e){return{}}},Nt="acsp",Gt="desc",Bt="mluc",jt="text",zt="sig ";function Vt(e,t){return e.length<t+12}function Wt(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function Ht(e,t,n){Rt[t]?e[Rt[t].name]={value:n,description:n}:e[t]={value:n,description:n}}var Xt=function(e,t){return{"Image Width":Yt(e,t),"Image Height":_t(e,t),"Bit Depth":qt(e,t),"Color Type":Jt(e,t),Compression:Kt(e,t),Filter:$t(e,t),Interlace:Qt(e,t)}};function Yt(e,t){if(!(t+0+4>e.byteLength)){var n=Y.getLongAt(e,t);return{value:n,description:"".concat(n,"px")}}}function _t(e,t){if(!(t+4+4>e.byteLength)){var n=Y.getLongAt(e,t+4);return{value:n,description:"".concat(n,"px")}}}function qt(e,t){if(!(t+8+1>e.byteLength)){var n=Y.getByteAt(e,t+8);return{value:n,description:"".concat(n)}}}function Jt(e,t){if(!(t+9+1>e.byteLength)){var n=Y.getByteAt(e,t+9);return{value:n,description:{0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"}[n]||"Unknown"}}}function Kt(e,t){if(!(t+10+1>e.byteLength)){var n=Y.getByteAt(e,t+10);return{value:n,description:0===n?"Deflate/Inflate":"Unknown"}}}function $t(e,t){if(!(t+11+1>e.byteLength)){var n=Y.getByteAt(e,t+11);return{value:n,description:0===n?"Adaptive":"Unknown"}}}function Qt(e,t){if(!(t+12+1>e.byteLength)){var n=Y.getByteAt(e,t+12);return{value:n,description:{0:"Noninterlaced",1:"Adam7 Interlace"}[n]||"Unknown"}}}var Zt=function(e,t){return t.reduce((function(t,n){var r=n.offset,i=n.length,a=n.type,u=function(e,t,n,r){for(var i=[],a=[],u=[],c=[],f=en,s=0;s<n&&t+s<e.byteLength;s++){if(f===tn){if(0!==e.getUint8(t+s))return{};s+=2,f=on(r,f)}var l=e.getUint8(t+s);0===l?f=on(r,f):f===en?i.push(l):f===nn?a.push(l):f===rn?u.push(l):c.push(l)}var d=o(c);return{name:an(r,a,i),value:d,description:r===F?je("UTF-8",c):d}}(e,r,i,a),c=u.name,f=u.value,s=u.description;return c&&(t[c]={value:f,description:s}),t}),{})},en="STATE_KEYWORD",tn="STATE_COMPRESSION",nn="STATE_LANG",rn="STATE_TRANSLATED_KEYWORD";function on(e,t){return t===en&&e===F?tn:t===tn?nn:t===nn?rn:"STATE_TEXT"}function an(e,t,n){var r=o(n);if("tEXt"===e||0===t.length)return r;var i=o(t);return"".concat(r," (").concat(i,")")}var un=function(e,t){for(var n={},i=0;i<t.length;i++){var o=Y.getLongAt(e,t[i]+0),a=r(e,t[i]+4,4);a===R?(n["Pixels Per Unit X"]=cn(e,t[i],o),n["Pixels Per Unit Y"]=fn(e,t[i],o),n["Pixel Units"]=sn(e,t[i],o)):a===k&&(n["Modify Date"]=ln(e,t[i],o))}return n};function cn(e,t,n){if(dn(e,t,n,0,4)){var r=Y.getLongAt(e,t+8+0);return{value:r,description:""+r}}}function fn(e,t,n){if(dn(e,t,n,4,4)){var r=Y.getLongAt(e,t+8+4);return{value:r,description:""+r}}}function sn(e,t,n){if(dn(e,t,n,8,1)){var r=Y.getByteAt(e,t+8+8);return{value:r,description:1===r?"meters":"Unknown"}}}function ln(e,t,n){if(dn(e,t,n,0,7)){var r=Y.getShortAt(e,t+8),i=Y.getByteAt(e,t+8+2),o=Y.getByteAt(e,t+8+3),a=Y.getByteAt(e,t+8+4),u=Y.getByteAt(e,t+8+5),c=Y.getByteAt(e,t+8+6);return{value:[r,i,o,a,u,c],description:"".concat(pn(r,4),"-").concat(pn(i,2),"-").concat(pn(o,2)," ").concat(pn(a,2),":").concat(pn(u,2),":").concat(pn(c,2))}}}function dn(e,t,n,r,i){return r+i<=n&&t+8+r+i<=e.byteLength}function pn(e,t){return"".concat("0".repeat(t-(""+e).length)).concat(e)}var mn=function(e,t){var n={},r=Y.getByteAt(e,t);return n.Alpha=function(e){var t=16&e;return{value:t?1:0,description:t?"Yes":"No"}}(r),n.Animation=function(e){var t=2&e;return{value:t?1:0,description:t?"Yes":"No"}}(r),n.ImageWidth=gn(e,t+4),n.ImageHeight=gn(e,t+7),n};function gn(e,t){var n=Y.getByteAt(e,t)+256*Y.getByteAt(e,t+1)+65536*Y.getByteAt(e,t+2)+1;return{value:n,description:n+"px"}}var vn=[6,7,99],hn=function(e,t,n){if((i=t)&&(void 0===i.Compression||vn.includes(i.Compression.value))&&i.JPEGInterchangeFormat&&i.JPEGInterchangeFormat.value&&i.JPEGInterchangeFormatLength&&i.JPEGInterchangeFormatLength.value){t.type="image/jpeg";var r=n+t.JPEGInterchangeFormat.value;t.image=e.buffer.slice(r,r+t.JPEGInterchangeFormatLength.value),u(t,"base64",(function(){return c(this.image)}))}var i;return t};function yn(e){this.name="MetadataMissingError",this.message=e||"No Exif data",this.stack=Error().stack}yn.prototype=Error();var Sn={MetadataMissingError:yn},bn={load:An,loadView:wn,errors:Sn},Cn=Sn;function An(e,t){return function(e){return"string"==typeof e}(e)?function(e,t){return/^https?:\/\//.test(e)?"undefined"!=typeof fetch?function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).length,n={method:"GET"};return Number.isInteger(t)&&t>=0&&(n.headers={range:"bytes=0-".concat(t-1)}),fetch(e,n).then((function(e){return e.arrayBuffer()}))}(e,t):function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).length;return new Promise((function(n,r){var i={};Number.isInteger(t)&&t>=0&&(i.headers={range:"bytes=0-".concat(t-1)}),In(e)(e,i,(function(e){if(e.statusCode>=200&&e.statusCode<=299){var t=[];e.on("data",(function(e){return t.push(Buffer.from(e))})),e.on("error",(function(e){return r(e)})),e.on("end",(function(){return n(Buffer.concat(t))}))}else r("Could not fetch file: ".concat(e.statusCode," ").concat(e.statusMessage)),e.resume()})).on("error",(function(e){return r(e)}))}))}(e,t):function(e){return/^data:[^;,]*(;base64)?,/.test(e)}(e)?Promise.resolve(function(e){var t=e.substring(e.indexOf(",")+1);if(-1!==e.indexOf(";base64")){if("undefined"!=typeof atob)return Uint8Array.from(atob(t),(function(e){return e.charCodeAt(0)})).buffer;if("undefined"==typeof Buffer)return;return void 0!==n(Buffer.from)?Buffer.from(t,"base64"):new Buffer(t,"base64")}var r=decodeURIComponent(t);return"undefined"!=typeof Buffer?void 0!==n(Buffer.from)?Buffer.from(r):new Buffer(r):Uint8Array.from(r,(function(e){return e.charCodeAt(0)})).buffer}(e)):function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).length;return new Promise((function(n,r){var i=Pn();i.open(e,(function(o,a){o?r(o):i.stat(e,(function(o,u){if(o)r(o);else{var c=Math.min(u.size,void 0!==t?t:u.size),f=Buffer.alloc(c),s={buffer:f,length:c};i.read(a,s,(function(t){t?r(t):i.close(a,(function(t){t&&console.warn("Could not close file ".concat(e,":"),t),n(f)}))}))}}))}))}))}(e,t)}(e,t).then((function(e){return Un(e,t)})):function(e){return"undefined"!=typeof window&&"undefined"!=typeof File&&e instanceof File}(e)?(r=e,new Promise((function(e,t){var n=new FileReader;n.onload=function(t){return e(t.target.result)},n.onerror=function(){return t(n.error)},n.readAsArrayBuffer(r)}))).then((function(e){return Un(e,t)})):Un(e,t);var r}function In(e){return/^https:\/\//.test(e)?require("https").get:require("http").get}function Pn(){try{return require("fs")}catch(e){return}}function Un(e,t){return function(e){try{return Buffer.isBuffer(e)}catch(e){return 0}}(e)&&(e=new Uint8Array(e).buffer),wn(function(e){try{return new DataView(e)}catch(t){return new s(e)}}(e),t)}function wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{expanded:0,includeUnknown:0},n=t.expanded,r=void 0===n?0:n,i=t.includeUnknown,u=void 0===i?0:i,c=0,f={},s=V(e),l=s.fileType,d=s.fileDataOffset,p=s.jfifDataOffset,m=s.tiffHeaderOffset,g=s.iptcDataOffset,v=s.xmpChunks,h=s.iccChunks,y=s.mpfDataOffset,S=s.pngHeaderOffset,b=s.pngTextChunks,C=s.pngChunkOffsets,A=s.vp8xChunkOffset;if(Tn(d)){c=1;var I=Ie(e,d);r?f.file=I:f=a({},f,I)}if(Dn(p)){c=1;var P=Oe(e,p);r?f.jfif=P:f=a({},f,P)}if(xn(m)){c=1;var U=le(e,m,u);if(U.Thumbnail&&(f.Thumbnail=U.Thumbnail,delete U.Thumbnail),r?(f.exif=U,On(f)):f=a({},f,U),U["IPTC-NAA"]&&!Mn(g)){var w=ze(U["IPTC-NAA"].value,0,u);r?f.iptc=w:f=a({},f,w)}if(U.ApplicationNotes&&!Fn(v)){var T=nt(o(U.ApplicationNotes.value));r?f.xmp=T:(delete T._raw,f=a({},f,T))}if(U.ICC_Profile&&!Rn(h)){var D=Lt(U.ICC_Profile.value,[{offset:0,length:U.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);r?f.icc=D:f=a({},f,D)}}if(Mn(g)){c=1;var x=ze(e,g,u);r?f.iptc=x:f=a({},f,x)}if(Fn(v)){c=1;var O=nt(e,v);r?f.xmp=O:(delete O._raw,f=a({},f,O))}if(Rn(h)){c=1;var M=Lt(e,h);r?f.icc=M:f=a({},f,M)}if(kn(y)){c=1;var F=de(e,y,u);r?f.mpf=F:f=a({},f,F)}if(En(S)){c=1;var R=Xt(e,S);r?(f.png=f.png?a({},f.png,R):R,f.pngFile=R):f=a({},f,R)}if(Ln(b)){c=1;var k=Zt(e,b);r?(f.png=f.png?a({},f.png,k):k,f.pngText=k):f=a({},f,k)}if(Nn(C)){c=1;var E=un(e,C);r?f.png=f.png?a({},f.png,E):E:f=a({},f,E)}if(Gn(A)){c=1;var L=mn(e,A);r?f.riff=f.riff?a({},f.riff,L):L:f=a({},f,L)}var N=hn(e,f.Thumbnail,m);if(N?(c=1,f.Thumbnail=N):delete f.Thumbnail,l&&(r?(f.file||(f.file={}),f.file.FileType=l):f.FileType=l),!c)throw new Sn.MetadataMissingError;return f}function Tn(e){return void 0!==e}function Dn(e){return void 0!==e}function xn(e){return void 0!==e}function On(e){if(e.exif){if(e.exif.GPSLatitude&&e.exif.GPSLatitudeRef)try{e.gps=e.gps||{},e.gps.Latitude=p(e.exif.GPSLatitude.value),"S"===e.exif.GPSLatitudeRef.value.join("")&&(e.gps.Latitude=-e.gps.Latitude)}catch(e){}if(e.exif.GPSLongitude&&e.exif.GPSLongitudeRef)try{e.gps=e.gps||{},e.gps.Longitude=p(e.exif.GPSLongitude.value),"W"===e.exif.GPSLongitudeRef.value.join("")&&(e.gps.Longitude=-e.gps.Longitude)}catch(e){}if(e.exif.GPSAltitude&&e.exif.GPSAltitudeRef)try{e.gps=e.gps||{},e.gps.Altitude=e.exif.GPSAltitude.value[0]/e.exif.GPSAltitude.value[1],1===e.exif.GPSAltitudeRef.value&&(e.gps.Altitude=-e.gps.Altitude)}catch(e){}}}function Mn(e){return void 0!==e}function Fn(e){return Array.isArray(e)&&e.length>0}function Rn(e){return Array.isArray(e)&&e.length>0}function kn(e){return void 0!==e}function En(e){return void 0!==e}function Ln(e){return void 0!==e}function Nn(e){return void 0!==e}function Gn(e){return void 0!==e}return t}()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ExifReader=t():e.ExifReader=t()}("undefined"!=typeof self?self:this,(function(){return function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:1,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:1})}},t={};function n(e,t,n){for(var r=[],o=0;o<n&&t+o<e.byteLength;o++)r.push(e.getUint8(t+o));return i(r)}function r(e,t,n){for(var r=[],o=0;o<n&&t+o<e.byteLength;o+=2)r.push(e.getUint16(t+o));return i(r)}function i(e){return e.map((function(e){return String.fromCharCode(e)})).join("")}function o(){for(var e=1;e<arguments.length;e++)for(var t in arguments[e])arguments[0][t]=arguments[e][t];return arguments[0]}function a(e,t,n){var r=0;Object.defineProperty(e,t,{get:function(){return r||(r=1,Object.defineProperty(e,t,{configurable:1,enumerable:1,value:n.apply(e),writable:1})),e[t]},configurable:1,enumerable:1})}function u(e){return"undefined"!=typeof btoa?"string"==typeof e?btoa(e):btoa(Array.prototype.reduce.call(new Uint8Array(e),(function(e,t){return e+String.fromCharCode(t)}),"")):"undefined"!=typeof Buffer?"undefined"!=typeof Buffer.from?Buffer.from(e).toString("base64"):new Buffer(e).toString("base64"):void 0}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}e.r(t),e.d(t,{default:function(){return pr},errors:function(){return mr},load:function(){return gr},loadView:function(){return hr}});var f=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e){return"object"!==c(e)||void 0===e.length||void 0===e.readUInt8||void 0===e.readUInt16LE||void 0===e.readUInt16BE||void 0===e.readUInt32LE||void 0===e.readUInt32BE||void 0===e.readInt32LE||void 0===e.readInt32BE}(t))throw Error("DataView: Passed buffer type is unsupported.");this.buffer=t,this.byteLength=this.buffer.length}var t,n;return t=e,(n=[{key:"getUint8",value:function(e){return this.buffer.readUInt8(e)}},{key:"getUint16",value:function(e,t){return t?this.buffer.readUInt16LE(e):this.buffer.readUInt16BE(e)}},{key:"getUint32",value:function(e,t){return t?this.buffer.readUInt32LE(e):this.buffer.readUInt32BE(e)}},{key:"getInt32",value:function(e,t){return t?this.buffer.readInt32LE(e):this.buffer.readInt32BE(e)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||0,r.configurable=1,"value"in r&&(r.writable=1),Object.defineProperty(e,(i=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return e+""}(r.key),"symbol"===c(i)?i:i+""),r)}var i}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:0}),e}(),s={USE_FILE:1,USE_JFIF:1,USE_PNG_FILE:1,USE_EXIF:1,USE_IPTC:1,USE_XMP:1,USE_ICC:1,USE_MPF:1,USE_THUMBNAIL:1,USE_TIFF:1,USE_JPEG:1,USE_PNG:1,USE_HEIC:1,USE_WEBP:1};function l(e){return e.map((function(e){return String.fromCharCode(e)})).join("")}function d(e){if(e.length>=8){var t=l(e.slice(0,8));if("ASCII\0\0\0"===t)return l(e.slice(8));if("JIS\0\0\0\0\0"===t)return"[JIS encoded text]";if("UNICODE\0"===t)return"[Unicode encoded text]";if("\0\0\0\0\0\0\0\0"===t)return"[Undefined encoding]"}return"Undefined"}function p(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}var m=18761,g=19789,v={BIG_ENDIAN:g,LITTLE_ENDIAN:m,getByteOrder:function(e,t){if(e.getUint16(t)===m)return m;if(e.getUint16(t)===g)return g;throw Error("Illegal byte order value. Faulty image.")}},h=2,S=65496,y=2,b=4,I=2,C=2,A=10,U=18,P=33,E=79,T=18,w=8,F="ICC_PROFILE\0",M=b+F.length,D=M+1,O="MPF\0",x=65472,L=65474,R=65476,N=65499,k=65501,G=65498,B=65504,_=65505,j=65506,W=65517,z=65519,H=65534,V=65535,X="JFIF",J="Exif",Y="http://ns.adobe.com/xap/1.0/\0",q="http://ns.adobe.com/xmp/extension/\0",K="Photoshop 3.0";function $(e,t){return e.getUint16(t)===x}function Z(e,t){return e.getUint16(t)===L}function Q(e,t){var r=F.length;return e.getUint16(t)===j&&n(e,t+b,r)===F}function ee(e,t){var r=O.length;return e.getUint16(t)===j&&n(e,t+b,r)===O}function te(e,t){var r=J.length;return e.getUint16(t)===B&&n(e,t+b,r)===X&&0===e.getUint8(t+b+r)}function ne(e,t){var r=J.length;return e.getUint16(t)===_&&n(e,t+b,r)===J&&0===e.getUint8(t+b+r)}function re(e,t){return e.getUint16(t)===_&&function(e,t){var r=Y.length;return n(e,t+b,r)===Y}(e,t)}function ie(e,t){return e.getUint16(t)===_&&function(e,t){var r=q.length;return n(e,t+b,r)===q}(e,t)}function oe(e,t){return{dataOffset:e+P,length:t-(P-I)}}function ae(e,t){return{dataOffset:e+E,length:t-(E-I)}}function ue(e,t){var r=K.length;return e.getUint16(t)===W&&n(e,t+b,r)===K&&0===e.getUint8(t+b+r)}function ce(e,t){var n=e.getUint16(t);return n>=B&&n<=z||n===H||n===x||n===L||n===R||n===N||n===k||n===G}function fe(e,t){return e.getUint16(t)===V}var se="PNG\r\n\n",le=4,de=4,pe=0,me=le,ge=le+de,ve="XML:com.adobe.xmp\0",he="iTXt",Se="pHYs",ye="tIME",be="eXIf";function Ie(e,t){return"IHDR"===n(e,t+me,de)}function Ce(e,t){return"iTXt"===n(e,t+me,de)&&n(e,t+ge,ve.length)===ve}function Ae(e,t){var r=n(e,t+me,de);return"tEXt"===r||"iTXt"===r}function Ue(e,t){return n(e,t+me,de)===be}function Pe(e,t){var r=[Se,ye],i=n(e,t+me,de);return r.includes(i)}function Ee(e,t){t+=ge+ve.length+1+1;for(var n=0;n<2&&t<e.byteLength;)0===e.getUint8(t)&&n++,t++;if(!(n<2))return t}function Te(e,t){var n=e.getUint32(t);return function(e){return 0===e}(n)?e.byteLength-t:function(e){return 1===e}(n)&&function(e,t){return 0===e.getUint32(t+8)}(e,t)?e.getUint32(t+12):n}var we={parseAppMarkers:function(e){if(s.USE_TIFF&&function(e){return!!e&&e.byteLength>=4&&function(e){var t=e.getUint16(0)===v.LITTLE_ENDIAN;return 42===e.getUint16(2,t)}(e)}(e))return Fe(s.USE_EXIF?{hasAppMarkers:1,tiffHeaderOffset:0}:{},"tiff","TIFF");if(s.USE_JPEG&&function(e){return!!e&&e.byteLength>=h&&e.getUint16(0)===S}(e))return Fe(function(e){for(var t,n,r,i,o,a,u,c,f,l=y;l+b+5<=e.byteLength;){if(s.USE_FILE&&$(e,l))n=l+I;else if(s.USE_FILE&&Z(e,l))r=l+I;else if(s.USE_JFIF&&te(e,l))t=e.getUint16(l+I),i=l+C;else if(s.USE_EXIF&&ne(e,l))t=e.getUint16(l+I),o=l+A;else if(s.USE_XMP&&re(e,l))u||(u=[]),t=e.getUint16(l+I),u.push(oe(l,t));else if(s.USE_XMP&&ie(e,l))u||(u=[]),t=e.getUint16(l+I),u.push(ae(l,t));else if(s.USE_IPTC&&ue(e,l))t=e.getUint16(l+I),a=l+U;else if(s.USE_ICC&&Q(e,l)){t=e.getUint16(l+I);var d=l+T,p=t-(T-I),m=e.getUint8(l+M),g=e.getUint8(l+D);c||(c=[]),c.push({offset:d,length:p,chunkNumber:m,chunksTotal:g})}else if(s.USE_MPF&&ee(e,l))t=e.getUint16(l+I),f=l+w;else{if(!ce(e,l)){if(fe(e,l)){l++;continue}break}t=e.getUint16(l+I)}l+=I+t}return{hasAppMarkers:l>y,fileDataOffset:n||r,jfifDataOffset:i,tiffHeaderOffset:o,iptcDataOffset:a,xmpChunks:u,iccChunks:c,mpfDataOffset:f}}(e),"jpeg","JPEG");if(s.USE_PNG&&function(e){return!!e&&n(e,0,se.length)===se}(e))return Fe(function(e){for(var t={hasAppMarkers:0},r=se.length;r+le+de<=e.byteLength;){if(s.USE_PNG_FILE&&Ie(e,r))t.hasAppMarkers=1,t.pngHeaderOffset=r+ge;else if(s.USE_XMP&&Ce(e,r)){var i=Ee(e,r);void 0!==i&&(t.hasAppMarkers=1,t.xmpChunks=[{dataOffset:i,length:e.getUint32(r+pe)-(i-(r+ge))}])}else if(Ae(e,r)){t.hasAppMarkers=1;var o=n(e,r+me,de);t.pngTextChunks||(t.pngTextChunks=[]),t.pngTextChunks.push({length:e.getUint32(r+pe),type:o,offset:r+ge})}else Ue(e,r)?(t.hasAppMarkers=1,t.tiffHeaderOffset=r+ge):Pe(e,r)&&(t.hasAppMarkers=1,t.pngChunkOffsets||(t.pngChunkOffsets=[]),t.pngChunkOffsets.push(r+pe));r+=e.getUint32(r+pe)+le+de+4}return t}(e),"png","PNG");if(s.USE_HEIC&&function(e){if(!e)return 0;var t=n(e,8,4);return"ftyp"===n(e,4,4)&&-1!==["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"].indexOf(t)}(e))return Fe(function(e){if(s.USE_EXIF||s.USE_ICC){var t=function(e){for(var t=0;t+4+4<=e.byteLength;){var r=Te(e,t);if(r>=8&&"meta"===n(e,t+4,4))return{offset:t,length:r};t+=r}return{offset:void 0,length:0}}(e),r=t.offset,i=t.length;if(void 0===r)return{hasAppMarkers:0};var o=Math.min(r+i,e.byteLength),a=function(e,t,r){for(var i={ilocOffset:void 0,exifItemOffset:void 0,colrOffset:void 0};t+4<=r&&(!i.ilocOffset||!i.exifItemOffset||!i.colrOffset);){var o=n(e,t,4);s.USE_EXIF&&"iloc"===o?i.ilocOffset=t:s.USE_EXIF&&"Exif"===o?i.exifItemOffset=t+-4:s.USE_ICC&&"colr"===o&&(i.colrOffset=t+-4),t++}return i}(e,r,o),u=a.exifItemOffset,c=a.ilocOffset,f=a.colrOffset,l=function(e,t,n,r){if(n&&t&&!(t+2>r)){var i=e.getUint16(t);for(n+=12;n+16<=r;){if(e.getUint16(n)===i){var o=e.getUint32(n+8);if(o+4<=e.byteLength)return o+(e.getUint32(o)+4)}n+=16}}}(e,u,c,o),d=function(e,t,r){if(t&&!(t+12>r)){var i=n(e,t+8,4);if("prof"===i||"rICC"===i)return[{offset:t+12,length:Te(e,t)-12,chunkNumber:1,chunksTotal:1}]}}(e,f,o);return{hasAppMarkers:void 0!==l||void 0!==d,tiffHeaderOffset:l,iccChunks:d}}return{hasAppMarkers:0}}(e),"heic","HEIC");if(s.USE_WEBP&&function(e){return!!e&&"RIFF"===n(e,0,4)&&"WEBP"===n(e,8,4)}(e))return Fe(function(e){for(var t,r,i,o,a=12,u=0;a+8<e.byteLength;){var c=n(e,a,4),f=e.getUint32(a+4,1);s.USE_EXIF&&"EXIF"===c?(u=1,t="Exif\0\0"===n(e,a+8,6)?a+8+6:a+8):s.USE_XMP&&"XMP "===c?(u=1,r=[{dataOffset:a+8,length:f}]):s.USE_ICC&&"ICCP"===c?(u=1,i=[{offset:a+8,length:f,chunkNumber:1,chunksTotal:1}]):"VP8X"===c&&(u=1,o=a+8),a+=8+(f%2==0?f:f+1)}return{hasAppMarkers:u,tiffHeaderOffset:t,xmpChunks:r,iccChunks:i,vp8xChunkOffset:o}}(e),"webp","WebP");throw Error("Invalid image format")}};function Fe(e,t,n){return o({},e,{fileType:{value:t,description:n}})}var Me={ApertureValue:function(e){return Math.pow(Math.sqrt(2),e[0]/e[1]).toFixed(2)},ColorSpace:function(e){return 1===e?"sRGB":65535===e?"Uncalibrated":"Unknown"},ComponentsConfiguration:function(e){return e.map((function(e){return 49===e?"Y":50===e?"Cb":51===e?"Cr":52===e?"R":53===e?"G":54===e?"B":void 0})).join("")},Contrast:function(e){return 0===e?"Normal":1===e?"Soft":2===e?"Hard":"Unknown"},CustomRendered:function(e){return 0===e?"Normal process":1===e?"Custom process":"Unknown"},ExposureMode:function(e){return 0===e?"Auto exposure":1===e?"Manual exposure":2===e?"Auto bracket":"Unknown"},ExposureProgram:function(e){return 0===e?"Undefined":1===e?"Manual":2===e?"Normal program":3===e?"Aperture priority":4===e?"Shutter priority":5===e?"Creative program":6===e?"Action program":7===e?"Portrait mode":8===e?"Landscape mode":9===e?"Bulb":"Unknown"},ExposureTime:function(e){return e[0]>=e[1]?"".concat(Math.round(e[0]/e[1])):0!==e[0]?"1/".concat(Math.round(e[1]/e[0])):"0/".concat(e[1])},FNumber:function(e){return"f/".concat(e[0]/e[1])},FocalLength:function(e){return e[0]/e[1]+" mm"},FocalPlaneResolutionUnit:function(e){return 2===e?"inches":3===e?"centimeters":"Unknown"},LightSource:function(e){return 1===e?"Daylight":2===e?"Fluorescent":3===e?"Tungsten (incandescent light)":4===e?"Flash":9===e?"Fine weather":10===e?"Cloudy weather":11===e?"Shade":12===e?"Daylight fluorescent (D 5700 – 7100K)":13===e?"Day white fluorescent (N 4600 – 5400K)":14===e?"Cool white fluorescent (W 3900 – 4500K)":15===e?"White fluorescent (WW 3200 – 3700K)":17===e?"Standard light A":18===e?"Standard light B":19===e?"Standard light C":20===e?"D55":21===e?"D65":22===e?"D75":23===e?"D50":24===e?"ISO studio tungsten":255===e?"Other light source":"Unknown"},MeteringMode:function(e){return 1===e?"Average":2===e?"CenterWeightedAverage":3===e?"Spot":4===e?"MultiSpot":5===e?"Pattern":6===e?"Partial":255===e?"Other":"Unknown"},ResolutionUnit:function(e){return 2===e?"inches":3===e?"centimeters":"Unknown"},Saturation:function(e){return 0===e?"Normal":1===e?"Low saturation":2===e?"High saturation":"Unknown"},SceneCaptureType:function(e){return 0===e?"Standard":1===e?"Landscape":2===e?"Portrait":3===e?"Night scene":"Unknown"},Sharpness:function(e){return 0===e?"Normal":1===e?"Soft":2===e?"Hard":"Unknown"},ShutterSpeedValue:function(e){var t=Math.pow(2,e[0]/e[1]);return t<=1?"".concat(Math.round(1/t)):"1/".concat(Math.round(t))},WhiteBalance:function(e){return 0===e?"Auto white balance":1===e?"Manual white balance":"Unknown"},XResolution:function(e){return""+Math.round(e[0]/e[1])},YResolution:function(e){return""+Math.round(e[0]/e[1])}},De={11:"ProcessingSoftware",254:{name:"SubfileType",description:function(e){return{0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"}[e]||"Unknown"}},255:{name:"OldSubfileType",description:function(e){return{0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"}[e]||"Unknown"}},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:function(e){return{1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"}[e]||"Unknown"}},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:function(e){return{1:"Normal",2:"Reversed"}[e]||"Unknown"}},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:function(e){return 1===e?"top-left":2===e?"top-right":3===e?"bottom-right":4===e?"bottom-left":5===e?"left-top":6===e?"right-top":7===e?"right-bottom":8===e?"left-bottom":"Undefined"}},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:Me.XResolution},283:{name:"YResolution",description:Me.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:function(e){return""+Math.round(e[0]/e[1])}},287:{name:"YPosition",description:function(e){return""+Math.round(e[0]/e[1])}},290:{name:"GrayResponseUnit",description:function(e){return{1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"}[e]||"Unknown"}},296:{name:"ResolutionUnit",description:Me.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:function(e){return e.map((function(e){return"".concat(e[0],"/").concat(e[1])})).join(", ")}},319:{name:"PrimaryChromaticities",description:function(e){return e.map((function(e){return"".concat(e[0],"/").concat(e[1])})).join(", ")}},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:function(e){return{1:"CMYK",2:"Not CMYK"}[e]||"Unknown"}},337:"TargetPrinter",338:{name:"ExtraSamples",description:function(e){return{0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"}[e]||"Unknown"}},339:{name:"SampleFormat",description:function(e){var t={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(e)?e.map((function(e){return t[e]||"Unknown"})).join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:function(e){return e.map((function(e){return""+e[0]/e[1]})).join("/")}},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:function(e){return 1===e?"centered":2===e?"co-sited":"undefined "+e}},532:{name:"ReferenceBlackWhite",description:function(e){return e.map((function(e){return""+e[0]/e[1]})).join(", ")}},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:function(e){return e.join("; ")}},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",42112:"GDALMetadata",42113:"GDALNoData",50341:"PrintIM",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50739:"ShadowScale",50741:{name:"MakerNoteSafety",description:function(e){return{0:"Unsafe",1:"Safe"}[e]||"Unknown"}},50778:{name:"CalibrationIlluminant1",description:Me.LightSource},50779:{name:"CalibrationIlluminant2",description:Me.LightSource},50781:"RawDataUniqueID",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50885:"SRawType",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:{name:"ProfileEmbedPolicy",description:function(e){return{0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"}[e]||"Unknown"}},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:function(e){return{1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"}[e]||"Unknown"}},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:function(e){return{0:"Linear",1:"sRGB"}[e]||"Unknown"}},51108:{name:"ProfileLookTableEncoding",description:function(e){return{0:"Linear",1:"sRGB"}[e]||"Unknown"}},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:function(e){return{0:"Auto",1:"None"}[e]||"Unknown"}},51111:"NewRawImageDigest",51112:"RawToPreviewGain"};function Oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Le,Re={0:{name:"GPSVersionID",description:function(e){return 2===e[0]&&2===e[1]&&0===e[2]&&0===e[3]?"Version 2.2":"Unknown"}},1:{name:"GPSLatitudeRef",description:function(e){var t=e.join("");return"N"===t?"North latitude":"S"===t?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:p},3:{name:"GPSLongitudeRef",description:function(e){var t=e.join("");return"E"===t?"East longitude":"W"===t?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:p},5:{name:"GPSAltitudeRef",description:function(e){return 0===e?"Sea level":1===e?"Sea level reference (negative value)":"Unknown"}},6:{name:"GPSAltitude",description:function(e){return e[0]/e[1]+" m"}},7:{name:"GPSTimeStamp",description:function(e){return e.map((function(e){var t,n=(2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=1,f=0;try{for(o=(n=n.call(e)).next,0;!(c=(r=o.call(n)).done)&&(u.push(r.value),2!==u.length);c=1);}catch(e){f=1,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return u}}(t)||function(e,t){if(e){if("string"==typeof e)return xe(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=n[0]/n[1];return/^\d(\.|$)/.test("".concat(r))?"0".concat(r):r})).join(":")}},8:"GPSSatellites",9:{name:"GPSStatus",description:function(e){var t=e.join("");return"A"===t?"Measurement in progress":"V"===t?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:function(e){var t=e.join("");return"2"===t?"2-dimensional measurement":"3"===t?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:function(e){var t=e.join("");return"K"===t?"Kilometers per hour":"M"===t?"Miles per hour":"N"===t?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:function(e){var t=e.join("");return"T"===t?"True direction":"M"===t?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:function(e){var t=e.join("");return"T"===t?"True direction":"M"===t?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:function(e){var t=e.join("");return"N"===t?"North latitude":"S"===t?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:function(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}},21:{name:"GPSDestLongitudeRef",description:function(e){var t=e.join("");return"E"===t?"East longitude":"W"===t?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:function(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}},23:{name:"GPSDestBearingRef",description:function(e){var t=e.join("");return"T"===t?"True direction":"M"===t?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:function(e){var t=e.join("");return"K"===t?"Kilometers":"M"===t?"Miles":"N"===t?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:d},28:{name:"GPSAreaInformation",description:d},29:"GPSDateStamp",30:{name:"GPSDifferential",description:function(e){return 0===e?"Measurement without differential correction":1===e?"Differential correction applied":"Unknown"}},31:"GPSHPositioningError"},Ne={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:function(e){return l(e)}},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},ke={45056:{name:"MPFVersion",description:function(e){return l(e)}},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"};function Ge(e){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ge(e)}function Be(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ge(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return e+""}(e);return"symbol"===Ge(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:1,configurable:1,writable:1}):e[t]=n,e}var _e=o({},De,{33434:{name:"ExposureTime",description:Me.ExposureTime},33437:{name:"FNumber",description:Me.FNumber},34850:{name:"ExposureProgram",description:Me.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:function(){return"[Raw OECF table data]"}},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:function(e){return{1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"}[e]||"Unknown"}},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:function(e){return l(e)}},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:Me.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:Me.ShutterSpeedValue},37378:{name:"ApertureValue",description:Me.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:function(e){return Math.pow(Math.sqrt(2),e[0]/e[1]).toFixed(2)}},37382:{name:"SubjectDistance",description:function(e){return e[0]/e[1]+" m"}},37383:{name:"MeteringMode",description:Me.MeteringMode},37384:{name:"LightSource",description:Me.LightSource},37385:{name:"Flash",description:function(e){return 0===e?"Flash did not fire":1===e?"Flash fired":5===e?"Strobe return light not detected":7===e?"Strobe return light detected":9===e?"Flash fired, compulsory flash mode":13===e?"Flash fired, compulsory flash mode, return light not detected":15===e?"Flash fired, compulsory flash mode, return light detected":16===e?"Flash did not fire, compulsory flash mode":24===e?"Flash did not fire, auto mode":25===e?"Flash fired, auto mode":29===e?"Flash fired, auto mode, return light not detected":31===e?"Flash fired, auto mode, return light detected":32===e?"No flash function":65===e?"Flash fired, red-eye reduction mode":69===e?"Flash fired, red-eye reduction mode, return light not detected":71===e?"Flash fired, red-eye reduction mode, return light detected":73===e?"Flash fired, compulsory flash mode, red-eye reduction mode":77===e?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":79===e?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":89===e?"Flash fired, auto mode, red-eye reduction mode":93===e?"Flash fired, auto mode, return light not detected, red-eye reduction mode":95===e?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"}},37386:{name:"FocalLength",description:Me.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:function(e){return{C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"}[e]||"Unknown"}},37395:"ImageHistory",37396:{name:"SubjectArea",description:function(e){return 2===e.length?"Location; X: ".concat(e[0],", Y: ").concat(e[1]):3===e.length?"Circle; X: ".concat(e[0],", Y: ").concat(e[1],", diameter: ").concat(e[2]):4===e.length?"Rectangle; X: ".concat(e[0],", Y: ").concat(e[1],", width: ").concat(e[2],", height: ").concat(e[3]):"Unknown"}},37500:{name:"MakerNote",description:function(){return"[Raw maker note data]"}},37510:{name:"UserComment",description:d},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37888:{name:"AmbientTemperature",description:function(e){return e[0]/e[1]+" °C"}},37889:{name:"Humidity",description:function(e){return e[0]/e[1]+" %"}},37890:{name:"Pressure",description:function(e){return e[0]/e[1]+" hPa"}},37891:{name:"WaterDepth",description:function(e){return e[0]/e[1]+" m"}},37892:{name:"Acceleration",description:function(e){return e[0]/e[1]+" mGal"}},37893:{name:"CameraElevationAngle",description:function(e){return e[0]/e[1]+" °"}},40960:{name:"FlashpixVersion",description:function(e){return e.map((function(e){return String.fromCharCode(e)})).join("")}},40961:{name:"ColorSpace",description:Me.ColorSpace},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:function(){return"[Raw SFR table data]"}},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:Me.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:function(e){var t,n=(2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=1,f=0;try{for(o=(n=n.call(e)).next,0;!(c=(r=o.call(n)).done)&&(u.push(r.value),2!==u.length);c=1);}catch(e){f=1,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return u}}(t)||function(e,t){if(e){if("string"==typeof e)return Oe(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oe(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=n[0],i=n[1];return"X: ".concat(r,", Y: ").concat(i)}},41493:"ExposureIndex",41495:{name:"SensingMethod",description:function(e){return 1===e?"Undefined":2===e?"One-chip color area sensor":3===e?"Two-chip color area sensor":4===e?"Three-chip color area sensor":5===e?"Color sequential area sensor":7===e?"Trilinear sensor":8===e?"Color sequential linear sensor":"Unknown"}},41728:{name:"FileSource",description:function(e){return 3===e?"DSC":"Unknown"}},41729:{name:"SceneType",description:function(e){return 1===e?"A directly photographed image":"Unknown"}},41730:{name:"CFAPattern",description:function(){return"[Raw CFA pattern table data]"}},41985:{name:"CustomRendered",description:Me.CustomRendered},41986:{name:"ExposureMode",description:Me.ExposureMode},41987:{name:"WhiteBalance",description:Me.WhiteBalance},41988:{name:"DigitalZoomRatio",description:function(e){return 0===e[0]?"Digital zoom was not used":""+e[0]/e[1]}},41989:{name:"FocalLengthIn35mmFilm",description:function(e){return 0===e?"Unknown":e}},41990:{name:"SceneCaptureType",description:Me.SceneCaptureType},41991:{name:"GainControl",description:function(e){return 0===e?"None":1===e?"Low gain up":2===e?"High gain up":3===e?"Low gain down":4===e?"High gain down":"Unknown"}},41992:{name:"Contrast",description:Me.Contrast},41993:{name:"Saturation",description:Me.Saturation},41994:{name:"Sharpness",description:Me.Sharpness},41995:{name:"DeviceSettingDescription",description:function(){return"[Raw device settings table data]"}},41996:{name:"SubjectDistanceRange",description:function(e){return 1===e?"Macro":2===e?"Close view":3===e?"Distant view":"Unknown"}},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:function(e){var t="".concat(e[0][0]/e[0][1],"-").concat(e[1][0]/e[1][1]," mm");return 0===e[3][1]?"".concat(t," f/?"):"".concat(t," f/").concat(1/(e[2][1]/e[2][1]/(e[3][0]/e[3][1])))}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:function(e){return{1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"}[e]||"Unknown"}},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"}),je="0th",We="exif",ze="interoperability",He=(Be(Le={},je,_e),Be(Le,"1st",De),Be(Le,We,_e),Be(Le,"gps",Re),Be(Le,ze,Ne),Be(Le,"mpf",s.USE_MPF?ke:{}),Le),Ve={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},Xe={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},Je={getAsciiValue:function(e){return e.map((function(e){return String.fromCharCode(e)}))},getByteAt:Ye,getAsciiAt:function(e,t){return e.getUint8(t)},getShortAt:function(e,t,n){return e.getUint16(t,n===v.LITTLE_ENDIAN)},getLongAt:qe,getRationalAt:function(e,t,n){return[qe(e,t,n),qe(e,t+4,n)]},getUndefinedAt:function(e,t){return Ye(e,t)},getSlongAt:Ke,getSrationalAt:function(e,t,n){return[Ke(e,t,n),Ke(e,t+4,n)]},getIfdPointerAt:function(e,t,n){return qe(e,t,n)},typeSizes:Ve,tagTypes:Xe,getTypeSize:function(e){if(void 0===Xe[e])throw Error("No such type found.");return Ve[Xe[e]]}};function Ye(e,t){return e.getUint8(t)}function qe(e,t,n){return e.getUint32(t,n===v.LITTLE_ENDIAN)}function Ke(e,t,n){return e.getInt32(t,n===v.LITTLE_ENDIAN)}var $e={1:Je.getByteAt,2:Je.getAsciiAt,3:Je.getShortAt,4:Je.getLongAt,5:Je.getRationalAt,7:Je.getUndefinedAt,9:Je.getSlongAt,10:Je.getSrationalAt,13:Je.getIfdPointerAt};function Ze(e,t,n){return t+Je.getLongAt(e,t+4,n)}function Qe(e,t,n,r,i,o){var a=Je.getTypeSize("SHORT"),u={},c=function(e,t,n){return t+Je.getTypeSize("SHORT")<=e.byteLength?Je.getShortAt(e,t,n):0}(e,r,i);r+=a;for(var f=0;f<c&&!(r+12>e.byteLength);f++){var l=et(e,t,n,r,i,o);void 0!==l&&(u[l.name]={id:l.id,value:l.value,description:l.description}),r+=12}if(s.USE_THUMBNAIL&&r<e.byteLength-Je.getTypeSize("LONG")){var d=Je.getLongAt(e,r,i);0!==d&&t===je&&(u.Thumbnail=Qe(e,"1st",n,n+d,i,1))}return u}function et(e,t,n,r,i,o){var a,u=Je.getTypeSize("SHORT"),c=u+Je.getTypeSize("SHORT"),f=c+Je.getTypeSize("LONG"),s=Je.getShortAt(e,r,i),l=Je.getShortAt(e,r+u,i),d=Je.getLongAt(e,r+c,i);if(void 0!==Je.typeSizes[l]&&(o||void 0!==He[t][s])){if(function(e,t){return Je.typeSizes[e]*t<=Je.getTypeSize("LONG")}(l,d))a=tt(e,r+f,l,d,i);else{var p=Je.getLongAt(e,r+f,i);a=function(e,t,n,r,i){return t+n+Je.typeSizes[r]*i<=e.byteLength}(e,n,p,l,d)?tt(e,n+p,l,d,i,33723===s):"<faulty value>"}l===Je.tagTypes.ASCII&&(a=function(e){try{return e.map((function(e){return decodeURIComponent(escape(e))}))}catch(t){return e}}(a=function(e){for(var t=[],n=0,r=0;r<e.length;r++)"\0"!==e[r]?(void 0===t[n]&&(t[n]=""),t[n]+=e[r]):n++;return t}(a)));var m="undefined-".concat(s),g=a;if(void 0!==He[t][s])if(void 0!==He[t][s].name&&void 0!==He[t][s].description){m=He[t][s].name;try{g=He[t][s].description(a)}catch(e){g=nt(a)}}else l===Je.tagTypes.RATIONAL||l===Je.tagTypes.SRATIONAL?(m=He[t][s],g=""+a[0]/a[1]):(m=He[t][s],g=nt(a));return{id:s,name:m,value:a,description:g}}}function tt(e,t,n,r,i){var o=[];arguments.length>5&&void 0!==arguments[5]&&arguments[5]&&(r*=Je.typeSizes[n],n=Je.tagTypes.BYTE);for(var a=0;a<r;a++)o.push($e[n](e,t,i)),t+=Je.typeSizes[n];return n===Je.tagTypes.ASCII?o=Je.getAsciiValue(o):1===o.length&&(o=o[0]),o}function nt(e){return e instanceof Array?e.join(", "):e}var rt="Exif IFD Pointer",it="GPS Info IFD Pointer",ot="Interoperability IFD Pointer",at={read:function(e,t,n){var r=v.getByteOrder(e,t),i=function(e,t,n,r){return Qe(e,je,t,Ze(e,t,n),n,r)}(e,t,r,n);return function(e,t,n,r,i){return void 0!==e[ot]?o(e,Qe(t,ze,n,n+e[ot].value,r,i)):e}(i=function(e,t,n,r,i){return void 0!==e[it]?o(e,Qe(t,"gps",n,n+e[it].value,r,i)):e}(i=function(e,t,n,r,i){return void 0!==e[rt]?o(e,Qe(t,We,n,n+e[rt].value,r,i)):e}(i,e,t,r,n),e,t,r,n),e,t,r,n)}},ut={read:function(e,t,n){var r=v.getByteOrder(e,t);return function(e,t,n,r){if(!n.MPEntry)return n;for(var i=[],o=0;o<Math.ceil(n.MPEntry.value.length/ct);o++){i[o]={};var c=ft(n.MPEntry.value,o*ct,Je.getTypeSize("LONG"),r);i[o].ImageFlags=st(c),i[o].ImageFormat=lt(c),i[o].ImageType=dt(c);var f=ft(n.MPEntry.value,o*ct+4,Je.getTypeSize("LONG"),r);i[o].ImageSize={value:f,description:""+f};var s=pt(o,n.MPEntry,r,t);i[o].ImageOffset={value:s,description:""+s};var l=ft(n.MPEntry.value,o*ct+12,Je.getTypeSize("SHORT"),r);i[o].DependentImage1EntryNumber={value:l,description:""+l};var d=ft(n.MPEntry.value,o*ct+14,Je.getTypeSize("SHORT"),r);i[o].DependentImage2EntryNumber={value:d,description:""+d},i[o].image=e.buffer.slice(s,s+f),a(i[o],"base64",(function(){return u(this.image)}))}return n.Images=i,n}(e,t,Qe(e,"mpf",t,Ze(e,t,r),r,n),r)}},ct=16;function ft(e,t,n,r){if(r===v.LITTLE_ENDIAN){for(var i=0,o=0;o<n;o++)i+=e[t+o]<<8*o;return i}for(var a=0,u=0;u<n;u++)a+=e[t+u]<<8*(n-1-u);return a}function st(e){var t=[e>>31&1,e>>30&1,e>>29&1],n=[];return t[0]&&n.push("Dependent Parent Image"),t[1]&&n.push("Dependent Child Image"),t[2]&&n.push("Representative Image"),{value:t,description:n.join(", ")||"None"}}function lt(e){var t=e>>24&7;return{value:t,description:0===t?"JPEG":"Unknown"}}function dt(e){var t=16777215&e;return{value:t,description:{196608:"Baseline MP Primary Image",65537:"Large Thumbnail (VGA equivalent)",65538:"Large Thumbnail (Full HD equivalent)",131073:"Multi-Frame Image (Panorama)",131074:"Multi-Frame Image (Disparity)",131075:"Multi-Frame Image (Multi-Angle)",0:"Undefined"}[t]||"Unknown"}}function pt(e,t,n,r){return function(e){return 0===e}(e)?0:ft(t.value,e*ct+8,Je.getTypeSize("LONG"),n)+r}var mt={read:function(e,t){var n=function(e,t){return Je.getShortAt(e,t)}(e,t),r=function(e,t,n){if(!(8>n)){var r=Je.getByteAt(e,t+7);return{value:r,description:""+r}}}(e,t,n);return{"Bits Per Sample":gt(e,t,n),"Image Height":vt(e,t,n),"Image Width":ht(e,t,n),"Color Components":r,Subsampling:r&&St(e,t,r.value,n)}}};function gt(e,t,n){if(!(3>n)){var r=Je.getByteAt(e,t+2);return{value:r,description:""+r}}}function vt(e,t,n){if(!(5>n)){var r=Je.getShortAt(e,t+3);return{value:r,description:"".concat(r,"px")}}}function ht(e,t,n){if(!(7>n)){var r=Je.getShortAt(e,t+5);return{value:r,description:"".concat(r,"px")}}}function St(e,t,n,r){if(!(8+3*n>r)){for(var i=[],o=0;o<n;o++){var a=t+8+3*o;i.push([Je.getByteAt(e,a),Je.getByteAt(e,a+1),Je.getByteAt(e,a+2)])}return{value:i,description:i.length>1?yt(i)+bt(i):""}}}function yt(e){var t={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return e.map((function(e){return t[e[0]]})).join("")}function bt(e){var t={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return 0===e.length||void 0===e[0][1]||void 0===t[e[0][1]]?"":t[e[0][1]]}var It={read:function(e,t){var n=function(e,t){return Je.getShortAt(e,t)}(e,t),r=function(e,t,n){if(!(15>n)){var r=Je.getByteAt(e,t+14);return{value:r,description:"".concat(r,"px")}}}(e,t,n),i=function(e,t,n){if(!(16>n)){var r=Je.getByteAt(e,t+15);return{value:r,description:"".concat(r,"px")}}}(e,t,n),o={"JFIF Version":Ct(e,t,n),"Resolution Unit":At(e,t,n),XResolution:Pt(e,t,n),YResolution:Et(e,t,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":i};if(void 0!==r&&void 0!==i){var a=function(e,t,n,r){if(!(0===n||16+n>r))return{value:e.buffer.slice(t+16,t+16+n),description:"<24-bit RGB pixel data>"}}(e,t,3*r.value*i.value,n);a&&(o["JFIF Thumbnail"]=a)}for(var u in o)void 0===o[u]&&delete o[u];return o}};function Ct(e,t,n){if(!(9>n)){var r=Je.getByteAt(e,t+7),i=Je.getByteAt(e,t+7+1);return{value:256*r+i,description:r+"."+i}}}function At(e,t,n){if(!(10>n)){var r=Je.getByteAt(e,t+9);return{value:r,description:Ut(r)}}}function Ut(e){return 0===e?"None":1===e?"inches":2===e?"cm":"Unknown"}function Pt(e,t,n){if(!(12>n)){var r=Je.getShortAt(e,t+10);return{value:r,description:""+r}}}function Et(e,t,n){if(!(14>n)){var r=Je.getShortAt(e,t+12);return{value:r,description:""+r}}}var Tt={iptc:{256:{name:"Model Version",description:function(e){return""+((e[0]<<8)+e[1])}},261:{name:"Destination",repeatable:1},276:{name:"File Format",description:function(e){return""+((e[0]<<8)+e[1])}},278:{name:"File Format Version",description:function(e){return""+((e[0]<<8)+e[1])}},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:wt},336:{name:"Time Sent",description:Ft},346:{name:"Coded Character Set",description:Mt,encoding_name:Mt},356:"UNO",376:{name:"ARM Identifier",description:function(e){return""+((e[0]<<8)+e[1])}},378:{name:"ARM Version",description:function(e){return""+((e[0]<<8)+e[1])}},512:{name:"Record Version",description:function(e){return""+((e[0]<<8)+e[1])}},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:function(e){return"01"===l(e)?"Additional Language":"Unknown"}},522:"Urgency",524:{name:"Subject Reference",repeatable:1,description:function(e){var t=l(e).split(":");return t[2]+(t[3]?"/"+t[3]:"")+(t[4]?"/"+t[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:1},534:"Fixture Identifier",537:{name:"Keywords",repeatable:1},538:{name:"Content Location Code",repeatable:1},539:{name:"Content Location Name",repeatable:1},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:function(e){var t=l(e);return"01"===t?"Object Kill":"02"===t?"Object Replace":"03"===t?"Object Append":"04"===t?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:1},559:{name:"Reference Date",repeatable:1},562:{name:"Reference Number",repeatable:1},567:{name:"Date Created",description:wt},572:{name:"Time Created",description:Ft},574:{name:"Digital Creation Date",description:wt},575:{name:"Digital Creation Time",description:Ft},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:function(e){var t=l(e);return"a"===t?"morning":"p"===t?"evening":"b"===t?"both":"Unknown"}},592:{name:"By-line",repeatable:1},597:{name:"By-line Title",repeatable:1},602:"City",604:"Sub-location",607:"Province/State",612:"Country/Primary Location Code",613:"Country/Primary Location Name",615:"Original Transmission Reference",617:"Headline",622:"Credit",627:"Source",628:"Copyright Notice",630:{name:"Contact",repeatable:1},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:1},637:{name:"Rasterized Caption",description:function(e){return e}},642:"Image Type",643:{name:"Image Orientation",description:function(e){var t=l(e);return"P"===t?"Portrait":"L"===t?"Landscape":"S"===t?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:function(e){var t=l(e),n=t.charAt(0),r=t.charAt(1),i="";return"1"===n?i+="Mono":"2"===n&&(i+="Stereo"),"A"===r?i+=", actuality":"C"===r?i+=", question and answer session":"M"===r?i+=", music, transmitted by itself":"Q"===r?i+=", response to a question":"R"===r?i+=", raw sound":"S"===r?i+=", scener":"V"===r?i+=", voicer":"W"===r&&(i+=", wrap"),""!==i?i:t}},663:{name:"Audio Sampling Rate",description:function(e){return parseInt(l(e),10)+" Hz"}},664:{name:"Audio Sampling Resolution",description:function(e){var t=parseInt(l(e),10);return t+(1===t?" bit":" bits")}},665:{name:"Audio Duration",description:function(e){var t=l(e);return t.length>=6?t.substr(0,2)+":"+t.substr(2,2)+":"+t.substr(4,2):t}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:function(e){return 2===e.length?"ObjectData Preview File Format":"Record 2 destination"},description:function(e){if(2===e.length){var t=(e[0]<<8)+e[1];return 0===t?"No ObjectData":1===t?"IPTC-NAA Digital Newsphoto Parameter Record":2===t?"IPTC7901 Recommended Message Format":3===t?"Tagged Image File Format (Adobe/Aldus Image data)":4===t?"Illustrator (Adobe Graphics data)":5===t?"AppleSingle (Apple Computer Inc)":6===t?"NAA 89-3 (ANPA 1312)":7===t?"MacBinary II":8===t?"IPTC Unstructured Character Oriented File Format (UCOFF)":9===t?"United Press International ANPA 1312 variant":10===t?"United Press International Down-Load Message":11===t?"JPEG File Interchange (JFIF)":12===t?"Photo-CD Image-Pac (Eastman Kodak)":13===t?"Microsoft Bit Mapped Graphics File [*.BMP]":14===t?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":15===t?"Audio plus Moving Video [*.AVI] (Microsoft)":16===t?"PC DOS/Windows Executable Files [*.COM][*.EXE]":17===t?"Compressed Binary File [*.ZIP] (PKWare Inc)":18===t?"Audio Interchange File Format AIFF (Apple Computer Inc)":19===t?"RIFF Wave (Microsoft Corporation)":20===t?"Freehand (Macromedia/Aldus)":21===t?'Hypertext Markup Language "HTML" (The Internet Society)':22===t?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":23===t?"MPEG 2 Audio Layer 3, ISO/IEC":24===t?"Portable Document File (*.PDF) Adobe":25===t?"News Industry Text Format (NITF)":26===t?"Tape Archive (*.TAR)":27===t?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":28===t?"Ritzaus Bureau NITF version (RBNITF DTD)":29===t?"Corel Draw [*.CDR]":"Unknown format ".concat(t)}return l(e)}},713:{name:"ObjectData Preview File Format Version",description:function(e,t){var n={"00":{"00":"1"},"01":{"01":"1","02":"2","03":"3","04":"4"},"02":{"04":"4"},"03":{"01":"5.0","02":"6.0"},"04":{"01":"1.40"},"05":{"01":"2"},"06":{"01":"1"},11:{"01":"1.02"},20:{"01":"3.1","02":"4.0","03":"5.0","04":"5.5"},21:{"02":"2.0"}},r=l(e);if(t["ObjectData Preview File Format"]){var i=l(t["ObjectData Preview File Format"].value);if(n[i]&&n[i][r])return n[i][r]}return r}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:function(e){return e[0].toString()}},1812:{name:"Max Subfile Size",description:function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<8)+e[n];return t.toString()}},1882:{name:"ObjectData Size Announced",description:function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<8)+e[n];return t.toString()}},1887:{name:"Maximum ObjectData Size",description:function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<8)+e[n];return t.toString()}}}};function wt(e){var t=l(e);return t.length>=8?t.substr(0,4)+"-"+t.substr(4,2)+"-"+t.substr(6,2):t}function Ft(e){var t=l(e),n=t;return t.length>=6&&(n=t.substr(0,2)+":"+t.substr(2,2)+":"+t.substr(4,2),11===t.length&&(n+=t.substr(6,1)+t.substr(7,2)+":"+t.substr(9,2))),n}function Mt(e){var t=l(e);return"%G"===t?"UTF-8":"%5"===t?"Windows-1252":"%/G"===t?"UTF-8 Level 1":"%/H"===t?"UTF-8 Level 2":"%/I"===t?"UTF-8 Level 3":"/A"===t?"ISO-8859-1":"/B"===t?"ISO-8859-2":"/C"===t?"ISO-8859-3":"/D"===t?"ISO-8859-4":"/@"===t?"ISO-8859-5":"/G"===t?"ISO-8859-6":"/F"===t?"ISO-8859-7":"/H"===t?"ISO-8859-8":"Unknown"}var Dt={decode:function(e,t){var n=function(){if("undefined"!=typeof TextDecoder)return TextDecoder}();if("undefined"!=typeof n&&void 0!==e)try{return new n(e).decode(Uint8Array.from(t))}catch(e){}return function(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}(t.map((function(e){return String.fromCharCode(e)})).join(""))},TAG_HEADER_SIZE:5},Ot=5,xt={read:function(e,t,n){try{if(Array.isArray(e))return kt(new DataView(Uint8Array.from(e).buffer),{size:e.length},0,n);var r=function(e,t){for(;t+12<=e.byteLength;){var n=Lt(e,t);if(Rt(n))return{naaBlock:n,dataOffset:t+12};t+=12+n.size+Nt(n)}throw Error("No IPTC NAA resource block.")}(e,t);return kt(e,r.naaBlock,r.dataOffset,n)}catch(e){return{}}}};function Lt(e,t){if(943868237!==e.getUint32(t,0))throw Error("Not an IPTC resource block.");return{type:e.getUint16(t+4),size:e.getUint16(t+10)}}function Rt(e){return 1028===e.type}function Nt(e){return e.size%2!=0?1:0}function kt(e,t,n,r){for(var i={},o=void 0,a=n+t.size;n<a&&n<e.byteLength;){var u=Gt(e,n,i,o,r),c=u.tag,f=u.tagSize;if(null===c)break;c&&("encoding"in c&&(o=c.encoding),void 0===i[c.name]||void 0===c.repeatable?i[c.name]={id:c.id,value:c.value,description:c.description}:(i[c.name]instanceof Array||(i[c.name]=[{id:i[c.name].id,value:i[c.name].value,description:i[c.name].description}]),i[c.name].push({id:c.id,value:c.value,description:c.description}))),n+=Ot+f}return i}function Gt(e,t,n,r,i){if(function(e,t){return 28!==e.getUint8(t)}(e,t))return{tag:null,tagSize:0};var o=e.getUint16(t+1),a=e.getUint16(t+3);if(!i&&!Tt.iptc[o])return{tag:void 0,tagSize:a};var u=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(e.getUint8(t+i));return r}(e,t+Ot,a),c={id:o,name:Bt(Tt.iptc[o],o,u),value:u,description:_t(Tt.iptc[o],u,n,r)};return function(e){return Tt.iptc[e]&&Tt.iptc[e].repeatable}(o)&&(c.repeatable=1),function(e){return Tt.iptc[e]&&void 0!==Tt.iptc[e].encoding_name}(o)&&(c.encoding=Tt.iptc[o].encoding_name(u)),{tag:c,tagSize:a}}function Bt(e,t,n){return e?function(e){return"string"==typeof e}(e)?e:function(e){return"function"==typeof e.name}(e)?e.name(n):e.name:"undefined-".concat(t)}function _t(e,t,n,r){if(function(e){return e&&void 0!==e.description}(e))try{return e.description(t,n)}catch(e){}return function(e,t){return e&&t instanceof Array}(e,t)?Dt.decode(r,t):t}function jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Wt={"tiff:Orientation":function(e){return"1"===e?"Horizontal (normal)":"2"===e?"Mirror horizontal":"3"===e?"Rotate 180":"4"===e?"Mirror vertical":"5"===e?"Mirror horizontal and rotate 270 CW":"6"===e?"Rotate 90 CW":"7"===e?"Mirror horizontal and rotate 90 CW":"8"===e?"Rotate 270 CW":e},"tiff:ResolutionUnit":function(e){return Me.ResolutionUnit(parseInt(e,10))},"tiff:XResolution":function(e){return zt(Me.XResolution,e)},"tiff:YResolution":function(e){return zt(Me.YResolution,e)},"exif:ApertureValue":function(e){return zt(Me.ApertureValue,e)},"exif:GPSLatitude":Vt,"exif:GPSLongitude":Vt,"exif:FNumber":function(e){return zt(Me.FNumber,e)},"exif:FocalLength":function(e){return zt(Me.FocalLength,e)},"exif:FocalPlaneResolutionUnit":function(e){return Me.FocalPlaneResolutionUnit(parseInt(e,10))},"exif:ColorSpace":function(e){return Me.ColorSpace(function(e){return"0x"===e.substring(0,2)?parseInt(e.substring(2),16):parseInt(e,10)}(e))},"exif:ComponentsConfiguration":function(e,t){if(/^\d, \d, \d, \d$/.test(t)){var n=t.split(", ").map((function(e){return e.charCodeAt(0)}));return Me.ComponentsConfiguration(n)}return t},"exif:Contrast":function(e){return Me.Contrast(parseInt(e,10))},"exif:CustomRendered":function(e){return Me.CustomRendered(parseInt(e,10))},"exif:ExposureMode":function(e){return Me.ExposureMode(parseInt(e,10))},"exif:ExposureProgram":function(e){return Me.ExposureProgram(parseInt(e,10))},"exif:ExposureTime":function(e){return Ht(e)?Me.ExposureTime(e.split("/").map((function(e){return parseInt(e,10)}))):e},"exif:MeteringMode":function(e){return Me.MeteringMode(parseInt(e,10))},"exif:Saturation":function(e){return Me.Saturation(parseInt(e,10))},"exif:SceneCaptureType":function(e){return Me.SceneCaptureType(parseInt(e,10))},"exif:Sharpness":function(e){return Me.Sharpness(parseInt(e,10))},"exif:ShutterSpeedValue":function(e){return zt(Me.ShutterSpeedValue,e)},"exif:WhiteBalance":function(e){return Me.WhiteBalance(parseInt(e,10))}};function zt(e,t){return Ht(t)?e(t.split("/")):t}function Ht(e){return/^-?\d+\/-?\d+$/.test(e)}function Vt(e){var t,n=(2,function(e){if(Array.isArray(e))return e}(t=e.split(","))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=1,f=0;try{for(o=(n=n.call(e)).next,0;!(c=(r=o.call(n)).done)&&(u.push(r.value),2!==u.length);c=1);}catch(e){f=1,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return u}}(t)||function(e,t){if(e){if("string"==typeof e)return jt(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jt(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=n[0],i=n[1];if(void 0!==r&&void 0!==i){var o=parseFloat(r),a=parseFloat(i),u=i.charAt(i.length-1);if(!Number.isNaN(o)&&!Number.isNaN(a))return""+(o+a/60)+u}return e}function Xt(e){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(e)}function Jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Yt={read:function(e,t){var n={};if("string"==typeof e)return Kt(n,e),n;var r,i=(r=function(e,t){if(0===t.length)return[];var n=[qt(e,t.slice(0,1))];return t.length>1&&n.push(qt(e,t.slice(1))),n}(e,t),2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=1,f=0;try{for(o=(n=n.call(e)).next,0;!(c=(r=o.call(n)).done)&&(u.push(r.value),2!==u.length);c=1);}catch(e){f=1,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return u}}(r)||function(e,t){if(e){if("string"==typeof e)return Jt(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jt(e,2):void 0}}(r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],a=i[1],u=Kt(n,o);if(a){var c=Kt(n,a);u||c||(delete n._raw,Kt(n,qt(e,t)))}return n}};function qt(e,t){for(var n=t.reduce((function(e,t){return e+t.length}),0),r=new Uint8Array(n),i=0,o=0;o<t.length;o++){var a=t[o],u=e.buffer.slice(a.dataOffset,a.dataOffset+a.length);r.set(new Uint8Array(u),i),i+=a.length}return new DataView(r.buffer)}function Kt(e,t){try{var r=function(e){var t=function(){if("undefined"!=typeof DOMParser)return new DOMParser;try{return new(require("@xmldom/xmldom").DOMParser)({errorHandler:{error:function(){throw Error("Faulty XML")}}})}catch(e){return}}();if(!t)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),Error();var r="string"==typeof e?e:n(e,0,e.byteLength),i=t.parseFromString(r.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1"),"application/xml");if("parsererror"===i.documentElement.nodeName)throw Error(i.documentElement.textContent);return{doc:i,raw:r}}(t),i=r.doc,a=r.raw;return e._raw=(e._raw||"")+a,o(e,en(Zt($t(i),1))),1}catch(e){return 0}}function $t(e){for(var t=0;t<e.childNodes.length;t++){if("x:xmpmeta"===e.childNodes[t].tagName)return $t(e.childNodes[t]);if("rdf:RDF"===e.childNodes[t].tagName)return e.childNodes[t]}throw Error()}function Zt(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=function(e){for(var t=[],n=0;n<e.childNodes.length;n++)t.push(e.childNodes[n]);return t}(e);return 1===(t=r).length&&"#text"===t[0].nodeName?n?{}:function(e){return e.nodeValue}(r[0]):function(e){var t={};return e.forEach((function(e){if(function(e){return e.nodeName&&"#text"!==e.nodeName}(e)){var n=function(e){return{attributes:Qt(e),value:Zt(e)}}(e);void 0!==t[e.nodeName]?(Array.isArray(t[e.nodeName])||(t[e.nodeName]=[t[e.nodeName]]),t[e.nodeName].push(n)):t[e.nodeName]=n}})),t}(r)}function Qt(e){for(var t={},n=0;n<e.attributes.length;n++)t[e.attributes[n].nodeName]=decodeURIComponent(escape(e.attributes[n].value));return t}function en(e){var t={};if("string"==typeof e)return e;for(var n in e){var r=e[n];Array.isArray(r)||(r=[r]),r.forEach((function(e){o(t,tn(e.attributes)),"object"===Xt(e.value)&&o(t,cn(e.value))}))}return t}function tn(e){var t={};for(var n in e)try{nn(n)&&(t[on(n)]={value:e[n],attributes:{},description:an(e[n],n)})}catch(e){}return t}function nn(e){return"rdf:parseType"!==e&&!rn(e)}function rn(e){return"xmlns"===e.split(":")[0]}function on(e){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(e)?"RatingPercent":e.split(":")[1]}function an(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(Array.isArray(e)){var n=function(e){return e.map((function(e){return void 0!==e.value?an(e.value):an(e)})).join(", ")}(e);return t&&"function"==typeof Wt[t]?Wt[t](e,n):n}if("object"===Xt(e))return function(e){var t=[];for(var n in e)t.push("".concat(un(n),": ").concat(an(e[n].value)));return t.join("; ")}(e);try{return t&&"function"==typeof Wt[t]?Wt[t](e):decodeURIComponent(escape(e))}catch(t){return e}}function un(e){return"CiAdrCity"===e?"CreatorCity":"CiAdrCtry"===e?"CreatorCountry":"CiAdrExtadr"===e?"CreatorAddress":"CiAdrPcode"===e?"CreatorPostalCode":"CiAdrRegion"===e?"CreatorRegion":"CiEmailWork"===e?"CreatorWorkEmail":"CiTelWork"===e?"CreatorWorkPhone":"CiUrlWork"===e?"CreatorWorkUrl":e}function cn(e){var t={};for(var n in e)try{rn(n)||(t[on(n)]=fn(e[n],n))}catch(e){}return t}function fn(e,t){return function(e){return Array.isArray(e)}(e)?function(e,t){return Sn(e[e.length-1],t)}(e,t):function(e){return"Resource"===e.attributes["rdf:parseType"]&&"string"==typeof e.value&&""===e.value.trim()}(e)?{value:"",attributes:{},description:""}:sn(e)?ln(e,t):pn(e)?mn(e,t):gn(e)?vn(e,t):function(e){return void 0!==hn(e.value)}(e)?function(e,t){var n=hn(e.value).value["rdf:li"],r=dn(e),i=[];return void 0===n?n=[]:Array.isArray(n)||(n=[n]),n.forEach((function(e){i.push(function(e){return sn(e)?ln(e):pn(e)?mn(e).value:gn(e)?vn(e).value:Sn(e)}(e))})),{value:i,attributes:r,description:an(i,t)}}(e,t):Sn(e,t)}function sn(e){return"Resource"===e.attributes["rdf:parseType"]&&void 0!==e.value["rdf:value"]||void 0!==e.value["rdf:Description"]&&void 0!==e.value["rdf:Description"].value["rdf:value"]}function ln(e,t){var n=dn(e);void 0!==e.value["rdf:Description"]&&(e=e.value["rdf:Description"]),o(n,dn(e),function(e){var t={};for(var n in e.value)"rdf:value"===n||rn(n)||(t[on(n)]=e.value[n].value);return t}(e));var r=function(e){return yn(e.value["rdf:value"])||e.value["rdf:value"].value}(e);return{value:r,attributes:n,description:an(r,t)}}function dn(e){var t={};for(var n in e.attributes)"rdf:parseType"===n||"rdf:resource"===n||rn(n)||(t[on(n)]=e.attributes[n]);return t}function pn(e){return"Resource"===e.attributes["rdf:parseType"]||void 0!==e.value["rdf:Description"]&&void 0===e.value["rdf:Description"].value["rdf:value"]}function mn(e,t){var n={value:{},attributes:{}};return void 0!==e.value["rdf:Description"]&&(o(n.value,tn(e.value["rdf:Description"].attributes)),o(n.attributes,dn(e)),e=e.value["rdf:Description"]),o(n.value,cn(e.value)),n.description=an(n.value,t),n}function gn(e){return 0===Object.keys(e.value).length&&void 0===e.attributes["xml:lang"]&&void 0===e.attributes["rdf:resource"]}function vn(e,t){var n=tn(e.attributes);return{value:n,attributes:{},description:an(n,t)}}function hn(e){return e["rdf:Bag"]||e["rdf:Seq"]||e["rdf:Alt"]}function Sn(e,t){var n=yn(e)||en(e.value);return{value:n,attributes:dn(e),description:an(n,t)}}function yn(e){return e.attributes&&e.attributes["rdf:resource"]}var bn={desc:{name:"ICC Description"},cprt:{name:"ICC Copyright"},dmdd:{name:"ICC Device Model Description"},vued:{name:"ICC Viewing Conditions Description"},dmnd:{name:"ICC Device Manufacturer for Display"},tech:{name:"Technology"}},In={4:{name:"Preferred CMM type",value:function(e,t){return n(e,t,4)},description:function(e){return null!==e?Cn(e):""}},8:{name:"Profile Version",value:function(e,t){return e.getUint8(t).toString(10)+"."+(e.getUint8(t+1)>>4).toString(10)+"."+(e.getUint8(t+1)%16).toString(10)}},12:{name:"Profile/Device class",value:function(e,t){return n(e,t,4)},description:function(e){switch(e.toLowerCase()){case"scnr":return"Input Device profile";case"mntr":return"Display Device profile";case"prtr":return"Output Device profile";case"link":return"DeviceLink profile";case"abst":return"Abstract profile";case"spac":return"ColorSpace profile";case"nmcl":return"NamedColor profile";case"cenc":return"ColorEncodingSpace profile";case"mid ":return"MultiplexIdentification profile";case"mlnk":return"MultiplexLink profile";case"mvis":return"MultiplexVisualization profile";default:return e}}},16:{name:"Color Space",value:function(e,t){return n(e,t,4)}},20:{name:"Connection Space",value:function(e,t){return n(e,t,4)}},24:{name:"ICC Profile Date",value:function(e,t){return function(e,t){var n=e.getUint16(t),r=e.getUint16(t+2)-1,i=e.getUint16(t+4),o=e.getUint16(t+6),a=e.getUint16(t+8),u=e.getUint16(t+10);return new Date(Date.UTC(n,r,i,o,a,u))}(e,t).toISOString()}},36:{name:"ICC Signature",value:function(e,t){return n=e.buffer.slice(t,t+4),String.fromCharCode.apply(null,new Uint8Array(n));var n}},40:{name:"Primary Platform",value:function(e,t){return n(e,t,4)},description:function(e){return Cn(e)}},48:{name:"Device Manufacturer",value:function(e,t){return n(e,t,4)},description:function(e){return Cn(e)}},52:{name:"Device Model Number",value:function(e,t){return n(e,t,4)}},64:{name:"Rendering Intent",value:function(e,t){return e.getUint32(t)},description:function(e){switch(e){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return e}}},80:{name:"Profile Creator",value:function(e,t){return n(e,t,4)}}};function Cn(e){switch(e.toLowerCase()){case"appl":return"Apple";case"adbe":return"Adobe";case"msft":return"Microsoft";case"sunw":return"Sun Microsystems";case"sgi":return"Silicon Graphics";case"tgnt":return"Taligent";default:return e}}var An={read:function(e,t){try{for(var i=t.reduce((function(e,t){return e+t.length}),0),o=new Uint8Array(i),a=0,u=function(e){return Array.isArray(e)?new DataView(Uint8Array.from(e).buffer).buffer:e.buffer}(e),c=function(e){var n=t.find((function(t){return t.chunkNumber===e}));if(!n)throw Error("ICC chunk ".concat(e," not found"));var r=u.slice(n.offset,n.offset+n.length),i=new Uint8Array(r);o.set(i,a),a+=i.length},f=1;f<=t.length;f++)c(f);return function(e){var t=e.buffer,i=e.getUint32();if(e.byteLength!==i)throw Error("ICC profile length not matching");if(e.length<Un)throw Error("ICC profile too short");for(var o={},a=Object.keys(In),u=0;u<a.length;u++){var c=a[u],f=In[c],s=f.value(e,parseInt(c,10)),l=s;f.description&&(l=f.description(s)),o[f.name]={value:s,description:l}}if(xn(t.slice(36,40))!==En)throw Error("ICC profile: missing signature");if(function(e){return e.length<Pn+4}(t))return o;for(var d=e.getUint32(128),p=132,m=0;m<d;m++){if(On(t,p))return o;var g=n(e,p,4),v=e.getUint32(p+4),h=e.getUint32(p+8);if(v>t.length)return o;var S=n(e,v,4);if(S===Tn){var y=e.getUint32(v+8);if(y>h)return o;Ln(o,g,xn(t.slice(v+12,v+y+11)))}else if(S===wn){for(var b=e.getUint32(v+8),I=e.getUint32(v+12),C=v+16,A=[],U=0;U<b;U++){var P=n(e,C+0,2),E=n(e,C+2,2),T=e.getUint32(C+4),w=e.getUint32(C+8),F=r(e,v+w,T);A.push({languageCode:P,countryCode:E,text:F}),C+=I}if(1===b)Ln(o,g,A[0].text);else{for(var M={},D=0;D<A.length;D++)M["".concat(A[D].languageCode,"-").concat(A[D].countryCode)]=A[D].text;Ln(o,g,M)}}else S===Fn?Ln(o,g,xn(t.slice(v+8,v+h-7))):S===Mn&&Ln(o,g,xn(t.slice(v+8,v+12)));p+=12}return o}(new DataView(o.buffer))}catch(e){return{}}}},Un=84,Pn=128,En="acsp",Tn="desc",wn="mluc",Fn="text",Mn="sig ",Dn=12;function On(e,t){return e.length<t+Dn}function xn(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function Ln(e,t,n){bn[t]?e[bn[t].name]={value:n,description:n}:e[t]={value:n,description:n}}var Rn={read:function(e,t){return{"Image Width":Nn(e,t),"Image Height":kn(e,t),"Bit Depth":Gn(e,t),"Color Type":Bn(e,t),Compression:_n(e,t),Filter:jn(e,t),Interlace:Wn(e,t)}}};function Nn(e,t){if(!(t+0+4>e.byteLength)){var n=Je.getLongAt(e,t);return{value:n,description:"".concat(n,"px")}}}function kn(e,t){if(!(t+4+4>e.byteLength)){var n=Je.getLongAt(e,t+4);return{value:n,description:"".concat(n,"px")}}}function Gn(e,t){if(!(t+8+1>e.byteLength)){var n=Je.getByteAt(e,t+8);return{value:n,description:"".concat(n)}}}function Bn(e,t){if(!(t+9+1>e.byteLength)){var n=Je.getByteAt(e,t+9);return{value:n,description:{0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"}[n]||"Unknown"}}}function _n(e,t){if(!(t+10+1>e.byteLength)){var n=Je.getByteAt(e,t+10);return{value:n,description:0===n?"Deflate/Inflate":"Unknown"}}}function jn(e,t){if(!(t+11+1>e.byteLength)){var n=Je.getByteAt(e,t+11);return{value:n,description:0===n?"Adaptive":"Unknown"}}}function Wn(e,t){if(!(t+12+1>e.byteLength)){var n=Je.getByteAt(e,t+12);return{value:n,description:{0:"Noninterlaced",1:"Adam7 Interlace"}[n]||"Unknown"}}}var zn={read:function(e,t){return t.reduce((function(t,n){var r=n.offset,o=n.length,a=n.type,u=function(e,t,n,r){for(var o=[],a=[],u=[],c=[],f=Hn,s=0;s<n&&t+s<e.byteLength;s++){if(f===Vn){if(0!==e.getUint8(t+s))return{};s+=qn,f=Kn(r,f)}var l=e.getUint8(t+s);0===l?f=Kn(r,f):f===Hn?o.push(l):f===Xn?a.push(l):f===Jn?u.push(l):c.push(l)}var d=i(c);return{name:$n(r,a,o),value:d,description:r===he?Dt.decode("UTF-8",c):d}}(e,r,o,a),c=u.name,f=u.value,s=u.description;return c&&(t[c]={value:f,description:s}),t}),{})}},Hn="STATE_KEYWORD",Vn="STATE_COMPRESSION",Xn="STATE_LANG",Jn="STATE_TRANSLATED_KEYWORD",Yn="STATE_TEXT",qn=2;function Kn(e,t){return t===Hn&&e===he?Vn:t===Vn?Xn:t===Xn?Jn:Yn}function $n(e,t,n){var r=i(n);if("tEXt"===e||0===t.length)return r;var o=i(t);return"".concat(r," (").concat(o,")")}var Zn={read:function(e,t){for(var r={},i=0;i<t.length;i++){var o=Je.getLongAt(e,t[i]+pe),a=n(e,t[i]+me,de);a===Se?(r["Pixels Per Unit X"]=Qn(e,t[i],o),r["Pixels Per Unit Y"]=er(e,t[i],o),r["Pixel Units"]=tr(e,t[i],o)):a===ye&&(r["Modify Date"]=nr(e,t[i],o))}return r}};function Qn(e,t,n){if(rr(e,t,n,0,4)){var r=Je.getLongAt(e,t+ge+0);return{value:r,description:""+r}}}function er(e,t,n){if(rr(e,t,n,4,4)){var r=Je.getLongAt(e,t+ge+4);return{value:r,description:""+r}}}function tr(e,t,n){if(rr(e,t,n,8,1)){var r=Je.getByteAt(e,t+ge+8);return{value:r,description:1===r?"meters":"Unknown"}}}function nr(e,t,n){if(rr(e,t,n,0,7)){var r=Je.getShortAt(e,t+ge),i=Je.getByteAt(e,t+ge+2),o=Je.getByteAt(e,t+ge+3),a=Je.getByteAt(e,t+ge+4),u=Je.getByteAt(e,t+ge+5),c=Je.getByteAt(e,t+ge+6);return{value:[r,i,o,a,u,c],description:"".concat(ir(r,4),"-").concat(ir(i,2),"-").concat(ir(o,2)," ").concat(ir(a,2),":").concat(ir(u,2),":").concat(ir(c,2))}}}function rr(e,t,n,r,i){return r+i<=n&&t+ge+r+i<=e.byteLength}function ir(e,t){return"".concat("0".repeat(t-(""+e).length)).concat(e)}var or={read:function(e,t){var n={},r=Je.getByteAt(e,t);return n.Alpha=function(e){var t=16&e;return{value:t?1:0,description:t?"Yes":"No"}}(r),n.Animation=function(e){var t=2&e;return{value:t?1:0,description:t?"Yes":"No"}}(r),n.ImageWidth=cr(e,t+ar),n.ImageHeight=cr(e,t+ur),n}},ar=4,ur=7;function cr(e,t){var n=Je.getByteAt(e,t)+256*Je.getByteAt(e,t+1)+65536*Je.getByteAt(e,t+2)+1;return{value:n,description:n+"px"}}var fr=[6,7,99],sr={get:function(e,t,n){if((i=t)&&(void 0===i.Compression||fr.includes(i.Compression.value))&&i.JPEGInterchangeFormat&&i.JPEGInterchangeFormat.value&&i.JPEGInterchangeFormatLength&&i.JPEGInterchangeFormatLength.value){t.type="image/jpeg";var r=n+t.JPEGInterchangeFormat.value;t.image=e.buffer.slice(r,r+t.JPEGInterchangeFormatLength.value),a(t,"base64",(function(){return u(this.image)}))}var i;return t}};function lr(e){this.name="MetadataMissingError",this.message=e||"No Exif data",this.stack=Error().stack}lr.prototype=Error();var dr={MetadataMissingError:lr},pr={load:gr,loadView:hr,errors:dr},mr=dr;function gr(e,t){return function(e){return"string"==typeof e}(e)?function(e,t){return/^https?:\/\//.test(e)?"undefined"!=typeof fetch?function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).length,n={method:"GET"};return Number.isInteger(t)&&t>=0&&(n.headers={range:"bytes=0-".concat(t-1)}),fetch(e,n).then((function(e){return e.arrayBuffer()}))}(e,t):function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).length;return new Promise((function(n,r){var i={};Number.isInteger(t)&&t>=0&&(i.headers={range:"bytes=0-".concat(t-1)});var o=function(e){return/^https:\/\//.test(e)?require("https").get:require("http").get}(e);o(e,i,(function(e){if(e.statusCode>=200&&e.statusCode<=299){var t=[];e.on("data",(function(e){return t.push(Buffer.from(e))})),e.on("error",(function(e){return r(e)})),e.on("end",(function(){return n(Buffer.concat(t))}))}else r("Could not fetch file: ".concat(e.statusCode," ").concat(e.statusMessage)),e.resume()})).on("error",(function(e){return r(e)}))}))}(e,t):function(e){return/^data:[^;,]*(;base64)?,/.test(e)}(e)?Promise.resolve(function(e){var t=e.substring(e.indexOf(",")+1);if(-1!==e.indexOf(";base64")){if("undefined"!=typeof atob)return Uint8Array.from(atob(t),(function(e){return e.charCodeAt(0)})).buffer;if("undefined"==typeof Buffer)return;return"undefined"!=typeof Buffer.from?Buffer.from(t,"base64"):new Buffer(t,"base64")}var n=decodeURIComponent(t);return"undefined"!=typeof Buffer?"undefined"!=typeof Buffer.from?Buffer.from(n):new Buffer(n):Uint8Array.from(n,(function(e){return e.charCodeAt(0)})).buffer}(e)):function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).length;return new Promise((function(n,r){var i=function(){try{return require("fs")}catch(e){return}}();i.open(e,(function(o,a){o?r(o):i.stat(e,(function(o,u){if(o)r(o);else{var c=Math.min(u.size,void 0!==t?t:u.size),f=Buffer.alloc(c),s={buffer:f,length:c};i.read(a,s,(function(t){t?r(t):i.close(a,(function(t){t&&console.warn("Could not close file ".concat(e,":"),t),n(f)}))}))}}))}))}))}(e,t)}(e,t).then((function(e){return vr(e,t)})):function(e){return"undefined"!=typeof window&&"undefined"!=typeof File&&e instanceof File}(e)?(n=e,new Promise((function(e,t){var r=new FileReader;r.onload=function(t){return e(t.target.result)},r.onerror=function(){return t(r.error)},r.readAsArrayBuffer(n)}))).then((function(e){return vr(e,t)})):vr(e,t);var n}function vr(e,t){return function(e){try{return Buffer.isBuffer(e)}catch(e){return 0}}(e)&&(e=new Uint8Array(e).buffer),hr(function(e){try{return new DataView(e)}catch(t){return new f(e)}}(e),t)}function hr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{expanded:0,includeUnknown:0},n=t.expanded,r=void 0===n?0:n,a=t.includeUnknown,u=void 0===a?0:a,c=0,f={},l=we.parseAppMarkers(e),d=l.fileType,m=l.fileDataOffset,g=l.jfifDataOffset,v=l.tiffHeaderOffset,h=l.iptcDataOffset,S=l.xmpChunks,y=l.iccChunks,b=l.mpfDataOffset,I=l.pngHeaderOffset,C=l.pngTextChunks,A=l.pngChunkOffsets,U=l.vp8xChunkOffset;if(s.USE_JPEG&&s.USE_FILE&&function(e){return void 0!==e}(m)){c=1;var P=mt.read(e,m);r?f.file=P:f=o({},f,P)}if(s.USE_JPEG&&s.USE_JFIF&&function(e){return void 0!==e}(g)){c=1;var E=It.read(e,g);r?f.jfif=E:f=o({},f,E)}if(s.USE_EXIF&&function(e){return void 0!==e}(v)){c=1;var T=at.read(e,v,u);if(T.Thumbnail&&(f.Thumbnail=T.Thumbnail,delete T.Thumbnail),r?(f.exif=T,function(e){if(e.exif){if(e.exif.GPSLatitude&&e.exif.GPSLatitudeRef)try{e.gps=e.gps||{},e.gps.Latitude=p(e.exif.GPSLatitude.value),"S"===e.exif.GPSLatitudeRef.value.join("")&&(e.gps.Latitude=-e.gps.Latitude)}catch(e){}if(e.exif.GPSLongitude&&e.exif.GPSLongitudeRef)try{e.gps=e.gps||{},e.gps.Longitude=p(e.exif.GPSLongitude.value),"W"===e.exif.GPSLongitudeRef.value.join("")&&(e.gps.Longitude=-e.gps.Longitude)}catch(e){}if(e.exif.GPSAltitude&&e.exif.GPSAltitudeRef)try{e.gps=e.gps||{},e.gps.Altitude=e.exif.GPSAltitude.value[0]/e.exif.GPSAltitude.value[1],1===e.exif.GPSAltitudeRef.value&&(e.gps.Altitude=-e.gps.Altitude)}catch(e){}}}(f)):f=o({},f,T),s.USE_TIFF&&s.USE_IPTC&&T["IPTC-NAA"]&&!Sr(h)){var w=xt.read(T["IPTC-NAA"].value,0,u);r?f.iptc=w:f=o({},f,w)}if(s.USE_TIFF&&s.USE_XMP&&T.ApplicationNotes&&!yr(S)){var F=Yt.read(i(T.ApplicationNotes.value));r?f.xmp=F:(delete F._raw,f=o({},f,F))}if(s.USE_TIFF&&s.USE_ICC&&T.ICC_Profile&&!br(y)){var M=An.read(T.ICC_Profile.value,[{offset:0,length:T.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);r?f.icc=M:f=o({},f,M)}}if(s.USE_JPEG&&s.USE_IPTC&&Sr(h)){c=1;var D=xt.read(e,h,u);r?f.iptc=D:f=o({},f,D)}if(s.USE_XMP&&yr(S)){c=1;var O=Yt.read(e,S);r?f.xmp=O:(delete O._raw,f=o({},f,O))}if((s.USE_JPEG||s.USE_WEBP)&&s.USE_ICC&&br(y)){c=1;var x=An.read(e,y);r?f.icc=x:f=o({},f,x)}if(s.USE_MPF&&function(e){return void 0!==e}(b)){c=1;var L=ut.read(e,b,u);r?f.mpf=L:f=o({},f,L)}if(s.USE_PNG&&s.USE_PNG_FILE&&void 0!==I){c=1;var R=Rn.read(e,I);r?(f.png=f.png?o({},f.png,R):R,f.pngFile=R):f=o({},f,R)}if(s.USE_PNG&&function(e){return void 0!==e}(C)){c=1;var N=zn.read(e,C);r?(f.png=f.png?o({},f.png,N):N,f.pngText=N):f=o({},f,N)}if(s.USE_PNG&&function(e){return void 0!==e}(A)){c=1;var k=Zn.read(e,A);r?f.png=f.png?o({},f.png,k):k:f=o({},f,k)}if(s.USE_WEBP&&function(e){return void 0!==e}(U)){c=1;var G=or.read(e,U);r?f.riff=f.riff?o({},f.riff,G):G:f=o({},f,G)}var B=(s.USE_JPEG||s.USE_WEBP)&&s.USE_EXIF&&s.USE_THUMBNAIL&&sr.get(e,f.Thumbnail,v);if(B?(c=1,f.Thumbnail=B):delete f.Thumbnail,d&&(r?(f.file||(f.file={}),f.file.FileType=d):f.FileType=d),!c)throw new dr.MetadataMissingError;return f}function Sr(e){return void 0!==e}function yr(e){return Array.isArray(e)&&e.length>0}function br(e){return Array.isArray(e)&&e.length>0}return t}()}));
|
|
2
2
|
//# sourceMappingURL=exif-reader.js.map
|
|
Binary file
|