@xuda.io/xuda-widget-plugin-xuda-drive 1.0.16 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fs-lightbox.js ADDED
@@ -0,0 +1,2001 @@
1
+ !(function (e, n) {
2
+ if ("object" == typeof exports && "object" == typeof module) module.exports = n();
3
+ else if ("function" == typeof define && define.amd) define([], n);
4
+ else {
5
+ var t = n();
6
+ for (var o in t) ("object" == typeof exports ? exports : e)[o] = t[o];
7
+ }
8
+ })(self, function () {
9
+ return (function () {
10
+ "use strict";
11
+ var e = {};
12
+ (function (e) {
13
+ "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 });
14
+ })(e);
15
+ var n,
16
+ t = "fslightbox-",
17
+ o = "".concat(t, "styles"),
18
+ r = "".concat(t, "full-dimension"),
19
+ i = "".concat(t, "cursor-grabbing"),
20
+ s = "".concat(t, "flex-centered"),
21
+ a = "".concat(t, "open"),
22
+ c = "".concat(t, "transform-transition"),
23
+ u = "".concat(t, "absoluted"),
24
+ l = "".concat(t, "slide-btn"),
25
+ d = "".concat(l, "-container"),
26
+ p = "".concat(t, "fade-in"),
27
+ h = "".concat(t, "fade-out"),
28
+ m = p + "-strong",
29
+ f = h + "-strong",
30
+ g = "".concat(t, "caption"),
31
+ b = g + "-inner",
32
+ v = g + "-active",
33
+ x = "".concat(t, "opacity-"),
34
+ w = "".concat(x, "0"),
35
+ S = "".concat(x, "1"),
36
+ T = "".concat(t, "source"),
37
+ y = "".concat(T, "-wrappers-container"),
38
+ L = "".concat(y, "-pinching"),
39
+ C = "".concat(t, "thumb"),
40
+ A = C + "s",
41
+ I = "".concat(A, "-loader"),
42
+ W = "".concat(A, "-cursorer"),
43
+ z = "".concat(A, "-inner"),
44
+ E = C + "s-active",
45
+ F = C + "-wrapper",
46
+ M = F + "-darkener",
47
+ P = C + "-invalid",
48
+ N = C + "-active";
49
+ function B(e) {
50
+ return (
51
+ (B =
52
+ "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
53
+ ? function (e) {
54
+ return typeof e;
55
+ }
56
+ : function (e) {
57
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
58
+ }),
59
+ B(e)
60
+ );
61
+ }
62
+ "object" === ("undefined" == typeof document ? "undefined" : B(document)) &&
63
+ (((n = document.createElement("style")).className = o),
64
+ n.appendChild(
65
+ document.createTextNode(
66
+ ".fslightbox-fade-in{animation:fslightbox-fade-in .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out{animation:fslightbox-fade-out .3s ease}.fslightbox-fade-in-strong{animation:fslightbox-fade-in-strong forwards .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out-strong{animation:fslightbox-fade-out-strong .3s ease}@keyframes fslightbox-fade-in{from{opacity:.65}to{opacity:1}}@keyframes fslightbox-fade-out{from{opacity:.35}to{opacity:0}}@keyframes fslightbox-fade-in-strong{from{opacity:.3}to{opacity:1}}@keyframes fslightbox-fade-out-strong{from{opacity:1}to{opacity:0}}.fslightbox-absoluted{position:absolute;top:0;left:0}.fslightbox-cursor-grabbing{cursor:grabbing!important}.fslightbox-full-dimension{width:100%;height:100%}.fslightbox-open{overflow:hidden;height:100%}.fslightbox-flex-centered{display:flex;justify-content:center;align-items:center}.fslightbox-opacity-0{opacity:0!important}.fslightbox-opacity-1{opacity:1!important}.fslightbox-scrollbarfix{padding-right:17px}.fslightbox-transform-transition{transition:transform .3s!important}.fslightbox-container{font-family:Arial,sans-serif;position:fixed;top:0;left:0;background:linear-gradient(rgba(30,30,30,.9),#000 1810%);touch-action:none;z-index:1000000000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.fslightbox-container *{box-sizing:border-box}.fslightbox-svg-path{transition:fill .15s ease;fill:#d1d2d2}.fslightbox-loader{display:block;margin:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:67px;height:67px}.fslightbox-loader-child{box-sizing:border-box;display:block;position:absolute;width:54px;height:54px;margin:6px;border:5px solid;border-color:#999 transparent transparent transparent;border-radius:50%;animation:fslightbox-loader 1.2s cubic-bezier(.5,0,.5,1) infinite}.fslightbox-loader-child:nth-child(1){animation-delay:-.45s}.fslightbox-loader-child:nth-child(2){animation-delay:-.3s}.fslightbox-loader-child:nth-child(3){animation-delay:-.15s}@keyframes fslightbox-loader{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.fslightbox-thumbs-loader{width:54px!important;height:54px!important}.fslightbox-thumbs-loader div{border-width:4px!important;width:44px!important;height:44px!important}.fslightbox-nav{height:45px;width:100%;transition:opacity .3s}.fslightbox-slide-number-container{display:flex;justify-content:center;align-items:center;position:relative;height:100%;font-size:15px;color:#d7d7d7;z-index:0;max-width:55px;text-align:left}.fslightbox-slide-number-container .fslightbox-flex-centered{height:100%}.fslightbox-slash{display:block;margin:0 5px;width:1px;height:12px;transform:rotate(15deg);background:#fff}.fslightbox-toolbar{position:absolute;z-index:3;right:0;top:0;height:45px;display:flex;background:rgba(35,35,35,.65)}.fslightbox-toolbar-button{height:100%;width:45px;cursor:pointer}.fslightbox-toolbar-button:hover .fslightbox-svg-path{fill:#fff}.fslightbox-slide-btn-container{display:flex;align-items:center;padding:12px 12px 12px 6px;position:absolute;top:50%;cursor:pointer;z-index:3;transform:translateY(-50%);transition:opacity .3s}@media (min-width:476px){.fslightbox-slide-btn-container{padding:22px 22px 22px 6px}}@media (min-width:768px){.fslightbox-slide-btn-container{padding:30px 30px 30px 6px}}.fslightbox-slide-btn-container:hover .fslightbox-svg-path{fill:#f1f1f1}.fslightbox-slide-btn{padding:9px;font-size:26px;background:rgba(35,35,35,.65)}@media (min-width:768px){.fslightbox-slide-btn{padding:10px}}@media (min-width:1600px){.fslightbox-slide-btn{padding:11px}}.fslightbox-slide-btn-container-previous{left:0}@media (max-width:475.99px){.fslightbox-slide-btn-container-previous{padding-left:3px}}.fslightbox-slide-btn-container-next{right:0;padding-left:12px;padding-right:3px}@media (min-width:476px){.fslightbox-slide-btn-container-next{padding-left:22px}}@media (min-width:768px){.fslightbox-slide-btn-container-next{padding-left:30px}}@media (min-width:476px){.fslightbox-slide-btn-container-next{padding-right:6px}}.fslightbox-down-event-detector{position:absolute;z-index:1}.fslightbox-slide-swiping-hoverer{z-index:4}.fslightbox-slideshow-bar{width:0;height:2px;z-index:4;opacity:0;background:#fff}.fslightbox-invalid-file-wrapper{font-size:24px;color:#eaebeb;margin:auto}.fslightbox-video{object-fit:cover}.fslightbox-youtube-iframe{border:0}.fslightbox-source{position:relative;z-index:2;display:block;opacity:0;margin:auto;cursor:zoom-in}.fslightbox-source-wrappers-container{transition:transform .2s linear;z-index:2}.fslightbox-source-wrappers-container-pinching{transition:none!important}.fslightbox-thumbs{position:absolute;bottom:0;left:0;width:100%;z-index:-1;background:linear-gradient(180deg,rgba(0,0,0,0),#1e1e1e 100%);opacity:0;transition:opacity .2s;padding:0 5px 12px 5px;height:114px}@media (min-width:992px){.fslightbox-thumbs{padding-bottom:13px;height:120px}}@media (min-width:1600px){.fslightbox-thumbs{padding-bottom:14px;height:126px}}.fslightbox-thumbs-active{opacity:1;z-index:3}.fslightbox-thumbs-inner{display:inline-flex;justify-content:flex-start;align-items:center;height:100%}.fslightbox-thumb-wrapper{position:relative;height:100%;margin:0 4px;opacity:0;transition:opacity .3s}.fslightbox-thumb-wrapper svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);cursor:pointer;z-index:1}.fslightbox-thumb-wrapper path{fill:#fff}.fslightbox-thumb-wrapper-darkener{position:absolute;top:2px;left:2px;width:calc(100% - 4px);height:calc(100% - 4px);background:rgba(0,0,0,.4);cursor:pointer}.fslightbox-thumb{cursor:pointer;border-radius:1px;height:100%;width:auto!important;border:2px solid transparent;max-width:unset;max-height:unset}.fslightbox-thumb-active{border:2px solid #fff!important}.fslightbox-thumb-invalid{background:linear-gradient(to bottom,#0f0f0f,rgba(15,15,15,.5));display:inline-block;min-width:155px}.fslightbox-thumbs-cursorer{z-index:4;cursor:grabbing}.fslightbox-caption{position:absolute;bottom:0;left:50%;width:100%;background:linear-gradient(180deg,rgba(0,0,0,0),#1e1e1e 100%);transform:translateX(-50%);opacity:0;transition:opacity .2s;z-index:-1}.fslightbox-caption-inner{padding:25px;max-width:1200px;color:#eee;text-align:center;font-size:14px}@media (min-width:768px){.fslightbox-caption-inner{padding:30px 25px}}.fslightbox-caption-active{opacity:1;z-index:3}"
67
+ )
68
+ ),
69
+ document.head.appendChild(n));
70
+ var k = "fslightbox-types",
71
+ H = "fslightbox-scrollbar-width";
72
+ function D(e) {
73
+ var n,
74
+ t = e.props,
75
+ o = 0,
76
+ r = {};
77
+ (this.getSourceTypeFromLocalStorageByUrl = function (e) {
78
+ return n[e] ? n[e] : i(e);
79
+ }),
80
+ (this.handleReceivedSourceTypeForUrl = function (e, t) {
81
+ !1 === r[t] &&
82
+ (o--,
83
+ "invalid" !== e ? (r[t] = e) : delete r[t],
84
+ 0 === o &&
85
+ ((function (e, n) {
86
+ for (var t in n) e[t] = n[t];
87
+ })(n, r),
88
+ localStorage.setItem(k, JSON.stringify(n))));
89
+ });
90
+ var i = function (e) {
91
+ o++, (r[e] = !1);
92
+ };
93
+ t.disableLocalStorage ? ((this.getSourceTypeFromLocalStorageByUrl = function () {}), (this.handleReceivedSourceTypeForUrl = function () {})) : (n = JSON.parse(localStorage.getItem(k))) || ((n = {}), (this.getSourceTypeFromLocalStorageByUrl = i));
94
+ }
95
+ var O = "image",
96
+ R = "video",
97
+ X = "youtube",
98
+ Y = "custom",
99
+ Z = "invalid";
100
+ function U(e, n, t, o) {
101
+ var r = e.data,
102
+ i = e.elements.sources,
103
+ s = t / o,
104
+ a = 0;
105
+ this.adjustSize = function () {
106
+ if ((a = r.maxSourceWidth / s) < r.maxSourceHeight) return t < r.maxSourceWidth && (a = o), c();
107
+ (a = o > r.maxSourceHeight ? r.maxSourceHeight : o), c();
108
+ };
109
+ var c = function () {
110
+ var e = i[n].style;
111
+ (e.width = a * s + "px"), (e.height = a + "px");
112
+ };
113
+ }
114
+ function j(e, n) {
115
+ var t = this,
116
+ o = e.collections.sourceSizers,
117
+ r = e.core,
118
+ i = r.sourceEnhancementWrappersTransformer,
119
+ s = r.sourceLoadersManager,
120
+ a = e.elements,
121
+ u = a.sourceAnimationWrappers,
122
+ l = a.sourceEnhancementWrappers,
123
+ d = (a.sourceMainWrappers, a.sources),
124
+ p = e.resolve;
125
+ function h(e, t) {
126
+ (o[n] = p(U, [n, e, t])), o[n].adjustSize();
127
+ }
128
+ this.runActions = function (e, o) {
129
+ d[n].classList.add(S),
130
+ u[n].classList.add(m),
131
+ s.handleSourceLoad(n),
132
+ i.ifSourceIsLoadedTransformEnhancementWrapperAtIndex(n),
133
+ requestAnimationFrame(function () {
134
+ requestAnimationFrame(function () {
135
+ l[n].classList.add(c);
136
+ });
137
+ }),
138
+ h(e, o),
139
+ (t.runActions = h);
140
+ };
141
+ }
142
+ function V(e, n) {
143
+ var t,
144
+ o = this,
145
+ r = e.elements.sources,
146
+ i = e.props,
147
+ s = (0, e.resolve)(j, [n]);
148
+ (this.handleImageLoad = function (e) {
149
+ var n = e.target,
150
+ t = n.naturalWidth,
151
+ o = n.naturalHeight;
152
+ s.runActions(t, o);
153
+ }),
154
+ (this.handleVideoLoad = function (e) {
155
+ var n = e.target,
156
+ o = n.videoWidth,
157
+ r = n.videoHeight;
158
+ (t = !0), s.runActions(o, r);
159
+ }),
160
+ (this.handleNotMetaDatedVideoLoad = function () {
161
+ t || o.handleYoutubeLoad();
162
+ }),
163
+ (this.handleYoutubeLoad = function () {
164
+ var e = 1920,
165
+ n = 1080;
166
+ i.maxYoutubeDimensions && ((e = i.maxYoutubeDimensions.width), (n = i.maxYoutubeDimensions.height)), s.runActions(e, n);
167
+ }),
168
+ (this.handleCustomLoad = function () {
169
+ setTimeout(function () {
170
+ var e = r[n];
171
+ s.runActions(e.offsetWidth, e.offsetHeight);
172
+ });
173
+ });
174
+ }
175
+ function q(e, n, t) {
176
+ var o = e.elements.sources,
177
+ r = e.props.customClasses,
178
+ i = r[n] ? r[n] : "";
179
+ o[n].className = t + " " + i;
180
+ }
181
+ function _(e, n) {
182
+ var t = e.elements.sources,
183
+ o = e.props.customAttributes;
184
+ for (var r in o[n]) t[n].setAttribute(r, o[n][r]);
185
+ }
186
+ function J(e, n) {
187
+ var t = e.collections.sourceLoadHandlers,
188
+ o = e.elements,
189
+ r = o.sources,
190
+ i = o.sourceAnimationWrappers,
191
+ s = e.props.sources;
192
+ (r[n] = document.createElement("img")), q(e, n, T), (r[n].src = s[n]), (r[n].onload = t[n].handleImageLoad), _(e, n), i[n].appendChild(r[n]);
193
+ }
194
+ function $(e, n) {
195
+ var t = e.collections.sourceLoadHandlers,
196
+ o = e.elements,
197
+ r = o.sources,
198
+ i = o.sourceAnimationWrappers,
199
+ s = e.props,
200
+ a = s.sources,
201
+ c = s.videosPosters;
202
+ (r[n] = document.createElement("video")),
203
+ q(e, n, T),
204
+ (r[n].src = a[n]),
205
+ (r[n].onloadedmetadata = function (e) {
206
+ t[n].handleVideoLoad(e);
207
+ }),
208
+ (r[n].controls = !0),
209
+ _(e, n),
210
+ c[n] && (r[n].poster = c[n]);
211
+ var u = document.createElement("source");
212
+ (u.src = a[n]), r[n].appendChild(u), setTimeout(t[n].handleNotMetaDatedVideoLoad, 3e3), i[n].appendChild(r[n]);
213
+ }
214
+ function G(e, n) {
215
+ var o = e.collections.sourceLoadHandlers,
216
+ r = e.elements,
217
+ i = r.sources,
218
+ s = r.sourceAnimationWrappers,
219
+ a = e.props.sources;
220
+ (i[n] = document.createElement("iframe")),
221
+ q(e, n, "".concat(T, " ").concat(t, "youtube-iframe")),
222
+ (i[n].src = "https://www.youtube.com/embed/".concat(a[n].match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)[2], "?enablejsapi=1")),
223
+ (i[n].allowFullscreen = !0),
224
+ _(e, n),
225
+ s[n].appendChild(i[n]),
226
+ o[n].handleYoutubeLoad();
227
+ }
228
+ function K(e, n) {
229
+ var t = e.collections.sourceLoadHandlers,
230
+ o = e.elements,
231
+ r = o.sources,
232
+ i = o.sourceAnimationWrappers,
233
+ s = e.props.sources;
234
+ (r[n] = s[n]), q(e, n, "".concat(r[n].className, " ").concat(T)), i[n].appendChild(r[n]), t[n].handleCustomLoad();
235
+ }
236
+ function Q(e, n) {
237
+ var o = e.core.sourceLoadersManager,
238
+ r = (e.data.isSourceLoaded, e.elements),
239
+ i = r.sources,
240
+ a = r.sourceAnimationWrappers;
241
+ r.sourceMainWrappers, e.props.sources, (i[n] = document.createElement("div")), (i[n].className = "".concat(t, "invalid-file-wrapper ").concat(s, " ").concat(m)), (i[n].innerHTML = "Invalid source"), o.handleSourceLoad(n), a[n].appendChild(i[n]);
242
+ }
243
+ function ee(e, n, t) {
244
+ var o = e.props.thumbsIcons;
245
+ if (o[t]) {
246
+ n.appendChild(o[t]);
247
+ var r = document.createElement("div");
248
+ (r.className = M), n.appendChild(r);
249
+ }
250
+ }
251
+ function ne(e, n, t) {
252
+ var o = e.elements,
253
+ r = o.thumbsWrappers,
254
+ i = o.thumbsInner;
255
+ (r[n] = document.createElement("div")),
256
+ (r[n].className = F),
257
+ ee(e, r[n], n),
258
+ (function (e, n, t, o) {
259
+ var r = e.core.thumbLoadHandler.handleLoad,
260
+ i = e.elements.thumbs,
261
+ s = e.stageIndexes.current;
262
+ (i[t] = document.createElement("img")), (i[t].src = o);
263
+ var a = C;
264
+ s === t && (a += " ".concat(N)), (i[t].className = a), (i[t].onload = r), n.appendChild(i[t]);
265
+ })(e, r[n], n, t),
266
+ i.appendChild(r[n]);
267
+ }
268
+ function te(e, n, o, r, i) {
269
+ var s = document.createElementNS("http://www.w3.org/2000/svg", "svg");
270
+ s.setAttributeNS(null, "width", n), s.setAttributeNS(null, "height", n), s.setAttributeNS(null, "viewBox", r);
271
+ var a = document.createElementNS("http://www.w3.org/2000/svg", "path");
272
+ return a.setAttributeNS(null, "class", "".concat(t, "svg-path")), a.setAttributeNS(null, "d", i), s.appendChild(a), e.appendChild(s), s;
273
+ }
274
+ function oe(e) {
275
+ var n = e.core.thumbsRenderDispatcher,
276
+ t = e.data,
277
+ o = e.props,
278
+ r = o.showThumbsOnMount,
279
+ i = o.sources,
280
+ a = o.thumbs;
281
+ this.buildThumbForTypeAndIndex = function (o, c) {
282
+ var u;
283
+ (u = a[c]
284
+ ? function () {
285
+ return ne(e, c, a[c]);
286
+ }
287
+ : o === O
288
+ ? function () {
289
+ return ne(e, c, i[c]);
290
+ }
291
+ : function () {
292
+ return (function (e, n) {
293
+ var t = e.elements,
294
+ o = t.thumbsWrappers,
295
+ r = t.thumbsInner;
296
+ (o[n] = document.createElement("div")),
297
+ (o[n].className = "".concat(P, " ").concat(F)),
298
+ ee(e, o[n], n),
299
+ (function (e, n, t) {
300
+ var o = e.core.thumbLoadHandler.handleLoad,
301
+ r = e.elements.thumbs,
302
+ i = e.stageIndexes.current;
303
+ r[t] = document.createElement("div");
304
+ var a = "".concat(C, " ").concat(s);
305
+ i === t && (a += " ".concat(N)),
306
+ (r[t].className = a),
307
+ te(
308
+ r[t],
309
+ "22px",
310
+ 0,
311
+ "0 0 30 30",
312
+ "M15,3C8.373,3,3,8.373,3,15c0,6.627,5.373,12,12,12s12-5.373,12-12C27,8.373,21.627,3,15,3z M16.212,8l-0.2,9h-2.024l-0.2-9 H16.212z M15.003,22.189c-0.828,0-1.323-0.441-1.323-1.182c0-0.755,0.494-1.196,1.323-1.196c0.822,0,1.316,0.441,1.316,1.196 C16.319,21.748,15.825,22.189,15.003,22.189z"
313
+ ),
314
+ n.appendChild(r[t]),
315
+ setTimeout(o);
316
+ })(e, o[n], n),
317
+ r.appendChild(o[n]);
318
+ })(e, c);
319
+ }),
320
+ n.addFunctionToToBeRenderedAtIndex(u, c),
321
+ (r || t.isThumbing) && n.renderThumbsIfNotYetAndAllTypesDetected();
322
+ };
323
+ }
324
+ function re(e) {
325
+ var n,
326
+ t = e.collections,
327
+ o = t.sourceLoadHandlers,
328
+ r = t.sourcesRenderFunctions,
329
+ i = e.core.sourceDisplayFacade,
330
+ s = e.props.disableThumbs,
331
+ a = e.resolve;
332
+ s || (n = a(oe)),
333
+ (this.runActionsForSourceTypeAndIndex = function (t, c) {
334
+ var u;
335
+ switch ((t !== Z && (o[c] = a(V, [c])), t)) {
336
+ case O:
337
+ u = J;
338
+ break;
339
+ case R:
340
+ u = $;
341
+ break;
342
+ case X:
343
+ u = G;
344
+ break;
345
+ case Y:
346
+ u = K;
347
+ break;
348
+ default:
349
+ u = Q;
350
+ }
351
+ (r[c] = function () {
352
+ return u(e, c);
353
+ }),
354
+ i.displaySourcesWhichShouldBeDisplayed(),
355
+ s || n.buildThumbForTypeAndIndex(t, c);
356
+ });
357
+ }
358
+ function ie() {
359
+ var e,
360
+ n,
361
+ t,
362
+ o = function (e) {
363
+ var n = document.createElement("a");
364
+ return (n.href = e), "www.youtube.com" === n.hostname;
365
+ },
366
+ r = function (e) {
367
+ return e.slice(0, e.indexOf("/"));
368
+ };
369
+ function i() {
370
+ if (4 !== t.readyState) {
371
+ if (2 === t.readyState) {
372
+ var e;
373
+ switch (r(t.getResponseHeader("content-type"))) {
374
+ case "image":
375
+ e = O;
376
+ break;
377
+ case "video":
378
+ e = R;
379
+ break;
380
+ default:
381
+ e = Z;
382
+ }
383
+ (t.onreadystatechange = null), t.abort(), n(e);
384
+ }
385
+ } else n(Z);
386
+ }
387
+ (this.setUrlToCheck = function (n) {
388
+ e = n;
389
+ }),
390
+ (this.getSourceType = function (r) {
391
+ if (o(e)) return r(X);
392
+ (n = r), ((t = new XMLHttpRequest()).onreadystatechange = i), t.open("GET", e, !0), t.send();
393
+ });
394
+ }
395
+ function se(e, n, t) {
396
+ var o = e.props,
397
+ r = o.types,
398
+ i = o.type,
399
+ s = o.sources,
400
+ a = e.resolve;
401
+ (this.getTypeSetByClientForIndex = function (e) {
402
+ var n;
403
+ return r && r[e] ? (n = r[e]) : i && (n = i), n;
404
+ }),
405
+ (this.retrieveTypeWithXhrForIndex = function (e) {
406
+ var o = a(ie);
407
+ o.setUrlToCheck(s[e]),
408
+ o.getSourceType(function (o) {
409
+ n.handleReceivedSourceTypeForUrl(o, s[e]), t.runActionsForSourceTypeAndIndex(o, e);
410
+ });
411
+ });
412
+ }
413
+ function ae(e, n) {
414
+ var t = e.elements,
415
+ o = t.sourceWrappersContainer,
416
+ i = t.sourceMainWrappers;
417
+ (i[n] = document.createElement("div")),
418
+ (i[n].className = "".concat(u, " ").concat(r, " ").concat(s)),
419
+ o.appendChild(i[n]),
420
+ (function (e, n) {
421
+ var t = e.elements,
422
+ o = t.sourceMainWrappers,
423
+ r = t.sourceEnhancementWrappers;
424
+ (r[n] = document.createElement("div")),
425
+ o[n].appendChild(r[n]),
426
+ (function (e, n) {
427
+ var t = e.core.sourceLoadersManager,
428
+ o = e.elements,
429
+ r = o.sourceAnimationWrappers,
430
+ i = o.sourceEnhancementWrappers;
431
+ (r[n] = document.createElement("div")), t.handleSourceAnimationWrapperRendering(n), i[n].appendChild(r[n]);
432
+ })(e, n);
433
+ })(e, n);
434
+ }
435
+ function ce(e, n) {
436
+ var t = e.sourcePointerProps;
437
+ t.pointers[n.pointerId] = { screenX: n.screenX, screenY: n.screenY };
438
+ var o = Object.keys(t.pointers).length;
439
+ return (t.pointersCount = o), o <= 2;
440
+ }
441
+ function ue(e, n) {
442
+ var o = document.createElement("div");
443
+ return (o.className = "".concat(t, "toolbar-button ").concat(s)), (o.title = n), e.appendChild(o), o;
444
+ }
445
+ function le(e, n, t) {
446
+ var o = ue(e, n.title);
447
+ (o.onclick = t), te(o, n.width, n.height, n.viewBox, n.d);
448
+ }
449
+ function de(e) {
450
+ var n = e.props.sources,
451
+ o = e.elements;
452
+ (o.nav = document.createElement("div")),
453
+ (o.nav.className = "".concat(t, "nav")),
454
+ o.container.appendChild(o.nav),
455
+ (function (e, n) {
456
+ var o = e.core,
457
+ r = o.clickZoomer,
458
+ i = r.zoomIn,
459
+ s = r.zoomOut,
460
+ a = o.lightboxCloser.close,
461
+ c = o.thumbsToggler,
462
+ u = e.props,
463
+ l = u.customToolbarButtons,
464
+ d = u.disableThumbs,
465
+ p = u.toolbarButtons,
466
+ h = document.createElement("div");
467
+ (h.className = "".concat(t, "toolbar")), n.appendChild(h);
468
+ for (
469
+ var m = function (n) {
470
+ le(h, l[n], function () {
471
+ return l[n].onClick(e);
472
+ });
473
+ },
474
+ f = 0;
475
+ f < l.length;
476
+ f++
477
+ )
478
+ m(f);
479
+ d || le(h, p.thumbs, c.toggleThumbs),
480
+ le(h, p.zoomIn, i),
481
+ le(h, p.zoomOut, s),
482
+ (function (e, n) {
483
+ var t = e.core.slideshowManager.toggleSlideshow,
484
+ o = e.componentsServices,
485
+ r = e.props.toolbarButtons.slideshow,
486
+ i = r.start,
487
+ s = r.pause,
488
+ a = ue(n, i.title);
489
+ a.onclick = t;
490
+ var c = te(a, i.width, i.height, i.viewBox, i.d);
491
+ function u(e) {
492
+ (a.title = e.title), c.setAttributeNS(null, "width", e.width), c.setAttributeNS(null, "height", e.height), c.setAttributeNS(null, "viewBox", e.viewBox), c.firstChild.setAttributeNS(null, "d", e.d);
493
+ }
494
+ (o.startSlideshow = function () {
495
+ u(s);
496
+ }),
497
+ (o.stopSlideshow = function () {
498
+ u(i);
499
+ });
500
+ })(e, h),
501
+ (function (e, n) {
502
+ var t = e.core.fullscreenToggler,
503
+ o = e.componentsServices,
504
+ r = e.data,
505
+ i = e.props.toolbarButtons.fullscreen,
506
+ s = i.enter,
507
+ a = i.exit,
508
+ c = ue(n, s.title),
509
+ u = te(c, s.width, s.height, s.viewBox, s.d);
510
+ function l(e) {
511
+ (c.title = e.title), u.setAttributeNS(null, "width", e.width), u.setAttributeNS(null, "height", e.height), u.setAttributeNS(null, "viewBox", e.viewBox), u.firstChild.setAttributeNS(null, "d", e.d);
512
+ }
513
+ (o.enterFullscreen = function () {
514
+ (r.isFullscreenOpen = !0), l(a);
515
+ }),
516
+ (o.exitFullscreen = function () {
517
+ (r.isFullscreenOpen = !1), l(s);
518
+ }),
519
+ (c.onclick = function () {
520
+ r.isFullscreenOpen ? t.exitFullscreen() : t.enterFullscreen();
521
+ });
522
+ })(e, h),
523
+ le(h, p.close, a);
524
+ })(e, o.nav),
525
+ n.length > 1 &&
526
+ (function (e, n) {
527
+ var o = e.componentsServices,
528
+ r = e.props.sources,
529
+ i = document.createElement("div");
530
+ i.className = "".concat(t, "slide-number-container");
531
+ var a = document.createElement("div");
532
+ a.className = s;
533
+ var c = document.createElement("span");
534
+ o.setSlideNumber = function (e) {
535
+ return (c.innerHTML = e);
536
+ };
537
+ var u = document.createElement("span");
538
+ u.className = "".concat(t, "slash");
539
+ var l = document.createElement("div");
540
+ (l.innerHTML = r.length),
541
+ i.appendChild(a),
542
+ a.appendChild(c),
543
+ a.appendChild(u),
544
+ a.appendChild(l),
545
+ n.appendChild(i),
546
+ setTimeout(function () {
547
+ a.offsetWidth > 55 && (i.style.justifyContent = "flex-start");
548
+ });
549
+ })(e, o.nav);
550
+ }
551
+ function pe(e, n) {
552
+ var t = this,
553
+ o = e.elements.sourceMainWrappers,
554
+ r = e.props,
555
+ i = 0,
556
+ s = 0,
557
+ a = 0;
558
+ (this.translate = function (e, n) {
559
+ return (s = e), void 0 !== n && (a = n), t;
560
+ }),
561
+ (this.getTranslateX = function () {
562
+ return i;
563
+ }),
564
+ (this.getTranslateY = function () {
565
+ return a;
566
+ }),
567
+ (this.negative = function () {
568
+ c(-(1 + r.slideDistance) * innerWidth);
569
+ }),
570
+ (this.zero = function () {
571
+ c(0);
572
+ }),
573
+ (this.positive = function () {
574
+ c((1 + r.slideDistance) * innerWidth);
575
+ });
576
+ var c = function (e) {
577
+ (i = e + s), u(), (s = 0);
578
+ },
579
+ u = function () {
580
+ o[n].style.transform = "translate(".concat(i, "px, ").concat(a, "px)");
581
+ };
582
+ }
583
+ function he(e, n) {
584
+ var t = e.core.slideChangeFacade,
585
+ o = e.elements,
586
+ r = e.props.slideButtons,
587
+ i = n.charAt(0).toUpperCase() + n.slice(1),
588
+ a = "slideButton".concat(i),
589
+ c = r[n];
590
+ (o[a] = document.createElement("div")),
591
+ (o[a].className = "".concat(d, " ").concat(d, "-").concat(n)),
592
+ (o[a].title = c.title),
593
+ (o[a].onclick = t["changeTo".concat(i)]),
594
+ (function (e, n) {
595
+ var t = document.createElement("div");
596
+ (t.className = "".concat(l, " ").concat(s)), te(t, n.width, n.height, n.viewBox, n.d), e.appendChild(t);
597
+ })(o[a], c),
598
+ o.container.appendChild(o[a]);
599
+ }
600
+ function me(e) {
601
+ var n = e.componentsServices,
602
+ t = e.core,
603
+ o = t.sourceEnhancementWrappersTransformer,
604
+ r = t.thumbsRenderDispatcher,
605
+ i = t.zoomer,
606
+ s = e.data,
607
+ a = e.elements,
608
+ c = e.props.sources,
609
+ u = e.stageIndexes;
610
+ function l() {
611
+ for (var e = 0; e < c.length; e++) o.ifSourceIsLoadedTransformEnhancementWrapperAtIndex(e);
612
+ }
613
+ function d(e) {
614
+ a.captions[u.current] && a.captions[u.current].classList[e](v);
615
+ }
616
+ (this.openThumbs = function () {
617
+ i.ifZoomingResetZoom(), (s.isThumbing = !0), a.thumbsContainer.classList.add(E), l(), d("remove"), r.renderThumbsIfNotYetAndAllTypesDetected(), s.unloadedThumbsCount && n.appendThumbsLoaderIfNotYet();
618
+ }),
619
+ (this.closeThumbs = function () {
620
+ i.ifZoomingResetZoom(), (s.isThumbing = !1), a.thumbsContainer.classList.remove(E), l(), d("add");
621
+ });
622
+ }
623
+ function fe(e, n) {
624
+ var t = e.classList;
625
+ t.contains(n) && t.remove(n);
626
+ }
627
+ function ge(e, n) {
628
+ var t = e.classList;
629
+ t.contains(n) || t.add(n);
630
+ }
631
+ function be(e) {
632
+ var n = e.data,
633
+ t = e.elements,
634
+ o = e.stageIndexes;
635
+ (this.runActions = function () {
636
+ fe(t.thumbsContainer, s);
637
+ var e = innerWidth / 2,
638
+ i = t.thumbsWrappers[o.current],
639
+ a = i.offsetLeft + i.offsetWidth / 2,
640
+ c = n.thumbsInnerWidth - a;
641
+ a > e && c > e ? r(e - a) : a > e ? r(innerWidth - n.thumbsInnerWidth - 9) : c > e && r(0);
642
+ }),
643
+ (this.runToThinThumbsActions = function () {
644
+ ge(t.thumbsContainer, s), r(0);
645
+ });
646
+ var r = function (e) {
647
+ (n.thumbsTransform = e), (t.thumbsInner.style.transform = "translateX(".concat(e, "px)"));
648
+ };
649
+ }
650
+ function ve(e, n) {
651
+ var t = [];
652
+ return function () {
653
+ t.push(!0),
654
+ setTimeout(function () {
655
+ t.pop(), t.length || e();
656
+ }, n);
657
+ };
658
+ }
659
+ function xe(e) {
660
+ var n = "fslightbox-loader",
661
+ t = document.createElement("div");
662
+ t.className = n;
663
+ for (var o = 0; o < 3; o++) {
664
+ var r = document.createElement("div");
665
+ (r.className = "".concat(n, "-child")), t.appendChild(r);
666
+ }
667
+ return e.appendChild(t), t;
668
+ }
669
+ function we(e) {
670
+ var n = this,
671
+ t = e.core,
672
+ o = t.eventsDispatcher,
673
+ r = t.fullscreenToggler,
674
+ i = t.globalEventsController,
675
+ s = t.scrollbarRecompensor,
676
+ c = t.slideshowManager,
677
+ u = t.zoomer,
678
+ l = e.data,
679
+ d = e.elements,
680
+ p = e.props,
681
+ h = e.sourcePointerProps,
682
+ m = e.thumbsSwipingProps;
683
+ (this.isLightboxFadingOut = !1),
684
+ (this.runActions = function () {
685
+ (n.isLightboxFadingOut = !0),
686
+ d.container.classList.add(f),
687
+ i.removeListeners(),
688
+ c.resetSlideshow(),
689
+ p.exitFullscreenOnClose && l.isFullscreenOpen && r.exitFullscreen(),
690
+ u.ifZoomingResetZoom(),
691
+ setTimeout(function () {
692
+ (n.isLightboxFadingOut = !1), (h.isPointering = !1), m && (m.isPointering = !1), d.container.classList.remove(f), document.documentElement.classList.remove(a), s.removeRecompense(), document.body.removeChild(d.container), o.dispatch("onClose");
693
+ }, 270);
694
+ });
695
+ }
696
+ function Se(e, n) {
697
+ var t = e.elements.thumbs,
698
+ o = e.stageIndexes;
699
+ t && t[o.current] && (t[o.current].classList.remove(N), t[n].classList.add(N));
700
+ }
701
+ function Te(e) {
702
+ var n,
703
+ t = e.core,
704
+ o = t.slideshowManager,
705
+ r = t.slideChangeFacade,
706
+ i = e.componentsServices,
707
+ s = e.elements,
708
+ a = e.props,
709
+ c = !1;
710
+ function u() {
711
+ (c = !1), clearTimeout(n), s.slideshowBar.classList.remove(S), i.stopSlideshow();
712
+ }
713
+ function l() {
714
+ (s.slideshowBar.style.transition = "opacity .2s"),
715
+ (s.slideshowBar.style.width = "0px"),
716
+ s.slideshowBar.offsetWidth,
717
+ (s.slideshowBar.style.transition = "opacity .2s, width linear ".concat(a.slideshowTime, "ms")),
718
+ (s.slideshowBar.style.width = innerWidth + "px"),
719
+ (n = setTimeout(function () {
720
+ r.changeToNext(), l();
721
+ }, a.slideshowTime));
722
+ }
723
+ (o.toggleSlideshow = function () {
724
+ c ? u() : ((c = !0), i.startSlideshow(), s.slideshowBar.classList.add(S), l());
725
+ }),
726
+ (o.resetSlideshow = function () {
727
+ c && u();
728
+ });
729
+ }
730
+ function ye(e) {
731
+ return !e.sourcePointerProps.isPointering;
732
+ }
733
+ function Le(e) {
734
+ var n = e.core,
735
+ t = n.clickZoomer,
736
+ o = n.fullscreenToggler,
737
+ r = n.lightboxCloser,
738
+ i = n.slideChangeFacade,
739
+ s = n.slideshowManager,
740
+ a = n.thumbsToggler,
741
+ c = e.middleware,
742
+ u = e.props;
743
+ this.listener = function (e) {
744
+ if ("Space" !== e.code)
745
+ switch (e.key) {
746
+ case "Escape":
747
+ r.close();
748
+ break;
749
+ case "ArrowLeft":
750
+ i.changeToPrevious();
751
+ break;
752
+ case "ArrowRight":
753
+ i.changeToNext();
754
+ break;
755
+ case "t":
756
+ u.disableThumbs || a.toggleThumbs();
757
+ break;
758
+ case "+":
759
+ c(t.zoomIn, ye)();
760
+ break;
761
+ case "-":
762
+ c(t.zoomOut, ye)();
763
+ break;
764
+ case "F11":
765
+ e.preventDefault(), o.enterFullscreen();
766
+ }
767
+ else s.toggleSlideshow();
768
+ };
769
+ }
770
+ function Ce(e) {
771
+ var n = e.core.pointeringBucket,
772
+ t = e.data,
773
+ o = e.elements,
774
+ r = e.thumbsSwipingProps;
775
+ this.runActions = function (e) {
776
+ n.runSwipingMoveActionsForPropsAndEvent(r, e), (o.thumbsInner.style.transform = "translateX(".concat(t.thumbsTransform + r.swipedX, "px)")), o.thumbsContainer.contains(o.thumbsCursorer) || o.thumbsContainer.appendChild(o.thumbsCursorer);
777
+ };
778
+ }
779
+ function Ae(e) {
780
+ var n = e.data,
781
+ t = e.resolve,
782
+ o = e.thumbsSwipingProps,
783
+ r = t(Ce),
784
+ i = window.innerWidth;
785
+ this.listener = function (e) {
786
+ n.thumbsInnerWidth > i && o.isPointering && r.runActions(e);
787
+ };
788
+ }
789
+ function Ie(e, n) {
790
+ e.contains(n) && e.removeChild(n);
791
+ }
792
+ function We(e) {
793
+ var n = e.data,
794
+ t = e.core,
795
+ o = t.slideIndexChanger,
796
+ r = t.thumbsTransformTransitioner,
797
+ i = t.pointeringBucket,
798
+ s = e.elements,
799
+ a = e.thumbsSwipingProps,
800
+ c = s.thumbsWrappers;
801
+ (this.runNoSwipeActionsForEvent = function (e) {
802
+ Ie(s.thumbsContainer, s.thumbsCursorer), (a.isPointering = !1);
803
+ for (var n = 0; n < c.length; n++) if (c[n] && c[n].contains(e.target)) return void o.jumpTo(n);
804
+ }),
805
+ (this.runActions = function () {
806
+ if ((Ie(s.thumbsContainer, s.thumbsCursorer), (n.thumbsTransform += a.swipedX), i.runSwipingTopActionsForPropsAndEvent(a), n.thumbsTransform > 0)) return u(0);
807
+ n.thumbsTransform < innerWidth - n.thumbsInnerWidth - 9 && u(innerWidth - n.thumbsInnerWidth - 9);
808
+ });
809
+ var u = function (e) {
810
+ (n.thumbsTransform = e),
811
+ r.callActionWithTransition(function () {
812
+ s.thumbsInner.style.transform = "translateX(".concat(e, "px)");
813
+ });
814
+ };
815
+ }
816
+ function ze(e) {
817
+ var n = e.resolve,
818
+ t = e.thumbsSwipingProps,
819
+ o = n(We);
820
+ this.listener = function (e) {
821
+ t.isPointering && (t.swipedX ? o.runActions() : o.runNoSwipeActionsForEvent(e));
822
+ };
823
+ }
824
+ function Ee(e) {
825
+ var n = e.collections.sourceMainWrapperTransformers,
826
+ t = e.core.zoomer,
827
+ o = e.data,
828
+ r = e.sourcePointerProps;
829
+ (this.runZoomingPinchActionsForHypot = function (e) {
830
+ var n = e - r.pinchedHypot,
831
+ i = o.zoom + (n / Math.hypot(innerWidth, innerHeight)) * 10;
832
+ i < 0.9 && (i = 0.9), t.zoomTo(i), (r.pinchedHypot = e);
833
+ }),
834
+ (this.translateSourceMainWrapperAtIndexUsingMethod = function (e, t) {
835
+ n[e].translate(r.swipedX)[t]();
836
+ });
837
+ }
838
+ function Fe(e) {
839
+ var n = Object.keys(e.pointers),
840
+ t = e.pointers[n[0]],
841
+ o = e.pointers[n[1]];
842
+ return Math.hypot(t.screenX - o.screenX, t.screenY - o.screenY);
843
+ }
844
+ function Me(e) {
845
+ var n = e.collections.sourceMainWrapperTransformers,
846
+ t = e.core.pointeringBucket,
847
+ o = e.data,
848
+ r = e.elements,
849
+ i = e.resolve,
850
+ s = e.sourcePointerProps,
851
+ a = e.stageIndexes,
852
+ c = i(Ee);
853
+ (this.runActions = function (e) {
854
+ t.runSwipingMoveActionsForPropsAndEvent(s, e), r.container.contains(r.slideSwipingHoverer) || r.container.appendChild(r.slideSwipingHoverer);
855
+ }),
856
+ (this.runPinchActions = function () {
857
+ var e = Fe(s);
858
+ s.pinchedHypot ? c.runZoomingPinchActionsForHypot(e) : (s.pinchedHypot = e);
859
+ }),
860
+ (this.runNormalSwipeActions = function () {
861
+ c.translateSourceMainWrapperAtIndexUsingMethod(a.current, "zero"), void 0 !== a.previous && s.swipedX > 0 ? c.translateSourceMainWrapperAtIndexUsingMethod(a.previous, "negative") : void 0 !== a.next && s.swipedX < 0 && c.translateSourceMainWrapperAtIndexUsingMethod(a.next, "positive");
862
+ }),
863
+ (this.runZoomSwipeActions = function (e) {
864
+ (s.swipedX = (e.screenX - s.downScreenX) / o.zoom), (s.swipedY = (e.screenY - s.downScreenY) / o.zoom), n[a.current].translate(s.upSwipedX + s.swipedX, s.upSwipedY + s.swipedY).zero();
865
+ });
866
+ }
867
+ function Pe(e) {
868
+ var n = e.data,
869
+ t = e.props.sources,
870
+ o = e.resolve,
871
+ r = e.sourcePointerProps,
872
+ i = o(Me);
873
+ this.listener = function (e) {
874
+ if (r.isPinching) return i.runActions(e), void i.runPinchActions();
875
+ 2 !== r.pointersCount && (i.runActions(e), 1 === n.zoom ? (1 === t.length ? (r.swipedX = 1) : i.runNormalSwipeActions()) : i.runZoomSwipeActions(e));
876
+ };
877
+ }
878
+ function Ne(e) {
879
+ var n = e.collections.sourceMainWrapperTransformers,
880
+ t = e.core,
881
+ o = t.slideIndexChanger,
882
+ r = t.clickZoomer,
883
+ i = e.data,
884
+ s = e.elements.sourceMainWrappers,
885
+ a = e.sourcePointerProps,
886
+ u = e.stageIndexes;
887
+ (this.runPositiveSwipedXActions = function () {
888
+ void 0 === u.previous || (l("positive"), o.changeTo(u.previous)), l("zero");
889
+ }),
890
+ (this.runNegativeSwipedXActions = function () {
891
+ void 0 === u.next || (l("negative"), o.changeTo(u.next)), l("zero");
892
+ }),
893
+ (this.saveCurrentSourceMainWrapperPosition = function () {
894
+ (a.upSwipedX = n[u.current].getTranslateX()), (a.upSwipedY = n[u.current].getTranslateY());
895
+ }),
896
+ (this.runSourceDownEventTargetActions = function () {
897
+ i.zoom <= 1 ? r.zoomIn() : r.zoomOut();
898
+ });
899
+ var l = function (e) {
900
+ s[u.current].classList.add(c), n[u.current][e]();
901
+ };
902
+ }
903
+ function Be(e) {
904
+ var n = e.core,
905
+ t = n.lightboxCloser,
906
+ o = n.pointeringBucket,
907
+ r = e.data,
908
+ i = e.elements,
909
+ s = e.resolve,
910
+ a = e.sourcePointerProps,
911
+ c = s(Ne);
912
+ (this.runActions = function () {
913
+ Ie(i.container, i.slideSwipingHoverer), (a.isPinching = !1), (a.pinchedHypot = 0), o.runSwipingTopActionsForPropsAndEvent(a), fe(i.sourceWrappersContainer, L);
914
+ }),
915
+ (this.runSwipeActions = function () {
916
+ 1 === r.zoom ? (a.swipedX > 0 ? c.runPositiveSwipedXActions() : c.runNegativeSwipedXActions()) : c.saveCurrentSourceMainWrapperPosition();
917
+ }),
918
+ (this.runNoSwipeActions = function () {
919
+ a.isSourceDownEventTarget ? c.runSourceDownEventTargetActions() : t.close();
920
+ });
921
+ }
922
+ function ke(e) {
923
+ var n = e.data,
924
+ t = e.resolve,
925
+ o = e.sourcePointerProps,
926
+ r = e.core.zoomer,
927
+ i = t(Be);
928
+ this.listener = function (e) {
929
+ (o.pointers = {}), o.isPointering && (o.isPinching || (o.swipedX ? i.runSwipeActions() : i.runNoSwipeActions()), i.runActions(e), n.zoom < 1 && (r.zoomTo(1), r.stopZooming()));
930
+ };
931
+ }
932
+ function He(e) {
933
+ return e.sourcePointerProps.isPointering;
934
+ }
935
+ function De(e) {
936
+ var n = e.core.inactiver,
937
+ t = e.middleware,
938
+ o = e.props,
939
+ r = e.resolve,
940
+ i = r(Pe),
941
+ s = r(ke),
942
+ a = r(Ae),
943
+ c = r(ze);
944
+ (this.moveListener = function (e) {
945
+ n.listener(e), t(t(i.listener, ce), He)(e), o.disableThumbs || a.listener(e);
946
+ }),
947
+ (this.upListener = function (e) {
948
+ s.listener(e), o.disableThumbs || c.listener(e);
949
+ });
950
+ }
951
+ function Oe(e) {
952
+ var n = e.core.zoomer,
953
+ t = e.data;
954
+ this.listener = function (e) {
955
+ if (1 === t.zoom) {
956
+ if (e.deltaY > 0) return;
957
+ n.startZooming();
958
+ }
959
+ var o = 0.1 * t.zoom,
960
+ r = t.zoom;
961
+ e.deltaY < 0 ? (r += o) : (r -= o) < 1 && (r = 1), n.zoomTo(r), 1 === r && n.stopZooming();
962
+ };
963
+ }
964
+ function Re(e) {
965
+ var n = e.data,
966
+ t = e.elements,
967
+ o = e.stageIndexes;
968
+ (this.runOpacity0ActionUsingMethod = function (e) {
969
+ t.slideButtonPrevious && (t.slideButtonPrevious.classList[e](w), t.slideButtonNext.classList[e](w));
970
+ }),
971
+ (this.runActiveEnhancementActionUsingMethod = function (e) {
972
+ n.isThumbing ? t.thumbsContainer.classList[e](E) : t.captions[o.current] && t.captions[o.current].classList[e](v);
973
+ });
974
+ }
975
+ function Xe(e) {
976
+ var n = e.core.zoomer,
977
+ t = e.data,
978
+ o = e.elements,
979
+ r = e.sourcePointerProps;
980
+ this.runPinchActions = function () {
981
+ (r.isPinching = !0), (r.pinchedHypot = Fe(r)), ge(o.sourceWrappersContainer, L), 1 === t.zoom && n.startZooming();
982
+ };
983
+ }
984
+ function Ye(e) {
985
+ var n,
986
+ t,
987
+ o,
988
+ r = e.data,
989
+ i = e.elements,
990
+ s = r.captionHeights,
991
+ a = r.notThumbedSourceEnhancementWrapperScales,
992
+ c = r.notThumbedSourceEnhancementWrapperTranslatesY,
993
+ u = i.sourceEnhancementWrappers,
994
+ l = i.sources;
995
+ (this.setUpThumbedEnhancementWrapperTransform = function () {
996
+ (n = i.thumbsContainer.offsetHeight), (t = r.thumbedSourceEnhancementWrapperTranslateY), (o = "translateY(".concat(t, "px) scale(").concat(r.thumbedSourceEnhancementWrapperScale, ")"));
997
+ }),
998
+ (this.setUpNotThumbedEnhancementWrapperTransformAtIndex = function (e) {
999
+ (n = s[e]), (t = c[e]), (o = "translateY(".concat(t, "px) scale(").concat(a[e], ")"));
1000
+ }),
1001
+ (this.ifSourceIsLoadedTransformEnhancementWrapperAtIndex = function (e) {
1002
+ l[e] && (innerWidth < innerHeight && l[e].offsetWidth > l[e].offsetHeight + n ? (u[e].style.transform = "translateY(".concat(t / 2, "px) scale(1)")) : (u[e].style.transform = o));
1003
+ });
1004
+ }
1005
+ function Ze(e) {
1006
+ !(function (e) {
1007
+ var n = e.core.captionsActioner,
1008
+ t = e.data,
1009
+ o = e.elements.captions;
1010
+ n.changeActiveCaptionFromTo = function (e, n) {
1011
+ t.isThumbing || (r(e, fe), r(n, ge));
1012
+ };
1013
+ var r = function (e, n) {
1014
+ o[e] && n(o[e], v);
1015
+ };
1016
+ })(e),
1017
+ (function (e) {
1018
+ var n = e.core.classFacade,
1019
+ t = e.elements;
1020
+ n.removeFromEachElementClassIfContains = function (e, n) {
1021
+ for (var o = 0; o < t[e].length; o++) fe(t[e][o], n);
1022
+ };
1023
+ })(e),
1024
+ (function (e) {
1025
+ var n = e.core,
1026
+ t = n.clickZoomer,
1027
+ o = n.zoomer,
1028
+ r = e.data,
1029
+ i = e.elements,
1030
+ s = e.props.zoomIncrement,
1031
+ a = ve(function () {
1032
+ fe(i.sourceWrappersContainer, c);
1033
+ }, 300);
1034
+ (t.zoomIn = function () {
1035
+ u(), l(r.zoom + s);
1036
+ }),
1037
+ (t.zoomOut = function () {
1038
+ r.zoom - s <= 1 ? 1 !== r.zoom && (l(1), o.stopZooming()) : (u(), l(r.zoom - s), 1 === r.zoom && o.stopZooming());
1039
+ });
1040
+ var u = function () {
1041
+ 1 === r.zoom && o.startZooming();
1042
+ },
1043
+ l = function (e) {
1044
+ ge(i.sourceWrappersContainer, c), o.zoomTo(e), a();
1045
+ };
1046
+ })(e),
1047
+ (function (e) {
1048
+ var n = e.core.eventsDispatcher,
1049
+ t = e.props;
1050
+ n.dispatch = function (n) {
1051
+ t[n] && t[n](e);
1052
+ };
1053
+ })(e),
1054
+ (function (e) {
1055
+ var n = e.componentsServices,
1056
+ t = e.core.fullscreenToggler;
1057
+ (t.enterFullscreen = function () {
1058
+ n.enterFullscreen();
1059
+ var e = document.documentElement;
1060
+ e.requestFullscreen ? e.requestFullscreen() : e.mozRequestFullScreen ? e.mozRequestFullScreen() : e.webkitRequestFullscreen ? e.webkitRequestFullscreen() : e.msRequestFullscreen && e.msRequestFullscreen();
1061
+ }),
1062
+ (t.exitFullscreen = function () {
1063
+ n.exitFullscreen(), document.exitFullscreen ? document.exitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.msExitFullscreen && document.msExitFullscreen();
1064
+ });
1065
+ })(e),
1066
+ (function (e) {
1067
+ var n,
1068
+ t = e.core,
1069
+ o = t.inactiver,
1070
+ r = t.globalEventsController,
1071
+ i = t.windowResizeActioner,
1072
+ s = e.middleware,
1073
+ a = e.resolve,
1074
+ c = a(De),
1075
+ u = a(Le),
1076
+ l = a(Oe);
1077
+ (r.addListeners = function () {
1078
+ document.addEventListener("pointerdown", o.listener), document.addEventListener("pointermove", c.moveListener), document.addEventListener("pointerup", c.upListener), addEventListener("resize", i.runActions), document.addEventListener("keydown", u.listener);
1079
+ var e,
1080
+ t =
1081
+ ((e = !1),
1082
+ function () {
1083
+ return (
1084
+ !e &&
1085
+ ((e = !0),
1086
+ requestAnimationFrame(function () {
1087
+ e = !1;
1088
+ }),
1089
+ !0)
1090
+ );
1091
+ });
1092
+ (n = s(
1093
+ (n = function (e) {
1094
+ return t() && l.listener(e);
1095
+ }),
1096
+ ye
1097
+ )),
1098
+ document.addEventListener("wheel", n);
1099
+ }),
1100
+ (r.removeListeners = function () {
1101
+ document.removeEventListener("pointerdown", o.listener),
1102
+ document.removeEventListener("pointermove", c.moveListener),
1103
+ document.removeEventListener("pointerup", c.upListener),
1104
+ removeEventListener("resize", i.runActions),
1105
+ document.removeEventListener("keydown", u.listener),
1106
+ document.removeEventListener("wheel", n);
1107
+ });
1108
+ })(e),
1109
+ (function (e) {
1110
+ var n = e.core.inactiver,
1111
+ t = e.data,
1112
+ o = e.elements,
1113
+ r = e.props.UIFadeOutTime,
1114
+ i = !1,
1115
+ s = ve(function () {
1116
+ (i = !0), a(c);
1117
+ }, r);
1118
+ n.listener = function () {
1119
+ s(), i && (a(u), (i = !1));
1120
+ };
1121
+ var a = function (e) {
1122
+ e(o.nav), 1 === t.zoom && o.slideButtonPrevious && (e(o.slideButtonPrevious), e(o.slideButtonNext)), t.isThumbing && e(o.thumbsContainer);
1123
+ },
1124
+ c = function (e) {
1125
+ e.classList.add(w);
1126
+ },
1127
+ u = function (e) {
1128
+ e.classList.remove(w);
1129
+ };
1130
+ })(e),
1131
+ (function (e) {
1132
+ var n = e.core.lightboxCloser,
1133
+ t = (0, e.resolve)(we);
1134
+ n.close = function () {
1135
+ t.isLightboxFadingOut || t.runActions();
1136
+ };
1137
+ })(e),
1138
+ Ve(e),
1139
+ (function (e) {
1140
+ var n = e.core.pointeringBucket,
1141
+ t = e.elements;
1142
+ (n.runSwipingDownActionsForPropsAndEvent = function (e, n) {
1143
+ (e.isPointering = !0), (e.downScreenX = n.screenX), (e.swipedX = 0);
1144
+ }),
1145
+ (n.runSwipingMoveActionsForPropsAndEvent = function (e, n) {
1146
+ ge(t.slideSwipingHoverer, i), (e.swipedX = n.screenX - e.downScreenX);
1147
+ }),
1148
+ (n.runSwipingTopActionsForPropsAndEvent = function (e) {
1149
+ fe(t.slideSwipingHoverer, i), (e.isPointering = !1);
1150
+ });
1151
+ })(e),
1152
+ (function (e) {
1153
+ var n = e.data,
1154
+ t = e.core.scrollbarRecompensor;
1155
+ t.addRecompense = function () {
1156
+ "complete" === document.readyState
1157
+ ? o()
1158
+ : window.addEventListener("load", function () {
1159
+ o(), (t.addRecompense = o);
1160
+ });
1161
+ };
1162
+ var o = function () {
1163
+ document.body.offsetHeight > window.innerHeight && (document.body.style.marginRight = n.scrollbarWidth + "px");
1164
+ };
1165
+ t.removeRecompense = function () {
1166
+ document.body.style.removeProperty("margin-right");
1167
+ };
1168
+ })(e),
1169
+ Te(e),
1170
+ (function (e) {
1171
+ var n = e.core,
1172
+ t = n.slideChangeFacade,
1173
+ o = n.slideIndexChanger,
1174
+ r = n.stageManager;
1175
+ e.props.sources.length > 1
1176
+ ? ((t.changeToPrevious = function () {
1177
+ o.jumpTo(r.getPreviousSlideIndex());
1178
+ }),
1179
+ (t.changeToNext = function () {
1180
+ o.jumpTo(r.getNextSlideIndex());
1181
+ }))
1182
+ : ((t.changeToPrevious = function () {}), (t.changeToNext = function () {}));
1183
+ })(e),
1184
+ (function (e) {
1185
+ var n = e.collections.sourceMainWrapperTransformers,
1186
+ t = e.componentsServices,
1187
+ o = e.core,
1188
+ r = o.captionsActioner,
1189
+ i = o.classFacade,
1190
+ s = o.eventsDispatcher,
1191
+ a = o.slideIndexChanger,
1192
+ u = o.sourceDisplayFacade,
1193
+ l = o.sourceLoadersManager,
1194
+ d = o.stageManager,
1195
+ p = o.thumbsTransformer,
1196
+ m = o.zoomer,
1197
+ f = e.elements.sourceAnimationWrappers,
1198
+ g = e.props,
1199
+ b = g.disableThumbs,
1200
+ v = g.initialAnimation,
1201
+ x = g.slideChangeAnimation,
1202
+ w = e.stageIndexes,
1203
+ S = ve(function () {
1204
+ i.removeFromEachElementClassIfContains("sourceAnimationWrappers", h);
1205
+ }, 300);
1206
+ (a.changeTo = function (n) {
1207
+ Se(e, n),
1208
+ m.ifZoomingResetZoom(),
1209
+ r.changeActiveCaptionFromTo(w.current, n),
1210
+ (w.current = n),
1211
+ d.updateStageIndexes(),
1212
+ b || p.transformToCurrentWithTransition(),
1213
+ t.setSlideNumber(n + 1),
1214
+ l.displayLoadersWhichShouldBeDisplayed(),
1215
+ u.displaySourcesWhichShouldBeDisplayed(),
1216
+ s.dispatch("onSlideChange");
1217
+ }),
1218
+ (a.jumpTo = function (e) {
1219
+ var t = w.current;
1220
+ a.changeTo(e),
1221
+ i.removeFromEachElementClassIfContains("sourceMainWrappers", c),
1222
+ fe(f[t], v),
1223
+ fe(f[t], x),
1224
+ f[t].classList.add(h),
1225
+ fe(f[e], v),
1226
+ fe(f[e], h),
1227
+ f[e].classList.add(x),
1228
+ S(),
1229
+ n[e].zero(),
1230
+ setTimeout(function () {
1231
+ t !== w.current && n[t].negative();
1232
+ }, 260);
1233
+ });
1234
+ })(e),
1235
+ (function (e) {
1236
+ var n = e.core.sourceEnhancementWrappersTransformer,
1237
+ t = e.data,
1238
+ o = (0, e.resolve)(Ye);
1239
+ (n.ifSourceIsLoadedTransformEnhancementWrapperAtIndex = function (e) {
1240
+ t.isThumbing ? o.setUpThumbedEnhancementWrapperTransform() : o.setUpNotThumbedEnhancementWrapperTransformAtIndex(e), o.ifSourceIsLoadedTransformEnhancementWrapperAtIndex(e);
1241
+ }),
1242
+ (n.ifSourceIsLoadedTransformThumbedEnhancementWrapperAtIndex = function (e) {
1243
+ o.setUpThumbedEnhancementWrapperTransform(e), o.ifSourceIsLoadedTransformEnhancementWrapperAtIndex(e);
1244
+ }),
1245
+ (n.ifSourceIsLoadedTransformNotThumbedEnhancementWrapperAtIndex = function (e) {
1246
+ o.setUpNotThumbedEnhancementWrapperTransformAtIndex(e), o.ifSourceIsLoadedTransformEnhancementWrapperAtIndex(e);
1247
+ });
1248
+ })(e),
1249
+ (function (e) {
1250
+ var n = e.core,
1251
+ t = n.sourceLoadersManager,
1252
+ o = n.stageManager,
1253
+ r = e.elements.sourceAnimationWrappers,
1254
+ i = e.stageIndexes,
1255
+ s = [];
1256
+ function a(e) {
1257
+ (s[e] = !0), xe(r[e]);
1258
+ }
1259
+ (t.handleSourceAnimationWrapperRendering = function (e) {
1260
+ o.isSourceInStage(e) && a(e);
1261
+ }),
1262
+ (t.displayLoadersWhichShouldBeDisplayed = function () {
1263
+ for (var e in i) {
1264
+ var n = i[e];
1265
+ s[n] || a(n);
1266
+ }
1267
+ }),
1268
+ (t.handleSourceLoad = function (e) {
1269
+ (s[e] = !0), r[e].removeChild(r[e].firstChild);
1270
+ });
1271
+ })(e),
1272
+ (function (e) {
1273
+ var n = e.collections.sourcesRenderFunctions,
1274
+ t = e.core.sourceDisplayFacade,
1275
+ o = e.props.loadOnlyCurrentSource,
1276
+ r = e.stageIndexes;
1277
+ function i(e) {
1278
+ n[e] && (n[e](), delete n[e]);
1279
+ }
1280
+ t.displaySourcesWhichShouldBeDisplayed = function () {
1281
+ if (o) i(r.current);
1282
+ else for (var e in r) i(r[e]);
1283
+ };
1284
+ })(e),
1285
+ (function (e) {
1286
+ var n = e.core,
1287
+ t = (n.classFacade, n.sourcesPointerDown),
1288
+ o = n.pointeringBucket,
1289
+ r = e.elements,
1290
+ i = r.sources,
1291
+ s = r.sourceMainWrappers,
1292
+ a = e.resolve,
1293
+ u = e.sourcePointerProps,
1294
+ l = e.stageIndexes,
1295
+ d = a(Xe);
1296
+ t.listener = function (e) {
1297
+ if (("touch" !== e.pointerType && "VIDEO" !== e.target.tagName && e.preventDefault(), o.runSwipingDownActionsForPropsAndEvent(u, e), (u.downScreenY = e.screenY), 2 === u.pointersCount)) d.runPinchActions();
1298
+ else
1299
+ for (var n in l) {
1300
+ var t = l[n];
1301
+ fe(s[t], c);
1302
+ }
1303
+ var r = i[l.current];
1304
+ r && r.contains(e.target) ? (u.isSourceDownEventTarget = !0) : (u.isSourceDownEventTarget = !1);
1305
+ };
1306
+ })(e),
1307
+ (function (e) {
1308
+ var n = e.stageIndexes,
1309
+ t = e.core.stageManager,
1310
+ o = e.props.sources.length - 1;
1311
+ (t.getPreviousSlideIndex = function () {
1312
+ return 0 === n.current ? o : n.current - 1;
1313
+ }),
1314
+ (t.getNextSlideIndex = function () {
1315
+ return n.current === o ? 0 : n.current + 1;
1316
+ }),
1317
+ (t.updateStageIndexes =
1318
+ 0 === o
1319
+ ? function () {}
1320
+ : 1 === o
1321
+ ? function () {
1322
+ 0 === n.current ? ((n.next = 1), delete n.previous) : ((n.previous = 0), delete n.next);
1323
+ }
1324
+ : function () {
1325
+ (n.previous = t.getPreviousSlideIndex()), (n.next = t.getNextSlideIndex());
1326
+ }),
1327
+ (t.isSourceInStage =
1328
+ o <= 2
1329
+ ? function () {
1330
+ return !0;
1331
+ }
1332
+ : function (e) {
1333
+ var t = n.current;
1334
+ if ((0 === t && e === o) || (t === o && 0 === e)) return !0;
1335
+ var r = t - e;
1336
+ return -1 === r || 0 === r || 1 === r;
1337
+ });
1338
+ })(e),
1339
+ (function (e) {
1340
+ var n = e.collections,
1341
+ t = n.sourceMainWrapperTransformers,
1342
+ o = n.sourceSizers,
1343
+ r = e.core,
1344
+ i = r.sourceEnhancementWrappersTransformer,
1345
+ s = r.windowResizeActioner,
1346
+ a = r.thumbsTransformer,
1347
+ u = e.data,
1348
+ l = e.elements,
1349
+ d = e.props,
1350
+ p = d.disableThumbs,
1351
+ h = d.sources,
1352
+ m = e.stageIndexes,
1353
+ f = u.notThumbedSourceEnhancementWrapperScales,
1354
+ g = u.captionHeights,
1355
+ b = u.notThumbedSourceEnhancementWrapperTranslatesY,
1356
+ v = l.captions,
1357
+ x = l.sourceMainWrappers,
1358
+ w = l.thumbs;
1359
+ (s.runActions = function () {
1360
+ innerWidth < 992 ? (u.maxSourceWidth = innerWidth) : (u.maxSourceWidth = 0.9 * innerWidth),
1361
+ (u.maxSourceHeight = 0.9 * innerHeight),
1362
+ p || ((u.thumbedSourceEnhancementWrapperScale = 1 - l.thumbsContainer.offsetHeight / innerHeight), (u.thumbedSourceEnhancementWrapperTranslateY = -l.thumbsContainer.offsetHeight / 2)),
1363
+ 0 === u.unloadedThumbsCount && s.runThumbsActions();
1364
+ for (var e = 0; e < h.length; e++) {
1365
+ if (v[e]) {
1366
+ g[e] = v[e].offsetHeight;
1367
+ var n = g[e] - 25;
1368
+ (f[e] = 1 - n / innerHeight), (b[e] = -n / 2);
1369
+ } else (f[e] = 1), (b[e] = 0);
1370
+ fe(x[e], c), i.ifSourceIsLoadedTransformEnhancementWrapperAtIndex(e), e !== m.current && t[e].negative(), o[e] && o[e].adjustSize();
1371
+ }
1372
+ }),
1373
+ (s.runThumbsActions = function () {
1374
+ u.thumbsInnerWidth = 0;
1375
+ for (var e = 0; e < h.length; e++) u.thumbsInnerWidth += w[e].offsetWidth + 8;
1376
+ a.transformToCurrent();
1377
+ });
1378
+ })(e),
1379
+ (function (e) {
1380
+ var n = e.collections.sourceMainWrapperTransformers,
1381
+ t = e.core.zoomer,
1382
+ o = e.data,
1383
+ r = e.elements,
1384
+ i = e.resolve,
1385
+ s = e.sourcePointerProps,
1386
+ a = e.stageIndexes,
1387
+ u = r.sources,
1388
+ l = r.sourceMainWrappers,
1389
+ d = i(Re);
1390
+ (t.zoomTo = function (e) {
1391
+ (o.zoom = h(e)), (r.sourceWrappersContainer.style.transform = "scale(".concat(o.zoom, ")"));
1392
+ }),
1393
+ (t.ifZoomingResetZoom = function () {
1394
+ 1 !== o.zoom && (t.zoomTo(1), t.stopZooming());
1395
+ }),
1396
+ (t.startZooming = function () {
1397
+ p("grab"), d.runOpacity0ActionUsingMethod("add"), d.runActiveEnhancementActionUsingMethod("remove");
1398
+ }),
1399
+ (t.stopZooming = function () {
1400
+ p("zoom-in"), d.runOpacity0ActionUsingMethod("remove"), d.runActiveEnhancementActionUsingMethod("add"), l[a.current].classList.add(c), n[a.current].translate(0, 0).zero(), (s.upSwipedX = 0), (s.upSwipedY = 0);
1401
+ });
1402
+ var p = function (e) {
1403
+ u[a.current] && (u[a.current].style.cursor = e);
1404
+ },
1405
+ h = function (e) {
1406
+ return parseFloat(e.toPrecision(12));
1407
+ };
1408
+ })(e);
1409
+ }
1410
+ function Ue(e, n) {
1411
+ var t = e.data.isThumbing,
1412
+ o = e.elements,
1413
+ r = o.captions,
1414
+ i = o.container,
1415
+ a = e.props.captions,
1416
+ c = e.stageIndexes.current;
1417
+ r[n] = document.createElement("div");
1418
+ var u = "".concat(g, " ").concat(s);
1419
+ c !== n || t || (u += " ".concat(v)), (r[n].className = u);
1420
+ var l = document.createElement("div");
1421
+ (l.className = b), (l.innerHTML = a[n]), r[n].appendChild(l), i.appendChild(r[n]);
1422
+ }
1423
+ function je(e) {
1424
+ var n = e.core.eventsDispatcher,
1425
+ o = e.data,
1426
+ i = e.elements,
1427
+ s = e.props,
1428
+ a = s.disableThumbs,
1429
+ l = s.showThumbsOnMount,
1430
+ d = s.sources;
1431
+ (o.isInitialized = !0),
1432
+ (o.scrollbarWidth = (function (e) {
1433
+ var n = e.props.disableLocalStorage;
1434
+ if (!n) {
1435
+ var t = localStorage.getItem(H);
1436
+ if (t) return t;
1437
+ }
1438
+ var o = (function () {
1439
+ var e = document.createElement("div"),
1440
+ n = e.style;
1441
+ return (n.visibility = "hidden"), (n.width = "100px"), (n.msOverflowStyle = "scrollbar"), (n.overflow = "scroll"), e;
1442
+ })(),
1443
+ r = (function () {
1444
+ var e = document.createElement("div");
1445
+ return (e.style.width = "100%"), e;
1446
+ })();
1447
+ document.body.appendChild(o);
1448
+ var i = o.offsetWidth;
1449
+ o.appendChild(r);
1450
+ var s = r.offsetWidth;
1451
+ document.body.removeChild(o);
1452
+ var a = i - s;
1453
+ return n || localStorage.setItem(H, a.toString()), a;
1454
+ })(e)),
1455
+ (o.unloadedThumbsCount = d.length),
1456
+ (function (e) {
1457
+ for (var n = e.collections.sourceMainWrapperTransformers, t = e.props.sources, o = e.resolve, r = 0; r < t.length; r++) n[r] = o(pe, [r]);
1458
+ })(e),
1459
+ a ||
1460
+ ((o.isThumbing = l),
1461
+ (function (e) {
1462
+ var n = e.core,
1463
+ t = e.data,
1464
+ o = e.elements,
1465
+ r = e.props;
1466
+ (t.isThumbing = r.showThumbsOnMount),
1467
+ (t.thumbsInnerWidth = null),
1468
+ (t.thumbsTransform = 0),
1469
+ (t.thumbedSourceEnhancementWrapperScale = null),
1470
+ (t.thumbedSourceEnhancementWrapperTranslateY = null),
1471
+ (t.unloadedThumbsCount = r.sources.length),
1472
+ (e.thumbsSwipingProps = {
1473
+ isPointering: !1,
1474
+ downScreenX: null,
1475
+ swipedX: null
1476
+ }),
1477
+ (n.thumbLoadHandler = {}),
1478
+ (n.thumbsRenderDispatcher = {}),
1479
+ (n.thumbsSwipingDown = {}),
1480
+ (n.thumbsToggler = {}),
1481
+ (n.thumbsTransformer = {}),
1482
+ (n.thumbsTransformTransitioner = {}),
1483
+ (o.thumbsContainer = null),
1484
+ (o.thumbs = []),
1485
+ (o.thumbsWrappers = []),
1486
+ (o.thumbsComponents = []),
1487
+ (o.thumbsInner = null),
1488
+ (function (e) {
1489
+ var n = e.core,
1490
+ t = n.thumbLoadHandler,
1491
+ o = n.windowResizeActioner,
1492
+ r = e.componentsServices,
1493
+ i = e.data,
1494
+ s = e.elements.thumbsWrappers;
1495
+ t.handleLoad = function () {
1496
+ if ((i.unloadedThumbsCount--, 0 === i.unloadedThumbsCount)) {
1497
+ for (var e = 0; e < s.length; e++) s[e].classList.add(S);
1498
+ o.runThumbsActions(), r.hideThumbsLoader();
1499
+ }
1500
+ };
1501
+ })(e),
1502
+ (function (e) {
1503
+ var n = e.core.thumbsRenderDispatcher,
1504
+ t = e.props.sources,
1505
+ o = [],
1506
+ r = !1,
1507
+ i = 0;
1508
+ (n.addFunctionToToBeRenderedAtIndex = function (e, n) {
1509
+ (o[n] = e), i++;
1510
+ }),
1511
+ (n.renderThumbsIfNotYetAndAllTypesDetected = function () {
1512
+ if (!r && i === t.length) {
1513
+ r = !0;
1514
+ for (var e = 0; e < t.length; e++) o[e]();
1515
+ }
1516
+ });
1517
+ })(e),
1518
+ (function (e) {
1519
+ var n = e.core,
1520
+ t = n.thumbsSwipingDown,
1521
+ o = n.pointeringBucket,
1522
+ r = e.thumbsSwipingProps;
1523
+ t.listener = function (e) {
1524
+ e.preventDefault(), o.runSwipingDownActionsForPropsAndEvent(r, e);
1525
+ };
1526
+ })(e),
1527
+ (function (e) {
1528
+ var n = e.core.thumbsToggler,
1529
+ t = e.data,
1530
+ o = (0, e.resolve)(me);
1531
+ n.toggleThumbs = function () {
1532
+ t.isThumbing ? o.closeThumbs() : o.openThumbs();
1533
+ };
1534
+ })(e),
1535
+ (function (e) {
1536
+ var n = e.core,
1537
+ t = n.thumbsTransformer,
1538
+ o = n.thumbsTransformTransitioner,
1539
+ r = e.data,
1540
+ i = (0, e.resolve)(be);
1541
+ (t.transformToCurrent = function () {
1542
+ r.thumbsInnerWidth > innerWidth ? i.runActions() : i.runToThinThumbsActions();
1543
+ }),
1544
+ (t.transformToCurrentWithTransition = function () {
1545
+ r.thumbsInnerWidth > innerWidth && o.callActionWithTransition(i.runActions);
1546
+ });
1547
+ })(e),
1548
+ (function (e) {
1549
+ var n = e.core.thumbsTransformTransitioner,
1550
+ t = e.elements,
1551
+ o = ve(function () {
1552
+ t.thumbsInner.classList.remove(c);
1553
+ }, 300);
1554
+ n.callActionWithTransition = function (e) {
1555
+ t.thumbsInner.classList.add(c), e(), o();
1556
+ };
1557
+ })(e);
1558
+ })(e)),
1559
+ Ze(e),
1560
+ (i.container = document.createElement("div")),
1561
+ (i.container.className = "".concat(t, "container ").concat(r, " ").concat(m)),
1562
+ (function (e) {
1563
+ var n = e.elements;
1564
+ (n.slideSwipingHoverer = document.createElement("div")), (n.slideSwipingHoverer.className = "".concat(t, "slide-swiping-hoverer ").concat(r, " ").concat(u));
1565
+ })(e),
1566
+ de(e),
1567
+ (function (e) {
1568
+ var n = e.elements;
1569
+ (n.slideshowBar = document.createElement("div")), (n.slideshowBar.className = "".concat(t, "slideshow-bar ").concat(u)), n.container.appendChild(n.slideshowBar);
1570
+ })(e),
1571
+ (function (e) {
1572
+ var n = e.core.sourcesPointerDown.listener,
1573
+ t = e.elements,
1574
+ o = e.middleware,
1575
+ i = e.props.sources,
1576
+ s = document.createElement("div");
1577
+ (s.className = "".concat(y, " ").concat(u, " ").concat(r)), t.container.appendChild(s), s.addEventListener("pointerdown", o(n, ce)), (t.sourceWrappersContainer = s);
1578
+ for (var a = 0; a < i.length; a++) ae(e, a);
1579
+ })(e),
1580
+ (function (e) {
1581
+ for (var n = e.props.captions, t = 0; t < n.length; t++) n[t] && Ue(e, t);
1582
+ })(e),
1583
+ d.length > 1 &&
1584
+ (function (e) {
1585
+ he(e, "previous"), he(e, "next");
1586
+ })(e),
1587
+ a ||
1588
+ (function (e) {
1589
+ var n = e.componentsServices,
1590
+ t = e.elements,
1591
+ o = e.data;
1592
+ t.thumbsContainer = document.createElement("div");
1593
+ var i,
1594
+ s,
1595
+ a = A;
1596
+ function c() {
1597
+ (s = !0), (i = xe(t.thumbsContainer)).classList.add(I);
1598
+ }
1599
+ o.isThumbing && ((a += " ".concat(E)), c()),
1600
+ (n.appendThumbsLoaderIfNotYet = function () {
1601
+ s || c();
1602
+ }),
1603
+ (n.hideThumbsLoader = function () {
1604
+ t.thumbsContainer.removeChild(i);
1605
+ }),
1606
+ (t.thumbsContainer.className = a),
1607
+ t.container.appendChild(t.thumbsContainer),
1608
+ (function (e) {
1609
+ var n = e.elements;
1610
+ (n.thumbsCursorer = document.createElement("div")), (n.thumbsCursorer.className = "".concat(W, " ").concat(r, " ").concat(u));
1611
+ })(e),
1612
+ (function (e) {
1613
+ var n = e.core.thumbsSwipingDown.listener,
1614
+ t = e.elements;
1615
+ (t.thumbsInner = document.createElement("div")), (t.thumbsInner.className = z), t.thumbsInner.addEventListener("pointerdown", n), t.thumbsContainer.appendChild(t.thumbsInner);
1616
+ })(e);
1617
+ })(e),
1618
+ (function (e) {
1619
+ for (var n = e.props.sources, t = e.resolve, o = t(D), r = t(re), i = t(se, [o, r]), s = 0; s < n.length; s++)
1620
+ if ("string" == typeof n[s]) {
1621
+ var a = i.getTypeSetByClientForIndex(s);
1622
+ if (a) r.runActionsForSourceTypeAndIndex(a, s);
1623
+ else {
1624
+ var c = o.getSourceTypeFromLocalStorageByUrl(n[s]);
1625
+ c ? r.runActionsForSourceTypeAndIndex(c, s) : i.retrieveTypeWithXhrForIndex(s);
1626
+ }
1627
+ } else r.runActionsForSourceTypeAndIndex(Y, s);
1628
+ })(e),
1629
+ n.dispatch("onInit");
1630
+ }
1631
+ function Ve(e) {
1632
+ var n = e.collections.sourceMainWrapperTransformers,
1633
+ t = e.componentsServices,
1634
+ o = e.core,
1635
+ r = o.captionsActioner,
1636
+ i = o.eventsDispatcher,
1637
+ s = o.lightboxOpener,
1638
+ c = o.globalEventsController,
1639
+ u = o.scrollbarRecompensor,
1640
+ l = o.sourceDisplayFacade,
1641
+ d = o.sourceLoadersManager,
1642
+ p = o.stageManager,
1643
+ h = o.windowResizeActioner,
1644
+ m = e.data,
1645
+ f = e.elements,
1646
+ g = e.stageIndexes;
1647
+ s.open = function () {
1648
+ var o = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0,
1649
+ s = g.current;
1650
+ Se(e, o),
1651
+ (g.current = o),
1652
+ m.isInitialized ? i.dispatch("onShow") : je(e),
1653
+ p.updateStageIndexes(),
1654
+ d.displayLoadersWhichShouldBeDisplayed(),
1655
+ l.displaySourcesWhichShouldBeDisplayed(),
1656
+ r.changeActiveCaptionFromTo(s, o),
1657
+ t.setSlideNumber(o + 1),
1658
+ document.body.appendChild(f.container),
1659
+ document.documentElement.classList.add(a),
1660
+ u.addRecompense(),
1661
+ c.addListeners(),
1662
+ h.runActions(),
1663
+ n[g.current].zero(),
1664
+ i.dispatch("onOpen");
1665
+ };
1666
+ }
1667
+ function qe(e) {
1668
+ return (
1669
+ (function (e) {
1670
+ if (Array.isArray(e)) return _e(e);
1671
+ })(e) ||
1672
+ (function (e) {
1673
+ if (("undefined" != typeof Symbol && null != e[Symbol.iterator]) || null != e["@@iterator"]) return Array.from(e);
1674
+ })(e) ||
1675
+ (function (e, n) {
1676
+ if (e) {
1677
+ if ("string" == typeof e) return _e(e, n);
1678
+ var t = Object.prototype.toString.call(e).slice(8, -1);
1679
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _e(e, n) : void 0;
1680
+ }
1681
+ })(e) ||
1682
+ (function () {
1683
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1684
+ })()
1685
+ );
1686
+ }
1687
+ function _e(e, n) {
1688
+ (null == n || n > e.length) && (n = e.length);
1689
+ for (var t = 0, o = new Array(n); t < n; t++) o[t] = e[t];
1690
+ return o;
1691
+ }
1692
+ function Je(e, n, t) {
1693
+ return (
1694
+ (Je = $e()
1695
+ ? Reflect.construct
1696
+ : function (e, n, t) {
1697
+ var o = [null];
1698
+ o.push.apply(o, n);
1699
+ var r = new (Function.bind.apply(e, o))();
1700
+ return t && Ge(r, t.prototype), r;
1701
+ }),
1702
+ Je.apply(null, arguments)
1703
+ );
1704
+ }
1705
+ function $e() {
1706
+ if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
1707
+ if (Reflect.construct.sham) return !1;
1708
+ if ("function" == typeof Proxy) return !0;
1709
+ try {
1710
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0;
1711
+ } catch (e) {
1712
+ return !1;
1713
+ }
1714
+ }
1715
+ function Ge(e, n) {
1716
+ return (
1717
+ (Ge =
1718
+ Object.setPrototypeOf ||
1719
+ function (e, n) {
1720
+ return (e.__proto__ = n), e;
1721
+ }),
1722
+ Ge(e, n)
1723
+ );
1724
+ }
1725
+ function Ke(e) {
1726
+ return (
1727
+ (function (e) {
1728
+ if (Array.isArray(e)) return Qe(e);
1729
+ })(e) ||
1730
+ (function (e) {
1731
+ if (("undefined" != typeof Symbol && null != e[Symbol.iterator]) || null != e["@@iterator"]) return Array.from(e);
1732
+ })(e) ||
1733
+ (function (e, n) {
1734
+ if (e) {
1735
+ if ("string" == typeof e) return Qe(e, n);
1736
+ var t = Object.prototype.toString.call(e).slice(8, -1);
1737
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Qe(e, n) : void 0;
1738
+ }
1739
+ })(e) ||
1740
+ (function () {
1741
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1742
+ })()
1743
+ );
1744
+ }
1745
+ function Qe(e, n) {
1746
+ (null == n || n > e.length) && (n = e.length);
1747
+ for (var t = 0, o = new Array(n); t < n; t++) o[t] = e[t];
1748
+ return o;
1749
+ }
1750
+ function en() {
1751
+ for (
1752
+ var e = document.getElementsByTagName("a"),
1753
+ n = function (n) {
1754
+ if (!e[n].hasAttribute("data-fslightbox")) return "continue";
1755
+ var t = e[n].getAttribute("data-fslightbox"),
1756
+ o = e[n].getAttribute("href");
1757
+ fsLightboxInstances[t] || (fsLightboxInstances[t] = new FsLightbox());
1758
+ var r = null;
1759
+ "#" === o.charAt(0) ? (r = document.getElementById(o.substring(1)).cloneNode(!0)).removeAttribute("id") : (r = o), fsLightboxInstances[t].props.sources.push(r), fsLightboxInstances[t].elements.a.push(e[n]);
1760
+ var i = fsLightboxInstances[t].props.sources.length - 1;
1761
+ (e[n].onclick = function (e) {
1762
+ e.preventDefault(), fsLightboxInstances[t].open(i);
1763
+ }),
1764
+ d("captions", "data-caption"),
1765
+ d("customClasses", "data-class"),
1766
+ d("customClasses", "data-custom-class"),
1767
+ d("types", "data-type"),
1768
+ d("thumbs", "data-thumb"),
1769
+ d("videosPosters", "data-video-poster");
1770
+ for (var s = ["href", "data-fslightbox", "data-caption", "data-class", "data-custom-class", "data-type", "data-thumb", "data-video-poster"], a = e[n].attributes, c = fsLightboxInstances[t].props.customAttributes, u = 0; u < a.length; u++)
1771
+ if (-1 === s.indexOf(a[u].name) && "data-" === a[u].name.substr(0, 5)) {
1772
+ c[i] || (c[i] = {});
1773
+ var l = a[u].name.substr(5);
1774
+ c[i][l] = a[u].value;
1775
+ }
1776
+ function d(o, r) {
1777
+ e[n].hasAttribute(r) && (fsLightboxInstances[t].props[o][i] = e[n].getAttribute(r));
1778
+ }
1779
+ },
1780
+ t = 0;
1781
+ t < e.length;
1782
+ t++
1783
+ )
1784
+ n(t);
1785
+ var o = Object.keys(fsLightboxInstances);
1786
+ window.fsLightbox = fsLightboxInstances[o[o.length - 1]];
1787
+ }
1788
+ return (
1789
+ (window.FsLightbox = function () {
1790
+ var e = this;
1791
+ (this.props = {
1792
+ sources: [],
1793
+ maxYoutubeDimensions: null,
1794
+ customAttributes: [],
1795
+ customClasses: [],
1796
+ types: [],
1797
+ type: null,
1798
+ thumbs: [],
1799
+ thumbsIcons: [],
1800
+ captions: [],
1801
+ videosPosters: [],
1802
+ customToolbarButtons: [],
1803
+ initialAnimation: m,
1804
+ slideChangeAnimation: p,
1805
+ slideDistance: 0.3,
1806
+ slideshowTime: 8e3,
1807
+ UIFadeOutTime: 8e3,
1808
+ zoomIncrement: 0.25,
1809
+ toolbarButtons: {
1810
+ thumbs: {
1811
+ width: "17px",
1812
+ height: "17px",
1813
+ viewBox: "0 0 22 22",
1814
+ d: "M 3 2 C 2.448 2 2 2.448 2 3 L 2 6 C 2 6.552 2.448 7 3 7 L 6 7 C 6.552 7 7 6.552 7 6 L 7 3 C 7 2.448 6.552 2 6 2 L 3 2 z M 10 2 C 9.448 2 9 2.448 9 3 L 9 6 C 9 6.552 9.448 7 10 7 L 13 7 C 13.552 7 14 6.552 14 6 L 14 3 C 14 2.448 13.552 2 13 2 L 10 2 z M 17 2 C 16.448 2 16 2.448 16 3 L 16 6 C 16 6.552 16.448 7 17 7 L 20 7 C 20.552 7 21 6.552 21 6 L 21 3 C 21 2.448 20.552 2 20 2 L 17 2 z M 3 9 C 2.448 9 2 9.448 2 10 L 2 13 C 2 13.552 2.448 14 3 14 L 6 14 C 6.552 14 7 13.552 7 13 L 7 10 C 7 9.448 6.552 9 6 9 L 3 9 z M 10 9 C 9.448 9 9 9.448 9 10 L 9 13 C 9 13.552 9.448 14 10 14 L 13 14 C 13.552 14 14 13.552 14 13 L 14 10 C 14 9.448 13.552 9 13 9 L 10 9 z M 17 9 C 16.448 9 16 9.448 16 10 L 16 13 C 16 13.552 16.448 14 17 14 L 20 14 C 20.552 14 21 13.552 21 13 L 21 10 C 21 9.448 20.552 9 20 9 L 17 9 z M 3 16 C 2.448 16 2 16.448 2 17 L 2 20 C 2 20.552 2.448 21 3 21 L 6 21 C 6.552 21 7 20.552 7 20 L 7 17 C 7 16.448 6.552 16 6 16 L 3 16 z M 10 16 C 9.448 16 9 16.448 9 17 L 9 20 C 9 20.552 9.448 21 10 21 L 13 21 C 13.552 21 14 20.552 14 20 L 14 17 C 14 16.448 13.552 16 13 16 L 10 16 z M 17 16 C 16.448 16 16 16.448 16 17 L 16 20 C 16 20.552 16.448 21 17 21 L 20 21 C 20.552 21 21 20.552 21 20 L 21 17 C 21 16.448 20.552 16 20 16 L 17 16 z",
1815
+ title: "Thumbnails"
1816
+ },
1817
+ zoomIn: {
1818
+ width: "20px",
1819
+ height: "20px",
1820
+ viewBox: "0 0 30 30",
1821
+ d: "M 13 3 C 7.4889971 3 3 7.4889971 3 13 C 3 18.511003 7.4889971 23 13 23 C 15.396508 23 17.597385 22.148986 19.322266 20.736328 L 25.292969 26.707031 A 1.0001 1.0001 0 1 0 26.707031 25.292969 L 20.736328 19.322266 C 22.148986 17.597385 23 15.396508 23 13 C 23 7.4889971 18.511003 3 13 3 z M 13 5 C 17.430123 5 21 8.5698774 21 13 C 21 17.430123 17.430123 21 13 21 C 8.5698774 21 5 17.430123 5 13 C 5 8.5698774 8.5698774 5 13 5 z M 12.984375 7.9863281 A 1.0001 1.0001 0 0 0 12 9 L 12 12 L 9 12 A 1.0001 1.0001 0 1 0 9 14 L 12 14 L 12 17 A 1.0001 1.0001 0 1 0 14 17 L 14 14 L 17 14 A 1.0001 1.0001 0 1 0 17 12 L 14 12 L 14 9 A 1.0001 1.0001 0 0 0 12.984375 7.9863281 z",
1822
+ title: "Zoom In"
1823
+ },
1824
+ zoomOut: {
1825
+ width: "20px",
1826
+ height: "20px",
1827
+ viewBox: "0 0 30 30",
1828
+ d: "M 13 3 C 7.4889971 3 3 7.4889971 3 13 C 3 18.511003 7.4889971 23 13 23 C 15.396508 23 17.597385 22.148986 19.322266 20.736328 L 25.292969 26.707031 A 1.0001 1.0001 0 1 0 26.707031 25.292969 L 20.736328 19.322266 C 22.148986 17.597385 23 15.396508 23 13 C 23 7.4889971 18.511003 3 13 3 z M 13 5 C 17.430123 5 21 8.5698774 21 13 C 21 17.430123 17.430123 21 13 21 C 8.5698774 21 5 17.430123 5 13 C 5 8.5698774 8.5698774 5 13 5 z M 9 12 A 1.0001 1.0001 0 1 0 9 14 L 17 14 A 1.0001 1.0001 0 1 0 17 12 L 9 12 z",
1829
+ title: "Zoom Out"
1830
+ },
1831
+ slideshow: {
1832
+ start: {
1833
+ width: "16px",
1834
+ height: "16px",
1835
+ viewBox: "0 0 30 30",
1836
+ d: "M 6 3 A 1 1 0 0 0 5 4 A 1 1 0 0 0 5 4.0039062 L 5 15 L 5 25.996094 A 1 1 0 0 0 5 26 A 1 1 0 0 0 6 27 A 1 1 0 0 0 6.5800781 26.8125 L 6.5820312 26.814453 L 26.416016 15.908203 A 1 1 0 0 0 27 15 A 1 1 0 0 0 26.388672 14.078125 L 6.5820312 3.1855469 L 6.5800781 3.1855469 A 1 1 0 0 0 6 3 z",
1837
+ title: "Turn on slideshow"
1838
+ },
1839
+ pause: {
1840
+ width: "14px",
1841
+ height: "14px",
1842
+ viewBox: "0 0 356.19 356.19",
1843
+ d: "M121,0c18,0,33,15,33,33v372c0,18-15,33-33,33s-32-15-32-33V33C89,15,103,0,121,0zM317,0c18,0,32,15,32,33v372c0,18-14,33-32,33s-33-15-33-33V33C284,15,299,0,317,0z",
1844
+ title: "Turn off slideshow"
1845
+ }
1846
+ },
1847
+ fullscreen: {
1848
+ enter: {
1849
+ width: "20px",
1850
+ height: "20px",
1851
+ viewBox: "0 0 18 18",
1852
+ d: "M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z",
1853
+ title: "Enter fullscreen"
1854
+ },
1855
+ exit: {
1856
+ width: "24px",
1857
+ height: "24px",
1858
+ viewBox: "0 0 950 1024",
1859
+ d: "M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z",
1860
+ title: "Exit fullscreen"
1861
+ }
1862
+ },
1863
+ close: {
1864
+ width: "20px",
1865
+ height: "20px",
1866
+ viewBox: "0 0 24 24",
1867
+ d: "M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z",
1868
+ title: "Close"
1869
+ }
1870
+ },
1871
+ slideButtons: {
1872
+ previous: {
1873
+ width: "20px",
1874
+ height: "20px",
1875
+ viewBox: "0 0 20 20",
1876
+ d: "M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z",
1877
+ title: "Previous"
1878
+ },
1879
+ next: {
1880
+ width: "20px",
1881
+ height: "20px",
1882
+ viewBox: "0 0 20 20",
1883
+ d: "M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z",
1884
+ title: "Next"
1885
+ }
1886
+ }
1887
+ }),
1888
+ (this.data = {
1889
+ isInitialized: !1,
1890
+ isThumbing: !1,
1891
+ maxSourceWidth: 0,
1892
+ maxSourceHeight: 0,
1893
+ scrollbarWidth: 0,
1894
+ isFullscreenOpen: !1,
1895
+ isSlideshowOn: !1,
1896
+ captionHeights: [],
1897
+ notThumbedSourceEnhancementWrapperScales: [],
1898
+ notThumbedSourceEnhancementWrapperTranslatesY: [],
1899
+ zoom: 1
1900
+ }),
1901
+ (this.sourcePointerProps = {
1902
+ isPointering: !1,
1903
+ pointers: {},
1904
+ pointersCount: 0,
1905
+ downScreenX: null,
1906
+ downScreenY: null,
1907
+ isSourceDownEventTarget: !1,
1908
+ swipedX: 0,
1909
+ swipedY: 0,
1910
+ upSwipedX: 0,
1911
+ upSwipedY: 0,
1912
+ pinchedHypot: 0
1913
+ }),
1914
+ (this.stageIndexes = {}),
1915
+ (this.elements = {
1916
+ a: [],
1917
+ captions: [],
1918
+ container: null,
1919
+ nav: null,
1920
+ slideSwipingHoverer: null,
1921
+ slideButtonPrevious: null,
1922
+ slideButtonNext: null,
1923
+ sourceWrappersContainer: null,
1924
+ slideshowBar: null,
1925
+ sourceAnimationWrappers: [],
1926
+ sourceEnhancementWrappers: [],
1927
+ sourceTurboWrappers: [],
1928
+ sourceMainWrappers: [],
1929
+ sourceZoomWrappers: [],
1930
+ sources: []
1931
+ }),
1932
+ (this.componentsServices = {
1933
+ enterFullscreen: null,
1934
+ exitFullscreen: null,
1935
+ setSlideNumber: function () {},
1936
+ startSlideshow: null,
1937
+ stopSlideshow: null
1938
+ }),
1939
+ (this.middleware = function (n, t) {
1940
+ return (function (e, n, t) {
1941
+ return function () {
1942
+ for (var o = arguments.length, r = new Array(o), i = 0; i < o; i++) r[i] = arguments[i];
1943
+ var s = t ? [].concat(qe(t), r) : r;
1944
+ n.apply(void 0, qe(s)) && e.apply(void 0, r);
1945
+ };
1946
+ })(n, t, [e]);
1947
+ }),
1948
+ (this.resolve = function (n) {
1949
+ var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [];
1950
+ return t.unshift(e), Je(n, Ke(t));
1951
+ }),
1952
+ (this.collections = {
1953
+ sourceMainWrapperTransformers: [],
1954
+ sourceLoadHandlers: [],
1955
+ sourcesRenderFunctions: [],
1956
+ sourceSizers: []
1957
+ }),
1958
+ (this.core = {
1959
+ captionsActioner: {},
1960
+ classFacade: {},
1961
+ clickZoomer: {},
1962
+ eventsDispatcher: {},
1963
+ fullscreenToggler: {},
1964
+ globalEventsController: {},
1965
+ inactiver: {},
1966
+ lightboxCloser: {},
1967
+ lightboxOpener: {},
1968
+ lightboxUpdater: {},
1969
+ pointeringBucket: {},
1970
+ scrollbarRecompensor: {},
1971
+ slideshowManager: {},
1972
+ slideChangeFacade: {},
1973
+ slideIndexChanger: {},
1974
+ sourceDisplayFacade: {},
1975
+ sourceEnhancementWrappersTransformer: {},
1976
+ sourceLoadersManager: {},
1977
+ sourcesPointerDown: {},
1978
+ stageManager: {},
1979
+ swipingActioner: {},
1980
+ windowResizeActioner: {},
1981
+ zoomer: {}
1982
+ }),
1983
+ Ve(this),
1984
+ (this.open = this.core.lightboxOpener.open),
1985
+ (this.close = function () {
1986
+ return e.core.lightboxCloser.close();
1987
+ });
1988
+ }),
1989
+ (window.fsLightboxInstances = {}),
1990
+ en(),
1991
+ (window.refreshFsLightbox = function () {
1992
+ for (var e in fsLightboxInstances) {
1993
+ var n = fsLightboxInstances[e].props;
1994
+ (fsLightboxInstances[e] = new FsLightbox()), (fsLightboxInstances[e].props = n), (fsLightboxInstances[e].props.sources = []), (fsLightboxInstances[e].elements.a = []);
1995
+ }
1996
+ en();
1997
+ }),
1998
+ e
1999
+ );
2000
+ })();
2001
+ });