Gallery – Photo Gallery – Image Gallery - Version 2.4.1

Version Description

Download this release

Release Info

Developer giucu91
Plugin Icon wp plugin Gallery – Photo Gallery – Image Gallery
Version 2.4.1
Comparing to
See all releases

Code changes from version 2.4.0 to 2.4.1

Modula.php CHANGED
@@ -4,8 +4,8 @@
4
  * Plugin URI: https://wp-modula.com/
5
  * Description: Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks.
6
  * Author: WPChill
7
- * Version: 2.4.0
8
- * Author URI: https://wpchill.com
9
  * License: GPLv3 or later
10
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
  * Requires PHP: 5.6
@@ -47,7 +47,7 @@
47
  * @since 2.0.2
48
  */
49
 
50
- define( 'MODULA_LITE_VERSION' , '2.4.0' );
51
  define( 'MODULA_PATH' , plugin_dir_path( __FILE__ ) );
52
  define( 'MODULA_URL' , plugin_dir_url( __FILE__ ) );
53
  defined( 'MODULA_PRO_STORE_URL' ) || define( 'MODULA_PRO_STORE_URL' , 'https://wp-modula.com' );
4
  * Plugin URI: https://wp-modula.com/
5
  * Description: Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks.
6
  * Author: WPChill
7
+ * Version: 2.4.1
8
+ * Author URI: https://www.wpchill.com/
9
  * License: GPLv3 or later
10
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
  * Requires PHP: 5.6
47
  * @since 2.0.2
48
  */
49
 
50
+ define( 'MODULA_LITE_VERSION' , '2.4.1' );
51
  define( 'MODULA_PATH' , plugin_dir_path( __FILE__ ) );
52
  define( 'MODULA_URL' , plugin_dir_url( __FILE__ ) );
53
  defined( 'MODULA_PRO_STORE_URL' ) || define( 'MODULA_PRO_STORE_URL' , 'https://wp-modula.com' );
assets/css/admin/addons.css CHANGED
@@ -2,6 +2,7 @@
2
  display: flex;
3
  justify-content: space-between;
4
  flex-wrap: wrap;
 
5
  }
6
  .modula-addon {
7
  width: 100%;
@@ -109,4 +110,22 @@
109
  }
110
  .about-wrap h2 {
111
  margin-top: 25px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  }
2
  display: flex;
3
  justify-content: space-between;
4
  flex-wrap: wrap;
5
+ padding-top:28px;
6
  }
7
  .modula-addon {
8
  width: 100%;
110
  }
111
  .about-wrap h2 {
112
  margin-top: 25px;
113
+ }
114
+
115
+ #modula-reload-extensions {
116
+ top: 2px;
117
+ position: relative;
118
+ margin-left: 7px;
119
+ font-weight:700;
120
+ }
121
+
122
+ #modula-reload-extensions > span {
123
+ vertical-align:middle;
124
+ margin-top:-4px;
125
+ margin-left:-2px;
126
+ margin-right:5px;
127
+ }
128
+
129
+ #modula-reload-extensions.updating-message > span {
130
+ display:none;
131
  }
assets/css/admin/modula-cpt.css CHANGED
@@ -1580,6 +1580,64 @@ Scaling Effect Preview
1580
  right:0;
1581
  }
1582
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1583
  /**
1584
  Some responsive fixes
1585
  */
@@ -1606,15 +1664,6 @@ Some responsive fixes
1606
  .modula-settings-container .modula-tabs .modula-tab > i {
1607
  margin:0;
1608
  }
1609
-
1610
- .modula-hover-preview-slider .slick-next {
1611
- right:0;
1612
- }
1613
-
1614
- .modula-hover-preview-slider .slick-prev {
1615
- left:0;
1616
- }
1617
-
1618
  }
1619
 
1620
  @media all and (min-width:850px) and (max-width:1300px){
1580
  right:0;
1581
  }
1582
 
1583
+ .post-type-modula-gallery #preview-action {
1584
+ display: none;
1585
+ }
1586
+
1587
+ .modula .nav-tab .modula-badge {
1588
+ padding: 5px;
1589
+ background: #52ad3a;
1590
+ color: #fff;
1591
+ margin-left: 5px;
1592
+ font-size: 10px;
1593
+ }
1594
+
1595
+ .modula-settings-upsell {
1596
+ max-width: 600px;
1597
+ padding: 15px;
1598
+ background: #fff;
1599
+ margin-top: 20px;
1600
+ }
1601
+
1602
+ .modula-settings-upsell a:first-child {
1603
+ margin-right: 10px;
1604
+ }
1605
+
1606
+ .modula-columns {
1607
+ display: flex;
1608
+ }
1609
+
1610
+ .modula-columns .m-col-8 {
1611
+ flex: 0 0 70%;
1612
+ max-width: 70%;
1613
+ }
1614
+
1615
+ .modula-columns .m-col-4 {
1616
+ flex: 0 0 30%;
1617
+ max-width: 30%;
1618
+ }
1619
+
1620
+ .modula-columns .modula-column {
1621
+ box-sizing: border-box;
1622
+ }
1623
+
1624
+ .modula-columns .modula-column + .modula-column {
1625
+ padding-left: 20px;
1626
+ }
1627
+
1628
+ .modula-side-tab .modula-upsell {
1629
+ padding: 15px;
1630
+ background: #fff;
1631
+ margin-top: 20px;
1632
+ }
1633
+
1634
+ .modula-side-tab .modula-upsell .modula-upsell-content {
1635
+ margin-bottom: 15px;
1636
+ }
1637
+ .modula-side-tab .modula-upsell h3 {
1638
+ margin-top: 0;
1639
+ }
1640
+
1641
  /**
1642
  Some responsive fixes
1643
  */
1664
  .modula-settings-container .modula-tabs .modula-tab > i {
1665
  margin:0;
1666
  }
 
 
 
 
 
 
 
 
 
1667
  }
1668
 
1669
  @media all and (min-width:850px) and (max-width:1300px){
assets/css/admin/slick-theme.css DELETED
@@ -1,194 +0,0 @@
1
- @charset 'UTF-8';
2
- /* Slider */
3
- /* Icons */
4
- /*
5
- * Using CSS instead of fonts
6
- */
7
-
8
- /* Arrows */
9
- .slick-prev,
10
- .slick-next
11
- {
12
- font-size: 0;
13
- line-height: 0;
14
-
15
- position: absolute;
16
- top: 50%;
17
-
18
- display: block;
19
-
20
- width: 20px;
21
- height: 20px;
22
- padding: 0;
23
- -webkit-transform: translate(0, -50%);
24
- -ms-transform: translate(0, -50%);
25
- transform: translate(0, -50%);
26
-
27
- cursor: pointer;
28
-
29
- color: transparent;
30
- border: none;
31
- outline: none;
32
- background: transparent;
33
- }
34
- .slick-prev:hover,
35
- .slick-prev:focus,
36
- .slick-next:hover,
37
- .slick-next:focus
38
- {
39
- color: transparent;
40
- outline: none;
41
- background: transparent;
42
- }
43
- .slick-prev:hover:before,
44
- .slick-prev:focus:before,
45
- .slick-next:hover:before,
46
- .slick-next:focus:before
47
- {
48
- opacity: 1;
49
- }
50
- .slick-prev.slick-disabled:before,
51
- .slick-next.slick-disabled:before
52
- {
53
- opacity: .25;
54
- }
55
-
56
- .slick-prev:before,
57
- .slick-next:before
58
- {
59
- font-family: 'slick';
60
- font-size: 20px;
61
- line-height: 1;
62
-
63
- opacity: .75;
64
- color: white;
65
-
66
- -webkit-font-smoothing: antialiased;
67
- -moz-osx-font-smoothing: grayscale;
68
- }
69
-
70
- .slick-prev
71
- {
72
- left: -25px;
73
- }
74
- [dir='rtl'] .slick-prev
75
- {
76
- right: -25px;
77
- left: auto;
78
- }
79
- .slick-prev:before
80
- {
81
- content: '←';
82
- }
83
- [dir='rtl'] .slick-prev:before
84
- {
85
- content: '→';
86
- }
87
-
88
- .slick-next
89
- {
90
- right: -25px;
91
- }
92
- [dir='rtl'] .slick-next
93
- {
94
- right: auto;
95
- left: -25px;
96
- }
97
- .slick-next:before
98
- {
99
- content: '→';
100
- }
101
- [dir='rtl'] .slick-next:before
102
- {
103
- content: '←';
104
- }
105
-
106
- /* Dots */
107
- .slick-dotted.slick-slider
108
- {
109
- margin-bottom: 30px;
110
- }
111
-
112
- .slick-dots
113
- {
114
- position: absolute;
115
- bottom: -25px;
116
-
117
- display: block;
118
-
119
- width: 100%;
120
- padding: 0;
121
- margin: 0;
122
-
123
- list-style: none;
124
-
125
- text-align: center;
126
- }
127
- .slick-dots li
128
- {
129
- position: relative;
130
-
131
- display: inline-block;
132
-
133
- width: 20px;
134
- height: 20px;
135
- margin: 0 5px;
136
- padding: 0;
137
-
138
- cursor: pointer;
139
- }
140
- .slick-dots li button
141
- {
142
- font-size: 0;
143
- line-height: 0;
144
-
145
- display: block;
146
-
147
- width: 20px;
148
- height: 20px;
149
- padding: 5px;
150
-
151
- cursor: pointer;
152
-
153
- color: transparent;
154
- border: 0;
155
- outline: none;
156
- background: transparent;
157
- }
158
- .slick-dots li button:hover,
159
- .slick-dots li button:focus
160
- {
161
- outline: none;
162
- }
163
- .slick-dots li button:hover:before,
164
- .slick-dots li button:focus:before
165
- {
166
- opacity: 1;
167
- }
168
- .slick-dots li button:before
169
- {
170
- font-family: 'slick';
171
- font-size: 6px;
172
- line-height: 20px;
173
-
174
- position: absolute;
175
- top: 0;
176
- left: 0;
177
-
178
- width: 20px;
179
- height: 20px;
180
-
181
- content: '•';
182
- text-align: center;
183
-
184
- opacity: .25;
185
- color: black;
186
-
187
- -webkit-font-smoothing: antialiased;
188
- -moz-osx-font-smoothing: grayscale;
189
- }
190
- .slick-dots li.slick-active button:before
191
- {
192
- opacity: .75;
193
- color: black;
194
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/admin/slick.css DELETED
@@ -1,119 +0,0 @@
1
- /* Slider */
2
- .slick-slider
3
- {
4
- position: relative;
5
-
6
- display: block;
7
- box-sizing: border-box;
8
-
9
- -webkit-user-select: none;
10
- -moz-user-select: none;
11
- -ms-user-select: none;
12
- user-select: none;
13
-
14
- -webkit-touch-callout: none;
15
- -khtml-user-select: none;
16
- -ms-touch-action: pan-y;
17
- touch-action: pan-y;
18
- -webkit-tap-highlight-color: transparent;
19
- }
20
-
21
- .slick-list
22
- {
23
- position: relative;
24
-
25
- display: block;
26
- overflow: hidden;
27
-
28
- margin: 0;
29
- padding: 0;
30
- }
31
- .slick-list:focus
32
- {
33
- outline: none;
34
- }
35
- .slick-list.dragging
36
- {
37
- cursor: pointer;
38
- cursor: hand;
39
- }
40
-
41
- .slick-slider .slick-track,
42
- .slick-slider .slick-list
43
- {
44
- -webkit-transform: translate3d(0, 0, 0);
45
- -moz-transform: translate3d(0, 0, 0);
46
- -ms-transform: translate3d(0, 0, 0);
47
- -o-transform: translate3d(0, 0, 0);
48
- transform: translate3d(0, 0, 0);
49
- }
50
-
51
- .slick-track
52
- {
53
- position: relative;
54
- top: 0;
55
- left: 0;
56
-
57
- display: block;
58
- margin-left: auto;
59
- margin-right: auto;
60
- }
61
- .slick-track:before,
62
- .slick-track:after
63
- {
64
- display: table;
65
-
66
- content: '';
67
- }
68
- .slick-track:after
69
- {
70
- clear: both;
71
- }
72
- .slick-loading .slick-track
73
- {
74
- visibility: hidden;
75
- }
76
-
77
- .slick-slide
78
- {
79
- display: none;
80
- float: left;
81
-
82
- height: 100%;
83
- min-height: 1px;
84
- }
85
- [dir='rtl'] .slick-slide
86
- {
87
- float: right;
88
- }
89
- .slick-slide img
90
- {
91
- display: block;
92
- }
93
- .slick-slide.slick-loading img
94
- {
95
- display: none;
96
- }
97
- .slick-slide.dragging img
98
- {
99
- pointer-events: none;
100
- }
101
- .slick-initialized .slick-slide
102
- {
103
- display: block;
104
- }
105
- .slick-loading .slick-slide
106
- {
107
- visibility: hidden;
108
- }
109
- .slick-vertical .slick-slide
110
- {
111
- display: block;
112
-
113
- height: auto;
114
-
115
- border: 1px solid transparent;
116
- }
117
- .slick-arrow.slick-hidden {
118
- display: none;
119
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/front.css CHANGED
@@ -1,2 +1,2 @@
1
  html body .compensate-for-scrollbar{overflow:hidden}html body .modula-fancybox-active{height:auto}html body .modula-fancybox-is-hidden{left:-9999px;margin:0;position:absolute!important;top:-9999px;visibility:hidden}html body .modula-fancybox-container{-webkit-backface-visibility:hidden;height:100%;left:0;outline:0;position:fixed;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:manipulation;touch-action:manipulation;transform:translateZ(0);width:100%;z-index:99992}html body .modula-fancybox-container *{box-sizing:border-box}html body .modula-fancybox-bg,html body .modula-fancybox-inner,html body .modula-fancybox-outer,html body .modula-fancybox-stage{bottom:0;left:0;position:absolute;right:0;top:0}html body .modula-fancybox-outer{-webkit-overflow-scrolling:touch;overflow-y:auto}html body .modula-fancybox-bg{background:#1e1e1e;opacity:0;transition-duration:inherit;transition-property:opacity;transition-timing-function:cubic-bezier(.47,0,.74,.71)}html body .modula-fancybox-is-open .modula-fancybox-bg{opacity:.9;transition-timing-function:cubic-bezier(.22,.61,.36,1)}html body .modula-fancybox-container .modula-fancybox-caption,html body .modula-fancybox-container .modula-fancybox-infobar,html body .modula-fancybox-container .modula-fancybox-navigation .modula-fancybox-button,html body .modula-fancybox-container .modula-fancybox-toolbar{direction:ltr;opacity:0;position:absolute;transition:opacity .25s ease,visibility 0s ease .25s;visibility:hidden;z-index:99997}html body .modula-fancybox-show-caption .modula-fancybox-caption,html body .modula-fancybox-show-infobar .modula-fancybox-infobar,html body .modula-fancybox-show-nav .modula-fancybox-navigation .modula-fancybox-button,html body .modula-fancybox-show-toolbar .modula-fancybox-toolbar{opacity:1;transition:opacity .25s ease 0s,visibility 0s ease 0s;visibility:visible}html body .modula-fancybox-container .modula-fancybox-infobar{color:#ccc;font-size:13px;-webkit-font-smoothing:subpixel-antialiased;height:44px;left:0;line-height:44px;min-width:44px;mix-blend-mode:difference;padding:0 10px;pointer-events:none;top:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html body .modula-fancybox-container .modula-fancybox-toolbar{right:0;top:0}html body .modula-fancybox-stage{direction:ltr;overflow:visible;transform:translateZ(0);z-index:99994}html body .modula-fancybox-is-open .modula-fancybox-stage{overflow:hidden}html body .modula-fancybox-slide{-webkit-backface-visibility:hidden;display:none;height:100%;left:0;outline:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:absolute;text-align:center;top:0;transition-property:transform,opacity;white-space:normal;width:100%;z-index:99994}html body .modula-fancybox-slide::before{content:'';display:inline-block;font-size:0;height:100%;vertical-align:middle;width:0}html body .modula-fancybox-is-sliding .modula-fancybox-slide,html body .modula-fancybox-slide--current,html body .modula-fancybox-slide--next,html body .modula-fancybox-slide--previous{display:block}html body .modula-fancybox-slide--image{overflow:hidden;padding:44px 0}html body .modula-fancybox-slide--image::before{display:none}html body .modula-fancybox-slide--html{padding:6px}html body .modula-fancybox-content{background:#fff;display:inline-block;margin:0;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:relative;text-align:left;vertical-align:middle}html body .modula-fancybox-slide--image .modula-fancybox-content{animation-timing-function:cubic-bezier(.5,0,.14,1);-webkit-backface-visibility:hidden;background:0 0;background-repeat:no-repeat;background-size:100% 100%;left:0;max-width:none;overflow:visible;padding:0;position:absolute;top:0;-ms-transform-origin:top left;transform-origin:top left;transition-property:transform,opacity;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:99995}html body .modula-fancybox-can-zoomOut .modula-fancybox-content{cursor:zoom-out}html body .modula-fancybox-can-zoomIn .modula-fancybox-content{cursor:zoom-in}html body .modula-fancybox-can-pan .modula-fancybox-content,html body .modula-fancybox-can-swipe .modula-fancybox-content{cursor:-webkit-grab;cursor:grab}html body .modula-fancybox-is-grabbing .modula-fancybox-content{cursor:-webkit-grabbing;cursor:grabbing}html body .modula-fancybox-container [data-selectable=true]{cursor:text}html body .modula-fancybox-image,html body .modula-fancybox-spaceball{background:0 0;border:0;height:100%;left:0;margin:0;max-height:none;max-width:none;padding:0;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}html body .modula-fancybox-spaceball{z-index:1}html body .modula-fancybox-slide--iframe .modula-fancybox-content,html body .modula-fancybox-slide--map .modula-fancybox-content,html body .modula-fancybox-slide--pdf .modula-fancybox-content,html body .modula-fancybox-slide--video .modula-fancybox-content{height:100%;overflow:visible;padding:0;width:100%}html body .modula-fancybox-slide--video .modula-fancybox-content{background:#000}html body .modula-fancybox-slide--map .modula-fancybox-content{background:#e5e3df}html body .modula-fancybox-slide--iframe .modula-fancybox-content{background:#fff}html body .modula-fancybox-iframe,html body .modula-fancybox-video{background:0 0;border:0;display:block;height:100%;margin:0;overflow:hidden;padding:0;width:100%}html body .modula-fancybox-iframe{left:0;position:absolute;top:0}html body .modula-fancybox-error{background:#fff;cursor:default;max-width:400px;padding:40px;width:100%}html body .modula-fancybox-error p{color:#444;font-size:16px;line-height:20px;margin:0;padding:0}html body .modula-fancybox-container .modula-fancybox-button{background:rgba(30,30,30,.6);border:0;border-radius:0;box-shadow:none;cursor:pointer;display:inline-block;height:44px;margin:0;padding:10px;position:relative;transition:color .2s;vertical-align:top;visibility:inherit;width:44px}html body .modula-fancybox-container .modula-fancybox-button,html body .modula-fancybox-container .modula-fancybox-button:link,html body .modula-fancybox-container .modula-fancybox-button:visited{color:#ccc}html body .modula-fancybox-container .modula-fancybox-button:hover{color:#fff;box-shadow:none}html body .modula-fancybox-container .modula-fancybox-button:focus{outline:0}html body .modula-fancybox-container .modula-fancybox-button.modula-fancybox-focus{outline:1px dotted}html body .modula-fancybox-container .modula-fancybox-button[disabled],html body .modula-fancybox-container .modula-fancybox-button[disabled]:hover{color:#888;cursor:default;outline:0}html body .modula-fancybox-container .modula-fancybox-button div{height:100%}html body .modula-fancybox-container .modula-fancybox-button svg{display:block;height:100%;overflow:visible;position:relative;width:100%}html body .modula-fancybox-container .modula-fancybox-button svg path{fill:currentColor;stroke-width:0}html body .modula-fancybox-container .modula-fancybox-button--fsenter svg:nth-child(2),html body .modula-fancybox-container .modula-fancybox-button--play svg:nth-child(2){display:none}html body .modula-fancybox-container .modula-fancybox-button--fsexit svg:nth-child(1),html body .modula-fancybox-container .modula-fancybox-button--pause svg:nth-child(1){display:none}html body .modula-fancybox-container .modula-fancybox-progress{background:#ff5268;height:2px;left:0;position:absolute;right:0;top:0;-ms-transform:scaleX(0);transform:scaleX(0);-ms-transform-origin:0;transform-origin:0;transition-property:transform;transition-timing-function:linear;z-index:99998}html body .modula-fancybox-container .modula-fancybox-close-small{background:0 0;border:0;border-radius:0;color:#ccc;cursor:pointer;opacity:.8;padding:8px;position:absolute;right:-12px;top:-44px;z-index:401}html body .modula-fancybox-container .modula-fancybox-close-small:hover{color:#fff;opacity:1}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-slide--html .modula-fancybox-close-small{color:#000;padding:10px;right:0;top:0;background-color:transparent}html body .modula-fancybox-slide--image.modula-fancybox-is-scaling .modula-fancybox-content{overflow:hidden}html body .modula-fancybox-is-scaling .modula-fancybox-close-small,html body .modula-fancybox-is-zoomable.modula-fancybox-can-pan .modula-fancybox-close-small{display:none}html body .modula-fancybox-navigation .modula-fancybox-button{background-clip:content-box;height:100px;opacity:0;position:absolute;top:calc(50% - 50px);width:70px}html body .modula-fancybox-navigation .modula-fancybox-button div{padding:7px}html body .modula-fancybox-navigation .modula-fancybox-button--arrow_left{left:0;left:env(safe-area-inset-left);padding:31px 26px 31px 6px}html body .modula-fancybox-navigation .modula-fancybox-button--arrow_right{padding:31px 6px 31px 26px;right:0;right:env(safe-area-inset-right)}html body .modula-fancybox-caption{background:linear-gradient(to top,rgba(0,0,0,.85) 0,rgba(0,0,0,.3) 50%,rgba(0,0,0,.15) 65%,rgba(0,0,0,.075) 75.5%,rgba(0,0,0,.037) 82.85%,rgba(0,0,0,.019) 88%,rgba(0,0,0,0) 100%);bottom:0;color:#eee;font-size:14px;font-weight:400;left:0;line-height:1.5;padding:75px 44px 25px 44px;pointer-events:none;right:0;text-align:center;z-index:99996}@supports (padding:max(0px)){html body .modula-fancybox-caption{padding:75px max(44px,env(safe-area-inset-right)) max(25px,env(safe-area-inset-bottom)) max(44px,env(safe-area-inset-left))}}html body .modula-fancybox-caption--separate{margin-top:-50px}html body .modula-fancybox-caption__body{max-height:50vh;overflow:auto;pointer-events:all}html body .modula-fancybox-caption a,html body .modula-fancybox-caption a:link,html body .modula-fancybox-caption a:visited{color:#ccc;text-decoration:none}html body .modula-fancybox-caption a:hover{color:#fff;text-decoration:underline}html body .modula-fancybox-loading{animation:fancybox-rotate 1s linear infinite;background:0 0;border:4px solid #888;border-bottom-color:#fff;border-radius:50%;height:50px;left:50%;margin:-25px 0 0 -25px;opacity:.7;padding:0;position:absolute;top:50%;width:50px;z-index:99999}@keyframes fancybox-rotate{100%{transform:rotate(360deg)}}html body .modula-fancybox-animated{transition-timing-function:cubic-bezier(0,0,.25,1)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--previous{opacity:0;transform:translate3d(-100%,0,0)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--next{opacity:0;transform:translate3d(100%,0,0)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--current{opacity:1;transform:translate3d(0,0,0)}html body .modula-fancybox-fx-fade.modula-fancybox-slide--next,html body .modula-fancybox-fx-fade.modula-fancybox-slide--previous{opacity:0;transition-timing-function:cubic-bezier(.19,1,.22,1)}html body .modula-fancybox-fx-fade.modula-fancybox-slide--current{opacity:1}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--previous{opacity:0;transform:scale3d(1.5,1.5,1.5)}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--next{opacity:0;transform:scale3d(.5,.5,.5)}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--current{opacity:1;transform:scale3d(1,1,1)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--previous{opacity:0;-ms-transform:rotate(-360deg);transform:rotate(-360deg)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--next{opacity:0;-ms-transform:rotate(360deg);transform:rotate(360deg)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--current{opacity:1;-ms-transform:rotate(0);transform:rotate(0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--previous{opacity:0;transform:scale3d(0,0,0) translate3d(-100%,0,0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--next{opacity:0;transform:scale3d(0,0,0) translate3d(100%,0,0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--current{opacity:1;transform:scale3d(1,1,1) translate3d(0,0,0)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--previous{transform:translate3d(-100%,0,0) scale(.1) skew(-10deg)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--next{transform:translate3d(100%,0,0) scale(.1) skew(10deg)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--current{transform:translate3d(0,0,0) scale(1)}@media all and (max-height:576px){html body .modula-fancybox-slide{padding-left:6px;padding-right:6px}html body .modula-fancybox-slide--image{padding:6px 0}html body .modula-fancybox-close-small{right:-6px}html body .modula-fancybox-slide--image .modula-fancybox-close-small{background:#4e4e4e;color:#f2f4f6;height:36px;opacity:1;padding:6px;right:0;top:0;width:36px}html body .modula-fancybox-caption{padding-left:12px;padding-right:12px}@supports (padding:max(0px)){html body .modula-fancybox-caption{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share{background:#f4f4f4;border-radius:3px;max-width:90%;padding:30px;text-align:center}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1{color:#222;font-size:35px;font-weight:700;margin:0 0 20px 0}.modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1:after,.modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1:before{display:none}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share p{margin:0;padding:0}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button{border:0;border-radius:3px;display:inline-block;font-size:14px;font-weight:700;line-height:40px;margin:0 5px 10px 5px;min-width:130px;padding:0 15px;text-decoration:none;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:link,html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:visited{color:#fff}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:hover{text-decoration:none}html body .modula-fancybox-share__button--fb{background:#3b5998}html body .modula-fancybox-share__button--fb:hover{background:#344e86}html body .modula-fancybox-share__button--pt{background:#bd081d}html body .modula-fancybox-share__button--pt:hover{background:#aa0719}html body .modula-fancybox-share__button--tw{background:#1da1f2}html body .modula-fancybox-share__button--tw:hover{background:#0d95e8}html body .modula-fancybox-share__button--email{background:#9c3}html body .modula-fancybox-share__button--email:hover{background:#7aa329}html body .modula-fancybox-share__button svg{height:25px;margin-right:7px;position:relative;top:-1px;vertical-align:middle;width:25px;display:inline-block}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button svg path{fill:#fff}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share .modula-fancybox-share__input{background:0 0;border:0;border-bottom:1px solid #d7d7d7;border-radius:0;color:#5d5b5b;font-size:14px;margin:10px 0 0 0;outline:0;padding:10px 15px;width:100%}html body .modula-fancybox-container .modula-fancybox-thumbs{background:#ddd;bottom:0;display:none;margin:0;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;padding:2px 2px 4px 2px;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;width:212px;z-index:99995}html body .modula-fancybox-thumbs-x{overflow-x:auto;overflow-y:hidden}html body .modula-fancybox-show-thumbs .modula-fancybox-thumbs{display:block}html body .modula-fancybox-show-thumbs .modula-fancybox-inner{right:212px}html body .modula-fancybox-thumbs__list{font-size:0;height:100%;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0;position:absolute;position:relative;white-space:nowrap;width:100%}html body .modula-fancybox-thumbs-x .modula-fancybox-thumbs__list{overflow:hidden}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar{width:7px}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar-track{background:#fff;border-radius:10px;box-shadow:inset 0 0 6px rgba(0,0,0,.3)}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:10px}html body .modula-fancybox-thumbs__list a{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,.1);background-position:center center;background-repeat:no-repeat;background-size:cover;cursor:pointer;float:left;height:75px;margin:2px;max-height:calc(100% - 8px);max-width:calc(50% - 4px);outline:0;overflow:hidden;padding:0;position:relative;-webkit-tap-highlight-color:transparent;width:100px}html body .modula-fancybox-thumbs__list a::before{border:6px solid #ff5268;bottom:0;content:'';left:0;opacity:0;position:absolute;right:0;top:0;transition:all .2s cubic-bezier(.25,.46,.45,.94);z-index:99991}html body .modula-fancybox-thumbs__list a:focus::before{opacity:.5}html body .modula-fancybox-thumbs__list a.modula-fancybox-thumbs-active::before{opacity:1}@media all and (max-width:576px){html body .modula-fancybox-thumbs{width:110px}html body .modula-fancybox-show-thumbs .modula-fancybox-inner{right:110px}html body .modula-fancybox-thumbs__list a{max-width:calc(100% - 10px)}}
2
- html body .modula .modula-items .modula-item{position:absolute;overflow:hidden;box-sizing:border-box}html body .modula .modula-items .modula-item .modula-item-content{transition:transform .3s ease-out,opacity .2s linear,top .3s,left .6s;opacity:0}html body .modula .modula-items{position:relative;z-index:1;min-height:10px}html body .modula .modula-items .modula-item .modula-item-content>a{display:block;position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;background:0 0}html body .modula.modula-creative-gallery .modula-items .modula-item .modula-item-content,html body .modula.modula-custom-grid .modula-items .modula-item .modula-item-content{height:100%}html body .modula .modula-items .modula-item .jtg-social{z-index:10;font-size:0}html body .modula.modula-columns:not(.modula-loaded-scale) .modula-items .modula-item .modula-item-content,html body .modula:not(.modula-loaded-scale) .modula-items .modula-item.tg-loaded .modula-item-content,html body .modula:not(.modula-loaded-scale) .modula-items.justified-gallery .modula-item .modula-item-content{transform:scale(1) translate(0,0) rotate(0)!important;opacity:1}html body .modula .modula-items .modula-item img.pic{font-size:12px;position:absolute;max-width:999em;transition:width .3s,height .3s,transform .3s linear,opacity .2s linear}html body .modula.modula-columns .modula-items .modula-item img.pic{position:relative;max-width:100%;margin:0 auto}html body .modula .modula-items .modula-item.tg-loaded img.pic,html body .modula.modula-columns .modula-items .modula-item img.pic{display:block;opacity:1}html body .modula .modula-items .modula-item img.pic.lazyload,html body .modula .modula-items .modula-item img.pic.lazyloaded{display:block}html body .modula .modula-items .modula-item .caption .icon{font-size:14px;position:absolute;left:50%;top:50%;margin:-12px 0 0 -8px}html body .modula .modula-items .modula-item .figc{color:#fff;text-align:center;position:absolute;left:0;width:100%;padding:0;max-width:100%}html body .modula .modula-items .hidden .figc{display:none}html body .modula .modula-items .hidden:hover .figc{display:block}html body .modula .modula-items .visible .figc{display:block}html body .modula .modula-items .always-visible .figc{display:block}html body .modula .modula-items .visible:hover .figc{display:none}html body .modula .modula-items .caption span.text{display:block;padding:10px}html body .modula .modula-items .caption span.title{font-size:14px;font-weight:700}html body .modula .filters{margin:20px 0 20px 0}html body .modula .filters.vertical-filters{margin-top:0;width:20%;float:left}html body .modula .filters a{text-decoration:none;display:inline-block;color:#333;outline:0;transition:350ms ease-in}html body .modula .filters.menu--dfefault a{border-bottom:2px solid transparent}html body .modula .filters.colored a{border:0;color:#fff}html body .modula .filters:not(.styled-menu) a.selected,html body .modula .filters:not(.styled-menu) a:hover{border-bottom-color:#333;border-bottom:1px solid}html body .modula.vertical-filters .modula-items{width:80%;float:left}html body .modula:after{content:"";display:block;clear:both}html body .modula.vertical-filters .filters{width:20%;float:left}html body .modula .filters.vertical-filters.both-vertical+.modula-items{width:60%;float:left}html body .modula .filters.vertical-filters a{display:block;margin-bottom:15px}html body .modula .filters.vertical-filters.colored a{border-radius:5px;text-align:center;background:#fff;border:1px solid #3498db;color:#3498db}html body .modula .filters.vertical-filters.colored a.selected,html body .modula .filters.vertical-filters.colored a:hover{background:#fff;color:#8e44ad;border-color:#8e44ad}html body .modula .filters.horizontal-filters.colored a{display:inline-block;padding:0 30px;margin-right:2px;background:#3498db;position:relative;border:0}html body .modula .filters.horizontal-filters.colored a.selected,html body .modula .filters.horizontal-filters.colored a:hover{background:#8e44ad}html body .modula .filters.horizontal-filters.colored a:before{position:absolute;content:'';left:0;top:0;width:0;height:0;border:none;border-bottom-color:currentcolor;border-bottom-style:none;border-bottom-width:medium;border-left-color:currentcolor;border-left-style:none;border-left-width:medium;border-left:solid 17px #fff;border-bottom:solid 41px transparent;z-index:1;transition:.4s}html body .modula .filters.horizontal-filters.colored a:after{position:absolute;content:'';right:0;top:0;width:0;height:0;border:none;border-bottom-color:currentcolor;border-bottom-style:none;border-bottom-width:medium;border-left-color:currentcolor;border-left-style:none;border-left-width:medium;border-left:solid 17px transparent;border-bottom:solid 41px #fff;z-index:1;transition:.4s}html body .filter-by-wrapper{text-align:center;margin-bottom:25px;text-transform:uppercase}html body .filter-by-wrapper span{cursor:pointer}html body .filter-by-wrapper span:after{content:"";margin-left:15px;width:0;height:0;border-style:solid;border-width:15px 10px 0 10px;border-color:#0470e3 transparent transparent transparent;display:inline-block}html body .filter-by-wrapper.opened span:after{content:"";width:0;height:0;border-style:solid;border-width:0 10px 15px 10px;border-color:transparent transparent #d500ff transparent;display:inline-block}html body .modula .filters.vertical-filters a{margin-bottom:0}html body .menu__list li.menu__item{margin:15px}@media all and (min-width:1025px){html body .filter-by-wrapper{display:none!important}html body .modula-gallery .filters{display:block!important}}@media all and (max-width:1024px){html body .modula .filters.vertical-filters.both-vertical+.modula-items,html body .modula.vertical-filters .filters,html body .modula.vertical-filters .modula-items{width:100%!important;float:none}html body .menu__list{padding:0}html body .menu__list li.menu__item{margin:0}}html body .modula .jtg-social a{box-shadow:none}html body .modula .jtg-social svg{width:20px;height:16px}html body .modula .modula-items .modula-item .jtg-title{margin:0}html body .modula .modula-items .modula-item p{margin:0;padding:0}html body .modula .figc{color:#000;text-align:center;position:absolute;left:0;width:100%;padding:2em}html body .modula .modula-item .jtg-social a{text-decoration:none;color:#fff;display:inline-block;margin:0 10px 0 0;padding:0;border:0;opacity:0;transition:opacity .3s}html body .modula .modula-item:hover .jtg-social a{opacity:1}html body .modula .modula-items .jtg-social{opacity:0;transition:opacity .1s;right:30px;position:absolute;bottom:20px;text-align:right;transition:all .3s}html body .modula .modula-items .jtg-social{opacity:1}html body .modula .modula-items .jtg-social a:last-of-type{margin-right:0}html body .modula .modula-item.effect-pufrobo p.description{margin-bottom:2em}html body .modula .modula-item.effect-pufrobo .figc{text-align:right}html body .modula .modula-item.effect-pufrobo .jtg-title,html body .modula .modula-item.effect-pufrobo p{position:absolute;right:30px;left:30px;padding:10px 0}html body .modula .modula-item:hover img,html body .modula .modula-items .modula-item.tg-loaded:hover img.pic{opacity:.8}html body .modula .modula-item.effect-pufrobo p{bottom:20%;line-height:1.5;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);letter-spacing:1px}html body .modula .modula-item.effect-pufrobo .jtg-title{top:10%;-webkit-transition:-webkit-transform .35s;transition:transform .35s;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}html body .modula .modula-item.effect-pufrobo:hover .jtg-title{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}html body .modula .modula-item.effect-pufrobo .jtg-title::after{position:absolute;top:80%;left:0;width:100%;height:4px;background:#fff;content:'';-webkit-transform:translate3d(0,40px,0);transform:translate3d(0,40px,0)}html body .modula .modula-item.effect-pufrobo .jtg-title::after,html body .modula .modula-item.effect-pufrobo p{opacity:0;-webkit-transition:opacity .35s,-webkit-transform .35s;transition:opacity .35s,transform .35s}html body .modula .modula-item.effect-pufrobo:hover .jtg-title::after,html body .modula .modula-item.effect-pufrobo:hover p{margin-top:10px;margin-bottom:5px;opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}html body .modula .modula-items .modula-item.effect-pufrobo .figc.no-title.no-description .jtg-title:after{display:none}html body .modula .modula-items .modula-item.effect-appear .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-comodo .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-crafty .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-curtain .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-fluid-up .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-hide .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-lens .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-pufrobo .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-quiet .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-reflex .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-seemo .figc .jtg-title:before{display:none}html body .modula .modula-items .modula-item>a{cursor:zoom-in}html body .modula-fancybox-container.modula-fancybox-is-open{z-index:99999999}html body .modula-fancybox-share__button--li{background:#0e76a8}html body .modula-fancybox-share__button--wa{background:#25d366}html body .modula.modula-columns .modula-item{display:flex;justify-content:center}html body .modula.modula-columns .modula-item .modula-item-content{position:relative}html body .modula.modula-columns .modula-items.grid-gallery .modula-item .modula-item-content{height:100%}html body .modula.modula-columns .modula-items.grid-gallery.justified-gallery .modula-item .modula-item-content{width:100%}html body .modula.modula-columns .modula-items.grid-gallery.justified-gallery .modula-item .modula-item-content .pic{position:absolute;top:50%;left:50%;margin:0;padding:0;border:none}html body .modula.modula-columns .modula-item.jg-filtered{display:none}html body .modula-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}html body .modula-row-cols-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}@media (min-width:576px){html body .modula-row-cols-sm-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-sm-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-sm-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-sm-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-sm-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-sm-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:768px){html body .modula-row-cols-md-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-md-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-md-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-md-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-md-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-md-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:992px){html body .modula-row-cols-lg-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-lg-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-lg-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-lg-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-lg-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-lg-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:1200px){html body .modula-row-cols-xl-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-xl-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-xl-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-xl-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-xl-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-xl-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}html body .modula .modula-items.grid-gallery .modula-item .figc{height:100%;top:0}html body div.modula-powered{text-align:right;font-size:14px;margin-right:5px}html body div.modula-powered svg.modula-logo{width:14px;position:relative;top:3px}html body div.modula-powered svg.modula-logo path{color:#58ab7e!important}html body div.modula-powered svg.modula-logo{display:inline-block}
1
  html body .compensate-for-scrollbar{overflow:hidden}html body .modula-fancybox-active{height:auto}html body .modula-fancybox-is-hidden{left:-9999px;margin:0;position:absolute!important;top:-9999px;visibility:hidden}html body .modula-fancybox-container{-webkit-backface-visibility:hidden;height:100%;left:0;outline:0;position:fixed;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:manipulation;touch-action:manipulation;transform:translateZ(0);width:100%;z-index:99992}html body .modula-fancybox-container *{box-sizing:border-box}html body .modula-fancybox-bg,html body .modula-fancybox-inner,html body .modula-fancybox-outer,html body .modula-fancybox-stage{bottom:0;left:0;position:absolute;right:0;top:0}html body .modula-fancybox-outer{-webkit-overflow-scrolling:touch;overflow-y:auto}html body .modula-fancybox-bg{background:#1e1e1e;opacity:0;transition-duration:inherit;transition-property:opacity;transition-timing-function:cubic-bezier(.47,0,.74,.71)}html body .modula-fancybox-is-open .modula-fancybox-bg{opacity:.9;transition-timing-function:cubic-bezier(.22,.61,.36,1)}html body .modula-fancybox-container .modula-fancybox-caption,html body .modula-fancybox-container .modula-fancybox-infobar,html body .modula-fancybox-container .modula-fancybox-navigation .modula-fancybox-button,html body .modula-fancybox-container .modula-fancybox-toolbar{direction:ltr;opacity:0;position:absolute;transition:opacity .25s ease,visibility 0s ease .25s;visibility:hidden;z-index:99997}html body .modula-fancybox-show-caption .modula-fancybox-caption,html body .modula-fancybox-show-infobar .modula-fancybox-infobar,html body .modula-fancybox-show-nav .modula-fancybox-navigation .modula-fancybox-button,html body .modula-fancybox-show-toolbar .modula-fancybox-toolbar{opacity:1;transition:opacity .25s ease 0s,visibility 0s ease 0s;visibility:visible}html body .modula-fancybox-container .modula-fancybox-infobar{color:#ccc;font-size:13px;-webkit-font-smoothing:subpixel-antialiased;height:44px;left:0;line-height:44px;min-width:44px;mix-blend-mode:difference;padding:0 10px;pointer-events:none;top:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html body .modula-fancybox-container .modula-fancybox-toolbar{right:0;top:0}html body .modula-fancybox-stage{direction:ltr;overflow:visible;transform:translateZ(0);z-index:99994}html body .modula-fancybox-is-open .modula-fancybox-stage{overflow:hidden}html body .modula-fancybox-slide{-webkit-backface-visibility:hidden;display:none;height:100%;left:0;outline:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:absolute;text-align:center;top:0;transition-property:transform,opacity;white-space:normal;width:100%;z-index:99994}html body .modula-fancybox-slide::before{content:'';display:inline-block;font-size:0;height:100%;vertical-align:middle;width:0}html body .modula-fancybox-is-sliding .modula-fancybox-slide,html body .modula-fancybox-slide--current,html body .modula-fancybox-slide--next,html body .modula-fancybox-slide--previous{display:block}html body .modula-fancybox-slide--image{overflow:hidden;padding:44px 0}html body .modula-fancybox-slide--image::before{display:none}html body .modula-fancybox-slide--html{padding:6px}html body .modula-fancybox-content{background:#fff;display:inline-block;margin:0;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:relative;text-align:left;vertical-align:middle}html body .modula-fancybox-slide--image .modula-fancybox-content{animation-timing-function:cubic-bezier(.5,0,.14,1);-webkit-backface-visibility:hidden;background:0 0;background-repeat:no-repeat;background-size:100% 100%;left:0;max-width:none;overflow:visible;padding:0;position:absolute;top:0;-ms-transform-origin:top left;transform-origin:top left;transition-property:transform,opacity;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:99995}html body .modula-fancybox-can-zoomOut .modula-fancybox-content{cursor:zoom-out}html body .modula-fancybox-can-zoomIn .modula-fancybox-content{cursor:zoom-in}html body .modula-fancybox-can-pan .modula-fancybox-content,html body .modula-fancybox-can-swipe .modula-fancybox-content{cursor:-webkit-grab;cursor:grab}html body .modula-fancybox-is-grabbing .modula-fancybox-content{cursor:-webkit-grabbing;cursor:grabbing}html body .modula-fancybox-container [data-selectable=true]{cursor:text}html body .modula-fancybox-image,html body .modula-fancybox-spaceball{background:0 0;border:0;height:100%;left:0;margin:0;max-height:none;max-width:none;padding:0;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}html body .modula-fancybox-spaceball{z-index:1}html body .modula-fancybox-slide--iframe .modula-fancybox-content,html body .modula-fancybox-slide--map .modula-fancybox-content,html body .modula-fancybox-slide--pdf .modula-fancybox-content,html body .modula-fancybox-slide--video .modula-fancybox-content{height:100%;overflow:visible;padding:0;width:100%}html body .modula-fancybox-slide--video .modula-fancybox-content{background:#000}html body .modula-fancybox-slide--map .modula-fancybox-content{background:#e5e3df}html body .modula-fancybox-slide--iframe .modula-fancybox-content{background:#fff}html body .modula-fancybox-iframe,html body .modula-fancybox-video{background:0 0;border:0;display:block;height:100%;margin:0;overflow:hidden;padding:0;width:100%}html body .modula-fancybox-iframe{left:0;position:absolute;top:0}html body .modula-fancybox-error{background:#fff;cursor:default;max-width:400px;padding:40px;width:100%}html body .modula-fancybox-error p{color:#444;font-size:16px;line-height:20px;margin:0;padding:0}html body .modula-fancybox-container .modula-fancybox-button{background:rgba(30,30,30,.6);border:0;border-radius:0;box-shadow:none;cursor:pointer;display:inline-block;height:44px;margin:0;padding:10px;position:relative;transition:color .2s;vertical-align:top;visibility:inherit;width:44px}html body .modula-fancybox-container .modula-fancybox-button,html body .modula-fancybox-container .modula-fancybox-button:link,html body .modula-fancybox-container .modula-fancybox-button:visited{color:#ccc}html body .modula-fancybox-container .modula-fancybox-button:hover{color:#fff;box-shadow:none}html body .modula-fancybox-container .modula-fancybox-button:focus{outline:0}html body .modula-fancybox-container .modula-fancybox-button.modula-fancybox-focus{outline:1px dotted}html body .modula-fancybox-container .modula-fancybox-button[disabled],html body .modula-fancybox-container .modula-fancybox-button[disabled]:hover{color:#888;cursor:default;outline:0}html body .modula-fancybox-container .modula-fancybox-button div{height:100%}html body .modula-fancybox-container .modula-fancybox-button svg{display:block;height:100%;overflow:visible;position:relative;width:100%}html body .modula-fancybox-container .modula-fancybox-button svg path{fill:currentColor;stroke-width:0}html body .modula-fancybox-container .modula-fancybox-button--fsenter svg:nth-child(2),html body .modula-fancybox-container .modula-fancybox-button--play svg:nth-child(2){display:none}html body .modula-fancybox-container .modula-fancybox-button--fsexit svg:nth-child(1),html body .modula-fancybox-container .modula-fancybox-button--pause svg:nth-child(1){display:none}html body .modula-fancybox-container .modula-fancybox-progress{background:#ff5268;height:2px;left:0;position:absolute;right:0;top:0;-ms-transform:scaleX(0);transform:scaleX(0);-ms-transform-origin:0;transform-origin:0;transition-property:transform;transition-timing-function:linear;z-index:99998}html body .modula-fancybox-container .modula-fancybox-close-small{background:0 0;border:0;border-radius:0;color:#ccc;cursor:pointer;opacity:.8;padding:8px;position:absolute;right:-12px;top:-44px;z-index:401}html body .modula-fancybox-container .modula-fancybox-close-small:hover{color:#fff;opacity:1}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-slide--html .modula-fancybox-close-small{color:#000;padding:10px;right:0;top:0;background-color:transparent}html body .modula-fancybox-slide--image.modula-fancybox-is-scaling .modula-fancybox-content{overflow:hidden}html body .modula-fancybox-is-scaling .modula-fancybox-close-small,html body .modula-fancybox-is-zoomable.modula-fancybox-can-pan .modula-fancybox-close-small{display:none}html body .modula-fancybox-navigation .modula-fancybox-button{background-clip:content-box;height:100px;opacity:0;position:absolute;top:calc(50% - 50px);width:70px}html body .modula-fancybox-navigation .modula-fancybox-button div{padding:7px}html body .modula-fancybox-navigation .modula-fancybox-button--arrow_left{left:0;left:env(safe-area-inset-left);padding:31px 26px 31px 6px}html body .modula-fancybox-navigation .modula-fancybox-button--arrow_right{padding:31px 6px 31px 26px;right:0;right:env(safe-area-inset-right)}html body .modula-fancybox-caption{background:linear-gradient(to top,rgba(0,0,0,.85) 0,rgba(0,0,0,.3) 50%,rgba(0,0,0,.15) 65%,rgba(0,0,0,.075) 75.5%,rgba(0,0,0,.037) 82.85%,rgba(0,0,0,.019) 88%,rgba(0,0,0,0) 100%);bottom:0;color:#eee;font-size:14px;font-weight:400;left:0;line-height:1.5;padding:75px 44px 25px 44px;pointer-events:none;right:0;text-align:center;z-index:99996}@supports (padding:max(0px)){html body .modula-fancybox-caption{padding:75px max(44px,env(safe-area-inset-right)) max(25px,env(safe-area-inset-bottom)) max(44px,env(safe-area-inset-left))}}html body .modula-fancybox-caption--separate{margin-top:-50px}html body .modula-fancybox-caption__body{max-height:50vh;overflow:auto;pointer-events:all}html body .modula-fancybox-caption a,html body .modula-fancybox-caption a:link,html body .modula-fancybox-caption a:visited{color:#ccc;text-decoration:none}html body .modula-fancybox-caption a:hover{color:#fff;text-decoration:underline}html body .modula-fancybox-loading{animation:fancybox-rotate 1s linear infinite;background:0 0;border:4px solid #888;border-bottom-color:#fff;border-radius:50%;height:50px;left:50%;margin:-25px 0 0 -25px;opacity:.7;padding:0;position:absolute;top:50%;width:50px;z-index:99999}@keyframes fancybox-rotate{100%{transform:rotate(360deg)}}html body .modula-fancybox-animated{transition-timing-function:cubic-bezier(0,0,.25,1)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--previous{opacity:0;transform:translate3d(-100%,0,0)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--next{opacity:0;transform:translate3d(100%,0,0)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--current{opacity:1;transform:translate3d(0,0,0)}html body .modula-fancybox-fx-fade.modula-fancybox-slide--next,html body .modula-fancybox-fx-fade.modula-fancybox-slide--previous{opacity:0;transition-timing-function:cubic-bezier(.19,1,.22,1)}html body .modula-fancybox-fx-fade.modula-fancybox-slide--current{opacity:1}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--previous{opacity:0;transform:scale3d(1.5,1.5,1.5)}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--next{opacity:0;transform:scale3d(.5,.5,.5)}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--current{opacity:1;transform:scale3d(1,1,1)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--previous{opacity:0;-ms-transform:rotate(-360deg);transform:rotate(-360deg)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--next{opacity:0;-ms-transform:rotate(360deg);transform:rotate(360deg)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--current{opacity:1;-ms-transform:rotate(0);transform:rotate(0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--previous{opacity:0;transform:scale3d(0,0,0) translate3d(-100%,0,0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--next{opacity:0;transform:scale3d(0,0,0) translate3d(100%,0,0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--current{opacity:1;transform:scale3d(1,1,1) translate3d(0,0,0)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--previous{transform:translate3d(-100%,0,0) scale(.1) skew(-10deg)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--next{transform:translate3d(100%,0,0) scale(.1) skew(10deg)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--current{transform:translate3d(0,0,0) scale(1)}@media all and (max-height:576px){html body .modula-fancybox-slide{padding-left:6px;padding-right:6px}html body .modula-fancybox-slide--image{padding:6px 0}html body .modula-fancybox-close-small{right:-6px}html body .modula-fancybox-slide--image .modula-fancybox-close-small{background:#4e4e4e;color:#f2f4f6;height:36px;opacity:1;padding:6px;right:0;top:0;width:36px}html body .modula-fancybox-caption{padding-left:12px;padding-right:12px}@supports (padding:max(0px)){html body .modula-fancybox-caption{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share{background:#f4f4f4;border-radius:3px;max-width:90%;padding:30px;text-align:center}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1{color:#222;font-size:35px;font-weight:700;margin:0 0 20px 0}.modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1:after,.modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1:before{display:none}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share p{margin:0;padding:0}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button{border:0;border-radius:3px;display:inline-block;font-size:14px;font-weight:700;line-height:40px;margin:0 5px 10px 5px;min-width:130px;padding:0 15px;text-decoration:none;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:link,html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:visited{color:#fff}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:hover{text-decoration:none}html body .modula-fancybox-share__button--fb{background:#3b5998}html body .modula-fancybox-share__button--fb:hover{background:#344e86}html body .modula-fancybox-share__button--pt{background:#bd081d}html body .modula-fancybox-share__button--pt:hover{background:#aa0719}html body .modula-fancybox-share__button--tw{background:#1da1f2}html body .modula-fancybox-share__button--tw:hover{background:#0d95e8}html body .modula-fancybox-share__button--email{background:#9c3}html body .modula-fancybox-share__button--email:hover{background:#7aa329}html body .modula-fancybox-share__button svg{height:25px;margin-right:7px;position:relative;top:-1px;vertical-align:middle;width:25px;display:inline-block}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button svg path{fill:#fff}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share .modula-fancybox-share__input{background:0 0;border:0;border-bottom:1px solid #d7d7d7;border-radius:0;color:#5d5b5b;font-size:14px;margin:10px 0 0 0;outline:0;padding:10px 15px;width:100%}html body .modula-fancybox-container .modula-fancybox-thumbs{background:#ddd;bottom:0;display:none;margin:0;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;padding:2px 2px 4px 2px;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;width:212px;z-index:99995}html body .modula-fancybox-thumbs-x{overflow-x:auto;overflow-y:hidden}html body .modula-fancybox-show-thumbs .modula-fancybox-thumbs{display:block}html body .modula-fancybox-show-thumbs .modula-fancybox-inner{right:212px}html body .modula-fancybox-thumbs__list{font-size:0;height:100%;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0;position:absolute;position:relative;white-space:nowrap;width:100%}html body .modula-fancybox-thumbs-x .modula-fancybox-thumbs__list{overflow:hidden}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar{width:7px}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar-track{background:#fff;border-radius:10px;box-shadow:inset 0 0 6px rgba(0,0,0,.3)}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:10px}html body .modula-fancybox-thumbs__list a{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,.1);background-position:center center;background-repeat:no-repeat;background-size:cover;cursor:pointer;float:left;height:75px;margin:2px;max-height:calc(100% - 8px);max-width:calc(50% - 4px);outline:0;overflow:hidden;padding:0;position:relative;-webkit-tap-highlight-color:transparent;width:100px}html body .modula-fancybox-thumbs__list a::before{border:6px solid #ff5268;bottom:0;content:'';left:0;opacity:0;position:absolute;right:0;top:0;transition:all .2s cubic-bezier(.25,.46,.45,.94);z-index:99991}html body .modula-fancybox-thumbs__list a:focus::before{opacity:.5}html body .modula-fancybox-thumbs__list a.modula-fancybox-thumbs-active::before{opacity:1}@media all and (max-width:576px){html body .modula-fancybox-thumbs{width:110px}html body .modula-fancybox-show-thumbs .modula-fancybox-inner{right:110px}html body .modula-fancybox-thumbs__list a{max-width:calc(100% - 10px)}}
2
+ html body .modula .modula-items .modula-item{position:absolute;overflow:hidden;box-sizing:border-box}html body .modula .modula-items .modula-item .modula-item-content{transition:transform .3s ease-out,opacity .2s linear,top .3s,left .6s;opacity:0}html body .modula .modula-items{position:relative;z-index:1;min-height:10px}html body .modula .modula-items .modula-item .modula-item-content>a{display:block;position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;background:0 0}html body .modula.modula-creative-gallery .modula-items .modula-item .modula-item-content,html body .modula.modula-custom-grid .modula-items .modula-item .modula-item-content{height:100%}html body .modula .modula-items .modula-item .jtg-social{z-index:10;font-size:0}html body .modula.modula-columns:not(.modula-loaded-scale) .modula-items .modula-item .modula-item-content,html body .modula:not(.modula-loaded-scale) .modula-items .modula-item.tg-loaded .modula-item-content,html body .modula:not(.modula-loaded-scale) .modula-items.justified-gallery .modula-item .modula-item-content{transform:scale(1) translate(0,0) rotate(0)!important;opacity:1}html body .modula .modula-items .modula-item img.pic{font-size:12px;position:absolute;max-width:999em;transition:width .3s,height .3s,transform .3s linear,opacity .2s linear}html body .modula.modula-columns .modula-items .modula-item img.pic{position:relative;max-width:100%;margin:0 auto}html body .modula .modula-items .modula-item.tg-loaded img.pic,html body .modula.modula-columns .modula-items .modula-item img.pic{display:block;opacity:1}html body .modula .modula-items .modula-item img.pic.lazyload,html body .modula .modula-items .modula-item img.pic.lazyloaded{display:block}html body .modula .modula-items .modula-item .caption .icon{font-size:14px;position:absolute;left:50%;top:50%;margin:-12px 0 0 -8px}html body .modula .modula-items .modula-item .figc{color:#fff;text-align:center;position:absolute;left:0;width:100%;padding:0;max-width:100%}html body .modula .modula-items .hidden .figc{display:none}html body .modula .modula-items .hidden:hover .figc{display:block}html body .modula .modula-items .visible .figc{display:block}html body .modula .modula-items .always-visible .figc{display:block}html body .modula .modula-items .visible:hover .figc{display:none}html body .modula .modula-items .caption span.text{display:block;padding:10px}html body .modula .modula-items .caption span.title{font-size:14px;font-weight:700}html body .modula .jtg-social a{box-shadow:none}html body .modula .jtg-social svg{width:20px;height:16px}html body .modula .modula-items .modula-item .jtg-title{margin:0}html body .modula .modula-items .modula-item p{margin:0;padding:0}html body .modula .figc{color:#000;text-align:center;position:absolute;left:0;width:100%;padding:2em}html body .modula .modula-item .jtg-social a{text-decoration:none;color:#fff;display:inline-block;margin:0 10px 0 0;padding:0;border:0;opacity:0;transition:opacity .3s}html body .modula .modula-item:hover .jtg-social a{opacity:1}html body .modula .modula-items .jtg-social{opacity:0;right:30px;position:absolute;bottom:20px;text-align:right;transition:all .3s}html body .et_pb_module_inner .modula .modula-items .jtg-social{transition:all .3s!important}html body .modula .modula-items .modula-item.effect-pufrobo .jtg-social a{margin-right:10px}@media all and (max-width:480px){html body .modula .modula-items .modula-item.effect-pufrobo .jtg-social{right:0;width:100%;text-align:center}html body .modula .modula-items .modula-item.effect-pufrobo .jtg-social a{padding:5px}}html body .modula .modula-items .jtg-social{opacity:1}html body .modula .modula-items .jtg-social a:last-of-type{margin-right:0}html body .modula .modula-item.effect-pufrobo p.description{margin-bottom:2em}html body .et_pb_module_inner .modula .modula-item.effect-pufrobo p.description{-webkit-transition:-webkit-transform .35s!important;transition:transform .35s!important}html body .modula .modula-item.effect-pufrobo .figc{text-align:right}html body .modula .modula-item.effect-pufrobo .jtg-title,html body .modula .modula-item.effect-pufrobo p{position:absolute;right:30px;left:30px;padding:10px 0}html body .modula .modula-item:hover img,html body .modula .modula-items .modula-item.tg-loaded:hover img.pic{opacity:.8}html body .modula .modula-item.effect-pufrobo p{bottom:20%;line-height:1.5;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);letter-spacing:1px}html body .modula .modula-items .modula-item.effect-pufrobo .jtg-title{top:10%;-webkit-transition:-webkit-transform .35s;transition:transform .35s;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}html body .et_pb_module_inner .modula .modula-items .modula-item.effect-pufrobo .jtg-title{-webkit-transition:-webkit-transform .35s!important;transition:transform .35s!important}html body .modula .modula-item.effect-pufrobo:hover .jtg-title{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}html body .modula .modula-item.effect-pufrobo .jtg-title::after{position:absolute;top:80%;left:0;width:100%;height:4px;background:#fff;content:'';-webkit-transform:translate3d(0,40px,0);transform:translate3d(0,40px,0)}html body .modula .modula-item.effect-pufrobo .jtg-title::after,html body .modula .modula-item.effect-pufrobo p{opacity:0;-webkit-transition:opacity .35s,-webkit-transform .35s;transition:opacity .35s,transform .35s}html body .modula .modula-item.effect-pufrobo:hover .jtg-title::after,html body .modula .modula-item.effect-pufrobo:hover p{margin-top:10px;margin-bottom:5px;opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}html body .modula .modula-items .modula-item.effect-pufrobo .figc.no-title.no-description .jtg-title:after{display:none}html body .modula .modula-items .modula-item.effect-appear .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-comodo .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-crafty .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-curtain .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-fluid-up .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-hide .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-lens .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-pufrobo .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-quiet .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-reflex .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-seemo .figc .jtg-title:before{display:none}html body .modula .modula-items .modula-item>a{cursor:zoom-in}html body .modula-fancybox-container.modula-fancybox-is-open{z-index:99999999}html body .modula-fancybox-share__button--li{background:#0e76a8}html body .modula-fancybox-share__button--wa{background:#25d366}html body .modula.modula-columns .modula-item{display:flex;justify-content:center}html body .modula.modula-columns .modula-item .modula-item-content{position:relative}html body .modula.modula-columns .modula-items.grid-gallery .modula-item .modula-item-content{height:100%}html body .modula.modula-columns .modula-items.grid-gallery.justified-gallery .modula-item .modula-item-content{width:100%}html body .modula.modula-columns .modula-items.grid-gallery.justified-gallery .modula-item .modula-item-content .pic{position:absolute;top:50%;left:50%;margin:0;padding:0;border:none}html body .modula.modula-columns .modula-item.jg-filtered{display:none}html body .modula-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}html body .modula-row-cols-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}@media (min-width:576px){html body .modula-row-cols-sm-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-sm-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-sm-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-sm-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-sm-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-sm-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:768px){html body .modula-row-cols-md-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-md-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-md-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-md-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-md-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-md-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:992px){html body .modula-row-cols-lg-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-lg-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-lg-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-lg-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-lg-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-lg-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:1200px){html body .modula-row-cols-xl-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-xl-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-xl-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-xl-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-xl-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-xl-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}html body .modula .modula-items.grid-gallery .modula-item .figc{height:100%;top:0}html body div.modula-powered{text-align:right;font-size:14px;margin-right:5px}html body div.modula-powered svg.modula-logo{width:14px;position:relative;top:3px}html body div.modula-powered svg.modula-logo path{color:#58ab7e!important}html body div.modula-powered svg.modula-logo{display:inline-block}
assets/css/front/fancybox.min.css CHANGED
@@ -1 +1 @@
1
- html body .compensate-for-scrollbar{overflow:hidden}html body .modula-fancybox-active{height:auto}html body .modula-fancybox-is-hidden{left:-9999px;margin:0;position:absolute!important;top:-9999px;visibility:hidden}html body .modula-fancybox-container{-webkit-backface-visibility:hidden;height:100%;left:0;outline:0;position:fixed;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:manipulation;touch-action:manipulation;transform:translateZ(0);width:100%;z-index:99992}html body .modula-fancybox-container *{box-sizing:border-box}html body .modula-fancybox-bg,html body .modula-fancybox-inner,html body .modula-fancybox-outer,html body .modula-fancybox-stage{bottom:0;left:0;position:absolute;right:0;top:0}html body .modula-fancybox-outer{-webkit-overflow-scrolling:touch;overflow-y:auto}html body .modula-fancybox-bg{background:#1e1e1e;opacity:0;transition-duration:inherit;transition-property:opacity;transition-timing-function:cubic-bezier(.47,0,.74,.71)}html body .modula-fancybox-is-open .modula-fancybox-bg{opacity:.9;transition-timing-function:cubic-bezier(.22,.61,.36,1)}html body .modula-fancybox-container .modula-fancybox-caption,html body .modula-fancybox-container .modula-fancybox-infobar,html body .modula-fancybox-container .modula-fancybox-navigation .modula-fancybox-button,html body .modula-fancybox-container .modula-fancybox-toolbar{direction:ltr;opacity:0;position:absolute;transition:opacity .25s ease,visibility 0s ease .25s;visibility:hidden;z-index:99997}html body .modula-fancybox-show-caption .modula-fancybox-caption,html body .modula-fancybox-show-infobar .modula-fancybox-infobar,html body .modula-fancybox-show-nav .modula-fancybox-navigation .modula-fancybox-button,html body .modula-fancybox-show-toolbar .modula-fancybox-toolbar{opacity:1;transition:opacity .25s ease 0s,visibility 0s ease 0s;visibility:visible}html body .modula-fancybox-container .modula-fancybox-infobar{color:#ccc;font-size:13px;-webkit-font-smoothing:subpixel-antialiased;height:44px;left:0;line-height:44px;min-width:44px;mix-blend-mode:difference;padding:0 10px;pointer-events:none;top:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html body .modula-fancybox-container .modula-fancybox-toolbar{right:0;top:0}html body .modula-fancybox-stage{direction:ltr;overflow:visible;transform:translateZ(0);z-index:99994}html body .modula-fancybox-is-open .modula-fancybox-stage{overflow:hidden}html body .modula-fancybox-slide{-webkit-backface-visibility:hidden;display:none;height:100%;left:0;outline:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:absolute;text-align:center;top:0;transition-property:transform,opacity;white-space:normal;width:100%;z-index:99994}html body .modula-fancybox-slide::before{content:'';display:inline-block;font-size:0;height:100%;vertical-align:middle;width:0}html body .modula-fancybox-is-sliding .modula-fancybox-slide,html body .modula-fancybox-slide--current,html body .modula-fancybox-slide--next,html body .modula-fancybox-slide--previous{display:block}html body .modula-fancybox-slide--image{overflow:hidden;padding:44px 0}html body .modula-fancybox-slide--image::before{display:none}html body .modula-fancybox-slide--html{padding:6px}html body .modula-fancybox-content{background:#fff;display:inline-block;margin:0;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:relative;text-align:left;vertical-align:middle}html body .modula-fancybox-slide--image .modula-fancybox-content{animation-timing-function:cubic-bezier(.5,0,.14,1);-webkit-backface-visibility:hidden;background:0 0;background-repeat:no-repeat;background-size:100% 100%;left:0;max-width:none;overflow:visible;padding:0;position:absolute;top:0;-ms-transform-origin:top left;transform-origin:top left;transition-property:transform,opacity;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:99995}html body .modula-fancybox-can-zoomOut .modula-fancybox-content{cursor:zoom-out}html body .modula-fancybox-can-zoomIn .modula-fancybox-content{cursor:zoom-in}html body .modula-fancybox-can-pan .modula-fancybox-content,html body .modula-fancybox-can-swipe .modula-fancybox-content{cursor:-webkit-grab;cursor:grab}html body .modula-fancybox-is-grabbing .modula-fancybox-content{cursor:-webkit-grabbing;cursor:grabbing}html body .modula-fancybox-container [data-selectable=true]{cursor:text}html body .modula-fancybox-image,html body .modula-fancybox-spaceball{background:0 0;border:0;height:100%;left:0;margin:0;max-height:none;max-width:none;padding:0;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}html body .modula-fancybox-spaceball{z-index:1}html body .modula-fancybox-slide--iframe .modula-fancybox-content,html body .modula-fancybox-slide--map .modula-fancybox-content,html body .modula-fancybox-slide--pdf .modula-fancybox-content,html body .modula-fancybox-slide--video .modula-fancybox-content{height:100%;overflow:visible;padding:0;width:100%}html body .modula-fancybox-slide--video .modula-fancybox-content{background:#000}html body .modula-fancybox-slide--map .modula-fancybox-content{background:#e5e3df}html body .modula-fancybox-slide--iframe .modula-fancybox-content{background:#fff}html body .modula-fancybox-iframe,html body .modula-fancybox-video{background:0 0;border:0;display:block;height:100%;margin:0;overflow:hidden;padding:0;width:100%}html body .modula-fancybox-iframe{left:0;position:absolute;top:0}html body .modula-fancybox-error{background:#fff;cursor:default;max-width:400px;padding:40px;width:100%}html body .modula-fancybox-error p{color:#444;font-size:16px;line-height:20px;margin:0;padding:0}html body .modula-fancybox-container .modula-fancybox-button{background:rgba(30,30,30,.6);border:0;border-radius:0;box-shadow:none;cursor:pointer;display:inline-block;height:44px;margin:0;padding:10px;position:relative;transition:color .2s;vertical-align:top;visibility:inherit;width:44px}html body .modula-fancybox-container .modula-fancybox-button,html body .modula-fancybox-container .modula-fancybox-button:link,html body .modula-fancybox-container .modula-fancybox-button:visited{color:#ccc}html body .modula-fancybox-container .modula-fancybox-button:hover{color:#fff;box-shadow:none}html body .modula-fancybox-container .modula-fancybox-button:focus{outline:0}html body .modula-fancybox-container .modula-fancybox-button.modula-fancybox-focus{outline:1px dotted}html body .modula-fancybox-container .modula-fancybox-button[disabled],html body .modula-fancybox-container .modula-fancybox-button[disabled]:hover{color:#888;cursor:default;outline:0}html body .modula-fancybox-container .modula-fancybox-button div{height:100%}html body .modula-fancybox-container .modula-fancybox-button svg{display:block;height:100%;overflow:visible;position:relative;width:100%}html body .modula-fancybox-container .modula-fancybox-button svg path{fill:currentColor;stroke-width:0}html body .modula-fancybox-container .modula-fancybox-button--fsenter svg:nth-child(2),html body .modula-fancybox-container .modula-fancybox-button--play svg:nth-child(2){display:none}html body .modula-fancybox-container .modula-fancybox-button--fsexit svg:nth-child(1),html body .modula-fancybox-container .modula-fancybox-button--pause svg:nth-child(1){display:none}html body .modula-fancybox-container .modula-fancybox-progress{background:#ff5268;height:2px;left:0;position:absolute;right:0;top:0;-ms-transform:scaleX(0);transform:scaleX(0);-ms-transform-origin:0;transform-origin:0;transition-property:transform;transition-timing-function:linear;z-index:99998}html body .modula-fancybox-container .modula-fancybox-close-small{background:0 0;border:0;border-radius:0;color:#ccc;cursor:pointer;opacity:.8;padding:8px;position:absolute;right:-12px;top:-44px;z-index:401}html body .modula-fancybox-container .modula-fancybox-close-small:hover{color:#fff;opacity:1}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-slide--html .modula-fancybox-close-small{color:#000;padding:10px;right:0;top:0;background-color:transparent}html body .modula-fancybox-slide--image.modula-fancybox-is-scaling .modula-fancybox-content{overflow:hidden}html body .modula-fancybox-is-scaling .modula-fancybox-close-small,html body .modula-fancybox-is-zoomable.modula-fancybox-can-pan .modula-fancybox-close-small{display:none}html body .modula-fancybox-navigation .modula-fancybox-button{background-clip:content-box;height:100px;opacity:0;position:absolute;top:calc(50% - 50px);width:70px}html body .modula-fancybox-navigation .modula-fancybox-button div{padding:7px}html body .modula-fancybox-navigation .modula-fancybox-button--arrow_left{left:0;left:env(safe-area-inset-left);padding:31px 26px 31px 6px}html body .modula-fancybox-navigation .modula-fancybox-button--arrow_right{padding:31px 6px 31px 26px;right:0;right:env(safe-area-inset-right)}html body .modula-fancybox-caption{background:linear-gradient(to top,rgba(0,0,0,.85) 0,rgba(0,0,0,.3) 50%,rgba(0,0,0,.15) 65%,rgba(0,0,0,.075) 75.5%,rgba(0,0,0,.037) 82.85%,rgba(0,0,0,.019) 88%,rgba(0,0,0,0) 100%);bottom:0;color:#eee;font-size:14px;font-weight:400;left:0;line-height:1.5;padding:75px 44px 25px 44px;pointer-events:none;right:0;text-align:center;z-index:99996}@supports (padding:max(0px)){html body .modula-fancybox-caption{padding:75px max(44px,env(safe-area-inset-right)) max(25px,env(safe-area-inset-bottom)) max(44px,env(safe-area-inset-left))}}html body .modula-fancybox-caption--separate{margin-top:-50px}html body .modula-fancybox-caption__body{max-height:50vh;overflow:auto;pointer-events:all}html body .modula-fancybox-caption a,html body .modula-fancybox-caption a:link,html body .modula-fancybox-caption a:visited{color:#ccc;text-decoration:none}html body .modula-fancybox-caption a:hover{color:#fff;text-decoration:underline}html body .modula-fancybox-loading{animation:fancybox-rotate 1s linear infinite;background:0 0;border:4px solid #888;border-bottom-color:#fff;border-radius:50%;height:50px;left:50%;margin:-25px 0 0 -25px;opacity:.7;padding:0;position:absolute;top:50%;width:50px;z-index:99999}@keyframes fancybox-rotate{100%{transform:rotate(360deg)}}html body .modula-fancybox-animated{transition-timing-function:cubic-bezier(0,0,.25,1)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--previous{opacity:0;transform:translate3d(-100%,0,0)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--next{opacity:0;transform:translate3d(100%,0,0)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--current{opacity:1;transform:translate3d(0,0,0)}html body .modula-fancybox-fx-fade.modula-fancybox-slide--next,html body .modula-fancybox-fx-fade.modula-fancybox-slide--previous{opacity:0;transition-timing-function:cubic-bezier(.19,1,.22,1)}html body .modula-fancybox-fx-fade.modula-fancybox-slide--current{opacity:1}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--previous{opacity:0;transform:scale3d(1.5,1.5,1.5)}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--next{opacity:0;transform:scale3d(.5,.5,.5)}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--current{opacity:1;transform:scale3d(1,1,1)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--previous{opacity:0;-ms-transform:rotate(-360deg);transform:rotate(-360deg)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--next{opacity:0;-ms-transform:rotate(360deg);transform:rotate(360deg)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--current{opacity:1;-ms-transform:rotate(0);transform:rotate(0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--previous{opacity:0;transform:scale3d(0,0,0) translate3d(-100%,0,0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--next{opacity:0;transform:scale3d(0,0,0) translate3d(100%,0,0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--current{opacity:1;transform:scale3d(1,1,1) translate3d(0,0,0)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--previous{transform:translate3d(-100%,0,0) scale(.1) skew(-10deg)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--next{transform:translate3d(100%,0,0) scale(.1) skew(10deg)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--current{transform:translate3d(0,0,0) scale(1)}@media all and (max-height:576px){html body .modula-fancybox-slide{padding-left:6px;padding-right:6px}html body .modula-fancybox-slide--image{padding:6px 0}html body .modula-fancybox-close-small{right:-6px}html body .modula-fancybox-slide--image .modula-fancybox-close-small{background:#4e4e4e;color:#f2f4f6;height:36px;opacity:1;padding:6px;right:0;top:0;width:36px}html body .modula-fancybox-caption{padding-left:12px;padding-right:12px}@supports (padding:max(0px)){html body .modula-fancybox-caption{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share{background:#f4f4f4;border-radius:3px;max-width:90%;padding:30px;text-align:center}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1{color:#222;font-size:35px;font-weight:700;margin:0 0 20px 0}.modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1:after,.modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1:before{display:none}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share p{margin:0;padding:0}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button{border:0;border-radius:3px;display:inline-block;font-size:14px;font-weight:700;line-height:40px;margin:0 5px 10px 5px;min-width:130px;padding:0 15px;text-decoration:none;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:link,html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:visited{color:#fff}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:hover{text-decoration:none}html body .modula-fancybox-share__button--fb{background:#3b5998}html body .modula-fancybox-share__button--fb:hover{background:#344e86}html body .modula-fancybox-share__button--pt{background:#bd081d}html body .modula-fancybox-share__button--pt:hover{background:#aa0719}html body .modula-fancybox-share__button--tw{background:#1da1f2}html body .modula-fancybox-share__button--tw:hover{background:#0d95e8}html body .modula-fancybox-share__button--email{background:#9c3}html body .modula-fancybox-share__button--email:hover{background:#7aa329}html body .modula-fancybox-share__button svg{height:25px;margin-right:7px;position:relative;top:-1px;vertical-align:middle;width:25px;display:inline-block}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button svg path{fill:#fff}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share .modula-fancybox-share__input{background:0 0;border:0;border-bottom:1px solid #d7d7d7;border-radius:0;color:#5d5b5b;font-size:14px;margin:10px 0 0 0;outline:0;padding:10px 15px;width:100%}html body .modula-fancybox-container .modula-fancybox-thumbs{background:#ddd;bottom:0;display:none;margin:0;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;padding:2px 2px 4px 2px;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;width:212px;z-index:99995}html body .modula-fancybox-thumbs-x{overflow-x:auto;overflow-y:hidden}html body .modula-fancybox-show-thumbs .modula-fancybox-thumbs{display:block}html body .modula-fancybox-show-thumbs .modula-fancybox-inner{right:212px}html body .modula-fancybox-thumbs__list{font-size:0;height:100%;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0;position:absolute;position:relative;white-space:nowrap;width:100%}html body .modula-fancybox-thumbs-x .modula-fancybox-thumbs__list{overflow:hidden}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar{width:7px}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar-track{background:#fff;border-radius:10px;box-shadow:inset 0 0 6px rgba(0,0,0,.3)}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:10px}html body .modula-fancybox-thumbs__list a{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,.1);background-position:center center;background-repeat:no-repeat;background-size:cover;cursor:pointer;float:left;height:75px;margin:2px;max-height:calc(100% - 8px);max-width:calc(50% - 4px);outline:0;overflow:hidden;padding:0;position:relative;-webkit-tap-highlight-color:transparent;width:100px}html body .modula-fancybox-thumbs__list a::before{border:6px solid #ff5268;bottom:0;content:'';left:0;opacity:0;position:absolute;right:0;top:0;transition:all .2s cubic-bezier(.25,.46,.45,.94);z-index:99991}html body .modula-fancybox-thumbs__list a:focus::before{opacity:.5}html body .modula-fancybox-thumbs__list a.modula-fancybox-thumbs-active::before{opacity:1}@media all and (max-width:576px){html body .modula-fancybox-thumbs{width:110px}html body .modula-fancybox-show-thumbs .modula-fancybox-inner{right:110px}html body .modula-fancybox-thumbs__list a{max-width:calc(100% - 10px)}}
1
+ html body .compensate-for-scrollbar{overflow:hidden}html body .modula-fancybox-active{height:auto}html body .modula-fancybox-is-hidden{left:-9999px;margin:0;position:absolute!important;top:-9999px;visibility:hidden}html body .modula-fancybox-container{-webkit-backface-visibility:hidden;height:100%;left:0;outline:0;position:fixed;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:manipulation;touch-action:manipulation;transform:translateZ(0);width:100%;z-index:99992}html body .modula-fancybox-container *{box-sizing:border-box}html body .modula-fancybox-bg,html body .modula-fancybox-inner,html body .modula-fancybox-outer,html body .modula-fancybox-stage{bottom:0;left:0;position:absolute;right:0;top:0}html body .modula-fancybox-outer{-webkit-overflow-scrolling:touch;overflow-y:auto}html body .modula-fancybox-bg{background:#1e1e1e;opacity:0;transition-duration:inherit;transition-property:opacity;transition-timing-function:cubic-bezier(.47,0,.74,.71)}html body .modula-fancybox-is-open .modula-fancybox-bg{opacity:.9;transition-timing-function:cubic-bezier(.22,.61,.36,1)}html body .modula-fancybox-container .modula-fancybox-caption,html body .modula-fancybox-container .modula-fancybox-infobar,html body .modula-fancybox-container .modula-fancybox-navigation .modula-fancybox-button,html body .modula-fancybox-container .modula-fancybox-toolbar{direction:ltr;opacity:0;position:absolute;transition:opacity .25s ease,visibility 0s ease .25s;visibility:hidden;z-index:99997}html body .modula-fancybox-show-caption .modula-fancybox-caption,html body .modula-fancybox-show-infobar .modula-fancybox-infobar,html body .modula-fancybox-show-nav .modula-fancybox-navigation .modula-fancybox-button,html body .modula-fancybox-show-toolbar .modula-fancybox-toolbar{opacity:1;transition:opacity .25s ease 0s,visibility 0s ease 0s;visibility:visible}html body .modula-fancybox-container .modula-fancybox-infobar{color:#ccc;font-size:13px;-webkit-font-smoothing:subpixel-antialiased;height:44px;left:0;line-height:44px;min-width:44px;mix-blend-mode:difference;padding:0 10px;pointer-events:none;top:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html body .modula-fancybox-container .modula-fancybox-toolbar{right:0;top:0}html body .modula-fancybox-stage{direction:ltr;overflow:visible;transform:translateZ(0);z-index:99994}html body .modula-fancybox-is-open .modula-fancybox-stage{overflow:hidden}html body .modula-fancybox-slide{-webkit-backface-visibility:hidden;display:none;height:100%;left:0;outline:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:absolute;text-align:center;top:0;transition-property:transform,opacity;white-space:normal;width:100%;z-index:99994}html body .modula-fancybox-slide::before{content:'';display:inline-block;font-size:0;height:100%;vertical-align:middle;width:0}html body .modula-fancybox-is-sliding .modula-fancybox-slide,html body .modula-fancybox-slide--current,html body .modula-fancybox-slide--next,html body .modula-fancybox-slide--previous{display:block}html body .modula-fancybox-slide--image{overflow:hidden;padding:44px 0}html body .modula-fancybox-slide--image::before{display:none}html body .modula-fancybox-slide--html{padding:6px}html body .modula-fancybox-content{background:#fff;display:inline-block;margin:0;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:relative;text-align:left;vertical-align:middle}html body .modula-fancybox-slide--image .modula-fancybox-content{animation-timing-function:cubic-bezier(.5,0,.14,1);-webkit-backface-visibility:hidden;background:0 0;background-repeat:no-repeat;background-size:100% 100%;left:0;max-width:none;overflow:visible;padding:0;position:absolute;top:0;-ms-transform-origin:top left;transform-origin:top left;transition-property:transform,opacity;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:99995}html body .modula-fancybox-can-zoomOut .modula-fancybox-content{cursor:zoom-out}html body .modula-fancybox-can-zoomIn .modula-fancybox-content{cursor:zoom-in}html body .modula-fancybox-can-pan .modula-fancybox-content,html body .modula-fancybox-can-swipe .modula-fancybox-content{cursor:-webkit-grab;cursor:grab}html body .modula-fancybox-is-grabbing .modula-fancybox-content{cursor:-webkit-grabbing;cursor:grabbing}html body .modula-fancybox-container [data-selectable=true]{cursor:text}html body .modula-fancybox-image,html body .modula-fancybox-spaceball{background:0 0;border:0;height:100%;left:0;margin:0;max-height:none;max-width:none;padding:0;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}html body .modula-fancybox-spaceball{z-index:1}html body .modula-fancybox-slide--iframe .modula-fancybox-content,html body .modula-fancybox-slide--map .modula-fancybox-content,html body .modula-fancybox-slide--pdf .modula-fancybox-content,html body .modula-fancybox-slide--video .modula-fancybox-content{height:100%;overflow:visible;padding:0;width:100%}html body .modula-fancybox-slide--video .modula-fancybox-content{background:#000}html body .modula-fancybox-slide--map .modula-fancybox-content{background:#e5e3df}html body .modula-fancybox-slide--iframe .modula-fancybox-content{background:#fff}html body .modula-fancybox-iframe,html body .modula-fancybox-video{background:0 0;border:0;display:block;height:100%;margin:0;overflow:hidden;padding:0;width:100%}html body .modula-fancybox-iframe{left:0;position:absolute;top:0}html body .modula-fancybox-error{background:#fff;cursor:default;max-width:400px;padding:40px;width:100%}html body .modula-fancybox-error p{color:#444;font-size:16px;line-height:20px;margin:0;padding:0}html body .modula-fancybox-container .modula-fancybox-button{background:rgba(30,30,30,.6);border:0;border-radius:0;box-shadow:none;cursor:pointer;display:inline-block;height:44px;margin:0;padding:10px;position:relative;transition:color .2s;vertical-align:top;visibility:inherit;width:44px}html body .modula-fancybox-container .modula-fancybox-button,html body .modula-fancybox-container .modula-fancybox-button:link,html body .modula-fancybox-container .modula-fancybox-button:visited{color:#ccc}html body .modula-fancybox-container .modula-fancybox-button:hover{color:#fff;box-shadow:none}html body .modula-fancybox-container .modula-fancybox-button:focus{outline:0}html body .modula-fancybox-container .modula-fancybox-button.modula-fancybox-focus{outline:1px dotted}html body .modula-fancybox-container .modula-fancybox-button[disabled],html body .modula-fancybox-container .modula-fancybox-button[disabled]:hover{color:#888;cursor:default;outline:0}html body .modula-fancybox-container .modula-fancybox-button div{height:100%}html body .modula-fancybox-container .modula-fancybox-button svg{display:block;height:100%;overflow:visible;position:relative;width:100%}html body .modula-fancybox-container .modula-fancybox-button svg path{fill:currentColor;stroke-width:0}html body .modula-fancybox-container .modula-fancybox-button--fsenter svg:nth-child(2),html body .modula-fancybox-container .modula-fancybox-button--play svg:nth-child(2){display:none}html body .modula-fancybox-container .modula-fancybox-button--fsexit svg:nth-child(1),html body .modula-fancybox-container .modula-fancybox-button--pause svg:nth-child(1){display:none}html body .modula-fancybox-container .modula-fancybox-progress{background:#ff5268;height:2px;left:0;position:absolute;right:0;top:0;-ms-transform:scaleX(0);transform:scaleX(0);-ms-transform-origin:0;transform-origin:0;transition-property:transform;transition-timing-function:linear;z-index:99998}html body .modula-fancybox-container .modula-fancybox-close-small{background:0 0;border:0;border-radius:0;color:#ccc;cursor:pointer;opacity:.8;padding:8px;position:absolute;right:-12px;top:-44px;z-index:401}html body .modula-fancybox-container .modula-fancybox-close-small:hover{color:#fff;opacity:1}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-slide--html .modula-fancybox-close-small{color:#000;padding:10px;right:0;top:0;background-color:transparent}html body .modula-fancybox-slide--image.modula-fancybox-is-scaling .modula-fancybox-content{overflow:hidden}html body .modula-fancybox-is-scaling .modula-fancybox-close-small,html body .modula-fancybox-is-zoomable.modula-fancybox-can-pan .modula-fancybox-close-small{display:none}html body .modula-fancybox-navigation .modula-fancybox-button{background-clip:content-box;height:100px;opacity:0;position:absolute;top:calc(50% - 50px);width:70px}html body .modula-fancybox-navigation .modula-fancybox-button div{padding:7px}html body .modula-fancybox-navigation .modula-fancybox-button--arrow_left{left:0;left:env(safe-area-inset-left);padding:31px 26px 31px 6px}html body .modula-fancybox-navigation .modula-fancybox-button--arrow_right{padding:31px 6px 31px 26px;right:0;right:env(safe-area-inset-right)}html body .modula-fancybox-caption{background:linear-gradient(to top,rgba(0,0,0,.85) 0,rgba(0,0,0,.3) 50%,rgba(0,0,0,.15) 65%,rgba(0,0,0,.075) 75.5%,rgba(0,0,0,.037) 82.85%,rgba(0,0,0,.019) 88%,rgba(0,0,0,0) 100%);bottom:0;color:#eee;font-size:14px;font-weight:400;left:0;line-height:1.5;padding:75px 44px 25px 44px;pointer-events:none;right:0;text-align:center;z-index:99996}@supports (padding:max(0px)){html body .modula-fancybox-caption{padding:75px max(44px,env(safe-area-inset-right)) max(25px,env(safe-area-inset-bottom)) max(44px,env(safe-area-inset-left))}}html body .modula-fancybox-caption--separate{margin-top:-50px}html body .modula-fancybox-caption__body{max-height:50vh;overflow:auto;pointer-events:all}html body .modula-fancybox-caption a,html body .modula-fancybox-caption a:link,html body .modula-fancybox-caption a:visited{color:#ccc;text-decoration:none}html body .modula-fancybox-caption a:hover{color:#fff;text-decoration:underline}html body .modula-fancybox-loading{animation:fancybox-rotate 1s linear infinite;background:0 0;border:4px solid #888;border-bottom-color:#fff;border-radius:50%;height:50px;left:50%;margin:-25px 0 0 -25px;opacity:.7;padding:0;position:absolute;top:50%;width:50px;z-index:99999}@keyframes fancybox-rotate{100%{transform:rotate(360deg)}}html body .modula-fancybox-animated{transition-timing-function:cubic-bezier(0,0,.25,1)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--previous{opacity:0;transform:translate3d(-100%,0,0)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--next{opacity:0;transform:translate3d(100%,0,0)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--current{opacity:1;transform:translate3d(0,0,0)}html body .modula-fancybox-fx-fade.modula-fancybox-slide--next,html body .modula-fancybox-fx-fade.modula-fancybox-slide--previous{opacity:0;transition-timing-function:cubic-bezier(.19,1,.22,1)}html body .modula-fancybox-fx-fade.modula-fancybox-slide--current{opacity:1}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--previous{opacity:0;transform:scale3d(1.5,1.5,1.5)}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--next{opacity:0;transform:scale3d(.5,.5,.5)}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--current{opacity:1;transform:scale3d(1,1,1)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--previous{opacity:0;-ms-transform:rotate(-360deg);transform:rotate(-360deg)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--next{opacity:0;-ms-transform:rotate(360deg);transform:rotate(360deg)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--current{opacity:1;-ms-transform:rotate(0);transform:rotate(0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--previous{opacity:0;transform:scale3d(0,0,0) translate3d(-100%,0,0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--next{opacity:0;transform:scale3d(0,0,0) translate3d(100%,0,0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--current{opacity:1;transform:scale3d(1,1,1) translate3d(0,0,0)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--previous{transform:translate3d(-100%,0,0) scale(.1) skew(-10deg)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--next{transform:translate3d(100%,0,0) scale(.1) skew(10deg)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--current{transform:translate3d(0,0,0) scale(1)}@media all and (max-height:576px){html body .modula-fancybox-slide{padding-left:6px;padding-right:6px}html body .modula-fancybox-slide--image{padding:6px 0}html body .modula-fancybox-close-small{right:-6px}html body .modula-fancybox-slide--image .modula-fancybox-close-small{background:#4e4e4e;color:#f2f4f6;height:36px;opacity:1;padding:6px;right:0;top:0;width:36px}html body .modula-fancybox-caption{padding-left:12px;padding-right:12px}@supports (padding:max(0px)){html body .modula-fancybox-caption{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share{background:#f4f4f4;border-radius:3px;max-width:90%;padding:30px;text-align:center}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1{color:#222;font-size:35px;font-weight:700;margin:0 0 20px 0}.modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1:after,.modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1:before{display:none}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share p{margin:0;padding:0}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button{border:0;border-radius:3px;display:inline-block;font-size:14px;font-weight:700;line-height:40px;margin:0 5px 10px 5px;min-width:130px;padding:0 15px;text-decoration:none;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:link,html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:visited{color:#fff}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:hover{text-decoration:none}html body .modula-fancybox-share__button--fb{background:#3b5998}html body .modula-fancybox-share__button--fb:hover{background:#344e86}html body .modula-fancybox-share__button--pt{background:#bd081d}html body .modula-fancybox-share__button--pt:hover{background:#aa0719}html body .modula-fancybox-share__button--tw{background:#1da1f2}html body .modula-fancybox-share__button--tw:hover{background:#0d95e8}html body .modula-fancybox-share__button--email{background:#9c3}html body .modula-fancybox-share__button--email:hover{background:#7aa329}html body .modula-fancybox-share__button svg{height:25px;margin-right:7px;position:relative;top:-1px;vertical-align:middle;width:25px;display:inline-block}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button svg path{fill:#fff}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share .modula-fancybox-share__input{background:0 0;border:0;border-bottom:1px solid #d7d7d7;border-radius:0;color:#5d5b5b;font-size:14px;margin:10px 0 0 0;outline:0;padding:10px 15px;width:100%}html body .modula-fancybox-container .modula-fancybox-thumbs{background:#ddd;bottom:0;display:none;margin:0;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;padding:2px 2px 4px 2px;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;width:212px;z-index:99995}html body .modula-fancybox-thumbs-x{overflow-x:auto;overflow-y:hidden}html body .modula-fancybox-show-thumbs .modula-fancybox-thumbs{display:block}html body .modula-fancybox-show-thumbs .modula-fancybox-inner{right:212px}html body .modula-fancybox-thumbs__list{font-size:0;height:100%;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0;position:absolute;position:relative;white-space:nowrap;width:100%}html body .modula-fancybox-thumbs-x .modula-fancybox-thumbs__list{overflow:hidden}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar{width:7px}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar-track{background:#fff;border-radius:10px;box-shadow:inset 0 0 6px rgba(0,0,0,.3)}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:10px}html body .modula-fancybox-thumbs__list a{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,.1);background-position:center center;background-repeat:no-repeat;background-size:cover;cursor:pointer;float:left;height:75px;margin:2px;max-height:calc(100% - 8px);max-width:calc(50% - 4px);outline:0;overflow:hidden;padding:0;position:relative;-webkit-tap-highlight-color:transparent;width:100px}html body .modula-fancybox-thumbs__list a::before{border:6px solid #ff5268;bottom:0;content:'';left:0;opacity:0;position:absolute;right:0;top:0;transition:all .2s cubic-bezier(.25,.46,.45,.94);z-index:99991}html body .modula-fancybox-thumbs__list a:focus::before{opacity:.5}html body .modula-fancybox-thumbs__list a.modula-fancybox-thumbs-active::before{opacity:1}@media all and (max-width:576px){html body .modula-fancybox-thumbs{width:110px}html body .modula-fancybox-show-thumbs .modula-fancybox-inner{right:110px}html body .modula-fancybox-thumbs__list a{max-width:calc(100% - 10px)}}
assets/css/front/modula.css CHANGED
@@ -118,213 +118,6 @@ html body .modula .modula-items .caption span.title {
118
  font-weight: bold;
119
  }
120
 
121
- /**
122
- Modula Filters
123
- */
124
- html body .modula .filters {
125
- margin: 20px 0 20px 0;
126
- }
127
-
128
- html body .modula .filters.vertical-filters {
129
- margin-top: 0;
130
- width: 20%;
131
- float: left;
132
- }
133
-
134
-
135
- html body .modula .filters a {
136
- text-decoration: none;
137
- display: inline-block;
138
- /*margin:0 10px 0 0;*/
139
- color: #333;
140
- outline: none;
141
- transition: 350ms ease-in;
142
- }
143
-
144
- html body .modula .filters.menu--dfefault a {
145
- border-bottom: 2px solid transparent;
146
- }
147
-
148
- html body .modula .filters.colored a {
149
- border: 0;
150
- color: #fff;
151
- }
152
-
153
- html body .modula .filters:not(.styled-menu) a:hover,
154
- html body .modula .filters:not(.styled-menu) a.selected {
155
- border-bottom-color: #333;
156
- border-bottom: 1px solid;
157
- }
158
-
159
- /*html body .modula .modula-item {
160
- width: 100%;
161
- }*/
162
- html body .modula.vertical-filters .modula-items {
163
- width: 80%;
164
- float: left;
165
- }
166
-
167
- html body .modula:after {
168
- content: "";
169
- display: block;
170
- clear: both;
171
- }
172
-
173
- html body .modula.vertical-filters .filters {
174
- width: 20%;
175
- float: left;
176
- }
177
-
178
- html body .modula .filters.vertical-filters.both-vertical + .modula-items {
179
- width: 60%;
180
- float: left;
181
- }
182
-
183
- html body .modula .filters.vertical-filters a {
184
- display: block;
185
- margin-bottom: 15px;
186
- }
187
-
188
- html body .modula .filters.vertical-filters.colored a {
189
- border-radius: 5px;
190
- text-align: center;
191
- background: #fff;
192
- border: 1px solid #3498db;
193
- color: #3498db;
194
- }
195
-
196
- html body .modula .filters.vertical-filters.colored a:hover,
197
- html body .modula .filters.vertical-filters.colored a.selected {
198
- background: #fff;
199
- color: #8e44ad;
200
- border-color: #8e44ad;
201
- }
202
-
203
- html body .modula .filters.horizontal-filters.colored a {
204
- display: inline-block;
205
- padding: 0 30px;
206
- margin-right: 2px;
207
- background: #3498db;
208
- position: relative;
209
- border: 0px;
210
- }
211
-
212
- html body .modula .filters.horizontal-filters.colored a:hover,
213
- html body .modula .filters.horizontal-filters.colored a.selected {
214
- background: #8e44ad;
215
- }
216
-
217
- html body .modula .filters.horizontal-filters.colored a:before {
218
- position: absolute;
219
- content: '';
220
- left: 0;
221
- top: 0;
222
- width: 0;
223
- height: 0;
224
- border: none;
225
- border-bottom-color: currentcolor;
226
- border-bottom-style: none;
227
- border-bottom-width: medium;
228
- border-left-color: currentcolor;
229
- border-left-style: none;
230
- border-left-width: medium;
231
- border-left: solid 17px white;
232
- border-bottom: solid 41px transparent;
233
- z-index: 1;
234
- transition: .4s;
235
- }
236
-
237
- html body .modula .filters.horizontal-filters.colored a:after {
238
- position: absolute;
239
- content: '';
240
- right: 0;
241
- top: 0;
242
- width: 0;
243
- height: 0;
244
- border: none;
245
- border-bottom-color: currentcolor;
246
- border-bottom-style: none;
247
- border-bottom-width: medium;
248
- border-left-color: currentcolor;
249
- border-left-style: none;
250
- border-left-width: medium;
251
- border-left: solid 17px transparent;
252
- border-bottom: solid 41px white;
253
- z-index: 1;
254
- transition: .4s;
255
- }
256
-
257
- html body .filter-by-wrapper {
258
- text-align: center;
259
- margin-bottom: 25px;
260
- text-transform: uppercase;
261
- }
262
-
263
- html body .filter-by-wrapper span {
264
- cursor: pointer;
265
- }
266
-
267
- html body .filter-by-wrapper span:after {
268
- content: "";
269
- margin-left: 15px;
270
- width: 0;
271
- height: 0;
272
- border-style: solid;
273
- border-width: 15px 10px 0 10px;
274
- border-color: #0470e3 transparent transparent transparent;
275
- display: inline-block;
276
- }
277
-
278
- html body .filter-by-wrapper.opened span:after {
279
- content: "";
280
- width: 0;
281
- height: 0;
282
- border-style: solid;
283
- border-width: 0 10px 15px 10px;
284
- border-color: transparent transparent #d500ff transparent;
285
- display: inline-block;
286
- }
287
-
288
- html body .modula .filters.vertical-filters a {
289
- margin-bottom: 0;
290
- }
291
-
292
- html body .menu__list li.menu__item {
293
- margin: 15px;
294
- }
295
-
296
- @media all and (min-width: 1025px) {
297
- html body .filter-by-wrapper {
298
- display: none !important;
299
- }
300
-
301
- html body .modula-gallery .filters {
302
- display: block !important;
303
- }
304
- }
305
-
306
- @media all and (max-width: 1024px) {
307
-
308
- html body .modula.vertical-filters .filters,
309
- html body .modula.vertical-filters .modula-items,
310
- html body .modula .filters.vertical-filters.both-vertical + .modula-items {
311
- width: 100% !important;
312
- float: none;
313
- }
314
-
315
- html body .menu__list {
316
- padding: 0px;
317
- }
318
-
319
- html body .menu__list li.menu__item {
320
- margin: 0;
321
- }
322
-
323
- }
324
-
325
- /**
326
- End Modula Filters
327
- */
328
  html body .modula .jtg-social a {
329
  box-shadow: none;
330
  }
@@ -372,7 +165,6 @@ html body .modula .modula-item:hover .jtg-social a {
372
  /*---------------*/
373
  html body .modula .modula-items .jtg-social {
374
  opacity: 0;
375
- transition: opacity 0.1s;
376
  right: 30px;
377
  position: absolute;
378
  bottom: 20px;
@@ -380,6 +172,26 @@ html body .modula .modula-items .jtg-social {
380
  transition: all .3s;
381
  }
382
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
383
  html body .modula .modula-items .jtg-social {
384
  opacity: 1;
385
  }
@@ -392,6 +204,11 @@ html body .modula .modula-item.effect-pufrobo p.description {
392
  margin-bottom: 2em;
393
  }
394
 
 
 
 
 
 
395
  html body .modula .modula-item.effect-pufrobo .figc {
396
  text-align: right;
397
  }
@@ -419,7 +236,7 @@ html body .modula .modula-item.effect-pufrobo p {
419
  letter-spacing: 1px;
420
  }
421
 
422
- html body .modula .modula-item.effect-pufrobo .jtg-title {
423
  /*top: 30px;*/
424
  top: 10%;
425
  -webkit-transition: -webkit-transform 0.35s;
@@ -428,7 +245,12 @@ html body .modula .modula-item.effect-pufrobo .jtg-title {
428
  transform: translate3d(0, 20px, 0);
429
  }
430
 
431
- html body .modula .modula-item.effect-pufrobo:hover .jtg-title {
 
 
 
 
 
432
  -webkit-transform: translate3d(0, 0, 0);
433
  transform: translate3d(0, 0, 0);
434
  }
118
  font-weight: bold;
119
  }
120
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  html body .modula .jtg-social a {
122
  box-shadow: none;
123
  }
165
  /*---------------*/
166
  html body .modula .modula-items .jtg-social {
167
  opacity: 0;
 
168
  right: 30px;
169
  position: absolute;
170
  bottom: 20px;
172
  transition: all .3s;
173
  }
174
 
175
+ html body .et_pb_module_inner .modula .modula-items .jtg-social {
176
+ transition: all .3s !important;
177
+ }
178
+
179
+ html body .modula .modula-items .modula-item.effect-pufrobo .jtg-social a {
180
+ margin-right:10px;
181
+ }
182
+
183
+ @media all and (max-width:480px){
184
+ html body .modula .modula-items .modula-item.effect-pufrobo .jtg-social {
185
+ right:0;
186
+ width:100%;
187
+ text-align:center;
188
+ }
189
+
190
+ html body .modula .modula-items .modula-item.effect-pufrobo .jtg-social a {
191
+ padding:5px;
192
+ }
193
+ }
194
+
195
  html body .modula .modula-items .jtg-social {
196
  opacity: 1;
197
  }
204
  margin-bottom: 2em;
205
  }
206
 
207
+ html body .et_pb_module_inner .modula .modula-item.effect-pufrobo p.description {
208
+ -webkit-transition: -webkit-transform 0.35s !important;
209
+ transition: transform 0.35s !important;
210
+ }
211
+
212
  html body .modula .modula-item.effect-pufrobo .figc {
213
  text-align: right;
214
  }
236
  letter-spacing: 1px;
237
  }
238
 
239
+ html body .modula .modula-items .modula-item.effect-pufrobo .jtg-title{
240
  /*top: 30px;*/
241
  top: 10%;
242
  -webkit-transition: -webkit-transform 0.35s;
245
  transform: translate3d(0, 20px, 0);
246
  }
247
 
248
+ html body .et_pb_module_inner .modula .modula-items .modula-item.effect-pufrobo .jtg-title {
249
+ -webkit-transition: -webkit-transform 0.35s !important;
250
+ transition: transform 0.35s !important;
251
+ }
252
+
253
+ html body .modula .modula-item.effect-pufrobo:hover .jtg-title{
254
  -webkit-transform: translate3d(0, 0, 0);
255
  transform: translate3d(0, 0, 0);
256
  }
assets/css/front/modula.min.css CHANGED
@@ -1 +1 @@
1
- html body .modula .modula-items .modula-item{position:absolute;overflow:hidden;box-sizing:border-box}html body .modula .modula-items .modula-item .modula-item-content{transition:transform .3s ease-out,opacity .2s linear,top .3s,left .6s;opacity:0}html body .modula .modula-items{position:relative;z-index:1;min-height:10px}html body .modula .modula-items .modula-item .modula-item-content>a{display:block;position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;background:0 0}html body .modula.modula-creative-gallery .modula-items .modula-item .modula-item-content,html body .modula.modula-custom-grid .modula-items .modula-item .modula-item-content{height:100%}html body .modula .modula-items .modula-item .jtg-social{z-index:10;font-size:0}html body .modula.modula-columns:not(.modula-loaded-scale) .modula-items .modula-item .modula-item-content,html body .modula:not(.modula-loaded-scale) .modula-items .modula-item.tg-loaded .modula-item-content,html body .modula:not(.modula-loaded-scale) .modula-items.justified-gallery .modula-item .modula-item-content{transform:scale(1) translate(0,0) rotate(0)!important;opacity:1}html body .modula .modula-items .modula-item img.pic{font-size:12px;position:absolute;max-width:999em;transition:width .3s,height .3s,transform .3s linear,opacity .2s linear}html body .modula.modula-columns .modula-items .modula-item img.pic{position:relative;max-width:100%;margin:0 auto}html body .modula .modula-items .modula-item.tg-loaded img.pic,html body .modula.modula-columns .modula-items .modula-item img.pic{display:block;opacity:1}html body .modula .modula-items .modula-item img.pic.lazyload,html body .modula .modula-items .modula-item img.pic.lazyloaded{display:block}html body .modula .modula-items .modula-item .caption .icon{font-size:14px;position:absolute;left:50%;top:50%;margin:-12px 0 0 -8px}html body .modula .modula-items .modula-item .figc{color:#fff;text-align:center;position:absolute;left:0;width:100%;padding:0;max-width:100%}html body .modula .modula-items .hidden .figc{display:none}html body .modula .modula-items .hidden:hover .figc{display:block}html body .modula .modula-items .visible .figc{display:block}html body .modula .modula-items .always-visible .figc{display:block}html body .modula .modula-items .visible:hover .figc{display:none}html body .modula .modula-items .caption span.text{display:block;padding:10px}html body .modula .modula-items .caption span.title{font-size:14px;font-weight:700}html body .modula .filters{margin:20px 0 20px 0}html body .modula .filters.vertical-filters{margin-top:0;width:20%;float:left}html body .modula .filters a{text-decoration:none;display:inline-block;color:#333;outline:0;transition:350ms ease-in}html body .modula .filters.menu--dfefault a{border-bottom:2px solid transparent}html body .modula .filters.colored a{border:0;color:#fff}html body .modula .filters:not(.styled-menu) a.selected,html body .modula .filters:not(.styled-menu) a:hover{border-bottom-color:#333;border-bottom:1px solid}html body .modula.vertical-filters .modula-items{width:80%;float:left}html body .modula:after{content:"";display:block;clear:both}html body .modula.vertical-filters .filters{width:20%;float:left}html body .modula .filters.vertical-filters.both-vertical+.modula-items{width:60%;float:left}html body .modula .filters.vertical-filters a{display:block;margin-bottom:15px}html body .modula .filters.vertical-filters.colored a{border-radius:5px;text-align:center;background:#fff;border:1px solid #3498db;color:#3498db}html body .modula .filters.vertical-filters.colored a.selected,html body .modula .filters.vertical-filters.colored a:hover{background:#fff;color:#8e44ad;border-color:#8e44ad}html body .modula .filters.horizontal-filters.colored a{display:inline-block;padding:0 30px;margin-right:2px;background:#3498db;position:relative;border:0}html body .modula .filters.horizontal-filters.colored a.selected,html body .modula .filters.horizontal-filters.colored a:hover{background:#8e44ad}html body .modula .filters.horizontal-filters.colored a:before{position:absolute;content:'';left:0;top:0;width:0;height:0;border:none;border-bottom-color:currentcolor;border-bottom-style:none;border-bottom-width:medium;border-left-color:currentcolor;border-left-style:none;border-left-width:medium;border-left:solid 17px #fff;border-bottom:solid 41px transparent;z-index:1;transition:.4s}html body .modula .filters.horizontal-filters.colored a:after{position:absolute;content:'';right:0;top:0;width:0;height:0;border:none;border-bottom-color:currentcolor;border-bottom-style:none;border-bottom-width:medium;border-left-color:currentcolor;border-left-style:none;border-left-width:medium;border-left:solid 17px transparent;border-bottom:solid 41px #fff;z-index:1;transition:.4s}html body .filter-by-wrapper{text-align:center;margin-bottom:25px;text-transform:uppercase}html body .filter-by-wrapper span{cursor:pointer}html body .filter-by-wrapper span:after{content:"";margin-left:15px;width:0;height:0;border-style:solid;border-width:15px 10px 0 10px;border-color:#0470e3 transparent transparent transparent;display:inline-block}html body .filter-by-wrapper.opened span:after{content:"";width:0;height:0;border-style:solid;border-width:0 10px 15px 10px;border-color:transparent transparent #d500ff transparent;display:inline-block}html body .modula .filters.vertical-filters a{margin-bottom:0}html body .menu__list li.menu__item{margin:15px}@media all and (min-width:1025px){html body .filter-by-wrapper{display:none!important}html body .modula-gallery .filters{display:block!important}}@media all and (max-width:1024px){html body .modula .filters.vertical-filters.both-vertical+.modula-items,html body .modula.vertical-filters .filters,html body .modula.vertical-filters .modula-items{width:100%!important;float:none}html body .menu__list{padding:0}html body .menu__list li.menu__item{margin:0}}html body .modula .jtg-social a{box-shadow:none}html body .modula .jtg-social svg{width:20px;height:16px}html body .modula .modula-items .modula-item .jtg-title{margin:0}html body .modula .modula-items .modula-item p{margin:0;padding:0}html body .modula .figc{color:#000;text-align:center;position:absolute;left:0;width:100%;padding:2em}html body .modula .modula-item .jtg-social a{text-decoration:none;color:#fff;display:inline-block;margin:0 10px 0 0;padding:0;border:0;opacity:0;transition:opacity .3s}html body .modula .modula-item:hover .jtg-social a{opacity:1}html body .modula .modula-items .jtg-social{opacity:0;transition:opacity .1s;right:30px;position:absolute;bottom:20px;text-align:right;transition:all .3s}html body .modula .modula-items .jtg-social{opacity:1}html body .modula .modula-items .jtg-social a:last-of-type{margin-right:0}html body .modula .modula-item.effect-pufrobo p.description{margin-bottom:2em}html body .modula .modula-item.effect-pufrobo .figc{text-align:right}html body .modula .modula-item.effect-pufrobo .jtg-title,html body .modula .modula-item.effect-pufrobo p{position:absolute;right:30px;left:30px;padding:10px 0}html body .modula .modula-item:hover img,html body .modula .modula-items .modula-item.tg-loaded:hover img.pic{opacity:.8}html body .modula .modula-item.effect-pufrobo p{bottom:20%;line-height:1.5;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);letter-spacing:1px}html body .modula .modula-item.effect-pufrobo .jtg-title{top:10%;-webkit-transition:-webkit-transform .35s;transition:transform .35s;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}html body .modula .modula-item.effect-pufrobo:hover .jtg-title{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}html body .modula .modula-item.effect-pufrobo .jtg-title::after{position:absolute;top:80%;left:0;width:100%;height:4px;background:#fff;content:'';-webkit-transform:translate3d(0,40px,0);transform:translate3d(0,40px,0)}html body .modula .modula-item.effect-pufrobo .jtg-title::after,html body .modula .modula-item.effect-pufrobo p{opacity:0;-webkit-transition:opacity .35s,-webkit-transform .35s;transition:opacity .35s,transform .35s}html body .modula .modula-item.effect-pufrobo:hover .jtg-title::after,html body .modula .modula-item.effect-pufrobo:hover p{margin-top:10px;margin-bottom:5px;opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}html body .modula .modula-items .modula-item.effect-pufrobo .figc.no-title.no-description .jtg-title:after{display:none}html body .modula .modula-items .modula-item.effect-appear .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-comodo .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-crafty .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-curtain .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-fluid-up .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-hide .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-lens .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-pufrobo .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-quiet .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-reflex .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-seemo .figc .jtg-title:before{display:none}html body .modula .modula-items .modula-item>a{cursor:zoom-in}html body .modula-fancybox-container.modula-fancybox-is-open{z-index:99999999}html body .modula-fancybox-share__button--li{background:#0e76a8}html body .modula-fancybox-share__button--wa{background:#25d366}html body .modula.modula-columns .modula-item{display:flex;justify-content:center}html body .modula.modula-columns .modula-item .modula-item-content{position:relative}html body .modula.modula-columns .modula-items.grid-gallery .modula-item .modula-item-content{height:100%}html body .modula.modula-columns .modula-items.grid-gallery.justified-gallery .modula-item .modula-item-content{width:100%}html body .modula.modula-columns .modula-items.grid-gallery.justified-gallery .modula-item .modula-item-content .pic{position:absolute;top:50%;left:50%;margin:0;padding:0;border:none}html body .modula.modula-columns .modula-item.jg-filtered{display:none}html body .modula-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}html body .modula-row-cols-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}@media (min-width:576px){html body .modula-row-cols-sm-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-sm-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-sm-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-sm-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-sm-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-sm-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:768px){html body .modula-row-cols-md-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-md-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-md-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-md-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-md-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-md-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:992px){html body .modula-row-cols-lg-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-lg-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-lg-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-lg-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-lg-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-lg-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:1200px){html body .modula-row-cols-xl-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-xl-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-xl-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-xl-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-xl-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-xl-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}html body .modula .modula-items.grid-gallery .modula-item .figc{height:100%;top:0}html body div.modula-powered{text-align:right;font-size:14px;margin-right:5px}html body div.modula-powered svg.modula-logo{width:14px;position:relative;top:3px}html body div.modula-powered svg.modula-logo path{color:#58ab7e!important}html body div.modula-powered svg.modula-logo{display:inline-block}
1
+ html body .modula .modula-items .modula-item{position:absolute;overflow:hidden;box-sizing:border-box}html body .modula .modula-items .modula-item .modula-item-content{transition:transform .3s ease-out,opacity .2s linear,top .3s,left .6s;opacity:0}html body .modula .modula-items{position:relative;z-index:1;min-height:10px}html body .modula .modula-items .modula-item .modula-item-content>a{display:block;position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;background:0 0}html body .modula.modula-creative-gallery .modula-items .modula-item .modula-item-content,html body .modula.modula-custom-grid .modula-items .modula-item .modula-item-content{height:100%}html body .modula .modula-items .modula-item .jtg-social{z-index:10;font-size:0}html body .modula.modula-columns:not(.modula-loaded-scale) .modula-items .modula-item .modula-item-content,html body .modula:not(.modula-loaded-scale) .modula-items .modula-item.tg-loaded .modula-item-content,html body .modula:not(.modula-loaded-scale) .modula-items.justified-gallery .modula-item .modula-item-content{transform:scale(1) translate(0,0) rotate(0)!important;opacity:1}html body .modula .modula-items .modula-item img.pic{font-size:12px;position:absolute;max-width:999em;transition:width .3s,height .3s,transform .3s linear,opacity .2s linear}html body .modula.modula-columns .modula-items .modula-item img.pic{position:relative;max-width:100%;margin:0 auto}html body .modula .modula-items .modula-item.tg-loaded img.pic,html body .modula.modula-columns .modula-items .modula-item img.pic{display:block;opacity:1}html body .modula .modula-items .modula-item img.pic.lazyload,html body .modula .modula-items .modula-item img.pic.lazyloaded{display:block}html body .modula .modula-items .modula-item .caption .icon{font-size:14px;position:absolute;left:50%;top:50%;margin:-12px 0 0 -8px}html body .modula .modula-items .modula-item .figc{color:#fff;text-align:center;position:absolute;left:0;width:100%;padding:0;max-width:100%}html body .modula .modula-items .hidden .figc{display:none}html body .modula .modula-items .hidden:hover .figc{display:block}html body .modula .modula-items .visible .figc{display:block}html body .modula .modula-items .always-visible .figc{display:block}html body .modula .modula-items .visible:hover .figc{display:none}html body .modula .modula-items .caption span.text{display:block;padding:10px}html body .modula .modula-items .caption span.title{font-size:14px;font-weight:700}html body .modula .jtg-social a{box-shadow:none}html body .modula .jtg-social svg{width:20px;height:16px}html body .modula .modula-items .modula-item .jtg-title{margin:0}html body .modula .modula-items .modula-item p{margin:0;padding:0}html body .modula .figc{color:#000;text-align:center;position:absolute;left:0;width:100%;padding:2em}html body .modula .modula-item .jtg-social a{text-decoration:none;color:#fff;display:inline-block;margin:0 10px 0 0;padding:0;border:0;opacity:0;transition:opacity .3s}html body .modula .modula-item:hover .jtg-social a{opacity:1}html body .modula .modula-items .jtg-social{opacity:0;right:30px;position:absolute;bottom:20px;text-align:right;transition:all .3s}html body .et_pb_module_inner .modula .modula-items .jtg-social{transition:all .3s!important}html body .modula .modula-items .modula-item.effect-pufrobo .jtg-social a{margin-right:10px}@media all and (max-width:480px){html body .modula .modula-items .modula-item.effect-pufrobo .jtg-social{right:0;width:100%;text-align:center}html body .modula .modula-items .modula-item.effect-pufrobo .jtg-social a{padding:5px}}html body .modula .modula-items .jtg-social{opacity:1}html body .modula .modula-items .jtg-social a:last-of-type{margin-right:0}html body .modula .modula-item.effect-pufrobo p.description{margin-bottom:2em}html body .et_pb_module_inner .modula .modula-item.effect-pufrobo p.description{-webkit-transition:-webkit-transform .35s!important;transition:transform .35s!important}html body .modula .modula-item.effect-pufrobo .figc{text-align:right}html body .modula .modula-item.effect-pufrobo .jtg-title,html body .modula .modula-item.effect-pufrobo p{position:absolute;right:30px;left:30px;padding:10px 0}html body .modula .modula-item:hover img,html body .modula .modula-items .modula-item.tg-loaded:hover img.pic{opacity:.8}html body .modula .modula-item.effect-pufrobo p{bottom:20%;line-height:1.5;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);letter-spacing:1px}html body .modula .modula-items .modula-item.effect-pufrobo .jtg-title{top:10%;-webkit-transition:-webkit-transform .35s;transition:transform .35s;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}html body .et_pb_module_inner .modula .modula-items .modula-item.effect-pufrobo .jtg-title{-webkit-transition:-webkit-transform .35s!important;transition:transform .35s!important}html body .modula .modula-item.effect-pufrobo:hover .jtg-title{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}html body .modula .modula-item.effect-pufrobo .jtg-title::after{position:absolute;top:80%;left:0;width:100%;height:4px;background:#fff;content:'';-webkit-transform:translate3d(0,40px,0);transform:translate3d(0,40px,0)}html body .modula .modula-item.effect-pufrobo .jtg-title::after,html body .modula .modula-item.effect-pufrobo p{opacity:0;-webkit-transition:opacity .35s,-webkit-transform .35s;transition:opacity .35s,transform .35s}html body .modula .modula-item.effect-pufrobo:hover .jtg-title::after,html body .modula .modula-item.effect-pufrobo:hover p{margin-top:10px;margin-bottom:5px;opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}html body .modula .modula-items .modula-item.effect-pufrobo .figc.no-title.no-description .jtg-title:after{display:none}html body .modula .modula-items .modula-item.effect-appear .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-comodo .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-crafty .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-curtain .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-fluid-up .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-hide .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-lens .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-pufrobo .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-quiet .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-reflex .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-seemo .figc .jtg-title:before{display:none}html body .modula .modula-items .modula-item>a{cursor:zoom-in}html body .modula-fancybox-container.modula-fancybox-is-open{z-index:99999999}html body .modula-fancybox-share__button--li{background:#0e76a8}html body .modula-fancybox-share__button--wa{background:#25d366}html body .modula.modula-columns .modula-item{display:flex;justify-content:center}html body .modula.modula-columns .modula-item .modula-item-content{position:relative}html body .modula.modula-columns .modula-items.grid-gallery .modula-item .modula-item-content{height:100%}html body .modula.modula-columns .modula-items.grid-gallery.justified-gallery .modula-item .modula-item-content{width:100%}html body .modula.modula-columns .modula-items.grid-gallery.justified-gallery .modula-item .modula-item-content .pic{position:absolute;top:50%;left:50%;margin:0;padding:0;border:none}html body .modula.modula-columns .modula-item.jg-filtered{display:none}html body .modula-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}html body .modula-row-cols-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}@media (min-width:576px){html body .modula-row-cols-sm-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-sm-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-sm-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-sm-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-sm-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-sm-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:768px){html body .modula-row-cols-md-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-md-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-md-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-md-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-md-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-md-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:992px){html body .modula-row-cols-lg-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-lg-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-lg-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-lg-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-lg-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-lg-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:1200px){html body .modula-row-cols-xl-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-xl-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-xl-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-xl-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-xl-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-xl-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}html body .modula .modula-items.grid-gallery .modula-item .figc{height:100%;top:0}html body div.modula-powered{text-align:right;font-size:14px;margin-right:5px}html body div.modula-powered svg.modula-logo{width:14px;position:relative;top:3px}html body div.modula-powered svg.modula-logo path{color:#58ab7e!important}html body div.modula-powered svg.modula-logo{display:inline-block}
assets/js/admin/slick.js DELETED
@@ -1,3037 +0,0 @@
1
- /*
2
- _ _ _ _
3
- ___| (_) ___| | __ (_)___
4
- / __| | |/ __| |/ / | / __|
5
- \__ \ | | (__| < _ | \__ \
6
- |___/_|_|\___|_|\_(_)/ |___/
7
- |__/
8
-
9
- Version: 1.9.0
10
- Author: Ken Wheeler
11
- Website: http://kenwheeler.github.io
12
- Docs: http://kenwheeler.github.io/slick
13
- Repo: http://github.com/kenwheeler/slick
14
- Issues: http://github.com/kenwheeler/slick/issues
15
-
16
- */
17
- /* global window, document, define, jQuery, setInterval, clearInterval */
18
- ;(function(factory) {
19
- 'use strict';
20
- if (typeof define === 'function' && define.amd) {
21
- define(['jquery'], factory);
22
- } else if (typeof exports !== 'undefined') {
23
- module.exports = factory(require('jquery'));
24
- } else {
25
- factory(jQuery);
26
- }
27
-
28
- }(function($) {
29
- 'use strict';
30
- var Slick = window.Slick || {};
31
-
32
- Slick = (function() {
33
-
34
- var instanceUid = 0;
35
-
36
- function Slick(element, settings) {
37
-
38
- var _ = this, dataSettings;
39
-
40
- _.defaults = {
41
- accessibility: true,
42
- adaptiveHeight: false,
43
- appendArrows: $(element),
44
- appendDots: $(element),
45
- arrows: true,
46
- asNavFor: null,
47
- prevArrow: '<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',
48
- nextArrow: '<button class="slick-next" aria-label="Next" type="button">Next</button>',
49
- autoplay: false,
50
- autoplaySpeed: 3000,
51
- centerMode: false,
52
- centerPadding: '50px',
53
- cssEase: 'ease',
54
- customPaging: function(slider, i) {
55
- return $('<button type="button" />').text(i + 1);
56
- },
57
- dots: false,
58
- dotsClass: 'slick-dots',
59
- draggable: true,
60
- easing: 'linear',
61
- edgeFriction: 0.35,
62
- fade: false,
63
- focusOnSelect: false,
64
- focusOnChange: false,
65
- infinite: true,
66
- initialSlide: 0,
67
- lazyLoad: 'ondemand',
68
- mobileFirst: false,
69
- pauseOnHover: true,
70
- pauseOnFocus: true,
71
- pauseOnDotsHover: false,
72
- respondTo: 'window',
73
- responsive: null,
74
- rows: 1,
75
- rtl: false,
76
- slide: '',
77
- slidesPerRow: 1,
78
- slidesToShow: 1,
79
- slidesToScroll: 1,
80
- speed: 500,
81
- swipe: true,
82
- swipeToSlide: false,
83
- touchMove: true,
84
- touchThreshold: 5,
85
- useCSS: true,
86
- useTransform: true,
87
- variableWidth: false,
88
- vertical: false,
89
- verticalSwiping: false,
90
- waitForAnimate: true,
91
- zIndex: 1000
92
- };
93
-
94
- _.initials = {
95
- animating: false,
96
- dragging: false,
97
- autoPlayTimer: null,
98
- currentDirection: 0,
99
- currentLeft: null,
100
- currentSlide: 0,
101
- direction: 1,
102
- $dots: null,
103
- listWidth: null,
104
- listHeight: null,
105
- loadIndex: 0,
106
- $nextArrow: null,
107
- $prevArrow: null,
108
- scrolling: false,
109
- slideCount: null,
110
- slideWidth: null,
111
- $slideTrack: null,
112
- $slides: null,
113
- sliding: false,
114
- slideOffset: 0,
115
- swipeLeft: null,
116
- swiping: false,
117
- $list: null,
118
- touchObject: {},
119
- transformsEnabled: false,
120
- unslicked: false
121
- };
122
-
123
- $.extend(_, _.initials);
124
-
125
- _.activeBreakpoint = null;
126
- _.animType = null;
127
- _.animProp = null;
128
- _.breakpoints = [];
129
- _.breakpointSettings = [];
130
- _.cssTransitions = false;
131
- _.focussed = false;
132
- _.interrupted = false;
133
- _.hidden = 'hidden';
134
- _.paused = true;
135
- _.positionProp = null;
136
- _.respondTo = null;
137
- _.rowCount = 1;
138
- _.shouldClick = true;
139
- _.$slider = $(element);
140
- _.$slidesCache = null;
141
- _.transformType = null;
142
- _.transitionType = null;
143
- _.visibilityChange = 'visibilitychange';
144
- _.windowWidth = 0;
145
- _.windowTimer = null;
146
-
147
- dataSettings = $(element).data('slick') || {};
148
-
149
- _.options = $.extend({}, _.defaults, settings, dataSettings);
150
-
151
- _.currentSlide = _.options.initialSlide;
152
-
153
- _.originalSettings = _.options;
154
-
155
- if (typeof document.mozHidden !== 'undefined') {
156
- _.hidden = 'mozHidden';
157
- _.visibilityChange = 'mozvisibilitychange';
158
- } else if (typeof document.webkitHidden !== 'undefined') {
159
- _.hidden = 'webkitHidden';
160
- _.visibilityChange = 'webkitvisibilitychange';
161
- }
162
-
163
- _.autoPlay = $.proxy(_.autoPlay, _);
164
- _.autoPlayClear = $.proxy(_.autoPlayClear, _);
165
- _.autoPlayIterator = $.proxy(_.autoPlayIterator, _);
166
- _.changeSlide = $.proxy(_.changeSlide, _);
167
- _.clickHandler = $.proxy(_.clickHandler, _);
168
- _.selectHandler = $.proxy(_.selectHandler, _);
169
- _.setPosition = $.proxy(_.setPosition, _);
170
- _.swipeHandler = $.proxy(_.swipeHandler, _);
171
- _.dragHandler = $.proxy(_.dragHandler, _);
172
- _.keyHandler = $.proxy(_.keyHandler, _);
173
-
174
- _.instanceUid = instanceUid++;
175
-
176
- // A simple way to check for HTML strings
177
- // Strict HTML recognition (must start with <)
178
- // Extracted from jQuery v1.11 source
179
- _.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/;
180
-
181
-
182
- _.registerBreakpoints();
183
- _.init(true);
184
-
185
- }
186
-
187
- return Slick;
188
-
189
- }());
190
-
191
- Slick.prototype.activateADA = function() {
192
- var _ = this;
193
-
194
- _.$slideTrack.find('.slick-active').attr({
195
- 'aria-hidden': 'false'
196
- }).find('a, input, button, select').attr({
197
- 'tabindex': '0'
198
- });
199
-
200
- };
201
-
202
- Slick.prototype.addSlide = Slick.prototype.slickAdd = function(markup, index, addBefore) {
203
-
204
- var _ = this;
205
-
206
- if (typeof(index) === 'boolean') {
207
- addBefore = index;
208
- index = null;
209
- } else if (index < 0 || (index >= _.slideCount)) {
210
- return false;
211
- }
212
-
213
- _.unload();
214
-
215
- if (typeof(index) === 'number') {
216
- if (index === 0 && _.$slides.length === 0) {
217
- $(markup).appendTo(_.$slideTrack);
218
- } else if (addBefore) {
219
- $(markup).insertBefore(_.$slides.eq(index));
220
- } else {
221
- $(markup).insertAfter(_.$slides.eq(index));
222
- }
223
- } else {
224
- if (addBefore === true) {
225
- $(markup).prependTo(_.$slideTrack);
226
- } else {
227
- $(markup).appendTo(_.$slideTrack);
228
- }
229
- }
230
-
231
- _.$slides = _.$slideTrack.children(this.options.slide);
232
-
233
- _.$slideTrack.children(this.options.slide).detach();
234
-
235
- _.$slideTrack.append(_.$slides);
236
-
237
- _.$slides.each(function(index, element) {
238
- $(element).attr('data-slick-index', index);
239
- });
240
-
241
- _.$slidesCache = _.$slides;
242
-
243
- _.reinit();
244
-
245
- };
246
-
247
- Slick.prototype.animateHeight = function() {
248
- var _ = this;
249
- if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) {
250
- var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true);
251
- _.$list.animate({
252
- height: targetHeight
253
- }, _.options.speed);
254
- }
255
- };
256
-
257
- Slick.prototype.animateSlide = function(targetLeft, callback) {
258
-
259
- var animProps = {},
260
- _ = this;
261
-
262
- _.animateHeight();
263
-
264
- if (_.options.rtl === true && _.options.vertical === false) {
265
- targetLeft = -targetLeft;
266
- }
267
- if (_.transformsEnabled === false) {
268
- if (_.options.vertical === false) {
269
- _.$slideTrack.animate({
270
- left: targetLeft
271
- }, _.options.speed, _.options.easing, callback);
272
- } else {
273
- _.$slideTrack.animate({
274
- top: targetLeft
275
- }, _.options.speed, _.options.easing, callback);
276
- }
277
-
278
- } else {
279
-
280
- if (_.cssTransitions === false) {
281
- if (_.options.rtl === true) {
282
- _.currentLeft = -(_.currentLeft);
283
- }
284
- $({
285
- animStart: _.currentLeft
286
- }).animate({
287
- animStart: targetLeft
288
- }, {
289
- duration: _.options.speed,
290
- easing: _.options.easing,
291
- step: function(now) {
292
- now = Math.ceil(now);
293
- if (_.options.vertical === false) {
294
- animProps[_.animType] = 'translate(' +
295
- now + 'px, 0px)';
296
- _.$slideTrack.css(animProps);
297
- } else {
298
- animProps[_.animType] = 'translate(0px,' +
299
- now + 'px)';
300
- _.$slideTrack.css(animProps);
301
- }
302
- },
303
- complete: function() {
304
- if (callback) {
305
- callback.call();
306
- }
307
- }
308
- });
309
-
310
- } else {
311
-
312
- _.applyTransition();
313
- targetLeft = Math.ceil(targetLeft);
314
-
315
- if (_.options.vertical === false) {
316
- animProps[_.animType] = 'translate3d(' + targetLeft + 'px, 0px, 0px)';
317
- } else {
318
- animProps[_.animType] = 'translate3d(0px,' + targetLeft + 'px, 0px)';
319
- }
320
- _.$slideTrack.css(animProps);
321
-
322
- if (callback) {
323
- setTimeout(function() {
324
-
325
- _.disableTransition();
326
-
327
- callback.call();
328
- }, _.options.speed);
329
- }
330
-
331
- }
332
-
333
- }
334
-
335
- };
336
-
337
- Slick.prototype.getNavTarget = function() {
338
-
339
- var _ = this,
340
- asNavFor = _.options.asNavFor;
341
-
342
- if ( asNavFor && asNavFor !== null ) {
343
- asNavFor = $(asNavFor).not(_.$slider);
344
- }
345
-
346
- return asNavFor;
347
-
348
- };
349
-
350
- Slick.prototype.asNavFor = function(index) {
351
-
352
- var _ = this,
353
- asNavFor = _.getNavTarget();
354
-
355
- if ( asNavFor !== null && typeof asNavFor === 'object' ) {
356
- asNavFor.each(function() {
357
- var target = $(this).slick('getSlick');
358
- if(!target.unslicked) {
359
- target.slideHandler(index, true);
360
- }
361
- });
362
- }
363
-
364
- };
365
-
366
- Slick.prototype.applyTransition = function(slide) {
367
-
368
- var _ = this,
369
- transition = {};
370
-
371
- if (_.options.fade === false) {
372
- transition[_.transitionType] = _.transformType + ' ' + _.options.speed + 'ms ' + _.options.cssEase;
373
- } else {
374
- transition[_.transitionType] = 'opacity ' + _.options.speed + 'ms ' + _.options.cssEase;
375
- }
376
-
377
- if (_.options.fade === false) {
378
- _.$slideTrack.css(transition);
379
- } else {
380
- _.$slides.eq(slide).css(transition);
381
- }
382
-
383
- };
384
-
385
- Slick.prototype.autoPlay = function() {
386
-
387
- var _ = this;
388
-
389
- _.autoPlayClear();
390
-
391
- if ( _.slideCount > _.options.slidesToShow ) {
392
- _.autoPlayTimer = setInterval( _.autoPlayIterator, _.options.autoplaySpeed );
393
- }
394
-
395
- };
396
-
397
- Slick.prototype.autoPlayClear = function() {
398
-
399
- var _ = this;
400
-
401
- if (_.autoPlayTimer) {
402
- clearInterval(_.autoPlayTimer);
403
- }
404
-
405
- };
406
-
407
- Slick.prototype.autoPlayIterator = function() {
408
-
409
- var _ = this,
410
- slideTo = _.currentSlide + _.options.slidesToScroll;
411
-
412
- if ( !_.paused && !_.interrupted && !_.focussed ) {
413
-
414
- if ( _.options.infinite === false ) {
415
-
416
- if ( _.direction === 1 && ( _.currentSlide + 1 ) === ( _.slideCount - 1 )) {
417
- _.direction = 0;
418
- }
419
-
420
- else if ( _.direction === 0 ) {
421
-
422
- slideTo = _.currentSlide - _.options.slidesToScroll;
423
-
424
- if ( _.currentSlide - 1 === 0 ) {
425
- _.direction = 1;
426
- }
427
-
428
- }
429
-
430
- }
431
-
432
- _.slideHandler( slideTo );
433
-
434
- }
435
-
436
- };
437
-
438
- Slick.prototype.buildArrows = function() {
439
-
440
- var _ = this;
441
-
442
- if (_.options.arrows === true ) {
443
-
444
- _.$prevArrow = $(_.options.prevArrow).addClass('slick-arrow');
445
- _.$nextArrow = $(_.options.nextArrow).addClass('slick-arrow');
446
-
447
- if( _.slideCount > _.options.slidesToShow ) {
448
-
449
- _.$prevArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');
450
- _.$nextArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');
451
-
452
- if (_.htmlExpr.test(_.options.prevArrow)) {
453
- _.$prevArrow.prependTo(_.options.appendArrows);
454
- }
455
-
456
- if (_.htmlExpr.test(_.options.nextArrow)) {
457
- _.$nextArrow.appendTo(_.options.appendArrows);
458
- }
459
-
460
- if (_.options.infinite !== true) {
461
- _.$prevArrow
462
- .addClass('slick-disabled')
463
- .attr('aria-disabled', 'true');
464
- }
465
-
466
- } else {
467
-
468
- _.$prevArrow.add( _.$nextArrow )
469
-
470
- .addClass('slick-hidden')
471
- .attr({
472
- 'aria-disabled': 'true',
473
- 'tabindex': '-1'
474
- });
475
-
476
- }
477
-
478
- }
479
-
480
- };
481
-
482
- Slick.prototype.buildDots = function() {
483
-
484
- var _ = this,
485
- i, dot;
486
-
487
- if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
488
-
489
- _.$slider.addClass('slick-dotted');
490
-
491
- dot = $('<ul />').addClass(_.options.dotsClass);
492
-
493
- for (i = 0; i <= _.getDotCount(); i += 1) {
494
- dot.append($('<li />').append(_.options.customPaging.call(this, _, i)));
495
- }
496
-
497
- _.$dots = dot.appendTo(_.options.appendDots);
498
-
499
- _.$dots.find('li').first().addClass('slick-active');
500
-
501
- }
502
-
503
- };
504
-
505
- Slick.prototype.buildOut = function() {
506
-
507
- var _ = this;
508
-
509
- _.$slides =
510
- _.$slider
511
- .children( _.options.slide + ':not(.slick-cloned)')
512
- .addClass('slick-slide');
513
-
514
- _.slideCount = _.$slides.length;
515
-
516
- _.$slides.each(function(index, element) {
517
- $(element)
518
- .attr('data-slick-index', index)
519
- .data('originalStyling', $(element).attr('style') || '');
520
- });
521
-
522
- _.$slider.addClass('slick-slider');
523
-
524
- _.$slideTrack = (_.slideCount === 0) ?
525
- $('<div class="slick-track"/>').appendTo(_.$slider) :
526
- _.$slides.wrapAll('<div class="slick-track"/>').parent();
527
-
528
- _.$list = _.$slideTrack.wrap(
529
- '<div class="slick-list"/>').parent();
530
- _.$slideTrack.css('opacity', 0);
531
-
532
- if (_.options.centerMode === true || _.options.swipeToSlide === true) {
533
- _.options.slidesToScroll = 1;
534
- }
535
-
536
- $('img[data-lazy]', _.$slider).not('[src]').addClass('slick-loading');
537
-
538
- _.setupInfinite();
539
-
540
- _.buildArrows();
541
-
542
- _.buildDots();
543
-
544
- _.updateDots();
545
-
546
-
547
- _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0);
548
-
549
- if (_.options.draggable === true) {
550
- _.$list.addClass('draggable');
551
- }
552
-
553
- };
554
-
555
- Slick.prototype.buildRows = function() {
556
-
557
- var _ = this, a, b, c, newSlides, numOfSlides, originalSlides,slidesPerSection;
558
-
559
- newSlides = document.createDocumentFragment();
560
- originalSlides = _.$slider.children();
561
-
562
- if(_.options.rows > 0) {
563
-
564
- slidesPerSection = _.options.slidesPerRow * _.options.rows;
565
- numOfSlides = Math.ceil(
566
- originalSlides.length / slidesPerSection
567
- );
568
-
569
- for(a = 0; a < numOfSlides; a++){
570
- var slide = document.createElement('div');
571
- for(b = 0; b < _.options.rows; b++) {
572
- var row = document.createElement('div');
573
- for(c = 0; c < _.options.slidesPerRow; c++) {
574
- var target = (a * slidesPerSection + ((b * _.options.slidesPerRow) + c));
575
- if (originalSlides.get(target)) {
576
- row.appendChild(originalSlides.get(target));
577
- }
578
- }
579
- slide.appendChild(row);
580
- }
581
- newSlides.appendChild(slide);
582
- }
583
-
584
- _.$slider.empty().append(newSlides);
585
- _.$slider.children().children().children()
586
- .css({
587
- 'width':(100 / _.options.slidesPerRow) + '%',
588
- 'display': 'inline-block'
589
- });
590
-
591
- }
592
-
593
- };
594
-
595
- Slick.prototype.checkResponsive = function(initial, forceUpdate) {
596
-
597
- var _ = this,
598
- breakpoint, targetBreakpoint, respondToWidth, triggerBreakpoint = false;
599
- var sliderWidth = _.$slider.width();
600
- var windowWidth = window.innerWidth || $(window).width();
601
-
602
- if (_.respondTo === 'window') {
603
- respondToWidth = windowWidth;
604
- } else if (_.respondTo === 'slider') {
605
- respondToWidth = sliderWidth;
606
- } else if (_.respondTo === 'min') {
607
- respondToWidth = Math.min(windowWidth, sliderWidth);
608
- }
609
-
610
- if ( _.options.responsive &&
611
- _.options.responsive.length &&
612
- _.options.responsive !== null) {
613
-
614
- targetBreakpoint = null;
615
-
616
- for (breakpoint in _.breakpoints) {
617
- if (_.breakpoints.hasOwnProperty(breakpoint)) {
618
- if (_.originalSettings.mobileFirst === false) {
619
- if (respondToWidth < _.breakpoints[breakpoint]) {
620
- targetBreakpoint = _.breakpoints[breakpoint];
621
- }
622
- } else {
623
- if (respondToWidth > _.breakpoints[breakpoint]) {
624
- targetBreakpoint = _.breakpoints[breakpoint];
625
- }
626
- }
627
- }
628
- }
629
-
630
- if (targetBreakpoint !== null) {
631
- if (_.activeBreakpoint !== null) {
632
- if (targetBreakpoint !== _.activeBreakpoint || forceUpdate) {
633
- _.activeBreakpoint =
634
- targetBreakpoint;
635
- if (_.breakpointSettings[targetBreakpoint] === 'unslick') {
636
- _.unslick(targetBreakpoint);
637
- } else {
638
- _.options = $.extend({}, _.originalSettings,
639
- _.breakpointSettings[
640
- targetBreakpoint]);
641
- if (initial === true) {
642
- _.currentSlide = _.options.initialSlide;
643
- }
644
- _.refresh(initial);
645
- }
646
- triggerBreakpoint = targetBreakpoint;
647
- }
648
- } else {
649
- _.activeBreakpoint = targetBreakpoint;
650
- if (_.breakpointSettings[targetBreakpoint] === 'unslick') {
651
- _.unslick(targetBreakpoint);
652
- } else {
653
- _.options = $.extend({}, _.originalSettings,
654
- _.breakpointSettings[
655
- targetBreakpoint]);
656
- if (initial === true) {
657
- _.currentSlide = _.options.initialSlide;
658
- }
659
- _.refresh(initial);
660
- }
661
- triggerBreakpoint = targetBreakpoint;
662
- }
663
- } else {
664
- if (_.activeBreakpoint !== null) {
665
- _.activeBreakpoint = null;
666
- _.options = _.originalSettings;
667
- if (initial === true) {
668
- _.currentSlide = _.options.initialSlide;
669
- }
670
- _.refresh(initial);
671
- triggerBreakpoint = targetBreakpoint;
672
- }
673
- }
674
-
675
- // only trigger breakpoints during an actual break. not on initialize.
676
- if( !initial && triggerBreakpoint !== false ) {
677
- _.$slider.trigger('breakpoint', [_, triggerBreakpoint]);
678
- }
679
- }
680
-
681
- };
682
-
683
- Slick.prototype.changeSlide = function(event, dontAnimate) {
684
-
685
- var _ = this,
686
- $target = $(event.currentTarget),
687
- indexOffset, slideOffset, unevenOffset;
688
-
689
- // If target is a link, prevent default action.
690
- if($target.is('a')) {
691
- event.preventDefault();
692
- }
693
-
694
- // If target is not the <li> element (ie: a child), find the <li>.
695
- if(!$target.is('li')) {
696
- $target = $target.closest('li');
697
- }
698
-
699
- unevenOffset = (_.slideCount % _.options.slidesToScroll !== 0);
700
- indexOffset = unevenOffset ? 0 : (_.slideCount - _.currentSlide) % _.options.slidesToScroll;
701
-
702
- switch (event.data.message) {
703
-
704
- case 'previous':
705
- slideOffset = indexOffset === 0 ? _.options.slidesToScroll : _.options.slidesToShow - indexOffset;
706
- if (_.slideCount > _.options.slidesToShow) {
707
- _.slideHandler(_.currentSlide - slideOffset, false, dontAnimate);
708
- }
709
- break;
710
-
711
- case 'next':
712
- slideOffset = indexOffset === 0 ? _.options.slidesToScroll : indexOffset;
713
- if (_.slideCount > _.options.slidesToShow) {
714
- _.slideHandler(_.currentSlide + slideOffset, false, dontAnimate);
715
- }
716
- break;
717
-
718
- case 'index':
719
- var index = event.data.index === 0 ? 0 :
720
- event.data.index || $target.index() * _.options.slidesToScroll;
721
-
722
- _.slideHandler(_.checkNavigable(index), false, dontAnimate);
723
- $target.children().trigger('focus');
724
- break;
725
-
726
- default:
727
- return;
728
- }
729
-
730
- };
731
-
732
- Slick.prototype.checkNavigable = function(index) {
733
-
734
- var _ = this,
735
- navigables, prevNavigable;
736
-
737
- navigables = _.getNavigableIndexes();
738
- prevNavigable = 0;
739
- if (index > navigables[navigables.length - 1]) {
740
- index = navigables[navigables.length - 1];
741
- } else {
742
- for (var n in navigables) {
743
- if (index < navigables[n]) {
744
- index = prevNavigable;
745
- break;
746
- }
747
- prevNavigable = navigables[n];
748
- }
749
- }
750
-
751
- return index;
752
- };
753
-
754
- Slick.prototype.cleanUpEvents = function() {
755
-
756
- var _ = this;
757
-
758
- if (_.options.dots && _.$dots !== null) {
759
-
760
- $('li', _.$dots)
761
- .off('click.slick', _.changeSlide)
762
- .off('mouseenter.slick', $.proxy(_.interrupt, _, true))
763
- .off('mouseleave.slick', $.proxy(_.interrupt, _, false));
764
-
765
- if (_.options.accessibility === true) {
766
- _.$dots.off('keydown.slick', _.keyHandler);
767
- }
768
- }
769
-
770
- _.$slider.off('focus.slick blur.slick');
771
-
772
- if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
773
- _.$prevArrow && _.$prevArrow.off('click.slick', _.changeSlide);
774
- _.$nextArrow && _.$nextArrow.off('click.slick', _.changeSlide);
775
-
776
- if (_.options.accessibility === true) {
777
- _.$prevArrow && _.$prevArrow.off('keydown.slick', _.keyHandler);
778
- _.$nextArrow && _.$nextArrow.off('keydown.slick', _.keyHandler);
779
- }
780
- }
781
-
782
- _.$list.off('touchstart.slick mousedown.slick', _.swipeHandler);
783
- _.$list.off('touchmove.slick mousemove.slick', _.swipeHandler);
784
- _.$list.off('touchend.slick mouseup.slick', _.swipeHandler);
785
- _.$list.off('touchcancel.slick mouseleave.slick', _.swipeHandler);
786
-
787
- _.$list.off('click.slick', _.clickHandler);
788
-
789
- $(document).off(_.visibilityChange, _.visibility);
790
-
791
- _.cleanUpSlideEvents();
792
-
793
- if (_.options.accessibility === true) {
794
- _.$list.off('keydown.slick', _.keyHandler);
795
- }
796
-
797
- if (_.options.focusOnSelect === true) {
798
- $(_.$slideTrack).children().off('click.slick', _.selectHandler);
799
- }
800
-
801
- $(window).off('orientationchange.slick.slick-' + _.instanceUid, _.orientationChange);
802
-
803
- $(window).off('resize.slick.slick-' + _.instanceUid, _.resize);
804
-
805
- $('[draggable!=true]', _.$slideTrack).off('dragstart', _.preventDefault);
806
-
807
- $(window).off('load.slick.slick-' + _.instanceUid, _.setPosition);
808
-
809
- };
810
-
811
- Slick.prototype.cleanUpSlideEvents = function() {
812
-
813
- var _ = this;
814
-
815
- _.$list.off('mouseenter.slick', $.proxy(_.interrupt, _, true));
816
- _.$list.off('mouseleave.slick', $.proxy(_.interrupt, _, false));
817
-
818
- };
819
-
820
- Slick.prototype.cleanUpRows = function() {
821
-
822
- var _ = this, originalSlides;
823
-
824
- if(_.options.rows > 0) {
825
- originalSlides = _.$slides.children().children();
826
- originalSlides.removeAttr('style');
827
- _.$slider.empty().append(originalSlides);
828
- }
829
-
830
- };
831
-
832
- Slick.prototype.clickHandler = function(event) {
833
-
834
- var _ = this;
835
-
836
- if (_.shouldClick === false) {
837
- event.stopImmediatePropagation();
838
- event.stopPropagation();
839
- event.preventDefault();
840
- }
841
-
842
- };
843
-
844
- Slick.prototype.destroy = function(refresh) {
845
-
846
- var _ = this;
847
-
848
- _.autoPlayClear();
849
-
850
- _.touchObject = {};
851
-
852
- _.cleanUpEvents();
853
-
854
- $('.slick-cloned', _.$slider).detach();
855
-
856
- if (_.$dots) {
857
- _.$dots.remove();
858
- }
859
-
860
- if ( _.$prevArrow && _.$prevArrow.length ) {
861
-
862
- _.$prevArrow
863
- .removeClass('slick-disabled slick-arrow slick-hidden')
864
- .removeAttr('aria-hidden aria-disabled tabindex')
865
- .css('display','');
866
-
867
- if ( _.htmlExpr.test( _.options.prevArrow )) {
868
- _.$prevArrow.remove();
869
- }
870
- }
871
-
872
- if ( _.$nextArrow && _.$nextArrow.length ) {
873
-
874
- _.$nextArrow
875
- .removeClass('slick-disabled slick-arrow slick-hidden')
876
- .removeAttr('aria-hidden aria-disabled tabindex')
877
- .css('display','');
878
-
879
- if ( _.htmlExpr.test( _.options.nextArrow )) {
880
- _.$nextArrow.remove();
881
- }
882
- }
883
-
884
-
885
- if (_.$slides) {
886
-
887
- _.$slides
888
- .removeClass('slick-slide slick-active slick-center slick-visible slick-current')
889
- .removeAttr('aria-hidden')
890
- .removeAttr('data-slick-index')
891
- .each(function(){
892
- $(this).attr('style', $(this).data('originalStyling'));
893
- });
894
-
895
- _.$slideTrack.children(this.options.slide).detach();
896
-
897
- _.$slideTrack.detach();
898
-
899
- _.$list.detach();
900
-
901
- _.$slider.append(_.$slides);
902
- }
903
-
904
- _.cleanUpRows();
905
-
906
- _.$slider.removeClass('slick-slider');
907
- _.$slider.removeClass('slick-initialized');
908
- _.$slider.removeClass('slick-dotted');
909
-
910
- _.unslicked = true;
911
-
912
- if(!refresh) {
913
- _.$slider.trigger('destroy', [_]);
914
- }
915
-
916
- };
917
-
918
- Slick.prototype.disableTransition = function(slide) {
919
-
920
- var _ = this,
921
- transition = {};
922
-
923
- transition[_.transitionType] = '';
924
-
925
- if (_.options.fade === false) {
926
- _.$slideTrack.css(transition);
927
- } else {
928
- _.$slides.eq(slide).css(transition);
929
- }
930
-
931
- };
932
-
933
- Slick.prototype.fadeSlide = function(slideIndex, callback) {
934
-
935
- var _ = this;
936
-
937
- if (_.cssTransitions === false) {
938
-
939
- _.$slides.eq(slideIndex).css({
940
- zIndex: _.options.zIndex
941
- });
942
-
943
- _.$slides.eq(slideIndex).animate({
944
- opacity: 1
945
- }, _.options.speed, _.options.easing, callback);
946
-
947
- } else {
948
-
949
- _.applyTransition(slideIndex);
950
-
951
- _.$slides.eq(slideIndex).css({
952
- opacity: 1,
953
- zIndex: _.options.zIndex
954
- });
955
-
956
- if (callback) {
957
- setTimeout(function() {
958
-
959
- _.disableTransition(slideIndex);
960
-
961
- callback.call();
962
- }, _.options.speed);
963
- }
964
-
965
- }
966
-
967
- };
968
-
969
- Slick.prototype.fadeSlideOut = function(slideIndex) {
970
-
971
- var _ = this;
972
-
973
- if (_.cssTransitions === false) {
974
-
975
- _.$slides.eq(slideIndex).animate({
976
- opacity: 0,
977
- zIndex: _.options.zIndex - 2
978
- }, _.options.speed, _.options.easing);
979
-
980
- } else {
981
-
982
- _.applyTransition(slideIndex);
983
-
984
- _.$slides.eq(slideIndex).css({
985
- opacity: 0,
986
- zIndex: _.options.zIndex - 2
987
- });
988
-
989
- }
990
-
991
- };
992
-
993
- Slick.prototype.filterSlides = Slick.prototype.slickFilter = function(filter) {
994
-
995
- var _ = this;
996
-
997
- if (filter !== null) {
998
-
999
- _.$slidesCache = _.$slides;
1000
-
1001
- _.unload();
1002
-
1003
- _.$slideTrack.children(this.options.slide).detach();
1004
-
1005
- _.$slidesCache.filter(filter).appendTo(_.$slideTrack);
1006
-
1007
- _.reinit();
1008
-
1009
- }
1010
-
1011
- };
1012
-
1013
- Slick.prototype.focusHandler = function() {
1014
-
1015
- var _ = this;
1016
-
1017
- // If any child element receives focus within the slider we need to pause the autoplay
1018
- _.$slider
1019
- .off('focus.slick blur.slick')
1020
- .on(
1021
- 'focus.slick',
1022
- '*',
1023
- function(event) {
1024
- var $sf = $(this);
1025
-
1026
- setTimeout(function() {
1027
- if( _.options.pauseOnFocus ) {
1028
- if ($sf.is(':focus')) {
1029
- _.focussed = true;
1030
- _.autoPlay();
1031
- }
1032
- }
1033
- }, 0);
1034
- }
1035
- ).on(
1036
- 'blur.slick',
1037
- '*',
1038
- function(event) {
1039
- var $sf = $(this);
1040
-
1041
- // When a blur occurs on any elements within the slider we become unfocused
1042
- if( _.options.pauseOnFocus ) {
1043
- _.focussed = false;
1044
- _.autoPlay();
1045
- }
1046
- }
1047
- );
1048
- };
1049
-
1050
- Slick.prototype.getCurrent = Slick.prototype.slickCurrentSlide = function() {
1051
-
1052
- var _ = this;
1053
- return _.currentSlide;
1054
-
1055
- };
1056
-
1057
- Slick.prototype.getDotCount = function() {
1058
-
1059
- var _ = this;
1060
-
1061
- var breakPoint = 0;
1062
- var counter = 0;
1063
- var pagerQty = 0;
1064
-
1065
- if (_.options.infinite === true) {
1066
- if (_.slideCount <= _.options.slidesToShow) {
1067
- ++pagerQty;
1068
- } else {
1069
- while (breakPoint < _.slideCount) {
1070
- ++pagerQty;
1071
- breakPoint = counter + _.options.slidesToScroll;
1072
- counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1073
- }
1074
- }
1075
- } else if (_.options.centerMode === true) {
1076
- pagerQty = _.slideCount;
1077
- } else if(!_.options.asNavFor) {
1078
- pagerQty = 1 + Math.ceil((_.slideCount - _.options.slidesToShow) / _.options.slidesToScroll);
1079
- }else {
1080
- while (breakPoint < _.slideCount) {
1081
- ++pagerQty;
1082
- breakPoint = counter + _.options.slidesToScroll;
1083
- counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1084
- }
1085
- }
1086
-
1087
- return pagerQty - 1;
1088
-
1089
- };
1090
-
1091
- Slick.prototype.getLeft = function(slideIndex) {
1092
-
1093
- var _ = this,
1094
- targetLeft,
1095
- verticalHeight,
1096
- verticalOffset = 0,
1097
- targetSlide,
1098
- coef;
1099
-
1100
- _.slideOffset = 0;
1101
- verticalHeight = _.$slides.first().outerHeight(true);
1102
-
1103
- if (_.options.infinite === true) {
1104
- if (_.slideCount > _.options.slidesToShow) {
1105
- _.slideOffset = (_.slideWidth * _.options.slidesToShow) * -1;
1106
- coef = -1
1107
-
1108
- if (_.options.vertical === true && _.options.centerMode === true) {
1109
- if (_.options.slidesToShow === 2) {
1110
- coef = -1.5;
1111
- } else if (_.options.slidesToShow === 1) {
1112
- coef = -2
1113
- }
1114
- }
1115
- verticalOffset = (verticalHeight * _.options.slidesToShow) * coef;
1116
- }
1117
- if (_.slideCount % _.options.slidesToScroll !== 0) {
1118
- if (slideIndex + _.options.slidesToScroll > _.slideCount && _.slideCount > _.options.slidesToShow) {
1119
- if (slideIndex > _.slideCount) {
1120
- _.slideOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * _.slideWidth) * -1;
1121
- verticalOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * verticalHeight) * -1;
1122
- } else {
1123
- _.slideOffset = ((_.slideCount % _.options.slidesToScroll) * _.slideWidth) * -1;
1124
- verticalOffset = ((_.slideCount % _.options.slidesToScroll) * verticalHeight) * -1;
1125
- }
1126
- }
1127
- }
1128
- } else {
1129
- if (slideIndex + _.options.slidesToShow > _.slideCount) {
1130
- _.slideOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * _.slideWidth;
1131
- verticalOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * verticalHeight;
1132
- }
1133
- }
1134
-
1135
- if (_.slideCount <= _.options.slidesToShow) {
1136
- _.slideOffset = 0;
1137
- verticalOffset = 0;
1138
- }
1139
-
1140
- if (_.options.centerMode === true && _.slideCount <= _.options.slidesToShow) {
1141
- _.slideOffset = ((_.slideWidth * Math.floor(_.options.slidesToShow)) / 2) - ((_.slideWidth * _.slideCount) / 2);
1142
- } else if (_.options.centerMode === true && _.options.infinite === true) {
1143
- _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2) - _.slideWidth;
1144
- } else if (_.options.centerMode === true) {
1145
- _.slideOffset = 0;
1146
- _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2);
1147
- }
1148
-
1149
- if (_.options.vertical === false) {
1150
- targetLeft = ((slideIndex * _.slideWidth) * -1) + _.slideOffset;
1151
- } else {
1152
- targetLeft = ((slideIndex * verticalHeight) * -1) + verticalOffset;
1153
- }
1154
-
1155
- if (_.options.variableWidth === true) {
1156
-
1157
- if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) {
1158
- targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex);
1159
- } else {
1160
- targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow);
1161
- }
1162
-
1163
- if (_.options.rtl === true) {
1164
- if (targetSlide[0]) {
1165
- targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1;
1166
- } else {
1167
- targetLeft = 0;
1168
- }
1169
- } else {
1170
- targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0;
1171
- }
1172
-
1173
- if (_.options.centerMode === true) {
1174
- if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) {
1175
- targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex);
1176
- } else {
1177
- targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow + 1);
1178
- }
1179
-
1180
- if (_.options.rtl === true) {
1181
- if (targetSlide[0]) {
1182
- targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1;
1183
- } else {
1184
- targetLeft = 0;
1185
- }
1186
- } else {
1187
- targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0;
1188
- }
1189
-
1190
- targetLeft += (_.$list.width() - targetSlide.outerWidth()) / 2;
1191
- }
1192
- }
1193
-
1194
- return targetLeft;
1195
-
1196
- };
1197
-
1198
- Slick.prototype.getOption = Slick.prototype.slickGetOption = function(option) {
1199
-
1200
- var _ = this;
1201
-
1202
- return _.options[option];
1203
-
1204
- };
1205
-
1206
- Slick.prototype.getNavigableIndexes = function() {
1207
-
1208
- var _ = this,
1209
- breakPoint = 0,
1210
- counter = 0,
1211
- indexes = [],
1212
- max;
1213
-
1214
- if (_.options.infinite === false) {
1215
- max = _.slideCount;
1216
- } else {
1217
- breakPoint = _.options.slidesToScroll * -1;
1218
- counter = _.options.slidesToScroll * -1;
1219
- max = _.slideCount * 2;
1220
- }
1221
-
1222
- while (breakPoint < max) {
1223
- indexes.push(breakPoint);
1224
- breakPoint = counter + _.options.slidesToScroll;
1225
- counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1226
- }
1227
-
1228
- return indexes;
1229
-
1230
- };
1231
-
1232
- Slick.prototype.getSlick = function() {
1233
-
1234
- return this;
1235
-
1236
- };
1237
-
1238
- Slick.prototype.getSlideCount = function() {
1239
-
1240
- var _ = this,
1241
- slidesTraversed, swipedSlide, swipeTarget, centerOffset;
1242
-
1243
- centerOffset = _.options.centerMode === true ? Math.floor(_.$list.width() / 2) : 0;
1244
- swipeTarget = (_.swipeLeft * -1) + centerOffset;
1245
-
1246
- if (_.options.swipeToSlide === true) {
1247
-
1248
- _.$slideTrack.find('.slick-slide').each(function(index, slide) {
1249
-
1250
- var slideOuterWidth, slideOffset, slideRightBoundary;
1251
- slideOuterWidth = $(slide).outerWidth();
1252
- slideOffset = slide.offsetLeft;
1253
- if (_.options.centerMode !== true) {
1254
- slideOffset += (slideOuterWidth / 2);
1255
- }
1256
-
1257
- slideRightBoundary = slideOffset + (slideOuterWidth);
1258
-
1259
- if (swipeTarget < slideRightBoundary) {
1260
- swipedSlide = slide;
1261
- return false;
1262
- }
1263
- });
1264
-
1265
- slidesTraversed = Math.abs($(swipedSlide).attr('data-slick-index') - _.currentSlide) || 1;
1266
-
1267
- return slidesTraversed;
1268
-
1269
- } else {
1270
- return _.options.slidesToScroll;
1271
- }
1272
-
1273
- };
1274
-
1275
- Slick.prototype.goTo = Slick.prototype.slickGoTo = function(slide, dontAnimate) {
1276
-
1277
- var _ = this;
1278
-
1279
- _.changeSlide({
1280
- data: {
1281
- message: 'index',
1282
- index: parseInt(slide)
1283
- }
1284
- }, dontAnimate);
1285
-
1286
- };
1287
-
1288
- Slick.prototype.init = function(creation) {
1289
-
1290
- var _ = this;
1291
-
1292
- if (!$(_.$slider).hasClass('slick-initialized')) {
1293
-
1294
- $(_.$slider).addClass('slick-initialized');
1295
-
1296
- _.buildRows();
1297
- _.buildOut();
1298
- _.setProps();
1299
- _.startLoad();
1300
- _.loadSlider();
1301
- _.initializeEvents();
1302
- _.updateArrows();
1303
- _.updateDots();
1304
- _.checkResponsive(true);
1305
- _.focusHandler();
1306
-
1307
- }
1308
-
1309
- if (creation) {
1310
- _.$slider.trigger('init', [_]);
1311
- }
1312
-
1313
- if (_.options.accessibility === true) {
1314
- _.initADA();
1315
- }
1316
-
1317
- if ( _.options.autoplay ) {
1318
-
1319
- _.paused = false;
1320
- _.autoPlay();
1321
-
1322
- }
1323
-
1324
- };
1325
-
1326
- Slick.prototype.initADA = function() {
1327
- var _ = this,
1328
- numDotGroups = Math.ceil(_.slideCount / _.options.slidesToShow),
1329
- tabControlIndexes = _.getNavigableIndexes().filter(function(val) {
1330
- return (val >= 0) && (val < _.slideCount);
1331
- });
1332
-
1333
- _.$slides.add(_.$slideTrack.find('.slick-cloned')).attr({
1334
- 'aria-hidden': 'true',
1335
- 'tabindex': '-1'
1336
- }).find('a, input, button, select').attr({
1337
- 'tabindex': '-1'
1338
- });
1339
-
1340
- if (_.$dots !== null) {
1341
- _.$slides.not(_.$slideTrack.find('.slick-cloned')).each(function(i) {
1342
- var slideControlIndex = tabControlIndexes.indexOf(i);
1343
-
1344
- $(this).attr({
1345
- 'role': 'tabpanel',
1346
- 'id': 'slick-slide' + _.instanceUid + i,
1347
- 'tabindex': -1
1348
- });
1349
-
1350
- if (slideControlIndex !== -1) {
1351
- var ariaButtonControl = 'slick-slide-control' + _.instanceUid + slideControlIndex
1352
- if ($('#' + ariaButtonControl).length) {
1353
- $(this).attr({
1354
- 'aria-describedby': ariaButtonControl
1355
- });
1356
- }
1357
- }
1358
- });
1359
-
1360
- _.$dots.attr('role', 'tablist').find('li').each(function(i) {
1361
- var mappedSlideIndex = tabControlIndexes[i];
1362
-
1363
- $(this).attr({
1364
- 'role': 'presentation'
1365
- });
1366
-
1367
- $(this).find('button').first().attr({
1368
- 'role': 'tab',
1369
- 'id': 'slick-slide-control' + _.instanceUid + i,
1370
- 'aria-controls': 'slick-slide' + _.instanceUid + mappedSlideIndex,
1371
- 'aria-label': (i + 1) + ' of ' + numDotGroups,
1372
- 'aria-selected': null,
1373
- 'tabindex': '-1'
1374
- });
1375
-
1376
- }).eq(_.currentSlide).find('button').attr({
1377
- 'aria-selected': 'true',
1378
- 'tabindex': '0'
1379
- }).end();
1380
- }
1381
-
1382
- for (var i=_.currentSlide, max=i+_.options.slidesToShow; i < max; i++) {
1383
- if (_.options.focusOnChange) {
1384
- _.$slides.eq(i).attr({'tabindex': '0'});
1385
- } else {
1386
- _.$slides.eq(i).removeAttr('tabindex');
1387
- }
1388
- }
1389
-
1390
- _.activateADA();
1391
-
1392
- };
1393
-
1394
- Slick.prototype.initArrowEvents = function() {
1395
-
1396
- var _ = this;
1397
-
1398
- if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
1399
- _.$prevArrow
1400
- .off('click.slick')
1401
- .on('click.slick', {
1402
- message: 'previous'
1403
- }, _.changeSlide);
1404
- _.$nextArrow
1405
- .off('click.slick')
1406
- .on('click.slick', {
1407
- message: 'next'
1408
- }, _.changeSlide);
1409
-
1410
- if (_.options.accessibility === true) {
1411
- _.$prevArrow.on('keydown.slick', _.keyHandler);
1412
- _.$nextArrow.on('keydown.slick', _.keyHandler);
1413
- }
1414
- }
1415
-
1416
- };
1417
-
1418
- Slick.prototype.initDotEvents = function() {
1419
-
1420
- var _ = this;
1421
-
1422
- if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
1423
- $('li', _.$dots).on('click.slick', {
1424
- message: 'index'
1425
- }, _.changeSlide);
1426
-
1427
- if (_.options.accessibility === true) {
1428
- _.$dots.on('keydown.slick', _.keyHandler);
1429
- }
1430
- }
1431
-
1432
- if (_.options.dots === true && _.options.pauseOnDotsHover === true && _.slideCount > _.options.slidesToShow) {
1433
-
1434
- $('li', _.$dots)
1435
- .on('mouseenter.slick', $.proxy(_.interrupt, _, true))
1436
- .on('mouseleave.slick', $.proxy(_.interrupt, _, false));
1437
-
1438
- }
1439
-
1440
- };
1441
-
1442
- Slick.prototype.initSlideEvents = function() {
1443
-
1444
- var _ = this;
1445
-
1446
- if ( _.options.pauseOnHover ) {
1447
-
1448
- _.$list.on('mouseenter.slick', $.proxy(_.interrupt, _, true));
1449
- _.$list.on('mouseleave.slick', $.proxy(_.interrupt, _, false));
1450
-
1451
- }
1452
-
1453
- };
1454
-
1455
- Slick.prototype.initializeEvents = function() {
1456
-
1457
- var _ = this;
1458
-
1459
- _.initArrowEvents();
1460
-
1461
- _.initDotEvents();
1462
- _.initSlideEvents();
1463
-
1464
- _.$list.on('touchstart.slick mousedown.slick', {
1465
- action: 'start'
1466
- }, _.swipeHandler);
1467
- _.$list.on('touchmove.slick mousemove.slick', {
1468
- action: 'move'
1469
- }, _.swipeHandler);
1470
- _.$list.on('touchend.slick mouseup.slick', {
1471
- action: 'end'
1472
- }, _.swipeHandler);
1473
- _.$list.on('touchcancel.slick mouseleave.slick', {
1474
- action: 'end'
1475
- }, _.swipeHandler);
1476
-
1477
- _.$list.on('click.slick', _.clickHandler);
1478
-
1479
- $(document).on(_.visibilityChange, $.proxy(_.visibility, _));
1480
-
1481
- if (_.options.accessibility === true) {
1482
- _.$list.on('keydown.slick', _.keyHandler);
1483
- }
1484
-
1485
- if (_.options.focusOnSelect === true) {
1486
- $(_.$slideTrack).children().on('click.slick', _.selectHandler);
1487
- }
1488
-
1489
- $(window).on('orientationchange.slick.slick-' + _.instanceUid, $.proxy(_.orientationChange, _));
1490
-
1491
- $(window).on('resize.slick.slick-' + _.instanceUid, $.proxy(_.resize, _));
1492
-
1493
- $('[draggable!=true]', _.$slideTrack).on('dragstart', _.preventDefault);
1494
-
1495
- $(window).on('load.slick.slick-' + _.instanceUid, _.setPosition);
1496
- $(_.setPosition);
1497
-
1498
- };
1499
-
1500
- Slick.prototype.initUI = function() {
1501
-
1502
- var _ = this;
1503
-
1504
- if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
1505
-
1506
- _.$prevArrow.show();
1507
- _.$nextArrow.show();
1508
-
1509
- }
1510
-
1511
- if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
1512
-
1513
- _.$dots.show();
1514
-
1515
- }
1516
-
1517
- };
1518
-
1519
- Slick.prototype.keyHandler = function(event) {
1520
-
1521
- var _ = this;
1522
- //Dont slide if the cursor is inside the form fields and arrow keys are pressed
1523
- if(!event.target.tagName.match('TEXTAREA|INPUT|SELECT')) {
1524
- if (event.keyCode === 37 && _.options.accessibility === true) {
1525
- _.changeSlide({
1526
- data: {
1527
- message: _.options.rtl === true ? 'next' : 'previous'
1528
- }
1529
- });
1530
- } else if (event.keyCode === 39 && _.options.accessibility === true) {
1531
- _.changeSlide({
1532
- data: {
1533
- message: _.options.rtl === true ? 'previous' : 'next'
1534
- }
1535
- });
1536
- }
1537
- }
1538
-
1539
- };
1540
-
1541
- Slick.prototype.lazyLoad = function() {
1542
-
1543
- var _ = this,
1544
- loadRange, cloneRange, rangeStart, rangeEnd;
1545
-
1546
- function loadImages(imagesScope) {
1547
-
1548
- $('img[data-lazy]', imagesScope).each(function() {
1549
-
1550
- var image = $(this),
1551
- imageSource = $(this).attr('data-lazy'),
1552
- imageSrcSet = $(this).attr('data-srcset'),
1553
- imageSizes = $(this).attr('data-sizes') || _.$slider.attr('data-sizes'),
1554
- imageToLoad = document.createElement('img');
1555
-
1556
- imageToLoad.onload = function() {
1557
-
1558
- image
1559
- .animate({ opacity: 0 }, 100, function() {
1560
-
1561
- if (imageSrcSet) {
1562
- image
1563
- .attr('srcset', imageSrcSet );
1564
-
1565
- if (imageSizes) {
1566
- image
1567
- .attr('sizes', imageSizes );
1568
- }
1569
- }
1570
-
1571
- image
1572
- .attr('src', imageSource)
1573
- .animate({ opacity: 1 }, 200, function() {
1574
- image
1575
- .removeAttr('data-lazy data-srcset data-sizes')
1576
- .removeClass('slick-loading');
1577
- });
1578
- _.$slider.trigger('lazyLoaded', [_, image, imageSource]);
1579
- });
1580
-
1581
- };
1582
-
1583
- imageToLoad.onerror = function() {
1584
-
1585
- image
1586
- .removeAttr( 'data-lazy' )
1587
- .removeClass( 'slick-loading' )
1588
- .addClass( 'slick-lazyload-error' );
1589
-
1590
- _.$slider.trigger('lazyLoadError', [ _, image, imageSource ]);
1591
-
1592
- };
1593
-
1594
- imageToLoad.src = imageSource;
1595
-
1596
- });
1597
-
1598
- }
1599
-
1600
- if (_.options.centerMode === true) {
1601
- if (_.options.infinite === true) {
1602
- rangeStart = _.currentSlide + (_.options.slidesToShow / 2 + 1);
1603
- rangeEnd = rangeStart + _.options.slidesToShow + 2;
1604
- } else {
1605
- rangeStart = Math.max(0, _.currentSlide - (_.options.slidesToShow / 2 + 1));
1606
- rangeEnd = 2 + (_.options.slidesToShow / 2 + 1) + _.currentSlide;
1607
- }
1608
- } else {
1609
- rangeStart = _.options.infinite ? _.options.slidesToShow + _.currentSlide : _.currentSlide;
1610
- rangeEnd = Math.ceil(rangeStart + _.options.slidesToShow);
1611
- if (_.options.fade === true) {
1612
- if (rangeStart > 0) rangeStart--;
1613
- if (rangeEnd <= _.slideCount) rangeEnd++;
1614
- }
1615
- }
1616
-
1617
- loadRange = _.$slider.find('.slick-slide').slice(rangeStart, rangeEnd);
1618
-
1619
- if (_.options.lazyLoad === 'anticipated') {
1620
- var prevSlide = rangeStart - 1,
1621
- nextSlide = rangeEnd,
1622
- $slides = _.$slider.find('.slick-slide');
1623
-
1624
- for (var i = 0; i < _.options.slidesToScroll; i++) {
1625
- if (prevSlide < 0) prevSlide = _.slideCount - 1;
1626
- loadRange = loadRange.add($slides.eq(prevSlide));
1627
- loadRange = loadRange.add($slides.eq(nextSlide));
1628
- prevSlide--;
1629
- nextSlide++;
1630
- }
1631
- }
1632
-
1633
- loadImages(loadRange);
1634
-
1635
- if (_.slideCount <= _.options.slidesToShow) {
1636
- cloneRange = _.$slider.find('.slick-slide');
1637
- loadImages(cloneRange);
1638
- } else
1639
- if (_.currentSlide >= _.slideCount - _.options.slidesToShow) {
1640
- cloneRange = _.$slider.find('.slick-cloned').slice(0, _.options.slidesToShow);
1641
- loadImages(cloneRange);
1642
- } else if (_.currentSlide === 0) {
1643
- cloneRange = _.$slider.find('.slick-cloned').slice(_.options.slidesToShow * -1);
1644
- loadImages(cloneRange);
1645
- }
1646
-
1647
- };
1648
-
1649
- Slick.prototype.loadSlider = function() {
1650
-
1651
- var _ = this;
1652
-
1653
- _.setPosition();
1654
-
1655
- _.$slideTrack.css({
1656
- opacity: 1
1657
- });
1658
-
1659
- _.$slider.removeClass('slick-loading');
1660
-
1661
- _.initUI();
1662
-
1663
- if (_.options.lazyLoad === 'progressive') {
1664
- _.progressiveLazyLoad();
1665
- }
1666
-
1667
- };
1668
-
1669
- Slick.prototype.next = Slick.prototype.slickNext = function() {
1670
-
1671
- var _ = this;
1672
-
1673
- _.changeSlide({
1674
- data: {
1675
- message: 'next'
1676
- }
1677
- });
1678
-
1679
- };
1680
-
1681
- Slick.prototype.orientationChange = function() {
1682
-
1683
- var _ = this;
1684
-
1685
- _.checkResponsive();
1686
- _.setPosition();
1687
-
1688
- };
1689
-
1690
- Slick.prototype.pause = Slick.prototype.slickPause = function() {
1691
-
1692
- var _ = this;
1693
-
1694
- _.autoPlayClear();
1695
- _.paused = true;
1696
-
1697
- };
1698
-
1699
- Slick.prototype.play = Slick.prototype.slickPlay = function() {
1700
-
1701
- var _ = this;
1702
-
1703
- _.autoPlay();
1704
- _.options.autoplay = true;
1705
- _.paused = false;
1706
- _.focussed = false;
1707
- _.interrupted = false;
1708
-
1709
- };
1710
-
1711
- Slick.prototype.postSlide = function(index) {
1712
-
1713
- var _ = this;
1714
-
1715
- if( !_.unslicked ) {
1716
-
1717
- _.$slider.trigger('afterChange', [_, index]);
1718
-
1719
- _.animating = false;
1720
-
1721
- if (_.slideCount > _.options.slidesToShow) {
1722
- _.setPosition();
1723
- }
1724
-
1725
- _.swipeLeft = null;
1726
-
1727
- if ( _.options.autoplay ) {
1728
- _.autoPlay();
1729
- }
1730
-
1731
- if (_.options.accessibility === true) {
1732
- _.initADA();
1733
-
1734
- if (_.options.focusOnChange) {
1735
- var $currentSlide = $(_.$slides.get(_.currentSlide));
1736
- $currentSlide.attr('tabindex', 0).focus();
1737
- }
1738
- }
1739
-
1740
- }
1741
-
1742
- };
1743
-
1744
- Slick.prototype.prev = Slick.prototype.slickPrev = function() {
1745
-
1746
- var _ = this;
1747
-
1748
- _.changeSlide({
1749
- data: {
1750
- message: 'previous'
1751
- }
1752
- });
1753
-
1754
- };
1755
-
1756
- Slick.prototype.preventDefault = function(event) {
1757
-
1758
- event.preventDefault();
1759
-
1760
- };
1761
-
1762
- Slick.prototype.progressiveLazyLoad = function( tryCount ) {
1763
-
1764
- tryCount = tryCount || 1;
1765
-
1766
- var _ = this,
1767
- $imgsToLoad = $( 'img[data-lazy]', _.$slider ),
1768
- image,
1769
- imageSource,
1770
- imageSrcSet,
1771
- imageSizes,
1772
- imageToLoad;
1773
-
1774
- if ( $imgsToLoad.length ) {
1775
-
1776
- image = $imgsToLoad.first();
1777
- imageSource = image.attr('data-lazy');
1778
- imageSrcSet = image.attr('data-srcset');
1779
- imageSizes = image.attr('data-sizes') || _.$slider.attr('data-sizes');
1780
- imageToLoad = document.createElement('img');
1781
-
1782
- imageToLoad.onload = function() {
1783
-
1784
- if (imageSrcSet) {
1785
- image
1786
- .attr('srcset', imageSrcSet );
1787
-
1788
- if (imageSizes) {
1789
- image
1790
- .attr('sizes', imageSizes );
1791
- }
1792
- }
1793
-
1794
- image
1795
- .attr( 'src', imageSource )
1796
- .removeAttr('data-lazy data-srcset data-sizes')
1797
- .removeClass('slick-loading');
1798
-
1799
- if ( _.options.adaptiveHeight === true ) {
1800
- _.setPosition();
1801
- }
1802
-
1803
- _.$slider.trigger('lazyLoaded', [ _, image, imageSource ]);
1804
- _.progressiveLazyLoad();
1805
-
1806
- };
1807
-
1808
- imageToLoad.onerror = function() {
1809
-
1810
- if ( tryCount < 3 ) {
1811
-
1812
- /**
1813
- * try to load the image 3 times,
1814
- * leave a slight delay so we don't get
1815
- * servers blocking the request.
1816
- */
1817
- setTimeout( function() {
1818
- _.progressiveLazyLoad( tryCount + 1 );
1819
- }, 500 );
1820
-
1821
- } else {
1822
-
1823
- image
1824
- .removeAttr( 'data-lazy' )
1825
- .removeClass( 'slick-loading' )
1826
- .addClass( 'slick-lazyload-error' );
1827
-
1828
- _.$slider.trigger('lazyLoadError', [ _, image, imageSource ]);
1829
-
1830
- _.progressiveLazyLoad();
1831
-
1832
- }
1833
-
1834
- };
1835
-
1836
- imageToLoad.src = imageSource;
1837
-
1838
- } else {
1839
-
1840
- _.$slider.trigger('allImagesLoaded', [ _ ]);
1841
-
1842
- }
1843
-
1844
- };
1845
-
1846
- Slick.prototype.refresh = function( initializing ) {
1847
-
1848
- var _ = this, currentSlide, lastVisibleIndex;
1849
-
1850
- lastVisibleIndex = _.slideCount - _.options.slidesToShow;
1851
-
1852
- // in non-infinite sliders, we don't want to go past the
1853
- // last visible index.
1854
- if( !_.options.infinite && ( _.currentSlide > lastVisibleIndex )) {
1855
- _.currentSlide = lastVisibleIndex;
1856
- }
1857
-
1858
- // if less slides than to show, go to start.
1859
- if ( _.slideCount <= _.options.slidesToShow ) {
1860
- _.currentSlide = 0;
1861
-
1862
- }
1863
-
1864
- currentSlide = _.currentSlide;
1865
-
1866
- _.destroy(true);
1867
-
1868
- $.extend(_, _.initials, { currentSlide: currentSlide });
1869
-
1870
- _.init();
1871
-
1872
- if( !initializing ) {
1873
-
1874
- _.changeSlide({
1875
- data: {
1876
- message: 'index',
1877
- index: currentSlide
1878
- }
1879
- }, false);
1880
-
1881
- }
1882
-
1883
- };
1884
-
1885
- Slick.prototype.registerBreakpoints = function() {
1886
-
1887
- var _ = this, breakpoint, currentBreakpoint, l,
1888
- responsiveSettings = _.options.responsive || null;
1889
-
1890
- if ( $.type(responsiveSettings) === 'array' && responsiveSettings.length ) {
1891
-
1892
- _.respondTo = _.options.respondTo || 'window';
1893
-
1894
- for ( breakpoint in responsiveSettings ) {
1895
-
1896
- l = _.breakpoints.length-1;
1897
-
1898
- if (responsiveSettings.hasOwnProperty(breakpoint)) {
1899
- currentBreakpoint = responsiveSettings[breakpoint].breakpoint;
1900
-
1901
- // loop through the breakpoints and cut out any existing
1902
- // ones with the same breakpoint number, we don't want dupes.
1903
- while( l >= 0 ) {
1904
- if( _.breakpoints[l] && _.breakpoints[l] === currentBreakpoint ) {
1905
- _.breakpoints.splice(l,1);
1906
- }
1907
- l--;
1908
- }
1909
-
1910
- _.breakpoints.push(currentBreakpoint);
1911
- _.breakpointSettings[currentBreakpoint] = responsiveSettings[breakpoint].settings;
1912
-
1913
- }
1914
-
1915
- }
1916
-
1917
- _.breakpoints.sort(function(a, b) {
1918
- return ( _.options.mobileFirst ) ? a-b : b-a;
1919
- });
1920
-
1921
- }
1922
-
1923
- };
1924
-
1925
- Slick.prototype.reinit = function() {
1926
-
1927
- var _ = this;
1928
-
1929
- _.$slides =
1930
- _.$slideTrack
1931
- .children(_.options.slide)
1932
- .addClass('slick-slide');
1933
-
1934
- _.slideCount = _.$slides.length;
1935
-
1936
- if (_.currentSlide >= _.slideCount && _.currentSlide !== 0) {
1937
- _.currentSlide = _.currentSlide - _.options.slidesToScroll;
1938
- }
1939
-
1940
- if (_.slideCount <= _.options.slidesToShow) {
1941
- _.currentSlide = 0;
1942
- }
1943
-
1944
- _.registerBreakpoints();
1945
-
1946
- _.setProps();
1947
- _.setupInfinite();
1948
- _.buildArrows();
1949
- _.updateArrows();
1950
- _.initArrowEvents();
1951
- _.buildDots();
1952
- _.updateDots();
1953
- _.initDotEvents();
1954
- _.cleanUpSlideEvents();
1955
- _.initSlideEvents();
1956
-
1957
- _.checkResponsive(false, true);
1958
-
1959
- if (_.options.focusOnSelect === true) {
1960
- $(_.$slideTrack).children().on('click.slick', _.selectHandler);
1961
- }
1962
-
1963
- _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0);
1964
-
1965
- _.setPosition();
1966
- _.focusHandler();
1967
-
1968
- _.paused = !_.options.autoplay;
1969
- _.autoPlay();
1970
-
1971
- _.$slider.trigger('reInit', [_]);
1972
-
1973
- };
1974
-
1975
- Slick.prototype.resize = function() {
1976
-
1977
- var _ = this;
1978
-
1979
- if ($(window).width() !== _.windowWidth) {
1980
- clearTimeout(_.windowDelay);
1981
- _.windowDelay = window.setTimeout(function() {
1982
- _.windowWidth = $(window).width();
1983
- _.checkResponsive();
1984
- if( !_.unslicked ) { _.setPosition(); }
1985
- }, 50);
1986
- }
1987
- };
1988
-
1989
- Slick.prototype.removeSlide = Slick.prototype.slickRemove = function(index, removeBefore, removeAll) {
1990
-
1991
- var _ = this;
1992
-
1993
- if (typeof(index) === 'boolean') {
1994
- removeBefore = index;
1995
- index = removeBefore === true ? 0 : _.slideCount - 1;
1996
- } else {
1997
- index = removeBefore === true ? --index : index;
1998
- }
1999
-
2000
- if (_.slideCount < 1 || index < 0 || index > _.slideCount - 1) {
2001
- return false;
2002
- }
2003
-
2004
- _.unload();
2005
-
2006
- if (removeAll === true) {
2007
- _.$slideTrack.children().remove();
2008
- } else {
2009
- _.$slideTrack.children(this.options.slide).eq(index).remove();
2010
- }
2011
-
2012
- _.$slides = _.$slideTrack.children(this.options.slide);
2013
-
2014
- _.$slideTrack.children(this.options.slide).detach();
2015
-
2016
- _.$slideTrack.append(_.$slides);
2017
-
2018
- _.$slidesCache = _.$slides;
2019
-
2020
- _.reinit();
2021
-
2022
- };
2023
-
2024
- Slick.prototype.setCSS = function(position) {
2025
-
2026
- var _ = this,
2027
- positionProps = {},
2028
- x, y;
2029
-
2030
- if (_.options.rtl === true) {
2031
- position = -position;
2032
- }
2033
- x = _.positionProp == 'left' ? Math.ceil(position) + 'px' : '0px';
2034
- y = _.positionProp == 'top' ? Math.ceil(position) + 'px' : '0px';
2035
-
2036
- positionProps[_.positionProp] = position;
2037
-
2038
- if (_.transformsEnabled === false) {
2039
- _.$slideTrack.css(positionProps);
2040
- } else {
2041
- positionProps = {};
2042
- if (_.cssTransitions === false) {
2043
- positionProps[_.animType] = 'translate(' + x + ', ' + y + ')';
2044
- _.$slideTrack.css(positionProps);
2045
- } else {
2046
- positionProps[_.animType] = 'translate3d(' + x + ', ' + y + ', 0px)';
2047
- _.$slideTrack.css(positionProps);
2048
- }
2049
- }
2050
-
2051
- };
2052
-
2053
- Slick.prototype.setDimensions = function() {
2054
-
2055
- var _ = this;
2056
-
2057
- if (_.options.vertical === false) {
2058
- if (_.options.centerMode === true) {
2059
- _.$list.css({
2060
- padding: ('0px ' + _.options.centerPadding)
2061
- });
2062
- }
2063
- } else {
2064
- _.$list.height(_.$slides.first().outerHeight(true) * _.options.slidesToShow);
2065
- if (_.options.centerMode === true) {
2066
- _.$list.css({
2067
- padding: (_.options.centerPadding + ' 0px')
2068
- });
2069
- }
2070
- }
2071
-
2072
- _.listWidth = _.$list.width();
2073
- _.listHeight = _.$list.height();
2074
-
2075
-
2076
- if (_.options.vertical === false && _.options.variableWidth === false) {
2077
- _.slideWidth = Math.ceil(_.listWidth / _.options.slidesToShow);
2078
- _.$slideTrack.width(Math.ceil((_.slideWidth * _.$slideTrack.children('.slick-slide').length)));
2079
-
2080
- } else if (_.options.variableWidth === true) {
2081
- _.$slideTrack.width(5000 * _.slideCount);
2082
- } else {
2083
- _.slideWidth = Math.ceil(_.listWidth);
2084
- _.$slideTrack.height(Math.ceil((_.$slides.first().outerHeight(true) * _.$slideTrack.children('.slick-slide').length)));
2085
- }
2086
-
2087
- var offset = _.$slides.first().outerWidth(true) - _.$slides.first().width();
2088
- if (_.options.variableWidth === false) _.$slideTrack.children('.slick-slide').width(_.slideWidth - offset);
2089
-
2090
- };
2091
-
2092
- Slick.prototype.setFade = function() {
2093
-
2094
- var _ = this,
2095
- targetLeft;
2096
-
2097
- _.$slides.each(function(index, element) {
2098
- targetLeft = (_.slideWidth * index) * -1;
2099
- if (_.options.rtl === true) {
2100
- $(element).css({
2101
- position: 'relative',
2102
- right: targetLeft,
2103
- top: 0,
2104
- zIndex: _.options.zIndex - 2,
2105
- opacity: 0
2106
- });
2107
- } else {
2108
- $(element).css({
2109
- position: 'relative',
2110
- left: targetLeft,
2111
- top: 0,
2112
- zIndex: _.options.zIndex - 2,
2113
- opacity: 0
2114
- });
2115
- }
2116
- });
2117
-
2118
- _.$slides.eq(_.currentSlide).css({
2119
- zIndex: _.options.zIndex - 1,
2120
- opacity: 1
2121
- });
2122
-
2123
- };
2124
-
2125
- Slick.prototype.setHeight = function() {
2126
-
2127
- var _ = this;
2128
-
2129
- if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) {
2130
- var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true);
2131
- _.$list.css('height', targetHeight);
2132
- }
2133
-
2134
- };
2135
-
2136
- Slick.prototype.setOption =
2137
- Slick.prototype.slickSetOption = function() {
2138
-
2139
- /**
2140
- * accepts arguments in format of:
2141
- *
2142
- * - for changing a single option's value:
2143
- * .slick("setOption", option, value, refresh )
2144
- *
2145
- * - for changing a set of responsive options:
2146
- * .slick("setOption", 'responsive', [{}, ...], refresh )
2147
- *
2148
- * - for updating multiple values at once (not responsive)
2149
- * .slick("setOption", { 'option': value, ... }, refresh )
2150
- */
2151
-
2152
- var _ = this, l, item, option, value, refresh = false, type;
2153
-
2154
- if( $.type( arguments[0] ) === 'object' ) {
2155
-
2156
- option = arguments[0];
2157
- refresh = arguments[1];
2158
- type = 'multiple';
2159
-
2160
- } else if ( $.type( arguments[0] ) === 'string' ) {
2161
-
2162
- option = arguments[0];
2163
- value = arguments[1];
2164
- refresh = arguments[2];
2165
-
2166
- if ( arguments[0] === 'responsive' && $.type( arguments[1] ) === 'array' ) {
2167
-
2168
- type = 'responsive';
2169
-
2170
- } else if ( typeof arguments[1] !== 'undefined' ) {
2171
-
2172
- type = 'single';
2173
-
2174
- }
2175
-
2176
- }
2177
-
2178
- if ( type === 'single' ) {
2179
-
2180
- _.options[option] = value;
2181
-
2182
-
2183
- } else if ( type === 'multiple' ) {
2184
-
2185
- $.each( option , function( opt, val ) {
2186
-
2187
- _.options[opt] = val;
2188
-
2189
- });
2190
-
2191
-
2192
- } else if ( type === 'responsive' ) {
2193
-
2194
- for ( item in value ) {
2195
-
2196
- if( $.type( _.options.responsive ) !== 'array' ) {
2197
-
2198
- _.options.responsive = [ value[item] ];
2199
-
2200
- } else {
2201
-
2202
- l = _.options.responsive.length-1;
2203
-
2204
- // loop through the responsive object and splice out duplicates.
2205
- while( l >= 0 ) {
2206
-
2207
- if( _.options.responsive[l].breakpoint === value[item].breakpoint ) {
2208
-
2209
- _.options.responsive.splice(l,1);
2210
-
2211
- }
2212
-
2213
- l--;
2214
-
2215
- }
2216
-
2217
- _.options.responsive.push( value[item] );
2218
-
2219
- }
2220
-
2221
- }
2222
-
2223
- }
2224
-
2225
- if ( refresh ) {
2226
-
2227
- _.unload();
2228
- _.reinit();
2229
-
2230
- }
2231
-
2232
- };
2233
-
2234
- Slick.prototype.setPosition = function() {
2235
-
2236
- var _ = this;
2237
-
2238
- _.setDimensions();
2239
-
2240
- _.setHeight();
2241
-
2242
- if (_.options.fade === false) {
2243
- _.setCSS(_.getLeft(_.currentSlide));
2244
- } else {
2245
- _.setFade();
2246
- }
2247
-
2248
- _.$slider.trigger('setPosition', [_]);
2249
-
2250
- };
2251
-
2252
- Slick.prototype.setProps = function() {
2253
-
2254
- var _ = this,
2255
- bodyStyle = document.body.style;
2256
-
2257
- _.positionProp = _.options.vertical === true ? 'top' : 'left';
2258
-
2259
- if (_.positionProp === 'top') {
2260
- _.$slider.addClass('slick-vertical');
2261
- } else {
2262
- _.$slider.removeClass('slick-vertical');
2263
- }
2264
-
2265
- if (bodyStyle.WebkitTransition !== undefined ||
2266
- bodyStyle.MozTransition !== undefined ||
2267
- bodyStyle.msTransition !== undefined) {
2268
- if (_.options.useCSS === true) {
2269
- _.cssTransitions = true;
2270
- }
2271
- }
2272
-
2273
- if ( _.options.fade ) {
2274
- if ( typeof _.options.zIndex === 'number' ) {
2275
- if( _.options.zIndex < 3 ) {
2276
- _.options.zIndex = 3;
2277
- }
2278
- } else {
2279
- _.options.zIndex = _.defaults.zIndex;
2280
- }
2281
- }
2282
-
2283
- if (bodyStyle.OTransform !== undefined) {
2284
- _.animType = 'OTransform';
2285
- _.transformType = '-o-transform';
2286
- _.transitionType = 'OTransition';
2287
- if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false;
2288
- }
2289
- if (bodyStyle.MozTransform !== undefined) {
2290
- _.animType = 'MozTransform';
2291
- _.transformType = '-moz-transform';
2292
- _.transitionType = 'MozTransition';
2293
- if (bodyStyle.perspectiveProperty === undefined && bodyStyle.MozPerspective === undefined) _.animType = false;
2294
- }
2295
- if (bodyStyle.webkitTransform !== undefined) {
2296
- _.animType = 'webkitTransform';
2297
- _.transformType = '-webkit-transform';
2298
- _.transitionType = 'webkitTransition';
2299
- if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false;
2300
- }
2301
- if (bodyStyle.msTransform !== undefined) {
2302
- _.animType = 'msTransform';
2303
- _.transformType = '-ms-transform';
2304
- _.transitionType = 'msTransition';
2305
- if (bodyStyle.msTransform === undefined) _.animType = false;
2306
- }
2307
- if (bodyStyle.transform !== undefined && _.animType !== false) {
2308
- _.animType = 'transform';
2309
- _.transformType = 'transform';
2310
- _.transitionType = 'transition';
2311
- }
2312
- _.transformsEnabled = _.options.useTransform && (_.animType !== null && _.animType !== false);
2313
- };
2314
-
2315
-
2316
- Slick.prototype.setSlideClasses = function(index) {
2317
-
2318
- var _ = this,
2319
- centerOffset, allSlides, indexOffset, remainder;
2320
-
2321
- allSlides = _.$slider
2322
- .find('.slick-slide')
2323
- .removeClass('slick-active slick-center slick-current')
2324
- .attr('aria-hidden', 'true');
2325
-
2326
- _.$slides
2327
- .eq(index)
2328
- .addClass('slick-current');
2329
-
2330
- if (_.options.centerMode === true) {
2331
-
2332
- var evenCoef = _.options.slidesToShow % 2 === 0 ? 1 : 0;
2333
-
2334
- centerOffset = Math.floor(_.options.slidesToShow / 2);
2335
-
2336
- if (_.options.infinite === true) {
2337
-
2338
- if (index >= centerOffset && index <= (_.slideCount - 1) - centerOffset) {
2339
- _.$slides
2340
- .slice(index - centerOffset + evenCoef, index + centerOffset + 1)
2341
- .addClass('slick-active')
2342
- .attr('aria-hidden', 'false');
2343
-
2344
- } else {
2345
-
2346
- indexOffset = _.options.slidesToShow + index;
2347
- allSlides
2348
- .slice(indexOffset - centerOffset + 1 + evenCoef, indexOffset + centerOffset + 2)
2349
- .addClass('slick-active')
2350
- .attr('aria-hidden', 'false');
2351
-
2352
- }
2353
-
2354
- if (index === 0) {
2355
-
2356
- allSlides
2357
- .eq( _.options.slidesToShow + _.slideCount + 1 )
2358
- .addClass('slick-center');
2359
-
2360
- } else if (index === _.slideCount - 1) {
2361
-
2362
- allSlides
2363
- .eq(_.options.slidesToShow)
2364
- .addClass('slick-center');
2365
-
2366
- }
2367
-
2368
- }
2369
-
2370
- _.$slides
2371
- .eq(index)
2372
- .addClass('slick-center');
2373
-
2374
- } else {
2375
-
2376
- if (index >= 0 && index <= (_.slideCount - _.options.slidesToShow)) {
2377
-
2378
- _.$slides
2379
- .slice(index, index + _.options.slidesToShow)
2380
- .addClass('slick-active')
2381
- .attr('aria-hidden', 'false');
2382
-
2383
- } else if (allSlides.length <= _.options.slidesToShow) {
2384
-
2385
- allSlides
2386
- .addClass('slick-active')
2387
- .attr('aria-hidden', 'false');
2388
-
2389
- } else {
2390
-
2391
- remainder = _.slideCount % _.options.slidesToShow;
2392
- indexOffset = _.options.infinite === true ? _.options.slidesToShow + index : index;
2393
-
2394
- if (_.options.slidesToShow == _.options.slidesToScroll && (_.slideCount - index) < _.options.slidesToShow) {
2395
-
2396
- allSlides
2397
- .slice(indexOffset - (_.options.slidesToShow - remainder), indexOffset + remainder)
2398
- .addClass('slick-active')
2399
- .attr('aria-hidden', 'false');
2400
-
2401
- } else {
2402
-
2403
- allSlides
2404
- .slice(indexOffset, indexOffset + _.options.slidesToShow)
2405
- .addClass('slick-active')
2406
- .attr('aria-hidden', 'false');
2407
-
2408
- }
2409
-
2410
- }
2411
-
2412
- }
2413
-
2414
- if (_.options.lazyLoad === 'ondemand' || _.options.lazyLoad === 'anticipated') {
2415
- _.lazyLoad();
2416
- }
2417
- };
2418
-
2419
- Slick.prototype.setupInfinite = function() {
2420
-
2421
- var _ = this,
2422
- i, slideIndex, infiniteCount;
2423
-
2424
- if (_.options.fade === true) {
2425
- _.options.centerMode = false;
2426
- }
2427
-
2428
- if (_.options.infinite === true && _.options.fade === false) {
2429
-
2430
- slideIndex = null;
2431
-
2432
- if (_.slideCount > _.options.slidesToShow) {
2433
-
2434
- if (_.options.centerMode === true) {
2435
- infiniteCount = _.options.slidesToShow + 1;
2436
- } else {
2437
- infiniteCount = _.options.slidesToShow;
2438
- }
2439
-
2440
- for (i = _.slideCount; i > (_.slideCount -
2441
- infiniteCount); i -= 1) {
2442
- slideIndex = i - 1;
2443
- $(_.$slides[slideIndex]).clone(true).attr('id', '')
2444
- .attr('data-slick-index', slideIndex - _.slideCount)
2445
- .prependTo(_.$slideTrack).addClass('slick-cloned');
2446
- }
2447
- for (i = 0; i < infiniteCount + _.slideCount; i += 1) {
2448
- slideIndex = i;
2449
- $(_.$slides[slideIndex]).clone(true).attr('id', '')
2450
- .attr('data-slick-index', slideIndex + _.slideCount)
2451
- .appendTo(_.$slideTrack).addClass('slick-cloned');
2452
- }
2453
- _.$slideTrack.find('.slick-cloned').find('[id]').each(function() {
2454
- $(this).attr('id', '');
2455
- });
2456
-
2457
- }
2458
-
2459
- }
2460
-
2461
- };
2462
-
2463
- Slick.prototype.interrupt = function( toggle ) {
2464
-
2465
- var _ = this;
2466
-
2467
- if( !toggle ) {
2468
- _.autoPlay();
2469
- }
2470
- _.interrupted = toggle;
2471
-
2472
- };
2473
-
2474
- Slick.prototype.selectHandler = function(event) {
2475
-
2476
- var _ = this;
2477
-
2478
- var targetElement =
2479
- $(event.target).is('.slick-slide') ?
2480
- $(event.target) :
2481
- $(event.target).parents('.slick-slide');
2482
-
2483
- var index = parseInt(targetElement.attr('data-slick-index'));
2484
-
2485
- if (!index) index = 0;
2486
-
2487
- if (_.slideCount <= _.options.slidesToShow) {
2488
-
2489
- _.slideHandler(index, false, true);
2490
- return;
2491
-
2492
- }
2493
-
2494
- _.slideHandler(index);
2495
-
2496
- };
2497
-
2498
- Slick.prototype.slideHandler = function(index, sync, dontAnimate) {
2499
-
2500
- var targetSlide, animSlide, oldSlide, slideLeft, targetLeft = null,
2501
- _ = this, navTarget;
2502
-
2503
- sync = sync || false;
2504
-
2505
- if (_.animating === true && _.options.waitForAnimate === true) {
2506
- return;
2507
- }
2508
-
2509
- if (_.options.fade === true && _.currentSlide === index) {
2510
- return;
2511
- }
2512
-
2513
- if (sync === false) {
2514
- _.asNavFor(index);
2515
- }
2516
-
2517
- targetSlide = index;
2518
- targetLeft = _.getLeft(targetSlide);
2519
- slideLeft = _.getLeft(_.currentSlide);
2520
-
2521
- _.currentLeft = _.swipeLeft === null ? slideLeft : _.swipeLeft;
2522
-
2523
- if (_.options.infinite === false && _.options.centerMode === false && (index < 0 || index > _.getDotCount() * _.options.slidesToScroll)) {
2524
- if (_.options.fade === false) {
2525
- targetSlide = _.currentSlide;
2526
- if (dontAnimate !== true && _.slideCount > _.options.slidesToShow) {
2527
- _.animateSlide(slideLeft, function() {
2528
- _.postSlide(targetSlide);
2529
- });
2530
- } else {
2531
- _.postSlide(targetSlide);
2532
- }
2533
- }
2534
- return;
2535
- } else if (_.options.infinite === false && _.options.centerMode === true && (index < 0 || index > (_.slideCount - _.options.slidesToScroll))) {
2536
- if (_.options.fade === false) {
2537
- targetSlide = _.currentSlide;
2538
- if (dontAnimate !== true && _.slideCount > _.options.slidesToShow) {
2539
- _.animateSlide(slideLeft, function() {
2540
- _.postSlide(targetSlide);
2541
- });
2542
- } else {
2543
- _.postSlide(targetSlide);
2544
- }
2545
- }
2546
- return;
2547
- }
2548
-
2549
- if ( _.options.autoplay ) {
2550
- clearInterval(_.autoPlayTimer);
2551
- }
2552
-
2553
- if (targetSlide < 0) {
2554
- if (_.slideCount % _.options.slidesToScroll !== 0) {
2555
- animSlide = _.slideCount - (_.slideCount % _.options.slidesToScroll);
2556
- } else {
2557
- animSlide = _.slideCount + targetSlide;
2558
- }
2559
- } else if (targetSlide >= _.slideCount) {
2560
- if (_.slideCount % _.options.slidesToScroll !== 0) {
2561
- animSlide = 0;
2562
- } else {
2563
- animSlide = targetSlide - _.slideCount;
2564
- }
2565
- } else {
2566
- animSlide = targetSlide;
2567
- }
2568
-
2569
- _.animating = true;
2570
-
2571
- _.$slider.trigger('beforeChange', [_, _.currentSlide, animSlide]);
2572
-
2573
- oldSlide = _.currentSlide;
2574
- _.currentSlide = animSlide;
2575
-
2576
- _.setSlideClasses(_.currentSlide);
2577
-
2578
- if ( _.options.asNavFor ) {
2579
-
2580
- navTarget = _.getNavTarget();
2581
- navTarget = navTarget.slick('getSlick');
2582
-
2583
- if ( navTarget.slideCount <= navTarget.options.slidesToShow ) {
2584
- navTarget.setSlideClasses(_.currentSlide);
2585
- }
2586
-
2587
- }
2588
-
2589
- _.updateDots();
2590
- _.updateArrows();
2591
-
2592
- if (_.options.fade === true) {
2593
- if (dontAnimate !== true) {
2594
-
2595
- _.fadeSlideOut(oldSlide);
2596
-
2597
- _.fadeSlide(animSlide, function() {
2598
- _.postSlide(animSlide);
2599
- });
2600
-
2601
- } else {
2602
- _.postSlide(animSlide);
2603
- }
2604
- _.animateHeight();
2605
- return;
2606
- }
2607
-
2608
- if (dontAnimate !== true && _.slideCount > _.options.slidesToShow) {
2609
- _.animateSlide(targetLeft, function() {
2610
- _.postSlide(animSlide);
2611
- });
2612
- } else {
2613
- _.postSlide(animSlide);
2614
- }
2615
-
2616
- };
2617
-
2618
- Slick.prototype.startLoad = function() {
2619
-
2620
- var _ = this;
2621
-
2622
- if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
2623
-
2624
- _.$prevArrow.hide();
2625
- _.$nextArrow.hide();
2626
-
2627
- }
2628
-
2629
- if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
2630
-
2631
- _.$dots.hide();
2632
-
2633
- }
2634
-
2635
- _.$slider.addClass('slick-loading');
2636
-
2637
- };
2638
-
2639
- Slick.prototype.swipeDirection = function() {
2640
-
2641
- var xDist, yDist, r, swipeAngle, _ = this;
2642
-
2643
- xDist = _.touchObject.startX - _.touchObject.curX;
2644
- yDist = _.touchObject.startY - _.touchObject.curY;
2645
- r = Math.atan2(yDist, xDist);
2646
-
2647
- swipeAngle = Math.round(r * 180 / Math.PI);
2648
- if (swipeAngle < 0) {
2649
- swipeAngle = 360 - Math.abs(swipeAngle);
2650
- }
2651
-
2652
- if ((swipeAngle <= 45) && (swipeAngle >= 0)) {
2653
- return (_.options.rtl === false ? 'left' : 'right');
2654
- }
2655
- if ((swipeAngle <= 360) && (swipeAngle >= 315)) {
2656
- return (_.options.rtl === false ? 'left' : 'right');
2657
- }
2658
- if ((swipeAngle >= 135) && (swipeAngle <= 225)) {
2659
- return (_.options.rtl === false ? 'right' : 'left');
2660
- }
2661
- if (_.options.verticalSwiping === true) {
2662
- if ((swipeAngle >= 35) && (swipeAngle <= 135)) {
2663
- return 'down';
2664
- } else {
2665
- return 'up';
2666
- }
2667
- }
2668
-
2669
- return 'vertical';
2670
-
2671
- };
2672
-
2673
- Slick.prototype.swipeEnd = function(event) {
2674
-
2675
- var _ = this,
2676
- slideCount,
2677
- direction;
2678
-
2679
- _.dragging = false;
2680
- _.swiping = false;
2681
-
2682
- if (_.scrolling) {
2683
- _.scrolling = false;
2684
- return false;
2685
- }
2686
-
2687
- _.interrupted = false;
2688
- _.shouldClick = ( _.touchObject.swipeLength > 10 ) ? false : true;
2689
-
2690
- if ( _.touchObject.curX === undefined ) {
2691
- return false;
2692
- }
2693
-
2694
- if ( _.touchObject.edgeHit === true ) {
2695
- _.$slider.trigger('edge', [_, _.swipeDirection() ]);
2696
- }
2697
-
2698
- if ( _.touchObject.swipeLength >= _.touchObject.minSwipe ) {
2699
-
2700
- direction = _.swipeDirection();
2701
-
2702
- switch ( direction ) {
2703
-
2704
- case 'left':
2705
- case 'down':
2706
-
2707
- slideCount =
2708
- _.options.swipeToSlide ?
2709
- _.checkNavigable( _.currentSlide + _.getSlideCount() ) :
2710
- _.currentSlide + _.getSlideCount();
2711
-
2712
- _.currentDirection = 0;
2713
-
2714
- break;
2715
-
2716
- case 'right':
2717
- case 'up':
2718
-
2719
- slideCount =
2720
- _.options.swipeToSlide ?
2721
- _.checkNavigable( _.currentSlide - _.getSlideCount() ) :
2722
- _.currentSlide - _.getSlideCount();
2723
-
2724
- _.currentDirection = 1;
2725
-
2726
- break;
2727
-
2728
- default:
2729
-
2730
-
2731
- }
2732
-
2733
- if( direction != 'vertical' ) {
2734
-
2735
- _.slideHandler( slideCount );
2736
- _.touchObject = {};
2737
- _.$slider.trigger('swipe', [_, direction ]);
2738
-
2739
- }
2740
-
2741
- } else {
2742
-
2743
- if ( _.touchObject.startX !== _.touchObject.curX ) {
2744
-
2745
- _.slideHandler( _.currentSlide );
2746
- _.touchObject = {};
2747
-
2748
- }
2749
-
2750
- }
2751
-
2752
- };
2753
-
2754
- Slick.prototype.swipeHandler = function(event) {
2755
-
2756
- var _ = this;
2757
-
2758
- if ((_.options.swipe === false) || ('ontouchend' in document && _.options.swipe === false)) {
2759
- return;
2760
- } else if (_.options.draggable === false && event.type.indexOf('mouse') !== -1) {
2761
- return;
2762
- }
2763
-
2764
- _.touchObject.fingerCount = event.originalEvent && event.originalEvent.touches !== undefined ?
2765
- event.originalEvent.touches.length : 1;
2766
-
2767
- _.touchObject.minSwipe = _.listWidth / _.options
2768
- .touchThreshold;
2769
-
2770
- if (_.options.verticalSwiping === true) {
2771
- _.touchObject.minSwipe = _.listHeight / _.options
2772
- .touchThreshold;
2773
- }
2774
-
2775
- switch (event.data.action) {
2776
-
2777
- case 'start':
2778
- _.swipeStart(event);
2779
- break;
2780
-
2781
- case 'move':
2782
- _.swipeMove(event);
2783
- break;
2784
-
2785
- case 'end':
2786
- _.swipeEnd(event);
2787
- break;
2788
-
2789
- }
2790
-
2791
- };
2792
-
2793
- Slick.prototype.swipeMove = function(event) {
2794
-
2795
- var _ = this,
2796
- edgeWasHit = false,
2797
- curLeft, swipeDirection, swipeLength, positionOffset, touches, verticalSwipeLength;
2798
-
2799
- touches = event.originalEvent !== undefined ? event.originalEvent.touches : null;
2800
-
2801
- if (!_.dragging || _.scrolling || touches && touches.length !== 1) {
2802
- return false;
2803
- }
2804
-
2805
- curLeft = _.getLeft(_.currentSlide);
2806
-
2807
- _.touchObject.curX = touches !== undefined ? touches[0].pageX : event.clientX;
2808
- _.touchObject.curY = touches !== undefined ? touches[0].pageY : event.clientY;
2809
-
2810
- _.touchObject.swipeLength = Math.round(Math.sqrt(
2811
- Math.pow(_.touchObject.curX - _.touchObject.startX, 2)));
2812
-
2813
- verticalSwipeLength = Math.round(Math.sqrt(
2814
- Math.pow(_.touchObject.curY - _.touchObject.startY, 2)));
2815
-
2816
- if (!_.options.verticalSwiping && !_.swiping && verticalSwipeLength > 4) {
2817
- _.scrolling = true;
2818
- return false;
2819
- }
2820
-
2821
- if (_.options.verticalSwiping === true) {
2822
- _.touchObject.swipeLength = verticalSwipeLength;
2823
- }
2824
-
2825
- swipeDirection = _.swipeDirection();
2826
-
2827
- if (event.originalEvent !== undefined && _.touchObject.swipeLength > 4) {
2828
- _.swiping = true;
2829
- event.preventDefault();
2830
- }
2831
-
2832
- positionOffset = (_.options.rtl === false ? 1 : -1) * (_.touchObject.curX > _.touchObject.startX ? 1 : -1);
2833
- if (_.options.verticalSwiping === true) {
2834
- positionOffset = _.touchObject.curY > _.touchObject.startY ? 1 : -1;
2835
- }
2836
-
2837
-
2838
- swipeLength = _.touchObject.swipeLength;
2839
-
2840
- _.touchObject.edgeHit = false;
2841
-
2842
- if (_.options.infinite === false) {
2843
- if ((_.currentSlide === 0 && swipeDirection === 'right') || (_.currentSlide >= _.getDotCount() && swipeDirection === 'left')) {
2844
- swipeLength = _.touchObject.swipeLength * _.options.edgeFriction;
2845
- _.touchObject.edgeHit = true;
2846
- }
2847
- }
2848
-
2849
- if (_.options.vertical === false) {
2850
- _.swipeLeft = curLeft + swipeLength * positionOffset;
2851
- } else {
2852
- _.swipeLeft = curLeft + (swipeLength * (_.$list.height() / _.listWidth)) * positionOffset;
2853
- }
2854
- if (_.options.verticalSwiping === true) {
2855
- _.swipeLeft = curLeft + swipeLength * positionOffset;
2856
- }
2857
-
2858
- if (_.options.fade === true || _.options.touchMove === false) {
2859
- return false;
2860
- }
2861
-
2862
- if (_.animating === true) {
2863
- _.swipeLeft = null;
2864
- return false;
2865
- }
2866
-
2867
- _.setCSS(_.swipeLeft);
2868
-
2869
- };
2870
-
2871
- Slick.prototype.swipeStart = function(event) {
2872
-
2873
- var _ = this,
2874
- touches;
2875
-
2876
- _.interrupted = true;
2877
-
2878
- if (_.touchObject.fingerCount !== 1 || _.slideCount <= _.options.slidesToShow) {
2879
- _.touchObject = {};
2880
- return false;
2881
- }
2882
-
2883
- if (event.originalEvent !== undefined && event.originalEvent.touches !== undefined) {
2884
- touches = event.originalEvent.touches[0];
2885
- }
2886
-
2887
- _.touchObject.startX = _.touchObject.curX = touches !== undefined ? touches.pageX : event.clientX;
2888
- _.touchObject.startY = _.touchObject.curY = touches !== undefined ? touches.pageY : event.clientY;
2889
-
2890
- _.dragging = true;
2891
-
2892
- };
2893
-
2894
- Slick.prototype.unfilterSlides = Slick.prototype.slickUnfilter = function() {
2895
-
2896
- var _ = this;
2897
-
2898
- if (_.$slidesCache !== null) {
2899
-
2900
- _.unload();
2901
-
2902
- _.$slideTrack.children(this.options.slide).detach();
2903
-
2904
- _.$slidesCache.appendTo(_.$slideTrack);
2905
-
2906
- _.reinit();
2907
-
2908
- }
2909
-
2910
- };
2911
-
2912
- Slick.prototype.unload = function() {
2913
-
2914
- var _ = this;
2915
-
2916
- $('.slick-cloned', _.$slider).remove();
2917
-
2918
- if (_.$dots) {
2919
- _.$dots.remove();
2920
- }
2921
-
2922
- if (_.$prevArrow && _.htmlExpr.test(_.options.prevArrow)) {
2923
- _.$prevArrow.remove();
2924
- }
2925
-
2926
- if (_.$nextArrow && _.htmlExpr.test(_.options.nextArrow)) {
2927
- _.$nextArrow.remove();
2928
- }
2929
-
2930
- _.$slides
2931
- .removeClass('slick-slide slick-active slick-visible slick-current')
2932
- .attr('aria-hidden', 'true')
2933
- .css('width', '');
2934
-
2935
- };
2936
-
2937
- Slick.prototype.unslick = function(fromBreakpoint) {
2938
-
2939
- var _ = this;
2940
- _.$slider.trigger('unslick', [_, fromBreakpoint]);
2941
- _.destroy();
2942
-
2943
- };
2944
-
2945
- Slick.prototype.updateArrows = function() {
2946
-
2947
- var _ = this,
2948
- centerOffset;
2949
-
2950
- centerOffset = Math.floor(_.options.slidesToShow / 2);
2951
-
2952
- if ( _.options.arrows === true &&
2953
- _.slideCount > _.options.slidesToShow &&
2954
- !_.options.infinite ) {
2955
-
2956
- _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2957
- _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2958
-
2959
- if (_.currentSlide === 0) {
2960
-
2961
- _.$prevArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
2962
- _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2963
-
2964
- } else if (_.currentSlide >= _.slideCount - _.options.slidesToShow && _.options.centerMode === false) {
2965
-
2966
- _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
2967
- _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2968
-
2969
- } else if (_.currentSlide >= _.slideCount - 1 && _.options.centerMode === true) {
2970
-
2971
- _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
2972
- _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2973
-
2974
- }
2975
-
2976
- }
2977
-
2978
- };
2979
-
2980
- Slick.prototype.updateDots = function() {
2981
-
2982
- var _ = this;
2983
-
2984
- if (_.$dots !== null) {
2985
-
2986
- _.$dots
2987
- .find('li')
2988
- .removeClass('slick-active')
2989
- .end();
2990
-
2991
- _.$dots
2992
- .find('li')
2993
- .eq(Math.floor(_.currentSlide / _.options.slidesToScroll))
2994
- .addClass('slick-active');
2995
-
2996
- }
2997
-
2998
- };
2999
-
3000
- Slick.prototype.visibility = function() {
3001
-
3002
- var _ = this;
3003
-
3004
- if ( _.options.autoplay ) {
3005
-
3006
- if ( document[_.hidden] ) {
3007
-
3008
- _.interrupted = true;
3009
-
3010
- } else {
3011
-
3012
- _.interrupted = false;
3013
-
3014
- }
3015
-
3016
- }
3017
-
3018
- };
3019
-
3020
- $.fn.slick = function() {
3021
- var _ = this,
3022
- opt = arguments[0],
3023
- args = Array.prototype.slice.call(arguments, 1),
3024
- l = _.length,
3025
- i,
3026
- ret;
3027
- for (i = 0; i < l; i++) {
3028
- if (typeof opt == 'object' || typeof opt == 'undefined')
3029
- _[i].slick = new Slick(_[i], opt);
3030
- else
3031
- ret = _[i].slick[opt].apply(_[i].slick, args);
3032
- if (typeof ret != 'undefined') return ret;
3033
- }
3034
- return _;
3035
- };
3036
-
3037
- }));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/admin/slick.min.js DELETED
@@ -1,18 +0,0 @@
1
- /*
2
- _ _ _ _
3
- ___| (_) ___| | __ (_)___
4
- / __| | |/ __| |/ / | / __|
5
- \__ \ | | (__| < _ | \__ \
6
- |___/_|_|\___|_|\_(_)/ |___/
7
- |__/
8
-
9
- Version: 1.9.0
10
- Author: Ken Wheeler
11
- Website: http://kenwheeler.github.io
12
- Docs: http://kenwheeler.github.io/slick
13
- Repo: http://github.com/kenwheeler/slick
14
- Issues: http://github.com/kenwheeler/slick/issues
15
-
16
- */
17
- (function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)})(function(i){"use strict";var e=window.Slick||{};e=function(){function e(e,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(e),appendDots:i(e),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(e),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(e).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,"undefined"!=typeof document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=t++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}var t=0;return e}(),e.prototype.activateADA=function(){var i=this;i.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):o===!0?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&i.options.adaptiveHeight===!0&&i.options.vertical===!1){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),s.options.rtl===!0&&s.options.vertical===!1&&(e=-e),s.transformsEnabled===!1?s.options.vertical===!1?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):s.cssTransitions===!1?(s.options.rtl===!0&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),s.options.vertical===!1?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),s.options.vertical===!1?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this,o=t.getNavTarget();null!==o&&"object"==typeof o&&o.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};e.options.fade===!1?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(i.options.infinite===!1&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1===0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(o.options.dots===!0&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),e.options.centerMode!==!0&&e.options.swipeToSlide!==!0||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>0){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(r.originalSettings.mobileFirst===!1?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||l===!1||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!==0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t,o=this;if(e=o.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var s in e){if(i<e[s]){i=t;break}t=e[s]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),e.options.accessibility===!0&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),e.options.accessibility===!0&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),e.options.accessibility===!0&&e.$list.off("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>0&&(i=e.$slides.children().children(),i.removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){var e=this;e.shouldClick===!1&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;t.cssTransitions===!1?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;e.cssTransitions===!1?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick","*",function(t){var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&o.is(":focus")&&(e.focussed=!0,e.autoPlay())},0)}).on("blur.slick","*",function(t){i(this);e.options.pauseOnFocus&&(e.focussed=!1,e.autoPlay())})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var i=this;return i.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(i.options.infinite===!0)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(i.options.centerMode===!0)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),n.options.infinite===!0?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,n.options.vertical===!0&&n.options.centerMode===!0&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!==0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),n.options.centerMode===!0&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:n.options.centerMode===!0&&n.options.infinite===!0?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:n.options.centerMode===!0&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=n.options.vertical===!1?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,n.options.variableWidth===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=n.options.rtl===!0?o[0]?(n.$slideTrack.width()-o[0].offsetLeft-o.width())*-1:0:o[0]?o[0].offsetLeft*-1:0,n.options.centerMode===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=n.options.rtl===!0?o[0]?(n.$slideTrack.width()-o[0].offsetLeft-o.width())*-1:0:o[0]?o[0].offsetLeft*-1:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){var e=this;return e.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(e.options.infinite===!1?i=e.slideCount:(t=e.options.slidesToScroll*-1,o=e.options.slidesToScroll*-1,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o,s,n=this;return s=n.options.centerMode===!0?Math.floor(n.$list.width()/2):0,o=n.swipeLeft*-1+s,n.options.swipeToSlide===!0?(n.$slideTrack.find(".slick-slide").each(function(e,s){var r,l,d;if(r=i(s).outerWidth(),l=s.offsetLeft,n.options.centerMode!==!0&&(l+=r/2),d=l+r,o<d)return t=s,!1}),e=Math.abs(i(t).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){var t=this;t.changeSlide({data:{message:"index",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),t.options.accessibility===!0&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);if(i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),s!==-1){var n="slick-slide-control"+e.instanceUid+s;i("#"+n).length&&i(this).attr({"aria-describedby":n})}}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.options.focusOnChange?e.$slides.eq(s).attr({tabindex:"0"}):e.$slides.eq(s).removeAttr("tabindex");e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),i.options.accessibility===!0&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),e.options.accessibility===!0&&e.$dots.on("keydown.slick",e.keyHandler)),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.slideCount>e.options.slidesToShow&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:e.options.rtl===!0?"next":"previous"}}):39===i.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:e.options.rtl===!0?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||r.$slider.attr("data-sizes"),n=document.createElement("img");n.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,e,t])})},n.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,e,t])},n.src=t})}var t,o,s,n,r=this;if(r.options.centerMode===!0?r.options.infinite===!0?(s=r.currentSlide+(r.options.slidesToShow/2+1),n=s+r.options.slidesToShow+2):(s=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),n=2+(r.options.slidesToShow/2+1)+r.currentSlide):(s=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,n=Math.ceil(s+r.options.slidesToShow),r.options.fade===!0&&(s>0&&s--,n<=r.slideCount&&n++)),t=r.$slider.find(".slick-slide").slice(s,n),"anticipated"===r.options.lazyLoad)for(var l=s-1,d=n,a=r.$slider.find(".slick-slide"),c=0;c<r.options.slidesToScroll;c++)l<0&&(l=r.slideCount-1),t=t.add(a.eq(l)),t=t.add(a.eq(d)),l--,d++;e(t),r.slideCount<=r.options.slidesToShow?(o=r.$slider.find(".slick-slide"),e(o)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(o=r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow),e(o)):0===r.currentSlide&&(o=r.$slider.find(".slick-cloned").slice(r.options.slidesToShow*-1),e(o))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var i=this;i.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;if(!t.unslicked&&(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),t.options.accessibility===!0&&(t.initADA(),t.options.focusOnChange))){var o=i(t.$slides.get(t.currentSlide));o.attr("tabindex",0).focus()}},e.prototype.prev=e.prototype.slickPrev=function(){var i=this;i.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),r=document.createElement("img"),r.onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),l.options.adaptiveHeight===!0&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;return"boolean"==typeof i?(e=i,i=e===!0?0:o.slideCount-1):i=e===!0?--i:i,!(o.slideCount<1||i<0||i>o.slideCount-1)&&(o.unload(),t===!0?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,void o.reinit())},e.prototype.setCSS=function(i){var e,t,o=this,s={};o.options.rtl===!0&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,o.transformsEnabled===!1?o.$slideTrack.css(s):(s={},o.cssTransitions===!1?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;i.options.vertical===!1?i.options.centerMode===!0&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),i.options.centerMode===!0&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),i.options.vertical===!1&&i.options.variableWidth===!1?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):i.options.variableWidth===!0?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();i.options.variableWidth===!1&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,t.options.rtl===!0?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&i.options.adaptiveHeight===!0&&i.options.vertical===!1){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":"undefined"!=typeof arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),i.options.fade===!1?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=i.options.vertical===!0?"top":"left",
18
- "top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||i.options.useCSS===!0&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&i.animType!==!1&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&i.animType!==!1},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),n.options.centerMode===!0){var r=n.options.slidesToShow%2===0?1:0;e=Math.floor(n.options.slidesToShow/2),n.options.infinite===!0&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=n.options.infinite===!0?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(s.options.fade===!0&&(s.options.centerMode=!1),s.options.infinite===!0&&s.options.fade===!1&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=s.options.centerMode===!0?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));return s||(s=0),t.slideCount<=t.options.slidesToShow?void t.slideHandler(s,!1,!0):void t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(a.animating===!0&&a.options.waitForAnimate===!0||a.options.fade===!0&&a.currentSlide===i))return e===!1&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,a.options.infinite===!1&&a.options.centerMode===!1&&(i<0||i>a.getDotCount()*a.options.slidesToScroll)?void(a.options.fade===!1&&(o=a.currentSlide,t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o))):a.options.infinite===!1&&a.options.centerMode===!0&&(i<0||i>a.slideCount-a.options.slidesToScroll)?void(a.options.fade===!1&&(o=a.currentSlide,t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o))):(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!==0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!==0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=a.getNavTarget(),l=l.slick("getSlick"),l.slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide)),a.updateDots(),a.updateArrows(),a.options.fade===!0?(t!==!0?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight()):void(t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)))},e.prototype.startLoad=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),o=Math.round(180*t/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0?s.options.rtl===!1?"left":"right":o<=360&&o>=315?s.options.rtl===!1?"left":"right":o>=135&&o<=225?s.options.rtl===!1?"right":"left":s.options.verticalSwiping===!0?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(o.touchObject.edgeHit===!0&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(e.options.swipe===!1||"ontouchend"in document&&e.options.swipe===!1||e.options.draggable===!1&&i.type.indexOf("mouse")!==-1))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(l.options.verticalSwiping===!0&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(l.options.rtl===!1?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),l.options.verticalSwiping===!0&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,l.options.infinite===!1&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),l.options.vertical===!1?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,l.options.verticalSwiping===!0&&(l.swipeLeft=e+o*s),l.options.fade!==!0&&l.options.touchMove!==!1&&(l.animating===!0?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;return t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,void(t.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i,e=this;i=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||"undefined"==typeof s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),"undefined"!=typeof t)return t;return o}});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/front/fancybox.js CHANGED
@@ -525,20 +525,20 @@
525
  // =============================================
526
 
527
  var inViewport = function (elem) {
528
- var elemCenter, rez;
529
-
530
- if (!elem || elem.ownerDocument !== document) {
531
  return false;
532
  }
533
 
534
  $(".modula-fancybox-container").css("pointer-events", "none");
535
 
536
  elemCenter = {
537
- x: elem.getBoundingClientRect().left + elem.offsetWidth / 2,
538
- y: elem.getBoundingClientRect().top + elem.offsetHeight / 2
539
  };
540
 
541
- rez = document.elementFromPoint(elemCenter.x, elemCenter.y) === elem;
542
 
543
  $(".modula-fancybox-container").css("pointer-events", "");
544
 
@@ -1214,7 +1214,7 @@
1214
 
1215
  $.each(self.slides, function (index, slide) {
1216
  slide.$slide.removeClass("modula-fancybox-animated").removeClass(function (index, className) {
1217
- return (className.match(/(^|\s)fancybox-fx-\S+/g) || []).join(" ");
1218
  });
1219
 
1220
  // Make sure that each slide is in equal distance
@@ -2541,7 +2541,7 @@
2541
  $.modulaFancybox.stop($slide);
2542
 
2543
  //effectClassName = "fancybox-animated fancybox-slide--" + (slide.pos >= self.prevPos ? "next" : "previous") + " fancybox-fx-" + effect;
2544
- effectClassName = "modula-fancybox-slide--" + (slide.pos >= self.prevPos ? "next" : "previous") + " modula-fancybox-animated fancybox-fx-" + effect;
2545
 
2546
  $slide.addClass(effectClassName).removeClass("modula-fancybox-slide--current"); //.addClass(effectClassName);
2547
 
@@ -2584,7 +2584,7 @@
2584
  bbw,
2585
  blw;
2586
 
2587
- if (!$thumb || !inViewport($thumb[0])) {
2588
  return false;
2589
  }
2590
 
@@ -4191,7 +4191,7 @@
4191
  })
4192
  .removeClass("modula-fancybox-animated")
4193
  .removeClass(function (index, className) {
4194
- return (className.match(/(^|\s)fancybox-fx-\S+/g) || []).join(" ");
4195
  });
4196
 
4197
  if (slide.pos === instance.current.pos) {
525
  // =============================================
526
 
527
  var inViewport = function (elem) {
528
+ // we create the element variable which contains the link that triggers the lightbox opening
529
+ var elemCenter, rez, element = elem.find('a.tile-inner')[0];
530
+ if (!element || element.ownerDocument !== document) {
531
  return false;
532
  }
533
 
534
  $(".modula-fancybox-container").css("pointer-events", "none");
535
 
536
  elemCenter = {
537
+ x: element.getBoundingClientRect().left + element.offsetWidth / 2,
538
+ y: element.getBoundingClientRect().top + element.offsetHeight / 2
539
  };
540
 
541
+ rez = document.elementFromPoint(elemCenter.x, elemCenter.y) === element;
542
 
543
  $(".modula-fancybox-container").css("pointer-events", "");
544
 
1214
 
1215
  $.each(self.slides, function (index, slide) {
1216
  slide.$slide.removeClass("modula-fancybox-animated").removeClass(function (index, className) {
1217
+ return (className.match(/(^|\s)modula-fancybox-fx-\S+/g) || []).join(" ");
1218
  });
1219
 
1220
  // Make sure that each slide is in equal distance
2541
  $.modulaFancybox.stop($slide);
2542
 
2543
  //effectClassName = "fancybox-animated fancybox-slide--" + (slide.pos >= self.prevPos ? "next" : "previous") + " fancybox-fx-" + effect;
2544
+ effectClassName = "modula-fancybox-slide--" + (slide.pos >= self.prevPos ? "next" : "previous") + " modula-fancybox-animated modula-fancybox-fx-" + effect;
2545
 
2546
  $slide.addClass(effectClassName).removeClass("modula-fancybox-slide--current"); //.addClass(effectClassName);
2547
 
2584
  bbw,
2585
  blw;
2586
 
2587
+ if (!$thumb || !inViewport($thumb)) {
2588
  return false;
2589
  }
2590
 
4191
  })
4192
  .removeClass("modula-fancybox-animated")
4193
  .removeClass(function (index, className) {
4194
+ return (className.match(/(^|\s)modula-fancybox-fx-\S+/g) || []).join(" ");
4195
  });
4196
 
4197
  if (slide.pos === instance.current.pos) {
assets/js/front/fancybox.min.js CHANGED
@@ -1 +1 @@
1
- !function(l,u,m,g){"use strict";var t,a,s,i,p,e,c,h,d,n,o,r,f,b;function y(t,e){var o,n,a,i=[],s=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=d(t.data.options,e)),o=e.$target||m(t.currentTarget).trigger("blur"),(a=m.modulaFancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(i=e.selector?m(e.selector):(n=o.attr("data-fancybox")||"")?(i=t.data?t.data.items:[]).length?i.filter('[data-fancybox="'+n+'"]'):m('[data-fancybox="'+n+'"]'):[o],(s=m(i).index(o))<0&&(s=0),(a=m.modulaFancybox.open(i,e,s)).$trigger=o))}l.console=l.console||{info:function(t){}},m&&(m.fn.modulaFancybox?console.info("fancyBox already initialized"):(t={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="modula-fancybox-frame{rnd}" name="modula-fancybox-frame{rnd}" class="modula-fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="modula-fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="modula-fancybox-container" role="dialog" tabindex="-1"><div class="modula-fancybox-bg"></div><div class="modula-fancybox-inner"><div class="modula-fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="modula-fancybox-toolbar">{{buttons}}</div><div class="modula-fancybox-navigation">{{arrows}}</div><div class="modula-fancybox-stage"></div><div class="modula-fancybox-caption"><div class="modula-fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="modula-fancybox-loading"></div>',errorTpl:'<div class="modula-fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="modula-fancybox-button modula-fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="modula-fancybox-button modula-fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="modula-fancybox-button modula-fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="modula-fancybox-button modula-fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="modula-fancybox-button modula-fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="modula-fancybox-button modula-fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},modulaShare:["facebook","twitter","pinterest","whatsapp","linkedin","email"],shareBtnTpl:{facebook:'<a class="modula-fancybox-share__button modula-fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{modulaShareUrl}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a>',twitter:'<a class="modula-fancybox-share__button modula-fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{modulaShareUrl}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a>',pinterest:'<a class="modula-fancybox-share__button modula-fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{modulaShareUrl}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a>',whatsapp:'<a class="modula-fancybox-share__button modula-fancybox-share__button--wa" href="https://api.whatsapp.com/send?text={{modulaShareUrl}}&review_url=true"><svg aria-hidden="true" focusable="false" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1536 1600"><path d="M985 878q13 0 97.5 44t89.5 53q2 5 2 15q0 33-17 76q-16 39-71 65.5T984 1158q-57 0-190-62q-98-45-170-118T476 793q-72-107-71-194v-8q3-91 74-158q24-22 52-22q6 0 18 1.5t19 1.5q19 0 26.5 6.5T610 448q8 20 33 88t25 75q0 21-34.5 57.5T599 715q0 7 5 15q34 73 102 137q56 53 151 101q12 7 22 7q15 0 54-48.5t52-48.5zm-203 530q127 0 243.5-50t200.5-134t134-200.5t50-243.5t-50-243.5T1226 336t-200.5-134T782 152t-243.5 50T338 336T204 536.5T154 780q0 203 120 368l-79 233l242-77q158 104 345 104zm0-1382q153 0 292.5 60T1315 247t161 240.5t60 292.5t-60 292.5t-161 240.5t-240.5 161t-292.5 60q-195 0-365-94L0 1574l136-405Q28 991 28 780q0-153 60-292.5T249 247T489.5 86T782 26z" fill="currentColor"/></svg><span>WhatsApp</span></a>',linkedin:'<a class="modula-fancybox-share__button modula-fancybox-share__button--li" href="//linkedin.com/shareArticle?mini=true&url={{modulaShareUrl}}"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg><span>LinkedIn</span></a>',email:'<a class="modula-fancybox-share__button modula-fancybox-share__button--email" href="mailto:?subject={{subject}}&body={{emailMessage}}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z" fill="currentColor"></path></svg><span>Email</span></a>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"},wheel:"auto",onInit:m.noop,beforeLoad:m.noop,afterLoad:m.noop,beforeShow:m.noop,afterShow:m.noop,beforeClose:m.noop,afterClose:m.noop,onActivate:m.noop,onDeactivate:m.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},a=m(l),s=m(u),i=0,p=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||function(t){return l.setTimeout(t,1e3/60)},e=l.cancelAnimationFrame||l.webkitCancelAnimationFrame||l.mozCancelAnimationFrame||l.oCancelAnimationFrame||function(t){l.clearTimeout(t)},c=function(){var t,e=u.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(e.style[t]!==g)return o[t];return"transitionend"}(),h=function(t){return t&&t.length&&t[0].offsetHeight},d=function(t,e){var o=m.extend(!0,{},t,e);return m.each(e,function(t,e){m.isArray(e)&&(o[t]=e)}),o},n=function(t,e,o){var n=this;n.opts=d({index:o},m.modulaFancybox.defaults),m.isPlainObject(e)&&(n.opts=d(n.opts,e)),m.modulaFancybox.isMobile&&(n.opts=d(n.opts,n.opts.mobile)),n.id=n.opts.id||++i,n.currIndex=parseInt(n.opts.index,10)||0,n.prevIndex=null,n.prevPos=null,n.currPos=0,n.firstRun=!0,n.group=[],n.slides={},n.addContent(t),n.group.length&&n.init()},m.extend(n.prototype,{init:function(){var o=this;o.currIndex<0&&(o.currIndex=0),void 0===o.group[o.currIndex]&&jQuery.each(this.group,function(t,e){o.currIndex!=parseInt(e.opts.image_id)||(o.currIndex=t)});var e,n,a=o.group[o.currIndex].opts;a.closeExisting&&m.modulaFancybox.close(!0),m("body").addClass("modula-fancybox-active"),!m.modulaFancybox.getInstance()&&!1!==a.hideScrollbar&&!m.modulaFancybox.isMobile&&u.body.scrollHeight>l.innerHeight&&(m("head").append('<style id="modula-fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(l.innerWidth-u.documentElement.clientWidth)+"px;}</style>"),m("body").addClass("compensate-for-scrollbar")),n="",m.each(a.buttons,function(t,e){n+=a.btnTpl[e]||""}),e=m(o.translate(o,a.baseTpl.replace("{{buttons}}",n).replace("{{arrows}}",a.btnTpl.arrowLeft+a.btnTpl.arrowRight))).attr("id","modula-fancybox-container-"+o.id).addClass(a.baseClass).data("modulaFancyBox",o).appendTo(a.parentEl),o.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){o.$refs[t]=e.find(".modula-fancybox-"+t)}),o.trigger("onInit"),o.activate(),o.jumpTo(o.currIndex)},translate:function(t,e){var o=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return o[e]===g?t:o[e]})},addContent:function(t){var e,c=this,o=m.makeArray(t);m.each(o,function(t,e){var o,n,a,i,s,r={},l={};m.isPlainObject(e)?l=(r=e).opts||e:"object"===m.type(e)&&m(e).length?(l=(o=m(e)).data()||{},(l=m.extend(!0,{},l,l.options)).$orig=o,r.src=c.opts.src||l.src||o.attr("href"),r.type||r.src||(r.type="inline",r.src=e)):r={type:"html",src:e+""},r.opts=m.extend(!0,{},c.opts,l),m.isArray(l.buttons)&&(r.opts.buttons=l.buttons),m.modulaFancybox.isMobile&&r.opts.mobile&&(r.opts=d(r.opts,r.opts.mobile)),n=r.type||r.opts.type,i=r.src||"",!n&&i&&((a=i.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(n="video",r.opts.video.format||(r.opts.video.format="video/"+("ogv"===a[1]?"ogg":a[1]))):i.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?n="image":i.match(/\.(pdf)((\?|#).*)?$/i)?(n="iframe",r=m.extend(!0,r,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===i.charAt(0)&&(n="inline")),n?r.type=n:c.trigger("objectNeedsType",r),r.contentType||(r.contentType=-1<m.inArray(r.type,["html","inline","ajax"])?"html":r.type),r.index=c.group.length,"auto"==r.opts.smallBtn&&(r.opts.smallBtn=-1<m.inArray(r.type,["html","inline","ajax"])),"auto"===r.opts.toolbar&&(r.opts.toolbar=!r.opts.smallBtn),r.$thumb=r.opts.$thumb||null,r.opts.$trigger&&r.index===c.opts.index&&(r.$thumb=r.opts.$trigger.find("img:first"),r.$thumb.length&&(r.opts.$orig=r.opts.$trigger)),r.$thumb&&r.$thumb.length||!r.opts.$orig||(r.$thumb=r.opts.$orig.find("img:first")),r.$thumb&&!r.$thumb.length&&(r.$thumb=null),r.thumb=r.opts.thumb||(r.$thumb?r.$thumb[0].src:null),"function"===m.type(r.opts.caption)&&(r.opts.caption=r.opts.caption.apply(e,[c,r])),"function"===m.type(c.opts.caption)&&(r.opts.caption=c.opts.caption.apply(e,[c,r])),r.opts.caption instanceof m||(r.opts.caption=r.opts.caption===g?"":r.opts.caption+""),"ajax"===r.type&&1<(s=i.split(/\s+/,2)).length&&(r.src=s.shift(),r.opts.filter=s.shift()),r.opts.modal&&(r.opts=m.extend(!0,r.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),c.group.push(r)}),Object.keys(c.slides).length&&(c.updateControls(),(e=c.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var n=this;n.removeEvents(),n.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),n.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),n.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),n.next()}).on("click.fb","[data-fancybox-zoom]",function(t){n[n.isScaledDown()?"scaleToActual":"scaleToFit"]()}),a.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(n.requestId&&e(n.requestId),n.requestId=p(function(){n.update(t)})):(n.current&&"iframe"===n.current.type&&n.$refs.stage.hide(),setTimeout(function(){n.$refs.stage.show(),n.update(t)},m.modulaFancybox.isMobile?600:250))}),s.on("keydown.fb",function(t){var e=(m.modulaFancybox?m.modulaFancybox.getInstance():null).current,o=t.keyCode||t.which;if(9!=o){if(!(!e.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||m(t.target).is("input,textarea,video,audio,select")))return 8===o||27===o?(t.preventDefault(),void n.close(t)):37===o||38===o?(t.preventDefault(),void n.previous()):39===o||40===o?(t.preventDefault(),void n.next()):void n.trigger("afterKeydown",t,o)}else e.opts.trapFocus&&n.focus(t)}),n.group[n.currIndex].opts.idleTime&&(n.idleSecondsCounter=0,s.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){n.idleSecondsCounter=0,n.isIdle&&n.showControls(),n.isIdle=!1}),n.idleInterval=l.setInterval(function(){n.idleSecondsCounter++,n.idleSecondsCounter>=n.group[n.currIndex].opts.idleTime&&!n.isDragging&&(n.isIdle=!0,n.idleSecondsCounter=0,n.hideControls())},1e3))},removeEvents:function(){a.off("orientationchange.fb resize.fb"),s.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleInterval&&(l.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,n){var e,o,a,i,s,r,l,c,d,u=this,p=u.group.length;if(!(u.isDragging||u.isClosing||u.isAnimating&&u.firstRun)){if(t=parseInt(t,10),!(a=u.current?u.current.opts.loop:u.opts.loop)&&(t<0||p<=t))return!1;if(e=u.firstRun=!Object.keys(u.slides).length,s=u.current,u.prevIndex=u.currIndex,u.prevPos=u.currPos,i=u.createSlide(t),1<p&&((a||i.index<p-1)&&u.createSlide(t+1),(a||0<i.index)&&u.createSlide(t-1)),u.current=i,u.currIndex=i.index,u.currPos=i.pos,u.trigger("beforeShow",e),u.updateControls(),i.forcedDuration=g,m.isNumeric(n)?i.forcedDuration=n:n=i.opts[e?"animationDuration":"transitionDuration"],n=parseInt(n,10),o=u.isMoved(i),i.$slide.addClass("modula-fancybox-slide--current"),e)return i.opts.animationEffect&&n&&u.$refs.container.css("transition-duration",n+"ms"),u.$refs.container.addClass("modula-fancybox-is-open").trigger("focus"),u.loadSlide(i),void u.preload("image");r=m.modulaFancybox.getTranslate(s.$slide),l=m.modulaFancybox.getTranslate(u.$refs.stage),m.each(u.slides,function(t,e){m.modulaFancybox.stop(e.$slide,!0)}),s.pos!==i.pos&&(s.isComplete=!1),s.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--current"),o?(d=r.left-(s.pos*r.width+s.pos*s.opts.gutter),m.each(u.slides,function(t,e){e.$slide.removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var o=e.pos*r.width+e.pos*e.opts.gutter;m.modulaFancybox.setTranslate(e.$slide,{top:0,left:o-l.left+d}),e.pos!==i.pos&&e.$slide.addClass("modula-fancybox-slide--"+(e.pos>i.pos?"next":"previous")),h(e.$slide),m.modulaFancybox.animate(e.$slide,{top:0,left:(e.pos-i.pos)*r.width+(e.pos-i.pos)*e.opts.gutter},n,function(){e.$slide.css({transform:"",opacity:""}).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous"),e.pos===u.currPos&&u.complete()})})):n&&i.opts.transitionEffect&&(c="modula-fancybox-animated modula-fancybox-fx-"+i.opts.transitionEffect,s.$slide.addClass("modula-fancybox-slide--"+(s.pos>i.pos?"next":"previous")),m.modulaFancybox.animate(s.$slide,c,n,function(){s.$slide.removeClass(c).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous")},!1)),i.isLoaded?u.revealContent(i):u.loadSlide(i),u.preload("image")}},createSlide:function(t){var e,o=this,n=t%o.group.length;return n=n<0?o.group.length+n:n,!o.slides[t]&&o.group[n]&&(e=m('<div class="modula-fancybox-slide"></div>').appendTo(o.$refs.stage),o.slides[t]=m.extend(!0,{},o.group[n],{pos:t,$slide:e,isLoaded:!1}),o.updateSlide(o.slides[t])),o.slides[t]},scaleToActual:function(t,e,o){var n,a,i,s,r,l=this,c=l.current,d=c.$content,u=m.modulaFancybox.getTranslate(c.$slide).width,p=m.modulaFancybox.getTranslate(c.$slide).height,h=c.width,f=c.height;l.isAnimating||l.isMoved()||!d||"image"!=c.type||!c.isLoaded||c.hasError||(l.isAnimating=!0,m.modulaFancybox.stop(d),t=t===g?.5*u:t,e=e===g?.5*p:e,(n=m.modulaFancybox.getTranslate(d)).top-=m.modulaFancybox.getTranslate(c.$slide).top,n.left-=m.modulaFancybox.getTranslate(c.$slide).left,s=h/n.width,r=f/n.height,a=.5*u-.5*h,i=.5*p-.5*f,u<h&&(0<(a=n.left*s-(t*s-t))&&(a=0),a<u-h&&(a=u-h)),p<f&&(0<(i=n.top*r-(e*r-e))&&(i=0),i<p-f&&(i=p-f)),l.updateCursor(h,f),m.modulaFancybox.animate(d,{top:i,left:a,scaleX:s,scaleY:r},o||366,function(){l.isAnimating=!1}),l.SlideShow&&l.SlideShow.isActive&&l.SlideShow.stop())},scaleToFit:function(t){var e,o=this,n=o.current,a=n.$content;o.isAnimating||o.isMoved()||!a||"image"!=n.type||!n.isLoaded||n.hasError||(o.isAnimating=!0,m.modulaFancybox.stop(a),e=o.getFitPos(n),o.updateCursor(e.width,e.height),m.modulaFancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||366,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,n,a,i=t.$content,s=t.$slide,r=t.width||t.opts.width,l=t.height||t.opts.height,c={};return!!(t.isLoaded&&i&&i.length)&&(e=m.modulaFancybox.getTranslate(this.$refs.stage).width,o=m.modulaFancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(s.css("paddingLeft"))+parseFloat(s.css("paddingRight"))+parseFloat(i.css("marginLeft"))+parseFloat(i.css("marginRight")),o-=parseFloat(s.css("paddingTop"))+parseFloat(s.css("paddingBottom"))+parseFloat(i.css("marginTop"))+parseFloat(i.css("marginBottom")),r&&l||(r=e,l=o),e-.5<(r*=n=Math.min(1,e/r,o/l))&&(r=e),o-.5<(l*=n)&&(l=o),"image"===t.type?(c.top=Math.floor(.5*(o-l))+parseFloat(s.css("paddingTop")),c.left=Math.floor(.5*(e-r))+parseFloat(s.css("paddingLeft"))):"video"===t.contentType&&(r/(a=t.opts.width&&t.opts.height?r/l:t.opts.ratio||16/9)<l?l=r/a:l*a<r&&(r=l*a)),c.width=r,c.height=l,c)},update:function(o){var n=this;m.each(n.slides,function(t,e){n.updateSlide(e,o)})},updateSlide:function(t,e){var o=this,n=t&&t.$content,a=t.width||t.opts.width,i=t.height||t.opts.height,s=t.$slide;o.adjustCaption(t),n&&(a||i||"video"===t.contentType)&&!t.hasError&&(m.modulaFancybox.stop(n),m.modulaFancybox.setTranslate(n,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),s.length&&(s.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".modula-fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",s.get(0).scrollHeight>s.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,n=o.$slide;!e.isClosing&&o&&(n.siblings().css({transform:"",opacity:""}),n.parent().children().removeClass("modula-fancybox-slide--previous modula-fancybox-slide--next"),m.modulaFancybox.animate(n,{top:0,left:0,opacity:1},t===g?0:t,function(){n.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o,n=t||this.current;return!!n&&(o=m.modulaFancybox.getTranslate(this.$refs.stage),e=m.modulaFancybox.getTranslate(n.$slide),!n.$slide.hasClass("modula-fancybox-animated")&&(.5<Math.abs(e.top-o.top)||.5<Math.abs(e.left-o.left)))},updateCursor:function(t,e){var o,n,a=this,i=a.current,s=a.$refs.container;i&&!a.isClosing&&a.Guestures&&(s.removeClass("modula-fancybox-is-zoomable modula-fancybox-can-zoomIn modula-fancybox-can-zoomOut modula-fancybox-can-swipe modula-fancybox-can-pan"),n=!!(o=a.canPan(t,e))||a.isZoomable(),s.toggleClass("modula-fancybox-is-zoomable",n),m("[data-fancybox-zoom]").prop("disabled",!n),o?s.addClass("modula-fancybox-can-pan"):n&&("zoom"===i.opts.clickContent||m.isFunction(i.opts.clickContent)&&"zoom"==i.opts.clickContent(i))?s.addClass("modula-fancybox-can-zoomIn"):i.opts.touch&&(i.opts.touch.vertical||1<a.group.length)&&"video"!==i.contentType&&s.addClass("modula-fancybox-can-swipe"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing&&"image"===e.type&&!e.hasError){if(!e.isLoaded)return!0;if((t=this.getFitPos(e))&&(e.width>t.width||e.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=!1,n=this.current,a=n.$content;return t!==g&&e!==g?o=t<n.width&&e<n.height:a&&(o=(o=m.modulaFancybox.getTranslate(a)).width<n.width&&o.height<n.height),o},canPan:function(t,e){var o=this.current,n=null,a=!1;return"image"===o.type&&(o.isComplete||t&&e)&&!o.hasError&&(a=this.getFitPos(o),t!==g&&e!==g?n={width:t,height:e}:o.isComplete&&(n=m.modulaFancybox.getTranslate(o.$content)),n&&a&&(a=1.5<Math.abs(n.width-a.width)||1.5<Math.abs(n.height-a.height))),a},loadSlide:function(o){var t,e,n,a=this;if(!o.isLoading&&!o.isLoaded){if(!(o.isLoading=!0)===a.trigger("beforeLoad",o))return o.isLoading=!1;switch(t=o.type,(e=o.$slide).off("refresh").trigger("onReset").addClass(o.opts.slideClass),t){case"image":a.setImage(o);break;case"iframe":a.setIframe(o);break;case"html":a.setContent(o,o.src||o.content);break;case"video":a.setContent(o,o.opts.video.tpl.replace(/\{\{src\}\}/gi,o.src).replace("{{format}}",o.opts.videoFormat||o.opts.video.format||"").replace("{{poster}}",o.thumb||""));break;case"inline":m(o.src).length?a.setContent(o,m(o.src)):a.setError(o);break;case"ajax":a.showLoading(o),n=m.ajax(m.extend({},o.opts.ajax.settings,{url:o.src,success:function(t,e){"success"===e&&a.setContent(o,t)},error:function(t,e){t&&"abort"!==e&&a.setError(o)}})),e.one("onReset",function(){n.abort()});break;default:a.setError(o)}return!0}},setImage:function(e){var t,o=this;setTimeout(function(){var t=e.$image;o.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||o.showLoading(e)},50),o.checkSrcset(e),e.$content=m('<div class="modula-fancybox-content"></div>').addClass("modula-fancybox-is-hidden").appendTo(e.$slide.addClass("modula-fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(t=u.createElement("img")).onerror=function(){m(this).remove(),e.$ghost=null},t.onload=function(){o.afterLoad(e)},e.$ghost=m(t).addClass("modula-fancybox-image").appendTo(e.$content).attr("src",e.thumb),"undifined"!=typeof e.src&&e.$ghost.attr("alt",e.alt)),o.setBigImage(e)},checkSrcset:function(t){var e,o,n,a,i=t.opts.srcset||t.opts.image.srcset;if(i){n=l.devicePixelRatio||1,a=l.innerWidth*n,(o=i.split(",").map(function(t){var n={};return t.trim().split(/\s+/).forEach(function(t,e){var o=parseInt(t.substring(0,t.length-1),10);if(0===e)return n.url=t;o&&(n.value=o,n.postfix=t[t.length-1])}),n})).sort(function(t,e){return t.value-e.value});for(var s=0;s<o.length;s++){var r=o[s];if("w"===r.postfix&&r.value>=a||"x"===r.postfix&&r.value>=n){e=r;break}}!e&&o.length&&(e=o[o.length-1]),e&&(t.src=e.url,t.width&&t.height&&"w"==e.postfix&&(t.height=t.width/t.height*e.value,t.width=e.value),t.opts.srcset=i)}},setBigImage:function(e){var o=this,t=u.createElement("img"),n=m(t);e.$image=n.one("error",function(){o.setError(e)}).one("load",function(){var t;e.$ghost||(o.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),o.afterLoad(e)),o.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(1<e.width/e.height&&1<a.width()/a.height()?"100":Math.round(e.width/e.height*100))+"vw"),n.attr("sizes",t).attr("srcset",e.opts.srcset)),e.opts.alt&&n.attr("alt",e.opts.alt),e.opts.image_id&&n.attr("image-id",e.opts.image_id),e.$ghost&&setTimeout(function(){e.$ghost&&!o.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),o.hideLoading(e))}).addClass("modula-fancybox-image").attr("src",e.src).appendTo(e.$content),(t.complete||"complete"==t.readyState)&&n.naturalWidth&&n.naturalHeight?n.trigger("load"):t.error&&n.trigger("error")},resolveImageSlideSize:function(t,e,o){var n=parseInt(t.opts.width,10),a=parseInt(t.opts.height,10);t.width=e,t.height=o,0<n&&(t.width=n,t.height=Math.floor(n*o/e)),0<a&&(t.width=Math.floor(a*e/o),t.height=a)},setIframe:function(a){var i,e=this,s=a.opts.iframe,r=a.$slide;a.$content=m('<div class="modula-fancybox-content'+(s.preload?" modula-fancybox-is-hidden":"")+'"></div>').css(s.css).appendTo(r),r.addClass("modula-fancybox-slide--"+a.contentType),a.$iframe=i=m(s.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(s.attr).appendTo(a.$content),s.preload?(e.showLoading(a),i.on("load.fb error.fb",function(t){this.isReady=1,a.$slide.trigger("refresh"),e.afterLoad(a)}),r.on("refresh.fb",function(){var t,e=a.$content,o=s.css.width,n=s.css.height;if(1===i[0].isReady){try{t=i.contents().find("body")}catch(t){}t&&t.length&&t.children().length&&(r.css("overflow","visible"),e.css({width:"100%","max-width":"100%",height:"9999px"}),o===g&&(o=Math.ceil(Math.max(t[0].clientWidth,t.outerWidth(!0)))),e.css("width",o||"").css("max-width",""),n===g&&(n=Math.ceil(Math.max(t[0].clientHeight,t.outerHeight(!0)))),e.css("height",n||""),r.css("overflow","auto")),e.removeClass("modula-fancybox-is-hidden")}})):e.afterLoad(a),i.attr("src",a.src),r.one("onReset",function(){try{m(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}m(this).off("refresh.fb").empty(),a.isLoaded=!1,a.isRevealed=!1})},setContent:function(t,e){var o;this.isClosing||(this.hideLoading(t),t.$content&&m.modulaFancybox.stop(t.$content),t.$slide.empty(),(o=e)&&o.hasOwnProperty&&o instanceof m&&e.parent().length?((e.hasClass("modula-fancybox-content")||e.parent().hasClass("modula-fancybox-content"))&&e.parents(".modula-fancybox-slide").trigger("onReset"),t.$placeholder=m("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===m.type(e)&&(e=m("<div>").append(m.trim(e)).contents()),t.opts.filter&&(e=m("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){m(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("modula-fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(m(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),m(e).appendTo(t.$slide),m(e).is("video,audio")&&(m(e).addClass("modula-fancybox-video"),m(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||m(e).attr("width"),t.opts.height=t.opts.height||m(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.modula-fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("modula-fancybox-content"),t.$slide.addClass("modula-fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("modula-fancybox-slide--"+t.contentType).addClass("modula-fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=m(this.translate(this,this.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=m(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&m('<div class="modula-fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,o=this,n=t||o.current,a=n.opts.caption,i=n.opts.preventCaptionOverlap,s=o.$refs.caption,r=!1;s.toggleClass("modula-fancybox-caption--separate",i),i&&a&&a.length&&(n.pos!==o.currPos?((e=s.clone().appendTo(s.parent())).children().eq(0).empty().html(a),r=e.outerHeight(!0),e.empty().remove()):o.$caption&&(r=o.$caption.outerHeight(!0)),n.$slide.css("padding-bottom",r||""))},adjustLayout:function(t){var e,o,n,a,i=t||this.current;i.isLoaded&&!0!==i.opts.disableLayoutFix&&(i.$content.css("margin-bottom",""),i.$content.outerHeight()>i.$slide.height()+.5&&(n=i.$slide[0].style["padding-bottom"],a=i.$slide.css("padding-bottom"),0<parseFloat(a)&&(e=i.$slide[0].scrollHeight,i.$slide.css("padding-bottom",0),Math.abs(e-i.$slide[0].scrollHeight)<1&&(o=a),i.$slide.css("padding-bottom",n))),i.$content.css("margin-bottom",o))},revealContent:function(t){var e,o,n,a,i=this,s=t.$slide,r=!1,l=!1,c=i.isMoved(t),d=t.isRevealed;return t.isRevealed=!0,e=t.opts[i.firstRun?"animationEffect":"transitionEffect"],n=t.opts[i.firstRun?"animationDuration":"transitionDuration"],n=parseInt(t.forcedDuration===g?n:t.forcedDuration,10),!c&&t.pos===i.currPos&&n||(e=!1),"zoom"===e&&(t.pos===i.currPos&&n&&"image"===t.type&&!t.hasError&&(l=i.getThumbPos(t))?r=i.getFitPos(t):e="fade"),"zoom"===e?(i.isAnimating=!0,r.scaleX=r.width/l.width,r.scaleY=r.height/l.height,"auto"==(a=t.opts.zoomOpacity)&&(a=.1<Math.abs(t.width/t.height-l.width/l.height)),a&&(l.opacity=.1,r.opacity=1),m.modulaFancybox.setTranslate(t.$content.removeClass("modula-fancybox-is-hidden"),l),h(t.$content),void m.modulaFancybox.animate(t.$content,r,n,function(){i.isAnimating=!1,i.complete()})):(i.updateSlide(t),e?(m.modulaFancybox.stop(s),o="modula-fancybox-slide--"+(t.pos>=i.prevPos?"next":"previous")+" modula-fancybox-animated fancybox-fx-"+e,s.addClass(o).removeClass("modula-fancybox-slide--current"),t.$content.removeClass("modula-fancybox-is-hidden"),h(s),"image"!==t.type&&t.$content.hide().show(0),void m.modulaFancybox.animate(s,"modula-fancybox-slide--current",n,function(){s.removeClass(o).css({transform:"",opacity:""}),t.pos===i.currPos&&i.complete()},!0)):(t.$content.removeClass("modula-fancybox-is-hidden"),d||!c||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===i.currPos&&i.complete())))},getThumbPos:function(t){var e,o,n,a,i,s,r,l,c,d=t.$thumb;return!!(d&&(r=d[0])&&r.ownerDocument===u&&(m(".modula-fancybox-container").css("pointer-events","none"),l={x:r.getBoundingClientRect().left+r.offsetWidth/2,y:r.getBoundingClientRect().top+r.offsetHeight/2},c=u.elementFromPoint(l.x,l.y)===r,m(".modula-fancybox-container").css("pointer-events",""),c))&&(o=m.modulaFancybox.getTranslate(d),n=parseFloat(d.css("border-top-width")||0),a=parseFloat(d.css("border-right-width")||0),i=parseFloat(d.css("border-bottom-width")||0),s=parseFloat(d.css("border-left-width")||0),e={top:o.top+n,left:o.left+s,width:o.width-a-s,height:o.height-n-i,scaleX:1,scaleY:1},0<o.width&&0<o.height&&e)},complete:function(){var t,o=this,e=o.current,n={};!o.isMoved()&&e.isLoaded&&(e.isComplete||(e.isComplete=!0,e.$slide.siblings().trigger("onReset"),o.preload("inline"),h(e.$slide),e.$slide.addClass("modula-fancybox-slide--complete"),m.each(o.slides,function(t,e){e.pos>=o.currPos-1&&e.pos<=o.currPos+1?n[e.pos]=e:e&&(m.modulaFancybox.stop(e.$slide),e.$slide.off().remove())}),o.slides=n),o.isAnimating=!1,o.updateCursor(),o.trigger("afterShow"),e.opts.video.autoStart&&e.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),o.next()}),e.opts.autoFocus&&"html"===e.contentType&&((t=e.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):o.focus(null,!0)),e.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,o,n=this;n.group.length<2||(o=n.slides[n.currPos+1],(e=n.slides[n.currPos-1])&&e.type===t&&n.loadSlide(e),o&&o.type===t&&n.loadSlide(o))},focus:function(t,e){var o,n,a=this,i=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");a.isClosing||((o=(o=!t&&a.current&&a.current.isComplete?a.current.$slide.find("*:visible"+(e?":not(.modula-fancybox-close-small)":"")):a.$refs.container.find("*:visible")).filter(i).filter(function(){return"hidden"!==m(this).css("visibility")&&!m(this).hasClass("disabled")})).length?(n=o.index(u.activeElement),t&&t.shiftKey?(n<0||0==n)&&(t.preventDefault(),o.eq(o.length-1).trigger("focus")):(n<0||n==o.length-1)&&(t&&t.preventDefault(),o.eq(0).trigger("focus"))):a.$refs.container.trigger("focus"))},activate:function(){var e=this;m(".modula-fancybox-container").each(function(){var t=m(this).data("modulaFancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(t,e){function o(){d.cleanUp(t)}var n,a,i,s,r,l,c,d=this,u=d.current;return!d.isClosing&&(!(d.isClosing=!0)===d.trigger("beforeClose",t)?(d.isClosing=!1,p(function(){d.update()}),!1):(d.removeEvents(),i=u.$content,n=u.opts.animationEffect,a=m.isNumeric(e)?e:n?u.opts.animationDuration:0,u.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--next modula-fancybox-slide--previous modula-fancybox-animated"),!0!==t?m.modulaFancybox.stop(u.$slide):n=!1,u.$slide.siblings().trigger("onReset").remove(),a&&d.$refs.container.removeClass("modula-fancybox-is-open").addClass("modula-fancybox-is-closing").css("transition-duration",a+"ms"),d.hideLoading(u),d.hideControls(!0),d.updateCursor(),"zoom"!==n||i&&a&&"image"===u.type&&!d.isMoved()&&!u.hasError&&(c=d.getThumbPos(u))||(n="fade"),"zoom"===n?(m.modulaFancybox.stop(i),l={top:(s=m.modulaFancybox.getTranslate(i)).top,left:s.left,scaleX:s.width/c.width,scaleY:s.height/c.height,width:c.width,height:c.height},"auto"==(r=u.opts.zoomOpacity)&&(r=.1<Math.abs(u.width/u.height-c.width/c.height)),r&&(c.opacity=0),m.modulaFancybox.setTranslate(i,l),h(i),m.modulaFancybox.animate(i,c,a,o)):n&&a?m.modulaFancybox.animate(u.$slide.addClass("modula-fancybox-slide--previous").removeClass("modula-fancybox-slide--current"),"modula-fancybox-animated modula-fancybox-fx-"+n,a,o):!0===t?setTimeout(o,a):o(),!0))},cleanUp:function(t){var e,o,n,a=this,i=a.current.opts.$orig;a.current.$slide.trigger("onReset"),a.$refs.container.empty().remove(),a.trigger("afterClose",t),a.current.opts.backFocus&&(i&&i.length&&i.is(":visible")||(i=a.$trigger),i&&i.length&&(o=l.scrollX,n=l.scrollY,i.trigger("focus"),m("html, body").scrollTop(n).scrollLeft(o))),a.current=null,(e=m.modulaFancybox.getInstance())?e.activate():(m("body").removeClass("modula-fancybox-active compensate-for-scrollbar"),m("#modula-fancybox-style-noscroll").remove())},trigger:function(t,e){var o,n=Array.prototype.slice.call(arguments,1),a=this,i=e&&e.opts?e:a.current;if(i?n.unshift(i):i=a,n.unshift(a),m.isFunction(i.opts[t])&&(o=i.opts[t].apply(i,n)),!1===o)return o;"afterClose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",n):s.trigger(t+".fb",n)},updateControls:function(){var t=this,e=t.current,o=e.index,n=t.$refs.container,a=t.$refs.caption,i=e.opts.caption;e.$slide.trigger("refresh"),i&&i.length?(t.$caption=a).children().eq(0).html(i):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),n.find("[data-fancybox-count]").html(t.group.length),n.find("[data-fancybox-index]").html(o+1),n.find("[data-fancybox-prev]").prop("disabled",!e.opts.loop&&o<=0),n.find("[data-fancybox-next]").prop("disabled",!e.opts.loop&&o>=t.group.length-1),"image"===e.type?n.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",e.opts.image.src||e.src).show():e.opts.toolbar&&n.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),m(u.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map(function(t){return"modula-fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,o=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,o.toggleClass("modula-fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("modula-fancybox-show-infobar",!!(e.infobar&&1<t.group.length)).toggleClass("modula-fancybox-show-caption",!!t.$caption).toggleClass("modula-fancybox-show-nav",!!(e.arrows&&1<t.group.length)).toggleClass("modula-fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),m.modulaFancybox={version:"3.5.7",defaults:t,getInstance:function(t){var e=m('.modula-fancybox-container:not(".modula-fancybox-is-closing"):last').data("modulaFancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof n&&("string"===m.type(t)?e[t].apply(e,o):"function"===m.type(t)&&t.apply(e,o),e)},open:function(t,e,o){return new n(t,e,o)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),s.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(o=u.createElement("div"),l.getComputedStyle&&l.getComputedStyle(o)&&l.getComputedStyle(o).getPropertyValue("transform")&&!(u.documentMode&&u.documentMode<11)),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var o="",n={};if(t&&e)return e.left===g&&e.top===g||(o=(e.left===g?t.position().left:e.left)+"px, "+(e.top===g?t.position().top:e.top)+"px",o=this.use3d?"translate3d("+o+", 0px)":"translate("+o+")"),e.scaleX!==g&&e.scaleY!==g?o+=" scale("+e.scaleX+", "+e.scaleY+")":e.scaleX!==g&&(o+=" scaleX("+e.scaleX+")"),o.length&&(n.transform=o),e.opacity!==g&&(n.opacity=e.opacity),e.width!==g&&(n.width=e.width),e.height!==g&&(n.height=e.height),t.css(n)},animate:function(e,o,n,a,i){var s,r=this;m.isFunction(n)&&(a=n,n=null),r.stop(e),s=r.getTranslate(e),e.on(c,function(t){t&&t.originalEvent&&(!e.is(t.originalEvent.target)||"z-index"==t.originalEvent.propertyName)||(r.stop(e),m.isNumeric(n)&&e.css("transition-duration",""),m.isPlainObject(o)?o.scaleX!==g&&o.scaleY!==g&&r.setTranslate(e,{top:o.top,left:o.left,width:s.width*o.scaleX,height:s.height*o.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(o),m.isFunction(a)&&a(t))}),m.isNumeric(n)&&e.css("transition-duration",n+"ms"),m.isPlainObject(o)?(o.scaleX!==g&&o.scaleY!==g&&(delete o.width,delete o.height,e.parent().hasClass("modula-fancybox-slide--image")&&e.parent().addClass("modula-fancybox-is-scaling")),m.modulaFancybox.setTranslate(e,o)):e.addClass(o),e.data("timer",setTimeout(function(){e.trigger(c)},n+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(c),t.off(c).css("transition-duration",""),t.parent().removeClass("modula-fancybox-is-scaling"))}},m.fn.modulaFancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?m("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},y):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},y),this},s.on("click.fb-start","[data-fancybox]",y),s.on("click.fb-start","[data-fancybox-trigger]",function(t){m('[data-fancybox="'+m(this).attr("data-fancybox-trigger")+'"]').eq(m(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:m(this)})}),r=".modula-fancybox-button",f="modula-fancybox-focus",b=null,s.on("mousedown mouseup focus blur",r,function(t){switch(t.type){case"mousedown":b=m(this);break;case"mouseup":b=null;break;case"focusin":m(r).removeClass(f),m(this).is(b)||m(this).is("[disabled]")||m(this).addClass(f);break;case"focusout":m(r).removeClass(f)}})))}(window,document,jQuery),function(h){"use strict";function f(o,t,e){if(o)return e=e||"","object"===h.type(e)&&(e=h.param(e,!0)),h.each(t,function(t,e){o=o.replace("$"+t,e||"")}),e.length&&(o+=(0<o.indexOf("?")?"&":"?")+e),o}var n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&0<t[12].indexOf("layer=c")?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};h(document).on("objectNeedsType.fb",function(t,e,a){var i,s,r,l,c,d,u=a.src||"",p=!1,o=h.extend(!0,{},n,a.opts.media);h.each(o,function(t,e){if(s=u.match(e.matcher)){if(p=e.type,d=t,c={},e.paramPlace&&s[e.paramPlace]){"?"==(l=s[e.paramPlace])[0]&&(l=l.substring(1)),l=l.split("&");for(var o=0;o<l.length;++o){var n=l[o].split("=",2);2==n.length&&(c[n[0]]=decodeURIComponent(n[1].replace(/\+/g," ")))}}return r=h.extend(!0,{},e.params,a.opts[t],c),u="function"===h.type(e.url)?e.url.call(this,s,r,a):f(e.url,s,r),i="function"===h.type(e.thumb)?e.thumb.call(this,s,r,a):f(e.thumb,s),"youtube"===t?u=u.replace(/&t=(\d+)/,function(t,e){return"&start="+e}):"vimeo"===t&&(u=u.replace("&%23","#")),!1}}),p?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=i),"iframe"===p&&(a.opts=h.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),h.extend(a,{type:p,src:u,origSrc:a.src,contentSource:d,contentType:"image"===p?"image":"gmap_place"==d||"gmap_search"==d?"map":"video"})):u&&(a.type=a.opts.defaultType)});var a={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,o=this;this[t].loaded?setTimeout(function(){o.done(t)}):this[t].loading||(this[t].loading=!0,(e=document.createElement("script")).type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){o[t].loaded=!0,o.done(t)}:e.onload=function(){o[t].loaded=!0,o.done(t)},document.body.appendChild(e))},done:function(t){var e,o;"youtube"===t&&delete window.onYouTubeIframeAPIReady,(e=h.modulaFancybox.getInstance())&&(o=e.current.$content.find("iframe"),"youtube"===t&&void 0!==YT&&YT?new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&e.next()}}}):"vimeo"===t&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(o).on("ended",function(){e.next()}))}};h(document).on({"afterShow.fb":function(t,e,o){1<e.group.length&&("youtube"===o.contentSource||"vimeo"===o.contentSource)&&a.load(o.contentSource)}})}(jQuery),function(m,l,g){"use strict";function d(t){var e=[];for(var o in t=(t=t.originalEvent||t||m.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[o].pageX?e.push({x:t[o].pageX,y:t[o].pageY}):t[o].clientX&&e.push({x:t[o].clientX,y:t[o].clientY});return e}function b(t,e,o){return e&&t?"x"===o?t.x-e.x:"y"===o?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function c(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||g.isFunction(t.get(0).onclick)||t.data("selectable"))return 1;for(var e=0,o=t[0].attributes,n=o.length;e<n;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return 1}function u(t){for(var e,o,n,a,i,s=!1;e=t.get(0),0,o=m.getComputedStyle(e)["overflow-y"],n=m.getComputedStyle(e)["overflow-x"],a=("scroll"===o||"auto"===o)&&e.scrollHeight>e.clientHeight,i=("scroll"===n||"auto"===n)&&e.scrollWidth>e.clientWidth,!(s=a||i)&&(t=t.parent()).length&&!t.hasClass("modula-fancybox-stage")&&!t.is("body"););return s}function o(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",g.proxy(e,"ontouchstart"))}var y=m.requestAnimationFrame||m.webkitRequestAnimationFrame||m.mozRequestAnimationFrame||m.oRequestAnimationFrame||function(t){return m.setTimeout(t,1e3/60)},v=m.cancelAnimationFrame||m.webkitCancelAnimationFrame||m.mozCancelAnimationFrame||m.oCancelAnimationFrame||function(t){m.clearTimeout(t)};o.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),g(l).off(".fb.touch"),t.requestId&&(v(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},o.prototype.ontouchstart=function(t){var e=this,o=g(t.target),n=e.instance,a=n.current,i=a.$slide,s=a.$content,r="touchstart"==t.type;if(r&&e.$container.off("mousedown.fb.touch"),(!t.originalEvent||2!=t.originalEvent.button)&&i.length&&o.length&&!c(o)&&!c(o.parent())&&(o.is("img")||!(t.originalEvent.clientX>o[0].clientWidth+o.offset().left))){if(!a||n.isAnimating||a.$slide.hasClass("modula-fancybox-animated"))return t.stopPropagation(),void t.preventDefault();e.realPoints=e.startPoints=d(t),e.startPoints.length&&(a.touch&&t.stopPropagation(),e.startEvent=t,e.canTap=!0,e.$target=o,e.$content=s,e.opts=a.opts.touch,e.isPanning=!1,e.isSwiping=!1,e.isZooming=!1,e.isScrolling=!1,e.canPan=n.canPan(),e.startTime=(new Date).getTime(),e.distanceX=e.distanceY=e.distance=0,e.canvasWidth=Math.round(i[0].clientWidth),e.canvasHeight=Math.round(i[0].clientHeight),e.contentLastPos=null,e.contentStartPos=g.modulaFancybox.getTranslate(e.$content)||{top:0,left:0},e.sliderStartPos=g.modulaFancybox.getTranslate(i),e.stagePos=g.modulaFancybox.getTranslate(n.$refs.stage),e.sliderStartPos.top-=e.stagePos.top,e.sliderStartPos.left-=e.stagePos.left,e.contentStartPos.top-=e.stagePos.top,e.contentStartPos.left-=e.stagePos.left,g(l).off(".fb.touch").on(r?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",g.proxy(e,"ontouchend")).on(r?"touchmove.fb.touch":"mousemove.fb.touch",g.proxy(e,"ontouchmove")),g.modulaFancybox.isMobile&&l.addEventListener("scroll",e.onscroll,!0),((e.opts||e.canPan)&&(o.is(e.$stage)||e.$stage.find(o).length)||(o.is(".modula-fancybox-image")&&t.preventDefault(),g.modulaFancybox.isMobile&&o.parents(".modula-fancybox-caption").length))&&(e.isScrollable=u(o)||u(o.parent()),g.modulaFancybox.isMobile&&e.isScrollable||t.preventDefault(),1!==e.startPoints.length&&!a.hasError||(e.canPan?(g.modulaFancybox.stop(e.$content),e.isPanning=!0):e.isSwiping=!0,e.$container.addClass("modula-fancybox-is-grabbing")),2===e.startPoints.length&&"image"===a.type&&(a.isLoaded||a.$ghost)&&(e.canTap=!1,e.isSwiping=!1,e.isPanning=!1,e.isZooming=!0,g.modulaFancybox.stop(e.$content),e.centerPointStartX=.5*(e.startPoints[0].x+e.startPoints[1].x)-g(m).scrollLeft(),e.centerPointStartY=.5*(e.startPoints[0].y+e.startPoints[1].y)-g(m).scrollTop(),e.percentageOfImageAtPinchPointX=(e.centerPointStartX-e.contentStartPos.left)/e.contentStartPos.width,e.percentageOfImageAtPinchPointY=(e.centerPointStartY-e.contentStartPos.top)/e.contentStartPos.height,e.startDistanceBetweenFingers=b(e.startPoints[0],e.startPoints[1]))))}},o.prototype.onscroll=function(t){this.isScrolling=!0,l.removeEventListener("scroll",this.onscroll,!0)},o.prototype.ontouchmove=function(t){var e=this;void 0===t.originalEvent.buttons||0!==t.originalEvent.buttons?e.isScrolling?e.canTap=!1:(e.newPoints=d(t),(e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=b(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=b(e.newPoints[0],e.startPoints[0],"y"),e.distance=b(e.newPoints[0],e.startPoints[0]),0<e.distance&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))):e.ontouchend(t)},o.prototype.onSwipe=function(t){var e,a=this,i=a.instance,o=a.isSwiping,n=a.sliderStartPos.left||0;if(!0!==o)"x"==o&&(0<a.distanceX&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?n+=Math.pow(a.distanceX,.8):a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?n-=Math.pow(-a.distanceX,.8):n+=a.distanceX),a.sliderLastPos={top:"x"==o?0:a.sliderStartPos.top+a.distanceY,left:n},a.requestId&&(v(a.requestId),a.requestId=null),a.requestId=y(function(){a.sliderLastPos&&(g.each(a.instance.slides,function(t,e){var o=e.pos-a.instance.currPos;g.modulaFancybox.setTranslate(e.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+o*a.canvasWidth+o*e.opts.gutter})}),a.$container.addClass("modula-fancybox-is-sliding"))});else if(10<Math.abs(a.distance)){if(a.canTap=!1,i.group.length<2&&a.opts.vertical?a.isSwiping="y":i.isDragging||!1===a.opts.vertical||"auto"===a.opts.vertical&&800<g(m).width()?a.isSwiping="x":(e=Math.abs(180*Math.atan2(a.distanceY,a.distanceX)/Math.PI),a.isSwiping=45<e&&e<135?"y":"x"),"y"===a.isSwiping&&g.modulaFancybox.isMobile&&a.isScrollable)return void(a.isScrolling=!0);i.isDragging=a.isSwiping,a.startPoints=a.newPoints,g.each(i.slides,function(t,e){var o,n;g.modulaFancybox.stop(e.$slide),o=g.modulaFancybox.getTranslate(e.$slide),n=g.modulaFancybox.getTranslate(i.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===i.current.pos&&(a.sliderStartPos.top=o.top-n.top,a.sliderStartPos.left=o.left-n.left),g.modulaFancybox.setTranslate(e.$slide,{top:o.top-n.top,left:o.left-n.left})}),i.SlideShow&&i.SlideShow.isActive&&i.SlideShow.stop()}},o.prototype.onPan=function(){var t=this;b(t.newPoints[0],t.realPoints[0])<(g.modulaFancybox.isMobile?10:5)?t.startPoints=t.newPoints:(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&v(t.requestId),t.requestId=y(function(){g.modulaFancybox.setTranslate(t.$content,t.contentLastPos)}))},o.prototype.limitMovement=function(){var t=this,e=t.canvasWidth,o=t.canvasHeight,n=t.distanceX,a=t.distanceY,i=t.contentStartPos,s=i.left,r=i.top,l=i.width,c=i.height,d=e<l?s+n:s,u=r+a,p=Math.max(0,.5*e-.5*l),h=Math.max(0,.5*o-.5*c),f=Math.min(e-l,.5*e-.5*l),m=Math.min(o-c,.5*o-.5*c);return 0<n&&p<d&&(d=p-1+Math.pow(-p+s+n,.8)||0),n<0&&d<f&&(d=f+1-Math.pow(f-s-n,.8)||0),0<a&&h<u&&(u=h-1+Math.pow(-h+r+a,.8)||0),a<0&&u<m&&(u=m+1-Math.pow(m-r-a,.8)||0),{top:u,left:d}},o.prototype.limitPosition=function(t,e,o,n){var a=this.canvasWidth,i=this.canvasHeight;return t=a<o?(t=0<t?0:t)<a-o?a-o:t:Math.max(0,a/2-o/2),{top:e=i<n?(e=0<e?0:e)<i-n?i-n:e:Math.max(0,i/2-n/2),left:t}},o.prototype.onZoom=function(){var t=this,e=t.contentStartPos,o=e.width,n=e.height,a=e.left,i=e.top,s=b(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,r=Math.floor(o*s),l=Math.floor(n*s),c=(o-r)*t.percentageOfImageAtPinchPointX,d=(n-l)*t.percentageOfImageAtPinchPointY,u=(t.newPoints[0].x+t.newPoints[1].x)/2-g(m).scrollLeft(),p=(t.newPoints[0].y+t.newPoints[1].y)/2-g(m).scrollTop(),h=u-t.centerPointStartX,f={top:i+(d+(p-t.centerPointStartY)),left:a+(c+h),scaleX:s,scaleY:s};t.canTap=!1,t.newWidth=r,t.newHeight=l,t.contentLastPos=f,t.requestId&&v(t.requestId),t.requestId=y(function(){g.modulaFancybox.setTranslate(t.$content,t.contentLastPos)})},o.prototype.ontouchend=function(t){var e=this,o=e.isSwiping,n=e.isPanning,a=e.isZooming,i=e.isScrolling;if(e.endPoints=d(t),e.dMs=Math.max((new Date).getTime()-e.startTime,1),e.$container.removeClass("modula-fancybox-is-grabbing"),g(l).off(".fb.touch"),l.removeEventListener("scroll",e.onscroll,!0),e.requestId&&(v(e.requestId),e.requestId=null),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.isScrolling=!1,e.instance.isDragging=!1,e.canTap)return e.onTap(t);e.speed=100,e.velocityX=e.distanceX/e.dMs*.5,e.velocityY=e.distanceY/e.dMs*.5,n?e.endPanning():a?e.endZooming():e.endSwiping(o,i)},o.prototype.endSwiping=function(t,e){var o=this,n=!1,a=o.instance.group.length,i=Math.abs(o.distanceX),s="x"==t&&1<a&&(130<o.dMs&&10<i||50<i);o.sliderLastPos=null,"y"==t&&!e&&50<Math.abs(o.distanceY)?(g.modulaFancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),n=o.instance.close(!0,250)):s&&0<o.distanceX?n=o.instance.previous(300):s&&o.distanceX<0&&(n=o.instance.next(300)),!1!==n||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("modula-fancybox-is-sliding")},o.prototype.endPanning=function(){var t,e,o,n=this;n.contentLastPos&&(e=!1===n.opts.momentum||350<n.dMs?(t=n.contentLastPos.left,n.contentLastPos.top):(t=n.contentLastPos.left+500*n.velocityX,n.contentLastPos.top+500*n.velocityY),(o=n.limitPosition(t,e,n.contentStartPos.width,n.contentStartPos.height)).width=n.contentStartPos.width,o.height=n.contentStartPos.height,g.modulaFancybox.animate(n.$content,o,366))},o.prototype.endZooming=function(){var t,e,o,n,a=this,i=a.instance.current,s=a.newWidth,r=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,n={top:e=a.contentLastPos.top,left:t,width:s,height:r,scaleX:1,scaleY:1},g.modulaFancybox.setTranslate(a.$content,n),s<a.canvasWidth&&r<a.canvasHeight?a.instance.scaleToFit(150):s>i.width||r>i.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,s,r),g.modulaFancybox.animate(a.$content,o,150)))},o.prototype.onTap=function(o){function t(t){var e=s.opts[t];if(g.isFunction(e)&&(e=e.apply(i,[s,o])),e)switch(e){case"close":i.close(n.startEvent);break;case"toggleControls":i.toggleControls();break;case"next":i.next();break;case"nextOrClose":1<i.group.length?i.next():i.close(n.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(i.canPan()?i.scaleToFit():i.isScaledDown()?i.scaleToActual(l,c):i.group.length<2&&i.close(n.startEvent))}}var e,n=this,a=g(o.target),i=n.instance,s=i.current,r=o&&d(o)||n.startPoints,l=r[0]?r[0].x-g(m).scrollLeft()-n.stagePos.left:0,c=r[0]?r[0].y-g(m).scrollTop()-n.stagePos.top:0;if((!o.originalEvent||2!=o.originalEvent.button)&&(a.is("img")||!(l>a[0].clientWidth+a.offset().left))){if(a.is(".modula-fancybox-bg,.modula-fancybox-inner,.modula-fancybox-outer,.modula-fancybox-container"))e="Outside";else if(a.is(".modula-fancybox-slide"))e="Slide";else{if(!i.current.$content||!i.current.$content.find(a).addBack().filter(a).length)return;e="Content"}if(n.tapped){if(clearTimeout(n.tapped),n.tapped=null,50<Math.abs(l-n.tapX)||50<Math.abs(c-n.tapY))return this;t("dblclick"+e)}else n.tapX=l,n.tapY=c,s.opts["dblclick"+e]&&s.opts["dblclick"+e]!==s.opts["click"+e]?n.tapped=setTimeout(function(){n.tapped=null,i.isAnimating||t("click"+e)},500):t("click"+e);return this}},g(l).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new o(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(s,r){"use strict";r.extend(!0,r.modulaFancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="modula-fancybox-button modula-fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});function o(t){this.instance=t,this.init()}r.extend(o.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,e=t.instance,o=e.group[e.currIndex].opts.slideShow;t.$button=e.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),e.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=r('<div class="modula-fancybox-progress"></div>').appendTo(e.$refs.inner))},set:function(t){var e=this,o=e.instance,n=o.current;n&&(!0===t||n.opts.loop||o.currIndex<o.group.length-1)?e.isActive&&"video"!==n.contentType&&(e.$progress&&r.modulaFancybox.animate(e.$progress.show(),{scaleX:1},n.opts.slideShow.speed),e.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},n.opts.slideShow.speed)):(e.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&this.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("modula-fancybox-button--play").addClass("modula-fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("modula-fancybox-button--pause").addClass("modula-fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){this.isActive?this.stop():this.start()}}),r(s).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new o(e))},"beforeShow.fb":function(t,e,o,n){var a=e&&e.SlideShow;n?a&&o.opts.slideShow.autoStart&&a.start():a&&a.isActive&&a.clear()},"afterShow.fb":function(t,e,o){var n=e&&e.SlideShow;n&&n.isActive&&n.set()},"afterKeydown.fb":function(t,e,o,n,a){var i=e&&e.SlideShow;!i||!o.opts.slideShow||80!==a&&32!==a||r(s.activeElement).is("button,a,input")||(n.preventDefault(),i.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var o=e&&e.SlideShow;o&&o.stop()}}),r(s).on("visibilitychange",function(){var t=r.modulaFancybox.getInstance(),e=t&&t.SlideShow;e&&e.isActive&&(s.hidden?e.clear():e.set())})}(document,jQuery),function(i,o){"use strict";var n,a=function(){for(var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],e={},o=0;o<t.length;o++){var n=t[o];if(n&&n[1]in i){for(var a=0;a<n.length;a++)e[t[0][a]]=n[a];return e}}return!1}();a&&(n={request:function(t){(t=t||i.documentElement)[a.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){i[a.exitFullscreen]()},toggle:function(t){t=t||i.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(i[a.fullscreenElement])},enabled:function(){return Boolean(i[a.fullscreenEnabled])}},o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="modula-fancybox-button modula-fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),o(i).on(a.fullscreenchange,function(){var t=n.isFullscreen(),e=o.modulaFancybox.getInstance();e&&(e.current&&"image"===e.current.type&&e.isAnimating&&(e.isAnimating=!1,e.update(!0,!0,0),e.isComplete||e.complete()),e.trigger("onFullscreenChange",t),e.$refs.container.toggleClass("modula-fancybox-is-fullscreen",t),e.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("modula-fancybox-button--fsenter",!t).toggleClass("modula-fancybox-button--fsexit",t))})),o(i).on({"onInit.fb":function(t,e){a?e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),n.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&n.request(),e.FullScreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,o,n,a){e&&e.FullScreen&&70===a&&(n.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("modula-fancybox-is-fullscreen")&&n.exit()}})}(document,jQuery),function(t,i){"use strict";var s="modula-fancybox-thumbs",r=s+"-active";i.modulaFancybox.defaults=i.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="modula-fancybox-button modula-fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"}},i.modulaFancybox.defaults);function n(t){this.init(t)}i.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,o=t.group,n=0;e.instance=t,e.opts=o[t.currIndex].opts.thumbs,(t.Thumbs=e).$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var a=0,i=o.length;a<i&&(o[a].thumb&&n++,!(1<n));a++);1<n&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var o,t=this,e=t.instance,n=t.opts.parentEl,a=[];t.$grid||(t.$grid=i('<div class="'+s+" "+s+"-"+t.opts.axis+'"></div>').appendTo(e.$refs.container.find(n).addBack().filter(n)),t.$grid.on("click","a",function(){e.jumpTo(i(this).attr("data-index"))})),t.$list||(t.$list=i('<div class="'+s+'__list">').appendTo(t.$grid)),i.each(e.group,function(t,e){(o=e.thumb)||"image"!==e.type||(o=e.src),a.push('<a href="javascript:;" tabindex="0" data-index="'+t+'"'+(o&&o.length?' style="background-image:url('+o+')"':'class="modula-fancybox-thumbs-missing"')+"></a>")}),t.$list[0].innerHTML=a.join(""),"x"===t.opts.axis&&t.$list.width(parseInt(t.$grid.css("padding-right"),10)+e.group.length*t.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,o,n=this,a=n.$list,i=n.$grid;n.instance.current&&(o=(e=a.children().removeClass(r).filter('[data-index="'+n.instance.current.index+'"]').addClass(r)).position(),"y"===n.opts.axis&&(o.top<0||o.top>a.height()-e.outerHeight())?a.stop().animate({scrollTop:a.scrollTop()+o.top},t):"x"===n.opts.axis&&(o.left<i.scrollLeft()||o.left>i.scrollLeft()+(i.width()-e.outerWidth()))&&a.parent().stop().animate({scrollLeft:o.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("modula-fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),i(t).on({"onInit.fb":function(t,e){var o;e&&!e.Thumbs&&(o=new n(e)).isActive&&!0===o.opts.autoStart&&o.show()},"beforeShow.fb":function(t,e,o,n){var a=e&&e.Thumbs;a&&a.isVisible&&a.focus(n?0:250)},"afterKeydown.fb":function(t,e,o,n,a){var i=e&&e.Thumbs;i&&i.isActive&&71===a&&(n.preventDefault(),i.toggle())},"beforeClose.fb":function(t,e){var o=e&&e.Thumbs;o&&o.isVisible&&!1!==o.opts.hideOnClose&&o.$grid.hide()}})}(document,jQuery),function(t,o){"use strict";o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="modula-fancybox-button modula-fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location}}}),o(t).on("click","[data-fancybox-share]",function(){var n,e,a=o.modulaFancybox.getInstance(),i=a.current||null,s="<div class='modula-fancybox-share'><h1>{{SHARE}}</h1><p>";i&&("function"===o.type(i.opts.share.url)&&(n=i.opts.share.url.apply(i,[a,i])),o.each(i.opts.modulaShare,function(t,e){var o=(i.opts.lightboxEmailMessage.length?i.opts.lightboxEmailMessage:"Here is the link to the image : %%image_link%% and this is the link to the gallery : %%gallery_link%%").replace(/\%%gallery_link%%/g,window.location.href).replace(/\%%image_link%%/g,i.src);s+=i.opts.shareBtnTpl[e].replace(/\{\{media\}\}/g,"image"===i.type?encodeURIComponent(i.src):"").replace(/\{\{modulaShareUrl\}\}/g,encodeURIComponent(n)).replace(/\{\{descr\}\}/g,a.$caption?encodeURIComponent(a.$caption.text()):"").replace(/\{\{subject\}\}/g,encodeURIComponent(i.opts.lightboxEmailSubject)).replace(/\{\{emailMessage\}\}/g,encodeURIComponent(o))}),s=(s+="</p><p><input class='modula-fancybox-share__input' type='text' value='{{url_raw}}' /></p></div>").replace(/\{\{url_raw\}\}/g,(e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},String(n).replace(/[&<>"'`=\/]/g,function(t){return e[t]}))),o.modulaFancybox.open({src:a.translate(a,s),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){a.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".modula-fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(i,s,a){"use strict";function o(){var t=i.location.hash.substr(1),e=t.split("-"),o=1<e.length&&/^\+?\d+$/.test(e[e.length-1])&&parseInt(e.pop(-1),10)||1;return{hash:t,index:o<1?1:o,gallery:e.join("-")}}function e(t){""!==t.gallery&&a("[data-fancybox='"+a.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function r(t){var e,o;return!!t&&(""!==(o=(e=t.current?t.current.opts:t.opts).hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&o)}a.escapeSelector||(a.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),a(function(){!1!==a.modulaFancybox.defaults.hash&&(a(s).on({"onInit.fb":function(t,e){!1!==e.group[e.currIndex].opts.hash&&(o(),r(e))},"beforeShow.fb":function(t,e,o,n){var a;o&&!1!==o.opts.hash&&(a=r(e))&&(e.currentHash=a+(1<e.group.length?"-"+o.opts.image_id:""),i.location.hash!=="#"+e.currentHash&&(n&&!e.origHash&&(e.origHash=i.location.hash),e.hashTimer&&clearTimeout(e.hashTimer),e.hashTimer=setTimeout(function(){"replaceState"in i.history?(i.history[n?"pushState":"replaceState"]({},s.title,i.location.pathname+i.location.search+"#"+e.currentHash),n&&(e.hasCreatedHistory=!0)):i.location.hash=e.currentHash,e.hashTimer=null},300)))},"beforeClose.fb":function(t,e,o){o&&!1!==o.opts.hash&&(clearTimeout(e.hashTimer),e.currentHash&&e.hasCreatedHistory?i.history.back():e.currentHash&&("replaceState"in i.history?i.history.replaceState({},s.title,i.location.pathname+i.location.search+(e.origHash||"")):i.location.hash=e.origHash),e.currentHash=null)}}),a(i).on("hashchange.fb",function(){var t=o(),n=null;a.each(a(".modula-fancybox-container").get().reverse(),function(t,e){var o=a(e).data("modulaFancyBox");if(o&&o.currentHash)return n=o,!1}),n?n.currentHash===t.gallery+"-"+t.index||1===t.index&&n.currentHash==t.gallery||(n.currentHash=null,n.close()):""!==t.gallery&&e(t)}),setTimeout(function(){a.modulaFancybox.getInstance()||e(o())},50))})}(window,document,jQuery),function(t,e){"use strict";var a=(new Date).getTime();e(t).on({"onInit.fb":function(t,n,e){n.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var e=n.current,o=(new Date).getTime();n.group.length<2||!1===e.opts.wheel||"auto"===e.opts.wheel&&"image"!==e.type||(t.preventDefault(),t.stopPropagation(),e.$slide.hasClass("modula-fancybox-animated")||(t=t.originalEvent||t,o-a<250||(a=o,n[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
1
+ !function(l,u,m,g){"use strict";var t,a,s,i,p,e,c,h,d,n,o,r,f,b;function y(t,e){var o,n,a,i=[],s=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=d(t.data.options,e)),o=e.$target||m(t.currentTarget).trigger("blur"),(a=m.modulaFancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(i=e.selector?m(e.selector):(n=o.attr("data-fancybox")||"")?(i=t.data?t.data.items:[]).length?i.filter('[data-fancybox="'+n+'"]'):m('[data-fancybox="'+n+'"]'):[o],(s=m(i).index(o))<0&&(s=0),(a=m.modulaFancybox.open(i,e,s)).$trigger=o))}l.console=l.console||{info:function(t){}},m&&(m.fn.modulaFancybox?console.info("fancyBox already initialized"):(t={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="modula-fancybox-frame{rnd}" name="modula-fancybox-frame{rnd}" class="modula-fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="modula-fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="modula-fancybox-container" role="dialog" tabindex="-1"><div class="modula-fancybox-bg"></div><div class="modula-fancybox-inner"><div class="modula-fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="modula-fancybox-toolbar">{{buttons}}</div><div class="modula-fancybox-navigation">{{arrows}}</div><div class="modula-fancybox-stage"></div><div class="modula-fancybox-caption"><div class="modula-fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="modula-fancybox-loading"></div>',errorTpl:'<div class="modula-fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="modula-fancybox-button modula-fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="modula-fancybox-button modula-fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="modula-fancybox-button modula-fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="modula-fancybox-button modula-fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="modula-fancybox-button modula-fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="modula-fancybox-button modula-fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},modulaShare:["facebook","twitter","pinterest","whatsapp","linkedin","email"],shareBtnTpl:{facebook:'<a class="modula-fancybox-share__button modula-fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{modulaShareUrl}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a>',twitter:'<a class="modula-fancybox-share__button modula-fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{modulaShareUrl}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a>',pinterest:'<a class="modula-fancybox-share__button modula-fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{modulaShareUrl}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a>',whatsapp:'<a class="modula-fancybox-share__button modula-fancybox-share__button--wa" href="https://api.whatsapp.com/send?text={{modulaShareUrl}}&review_url=true"><svg aria-hidden="true" focusable="false" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1536 1600"><path d="M985 878q13 0 97.5 44t89.5 53q2 5 2 15q0 33-17 76q-16 39-71 65.5T984 1158q-57 0-190-62q-98-45-170-118T476 793q-72-107-71-194v-8q3-91 74-158q24-22 52-22q6 0 18 1.5t19 1.5q19 0 26.5 6.5T610 448q8 20 33 88t25 75q0 21-34.5 57.5T599 715q0 7 5 15q34 73 102 137q56 53 151 101q12 7 22 7q15 0 54-48.5t52-48.5zm-203 530q127 0 243.5-50t200.5-134t134-200.5t50-243.5t-50-243.5T1226 336t-200.5-134T782 152t-243.5 50T338 336T204 536.5T154 780q0 203 120 368l-79 233l242-77q158 104 345 104zm0-1382q153 0 292.5 60T1315 247t161 240.5t60 292.5t-60 292.5t-161 240.5t-240.5 161t-292.5 60q-195 0-365-94L0 1574l136-405Q28 991 28 780q0-153 60-292.5T249 247T489.5 86T782 26z" fill="currentColor"/></svg><span>WhatsApp</span></a>',linkedin:'<a class="modula-fancybox-share__button modula-fancybox-share__button--li" href="//linkedin.com/shareArticle?mini=true&url={{modulaShareUrl}}"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg><span>LinkedIn</span></a>',email:'<a class="modula-fancybox-share__button modula-fancybox-share__button--email" href="mailto:?subject={{subject}}&body={{emailMessage}}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z" fill="currentColor"></path></svg><span>Email</span></a>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"},wheel:"auto",onInit:m.noop,beforeLoad:m.noop,afterLoad:m.noop,beforeShow:m.noop,afterShow:m.noop,beforeClose:m.noop,afterClose:m.noop,onActivate:m.noop,onDeactivate:m.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},a=m(l),s=m(u),i=0,p=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||function(t){return l.setTimeout(t,1e3/60)},e=l.cancelAnimationFrame||l.webkitCancelAnimationFrame||l.mozCancelAnimationFrame||l.oCancelAnimationFrame||function(t){l.clearTimeout(t)},c=function(){var t,e=u.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(e.style[t]!==g)return o[t];return"transitionend"}(),h=function(t){return t&&t.length&&t[0].offsetHeight},d=function(t,e){var o=m.extend(!0,{},t,e);return m.each(e,function(t,e){m.isArray(e)&&(o[t]=e)}),o},n=function(t,e,o){var n=this;n.opts=d({index:o},m.modulaFancybox.defaults),m.isPlainObject(e)&&(n.opts=d(n.opts,e)),m.modulaFancybox.isMobile&&(n.opts=d(n.opts,n.opts.mobile)),n.id=n.opts.id||++i,n.currIndex=parseInt(n.opts.index,10)||0,n.prevIndex=null,n.prevPos=null,n.currPos=0,n.firstRun=!0,n.group=[],n.slides={},n.addContent(t),n.group.length&&n.init()},m.extend(n.prototype,{init:function(){var o=this;o.currIndex<0&&(o.currIndex=0),void 0===o.group[o.currIndex]&&jQuery.each(this.group,function(t,e){o.currIndex!=parseInt(e.opts.image_id)||(o.currIndex=t)});var e,n,a=o.group[o.currIndex].opts;a.closeExisting&&m.modulaFancybox.close(!0),m("body").addClass("modula-fancybox-active"),!m.modulaFancybox.getInstance()&&!1!==a.hideScrollbar&&!m.modulaFancybox.isMobile&&u.body.scrollHeight>l.innerHeight&&(m("head").append('<style id="modula-fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(l.innerWidth-u.documentElement.clientWidth)+"px;}</style>"),m("body").addClass("compensate-for-scrollbar")),n="",m.each(a.buttons,function(t,e){n+=a.btnTpl[e]||""}),e=m(o.translate(o,a.baseTpl.replace("{{buttons}}",n).replace("{{arrows}}",a.btnTpl.arrowLeft+a.btnTpl.arrowRight))).attr("id","modula-fancybox-container-"+o.id).addClass(a.baseClass).data("modulaFancyBox",o).appendTo(a.parentEl),o.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){o.$refs[t]=e.find(".modula-fancybox-"+t)}),o.trigger("onInit"),o.activate(),o.jumpTo(o.currIndex)},translate:function(t,e){var o=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return o[e]===g?t:o[e]})},addContent:function(t){var e,c=this,o=m.makeArray(t);m.each(o,function(t,e){var o,n,a,i,s,r={},l={};m.isPlainObject(e)?l=(r=e).opts||e:"object"===m.type(e)&&m(e).length?(l=(o=m(e)).data()||{},(l=m.extend(!0,{},l,l.options)).$orig=o,r.src=c.opts.src||l.src||o.attr("href"),r.type||r.src||(r.type="inline",r.src=e)):r={type:"html",src:e+""},r.opts=m.extend(!0,{},c.opts,l),m.isArray(l.buttons)&&(r.opts.buttons=l.buttons),m.modulaFancybox.isMobile&&r.opts.mobile&&(r.opts=d(r.opts,r.opts.mobile)),n=r.type||r.opts.type,i=r.src||"",!n&&i&&((a=i.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(n="video",r.opts.video.format||(r.opts.video.format="video/"+("ogv"===a[1]?"ogg":a[1]))):i.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?n="image":i.match(/\.(pdf)((\?|#).*)?$/i)?(n="iframe",r=m.extend(!0,r,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===i.charAt(0)&&(n="inline")),n?r.type=n:c.trigger("objectNeedsType",r),r.contentType||(r.contentType=-1<m.inArray(r.type,["html","inline","ajax"])?"html":r.type),r.index=c.group.length,"auto"==r.opts.smallBtn&&(r.opts.smallBtn=-1<m.inArray(r.type,["html","inline","ajax"])),"auto"===r.opts.toolbar&&(r.opts.toolbar=!r.opts.smallBtn),r.$thumb=r.opts.$thumb||null,r.opts.$trigger&&r.index===c.opts.index&&(r.$thumb=r.opts.$trigger.find("img:first"),r.$thumb.length&&(r.opts.$orig=r.opts.$trigger)),r.$thumb&&r.$thumb.length||!r.opts.$orig||(r.$thumb=r.opts.$orig.find("img:first")),r.$thumb&&!r.$thumb.length&&(r.$thumb=null),r.thumb=r.opts.thumb||(r.$thumb?r.$thumb[0].src:null),"function"===m.type(r.opts.caption)&&(r.opts.caption=r.opts.caption.apply(e,[c,r])),"function"===m.type(c.opts.caption)&&(r.opts.caption=c.opts.caption.apply(e,[c,r])),r.opts.caption instanceof m||(r.opts.caption=r.opts.caption===g?"":r.opts.caption+""),"ajax"===r.type&&1<(s=i.split(/\s+/,2)).length&&(r.src=s.shift(),r.opts.filter=s.shift()),r.opts.modal&&(r.opts=m.extend(!0,r.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),c.group.push(r)}),Object.keys(c.slides).length&&(c.updateControls(),(e=c.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var n=this;n.removeEvents(),n.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),n.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),n.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),n.next()}).on("click.fb","[data-fancybox-zoom]",function(t){n[n.isScaledDown()?"scaleToActual":"scaleToFit"]()}),a.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(n.requestId&&e(n.requestId),n.requestId=p(function(){n.update(t)})):(n.current&&"iframe"===n.current.type&&n.$refs.stage.hide(),setTimeout(function(){n.$refs.stage.show(),n.update(t)},m.modulaFancybox.isMobile?600:250))}),s.on("keydown.fb",function(t){var e=(m.modulaFancybox?m.modulaFancybox.getInstance():null).current,o=t.keyCode||t.which;if(9!=o){if(!(!e.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||m(t.target).is("input,textarea,video,audio,select")))return 8===o||27===o?(t.preventDefault(),void n.close(t)):37===o||38===o?(t.preventDefault(),void n.previous()):39===o||40===o?(t.preventDefault(),void n.next()):void n.trigger("afterKeydown",t,o)}else e.opts.trapFocus&&n.focus(t)}),n.group[n.currIndex].opts.idleTime&&(n.idleSecondsCounter=0,s.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){n.idleSecondsCounter=0,n.isIdle&&n.showControls(),n.isIdle=!1}),n.idleInterval=l.setInterval(function(){n.idleSecondsCounter++,n.idleSecondsCounter>=n.group[n.currIndex].opts.idleTime&&!n.isDragging&&(n.isIdle=!0,n.idleSecondsCounter=0,n.hideControls())},1e3))},removeEvents:function(){a.off("orientationchange.fb resize.fb"),s.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleInterval&&(l.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,n){var e,o,a,i,s,r,l,c,d,u=this,p=u.group.length;if(!(u.isDragging||u.isClosing||u.isAnimating&&u.firstRun)){if(t=parseInt(t,10),!(a=u.current?u.current.opts.loop:u.opts.loop)&&(t<0||p<=t))return!1;if(e=u.firstRun=!Object.keys(u.slides).length,s=u.current,u.prevIndex=u.currIndex,u.prevPos=u.currPos,i=u.createSlide(t),1<p&&((a||i.index<p-1)&&u.createSlide(t+1),(a||0<i.index)&&u.createSlide(t-1)),u.current=i,u.currIndex=i.index,u.currPos=i.pos,u.trigger("beforeShow",e),u.updateControls(),i.forcedDuration=g,m.isNumeric(n)?i.forcedDuration=n:n=i.opts[e?"animationDuration":"transitionDuration"],n=parseInt(n,10),o=u.isMoved(i),i.$slide.addClass("modula-fancybox-slide--current"),e)return i.opts.animationEffect&&n&&u.$refs.container.css("transition-duration",n+"ms"),u.$refs.container.addClass("modula-fancybox-is-open").trigger("focus"),u.loadSlide(i),void u.preload("image");r=m.modulaFancybox.getTranslate(s.$slide),l=m.modulaFancybox.getTranslate(u.$refs.stage),m.each(u.slides,function(t,e){m.modulaFancybox.stop(e.$slide,!0)}),s.pos!==i.pos&&(s.isComplete=!1),s.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--current"),o?(d=r.left-(s.pos*r.width+s.pos*s.opts.gutter),m.each(u.slides,function(t,e){e.$slide.removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)modula-fancybox-fx-\S+/g)||[]).join(" ")});var o=e.pos*r.width+e.pos*e.opts.gutter;m.modulaFancybox.setTranslate(e.$slide,{top:0,left:o-l.left+d}),e.pos!==i.pos&&e.$slide.addClass("modula-fancybox-slide--"+(e.pos>i.pos?"next":"previous")),h(e.$slide),m.modulaFancybox.animate(e.$slide,{top:0,left:(e.pos-i.pos)*r.width+(e.pos-i.pos)*e.opts.gutter},n,function(){e.$slide.css({transform:"",opacity:""}).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous"),e.pos===u.currPos&&u.complete()})})):n&&i.opts.transitionEffect&&(c="modula-fancybox-animated modula-fancybox-fx-"+i.opts.transitionEffect,s.$slide.addClass("modula-fancybox-slide--"+(s.pos>i.pos?"next":"previous")),m.modulaFancybox.animate(s.$slide,c,n,function(){s.$slide.removeClass(c).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous")},!1)),i.isLoaded?u.revealContent(i):u.loadSlide(i),u.preload("image")}},createSlide:function(t){var e,o=this,n=t%o.group.length;return n=n<0?o.group.length+n:n,!o.slides[t]&&o.group[n]&&(e=m('<div class="modula-fancybox-slide"></div>').appendTo(o.$refs.stage),o.slides[t]=m.extend(!0,{},o.group[n],{pos:t,$slide:e,isLoaded:!1}),o.updateSlide(o.slides[t])),o.slides[t]},scaleToActual:function(t,e,o){var n,a,i,s,r,l=this,c=l.current,d=c.$content,u=m.modulaFancybox.getTranslate(c.$slide).width,p=m.modulaFancybox.getTranslate(c.$slide).height,h=c.width,f=c.height;l.isAnimating||l.isMoved()||!d||"image"!=c.type||!c.isLoaded||c.hasError||(l.isAnimating=!0,m.modulaFancybox.stop(d),t=t===g?.5*u:t,e=e===g?.5*p:e,(n=m.modulaFancybox.getTranslate(d)).top-=m.modulaFancybox.getTranslate(c.$slide).top,n.left-=m.modulaFancybox.getTranslate(c.$slide).left,s=h/n.width,r=f/n.height,a=.5*u-.5*h,i=.5*p-.5*f,u<h&&(0<(a=n.left*s-(t*s-t))&&(a=0),a<u-h&&(a=u-h)),p<f&&(0<(i=n.top*r-(e*r-e))&&(i=0),i<p-f&&(i=p-f)),l.updateCursor(h,f),m.modulaFancybox.animate(d,{top:i,left:a,scaleX:s,scaleY:r},o||366,function(){l.isAnimating=!1}),l.SlideShow&&l.SlideShow.isActive&&l.SlideShow.stop())},scaleToFit:function(t){var e,o=this,n=o.current,a=n.$content;o.isAnimating||o.isMoved()||!a||"image"!=n.type||!n.isLoaded||n.hasError||(o.isAnimating=!0,m.modulaFancybox.stop(a),e=o.getFitPos(n),o.updateCursor(e.width,e.height),m.modulaFancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||366,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,n,a,i=t.$content,s=t.$slide,r=t.width||t.opts.width,l=t.height||t.opts.height,c={};return!!(t.isLoaded&&i&&i.length)&&(e=m.modulaFancybox.getTranslate(this.$refs.stage).width,o=m.modulaFancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(s.css("paddingLeft"))+parseFloat(s.css("paddingRight"))+parseFloat(i.css("marginLeft"))+parseFloat(i.css("marginRight")),o-=parseFloat(s.css("paddingTop"))+parseFloat(s.css("paddingBottom"))+parseFloat(i.css("marginTop"))+parseFloat(i.css("marginBottom")),r&&l||(r=e,l=o),e-.5<(r*=n=Math.min(1,e/r,o/l))&&(r=e),o-.5<(l*=n)&&(l=o),"image"===t.type?(c.top=Math.floor(.5*(o-l))+parseFloat(s.css("paddingTop")),c.left=Math.floor(.5*(e-r))+parseFloat(s.css("paddingLeft"))):"video"===t.contentType&&(r/(a=t.opts.width&&t.opts.height?r/l:t.opts.ratio||16/9)<l?l=r/a:l*a<r&&(r=l*a)),c.width=r,c.height=l,c)},update:function(o){var n=this;m.each(n.slides,function(t,e){n.updateSlide(e,o)})},updateSlide:function(t,e){var o=this,n=t&&t.$content,a=t.width||t.opts.width,i=t.height||t.opts.height,s=t.$slide;o.adjustCaption(t),n&&(a||i||"video"===t.contentType)&&!t.hasError&&(m.modulaFancybox.stop(n),m.modulaFancybox.setTranslate(n,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),s.length&&(s.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".modula-fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",s.get(0).scrollHeight>s.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,n=o.$slide;!e.isClosing&&o&&(n.siblings().css({transform:"",opacity:""}),n.parent().children().removeClass("modula-fancybox-slide--previous modula-fancybox-slide--next"),m.modulaFancybox.animate(n,{top:0,left:0,opacity:1},t===g?0:t,function(){n.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o,n=t||this.current;return!!n&&(o=m.modulaFancybox.getTranslate(this.$refs.stage),e=m.modulaFancybox.getTranslate(n.$slide),!n.$slide.hasClass("modula-fancybox-animated")&&(.5<Math.abs(e.top-o.top)||.5<Math.abs(e.left-o.left)))},updateCursor:function(t,e){var o,n,a=this,i=a.current,s=a.$refs.container;i&&!a.isClosing&&a.Guestures&&(s.removeClass("modula-fancybox-is-zoomable modula-fancybox-can-zoomIn modula-fancybox-can-zoomOut modula-fancybox-can-swipe modula-fancybox-can-pan"),n=!!(o=a.canPan(t,e))||a.isZoomable(),s.toggleClass("modula-fancybox-is-zoomable",n),m("[data-fancybox-zoom]").prop("disabled",!n),o?s.addClass("modula-fancybox-can-pan"):n&&("zoom"===i.opts.clickContent||m.isFunction(i.opts.clickContent)&&"zoom"==i.opts.clickContent(i))?s.addClass("modula-fancybox-can-zoomIn"):i.opts.touch&&(i.opts.touch.vertical||1<a.group.length)&&"video"!==i.contentType&&s.addClass("modula-fancybox-can-swipe"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing&&"image"===e.type&&!e.hasError){if(!e.isLoaded)return!0;if((t=this.getFitPos(e))&&(e.width>t.width||e.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=!1,n=this.current,a=n.$content;return t!==g&&e!==g?o=t<n.width&&e<n.height:a&&(o=(o=m.modulaFancybox.getTranslate(a)).width<n.width&&o.height<n.height),o},canPan:function(t,e){var o=this.current,n=null,a=!1;return"image"===o.type&&(o.isComplete||t&&e)&&!o.hasError&&(a=this.getFitPos(o),t!==g&&e!==g?n={width:t,height:e}:o.isComplete&&(n=m.modulaFancybox.getTranslate(o.$content)),n&&a&&(a=1.5<Math.abs(n.width-a.width)||1.5<Math.abs(n.height-a.height))),a},loadSlide:function(o){var t,e,n,a=this;if(!o.isLoading&&!o.isLoaded){if(!(o.isLoading=!0)===a.trigger("beforeLoad",o))return o.isLoading=!1;switch(t=o.type,(e=o.$slide).off("refresh").trigger("onReset").addClass(o.opts.slideClass),t){case"image":a.setImage(o);break;case"iframe":a.setIframe(o);break;case"html":a.setContent(o,o.src||o.content);break;case"video":a.setContent(o,o.opts.video.tpl.replace(/\{\{src\}\}/gi,o.src).replace("{{format}}",o.opts.videoFormat||o.opts.video.format||"").replace("{{poster}}",o.thumb||""));break;case"inline":m(o.src).length?a.setContent(o,m(o.src)):a.setError(o);break;case"ajax":a.showLoading(o),n=m.ajax(m.extend({},o.opts.ajax.settings,{url:o.src,success:function(t,e){"success"===e&&a.setContent(o,t)},error:function(t,e){t&&"abort"!==e&&a.setError(o)}})),e.one("onReset",function(){n.abort()});break;default:a.setError(o)}return!0}},setImage:function(e){var t,o=this;setTimeout(function(){var t=e.$image;o.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||o.showLoading(e)},50),o.checkSrcset(e),e.$content=m('<div class="modula-fancybox-content"></div>').addClass("modula-fancybox-is-hidden").appendTo(e.$slide.addClass("modula-fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(t=u.createElement("img")).onerror=function(){m(this).remove(),e.$ghost=null},t.onload=function(){o.afterLoad(e)},e.$ghost=m(t).addClass("modula-fancybox-image").appendTo(e.$content).attr("src",e.thumb),"undifined"!=typeof e.src&&e.$ghost.attr("alt",e.alt)),o.setBigImage(e)},checkSrcset:function(t){var e,o,n,a,i=t.opts.srcset||t.opts.image.srcset;if(i){n=l.devicePixelRatio||1,a=l.innerWidth*n,(o=i.split(",").map(function(t){var n={};return t.trim().split(/\s+/).forEach(function(t,e){var o=parseInt(t.substring(0,t.length-1),10);if(0===e)return n.url=t;o&&(n.value=o,n.postfix=t[t.length-1])}),n})).sort(function(t,e){return t.value-e.value});for(var s=0;s<o.length;s++){var r=o[s];if("w"===r.postfix&&r.value>=a||"x"===r.postfix&&r.value>=n){e=r;break}}!e&&o.length&&(e=o[o.length-1]),e&&(t.src=e.url,t.width&&t.height&&"w"==e.postfix&&(t.height=t.width/t.height*e.value,t.width=e.value),t.opts.srcset=i)}},setBigImage:function(e){var o=this,t=u.createElement("img"),n=m(t);e.$image=n.one("error",function(){o.setError(e)}).one("load",function(){var t;e.$ghost||(o.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),o.afterLoad(e)),o.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(1<e.width/e.height&&1<a.width()/a.height()?"100":Math.round(e.width/e.height*100))+"vw"),n.attr("sizes",t).attr("srcset",e.opts.srcset)),e.opts.alt&&n.attr("alt",e.opts.alt),e.opts.image_id&&n.attr("image-id",e.opts.image_id),e.$ghost&&setTimeout(function(){e.$ghost&&!o.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),o.hideLoading(e))}).addClass("modula-fancybox-image").attr("src",e.src).appendTo(e.$content),(t.complete||"complete"==t.readyState)&&n.naturalWidth&&n.naturalHeight?n.trigger("load"):t.error&&n.trigger("error")},resolveImageSlideSize:function(t,e,o){var n=parseInt(t.opts.width,10),a=parseInt(t.opts.height,10);t.width=e,t.height=o,0<n&&(t.width=n,t.height=Math.floor(n*o/e)),0<a&&(t.width=Math.floor(a*e/o),t.height=a)},setIframe:function(a){var i,e=this,s=a.opts.iframe,r=a.$slide;a.$content=m('<div class="modula-fancybox-content'+(s.preload?" modula-fancybox-is-hidden":"")+'"></div>').css(s.css).appendTo(r),r.addClass("modula-fancybox-slide--"+a.contentType),a.$iframe=i=m(s.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(s.attr).appendTo(a.$content),s.preload?(e.showLoading(a),i.on("load.fb error.fb",function(t){this.isReady=1,a.$slide.trigger("refresh"),e.afterLoad(a)}),r.on("refresh.fb",function(){var t,e=a.$content,o=s.css.width,n=s.css.height;if(1===i[0].isReady){try{t=i.contents().find("body")}catch(t){}t&&t.length&&t.children().length&&(r.css("overflow","visible"),e.css({width:"100%","max-width":"100%",height:"9999px"}),o===g&&(o=Math.ceil(Math.max(t[0].clientWidth,t.outerWidth(!0)))),e.css("width",o||"").css("max-width",""),n===g&&(n=Math.ceil(Math.max(t[0].clientHeight,t.outerHeight(!0)))),e.css("height",n||""),r.css("overflow","auto")),e.removeClass("modula-fancybox-is-hidden")}})):e.afterLoad(a),i.attr("src",a.src),r.one("onReset",function(){try{m(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}m(this).off("refresh.fb").empty(),a.isLoaded=!1,a.isRevealed=!1})},setContent:function(t,e){var o;this.isClosing||(this.hideLoading(t),t.$content&&m.modulaFancybox.stop(t.$content),t.$slide.empty(),(o=e)&&o.hasOwnProperty&&o instanceof m&&e.parent().length?((e.hasClass("modula-fancybox-content")||e.parent().hasClass("modula-fancybox-content"))&&e.parents(".modula-fancybox-slide").trigger("onReset"),t.$placeholder=m("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===m.type(e)&&(e=m("<div>").append(m.trim(e)).contents()),t.opts.filter&&(e=m("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){m(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("modula-fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(m(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),m(e).appendTo(t.$slide),m(e).is("video,audio")&&(m(e).addClass("modula-fancybox-video"),m(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||m(e).attr("width"),t.opts.height=t.opts.height||m(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.modula-fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("modula-fancybox-content"),t.$slide.addClass("modula-fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("modula-fancybox-slide--"+t.contentType).addClass("modula-fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=m(this.translate(this,this.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=m(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&m('<div class="modula-fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,o=this,n=t||o.current,a=n.opts.caption,i=n.opts.preventCaptionOverlap,s=o.$refs.caption,r=!1;s.toggleClass("modula-fancybox-caption--separate",i),i&&a&&a.length&&(n.pos!==o.currPos?((e=s.clone().appendTo(s.parent())).children().eq(0).empty().html(a),r=e.outerHeight(!0),e.empty().remove()):o.$caption&&(r=o.$caption.outerHeight(!0)),n.$slide.css("padding-bottom",r||""))},adjustLayout:function(t){var e,o,n,a,i=t||this.current;i.isLoaded&&!0!==i.opts.disableLayoutFix&&(i.$content.css("margin-bottom",""),i.$content.outerHeight()>i.$slide.height()+.5&&(n=i.$slide[0].style["padding-bottom"],a=i.$slide.css("padding-bottom"),0<parseFloat(a)&&(e=i.$slide[0].scrollHeight,i.$slide.css("padding-bottom",0),Math.abs(e-i.$slide[0].scrollHeight)<1&&(o=a),i.$slide.css("padding-bottom",n))),i.$content.css("margin-bottom",o))},revealContent:function(t){var e,o,n,a,i=this,s=t.$slide,r=!1,l=!1,c=i.isMoved(t),d=t.isRevealed;return t.isRevealed=!0,e=t.opts[i.firstRun?"animationEffect":"transitionEffect"],n=t.opts[i.firstRun?"animationDuration":"transitionDuration"],n=parseInt(t.forcedDuration===g?n:t.forcedDuration,10),!c&&t.pos===i.currPos&&n||(e=!1),"zoom"===e&&(t.pos===i.currPos&&n&&"image"===t.type&&!t.hasError&&(l=i.getThumbPos(t))?r=i.getFitPos(t):e="fade"),"zoom"===e?(i.isAnimating=!0,r.scaleX=r.width/l.width,r.scaleY=r.height/l.height,"auto"==(a=t.opts.zoomOpacity)&&(a=.1<Math.abs(t.width/t.height-l.width/l.height)),a&&(l.opacity=.1,r.opacity=1),m.modulaFancybox.setTranslate(t.$content.removeClass("modula-fancybox-is-hidden"),l),h(t.$content),void m.modulaFancybox.animate(t.$content,r,n,function(){i.isAnimating=!1,i.complete()})):(i.updateSlide(t),e?(m.modulaFancybox.stop(s),o="modula-fancybox-slide--"+(t.pos>=i.prevPos?"next":"previous")+" modula-fancybox-animated modula-fancybox-fx-"+e,s.addClass(o).removeClass("modula-fancybox-slide--current"),t.$content.removeClass("modula-fancybox-is-hidden"),h(s),"image"!==t.type&&t.$content.hide().show(0),void m.modulaFancybox.animate(s,"modula-fancybox-slide--current",n,function(){s.removeClass(o).css({transform:"",opacity:""}),t.pos===i.currPos&&i.complete()},!0)):(t.$content.removeClass("modula-fancybox-is-hidden"),d||!c||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===i.currPos&&i.complete())))},getThumbPos:function(t){var e,o,n,a,i,s,r,l,c,d=t.$thumb;return!!(d&&(c=d.find("a.tile-inner")[0])&&c.ownerDocument===u&&(m(".modula-fancybox-container").css("pointer-events","none"),r={x:c.getBoundingClientRect().left+c.offsetWidth/2,y:c.getBoundingClientRect().top+c.offsetHeight/2},console.log(u.elementFromPoint(r.x,r.y)===c),l=u.elementFromPoint(r.x,r.y)===c,m(".modula-fancybox-container").css("pointer-events",""),l))&&(o=m.modulaFancybox.getTranslate(d),n=parseFloat(d.css("border-top-width")||0),a=parseFloat(d.css("border-right-width")||0),i=parseFloat(d.css("border-bottom-width")||0),s=parseFloat(d.css("border-left-width")||0),e={top:o.top+n,left:o.left+s,width:o.width-a-s,height:o.height-n-i,scaleX:1,scaleY:1},0<o.width&&0<o.height&&e)},complete:function(){var t,o=this,e=o.current,n={};!o.isMoved()&&e.isLoaded&&(e.isComplete||(e.isComplete=!0,e.$slide.siblings().trigger("onReset"),o.preload("inline"),h(e.$slide),e.$slide.addClass("modula-fancybox-slide--complete"),m.each(o.slides,function(t,e){e.pos>=o.currPos-1&&e.pos<=o.currPos+1?n[e.pos]=e:e&&(m.modulaFancybox.stop(e.$slide),e.$slide.off().remove())}),o.slides=n),o.isAnimating=!1,o.updateCursor(),o.trigger("afterShow"),e.opts.video.autoStart&&e.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),o.next()}),e.opts.autoFocus&&"html"===e.contentType&&((t=e.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):o.focus(null,!0)),e.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,o,n=this;n.group.length<2||(o=n.slides[n.currPos+1],(e=n.slides[n.currPos-1])&&e.type===t&&n.loadSlide(e),o&&o.type===t&&n.loadSlide(o))},focus:function(t,e){var o,n,a=this,i=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");a.isClosing||((o=(o=!t&&a.current&&a.current.isComplete?a.current.$slide.find("*:visible"+(e?":not(.modula-fancybox-close-small)":"")):a.$refs.container.find("*:visible")).filter(i).filter(function(){return"hidden"!==m(this).css("visibility")&&!m(this).hasClass("disabled")})).length?(n=o.index(u.activeElement),t&&t.shiftKey?(n<0||0==n)&&(t.preventDefault(),o.eq(o.length-1).trigger("focus")):(n<0||n==o.length-1)&&(t&&t.preventDefault(),o.eq(0).trigger("focus"))):a.$refs.container.trigger("focus"))},activate:function(){var e=this;m(".modula-fancybox-container").each(function(){var t=m(this).data("modulaFancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(t,e){function o(){d.cleanUp(t)}var n,a,i,s,r,l,c,d=this,u=d.current;return!d.isClosing&&(!(d.isClosing=!0)===d.trigger("beforeClose",t)?(d.isClosing=!1,p(function(){d.update()}),!1):(d.removeEvents(),i=u.$content,n=u.opts.animationEffect,a=m.isNumeric(e)?e:n?u.opts.animationDuration:0,u.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--next modula-fancybox-slide--previous modula-fancybox-animated"),!0!==t?m.modulaFancybox.stop(u.$slide):n=!1,u.$slide.siblings().trigger("onReset").remove(),a&&d.$refs.container.removeClass("modula-fancybox-is-open").addClass("modula-fancybox-is-closing").css("transition-duration",a+"ms"),d.hideLoading(u),d.hideControls(!0),d.updateCursor(),"zoom"!==n||i&&a&&"image"===u.type&&!d.isMoved()&&!u.hasError&&(c=d.getThumbPos(u))||(n="fade"),"zoom"===n?(m.modulaFancybox.stop(i),l={top:(s=m.modulaFancybox.getTranslate(i)).top,left:s.left,scaleX:s.width/c.width,scaleY:s.height/c.height,width:c.width,height:c.height},"auto"==(r=u.opts.zoomOpacity)&&(r=.1<Math.abs(u.width/u.height-c.width/c.height)),r&&(c.opacity=0),m.modulaFancybox.setTranslate(i,l),h(i),m.modulaFancybox.animate(i,c,a,o)):n&&a?m.modulaFancybox.animate(u.$slide.addClass("modula-fancybox-slide--previous").removeClass("modula-fancybox-slide--current"),"modula-fancybox-animated modula-fancybox-fx-"+n,a,o):!0===t?setTimeout(o,a):o(),!0))},cleanUp:function(t){var e,o,n,a=this,i=a.current.opts.$orig;a.current.$slide.trigger("onReset"),a.$refs.container.empty().remove(),a.trigger("afterClose",t),a.current.opts.backFocus&&(i&&i.length&&i.is(":visible")||(i=a.$trigger),i&&i.length&&(o=l.scrollX,n=l.scrollY,i.trigger("focus"),m("html, body").scrollTop(n).scrollLeft(o))),a.current=null,(e=m.modulaFancybox.getInstance())?e.activate():(m("body").removeClass("modula-fancybox-active compensate-for-scrollbar"),m("#modula-fancybox-style-noscroll").remove())},trigger:function(t,e){var o,n=Array.prototype.slice.call(arguments,1),a=this,i=e&&e.opts?e:a.current;if(i?n.unshift(i):i=a,n.unshift(a),m.isFunction(i.opts[t])&&(o=i.opts[t].apply(i,n)),!1===o)return o;"afterClose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",n):s.trigger(t+".fb",n)},updateControls:function(){var t=this,e=t.current,o=e.index,n=t.$refs.container,a=t.$refs.caption,i=e.opts.caption;e.$slide.trigger("refresh"),i&&i.length?(t.$caption=a).children().eq(0).html(i):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),n.find("[data-fancybox-count]").html(t.group.length),n.find("[data-fancybox-index]").html(o+1),n.find("[data-fancybox-prev]").prop("disabled",!e.opts.loop&&o<=0),n.find("[data-fancybox-next]").prop("disabled",!e.opts.loop&&o>=t.group.length-1),"image"===e.type?n.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",e.opts.image.src||e.src).show():e.opts.toolbar&&n.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),m(u.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map(function(t){return"modula-fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,o=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,o.toggleClass("modula-fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("modula-fancybox-show-infobar",!!(e.infobar&&1<t.group.length)).toggleClass("modula-fancybox-show-caption",!!t.$caption).toggleClass("modula-fancybox-show-nav",!!(e.arrows&&1<t.group.length)).toggleClass("modula-fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),m.modulaFancybox={version:"3.5.7",defaults:t,getInstance:function(t){var e=m('.modula-fancybox-container:not(".modula-fancybox-is-closing"):last').data("modulaFancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof n&&("string"===m.type(t)?e[t].apply(e,o):"function"===m.type(t)&&t.apply(e,o),e)},open:function(t,e,o){return new n(t,e,o)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),s.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(o=u.createElement("div"),l.getComputedStyle&&l.getComputedStyle(o)&&l.getComputedStyle(o).getPropertyValue("transform")&&!(u.documentMode&&u.documentMode<11)),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var o="",n={};if(t&&e)return e.left===g&&e.top===g||(o=(e.left===g?t.position().left:e.left)+"px, "+(e.top===g?t.position().top:e.top)+"px",o=this.use3d?"translate3d("+o+", 0px)":"translate("+o+")"),e.scaleX!==g&&e.scaleY!==g?o+=" scale("+e.scaleX+", "+e.scaleY+")":e.scaleX!==g&&(o+=" scaleX("+e.scaleX+")"),o.length&&(n.transform=o),e.opacity!==g&&(n.opacity=e.opacity),e.width!==g&&(n.width=e.width),e.height!==g&&(n.height=e.height),t.css(n)},animate:function(e,o,n,a,i){var s,r=this;m.isFunction(n)&&(a=n,n=null),r.stop(e),s=r.getTranslate(e),e.on(c,function(t){t&&t.originalEvent&&(!e.is(t.originalEvent.target)||"z-index"==t.originalEvent.propertyName)||(r.stop(e),m.isNumeric(n)&&e.css("transition-duration",""),m.isPlainObject(o)?o.scaleX!==g&&o.scaleY!==g&&r.setTranslate(e,{top:o.top,left:o.left,width:s.width*o.scaleX,height:s.height*o.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(o),m.isFunction(a)&&a(t))}),m.isNumeric(n)&&e.css("transition-duration",n+"ms"),m.isPlainObject(o)?(o.scaleX!==g&&o.scaleY!==g&&(delete o.width,delete o.height,e.parent().hasClass("modula-fancybox-slide--image")&&e.parent().addClass("modula-fancybox-is-scaling")),m.modulaFancybox.setTranslate(e,o)):e.addClass(o),e.data("timer",setTimeout(function(){e.trigger(c)},n+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(c),t.off(c).css("transition-duration",""),t.parent().removeClass("modula-fancybox-is-scaling"))}},m.fn.modulaFancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?m("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},y):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},y),this},s.on("click.fb-start","[data-fancybox]",y),s.on("click.fb-start","[data-fancybox-trigger]",function(t){m('[data-fancybox="'+m(this).attr("data-fancybox-trigger")+'"]').eq(m(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:m(this)})}),r=".modula-fancybox-button",f="modula-fancybox-focus",b=null,s.on("mousedown mouseup focus blur",r,function(t){switch(t.type){case"mousedown":b=m(this);break;case"mouseup":b=null;break;case"focusin":m(r).removeClass(f),m(this).is(b)||m(this).is("[disabled]")||m(this).addClass(f);break;case"focusout":m(r).removeClass(f)}})))}(window,document,jQuery),function(h){"use strict";function f(o,t,e){if(o)return e=e||"","object"===h.type(e)&&(e=h.param(e,!0)),h.each(t,function(t,e){o=o.replace("$"+t,e||"")}),e.length&&(o+=(0<o.indexOf("?")?"&":"?")+e),o}var n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&0<t[12].indexOf("layer=c")?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};h(document).on("objectNeedsType.fb",function(t,e,a){var i,s,r,l,c,d,u=a.src||"",p=!1,o=h.extend(!0,{},n,a.opts.media);h.each(o,function(t,e){if(s=u.match(e.matcher)){if(p=e.type,d=t,c={},e.paramPlace&&s[e.paramPlace]){"?"==(l=s[e.paramPlace])[0]&&(l=l.substring(1)),l=l.split("&");for(var o=0;o<l.length;++o){var n=l[o].split("=",2);2==n.length&&(c[n[0]]=decodeURIComponent(n[1].replace(/\+/g," ")))}}return r=h.extend(!0,{},e.params,a.opts[t],c),u="function"===h.type(e.url)?e.url.call(this,s,r,a):f(e.url,s,r),i="function"===h.type(e.thumb)?e.thumb.call(this,s,r,a):f(e.thumb,s),"youtube"===t?u=u.replace(/&t=(\d+)/,function(t,e){return"&start="+e}):"vimeo"===t&&(u=u.replace("&%23","#")),!1}}),p?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=i),"iframe"===p&&(a.opts=h.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),h.extend(a,{type:p,src:u,origSrc:a.src,contentSource:d,contentType:"image"===p?"image":"gmap_place"==d||"gmap_search"==d?"map":"video"})):u&&(a.type=a.opts.defaultType)});var a={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,o=this;this[t].loaded?setTimeout(function(){o.done(t)}):this[t].loading||(this[t].loading=!0,(e=document.createElement("script")).type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){o[t].loaded=!0,o.done(t)}:e.onload=function(){o[t].loaded=!0,o.done(t)},document.body.appendChild(e))},done:function(t){var e,o;"youtube"===t&&delete window.onYouTubeIframeAPIReady,(e=h.modulaFancybox.getInstance())&&(o=e.current.$content.find("iframe"),"youtube"===t&&void 0!==YT&&YT?new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&e.next()}}}):"vimeo"===t&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(o).on("ended",function(){e.next()}))}};h(document).on({"afterShow.fb":function(t,e,o){1<e.group.length&&("youtube"===o.contentSource||"vimeo"===o.contentSource)&&a.load(o.contentSource)}})}(jQuery),function(m,l,g){"use strict";function d(t){var e=[];for(var o in t=(t=t.originalEvent||t||m.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[o].pageX?e.push({x:t[o].pageX,y:t[o].pageY}):t[o].clientX&&e.push({x:t[o].clientX,y:t[o].clientY});return e}function b(t,e,o){return e&&t?"x"===o?t.x-e.x:"y"===o?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function c(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||g.isFunction(t.get(0).onclick)||t.data("selectable"))return 1;for(var e=0,o=t[0].attributes,n=o.length;e<n;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return 1}function u(t){for(var e,o,n,a,i,s=!1;e=t.get(0),0,o=m.getComputedStyle(e)["overflow-y"],n=m.getComputedStyle(e)["overflow-x"],a=("scroll"===o||"auto"===o)&&e.scrollHeight>e.clientHeight,i=("scroll"===n||"auto"===n)&&e.scrollWidth>e.clientWidth,!(s=a||i)&&(t=t.parent()).length&&!t.hasClass("modula-fancybox-stage")&&!t.is("body"););return s}function o(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",g.proxy(e,"ontouchstart"))}var y=m.requestAnimationFrame||m.webkitRequestAnimationFrame||m.mozRequestAnimationFrame||m.oRequestAnimationFrame||function(t){return m.setTimeout(t,1e3/60)},v=m.cancelAnimationFrame||m.webkitCancelAnimationFrame||m.mozCancelAnimationFrame||m.oCancelAnimationFrame||function(t){m.clearTimeout(t)};o.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),g(l).off(".fb.touch"),t.requestId&&(v(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},o.prototype.ontouchstart=function(t){var e=this,o=g(t.target),n=e.instance,a=n.current,i=a.$slide,s=a.$content,r="touchstart"==t.type;if(r&&e.$container.off("mousedown.fb.touch"),(!t.originalEvent||2!=t.originalEvent.button)&&i.length&&o.length&&!c(o)&&!c(o.parent())&&(o.is("img")||!(t.originalEvent.clientX>o[0].clientWidth+o.offset().left))){if(!a||n.isAnimating||a.$slide.hasClass("modula-fancybox-animated"))return t.stopPropagation(),void t.preventDefault();e.realPoints=e.startPoints=d(t),e.startPoints.length&&(a.touch&&t.stopPropagation(),e.startEvent=t,e.canTap=!0,e.$target=o,e.$content=s,e.opts=a.opts.touch,e.isPanning=!1,e.isSwiping=!1,e.isZooming=!1,e.isScrolling=!1,e.canPan=n.canPan(),e.startTime=(new Date).getTime(),e.distanceX=e.distanceY=e.distance=0,e.canvasWidth=Math.round(i[0].clientWidth),e.canvasHeight=Math.round(i[0].clientHeight),e.contentLastPos=null,e.contentStartPos=g.modulaFancybox.getTranslate(e.$content)||{top:0,left:0},e.sliderStartPos=g.modulaFancybox.getTranslate(i),e.stagePos=g.modulaFancybox.getTranslate(n.$refs.stage),e.sliderStartPos.top-=e.stagePos.top,e.sliderStartPos.left-=e.stagePos.left,e.contentStartPos.top-=e.stagePos.top,e.contentStartPos.left-=e.stagePos.left,g(l).off(".fb.touch").on(r?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",g.proxy(e,"ontouchend")).on(r?"touchmove.fb.touch":"mousemove.fb.touch",g.proxy(e,"ontouchmove")),g.modulaFancybox.isMobile&&l.addEventListener("scroll",e.onscroll,!0),((e.opts||e.canPan)&&(o.is(e.$stage)||e.$stage.find(o).length)||(o.is(".modula-fancybox-image")&&t.preventDefault(),g.modulaFancybox.isMobile&&o.parents(".modula-fancybox-caption").length))&&(e.isScrollable=u(o)||u(o.parent()),g.modulaFancybox.isMobile&&e.isScrollable||t.preventDefault(),1!==e.startPoints.length&&!a.hasError||(e.canPan?(g.modulaFancybox.stop(e.$content),e.isPanning=!0):e.isSwiping=!0,e.$container.addClass("modula-fancybox-is-grabbing")),2===e.startPoints.length&&"image"===a.type&&(a.isLoaded||a.$ghost)&&(e.canTap=!1,e.isSwiping=!1,e.isPanning=!1,e.isZooming=!0,g.modulaFancybox.stop(e.$content),e.centerPointStartX=.5*(e.startPoints[0].x+e.startPoints[1].x)-g(m).scrollLeft(),e.centerPointStartY=.5*(e.startPoints[0].y+e.startPoints[1].y)-g(m).scrollTop(),e.percentageOfImageAtPinchPointX=(e.centerPointStartX-e.contentStartPos.left)/e.contentStartPos.width,e.percentageOfImageAtPinchPointY=(e.centerPointStartY-e.contentStartPos.top)/e.contentStartPos.height,e.startDistanceBetweenFingers=b(e.startPoints[0],e.startPoints[1]))))}},o.prototype.onscroll=function(t){this.isScrolling=!0,l.removeEventListener("scroll",this.onscroll,!0)},o.prototype.ontouchmove=function(t){var e=this;void 0===t.originalEvent.buttons||0!==t.originalEvent.buttons?e.isScrolling?e.canTap=!1:(e.newPoints=d(t),(e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=b(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=b(e.newPoints[0],e.startPoints[0],"y"),e.distance=b(e.newPoints[0],e.startPoints[0]),0<e.distance&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))):e.ontouchend(t)},o.prototype.onSwipe=function(t){var e,a=this,i=a.instance,o=a.isSwiping,n=a.sliderStartPos.left||0;if(!0!==o)"x"==o&&(0<a.distanceX&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?n+=Math.pow(a.distanceX,.8):a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?n-=Math.pow(-a.distanceX,.8):n+=a.distanceX),a.sliderLastPos={top:"x"==o?0:a.sliderStartPos.top+a.distanceY,left:n},a.requestId&&(v(a.requestId),a.requestId=null),a.requestId=y(function(){a.sliderLastPos&&(g.each(a.instance.slides,function(t,e){var o=e.pos-a.instance.currPos;g.modulaFancybox.setTranslate(e.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+o*a.canvasWidth+o*e.opts.gutter})}),a.$container.addClass("modula-fancybox-is-sliding"))});else if(10<Math.abs(a.distance)){if(a.canTap=!1,i.group.length<2&&a.opts.vertical?a.isSwiping="y":i.isDragging||!1===a.opts.vertical||"auto"===a.opts.vertical&&800<g(m).width()?a.isSwiping="x":(e=Math.abs(180*Math.atan2(a.distanceY,a.distanceX)/Math.PI),a.isSwiping=45<e&&e<135?"y":"x"),"y"===a.isSwiping&&g.modulaFancybox.isMobile&&a.isScrollable)return void(a.isScrolling=!0);i.isDragging=a.isSwiping,a.startPoints=a.newPoints,g.each(i.slides,function(t,e){var o,n;g.modulaFancybox.stop(e.$slide),o=g.modulaFancybox.getTranslate(e.$slide),n=g.modulaFancybox.getTranslate(i.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)modula-fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===i.current.pos&&(a.sliderStartPos.top=o.top-n.top,a.sliderStartPos.left=o.left-n.left),g.modulaFancybox.setTranslate(e.$slide,{top:o.top-n.top,left:o.left-n.left})}),i.SlideShow&&i.SlideShow.isActive&&i.SlideShow.stop()}},o.prototype.onPan=function(){var t=this;b(t.newPoints[0],t.realPoints[0])<(g.modulaFancybox.isMobile?10:5)?t.startPoints=t.newPoints:(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&v(t.requestId),t.requestId=y(function(){g.modulaFancybox.setTranslate(t.$content,t.contentLastPos)}))},o.prototype.limitMovement=function(){var t=this,e=t.canvasWidth,o=t.canvasHeight,n=t.distanceX,a=t.distanceY,i=t.contentStartPos,s=i.left,r=i.top,l=i.width,c=i.height,d=e<l?s+n:s,u=r+a,p=Math.max(0,.5*e-.5*l),h=Math.max(0,.5*o-.5*c),f=Math.min(e-l,.5*e-.5*l),m=Math.min(o-c,.5*o-.5*c);return 0<n&&p<d&&(d=p-1+Math.pow(-p+s+n,.8)||0),n<0&&d<f&&(d=f+1-Math.pow(f-s-n,.8)||0),0<a&&h<u&&(u=h-1+Math.pow(-h+r+a,.8)||0),a<0&&u<m&&(u=m+1-Math.pow(m-r-a,.8)||0),{top:u,left:d}},o.prototype.limitPosition=function(t,e,o,n){var a=this.canvasWidth,i=this.canvasHeight;return t=a<o?(t=0<t?0:t)<a-o?a-o:t:Math.max(0,a/2-o/2),{top:e=i<n?(e=0<e?0:e)<i-n?i-n:e:Math.max(0,i/2-n/2),left:t}},o.prototype.onZoom=function(){var t=this,e=t.contentStartPos,o=e.width,n=e.height,a=e.left,i=e.top,s=b(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,r=Math.floor(o*s),l=Math.floor(n*s),c=(o-r)*t.percentageOfImageAtPinchPointX,d=(n-l)*t.percentageOfImageAtPinchPointY,u=(t.newPoints[0].x+t.newPoints[1].x)/2-g(m).scrollLeft(),p=(t.newPoints[0].y+t.newPoints[1].y)/2-g(m).scrollTop(),h=u-t.centerPointStartX,f={top:i+(d+(p-t.centerPointStartY)),left:a+(c+h),scaleX:s,scaleY:s};t.canTap=!1,t.newWidth=r,t.newHeight=l,t.contentLastPos=f,t.requestId&&v(t.requestId),t.requestId=y(function(){g.modulaFancybox.setTranslate(t.$content,t.contentLastPos)})},o.prototype.ontouchend=function(t){var e=this,o=e.isSwiping,n=e.isPanning,a=e.isZooming,i=e.isScrolling;if(e.endPoints=d(t),e.dMs=Math.max((new Date).getTime()-e.startTime,1),e.$container.removeClass("modula-fancybox-is-grabbing"),g(l).off(".fb.touch"),l.removeEventListener("scroll",e.onscroll,!0),e.requestId&&(v(e.requestId),e.requestId=null),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.isScrolling=!1,e.instance.isDragging=!1,e.canTap)return e.onTap(t);e.speed=100,e.velocityX=e.distanceX/e.dMs*.5,e.velocityY=e.distanceY/e.dMs*.5,n?e.endPanning():a?e.endZooming():e.endSwiping(o,i)},o.prototype.endSwiping=function(t,e){var o=this,n=!1,a=o.instance.group.length,i=Math.abs(o.distanceX),s="x"==t&&1<a&&(130<o.dMs&&10<i||50<i);o.sliderLastPos=null,"y"==t&&!e&&50<Math.abs(o.distanceY)?(g.modulaFancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),n=o.instance.close(!0,250)):s&&0<o.distanceX?n=o.instance.previous(300):s&&o.distanceX<0&&(n=o.instance.next(300)),!1!==n||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("modula-fancybox-is-sliding")},o.prototype.endPanning=function(){var t,e,o,n=this;n.contentLastPos&&(e=!1===n.opts.momentum||350<n.dMs?(t=n.contentLastPos.left,n.contentLastPos.top):(t=n.contentLastPos.left+500*n.velocityX,n.contentLastPos.top+500*n.velocityY),(o=n.limitPosition(t,e,n.contentStartPos.width,n.contentStartPos.height)).width=n.contentStartPos.width,o.height=n.contentStartPos.height,g.modulaFancybox.animate(n.$content,o,366))},o.prototype.endZooming=function(){var t,e,o,n,a=this,i=a.instance.current,s=a.newWidth,r=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,n={top:e=a.contentLastPos.top,left:t,width:s,height:r,scaleX:1,scaleY:1},g.modulaFancybox.setTranslate(a.$content,n),s<a.canvasWidth&&r<a.canvasHeight?a.instance.scaleToFit(150):s>i.width||r>i.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,s,r),g.modulaFancybox.animate(a.$content,o,150)))},o.prototype.onTap=function(o){function t(t){var e=s.opts[t];if(g.isFunction(e)&&(e=e.apply(i,[s,o])),e)switch(e){case"close":i.close(n.startEvent);break;case"toggleControls":i.toggleControls();break;case"next":i.next();break;case"nextOrClose":1<i.group.length?i.next():i.close(n.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(i.canPan()?i.scaleToFit():i.isScaledDown()?i.scaleToActual(l,c):i.group.length<2&&i.close(n.startEvent))}}var e,n=this,a=g(o.target),i=n.instance,s=i.current,r=o&&d(o)||n.startPoints,l=r[0]?r[0].x-g(m).scrollLeft()-n.stagePos.left:0,c=r[0]?r[0].y-g(m).scrollTop()-n.stagePos.top:0;if((!o.originalEvent||2!=o.originalEvent.button)&&(a.is("img")||!(l>a[0].clientWidth+a.offset().left))){if(a.is(".modula-fancybox-bg,.modula-fancybox-inner,.modula-fancybox-outer,.modula-fancybox-container"))e="Outside";else if(a.is(".modula-fancybox-slide"))e="Slide";else{if(!i.current.$content||!i.current.$content.find(a).addBack().filter(a).length)return;e="Content"}if(n.tapped){if(clearTimeout(n.tapped),n.tapped=null,50<Math.abs(l-n.tapX)||50<Math.abs(c-n.tapY))return this;t("dblclick"+e)}else n.tapX=l,n.tapY=c,s.opts["dblclick"+e]&&s.opts["dblclick"+e]!==s.opts["click"+e]?n.tapped=setTimeout(function(){n.tapped=null,i.isAnimating||t("click"+e)},500):t("click"+e);return this}},g(l).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new o(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(s,r){"use strict";r.extend(!0,r.modulaFancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="modula-fancybox-button modula-fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});function o(t){this.instance=t,this.init()}r.extend(o.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,e=t.instance,o=e.group[e.currIndex].opts.slideShow;t.$button=e.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),e.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=r('<div class="modula-fancybox-progress"></div>').appendTo(e.$refs.inner))},set:function(t){var e=this,o=e.instance,n=o.current;n&&(!0===t||n.opts.loop||o.currIndex<o.group.length-1)?e.isActive&&"video"!==n.contentType&&(e.$progress&&r.modulaFancybox.animate(e.$progress.show(),{scaleX:1},n.opts.slideShow.speed),e.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},n.opts.slideShow.speed)):(e.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&this.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("modula-fancybox-button--play").addClass("modula-fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("modula-fancybox-button--pause").addClass("modula-fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){this.isActive?this.stop():this.start()}}),r(s).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new o(e))},"beforeShow.fb":function(t,e,o,n){var a=e&&e.SlideShow;n?a&&o.opts.slideShow.autoStart&&a.start():a&&a.isActive&&a.clear()},"afterShow.fb":function(t,e,o){var n=e&&e.SlideShow;n&&n.isActive&&n.set()},"afterKeydown.fb":function(t,e,o,n,a){var i=e&&e.SlideShow;!i||!o.opts.slideShow||80!==a&&32!==a||r(s.activeElement).is("button,a,input")||(n.preventDefault(),i.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var o=e&&e.SlideShow;o&&o.stop()}}),r(s).on("visibilitychange",function(){var t=r.modulaFancybox.getInstance(),e=t&&t.SlideShow;e&&e.isActive&&(s.hidden?e.clear():e.set())})}(document,jQuery),function(i,o){"use strict";var n,a=function(){for(var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],e={},o=0;o<t.length;o++){var n=t[o];if(n&&n[1]in i){for(var a=0;a<n.length;a++)e[t[0][a]]=n[a];return e}}return!1}();a&&(n={request:function(t){(t=t||i.documentElement)[a.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){i[a.exitFullscreen]()},toggle:function(t){t=t||i.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(i[a.fullscreenElement])},enabled:function(){return Boolean(i[a.fullscreenEnabled])}},o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="modula-fancybox-button modula-fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),o(i).on(a.fullscreenchange,function(){var t=n.isFullscreen(),e=o.modulaFancybox.getInstance();e&&(e.current&&"image"===e.current.type&&e.isAnimating&&(e.isAnimating=!1,e.update(!0,!0,0),e.isComplete||e.complete()),e.trigger("onFullscreenChange",t),e.$refs.container.toggleClass("modula-fancybox-is-fullscreen",t),e.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("modula-fancybox-button--fsenter",!t).toggleClass("modula-fancybox-button--fsexit",t))})),o(i).on({"onInit.fb":function(t,e){a?e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),n.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&n.request(),e.FullScreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,o,n,a){e&&e.FullScreen&&70===a&&(n.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("modula-fancybox-is-fullscreen")&&n.exit()}})}(document,jQuery),function(t,i){"use strict";var s="modula-fancybox-thumbs",r=s+"-active";i.modulaFancybox.defaults=i.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="modula-fancybox-button modula-fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"}},i.modulaFancybox.defaults);function n(t){this.init(t)}i.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,o=t.group,n=0;e.instance=t,e.opts=o[t.currIndex].opts.thumbs,(t.Thumbs=e).$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var a=0,i=o.length;a<i&&(o[a].thumb&&n++,!(1<n));a++);1<n&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var o,t=this,e=t.instance,n=t.opts.parentEl,a=[];t.$grid||(t.$grid=i('<div class="'+s+" "+s+"-"+t.opts.axis+'"></div>').appendTo(e.$refs.container.find(n).addBack().filter(n)),t.$grid.on("click","a",function(){e.jumpTo(i(this).attr("data-index"))})),t.$list||(t.$list=i('<div class="'+s+'__list">').appendTo(t.$grid)),i.each(e.group,function(t,e){(o=e.thumb)||"image"!==e.type||(o=e.src),a.push('<a href="javascript:;" tabindex="0" data-index="'+t+'"'+(o&&o.length?' style="background-image:url('+o+')"':'class="modula-fancybox-thumbs-missing"')+"></a>")}),t.$list[0].innerHTML=a.join(""),"x"===t.opts.axis&&t.$list.width(parseInt(t.$grid.css("padding-right"),10)+e.group.length*t.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,o,n=this,a=n.$list,i=n.$grid;n.instance.current&&(o=(e=a.children().removeClass(r).filter('[data-index="'+n.instance.current.index+'"]').addClass(r)).position(),"y"===n.opts.axis&&(o.top<0||o.top>a.height()-e.outerHeight())?a.stop().animate({scrollTop:a.scrollTop()+o.top},t):"x"===n.opts.axis&&(o.left<i.scrollLeft()||o.left>i.scrollLeft()+(i.width()-e.outerWidth()))&&a.parent().stop().animate({scrollLeft:o.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("modula-fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),i(t).on({"onInit.fb":function(t,e){var o;e&&!e.Thumbs&&(o=new n(e)).isActive&&!0===o.opts.autoStart&&o.show()},"beforeShow.fb":function(t,e,o,n){var a=e&&e.Thumbs;a&&a.isVisible&&a.focus(n?0:250)},"afterKeydown.fb":function(t,e,o,n,a){var i=e&&e.Thumbs;i&&i.isActive&&71===a&&(n.preventDefault(),i.toggle())},"beforeClose.fb":function(t,e){var o=e&&e.Thumbs;o&&o.isVisible&&!1!==o.opts.hideOnClose&&o.$grid.hide()}})}(document,jQuery),function(t,o){"use strict";o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="modula-fancybox-button modula-fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location}}}),o(t).on("click","[data-fancybox-share]",function(){var n,e,a=o.modulaFancybox.getInstance(),i=a.current||null,s="<div class='modula-fancybox-share'><h1>{{SHARE}}</h1><p>";i&&("function"===o.type(i.opts.share.url)&&(n=i.opts.share.url.apply(i,[a,i])),o.each(i.opts.modulaShare,function(t,e){var o=(i.opts.lightboxEmailMessage.length?i.opts.lightboxEmailMessage:"Here is the link to the image : %%image_link%% and this is the link to the gallery : %%gallery_link%%").replace(/\%%gallery_link%%/g,window.location.href).replace(/\%%image_link%%/g,i.src);s+=i.opts.shareBtnTpl[e].replace(/\{\{media\}\}/g,"image"===i.type?encodeURIComponent(i.src):"").replace(/\{\{modulaShareUrl\}\}/g,encodeURIComponent(n)).replace(/\{\{descr\}\}/g,a.$caption?encodeURIComponent(a.$caption.text()):"").replace(/\{\{subject\}\}/g,encodeURIComponent(i.opts.lightboxEmailSubject)).replace(/\{\{emailMessage\}\}/g,encodeURIComponent(o))}),s=(s+="</p><p><input class='modula-fancybox-share__input' type='text' value='{{url_raw}}' /></p></div>").replace(/\{\{url_raw\}\}/g,(e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},String(n).replace(/[&<>"'`=\/]/g,function(t){return e[t]}))),o.modulaFancybox.open({src:a.translate(a,s),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){a.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".modula-fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(i,s,a){"use strict";function o(){var t=i.location.hash.substr(1),e=t.split("-"),o=1<e.length&&/^\+?\d+$/.test(e[e.length-1])&&parseInt(e.pop(-1),10)||1;return{hash:t,index:o<1?1:o,gallery:e.join("-")}}function e(t){""!==t.gallery&&a("[data-fancybox='"+a.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function r(t){var e,o;return!!t&&(""!==(o=(e=t.current?t.current.opts:t.opts).hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&o)}a.escapeSelector||(a.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),a(function(){!1!==a.modulaFancybox.defaults.hash&&(a(s).on({"onInit.fb":function(t,e){!1!==e.group[e.currIndex].opts.hash&&(o(),r(e))},"beforeShow.fb":function(t,e,o,n){var a;o&&!1!==o.opts.hash&&(a=r(e))&&(e.currentHash=a+(1<e.group.length?"-"+o.opts.image_id:""),i.location.hash!=="#"+e.currentHash&&(n&&!e.origHash&&(e.origHash=i.location.hash),e.hashTimer&&clearTimeout(e.hashTimer),e.hashTimer=setTimeout(function(){"replaceState"in i.history?(i.history[n?"pushState":"replaceState"]({},s.title,i.location.pathname+i.location.search+"#"+e.currentHash),n&&(e.hasCreatedHistory=!0)):i.location.hash=e.currentHash,e.hashTimer=null},300)))},"beforeClose.fb":function(t,e,o){o&&!1!==o.opts.hash&&(clearTimeout(e.hashTimer),e.currentHash&&e.hasCreatedHistory?i.history.back():e.currentHash&&("replaceState"in i.history?i.history.replaceState({},s.title,i.location.pathname+i.location.search+(e.origHash||"")):i.location.hash=e.origHash),e.currentHash=null)}}),a(i).on("hashchange.fb",function(){var t=o(),n=null;a.each(a(".modula-fancybox-container").get().reverse(),function(t,e){var o=a(e).data("modulaFancyBox");if(o&&o.currentHash)return n=o,!1}),n?n.currentHash===t.gallery+"-"+t.index||1===t.index&&n.currentHash==t.gallery||(n.currentHash=null,n.close()):""!==t.gallery&&e(t)}),setTimeout(function(){a.modulaFancybox.getInstance()||e(o())},50))})}(window,document,jQuery),function(t,e){"use strict";var a=(new Date).getTime();e(t).on({"onInit.fb":function(t,n,e){n.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var e=n.current,o=(new Date).getTime();n.group.length<2||!1===e.opts.wheel||"auto"===e.opts.wheel&&"image"!==e.type||(t.preventDefault(),t.stopPropagation(),e.$slide.hasClass("modula-fancybox-animated")||(t=t.originalEvent||t,o-a<250||(a=o,n[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
assets/js/front/jquery-modula.js CHANGED
@@ -161,7 +161,16 @@ jQuery(window).on('elementor/frontend/init', function () {
161
  var links = $.map(self.$items, function(o) {
162
  var link = jQuery(o).find('.modula-item-link:not( .modula-simple-link )'),
163
  image = jQuery(o).find('.pic');
164
- return { 'src' : link.attr( 'href' ), 'opts': { 'caption': link.data( 'caption' ), 'alt': image.attr( 'alt' ),'image_id' : link.attr('data-image-id') } } }),
 
 
 
 
 
 
 
 
 
165
  index = self.$items.index( jQuery(this).parents( '.modula-item' ) );
166
 
167
  jQuery.modulaFancybox.open( links, self.options.lightboxOpts, index );
161
  var links = $.map(self.$items, function(o) {
162
  var link = jQuery(o).find('.modula-item-link:not( .modula-simple-link )'),
163
  image = jQuery(o).find('.pic');
164
+ return {
165
+ 'src': link.attr( 'href' ),
166
+ 'opts': {
167
+ '$thumb': image.parents( '.modula-item' ),
168
+ 'caption': link.data( 'caption' ),
169
+ 'alt': image.attr( 'alt' ),
170
+ 'image_id': link.attr( 'data-image-id' )
171
+ }
172
+ }
173
+ } ),
174
  index = self.$items.index( jQuery(this).parents( '.modula-item' ) );
175
 
176
  jQuery.modulaFancybox.open( links, self.options.lightboxOpts, index );
assets/js/front/jquery-modula.min.js CHANGED
@@ -1 +1 @@
1
- function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);var i=t.getBoundingClientRect();return i.top-jQuery(window).height()<=-100&&-400<=i.top-jQuery(window).height()||i.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")})}),function(c,r,p,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function s(t,i){this.element=t,this.$element=c(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=c.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}s.prototype.init=function(){var n=this;c(p).trigger("modula_api_before_init",[n]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),c(r).resize(function(){n.onResize(n)}),c(r).on("modula-update",function(){n.onResize(n)}),c(p).on("lazyloaded",function(t){var i,e,o=c(t.target);"modula"==o.data("source")&&(o.data("size",{width:o.width(),height:o.height()}),(i=o.parents(".modula-item")).addClass("tg-loaded"),e=n.$items.not(".jtg-hidden").index(i),n.placeImage(e),n.isIsotope&&n.$itemsCnt.modulaisotope("layout"))}),n.options.inView&&jQuery(r).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(n.$element)&&n.$element.addClass("modula-loaded-scale")}),this.setupSocial(),this.options.onComplete&&this.options.onComplete(),"fancybox"!=n.options.lightbox||n.options.initLightbox||this.initLightbox(),c(p).trigger("modula_api_after_init",[n])},s.prototype.initLightbox=function(){var o=this;o.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=c.map(o.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),e=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{caption:i.data("caption"),alt:e.attr("alt"),image_id:i.attr("data-image-id")}}}),e=o.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,o.options.lightboxOpts,e)})},s.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},s.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),d=this,l=this.options.columns,i=p.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?l=this.options.mobileColumns:i<=768&&(l=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(l-1))/l:Math.floor(t/l*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=c(i).data("width"),a=c(i).data("height");12<s&&(s=12),"1"==d.options.enableResponsive&&(e=s,o=a,1==l?a=(s=1)*o/e:((s=Math.round(l*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+d.options.gutter*(s-1),n.height=Math.round(h)*a+d.options.gutter*(a-1),c(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),c(i).css(c(i).data("size")),c(i).find(".figc").css({width:c(i).data("size").width,height:c(i).data("size").height}),r.loadImage(t)});var e={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(d.options.gutter)}};this.$itemsCnt.modulaisotope(e),this.isIsotope=!0},s.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];c(i).data("size",e),c(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),c(i).css({width:e.width,height:e.height}),c(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},s.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},s.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},s.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++){(o=this.tiles[i]).area>this.tiles[t].area&&(t=i)}var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},s.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),c(p).trigger("modula_api_reset",[this])},s.prototype.onResize=function(i){i.lastWidth!=i.$itemsCnt.width()&&(clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope("layout")},100))},s.prototype.loadImage=function(t){var i,e=this,o=e.$items.not(".jtg-hidden").eq(t).find(".pic"),n={};"0"==e.options.lazyLoad&&(void 0===o.attr("width")&&void 0===o.attr("height")?((i=new Image).onload=function(){n={width:this.width,height:this.height},o.data("size",n),e.placeImage(t)},"undefined"!=o.attr("src")?i.src=o.attr("src"):i.src=o.data("src")):(n={width:o.width(),height:o.height()},o.data("size",n),e.placeImage(t)))},s.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",r={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(r.width=o.width,r.left=0,a){case"top":r.top=0;break;case"middle":r.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":r.bottom=0}else switch(r.height=o.height,r.top=0,h){case"left":r.left=0;break;case"center":r.left=0-(o.height*s-o.width)/2;break;case"right":r.right=0}e.css(r),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},s.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&h(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&a(this.$items,this),this.options.enableEmail&&l(this.$items,this)},s.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption"),e=p.title;return 0<i.length&&(e=c.trim(i)),r.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split("#")[0])+"&text="+encodeURI(e),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption");p.title;0<e.length&&c.trim(e);i.attr("src");var o="//www.facebook.com/sharer.php?u="+location.href;return r.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},a=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption");p.title;return 0<i.length&&c.trim(i),r.open("https://api.whatsapp.com/send?text="+encodeURI(r.location.href.split("#")[0])+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},h=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption"),o=p.title;0<e.length&&(o=c.trim(e));var n,s,a,h="http://pinterest.com/pin/create/button/?url="+encodeURI(location.href)+"&description="+encodeURI(o);return 1==i.length&&(n=i.attr("src"),h+="&media="+(s=n,(a=p.createElement("img")).src=s,s=a.src,a.src=null,s)),r.open(h,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();var i="//linkedin.com/shareArticle?mini=true&url="+ +encodeURI(location.href);return r.open(i,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,s){t.find(".modula-icon-email").click(function(t){var i=encodeURI(s.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,n="mailto:?subject="+i+"&body="+encodeURI(s.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return r.open(n,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};c.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){c.data(this,"plugin_"+n)||c.data(this,"plugin_"+n,new s(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=c.data(this,"plugin_"+n);t instanceof s&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&c.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).attr("id"),i=jQuery(this).data("config");jQuery("#"+t).modulaGallery(i)})});
1
+ function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);var i=t.getBoundingClientRect();return i.top-jQuery(window).height()<=-100&&-400<=i.top-jQuery(window).height()||i.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")})}),function(c,r,u,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function s(t,i){this.element=t,this.$element=c(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=c.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}s.prototype.init=function(){var n=this;c(u).trigger("modula_api_before_init",[n]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),c(r).resize(function(){n.onResize(n)}),c(r).on("modula-update",function(){n.onResize(n)}),c(u).on("lazyloaded",function(t){var i,e,o=c(t.target);"modula"==o.data("source")&&(o.data("size",{width:o.width(),height:o.height()}),(i=o.parents(".modula-item")).addClass("tg-loaded"),e=n.$items.not(".jtg-hidden").index(i),n.placeImage(e),n.isIsotope&&n.$itemsCnt.modulaisotope("layout"))}),n.options.inView&&jQuery(r).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(n.$element)&&n.$element.addClass("modula-loaded-scale")}),this.setupSocial(),this.options.onComplete&&this.options.onComplete(),"fancybox"!=n.options.lightbox||n.options.initLightbox||this.initLightbox(),c(u).trigger("modula_api_after_init",[n])},s.prototype.initLightbox=function(){var o=this;o.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=c.map(o.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),e=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{$thumb:e.parents(".modula-item"),caption:i.data("caption"),alt:e.attr("alt"),image_id:i.attr("data-image-id")}}}),e=o.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,o.options.lightboxOpts,e)})},s.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},s.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),d=this,l=this.options.columns,i=u.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?l=this.options.mobileColumns:i<=768&&(l=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(l-1))/l:Math.floor(t/l*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=c(i).data("width"),a=c(i).data("height");12<s&&(s=12),"1"==d.options.enableResponsive&&(e=s,o=a,1==l?a=(s=1)*o/e:((s=Math.round(l*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+d.options.gutter*(s-1),n.height=Math.round(h)*a+d.options.gutter*(a-1),c(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),c(i).css(c(i).data("size")),c(i).find(".figc").css({width:c(i).data("size").width,height:c(i).data("size").height}),r.loadImage(t)});var e={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(d.options.gutter)}};this.$itemsCnt.modulaisotope(e),this.isIsotope=!0},s.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];c(i).data("size",e),c(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),c(i).css({width:e.width,height:e.height}),c(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},s.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},s.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},s.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++){(o=this.tiles[i]).area>this.tiles[t].area&&(t=i)}var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},s.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),c(u).trigger("modula_api_reset",[this])},s.prototype.onResize=function(i){i.lastWidth!=i.$itemsCnt.width()&&(clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope("layout")},100))},s.prototype.loadImage=function(t){var i,e=this,o=e.$items.not(".jtg-hidden").eq(t).find(".pic"),n={};"0"==e.options.lazyLoad&&(void 0===o.attr("width")&&void 0===o.attr("height")?((i=new Image).onload=function(){n={width:this.width,height:this.height},o.data("size",n),e.placeImage(t)},"undefined"!=o.attr("src")?i.src=o.attr("src"):i.src=o.data("src")):(n={width:o.width(),height:o.height()},o.data("size",n),e.placeImage(t)))},s.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",r={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(r.width=o.width,r.left=0,a){case"top":r.top=0;break;case"middle":r.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":r.bottom=0}else switch(r.height=o.height,r.top=0,h){case"left":r.left=0;break;case"center":r.left=0-(o.height*s-o.width)/2;break;case"right":r.right=0}e.css(r),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},s.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&h(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&a(this.$items,this),this.options.enableEmail&&l(this.$items,this)},s.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption"),e=u.title;return 0<i.length&&(e=c.trim(i)),r.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split("#")[0])+"&text="+encodeURI(e),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption");u.title;0<e.length&&c.trim(e);i.attr("src");var o="//www.facebook.com/sharer.php?u="+location.href;return r.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},a=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption");u.title;return 0<i.length&&c.trim(i),r.open("https://api.whatsapp.com/send?text="+encodeURI(r.location.href.split("#")[0])+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},h=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption"),o=u.title;0<e.length&&(o=c.trim(e));var n,s,a,h="http://pinterest.com/pin/create/button/?url="+encodeURI(location.href)+"&description="+encodeURI(o);return 1==i.length&&(n=i.attr("src"),h+="&media="+(s=n,(a=u.createElement("img")).src=s,s=a.src,a.src=null,s)),r.open(h,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();var i="//linkedin.com/shareArticle?mini=true&url="+ +encodeURI(location.href);return r.open(i,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,s){t.find(".modula-icon-email").click(function(t){var i=encodeURI(s.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,n="mailto:?subject="+i+"&body="+encodeURI(s.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return r.open(n,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};c.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){c.data(this,"plugin_"+n)||c.data(this,"plugin_"+n,new s(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=c.data(this,"plugin_"+n);t instanceof s&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&c.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).attr("id"),i=jQuery(this).data("config");jQuery("#"+t).modulaGallery(i)})});
assets/js/modula-all.js CHANGED
@@ -1,6 +1,6 @@
1
  !function(t){t.jQueryBridget=function(t,e){"use strict";var r=Array.prototype.slice,i=t.console,l=typeof i=="undefined"?function(){}:function(t){i.error(t)};function n(u,o,f){f=f||e||t.jQuery;if(!f){return}if(!o.prototype.option){o.prototype.option=function(t){if(!f.isPlainObject(t)){return}this.options=f.extend(true,this.options,t)}}f.fn[u]=function(t){if(typeof t=="string"){var e=r.call(arguments,1);return i(this,t,e)}n(this,t);return this};function i(t,r,s){var a;var h="$()."+u+'("'+r+'")';t.each(function(t,e){var i=f.data(e,u);if(!i){l(u+" not initialized. Cannot call methods, i.e. "+h);return}var n=i[r];if(!n||r.charAt(0)=="_"){l(h+" is not a valid method");return}var o=n.apply(i,s);a=a===undefined?o:a});return a!==undefined?a:t}function n(t,n){t.each(function(t,e){var i=f.data(e,u);if(i){i.option(n);i._init()}else{i=new o(e,n);f.data(e,u,i)}})}s(f)}function s(t){if(!t||t&&t.bridget){return}t.bridget=n}return s(e||t.jQuery),n}(t,t.jQuery)}(window),function(t){function e(){}var i;t.EvEmitter=((i=e.prototype).on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},i.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},i.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},i.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o];n&&n[r]&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},i.allOff=function(){delete this._events,delete this._onceEvents},e)}("undefined"!=typeof window?window:this),window.getSize=function(){"use strict";function v(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function t(){}var i=typeof console=="undefined"?t:function(t){console.error(t)},y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],_=y.length;function I(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<_;e++){var i=y[e];t[i]=0}return t}function z(t){var e=getComputedStyle(t);if(!e){i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See https://bit.ly/getsizebug1")}return e}var n=false,S;function E(){if(n){return}n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=z(t);S=Math.round(v(i.width))==200;o.isBoxSizeOuter=S;e.removeChild(t)}function o(t){E();if(typeof t=="string"){t=document.querySelector(t)}if(!t||typeof t!="object"||!t.nodeType){return}var e=z(t);if(e.display=="none"){return I()}var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var o=0;o<_;o++){var r=y[o];var s=e[r];var a=parseFloat(s);i[r]=!isNaN(a)?a:0}var h=i.paddingLeft+i.paddingRight;var u=i.paddingTop+i.paddingBottom;var f=i.marginLeft+i.marginRight;var l=i.marginTop+i.marginBottom;var d=i.borderLeftWidth+i.borderRightWidth;var c=i.borderTopWidth+i.borderBottomWidth;var m=n&&S;var p=v(e.width);if(p!==false){i.width=p+(m?0:h+d)}var g=v(e.height);if(g!==false){i.height=g+(m?0:u+c)}i.innerWidth=i.width-(h+d);i.innerHeight=i.height-(u+c);i.outerWidth=i.width+f;i.outerHeight=i.height+l;return i}return o}(),window.matchesSelector=function(){"use strict";var n=function(){var t=window.Element.prototype;if(t.matches){return"matches"}if(t.matchesSelector){return"matchesSelector"}var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var o=n+"MatchesSelector";if(t[o]){return o}}}();return function t(e,i){return e[n](i)}}(),function(t){t.fizzyUIUtils=function(u,r){var f={extend:function(t,e){for(var i in e){t[i]=e[i]}return t},modulo:function(t,e){return(t%e+e)%e}},i=Array.prototype.slice;f.makeArray=function(t){if(Array.isArray(t)){return t}if(t===null||t===undefined){return[]}var e=typeof t=="object"&&typeof t.length=="number";if(e){return i.call(t)}return[t]},f.removeFrom=function(t,e){var i=t.indexOf(e);if(i!=-1){t.splice(i,1)}},f.getParent=function(t,e){while(t.parentNode&&t!=document.body){t=t.parentNode;if(r(t,e)){return t}}},f.getQueryElement=function(t){if(typeof t=="string"){return document.querySelector(t)}return t},f.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}},f.filterFindElements=function(t,n){t=f.makeArray(t);var o=[];t.forEach(function(t){if(!(t instanceof HTMLElement)){return}if(!n){o.push(t);return}if(r(t,n)){o.push(t)}var e=t.querySelectorAll(n);for(var i=0;i<e.length;i++){o.push(e[i])}});return o},f.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e];var r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments;var i=this;this[r]=setTimeout(function(){o.apply(i,e);delete i[r]},n)}},f.docReady=function(t){var e=document.readyState;if(e=="complete"||e=="interactive"){setTimeout(t)}else{document.addEventListener("DOMContentLoaded",t)}},f.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var l=u.console;return f.htmlInit=function(a,h){f.docReady(function(){var t=f.toDashed(h),o="data-"+t,e=document.querySelectorAll("["+o+"]"),i=document.querySelectorAll(".js-"+t),n=f.makeArray(e).concat(f.makeArray(i)),r=o+"-options",s=u.jQuery;n.forEach(function(e){var t,i=e.getAttribute(o)||e.getAttribute(r);try{t=i&&JSON.parse(i)}catch(t){return void(l&&l.error("Error parsing "+o+" on "+e.className+": "+t))}var n=new a(e,t);s&&s.data(e,h,n)})})},f}(t,t.matchesSelector)}(window),function(t){t.Outlayer={},t.Outlayer.Item=function(t,e){"use strict";function o(t){for(var e in t){return false}e=null;return true}var i=document.documentElement.style,n=typeof i.transition=="string"?"transition":"WebkitTransition",r=typeof i.transform=="string"?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],a={transform:r,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function h(t,e){if(!t){return}this.element=t;this.layout=e;this.position={x:0,y:0};this._create()}var u=h.prototype=Object.create(t.prototype);function f(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}u.constructor=h,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},u.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}},u.getSize=function(){this.size=e(this.element)},u.css=function(t){var e=this.element.style;for(var i in t){var n=a[i]||i;e[n]=t[i]}},u.getPosition=function(){var t=getComputedStyle(this.element);var e=this.layout._getOption("originLeft");var i=this.layout._getOption("originTop");var n=t[e?"left":"right"];var o=t[i?"top":"bottom"];var r=parseFloat(n);var s=parseFloat(o);var a=this.layout.size;if(n.indexOf("%")!=-1){r=r/100*a.width}if(o.indexOf("%")!=-1){s=s/100*a.height}r=isNaN(r)?0:r;s=isNaN(s)?0:s;r-=e?a.paddingLeft:a.paddingRight;s-=i?a.paddingTop:a.paddingBottom;this.position.x=r;this.position.y=s},u.layoutPosition=function(){var t=this.layout.size;var e={};var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");var o=i?"paddingLeft":"paddingRight";var r=i?"left":"right";var s=i?"right":"left";var a=this.position.x+t[o];e[r]=this.getXValue(a);e[s]="";var h=n?"paddingTop":"paddingBottom";var u=n?"top":"bottom";var f=n?"bottom":"top";var l=this.position.y+t[h];e[u]=this.getYValue(l);e[f]="";this.css(e);this.emitEvent("layout",[this])},u.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},u.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},u._transitionTo=function(t,e){this.getPosition();var i=this.position.x;var n=this.position.y;var o=t==this.position.x&&e==this.position.y;this.setPosition(t,e);if(o&&!this.isTransitioning){this.layoutPosition();return}var r=t-i;var s=e-n;var a={};a.transform=this.getTranslate(r,s);this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:true})},u.getTranslate=function(t,e){var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");t=i?t:-t;e=n?e:-e;return"translate3d("+t+"px, "+e+"px, 0)"},u.goTo=function(t,e){this.setPosition(t,e);this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(t,e){this.position.x=parseFloat(t);this.position.y=parseFloat(e)},u._nonTransition=function(t){this.css(t.to);if(t.isCleaning){this._removeStyles(t.to)}for(var e in t.onTransitionEnd){t.onTransitionEnd[e].call(this)}},u.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(t);return}var e=this._transn;for(var i in t.onTransitionEnd){e.onEnd[i]=t.onTransitionEnd[i]}for(i in t.to){e.ingProperties[i]=true;if(t.isCleaning){e.clean[i]=true}}if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to);this.css(t.to);this.isTransitioning=true};var l="opacity,"+f(r);u.enableTransition=function(){if(this.isTransitioning){return}var t=this.layout.options.transitionDuration;t=typeof t=="number"?t+"ms":t;this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0});this.element.addEventListener(s,this,false)},u.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},u.onotransitionend=function(t){this.ontransitionend(t)};var d={"-webkit-transform":"transform"};u.ontransitionend=function(t){if(t.target!==this.element){return}var e=this._transn;var i=d[t.propertyName]||t.propertyName;delete e.ingProperties[i];if(o(e.ingProperties)){this.disableTransition()}if(i in e.clean){this.element.style[t.propertyName]="";delete e.clean[i]}if(i in e.onEnd){var n=e.onEnd[i];n.call(this);delete e.onEnd[i]}this.emitEvent("transitionEnd",[this])},u.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(s,this,false);this.isTransitioning=false},u._removeStyles=function(t){var e={};for(var i in t){e[i]=""}this.css(e)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return u.removeTransitionStyles=function(){this.css(c)},u.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},u.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},u.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},u.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},u.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},u.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},u.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},h}(t.EvEmitter,t.getSize)}(window),function(t){"use strict";t.Outlayer=function(t,e,r,s,n){"use strict";var a=t.console,h=t.jQuery,i=function(){},u=0,f={};function o(t,e){var i=s.getQueryElement(t);if(!i){if(a){a.error("Bad element for "+this.constructor.namespace+": "+(i||t))}return}this.element=i;if(h){this.$element=h(this.element)}this.options=s.extend({},this.constructor.defaults);this.option(e);var n=++u;this.element.outlayerGUID=n;f[n]=this;this._create();var o=this._getOption("initLayout");if(o){this.layout()}}o.namespace="outlayer",o.Item=n,o.defaults={containerStyle:{position:"relative"},initLayout:true,originLeft:true,originTop:true,resize:true,resizeContainer:true,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var l=o.prototype;function d(t){function e(){t.apply(this,arguments)}e.prototype=Object.create(t.prototype);e.prototype.constructor=e;return e}s.extend(l,e.prototype),l.option=function(t){s.extend(this.options,t)},l._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&this.options[e]!==undefined?this.options[e]:this.options[t]},o.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},l._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);s.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");if(t){this.bindResize()}},l.reloadItems=function(){this.items=this._itemize(this.element.children)},l._itemize=function(t){var e=this._filterFindItemElements(t);var i=this.constructor.Item;var n=[];for(var o=0;o<e.length;o++){var r=e[o];var s=new i(r,this);n.push(s)}return n},l._filterFindItemElements=function(t){return s.filterFindElements(t,this.options.itemSelector)},l.getItemElements=function(){return this.items.map(function(t){return t.element})},l.layout=function(){this._resetLayout();this._manageStamps();var t=this._getOption("layoutInstant");var e=t!==undefined?t:!this._isLayoutInited;this.layoutItems(this.items,e);this._isLayoutInited=true},l._init=l.layout,l._resetLayout=function(){this.getSize()},l.getSize=function(){this.size=r(this.element)},l._getMeasurement=function(t,e){var i=this.options[t];var n;if(!i){this[t]=0}else{if(typeof i=="string"){n=this.element.querySelector(i)}else if(i instanceof HTMLElement){n=i}this[t]=n?r(n)[e]:i}},l.layoutItems=function(t,e){t=this._getItemsForLayout(t);this._layoutItems(t,e);this._postLayout()},l._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},l._layoutItems=function(t,i){this._emitCompleteOnItems("layout",t);if(!t||!t.length){return}var n=[];t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t;e.isInstant=i||t.isLayoutInstant;n.push(e)},this);this._processLayoutQueue(n)},l._getItemLayoutPosition=function(){return{x:0,y:0}},l._processLayoutQueue=function(t){this.updateStagger();t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},l.updateStagger=function(){var t=this.options.stagger;if(t===null||t===undefined){this.stagger=0;return}this.stagger=m(t);return this.stagger},l._positionItem=function(t,e,i,n,o){if(n){t.goTo(e,i)}else{t.stagger(o*this.stagger);t.moveTo(e,i)}},l._postLayout=function(){this.resizeContainer()},l.resizeContainer=function(){var t=this._getOption("resizeContainer");if(!t){return}var e=this._getContainerSize();if(e){this._setContainerMeasure(e.width,true);this._setContainerMeasure(e.height,false)}},l._getContainerSize=i,l._setContainerMeasure=function(t,e){if(t===undefined){return}var i=this.size;if(i.isBorderBox){t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth}t=Math.max(t,0);this.element.style[e?"width":"height"]=t+"px"},l._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o=t.length;if(!t||!o){n();return}var r=0;function s(){r++;if(r==o){n()}}t.forEach(function(t){t.once(e,s)})},l.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n);if(h){this.$element=this.$element||h(this.element);if(e){var o=h.Event(e);o.type=t;this.$element.trigger(o,i)}else{this.$element.trigger(t,i)}}},l.ignore=function(t){var e=this.getItem(t);if(e){e.isIgnored=true}},l.unignore=function(t){var e=this.getItem(t);if(e){delete e.isIgnored}},l.stamp=function(t){t=this._find(t);if(!t){return}this.stamps=this.stamps.concat(t);t.forEach(this.ignore,this)},l.unstamp=function(t){t=this._find(t);if(!t){return}t.forEach(function(t){s.removeFrom(this.stamps,t);this.unignore(t)},this)},l._find=function(t){if(!t){return}if(typeof t=="string"){t=this.element.querySelectorAll(t)}t=s.makeArray(t);return t},l._manageStamps=function(){if(!this.stamps||!this.stamps.length){return}this._getBoundingRect();this.stamps.forEach(this._manageStamp,this)},l._getBoundingRect=function(){var t=this.element.getBoundingClientRect();var e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},l._manageStamp=i,l._getElementOffset=function(t){var e=t.getBoundingClientRect();var i=this._boundingRect;var n=r(t);var o={left:e.left-i.left-n.marginLeft,top:e.top-i.top-n.marginTop,right:i.right-e.right-n.marginRight,bottom:i.bottom-e.bottom-n.marginBottom};return o},l.handleEvent=s.handleEvent,l.bindResize=function(){t.addEventListener("resize",this);this.isResizeBound=true},l.unbindResize=function(){t.removeEventListener("resize",this);this.isResizeBound=false},l.onresize=function(){this.resize()},s.debounceMethod(o,"onresize",100),l.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return}this.layout()},l.needsResizeLayout=function(){var t=r(this.element);var e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},l.addItems=function(t){var e=this._itemize(t);if(e.length){this.items=this.items.concat(e)}return e},l.appended=function(t){var e=this.addItems(t);if(!e.length){return}this.layoutItems(e,true);this.reveal(e)},l.prepended=function(t){var e=this._itemize(t);if(!e.length){return}var i=this.items.slice(0);this.items=e.concat(i);this._resetLayout();this._manageStamps();this.layoutItems(e,true);this.reveal(e);this.layoutItems(i)},l.reveal=function(t){this._emitCompleteOnItems("reveal",t);if(!t||!t.length){return}var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i);t.reveal()})},l.hide=function(t){this._emitCompleteOnItems("hide",t);if(!t||!t.length){return}var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i);t.hide()})},l.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},l.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},l.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t){return i}}},l.getItems=function(t){t=s.makeArray(t);var i=[];t.forEach(function(t){var e=this.getItem(t);if(e){i.push(e)}},this);return i},l.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e);if(!e||!e.length){return}e.forEach(function(t){t.remove();s.removeFrom(this.items,t)},this)},l.destroy=function(){var t=this.element.style;t.height="";t.position="";t.width="";this.items.forEach(function(t){t.destroy()});this.unbindResize();var e=this.element.outlayerGUID;delete f[e];delete this.element.outlayerGUID;if(h){h.removeData(this.element,this.constructor.namespace)}},o.data=function(t){t=s.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},o.create=function(t,e){var i=d(o);i.defaults=s.extend({},o.defaults);s.extend(i.defaults,e);i.compatOptions=s.extend({},o.compatOptions);i.namespace=t;i.data=o.data;i.Item=d(n);s.htmlInit(i,t);if(h&&h.bridget){h.bridget(t,i)}return i};var c={ms:1,s:1e3};function m(t){if(typeof t=="number"){return t}var e=t.match(/(^\d*\.?\d*)(\w*)/);var i=e&&e[1];var n=e&&e[2];if(!i.length){return 0}i=parseFloat(i);var o=c[n]||1;return i*o}return o.Item=n,o}(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window),function(t){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.Item=function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++;n.call(this);this.sortData={}},i.updateSortData=function(){if(this.isIgnored){return}this.sortData.id=this.id;this.sortData["original-order"]=this.id;this.sortData.random=Math.random();var t=this.layout.options.getSortData;var e=this.layout._sorters;for(var i in t){var n=e[i];this.sortData[i]=n(this.element,this)}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e}(t.Outlayer)}(window),function(t){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.LayoutMode=function(e,i){"use strict";function n(t){this.isotope=t;if(t){this.options=t.options[this.namespace];this.element=t.element;this.items=t.filteredItems;this.size=t.size}}var o=n.prototype,t=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i,n=t+e,o="outer"+e;this._getMeasurement(n,o),this[n]||(i=this.getFirstItemSize(),this[n]=i&&i[o]||this.isotope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n}(t.getSize,t.Outlayer)}(window),function(t){t.Masonry=function(t,u){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";var i=e.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){var t,e;this.getContainerWidth(),this.columnWidth||(e=(t=this.items[0])&&t.element,this.columnWidth=e&&u(e).outerWidth||this.containerWidth);var i=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,o=n/i,r=i-n%i,o=Math[r&&r<1?"round":"floor"](o);this.cols=Math.max(o,1)},i.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,e=u(t);this.containerWidth=e&&e.innerWidth},i._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),i=Math.min(i,this.cols),n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),o={x:this.columnWidth*n.col,y:n.y},r=n.y+t.size.outerHeight,s=i+n.col,a=n.col;a<s;a++)this.colYs[a]=r;return o},i._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},i._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},i._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},i._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},i._manageStamp=function(t){var e=u(t),i=this._getElementOffset(t),n=this._getOption("originLeft")?i.left:i.right,o=n+e.outerWidth,r=Math.floor(n/this.columnWidth),r=Math.max(0,r),s=Math.floor(o/this.columnWidth);s-=o%this.columnWidth?0:1,s=Math.min(this.cols-1,s);for(var a=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,h=r;h<=s;h++)this.colYs[h]=Math.max(a,this.colYs[h])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e}(t.Outlayer,t.getSize)}(window),function(t){!function(t,e){"use strict";var i=t.create("masonry"),n=i.prototype,o={_getElementOffset:true,layout:true,_getMeasurement:true};for(var r in e.prototype){if(!o[r]){n[r]=e.prototype[r]}}var s=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems;s.call(this)};var a=n._getOption;n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)}}(t.ModulaIsotope.LayoutMode,t.Masonry)}(window),function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}}}(window.ModulaIsotope.LayoutMode),function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}}}(window.ModulaIsotope.LayoutMode),function(t){t.ModulaIsotope=function(t,n,i,r,e,o){var s=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=n.create("modulaisotope",{layoutMode:"masonry",isJQueryFiltering:true,sortAscending:true});u.Item=e,u.LayoutMode=o;var a=u.prototype;a._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();n.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=["original-order"];for(var t in o.modes){this._initLayoutMode(t)}},a.reloadItems=function(){this.itemGUID=0;n.prototype.reloadItems.call(this)},a._itemize=function(){var t=n.prototype._itemize.apply(this,arguments);for(var e=0;e<t.length;e++){var i=t[e];i.id=this.itemGUID++}this._updateItemsSortData(t);return t},a._initLayoutMode=function(t){var e=o.modes[t];var i=this.options[t]||{};this.options[t]=e.options?r.extend(e.options,i):i;this.modes[t]=new e(this)},a.layout=function(){if(!this._isLayoutInited&&this._getOption("initLayout")){this.arrange();return}this._layout()},a._layout=function(){var t=this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,t);this._isLayoutInited=true},a.arrange=function(t){this.option(t);this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches;this._bindArrangeComplete();if(this._isInstant){this._noTransition(this._hideReveal,[e])}else{this._hideReveal(e)}this._sort();this._layout()},a._init=a.arrange,a._hideReveal=function(t){this.reveal(t.needReveal);this.hide(t.needHide)},a._getIsInstant=function(){var t=this._getOption("layoutInstant");var e=t!==undefined?t:!this._isLayoutInited;this._isInstant=e;return e},a._bindArrangeComplete=function(){var t,e,i;var n=this;function o(){if(t&&e&&i){n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}}this.once("layoutComplete",function(){t=true;o()});this.once("hideComplete",function(){e=true;o()});this.once("revealComplete",function(){i=true;o()})},a._filter=function(t){var e=this.options.filter;e=e||"*";var i=[];var n=[];var o=[];var r=this._getFilterTest(e);for(var s=0;s<t.length;s++){var a=t[s];if(a.isIgnored){continue}var h=r(a);if(h){i.push(a)}if(h&&a.isHidden){n.push(a)}else if(!h&&!a.isHidden){o.push(a)}}return{matches:i,needReveal:n,needHide:o}},a._getFilterTest=function(e){if(s&&this.options.isJQueryFiltering){return function(t){return s(t.element).is(e)}}if(typeof e=="function"){return function(t){return e(t.element)}}return function(t){return i(t.element,e)}},a.updateSortData=function(t){var e;if(t){t=r.makeArray(t);e=this.getItems(t)}else{e=this.items}this._getSorters();this._updateItemsSortData(e)},a._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},a._updateItemsSortData=function(t){var e=t&&t.length;for(var i=0;e&&i<e;i++){var n=t[i];n.updateSortData()}};var f=function(){function t(t){if(typeof t!="string"){return t}var e=h(t).split(" ");var i=e[0];var n=i.match(/^\[(.+)\]$/);var o=n&&n[1];var r=a(o,i);var s=u.sortDataParsers[e[1]];t=s?function(t){return t&&s(r(t))}:function(t){return t&&r(t)};return t}function a(i,n){if(i){return function t(e){return e.getAttribute(i)}}return function t(e){var i=e.querySelector(n);return i&&i.textContent}}return t}();function l(u,f){return function t(e,i){for(var n=0;n<u.length;n++){var o=u[n];var r=e.sortData[o];var s=i.sortData[o];if(r>s||r<s){var a=f[o]!==undefined?f[o]:f;var h=a?1:-1;return(r>s?1:-1)*h}}return 0}}u.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},a._sort=function(){if(!this.options.sortBy){return}var t=r.makeArray(this.options.sortBy);if(!this._getIsSameSortBy(t)){this.sortHistory=t.concat(this.sortHistory)}var e=l(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)},a._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++){if(t[e]!=this.sortHistory[e]){return false}}return true},a._mode=function(){var t=this.options.layoutMode;var e=this.modes[t];if(!e){throw new Error("No layout mode: "+t)}e.options=this.options[t];return e},a._resetLayout=function(){n.prototype._resetLayout.call(this);this._mode()._resetLayout()},a._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},a._manageStamp=function(t){this._mode()._manageStamp(t)},a._getContainerSize=function(){return this._mode()._getContainerSize()},a.needsResizeLayout=function(){return this._mode().needsResizeLayout()},a.appended=function(t){var e=this.addItems(t);if(!e.length){return}var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)},a.prepended=function(t){var e=this._itemize(t);if(!e.length){return}this._resetLayout();this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems);this.filteredItems=i.concat(this.filteredItems);this.items=e.concat(this.items)},a._filterRevealAdded=function(t){var e=this._filter(t);this.hide(e.needHide);this.reveal(e.matches);this.layoutItems(e.matches,true);return e.matches},a.insert=function(t){var e=this.addItems(t);if(!e.length){return}var i,n;var o=e.length;for(i=0;i<o;i++){n=e[i];this.element.appendChild(n.element)}var r=this._filter(e).matches;for(i=0;i<o;i++){e[i].isLayoutInstant=true}this.arrange();for(i=0;i<o;i++){delete e[i].isLayoutInstant}this.reveal(r)};var d=a.remove;return a.remove=function(t){t=r.makeArray(t);var e=this.getItems(t);d.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var o=e[n];r.removeFrom(this.filteredItems,o)}},a.shuffle=function(){for(var t=0;t<this.items.length;t++){this.items[t].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},a._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=t.apply(this,e);return this.options.transitionDuration=i,n},a.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},u}(t,t.Outlayer,(t.getSize,t.matchesSelector),t.fizzyUIUtils,t.ModulaIsotope.Item,t.ModulaIsotope.LayoutMode)}(window);
2
  !function(t){t.Packery=t.Packery||{},t.Packery.Rect=function(){function a(t){for(var i in a.defaults){this[i]=a.defaults[i]}for(i in t){this[i]=t[i]}}a.defaults={x:0,y:0,width:0,height:0};var t=a.prototype;return t.contains=function(t){var i=t.width||0,e=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+i&&this.y+this.height>=t.y+e},t.overlaps=function(t){var i=this.x+this.width,e=this.y+this.height,s=t.x+t.width,r=t.y+t.height;return this.x<s&&i>t.x&&this.y<r&&e>t.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var i,e=[],s=this.x+this.width,r=this.y+this.height,h=t.x+t.width,n=t.y+t.height;return this.y<t.y&&(i=new a({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),e.push(i)),h<s&&(i=new a({x:h,y:this.y,width:s-h,height:this.height}),e.push(i)),n<r&&(i=new a({x:this.x,y:n,width:this.width,height:r-n}),e.push(i)),this.x<t.x&&(i=new a({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),e.push(i)),e},t.canFit=function(t){return this.width>=t.width&&this.height>=t.height},a}()}(window),function(t){var i=t.Packery=t.Packery||{};i.Packer=function(i){function t(t,i,e){this.width=t||0;this.height=i||0;this.sortDirection=e||"downwardLeftToRight";this.reset()}var e=t.prototype;e.reset=function(){this.spaces=[];var t=new i({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t);this.sorter=s[this.sortDirection]||s.downwardLeftToRight},e.pack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.canFit(t)){this.placeInSpace(t,e);break}}},e.columnPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];var s=e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.height>=t.height-.01;if(s){t.y=e.y;this.placed(t);break}}},e.rowPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];var s=e.y<=t.y&&e.y+e.height>=t.y+t.height&&e.width>=t.width-.01;if(s){t.x=e.x;this.placed(t);break}}},e.placeInSpace=function(t,i){t.x=i.x;t.y=i.y;this.placed(t)},e.placed=function(t){var i=[];for(var e=0;e<this.spaces.length;e++){var s=this.spaces[e];var r=s.getMaximalFreeRects(t);if(r){i.push.apply(i,r)}else{i.push(s)}}this.spaces=i;this.mergeSortSpaces()},e.mergeSortSpaces=function(){t.mergeRects(this.spaces);this.spaces.sort(this.sorter)},e.addSpace=function(t){this.spaces.push(t);this.mergeSortSpaces()},t.mergeRects=function(t){var i=0;var e=t[i];t:while(e){var s=0;var r=t[i+s];while(r){if(r==e){s++}else if(r.contains(e)){t.splice(i,1);e=t[i];continue t}else if(e.contains(r)){t.splice(i+s,1)}else{s++}r=t[i+s]}i++;e=t[i]}return t};var s={downwardLeftToRight:function(t,i){return t.y-i.y||t.x-i.x},rightwardTopToBottom:function(t,i){return t.x-i.x||t.y-i.y}};return t}(i.Rect)}(window),function(t){t.Packery.Item=function(i,t){var e,s=typeof document.documentElement.style.transform=="string"?"transform":"WebkitTransform",r=function t(){i.Item.apply(this,arguments)},h=r.prototype=Object.create(i.Item.prototype),n=h._create;h._create=function(){n.call(this);this.rect=new t};var a=h.moveTo;return h.moveTo=function(t,i){var e=Math.abs(this.position.x-t),s=Math.abs(this.position.y-i);this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&e<1&&s<1?this.goTo(t,i):a.apply(this,arguments)},h.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&s&&(this.element.style[s]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},h.disablePlacing=function(){this.isPlacing=!1},h.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},h.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||((t=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},h.positionDropPlaceholder=function(){this.dropPlaceholder.style[s]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},h.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},r}(t.Outlayer,t.Packery.Rect)}(window),function(t){t.Packery=function(u,t,f,i,e){f.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var s=t.create("packery");s.Item=e;var r=s.prototype;function h(t,i){return t.position.y-i.position.y||t.position.x-i.position.x}function n(t,i){return t.position.x-i.position.x||t.position.y-i.position.y}function a(t,i){var e=i.x-t.x;var s=i.y-t.y;return Math.sqrt(e*e+s*s)}r._create=function(){t.prototype._create.call(this);this.packer=new i;this.shiftPacker=new i;this.isEnabled=true;this.dragItemCount=0;var s=this;this.handleDraggabilly={dragStart:function(){s.itemDragStart(this.element)},dragMove:function(){s.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){s.itemDragEnd(this.element)}};this.handleUIDraggable={start:function t(i,e){if(!e){return}s.itemDragStart(i.currentTarget)},drag:function t(i,e){if(!e){return}s.itemDragMove(i.currentTarget,e.position.left,e.position.top)},stop:function t(i,e){if(!e){return}s.itemDragEnd(i.currentTarget)}}},r._resetLayout=function(){this.getSize();this._getMeasurements();var t,i,e;if(this._getOption("horizontal")){t=Infinity;i=this.size.innerHeight+this.gutter;e="rightwardTopToBottom"}else{t=this.size.innerWidth+this.gutter;i=Infinity;e="downwardLeftToRight"}this.packer.width=this.shiftPacker.width=t;this.packer.height=this.shiftPacker.height=i;this.packer.sortDirection=this.shiftPacker.sortDirection=e;this.packer.reset();this.maxY=0;this.maxX=0},r._getMeasurements=function(){this._getMeasurement("columnWidth","width");this._getMeasurement("rowHeight","height");this._getMeasurement("gutter","width")},r._getItemLayoutPosition=function(t){this._setRectSize(t.element,t.rect);if(this.isShifting||this.dragItemCount>0){var i=this._getPackMethod();this.packer[i](t.rect)}else{this.packer.pack(t.rect)}this._setMaxXY(t.rect);return t.rect},r.shiftLayout=function(){this.isShifting=true;this.layout();delete this.isShifting},r._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},r._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX);this.maxY=Math.max(t.y+t.height,this.maxY)},r._setRectSize=function(t,i){var e=u(t);var s=e.outerWidth;var r=e.outerHeight;if(s||r){s=this._applyGridGutter(s,this.columnWidth);r=this._applyGridGutter(r,this.rowHeight)}i.width=Math.min(s,this.packer.width);i.height=Math.min(r,this.packer.height)},r._applyGridGutter=function(t,i){if(!i){return t+this.gutter}i+=this.gutter;var e=t%i;var s=e&&e<1?"round":"ceil";t=Math[s](t/i)*i;return t},r._getContainerSize=function(){if(this._getOption("horizontal")){return{width:this.maxX-this.gutter}}else{return{height:this.maxY-this.gutter}}},r._manageStamp=function(t){var i=this.getItem(t);var e;if(i&&i.isPlacing){e=i.rect}else{var s=this._getElementOffset(t);e=new f({x:this._getOption("originLeft")?s.left:s.right,y:this._getOption("originTop")?s.top:s.bottom})}this._setRectSize(t,e);this.packer.placed(e);this._setMaxXY(e)},r.sortItemsByPosition=function(){var t=this._getOption("horizontal")?n:h;this.items.sort(t)},r.fit=function(t,i,e){var s=this.getItem(t);if(!s){return}this.stamp(s.element);s.enablePlacing();this.updateShiftTargets(s);i=i===undefined?s.rect.x:i;e=e===undefined?s.rect.y:e;this.shift(s,i,e);this._bindFitEvents(s);s.moveTo(s.rect.x,s.rect.y);this.shiftLayout();this.unstamp(s.element);this.sortItemsByPosition();s.disablePlacing()},r._bindFitEvents=function(t){var i=this;var e=0;function s(){e++;if(e!=2){return}i.dispatchEvent("fitComplete",null,[t])}t.once("layout",s);this.once("layoutComplete",s)},r.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return}if(this.options.shiftPercentResize){this.resizeShiftPercentLayout()}else{this.layout()}},r.needsResizeLayout=function(){var t=u(this.element);var i=this._getOption("horizontal")?"innerHeight":"innerWidth";return t[i]!=this.size[i]},r.resizeShiftPercentLayout=function(){var t=this._getItemsForLayout(this.items);var i=this._getOption("horizontal");var e=i?"y":"x";var s=i?"height":"width";var r=i?"rowHeight":"columnWidth";var h=i?"innerHeight":"innerWidth";var n=this[r];n=n&&n+this.gutter;if(n){this._getMeasurements();var a=this[r]+this.gutter;t.forEach(function(t){var i=Math.round(t.rect[e]/n);t.rect[e]=i*a})}else{var o=u(this.element)[h]+this.gutter;var c=this.packer[s];t.forEach(function(t){t.rect[e]=t.rect[e]/c*o})}this.shiftLayout()},r.itemDragStart=function(t){if(!this.isEnabled){return}this.stamp(t);var i=this.getItem(t);if(!i){return}i.enablePlacing();i.showDropPlaceholder();this.dragItemCount++;this.updateShiftTargets(i)},r.updateShiftTargets=function(t){this.shiftPacker.reset();this._getBoundingRect();var r=this._getOption("originLeft");var h=this._getOption("originTop");this.stamps.forEach(function(t){var i=this.getItem(t);if(i&&i.isPlacing){return}var e=this._getElementOffset(t);var s=new f({x:r?e.left:e.right,y:h?e.top:e.bottom});this._setRectSize(t,s);this.shiftPacker.placed(s)},this);var o=this._getOption("horizontal");var i=o?"rowHeight":"columnWidth";var c=o?"height":"width";this.shiftTargetKeys=[];this.shiftTargets=[];var u;var g=this[i];g=g&&g+this.gutter;if(g){var e=Math.ceil(t.rect[c]/g);var s=Math.floor((this.shiftPacker[c]+this.gutter)/g);u=(s-e)*g;for(var n=0;n<s;n++){this._addShiftTarget(n*g,0,u)}}else{u=this.shiftPacker[c]+this.gutter-t.rect[c];this._addShiftTarget(0,0,u)}var a=this._getItemsForLayout(this.items);var l=this._getPackMethod();a.forEach(function(t){var i=t.rect;this._setRectSize(t.element,i);this.shiftPacker[l](i);this._addShiftTarget(i.x,i.y,u);var e=o?i.x+i.width:i.x;var s=o?i.y:i.y+i.height;this._addShiftTarget(e,s,u);if(g){var r=Math.round(i[c]/g);for(var h=1;h<r;h++){var n=o?e:i.x+g*h;var a=o?i.y+g*h:s;this._addShiftTarget(n,a,u)}}},this)},r._addShiftTarget=function(t,i,e){var s=this._getOption("horizontal")?i:t;if(s!==0&&s>e){return}var r=t+","+i;var h=this.shiftTargetKeys.indexOf(r)!=-1;if(h){return}this.shiftTargetKeys.push(r);this.shiftTargets.push({x:t,y:i})},r.shift=function(t,i,e){var s;var r=Infinity;var h={x:i,y:e};this.shiftTargets.forEach(function(t){var i=a(t,h);if(i<r){s=t;r=i}});t.rect.x=s.x;t.rect.y=s.y};var o=120;r.itemDragMove=function(t,i,e){var s=this.isEnabled&&this.getItem(t);if(!s){return}i-=this.size.paddingLeft;e-=this.size.paddingTop;var r=this;function h(){r.shift(s,i,e);s.positionDropPlaceholder();r.layout()}var n=new Date;if(this._itemDragTime&&n-this._itemDragTime<o){clearTimeout(this.dragTimeout);this.dragTimeout=setTimeout(h,o)}else{h();this._itemDragTime=n}},r.itemDragEnd=function(t){var i=this.isEnabled&&this.getItem(t);if(!i){return}clearTimeout(this.dragTimeout);i.element.classList.add("is-positioning-post-drag");var e=0;var s=this;function r(){e++;if(e!=2){return}i.element.classList.remove("is-positioning-post-drag");i.hideDropPlaceholder();s.dispatchEvent("dragItemPositioned",null,[i])}i.once("layout",r);this.once("layoutComplete",r);i.moveTo(i.rect.x,i.rect.y);this.layout();this.dragItemCount=Math.max(0,this.dragItemCount-1);this.sortItemsByPosition();i.disablePlacing();this.unstamp(i.element)},r.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},r.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},r._bindDraggabillyEvents=function(t,i){var e=this.handleDraggabilly;t[i]("dragStart",e.dragStart);t[i]("dragMove",e.dragMove);t[i]("dragEnd",e.dragEnd)},r.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},r.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},r._bindUIDraggableEvents=function(t,i){var e=this.handleUIDraggable;t[i]("dragstart",e.start)[i]("drag",e.drag)[i]("dragstop",e.stop)};var c=r.destroy;return r.destroy=function(){c.apply(this,arguments),this.isEnabled=!1},s.Rect=f,s.Packer=i,s}(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window),function(t){!function(t,i){var e=t.create("packery"),s=e.prototype,r={_getElementOffset:true,_getMeasurement:true};for(var h in i.prototype){if(!r[h]){s[h]=i.prototype[h]}}var n=s._resetLayout;s._resetLayout=function(){this.packer=this.packer||new i.Packer;this.shiftPacker=this.shiftPacker||new i.Packer;n.apply(this,arguments)};var a=s._getItemLayoutPosition;s._getItemLayoutPosition=function(t){t.rect=t.rect||new i.Rect;return a.call(this,t)};var o=s.needsResizeLayout;s.needsResizeLayout=function(){if(this._getOption("horizontal")){return this.needsVerticalResizeLayout()}else{return o.call(this)}};var c=s._getOption;s._getOption=function(t){return"horizontal"==t?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:c.apply(this.isotope,arguments)}}(t.ModulaIsotope.LayoutMode,t.Packery)}(window);
3
  !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(l){function r(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:l('<div class="spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}r.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},r.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},r.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},r.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)){if(0===this.settings.sizeRangeSuffixes[i].length)continue;if(this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i]}return""},r.prototype.newSrc=function(t,i,e,s){var n,r,o;return this.settings.thumbnailPath?o=this.settings.thumbnailPath(t,i,e,s):(r=null!==(n=t.match(this.settings.extension))?n[0]:"",o=t.replace(this.settings.extension,""),o=this.removeSuffix(o,this.getUsedSuffix(o)),o+=this.getSuffix(i,e)+r),o},r.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},r.prototype.extractImgSrcFromImage=function(t){var i=void 0!==t.data("safe-src")?t.data("safe-src"):t.attr("src");return t.data("jg.originalSrc",i),i},r.prototype.imgFromEntry=function(t){var i=t.find(this.settings.imgSelector);return 0===i.length?null:i},r.prototype.captionFromEntry=function(t){var i=t.find("> .caption");return 0===i.length?null:i},r.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h,g=this.imgFromEntry(t);null!==g?(g.css("width",s),g.css("height",n),g.css("margin-left",-s/2),g.css("margin-top",-n/2),o=g.attr("src"),a=this.newSrc(o,s,n,g[0]),g.one("error",function(){g.attr("src",g.data("jg.originalSrc"))}),h=function(){o!==a&&g.attr("src",a)},"skipped"===t.data("jg.loaded")?this.onImageEvent(o,l.proxy(function(){this.showImg(t,h),t.data("jg.loaded",!0)},this)):this.showImg(t,h)):this.showImg(t),this.displayEntryCaption(t)},r.prototype.displayEntryCaption=function(t){var i,e,s=this.imgFromEntry(t);null!==s&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=s.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=l('<div class="caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},r.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},r.prototype.onEntryMouseEnterForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.addClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},r.prototype.onEntryMouseLeaveForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.removeClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},r.prototype.addCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0===i&&(i={mouseenter:l.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:l.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},r.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},r.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},r.prototype.prepareBuildingRow=function(t){var i,e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(t&&"hide"===this.settings.lastRow&&!u){for(i=0;i<this.buildingRow.entriesBuff.length;i++)e=this.buildingRow.entriesBuff[i],this.settings.cssAnimation?e.removeClass("entry-visible"):(e.stop().fadeTo(0,.1),e.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),i=0;i<this.buildingRow.entriesBuff.length;i++)s=(e=this.buildingRow.entriesBuff[i]).data("jg.width")/e.data("jg.height"),r=o?(n=i===this.buildingRow.entriesBuff.length-1?h:g*s,g):(n=l*s,l),h-=Math.round(n),e.data("jg.jwidth",Math.round(n)),e.data("jg.jheight",Math.ceil(r)),(0===i||r<a)&&(a=r);return this.buildingRow.height=a,o},r.prototype.flushRow=function(t){var i,e=this.settings,s=this.border,n=this.prepareBuildingRow(t);if(t&&"hide"===e.lastRow&&-1===n)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===e.lastRow||"right"===e.lastRow)){for(var r=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*e.margins,o=0;o<this.buildingRow.entriesBuff.length;o++)r-=(i=this.buildingRow.entriesBuff[o]).data("jg.jwidth");"center"===e.lastRow?s+=r/2:"right"===e.lastRow&&(s+=r)}var a=this.buildingRow.entriesBuff.length-1;for(o=0;o<=a;o++)i=this.buildingRow.entriesBuff[this.settings.rtl?a-o:o],this.displayEntry(i,s,this.offY,i.data("jg.jwidth"),i.data("jg.jheight"),this.buildingRow.height),s+=i.data("jg.jwidth")+e.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=e.rowHeight&&n)&&(this.offY+=this.buildingRow.height+e.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;function e(){return l("body").height()>l(window).height()}r.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},r.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},r.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},r.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(l.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),e()===this.scrollBarOn?Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)):(this.scrollBarOn=e(),this.galleryWidth=t))},this),this.settings.refreshTime)},r.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},r.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},r.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},r.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},r.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},r.prototype.updateEntries=function(t){var i=t&&null!=this.lastFetchedEntry?l(this.lastFetchedEntry).nextAll(this.settings.selector).toArray():(this.entries=[],this.$gallery.children(this.settings.selector).toArray());return 0<i.length&&(l.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},r.prototype.insertToGallery=function(t){var i=this;l.each(t,function(){l(this).appendTo(i.$gallery)})},r.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},r.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},r.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)l(t[i]).removeClass("jg-filtered")},r.prototype.filterArray=function(t){var e=this.settings;if("string"===l.type(e.filter))return t.filter(function(t){var i=l(t);return i.is(e.filter)?(i.removeClass("jg-filtered"),!0):(i.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(l.isFunction(e.filter)){for(var i=t.filter(e.filter),s=0;s<t.length;s++)-1===i.indexOf(t[s])?l(t[s]).addClass("jg-filtered").removeClass("jg-visible"):l(t[s]).removeClass("jg-filtered");return i}},r.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),l.each(this.entries,l.proxy(function(t,i){var e=l(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry");var s=this.imgFromEntry(e);s.css("width",""),s.css("height",""),s.css("margin-left",""),s.css("margin-top",""),s.attr("src",s.data("jg.originalSrc")),s.data("jg.originalSrc",void 0),this.removeCaptionEventsHandlers(e);var n=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==n&&n.remove()):null!==n&&n.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0)},r.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=l(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t);this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete"),this.setGalleryFinalHeight(this.galleryHeightToSet)},r.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},r.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},r.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=l(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},r.prototype.init=function(){var a=!1,h=!1,g=this;l.each(this.entries,function(t,i){var e=l(i),s=g.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==g.settings.rel&&e.attr("rel",g.settings.rel),null!==g.settings.target&&e.attr("target",g.settings.target),null!==s){var n=g.extractImgSrcFromImage(s);if(s.attr("src",n),!1===g.settings.waitThumbnailsLoad){var r=parseFloat(s.prop("width")),o=parseFloat(s.prop("height"));if(!isNaN(r)&&!isNaN(o))return e.data("jg.width",r),e.data("jg.height",o),e.data("jg.loaded","skipped"),h=!0,g.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),a=!0,g.isSpinnerActive()||g.startLoadingSpinnerAnimation(),g.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),g.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),g.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),a||h||this.startImgAnalyzer(!1),this.checkWidth()},r.prototype.checkOrConvertNumber=function(t,i){if("string"===l.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==l.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},r.prototype.checkSizeRangesSuffixes=function(){if("object"!==l.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(i);for(var e={0:""},s=0;s<t.length;s++)if("string"===l.type(t[s]))try{e[parseInt(t[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[t[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[t[s]]=this.settings.sizeRangeSuffixes[t[s]];this.settings.sizeRangeSuffixes=e},r.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===l.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==l.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<i&&(t=i),t},r.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==l.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==l.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==l.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==l.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!l.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!l.isFunction(this.settings.filter)&&"string"!==l.type(this.settings.filter))throw"filter must be false, a string or a filter function"},r.prototype.retrieveSuffixRanges=function(){var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(parseInt(i,10));return t.sort(function(t,i){return i<t?1:t<i?-1:0}),t},r.prototype.updateSettings=function(t){this.settings=l.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},r.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a, div:not(.spinner)",imgSelector:"> img, > a > img",triggerEvent:function(t){this.$gallery.trigger(t)}},l.fn.justifiedGallery=function(n){return this.each(function(t,i){var e=l(i);e.addClass("justified-gallery");var s=e.data("jg.controller");if(void 0===s){if(null!=n&&"object"!==l.type(n)){if("destroy"===n)return;throw"The argument must be an object"}s=new r(e,l.extend({},r.prototype.defaults,n)),e.data("jg.controller",s)}else if("norewind"!==n){if("destroy"===n)return void s.destroy();s.updateSettings(n),s.rewind()}s.updateEntries("norewind"===n)&&s.init()})}});
4
- !function(l,u,m,g){"use strict";var t,a,s,i,p,e,c,h,d,n,o,r,f,b;function y(t,e){var o,n,a,i=[],s=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=d(t.data.options,e)),o=e.$target||m(t.currentTarget).trigger("blur"),(a=m.modulaFancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(i=e.selector?m(e.selector):(n=o.attr("data-fancybox")||"")?(i=t.data?t.data.items:[]).length?i.filter('[data-fancybox="'+n+'"]'):m('[data-fancybox="'+n+'"]'):[o],(s=m(i).index(o))<0&&(s=0),(a=m.modulaFancybox.open(i,e,s)).$trigger=o))}l.console=l.console||{info:function(t){}},m&&(m.fn.modulaFancybox?console.info("fancyBox already initialized"):(t={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="modula-fancybox-frame{rnd}" name="modula-fancybox-frame{rnd}" class="modula-fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="modula-fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="modula-fancybox-container" role="dialog" tabindex="-1"><div class="modula-fancybox-bg"></div><div class="modula-fancybox-inner"><div class="modula-fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="modula-fancybox-toolbar">{{buttons}}</div><div class="modula-fancybox-navigation">{{arrows}}</div><div class="modula-fancybox-stage"></div><div class="modula-fancybox-caption"><div class="modula-fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="modula-fancybox-loading"></div>',errorTpl:'<div class="modula-fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="modula-fancybox-button modula-fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="modula-fancybox-button modula-fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="modula-fancybox-button modula-fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="modula-fancybox-button modula-fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="modula-fancybox-button modula-fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="modula-fancybox-button modula-fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},modulaShare:["facebook","twitter","pinterest","whatsapp","linkedin","email"],shareBtnTpl:{facebook:'<a class="modula-fancybox-share__button modula-fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{modulaShareUrl}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a>',twitter:'<a class="modula-fancybox-share__button modula-fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{modulaShareUrl}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a>',pinterest:'<a class="modula-fancybox-share__button modula-fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{modulaShareUrl}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a>',whatsapp:'<a class="modula-fancybox-share__button modula-fancybox-share__button--wa" href="https://api.whatsapp.com/send?text={{modulaShareUrl}}&review_url=true"><svg aria-hidden="true" focusable="false" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1536 1600"><path d="M985 878q13 0 97.5 44t89.5 53q2 5 2 15q0 33-17 76q-16 39-71 65.5T984 1158q-57 0-190-62q-98-45-170-118T476 793q-72-107-71-194v-8q3-91 74-158q24-22 52-22q6 0 18 1.5t19 1.5q19 0 26.5 6.5T610 448q8 20 33 88t25 75q0 21-34.5 57.5T599 715q0 7 5 15q34 73 102 137q56 53 151 101q12 7 22 7q15 0 54-48.5t52-48.5zm-203 530q127 0 243.5-50t200.5-134t134-200.5t50-243.5t-50-243.5T1226 336t-200.5-134T782 152t-243.5 50T338 336T204 536.5T154 780q0 203 120 368l-79 233l242-77q158 104 345 104zm0-1382q153 0 292.5 60T1315 247t161 240.5t60 292.5t-60 292.5t-161 240.5t-240.5 161t-292.5 60q-195 0-365-94L0 1574l136-405Q28 991 28 780q0-153 60-292.5T249 247T489.5 86T782 26z" fill="currentColor"/></svg><span>WhatsApp</span></a>',linkedin:'<a class="modula-fancybox-share__button modula-fancybox-share__button--li" href="//linkedin.com/shareArticle?mini=true&url={{modulaShareUrl}}"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg><span>LinkedIn</span></a>',email:'<a class="modula-fancybox-share__button modula-fancybox-share__button--email" href="mailto:?subject={{subject}}&body={{emailMessage}}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z" fill="currentColor"></path></svg><span>Email</span></a>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"},wheel:"auto",onInit:m.noop,beforeLoad:m.noop,afterLoad:m.noop,beforeShow:m.noop,afterShow:m.noop,beforeClose:m.noop,afterClose:m.noop,onActivate:m.noop,onDeactivate:m.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},a=m(l),s=m(u),i=0,p=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||function(t){return l.setTimeout(t,1e3/60)},e=l.cancelAnimationFrame||l.webkitCancelAnimationFrame||l.mozCancelAnimationFrame||l.oCancelAnimationFrame||function(t){l.clearTimeout(t)},c=function(){var t,e=u.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(e.style[t]!==g)return o[t];return"transitionend"}(),h=function(t){return t&&t.length&&t[0].offsetHeight},d=function(t,e){var o=m.extend(!0,{},t,e);return m.each(e,function(t,e){m.isArray(e)&&(o[t]=e)}),o},n=function(t,e,o){var n=this;n.opts=d({index:o},m.modulaFancybox.defaults),m.isPlainObject(e)&&(n.opts=d(n.opts,e)),m.modulaFancybox.isMobile&&(n.opts=d(n.opts,n.opts.mobile)),n.id=n.opts.id||++i,n.currIndex=parseInt(n.opts.index,10)||0,n.prevIndex=null,n.prevPos=null,n.currPos=0,n.firstRun=!0,n.group=[],n.slides={},n.addContent(t),n.group.length&&n.init()},m.extend(n.prototype,{init:function(){var o=this;o.currIndex<0&&(o.currIndex=0),void 0===o.group[o.currIndex]&&jQuery.each(this.group,function(t,e){o.currIndex!=parseInt(e.opts.image_id)||(o.currIndex=t)});var e,n,a=o.group[o.currIndex].opts;a.closeExisting&&m.modulaFancybox.close(!0),m("body").addClass("modula-fancybox-active"),!m.modulaFancybox.getInstance()&&!1!==a.hideScrollbar&&!m.modulaFancybox.isMobile&&u.body.scrollHeight>l.innerHeight&&(m("head").append('<style id="modula-fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(l.innerWidth-u.documentElement.clientWidth)+"px;}</style>"),m("body").addClass("compensate-for-scrollbar")),n="",m.each(a.buttons,function(t,e){n+=a.btnTpl[e]||""}),e=m(o.translate(o,a.baseTpl.replace("{{buttons}}",n).replace("{{arrows}}",a.btnTpl.arrowLeft+a.btnTpl.arrowRight))).attr("id","modula-fancybox-container-"+o.id).addClass(a.baseClass).data("modulaFancyBox",o).appendTo(a.parentEl),o.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){o.$refs[t]=e.find(".modula-fancybox-"+t)}),o.trigger("onInit"),o.activate(),o.jumpTo(o.currIndex)},translate:function(t,e){var o=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return o[e]===g?t:o[e]})},addContent:function(t){var e,c=this,o=m.makeArray(t);m.each(o,function(t,e){var o,n,a,i,s,r={},l={};m.isPlainObject(e)?l=(r=e).opts||e:"object"===m.type(e)&&m(e).length?(l=(o=m(e)).data()||{},(l=m.extend(!0,{},l,l.options)).$orig=o,r.src=c.opts.src||l.src||o.attr("href"),r.type||r.src||(r.type="inline",r.src=e)):r={type:"html",src:e+""},r.opts=m.extend(!0,{},c.opts,l),m.isArray(l.buttons)&&(r.opts.buttons=l.buttons),m.modulaFancybox.isMobile&&r.opts.mobile&&(r.opts=d(r.opts,r.opts.mobile)),n=r.type||r.opts.type,i=r.src||"",!n&&i&&((a=i.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(n="video",r.opts.video.format||(r.opts.video.format="video/"+("ogv"===a[1]?"ogg":a[1]))):i.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?n="image":i.match(/\.(pdf)((\?|#).*)?$/i)?(n="iframe",r=m.extend(!0,r,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===i.charAt(0)&&(n="inline")),n?r.type=n:c.trigger("objectNeedsType",r),r.contentType||(r.contentType=-1<m.inArray(r.type,["html","inline","ajax"])?"html":r.type),r.index=c.group.length,"auto"==r.opts.smallBtn&&(r.opts.smallBtn=-1<m.inArray(r.type,["html","inline","ajax"])),"auto"===r.opts.toolbar&&(r.opts.toolbar=!r.opts.smallBtn),r.$thumb=r.opts.$thumb||null,r.opts.$trigger&&r.index===c.opts.index&&(r.$thumb=r.opts.$trigger.find("img:first"),r.$thumb.length&&(r.opts.$orig=r.opts.$trigger)),r.$thumb&&r.$thumb.length||!r.opts.$orig||(r.$thumb=r.opts.$orig.find("img:first")),r.$thumb&&!r.$thumb.length&&(r.$thumb=null),r.thumb=r.opts.thumb||(r.$thumb?r.$thumb[0].src:null),"function"===m.type(r.opts.caption)&&(r.opts.caption=r.opts.caption.apply(e,[c,r])),"function"===m.type(c.opts.caption)&&(r.opts.caption=c.opts.caption.apply(e,[c,r])),r.opts.caption instanceof m||(r.opts.caption=r.opts.caption===g?"":r.opts.caption+""),"ajax"===r.type&&1<(s=i.split(/\s+/,2)).length&&(r.src=s.shift(),r.opts.filter=s.shift()),r.opts.modal&&(r.opts=m.extend(!0,r.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),c.group.push(r)}),Object.keys(c.slides).length&&(c.updateControls(),(e=c.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var n=this;n.removeEvents(),n.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),n.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),n.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),n.next()}).on("click.fb","[data-fancybox-zoom]",function(t){n[n.isScaledDown()?"scaleToActual":"scaleToFit"]()}),a.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(n.requestId&&e(n.requestId),n.requestId=p(function(){n.update(t)})):(n.current&&"iframe"===n.current.type&&n.$refs.stage.hide(),setTimeout(function(){n.$refs.stage.show(),n.update(t)},m.modulaFancybox.isMobile?600:250))}),s.on("keydown.fb",function(t){var e=(m.modulaFancybox?m.modulaFancybox.getInstance():null).current,o=t.keyCode||t.which;if(9!=o){if(!(!e.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||m(t.target).is("input,textarea,video,audio,select")))return 8===o||27===o?(t.preventDefault(),void n.close(t)):37===o||38===o?(t.preventDefault(),void n.previous()):39===o||40===o?(t.preventDefault(),void n.next()):void n.trigger("afterKeydown",t,o)}else e.opts.trapFocus&&n.focus(t)}),n.group[n.currIndex].opts.idleTime&&(n.idleSecondsCounter=0,s.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){n.idleSecondsCounter=0,n.isIdle&&n.showControls(),n.isIdle=!1}),n.idleInterval=l.setInterval(function(){n.idleSecondsCounter++,n.idleSecondsCounter>=n.group[n.currIndex].opts.idleTime&&!n.isDragging&&(n.isIdle=!0,n.idleSecondsCounter=0,n.hideControls())},1e3))},removeEvents:function(){a.off("orientationchange.fb resize.fb"),s.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleInterval&&(l.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,n){var e,o,a,i,s,r,l,c,d,u=this,p=u.group.length;if(!(u.isDragging||u.isClosing||u.isAnimating&&u.firstRun)){if(t=parseInt(t,10),!(a=u.current?u.current.opts.loop:u.opts.loop)&&(t<0||p<=t))return!1;if(e=u.firstRun=!Object.keys(u.slides).length,s=u.current,u.prevIndex=u.currIndex,u.prevPos=u.currPos,i=u.createSlide(t),1<p&&((a||i.index<p-1)&&u.createSlide(t+1),(a||0<i.index)&&u.createSlide(t-1)),u.current=i,u.currIndex=i.index,u.currPos=i.pos,u.trigger("beforeShow",e),u.updateControls(),i.forcedDuration=g,m.isNumeric(n)?i.forcedDuration=n:n=i.opts[e?"animationDuration":"transitionDuration"],n=parseInt(n,10),o=u.isMoved(i),i.$slide.addClass("modula-fancybox-slide--current"),e)return i.opts.animationEffect&&n&&u.$refs.container.css("transition-duration",n+"ms"),u.$refs.container.addClass("modula-fancybox-is-open").trigger("focus"),u.loadSlide(i),void u.preload("image");r=m.modulaFancybox.getTranslate(s.$slide),l=m.modulaFancybox.getTranslate(u.$refs.stage),m.each(u.slides,function(t,e){m.modulaFancybox.stop(e.$slide,!0)}),s.pos!==i.pos&&(s.isComplete=!1),s.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--current"),o?(d=r.left-(s.pos*r.width+s.pos*s.opts.gutter),m.each(u.slides,function(t,e){e.$slide.removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var o=e.pos*r.width+e.pos*e.opts.gutter;m.modulaFancybox.setTranslate(e.$slide,{top:0,left:o-l.left+d}),e.pos!==i.pos&&e.$slide.addClass("modula-fancybox-slide--"+(e.pos>i.pos?"next":"previous")),h(e.$slide),m.modulaFancybox.animate(e.$slide,{top:0,left:(e.pos-i.pos)*r.width+(e.pos-i.pos)*e.opts.gutter},n,function(){e.$slide.css({transform:"",opacity:""}).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous"),e.pos===u.currPos&&u.complete()})})):n&&i.opts.transitionEffect&&(c="modula-fancybox-animated modula-fancybox-fx-"+i.opts.transitionEffect,s.$slide.addClass("modula-fancybox-slide--"+(s.pos>i.pos?"next":"previous")),m.modulaFancybox.animate(s.$slide,c,n,function(){s.$slide.removeClass(c).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous")},!1)),i.isLoaded?u.revealContent(i):u.loadSlide(i),u.preload("image")}},createSlide:function(t){var e,o=this,n=t%o.group.length;return n=n<0?o.group.length+n:n,!o.slides[t]&&o.group[n]&&(e=m('<div class="modula-fancybox-slide"></div>').appendTo(o.$refs.stage),o.slides[t]=m.extend(!0,{},o.group[n],{pos:t,$slide:e,isLoaded:!1}),o.updateSlide(o.slides[t])),o.slides[t]},scaleToActual:function(t,e,o){var n,a,i,s,r,l=this,c=l.current,d=c.$content,u=m.modulaFancybox.getTranslate(c.$slide).width,p=m.modulaFancybox.getTranslate(c.$slide).height,h=c.width,f=c.height;l.isAnimating||l.isMoved()||!d||"image"!=c.type||!c.isLoaded||c.hasError||(l.isAnimating=!0,m.modulaFancybox.stop(d),t=t===g?.5*u:t,e=e===g?.5*p:e,(n=m.modulaFancybox.getTranslate(d)).top-=m.modulaFancybox.getTranslate(c.$slide).top,n.left-=m.modulaFancybox.getTranslate(c.$slide).left,s=h/n.width,r=f/n.height,a=.5*u-.5*h,i=.5*p-.5*f,u<h&&(0<(a=n.left*s-(t*s-t))&&(a=0),a<u-h&&(a=u-h)),p<f&&(0<(i=n.top*r-(e*r-e))&&(i=0),i<p-f&&(i=p-f)),l.updateCursor(h,f),m.modulaFancybox.animate(d,{top:i,left:a,scaleX:s,scaleY:r},o||366,function(){l.isAnimating=!1}),l.SlideShow&&l.SlideShow.isActive&&l.SlideShow.stop())},scaleToFit:function(t){var e,o=this,n=o.current,a=n.$content;o.isAnimating||o.isMoved()||!a||"image"!=n.type||!n.isLoaded||n.hasError||(o.isAnimating=!0,m.modulaFancybox.stop(a),e=o.getFitPos(n),o.updateCursor(e.width,e.height),m.modulaFancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||366,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,n,a,i=t.$content,s=t.$slide,r=t.width||t.opts.width,l=t.height||t.opts.height,c={};return!!(t.isLoaded&&i&&i.length)&&(e=m.modulaFancybox.getTranslate(this.$refs.stage).width,o=m.modulaFancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(s.css("paddingLeft"))+parseFloat(s.css("paddingRight"))+parseFloat(i.css("marginLeft"))+parseFloat(i.css("marginRight")),o-=parseFloat(s.css("paddingTop"))+parseFloat(s.css("paddingBottom"))+parseFloat(i.css("marginTop"))+parseFloat(i.css("marginBottom")),r&&l||(r=e,l=o),e-.5<(r*=n=Math.min(1,e/r,o/l))&&(r=e),o-.5<(l*=n)&&(l=o),"image"===t.type?(c.top=Math.floor(.5*(o-l))+parseFloat(s.css("paddingTop")),c.left=Math.floor(.5*(e-r))+parseFloat(s.css("paddingLeft"))):"video"===t.contentType&&(r/(a=t.opts.width&&t.opts.height?r/l:t.opts.ratio||16/9)<l?l=r/a:l*a<r&&(r=l*a)),c.width=r,c.height=l,c)},update:function(o){var n=this;m.each(n.slides,function(t,e){n.updateSlide(e,o)})},updateSlide:function(t,e){var o=this,n=t&&t.$content,a=t.width||t.opts.width,i=t.height||t.opts.height,s=t.$slide;o.adjustCaption(t),n&&(a||i||"video"===t.contentType)&&!t.hasError&&(m.modulaFancybox.stop(n),m.modulaFancybox.setTranslate(n,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),s.length&&(s.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".modula-fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",s.get(0).scrollHeight>s.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,n=o.$slide;!e.isClosing&&o&&(n.siblings().css({transform:"",opacity:""}),n.parent().children().removeClass("modula-fancybox-slide--previous modula-fancybox-slide--next"),m.modulaFancybox.animate(n,{top:0,left:0,opacity:1},t===g?0:t,function(){n.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o,n=t||this.current;return!!n&&(o=m.modulaFancybox.getTranslate(this.$refs.stage),e=m.modulaFancybox.getTranslate(n.$slide),!n.$slide.hasClass("modula-fancybox-animated")&&(.5<Math.abs(e.top-o.top)||.5<Math.abs(e.left-o.left)))},updateCursor:function(t,e){var o,n,a=this,i=a.current,s=a.$refs.container;i&&!a.isClosing&&a.Guestures&&(s.removeClass("modula-fancybox-is-zoomable modula-fancybox-can-zoomIn modula-fancybox-can-zoomOut modula-fancybox-can-swipe modula-fancybox-can-pan"),n=!!(o=a.canPan(t,e))||a.isZoomable(),s.toggleClass("modula-fancybox-is-zoomable",n),m("[data-fancybox-zoom]").prop("disabled",!n),o?s.addClass("modula-fancybox-can-pan"):n&&("zoom"===i.opts.clickContent||m.isFunction(i.opts.clickContent)&&"zoom"==i.opts.clickContent(i))?s.addClass("modula-fancybox-can-zoomIn"):i.opts.touch&&(i.opts.touch.vertical||1<a.group.length)&&"video"!==i.contentType&&s.addClass("modula-fancybox-can-swipe"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing&&"image"===e.type&&!e.hasError){if(!e.isLoaded)return!0;if((t=this.getFitPos(e))&&(e.width>t.width||e.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=!1,n=this.current,a=n.$content;return t!==g&&e!==g?o=t<n.width&&e<n.height:a&&(o=(o=m.modulaFancybox.getTranslate(a)).width<n.width&&o.height<n.height),o},canPan:function(t,e){var o=this.current,n=null,a=!1;return"image"===o.type&&(o.isComplete||t&&e)&&!o.hasError&&(a=this.getFitPos(o),t!==g&&e!==g?n={width:t,height:e}:o.isComplete&&(n=m.modulaFancybox.getTranslate(o.$content)),n&&a&&(a=1.5<Math.abs(n.width-a.width)||1.5<Math.abs(n.height-a.height))),a},loadSlide:function(o){var t,e,n,a=this;if(!o.isLoading&&!o.isLoaded){if(!(o.isLoading=!0)===a.trigger("beforeLoad",o))return o.isLoading=!1;switch(t=o.type,(e=o.$slide).off("refresh").trigger("onReset").addClass(o.opts.slideClass),t){case"image":a.setImage(o);break;case"iframe":a.setIframe(o);break;case"html":a.setContent(o,o.src||o.content);break;case"video":a.setContent(o,o.opts.video.tpl.replace(/\{\{src\}\}/gi,o.src).replace("{{format}}",o.opts.videoFormat||o.opts.video.format||"").replace("{{poster}}",o.thumb||""));break;case"inline":m(o.src).length?a.setContent(o,m(o.src)):a.setError(o);break;case"ajax":a.showLoading(o),n=m.ajax(m.extend({},o.opts.ajax.settings,{url:o.src,success:function(t,e){"success"===e&&a.setContent(o,t)},error:function(t,e){t&&"abort"!==e&&a.setError(o)}})),e.one("onReset",function(){n.abort()});break;default:a.setError(o)}return!0}},setImage:function(e){var t,o=this;setTimeout(function(){var t=e.$image;o.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||o.showLoading(e)},50),o.checkSrcset(e),e.$content=m('<div class="modula-fancybox-content"></div>').addClass("modula-fancybox-is-hidden").appendTo(e.$slide.addClass("modula-fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(t=u.createElement("img")).onerror=function(){m(this).remove(),e.$ghost=null},t.onload=function(){o.afterLoad(e)},e.$ghost=m(t).addClass("modula-fancybox-image").appendTo(e.$content).attr("src",e.thumb),"undifined"!=typeof e.src&&e.$ghost.attr("alt",e.alt)),o.setBigImage(e)},checkSrcset:function(t){var e,o,n,a,i=t.opts.srcset||t.opts.image.srcset;if(i){n=l.devicePixelRatio||1,a=l.innerWidth*n,(o=i.split(",").map(function(t){var n={};return t.trim().split(/\s+/).forEach(function(t,e){var o=parseInt(t.substring(0,t.length-1),10);if(0===e)return n.url=t;o&&(n.value=o,n.postfix=t[t.length-1])}),n})).sort(function(t,e){return t.value-e.value});for(var s=0;s<o.length;s++){var r=o[s];if("w"===r.postfix&&r.value>=a||"x"===r.postfix&&r.value>=n){e=r;break}}!e&&o.length&&(e=o[o.length-1]),e&&(t.src=e.url,t.width&&t.height&&"w"==e.postfix&&(t.height=t.width/t.height*e.value,t.width=e.value),t.opts.srcset=i)}},setBigImage:function(e){var o=this,t=u.createElement("img"),n=m(t);e.$image=n.one("error",function(){o.setError(e)}).one("load",function(){var t;e.$ghost||(o.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),o.afterLoad(e)),o.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(1<e.width/e.height&&1<a.width()/a.height()?"100":Math.round(e.width/e.height*100))+"vw"),n.attr("sizes",t).attr("srcset",e.opts.srcset)),e.opts.alt&&n.attr("alt",e.opts.alt),e.opts.image_id&&n.attr("image-id",e.opts.image_id),e.$ghost&&setTimeout(function(){e.$ghost&&!o.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),o.hideLoading(e))}).addClass("modula-fancybox-image").attr("src",e.src).appendTo(e.$content),(t.complete||"complete"==t.readyState)&&n.naturalWidth&&n.naturalHeight?n.trigger("load"):t.error&&n.trigger("error")},resolveImageSlideSize:function(t,e,o){var n=parseInt(t.opts.width,10),a=parseInt(t.opts.height,10);t.width=e,t.height=o,0<n&&(t.width=n,t.height=Math.floor(n*o/e)),0<a&&(t.width=Math.floor(a*e/o),t.height=a)},setIframe:function(a){var i,e=this,s=a.opts.iframe,r=a.$slide;a.$content=m('<div class="modula-fancybox-content'+(s.preload?" modula-fancybox-is-hidden":"")+'"></div>').css(s.css).appendTo(r),r.addClass("modula-fancybox-slide--"+a.contentType),a.$iframe=i=m(s.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(s.attr).appendTo(a.$content),s.preload?(e.showLoading(a),i.on("load.fb error.fb",function(t){this.isReady=1,a.$slide.trigger("refresh"),e.afterLoad(a)}),r.on("refresh.fb",function(){var t,e=a.$content,o=s.css.width,n=s.css.height;if(1===i[0].isReady){try{t=i.contents().find("body")}catch(t){}t&&t.length&&t.children().length&&(r.css("overflow","visible"),e.css({width:"100%","max-width":"100%",height:"9999px"}),o===g&&(o=Math.ceil(Math.max(t[0].clientWidth,t.outerWidth(!0)))),e.css("width",o||"").css("max-width",""),n===g&&(n=Math.ceil(Math.max(t[0].clientHeight,t.outerHeight(!0)))),e.css("height",n||""),r.css("overflow","auto")),e.removeClass("modula-fancybox-is-hidden")}})):e.afterLoad(a),i.attr("src",a.src),r.one("onReset",function(){try{m(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}m(this).off("refresh.fb").empty(),a.isLoaded=!1,a.isRevealed=!1})},setContent:function(t,e){var o;this.isClosing||(this.hideLoading(t),t.$content&&m.modulaFancybox.stop(t.$content),t.$slide.empty(),(o=e)&&o.hasOwnProperty&&o instanceof m&&e.parent().length?((e.hasClass("modula-fancybox-content")||e.parent().hasClass("modula-fancybox-content"))&&e.parents(".modula-fancybox-slide").trigger("onReset"),t.$placeholder=m("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===m.type(e)&&(e=m("<div>").append(m.trim(e)).contents()),t.opts.filter&&(e=m("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){m(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("modula-fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(m(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),m(e).appendTo(t.$slide),m(e).is("video,audio")&&(m(e).addClass("modula-fancybox-video"),m(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||m(e).attr("width"),t.opts.height=t.opts.height||m(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.modula-fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("modula-fancybox-content"),t.$slide.addClass("modula-fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("modula-fancybox-slide--"+t.contentType).addClass("modula-fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=m(this.translate(this,this.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=m(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&m('<div class="modula-fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,o=this,n=t||o.current,a=n.opts.caption,i=n.opts.preventCaptionOverlap,s=o.$refs.caption,r=!1;s.toggleClass("modula-fancybox-caption--separate",i),i&&a&&a.length&&(n.pos!==o.currPos?((e=s.clone().appendTo(s.parent())).children().eq(0).empty().html(a),r=e.outerHeight(!0),e.empty().remove()):o.$caption&&(r=o.$caption.outerHeight(!0)),n.$slide.css("padding-bottom",r||""))},adjustLayout:function(t){var e,o,n,a,i=t||this.current;i.isLoaded&&!0!==i.opts.disableLayoutFix&&(i.$content.css("margin-bottom",""),i.$content.outerHeight()>i.$slide.height()+.5&&(n=i.$slide[0].style["padding-bottom"],a=i.$slide.css("padding-bottom"),0<parseFloat(a)&&(e=i.$slide[0].scrollHeight,i.$slide.css("padding-bottom",0),Math.abs(e-i.$slide[0].scrollHeight)<1&&(o=a),i.$slide.css("padding-bottom",n))),i.$content.css("margin-bottom",o))},revealContent:function(t){var e,o,n,a,i=this,s=t.$slide,r=!1,l=!1,c=i.isMoved(t),d=t.isRevealed;return t.isRevealed=!0,e=t.opts[i.firstRun?"animationEffect":"transitionEffect"],n=t.opts[i.firstRun?"animationDuration":"transitionDuration"],n=parseInt(t.forcedDuration===g?n:t.forcedDuration,10),!c&&t.pos===i.currPos&&n||(e=!1),"zoom"===e&&(t.pos===i.currPos&&n&&"image"===t.type&&!t.hasError&&(l=i.getThumbPos(t))?r=i.getFitPos(t):e="fade"),"zoom"===e?(i.isAnimating=!0,r.scaleX=r.width/l.width,r.scaleY=r.height/l.height,"auto"==(a=t.opts.zoomOpacity)&&(a=.1<Math.abs(t.width/t.height-l.width/l.height)),a&&(l.opacity=.1,r.opacity=1),m.modulaFancybox.setTranslate(t.$content.removeClass("modula-fancybox-is-hidden"),l),h(t.$content),void m.modulaFancybox.animate(t.$content,r,n,function(){i.isAnimating=!1,i.complete()})):(i.updateSlide(t),e?(m.modulaFancybox.stop(s),o="modula-fancybox-slide--"+(t.pos>=i.prevPos?"next":"previous")+" modula-fancybox-animated fancybox-fx-"+e,s.addClass(o).removeClass("modula-fancybox-slide--current"),t.$content.removeClass("modula-fancybox-is-hidden"),h(s),"image"!==t.type&&t.$content.hide().show(0),void m.modulaFancybox.animate(s,"modula-fancybox-slide--current",n,function(){s.removeClass(o).css({transform:"",opacity:""}),t.pos===i.currPos&&i.complete()},!0)):(t.$content.removeClass("modula-fancybox-is-hidden"),d||!c||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===i.currPos&&i.complete())))},getThumbPos:function(t){var e,o,n,a,i,s,r,l,c,d=t.$thumb;return!!(d&&(r=d[0])&&r.ownerDocument===u&&(m(".modula-fancybox-container").css("pointer-events","none"),l={x:r.getBoundingClientRect().left+r.offsetWidth/2,y:r.getBoundingClientRect().top+r.offsetHeight/2},c=u.elementFromPoint(l.x,l.y)===r,m(".modula-fancybox-container").css("pointer-events",""),c))&&(o=m.modulaFancybox.getTranslate(d),n=parseFloat(d.css("border-top-width")||0),a=parseFloat(d.css("border-right-width")||0),i=parseFloat(d.css("border-bottom-width")||0),s=parseFloat(d.css("border-left-width")||0),e={top:o.top+n,left:o.left+s,width:o.width-a-s,height:o.height-n-i,scaleX:1,scaleY:1},0<o.width&&0<o.height&&e)},complete:function(){var t,o=this,e=o.current,n={};!o.isMoved()&&e.isLoaded&&(e.isComplete||(e.isComplete=!0,e.$slide.siblings().trigger("onReset"),o.preload("inline"),h(e.$slide),e.$slide.addClass("modula-fancybox-slide--complete"),m.each(o.slides,function(t,e){e.pos>=o.currPos-1&&e.pos<=o.currPos+1?n[e.pos]=e:e&&(m.modulaFancybox.stop(e.$slide),e.$slide.off().remove())}),o.slides=n),o.isAnimating=!1,o.updateCursor(),o.trigger("afterShow"),e.opts.video.autoStart&&e.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),o.next()}),e.opts.autoFocus&&"html"===e.contentType&&((t=e.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):o.focus(null,!0)),e.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,o,n=this;n.group.length<2||(o=n.slides[n.currPos+1],(e=n.slides[n.currPos-1])&&e.type===t&&n.loadSlide(e),o&&o.type===t&&n.loadSlide(o))},focus:function(t,e){var o,n,a=this,i=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");a.isClosing||((o=(o=!t&&a.current&&a.current.isComplete?a.current.$slide.find("*:visible"+(e?":not(.modula-fancybox-close-small)":"")):a.$refs.container.find("*:visible")).filter(i).filter(function(){return"hidden"!==m(this).css("visibility")&&!m(this).hasClass("disabled")})).length?(n=o.index(u.activeElement),t&&t.shiftKey?(n<0||0==n)&&(t.preventDefault(),o.eq(o.length-1).trigger("focus")):(n<0||n==o.length-1)&&(t&&t.preventDefault(),o.eq(0).trigger("focus"))):a.$refs.container.trigger("focus"))},activate:function(){var e=this;m(".modula-fancybox-container").each(function(){var t=m(this).data("modulaFancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(t,e){function o(){d.cleanUp(t)}var n,a,i,s,r,l,c,d=this,u=d.current;return!d.isClosing&&(!(d.isClosing=!0)===d.trigger("beforeClose",t)?(d.isClosing=!1,p(function(){d.update()}),!1):(d.removeEvents(),i=u.$content,n=u.opts.animationEffect,a=m.isNumeric(e)?e:n?u.opts.animationDuration:0,u.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--next modula-fancybox-slide--previous modula-fancybox-animated"),!0!==t?m.modulaFancybox.stop(u.$slide):n=!1,u.$slide.siblings().trigger("onReset").remove(),a&&d.$refs.container.removeClass("modula-fancybox-is-open").addClass("modula-fancybox-is-closing").css("transition-duration",a+"ms"),d.hideLoading(u),d.hideControls(!0),d.updateCursor(),"zoom"!==n||i&&a&&"image"===u.type&&!d.isMoved()&&!u.hasError&&(c=d.getThumbPos(u))||(n="fade"),"zoom"===n?(m.modulaFancybox.stop(i),l={top:(s=m.modulaFancybox.getTranslate(i)).top,left:s.left,scaleX:s.width/c.width,scaleY:s.height/c.height,width:c.width,height:c.height},"auto"==(r=u.opts.zoomOpacity)&&(r=.1<Math.abs(u.width/u.height-c.width/c.height)),r&&(c.opacity=0),m.modulaFancybox.setTranslate(i,l),h(i),m.modulaFancybox.animate(i,c,a,o)):n&&a?m.modulaFancybox.animate(u.$slide.addClass("modula-fancybox-slide--previous").removeClass("modula-fancybox-slide--current"),"modula-fancybox-animated modula-fancybox-fx-"+n,a,o):!0===t?setTimeout(o,a):o(),!0))},cleanUp:function(t){var e,o,n,a=this,i=a.current.opts.$orig;a.current.$slide.trigger("onReset"),a.$refs.container.empty().remove(),a.trigger("afterClose",t),a.current.opts.backFocus&&(i&&i.length&&i.is(":visible")||(i=a.$trigger),i&&i.length&&(o=l.scrollX,n=l.scrollY,i.trigger("focus"),m("html, body").scrollTop(n).scrollLeft(o))),a.current=null,(e=m.modulaFancybox.getInstance())?e.activate():(m("body").removeClass("modula-fancybox-active compensate-for-scrollbar"),m("#modula-fancybox-style-noscroll").remove())},trigger:function(t,e){var o,n=Array.prototype.slice.call(arguments,1),a=this,i=e&&e.opts?e:a.current;if(i?n.unshift(i):i=a,n.unshift(a),m.isFunction(i.opts[t])&&(o=i.opts[t].apply(i,n)),!1===o)return o;"afterClose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",n):s.trigger(t+".fb",n)},updateControls:function(){var t=this,e=t.current,o=e.index,n=t.$refs.container,a=t.$refs.caption,i=e.opts.caption;e.$slide.trigger("refresh"),i&&i.length?(t.$caption=a).children().eq(0).html(i):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),n.find("[data-fancybox-count]").html(t.group.length),n.find("[data-fancybox-index]").html(o+1),n.find("[data-fancybox-prev]").prop("disabled",!e.opts.loop&&o<=0),n.find("[data-fancybox-next]").prop("disabled",!e.opts.loop&&o>=t.group.length-1),"image"===e.type?n.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",e.opts.image.src||e.src).show():e.opts.toolbar&&n.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),m(u.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map(function(t){return"modula-fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,o=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,o.toggleClass("modula-fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("modula-fancybox-show-infobar",!!(e.infobar&&1<t.group.length)).toggleClass("modula-fancybox-show-caption",!!t.$caption).toggleClass("modula-fancybox-show-nav",!!(e.arrows&&1<t.group.length)).toggleClass("modula-fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),m.modulaFancybox={version:"3.5.7",defaults:t,getInstance:function(t){var e=m('.modula-fancybox-container:not(".modula-fancybox-is-closing"):last').data("modulaFancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof n&&("string"===m.type(t)?e[t].apply(e,o):"function"===m.type(t)&&t.apply(e,o),e)},open:function(t,e,o){return new n(t,e,o)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),s.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(o=u.createElement("div"),l.getComputedStyle&&l.getComputedStyle(o)&&l.getComputedStyle(o).getPropertyValue("transform")&&!(u.documentMode&&u.documentMode<11)),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var o="",n={};if(t&&e)return e.left===g&&e.top===g||(o=(e.left===g?t.position().left:e.left)+"px, "+(e.top===g?t.position().top:e.top)+"px",o=this.use3d?"translate3d("+o+", 0px)":"translate("+o+")"),e.scaleX!==g&&e.scaleY!==g?o+=" scale("+e.scaleX+", "+e.scaleY+")":e.scaleX!==g&&(o+=" scaleX("+e.scaleX+")"),o.length&&(n.transform=o),e.opacity!==g&&(n.opacity=e.opacity),e.width!==g&&(n.width=e.width),e.height!==g&&(n.height=e.height),t.css(n)},animate:function(e,o,n,a,i){var s,r=this;m.isFunction(n)&&(a=n,n=null),r.stop(e),s=r.getTranslate(e),e.on(c,function(t){t&&t.originalEvent&&(!e.is(t.originalEvent.target)||"z-index"==t.originalEvent.propertyName)||(r.stop(e),m.isNumeric(n)&&e.css("transition-duration",""),m.isPlainObject(o)?o.scaleX!==g&&o.scaleY!==g&&r.setTranslate(e,{top:o.top,left:o.left,width:s.width*o.scaleX,height:s.height*o.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(o),m.isFunction(a)&&a(t))}),m.isNumeric(n)&&e.css("transition-duration",n+"ms"),m.isPlainObject(o)?(o.scaleX!==g&&o.scaleY!==g&&(delete o.width,delete o.height,e.parent().hasClass("modula-fancybox-slide--image")&&e.parent().addClass("modula-fancybox-is-scaling")),m.modulaFancybox.setTranslate(e,o)):e.addClass(o),e.data("timer",setTimeout(function(){e.trigger(c)},n+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(c),t.off(c).css("transition-duration",""),t.parent().removeClass("modula-fancybox-is-scaling"))}},m.fn.modulaFancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?m("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},y):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},y),this},s.on("click.fb-start","[data-fancybox]",y),s.on("click.fb-start","[data-fancybox-trigger]",function(t){m('[data-fancybox="'+m(this).attr("data-fancybox-trigger")+'"]').eq(m(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:m(this)})}),r=".modula-fancybox-button",f="modula-fancybox-focus",b=null,s.on("mousedown mouseup focus blur",r,function(t){switch(t.type){case"mousedown":b=m(this);break;case"mouseup":b=null;break;case"focusin":m(r).removeClass(f),m(this).is(b)||m(this).is("[disabled]")||m(this).addClass(f);break;case"focusout":m(r).removeClass(f)}})))}(window,document,jQuery),function(h){"use strict";function f(o,t,e){if(o)return e=e||"","object"===h.type(e)&&(e=h.param(e,!0)),h.each(t,function(t,e){o=o.replace("$"+t,e||"")}),e.length&&(o+=(0<o.indexOf("?")?"&":"?")+e),o}var n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&0<t[12].indexOf("layer=c")?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};h(document).on("objectNeedsType.fb",function(t,e,a){var i,s,r,l,c,d,u=a.src||"",p=!1,o=h.extend(!0,{},n,a.opts.media);h.each(o,function(t,e){if(s=u.match(e.matcher)){if(p=e.type,d=t,c={},e.paramPlace&&s[e.paramPlace]){"?"==(l=s[e.paramPlace])[0]&&(l=l.substring(1)),l=l.split("&");for(var o=0;o<l.length;++o){var n=l[o].split("=",2);2==n.length&&(c[n[0]]=decodeURIComponent(n[1].replace(/\+/g," ")))}}return r=h.extend(!0,{},e.params,a.opts[t],c),u="function"===h.type(e.url)?e.url.call(this,s,r,a):f(e.url,s,r),i="function"===h.type(e.thumb)?e.thumb.call(this,s,r,a):f(e.thumb,s),"youtube"===t?u=u.replace(/&t=(\d+)/,function(t,e){return"&start="+e}):"vimeo"===t&&(u=u.replace("&%23","#")),!1}}),p?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=i),"iframe"===p&&(a.opts=h.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),h.extend(a,{type:p,src:u,origSrc:a.src,contentSource:d,contentType:"image"===p?"image":"gmap_place"==d||"gmap_search"==d?"map":"video"})):u&&(a.type=a.opts.defaultType)});var a={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,o=this;this[t].loaded?setTimeout(function(){o.done(t)}):this[t].loading||(this[t].loading=!0,(e=document.createElement("script")).type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){o[t].loaded=!0,o.done(t)}:e.onload=function(){o[t].loaded=!0,o.done(t)},document.body.appendChild(e))},done:function(t){var e,o;"youtube"===t&&delete window.onYouTubeIframeAPIReady,(e=h.modulaFancybox.getInstance())&&(o=e.current.$content.find("iframe"),"youtube"===t&&void 0!==YT&&YT?new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&e.next()}}}):"vimeo"===t&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(o).on("ended",function(){e.next()}))}};h(document).on({"afterShow.fb":function(t,e,o){1<e.group.length&&("youtube"===o.contentSource||"vimeo"===o.contentSource)&&a.load(o.contentSource)}})}(jQuery),function(m,l,g){"use strict";function d(t){var e=[];for(var o in t=(t=t.originalEvent||t||m.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[o].pageX?e.push({x:t[o].pageX,y:t[o].pageY}):t[o].clientX&&e.push({x:t[o].clientX,y:t[o].clientY});return e}function b(t,e,o){return e&&t?"x"===o?t.x-e.x:"y"===o?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function c(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||g.isFunction(t.get(0).onclick)||t.data("selectable"))return 1;for(var e=0,o=t[0].attributes,n=o.length;e<n;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return 1}function u(t){for(var e,o,n,a,i,s=!1;e=t.get(0),0,o=m.getComputedStyle(e)["overflow-y"],n=m.getComputedStyle(e)["overflow-x"],a=("scroll"===o||"auto"===o)&&e.scrollHeight>e.clientHeight,i=("scroll"===n||"auto"===n)&&e.scrollWidth>e.clientWidth,!(s=a||i)&&(t=t.parent()).length&&!t.hasClass("modula-fancybox-stage")&&!t.is("body"););return s}function o(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",g.proxy(e,"ontouchstart"))}var y=m.requestAnimationFrame||m.webkitRequestAnimationFrame||m.mozRequestAnimationFrame||m.oRequestAnimationFrame||function(t){return m.setTimeout(t,1e3/60)},v=m.cancelAnimationFrame||m.webkitCancelAnimationFrame||m.mozCancelAnimationFrame||m.oCancelAnimationFrame||function(t){m.clearTimeout(t)};o.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),g(l).off(".fb.touch"),t.requestId&&(v(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},o.prototype.ontouchstart=function(t){var e=this,o=g(t.target),n=e.instance,a=n.current,i=a.$slide,s=a.$content,r="touchstart"==t.type;if(r&&e.$container.off("mousedown.fb.touch"),(!t.originalEvent||2!=t.originalEvent.button)&&i.length&&o.length&&!c(o)&&!c(o.parent())&&(o.is("img")||!(t.originalEvent.clientX>o[0].clientWidth+o.offset().left))){if(!a||n.isAnimating||a.$slide.hasClass("modula-fancybox-animated"))return t.stopPropagation(),void t.preventDefault();e.realPoints=e.startPoints=d(t),e.startPoints.length&&(a.touch&&t.stopPropagation(),e.startEvent=t,e.canTap=!0,e.$target=o,e.$content=s,e.opts=a.opts.touch,e.isPanning=!1,e.isSwiping=!1,e.isZooming=!1,e.isScrolling=!1,e.canPan=n.canPan(),e.startTime=(new Date).getTime(),e.distanceX=e.distanceY=e.distance=0,e.canvasWidth=Math.round(i[0].clientWidth),e.canvasHeight=Math.round(i[0].clientHeight),e.contentLastPos=null,e.contentStartPos=g.modulaFancybox.getTranslate(e.$content)||{top:0,left:0},e.sliderStartPos=g.modulaFancybox.getTranslate(i),e.stagePos=g.modulaFancybox.getTranslate(n.$refs.stage),e.sliderStartPos.top-=e.stagePos.top,e.sliderStartPos.left-=e.stagePos.left,e.contentStartPos.top-=e.stagePos.top,e.contentStartPos.left-=e.stagePos.left,g(l).off(".fb.touch").on(r?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",g.proxy(e,"ontouchend")).on(r?"touchmove.fb.touch":"mousemove.fb.touch",g.proxy(e,"ontouchmove")),g.modulaFancybox.isMobile&&l.addEventListener("scroll",e.onscroll,!0),((e.opts||e.canPan)&&(o.is(e.$stage)||e.$stage.find(o).length)||(o.is(".modula-fancybox-image")&&t.preventDefault(),g.modulaFancybox.isMobile&&o.parents(".modula-fancybox-caption").length))&&(e.isScrollable=u(o)||u(o.parent()),g.modulaFancybox.isMobile&&e.isScrollable||t.preventDefault(),1!==e.startPoints.length&&!a.hasError||(e.canPan?(g.modulaFancybox.stop(e.$content),e.isPanning=!0):e.isSwiping=!0,e.$container.addClass("modula-fancybox-is-grabbing")),2===e.startPoints.length&&"image"===a.type&&(a.isLoaded||a.$ghost)&&(e.canTap=!1,e.isSwiping=!1,e.isPanning=!1,e.isZooming=!0,g.modulaFancybox.stop(e.$content),e.centerPointStartX=.5*(e.startPoints[0].x+e.startPoints[1].x)-g(m).scrollLeft(),e.centerPointStartY=.5*(e.startPoints[0].y+e.startPoints[1].y)-g(m).scrollTop(),e.percentageOfImageAtPinchPointX=(e.centerPointStartX-e.contentStartPos.left)/e.contentStartPos.width,e.percentageOfImageAtPinchPointY=(e.centerPointStartY-e.contentStartPos.top)/e.contentStartPos.height,e.startDistanceBetweenFingers=b(e.startPoints[0],e.startPoints[1]))))}},o.prototype.onscroll=function(t){this.isScrolling=!0,l.removeEventListener("scroll",this.onscroll,!0)},o.prototype.ontouchmove=function(t){var e=this;void 0===t.originalEvent.buttons||0!==t.originalEvent.buttons?e.isScrolling?e.canTap=!1:(e.newPoints=d(t),(e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=b(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=b(e.newPoints[0],e.startPoints[0],"y"),e.distance=b(e.newPoints[0],e.startPoints[0]),0<e.distance&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))):e.ontouchend(t)},o.prototype.onSwipe=function(t){var e,a=this,i=a.instance,o=a.isSwiping,n=a.sliderStartPos.left||0;if(!0!==o)"x"==o&&(0<a.distanceX&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?n+=Math.pow(a.distanceX,.8):a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?n-=Math.pow(-a.distanceX,.8):n+=a.distanceX),a.sliderLastPos={top:"x"==o?0:a.sliderStartPos.top+a.distanceY,left:n},a.requestId&&(v(a.requestId),a.requestId=null),a.requestId=y(function(){a.sliderLastPos&&(g.each(a.instance.slides,function(t,e){var o=e.pos-a.instance.currPos;g.modulaFancybox.setTranslate(e.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+o*a.canvasWidth+o*e.opts.gutter})}),a.$container.addClass("modula-fancybox-is-sliding"))});else if(10<Math.abs(a.distance)){if(a.canTap=!1,i.group.length<2&&a.opts.vertical?a.isSwiping="y":i.isDragging||!1===a.opts.vertical||"auto"===a.opts.vertical&&800<g(m).width()?a.isSwiping="x":(e=Math.abs(180*Math.atan2(a.distanceY,a.distanceX)/Math.PI),a.isSwiping=45<e&&e<135?"y":"x"),"y"===a.isSwiping&&g.modulaFancybox.isMobile&&a.isScrollable)return void(a.isScrolling=!0);i.isDragging=a.isSwiping,a.startPoints=a.newPoints,g.each(i.slides,function(t,e){var o,n;g.modulaFancybox.stop(e.$slide),o=g.modulaFancybox.getTranslate(e.$slide),n=g.modulaFancybox.getTranslate(i.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===i.current.pos&&(a.sliderStartPos.top=o.top-n.top,a.sliderStartPos.left=o.left-n.left),g.modulaFancybox.setTranslate(e.$slide,{top:o.top-n.top,left:o.left-n.left})}),i.SlideShow&&i.SlideShow.isActive&&i.SlideShow.stop()}},o.prototype.onPan=function(){var t=this;b(t.newPoints[0],t.realPoints[0])<(g.modulaFancybox.isMobile?10:5)?t.startPoints=t.newPoints:(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&v(t.requestId),t.requestId=y(function(){g.modulaFancybox.setTranslate(t.$content,t.contentLastPos)}))},o.prototype.limitMovement=function(){var t=this,e=t.canvasWidth,o=t.canvasHeight,n=t.distanceX,a=t.distanceY,i=t.contentStartPos,s=i.left,r=i.top,l=i.width,c=i.height,d=e<l?s+n:s,u=r+a,p=Math.max(0,.5*e-.5*l),h=Math.max(0,.5*o-.5*c),f=Math.min(e-l,.5*e-.5*l),m=Math.min(o-c,.5*o-.5*c);return 0<n&&p<d&&(d=p-1+Math.pow(-p+s+n,.8)||0),n<0&&d<f&&(d=f+1-Math.pow(f-s-n,.8)||0),0<a&&h<u&&(u=h-1+Math.pow(-h+r+a,.8)||0),a<0&&u<m&&(u=m+1-Math.pow(m-r-a,.8)||0),{top:u,left:d}},o.prototype.limitPosition=function(t,e,o,n){var a=this.canvasWidth,i=this.canvasHeight;return t=a<o?(t=0<t?0:t)<a-o?a-o:t:Math.max(0,a/2-o/2),{top:e=i<n?(e=0<e?0:e)<i-n?i-n:e:Math.max(0,i/2-n/2),left:t}},o.prototype.onZoom=function(){var t=this,e=t.contentStartPos,o=e.width,n=e.height,a=e.left,i=e.top,s=b(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,r=Math.floor(o*s),l=Math.floor(n*s),c=(o-r)*t.percentageOfImageAtPinchPointX,d=(n-l)*t.percentageOfImageAtPinchPointY,u=(t.newPoints[0].x+t.newPoints[1].x)/2-g(m).scrollLeft(),p=(t.newPoints[0].y+t.newPoints[1].y)/2-g(m).scrollTop(),h=u-t.centerPointStartX,f={top:i+(d+(p-t.centerPointStartY)),left:a+(c+h),scaleX:s,scaleY:s};t.canTap=!1,t.newWidth=r,t.newHeight=l,t.contentLastPos=f,t.requestId&&v(t.requestId),t.requestId=y(function(){g.modulaFancybox.setTranslate(t.$content,t.contentLastPos)})},o.prototype.ontouchend=function(t){var e=this,o=e.isSwiping,n=e.isPanning,a=e.isZooming,i=e.isScrolling;if(e.endPoints=d(t),e.dMs=Math.max((new Date).getTime()-e.startTime,1),e.$container.removeClass("modula-fancybox-is-grabbing"),g(l).off(".fb.touch"),l.removeEventListener("scroll",e.onscroll,!0),e.requestId&&(v(e.requestId),e.requestId=null),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.isScrolling=!1,e.instance.isDragging=!1,e.canTap)return e.onTap(t);e.speed=100,e.velocityX=e.distanceX/e.dMs*.5,e.velocityY=e.distanceY/e.dMs*.5,n?e.endPanning():a?e.endZooming():e.endSwiping(o,i)},o.prototype.endSwiping=function(t,e){var o=this,n=!1,a=o.instance.group.length,i=Math.abs(o.distanceX),s="x"==t&&1<a&&(130<o.dMs&&10<i||50<i);o.sliderLastPos=null,"y"==t&&!e&&50<Math.abs(o.distanceY)?(g.modulaFancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),n=o.instance.close(!0,250)):s&&0<o.distanceX?n=o.instance.previous(300):s&&o.distanceX<0&&(n=o.instance.next(300)),!1!==n||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("modula-fancybox-is-sliding")},o.prototype.endPanning=function(){var t,e,o,n=this;n.contentLastPos&&(e=!1===n.opts.momentum||350<n.dMs?(t=n.contentLastPos.left,n.contentLastPos.top):(t=n.contentLastPos.left+500*n.velocityX,n.contentLastPos.top+500*n.velocityY),(o=n.limitPosition(t,e,n.contentStartPos.width,n.contentStartPos.height)).width=n.contentStartPos.width,o.height=n.contentStartPos.height,g.modulaFancybox.animate(n.$content,o,366))},o.prototype.endZooming=function(){var t,e,o,n,a=this,i=a.instance.current,s=a.newWidth,r=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,n={top:e=a.contentLastPos.top,left:t,width:s,height:r,scaleX:1,scaleY:1},g.modulaFancybox.setTranslate(a.$content,n),s<a.canvasWidth&&r<a.canvasHeight?a.instance.scaleToFit(150):s>i.width||r>i.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,s,r),g.modulaFancybox.animate(a.$content,o,150)))},o.prototype.onTap=function(o){function t(t){var e=s.opts[t];if(g.isFunction(e)&&(e=e.apply(i,[s,o])),e)switch(e){case"close":i.close(n.startEvent);break;case"toggleControls":i.toggleControls();break;case"next":i.next();break;case"nextOrClose":1<i.group.length?i.next():i.close(n.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(i.canPan()?i.scaleToFit():i.isScaledDown()?i.scaleToActual(l,c):i.group.length<2&&i.close(n.startEvent))}}var e,n=this,a=g(o.target),i=n.instance,s=i.current,r=o&&d(o)||n.startPoints,l=r[0]?r[0].x-g(m).scrollLeft()-n.stagePos.left:0,c=r[0]?r[0].y-g(m).scrollTop()-n.stagePos.top:0;if((!o.originalEvent||2!=o.originalEvent.button)&&(a.is("img")||!(l>a[0].clientWidth+a.offset().left))){if(a.is(".modula-fancybox-bg,.modula-fancybox-inner,.modula-fancybox-outer,.modula-fancybox-container"))e="Outside";else if(a.is(".modula-fancybox-slide"))e="Slide";else{if(!i.current.$content||!i.current.$content.find(a).addBack().filter(a).length)return;e="Content"}if(n.tapped){if(clearTimeout(n.tapped),n.tapped=null,50<Math.abs(l-n.tapX)||50<Math.abs(c-n.tapY))return this;t("dblclick"+e)}else n.tapX=l,n.tapY=c,s.opts["dblclick"+e]&&s.opts["dblclick"+e]!==s.opts["click"+e]?n.tapped=setTimeout(function(){n.tapped=null,i.isAnimating||t("click"+e)},500):t("click"+e);return this}},g(l).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new o(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(s,r){"use strict";r.extend(!0,r.modulaFancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="modula-fancybox-button modula-fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});function o(t){this.instance=t,this.init()}r.extend(o.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,e=t.instance,o=e.group[e.currIndex].opts.slideShow;t.$button=e.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),e.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=r('<div class="modula-fancybox-progress"></div>').appendTo(e.$refs.inner))},set:function(t){var e=this,o=e.instance,n=o.current;n&&(!0===t||n.opts.loop||o.currIndex<o.group.length-1)?e.isActive&&"video"!==n.contentType&&(e.$progress&&r.modulaFancybox.animate(e.$progress.show(),{scaleX:1},n.opts.slideShow.speed),e.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},n.opts.slideShow.speed)):(e.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&this.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("modula-fancybox-button--play").addClass("modula-fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("modula-fancybox-button--pause").addClass("modula-fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){this.isActive?this.stop():this.start()}}),r(s).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new o(e))},"beforeShow.fb":function(t,e,o,n){var a=e&&e.SlideShow;n?a&&o.opts.slideShow.autoStart&&a.start():a&&a.isActive&&a.clear()},"afterShow.fb":function(t,e,o){var n=e&&e.SlideShow;n&&n.isActive&&n.set()},"afterKeydown.fb":function(t,e,o,n,a){var i=e&&e.SlideShow;!i||!o.opts.slideShow||80!==a&&32!==a||r(s.activeElement).is("button,a,input")||(n.preventDefault(),i.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var o=e&&e.SlideShow;o&&o.stop()}}),r(s).on("visibilitychange",function(){var t=r.modulaFancybox.getInstance(),e=t&&t.SlideShow;e&&e.isActive&&(s.hidden?e.clear():e.set())})}(document,jQuery),function(i,o){"use strict";var n,a=function(){for(var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],e={},o=0;o<t.length;o++){var n=t[o];if(n&&n[1]in i){for(var a=0;a<n.length;a++)e[t[0][a]]=n[a];return e}}return!1}();a&&(n={request:function(t){(t=t||i.documentElement)[a.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){i[a.exitFullscreen]()},toggle:function(t){t=t||i.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(i[a.fullscreenElement])},enabled:function(){return Boolean(i[a.fullscreenEnabled])}},o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="modula-fancybox-button modula-fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),o(i).on(a.fullscreenchange,function(){var t=n.isFullscreen(),e=o.modulaFancybox.getInstance();e&&(e.current&&"image"===e.current.type&&e.isAnimating&&(e.isAnimating=!1,e.update(!0,!0,0),e.isComplete||e.complete()),e.trigger("onFullscreenChange",t),e.$refs.container.toggleClass("modula-fancybox-is-fullscreen",t),e.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("modula-fancybox-button--fsenter",!t).toggleClass("modula-fancybox-button--fsexit",t))})),o(i).on({"onInit.fb":function(t,e){a?e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),n.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&n.request(),e.FullScreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,o,n,a){e&&e.FullScreen&&70===a&&(n.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("modula-fancybox-is-fullscreen")&&n.exit()}})}(document,jQuery),function(t,i){"use strict";var s="modula-fancybox-thumbs",r=s+"-active";i.modulaFancybox.defaults=i.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="modula-fancybox-button modula-fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"}},i.modulaFancybox.defaults);function n(t){this.init(t)}i.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,o=t.group,n=0;e.instance=t,e.opts=o[t.currIndex].opts.thumbs,(t.Thumbs=e).$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var a=0,i=o.length;a<i&&(o[a].thumb&&n++,!(1<n));a++);1<n&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var o,t=this,e=t.instance,n=t.opts.parentEl,a=[];t.$grid||(t.$grid=i('<div class="'+s+" "+s+"-"+t.opts.axis+'"></div>').appendTo(e.$refs.container.find(n).addBack().filter(n)),t.$grid.on("click","a",function(){e.jumpTo(i(this).attr("data-index"))})),t.$list||(t.$list=i('<div class="'+s+'__list">').appendTo(t.$grid)),i.each(e.group,function(t,e){(o=e.thumb)||"image"!==e.type||(o=e.src),a.push('<a href="javascript:;" tabindex="0" data-index="'+t+'"'+(o&&o.length?' style="background-image:url('+o+')"':'class="modula-fancybox-thumbs-missing"')+"></a>")}),t.$list[0].innerHTML=a.join(""),"x"===t.opts.axis&&t.$list.width(parseInt(t.$grid.css("padding-right"),10)+e.group.length*t.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,o,n=this,a=n.$list,i=n.$grid;n.instance.current&&(o=(e=a.children().removeClass(r).filter('[data-index="'+n.instance.current.index+'"]').addClass(r)).position(),"y"===n.opts.axis&&(o.top<0||o.top>a.height()-e.outerHeight())?a.stop().animate({scrollTop:a.scrollTop()+o.top},t):"x"===n.opts.axis&&(o.left<i.scrollLeft()||o.left>i.scrollLeft()+(i.width()-e.outerWidth()))&&a.parent().stop().animate({scrollLeft:o.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("modula-fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),i(t).on({"onInit.fb":function(t,e){var o;e&&!e.Thumbs&&(o=new n(e)).isActive&&!0===o.opts.autoStart&&o.show()},"beforeShow.fb":function(t,e,o,n){var a=e&&e.Thumbs;a&&a.isVisible&&a.focus(n?0:250)},"afterKeydown.fb":function(t,e,o,n,a){var i=e&&e.Thumbs;i&&i.isActive&&71===a&&(n.preventDefault(),i.toggle())},"beforeClose.fb":function(t,e){var o=e&&e.Thumbs;o&&o.isVisible&&!1!==o.opts.hideOnClose&&o.$grid.hide()}})}(document,jQuery),function(t,o){"use strict";o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="modula-fancybox-button modula-fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location}}}),o(t).on("click","[data-fancybox-share]",function(){var n,e,a=o.modulaFancybox.getInstance(),i=a.current||null,s="<div class='modula-fancybox-share'><h1>{{SHARE}}</h1><p>";i&&("function"===o.type(i.opts.share.url)&&(n=i.opts.share.url.apply(i,[a,i])),o.each(i.opts.modulaShare,function(t,e){var o=(i.opts.lightboxEmailMessage.length?i.opts.lightboxEmailMessage:"Here is the link to the image : %%image_link%% and this is the link to the gallery : %%gallery_link%%").replace(/\%%gallery_link%%/g,window.location.href).replace(/\%%image_link%%/g,i.src);s+=i.opts.shareBtnTpl[e].replace(/\{\{media\}\}/g,"image"===i.type?encodeURIComponent(i.src):"").replace(/\{\{modulaShareUrl\}\}/g,encodeURIComponent(n)).replace(/\{\{descr\}\}/g,a.$caption?encodeURIComponent(a.$caption.text()):"").replace(/\{\{subject\}\}/g,encodeURIComponent(i.opts.lightboxEmailSubject)).replace(/\{\{emailMessage\}\}/g,encodeURIComponent(o))}),s=(s+="</p><p><input class='modula-fancybox-share__input' type='text' value='{{url_raw}}' /></p></div>").replace(/\{\{url_raw\}\}/g,(e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},String(n).replace(/[&<>"'`=\/]/g,function(t){return e[t]}))),o.modulaFancybox.open({src:a.translate(a,s),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){a.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".modula-fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(i,s,a){"use strict";function o(){var t=i.location.hash.substr(1),e=t.split("-"),o=1<e.length&&/^\+?\d+$/.test(e[e.length-1])&&parseInt(e.pop(-1),10)||1;return{hash:t,index:o<1?1:o,gallery:e.join("-")}}function e(t){""!==t.gallery&&a("[data-fancybox='"+a.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function r(t){var e,o;return!!t&&(""!==(o=(e=t.current?t.current.opts:t.opts).hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&o)}a.escapeSelector||(a.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),a(function(){!1!==a.modulaFancybox.defaults.hash&&(a(s).on({"onInit.fb":function(t,e){!1!==e.group[e.currIndex].opts.hash&&(o(),r(e))},"beforeShow.fb":function(t,e,o,n){var a;o&&!1!==o.opts.hash&&(a=r(e))&&(e.currentHash=a+(1<e.group.length?"-"+o.opts.image_id:""),i.location.hash!=="#"+e.currentHash&&(n&&!e.origHash&&(e.origHash=i.location.hash),e.hashTimer&&clearTimeout(e.hashTimer),e.hashTimer=setTimeout(function(){"replaceState"in i.history?(i.history[n?"pushState":"replaceState"]({},s.title,i.location.pathname+i.location.search+"#"+e.currentHash),n&&(e.hasCreatedHistory=!0)):i.location.hash=e.currentHash,e.hashTimer=null},300)))},"beforeClose.fb":function(t,e,o){o&&!1!==o.opts.hash&&(clearTimeout(e.hashTimer),e.currentHash&&e.hasCreatedHistory?i.history.back():e.currentHash&&("replaceState"in i.history?i.history.replaceState({},s.title,i.location.pathname+i.location.search+(e.origHash||"")):i.location.hash=e.origHash),e.currentHash=null)}}),a(i).on("hashchange.fb",function(){var t=o(),n=null;a.each(a(".modula-fancybox-container").get().reverse(),function(t,e){var o=a(e).data("modulaFancyBox");if(o&&o.currentHash)return n=o,!1}),n?n.currentHash===t.gallery+"-"+t.index||1===t.index&&n.currentHash==t.gallery||(n.currentHash=null,n.close()):""!==t.gallery&&e(t)}),setTimeout(function(){a.modulaFancybox.getInstance()||e(o())},50))})}(window,document,jQuery),function(t,e){"use strict";var a=(new Date).getTime();e(t).on({"onInit.fb":function(t,n,e){n.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var e=n.current,o=(new Date).getTime();n.group.length<2||!1===e.opts.wheel||"auto"===e.opts.wheel&&"image"!==e.type||(t.preventDefault(),t.stopPropagation(),e.$slide.hasClass("modula-fancybox-animated")||(t=t.originalEvent||t,o-a<250||(a=o,n[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
5
  !function(e){var t=function(l,k){"use strict";if(!k.getElementsByClassName){return}var D,H,O=k.documentElement,o=l.Date,a=l.HTMLPictureElement,u="addEventListener",P="getAttribute",f=l[u],$=l.setTimeout,c=l.requestAnimationFrame||$,d=l.requestIdleCallback,I=/^picture$/i,r=["load","error","lazyincluded","_lazyloaded"],i={},q=Array.prototype.forEach,j=function(e,t){if(!i[t]){i[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")}return i[t].test(e[P]("class")||"")&&i[t]},G=function(e,t){if(!j(e,t)){e.setAttribute("class",(e[P]("class")||"").trim()+" "+t)}},J=function(e,t){var i;if(i=j(e,t)){e.setAttribute("class",(e[P]("class")||"").replace(i," "))}},K=function(t,i,e){var a=e?u:"removeEventListener";if(e){K(t,i)}r.forEach(function(e){t[a](e,i)})},Q=function(e,t,i,a,r){var n=k.createEvent("Event");if(!i){i={}}i.instance=D;n.initEvent(t,!a,!r);n.detail=i;e.dispatchEvent(n);return n},U=function(e,t){var i;if(!a&&(i=l.picturefill||H.pf)){if(t&&t.src&&!e[P]("srcset")){e.setAttribute("srcset",t.src)}i({reevaluate:true,elements:[e]})}else if(t&&t.src){e.src=t.src}},V=function(e,t){return(getComputedStyle(e,null)||{})[t]},s=function(e,t,i){i=i||e.offsetWidth;while(i<H.minSize&&t&&!e._lazysizesWidth){i=t.offsetWidth;t=t.parentNode}return i},X=function(){var i,a;var t=[];var r=[];var n=t;var s=function(){var e=n;n=t.length?r:t;i=true;a=false;while(e.length){e.shift()()}i=false};var e=function(e,t){if(i&&!t){e.apply(this,arguments)}else{n.push(e);if(!a){a=true;(k.hidden?$:c)(s)}}};e._lsFlush=s;return e}(),Y=function(i,e){return e?function(){X(i)}:function(){var e=this;var t=arguments;X(function(){i.apply(e,t)})}},Z=function(e){var i;var a=0;var r=H.throttleDelay;var n=H.ricTimeout;var t=function(){i=false;a=o.now();e()};var s=d&&n>49?function(){d(t,{timeout:n});if(n!==H.ricTimeout){n=H.ricTimeout}}:Y(function(){$(t)},true);return function(e){var t;if(e=e===true){n=33}if(i){return}i=true;t=r-(o.now()-a);if(t<0){t=0}if(e||t<9){s()}else{$(s,t)}}},ee=function(e){var t,i;var a=99;var r=function(){t=null;e()};var n=function(){var e=o.now()-i;if(e<a){$(n,a-e)}else{(d||r)(r)}};return function(){i=o.now();if(!t){t=$(n,a)}}};(function(){var e;var t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};H=l.lazySizesConfig||l.lazysizesConfig||{};for(e in t){if(!(e in H)){H[e]=t[e]}}l.lazySizesConfig=H;$(function(){if(H.init){n()}})})();var e=function(){var v,m,c,z,t;var h,y,g,p,C,b,A;var n=/^img$/i;var d=/^iframe$/i;var E="onscroll"in l&&!/(gle|ing)bot/.test(navigator.userAgent);var _=0;var w=0;var M=0;var N=-1;var x=function(e){M--;if(!e||M<0||!e.target){M=0}};var W=function(e){if(A==null){A=V(k.body,"visibility")=="hidden"}return A||V(e.parentNode,"visibility")!="hidden"&&V(e,"visibility")!="hidden"};var T=function(e,t){var i;var a=e;var r=W(e);g-=t;b+=t;p-=t;C+=t;while(r&&(a=a.offsetParent)&&a!=k.body&&a!=O){r=(V(a,"opacity")||1)>0;if(r&&V(a,"overflow")!="visible"){i=a.getBoundingClientRect();r=C>i.left&&p<i.right&&b>i.top-1&&g<i.bottom+1}}return r};var e=function(){var e,t,i,a,r,n,s,l,o,u,f,c;var d=D.elements;if((z=H.loadMode)&&M<8&&(e=d.length)){t=0;N++;u=!H.expand||H.expand<1?O.clientHeight>500&&O.clientWidth>500?500:370:H.expand;D._defEx=u;f=u*H.expFactor;c=H.hFac;A=null;if(w<f&&M<1&&N>2&&z>2&&!k.hidden){w=f;N=0}else if(z>1&&N>1&&M<6){w=u}else{w=_}for(;t<e;t++){if(!d[t]||d[t]._lazyRace){continue}if(!E){R(d[t]);continue}if(!(l=d[t][P]("data-expand"))||!(n=l*1)){n=w}if(o!==n){h=innerWidth+n*c;y=innerHeight+n;s=n*-1;o=n}i=d[t].getBoundingClientRect();if((b=i.bottom)>=s&&(g=i.top)<=y&&(C=i.right)>=s*c&&(p=i.left)<=h&&(b||C||p||g)&&(H.loadHidden||W(d[t]))&&(m&&M<3&&!l&&(z<3||N<4)||T(d[t],n))){R(d[t]);r=true;if(M>9){break}}else if(!r&&m&&!a&&M<4&&N<4&&z>2&&(v[0]||H.preloadAfterLoad)&&(v[0]||!l&&(b||C||p||g||d[t][P](H.sizesAttr)!="auto"))){a=v[0]||d[t]}}if(a&&!r){R(a)}}};var i=Z(e);var B=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}x(e);G(t,H.loadedClass);J(t,H.loadingClass);K(t,F);Q(t,"lazyloaded")};var a=Y(B);var F=function(e){a({target:e.target})};var S=function(t,i){try{t.contentWindow.location.replace(i)}catch(e){t.src=i}};var L=function(e){var t;var i=e[P](H.srcsetAttr);if(t=H.customMedia[e[P]("data-media")||e[P]("media")]){e.setAttribute("media",t)}if(i){e.setAttribute("srcset",i)}};var s=Y(function(e,t,i,a,r){var n,s,l,o,u,f;if(!(u=Q(e,"lazybeforeunveil",t)).defaultPrevented){if(a){if(i){G(e,H.autosizesClass)}else{e.setAttribute("sizes",a)}}s=e[P](H.srcsetAttr);n=e[P](H.srcAttr);if(r){l=e.parentNode;o=l&&I.test(l.nodeName||"")}f=t.firesLoad||"src"in e&&(s||n||o);u={target:e};G(e,H.loadingClass);if(f){clearTimeout(c);c=$(x,2500);K(e,F,true)}if(o){q.call(l.getElementsByTagName("source"),L)}if(s){e.setAttribute("srcset",s)}else if(n&&!o){if(d.test(e.nodeName)){S(e,n)}else{e.src=n}}if(r&&(s||o)){U(e,{src:n})}}if(e._lazyRace){delete e._lazyRace}J(e,H.lazyClass);X(function(){if(!f||e.complete&&e.naturalWidth>1){B(u);e._lazyCache=true;$(function(){if("_lazyCache"in e){delete e._lazyCache}},9)}},true)});var R=function(e){var t;var i=n.test(e.nodeName);var a=i&&(e[P](H.sizesAttr)||e[P]("sizes"));var r=a=="auto";if((r||!m)&&i&&(e[P]("src")||e.srcset)&&!e.complete&&!j(e,H.errorClass)&&j(e,H.lazyClass)){return}t=Q(e,"lazyunveilread").detail;if(r){te.updateElem(e,true,e.offsetWidth)}e._lazyRace=true;M++;s(e,t,r,a,i)};var r=function(){if(m){return}if(o.now()-t<999){$(r,999);return}var e=ee(function(){H.loadMode=3;i()});m=true;H.loadMode=3;i();f("scroll",function(){if(H.loadMode==3){H.loadMode=2}e()},true)};return{_:function(){t=o.now();D.elements=k.getElementsByClassName(H.lazyClass);v=k.getElementsByClassName(H.lazyClass+" "+H.preloadClass);f("scroll",i,true);f("resize",i,true);if(l.MutationObserver){new MutationObserver(i).observe(O,{childList:true,subtree:true,attributes:true})}else{O[u]("DOMNodeInserted",i,true);O[u]("DOMAttrModified",i,true);setInterval(i,999)}f("hashchange",i,true);["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(e){k[u](e,i,true)});if(/d$|^c/.test(k.readyState)){r()}else{f("load",r);k[u]("DOMContentLoaded",i);$(r,2e4)}if(D.elements.length){e();X._lsFlush()}else{i()}},checkElems:i,unveil:R}}(),te=function(){var i;var n=Y(function(e,t,i,a){var r,n,s;e._lazysizesWidth=a;a+="px";e.setAttribute("sizes",a);if(I.test(t.nodeName||"")){r=t.getElementsByTagName("source");for(n=0,s=r.length;n<s;n++){r[n].setAttribute("sizes",a)}}if(!i.detail.dataAttr){U(e,i.detail)}});var a=function(e,t,i){var a;var r=e.parentNode;if(r){i=s(e,r,i);a=Q(e,"lazybeforesizes",{width:i,dataAttr:!!t});if(!a.defaultPrevented){i=a.detail.width;if(i&&i!==e._lazysizesWidth){n(e,r,a,i)}}}};var e=function(){var e;var t=i.length;if(t){e=0;for(;e<t;e++){a(i[e])}}};var t=ee(e);return{_:function(){i=k.getElementsByClassName(H.autosizesClass);f("resize",t)},checkElems:t,updateElem:a}}(),n=function(){if(!n.i){n.i=true;te._();e._()}};return D={cfg:H,autoSizer:te,loader:e,init:n,uP:U,aC:G,rC:J,hC:j,fire:Q,gW:s,rAF:X}}(e,e.document);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}(window);
6
- function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);var i=t.getBoundingClientRect();return i.top-jQuery(window).height()<=-100&&-400<=i.top-jQuery(window).height()||i.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")})}),function(c,r,p,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function s(t,i){this.element=t,this.$element=c(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=c.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}s.prototype.init=function(){var n=this;c(p).trigger("modula_api_before_init",[n]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),c(r).resize(function(){n.onResize(n)}),c(r).on("modula-update",function(){n.onResize(n)}),c(p).on("lazyloaded",function(t){var i,e,o=c(t.target);"modula"==o.data("source")&&(o.data("size",{width:o.width(),height:o.height()}),(i=o.parents(".modula-item")).addClass("tg-loaded"),e=n.$items.not(".jtg-hidden").index(i),n.placeImage(e),n.isIsotope&&n.$itemsCnt.modulaisotope("layout"))}),n.options.inView&&jQuery(r).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(n.$element)&&n.$element.addClass("modula-loaded-scale")}),this.setupSocial(),this.options.onComplete&&this.options.onComplete(),"fancybox"!=n.options.lightbox||n.options.initLightbox||this.initLightbox(),c(p).trigger("modula_api_after_init",[n])},s.prototype.initLightbox=function(){var o=this;o.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=c.map(o.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),e=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{caption:i.data("caption"),alt:e.attr("alt"),image_id:i.attr("data-image-id")}}}),e=o.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,o.options.lightboxOpts,e)})},s.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},s.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),d=this,l=this.options.columns,i=p.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?l=this.options.mobileColumns:i<=768&&(l=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(l-1))/l:Math.floor(t/l*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=c(i).data("width"),a=c(i).data("height");12<s&&(s=12),"1"==d.options.enableResponsive&&(e=s,o=a,1==l?a=(s=1)*o/e:((s=Math.round(l*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+d.options.gutter*(s-1),n.height=Math.round(h)*a+d.options.gutter*(a-1),c(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),c(i).css(c(i).data("size")),c(i).find(".figc").css({width:c(i).data("size").width,height:c(i).data("size").height}),r.loadImage(t)});var e={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(d.options.gutter)}};this.$itemsCnt.modulaisotope(e),this.isIsotope=!0},s.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];c(i).data("size",e),c(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),c(i).css({width:e.width,height:e.height}),c(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},s.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},s.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},s.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++){(o=this.tiles[i]).area>this.tiles[t].area&&(t=i)}var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},s.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),c(p).trigger("modula_api_reset",[this])},s.prototype.onResize=function(i){i.lastWidth!=i.$itemsCnt.width()&&(clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope("layout")},100))},s.prototype.loadImage=function(t){var i,e=this,o=e.$items.not(".jtg-hidden").eq(t).find(".pic"),n={};"0"==e.options.lazyLoad&&(void 0===o.attr("width")&&void 0===o.attr("height")?((i=new Image).onload=function(){n={width:this.width,height:this.height},o.data("size",n),e.placeImage(t)},"undefined"!=o.attr("src")?i.src=o.attr("src"):i.src=o.data("src")):(n={width:o.width(),height:o.height()},o.data("size",n),e.placeImage(t)))},s.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",r={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(r.width=o.width,r.left=0,a){case"top":r.top=0;break;case"middle":r.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":r.bottom=0}else switch(r.height=o.height,r.top=0,h){case"left":r.left=0;break;case"center":r.left=0-(o.height*s-o.width)/2;break;case"right":r.right=0}e.css(r),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},s.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&h(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&a(this.$items,this),this.options.enableEmail&&l(this.$items,this)},s.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption"),e=p.title;return 0<i.length&&(e=c.trim(i)),r.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split("#")[0])+"&text="+encodeURI(e),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption");p.title;0<e.length&&c.trim(e);i.attr("src");var o="//www.facebook.com/sharer.php?u="+location.href;return r.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},a=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption");p.title;return 0<i.length&&c.trim(i),r.open("https://api.whatsapp.com/send?text="+encodeURI(r.location.href.split("#")[0])+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},h=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption"),o=p.title;0<e.length&&(o=c.trim(e));var n,s,a,h="http://pinterest.com/pin/create/button/?url="+encodeURI(location.href)+"&description="+encodeURI(o);return 1==i.length&&(n=i.attr("src"),h+="&media="+(s=n,(a=p.createElement("img")).src=s,s=a.src,a.src=null,s)),r.open(h,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();var i="//linkedin.com/shareArticle?mini=true&url="+ +encodeURI(location.href);return r.open(i,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,s){t.find(".modula-icon-email").click(function(t){var i=encodeURI(s.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,n="mailto:?subject="+i+"&body="+encodeURI(s.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return r.open(n,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};c.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){c.data(this,"plugin_"+n)||c.data(this,"plugin_"+n,new s(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=c.data(this,"plugin_"+n);t instanceof s&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&c.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).attr("id"),i=jQuery(this).data("config");jQuery("#"+t).modulaGallery(i)})});
1
  !function(t){t.jQueryBridget=function(t,e){"use strict";var r=Array.prototype.slice,i=t.console,l=typeof i=="undefined"?function(){}:function(t){i.error(t)};function n(u,o,f){f=f||e||t.jQuery;if(!f){return}if(!o.prototype.option){o.prototype.option=function(t){if(!f.isPlainObject(t)){return}this.options=f.extend(true,this.options,t)}}f.fn[u]=function(t){if(typeof t=="string"){var e=r.call(arguments,1);return i(this,t,e)}n(this,t);return this};function i(t,r,s){var a;var h="$()."+u+'("'+r+'")';t.each(function(t,e){var i=f.data(e,u);if(!i){l(u+" not initialized. Cannot call methods, i.e. "+h);return}var n=i[r];if(!n||r.charAt(0)=="_"){l(h+" is not a valid method");return}var o=n.apply(i,s);a=a===undefined?o:a});return a!==undefined?a:t}function n(t,n){t.each(function(t,e){var i=f.data(e,u);if(i){i.option(n);i._init()}else{i=new o(e,n);f.data(e,u,i)}})}s(f)}function s(t){if(!t||t&&t.bridget){return}t.bridget=n}return s(e||t.jQuery),n}(t,t.jQuery)}(window),function(t){function e(){}var i;t.EvEmitter=((i=e.prototype).on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},i.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},i.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},i.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o];n&&n[r]&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},i.allOff=function(){delete this._events,delete this._onceEvents},e)}("undefined"!=typeof window?window:this),window.getSize=function(){"use strict";function v(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function t(){}var i=typeof console=="undefined"?t:function(t){console.error(t)},y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],_=y.length;function I(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<_;e++){var i=y[e];t[i]=0}return t}function z(t){var e=getComputedStyle(t);if(!e){i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See https://bit.ly/getsizebug1")}return e}var n=false,S;function E(){if(n){return}n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=z(t);S=Math.round(v(i.width))==200;o.isBoxSizeOuter=S;e.removeChild(t)}function o(t){E();if(typeof t=="string"){t=document.querySelector(t)}if(!t||typeof t!="object"||!t.nodeType){return}var e=z(t);if(e.display=="none"){return I()}var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var o=0;o<_;o++){var r=y[o];var s=e[r];var a=parseFloat(s);i[r]=!isNaN(a)?a:0}var h=i.paddingLeft+i.paddingRight;var u=i.paddingTop+i.paddingBottom;var f=i.marginLeft+i.marginRight;var l=i.marginTop+i.marginBottom;var d=i.borderLeftWidth+i.borderRightWidth;var c=i.borderTopWidth+i.borderBottomWidth;var m=n&&S;var p=v(e.width);if(p!==false){i.width=p+(m?0:h+d)}var g=v(e.height);if(g!==false){i.height=g+(m?0:u+c)}i.innerWidth=i.width-(h+d);i.innerHeight=i.height-(u+c);i.outerWidth=i.width+f;i.outerHeight=i.height+l;return i}return o}(),window.matchesSelector=function(){"use strict";var n=function(){var t=window.Element.prototype;if(t.matches){return"matches"}if(t.matchesSelector){return"matchesSelector"}var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var o=n+"MatchesSelector";if(t[o]){return o}}}();return function t(e,i){return e[n](i)}}(),function(t){t.fizzyUIUtils=function(u,r){var f={extend:function(t,e){for(var i in e){t[i]=e[i]}return t},modulo:function(t,e){return(t%e+e)%e}},i=Array.prototype.slice;f.makeArray=function(t){if(Array.isArray(t)){return t}if(t===null||t===undefined){return[]}var e=typeof t=="object"&&typeof t.length=="number";if(e){return i.call(t)}return[t]},f.removeFrom=function(t,e){var i=t.indexOf(e);if(i!=-1){t.splice(i,1)}},f.getParent=function(t,e){while(t.parentNode&&t!=document.body){t=t.parentNode;if(r(t,e)){return t}}},f.getQueryElement=function(t){if(typeof t=="string"){return document.querySelector(t)}return t},f.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}},f.filterFindElements=function(t,n){t=f.makeArray(t);var o=[];t.forEach(function(t){if(!(t instanceof HTMLElement)){return}if(!n){o.push(t);return}if(r(t,n)){o.push(t)}var e=t.querySelectorAll(n);for(var i=0;i<e.length;i++){o.push(e[i])}});return o},f.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e];var r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments;var i=this;this[r]=setTimeout(function(){o.apply(i,e);delete i[r]},n)}},f.docReady=function(t){var e=document.readyState;if(e=="complete"||e=="interactive"){setTimeout(t)}else{document.addEventListener("DOMContentLoaded",t)}},f.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var l=u.console;return f.htmlInit=function(a,h){f.docReady(function(){var t=f.toDashed(h),o="data-"+t,e=document.querySelectorAll("["+o+"]"),i=document.querySelectorAll(".js-"+t),n=f.makeArray(e).concat(f.makeArray(i)),r=o+"-options",s=u.jQuery;n.forEach(function(e){var t,i=e.getAttribute(o)||e.getAttribute(r);try{t=i&&JSON.parse(i)}catch(t){return void(l&&l.error("Error parsing "+o+" on "+e.className+": "+t))}var n=new a(e,t);s&&s.data(e,h,n)})})},f}(t,t.matchesSelector)}(window),function(t){t.Outlayer={},t.Outlayer.Item=function(t,e){"use strict";function o(t){for(var e in t){return false}e=null;return true}var i=document.documentElement.style,n=typeof i.transition=="string"?"transition":"WebkitTransition",r=typeof i.transform=="string"?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],a={transform:r,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function h(t,e){if(!t){return}this.element=t;this.layout=e;this.position={x:0,y:0};this._create()}var u=h.prototype=Object.create(t.prototype);function f(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}u.constructor=h,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},u.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}},u.getSize=function(){this.size=e(this.element)},u.css=function(t){var e=this.element.style;for(var i in t){var n=a[i]||i;e[n]=t[i]}},u.getPosition=function(){var t=getComputedStyle(this.element);var e=this.layout._getOption("originLeft");var i=this.layout._getOption("originTop");var n=t[e?"left":"right"];var o=t[i?"top":"bottom"];var r=parseFloat(n);var s=parseFloat(o);var a=this.layout.size;if(n.indexOf("%")!=-1){r=r/100*a.width}if(o.indexOf("%")!=-1){s=s/100*a.height}r=isNaN(r)?0:r;s=isNaN(s)?0:s;r-=e?a.paddingLeft:a.paddingRight;s-=i?a.paddingTop:a.paddingBottom;this.position.x=r;this.position.y=s},u.layoutPosition=function(){var t=this.layout.size;var e={};var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");var o=i?"paddingLeft":"paddingRight";var r=i?"left":"right";var s=i?"right":"left";var a=this.position.x+t[o];e[r]=this.getXValue(a);e[s]="";var h=n?"paddingTop":"paddingBottom";var u=n?"top":"bottom";var f=n?"bottom":"top";var l=this.position.y+t[h];e[u]=this.getYValue(l);e[f]="";this.css(e);this.emitEvent("layout",[this])},u.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},u.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},u._transitionTo=function(t,e){this.getPosition();var i=this.position.x;var n=this.position.y;var o=t==this.position.x&&e==this.position.y;this.setPosition(t,e);if(o&&!this.isTransitioning){this.layoutPosition();return}var r=t-i;var s=e-n;var a={};a.transform=this.getTranslate(r,s);this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:true})},u.getTranslate=function(t,e){var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");t=i?t:-t;e=n?e:-e;return"translate3d("+t+"px, "+e+"px, 0)"},u.goTo=function(t,e){this.setPosition(t,e);this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(t,e){this.position.x=parseFloat(t);this.position.y=parseFloat(e)},u._nonTransition=function(t){this.css(t.to);if(t.isCleaning){this._removeStyles(t.to)}for(var e in t.onTransitionEnd){t.onTransitionEnd[e].call(this)}},u.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(t);return}var e=this._transn;for(var i in t.onTransitionEnd){e.onEnd[i]=t.onTransitionEnd[i]}for(i in t.to){e.ingProperties[i]=true;if(t.isCleaning){e.clean[i]=true}}if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to);this.css(t.to);this.isTransitioning=true};var l="opacity,"+f(r);u.enableTransition=function(){if(this.isTransitioning){return}var t=this.layout.options.transitionDuration;t=typeof t=="number"?t+"ms":t;this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0});this.element.addEventListener(s,this,false)},u.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},u.onotransitionend=function(t){this.ontransitionend(t)};var d={"-webkit-transform":"transform"};u.ontransitionend=function(t){if(t.target!==this.element){return}var e=this._transn;var i=d[t.propertyName]||t.propertyName;delete e.ingProperties[i];if(o(e.ingProperties)){this.disableTransition()}if(i in e.clean){this.element.style[t.propertyName]="";delete e.clean[i]}if(i in e.onEnd){var n=e.onEnd[i];n.call(this);delete e.onEnd[i]}this.emitEvent("transitionEnd",[this])},u.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(s,this,false);this.isTransitioning=false},u._removeStyles=function(t){var e={};for(var i in t){e[i]=""}this.css(e)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return u.removeTransitionStyles=function(){this.css(c)},u.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},u.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},u.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},u.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},u.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},u.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},u.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},h}(t.EvEmitter,t.getSize)}(window),function(t){"use strict";t.Outlayer=function(t,e,r,s,n){"use strict";var a=t.console,h=t.jQuery,i=function(){},u=0,f={};function o(t,e){var i=s.getQueryElement(t);if(!i){if(a){a.error("Bad element for "+this.constructor.namespace+": "+(i||t))}return}this.element=i;if(h){this.$element=h(this.element)}this.options=s.extend({},this.constructor.defaults);this.option(e);var n=++u;this.element.outlayerGUID=n;f[n]=this;this._create();var o=this._getOption("initLayout");if(o){this.layout()}}o.namespace="outlayer",o.Item=n,o.defaults={containerStyle:{position:"relative"},initLayout:true,originLeft:true,originTop:true,resize:true,resizeContainer:true,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var l=o.prototype;function d(t){function e(){t.apply(this,arguments)}e.prototype=Object.create(t.prototype);e.prototype.constructor=e;return e}s.extend(l,e.prototype),l.option=function(t){s.extend(this.options,t)},l._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&this.options[e]!==undefined?this.options[e]:this.options[t]},o.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},l._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);s.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");if(t){this.bindResize()}},l.reloadItems=function(){this.items=this._itemize(this.element.children)},l._itemize=function(t){var e=this._filterFindItemElements(t);var i=this.constructor.Item;var n=[];for(var o=0;o<e.length;o++){var r=e[o];var s=new i(r,this);n.push(s)}return n},l._filterFindItemElements=function(t){return s.filterFindElements(t,this.options.itemSelector)},l.getItemElements=function(){return this.items.map(function(t){return t.element})},l.layout=function(){this._resetLayout();this._manageStamps();var t=this._getOption("layoutInstant");var e=t!==undefined?t:!this._isLayoutInited;this.layoutItems(this.items,e);this._isLayoutInited=true},l._init=l.layout,l._resetLayout=function(){this.getSize()},l.getSize=function(){this.size=r(this.element)},l._getMeasurement=function(t,e){var i=this.options[t];var n;if(!i){this[t]=0}else{if(typeof i=="string"){n=this.element.querySelector(i)}else if(i instanceof HTMLElement){n=i}this[t]=n?r(n)[e]:i}},l.layoutItems=function(t,e){t=this._getItemsForLayout(t);this._layoutItems(t,e);this._postLayout()},l._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},l._layoutItems=function(t,i){this._emitCompleteOnItems("layout",t);if(!t||!t.length){return}var n=[];t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t;e.isInstant=i||t.isLayoutInstant;n.push(e)},this);this._processLayoutQueue(n)},l._getItemLayoutPosition=function(){return{x:0,y:0}},l._processLayoutQueue=function(t){this.updateStagger();t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},l.updateStagger=function(){var t=this.options.stagger;if(t===null||t===undefined){this.stagger=0;return}this.stagger=m(t);return this.stagger},l._positionItem=function(t,e,i,n,o){if(n){t.goTo(e,i)}else{t.stagger(o*this.stagger);t.moveTo(e,i)}},l._postLayout=function(){this.resizeContainer()},l.resizeContainer=function(){var t=this._getOption("resizeContainer");if(!t){return}var e=this._getContainerSize();if(e){this._setContainerMeasure(e.width,true);this._setContainerMeasure(e.height,false)}},l._getContainerSize=i,l._setContainerMeasure=function(t,e){if(t===undefined){return}var i=this.size;if(i.isBorderBox){t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth}t=Math.max(t,0);this.element.style[e?"width":"height"]=t+"px"},l._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o=t.length;if(!t||!o){n();return}var r=0;function s(){r++;if(r==o){n()}}t.forEach(function(t){t.once(e,s)})},l.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n);if(h){this.$element=this.$element||h(this.element);if(e){var o=h.Event(e);o.type=t;this.$element.trigger(o,i)}else{this.$element.trigger(t,i)}}},l.ignore=function(t){var e=this.getItem(t);if(e){e.isIgnored=true}},l.unignore=function(t){var e=this.getItem(t);if(e){delete e.isIgnored}},l.stamp=function(t){t=this._find(t);if(!t){return}this.stamps=this.stamps.concat(t);t.forEach(this.ignore,this)},l.unstamp=function(t){t=this._find(t);if(!t){return}t.forEach(function(t){s.removeFrom(this.stamps,t);this.unignore(t)},this)},l._find=function(t){if(!t){return}if(typeof t=="string"){t=this.element.querySelectorAll(t)}t=s.makeArray(t);return t},l._manageStamps=function(){if(!this.stamps||!this.stamps.length){return}this._getBoundingRect();this.stamps.forEach(this._manageStamp,this)},l._getBoundingRect=function(){var t=this.element.getBoundingClientRect();var e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},l._manageStamp=i,l._getElementOffset=function(t){var e=t.getBoundingClientRect();var i=this._boundingRect;var n=r(t);var o={left:e.left-i.left-n.marginLeft,top:e.top-i.top-n.marginTop,right:i.right-e.right-n.marginRight,bottom:i.bottom-e.bottom-n.marginBottom};return o},l.handleEvent=s.handleEvent,l.bindResize=function(){t.addEventListener("resize",this);this.isResizeBound=true},l.unbindResize=function(){t.removeEventListener("resize",this);this.isResizeBound=false},l.onresize=function(){this.resize()},s.debounceMethod(o,"onresize",100),l.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return}this.layout()},l.needsResizeLayout=function(){var t=r(this.element);var e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},l.addItems=function(t){var e=this._itemize(t);if(e.length){this.items=this.items.concat(e)}return e},l.appended=function(t){var e=this.addItems(t);if(!e.length){return}this.layoutItems(e,true);this.reveal(e)},l.prepended=function(t){var e=this._itemize(t);if(!e.length){return}var i=this.items.slice(0);this.items=e.concat(i);this._resetLayout();this._manageStamps();this.layoutItems(e,true);this.reveal(e);this.layoutItems(i)},l.reveal=function(t){this._emitCompleteOnItems("reveal",t);if(!t||!t.length){return}var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i);t.reveal()})},l.hide=function(t){this._emitCompleteOnItems("hide",t);if(!t||!t.length){return}var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i);t.hide()})},l.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},l.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},l.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t){return i}}},l.getItems=function(t){t=s.makeArray(t);var i=[];t.forEach(function(t){var e=this.getItem(t);if(e){i.push(e)}},this);return i},l.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e);if(!e||!e.length){return}e.forEach(function(t){t.remove();s.removeFrom(this.items,t)},this)},l.destroy=function(){var t=this.element.style;t.height="";t.position="";t.width="";this.items.forEach(function(t){t.destroy()});this.unbindResize();var e=this.element.outlayerGUID;delete f[e];delete this.element.outlayerGUID;if(h){h.removeData(this.element,this.constructor.namespace)}},o.data=function(t){t=s.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},o.create=function(t,e){var i=d(o);i.defaults=s.extend({},o.defaults);s.extend(i.defaults,e);i.compatOptions=s.extend({},o.compatOptions);i.namespace=t;i.data=o.data;i.Item=d(n);s.htmlInit(i,t);if(h&&h.bridget){h.bridget(t,i)}return i};var c={ms:1,s:1e3};function m(t){if(typeof t=="number"){return t}var e=t.match(/(^\d*\.?\d*)(\w*)/);var i=e&&e[1];var n=e&&e[2];if(!i.length){return 0}i=parseFloat(i);var o=c[n]||1;return i*o}return o.Item=n,o}(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window),function(t){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.Item=function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++;n.call(this);this.sortData={}},i.updateSortData=function(){if(this.isIgnored){return}this.sortData.id=this.id;this.sortData["original-order"]=this.id;this.sortData.random=Math.random();var t=this.layout.options.getSortData;var e=this.layout._sorters;for(var i in t){var n=e[i];this.sortData[i]=n(this.element,this)}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e}(t.Outlayer)}(window),function(t){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.LayoutMode=function(e,i){"use strict";function n(t){this.isotope=t;if(t){this.options=t.options[this.namespace];this.element=t.element;this.items=t.filteredItems;this.size=t.size}}var o=n.prototype,t=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i,n=t+e,o="outer"+e;this._getMeasurement(n,o),this[n]||(i=this.getFirstItemSize(),this[n]=i&&i[o]||this.isotope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n}(t.getSize,t.Outlayer)}(window),function(t){t.Masonry=function(t,u){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";var i=e.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){var t,e;this.getContainerWidth(),this.columnWidth||(e=(t=this.items[0])&&t.element,this.columnWidth=e&&u(e).outerWidth||this.containerWidth);var i=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,o=n/i,r=i-n%i,o=Math[r&&r<1?"round":"floor"](o);this.cols=Math.max(o,1)},i.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,e=u(t);this.containerWidth=e&&e.innerWidth},i._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),i=Math.min(i,this.cols),n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),o={x:this.columnWidth*n.col,y:n.y},r=n.y+t.size.outerHeight,s=i+n.col,a=n.col;a<s;a++)this.colYs[a]=r;return o},i._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},i._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},i._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},i._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},i._manageStamp=function(t){var e=u(t),i=this._getElementOffset(t),n=this._getOption("originLeft")?i.left:i.right,o=n+e.outerWidth,r=Math.floor(n/this.columnWidth),r=Math.max(0,r),s=Math.floor(o/this.columnWidth);s-=o%this.columnWidth?0:1,s=Math.min(this.cols-1,s);for(var a=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,h=r;h<=s;h++)this.colYs[h]=Math.max(a,this.colYs[h])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e}(t.Outlayer,t.getSize)}(window),function(t){!function(t,e){"use strict";var i=t.create("masonry"),n=i.prototype,o={_getElementOffset:true,layout:true,_getMeasurement:true};for(var r in e.prototype){if(!o[r]){n[r]=e.prototype[r]}}var s=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems;s.call(this)};var a=n._getOption;n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)}}(t.ModulaIsotope.LayoutMode,t.Masonry)}(window),function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}}}(window.ModulaIsotope.LayoutMode),function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}}}(window.ModulaIsotope.LayoutMode),function(t){t.ModulaIsotope=function(t,n,i,r,e,o){var s=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=n.create("modulaisotope",{layoutMode:"masonry",isJQueryFiltering:true,sortAscending:true});u.Item=e,u.LayoutMode=o;var a=u.prototype;a._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();n.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=["original-order"];for(var t in o.modes){this._initLayoutMode(t)}},a.reloadItems=function(){this.itemGUID=0;n.prototype.reloadItems.call(this)},a._itemize=function(){var t=n.prototype._itemize.apply(this,arguments);for(var e=0;e<t.length;e++){var i=t[e];i.id=this.itemGUID++}this._updateItemsSortData(t);return t},a._initLayoutMode=function(t){var e=o.modes[t];var i=this.options[t]||{};this.options[t]=e.options?r.extend(e.options,i):i;this.modes[t]=new e(this)},a.layout=function(){if(!this._isLayoutInited&&this._getOption("initLayout")){this.arrange();return}this._layout()},a._layout=function(){var t=this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,t);this._isLayoutInited=true},a.arrange=function(t){this.option(t);this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches;this._bindArrangeComplete();if(this._isInstant){this._noTransition(this._hideReveal,[e])}else{this._hideReveal(e)}this._sort();this._layout()},a._init=a.arrange,a._hideReveal=function(t){this.reveal(t.needReveal);this.hide(t.needHide)},a._getIsInstant=function(){var t=this._getOption("layoutInstant");var e=t!==undefined?t:!this._isLayoutInited;this._isInstant=e;return e},a._bindArrangeComplete=function(){var t,e,i;var n=this;function o(){if(t&&e&&i){n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}}this.once("layoutComplete",function(){t=true;o()});this.once("hideComplete",function(){e=true;o()});this.once("revealComplete",function(){i=true;o()})},a._filter=function(t){var e=this.options.filter;e=e||"*";var i=[];var n=[];var o=[];var r=this._getFilterTest(e);for(var s=0;s<t.length;s++){var a=t[s];if(a.isIgnored){continue}var h=r(a);if(h){i.push(a)}if(h&&a.isHidden){n.push(a)}else if(!h&&!a.isHidden){o.push(a)}}return{matches:i,needReveal:n,needHide:o}},a._getFilterTest=function(e){if(s&&this.options.isJQueryFiltering){return function(t){return s(t.element).is(e)}}if(typeof e=="function"){return function(t){return e(t.element)}}return function(t){return i(t.element,e)}},a.updateSortData=function(t){var e;if(t){t=r.makeArray(t);e=this.getItems(t)}else{e=this.items}this._getSorters();this._updateItemsSortData(e)},a._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},a._updateItemsSortData=function(t){var e=t&&t.length;for(var i=0;e&&i<e;i++){var n=t[i];n.updateSortData()}};var f=function(){function t(t){if(typeof t!="string"){return t}var e=h(t).split(" ");var i=e[0];var n=i.match(/^\[(.+)\]$/);var o=n&&n[1];var r=a(o,i);var s=u.sortDataParsers[e[1]];t=s?function(t){return t&&s(r(t))}:function(t){return t&&r(t)};return t}function a(i,n){if(i){return function t(e){return e.getAttribute(i)}}return function t(e){var i=e.querySelector(n);return i&&i.textContent}}return t}();function l(u,f){return function t(e,i){for(var n=0;n<u.length;n++){var o=u[n];var r=e.sortData[o];var s=i.sortData[o];if(r>s||r<s){var a=f[o]!==undefined?f[o]:f;var h=a?1:-1;return(r>s?1:-1)*h}}return 0}}u.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},a._sort=function(){if(!this.options.sortBy){return}var t=r.makeArray(this.options.sortBy);if(!this._getIsSameSortBy(t)){this.sortHistory=t.concat(this.sortHistory)}var e=l(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)},a._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++){if(t[e]!=this.sortHistory[e]){return false}}return true},a._mode=function(){var t=this.options.layoutMode;var e=this.modes[t];if(!e){throw new Error("No layout mode: "+t)}e.options=this.options[t];return e},a._resetLayout=function(){n.prototype._resetLayout.call(this);this._mode()._resetLayout()},a._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},a._manageStamp=function(t){this._mode()._manageStamp(t)},a._getContainerSize=function(){return this._mode()._getContainerSize()},a.needsResizeLayout=function(){return this._mode().needsResizeLayout()},a.appended=function(t){var e=this.addItems(t);if(!e.length){return}var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)},a.prepended=function(t){var e=this._itemize(t);if(!e.length){return}this._resetLayout();this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems);this.filteredItems=i.concat(this.filteredItems);this.items=e.concat(this.items)},a._filterRevealAdded=function(t){var e=this._filter(t);this.hide(e.needHide);this.reveal(e.matches);this.layoutItems(e.matches,true);return e.matches},a.insert=function(t){var e=this.addItems(t);if(!e.length){return}var i,n;var o=e.length;for(i=0;i<o;i++){n=e[i];this.element.appendChild(n.element)}var r=this._filter(e).matches;for(i=0;i<o;i++){e[i].isLayoutInstant=true}this.arrange();for(i=0;i<o;i++){delete e[i].isLayoutInstant}this.reveal(r)};var d=a.remove;return a.remove=function(t){t=r.makeArray(t);var e=this.getItems(t);d.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var o=e[n];r.removeFrom(this.filteredItems,o)}},a.shuffle=function(){for(var t=0;t<this.items.length;t++){this.items[t].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},a._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=t.apply(this,e);return this.options.transitionDuration=i,n},a.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},u}(t,t.Outlayer,(t.getSize,t.matchesSelector),t.fizzyUIUtils,t.ModulaIsotope.Item,t.ModulaIsotope.LayoutMode)}(window);
2
  !function(t){t.Packery=t.Packery||{},t.Packery.Rect=function(){function a(t){for(var i in a.defaults){this[i]=a.defaults[i]}for(i in t){this[i]=t[i]}}a.defaults={x:0,y:0,width:0,height:0};var t=a.prototype;return t.contains=function(t){var i=t.width||0,e=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+i&&this.y+this.height>=t.y+e},t.overlaps=function(t){var i=this.x+this.width,e=this.y+this.height,s=t.x+t.width,r=t.y+t.height;return this.x<s&&i>t.x&&this.y<r&&e>t.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var i,e=[],s=this.x+this.width,r=this.y+this.height,h=t.x+t.width,n=t.y+t.height;return this.y<t.y&&(i=new a({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),e.push(i)),h<s&&(i=new a({x:h,y:this.y,width:s-h,height:this.height}),e.push(i)),n<r&&(i=new a({x:this.x,y:n,width:this.width,height:r-n}),e.push(i)),this.x<t.x&&(i=new a({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),e.push(i)),e},t.canFit=function(t){return this.width>=t.width&&this.height>=t.height},a}()}(window),function(t){var i=t.Packery=t.Packery||{};i.Packer=function(i){function t(t,i,e){this.width=t||0;this.height=i||0;this.sortDirection=e||"downwardLeftToRight";this.reset()}var e=t.prototype;e.reset=function(){this.spaces=[];var t=new i({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t);this.sorter=s[this.sortDirection]||s.downwardLeftToRight},e.pack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.canFit(t)){this.placeInSpace(t,e);break}}},e.columnPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];var s=e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.height>=t.height-.01;if(s){t.y=e.y;this.placed(t);break}}},e.rowPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];var s=e.y<=t.y&&e.y+e.height>=t.y+t.height&&e.width>=t.width-.01;if(s){t.x=e.x;this.placed(t);break}}},e.placeInSpace=function(t,i){t.x=i.x;t.y=i.y;this.placed(t)},e.placed=function(t){var i=[];for(var e=0;e<this.spaces.length;e++){var s=this.spaces[e];var r=s.getMaximalFreeRects(t);if(r){i.push.apply(i,r)}else{i.push(s)}}this.spaces=i;this.mergeSortSpaces()},e.mergeSortSpaces=function(){t.mergeRects(this.spaces);this.spaces.sort(this.sorter)},e.addSpace=function(t){this.spaces.push(t);this.mergeSortSpaces()},t.mergeRects=function(t){var i=0;var e=t[i];t:while(e){var s=0;var r=t[i+s];while(r){if(r==e){s++}else if(r.contains(e)){t.splice(i,1);e=t[i];continue t}else if(e.contains(r)){t.splice(i+s,1)}else{s++}r=t[i+s]}i++;e=t[i]}return t};var s={downwardLeftToRight:function(t,i){return t.y-i.y||t.x-i.x},rightwardTopToBottom:function(t,i){return t.x-i.x||t.y-i.y}};return t}(i.Rect)}(window),function(t){t.Packery.Item=function(i,t){var e,s=typeof document.documentElement.style.transform=="string"?"transform":"WebkitTransform",r=function t(){i.Item.apply(this,arguments)},h=r.prototype=Object.create(i.Item.prototype),n=h._create;h._create=function(){n.call(this);this.rect=new t};var a=h.moveTo;return h.moveTo=function(t,i){var e=Math.abs(this.position.x-t),s=Math.abs(this.position.y-i);this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&e<1&&s<1?this.goTo(t,i):a.apply(this,arguments)},h.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&s&&(this.element.style[s]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},h.disablePlacing=function(){this.isPlacing=!1},h.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},h.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||((t=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},h.positionDropPlaceholder=function(){this.dropPlaceholder.style[s]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},h.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},r}(t.Outlayer,t.Packery.Rect)}(window),function(t){t.Packery=function(u,t,f,i,e){f.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var s=t.create("packery");s.Item=e;var r=s.prototype;function h(t,i){return t.position.y-i.position.y||t.position.x-i.position.x}function n(t,i){return t.position.x-i.position.x||t.position.y-i.position.y}function a(t,i){var e=i.x-t.x;var s=i.y-t.y;return Math.sqrt(e*e+s*s)}r._create=function(){t.prototype._create.call(this);this.packer=new i;this.shiftPacker=new i;this.isEnabled=true;this.dragItemCount=0;var s=this;this.handleDraggabilly={dragStart:function(){s.itemDragStart(this.element)},dragMove:function(){s.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){s.itemDragEnd(this.element)}};this.handleUIDraggable={start:function t(i,e){if(!e){return}s.itemDragStart(i.currentTarget)},drag:function t(i,e){if(!e){return}s.itemDragMove(i.currentTarget,e.position.left,e.position.top)},stop:function t(i,e){if(!e){return}s.itemDragEnd(i.currentTarget)}}},r._resetLayout=function(){this.getSize();this._getMeasurements();var t,i,e;if(this._getOption("horizontal")){t=Infinity;i=this.size.innerHeight+this.gutter;e="rightwardTopToBottom"}else{t=this.size.innerWidth+this.gutter;i=Infinity;e="downwardLeftToRight"}this.packer.width=this.shiftPacker.width=t;this.packer.height=this.shiftPacker.height=i;this.packer.sortDirection=this.shiftPacker.sortDirection=e;this.packer.reset();this.maxY=0;this.maxX=0},r._getMeasurements=function(){this._getMeasurement("columnWidth","width");this._getMeasurement("rowHeight","height");this._getMeasurement("gutter","width")},r._getItemLayoutPosition=function(t){this._setRectSize(t.element,t.rect);if(this.isShifting||this.dragItemCount>0){var i=this._getPackMethod();this.packer[i](t.rect)}else{this.packer.pack(t.rect)}this._setMaxXY(t.rect);return t.rect},r.shiftLayout=function(){this.isShifting=true;this.layout();delete this.isShifting},r._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},r._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX);this.maxY=Math.max(t.y+t.height,this.maxY)},r._setRectSize=function(t,i){var e=u(t);var s=e.outerWidth;var r=e.outerHeight;if(s||r){s=this._applyGridGutter(s,this.columnWidth);r=this._applyGridGutter(r,this.rowHeight)}i.width=Math.min(s,this.packer.width);i.height=Math.min(r,this.packer.height)},r._applyGridGutter=function(t,i){if(!i){return t+this.gutter}i+=this.gutter;var e=t%i;var s=e&&e<1?"round":"ceil";t=Math[s](t/i)*i;return t},r._getContainerSize=function(){if(this._getOption("horizontal")){return{width:this.maxX-this.gutter}}else{return{height:this.maxY-this.gutter}}},r._manageStamp=function(t){var i=this.getItem(t);var e;if(i&&i.isPlacing){e=i.rect}else{var s=this._getElementOffset(t);e=new f({x:this._getOption("originLeft")?s.left:s.right,y:this._getOption("originTop")?s.top:s.bottom})}this._setRectSize(t,e);this.packer.placed(e);this._setMaxXY(e)},r.sortItemsByPosition=function(){var t=this._getOption("horizontal")?n:h;this.items.sort(t)},r.fit=function(t,i,e){var s=this.getItem(t);if(!s){return}this.stamp(s.element);s.enablePlacing();this.updateShiftTargets(s);i=i===undefined?s.rect.x:i;e=e===undefined?s.rect.y:e;this.shift(s,i,e);this._bindFitEvents(s);s.moveTo(s.rect.x,s.rect.y);this.shiftLayout();this.unstamp(s.element);this.sortItemsByPosition();s.disablePlacing()},r._bindFitEvents=function(t){var i=this;var e=0;function s(){e++;if(e!=2){return}i.dispatchEvent("fitComplete",null,[t])}t.once("layout",s);this.once("layoutComplete",s)},r.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return}if(this.options.shiftPercentResize){this.resizeShiftPercentLayout()}else{this.layout()}},r.needsResizeLayout=function(){var t=u(this.element);var i=this._getOption("horizontal")?"innerHeight":"innerWidth";return t[i]!=this.size[i]},r.resizeShiftPercentLayout=function(){var t=this._getItemsForLayout(this.items);var i=this._getOption("horizontal");var e=i?"y":"x";var s=i?"height":"width";var r=i?"rowHeight":"columnWidth";var h=i?"innerHeight":"innerWidth";var n=this[r];n=n&&n+this.gutter;if(n){this._getMeasurements();var a=this[r]+this.gutter;t.forEach(function(t){var i=Math.round(t.rect[e]/n);t.rect[e]=i*a})}else{var o=u(this.element)[h]+this.gutter;var c=this.packer[s];t.forEach(function(t){t.rect[e]=t.rect[e]/c*o})}this.shiftLayout()},r.itemDragStart=function(t){if(!this.isEnabled){return}this.stamp(t);var i=this.getItem(t);if(!i){return}i.enablePlacing();i.showDropPlaceholder();this.dragItemCount++;this.updateShiftTargets(i)},r.updateShiftTargets=function(t){this.shiftPacker.reset();this._getBoundingRect();var r=this._getOption("originLeft");var h=this._getOption("originTop");this.stamps.forEach(function(t){var i=this.getItem(t);if(i&&i.isPlacing){return}var e=this._getElementOffset(t);var s=new f({x:r?e.left:e.right,y:h?e.top:e.bottom});this._setRectSize(t,s);this.shiftPacker.placed(s)},this);var o=this._getOption("horizontal");var i=o?"rowHeight":"columnWidth";var c=o?"height":"width";this.shiftTargetKeys=[];this.shiftTargets=[];var u;var g=this[i];g=g&&g+this.gutter;if(g){var e=Math.ceil(t.rect[c]/g);var s=Math.floor((this.shiftPacker[c]+this.gutter)/g);u=(s-e)*g;for(var n=0;n<s;n++){this._addShiftTarget(n*g,0,u)}}else{u=this.shiftPacker[c]+this.gutter-t.rect[c];this._addShiftTarget(0,0,u)}var a=this._getItemsForLayout(this.items);var l=this._getPackMethod();a.forEach(function(t){var i=t.rect;this._setRectSize(t.element,i);this.shiftPacker[l](i);this._addShiftTarget(i.x,i.y,u);var e=o?i.x+i.width:i.x;var s=o?i.y:i.y+i.height;this._addShiftTarget(e,s,u);if(g){var r=Math.round(i[c]/g);for(var h=1;h<r;h++){var n=o?e:i.x+g*h;var a=o?i.y+g*h:s;this._addShiftTarget(n,a,u)}}},this)},r._addShiftTarget=function(t,i,e){var s=this._getOption("horizontal")?i:t;if(s!==0&&s>e){return}var r=t+","+i;var h=this.shiftTargetKeys.indexOf(r)!=-1;if(h){return}this.shiftTargetKeys.push(r);this.shiftTargets.push({x:t,y:i})},r.shift=function(t,i,e){var s;var r=Infinity;var h={x:i,y:e};this.shiftTargets.forEach(function(t){var i=a(t,h);if(i<r){s=t;r=i}});t.rect.x=s.x;t.rect.y=s.y};var o=120;r.itemDragMove=function(t,i,e){var s=this.isEnabled&&this.getItem(t);if(!s){return}i-=this.size.paddingLeft;e-=this.size.paddingTop;var r=this;function h(){r.shift(s,i,e);s.positionDropPlaceholder();r.layout()}var n=new Date;if(this._itemDragTime&&n-this._itemDragTime<o){clearTimeout(this.dragTimeout);this.dragTimeout=setTimeout(h,o)}else{h();this._itemDragTime=n}},r.itemDragEnd=function(t){var i=this.isEnabled&&this.getItem(t);if(!i){return}clearTimeout(this.dragTimeout);i.element.classList.add("is-positioning-post-drag");var e=0;var s=this;function r(){e++;if(e!=2){return}i.element.classList.remove("is-positioning-post-drag");i.hideDropPlaceholder();s.dispatchEvent("dragItemPositioned",null,[i])}i.once("layout",r);this.once("layoutComplete",r);i.moveTo(i.rect.x,i.rect.y);this.layout();this.dragItemCount=Math.max(0,this.dragItemCount-1);this.sortItemsByPosition();i.disablePlacing();this.unstamp(i.element)},r.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},r.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},r._bindDraggabillyEvents=function(t,i){var e=this.handleDraggabilly;t[i]("dragStart",e.dragStart);t[i]("dragMove",e.dragMove);t[i]("dragEnd",e.dragEnd)},r.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},r.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},r._bindUIDraggableEvents=function(t,i){var e=this.handleUIDraggable;t[i]("dragstart",e.start)[i]("drag",e.drag)[i]("dragstop",e.stop)};var c=r.destroy;return r.destroy=function(){c.apply(this,arguments),this.isEnabled=!1},s.Rect=f,s.Packer=i,s}(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window),function(t){!function(t,i){var e=t.create("packery"),s=e.prototype,r={_getElementOffset:true,_getMeasurement:true};for(var h in i.prototype){if(!r[h]){s[h]=i.prototype[h]}}var n=s._resetLayout;s._resetLayout=function(){this.packer=this.packer||new i.Packer;this.shiftPacker=this.shiftPacker||new i.Packer;n.apply(this,arguments)};var a=s._getItemLayoutPosition;s._getItemLayoutPosition=function(t){t.rect=t.rect||new i.Rect;return a.call(this,t)};var o=s.needsResizeLayout;s.needsResizeLayout=function(){if(this._getOption("horizontal")){return this.needsVerticalResizeLayout()}else{return o.call(this)}};var c=s._getOption;s._getOption=function(t){return"horizontal"==t?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:c.apply(this.isotope,arguments)}}(t.ModulaIsotope.LayoutMode,t.Packery)}(window);
3
  !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(l){function r(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:l('<div class="spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}r.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},r.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},r.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},r.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)){if(0===this.settings.sizeRangeSuffixes[i].length)continue;if(this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i]}return""},r.prototype.newSrc=function(t,i,e,s){var n,r,o;return this.settings.thumbnailPath?o=this.settings.thumbnailPath(t,i,e,s):(r=null!==(n=t.match(this.settings.extension))?n[0]:"",o=t.replace(this.settings.extension,""),o=this.removeSuffix(o,this.getUsedSuffix(o)),o+=this.getSuffix(i,e)+r),o},r.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},r.prototype.extractImgSrcFromImage=function(t){var i=void 0!==t.data("safe-src")?t.data("safe-src"):t.attr("src");return t.data("jg.originalSrc",i),i},r.prototype.imgFromEntry=function(t){var i=t.find(this.settings.imgSelector);return 0===i.length?null:i},r.prototype.captionFromEntry=function(t){var i=t.find("> .caption");return 0===i.length?null:i},r.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h,g=this.imgFromEntry(t);null!==g?(g.css("width",s),g.css("height",n),g.css("margin-left",-s/2),g.css("margin-top",-n/2),o=g.attr("src"),a=this.newSrc(o,s,n,g[0]),g.one("error",function(){g.attr("src",g.data("jg.originalSrc"))}),h=function(){o!==a&&g.attr("src",a)},"skipped"===t.data("jg.loaded")?this.onImageEvent(o,l.proxy(function(){this.showImg(t,h),t.data("jg.loaded",!0)},this)):this.showImg(t,h)):this.showImg(t),this.displayEntryCaption(t)},r.prototype.displayEntryCaption=function(t){var i,e,s=this.imgFromEntry(t);null!==s&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=s.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=l('<div class="caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},r.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},r.prototype.onEntryMouseEnterForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.addClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},r.prototype.onEntryMouseLeaveForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.removeClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},r.prototype.addCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0===i&&(i={mouseenter:l.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:l.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},r.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},r.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},r.prototype.prepareBuildingRow=function(t){var i,e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(t&&"hide"===this.settings.lastRow&&!u){for(i=0;i<this.buildingRow.entriesBuff.length;i++)e=this.buildingRow.entriesBuff[i],this.settings.cssAnimation?e.removeClass("entry-visible"):(e.stop().fadeTo(0,.1),e.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),i=0;i<this.buildingRow.entriesBuff.length;i++)s=(e=this.buildingRow.entriesBuff[i]).data("jg.width")/e.data("jg.height"),r=o?(n=i===this.buildingRow.entriesBuff.length-1?h:g*s,g):(n=l*s,l),h-=Math.round(n),e.data("jg.jwidth",Math.round(n)),e.data("jg.jheight",Math.ceil(r)),(0===i||r<a)&&(a=r);return this.buildingRow.height=a,o},r.prototype.flushRow=function(t){var i,e=this.settings,s=this.border,n=this.prepareBuildingRow(t);if(t&&"hide"===e.lastRow&&-1===n)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===e.lastRow||"right"===e.lastRow)){for(var r=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*e.margins,o=0;o<this.buildingRow.entriesBuff.length;o++)r-=(i=this.buildingRow.entriesBuff[o]).data("jg.jwidth");"center"===e.lastRow?s+=r/2:"right"===e.lastRow&&(s+=r)}var a=this.buildingRow.entriesBuff.length-1;for(o=0;o<=a;o++)i=this.buildingRow.entriesBuff[this.settings.rtl?a-o:o],this.displayEntry(i,s,this.offY,i.data("jg.jwidth"),i.data("jg.jheight"),this.buildingRow.height),s+=i.data("jg.jwidth")+e.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=e.rowHeight&&n)&&(this.offY+=this.buildingRow.height+e.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;function e(){return l("body").height()>l(window).height()}r.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},r.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},r.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},r.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(l.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),e()===this.scrollBarOn?Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)):(this.scrollBarOn=e(),this.galleryWidth=t))},this),this.settings.refreshTime)},r.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},r.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},r.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},r.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},r.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},r.prototype.updateEntries=function(t){var i=t&&null!=this.lastFetchedEntry?l(this.lastFetchedEntry).nextAll(this.settings.selector).toArray():(this.entries=[],this.$gallery.children(this.settings.selector).toArray());return 0<i.length&&(l.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},r.prototype.insertToGallery=function(t){var i=this;l.each(t,function(){l(this).appendTo(i.$gallery)})},r.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},r.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},r.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)l(t[i]).removeClass("jg-filtered")},r.prototype.filterArray=function(t){var e=this.settings;if("string"===l.type(e.filter))return t.filter(function(t){var i=l(t);return i.is(e.filter)?(i.removeClass("jg-filtered"),!0):(i.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(l.isFunction(e.filter)){for(var i=t.filter(e.filter),s=0;s<t.length;s++)-1===i.indexOf(t[s])?l(t[s]).addClass("jg-filtered").removeClass("jg-visible"):l(t[s]).removeClass("jg-filtered");return i}},r.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),l.each(this.entries,l.proxy(function(t,i){var e=l(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry");var s=this.imgFromEntry(e);s.css("width",""),s.css("height",""),s.css("margin-left",""),s.css("margin-top",""),s.attr("src",s.data("jg.originalSrc")),s.data("jg.originalSrc",void 0),this.removeCaptionEventsHandlers(e);var n=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==n&&n.remove()):null!==n&&n.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0)},r.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=l(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t);this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete"),this.setGalleryFinalHeight(this.galleryHeightToSet)},r.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},r.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},r.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=l(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},r.prototype.init=function(){var a=!1,h=!1,g=this;l.each(this.entries,function(t,i){var e=l(i),s=g.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==g.settings.rel&&e.attr("rel",g.settings.rel),null!==g.settings.target&&e.attr("target",g.settings.target),null!==s){var n=g.extractImgSrcFromImage(s);if(s.attr("src",n),!1===g.settings.waitThumbnailsLoad){var r=parseFloat(s.prop("width")),o=parseFloat(s.prop("height"));if(!isNaN(r)&&!isNaN(o))return e.data("jg.width",r),e.data("jg.height",o),e.data("jg.loaded","skipped"),h=!0,g.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),a=!0,g.isSpinnerActive()||g.startLoadingSpinnerAnimation(),g.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),g.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),g.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),a||h||this.startImgAnalyzer(!1),this.checkWidth()},r.prototype.checkOrConvertNumber=function(t,i){if("string"===l.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==l.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},r.prototype.checkSizeRangesSuffixes=function(){if("object"!==l.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(i);for(var e={0:""},s=0;s<t.length;s++)if("string"===l.type(t[s]))try{e[parseInt(t[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[t[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[t[s]]=this.settings.sizeRangeSuffixes[t[s]];this.settings.sizeRangeSuffixes=e},r.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===l.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==l.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<i&&(t=i),t},r.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==l.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==l.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==l.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==l.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!l.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!l.isFunction(this.settings.filter)&&"string"!==l.type(this.settings.filter))throw"filter must be false, a string or a filter function"},r.prototype.retrieveSuffixRanges=function(){var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(parseInt(i,10));return t.sort(function(t,i){return i<t?1:t<i?-1:0}),t},r.prototype.updateSettings=function(t){this.settings=l.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},r.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a, div:not(.spinner)",imgSelector:"> img, > a > img",triggerEvent:function(t){this.$gallery.trigger(t)}},l.fn.justifiedGallery=function(n){return this.each(function(t,i){var e=l(i);e.addClass("justified-gallery");var s=e.data("jg.controller");if(void 0===s){if(null!=n&&"object"!==l.type(n)){if("destroy"===n)return;throw"The argument must be an object"}s=new r(e,l.extend({},r.prototype.defaults,n)),e.data("jg.controller",s)}else if("norewind"!==n){if("destroy"===n)return void s.destroy();s.updateSettings(n),s.rewind()}s.updateEntries("norewind"===n)&&s.init()})}});
4
+ !function(l,u,m,g){"use strict";var t,a,s,i,p,e,c,h,d,n,o,r,f,b;function y(t,e){var o,n,a,i=[],s=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=d(t.data.options,e)),o=e.$target||m(t.currentTarget).trigger("blur"),(a=m.modulaFancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(i=e.selector?m(e.selector):(n=o.attr("data-fancybox")||"")?(i=t.data?t.data.items:[]).length?i.filter('[data-fancybox="'+n+'"]'):m('[data-fancybox="'+n+'"]'):[o],(s=m(i).index(o))<0&&(s=0),(a=m.modulaFancybox.open(i,e,s)).$trigger=o))}l.console=l.console||{info:function(t){}},m&&(m.fn.modulaFancybox?console.info("fancyBox already initialized"):(t={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="modula-fancybox-frame{rnd}" name="modula-fancybox-frame{rnd}" class="modula-fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="modula-fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="modula-fancybox-container" role="dialog" tabindex="-1"><div class="modula-fancybox-bg"></div><div class="modula-fancybox-inner"><div class="modula-fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="modula-fancybox-toolbar">{{buttons}}</div><div class="modula-fancybox-navigation">{{arrows}}</div><div class="modula-fancybox-stage"></div><div class="modula-fancybox-caption"><div class="modula-fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="modula-fancybox-loading"></div>',errorTpl:'<div class="modula-fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="modula-fancybox-button modula-fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="modula-fancybox-button modula-fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="modula-fancybox-button modula-fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="modula-fancybox-button modula-fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="modula-fancybox-button modula-fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="modula-fancybox-button modula-fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},modulaShare:["facebook","twitter","pinterest","whatsapp","linkedin","email"],shareBtnTpl:{facebook:'<a class="modula-fancybox-share__button modula-fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{modulaShareUrl}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a>',twitter:'<a class="modula-fancybox-share__button modula-fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{modulaShareUrl}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a>',pinterest:'<a class="modula-fancybox-share__button modula-fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{modulaShareUrl}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a>',whatsapp:'<a class="modula-fancybox-share__button modula-fancybox-share__button--wa" href="https://api.whatsapp.com/send?text={{modulaShareUrl}}&review_url=true"><svg aria-hidden="true" focusable="false" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1536 1600"><path d="M985 878q13 0 97.5 44t89.5 53q2 5 2 15q0 33-17 76q-16 39-71 65.5T984 1158q-57 0-190-62q-98-45-170-118T476 793q-72-107-71-194v-8q3-91 74-158q24-22 52-22q6 0 18 1.5t19 1.5q19 0 26.5 6.5T610 448q8 20 33 88t25 75q0 21-34.5 57.5T599 715q0 7 5 15q34 73 102 137q56 53 151 101q12 7 22 7q15 0 54-48.5t52-48.5zm-203 530q127 0 243.5-50t200.5-134t134-200.5t50-243.5t-50-243.5T1226 336t-200.5-134T782 152t-243.5 50T338 336T204 536.5T154 780q0 203 120 368l-79 233l242-77q158 104 345 104zm0-1382q153 0 292.5 60T1315 247t161 240.5t60 292.5t-60 292.5t-161 240.5t-240.5 161t-292.5 60q-195 0-365-94L0 1574l136-405Q28 991 28 780q0-153 60-292.5T249 247T489.5 86T782 26z" fill="currentColor"/></svg><span>WhatsApp</span></a>',linkedin:'<a class="modula-fancybox-share__button modula-fancybox-share__button--li" href="//linkedin.com/shareArticle?mini=true&url={{modulaShareUrl}}"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg><span>LinkedIn</span></a>',email:'<a class="modula-fancybox-share__button modula-fancybox-share__button--email" href="mailto:?subject={{subject}}&body={{emailMessage}}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z" fill="currentColor"></path></svg><span>Email</span></a>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"},wheel:"auto",onInit:m.noop,beforeLoad:m.noop,afterLoad:m.noop,beforeShow:m.noop,afterShow:m.noop,beforeClose:m.noop,afterClose:m.noop,onActivate:m.noop,onDeactivate:m.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},a=m(l),s=m(u),i=0,p=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||function(t){return l.setTimeout(t,1e3/60)},e=l.cancelAnimationFrame||l.webkitCancelAnimationFrame||l.mozCancelAnimationFrame||l.oCancelAnimationFrame||function(t){l.clearTimeout(t)},c=function(){var t,e=u.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(e.style[t]!==g)return o[t];return"transitionend"}(),h=function(t){return t&&t.length&&t[0].offsetHeight},d=function(t,e){var o=m.extend(!0,{},t,e);return m.each(e,function(t,e){m.isArray(e)&&(o[t]=e)}),o},n=function(t,e,o){var n=this;n.opts=d({index:o},m.modulaFancybox.defaults),m.isPlainObject(e)&&(n.opts=d(n.opts,e)),m.modulaFancybox.isMobile&&(n.opts=d(n.opts,n.opts.mobile)),n.id=n.opts.id||++i,n.currIndex=parseInt(n.opts.index,10)||0,n.prevIndex=null,n.prevPos=null,n.currPos=0,n.firstRun=!0,n.group=[],n.slides={},n.addContent(t),n.group.length&&n.init()},m.extend(n.prototype,{init:function(){var o=this;o.currIndex<0&&(o.currIndex=0),void 0===o.group[o.currIndex]&&jQuery.each(this.group,function(t,e){o.currIndex!=parseInt(e.opts.image_id)||(o.currIndex=t)});var e,n,a=o.group[o.currIndex].opts;a.closeExisting&&m.modulaFancybox.close(!0),m("body").addClass("modula-fancybox-active"),!m.modulaFancybox.getInstance()&&!1!==a.hideScrollbar&&!m.modulaFancybox.isMobile&&u.body.scrollHeight>l.innerHeight&&(m("head").append('<style id="modula-fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(l.innerWidth-u.documentElement.clientWidth)+"px;}</style>"),m("body").addClass("compensate-for-scrollbar")),n="",m.each(a.buttons,function(t,e){n+=a.btnTpl[e]||""}),e=m(o.translate(o,a.baseTpl.replace("{{buttons}}",n).replace("{{arrows}}",a.btnTpl.arrowLeft+a.btnTpl.arrowRight))).attr("id","modula-fancybox-container-"+o.id).addClass(a.baseClass).data("modulaFancyBox",o).appendTo(a.parentEl),o.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){o.$refs[t]=e.find(".modula-fancybox-"+t)}),o.trigger("onInit"),o.activate(),o.jumpTo(o.currIndex)},translate:function(t,e){var o=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return o[e]===g?t:o[e]})},addContent:function(t){var e,c=this,o=m.makeArray(t);m.each(o,function(t,e){var o,n,a,i,s,r={},l={};m.isPlainObject(e)?l=(r=e).opts||e:"object"===m.type(e)&&m(e).length?(l=(o=m(e)).data()||{},(l=m.extend(!0,{},l,l.options)).$orig=o,r.src=c.opts.src||l.src||o.attr("href"),r.type||r.src||(r.type="inline",r.src=e)):r={type:"html",src:e+""},r.opts=m.extend(!0,{},c.opts,l),m.isArray(l.buttons)&&(r.opts.buttons=l.buttons),m.modulaFancybox.isMobile&&r.opts.mobile&&(r.opts=d(r.opts,r.opts.mobile)),n=r.type||r.opts.type,i=r.src||"",!n&&i&&((a=i.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(n="video",r.opts.video.format||(r.opts.video.format="video/"+("ogv"===a[1]?"ogg":a[1]))):i.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?n="image":i.match(/\.(pdf)((\?|#).*)?$/i)?(n="iframe",r=m.extend(!0,r,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===i.charAt(0)&&(n="inline")),n?r.type=n:c.trigger("objectNeedsType",r),r.contentType||(r.contentType=-1<m.inArray(r.type,["html","inline","ajax"])?"html":r.type),r.index=c.group.length,"auto"==r.opts.smallBtn&&(r.opts.smallBtn=-1<m.inArray(r.type,["html","inline","ajax"])),"auto"===r.opts.toolbar&&(r.opts.toolbar=!r.opts.smallBtn),r.$thumb=r.opts.$thumb||null,r.opts.$trigger&&r.index===c.opts.index&&(r.$thumb=r.opts.$trigger.find("img:first"),r.$thumb.length&&(r.opts.$orig=r.opts.$trigger)),r.$thumb&&r.$thumb.length||!r.opts.$orig||(r.$thumb=r.opts.$orig.find("img:first")),r.$thumb&&!r.$thumb.length&&(r.$thumb=null),r.thumb=r.opts.thumb||(r.$thumb?r.$thumb[0].src:null),"function"===m.type(r.opts.caption)&&(r.opts.caption=r.opts.caption.apply(e,[c,r])),"function"===m.type(c.opts.caption)&&(r.opts.caption=c.opts.caption.apply(e,[c,r])),r.opts.caption instanceof m||(r.opts.caption=r.opts.caption===g?"":r.opts.caption+""),"ajax"===r.type&&1<(s=i.split(/\s+/,2)).length&&(r.src=s.shift(),r.opts.filter=s.shift()),r.opts.modal&&(r.opts=m.extend(!0,r.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),c.group.push(r)}),Object.keys(c.slides).length&&(c.updateControls(),(e=c.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var n=this;n.removeEvents(),n.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),n.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),n.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),n.next()}).on("click.fb","[data-fancybox-zoom]",function(t){n[n.isScaledDown()?"scaleToActual":"scaleToFit"]()}),a.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(n.requestId&&e(n.requestId),n.requestId=p(function(){n.update(t)})):(n.current&&"iframe"===n.current.type&&n.$refs.stage.hide(),setTimeout(function(){n.$refs.stage.show(),n.update(t)},m.modulaFancybox.isMobile?600:250))}),s.on("keydown.fb",function(t){var e=(m.modulaFancybox?m.modulaFancybox.getInstance():null).current,o=t.keyCode||t.which;if(9!=o){if(!(!e.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||m(t.target).is("input,textarea,video,audio,select")))return 8===o||27===o?(t.preventDefault(),void n.close(t)):37===o||38===o?(t.preventDefault(),void n.previous()):39===o||40===o?(t.preventDefault(),void n.next()):void n.trigger("afterKeydown",t,o)}else e.opts.trapFocus&&n.focus(t)}),n.group[n.currIndex].opts.idleTime&&(n.idleSecondsCounter=0,s.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){n.idleSecondsCounter=0,n.isIdle&&n.showControls(),n.isIdle=!1}),n.idleInterval=l.setInterval(function(){n.idleSecondsCounter++,n.idleSecondsCounter>=n.group[n.currIndex].opts.idleTime&&!n.isDragging&&(n.isIdle=!0,n.idleSecondsCounter=0,n.hideControls())},1e3))},removeEvents:function(){a.off("orientationchange.fb resize.fb"),s.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleInterval&&(l.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,n){var e,o,a,i,s,r,l,c,d,u=this,p=u.group.length;if(!(u.isDragging||u.isClosing||u.isAnimating&&u.firstRun)){if(t=parseInt(t,10),!(a=u.current?u.current.opts.loop:u.opts.loop)&&(t<0||p<=t))return!1;if(e=u.firstRun=!Object.keys(u.slides).length,s=u.current,u.prevIndex=u.currIndex,u.prevPos=u.currPos,i=u.createSlide(t),1<p&&((a||i.index<p-1)&&u.createSlide(t+1),(a||0<i.index)&&u.createSlide(t-1)),u.current=i,u.currIndex=i.index,u.currPos=i.pos,u.trigger("beforeShow",e),u.updateControls(),i.forcedDuration=g,m.isNumeric(n)?i.forcedDuration=n:n=i.opts[e?"animationDuration":"transitionDuration"],n=parseInt(n,10),o=u.isMoved(i),i.$slide.addClass("modula-fancybox-slide--current"),e)return i.opts.animationEffect&&n&&u.$refs.container.css("transition-duration",n+"ms"),u.$refs.container.addClass("modula-fancybox-is-open").trigger("focus"),u.loadSlide(i),void u.preload("image");r=m.modulaFancybox.getTranslate(s.$slide),l=m.modulaFancybox.getTranslate(u.$refs.stage),m.each(u.slides,function(t,e){m.modulaFancybox.stop(e.$slide,!0)}),s.pos!==i.pos&&(s.isComplete=!1),s.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--current"),o?(d=r.left-(s.pos*r.width+s.pos*s.opts.gutter),m.each(u.slides,function(t,e){e.$slide.removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)modula-fancybox-fx-\S+/g)||[]).join(" ")});var o=e.pos*r.width+e.pos*e.opts.gutter;m.modulaFancybox.setTranslate(e.$slide,{top:0,left:o-l.left+d}),e.pos!==i.pos&&e.$slide.addClass("modula-fancybox-slide--"+(e.pos>i.pos?"next":"previous")),h(e.$slide),m.modulaFancybox.animate(e.$slide,{top:0,left:(e.pos-i.pos)*r.width+(e.pos-i.pos)*e.opts.gutter},n,function(){e.$slide.css({transform:"",opacity:""}).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous"),e.pos===u.currPos&&u.complete()})})):n&&i.opts.transitionEffect&&(c="modula-fancybox-animated modula-fancybox-fx-"+i.opts.transitionEffect,s.$slide.addClass("modula-fancybox-slide--"+(s.pos>i.pos?"next":"previous")),m.modulaFancybox.animate(s.$slide,c,n,function(){s.$slide.removeClass(c).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous")},!1)),i.isLoaded?u.revealContent(i):u.loadSlide(i),u.preload("image")}},createSlide:function(t){var e,o=this,n=t%o.group.length;return n=n<0?o.group.length+n:n,!o.slides[t]&&o.group[n]&&(e=m('<div class="modula-fancybox-slide"></div>').appendTo(o.$refs.stage),o.slides[t]=m.extend(!0,{},o.group[n],{pos:t,$slide:e,isLoaded:!1}),o.updateSlide(o.slides[t])),o.slides[t]},scaleToActual:function(t,e,o){var n,a,i,s,r,l=this,c=l.current,d=c.$content,u=m.modulaFancybox.getTranslate(c.$slide).width,p=m.modulaFancybox.getTranslate(c.$slide).height,h=c.width,f=c.height;l.isAnimating||l.isMoved()||!d||"image"!=c.type||!c.isLoaded||c.hasError||(l.isAnimating=!0,m.modulaFancybox.stop(d),t=t===g?.5*u:t,e=e===g?.5*p:e,(n=m.modulaFancybox.getTranslate(d)).top-=m.modulaFancybox.getTranslate(c.$slide).top,n.left-=m.modulaFancybox.getTranslate(c.$slide).left,s=h/n.width,r=f/n.height,a=.5*u-.5*h,i=.5*p-.5*f,u<h&&(0<(a=n.left*s-(t*s-t))&&(a=0),a<u-h&&(a=u-h)),p<f&&(0<(i=n.top*r-(e*r-e))&&(i=0),i<p-f&&(i=p-f)),l.updateCursor(h,f),m.modulaFancybox.animate(d,{top:i,left:a,scaleX:s,scaleY:r},o||366,function(){l.isAnimating=!1}),l.SlideShow&&l.SlideShow.isActive&&l.SlideShow.stop())},scaleToFit:function(t){var e,o=this,n=o.current,a=n.$content;o.isAnimating||o.isMoved()||!a||"image"!=n.type||!n.isLoaded||n.hasError||(o.isAnimating=!0,m.modulaFancybox.stop(a),e=o.getFitPos(n),o.updateCursor(e.width,e.height),m.modulaFancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||366,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,n,a,i=t.$content,s=t.$slide,r=t.width||t.opts.width,l=t.height||t.opts.height,c={};return!!(t.isLoaded&&i&&i.length)&&(e=m.modulaFancybox.getTranslate(this.$refs.stage).width,o=m.modulaFancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(s.css("paddingLeft"))+parseFloat(s.css("paddingRight"))+parseFloat(i.css("marginLeft"))+parseFloat(i.css("marginRight")),o-=parseFloat(s.css("paddingTop"))+parseFloat(s.css("paddingBottom"))+parseFloat(i.css("marginTop"))+parseFloat(i.css("marginBottom")),r&&l||(r=e,l=o),e-.5<(r*=n=Math.min(1,e/r,o/l))&&(r=e),o-.5<(l*=n)&&(l=o),"image"===t.type?(c.top=Math.floor(.5*(o-l))+parseFloat(s.css("paddingTop")),c.left=Math.floor(.5*(e-r))+parseFloat(s.css("paddingLeft"))):"video"===t.contentType&&(r/(a=t.opts.width&&t.opts.height?r/l:t.opts.ratio||16/9)<l?l=r/a:l*a<r&&(r=l*a)),c.width=r,c.height=l,c)},update:function(o){var n=this;m.each(n.slides,function(t,e){n.updateSlide(e,o)})},updateSlide:function(t,e){var o=this,n=t&&t.$content,a=t.width||t.opts.width,i=t.height||t.opts.height,s=t.$slide;o.adjustCaption(t),n&&(a||i||"video"===t.contentType)&&!t.hasError&&(m.modulaFancybox.stop(n),m.modulaFancybox.setTranslate(n,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),s.length&&(s.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".modula-fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",s.get(0).scrollHeight>s.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,n=o.$slide;!e.isClosing&&o&&(n.siblings().css({transform:"",opacity:""}),n.parent().children().removeClass("modula-fancybox-slide--previous modula-fancybox-slide--next"),m.modulaFancybox.animate(n,{top:0,left:0,opacity:1},t===g?0:t,function(){n.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o,n=t||this.current;return!!n&&(o=m.modulaFancybox.getTranslate(this.$refs.stage),e=m.modulaFancybox.getTranslate(n.$slide),!n.$slide.hasClass("modula-fancybox-animated")&&(.5<Math.abs(e.top-o.top)||.5<Math.abs(e.left-o.left)))},updateCursor:function(t,e){var o,n,a=this,i=a.current,s=a.$refs.container;i&&!a.isClosing&&a.Guestures&&(s.removeClass("modula-fancybox-is-zoomable modula-fancybox-can-zoomIn modula-fancybox-can-zoomOut modula-fancybox-can-swipe modula-fancybox-can-pan"),n=!!(o=a.canPan(t,e))||a.isZoomable(),s.toggleClass("modula-fancybox-is-zoomable",n),m("[data-fancybox-zoom]").prop("disabled",!n),o?s.addClass("modula-fancybox-can-pan"):n&&("zoom"===i.opts.clickContent||m.isFunction(i.opts.clickContent)&&"zoom"==i.opts.clickContent(i))?s.addClass("modula-fancybox-can-zoomIn"):i.opts.touch&&(i.opts.touch.vertical||1<a.group.length)&&"video"!==i.contentType&&s.addClass("modula-fancybox-can-swipe"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing&&"image"===e.type&&!e.hasError){if(!e.isLoaded)return!0;if((t=this.getFitPos(e))&&(e.width>t.width||e.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=!1,n=this.current,a=n.$content;return t!==g&&e!==g?o=t<n.width&&e<n.height:a&&(o=(o=m.modulaFancybox.getTranslate(a)).width<n.width&&o.height<n.height),o},canPan:function(t,e){var o=this.current,n=null,a=!1;return"image"===o.type&&(o.isComplete||t&&e)&&!o.hasError&&(a=this.getFitPos(o),t!==g&&e!==g?n={width:t,height:e}:o.isComplete&&(n=m.modulaFancybox.getTranslate(o.$content)),n&&a&&(a=1.5<Math.abs(n.width-a.width)||1.5<Math.abs(n.height-a.height))),a},loadSlide:function(o){var t,e,n,a=this;if(!o.isLoading&&!o.isLoaded){if(!(o.isLoading=!0)===a.trigger("beforeLoad",o))return o.isLoading=!1;switch(t=o.type,(e=o.$slide).off("refresh").trigger("onReset").addClass(o.opts.slideClass),t){case"image":a.setImage(o);break;case"iframe":a.setIframe(o);break;case"html":a.setContent(o,o.src||o.content);break;case"video":a.setContent(o,o.opts.video.tpl.replace(/\{\{src\}\}/gi,o.src).replace("{{format}}",o.opts.videoFormat||o.opts.video.format||"").replace("{{poster}}",o.thumb||""));break;case"inline":m(o.src).length?a.setContent(o,m(o.src)):a.setError(o);break;case"ajax":a.showLoading(o),n=m.ajax(m.extend({},o.opts.ajax.settings,{url:o.src,success:function(t,e){"success"===e&&a.setContent(o,t)},error:function(t,e){t&&"abort"!==e&&a.setError(o)}})),e.one("onReset",function(){n.abort()});break;default:a.setError(o)}return!0}},setImage:function(e){var t,o=this;setTimeout(function(){var t=e.$image;o.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||o.showLoading(e)},50),o.checkSrcset(e),e.$content=m('<div class="modula-fancybox-content"></div>').addClass("modula-fancybox-is-hidden").appendTo(e.$slide.addClass("modula-fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(t=u.createElement("img")).onerror=function(){m(this).remove(),e.$ghost=null},t.onload=function(){o.afterLoad(e)},e.$ghost=m(t).addClass("modula-fancybox-image").appendTo(e.$content).attr("src",e.thumb),"undifined"!=typeof e.src&&e.$ghost.attr("alt",e.alt)),o.setBigImage(e)},checkSrcset:function(t){var e,o,n,a,i=t.opts.srcset||t.opts.image.srcset;if(i){n=l.devicePixelRatio||1,a=l.innerWidth*n,(o=i.split(",").map(function(t){var n={};return t.trim().split(/\s+/).forEach(function(t,e){var o=parseInt(t.substring(0,t.length-1),10);if(0===e)return n.url=t;o&&(n.value=o,n.postfix=t[t.length-1])}),n})).sort(function(t,e){return t.value-e.value});for(var s=0;s<o.length;s++){var r=o[s];if("w"===r.postfix&&r.value>=a||"x"===r.postfix&&r.value>=n){e=r;break}}!e&&o.length&&(e=o[o.length-1]),e&&(t.src=e.url,t.width&&t.height&&"w"==e.postfix&&(t.height=t.width/t.height*e.value,t.width=e.value),t.opts.srcset=i)}},setBigImage:function(e){var o=this,t=u.createElement("img"),n=m(t);e.$image=n.one("error",function(){o.setError(e)}).one("load",function(){var t;e.$ghost||(o.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),o.afterLoad(e)),o.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(1<e.width/e.height&&1<a.width()/a.height()?"100":Math.round(e.width/e.height*100))+"vw"),n.attr("sizes",t).attr("srcset",e.opts.srcset)),e.opts.alt&&n.attr("alt",e.opts.alt),e.opts.image_id&&n.attr("image-id",e.opts.image_id),e.$ghost&&setTimeout(function(){e.$ghost&&!o.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),o.hideLoading(e))}).addClass("modula-fancybox-image").attr("src",e.src).appendTo(e.$content),(t.complete||"complete"==t.readyState)&&n.naturalWidth&&n.naturalHeight?n.trigger("load"):t.error&&n.trigger("error")},resolveImageSlideSize:function(t,e,o){var n=parseInt(t.opts.width,10),a=parseInt(t.opts.height,10);t.width=e,t.height=o,0<n&&(t.width=n,t.height=Math.floor(n*o/e)),0<a&&(t.width=Math.floor(a*e/o),t.height=a)},setIframe:function(a){var i,e=this,s=a.opts.iframe,r=a.$slide;a.$content=m('<div class="modula-fancybox-content'+(s.preload?" modula-fancybox-is-hidden":"")+'"></div>').css(s.css).appendTo(r),r.addClass("modula-fancybox-slide--"+a.contentType),a.$iframe=i=m(s.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(s.attr).appendTo(a.$content),s.preload?(e.showLoading(a),i.on("load.fb error.fb",function(t){this.isReady=1,a.$slide.trigger("refresh"),e.afterLoad(a)}),r.on("refresh.fb",function(){var t,e=a.$content,o=s.css.width,n=s.css.height;if(1===i[0].isReady){try{t=i.contents().find("body")}catch(t){}t&&t.length&&t.children().length&&(r.css("overflow","visible"),e.css({width:"100%","max-width":"100%",height:"9999px"}),o===g&&(o=Math.ceil(Math.max(t[0].clientWidth,t.outerWidth(!0)))),e.css("width",o||"").css("max-width",""),n===g&&(n=Math.ceil(Math.max(t[0].clientHeight,t.outerHeight(!0)))),e.css("height",n||""),r.css("overflow","auto")),e.removeClass("modula-fancybox-is-hidden")}})):e.afterLoad(a),i.attr("src",a.src),r.one("onReset",function(){try{m(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}m(this).off("refresh.fb").empty(),a.isLoaded=!1,a.isRevealed=!1})},setContent:function(t,e){var o;this.isClosing||(this.hideLoading(t),t.$content&&m.modulaFancybox.stop(t.$content),t.$slide.empty(),(o=e)&&o.hasOwnProperty&&o instanceof m&&e.parent().length?((e.hasClass("modula-fancybox-content")||e.parent().hasClass("modula-fancybox-content"))&&e.parents(".modula-fancybox-slide").trigger("onReset"),t.$placeholder=m("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===m.type(e)&&(e=m("<div>").append(m.trim(e)).contents()),t.opts.filter&&(e=m("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){m(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("modula-fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(m(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),m(e).appendTo(t.$slide),m(e).is("video,audio")&&(m(e).addClass("modula-fancybox-video"),m(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||m(e).attr("width"),t.opts.height=t.opts.height||m(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.modula-fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("modula-fancybox-content"),t.$slide.addClass("modula-fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("modula-fancybox-slide--"+t.contentType).addClass("modula-fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=m(this.translate(this,this.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=m(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&m('<div class="modula-fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,o=this,n=t||o.current,a=n.opts.caption,i=n.opts.preventCaptionOverlap,s=o.$refs.caption,r=!1;s.toggleClass("modula-fancybox-caption--separate",i),i&&a&&a.length&&(n.pos!==o.currPos?((e=s.clone().appendTo(s.parent())).children().eq(0).empty().html(a),r=e.outerHeight(!0),e.empty().remove()):o.$caption&&(r=o.$caption.outerHeight(!0)),n.$slide.css("padding-bottom",r||""))},adjustLayout:function(t){var e,o,n,a,i=t||this.current;i.isLoaded&&!0!==i.opts.disableLayoutFix&&(i.$content.css("margin-bottom",""),i.$content.outerHeight()>i.$slide.height()+.5&&(n=i.$slide[0].style["padding-bottom"],a=i.$slide.css("padding-bottom"),0<parseFloat(a)&&(e=i.$slide[0].scrollHeight,i.$slide.css("padding-bottom",0),Math.abs(e-i.$slide[0].scrollHeight)<1&&(o=a),i.$slide.css("padding-bottom",n))),i.$content.css("margin-bottom",o))},revealContent:function(t){var e,o,n,a,i=this,s=t.$slide,r=!1,l=!1,c=i.isMoved(t),d=t.isRevealed;return t.isRevealed=!0,e=t.opts[i.firstRun?"animationEffect":"transitionEffect"],n=t.opts[i.firstRun?"animationDuration":"transitionDuration"],n=parseInt(t.forcedDuration===g?n:t.forcedDuration,10),!c&&t.pos===i.currPos&&n||(e=!1),"zoom"===e&&(t.pos===i.currPos&&n&&"image"===t.type&&!t.hasError&&(l=i.getThumbPos(t))?r=i.getFitPos(t):e="fade"),"zoom"===e?(i.isAnimating=!0,r.scaleX=r.width/l.width,r.scaleY=r.height/l.height,"auto"==(a=t.opts.zoomOpacity)&&(a=.1<Math.abs(t.width/t.height-l.width/l.height)),a&&(l.opacity=.1,r.opacity=1),m.modulaFancybox.setTranslate(t.$content.removeClass("modula-fancybox-is-hidden"),l),h(t.$content),void m.modulaFancybox.animate(t.$content,r,n,function(){i.isAnimating=!1,i.complete()})):(i.updateSlide(t),e?(m.modulaFancybox.stop(s),o="modula-fancybox-slide--"+(t.pos>=i.prevPos?"next":"previous")+" modula-fancybox-animated modula-fancybox-fx-"+e,s.addClass(o).removeClass("modula-fancybox-slide--current"),t.$content.removeClass("modula-fancybox-is-hidden"),h(s),"image"!==t.type&&t.$content.hide().show(0),void m.modulaFancybox.animate(s,"modula-fancybox-slide--current",n,function(){s.removeClass(o).css({transform:"",opacity:""}),t.pos===i.currPos&&i.complete()},!0)):(t.$content.removeClass("modula-fancybox-is-hidden"),d||!c||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===i.currPos&&i.complete())))},getThumbPos:function(t){var e,o,n,a,i,s,r,l,c,d=t.$thumb;return!!(d&&(c=d.find("a.tile-inner")[0])&&c.ownerDocument===u&&(m(".modula-fancybox-container").css("pointer-events","none"),r={x:c.getBoundingClientRect().left+c.offsetWidth/2,y:c.getBoundingClientRect().top+c.offsetHeight/2},console.log(u.elementFromPoint(r.x,r.y)===c),l=u.elementFromPoint(r.x,r.y)===c,m(".modula-fancybox-container").css("pointer-events",""),l))&&(o=m.modulaFancybox.getTranslate(d),n=parseFloat(d.css("border-top-width")||0),a=parseFloat(d.css("border-right-width")||0),i=parseFloat(d.css("border-bottom-width")||0),s=parseFloat(d.css("border-left-width")||0),e={top:o.top+n,left:o.left+s,width:o.width-a-s,height:o.height-n-i,scaleX:1,scaleY:1},0<o.width&&0<o.height&&e)},complete:function(){var t,o=this,e=o.current,n={};!o.isMoved()&&e.isLoaded&&(e.isComplete||(e.isComplete=!0,e.$slide.siblings().trigger("onReset"),o.preload("inline"),h(e.$slide),e.$slide.addClass("modula-fancybox-slide--complete"),m.each(o.slides,function(t,e){e.pos>=o.currPos-1&&e.pos<=o.currPos+1?n[e.pos]=e:e&&(m.modulaFancybox.stop(e.$slide),e.$slide.off().remove())}),o.slides=n),o.isAnimating=!1,o.updateCursor(),o.trigger("afterShow"),e.opts.video.autoStart&&e.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),o.next()}),e.opts.autoFocus&&"html"===e.contentType&&((t=e.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):o.focus(null,!0)),e.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,o,n=this;n.group.length<2||(o=n.slides[n.currPos+1],(e=n.slides[n.currPos-1])&&e.type===t&&n.loadSlide(e),o&&o.type===t&&n.loadSlide(o))},focus:function(t,e){var o,n,a=this,i=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");a.isClosing||((o=(o=!t&&a.current&&a.current.isComplete?a.current.$slide.find("*:visible"+(e?":not(.modula-fancybox-close-small)":"")):a.$refs.container.find("*:visible")).filter(i).filter(function(){return"hidden"!==m(this).css("visibility")&&!m(this).hasClass("disabled")})).length?(n=o.index(u.activeElement),t&&t.shiftKey?(n<0||0==n)&&(t.preventDefault(),o.eq(o.length-1).trigger("focus")):(n<0||n==o.length-1)&&(t&&t.preventDefault(),o.eq(0).trigger("focus"))):a.$refs.container.trigger("focus"))},activate:function(){var e=this;m(".modula-fancybox-container").each(function(){var t=m(this).data("modulaFancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(t,e){function o(){d.cleanUp(t)}var n,a,i,s,r,l,c,d=this,u=d.current;return!d.isClosing&&(!(d.isClosing=!0)===d.trigger("beforeClose",t)?(d.isClosing=!1,p(function(){d.update()}),!1):(d.removeEvents(),i=u.$content,n=u.opts.animationEffect,a=m.isNumeric(e)?e:n?u.opts.animationDuration:0,u.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--next modula-fancybox-slide--previous modula-fancybox-animated"),!0!==t?m.modulaFancybox.stop(u.$slide):n=!1,u.$slide.siblings().trigger("onReset").remove(),a&&d.$refs.container.removeClass("modula-fancybox-is-open").addClass("modula-fancybox-is-closing").css("transition-duration",a+"ms"),d.hideLoading(u),d.hideControls(!0),d.updateCursor(),"zoom"!==n||i&&a&&"image"===u.type&&!d.isMoved()&&!u.hasError&&(c=d.getThumbPos(u))||(n="fade"),"zoom"===n?(m.modulaFancybox.stop(i),l={top:(s=m.modulaFancybox.getTranslate(i)).top,left:s.left,scaleX:s.width/c.width,scaleY:s.height/c.height,width:c.width,height:c.height},"auto"==(r=u.opts.zoomOpacity)&&(r=.1<Math.abs(u.width/u.height-c.width/c.height)),r&&(c.opacity=0),m.modulaFancybox.setTranslate(i,l),h(i),m.modulaFancybox.animate(i,c,a,o)):n&&a?m.modulaFancybox.animate(u.$slide.addClass("modula-fancybox-slide--previous").removeClass("modula-fancybox-slide--current"),"modula-fancybox-animated modula-fancybox-fx-"+n,a,o):!0===t?setTimeout(o,a):o(),!0))},cleanUp:function(t){var e,o,n,a=this,i=a.current.opts.$orig;a.current.$slide.trigger("onReset"),a.$refs.container.empty().remove(),a.trigger("afterClose",t),a.current.opts.backFocus&&(i&&i.length&&i.is(":visible")||(i=a.$trigger),i&&i.length&&(o=l.scrollX,n=l.scrollY,i.trigger("focus"),m("html, body").scrollTop(n).scrollLeft(o))),a.current=null,(e=m.modulaFancybox.getInstance())?e.activate():(m("body").removeClass("modula-fancybox-active compensate-for-scrollbar"),m("#modula-fancybox-style-noscroll").remove())},trigger:function(t,e){var o,n=Array.prototype.slice.call(arguments,1),a=this,i=e&&e.opts?e:a.current;if(i?n.unshift(i):i=a,n.unshift(a),m.isFunction(i.opts[t])&&(o=i.opts[t].apply(i,n)),!1===o)return o;"afterClose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",n):s.trigger(t+".fb",n)},updateControls:function(){var t=this,e=t.current,o=e.index,n=t.$refs.container,a=t.$refs.caption,i=e.opts.caption;e.$slide.trigger("refresh"),i&&i.length?(t.$caption=a).children().eq(0).html(i):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),n.find("[data-fancybox-count]").html(t.group.length),n.find("[data-fancybox-index]").html(o+1),n.find("[data-fancybox-prev]").prop("disabled",!e.opts.loop&&o<=0),n.find("[data-fancybox-next]").prop("disabled",!e.opts.loop&&o>=t.group.length-1),"image"===e.type?n.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",e.opts.image.src||e.src).show():e.opts.toolbar&&n.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),m(u.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map(function(t){return"modula-fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,o=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,o.toggleClass("modula-fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("modula-fancybox-show-infobar",!!(e.infobar&&1<t.group.length)).toggleClass("modula-fancybox-show-caption",!!t.$caption).toggleClass("modula-fancybox-show-nav",!!(e.arrows&&1<t.group.length)).toggleClass("modula-fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),m.modulaFancybox={version:"3.5.7",defaults:t,getInstance:function(t){var e=m('.modula-fancybox-container:not(".modula-fancybox-is-closing"):last').data("modulaFancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof n&&("string"===m.type(t)?e[t].apply(e,o):"function"===m.type(t)&&t.apply(e,o),e)},open:function(t,e,o){return new n(t,e,o)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),s.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(o=u.createElement("div"),l.getComputedStyle&&l.getComputedStyle(o)&&l.getComputedStyle(o).getPropertyValue("transform")&&!(u.documentMode&&u.documentMode<11)),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var o="",n={};if(t&&e)return e.left===g&&e.top===g||(o=(e.left===g?t.position().left:e.left)+"px, "+(e.top===g?t.position().top:e.top)+"px",o=this.use3d?"translate3d("+o+", 0px)":"translate("+o+")"),e.scaleX!==g&&e.scaleY!==g?o+=" scale("+e.scaleX+", "+e.scaleY+")":e.scaleX!==g&&(o+=" scaleX("+e.scaleX+")"),o.length&&(n.transform=o),e.opacity!==g&&(n.opacity=e.opacity),e.width!==g&&(n.width=e.width),e.height!==g&&(n.height=e.height),t.css(n)},animate:function(e,o,n,a,i){var s,r=this;m.isFunction(n)&&(a=n,n=null),r.stop(e),s=r.getTranslate(e),e.on(c,function(t){t&&t.originalEvent&&(!e.is(t.originalEvent.target)||"z-index"==t.originalEvent.propertyName)||(r.stop(e),m.isNumeric(n)&&e.css("transition-duration",""),m.isPlainObject(o)?o.scaleX!==g&&o.scaleY!==g&&r.setTranslate(e,{top:o.top,left:o.left,width:s.width*o.scaleX,height:s.height*o.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(o),m.isFunction(a)&&a(t))}),m.isNumeric(n)&&e.css("transition-duration",n+"ms"),m.isPlainObject(o)?(o.scaleX!==g&&o.scaleY!==g&&(delete o.width,delete o.height,e.parent().hasClass("modula-fancybox-slide--image")&&e.parent().addClass("modula-fancybox-is-scaling")),m.modulaFancybox.setTranslate(e,o)):e.addClass(o),e.data("timer",setTimeout(function(){e.trigger(c)},n+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(c),t.off(c).css("transition-duration",""),t.parent().removeClass("modula-fancybox-is-scaling"))}},m.fn.modulaFancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?m("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},y):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},y),this},s.on("click.fb-start","[data-fancybox]",y),s.on("click.fb-start","[data-fancybox-trigger]",function(t){m('[data-fancybox="'+m(this).attr("data-fancybox-trigger")+'"]').eq(m(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:m(this)})}),r=".modula-fancybox-button",f="modula-fancybox-focus",b=null,s.on("mousedown mouseup focus blur",r,function(t){switch(t.type){case"mousedown":b=m(this);break;case"mouseup":b=null;break;case"focusin":m(r).removeClass(f),m(this).is(b)||m(this).is("[disabled]")||m(this).addClass(f);break;case"focusout":m(r).removeClass(f)}})))}(window,document,jQuery),function(h){"use strict";function f(o,t,e){if(o)return e=e||"","object"===h.type(e)&&(e=h.param(e,!0)),h.each(t,function(t,e){o=o.replace("$"+t,e||"")}),e.length&&(o+=(0<o.indexOf("?")?"&":"?")+e),o}var n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&0<t[12].indexOf("layer=c")?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};h(document).on("objectNeedsType.fb",function(t,e,a){var i,s,r,l,c,d,u=a.src||"",p=!1,o=h.extend(!0,{},n,a.opts.media);h.each(o,function(t,e){if(s=u.match(e.matcher)){if(p=e.type,d=t,c={},e.paramPlace&&s[e.paramPlace]){"?"==(l=s[e.paramPlace])[0]&&(l=l.substring(1)),l=l.split("&");for(var o=0;o<l.length;++o){var n=l[o].split("=",2);2==n.length&&(c[n[0]]=decodeURIComponent(n[1].replace(/\+/g," ")))}}return r=h.extend(!0,{},e.params,a.opts[t],c),u="function"===h.type(e.url)?e.url.call(this,s,r,a):f(e.url,s,r),i="function"===h.type(e.thumb)?e.thumb.call(this,s,r,a):f(e.thumb,s),"youtube"===t?u=u.replace(/&t=(\d+)/,function(t,e){return"&start="+e}):"vimeo"===t&&(u=u.replace("&%23","#")),!1}}),p?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=i),"iframe"===p&&(a.opts=h.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),h.extend(a,{type:p,src:u,origSrc:a.src,contentSource:d,contentType:"image"===p?"image":"gmap_place"==d||"gmap_search"==d?"map":"video"})):u&&(a.type=a.opts.defaultType)});var a={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,o=this;this[t].loaded?setTimeout(function(){o.done(t)}):this[t].loading||(this[t].loading=!0,(e=document.createElement("script")).type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){o[t].loaded=!0,o.done(t)}:e.onload=function(){o[t].loaded=!0,o.done(t)},document.body.appendChild(e))},done:function(t){var e,o;"youtube"===t&&delete window.onYouTubeIframeAPIReady,(e=h.modulaFancybox.getInstance())&&(o=e.current.$content.find("iframe"),"youtube"===t&&void 0!==YT&&YT?new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&e.next()}}}):"vimeo"===t&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(o).on("ended",function(){e.next()}))}};h(document).on({"afterShow.fb":function(t,e,o){1<e.group.length&&("youtube"===o.contentSource||"vimeo"===o.contentSource)&&a.load(o.contentSource)}})}(jQuery),function(m,l,g){"use strict";function d(t){var e=[];for(var o in t=(t=t.originalEvent||t||m.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[o].pageX?e.push({x:t[o].pageX,y:t[o].pageY}):t[o].clientX&&e.push({x:t[o].clientX,y:t[o].clientY});return e}function b(t,e,o){return e&&t?"x"===o?t.x-e.x:"y"===o?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function c(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||g.isFunction(t.get(0).onclick)||t.data("selectable"))return 1;for(var e=0,o=t[0].attributes,n=o.length;e<n;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return 1}function u(t){for(var e,o,n,a,i,s=!1;e=t.get(0),0,o=m.getComputedStyle(e)["overflow-y"],n=m.getComputedStyle(e)["overflow-x"],a=("scroll"===o||"auto"===o)&&e.scrollHeight>e.clientHeight,i=("scroll"===n||"auto"===n)&&e.scrollWidth>e.clientWidth,!(s=a||i)&&(t=t.parent()).length&&!t.hasClass("modula-fancybox-stage")&&!t.is("body"););return s}function o(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",g.proxy(e,"ontouchstart"))}var y=m.requestAnimationFrame||m.webkitRequestAnimationFrame||m.mozRequestAnimationFrame||m.oRequestAnimationFrame||function(t){return m.setTimeout(t,1e3/60)},v=m.cancelAnimationFrame||m.webkitCancelAnimationFrame||m.mozCancelAnimationFrame||m.oCancelAnimationFrame||function(t){m.clearTimeout(t)};o.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),g(l).off(".fb.touch"),t.requestId&&(v(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},o.prototype.ontouchstart=function(t){var e=this,o=g(t.target),n=e.instance,a=n.current,i=a.$slide,s=a.$content,r="touchstart"==t.type;if(r&&e.$container.off("mousedown.fb.touch"),(!t.originalEvent||2!=t.originalEvent.button)&&i.length&&o.length&&!c(o)&&!c(o.parent())&&(o.is("img")||!(t.originalEvent.clientX>o[0].clientWidth+o.offset().left))){if(!a||n.isAnimating||a.$slide.hasClass("modula-fancybox-animated"))return t.stopPropagation(),void t.preventDefault();e.realPoints=e.startPoints=d(t),e.startPoints.length&&(a.touch&&t.stopPropagation(),e.startEvent=t,e.canTap=!0,e.$target=o,e.$content=s,e.opts=a.opts.touch,e.isPanning=!1,e.isSwiping=!1,e.isZooming=!1,e.isScrolling=!1,e.canPan=n.canPan(),e.startTime=(new Date).getTime(),e.distanceX=e.distanceY=e.distance=0,e.canvasWidth=Math.round(i[0].clientWidth),e.canvasHeight=Math.round(i[0].clientHeight),e.contentLastPos=null,e.contentStartPos=g.modulaFancybox.getTranslate(e.$content)||{top:0,left:0},e.sliderStartPos=g.modulaFancybox.getTranslate(i),e.stagePos=g.modulaFancybox.getTranslate(n.$refs.stage),e.sliderStartPos.top-=e.stagePos.top,e.sliderStartPos.left-=e.stagePos.left,e.contentStartPos.top-=e.stagePos.top,e.contentStartPos.left-=e.stagePos.left,g(l).off(".fb.touch").on(r?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",g.proxy(e,"ontouchend")).on(r?"touchmove.fb.touch":"mousemove.fb.touch",g.proxy(e,"ontouchmove")),g.modulaFancybox.isMobile&&l.addEventListener("scroll",e.onscroll,!0),((e.opts||e.canPan)&&(o.is(e.$stage)||e.$stage.find(o).length)||(o.is(".modula-fancybox-image")&&t.preventDefault(),g.modulaFancybox.isMobile&&o.parents(".modula-fancybox-caption").length))&&(e.isScrollable=u(o)||u(o.parent()),g.modulaFancybox.isMobile&&e.isScrollable||t.preventDefault(),1!==e.startPoints.length&&!a.hasError||(e.canPan?(g.modulaFancybox.stop(e.$content),e.isPanning=!0):e.isSwiping=!0,e.$container.addClass("modula-fancybox-is-grabbing")),2===e.startPoints.length&&"image"===a.type&&(a.isLoaded||a.$ghost)&&(e.canTap=!1,e.isSwiping=!1,e.isPanning=!1,e.isZooming=!0,g.modulaFancybox.stop(e.$content),e.centerPointStartX=.5*(e.startPoints[0].x+e.startPoints[1].x)-g(m).scrollLeft(),e.centerPointStartY=.5*(e.startPoints[0].y+e.startPoints[1].y)-g(m).scrollTop(),e.percentageOfImageAtPinchPointX=(e.centerPointStartX-e.contentStartPos.left)/e.contentStartPos.width,e.percentageOfImageAtPinchPointY=(e.centerPointStartY-e.contentStartPos.top)/e.contentStartPos.height,e.startDistanceBetweenFingers=b(e.startPoints[0],e.startPoints[1]))))}},o.prototype.onscroll=function(t){this.isScrolling=!0,l.removeEventListener("scroll",this.onscroll,!0)},o.prototype.ontouchmove=function(t){var e=this;void 0===t.originalEvent.buttons||0!==t.originalEvent.buttons?e.isScrolling?e.canTap=!1:(e.newPoints=d(t),(e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=b(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=b(e.newPoints[0],e.startPoints[0],"y"),e.distance=b(e.newPoints[0],e.startPoints[0]),0<e.distance&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))):e.ontouchend(t)},o.prototype.onSwipe=function(t){var e,a=this,i=a.instance,o=a.isSwiping,n=a.sliderStartPos.left||0;if(!0!==o)"x"==o&&(0<a.distanceX&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?n+=Math.pow(a.distanceX,.8):a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?n-=Math.pow(-a.distanceX,.8):n+=a.distanceX),a.sliderLastPos={top:"x"==o?0:a.sliderStartPos.top+a.distanceY,left:n},a.requestId&&(v(a.requestId),a.requestId=null),a.requestId=y(function(){a.sliderLastPos&&(g.each(a.instance.slides,function(t,e){var o=e.pos-a.instance.currPos;g.modulaFancybox.setTranslate(e.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+o*a.canvasWidth+o*e.opts.gutter})}),a.$container.addClass("modula-fancybox-is-sliding"))});else if(10<Math.abs(a.distance)){if(a.canTap=!1,i.group.length<2&&a.opts.vertical?a.isSwiping="y":i.isDragging||!1===a.opts.vertical||"auto"===a.opts.vertical&&800<g(m).width()?a.isSwiping="x":(e=Math.abs(180*Math.atan2(a.distanceY,a.distanceX)/Math.PI),a.isSwiping=45<e&&e<135?"y":"x"),"y"===a.isSwiping&&g.modulaFancybox.isMobile&&a.isScrollable)return void(a.isScrolling=!0);i.isDragging=a.isSwiping,a.startPoints=a.newPoints,g.each(i.slides,function(t,e){var o,n;g.modulaFancybox.stop(e.$slide),o=g.modulaFancybox.getTranslate(e.$slide),n=g.modulaFancybox.getTranslate(i.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)modula-fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===i.current.pos&&(a.sliderStartPos.top=o.top-n.top,a.sliderStartPos.left=o.left-n.left),g.modulaFancybox.setTranslate(e.$slide,{top:o.top-n.top,left:o.left-n.left})}),i.SlideShow&&i.SlideShow.isActive&&i.SlideShow.stop()}},o.prototype.onPan=function(){var t=this;b(t.newPoints[0],t.realPoints[0])<(g.modulaFancybox.isMobile?10:5)?t.startPoints=t.newPoints:(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&v(t.requestId),t.requestId=y(function(){g.modulaFancybox.setTranslate(t.$content,t.contentLastPos)}))},o.prototype.limitMovement=function(){var t=this,e=t.canvasWidth,o=t.canvasHeight,n=t.distanceX,a=t.distanceY,i=t.contentStartPos,s=i.left,r=i.top,l=i.width,c=i.height,d=e<l?s+n:s,u=r+a,p=Math.max(0,.5*e-.5*l),h=Math.max(0,.5*o-.5*c),f=Math.min(e-l,.5*e-.5*l),m=Math.min(o-c,.5*o-.5*c);return 0<n&&p<d&&(d=p-1+Math.pow(-p+s+n,.8)||0),n<0&&d<f&&(d=f+1-Math.pow(f-s-n,.8)||0),0<a&&h<u&&(u=h-1+Math.pow(-h+r+a,.8)||0),a<0&&u<m&&(u=m+1-Math.pow(m-r-a,.8)||0),{top:u,left:d}},o.prototype.limitPosition=function(t,e,o,n){var a=this.canvasWidth,i=this.canvasHeight;return t=a<o?(t=0<t?0:t)<a-o?a-o:t:Math.max(0,a/2-o/2),{top:e=i<n?(e=0<e?0:e)<i-n?i-n:e:Math.max(0,i/2-n/2),left:t}},o.prototype.onZoom=function(){var t=this,e=t.contentStartPos,o=e.width,n=e.height,a=e.left,i=e.top,s=b(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,r=Math.floor(o*s),l=Math.floor(n*s),c=(o-r)*t.percentageOfImageAtPinchPointX,d=(n-l)*t.percentageOfImageAtPinchPointY,u=(t.newPoints[0].x+t.newPoints[1].x)/2-g(m).scrollLeft(),p=(t.newPoints[0].y+t.newPoints[1].y)/2-g(m).scrollTop(),h=u-t.centerPointStartX,f={top:i+(d+(p-t.centerPointStartY)),left:a+(c+h),scaleX:s,scaleY:s};t.canTap=!1,t.newWidth=r,t.newHeight=l,t.contentLastPos=f,t.requestId&&v(t.requestId),t.requestId=y(function(){g.modulaFancybox.setTranslate(t.$content,t.contentLastPos)})},o.prototype.ontouchend=function(t){var e=this,o=e.isSwiping,n=e.isPanning,a=e.isZooming,i=e.isScrolling;if(e.endPoints=d(t),e.dMs=Math.max((new Date).getTime()-e.startTime,1),e.$container.removeClass("modula-fancybox-is-grabbing"),g(l).off(".fb.touch"),l.removeEventListener("scroll",e.onscroll,!0),e.requestId&&(v(e.requestId),e.requestId=null),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.isScrolling=!1,e.instance.isDragging=!1,e.canTap)return e.onTap(t);e.speed=100,e.velocityX=e.distanceX/e.dMs*.5,e.velocityY=e.distanceY/e.dMs*.5,n?e.endPanning():a?e.endZooming():e.endSwiping(o,i)},o.prototype.endSwiping=function(t,e){var o=this,n=!1,a=o.instance.group.length,i=Math.abs(o.distanceX),s="x"==t&&1<a&&(130<o.dMs&&10<i||50<i);o.sliderLastPos=null,"y"==t&&!e&&50<Math.abs(o.distanceY)?(g.modulaFancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),n=o.instance.close(!0,250)):s&&0<o.distanceX?n=o.instance.previous(300):s&&o.distanceX<0&&(n=o.instance.next(300)),!1!==n||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("modula-fancybox-is-sliding")},o.prototype.endPanning=function(){var t,e,o,n=this;n.contentLastPos&&(e=!1===n.opts.momentum||350<n.dMs?(t=n.contentLastPos.left,n.contentLastPos.top):(t=n.contentLastPos.left+500*n.velocityX,n.contentLastPos.top+500*n.velocityY),(o=n.limitPosition(t,e,n.contentStartPos.width,n.contentStartPos.height)).width=n.contentStartPos.width,o.height=n.contentStartPos.height,g.modulaFancybox.animate(n.$content,o,366))},o.prototype.endZooming=function(){var t,e,o,n,a=this,i=a.instance.current,s=a.newWidth,r=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,n={top:e=a.contentLastPos.top,left:t,width:s,height:r,scaleX:1,scaleY:1},g.modulaFancybox.setTranslate(a.$content,n),s<a.canvasWidth&&r<a.canvasHeight?a.instance.scaleToFit(150):s>i.width||r>i.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,s,r),g.modulaFancybox.animate(a.$content,o,150)))},o.prototype.onTap=function(o){function t(t){var e=s.opts[t];if(g.isFunction(e)&&(e=e.apply(i,[s,o])),e)switch(e){case"close":i.close(n.startEvent);break;case"toggleControls":i.toggleControls();break;case"next":i.next();break;case"nextOrClose":1<i.group.length?i.next():i.close(n.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(i.canPan()?i.scaleToFit():i.isScaledDown()?i.scaleToActual(l,c):i.group.length<2&&i.close(n.startEvent))}}var e,n=this,a=g(o.target),i=n.instance,s=i.current,r=o&&d(o)||n.startPoints,l=r[0]?r[0].x-g(m).scrollLeft()-n.stagePos.left:0,c=r[0]?r[0].y-g(m).scrollTop()-n.stagePos.top:0;if((!o.originalEvent||2!=o.originalEvent.button)&&(a.is("img")||!(l>a[0].clientWidth+a.offset().left))){if(a.is(".modula-fancybox-bg,.modula-fancybox-inner,.modula-fancybox-outer,.modula-fancybox-container"))e="Outside";else if(a.is(".modula-fancybox-slide"))e="Slide";else{if(!i.current.$content||!i.current.$content.find(a).addBack().filter(a).length)return;e="Content"}if(n.tapped){if(clearTimeout(n.tapped),n.tapped=null,50<Math.abs(l-n.tapX)||50<Math.abs(c-n.tapY))return this;t("dblclick"+e)}else n.tapX=l,n.tapY=c,s.opts["dblclick"+e]&&s.opts["dblclick"+e]!==s.opts["click"+e]?n.tapped=setTimeout(function(){n.tapped=null,i.isAnimating||t("click"+e)},500):t("click"+e);return this}},g(l).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new o(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(s,r){"use strict";r.extend(!0,r.modulaFancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="modula-fancybox-button modula-fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});function o(t){this.instance=t,this.init()}r.extend(o.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,e=t.instance,o=e.group[e.currIndex].opts.slideShow;t.$button=e.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),e.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=r('<div class="modula-fancybox-progress"></div>').appendTo(e.$refs.inner))},set:function(t){var e=this,o=e.instance,n=o.current;n&&(!0===t||n.opts.loop||o.currIndex<o.group.length-1)?e.isActive&&"video"!==n.contentType&&(e.$progress&&r.modulaFancybox.animate(e.$progress.show(),{scaleX:1},n.opts.slideShow.speed),e.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},n.opts.slideShow.speed)):(e.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&this.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("modula-fancybox-button--play").addClass("modula-fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("modula-fancybox-button--pause").addClass("modula-fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){this.isActive?this.stop():this.start()}}),r(s).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new o(e))},"beforeShow.fb":function(t,e,o,n){var a=e&&e.SlideShow;n?a&&o.opts.slideShow.autoStart&&a.start():a&&a.isActive&&a.clear()},"afterShow.fb":function(t,e,o){var n=e&&e.SlideShow;n&&n.isActive&&n.set()},"afterKeydown.fb":function(t,e,o,n,a){var i=e&&e.SlideShow;!i||!o.opts.slideShow||80!==a&&32!==a||r(s.activeElement).is("button,a,input")||(n.preventDefault(),i.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var o=e&&e.SlideShow;o&&o.stop()}}),r(s).on("visibilitychange",function(){var t=r.modulaFancybox.getInstance(),e=t&&t.SlideShow;e&&e.isActive&&(s.hidden?e.clear():e.set())})}(document,jQuery),function(i,o){"use strict";var n,a=function(){for(var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],e={},o=0;o<t.length;o++){var n=t[o];if(n&&n[1]in i){for(var a=0;a<n.length;a++)e[t[0][a]]=n[a];return e}}return!1}();a&&(n={request:function(t){(t=t||i.documentElement)[a.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){i[a.exitFullscreen]()},toggle:function(t){t=t||i.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(i[a.fullscreenElement])},enabled:function(){return Boolean(i[a.fullscreenEnabled])}},o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="modula-fancybox-button modula-fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),o(i).on(a.fullscreenchange,function(){var t=n.isFullscreen(),e=o.modulaFancybox.getInstance();e&&(e.current&&"image"===e.current.type&&e.isAnimating&&(e.isAnimating=!1,e.update(!0,!0,0),e.isComplete||e.complete()),e.trigger("onFullscreenChange",t),e.$refs.container.toggleClass("modula-fancybox-is-fullscreen",t),e.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("modula-fancybox-button--fsenter",!t).toggleClass("modula-fancybox-button--fsexit",t))})),o(i).on({"onInit.fb":function(t,e){a?e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),n.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&n.request(),e.FullScreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,o,n,a){e&&e.FullScreen&&70===a&&(n.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("modula-fancybox-is-fullscreen")&&n.exit()}})}(document,jQuery),function(t,i){"use strict";var s="modula-fancybox-thumbs",r=s+"-active";i.modulaFancybox.defaults=i.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="modula-fancybox-button modula-fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"}},i.modulaFancybox.defaults);function n(t){this.init(t)}i.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,o=t.group,n=0;e.instance=t,e.opts=o[t.currIndex].opts.thumbs,(t.Thumbs=e).$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var a=0,i=o.length;a<i&&(o[a].thumb&&n++,!(1<n));a++);1<n&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var o,t=this,e=t.instance,n=t.opts.parentEl,a=[];t.$grid||(t.$grid=i('<div class="'+s+" "+s+"-"+t.opts.axis+'"></div>').appendTo(e.$refs.container.find(n).addBack().filter(n)),t.$grid.on("click","a",function(){e.jumpTo(i(this).attr("data-index"))})),t.$list||(t.$list=i('<div class="'+s+'__list">').appendTo(t.$grid)),i.each(e.group,function(t,e){(o=e.thumb)||"image"!==e.type||(o=e.src),a.push('<a href="javascript:;" tabindex="0" data-index="'+t+'"'+(o&&o.length?' style="background-image:url('+o+')"':'class="modula-fancybox-thumbs-missing"')+"></a>")}),t.$list[0].innerHTML=a.join(""),"x"===t.opts.axis&&t.$list.width(parseInt(t.$grid.css("padding-right"),10)+e.group.length*t.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,o,n=this,a=n.$list,i=n.$grid;n.instance.current&&(o=(e=a.children().removeClass(r).filter('[data-index="'+n.instance.current.index+'"]').addClass(r)).position(),"y"===n.opts.axis&&(o.top<0||o.top>a.height()-e.outerHeight())?a.stop().animate({scrollTop:a.scrollTop()+o.top},t):"x"===n.opts.axis&&(o.left<i.scrollLeft()||o.left>i.scrollLeft()+(i.width()-e.outerWidth()))&&a.parent().stop().animate({scrollLeft:o.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("modula-fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),i(t).on({"onInit.fb":function(t,e){var o;e&&!e.Thumbs&&(o=new n(e)).isActive&&!0===o.opts.autoStart&&o.show()},"beforeShow.fb":function(t,e,o,n){var a=e&&e.Thumbs;a&&a.isVisible&&a.focus(n?0:250)},"afterKeydown.fb":function(t,e,o,n,a){var i=e&&e.Thumbs;i&&i.isActive&&71===a&&(n.preventDefault(),i.toggle())},"beforeClose.fb":function(t,e){var o=e&&e.Thumbs;o&&o.isVisible&&!1!==o.opts.hideOnClose&&o.$grid.hide()}})}(document,jQuery),function(t,o){"use strict";o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="modula-fancybox-button modula-fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location}}}),o(t).on("click","[data-fancybox-share]",function(){var n,e,a=o.modulaFancybox.getInstance(),i=a.current||null,s="<div class='modula-fancybox-share'><h1>{{SHARE}}</h1><p>";i&&("function"===o.type(i.opts.share.url)&&(n=i.opts.share.url.apply(i,[a,i])),o.each(i.opts.modulaShare,function(t,e){var o=(i.opts.lightboxEmailMessage.length?i.opts.lightboxEmailMessage:"Here is the link to the image : %%image_link%% and this is the link to the gallery : %%gallery_link%%").replace(/\%%gallery_link%%/g,window.location.href).replace(/\%%image_link%%/g,i.src);s+=i.opts.shareBtnTpl[e].replace(/\{\{media\}\}/g,"image"===i.type?encodeURIComponent(i.src):"").replace(/\{\{modulaShareUrl\}\}/g,encodeURIComponent(n)).replace(/\{\{descr\}\}/g,a.$caption?encodeURIComponent(a.$caption.text()):"").replace(/\{\{subject\}\}/g,encodeURIComponent(i.opts.lightboxEmailSubject)).replace(/\{\{emailMessage\}\}/g,encodeURIComponent(o))}),s=(s+="</p><p><input class='modula-fancybox-share__input' type='text' value='{{url_raw}}' /></p></div>").replace(/\{\{url_raw\}\}/g,(e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},String(n).replace(/[&<>"'`=\/]/g,function(t){return e[t]}))),o.modulaFancybox.open({src:a.translate(a,s),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){a.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".modula-fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(i,s,a){"use strict";function o(){var t=i.location.hash.substr(1),e=t.split("-"),o=1<e.length&&/^\+?\d+$/.test(e[e.length-1])&&parseInt(e.pop(-1),10)||1;return{hash:t,index:o<1?1:o,gallery:e.join("-")}}function e(t){""!==t.gallery&&a("[data-fancybox='"+a.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function r(t){var e,o;return!!t&&(""!==(o=(e=t.current?t.current.opts:t.opts).hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&o)}a.escapeSelector||(a.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),a(function(){!1!==a.modulaFancybox.defaults.hash&&(a(s).on({"onInit.fb":function(t,e){!1!==e.group[e.currIndex].opts.hash&&(o(),r(e))},"beforeShow.fb":function(t,e,o,n){var a;o&&!1!==o.opts.hash&&(a=r(e))&&(e.currentHash=a+(1<e.group.length?"-"+o.opts.image_id:""),i.location.hash!=="#"+e.currentHash&&(n&&!e.origHash&&(e.origHash=i.location.hash),e.hashTimer&&clearTimeout(e.hashTimer),e.hashTimer=setTimeout(function(){"replaceState"in i.history?(i.history[n?"pushState":"replaceState"]({},s.title,i.location.pathname+i.location.search+"#"+e.currentHash),n&&(e.hasCreatedHistory=!0)):i.location.hash=e.currentHash,e.hashTimer=null},300)))},"beforeClose.fb":function(t,e,o){o&&!1!==o.opts.hash&&(clearTimeout(e.hashTimer),e.currentHash&&e.hasCreatedHistory?i.history.back():e.currentHash&&("replaceState"in i.history?i.history.replaceState({},s.title,i.location.pathname+i.location.search+(e.origHash||"")):i.location.hash=e.origHash),e.currentHash=null)}}),a(i).on("hashchange.fb",function(){var t=o(),n=null;a.each(a(".modula-fancybox-container").get().reverse(),function(t,e){var o=a(e).data("modulaFancyBox");if(o&&o.currentHash)return n=o,!1}),n?n.currentHash===t.gallery+"-"+t.index||1===t.index&&n.currentHash==t.gallery||(n.currentHash=null,n.close()):""!==t.gallery&&e(t)}),setTimeout(function(){a.modulaFancybox.getInstance()||e(o())},50))})}(window,document,jQuery),function(t,e){"use strict";var a=(new Date).getTime();e(t).on({"onInit.fb":function(t,n,e){n.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var e=n.current,o=(new Date).getTime();n.group.length<2||!1===e.opts.wheel||"auto"===e.opts.wheel&&"image"!==e.type||(t.preventDefault(),t.stopPropagation(),e.$slide.hasClass("modula-fancybox-animated")||(t=t.originalEvent||t,o-a<250||(a=o,n[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
5
  !function(e){var t=function(l,k){"use strict";if(!k.getElementsByClassName){return}var D,H,O=k.documentElement,o=l.Date,a=l.HTMLPictureElement,u="addEventListener",P="getAttribute",f=l[u],$=l.setTimeout,c=l.requestAnimationFrame||$,d=l.requestIdleCallback,I=/^picture$/i,r=["load","error","lazyincluded","_lazyloaded"],i={},q=Array.prototype.forEach,j=function(e,t){if(!i[t]){i[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")}return i[t].test(e[P]("class")||"")&&i[t]},G=function(e,t){if(!j(e,t)){e.setAttribute("class",(e[P]("class")||"").trim()+" "+t)}},J=function(e,t){var i;if(i=j(e,t)){e.setAttribute("class",(e[P]("class")||"").replace(i," "))}},K=function(t,i,e){var a=e?u:"removeEventListener";if(e){K(t,i)}r.forEach(function(e){t[a](e,i)})},Q=function(e,t,i,a,r){var n=k.createEvent("Event");if(!i){i={}}i.instance=D;n.initEvent(t,!a,!r);n.detail=i;e.dispatchEvent(n);return n},U=function(e,t){var i;if(!a&&(i=l.picturefill||H.pf)){if(t&&t.src&&!e[P]("srcset")){e.setAttribute("srcset",t.src)}i({reevaluate:true,elements:[e]})}else if(t&&t.src){e.src=t.src}},V=function(e,t){return(getComputedStyle(e,null)||{})[t]},s=function(e,t,i){i=i||e.offsetWidth;while(i<H.minSize&&t&&!e._lazysizesWidth){i=t.offsetWidth;t=t.parentNode}return i},X=function(){var i,a;var t=[];var r=[];var n=t;var s=function(){var e=n;n=t.length?r:t;i=true;a=false;while(e.length){e.shift()()}i=false};var e=function(e,t){if(i&&!t){e.apply(this,arguments)}else{n.push(e);if(!a){a=true;(k.hidden?$:c)(s)}}};e._lsFlush=s;return e}(),Y=function(i,e){return e?function(){X(i)}:function(){var e=this;var t=arguments;X(function(){i.apply(e,t)})}},Z=function(e){var i;var a=0;var r=H.throttleDelay;var n=H.ricTimeout;var t=function(){i=false;a=o.now();e()};var s=d&&n>49?function(){d(t,{timeout:n});if(n!==H.ricTimeout){n=H.ricTimeout}}:Y(function(){$(t)},true);return function(e){var t;if(e=e===true){n=33}if(i){return}i=true;t=r-(o.now()-a);if(t<0){t=0}if(e||t<9){s()}else{$(s,t)}}},ee=function(e){var t,i;var a=99;var r=function(){t=null;e()};var n=function(){var e=o.now()-i;if(e<a){$(n,a-e)}else{(d||r)(r)}};return function(){i=o.now();if(!t){t=$(n,a)}}};(function(){var e;var t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};H=l.lazySizesConfig||l.lazysizesConfig||{};for(e in t){if(!(e in H)){H[e]=t[e]}}l.lazySizesConfig=H;$(function(){if(H.init){n()}})})();var e=function(){var v,m,c,z,t;var h,y,g,p,C,b,A;var n=/^img$/i;var d=/^iframe$/i;var E="onscroll"in l&&!/(gle|ing)bot/.test(navigator.userAgent);var _=0;var w=0;var M=0;var N=-1;var x=function(e){M--;if(!e||M<0||!e.target){M=0}};var W=function(e){if(A==null){A=V(k.body,"visibility")=="hidden"}return A||V(e.parentNode,"visibility")!="hidden"&&V(e,"visibility")!="hidden"};var T=function(e,t){var i;var a=e;var r=W(e);g-=t;b+=t;p-=t;C+=t;while(r&&(a=a.offsetParent)&&a!=k.body&&a!=O){r=(V(a,"opacity")||1)>0;if(r&&V(a,"overflow")!="visible"){i=a.getBoundingClientRect();r=C>i.left&&p<i.right&&b>i.top-1&&g<i.bottom+1}}return r};var e=function(){var e,t,i,a,r,n,s,l,o,u,f,c;var d=D.elements;if((z=H.loadMode)&&M<8&&(e=d.length)){t=0;N++;u=!H.expand||H.expand<1?O.clientHeight>500&&O.clientWidth>500?500:370:H.expand;D._defEx=u;f=u*H.expFactor;c=H.hFac;A=null;if(w<f&&M<1&&N>2&&z>2&&!k.hidden){w=f;N=0}else if(z>1&&N>1&&M<6){w=u}else{w=_}for(;t<e;t++){if(!d[t]||d[t]._lazyRace){continue}if(!E){R(d[t]);continue}if(!(l=d[t][P]("data-expand"))||!(n=l*1)){n=w}if(o!==n){h=innerWidth+n*c;y=innerHeight+n;s=n*-1;o=n}i=d[t].getBoundingClientRect();if((b=i.bottom)>=s&&(g=i.top)<=y&&(C=i.right)>=s*c&&(p=i.left)<=h&&(b||C||p||g)&&(H.loadHidden||W(d[t]))&&(m&&M<3&&!l&&(z<3||N<4)||T(d[t],n))){R(d[t]);r=true;if(M>9){break}}else if(!r&&m&&!a&&M<4&&N<4&&z>2&&(v[0]||H.preloadAfterLoad)&&(v[0]||!l&&(b||C||p||g||d[t][P](H.sizesAttr)!="auto"))){a=v[0]||d[t]}}if(a&&!r){R(a)}}};var i=Z(e);var B=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}x(e);G(t,H.loadedClass);J(t,H.loadingClass);K(t,F);Q(t,"lazyloaded")};var a=Y(B);var F=function(e){a({target:e.target})};var S=function(t,i){try{t.contentWindow.location.replace(i)}catch(e){t.src=i}};var L=function(e){var t;var i=e[P](H.srcsetAttr);if(t=H.customMedia[e[P]("data-media")||e[P]("media")]){e.setAttribute("media",t)}if(i){e.setAttribute("srcset",i)}};var s=Y(function(e,t,i,a,r){var n,s,l,o,u,f;if(!(u=Q(e,"lazybeforeunveil",t)).defaultPrevented){if(a){if(i){G(e,H.autosizesClass)}else{e.setAttribute("sizes",a)}}s=e[P](H.srcsetAttr);n=e[P](H.srcAttr);if(r){l=e.parentNode;o=l&&I.test(l.nodeName||"")}f=t.firesLoad||"src"in e&&(s||n||o);u={target:e};G(e,H.loadingClass);if(f){clearTimeout(c);c=$(x,2500);K(e,F,true)}if(o){q.call(l.getElementsByTagName("source"),L)}if(s){e.setAttribute("srcset",s)}else if(n&&!o){if(d.test(e.nodeName)){S(e,n)}else{e.src=n}}if(r&&(s||o)){U(e,{src:n})}}if(e._lazyRace){delete e._lazyRace}J(e,H.lazyClass);X(function(){if(!f||e.complete&&e.naturalWidth>1){B(u);e._lazyCache=true;$(function(){if("_lazyCache"in e){delete e._lazyCache}},9)}},true)});var R=function(e){var t;var i=n.test(e.nodeName);var a=i&&(e[P](H.sizesAttr)||e[P]("sizes"));var r=a=="auto";if((r||!m)&&i&&(e[P]("src")||e.srcset)&&!e.complete&&!j(e,H.errorClass)&&j(e,H.lazyClass)){return}t=Q(e,"lazyunveilread").detail;if(r){te.updateElem(e,true,e.offsetWidth)}e._lazyRace=true;M++;s(e,t,r,a,i)};var r=function(){if(m){return}if(o.now()-t<999){$(r,999);return}var e=ee(function(){H.loadMode=3;i()});m=true;H.loadMode=3;i();f("scroll",function(){if(H.loadMode==3){H.loadMode=2}e()},true)};return{_:function(){t=o.now();D.elements=k.getElementsByClassName(H.lazyClass);v=k.getElementsByClassName(H.lazyClass+" "+H.preloadClass);f("scroll",i,true);f("resize",i,true);if(l.MutationObserver){new MutationObserver(i).observe(O,{childList:true,subtree:true,attributes:true})}else{O[u]("DOMNodeInserted",i,true);O[u]("DOMAttrModified",i,true);setInterval(i,999)}f("hashchange",i,true);["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(e){k[u](e,i,true)});if(/d$|^c/.test(k.readyState)){r()}else{f("load",r);k[u]("DOMContentLoaded",i);$(r,2e4)}if(D.elements.length){e();X._lsFlush()}else{i()}},checkElems:i,unveil:R}}(),te=function(){var i;var n=Y(function(e,t,i,a){var r,n,s;e._lazysizesWidth=a;a+="px";e.setAttribute("sizes",a);if(I.test(t.nodeName||"")){r=t.getElementsByTagName("source");for(n=0,s=r.length;n<s;n++){r[n].setAttribute("sizes",a)}}if(!i.detail.dataAttr){U(e,i.detail)}});var a=function(e,t,i){var a;var r=e.parentNode;if(r){i=s(e,r,i);a=Q(e,"lazybeforesizes",{width:i,dataAttr:!!t});if(!a.defaultPrevented){i=a.detail.width;if(i&&i!==e._lazysizesWidth){n(e,r,a,i)}}}};var e=function(){var e;var t=i.length;if(t){e=0;for(;e<t;e++){a(i[e])}}};var t=ee(e);return{_:function(){i=k.getElementsByClassName(H.autosizesClass);f("resize",t)},checkElems:t,updateElem:a}}(),n=function(){if(!n.i){n.i=true;te._();e._()}};return D={cfg:H,autoSizer:te,loader:e,init:n,uP:U,aC:G,rC:J,hC:j,fire:Q,gW:s,rAF:X}}(e,e.document);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}(window);
6
+ function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);var i=t.getBoundingClientRect();return i.top-jQuery(window).height()<=-100&&-400<=i.top-jQuery(window).height()||i.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")})}),function(c,r,u,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function s(t,i){this.element=t,this.$element=c(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=c.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}s.prototype.init=function(){var n=this;c(u).trigger("modula_api_before_init",[n]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),c(r).resize(function(){n.onResize(n)}),c(r).on("modula-update",function(){n.onResize(n)}),c(u).on("lazyloaded",function(t){var i,e,o=c(t.target);"modula"==o.data("source")&&(o.data("size",{width:o.width(),height:o.height()}),(i=o.parents(".modula-item")).addClass("tg-loaded"),e=n.$items.not(".jtg-hidden").index(i),n.placeImage(e),n.isIsotope&&n.$itemsCnt.modulaisotope("layout"))}),n.options.inView&&jQuery(r).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(n.$element)&&n.$element.addClass("modula-loaded-scale")}),this.setupSocial(),this.options.onComplete&&this.options.onComplete(),"fancybox"!=n.options.lightbox||n.options.initLightbox||this.initLightbox(),c(u).trigger("modula_api_after_init",[n])},s.prototype.initLightbox=function(){var o=this;o.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=c.map(o.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),e=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{$thumb:e.parents(".modula-item"),caption:i.data("caption"),alt:e.attr("alt"),image_id:i.attr("data-image-id")}}}),e=o.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,o.options.lightboxOpts,e)})},s.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},s.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),d=this,l=this.options.columns,i=u.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?l=this.options.mobileColumns:i<=768&&(l=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(l-1))/l:Math.floor(t/l*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=c(i).data("width"),a=c(i).data("height");12<s&&(s=12),"1"==d.options.enableResponsive&&(e=s,o=a,1==l?a=(s=1)*o/e:((s=Math.round(l*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+d.options.gutter*(s-1),n.height=Math.round(h)*a+d.options.gutter*(a-1),c(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),c(i).css(c(i).data("size")),c(i).find(".figc").css({width:c(i).data("size").width,height:c(i).data("size").height}),r.loadImage(t)});var e={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(d.options.gutter)}};this.$itemsCnt.modulaisotope(e),this.isIsotope=!0},s.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];c(i).data("size",e),c(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),c(i).css({width:e.width,height:e.height}),c(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},s.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},s.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},s.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++){(o=this.tiles[i]).area>this.tiles[t].area&&(t=i)}var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},s.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),c(u).trigger("modula_api_reset",[this])},s.prototype.onResize=function(i){i.lastWidth!=i.$itemsCnt.width()&&(clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope("layout")},100))},s.prototype.loadImage=function(t){var i,e=this,o=e.$items.not(".jtg-hidden").eq(t).find(".pic"),n={};"0"==e.options.lazyLoad&&(void 0===o.attr("width")&&void 0===o.attr("height")?((i=new Image).onload=function(){n={width:this.width,height:this.height},o.data("size",n),e.placeImage(t)},"undefined"!=o.attr("src")?i.src=o.attr("src"):i.src=o.data("src")):(n={width:o.width(),height:o.height()},o.data("size",n),e.placeImage(t)))},s.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",r={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(r.width=o.width,r.left=0,a){case"top":r.top=0;break;case"middle":r.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":r.bottom=0}else switch(r.height=o.height,r.top=0,h){case"left":r.left=0;break;case"center":r.left=0-(o.height*s-o.width)/2;break;case"right":r.right=0}e.css(r),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},s.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&h(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&a(this.$items,this),this.options.enableEmail&&l(this.$items,this)},s.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption"),e=u.title;return 0<i.length&&(e=c.trim(i)),r.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split("#")[0])+"&text="+encodeURI(e),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption");u.title;0<e.length&&c.trim(e);i.attr("src");var o="//www.facebook.com/sharer.php?u="+location.href;return r.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},a=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption");u.title;return 0<i.length&&c.trim(i),r.open("https://api.whatsapp.com/send?text="+encodeURI(r.location.href.split("#")[0])+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},h=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption"),o=u.title;0<e.length&&(o=c.trim(e));var n,s,a,h="http://pinterest.com/pin/create/button/?url="+encodeURI(location.href)+"&description="+encodeURI(o);return 1==i.length&&(n=i.attr("src"),h+="&media="+(s=n,(a=u.createElement("img")).src=s,s=a.src,a.src=null,s)),r.open(h,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();var i="//linkedin.com/shareArticle?mini=true&url="+ +encodeURI(location.href);return r.open(i,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,s){t.find(".modula-icon-email").click(function(t){var i=encodeURI(s.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,n="mailto:?subject="+i+"&body="+encodeURI(s.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return r.open(n,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};c.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){c.data(this,"plugin_"+n)||c.data(this,"plugin_"+n,new s(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=c.data(this,"plugin_"+n);t instanceof s&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&c.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).attr("id"),i=jQuery(this).data("config");jQuery("#"+t).modulaGallery(i)})});
assets/js/modula-justified-wf.js CHANGED
@@ -1,3 +1,3 @@
1
  !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(l){function r(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:l('<div class="spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}r.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},r.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},r.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},r.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)){if(0===this.settings.sizeRangeSuffixes[i].length)continue;if(this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i]}return""},r.prototype.newSrc=function(t,i,e,s){var n,r,o;return this.settings.thumbnailPath?o=this.settings.thumbnailPath(t,i,e,s):(r=null!==(n=t.match(this.settings.extension))?n[0]:"",o=t.replace(this.settings.extension,""),o=this.removeSuffix(o,this.getUsedSuffix(o)),o+=this.getSuffix(i,e)+r),o},r.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},r.prototype.extractImgSrcFromImage=function(t){var i=void 0!==t.data("safe-src")?t.data("safe-src"):t.attr("src");return t.data("jg.originalSrc",i),i},r.prototype.imgFromEntry=function(t){var i=t.find(this.settings.imgSelector);return 0===i.length?null:i},r.prototype.captionFromEntry=function(t){var i=t.find("> .caption");return 0===i.length?null:i},r.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h,g=this.imgFromEntry(t);null!==g?(g.css("width",s),g.css("height",n),g.css("margin-left",-s/2),g.css("margin-top",-n/2),o=g.attr("src"),a=this.newSrc(o,s,n,g[0]),g.one("error",function(){g.attr("src",g.data("jg.originalSrc"))}),h=function(){o!==a&&g.attr("src",a)},"skipped"===t.data("jg.loaded")?this.onImageEvent(o,l.proxy(function(){this.showImg(t,h),t.data("jg.loaded",!0)},this)):this.showImg(t,h)):this.showImg(t),this.displayEntryCaption(t)},r.prototype.displayEntryCaption=function(t){var i,e,s=this.imgFromEntry(t);null!==s&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=s.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=l('<div class="caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},r.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},r.prototype.onEntryMouseEnterForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.addClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},r.prototype.onEntryMouseLeaveForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.removeClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},r.prototype.addCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0===i&&(i={mouseenter:l.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:l.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},r.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},r.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},r.prototype.prepareBuildingRow=function(t){var i,e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(t&&"hide"===this.settings.lastRow&&!u){for(i=0;i<this.buildingRow.entriesBuff.length;i++)e=this.buildingRow.entriesBuff[i],this.settings.cssAnimation?e.removeClass("entry-visible"):(e.stop().fadeTo(0,.1),e.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),i=0;i<this.buildingRow.entriesBuff.length;i++)s=(e=this.buildingRow.entriesBuff[i]).data("jg.width")/e.data("jg.height"),r=o?(n=i===this.buildingRow.entriesBuff.length-1?h:g*s,g):(n=l*s,l),h-=Math.round(n),e.data("jg.jwidth",Math.round(n)),e.data("jg.jheight",Math.ceil(r)),(0===i||r<a)&&(a=r);return this.buildingRow.height=a,o},r.prototype.flushRow=function(t){var i,e=this.settings,s=this.border,n=this.prepareBuildingRow(t);if(t&&"hide"===e.lastRow&&-1===n)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===e.lastRow||"right"===e.lastRow)){for(var r=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*e.margins,o=0;o<this.buildingRow.entriesBuff.length;o++)r-=(i=this.buildingRow.entriesBuff[o]).data("jg.jwidth");"center"===e.lastRow?s+=r/2:"right"===e.lastRow&&(s+=r)}var a=this.buildingRow.entriesBuff.length-1;for(o=0;o<=a;o++)i=this.buildingRow.entriesBuff[this.settings.rtl?a-o:o],this.displayEntry(i,s,this.offY,i.data("jg.jwidth"),i.data("jg.jheight"),this.buildingRow.height),s+=i.data("jg.jwidth")+e.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=e.rowHeight&&n)&&(this.offY+=this.buildingRow.height+e.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;function e(){return l("body").height()>l(window).height()}r.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},r.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},r.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},r.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(l.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),e()===this.scrollBarOn?Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)):(this.scrollBarOn=e(),this.galleryWidth=t))},this),this.settings.refreshTime)},r.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},r.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},r.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},r.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},r.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},r.prototype.updateEntries=function(t){var i=t&&null!=this.lastFetchedEntry?l(this.lastFetchedEntry).nextAll(this.settings.selector).toArray():(this.entries=[],this.$gallery.children(this.settings.selector).toArray());return 0<i.length&&(l.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},r.prototype.insertToGallery=function(t){var i=this;l.each(t,function(){l(this).appendTo(i.$gallery)})},r.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},r.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},r.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)l(t[i]).removeClass("jg-filtered")},r.prototype.filterArray=function(t){var e=this.settings;if("string"===l.type(e.filter))return t.filter(function(t){var i=l(t);return i.is(e.filter)?(i.removeClass("jg-filtered"),!0):(i.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(l.isFunction(e.filter)){for(var i=t.filter(e.filter),s=0;s<t.length;s++)-1===i.indexOf(t[s])?l(t[s]).addClass("jg-filtered").removeClass("jg-visible"):l(t[s]).removeClass("jg-filtered");return i}},r.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),l.each(this.entries,l.proxy(function(t,i){var e=l(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry");var s=this.imgFromEntry(e);s.css("width",""),s.css("height",""),s.css("margin-left",""),s.css("margin-top",""),s.attr("src",s.data("jg.originalSrc")),s.data("jg.originalSrc",void 0),this.removeCaptionEventsHandlers(e);var n=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==n&&n.remove()):null!==n&&n.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0)},r.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=l(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t);this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete"),this.setGalleryFinalHeight(this.galleryHeightToSet)},r.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},r.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},r.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=l(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},r.prototype.init=function(){var a=!1,h=!1,g=this;l.each(this.entries,function(t,i){var e=l(i),s=g.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==g.settings.rel&&e.attr("rel",g.settings.rel),null!==g.settings.target&&e.attr("target",g.settings.target),null!==s){var n=g.extractImgSrcFromImage(s);if(s.attr("src",n),!1===g.settings.waitThumbnailsLoad){var r=parseFloat(s.prop("width")),o=parseFloat(s.prop("height"));if(!isNaN(r)&&!isNaN(o))return e.data("jg.width",r),e.data("jg.height",o),e.data("jg.loaded","skipped"),h=!0,g.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),a=!0,g.isSpinnerActive()||g.startLoadingSpinnerAnimation(),g.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),g.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),g.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),a||h||this.startImgAnalyzer(!1),this.checkWidth()},r.prototype.checkOrConvertNumber=function(t,i){if("string"===l.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==l.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},r.prototype.checkSizeRangesSuffixes=function(){if("object"!==l.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(i);for(var e={0:""},s=0;s<t.length;s++)if("string"===l.type(t[s]))try{e[parseInt(t[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[t[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[t[s]]=this.settings.sizeRangeSuffixes[t[s]];this.settings.sizeRangeSuffixes=e},r.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===l.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==l.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<i&&(t=i),t},r.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==l.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==l.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==l.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==l.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!l.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!l.isFunction(this.settings.filter)&&"string"!==l.type(this.settings.filter))throw"filter must be false, a string or a filter function"},r.prototype.retrieveSuffixRanges=function(){var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(parseInt(i,10));return t.sort(function(t,i){return i<t?1:t<i?-1:0}),t},r.prototype.updateSettings=function(t){this.settings=l.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},r.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a, div:not(.spinner)",imgSelector:"> img, > a > img",triggerEvent:function(t){this.$gallery.trigger(t)}},l.fn.justifiedGallery=function(n){return this.each(function(t,i){var e=l(i);e.addClass("justified-gallery");var s=e.data("jg.controller");if(void 0===s){if(null!=n&&"object"!==l.type(n)){if("destroy"===n)return;throw"The argument must be an object"}s=new r(e,l.extend({},r.prototype.defaults,n)),e.data("jg.controller",s)}else if("norewind"!==n){if("destroy"===n)return void s.destroy();s.updateSettings(n),s.rewind()}s.updateEntries("norewind"===n)&&s.init()})}});
2
  !function(e){var t=function(l,k){"use strict";if(!k.getElementsByClassName){return}var D,H,O=k.documentElement,o=l.Date,a=l.HTMLPictureElement,u="addEventListener",P="getAttribute",f=l[u],$=l.setTimeout,c=l.requestAnimationFrame||$,d=l.requestIdleCallback,I=/^picture$/i,r=["load","error","lazyincluded","_lazyloaded"],i={},q=Array.prototype.forEach,j=function(e,t){if(!i[t]){i[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")}return i[t].test(e[P]("class")||"")&&i[t]},G=function(e,t){if(!j(e,t)){e.setAttribute("class",(e[P]("class")||"").trim()+" "+t)}},J=function(e,t){var i;if(i=j(e,t)){e.setAttribute("class",(e[P]("class")||"").replace(i," "))}},K=function(t,i,e){var a=e?u:"removeEventListener";if(e){K(t,i)}r.forEach(function(e){t[a](e,i)})},Q=function(e,t,i,a,r){var n=k.createEvent("Event");if(!i){i={}}i.instance=D;n.initEvent(t,!a,!r);n.detail=i;e.dispatchEvent(n);return n},U=function(e,t){var i;if(!a&&(i=l.picturefill||H.pf)){if(t&&t.src&&!e[P]("srcset")){e.setAttribute("srcset",t.src)}i({reevaluate:true,elements:[e]})}else if(t&&t.src){e.src=t.src}},V=function(e,t){return(getComputedStyle(e,null)||{})[t]},s=function(e,t,i){i=i||e.offsetWidth;while(i<H.minSize&&t&&!e._lazysizesWidth){i=t.offsetWidth;t=t.parentNode}return i},X=function(){var i,a;var t=[];var r=[];var n=t;var s=function(){var e=n;n=t.length?r:t;i=true;a=false;while(e.length){e.shift()()}i=false};var e=function(e,t){if(i&&!t){e.apply(this,arguments)}else{n.push(e);if(!a){a=true;(k.hidden?$:c)(s)}}};e._lsFlush=s;return e}(),Y=function(i,e){return e?function(){X(i)}:function(){var e=this;var t=arguments;X(function(){i.apply(e,t)})}},Z=function(e){var i;var a=0;var r=H.throttleDelay;var n=H.ricTimeout;var t=function(){i=false;a=o.now();e()};var s=d&&n>49?function(){d(t,{timeout:n});if(n!==H.ricTimeout){n=H.ricTimeout}}:Y(function(){$(t)},true);return function(e){var t;if(e=e===true){n=33}if(i){return}i=true;t=r-(o.now()-a);if(t<0){t=0}if(e||t<9){s()}else{$(s,t)}}},ee=function(e){var t,i;var a=99;var r=function(){t=null;e()};var n=function(){var e=o.now()-i;if(e<a){$(n,a-e)}else{(d||r)(r)}};return function(){i=o.now();if(!t){t=$(n,a)}}};(function(){var e;var t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};H=l.lazySizesConfig||l.lazysizesConfig||{};for(e in t){if(!(e in H)){H[e]=t[e]}}l.lazySizesConfig=H;$(function(){if(H.init){n()}})})();var e=function(){var v,m,c,z,t;var h,y,g,p,C,b,A;var n=/^img$/i;var d=/^iframe$/i;var E="onscroll"in l&&!/(gle|ing)bot/.test(navigator.userAgent);var _=0;var w=0;var M=0;var N=-1;var x=function(e){M--;if(!e||M<0||!e.target){M=0}};var W=function(e){if(A==null){A=V(k.body,"visibility")=="hidden"}return A||V(e.parentNode,"visibility")!="hidden"&&V(e,"visibility")!="hidden"};var T=function(e,t){var i;var a=e;var r=W(e);g-=t;b+=t;p-=t;C+=t;while(r&&(a=a.offsetParent)&&a!=k.body&&a!=O){r=(V(a,"opacity")||1)>0;if(r&&V(a,"overflow")!="visible"){i=a.getBoundingClientRect();r=C>i.left&&p<i.right&&b>i.top-1&&g<i.bottom+1}}return r};var e=function(){var e,t,i,a,r,n,s,l,o,u,f,c;var d=D.elements;if((z=H.loadMode)&&M<8&&(e=d.length)){t=0;N++;u=!H.expand||H.expand<1?O.clientHeight>500&&O.clientWidth>500?500:370:H.expand;D._defEx=u;f=u*H.expFactor;c=H.hFac;A=null;if(w<f&&M<1&&N>2&&z>2&&!k.hidden){w=f;N=0}else if(z>1&&N>1&&M<6){w=u}else{w=_}for(;t<e;t++){if(!d[t]||d[t]._lazyRace){continue}if(!E){R(d[t]);continue}if(!(l=d[t][P]("data-expand"))||!(n=l*1)){n=w}if(o!==n){h=innerWidth+n*c;y=innerHeight+n;s=n*-1;o=n}i=d[t].getBoundingClientRect();if((b=i.bottom)>=s&&(g=i.top)<=y&&(C=i.right)>=s*c&&(p=i.left)<=h&&(b||C||p||g)&&(H.loadHidden||W(d[t]))&&(m&&M<3&&!l&&(z<3||N<4)||T(d[t],n))){R(d[t]);r=true;if(M>9){break}}else if(!r&&m&&!a&&M<4&&N<4&&z>2&&(v[0]||H.preloadAfterLoad)&&(v[0]||!l&&(b||C||p||g||d[t][P](H.sizesAttr)!="auto"))){a=v[0]||d[t]}}if(a&&!r){R(a)}}};var i=Z(e);var B=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}x(e);G(t,H.loadedClass);J(t,H.loadingClass);K(t,F);Q(t,"lazyloaded")};var a=Y(B);var F=function(e){a({target:e.target})};var S=function(t,i){try{t.contentWindow.location.replace(i)}catch(e){t.src=i}};var L=function(e){var t;var i=e[P](H.srcsetAttr);if(t=H.customMedia[e[P]("data-media")||e[P]("media")]){e.setAttribute("media",t)}if(i){e.setAttribute("srcset",i)}};var s=Y(function(e,t,i,a,r){var n,s,l,o,u,f;if(!(u=Q(e,"lazybeforeunveil",t)).defaultPrevented){if(a){if(i){G(e,H.autosizesClass)}else{e.setAttribute("sizes",a)}}s=e[P](H.srcsetAttr);n=e[P](H.srcAttr);if(r){l=e.parentNode;o=l&&I.test(l.nodeName||"")}f=t.firesLoad||"src"in e&&(s||n||o);u={target:e};G(e,H.loadingClass);if(f){clearTimeout(c);c=$(x,2500);K(e,F,true)}if(o){q.call(l.getElementsByTagName("source"),L)}if(s){e.setAttribute("srcset",s)}else if(n&&!o){if(d.test(e.nodeName)){S(e,n)}else{e.src=n}}if(r&&(s||o)){U(e,{src:n})}}if(e._lazyRace){delete e._lazyRace}J(e,H.lazyClass);X(function(){if(!f||e.complete&&e.naturalWidth>1){B(u);e._lazyCache=true;$(function(){if("_lazyCache"in e){delete e._lazyCache}},9)}},true)});var R=function(e){var t;var i=n.test(e.nodeName);var a=i&&(e[P](H.sizesAttr)||e[P]("sizes"));var r=a=="auto";if((r||!m)&&i&&(e[P]("src")||e.srcset)&&!e.complete&&!j(e,H.errorClass)&&j(e,H.lazyClass)){return}t=Q(e,"lazyunveilread").detail;if(r){te.updateElem(e,true,e.offsetWidth)}e._lazyRace=true;M++;s(e,t,r,a,i)};var r=function(){if(m){return}if(o.now()-t<999){$(r,999);return}var e=ee(function(){H.loadMode=3;i()});m=true;H.loadMode=3;i();f("scroll",function(){if(H.loadMode==3){H.loadMode=2}e()},true)};return{_:function(){t=o.now();D.elements=k.getElementsByClassName(H.lazyClass);v=k.getElementsByClassName(H.lazyClass+" "+H.preloadClass);f("scroll",i,true);f("resize",i,true);if(l.MutationObserver){new MutationObserver(i).observe(O,{childList:true,subtree:true,attributes:true})}else{O[u]("DOMNodeInserted",i,true);O[u]("DOMAttrModified",i,true);setInterval(i,999)}f("hashchange",i,true);["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(e){k[u](e,i,true)});if(/d$|^c/.test(k.readyState)){r()}else{f("load",r);k[u]("DOMContentLoaded",i);$(r,2e4)}if(D.elements.length){e();X._lsFlush()}else{i()}},checkElems:i,unveil:R}}(),te=function(){var i;var n=Y(function(e,t,i,a){var r,n,s;e._lazysizesWidth=a;a+="px";e.setAttribute("sizes",a);if(I.test(t.nodeName||"")){r=t.getElementsByTagName("source");for(n=0,s=r.length;n<s;n++){r[n].setAttribute("sizes",a)}}if(!i.detail.dataAttr){U(e,i.detail)}});var a=function(e,t,i){var a;var r=e.parentNode;if(r){i=s(e,r,i);a=Q(e,"lazybeforesizes",{width:i,dataAttr:!!t});if(!a.defaultPrevented){i=a.detail.width;if(i&&i!==e._lazysizesWidth){n(e,r,a,i)}}}};var e=function(){var e;var t=i.length;if(t){e=0;for(;e<t;e++){a(i[e])}}};var t=ee(e);return{_:function(){i=k.getElementsByClassName(H.autosizesClass);f("resize",t)},checkElems:t,updateElem:a}}(),n=function(){if(!n.i){n.i=true;te._();e._()}};return D={cfg:H,autoSizer:te,loader:e,init:n,uP:U,aC:G,rC:J,hC:j,fire:Q,gW:s,rAF:X}}(e,e.document);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}(window);
3
- function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);var i=t.getBoundingClientRect();return i.top-jQuery(window).height()<=-100&&-400<=i.top-jQuery(window).height()||i.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")})}),function(c,r,p,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function s(t,i){this.element=t,this.$element=c(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=c.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}s.prototype.init=function(){var n=this;c(p).trigger("modula_api_before_init",[n]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),c(r).resize(function(){n.onResize(n)}),c(r).on("modula-update",function(){n.onResize(n)}),c(p).on("lazyloaded",function(t){var i,e,o=c(t.target);"modula"==o.data("source")&&(o.data("size",{width:o.width(),height:o.height()}),(i=o.parents(".modula-item")).addClass("tg-loaded"),e=n.$items.not(".jtg-hidden").index(i),n.placeImage(e),n.isIsotope&&n.$itemsCnt.modulaisotope("layout"))}),n.options.inView&&jQuery(r).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(n.$element)&&n.$element.addClass("modula-loaded-scale")}),this.setupSocial(),this.options.onComplete&&this.options.onComplete(),"fancybox"!=n.options.lightbox||n.options.initLightbox||this.initLightbox(),c(p).trigger("modula_api_after_init",[n])},s.prototype.initLightbox=function(){var o=this;o.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=c.map(o.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),e=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{caption:i.data("caption"),alt:e.attr("alt"),image_id:i.attr("data-image-id")}}}),e=o.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,o.options.lightboxOpts,e)})},s.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},s.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),d=this,l=this.options.columns,i=p.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?l=this.options.mobileColumns:i<=768&&(l=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(l-1))/l:Math.floor(t/l*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=c(i).data("width"),a=c(i).data("height");12<s&&(s=12),"1"==d.options.enableResponsive&&(e=s,o=a,1==l?a=(s=1)*o/e:((s=Math.round(l*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+d.options.gutter*(s-1),n.height=Math.round(h)*a+d.options.gutter*(a-1),c(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),c(i).css(c(i).data("size")),c(i).find(".figc").css({width:c(i).data("size").width,height:c(i).data("size").height}),r.loadImage(t)});var e={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(d.options.gutter)}};this.$itemsCnt.modulaisotope(e),this.isIsotope=!0},s.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];c(i).data("size",e),c(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),c(i).css({width:e.width,height:e.height}),c(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},s.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},s.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},s.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++){(o=this.tiles[i]).area>this.tiles[t].area&&(t=i)}var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},s.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),c(p).trigger("modula_api_reset",[this])},s.prototype.onResize=function(i){i.lastWidth!=i.$itemsCnt.width()&&(clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope("layout")},100))},s.prototype.loadImage=function(t){var i,e=this,o=e.$items.not(".jtg-hidden").eq(t).find(".pic"),n={};"0"==e.options.lazyLoad&&(void 0===o.attr("width")&&void 0===o.attr("height")?((i=new Image).onload=function(){n={width:this.width,height:this.height},o.data("size",n),e.placeImage(t)},"undefined"!=o.attr("src")?i.src=o.attr("src"):i.src=o.data("src")):(n={width:o.width(),height:o.height()},o.data("size",n),e.placeImage(t)))},s.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",r={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(r.width=o.width,r.left=0,a){case"top":r.top=0;break;case"middle":r.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":r.bottom=0}else switch(r.height=o.height,r.top=0,h){case"left":r.left=0;break;case"center":r.left=0-(o.height*s-o.width)/2;break;case"right":r.right=0}e.css(r),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},s.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&h(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&a(this.$items,this),this.options.enableEmail&&l(this.$items,this)},s.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption"),e=p.title;return 0<i.length&&(e=c.trim(i)),r.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split("#")[0])+"&text="+encodeURI(e),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption");p.title;0<e.length&&c.trim(e);i.attr("src");var o="//www.facebook.com/sharer.php?u="+location.href;return r.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},a=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption");p.title;return 0<i.length&&c.trim(i),r.open("https://api.whatsapp.com/send?text="+encodeURI(r.location.href.split("#")[0])+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},h=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption"),o=p.title;0<e.length&&(o=c.trim(e));var n,s,a,h="http://pinterest.com/pin/create/button/?url="+encodeURI(location.href)+"&description="+encodeURI(o);return 1==i.length&&(n=i.attr("src"),h+="&media="+(s=n,(a=p.createElement("img")).src=s,s=a.src,a.src=null,s)),r.open(h,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();var i="//linkedin.com/shareArticle?mini=true&url="+ +encodeURI(location.href);return r.open(i,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,s){t.find(".modula-icon-email").click(function(t){var i=encodeURI(s.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,n="mailto:?subject="+i+"&body="+encodeURI(s.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return r.open(n,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};c.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){c.data(this,"plugin_"+n)||c.data(this,"plugin_"+n,new s(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=c.data(this,"plugin_"+n);t instanceof s&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&c.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).attr("id"),i=jQuery(this).data("config");jQuery("#"+t).modulaGallery(i)})});
1
  !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(l){function r(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:l('<div class="spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}r.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},r.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},r.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},r.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)){if(0===this.settings.sizeRangeSuffixes[i].length)continue;if(this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i]}return""},r.prototype.newSrc=function(t,i,e,s){var n,r,o;return this.settings.thumbnailPath?o=this.settings.thumbnailPath(t,i,e,s):(r=null!==(n=t.match(this.settings.extension))?n[0]:"",o=t.replace(this.settings.extension,""),o=this.removeSuffix(o,this.getUsedSuffix(o)),o+=this.getSuffix(i,e)+r),o},r.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},r.prototype.extractImgSrcFromImage=function(t){var i=void 0!==t.data("safe-src")?t.data("safe-src"):t.attr("src");return t.data("jg.originalSrc",i),i},r.prototype.imgFromEntry=function(t){var i=t.find(this.settings.imgSelector);return 0===i.length?null:i},r.prototype.captionFromEntry=function(t){var i=t.find("> .caption");return 0===i.length?null:i},r.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h,g=this.imgFromEntry(t);null!==g?(g.css("width",s),g.css("height",n),g.css("margin-left",-s/2),g.css("margin-top",-n/2),o=g.attr("src"),a=this.newSrc(o,s,n,g[0]),g.one("error",function(){g.attr("src",g.data("jg.originalSrc"))}),h=function(){o!==a&&g.attr("src",a)},"skipped"===t.data("jg.loaded")?this.onImageEvent(o,l.proxy(function(){this.showImg(t,h),t.data("jg.loaded",!0)},this)):this.showImg(t,h)):this.showImg(t),this.displayEntryCaption(t)},r.prototype.displayEntryCaption=function(t){var i,e,s=this.imgFromEntry(t);null!==s&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=s.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=l('<div class="caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},r.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},r.prototype.onEntryMouseEnterForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.addClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},r.prototype.onEntryMouseLeaveForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.removeClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},r.prototype.addCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0===i&&(i={mouseenter:l.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:l.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},r.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},r.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},r.prototype.prepareBuildingRow=function(t){var i,e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(t&&"hide"===this.settings.lastRow&&!u){for(i=0;i<this.buildingRow.entriesBuff.length;i++)e=this.buildingRow.entriesBuff[i],this.settings.cssAnimation?e.removeClass("entry-visible"):(e.stop().fadeTo(0,.1),e.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),i=0;i<this.buildingRow.entriesBuff.length;i++)s=(e=this.buildingRow.entriesBuff[i]).data("jg.width")/e.data("jg.height"),r=o?(n=i===this.buildingRow.entriesBuff.length-1?h:g*s,g):(n=l*s,l),h-=Math.round(n),e.data("jg.jwidth",Math.round(n)),e.data("jg.jheight",Math.ceil(r)),(0===i||r<a)&&(a=r);return this.buildingRow.height=a,o},r.prototype.flushRow=function(t){var i,e=this.settings,s=this.border,n=this.prepareBuildingRow(t);if(t&&"hide"===e.lastRow&&-1===n)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===e.lastRow||"right"===e.lastRow)){for(var r=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*e.margins,o=0;o<this.buildingRow.entriesBuff.length;o++)r-=(i=this.buildingRow.entriesBuff[o]).data("jg.jwidth");"center"===e.lastRow?s+=r/2:"right"===e.lastRow&&(s+=r)}var a=this.buildingRow.entriesBuff.length-1;for(o=0;o<=a;o++)i=this.buildingRow.entriesBuff[this.settings.rtl?a-o:o],this.displayEntry(i,s,this.offY,i.data("jg.jwidth"),i.data("jg.jheight"),this.buildingRow.height),s+=i.data("jg.jwidth")+e.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=e.rowHeight&&n)&&(this.offY+=this.buildingRow.height+e.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;function e(){return l("body").height()>l(window).height()}r.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},r.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},r.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},r.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(l.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),e()===this.scrollBarOn?Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)):(this.scrollBarOn=e(),this.galleryWidth=t))},this),this.settings.refreshTime)},r.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},r.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},r.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},r.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},r.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},r.prototype.updateEntries=function(t){var i=t&&null!=this.lastFetchedEntry?l(this.lastFetchedEntry).nextAll(this.settings.selector).toArray():(this.entries=[],this.$gallery.children(this.settings.selector).toArray());return 0<i.length&&(l.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},r.prototype.insertToGallery=function(t){var i=this;l.each(t,function(){l(this).appendTo(i.$gallery)})},r.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},r.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},r.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)l(t[i]).removeClass("jg-filtered")},r.prototype.filterArray=function(t){var e=this.settings;if("string"===l.type(e.filter))return t.filter(function(t){var i=l(t);return i.is(e.filter)?(i.removeClass("jg-filtered"),!0):(i.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(l.isFunction(e.filter)){for(var i=t.filter(e.filter),s=0;s<t.length;s++)-1===i.indexOf(t[s])?l(t[s]).addClass("jg-filtered").removeClass("jg-visible"):l(t[s]).removeClass("jg-filtered");return i}},r.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),l.each(this.entries,l.proxy(function(t,i){var e=l(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry");var s=this.imgFromEntry(e);s.css("width",""),s.css("height",""),s.css("margin-left",""),s.css("margin-top",""),s.attr("src",s.data("jg.originalSrc")),s.data("jg.originalSrc",void 0),this.removeCaptionEventsHandlers(e);var n=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==n&&n.remove()):null!==n&&n.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0)},r.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=l(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t);this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete"),this.setGalleryFinalHeight(this.galleryHeightToSet)},r.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},r.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},r.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=l(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},r.prototype.init=function(){var a=!1,h=!1,g=this;l.each(this.entries,function(t,i){var e=l(i),s=g.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==g.settings.rel&&e.attr("rel",g.settings.rel),null!==g.settings.target&&e.attr("target",g.settings.target),null!==s){var n=g.extractImgSrcFromImage(s);if(s.attr("src",n),!1===g.settings.waitThumbnailsLoad){var r=parseFloat(s.prop("width")),o=parseFloat(s.prop("height"));if(!isNaN(r)&&!isNaN(o))return e.data("jg.width",r),e.data("jg.height",o),e.data("jg.loaded","skipped"),h=!0,g.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),a=!0,g.isSpinnerActive()||g.startLoadingSpinnerAnimation(),g.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),g.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),g.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),a||h||this.startImgAnalyzer(!1),this.checkWidth()},r.prototype.checkOrConvertNumber=function(t,i){if("string"===l.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==l.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},r.prototype.checkSizeRangesSuffixes=function(){if("object"!==l.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(i);for(var e={0:""},s=0;s<t.length;s++)if("string"===l.type(t[s]))try{e[parseInt(t[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[t[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[t[s]]=this.settings.sizeRangeSuffixes[t[s]];this.settings.sizeRangeSuffixes=e},r.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===l.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==l.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<i&&(t=i),t},r.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==l.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==l.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==l.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==l.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!l.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!l.isFunction(this.settings.filter)&&"string"!==l.type(this.settings.filter))throw"filter must be false, a string or a filter function"},r.prototype.retrieveSuffixRanges=function(){var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(parseInt(i,10));return t.sort(function(t,i){return i<t?1:t<i?-1:0}),t},r.prototype.updateSettings=function(t){this.settings=l.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},r.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a, div:not(.spinner)",imgSelector:"> img, > a > img",triggerEvent:function(t){this.$gallery.trigger(t)}},l.fn.justifiedGallery=function(n){return this.each(function(t,i){var e=l(i);e.addClass("justified-gallery");var s=e.data("jg.controller");if(void 0===s){if(null!=n&&"object"!==l.type(n)){if("destroy"===n)return;throw"The argument must be an object"}s=new r(e,l.extend({},r.prototype.defaults,n)),e.data("jg.controller",s)}else if("norewind"!==n){if("destroy"===n)return void s.destroy();s.updateSettings(n),s.rewind()}s.updateEntries("norewind"===n)&&s.init()})}});
2
  !function(e){var t=function(l,k){"use strict";if(!k.getElementsByClassName){return}var D,H,O=k.documentElement,o=l.Date,a=l.HTMLPictureElement,u="addEventListener",P="getAttribute",f=l[u],$=l.setTimeout,c=l.requestAnimationFrame||$,d=l.requestIdleCallback,I=/^picture$/i,r=["load","error","lazyincluded","_lazyloaded"],i={},q=Array.prototype.forEach,j=function(e,t){if(!i[t]){i[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")}return i[t].test(e[P]("class")||"")&&i[t]},G=function(e,t){if(!j(e,t)){e.setAttribute("class",(e[P]("class")||"").trim()+" "+t)}},J=function(e,t){var i;if(i=j(e,t)){e.setAttribute("class",(e[P]("class")||"").replace(i," "))}},K=function(t,i,e){var a=e?u:"removeEventListener";if(e){K(t,i)}r.forEach(function(e){t[a](e,i)})},Q=function(e,t,i,a,r){var n=k.createEvent("Event");if(!i){i={}}i.instance=D;n.initEvent(t,!a,!r);n.detail=i;e.dispatchEvent(n);return n},U=function(e,t){var i;if(!a&&(i=l.picturefill||H.pf)){if(t&&t.src&&!e[P]("srcset")){e.setAttribute("srcset",t.src)}i({reevaluate:true,elements:[e]})}else if(t&&t.src){e.src=t.src}},V=function(e,t){return(getComputedStyle(e,null)||{})[t]},s=function(e,t,i){i=i||e.offsetWidth;while(i<H.minSize&&t&&!e._lazysizesWidth){i=t.offsetWidth;t=t.parentNode}return i},X=function(){var i,a;var t=[];var r=[];var n=t;var s=function(){var e=n;n=t.length?r:t;i=true;a=false;while(e.length){e.shift()()}i=false};var e=function(e,t){if(i&&!t){e.apply(this,arguments)}else{n.push(e);if(!a){a=true;(k.hidden?$:c)(s)}}};e._lsFlush=s;return e}(),Y=function(i,e){return e?function(){X(i)}:function(){var e=this;var t=arguments;X(function(){i.apply(e,t)})}},Z=function(e){var i;var a=0;var r=H.throttleDelay;var n=H.ricTimeout;var t=function(){i=false;a=o.now();e()};var s=d&&n>49?function(){d(t,{timeout:n});if(n!==H.ricTimeout){n=H.ricTimeout}}:Y(function(){$(t)},true);return function(e){var t;if(e=e===true){n=33}if(i){return}i=true;t=r-(o.now()-a);if(t<0){t=0}if(e||t<9){s()}else{$(s,t)}}},ee=function(e){var t,i;var a=99;var r=function(){t=null;e()};var n=function(){var e=o.now()-i;if(e<a){$(n,a-e)}else{(d||r)(r)}};return function(){i=o.now();if(!t){t=$(n,a)}}};(function(){var e;var t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};H=l.lazySizesConfig||l.lazysizesConfig||{};for(e in t){if(!(e in H)){H[e]=t[e]}}l.lazySizesConfig=H;$(function(){if(H.init){n()}})})();var e=function(){var v,m,c,z,t;var h,y,g,p,C,b,A;var n=/^img$/i;var d=/^iframe$/i;var E="onscroll"in l&&!/(gle|ing)bot/.test(navigator.userAgent);var _=0;var w=0;var M=0;var N=-1;var x=function(e){M--;if(!e||M<0||!e.target){M=0}};var W=function(e){if(A==null){A=V(k.body,"visibility")=="hidden"}return A||V(e.parentNode,"visibility")!="hidden"&&V(e,"visibility")!="hidden"};var T=function(e,t){var i;var a=e;var r=W(e);g-=t;b+=t;p-=t;C+=t;while(r&&(a=a.offsetParent)&&a!=k.body&&a!=O){r=(V(a,"opacity")||1)>0;if(r&&V(a,"overflow")!="visible"){i=a.getBoundingClientRect();r=C>i.left&&p<i.right&&b>i.top-1&&g<i.bottom+1}}return r};var e=function(){var e,t,i,a,r,n,s,l,o,u,f,c;var d=D.elements;if((z=H.loadMode)&&M<8&&(e=d.length)){t=0;N++;u=!H.expand||H.expand<1?O.clientHeight>500&&O.clientWidth>500?500:370:H.expand;D._defEx=u;f=u*H.expFactor;c=H.hFac;A=null;if(w<f&&M<1&&N>2&&z>2&&!k.hidden){w=f;N=0}else if(z>1&&N>1&&M<6){w=u}else{w=_}for(;t<e;t++){if(!d[t]||d[t]._lazyRace){continue}if(!E){R(d[t]);continue}if(!(l=d[t][P]("data-expand"))||!(n=l*1)){n=w}if(o!==n){h=innerWidth+n*c;y=innerHeight+n;s=n*-1;o=n}i=d[t].getBoundingClientRect();if((b=i.bottom)>=s&&(g=i.top)<=y&&(C=i.right)>=s*c&&(p=i.left)<=h&&(b||C||p||g)&&(H.loadHidden||W(d[t]))&&(m&&M<3&&!l&&(z<3||N<4)||T(d[t],n))){R(d[t]);r=true;if(M>9){break}}else if(!r&&m&&!a&&M<4&&N<4&&z>2&&(v[0]||H.preloadAfterLoad)&&(v[0]||!l&&(b||C||p||g||d[t][P](H.sizesAttr)!="auto"))){a=v[0]||d[t]}}if(a&&!r){R(a)}}};var i=Z(e);var B=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}x(e);G(t,H.loadedClass);J(t,H.loadingClass);K(t,F);Q(t,"lazyloaded")};var a=Y(B);var F=function(e){a({target:e.target})};var S=function(t,i){try{t.contentWindow.location.replace(i)}catch(e){t.src=i}};var L=function(e){var t;var i=e[P](H.srcsetAttr);if(t=H.customMedia[e[P]("data-media")||e[P]("media")]){e.setAttribute("media",t)}if(i){e.setAttribute("srcset",i)}};var s=Y(function(e,t,i,a,r){var n,s,l,o,u,f;if(!(u=Q(e,"lazybeforeunveil",t)).defaultPrevented){if(a){if(i){G(e,H.autosizesClass)}else{e.setAttribute("sizes",a)}}s=e[P](H.srcsetAttr);n=e[P](H.srcAttr);if(r){l=e.parentNode;o=l&&I.test(l.nodeName||"")}f=t.firesLoad||"src"in e&&(s||n||o);u={target:e};G(e,H.loadingClass);if(f){clearTimeout(c);c=$(x,2500);K(e,F,true)}if(o){q.call(l.getElementsByTagName("source"),L)}if(s){e.setAttribute("srcset",s)}else if(n&&!o){if(d.test(e.nodeName)){S(e,n)}else{e.src=n}}if(r&&(s||o)){U(e,{src:n})}}if(e._lazyRace){delete e._lazyRace}J(e,H.lazyClass);X(function(){if(!f||e.complete&&e.naturalWidth>1){B(u);e._lazyCache=true;$(function(){if("_lazyCache"in e){delete e._lazyCache}},9)}},true)});var R=function(e){var t;var i=n.test(e.nodeName);var a=i&&(e[P](H.sizesAttr)||e[P]("sizes"));var r=a=="auto";if((r||!m)&&i&&(e[P]("src")||e.srcset)&&!e.complete&&!j(e,H.errorClass)&&j(e,H.lazyClass)){return}t=Q(e,"lazyunveilread").detail;if(r){te.updateElem(e,true,e.offsetWidth)}e._lazyRace=true;M++;s(e,t,r,a,i)};var r=function(){if(m){return}if(o.now()-t<999){$(r,999);return}var e=ee(function(){H.loadMode=3;i()});m=true;H.loadMode=3;i();f("scroll",function(){if(H.loadMode==3){H.loadMode=2}e()},true)};return{_:function(){t=o.now();D.elements=k.getElementsByClassName(H.lazyClass);v=k.getElementsByClassName(H.lazyClass+" "+H.preloadClass);f("scroll",i,true);f("resize",i,true);if(l.MutationObserver){new MutationObserver(i).observe(O,{childList:true,subtree:true,attributes:true})}else{O[u]("DOMNodeInserted",i,true);O[u]("DOMAttrModified",i,true);setInterval(i,999)}f("hashchange",i,true);["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(e){k[u](e,i,true)});if(/d$|^c/.test(k.readyState)){r()}else{f("load",r);k[u]("DOMContentLoaded",i);$(r,2e4)}if(D.elements.length){e();X._lsFlush()}else{i()}},checkElems:i,unveil:R}}(),te=function(){var i;var n=Y(function(e,t,i,a){var r,n,s;e._lazysizesWidth=a;a+="px";e.setAttribute("sizes",a);if(I.test(t.nodeName||"")){r=t.getElementsByTagName("source");for(n=0,s=r.length;n<s;n++){r[n].setAttribute("sizes",a)}}if(!i.detail.dataAttr){U(e,i.detail)}});var a=function(e,t,i){var a;var r=e.parentNode;if(r){i=s(e,r,i);a=Q(e,"lazybeforesizes",{width:i,dataAttr:!!t});if(!a.defaultPrevented){i=a.detail.width;if(i&&i!==e._lazysizesWidth){n(e,r,a,i)}}}};var e=function(){var e;var t=i.length;if(t){e=0;for(;e<t;e++){a(i[e])}}};var t=ee(e);return{_:function(){i=k.getElementsByClassName(H.autosizesClass);f("resize",t)},checkElems:t,updateElem:a}}(),n=function(){if(!n.i){n.i=true;te._();e._()}};return D={cfg:H,autoSizer:te,loader:e,init:n,uP:U,aC:G,rC:J,hC:j,fire:Q,gW:s,rAF:X}}(e,e.document);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}(window);
3
+ function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);var i=t.getBoundingClientRect();return i.top-jQuery(window).height()<=-100&&-400<=i.top-jQuery(window).height()||i.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")})}),function(c,r,u,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function s(t,i){this.element=t,this.$element=c(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=c.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}s.prototype.init=function(){var n=this;c(u).trigger("modula_api_before_init",[n]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),c(r).resize(function(){n.onResize(n)}),c(r).on("modula-update",function(){n.onResize(n)}),c(u).on("lazyloaded",function(t){var i,e,o=c(t.target);"modula"==o.data("source")&&(o.data("size",{width:o.width(),height:o.height()}),(i=o.parents(".modula-item")).addClass("tg-loaded"),e=n.$items.not(".jtg-hidden").index(i),n.placeImage(e),n.isIsotope&&n.$itemsCnt.modulaisotope("layout"))}),n.options.inView&&jQuery(r).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(n.$element)&&n.$element.addClass("modula-loaded-scale")}),this.setupSocial(),this.options.onComplete&&this.options.onComplete(),"fancybox"!=n.options.lightbox||n.options.initLightbox||this.initLightbox(),c(u).trigger("modula_api_after_init",[n])},s.prototype.initLightbox=function(){var o=this;o.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=c.map(o.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),e=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{$thumb:e.parents(".modula-item"),caption:i.data("caption"),alt:e.attr("alt"),image_id:i.attr("data-image-id")}}}),e=o.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,o.options.lightboxOpts,e)})},s.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},s.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),d=this,l=this.options.columns,i=u.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?l=this.options.mobileColumns:i<=768&&(l=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(l-1))/l:Math.floor(t/l*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=c(i).data("width"),a=c(i).data("height");12<s&&(s=12),"1"==d.options.enableResponsive&&(e=s,o=a,1==l?a=(s=1)*o/e:((s=Math.round(l*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+d.options.gutter*(s-1),n.height=Math.round(h)*a+d.options.gutter*(a-1),c(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),c(i).css(c(i).data("size")),c(i).find(".figc").css({width:c(i).data("size").width,height:c(i).data("size").height}),r.loadImage(t)});var e={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(d.options.gutter)}};this.$itemsCnt.modulaisotope(e),this.isIsotope=!0},s.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];c(i).data("size",e),c(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),c(i).css({width:e.width,height:e.height}),c(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},s.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},s.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},s.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++){(o=this.tiles[i]).area>this.tiles[t].area&&(t=i)}var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},s.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),c(u).trigger("modula_api_reset",[this])},s.prototype.onResize=function(i){i.lastWidth!=i.$itemsCnt.width()&&(clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope("layout")},100))},s.prototype.loadImage=function(t){var i,e=this,o=e.$items.not(".jtg-hidden").eq(t).find(".pic"),n={};"0"==e.options.lazyLoad&&(void 0===o.attr("width")&&void 0===o.attr("height")?((i=new Image).onload=function(){n={width:this.width,height:this.height},o.data("size",n),e.placeImage(t)},"undefined"!=o.attr("src")?i.src=o.attr("src"):i.src=o.data("src")):(n={width:o.width(),height:o.height()},o.data("size",n),e.placeImage(t)))},s.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",r={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(r.width=o.width,r.left=0,a){case"top":r.top=0;break;case"middle":r.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":r.bottom=0}else switch(r.height=o.height,r.top=0,h){case"left":r.left=0;break;case"center":r.left=0-(o.height*s-o.width)/2;break;case"right":r.right=0}e.css(r),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},s.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&h(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&a(this.$items,this),this.options.enableEmail&&l(this.$items,this)},s.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption"),e=u.title;return 0<i.length&&(e=c.trim(i)),r.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split("#")[0])+"&text="+encodeURI(e),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption");u.title;0<e.length&&c.trim(e);i.attr("src");var o="//www.facebook.com/sharer.php?u="+location.href;return r.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},a=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption");u.title;return 0<i.length&&c.trim(i),r.open("https://api.whatsapp.com/send?text="+encodeURI(r.location.href.split("#")[0])+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},h=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption"),o=u.title;0<e.length&&(o=c.trim(e));var n,s,a,h="http://pinterest.com/pin/create/button/?url="+encodeURI(location.href)+"&description="+encodeURI(o);return 1==i.length&&(n=i.attr("src"),h+="&media="+(s=n,(a=u.createElement("img")).src=s,s=a.src,a.src=null,s)),r.open(h,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();var i="//linkedin.com/shareArticle?mini=true&url="+ +encodeURI(location.href);return r.open(i,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,s){t.find(".modula-icon-email").click(function(t){var i=encodeURI(s.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,n="mailto:?subject="+i+"&body="+encodeURI(s.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return r.open(n,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};c.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){c.data(this,"plugin_"+n)||c.data(this,"plugin_"+n,new s(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=c.data(this,"plugin_"+n);t instanceof s&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&c.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).attr("id"),i=jQuery(this).data("config");jQuery("#"+t).modulaGallery(i)})});
assets/js/modula-justified-wfl.js CHANGED
@@ -1,2 +1,2 @@
1
  !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(l){function r(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:l('<div class="spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}r.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},r.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},r.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},r.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)){if(0===this.settings.sizeRangeSuffixes[i].length)continue;if(this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i]}return""},r.prototype.newSrc=function(t,i,e,s){var n,r,o;return this.settings.thumbnailPath?o=this.settings.thumbnailPath(t,i,e,s):(r=null!==(n=t.match(this.settings.extension))?n[0]:"",o=t.replace(this.settings.extension,""),o=this.removeSuffix(o,this.getUsedSuffix(o)),o+=this.getSuffix(i,e)+r),o},r.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},r.prototype.extractImgSrcFromImage=function(t){var i=void 0!==t.data("safe-src")?t.data("safe-src"):t.attr("src");return t.data("jg.originalSrc",i),i},r.prototype.imgFromEntry=function(t){var i=t.find(this.settings.imgSelector);return 0===i.length?null:i},r.prototype.captionFromEntry=function(t){var i=t.find("> .caption");return 0===i.length?null:i},r.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h,g=this.imgFromEntry(t);null!==g?(g.css("width",s),g.css("height",n),g.css("margin-left",-s/2),g.css("margin-top",-n/2),o=g.attr("src"),a=this.newSrc(o,s,n,g[0]),g.one("error",function(){g.attr("src",g.data("jg.originalSrc"))}),h=function(){o!==a&&g.attr("src",a)},"skipped"===t.data("jg.loaded")?this.onImageEvent(o,l.proxy(function(){this.showImg(t,h),t.data("jg.loaded",!0)},this)):this.showImg(t,h)):this.showImg(t),this.displayEntryCaption(t)},r.prototype.displayEntryCaption=function(t){var i,e,s=this.imgFromEntry(t);null!==s&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=s.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=l('<div class="caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},r.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},r.prototype.onEntryMouseEnterForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.addClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},r.prototype.onEntryMouseLeaveForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.removeClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},r.prototype.addCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0===i&&(i={mouseenter:l.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:l.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},r.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},r.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},r.prototype.prepareBuildingRow=function(t){var i,e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(t&&"hide"===this.settings.lastRow&&!u){for(i=0;i<this.buildingRow.entriesBuff.length;i++)e=this.buildingRow.entriesBuff[i],this.settings.cssAnimation?e.removeClass("entry-visible"):(e.stop().fadeTo(0,.1),e.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),i=0;i<this.buildingRow.entriesBuff.length;i++)s=(e=this.buildingRow.entriesBuff[i]).data("jg.width")/e.data("jg.height"),r=o?(n=i===this.buildingRow.entriesBuff.length-1?h:g*s,g):(n=l*s,l),h-=Math.round(n),e.data("jg.jwidth",Math.round(n)),e.data("jg.jheight",Math.ceil(r)),(0===i||r<a)&&(a=r);return this.buildingRow.height=a,o},r.prototype.flushRow=function(t){var i,e=this.settings,s=this.border,n=this.prepareBuildingRow(t);if(t&&"hide"===e.lastRow&&-1===n)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===e.lastRow||"right"===e.lastRow)){for(var r=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*e.margins,o=0;o<this.buildingRow.entriesBuff.length;o++)r-=(i=this.buildingRow.entriesBuff[o]).data("jg.jwidth");"center"===e.lastRow?s+=r/2:"right"===e.lastRow&&(s+=r)}var a=this.buildingRow.entriesBuff.length-1;for(o=0;o<=a;o++)i=this.buildingRow.entriesBuff[this.settings.rtl?a-o:o],this.displayEntry(i,s,this.offY,i.data("jg.jwidth"),i.data("jg.jheight"),this.buildingRow.height),s+=i.data("jg.jwidth")+e.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=e.rowHeight&&n)&&(this.offY+=this.buildingRow.height+e.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;function e(){return l("body").height()>l(window).height()}r.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},r.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},r.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},r.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(l.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),e()===this.scrollBarOn?Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)):(this.scrollBarOn=e(),this.galleryWidth=t))},this),this.settings.refreshTime)},r.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},r.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},r.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},r.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},r.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},r.prototype.updateEntries=function(t){var i=t&&null!=this.lastFetchedEntry?l(this.lastFetchedEntry).nextAll(this.settings.selector).toArray():(this.entries=[],this.$gallery.children(this.settings.selector).toArray());return 0<i.length&&(l.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},r.prototype.insertToGallery=function(t){var i=this;l.each(t,function(){l(this).appendTo(i.$gallery)})},r.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},r.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},r.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)l(t[i]).removeClass("jg-filtered")},r.prototype.filterArray=function(t){var e=this.settings;if("string"===l.type(e.filter))return t.filter(function(t){var i=l(t);return i.is(e.filter)?(i.removeClass("jg-filtered"),!0):(i.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(l.isFunction(e.filter)){for(var i=t.filter(e.filter),s=0;s<t.length;s++)-1===i.indexOf(t[s])?l(t[s]).addClass("jg-filtered").removeClass("jg-visible"):l(t[s]).removeClass("jg-filtered");return i}},r.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),l.each(this.entries,l.proxy(function(t,i){var e=l(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry");var s=this.imgFromEntry(e);s.css("width",""),s.css("height",""),s.css("margin-left",""),s.css("margin-top",""),s.attr("src",s.data("jg.originalSrc")),s.data("jg.originalSrc",void 0),this.removeCaptionEventsHandlers(e);var n=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==n&&n.remove()):null!==n&&n.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0)},r.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=l(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t);this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete"),this.setGalleryFinalHeight(this.galleryHeightToSet)},r.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},r.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},r.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=l(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},r.prototype.init=function(){var a=!1,h=!1,g=this;l.each(this.entries,function(t,i){var e=l(i),s=g.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==g.settings.rel&&e.attr("rel",g.settings.rel),null!==g.settings.target&&e.attr("target",g.settings.target),null!==s){var n=g.extractImgSrcFromImage(s);if(s.attr("src",n),!1===g.settings.waitThumbnailsLoad){var r=parseFloat(s.prop("width")),o=parseFloat(s.prop("height"));if(!isNaN(r)&&!isNaN(o))return e.data("jg.width",r),e.data("jg.height",o),e.data("jg.loaded","skipped"),h=!0,g.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),a=!0,g.isSpinnerActive()||g.startLoadingSpinnerAnimation(),g.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),g.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),g.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),a||h||this.startImgAnalyzer(!1),this.checkWidth()},r.prototype.checkOrConvertNumber=function(t,i){if("string"===l.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==l.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},r.prototype.checkSizeRangesSuffixes=function(){if("object"!==l.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(i);for(var e={0:""},s=0;s<t.length;s++)if("string"===l.type(t[s]))try{e[parseInt(t[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[t[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[t[s]]=this.settings.sizeRangeSuffixes[t[s]];this.settings.sizeRangeSuffixes=e},r.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===l.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==l.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<i&&(t=i),t},r.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==l.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==l.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==l.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==l.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!l.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!l.isFunction(this.settings.filter)&&"string"!==l.type(this.settings.filter))throw"filter must be false, a string or a filter function"},r.prototype.retrieveSuffixRanges=function(){var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(parseInt(i,10));return t.sort(function(t,i){return i<t?1:t<i?-1:0}),t},r.prototype.updateSettings=function(t){this.settings=l.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},r.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a, div:not(.spinner)",imgSelector:"> img, > a > img",triggerEvent:function(t){this.$gallery.trigger(t)}},l.fn.justifiedGallery=function(n){return this.each(function(t,i){var e=l(i);e.addClass("justified-gallery");var s=e.data("jg.controller");if(void 0===s){if(null!=n&&"object"!==l.type(n)){if("destroy"===n)return;throw"The argument must be an object"}s=new r(e,l.extend({},r.prototype.defaults,n)),e.data("jg.controller",s)}else if("norewind"!==n){if("destroy"===n)return void s.destroy();s.updateSettings(n),s.rewind()}s.updateEntries("norewind"===n)&&s.init()})}});
2
- function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);var i=t.getBoundingClientRect();return i.top-jQuery(window).height()<=-100&&-400<=i.top-jQuery(window).height()||i.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")})}),function(c,r,p,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function s(t,i){this.element=t,this.$element=c(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=c.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}s.prototype.init=function(){var n=this;c(p).trigger("modula_api_before_init",[n]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),c(r).resize(function(){n.onResize(n)}),c(r).on("modula-update",function(){n.onResize(n)}),c(p).on("lazyloaded",function(t){var i,e,o=c(t.target);"modula"==o.data("source")&&(o.data("size",{width:o.width(),height:o.height()}),(i=o.parents(".modula-item")).addClass("tg-loaded"),e=n.$items.not(".jtg-hidden").index(i),n.placeImage(e),n.isIsotope&&n.$itemsCnt.modulaisotope("layout"))}),n.options.inView&&jQuery(r).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(n.$element)&&n.$element.addClass("modula-loaded-scale")}),this.setupSocial(),this.options.onComplete&&this.options.onComplete(),"fancybox"!=n.options.lightbox||n.options.initLightbox||this.initLightbox(),c(p).trigger("modula_api_after_init",[n])},s.prototype.initLightbox=function(){var o=this;o.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=c.map(o.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),e=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{caption:i.data("caption"),alt:e.attr("alt"),image_id:i.attr("data-image-id")}}}),e=o.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,o.options.lightboxOpts,e)})},s.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},s.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),d=this,l=this.options.columns,i=p.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?l=this.options.mobileColumns:i<=768&&(l=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(l-1))/l:Math.floor(t/l*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=c(i).data("width"),a=c(i).data("height");12<s&&(s=12),"1"==d.options.enableResponsive&&(e=s,o=a,1==l?a=(s=1)*o/e:((s=Math.round(l*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+d.options.gutter*(s-1),n.height=Math.round(h)*a+d.options.gutter*(a-1),c(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),c(i).css(c(i).data("size")),c(i).find(".figc").css({width:c(i).data("size").width,height:c(i).data("size").height}),r.loadImage(t)});var e={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(d.options.gutter)}};this.$itemsCnt.modulaisotope(e),this.isIsotope=!0},s.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];c(i).data("size",e),c(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),c(i).css({width:e.width,height:e.height}),c(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},s.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},s.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},s.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++){(o=this.tiles[i]).area>this.tiles[t].area&&(t=i)}var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},s.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),c(p).trigger("modula_api_reset",[this])},s.prototype.onResize=function(i){i.lastWidth!=i.$itemsCnt.width()&&(clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope("layout")},100))},s.prototype.loadImage=function(t){var i,e=this,o=e.$items.not(".jtg-hidden").eq(t).find(".pic"),n={};"0"==e.options.lazyLoad&&(void 0===o.attr("width")&&void 0===o.attr("height")?((i=new Image).onload=function(){n={width:this.width,height:this.height},o.data("size",n),e.placeImage(t)},"undefined"!=o.attr("src")?i.src=o.attr("src"):i.src=o.data("src")):(n={width:o.width(),height:o.height()},o.data("size",n),e.placeImage(t)))},s.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",r={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(r.width=o.width,r.left=0,a){case"top":r.top=0;break;case"middle":r.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":r.bottom=0}else switch(r.height=o.height,r.top=0,h){case"left":r.left=0;break;case"center":r.left=0-(o.height*s-o.width)/2;break;case"right":r.right=0}e.css(r),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},s.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&h(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&a(this.$items,this),this.options.enableEmail&&l(this.$items,this)},s.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption"),e=p.title;return 0<i.length&&(e=c.trim(i)),r.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split("#")[0])+"&text="+encodeURI(e),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption");p.title;0<e.length&&c.trim(e);i.attr("src");var o="//www.facebook.com/sharer.php?u="+location.href;return r.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},a=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption");p.title;return 0<i.length&&c.trim(i),r.open("https://api.whatsapp.com/send?text="+encodeURI(r.location.href.split("#")[0])+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},h=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption"),o=p.title;0<e.length&&(o=c.trim(e));var n,s,a,h="http://pinterest.com/pin/create/button/?url="+encodeURI(location.href)+"&description="+encodeURI(o);return 1==i.length&&(n=i.attr("src"),h+="&media="+(s=n,(a=p.createElement("img")).src=s,s=a.src,a.src=null,s)),r.open(h,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();var i="//linkedin.com/shareArticle?mini=true&url="+ +encodeURI(location.href);return r.open(i,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,s){t.find(".modula-icon-email").click(function(t){var i=encodeURI(s.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,n="mailto:?subject="+i+"&body="+encodeURI(s.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return r.open(n,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};c.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){c.data(this,"plugin_"+n)||c.data(this,"plugin_"+n,new s(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=c.data(this,"plugin_"+n);t instanceof s&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&c.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).attr("id"),i=jQuery(this).data("config");jQuery("#"+t).modulaGallery(i)})});
1
  !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(l){function r(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:l('<div class="spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}r.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},r.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},r.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},r.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)){if(0===this.settings.sizeRangeSuffixes[i].length)continue;if(this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i]}return""},r.prototype.newSrc=function(t,i,e,s){var n,r,o;return this.settings.thumbnailPath?o=this.settings.thumbnailPath(t,i,e,s):(r=null!==(n=t.match(this.settings.extension))?n[0]:"",o=t.replace(this.settings.extension,""),o=this.removeSuffix(o,this.getUsedSuffix(o)),o+=this.getSuffix(i,e)+r),o},r.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},r.prototype.extractImgSrcFromImage=function(t){var i=void 0!==t.data("safe-src")?t.data("safe-src"):t.attr("src");return t.data("jg.originalSrc",i),i},r.prototype.imgFromEntry=function(t){var i=t.find(this.settings.imgSelector);return 0===i.length?null:i},r.prototype.captionFromEntry=function(t){var i=t.find("> .caption");return 0===i.length?null:i},r.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h,g=this.imgFromEntry(t);null!==g?(g.css("width",s),g.css("height",n),g.css("margin-left",-s/2),g.css("margin-top",-n/2),o=g.attr("src"),a=this.newSrc(o,s,n,g[0]),g.one("error",function(){g.attr("src",g.data("jg.originalSrc"))}),h=function(){o!==a&&g.attr("src",a)},"skipped"===t.data("jg.loaded")?this.onImageEvent(o,l.proxy(function(){this.showImg(t,h),t.data("jg.loaded",!0)},this)):this.showImg(t,h)):this.showImg(t),this.displayEntryCaption(t)},r.prototype.displayEntryCaption=function(t){var i,e,s=this.imgFromEntry(t);null!==s&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=s.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=l('<div class="caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},r.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},r.prototype.onEntryMouseEnterForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.addClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},r.prototype.onEntryMouseLeaveForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.removeClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},r.prototype.addCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0===i&&(i={mouseenter:l.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:l.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},r.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},r.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},r.prototype.prepareBuildingRow=function(t){var i,e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(t&&"hide"===this.settings.lastRow&&!u){for(i=0;i<this.buildingRow.entriesBuff.length;i++)e=this.buildingRow.entriesBuff[i],this.settings.cssAnimation?e.removeClass("entry-visible"):(e.stop().fadeTo(0,.1),e.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),i=0;i<this.buildingRow.entriesBuff.length;i++)s=(e=this.buildingRow.entriesBuff[i]).data("jg.width")/e.data("jg.height"),r=o?(n=i===this.buildingRow.entriesBuff.length-1?h:g*s,g):(n=l*s,l),h-=Math.round(n),e.data("jg.jwidth",Math.round(n)),e.data("jg.jheight",Math.ceil(r)),(0===i||r<a)&&(a=r);return this.buildingRow.height=a,o},r.prototype.flushRow=function(t){var i,e=this.settings,s=this.border,n=this.prepareBuildingRow(t);if(t&&"hide"===e.lastRow&&-1===n)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===e.lastRow||"right"===e.lastRow)){for(var r=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*e.margins,o=0;o<this.buildingRow.entriesBuff.length;o++)r-=(i=this.buildingRow.entriesBuff[o]).data("jg.jwidth");"center"===e.lastRow?s+=r/2:"right"===e.lastRow&&(s+=r)}var a=this.buildingRow.entriesBuff.length-1;for(o=0;o<=a;o++)i=this.buildingRow.entriesBuff[this.settings.rtl?a-o:o],this.displayEntry(i,s,this.offY,i.data("jg.jwidth"),i.data("jg.jheight"),this.buildingRow.height),s+=i.data("jg.jwidth")+e.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=e.rowHeight&&n)&&(this.offY+=this.buildingRow.height+e.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;function e(){return l("body").height()>l(window).height()}r.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},r.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},r.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},r.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(l.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),e()===this.scrollBarOn?Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)):(this.scrollBarOn=e(),this.galleryWidth=t))},this),this.settings.refreshTime)},r.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},r.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},r.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},r.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},r.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},r.prototype.updateEntries=function(t){var i=t&&null!=this.lastFetchedEntry?l(this.lastFetchedEntry).nextAll(this.settings.selector).toArray():(this.entries=[],this.$gallery.children(this.settings.selector).toArray());return 0<i.length&&(l.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},r.prototype.insertToGallery=function(t){var i=this;l.each(t,function(){l(this).appendTo(i.$gallery)})},r.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},r.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},r.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)l(t[i]).removeClass("jg-filtered")},r.prototype.filterArray=function(t){var e=this.settings;if("string"===l.type(e.filter))return t.filter(function(t){var i=l(t);return i.is(e.filter)?(i.removeClass("jg-filtered"),!0):(i.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(l.isFunction(e.filter)){for(var i=t.filter(e.filter),s=0;s<t.length;s++)-1===i.indexOf(t[s])?l(t[s]).addClass("jg-filtered").removeClass("jg-visible"):l(t[s]).removeClass("jg-filtered");return i}},r.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),l.each(this.entries,l.proxy(function(t,i){var e=l(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry");var s=this.imgFromEntry(e);s.css("width",""),s.css("height",""),s.css("margin-left",""),s.css("margin-top",""),s.attr("src",s.data("jg.originalSrc")),s.data("jg.originalSrc",void 0),this.removeCaptionEventsHandlers(e);var n=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==n&&n.remove()):null!==n&&n.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0)},r.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=l(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t);this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete"),this.setGalleryFinalHeight(this.galleryHeightToSet)},r.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},r.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},r.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=l(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},r.prototype.init=function(){var a=!1,h=!1,g=this;l.each(this.entries,function(t,i){var e=l(i),s=g.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==g.settings.rel&&e.attr("rel",g.settings.rel),null!==g.settings.target&&e.attr("target",g.settings.target),null!==s){var n=g.extractImgSrcFromImage(s);if(s.attr("src",n),!1===g.settings.waitThumbnailsLoad){var r=parseFloat(s.prop("width")),o=parseFloat(s.prop("height"));if(!isNaN(r)&&!isNaN(o))return e.data("jg.width",r),e.data("jg.height",o),e.data("jg.loaded","skipped"),h=!0,g.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),a=!0,g.isSpinnerActive()||g.startLoadingSpinnerAnimation(),g.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),g.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),g.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),a||h||this.startImgAnalyzer(!1),this.checkWidth()},r.prototype.checkOrConvertNumber=function(t,i){if("string"===l.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==l.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},r.prototype.checkSizeRangesSuffixes=function(){if("object"!==l.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(i);for(var e={0:""},s=0;s<t.length;s++)if("string"===l.type(t[s]))try{e[parseInt(t[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[t[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[t[s]]=this.settings.sizeRangeSuffixes[t[s]];this.settings.sizeRangeSuffixes=e},r.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===l.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==l.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<i&&(t=i),t},r.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==l.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==l.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==l.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==l.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!l.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!l.isFunction(this.settings.filter)&&"string"!==l.type(this.settings.filter))throw"filter must be false, a string or a filter function"},r.prototype.retrieveSuffixRanges=function(){var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(parseInt(i,10));return t.sort(function(t,i){return i<t?1:t<i?-1:0}),t},r.prototype.updateSettings=function(t){this.settings=l.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},r.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a, div:not(.spinner)",imgSelector:"> img, > a > img",triggerEvent:function(t){this.$gallery.trigger(t)}},l.fn.justifiedGallery=function(n){return this.each(function(t,i){var e=l(i);e.addClass("justified-gallery");var s=e.data("jg.controller");if(void 0===s){if(null!=n&&"object"!==l.type(n)){if("destroy"===n)return;throw"The argument must be an object"}s=new r(e,l.extend({},r.prototype.defaults,n)),e.data("jg.controller",s)}else if("norewind"!==n){if("destroy"===n)return void s.destroy();s.updateSettings(n),s.rewind()}s.updateEntries("norewind"===n)&&s.init()})}});
2
+ function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);var i=t.getBoundingClientRect();return i.top-jQuery(window).height()<=-100&&-400<=i.top-jQuery(window).height()||i.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")})}),function(c,r,u,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function s(t,i){this.element=t,this.$element=c(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=c.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}s.prototype.init=function(){var n=this;c(u).trigger("modula_api_before_init",[n]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),c(r).resize(function(){n.onResize(n)}),c(r).on("modula-update",function(){n.onResize(n)}),c(u).on("lazyloaded",function(t){var i,e,o=c(t.target);"modula"==o.data("source")&&(o.data("size",{width:o.width(),height:o.height()}),(i=o.parents(".modula-item")).addClass("tg-loaded"),e=n.$items.not(".jtg-hidden").index(i),n.placeImage(e),n.isIsotope&&n.$itemsCnt.modulaisotope("layout"))}),n.options.inView&&jQuery(r).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(n.$element)&&n.$element.addClass("modula-loaded-scale")}),this.setupSocial(),this.options.onComplete&&this.options.onComplete(),"fancybox"!=n.options.lightbox||n.options.initLightbox||this.initLightbox(),c(u).trigger("modula_api_after_init",[n])},s.prototype.initLightbox=function(){var o=this;o.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=c.map(o.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),e=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{$thumb:e.parents(".modula-item"),caption:i.data("caption"),alt:e.attr("alt"),image_id:i.attr("data-image-id")}}}),e=o.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,o.options.lightboxOpts,e)})},s.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},s.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),d=this,l=this.options.columns,i=u.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?l=this.options.mobileColumns:i<=768&&(l=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(l-1))/l:Math.floor(t/l*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=c(i).data("width"),a=c(i).data("height");12<s&&(s=12),"1"==d.options.enableResponsive&&(e=s,o=a,1==l?a=(s=1)*o/e:((s=Math.round(l*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+d.options.gutter*(s-1),n.height=Math.round(h)*a+d.options.gutter*(a-1),c(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),c(i).css(c(i).data("size")),c(i).find(".figc").css({width:c(i).data("size").width,height:c(i).data("size").height}),r.loadImage(t)});var e={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(d.options.gutter)}};this.$itemsCnt.modulaisotope(e),this.isIsotope=!0},s.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];c(i).data("size",e),c(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),c(i).css({width:e.width,height:e.height}),c(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},s.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},s.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},s.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++){(o=this.tiles[i]).area>this.tiles[t].area&&(t=i)}var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},s.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),c(u).trigger("modula_api_reset",[this])},s.prototype.onResize=function(i){i.lastWidth!=i.$itemsCnt.width()&&(clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope("layout")},100))},s.prototype.loadImage=function(t){var i,e=this,o=e.$items.not(".jtg-hidden").eq(t).find(".pic"),n={};"0"==e.options.lazyLoad&&(void 0===o.attr("width")&&void 0===o.attr("height")?((i=new Image).onload=function(){n={width:this.width,height:this.height},o.data("size",n),e.placeImage(t)},"undefined"!=o.attr("src")?i.src=o.attr("src"):i.src=o.data("src")):(n={width:o.width(),height:o.height()},o.data("size",n),e.placeImage(t)))},s.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",r={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(r.width=o.width,r.left=0,a){case"top":r.top=0;break;case"middle":r.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":r.bottom=0}else switch(r.height=o.height,r.top=0,h){case"left":r.left=0;break;case"center":r.left=0-(o.height*s-o.width)/2;break;case"right":r.right=0}e.css(r),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},s.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&h(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&a(this.$items,this),this.options.enableEmail&&l(this.$items,this)},s.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption"),e=u.title;return 0<i.length&&(e=c.trim(i)),r.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split("#")[0])+"&text="+encodeURI(e),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption");u.title;0<e.length&&c.trim(e);i.attr("src");var o="//www.facebook.com/sharer.php?u="+location.href;return r.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},a=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption");u.title;return 0<i.length&&c.trim(i),r.open("https://api.whatsapp.com/send?text="+encodeURI(r.location.href.split("#")[0])+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},h=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption"),o=u.title;0<e.length&&(o=c.trim(e));var n,s,a,h="http://pinterest.com/pin/create/button/?url="+encodeURI(location.href)+"&description="+encodeURI(o);return 1==i.length&&(n=i.attr("src"),h+="&media="+(s=n,(a=u.createElement("img")).src=s,s=a.src,a.src=null,s)),r.open(h,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();var i="//linkedin.com/shareArticle?mini=true&url="+ +encodeURI(location.href);return r.open(i,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,s){t.find(".modula-icon-email").click(function(t){var i=encodeURI(s.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,n="mailto:?subject="+i+"&body="+encodeURI(s.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return r.open(n,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};c.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){c.data(this,"plugin_"+n)||c.data(this,"plugin_"+n,new s(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=c.data(this,"plugin_"+n);t instanceof s&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&c.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).attr("id"),i=jQuery(this).data("config");jQuery("#"+t).modulaGallery(i)})});
assets/js/modula-justified-wl.js CHANGED
@@ -1,3 +1,3 @@
1
  !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(l){function r(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:l('<div class="spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}r.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},r.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},r.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},r.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)){if(0===this.settings.sizeRangeSuffixes[i].length)continue;if(this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i]}return""},r.prototype.newSrc=function(t,i,e,s){var n,r,o;return this.settings.thumbnailPath?o=this.settings.thumbnailPath(t,i,e,s):(r=null!==(n=t.match(this.settings.extension))?n[0]:"",o=t.replace(this.settings.extension,""),o=this.removeSuffix(o,this.getUsedSuffix(o)),o+=this.getSuffix(i,e)+r),o},r.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},r.prototype.extractImgSrcFromImage=function(t){var i=void 0!==t.data("safe-src")?t.data("safe-src"):t.attr("src");return t.data("jg.originalSrc",i),i},r.prototype.imgFromEntry=function(t){var i=t.find(this.settings.imgSelector);return 0===i.length?null:i},r.prototype.captionFromEntry=function(t){var i=t.find("> .caption");return 0===i.length?null:i},r.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h,g=this.imgFromEntry(t);null!==g?(g.css("width",s),g.css("height",n),g.css("margin-left",-s/2),g.css("margin-top",-n/2),o=g.attr("src"),a=this.newSrc(o,s,n,g[0]),g.one("error",function(){g.attr("src",g.data("jg.originalSrc"))}),h=function(){o!==a&&g.attr("src",a)},"skipped"===t.data("jg.loaded")?this.onImageEvent(o,l.proxy(function(){this.showImg(t,h),t.data("jg.loaded",!0)},this)):this.showImg(t,h)):this.showImg(t),this.displayEntryCaption(t)},r.prototype.displayEntryCaption=function(t){var i,e,s=this.imgFromEntry(t);null!==s&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=s.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=l('<div class="caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},r.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},r.prototype.onEntryMouseEnterForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.addClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},r.prototype.onEntryMouseLeaveForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.removeClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},r.prototype.addCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0===i&&(i={mouseenter:l.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:l.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},r.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},r.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},r.prototype.prepareBuildingRow=function(t){var i,e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(t&&"hide"===this.settings.lastRow&&!u){for(i=0;i<this.buildingRow.entriesBuff.length;i++)e=this.buildingRow.entriesBuff[i],this.settings.cssAnimation?e.removeClass("entry-visible"):(e.stop().fadeTo(0,.1),e.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),i=0;i<this.buildingRow.entriesBuff.length;i++)s=(e=this.buildingRow.entriesBuff[i]).data("jg.width")/e.data("jg.height"),r=o?(n=i===this.buildingRow.entriesBuff.length-1?h:g*s,g):(n=l*s,l),h-=Math.round(n),e.data("jg.jwidth",Math.round(n)),e.data("jg.jheight",Math.ceil(r)),(0===i||r<a)&&(a=r);return this.buildingRow.height=a,o},r.prototype.flushRow=function(t){var i,e=this.settings,s=this.border,n=this.prepareBuildingRow(t);if(t&&"hide"===e.lastRow&&-1===n)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===e.lastRow||"right"===e.lastRow)){for(var r=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*e.margins,o=0;o<this.buildingRow.entriesBuff.length;o++)r-=(i=this.buildingRow.entriesBuff[o]).data("jg.jwidth");"center"===e.lastRow?s+=r/2:"right"===e.lastRow&&(s+=r)}var a=this.buildingRow.entriesBuff.length-1;for(o=0;o<=a;o++)i=this.buildingRow.entriesBuff[this.settings.rtl?a-o:o],this.displayEntry(i,s,this.offY,i.data("jg.jwidth"),i.data("jg.jheight"),this.buildingRow.height),s+=i.data("jg.jwidth")+e.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=e.rowHeight&&n)&&(this.offY+=this.buildingRow.height+e.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;function e(){return l("body").height()>l(window).height()}r.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},r.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},r.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},r.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(l.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),e()===this.scrollBarOn?Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)):(this.scrollBarOn=e(),this.galleryWidth=t))},this),this.settings.refreshTime)},r.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},r.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},r.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},r.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},r.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},r.prototype.updateEntries=function(t){var i=t&&null!=this.lastFetchedEntry?l(this.lastFetchedEntry).nextAll(this.settings.selector).toArray():(this.entries=[],this.$gallery.children(this.settings.selector).toArray());return 0<i.length&&(l.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},r.prototype.insertToGallery=function(t){var i=this;l.each(t,function(){l(this).appendTo(i.$gallery)})},r.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},r.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},r.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)l(t[i]).removeClass("jg-filtered")},r.prototype.filterArray=function(t){var e=this.settings;if("string"===l.type(e.filter))return t.filter(function(t){var i=l(t);return i.is(e.filter)?(i.removeClass("jg-filtered"),!0):(i.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(l.isFunction(e.filter)){for(var i=t.filter(e.filter),s=0;s<t.length;s++)-1===i.indexOf(t[s])?l(t[s]).addClass("jg-filtered").removeClass("jg-visible"):l(t[s]).removeClass("jg-filtered");return i}},r.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),l.each(this.entries,l.proxy(function(t,i){var e=l(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry");var s=this.imgFromEntry(e);s.css("width",""),s.css("height",""),s.css("margin-left",""),s.css("margin-top",""),s.attr("src",s.data("jg.originalSrc")),s.data("jg.originalSrc",void 0),this.removeCaptionEventsHandlers(e);var n=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==n&&n.remove()):null!==n&&n.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0)},r.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=l(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t);this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete"),this.setGalleryFinalHeight(this.galleryHeightToSet)},r.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},r.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},r.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=l(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},r.prototype.init=function(){var a=!1,h=!1,g=this;l.each(this.entries,function(t,i){var e=l(i),s=g.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==g.settings.rel&&e.attr("rel",g.settings.rel),null!==g.settings.target&&e.attr("target",g.settings.target),null!==s){var n=g.extractImgSrcFromImage(s);if(s.attr("src",n),!1===g.settings.waitThumbnailsLoad){var r=parseFloat(s.prop("width")),o=parseFloat(s.prop("height"));if(!isNaN(r)&&!isNaN(o))return e.data("jg.width",r),e.data("jg.height",o),e.data("jg.loaded","skipped"),h=!0,g.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),a=!0,g.isSpinnerActive()||g.startLoadingSpinnerAnimation(),g.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),g.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),g.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),a||h||this.startImgAnalyzer(!1),this.checkWidth()},r.prototype.checkOrConvertNumber=function(t,i){if("string"===l.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==l.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},r.prototype.checkSizeRangesSuffixes=function(){if("object"!==l.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(i);for(var e={0:""},s=0;s<t.length;s++)if("string"===l.type(t[s]))try{e[parseInt(t[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[t[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[t[s]]=this.settings.sizeRangeSuffixes[t[s]];this.settings.sizeRangeSuffixes=e},r.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===l.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==l.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<i&&(t=i),t},r.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==l.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==l.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==l.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==l.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!l.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!l.isFunction(this.settings.filter)&&"string"!==l.type(this.settings.filter))throw"filter must be false, a string or a filter function"},r.prototype.retrieveSuffixRanges=function(){var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(parseInt(i,10));return t.sort(function(t,i){return i<t?1:t<i?-1:0}),t},r.prototype.updateSettings=function(t){this.settings=l.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},r.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a, div:not(.spinner)",imgSelector:"> img, > a > img",triggerEvent:function(t){this.$gallery.trigger(t)}},l.fn.justifiedGallery=function(n){return this.each(function(t,i){var e=l(i);e.addClass("justified-gallery");var s=e.data("jg.controller");if(void 0===s){if(null!=n&&"object"!==l.type(n)){if("destroy"===n)return;throw"The argument must be an object"}s=new r(e,l.extend({},r.prototype.defaults,n)),e.data("jg.controller",s)}else if("norewind"!==n){if("destroy"===n)return void s.destroy();s.updateSettings(n),s.rewind()}s.updateEntries("norewind"===n)&&s.init()})}});
2
- !function(l,u,m,g){"use strict";var t,a,s,i,p,e,c,h,d,n,o,r,f,b;function y(t,e){var o,n,a,i=[],s=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=d(t.data.options,e)),o=e.$target||m(t.currentTarget).trigger("blur"),(a=m.modulaFancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(i=e.selector?m(e.selector):(n=o.attr("data-fancybox")||"")?(i=t.data?t.data.items:[]).length?i.filter('[data-fancybox="'+n+'"]'):m('[data-fancybox="'+n+'"]'):[o],(s=m(i).index(o))<0&&(s=0),(a=m.modulaFancybox.open(i,e,s)).$trigger=o))}l.console=l.console||{info:function(t){}},m&&(m.fn.modulaFancybox?console.info("fancyBox already initialized"):(t={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="modula-fancybox-frame{rnd}" name="modula-fancybox-frame{rnd}" class="modula-fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="modula-fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="modula-fancybox-container" role="dialog" tabindex="-1"><div class="modula-fancybox-bg"></div><div class="modula-fancybox-inner"><div class="modula-fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="modula-fancybox-toolbar">{{buttons}}</div><div class="modula-fancybox-navigation">{{arrows}}</div><div class="modula-fancybox-stage"></div><div class="modula-fancybox-caption"><div class="modula-fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="modula-fancybox-loading"></div>',errorTpl:'<div class="modula-fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="modula-fancybox-button modula-fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="modula-fancybox-button modula-fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="modula-fancybox-button modula-fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="modula-fancybox-button modula-fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="modula-fancybox-button modula-fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="modula-fancybox-button modula-fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},modulaShare:["facebook","twitter","pinterest","whatsapp","linkedin","email"],shareBtnTpl:{facebook:'<a class="modula-fancybox-share__button modula-fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{modulaShareUrl}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a>',twitter:'<a class="modula-fancybox-share__button modula-fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{modulaShareUrl}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a>',pinterest:'<a class="modula-fancybox-share__button modula-fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{modulaShareUrl}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a>',whatsapp:'<a class="modula-fancybox-share__button modula-fancybox-share__button--wa" href="https://api.whatsapp.com/send?text={{modulaShareUrl}}&review_url=true"><svg aria-hidden="true" focusable="false" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1536 1600"><path d="M985 878q13 0 97.5 44t89.5 53q2 5 2 15q0 33-17 76q-16 39-71 65.5T984 1158q-57 0-190-62q-98-45-170-118T476 793q-72-107-71-194v-8q3-91 74-158q24-22 52-22q6 0 18 1.5t19 1.5q19 0 26.5 6.5T610 448q8 20 33 88t25 75q0 21-34.5 57.5T599 715q0 7 5 15q34 73 102 137q56 53 151 101q12 7 22 7q15 0 54-48.5t52-48.5zm-203 530q127 0 243.5-50t200.5-134t134-200.5t50-243.5t-50-243.5T1226 336t-200.5-134T782 152t-243.5 50T338 336T204 536.5T154 780q0 203 120 368l-79 233l242-77q158 104 345 104zm0-1382q153 0 292.5 60T1315 247t161 240.5t60 292.5t-60 292.5t-161 240.5t-240.5 161t-292.5 60q-195 0-365-94L0 1574l136-405Q28 991 28 780q0-153 60-292.5T249 247T489.5 86T782 26z" fill="currentColor"/></svg><span>WhatsApp</span></a>',linkedin:'<a class="modula-fancybox-share__button modula-fancybox-share__button--li" href="//linkedin.com/shareArticle?mini=true&url={{modulaShareUrl}}"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg><span>LinkedIn</span></a>',email:'<a class="modula-fancybox-share__button modula-fancybox-share__button--email" href="mailto:?subject={{subject}}&body={{emailMessage}}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z" fill="currentColor"></path></svg><span>Email</span></a>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"},wheel:"auto",onInit:m.noop,beforeLoad:m.noop,afterLoad:m.noop,beforeShow:m.noop,afterShow:m.noop,beforeClose:m.noop,afterClose:m.noop,onActivate:m.noop,onDeactivate:m.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},a=m(l),s=m(u),i=0,p=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||function(t){return l.setTimeout(t,1e3/60)},e=l.cancelAnimationFrame||l.webkitCancelAnimationFrame||l.mozCancelAnimationFrame||l.oCancelAnimationFrame||function(t){l.clearTimeout(t)},c=function(){var t,e=u.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(e.style[t]!==g)return o[t];return"transitionend"}(),h=function(t){return t&&t.length&&t[0].offsetHeight},d=function(t,e){var o=m.extend(!0,{},t,e);return m.each(e,function(t,e){m.isArray(e)&&(o[t]=e)}),o},n=function(t,e,o){var n=this;n.opts=d({index:o},m.modulaFancybox.defaults),m.isPlainObject(e)&&(n.opts=d(n.opts,e)),m.modulaFancybox.isMobile&&(n.opts=d(n.opts,n.opts.mobile)),n.id=n.opts.id||++i,n.currIndex=parseInt(n.opts.index,10)||0,n.prevIndex=null,n.prevPos=null,n.currPos=0,n.firstRun=!0,n.group=[],n.slides={},n.addContent(t),n.group.length&&n.init()},m.extend(n.prototype,{init:function(){var o=this;o.currIndex<0&&(o.currIndex=0),void 0===o.group[o.currIndex]&&jQuery.each(this.group,function(t,e){o.currIndex!=parseInt(e.opts.image_id)||(o.currIndex=t)});var e,n,a=o.group[o.currIndex].opts;a.closeExisting&&m.modulaFancybox.close(!0),m("body").addClass("modula-fancybox-active"),!m.modulaFancybox.getInstance()&&!1!==a.hideScrollbar&&!m.modulaFancybox.isMobile&&u.body.scrollHeight>l.innerHeight&&(m("head").append('<style id="modula-fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(l.innerWidth-u.documentElement.clientWidth)+"px;}</style>"),m("body").addClass("compensate-for-scrollbar")),n="",m.each(a.buttons,function(t,e){n+=a.btnTpl[e]||""}),e=m(o.translate(o,a.baseTpl.replace("{{buttons}}",n).replace("{{arrows}}",a.btnTpl.arrowLeft+a.btnTpl.arrowRight))).attr("id","modula-fancybox-container-"+o.id).addClass(a.baseClass).data("modulaFancyBox",o).appendTo(a.parentEl),o.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){o.$refs[t]=e.find(".modula-fancybox-"+t)}),o.trigger("onInit"),o.activate(),o.jumpTo(o.currIndex)},translate:function(t,e){var o=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return o[e]===g?t:o[e]})},addContent:function(t){var e,c=this,o=m.makeArray(t);m.each(o,function(t,e){var o,n,a,i,s,r={},l={};m.isPlainObject(e)?l=(r=e).opts||e:"object"===m.type(e)&&m(e).length?(l=(o=m(e)).data()||{},(l=m.extend(!0,{},l,l.options)).$orig=o,r.src=c.opts.src||l.src||o.attr("href"),r.type||r.src||(r.type="inline",r.src=e)):r={type:"html",src:e+""},r.opts=m.extend(!0,{},c.opts,l),m.isArray(l.buttons)&&(r.opts.buttons=l.buttons),m.modulaFancybox.isMobile&&r.opts.mobile&&(r.opts=d(r.opts,r.opts.mobile)),n=r.type||r.opts.type,i=r.src||"",!n&&i&&((a=i.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(n="video",r.opts.video.format||(r.opts.video.format="video/"+("ogv"===a[1]?"ogg":a[1]))):i.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?n="image":i.match(/\.(pdf)((\?|#).*)?$/i)?(n="iframe",r=m.extend(!0,r,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===i.charAt(0)&&(n="inline")),n?r.type=n:c.trigger("objectNeedsType",r),r.contentType||(r.contentType=-1<m.inArray(r.type,["html","inline","ajax"])?"html":r.type),r.index=c.group.length,"auto"==r.opts.smallBtn&&(r.opts.smallBtn=-1<m.inArray(r.type,["html","inline","ajax"])),"auto"===r.opts.toolbar&&(r.opts.toolbar=!r.opts.smallBtn),r.$thumb=r.opts.$thumb||null,r.opts.$trigger&&r.index===c.opts.index&&(r.$thumb=r.opts.$trigger.find("img:first"),r.$thumb.length&&(r.opts.$orig=r.opts.$trigger)),r.$thumb&&r.$thumb.length||!r.opts.$orig||(r.$thumb=r.opts.$orig.find("img:first")),r.$thumb&&!r.$thumb.length&&(r.$thumb=null),r.thumb=r.opts.thumb||(r.$thumb?r.$thumb[0].src:null),"function"===m.type(r.opts.caption)&&(r.opts.caption=r.opts.caption.apply(e,[c,r])),"function"===m.type(c.opts.caption)&&(r.opts.caption=c.opts.caption.apply(e,[c,r])),r.opts.caption instanceof m||(r.opts.caption=r.opts.caption===g?"":r.opts.caption+""),"ajax"===r.type&&1<(s=i.split(/\s+/,2)).length&&(r.src=s.shift(),r.opts.filter=s.shift()),r.opts.modal&&(r.opts=m.extend(!0,r.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),c.group.push(r)}),Object.keys(c.slides).length&&(c.updateControls(),(e=c.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var n=this;n.removeEvents(),n.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),n.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),n.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),n.next()}).on("click.fb","[data-fancybox-zoom]",function(t){n[n.isScaledDown()?"scaleToActual":"scaleToFit"]()}),a.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(n.requestId&&e(n.requestId),n.requestId=p(function(){n.update(t)})):(n.current&&"iframe"===n.current.type&&n.$refs.stage.hide(),setTimeout(function(){n.$refs.stage.show(),n.update(t)},m.modulaFancybox.isMobile?600:250))}),s.on("keydown.fb",function(t){var e=(m.modulaFancybox?m.modulaFancybox.getInstance():null).current,o=t.keyCode||t.which;if(9!=o){if(!(!e.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||m(t.target).is("input,textarea,video,audio,select")))return 8===o||27===o?(t.preventDefault(),void n.close(t)):37===o||38===o?(t.preventDefault(),void n.previous()):39===o||40===o?(t.preventDefault(),void n.next()):void n.trigger("afterKeydown",t,o)}else e.opts.trapFocus&&n.focus(t)}),n.group[n.currIndex].opts.idleTime&&(n.idleSecondsCounter=0,s.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){n.idleSecondsCounter=0,n.isIdle&&n.showControls(),n.isIdle=!1}),n.idleInterval=l.setInterval(function(){n.idleSecondsCounter++,n.idleSecondsCounter>=n.group[n.currIndex].opts.idleTime&&!n.isDragging&&(n.isIdle=!0,n.idleSecondsCounter=0,n.hideControls())},1e3))},removeEvents:function(){a.off("orientationchange.fb resize.fb"),s.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleInterval&&(l.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,n){var e,o,a,i,s,r,l,c,d,u=this,p=u.group.length;if(!(u.isDragging||u.isClosing||u.isAnimating&&u.firstRun)){if(t=parseInt(t,10),!(a=u.current?u.current.opts.loop:u.opts.loop)&&(t<0||p<=t))return!1;if(e=u.firstRun=!Object.keys(u.slides).length,s=u.current,u.prevIndex=u.currIndex,u.prevPos=u.currPos,i=u.createSlide(t),1<p&&((a||i.index<p-1)&&u.createSlide(t+1),(a||0<i.index)&&u.createSlide(t-1)),u.current=i,u.currIndex=i.index,u.currPos=i.pos,u.trigger("beforeShow",e),u.updateControls(),i.forcedDuration=g,m.isNumeric(n)?i.forcedDuration=n:n=i.opts[e?"animationDuration":"transitionDuration"],n=parseInt(n,10),o=u.isMoved(i),i.$slide.addClass("modula-fancybox-slide--current"),e)return i.opts.animationEffect&&n&&u.$refs.container.css("transition-duration",n+"ms"),u.$refs.container.addClass("modula-fancybox-is-open").trigger("focus"),u.loadSlide(i),void u.preload("image");r=m.modulaFancybox.getTranslate(s.$slide),l=m.modulaFancybox.getTranslate(u.$refs.stage),m.each(u.slides,function(t,e){m.modulaFancybox.stop(e.$slide,!0)}),s.pos!==i.pos&&(s.isComplete=!1),s.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--current"),o?(d=r.left-(s.pos*r.width+s.pos*s.opts.gutter),m.each(u.slides,function(t,e){e.$slide.removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var o=e.pos*r.width+e.pos*e.opts.gutter;m.modulaFancybox.setTranslate(e.$slide,{top:0,left:o-l.left+d}),e.pos!==i.pos&&e.$slide.addClass("modula-fancybox-slide--"+(e.pos>i.pos?"next":"previous")),h(e.$slide),m.modulaFancybox.animate(e.$slide,{top:0,left:(e.pos-i.pos)*r.width+(e.pos-i.pos)*e.opts.gutter},n,function(){e.$slide.css({transform:"",opacity:""}).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous"),e.pos===u.currPos&&u.complete()})})):n&&i.opts.transitionEffect&&(c="modula-fancybox-animated modula-fancybox-fx-"+i.opts.transitionEffect,s.$slide.addClass("modula-fancybox-slide--"+(s.pos>i.pos?"next":"previous")),m.modulaFancybox.animate(s.$slide,c,n,function(){s.$slide.removeClass(c).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous")},!1)),i.isLoaded?u.revealContent(i):u.loadSlide(i),u.preload("image")}},createSlide:function(t){var e,o=this,n=t%o.group.length;return n=n<0?o.group.length+n:n,!o.slides[t]&&o.group[n]&&(e=m('<div class="modula-fancybox-slide"></div>').appendTo(o.$refs.stage),o.slides[t]=m.extend(!0,{},o.group[n],{pos:t,$slide:e,isLoaded:!1}),o.updateSlide(o.slides[t])),o.slides[t]},scaleToActual:function(t,e,o){var n,a,i,s,r,l=this,c=l.current,d=c.$content,u=m.modulaFancybox.getTranslate(c.$slide).width,p=m.modulaFancybox.getTranslate(c.$slide).height,h=c.width,f=c.height;l.isAnimating||l.isMoved()||!d||"image"!=c.type||!c.isLoaded||c.hasError||(l.isAnimating=!0,m.modulaFancybox.stop(d),t=t===g?.5*u:t,e=e===g?.5*p:e,(n=m.modulaFancybox.getTranslate(d)).top-=m.modulaFancybox.getTranslate(c.$slide).top,n.left-=m.modulaFancybox.getTranslate(c.$slide).left,s=h/n.width,r=f/n.height,a=.5*u-.5*h,i=.5*p-.5*f,u<h&&(0<(a=n.left*s-(t*s-t))&&(a=0),a<u-h&&(a=u-h)),p<f&&(0<(i=n.top*r-(e*r-e))&&(i=0),i<p-f&&(i=p-f)),l.updateCursor(h,f),m.modulaFancybox.animate(d,{top:i,left:a,scaleX:s,scaleY:r},o||366,function(){l.isAnimating=!1}),l.SlideShow&&l.SlideShow.isActive&&l.SlideShow.stop())},scaleToFit:function(t){var e,o=this,n=o.current,a=n.$content;o.isAnimating||o.isMoved()||!a||"image"!=n.type||!n.isLoaded||n.hasError||(o.isAnimating=!0,m.modulaFancybox.stop(a),e=o.getFitPos(n),o.updateCursor(e.width,e.height),m.modulaFancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||366,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,n,a,i=t.$content,s=t.$slide,r=t.width||t.opts.width,l=t.height||t.opts.height,c={};return!!(t.isLoaded&&i&&i.length)&&(e=m.modulaFancybox.getTranslate(this.$refs.stage).width,o=m.modulaFancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(s.css("paddingLeft"))+parseFloat(s.css("paddingRight"))+parseFloat(i.css("marginLeft"))+parseFloat(i.css("marginRight")),o-=parseFloat(s.css("paddingTop"))+parseFloat(s.css("paddingBottom"))+parseFloat(i.css("marginTop"))+parseFloat(i.css("marginBottom")),r&&l||(r=e,l=o),e-.5<(r*=n=Math.min(1,e/r,o/l))&&(r=e),o-.5<(l*=n)&&(l=o),"image"===t.type?(c.top=Math.floor(.5*(o-l))+parseFloat(s.css("paddingTop")),c.left=Math.floor(.5*(e-r))+parseFloat(s.css("paddingLeft"))):"video"===t.contentType&&(r/(a=t.opts.width&&t.opts.height?r/l:t.opts.ratio||16/9)<l?l=r/a:l*a<r&&(r=l*a)),c.width=r,c.height=l,c)},update:function(o){var n=this;m.each(n.slides,function(t,e){n.updateSlide(e,o)})},updateSlide:function(t,e){var o=this,n=t&&t.$content,a=t.width||t.opts.width,i=t.height||t.opts.height,s=t.$slide;o.adjustCaption(t),n&&(a||i||"video"===t.contentType)&&!t.hasError&&(m.modulaFancybox.stop(n),m.modulaFancybox.setTranslate(n,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),s.length&&(s.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".modula-fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",s.get(0).scrollHeight>s.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,n=o.$slide;!e.isClosing&&o&&(n.siblings().css({transform:"",opacity:""}),n.parent().children().removeClass("modula-fancybox-slide--previous modula-fancybox-slide--next"),m.modulaFancybox.animate(n,{top:0,left:0,opacity:1},t===g?0:t,function(){n.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o,n=t||this.current;return!!n&&(o=m.modulaFancybox.getTranslate(this.$refs.stage),e=m.modulaFancybox.getTranslate(n.$slide),!n.$slide.hasClass("modula-fancybox-animated")&&(.5<Math.abs(e.top-o.top)||.5<Math.abs(e.left-o.left)))},updateCursor:function(t,e){var o,n,a=this,i=a.current,s=a.$refs.container;i&&!a.isClosing&&a.Guestures&&(s.removeClass("modula-fancybox-is-zoomable modula-fancybox-can-zoomIn modula-fancybox-can-zoomOut modula-fancybox-can-swipe modula-fancybox-can-pan"),n=!!(o=a.canPan(t,e))||a.isZoomable(),s.toggleClass("modula-fancybox-is-zoomable",n),m("[data-fancybox-zoom]").prop("disabled",!n),o?s.addClass("modula-fancybox-can-pan"):n&&("zoom"===i.opts.clickContent||m.isFunction(i.opts.clickContent)&&"zoom"==i.opts.clickContent(i))?s.addClass("modula-fancybox-can-zoomIn"):i.opts.touch&&(i.opts.touch.vertical||1<a.group.length)&&"video"!==i.contentType&&s.addClass("modula-fancybox-can-swipe"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing&&"image"===e.type&&!e.hasError){if(!e.isLoaded)return!0;if((t=this.getFitPos(e))&&(e.width>t.width||e.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=!1,n=this.current,a=n.$content;return t!==g&&e!==g?o=t<n.width&&e<n.height:a&&(o=(o=m.modulaFancybox.getTranslate(a)).width<n.width&&o.height<n.height),o},canPan:function(t,e){var o=this.current,n=null,a=!1;return"image"===o.type&&(o.isComplete||t&&e)&&!o.hasError&&(a=this.getFitPos(o),t!==g&&e!==g?n={width:t,height:e}:o.isComplete&&(n=m.modulaFancybox.getTranslate(o.$content)),n&&a&&(a=1.5<Math.abs(n.width-a.width)||1.5<Math.abs(n.height-a.height))),a},loadSlide:function(o){var t,e,n,a=this;if(!o.isLoading&&!o.isLoaded){if(!(o.isLoading=!0)===a.trigger("beforeLoad",o))return o.isLoading=!1;switch(t=o.type,(e=o.$slide).off("refresh").trigger("onReset").addClass(o.opts.slideClass),t){case"image":a.setImage(o);break;case"iframe":a.setIframe(o);break;case"html":a.setContent(o,o.src||o.content);break;case"video":a.setContent(o,o.opts.video.tpl.replace(/\{\{src\}\}/gi,o.src).replace("{{format}}",o.opts.videoFormat||o.opts.video.format||"").replace("{{poster}}",o.thumb||""));break;case"inline":m(o.src).length?a.setContent(o,m(o.src)):a.setError(o);break;case"ajax":a.showLoading(o),n=m.ajax(m.extend({},o.opts.ajax.settings,{url:o.src,success:function(t,e){"success"===e&&a.setContent(o,t)},error:function(t,e){t&&"abort"!==e&&a.setError(o)}})),e.one("onReset",function(){n.abort()});break;default:a.setError(o)}return!0}},setImage:function(e){var t,o=this;setTimeout(function(){var t=e.$image;o.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||o.showLoading(e)},50),o.checkSrcset(e),e.$content=m('<div class="modula-fancybox-content"></div>').addClass("modula-fancybox-is-hidden").appendTo(e.$slide.addClass("modula-fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(t=u.createElement("img")).onerror=function(){m(this).remove(),e.$ghost=null},t.onload=function(){o.afterLoad(e)},e.$ghost=m(t).addClass("modula-fancybox-image").appendTo(e.$content).attr("src",e.thumb),"undifined"!=typeof e.src&&e.$ghost.attr("alt",e.alt)),o.setBigImage(e)},checkSrcset:function(t){var e,o,n,a,i=t.opts.srcset||t.opts.image.srcset;if(i){n=l.devicePixelRatio||1,a=l.innerWidth*n,(o=i.split(",").map(function(t){var n={};return t.trim().split(/\s+/).forEach(function(t,e){var o=parseInt(t.substring(0,t.length-1),10);if(0===e)return n.url=t;o&&(n.value=o,n.postfix=t[t.length-1])}),n})).sort(function(t,e){return t.value-e.value});for(var s=0;s<o.length;s++){var r=o[s];if("w"===r.postfix&&r.value>=a||"x"===r.postfix&&r.value>=n){e=r;break}}!e&&o.length&&(e=o[o.length-1]),e&&(t.src=e.url,t.width&&t.height&&"w"==e.postfix&&(t.height=t.width/t.height*e.value,t.width=e.value),t.opts.srcset=i)}},setBigImage:function(e){var o=this,t=u.createElement("img"),n=m(t);e.$image=n.one("error",function(){o.setError(e)}).one("load",function(){var t;e.$ghost||(o.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),o.afterLoad(e)),o.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(1<e.width/e.height&&1<a.width()/a.height()?"100":Math.round(e.width/e.height*100))+"vw"),n.attr("sizes",t).attr("srcset",e.opts.srcset)),e.opts.alt&&n.attr("alt",e.opts.alt),e.opts.image_id&&n.attr("image-id",e.opts.image_id),e.$ghost&&setTimeout(function(){e.$ghost&&!o.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),o.hideLoading(e))}).addClass("modula-fancybox-image").attr("src",e.src).appendTo(e.$content),(t.complete||"complete"==t.readyState)&&n.naturalWidth&&n.naturalHeight?n.trigger("load"):t.error&&n.trigger("error")},resolveImageSlideSize:function(t,e,o){var n=parseInt(t.opts.width,10),a=parseInt(t.opts.height,10);t.width=e,t.height=o,0<n&&(t.width=n,t.height=Math.floor(n*o/e)),0<a&&(t.width=Math.floor(a*e/o),t.height=a)},setIframe:function(a){var i,e=this,s=a.opts.iframe,r=a.$slide;a.$content=m('<div class="modula-fancybox-content'+(s.preload?" modula-fancybox-is-hidden":"")+'"></div>').css(s.css).appendTo(r),r.addClass("modula-fancybox-slide--"+a.contentType),a.$iframe=i=m(s.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(s.attr).appendTo(a.$content),s.preload?(e.showLoading(a),i.on("load.fb error.fb",function(t){this.isReady=1,a.$slide.trigger("refresh"),e.afterLoad(a)}),r.on("refresh.fb",function(){var t,e=a.$content,o=s.css.width,n=s.css.height;if(1===i[0].isReady){try{t=i.contents().find("body")}catch(t){}t&&t.length&&t.children().length&&(r.css("overflow","visible"),e.css({width:"100%","max-width":"100%",height:"9999px"}),o===g&&(o=Math.ceil(Math.max(t[0].clientWidth,t.outerWidth(!0)))),e.css("width",o||"").css("max-width",""),n===g&&(n=Math.ceil(Math.max(t[0].clientHeight,t.outerHeight(!0)))),e.css("height",n||""),r.css("overflow","auto")),e.removeClass("modula-fancybox-is-hidden")}})):e.afterLoad(a),i.attr("src",a.src),r.one("onReset",function(){try{m(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}m(this).off("refresh.fb").empty(),a.isLoaded=!1,a.isRevealed=!1})},setContent:function(t,e){var o;this.isClosing||(this.hideLoading(t),t.$content&&m.modulaFancybox.stop(t.$content),t.$slide.empty(),(o=e)&&o.hasOwnProperty&&o instanceof m&&e.parent().length?((e.hasClass("modula-fancybox-content")||e.parent().hasClass("modula-fancybox-content"))&&e.parents(".modula-fancybox-slide").trigger("onReset"),t.$placeholder=m("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===m.type(e)&&(e=m("<div>").append(m.trim(e)).contents()),t.opts.filter&&(e=m("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){m(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("modula-fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(m(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),m(e).appendTo(t.$slide),m(e).is("video,audio")&&(m(e).addClass("modula-fancybox-video"),m(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||m(e).attr("width"),t.opts.height=t.opts.height||m(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.modula-fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("modula-fancybox-content"),t.$slide.addClass("modula-fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("modula-fancybox-slide--"+t.contentType).addClass("modula-fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=m(this.translate(this,this.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=m(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&m('<div class="modula-fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,o=this,n=t||o.current,a=n.opts.caption,i=n.opts.preventCaptionOverlap,s=o.$refs.caption,r=!1;s.toggleClass("modula-fancybox-caption--separate",i),i&&a&&a.length&&(n.pos!==o.currPos?((e=s.clone().appendTo(s.parent())).children().eq(0).empty().html(a),r=e.outerHeight(!0),e.empty().remove()):o.$caption&&(r=o.$caption.outerHeight(!0)),n.$slide.css("padding-bottom",r||""))},adjustLayout:function(t){var e,o,n,a,i=t||this.current;i.isLoaded&&!0!==i.opts.disableLayoutFix&&(i.$content.css("margin-bottom",""),i.$content.outerHeight()>i.$slide.height()+.5&&(n=i.$slide[0].style["padding-bottom"],a=i.$slide.css("padding-bottom"),0<parseFloat(a)&&(e=i.$slide[0].scrollHeight,i.$slide.css("padding-bottom",0),Math.abs(e-i.$slide[0].scrollHeight)<1&&(o=a),i.$slide.css("padding-bottom",n))),i.$content.css("margin-bottom",o))},revealContent:function(t){var e,o,n,a,i=this,s=t.$slide,r=!1,l=!1,c=i.isMoved(t),d=t.isRevealed;return t.isRevealed=!0,e=t.opts[i.firstRun?"animationEffect":"transitionEffect"],n=t.opts[i.firstRun?"animationDuration":"transitionDuration"],n=parseInt(t.forcedDuration===g?n:t.forcedDuration,10),!c&&t.pos===i.currPos&&n||(e=!1),"zoom"===e&&(t.pos===i.currPos&&n&&"image"===t.type&&!t.hasError&&(l=i.getThumbPos(t))?r=i.getFitPos(t):e="fade"),"zoom"===e?(i.isAnimating=!0,r.scaleX=r.width/l.width,r.scaleY=r.height/l.height,"auto"==(a=t.opts.zoomOpacity)&&(a=.1<Math.abs(t.width/t.height-l.width/l.height)),a&&(l.opacity=.1,r.opacity=1),m.modulaFancybox.setTranslate(t.$content.removeClass("modula-fancybox-is-hidden"),l),h(t.$content),void m.modulaFancybox.animate(t.$content,r,n,function(){i.isAnimating=!1,i.complete()})):(i.updateSlide(t),e?(m.modulaFancybox.stop(s),o="modula-fancybox-slide--"+(t.pos>=i.prevPos?"next":"previous")+" modula-fancybox-animated fancybox-fx-"+e,s.addClass(o).removeClass("modula-fancybox-slide--current"),t.$content.removeClass("modula-fancybox-is-hidden"),h(s),"image"!==t.type&&t.$content.hide().show(0),void m.modulaFancybox.animate(s,"modula-fancybox-slide--current",n,function(){s.removeClass(o).css({transform:"",opacity:""}),t.pos===i.currPos&&i.complete()},!0)):(t.$content.removeClass("modula-fancybox-is-hidden"),d||!c||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===i.currPos&&i.complete())))},getThumbPos:function(t){var e,o,n,a,i,s,r,l,c,d=t.$thumb;return!!(d&&(r=d[0])&&r.ownerDocument===u&&(m(".modula-fancybox-container").css("pointer-events","none"),l={x:r.getBoundingClientRect().left+r.offsetWidth/2,y:r.getBoundingClientRect().top+r.offsetHeight/2},c=u.elementFromPoint(l.x,l.y)===r,m(".modula-fancybox-container").css("pointer-events",""),c))&&(o=m.modulaFancybox.getTranslate(d),n=parseFloat(d.css("border-top-width")||0),a=parseFloat(d.css("border-right-width")||0),i=parseFloat(d.css("border-bottom-width")||0),s=parseFloat(d.css("border-left-width")||0),e={top:o.top+n,left:o.left+s,width:o.width-a-s,height:o.height-n-i,scaleX:1,scaleY:1},0<o.width&&0<o.height&&e)},complete:function(){var t,o=this,e=o.current,n={};!o.isMoved()&&e.isLoaded&&(e.isComplete||(e.isComplete=!0,e.$slide.siblings().trigger("onReset"),o.preload("inline"),h(e.$slide),e.$slide.addClass("modula-fancybox-slide--complete"),m.each(o.slides,function(t,e){e.pos>=o.currPos-1&&e.pos<=o.currPos+1?n[e.pos]=e:e&&(m.modulaFancybox.stop(e.$slide),e.$slide.off().remove())}),o.slides=n),o.isAnimating=!1,o.updateCursor(),o.trigger("afterShow"),e.opts.video.autoStart&&e.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),o.next()}),e.opts.autoFocus&&"html"===e.contentType&&((t=e.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):o.focus(null,!0)),e.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,o,n=this;n.group.length<2||(o=n.slides[n.currPos+1],(e=n.slides[n.currPos-1])&&e.type===t&&n.loadSlide(e),o&&o.type===t&&n.loadSlide(o))},focus:function(t,e){var o,n,a=this,i=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");a.isClosing||((o=(o=!t&&a.current&&a.current.isComplete?a.current.$slide.find("*:visible"+(e?":not(.modula-fancybox-close-small)":"")):a.$refs.container.find("*:visible")).filter(i).filter(function(){return"hidden"!==m(this).css("visibility")&&!m(this).hasClass("disabled")})).length?(n=o.index(u.activeElement),t&&t.shiftKey?(n<0||0==n)&&(t.preventDefault(),o.eq(o.length-1).trigger("focus")):(n<0||n==o.length-1)&&(t&&t.preventDefault(),o.eq(0).trigger("focus"))):a.$refs.container.trigger("focus"))},activate:function(){var e=this;m(".modula-fancybox-container").each(function(){var t=m(this).data("modulaFancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(t,e){function o(){d.cleanUp(t)}var n,a,i,s,r,l,c,d=this,u=d.current;return!d.isClosing&&(!(d.isClosing=!0)===d.trigger("beforeClose",t)?(d.isClosing=!1,p(function(){d.update()}),!1):(d.removeEvents(),i=u.$content,n=u.opts.animationEffect,a=m.isNumeric(e)?e:n?u.opts.animationDuration:0,u.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--next modula-fancybox-slide--previous modula-fancybox-animated"),!0!==t?m.modulaFancybox.stop(u.$slide):n=!1,u.$slide.siblings().trigger("onReset").remove(),a&&d.$refs.container.removeClass("modula-fancybox-is-open").addClass("modula-fancybox-is-closing").css("transition-duration",a+"ms"),d.hideLoading(u),d.hideControls(!0),d.updateCursor(),"zoom"!==n||i&&a&&"image"===u.type&&!d.isMoved()&&!u.hasError&&(c=d.getThumbPos(u))||(n="fade"),"zoom"===n?(m.modulaFancybox.stop(i),l={top:(s=m.modulaFancybox.getTranslate(i)).top,left:s.left,scaleX:s.width/c.width,scaleY:s.height/c.height,width:c.width,height:c.height},"auto"==(r=u.opts.zoomOpacity)&&(r=.1<Math.abs(u.width/u.height-c.width/c.height)),r&&(c.opacity=0),m.modulaFancybox.setTranslate(i,l),h(i),m.modulaFancybox.animate(i,c,a,o)):n&&a?m.modulaFancybox.animate(u.$slide.addClass("modula-fancybox-slide--previous").removeClass("modula-fancybox-slide--current"),"modula-fancybox-animated modula-fancybox-fx-"+n,a,o):!0===t?setTimeout(o,a):o(),!0))},cleanUp:function(t){var e,o,n,a=this,i=a.current.opts.$orig;a.current.$slide.trigger("onReset"),a.$refs.container.empty().remove(),a.trigger("afterClose",t),a.current.opts.backFocus&&(i&&i.length&&i.is(":visible")||(i=a.$trigger),i&&i.length&&(o=l.scrollX,n=l.scrollY,i.trigger("focus"),m("html, body").scrollTop(n).scrollLeft(o))),a.current=null,(e=m.modulaFancybox.getInstance())?e.activate():(m("body").removeClass("modula-fancybox-active compensate-for-scrollbar"),m("#modula-fancybox-style-noscroll").remove())},trigger:function(t,e){var o,n=Array.prototype.slice.call(arguments,1),a=this,i=e&&e.opts?e:a.current;if(i?n.unshift(i):i=a,n.unshift(a),m.isFunction(i.opts[t])&&(o=i.opts[t].apply(i,n)),!1===o)return o;"afterClose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",n):s.trigger(t+".fb",n)},updateControls:function(){var t=this,e=t.current,o=e.index,n=t.$refs.container,a=t.$refs.caption,i=e.opts.caption;e.$slide.trigger("refresh"),i&&i.length?(t.$caption=a).children().eq(0).html(i):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),n.find("[data-fancybox-count]").html(t.group.length),n.find("[data-fancybox-index]").html(o+1),n.find("[data-fancybox-prev]").prop("disabled",!e.opts.loop&&o<=0),n.find("[data-fancybox-next]").prop("disabled",!e.opts.loop&&o>=t.group.length-1),"image"===e.type?n.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",e.opts.image.src||e.src).show():e.opts.toolbar&&n.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),m(u.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map(function(t){return"modula-fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,o=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,o.toggleClass("modula-fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("modula-fancybox-show-infobar",!!(e.infobar&&1<t.group.length)).toggleClass("modula-fancybox-show-caption",!!t.$caption).toggleClass("modula-fancybox-show-nav",!!(e.arrows&&1<t.group.length)).toggleClass("modula-fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),m.modulaFancybox={version:"3.5.7",defaults:t,getInstance:function(t){var e=m('.modula-fancybox-container:not(".modula-fancybox-is-closing"):last').data("modulaFancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof n&&("string"===m.type(t)?e[t].apply(e,o):"function"===m.type(t)&&t.apply(e,o),e)},open:function(t,e,o){return new n(t,e,o)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),s.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(o=u.createElement("div"),l.getComputedStyle&&l.getComputedStyle(o)&&l.getComputedStyle(o).getPropertyValue("transform")&&!(u.documentMode&&u.documentMode<11)),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var o="",n={};if(t&&e)return e.left===g&&e.top===g||(o=(e.left===g?t.position().left:e.left)+"px, "+(e.top===g?t.position().top:e.top)+"px",o=this.use3d?"translate3d("+o+", 0px)":"translate("+o+")"),e.scaleX!==g&&e.scaleY!==g?o+=" scale("+e.scaleX+", "+e.scaleY+")":e.scaleX!==g&&(o+=" scaleX("+e.scaleX+")"),o.length&&(n.transform=o),e.opacity!==g&&(n.opacity=e.opacity),e.width!==g&&(n.width=e.width),e.height!==g&&(n.height=e.height),t.css(n)},animate:function(e,o,n,a,i){var s,r=this;m.isFunction(n)&&(a=n,n=null),r.stop(e),s=r.getTranslate(e),e.on(c,function(t){t&&t.originalEvent&&(!e.is(t.originalEvent.target)||"z-index"==t.originalEvent.propertyName)||(r.stop(e),m.isNumeric(n)&&e.css("transition-duration",""),m.isPlainObject(o)?o.scaleX!==g&&o.scaleY!==g&&r.setTranslate(e,{top:o.top,left:o.left,width:s.width*o.scaleX,height:s.height*o.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(o),m.isFunction(a)&&a(t))}),m.isNumeric(n)&&e.css("transition-duration",n+"ms"),m.isPlainObject(o)?(o.scaleX!==g&&o.scaleY!==g&&(delete o.width,delete o.height,e.parent().hasClass("modula-fancybox-slide--image")&&e.parent().addClass("modula-fancybox-is-scaling")),m.modulaFancybox.setTranslate(e,o)):e.addClass(o),e.data("timer",setTimeout(function(){e.trigger(c)},n+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(c),t.off(c).css("transition-duration",""),t.parent().removeClass("modula-fancybox-is-scaling"))}},m.fn.modulaFancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?m("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},y):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},y),this},s.on("click.fb-start","[data-fancybox]",y),s.on("click.fb-start","[data-fancybox-trigger]",function(t){m('[data-fancybox="'+m(this).attr("data-fancybox-trigger")+'"]').eq(m(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:m(this)})}),r=".modula-fancybox-button",f="modula-fancybox-focus",b=null,s.on("mousedown mouseup focus blur",r,function(t){switch(t.type){case"mousedown":b=m(this);break;case"mouseup":b=null;break;case"focusin":m(r).removeClass(f),m(this).is(b)||m(this).is("[disabled]")||m(this).addClass(f);break;case"focusout":m(r).removeClass(f)}})))}(window,document,jQuery),function(h){"use strict";function f(o,t,e){if(o)return e=e||"","object"===h.type(e)&&(e=h.param(e,!0)),h.each(t,function(t,e){o=o.replace("$"+t,e||"")}),e.length&&(o+=(0<o.indexOf("?")?"&":"?")+e),o}var n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&0<t[12].indexOf("layer=c")?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};h(document).on("objectNeedsType.fb",function(t,e,a){var i,s,r,l,c,d,u=a.src||"",p=!1,o=h.extend(!0,{},n,a.opts.media);h.each(o,function(t,e){if(s=u.match(e.matcher)){if(p=e.type,d=t,c={},e.paramPlace&&s[e.paramPlace]){"?"==(l=s[e.paramPlace])[0]&&(l=l.substring(1)),l=l.split("&");for(var o=0;o<l.length;++o){var n=l[o].split("=",2);2==n.length&&(c[n[0]]=decodeURIComponent(n[1].replace(/\+/g," ")))}}return r=h.extend(!0,{},e.params,a.opts[t],c),u="function"===h.type(e.url)?e.url.call(this,s,r,a):f(e.url,s,r),i="function"===h.type(e.thumb)?e.thumb.call(this,s,r,a):f(e.thumb,s),"youtube"===t?u=u.replace(/&t=(\d+)/,function(t,e){return"&start="+e}):"vimeo"===t&&(u=u.replace("&%23","#")),!1}}),p?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=i),"iframe"===p&&(a.opts=h.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),h.extend(a,{type:p,src:u,origSrc:a.src,contentSource:d,contentType:"image"===p?"image":"gmap_place"==d||"gmap_search"==d?"map":"video"})):u&&(a.type=a.opts.defaultType)});var a={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,o=this;this[t].loaded?setTimeout(function(){o.done(t)}):this[t].loading||(this[t].loading=!0,(e=document.createElement("script")).type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){o[t].loaded=!0,o.done(t)}:e.onload=function(){o[t].loaded=!0,o.done(t)},document.body.appendChild(e))},done:function(t){var e,o;"youtube"===t&&delete window.onYouTubeIframeAPIReady,(e=h.modulaFancybox.getInstance())&&(o=e.current.$content.find("iframe"),"youtube"===t&&void 0!==YT&&YT?new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&e.next()}}}):"vimeo"===t&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(o).on("ended",function(){e.next()}))}};h(document).on({"afterShow.fb":function(t,e,o){1<e.group.length&&("youtube"===o.contentSource||"vimeo"===o.contentSource)&&a.load(o.contentSource)}})}(jQuery),function(m,l,g){"use strict";function d(t){var e=[];for(var o in t=(t=t.originalEvent||t||m.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[o].pageX?e.push({x:t[o].pageX,y:t[o].pageY}):t[o].clientX&&e.push({x:t[o].clientX,y:t[o].clientY});return e}function b(t,e,o){return e&&t?"x"===o?t.x-e.x:"y"===o?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function c(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||g.isFunction(t.get(0).onclick)||t.data("selectable"))return 1;for(var e=0,o=t[0].attributes,n=o.length;e<n;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return 1}function u(t){for(var e,o,n,a,i,s=!1;e=t.get(0),0,o=m.getComputedStyle(e)["overflow-y"],n=m.getComputedStyle(e)["overflow-x"],a=("scroll"===o||"auto"===o)&&e.scrollHeight>e.clientHeight,i=("scroll"===n||"auto"===n)&&e.scrollWidth>e.clientWidth,!(s=a||i)&&(t=t.parent()).length&&!t.hasClass("modula-fancybox-stage")&&!t.is("body"););return s}function o(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",g.proxy(e,"ontouchstart"))}var y=m.requestAnimationFrame||m.webkitRequestAnimationFrame||m.mozRequestAnimationFrame||m.oRequestAnimationFrame||function(t){return m.setTimeout(t,1e3/60)},v=m.cancelAnimationFrame||m.webkitCancelAnimationFrame||m.mozCancelAnimationFrame||m.oCancelAnimationFrame||function(t){m.clearTimeout(t)};o.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),g(l).off(".fb.touch"),t.requestId&&(v(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},o.prototype.ontouchstart=function(t){var e=this,o=g(t.target),n=e.instance,a=n.current,i=a.$slide,s=a.$content,r="touchstart"==t.type;if(r&&e.$container.off("mousedown.fb.touch"),(!t.originalEvent||2!=t.originalEvent.button)&&i.length&&o.length&&!c(o)&&!c(o.parent())&&(o.is("img")||!(t.originalEvent.clientX>o[0].clientWidth+o.offset().left))){if(!a||n.isAnimating||a.$slide.hasClass("modula-fancybox-animated"))return t.stopPropagation(),void t.preventDefault();e.realPoints=e.startPoints=d(t),e.startPoints.length&&(a.touch&&t.stopPropagation(),e.startEvent=t,e.canTap=!0,e.$target=o,e.$content=s,e.opts=a.opts.touch,e.isPanning=!1,e.isSwiping=!1,e.isZooming=!1,e.isScrolling=!1,e.canPan=n.canPan(),e.startTime=(new Date).getTime(),e.distanceX=e.distanceY=e.distance=0,e.canvasWidth=Math.round(i[0].clientWidth),e.canvasHeight=Math.round(i[0].clientHeight),e.contentLastPos=null,e.contentStartPos=g.modulaFancybox.getTranslate(e.$content)||{top:0,left:0},e.sliderStartPos=g.modulaFancybox.getTranslate(i),e.stagePos=g.modulaFancybox.getTranslate(n.$refs.stage),e.sliderStartPos.top-=e.stagePos.top,e.sliderStartPos.left-=e.stagePos.left,e.contentStartPos.top-=e.stagePos.top,e.contentStartPos.left-=e.stagePos.left,g(l).off(".fb.touch").on(r?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",g.proxy(e,"ontouchend")).on(r?"touchmove.fb.touch":"mousemove.fb.touch",g.proxy(e,"ontouchmove")),g.modulaFancybox.isMobile&&l.addEventListener("scroll",e.onscroll,!0),((e.opts||e.canPan)&&(o.is(e.$stage)||e.$stage.find(o).length)||(o.is(".modula-fancybox-image")&&t.preventDefault(),g.modulaFancybox.isMobile&&o.parents(".modula-fancybox-caption").length))&&(e.isScrollable=u(o)||u(o.parent()),g.modulaFancybox.isMobile&&e.isScrollable||t.preventDefault(),1!==e.startPoints.length&&!a.hasError||(e.canPan?(g.modulaFancybox.stop(e.$content),e.isPanning=!0):e.isSwiping=!0,e.$container.addClass("modula-fancybox-is-grabbing")),2===e.startPoints.length&&"image"===a.type&&(a.isLoaded||a.$ghost)&&(e.canTap=!1,e.isSwiping=!1,e.isPanning=!1,e.isZooming=!0,g.modulaFancybox.stop(e.$content),e.centerPointStartX=.5*(e.startPoints[0].x+e.startPoints[1].x)-g(m).scrollLeft(),e.centerPointStartY=.5*(e.startPoints[0].y+e.startPoints[1].y)-g(m).scrollTop(),e.percentageOfImageAtPinchPointX=(e.centerPointStartX-e.contentStartPos.left)/e.contentStartPos.width,e.percentageOfImageAtPinchPointY=(e.centerPointStartY-e.contentStartPos.top)/e.contentStartPos.height,e.startDistanceBetweenFingers=b(e.startPoints[0],e.startPoints[1]))))}},o.prototype.onscroll=function(t){this.isScrolling=!0,l.removeEventListener("scroll",this.onscroll,!0)},o.prototype.ontouchmove=function(t){var e=this;void 0===t.originalEvent.buttons||0!==t.originalEvent.buttons?e.isScrolling?e.canTap=!1:(e.newPoints=d(t),(e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=b(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=b(e.newPoints[0],e.startPoints[0],"y"),e.distance=b(e.newPoints[0],e.startPoints[0]),0<e.distance&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))):e.ontouchend(t)},o.prototype.onSwipe=function(t){var e,a=this,i=a.instance,o=a.isSwiping,n=a.sliderStartPos.left||0;if(!0!==o)"x"==o&&(0<a.distanceX&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?n+=Math.pow(a.distanceX,.8):a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?n-=Math.pow(-a.distanceX,.8):n+=a.distanceX),a.sliderLastPos={top:"x"==o?0:a.sliderStartPos.top+a.distanceY,left:n},a.requestId&&(v(a.requestId),a.requestId=null),a.requestId=y(function(){a.sliderLastPos&&(g.each(a.instance.slides,function(t,e){var o=e.pos-a.instance.currPos;g.modulaFancybox.setTranslate(e.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+o*a.canvasWidth+o*e.opts.gutter})}),a.$container.addClass("modula-fancybox-is-sliding"))});else if(10<Math.abs(a.distance)){if(a.canTap=!1,i.group.length<2&&a.opts.vertical?a.isSwiping="y":i.isDragging||!1===a.opts.vertical||"auto"===a.opts.vertical&&800<g(m).width()?a.isSwiping="x":(e=Math.abs(180*Math.atan2(a.distanceY,a.distanceX)/Math.PI),a.isSwiping=45<e&&e<135?"y":"x"),"y"===a.isSwiping&&g.modulaFancybox.isMobile&&a.isScrollable)return void(a.isScrolling=!0);i.isDragging=a.isSwiping,a.startPoints=a.newPoints,g.each(i.slides,function(t,e){var o,n;g.modulaFancybox.stop(e.$slide),o=g.modulaFancybox.getTranslate(e.$slide),n=g.modulaFancybox.getTranslate(i.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===i.current.pos&&(a.sliderStartPos.top=o.top-n.top,a.sliderStartPos.left=o.left-n.left),g.modulaFancybox.setTranslate(e.$slide,{top:o.top-n.top,left:o.left-n.left})}),i.SlideShow&&i.SlideShow.isActive&&i.SlideShow.stop()}},o.prototype.onPan=function(){var t=this;b(t.newPoints[0],t.realPoints[0])<(g.modulaFancybox.isMobile?10:5)?t.startPoints=t.newPoints:(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&v(t.requestId),t.requestId=y(function(){g.modulaFancybox.setTranslate(t.$content,t.contentLastPos)}))},o.prototype.limitMovement=function(){var t=this,e=t.canvasWidth,o=t.canvasHeight,n=t.distanceX,a=t.distanceY,i=t.contentStartPos,s=i.left,r=i.top,l=i.width,c=i.height,d=e<l?s+n:s,u=r+a,p=Math.max(0,.5*e-.5*l),h=Math.max(0,.5*o-.5*c),f=Math.min(e-l,.5*e-.5*l),m=Math.min(o-c,.5*o-.5*c);return 0<n&&p<d&&(d=p-1+Math.pow(-p+s+n,.8)||0),n<0&&d<f&&(d=f+1-Math.pow(f-s-n,.8)||0),0<a&&h<u&&(u=h-1+Math.pow(-h+r+a,.8)||0),a<0&&u<m&&(u=m+1-Math.pow(m-r-a,.8)||0),{top:u,left:d}},o.prototype.limitPosition=function(t,e,o,n){var a=this.canvasWidth,i=this.canvasHeight;return t=a<o?(t=0<t?0:t)<a-o?a-o:t:Math.max(0,a/2-o/2),{top:e=i<n?(e=0<e?0:e)<i-n?i-n:e:Math.max(0,i/2-n/2),left:t}},o.prototype.onZoom=function(){var t=this,e=t.contentStartPos,o=e.width,n=e.height,a=e.left,i=e.top,s=b(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,r=Math.floor(o*s),l=Math.floor(n*s),c=(o-r)*t.percentageOfImageAtPinchPointX,d=(n-l)*t.percentageOfImageAtPinchPointY,u=(t.newPoints[0].x+t.newPoints[1].x)/2-g(m).scrollLeft(),p=(t.newPoints[0].y+t.newPoints[1].y)/2-g(m).scrollTop(),h=u-t.centerPointStartX,f={top:i+(d+(p-t.centerPointStartY)),left:a+(c+h),scaleX:s,scaleY:s};t.canTap=!1,t.newWidth=r,t.newHeight=l,t.contentLastPos=f,t.requestId&&v(t.requestId),t.requestId=y(function(){g.modulaFancybox.setTranslate(t.$content,t.contentLastPos)})},o.prototype.ontouchend=function(t){var e=this,o=e.isSwiping,n=e.isPanning,a=e.isZooming,i=e.isScrolling;if(e.endPoints=d(t),e.dMs=Math.max((new Date).getTime()-e.startTime,1),e.$container.removeClass("modula-fancybox-is-grabbing"),g(l).off(".fb.touch"),l.removeEventListener("scroll",e.onscroll,!0),e.requestId&&(v(e.requestId),e.requestId=null),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.isScrolling=!1,e.instance.isDragging=!1,e.canTap)return e.onTap(t);e.speed=100,e.velocityX=e.distanceX/e.dMs*.5,e.velocityY=e.distanceY/e.dMs*.5,n?e.endPanning():a?e.endZooming():e.endSwiping(o,i)},o.prototype.endSwiping=function(t,e){var o=this,n=!1,a=o.instance.group.length,i=Math.abs(o.distanceX),s="x"==t&&1<a&&(130<o.dMs&&10<i||50<i);o.sliderLastPos=null,"y"==t&&!e&&50<Math.abs(o.distanceY)?(g.modulaFancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),n=o.instance.close(!0,250)):s&&0<o.distanceX?n=o.instance.previous(300):s&&o.distanceX<0&&(n=o.instance.next(300)),!1!==n||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("modula-fancybox-is-sliding")},o.prototype.endPanning=function(){var t,e,o,n=this;n.contentLastPos&&(e=!1===n.opts.momentum||350<n.dMs?(t=n.contentLastPos.left,n.contentLastPos.top):(t=n.contentLastPos.left+500*n.velocityX,n.contentLastPos.top+500*n.velocityY),(o=n.limitPosition(t,e,n.contentStartPos.width,n.contentStartPos.height)).width=n.contentStartPos.width,o.height=n.contentStartPos.height,g.modulaFancybox.animate(n.$content,o,366))},o.prototype.endZooming=function(){var t,e,o,n,a=this,i=a.instance.current,s=a.newWidth,r=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,n={top:e=a.contentLastPos.top,left:t,width:s,height:r,scaleX:1,scaleY:1},g.modulaFancybox.setTranslate(a.$content,n),s<a.canvasWidth&&r<a.canvasHeight?a.instance.scaleToFit(150):s>i.width||r>i.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,s,r),g.modulaFancybox.animate(a.$content,o,150)))},o.prototype.onTap=function(o){function t(t){var e=s.opts[t];if(g.isFunction(e)&&(e=e.apply(i,[s,o])),e)switch(e){case"close":i.close(n.startEvent);break;case"toggleControls":i.toggleControls();break;case"next":i.next();break;case"nextOrClose":1<i.group.length?i.next():i.close(n.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(i.canPan()?i.scaleToFit():i.isScaledDown()?i.scaleToActual(l,c):i.group.length<2&&i.close(n.startEvent))}}var e,n=this,a=g(o.target),i=n.instance,s=i.current,r=o&&d(o)||n.startPoints,l=r[0]?r[0].x-g(m).scrollLeft()-n.stagePos.left:0,c=r[0]?r[0].y-g(m).scrollTop()-n.stagePos.top:0;if((!o.originalEvent||2!=o.originalEvent.button)&&(a.is("img")||!(l>a[0].clientWidth+a.offset().left))){if(a.is(".modula-fancybox-bg,.modula-fancybox-inner,.modula-fancybox-outer,.modula-fancybox-container"))e="Outside";else if(a.is(".modula-fancybox-slide"))e="Slide";else{if(!i.current.$content||!i.current.$content.find(a).addBack().filter(a).length)return;e="Content"}if(n.tapped){if(clearTimeout(n.tapped),n.tapped=null,50<Math.abs(l-n.tapX)||50<Math.abs(c-n.tapY))return this;t("dblclick"+e)}else n.tapX=l,n.tapY=c,s.opts["dblclick"+e]&&s.opts["dblclick"+e]!==s.opts["click"+e]?n.tapped=setTimeout(function(){n.tapped=null,i.isAnimating||t("click"+e)},500):t("click"+e);return this}},g(l).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new o(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(s,r){"use strict";r.extend(!0,r.modulaFancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="modula-fancybox-button modula-fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});function o(t){this.instance=t,this.init()}r.extend(o.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,e=t.instance,o=e.group[e.currIndex].opts.slideShow;t.$button=e.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),e.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=r('<div class="modula-fancybox-progress"></div>').appendTo(e.$refs.inner))},set:function(t){var e=this,o=e.instance,n=o.current;n&&(!0===t||n.opts.loop||o.currIndex<o.group.length-1)?e.isActive&&"video"!==n.contentType&&(e.$progress&&r.modulaFancybox.animate(e.$progress.show(),{scaleX:1},n.opts.slideShow.speed),e.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},n.opts.slideShow.speed)):(e.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&this.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("modula-fancybox-button--play").addClass("modula-fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("modula-fancybox-button--pause").addClass("modula-fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){this.isActive?this.stop():this.start()}}),r(s).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new o(e))},"beforeShow.fb":function(t,e,o,n){var a=e&&e.SlideShow;n?a&&o.opts.slideShow.autoStart&&a.start():a&&a.isActive&&a.clear()},"afterShow.fb":function(t,e,o){var n=e&&e.SlideShow;n&&n.isActive&&n.set()},"afterKeydown.fb":function(t,e,o,n,a){var i=e&&e.SlideShow;!i||!o.opts.slideShow||80!==a&&32!==a||r(s.activeElement).is("button,a,input")||(n.preventDefault(),i.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var o=e&&e.SlideShow;o&&o.stop()}}),r(s).on("visibilitychange",function(){var t=r.modulaFancybox.getInstance(),e=t&&t.SlideShow;e&&e.isActive&&(s.hidden?e.clear():e.set())})}(document,jQuery),function(i,o){"use strict";var n,a=function(){for(var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],e={},o=0;o<t.length;o++){var n=t[o];if(n&&n[1]in i){for(var a=0;a<n.length;a++)e[t[0][a]]=n[a];return e}}return!1}();a&&(n={request:function(t){(t=t||i.documentElement)[a.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){i[a.exitFullscreen]()},toggle:function(t){t=t||i.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(i[a.fullscreenElement])},enabled:function(){return Boolean(i[a.fullscreenEnabled])}},o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="modula-fancybox-button modula-fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),o(i).on(a.fullscreenchange,function(){var t=n.isFullscreen(),e=o.modulaFancybox.getInstance();e&&(e.current&&"image"===e.current.type&&e.isAnimating&&(e.isAnimating=!1,e.update(!0,!0,0),e.isComplete||e.complete()),e.trigger("onFullscreenChange",t),e.$refs.container.toggleClass("modula-fancybox-is-fullscreen",t),e.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("modula-fancybox-button--fsenter",!t).toggleClass("modula-fancybox-button--fsexit",t))})),o(i).on({"onInit.fb":function(t,e){a?e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),n.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&n.request(),e.FullScreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,o,n,a){e&&e.FullScreen&&70===a&&(n.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("modula-fancybox-is-fullscreen")&&n.exit()}})}(document,jQuery),function(t,i){"use strict";var s="modula-fancybox-thumbs",r=s+"-active";i.modulaFancybox.defaults=i.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="modula-fancybox-button modula-fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"}},i.modulaFancybox.defaults);function n(t){this.init(t)}i.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,o=t.group,n=0;e.instance=t,e.opts=o[t.currIndex].opts.thumbs,(t.Thumbs=e).$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var a=0,i=o.length;a<i&&(o[a].thumb&&n++,!(1<n));a++);1<n&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var o,t=this,e=t.instance,n=t.opts.parentEl,a=[];t.$grid||(t.$grid=i('<div class="'+s+" "+s+"-"+t.opts.axis+'"></div>').appendTo(e.$refs.container.find(n).addBack().filter(n)),t.$grid.on("click","a",function(){e.jumpTo(i(this).attr("data-index"))})),t.$list||(t.$list=i('<div class="'+s+'__list">').appendTo(t.$grid)),i.each(e.group,function(t,e){(o=e.thumb)||"image"!==e.type||(o=e.src),a.push('<a href="javascript:;" tabindex="0" data-index="'+t+'"'+(o&&o.length?' style="background-image:url('+o+')"':'class="modula-fancybox-thumbs-missing"')+"></a>")}),t.$list[0].innerHTML=a.join(""),"x"===t.opts.axis&&t.$list.width(parseInt(t.$grid.css("padding-right"),10)+e.group.length*t.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,o,n=this,a=n.$list,i=n.$grid;n.instance.current&&(o=(e=a.children().removeClass(r).filter('[data-index="'+n.instance.current.index+'"]').addClass(r)).position(),"y"===n.opts.axis&&(o.top<0||o.top>a.height()-e.outerHeight())?a.stop().animate({scrollTop:a.scrollTop()+o.top},t):"x"===n.opts.axis&&(o.left<i.scrollLeft()||o.left>i.scrollLeft()+(i.width()-e.outerWidth()))&&a.parent().stop().animate({scrollLeft:o.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("modula-fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),i(t).on({"onInit.fb":function(t,e){var o;e&&!e.Thumbs&&(o=new n(e)).isActive&&!0===o.opts.autoStart&&o.show()},"beforeShow.fb":function(t,e,o,n){var a=e&&e.Thumbs;a&&a.isVisible&&a.focus(n?0:250)},"afterKeydown.fb":function(t,e,o,n,a){var i=e&&e.Thumbs;i&&i.isActive&&71===a&&(n.preventDefault(),i.toggle())},"beforeClose.fb":function(t,e){var o=e&&e.Thumbs;o&&o.isVisible&&!1!==o.opts.hideOnClose&&o.$grid.hide()}})}(document,jQuery),function(t,o){"use strict";o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="modula-fancybox-button modula-fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location}}}),o(t).on("click","[data-fancybox-share]",function(){var n,e,a=o.modulaFancybox.getInstance(),i=a.current||null,s="<div class='modula-fancybox-share'><h1>{{SHARE}}</h1><p>";i&&("function"===o.type(i.opts.share.url)&&(n=i.opts.share.url.apply(i,[a,i])),o.each(i.opts.modulaShare,function(t,e){var o=(i.opts.lightboxEmailMessage.length?i.opts.lightboxEmailMessage:"Here is the link to the image : %%image_link%% and this is the link to the gallery : %%gallery_link%%").replace(/\%%gallery_link%%/g,window.location.href).replace(/\%%image_link%%/g,i.src);s+=i.opts.shareBtnTpl[e].replace(/\{\{media\}\}/g,"image"===i.type?encodeURIComponent(i.src):"").replace(/\{\{modulaShareUrl\}\}/g,encodeURIComponent(n)).replace(/\{\{descr\}\}/g,a.$caption?encodeURIComponent(a.$caption.text()):"").replace(/\{\{subject\}\}/g,encodeURIComponent(i.opts.lightboxEmailSubject)).replace(/\{\{emailMessage\}\}/g,encodeURIComponent(o))}),s=(s+="</p><p><input class='modula-fancybox-share__input' type='text' value='{{url_raw}}' /></p></div>").replace(/\{\{url_raw\}\}/g,(e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},String(n).replace(/[&<>"'`=\/]/g,function(t){return e[t]}))),o.modulaFancybox.open({src:a.translate(a,s),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){a.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".modula-fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(i,s,a){"use strict";function o(){var t=i.location.hash.substr(1),e=t.split("-"),o=1<e.length&&/^\+?\d+$/.test(e[e.length-1])&&parseInt(e.pop(-1),10)||1;return{hash:t,index:o<1?1:o,gallery:e.join("-")}}function e(t){""!==t.gallery&&a("[data-fancybox='"+a.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function r(t){var e,o;return!!t&&(""!==(o=(e=t.current?t.current.opts:t.opts).hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&o)}a.escapeSelector||(a.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),a(function(){!1!==a.modulaFancybox.defaults.hash&&(a(s).on({"onInit.fb":function(t,e){!1!==e.group[e.currIndex].opts.hash&&(o(),r(e))},"beforeShow.fb":function(t,e,o,n){var a;o&&!1!==o.opts.hash&&(a=r(e))&&(e.currentHash=a+(1<e.group.length?"-"+o.opts.image_id:""),i.location.hash!=="#"+e.currentHash&&(n&&!e.origHash&&(e.origHash=i.location.hash),e.hashTimer&&clearTimeout(e.hashTimer),e.hashTimer=setTimeout(function(){"replaceState"in i.history?(i.history[n?"pushState":"replaceState"]({},s.title,i.location.pathname+i.location.search+"#"+e.currentHash),n&&(e.hasCreatedHistory=!0)):i.location.hash=e.currentHash,e.hashTimer=null},300)))},"beforeClose.fb":function(t,e,o){o&&!1!==o.opts.hash&&(clearTimeout(e.hashTimer),e.currentHash&&e.hasCreatedHistory?i.history.back():e.currentHash&&("replaceState"in i.history?i.history.replaceState({},s.title,i.location.pathname+i.location.search+(e.origHash||"")):i.location.hash=e.origHash),e.currentHash=null)}}),a(i).on("hashchange.fb",function(){var t=o(),n=null;a.each(a(".modula-fancybox-container").get().reverse(),function(t,e){var o=a(e).data("modulaFancyBox");if(o&&o.currentHash)return n=o,!1}),n?n.currentHash===t.gallery+"-"+t.index||1===t.index&&n.currentHash==t.gallery||(n.currentHash=null,n.close()):""!==t.gallery&&e(t)}),setTimeout(function(){a.modulaFancybox.getInstance()||e(o())},50))})}(window,document,jQuery),function(t,e){"use strict";var a=(new Date).getTime();e(t).on({"onInit.fb":function(t,n,e){n.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var e=n.current,o=(new Date).getTime();n.group.length<2||!1===e.opts.wheel||"auto"===e.opts.wheel&&"image"!==e.type||(t.preventDefault(),t.stopPropagation(),e.$slide.hasClass("modula-fancybox-animated")||(t=t.originalEvent||t,o-a<250||(a=o,n[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
3
- function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);var i=t.getBoundingClientRect();return i.top-jQuery(window).height()<=-100&&-400<=i.top-jQuery(window).height()||i.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")})}),function(c,r,p,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function s(t,i){this.element=t,this.$element=c(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=c.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}s.prototype.init=function(){var n=this;c(p).trigger("modula_api_before_init",[n]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),c(r).resize(function(){n.onResize(n)}),c(r).on("modula-update",function(){n.onResize(n)}),c(p).on("lazyloaded",function(t){var i,e,o=c(t.target);"modula"==o.data("source")&&(o.data("size",{width:o.width(),height:o.height()}),(i=o.parents(".modula-item")).addClass("tg-loaded"),e=n.$items.not(".jtg-hidden").index(i),n.placeImage(e),n.isIsotope&&n.$itemsCnt.modulaisotope("layout"))}),n.options.inView&&jQuery(r).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(n.$element)&&n.$element.addClass("modula-loaded-scale")}),this.setupSocial(),this.options.onComplete&&this.options.onComplete(),"fancybox"!=n.options.lightbox||n.options.initLightbox||this.initLightbox(),c(p).trigger("modula_api_after_init",[n])},s.prototype.initLightbox=function(){var o=this;o.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=c.map(o.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),e=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{caption:i.data("caption"),alt:e.attr("alt"),image_id:i.attr("data-image-id")}}}),e=o.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,o.options.lightboxOpts,e)})},s.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},s.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),d=this,l=this.options.columns,i=p.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?l=this.options.mobileColumns:i<=768&&(l=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(l-1))/l:Math.floor(t/l*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=c(i).data("width"),a=c(i).data("height");12<s&&(s=12),"1"==d.options.enableResponsive&&(e=s,o=a,1==l?a=(s=1)*o/e:((s=Math.round(l*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+d.options.gutter*(s-1),n.height=Math.round(h)*a+d.options.gutter*(a-1),c(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),c(i).css(c(i).data("size")),c(i).find(".figc").css({width:c(i).data("size").width,height:c(i).data("size").height}),r.loadImage(t)});var e={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(d.options.gutter)}};this.$itemsCnt.modulaisotope(e),this.isIsotope=!0},s.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];c(i).data("size",e),c(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),c(i).css({width:e.width,height:e.height}),c(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},s.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},s.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},s.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++){(o=this.tiles[i]).area>this.tiles[t].area&&(t=i)}var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},s.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),c(p).trigger("modula_api_reset",[this])},s.prototype.onResize=function(i){i.lastWidth!=i.$itemsCnt.width()&&(clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope("layout")},100))},s.prototype.loadImage=function(t){var i,e=this,o=e.$items.not(".jtg-hidden").eq(t).find(".pic"),n={};"0"==e.options.lazyLoad&&(void 0===o.attr("width")&&void 0===o.attr("height")?((i=new Image).onload=function(){n={width:this.width,height:this.height},o.data("size",n),e.placeImage(t)},"undefined"!=o.attr("src")?i.src=o.attr("src"):i.src=o.data("src")):(n={width:o.width(),height:o.height()},o.data("size",n),e.placeImage(t)))},s.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",r={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(r.width=o.width,r.left=0,a){case"top":r.top=0;break;case"middle":r.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":r.bottom=0}else switch(r.height=o.height,r.top=0,h){case"left":r.left=0;break;case"center":r.left=0-(o.height*s-o.width)/2;break;case"right":r.right=0}e.css(r),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},s.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&h(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&a(this.$items,this),this.options.enableEmail&&l(this.$items,this)},s.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption"),e=p.title;return 0<i.length&&(e=c.trim(i)),r.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split("#")[0])+"&text="+encodeURI(e),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption");p.title;0<e.length&&c.trim(e);i.attr("src");var o="//www.facebook.com/sharer.php?u="+location.href;return r.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},a=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption");p.title;return 0<i.length&&c.trim(i),r.open("https://api.whatsapp.com/send?text="+encodeURI(r.location.href.split("#")[0])+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},h=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption"),o=p.title;0<e.length&&(o=c.trim(e));var n,s,a,h="http://pinterest.com/pin/create/button/?url="+encodeURI(location.href)+"&description="+encodeURI(o);return 1==i.length&&(n=i.attr("src"),h+="&media="+(s=n,(a=p.createElement("img")).src=s,s=a.src,a.src=null,s)),r.open(h,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();var i="//linkedin.com/shareArticle?mini=true&url="+ +encodeURI(location.href);return r.open(i,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,s){t.find(".modula-icon-email").click(function(t){var i=encodeURI(s.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,n="mailto:?subject="+i+"&body="+encodeURI(s.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return r.open(n,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};c.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){c.data(this,"plugin_"+n)||c.data(this,"plugin_"+n,new s(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=c.data(this,"plugin_"+n);t instanceof s&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&c.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).attr("id"),i=jQuery(this).data("config");jQuery("#"+t).modulaGallery(i)})});
1
  !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(l){function r(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:l('<div class="spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}r.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},r.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},r.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},r.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)){if(0===this.settings.sizeRangeSuffixes[i].length)continue;if(this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i]}return""},r.prototype.newSrc=function(t,i,e,s){var n,r,o;return this.settings.thumbnailPath?o=this.settings.thumbnailPath(t,i,e,s):(r=null!==(n=t.match(this.settings.extension))?n[0]:"",o=t.replace(this.settings.extension,""),o=this.removeSuffix(o,this.getUsedSuffix(o)),o+=this.getSuffix(i,e)+r),o},r.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},r.prototype.extractImgSrcFromImage=function(t){var i=void 0!==t.data("safe-src")?t.data("safe-src"):t.attr("src");return t.data("jg.originalSrc",i),i},r.prototype.imgFromEntry=function(t){var i=t.find(this.settings.imgSelector);return 0===i.length?null:i},r.prototype.captionFromEntry=function(t){var i=t.find("> .caption");return 0===i.length?null:i},r.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h,g=this.imgFromEntry(t);null!==g?(g.css("width",s),g.css("height",n),g.css("margin-left",-s/2),g.css("margin-top",-n/2),o=g.attr("src"),a=this.newSrc(o,s,n,g[0]),g.one("error",function(){g.attr("src",g.data("jg.originalSrc"))}),h=function(){o!==a&&g.attr("src",a)},"skipped"===t.data("jg.loaded")?this.onImageEvent(o,l.proxy(function(){this.showImg(t,h),t.data("jg.loaded",!0)},this)):this.showImg(t,h)):this.showImg(t),this.displayEntryCaption(t)},r.prototype.displayEntryCaption=function(t){var i,e,s=this.imgFromEntry(t);null!==s&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=s.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=l('<div class="caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},r.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},r.prototype.onEntryMouseEnterForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.addClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},r.prototype.onEntryMouseLeaveForCaption=function(t){var i=this.captionFromEntry(l(t.currentTarget));this.settings.cssAnimation?i.removeClass("caption-visible").removeClass("caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},r.prototype.addCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0===i&&(i={mouseenter:l.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:l.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},r.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},r.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},r.prototype.prepareBuildingRow=function(t){var i,e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(t&&"hide"===this.settings.lastRow&&!u){for(i=0;i<this.buildingRow.entriesBuff.length;i++)e=this.buildingRow.entriesBuff[i],this.settings.cssAnimation?e.removeClass("entry-visible"):(e.stop().fadeTo(0,.1),e.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),i=0;i<this.buildingRow.entriesBuff.length;i++)s=(e=this.buildingRow.entriesBuff[i]).data("jg.width")/e.data("jg.height"),r=o?(n=i===this.buildingRow.entriesBuff.length-1?h:g*s,g):(n=l*s,l),h-=Math.round(n),e.data("jg.jwidth",Math.round(n)),e.data("jg.jheight",Math.ceil(r)),(0===i||r<a)&&(a=r);return this.buildingRow.height=a,o},r.prototype.flushRow=function(t){var i,e=this.settings,s=this.border,n=this.prepareBuildingRow(t);if(t&&"hide"===e.lastRow&&-1===n)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===e.lastRow||"right"===e.lastRow)){for(var r=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*e.margins,o=0;o<this.buildingRow.entriesBuff.length;o++)r-=(i=this.buildingRow.entriesBuff[o]).data("jg.jwidth");"center"===e.lastRow?s+=r/2:"right"===e.lastRow&&(s+=r)}var a=this.buildingRow.entriesBuff.length-1;for(o=0;o<=a;o++)i=this.buildingRow.entriesBuff[this.settings.rtl?a-o:o],this.displayEntry(i,s,this.offY,i.data("jg.jwidth"),i.data("jg.jheight"),this.buildingRow.height),s+=i.data("jg.jwidth")+e.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=e.rowHeight&&n)&&(this.offY+=this.buildingRow.height+e.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;function e(){return l("body").height()>l(window).height()}r.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},r.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},r.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},r.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(l.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),e()===this.scrollBarOn?Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)):(this.scrollBarOn=e(),this.galleryWidth=t))},this),this.settings.refreshTime)},r.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},r.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},r.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},r.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},r.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},r.prototype.updateEntries=function(t){var i=t&&null!=this.lastFetchedEntry?l(this.lastFetchedEntry).nextAll(this.settings.selector).toArray():(this.entries=[],this.$gallery.children(this.settings.selector).toArray());return 0<i.length&&(l.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},r.prototype.insertToGallery=function(t){var i=this;l.each(t,function(){l(this).appendTo(i.$gallery)})},r.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},r.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},r.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)l(t[i]).removeClass("jg-filtered")},r.prototype.filterArray=function(t){var e=this.settings;if("string"===l.type(e.filter))return t.filter(function(t){var i=l(t);return i.is(e.filter)?(i.removeClass("jg-filtered"),!0):(i.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(l.isFunction(e.filter)){for(var i=t.filter(e.filter),s=0;s<t.length;s++)-1===i.indexOf(t[s])?l(t[s]).addClass("jg-filtered").removeClass("jg-visible"):l(t[s]).removeClass("jg-filtered");return i}},r.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),l.each(this.entries,l.proxy(function(t,i){var e=l(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry");var s=this.imgFromEntry(e);s.css("width",""),s.css("height",""),s.css("margin-left",""),s.css("margin-top",""),s.attr("src",s.data("jg.originalSrc")),s.data("jg.originalSrc",void 0),this.removeCaptionEventsHandlers(e);var n=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==n&&n.remove()):null!==n&&n.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0)},r.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=l(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t);this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete"),this.setGalleryFinalHeight(this.galleryHeightToSet)},r.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},r.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},r.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=l(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},r.prototype.init=function(){var a=!1,h=!1,g=this;l.each(this.entries,function(t,i){var e=l(i),s=g.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==g.settings.rel&&e.attr("rel",g.settings.rel),null!==g.settings.target&&e.attr("target",g.settings.target),null!==s){var n=g.extractImgSrcFromImage(s);if(s.attr("src",n),!1===g.settings.waitThumbnailsLoad){var r=parseFloat(s.prop("width")),o=parseFloat(s.prop("height"));if(!isNaN(r)&&!isNaN(o))return e.data("jg.width",r),e.data("jg.height",o),e.data("jg.loaded","skipped"),h=!0,g.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),a=!0,g.isSpinnerActive()||g.startLoadingSpinnerAnimation(),g.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),g.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),g.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),a||h||this.startImgAnalyzer(!1),this.checkWidth()},r.prototype.checkOrConvertNumber=function(t,i){if("string"===l.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==l.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},r.prototype.checkSizeRangesSuffixes=function(){if("object"!==l.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(i);for(var e={0:""},s=0;s<t.length;s++)if("string"===l.type(t[s]))try{e[parseInt(t[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[t[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[t[s]]=this.settings.sizeRangeSuffixes[t[s]];this.settings.sizeRangeSuffixes=e},r.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===l.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==l.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<i&&(t=i),t},r.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==l.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==l.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==l.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==l.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!l.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!l.isFunction(this.settings.filter)&&"string"!==l.type(this.settings.filter))throw"filter must be false, a string or a filter function"},r.prototype.retrieveSuffixRanges=function(){var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(parseInt(i,10));return t.sort(function(t,i){return i<t?1:t<i?-1:0}),t},r.prototype.updateSettings=function(t){this.settings=l.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},r.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a, div:not(.spinner)",imgSelector:"> img, > a > img",triggerEvent:function(t){this.$gallery.trigger(t)}},l.fn.justifiedGallery=function(n){return this.each(function(t,i){var e=l(i);e.addClass("justified-gallery");var s=e.data("jg.controller");if(void 0===s){if(null!=n&&"object"!==l.type(n)){if("destroy"===n)return;throw"The argument must be an object"}s=new r(e,l.extend({},r.prototype.defaults,n)),e.data("jg.controller",s)}else if("norewind"!==n){if("destroy"===n)return void s.destroy();s.updateSettings(n),s.rewind()}s.updateEntries("norewind"===n)&&s.init()})}});
2
+ !function(l,u,m,g){"use strict";var t,a,s,i,p,e,c,h,d,n,o,r,f,b;function y(t,e){var o,n,a,i=[],s=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=d(t.data.options,e)),o=e.$target||m(t.currentTarget).trigger("blur"),(a=m.modulaFancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(i=e.selector?m(e.selector):(n=o.attr("data-fancybox")||"")?(i=t.data?t.data.items:[]).length?i.filter('[data-fancybox="'+n+'"]'):m('[data-fancybox="'+n+'"]'):[o],(s=m(i).index(o))<0&&(s=0),(a=m.modulaFancybox.open(i,e,s)).$trigger=o))}l.console=l.console||{info:function(t){}},m&&(m.fn.modulaFancybox?console.info("fancyBox already initialized"):(t={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="modula-fancybox-frame{rnd}" name="modula-fancybox-frame{rnd}" class="modula-fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="modula-fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="modula-fancybox-container" role="dialog" tabindex="-1"><div class="modula-fancybox-bg"></div><div class="modula-fancybox-inner"><div class="modula-fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="modula-fancybox-toolbar">{{buttons}}</div><div class="modula-fancybox-navigation">{{arrows}}</div><div class="modula-fancybox-stage"></div><div class="modula-fancybox-caption"><div class="modula-fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="modula-fancybox-loading"></div>',errorTpl:'<div class="modula-fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="modula-fancybox-button modula-fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="modula-fancybox-button modula-fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="modula-fancybox-button modula-fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="modula-fancybox-button modula-fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="modula-fancybox-button modula-fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="modula-fancybox-button modula-fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},modulaShare:["facebook","twitter","pinterest","whatsapp","linkedin","email"],shareBtnTpl:{facebook:'<a class="modula-fancybox-share__button modula-fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{modulaShareUrl}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a>',twitter:'<a class="modula-fancybox-share__button modula-fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{modulaShareUrl}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a>',pinterest:'<a class="modula-fancybox-share__button modula-fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{modulaShareUrl}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a>',whatsapp:'<a class="modula-fancybox-share__button modula-fancybox-share__button--wa" href="https://api.whatsapp.com/send?text={{modulaShareUrl}}&review_url=true"><svg aria-hidden="true" focusable="false" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1536 1600"><path d="M985 878q13 0 97.5 44t89.5 53q2 5 2 15q0 33-17 76q-16 39-71 65.5T984 1158q-57 0-190-62q-98-45-170-118T476 793q-72-107-71-194v-8q3-91 74-158q24-22 52-22q6 0 18 1.5t19 1.5q19 0 26.5 6.5T610 448q8 20 33 88t25 75q0 21-34.5 57.5T599 715q0 7 5 15q34 73 102 137q56 53 151 101q12 7 22 7q15 0 54-48.5t52-48.5zm-203 530q127 0 243.5-50t200.5-134t134-200.5t50-243.5t-50-243.5T1226 336t-200.5-134T782 152t-243.5 50T338 336T204 536.5T154 780q0 203 120 368l-79 233l242-77q158 104 345 104zm0-1382q153 0 292.5 60T1315 247t161 240.5t60 292.5t-60 292.5t-161 240.5t-240.5 161t-292.5 60q-195 0-365-94L0 1574l136-405Q28 991 28 780q0-153 60-292.5T249 247T489.5 86T782 26z" fill="currentColor"/></svg><span>WhatsApp</span></a>',linkedin:'<a class="modula-fancybox-share__button modula-fancybox-share__button--li" href="//linkedin.com/shareArticle?mini=true&url={{modulaShareUrl}}"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg><span>LinkedIn</span></a>',email:'<a class="modula-fancybox-share__button modula-fancybox-share__button--email" href="mailto:?subject={{subject}}&body={{emailMessage}}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z" fill="currentColor"></path></svg><span>Email</span></a>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"},wheel:"auto",onInit:m.noop,beforeLoad:m.noop,afterLoad:m.noop,beforeShow:m.noop,afterShow:m.noop,beforeClose:m.noop,afterClose:m.noop,onActivate:m.noop,onDeactivate:m.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},a=m(l),s=m(u),i=0,p=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||function(t){return l.setTimeout(t,1e3/60)},e=l.cancelAnimationFrame||l.webkitCancelAnimationFrame||l.mozCancelAnimationFrame||l.oCancelAnimationFrame||function(t){l.clearTimeout(t)},c=function(){var t,e=u.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(e.style[t]!==g)return o[t];return"transitionend"}(),h=function(t){return t&&t.length&&t[0].offsetHeight},d=function(t,e){var o=m.extend(!0,{},t,e);return m.each(e,function(t,e){m.isArray(e)&&(o[t]=e)}),o},n=function(t,e,o){var n=this;n.opts=d({index:o},m.modulaFancybox.defaults),m.isPlainObject(e)&&(n.opts=d(n.opts,e)),m.modulaFancybox.isMobile&&(n.opts=d(n.opts,n.opts.mobile)),n.id=n.opts.id||++i,n.currIndex=parseInt(n.opts.index,10)||0,n.prevIndex=null,n.prevPos=null,n.currPos=0,n.firstRun=!0,n.group=[],n.slides={},n.addContent(t),n.group.length&&n.init()},m.extend(n.prototype,{init:function(){var o=this;o.currIndex<0&&(o.currIndex=0),void 0===o.group[o.currIndex]&&jQuery.each(this.group,function(t,e){o.currIndex!=parseInt(e.opts.image_id)||(o.currIndex=t)});var e,n,a=o.group[o.currIndex].opts;a.closeExisting&&m.modulaFancybox.close(!0),m("body").addClass("modula-fancybox-active"),!m.modulaFancybox.getInstance()&&!1!==a.hideScrollbar&&!m.modulaFancybox.isMobile&&u.body.scrollHeight>l.innerHeight&&(m("head").append('<style id="modula-fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(l.innerWidth-u.documentElement.clientWidth)+"px;}</style>"),m("body").addClass("compensate-for-scrollbar")),n="",m.each(a.buttons,function(t,e){n+=a.btnTpl[e]||""}),e=m(o.translate(o,a.baseTpl.replace("{{buttons}}",n).replace("{{arrows}}",a.btnTpl.arrowLeft+a.btnTpl.arrowRight))).attr("id","modula-fancybox-container-"+o.id).addClass(a.baseClass).data("modulaFancyBox",o).appendTo(a.parentEl),o.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){o.$refs[t]=e.find(".modula-fancybox-"+t)}),o.trigger("onInit"),o.activate(),o.jumpTo(o.currIndex)},translate:function(t,e){var o=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return o[e]===g?t:o[e]})},addContent:function(t){var e,c=this,o=m.makeArray(t);m.each(o,function(t,e){var o,n,a,i,s,r={},l={};m.isPlainObject(e)?l=(r=e).opts||e:"object"===m.type(e)&&m(e).length?(l=(o=m(e)).data()||{},(l=m.extend(!0,{},l,l.options)).$orig=o,r.src=c.opts.src||l.src||o.attr("href"),r.type||r.src||(r.type="inline",r.src=e)):r={type:"html",src:e+""},r.opts=m.extend(!0,{},c.opts,l),m.isArray(l.buttons)&&(r.opts.buttons=l.buttons),m.modulaFancybox.isMobile&&r.opts.mobile&&(r.opts=d(r.opts,r.opts.mobile)),n=r.type||r.opts.type,i=r.src||"",!n&&i&&((a=i.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(n="video",r.opts.video.format||(r.opts.video.format="video/"+("ogv"===a[1]?"ogg":a[1]))):i.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?n="image":i.match(/\.(pdf)((\?|#).*)?$/i)?(n="iframe",r=m.extend(!0,r,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===i.charAt(0)&&(n="inline")),n?r.type=n:c.trigger("objectNeedsType",r),r.contentType||(r.contentType=-1<m.inArray(r.type,["html","inline","ajax"])?"html":r.type),r.index=c.group.length,"auto"==r.opts.smallBtn&&(r.opts.smallBtn=-1<m.inArray(r.type,["html","inline","ajax"])),"auto"===r.opts.toolbar&&(r.opts.toolbar=!r.opts.smallBtn),r.$thumb=r.opts.$thumb||null,r.opts.$trigger&&r.index===c.opts.index&&(r.$thumb=r.opts.$trigger.find("img:first"),r.$thumb.length&&(r.opts.$orig=r.opts.$trigger)),r.$thumb&&r.$thumb.length||!r.opts.$orig||(r.$thumb=r.opts.$orig.find("img:first")),r.$thumb&&!r.$thumb.length&&(r.$thumb=null),r.thumb=r.opts.thumb||(r.$thumb?r.$thumb[0].src:null),"function"===m.type(r.opts.caption)&&(r.opts.caption=r.opts.caption.apply(e,[c,r])),"function"===m.type(c.opts.caption)&&(r.opts.caption=c.opts.caption.apply(e,[c,r])),r.opts.caption instanceof m||(r.opts.caption=r.opts.caption===g?"":r.opts.caption+""),"ajax"===r.type&&1<(s=i.split(/\s+/,2)).length&&(r.src=s.shift(),r.opts.filter=s.shift()),r.opts.modal&&(r.opts=m.extend(!0,r.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),c.group.push(r)}),Object.keys(c.slides).length&&(c.updateControls(),(e=c.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var n=this;n.removeEvents(),n.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),n.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),n.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),n.next()}).on("click.fb","[data-fancybox-zoom]",function(t){n[n.isScaledDown()?"scaleToActual":"scaleToFit"]()}),a.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(n.requestId&&e(n.requestId),n.requestId=p(function(){n.update(t)})):(n.current&&"iframe"===n.current.type&&n.$refs.stage.hide(),setTimeout(function(){n.$refs.stage.show(),n.update(t)},m.modulaFancybox.isMobile?600:250))}),s.on("keydown.fb",function(t){var e=(m.modulaFancybox?m.modulaFancybox.getInstance():null).current,o=t.keyCode||t.which;if(9!=o){if(!(!e.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||m(t.target).is("input,textarea,video,audio,select")))return 8===o||27===o?(t.preventDefault(),void n.close(t)):37===o||38===o?(t.preventDefault(),void n.previous()):39===o||40===o?(t.preventDefault(),void n.next()):void n.trigger("afterKeydown",t,o)}else e.opts.trapFocus&&n.focus(t)}),n.group[n.currIndex].opts.idleTime&&(n.idleSecondsCounter=0,s.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){n.idleSecondsCounter=0,n.isIdle&&n.showControls(),n.isIdle=!1}),n.idleInterval=l.setInterval(function(){n.idleSecondsCounter++,n.idleSecondsCounter>=n.group[n.currIndex].opts.idleTime&&!n.isDragging&&(n.isIdle=!0,n.idleSecondsCounter=0,n.hideControls())},1e3))},removeEvents:function(){a.off("orientationchange.fb resize.fb"),s.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleInterval&&(l.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,n){var e,o,a,i,s,r,l,c,d,u=this,p=u.group.length;if(!(u.isDragging||u.isClosing||u.isAnimating&&u.firstRun)){if(t=parseInt(t,10),!(a=u.current?u.current.opts.loop:u.opts.loop)&&(t<0||p<=t))return!1;if(e=u.firstRun=!Object.keys(u.slides).length,s=u.current,u.prevIndex=u.currIndex,u.prevPos=u.currPos,i=u.createSlide(t),1<p&&((a||i.index<p-1)&&u.createSlide(t+1),(a||0<i.index)&&u.createSlide(t-1)),u.current=i,u.currIndex=i.index,u.currPos=i.pos,u.trigger("beforeShow",e),u.updateControls(),i.forcedDuration=g,m.isNumeric(n)?i.forcedDuration=n:n=i.opts[e?"animationDuration":"transitionDuration"],n=parseInt(n,10),o=u.isMoved(i),i.$slide.addClass("modula-fancybox-slide--current"),e)return i.opts.animationEffect&&n&&u.$refs.container.css("transition-duration",n+"ms"),u.$refs.container.addClass("modula-fancybox-is-open").trigger("focus"),u.loadSlide(i),void u.preload("image");r=m.modulaFancybox.getTranslate(s.$slide),l=m.modulaFancybox.getTranslate(u.$refs.stage),m.each(u.slides,function(t,e){m.modulaFancybox.stop(e.$slide,!0)}),s.pos!==i.pos&&(s.isComplete=!1),s.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--current"),o?(d=r.left-(s.pos*r.width+s.pos*s.opts.gutter),m.each(u.slides,function(t,e){e.$slide.removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)modula-fancybox-fx-\S+/g)||[]).join(" ")});var o=e.pos*r.width+e.pos*e.opts.gutter;m.modulaFancybox.setTranslate(e.$slide,{top:0,left:o-l.left+d}),e.pos!==i.pos&&e.$slide.addClass("modula-fancybox-slide--"+(e.pos>i.pos?"next":"previous")),h(e.$slide),m.modulaFancybox.animate(e.$slide,{top:0,left:(e.pos-i.pos)*r.width+(e.pos-i.pos)*e.opts.gutter},n,function(){e.$slide.css({transform:"",opacity:""}).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous"),e.pos===u.currPos&&u.complete()})})):n&&i.opts.transitionEffect&&(c="modula-fancybox-animated modula-fancybox-fx-"+i.opts.transitionEffect,s.$slide.addClass("modula-fancybox-slide--"+(s.pos>i.pos?"next":"previous")),m.modulaFancybox.animate(s.$slide,c,n,function(){s.$slide.removeClass(c).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous")},!1)),i.isLoaded?u.revealContent(i):u.loadSlide(i),u.preload("image")}},createSlide:function(t){var e,o=this,n=t%o.group.length;return n=n<0?o.group.length+n:n,!o.slides[t]&&o.group[n]&&(e=m('<div class="modula-fancybox-slide"></div>').appendTo(o.$refs.stage),o.slides[t]=m.extend(!0,{},o.group[n],{pos:t,$slide:e,isLoaded:!1}),o.updateSlide(o.slides[t])),o.slides[t]},scaleToActual:function(t,e,o){var n,a,i,s,r,l=this,c=l.current,d=c.$content,u=m.modulaFancybox.getTranslate(c.$slide).width,p=m.modulaFancybox.getTranslate(c.$slide).height,h=c.width,f=c.height;l.isAnimating||l.isMoved()||!d||"image"!=c.type||!c.isLoaded||c.hasError||(l.isAnimating=!0,m.modulaFancybox.stop(d),t=t===g?.5*u:t,e=e===g?.5*p:e,(n=m.modulaFancybox.getTranslate(d)).top-=m.modulaFancybox.getTranslate(c.$slide).top,n.left-=m.modulaFancybox.getTranslate(c.$slide).left,s=h/n.width,r=f/n.height,a=.5*u-.5*h,i=.5*p-.5*f,u<h&&(0<(a=n.left*s-(t*s-t))&&(a=0),a<u-h&&(a=u-h)),p<f&&(0<(i=n.top*r-(e*r-e))&&(i=0),i<p-f&&(i=p-f)),l.updateCursor(h,f),m.modulaFancybox.animate(d,{top:i,left:a,scaleX:s,scaleY:r},o||366,function(){l.isAnimating=!1}),l.SlideShow&&l.SlideShow.isActive&&l.SlideShow.stop())},scaleToFit:function(t){var e,o=this,n=o.current,a=n.$content;o.isAnimating||o.isMoved()||!a||"image"!=n.type||!n.isLoaded||n.hasError||(o.isAnimating=!0,m.modulaFancybox.stop(a),e=o.getFitPos(n),o.updateCursor(e.width,e.height),m.modulaFancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||366,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,n,a,i=t.$content,s=t.$slide,r=t.width||t.opts.width,l=t.height||t.opts.height,c={};return!!(t.isLoaded&&i&&i.length)&&(e=m.modulaFancybox.getTranslate(this.$refs.stage).width,o=m.modulaFancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(s.css("paddingLeft"))+parseFloat(s.css("paddingRight"))+parseFloat(i.css("marginLeft"))+parseFloat(i.css("marginRight")),o-=parseFloat(s.css("paddingTop"))+parseFloat(s.css("paddingBottom"))+parseFloat(i.css("marginTop"))+parseFloat(i.css("marginBottom")),r&&l||(r=e,l=o),e-.5<(r*=n=Math.min(1,e/r,o/l))&&(r=e),o-.5<(l*=n)&&(l=o),"image"===t.type?(c.top=Math.floor(.5*(o-l))+parseFloat(s.css("paddingTop")),c.left=Math.floor(.5*(e-r))+parseFloat(s.css("paddingLeft"))):"video"===t.contentType&&(r/(a=t.opts.width&&t.opts.height?r/l:t.opts.ratio||16/9)<l?l=r/a:l*a<r&&(r=l*a)),c.width=r,c.height=l,c)},update:function(o){var n=this;m.each(n.slides,function(t,e){n.updateSlide(e,o)})},updateSlide:function(t,e){var o=this,n=t&&t.$content,a=t.width||t.opts.width,i=t.height||t.opts.height,s=t.$slide;o.adjustCaption(t),n&&(a||i||"video"===t.contentType)&&!t.hasError&&(m.modulaFancybox.stop(n),m.modulaFancybox.setTranslate(n,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),s.length&&(s.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".modula-fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",s.get(0).scrollHeight>s.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,n=o.$slide;!e.isClosing&&o&&(n.siblings().css({transform:"",opacity:""}),n.parent().children().removeClass("modula-fancybox-slide--previous modula-fancybox-slide--next"),m.modulaFancybox.animate(n,{top:0,left:0,opacity:1},t===g?0:t,function(){n.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o,n=t||this.current;return!!n&&(o=m.modulaFancybox.getTranslate(this.$refs.stage),e=m.modulaFancybox.getTranslate(n.$slide),!n.$slide.hasClass("modula-fancybox-animated")&&(.5<Math.abs(e.top-o.top)||.5<Math.abs(e.left-o.left)))},updateCursor:function(t,e){var o,n,a=this,i=a.current,s=a.$refs.container;i&&!a.isClosing&&a.Guestures&&(s.removeClass("modula-fancybox-is-zoomable modula-fancybox-can-zoomIn modula-fancybox-can-zoomOut modula-fancybox-can-swipe modula-fancybox-can-pan"),n=!!(o=a.canPan(t,e))||a.isZoomable(),s.toggleClass("modula-fancybox-is-zoomable",n),m("[data-fancybox-zoom]").prop("disabled",!n),o?s.addClass("modula-fancybox-can-pan"):n&&("zoom"===i.opts.clickContent||m.isFunction(i.opts.clickContent)&&"zoom"==i.opts.clickContent(i))?s.addClass("modula-fancybox-can-zoomIn"):i.opts.touch&&(i.opts.touch.vertical||1<a.group.length)&&"video"!==i.contentType&&s.addClass("modula-fancybox-can-swipe"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing&&"image"===e.type&&!e.hasError){if(!e.isLoaded)return!0;if((t=this.getFitPos(e))&&(e.width>t.width||e.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=!1,n=this.current,a=n.$content;return t!==g&&e!==g?o=t<n.width&&e<n.height:a&&(o=(o=m.modulaFancybox.getTranslate(a)).width<n.width&&o.height<n.height),o},canPan:function(t,e){var o=this.current,n=null,a=!1;return"image"===o.type&&(o.isComplete||t&&e)&&!o.hasError&&(a=this.getFitPos(o),t!==g&&e!==g?n={width:t,height:e}:o.isComplete&&(n=m.modulaFancybox.getTranslate(o.$content)),n&&a&&(a=1.5<Math.abs(n.width-a.width)||1.5<Math.abs(n.height-a.height))),a},loadSlide:function(o){var t,e,n,a=this;if(!o.isLoading&&!o.isLoaded){if(!(o.isLoading=!0)===a.trigger("beforeLoad",o))return o.isLoading=!1;switch(t=o.type,(e=o.$slide).off("refresh").trigger("onReset").addClass(o.opts.slideClass),t){case"image":a.setImage(o);break;case"iframe":a.setIframe(o);break;case"html":a.setContent(o,o.src||o.content);break;case"video":a.setContent(o,o.opts.video.tpl.replace(/\{\{src\}\}/gi,o.src).replace("{{format}}",o.opts.videoFormat||o.opts.video.format||"").replace("{{poster}}",o.thumb||""));break;case"inline":m(o.src).length?a.setContent(o,m(o.src)):a.setError(o);break;case"ajax":a.showLoading(o),n=m.ajax(m.extend({},o.opts.ajax.settings,{url:o.src,success:function(t,e){"success"===e&&a.setContent(o,t)},error:function(t,e){t&&"abort"!==e&&a.setError(o)}})),e.one("onReset",function(){n.abort()});break;default:a.setError(o)}return!0}},setImage:function(e){var t,o=this;setTimeout(function(){var t=e.$image;o.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||o.showLoading(e)},50),o.checkSrcset(e),e.$content=m('<div class="modula-fancybox-content"></div>').addClass("modula-fancybox-is-hidden").appendTo(e.$slide.addClass("modula-fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(t=u.createElement("img")).onerror=function(){m(this).remove(),e.$ghost=null},t.onload=function(){o.afterLoad(e)},e.$ghost=m(t).addClass("modula-fancybox-image").appendTo(e.$content).attr("src",e.thumb),"undifined"!=typeof e.src&&e.$ghost.attr("alt",e.alt)),o.setBigImage(e)},checkSrcset:function(t){var e,o,n,a,i=t.opts.srcset||t.opts.image.srcset;if(i){n=l.devicePixelRatio||1,a=l.innerWidth*n,(o=i.split(",").map(function(t){var n={};return t.trim().split(/\s+/).forEach(function(t,e){var o=parseInt(t.substring(0,t.length-1),10);if(0===e)return n.url=t;o&&(n.value=o,n.postfix=t[t.length-1])}),n})).sort(function(t,e){return t.value-e.value});for(var s=0;s<o.length;s++){var r=o[s];if("w"===r.postfix&&r.value>=a||"x"===r.postfix&&r.value>=n){e=r;break}}!e&&o.length&&(e=o[o.length-1]),e&&(t.src=e.url,t.width&&t.height&&"w"==e.postfix&&(t.height=t.width/t.height*e.value,t.width=e.value),t.opts.srcset=i)}},setBigImage:function(e){var o=this,t=u.createElement("img"),n=m(t);e.$image=n.one("error",function(){o.setError(e)}).one("load",function(){var t;e.$ghost||(o.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),o.afterLoad(e)),o.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(1<e.width/e.height&&1<a.width()/a.height()?"100":Math.round(e.width/e.height*100))+"vw"),n.attr("sizes",t).attr("srcset",e.opts.srcset)),e.opts.alt&&n.attr("alt",e.opts.alt),e.opts.image_id&&n.attr("image-id",e.opts.image_id),e.$ghost&&setTimeout(function(){e.$ghost&&!o.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),o.hideLoading(e))}).addClass("modula-fancybox-image").attr("src",e.src).appendTo(e.$content),(t.complete||"complete"==t.readyState)&&n.naturalWidth&&n.naturalHeight?n.trigger("load"):t.error&&n.trigger("error")},resolveImageSlideSize:function(t,e,o){var n=parseInt(t.opts.width,10),a=parseInt(t.opts.height,10);t.width=e,t.height=o,0<n&&(t.width=n,t.height=Math.floor(n*o/e)),0<a&&(t.width=Math.floor(a*e/o),t.height=a)},setIframe:function(a){var i,e=this,s=a.opts.iframe,r=a.$slide;a.$content=m('<div class="modula-fancybox-content'+(s.preload?" modula-fancybox-is-hidden":"")+'"></div>').css(s.css).appendTo(r),r.addClass("modula-fancybox-slide--"+a.contentType),a.$iframe=i=m(s.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(s.attr).appendTo(a.$content),s.preload?(e.showLoading(a),i.on("load.fb error.fb",function(t){this.isReady=1,a.$slide.trigger("refresh"),e.afterLoad(a)}),r.on("refresh.fb",function(){var t,e=a.$content,o=s.css.width,n=s.css.height;if(1===i[0].isReady){try{t=i.contents().find("body")}catch(t){}t&&t.length&&t.children().length&&(r.css("overflow","visible"),e.css({width:"100%","max-width":"100%",height:"9999px"}),o===g&&(o=Math.ceil(Math.max(t[0].clientWidth,t.outerWidth(!0)))),e.css("width",o||"").css("max-width",""),n===g&&(n=Math.ceil(Math.max(t[0].clientHeight,t.outerHeight(!0)))),e.css("height",n||""),r.css("overflow","auto")),e.removeClass("modula-fancybox-is-hidden")}})):e.afterLoad(a),i.attr("src",a.src),r.one("onReset",function(){try{m(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}m(this).off("refresh.fb").empty(),a.isLoaded=!1,a.isRevealed=!1})},setContent:function(t,e){var o;this.isClosing||(this.hideLoading(t),t.$content&&m.modulaFancybox.stop(t.$content),t.$slide.empty(),(o=e)&&o.hasOwnProperty&&o instanceof m&&e.parent().length?((e.hasClass("modula-fancybox-content")||e.parent().hasClass("modula-fancybox-content"))&&e.parents(".modula-fancybox-slide").trigger("onReset"),t.$placeholder=m("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===m.type(e)&&(e=m("<div>").append(m.trim(e)).contents()),t.opts.filter&&(e=m("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){m(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("modula-fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(m(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),m(e).appendTo(t.$slide),m(e).is("video,audio")&&(m(e).addClass("modula-fancybox-video"),m(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||m(e).attr("width"),t.opts.height=t.opts.height||m(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.modula-fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("modula-fancybox-content"),t.$slide.addClass("modula-fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("modula-fancybox-slide--"+t.contentType).addClass("modula-fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=m(this.translate(this,this.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=m(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&m('<div class="modula-fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,o=this,n=t||o.current,a=n.opts.caption,i=n.opts.preventCaptionOverlap,s=o.$refs.caption,r=!1;s.toggleClass("modula-fancybox-caption--separate",i),i&&a&&a.length&&(n.pos!==o.currPos?((e=s.clone().appendTo(s.parent())).children().eq(0).empty().html(a),r=e.outerHeight(!0),e.empty().remove()):o.$caption&&(r=o.$caption.outerHeight(!0)),n.$slide.css("padding-bottom",r||""))},adjustLayout:function(t){var e,o,n,a,i=t||this.current;i.isLoaded&&!0!==i.opts.disableLayoutFix&&(i.$content.css("margin-bottom",""),i.$content.outerHeight()>i.$slide.height()+.5&&(n=i.$slide[0].style["padding-bottom"],a=i.$slide.css("padding-bottom"),0<parseFloat(a)&&(e=i.$slide[0].scrollHeight,i.$slide.css("padding-bottom",0),Math.abs(e-i.$slide[0].scrollHeight)<1&&(o=a),i.$slide.css("padding-bottom",n))),i.$content.css("margin-bottom",o))},revealContent:function(t){var e,o,n,a,i=this,s=t.$slide,r=!1,l=!1,c=i.isMoved(t),d=t.isRevealed;return t.isRevealed=!0,e=t.opts[i.firstRun?"animationEffect":"transitionEffect"],n=t.opts[i.firstRun?"animationDuration":"transitionDuration"],n=parseInt(t.forcedDuration===g?n:t.forcedDuration,10),!c&&t.pos===i.currPos&&n||(e=!1),"zoom"===e&&(t.pos===i.currPos&&n&&"image"===t.type&&!t.hasError&&(l=i.getThumbPos(t))?r=i.getFitPos(t):e="fade"),"zoom"===e?(i.isAnimating=!0,r.scaleX=r.width/l.width,r.scaleY=r.height/l.height,"auto"==(a=t.opts.zoomOpacity)&&(a=.1<Math.abs(t.width/t.height-l.width/l.height)),a&&(l.opacity=.1,r.opacity=1),m.modulaFancybox.setTranslate(t.$content.removeClass("modula-fancybox-is-hidden"),l),h(t.$content),void m.modulaFancybox.animate(t.$content,r,n,function(){i.isAnimating=!1,i.complete()})):(i.updateSlide(t),e?(m.modulaFancybox.stop(s),o="modula-fancybox-slide--"+(t.pos>=i.prevPos?"next":"previous")+" modula-fancybox-animated modula-fancybox-fx-"+e,s.addClass(o).removeClass("modula-fancybox-slide--current"),t.$content.removeClass("modula-fancybox-is-hidden"),h(s),"image"!==t.type&&t.$content.hide().show(0),void m.modulaFancybox.animate(s,"modula-fancybox-slide--current",n,function(){s.removeClass(o).css({transform:"",opacity:""}),t.pos===i.currPos&&i.complete()},!0)):(t.$content.removeClass("modula-fancybox-is-hidden"),d||!c||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===i.currPos&&i.complete())))},getThumbPos:function(t){var e,o,n,a,i,s,r,l,c,d=t.$thumb;return!!(d&&(c=d.find("a.tile-inner")[0])&&c.ownerDocument===u&&(m(".modula-fancybox-container").css("pointer-events","none"),r={x:c.getBoundingClientRect().left+c.offsetWidth/2,y:c.getBoundingClientRect().top+c.offsetHeight/2},console.log(u.elementFromPoint(r.x,r.y)===c),l=u.elementFromPoint(r.x,r.y)===c,m(".modula-fancybox-container").css("pointer-events",""),l))&&(o=m.modulaFancybox.getTranslate(d),n=parseFloat(d.css("border-top-width")||0),a=parseFloat(d.css("border-right-width")||0),i=parseFloat(d.css("border-bottom-width")||0),s=parseFloat(d.css("border-left-width")||0),e={top:o.top+n,left:o.left+s,width:o.width-a-s,height:o.height-n-i,scaleX:1,scaleY:1},0<o.width&&0<o.height&&e)},complete:function(){var t,o=this,e=o.current,n={};!o.isMoved()&&e.isLoaded&&(e.isComplete||(e.isComplete=!0,e.$slide.siblings().trigger("onReset"),o.preload("inline"),h(e.$slide),e.$slide.addClass("modula-fancybox-slide--complete"),m.each(o.slides,function(t,e){e.pos>=o.currPos-1&&e.pos<=o.currPos+1?n[e.pos]=e:e&&(m.modulaFancybox.stop(e.$slide),e.$slide.off().remove())}),o.slides=n),o.isAnimating=!1,o.updateCursor(),o.trigger("afterShow"),e.opts.video.autoStart&&e.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),o.next()}),e.opts.autoFocus&&"html"===e.contentType&&((t=e.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):o.focus(null,!0)),e.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,o,n=this;n.group.length<2||(o=n.slides[n.currPos+1],(e=n.slides[n.currPos-1])&&e.type===t&&n.loadSlide(e),o&&o.type===t&&n.loadSlide(o))},focus:function(t,e){var o,n,a=this,i=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");a.isClosing||((o=(o=!t&&a.current&&a.current.isComplete?a.current.$slide.find("*:visible"+(e?":not(.modula-fancybox-close-small)":"")):a.$refs.container.find("*:visible")).filter(i).filter(function(){return"hidden"!==m(this).css("visibility")&&!m(this).hasClass("disabled")})).length?(n=o.index(u.activeElement),t&&t.shiftKey?(n<0||0==n)&&(t.preventDefault(),o.eq(o.length-1).trigger("focus")):(n<0||n==o.length-1)&&(t&&t.preventDefault(),o.eq(0).trigger("focus"))):a.$refs.container.trigger("focus"))},activate:function(){var e=this;m(".modula-fancybox-container").each(function(){var t=m(this).data("modulaFancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(t,e){function o(){d.cleanUp(t)}var n,a,i,s,r,l,c,d=this,u=d.current;return!d.isClosing&&(!(d.isClosing=!0)===d.trigger("beforeClose",t)?(d.isClosing=!1,p(function(){d.update()}),!1):(d.removeEvents(),i=u.$content,n=u.opts.animationEffect,a=m.isNumeric(e)?e:n?u.opts.animationDuration:0,u.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--next modula-fancybox-slide--previous modula-fancybox-animated"),!0!==t?m.modulaFancybox.stop(u.$slide):n=!1,u.$slide.siblings().trigger("onReset").remove(),a&&d.$refs.container.removeClass("modula-fancybox-is-open").addClass("modula-fancybox-is-closing").css("transition-duration",a+"ms"),d.hideLoading(u),d.hideControls(!0),d.updateCursor(),"zoom"!==n||i&&a&&"image"===u.type&&!d.isMoved()&&!u.hasError&&(c=d.getThumbPos(u))||(n="fade"),"zoom"===n?(m.modulaFancybox.stop(i),l={top:(s=m.modulaFancybox.getTranslate(i)).top,left:s.left,scaleX:s.width/c.width,scaleY:s.height/c.height,width:c.width,height:c.height},"auto"==(r=u.opts.zoomOpacity)&&(r=.1<Math.abs(u.width/u.height-c.width/c.height)),r&&(c.opacity=0),m.modulaFancybox.setTranslate(i,l),h(i),m.modulaFancybox.animate(i,c,a,o)):n&&a?m.modulaFancybox.animate(u.$slide.addClass("modula-fancybox-slide--previous").removeClass("modula-fancybox-slide--current"),"modula-fancybox-animated modula-fancybox-fx-"+n,a,o):!0===t?setTimeout(o,a):o(),!0))},cleanUp:function(t){var e,o,n,a=this,i=a.current.opts.$orig;a.current.$slide.trigger("onReset"),a.$refs.container.empty().remove(),a.trigger("afterClose",t),a.current.opts.backFocus&&(i&&i.length&&i.is(":visible")||(i=a.$trigger),i&&i.length&&(o=l.scrollX,n=l.scrollY,i.trigger("focus"),m("html, body").scrollTop(n).scrollLeft(o))),a.current=null,(e=m.modulaFancybox.getInstance())?e.activate():(m("body").removeClass("modula-fancybox-active compensate-for-scrollbar"),m("#modula-fancybox-style-noscroll").remove())},trigger:function(t,e){var o,n=Array.prototype.slice.call(arguments,1),a=this,i=e&&e.opts?e:a.current;if(i?n.unshift(i):i=a,n.unshift(a),m.isFunction(i.opts[t])&&(o=i.opts[t].apply(i,n)),!1===o)return o;"afterClose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",n):s.trigger(t+".fb",n)},updateControls:function(){var t=this,e=t.current,o=e.index,n=t.$refs.container,a=t.$refs.caption,i=e.opts.caption;e.$slide.trigger("refresh"),i&&i.length?(t.$caption=a).children().eq(0).html(i):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),n.find("[data-fancybox-count]").html(t.group.length),n.find("[data-fancybox-index]").html(o+1),n.find("[data-fancybox-prev]").prop("disabled",!e.opts.loop&&o<=0),n.find("[data-fancybox-next]").prop("disabled",!e.opts.loop&&o>=t.group.length-1),"image"===e.type?n.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",e.opts.image.src||e.src).show():e.opts.toolbar&&n.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),m(u.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map(function(t){return"modula-fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,o=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,o.toggleClass("modula-fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("modula-fancybox-show-infobar",!!(e.infobar&&1<t.group.length)).toggleClass("modula-fancybox-show-caption",!!t.$caption).toggleClass("modula-fancybox-show-nav",!!(e.arrows&&1<t.group.length)).toggleClass("modula-fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),m.modulaFancybox={version:"3.5.7",defaults:t,getInstance:function(t){var e=m('.modula-fancybox-container:not(".modula-fancybox-is-closing"):last').data("modulaFancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof n&&("string"===m.type(t)?e[t].apply(e,o):"function"===m.type(t)&&t.apply(e,o),e)},open:function(t,e,o){return new n(t,e,o)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),s.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(o=u.createElement("div"),l.getComputedStyle&&l.getComputedStyle(o)&&l.getComputedStyle(o).getPropertyValue("transform")&&!(u.documentMode&&u.documentMode<11)),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var o="",n={};if(t&&e)return e.left===g&&e.top===g||(o=(e.left===g?t.position().left:e.left)+"px, "+(e.top===g?t.position().top:e.top)+"px",o=this.use3d?"translate3d("+o+", 0px)":"translate("+o+")"),e.scaleX!==g&&e.scaleY!==g?o+=" scale("+e.scaleX+", "+e.scaleY+")":e.scaleX!==g&&(o+=" scaleX("+e.scaleX+")"),o.length&&(n.transform=o),e.opacity!==g&&(n.opacity=e.opacity),e.width!==g&&(n.width=e.width),e.height!==g&&(n.height=e.height),t.css(n)},animate:function(e,o,n,a,i){var s,r=this;m.isFunction(n)&&(a=n,n=null),r.stop(e),s=r.getTranslate(e),e.on(c,function(t){t&&t.originalEvent&&(!e.is(t.originalEvent.target)||"z-index"==t.originalEvent.propertyName)||(r.stop(e),m.isNumeric(n)&&e.css("transition-duration",""),m.isPlainObject(o)?o.scaleX!==g&&o.scaleY!==g&&r.setTranslate(e,{top:o.top,left:o.left,width:s.width*o.scaleX,height:s.height*o.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(o),m.isFunction(a)&&a(t))}),m.isNumeric(n)&&e.css("transition-duration",n+"ms"),m.isPlainObject(o)?(o.scaleX!==g&&o.scaleY!==g&&(delete o.width,delete o.height,e.parent().hasClass("modula-fancybox-slide--image")&&e.parent().addClass("modula-fancybox-is-scaling")),m.modulaFancybox.setTranslate(e,o)):e.addClass(o),e.data("timer",setTimeout(function(){e.trigger(c)},n+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(c),t.off(c).css("transition-duration",""),t.parent().removeClass("modula-fancybox-is-scaling"))}},m.fn.modulaFancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?m("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},y):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},y),this},s.on("click.fb-start","[data-fancybox]",y),s.on("click.fb-start","[data-fancybox-trigger]",function(t){m('[data-fancybox="'+m(this).attr("data-fancybox-trigger")+'"]').eq(m(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:m(this)})}),r=".modula-fancybox-button",f="modula-fancybox-focus",b=null,s.on("mousedown mouseup focus blur",r,function(t){switch(t.type){case"mousedown":b=m(this);break;case"mouseup":b=null;break;case"focusin":m(r).removeClass(f),m(this).is(b)||m(this).is("[disabled]")||m(this).addClass(f);break;case"focusout":m(r).removeClass(f)}})))}(window,document,jQuery),function(h){"use strict";function f(o,t,e){if(o)return e=e||"","object"===h.type(e)&&(e=h.param(e,!0)),h.each(t,function(t,e){o=o.replace("$"+t,e||"")}),e.length&&(o+=(0<o.indexOf("?")?"&":"?")+e),o}var n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&0<t[12].indexOf("layer=c")?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};h(document).on("objectNeedsType.fb",function(t,e,a){var i,s,r,l,c,d,u=a.src||"",p=!1,o=h.extend(!0,{},n,a.opts.media);h.each(o,function(t,e){if(s=u.match(e.matcher)){if(p=e.type,d=t,c={},e.paramPlace&&s[e.paramPlace]){"?"==(l=s[e.paramPlace])[0]&&(l=l.substring(1)),l=l.split("&");for(var o=0;o<l.length;++o){var n=l[o].split("=",2);2==n.length&&(c[n[0]]=decodeURIComponent(n[1].replace(/\+/g," ")))}}return r=h.extend(!0,{},e.params,a.opts[t],c),u="function"===h.type(e.url)?e.url.call(this,s,r,a):f(e.url,s,r),i="function"===h.type(e.thumb)?e.thumb.call(this,s,r,a):f(e.thumb,s),"youtube"===t?u=u.replace(/&t=(\d+)/,function(t,e){return"&start="+e}):"vimeo"===t&&(u=u.replace("&%23","#")),!1}}),p?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=i),"iframe"===p&&(a.opts=h.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),h.extend(a,{type:p,src:u,origSrc:a.src,contentSource:d,contentType:"image"===p?"image":"gmap_place"==d||"gmap_search"==d?"map":"video"})):u&&(a.type=a.opts.defaultType)});var a={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,o=this;this[t].loaded?setTimeout(function(){o.done(t)}):this[t].loading||(this[t].loading=!0,(e=document.createElement("script")).type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){o[t].loaded=!0,o.done(t)}:e.onload=function(){o[t].loaded=!0,o.done(t)},document.body.appendChild(e))},done:function(t){var e,o;"youtube"===t&&delete window.onYouTubeIframeAPIReady,(e=h.modulaFancybox.getInstance())&&(o=e.current.$content.find("iframe"),"youtube"===t&&void 0!==YT&&YT?new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&e.next()}}}):"vimeo"===t&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(o).on("ended",function(){e.next()}))}};h(document).on({"afterShow.fb":function(t,e,o){1<e.group.length&&("youtube"===o.contentSource||"vimeo"===o.contentSource)&&a.load(o.contentSource)}})}(jQuery),function(m,l,g){"use strict";function d(t){var e=[];for(var o in t=(t=t.originalEvent||t||m.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[o].pageX?e.push({x:t[o].pageX,y:t[o].pageY}):t[o].clientX&&e.push({x:t[o].clientX,y:t[o].clientY});return e}function b(t,e,o){return e&&t?"x"===o?t.x-e.x:"y"===o?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function c(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||g.isFunction(t.get(0).onclick)||t.data("selectable"))return 1;for(var e=0,o=t[0].attributes,n=o.length;e<n;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return 1}function u(t){for(var e,o,n,a,i,s=!1;e=t.get(0),0,o=m.getComputedStyle(e)["overflow-y"],n=m.getComputedStyle(e)["overflow-x"],a=("scroll"===o||"auto"===o)&&e.scrollHeight>e.clientHeight,i=("scroll"===n||"auto"===n)&&e.scrollWidth>e.clientWidth,!(s=a||i)&&(t=t.parent()).length&&!t.hasClass("modula-fancybox-stage")&&!t.is("body"););return s}function o(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",g.proxy(e,"ontouchstart"))}var y=m.requestAnimationFrame||m.webkitRequestAnimationFrame||m.mozRequestAnimationFrame||m.oRequestAnimationFrame||function(t){return m.setTimeout(t,1e3/60)},v=m.cancelAnimationFrame||m.webkitCancelAnimationFrame||m.mozCancelAnimationFrame||m.oCancelAnimationFrame||function(t){m.clearTimeout(t)};o.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),g(l).off(".fb.touch"),t.requestId&&(v(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},o.prototype.ontouchstart=function(t){var e=this,o=g(t.target),n=e.instance,a=n.current,i=a.$slide,s=a.$content,r="touchstart"==t.type;if(r&&e.$container.off("mousedown.fb.touch"),(!t.originalEvent||2!=t.originalEvent.button)&&i.length&&o.length&&!c(o)&&!c(o.parent())&&(o.is("img")||!(t.originalEvent.clientX>o[0].clientWidth+o.offset().left))){if(!a||n.isAnimating||a.$slide.hasClass("modula-fancybox-animated"))return t.stopPropagation(),void t.preventDefault();e.realPoints=e.startPoints=d(t),e.startPoints.length&&(a.touch&&t.stopPropagation(),e.startEvent=t,e.canTap=!0,e.$target=o,e.$content=s,e.opts=a.opts.touch,e.isPanning=!1,e.isSwiping=!1,e.isZooming=!1,e.isScrolling=!1,e.canPan=n.canPan(),e.startTime=(new Date).getTime(),e.distanceX=e.distanceY=e.distance=0,e.canvasWidth=Math.round(i[0].clientWidth),e.canvasHeight=Math.round(i[0].clientHeight),e.contentLastPos=null,e.contentStartPos=g.modulaFancybox.getTranslate(e.$content)||{top:0,left:0},e.sliderStartPos=g.modulaFancybox.getTranslate(i),e.stagePos=g.modulaFancybox.getTranslate(n.$refs.stage),e.sliderStartPos.top-=e.stagePos.top,e.sliderStartPos.left-=e.stagePos.left,e.contentStartPos.top-=e.stagePos.top,e.contentStartPos.left-=e.stagePos.left,g(l).off(".fb.touch").on(r?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",g.proxy(e,"ontouchend")).on(r?"touchmove.fb.touch":"mousemove.fb.touch",g.proxy(e,"ontouchmove")),g.modulaFancybox.isMobile&&l.addEventListener("scroll",e.onscroll,!0),((e.opts||e.canPan)&&(o.is(e.$stage)||e.$stage.find(o).length)||(o.is(".modula-fancybox-image")&&t.preventDefault(),g.modulaFancybox.isMobile&&o.parents(".modula-fancybox-caption").length))&&(e.isScrollable=u(o)||u(o.parent()),g.modulaFancybox.isMobile&&e.isScrollable||t.preventDefault(),1!==e.startPoints.length&&!a.hasError||(e.canPan?(g.modulaFancybox.stop(e.$content),e.isPanning=!0):e.isSwiping=!0,e.$container.addClass("modula-fancybox-is-grabbing")),2===e.startPoints.length&&"image"===a.type&&(a.isLoaded||a.$ghost)&&(e.canTap=!1,e.isSwiping=!1,e.isPanning=!1,e.isZooming=!0,g.modulaFancybox.stop(e.$content),e.centerPointStartX=.5*(e.startPoints[0].x+e.startPoints[1].x)-g(m).scrollLeft(),e.centerPointStartY=.5*(e.startPoints[0].y+e.startPoints[1].y)-g(m).scrollTop(),e.percentageOfImageAtPinchPointX=(e.centerPointStartX-e.contentStartPos.left)/e.contentStartPos.width,e.percentageOfImageAtPinchPointY=(e.centerPointStartY-e.contentStartPos.top)/e.contentStartPos.height,e.startDistanceBetweenFingers=b(e.startPoints[0],e.startPoints[1]))))}},o.prototype.onscroll=function(t){this.isScrolling=!0,l.removeEventListener("scroll",this.onscroll,!0)},o.prototype.ontouchmove=function(t){var e=this;void 0===t.originalEvent.buttons||0!==t.originalEvent.buttons?e.isScrolling?e.canTap=!1:(e.newPoints=d(t),(e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=b(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=b(e.newPoints[0],e.startPoints[0],"y"),e.distance=b(e.newPoints[0],e.startPoints[0]),0<e.distance&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))):e.ontouchend(t)},o.prototype.onSwipe=function(t){var e,a=this,i=a.instance,o=a.isSwiping,n=a.sliderStartPos.left||0;if(!0!==o)"x"==o&&(0<a.distanceX&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?n+=Math.pow(a.distanceX,.8):a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?n-=Math.pow(-a.distanceX,.8):n+=a.distanceX),a.sliderLastPos={top:"x"==o?0:a.sliderStartPos.top+a.distanceY,left:n},a.requestId&&(v(a.requestId),a.requestId=null),a.requestId=y(function(){a.sliderLastPos&&(g.each(a.instance.slides,function(t,e){var o=e.pos-a.instance.currPos;g.modulaFancybox.setTranslate(e.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+o*a.canvasWidth+o*e.opts.gutter})}),a.$container.addClass("modula-fancybox-is-sliding"))});else if(10<Math.abs(a.distance)){if(a.canTap=!1,i.group.length<2&&a.opts.vertical?a.isSwiping="y":i.isDragging||!1===a.opts.vertical||"auto"===a.opts.vertical&&800<g(m).width()?a.isSwiping="x":(e=Math.abs(180*Math.atan2(a.distanceY,a.distanceX)/Math.PI),a.isSwiping=45<e&&e<135?"y":"x"),"y"===a.isSwiping&&g.modulaFancybox.isMobile&&a.isScrollable)return void(a.isScrolling=!0);i.isDragging=a.isSwiping,a.startPoints=a.newPoints,g.each(i.slides,function(t,e){var o,n;g.modulaFancybox.stop(e.$slide),o=g.modulaFancybox.getTranslate(e.$slide),n=g.modulaFancybox.getTranslate(i.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)modula-fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===i.current.pos&&(a.sliderStartPos.top=o.top-n.top,a.sliderStartPos.left=o.left-n.left),g.modulaFancybox.setTranslate(e.$slide,{top:o.top-n.top,left:o.left-n.left})}),i.SlideShow&&i.SlideShow.isActive&&i.SlideShow.stop()}},o.prototype.onPan=function(){var t=this;b(t.newPoints[0],t.realPoints[0])<(g.modulaFancybox.isMobile?10:5)?t.startPoints=t.newPoints:(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&v(t.requestId),t.requestId=y(function(){g.modulaFancybox.setTranslate(t.$content,t.contentLastPos)}))},o.prototype.limitMovement=function(){var t=this,e=t.canvasWidth,o=t.canvasHeight,n=t.distanceX,a=t.distanceY,i=t.contentStartPos,s=i.left,r=i.top,l=i.width,c=i.height,d=e<l?s+n:s,u=r+a,p=Math.max(0,.5*e-.5*l),h=Math.max(0,.5*o-.5*c),f=Math.min(e-l,.5*e-.5*l),m=Math.min(o-c,.5*o-.5*c);return 0<n&&p<d&&(d=p-1+Math.pow(-p+s+n,.8)||0),n<0&&d<f&&(d=f+1-Math.pow(f-s-n,.8)||0),0<a&&h<u&&(u=h-1+Math.pow(-h+r+a,.8)||0),a<0&&u<m&&(u=m+1-Math.pow(m-r-a,.8)||0),{top:u,left:d}},o.prototype.limitPosition=function(t,e,o,n){var a=this.canvasWidth,i=this.canvasHeight;return t=a<o?(t=0<t?0:t)<a-o?a-o:t:Math.max(0,a/2-o/2),{top:e=i<n?(e=0<e?0:e)<i-n?i-n:e:Math.max(0,i/2-n/2),left:t}},o.prototype.onZoom=function(){var t=this,e=t.contentStartPos,o=e.width,n=e.height,a=e.left,i=e.top,s=b(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,r=Math.floor(o*s),l=Math.floor(n*s),c=(o-r)*t.percentageOfImageAtPinchPointX,d=(n-l)*t.percentageOfImageAtPinchPointY,u=(t.newPoints[0].x+t.newPoints[1].x)/2-g(m).scrollLeft(),p=(t.newPoints[0].y+t.newPoints[1].y)/2-g(m).scrollTop(),h=u-t.centerPointStartX,f={top:i+(d+(p-t.centerPointStartY)),left:a+(c+h),scaleX:s,scaleY:s};t.canTap=!1,t.newWidth=r,t.newHeight=l,t.contentLastPos=f,t.requestId&&v(t.requestId),t.requestId=y(function(){g.modulaFancybox.setTranslate(t.$content,t.contentLastPos)})},o.prototype.ontouchend=function(t){var e=this,o=e.isSwiping,n=e.isPanning,a=e.isZooming,i=e.isScrolling;if(e.endPoints=d(t),e.dMs=Math.max((new Date).getTime()-e.startTime,1),e.$container.removeClass("modula-fancybox-is-grabbing"),g(l).off(".fb.touch"),l.removeEventListener("scroll",e.onscroll,!0),e.requestId&&(v(e.requestId),e.requestId=null),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.isScrolling=!1,e.instance.isDragging=!1,e.canTap)return e.onTap(t);e.speed=100,e.velocityX=e.distanceX/e.dMs*.5,e.velocityY=e.distanceY/e.dMs*.5,n?e.endPanning():a?e.endZooming():e.endSwiping(o,i)},o.prototype.endSwiping=function(t,e){var o=this,n=!1,a=o.instance.group.length,i=Math.abs(o.distanceX),s="x"==t&&1<a&&(130<o.dMs&&10<i||50<i);o.sliderLastPos=null,"y"==t&&!e&&50<Math.abs(o.distanceY)?(g.modulaFancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),n=o.instance.close(!0,250)):s&&0<o.distanceX?n=o.instance.previous(300):s&&o.distanceX<0&&(n=o.instance.next(300)),!1!==n||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("modula-fancybox-is-sliding")},o.prototype.endPanning=function(){var t,e,o,n=this;n.contentLastPos&&(e=!1===n.opts.momentum||350<n.dMs?(t=n.contentLastPos.left,n.contentLastPos.top):(t=n.contentLastPos.left+500*n.velocityX,n.contentLastPos.top+500*n.velocityY),(o=n.limitPosition(t,e,n.contentStartPos.width,n.contentStartPos.height)).width=n.contentStartPos.width,o.height=n.contentStartPos.height,g.modulaFancybox.animate(n.$content,o,366))},o.prototype.endZooming=function(){var t,e,o,n,a=this,i=a.instance.current,s=a.newWidth,r=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,n={top:e=a.contentLastPos.top,left:t,width:s,height:r,scaleX:1,scaleY:1},g.modulaFancybox.setTranslate(a.$content,n),s<a.canvasWidth&&r<a.canvasHeight?a.instance.scaleToFit(150):s>i.width||r>i.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,s,r),g.modulaFancybox.animate(a.$content,o,150)))},o.prototype.onTap=function(o){function t(t){var e=s.opts[t];if(g.isFunction(e)&&(e=e.apply(i,[s,o])),e)switch(e){case"close":i.close(n.startEvent);break;case"toggleControls":i.toggleControls();break;case"next":i.next();break;case"nextOrClose":1<i.group.length?i.next():i.close(n.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(i.canPan()?i.scaleToFit():i.isScaledDown()?i.scaleToActual(l,c):i.group.length<2&&i.close(n.startEvent))}}var e,n=this,a=g(o.target),i=n.instance,s=i.current,r=o&&d(o)||n.startPoints,l=r[0]?r[0].x-g(m).scrollLeft()-n.stagePos.left:0,c=r[0]?r[0].y-g(m).scrollTop()-n.stagePos.top:0;if((!o.originalEvent||2!=o.originalEvent.button)&&(a.is("img")||!(l>a[0].clientWidth+a.offset().left))){if(a.is(".modula-fancybox-bg,.modula-fancybox-inner,.modula-fancybox-outer,.modula-fancybox-container"))e="Outside";else if(a.is(".modula-fancybox-slide"))e="Slide";else{if(!i.current.$content||!i.current.$content.find(a).addBack().filter(a).length)return;e="Content"}if(n.tapped){if(clearTimeout(n.tapped),n.tapped=null,50<Math.abs(l-n.tapX)||50<Math.abs(c-n.tapY))return this;t("dblclick"+e)}else n.tapX=l,n.tapY=c,s.opts["dblclick"+e]&&s.opts["dblclick"+e]!==s.opts["click"+e]?n.tapped=setTimeout(function(){n.tapped=null,i.isAnimating||t("click"+e)},500):t("click"+e);return this}},g(l).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new o(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(s,r){"use strict";r.extend(!0,r.modulaFancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="modula-fancybox-button modula-fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});function o(t){this.instance=t,this.init()}r.extend(o.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,e=t.instance,o=e.group[e.currIndex].opts.slideShow;t.$button=e.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),e.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=r('<div class="modula-fancybox-progress"></div>').appendTo(e.$refs.inner))},set:function(t){var e=this,o=e.instance,n=o.current;n&&(!0===t||n.opts.loop||o.currIndex<o.group.length-1)?e.isActive&&"video"!==n.contentType&&(e.$progress&&r.modulaFancybox.animate(e.$progress.show(),{scaleX:1},n.opts.slideShow.speed),e.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},n.opts.slideShow.speed)):(e.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&this.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("modula-fancybox-button--play").addClass("modula-fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("modula-fancybox-button--pause").addClass("modula-fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){this.isActive?this.stop():this.start()}}),r(s).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new o(e))},"beforeShow.fb":function(t,e,o,n){var a=e&&e.SlideShow;n?a&&o.opts.slideShow.autoStart&&a.start():a&&a.isActive&&a.clear()},"afterShow.fb":function(t,e,o){var n=e&&e.SlideShow;n&&n.isActive&&n.set()},"afterKeydown.fb":function(t,e,o,n,a){var i=e&&e.SlideShow;!i||!o.opts.slideShow||80!==a&&32!==a||r(s.activeElement).is("button,a,input")||(n.preventDefault(),i.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var o=e&&e.SlideShow;o&&o.stop()}}),r(s).on("visibilitychange",function(){var t=r.modulaFancybox.getInstance(),e=t&&t.SlideShow;e&&e.isActive&&(s.hidden?e.clear():e.set())})}(document,jQuery),function(i,o){"use strict";var n,a=function(){for(var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],e={},o=0;o<t.length;o++){var n=t[o];if(n&&n[1]in i){for(var a=0;a<n.length;a++)e[t[0][a]]=n[a];return e}}return!1}();a&&(n={request:function(t){(t=t||i.documentElement)[a.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){i[a.exitFullscreen]()},toggle:function(t){t=t||i.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(i[a.fullscreenElement])},enabled:function(){return Boolean(i[a.fullscreenEnabled])}},o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="modula-fancybox-button modula-fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),o(i).on(a.fullscreenchange,function(){var t=n.isFullscreen(),e=o.modulaFancybox.getInstance();e&&(e.current&&"image"===e.current.type&&e.isAnimating&&(e.isAnimating=!1,e.update(!0,!0,0),e.isComplete||e.complete()),e.trigger("onFullscreenChange",t),e.$refs.container.toggleClass("modula-fancybox-is-fullscreen",t),e.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("modula-fancybox-button--fsenter",!t).toggleClass("modula-fancybox-button--fsexit",t))})),o(i).on({"onInit.fb":function(t,e){a?e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),n.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&n.request(),e.FullScreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,o,n,a){e&&e.FullScreen&&70===a&&(n.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("modula-fancybox-is-fullscreen")&&n.exit()}})}(document,jQuery),function(t,i){"use strict";var s="modula-fancybox-thumbs",r=s+"-active";i.modulaFancybox.defaults=i.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="modula-fancybox-button modula-fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"}},i.modulaFancybox.defaults);function n(t){this.init(t)}i.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,o=t.group,n=0;e.instance=t,e.opts=o[t.currIndex].opts.thumbs,(t.Thumbs=e).$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var a=0,i=o.length;a<i&&(o[a].thumb&&n++,!(1<n));a++);1<n&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var o,t=this,e=t.instance,n=t.opts.parentEl,a=[];t.$grid||(t.$grid=i('<div class="'+s+" "+s+"-"+t.opts.axis+'"></div>').appendTo(e.$refs.container.find(n).addBack().filter(n)),t.$grid.on("click","a",function(){e.jumpTo(i(this).attr("data-index"))})),t.$list||(t.$list=i('<div class="'+s+'__list">').appendTo(t.$grid)),i.each(e.group,function(t,e){(o=e.thumb)||"image"!==e.type||(o=e.src),a.push('<a href="javascript:;" tabindex="0" data-index="'+t+'"'+(o&&o.length?' style="background-image:url('+o+')"':'class="modula-fancybox-thumbs-missing"')+"></a>")}),t.$list[0].innerHTML=a.join(""),"x"===t.opts.axis&&t.$list.width(parseInt(t.$grid.css("padding-right"),10)+e.group.length*t.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,o,n=this,a=n.$list,i=n.$grid;n.instance.current&&(o=(e=a.children().removeClass(r).filter('[data-index="'+n.instance.current.index+'"]').addClass(r)).position(),"y"===n.opts.axis&&(o.top<0||o.top>a.height()-e.outerHeight())?a.stop().animate({scrollTop:a.scrollTop()+o.top},t):"x"===n.opts.axis&&(o.left<i.scrollLeft()||o.left>i.scrollLeft()+(i.width()-e.outerWidth()))&&a.parent().stop().animate({scrollLeft:o.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("modula-fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),i(t).on({"onInit.fb":function(t,e){var o;e&&!e.Thumbs&&(o=new n(e)).isActive&&!0===o.opts.autoStart&&o.show()},"beforeShow.fb":function(t,e,o,n){var a=e&&e.Thumbs;a&&a.isVisible&&a.focus(n?0:250)},"afterKeydown.fb":function(t,e,o,n,a){var i=e&&e.Thumbs;i&&i.isActive&&71===a&&(n.preventDefault(),i.toggle())},"beforeClose.fb":function(t,e){var o=e&&e.Thumbs;o&&o.isVisible&&!1!==o.opts.hideOnClose&&o.$grid.hide()}})}(document,jQuery),function(t,o){"use strict";o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="modula-fancybox-button modula-fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location}}}),o(t).on("click","[data-fancybox-share]",function(){var n,e,a=o.modulaFancybox.getInstance(),i=a.current||null,s="<div class='modula-fancybox-share'><h1>{{SHARE}}</h1><p>";i&&("function"===o.type(i.opts.share.url)&&(n=i.opts.share.url.apply(i,[a,i])),o.each(i.opts.modulaShare,function(t,e){var o=(i.opts.lightboxEmailMessage.length?i.opts.lightboxEmailMessage:"Here is the link to the image : %%image_link%% and this is the link to the gallery : %%gallery_link%%").replace(/\%%gallery_link%%/g,window.location.href).replace(/\%%image_link%%/g,i.src);s+=i.opts.shareBtnTpl[e].replace(/\{\{media\}\}/g,"image"===i.type?encodeURIComponent(i.src):"").replace(/\{\{modulaShareUrl\}\}/g,encodeURIComponent(n)).replace(/\{\{descr\}\}/g,a.$caption?encodeURIComponent(a.$caption.text()):"").replace(/\{\{subject\}\}/g,encodeURIComponent(i.opts.lightboxEmailSubject)).replace(/\{\{emailMessage\}\}/g,encodeURIComponent(o))}),s=(s+="</p><p><input class='modula-fancybox-share__input' type='text' value='{{url_raw}}' /></p></div>").replace(/\{\{url_raw\}\}/g,(e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},String(n).replace(/[&<>"'`=\/]/g,function(t){return e[t]}))),o.modulaFancybox.open({src:a.translate(a,s),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){a.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".modula-fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(i,s,a){"use strict";function o(){var t=i.location.hash.substr(1),e=t.split("-"),o=1<e.length&&/^\+?\d+$/.test(e[e.length-1])&&parseInt(e.pop(-1),10)||1;return{hash:t,index:o<1?1:o,gallery:e.join("-")}}function e(t){""!==t.gallery&&a("[data-fancybox='"+a.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function r(t){var e,o;return!!t&&(""!==(o=(e=t.current?t.current.opts:t.opts).hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&o)}a.escapeSelector||(a.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),a(function(){!1!==a.modulaFancybox.defaults.hash&&(a(s).on({"onInit.fb":function(t,e){!1!==e.group[e.currIndex].opts.hash&&(o(),r(e))},"beforeShow.fb":function(t,e,o,n){var a;o&&!1!==o.opts.hash&&(a=r(e))&&(e.currentHash=a+(1<e.group.length?"-"+o.opts.image_id:""),i.location.hash!=="#"+e.currentHash&&(n&&!e.origHash&&(e.origHash=i.location.hash),e.hashTimer&&clearTimeout(e.hashTimer),e.hashTimer=setTimeout(function(){"replaceState"in i.history?(i.history[n?"pushState":"replaceState"]({},s.title,i.location.pathname+i.location.search+"#"+e.currentHash),n&&(e.hasCreatedHistory=!0)):i.location.hash=e.currentHash,e.hashTimer=null},300)))},"beforeClose.fb":function(t,e,o){o&&!1!==o.opts.hash&&(clearTimeout(e.hashTimer),e.currentHash&&e.hasCreatedHistory?i.history.back():e.currentHash&&("replaceState"in i.history?i.history.replaceState({},s.title,i.location.pathname+i.location.search+(e.origHash||"")):i.location.hash=e.origHash),e.currentHash=null)}}),a(i).on("hashchange.fb",function(){var t=o(),n=null;a.each(a(".modula-fancybox-container").get().reverse(),function(t,e){var o=a(e).data("modulaFancyBox");if(o&&o.currentHash)return n=o,!1}),n?n.currentHash===t.gallery+"-"+t.index||1===t.index&&n.currentHash==t.gallery||(n.currentHash=null,n.close()):""!==t.gallery&&e(t)}),setTimeout(function(){a.modulaFancybox.getInstance()||e(o())},50))})}(window,document,jQuery),function(t,e){"use strict";var a=(new Date).getTime();e(t).on({"onInit.fb":function(t,n,e){n.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var e=n.current,o=(new Date).getTime();n.group.length<2||!1===e.opts.wheel||"auto"===e.opts.wheel&&"image"!==e.type||(t.preventDefault(),t.stopPropagation(),e.$slide.hasClass("modula-fancybox-animated")||(t=t.originalEvent||t,o-a<250||(a=o,n[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
3
+ function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);var i=t.getBoundingClientRect();return i.top-jQuery(window).height()<=-100&&-400<=i.top-jQuery(window).height()||i.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")})}),function(c,r,u,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function s(t,i){this.element=t,this.$element=c(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=c.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}s.prototype.init=function(){var n=this;c(u).trigger("modula_api_before_init",[n]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),c(r).resize(function(){n.onResize(n)}),c(r).on("modula-update",function(){n.onResize(n)}),c(u).on("lazyloaded",function(t){var i,e,o=c(t.target);"modula"==o.data("source")&&(o.data("size",{width:o.width(),height:o.height()}),(i=o.parents(".modula-item")).addClass("tg-loaded"),e=n.$items.not(".jtg-hidden").index(i),n.placeImage(e),n.isIsotope&&n.$itemsCnt.modulaisotope("layout"))}),n.options.inView&&jQuery(r).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(n.$element)&&n.$element.addClass("modula-loaded-scale")}),this.setupSocial(),this.options.onComplete&&this.options.onComplete(),"fancybox"!=n.options.lightbox||n.options.initLightbox||this.initLightbox(),c(u).trigger("modula_api_after_init",[n])},s.prototype.initLightbox=function(){var o=this;o.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=c.map(o.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),e=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{$thumb:e.parents(".modula-item"),caption:i.data("caption"),alt:e.attr("alt"),image_id:i.attr("data-image-id")}}}),e=o.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,o.options.lightboxOpts,e)})},s.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},s.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),d=this,l=this.options.columns,i=u.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?l=this.options.mobileColumns:i<=768&&(l=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(l-1))/l:Math.floor(t/l*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=c(i).data("width"),a=c(i).data("height");12<s&&(s=12),"1"==d.options.enableResponsive&&(e=s,o=a,1==l?a=(s=1)*o/e:((s=Math.round(l*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+d.options.gutter*(s-1),n.height=Math.round(h)*a+d.options.gutter*(a-1),c(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),c(i).css(c(i).data("size")),c(i).find(".figc").css({width:c(i).data("size").width,height:c(i).data("size").height}),r.loadImage(t)});var e={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(d.options.gutter)}};this.$itemsCnt.modulaisotope(e),this.isIsotope=!0},s.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];c(i).data("size",e),c(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),c(i).css({width:e.width,height:e.height}),c(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},s.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},s.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},s.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++){(o=this.tiles[i]).area>this.tiles[t].area&&(t=i)}var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},s.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),c(u).trigger("modula_api_reset",[this])},s.prototype.onResize=function(i){i.lastWidth!=i.$itemsCnt.width()&&(clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope("layout")},100))},s.prototype.loadImage=function(t){var i,e=this,o=e.$items.not(".jtg-hidden").eq(t).find(".pic"),n={};"0"==e.options.lazyLoad&&(void 0===o.attr("width")&&void 0===o.attr("height")?((i=new Image).onload=function(){n={width:this.width,height:this.height},o.data("size",n),e.placeImage(t)},"undefined"!=o.attr("src")?i.src=o.attr("src"):i.src=o.data("src")):(n={width:o.width(),height:o.height()},o.data("size",n),e.placeImage(t)))},s.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",r={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(r.width=o.width,r.left=0,a){case"top":r.top=0;break;case"middle":r.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":r.bottom=0}else switch(r.height=o.height,r.top=0,h){case"left":r.left=0;break;case"center":r.left=0-(o.height*s-o.width)/2;break;case"right":r.right=0}e.css(r),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},s.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&h(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&a(this.$items,this),this.options.enableEmail&&l(this.$items,this)},s.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption"),e=u.title;return 0<i.length&&(e=c.trim(i)),r.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split("#")[0])+"&text="+encodeURI(e),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption");u.title;0<e.length&&c.trim(e);i.attr("src");var o="//www.facebook.com/sharer.php?u="+location.href;return r.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},a=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption");u.title;return 0<i.length&&c.trim(i),r.open("https://api.whatsapp.com/send?text="+encodeURI(r.location.href.split("#")[0])+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},h=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption"),o=u.title;0<e.length&&(o=c.trim(e));var n,s,a,h="http://pinterest.com/pin/create/button/?url="+encodeURI(location.href)+"&description="+encodeURI(o);return 1==i.length&&(n=i.attr("src"),h+="&media="+(s=n,(a=u.createElement("img")).src=s,s=a.src,a.src=null,s)),r.open(h,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();var i="//linkedin.com/shareArticle?mini=true&url="+ +encodeURI(location.href);return r.open(i,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,s){t.find(".modula-icon-email").click(function(t){var i=encodeURI(s.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,n="mailto:?subject="+i+"&body="+encodeURI(s.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return r.open(n,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};c.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){c.data(this,"plugin_"+n)||c.data(this,"plugin_"+n,new s(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=c.data(this,"plugin_"+n);t instanceof s&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&c.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).attr("id"),i=jQuery(this).data("config");jQuery("#"+t).modulaGallery(i)})});
assets/js/modula-wf.js CHANGED
@@ -1,4 +1,4 @@
1
  !function(t){t.jQueryBridget=function(t,e){"use strict";var r=Array.prototype.slice,i=t.console,l=typeof i=="undefined"?function(){}:function(t){i.error(t)};function n(u,o,f){f=f||e||t.jQuery;if(!f){return}if(!o.prototype.option){o.prototype.option=function(t){if(!f.isPlainObject(t)){return}this.options=f.extend(true,this.options,t)}}f.fn[u]=function(t){if(typeof t=="string"){var e=r.call(arguments,1);return i(this,t,e)}n(this,t);return this};function i(t,r,s){var a;var h="$()."+u+'("'+r+'")';t.each(function(t,e){var i=f.data(e,u);if(!i){l(u+" not initialized. Cannot call methods, i.e. "+h);return}var n=i[r];if(!n||r.charAt(0)=="_"){l(h+" is not a valid method");return}var o=n.apply(i,s);a=a===undefined?o:a});return a!==undefined?a:t}function n(t,n){t.each(function(t,e){var i=f.data(e,u);if(i){i.option(n);i._init()}else{i=new o(e,n);f.data(e,u,i)}})}s(f)}function s(t){if(!t||t&&t.bridget){return}t.bridget=n}return s(e||t.jQuery),n}(t,t.jQuery)}(window),function(t){function e(){}var i;t.EvEmitter=((i=e.prototype).on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},i.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},i.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},i.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o];n&&n[r]&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},i.allOff=function(){delete this._events,delete this._onceEvents},e)}("undefined"!=typeof window?window:this),window.getSize=function(){"use strict";function v(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function t(){}var i=typeof console=="undefined"?t:function(t){console.error(t)},y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],_=y.length;function I(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<_;e++){var i=y[e];t[i]=0}return t}function z(t){var e=getComputedStyle(t);if(!e){i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See https://bit.ly/getsizebug1")}return e}var n=false,S;function E(){if(n){return}n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=z(t);S=Math.round(v(i.width))==200;o.isBoxSizeOuter=S;e.removeChild(t)}function o(t){E();if(typeof t=="string"){t=document.querySelector(t)}if(!t||typeof t!="object"||!t.nodeType){return}var e=z(t);if(e.display=="none"){return I()}var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var o=0;o<_;o++){var r=y[o];var s=e[r];var a=parseFloat(s);i[r]=!isNaN(a)?a:0}var h=i.paddingLeft+i.paddingRight;var u=i.paddingTop+i.paddingBottom;var f=i.marginLeft+i.marginRight;var l=i.marginTop+i.marginBottom;var d=i.borderLeftWidth+i.borderRightWidth;var c=i.borderTopWidth+i.borderBottomWidth;var m=n&&S;var p=v(e.width);if(p!==false){i.width=p+(m?0:h+d)}var g=v(e.height);if(g!==false){i.height=g+(m?0:u+c)}i.innerWidth=i.width-(h+d);i.innerHeight=i.height-(u+c);i.outerWidth=i.width+f;i.outerHeight=i.height+l;return i}return o}(),window.matchesSelector=function(){"use strict";var n=function(){var t=window.Element.prototype;if(t.matches){return"matches"}if(t.matchesSelector){return"matchesSelector"}var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var o=n+"MatchesSelector";if(t[o]){return o}}}();return function t(e,i){return e[n](i)}}(),function(t){t.fizzyUIUtils=function(u,r){var f={extend:function(t,e){for(var i in e){t[i]=e[i]}return t},modulo:function(t,e){return(t%e+e)%e}},i=Array.prototype.slice;f.makeArray=function(t){if(Array.isArray(t)){return t}if(t===null||t===undefined){return[]}var e=typeof t=="object"&&typeof t.length=="number";if(e){return i.call(t)}return[t]},f.removeFrom=function(t,e){var i=t.indexOf(e);if(i!=-1){t.splice(i,1)}},f.getParent=function(t,e){while(t.parentNode&&t!=document.body){t=t.parentNode;if(r(t,e)){return t}}},f.getQueryElement=function(t){if(typeof t=="string"){return document.querySelector(t)}return t},f.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}},f.filterFindElements=function(t,n){t=f.makeArray(t);var o=[];t.forEach(function(t){if(!(t instanceof HTMLElement)){return}if(!n){o.push(t);return}if(r(t,n)){o.push(t)}var e=t.querySelectorAll(n);for(var i=0;i<e.length;i++){o.push(e[i])}});return o},f.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e];var r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments;var i=this;this[r]=setTimeout(function(){o.apply(i,e);delete i[r]},n)}},f.docReady=function(t){var e=document.readyState;if(e=="complete"||e=="interactive"){setTimeout(t)}else{document.addEventListener("DOMContentLoaded",t)}},f.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var l=u.console;return f.htmlInit=function(a,h){f.docReady(function(){var t=f.toDashed(h),o="data-"+t,e=document.querySelectorAll("["+o+"]"),i=document.querySelectorAll(".js-"+t),n=f.makeArray(e).concat(f.makeArray(i)),r=o+"-options",s=u.jQuery;n.forEach(function(e){var t,i=e.getAttribute(o)||e.getAttribute(r);try{t=i&&JSON.parse(i)}catch(t){return void(l&&l.error("Error parsing "+o+" on "+e.className+": "+t))}var n=new a(e,t);s&&s.data(e,h,n)})})},f}(t,t.matchesSelector)}(window),function(t){t.Outlayer={},t.Outlayer.Item=function(t,e){"use strict";function o(t){for(var e in t){return false}e=null;return true}var i=document.documentElement.style,n=typeof i.transition=="string"?"transition":"WebkitTransition",r=typeof i.transform=="string"?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],a={transform:r,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function h(t,e){if(!t){return}this.element=t;this.layout=e;this.position={x:0,y:0};this._create()}var u=h.prototype=Object.create(t.prototype);function f(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}u.constructor=h,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},u.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}},u.getSize=function(){this.size=e(this.element)},u.css=function(t){var e=this.element.style;for(var i in t){var n=a[i]||i;e[n]=t[i]}},u.getPosition=function(){var t=getComputedStyle(this.element);var e=this.layout._getOption("originLeft");var i=this.layout._getOption("originTop");var n=t[e?"left":"right"];var o=t[i?"top":"bottom"];var r=parseFloat(n);var s=parseFloat(o);var a=this.layout.size;if(n.indexOf("%")!=-1){r=r/100*a.width}if(o.indexOf("%")!=-1){s=s/100*a.height}r=isNaN(r)?0:r;s=isNaN(s)?0:s;r-=e?a.paddingLeft:a.paddingRight;s-=i?a.paddingTop:a.paddingBottom;this.position.x=r;this.position.y=s},u.layoutPosition=function(){var t=this.layout.size;var e={};var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");var o=i?"paddingLeft":"paddingRight";var r=i?"left":"right";var s=i?"right":"left";var a=this.position.x+t[o];e[r]=this.getXValue(a);e[s]="";var h=n?"paddingTop":"paddingBottom";var u=n?"top":"bottom";var f=n?"bottom":"top";var l=this.position.y+t[h];e[u]=this.getYValue(l);e[f]="";this.css(e);this.emitEvent("layout",[this])},u.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},u.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},u._transitionTo=function(t,e){this.getPosition();var i=this.position.x;var n=this.position.y;var o=t==this.position.x&&e==this.position.y;this.setPosition(t,e);if(o&&!this.isTransitioning){this.layoutPosition();return}var r=t-i;var s=e-n;var a={};a.transform=this.getTranslate(r,s);this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:true})},u.getTranslate=function(t,e){var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");t=i?t:-t;e=n?e:-e;return"translate3d("+t+"px, "+e+"px, 0)"},u.goTo=function(t,e){this.setPosition(t,e);this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(t,e){this.position.x=parseFloat(t);this.position.y=parseFloat(e)},u._nonTransition=function(t){this.css(t.to);if(t.isCleaning){this._removeStyles(t.to)}for(var e in t.onTransitionEnd){t.onTransitionEnd[e].call(this)}},u.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(t);return}var e=this._transn;for(var i in t.onTransitionEnd){e.onEnd[i]=t.onTransitionEnd[i]}for(i in t.to){e.ingProperties[i]=true;if(t.isCleaning){e.clean[i]=true}}if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to);this.css(t.to);this.isTransitioning=true};var l="opacity,"+f(r);u.enableTransition=function(){if(this.isTransitioning){return}var t=this.layout.options.transitionDuration;t=typeof t=="number"?t+"ms":t;this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0});this.element.addEventListener(s,this,false)},u.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},u.onotransitionend=function(t){this.ontransitionend(t)};var d={"-webkit-transform":"transform"};u.ontransitionend=function(t){if(t.target!==this.element){return}var e=this._transn;var i=d[t.propertyName]||t.propertyName;delete e.ingProperties[i];if(o(e.ingProperties)){this.disableTransition()}if(i in e.clean){this.element.style[t.propertyName]="";delete e.clean[i]}if(i in e.onEnd){var n=e.onEnd[i];n.call(this);delete e.onEnd[i]}this.emitEvent("transitionEnd",[this])},u.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(s,this,false);this.isTransitioning=false},u._removeStyles=function(t){var e={};for(var i in t){e[i]=""}this.css(e)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return u.removeTransitionStyles=function(){this.css(c)},u.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},u.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},u.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},u.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},u.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},u.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},u.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},h}(t.EvEmitter,t.getSize)}(window),function(t){"use strict";t.Outlayer=function(t,e,r,s,n){"use strict";var a=t.console,h=t.jQuery,i=function(){},u=0,f={};function o(t,e){var i=s.getQueryElement(t);if(!i){if(a){a.error("Bad element for "+this.constructor.namespace+": "+(i||t))}return}this.element=i;if(h){this.$element=h(this.element)}this.options=s.extend({},this.constructor.defaults);this.option(e);var n=++u;this.element.outlayerGUID=n;f[n]=this;this._create();var o=this._getOption("initLayout");if(o){this.layout()}}o.namespace="outlayer",o.Item=n,o.defaults={containerStyle:{position:"relative"},initLayout:true,originLeft:true,originTop:true,resize:true,resizeContainer:true,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var l=o.prototype;function d(t){function e(){t.apply(this,arguments)}e.prototype=Object.create(t.prototype);e.prototype.constructor=e;return e}s.extend(l,e.prototype),l.option=function(t){s.extend(this.options,t)},l._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&this.options[e]!==undefined?this.options[e]:this.options[t]},o.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},l._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);s.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");if(t){this.bindResize()}},l.reloadItems=function(){this.items=this._itemize(this.element.children)},l._itemize=function(t){var e=this._filterFindItemElements(t);var i=this.constructor.Item;var n=[];for(var o=0;o<e.length;o++){var r=e[o];var s=new i(r,this);n.push(s)}return n},l._filterFindItemElements=function(t){return s.filterFindElements(t,this.options.itemSelector)},l.getItemElements=function(){return this.items.map(function(t){return t.element})},l.layout=function(){this._resetLayout();this._manageStamps();var t=this._getOption("layoutInstant");var e=t!==undefined?t:!this._isLayoutInited;this.layoutItems(this.items,e);this._isLayoutInited=true},l._init=l.layout,l._resetLayout=function(){this.getSize()},l.getSize=function(){this.size=r(this.element)},l._getMeasurement=function(t,e){var i=this.options[t];var n;if(!i){this[t]=0}else{if(typeof i=="string"){n=this.element.querySelector(i)}else if(i instanceof HTMLElement){n=i}this[t]=n?r(n)[e]:i}},l.layoutItems=function(t,e){t=this._getItemsForLayout(t);this._layoutItems(t,e);this._postLayout()},l._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},l._layoutItems=function(t,i){this._emitCompleteOnItems("layout",t);if(!t||!t.length){return}var n=[];t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t;e.isInstant=i||t.isLayoutInstant;n.push(e)},this);this._processLayoutQueue(n)},l._getItemLayoutPosition=function(){return{x:0,y:0}},l._processLayoutQueue=function(t){this.updateStagger();t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},l.updateStagger=function(){var t=this.options.stagger;if(t===null||t===undefined){this.stagger=0;return}this.stagger=m(t);return this.stagger},l._positionItem=function(t,e,i,n,o){if(n){t.goTo(e,i)}else{t.stagger(o*this.stagger);t.moveTo(e,i)}},l._postLayout=function(){this.resizeContainer()},l.resizeContainer=function(){var t=this._getOption("resizeContainer");if(!t){return}var e=this._getContainerSize();if(e){this._setContainerMeasure(e.width,true);this._setContainerMeasure(e.height,false)}},l._getContainerSize=i,l._setContainerMeasure=function(t,e){if(t===undefined){return}var i=this.size;if(i.isBorderBox){t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth}t=Math.max(t,0);this.element.style[e?"width":"height"]=t+"px"},l._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o=t.length;if(!t||!o){n();return}var r=0;function s(){r++;if(r==o){n()}}t.forEach(function(t){t.once(e,s)})},l.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n);if(h){this.$element=this.$element||h(this.element);if(e){var o=h.Event(e);o.type=t;this.$element.trigger(o,i)}else{this.$element.trigger(t,i)}}},l.ignore=function(t){var e=this.getItem(t);if(e){e.isIgnored=true}},l.unignore=function(t){var e=this.getItem(t);if(e){delete e.isIgnored}},l.stamp=function(t){t=this._find(t);if(!t){return}this.stamps=this.stamps.concat(t);t.forEach(this.ignore,this)},l.unstamp=function(t){t=this._find(t);if(!t){return}t.forEach(function(t){s.removeFrom(this.stamps,t);this.unignore(t)},this)},l._find=function(t){if(!t){return}if(typeof t=="string"){t=this.element.querySelectorAll(t)}t=s.makeArray(t);return t},l._manageStamps=function(){if(!this.stamps||!this.stamps.length){return}this._getBoundingRect();this.stamps.forEach(this._manageStamp,this)},l._getBoundingRect=function(){var t=this.element.getBoundingClientRect();var e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},l._manageStamp=i,l._getElementOffset=function(t){var e=t.getBoundingClientRect();var i=this._boundingRect;var n=r(t);var o={left:e.left-i.left-n.marginLeft,top:e.top-i.top-n.marginTop,right:i.right-e.right-n.marginRight,bottom:i.bottom-e.bottom-n.marginBottom};return o},l.handleEvent=s.handleEvent,l.bindResize=function(){t.addEventListener("resize",this);this.isResizeBound=true},l.unbindResize=function(){t.removeEventListener("resize",this);this.isResizeBound=false},l.onresize=function(){this.resize()},s.debounceMethod(o,"onresize",100),l.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return}this.layout()},l.needsResizeLayout=function(){var t=r(this.element);var e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},l.addItems=function(t){var e=this._itemize(t);if(e.length){this.items=this.items.concat(e)}return e},l.appended=function(t){var e=this.addItems(t);if(!e.length){return}this.layoutItems(e,true);this.reveal(e)},l.prepended=function(t){var e=this._itemize(t);if(!e.length){return}var i=this.items.slice(0);this.items=e.concat(i);this._resetLayout();this._manageStamps();this.layoutItems(e,true);this.reveal(e);this.layoutItems(i)},l.reveal=function(t){this._emitCompleteOnItems("reveal",t);if(!t||!t.length){return}var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i);t.reveal()})},l.hide=function(t){this._emitCompleteOnItems("hide",t);if(!t||!t.length){return}var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i);t.hide()})},l.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},l.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},l.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t){return i}}},l.getItems=function(t){t=s.makeArray(t);var i=[];t.forEach(function(t){var e=this.getItem(t);if(e){i.push(e)}},this);return i},l.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e);if(!e||!e.length){return}e.forEach(function(t){t.remove();s.removeFrom(this.items,t)},this)},l.destroy=function(){var t=this.element.style;t.height="";t.position="";t.width="";this.items.forEach(function(t){t.destroy()});this.unbindResize();var e=this.element.outlayerGUID;delete f[e];delete this.element.outlayerGUID;if(h){h.removeData(this.element,this.constructor.namespace)}},o.data=function(t){t=s.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},o.create=function(t,e){var i=d(o);i.defaults=s.extend({},o.defaults);s.extend(i.defaults,e);i.compatOptions=s.extend({},o.compatOptions);i.namespace=t;i.data=o.data;i.Item=d(n);s.htmlInit(i,t);if(h&&h.bridget){h.bridget(t,i)}return i};var c={ms:1,s:1e3};function m(t){if(typeof t=="number"){return t}var e=t.match(/(^\d*\.?\d*)(\w*)/);var i=e&&e[1];var n=e&&e[2];if(!i.length){return 0}i=parseFloat(i);var o=c[n]||1;return i*o}return o.Item=n,o}(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window),function(t){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.Item=function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++;n.call(this);this.sortData={}},i.updateSortData=function(){if(this.isIgnored){return}this.sortData.id=this.id;this.sortData["original-order"]=this.id;this.sortData.random=Math.random();var t=this.layout.options.getSortData;var e=this.layout._sorters;for(var i in t){var n=e[i];this.sortData[i]=n(this.element,this)}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e}(t.Outlayer)}(window),function(t){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.LayoutMode=function(e,i){"use strict";function n(t){this.isotope=t;if(t){this.options=t.options[this.namespace];this.element=t.element;this.items=t.filteredItems;this.size=t.size}}var o=n.prototype,t=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i,n=t+e,o="outer"+e;this._getMeasurement(n,o),this[n]||(i=this.getFirstItemSize(),this[n]=i&&i[o]||this.isotope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n}(t.getSize,t.Outlayer)}(window),function(t){t.Masonry=function(t,u){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";var i=e.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){var t,e;this.getContainerWidth(),this.columnWidth||(e=(t=this.items[0])&&t.element,this.columnWidth=e&&u(e).outerWidth||this.containerWidth);var i=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,o=n/i,r=i-n%i,o=Math[r&&r<1?"round":"floor"](o);this.cols=Math.max(o,1)},i.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,e=u(t);this.containerWidth=e&&e.innerWidth},i._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),i=Math.min(i,this.cols),n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),o={x:this.columnWidth*n.col,y:n.y},r=n.y+t.size.outerHeight,s=i+n.col,a=n.col;a<s;a++)this.colYs[a]=r;return o},i._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},i._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},i._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},i._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},i._manageStamp=function(t){var e=u(t),i=this._getElementOffset(t),n=this._getOption("originLeft")?i.left:i.right,o=n+e.outerWidth,r=Math.floor(n/this.columnWidth),r=Math.max(0,r),s=Math.floor(o/this.columnWidth);s-=o%this.columnWidth?0:1,s=Math.min(this.cols-1,s);for(var a=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,h=r;h<=s;h++)this.colYs[h]=Math.max(a,this.colYs[h])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e}(t.Outlayer,t.getSize)}(window),function(t){!function(t,e){"use strict";var i=t.create("masonry"),n=i.prototype,o={_getElementOffset:true,layout:true,_getMeasurement:true};for(var r in e.prototype){if(!o[r]){n[r]=e.prototype[r]}}var s=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems;s.call(this)};var a=n._getOption;n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)}}(t.ModulaIsotope.LayoutMode,t.Masonry)}(window),function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}}}(window.ModulaIsotope.LayoutMode),function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}}}(window.ModulaIsotope.LayoutMode),function(t){t.ModulaIsotope=function(t,n,i,r,e,o){var s=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=n.create("modulaisotope",{layoutMode:"masonry",isJQueryFiltering:true,sortAscending:true});u.Item=e,u.LayoutMode=o;var a=u.prototype;a._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();n.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=["original-order"];for(var t in o.modes){this._initLayoutMode(t)}},a.reloadItems=function(){this.itemGUID=0;n.prototype.reloadItems.call(this)},a._itemize=function(){var t=n.prototype._itemize.apply(this,arguments);for(var e=0;e<t.length;e++){var i=t[e];i.id=this.itemGUID++}this._updateItemsSortData(t);return t},a._initLayoutMode=function(t){var e=o.modes[t];var i=this.options[t]||{};this.options[t]=e.options?r.extend(e.options,i):i;this.modes[t]=new e(this)},a.layout=function(){if(!this._isLayoutInited&&this._getOption("initLayout")){this.arrange();return}this._layout()},a._layout=function(){var t=this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,t);this._isLayoutInited=true},a.arrange=function(t){this.option(t);this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches;this._bindArrangeComplete();if(this._isInstant){this._noTransition(this._hideReveal,[e])}else{this._hideReveal(e)}this._sort();this._layout()},a._init=a.arrange,a._hideReveal=function(t){this.reveal(t.needReveal);this.hide(t.needHide)},a._getIsInstant=function(){var t=this._getOption("layoutInstant");var e=t!==undefined?t:!this._isLayoutInited;this._isInstant=e;return e},a._bindArrangeComplete=function(){var t,e,i;var n=this;function o(){if(t&&e&&i){n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}}this.once("layoutComplete",function(){t=true;o()});this.once("hideComplete",function(){e=true;o()});this.once("revealComplete",function(){i=true;o()})},a._filter=function(t){var e=this.options.filter;e=e||"*";var i=[];var n=[];var o=[];var r=this._getFilterTest(e);for(var s=0;s<t.length;s++){var a=t[s];if(a.isIgnored){continue}var h=r(a);if(h){i.push(a)}if(h&&a.isHidden){n.push(a)}else if(!h&&!a.isHidden){o.push(a)}}return{matches:i,needReveal:n,needHide:o}},a._getFilterTest=function(e){if(s&&this.options.isJQueryFiltering){return function(t){return s(t.element).is(e)}}if(typeof e=="function"){return function(t){return e(t.element)}}return function(t){return i(t.element,e)}},a.updateSortData=function(t){var e;if(t){t=r.makeArray(t);e=this.getItems(t)}else{e=this.items}this._getSorters();this._updateItemsSortData(e)},a._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},a._updateItemsSortData=function(t){var e=t&&t.length;for(var i=0;e&&i<e;i++){var n=t[i];n.updateSortData()}};var f=function(){function t(t){if(typeof t!="string"){return t}var e=h(t).split(" ");var i=e[0];var n=i.match(/^\[(.+)\]$/);var o=n&&n[1];var r=a(o,i);var s=u.sortDataParsers[e[1]];t=s?function(t){return t&&s(r(t))}:function(t){return t&&r(t)};return t}function a(i,n){if(i){return function t(e){return e.getAttribute(i)}}return function t(e){var i=e.querySelector(n);return i&&i.textContent}}return t}();function l(u,f){return function t(e,i){for(var n=0;n<u.length;n++){var o=u[n];var r=e.sortData[o];var s=i.sortData[o];if(r>s||r<s){var a=f[o]!==undefined?f[o]:f;var h=a?1:-1;return(r>s?1:-1)*h}}return 0}}u.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},a._sort=function(){if(!this.options.sortBy){return}var t=r.makeArray(this.options.sortBy);if(!this._getIsSameSortBy(t)){this.sortHistory=t.concat(this.sortHistory)}var e=l(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)},a._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++){if(t[e]!=this.sortHistory[e]){return false}}return true},a._mode=function(){var t=this.options.layoutMode;var e=this.modes[t];if(!e){throw new Error("No layout mode: "+t)}e.options=this.options[t];return e},a._resetLayout=function(){n.prototype._resetLayout.call(this);this._mode()._resetLayout()},a._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},a._manageStamp=function(t){this._mode()._manageStamp(t)},a._getContainerSize=function(){return this._mode()._getContainerSize()},a.needsResizeLayout=function(){return this._mode().needsResizeLayout()},a.appended=function(t){var e=this.addItems(t);if(!e.length){return}var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)},a.prepended=function(t){var e=this._itemize(t);if(!e.length){return}this._resetLayout();this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems);this.filteredItems=i.concat(this.filteredItems);this.items=e.concat(this.items)},a._filterRevealAdded=function(t){var e=this._filter(t);this.hide(e.needHide);this.reveal(e.matches);this.layoutItems(e.matches,true);return e.matches},a.insert=function(t){var e=this.addItems(t);if(!e.length){return}var i,n;var o=e.length;for(i=0;i<o;i++){n=e[i];this.element.appendChild(n.element)}var r=this._filter(e).matches;for(i=0;i<o;i++){e[i].isLayoutInstant=true}this.arrange();for(i=0;i<o;i++){delete e[i].isLayoutInstant}this.reveal(r)};var d=a.remove;return a.remove=function(t){t=r.makeArray(t);var e=this.getItems(t);d.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var o=e[n];r.removeFrom(this.filteredItems,o)}},a.shuffle=function(){for(var t=0;t<this.items.length;t++){this.items[t].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},a._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=t.apply(this,e);return this.options.transitionDuration=i,n},a.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},u}(t,t.Outlayer,(t.getSize,t.matchesSelector),t.fizzyUIUtils,t.ModulaIsotope.Item,t.ModulaIsotope.LayoutMode)}(window);
2
  !function(t){t.Packery=t.Packery||{},t.Packery.Rect=function(){function a(t){for(var i in a.defaults){this[i]=a.defaults[i]}for(i in t){this[i]=t[i]}}a.defaults={x:0,y:0,width:0,height:0};var t=a.prototype;return t.contains=function(t){var i=t.width||0,e=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+i&&this.y+this.height>=t.y+e},t.overlaps=function(t){var i=this.x+this.width,e=this.y+this.height,s=t.x+t.width,r=t.y+t.height;return this.x<s&&i>t.x&&this.y<r&&e>t.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var i,e=[],s=this.x+this.width,r=this.y+this.height,h=t.x+t.width,n=t.y+t.height;return this.y<t.y&&(i=new a({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),e.push(i)),h<s&&(i=new a({x:h,y:this.y,width:s-h,height:this.height}),e.push(i)),n<r&&(i=new a({x:this.x,y:n,width:this.width,height:r-n}),e.push(i)),this.x<t.x&&(i=new a({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),e.push(i)),e},t.canFit=function(t){return this.width>=t.width&&this.height>=t.height},a}()}(window),function(t){var i=t.Packery=t.Packery||{};i.Packer=function(i){function t(t,i,e){this.width=t||0;this.height=i||0;this.sortDirection=e||"downwardLeftToRight";this.reset()}var e=t.prototype;e.reset=function(){this.spaces=[];var t=new i({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t);this.sorter=s[this.sortDirection]||s.downwardLeftToRight},e.pack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.canFit(t)){this.placeInSpace(t,e);break}}},e.columnPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];var s=e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.height>=t.height-.01;if(s){t.y=e.y;this.placed(t);break}}},e.rowPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];var s=e.y<=t.y&&e.y+e.height>=t.y+t.height&&e.width>=t.width-.01;if(s){t.x=e.x;this.placed(t);break}}},e.placeInSpace=function(t,i){t.x=i.x;t.y=i.y;this.placed(t)},e.placed=function(t){var i=[];for(var e=0;e<this.spaces.length;e++){var s=this.spaces[e];var r=s.getMaximalFreeRects(t);if(r){i.push.apply(i,r)}else{i.push(s)}}this.spaces=i;this.mergeSortSpaces()},e.mergeSortSpaces=function(){t.mergeRects(this.spaces);this.spaces.sort(this.sorter)},e.addSpace=function(t){this.spaces.push(t);this.mergeSortSpaces()},t.mergeRects=function(t){var i=0;var e=t[i];t:while(e){var s=0;var r=t[i+s];while(r){if(r==e){s++}else if(r.contains(e)){t.splice(i,1);e=t[i];continue t}else if(e.contains(r)){t.splice(i+s,1)}else{s++}r=t[i+s]}i++;e=t[i]}return t};var s={downwardLeftToRight:function(t,i){return t.y-i.y||t.x-i.x},rightwardTopToBottom:function(t,i){return t.x-i.x||t.y-i.y}};return t}(i.Rect)}(window),function(t){t.Packery.Item=function(i,t){var e,s=typeof document.documentElement.style.transform=="string"?"transform":"WebkitTransform",r=function t(){i.Item.apply(this,arguments)},h=r.prototype=Object.create(i.Item.prototype),n=h._create;h._create=function(){n.call(this);this.rect=new t};var a=h.moveTo;return h.moveTo=function(t,i){var e=Math.abs(this.position.x-t),s=Math.abs(this.position.y-i);this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&e<1&&s<1?this.goTo(t,i):a.apply(this,arguments)},h.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&s&&(this.element.style[s]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},h.disablePlacing=function(){this.isPlacing=!1},h.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},h.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||((t=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},h.positionDropPlaceholder=function(){this.dropPlaceholder.style[s]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},h.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},r}(t.Outlayer,t.Packery.Rect)}(window),function(t){t.Packery=function(u,t,f,i,e){f.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var s=t.create("packery");s.Item=e;var r=s.prototype;function h(t,i){return t.position.y-i.position.y||t.position.x-i.position.x}function n(t,i){return t.position.x-i.position.x||t.position.y-i.position.y}function a(t,i){var e=i.x-t.x;var s=i.y-t.y;return Math.sqrt(e*e+s*s)}r._create=function(){t.prototype._create.call(this);this.packer=new i;this.shiftPacker=new i;this.isEnabled=true;this.dragItemCount=0;var s=this;this.handleDraggabilly={dragStart:function(){s.itemDragStart(this.element)},dragMove:function(){s.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){s.itemDragEnd(this.element)}};this.handleUIDraggable={start:function t(i,e){if(!e){return}s.itemDragStart(i.currentTarget)},drag:function t(i,e){if(!e){return}s.itemDragMove(i.currentTarget,e.position.left,e.position.top)},stop:function t(i,e){if(!e){return}s.itemDragEnd(i.currentTarget)}}},r._resetLayout=function(){this.getSize();this._getMeasurements();var t,i,e;if(this._getOption("horizontal")){t=Infinity;i=this.size.innerHeight+this.gutter;e="rightwardTopToBottom"}else{t=this.size.innerWidth+this.gutter;i=Infinity;e="downwardLeftToRight"}this.packer.width=this.shiftPacker.width=t;this.packer.height=this.shiftPacker.height=i;this.packer.sortDirection=this.shiftPacker.sortDirection=e;this.packer.reset();this.maxY=0;this.maxX=0},r._getMeasurements=function(){this._getMeasurement("columnWidth","width");this._getMeasurement("rowHeight","height");this._getMeasurement("gutter","width")},r._getItemLayoutPosition=function(t){this._setRectSize(t.element,t.rect);if(this.isShifting||this.dragItemCount>0){var i=this._getPackMethod();this.packer[i](t.rect)}else{this.packer.pack(t.rect)}this._setMaxXY(t.rect);return t.rect},r.shiftLayout=function(){this.isShifting=true;this.layout();delete this.isShifting},r._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},r._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX);this.maxY=Math.max(t.y+t.height,this.maxY)},r._setRectSize=function(t,i){var e=u(t);var s=e.outerWidth;var r=e.outerHeight;if(s||r){s=this._applyGridGutter(s,this.columnWidth);r=this._applyGridGutter(r,this.rowHeight)}i.width=Math.min(s,this.packer.width);i.height=Math.min(r,this.packer.height)},r._applyGridGutter=function(t,i){if(!i){return t+this.gutter}i+=this.gutter;var e=t%i;var s=e&&e<1?"round":"ceil";t=Math[s](t/i)*i;return t},r._getContainerSize=function(){if(this._getOption("horizontal")){return{width:this.maxX-this.gutter}}else{return{height:this.maxY-this.gutter}}},r._manageStamp=function(t){var i=this.getItem(t);var e;if(i&&i.isPlacing){e=i.rect}else{var s=this._getElementOffset(t);e=new f({x:this._getOption("originLeft")?s.left:s.right,y:this._getOption("originTop")?s.top:s.bottom})}this._setRectSize(t,e);this.packer.placed(e);this._setMaxXY(e)},r.sortItemsByPosition=function(){var t=this._getOption("horizontal")?n:h;this.items.sort(t)},r.fit=function(t,i,e){var s=this.getItem(t);if(!s){return}this.stamp(s.element);s.enablePlacing();this.updateShiftTargets(s);i=i===undefined?s.rect.x:i;e=e===undefined?s.rect.y:e;this.shift(s,i,e);this._bindFitEvents(s);s.moveTo(s.rect.x,s.rect.y);this.shiftLayout();this.unstamp(s.element);this.sortItemsByPosition();s.disablePlacing()},r._bindFitEvents=function(t){var i=this;var e=0;function s(){e++;if(e!=2){return}i.dispatchEvent("fitComplete",null,[t])}t.once("layout",s);this.once("layoutComplete",s)},r.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return}if(this.options.shiftPercentResize){this.resizeShiftPercentLayout()}else{this.layout()}},r.needsResizeLayout=function(){var t=u(this.element);var i=this._getOption("horizontal")?"innerHeight":"innerWidth";return t[i]!=this.size[i]},r.resizeShiftPercentLayout=function(){var t=this._getItemsForLayout(this.items);var i=this._getOption("horizontal");var e=i?"y":"x";var s=i?"height":"width";var r=i?"rowHeight":"columnWidth";var h=i?"innerHeight":"innerWidth";var n=this[r];n=n&&n+this.gutter;if(n){this._getMeasurements();var a=this[r]+this.gutter;t.forEach(function(t){var i=Math.round(t.rect[e]/n);t.rect[e]=i*a})}else{var o=u(this.element)[h]+this.gutter;var c=this.packer[s];t.forEach(function(t){t.rect[e]=t.rect[e]/c*o})}this.shiftLayout()},r.itemDragStart=function(t){if(!this.isEnabled){return}this.stamp(t);var i=this.getItem(t);if(!i){return}i.enablePlacing();i.showDropPlaceholder();this.dragItemCount++;this.updateShiftTargets(i)},r.updateShiftTargets=function(t){this.shiftPacker.reset();this._getBoundingRect();var r=this._getOption("originLeft");var h=this._getOption("originTop");this.stamps.forEach(function(t){var i=this.getItem(t);if(i&&i.isPlacing){return}var e=this._getElementOffset(t);var s=new f({x:r?e.left:e.right,y:h?e.top:e.bottom});this._setRectSize(t,s);this.shiftPacker.placed(s)},this);var o=this._getOption("horizontal");var i=o?"rowHeight":"columnWidth";var c=o?"height":"width";this.shiftTargetKeys=[];this.shiftTargets=[];var u;var g=this[i];g=g&&g+this.gutter;if(g){var e=Math.ceil(t.rect[c]/g);var s=Math.floor((this.shiftPacker[c]+this.gutter)/g);u=(s-e)*g;for(var n=0;n<s;n++){this._addShiftTarget(n*g,0,u)}}else{u=this.shiftPacker[c]+this.gutter-t.rect[c];this._addShiftTarget(0,0,u)}var a=this._getItemsForLayout(this.items);var l=this._getPackMethod();a.forEach(function(t){var i=t.rect;this._setRectSize(t.element,i);this.shiftPacker[l](i);this._addShiftTarget(i.x,i.y,u);var e=o?i.x+i.width:i.x;var s=o?i.y:i.y+i.height;this._addShiftTarget(e,s,u);if(g){var r=Math.round(i[c]/g);for(var h=1;h<r;h++){var n=o?e:i.x+g*h;var a=o?i.y+g*h:s;this._addShiftTarget(n,a,u)}}},this)},r._addShiftTarget=function(t,i,e){var s=this._getOption("horizontal")?i:t;if(s!==0&&s>e){return}var r=t+","+i;var h=this.shiftTargetKeys.indexOf(r)!=-1;if(h){return}this.shiftTargetKeys.push(r);this.shiftTargets.push({x:t,y:i})},r.shift=function(t,i,e){var s;var r=Infinity;var h={x:i,y:e};this.shiftTargets.forEach(function(t){var i=a(t,h);if(i<r){s=t;r=i}});t.rect.x=s.x;t.rect.y=s.y};var o=120;r.itemDragMove=function(t,i,e){var s=this.isEnabled&&this.getItem(t);if(!s){return}i-=this.size.paddingLeft;e-=this.size.paddingTop;var r=this;function h(){r.shift(s,i,e);s.positionDropPlaceholder();r.layout()}var n=new Date;if(this._itemDragTime&&n-this._itemDragTime<o){clearTimeout(this.dragTimeout);this.dragTimeout=setTimeout(h,o)}else{h();this._itemDragTime=n}},r.itemDragEnd=function(t){var i=this.isEnabled&&this.getItem(t);if(!i){return}clearTimeout(this.dragTimeout);i.element.classList.add("is-positioning-post-drag");var e=0;var s=this;function r(){e++;if(e!=2){return}i.element.classList.remove("is-positioning-post-drag");i.hideDropPlaceholder();s.dispatchEvent("dragItemPositioned",null,[i])}i.once("layout",r);this.once("layoutComplete",r);i.moveTo(i.rect.x,i.rect.y);this.layout();this.dragItemCount=Math.max(0,this.dragItemCount-1);this.sortItemsByPosition();i.disablePlacing();this.unstamp(i.element)},r.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},r.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},r._bindDraggabillyEvents=function(t,i){var e=this.handleDraggabilly;t[i]("dragStart",e.dragStart);t[i]("dragMove",e.dragMove);t[i]("dragEnd",e.dragEnd)},r.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},r.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},r._bindUIDraggableEvents=function(t,i){var e=this.handleUIDraggable;t[i]("dragstart",e.start)[i]("drag",e.drag)[i]("dragstop",e.stop)};var c=r.destroy;return r.destroy=function(){c.apply(this,arguments),this.isEnabled=!1},s.Rect=f,s.Packer=i,s}(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window),function(t){!function(t,i){var e=t.create("packery"),s=e.prototype,r={_getElementOffset:true,_getMeasurement:true};for(var h in i.prototype){if(!r[h]){s[h]=i.prototype[h]}}var n=s._resetLayout;s._resetLayout=function(){this.packer=this.packer||new i.Packer;this.shiftPacker=this.shiftPacker||new i.Packer;n.apply(this,arguments)};var a=s._getItemLayoutPosition;s._getItemLayoutPosition=function(t){t.rect=t.rect||new i.Rect;return a.call(this,t)};var o=s.needsResizeLayout;s.needsResizeLayout=function(){if(this._getOption("horizontal")){return this.needsVerticalResizeLayout()}else{return o.call(this)}};var c=s._getOption;s._getOption=function(t){return"horizontal"==t?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:c.apply(this.isotope,arguments)}}(t.ModulaIsotope.LayoutMode,t.Packery)}(window);
3
  !function(e){var t=function(l,k){"use strict";if(!k.getElementsByClassName){return}var D,H,O=k.documentElement,o=l.Date,a=l.HTMLPictureElement,u="addEventListener",P="getAttribute",f=l[u],$=l.setTimeout,c=l.requestAnimationFrame||$,d=l.requestIdleCallback,I=/^picture$/i,r=["load","error","lazyincluded","_lazyloaded"],i={},q=Array.prototype.forEach,j=function(e,t){if(!i[t]){i[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")}return i[t].test(e[P]("class")||"")&&i[t]},G=function(e,t){if(!j(e,t)){e.setAttribute("class",(e[P]("class")||"").trim()+" "+t)}},J=function(e,t){var i;if(i=j(e,t)){e.setAttribute("class",(e[P]("class")||"").replace(i," "))}},K=function(t,i,e){var a=e?u:"removeEventListener";if(e){K(t,i)}r.forEach(function(e){t[a](e,i)})},Q=function(e,t,i,a,r){var n=k.createEvent("Event");if(!i){i={}}i.instance=D;n.initEvent(t,!a,!r);n.detail=i;e.dispatchEvent(n);return n},U=function(e,t){var i;if(!a&&(i=l.picturefill||H.pf)){if(t&&t.src&&!e[P]("srcset")){e.setAttribute("srcset",t.src)}i({reevaluate:true,elements:[e]})}else if(t&&t.src){e.src=t.src}},V=function(e,t){return(getComputedStyle(e,null)||{})[t]},s=function(e,t,i){i=i||e.offsetWidth;while(i<H.minSize&&t&&!e._lazysizesWidth){i=t.offsetWidth;t=t.parentNode}return i},X=function(){var i,a;var t=[];var r=[];var n=t;var s=function(){var e=n;n=t.length?r:t;i=true;a=false;while(e.length){e.shift()()}i=false};var e=function(e,t){if(i&&!t){e.apply(this,arguments)}else{n.push(e);if(!a){a=true;(k.hidden?$:c)(s)}}};e._lsFlush=s;return e}(),Y=function(i,e){return e?function(){X(i)}:function(){var e=this;var t=arguments;X(function(){i.apply(e,t)})}},Z=function(e){var i;var a=0;var r=H.throttleDelay;var n=H.ricTimeout;var t=function(){i=false;a=o.now();e()};var s=d&&n>49?function(){d(t,{timeout:n});if(n!==H.ricTimeout){n=H.ricTimeout}}:Y(function(){$(t)},true);return function(e){var t;if(e=e===true){n=33}if(i){return}i=true;t=r-(o.now()-a);if(t<0){t=0}if(e||t<9){s()}else{$(s,t)}}},ee=function(e){var t,i;var a=99;var r=function(){t=null;e()};var n=function(){var e=o.now()-i;if(e<a){$(n,a-e)}else{(d||r)(r)}};return function(){i=o.now();if(!t){t=$(n,a)}}};(function(){var e;var t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};H=l.lazySizesConfig||l.lazysizesConfig||{};for(e in t){if(!(e in H)){H[e]=t[e]}}l.lazySizesConfig=H;$(function(){if(H.init){n()}})})();var e=function(){var v,m,c,z,t;var h,y,g,p,C,b,A;var n=/^img$/i;var d=/^iframe$/i;var E="onscroll"in l&&!/(gle|ing)bot/.test(navigator.userAgent);var _=0;var w=0;var M=0;var N=-1;var x=function(e){M--;if(!e||M<0||!e.target){M=0}};var W=function(e){if(A==null){A=V(k.body,"visibility")=="hidden"}return A||V(e.parentNode,"visibility")!="hidden"&&V(e,"visibility")!="hidden"};var T=function(e,t){var i;var a=e;var r=W(e);g-=t;b+=t;p-=t;C+=t;while(r&&(a=a.offsetParent)&&a!=k.body&&a!=O){r=(V(a,"opacity")||1)>0;if(r&&V(a,"overflow")!="visible"){i=a.getBoundingClientRect();r=C>i.left&&p<i.right&&b>i.top-1&&g<i.bottom+1}}return r};var e=function(){var e,t,i,a,r,n,s,l,o,u,f,c;var d=D.elements;if((z=H.loadMode)&&M<8&&(e=d.length)){t=0;N++;u=!H.expand||H.expand<1?O.clientHeight>500&&O.clientWidth>500?500:370:H.expand;D._defEx=u;f=u*H.expFactor;c=H.hFac;A=null;if(w<f&&M<1&&N>2&&z>2&&!k.hidden){w=f;N=0}else if(z>1&&N>1&&M<6){w=u}else{w=_}for(;t<e;t++){if(!d[t]||d[t]._lazyRace){continue}if(!E){R(d[t]);continue}if(!(l=d[t][P]("data-expand"))||!(n=l*1)){n=w}if(o!==n){h=innerWidth+n*c;y=innerHeight+n;s=n*-1;o=n}i=d[t].getBoundingClientRect();if((b=i.bottom)>=s&&(g=i.top)<=y&&(C=i.right)>=s*c&&(p=i.left)<=h&&(b||C||p||g)&&(H.loadHidden||W(d[t]))&&(m&&M<3&&!l&&(z<3||N<4)||T(d[t],n))){R(d[t]);r=true;if(M>9){break}}else if(!r&&m&&!a&&M<4&&N<4&&z>2&&(v[0]||H.preloadAfterLoad)&&(v[0]||!l&&(b||C||p||g||d[t][P](H.sizesAttr)!="auto"))){a=v[0]||d[t]}}if(a&&!r){R(a)}}};var i=Z(e);var B=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}x(e);G(t,H.loadedClass);J(t,H.loadingClass);K(t,F);Q(t,"lazyloaded")};var a=Y(B);var F=function(e){a({target:e.target})};var S=function(t,i){try{t.contentWindow.location.replace(i)}catch(e){t.src=i}};var L=function(e){var t;var i=e[P](H.srcsetAttr);if(t=H.customMedia[e[P]("data-media")||e[P]("media")]){e.setAttribute("media",t)}if(i){e.setAttribute("srcset",i)}};var s=Y(function(e,t,i,a,r){var n,s,l,o,u,f;if(!(u=Q(e,"lazybeforeunveil",t)).defaultPrevented){if(a){if(i){G(e,H.autosizesClass)}else{e.setAttribute("sizes",a)}}s=e[P](H.srcsetAttr);n=e[P](H.srcAttr);if(r){l=e.parentNode;o=l&&I.test(l.nodeName||"")}f=t.firesLoad||"src"in e&&(s||n||o);u={target:e};G(e,H.loadingClass);if(f){clearTimeout(c);c=$(x,2500);K(e,F,true)}if(o){q.call(l.getElementsByTagName("source"),L)}if(s){e.setAttribute("srcset",s)}else if(n&&!o){if(d.test(e.nodeName)){S(e,n)}else{e.src=n}}if(r&&(s||o)){U(e,{src:n})}}if(e._lazyRace){delete e._lazyRace}J(e,H.lazyClass);X(function(){if(!f||e.complete&&e.naturalWidth>1){B(u);e._lazyCache=true;$(function(){if("_lazyCache"in e){delete e._lazyCache}},9)}},true)});var R=function(e){var t;var i=n.test(e.nodeName);var a=i&&(e[P](H.sizesAttr)||e[P]("sizes"));var r=a=="auto";if((r||!m)&&i&&(e[P]("src")||e.srcset)&&!e.complete&&!j(e,H.errorClass)&&j(e,H.lazyClass)){return}t=Q(e,"lazyunveilread").detail;if(r){te.updateElem(e,true,e.offsetWidth)}e._lazyRace=true;M++;s(e,t,r,a,i)};var r=function(){if(m){return}if(o.now()-t<999){$(r,999);return}var e=ee(function(){H.loadMode=3;i()});m=true;H.loadMode=3;i();f("scroll",function(){if(H.loadMode==3){H.loadMode=2}e()},true)};return{_:function(){t=o.now();D.elements=k.getElementsByClassName(H.lazyClass);v=k.getElementsByClassName(H.lazyClass+" "+H.preloadClass);f("scroll",i,true);f("resize",i,true);if(l.MutationObserver){new MutationObserver(i).observe(O,{childList:true,subtree:true,attributes:true})}else{O[u]("DOMNodeInserted",i,true);O[u]("DOMAttrModified",i,true);setInterval(i,999)}f("hashchange",i,true);["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(e){k[u](e,i,true)});if(/d$|^c/.test(k.readyState)){r()}else{f("load",r);k[u]("DOMContentLoaded",i);$(r,2e4)}if(D.elements.length){e();X._lsFlush()}else{i()}},checkElems:i,unveil:R}}(),te=function(){var i;var n=Y(function(e,t,i,a){var r,n,s;e._lazysizesWidth=a;a+="px";e.setAttribute("sizes",a);if(I.test(t.nodeName||"")){r=t.getElementsByTagName("source");for(n=0,s=r.length;n<s;n++){r[n].setAttribute("sizes",a)}}if(!i.detail.dataAttr){U(e,i.detail)}});var a=function(e,t,i){var a;var r=e.parentNode;if(r){i=s(e,r,i);a=Q(e,"lazybeforesizes",{width:i,dataAttr:!!t});if(!a.defaultPrevented){i=a.detail.width;if(i&&i!==e._lazysizesWidth){n(e,r,a,i)}}}};var e=function(){var e;var t=i.length;if(t){e=0;for(;e<t;e++){a(i[e])}}};var t=ee(e);return{_:function(){i=k.getElementsByClassName(H.autosizesClass);f("resize",t)},checkElems:t,updateElem:a}}(),n=function(){if(!n.i){n.i=true;te._();e._()}};return D={cfg:H,autoSizer:te,loader:e,init:n,uP:U,aC:G,rC:J,hC:j,fire:Q,gW:s,rAF:X}}(e,e.document);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}(window);
4
- function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);var i=t.getBoundingClientRect();return i.top-jQuery(window).height()<=-100&&-400<=i.top-jQuery(window).height()||i.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")})}),function(c,r,p,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function s(t,i){this.element=t,this.$element=c(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=c.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}s.prototype.init=function(){var n=this;c(p).trigger("modula_api_before_init",[n]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),c(r).resize(function(){n.onResize(n)}),c(r).on("modula-update",function(){n.onResize(n)}),c(p).on("lazyloaded",function(t){var i,e,o=c(t.target);"modula"==o.data("source")&&(o.data("size",{width:o.width(),height:o.height()}),(i=o.parents(".modula-item")).addClass("tg-loaded"),e=n.$items.not(".jtg-hidden").index(i),n.placeImage(e),n.isIsotope&&n.$itemsCnt.modulaisotope("layout"))}),n.options.inView&&jQuery(r).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(n.$element)&&n.$element.addClass("modula-loaded-scale")}),this.setupSocial(),this.options.onComplete&&this.options.onComplete(),"fancybox"!=n.options.lightbox||n.options.initLightbox||this.initLightbox(),c(p).trigger("modula_api_after_init",[n])},s.prototype.initLightbox=function(){var o=this;o.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=c.map(o.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),e=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{caption:i.data("caption"),alt:e.attr("alt"),image_id:i.attr("data-image-id")}}}),e=o.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,o.options.lightboxOpts,e)})},s.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},s.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),d=this,l=this.options.columns,i=p.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?l=this.options.mobileColumns:i<=768&&(l=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(l-1))/l:Math.floor(t/l*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=c(i).data("width"),a=c(i).data("height");12<s&&(s=12),"1"==d.options.enableResponsive&&(e=s,o=a,1==l?a=(s=1)*o/e:((s=Math.round(l*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+d.options.gutter*(s-1),n.height=Math.round(h)*a+d.options.gutter*(a-1),c(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),c(i).css(c(i).data("size")),c(i).find(".figc").css({width:c(i).data("size").width,height:c(i).data("size").height}),r.loadImage(t)});var e={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(d.options.gutter)}};this.$itemsCnt.modulaisotope(e),this.isIsotope=!0},s.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];c(i).data("size",e),c(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),c(i).css({width:e.width,height:e.height}),c(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},s.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},s.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},s.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++){(o=this.tiles[i]).area>this.tiles[t].area&&(t=i)}var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},s.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),c(p).trigger("modula_api_reset",[this])},s.prototype.onResize=function(i){i.lastWidth!=i.$itemsCnt.width()&&(clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope("layout")},100))},s.prototype.loadImage=function(t){var i,e=this,o=e.$items.not(".jtg-hidden").eq(t).find(".pic"),n={};"0"==e.options.lazyLoad&&(void 0===o.attr("width")&&void 0===o.attr("height")?((i=new Image).onload=function(){n={width:this.width,height:this.height},o.data("size",n),e.placeImage(t)},"undefined"!=o.attr("src")?i.src=o.attr("src"):i.src=o.data("src")):(n={width:o.width(),height:o.height()},o.data("size",n),e.placeImage(t)))},s.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",r={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(r.width=o.width,r.left=0,a){case"top":r.top=0;break;case"middle":r.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":r.bottom=0}else switch(r.height=o.height,r.top=0,h){case"left":r.left=0;break;case"center":r.left=0-(o.height*s-o.width)/2;break;case"right":r.right=0}e.css(r),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},s.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&h(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&a(this.$items,this),this.options.enableEmail&&l(this.$items,this)},s.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption"),e=p.title;return 0<i.length&&(e=c.trim(i)),r.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split("#")[0])+"&text="+encodeURI(e),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption");p.title;0<e.length&&c.trim(e);i.attr("src");var o="//www.facebook.com/sharer.php?u="+location.href;return r.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},a=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption");p.title;return 0<i.length&&c.trim(i),r.open("https://api.whatsapp.com/send?text="+encodeURI(r.location.href.split("#")[0])+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},h=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption"),o=p.title;0<e.length&&(o=c.trim(e));var n,s,a,h="http://pinterest.com/pin/create/button/?url="+encodeURI(location.href)+"&description="+encodeURI(o);return 1==i.length&&(n=i.attr("src"),h+="&media="+(s=n,(a=p.createElement("img")).src=s,s=a.src,a.src=null,s)),r.open(h,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();var i="//linkedin.com/shareArticle?mini=true&url="+ +encodeURI(location.href);return r.open(i,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,s){t.find(".modula-icon-email").click(function(t){var i=encodeURI(s.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,n="mailto:?subject="+i+"&body="+encodeURI(s.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return r.open(n,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};c.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){c.data(this,"plugin_"+n)||c.data(this,"plugin_"+n,new s(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=c.data(this,"plugin_"+n);t instanceof s&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&c.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).attr("id"),i=jQuery(this).data("config");jQuery("#"+t).modulaGallery(i)})});
1
  !function(t){t.jQueryBridget=function(t,e){"use strict";var r=Array.prototype.slice,i=t.console,l=typeof i=="undefined"?function(){}:function(t){i.error(t)};function n(u,o,f){f=f||e||t.jQuery;if(!f){return}if(!o.prototype.option){o.prototype.option=function(t){if(!f.isPlainObject(t)){return}this.options=f.extend(true,this.options,t)}}f.fn[u]=function(t){if(typeof t=="string"){var e=r.call(arguments,1);return i(this,t,e)}n(this,t);return this};function i(t,r,s){var a;var h="$()."+u+'("'+r+'")';t.each(function(t,e){var i=f.data(e,u);if(!i){l(u+" not initialized. Cannot call methods, i.e. "+h);return}var n=i[r];if(!n||r.charAt(0)=="_"){l(h+" is not a valid method");return}var o=n.apply(i,s);a=a===undefined?o:a});return a!==undefined?a:t}function n(t,n){t.each(function(t,e){var i=f.data(e,u);if(i){i.option(n);i._init()}else{i=new o(e,n);f.data(e,u,i)}})}s(f)}function s(t){if(!t||t&&t.bridget){return}t.bridget=n}return s(e||t.jQuery),n}(t,t.jQuery)}(window),function(t){function e(){}var i;t.EvEmitter=((i=e.prototype).on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},i.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},i.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},i.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o];n&&n[r]&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},i.allOff=function(){delete this._events,delete this._onceEvents},e)}("undefined"!=typeof window?window:this),window.getSize=function(){"use strict";function v(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function t(){}var i=typeof console=="undefined"?t:function(t){console.error(t)},y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],_=y.length;function I(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<_;e++){var i=y[e];t[i]=0}return t}function z(t){var e=getComputedStyle(t);if(!e){i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See https://bit.ly/getsizebug1")}return e}var n=false,S;function E(){if(n){return}n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=z(t);S=Math.round(v(i.width))==200;o.isBoxSizeOuter=S;e.removeChild(t)}function o(t){E();if(typeof t=="string"){t=document.querySelector(t)}if(!t||typeof t!="object"||!t.nodeType){return}var e=z(t);if(e.display=="none"){return I()}var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var o=0;o<_;o++){var r=y[o];var s=e[r];var a=parseFloat(s);i[r]=!isNaN(a)?a:0}var h=i.paddingLeft+i.paddingRight;var u=i.paddingTop+i.paddingBottom;var f=i.marginLeft+i.marginRight;var l=i.marginTop+i.marginBottom;var d=i.borderLeftWidth+i.borderRightWidth;var c=i.borderTopWidth+i.borderBottomWidth;var m=n&&S;var p=v(e.width);if(p!==false){i.width=p+(m?0:h+d)}var g=v(e.height);if(g!==false){i.height=g+(m?0:u+c)}i.innerWidth=i.width-(h+d);i.innerHeight=i.height-(u+c);i.outerWidth=i.width+f;i.outerHeight=i.height+l;return i}return o}(),window.matchesSelector=function(){"use strict";var n=function(){var t=window.Element.prototype;if(t.matches){return"matches"}if(t.matchesSelector){return"matchesSelector"}var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var o=n+"MatchesSelector";if(t[o]){return o}}}();return function t(e,i){return e[n](i)}}(),function(t){t.fizzyUIUtils=function(u,r){var f={extend:function(t,e){for(var i in e){t[i]=e[i]}return t},modulo:function(t,e){return(t%e+e)%e}},i=Array.prototype.slice;f.makeArray=function(t){if(Array.isArray(t)){return t}if(t===null||t===undefined){return[]}var e=typeof t=="object"&&typeof t.length=="number";if(e){return i.call(t)}return[t]},f.removeFrom=function(t,e){var i=t.indexOf(e);if(i!=-1){t.splice(i,1)}},f.getParent=function(t,e){while(t.parentNode&&t!=document.body){t=t.parentNode;if(r(t,e)){return t}}},f.getQueryElement=function(t){if(typeof t=="string"){return document.querySelector(t)}return t},f.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}},f.filterFindElements=function(t,n){t=f.makeArray(t);var o=[];t.forEach(function(t){if(!(t instanceof HTMLElement)){return}if(!n){o.push(t);return}if(r(t,n)){o.push(t)}var e=t.querySelectorAll(n);for(var i=0;i<e.length;i++){o.push(e[i])}});return o},f.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e];var r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments;var i=this;this[r]=setTimeout(function(){o.apply(i,e);delete i[r]},n)}},f.docReady=function(t){var e=document.readyState;if(e=="complete"||e=="interactive"){setTimeout(t)}else{document.addEventListener("DOMContentLoaded",t)}},f.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var l=u.console;return f.htmlInit=function(a,h){f.docReady(function(){var t=f.toDashed(h),o="data-"+t,e=document.querySelectorAll("["+o+"]"),i=document.querySelectorAll(".js-"+t),n=f.makeArray(e).concat(f.makeArray(i)),r=o+"-options",s=u.jQuery;n.forEach(function(e){var t,i=e.getAttribute(o)||e.getAttribute(r);try{t=i&&JSON.parse(i)}catch(t){return void(l&&l.error("Error parsing "+o+" on "+e.className+": "+t))}var n=new a(e,t);s&&s.data(e,h,n)})})},f}(t,t.matchesSelector)}(window),function(t){t.Outlayer={},t.Outlayer.Item=function(t,e){"use strict";function o(t){for(var e in t){return false}e=null;return true}var i=document.documentElement.style,n=typeof i.transition=="string"?"transition":"WebkitTransition",r=typeof i.transform=="string"?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],a={transform:r,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function h(t,e){if(!t){return}this.element=t;this.layout=e;this.position={x:0,y:0};this._create()}var u=h.prototype=Object.create(t.prototype);function f(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}u.constructor=h,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},u.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}},u.getSize=function(){this.size=e(this.element)},u.css=function(t){var e=this.element.style;for(var i in t){var n=a[i]||i;e[n]=t[i]}},u.getPosition=function(){var t=getComputedStyle(this.element);var e=this.layout._getOption("originLeft");var i=this.layout._getOption("originTop");var n=t[e?"left":"right"];var o=t[i?"top":"bottom"];var r=parseFloat(n);var s=parseFloat(o);var a=this.layout.size;if(n.indexOf("%")!=-1){r=r/100*a.width}if(o.indexOf("%")!=-1){s=s/100*a.height}r=isNaN(r)?0:r;s=isNaN(s)?0:s;r-=e?a.paddingLeft:a.paddingRight;s-=i?a.paddingTop:a.paddingBottom;this.position.x=r;this.position.y=s},u.layoutPosition=function(){var t=this.layout.size;var e={};var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");var o=i?"paddingLeft":"paddingRight";var r=i?"left":"right";var s=i?"right":"left";var a=this.position.x+t[o];e[r]=this.getXValue(a);e[s]="";var h=n?"paddingTop":"paddingBottom";var u=n?"top":"bottom";var f=n?"bottom":"top";var l=this.position.y+t[h];e[u]=this.getYValue(l);e[f]="";this.css(e);this.emitEvent("layout",[this])},u.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},u.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},u._transitionTo=function(t,e){this.getPosition();var i=this.position.x;var n=this.position.y;var o=t==this.position.x&&e==this.position.y;this.setPosition(t,e);if(o&&!this.isTransitioning){this.layoutPosition();return}var r=t-i;var s=e-n;var a={};a.transform=this.getTranslate(r,s);this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:true})},u.getTranslate=function(t,e){var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");t=i?t:-t;e=n?e:-e;return"translate3d("+t+"px, "+e+"px, 0)"},u.goTo=function(t,e){this.setPosition(t,e);this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(t,e){this.position.x=parseFloat(t);this.position.y=parseFloat(e)},u._nonTransition=function(t){this.css(t.to);if(t.isCleaning){this._removeStyles(t.to)}for(var e in t.onTransitionEnd){t.onTransitionEnd[e].call(this)}},u.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(t);return}var e=this._transn;for(var i in t.onTransitionEnd){e.onEnd[i]=t.onTransitionEnd[i]}for(i in t.to){e.ingProperties[i]=true;if(t.isCleaning){e.clean[i]=true}}if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to);this.css(t.to);this.isTransitioning=true};var l="opacity,"+f(r);u.enableTransition=function(){if(this.isTransitioning){return}var t=this.layout.options.transitionDuration;t=typeof t=="number"?t+"ms":t;this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0});this.element.addEventListener(s,this,false)},u.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},u.onotransitionend=function(t){this.ontransitionend(t)};var d={"-webkit-transform":"transform"};u.ontransitionend=function(t){if(t.target!==this.element){return}var e=this._transn;var i=d[t.propertyName]||t.propertyName;delete e.ingProperties[i];if(o(e.ingProperties)){this.disableTransition()}if(i in e.clean){this.element.style[t.propertyName]="";delete e.clean[i]}if(i in e.onEnd){var n=e.onEnd[i];n.call(this);delete e.onEnd[i]}this.emitEvent("transitionEnd",[this])},u.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(s,this,false);this.isTransitioning=false},u._removeStyles=function(t){var e={};for(var i in t){e[i]=""}this.css(e)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return u.removeTransitionStyles=function(){this.css(c)},u.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},u.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},u.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},u.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},u.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},u.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},u.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},h}(t.EvEmitter,t.getSize)}(window),function(t){"use strict";t.Outlayer=function(t,e,r,s,n){"use strict";var a=t.console,h=t.jQuery,i=function(){},u=0,f={};function o(t,e){var i=s.getQueryElement(t);if(!i){if(a){a.error("Bad element for "+this.constructor.namespace+": "+(i||t))}return}this.element=i;if(h){this.$element=h(this.element)}this.options=s.extend({},this.constructor.defaults);this.option(e);var n=++u;this.element.outlayerGUID=n;f[n]=this;this._create();var o=this._getOption("initLayout");if(o){this.layout()}}o.namespace="outlayer",o.Item=n,o.defaults={containerStyle:{position:"relative"},initLayout:true,originLeft:true,originTop:true,resize:true,resizeContainer:true,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var l=o.prototype;function d(t){function e(){t.apply(this,arguments)}e.prototype=Object.create(t.prototype);e.prototype.constructor=e;return e}s.extend(l,e.prototype),l.option=function(t){s.extend(this.options,t)},l._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&this.options[e]!==undefined?this.options[e]:this.options[t]},o.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},l._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);s.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");if(t){this.bindResize()}},l.reloadItems=function(){this.items=this._itemize(this.element.children)},l._itemize=function(t){var e=this._filterFindItemElements(t);var i=this.constructor.Item;var n=[];for(var o=0;o<e.length;o++){var r=e[o];var s=new i(r,this);n.push(s)}return n},l._filterFindItemElements=function(t){return s.filterFindElements(t,this.options.itemSelector)},l.getItemElements=function(){return this.items.map(function(t){return t.element})},l.layout=function(){this._resetLayout();this._manageStamps();var t=this._getOption("layoutInstant");var e=t!==undefined?t:!this._isLayoutInited;this.layoutItems(this.items,e);this._isLayoutInited=true},l._init=l.layout,l._resetLayout=function(){this.getSize()},l.getSize=function(){this.size=r(this.element)},l._getMeasurement=function(t,e){var i=this.options[t];var n;if(!i){this[t]=0}else{if(typeof i=="string"){n=this.element.querySelector(i)}else if(i instanceof HTMLElement){n=i}this[t]=n?r(n)[e]:i}},l.layoutItems=function(t,e){t=this._getItemsForLayout(t);this._layoutItems(t,e);this._postLayout()},l._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},l._layoutItems=function(t,i){this._emitCompleteOnItems("layout",t);if(!t||!t.length){return}var n=[];t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t;e.isInstant=i||t.isLayoutInstant;n.push(e)},this);this._processLayoutQueue(n)},l._getItemLayoutPosition=function(){return{x:0,y:0}},l._processLayoutQueue=function(t){this.updateStagger();t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},l.updateStagger=function(){var t=this.options.stagger;if(t===null||t===undefined){this.stagger=0;return}this.stagger=m(t);return this.stagger},l._positionItem=function(t,e,i,n,o){if(n){t.goTo(e,i)}else{t.stagger(o*this.stagger);t.moveTo(e,i)}},l._postLayout=function(){this.resizeContainer()},l.resizeContainer=function(){var t=this._getOption("resizeContainer");if(!t){return}var e=this._getContainerSize();if(e){this._setContainerMeasure(e.width,true);this._setContainerMeasure(e.height,false)}},l._getContainerSize=i,l._setContainerMeasure=function(t,e){if(t===undefined){return}var i=this.size;if(i.isBorderBox){t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth}t=Math.max(t,0);this.element.style[e?"width":"height"]=t+"px"},l._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o=t.length;if(!t||!o){n();return}var r=0;function s(){r++;if(r==o){n()}}t.forEach(function(t){t.once(e,s)})},l.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n);if(h){this.$element=this.$element||h(this.element);if(e){var o=h.Event(e);o.type=t;this.$element.trigger(o,i)}else{this.$element.trigger(t,i)}}},l.ignore=function(t){var e=this.getItem(t);if(e){e.isIgnored=true}},l.unignore=function(t){var e=this.getItem(t);if(e){delete e.isIgnored}},l.stamp=function(t){t=this._find(t);if(!t){return}this.stamps=this.stamps.concat(t);t.forEach(this.ignore,this)},l.unstamp=function(t){t=this._find(t);if(!t){return}t.forEach(function(t){s.removeFrom(this.stamps,t);this.unignore(t)},this)},l._find=function(t){if(!t){return}if(typeof t=="string"){t=this.element.querySelectorAll(t)}t=s.makeArray(t);return t},l._manageStamps=function(){if(!this.stamps||!this.stamps.length){return}this._getBoundingRect();this.stamps.forEach(this._manageStamp,this)},l._getBoundingRect=function(){var t=this.element.getBoundingClientRect();var e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},l._manageStamp=i,l._getElementOffset=function(t){var e=t.getBoundingClientRect();var i=this._boundingRect;var n=r(t);var o={left:e.left-i.left-n.marginLeft,top:e.top-i.top-n.marginTop,right:i.right-e.right-n.marginRight,bottom:i.bottom-e.bottom-n.marginBottom};return o},l.handleEvent=s.handleEvent,l.bindResize=function(){t.addEventListener("resize",this);this.isResizeBound=true},l.unbindResize=function(){t.removeEventListener("resize",this);this.isResizeBound=false},l.onresize=function(){this.resize()},s.debounceMethod(o,"onresize",100),l.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return}this.layout()},l.needsResizeLayout=function(){var t=r(this.element);var e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},l.addItems=function(t){var e=this._itemize(t);if(e.length){this.items=this.items.concat(e)}return e},l.appended=function(t){var e=this.addItems(t);if(!e.length){return}this.layoutItems(e,true);this.reveal(e)},l.prepended=function(t){var e=this._itemize(t);if(!e.length){return}var i=this.items.slice(0);this.items=e.concat(i);this._resetLayout();this._manageStamps();this.layoutItems(e,true);this.reveal(e);this.layoutItems(i)},l.reveal=function(t){this._emitCompleteOnItems("reveal",t);if(!t||!t.length){return}var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i);t.reveal()})},l.hide=function(t){this._emitCompleteOnItems("hide",t);if(!t||!t.length){return}var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i);t.hide()})},l.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},l.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},l.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t){return i}}},l.getItems=function(t){t=s.makeArray(t);var i=[];t.forEach(function(t){var e=this.getItem(t);if(e){i.push(e)}},this);return i},l.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e);if(!e||!e.length){return}e.forEach(function(t){t.remove();s.removeFrom(this.items,t)},this)},l.destroy=function(){var t=this.element.style;t.height="";t.position="";t.width="";this.items.forEach(function(t){t.destroy()});this.unbindResize();var e=this.element.outlayerGUID;delete f[e];delete this.element.outlayerGUID;if(h){h.removeData(this.element,this.constructor.namespace)}},o.data=function(t){t=s.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},o.create=function(t,e){var i=d(o);i.defaults=s.extend({},o.defaults);s.extend(i.defaults,e);i.compatOptions=s.extend({},o.compatOptions);i.namespace=t;i.data=o.data;i.Item=d(n);s.htmlInit(i,t);if(h&&h.bridget){h.bridget(t,i)}return i};var c={ms:1,s:1e3};function m(t){if(typeof t=="number"){return t}var e=t.match(/(^\d*\.?\d*)(\w*)/);var i=e&&e[1];var n=e&&e[2];if(!i.length){return 0}i=parseFloat(i);var o=c[n]||1;return i*o}return o.Item=n,o}(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window),function(t){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.Item=function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++;n.call(this);this.sortData={}},i.updateSortData=function(){if(this.isIgnored){return}this.sortData.id=this.id;this.sortData["original-order"]=this.id;this.sortData.random=Math.random();var t=this.layout.options.getSortData;var e=this.layout._sorters;for(var i in t){var n=e[i];this.sortData[i]=n(this.element,this)}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e}(t.Outlayer)}(window),function(t){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.LayoutMode=function(e,i){"use strict";function n(t){this.isotope=t;if(t){this.options=t.options[this.namespace];this.element=t.element;this.items=t.filteredItems;this.size=t.size}}var o=n.prototype,t=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i,n=t+e,o="outer"+e;this._getMeasurement(n,o),this[n]||(i=this.getFirstItemSize(),this[n]=i&&i[o]||this.isotope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n}(t.getSize,t.Outlayer)}(window),function(t){t.Masonry=function(t,u){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";var i=e.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){var t,e;this.getContainerWidth(),this.columnWidth||(e=(t=this.items[0])&&t.element,this.columnWidth=e&&u(e).outerWidth||this.containerWidth);var i=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,o=n/i,r=i-n%i,o=Math[r&&r<1?"round":"floor"](o);this.cols=Math.max(o,1)},i.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,e=u(t);this.containerWidth=e&&e.innerWidth},i._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),i=Math.min(i,this.cols),n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),o={x:this.columnWidth*n.col,y:n.y},r=n.y+t.size.outerHeight,s=i+n.col,a=n.col;a<s;a++)this.colYs[a]=r;return o},i._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},i._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},i._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},i._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},i._manageStamp=function(t){var e=u(t),i=this._getElementOffset(t),n=this._getOption("originLeft")?i.left:i.right,o=n+e.outerWidth,r=Math.floor(n/this.columnWidth),r=Math.max(0,r),s=Math.floor(o/this.columnWidth);s-=o%this.columnWidth?0:1,s=Math.min(this.cols-1,s);for(var a=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,h=r;h<=s;h++)this.colYs[h]=Math.max(a,this.colYs[h])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e}(t.Outlayer,t.getSize)}(window),function(t){!function(t,e){"use strict";var i=t.create("masonry"),n=i.prototype,o={_getElementOffset:true,layout:true,_getMeasurement:true};for(var r in e.prototype){if(!o[r]){n[r]=e.prototype[r]}}var s=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems;s.call(this)};var a=n._getOption;n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)}}(t.ModulaIsotope.LayoutMode,t.Masonry)}(window),function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}}}(window.ModulaIsotope.LayoutMode),function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}}}(window.ModulaIsotope.LayoutMode),function(t){t.ModulaIsotope=function(t,n,i,r,e,o){var s=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=n.create("modulaisotope",{layoutMode:"masonry",isJQueryFiltering:true,sortAscending:true});u.Item=e,u.LayoutMode=o;var a=u.prototype;a._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();n.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=["original-order"];for(var t in o.modes){this._initLayoutMode(t)}},a.reloadItems=function(){this.itemGUID=0;n.prototype.reloadItems.call(this)},a._itemize=function(){var t=n.prototype._itemize.apply(this,arguments);for(var e=0;e<t.length;e++){var i=t[e];i.id=this.itemGUID++}this._updateItemsSortData(t);return t},a._initLayoutMode=function(t){var e=o.modes[t];var i=this.options[t]||{};this.options[t]=e.options?r.extend(e.options,i):i;this.modes[t]=new e(this)},a.layout=function(){if(!this._isLayoutInited&&this._getOption("initLayout")){this.arrange();return}this._layout()},a._layout=function(){var t=this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,t);this._isLayoutInited=true},a.arrange=function(t){this.option(t);this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches;this._bindArrangeComplete();if(this._isInstant){this._noTransition(this._hideReveal,[e])}else{this._hideReveal(e)}this._sort();this._layout()},a._init=a.arrange,a._hideReveal=function(t){this.reveal(t.needReveal);this.hide(t.needHide)},a._getIsInstant=function(){var t=this._getOption("layoutInstant");var e=t!==undefined?t:!this._isLayoutInited;this._isInstant=e;return e},a._bindArrangeComplete=function(){var t,e,i;var n=this;function o(){if(t&&e&&i){n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}}this.once("layoutComplete",function(){t=true;o()});this.once("hideComplete",function(){e=true;o()});this.once("revealComplete",function(){i=true;o()})},a._filter=function(t){var e=this.options.filter;e=e||"*";var i=[];var n=[];var o=[];var r=this._getFilterTest(e);for(var s=0;s<t.length;s++){var a=t[s];if(a.isIgnored){continue}var h=r(a);if(h){i.push(a)}if(h&&a.isHidden){n.push(a)}else if(!h&&!a.isHidden){o.push(a)}}return{matches:i,needReveal:n,needHide:o}},a._getFilterTest=function(e){if(s&&this.options.isJQueryFiltering){return function(t){return s(t.element).is(e)}}if(typeof e=="function"){return function(t){return e(t.element)}}return function(t){return i(t.element,e)}},a.updateSortData=function(t){var e;if(t){t=r.makeArray(t);e=this.getItems(t)}else{e=this.items}this._getSorters();this._updateItemsSortData(e)},a._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},a._updateItemsSortData=function(t){var e=t&&t.length;for(var i=0;e&&i<e;i++){var n=t[i];n.updateSortData()}};var f=function(){function t(t){if(typeof t!="string"){return t}var e=h(t).split(" ");var i=e[0];var n=i.match(/^\[(.+)\]$/);var o=n&&n[1];var r=a(o,i);var s=u.sortDataParsers[e[1]];t=s?function(t){return t&&s(r(t))}:function(t){return t&&r(t)};return t}function a(i,n){if(i){return function t(e){return e.getAttribute(i)}}return function t(e){var i=e.querySelector(n);return i&&i.textContent}}return t}();function l(u,f){return function t(e,i){for(var n=0;n<u.length;n++){var o=u[n];var r=e.sortData[o];var s=i.sortData[o];if(r>s||r<s){var a=f[o]!==undefined?f[o]:f;var h=a?1:-1;return(r>s?1:-1)*h}}return 0}}u.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},a._sort=function(){if(!this.options.sortBy){return}var t=r.makeArray(this.options.sortBy);if(!this._getIsSameSortBy(t)){this.sortHistory=t.concat(this.sortHistory)}var e=l(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)},a._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++){if(t[e]!=this.sortHistory[e]){return false}}return true},a._mode=function(){var t=this.options.layoutMode;var e=this.modes[t];if(!e){throw new Error("No layout mode: "+t)}e.options=this.options[t];return e},a._resetLayout=function(){n.prototype._resetLayout.call(this);this._mode()._resetLayout()},a._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},a._manageStamp=function(t){this._mode()._manageStamp(t)},a._getContainerSize=function(){return this._mode()._getContainerSize()},a.needsResizeLayout=function(){return this._mode().needsResizeLayout()},a.appended=function(t){var e=this.addItems(t);if(!e.length){return}var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)},a.prepended=function(t){var e=this._itemize(t);if(!e.length){return}this._resetLayout();this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems);this.filteredItems=i.concat(this.filteredItems);this.items=e.concat(this.items)},a._filterRevealAdded=function(t){var e=this._filter(t);this.hide(e.needHide);this.reveal(e.matches);this.layoutItems(e.matches,true);return e.matches},a.insert=function(t){var e=this.addItems(t);if(!e.length){return}var i,n;var o=e.length;for(i=0;i<o;i++){n=e[i];this.element.appendChild(n.element)}var r=this._filter(e).matches;for(i=0;i<o;i++){e[i].isLayoutInstant=true}this.arrange();for(i=0;i<o;i++){delete e[i].isLayoutInstant}this.reveal(r)};var d=a.remove;return a.remove=function(t){t=r.makeArray(t);var e=this.getItems(t);d.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var o=e[n];r.removeFrom(this.filteredItems,o)}},a.shuffle=function(){for(var t=0;t<this.items.length;t++){this.items[t].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},a._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=t.apply(this,e);return this.options.transitionDuration=i,n},a.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},u}(t,t.Outlayer,(t.getSize,t.matchesSelector),t.fizzyUIUtils,t.ModulaIsotope.Item,t.ModulaIsotope.LayoutMode)}(window);
2
  !function(t){t.Packery=t.Packery||{},t.Packery.Rect=function(){function a(t){for(var i in a.defaults){this[i]=a.defaults[i]}for(i in t){this[i]=t[i]}}a.defaults={x:0,y:0,width:0,height:0};var t=a.prototype;return t.contains=function(t){var i=t.width||0,e=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+i&&this.y+this.height>=t.y+e},t.overlaps=function(t){var i=this.x+this.width,e=this.y+this.height,s=t.x+t.width,r=t.y+t.height;return this.x<s&&i>t.x&&this.y<r&&e>t.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var i,e=[],s=this.x+this.width,r=this.y+this.height,h=t.x+t.width,n=t.y+t.height;return this.y<t.y&&(i=new a({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),e.push(i)),h<s&&(i=new a({x:h,y:this.y,width:s-h,height:this.height}),e.push(i)),n<r&&(i=new a({x:this.x,y:n,width:this.width,height:r-n}),e.push(i)),this.x<t.x&&(i=new a({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),e.push(i)),e},t.canFit=function(t){return this.width>=t.width&&this.height>=t.height},a}()}(window),function(t){var i=t.Packery=t.Packery||{};i.Packer=function(i){function t(t,i,e){this.width=t||0;this.height=i||0;this.sortDirection=e||"downwardLeftToRight";this.reset()}var e=t.prototype;e.reset=function(){this.spaces=[];var t=new i({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t);this.sorter=s[this.sortDirection]||s.downwardLeftToRight},e.pack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.canFit(t)){this.placeInSpace(t,e);break}}},e.columnPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];var s=e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.height>=t.height-.01;if(s){t.y=e.y;this.placed(t);break}}},e.rowPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];var s=e.y<=t.y&&e.y+e.height>=t.y+t.height&&e.width>=t.width-.01;if(s){t.x=e.x;this.placed(t);break}}},e.placeInSpace=function(t,i){t.x=i.x;t.y=i.y;this.placed(t)},e.placed=function(t){var i=[];for(var e=0;e<this.spaces.length;e++){var s=this.spaces[e];var r=s.getMaximalFreeRects(t);if(r){i.push.apply(i,r)}else{i.push(s)}}this.spaces=i;this.mergeSortSpaces()},e.mergeSortSpaces=function(){t.mergeRects(this.spaces);this.spaces.sort(this.sorter)},e.addSpace=function(t){this.spaces.push(t);this.mergeSortSpaces()},t.mergeRects=function(t){var i=0;var e=t[i];t:while(e){var s=0;var r=t[i+s];while(r){if(r==e){s++}else if(r.contains(e)){t.splice(i,1);e=t[i];continue t}else if(e.contains(r)){t.splice(i+s,1)}else{s++}r=t[i+s]}i++;e=t[i]}return t};var s={downwardLeftToRight:function(t,i){return t.y-i.y||t.x-i.x},rightwardTopToBottom:function(t,i){return t.x-i.x||t.y-i.y}};return t}(i.Rect)}(window),function(t){t.Packery.Item=function(i,t){var e,s=typeof document.documentElement.style.transform=="string"?"transform":"WebkitTransform",r=function t(){i.Item.apply(this,arguments)},h=r.prototype=Object.create(i.Item.prototype),n=h._create;h._create=function(){n.call(this);this.rect=new t};var a=h.moveTo;return h.moveTo=function(t,i){var e=Math.abs(this.position.x-t),s=Math.abs(this.position.y-i);this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&e<1&&s<1?this.goTo(t,i):a.apply(this,arguments)},h.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&s&&(this.element.style[s]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},h.disablePlacing=function(){this.isPlacing=!1},h.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},h.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||((t=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},h.positionDropPlaceholder=function(){this.dropPlaceholder.style[s]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},h.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},r}(t.Outlayer,t.Packery.Rect)}(window),function(t){t.Packery=function(u,t,f,i,e){f.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var s=t.create("packery");s.Item=e;var r=s.prototype;function h(t,i){return t.position.y-i.position.y||t.position.x-i.position.x}function n(t,i){return t.position.x-i.position.x||t.position.y-i.position.y}function a(t,i){var e=i.x-t.x;var s=i.y-t.y;return Math.sqrt(e*e+s*s)}r._create=function(){t.prototype._create.call(this);this.packer=new i;this.shiftPacker=new i;this.isEnabled=true;this.dragItemCount=0;var s=this;this.handleDraggabilly={dragStart:function(){s.itemDragStart(this.element)},dragMove:function(){s.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){s.itemDragEnd(this.element)}};this.handleUIDraggable={start:function t(i,e){if(!e){return}s.itemDragStart(i.currentTarget)},drag:function t(i,e){if(!e){return}s.itemDragMove(i.currentTarget,e.position.left,e.position.top)},stop:function t(i,e){if(!e){return}s.itemDragEnd(i.currentTarget)}}},r._resetLayout=function(){this.getSize();this._getMeasurements();var t,i,e;if(this._getOption("horizontal")){t=Infinity;i=this.size.innerHeight+this.gutter;e="rightwardTopToBottom"}else{t=this.size.innerWidth+this.gutter;i=Infinity;e="downwardLeftToRight"}this.packer.width=this.shiftPacker.width=t;this.packer.height=this.shiftPacker.height=i;this.packer.sortDirection=this.shiftPacker.sortDirection=e;this.packer.reset();this.maxY=0;this.maxX=0},r._getMeasurements=function(){this._getMeasurement("columnWidth","width");this._getMeasurement("rowHeight","height");this._getMeasurement("gutter","width")},r._getItemLayoutPosition=function(t){this._setRectSize(t.element,t.rect);if(this.isShifting||this.dragItemCount>0){var i=this._getPackMethod();this.packer[i](t.rect)}else{this.packer.pack(t.rect)}this._setMaxXY(t.rect);return t.rect},r.shiftLayout=function(){this.isShifting=true;this.layout();delete this.isShifting},r._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},r._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX);this.maxY=Math.max(t.y+t.height,this.maxY)},r._setRectSize=function(t,i){var e=u(t);var s=e.outerWidth;var r=e.outerHeight;if(s||r){s=this._applyGridGutter(s,this.columnWidth);r=this._applyGridGutter(r,this.rowHeight)}i.width=Math.min(s,this.packer.width);i.height=Math.min(r,this.packer.height)},r._applyGridGutter=function(t,i){if(!i){return t+this.gutter}i+=this.gutter;var e=t%i;var s=e&&e<1?"round":"ceil";t=Math[s](t/i)*i;return t},r._getContainerSize=function(){if(this._getOption("horizontal")){return{width:this.maxX-this.gutter}}else{return{height:this.maxY-this.gutter}}},r._manageStamp=function(t){var i=this.getItem(t);var e;if(i&&i.isPlacing){e=i.rect}else{var s=this._getElementOffset(t);e=new f({x:this._getOption("originLeft")?s.left:s.right,y:this._getOption("originTop")?s.top:s.bottom})}this._setRectSize(t,e);this.packer.placed(e);this._setMaxXY(e)},r.sortItemsByPosition=function(){var t=this._getOption("horizontal")?n:h;this.items.sort(t)},r.fit=function(t,i,e){var s=this.getItem(t);if(!s){return}this.stamp(s.element);s.enablePlacing();this.updateShiftTargets(s);i=i===undefined?s.rect.x:i;e=e===undefined?s.rect.y:e;this.shift(s,i,e);this._bindFitEvents(s);s.moveTo(s.rect.x,s.rect.y);this.shiftLayout();this.unstamp(s.element);this.sortItemsByPosition();s.disablePlacing()},r._bindFitEvents=function(t){var i=this;var e=0;function s(){e++;if(e!=2){return}i.dispatchEvent("fitComplete",null,[t])}t.once("layout",s);this.once("layoutComplete",s)},r.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return}if(this.options.shiftPercentResize){this.resizeShiftPercentLayout()}else{this.layout()}},r.needsResizeLayout=function(){var t=u(this.element);var i=this._getOption("horizontal")?"innerHeight":"innerWidth";return t[i]!=this.size[i]},r.resizeShiftPercentLayout=function(){var t=this._getItemsForLayout(this.items);var i=this._getOption("horizontal");var e=i?"y":"x";var s=i?"height":"width";var r=i?"rowHeight":"columnWidth";var h=i?"innerHeight":"innerWidth";var n=this[r];n=n&&n+this.gutter;if(n){this._getMeasurements();var a=this[r]+this.gutter;t.forEach(function(t){var i=Math.round(t.rect[e]/n);t.rect[e]=i*a})}else{var o=u(this.element)[h]+this.gutter;var c=this.packer[s];t.forEach(function(t){t.rect[e]=t.rect[e]/c*o})}this.shiftLayout()},r.itemDragStart=function(t){if(!this.isEnabled){return}this.stamp(t);var i=this.getItem(t);if(!i){return}i.enablePlacing();i.showDropPlaceholder();this.dragItemCount++;this.updateShiftTargets(i)},r.updateShiftTargets=function(t){this.shiftPacker.reset();this._getBoundingRect();var r=this._getOption("originLeft");var h=this._getOption("originTop");this.stamps.forEach(function(t){var i=this.getItem(t);if(i&&i.isPlacing){return}var e=this._getElementOffset(t);var s=new f({x:r?e.left:e.right,y:h?e.top:e.bottom});this._setRectSize(t,s);this.shiftPacker.placed(s)},this);var o=this._getOption("horizontal");var i=o?"rowHeight":"columnWidth";var c=o?"height":"width";this.shiftTargetKeys=[];this.shiftTargets=[];var u;var g=this[i];g=g&&g+this.gutter;if(g){var e=Math.ceil(t.rect[c]/g);var s=Math.floor((this.shiftPacker[c]+this.gutter)/g);u=(s-e)*g;for(var n=0;n<s;n++){this._addShiftTarget(n*g,0,u)}}else{u=this.shiftPacker[c]+this.gutter-t.rect[c];this._addShiftTarget(0,0,u)}var a=this._getItemsForLayout(this.items);var l=this._getPackMethod();a.forEach(function(t){var i=t.rect;this._setRectSize(t.element,i);this.shiftPacker[l](i);this._addShiftTarget(i.x,i.y,u);var e=o?i.x+i.width:i.x;var s=o?i.y:i.y+i.height;this._addShiftTarget(e,s,u);if(g){var r=Math.round(i[c]/g);for(var h=1;h<r;h++){var n=o?e:i.x+g*h;var a=o?i.y+g*h:s;this._addShiftTarget(n,a,u)}}},this)},r._addShiftTarget=function(t,i,e){var s=this._getOption("horizontal")?i:t;if(s!==0&&s>e){return}var r=t+","+i;var h=this.shiftTargetKeys.indexOf(r)!=-1;if(h){return}this.shiftTargetKeys.push(r);this.shiftTargets.push({x:t,y:i})},r.shift=function(t,i,e){var s;var r=Infinity;var h={x:i,y:e};this.shiftTargets.forEach(function(t){var i=a(t,h);if(i<r){s=t;r=i}});t.rect.x=s.x;t.rect.y=s.y};var o=120;r.itemDragMove=function(t,i,e){var s=this.isEnabled&&this.getItem(t);if(!s){return}i-=this.size.paddingLeft;e-=this.size.paddingTop;var r=this;function h(){r.shift(s,i,e);s.positionDropPlaceholder();r.layout()}var n=new Date;if(this._itemDragTime&&n-this._itemDragTime<o){clearTimeout(this.dragTimeout);this.dragTimeout=setTimeout(h,o)}else{h();this._itemDragTime=n}},r.itemDragEnd=function(t){var i=this.isEnabled&&this.getItem(t);if(!i){return}clearTimeout(this.dragTimeout);i.element.classList.add("is-positioning-post-drag");var e=0;var s=this;function r(){e++;if(e!=2){return}i.element.classList.remove("is-positioning-post-drag");i.hideDropPlaceholder();s.dispatchEvent("dragItemPositioned",null,[i])}i.once("layout",r);this.once("layoutComplete",r);i.moveTo(i.rect.x,i.rect.y);this.layout();this.dragItemCount=Math.max(0,this.dragItemCount-1);this.sortItemsByPosition();i.disablePlacing();this.unstamp(i.element)},r.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},r.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},r._bindDraggabillyEvents=function(t,i){var e=this.handleDraggabilly;t[i]("dragStart",e.dragStart);t[i]("dragMove",e.dragMove);t[i]("dragEnd",e.dragEnd)},r.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},r.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},r._bindUIDraggableEvents=function(t,i){var e=this.handleUIDraggable;t[i]("dragstart",e.start)[i]("drag",e.drag)[i]("dragstop",e.stop)};var c=r.destroy;return r.destroy=function(){c.apply(this,arguments),this.isEnabled=!1},s.Rect=f,s.Packer=i,s}(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window),function(t){!function(t,i){var e=t.create("packery"),s=e.prototype,r={_getElementOffset:true,_getMeasurement:true};for(var h in i.prototype){if(!r[h]){s[h]=i.prototype[h]}}var n=s._resetLayout;s._resetLayout=function(){this.packer=this.packer||new i.Packer;this.shiftPacker=this.shiftPacker||new i.Packer;n.apply(this,arguments)};var a=s._getItemLayoutPosition;s._getItemLayoutPosition=function(t){t.rect=t.rect||new i.Rect;return a.call(this,t)};var o=s.needsResizeLayout;s.needsResizeLayout=function(){if(this._getOption("horizontal")){return this.needsVerticalResizeLayout()}else{return o.call(this)}};var c=s._getOption;s._getOption=function(t){return"horizontal"==t?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:c.apply(this.isotope,arguments)}}(t.ModulaIsotope.LayoutMode,t.Packery)}(window);
3
  !function(e){var t=function(l,k){"use strict";if(!k.getElementsByClassName){return}var D,H,O=k.documentElement,o=l.Date,a=l.HTMLPictureElement,u="addEventListener",P="getAttribute",f=l[u],$=l.setTimeout,c=l.requestAnimationFrame||$,d=l.requestIdleCallback,I=/^picture$/i,r=["load","error","lazyincluded","_lazyloaded"],i={},q=Array.prototype.forEach,j=function(e,t){if(!i[t]){i[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")}return i[t].test(e[P]("class")||"")&&i[t]},G=function(e,t){if(!j(e,t)){e.setAttribute("class",(e[P]("class")||"").trim()+" "+t)}},J=function(e,t){var i;if(i=j(e,t)){e.setAttribute("class",(e[P]("class")||"").replace(i," "))}},K=function(t,i,e){var a=e?u:"removeEventListener";if(e){K(t,i)}r.forEach(function(e){t[a](e,i)})},Q=function(e,t,i,a,r){var n=k.createEvent("Event");if(!i){i={}}i.instance=D;n.initEvent(t,!a,!r);n.detail=i;e.dispatchEvent(n);return n},U=function(e,t){var i;if(!a&&(i=l.picturefill||H.pf)){if(t&&t.src&&!e[P]("srcset")){e.setAttribute("srcset",t.src)}i({reevaluate:true,elements:[e]})}else if(t&&t.src){e.src=t.src}},V=function(e,t){return(getComputedStyle(e,null)||{})[t]},s=function(e,t,i){i=i||e.offsetWidth;while(i<H.minSize&&t&&!e._lazysizesWidth){i=t.offsetWidth;t=t.parentNode}return i},X=function(){var i,a;var t=[];var r=[];var n=t;var s=function(){var e=n;n=t.length?r:t;i=true;a=false;while(e.length){e.shift()()}i=false};var e=function(e,t){if(i&&!t){e.apply(this,arguments)}else{n.push(e);if(!a){a=true;(k.hidden?$:c)(s)}}};e._lsFlush=s;return e}(),Y=function(i,e){return e?function(){X(i)}:function(){var e=this;var t=arguments;X(function(){i.apply(e,t)})}},Z=function(e){var i;var a=0;var r=H.throttleDelay;var n=H.ricTimeout;var t=function(){i=false;a=o.now();e()};var s=d&&n>49?function(){d(t,{timeout:n});if(n!==H.ricTimeout){n=H.ricTimeout}}:Y(function(){$(t)},true);return function(e){var t;if(e=e===true){n=33}if(i){return}i=true;t=r-(o.now()-a);if(t<0){t=0}if(e||t<9){s()}else{$(s,t)}}},ee=function(e){var t,i;var a=99;var r=function(){t=null;e()};var n=function(){var e=o.now()-i;if(e<a){$(n,a-e)}else{(d||r)(r)}};return function(){i=o.now();if(!t){t=$(n,a)}}};(function(){var e;var t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};H=l.lazySizesConfig||l.lazysizesConfig||{};for(e in t){if(!(e in H)){H[e]=t[e]}}l.lazySizesConfig=H;$(function(){if(H.init){n()}})})();var e=function(){var v,m,c,z,t;var h,y,g,p,C,b,A;var n=/^img$/i;var d=/^iframe$/i;var E="onscroll"in l&&!/(gle|ing)bot/.test(navigator.userAgent);var _=0;var w=0;var M=0;var N=-1;var x=function(e){M--;if(!e||M<0||!e.target){M=0}};var W=function(e){if(A==null){A=V(k.body,"visibility")=="hidden"}return A||V(e.parentNode,"visibility")!="hidden"&&V(e,"visibility")!="hidden"};var T=function(e,t){var i;var a=e;var r=W(e);g-=t;b+=t;p-=t;C+=t;while(r&&(a=a.offsetParent)&&a!=k.body&&a!=O){r=(V(a,"opacity")||1)>0;if(r&&V(a,"overflow")!="visible"){i=a.getBoundingClientRect();r=C>i.left&&p<i.right&&b>i.top-1&&g<i.bottom+1}}return r};var e=function(){var e,t,i,a,r,n,s,l,o,u,f,c;var d=D.elements;if((z=H.loadMode)&&M<8&&(e=d.length)){t=0;N++;u=!H.expand||H.expand<1?O.clientHeight>500&&O.clientWidth>500?500:370:H.expand;D._defEx=u;f=u*H.expFactor;c=H.hFac;A=null;if(w<f&&M<1&&N>2&&z>2&&!k.hidden){w=f;N=0}else if(z>1&&N>1&&M<6){w=u}else{w=_}for(;t<e;t++){if(!d[t]||d[t]._lazyRace){continue}if(!E){R(d[t]);continue}if(!(l=d[t][P]("data-expand"))||!(n=l*1)){n=w}if(o!==n){h=innerWidth+n*c;y=innerHeight+n;s=n*-1;o=n}i=d[t].getBoundingClientRect();if((b=i.bottom)>=s&&(g=i.top)<=y&&(C=i.right)>=s*c&&(p=i.left)<=h&&(b||C||p||g)&&(H.loadHidden||W(d[t]))&&(m&&M<3&&!l&&(z<3||N<4)||T(d[t],n))){R(d[t]);r=true;if(M>9){break}}else if(!r&&m&&!a&&M<4&&N<4&&z>2&&(v[0]||H.preloadAfterLoad)&&(v[0]||!l&&(b||C||p||g||d[t][P](H.sizesAttr)!="auto"))){a=v[0]||d[t]}}if(a&&!r){R(a)}}};var i=Z(e);var B=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}x(e);G(t,H.loadedClass);J(t,H.loadingClass);K(t,F);Q(t,"lazyloaded")};var a=Y(B);var F=function(e){a({target:e.target})};var S=function(t,i){try{t.contentWindow.location.replace(i)}catch(e){t.src=i}};var L=function(e){var t;var i=e[P](H.srcsetAttr);if(t=H.customMedia[e[P]("data-media")||e[P]("media")]){e.setAttribute("media",t)}if(i){e.setAttribute("srcset",i)}};var s=Y(function(e,t,i,a,r){var n,s,l,o,u,f;if(!(u=Q(e,"lazybeforeunveil",t)).defaultPrevented){if(a){if(i){G(e,H.autosizesClass)}else{e.setAttribute("sizes",a)}}s=e[P](H.srcsetAttr);n=e[P](H.srcAttr);if(r){l=e.parentNode;o=l&&I.test(l.nodeName||"")}f=t.firesLoad||"src"in e&&(s||n||o);u={target:e};G(e,H.loadingClass);if(f){clearTimeout(c);c=$(x,2500);K(e,F,true)}if(o){q.call(l.getElementsByTagName("source"),L)}if(s){e.setAttribute("srcset",s)}else if(n&&!o){if(d.test(e.nodeName)){S(e,n)}else{e.src=n}}if(r&&(s||o)){U(e,{src:n})}}if(e._lazyRace){delete e._lazyRace}J(e,H.lazyClass);X(function(){if(!f||e.complete&&e.naturalWidth>1){B(u);e._lazyCache=true;$(function(){if("_lazyCache"in e){delete e._lazyCache}},9)}},true)});var R=function(e){var t;var i=n.test(e.nodeName);var a=i&&(e[P](H.sizesAttr)||e[P]("sizes"));var r=a=="auto";if((r||!m)&&i&&(e[P]("src")||e.srcset)&&!e.complete&&!j(e,H.errorClass)&&j(e,H.lazyClass)){return}t=Q(e,"lazyunveilread").detail;if(r){te.updateElem(e,true,e.offsetWidth)}e._lazyRace=true;M++;s(e,t,r,a,i)};var r=function(){if(m){return}if(o.now()-t<999){$(r,999);return}var e=ee(function(){H.loadMode=3;i()});m=true;H.loadMode=3;i();f("scroll",function(){if(H.loadMode==3){H.loadMode=2}e()},true)};return{_:function(){t=o.now();D.elements=k.getElementsByClassName(H.lazyClass);v=k.getElementsByClassName(H.lazyClass+" "+H.preloadClass);f("scroll",i,true);f("resize",i,true);if(l.MutationObserver){new MutationObserver(i).observe(O,{childList:true,subtree:true,attributes:true})}else{O[u]("DOMNodeInserted",i,true);O[u]("DOMAttrModified",i,true);setInterval(i,999)}f("hashchange",i,true);["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(e){k[u](e,i,true)});if(/d$|^c/.test(k.readyState)){r()}else{f("load",r);k[u]("DOMContentLoaded",i);$(r,2e4)}if(D.elements.length){e();X._lsFlush()}else{i()}},checkElems:i,unveil:R}}(),te=function(){var i;var n=Y(function(e,t,i,a){var r,n,s;e._lazysizesWidth=a;a+="px";e.setAttribute("sizes",a);if(I.test(t.nodeName||"")){r=t.getElementsByTagName("source");for(n=0,s=r.length;n<s;n++){r[n].setAttribute("sizes",a)}}if(!i.detail.dataAttr){U(e,i.detail)}});var a=function(e,t,i){var a;var r=e.parentNode;if(r){i=s(e,r,i);a=Q(e,"lazybeforesizes",{width:i,dataAttr:!!t});if(!a.defaultPrevented){i=a.detail.width;if(i&&i!==e._lazysizesWidth){n(e,r,a,i)}}}};var e=function(){var e;var t=i.length;if(t){e=0;for(;e<t;e++){a(i[e])}}};var t=ee(e);return{_:function(){i=k.getElementsByClassName(H.autosizesClass);f("resize",t)},checkElems:t,updateElem:a}}(),n=function(){if(!n.i){n.i=true;te._();e._()}};return D={cfg:H,autoSizer:te,loader:e,init:n,uP:U,aC:G,rC:J,hC:j,fire:Q,gW:s,rAF:X}}(e,e.document);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}(window);
4
+ function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);var i=t.getBoundingClientRect();return i.top-jQuery(window).height()<=-100&&-400<=i.top-jQuery(window).height()||i.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")})}),function(c,r,u,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function s(t,i){this.element=t,this.$element=c(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=c.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}s.prototype.init=function(){var n=this;c(u).trigger("modula_api_before_init",[n]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),c(r).resize(function(){n.onResize(n)}),c(r).on("modula-update",function(){n.onResize(n)}),c(u).on("lazyloaded",function(t){var i,e,o=c(t.target);"modula"==o.data("source")&&(o.data("size",{width:o.width(),height:o.height()}),(i=o.parents(".modula-item")).addClass("tg-loaded"),e=n.$items.not(".jtg-hidden").index(i),n.placeImage(e),n.isIsotope&&n.$itemsCnt.modulaisotope("layout"))}),n.options.inView&&jQuery(r).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(n.$element)&&n.$element.addClass("modula-loaded-scale")}),this.setupSocial(),this.options.onComplete&&this.options.onComplete(),"fancybox"!=n.options.lightbox||n.options.initLightbox||this.initLightbox(),c(u).trigger("modula_api_after_init",[n])},s.prototype.initLightbox=function(){var o=this;o.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=c.map(o.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),e=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{$thumb:e.parents(".modula-item"),caption:i.data("caption"),alt:e.attr("alt"),image_id:i.attr("data-image-id")}}}),e=o.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,o.options.lightboxOpts,e)})},s.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},s.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),d=this,l=this.options.columns,i=u.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?l=this.options.mobileColumns:i<=768&&(l=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(l-1))/l:Math.floor(t/l*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=c(i).data("width"),a=c(i).data("height");12<s&&(s=12),"1"==d.options.enableResponsive&&(e=s,o=a,1==l?a=(s=1)*o/e:((s=Math.round(l*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+d.options.gutter*(s-1),n.height=Math.round(h)*a+d.options.gutter*(a-1),c(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),c(i).css(c(i).data("size")),c(i).find(".figc").css({width:c(i).data("size").width,height:c(i).data("size").height}),r.loadImage(t)});var e={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(d.options.gutter)}};this.$itemsCnt.modulaisotope(e),this.isIsotope=!0},s.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];c(i).data("size",e),c(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),c(i).css({width:e.width,height:e.height}),c(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},s.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},s.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},s.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++){(o=this.tiles[i]).area>this.tiles[t].area&&(t=i)}var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},s.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),c(u).trigger("modula_api_reset",[this])},s.prototype.onResize=function(i){i.lastWidth!=i.$itemsCnt.width()&&(clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope("layout")},100))},s.prototype.loadImage=function(t){var i,e=this,o=e.$items.not(".jtg-hidden").eq(t).find(".pic"),n={};"0"==e.options.lazyLoad&&(void 0===o.attr("width")&&void 0===o.attr("height")?((i=new Image).onload=function(){n={width:this.width,height:this.height},o.data("size",n),e.placeImage(t)},"undefined"!=o.attr("src")?i.src=o.attr("src"):i.src=o.data("src")):(n={width:o.width(),height:o.height()},o.data("size",n),e.placeImage(t)))},s.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",r={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(r.width=o.width,r.left=0,a){case"top":r.top=0;break;case"middle":r.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":r.bottom=0}else switch(r.height=o.height,r.top=0,h){case"left":r.left=0;break;case"center":r.left=0-(o.height*s-o.width)/2;break;case"right":r.right=0}e.css(r),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},s.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&h(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&a(this.$items,this),this.options.enableEmail&&l(this.$items,this)},s.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption"),e=u.title;return 0<i.length&&(e=c.trim(i)),r.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split("#")[0])+"&text="+encodeURI(e),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption");u.title;0<e.length&&c.trim(e);i.attr("src");var o="//www.facebook.com/sharer.php?u="+location.href;return r.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},a=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption");u.title;return 0<i.length&&c.trim(i),r.open("https://api.whatsapp.com/send?text="+encodeURI(r.location.href.split("#")[0])+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},h=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption"),o=u.title;0<e.length&&(o=c.trim(e));var n,s,a,h="http://pinterest.com/pin/create/button/?url="+encodeURI(location.href)+"&description="+encodeURI(o);return 1==i.length&&(n=i.attr("src"),h+="&media="+(s=n,(a=u.createElement("img")).src=s,s=a.src,a.src=null,s)),r.open(h,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();var i="//linkedin.com/shareArticle?mini=true&url="+ +encodeURI(location.href);return r.open(i,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,s){t.find(".modula-icon-email").click(function(t){var i=encodeURI(s.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,n="mailto:?subject="+i+"&body="+encodeURI(s.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return r.open(n,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};c.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){c.data(this,"plugin_"+n)||c.data(this,"plugin_"+n,new s(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=c.data(this,"plugin_"+n);t instanceof s&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&c.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).attr("id"),i=jQuery(this).data("config");jQuery("#"+t).modulaGallery(i)})});
assets/js/modula-wfl.js CHANGED
@@ -1,3 +1,3 @@
1
  !function(t){t.jQueryBridget=function(t,e){"use strict";var r=Array.prototype.slice,i=t.console,l=typeof i=="undefined"?function(){}:function(t){i.error(t)};function n(u,o,f){f=f||e||t.jQuery;if(!f){return}if(!o.prototype.option){o.prototype.option=function(t){if(!f.isPlainObject(t)){return}this.options=f.extend(true,this.options,t)}}f.fn[u]=function(t){if(typeof t=="string"){var e=r.call(arguments,1);return i(this,t,e)}n(this,t);return this};function i(t,r,s){var a;var h="$()."+u+'("'+r+'")';t.each(function(t,e){var i=f.data(e,u);if(!i){l(u+" not initialized. Cannot call methods, i.e. "+h);return}var n=i[r];if(!n||r.charAt(0)=="_"){l(h+" is not a valid method");return}var o=n.apply(i,s);a=a===undefined?o:a});return a!==undefined?a:t}function n(t,n){t.each(function(t,e){var i=f.data(e,u);if(i){i.option(n);i._init()}else{i=new o(e,n);f.data(e,u,i)}})}s(f)}function s(t){if(!t||t&&t.bridget){return}t.bridget=n}return s(e||t.jQuery),n}(t,t.jQuery)}(window),function(t){function e(){}var i;t.EvEmitter=((i=e.prototype).on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},i.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},i.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},i.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o];n&&n[r]&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},i.allOff=function(){delete this._events,delete this._onceEvents},e)}("undefined"!=typeof window?window:this),window.getSize=function(){"use strict";function v(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function t(){}var i=typeof console=="undefined"?t:function(t){console.error(t)},y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],_=y.length;function I(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<_;e++){var i=y[e];t[i]=0}return t}function z(t){var e=getComputedStyle(t);if(!e){i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See https://bit.ly/getsizebug1")}return e}var n=false,S;function E(){if(n){return}n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=z(t);S=Math.round(v(i.width))==200;o.isBoxSizeOuter=S;e.removeChild(t)}function o(t){E();if(typeof t=="string"){t=document.querySelector(t)}if(!t||typeof t!="object"||!t.nodeType){return}var e=z(t);if(e.display=="none"){return I()}var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var o=0;o<_;o++){var r=y[o];var s=e[r];var a=parseFloat(s);i[r]=!isNaN(a)?a:0}var h=i.paddingLeft+i.paddingRight;var u=i.paddingTop+i.paddingBottom;var f=i.marginLeft+i.marginRight;var l=i.marginTop+i.marginBottom;var d=i.borderLeftWidth+i.borderRightWidth;var c=i.borderTopWidth+i.borderBottomWidth;var m=n&&S;var p=v(e.width);if(p!==false){i.width=p+(m?0:h+d)}var g=v(e.height);if(g!==false){i.height=g+(m?0:u+c)}i.innerWidth=i.width-(h+d);i.innerHeight=i.height-(u+c);i.outerWidth=i.width+f;i.outerHeight=i.height+l;return i}return o}(),window.matchesSelector=function(){"use strict";var n=function(){var t=window.Element.prototype;if(t.matches){return"matches"}if(t.matchesSelector){return"matchesSelector"}var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var o=n+"MatchesSelector";if(t[o]){return o}}}();return function t(e,i){return e[n](i)}}(),function(t){t.fizzyUIUtils=function(u,r){var f={extend:function(t,e){for(var i in e){t[i]=e[i]}return t},modulo:function(t,e){return(t%e+e)%e}},i=Array.prototype.slice;f.makeArray=function(t){if(Array.isArray(t)){return t}if(t===null||t===undefined){return[]}var e=typeof t=="object"&&typeof t.length=="number";if(e){return i.call(t)}return[t]},f.removeFrom=function(t,e){var i=t.indexOf(e);if(i!=-1){t.splice(i,1)}},f.getParent=function(t,e){while(t.parentNode&&t!=document.body){t=t.parentNode;if(r(t,e)){return t}}},f.getQueryElement=function(t){if(typeof t=="string"){return document.querySelector(t)}return t},f.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}},f.filterFindElements=function(t,n){t=f.makeArray(t);var o=[];t.forEach(function(t){if(!(t instanceof HTMLElement)){return}if(!n){o.push(t);return}if(r(t,n)){o.push(t)}var e=t.querySelectorAll(n);for(var i=0;i<e.length;i++){o.push(e[i])}});return o},f.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e];var r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments;var i=this;this[r]=setTimeout(function(){o.apply(i,e);delete i[r]},n)}},f.docReady=function(t){var e=document.readyState;if(e=="complete"||e=="interactive"){setTimeout(t)}else{document.addEventListener("DOMContentLoaded",t)}},f.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var l=u.console;return f.htmlInit=function(a,h){f.docReady(function(){var t=f.toDashed(h),o="data-"+t,e=document.querySelectorAll("["+o+"]"),i=document.querySelectorAll(".js-"+t),n=f.makeArray(e).concat(f.makeArray(i)),r=o+"-options",s=u.jQuery;n.forEach(function(e){var t,i=e.getAttribute(o)||e.getAttribute(r);try{t=i&&JSON.parse(i)}catch(t){return void(l&&l.error("Error parsing "+o+" on "+e.className+": "+t))}var n=new a(e,t);s&&s.data(e,h,n)})})},f}(t,t.matchesSelector)}(window),function(t){t.Outlayer={},t.Outlayer.Item=function(t,e){"use strict";function o(t){for(var e in t){return false}e=null;return true}var i=document.documentElement.style,n=typeof i.transition=="string"?"transition":"WebkitTransition",r=typeof i.transform=="string"?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],a={transform:r,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function h(t,e){if(!t){return}this.element=t;this.layout=e;this.position={x:0,y:0};this._create()}var u=h.prototype=Object.create(t.prototype);function f(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}u.constructor=h,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},u.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}},u.getSize=function(){this.size=e(this.element)},u.css=function(t){var e=this.element.style;for(var i in t){var n=a[i]||i;e[n]=t[i]}},u.getPosition=function(){var t=getComputedStyle(this.element);var e=this.layout._getOption("originLeft");var i=this.layout._getOption("originTop");var n=t[e?"left":"right"];var o=t[i?"top":"bottom"];var r=parseFloat(n);var s=parseFloat(o);var a=this.layout.size;if(n.indexOf("%")!=-1){r=r/100*a.width}if(o.indexOf("%")!=-1){s=s/100*a.height}r=isNaN(r)?0:r;s=isNaN(s)?0:s;r-=e?a.paddingLeft:a.paddingRight;s-=i?a.paddingTop:a.paddingBottom;this.position.x=r;this.position.y=s},u.layoutPosition=function(){var t=this.layout.size;var e={};var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");var o=i?"paddingLeft":"paddingRight";var r=i?"left":"right";var s=i?"right":"left";var a=this.position.x+t[o];e[r]=this.getXValue(a);e[s]="";var h=n?"paddingTop":"paddingBottom";var u=n?"top":"bottom";var f=n?"bottom":"top";var l=this.position.y+t[h];e[u]=this.getYValue(l);e[f]="";this.css(e);this.emitEvent("layout",[this])},u.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},u.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},u._transitionTo=function(t,e){this.getPosition();var i=this.position.x;var n=this.position.y;var o=t==this.position.x&&e==this.position.y;this.setPosition(t,e);if(o&&!this.isTransitioning){this.layoutPosition();return}var r=t-i;var s=e-n;var a={};a.transform=this.getTranslate(r,s);this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:true})},u.getTranslate=function(t,e){var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");t=i?t:-t;e=n?e:-e;return"translate3d("+t+"px, "+e+"px, 0)"},u.goTo=function(t,e){this.setPosition(t,e);this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(t,e){this.position.x=parseFloat(t);this.position.y=parseFloat(e)},u._nonTransition=function(t){this.css(t.to);if(t.isCleaning){this._removeStyles(t.to)}for(var e in t.onTransitionEnd){t.onTransitionEnd[e].call(this)}},u.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(t);return}var e=this._transn;for(var i in t.onTransitionEnd){e.onEnd[i]=t.onTransitionEnd[i]}for(i in t.to){e.ingProperties[i]=true;if(t.isCleaning){e.clean[i]=true}}if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to);this.css(t.to);this.isTransitioning=true};var l="opacity,"+f(r);u.enableTransition=function(){if(this.isTransitioning){return}var t=this.layout.options.transitionDuration;t=typeof t=="number"?t+"ms":t;this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0});this.element.addEventListener(s,this,false)},u.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},u.onotransitionend=function(t){this.ontransitionend(t)};var d={"-webkit-transform":"transform"};u.ontransitionend=function(t){if(t.target!==this.element){return}var e=this._transn;var i=d[t.propertyName]||t.propertyName;delete e.ingProperties[i];if(o(e.ingProperties)){this.disableTransition()}if(i in e.clean){this.element.style[t.propertyName]="";delete e.clean[i]}if(i in e.onEnd){var n=e.onEnd[i];n.call(this);delete e.onEnd[i]}this.emitEvent("transitionEnd",[this])},u.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(s,this,false);this.isTransitioning=false},u._removeStyles=function(t){var e={};for(var i in t){e[i]=""}this.css(e)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return u.removeTransitionStyles=function(){this.css(c)},u.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},u.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},u.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},u.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},u.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},u.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},u.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},h}(t.EvEmitter,t.getSize)}(window),function(t){"use strict";t.Outlayer=function(t,e,r,s,n){"use strict";var a=t.console,h=t.jQuery,i=function(){},u=0,f={};function o(t,e){var i=s.getQueryElement(t);if(!i){if(a){a.error("Bad element for "+this.constructor.namespace+": "+(i||t))}return}this.element=i;if(h){this.$element=h(this.element)}this.options=s.extend({},this.constructor.defaults);this.option(e);var n=++u;this.element.outlayerGUID=n;f[n]=this;this._create();var o=this._getOption("initLayout");if(o){this.layout()}}o.namespace="outlayer",o.Item=n,o.defaults={containerStyle:{position:"relative"},initLayout:true,originLeft:true,originTop:true,resize:true,resizeContainer:true,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var l=o.prototype;function d(t){function e(){t.apply(this,arguments)}e.prototype=Object.create(t.prototype);e.prototype.constructor=e;return e}s.extend(l,e.prototype),l.option=function(t){s.extend(this.options,t)},l._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&this.options[e]!==undefined?this.options[e]:this.options[t]},o.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},l._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);s.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");if(t){this.bindResize()}},l.reloadItems=function(){this.items=this._itemize(this.element.children)},l._itemize=function(t){var e=this._filterFindItemElements(t);var i=this.constructor.Item;var n=[];for(var o=0;o<e.length;o++){var r=e[o];var s=new i(r,this);n.push(s)}return n},l._filterFindItemElements=function(t){return s.filterFindElements(t,this.options.itemSelector)},l.getItemElements=function(){return this.items.map(function(t){return t.element})},l.layout=function(){this._resetLayout();this._manageStamps();var t=this._getOption("layoutInstant");var e=t!==undefined?t:!this._isLayoutInited;this.layoutItems(this.items,e);this._isLayoutInited=true},l._init=l.layout,l._resetLayout=function(){this.getSize()},l.getSize=function(){this.size=r(this.element)},l._getMeasurement=function(t,e){var i=this.options[t];var n;if(!i){this[t]=0}else{if(typeof i=="string"){n=this.element.querySelector(i)}else if(i instanceof HTMLElement){n=i}this[t]=n?r(n)[e]:i}},l.layoutItems=function(t,e){t=this._getItemsForLayout(t);this._layoutItems(t,e);this._postLayout()},l._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},l._layoutItems=function(t,i){this._emitCompleteOnItems("layout",t);if(!t||!t.length){return}var n=[];t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t;e.isInstant=i||t.isLayoutInstant;n.push(e)},this);this._processLayoutQueue(n)},l._getItemLayoutPosition=function(){return{x:0,y:0}},l._processLayoutQueue=function(t){this.updateStagger();t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},l.updateStagger=function(){var t=this.options.stagger;if(t===null||t===undefined){this.stagger=0;return}this.stagger=m(t);return this.stagger},l._positionItem=function(t,e,i,n,o){if(n){t.goTo(e,i)}else{t.stagger(o*this.stagger);t.moveTo(e,i)}},l._postLayout=function(){this.resizeContainer()},l.resizeContainer=function(){var t=this._getOption("resizeContainer");if(!t){return}var e=this._getContainerSize();if(e){this._setContainerMeasure(e.width,true);this._setContainerMeasure(e.height,false)}},l._getContainerSize=i,l._setContainerMeasure=function(t,e){if(t===undefined){return}var i=this.size;if(i.isBorderBox){t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth}t=Math.max(t,0);this.element.style[e?"width":"height"]=t+"px"},l._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o=t.length;if(!t||!o){n();return}var r=0;function s(){r++;if(r==o){n()}}t.forEach(function(t){t.once(e,s)})},l.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n);if(h){this.$element=this.$element||h(this.element);if(e){var o=h.Event(e);o.type=t;this.$element.trigger(o,i)}else{this.$element.trigger(t,i)}}},l.ignore=function(t){var e=this.getItem(t);if(e){e.isIgnored=true}},l.unignore=function(t){var e=this.getItem(t);if(e){delete e.isIgnored}},l.stamp=function(t){t=this._find(t);if(!t){return}this.stamps=this.stamps.concat(t);t.forEach(this.ignore,this)},l.unstamp=function(t){t=this._find(t);if(!t){return}t.forEach(function(t){s.removeFrom(this.stamps,t);this.unignore(t)},this)},l._find=function(t){if(!t){return}if(typeof t=="string"){t=this.element.querySelectorAll(t)}t=s.makeArray(t);return t},l._manageStamps=function(){if(!this.stamps||!this.stamps.length){return}this._getBoundingRect();this.stamps.forEach(this._manageStamp,this)},l._getBoundingRect=function(){var t=this.element.getBoundingClientRect();var e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},l._manageStamp=i,l._getElementOffset=function(t){var e=t.getBoundingClientRect();var i=this._boundingRect;var n=r(t);var o={left:e.left-i.left-n.marginLeft,top:e.top-i.top-n.marginTop,right:i.right-e.right-n.marginRight,bottom:i.bottom-e.bottom-n.marginBottom};return o},l.handleEvent=s.handleEvent,l.bindResize=function(){t.addEventListener("resize",this);this.isResizeBound=true},l.unbindResize=function(){t.removeEventListener("resize",this);this.isResizeBound=false},l.onresize=function(){this.resize()},s.debounceMethod(o,"onresize",100),l.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return}this.layout()},l.needsResizeLayout=function(){var t=r(this.element);var e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},l.addItems=function(t){var e=this._itemize(t);if(e.length){this.items=this.items.concat(e)}return e},l.appended=function(t){var e=this.addItems(t);if(!e.length){return}this.layoutItems(e,true);this.reveal(e)},l.prepended=function(t){var e=this._itemize(t);if(!e.length){return}var i=this.items.slice(0);this.items=e.concat(i);this._resetLayout();this._manageStamps();this.layoutItems(e,true);this.reveal(e);this.layoutItems(i)},l.reveal=function(t){this._emitCompleteOnItems("reveal",t);if(!t||!t.length){return}var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i);t.reveal()})},l.hide=function(t){this._emitCompleteOnItems("hide",t);if(!t||!t.length){return}var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i);t.hide()})},l.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},l.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},l.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t){return i}}},l.getItems=function(t){t=s.makeArray(t);var i=[];t.forEach(function(t){var e=this.getItem(t);if(e){i.push(e)}},this);return i},l.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e);if(!e||!e.length){return}e.forEach(function(t){t.remove();s.removeFrom(this.items,t)},this)},l.destroy=function(){var t=this.element.style;t.height="";t.position="";t.width="";this.items.forEach(function(t){t.destroy()});this.unbindResize();var e=this.element.outlayerGUID;delete f[e];delete this.element.outlayerGUID;if(h){h.removeData(this.element,this.constructor.namespace)}},o.data=function(t){t=s.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},o.create=function(t,e){var i=d(o);i.defaults=s.extend({},o.defaults);s.extend(i.defaults,e);i.compatOptions=s.extend({},o.compatOptions);i.namespace=t;i.data=o.data;i.Item=d(n);s.htmlInit(i,t);if(h&&h.bridget){h.bridget(t,i)}return i};var c={ms:1,s:1e3};function m(t){if(typeof t=="number"){return t}var e=t.match(/(^\d*\.?\d*)(\w*)/);var i=e&&e[1];var n=e&&e[2];if(!i.length){return 0}i=parseFloat(i);var o=c[n]||1;return i*o}return o.Item=n,o}(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window),function(t){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.Item=function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++;n.call(this);this.sortData={}},i.updateSortData=function(){if(this.isIgnored){return}this.sortData.id=this.id;this.sortData["original-order"]=this.id;this.sortData.random=Math.random();var t=this.layout.options.getSortData;var e=this.layout._sorters;for(var i in t){var n=e[i];this.sortData[i]=n(this.element,this)}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e}(t.Outlayer)}(window),function(t){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.LayoutMode=function(e,i){"use strict";function n(t){this.isotope=t;if(t){this.options=t.options[this.namespace];this.element=t.element;this.items=t.filteredItems;this.size=t.size}}var o=n.prototype,t=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i,n=t+e,o="outer"+e;this._getMeasurement(n,o),this[n]||(i=this.getFirstItemSize(),this[n]=i&&i[o]||this.isotope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n}(t.getSize,t.Outlayer)}(window),function(t){t.Masonry=function(t,u){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";var i=e.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){var t,e;this.getContainerWidth(),this.columnWidth||(e=(t=this.items[0])&&t.element,this.columnWidth=e&&u(e).outerWidth||this.containerWidth);var i=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,o=n/i,r=i-n%i,o=Math[r&&r<1?"round":"floor"](o);this.cols=Math.max(o,1)},i.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,e=u(t);this.containerWidth=e&&e.innerWidth},i._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),i=Math.min(i,this.cols),n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),o={x:this.columnWidth*n.col,y:n.y},r=n.y+t.size.outerHeight,s=i+n.col,a=n.col;a<s;a++)this.colYs[a]=r;return o},i._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},i._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},i._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},i._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},i._manageStamp=function(t){var e=u(t),i=this._getElementOffset(t),n=this._getOption("originLeft")?i.left:i.right,o=n+e.outerWidth,r=Math.floor(n/this.columnWidth),r=Math.max(0,r),s=Math.floor(o/this.columnWidth);s-=o%this.columnWidth?0:1,s=Math.min(this.cols-1,s);for(var a=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,h=r;h<=s;h++)this.colYs[h]=Math.max(a,this.colYs[h])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e}(t.Outlayer,t.getSize)}(window),function(t){!function(t,e){"use strict";var i=t.create("masonry"),n=i.prototype,o={_getElementOffset:true,layout:true,_getMeasurement:true};for(var r in e.prototype){if(!o[r]){n[r]=e.prototype[r]}}var s=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems;s.call(this)};var a=n._getOption;n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)}}(t.ModulaIsotope.LayoutMode,t.Masonry)}(window),function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}}}(window.ModulaIsotope.LayoutMode),function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}}}(window.ModulaIsotope.LayoutMode),function(t){t.ModulaIsotope=function(t,n,i,r,e,o){var s=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=n.create("modulaisotope",{layoutMode:"masonry",isJQueryFiltering:true,sortAscending:true});u.Item=e,u.LayoutMode=o;var a=u.prototype;a._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();n.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=["original-order"];for(var t in o.modes){this._initLayoutMode(t)}},a.reloadItems=function(){this.itemGUID=0;n.prototype.reloadItems.call(this)},a._itemize=function(){var t=n.prototype._itemize.apply(this,arguments);for(var e=0;e<t.length;e++){var i=t[e];i.id=this.itemGUID++}this._updateItemsSortData(t);return t},a._initLayoutMode=function(t){var e=o.modes[t];var i=this.options[t]||{};this.options[t]=e.options?r.extend(e.options,i):i;this.modes[t]=new e(this)},a.layout=function(){if(!this._isLayoutInited&&this._getOption("initLayout")){this.arrange();return}this._layout()},a._layout=function(){var t=this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,t);this._isLayoutInited=true},a.arrange=function(t){this.option(t);this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches;this._bindArrangeComplete();if(this._isInstant){this._noTransition(this._hideReveal,[e])}else{this._hideReveal(e)}this._sort();this._layout()},a._init=a.arrange,a._hideReveal=function(t){this.reveal(t.needReveal);this.hide(t.needHide)},a._getIsInstant=function(){var t=this._getOption("layoutInstant");var e=t!==undefined?t:!this._isLayoutInited;this._isInstant=e;return e},a._bindArrangeComplete=function(){var t,e,i;var n=this;function o(){if(t&&e&&i){n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}}this.once("layoutComplete",function(){t=true;o()});this.once("hideComplete",function(){e=true;o()});this.once("revealComplete",function(){i=true;o()})},a._filter=function(t){var e=this.options.filter;e=e||"*";var i=[];var n=[];var o=[];var r=this._getFilterTest(e);for(var s=0;s<t.length;s++){var a=t[s];if(a.isIgnored){continue}var h=r(a);if(h){i.push(a)}if(h&&a.isHidden){n.push(a)}else if(!h&&!a.isHidden){o.push(a)}}return{matches:i,needReveal:n,needHide:o}},a._getFilterTest=function(e){if(s&&this.options.isJQueryFiltering){return function(t){return s(t.element).is(e)}}if(typeof e=="function"){return function(t){return e(t.element)}}return function(t){return i(t.element,e)}},a.updateSortData=function(t){var e;if(t){t=r.makeArray(t);e=this.getItems(t)}else{e=this.items}this._getSorters();this._updateItemsSortData(e)},a._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},a._updateItemsSortData=function(t){var e=t&&t.length;for(var i=0;e&&i<e;i++){var n=t[i];n.updateSortData()}};var f=function(){function t(t){if(typeof t!="string"){return t}var e=h(t).split(" ");var i=e[0];var n=i.match(/^\[(.+)\]$/);var o=n&&n[1];var r=a(o,i);var s=u.sortDataParsers[e[1]];t=s?function(t){return t&&s(r(t))}:function(t){return t&&r(t)};return t}function a(i,n){if(i){return function t(e){return e.getAttribute(i)}}return function t(e){var i=e.querySelector(n);return i&&i.textContent}}return t}();function l(u,f){return function t(e,i){for(var n=0;n<u.length;n++){var o=u[n];var r=e.sortData[o];var s=i.sortData[o];if(r>s||r<s){var a=f[o]!==undefined?f[o]:f;var h=a?1:-1;return(r>s?1:-1)*h}}return 0}}u.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},a._sort=function(){if(!this.options.sortBy){return}var t=r.makeArray(this.options.sortBy);if(!this._getIsSameSortBy(t)){this.sortHistory=t.concat(this.sortHistory)}var e=l(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)},a._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++){if(t[e]!=this.sortHistory[e]){return false}}return true},a._mode=function(){var t=this.options.layoutMode;var e=this.modes[t];if(!e){throw new Error("No layout mode: "+t)}e.options=this.options[t];return e},a._resetLayout=function(){n.prototype._resetLayout.call(this);this._mode()._resetLayout()},a._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},a._manageStamp=function(t){this._mode()._manageStamp(t)},a._getContainerSize=function(){return this._mode()._getContainerSize()},a.needsResizeLayout=function(){return this._mode().needsResizeLayout()},a.appended=function(t){var e=this.addItems(t);if(!e.length){return}var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)},a.prepended=function(t){var e=this._itemize(t);if(!e.length){return}this._resetLayout();this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems);this.filteredItems=i.concat(this.filteredItems);this.items=e.concat(this.items)},a._filterRevealAdded=function(t){var e=this._filter(t);this.hide(e.needHide);this.reveal(e.matches);this.layoutItems(e.matches,true);return e.matches},a.insert=function(t){var e=this.addItems(t);if(!e.length){return}var i,n;var o=e.length;for(i=0;i<o;i++){n=e[i];this.element.appendChild(n.element)}var r=this._filter(e).matches;for(i=0;i<o;i++){e[i].isLayoutInstant=true}this.arrange();for(i=0;i<o;i++){delete e[i].isLayoutInstant}this.reveal(r)};var d=a.remove;return a.remove=function(t){t=r.makeArray(t);var e=this.getItems(t);d.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var o=e[n];r.removeFrom(this.filteredItems,o)}},a.shuffle=function(){for(var t=0;t<this.items.length;t++){this.items[t].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},a._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=t.apply(this,e);return this.options.transitionDuration=i,n},a.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},u}(t,t.Outlayer,(t.getSize,t.matchesSelector),t.fizzyUIUtils,t.ModulaIsotope.Item,t.ModulaIsotope.LayoutMode)}(window);
2
  !function(t){t.Packery=t.Packery||{},t.Packery.Rect=function(){function a(t){for(var i in a.defaults){this[i]=a.defaults[i]}for(i in t){this[i]=t[i]}}a.defaults={x:0,y:0,width:0,height:0};var t=a.prototype;return t.contains=function(t){var i=t.width||0,e=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+i&&this.y+this.height>=t.y+e},t.overlaps=function(t){var i=this.x+this.width,e=this.y+this.height,s=t.x+t.width,r=t.y+t.height;return this.x<s&&i>t.x&&this.y<r&&e>t.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var i,e=[],s=this.x+this.width,r=this.y+this.height,h=t.x+t.width,n=t.y+t.height;return this.y<t.y&&(i=new a({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),e.push(i)),h<s&&(i=new a({x:h,y:this.y,width:s-h,height:this.height}),e.push(i)),n<r&&(i=new a({x:this.x,y:n,width:this.width,height:r-n}),e.push(i)),this.x<t.x&&(i=new a({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),e.push(i)),e},t.canFit=function(t){return this.width>=t.width&&this.height>=t.height},a}()}(window),function(t){var i=t.Packery=t.Packery||{};i.Packer=function(i){function t(t,i,e){this.width=t||0;this.height=i||0;this.sortDirection=e||"downwardLeftToRight";this.reset()}var e=t.prototype;e.reset=function(){this.spaces=[];var t=new i({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t);this.sorter=s[this.sortDirection]||s.downwardLeftToRight},e.pack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.canFit(t)){this.placeInSpace(t,e);break}}},e.columnPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];var s=e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.height>=t.height-.01;if(s){t.y=e.y;this.placed(t);break}}},e.rowPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];var s=e.y<=t.y&&e.y+e.height>=t.y+t.height&&e.width>=t.width-.01;if(s){t.x=e.x;this.placed(t);break}}},e.placeInSpace=function(t,i){t.x=i.x;t.y=i.y;this.placed(t)},e.placed=function(t){var i=[];for(var e=0;e<this.spaces.length;e++){var s=this.spaces[e];var r=s.getMaximalFreeRects(t);if(r){i.push.apply(i,r)}else{i.push(s)}}this.spaces=i;this.mergeSortSpaces()},e.mergeSortSpaces=function(){t.mergeRects(this.spaces);this.spaces.sort(this.sorter)},e.addSpace=function(t){this.spaces.push(t);this.mergeSortSpaces()},t.mergeRects=function(t){var i=0;var e=t[i];t:while(e){var s=0;var r=t[i+s];while(r){if(r==e){s++}else if(r.contains(e)){t.splice(i,1);e=t[i];continue t}else if(e.contains(r)){t.splice(i+s,1)}else{s++}r=t[i+s]}i++;e=t[i]}return t};var s={downwardLeftToRight:function(t,i){return t.y-i.y||t.x-i.x},rightwardTopToBottom:function(t,i){return t.x-i.x||t.y-i.y}};return t}(i.Rect)}(window),function(t){t.Packery.Item=function(i,t){var e,s=typeof document.documentElement.style.transform=="string"?"transform":"WebkitTransform",r=function t(){i.Item.apply(this,arguments)},h=r.prototype=Object.create(i.Item.prototype),n=h._create;h._create=function(){n.call(this);this.rect=new t};var a=h.moveTo;return h.moveTo=function(t,i){var e=Math.abs(this.position.x-t),s=Math.abs(this.position.y-i);this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&e<1&&s<1?this.goTo(t,i):a.apply(this,arguments)},h.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&s&&(this.element.style[s]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},h.disablePlacing=function(){this.isPlacing=!1},h.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},h.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||((t=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},h.positionDropPlaceholder=function(){this.dropPlaceholder.style[s]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},h.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},r}(t.Outlayer,t.Packery.Rect)}(window),function(t){t.Packery=function(u,t,f,i,e){f.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var s=t.create("packery");s.Item=e;var r=s.prototype;function h(t,i){return t.position.y-i.position.y||t.position.x-i.position.x}function n(t,i){return t.position.x-i.position.x||t.position.y-i.position.y}function a(t,i){var e=i.x-t.x;var s=i.y-t.y;return Math.sqrt(e*e+s*s)}r._create=function(){t.prototype._create.call(this);this.packer=new i;this.shiftPacker=new i;this.isEnabled=true;this.dragItemCount=0;var s=this;this.handleDraggabilly={dragStart:function(){s.itemDragStart(this.element)},dragMove:function(){s.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){s.itemDragEnd(this.element)}};this.handleUIDraggable={start:function t(i,e){if(!e){return}s.itemDragStart(i.currentTarget)},drag:function t(i,e){if(!e){return}s.itemDragMove(i.currentTarget,e.position.left,e.position.top)},stop:function t(i,e){if(!e){return}s.itemDragEnd(i.currentTarget)}}},r._resetLayout=function(){this.getSize();this._getMeasurements();var t,i,e;if(this._getOption("horizontal")){t=Infinity;i=this.size.innerHeight+this.gutter;e="rightwardTopToBottom"}else{t=this.size.innerWidth+this.gutter;i=Infinity;e="downwardLeftToRight"}this.packer.width=this.shiftPacker.width=t;this.packer.height=this.shiftPacker.height=i;this.packer.sortDirection=this.shiftPacker.sortDirection=e;this.packer.reset();this.maxY=0;this.maxX=0},r._getMeasurements=function(){this._getMeasurement("columnWidth","width");this._getMeasurement("rowHeight","height");this._getMeasurement("gutter","width")},r._getItemLayoutPosition=function(t){this._setRectSize(t.element,t.rect);if(this.isShifting||this.dragItemCount>0){var i=this._getPackMethod();this.packer[i](t.rect)}else{this.packer.pack(t.rect)}this._setMaxXY(t.rect);return t.rect},r.shiftLayout=function(){this.isShifting=true;this.layout();delete this.isShifting},r._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},r._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX);this.maxY=Math.max(t.y+t.height,this.maxY)},r._setRectSize=function(t,i){var e=u(t);var s=e.outerWidth;var r=e.outerHeight;if(s||r){s=this._applyGridGutter(s,this.columnWidth);r=this._applyGridGutter(r,this.rowHeight)}i.width=Math.min(s,this.packer.width);i.height=Math.min(r,this.packer.height)},r._applyGridGutter=function(t,i){if(!i){return t+this.gutter}i+=this.gutter;var e=t%i;var s=e&&e<1?"round":"ceil";t=Math[s](t/i)*i;return t},r._getContainerSize=function(){if(this._getOption("horizontal")){return{width:this.maxX-this.gutter}}else{return{height:this.maxY-this.gutter}}},r._manageStamp=function(t){var i=this.getItem(t);var e;if(i&&i.isPlacing){e=i.rect}else{var s=this._getElementOffset(t);e=new f({x:this._getOption("originLeft")?s.left:s.right,y:this._getOption("originTop")?s.top:s.bottom})}this._setRectSize(t,e);this.packer.placed(e);this._setMaxXY(e)},r.sortItemsByPosition=function(){var t=this._getOption("horizontal")?n:h;this.items.sort(t)},r.fit=function(t,i,e){var s=this.getItem(t);if(!s){return}this.stamp(s.element);s.enablePlacing();this.updateShiftTargets(s);i=i===undefined?s.rect.x:i;e=e===undefined?s.rect.y:e;this.shift(s,i,e);this._bindFitEvents(s);s.moveTo(s.rect.x,s.rect.y);this.shiftLayout();this.unstamp(s.element);this.sortItemsByPosition();s.disablePlacing()},r._bindFitEvents=function(t){var i=this;var e=0;function s(){e++;if(e!=2){return}i.dispatchEvent("fitComplete",null,[t])}t.once("layout",s);this.once("layoutComplete",s)},r.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return}if(this.options.shiftPercentResize){this.resizeShiftPercentLayout()}else{this.layout()}},r.needsResizeLayout=function(){var t=u(this.element);var i=this._getOption("horizontal")?"innerHeight":"innerWidth";return t[i]!=this.size[i]},r.resizeShiftPercentLayout=function(){var t=this._getItemsForLayout(this.items);var i=this._getOption("horizontal");var e=i?"y":"x";var s=i?"height":"width";var r=i?"rowHeight":"columnWidth";var h=i?"innerHeight":"innerWidth";var n=this[r];n=n&&n+this.gutter;if(n){this._getMeasurements();var a=this[r]+this.gutter;t.forEach(function(t){var i=Math.round(t.rect[e]/n);t.rect[e]=i*a})}else{var o=u(this.element)[h]+this.gutter;var c=this.packer[s];t.forEach(function(t){t.rect[e]=t.rect[e]/c*o})}this.shiftLayout()},r.itemDragStart=function(t){if(!this.isEnabled){return}this.stamp(t);var i=this.getItem(t);if(!i){return}i.enablePlacing();i.showDropPlaceholder();this.dragItemCount++;this.updateShiftTargets(i)},r.updateShiftTargets=function(t){this.shiftPacker.reset();this._getBoundingRect();var r=this._getOption("originLeft");var h=this._getOption("originTop");this.stamps.forEach(function(t){var i=this.getItem(t);if(i&&i.isPlacing){return}var e=this._getElementOffset(t);var s=new f({x:r?e.left:e.right,y:h?e.top:e.bottom});this._setRectSize(t,s);this.shiftPacker.placed(s)},this);var o=this._getOption("horizontal");var i=o?"rowHeight":"columnWidth";var c=o?"height":"width";this.shiftTargetKeys=[];this.shiftTargets=[];var u;var g=this[i];g=g&&g+this.gutter;if(g){var e=Math.ceil(t.rect[c]/g);var s=Math.floor((this.shiftPacker[c]+this.gutter)/g);u=(s-e)*g;for(var n=0;n<s;n++){this._addShiftTarget(n*g,0,u)}}else{u=this.shiftPacker[c]+this.gutter-t.rect[c];this._addShiftTarget(0,0,u)}var a=this._getItemsForLayout(this.items);var l=this._getPackMethod();a.forEach(function(t){var i=t.rect;this._setRectSize(t.element,i);this.shiftPacker[l](i);this._addShiftTarget(i.x,i.y,u);var e=o?i.x+i.width:i.x;var s=o?i.y:i.y+i.height;this._addShiftTarget(e,s,u);if(g){var r=Math.round(i[c]/g);for(var h=1;h<r;h++){var n=o?e:i.x+g*h;var a=o?i.y+g*h:s;this._addShiftTarget(n,a,u)}}},this)},r._addShiftTarget=function(t,i,e){var s=this._getOption("horizontal")?i:t;if(s!==0&&s>e){return}var r=t+","+i;var h=this.shiftTargetKeys.indexOf(r)!=-1;if(h){return}this.shiftTargetKeys.push(r);this.shiftTargets.push({x:t,y:i})},r.shift=function(t,i,e){var s;var r=Infinity;var h={x:i,y:e};this.shiftTargets.forEach(function(t){var i=a(t,h);if(i<r){s=t;r=i}});t.rect.x=s.x;t.rect.y=s.y};var o=120;r.itemDragMove=function(t,i,e){var s=this.isEnabled&&this.getItem(t);if(!s){return}i-=this.size.paddingLeft;e-=this.size.paddingTop;var r=this;function h(){r.shift(s,i,e);s.positionDropPlaceholder();r.layout()}var n=new Date;if(this._itemDragTime&&n-this._itemDragTime<o){clearTimeout(this.dragTimeout);this.dragTimeout=setTimeout(h,o)}else{h();this._itemDragTime=n}},r.itemDragEnd=function(t){var i=this.isEnabled&&this.getItem(t);if(!i){return}clearTimeout(this.dragTimeout);i.element.classList.add("is-positioning-post-drag");var e=0;var s=this;function r(){e++;if(e!=2){return}i.element.classList.remove("is-positioning-post-drag");i.hideDropPlaceholder();s.dispatchEvent("dragItemPositioned",null,[i])}i.once("layout",r);this.once("layoutComplete",r);i.moveTo(i.rect.x,i.rect.y);this.layout();this.dragItemCount=Math.max(0,this.dragItemCount-1);this.sortItemsByPosition();i.disablePlacing();this.unstamp(i.element)},r.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},r.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},r._bindDraggabillyEvents=function(t,i){var e=this.handleDraggabilly;t[i]("dragStart",e.dragStart);t[i]("dragMove",e.dragMove);t[i]("dragEnd",e.dragEnd)},r.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},r.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},r._bindUIDraggableEvents=function(t,i){var e=this.handleUIDraggable;t[i]("dragstart",e.start)[i]("drag",e.drag)[i]("dragstop",e.stop)};var c=r.destroy;return r.destroy=function(){c.apply(this,arguments),this.isEnabled=!1},s.Rect=f,s.Packer=i,s}(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window),function(t){!function(t,i){var e=t.create("packery"),s=e.prototype,r={_getElementOffset:true,_getMeasurement:true};for(var h in i.prototype){if(!r[h]){s[h]=i.prototype[h]}}var n=s._resetLayout;s._resetLayout=function(){this.packer=this.packer||new i.Packer;this.shiftPacker=this.shiftPacker||new i.Packer;n.apply(this,arguments)};var a=s._getItemLayoutPosition;s._getItemLayoutPosition=function(t){t.rect=t.rect||new i.Rect;return a.call(this,t)};var o=s.needsResizeLayout;s.needsResizeLayout=function(){if(this._getOption("horizontal")){return this.needsVerticalResizeLayout()}else{return o.call(this)}};var c=s._getOption;s._getOption=function(t){return"horizontal"==t?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:c.apply(this.isotope,arguments)}}(t.ModulaIsotope.LayoutMode,t.Packery)}(window);
3
- function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);var i=t.getBoundingClientRect();return i.top-jQuery(window).height()<=-100&&-400<=i.top-jQuery(window).height()||i.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")})}),function(c,r,p,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function s(t,i){this.element=t,this.$element=c(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=c.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}s.prototype.init=function(){var n=this;c(p).trigger("modula_api_before_init",[n]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),c(r).resize(function(){n.onResize(n)}),c(r).on("modula-update",function(){n.onResize(n)}),c(p).on("lazyloaded",function(t){var i,e,o=c(t.target);"modula"==o.data("source")&&(o.data("size",{width:o.width(),height:o.height()}),(i=o.parents(".modula-item")).addClass("tg-loaded"),e=n.$items.not(".jtg-hidden").index(i),n.placeImage(e),n.isIsotope&&n.$itemsCnt.modulaisotope("layout"))}),n.options.inView&&jQuery(r).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(n.$element)&&n.$element.addClass("modula-loaded-scale")}),this.setupSocial(),this.options.onComplete&&this.options.onComplete(),"fancybox"!=n.options.lightbox||n.options.initLightbox||this.initLightbox(),c(p).trigger("modula_api_after_init",[n])},s.prototype.initLightbox=function(){var o=this;o.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=c.map(o.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),e=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{caption:i.data("caption"),alt:e.attr("alt"),image_id:i.attr("data-image-id")}}}),e=o.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,o.options.lightboxOpts,e)})},s.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},s.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),d=this,l=this.options.columns,i=p.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?l=this.options.mobileColumns:i<=768&&(l=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(l-1))/l:Math.floor(t/l*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=c(i).data("width"),a=c(i).data("height");12<s&&(s=12),"1"==d.options.enableResponsive&&(e=s,o=a,1==l?a=(s=1)*o/e:((s=Math.round(l*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+d.options.gutter*(s-1),n.height=Math.round(h)*a+d.options.gutter*(a-1),c(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),c(i).css(c(i).data("size")),c(i).find(".figc").css({width:c(i).data("size").width,height:c(i).data("size").height}),r.loadImage(t)});var e={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(d.options.gutter)}};this.$itemsCnt.modulaisotope(e),this.isIsotope=!0},s.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];c(i).data("size",e),c(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),c(i).css({width:e.width,height:e.height}),c(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},s.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},s.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},s.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++){(o=this.tiles[i]).area>this.tiles[t].area&&(t=i)}var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},s.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),c(p).trigger("modula_api_reset",[this])},s.prototype.onResize=function(i){i.lastWidth!=i.$itemsCnt.width()&&(clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope("layout")},100))},s.prototype.loadImage=function(t){var i,e=this,o=e.$items.not(".jtg-hidden").eq(t).find(".pic"),n={};"0"==e.options.lazyLoad&&(void 0===o.attr("width")&&void 0===o.attr("height")?((i=new Image).onload=function(){n={width:this.width,height:this.height},o.data("size",n),e.placeImage(t)},"undefined"!=o.attr("src")?i.src=o.attr("src"):i.src=o.data("src")):(n={width:o.width(),height:o.height()},o.data("size",n),e.placeImage(t)))},s.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",r={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(r.width=o.width,r.left=0,a){case"top":r.top=0;break;case"middle":r.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":r.bottom=0}else switch(r.height=o.height,r.top=0,h){case"left":r.left=0;break;case"center":r.left=0-(o.height*s-o.width)/2;break;case"right":r.right=0}e.css(r),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},s.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&h(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&a(this.$items,this),this.options.enableEmail&&l(this.$items,this)},s.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption"),e=p.title;return 0<i.length&&(e=c.trim(i)),r.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split("#")[0])+"&text="+encodeURI(e),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption");p.title;0<e.length&&c.trim(e);i.attr("src");var o="//www.facebook.com/sharer.php?u="+location.href;return r.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},a=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption");p.title;return 0<i.length&&c.trim(i),r.open("https://api.whatsapp.com/send?text="+encodeURI(r.location.href.split("#")[0])+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},h=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption"),o=p.title;0<e.length&&(o=c.trim(e));var n,s,a,h="http://pinterest.com/pin/create/button/?url="+encodeURI(location.href)+"&description="+encodeURI(o);return 1==i.length&&(n=i.attr("src"),h+="&media="+(s=n,(a=p.createElement("img")).src=s,s=a.src,a.src=null,s)),r.open(h,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();var i="//linkedin.com/shareArticle?mini=true&url="+ +encodeURI(location.href);return r.open(i,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,s){t.find(".modula-icon-email").click(function(t){var i=encodeURI(s.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,n="mailto:?subject="+i+"&body="+encodeURI(s.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return r.open(n,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};c.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){c.data(this,"plugin_"+n)||c.data(this,"plugin_"+n,new s(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=c.data(this,"plugin_"+n);t instanceof s&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&c.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).attr("id"),i=jQuery(this).data("config");jQuery("#"+t).modulaGallery(i)})});
1
  !function(t){t.jQueryBridget=function(t,e){"use strict";var r=Array.prototype.slice,i=t.console,l=typeof i=="undefined"?function(){}:function(t){i.error(t)};function n(u,o,f){f=f||e||t.jQuery;if(!f){return}if(!o.prototype.option){o.prototype.option=function(t){if(!f.isPlainObject(t)){return}this.options=f.extend(true,this.options,t)}}f.fn[u]=function(t){if(typeof t=="string"){var e=r.call(arguments,1);return i(this,t,e)}n(this,t);return this};function i(t,r,s){var a;var h="$()."+u+'("'+r+'")';t.each(function(t,e){var i=f.data(e,u);if(!i){l(u+" not initialized. Cannot call methods, i.e. "+h);return}var n=i[r];if(!n||r.charAt(0)=="_"){l(h+" is not a valid method");return}var o=n.apply(i,s);a=a===undefined?o:a});return a!==undefined?a:t}function n(t,n){t.each(function(t,e){var i=f.data(e,u);if(i){i.option(n);i._init()}else{i=new o(e,n);f.data(e,u,i)}})}s(f)}function s(t){if(!t||t&&t.bridget){return}t.bridget=n}return s(e||t.jQuery),n}(t,t.jQuery)}(window),function(t){function e(){}var i;t.EvEmitter=((i=e.prototype).on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},i.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},i.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},i.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o];n&&n[r]&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},i.allOff=function(){delete this._events,delete this._onceEvents},e)}("undefined"!=typeof window?window:this),window.getSize=function(){"use strict";function v(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function t(){}var i=typeof console=="undefined"?t:function(t){console.error(t)},y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],_=y.length;function I(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<_;e++){var i=y[e];t[i]=0}return t}function z(t){var e=getComputedStyle(t);if(!e){i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See https://bit.ly/getsizebug1")}return e}var n=false,S;function E(){if(n){return}n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=z(t);S=Math.round(v(i.width))==200;o.isBoxSizeOuter=S;e.removeChild(t)}function o(t){E();if(typeof t=="string"){t=document.querySelector(t)}if(!t||typeof t!="object"||!t.nodeType){return}var e=z(t);if(e.display=="none"){return I()}var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var o=0;o<_;o++){var r=y[o];var s=e[r];var a=parseFloat(s);i[r]=!isNaN(a)?a:0}var h=i.paddingLeft+i.paddingRight;var u=i.paddingTop+i.paddingBottom;var f=i.marginLeft+i.marginRight;var l=i.marginTop+i.marginBottom;var d=i.borderLeftWidth+i.borderRightWidth;var c=i.borderTopWidth+i.borderBottomWidth;var m=n&&S;var p=v(e.width);if(p!==false){i.width=p+(m?0:h+d)}var g=v(e.height);if(g!==false){i.height=g+(m?0:u+c)}i.innerWidth=i.width-(h+d);i.innerHeight=i.height-(u+c);i.outerWidth=i.width+f;i.outerHeight=i.height+l;return i}return o}(),window.matchesSelector=function(){"use strict";var n=function(){var t=window.Element.prototype;if(t.matches){return"matches"}if(t.matchesSelector){return"matchesSelector"}var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var o=n+"MatchesSelector";if(t[o]){return o}}}();return function t(e,i){return e[n](i)}}(),function(t){t.fizzyUIUtils=function(u,r){var f={extend:function(t,e){for(var i in e){t[i]=e[i]}return t},modulo:function(t,e){return(t%e+e)%e}},i=Array.prototype.slice;f.makeArray=function(t){if(Array.isArray(t)){return t}if(t===null||t===undefined){return[]}var e=typeof t=="object"&&typeof t.length=="number";if(e){return i.call(t)}return[t]},f.removeFrom=function(t,e){var i=t.indexOf(e);if(i!=-1){t.splice(i,1)}},f.getParent=function(t,e){while(t.parentNode&&t!=document.body){t=t.parentNode;if(r(t,e)){return t}}},f.getQueryElement=function(t){if(typeof t=="string"){return document.querySelector(t)}return t},f.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}},f.filterFindElements=function(t,n){t=f.makeArray(t);var o=[];t.forEach(function(t){if(!(t instanceof HTMLElement)){return}if(!n){o.push(t);return}if(r(t,n)){o.push(t)}var e=t.querySelectorAll(n);for(var i=0;i<e.length;i++){o.push(e[i])}});return o},f.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e];var r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments;var i=this;this[r]=setTimeout(function(){o.apply(i,e);delete i[r]},n)}},f.docReady=function(t){var e=document.readyState;if(e=="complete"||e=="interactive"){setTimeout(t)}else{document.addEventListener("DOMContentLoaded",t)}},f.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var l=u.console;return f.htmlInit=function(a,h){f.docReady(function(){var t=f.toDashed(h),o="data-"+t,e=document.querySelectorAll("["+o+"]"),i=document.querySelectorAll(".js-"+t),n=f.makeArray(e).concat(f.makeArray(i)),r=o+"-options",s=u.jQuery;n.forEach(function(e){var t,i=e.getAttribute(o)||e.getAttribute(r);try{t=i&&JSON.parse(i)}catch(t){return void(l&&l.error("Error parsing "+o+" on "+e.className+": "+t))}var n=new a(e,t);s&&s.data(e,h,n)})})},f}(t,t.matchesSelector)}(window),function(t){t.Outlayer={},t.Outlayer.Item=function(t,e){"use strict";function o(t){for(var e in t){return false}e=null;return true}var i=document.documentElement.style,n=typeof i.transition=="string"?"transition":"WebkitTransition",r=typeof i.transform=="string"?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],a={transform:r,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function h(t,e){if(!t){return}this.element=t;this.layout=e;this.position={x:0,y:0};this._create()}var u=h.prototype=Object.create(t.prototype);function f(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}u.constructor=h,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},u.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}},u.getSize=function(){this.size=e(this.element)},u.css=function(t){var e=this.element.style;for(var i in t){var n=a[i]||i;e[n]=t[i]}},u.getPosition=function(){var t=getComputedStyle(this.element);var e=this.layout._getOption("originLeft");var i=this.layout._getOption("originTop");var n=t[e?"left":"right"];var o=t[i?"top":"bottom"];var r=parseFloat(n);var s=parseFloat(o);var a=this.layout.size;if(n.indexOf("%")!=-1){r=r/100*a.width}if(o.indexOf("%")!=-1){s=s/100*a.height}r=isNaN(r)?0:r;s=isNaN(s)?0:s;r-=e?a.paddingLeft:a.paddingRight;s-=i?a.paddingTop:a.paddingBottom;this.position.x=r;this.position.y=s},u.layoutPosition=function(){var t=this.layout.size;var e={};var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");var o=i?"paddingLeft":"paddingRight";var r=i?"left":"right";var s=i?"right":"left";var a=this.position.x+t[o];e[r]=this.getXValue(a);e[s]="";var h=n?"paddingTop":"paddingBottom";var u=n?"top":"bottom";var f=n?"bottom":"top";var l=this.position.y+t[h];e[u]=this.getYValue(l);e[f]="";this.css(e);this.emitEvent("layout",[this])},u.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},u.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},u._transitionTo=function(t,e){this.getPosition();var i=this.position.x;var n=this.position.y;var o=t==this.position.x&&e==this.position.y;this.setPosition(t,e);if(o&&!this.isTransitioning){this.layoutPosition();return}var r=t-i;var s=e-n;var a={};a.transform=this.getTranslate(r,s);this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:true})},u.getTranslate=function(t,e){var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");t=i?t:-t;e=n?e:-e;return"translate3d("+t+"px, "+e+"px, 0)"},u.goTo=function(t,e){this.setPosition(t,e);this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(t,e){this.position.x=parseFloat(t);this.position.y=parseFloat(e)},u._nonTransition=function(t){this.css(t.to);if(t.isCleaning){this._removeStyles(t.to)}for(var e in t.onTransitionEnd){t.onTransitionEnd[e].call(this)}},u.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(t);return}var e=this._transn;for(var i in t.onTransitionEnd){e.onEnd[i]=t.onTransitionEnd[i]}for(i in t.to){e.ingProperties[i]=true;if(t.isCleaning){e.clean[i]=true}}if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to);this.css(t.to);this.isTransitioning=true};var l="opacity,"+f(r);u.enableTransition=function(){if(this.isTransitioning){return}var t=this.layout.options.transitionDuration;t=typeof t=="number"?t+"ms":t;this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0});this.element.addEventListener(s,this,false)},u.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},u.onotransitionend=function(t){this.ontransitionend(t)};var d={"-webkit-transform":"transform"};u.ontransitionend=function(t){if(t.target!==this.element){return}var e=this._transn;var i=d[t.propertyName]||t.propertyName;delete e.ingProperties[i];if(o(e.ingProperties)){this.disableTransition()}if(i in e.clean){this.element.style[t.propertyName]="";delete e.clean[i]}if(i in e.onEnd){var n=e.onEnd[i];n.call(this);delete e.onEnd[i]}this.emitEvent("transitionEnd",[this])},u.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(s,this,false);this.isTransitioning=false},u._removeStyles=function(t){var e={};for(var i in t){e[i]=""}this.css(e)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return u.removeTransitionStyles=function(){this.css(c)},u.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},u.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},u.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},u.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},u.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},u.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},u.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},h}(t.EvEmitter,t.getSize)}(window),function(t){"use strict";t.Outlayer=function(t,e,r,s,n){"use strict";var a=t.console,h=t.jQuery,i=function(){},u=0,f={};function o(t,e){var i=s.getQueryElement(t);if(!i){if(a){a.error("Bad element for "+this.constructor.namespace+": "+(i||t))}return}this.element=i;if(h){this.$element=h(this.element)}this.options=s.extend({},this.constructor.defaults);this.option(e);var n=++u;this.element.outlayerGUID=n;f[n]=this;this._create();var o=this._getOption("initLayout");if(o){this.layout()}}o.namespace="outlayer",o.Item=n,o.defaults={containerStyle:{position:"relative"},initLayout:true,originLeft:true,originTop:true,resize:true,resizeContainer:true,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var l=o.prototype;function d(t){function e(){t.apply(this,arguments)}e.prototype=Object.create(t.prototype);e.prototype.constructor=e;return e}s.extend(l,e.prototype),l.option=function(t){s.extend(this.options,t)},l._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&this.options[e]!==undefined?this.options[e]:this.options[t]},o.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},l._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);s.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");if(t){this.bindResize()}},l.reloadItems=function(){this.items=this._itemize(this.element.children)},l._itemize=function(t){var e=this._filterFindItemElements(t);var i=this.constructor.Item;var n=[];for(var o=0;o<e.length;o++){var r=e[o];var s=new i(r,this);n.push(s)}return n},l._filterFindItemElements=function(t){return s.filterFindElements(t,this.options.itemSelector)},l.getItemElements=function(){return this.items.map(function(t){return t.element})},l.layout=function(){this._resetLayout();this._manageStamps();var t=this._getOption("layoutInstant");var e=t!==undefined?t:!this._isLayoutInited;this.layoutItems(this.items,e);this._isLayoutInited=true},l._init=l.layout,l._resetLayout=function(){this.getSize()},l.getSize=function(){this.size=r(this.element)},l._getMeasurement=function(t,e){var i=this.options[t];var n;if(!i){this[t]=0}else{if(typeof i=="string"){n=this.element.querySelector(i)}else if(i instanceof HTMLElement){n=i}this[t]=n?r(n)[e]:i}},l.layoutItems=function(t,e){t=this._getItemsForLayout(t);this._layoutItems(t,e);this._postLayout()},l._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},l._layoutItems=function(t,i){this._emitCompleteOnItems("layout",t);if(!t||!t.length){return}var n=[];t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t;e.isInstant=i||t.isLayoutInstant;n.push(e)},this);this._processLayoutQueue(n)},l._getItemLayoutPosition=function(){return{x:0,y:0}},l._processLayoutQueue=function(t){this.updateStagger();t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},l.updateStagger=function(){var t=this.options.stagger;if(t===null||t===undefined){this.stagger=0;return}this.stagger=m(t);return this.stagger},l._positionItem=function(t,e,i,n,o){if(n){t.goTo(e,i)}else{t.stagger(o*this.stagger);t.moveTo(e,i)}},l._postLayout=function(){this.resizeContainer()},l.resizeContainer=function(){var t=this._getOption("resizeContainer");if(!t){return}var e=this._getContainerSize();if(e){this._setContainerMeasure(e.width,true);this._setContainerMeasure(e.height,false)}},l._getContainerSize=i,l._setContainerMeasure=function(t,e){if(t===undefined){return}var i=this.size;if(i.isBorderBox){t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth}t=Math.max(t,0);this.element.style[e?"width":"height"]=t+"px"},l._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o=t.length;if(!t||!o){n();return}var r=0;function s(){r++;if(r==o){n()}}t.forEach(function(t){t.once(e,s)})},l.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n);if(h){this.$element=this.$element||h(this.element);if(e){var o=h.Event(e);o.type=t;this.$element.trigger(o,i)}else{this.$element.trigger(t,i)}}},l.ignore=function(t){var e=this.getItem(t);if(e){e.isIgnored=true}},l.unignore=function(t){var e=this.getItem(t);if(e){delete e.isIgnored}},l.stamp=function(t){t=this._find(t);if(!t){return}this.stamps=this.stamps.concat(t);t.forEach(this.ignore,this)},l.unstamp=function(t){t=this._find(t);if(!t){return}t.forEach(function(t){s.removeFrom(this.stamps,t);this.unignore(t)},this)},l._find=function(t){if(!t){return}if(typeof t=="string"){t=this.element.querySelectorAll(t)}t=s.makeArray(t);return t},l._manageStamps=function(){if(!this.stamps||!this.stamps.length){return}this._getBoundingRect();this.stamps.forEach(this._manageStamp,this)},l._getBoundingRect=function(){var t=this.element.getBoundingClientRect();var e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},l._manageStamp=i,l._getElementOffset=function(t){var e=t.getBoundingClientRect();var i=this._boundingRect;var n=r(t);var o={left:e.left-i.left-n.marginLeft,top:e.top-i.top-n.marginTop,right:i.right-e.right-n.marginRight,bottom:i.bottom-e.bottom-n.marginBottom};return o},l.handleEvent=s.handleEvent,l.bindResize=function(){t.addEventListener("resize",this);this.isResizeBound=true},l.unbindResize=function(){t.removeEventListener("resize",this);this.isResizeBound=false},l.onresize=function(){this.resize()},s.debounceMethod(o,"onresize",100),l.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return}this.layout()},l.needsResizeLayout=function(){var t=r(this.element);var e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},l.addItems=function(t){var e=this._itemize(t);if(e.length){this.items=this.items.concat(e)}return e},l.appended=function(t){var e=this.addItems(t);if(!e.length){return}this.layoutItems(e,true);this.reveal(e)},l.prepended=function(t){var e=this._itemize(t);if(!e.length){return}var i=this.items.slice(0);this.items=e.concat(i);this._resetLayout();this._manageStamps();this.layoutItems(e,true);this.reveal(e);this.layoutItems(i)},l.reveal=function(t){this._emitCompleteOnItems("reveal",t);if(!t||!t.length){return}var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i);t.reveal()})},l.hide=function(t){this._emitCompleteOnItems("hide",t);if(!t||!t.length){return}var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i);t.hide()})},l.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},l.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},l.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t){return i}}},l.getItems=function(t){t=s.makeArray(t);var i=[];t.forEach(function(t){var e=this.getItem(t);if(e){i.push(e)}},this);return i},l.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e);if(!e||!e.length){return}e.forEach(function(t){t.remove();s.removeFrom(this.items,t)},this)},l.destroy=function(){var t=this.element.style;t.height="";t.position="";t.width="";this.items.forEach(function(t){t.destroy()});this.unbindResize();var e=this.element.outlayerGUID;delete f[e];delete this.element.outlayerGUID;if(h){h.removeData(this.element,this.constructor.namespace)}},o.data=function(t){t=s.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},o.create=function(t,e){var i=d(o);i.defaults=s.extend({},o.defaults);s.extend(i.defaults,e);i.compatOptions=s.extend({},o.compatOptions);i.namespace=t;i.data=o.data;i.Item=d(n);s.htmlInit(i,t);if(h&&h.bridget){h.bridget(t,i)}return i};var c={ms:1,s:1e3};function m(t){if(typeof t=="number"){return t}var e=t.match(/(^\d*\.?\d*)(\w*)/);var i=e&&e[1];var n=e&&e[2];if(!i.length){return 0}i=parseFloat(i);var o=c[n]||1;return i*o}return o.Item=n,o}(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window),function(t){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.Item=function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++;n.call(this);this.sortData={}},i.updateSortData=function(){if(this.isIgnored){return}this.sortData.id=this.id;this.sortData["original-order"]=this.id;this.sortData.random=Math.random();var t=this.layout.options.getSortData;var e=this.layout._sorters;for(var i in t){var n=e[i];this.sortData[i]=n(this.element,this)}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e}(t.Outlayer)}(window),function(t){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.LayoutMode=function(e,i){"use strict";function n(t){this.isotope=t;if(t){this.options=t.options[this.namespace];this.element=t.element;this.items=t.filteredItems;this.size=t.size}}var o=n.prototype,t=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i,n=t+e,o="outer"+e;this._getMeasurement(n,o),this[n]||(i=this.getFirstItemSize(),this[n]=i&&i[o]||this.isotope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n}(t.getSize,t.Outlayer)}(window),function(t){t.Masonry=function(t,u){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";var i=e.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){var t,e;this.getContainerWidth(),this.columnWidth||(e=(t=this.items[0])&&t.element,this.columnWidth=e&&u(e).outerWidth||this.containerWidth);var i=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,o=n/i,r=i-n%i,o=Math[r&&r<1?"round":"floor"](o);this.cols=Math.max(o,1)},i.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,e=u(t);this.containerWidth=e&&e.innerWidth},i._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),i=Math.min(i,this.cols),n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),o={x:this.columnWidth*n.col,y:n.y},r=n.y+t.size.outerHeight,s=i+n.col,a=n.col;a<s;a++)this.colYs[a]=r;return o},i._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},i._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},i._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},i._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},i._manageStamp=function(t){var e=u(t),i=this._getElementOffset(t),n=this._getOption("originLeft")?i.left:i.right,o=n+e.outerWidth,r=Math.floor(n/this.columnWidth),r=Math.max(0,r),s=Math.floor(o/this.columnWidth);s-=o%this.columnWidth?0:1,s=Math.min(this.cols-1,s);for(var a=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,h=r;h<=s;h++)this.colYs[h]=Math.max(a,this.colYs[h])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e}(t.Outlayer,t.getSize)}(window),function(t){!function(t,e){"use strict";var i=t.create("masonry"),n=i.prototype,o={_getElementOffset:true,layout:true,_getMeasurement:true};for(var r in e.prototype){if(!o[r]){n[r]=e.prototype[r]}}var s=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems;s.call(this)};var a=n._getOption;n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)}}(t.ModulaIsotope.LayoutMode,t.Masonry)}(window),function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}}}(window.ModulaIsotope.LayoutMode),function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}}}(window.ModulaIsotope.LayoutMode),function(t){t.ModulaIsotope=function(t,n,i,r,e,o){var s=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=n.create("modulaisotope",{layoutMode:"masonry",isJQueryFiltering:true,sortAscending:true});u.Item=e,u.LayoutMode=o;var a=u.prototype;a._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();n.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=["original-order"];for(var t in o.modes){this._initLayoutMode(t)}},a.reloadItems=function(){this.itemGUID=0;n.prototype.reloadItems.call(this)},a._itemize=function(){var t=n.prototype._itemize.apply(this,arguments);for(var e=0;e<t.length;e++){var i=t[e];i.id=this.itemGUID++}this._updateItemsSortData(t);return t},a._initLayoutMode=function(t){var e=o.modes[t];var i=this.options[t]||{};this.options[t]=e.options?r.extend(e.options,i):i;this.modes[t]=new e(this)},a.layout=function(){if(!this._isLayoutInited&&this._getOption("initLayout")){this.arrange();return}this._layout()},a._layout=function(){var t=this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,t);this._isLayoutInited=true},a.arrange=function(t){this.option(t);this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches;this._bindArrangeComplete();if(this._isInstant){this._noTransition(this._hideReveal,[e])}else{this._hideReveal(e)}this._sort();this._layout()},a._init=a.arrange,a._hideReveal=function(t){this.reveal(t.needReveal);this.hide(t.needHide)},a._getIsInstant=function(){var t=this._getOption("layoutInstant");var e=t!==undefined?t:!this._isLayoutInited;this._isInstant=e;return e},a._bindArrangeComplete=function(){var t,e,i;var n=this;function o(){if(t&&e&&i){n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}}this.once("layoutComplete",function(){t=true;o()});this.once("hideComplete",function(){e=true;o()});this.once("revealComplete",function(){i=true;o()})},a._filter=function(t){var e=this.options.filter;e=e||"*";var i=[];var n=[];var o=[];var r=this._getFilterTest(e);for(var s=0;s<t.length;s++){var a=t[s];if(a.isIgnored){continue}var h=r(a);if(h){i.push(a)}if(h&&a.isHidden){n.push(a)}else if(!h&&!a.isHidden){o.push(a)}}return{matches:i,needReveal:n,needHide:o}},a._getFilterTest=function(e){if(s&&this.options.isJQueryFiltering){return function(t){return s(t.element).is(e)}}if(typeof e=="function"){return function(t){return e(t.element)}}return function(t){return i(t.element,e)}},a.updateSortData=function(t){var e;if(t){t=r.makeArray(t);e=this.getItems(t)}else{e=this.items}this._getSorters();this._updateItemsSortData(e)},a._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},a._updateItemsSortData=function(t){var e=t&&t.length;for(var i=0;e&&i<e;i++){var n=t[i];n.updateSortData()}};var f=function(){function t(t){if(typeof t!="string"){return t}var e=h(t).split(" ");var i=e[0];var n=i.match(/^\[(.+)\]$/);var o=n&&n[1];var r=a(o,i);var s=u.sortDataParsers[e[1]];t=s?function(t){return t&&s(r(t))}:function(t){return t&&r(t)};return t}function a(i,n){if(i){return function t(e){return e.getAttribute(i)}}return function t(e){var i=e.querySelector(n);return i&&i.textContent}}return t}();function l(u,f){return function t(e,i){for(var n=0;n<u.length;n++){var o=u[n];var r=e.sortData[o];var s=i.sortData[o];if(r>s||r<s){var a=f[o]!==undefined?f[o]:f;var h=a?1:-1;return(r>s?1:-1)*h}}return 0}}u.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},a._sort=function(){if(!this.options.sortBy){return}var t=r.makeArray(this.options.sortBy);if(!this._getIsSameSortBy(t)){this.sortHistory=t.concat(this.sortHistory)}var e=l(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)},a._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++){if(t[e]!=this.sortHistory[e]){return false}}return true},a._mode=function(){var t=this.options.layoutMode;var e=this.modes[t];if(!e){throw new Error("No layout mode: "+t)}e.options=this.options[t];return e},a._resetLayout=function(){n.prototype._resetLayout.call(this);this._mode()._resetLayout()},a._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},a._manageStamp=function(t){this._mode()._manageStamp(t)},a._getContainerSize=function(){return this._mode()._getContainerSize()},a.needsResizeLayout=function(){return this._mode().needsResizeLayout()},a.appended=function(t){var e=this.addItems(t);if(!e.length){return}var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)},a.prepended=function(t){var e=this._itemize(t);if(!e.length){return}this._resetLayout();this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems);this.filteredItems=i.concat(this.filteredItems);this.items=e.concat(this.items)},a._filterRevealAdded=function(t){var e=this._filter(t);this.hide(e.needHide);this.reveal(e.matches);this.layoutItems(e.matches,true);return e.matches},a.insert=function(t){var e=this.addItems(t);if(!e.length){return}var i,n;var o=e.length;for(i=0;i<o;i++){n=e[i];this.element.appendChild(n.element)}var r=this._filter(e).matches;for(i=0;i<o;i++){e[i].isLayoutInstant=true}this.arrange();for(i=0;i<o;i++){delete e[i].isLayoutInstant}this.reveal(r)};var d=a.remove;return a.remove=function(t){t=r.makeArray(t);var e=this.getItems(t);d.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var o=e[n];r.removeFrom(this.filteredItems,o)}},a.shuffle=function(){for(var t=0;t<this.items.length;t++){this.items[t].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},a._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=t.apply(this,e);return this.options.transitionDuration=i,n},a.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},u}(t,t.Outlayer,(t.getSize,t.matchesSelector),t.fizzyUIUtils,t.ModulaIsotope.Item,t.ModulaIsotope.LayoutMode)}(window);
2
  !function(t){t.Packery=t.Packery||{},t.Packery.Rect=function(){function a(t){for(var i in a.defaults){this[i]=a.defaults[i]}for(i in t){this[i]=t[i]}}a.defaults={x:0,y:0,width:0,height:0};var t=a.prototype;return t.contains=function(t){var i=t.width||0,e=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+i&&this.y+this.height>=t.y+e},t.overlaps=function(t){var i=this.x+this.width,e=this.y+this.height,s=t.x+t.width,r=t.y+t.height;return this.x<s&&i>t.x&&this.y<r&&e>t.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var i,e=[],s=this.x+this.width,r=this.y+this.height,h=t.x+t.width,n=t.y+t.height;return this.y<t.y&&(i=new a({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),e.push(i)),h<s&&(i=new a({x:h,y:this.y,width:s-h,height:this.height}),e.push(i)),n<r&&(i=new a({x:this.x,y:n,width:this.width,height:r-n}),e.push(i)),this.x<t.x&&(i=new a({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),e.push(i)),e},t.canFit=function(t){return this.width>=t.width&&this.height>=t.height},a}()}(window),function(t){var i=t.Packery=t.Packery||{};i.Packer=function(i){function t(t,i,e){this.width=t||0;this.height=i||0;this.sortDirection=e||"downwardLeftToRight";this.reset()}var e=t.prototype;e.reset=function(){this.spaces=[];var t=new i({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t);this.sorter=s[this.sortDirection]||s.downwardLeftToRight},e.pack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.canFit(t)){this.placeInSpace(t,e);break}}},e.columnPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];var s=e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.height>=t.height-.01;if(s){t.y=e.y;this.placed(t);break}}},e.rowPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];var s=e.y<=t.y&&e.y+e.height>=t.y+t.height&&e.width>=t.width-.01;if(s){t.x=e.x;this.placed(t);break}}},e.placeInSpace=function(t,i){t.x=i.x;t.y=i.y;this.placed(t)},e.placed=function(t){var i=[];for(var e=0;e<this.spaces.length;e++){var s=this.spaces[e];var r=s.getMaximalFreeRects(t);if(r){i.push.apply(i,r)}else{i.push(s)}}this.spaces=i;this.mergeSortSpaces()},e.mergeSortSpaces=function(){t.mergeRects(this.spaces);this.spaces.sort(this.sorter)},e.addSpace=function(t){this.spaces.push(t);this.mergeSortSpaces()},t.mergeRects=function(t){var i=0;var e=t[i];t:while(e){var s=0;var r=t[i+s];while(r){if(r==e){s++}else if(r.contains(e)){t.splice(i,1);e=t[i];continue t}else if(e.contains(r)){t.splice(i+s,1)}else{s++}r=t[i+s]}i++;e=t[i]}return t};var s={downwardLeftToRight:function(t,i){return t.y-i.y||t.x-i.x},rightwardTopToBottom:function(t,i){return t.x-i.x||t.y-i.y}};return t}(i.Rect)}(window),function(t){t.Packery.Item=function(i,t){var e,s=typeof document.documentElement.style.transform=="string"?"transform":"WebkitTransform",r=function t(){i.Item.apply(this,arguments)},h=r.prototype=Object.create(i.Item.prototype),n=h._create;h._create=function(){n.call(this);this.rect=new t};var a=h.moveTo;return h.moveTo=function(t,i){var e=Math.abs(this.position.x-t),s=Math.abs(this.position.y-i);this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&e<1&&s<1?this.goTo(t,i):a.apply(this,arguments)},h.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&s&&(this.element.style[s]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},h.disablePlacing=function(){this.isPlacing=!1},h.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},h.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||((t=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},h.positionDropPlaceholder=function(){this.dropPlaceholder.style[s]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},h.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},r}(t.Outlayer,t.Packery.Rect)}(window),function(t){t.Packery=function(u,t,f,i,e){f.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var s=t.create("packery");s.Item=e;var r=s.prototype;function h(t,i){return t.position.y-i.position.y||t.position.x-i.position.x}function n(t,i){return t.position.x-i.position.x||t.position.y-i.position.y}function a(t,i){var e=i.x-t.x;var s=i.y-t.y;return Math.sqrt(e*e+s*s)}r._create=function(){t.prototype._create.call(this);this.packer=new i;this.shiftPacker=new i;this.isEnabled=true;this.dragItemCount=0;var s=this;this.handleDraggabilly={dragStart:function(){s.itemDragStart(this.element)},dragMove:function(){s.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){s.itemDragEnd(this.element)}};this.handleUIDraggable={start:function t(i,e){if(!e){return}s.itemDragStart(i.currentTarget)},drag:function t(i,e){if(!e){return}s.itemDragMove(i.currentTarget,e.position.left,e.position.top)},stop:function t(i,e){if(!e){return}s.itemDragEnd(i.currentTarget)}}},r._resetLayout=function(){this.getSize();this._getMeasurements();var t,i,e;if(this._getOption("horizontal")){t=Infinity;i=this.size.innerHeight+this.gutter;e="rightwardTopToBottom"}else{t=this.size.innerWidth+this.gutter;i=Infinity;e="downwardLeftToRight"}this.packer.width=this.shiftPacker.width=t;this.packer.height=this.shiftPacker.height=i;this.packer.sortDirection=this.shiftPacker.sortDirection=e;this.packer.reset();this.maxY=0;this.maxX=0},r._getMeasurements=function(){this._getMeasurement("columnWidth","width");this._getMeasurement("rowHeight","height");this._getMeasurement("gutter","width")},r._getItemLayoutPosition=function(t){this._setRectSize(t.element,t.rect);if(this.isShifting||this.dragItemCount>0){var i=this._getPackMethod();this.packer[i](t.rect)}else{this.packer.pack(t.rect)}this._setMaxXY(t.rect);return t.rect},r.shiftLayout=function(){this.isShifting=true;this.layout();delete this.isShifting},r._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},r._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX);this.maxY=Math.max(t.y+t.height,this.maxY)},r._setRectSize=function(t,i){var e=u(t);var s=e.outerWidth;var r=e.outerHeight;if(s||r){s=this._applyGridGutter(s,this.columnWidth);r=this._applyGridGutter(r,this.rowHeight)}i.width=Math.min(s,this.packer.width);i.height=Math.min(r,this.packer.height)},r._applyGridGutter=function(t,i){if(!i){return t+this.gutter}i+=this.gutter;var e=t%i;var s=e&&e<1?"round":"ceil";t=Math[s](t/i)*i;return t},r._getContainerSize=function(){if(this._getOption("horizontal")){return{width:this.maxX-this.gutter}}else{return{height:this.maxY-this.gutter}}},r._manageStamp=function(t){var i=this.getItem(t);var e;if(i&&i.isPlacing){e=i.rect}else{var s=this._getElementOffset(t);e=new f({x:this._getOption("originLeft")?s.left:s.right,y:this._getOption("originTop")?s.top:s.bottom})}this._setRectSize(t,e);this.packer.placed(e);this._setMaxXY(e)},r.sortItemsByPosition=function(){var t=this._getOption("horizontal")?n:h;this.items.sort(t)},r.fit=function(t,i,e){var s=this.getItem(t);if(!s){return}this.stamp(s.element);s.enablePlacing();this.updateShiftTargets(s);i=i===undefined?s.rect.x:i;e=e===undefined?s.rect.y:e;this.shift(s,i,e);this._bindFitEvents(s);s.moveTo(s.rect.x,s.rect.y);this.shiftLayout();this.unstamp(s.element);this.sortItemsByPosition();s.disablePlacing()},r._bindFitEvents=function(t){var i=this;var e=0;function s(){e++;if(e!=2){return}i.dispatchEvent("fitComplete",null,[t])}t.once("layout",s);this.once("layoutComplete",s)},r.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return}if(this.options.shiftPercentResize){this.resizeShiftPercentLayout()}else{this.layout()}},r.needsResizeLayout=function(){var t=u(this.element);var i=this._getOption("horizontal")?"innerHeight":"innerWidth";return t[i]!=this.size[i]},r.resizeShiftPercentLayout=function(){var t=this._getItemsForLayout(this.items);var i=this._getOption("horizontal");var e=i?"y":"x";var s=i?"height":"width";var r=i?"rowHeight":"columnWidth";var h=i?"innerHeight":"innerWidth";var n=this[r];n=n&&n+this.gutter;if(n){this._getMeasurements();var a=this[r]+this.gutter;t.forEach(function(t){var i=Math.round(t.rect[e]/n);t.rect[e]=i*a})}else{var o=u(this.element)[h]+this.gutter;var c=this.packer[s];t.forEach(function(t){t.rect[e]=t.rect[e]/c*o})}this.shiftLayout()},r.itemDragStart=function(t){if(!this.isEnabled){return}this.stamp(t);var i=this.getItem(t);if(!i){return}i.enablePlacing();i.showDropPlaceholder();this.dragItemCount++;this.updateShiftTargets(i)},r.updateShiftTargets=function(t){this.shiftPacker.reset();this._getBoundingRect();var r=this._getOption("originLeft");var h=this._getOption("originTop");this.stamps.forEach(function(t){var i=this.getItem(t);if(i&&i.isPlacing){return}var e=this._getElementOffset(t);var s=new f({x:r?e.left:e.right,y:h?e.top:e.bottom});this._setRectSize(t,s);this.shiftPacker.placed(s)},this);var o=this._getOption("horizontal");var i=o?"rowHeight":"columnWidth";var c=o?"height":"width";this.shiftTargetKeys=[];this.shiftTargets=[];var u;var g=this[i];g=g&&g+this.gutter;if(g){var e=Math.ceil(t.rect[c]/g);var s=Math.floor((this.shiftPacker[c]+this.gutter)/g);u=(s-e)*g;for(var n=0;n<s;n++){this._addShiftTarget(n*g,0,u)}}else{u=this.shiftPacker[c]+this.gutter-t.rect[c];this._addShiftTarget(0,0,u)}var a=this._getItemsForLayout(this.items);var l=this._getPackMethod();a.forEach(function(t){var i=t.rect;this._setRectSize(t.element,i);this.shiftPacker[l](i);this._addShiftTarget(i.x,i.y,u);var e=o?i.x+i.width:i.x;var s=o?i.y:i.y+i.height;this._addShiftTarget(e,s,u);if(g){var r=Math.round(i[c]/g);for(var h=1;h<r;h++){var n=o?e:i.x+g*h;var a=o?i.y+g*h:s;this._addShiftTarget(n,a,u)}}},this)},r._addShiftTarget=function(t,i,e){var s=this._getOption("horizontal")?i:t;if(s!==0&&s>e){return}var r=t+","+i;var h=this.shiftTargetKeys.indexOf(r)!=-1;if(h){return}this.shiftTargetKeys.push(r);this.shiftTargets.push({x:t,y:i})},r.shift=function(t,i,e){var s;var r=Infinity;var h={x:i,y:e};this.shiftTargets.forEach(function(t){var i=a(t,h);if(i<r){s=t;r=i}});t.rect.x=s.x;t.rect.y=s.y};var o=120;r.itemDragMove=function(t,i,e){var s=this.isEnabled&&this.getItem(t);if(!s){return}i-=this.size.paddingLeft;e-=this.size.paddingTop;var r=this;function h(){r.shift(s,i,e);s.positionDropPlaceholder();r.layout()}var n=new Date;if(this._itemDragTime&&n-this._itemDragTime<o){clearTimeout(this.dragTimeout);this.dragTimeout=setTimeout(h,o)}else{h();this._itemDragTime=n}},r.itemDragEnd=function(t){var i=this.isEnabled&&this.getItem(t);if(!i){return}clearTimeout(this.dragTimeout);i.element.classList.add("is-positioning-post-drag");var e=0;var s=this;function r(){e++;if(e!=2){return}i.element.classList.remove("is-positioning-post-drag");i.hideDropPlaceholder();s.dispatchEvent("dragItemPositioned",null,[i])}i.once("layout",r);this.once("layoutComplete",r);i.moveTo(i.rect.x,i.rect.y);this.layout();this.dragItemCount=Math.max(0,this.dragItemCount-1);this.sortItemsByPosition();i.disablePlacing();this.unstamp(i.element)},r.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},r.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},r._bindDraggabillyEvents=function(t,i){var e=this.handleDraggabilly;t[i]("dragStart",e.dragStart);t[i]("dragMove",e.dragMove);t[i]("dragEnd",e.dragEnd)},r.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},r.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},r._bindUIDraggableEvents=function(t,i){var e=this.handleUIDraggable;t[i]("dragstart",e.start)[i]("drag",e.drag)[i]("dragstop",e.stop)};var c=r.destroy;return r.destroy=function(){c.apply(this,arguments),this.isEnabled=!1},s.Rect=f,s.Packer=i,s}(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window),function(t){!function(t,i){var e=t.create("packery"),s=e.prototype,r={_getElementOffset:true,_getMeasurement:true};for(var h in i.prototype){if(!r[h]){s[h]=i.prototype[h]}}var n=s._resetLayout;s._resetLayout=function(){this.packer=this.packer||new i.Packer;this.shiftPacker=this.shiftPacker||new i.Packer;n.apply(this,arguments)};var a=s._getItemLayoutPosition;s._getItemLayoutPosition=function(t){t.rect=t.rect||new i.Rect;return a.call(this,t)};var o=s.needsResizeLayout;s.needsResizeLayout=function(){if(this._getOption("horizontal")){return this.needsVerticalResizeLayout()}else{return o.call(this)}};var c=s._getOption;s._getOption=function(t){return"horizontal"==t?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:c.apply(this.isotope,arguments)}}(t.ModulaIsotope.LayoutMode,t.Packery)}(window);
3
+ function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);var i=t.getBoundingClientRect();return i.top-jQuery(window).height()<=-100&&-400<=i.top-jQuery(window).height()||i.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")})}),function(c,r,u,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function s(t,i){this.element=t,this.$element=c(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=c.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}s.prototype.init=function(){var n=this;c(u).trigger("modula_api_before_init",[n]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),c(r).resize(function(){n.onResize(n)}),c(r).on("modula-update",function(){n.onResize(n)}),c(u).on("lazyloaded",function(t){var i,e,o=c(t.target);"modula"==o.data("source")&&(o.data("size",{width:o.width(),height:o.height()}),(i=o.parents(".modula-item")).addClass("tg-loaded"),e=n.$items.not(".jtg-hidden").index(i),n.placeImage(e),n.isIsotope&&n.$itemsCnt.modulaisotope("layout"))}),n.options.inView&&jQuery(r).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(n.$element)&&n.$element.addClass("modula-loaded-scale")}),this.setupSocial(),this.options.onComplete&&this.options.onComplete(),"fancybox"!=n.options.lightbox||n.options.initLightbox||this.initLightbox(),c(u).trigger("modula_api_after_init",[n])},s.prototype.initLightbox=function(){var o=this;o.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=c.map(o.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),e=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{$thumb:e.parents(".modula-item"),caption:i.data("caption"),alt:e.attr("alt"),image_id:i.attr("data-image-id")}}}),e=o.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,o.options.lightboxOpts,e)})},s.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},s.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),d=this,l=this.options.columns,i=u.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?l=this.options.mobileColumns:i<=768&&(l=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(l-1))/l:Math.floor(t/l*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=c(i).data("width"),a=c(i).data("height");12<s&&(s=12),"1"==d.options.enableResponsive&&(e=s,o=a,1==l?a=(s=1)*o/e:((s=Math.round(l*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+d.options.gutter*(s-1),n.height=Math.round(h)*a+d.options.gutter*(a-1),c(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),c(i).css(c(i).data("size")),c(i).find(".figc").css({width:c(i).data("size").width,height:c(i).data("size").height}),r.loadImage(t)});var e={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(d.options.gutter)}};this.$itemsCnt.modulaisotope(e),this.isIsotope=!0},s.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];c(i).data("size",e),c(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),c(i).css({width:e.width,height:e.height}),c(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},s.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},s.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},s.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++){(o=this.tiles[i]).area>this.tiles[t].area&&(t=i)}var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},s.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),c(u).trigger("modula_api_reset",[this])},s.prototype.onResize=function(i){i.lastWidth!=i.$itemsCnt.width()&&(clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope("layout")},100))},s.prototype.loadImage=function(t){var i,e=this,o=e.$items.not(".jtg-hidden").eq(t).find(".pic"),n={};"0"==e.options.lazyLoad&&(void 0===o.attr("width")&&void 0===o.attr("height")?((i=new Image).onload=function(){n={width:this.width,height:this.height},o.data("size",n),e.placeImage(t)},"undefined"!=o.attr("src")?i.src=o.attr("src"):i.src=o.data("src")):(n={width:o.width(),height:o.height()},o.data("size",n),e.placeImage(t)))},s.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",r={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(r.width=o.width,r.left=0,a){case"top":r.top=0;break;case"middle":r.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":r.bottom=0}else switch(r.height=o.height,r.top=0,h){case"left":r.left=0;break;case"center":r.left=0-(o.height*s-o.width)/2;break;case"right":r.right=0}e.css(r),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},s.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&h(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&a(this.$items,this),this.options.enableEmail&&l(this.$items,this)},s.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption"),e=u.title;return 0<i.length&&(e=c.trim(i)),r.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split("#")[0])+"&text="+encodeURI(e),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find(".pic"),e=i.data("caption");u.title;0<e.length&&c.trim(e);i.attr("src");var o="//www.facebook.com/sharer.php?u="+location.href;return r.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},a=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();var i=c(this).parents(".modula-item").find("img.pic").data("caption");u.title;return 0<i.length&&c.trim(i