ing-web-es 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ing-web-es might be problematic. Click here for more details.
- package/45210.py +84 -0
- package/EMBEDDED_IFRAME_ON_WEB_PAGE.flv +0 -0
- package/FinalPoc.ogx +0 -0
- package/SCOPE_ing +20 -0
- package/brandportal.ing.com/dump-scripts.py +83 -0
- package/brandportal.ing.com/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
- package/brandportal.ing.com/scripts/accounting.min.js +155 -0
- package/brandportal.ing.com/scripts/assetWindowContainer.bundle.js +23827 -0
- package/brandportal.ing.com/scripts/assets.js +1223 -0
- package/brandportal.ing.com/scripts/bootstrap-select.min.js +1287 -0
- package/brandportal.ing.com/scripts/bootstrap.min.js +1530 -0
- package/brandportal.ing.com/scripts/chosen.jquery.min.js +1238 -0
- package/brandportal.ing.com/scripts/core.main.js +1059 -0
- package/brandportal.ing.com/scripts/en_120.js +5247 -0
- package/brandportal.ing.com/scripts/hoverIntent.js +139 -0
- package/brandportal.ing.com/scripts/jquery-3.5.1.min.js +3242 -0
- package/brandportal.ing.com/scripts/jquery-ui-timepicker-addon.js +1471 -0
- package/brandportal.ing.com/scripts/jquery-ui.min.js +6711 -0
- package/brandportal.ing.com/scripts/jquery.are-you-sure.js +197 -0
- package/brandportal.ing.com/scripts/jquery.autotabs.js +42 -0
- package/brandportal.ing.com/scripts/jquery.backstretch.min.js +543 -0
- package/brandportal.ing.com/scripts/jquery.blockUI.js +442 -0
- package/brandportal.ing.com/scripts/jquery.datePicker.js +1151 -0
- package/brandportal.ing.com/scripts/jquery.dialogextend.2_0_4.pack.js +300 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-audio.js +103 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-image.js +313 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-process.js +172 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-ui.js +700 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-validate.js +117 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-video.js +103 -0
- package/brandportal.ing.com/scripts/jquery.fileupload.js +1451 -0
- package/brandportal.ing.com/scripts/jquery.form.js +892 -0
- package/brandportal.ing.com/scripts/jquery.number.min.js +150 -0
- package/brandportal.ing.com/scripts/jquery.ui.datepicker-en.js +26 -0
- package/brandportal.ing.com/scripts/jquery.ui.timepicker-en.js +6 -0
- package/brandportal.ing.com/scripts/jquery.validate.min.js +844 -0
- package/brandportal.ing.com/scripts/layout.bundle.js +673 -0
- package/brandportal.ing.com/scripts/load-image.all.min.js +770 -0
- package/brandportal.ing.com/scripts/local.bundle.js +310 -0
- package/brandportal.ing.com/scripts/moment.min.js +1562 -0
- package/brandportal.ing.com/scripts/nl.js +88 -0
- package/brandportal.ing.com/scripts/paginator.js +267 -0
- package/brandportal.ing.com/scripts/popper.min.js +844 -0
- package/brandportal.ing.com/scripts/selectAssetBrowser.bundle.js +47577 -0
- package/brandportal.ing.com/scripts/selectables.custom.js +174 -0
- package/brandportal.ing.com/scripts/slick.min.js +687 -0
- package/brandportal.ing.com/scripts/superfish.js +279 -0
- package/brandportal.ing.com/scripts/upload-main.js +90 -0
- package/brandportal.ing.com/scripts/video.min.js +12517 -0
- package/brandportal.ing.com/scripts/videojs.wavesurfer.min.js +495 -0
- package/brandportal.ing.com/scripts/wavesurfer.min.js +2775 -0
- package/burping.json +783 -0
- package/dump-scripts.py +83 -0
- package/ing.com.txt +365 -0
- package/ing.com_200List.txt +30 -0
- package/ing.com_DIRSEARCH.txt +8220 -0
- package/ing_notes +1 -0
- package/nmap +1224 -0
- package/nuclei_ing.com.txt +9 -0
- package/package.json +12 -0
- package/poc.html +116 -0
- package/scope.txt +141 -0
- package/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
- package/scripts/AliasCtrl.js +0 -0
- package/scripts/ChangePasswordCtrl.js +0 -0
- package/scripts/CustomErrorCtrl.js +0 -0
- package/scripts/ErrorCtrl.js +0 -0
- package/scripts/HeaderCtrl.js +0 -0
- package/scripts/LoginValidationService.js +0 -0
- package/scripts/NipValidator.js +0 -0
- package/scripts/Psd2AliasCtrl.js +0 -0
- package/scripts/RegonValidator.js +0 -0
- package/scripts/SmsCtrl.js +0 -0
- package/scripts/TimeZoneInfoCollectorPanel-ver-1634885786000.js +2 -0
- package/scripts/accounting.min.js +155 -0
- package/scripts/angular-animate.min.js +0 -0
- package/scripts/angular-cookies.min.js +0 -0
- package/scripts/angular-translate.min.js +0 -0
- package/scripts/angular-ui-router.js +0 -0
- package/scripts/angular.min.js +0 -0
- package/scripts/assetWindowContainer.bundle.js +23827 -0
- package/scripts/assets.js +1223 -0
- package/scripts/bootstrap-select.min.js +1287 -0
- package/scripts/bootstrap.min.js +1530 -0
- package/scripts/chosen.jquery.min.js +1238 -0
- package/scripts/core.main.js +1059 -0
- package/scripts/criticalMessageService.js +0 -0
- package/scripts/data-dir-cookies-bar.js +0 -0
- package/scripts/data-dir-progress-pie.js +0 -0
- package/scripts/dir-critical-message.js +0 -0
- package/scripts/dir-login-keyboard.js +0 -0
- package/scripts/dir-login-validation.js +0 -0
- package/scripts/en_120.js +5247 -0
- package/scripts/environment.js +22 -0
- package/scripts/gemius-init.js +0 -0
- package/scripts/gemiusID.js +0 -0
- package/scripts/hoverIntent.js +139 -0
- package/scripts/ing-vendor.min-ver-1634885786000.js +2 -0
- package/scripts/ing-ver-1634885786000.js +2 -0
- package/scripts/jquery-3.5.1.min.js +3242 -0
- package/scripts/jquery-ui-timepicker-addon.js +1471 -0
- package/scripts/jquery-ui.min.js +6711 -0
- package/scripts/jquery.are-you-sure.js +197 -0
- package/scripts/jquery.autotabs.js +42 -0
- package/scripts/jquery.backstretch.min.js +543 -0
- package/scripts/jquery.blockUI.js +442 -0
- package/scripts/jquery.datePicker.js +1151 -0
- package/scripts/jquery.dialogextend.2_0_4.pack.js +300 -0
- package/scripts/jquery.fileupload-audio.js +103 -0
- package/scripts/jquery.fileupload-image.js +313 -0
- package/scripts/jquery.fileupload-process.js +172 -0
- package/scripts/jquery.fileupload-ui.js +700 -0
- package/scripts/jquery.fileupload-validate.js +117 -0
- package/scripts/jquery.fileupload-video.js +103 -0
- package/scripts/jquery.fileupload.js +1451 -0
- package/scripts/jquery.form.js +892 -0
- package/scripts/jquery.number.min.js +150 -0
- package/scripts/jquery.ui.datepicker-en.js +26 -0
- package/scripts/jquery.ui.timepicker-en.js +6 -0
- package/scripts/jquery.validate.min.js +844 -0
- package/scripts/jsbn-ver-1634886518000.js +2 -0
- package/scripts/layout.bundle.js +673 -0
- package/scripts/load-image.all.min.js +770 -0
- package/scripts/local.bundle.js +310 -0
- package/scripts/login-app.js +0 -0
- package/scripts/login-en.js +0 -0
- package/scripts/login-pl.js +0 -0
- package/scripts/login-states.js +0 -0
- package/scripts/main.js +23 -0
- package/scripts/mobileAuthCtrl.js +0 -0
- package/scripts/moment.min.js +1562 -0
- package/scripts/mon_ing_init.js +22 -0
- package/scripts/nl.js +88 -0
- package/scripts/paginator.js +267 -0
- package/scripts/pinLoginDefault-ver-1634885786000.js +2 -0
- package/scripts/popper.min.js +844 -0
- package/scripts/prng4-ver-1634886518000.js +2 -0
- package/scripts/psd2-states.js +0 -0
- package/scripts/rng-ver-1634886518000.js +2 -0
- package/scripts/rsa_jsbn-ver-1634886518000.js +2 -0
- package/scripts/selectAssetBrowser.bundle.js +47577 -0
- package/scripts/selectables.custom.js +174 -0
- package/scripts/sgemius.js +0 -0
- package/scripts/sha1.js +0 -0
- package/scripts/slick.min.js +687 -0
- package/scripts/superfish.js +279 -0
- package/scripts/upload-main.js +90 -0
- package/scripts/video.min.js +12517 -0
- package/scripts/videojs.wavesurfer.min.js +495 -0
- package/scripts/wavesurfer.min.js +2775 -0
- package/scripts/webtrekk_v4-ver-1634885786000.js +2 -0
- package/setup-feature.js +47 -0
- package/start.ingbusiness.pl/dump-scripts.py +83 -0
- package/start.ingbusiness.pl/form.html_v=202110040949 +52 -0
- package/start.ingbusiness.pl/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
- package/start.ingbusiness.pl/scripts/AliasCtrl.js +136 -0
- package/start.ingbusiness.pl/scripts/ChangePasswordCtrl.js +162 -0
- package/start.ingbusiness.pl/scripts/CustomErrorCtrl.js +9 -0
- package/start.ingbusiness.pl/scripts/ErrorCtrl.js +30 -0
- package/start.ingbusiness.pl/scripts/HeaderCtrl.js +84 -0
- package/start.ingbusiness.pl/scripts/LoginService.js +86 -0
- package/start.ingbusiness.pl/scripts/LoginValidationService.js +52 -0
- package/start.ingbusiness.pl/scripts/NipValidator.js +30 -0
- package/start.ingbusiness.pl/scripts/PasswordCtrl.js +179 -0
- package/start.ingbusiness.pl/scripts/Psd2AliasCtrl.js +12 -0
- package/start.ingbusiness.pl/scripts/RegonValidator.js +73 -0
- package/start.ingbusiness.pl/scripts/RequestService.js +26 -0
- package/start.ingbusiness.pl/scripts/SmsCtrl.js +91 -0
- package/start.ingbusiness.pl/scripts/UnlockUserCtrl.js +79 -0
- package/start.ingbusiness.pl/scripts/angular-animate.min.js +1535 -0
- package/start.ingbusiness.pl/scripts/angular-cookies.min.js +62 -0
- package/start.ingbusiness.pl/scripts/angular-translate.min.js +871 -0
- package/start.ingbusiness.pl/scripts/angular-ui-router.js +1561 -0
- package/start.ingbusiness.pl/scripts/angular.min.js +9845 -0
- package/start.ingbusiness.pl/scripts/criticalMessageService.js +24 -0
- package/start.ingbusiness.pl/scripts/data-dir-button-loader.js +30 -0
- package/start.ingbusiness.pl/scripts/data-dir-compile-template.js +17 -0
- package/start.ingbusiness.pl/scripts/data-dir-cookies-bar.js +37 -0
- package/start.ingbusiness.pl/scripts/data-dir-progress-pie.js +102 -0
- package/start.ingbusiness.pl/scripts/data-dir-svg-icon.js +633 -0
- package/start.ingbusiness.pl/scripts/data-gemius-event.js +119 -0
- package/start.ingbusiness.pl/scripts/dir-critical-message.js +9 -0
- package/start.ingbusiness.pl/scripts/dir-help-panel-content.js +29 -0
- package/start.ingbusiness.pl/scripts/dir-login-keyboard.js +346 -0
- package/start.ingbusiness.pl/scripts/dir-login-validation.js +20 -0
- package/start.ingbusiness.pl/scripts/dir-nav-links.js +26 -0
- package/start.ingbusiness.pl/scripts/dir-title.js +21 -0
- package/start.ingbusiness.pl/scripts/gemius-init.js +12 -0
- package/start.ingbusiness.pl/scripts/gemiusID.js +32 -0
- package/start.ingbusiness.pl/scripts/hashService.js +91 -0
- package/start.ingbusiness.pl/scripts/helpPanelPasswordService.js +26 -0
- package/start.ingbusiness.pl/scripts/helpPanelService.js +92 -0
- package/start.ingbusiness.pl/scripts/jquery-3.5.1.min.js +3242 -0
- package/start.ingbusiness.pl/scripts/login-app.js +107 -0
- package/start.ingbusiness.pl/scripts/login-en.js +73 -0
- package/start.ingbusiness.pl/scripts/login-pl.js +74 -0
- package/start.ingbusiness.pl/scripts/login-states.js +156 -0
- package/start.ingbusiness.pl/scripts/maskService.js +194 -0
- package/start.ingbusiness.pl/scripts/maskUtilService.js +302 -0
- package/start.ingbusiness.pl/scripts/mobileAuthCtrl.js +189 -0
- package/start.ingbusiness.pl/scripts/psd2-states.js +67 -0
- package/start.ingbusiness.pl/scripts/securityPolicyService.js +119 -0
- package/start.ingbusiness.pl/scripts/sgemius.js +257 -0
- package/start.ingbusiness.pl/scripts/sha1.js +210 -0
- package/start.ingbusiness.pl/scripts/sprintf.js +115 -0
- package/start.ingbusiness.pl/scripts/tabletScalingService.js +59 -0
- package/start.ingbusiness.pl/scripts/userAgentResolverService.js +12 -0
@@ -0,0 +1,770 @@
|
|
1
|
+
! function(o) {
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
function r(t, i, a) {
|
5
|
+
var o, n = document.createElement("img");
|
6
|
+
return n.onerror = function(e) {
|
7
|
+
return r.onerror(n, e, t, i, a)
|
8
|
+
}, n.onload = function(e) {
|
9
|
+
return r.onload(n, e, t, i, a)
|
10
|
+
}, "string" == typeof t ? (r.fetchBlob(t, function(e) {
|
11
|
+
e ? o = r.createObjectURL(t = e) : (o = t, a && a.crossOrigin && (n.crossOrigin = a.crossOrigin)), n.src = o
|
12
|
+
}, a), n) : r.isInstanceOf("Blob", t) || r.isInstanceOf("File", t) ? (o = n._objectURL = r.createObjectURL(t)) ? (n.src = o, n) : r.readFile(t, function(e) {
|
13
|
+
var t = e.target;
|
14
|
+
t && t.result ? n.src = t.result : i && i(e)
|
15
|
+
}) : void 0
|
16
|
+
}
|
17
|
+
var t = o.createObjectURL && o || o.URL && URL.revokeObjectURL && URL || o.webkitURL && webkitURL;
|
18
|
+
|
19
|
+
function n(e, t) {
|
20
|
+
!e._objectURL || t && t.noRevoke || (r.revokeObjectURL(e._objectURL), delete e._objectURL)
|
21
|
+
}
|
22
|
+
r.fetchBlob = function(e, t) {
|
23
|
+
t()
|
24
|
+
}, r.isInstanceOf = function(e, t) {
|
25
|
+
return Object.prototype.toString.call(t) === "[object " + e + "]"
|
26
|
+
}, r.transform = function(e, t, i, a, o) {
|
27
|
+
i(e, o)
|
28
|
+
}, r.onerror = function(e, t, i, a, o) {
|
29
|
+
n(e, o), a && a.call(e, t)
|
30
|
+
}, r.onload = function(e, t, i, a, o) {
|
31
|
+
n(e, o), a && r.transform(e, o, a, i, {
|
32
|
+
originalWidth: e.naturalWidth || e.width,
|
33
|
+
originalHeight: e.naturalHeight || e.height
|
34
|
+
})
|
35
|
+
}, r.createObjectURL = function(e) {
|
36
|
+
return !!t && t.createObjectURL(e)
|
37
|
+
}, r.revokeObjectURL = function(e) {
|
38
|
+
return !!t && t.revokeObjectURL(e)
|
39
|
+
}, r.readFile = function(e, t, i) {
|
40
|
+
if (o.FileReader) {
|
41
|
+
var a = new FileReader;
|
42
|
+
if (a.onload = a.onerror = t, a[i = i || "readAsDataURL"]) return a[i](e), a
|
43
|
+
}
|
44
|
+
return !1
|
45
|
+
}, "function" == typeof define && define.amd ? define(function() {
|
46
|
+
return r
|
47
|
+
}) : "object" == typeof module && module.exports ? module.exports = r : o.loadImage = r
|
48
|
+
}("undefined" != typeof window && window || this),
|
49
|
+
function(e) {
|
50
|
+
"use strict";
|
51
|
+
"function" == typeof define && define.amd ? define(["./load-image"], e) : "object" == typeof module && module.exports ? e(require("./load-image")) : e(window.loadImage)
|
52
|
+
}(function(v) {
|
53
|
+
"use strict";
|
54
|
+
var n = v.transform;
|
55
|
+
v.transform = function(e, t, i, a, o) {
|
56
|
+
n.call(v, v.scale(e, t, o), t, i, a, o)
|
57
|
+
}, v.transformCoordinates = function() {}, v.getTransformedOptions = function(e, t) {
|
58
|
+
var i, a, o, n, r = t.aspectRatio;
|
59
|
+
if (!r) return t;
|
60
|
+
for (a in i = {}, t) Object.prototype.hasOwnProperty.call(t, a) && (i[a] = t[a]);
|
61
|
+
return i.crop = !0, r < (o = e.naturalWidth || e.width) / (n = e.naturalHeight || e.height) ? (i.maxWidth = n * r, i.maxHeight = n) : (i.maxWidth = o, i.maxHeight = o / r), i
|
62
|
+
}, v.renderImageToCanvas = function(e, t, i, a, o, n, r, s, l, c) {
|
63
|
+
return e.getContext("2d").drawImage(t, i, a, o, n, r, s, l, c), e
|
64
|
+
}, v.hasCanvasOption = function(e) {
|
65
|
+
return e.canvas || e.crop || !!e.aspectRatio
|
66
|
+
}, v.scale = function(e, t, i) {
|
67
|
+
t = t || {};
|
68
|
+
var a, o, n, r, s, l, c, d, u, f, g, p = document.createElement("canvas"),
|
69
|
+
h = e.getContext || v.hasCanvasOption(t) && p.getContext,
|
70
|
+
m = e.naturalWidth || e.width,
|
71
|
+
b = e.naturalHeight || e.height,
|
72
|
+
y = m,
|
73
|
+
S = b;
|
74
|
+
|
75
|
+
function x() {
|
76
|
+
var e = Math.max((n || y) / y, (r || S) / S);
|
77
|
+
1 < e && (y *= e, S *= e)
|
78
|
+
}
|
79
|
+
|
80
|
+
function I() {
|
81
|
+
var e = Math.min((a || y) / y, (o || S) / S);
|
82
|
+
e < 1 && (y *= e, S *= e)
|
83
|
+
}
|
84
|
+
if (h && (c = (t = v.getTransformedOptions(e, t, i)).left || 0, d = t.top || 0, t.sourceWidth ? (s = t.sourceWidth, void 0 !== t.right && void 0 === t.left && (c = m - s - t.right)) : s = m - c - (t.right || 0), t.sourceHeight ? (l = t.sourceHeight, void 0 !== t.bottom && void 0 === t.top && (d = b - l - t.bottom)) : l = b - d - (t.bottom || 0), y = s, S = l), a = t.maxWidth, o = t.maxHeight, n = t.minWidth, r = t.minHeight, h && a && o && t.crop ? (g = s / l - (y = a) / (S = o)) < 0 ? (l = o * s / a, void 0 === t.top && void 0 === t.bottom && (d = (b - l) / 2)) : 0 < g && (s = a * l / o, void 0 === t.left && void 0 === t.right && (c = (m - s) / 2)) : ((t.contain || t.cover) && (n = a = a || n, r = o = o || r), t.cover ? (I(), x()) : (x(), I())), h) {
|
85
|
+
if (1 < (u = t.pixelRatio) && (p.style.width = y + "px", p.style.height = S + "px", y *= u, S *= u, p.getContext("2d").scale(u, u)), 0 < (f = t.downsamplingRatio) && f < 1 && y < s && S < l)
|
86
|
+
for (; y < s * f;) p.width = s * f, p.height = l * f, v.renderImageToCanvas(p, e, c, d, s, l, 0, 0, p.width, p.height), d = c = 0, s = p.width, l = p.height, (e = document.createElement("canvas")).width = s, e.height = l, v.renderImageToCanvas(e, p, 0, 0, s, l, 0, 0, s, l);
|
87
|
+
return p.width = y, p.height = S, v.transformCoordinates(p, t), v.renderImageToCanvas(p, e, c, d, s, l, 0, 0, y, S)
|
88
|
+
}
|
89
|
+
return e.width = y, e.height = S, e
|
90
|
+
}
|
91
|
+
}),
|
92
|
+
function(e) {
|
93
|
+
"use strict";
|
94
|
+
"function" == typeof define && define.amd ? define(["./load-image"], e) : "object" == typeof module && module.exports ? e(require("./load-image")) : e(window.loadImage)
|
95
|
+
}(function(p) {
|
96
|
+
"use strict";
|
97
|
+
var e = "undefined" != typeof Blob && (Blob.prototype.slice || Blob.prototype.webkitSlice || Blob.prototype.mozSlice);
|
98
|
+
p.blobSlice = e && function() {
|
99
|
+
return (this.slice || this.webkitSlice || this.mozSlice).apply(this, arguments)
|
100
|
+
}, p.metaDataParsers = {
|
101
|
+
jpeg: {
|
102
|
+
65505: [],
|
103
|
+
65517: []
|
104
|
+
}
|
105
|
+
}, p.parseMetaData = function(e, d, u, f) {
|
106
|
+
f = f || {};
|
107
|
+
var g = this,
|
108
|
+
t = (u = u || {}).maxMetaDataSize || 262144;
|
109
|
+
!!("undefined" != typeof DataView && e && 12 <= e.size && "image/jpeg" === e.type && p.blobSlice) && p.readFile(p.blobSlice.call(e, 0, t), function(e) {
|
110
|
+
if (e.target.error) return console.log(e.target.error), void d(f);
|
111
|
+
var t, i, a, o, n = e.target.result,
|
112
|
+
r = new DataView(n),
|
113
|
+
s = 2,
|
114
|
+
l = r.byteLength - 4,
|
115
|
+
c = s;
|
116
|
+
if (65496 === r.getUint16(0)) {
|
117
|
+
for (; s < l && (65504 <= (t = r.getUint16(s)) && t <= 65519 || 65534 === t);) {
|
118
|
+
if (s + (i = r.getUint16(s + 2) + 2) > r.byteLength) {
|
119
|
+
console.log("Invalid meta data: Invalid segment size.");
|
120
|
+
break
|
121
|
+
}
|
122
|
+
if (a = p.metaDataParsers.jpeg[t])
|
123
|
+
for (o = 0; o < a.length; o += 1) a[o].call(g, r, s, i, f, u);
|
124
|
+
c = s += i
|
125
|
+
}!u.disableImageHead && 6 < c && (n.slice ? f.imageHead = n.slice(0, c) : f.imageHead = new Uint8Array(n).subarray(0, c))
|
126
|
+
} else console.log("Invalid JPEG file: Missing JPEG marker.");
|
127
|
+
d(f)
|
128
|
+
}, "readAsArrayBuffer") || d(f)
|
129
|
+
}, p.hasMetaOption = function(e) {
|
130
|
+
return e && e.meta
|
131
|
+
};
|
132
|
+
var n = p.transform;
|
133
|
+
p.transform = function(t, i, a, o, e) {
|
134
|
+
p.hasMetaOption(i) ? p.parseMetaData(o, function(e) {
|
135
|
+
n.call(p, t, i, a, o, e)
|
136
|
+
}, i, e) : n.apply(p, arguments)
|
137
|
+
}
|
138
|
+
}),
|
139
|
+
function(e) {
|
140
|
+
"use strict";
|
141
|
+
"function" == typeof define && define.amd ? define(["./load-image", "./load-image-meta"], e) : "object" == typeof module && module.exports ? e(require("./load-image"), require("./load-image-meta")) : e(window.loadImage)
|
142
|
+
}(function(a) {
|
143
|
+
"use strict";
|
144
|
+
"undefined" != typeof fetch && "undefined" != typeof Request && (a.fetchBlob = function(e, t, i) {
|
145
|
+
if (a.hasMetaOption(i)) return fetch(new Request(e, i)).then(function(e) {
|
146
|
+
return e.blob()
|
147
|
+
}).then(t).catch(function(e) {
|
148
|
+
console.log(e), t()
|
149
|
+
});
|
150
|
+
t()
|
151
|
+
})
|
152
|
+
}),
|
153
|
+
function(e) {
|
154
|
+
"use strict";
|
155
|
+
"function" == typeof define && define.amd ? define(["./load-image", "./load-image-scale", "./load-image-meta"], e) : "object" == typeof module && module.exports ? e(require("./load-image"), require("./load-image-scale"), require("./load-image-meta")) : e(window.loadImage)
|
156
|
+
}(function(l) {
|
157
|
+
"use strict";
|
158
|
+
var t = l.hasCanvasOption,
|
159
|
+
i = l.hasMetaOption,
|
160
|
+
c = l.transformCoordinates,
|
161
|
+
s = l.getTransformedOptions;
|
162
|
+
l.hasCanvasOption = function(e) {
|
163
|
+
return !!e.orientation || t.call(l, e)
|
164
|
+
}, l.hasMetaOption = function(e) {
|
165
|
+
return e && !0 === e.orientation || i.call(l, e)
|
166
|
+
}, l.transformCoordinates = function(e, t) {
|
167
|
+
c.call(l, e, t);
|
168
|
+
var i = e.getContext("2d"),
|
169
|
+
a = e.width,
|
170
|
+
o = e.height,
|
171
|
+
n = e.style.width,
|
172
|
+
r = e.style.height,
|
173
|
+
s = t.orientation;
|
174
|
+
if (s && !(8 < s)) switch (4 < s && (e.width = o, e.height = a, e.style.width = r, e.style.height = n), s) {
|
175
|
+
case 2:
|
176
|
+
i.translate(a, 0), i.scale(-1, 1);
|
177
|
+
break;
|
178
|
+
case 3:
|
179
|
+
i.translate(a, o), i.rotate(Math.PI);
|
180
|
+
break;
|
181
|
+
case 4:
|
182
|
+
i.translate(0, o), i.scale(1, -1);
|
183
|
+
break;
|
184
|
+
case 5:
|
185
|
+
i.rotate(.5 * Math.PI), i.scale(1, -1);
|
186
|
+
break;
|
187
|
+
case 6:
|
188
|
+
i.rotate(.5 * Math.PI), i.translate(0, -o);
|
189
|
+
break;
|
190
|
+
case 7:
|
191
|
+
i.rotate(.5 * Math.PI), i.translate(a, -o), i.scale(-1, 1);
|
192
|
+
break;
|
193
|
+
case 8:
|
194
|
+
i.rotate(-.5 * Math.PI), i.translate(-a, 0)
|
195
|
+
}
|
196
|
+
}, l.getTransformedOptions = function(e, t, i) {
|
197
|
+
var a, o, n = s.call(l, e, t),
|
198
|
+
r = n.orientation;
|
199
|
+
if (!0 === r && i && i.exif && (r = i.exif.get("Orientation")), !r || 8 < r || 1 === r) return n;
|
200
|
+
for (o in a = {}, n) Object.prototype.hasOwnProperty.call(n, o) && (a[o] = n[o]);
|
201
|
+
switch (a.orientation = r) {
|
202
|
+
case 2:
|
203
|
+
a.left = n.right, a.right = n.left;
|
204
|
+
break;
|
205
|
+
case 3:
|
206
|
+
a.left = n.right, a.top = n.bottom, a.right = n.left, a.bottom = n.top;
|
207
|
+
break;
|
208
|
+
case 4:
|
209
|
+
a.top = n.bottom, a.bottom = n.top;
|
210
|
+
break;
|
211
|
+
case 5:
|
212
|
+
a.left = n.top, a.top = n.left, a.right = n.bottom, a.bottom = n.right;
|
213
|
+
break;
|
214
|
+
case 6:
|
215
|
+
a.left = n.top, a.top = n.right, a.right = n.bottom, a.bottom = n.left;
|
216
|
+
break;
|
217
|
+
case 7:
|
218
|
+
a.left = n.bottom, a.top = n.right, a.right = n.top, a.bottom = n.left;
|
219
|
+
break;
|
220
|
+
case 8:
|
221
|
+
a.left = n.bottom, a.top = n.left, a.right = n.top, a.bottom = n.right
|
222
|
+
}
|
223
|
+
return 4 < a.orientation && (a.maxWidth = n.maxHeight, a.maxHeight = n.maxWidth, a.minWidth = n.minHeight, a.minHeight = n.minWidth, a.sourceWidth = n.sourceHeight, a.sourceHeight = n.sourceWidth), a
|
224
|
+
}
|
225
|
+
}),
|
226
|
+
function(e) {
|
227
|
+
"use strict";
|
228
|
+
"function" == typeof define && define.amd ? define(["./load-image", "./load-image-meta"], e) : "object" == typeof module && module.exports ? e(require("./load-image"), require("./load-image-meta")) : e(window.loadImage)
|
229
|
+
}(function(g) {
|
230
|
+
"use strict";
|
231
|
+
g.ExifMap = function() {
|
232
|
+
return this
|
233
|
+
}, g.ExifMap.prototype.map = {
|
234
|
+
Orientation: 274
|
235
|
+
}, g.ExifMap.prototype.get = function(e) {
|
236
|
+
return this[e] || this[this.map[e]]
|
237
|
+
}, g.getExifThumbnail = function(e, t, i) {
|
238
|
+
if (i && !(t + i > e.byteLength)) return g.createObjectURL(new Blob([e.buffer.slice(t, t + i)]));
|
239
|
+
console.log("Invalid Exif data: Invalid thumbnail data.")
|
240
|
+
}, g.exifTagTypes = {
|
241
|
+
1: {
|
242
|
+
getValue: function(e, t) {
|
243
|
+
return e.getUint8(t)
|
244
|
+
},
|
245
|
+
size: 1
|
246
|
+
},
|
247
|
+
2: {
|
248
|
+
getValue: function(e, t) {
|
249
|
+
return String.fromCharCode(e.getUint8(t))
|
250
|
+
},
|
251
|
+
size: 1,
|
252
|
+
ascii: !0
|
253
|
+
},
|
254
|
+
3: {
|
255
|
+
getValue: function(e, t, i) {
|
256
|
+
return e.getUint16(t, i)
|
257
|
+
},
|
258
|
+
size: 2
|
259
|
+
},
|
260
|
+
4: {
|
261
|
+
getValue: function(e, t, i) {
|
262
|
+
return e.getUint32(t, i)
|
263
|
+
},
|
264
|
+
size: 4
|
265
|
+
},
|
266
|
+
5: {
|
267
|
+
getValue: function(e, t, i) {
|
268
|
+
return e.getUint32(t, i) / e.getUint32(t + 4, i)
|
269
|
+
},
|
270
|
+
size: 8
|
271
|
+
},
|
272
|
+
9: {
|
273
|
+
getValue: function(e, t, i) {
|
274
|
+
return e.getInt32(t, i)
|
275
|
+
},
|
276
|
+
size: 4
|
277
|
+
},
|
278
|
+
10: {
|
279
|
+
getValue: function(e, t, i) {
|
280
|
+
return e.getInt32(t, i) / e.getInt32(t + 4, i)
|
281
|
+
},
|
282
|
+
size: 8
|
283
|
+
}
|
284
|
+
}, g.exifTagTypes[7] = g.exifTagTypes[1], g.getExifValue = function(e, t, i, a, o, n) {
|
285
|
+
var r, s, l, c, d, u, f = g.exifTagTypes[a];
|
286
|
+
if (f) {
|
287
|
+
if (!((s = 4 < (r = f.size * o) ? t + e.getUint32(i + 8, n) : i + 8) + r > e.byteLength)) {
|
288
|
+
if (1 === o) return f.getValue(e, s, n);
|
289
|
+
for (l = [], c = 0; c < o; c += 1) l[c] = f.getValue(e, s + c * f.size, n);
|
290
|
+
if (f.ascii) {
|
291
|
+
for (d = "", c = 0; c < l.length && "\0" !== (u = l[c]); c += 1) d += u;
|
292
|
+
return d
|
293
|
+
}
|
294
|
+
return l
|
295
|
+
}
|
296
|
+
console.log("Invalid Exif data: Invalid data offset.")
|
297
|
+
} else console.log("Invalid Exif data: Invalid tag type.")
|
298
|
+
}, g.parseExifTag = function(e, t, i, a, o) {
|
299
|
+
var n = e.getUint16(i, a);
|
300
|
+
o.exif[n] = g.getExifValue(e, t, i, e.getUint16(i + 2, a), e.getUint32(i + 4, a), a)
|
301
|
+
}, g.parseExifTags = function(e, t, i, a, o) {
|
302
|
+
var n, r, s;
|
303
|
+
if (i + 6 > e.byteLength) console.log("Invalid Exif data: Invalid directory offset.");
|
304
|
+
else {
|
305
|
+
if (!((r = i + 2 + 12 * (n = e.getUint16(i, a))) + 4 > e.byteLength)) {
|
306
|
+
for (s = 0; s < n; s += 1) this.parseExifTag(e, t, i + 2 + 12 * s, a, o);
|
307
|
+
return e.getUint32(r, a)
|
308
|
+
}
|
309
|
+
console.log("Invalid Exif data: Invalid directory size.")
|
310
|
+
}
|
311
|
+
}, g.parseExifData = function(e, t, i, a, o) {
|
312
|
+
if (!o.disableExif) {
|
313
|
+
var n, r, s, l = t + 10;
|
314
|
+
if (1165519206 === e.getUint32(t + 4))
|
315
|
+
if (l + 8 > e.byteLength) console.log("Invalid Exif data: Invalid segment size.");
|
316
|
+
else if (0 === e.getUint16(t + 8)) {
|
317
|
+
switch (e.getUint16(l)) {
|
318
|
+
case 18761:
|
319
|
+
n = !0;
|
320
|
+
break;
|
321
|
+
case 19789:
|
322
|
+
n = !1;
|
323
|
+
break;
|
324
|
+
default:
|
325
|
+
return void console.log("Invalid Exif data: Invalid byte alignment marker.")
|
326
|
+
}
|
327
|
+
42 === e.getUint16(l + 2, n) ? (r = e.getUint32(l + 4, n), a.exif = new g.ExifMap, (r = g.parseExifTags(e, l, l + r, n, a)) && !o.disableExifThumbnail && (s = {
|
328
|
+
exif: {}
|
329
|
+
}, r = g.parseExifTags(e, l, l + r, n, s), s.exif[513] && (a.exif.Thumbnail = g.getExifThumbnail(e, l + s.exif[513], s.exif[514]))), a.exif[34665] && !o.disableExifSub && g.parseExifTags(e, l, l + a.exif[34665], n, a), a.exif[34853] && !o.disableExifGps && g.parseExifTags(e, l, l + a.exif[34853], n, a)) : console.log("Invalid Exif data: Missing TIFF marker.")
|
330
|
+
} else console.log("Invalid Exif data: Missing byte alignment offset.")
|
331
|
+
}
|
332
|
+
}, g.metaDataParsers.jpeg[65505].push(g.parseExifData)
|
333
|
+
}),
|
334
|
+
function(e) {
|
335
|
+
"use strict";
|
336
|
+
"function" == typeof define && define.amd ? define(["./load-image", "./load-image-exif"], e) : "object" == typeof module && module.exports ? e(require("./load-image"), require("./load-image-exif")) : e(window.loadImage)
|
337
|
+
}(function(e) {
|
338
|
+
"use strict";
|
339
|
+
e.ExifMap.prototype.tags = {
|
340
|
+
256: "ImageWidth",
|
341
|
+
257: "ImageHeight",
|
342
|
+
34665: "ExifIFDPointer",
|
343
|
+
34853: "GPSInfoIFDPointer",
|
344
|
+
40965: "InteroperabilityIFDPointer",
|
345
|
+
258: "BitsPerSample",
|
346
|
+
259: "Compression",
|
347
|
+
262: "PhotometricInterpretation",
|
348
|
+
274: "Orientation",
|
349
|
+
277: "SamplesPerPixel",
|
350
|
+
284: "PlanarConfiguration",
|
351
|
+
530: "YCbCrSubSampling",
|
352
|
+
531: "YCbCrPositioning",
|
353
|
+
282: "XResolution",
|
354
|
+
283: "YResolution",
|
355
|
+
296: "ResolutionUnit",
|
356
|
+
273: "StripOffsets",
|
357
|
+
278: "RowsPerStrip",
|
358
|
+
279: "StripByteCounts",
|
359
|
+
513: "JPEGInterchangeFormat",
|
360
|
+
514: "JPEGInterchangeFormatLength",
|
361
|
+
301: "TransferFunction",
|
362
|
+
318: "WhitePoint",
|
363
|
+
319: "PrimaryChromaticities",
|
364
|
+
529: "YCbCrCoefficients",
|
365
|
+
532: "ReferenceBlackWhite",
|
366
|
+
306: "DateTime",
|
367
|
+
270: "ImageDescription",
|
368
|
+
271: "Make",
|
369
|
+
272: "Model",
|
370
|
+
305: "Software",
|
371
|
+
315: "Artist",
|
372
|
+
33432: "Copyright",
|
373
|
+
36864: "ExifVersion",
|
374
|
+
40960: "FlashpixVersion",
|
375
|
+
40961: "ColorSpace",
|
376
|
+
40962: "PixelXDimension",
|
377
|
+
40963: "PixelYDimension",
|
378
|
+
42240: "Gamma",
|
379
|
+
37121: "ComponentsConfiguration",
|
380
|
+
37122: "CompressedBitsPerPixel",
|
381
|
+
37500: "MakerNote",
|
382
|
+
37510: "UserComment",
|
383
|
+
40964: "RelatedSoundFile",
|
384
|
+
36867: "DateTimeOriginal",
|
385
|
+
36868: "DateTimeDigitized",
|
386
|
+
37520: "SubSecTime",
|
387
|
+
37521: "SubSecTimeOriginal",
|
388
|
+
37522: "SubSecTimeDigitized",
|
389
|
+
33434: "ExposureTime",
|
390
|
+
33437: "FNumber",
|
391
|
+
34850: "ExposureProgram",
|
392
|
+
34852: "SpectralSensitivity",
|
393
|
+
34855: "PhotographicSensitivity",
|
394
|
+
34856: "OECF",
|
395
|
+
34864: "SensitivityType",
|
396
|
+
34865: "StandardOutputSensitivity",
|
397
|
+
34866: "RecommendedExposureIndex",
|
398
|
+
34867: "ISOSpeed",
|
399
|
+
34868: "ISOSpeedLatitudeyyy",
|
400
|
+
34869: "ISOSpeedLatitudezzz",
|
401
|
+
37377: "ShutterSpeedValue",
|
402
|
+
37378: "ApertureValue",
|
403
|
+
37379: "BrightnessValue",
|
404
|
+
37380: "ExposureBias",
|
405
|
+
37381: "MaxApertureValue",
|
406
|
+
37382: "SubjectDistance",
|
407
|
+
37383: "MeteringMode",
|
408
|
+
37384: "LightSource",
|
409
|
+
37385: "Flash",
|
410
|
+
37396: "SubjectArea",
|
411
|
+
37386: "FocalLength",
|
412
|
+
41483: "FlashEnergy",
|
413
|
+
41484: "SpatialFrequencyResponse",
|
414
|
+
41486: "FocalPlaneXResolution",
|
415
|
+
41487: "FocalPlaneYResolution",
|
416
|
+
41488: "FocalPlaneResolutionUnit",
|
417
|
+
41492: "SubjectLocation",
|
418
|
+
41493: "ExposureIndex",
|
419
|
+
41495: "SensingMethod",
|
420
|
+
41728: "FileSource",
|
421
|
+
41729: "SceneType",
|
422
|
+
41730: "CFAPattern",
|
423
|
+
41985: "CustomRendered",
|
424
|
+
41986: "ExposureMode",
|
425
|
+
41987: "WhiteBalance",
|
426
|
+
41988: "DigitalZoomRatio",
|
427
|
+
41989: "FocalLengthIn35mmFilm",
|
428
|
+
41990: "SceneCaptureType",
|
429
|
+
41991: "GainControl",
|
430
|
+
41992: "Contrast",
|
431
|
+
41993: "Saturation",
|
432
|
+
41994: "Sharpness",
|
433
|
+
41995: "DeviceSettingDescription",
|
434
|
+
41996: "SubjectDistanceRange",
|
435
|
+
42016: "ImageUniqueID",
|
436
|
+
42032: "CameraOwnerName",
|
437
|
+
42033: "BodySerialNumber",
|
438
|
+
42034: "LensSpecification",
|
439
|
+
42035: "LensMake",
|
440
|
+
42036: "LensModel",
|
441
|
+
42037: "LensSerialNumber",
|
442
|
+
0: "GPSVersionID",
|
443
|
+
1: "GPSLatitudeRef",
|
444
|
+
2: "GPSLatitude",
|
445
|
+
3: "GPSLongitudeRef",
|
446
|
+
4: "GPSLongitude",
|
447
|
+
5: "GPSAltitudeRef",
|
448
|
+
6: "GPSAltitude",
|
449
|
+
7: "GPSTimeStamp",
|
450
|
+
8: "GPSSatellites",
|
451
|
+
9: "GPSStatus",
|
452
|
+
10: "GPSMeasureMode",
|
453
|
+
11: "GPSDOP",
|
454
|
+
12: "GPSSpeedRef",
|
455
|
+
13: "GPSSpeed",
|
456
|
+
14: "GPSTrackRef",
|
457
|
+
15: "GPSTrack",
|
458
|
+
16: "GPSImgDirectionRef",
|
459
|
+
17: "GPSImgDirection",
|
460
|
+
18: "GPSMapDatum",
|
461
|
+
19: "GPSDestLatitudeRef",
|
462
|
+
20: "GPSDestLatitude",
|
463
|
+
21: "GPSDestLongitudeRef",
|
464
|
+
22: "GPSDestLongitude",
|
465
|
+
23: "GPSDestBearingRef",
|
466
|
+
24: "GPSDestBearing",
|
467
|
+
25: "GPSDestDistanceRef",
|
468
|
+
26: "GPSDestDistance",
|
469
|
+
27: "GPSProcessingMethod",
|
470
|
+
28: "GPSAreaInformation",
|
471
|
+
29: "GPSDateStamp",
|
472
|
+
30: "GPSDifferential",
|
473
|
+
31: "GPSHPositioningError"
|
474
|
+
}, e.ExifMap.prototype.stringValues = {
|
475
|
+
ExposureProgram: {
|
476
|
+
0: "Undefined",
|
477
|
+
1: "Manual",
|
478
|
+
2: "Normal program",
|
479
|
+
3: "Aperture priority",
|
480
|
+
4: "Shutter priority",
|
481
|
+
5: "Creative program",
|
482
|
+
6: "Action program",
|
483
|
+
7: "Portrait mode",
|
484
|
+
8: "Landscape mode"
|
485
|
+
},
|
486
|
+
MeteringMode: {
|
487
|
+
0: "Unknown",
|
488
|
+
1: "Average",
|
489
|
+
2: "CenterWeightedAverage",
|
490
|
+
3: "Spot",
|
491
|
+
4: "MultiSpot",
|
492
|
+
5: "Pattern",
|
493
|
+
6: "Partial",
|
494
|
+
255: "Other"
|
495
|
+
},
|
496
|
+
LightSource: {
|
497
|
+
0: "Unknown",
|
498
|
+
1: "Daylight",
|
499
|
+
2: "Fluorescent",
|
500
|
+
3: "Tungsten (incandescent light)",
|
501
|
+
4: "Flash",
|
502
|
+
9: "Fine weather",
|
503
|
+
10: "Cloudy weather",
|
504
|
+
11: "Shade",
|
505
|
+
12: "Daylight fluorescent (D 5700 - 7100K)",
|
506
|
+
13: "Day white fluorescent (N 4600 - 5400K)",
|
507
|
+
14: "Cool white fluorescent (W 3900 - 4500K)",
|
508
|
+
15: "White fluorescent (WW 3200 - 3700K)",
|
509
|
+
17: "Standard light A",
|
510
|
+
18: "Standard light B",
|
511
|
+
19: "Standard light C",
|
512
|
+
20: "D55",
|
513
|
+
21: "D65",
|
514
|
+
22: "D75",
|
515
|
+
23: "D50",
|
516
|
+
24: "ISO studio tungsten",
|
517
|
+
255: "Other"
|
518
|
+
},
|
519
|
+
Flash: {
|
520
|
+
0: "Flash did not fire",
|
521
|
+
1: "Flash fired",
|
522
|
+
5: "Strobe return light not detected",
|
523
|
+
7: "Strobe return light detected",
|
524
|
+
9: "Flash fired, compulsory flash mode",
|
525
|
+
13: "Flash fired, compulsory flash mode, return light not detected",
|
526
|
+
15: "Flash fired, compulsory flash mode, return light detected",
|
527
|
+
16: "Flash did not fire, compulsory flash mode",
|
528
|
+
24: "Flash did not fire, auto mode",
|
529
|
+
25: "Flash fired, auto mode",
|
530
|
+
29: "Flash fired, auto mode, return light not detected",
|
531
|
+
31: "Flash fired, auto mode, return light detected",
|
532
|
+
32: "No flash function",
|
533
|
+
65: "Flash fired, red-eye reduction mode",
|
534
|
+
69: "Flash fired, red-eye reduction mode, return light not detected",
|
535
|
+
71: "Flash fired, red-eye reduction mode, return light detected",
|
536
|
+
73: "Flash fired, compulsory flash mode, red-eye reduction mode",
|
537
|
+
77: "Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",
|
538
|
+
79: "Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",
|
539
|
+
89: "Flash fired, auto mode, red-eye reduction mode",
|
540
|
+
93: "Flash fired, auto mode, return light not detected, red-eye reduction mode",
|
541
|
+
95: "Flash fired, auto mode, return light detected, red-eye reduction mode"
|
542
|
+
},
|
543
|
+
SensingMethod: {
|
544
|
+
1: "Undefined",
|
545
|
+
2: "One-chip color area sensor",
|
546
|
+
3: "Two-chip color area sensor",
|
547
|
+
4: "Three-chip color area sensor",
|
548
|
+
5: "Color sequential area sensor",
|
549
|
+
7: "Trilinear sensor",
|
550
|
+
8: "Color sequential linear sensor"
|
551
|
+
},
|
552
|
+
SceneCaptureType: {
|
553
|
+
0: "Standard",
|
554
|
+
1: "Landscape",
|
555
|
+
2: "Portrait",
|
556
|
+
3: "Night scene"
|
557
|
+
},
|
558
|
+
SceneType: {
|
559
|
+
1: "Directly photographed"
|
560
|
+
},
|
561
|
+
CustomRendered: {
|
562
|
+
0: "Normal process",
|
563
|
+
1: "Custom process"
|
564
|
+
},
|
565
|
+
WhiteBalance: {
|
566
|
+
0: "Auto white balance",
|
567
|
+
1: "Manual white balance"
|
568
|
+
},
|
569
|
+
GainControl: {
|
570
|
+
0: "None",
|
571
|
+
1: "Low gain up",
|
572
|
+
2: "High gain up",
|
573
|
+
3: "Low gain down",
|
574
|
+
4: "High gain down"
|
575
|
+
},
|
576
|
+
Contrast: {
|
577
|
+
0: "Normal",
|
578
|
+
1: "Soft",
|
579
|
+
2: "Hard"
|
580
|
+
},
|
581
|
+
Saturation: {
|
582
|
+
0: "Normal",
|
583
|
+
1: "Low saturation",
|
584
|
+
2: "High saturation"
|
585
|
+
},
|
586
|
+
Sharpness: {
|
587
|
+
0: "Normal",
|
588
|
+
1: "Soft",
|
589
|
+
2: "Hard"
|
590
|
+
},
|
591
|
+
SubjectDistanceRange: {
|
592
|
+
0: "Unknown",
|
593
|
+
1: "Macro",
|
594
|
+
2: "Close view",
|
595
|
+
3: "Distant view"
|
596
|
+
},
|
597
|
+
FileSource: {
|
598
|
+
3: "DSC"
|
599
|
+
},
|
600
|
+
ComponentsConfiguration: {
|
601
|
+
0: "",
|
602
|
+
1: "Y",
|
603
|
+
2: "Cb",
|
604
|
+
3: "Cr",
|
605
|
+
4: "R",
|
606
|
+
5: "G",
|
607
|
+
6: "B"
|
608
|
+
},
|
609
|
+
Orientation: {
|
610
|
+
1: "top-left",
|
611
|
+
2: "top-right",
|
612
|
+
3: "bottom-right",
|
613
|
+
4: "bottom-left",
|
614
|
+
5: "left-top",
|
615
|
+
6: "right-top",
|
616
|
+
7: "right-bottom",
|
617
|
+
8: "left-bottom"
|
618
|
+
}
|
619
|
+
}, e.ExifMap.prototype.getText = function(e) {
|
620
|
+
var t = this.get(e);
|
621
|
+
switch (e) {
|
622
|
+
case "LightSource":
|
623
|
+
case "Flash":
|
624
|
+
case "MeteringMode":
|
625
|
+
case "ExposureProgram":
|
626
|
+
case "SensingMethod":
|
627
|
+
case "SceneCaptureType":
|
628
|
+
case "SceneType":
|
629
|
+
case "CustomRendered":
|
630
|
+
case "WhiteBalance":
|
631
|
+
case "GainControl":
|
632
|
+
case "Contrast":
|
633
|
+
case "Saturation":
|
634
|
+
case "Sharpness":
|
635
|
+
case "SubjectDistanceRange":
|
636
|
+
case "FileSource":
|
637
|
+
case "Orientation":
|
638
|
+
return this.stringValues[e][t];
|
639
|
+
case "ExifVersion":
|
640
|
+
case "FlashpixVersion":
|
641
|
+
if (!t) return;
|
642
|
+
return String.fromCharCode(t[0], t[1], t[2], t[3]);
|
643
|
+
case "ComponentsConfiguration":
|
644
|
+
if (!t) return;
|
645
|
+
return this.stringValues[e][t[0]] + this.stringValues[e][t[1]] + this.stringValues[e][t[2]] + this.stringValues[e][t[3]];
|
646
|
+
case "GPSVersionID":
|
647
|
+
if (!t) return;
|
648
|
+
return t[0] + "." + t[1] + "." + t[2] + "." + t[3]
|
649
|
+
}
|
650
|
+
return String(t)
|
651
|
+
},
|
652
|
+
function(e) {
|
653
|
+
var t, i = e.tags,
|
654
|
+
a = e.map;
|
655
|
+
for (t in i) Object.prototype.hasOwnProperty.call(i, t) && (a[i[t]] = t)
|
656
|
+
}(e.ExifMap.prototype), e.ExifMap.prototype.getAll = function() {
|
657
|
+
var e, t, i = {};
|
658
|
+
for (e in this) Object.prototype.hasOwnProperty.call(this, e) && (t = this.tags[e]) && (i[t] = this.getText(t));
|
659
|
+
return i
|
660
|
+
}
|
661
|
+
}),
|
662
|
+
function(e) {
|
663
|
+
"use strict";
|
664
|
+
"function" == typeof define && define.amd ? define(["./load-image", "./load-image-meta"], e) : "object" == typeof module && module.exports ? e(require("./load-image"), require("./load-image-meta")) : e(window.loadImage)
|
665
|
+
}(function(u) {
|
666
|
+
"use strict";
|
667
|
+
u.IptcMap = function() {
|
668
|
+
return this
|
669
|
+
}, u.IptcMap.prototype.map = {
|
670
|
+
ObjectName: 5
|
671
|
+
}, u.IptcMap.prototype.get = function(e) {
|
672
|
+
return this[e] || this[this.map[e]]
|
673
|
+
}, u.parseIptcTags = function(e, t, i, a) {
|
674
|
+
function o(e, t, i) {
|
675
|
+
for (var a = "", o = t; o < t + i; o++) a += String.fromCharCode(e.getUint8(o));
|
676
|
+
return a
|
677
|
+
}
|
678
|
+
for (var n, r, s, l = t; l < t + i;) 28 === e.getUint8(l) && 2 === e.getUint8(l + 1) && (s = e.getUint8(l + 2)) in a.iptc.tags && (r = e.getInt16(l + 3), n = o(e, l + 5, r), Object.prototype.hasOwnProperty.call(a.iptc, s) ? a.iptc[s] instanceof Array ? a.iptc[s].push(n) : a.iptc[s] = [a.iptc[s], n] : a.iptc[s] = n), l++
|
679
|
+
}, u.parseIptcData = function(e, t, i, a, o) {
|
680
|
+
if (!o.disableIptc) {
|
681
|
+
for (var n, r, s = t + i; t + 8 < s;) {
|
682
|
+
if (r = t, 943868237 === (n = e).getUint32(r) && 1028 === n.getUint16(r + 4)) {
|
683
|
+
var l = e.getUint8(t + 7);
|
684
|
+
l % 2 != 0 && (l += 1), 0 === l && (l = 4);
|
685
|
+
var c = t + 8 + l;
|
686
|
+
if (s < c) {
|
687
|
+
console.log("Invalid IPTC data: Invalid segment offset.");
|
688
|
+
break
|
689
|
+
}
|
690
|
+
var d = e.getUint16(t + 6 + l);
|
691
|
+
if (s < t + d) {
|
692
|
+
console.log("Invalid IPTC data: Invalid segment size.");
|
693
|
+
break
|
694
|
+
}
|
695
|
+
return a.iptc = new u.IptcMap, u.parseIptcTags(e, c, d, a)
|
696
|
+
}
|
697
|
+
t++
|
698
|
+
}
|
699
|
+
console.log("No IPTC data at this offset - could be XMP")
|
700
|
+
}
|
701
|
+
}, u.metaDataParsers.jpeg[65517].push(u.parseIptcData)
|
702
|
+
}),
|
703
|
+
function(e) {
|
704
|
+
"use strict";
|
705
|
+
"function" == typeof define && define.amd ? define(["./load-image", "./load-image-iptc"], e) : "object" == typeof module && module.exports ? e(require("./load-image"), require("./load-image-iptc")) : e(window.loadImage)
|
706
|
+
}(function(e) {
|
707
|
+
"use strict";
|
708
|
+
e.IptcMap.prototype.tags = {
|
709
|
+
3: "ObjectType",
|
710
|
+
4: "ObjectAttribute",
|
711
|
+
5: "ObjectName",
|
712
|
+
7: "EditStatus",
|
713
|
+
8: "EditorialUpdate",
|
714
|
+
10: "Urgency",
|
715
|
+
12: "SubjectRef",
|
716
|
+
15: "Category",
|
717
|
+
20: "SupplCategory",
|
718
|
+
22: "FixtureID",
|
719
|
+
25: "Keywords",
|
720
|
+
26: "ContentLocCode",
|
721
|
+
27: "ContentLocName",
|
722
|
+
30: "ReleaseDate",
|
723
|
+
35: "ReleaseTime",
|
724
|
+
37: "ExpirationDate",
|
725
|
+
38: "ExpirationTime",
|
726
|
+
40: "SpecialInstructions",
|
727
|
+
42: "ActionAdvised",
|
728
|
+
45: "RefService",
|
729
|
+
47: "RefDate",
|
730
|
+
50: "RefNumber",
|
731
|
+
55: "DateCreated",
|
732
|
+
60: "TimeCreated",
|
733
|
+
62: "DigitalCreationDate",
|
734
|
+
63: "DigitalCreationTime",
|
735
|
+
65: "OriginatingProgram",
|
736
|
+
70: "ProgramVersion",
|
737
|
+
75: "ObjectCycle",
|
738
|
+
80: "Byline",
|
739
|
+
85: "BylineTitle",
|
740
|
+
90: "City",
|
741
|
+
92: "Sublocation",
|
742
|
+
95: "State",
|
743
|
+
100: "CountryCode",
|
744
|
+
101: "CountryName",
|
745
|
+
103: "OrigTransRef",
|
746
|
+
105: "Headline",
|
747
|
+
110: "Credit",
|
748
|
+
115: "Source",
|
749
|
+
116: "CopyrightNotice",
|
750
|
+
118: "Contact",
|
751
|
+
120: "Caption",
|
752
|
+
122: "WriterEditor",
|
753
|
+
130: "ImageType",
|
754
|
+
131: "ImageOrientation",
|
755
|
+
135: "LanguageID"
|
756
|
+
}, e.IptcMap.prototype.getText = function(e) {
|
757
|
+
var t = this.get(e);
|
758
|
+
return String(t)
|
759
|
+
},
|
760
|
+
function(e) {
|
761
|
+
var t, i = e.tags,
|
762
|
+
a = e.map || {};
|
763
|
+
for (t in i) Object.prototype.hasOwnProperty.call(i, t) && (a[i[t]] = t)
|
764
|
+
}(e.IptcMap.prototype), e.IptcMap.prototype.getAll = function() {
|
765
|
+
var e, t, i = {};
|
766
|
+
for (e in this) Object.prototype.hasOwnProperty.call(this, e) && (t = this.tags[e]) && (i[t] = this.getText(t));
|
767
|
+
return i
|
768
|
+
}
|
769
|
+
});
|
770
|
+
//# sourceMappingURL=load-image.all.min.js.map
|