exifreader
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -1,2 +0,2 @@ | ||
!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(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e){return e.map((function(e){return String.fromCharCode(e)}))}Object.defineProperty(e,"__esModule",{value:!0}),e.getStringFromDataView=function(e,n,r){for(var i=[],o=0;o<r&&n+o<e.byteLength;o++)i.push(e.getUint8(n+o,!1));return t(i).join("")},e.getUnicodeStringFromDataView=function(e,n,r){for(var i=[],o=0;o<r&&n+o<e.byteLength;o+=2)i.push(e.getUint16(n+o));return t(i).join("")},e.objectAssign=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n.length;i<o;i++){var a=n[i];for(var u in a)e[u]=a[u]}return e}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e){return e.map((function(e){return String.fromCharCode(e)})).join("")}Object.defineProperty(e,"__esModule",{value:!0}),e.getStringValue=t,e.getEncodedString=function(e){if(e.length>=8){var n=t(e.slice(0,8));if("ASCII\0\0\0"===n)return t(e.slice(8));if("JIS\0\0\0\0\0"===n)return"[JIS encoded text]";if("UNICODE\0"===n)return"[Unicode encoded text]";if("\0\0\0\0\0\0\0\0"===n)return"[Undefined encoding]"}return"Undefined"},e.getCharacterArray=function(e){return e.split("").map((function(e){return e.charCodeAt(0)}))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={BIG_ENDIAN:19789,LITTLE_ENDIAN:18761,getByteOrder:function(e,t){if(18761===e.getUint16(t))return 18761;if(19789===e.getUint16(t))return 19789;throw new Error("Illegal byte order value. Faulty image.")}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(2)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=t)&&n.__esModule?n:{default:n},i={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},o={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13};function a(e,t){return e.getUint8(t)}function u(e,t,n){return e.getUint32(t,n===r.default.LITTLE_ENDIAN)}function c(e,t,n){return e.getInt32(t,n===r.default.LITTLE_ENDIAN)}e.default={getAsciiValue:function(e){return e.map((function(e){return String.fromCharCode(e)}))},getByteAt:a,getAsciiAt:function(e,t){return e.getUint8(t)},getShortAt:function(e,t,n){return e.getUint16(t,n===r.default.LITTLE_ENDIAN)},getLongAt:u,getRationalAt:function(e,t,n){return[u(e,t,n),u(e,t+4,n)]},getUndefinedAt:function(e,t){return a(e,t)},getSlongAt:c,getSrationalAt:function(e,t,n){return[c(e,t,n),c(e,t+4,n)]},getIfdPointerAt:function(e,t,n){return u(e,t,n)},typeSizes:i,tagTypes:o,getTypeSize:function(e){if(void 0===o[e])throw new Error("No such type found.");return i[o[e]]}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={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"}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0),n(6),n(7),n(8),n(14),n(15),n(19),n(22),n(24),n(25)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,u,c,f,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errors=void 0,e.load=A,e.loadView=P;var s=b(n),l=b(r),p=b(i),g=b(o),m=b(a),v=b(u),h=b(c),y=b(f),S=b(d);function b(e){return e&&e.__esModule?e:{default:e}}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{expanded:!1};return P(C(e),t)}function C(e){try{return new DataView(e)}catch(t){return new s.default(e)}}function P(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{expanded:!1},r=!1,i={},o=l.default.parseAppMarkers(e),a=o.fileDataOffset,u=o.tiffHeaderOffset,c=o.iptcDataOffset,f=o.xmpChunks,d=o.iccChunks,s=o.pngHeaderOffset;if(w(a)){r=!0;var b=g.default.read(e,a);n.expanded?i.file=b:i=(0,t.objectAssign)({},i,b)}if(I(u)){r=!0;var A=p.default.read(e,u);n.expanded?i.exif=A:i=(0,t.objectAssign)({},i,A)}if(D(c)){r=!0;var C=m.default.read(e,c);n.expanded?i.iptc=C:i=(0,t.objectAssign)({},i,C)}if(U(f)){r=!0;var P=v.default.read(e,f);n.expanded?i.xmp=P:i=(0,t.objectAssign)({},i,P)}if(M(d)){r=!0;var F=h.default.read(e,d);n.expanded?i.icc=F:i=(0,t.objectAssign)({},i,F)}if(_(s)){r=!0;var O=y.default.read(e,s);n.expanded?i.pngFile=O:i=(0,t.objectAssign)({},i,O)}if(!r)throw new S.default.MetadataMissingError;return i}function w(e){return void 0!==e}function I(e){return void 0!==e}function D(e){return void 0!==e}function U(e){return Array.isArray(e)&&e.length>0}function M(e){return Array.isArray(e)&&e.length>0}function _(e){return void 0!==e}e.default={load:A,loadView:P,errors:S.default},e.errors=S.default})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="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=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=function(){function e(n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e){return"object"!==(void 0===e?"undefined":t(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}(n))throw new Error("DataView: Passed buffer type is unsupported.");this.buffer=n,this.byteLength=this.buffer.length}return n(e,[{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)}}]),e}();e.default=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0),n(2)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n)&&r.__esModule?r:{default:r},o=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"],a=4+"ICC_PROFILE\0".length,u=a+1;function c(e,t){return 65472===e.getUint16(t,!1)}function f(e,t){return 65474===e.getUint16(t,!1)}function d(e,n){var r="ICC_PROFILE\0".length;return 65506===e.getUint16(n,!1)&&"ICC_PROFILE\0"===(0,t.getStringFromDataView)(e,n+4,r)}function s(e,n){var r="Exif".length;return 65505===e.getUint16(n,!1)&&"Exif"===(0,t.getStringFromDataView)(e,n+4,r)&&0===e.getUint8(n+4+r,!1)}function l(e,n){return 65505===e.getUint16(n,!1)&&function(e,n){var r="http://ns.adobe.com/xap/1.0/\0".length;return"http://ns.adobe.com/xap/1.0/\0"===(0,t.getStringFromDataView)(e,n+4,r)}(e,n)}function p(e,n){return 65505===e.getUint16(n,!1)&&function(e,n){var r="http://ns.adobe.com/xmp/extension/\0".length;return"http://ns.adobe.com/xmp/extension/\0"===(0,t.getStringFromDataView)(e,n+4,r)}(e,n)}function g(e,t){return{dataOffset:e+33,length:t-31}}function m(e,t){return{dataOffset:e+79,length:t-77}}function v(e,n){var r="Photoshop 3.0".length;return 65517===e.getUint16(n,!1)&&"Photoshop 3.0"===(0,t.getStringFromDataView)(e,n+4,r)&&0===e.getUint8(n+4+r,!1)}function h(e,t){var n=e.getUint16(t,!1);return n>=65504&&n<=65519||65534===n||65472===n||65474===n||65476===n||65499===n||65501===n||65498===n}function y(e,n){return"IHDR"===(0,t.getStringFromDataView)(e,n+4,4)}function S(e,n){return"iTXt"===(0,t.getStringFromDataView)(e,n+4,4)&&"XML:com.adobe.xmp"===(0,t.getStringFromDataView)(e,n+8,"XML:com.adobe.xmp".length)}e.default={parseAppMarkers:function(e){if(function(e){return e.byteLength>=4&&function(e){var t=e.getUint16(0)===i.default.LITTLE_ENDIAN;return 42===e.getUint16(2,t)}(e)}(e))return{hasAppMarkers:!0,tiffHeaderOffset:0};if(function(e){return e.byteLength>=2&&65496===e.getUint16(0,!1)}(e))return function(e){for(var t=2,n=void 0,r=void 0,i=void 0,o=void 0,y=void 0,S=void 0,b=void 0;t+4+5<=e.byteLength;){if(c(e,t))r=t+2;else if(f(e,t))i=t+2;else if(s(e,t))n=e.getUint16(t+2,!1),o=t+10;else if(l(e,t))S||(S=[]),n=e.getUint16(t+2,!1),S.push(g(t,n));else if(p(e,t))S||(S=[]),n=e.getUint16(t+2,!1),S.push(m(t,n));else if(v(e,t))n=e.getUint16(t+2,!1),y=t+18;else if(d(e,t)){n=e.getUint16(t+2,!1);var A=t+18,C=n-16,P=e.getUint8(t+a,!1),w=e.getUint8(t+u,!1);b||(b=[]),b.push({offset:A,length:C,chunkNumber:P,chunksTotal:w})}else{if(!h(e,t))break;n=e.getUint16(t+2,!1)}t+=2+n}return{hasAppMarkers:t>2,fileDataOffset:r||i,tiffHeaderOffset:o,iptcDataOffset:y,xmpChunks:S,iccChunks:b}}(e);if(function(e){return"PNG\r\n\n"===(0,t.getStringFromDataView)(e,0,"PNG\r\n\n".length)}(e))return function(e){for(var t={hasAppMarkers:!1},n="PNG\r\n\n".length;n+4+4<=e.byteLength;)y(e,n)?(t.hasAppMarkers=!0,t.pngHeaderOffset=n+8):S(e,n)&&(t.hasAppMarkers=!0,t.xmpChunks=[{dataOffset:n+8+"XML:com.adobe.xmp".length,length:e.getUint32(n+0)-"XML:com.adobe.xmp".length}]),n+=e.getUint32(n+0)+4+4+4;return t}(e);if(function(e){var n=(0,t.getStringFromDataView)(e,4+"ftyp".length,4);return"ftyp"===(0,t.getStringFromDataView)(e,4,"ftyp".length)&&-1!==o.indexOf(n)}(e))return function(e){for(var n="Exif".length,r=4+"ftyp".length+4;r+n+2+2<=e.byteLength;){var o=e.getUint16(r+n+2,!1);if("Exif"===(0,t.getStringFromDataView)(e,r,n)&&0===e.getUint8(r+n,!1)&&(o===i.default.LITTLE_ENDIAN||o===i.default.BIG_ENDIAN))return{hasAppMarkers:!0,tiffHeaderOffset:r+n+2};r++}return{hasAppMarkers:!1}}(e);throw new Error("Invalid image format")}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0),n(2),n(3),n(9)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=c(n),a=c(r),u=c(i);function c(e){return e&&e.__esModule?e:{default:e}}var f={1:a.default.getByteAt,2:a.default.getAsciiAt,3:a.default.getShortAt,4:a.default.getLongAt,5:a.default.getRationalAt,7:a.default.getUndefinedAt,9:a.default.getSlongAt,10:a.default.getSrationalAt,13:a.default.getIfdPointerAt};function d(e,t,n,r,i){var o=a.default.getTypeSize("SHORT"),u={},c=a.default.getShortAt(e,r,i);r+=o;for(var f=0;f<c;f++){var d=s(e,t,n,r,i);void 0!==d&&(u[d.name]={id:d.id,value:d.value,description:d.description}),r+=12}return u}function s(e,t,n,r,i){var o=a.default.getTypeSize("SHORT"),c=o+a.default.getTypeSize("SHORT"),f=c+a.default.getTypeSize("LONG"),d=a.default.getShortAt(e,r,i),s=a.default.getShortAt(e,r+o,i),g=a.default.getLongAt(e,r+c,i),m=void 0;if(void 0!==a.default.typeSizes[s]){if(function(e,t){return a.default.typeSizes[e]*t<=a.default.getTypeSize("LONG")}(s,g))m=l(e,r+f,s,g,i);else{var v=a.default.getLongAt(e,r+f,i);m=function(e,t,n,r,i){return t+n+a.default.typeSizes[r]*i<=e.byteLength}(e,n,v,s,g)?l(e,n+v,s,g,i):"<faulty value>"}if(s===a.default.tagTypes.ASCII&&(m=function(e){try{return e.map((function(e){return decodeURIComponent(escape(e))}))}catch(t){return e}}(m=function(e){for(var t=[],n=0,r=0,i=e.length;r<i;r++){var o=e[r];"\0"!==o?(void 0===t[n]&&(t[n]=""),t[n]+=o):n++}return t}(m))),void 0!==u.default[t][d]){var h=void 0,y=void 0;if(void 0!==u.default[t][d].name&&void 0!==u.default[t][d].description){h=u.default[t][d].name;try{y=u.default[t][d].description(m)}catch(e){y=p(m)}}else s===a.default.tagTypes.RATIONAL||s===a.default.tagTypes.SRATIONAL?(h=u.default[t][d],y=""+m[0]/m[1]):(h=u.default[t][d],y=p(m));return{id:d,name:h,value:m,description:y}}return{id:d,name:"undefined-"+d,value:m,description:m}}}function l(e,t,n,r,i){for(var o=[],u=0;u<r;u++)o.push(f[n](e,t,i)),t+=a.default.typeSizes[n];return n===a.default.tagTypes.ASCII?o=a.default.getAsciiValue(o):1===o.length&&(o=o[0]),o}function p(e){return e instanceof Array?e.join(", "):e}e.default={read:function(e,n){var r=o.default.getByteOrder(e,n),i=function(e,t,n){return d(e,"0th",t,function(e,t,n){return t+a.default.getLongAt(e,t+4,n)}(e,t,n),n)}(e,n,r);return i=function(e,n,r,i){return void 0!==e["Interoperability IFD Pointer"]?(0,t.objectAssign)(e,d(n,"interoperability",r,r+e["Interoperability IFD Pointer"].value,i)):e}(i=function(e,n,r,i){return void 0!==e["GPS Info IFD Pointer"]?(0,t.objectAssign)(e,d(n,"gps",r,r+e["GPS Info IFD Pointer"].value,i)):e}(i=function(e,n,r,i){return void 0!==e["Exif IFD Pointer"]?(0,t.objectAssign)(e,d(n,"exif",r,r+e["Exif IFD Pointer"].value,i)):e}(i,e,n,r),e,n,r),e,n,r)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0),n(10),n(11),n(12),n(13)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=d(n),u=d(r),c=d(i),f=d(o);function d(e){return e&&e.__esModule?e:{default:e}}var s=(0,t.objectAssign)({},a.default,u.default);e.default={"0th":s,exif:s,gps:c.default,interoperability:f.default}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(4)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=t)&&n.__esModule?n:{default:n};e.default={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:function(e){return""+Math.round(e[0]/e[1])}},283:{name:"YResolution",description:function(e){return""+Math.round(e[0]/e[1])}},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:function(e){return 2===e?"inches":3===e?"centimeters":"Unknown"}},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 e[0]+"/"+e[1]})).join(", ")}},319:{name:"PrimaryChromaticities",description:function(e){return e.map((function(e){return e[0]+"/"+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:r.default.LightSource},50779:{name:"CalibrationIlluminant2",description:r.default.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"}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(1),n(4)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n)&&r.__esModule?r:{default:r},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.default={33434:{name:"ExposureTime",description:function(e){return 0!==e[0]?"1/"+Math.round(e[1]/e[0]):"0/"+e[1]}},33437:{name:"FNumber",description:function(e){return"f/"+e[0]/e[1]}},34850:{name:"ExposureProgram",description: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"}},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(0,t.getStringValue)(e)}},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description: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("")}},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:function(e){return"1/"+Math.round(Math.pow(2,e[0]/e[1]))}},37378:{name:"ApertureValue",description:function(e){return Math.pow(Math.sqrt(2),e[0]/e[1]).toFixed(2)}},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: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"}},37384:{name:"LightSource",description:i.default.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:function(e){return e[0]/e[1]+" mm"}},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: "+e[0]+", Y: "+e[1]:3===e.length?"Circle; X: "+e[0]+", Y: "+e[1]+", diameter: "+e[2]:4===e.length?"Rectangle; X: "+e[0]+", Y: "+e[1]+", width: "+e[2]+", height: "+e[3]:"Unknown"}},37500:{name:"MakerNote",description:function(){return"[Raw maker note data]"}},37510:{name:"UserComment",description:t.getEncodedString},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:function(e){return 1===e?"sRGB":65535===e?"Uncalibrated":"Unknown"}},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:function(e){return 2===e?"inches":3===e?"centimeters":"Unknown"}},41492:{name:"SubjectLocation",description:function(e){var t=o(e,2);return"X: "+t[0]+", Y: "+t[1]}},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:function(e){return 0===e?"Normal process":1===e?"Custom process":"Unknown"}},41986:{name:"ExposureMode",description:function(e){return 0===e?"Auto exposure":1===e?"Manual exposure":2===e?"Auto bracket":"Unknown"}},41987:{name:"WhiteBalance",description:function(e){return 0===e?"Auto white balance":1===e?"Manual white balance":"Unknown"}},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:function(e){return 0===e?"Standard":1===e?"Landscape":2===e?"Portrait":3===e?"Night scene":"Unknown"}},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:function(e){return 0===e?"Normal":1===e?"Soft":2===e?"Hard":"Unknown"}},41993:{name:"Saturation",description:function(e){return 0===e?"Normal":1===e?"Low saturation":2===e?"High saturation":"Unknown"}},41994:{name:"Sharpness",description:function(e){return 0===e?"Normal":1===e?"Soft":2===e?"Hard":"Unknown"}},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=e[0][0]/e[0][1]+"-"+e[1][0]/e[1][1]+" mm";return 0===e[3][1]?t+" f/?":t+" f/"+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"}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(1)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.default={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:function(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}},3:{name:"GPSLongitudeRef",description:function(e){var t=e.join("");return"E"===t?"East longitude":"W"===t?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:function(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}},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(e,2),r=t[0]/t[1];return/^\d(\.|$)/.test(""+r)?"0"+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:t.getEncodedString},28:{name:"GPSAreaInformation",description:t.getEncodedString},29:"GPSDateStamp",30:{name:"GPSDifferential",description:function(e){return 0===e?"Measurement without differential correction":1===e?"Differential correction applied":"Unknown"}},31:"GPSHPositioningError"}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(1)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:function(e){return(0,t.getStringValue)(e)}},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(3)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=t)&&n.__esModule?n:{default:n};function i(e,t,n){if(!(3>n)){var i=r.default.getByteAt(e,t+2);return{value:i,description:""+i}}}function o(e,t,n){if(!(5>n)){var i=r.default.getShortAt(e,t+3);return{value:i,description:i+"px"}}}function a(e,t,n){if(!(7>n)){var i=r.default.getShortAt(e,t+5);return{value:i,description:i+"px"}}}function u(e,t,n,i){if(!(8+3*n>i)){for(var o=[],a=0;a<n;a++){var u=t+8+3*a;o.push([r.default.getByteAt(e,u),r.default.getByteAt(e,u+1),r.default.getByteAt(e,u+2)])}return{value:o,description:o.length>1?c(o)+f(o):""}}}function c(e){var t={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return e.map((function(e){return t[e[0]]})).join("")}function f(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]]}e.default={read:function(e,t){var n=function(e,t){return r.default.getShortAt(e,t)}(e,t),c=function(e,t,n){if(!(8>n)){var i=r.default.getByteAt(e,t+7);return{value:i,description:""+i}}}(e,t,n);return{"Bits Per Sample":i(e,t,n),"Image Height":o(e,t,n),"Image Width":a(e,t,n),"Color Components":c,Subsampling:c&&u(e,t,c.value,n)}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(16),n(17)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(t),i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(943868237!==e.getUint32(t,!1))throw new Error("Not an IPTC resource block.");return{type:e.getUint16(t+4,!1),size:e.getUint16(t+10,!1)}}function u(e){return 1028===e.type}function c(e){return e.size%2!=0?1:0}function f(e,t,n,i){if(function(e,t){return 28!==e.getUint8(t)}(e,t))return{tag:null,tagSize:0};var o=e.getUint16(t+1,!1),a=e.getUint16(t+3,!1),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:d(r.default.iptc[o],o,u),value:u,description:s(r.default.iptc[o],u,n,i)};return function(e){return r.default.iptc[e]&&r.default.iptc[e].repeatable}(o)&&(c.repeatable=!0),function(e){return r.default.iptc[e]&&void 0!==r.default.iptc[e].encoding_name}(o)&&(c.encoding=r.default.iptc[o].encoding_name(u)),{tag:c,tagSize:a}}function d(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-"+t}function s(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)?i.default.decode(r,t):t}e.default={read:function(e,t){try{var n=function(e,t){for(;t+12<=e.byteLength;){var n=a(e,t);if(u(n))return{naaBlock:n,dataOffset:t};t+=12+n.size+c(n)}throw new Error("No IPTC NAA resource block.")}(e,t);return function(e,t,n){for(var r={},i=void 0,o=(n+=12)+t.size;n<o&&n<e.byteLength;){var a=f(e,n,r,i),u=a.tag,c=a.tagSize;if(null===u)break;"encoding"in u&&(i=u.encoding),void 0===r[u.name]||void 0===u.repeatable?r[u.name]={id:u.id,value:u.value,description:u.description}:(r[u.name]instanceof Array||(r[u.name]=[{id:r[u.name].id,value:r[u.name].value,description:r[u.name].description}]),r[u.name].push({id:u.id,value:u.value,description:u.description})),n+=5+c}return r}(e,n.naaBlock,n.dataOffset)}catch(e){return{}}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(1)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e){var n=(0,t.getStringValue)(e);return n.length>=8?n.substr(0,4)+"-"+n.substr(4,2)+"-"+n.substr(6,2):n}function r(e){var n=(0,t.getStringValue)(e),r=n;return n.length>=6&&(r=n.substr(0,2)+":"+n.substr(2,2)+":"+n.substr(4,2),11===n.length&&(r+=n.substr(6,1)+n.substr(7,2)+":"+n.substr(9,2))),r}function i(e){var n=(0,t.getStringValue)(e);return"%G"===n?"UTF-8":"%5"===n?"Windows-1252":"%/G"===n?"UTF-8 Level 1":"%/H"===n?"UTF-8 Level 2":"%/I"===n?"UTF-8 Level 3":"/A"===n?"ISO-8859-1":"/B"===n?"ISO-8859-2":"/C"===n?"ISO-8859-3":"/D"===n?"ISO-8859-4":"/@"===n?"ISO-8859-5":"/G"===n?"ISO-8859-6":"/F"===n?"ISO-8859-7":"/H"===n?"ISO-8859-8":"Unknown"}Object.defineProperty(e,"__esModule",{value:!0}),e.default={iptc:{256:{name:"Model Version",description:function(e){return((e[0]<<8)+e[1]).toString()}},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:function(e){return((e[0]<<8)+e[1]).toString()}},278:{name:"File Format Version",description:function(e){return((e[0]<<8)+e[1]).toString()}},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:n},336:{name:"Time Sent",description:r},346:{name:"Coded Character Set",description:i,encoding_name:i},356:"UNO",376:{name:"ARM Identifier",description:function(e){return((e[0]<<8)+e[1]).toString()}},378:{name:"ARM Version",description:function(e){return((e[0]<<8)+e[1]).toString()}},512:{name:"Record Version",description:function(e){return((e[0]<<8)+e[1]).toString()}},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:function(e){return"01"===(0,t.getStringValue)(e)?"Additional Language":"Unknown"}},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:function(e){var n=(0,t.getStringValue)(e).split(":");return n[2]+(n[3]?"/"+n[3]:"")+(n[4]?"/"+n[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:!0},534:"Fixture Identifier",537:{name:"Keywords",repeatable:!0},538:{name:"Content Location Code",repeatable:!0},539:{name:"Content Location Name",repeatable:!0},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:function(e){var n=(0,t.getStringValue)(e);return"01"===n?"Object Kill":"02"===n?"Object Replace":"03"===n?"Object Append":"04"===n?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:!0},559:{name:"Reference Date",repeatable:!0},562:{name:"Reference Number",repeatable:!0},567:{name:"Date Created",description:n},572:{name:"Time Created",description:r},574:{name:"Digital Creation Date",description:n},575:{name:"Digital Creation Time",description:r},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:function(e){var n=(0,t.getStringValue)(e);return"a"===n?"morning":"p"===n?"evening":"b"===n?"both":"Unknown"}},592:{name:"By-line",repeatable:!0},597:{name:"By-line Title",repeatable:!0},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:!0},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:!0},637:{name:"Rasterized Caption",description:function(e){return e}},642:"Image Type",643:{name:"Image Orientation",description:function(e){var n=(0,t.getStringValue)(e);return"P"===n?"Portrait":"L"===n?"Landscape":"S"===n?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:function(e){var n=(0,t.getStringValue)(e),r=n.charAt(0),i=n.charAt(1),o="";return"1"===r?o+="Mono":"2"===r&&(o+="Stereo"),"A"===i?o+=", actuality":"C"===i?o+=", question and answer session":"M"===i?o+=", music, transmitted by itself":"Q"===i?o+=", response to a question":"R"===i?o+=", raw sound":"S"===i?o+=", scener":"V"===i?o+=", voicer":"W"===i&&(o+=", wrap"),""!==o?o:n}},663:{name:"Audio Sampling Rate",description:function(e){return parseInt((0,t.getStringValue)(e),10)+" Hz"}},664:{name:"Audio Sampling Resolution",description:function(e){var n=parseInt((0,t.getStringValue)(e),10);return n+(1===n?" bit":" bits")}},665:{name:"Audio Duration",description:function(e){var n=(0,t.getStringValue)(e);return n.length>=6?n.substr(0,2)+":"+n.substr(2,2)+":"+n.substr(4,2):n}},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 n=(e[0]<<8)+e[1];return 0===n?"No ObjectData":1===n?"IPTC-NAA Digital Newsphoto Parameter Record":2===n?"IPTC7901 Recommended Message Format":3===n?"Tagged Image File Format (Adobe/Aldus Image data)":4===n?"Illustrator (Adobe Graphics data)":5===n?"AppleSingle (Apple Computer Inc)":6===n?"NAA 89-3 (ANPA 1312)":7===n?"MacBinary II":8===n?"IPTC Unstructured Character Oriented File Format (UCOFF)":9===n?"United Press International ANPA 1312 variant":10===n?"United Press International Down-Load Message":11===n?"JPEG File Interchange (JFIF)":12===n?"Photo-CD Image-Pac (Eastman Kodak)":13===n?"Microsoft Bit Mapped Graphics File [*.BMP]":14===n?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":15===n?"Audio plus Moving Video [*.AVI] (Microsoft)":16===n?"PC DOS/Windows Executable Files [*.COM][*.EXE]":17===n?"Compressed Binary File [*.ZIP] (PKWare Inc)":18===n?"Audio Interchange File Format AIFF (Apple Computer Inc)":19===n?"RIFF Wave (Microsoft Corporation)":20===n?"Freehand (Macromedia/Aldus)":21===n?'Hypertext Markup Language "HTML" (The Internet Society)':22===n?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":23===n?"MPEG 2 Audio Layer 3, ISO/IEC":24===n?"Portable Document File (*.PDF) Adobe":25===n?"News Industry Text Format (NITF)":26===n?"Tape Archive (*.TAR)":27===n?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":28===n?"Ritzaus Bureau NITF version (RBNITF DTD)":29===n?"Corel Draw [*.CDR]":"Unknown format "+n}return(0,t.getStringValue)(e)}},713:{name:"ObjectData Preview File Format Version",description:function(e,n){var r={"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"}},i=(0,t.getStringValue)(e);if(n["ObjectData Preview File Format"]){var o=(0,t.getStringValue)(n["ObjectData Preview File Format"].value);if(r[o]&&r[o][i])return r[o][i]}return i}},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()}}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(18)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=t)&&n.__esModule?n:{default:n};e.default={decode:function(e,t){var n=r.default.get();if(void 0!==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}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={get:function(){if("undefined"!=typeof TextDecoder)return TextDecoder}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0),n(20),n(21)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a(n),o=a(r);function a(e){return e&&e.__esModule?e:{default:e}}var u="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};function c(e,t){for(var n=t.reduce((function(e,t){return e+t.length}),0),r=new Uint8Array(n),i=0,o=0,a=t.length;o<a;o++){var u=t[o],c=e.buffer.slice(u.dataOffset,u.dataOffset+u.length);r.set(new Uint8Array(c),i),i+=u.length}return new DataView(r.buffer)}function f(e,n){try{var r=function e(t){for(var n=0;n<t.childNodes.length;n++){if("x:xmpmeta"===t.childNodes[n].tagName)return e(t.childNodes[n]);if("rdf:RDF"===t.childNodes[n].tagName)return t.childNodes[n]}throw new Error}(function(e){var n=o.default.get();if(!n)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;var r=new n,i=(0,t.getStringFromDataView)(e,0,e.byteLength),a=r.parseFromString(i,"application/xml");if("parsererror"===a.documentElement.nodeName)throw new Error(a.documentElement.textContent);return a}(n));return(0,t.objectAssign)(e,v(d(r,!0)))}catch(t){return e}}function d(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=s(e);return l(n)?t?{}:p(n[0]):g(n)}function s(e){for(var t=[],n=0;n<e.childNodes.length;n++)t.push(e.childNodes[n]);return t}function l(e){return 1===e.length&&"#text"===e[0].nodeName}function p(e){return e.nodeValue}function g(e){var t={};return e.forEach((function(e){if(function(e){return e.nodeName&&"#text"!==e.nodeName}(e)){var n=function(e){return{attributes:m(e),value:d(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 m(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 v(e){var n={};if("string"==typeof e)return e;for(var r in e){var i=e[r];Array.isArray(i)||(i=[i]),i.forEach((function(e){(0,t.objectAssign)(n,h(e.attributes)),"object"===u(e.value)&&(0,t.objectAssign)(n,I(e.value))}))}return n}function h(e){var t={};for(var n in e)y(n)&&(t[b(n)]={value:e[n],attributes:{},description:A(e[n],n)});return t}function y(e){return"rdf:parseType"!==e&&!S(e)}function S(e){return"xmlns"===e.split(":")[0]}function b(e){return e.split(":")[1]}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(Array.isArray(e))return C(e);if("object"===(void 0===e?"undefined":u(e)))return P(e);try{return t&&"function"==typeof i.default[t]?i.default[t](e):decodeURIComponent(escape(e))}catch(t){return e}}function C(e){return e.map((function(e){return void 0!==e.value?A(e.value):A(e)})).join(", ")}function P(e){var t=[];for(var n in e)t.push(w(n)+": "+e[n].value);return t.join("; ")}function w(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 I(e){var t={};for(var n in e)S(n)||(t[b(n)]=D(e[n],n));return t}function D(e,n){return U(e)?M(e,n):function(e){return"Resource"===e.attributes["rdf:parseType"]||void 0!==e.value["rdf:Description"]&&void 0===e.value["rdf:Description"].value["rdf:value"]}(e)?function(e,n){var r={value:{},attributes:{}};return void 0!==e.value["rdf:Description"]&&((0,t.objectAssign)(r.value,h(e.value["rdf:Description"].attributes)),(0,t.objectAssign)(r.attributes,_(e)),e=e.value["rdf:Description"]),(0,t.objectAssign)(r.value,I(e.value)),r.description=A(r.value,n),r}(e,n):function(e){return 0===Object.keys(e.value).length&&void 0===e.attributes["rdf:resource"]}(e)?function(e,t){var n=h(e.attributes);return{value:n,attributes:{},description:A(n,t)}}(e,n):function(e){return void 0!==F(e.value)}(e)?function(e,t){var n=F(e.value).value["rdf:li"],r=_(e),i=[];return void 0===n?n=[]:Array.isArray(n)||(n=[n]),n.forEach((function(e){i.push(function(e){return U(e)?M(e):function(e){return"Resource"===e.attributes["rdf:parseType"]}(e)?I(e.value):{value:e.value,attributes:_(e),description:A(e.value)}}(e))})),{value:i,attributes:r,description:A(i,t)}}(e,n):function(e,t){var n=O(e)||v(e.value);return{value:n,attributes:_(e),description:A(n,t)}}(e,n)}function U(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 M(e,n){var r=_(e);void 0!==e.value["rdf:Description"]&&(e=e.value["rdf:Description"]),(0,t.objectAssign)(r,_(e),function(e){var t={};for(var n in e.value)"rdf:value"===n||S(n)||(t[b(n)]=e.value[n].value);return t}(e));var i=function(e){return O(e.value["rdf:value"])||e.value["rdf:value"].value}(e);return{value:i,attributes:r,description:A(i,n)}}function _(e){var t={};for(var n in e.attributes)"rdf:parseType"===n||"rdf:resource"===n||S(n)||(t[b(n)]=e.attributes[n]);return t}function F(e){return e["rdf:Bag"]||e["rdf:Seq"]||e["rdf:Alt"]}function O(e){return e.attributes&&e.attributes["rdf:resource"]}e.default={read:function(e,t){return function(e,t){if(0===t.length)return[];var n=[c(e,t.slice(0,1))];return t.length>1&&n.push(c(e,t.slice(1))),n}(e,t).reduce(f,{})}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function n(e){var n=e.split(","),r=t(n,2),i=r[0],o=r[1];if(void 0!==i&&void 0!==o){var a=parseFloat(i),u=parseFloat(o),c=o.charAt(o.length-1);if(!Number.isNaN(a)&&!Number.isNaN(u))return""+(a+u/60)+c}return e}e.default={"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},"exif:GPSLatitude":n,"exif:GPSLongitude":n}})?r.apply(t,i):r)||(e.exports=o)},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,factory;factory=function(exports){"use strict";function get(){if("undefined"!=typeof DOMParser)return DOMParser;try{return eval("require")("xmldom").DOMParser}catch(e){return}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default={get:get}},__WEBPACK_AMD_DEFINE_ARRAY__=[exports],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=factory)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(e,t,n){var r,i,o;i=[t,n(23),n(0)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e,t){return e.length<t+12}function i(e){var i=e.buffer,u=e.getUint32();if(e.byteLength!==u)throw new Error("ICC profile length not matching");if(e.length<84)throw new Error("ICC profile too short");for(var c={},f=0,d=Object.keys(t.iccProfile),s=d.length;f<s;f++){var l=d[f],p=t.iccProfile[l],g=p.value(e,parseInt(l,10)),m=g;p.description&&(m=p.description(g)),c[p.name]={value:g,description:m}}if("acsp"!==o(i.slice(36,40)))throw new Error("ICC profile: missing signature");if(function(e){return e.length<132}(i))return c;for(var v=e.getUint32(128),h=132,y=0;y<v;y++){if(r(i,h))return c;var S=(0,n.getStringFromDataView)(e,h,4),b=e.getUint32(h+4),A=e.getUint32(h+8);if(b>i.length)return c;var C=(0,n.getStringFromDataView)(e,b,4);if("desc"===C){var P=e.getUint32(b+8);if(P>A)return c;a(c,S,o(i.slice(b+12,b+P+11)))}else if("mluc"===C){for(var w=e.getUint32(b+8),I=e.getUint32(b+12),D=b+16,U=[],M=0;M<w;M++){var _=(0,n.getStringFromDataView)(e,D+0,2),F=(0,n.getStringFromDataView)(e,D+2,2),O=e.getUint32(D+4),E=e.getUint32(D+8),x=(0,n.getUnicodeStringFromDataView)(e,b+E,O);U.push({languageCode:_,countryCode:F,text:x}),D+=I}if(1===w)a(c,S,U[0].text);else{for(var T={},N=0;N<U.length;N++)T[U[N].languageCode+"-"+U[N].countryCode]=U[N].text;a(c,S,T)}}else"text"===C?a(c,S,o(i.slice(b+8,b+A-7))):"sig "===C&&a(c,S,o(i.slice(b+8,b+12)));h+=12}return c}function o(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function a(e,n,r){t.iccTags[n]?e[t.iccTags[n].name]={value:r,description:r}:e[n]={value:r,description:r}}Object.defineProperty(e,"__esModule",{value:!0}),e.parseTags=i,e.default={read:function(e,t){try{for(var n=t.reduce((function(e,t){return e+t.length}),0),r=new Uint8Array(n),o=0,a=e.buffer,u=function(e){var n=t.find((function(t){return t.chunkNumber===e}));if(!n)throw new Error("ICC chunk "+e+" not found");var i=a.slice(n.offset,n.offset+n.length),u=new Uint8Array(i);r.set(u,o),o+=u.length},c=1;c<=t.length;c++)u(c);return i(new DataView(r.buffer))}catch(e){return console.log(e),{}}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(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}}Object.defineProperty(e,"__esModule",{value:!0}),e.iccProfile=e.iccTags=void 0,e.iccTags={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"}},e.iccProfile={4:{name:"Preferred CMM type",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)},description:function(e){return null!==e?n(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,n){return(0,t.getStringFromDataView)(e,n,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,n){return(0,t.getStringFromDataView)(e,n,4)}},20:{name:"Connection Space",value:function(e,n){return(0,t.getStringFromDataView)(e,n,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,n){return(0,t.getStringFromDataView)(e,n,4)},description:function(e){return n(e)}},48:{name:"Device Manufacturer",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)},description:function(e){return n(e)}},52:{name:"Device Model Number",value:function(e,n){return(0,t.getStringFromDataView)(e,n,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,n){return(0,t.getStringFromDataView)(e,n,4)}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(3)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=t)&&n.__esModule?n:{default:n};function i(e,t){if(!(t+0+4>e.byteLength)){var n=r.default.getLongAt(e,t);return{value:n,description:n+"px"}}}function o(e,t){if(!(t+4+4>e.byteLength)){var n=r.default.getLongAt(e,t+4);return{value:n,description:n+"px"}}}function a(e,t){if(!(t+8+1>e.byteLength)){var n=r.default.getByteAt(e,t+8);return{value:n,description:""+n}}}function u(e,t){if(!(t+9+1>e.byteLength)){var n=r.default.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 c(e,t){if(!(t+10+1>e.byteLength)){var n=r.default.getByteAt(e,t+10);return{value:n,description:0===n?"Deflate/Inflate":"Unknown"}}}function f(e,t){if(!(t+11+1>e.byteLength)){var n=r.default.getByteAt(e,t+11);return{value:n,description:0===n?"Adaptive":"Unknown"}}}function d(e,t){if(!(t+12+1>e.byteLength)){var n=r.default.getByteAt(e,t+12);return{value:n,description:{0:"Noninterlaced",1:"Adam7 Interlace"}[n]||"Unknown"}}}e.default={read:function(e,t){return{"Image Width":i(e,t),"Image Height":o(e,t),"Bit Depth":a(e,t),"Color Type":u(e,t),Compression:c(e,t),Filter:f(e,t),Interlace:d(e,t)}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e){this.name="MetadataMissingError",this.message=e||"No Exif data",this.stack=(new Error).stack}Object.defineProperty(e,"__esModule",{value:!0}),t.prototype=new Error,e.default={MetadataMissingError:t}})?r.apply(t,i):r)||(e.exports=o)}])})); | ||
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.ExifReader=n():e.ExifReader=n()}("undefined"!=typeof self?self:this,(function(){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(n){return e[n]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=1)}([function(module,__webpack_exports__,__webpack_require__){"use strict";function get(){if("undefined"!=typeof DOMParser)return DOMParser;try{return eval("require")("xmldom").DOMParser}catch(e){return}}__webpack_exports__.a={get:get}},function(e,n,t){"use strict";function r(e,n,t){for(var r=[],i=0;i<t&&n+i<e.byteLength;i++)r.push(e.getUint8(n+i,!1));return o(r).join("")}function i(e,n,t){for(var r=[],i=0;i<t&&n+i<e.byteLength;i+=2)r.push(e.getUint16(n+i));return o(r).join("")}function o(e){return e.map((function(e){return String.fromCharCode(e)}))}function a(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];for(var i=0,o=t;i<o.length;i++){var a=o[i];for(var u in a)e[u]=a[u]}return e}function u(e){return(u="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})(e)}function c(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}t.r(n),t.d(n,"errors",(function(){return Cn})),t.d(n,"load",(function(){return In})),t.d(n,"loadView",(function(){return wn}));var f=function(){function e(n){if(function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),function(e){return"object"!==u(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}(n))throw new Error("DataView: Passed buffer type is unsupported.");this.buffer=n,this.byteLength=this.buffer.length}var n,t,r;return n=e,(t=[{key:"getUint8",value:function(e){return this.buffer.readUInt8(e)}},{key:"getUint16",value:function(e,n){return n?this.buffer.readUInt16LE(e):this.buffer.readUInt16BE(e)}},{key:"getUint32",value:function(e,n){return n?this.buffer.readUInt32LE(e):this.buffer.readUInt32BE(e)}},{key:"getInt32",value:function(e,n){return n?this.buffer.readInt32LE(e):this.buffer.readInt32BE(e)}}])&&c(n.prototype,t),r&&c(n,r),e}();var s={BIG_ENDIAN:19789,LITTLE_ENDIAN:18761,getByteOrder:function(e,n){if(18761===e.getUint16(n))return 18761;if(19789===e.getUint16(n))return 19789;throw new Error("Illegal byte order value. Faulty image.")}};var l=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"],d=4+"ICC_PROFILE\0".length,p=d+1,m={parseAppMarkers:function(e){if(function(e){return e.byteLength>=4&&function(e){var n=e.getUint16(0)===s.LITTLE_ENDIAN;return 42===e.getUint16(2,n)}(e)}(e))return{hasAppMarkers:!0,tiffHeaderOffset:0};if(function(e){return e.byteLength>=2&&65496===e.getUint16(0,!1)}(e))return function(e){var n,t,r,i,o,a,u,c=2;for(;c+4+5<=e.byteLength;){if(g(e,c))t=c+2;else if(h(e,c))r=c+2;else if(y(e,c))n=e.getUint16(c+2,!1),i=c+10;else if(S(e,c))a||(a=[]),n=e.getUint16(c+2,!1),a.push(C(c,n));else if(b(e,c))a||(a=[]),n=e.getUint16(c+2,!1),a.push(I(c,n));else if(A(e,c))n=e.getUint16(c+2,!1),o=c+18;else if(v(e,c)){n=e.getUint16(c+2,!1);var f=c+18,s=n-16,l=e.getUint8(c+d,!1),m=e.getUint8(c+p,!1);u||(u=[]),u.push({offset:f,length:s,chunkNumber:l,chunksTotal:m})}else{if(!w(e,c))break;n=e.getUint16(c+2,!1)}c+=2+n}return{hasAppMarkers:c>2,fileDataOffset:t||r,tiffHeaderOffset:i,iptcDataOffset:o,xmpChunks:a,iccChunks:u}}(e);if(function(e){return"PNG\r\n\n"===r(e,0,"PNG\r\n\n".length)}(e))return function(e){var n={hasAppMarkers:!1},t="PNG\r\n\n".length;for(;t+4+4<=e.byteLength;)P(e,t)?(n.hasAppMarkers=!0,n.pngHeaderOffset=t+8):U(e,t)&&(n.hasAppMarkers=!0,n.xmpChunks=[{dataOffset:t+8+"XML:com.adobe.xmp".length,length:e.getUint32(t+0)-"XML:com.adobe.xmp".length}]),t+=e.getUint32(t+0)+4+4+4;return n}(e);if(function(e){var n=r(e,4+"ftyp".length,4);return"ftyp"===r(e,4,"ftyp".length)&&-1!==l.indexOf(n)}(e))return function(e){var n="Exif".length,t=4+"ftyp".length+4;for(;t+n+2+2<=e.byteLength;){var i=e.getUint16(t+n+2,!1);if("Exif"===r(e,t,n)&&0===e.getUint8(t+n,!1)&&(i===s.LITTLE_ENDIAN||i===s.BIG_ENDIAN))return{hasAppMarkers:!0,tiffHeaderOffset:t+n+2};t++}return{hasAppMarkers:!1}}(e);throw new Error("Invalid image format")}};function g(e,n){return 65472===e.getUint16(n,!1)}function h(e,n){return 65474===e.getUint16(n,!1)}function v(e,n){var t="ICC_PROFILE\0".length;return 65506===e.getUint16(n,!1)&&"ICC_PROFILE\0"===r(e,n+4,t)}function y(e,n){var t="Exif".length;return 65505===e.getUint16(n,!1)&&"Exif"===r(e,n+4,t)&&0===e.getUint8(n+4+t,!1)}function S(e,n){return 65505===e.getUint16(n,!1)&&function(e,n){return"http://ns.adobe.com/xap/1.0/\0"===r(e,n+4,"http://ns.adobe.com/xap/1.0/\0".length)}(e,n)}function b(e,n){return 65505===e.getUint16(n,!1)&&function(e,n){return"http://ns.adobe.com/xmp/extension/\0"===r(e,n+4,"http://ns.adobe.com/xmp/extension/\0".length)}(e,n)}function C(e,n){return{dataOffset:e+33,length:n-31}}function I(e,n){return{dataOffset:e+79,length:n-77}}function A(e,n){var t="Photoshop 3.0".length;return 65517===e.getUint16(n,!1)&&"Photoshop 3.0"===r(e,n+4,t)&&0===e.getUint8(n+4+t,!1)}function w(e,n){var t=e.getUint16(n,!1);return t>=65504&&t<=65519||65534===t||65472===t||65474===t||65476===t||65499===t||65501===t||65498===t}function P(e,n){return"IHDR"===r(e,n+4,4)}function U(e,n){return"iTXt"===r(e,n+4,4)&&"XML:com.adobe.xmp"===r(e,n+8,"XML:com.adobe.xmp".length)}var D={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},T={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},O={getAsciiValue:function(e){return e.map((function(e){return String.fromCharCode(e)}))},getByteAt:M,getAsciiAt:function(e,n){return e.getUint8(n)},getShortAt:function(e,n,t){return e.getUint16(n,t===s.LITTLE_ENDIAN)},getLongAt:x,getRationalAt:function(e,n,t){return[x(e,n,t),x(e,n+4,t)]},getUndefinedAt:function(e,n){return M(e,n)},getSlongAt:F,getSrationalAt:function(e,n,t){return[F(e,n,t),F(e,n+4,t)]},getIfdPointerAt:function(e,n,t){return x(e,n,t)},typeSizes:D,tagTypes:T,getTypeSize:function(e){if(void 0===T[e])throw new Error("No such type found.");return D[T[e]]}};function M(e,n){return e.getUint8(n)}function x(e,n,t){return e.getUint32(n,t===s.LITTLE_ENDIAN)}function F(e,n,t){return e.getInt32(n,t===s.LITTLE_ENDIAN)}var L={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"}};function N(e){return e.map((function(e){return String.fromCharCode(e)})).join("")}function E(e){if(e.length>=8){var n=N(e.slice(0,8));if("ASCII\0\0\0"===n)return N(e.slice(8));if("JIS\0\0\0\0\0"===n)return"[JIS encoded text]";if("UNICODE\0"===n)return"[Unicode encoded text]";if("\0\0\0\0\0\0\0\0"===n)return"[Undefined encoding]"}return"Undefined"}function R(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(t.push(a.value),!n||t.length!==n);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return k(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return k(e,n)}(e,n)||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.")}()}function k(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function G(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(t.push(a.value),!n||t.length!==n);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return j(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return j(e,n)}(e,n)||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.")}()}function j(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var B={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 n=e.join("");return"N"===n?"North latitude":"S"===n?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:function(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}},3:{name:"GPSLongitudeRef",description:function(e){var n=e.join("");return"E"===n?"East longitude":"W"===n?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:function(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}},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 n=G(e,2),t=n[0]/n[1];return/^\d(\.|$)/.test("".concat(t))?"0".concat(t):t})).join(":")}},8:"GPSSatellites",9:{name:"GPSStatus",description:function(e){var n=e.join("");return"A"===n?"Measurement in progress":"V"===n?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:function(e){var n=e.join("");return"2"===n?"2-dimensional measurement":"3"===n?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:function(e){var n=e.join("");return"K"===n?"Kilometers per hour":"M"===n?"Miles per hour":"N"===n?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:function(e){var n=e.join("");return"T"===n?"True direction":"M"===n?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:function(e){var n=e.join("");return"T"===n?"True direction":"M"===n?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:function(e){var n=e.join("");return"N"===n?"North latitude":"S"===n?"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 n=e.join("");return"E"===n?"East longitude":"W"===n?"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 n=e.join("");return"T"===n?"True direction":"M"===n?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:function(e){var n=e.join("");return"K"===n?"Kilometers":"M"===n?"Miles":"N"===n?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:E},28:{name:"GPSAreaInformation",description:E},29:"GPSDateStamp",30:{name:"GPSDifferential",description:function(e){return 0===e?"Measurement without differential correction":1===e?"Differential correction applied":"Unknown"}},31:"GPSHPositioningError"},z={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:function(e){return N(e)}},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},W=a({},{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:function(e){return""+Math.round(e[0]/e[1])}},283:{name:"YResolution",description:function(e){return""+Math.round(e[0]/e[1])}},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:function(e){return 2===e?"inches":3===e?"centimeters":"Unknown"}},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 n={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(e)?e.map((function(e){return n[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:L.LightSource},50779:{name:"CalibrationIlluminant2",description:L.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"},{33434:{name:"ExposureTime",description:function(e){return 0!==e[0]?"1/".concat(Math.round(e[1]/e[0])):"0/".concat(e[1])}},33437:{name:"FNumber",description:function(e){return"f/".concat(e[0]/e[1])}},34850:{name:"ExposureProgram",description: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"}},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 N(e)}},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description: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("")}},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:function(e){return"1/".concat(Math.round(Math.pow(2,e[0]/e[1])))}},37378:{name:"ApertureValue",description:function(e){return Math.pow(Math.sqrt(2),e[0]/e[1]).toFixed(2)}},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: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"}},37384:{name:"LightSource",description:L.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:function(e){return e[0]/e[1]+" mm"}},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:E},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:function(e){return 1===e?"sRGB":65535===e?"Uncalibrated":"Unknown"}},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:function(e){return 2===e?"inches":3===e?"centimeters":"Unknown"}},41492:{name:"SubjectLocation",description:function(e){var n=R(e,2),t=n[0],r=n[1];return"X: ".concat(t,", Y: ").concat(r)}},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:function(e){return 0===e?"Normal process":1===e?"Custom process":"Unknown"}},41986:{name:"ExposureMode",description:function(e){return 0===e?"Auto exposure":1===e?"Manual exposure":2===e?"Auto bracket":"Unknown"}},41987:{name:"WhiteBalance",description:function(e){return 0===e?"Auto white balance":1===e?"Manual white balance":"Unknown"}},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:function(e){return 0===e?"Standard":1===e?"Landscape":2===e?"Portrait":3===e?"Night scene":"Unknown"}},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:function(e){return 0===e?"Normal":1===e?"Soft":2===e?"Hard":"Unknown"}},41993:{name:"Saturation",description:function(e){return 0===e?"Normal":1===e?"Low saturation":2===e?"High saturation":"Unknown"}},41994:{name:"Sharpness",description:function(e){return 0===e?"Normal":1===e?"Soft":2===e?"Hard":"Unknown"}},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 n="".concat(e[0][0]/e[0][1],"-").concat(e[1][0]/e[1][1]," mm");return 0===e[3][1]?"".concat(n," f/?"):"".concat(n," 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"}),H={"0th":W,exif:W,gps:B,interoperability:z};function _(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,n){if(!e)return;if("string"==typeof e)return V(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return V(e,n)}(e))){var n=0,t=function(){};return{s:t,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function V(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var X={1:O.getByteAt,2:O.getAsciiAt,3:O.getShortAt,4:O.getLongAt,5:O.getRationalAt,7:O.getUndefinedAt,9:O.getSlongAt,10:O.getSrationalAt,13:O.getIfdPointerAt},K={read:function(e,n){var t=s.getByteOrder(e,n),r=function(e,n,t){return $(e,"0th",n,function(e,n,t){return n+O.getLongAt(e,n+4,t)}(e,n,t),t)}(e,n,t);return r=J(r=q(r=Y(r,e,n,t),e,n,t),e,n,t)}};function Y(e,n,t,r){return void 0!==e["Exif IFD Pointer"]?a(e,$(n,"exif",t,t+e["Exif IFD Pointer"].value,r)):e}function q(e,n,t,r){return void 0!==e["GPS Info IFD Pointer"]?a(e,$(n,"gps",t,t+e["GPS Info IFD Pointer"].value,r)):e}function J(e,n,t,r){return void 0!==e["Interoperability IFD Pointer"]?a(e,$(n,"interoperability",t,t+e["Interoperability IFD Pointer"].value,r)):e}function $(e,n,t,r,i){var o=O.getTypeSize("SHORT"),a={},u=function(e,n,t){if(n+O.getTypeSize("SHORT")<=e.byteLength)return O.getShortAt(e,n,t);return 0}(e,r,i);r+=o;for(var c=0;c<u&&!(r+12>e.byteLength);c++){var f=Z(e,n,t,r,i);void 0!==f&&(a[f.name]={id:f.id,value:f.value,description:f.description}),r+=12}if(r<e.byteLength-O.getTypeSize("LONG")){var s=O.getLongAt(e,r,i);0!==s&&(a.Thumbnail=$(e,n,t,t+s,i))}return a}function Z(e,n,t,r,i){var o,a=O.getTypeSize("SHORT"),u=a+O.getTypeSize("SHORT"),c=u+O.getTypeSize("LONG"),f=O.getShortAt(e,r,i),s=O.getShortAt(e,r+a,i),l=O.getLongAt(e,r+u,i);if(void 0!==O.typeSizes[s]){if(function(e,n){return O.typeSizes[e]*n<=O.getTypeSize("LONG")}(s,l))o=Q(e,r+c,s,l,i);else{var d=O.getLongAt(e,r+c,i);o=function(e,n,t,r,i){return n+t+O.typeSizes[r]*i<=e.byteLength}(e,t,d,s,l)?Q(e,t+d,s,l,i):"<faulty value>"}if(s===O.tagTypes.ASCII&&(o=function(e){try{return e.map((function(e){return decodeURIComponent(escape(e))}))}catch(n){return e}}(o=function(e){var n,t=[],r=0,i=_(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;"\0"!==o?(void 0===t[r]&&(t[r]=""),t[r]+=o):r++}}catch(e){i.e(e)}finally{i.f()}return t}(o))),void 0!==H[n][f]){var p,m;if(void 0!==H[n][f].name&&void 0!==H[n][f].description){p=H[n][f].name;try{m=H[n][f].description(o)}catch(e){m=ee(o)}}else s===O.tagTypes.RATIONAL||s===O.tagTypes.SRATIONAL?(p=H[n][f],m=""+o[0]/o[1]):(p=H[n][f],m=ee(o));return{id:f,name:p,value:o,description:m}}return{id:f,name:"undefined-".concat(f),value:o,description:o}}}function Q(e,n,t,r,i){for(var o=[],a=0;a<r;a++)o.push(X[t](e,n,i)),n+=O.typeSizes[t];return t===O.tagTypes.ASCII?o=O.getAsciiValue(o):1===o.length&&(o=o[0]),o}function ee(e){return e instanceof Array?e.join(", "):e}var ne={read:function(e,n){var t=function(e,n){return O.getShortAt(e,n)}(e,n),r=function(e,n,t){if(8>t)return;var r=O.getByteAt(e,n+7);return{value:r,description:""+r}}(e,n,t);return{"Bits Per Sample":te(e,n,t),"Image Height":re(e,n,t),"Image Width":ie(e,n,t),"Color Components":r,Subsampling:r&&oe(e,n,r.value,t)}}};function te(e,n,t){if(!(3>t)){var r=O.getByteAt(e,n+2);return{value:r,description:""+r}}}function re(e,n,t){if(!(5>t)){var r=O.getShortAt(e,n+3);return{value:r,description:"".concat(r,"px")}}}function ie(e,n,t){if(!(7>t)){var r=O.getShortAt(e,n+5);return{value:r,description:"".concat(r,"px")}}}function oe(e,n,t,r){if(!(8+3*t>r)){for(var i=[],o=0;o<t;o++){var a=n+8+3*o;i.push([O.getByteAt(e,a),O.getByteAt(e,a+1),O.getByteAt(e,a+2)])}return{value:i,description:i.length>1?ae(i)+ue(i):""}}}function ae(e){var n={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return e.map((function(e){return n[e[0]]})).join("")}function ue(e){var n={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===n[e[0][1]]?"":n[e[0][1]]}var ce={iptc:{256:{name:"Model Version",description:function(e){return((e[0]<<8)+e[1]).toString()}},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:function(e){return((e[0]<<8)+e[1]).toString()}},278:{name:"File Format Version",description:function(e){return((e[0]<<8)+e[1]).toString()}},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:fe},336:{name:"Time Sent",description:se},346:{name:"Coded Character Set",description:le,encoding_name:le},356:"UNO",376:{name:"ARM Identifier",description:function(e){return((e[0]<<8)+e[1]).toString()}},378:{name:"ARM Version",description:function(e){return((e[0]<<8)+e[1]).toString()}},512:{name:"Record Version",description:function(e){return((e[0]<<8)+e[1]).toString()}},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:function(e){return"01"===N(e)?"Additional Language":"Unknown"}},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:function(e){var n=N(e).split(":");return n[2]+(n[3]?"/"+n[3]:"")+(n[4]?"/"+n[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:!0},534:"Fixture Identifier",537:{name:"Keywords",repeatable:!0},538:{name:"Content Location Code",repeatable:!0},539:{name:"Content Location Name",repeatable:!0},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:function(e){var n=N(e);return"01"===n?"Object Kill":"02"===n?"Object Replace":"03"===n?"Object Append":"04"===n?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:!0},559:{name:"Reference Date",repeatable:!0},562:{name:"Reference Number",repeatable:!0},567:{name:"Date Created",description:fe},572:{name:"Time Created",description:se},574:{name:"Digital Creation Date",description:fe},575:{name:"Digital Creation Time",description:se},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:function(e){var n=N(e);return"a"===n?"morning":"p"===n?"evening":"b"===n?"both":"Unknown"}},592:{name:"By-line",repeatable:!0},597:{name:"By-line Title",repeatable:!0},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:!0},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:!0},637:{name:"Rasterized Caption",description:function(e){return e}},642:"Image Type",643:{name:"Image Orientation",description:function(e){var n=N(e);return"P"===n?"Portrait":"L"===n?"Landscape":"S"===n?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:function(e){var n=N(e),t=n.charAt(0),r=n.charAt(1),i="";return"1"===t?i+="Mono":"2"===t&&(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:n}},663:{name:"Audio Sampling Rate",description:function(e){return parseInt(N(e),10)+" Hz"}},664:{name:"Audio Sampling Resolution",description:function(e){var n=parseInt(N(e),10);return n+(1===n?" bit":" bits")}},665:{name:"Audio Duration",description:function(e){var n=N(e);return n.length>=6?n.substr(0,2)+":"+n.substr(2,2)+":"+n.substr(4,2):n}},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 n=(e[0]<<8)+e[1];return 0===n?"No ObjectData":1===n?"IPTC-NAA Digital Newsphoto Parameter Record":2===n?"IPTC7901 Recommended Message Format":3===n?"Tagged Image File Format (Adobe/Aldus Image data)":4===n?"Illustrator (Adobe Graphics data)":5===n?"AppleSingle (Apple Computer Inc)":6===n?"NAA 89-3 (ANPA 1312)":7===n?"MacBinary II":8===n?"IPTC Unstructured Character Oriented File Format (UCOFF)":9===n?"United Press International ANPA 1312 variant":10===n?"United Press International Down-Load Message":11===n?"JPEG File Interchange (JFIF)":12===n?"Photo-CD Image-Pac (Eastman Kodak)":13===n?"Microsoft Bit Mapped Graphics File [*.BMP]":14===n?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":15===n?"Audio plus Moving Video [*.AVI] (Microsoft)":16===n?"PC DOS/Windows Executable Files [*.COM][*.EXE]":17===n?"Compressed Binary File [*.ZIP] (PKWare Inc)":18===n?"Audio Interchange File Format AIFF (Apple Computer Inc)":19===n?"RIFF Wave (Microsoft Corporation)":20===n?"Freehand (Macromedia/Aldus)":21===n?'Hypertext Markup Language "HTML" (The Internet Society)':22===n?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":23===n?"MPEG 2 Audio Layer 3, ISO/IEC":24===n?"Portable Document File (*.PDF) Adobe":25===n?"News Industry Text Format (NITF)":26===n?"Tape Archive (*.TAR)":27===n?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":28===n?"Ritzaus Bureau NITF version (RBNITF DTD)":29===n?"Corel Draw [*.CDR]":"Unknown format ".concat(n)}return N(e)}},713:{name:"ObjectData Preview File Format Version",description:function(e,n){var t={"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=N(e);if(n["ObjectData Preview File Format"]){var i=N(n["ObjectData Preview File Format"].value);if(t[i]&&t[i][r])return t[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 n=0,t=0;t<e.length;t++)n=(n<<8)+e[t];return n.toString()}},1882:{name:"ObjectData Size Announced",description:function(e){for(var n=0,t=0;t<e.length;t++)n=(n<<8)+e[t];return n.toString()}},1887:{name:"Maximum ObjectData Size",description:function(e){for(var n=0,t=0;t<e.length;t++)n=(n<<8)+e[t];return n.toString()}}}};function fe(e){var n=N(e);return n.length>=8?n.substr(0,4)+"-"+n.substr(4,2)+"-"+n.substr(6,2):n}function se(e){var n=N(e),t=n;return n.length>=6&&(t=n.substr(0,2)+":"+n.substr(2,2)+":"+n.substr(4,2),11===n.length&&(t+=n.substr(6,1)+n.substr(7,2)+":"+n.substr(9,2))),t}function le(e){var n=N(e);return"%G"===n?"UTF-8":"%5"===n?"Windows-1252":"%/G"===n?"UTF-8 Level 1":"%/H"===n?"UTF-8 Level 2":"%/I"===n?"UTF-8 Level 3":"/A"===n?"ISO-8859-1":"/B"===n?"ISO-8859-2":"/C"===n?"ISO-8859-3":"/D"===n?"ISO-8859-4":"/@"===n?"ISO-8859-5":"/G"===n?"ISO-8859-6":"/F"===n?"ISO-8859-7":"/H"===n?"ISO-8859-8":"Unknown"}var de={get:function(){if("undefined"!=typeof TextDecoder)return TextDecoder;return}};var pe={decode:function(e,n){var t=de.get();if(void 0!==t&&void 0!==e)try{return new t(e).decode(Uint8Array.from(n))}catch(e){}return function(e){try{return decodeURIComponent(escape(e))}catch(n){return e}}(n.map((function(e){return String.fromCharCode(e)})).join(""))},TAG_HEADER_SIZE:5};var me={read:function(e,n){try{var t=function(e,n){for(;n+12<=e.byteLength;){var t=ge(e,n);if(he(t))return{naaBlock:t,dataOffset:n};n+=12+t.size+ve(t)}throw new Error("No IPTC NAA resource block.")}(e,n),r=t.naaBlock,i=t.dataOffset;return function(e,n,t){var r={},i=void 0,o=(t+=12)+n.size;for(;t<o&&t<e.byteLength;){var a=ye(e,t,r,i),u=a.tag,c=a.tagSize;if(null===u)break;"encoding"in u&&(i=u.encoding),void 0===r[u.name]||void 0===u.repeatable?r[u.name]={id:u.id,value:u.value,description:u.description}:(r[u.name]instanceof Array||(r[u.name]=[{id:r[u.name].id,value:r[u.name].value,description:r[u.name].description}]),r[u.name].push({id:u.id,value:u.value,description:u.description})),t+=5+c}return r}(e,r,i)}catch(e){return{}}}};function ge(e,n){if(943868237!==e.getUint32(n,!1))throw new Error("Not an IPTC resource block.");return{type:e.getUint16(n+4,!1),size:e.getUint16(n+10,!1)}}function he(e){return 1028===e.type}function ve(e){return e.size%2!=0?1:0}function ye(e,n,t,r){if(function(e,n){return 28!==e.getUint8(n)}(e,n))return{tag:null,tagSize:0};var i=e.getUint16(n+1,!1),o=e.getUint16(n+3,!1),a=function(e,n,t){for(var r=[],i=0;i<t;i++)r.push(e.getUint8(n+i));return r}(e,n+5,o),u={id:i,name:Se(ce.iptc[i],i,a),value:a,description:be(ce.iptc[i],a,t,r)};return function(e){return ce.iptc[e]&&ce.iptc[e].repeatable}(i)&&(u.repeatable=!0),function(e){return ce.iptc[e]&&void 0!==ce.iptc[e].encoding_name}(i)&&(u.encoding=ce.iptc[i].encoding_name(a)),{tag:u,tagSize:o}}function Se(e,n,t){return e?function(e){return"string"==typeof e}(e)?e:function(e){return"function"==typeof e.name}(e)?e.name(t):e.name:"undefined-".concat(n)}function be(e,n,t,r){if(function(e){return e&&void 0!==e.description}(e))try{return e.description(n,t)}catch(e){}return function(e,n){return e&&n instanceof Array}(e,n)?pe.decode(r,n):n}function Ce(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(t.push(a.value),!n||t.length!==n);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Ie(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ie(e,n)}(e,n)||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.")}()}function Ie(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Ae={"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},"exif:GPSLatitude":we,"exif:GPSLongitude":we};function we(e){var n=Ce(e.split(","),2),t=n[0],r=n[1];if(void 0!==t&&void 0!==r){var i=parseFloat(t),o=parseFloat(r),a=r.charAt(r.length-1);if(!Number.isNaN(i)&&!Number.isNaN(o))return""+(i+o/60)+a}return e}var Pe=t(0);function Ue(e){return(Ue="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})(e)}function De(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,n){if(!e)return;if("string"==typeof e)return Te(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Te(e,n)}(e))){var n=0,t=function(){};return{s:t,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function Te(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Oe={read:function(e,n){return function(e,n){if(0===n.length)return[];var t=[Me(e,n.slice(0,1))];n.length>1&&t.push(Me(e,n.slice(1)));return t}(e,n).reduce(xe,{})}};function Me(e,n){var t,r=n.reduce((function(e,n){return e+n.length}),0),i=new Uint8Array(r),o=0,a=De(n);try{for(a.s();!(t=a.n()).done;){var u=t.value,c=e.buffer.slice(u.dataOffset,u.dataOffset+u.length);i.set(new Uint8Array(c),o),o+=u.length}}catch(e){a.e(e)}finally{a.f()}return new DataView(i.buffer)}function xe(e,n){try{return a(e,Ge(Fe(function e(n){for(var t=0;t<n.childNodes.length;t++){if("x:xmpmeta"===n.childNodes[t].tagName)return e(n.childNodes[t]);if("rdf:RDF"===n.childNodes[t].tagName)return n.childNodes[t]}throw new Error}(function(e){var n=Pe.a.get();if(!n)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;var t=new n,i=r(e,0,e.byteLength),o=t.parseFromString(i,"application/xml");if("parsererror"===o.documentElement.nodeName)throw new Error(o.documentElement.textContent);return o}(n)),!0)))}catch(n){return e}}function Fe(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=Le(e);return Ne(t)?n?{}:Ee(t[0]):Re(t)}function Le(e){for(var n=[],t=0;t<e.childNodes.length;t++)n.push(e.childNodes[t]);return n}function Ne(e){return 1===e.length&&"#text"===e[0].nodeName}function Ee(e){return e.nodeValue}function Re(e){var n={};return e.forEach((function(e){if(function(e){return e.nodeName&&"#text"!==e.nodeName}(e)){var t=function(e){return{attributes:ke(e),value:Fe(e)}}(e);void 0!==n[e.nodeName]?(Array.isArray(n[e.nodeName])||(n[e.nodeName]=[n[e.nodeName]]),n[e.nodeName].push(t)):n[e.nodeName]=t}})),n}function ke(e){for(var n={},t=0;t<e.attributes.length;t++)n[e.attributes[t].nodeName]=decodeURIComponent(escape(e.attributes[t].value));return n}function Ge(e){var n={};if("string"==typeof e)return e;for(var t in e){var r=e[t];Array.isArray(r)||(r=[r]),r.forEach((function(e){a(n,je(e.attributes)),"object"===Ue(e.value)&&a(n,Ke(e.value))}))}return n}function je(e){var n={};for(var t in e)Be(t)&&(n[We(t)]={value:e[t],attributes:{},description:He(e[t],t)});return n}function Be(e){return"rdf:parseType"!==e&&!ze(e)}function ze(e){return"xmlns"===e.split(":")[0]}function We(e){return e.split(":")[1]}function He(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(Array.isArray(e))return _e(e);if("object"===Ue(e))return Ve(e);try{return n&&"function"==typeof Ae[n]?Ae[n](e):decodeURIComponent(escape(e))}catch(n){return e}}function _e(e){return e.map((function(e){return void 0!==e.value?He(e.value):He(e)})).join(", ")}function Ve(e){var n=[];for(var t in e)n.push("".concat(Xe(t),": ").concat(e[t].value));return n.join("; ")}function Xe(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 Ke(e){var n={};for(var t in e)ze(t)||(n[We(t)]=Ye(e[t],t));return n}function Ye(e,n){return qe(e)?Je(e,n):function(e){return"Resource"===e.attributes["rdf:parseType"]||void 0!==e.value["rdf:Description"]&&void 0===e.value["rdf:Description"].value["rdf:value"]}(e)?function(e,n){var t={value:{},attributes:{}};void 0!==e.value["rdf:Description"]&&(a(t.value,je(e.value["rdf:Description"].attributes)),a(t.attributes,$e(e)),e=e.value["rdf:Description"]);return a(t.value,Ke(e.value)),t.description=He(t.value,n),t}(e,n):function(e){return 0===Object.keys(e.value).length&&void 0===e.attributes["rdf:resource"]}(e)?function(e,n){var t=je(e.attributes);return{value:t,attributes:{},description:He(t,n)}}(e,n):function(e){return void 0!==Ze(e.value)}(e)?function(e,n){var t=Ze(e.value).value["rdf:li"],r=$e(e),i=[];void 0===t?t=[]:Array.isArray(t)||(t=[t]);return t.forEach((function(e){i.push(function(e){if(qe(e))return Je(e);if(function(e){return"Resource"===e.attributes["rdf:parseType"]}(e))return Ke(e.value);return{value:e.value,attributes:$e(e),description:He(e.value)}}(e))})),{value:i,attributes:r,description:He(i,n)}}(e,n):function(e,n){var t=Qe(e)||Ge(e.value);return{value:t,attributes:$e(e),description:He(t,n)}}(e,n)}function qe(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 Je(e,n){var t=$e(e);void 0!==e.value["rdf:Description"]&&(e=e.value["rdf:Description"]),a(t,$e(e),function(e){var n={};for(var t in e.value)"rdf:value"===t||ze(t)||(n[We(t)]=e.value[t].value);return n}(e));var r=function(e){return Qe(e.value["rdf:value"])||e.value["rdf:value"].value}(e);return{value:r,attributes:t,description:He(r,n)}}function $e(e){var n={};for(var t in e.attributes)"rdf:parseType"===t||"rdf:resource"===t||ze(t)||(n[We(t)]=e.attributes[t]);return n}function Ze(e){return e["rdf:Bag"]||e["rdf:Seq"]||e["rdf:Alt"]}function Qe(e){return e.attributes&&e.attributes["rdf:resource"]}var en={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"}},nn={4:{name:"Preferred CMM type",value:function(e,n){return r(e,n,4)},description:function(e){return null!==e?tn(e):""}},8:{name:"Profile Version",value:function(e,n){return e.getUint8(n).toString(10)+"."+(e.getUint8(n+1)>>4).toString(10)+"."+(e.getUint8(n+1)%16).toString(10)}},12:{name:"Profile/Device class",value:function(e,n){return r(e,n,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,n){return r(e,n,4)}},20:{name:"Connection Space",value:function(e,n){return r(e,n,4)}},24:{name:"ICC Profile Date",value:function(e,n){return function(e,n){var t=e.getUint16(n),r=e.getUint16(n+2)-1,i=e.getUint16(n+4),o=e.getUint16(n+6),a=e.getUint16(n+8),u=e.getUint16(n+10);return new Date(Date.UTC(t,r,i,o,a,u))}(e,n).toISOString()}},36:{name:"ICC Signature",value:function(e,n){return t=e.buffer.slice(n,n+4),String.fromCharCode.apply(null,new Uint8Array(t));var t}},40:{name:"Primary Platform",value:function(e,n){return r(e,n,4)},description:function(e){return tn(e)}},48:{name:"Device Manufacturer",value:function(e,n){return r(e,n,4)},description:function(e){return tn(e)}},52:{name:"Device Model Number",value:function(e,n){return r(e,n,4)}},64:{name:"Rendering Intent",value:function(e,n){return e.getUint32(n)},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,n){return r(e,n,4)}}};function tn(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 rn={read:function(e,n){try{for(var t=n.reduce((function(e,n){return e+n.length}),0),o=new Uint8Array(t),a=0,u=e.buffer,c=function(e){var t=n.find((function(n){return n.chunkNumber===e}));if(!t)throw new Error("ICC chunk ".concat(e," not found"));var r=u.slice(t.offset,t.offset+t.length),i=new Uint8Array(r);o.set(i,a),a+=i.length},f=1;f<=n.length;f++)c(f);return function(e){var n=e.buffer,t=e.getUint32();if(e.byteLength!==t)throw new Error("ICC profile length not matching");if(e.length<84)throw new Error("ICC profile too short");for(var o={},a=0,u=Object.keys(nn);a<u.length;a++){var c=u[a],f=nn[c],s=f.value(e,parseInt(c,10)),l=s;f.description&&(l=f.description(s)),o[f.name]={value:s,description:l}}if("acsp"!==an(n.slice(36,40)))throw new Error("ICC profile: missing signature");if(function(e){return e.length<132}(n))return o;for(var d=e.getUint32(128),p=132,m=0;m<d;m++){if(on(n,p))return o;var g=r(e,p,4),h=e.getUint32(p+4),v=e.getUint32(p+8);if(h>n.length)return o;var y=r(e,h,4);if("desc"===y){var S=e.getUint32(h+8);if(S>v)return o;var b=an(n.slice(h+12,h+S+11));un(o,g,b)}else if("mluc"===y){for(var C=e.getUint32(h+8),I=e.getUint32(h+12),A=h+16,w=[],P=0;P<C;P++){var U=r(e,A+0,2),D=r(e,A+2,2),T=e.getUint32(A+4),O=e.getUint32(A+8),M=i(e,h+O,T);w.push({languageCode:U,countryCode:D,text:M}),A+=I}if(1===C)un(o,g,w[0].text);else{for(var x={},F=0;F<w.length;F++)x["".concat(w[F].languageCode,"-").concat(w[F].countryCode)]=w[F].text;un(o,g,x)}}else if("text"===y){var L=an(n.slice(h+8,h+v-7));un(o,g,L)}else if("sig "===y){var N=an(n.slice(h+8,h+12));un(o,g,N)}p+=12}return o}(new DataView(o.buffer))}catch(e){return{}}}};function on(e,n){return e.length<n+12}function an(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function un(e,n,t){en[n]?e[en[n].name]={value:t,description:t}:e[n]={value:t,description:t}}var cn={read:function(e,n){return{"Image Width":fn(e,n),"Image Height":sn(e,n),"Bit Depth":ln(e,n),"Color Type":dn(e,n),Compression:pn(e,n),Filter:mn(e,n),Interlace:gn(e,n)}}};function fn(e,n){if(!(n+0+4>e.byteLength)){var t=O.getLongAt(e,n);return{value:t,description:"".concat(t,"px")}}}function sn(e,n){if(!(n+4+4>e.byteLength)){var t=O.getLongAt(e,n+4);return{value:t,description:"".concat(t,"px")}}}function ln(e,n){if(!(n+8+1>e.byteLength)){var t=O.getByteAt(e,n+8);return{value:t,description:"".concat(t)}}}function dn(e,n){if(!(n+9+1>e.byteLength)){var t=O.getByteAt(e,n+9);return{value:t,description:{0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"}[t]||"Unknown"}}}function pn(e,n){if(!(n+10+1>e.byteLength)){var t=O.getByteAt(e,n+10);return{value:t,description:0===t?"Deflate/Inflate":"Unknown"}}}function mn(e,n){if(!(n+11+1>e.byteLength)){var t=O.getByteAt(e,n+11);return{value:t,description:0===t?"Adaptive":"Unknown"}}}function gn(e,n){if(!(n+12+1>e.byteLength)){var t=O.getByteAt(e,n+12);return{value:t,description:{0:"Noninterlaced",1:"Adam7 Interlace"}[t]||"Unknown"}}}function hn(e){return(hn="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})(e)}var vn={get:function(e,n,t){if(c=n,c&&(void 0===c.Compression||6===c.Compression.value)&&c.JPEGInterchangeFormat&&c.JPEGInterchangeFormat.value&&c.JPEGInterchangeFormatLength&&c.JPEGInterchangeFormatLength.value){n.type="image/jpeg";var r=t+n.JPEGInterchangeFormat.value;n.image=e.buffer.slice(r,r+n.JPEGInterchangeFormatLength.value),i=n,o="base64",a=function(){return e=this.image,"undefined"!=typeof btoa?btoa(Array.prototype.reduce.call(new Uint8Array(e),(function(e,n){return e+String.fromCharCode(n)}),"")):"undefined"!=typeof Buffer?void 0!==hn(Buffer.from)?Buffer.from(e).toString("base64"):new Buffer(e).toString("base64"):void 0;var e},u=!1,Object.defineProperty(i,o,{get:function(){return u||(u=!0,Object.defineProperty(i,o,{configurable:!0,enumerable:!0,value:a.apply(i),writable:!0})),i[o]},configurable:!0,enumerable:!0})}var i,o,a,u;var c;return n}};function yn(e){this.name="MetadataMissingError",this.message=e||"No Exif data",this.stack=(new Error).stack}yn.prototype=new Error;var Sn={MetadataMissingError:yn};function bn(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}n.default={load:In,loadView:wn,errors:Sn};var Cn=Sn;function In(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{expanded:!1};return wn(An(e),n)}function An(e){try{return new DataView(e)}catch(n){return new f(e)}}function wn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{expanded:!1},t=!1,r={},i=m.parseAppMarkers(e),o=i.fileDataOffset,u=i.tiffHeaderOffset,c=i.iptcDataOffset,f=i.xmpChunks,s=i.iccChunks,l=i.pngHeaderOffset;if(Pn(o)){t=!0;var d=ne.read(e,o);n.expanded?r.file=d:r=a({},r,d)}if(Un(u)){t=!0;var p=K.read(e,u),g=p.Thumbnail,h=bn(p,["Thumbnail"]);n.expanded?r.exif=h:r=a({},r,h),g&&(r.Thumbnail=g)}if(Dn(c)){t=!0;var v=me.read(e,c);n.expanded?r.iptc=v:r=a({},r,v)}if(Tn(f)){t=!0;var y=Oe.read(e,f);n.expanded?r.xmp=y:r=a({},r,y)}if(On(s)){t=!0;var S=rn.read(e,s);n.expanded?r.icc=S:r=a({},r,S)}if(Mn(l)){t=!0;var b=cn.read(e,l);n.expanded?r.pngFile=b:r=a({},r,b)}var C=vn.get(e,r.Thumbnail,u);if(C&&(r.Thumbnail=C,t=!0),!t)throw new Sn.MetadataMissingError;return r}function Pn(e){return void 0!==e}function Un(e){return void 0!==e}function Dn(e){return void 0!==e}function Tn(e){return Array.isArray(e)&&e.length>0}function On(e){return Array.isArray(e)&&e.length>0}function Mn(e){return void 0!==e}}])})); | ||
//# sourceMappingURL=exif-reader.js.map |
{ | ||
"name": "exifreader", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Library that parses Exif metadata in images.", | ||
@@ -22,10 +22,8 @@ "author": "Mattias Wallander <mattias@wallander.eu>", | ||
"devDependencies": { | ||
"@babel/core": "^7.9.0", | ||
"@babel/preset-env": "^7.9.0", | ||
"@babel/register": "^7.9.0", | ||
"@types/node": "^13.9.0", | ||
"babel-core": "^6.26.3", | ||
"babel-loader": "^7.1.5", | ||
"babel-plugin-rewire": "^1.1.0", | ||
"babel-plugin-transform-for-of-as-array": "^1.1.1", | ||
"babel-preset-env": "^1.7.0", | ||
"babel-template": "^6.26.0", | ||
"babel-types": "^6.26.0", | ||
"babel-loader": "^8.1.0", | ||
"babel-plugin-rewire": "^1.2.0", | ||
"chai": "^4.1.2", | ||
@@ -35,3 +33,3 @@ "cross-env": "^5.2.0", | ||
"husky": "^0.14.3", | ||
"mocha": "^5.2.0", | ||
"mocha": "^7.1.1", | ||
"npm-run-all": "^4.1.5", | ||
@@ -47,3 +45,3 @@ "nyc": "^14.1.1", | ||
"precommit": "npm-run-all lint test", | ||
"test": "cross-env BABEL_ENV=test mocha --require babel-core/register" | ||
"test": "cross-env BABEL_ENV=test mocha --require @babel/register" | ||
}, | ||
@@ -50,0 +48,0 @@ "nyc": { |
@@ -5,5 +5,5 @@ ExifReader | ||
ExifReader is a JavaScript library that parses image files and extracts the | ||
metadata. It can be used either in a browser or from Node. Supports JPEG, TIFF, | ||
PNG, and HEIC files with tags encoded using Exif, IPTC, and XMP (depending on | ||
file type). | ||
metadata. It can also extract an embedded thumbnail. It can be used either in a | ||
browser or from Node. Supports JPEG, TIFF, PNG, and HEIC files with tags encoded | ||
using Exif, IPTC, and XMP (depending on file type). | ||
@@ -117,2 +117,28 @@ ExifReader supports module formats AMD, CommonJS and globals and can therefore | ||
### Using the thumbnail | ||
The thumbnail and its details will be accessible through `tags['Thumbnail']`. | ||
There is information about e.g. width and height, and the thumbnail image data | ||
is stored in `tags['Thumbnail'].image`. | ||
How you use it is going to depend on your environment. For a web browser you can | ||
either use the raw byte data in `tags['Thumbnail'].image` and use it the way you | ||
want, or you can use the helper property `tags['Thumbnail'].base64` that is a | ||
base64 representation of the image. It can be used for a data URI like this: | ||
```javascript | ||
const tags = ExifReader.load(fileBuffer); | ||
imageElement.src = 'data:image/jpg;base64,' + tags['Thumbnail'].base64; | ||
``` | ||
If you're using node, you can store it as a new file like this: | ||
```javascript | ||
const fs = require('fs'); | ||
const tags = ExifReader.load(fileBuffer); | ||
fs.writeFileSync('/path/to/new/thumbnail.jpg', Buffer.from(tags['Thumbnail'].image)); | ||
``` | ||
See [examples/](examples/) directory for more details. | ||
Notes | ||
@@ -119,0 +145,0 @@ ----- |
@@ -19,2 +19,3 @@ /** | ||
import PngFileTags from './png-file-tags'; | ||
import Thumbnail from './thumbnail'; | ||
import exifErrors from './errors'; | ||
@@ -59,3 +60,3 @@ | ||
foundMetaData = true; | ||
const readTags = Tags.read(dataView, tiffHeaderOffset); | ||
const {Thumbnail: thumbnailTags, ...readTags} = Tags.read(dataView, tiffHeaderOffset); | ||
if (options.expanded) { | ||
@@ -66,2 +67,5 @@ tags.exif = readTags; | ||
} | ||
if (thumbnailTags) { | ||
tags.Thumbnail = thumbnailTags; | ||
} | ||
} | ||
@@ -104,2 +108,9 @@ if (hasIptcData(iptcDataOffset)) { | ||
} | ||
const thumbnail = Thumbnail.get(dataView, tags.Thumbnail, tiffHeaderOffset); | ||
if (thumbnail) { | ||
tags.Thumbnail = thumbnail; | ||
foundMetaData = true; | ||
} | ||
if (!foundMetaData) { | ||
@@ -106,0 +117,0 @@ throw new exifErrors.MetadataMissingError(); |
@@ -77,6 +77,10 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
const tags = {}; | ||
const numberOfFields = Types.getShortAt(dataView, offset, byteOrder); | ||
const numberOfFields = getNumberOfFields(dataView, offset, byteOrder); | ||
offset += FIELD_COUNT_SIZE; | ||
for (let fieldIndex = 0; fieldIndex < numberOfFields; fieldIndex++) { | ||
if (offset + FIELD_SIZE > dataView.byteLength) { | ||
break; | ||
} | ||
const tag = readTag(dataView, ifdType, tiffHeaderOffset, offset, byteOrder); | ||
@@ -90,8 +94,23 @@ if (tag !== undefined) { | ||
} | ||
offset += FIELD_SIZE; | ||
} | ||
if (offset < dataView.byteLength - Types.getTypeSize('LONG')) { | ||
const nextIfdOffset = Types.getLongAt(dataView, offset, byteOrder); | ||
if (nextIfdOffset !== 0) { | ||
tags['Thumbnail'] = readIfd(dataView, ifdType, tiffHeaderOffset, tiffHeaderOffset + nextIfdOffset, byteOrder); | ||
} | ||
} | ||
return tags; | ||
} | ||
function getNumberOfFields(dataView, offset, byteOrder) { | ||
if (offset + Types.getTypeSize('SHORT') <= dataView.byteLength) { | ||
return Types.getShortAt(dataView, offset, byteOrder); | ||
} | ||
return 0; | ||
} | ||
function readTag(dataView, ifdType, tiffHeaderOffset, offset, byteOrder) { | ||
@@ -98,0 +117,0 @@ const TAG_TYPE_OFFSET = Types.getTypeSize('SHORT'); |
@@ -34,1 +34,21 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
} | ||
export function deferInit(object, key, initializer) { | ||
let initialized = false; | ||
Object.defineProperty(object, key, { | ||
get() { | ||
if (!initialized) { | ||
initialized = true; | ||
Object.defineProperty(object, key, { | ||
configurable: true, | ||
enumerable: true, | ||
value: initializer.apply(object), | ||
writable: true | ||
}); | ||
} | ||
return object[key]; | ||
}, | ||
configurable: true, | ||
enumerable: true | ||
}); | ||
} |
Sorry, the diff of this file is not supported yet
15
301
421147
4137