WordPress Infinite Scroll – Ajax Load More - Version 5.3.7

Version Description

  • July 31, 2020 =

** UPGRADE NOTICE ** ALM users who are using out of the box styling of Ajax Load More listing elements should be aware of the following update to the core plugin CSS.

The default Ajax Load More listing CSS has been updated for individual list items. The CSS now targets a li.alm-item element for styling. Previously, the CSS referenced only the <li /> element. Adding this classname to the <li class="alm-item" /> will allow for easier overriding of styles. I have also added default resposnive styles for users making use of this classname.

If you notice issues with your list styling, update your Repeater Template and add the alm-item classname to the <li/>.

** OTHER UPDATES **

  • NEW - Adding responsive CSS styling for the default Repeater Template.
  • NEW - Added new button_done_label parameter that allows for updating the button label after all posts have been loaded.
  • NEW - Added custom Ajax Load More shortcode widget to the Elementor page builder live edit mode.
  • FIX - Fixed issue with placeholder image not be removed after almDone callback is fired.
  • FIX - Fixed issue in Chrome scroll position issue that was introduced after a recent Chrome update.
Download this release

Release Info

Developer dcooney
Plugin Icon 128x128 WordPress Infinite Scroll – Ajax Load More
Version 5.3.7
Comparing to
See all releases

Code changes from version 5.3.6 to 5.3.7

README.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WordPress Infinite Scroll - Ajax Load More ===
2
  Contributors: dcooney, connekthq
3
  Donate link: https://connekthq.com/donate/
4
- Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
5
  Requires at least: 4.0
6
- Tested up to: 5.4.2
7
- Stable tag: 5.3.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -346,13 +346,32 @@ How to install Ajax Load More.
346
 
347
  == Changelog ==
348
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
349
  = 5.3.6 - June 29, 2020 =
350
- * NEW - Added support for Masonry `transition` and [Filters](https://connekthq.com/plugins/ajax-load-more/add-ons/filters/) add-on - previously when using Masonry paging URLs would not update as users load additional pages.
351
- This requires Filters 1.9.3
352
- * FIX - Fixed issue with `Load More` not working after running a [custom filter](https://connekthq.com/plugins/ajax-load-more/docs/public-functions/#filter) when using Masonry `transition` .
353
- * UPDATE - Updated Babel dependancy versions to (hopefully) resolve issues around IE11 `startsWith` and `endsWith` errors.
354
- * UPDATE - Updated uninstall.php script to skip removal of Repeater Templates if the template directory has been changed via the `alm_repeater_path` hook.
355
 
 
 
 
 
 
356
 
357
  = 5.3.5 - June 12, 2020 =
358
 
1
  === WordPress Infinite Scroll - Ajax Load More ===
2
  Contributors: dcooney, connekthq
3
  Donate link: https://connekthq.com/donate/
4
+ Tags: infinite scroll, load more, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
5
  Requires at least: 4.0
6
+ Tested up to: 5.5
7
+ Stable tag: 5.3.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
346
 
347
  == Changelog ==
348
 
349
+ = 5.3.7 - July 31, 2020 =
350
+
351
+ ** UPGRADE NOTICE **
352
+ ALM users who are using out of the box styling of Ajax Load More listing elements should be aware of the following update to the core plugin CSS.
353
+
354
+ The default Ajax Load More listing CSS has been updated for individual list items. The CSS now targets a `li.alm-item` element for styling.
355
+ Previously, the CSS referenced only the `<li />` element. Adding this classname to the `<li class="alm-item" />` will allow for easier overriding of styles.
356
+ I have also added default resposnive styles for users making use of this classname.
357
+
358
+ If you notice issues with your list styling, update your Repeater Template and add the `alm-item` classname to the `<li/>`.
359
+
360
+ ** OTHER UPDATES **
361
+
362
+ - NEW - Adding responsive CSS styling for the default Repeater Template.
363
+ - NEW - Added new `button_done_label` parameter that allows for updating the button label after all posts have been loaded.
364
+ - NEW - Added custom Ajax Load More shortcode widget to the [Elementor](https://elementor.com/) page builder live edit mode.
365
+ - FIX - Fixed issue with placeholder image not be removed after `almDone` callback is fired.
366
+ - FIX - Fixed issue in Chrome scroll position issue that was introduced after a recent Chrome update.
367
+
368
  = 5.3.6 - June 29, 2020 =
 
 
 
 
 
369
 
370
+ - NEW - Added support for Masonry `transition` and [Filters](https://connekthq.com/plugins/ajax-load-more/add-ons/filters/) add-on - previously when using Masonry paging URLs would not update as users load additional pages.
371
+ This requires Filters 1.9.3
372
+ - FIX - Fixed issue with `Load More` not working after running a [custom filter](https://connekthq.com/plugins/ajax-load-more/docs/public-functions/#filter) when using Masonry `transition` .
373
+ - UPDATE - Updated Babel dependancy versions to (hopefully) resolve issues around IE11 `startsWith` and `endsWith` errors.
374
+ - UPDATE - Updated uninstall.php script to skip removal of Repeater Templates if the template directory has been changed via the `alm_repeater_path` hook.
375
 
376
  = 5.3.5 - June 12, 2020 =
377
 
admin/includes/layout/default.php CHANGED
@@ -1,4 +1,4 @@
1
- <li<?php if (! has_post_thumbnail() ) { echo ' class="no-img"'; } ?>>
2
  <?php if ( has_post_thumbnail() ) {
3
  the_post_thumbnail('alm-thumbnail');
4
  }?>
1
+ <li class="alm-item<?php if (! has_post_thumbnail() ) { echo ' no-img'; } ?>">
2
  <?php if ( has_post_thumbnail() ) {
3
  the_post_thumbnail('alm-thumbnail');
4
  }?>
admin/shortcode-builder/js/shortcode-builder.js CHANGED
@@ -1,680 +1,602 @@
1
- jQuery(document).ready(function($) {
2
- "use strict";
3
 
4
- var _alm = {},
5
- output_div = $('.ajax-load-more.shortcode-builder #shortcode_output'),
6
- output = '[ajax_load_more]';
7
-
8
- output_div.text(output); //Init the shortcode output
9
 
 
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
- /*
13
- * _alm.select2
14
- * Init Select2 select replacement
15
- *
16
- * @since 2.5.0
17
- */
18
- _alm.select2 = function(){
 
 
19
 
20
- // Default Select2
21
- $('.row select, .cnkt-main select, select.jump-menu').not('.multiple, .meta-compare, .meta-type, .alm-filter-select').select2({});
 
 
 
 
 
 
 
 
 
 
22
 
23
- // Set placeholder
24
- $('.ajax-load-more select.multiple').select2({
25
- placeholder : '-- '+ alm_admin_localize.select +' --'
26
- });
27
 
28
- };
29
- _alm.select2();
 
 
30
 
 
 
 
 
 
 
31
 
 
 
 
 
32
 
33
- // Reset all selects
34
- _alm.reset_select2 = function(){
35
- // Default Select2
36
- $('.row select, .cnkt-main select, select.jump-menu').not('.multiple').select2();
 
 
37
 
38
- // multiple
39
- $('.ajax-load-more .categories select.multiple').select2();
40
- $('.ajax-load-more .tags select.multiple').select2();
41
- $('.ajax-load-more .authors select.multiple').select2();
42
- $('.ajax-load-more .term_query select.multiple').select2();
43
- $('.ajax-load-more .users select.multiple').select2();
44
- };
45
 
 
46
 
 
 
 
 
 
47
 
48
- // Taxonomy Query
49
- var total_tax_query = 0,
50
- max_tax_query = 2;
51
- $('#add-tax-query').on('click', function(e){
52
- e.preventDefault();
 
 
 
 
 
 
 
 
53
 
54
- if(total_tax_query < 2){
55
- total_tax_query++;
56
- $('#tax-query-relation').fadeIn(250);
57
- $('.ajax-load-more .taxonomy-wrap').eq(total_tax_query - 1).fadeIn(250);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
- if(total_tax_query === 2){ // Hide "Add" button if 3 $('.taxonomy-wrap')
60
- $('#alm-taxonomy .controls button').addClass('disabled');
61
- }
62
 
63
- }else{
64
- alert(alm_admin_localize.shortcode_max);
65
- return false;
66
- }
67
 
68
- });
 
 
69
 
70
- /* Delete Tax Query */
71
- $(document).on('click', '.remove-tax-query', function(e){
72
- var el = $(this),
73
- parent = el.parent('.taxonomy-wrap');
74
 
75
- $('select', parent).select2('val', '').trigger('change');
76
- total_tax_query--;
77
- parent.addClass('removing');
78
- parent.fadeOut(250, function(){
79
- _alm.buildShortcode();
80
- parent.removeClass('removing');
81
- });
82
 
83
- if(total_tax_query < 2){ // Show "Add" button if less than 3
84
- $('#alm-taxonomy .controls button').removeClass('disabled');
85
- }
86
 
87
- if(total_tax_query == 0){
88
- $('#tax-query-relation').fadeOut(250);
89
- }
90
-
91
- });
92
-
93
-
94
- // Add additional meta_query
95
- var meta_query_obj = $('.meta-query-wrap').eq(0).clone();
96
- $('.meta-query-wrap .remove').remove();
97
- $('select.meta-compare, select.meta-type').select2();
98
- $('#add-meta-query').on('click', function(e){
99
- e.preventDefault();
100
-
101
- if($('.meta-query-wrap').length > 3){
102
- alert("Sorry - maximum of 4 meta_query objects.");
103
- return false;
104
- }
105
-
106
- var target = $('#meta-query-extended');
107
- $('input, select', meta_query_obj).val('');
108
- var el = meta_query_obj.clone().hide();
109
- target.append(el);
110
- el.fadeIn(250);
111
- $('#meta-query-extended select').select2();
112
-
113
- if($('.meta-query-wrap').length > 1){
114
- $('#meta-query-relation').fadeIn(250);
115
- }else{
116
- $('#meta-query-relation').fadeOut(250);
117
- }
118
-
119
- $('select.meta-compare').select2();
120
-
121
- if($('.meta-query-wrap').length > 3){ // Hide "Add" button if 4 $('.meta-query-wrap')
122
- $('#alm-meta-key .controls button').addClass('disabled');
123
- }
124
-
125
- });
126
-
127
-
128
- /* Delete Meta Query */
129
- $(document).on('click', '.remove-meta-query', function(e){
130
- var el = $(this);
131
- el.parent('.meta-query-wrap').addClass('removing');
132
- el.parent('.meta-query-wrap').fadeOut(250, function(){
133
- el.parent('.meta-query-wrap').remove();
134
- _alm.buildShortcode();
135
- });
136
- if($('.meta-query-wrap').length > 3){ // Show "Add" button if less than 4 $('.meta-query-wrap')
137
- $('#alm-meta-key .controls button').removeClass('disabled');
138
- }
139
- });
140
-
141
-
142
-
143
-
144
- /*
145
- * _alm.buildShortcode
146
- * Loop sections and build the shortcode
147
- *
148
- * @since 1.0
149
- */
150
 
151
- _alm.buildShortcode = function(){
152
- output = '[ajax_load_more';
153
 
 
 
 
 
 
 
 
154
 
155
- // ---------------------------
156
- // - ID
157
- // ---------------------------
 
 
 
 
158
 
159
- var unique_id = $('input#unique-id').val();
160
- if(unique_id)
161
- output += ' id="'+unique_id+'"';
162
 
 
 
 
163
 
164
- // ---------------------------
165
- // - Loading Style
166
- // ---------------------------
 
 
 
 
167
 
168
- var loading_style = $('select#loading-style').val();
169
- var loading_style_default = $('select#loading-style').data('default');
170
- var loading_style_target = $('select#loading-style').parent().find('.ajax-load-more-wrap');
171
- if(loading_style_target){
172
- var loading_style_base = loading_style_target.data('base');
173
- loading_style_target.removeAttr('class');
174
- loading_style_target.attr('class', loading_style_base + loading_style);
175
- if(loading_style.indexOf('infinite') !== -1){
176
- $('.ajax-load-more-wrap button').addClass('loading');
177
- } else {
178
- $('.ajax-load-more-wrap button').removeClass('loading');
 
 
 
 
 
 
 
 
 
 
 
 
 
179
  }
180
-
181
- }
182
- if(loading_style && loading_style !== loading_style_default){
183
- output += ' loading_style="'+loading_style+'"';
184
- }
185
-
186
-
187
- // ---------------------------
188
- // - Container Type
189
- // ---------------------------
190
-
191
- var container_type = $('.container_type input[name=alm_container_type]:checked').val();
192
- if(container_type)
193
- output += ' container_type="'+container_type+'"';
194
-
195
-
196
- // ---------------------------
197
- // - Container Classes
198
- // ---------------------------
199
-
200
- var container_classes = $('.alm-instance-options input#container-classes').val();
201
- container_classes = $.trim(container_classes);
202
- if(container_classes !== '' && $('.alm-instance-options input#container-classes').hasClass('changed'))
203
- output += ' css_classes="'+container_classes+'"';
204
-
205
-
206
-
207
- // ---------------------------
208
- // - Advacned Custom Fields
209
- // ---------------------------
210
-
211
- var acf = $('#alm-acf input[name=acf]:checked').val();
212
-
213
- if(acf !== 'false' && acf != undefined){
214
-
215
-
216
- var acf_post_id = $('#acf_post_id').val(),
217
- acf_field_type = $('#acf_field_type').val(),
218
- acf_field_name = $('#acf_field_name').val(),
219
- acf_parent_field_name = $('#acf_parent_field_name').val();
220
-
221
- $('.acf-options').slideDown(250, 'alm_easeInOutQuad');
222
-
223
- if(acf_field_type !== '' && acf_field_name !== ''){
224
- output += ' acf="'+acf+'"';
225
- if(acf_post_id !== ''){
226
- output += ' acf_post_id="'+ acf_post_id +'"';
227
- }
228
- output += ' acf_field_type="'+ acf_field_type +'"';
229
- output += ' acf_field_name="'+ acf_field_name +'"';
230
-
231
- if(acf_parent_field_name){
232
- output += ' acf_parent_field_name="'+ acf_parent_field_name +'"';
233
- }
234
- }
235
-
236
- }else{
237
- $('.acf-options').slideUp(250, 'alm_easeInOutQuad')
238
- }
239
-
240
-
241
- // ---------------------------
242
- // - Cache
243
- // ---------------------------
244
-
245
- var cache = $('#alm-cache input[name=cache]:checked').val();
246
- if(cache !== 'false' && cache != undefined){
247
- if($('input#cache-id').val() === '')
248
- _alm.generateUniqueID(10); // Generate unique ID on first load
249
 
250
- $('.cache_id').slideDown(250, 'alm_easeInOutQuad');
251
- output += ' cache="'+cache+'"';
252
- var cache_id = $('input#cache-id').val();
253
- if(cache_id)
254
- output += ' cache_id="'+cache_id+'"';
255
- }else{
256
- $('.cache_id').slideUp(250, 'alm_easeInOutQuad')
257
- }
258
 
 
 
 
 
259
 
260
- // ---------------------------
261
- // - Call to Actions
262
- // ---------------------------
 
 
 
 
263
 
264
- var cta_container = $('#alm-cta');
265
- var cta = $('input[name=cta]:checked', cta_container).val();
266
- var cta_position = $('input[name=cta-position]', cta_container).val();
267
- var cta_before_after = $('select[name=cta-before-after]', cta_container).val();
268
- var cta_repeater = $('select[name=cta-repeater-select]', cta_container).val();
269
- var cta_theme_repeater = $('select[name=theme-repeater-select]', cta_container).val();
270
 
271
- if(cta !== 'false' && cta != undefined){
272
- $('.cta_template_wrap').slideDown(250, 'alm_easeInOutQuad');
273
- // Standard repeater
274
- if(cta_repeater != '' && cta_repeater != undefined && cta_position != '' && cta_position != null){
275
- output += ' cta="'+cta+'"';
276
- output += ' cta_position="'+cta_before_after+':'+cta_position+'"';
277
- output += ' cta_repeater="'+cta_repeater+'"';
278
- }
279
- // Theme repeater
280
- if(cta_theme_repeater != '' && cta_theme_repeater != undefined && cta_position != '' && cta_position != null){
281
- output += ' cta="'+cta+'"';
282
- output += ' cta_position="'+cta_before_after+':'+cta_position+'"';
283
- output += ' cta_theme_repeater="'+cta_theme_repeater+'"';
284
- }
285
- $('#sequence-update').text(cta_position);
286
- $('#sequence-update-before-after').text(cta_before_after);
287
- }else{
288
- $('.cta_template_wrap').slideUp(250, 'alm_easeInOutQuad');
289
- }
290
 
 
291
 
292
- // ---------------------------
293
- // - Comments
294
- // ---------------------------
295
-
296
- var comments = $('#alm-comments input[name=comments]:checked').val();
297
- if(comments === undefined){
298
- comments = false;
299
- }
300
-
301
- if(comments === 'true'){
302
- var comments_post_id = $('#comments_post_id').val(),
303
- comments_per_page = $('#comments-per-page').val(),
304
- comments_type = $('#comments_type').val(),
305
- comments_template = $('#comments_template').val(),
306
- comments_callback = $('#comments_callback').val().trim(),
307
- comments_style = $('#alm-comments input[name=alm_comment_style]:checked').val();
308
-
309
- if(comments_callback !== ''){
310
- $('#comments_template').select2('val','none');
311
- }
312
-
313
- output += ' comments="'+comments+'"';
314
- output += ' comments_post_id="\'.'+comments_post_id+'.\'"';
315
-
316
- if(comments_type !== 'comment')
317
- output += ' comments_type="'+comments_type+'"';
318
-
319
- if(comments_per_page !== '5')
320
- output += ' comments_per_page="'+comments_per_page+'"';
321
-
322
- if(comments_style !== 'ol')
323
- output += ' comments_style="'+comments_style+'"';
324
-
325
- if(comments_template !== 'none')
326
- output += ' comments_template="'+comments_template+'"';
327
-
328
- if(comments_callback !== '')
329
- output += ' comments_callback="'+comments_callback+'"';
330
-
331
- $('.comments_extras').slideDown(250, 'alm_easeInOutQuad');
332
- }else{
333
- $('.comments_extras').slideUp(250, 'alm_easeInOutQuad');
334
- }
335
 
 
336
 
 
337
 
338
- // ---------------------------
339
- // - Filters
340
- // ---------------------------
341
-
342
- var filters = $('.filters input[name=filters]:checked').val();
343
- if(filters !== 'false' && filters != undefined){
344
-
345
- $('.filters_options').slideDown(250, 'alm_easeInOutQuad');
346
 
 
 
 
 
 
 
 
 
 
 
 
 
347
 
348
  var filters_id = $('#alm-filters select');
349
- if(filters_id.length){
350
- if(filters_id.val() !== ''){
351
- output += ' target="'+filters_id.val().trim()+'"';
352
- }
353
- }
354
 
355
- output += ' filters="'+filters+'"';
356
 
357
  var filters_url = $('#alm-filters input[name=filters-url]:checked').val().trim();
358
- if(filters_url !== '' && filters_url !== 'true')
359
- output += ' filters_url="'+filters_url+'"';
360
 
361
  var filters_paging = $('#alm-filters input[name=filters-paging]:checked').val().trim();
362
- if(filters_paging !== '' && filters_paging !== 'true')
363
- output += ' filters_paging="'+filters_paging+'"';
364
 
365
  var filters_scroll = $('#alm-filters input[name=filters-scroll]:checked').val().trim();
366
- if(filters_scroll !== '' && filters_scroll !== 'false')
367
- output += ' filters_scroll="'+filters_paging+'"';
368
-
369
- if(filters_paging === 'true' || filters_scroll === 'true'){
370
-
371
  $('#filter-scrollTopOptions').slideDown(250, 'alm_easeInOutQuad');
372
-
373
  var filters_scrolltop = $('#alm-filters input[name=filters-scrolltop]').val();
374
- if(filters_scrolltop !== '30')
375
- output += ' filters_scrolltop="'+filters_scrolltop+'"';
376
-
377
- } else {
378
  $('#filter-scrollTopOptions').slideUp(250, 'alm_easeInOutQuad');
379
- }
380
 
381
  var filters_analytics = $('#alm-filters input[name=filters-analytics]:checked').val().trim();
382
- if(filters_analytics !== '' && filters_analytics !== 'true')
383
- output += ' filters_analytics="'+filters_analytics+'"';
384
 
385
  var filters_debug = $('#alm-filters input[name=filters-debug]:checked').val().trim();
386
- if(filters_debug !== '' && filters_debug !== 'false')
387
- output += ' filters_debug="'+filters_debug+'"';
388
-
389
- }else{
390
-
391
- $('.filters_options').slideUp(250, 'alm_easeInOutQuad');
392
-
393
- }
394
-
395
-
396
-
397
- // ---------------------------
398
- // - Next Page
399
- // ---------------------------
400
-
401
- var nextpage = $('.next-page input[name=next-page]:checked').val();
402
- if(nextpage !== 'false' && nextpage != undefined){
403
-
404
- var nextpage_post_id = $('#next-page_post_id').val(),
405
- nextpage_url = $('input#next-page-url:checked').val(),
406
- nextpage_pageviews = $('input#next-page-pageviews:checked').val(),
407
- nextpage_scroll = $('select#next-page-scroll').val(),
408
- nextpage_scrolltop = $('input#next-page-scroll-top').val();
409
-
410
- $('.next-page-content').slideDown(250, 'alm_easeInOutQuad');
411
-
412
- output += ' nextpage="'+nextpage+'"';
413
- output += ' nextpage_post_id="\'.'+nextpage_post_id+'.\'"';
414
-
415
- if(nextpage_url !== 'true'){
416
- output += ' nextpage_urls="false"';
417
- }
418
- if(nextpage_pageviews !== 'true'){
419
- output += ' nextpage_pageviews="false"';
420
- }
421
-
422
- output += ' nextpage_scroll="'+ nextpage_scroll +':'+ nextpage_scrolltop +'"';
423
-
424
-
425
- }else{
426
- $('.next-page-content').slideUp(250, 'alm_easeInOutQuad');
427
- }
428
-
429
-
430
-
431
- // ---------------------------
432
- // - Paging
433
- // ---------------------------
434
-
435
- var paging = $('#alm-paging input[name=paging]:checked').val();
436
- var paging_controls = $('#alm-paging input[name=paging-controls]:checked').val();
437
- var paging_show_at_most = $('#alm-paging input#show-at-most').val();
438
- var paging_classes = $('#alm-paging input#paging-classes').val();
439
- var paging_scroll = $('#alm-paging select#paging-scroll').val();
440
- var paging_scrolltop = $('#alm-paging input#paging-scrolltop').val();
441
-
442
- var paging_first_label = $('#alm-paging input#paging-first-label').val();
443
- var paging_last_label = $('#alm-paging input#paging-last-label').val();
444
- var paging_previous_label = $('#alm-paging input#paging-previous-label').val();
445
- var paging_next_label = $('#alm-paging input#paging-next-label').val();
446
-
447
- if(paging !== 'false' && paging != undefined){
448
- output += ' paging="'+paging+'"';
449
-
450
- if(paging_classes !== ''){
451
- output += ' paging_classes="'+paging_classes+'"';
452
- }
453
- if(paging_show_at_most !== ''){
454
- output += ' paging_show_at_most="'+paging_show_at_most+'"';
455
- }
456
- if(paging_scroll !== 'false'){
457
- $('.paging-scrolltop-wrap').show();
458
- paging_scrolltop = (paging_scrolltop) ? paging_scrolltop : 100;
459
- output += ' paging_scroll="true:'+ paging_scrolltop+ '"';
460
- } else {
461
- $('.paging-scrolltop-wrap').hide();
462
- }
463
-
464
- $('#nav-controls').slideDown(250, 'alm_easeInOutQuad');
465
-
466
- output += ' paging_controls="'+paging_controls+'"';
467
-
468
- if(paging_controls === 'true'){
469
- $('#paging-controls-nav').slideDown(250, 'alm_easeInOutQuad');
470
- output += (paging_first_label !== '') ? ' paging_first_label="'+paging_first_label+'"' : '';
471
- output += (paging_last_label !== '') ? ' paging_last_label="'+paging_last_label+'"' : '';
472
- output += (paging_previous_label !== '') ? ' paging_previous_label="'+paging_previous_label+'"' : '';
473
- output += (paging_next_label !== '') ? ' paging_next_label="'+paging_next_label+'"' : '';
474
-
475
-
476
- } else {
477
- $('#paging-controls-nav').slideUp(250, 'alm_easeInOutQuad');
478
- }
479
-
480
- }else{
481
- $('#nav-controls').slideUp(250, 'alm_easeInOutQuad');
482
- }
483
-
484
 
485
-
486
- // ---------------------------
487
- // - Preload
488
- // ---------------------------
489
-
490
- var seo = $('.seo input[name=seo]:checked').val();
491
- var preload = $('.preload input[name=preload]:checked').val();
492
- if(preload !== 'false' && preload != undefined){
493
-
494
- if(seo !== 'true')
495
- $('.preload_amount').slideDown(250, 'alm_easeInOutQuad');
496
-
497
- output += ' preloaded="'+preload+'"';
498
- var preload_amount = $('.preload input#preload-amount').val();
499
- if(preload_amount > 0 && preload_amount != 5)
500
- output += ' preloaded_amount="'+preload_amount+'"';
501
- }else{
502
- $('.preload_amount').slideUp(250, 'alm_easeInOutQuad');
503
- }
504
-
505
-
506
-
507
- // ---------------------------
508
- // - REST API
509
- // ---------------------------
510
-
511
- var rest = $('#alm-rest input[name=rest]:checked').val();
512
- if(rest !== 'false' && rest != undefined){
513
- $('.restapi_options').slideDown(250, 'alm_easeInOutQuad');
514
- output += ' restapi="'+rest+'"';
515
-
516
- var restapi_base = $('#alm-rest input#rest-base').val().trim(),
517
- restapi_namespace = $('#alm-rest input#rest-namespace').val().trim(),
518
- restapi_endpoint = $('#alm-rest input#rest-endpoint').val().trim(),
519
- restapi_template_id = $('#alm-rest input#rest-template-id').val().trim(),
520
- restapi_debug = $('#alm-rest input[name=rest-debug]:checked').val().trim();
521
-
522
- if(restapi_base !== '')
523
- output += ' restapi_base="'+restapi_base+'"';
524
-
525
- if(restapi_namespace !== '')
526
- output += ' restapi_namespace="'+restapi_namespace+'"';
527
-
528
- if(restapi_endpoint !== '')
529
- output += ' restapi_endpoint="'+restapi_endpoint+'"';
530
-
531
- if(restapi_template_id !== ''){
532
- restapi_template_id = restapi_template_id.replace("tmpl-", ""); // Remove tmpl- if present in value
533
- output += ' restapi_template_id="'+restapi_template_id+'"';
534
- }
535
-
536
- if(restapi_debug !== '' && restapi_debug !== 'false')
537
- output += ' restapi_debug="'+restapi_debug+'"';
538
-
539
- }else{
540
- $('.restapi_options').slideUp(250, 'alm_easeInOutQuad')
541
- }
542
-
543
-
544
-
545
- // ---------------------------
546
- // - TERMS
547
- // ---------------------------
548
-
549
- var term_query = $('#alm-term_query input[name=term_query]:checked').val();
550
- if(term_query !== 'false' && term_query != undefined){
551
- $('.term_query-options').slideDown(250, 'alm_easeInOutQuad');
552
-
553
- var term_query_taxonomy = $('#alm-term_query select#term_query-taxonomy-select').val();
554
- var term_query_number = $('#alm-term_query #term_query-number').val();
555
- var term_query_hide_empty = $('#alm-term_query #term_query-hide-empty').val();
556
- if(term_query_taxonomy){
557
- output += ' term_query="true"';
558
- output += ' term_query_taxonomy="'+ term_query_taxonomy +'"';
559
- output += ' term_query_number="'+ term_query_number +'"';
560
- output += ' term_query_hide_empty="'+ term_query_hide_empty +'"';
561
- }
562
-
563
-
564
- }else{
565
- $('.term_query-options').slideUp(250, 'alm_easeInOutQuad')
566
- }
567
-
568
-
569
- // ---------------------------
570
- // - SEO
571
- // ---------------------------
572
-
573
- if(seo !== 'false' && seo != undefined){
574
- if(preload === 'true')
575
- $('.preload_amount').slideUp(250, 'alm_easeInOutQuad');
576
- output += ' seo="'+seo+'"';
577
- }
578
-
579
-
580
-
581
- // ---------------------------
582
- // - Single Post
583
- // ---------------------------
584
-
585
- var previous = $('.previous-post input[name=prev-post]:checked').val();
586
- if(previous !== 'false' && previous != undefined){
587
-
588
- var pp_id = $('#pp_id').val(),
589
- pp_order = $('#pp-order').val(),
590
- pp_post__in_order = $('#pp_post__in_input').val(),
591
- pp_taxonomy = $('#pp-taxonomy-select').val(),
592
- pp_excluded_terms = $('#pp-term-exclude').val(),
593
- pp_elementor = $('.previous-post input[name=elementor-single]:checked').val(),
594
- pp_progress_bar = $('.previous-post input[name=prev-post-progress]:checked').val(),
595
- pp_target = $('.previous-post input#pp-target').val();
596
-
597
-
598
- $('.prev_post_options').slideDown(250, 'alm_easeInOutQuad');
599
-
600
- $('#pp-taxonomy-select').attr('disabled', false);
601
- $('#pp-term-exclude').attr('disabled', false);
602
-
603
- output += ' single_post="'+previous+'"';
604
- output += ' single_post_id="\'.'+pp_id+'.\'"';
605
-
606
- if(pp_order === ''){
607
- output += ' single_post_order="previous"';
608
- $('#pp_post__in').slideUp(250, 'alm_easeInOutQuad');
609
- $('#pp_extras').slideDown(250, 'alm_easeInOutQuad');
610
- } else {
611
- if(pp_order === 'post__in'){
612
- pp_taxonomy = '';
613
- pp_excluded_terms = '';
614
- output += ' single_post_order="'+pp_post__in_order+'"';
615
- $('#pp-taxonomy-select').attr('disabled', true);
616
- $('#pp-term-exclude').attr('disabled', true);
617
- $('#pp_post__in').slideDown(250, 'alm_easeInOutQuad');
618
- $('#pp_extras').slideUp(250, 'alm_easeInOutQuad');
619
- } else {
620
- output += ' single_post_order="'+pp_order+'"';
621
  $('#pp_post__in').slideUp(250, 'alm_easeInOutQuad');
622
- $('#pp_extras').slideDown(250, 'alm_easeInOutQuad');
623
- }
624
- }
625
-
626
- output += (pp_taxonomy !== '' ) ? ' single_post_taxonomy="'+ pp_taxonomy +'"' : '';
627
- output += (pp_excluded_terms !== '' ) ? ' single_post_excluded_terms="'+ pp_excluded_terms +'"' : '';
628
- output += (pp_target !== '' ) ? ' single_post_target="'+ pp_target +'"' : '';
629
- output += (pp_elementor === 't' ) ? ' elementor="true"' : '';
630
-
631
-
632
- // Reading Progress Bar
633
- if(pp_progress_bar === 'true'){
634
- $('#pp_progressbar_options').slideDown(250, 'alm_easeInOutQuad');
635
-
636
- var pp_progress_bar_position = $('#pp_progressbar_options input[name=prev-post-progress-position]:checked').val();
637
- var pp_progress_bar_height = $('#pp_progressbar_options input[name=prev-post-progress-height]').val();
638
-
639
- var pp_progress_bar_color = $('.prev-post-progress-front-color input').val();
640
- var pp_progress_indicator = $('.prev-post-progress-front-color .progress_bar_color_indicator');
641
-
642
- var pp_progress_bar_bkg_color = $('.prev-post-progress-back-color input').val();
643
- pp_progress_bar_bkg_color = (pp_progress_bar_bkg_color.length === 6) ? pp_progress_bar_bkg_color : ''; // Minimum 6
644
- var pp_progress_indicator_bkg = $('.prev-post-progress-back-color .progress_bar_color_indicator');
645
-
646
-
647
- // Remove style atts from indicator
648
- pp_progress_indicator_bkg.removeAttr('style');
649
- pp_progress_indicator.removeAttr('style');
650
-
651
-
652
- // If all values are set
653
- if(pp_progress_bar_color.length === 6 && pp_progress_bar_height && pp_progress_bar_position){
654
- pp_progress_indicator.css("background-color", '#'+pp_progress_bar_color);
655
- pp_progress_indicator_bkg.css("background-color", '#'+pp_progress_bar_bkg_color);
656
- pp_progress_bar_bkg_color = (pp_progress_bar_bkg_color !== '') ? ':'+ pp_progress_bar_bkg_color : '';
657
- output += ' single_post_progress_bar="'+ pp_progress_bar_position +':'+ pp_progress_bar_height +':'+ pp_progress_bar_color + pp_progress_bar_bkg_color +'"';
658
- }
659
-
660
- } else {
661
- $('#pp_progressbar_options').slideUp(250, 'alm_easeInOutQuad');
662
- }
663
-
664
- }else{
665
- $('.prev_post_options').slideUp(250, 'alm_easeInOutQuad');
666
- }
667
-
668
-
669
- // ---------------------------
670
- // - Users
671
- // ---------------------------
672
-
673
- var users = $('#alm-users input[name=users]:checked').val();
674
- if(users === undefined){
675
- users = false;
676
- }
677
- if(users !== false && users !== 'false' && users != undefined){
 
 
678
  var users_role = $('#alm-users select#users-role').val();
679
  var users_include = $('#alm-users input#users-include').val();
680
  var users_exclude = $('#alm-users input#users-exclude').val();
@@ -683,938 +605,882 @@ jQuery(document).ready(function($) {
683
  var users_orderby = $('#alm-users select#users-orderby').val();
684
 
685
  // Deselect other roles if 'All Roles' is selected.
686
- var UsersList = document.querySelector("#alm-users select#users-role");
687
- var users_all_selected = false;
688
- // Loop all roles
689
- for (var i = 0; i < UsersList.length; i++){
690
- if (UsersList.options[i].selected ){
691
- if(users_all_selected){
692
- UsersList.options[i].selected = false
693
- }
694
- if(UsersList.options[i].value === 'all'){
695
- users_all_selected = true;
696
- }
697
- }
698
- }
699
- $('#alm-users select#users-role').select2(); // Reset Select2
700
- users_role = $('#alm-users select#users-role').val(); // Get new users_role value
701
-
702
-
703
- $('#users-extended').slideDown(250, 'alm_easeInOutQuad');
704
-
705
- output += ' users="'+users+'"';
706
-
707
- if(users_role !== '' && users_role != undefined){
708
- output += ' users_role="'+ users_role +'"';
709
- }
710
- if(users_include !== ''){
711
- output += ' users_include="'+ users_include +'"';
712
- }
713
- if(users_exclude !== ''){
714
- output += ' users_exclude="'+ users_exclude +'"';
715
- }
716
- if(users_per_page !== '5'){
717
- output += ' users_per_page="'+ users_per_page +'"';
718
- }
719
- if(users_order !== 'ASC'){
720
- output += ' users_order="'+ users_order +'"';
721
- }
722
- if(users_orderby !== 'login'){
723
- output += ' users_orderby="'+ users_orderby +'"';
724
- }
725
-
726
-
727
- }else{
728
- $('#users-extended').slideUp(250, 'alm_easeInOutQuad');
729
- }
730
-
731
-
732
- // ---------------------------
733
- // - Repeater Templates
734
- // ---------------------------
735
-
736
- var repeater = $('#alm-repeaters select[name=repeater-select]').val(),
737
- theme_repeater = $('#alm-repeaters .select-theme-repeater select[name=theme-repeater-select]').val();
738
-
739
- if(theme_repeater != 'null' && theme_repeater != '' && theme_repeater != undefined){
740
- output += ' theme_repeater="'+theme_repeater+'"';
741
- }else{
742
- if(repeater != '' && repeater != undefined && repeater != 'default'){
743
- output += ' repeater="'+repeater+'"';
744
- }
745
- }
746
-
747
-
748
- // ---------------------------
749
- // - Post Types
750
- // ---------------------------
751
-
752
- if((users === 'false' || users === undefined || !users) && (comments === 'false' || !comments || comments === undefined)){ // Hide post_types if comments is active
753
-
754
- var post_type_count = 0,
755
- selected_post_type = '';
756
- $('ul.alm-post-type-list input[type=checkbox]').each(function(e){
757
- if($(this).is(":checked")) {
758
- post_type_count++;
759
- if(post_type_count>1){
760
- output += ', ' + $(this).data('type');
761
- }else{
762
- if($(this).hasClass('changed')){
763
- output += ' post_type="'+$(this).data('type')+'';
764
- }
765
- }
766
- selected_post_type = $(this).data('type');
767
- }
768
- });
769
- if(post_type_count>0){
770
- output += '"';
771
- }
772
- }
773
-
774
-
775
- // ---------------------------
776
- // - Sticky Posts
777
- // ---------------------------
778
-
779
- if(selected_post_type !== 'post'){
780
- $('.sticky-wrap').slideUp(250, 'alm_easeInOutQuad');
781
- $('input[name=alm_sticky_posts]').prop('checked', false);
782
- }else{
783
- $('.sticky-wrap').slideDown(250, 'alm_easeInOutQuad');
784
- }
785
-
786
- var sticky_posts = $('input[name=alm_sticky_posts]:checked').val();
787
- if(sticky_posts && selected_post_type === 'post')
788
- output += ' sticky_posts="'+sticky_posts+'"';
789
-
790
-
791
- // ---------------------------
792
- // - Posts Per Page
793
- // ---------------------------
794
-
795
- var posts_per_page = $('.posts_per_page input').val();
796
- if(posts_per_page > 0 && posts_per_page != 5)
797
- output += ' posts_per_page="'+posts_per_page+'"';
798
-
799
-
800
- // ---------------------------
801
- // - Post Format
802
- // ---------------------------
803
-
804
- var post_format = $('.post_format select').val();
805
- if(post_format != '' && post_format != undefined)
806
- output += ' post_format="'+post_format+'"';
807
-
808
-
809
- // ---------------------------
810
- // - Categories
811
- // ---------------------------
812
-
813
- var category_type = $('.categories #category__and');
814
- var category_populate = $('.categories .alm-populate');
815
- var category_populate_eg = $('.categories .alm-populate-eg');
816
  // If checked
817
- if(category_type.length){
818
- if(category_type.get(0).checked){
819
- $('.category-toggle.category_name').hide()
820
- $('.category-toggle.category_name select').select2('val','');
821
- $('.category-toggle.category__and').show();
822
- category_populate.text('ID');
823
- category_populate_eg.text('e.g. 2, 9, 7 etc...');
824
- } else {
825
- $('.category-toggle.category__and').hide()
826
- $('.category-toggle.category__and select').select2('val','');
827
- $('.category-toggle.category_name').show();
828
- category_populate.text('slug');
829
- category_populate_eg.text('e.g. design, research etc...');
830
- }
831
- }
832
-
833
- // IN
834
- var cat = $('.categories #category-select').val();
835
- if(cat !== '' && cat !== undefined && cat !== null){
836
- output += ' category="'+cat+'"';
837
- }
838
-
839
- // AND
840
- var cat__and = $('.categories #category--and-select').val();
841
- if(cat__and !== '' && cat__and !== undefined && cat__and !== null){
842
- output += ' category__and="'+cat__and+'"';
843
- }
844
-
845
- // NOT_IN
846
- var cat_not_in = $('.categories #category-exclude-select').val();
847
- if(cat_not_in !== '' && cat_not_in !== undefined && cat_not_in !== null)
848
- output += ' category__not_in="'+cat_not_in+'"';
849
-
850
-
851
- // ---------------------------
852
- // - Tags
853
- // ---------------------------
854
-
855
- var tag_type = $('.tags #tag__and');
856
- var tag_populate = $('.tags .alm-populate');
857
- var tag_populate_eg = $('.tags .alm-populate-eg');
858
 
859
  // If checked
860
- if(tag_type.length){
861
- if(tag_type.get(0).checked){
862
- $('.tag-toggle.tag_normal').hide()
863
- $('.tag-toggle.tag_normal select').select2('val','');
864
- $('.tag-toggle.tag__and').show();
865
- tag_populate.text('ID');
866
- tag_populate_eg.text('e.g. 3, 4, 6 etc...');
867
- } else {
868
- $('.tag-toggle.tag__and').hide()
869
- $('.tag-toggle.tag__and select').select2('val','');
870
- $('.tag-toggle.tag_normal').show();
871
- tag_populate.text('slug');
872
- tag_populate_eg.text('e.g. toronto, canada etc...');
873
- }
874
  }
875
 
876
  // IN
877
- var tag = $('.tags #tag-select').val();
878
- if(tag !== '' && tag !== undefined && tag !== null){
879
- output += ' tag="'+tag+'"';
880
- }
881
-
882
- // AND
883
- var tag__and = $('.tags #tag--and-select').val();
884
- if(tag__and !== '' && tag__and !== undefined && tag__and !== null){
885
- output += ' tag__and="'+tag__and+'"';
886
- }
887
-
888
- // NOT_IN
889
- var tag_not_in = $('.tags #tag-exclude-select').val();
890
- if(tag_not_in !== '' && tag_not_in !== undefined && tag_not_in !== null)
891
- output += ' tag__not_in="'+tag_not_in+'"';
892
-
893
-
894
-
895
- // ---------------------------
896
- // - Taxonomy Query
897
- // ---------------------------
898
-
899
- var tax1 = $.trim($('select#taxonomy-select').val()),
900
- tax_operator1 = $.trim($('#tax-operator-select input[name=tax-operator]:checked').val()),
901
- tax2 = $.trim($('select#taxonomy-select2').val()),
902
- tax_operator2 = $.trim($('#tax-operator-select2 input[name=tax-operator2]:checked').val()),
903
- tax3 = $.trim($('select#taxonomy-select3').val()),
904
- tax_operator3 = $.trim($('#tax-operator-select3 input[name=tax-operator3]:checked').val()),
905
- tax_relation = $.trim($('#tax-query-relation select[name=tax-relation]').val());
906
-
907
- var parent1 = $('select#taxonomy-select').parent('.taxonomy'),
908
- parent2 = $('select#taxonomy-select2').parent('.taxonomy'),
909
- parent3 = $('select#taxonomy-select3').parent('.taxonomy');
910
-
911
- var has_tax1 = false,
912
- taxonomy1_terms = '';
913
- if(tax1 !== '' && tax1 !== undefined){
914
-
915
- has_tax1 = true;
916
- if($('select#taxonomy-select').hasClass('changed')){
917
- $('select#taxonomy-select').parent()
918
- $('.taxonomy-extended', parent1).fadeIn(150, 'alm_easeInOutQuad');
919
- get_tax_terms(tax1, parent1, '1');
920
- $('select#taxonomy-select').removeClass('changed');
921
- }
922
 
923
  var tax_term_count1 = 0;
924
- $('#tax-terms-container1 input[type=checkbox]').each(function(e){
925
- if($(this).is(":checked")) {
926
  tax_term_count1++;
927
- if(tax_term_count1 > 1){
928
  taxonomy1_terms += ', ' + $(this).data('type');
929
- }else{
930
- if($('#tax-terms-container1 input').hasClass('changed'))
931
- taxonomy1_terms += $(this).data('type');
932
  }
933
  }
934
  });
935
- }
936
- else{
937
- $('.taxonomy-extended', parent1).fadeOut(150, 'alm_easeInOutQuad');
938
- }
939
-
940
 
941
  var has_tax2 = false,
942
- taxonomy2_terms = '';
943
- if(tax2 !== '' && tax2 !== undefined){
944
-
945
- has_tax2 = true;
946
- if($('select#taxonomy-select2').hasClass('changed')){
947
- $('select#taxonomy-select2').parent()
948
- $('.taxonomy-extended', parent2).fadeIn(200, 'alm_easeInOutQuad');
949
- get_tax_terms(tax2, parent2, '2');
950
- $('select#taxonomy-select2').removeClass('changed');
951
- }
952
 
953
  var tax_term_count2 = 0;
954
- $('#tax-terms-container2 input[type=checkbox]').each(function(e){
955
- if($(this).is(":checked")) {
956
  tax_term_count2++;
957
- if(tax_term_count2 > 1){
958
  taxonomy2_terms += ', ' + $(this).data('type');
959
- }else{
960
- if($('#tax-terms-container2 input').hasClass('changed'))
961
- taxonomy2_terms += $(this).data('type');
962
  }
963
  }
964
  });
965
- }
966
- else{
967
- $('.taxonomy-extended', parent2).fadeOut(150, 'alm_easeInOutQuad');
968
- }
969
-
970
-
971
- var has_tax3,
972
- taxonomy3_terms = '';
973
- if(tax3 !== '' && tax3 !== undefined){
974
 
975
- has_tax3 = true;
976
- if($('select#taxonomy-select3').hasClass('changed')){
977
- $('select#taxonomy-select3').parent()
978
- $('.taxonomy-extended', parent3).fadeIn(200, 'alm_easeInOutQuad');
979
- get_tax_terms(tax3, parent3, '3');
980
- $('select#taxonomy-select3').removeClass('changed');
981
- }
 
 
 
982
 
983
  var tax_term_count3 = 0;
984
- $('#tax-terms-container3 input[type=checkbox]').each(function(e){
985
- if($(this).is(":checked")) {
986
  tax_term_count3++;
987
- if(tax_term_count3 > 1){
988
  taxonomy3_terms += ', ' + $(this).data('type');
989
- }else{
990
- if($('#tax-terms-container3 input').hasClass('changed'))
991
- taxonomy3_terms += $(this).data('type');
992
  }
993
  }
994
  });
995
- }
996
- else{
997
- $('.taxonomy-extended', parent3).fadeOut(150, 'alm_easeInOutQuad');
998
- }
999
-
1000
-
1001
- if(has_tax1 && !has_tax2 && !has_tax3){
1002
- output += ' taxonomy="'+tax1+'"';
1003
- output += ' taxonomy_terms="'+taxonomy1_terms+'"';
1004
- output += ' taxonomy_operator="'+tax_operator1+'"';
1005
- }
1006
- if(has_tax1 && has_tax2 && !has_tax3){
1007
- output += ' taxonomy="'+tax1+':'+tax2+'"';
1008
- output += ' taxonomy_terms="'+taxonomy1_terms+':'+taxonomy2_terms+'"';
1009
- output += ' taxonomy_operator="'+tax_operator1+':'+tax_operator2+'"';
1010
- if(tax_relation !== 'AND')
1011
- output += ' taxonomy_relation="'+tax_relation+'"';
1012
- }
1013
- if(has_tax1 && has_tax2 && has_tax3){
1014
- output += ' taxonomy="'+tax1+':'+tax2+':'+tax3+'"';
1015
- output += ' taxonomy_terms="'+taxonomy1_terms+':'+taxonomy2_terms+':'+taxonomy3_terms+'"';
1016
- output += ' taxonomy_operator="'+tax_operator1+':'+tax_operator2+':'+tax_operator3+'"';
1017
- if(tax_relation !== 'AND')
1018
- output += ' taxonomy_relation="'+tax_relation;
1019
- }
1020
-
1021
-
1022
-
1023
- // ---------------------------
1024
- // - Date
1025
- // ---------------------------
1026
- var currentTime = new Date(),
1027
- currentYear = currentTime.getFullYear();
1028
-
1029
- var dateY = $('.date input#input-year').val(); // Year
1030
- if(dateY !== '' && dateY !== undefined && dateY <= currentYear)
1031
- output += ' year="'+dateY+'"';
1032
-
1033
- var dateM = $('.date input#input-month').val(); // Month
1034
- if(dateM !== '' && dateM !== undefined && dateM < 13)
1035
- output += ' month="'+dateM+'"';
1036
-
1037
- var dateD = $('.date input#input-day').val(); // Day
1038
- if(dateD !== '' && dateD !== undefined && dateD < 32)
1039
- output += ' day="'+dateD+'"';
1040
-
1041
-
1042
-
1043
- // ---------------------------
1044
- // - Custom Fields Meta Query
1045
- // ---------------------------
1046
- var meta_key = $.trim($('.meta-query-wrap').eq(0).find('input.meta-key').val()),
1047
- meta_value = $.trim($('.meta-query-wrap').eq(0).find('input.meta-value').val()),
1048
- meta_compare = $('.meta-query-wrap').eq(0).find('select.meta-compare').val(),
1049
- meta_type = $('.meta-query-wrap').eq(0).find('select.meta-type').val(),
1050
- meta_relation = $('select.meta-relation').val(),
1051
- meta_query_length = $('.meta-query-wrap').length;
1052
-
1053
- // Set meta_compare default value
1054
- if(meta_compare === '' || meta_compare == undefined)
1055
- meta_compare = '=';
1056
-
1057
- // Set meta_type default value
1058
- if(meta_type === '' || meta_type == undefined)
1059
- meta_type = 'CHAR';
1060
-
1061
- // Single Meta_Query()
1062
- if(meta_query_length === 1){
1063
- if(meta_key !== '' && meta_key !== undefined){
1064
- output += ' meta_key="'+meta_key+'"';
1065
- output += ' meta_value="'+meta_value+'"';
1066
-
1067
- if(meta_compare !== '='){
1068
- output += ' meta_compare="'+meta_compare+'"';
1069
- }
1070
-
1071
- if(meta_type !== 'CHAR'){
1072
- output += ' meta_type="'+meta_type+'"';
1073
- }
1074
- }
1075
- }
1076
- // Multiple Meta_Query()
1077
- if(meta_query_length > 1){
1078
- meta_key = '';
1079
- meta_value = '';
1080
- meta_compare = '';
1081
- meta_type = '';
1082
- $('.meta-query-wrap').each(function(e){
1083
- var el = $(this),
1084
- mk = $.trim(el.find('input.meta-key').val()),
1085
- mv = $.trim(el.find('input.meta-value').val()),
1086
- mc = $.trim(el.find('select.meta-compare').val()),
1087
- mt = $.trim(el.find('select.meta-type').val());
1088
-
1089
- if(e === 0){ // first on first only
1090
- meta_key += mk;
1091
- meta_value += mv;
1092
- meta_compare += mc;
1093
- meta_type += mt;
1094
- }else{
1095
- if(mk.length > 0 && mv.length > 0){
1096
- meta_key += ':'+ mk;
1097
- meta_value += ':'+ mv;
1098
- meta_compare += ':'+ mc;
1099
- meta_type += ':'+ mt;
1100
- }
1101
- }
1102
-
1103
- });
1104
- output += ' meta_key="'+meta_key+'"';
1105
- output += ' meta_value="'+meta_value+'"';
1106
- output += ' meta_compare="'+meta_compare+'"';
1107
- output += ' meta_type="'+meta_type+'"';
1108
-
1109
- var isRelation = $('#meta-query-relation').css("display");
1110
- if(meta_relation !== '' && meta_relation !== undefined && isRelation === 'block'){
1111
- output += ' meta_relation="'+meta_relation+'"';
1112
- }
1113
-
1114
- }else{
1115
- $('#meta-query-relation').fadeOut(150);
1116
- }
1117
-
1118
-
1119
-
1120
- // ---------------------------
1121
- // - Authors
1122
- // ---------------------------
1123
-
1124
- var author = $('.authors #author-select').val();
1125
- if(author !== '' && author !== undefined && author !== null)
1126
- output += ' author="'+author+'"';
1127
-
1128
-
1129
- // ---------------------------
1130
- // - Posts
1131
- // ---------------------------
1132
-
1133
- var post__in = $('input#post__in').val();
1134
- post__in = $.trim(post__in);
1135
- if(post__in !== '')
1136
- output += ' post__in="'+post__in+'"';
1137
-
1138
-
1139
- // ---------------------------
1140
- // - Exclude posts
1141
- // ---------------------------
1142
-
1143
- var exclude = $('input#exclude-posts').val();
1144
- exclude = $.trim(exclude);
1145
- if(exclude !== ''){
1146
- //Remove trailing comma, if present
1147
- if(exclude.charAt( exclude.length-1 ) == ",") {
1148
- exclude = exclude.slice(0, -1)
1149
- }
1150
- output += ' post__not_in="'+exclude+'"';
1151
- }
1152
-
1153
-
1154
- // ---------------------------
1155
- // - Search
1156
- // ---------------------------
1157
-
1158
- var search = $('.search-term input').val();
1159
- search = $.trim(search);
1160
- if(search !== '')
1161
- output += ' search="'+search+'"';
1162
-
1163
-
1164
- // ---------------------------
1165
- // - Ordering
1166
- // ---------------------------
1167
- var order = $('select#post-order').val(),
1168
- orderby = $('select#post-orderby').val();
1169
- if(order !== 'DESC')
1170
- output += ' order="'+order+'"';
1171
- if(orderby !== 'date')
1172
- output += ' orderby="'+orderby+'"';
1173
-
1174
-
1175
- // ---------------------------
1176
- // - Post Status
1177
- // ---------------------------
1178
- var post_status = $('select#post-status').val();
1179
- if(post_status !== 'publish')
1180
- output += ' post_status="'+post_status+'"';
1181
-
1182
-
1183
- // ---------------------------
1184
- // - Post Offset
1185
- // ---------------------------
1186
-
1187
- var offset = $('.offset input').val();
1188
- if(offset > 0)
1189
- output += ' offset="'+offset+'"';
1190
-
1191
-
1192
- // ---------------------------
1193
- // - Custom Arguments
1194
- // ---------------------------
1195
-
1196
- var custom_args = $('.custom-arguments input').val();
1197
- custom_args = $.trim(custom_args);
1198
- if(custom_args !== '')
1199
- output += ' custom_args="'+custom_args+'"';
1200
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1201
 
1202
- // ---------------------------
1203
- // - Pause
1204
- // ---------------------------
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1205
 
1206
- var pause_load = $('.pause_load input[name=pause]:checked').val();
1207
- if(pause_load === 't'){
1208
- output += ' pause="true"';
1209
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1210
 
 
 
 
1211
 
1212
- // ---------------------------
1213
- // - Destroy After
1214
- // ---------------------------
1215
 
1216
- var destroy_after = $('.alm-destroy-after input[name=destroy-after]').val();
1217
- if(destroy_after !== '' && destroy_after !== undefined && destroy_after !== '0')
1218
- output += ' destroy_after="'+destroy_after+'"';
1219
-
1220
 
1221
- // ---------------------------
1222
- // - Images loaded
1223
- // ---------------------------
1224
 
1225
- var images_loaded = $('.alm-images-loaded input[name=images_loaded]:checked').val();
1226
- if(images_loaded === 't')
1227
- output += ' images_loaded="true"';
1228
 
 
 
 
 
 
 
 
 
 
1229
 
1230
- // ---------------------------
1231
- // - Placeholder
1232
- // ---------------------------
1233
-
1234
- var placeholder = $('.alm-placeholder-wrap input[name=has_placeholder]:checked').val();
1235
- var placeholder_target = $('.alm-placeholder-wrap .alm-placeholder-target');
1236
- var placeholder_url = $('.alm-placeholder-wrap #placeholder');
1237
- var placeholder_img = $('.alm-placeholder-wrap #placeholder-img');
1238
- if(placeholder === 't'){
1239
- placeholder_target.slideDown(250, 'alm_easeInOutQuad');
1240
-
1241
- // Set preview image
1242
- if(placeholder_url.val() === '' || placeholder_url.val() === placeholder_url.data('empty')){
1243
- output += ' placeholder="true"';
1244
- placeholder_img.attr('src', placeholder_url.data('empty'));
1245
- } else {
1246
- output += ' placeholder="'+ placeholder_url.val() +'"';
1247
- placeholder_img.attr('src', placeholder_url.val());
1248
- }
1249
-
1250
- } else {
1251
- placeholder_target.slideUp(250, 'alm_easeInOutQuad');
1252
- }
1253
-
1254
-
1255
- // ---------------------------
1256
- // - Scrolling
1257
- // ---------------------------
1258
-
1259
- var scroll_load = $('.scroll_load input[name=scroll]:checked').val();
1260
- if(scroll_load === 'f'){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1261
 
1262
- $('.scrolling-options').slideUp(250, 'alm_easeInOutQuad');
1263
- if($('.scroll_load input').hasClass('changed')){
1264
- output += ' scroll="false"';
1265
- }
1266
-
1267
- }else{
1268
 
1269
- $('.scrolling-options').slideDown(250, 'alm_easeInOutQuad');
 
1270
 
1271
- var scroll_distance = $('.scroll_distance input').val();
1272
- var scroll_distance_toggle_btns = $('.scroll_distance .builder-option-toggle--buttons');
1273
- var scroll_distance_px = $('button.pixels', scroll_distance_toggle_btns);
1274
- var scroll_distance_perc = $('button.perc', scroll_distance_toggle_btns);
1275
- var scroll_distance_type = '';
1276
-
1277
- if(scroll_distance !== '100' || scroll_distance_perc.hasClass('active')){
1278
- if(scroll_distance_perc.hasClass('active')){
1279
- scroll_distance_type = '%';
1280
- }
1281
- output += ' scroll_distance="'+$('.scroll_distance input').val()+ scroll_distance_type +'"';
1282
- }
1283
-
1284
- var scroll_container = $('.scroll_container input').val();
1285
- if(scroll_container != '')
1286
- output += ' scroll_container="'+$('.scroll_container input').val()+'"';
1287
-
1288
- var max_pages = $('.max_pages input').val();
1289
- if(max_pages != 0)
1290
- output += ' max_pages="'+$('.max_pages input').val()+'"';
1291
-
1292
- var pause_override = $('.pause_override input[name=pause_override]:checked').val();
1293
- if(pause_override === 't' && pause_load === 't')
1294
- output += ' pause_override="true"';
1295
-
1296
- }
1297
-
1298
-
1299
- // ---------------------------
1300
- // - transition
1301
- // ---------------------------
1302
-
1303
- var transition = $('.transition select[name=transition]').val();
1304
- if(transition !== 'fade')
1305
- output += ' transition="'+transition+'"';
1306
-
1307
- if(transition === 'masonry'){
1308
-
1309
- $('.masonry-options').slideDown(250, 'alm_easeInOutQuad');
1310
- $('.masonry-options-hide').slideUp(250, 'alm_easeInOutQuad');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1311
  var masonry_selector = $('.transition input#masonry-item').val();
1312
  var masonry_columnwidth = $('.transition input#masonry-columnwidth').val();
1313
  var masonry_animation = $('input[name=masonry-animation]:checked').val();
1314
  var masonry_horizontalorder = $('input[name=masonry-horizontalorder]:checked').val();
1315
- if(masonry_selector !== ''){
1316
- output += ' masonry_selector="'+ masonry_selector +'"';
1317
- }
1318
- if(masonry_columnwidth !== ''){
1319
- output += ' masonry_columnwidth="'+ masonry_columnwidth +'"';
1320
- }
1321
- if(masonry_animation !== '' && masonry_animation !== 'default'){
1322
- output += ' masonry_animation="'+ masonry_animation +'"';
1323
- }
1324
- if(masonry_horizontalorder !== 't'){
1325
- output += ' masonry_horizontalorder="false"';
1326
- }
1327
-
1328
- }else{
1329
-
1330
- $('.masonry-options').slideUp(250, 'alm_easeInOutQuad');
1331
- $('.masonry-options-hide').slideDown(250, 'alm_easeInOutQuad');
1332
 
1333
  // Hide transition_container if masonry is selected
1334
- var transition_container = $('.transition input[name=remove_container]:checked').val();
1335
- var transition_container_classes = $('.transition input#transition-container-classes').val();
1336
- if(transition_container === 'f' && seo !== 'true' && previous !== 'true'){
1337
- output += ' transition_container="false"';
1338
- $('.transition-container-classes-wrap').slideUp(250, 'alm_easeInOutQuad');
1339
- }else{
1340
- $('.transition-container-classes-wrap').slideDown(250, 'alm_easeInOutQuad');
1341
- }
1342
-
1343
- // Hide transition_container_classes if Previous Post or Next Page is true.
1344
- if(transition_container_classes !== '' && transition_container !== 'f' && previous !== 'true' && nextpage !== 'true'){
1345
- output += ' transition_container_classes="'+ transition_container_classes +'"';
1346
- }
1347
-
1348
- }
1349
-
1350
-
1351
- // ---------------------------
1352
- // - Progress Bar
1353
- // ---------------------------
1354
-
1355
- var progress_bar = $('.alm-progress-bar input[name=progress_bar]:checked').val();
1356
- if(progress_bar === 't'){
1357
- var progress_bar_color = $('.alm-progress-bar input[name=progress_bar_color]').val();
1358
- $('.progress-bar-options').slideDown(250, 'alm_easeInOutQuad');
1359
- output += ' progress_bar="true"';
1360
- $('.alm-progress-bar .progress_bar_color_indicator').removeAttr('style');
1361
- if(progress_bar_color){
1362
- if(progress_bar_color.length === 6){
1363
- $('.alm-progress-bar .progress_bar_color_indicator').css("background-color", '#'+progress_bar_color);
1364
- }
1365
- output += ' progress_bar_color="'+ progress_bar_color +'"';
1366
  }
1367
- }else{
1368
- $('.progress-bar-options').slideUp(250, 'alm_easeInOutQuad');
1369
- }
1370
-
1371
-
1372
- // ---------------------------
1373
- // - Button Label
1374
- // ---------------------------
1375
 
1376
- var button_label = $('.btn-label input#button-label').val().trim(),
1377
- button_loading_label = $('.btn-label input#button-loading-label').val().trim();
 
 
 
1378
 
1379
- if(button_label !== '' && button_label !== 'Older Posts')
1380
- output += ' button_label="'+button_label+'"';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1381
 
1382
- if(button_loading_label !== '')
1383
- output += ' button_loading_label="'+button_loading_label+'"';
1384
-
1385
 
1386
- // ---------------------------
1387
- // - Nested Instances
1388
- // ---------------------------
1389
 
1390
- var nested = $('.alm-instance-options input[name=nested]:checked').val();
1391
- if(nested === 't'){
1392
- output += ' nested="true"';
1393
- }
1394
-
 
 
 
 
 
 
1395
 
1396
- // ---------------------------
1397
- // - Integrations
1398
- // ---------------------------
1399
 
1400
- var archive = $('.alm-archive input[name=archive]:checked').val();
1401
- if(archive === 't'){
1402
- output += ' archive="true"';
1403
- }
1404
 
1405
- var woocommerce = $('.alm-woocommerce input[name=woocommerce]:checked').val();
1406
- if(woocommerce === 't'){
1407
- output += ' woocommerce="true"';
1408
- }
1409
-
1410
 
1411
- // ---------------------------
1412
- // - No Results Text
1413
- // ---------------------------
 
1414
 
1415
- var no_results = $('.alm-instance-options textarea#no_results_text').val();
1416
- if(no_results !== ''){
1417
- no_results = no_results.replace(/"/g, "'");
 
1418
 
1419
- output += ' no_results_text="'+ no_results +'"';
1420
- }
 
1421
 
 
 
 
1422
 
1423
- output += ']'; //Close shortcode
1424
- output_div.text(output);
1425
 
1426
- if(output != '[ajax_load_more]')
1427
- $('.reset-shortcode-builder').show();
1428
- else
1429
- $('.reset-shortcode-builder').hide();
1430
- }
1431
 
 
 
 
1432
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1433
 
 
 
1434
 
1435
- /*
1436
- * On change events
1437
- *
1438
- * @since 2.0.0
1439
- */
1440
 
1441
- //Select 'post' by default
1442
- $('.post_types input[type=checkbox]#chk-post').prop('checked', true).addClass('changed');
1443
- //Select SEO 'false' by default
1444
- $('.seo input[type=radio]#seo-false').prop('checked', true).addClass('changed');
1445
-
1446
-
1447
- $(document).on('change keyup', '.alm_element', function() {
1448
- var el = $(this);
1449
- el.addClass('changed');
1450
-
1451
- // WooCommerce
1452
- if( el.attr('name') === 'woocommerce'){
1453
- var postTypeCheckboxes = $('ul.alm-post-type-list input[type=checkbox]');
1454
- // Check 'product'
1455
- $('ul.alm-post-type-list input[type=checkbox]#chk-product').prop('checked', true).addClass('changed');
1456
-
1457
- if(postTypeCheckboxes){
1458
- postTypeCheckboxes.each(function(index, item){
1459
- if(item.dataset.type !== 'product'){
1460
- item.checked = false;
1461
- }
1462
- });
1463
- }
1464
-
1465
- $('.alm-archive input#archive_f').prop('checked', true);
1466
- }
1467
-
1468
- // Archives
1469
- if( el.attr('name') === 'archive'){
1470
- $('.alm-woocommerce input#woocommerce_f').prop('checked', true);
1471
- }
1472
-
1473
- // Reset Repeater Templates
1474
- if(el.attr('name') === 'repeater-select'){
1475
- $('.select-theme-repeater select[name=theme-repeater-select]').select2('val','');
1476
- }
1477
- if(el.attr('name') === 'theme-repeater-select'){
1478
- if($('.select-theme-repeater select[name=theme-repeater-select]').val() !== 'null' && $('.select-theme-repeater select[name=theme-repeater-select]').val() !== ''){
1479
- $('.repeater select[name=repeater-select]').select2('val','default');
1480
  }
1481
  }
1482
-
1483
  // Comments
1484
- if(el.attr('id') === 'comments_template'){
1485
  $('#comments_callback').val('');
1486
  }
1487
 
1488
- // If post type is not selected, select 'post'.
1489
- if(!$('ul.alm-post-type-list input[type=checkbox]:checked').length > 0){
1490
- $('ul.alm-post-type-list input[type=checkbox]#chk-post').prop('checked', true);
1491
- }
1492
-
1493
- // If Tax Term Operator is not selected, select 'IN'.
1494
- if(!$('#tax-operator-select input[type=radio]:checked').length > 0){
1495
- $('#tax-operator-select input[type=radio]#tax-in-radio').prop('checked', true);
1496
- }
1497
-
1498
- _alm.buildShortcode();
1499
- });
1500
-
1501
-
1502
- $("input.numbers-only").keydown(function (e) {
1503
- if ($.inArray(e.keyCode, [188, 46, 8, 9, 27, 13, 110, 190]) !== -1 ||
1504
- // Allow: Ctrl+A
1505
- (e.keyCode == 65 && e.ctrlKey === true) ||
1506
- // Allow: home, end, left, right, down, up
1507
- (e.keyCode >= 35 && e.keyCode <= 40)) {
1508
- // let it happen, don't do anything
1509
- return;
1510
- }
1511
- // Ensure that it is a number and stop the keypress
1512
- if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
1513
- if(e.keyCode !== 188){ // If keycode is not a comma
1514
- e.preventDefault();
1515
- }
1516
- }
1517
- });
1518
 
 
 
 
 
1519
 
 
 
1520
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1521
 
1522
- /*
1523
- * Jump to section, Table of contents [Repeater Templates, Shortcode Builder]
1524
- *
1525
- * @since 2.0.0
1526
- * Updated v2.13.0
1527
- */
1528
 
1529
  var jumpMenuOptions = '';
1530
- function almBuildJumpMenu(type){
1531
-
1532
- if(type === 'repeaters'){
1533
- $('.row').each(function(){
1534
- if(!$(this).hasClass('no-brd')){ // Special case for back 2 top on shortcode builder landing
1535
- var id = $(this).attr('id'),
1536
- title = $(this).find('h3.heading').text();
1537
- jumpMenuOptions += '<option value="'+id+'">'+title+'</option>';
1538
- }
1539
- });
1540
- }
1541
-
1542
- if(type === 'shortcode'){
1543
- $('.shortcode-parameter-wrap').each(function(){
1544
- var el = $(this),
1545
- opttitle = el.find('h2').text();
1546
- jumpMenuOptions += '<optgroup label="'+opttitle+'">';
1547
- $('.row', el).each(function(){
1548
- if(!$(this).hasClass('no-brd')){ // Special case for back 2 top on shortcode builder landing
1549
- var id = $(this).attr('id'),
1550
- title = $(this).find('h3.heading').text();
1551
- jumpMenuOptions += '<option value="'+id+'">'+title+'</option>';
1552
- }
1553
- });
1554
- jumpMenuOptions += '</optgroup>';
1555
- });
1556
- }
 
1557
  }
1558
- if($('.shortcode-builder .shortcode-parameter-wrap').length){
1559
- almBuildJumpMenu('shortcode'); // shortcode builder
1560
  }
1561
- if($('#alm-repeaters .repeaters').length){
1562
- if($('#unlmited-container').length){
1563
- $('#unlmited-container .row').each(function(){
1564
- var el = $(this),
1565
- id = el.find('.wrap').data('name');
1566
- el.attr('id', 'alm_'+id);
1567
- });
1568
- }
1569
- almBuildJumpMenu('repeaters'); // repeater templates
1570
  }
1571
 
1572
-
1573
-
1574
-
1575
  /* Jump Menu */
1576
 
1577
  $('select.jump-menu').append(jumpMenuOptions);
1578
- $('select.jump-menu').change(function() {
1579
  var pos = $(this).val();
1580
- if(pos !== 'null'){
1581
- $('html,body').animate({
1582
- scrollTop: $('#'+pos).offset().top - ($('.intro').height() - 20)
1583
- }, 200, 'alm_easeInOutQuad');
 
 
 
 
1584
  }
1585
- });
1586
-
1587
 
1588
  /* Table of Contents */
1589
 
1590
- if($('.table-of-contents').hasClass('repeaters-toc')){
1591
- $('.table-of-contents .toc').append('<option value="#">-- '+ alm_admin_localize.jump_to_template +' --</option>');
1592
  } else {
1593
- $('.table-of-contents .toc').append('<option value="#">-- '+ alm_admin_localize.jump_to_option +' --</option>');
1594
  }
1595
 
1596
  $('.table-of-contents .toc').append(jumpMenuOptions).select2();
1597
 
1598
- $('.table-of-contents .toc').change(function() {
1599
- var pos = $(this).val();
1600
- if(pos !== 'null' && pos !== '#'){
1601
- $('html,body').animate({
1602
- scrollTop: $('#'+pos).offset().top - 46
1603
- }, 500, 'alm_easeInOutQuad');
 
 
 
 
1604
  }
1605
- });
1606
-
1607
-
1608
 
1609
- /*
1610
- * get_tax_terms
1611
- * Get taxonomy terms via ajax
1612
- *
1613
- * @since 2.1.0
1614
- */
1615
- function get_tax_terms(tax, parent, index){
1616
- var placement = $('.tax-terms-container', parent);
1617
- placement.html("<p class='loading'>Fetching Terms...</p>");
1618
 
1619
  $.ajax({
1620
  type: 'GET',
@@ -1625,129 +1491,114 @@ jQuery(document).ready(function($) {
1625
  index: index,
1626
  nonce: alm_admin_localize.alm_admin_nonce,
1627
  },
1628
- dataType: "html",
1629
- success: function(data) {
1630
  placement.html(data);
1631
  },
1632
- error: function(xhr, status, error) {
1633
  responseText.html('<p>Error - Something went wrong and the terms could not be retrieved.');
1634
- }
1635
  });
1636
  }
1637
 
1638
-
1639
-
1640
  /*
1641
- * _alm.alm_easeInOutQuad
1642
- * Ajax Load More easing
1643
- *
1644
- * @since 2.0.0
1645
- */
1646
 
1647
  $.easing.alm_easeInOutQuad = function (x, t, b, c, d) {
1648
- if ((t/=d/2) < 1) return c/2*t*t + b;
1649
- return -c/2 * ((--t)*(t-2) - 1) + b;
1650
- }
1651
-
1652
-
1653
-
1654
- /*
1655
- * _alm.SelectText
1656
- * Click to select text
1657
- *
1658
- * @since 2.0.0
1659
- */
1660
-
1661
- _alm.SelectText = function(element) {
1662
- var doc = document,
1663
- text = doc.getElementById(element),
1664
- range,
1665
- selection;
1666
- if (doc.body.createTextRange) {
1667
- range = document.body.createTextRange();
1668
- range.moveToElementText(text);
1669
- range.select();
1670
- } else if (window.getSelection) {
1671
- selection = window.getSelection();
1672
- range = document.createRange();
1673
- range.selectNodeContents(text);
1674
- selection.removeAllRanges();
1675
- selection.addRange(range);
1676
- }
1677
- }
1678
- $('#shortcode_output').click(function() {
1679
- _alm.SelectText('shortcode_output');
1680
- });
1681
-
1682
-
1683
-
1684
- /*
1685
- * Reset shortcode builder
1686
- *
1687
- * @since 2.5.0
1688
- */
1689
-
1690
- $(document).on('click', '.reset-shortcode-builder a', function(){
1691
- $('#alm-shortcode-builder-form').trigger("reset");
1692
- _alm.reset_select2();
1693
- //total_tax_query = 0;
1694
- //$('.ajax-load-more .taxonomy-wrap').hide();
1695
- _alm.buildShortcode();
1696
- });
1697
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1698
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1699
 
1700
- /*
1701
- * _alm.generateUniqueID
1702
- * Generate Unique Cache ID
1703
- *
1704
- * @since 2.6.0
1705
- */
 
 
 
 
 
 
1706
 
1707
- _alm.generateUniqueID = function(length, el) {
1708
- var id = Math.floor(Math.pow(10, length-1) + Math.random() * 9 * Math.pow(10, length-1));
1709
- $(el).val(id);
1710
- //_alm.buildShortcode();
1711
- }
1712
-
1713
-
1714
-
1715
- /*
1716
  * Option toggle click events
1717
  8
1718
  * @since 5.2.0
1719
  */
1720
- $('.builder-option-toggle--buttons button').on('click', function(){
1721
  var siblings = $(this).siblings('button').removeClass('active');
1722
  $(this).addClass('active');
1723
  _alm.buildShortcode();
1724
  });
1725
 
 
 
 
 
 
 
 
 
 
 
 
1726
 
1727
-
1728
- /*
1729
- * Generate Unique/Cache ID
1730
- *
1731
- * @since 2.6.0
1732
- */
1733
-
1734
- $(document).on('click', '.generate-id a', function(){
1735
- var id = $(this).data('id'),
1736
- el = $('#'+id);
1737
- _alm.generateUniqueID(10, el);
1738
- });
1739
-
1740
-
1741
  // Button loader preview.
1742
- $('.ajax-load-more-wrap button').on('click', function(e){
1743
  var button = $(this).get(0);
1744
  var parent = button.parentNode;
1745
- if(parent.classList.contains('infinite')){
1746
  $(this).addClass('loading');
1747
  } else {
1748
  $(this).toggleClass('loading');
1749
  }
1750
  });
1751
-
1752
-
1753
  });
1
+ jQuery(document).ready(function ($) {
2
+ 'use strict';
3
 
4
+ var _alm = {},
5
+ output_div = $('.ajax-load-more.shortcode-builder #shortcode_output'),
6
+ output = '[ajax_load_more]';
 
 
7
 
8
+ output_div.text(output); //Init the shortcode output
9
 
10
+ /*
11
+ * _alm.select2
12
+ * Init Select2 select replacement
13
+ *
14
+ * @since 2.5.0
15
+ */
16
+ _alm.select2 = function () {
17
+ // Default Select2
18
+ $('.row select, .cnkt-main select, select.jump-menu').not('.multiple, .meta-compare, .meta-type, .alm-filter-select').select2({});
19
+
20
+ // Set placeholder
21
+ $('.ajax-load-more select.multiple').select2({
22
+ placeholder: '-- ' + alm_admin_localize.select + ' --',
23
+ });
24
+ };
25
+ _alm.select2();
26
+
27
+ // Reset all selects
28
+ _alm.reset_select2 = function () {
29
+ // Default Select2
30
+ $('.row select, .cnkt-main select, select.jump-menu').not('.multiple').select2();
31
+
32
+ // multiple
33
+ $('.ajax-load-more .categories select.multiple').select2();
34
+ $('.ajax-load-more .tags select.multiple').select2();
35
+ $('.ajax-load-more .authors select.multiple').select2();
36
+ $('.ajax-load-more .term_query select.multiple').select2();
37
+ $('.ajax-load-more .users select.multiple').select2();
38
+ };
39
+
40
+ // Taxonomy Query
41
+ var total_tax_query = 0,
42
+ max_tax_query = 2;
43
+ $('#add-tax-query').on('click', function (e) {
44
+ e.preventDefault();
45
+
46
+ if (total_tax_query < 2) {
47
+ total_tax_query++;
48
+ $('#tax-query-relation').fadeIn(250);
49
+ $('.ajax-load-more .taxonomy-wrap')
50
+ .eq(total_tax_query - 1)
51
+ .fadeIn(250);
52
 
53
+ if (total_tax_query === 2) {
54
+ // Hide "Add" button if 3 $('.taxonomy-wrap')
55
+ $('#alm-taxonomy .controls button').addClass('disabled');
56
+ }
57
+ } else {
58
+ alert(alm_admin_localize.shortcode_max);
59
+ return false;
60
+ }
61
+ });
62
 
63
+ /* Delete Tax Query */
64
+ $(document).on('click', '.remove-tax-query', function (e) {
65
+ var el = $(this),
66
+ parent = el.parent('.taxonomy-wrap');
67
+
68
+ $('select', parent).select2('val', '').trigger('change');
69
+ total_tax_query--;
70
+ parent.addClass('removing');
71
+ parent.fadeOut(250, function () {
72
+ _alm.buildShortcode();
73
+ parent.removeClass('removing');
74
+ });
75
 
76
+ if (total_tax_query < 2) {
77
+ // Show "Add" button if less than 3
78
+ $('#alm-taxonomy .controls button').removeClass('disabled');
79
+ }
80
 
81
+ if (total_tax_query == 0) {
82
+ $('#tax-query-relation').fadeOut(250);
83
+ }
84
+ });
85
 
86
+ // Add additional meta_query
87
+ var meta_query_obj = $('.meta-query-wrap').eq(0).clone();
88
+ $('.meta-query-wrap .remove').remove();
89
+ $('select.meta-compare, select.meta-type').select2();
90
+ $('#add-meta-query').on('click', function (e) {
91
+ e.preventDefault();
92
 
93
+ if ($('.meta-query-wrap').length > 3) {
94
+ alert('Sorry - maximum of 4 meta_query objects.');
95
+ return false;
96
+ }
97
 
98
+ var target = $('#meta-query-extended');
99
+ $('input, select', meta_query_obj).val('');
100
+ var el = meta_query_obj.clone().hide();
101
+ target.append(el);
102
+ el.fadeIn(250);
103
+ $('#meta-query-extended select').select2();
104
 
105
+ if ($('.meta-query-wrap').length > 1) {
106
+ $('#meta-query-relation').fadeIn(250);
107
+ } else {
108
+ $('#meta-query-relation').fadeOut(250);
109
+ }
 
 
110
 
111
+ $('select.meta-compare').select2();
112
 
113
+ if ($('.meta-query-wrap').length > 3) {
114
+ // Hide "Add" button if 4 $('.meta-query-wrap')
115
+ $('#alm-meta-key .controls button').addClass('disabled');
116
+ }
117
+ });
118
 
119
+ /* Delete Meta Query */
120
+ $(document).on('click', '.remove-meta-query', function (e) {
121
+ var el = $(this);
122
+ el.parent('.meta-query-wrap').addClass('removing');
123
+ el.parent('.meta-query-wrap').fadeOut(250, function () {
124
+ el.parent('.meta-query-wrap').remove();
125
+ _alm.buildShortcode();
126
+ });
127
+ if ($('.meta-query-wrap').length > 3) {
128
+ // Show "Add" button if less than 4 $('.meta-query-wrap')
129
+ $('#alm-meta-key .controls button').removeClass('disabled');
130
+ }
131
+ });
132
 
133
+ /*
134
+ * _alm.buildShortcode
135
+ * Loop sections and build the shortcode
136
+ *
137
+ * @since 1.0
138
+ */
139
+
140
+ _alm.buildShortcode = function () {
141
+ output = '[ajax_load_more';
142
+
143
+ // ---------------------------
144
+ // - ID
145
+ // ---------------------------
146
+
147
+ var unique_id = $('input#unique-id').val();
148
+ if (unique_id) output += ' id="' + unique_id + '"';
149
+
150
+ // ---------------------------
151
+ // - Loading Style
152
+ // ---------------------------
153
+
154
+ var loading_style = $('select#loading-style').val();
155
+ var loading_style_default = $('select#loading-style').data('default');
156
+ var loading_style_target = $('select#loading-style').parent().find('.ajax-load-more-wrap');
157
+ if (loading_style_target) {
158
+ var loading_style_base = loading_style_target.data('base');
159
+ loading_style_target.removeAttr('class');
160
+ loading_style_target.attr('class', loading_style_base + loading_style);
161
+ if (loading_style.indexOf('infinite') !== -1) {
162
+ $('.ajax-load-more-wrap button').addClass('loading');
163
+ } else {
164
+ $('.ajax-load-more-wrap button').removeClass('loading');
165
+ }
166
+ }
167
+ if (loading_style && loading_style !== loading_style_default) {
168
+ output += ' loading_style="' + loading_style + '"';
169
+ }
170
 
171
+ // ---------------------------
172
+ // - Container Type
173
+ // ---------------------------
174
 
175
+ var container_type = $('.container_type input[name=alm_container_type]:checked').val();
176
+ if (container_type) output += ' container_type="' + container_type + '"';
 
 
177
 
178
+ // ---------------------------
179
+ // - Container Classes
180
+ // ---------------------------
181
 
182
+ var container_classes = $('.alm-instance-options input#container-classes').val();
183
+ container_classes = $.trim(container_classes);
184
+ if (container_classes !== '' && $('.alm-instance-options input#container-classes').hasClass('changed'))
185
+ output += ' css_classes="' + container_classes + '"';
186
 
187
+ // ---------------------------
188
+ // - Advacned Custom Fields
189
+ // ---------------------------
 
 
 
 
190
 
191
+ var acf = $('#alm-acf input[name=acf]:checked').val();
 
 
192
 
193
+ if (acf !== 'false' && acf != undefined) {
194
+ var acf_post_id = $('#acf_post_id').val(),
195
+ acf_field_type = $('#acf_field_type').val(),
196
+ acf_field_name = $('#acf_field_name').val(),
197
+ acf_parent_field_name = $('#acf_parent_field_name').val();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
198
 
199
+ $('.acf-options').slideDown(250, 'alm_easeInOutQuad');
 
200
 
201
+ if (acf_field_type !== '' && acf_field_name !== '') {
202
+ output += ' acf="' + acf + '"';
203
+ if (acf_post_id !== '') {
204
+ output += ' acf_post_id="' + acf_post_id + '"';
205
+ }
206
+ output += ' acf_field_type="' + acf_field_type + '"';
207
+ output += ' acf_field_name="' + acf_field_name + '"';
208
 
209
+ if (acf_parent_field_name) {
210
+ output += ' acf_parent_field_name="' + acf_parent_field_name + '"';
211
+ }
212
+ }
213
+ } else {
214
+ $('.acf-options').slideUp(250, 'alm_easeInOutQuad');
215
+ }
216
 
217
+ // ---------------------------
218
+ // - Cache
219
+ // ---------------------------
220
 
221
+ var cache = $('#alm-cache input[name=cache]:checked').val();
222
+ if (cache !== 'false' && cache != undefined) {
223
+ if ($('input#cache-id').val() === '') _alm.generateUniqueID(10); // Generate unique ID on first load
224
 
225
+ $('.cache_id').slideDown(250, 'alm_easeInOutQuad');
226
+ output += ' cache="' + cache + '"';
227
+ var cache_id = $('input#cache-id').val();
228
+ if (cache_id) output += ' cache_id="' + cache_id + '"';
229
+ } else {
230
+ $('.cache_id').slideUp(250, 'alm_easeInOutQuad');
231
+ }
232
 
233
+ // ---------------------------
234
+ // - Call to Actions
235
+ // ---------------------------
236
+
237
+ var cta_container = $('#alm-cta');
238
+ var cta = $('input[name=cta]:checked', cta_container).val();
239
+ var cta_position = $('input[name=cta-position]', cta_container).val();
240
+ var cta_before_after = $('select[name=cta-before-after]', cta_container).val();
241
+ var cta_repeater = $('select[name=cta-repeater-select]', cta_container).val();
242
+ var cta_theme_repeater = $('select[name=theme-repeater-select]', cta_container).val();
243
+
244
+ if (cta !== 'false' && cta != undefined) {
245
+ $('.cta_template_wrap').slideDown(250, 'alm_easeInOutQuad');
246
+ // Standard repeater
247
+ if (cta_repeater != '' && cta_repeater != undefined && cta_position != '' && cta_position != null) {
248
+ output += ' cta="' + cta + '"';
249
+ output += ' cta_position="' + cta_before_after + ':' + cta_position + '"';
250
+ output += ' cta_repeater="' + cta_repeater + '"';
251
+ }
252
+ // Theme repeater
253
+ if (cta_theme_repeater != '' && cta_theme_repeater != undefined && cta_position != '' && cta_position != null) {
254
+ output += ' cta="' + cta + '"';
255
+ output += ' cta_position="' + cta_before_after + ':' + cta_position + '"';
256
+ output += ' cta_theme_repeater="' + cta_theme_repeater + '"';
257
  }
258
+ $('#sequence-update').text(cta_position);
259
+ $('#sequence-update-before-after').text(cta_before_after);
260
+ } else {
261
+ $('.cta_template_wrap').slideUp(250, 'alm_easeInOutQuad');
262
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
263
 
264
+ // ---------------------------
265
+ // - Comments
266
+ // ---------------------------
 
 
 
 
 
267
 
268
+ var comments = $('#alm-comments input[name=comments]:checked').val();
269
+ if (comments === undefined) {
270
+ comments = false;
271
+ }
272
 
273
+ if (comments === 'true') {
274
+ var comments_post_id = $('#comments_post_id').val(),
275
+ comments_per_page = $('#comments-per-page').val(),
276
+ comments_type = $('#comments_type').val(),
277
+ comments_template = $('#comments_template').val(),
278
+ comments_callback = $('#comments_callback').val().trim(),
279
+ comments_style = $('#alm-comments input[name=alm_comment_style]:checked').val();
280
 
281
+ if (comments_callback !== '') {
282
+ $('#comments_template').select2('val', 'none');
283
+ }
 
 
 
284
 
285
+ output += ' comments="' + comments + '"';
286
+ output += ' comments_post_id="\'.' + comments_post_id + '.\'"';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
287
 
288
+ if (comments_type !== 'comment') output += ' comments_type="' + comments_type + '"';
289
 
290
+ if (comments_per_page !== '5') output += ' comments_per_page="' + comments_per_page + '"';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
291
 
292
+ if (comments_style !== 'ol') output += ' comments_style="' + comments_style + '"';
293
 
294
+ if (comments_template !== 'none') output += ' comments_template="' + comments_template + '"';
295
 
296
+ if (comments_callback !== '') output += ' comments_callback="' + comments_callback + '"';
 
 
 
 
 
 
 
297
 
298
+ $('.comments_extras').slideDown(250, 'alm_easeInOutQuad');
299
+ } else {
300
+ $('.comments_extras').slideUp(250, 'alm_easeInOutQuad');
301
+ }
302
+
303
+ // ---------------------------
304
+ // - Filters
305
+ // ---------------------------
306
+
307
+ var filters = $('.filters input[name=filters]:checked').val();
308
+ if (filters !== 'false' && filters != undefined) {
309
+ $('.filters_options').slideDown(250, 'alm_easeInOutQuad');
310
 
311
  var filters_id = $('#alm-filters select');
312
+ if (filters_id.length) {
313
+ if (filters_id.val() !== '') {
314
+ output += ' target="' + filters_id.val().trim() + '"';
315
+ }
316
+ }
317
 
318
+ output += ' filters="' + filters + '"';
319
 
320
  var filters_url = $('#alm-filters input[name=filters-url]:checked').val().trim();
321
+ if (filters_url !== '' && filters_url !== 'true') output += ' filters_url="' + filters_url + '"';
 
322
 
323
  var filters_paging = $('#alm-filters input[name=filters-paging]:checked').val().trim();
324
+ if (filters_paging !== '' && filters_paging !== 'true') output += ' filters_paging="' + filters_paging + '"';
 
325
 
326
  var filters_scroll = $('#alm-filters input[name=filters-scroll]:checked').val().trim();
327
+ if (filters_scroll !== '' && filters_scroll !== 'false') output += ' filters_scroll="' + filters_paging + '"';
328
+
329
+ if (filters_paging === 'true' || filters_scroll === 'true') {
 
 
330
  $('#filter-scrollTopOptions').slideDown(250, 'alm_easeInOutQuad');
331
+
332
  var filters_scrolltop = $('#alm-filters input[name=filters-scrolltop]').val();
333
+ if (filters_scrolltop !== '30') output += ' filters_scrolltop="' + filters_scrolltop + '"';
334
+ } else {
 
 
335
  $('#filter-scrollTopOptions').slideUp(250, 'alm_easeInOutQuad');
336
+ }
337
 
338
  var filters_analytics = $('#alm-filters input[name=filters-analytics]:checked').val().trim();
339
+ if (filters_analytics !== '' && filters_analytics !== 'true') output += ' filters_analytics="' + filters_analytics + '"';
 
340
 
341
  var filters_debug = $('#alm-filters input[name=filters-debug]:checked').val().trim();
342
+ if (filters_debug !== '' && filters_debug !== 'false') output += ' filters_debug="' + filters_debug + '"';
343
+ } else {
344
+ $('.filters_options').slideUp(250, 'alm_easeInOutQuad');
345
+ }
346
+
347
+ // ---------------------------
348
+ // - Next Page
349
+ // ---------------------------
350
+
351
+ var nextpage = $('.next-page input[name=next-page]:checked').val();
352
+ if (nextpage !== 'false' && nextpage != undefined) {
353
+ var nextpage_post_id = $('#next-page_post_id').val(),
354
+ nextpage_url = $('input#next-page-url:checked').val(),
355
+ nextpage_pageviews = $('input#next-page-pageviews:checked').val(),
356
+ nextpage_scroll = $('select#next-page-scroll').val(),
357
+ nextpage_scrolltop = $('input#next-page-scroll-top').val();
358
+
359
+ $('.next-page-content').slideDown(250, 'alm_easeInOutQuad');
360
+
361
+ output += ' nextpage="' + nextpage + '"';
362
+ output += ' nextpage_post_id="\'.' + nextpage_post_id + '.\'"';
363
+
364
+ if (nextpage_url !== 'true') {
365
+ output += ' nextpage_urls="false"';
366
+ }
367
+ if (nextpage_pageviews !== 'true') {
368
+ output += ' nextpage_pageviews="false"';
369
+ }
370
+
371
+ output += ' nextpage_scroll="' + nextpage_scroll + ':' + nextpage_scrolltop + '"';
372
+ } else {
373
+ $('.next-page-content').slideUp(250, 'alm_easeInOutQuad');
374
+ }
375
+
376
+ // ---------------------------
377
+ // - Paging
378
+ // ---------------------------
379
+
380
+ var paging = $('#alm-paging input[name=paging]:checked').val();
381
+ var paging_controls = $('#alm-paging input[name=paging-controls]:checked').val();
382
+ var paging_show_at_most = $('#alm-paging input#show-at-most').val();
383
+ var paging_classes = $('#alm-paging input#paging-classes').val();
384
+ var paging_scroll = $('#alm-paging select#paging-scroll').val();
385
+ var paging_scrolltop = $('#alm-paging input#paging-scrolltop').val();
386
+
387
+ var paging_first_label = $('#alm-paging input#paging-first-label').val();
388
+ var paging_last_label = $('#alm-paging input#paging-last-label').val();
389
+ var paging_previous_label = $('#alm-paging input#paging-previous-label').val();
390
+ var paging_next_label = $('#alm-paging input#paging-next-label').val();
391
+
392
+ if (paging !== 'false' && paging != undefined) {
393
+ output += ' paging="' + paging + '"';
394
+
395
+ if (paging_classes !== '') {
396
+ output += ' paging_classes="' + paging_classes + '"';
397
+ }
398
+ if (paging_show_at_most !== '') {
399
+ output += ' paging_show_at_most="' + paging_show_at_most + '"';
400
+ }
401
+ if (paging_scroll !== 'false') {
402
+ $('.paging-scrolltop-wrap').show();
403
+ paging_scrolltop = paging_scrolltop ? paging_scrolltop : 100;
404
+ output += ' paging_scroll="true:' + paging_scrolltop + '"';
405
+ } else {
406
+ $('.paging-scrolltop-wrap').hide();
407
+ }
408
+
409
+ $('#nav-controls').slideDown(250, 'alm_easeInOutQuad');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
410
 
411
+ output += ' paging_controls="' + paging_controls + '"';
412
+
413
+ if (paging_controls === 'true') {
414
+ $('#paging-controls-nav').slideDown(250, 'alm_easeInOutQuad');
415
+ output += paging_first_label !== '' ? ' paging_first_label="' + paging_first_label + '"' : '';
416
+ output += paging_last_label !== '' ? ' paging_last_label="' + paging_last_label + '"' : '';
417
+ output += paging_previous_label !== '' ? ' paging_previous_label="' + paging_previous_label + '"' : '';
418
+ output += paging_next_label !== '' ? ' paging_next_label="' + paging_next_label + '"' : '';
419
+ } else {
420
+ $('#paging-controls-nav').slideUp(250, 'alm_easeInOutQuad');
421
+ }
422
+ } else {
423
+ $('#nav-controls').slideUp(250, 'alm_easeInOutQuad');
424
+ }
425
+
426
+ // ---------------------------
427
+ // - Preload
428
+ // ---------------------------
429
+
430
+ var seo = $('.seo input[name=seo]:checked').val();
431
+ var preload = $('.preload input[name=preload]:checked').val();
432
+ if (preload !== 'false' && preload != undefined) {
433
+ if (seo !== 'true') $('.preload_amount').slideDown(250, 'alm_easeInOutQuad');
434
+
435
+ output += ' preloaded="' + preload + '"';
436
+ var preload_amount = $('.preload input#preload-amount').val();
437
+ if (preload_amount > 0 && preload_amount != 5) output += ' preloaded_amount="' + preload_amount + '"';
438
+ } else {
439
+ $('.preload_amount').slideUp(250, 'alm_easeInOutQuad');
440
+ }
441
+
442
+ // ---------------------------
443
+ // - REST API
444
+ // ---------------------------
445
+
446
+ var rest = $('#alm-rest input[name=rest]:checked').val();
447
+ if (rest !== 'false' && rest != undefined) {
448
+ $('.restapi_options').slideDown(250, 'alm_easeInOutQuad');
449
+ output += ' restapi="' + rest + '"';
450
+
451
+ var restapi_base = $('#alm-rest input#rest-base').val().trim(),
452
+ restapi_namespace = $('#alm-rest input#rest-namespace').val().trim(),
453
+ restapi_endpoint = $('#alm-rest input#rest-endpoint').val().trim(),
454
+ restapi_template_id = $('#alm-rest input#rest-template-id').val().trim(),
455
+ restapi_debug = $('#alm-rest input[name=rest-debug]:checked').val().trim();
456
+
457
+ if (restapi_base !== '') output += ' restapi_base="' + restapi_base + '"';
458
+
459
+ if (restapi_namespace !== '') output += ' restapi_namespace="' + restapi_namespace + '"';
460
+
461
+ if (restapi_endpoint !== '') output += ' restapi_endpoint="' + restapi_endpoint + '"';
462
+
463
+ if (restapi_template_id !== '') {
464
+ restapi_template_id = restapi_template_id.replace('tmpl-', ''); // Remove tmpl- if present in value
465
+ output += ' restapi_template_id="' + restapi_template_id + '"';
466
+ }
467
+
468
+ if (restapi_debug !== '' && restapi_debug !== 'false') output += ' restapi_debug="' + restapi_debug + '"';
469
+ } else {
470
+ $('.restapi_options').slideUp(250, 'alm_easeInOutQuad');
471
+ }
472
+
473
+ // ---------------------------
474
+ // - TERMS
475
+ // ---------------------------
476
+
477
+ var term_query = $('#alm-term_query input[name=term_query]:checked').val();
478
+ if (term_query !== 'false' && term_query != undefined) {
479
+ $('.term_query-options').slideDown(250, 'alm_easeInOutQuad');
480
+
481
+ var term_query_taxonomy = $('#alm-term_query select#term_query-taxonomy-select').val();
482
+ var term_query_number = $('#alm-term_query #term_query-number').val();
483
+ var term_query_hide_empty = $('#alm-term_query #term_query-hide-empty').val();
484
+ if (term_query_taxonomy) {
485
+ output += ' term_query="true"';
486
+ output += ' term_query_taxonomy="' + term_query_taxonomy + '"';
487
+ output += ' term_query_number="' + term_query_number + '"';
488
+ output += ' term_query_hide_empty="' + term_query_hide_empty + '"';
489
+ }
490
+ } else {
491
+ $('.term_query-options').slideUp(250, 'alm_easeInOutQuad');
492
+ }
493
+
494
+ // ---------------------------
495
+ // - SEO
496
+ // ---------------------------
497
+
498
+ if (seo !== 'false' && seo != undefined) {
499
+ if (preload === 'true') $('.preload_amount').slideUp(250, 'alm_easeInOutQuad');
500
+ output += ' seo="' + seo + '"';
501
+ }
502
+
503
+ // ---------------------------
504
+ // - Single Post
505
+ // ---------------------------
506
+
507
+ var previous = $('.previous-post input[name=prev-post]:checked').val();
508
+ if (previous !== 'false' && previous != undefined) {
509
+ var pp_id = $('#pp_id').val(),
510
+ pp_order = $('#pp-order').val(),
511
+ pp_post__in_order = $('#pp_post__in_input').val(),
512
+ pp_taxonomy = $('#pp-taxonomy-select').val(),
513
+ pp_excluded_terms = $('#pp-term-exclude').val(),
514
+ pp_elementor = $('.previous-post input[name=elementor-single]:checked').val(),
515
+ pp_progress_bar = $('.previous-post input[name=prev-post-progress]:checked').val(),
516
+ pp_target = $('.previous-post input#pp-target').val();
517
+
518
+ $('.prev_post_options').slideDown(250, 'alm_easeInOutQuad');
519
+
520
+ $('#pp-taxonomy-select').attr('disabled', false);
521
+ $('#pp-term-exclude').attr('disabled', false);
522
+
523
+ output += ' single_post="' + previous + '"';
524
+ output += ' single_post_id="\'.' + pp_id + '.\'"';
525
+
526
+ if (pp_order === '') {
527
+ output += ' single_post_order="previous"';
528
+ $('#pp_post__in').slideUp(250, 'alm_easeInOutQuad');
529
+ $('#pp_extras').slideDown(250, 'alm_easeInOutQuad');
530
+ } else {
531
+ if (pp_order === 'post__in') {
532
+ pp_taxonomy = '';
533
+ pp_excluded_terms = '';
534
+ output += ' single_post_order="' + pp_post__in_order + '"';
535
+ $('#pp-taxonomy-select').attr('disabled', true);
536
+ $('#pp-term-exclude').attr('disabled', true);
537
+ $('#pp_post__in').slideDown(250, 'alm_easeInOutQuad');
538
+ $('#pp_extras').slideUp(250, 'alm_easeInOutQuad');
539
+ } else {
540
+ output += ' single_post_order="' + pp_order + '"';
 
 
 
 
 
 
541
  $('#pp_post__in').slideUp(250, 'alm_easeInOutQuad');
542
+ $('#pp_extras').slideDown(250, 'alm_easeInOutQuad');
543
+ }
544
+ }
545
+
546
+ output += pp_taxonomy !== '' ? ' single_post_taxonomy="' + pp_taxonomy + '"' : '';
547
+ output += pp_excluded_terms !== '' ? ' single_post_excluded_terms="' + pp_excluded_terms + '"' : '';
548
+ output += pp_target !== '' ? ' single_post_target="' + pp_target + '"' : '';
549
+ output += pp_elementor === 't' ? ' elementor="true"' : '';
550
+
551
+ // Reading Progress Bar
552
+ if (pp_progress_bar === 'true') {
553
+ $('#pp_progressbar_options').slideDown(250, 'alm_easeInOutQuad');
554
+
555
+ var pp_progress_bar_position = $('#pp_progressbar_options input[name=prev-post-progress-position]:checked').val();
556
+ var pp_progress_bar_height = $('#pp_progressbar_options input[name=prev-post-progress-height]').val();
557
+
558
+ var pp_progress_bar_color = $('.prev-post-progress-front-color input').val();
559
+ var pp_progress_indicator = $('.prev-post-progress-front-color .progress_bar_color_indicator');
560
+
561
+ var pp_progress_bar_bkg_color = $('.prev-post-progress-back-color input').val();
562
+ pp_progress_bar_bkg_color = pp_progress_bar_bkg_color.length === 6 ? pp_progress_bar_bkg_color : ''; // Minimum 6
563
+ var pp_progress_indicator_bkg = $('.prev-post-progress-back-color .progress_bar_color_indicator');
564
+
565
+ // Remove style atts from indicator
566
+ pp_progress_indicator_bkg.removeAttr('style');
567
+ pp_progress_indicator.removeAttr('style');
568
+
569
+ // If all values are set
570
+ if (pp_progress_bar_color.length === 6 && pp_progress_bar_height && pp_progress_bar_position) {
571
+ pp_progress_indicator.css('background-color', '#' + pp_progress_bar_color);
572
+ pp_progress_indicator_bkg.css('background-color', '#' + pp_progress_bar_bkg_color);
573
+ pp_progress_bar_bkg_color = pp_progress_bar_bkg_color !== '' ? ':' + pp_progress_bar_bkg_color : '';
574
+ output +=
575
+ ' single_post_progress_bar="' +
576
+ pp_progress_bar_position +
577
+ ':' +
578
+ pp_progress_bar_height +
579
+ ':' +
580
+ pp_progress_bar_color +
581
+ pp_progress_bar_bkg_color +
582
+ '"';
583
+ }
584
+ } else {
585
+ $('#pp_progressbar_options').slideUp(250, 'alm_easeInOutQuad');
586
+ }
587
+ } else {
588
+ $('.prev_post_options').slideUp(250, 'alm_easeInOutQuad');
589
+ }
590
+
591
+ // ---------------------------
592
+ // - Users
593
+ // ---------------------------
594
+
595
+ var users = $('#alm-users input[name=users]:checked').val();
596
+ if (users === undefined) {
597
+ users = false;
598
+ }
599
+ if (users !== false && users !== 'false' && users != undefined) {
600
  var users_role = $('#alm-users select#users-role').val();
601
  var users_include = $('#alm-users input#users-include').val();
602
  var users_exclude = $('#alm-users input#users-exclude').val();
605
  var users_orderby = $('#alm-users select#users-orderby').val();
606
 
607
  // Deselect other roles if 'All Roles' is selected.
608
+ var UsersList = document.querySelector('#alm-users select#users-role');
609
+ var users_all_selected = false;
610
+ // Loop all roles
611
+ for (var i = 0; i < UsersList.length; i++) {
612
+ if (UsersList.options[i].selected) {
613
+ if (users_all_selected) {
614
+ UsersList.options[i].selected = false;
615
+ }
616
+ if (UsersList.options[i].value === 'all') {
617
+ users_all_selected = true;
618
+ }
619
+ }
620
+ }
621
+ $('#alm-users select#users-role').select2(); // Reset Select2
622
+ users_role = $('#alm-users select#users-role').val(); // Get new users_role value
623
+
624
+ $('#users-extended').slideDown(250, 'alm_easeInOutQuad');
625
+
626
+ output += ' users="' + users + '"';
627
+
628
+ if (users_role !== '' && users_role != undefined) {
629
+ output += ' users_role="' + users_role + '"';
630
+ }
631
+ if (users_include !== '') {
632
+ output += ' users_include="' + users_include + '"';
633
+ }
634
+ if (users_exclude !== '') {
635
+ output += ' users_exclude="' + users_exclude + '"';
636
+ }
637
+ if (users_per_page !== '5') {
638
+ output += ' users_per_page="' + users_per_page + '"';
639
+ }
640
+ if (users_order !== 'ASC') {
641
+ output += ' users_order="' + users_order + '"';
642
+ }
643
+ if (users_orderby !== 'login') {
644
+ output += ' users_orderby="' + users_orderby + '"';
645
+ }
646
+ } else {
647
+ $('#users-extended').slideUp(250, 'alm_easeInOutQuad');
648
+ }
649
+
650
+ // ---------------------------
651
+ // - Repeater Templates
652
+ // ---------------------------
653
+
654
+ var repeater = $('#alm-repeaters select[name=repeater-select]').val(),
655
+ theme_repeater = $('#alm-repeaters .select-theme-repeater select[name=theme-repeater-select]').val();
656
+
657
+ if (theme_repeater != 'null' && theme_repeater != '' && theme_repeater != undefined) {
658
+ output += ' theme_repeater="' + theme_repeater + '"';
659
+ } else {
660
+ if (repeater != '' && repeater != undefined && repeater != 'default') {
661
+ output += ' repeater="' + repeater + '"';
662
+ }
663
+ }
664
+
665
+ // ---------------------------
666
+ // - Post Types
667
+ // ---------------------------
668
+
669
+ if ((users === 'false' || users === undefined || !users) && (comments === 'false' || !comments || comments === undefined)) {
670
+ // Hide post_types if comments is active
671
+
672
+ var post_type_count = 0,
673
+ selected_post_type = '';
674
+ $('ul.alm-post-type-list input[type=checkbox]').each(function (e) {
675
+ if ($(this).is(':checked')) {
676
+ post_type_count++;
677
+ if (post_type_count > 1) {
678
+ output += ', ' + $(this).data('type');
679
+ } else {
680
+ if ($(this).hasClass('changed')) {
681
+ output += ' post_type="' + $(this).data('type') + '';
682
+ }
683
+ }
684
+ selected_post_type = $(this).data('type');
685
+ }
686
+ });
687
+ if (post_type_count > 0) {
688
+ output += '"';
689
+ }
690
+ }
691
+
692
+ // ---------------------------
693
+ // - Sticky Posts
694
+ // ---------------------------
695
+
696
+ if (selected_post_type !== 'post') {
697
+ $('.sticky-wrap').slideUp(250, 'alm_easeInOutQuad');
698
+ $('input[name=alm_sticky_posts]').prop('checked', false);
699
+ } else {
700
+ $('.sticky-wrap').slideDown(250, 'alm_easeInOutQuad');
701
+ }
702
+
703
+ var sticky_posts = $('input[name=alm_sticky_posts]:checked').val();
704
+ if (sticky_posts && selected_post_type === 'post') output += ' sticky_posts="' + sticky_posts + '"';
705
+
706
+ // ---------------------------
707
+ // - Posts Per Page
708
+ // ---------------------------
709
+
710
+ var posts_per_page = $('.posts_per_page input').val();
711
+ if (posts_per_page > 0 && posts_per_page != 5) output += ' posts_per_page="' + posts_per_page + '"';
712
+
713
+ // ---------------------------
714
+ // - Post Format
715
+ // ---------------------------
716
+
717
+ var post_format = $('.post_format select').val();
718
+ if (post_format != '' && post_format != undefined) output += ' post_format="' + post_format + '"';
719
+
720
+ // ---------------------------
721
+ // - Categories
722
+ // ---------------------------
723
+
724
+ var category_type = $('.categories #category__and');
725
+ var category_populate = $('.categories .alm-populate');
726
+ var category_populate_eg = $('.categories .alm-populate-eg');
 
 
 
 
 
 
 
 
 
 
 
727
  // If checked
728
+ if (category_type.length) {
729
+ if (category_type.get(0).checked) {
730
+ $('.category-toggle.category_name').hide();
731
+ $('.category-toggle.category_name select').select2('val', '');
732
+ $('.category-toggle.category__and').show();
733
+ category_populate.text('ID');
734
+ category_populate_eg.text('e.g. 2, 9, 7 etc...');
735
+ } else {
736
+ $('.category-toggle.category__and').hide();
737
+ $('.category-toggle.category__and select').select2('val', '');
738
+ $('.category-toggle.category_name').show();
739
+ category_populate.text('slug');
740
+ category_populate_eg.text('e.g. design, research etc...');
741
+ }
742
+ }
743
+
744
+ // IN
745
+ var cat = $('.categories #category-select').val();
746
+ if (cat !== '' && cat !== undefined && cat !== null) {
747
+ output += ' category="' + cat + '"';
748
+ }
749
+
750
+ // AND
751
+ var cat__and = $('.categories #category--and-select').val();
752
+ if (cat__and !== '' && cat__and !== undefined && cat__and !== null) {
753
+ output += ' category__and="' + cat__and + '"';
754
+ }
755
+
756
+ // NOT_IN
757
+ var cat_not_in = $('.categories #category-exclude-select').val();
758
+ if (cat_not_in !== '' && cat_not_in !== undefined && cat_not_in !== null) output += ' category__not_in="' + cat_not_in + '"';
759
+
760
+ // ---------------------------
761
+ // - Tags
762
+ // ---------------------------
763
+
764
+ var tag_type = $('.tags #tag__and');
765
+ var tag_populate = $('.tags .alm-populate');
766
+ var tag_populate_eg = $('.tags .alm-populate-eg');
 
 
767
 
768
  // If checked
769
+ if (tag_type.length) {
770
+ if (tag_type.get(0).checked) {
771
+ $('.tag-toggle.tag_normal').hide();
772
+ $('.tag-toggle.tag_normal select').select2('val', '');
773
+ $('.tag-toggle.tag__and').show();
774
+ tag_populate.text('ID');
775
+ tag_populate_eg.text('e.g. 3, 4, 6 etc...');
776
+ } else {
777
+ $('.tag-toggle.tag__and').hide();
778
+ $('.tag-toggle.tag__and select').select2('val', '');
779
+ $('.tag-toggle.tag_normal').show();
780
+ tag_populate.text('slug');
781
+ tag_populate_eg.text('e.g. toronto, canada etc...');
782
+ }
783
  }
784
 
785
  // IN
786
+ var tag = $('.tags #tag-select').val();
787
+ if (tag !== '' && tag !== undefined && tag !== null) {
788
+ output += ' tag="' + tag + '"';
789
+ }
790
+
791
+ // AND
792
+ var tag__and = $('.tags #tag--and-select').val();
793
+ if (tag__and !== '' && tag__and !== undefined && tag__and !== null) {
794
+ output += ' tag__and="' + tag__and + '"';
795
+ }
796
+
797
+ // NOT_IN
798
+ var tag_not_in = $('.tags #tag-exclude-select').val();
799
+ if (tag_not_in !== '' && tag_not_in !== undefined && tag_not_in !== null) output += ' tag__not_in="' + tag_not_in + '"';
800
+
801
+ // ---------------------------
802
+ // - Taxonomy Query
803
+ // ---------------------------
804
+
805
+ var tax1 = $.trim($('select#taxonomy-select').val()),
806
+ tax_operator1 = $.trim($('#tax-operator-select input[name=tax-operator]:checked').val()),
807
+ tax2 = $.trim($('select#taxonomy-select2').val()),
808
+ tax_operator2 = $.trim($('#tax-operator-select2 input[name=tax-operator2]:checked').val()),
809
+ tax3 = $.trim($('select#taxonomy-select3').val()),
810
+ tax_operator3 = $.trim($('#tax-operator-select3 input[name=tax-operator3]:checked').val()),
811
+ tax_relation = $.trim($('#tax-query-relation select[name=tax-relation]').val());
812
+
813
+ var parent1 = $('select#taxonomy-select').parent('.taxonomy'),
814
+ parent2 = $('select#taxonomy-select2').parent('.taxonomy'),
815
+ parent3 = $('select#taxonomy-select3').parent('.taxonomy');
816
+
817
+ var has_tax1 = false,
818
+ taxonomy1_terms = '';
819
+ if (tax1 !== '' && tax1 !== undefined) {
820
+ has_tax1 = true;
821
+ if ($('select#taxonomy-select').hasClass('changed')) {
822
+ $('select#taxonomy-select').parent();
823
+ $('.taxonomy-extended', parent1).fadeIn(150, 'alm_easeInOutQuad');
824
+ get_tax_terms(tax1, parent1, '1');
825
+ $('select#taxonomy-select').removeClass('changed');
826
+ }
 
 
 
 
827
 
828
  var tax_term_count1 = 0;
829
+ $('#tax-terms-container1 input[type=checkbox]').each(function (e) {
830
+ if ($(this).is(':checked')) {
831
  tax_term_count1++;
832
+ if (tax_term_count1 > 1) {
833
  taxonomy1_terms += ', ' + $(this).data('type');
834
+ } else {
835
+ if ($('#tax-terms-container1 input').hasClass('changed')) taxonomy1_terms += $(this).data('type');
 
836
  }
837
  }
838
  });
839
+ } else {
840
+ $('.taxonomy-extended', parent1).fadeOut(150, 'alm_easeInOutQuad');
841
+ }
 
 
842
 
843
  var has_tax2 = false,
844
+ taxonomy2_terms = '';
845
+ if (tax2 !== '' && tax2 !== undefined) {
846
+ has_tax2 = true;
847
+ if ($('select#taxonomy-select2').hasClass('changed')) {
848
+ $('select#taxonomy-select2').parent();
849
+ $('.taxonomy-extended', parent2).fadeIn(200, 'alm_easeInOutQuad');
850
+ get_tax_terms(tax2, parent2, '2');
851
+ $('select#taxonomy-select2').removeClass('changed');
852
+ }
 
853
 
854
  var tax_term_count2 = 0;
855
+ $('#tax-terms-container2 input[type=checkbox]').each(function (e) {
856
+ if ($(this).is(':checked')) {
857
  tax_term_count2++;
858
+ if (tax_term_count2 > 1) {
859
  taxonomy2_terms += ', ' + $(this).data('type');
860
+ } else {
861
+ if ($('#tax-terms-container2 input').hasClass('changed')) taxonomy2_terms += $(this).data('type');
 
862
  }
863
  }
864
  });
865
+ } else {
866
+ $('.taxonomy-extended', parent2).fadeOut(150, 'alm_easeInOutQuad');
867
+ }
 
 
 
 
 
 
868
 
869
+ var has_tax3,
870
+ taxonomy3_terms = '';
871
+ if (tax3 !== '' && tax3 !== undefined) {
872
+ has_tax3 = true;
873
+ if ($('select#taxonomy-select3').hasClass('changed')) {
874
+ $('select#taxonomy-select3').parent();
875
+ $('.taxonomy-extended', parent3).fadeIn(200, 'alm_easeInOutQuad');
876
+ get_tax_terms(tax3, parent3, '3');
877
+ $('select#taxonomy-select3').removeClass('changed');
878
+ }
879
 
880
  var tax_term_count3 = 0;
881
+ $('#tax-terms-container3 input[type=checkbox]').each(function (e) {
882
+ if ($(this).is(':checked')) {
883
  tax_term_count3++;
884
+ if (tax_term_count3 > 1) {
885
  taxonomy3_terms += ', ' + $(this).data('type');
886
+ } else {
887
+ if ($('#tax-terms-container3 input').hasClass('changed')) taxonomy3_terms += $(this).data('type');
 
888
  }
889
  }
890
  });
891
+ } else {
892
+ $('.taxonomy-extended', parent3).fadeOut(150, 'alm_easeInOutQuad');
893
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
894
 
895
+ if (has_tax1 && !has_tax2 && !has_tax3) {
896
+ output += ' taxonomy="' + tax1 + '"';
897
+ output += ' taxonomy_terms="' + taxonomy1_terms + '"';
898
+ output += ' taxonomy_operator="' + tax_operator1 + '"';
899
+ }
900
+ if (has_tax1 && has_tax2 && !has_tax3) {
901
+ output += ' taxonomy="' + tax1 + ':' + tax2 + '"';
902
+ output += ' taxonomy_terms="' + taxonomy1_terms + ':' + taxonomy2_terms + '"';
903
+ output += ' taxonomy_operator="' + tax_operator1 + ':' + tax_operator2 + '"';
904
+ if (tax_relation !== 'AND') output += ' taxonomy_relation="' + tax_relation + '"';
905
+ }
906
+ if (has_tax1 && has_tax2 && has_tax3) {
907
+ output += ' taxonomy="' + tax1 + ':' + tax2 + ':' + tax3 + '"';
908
+ output += ' taxonomy_terms="' + taxonomy1_terms + ':' + taxonomy2_terms + ':' + taxonomy3_terms + '"';
909
+ output += ' taxonomy_operator="' + tax_operator1 + ':' + tax_operator2 + ':' + tax_operator3 + '"';
910
+ if (tax_relation !== 'AND') output += ' taxonomy_relation="' + tax_relation;
911
+ }
912
 
913
+ // ---------------------------
914
+ // - Date
915
+ // ---------------------------
916
+ var currentTime = new Date(),
917
+ currentYear = currentTime.getFullYear();
918
+
919
+ var dateY = $('.date input#input-year').val(); // Year
920
+ if (dateY !== '' && dateY !== undefined && dateY <= currentYear) output += ' year="' + dateY + '"';
921
+
922
+ var dateM = $('.date input#input-month').val(); // Month
923
+ if (dateM !== '' && dateM !== undefined && dateM < 13) output += ' month="' + dateM + '"';
924
+
925
+ var dateD = $('.date input#input-day').val(); // Day
926
+ if (dateD !== '' && dateD !== undefined && dateD < 32) output += ' day="' + dateD + '"';
927
+
928
+ // ---------------------------
929
+ // - Custom Fields Meta Query
930
+ // ---------------------------
931
+ var meta_key = $.trim($('.meta-query-wrap').eq(0).find('input.meta-key').val()),
932
+ meta_value = $.trim($('.meta-query-wrap').eq(0).find('input.meta-value').val()),
933
+ meta_compare = $('.meta-query-wrap').eq(0).find('select.meta-compare').val(),
934
+ meta_type = $('.meta-query-wrap').eq(0).find('select.meta-type').val(),
935
+ meta_relation = $('select.meta-relation').val(),
936
+ meta_query_length = $('.meta-query-wrap').length;
937
+
938
+ // Set meta_compare default value
939
+ if (meta_compare === '' || meta_compare == undefined) meta_compare = '=';
940
+
941
+ // Set meta_type default value
942
+ if (meta_type === '' || meta_type == undefined) meta_type = 'CHAR';
943
+
944
+ // Single Meta_Query()
945
+ if (meta_query_length === 1) {
946
+ if (meta_key !== '' && meta_key !== undefined) {
947
+ output += ' meta_key="' + meta_key + '"';
948
+ output += ' meta_value="' + meta_value + '"';
949
+
950
+ if (meta_compare !== '=') {
951
+ output += ' meta_compare="' + meta_compare + '"';
952
+ }
953
 
954
+ if (meta_type !== 'CHAR') {
955
+ output += ' meta_type="' + meta_type + '"';
956
+ }
957
+ }
958
+ }
959
+ // Multiple Meta_Query()
960
+ if (meta_query_length > 1) {
961
+ meta_key = '';
962
+ meta_value = '';
963
+ meta_compare = '';
964
+ meta_type = '';
965
+ $('.meta-query-wrap').each(function (e) {
966
+ var el = $(this),
967
+ mk = $.trim(el.find('input.meta-key').val()),
968
+ mv = $.trim(el.find('input.meta-value').val()),
969
+ mc = $.trim(el.find('select.meta-compare').val()),
970
+ mt = $.trim(el.find('select.meta-type').val());
971
+
972
+ if (e === 0) {
973
+ // first on first only
974
+ meta_key += mk;
975
+ meta_value += mv;
976
+ meta_compare += mc;
977
+ meta_type += mt;
978
+ } else {
979
+ if (mk.length > 0 && mv.length > 0) {
980
+ meta_key += ':' + mk;
981
+ meta_value += ':' + mv;
982
+ meta_compare += ':' + mc;
983
+ meta_type += ':' + mt;
984
+ }
985
+ }
986
+ });
987
+ output += ' meta_key="' + meta_key + '"';
988
+ output += ' meta_value="' + meta_value + '"';
989
+ output += ' meta_compare="' + meta_compare + '"';
990
+ output += ' meta_type="' + meta_type + '"';
991
+
992
+ var isRelation = $('#meta-query-relation').css('display');
993
+ if (meta_relation !== '' && meta_relation !== undefined && isRelation === 'block') {
994
+ output += ' meta_relation="' + meta_relation + '"';
995
+ }
996
+ } else {
997
+ $('#meta-query-relation').fadeOut(150);
998
+ }
999
 
1000
+ // ---------------------------
1001
+ // - Authors
1002
+ // ---------------------------
1003
 
1004
+ var author = $('.authors #author-select').val();
1005
+ if (author !== '' && author !== undefined && author !== null) output += ' author="' + author + '"';
 
1006
 
1007
+ // ---------------------------
1008
+ // - Posts
1009
+ // ---------------------------
 
1010
 
1011
+ var post__in = $('input#post__in').val();
1012
+ post__in = $.trim(post__in);
1013
+ if (post__in !== '') output += ' post__in="' + post__in + '"';
1014
 
1015
+ // ---------------------------
1016
+ // - Exclude posts
1017
+ // ---------------------------
1018
 
1019
+ var exclude = $('input#exclude-posts').val();
1020
+ exclude = $.trim(exclude);
1021
+ if (exclude !== '') {
1022
+ //Remove trailing comma, if present
1023
+ if (exclude.charAt(exclude.length - 1) == ',') {
1024
+ exclude = exclude.slice(0, -1);
1025
+ }
1026
+ output += ' post__not_in="' + exclude + '"';
1027
+ }
1028
 
1029
+ // ---------------------------
1030
+ // - Search
1031
+ // ---------------------------
1032
+
1033
+ var search = $('.search-term input').val();
1034
+ search = $.trim(search);
1035
+ if (search !== '') output += ' search="' + search + '"';
1036
+
1037
+ // ---------------------------
1038
+ // - Ordering
1039
+ // ---------------------------
1040
+ var order = $('select#post-order').val(),
1041
+ orderby = $('select#post-orderby').val();
1042
+ if (order !== 'DESC') output += ' order="' + order + '"';
1043
+ if (orderby !== 'date') output += ' orderby="' + orderby + '"';
1044
+
1045
+ // ---------------------------
1046
+ // - Post Status
1047
+ // ---------------------------
1048
+ var post_status = $('select#post-status').val();
1049
+ if (post_status !== 'publish') output += ' post_status="' + post_status + '"';
1050
+
1051
+ // ---------------------------
1052
+ // - Post Offset
1053
+ // ---------------------------
1054
+
1055
+ var offset = $('.offset input').val();
1056
+ if (offset > 0) output += ' offset="' + offset + '"';
1057
+
1058
+ // ---------------------------
1059
+ // - Custom Arguments
1060
+ // ---------------------------
1061
+
1062
+ var custom_args = $('.custom-arguments input').val();
1063
+ custom_args = $.trim(custom_args);
1064
+ if (custom_args !== '') output += ' custom_args="' + custom_args + '"';
1065
+
1066
+ // ---------------------------
1067
+ // - Pause
1068
+ // ---------------------------
1069
+
1070
+ var pause_load = $('.pause_load input[name=pause]:checked').val();
1071
+ if (pause_load === 't') {
1072
+ output += ' pause="true"';
1073
+ }
1074
 
1075
+ // ---------------------------
1076
+ // - Destroy After
1077
+ // ---------------------------
 
 
 
1078
 
1079
+ var destroy_after = $('.alm-destroy-after input[name=destroy-after]').val();
1080
+ if (destroy_after !== '' && destroy_after !== undefined && destroy_after !== '0') output += ' destroy_after="' + destroy_after + '"';
1081
 
1082
+ // ---------------------------
1083
+ // - Images loaded
1084
+ // ---------------------------
1085
+
1086
+ var images_loaded = $('.alm-images-loaded input[name=images_loaded]:checked').val();
1087
+ if (images_loaded === 't') output += ' images_loaded="true"';
1088
+
1089
+ // ---------------------------
1090
+ // - Placeholder
1091
+ // ---------------------------
1092
+
1093
+ var placeholder = $('.alm-placeholder-wrap input[name=has_placeholder]:checked').val();
1094
+ var placeholder_target = $('.alm-placeholder-wrap .alm-placeholder-target');
1095
+ var placeholder_url = $('.alm-placeholder-wrap #placeholder');
1096
+ var placeholder_img = $('.alm-placeholder-wrap #placeholder-img');
1097
+ if (placeholder === 't') {
1098
+ placeholder_target.slideDown(250, 'alm_easeInOutQuad');
1099
+
1100
+ // Set preview image
1101
+ if (placeholder_url.val() === '' || placeholder_url.val() === placeholder_url.data('empty')) {
1102
+ output += ' placeholder="true"';
1103
+ placeholder_img.attr('src', placeholder_url.data('empty'));
1104
+ } else {
1105
+ output += ' placeholder="' + placeholder_url.val() + '"';
1106
+ placeholder_img.attr('src', placeholder_url.val());
1107
+ }
1108
+ } else {
1109
+ placeholder_target.slideUp(250, 'alm_easeInOutQuad');
1110
+ }
1111
+
1112
+ // ---------------------------
1113
+ // - Scrolling
1114
+ // ---------------------------
1115
+
1116
+ var scroll_load = $('.scroll_load input[name=scroll]:checked').val();
1117
+ if (scroll_load === 'f') {
1118
+ $('.scrolling-options').slideUp(250, 'alm_easeInOutQuad');
1119
+ if ($('.scroll_load input').hasClass('changed')) {
1120
+ output += ' scroll="false"';
1121
+ }
1122
+ } else {
1123
+ $('.scrolling-options').slideDown(250, 'alm_easeInOutQuad');
1124
+
1125
+ var scroll_distance = $('.scroll_distance input').val();
1126
+ var scroll_distance_toggle_btns = $('.scroll_distance .builder-option-toggle--buttons');
1127
+ var scroll_distance_px = $('button.pixels', scroll_distance_toggle_btns);
1128
+ var scroll_distance_perc = $('button.perc', scroll_distance_toggle_btns);
1129
+ var scroll_distance_type = '';
1130
+
1131
+ if (scroll_distance !== '100' || scroll_distance_perc.hasClass('active')) {
1132
+ if (scroll_distance_perc.hasClass('active')) {
1133
+ scroll_distance_type = '%';
1134
+ }
1135
+ output += ' scroll_distance="' + $('.scroll_distance input').val() + scroll_distance_type + '"';
1136
+ }
1137
+
1138
+ var max_pages = $('.max_pages input').val();
1139
+ if (max_pages != 0) {
1140
+ output += ' max_pages="' + $('.max_pages input').val() + '"';
1141
+ }
1142
+
1143
+ var pause_override = $('.pause_override input[name=pause_override]:checked').val();
1144
+ if (pause_override === 't' && pause_load === 't') {
1145
+ output += ' pause_override="true"';
1146
+ }
1147
+ }
1148
+
1149
+ // ---------------------------
1150
+ // - Scroll Container
1151
+ // ---------------------------
1152
+
1153
+ var scroll_container_option = $('.scroll_container_section input[name=scroll_container_toggle]:checked').val();
1154
+ if (scroll_container_option === 't') {
1155
+ var scroll_container = $('.scroll_container input').val();
1156
+ var scroll_direction = $('.scroll_direction input[name=scroll_direction]:checked').val();
1157
+
1158
+ $('.scroll-container-options').slideDown(250, 'alm_easeInOutQuad');
1159
+ if (scroll_container !== '') {
1160
+ output += ' scroll_container="' + $('.scroll_container input').val() + '"';
1161
+
1162
+ // if (scroll_direction !== 'vertical') {
1163
+ // output += ' scroll_direction="' + scroll_direction + '"';
1164
+ // }
1165
+ }
1166
+ } else {
1167
+ $('.scroll-container-options').slideUp(250, 'alm_easeInOutQuad');
1168
+ }
1169
+
1170
+ // ---------------------------
1171
+ // - transition
1172
+ // ---------------------------
1173
+
1174
+ var transition = $('.transition select[name=transition]').val();
1175
+ if (transition !== 'fade') output += ' transition="' + transition + '"';
1176
+
1177
+ if (transition === 'masonry') {
1178
+ $('.masonry-options').slideDown(250, 'alm_easeInOutQuad');
1179
+ $('.masonry-options-hide').slideUp(250, 'alm_easeInOutQuad');
1180
  var masonry_selector = $('.transition input#masonry-item').val();
1181
  var masonry_columnwidth = $('.transition input#masonry-columnwidth').val();
1182
  var masonry_animation = $('input[name=masonry-animation]:checked').val();
1183
  var masonry_horizontalorder = $('input[name=masonry-horizontalorder]:checked').val();
1184
+ if (masonry_selector !== '') {
1185
+ output += ' masonry_selector="' + masonry_selector + '"';
1186
+ }
1187
+ if (masonry_columnwidth !== '') {
1188
+ output += ' masonry_columnwidth="' + masonry_columnwidth + '"';
1189
+ }
1190
+ if (masonry_animation !== '' && masonry_animation !== 'default') {
1191
+ output += ' masonry_animation="' + masonry_animation + '"';
1192
+ }
1193
+ if (masonry_horizontalorder !== 't') {
1194
+ output += ' masonry_horizontalorder="false"';
1195
+ }
1196
+ } else {
1197
+ $('.masonry-options').slideUp(250, 'alm_easeInOutQuad');
1198
+ $('.masonry-options-hide').slideDown(250, 'alm_easeInOutQuad');
 
 
1199
 
1200
  // Hide transition_container if masonry is selected
1201
+ var transition_container = $('.transition input[name=remove_container]:checked').val();
1202
+ var transition_container_classes = $('.transition input#transition-container-classes').val();
1203
+ if (transition_container === 'f' && seo !== 'true' && previous !== 'true') {
1204
+ output += ' transition_container="false"';
1205
+ $('.transition-container-classes-wrap').slideUp(250, 'alm_easeInOutQuad');
1206
+ } else {
1207
+ $('.transition-container-classes-wrap').slideDown(250, 'alm_easeInOutQuad');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1208
  }
 
 
 
 
 
 
 
 
1209
 
1210
+ // Hide transition_container_classes if Previous Post or Next Page is true.
1211
+ if (transition_container_classes !== '' && transition_container !== 'f' && previous !== 'true' && nextpage !== 'true') {
1212
+ output += ' transition_container_classes="' + transition_container_classes + '"';
1213
+ }
1214
+ }
1215
 
1216
+ // ---------------------------
1217
+ // - Progress Bar
1218
+ // ---------------------------
1219
+
1220
+ var progress_bar = $('.alm-progress-bar input[name=progress_bar]:checked').val();
1221
+ if (progress_bar === 't') {
1222
+ var progress_bar_color = $('.alm-progress-bar input[name=progress_bar_color]').val();
1223
+ $('.progress-bar-options').slideDown(250, 'alm_easeInOutQuad');
1224
+ output += ' progress_bar="true"';
1225
+ $('.alm-progress-bar .progress_bar_color_indicator').removeAttr('style');
1226
+ if (progress_bar_color) {
1227
+ if (progress_bar_color.length === 6) {
1228
+ $('.alm-progress-bar .progress_bar_color_indicator').css('background-color', '#' + progress_bar_color);
1229
+ }
1230
+ output += ' progress_bar_color="' + progress_bar_color + '"';
1231
+ }
1232
+ } else {
1233
+ $('.progress-bar-options').slideUp(250, 'alm_easeInOutQuad');
1234
+ }
1235
 
1236
+ // ---------------------------
1237
+ // - Button Label
1238
+ // ---------------------------
1239
 
1240
+ var button_label = $('.btn-label input#button-label').val().trim(),
1241
+ button_loading_label = $('.btn-label input#button-loading-label').val().trim(),
1242
+ button_done_label = $('.btn-label input#button-done-label').val().trim();
1243
 
1244
+ if (button_label !== '' && button_label !== 'Older Posts') {
1245
+ output += ' button_label="' + button_label + '"';
1246
+ }
1247
+ // Loading Label
1248
+ if (button_loading_label !== '') {
1249
+ output += ' button_loading_label="' + button_loading_label + '"';
1250
+ }
1251
+ // Done Label
1252
+ if (button_done_label !== '') {
1253
+ output += ' button_done_label="' + button_done_label + '"';
1254
+ }
1255
 
1256
+ // ---------------------------
1257
+ // - Nested Instances
1258
+ // ---------------------------
1259
 
1260
+ var nested = $('.alm-instance-options input[name=nested]:checked').val();
1261
+ if (nested === 't') {
1262
+ output += ' nested="true"';
1263
+ }
1264
 
1265
+ // ---------------------------
1266
+ // - Integrations
1267
+ // ---------------------------
 
 
1268
 
1269
+ var archive = $('.alm-archive input[name=archive]:checked').val();
1270
+ if (archive === 't') {
1271
+ output += ' archive="true"';
1272
+ }
1273
 
1274
+ var woocommerce = $('.alm-woocommerce input[name=woocommerce]:checked').val();
1275
+ if (woocommerce === 't') {
1276
+ output += ' woocommerce="true"';
1277
+ }
1278
 
1279
+ // ---------------------------
1280
+ // - No Results Text
1281
+ // ---------------------------
1282
 
1283
+ var no_results = $('.alm-instance-options textarea#no_results_text').val();
1284
+ if (no_results !== '') {
1285
+ no_results = no_results.replace(/"/g, "'");
1286
 
1287
+ output += ' no_results_text="' + no_results + '"';
1288
+ }
1289
 
1290
+ output += ']'; //Close shortcode
1291
+ output_div.text(output);
 
 
 
1292
 
1293
+ if (output != '[ajax_load_more]') $('.reset-shortcode-builder').show();
1294
+ else $('.reset-shortcode-builder').hide();
1295
+ };
1296
 
1297
+ /*
1298
+ * On change events
1299
+ *
1300
+ * @since 2.0.0
1301
+ */
1302
+
1303
+ //Select 'post' by default
1304
+ $('.post_types input[type=checkbox]#chk-post').prop('checked', true).addClass('changed');
1305
+ //Select SEO 'false' by default
1306
+ $('.seo input[type=radio]#seo-false').prop('checked', true).addClass('changed');
1307
+
1308
+ $(document).on('change keyup', '.alm_element', function () {
1309
+ var el = $(this);
1310
+ el.addClass('changed');
1311
+
1312
+ // WooCommerce
1313
+ if (el.attr('name') === 'woocommerce') {
1314
+ var postTypeCheckboxes = $('ul.alm-post-type-list input[type=checkbox]');
1315
+ // Check 'product'
1316
+ $('ul.alm-post-type-list input[type=checkbox]#chk-product').prop('checked', true).addClass('changed');
1317
+
1318
+ if (postTypeCheckboxes) {
1319
+ postTypeCheckboxes.each(function (index, item) {
1320
+ if (item.dataset.type !== 'product') {
1321
+ item.checked = false;
1322
+ }
1323
+ });
1324
+ }
1325
 
1326
+ $('.alm-archive input#archive_f').prop('checked', true);
1327
+ }
1328
 
1329
+ // Archives
1330
+ if (el.attr('name') === 'archive') {
1331
+ $('.alm-woocommerce input#woocommerce_f').prop('checked', true);
1332
+ }
 
1333
 
1334
+ // Reset Repeater Templates
1335
+ if (el.attr('name') === 'repeater-select') {
1336
+ $('.select-theme-repeater select[name=theme-repeater-select]').select2('val', '');
1337
+ }
1338
+ if (el.attr('name') === 'theme-repeater-select') {
1339
+ if (
1340
+ $('.select-theme-repeater select[name=theme-repeater-select]').val() !== 'null' &&
1341
+ $('.select-theme-repeater select[name=theme-repeater-select]').val() !== ''
1342
+ ) {
1343
+ $('.repeater select[name=repeater-select]').select2('val', 'default');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1344
  }
1345
  }
1346
+
1347
  // Comments
1348
+ if (el.attr('id') === 'comments_template') {
1349
  $('#comments_callback').val('');
1350
  }
1351
 
1352
+ // If post type is not selected, select 'post'.
1353
+ if (!$('ul.alm-post-type-list input[type=checkbox]:checked').length > 0) {
1354
+ $('ul.alm-post-type-list input[type=checkbox]#chk-post').prop('checked', true);
1355
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1356
 
1357
+ // If Tax Term Operator is not selected, select 'IN'.
1358
+ if (!$('#tax-operator-select input[type=radio]:checked').length > 0) {
1359
+ $('#tax-operator-select input[type=radio]#tax-in-radio').prop('checked', true);
1360
+ }
1361
 
1362
+ _alm.buildShortcode();
1363
+ });
1364
 
1365
+ $('input.numbers-only').keydown(function (e) {
1366
+ if (
1367
+ $.inArray(e.keyCode, [188, 46, 8, 9, 27, 13, 110, 190]) !== -1 ||
1368
+ // Allow: Ctrl+A
1369
+ (e.keyCode == 65 && e.ctrlKey === true) ||
1370
+ // Allow: home, end, left, right, down, up
1371
+ (e.keyCode >= 35 && e.keyCode <= 40)
1372
+ ) {
1373
+ // let it happen, don't do anything
1374
+ return;
1375
+ }
1376
+ // Ensure that it is a number and stop the keypress
1377
+ if ((e.shiftKey || e.keyCode < 48 || e.keyCode > 57) && (e.keyCode < 96 || e.keyCode > 105)) {
1378
+ if (e.keyCode !== 188) {
1379
+ // If keycode is not a comma
1380
+ e.preventDefault();
1381
+ }
1382
+ }
1383
+ });
1384
 
1385
+ /*
1386
+ * Jump to section, Table of contents [Repeater Templates, Shortcode Builder]
1387
+ *
1388
+ * @since 2.0.0
1389
+ * Updated v2.13.0
1390
+ */
1391
 
1392
  var jumpMenuOptions = '';
1393
+ function almBuildJumpMenu(type) {
1394
+ if (type === 'repeaters') {
1395
+ $('.row').each(function () {
1396
+ if (!$(this).hasClass('no-brd')) {
1397
+ // Special case for back 2 top on shortcode builder landing
1398
+ var id = $(this).attr('id'),
1399
+ title = $(this).find('h3.heading').text();
1400
+ jumpMenuOptions += '<option value="' + id + '">' + title + '</option>';
1401
+ }
1402
+ });
1403
+ }
1404
+
1405
+ if (type === 'shortcode') {
1406
+ $('.shortcode-parameter-wrap').each(function () {
1407
+ var el = $(this),
1408
+ opttitle = el.find('h2').text();
1409
+ jumpMenuOptions += '<optgroup label="' + opttitle + '">';
1410
+ $('.row', el).each(function () {
1411
+ if (!$(this).hasClass('no-brd')) {
1412
+ // Special case for back 2 top on shortcode builder landing
1413
+ var id = $(this).attr('id'),
1414
+ title = $(this).find('h3.heading').text();
1415
+ jumpMenuOptions += '<option value="' + id + '">' + title + '</option>';
1416
+ }
1417
+ });
1418
+ jumpMenuOptions += '</optgroup>';
1419
+ });
1420
+ }
1421
  }
1422
+ if ($('.shortcode-builder .shortcode-parameter-wrap').length) {
1423
+ almBuildJumpMenu('shortcode'); // shortcode builder
1424
  }
1425
+ if ($('#alm-repeaters .repeaters').length) {
1426
+ if ($('#unlmited-container').length) {
1427
+ $('#unlmited-container .row').each(function () {
1428
+ var el = $(this),
1429
+ id = el.find('.wrap').data('name');
1430
+ el.attr('id', 'alm_' + id);
1431
+ });
1432
+ }
1433
+ almBuildJumpMenu('repeaters'); // repeater templates
1434
  }
1435
 
 
 
 
1436
  /* Jump Menu */
1437
 
1438
  $('select.jump-menu').append(jumpMenuOptions);
1439
+ $('select.jump-menu').change(function () {
1440
  var pos = $(this).val();
1441
+ if (pos !== 'null') {
1442
+ $('html,body').animate(
1443
+ {
1444
+ scrollTop: $('#' + pos).offset().top - ($('.intro').height() - 20),
1445
+ },
1446
+ 200,
1447
+ 'alm_easeInOutQuad'
1448
+ );
1449
  }
1450
+ });
 
1451
 
1452
  /* Table of Contents */
1453
 
1454
+ if ($('.table-of-contents').hasClass('repeaters-toc')) {
1455
+ $('.table-of-contents .toc').append('<option value="#">-- ' + alm_admin_localize.jump_to_template + ' --</option>');
1456
  } else {
1457
+ $('.table-of-contents .toc').append('<option value="#">-- ' + alm_admin_localize.jump_to_option + ' --</option>');
1458
  }
1459
 
1460
  $('.table-of-contents .toc').append(jumpMenuOptions).select2();
1461
 
1462
+ $('.table-of-contents .toc').change(function () {
1463
+ var pos = $(this).val();
1464
+ if (pos !== 'null' && pos !== '#') {
1465
+ $('html,body').animate(
1466
+ {
1467
+ scrollTop: $('#' + pos).offset().top - 46,
1468
+ },
1469
+ 500,
1470
+ 'alm_easeInOutQuad'
1471
+ );
1472
  }
1473
+ });
 
 
1474
 
1475
+ /*
1476
+ * get_tax_terms
1477
+ * Get taxonomy terms via ajax
1478
+ *
1479
+ * @since 2.1.0
1480
+ */
1481
+ function get_tax_terms(tax, parent, index) {
1482
+ var placement = $('.tax-terms-container', parent);
1483
+ placement.html("<p class='loading'>Fetching Terms...</p>");
1484
 
1485
  $.ajax({
1486
  type: 'GET',
1491
  index: index,
1492
  nonce: alm_admin_localize.alm_admin_nonce,
1493
  },
1494
+ dataType: 'html',
1495
+ success: function (data) {
1496
  placement.html(data);
1497
  },
1498
+ error: function (xhr, status, error) {
1499
  responseText.html('<p>Error - Something went wrong and the terms could not be retrieved.');
1500
+ },
1501
  });
1502
  }
1503
 
 
 
1504
  /*
1505
+ * _alm.alm_easeInOutQuad
1506
+ * Ajax Load More easing
1507
+ *
1508
+ * @since 2.0.0
1509
+ */
1510
 
1511
  $.easing.alm_easeInOutQuad = function (x, t, b, c, d) {
1512
+ if ((t /= d / 2) < 1) return (c / 2) * t * t + b;
1513
+ return (-c / 2) * (--t * (t - 2) - 1) + b;
1514
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1515
 
1516
+ /*
1517
+ * _alm.SelectText
1518
+ * Click to select text
1519
+ *
1520
+ * @since 2.0.0
1521
+ */
1522
+
1523
+ _alm.SelectText = function (element) {
1524
+ var doc = document,
1525
+ text = doc.getElementById(element),
1526
+ range,
1527
+ selection;
1528
+ if (doc.body.createTextRange) {
1529
+ range = document.body.createTextRange();
1530
+ range.moveToElementText(text);
1531
+ range.select();
1532
+ } else if (window.getSelection) {
1533
+ selection = window.getSelection();
1534
+ range = document.createRange();
1535
+ range.selectNodeContents(text);
1536
+ selection.removeAllRanges();
1537
+ selection.addRange(range);
1538
+ }
1539
+ };
1540
+ $('#shortcode_output').click(function () {
1541
+ _alm.SelectText('shortcode_output');
1542
+ });
1543
 
1544
+ /*
1545
+ * Reset shortcode builder
1546
+ *
1547
+ * @since 2.5.0
1548
+ */
1549
+
1550
+ $(document).on('click', '.reset-shortcode-builder a', function () {
1551
+ $('#alm-shortcode-builder-form').trigger('reset');
1552
+ _alm.reset_select2();
1553
+ //total_tax_query = 0;
1554
+ //$('.ajax-load-more .taxonomy-wrap').hide();
1555
+ _alm.buildShortcode();
1556
+ });
1557
 
1558
+ /*
1559
+ * _alm.generateUniqueID
1560
+ * Generate Unique Cache ID
1561
+ *
1562
+ * @since 2.6.0
1563
+ */
1564
+
1565
+ _alm.generateUniqueID = function (length, el) {
1566
+ var id = Math.floor(Math.pow(10, length - 1) + Math.random() * 9 * Math.pow(10, length - 1));
1567
+ $(el).val(id);
1568
+ //_alm.buildShortcode();
1569
+ };
1570
 
1571
+ /*
 
 
 
 
 
 
 
 
1572
  * Option toggle click events
1573
  8
1574
  * @since 5.2.0
1575
  */
1576
+ $('.builder-option-toggle--buttons button').on('click', function () {
1577
  var siblings = $(this).siblings('button').removeClass('active');
1578
  $(this).addClass('active');
1579
  _alm.buildShortcode();
1580
  });
1581
 
1582
+ /*
1583
+ * Generate Unique/Cache ID
1584
+ *
1585
+ * @since 2.6.0
1586
+ */
1587
+
1588
+ $(document).on('click', '.generate-id a', function () {
1589
+ var id = $(this).data('id'),
1590
+ el = $('#' + id);
1591
+ _alm.generateUniqueID(10, el);
1592
+ });
1593
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1594
  // Button loader preview.
1595
+ $('.ajax-load-more-wrap button').on('click', function (e) {
1596
  var button = $(this).get(0);
1597
  var parent = button.parentNode;
1598
+ if (parent.classList.contains('infinite')) {
1599
  $(this).addClass('loading');
1600
  } else {
1601
  $(this).toggleClass('loading');
1602
  }
1603
  });
 
 
1604
  });
admin/shortcode-builder/shortcode-builder.php CHANGED
@@ -47,14 +47,14 @@
47
  <div class="shortcode-parameter-wrap">
48
  <h2 tabindex="0" class="shortcode-title"><i class="fa fa-cog"></i><?php _e('Display Settings', 'ajax-load-more'); ?></h2>
49
  <div class="section-wrap">
50
-
51
  <p class="section-intro"><?php _e('Display Settings allow you create a custom Ajax Load More experience for your visitors.', 'ajax-load-more'); ?></p>
52
-
53
  <!-- Options -->
54
  <div class="row input alm-instance-options" id="alm-instance-options">
55
  <h3 class="heading" tabindex="0"><?php _e('Options', 'ajax-load-more'); ?></h3>
56
  <div class="expand-wrap">
57
-
58
  <!-- ID -->
59
  <section class="first">
60
  <div class="shortcode-builder--label">
@@ -161,13 +161,13 @@
161
  <input class="alm_element" name="container-classes" type="text" id="container-classes" placeholder="listing large-12 columns">
162
  </div>
163
  </div>
164
- </section>
165
-
166
  <!-- Pause -->
167
  <section class="pause_load" id="alm-pause">
168
  <div class="shortcode-builder--label">
169
  <h4><?php _e('Pause', 'ajax-load-more'); ?></h4>
170
- <p><?php _e('Don\'t load any Ajax content until the user clicks or interacts with the <em>Load More</em> button.', 'ajax-load-more'); ?></p>
171
  </div>
172
  <div class="shortcode-builder--fields">
173
  <div class="inner">
@@ -189,7 +189,7 @@
189
  <section>
190
  <div class="shortcode-builder--label">
191
  <h4><?php _e('Destroy After', 'ajax-load-more'); ?></h4>
192
- <p><?php _e('Remove Ajax Load More functionality after {<em>n</em>} number of pages have been loaded.', 'ajax-load-more'); ?></p>
193
  <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/examples/destroy-after/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
194
  </div>
195
  <div class="shortcode-builder--fields alm-destroy-after">
@@ -197,13 +197,13 @@
197
  <input type="number" class="alm_element numbers-only" placeholder="0" name="destroy-after" id="disable-after" step="1" min="0" value="">
198
  </div>
199
  </div>
200
- </section>
201
 
202
  <!-- Images Loaded -->
203
  <section>
204
  <div class="shortcode-builder--label">
205
  <h4><?php _e('Images Loaded', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Background images are not supported.','ajax-load-more'); ?>"></a></h4>
206
- <p><?php _e('Wait for all images to load before displaying ajax loaded content.', 'ajax-load-more'); ?></p>
207
  <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/examples/images-loaded/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
208
  </div>
209
  <div class="shortcode-builder--fields alm-images-loaded">
@@ -314,21 +314,21 @@
314
  if (has_action('alm_get_unlimited_repeaters')) {
315
  do_action('alm_get_unlimited_repeaters');
316
  }
317
- echo '</select>';
318
  echo '</div>';
319
  echo '</section>';
320
-
321
  // Get Theme Repeaters
322
  if (has_action('alm_theme_repeaters_selection')){
323
  do_action('alm_theme_repeaters_selection');
324
  }
325
  ?>
326
-
327
  <?php // Custom Repeaters v2 - /cta/extend.php
328
  if (!has_action('alm_get_unlimited_repeaters') && !has_action('alm_get_custom_repeaters') && !has_action('alm_theme_repeaters_installed')) {
329
  include( ALM_PATH . 'admin/includes/cta/extend.php');
330
  }
331
-
332
  echo '</div>';
333
  echo '</div>';
334
  ?>
@@ -354,7 +354,7 @@
354
 
355
  <section>
356
  <div class="shortcode-builder--label">
357
- <h4><?php _e('Loading Label', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Leave field empty to not update text while loading content','ajax-load-more'); ?>."></a></h4>
358
  <p><?php _e('Update the text of the <em>Load More</em> button while content is loading.', 'ajax-load-more'); ?></p>
359
  </div>
360
  <div class="shortcode-builder--fields">
@@ -364,6 +364,18 @@
364
  </div>
365
  </section>
366
 
 
 
 
 
 
 
 
 
 
 
 
 
367
  </div>
368
  </div>
369
  <!-- Button Labels -->
@@ -397,7 +409,7 @@
397
 
398
  <div class="scrolling-options nested-component">
399
  <div class="nested-component--inner">
400
-
401
  <!-- Scroll Distance -->
402
  <section class="border-btm scroll_distance">
403
  <div class="shortcode-builder--label">
@@ -417,19 +429,6 @@
417
  </div>
418
  </div>
419
  </section>
420
-
421
- <!-- Scroll Container -->
422
- <section class="border-btm scroll_container">
423
- <div class="shortcode-builder--label">
424
- <h4><?php _e('Scroll Container', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Confine Ajax Load More scrolling to a parent container.','ajax-load-more'); ?>"></a></h4>
425
- <p><?php _e('Enter the ID or classname of the parent container', 'ajax-load-more'); ?></p>
426
- </div>
427
- <div class="shortcode-builder--fields">
428
- <div class="inner">
429
- <input type="text" class="alm_element" name="scroll-container" id="scroll-container" placeholder="#my-div">
430
- </div>
431
- </div>
432
- </section>
433
 
434
  <!-- Max Pages -->
435
  <section class="border-btm max_pages">
@@ -448,7 +447,7 @@
448
  <section class="border-btm pause_override">
449
  <div class="shortcode-builder--label">
450
  <h4><?php _e('Pause Override', 'ajax-load-more'); ?></h4>
451
- <p><?php _e('Allow scrolling to override the Pause parameter and trigger the loading of posts on scroll.', 'ajax-load-more'); ?></p>
452
  </div>
453
  <div class="shortcode-builder--fields">
454
  <ul>
@@ -463,8 +462,51 @@
463
  </ul>
464
  </div>
465
  </section>
466
- </div>
 
467
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
468
  </div>
469
  </div>
470
  <!-- End Scrolling -->
@@ -472,7 +514,7 @@
472
  <!-- Transition -->
473
  <div class="row input transition" id="alm-transition">
474
  <h3 class="heading" tabindex="0"><?php _e('Transition', 'ajax-load-more'); ?></h3>
475
-
476
  <div class="expand-wrap">
477
  <section class="first">
478
  <div class="shortcode-builder--label">
@@ -494,14 +536,14 @@
494
 
495
  <div class="masonry-options nested-component" style="display: none;">
496
  <div class="nested-component--inner">
497
-
498
  <section>
499
  <div class="shortcode-builder--label full">
500
  <h4><?php _e('Masonry Options', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Ajax Load More does not support all available Masonry options','ajax-load-more'); ?>."></a></h4>
501
  <p><?php _e('The following Masonry <a href="https://masonry.desandro.com/options.html" target="_blank">options</a> are supported by Ajax Load More.', 'ajax-load-more'); ?></p>
502
  </div>
503
  </section>
504
-
505
  <section>
506
  <div class="shortcode-builder--label">
507
  <h4><?php _e('Item Selector', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Item Selector is required for Masonry to target each element loaded with Ajax.','ajax-load-more'); ?>"></a></h4>
@@ -515,8 +557,8 @@
515
  </div>
516
  </div>
517
  </section>
518
-
519
-
520
  <section>
521
  <div class="shortcode-builder--label">
522
  <h4><?php _e('Column Width', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('If columnWidth is not set, Masonry will use the outer width of the first Item Selector.','ajax-load-more'); ?>"></a></h4>
@@ -530,7 +572,7 @@
530
  </div>
531
  </div>
532
  </section>
533
-
534
  <section>
535
  <div class="shortcode-builder--label">
536
  <h4><?php _e('Animation Type', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('All Masonry animations include a fade-in effect as items are loaded.','ajax-load-more'); ?>"></a></h4>
@@ -577,7 +619,7 @@
577
  </div>
578
  </div>
579
  </section>
580
-
581
  <section>
582
  <div class="shortcode-builder--label">
583
  <h4><?php _e('Horizontal Order', 'ajax-load-more'); ?></h4>
@@ -599,7 +641,7 @@
599
  </div>
600
  </div>
601
  </section>
602
-
603
  <p class="warning-callout">
604
  <?php _e('Don\'t see your favorite Masonry option listed? You can always add your own!', 'ajax-load-more'); ?>
605
  <a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/docs/masonry/" target="_blank"><?php _e('View Docs', 'ajax-load-more'); ?></a>
@@ -611,10 +653,10 @@
611
 
612
  <!-- Hide transition_container if Masonry is selected -->
613
  <div class="masonry-options-hide">
614
-
615
  <div class="transition-container-classes-wrap">
616
-
617
- <section>
618
  <div class="shortcode-builder--label">
619
  <h4><?php _e('Transition Container Classes', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('This setting is not available with the Single Post or Next Page add-ons','ajax-load-more'); ?>."></a></h4>
620
  <p><?php _e('Add custom classes to the <span>.alm-reveal</span> loading container', 'ajax-load-more'); ?>.</p>
@@ -626,7 +668,7 @@
626
  </div>
627
  </div>
628
  </section>
629
-
630
  <section>
631
  <div class="shortcode-builder--label">
632
  <h4><?php _e('Transition Container', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Removing the transition container may have undesired results and is not recommended','ajax-load-more'); ?>."></a></h4>
@@ -675,27 +717,28 @@
675
  </div>
676
  </div>
677
  </section>
678
- </div>
679
 
680
- <div class="clear"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
681
 
682
- <div class="progress-bar-options nested-component" style="display: none;">
683
- <div class="nested-component--inner">
684
- <section>
685
- <div class="shortcode-builder--label">
686
- <h4><?php _e('Color', 'ajax-load-more'); ?> </h4>
687
- <p><?php _e('Enter the hex color of the progress bar', 'ajax-load-more'); ?>.<br/>
688
- <?php _e('Default:', 'ajax-load-more'); ?> #<span>ed7070</span>
689
- </p>
690
- </div>
691
- <div class="shortcode-builder--fields">
692
- <div class="inner" style="position: relative;">
693
- <input type="text" class="alm_element" name="progress_bar_color" id="progress_bar_color" placeholder="ed7070" value="ed7070" maxlength="6" style="padding-left: 40px;">
694
- <span class="progress_bar_color_indicator"></span>
695
- </div>
696
- </div>
697
- </section>
698
- </div>
699
  </div>
700
 
701
  </div>
@@ -711,9 +754,9 @@
711
  <div class="shortcode-parameter-wrap">
712
  <h2 tabindex="0" class="shortcode-title"><i class="fa fa-database"></i><?php _e('Query Parameters', 'ajax-load-more'); ?></h2>
713
  <div class="section-wrap">
714
-
715
  <p class="section-intro"><?php _e('Query Parameters allow you build a custom <b>WP_Query</b> based on Ajax Load More shortcode values.', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('When using Ajax Load More add-ons or extensions not all Query Parameters will be available in the query.', 'ajax-load-more'); ?>"></a></p>
716
-
717
  <!-- Posts Per Page -->
718
  <div class="row input posts_per_page" id="alm-post-page">
719
  <h3 class="heading" tabindex="0"><?php _e('Posts Per Page', 'ajax-load-more'); ?></h3>
@@ -1296,11 +1339,11 @@
1296
  <!-- Integrations -->
1297
  <div class="shortcode-parameter-wrap">
1298
  <h2 tabindex="0" class="shortcode-title"><i class="fa fa-handshake-o" aria-hidden="true"></i> <?php _e('Integrations', 'ajax-load-more'); ?></h2>
1299
-
1300
  <div class="section-wrap">
1301
-
1302
  <p class="section-intro"><?php _e('Ajax Load More provides integration solutions for popular plugins and core WP functionality - when selecting an integration, Ajax Load More will automatically set various parameters on the server side to provide the best experience for users based on the selected integration.', 'ajax-load-more'); ?></a></p>
1303
-
1304
  <!-- Archives -->
1305
  <div class="row input alm-archive" id="alm-archive">
1306
  <h3 class="heading" tabindex="0"><?php _e('Archives', 'ajax-load-more'); ?></h3>
@@ -1327,10 +1370,10 @@
1327
  </div>
1328
  </section>
1329
  <p class="warning-callout"><?php _e('<b>Note</b>: Do not select Query Parameters other than <b>Posts Per Page</b> and/or <b>Post Type</b> when using the Archives integration. Ajax Load More will automatically create the perfect shortcode for you based on the current archive page.', 'ajax-load-more'); ?></p>
1330
- </div>
1331
  </div>
1332
-
1333
- <!-- WooCommerce -->
1334
  <!--
1335
  <div class="row input alm-woocommerce" id="alm-woocommerce">
1336
  <h3 class="heading" tabindex="0"><?php _e('WooCommerce', 'ajax-load-more'); ?></h3>
@@ -1343,7 +1386,7 @@
1343
  </div>
1344
  <div class="shortcode-builder--fields">
1345
  <div class="inner">
1346
- <?php if( is_plugin_active('woocommerce/woocommerce.php') ) { ?>
1347
  <ul>
1348
  <li>
1349
  <input class="alm_element" type="radio" name="woocommerce" value="t" id="woocommerce_t">
@@ -1353,7 +1396,7 @@
1353
  <input class="alm_element" type="radio" name="woocommerce" value="f" id="woocommerce_f" checked="checked">
1354
  <label for="woocommerce_f"><?php _e('False', 'ajax-load-more'); ?></label>
1355
  </li>
1356
- </ul>
1357
  <?php } else { ?>
1358
  <p class="highlight" style="font-size: 13px; border-radius: 3px; line-height: 1; padding: 6px;">WooCommerce is not installed.</p>
1359
  <?php }?>
@@ -1363,7 +1406,7 @@
1363
  </div>
1364
  </div>
1365
  -->
1366
-
1367
  </div>
1368
  </div>
1369
 
47
  <div class="shortcode-parameter-wrap">
48
  <h2 tabindex="0" class="shortcode-title"><i class="fa fa-cog"></i><?php _e('Display Settings', 'ajax-load-more'); ?></h2>
49
  <div class="section-wrap">
50
+
51
  <p class="section-intro"><?php _e('Display Settings allow you create a custom Ajax Load More experience for your visitors.', 'ajax-load-more'); ?></p>
52
+
53
  <!-- Options -->
54
  <div class="row input alm-instance-options" id="alm-instance-options">
55
  <h3 class="heading" tabindex="0"><?php _e('Options', 'ajax-load-more'); ?></h3>
56
  <div class="expand-wrap">
57
+
58
  <!-- ID -->
59
  <section class="first">
60
  <div class="shortcode-builder--label">
161
  <input class="alm_element" name="container-classes" type="text" id="container-classes" placeholder="listing large-12 columns">
162
  </div>
163
  </div>
164
+ </section>
165
+
166
  <!-- Pause -->
167
  <section class="pause_load" id="alm-pause">
168
  <div class="shortcode-builder--label">
169
  <h4><?php _e('Pause', 'ajax-load-more'); ?></h4>
170
+ <p><?php _e('Do not load Ajax content until the user clicks or interacts with the <em>Load More</em> button.', 'ajax-load-more'); ?></p>
171
  </div>
172
  <div class="shortcode-builder--fields">
173
  <div class="inner">
189
  <section>
190
  <div class="shortcode-builder--label">
191
  <h4><?php _e('Destroy After', 'ajax-load-more'); ?></h4>
192
+ <p><?php _e('Remove Ajax Load More functionality after {<em>n</em>} number of pages have been loaded.', 'ajax-load-more'); ?></p>
193
  <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/examples/destroy-after/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
194
  </div>
195
  <div class="shortcode-builder--fields alm-destroy-after">
197
  <input type="number" class="alm_element numbers-only" placeholder="0" name="destroy-after" id="disable-after" step="1" min="0" value="">
198
  </div>
199
  </div>
200
+ </section>
201
 
202
  <!-- Images Loaded -->
203
  <section>
204
  <div class="shortcode-builder--label">
205
  <h4><?php _e('Images Loaded', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Background images are not supported.','ajax-load-more'); ?>"></a></h4>
206
+ <p><?php _e('Wait for all images to load before displaying ajax loaded content.', 'ajax-load-more'); ?></p>
207
  <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/examples/images-loaded/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
208
  </div>
209
  <div class="shortcode-builder--fields alm-images-loaded">
314
  if (has_action('alm_get_unlimited_repeaters')) {
315
  do_action('alm_get_unlimited_repeaters');
316
  }
317
+ echo '</select>';
318
  echo '</div>';
319
  echo '</section>';
320
+
321
  // Get Theme Repeaters
322
  if (has_action('alm_theme_repeaters_selection')){
323
  do_action('alm_theme_repeaters_selection');
324
  }
325
  ?>
326
+
327
  <?php // Custom Repeaters v2 - /cta/extend.php
328
  if (!has_action('alm_get_unlimited_repeaters') && !has_action('alm_get_custom_repeaters') && !has_action('alm_theme_repeaters_installed')) {
329
  include( ALM_PATH . 'admin/includes/cta/extend.php');
330
  }
331
+
332
  echo '</div>';
333
  echo '</div>';
334
  ?>
354
 
355
  <section>
356
  <div class="shortcode-builder--label">
357
+ <h4><?php _e('Loading Label', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Leave field empty to not update button text while loading content','ajax-load-more'); ?>."></a></h4>
358
  <p><?php _e('Update the text of the <em>Load More</em> button while content is loading.', 'ajax-load-more'); ?></p>
359
  </div>
360
  <div class="shortcode-builder--fields">
364
  </div>
365
  </section>
366
 
367
+ <section>
368
+ <div class="shortcode-builder--label">
369
+ <h4><?php _e('Done Label', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Leave field empty to not update button text','ajax-load-more'); ?>."></a></h4>
370
+ <p><?php _e('Update the text of the <em>Load More</em> button when no content remains to be loaded.', 'ajax-load-more'); ?></p>
371
+ </div>
372
+ <div class="shortcode-builder--fields">
373
+ <div class="inner">
374
+ <input class="alm_element" name="button-done-label" type="text" id="button-done-label" value="" placeholder="<?php _e('No Posts Remain...', 'ajax-load-more'); ?>">
375
+ </div>
376
+ </div>
377
+ </section>
378
+
379
  </div>
380
  </div>
381
  <!-- Button Labels -->
409
 
410
  <div class="scrolling-options nested-component">
411
  <div class="nested-component--inner">
412
+
413
  <!-- Scroll Distance -->
414
  <section class="border-btm scroll_distance">
415
  <div class="shortcode-builder--label">
429
  </div>
430
  </div>
431
  </section>
 
 
 
 
 
 
 
 
 
 
 
 
 
432
 
433
  <!-- Max Pages -->
434
  <section class="border-btm max_pages">
447
  <section class="border-btm pause_override">
448
  <div class="shortcode-builder--label">
449
  <h4><?php _e('Pause Override', 'ajax-load-more'); ?></h4>
450
+ <p><?php _e('Override the <em>Pause</em> parameter and trigger the initial loading of posts on scroll.', 'ajax-load-more'); ?></p>
451
  </div>
452
  <div class="shortcode-builder--fields">
453
  <ul>
462
  </ul>
463
  </div>
464
  </section>
465
+ </div>
466
+
467
  </div>
468
+
469
+ <!-- Scroll Container -->
470
+ <section class="border-btm scroll_container_section">
471
+ <div class="shortcode-builder--label">
472
+ <h4><?php _e('Scroll Container', 'ajax-load-more'); ?></h4>
473
+ <p><?php _e('Confine Ajax Load More scrolling to a parent container element.', 'ajax-load-more'); ?></p>
474
+ </div>
475
+ <div class="shortcode-builder--fields">
476
+ <ul>
477
+ <li>
478
+ <input class="alm_element" type="radio" name="scroll_container_toggle" value="t" id="scroll_container_t">
479
+ <label for="scroll_container_t"><?php _e('True', 'ajax-load-more'); ?></label>
480
+ </li>
481
+ <li>
482
+ <input class="alm_element" type="radio" name="scroll_container_toggle" value="f" id="scroll_container_f" checked="checked">
483
+ <label for="scroll_container_f"><?php _e('False', 'ajax-load-more'); ?></label>
484
+ </li>
485
+ </ul>
486
+ </div>
487
+ </section>
488
+
489
+ <div class="clear"></div>
490
+
491
+ <div class="scroll-container-options nested-component" style="display: none;">
492
+ <div class="nested-component--inner">
493
+
494
+ <!-- Scroll Container -->
495
+ <section class="border-btm scroll_container">
496
+ <div class="shortcode-builder--label">
497
+ <h4><?php _e('Container Element', 'ajax-load-more'); ?></h4>
498
+ <p><?php _e('Enter the ID or classname of the parent container element to be used as the scrolling container.', 'ajax-load-more'); ?></p>
499
+ </div>
500
+ <div class="shortcode-builder--fields">
501
+ <div class="inner">
502
+ <input type="text" class="alm_element" name="scroll-container" id="scroll-container" placeholder="#my-div">
503
+ </div>
504
+ </div>
505
+ </section>
506
+
507
+ </div>
508
+ </div>
509
+
510
  </div>
511
  </div>
512
  <!-- End Scrolling -->
514
  <!-- Transition -->
515
  <div class="row input transition" id="alm-transition">
516
  <h3 class="heading" tabindex="0"><?php _e('Transition', 'ajax-load-more'); ?></h3>
517
+
518
  <div class="expand-wrap">
519
  <section class="first">
520
  <div class="shortcode-builder--label">
536
 
537
  <div class="masonry-options nested-component" style="display: none;">
538
  <div class="nested-component--inner">
539
+
540
  <section>
541
  <div class="shortcode-builder--label full">
542
  <h4><?php _e('Masonry Options', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Ajax Load More does not support all available Masonry options','ajax-load-more'); ?>."></a></h4>
543
  <p><?php _e('The following Masonry <a href="https://masonry.desandro.com/options.html" target="_blank">options</a> are supported by Ajax Load More.', 'ajax-load-more'); ?></p>
544
  </div>
545
  </section>
546
+
547
  <section>
548
  <div class="shortcode-builder--label">
549
  <h4><?php _e('Item Selector', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Item Selector is required for Masonry to target each element loaded with Ajax.','ajax-load-more'); ?>"></a></h4>
557
  </div>
558
  </div>
559
  </section>
560
+
561
+
562
  <section>
563
  <div class="shortcode-builder--label">
564
  <h4><?php _e('Column Width', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('If columnWidth is not set, Masonry will use the outer width of the first Item Selector.','ajax-load-more'); ?>"></a></h4>
572
  </div>
573
  </div>
574
  </section>
575
+
576
  <section>
577
  <div class="shortcode-builder--label">
578
  <h4><?php _e('Animation Type', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('All Masonry animations include a fade-in effect as items are loaded.','ajax-load-more'); ?>"></a></h4>
619
  </div>
620
  </div>
621
  </section>
622
+
623
  <section>
624
  <div class="shortcode-builder--label">
625
  <h4><?php _e('Horizontal Order', 'ajax-load-more'); ?></h4>
641
  </div>
642
  </div>
643
  </section>
644
+
645
  <p class="warning-callout">
646
  <?php _e('Don\'t see your favorite Masonry option listed? You can always add your own!', 'ajax-load-more'); ?>
647
  <a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/docs/masonry/" target="_blank"><?php _e('View Docs', 'ajax-load-more'); ?></a>
653
 
654
  <!-- Hide transition_container if Masonry is selected -->
655
  <div class="masonry-options-hide">
656
+
657
  <div class="transition-container-classes-wrap">
658
+
659
+ <section>
660
  <div class="shortcode-builder--label">
661
  <h4><?php _e('Transition Container Classes', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('This setting is not available with the Single Post or Next Page add-ons','ajax-load-more'); ?>."></a></h4>
662
  <p><?php _e('Add custom classes to the <span>.alm-reveal</span> loading container', 'ajax-load-more'); ?>.</p>
668
  </div>
669
  </div>
670
  </section>
671
+
672
  <section>
673
  <div class="shortcode-builder--label">
674
  <h4><?php _e('Transition Container', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Removing the transition container may have undesired results and is not recommended','ajax-load-more'); ?>."></a></h4>
717
  </div>
718
  </div>
719
  </section>
 
720
 
721
+ <div class="clear"></div>
722
+
723
+ <div class="progress-bar-options nested-component" style="display: none;">
724
+ <div class="nested-component--inner">
725
+ <section>
726
+ <div class="shortcode-builder--label">
727
+ <h4><?php _e('Color', 'ajax-load-more'); ?> </h4>
728
+ <p><?php _e('Enter the hex color of the progress bar', 'ajax-load-more'); ?>.<br/>
729
+ <?php _e('Default:', 'ajax-load-more'); ?> #<span>ed7070</span>
730
+ </p>
731
+ </div>
732
+ <div class="shortcode-builder--fields">
733
+ <div class="inner" style="position: relative;">
734
+ <input type="text" class="alm_element" name="progress_bar_color" id="progress_bar_color" placeholder="ed7070" value="ed7070" maxlength="6" style="padding-left: 40px;">
735
+ <span class="progress_bar_color_indicator"></span>
736
+ </div>
737
+ </div>
738
+ </section>
739
+ </div>
740
+ </div>
741
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
742
  </div>
743
 
744
  </div>
754
  <div class="shortcode-parameter-wrap">
755
  <h2 tabindex="0" class="shortcode-title"><i class="fa fa-database"></i><?php _e('Query Parameters', 'ajax-load-more'); ?></h2>
756
  <div class="section-wrap">
757
+
758
  <p class="section-intro"><?php _e('Query Parameters allow you build a custom <b>WP_Query</b> based on Ajax Load More shortcode values.', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('When using Ajax Load More add-ons or extensions not all Query Parameters will be available in the query.', 'ajax-load-more'); ?>"></a></p>
759
+
760
  <!-- Posts Per Page -->
761
  <div class="row input posts_per_page" id="alm-post-page">
762
  <h3 class="heading" tabindex="0"><?php _e('Posts Per Page', 'ajax-load-more'); ?></h3>
1339
  <!-- Integrations -->
1340
  <div class="shortcode-parameter-wrap">
1341
  <h2 tabindex="0" class="shortcode-title"><i class="fa fa-handshake-o" aria-hidden="true"></i> <?php _e('Integrations', 'ajax-load-more'); ?></h2>
1342
+
1343
  <div class="section-wrap">
1344
+
1345
  <p class="section-intro"><?php _e('Ajax Load More provides integration solutions for popular plugins and core WP functionality - when selecting an integration, Ajax Load More will automatically set various parameters on the server side to provide the best experience for users based on the selected integration.', 'ajax-load-more'); ?></a></p>
1346
+
1347
  <!-- Archives -->
1348
  <div class="row input alm-archive" id="alm-archive">
1349
  <h3 class="heading" tabindex="0"><?php _e('Archives', 'ajax-load-more'); ?></h3>
1370
  </div>
1371
  </section>
1372
  <p class="warning-callout"><?php _e('<b>Note</b>: Do not select Query Parameters other than <b>Posts Per Page</b> and/or <b>Post Type</b> when using the Archives integration. Ajax Load More will automatically create the perfect shortcode for you based on the current archive page.', 'ajax-load-more'); ?></p>
1373
+ </div>
1374
  </div>
1375
+
1376
+ <!-- WooCommerce -->
1377
  <!--
1378
  <div class="row input alm-woocommerce" id="alm-woocommerce">
1379
  <h3 class="heading" tabindex="0"><?php _e('WooCommerce', 'ajax-load-more'); ?></h3>
1386
  </div>
1387
  <div class="shortcode-builder--fields">
1388
  <div class="inner">
1389
+ <?php if( is_plugin_active('woocommerce/woocommerce.php') ) { ?>
1390
  <ul>
1391
  <li>
1392
  <input class="alm_element" type="radio" name="woocommerce" value="t" id="woocommerce_t">
1396
  <input class="alm_element" type="radio" name="woocommerce" value="f" id="woocommerce_f" checked="checked">
1397
  <label for="woocommerce_f"><?php _e('False', 'ajax-load-more'); ?></label>
1398
  </li>
1399
+ </ul>
1400
  <?php } else { ?>
1401
  <p class="highlight" style="font-size: 13px; border-radius: 3px; line-height: 1; padding: 6px;">WooCommerce is not installed.</p>
1402
  <?php }?>
1406
  </div>
1407
  </div>
1408
  -->
1409
+
1410
  </div>
1411
  </div>
1412
 
ajax-load-more.php CHANGED
@@ -7,15 +7,15 @@ Text Domain: ajax-load-more
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: https://connekthq.com
10
- Version: 5.3.6
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
 
16
 
17
- define('ALM_VERSION', '5.3.6');
18
- define('ALM_RELEASE', 'June 29, 2020');
19
  define('ALM_STORE_URL', 'https://connekthq.com');
20
 
21
 
@@ -62,7 +62,7 @@ function alm_create_table(){
62
  $table_name = $wpdb->prefix . "alm";
63
  $blog_id = $wpdb->blogid;
64
 
65
- $defaultRepeater = '<li <?php if (!has_post_thumbnail()) { ?> class="no-img"<?php } ?>>'. PHP_EOL .' <?php if ( has_post_thumbnail() ) { the_post_thumbnail(\'alm-thumbnail\'); }?>'. PHP_EOL .' <h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>'. PHP_EOL .' <p class="entry-meta"><?php the_time("F d, Y"); ?></p>'. PHP_EOL .' <?php the_excerpt(); ?>'. PHP_EOL .'</li>';
66
 
67
  // Create Base Repeater Directory
68
  $base_dir = AjaxLoadMore::alm_get_repeater_path();
@@ -134,9 +134,9 @@ if( !class_exists('AjaxLoadMore') ):
134
  add_filter( 'plugin_row_meta', array(&$this, 'alm_plugin_meta_links'), 10, 2 );
135
  add_shortcode( 'ajax_load_more', array(&$this, 'alm_shortcode') );
136
  add_filter( 'widget_text', 'do_shortcode' ); // Allow shortcodes in widget areas
137
- load_plugin_textdomain( 'ajax-load-more', false, dirname(plugin_basename( __FILE__ )).'/lang'); //load text domain
138
 
139
- }
140
 
141
 
142
 
@@ -271,6 +271,7 @@ if( !class_exists('AjaxLoadMore') ):
271
  include_once( ALM_PATH . 'core/classes/class.alm-enqueue.php'); // Load Enqueue Class
272
  include_once( ALM_PATH . 'core/classes/class.alm-queryargs.php'); // Load Query Args Class
273
  include_once( ALM_PATH . 'core/classes/class.alm-localize.php'); // Load Localize Class
 
274
 
275
  if( is_admin() ){
276
  require_once('admin/editor/editor.php');
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: https://connekthq.com
10
+ Version: 5.3.7
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
 
16
 
17
+ define('ALM_VERSION', '5.3.7');
18
+ define('ALM_RELEASE', 'July 31, 2020');
19
  define('ALM_STORE_URL', 'https://connekthq.com');
20
 
21
 
62
  $table_name = $wpdb->prefix . "alm";
63
  $blog_id = $wpdb->blogid;
64
 
65
+ $defaultRepeater = '<li class="alm-item<?php if (!has_post_thumbnail()) { ?> no-img<?php } ?>">'. PHP_EOL .' <?php if ( has_post_thumbnail() ) { the_post_thumbnail(\'alm-thumbnail\'); }?>'. PHP_EOL .' <h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>'. PHP_EOL .' <p class="entry-meta"><?php the_time("F d, Y"); ?></p>'. PHP_EOL .' <?php the_excerpt(); ?>'. PHP_EOL .'</li>';
66
 
67
  // Create Base Repeater Directory
68
  $base_dir = AjaxLoadMore::alm_get_repeater_path();
134
  add_filter( 'plugin_row_meta', array(&$this, 'alm_plugin_meta_links'), 10, 2 );
135
  add_shortcode( 'ajax_load_more', array(&$this, 'alm_shortcode') );
136
  add_filter( 'widget_text', 'do_shortcode' ); // Allow shortcodes in widget areas
137
+ load_plugin_textdomain( 'ajax-load-more', false, dirname(plugin_basename( __FILE__ )).'/lang'); //load text domain
138
 
139
+ }
140
 
141
 
142
 
271
  include_once( ALM_PATH . 'core/classes/class.alm-enqueue.php'); // Load Enqueue Class
272
  include_once( ALM_PATH . 'core/classes/class.alm-queryargs.php'); // Load Query Args Class
273
  include_once( ALM_PATH . 'core/classes/class.alm-localize.php'); // Load Localize Class
274
+ include_once( ALM_PATH . 'core/integration/elementor/elementor.php');
275
 
276
  if( is_admin() ){
277
  require_once('admin/editor/editor.php');
core/classes/class.alm-shortcode.php CHANGED
@@ -198,6 +198,7 @@ if( !class_exists('ALM_SHORTCODE') ):
198
  'scroll' => 'true',
199
  'scroll_distance' => '100',
200
  'scroll_container' => '',
 
201
  'max_pages' => '0',
202
  'pause_override' => 'false',
203
  'pause' => 'false',
@@ -215,6 +216,7 @@ if( !class_exists('ALM_SHORTCODE') ):
215
  'images_loaded' => 'false',
216
  'button_label' => apply_filters('alm_button_label', __('Older Posts', 'ajax-load-more')),
217
  'button_loading_label' => '',
 
218
  'container_type' => '',
219
  'css_classes' => '',
220
  'loading_style' => '',
@@ -224,21 +226,28 @@ if( !class_exists('ALM_SHORTCODE') ):
224
  'placeholder' => '',
225
  'archive' => false,
226
  'woocommerce' => false,
227
- 'elementor' => false,
 
 
228
  ), $atts));
229
 
230
 
231
  // Elementor
232
- $elementor = ($elementor === 'true') ? true : false;
233
- if($elementor){
234
- // If Elementor && not on a singular page, exit ALM.
235
  if(!is_singular($post_type)){
 
236
  return false;
237
  }
238
  $container_element = 'div';
239
  $offset = '1';
240
  }
241
 
 
 
 
 
 
242
 
243
  // WooCommerce
244
  $woo = ($woo === 'true') ? true : false; // Add-on
@@ -346,6 +355,11 @@ if( !class_exists('ALM_SHORTCODE') ):
346
  wp_enqueue_script( 'ajax-load-more-woocommerce' );
347
  }
348
 
 
 
 
 
 
349
 
350
 
351
  /*
@@ -472,7 +486,11 @@ if( !class_exists('ALM_SHORTCODE') ):
472
 
473
 
474
  $ajaxloadmore .= ALM_WOOCOMMERCE::hide_pagination($woocommerce);
475
- $ajaxloadmore .= ALM_WOOCOMMERCE::hide_orderby($woocommerce);
 
 
 
 
476
 
477
 
478
  /*
@@ -508,9 +526,11 @@ if( !class_exists('ALM_SHORTCODE') ):
508
  // ALM Wrapper Class
509
  $alm_wrapper_class = ($woocommerce) ? 'ajax-load-more-wrap '. ALM_WOOCOMMERCE::get_wrapper_class() : 'ajax-load-more-wrap';
510
 
511
- // Start .alm-listing
512
- $ajaxloadmore .= '<div id="'. $div_id .'" class="'. $alm_wrapper_class . $alm_loading_style .''. $paging_color .''. $alm_layouts . $alm_tabs .'" '. $unique_id .' data-alm-id="" data-canonical-url="'. $canonicalURL .'" data-slug="'. $slug .'" data-post-id="'. $post_id .'" '. $is_search . $is_nested .' data-localized="'. alm_convert_dashes_to_underscore($localize_id) .'_vars' .'">';
513
 
 
 
514
 
515
  // Masonry Hook (Before)
516
  $ajaxloadmore .= apply_filters('alm_masonry_before', $transition);
@@ -642,7 +662,7 @@ if( !class_exists('ALM_SHORTCODE') ):
642
 
643
 
644
  // WooCommerce Add-on
645
- if($woo){
646
  $filters = false;
647
  $single_post = false;
648
  $seo = false;
@@ -654,6 +674,10 @@ if( !class_exists('ALM_SHORTCODE') ):
654
  $preloaded = false;
655
  }
656
 
 
 
 
 
657
 
658
  // Single Post Add-on
659
  if($single_post){
@@ -1039,8 +1063,17 @@ if( !class_exists('ALM_SHORTCODE') ):
1039
  if( $woo && has_action('alm_woocommerce_init') && in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option('active_plugins'))) ){
1040
  apply_filters('alm_woocommerce_init', $localize_id, $query_args);
1041
  $ajaxloadmore .= ' data-woo="true"';
1042
- }
1043
 
 
 
 
 
 
 
 
 
 
1044
 
1045
  $ajaxloadmore .= ' data-container-type="'.$container_element.'"';
1046
 
@@ -1051,7 +1084,7 @@ if( !class_exists('ALM_SHORTCODE') ):
1051
  $ajaxloadmore .= ($woocommerce) ? ' data-woocommerce="true"' : '';
1052
 
1053
  // Repeaters
1054
- if(!$woo){
1055
  $ajaxloadmore .= ($theme_repeater === 'null') ? ' data-repeater="'.$repeater.'"' : '';
1056
  $ajaxloadmore .= ($theme_repeater !== 'null') ? ' data-theme-repeater="'.$theme_repeater.'"' : '';
1057
  }
@@ -1129,6 +1162,7 @@ if( !class_exists('ALM_SHORTCODE') ):
1129
  if($scroll === 'true'){
1130
  $ajaxloadmore .= ' data-scroll-distance="'.$scroll_distance.'"';
1131
  $ajaxloadmore .= (!empty($scroll_container)) ? ' data-scroll-container="'.$scroll_container.'"' : '';
 
1132
  $ajaxloadmore .= ' data-max-pages="'.$max_pages.'"';
1133
  $ajaxloadmore .= (!empty($pause_override)) ? ' data-pause-override="'.$pause_override.'"' : '';
1134
  }
@@ -1140,6 +1174,7 @@ if( !class_exists('ALM_SHORTCODE') ):
1140
  // Button
1141
  $ajaxloadmore .= ' data-button-label="'.$button_label.'"';
1142
  $ajaxloadmore .= (!empty($button_loading_label)) ? ' data-button-loading-label="'.$button_loading_label.'"' : '';
 
1143
 
1144
  // Destroy After
1145
  $ajaxloadmore .= (!empty($destroy_after)) ? ' data-destroy-after="'.$destroy_after.'"' : '';
@@ -1292,7 +1327,7 @@ if( !class_exists('ALM_SHORTCODE') ):
1292
 
1293
 
1294
  // Render <noscript> pagination for Nextpage addon
1295
- if(has_action('alm_nextpage_installed') && $nextpage){
1296
  $ajaxloadmore .= apply_filters( 'alm_nextpage_noscript_paging', $query_args['post_id'], $query_args['id'] ); // located in Nextpage add-on
1297
  }
1298
 
198
  'scroll' => 'true',
199
  'scroll_distance' => '100',
200
  'scroll_container' => '',
201
+ 'scroll_direction' => '',
202
  'max_pages' => '0',
203
  'pause_override' => 'false',
204
  'pause' => 'false',
216
  'images_loaded' => 'false',
217
  'button_label' => apply_filters('alm_button_label', __('Older Posts', 'ajax-load-more')),
218
  'button_loading_label' => '',
219
+ 'button_done_label' => '',
220
  'container_type' => '',
221
  'css_classes' => '',
222
  'loading_style' => '',
226
  'placeholder' => '',
227
  'archive' => false,
228
  'woocommerce' => false,
229
+ 'elementor' => false,
230
+ 'elementor_target' => '',
231
+ 'elementor_url' => '',
232
  ), $atts));
233
 
234
 
235
  // Elementor
236
+ $elementor = ($elementor === 'true') ? 'single' : $elementor;
237
+ if($elementor === 'single'){ // Single Template
 
238
  if(!is_singular($post_type)){
239
+ // Exit if not singular template
240
  return false;
241
  }
242
  $container_element = 'div';
243
  $offset = '1';
244
  }
245
 
246
+ if($elementor === 'posts' && !empty($elementor_target)){ // Posts Grid
247
+ $container_element = 'div';
248
+ $pause = 'true';
249
+ }
250
+
251
 
252
  // WooCommerce
253
  $woo = ($woo === 'true') ? true : false; // Add-on
355
  wp_enqueue_script( 'ajax-load-more-woocommerce' );
356
  }
357
 
358
+ // Elementor
359
+ if(has_action('alm_elementor_installed') && $elementor === 'posts'){
360
+ wp_enqueue_script( 'ajax-load-more-elementor' );
361
+ }
362
+
363
 
364
 
365
  /*
486
 
487
 
488
  $ajaxloadmore .= ALM_WOOCOMMERCE::hide_pagination($woocommerce);
489
+ $ajaxloadmore .= ALM_WOOCOMMERCE::hide_orderby($woocommerce);
490
+
491
+
492
+ // Elementor Posts Widget Hook (Before)
493
+ $ajaxloadmore .= (has_action('alm_elementor_installed') && $elementor === 'posts') ? apply_filters('alm_elementor_hide_pagination', '') : '';
494
 
495
 
496
  /*
526
  // ALM Wrapper Class
527
  $alm_wrapper_class = ($woocommerce) ? 'ajax-load-more-wrap '. ALM_WOOCOMMERCE::get_wrapper_class() : 'ajax-load-more-wrap';
528
 
529
+ // ALM Direction
530
+ $alm_direction = (!empty($scroll_direction)) ? ' alm-'.$scroll_direction : '';
531
 
532
+ // Start .alm-listing
533
+ $ajaxloadmore .= '<div id="'. $div_id .'" class="'. $alm_wrapper_class . $alm_loading_style .''. $paging_color .''. $alm_layouts . $alm_tabs . $alm_direction .'" '. $unique_id .' data-alm-id="" data-canonical-url="'. $canonicalURL .'" data-slug="'. $slug .'" data-post-id="'. $post_id .'" '. $is_search . $is_nested .' data-localized="'. alm_convert_dashes_to_underscore($localize_id) .'_vars' .'">';
534
 
535
  // Masonry Hook (Before)
536
  $ajaxloadmore .= apply_filters('alm_masonry_before', $transition);
662
 
663
 
664
  // WooCommerce Add-on
665
+ if($woo || $elementor === 'posts'){
666
  $filters = false;
667
  $single_post = false;
668
  $seo = false;
674
  $preloaded = false;
675
  }
676
 
677
+ if($elementor === 'posts'){
678
+ $woo = false;
679
+ }
680
+
681
 
682
  // Single Post Add-on
683
  if($single_post){
1063
  if( $woo && has_action('alm_woocommerce_init') && in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option('active_plugins'))) ){
1064
  apply_filters('alm_woocommerce_init', $localize_id, $query_args);
1065
  $ajaxloadmore .= ' data-woo="true"';
1066
+ }
1067
 
1068
+ // Elementor Add-on
1069
+ if( $elementor === 'posts' && $elementor_target && has_action('alm_elementor_params') && in_array( 'elementor-pro/elementor-pro.php', apply_filters( 'active_plugins', get_option('active_plugins'))) ){
1070
+ $elementor_params = array(
1071
+ 'target' => $elementor_target,
1072
+ 'url' => $elementor_url,
1073
+ );
1074
+ ALM_LOCALIZE::add_localized_var( 'elementor', apply_filters('alm_elementor_params', $elementor_params), $localize_id );
1075
+ $ajaxloadmore .= ' data-elementor="posts"';
1076
+ }
1077
 
1078
  $ajaxloadmore .= ' data-container-type="'.$container_element.'"';
1079
 
1084
  $ajaxloadmore .= ($woocommerce) ? ' data-woocommerce="true"' : '';
1085
 
1086
  // Repeaters
1087
+ if(!$woo && $elementor !== 'posts'){
1088
  $ajaxloadmore .= ($theme_repeater === 'null') ? ' data-repeater="'.$repeater.'"' : '';
1089
  $ajaxloadmore .= ($theme_repeater !== 'null') ? ' data-theme-repeater="'.$theme_repeater.'"' : '';
1090
  }
1162
  if($scroll === 'true'){
1163
  $ajaxloadmore .= ' data-scroll-distance="'.$scroll_distance.'"';
1164
  $ajaxloadmore .= (!empty($scroll_container)) ? ' data-scroll-container="'.$scroll_container.'"' : '';
1165
+ $ajaxloadmore .= (!empty($scroll_direction)) ? ' data-scroll-direction="'.$scroll_direction.'"' : '';
1166
  $ajaxloadmore .= ' data-max-pages="'.$max_pages.'"';
1167
  $ajaxloadmore .= (!empty($pause_override)) ? ' data-pause-override="'.$pause_override.'"' : '';
1168
  }
1174
  // Button
1175
  $ajaxloadmore .= ' data-button-label="'.$button_label.'"';
1176
  $ajaxloadmore .= (!empty($button_loading_label)) ? ' data-button-loading-label="'.$button_loading_label.'"' : '';
1177
+ $ajaxloadmore .= (!empty($button_done_label)) ? ' data-button-done-label="'.$button_done_label.'"' : '';
1178
 
1179
  // Destroy After
1180
  $ajaxloadmore .= (!empty($destroy_after)) ? ' data-destroy-after="'.$destroy_after.'"' : '';
1327
 
1328
 
1329
  // Render <noscript> pagination for Nextpage addon
1330
+ if(has_action('alm_nextpage_installed') && $nextpage && $nextpage_urls === 'true'){
1331
  $ajaxloadmore .= apply_filters( 'alm_nextpage_noscript_paging', $query_args['post_id'], $query_args['id'] ); // located in Nextpage add-on
1332
  }
1333
 
core/dist/css/ajax-load-more.css CHANGED
@@ -227,6 +227,20 @@
227
  .ajax-load-more-wrap.infinite.chasing-arrows .alm-load-more-btn {
228
  background-image: url("../../img/spinner-chasing-arrows.gif"); }
229
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
  /**
231
  * Generic alm-listing Styles
232
  * @since 1.0.0
@@ -246,35 +260,69 @@
246
  .alm-listing .alm-reveal > li,
247
  .alm-listing .alm-paging-content > li,
248
  .alm-listing > li {
249
- background: none;
250
- margin: 0 0 30px;
251
- padding: 0 0 0 170px;
252
- position: relative;
253
- list-style: none; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
  .alm-listing .alm-reveal > li.no-img,
255
  .alm-listing .alm-paging-content > li.no-img,
256
  .alm-listing > li.no-img {
257
  padding: 0; }
258
- .alm-listing .alm-reveal > li p,
259
- .alm-listing .alm-paging-content > li p,
260
- .alm-listing > li p {
261
- margin: 0; }
262
- .alm-listing .alm-reveal > li p.entry-meta,
263
- .alm-listing .alm-paging-content > li p.entry-meta,
264
- .alm-listing > li p.entry-meta {
265
- margin: 0 0 5px;
266
- opacity: 0.75; }
267
- .alm-listing .alm-reveal > li h3,
268
- .alm-listing .alm-paging-content > li h3,
269
- .alm-listing > li h3 {
270
- margin: 0 0 10px; }
271
- .alm-listing .alm-reveal > li img,
272
- .alm-listing .alm-paging-content > li img,
273
- .alm-listing > li img {
274
- position: absolute;
275
- left: 0;
276
- top: 0;
277
- border-radius: 2px; }
278
  .alm-listing.products li.product {
279
  padding-left: inherit; }
280
  .alm-listing.products li.product img {
@@ -316,6 +364,41 @@
316
  transition: opacity 0.2s ease;
317
  display: none; }
318
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
319
  .alm-toc {
320
  display: -webkit-box;
321
  display: -ms-flexbox;
227
  .ajax-load-more-wrap.infinite.chasing-arrows .alm-load-more-btn {
228
  background-image: url("../../img/spinner-chasing-arrows.gif"); }
229
 
230
+ .ajax-load-more-wrap.alm-horizontal .alm-btn-wrap {
231
+ display: -webkit-box;
232
+ display: -ms-flexbox;
233
+ display: flex;
234
+ -webkit-box-align: center;
235
+ -ms-flex-align: center;
236
+ align-items: center;
237
+ padding: 0;
238
+ margin: 0; }
239
+ .ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button {
240
+ margin: 0; }
241
+ .ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button.done {
242
+ display: none; }
243
+
244
  /**
245
  * Generic alm-listing Styles
246
  * @since 1.0.0
260
  .alm-listing .alm-reveal > li,
261
  .alm-listing .alm-paging-content > li,
262
  .alm-listing > li {
263
+ position: relative; }
264
+ .alm-listing .alm-reveal > li.alm-item,
265
+ .alm-listing .alm-paging-content > li.alm-item,
266
+ .alm-listing > li.alm-item {
267
+ background: none;
268
+ margin: 0 0 30px;
269
+ padding: 0 0 0 80px;
270
+ position: relative;
271
+ list-style: none; }
272
+ @media screen and (min-width: 480px) {
273
+ .alm-listing .alm-reveal > li.alm-item,
274
+ .alm-listing .alm-paging-content > li.alm-item,
275
+ .alm-listing > li.alm-item {
276
+ padding: 0 0 0 100px; } }
277
+ @media screen and (min-width: 768px) {
278
+ .alm-listing .alm-reveal > li.alm-item,
279
+ .alm-listing .alm-paging-content > li.alm-item,
280
+ .alm-listing > li.alm-item {
281
+ padding: 0 0 0 135px; } }
282
+ @media screen and (min-width: 1024px) {
283
+ .alm-listing .alm-reveal > li.alm-item,
284
+ .alm-listing .alm-paging-content > li.alm-item,
285
+ .alm-listing > li.alm-item {
286
+ padding: 0 0 0 160px; } }
287
+ .alm-listing .alm-reveal > li.alm-item h3,
288
+ .alm-listing .alm-paging-content > li.alm-item h3,
289
+ .alm-listing > li.alm-item h3 {
290
+ margin: 0; }
291
+ .alm-listing .alm-reveal > li.alm-item p,
292
+ .alm-listing .alm-paging-content > li.alm-item p,
293
+ .alm-listing > li.alm-item p {
294
+ margin: 10px 0 0; }
295
+ .alm-listing .alm-reveal > li.alm-item p.entry-meta,
296
+ .alm-listing .alm-paging-content > li.alm-item p.entry-meta,
297
+ .alm-listing > li.alm-item p.entry-meta {
298
+ opacity: 0.75; }
299
+ .alm-listing .alm-reveal > li.alm-item img,
300
+ .alm-listing .alm-paging-content > li.alm-item img,
301
+ .alm-listing > li.alm-item img {
302
+ position: absolute;
303
+ left: 0;
304
+ top: 0;
305
+ border-radius: 2px;
306
+ max-width: 65px; }
307
+ @media screen and (min-width: 480px) {
308
+ .alm-listing .alm-reveal > li.alm-item img,
309
+ .alm-listing .alm-paging-content > li.alm-item img,
310
+ .alm-listing > li.alm-item img {
311
+ max-width: 85px; } }
312
+ @media screen and (min-width: 768px) {
313
+ .alm-listing .alm-reveal > li.alm-item img,
314
+ .alm-listing .alm-paging-content > li.alm-item img,
315
+ .alm-listing > li.alm-item img {
316
+ max-width: 115px; } }
317
+ @media screen and (min-width: 1024px) {
318
+ .alm-listing .alm-reveal > li.alm-item img,
319
+ .alm-listing .alm-paging-content > li.alm-item img,
320
+ .alm-listing > li.alm-item img {
321
+ max-width: 140px; } }
322
  .alm-listing .alm-reveal > li.no-img,
323
  .alm-listing .alm-paging-content > li.no-img,
324
  .alm-listing > li.no-img {
325
  padding: 0; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
326
  .alm-listing.products li.product {
327
  padding-left: inherit; }
328
  .alm-listing.products li.product img {
364
  transition: opacity 0.2s ease;
365
  display: none; }
366
 
367
+ .ajax-load-more-wrap.alm-horizontal {
368
+ display: -webkit-box;
369
+ display: -ms-flexbox;
370
+ display: flex;
371
+ -ms-flex-wrap: nowrap;
372
+ flex-wrap: nowrap;
373
+ width: 100%; }
374
+ .ajax-load-more-wrap.alm-horizontal .alm-listing,
375
+ .ajax-load-more-wrap.alm-horizontal .alm-listing .alm-reveal {
376
+ display: -webkit-box;
377
+ display: -ms-flexbox;
378
+ display: flex;
379
+ -ms-flex-wrap: nowrap;
380
+ flex-wrap: nowrap;
381
+ -webkit-box-orient: horizontal;
382
+ -webkit-box-direction: normal;
383
+ -ms-flex-direction: row;
384
+ flex-direction: row; }
385
+ .ajax-load-more-wrap.alm-horizontal .alm-listing > li.alm-item,
386
+ .ajax-load-more-wrap.alm-horizontal .alm-listing .alm-reveal > li.alm-item {
387
+ padding: 0;
388
+ text-align: center;
389
+ margin: 0 2px;
390
+ padding: 15px;
391
+ height: auto;
392
+ background-color: #fff;
393
+ border-radius: 3px; }
394
+ .ajax-load-more-wrap.alm-horizontal .alm-listing > li.alm-item img,
395
+ .ajax-load-more-wrap.alm-horizontal .alm-listing .alm-reveal > li.alm-item img {
396
+ position: static;
397
+ border-radius: 100%;
398
+ max-width: none; }
399
+ .ajax-load-more-wrap.alm-horizontal .alm-listing .alm-reveal:after {
400
+ display: none; }
401
+
402
  .alm-toc {
403
  display: -webkit-box;
404
  display: -ms-flexbox;
core/dist/css/ajax-load-more.min.css CHANGED
@@ -1 +1 @@
1
- .alm-btn-wrap{display:block;text-align:center;padding:10px 0 25px;position:relative}.alm-btn-wrap:after{display:table;clear:both;height:0;width:100%;content:''}.alm-btn-wrap .alm-load-more-btn{font-size:15px;font-weight:500;width:auto;height:43px;line-height:1;background:#ed7070;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);color:#fff;border:none;border-radius:4px;margin:0;padding:0 20px;display:inline-block;position:relative;-webkit-transition:all .3s ease;transition:all .3s ease;text-align:center;text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.alm-btn-wrap .alm-load-more-btn.loading,.alm-btn-wrap .alm-load-more-btn:hover{background-color:#e06161;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.09);box-shadow:0 1px 3px rgba(0,0,0,.09);color:#fff;text-decoration:none}.alm-btn-wrap .alm-load-more-btn:active{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.alm-btn-wrap .alm-load-more-btn.loading{cursor:default;outline:0;padding-left:44px}.alm-btn-wrap .alm-load-more-btn.done{cursor:default;opacity:.15;background-color:#ed7070;outline:0!important;-webkit-box-shadow:none!important;box-shadow:none!important}.alm-btn-wrap .alm-load-more-btn.done:before,.alm-btn-wrap .alm-load-more-btn:before{background:0 0;width:0}.alm-btn-wrap .alm-load-more-btn.loading:before{background:#fff url(../../img/ajax-loader.gif) no-repeat center center;width:30px;height:31px;margin:6px;border-radius:3px;display:inline-block;z-index:0;content:'';position:absolute;left:0;top:0;overflow:hidden;-webkit-transition:width .5s ease-in-out;transition:width .5s ease-in-out}.ajax-load-more-wrap.white .alm-load-more-btn{background-color:#fff;color:#787878;border:1px solid #e0e0e0;overflow:hidden;-webkit-transition:none;transition:none;outline:0}.ajax-load-more-wrap.white .alm-load-more-btn.loading,.ajax-load-more-wrap.white .alm-load-more-btn:focus,.ajax-load-more-wrap.white .alm-load-more-btn:hover{background-color:#fff;color:#333;border-color:#aaa}.ajax-load-more-wrap.white .alm-load-more-btn.done{background-color:#fff;color:#444;border-color:#ccc}.ajax-load-more-wrap.white .alm-load-more-btn.loading{color:rgba(255,255,255,0)!important;outline:0!important;background-color:transparent;border-color:transparent!important;-webkit-box-shadow:none!important;box-shadow:none!important;padding-left:20px}.ajax-load-more-wrap.white .alm-load-more-btn.loading:before{margin:0;left:0;top:0;width:100%;height:100%;background-color:transparent;background-image:url(../../img/ajax-loader-lg.gif);background-size:25px 25px;background-position:center center}.ajax-load-more-wrap.light-grey .alm-load-more-btn{background-color:#efefef;color:#787878;border:1px solid #e0e0e0;overflow:hidden;-webkit-transition:all 75ms ease;transition:all 75ms ease;outline:0}.ajax-load-more-wrap.light-grey .alm-load-more-btn.done,.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading,.ajax-load-more-wrap.light-grey .alm-load-more-btn:focus,.ajax-load-more-wrap.light-grey .alm-load-more-btn:hover{background-color:#f1f1f1;color:#222;border-color:#aaa}.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading{color:rgba(255,255,255,0)!important;outline:0!important;background-color:transparent;border-color:transparent!important;-webkit-box-shadow:none!important;box-shadow:none!important;padding-left:20px}.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading:before{margin:0;left:0;top:0;width:100%;height:100%;background-color:transparent;background-image:url(../../img/ajax-loader-lg.gif);background-size:25px 25px;background-position:center center}.ajax-load-more-wrap.blue .alm-load-more-btn{background-color:#1b91ca}.ajax-load-more-wrap.blue .alm-load-more-btn.done,.ajax-load-more-wrap.blue .alm-load-more-btn.loading,.ajax-load-more-wrap.blue .alm-load-more-btn:hover{background-color:#1b84b7}.ajax-load-more-wrap.green .alm-load-more-btn{background-color:#80ca7a}.ajax-load-more-wrap.green .alm-load-more-btn.done,.ajax-load-more-wrap.green .alm-load-more-btn.loading,.ajax-load-more-wrap.green .alm-load-more-btn:hover{background-color:#81c17b}.ajax-load-more-wrap.purple .alm-load-more-btn{background-color:#b97eca}.ajax-load-more-wrap.purple .alm-load-more-btn.done,.ajax-load-more-wrap.purple .alm-load-more-btn.loading,.ajax-load-more-wrap.purple .alm-load-more-btn:hover{background-color:#a477b1}.ajax-load-more-wrap.grey .alm-load-more-btn{background-color:#a09e9e}.ajax-load-more-wrap.grey .alm-load-more-btn.done,.ajax-load-more-wrap.grey .alm-load-more-btn.loading,.ajax-load-more-wrap.grey .alm-load-more-btn:hover{background-color:#888}.ajax-load-more-wrap.infinite .alm-load-more-btn{width:100%;background-color:transparent!important;background-position:center center;background-repeat:no-repeat;background-image:url(../../img/spinner.gif);border:none!important;opacity:0;-webkit-transition:opacity .2s ease;transition:opacity .2s ease;-webkit-box-shadow:none!important;box-shadow:none!important;overflow:hidden;text-indent:-9999px;cursor:default!important;outline:0!important}.ajax-load-more-wrap.infinite .alm-load-more-btn:before{display:none!important}.ajax-load-more-wrap.infinite .alm-load-more-btn:active,.ajax-load-more-wrap.infinite .alm-load-more-btn:focus{outline:0}.ajax-load-more-wrap.infinite .alm-load-more-btn.done{opacity:0}.ajax-load-more-wrap.infinite .alm-load-more-btn.loading{opacity:1}.ajax-load-more-wrap.infinite.skype .alm-load-more-btn{background-image:url(../../img/spinner-skype.gif)}.ajax-load-more-wrap.infinite.ring .alm-load-more-btn{background-image:url(../../img/spinner-ring.gif)}.ajax-load-more-wrap.infinite.fading-blocks .alm-load-more-btn{background-image:url(../../img/loader-fading-blocks.gif)}.ajax-load-more-wrap.infinite.fading-circles .alm-load-more-btn{background-image:url(../../img/loader-fading-circles.gif)}.ajax-load-more-wrap.infinite.chasing-arrows .alm-load-more-btn{background-image:url(../../img/spinner-chasing-arrows.gif)}.alm-listing .alm-reveal{outline:0}.alm-listing .alm-reveal:after{display:table;clear:both;height:0;width:100%;content:''}.alm-listing{margin:0;padding:0}.alm-listing .alm-paging-content>li,.alm-listing .alm-reveal>li,.alm-listing>li{background:0 0;margin:0 0 30px;padding:0 0 0 170px;position:relative;list-style:none}.alm-listing .alm-paging-content>li.no-img,.alm-listing .alm-reveal>li.no-img,.alm-listing>li.no-img{padding:0}.alm-listing .alm-paging-content>li p,.alm-listing .alm-reveal>li p,.alm-listing>li p{margin:0}.alm-listing .alm-paging-content>li p.entry-meta,.alm-listing .alm-reveal>li p.entry-meta,.alm-listing>li p.entry-meta{margin:0 0 5px;opacity:.75}.alm-listing .alm-paging-content>li h3,.alm-listing .alm-reveal>li h3,.alm-listing>li h3{margin:0 0 10px}.alm-listing .alm-paging-content>li img,.alm-listing .alm-reveal>li img,.alm-listing>li img{position:absolute;left:0;top:0;border-radius:2px}.alm-listing.products li.product{padding-left:inherit}.alm-listing.products li.product img{position:static;border-radius:inherit}.alm-listing.stylefree .alm-paging-content>li,.alm-listing.stylefree .alm-reveal>li,.alm-listing.stylefree>li{padding:inherit;margin:inherit}.alm-listing.stylefree .alm-paging-content>li img,.alm-listing.stylefree .alm-reveal>li img,.alm-listing.stylefree>li img{padding:inherit;margin:inherit;position:static;border-radius:inherit}.alm-listing.rtl .alm-paging-content>li,.alm-listing.rtl .alm-reveal>li{padding:0 170px 0 0;text-align:right}.alm-listing.rtl .alm-paging-content>li img,.alm-listing.rtl .alm-reveal>li img{left:auto;right:0}.alm-listing.rtl.products li.product{padding-right:inherit}.alm-masonry{display:block;overflow:hidden;clear:both}.alm-placeholder{opacity:0;-webkit-transition:opacity .2s ease;transition:opacity .2s ease;display:none}.alm-toc{display:-webkit-box;display:-ms-flexbox;display:flex;width:auto;padding:10px 0}.alm-toc button{background:#f7f7f7;border-radius:4px;-webkit-transition:all .15s ease;transition:all .15s ease;outline:0;border:1px solid #efefef;-webkit-box-shadow:none;box-shadow:none;color:#454545;cursor:pointer;font-size:14px;font-weight:500;padding:7px 10px;line-height:1;margin:0 5px 0 0;height:auto}.alm-toc button:focus,.alm-toc button:hover{border-color:#ccc;color:#222}.alm-toc button:hover{text-decoration:underline}.alm-toc button:focus{-webkit-box-shadow:0 0 0 3px rgba(0,0,0,.05);box-shadow:0 0 0 3px rgba(0,0,0,.05)}
1
+ .alm-btn-wrap{display:block;text-align:center;padding:10px 0 25px;position:relative}.alm-btn-wrap:after{display:table;clear:both;height:0;width:100%;content:''}.alm-btn-wrap .alm-load-more-btn{font-size:15px;font-weight:500;width:auto;height:43px;line-height:1;background:#ed7070;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);color:#fff;border:none;border-radius:4px;margin:0;padding:0 20px;display:inline-block;position:relative;-webkit-transition:all .3s ease;transition:all .3s ease;text-align:center;text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.alm-btn-wrap .alm-load-more-btn.loading,.alm-btn-wrap .alm-load-more-btn:hover{background-color:#e06161;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.09);box-shadow:0 1px 3px rgba(0,0,0,.09);color:#fff;text-decoration:none}.alm-btn-wrap .alm-load-more-btn:active{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.alm-btn-wrap .alm-load-more-btn.loading{cursor:default;outline:0;padding-left:44px}.alm-btn-wrap .alm-load-more-btn.done{cursor:default;opacity:.15;background-color:#ed7070;outline:0!important;-webkit-box-shadow:none!important;box-shadow:none!important}.alm-btn-wrap .alm-load-more-btn.done:before,.alm-btn-wrap .alm-load-more-btn:before{background:0 0;width:0}.alm-btn-wrap .alm-load-more-btn.loading:before{background:#fff url(../../img/ajax-loader.gif) no-repeat center center;width:30px;height:31px;margin:6px;border-radius:3px;display:inline-block;z-index:0;content:'';position:absolute;left:0;top:0;overflow:hidden;-webkit-transition:width .5s ease-in-out;transition:width .5s ease-in-out}.ajax-load-more-wrap.white .alm-load-more-btn{background-color:#fff;color:#787878;border:1px solid #e0e0e0;overflow:hidden;-webkit-transition:none;transition:none;outline:0}.ajax-load-more-wrap.white .alm-load-more-btn.loading,.ajax-load-more-wrap.white .alm-load-more-btn:focus,.ajax-load-more-wrap.white .alm-load-more-btn:hover{background-color:#fff;color:#333;border-color:#aaa}.ajax-load-more-wrap.white .alm-load-more-btn.done{background-color:#fff;color:#444;border-color:#ccc}.ajax-load-more-wrap.white .alm-load-more-btn.loading{color:rgba(255,255,255,0)!important;outline:0!important;background-color:transparent;border-color:transparent!important;-webkit-box-shadow:none!important;box-shadow:none!important;padding-left:20px}.ajax-load-more-wrap.white .alm-load-more-btn.loading:before{margin:0;left:0;top:0;width:100%;height:100%;background-color:transparent;background-image:url(../../img/ajax-loader-lg.gif);background-size:25px 25px;background-position:center center}.ajax-load-more-wrap.light-grey .alm-load-more-btn{background-color:#efefef;color:#787878;border:1px solid #e0e0e0;overflow:hidden;-webkit-transition:all 75ms ease;transition:all 75ms ease;outline:0}.ajax-load-more-wrap.light-grey .alm-load-more-btn.done,.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading,.ajax-load-more-wrap.light-grey .alm-load-more-btn:focus,.ajax-load-more-wrap.light-grey .alm-load-more-btn:hover{background-color:#f1f1f1;color:#222;border-color:#aaa}.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading{color:rgba(255,255,255,0)!important;outline:0!important;background-color:transparent;border-color:transparent!important;-webkit-box-shadow:none!important;box-shadow:none!important;padding-left:20px}.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading:before{margin:0;left:0;top:0;width:100%;height:100%;background-color:transparent;background-image:url(../../img/ajax-loader-lg.gif);background-size:25px 25px;background-position:center center}.ajax-load-more-wrap.blue .alm-load-more-btn{background-color:#1b91ca}.ajax-load-more-wrap.blue .alm-load-more-btn.done,.ajax-load-more-wrap.blue .alm-load-more-btn.loading,.ajax-load-more-wrap.blue .alm-load-more-btn:hover{background-color:#1b84b7}.ajax-load-more-wrap.green .alm-load-more-btn{background-color:#80ca7a}.ajax-load-more-wrap.green .alm-load-more-btn.done,.ajax-load-more-wrap.green .alm-load-more-btn.loading,.ajax-load-more-wrap.green .alm-load-more-btn:hover{background-color:#81c17b}.ajax-load-more-wrap.purple .alm-load-more-btn{background-color:#b97eca}.ajax-load-more-wrap.purple .alm-load-more-btn.done,.ajax-load-more-wrap.purple .alm-load-more-btn.loading,.ajax-load-more-wrap.purple .alm-load-more-btn:hover{background-color:#a477b1}.ajax-load-more-wrap.grey .alm-load-more-btn{background-color:#a09e9e}.ajax-load-more-wrap.grey .alm-load-more-btn.done,.ajax-load-more-wrap.grey .alm-load-more-btn.loading,.ajax-load-more-wrap.grey .alm-load-more-btn:hover{background-color:#888}.ajax-load-more-wrap.infinite .alm-load-more-btn{width:100%;background-color:transparent!important;background-position:center center;background-repeat:no-repeat;background-image:url(../../img/spinner.gif);border:none!important;opacity:0;-webkit-transition:opacity .2s ease;transition:opacity .2s ease;-webkit-box-shadow:none!important;box-shadow:none!important;overflow:hidden;text-indent:-9999px;cursor:default!important;outline:0!important}.ajax-load-more-wrap.infinite .alm-load-more-btn:before{display:none!important}.ajax-load-more-wrap.infinite .alm-load-more-btn:active,.ajax-load-more-wrap.infinite .alm-load-more-btn:focus{outline:0}.ajax-load-more-wrap.infinite .alm-load-more-btn.done{opacity:0}.ajax-load-more-wrap.infinite .alm-load-more-btn.loading{opacity:1}.ajax-load-more-wrap.infinite.skype .alm-load-more-btn{background-image:url(../../img/spinner-skype.gif)}.ajax-load-more-wrap.infinite.ring .alm-load-more-btn{background-image:url(../../img/spinner-ring.gif)}.ajax-load-more-wrap.infinite.fading-blocks .alm-load-more-btn{background-image:url(../../img/loader-fading-blocks.gif)}.ajax-load-more-wrap.infinite.fading-circles .alm-load-more-btn{background-image:url(../../img/loader-fading-circles.gif)}.ajax-load-more-wrap.infinite.chasing-arrows .alm-load-more-btn{background-image:url(../../img/spinner-chasing-arrows.gif)}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0;margin:0}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button{margin:0}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button.done{display:none}.alm-listing .alm-reveal{outline:0}.alm-listing .alm-reveal:after{display:table;clear:both;height:0;width:100%;content:''}.alm-listing{margin:0;padding:0}.alm-listing .alm-paging-content>li,.alm-listing .alm-reveal>li,.alm-listing>li{position:relative}.alm-listing .alm-paging-content>li.alm-item,.alm-listing .alm-reveal>li.alm-item,.alm-listing>li.alm-item{background:0 0;margin:0 0 30px;padding:0 0 0 80px;position:relative;list-style:none}@media screen and (min-width:480px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing .alm-reveal>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 100px}}@media screen and (min-width:768px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing .alm-reveal>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 135px}}@media screen and (min-width:1024px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing .alm-reveal>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 160px}}.alm-listing .alm-paging-content>li.alm-item h3,.alm-listing .alm-reveal>li.alm-item h3,.alm-listing>li.alm-item h3{margin:0}.alm-listing .alm-paging-content>li.alm-item p,.alm-listing .alm-reveal>li.alm-item p,.alm-listing>li.alm-item p{margin:10px 0 0}.alm-listing .alm-paging-content>li.alm-item p.entry-meta,.alm-listing .alm-reveal>li.alm-item p.entry-meta,.alm-listing>li.alm-item p.entry-meta{opacity:.75}.alm-listing .alm-paging-content>li.alm-item img,.alm-listing .alm-reveal>li.alm-item img,.alm-listing>li.alm-item img{position:absolute;left:0;top:0;border-radius:2px;max-width:65px}@media screen and (min-width:480px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing .alm-reveal>li.alm-item img,.alm-listing>li.alm-item img{max-width:85px}}@media screen and (min-width:768px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing .alm-reveal>li.alm-item img,.alm-listing>li.alm-item img{max-width:115px}}@media screen and (min-width:1024px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing .alm-reveal>li.alm-item img,.alm-listing>li.alm-item img{max-width:140px}}.alm-listing .alm-paging-content>li.no-img,.alm-listing .alm-reveal>li.no-img,.alm-listing>li.no-img{padding:0}.alm-listing.products li.product{padding-left:inherit}.alm-listing.products li.product img{position:static;border-radius:inherit}.alm-listing.stylefree .alm-paging-content>li,.alm-listing.stylefree .alm-reveal>li,.alm-listing.stylefree>li{padding:inherit;margin:inherit}.alm-listing.stylefree .alm-paging-content>li img,.alm-listing.stylefree .alm-reveal>li img,.alm-listing.stylefree>li img{padding:inherit;margin:inherit;position:static;border-radius:inherit}.alm-listing.rtl .alm-paging-content>li,.alm-listing.rtl .alm-reveal>li{padding:0 170px 0 0;text-align:right}.alm-listing.rtl .alm-paging-content>li img,.alm-listing.rtl .alm-reveal>li img{left:auto;right:0}.alm-listing.rtl.products li.product{padding-right:inherit}.alm-masonry{display:block;overflow:hidden;clear:both}.alm-placeholder{opacity:0;-webkit-transition:opacity .2s ease;transition:opacity .2s ease;display:none}.ajax-load-more-wrap.alm-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:100%}.ajax-load-more-wrap.alm-horizontal .alm-listing,.ajax-load-more-wrap.alm-horizontal .alm-listing .alm-reveal{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.ajax-load-more-wrap.alm-horizontal .alm-listing .alm-reveal>li.alm-item,.ajax-load-more-wrap.alm-horizontal .alm-listing>li.alm-item{padding:0;text-align:center;margin:0 2px;padding:15px;height:auto;background-color:#fff;border-radius:3px}.ajax-load-more-wrap.alm-horizontal .alm-listing .alm-reveal>li.alm-item img,.ajax-load-more-wrap.alm-horizontal .alm-listing>li.alm-item img{position:static;border-radius:100%;max-width:none}.ajax-load-more-wrap.alm-horizontal .alm-listing .alm-reveal:after{display:none}.alm-toc{display:-webkit-box;display:-ms-flexbox;display:flex;width:auto;padding:10px 0}.alm-toc button{background:#f7f7f7;border-radius:4px;-webkit-transition:all .15s ease;transition:all .15s ease;outline:0;border:1px solid #efefef;-webkit-box-shadow:none;box-shadow:none;color:#454545;cursor:pointer;font-size:14px;font-weight:500;padding:7px 10px;line-height:1;margin:0 5px 0 0;height:auto}.alm-toc button:focus,.alm-toc button:hover{border-color:#ccc;color:#222}.alm-toc button:hover{text-decoration:underline}.alm-toc button:focus{-webkit-box-shadow:0 0 0 3px rgba(0,0,0,.05);box-shadow:0 0 0 3px rgba(0,0,0,.05)}
core/dist/js/ajax-load-more.js CHANGED
@@ -111,7 +111,7 @@ function _interopRequireDefault(obj) {
111
  return obj && obj.__esModule ? obj : { default: obj };
112
  }
113
 
114
- /**
115
  * createCacheFile
116
  * Create a single post cache file
117
  *
@@ -140,11 +140,10 @@ function createCacheFile(alm, content) {
140
 
141
  _axios2.default.post(alm_localize.ajaxurl, formData).then(function (response) {
142
  console.log('Cache created for: ' + alm.canonical_url);
143
- //console.log(response);
144
  });
145
  }
146
 
147
- /**
148
  * wooCache
149
  * Create a WooCommerce cache file
150
  *
@@ -153,7 +152,6 @@ function createCacheFile(alm, content) {
153
  * @since 5.3.1
154
  */
155
  function wooCache(alm, content) {
156
-
157
  if (alm.addons.cache !== 'true' || !content || content === '') {
158
  return false;
159
  }
@@ -175,6 +173,204 @@ function wooCache(alm, content) {
175
 
176
  /***/ }),
177
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178
  /***/ "./core/src/js/addons/filters.js":
179
  /*!***************************************!*\
180
  !*** ./core/src/js/addons/filters.js ***!
@@ -560,18 +756,13 @@ exports.default = singlePostHTML;
560
  Object.defineProperty(exports, "__esModule", {
561
  value: true
562
  });
563
- exports.wooGetContent = wooGetContent;
564
  exports.wooInit = wooInit;
565
  exports.woocommerce = woocommerce;
566
- exports.wooGetURL = wooGetURL;
567
-
568
- var _srcsetPolyfill = __webpack_require__(/*! ../helpers/srcsetPolyfill */ "./core/src/js/helpers/srcsetPolyfill.js");
569
-
570
- var _srcsetPolyfill2 = _interopRequireDefault(_srcsetPolyfill);
571
 
572
- var _setFocus = __webpack_require__(/*! ../modules/setFocus */ "./core/src/js/modules/setFocus.js");
573
 
574
- var _setFocus2 = _interopRequireDefault(_setFocus);
575
 
576
  function _interopRequireDefault(obj) {
577
  return obj && obj.__esModule ? obj : { default: obj };
@@ -599,54 +790,13 @@ function _asyncToGenerator(fn) {
599
  };
600
  }
601
 
602
- var imagesLoaded = __webpack_require__(/*! imagesloaded */ "./node_modules/imagesloaded/imagesloaded.js");
603
-
604
- /**
605
- * wooGetContent
606
- * Get the content, title and results text from the Ajax response
607
- *
608
- * @param {object} alm
609
- * @since 5.3.0
610
- */
611
- function wooGetContent(response, alm) {
612
-
613
- var data = {
614
- html: '',
615
- meta: {
616
- postcount: 1,
617
- totalposts: alm.localize.total_posts,
618
- debug: 'WooCommerce Query'
619
- }
620
- };
621
- if (response.status === 200 && response.data) {
622
-
623
- var div = document.createElement("div");
624
- div.innerHTML = response.data;
625
-
626
- // Get Page Title
627
- var title = div.querySelector('title').innerHTML;
628
- data.pageTitle = title;
629
-
630
- // Get Products HTML
631
- var products = div.querySelector(alm.addons.woocommerce_classes.container);
632
- data.html = products ? products.innerHTML : '';
633
-
634
- // Results Text
635
- almWooCommerceResultsText(div, alm);
636
- }
637
-
638
- return data;
639
- }
640
-
641
- /**
642
- * wooInit
643
  * Set up the instance of ALM WooCommerce
644
  *
645
  * @param {object} alm
646
- * @since 5.3.0
647
  */
648
  function wooInit(alm) {
649
-
650
  if (!alm || !alm.addons.woocommerce) {
651
  return false;
652
  }
@@ -667,7 +817,6 @@ function wooInit(alm) {
667
  // Set up URL and class parameters on first item in product listing
668
  var products = document.querySelector(alm.addons.woocommerce_classes.container); // Get `ul.products`
669
  if (products) {
670
-
671
  products.setAttribute('aria-live', 'polite');
672
  products.setAttribute('aria-atomic', 'true');
673
 
@@ -689,15 +838,15 @@ function wooInit(alm) {
689
  }
690
  }
691
 
692
- /**
693
- * woocommerce
694
- * Core ALM WooCommerce Product Loader
695
  *
696
  * @param {HTMLElement} content
697
  * @param {object} alm
698
  * @param {String} pageTitle
699
- * @since 5.3.0
700
  */
 
701
  function woocommerce(content, alm) {
702
  var pageTitle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document.title;
703
 
@@ -706,13 +855,11 @@ function woocommerce(content, alm) {
706
  }
707
 
708
  return new Promise(function (resolve) {
709
-
710
  var container = document.querySelector(alm.addons.woocommerce_classes.container); // Get `ul.products`
711
  var products = content.querySelectorAll(alm.addons.woocommerce_classes.products); // Get all `.products`
712
- var columns = alm.addons.woocommerce_columns; // Count columns
713
-
714
- if (container && products) {
715
 
 
716
  // Convert NodeList to Array
717
  products = Array.prototype.slice.call(products);
718
 
@@ -723,7 +870,7 @@ function woocommerce(content, alm) {
723
  switch (_context.prev = _context.next) {
724
  case 0:
725
  _context.next = 2;
726
- return loadProducts(container, products, columns, alm, pageTitle);
727
 
728
  case 2:
729
  resolve(true);
@@ -742,133 +889,43 @@ function woocommerce(content, alm) {
742
  }
743
 
744
  /**
745
- * loadProducts
746
- * Load all products
747
  *
748
- * @param {HTMLElement} container
749
- * @param {HTMLElement} products
750
- * @param {String} columns
751
- * @param {Object} alm
752
- * @param {String} pageTitle
753
  */
754
- var loadProducts = function loadProducts(container, products, columns, alm, pageTitle) {
755
-
756
- return new Promise(function (resolve) {
757
-
758
- var total = products.length;
759
- var index = 0;
760
- var count = 1;
761
-
762
- function loadProduct() {
763
-
764
- if (count <= total) {
765
-
766
- _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
767
- return regeneratorRuntime.wrap(function _callee2$(_context2) {
768
- while (1) {
769
- switch (_context2.prev = _context2.next) {
770
- case 0:
771
-
772
- //products[index].classList.remove('first');
773
- //products[index].classList.remove('last');
774
- products[index].style.opacity = 0;
775
-
776
- // First item only
777
- if (count == 1) {
778
- products[index].classList.add('alm-woocommerce');
779
-
780
- // Get URL from localized variables
781
- products[index].dataset.url = alm.addons.woocommerce_paged_urls[alm.page];
782
-
783
- // Set page num
784
- products[index].dataset.page = alm.page + 1;
785
-
786
- // Set page title
787
- products[index].dataset.pageTitle = pageTitle;
788
- }
789
-
790
- _context2.next = 4;
791
- return loadProductImage(container, products[index], alm.ua);
792
-
793
- case 4:
794
-
795
- count++;
796
- index++;
797
-
798
- loadProduct();
799
-
800
- case 7:
801
- case 'end':
802
- return _context2.stop();
803
- }
804
- }
805
- }, _callee2, this);
806
- }))().catch(function (e) {
807
-
808
- console.log('There was an error with WooCommerce');
809
- });
810
- } else {
811
-
812
- resolve(true);
813
- products.map(function (product) {
814
- product.style.opacity = 1;
815
- });
816
- if (products[0]) {
817
- (0, _setFocus2.default)(alm, products[0], null, false);
818
- }
819
- }
820
  }
 
 
 
 
821
 
822
- loadProduct();
823
- });
824
- };
825
 
826
- /**
827
- * loadProductImage
828
- * Load the product image with imagesLoaded
829
- *
830
- * @param {HTMLElement} container
831
- * @param {HTMLElement} product
832
- * @param {String} ua
833
- */
834
- var loadProductImage = function loadProductImage(container, product, ua) {
835
- return new Promise(function (resolve) {
836
- imagesLoaded(product, function () {
837
- // Add CSS transition
838
- product.style.transition = 'all 0.3s ease';
839
- // Append to container
840
- container.appendChild(product);
841
- // Run srcset fix
842
- (0, _srcsetPolyfill2.default)(product, ua);
843
- // Send await callback
844
- resolve(true);
845
- });
846
- });
847
- };
848
 
849
- /**
850
- * wooGetURL
851
- * Get the next URL for Load More button
852
- *
853
- * @param {object} alm
854
- * @since 5.3.0
855
- */
856
- function wooGetURL(alm) {
857
- if (!alm || !alm.trigger) {
858
- return false;
859
  }
860
 
861
- // Get Button
862
- var button = alm.trigger.querySelector('button');
863
- var url = button.dataset.url;
864
-
865
- return url ? url : '';
866
  }
867
 
868
- /**
869
- * almWooCommerceResultsText
870
  * Set results text for WooCommerce Add-on.
871
- *
872
  * @param {HTMLElement} target
873
  * @param {Object} alm
874
  * @since 5.3
@@ -891,10 +948,10 @@ function almWooCommerceResultsText() {
891
  }
892
  }
893
 
894
- /**
895
- * almWooCommerceResultsTextInit
896
  * Initiate Results text.
897
- *
898
  * @param {Object} alm
899
  * @since 5.3
900
  */
@@ -988,6 +1045,10 @@ var _setFocus = __webpack_require__(/*! ./modules/setFocus */ "./core/src/js/mod
988
 
989
  var _setFocus2 = _interopRequireDefault(_setFocus);
990
 
 
 
 
 
991
  var _masonry = __webpack_require__(/*! ./modules/masonry */ "./core/src/js/modules/masonry.js");
992
 
993
  var _masonry2 = _interopRequireDefault(_masonry);
@@ -1028,6 +1089,8 @@ var _cache = __webpack_require__(/*! ./addons/cache */ "./core/src/js/addons/cac
1028
 
1029
  var _woocommerce = __webpack_require__(/*! ./addons/woocommerce */ "./core/src/js/addons/woocommerce.js");
1030
 
 
 
1031
  var _filters = __webpack_require__(/*! ./addons/filters */ "./core/src/js/addons/filters.js");
1032
 
1033
  var _seo = __webpack_require__(/*! ./addons/seo */ "./core/src/js/addons/seo.js");
@@ -1190,11 +1253,14 @@ var alm_is_filtering = false;
1190
 
1191
  alm.button_label = alm.listing.dataset.buttonLabel;
1192
  alm.button_loading_label = alm.listing.dataset.buttonLoadingLabel;
 
 
1193
  alm.placeholder = alm.main.querySelector('.alm-placeholder');
1194
 
1195
  alm.scroll_distance = alm.listing.dataset.scrollDistance;
1196
  alm.scroll_distance = alm.scroll_distance ? alm.scroll_distance : 100;
1197
  alm.scroll_container = alm.listing.dataset.scrollContainer;
 
1198
  alm.max_pages = alm.listing.dataset.maxPages ? parseInt(alm.listing.dataset.maxPages) : 0;
1199
  alm.pause_override = alm.listing.dataset.pauseOverride; // true | false
1200
  alm.pause = alm.listing.dataset.pause ? alm.listing.dataset.pause : false; // true | false
@@ -1209,10 +1275,28 @@ var alm_is_filtering = false;
1209
  alm.offset = alm.listing.dataset.offset ? parseInt(alm.listing.dataset.offset) : 0;
1210
  alm.integration.woocommerce = alm.listing.dataset.woocommerce ? alm.listing.dataset.woocommerce : false;
1211
  alm.integration.woocommerce = alm.integration.woocommerce === 'true' ? true : false;
 
 
1212
 
1213
  // Addon Shortcode Params
1214
 
1215
- // Woocommerce add-on
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1216
  alm.addons.woocommerce = alm.localize && alm.localize.woocommerce ? true : false;
1217
  if (alm.addons.woocommerce) {
1218
  alm.addons.woocommerce_columns = alm.localize.woocommerce.columns ? parseInt(alm.localize.woocommerce.columns) : 3; // Woocommerce columns
@@ -1239,7 +1323,7 @@ var alm_is_filtering = false;
1239
  }
1240
 
1241
  // CTA add-on
1242
- alm.addons.cta = alm.listing.dataset.cta;
1243
  if (alm.addons.cta === 'true') {
1244
  alm.addons.cta_position = alm.listing.dataset.ctaPosition;
1245
  alm.addons.cta_repeater = alm.listing.dataset.ctaRepeater;
@@ -1269,7 +1353,7 @@ var alm_is_filtering = false;
1269
  }
1270
 
1271
  // Comments add-on
1272
- alm.addons.comments = alm.listing.dataset.comments;
1273
  if (alm.addons.comments === 'true') {
1274
  alm.addons.comments_post_id = alm.listing.dataset.comments_post_id; // current post id
1275
  alm.addons.comments_per_page = alm.listing.dataset.comments_per_page;
@@ -1430,13 +1514,13 @@ var alm_is_filtering = false;
1430
  /* SEO */
1431
  alm.addons.seo = alm.addons.seo === undefined ? false : alm.addons.seo;
1432
  alm.addons.seo = alm.addons.seo === 'true' ? true : alm.addons.seo;
1433
- alm.is_search = alm.is_search === undefined ? false : alm.is_search;
1434
- alm.search_value = alm.is_search === 'true' ? alm.slug : ''; // Convert to value of slug for appending to seo url
1435
 
1436
- alm.addons.seo_permalink = alm.listing.dataset.seoPermalink;
1437
- alm.addons.seo_pageview = alm.listing.dataset.seoPageview;
1438
- alm.addons.seo_trailing_slash = alm.listing.dataset.seoTrailingSlash === 'false' ? '' : '/';
1439
- alm.addons.seo_leading_slash = alm.listing.dataset.seoLeadingSlash === 'true' ? '/' : '';
 
 
1440
  alm.start_page = alm.listing.dataset.seoStartPage;
1441
 
1442
  if (alm.start_page) {
@@ -1461,27 +1545,28 @@ var alm_is_filtering = false;
1461
  if (alm.addons.nextpage === 'true') {
1462
  alm.addons.nextpage = true;
1463
  alm.posts_per_page = 1;
1464
- } else {
1465
- alm.addons.nextpage = false;
1466
- }
1467
- if (alm.addons.nextpage_urls === undefined) {
1468
- alm.addons.nextpage_urls = 'true';
1469
- }
1470
- if (alm.addons.nextpage_scroll === undefined) {
1471
- alm.addons.nextpage_scroll = 'false:30';
1472
- }
1473
- if (alm.addons.nextpage_pageviews === undefined) {
1474
- alm.addons.nextpage_pageviews = 'true';
1475
- }
1476
- if (alm.addons.nextpage_post_id === undefined) {
 
 
 
 
 
 
 
 
1477
  alm.addons.nextpage = false;
1478
- alm.addons.nextpage_post_id = null;
1479
- }
1480
- if (alm.addons.nextpage_startpage === undefined) {
1481
- alm.addons.nextpage_startpage = 1;
1482
- }
1483
- if (alm.addons.nextpage_startpage > 1) {
1484
- alm.isPaged = true;
1485
  }
1486
  /* End Nextpage */
1487
 
@@ -1491,26 +1576,26 @@ var alm_is_filtering = false;
1491
  alm.addons.single_post_permalink = '';
1492
  alm.addons.single_post_title = '';
1493
  alm.addons.single_post_slug = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
1494
  } else {
1495
  alm.addons.single_post = false;
1496
  }
1497
- if (alm.addons.single_post_id === undefined) {
1498
  alm.addons.single_post_id = '';
1499
  alm.addons.single_post_init_id = '';
1500
  }
1501
- alm.addons.single_post_order = alm.addons.single_post_order === undefined ? 'previous' : alm.addons.single_post_order;
1502
- alm.addons.single_post_taxonomy = alm.addons.single_post_taxonomy === undefined ? '' : alm.addons.single_post_taxonomy;
1503
- alm.addons.single_post_excluded_terms = alm.addons.single_post_excluded_terms === undefined ? '' : alm.addons.single_post_excluded_terms;
1504
- alm.addons.single_post_progress_bar = alm.addons.single_post_progress_bar === undefined ? '' : alm.addons.single_post_progress_bar;
1505
- alm.addons.single_post_target = alm.addons.single_post_target === undefined ? '' : alm.addons.single_post_target;
1506
- alm.addons.single_post_title_template = alm.listing.dataset.singlePostTitleTemplate;
1507
- alm.addons.single_post_siteTitle = alm.listing.dataset.singlePostSiteTitle;
1508
- alm.addons.single_post_siteTagline = alm.listing.dataset.singlePostSiteTagline;
1509
- alm.addons.single_post_pageview = alm.listing.dataset.singlePostPageview;
1510
- alm.addons.single_post_scroll = alm.listing.dataset.singlePostScroll;
1511
- alm.addons.single_post_scroll_speed = alm.listing.dataset.singlePostScrollSpeed;
1512
- alm.addons.single_post_scroll_top = alm.listing.dataset.singlePostScrolltop;
1513
- alm.addons.single_post_controls = alm.listing.dataset.singlePostControls;
1514
  /* End Single Post */
1515
 
1516
  /* Pause */
@@ -1553,6 +1638,9 @@ var alm_is_filtering = false;
1553
  /* Scroll Container */
1554
  alm.scroll_container = alm.scroll_container === undefined ? '' : alm.scroll_container;
1555
 
 
 
 
1556
  /* Transition */
1557
  alm.transition = alm.transition === undefined ? 'fade' : alm.transition;
1558
 
@@ -1564,7 +1652,7 @@ var alm_is_filtering = false;
1564
  if (alm.transition === 'masonry') {
1565
  alm.masonry_init = true;
1566
  if (alm.msnry) {
1567
- alm.msnry.destroy(); // destroy masonry if currently exists
1568
  } else {
1569
  alm.msnry = '';
1570
  }
@@ -1594,6 +1682,7 @@ var alm_is_filtering = false;
1594
  /* Button Labels */
1595
  alm.button_label = alm.button_label === undefined ? 'Older Posts' : alm.button_label;
1596
  alm.button_loading_label = alm.button_loading_label === undefined ? false : alm.button_loading_label;
 
1597
 
1598
  /* Paging */
1599
  if (alm.addons.paging) {
@@ -1858,7 +1947,13 @@ var alm_is_filtering = false;
1858
 
1859
  // WooCommerce Add-on
1860
  if (alm.addons.woocommerce) {
1861
- ajaxURL = (0, _woocommerce.wooGetURL)(alm);
 
 
 
 
 
 
1862
  params = '';
1863
  }
1864
 
@@ -1875,6 +1970,10 @@ var alm_is_filtering = false;
1875
  // WooCommerce
1876
  data = (0, _woocommerce.wooGetContent)(response, alm);
1877
  (0, _cache.createCacheFile)(alm, data.html, 'woocommerce');
 
 
 
 
1878
  } else {
1879
  // Get data from response
1880
  data = response.data;
@@ -2346,6 +2445,55 @@ var alm_is_filtering = false;
2346
  return;
2347
  }
2348
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2349
  // Append `reveal` div to ALM Listing container
2350
  // Do not append when transtion == masonry OR init and !preloaded
2351
  if (alm.transition !== 'masonry' || alm.init && !alm.is_masonry_preloaded) {
@@ -2381,12 +2529,12 @@ var alm_is_filtering = false;
2381
  alm.el = alm.listing;
2382
 
2383
  // Wrap almMasonry in anonymous async/await function
2384
- _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
2385
- return regeneratorRuntime.wrap(function _callee3$(_context3) {
2386
  while (1) {
2387
- switch (_context3.prev = _context3.next) {
2388
  case 0:
2389
- _context3.next = 2;
2390
  return (0, _masonry2.default)(alm, alm.init, alm_is_filtering);
2391
 
2392
  case 2:
@@ -2400,10 +2548,10 @@ var alm_is_filtering = false;
2400
 
2401
  case 6:
2402
  case 'end':
2403
- return _context3.stop();
2404
  }
2405
  }
2406
- }, _callee3, this);
2407
  }))().catch(function (e) {
2408
  console.log('There was an error with ALM Masonry');
2409
  });
@@ -2839,7 +2987,7 @@ var alm_is_filtering = false;
2839
  };
2840
 
2841
  /**
2842
- * triggerDone
2843
  *
2844
  * Fires the almDone() function (if available).
2845
  * @since 2.11.3
@@ -2847,15 +2995,25 @@ var alm_is_filtering = false;
2847
  alm.AjaxLoadMore.triggerDone = function () {
2848
  alm.loading = false;
2849
  alm.finished = true;
 
 
2850
  if (!alm.addons.paging) {
 
 
 
 
 
 
 
2851
  alm.button.classList.add('done');
2852
  alm.button.disabled = true;
2853
  }
 
 
2854
  if (typeof almDone === 'function') {
2855
  // Delay done until animations complete
2856
  setTimeout(function () {
2857
  window.almDone(alm);
2858
- (0, _placeholder.hidePlaceholder)(alm);
2859
  }, alm.speed + 10);
2860
  }
2861
  };
@@ -2933,6 +3091,7 @@ var alm_is_filtering = false;
2933
  alm.page++;
2934
  alm.AjaxLoadMore.loadPosts();
2935
  }
 
2936
  };
2937
 
2938
  /**
@@ -2947,13 +3106,11 @@ var alm_is_filtering = false;
2947
  }
2948
 
2949
  /**
2950
- * Window Resize
2951
- * Add resize function for Paging, Scroll Distance Percentage & Tabs.
2952
- *
2953
  * @since 2.1.2
2954
  * @updated 5.2
2955
  */
2956
- if (alm.addons.paging || alm.addons.tabs || alm.scroll_distance_perc) {
2957
  var resize = void 0;
2958
  alm.window.onresize = function () {
2959
  clearTimeout(resize);
@@ -2973,14 +3130,15 @@ var alm_is_filtering = false;
2973
  if (alm.scroll_distance_perc) {
2974
  alm.scroll_distance = (0, _getScrollPercentage2.default)(alm);
2975
  }
 
 
 
2976
  }, alm.speed);
2977
  };
2978
  }
2979
 
2980
  /**
2981
- * isVisible
2982
  * Check to see if element is visible before loading posts
2983
- *
2984
  * @since 2.1.2
2985
  */
2986
  alm.AjaxLoadMore.isVisible = function () {
@@ -2990,9 +3148,7 @@ var alm_is_filtering = false;
2990
  };
2991
 
2992
  /**
2993
- * triggerWindowResize
2994
  * Trigger a window resize browser function
2995
- *
2996
  * @since 5.3.1
2997
  */
2998
  alm.AjaxLoadMore.triggerWindowResize = function () {
@@ -3008,9 +3164,7 @@ var alm_is_filtering = false;
3008
  };
3009
 
3010
  /**
3011
- * scroll
3012
  * Load posts as user scrolls the page
3013
- *
3014
  * @since 1.0
3015
  * @updated 4.2.0
3016
  */
@@ -3028,10 +3182,20 @@ var alm_is_filtering = false;
3028
 
3029
  // Scroll Container
3030
  if (alm.window !== window) {
3031
- var scrollInstance = alm.window.querySelector('.ajax-load-more-wrap'); // ALM inside the container
3032
- var scrollHeight = scrollInstance.offsetHeight; // ALM height
3033
- var scrollPosition = Math.round(alm.window.scrollTop + alm.window.offsetHeight - alm.scroll_distance); // How far user has scrolled
3034
- scrollTrigger = scrollHeight <= scrollPosition ? true : false;
 
 
 
 
 
 
 
 
 
 
3035
  }
3036
 
3037
  // If Pause && Pause Override
@@ -3049,12 +3213,16 @@ var alm_is_filtering = false;
3049
  }, 25);
3050
  };
3051
 
3052
- // Add scroll eventlisteners, only when needed
 
 
 
3053
  alm.AjaxLoadMore.scrollSetup = function () {
3054
  if (alm.scroll && !alm.addons.paging) {
3055
  if (alm.scroll_container !== '') {
3056
  // Scroll Container
3057
  alm.window = document.querySelector(alm.scroll_container) ? document.querySelector(alm.scroll_container) : alm.window;
 
3058
  }
3059
  alm.window.addEventListener('scroll', alm.AjaxLoadMore.scroll); // Scroll
3060
  alm.window.addEventListener('touchstart', alm.AjaxLoadMore.scroll); // Touch Devices
@@ -3079,9 +3247,17 @@ var alm_is_filtering = false;
3079
  };
3080
 
3081
  /**
3082
- * destroyed
 
 
 
 
 
 
 
 
 
3083
  * Destroy Ajax Load More functionality
3084
- *
3085
  * @since 3.4.2
3086
  */
3087
  alm.AjaxLoadMore.destroyed = function () {
@@ -3096,9 +3272,7 @@ var alm_is_filtering = false;
3096
  };
3097
 
3098
  /**
3099
- * transitionEnd
3100
  * Set variables after loading transiton completes
3101
- *
3102
  * @since 3.5
3103
  */
3104
  alm.AjaxLoadMore.transitionEnd = function () {
@@ -3112,14 +3286,12 @@ var alm_is_filtering = false;
3112
  alm.loading = false; // Delay to prevent loading to fast
3113
  }, alm.speed * 3);
3114
  }
3115
- }, 100);
3116
  (0, _placeholder.hidePlaceholder)(alm);
3117
  };
3118
 
3119
  /**
3120
- * setLocalizedVar
3121
  * Set induvidual localized variable
3122
- *
3123
  * @param {string} name
3124
  * @param {string} value
3125
  * @since 4.1
@@ -3248,13 +3420,19 @@ var alm_is_filtering = false;
3248
  // Initiate WooCommerce
3249
  (0, _woocommerce.wooInit)(alm);
3250
 
3251
- // Set Results Text
3252
- if (alm.resultsText) {}
3253
- //resultsText.almInitResultsText(alm, 'woocommerce');
 
 
3254
 
 
 
 
 
3255
 
3256
- // Trigger Done if productsLoaded is less than woocommerce_total_posts
3257
- if (alm.addons.woocommerce_paged >= parseInt(alm.addons.woocommerce_pages)) {
3258
  alm.AjaxLoadMore.triggerDone();
3259
  }
3260
  }
@@ -3263,12 +3441,12 @@ var alm_is_filtering = false;
3263
  alm.window.addEventListener('load', function () {
3264
  if (alm.is_masonry_preloaded) {
3265
  // Wrap almMasonry in anonymous async/await function
3266
- _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
3267
- return regeneratorRuntime.wrap(function _callee4$(_context4) {
3268
  while (1) {
3269
- switch (_context4.prev = _context4.next) {
3270
  case 0:
3271
- _context4.next = 2;
3272
  return (0, _masonry2.default)(alm, true, false);
3273
 
3274
  case 2:
@@ -3276,10 +3454,10 @@ var alm_is_filtering = false;
3276
 
3277
  case 3:
3278
  case 'end':
3279
- return _context4.stop();
3280
  }
3281
  }
3282
- }, _callee4, this);
3283
  }))().catch(function (e) {
3284
  console.log('There was an error with ALM Masonry');
3285
  });
@@ -5000,6 +5178,40 @@ var almSetFilters = function almSetFilters() {
5000
 
5001
  /***/ }),
5002
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5003
  /***/ "./core/src/js/modules/getScrollPercentage.js":
5004
  /*!****************************************************!*\
5005
  !*** ./core/src/js/modules/getScrollPercentage.js ***!
@@ -5125,6 +5337,187 @@ exports.default = insertScript;
5125
 
5126
  /***/ }),
5127
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5128
  /***/ "./core/src/js/modules/masonry.js":
5129
  /*!****************************************!*\
5130
  !*** ./core/src/js/modules/masonry.js ***!
@@ -5606,7 +5999,7 @@ Object.defineProperty(exports, "__esModule", {
5606
  /**
5607
  * setFocus
5608
  * Set user focus to improve accessibility after load events
5609
- *
5610
  * @param {Object} alm
5611
  * @param {HTMLElement} preloaded
5612
  * @param {Number} total
@@ -5624,7 +6017,7 @@ var setFocus = function setFocus(alm) {
5624
  }
5625
 
5626
  // WooCommerce Add-on
5627
- if (alm.addons.woocommerce) {
5628
  moveFocus(false, false, element, false, alm.isSafari);
5629
  return;
5630
  }
@@ -5642,7 +6035,7 @@ var setFocus = function setFocus(alm) {
5642
  moveFocus(alm.init, alm.addons.preloaded, element, is_filtering, alm.isSafari);
5643
  }
5644
  } else if (!alm.transition_container) {
5645
- // Table Layout, no transition container
5646
  moveFocus(alm.init, alm.addons.preloaded, element[0], is_filtering, alm.isSafari);
5647
  }
5648
  };
@@ -5651,7 +6044,7 @@ exports.default = setFocus;
5651
  /**
5652
  * moveFocus
5653
  * Move user focus to alm-reveal div
5654
- *
5655
  * @param {Boolean} init
5656
  * @param {String} preloaded
5657
  * @param {HTMLElement} element
@@ -5676,9 +6069,9 @@ var moveFocus = function moveFocus() {
5676
  // Check if element is an array.
5677
  // If `transition_container="false"`, `element` will be an array.
5678
  /*
5679
- let is_array = Array.isArray(element);
5680
- element = (is_array) ? element[0] : element;
5681
- */
5682
 
5683
  // Set tabIndex and style on element
5684
  element.setAttribute('tabIndex', '-1');
@@ -5691,7 +6084,7 @@ var moveFocus = function moveFocus() {
5691
  // Scroll Container
5692
  var scrollContainer = parent.dataset.scrollContainer;
5693
 
5694
- // If scroll container, move it, not the window.
5695
  if (scrollContainer) {
5696
  var container = document.querySelector(scrollContainer);
5697
  if (container) {
@@ -5699,7 +6092,7 @@ var moveFocus = function moveFocus() {
5699
  //let top = container.scrollTop;
5700
  //element.focus();
5701
  //container.scrollLeft = left;
5702
- //container.scrollTop = top;
5703
  setTimeout(function () {
5704
  element.focus({ preventScroll: true });
5705
  }, 50);
@@ -5708,7 +6101,6 @@ var moveFocus = function moveFocus() {
5708
 
5709
  // Move window
5710
  else {
5711
-
5712
  setTimeout(function () {
5713
  element.focus({ preventScroll: true });
5714
  }, 50);
@@ -16834,7 +17226,13 @@ return EvEmitter;
16834
  if (args && args.preventScroll) {
16835
  var evScrollableElements = calcScrollableElements(this);
16836
  this.nativeFocus();
16837
- restoreScrollPosition(evScrollableElements);
 
 
 
 
 
 
16838
  }
16839
  else {
16840
  this.nativeFocus();
111
  return obj && obj.__esModule ? obj : { default: obj };
112
  }
113
 
114
+ /**
115
  * createCacheFile
116
  * Create a single post cache file
117
  *
140
 
141
  _axios2.default.post(alm_localize.ajaxurl, formData).then(function (response) {
142
  console.log('Cache created for: ' + alm.canonical_url);
 
143
  });
144
  }
145
 
146
+ /**
147
  * wooCache
148
  * Create a WooCommerce cache file
149
  *
152
  * @since 5.3.1
153
  */
154
  function wooCache(alm, content) {
 
155
  if (alm.addons.cache !== 'true' || !content || content === '') {
156
  return false;
157
  }
173
 
174
  /***/ }),
175
 
176
+ /***/ "./core/src/js/addons/elementor.js":
177
+ /*!*****************************************!*\
178
+ !*** ./core/src/js/addons/elementor.js ***!
179
+ \*****************************************/
180
+ /*! no static exports found */
181
+ /***/ (function(module, exports, __webpack_require__) {
182
+
183
+ "use strict";
184
+
185
+
186
+ Object.defineProperty(exports, "__esModule", {
187
+ value: true
188
+ });
189
+ exports.elementorInit = elementorInit;
190
+ exports.elementor = elementor;
191
+ exports.elementorGetContent = elementorGetContent;
192
+ exports.elementorGetPages = elementorGetPages;
193
+
194
+ var _loadItems = __webpack_require__(/*! ../modules/loadItems */ "./core/src/js/modules/loadItems.js");
195
+
196
+ var _loadItems2 = _interopRequireDefault(_loadItems);
197
+
198
+ function _interopRequireDefault(obj) {
199
+ return obj && obj.__esModule ? obj : { default: obj };
200
+ }
201
+
202
+ function _asyncToGenerator(fn) {
203
+ return function () {
204
+ var gen = fn.apply(this, arguments);return new Promise(function (resolve, reject) {
205
+ function step(key, arg) {
206
+ try {
207
+ var info = gen[key](arg);var value = info.value;
208
+ } catch (error) {
209
+ reject(error);return;
210
+ }if (info.done) {
211
+ resolve(value);
212
+ } else {
213
+ return Promise.resolve(value).then(function (value) {
214
+ step("next", value);
215
+ }, function (err) {
216
+ step("throw", err);
217
+ });
218
+ }
219
+ }return step("next");
220
+ });
221
+ };
222
+ }
223
+
224
+ /**
225
+ * Set up the instance
226
+ *
227
+ * @param {object} alm
228
+ * @since 5.3.0
229
+ */
230
+
231
+ function elementorInit(alm) {
232
+ if (!alm.addons.elementor || !alm.addons.elementor_type || !alm.addons.elementor_type === 'posts') {
233
+ return false;
234
+ }
235
+ var target = alm.addons.elementor_target_element;
236
+ if (target) {
237
+ // Set button data attributes
238
+ alm.button.dataset.page = alm.addons.elementor_paged;
239
+
240
+ // BSet button URL
241
+ var nextPage = alm.addons.elementor_pages[alm.addons.elementor_paged - 1];
242
+ alm.button.dataset.url = nextPage ? nextPage : '';
243
+
244
+ // Set a11y attributes
245
+ target.setAttribute('aria-live', 'polite');
246
+ target.setAttribute('aria-atomic', 'true');
247
+
248
+ alm.listing.removeAttribute('aria-live');
249
+ alm.listing.removeAttribute('aria-atomic');
250
+
251
+ // Set data atts on 1st grid item
252
+ var item = target.querySelector('.' + alm.addons.elementor_item_class); // Get first `.product` item
253
+ if (item) {
254
+ item.classList.add('alm-elementor');
255
+ item.dataset.url = window.location;
256
+ item.dataset.page = alm.addons.elementor_paged;
257
+ item.dataset.pageTitle = document.title;
258
+ }
259
+
260
+ if (alm.addons.elementor_paged > 1) {
261
+ // maybe soon
262
+ //almElementorResultsTextInit(alm);
263
+ }
264
+ }
265
+ }
266
+
267
+ /**
268
+ * elementor
269
+ * Core ALM Elementor loader
270
+ *
271
+ * @param {HTMLElement} content
272
+ * @param {object} alm
273
+ * @param {String} pageTitle
274
+ * @since 5.3.0
275
+ */
276
+
277
+ function elementor(content, alm) {
278
+ var pageTitle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document.title;
279
+
280
+ if (!content || !alm) {
281
+ return false;
282
+ }
283
+
284
+ return new Promise(function (resolve) {
285
+ var container = alm.addons.elementor_target_element.querySelector('.' + alm.addons.elementor_container_class); // Get post container
286
+ var items = content.querySelectorAll('.' + alm.addons.elementor_item_class); // Get all items in container
287
+ var url = alm.addons.elementor_pages[alm.page - 1];
288
+
289
+ if (container && items && url) {
290
+ // Convert NodeList to Array
291
+ items = Array.prototype.slice.call(items);
292
+
293
+ // Load the items
294
+ _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
295
+ return regeneratorRuntime.wrap(function _callee$(_context) {
296
+ while (1) {
297
+ switch (_context.prev = _context.next) {
298
+ case 0:
299
+ _context.next = 2;
300
+ return (0, _loadItems2.default)(container, items, alm, pageTitle, url, 'alm-elementor');
301
+
302
+ case 2:
303
+ resolve(true);
304
+
305
+ case 3:
306
+ case 'end':
307
+ return _context.stop();
308
+ }
309
+ }
310
+ }, _callee, this);
311
+ }))().catch(function (e) {
312
+ console.log(e, 'There was an error with Elementor');
313
+ });
314
+ }
315
+ });
316
+ }
317
+
318
+ /**
319
+ * elementorGetContent
320
+ * Get the content, title and results text from the Ajax response
321
+ *
322
+ * @param {object} alm
323
+ * @since 5.4.0
324
+ */
325
+
326
+ function elementorGetContent(response, alm) {
327
+ var data = {
328
+ html: '',
329
+ meta: {
330
+ postcount: 1,
331
+ totalposts: alm.localize.total_posts,
332
+ debug: 'Elementor Query'
333
+ }
334
+ };
335
+ if (response.status === 200 && response.data) {
336
+ var div = document.createElement('div');
337
+ div.innerHTML = response.data;
338
+
339
+ // Get Page Title
340
+ var title = div.querySelector('title').innerHTML;
341
+ data.pageTitle = title;
342
+
343
+ // Get Elementor Items HTML
344
+ var items = div.querySelector(alm.addons.elementor_target + ' .' + alm.addons.elementor_container_class);
345
+ data.html = items ? items.innerHTML : '';
346
+
347
+ // Results Text
348
+ //almElementorResultsText(div, alm);
349
+ }
350
+
351
+ return data;
352
+ }
353
+
354
+ /**
355
+ * Return the paging URLs from `.elementor-pagination`
356
+ *
357
+ * @param {*} target
358
+ * @return {NodeList} pages
359
+ */
360
+ function elementorGetPages(pagination_class, pagination_item, target) {
361
+ if (!target) {
362
+ return false;
363
+ }
364
+ var pagination = target.querySelector('.' + pagination_class);
365
+ if (!pagination) {
366
+ return 1;
367
+ }
368
+ var pages = pagination.querySelectorAll(pagination_item);
369
+ return pages;
370
+ }
371
+
372
+ /***/ }),
373
+
374
  /***/ "./core/src/js/addons/filters.js":
375
  /*!***************************************!*\
376
  !*** ./core/src/js/addons/filters.js ***!
756
  Object.defineProperty(exports, "__esModule", {
757
  value: true
758
  });
 
759
  exports.wooInit = wooInit;
760
  exports.woocommerce = woocommerce;
761
+ exports.wooGetContent = wooGetContent;
 
 
 
 
762
 
763
+ var _loadItems = __webpack_require__(/*! ../modules/loadItems */ "./core/src/js/modules/loadItems.js");
764
 
765
+ var _loadItems2 = _interopRequireDefault(_loadItems);
766
 
767
  function _interopRequireDefault(obj) {
768
  return obj && obj.__esModule ? obj : { default: obj };
790
  };
791
  }
792
 
793
+ /**
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
794
  * Set up the instance of ALM WooCommerce
795
  *
796
  * @param {object} alm
797
+ * @since 5.3.0
798
  */
799
  function wooInit(alm) {
 
800
  if (!alm || !alm.addons.woocommerce) {
801
  return false;
802
  }
817
  // Set up URL and class parameters on first item in product listing
818
  var products = document.querySelector(alm.addons.woocommerce_classes.container); // Get `ul.products`
819
  if (products) {
 
820
  products.setAttribute('aria-live', 'polite');
821
  products.setAttribute('aria-atomic', 'true');
822
 
838
  }
839
  }
840
 
841
+ /**
842
+ * Core ALM WooCommerce product loader
 
843
  *
844
  * @param {HTMLElement} content
845
  * @param {object} alm
846
  * @param {String} pageTitle
847
+ * @since 5.3.0
848
  */
849
+
850
  function woocommerce(content, alm) {
851
  var pageTitle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document.title;
852
 
855
  }
856
 
857
  return new Promise(function (resolve) {
 
858
  var container = document.querySelector(alm.addons.woocommerce_classes.container); // Get `ul.products`
859
  var products = content.querySelectorAll(alm.addons.woocommerce_classes.products); // Get all `.products`
860
+ var url = alm.addons.woocommerce_paged_urls[alm.page];
 
 
861
 
862
+ if (container && products && url) {
863
  // Convert NodeList to Array
864
  products = Array.prototype.slice.call(products);
865
 
870
  switch (_context.prev = _context.next) {
871
  case 0:
872
  _context.next = 2;
873
+ return (0, _loadItems2.default)(container, products, alm, pageTitle, url, 'alm-woocommerce');
874
 
875
  case 2:
876
  resolve(true);
889
  }
890
 
891
  /**
892
+ * Get the content, title and results text from the Ajax response
 
893
  *
894
+ * @param {object} alm
895
+ * @since 5.3.0
 
 
 
896
  */
897
+ function wooGetContent(response, alm) {
898
+ var data = {
899
+ html: '',
900
+ meta: {
901
+ postcount: 1,
902
+ totalposts: alm.localize.total_posts,
903
+ debug: 'WooCommerce Query'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
904
  }
905
+ };
906
+ if (response.status === 200 && response.data) {
907
+ var div = document.createElement('div');
908
+ div.innerHTML = response.data;
909
 
910
+ // Get Page Title
911
+ var title = div.querySelector('title').innerHTML;
912
+ data.pageTitle = title;
913
 
914
+ // Get Products HTML
915
+ var products = div.querySelector(alm.addons.woocommerce_classes.container);
916
+ data.html = products ? products.innerHTML : '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
917
 
918
+ // Results Text
919
+ almWooCommerceResultsText(div, alm);
 
 
 
 
 
 
 
 
920
  }
921
 
922
+ return data;
 
 
 
 
923
  }
924
 
925
+ /**
926
+ * almWooCommerceResultsText
927
  * Set results text for WooCommerce Add-on.
928
+ *
929
  * @param {HTMLElement} target
930
  * @param {Object} alm
931
  * @since 5.3
948
  }
949
  }
950
 
951
+ /**
952
+ * almWooCommerceResultsTextInit
953
  * Initiate Results text.
954
+ *
955
  * @param {Object} alm
956
  * @since 5.3
957
  */
1045
 
1046
  var _setFocus2 = _interopRequireDefault(_setFocus);
1047
 
1048
+ var _getButtonURL = __webpack_require__(/*! ./modules/getButtonURL */ "./core/src/js/modules/getButtonURL.js");
1049
+
1050
+ var _getButtonURL2 = _interopRequireDefault(_getButtonURL);
1051
+
1052
  var _masonry = __webpack_require__(/*! ./modules/masonry */ "./core/src/js/modules/masonry.js");
1053
 
1054
  var _masonry2 = _interopRequireDefault(_masonry);
1089
 
1090
  var _woocommerce = __webpack_require__(/*! ./addons/woocommerce */ "./core/src/js/addons/woocommerce.js");
1091
 
1092
+ var _elementor = __webpack_require__(/*! ./addons/elementor */ "./core/src/js/addons/elementor.js");
1093
+
1094
  var _filters = __webpack_require__(/*! ./addons/filters */ "./core/src/js/addons/filters.js");
1095
 
1096
  var _seo = __webpack_require__(/*! ./addons/seo */ "./core/src/js/addons/seo.js");
1253
 
1254
  alm.button_label = alm.listing.dataset.buttonLabel;
1255
  alm.button_loading_label = alm.listing.dataset.buttonLoadingLabel;
1256
+ alm.button_done_label = alm.listing.dataset.buttonDoneLabel;
1257
+
1258
  alm.placeholder = alm.main.querySelector('.alm-placeholder');
1259
 
1260
  alm.scroll_distance = alm.listing.dataset.scrollDistance;
1261
  alm.scroll_distance = alm.scroll_distance ? alm.scroll_distance : 100;
1262
  alm.scroll_container = alm.listing.dataset.scrollContainer;
1263
+ alm.scroll_direction = alm.listing.dataset.scrollDirection;
1264
  alm.max_pages = alm.listing.dataset.maxPages ? parseInt(alm.listing.dataset.maxPages) : 0;
1265
  alm.pause_override = alm.listing.dataset.pauseOverride; // true | false
1266
  alm.pause = alm.listing.dataset.pause ? alm.listing.dataset.pause : false; // true | false
1275
  alm.offset = alm.listing.dataset.offset ? parseInt(alm.listing.dataset.offset) : 0;
1276
  alm.integration.woocommerce = alm.listing.dataset.woocommerce ? alm.listing.dataset.woocommerce : false;
1277
  alm.integration.woocommerce = alm.integration.woocommerce === 'true' ? true : false;
1278
+ alm.is_search = alm.is_search === undefined ? false : alm.is_search;
1279
+ alm.search_value = alm.is_search === 'true' ? alm.slug : ''; // Convert to value of slug for appending to seo url
1280
 
1281
  // Addon Shortcode Params
1282
 
1283
+ // Elementor add-on
1284
+ alm.addons.elementor = alm.localize && alm.localize.elementor ? true : false;
1285
+ if (alm.addons.elementor) {
1286
+ alm.addons.elementor = {};
1287
+ alm.addons.elementor_type = 'posts';
1288
+ alm.addons.elementor_target = alm.localize.elementor.target;
1289
+ alm.addons.elementor_target_element = alm.addons.elementor_target ? document.querySelector('.elementor-widget-wrap ' + alm.addons.elementor_target) : '';
1290
+ alm.addons.elementor_paged = alm.localize.elementor.paged ? parseInt(alm.localize.elementor.paged) : 1;
1291
+ alm.addons.elementor_container_class = alm.localize.elementor.container_class;
1292
+ alm.addons.elementor_item_class = alm.localize.elementor.item_class;
1293
+ alm.addons.elementor_pagination_class = alm.localize.elementor.pagination_class;
1294
+ alm.addons.elementor_pagination_item = alm.localize.elementor.pagination_item;
1295
+ alm.addons.elementor_pages = (0, _elementor.elementorGetPages)(alm.addons.elementor_pagination_class, alm.addons.elementor_pagination_item, alm.addons.elementor_target_element);
1296
+ alm.page = parseInt(alm.page) + alm.addons.elementor_paged;
1297
+ }
1298
+
1299
+ // WooCommerce add-on
1300
  alm.addons.woocommerce = alm.localize && alm.localize.woocommerce ? true : false;
1301
  if (alm.addons.woocommerce) {
1302
  alm.addons.woocommerce_columns = alm.localize.woocommerce.columns ? parseInt(alm.localize.woocommerce.columns) : 3; // Woocommerce columns
1323
  }
1324
 
1325
  // CTA add-on
1326
+ alm.addons.cta = alm.listing.dataset.cta ? alm.listing.dataset.cta : false;
1327
  if (alm.addons.cta === 'true') {
1328
  alm.addons.cta_position = alm.listing.dataset.ctaPosition;
1329
  alm.addons.cta_repeater = alm.listing.dataset.ctaRepeater;
1353
  }
1354
 
1355
  // Comments add-on
1356
+ alm.addons.comments = alm.listing.dataset.comments ? alm.listing.dataset.comments : false;
1357
  if (alm.addons.comments === 'true') {
1358
  alm.addons.comments_post_id = alm.listing.dataset.comments_post_id; // current post id
1359
  alm.addons.comments_per_page = alm.listing.dataset.comments_per_page;
1514
  /* SEO */
1515
  alm.addons.seo = alm.addons.seo === undefined ? false : alm.addons.seo;
1516
  alm.addons.seo = alm.addons.seo === 'true' ? true : alm.addons.seo;
 
 
1517
 
1518
+ if (alm.addons.seo) {
1519
+ alm.addons.seo_permalink = alm.listing.dataset.seoPermalink;
1520
+ alm.addons.seo_pageview = alm.listing.dataset.seoPageview;
1521
+ alm.addons.seo_trailing_slash = alm.listing.dataset.seoTrailingSlash === 'false' ? '' : '/';
1522
+ alm.addons.seo_leading_slash = alm.listing.dataset.seoLeadingSlash === 'true' ? '/' : '';
1523
+ }
1524
  alm.start_page = alm.listing.dataset.seoStartPage;
1525
 
1526
  if (alm.start_page) {
1545
  if (alm.addons.nextpage === 'true') {
1546
  alm.addons.nextpage = true;
1547
  alm.posts_per_page = 1;
1548
+
1549
+ if (alm.addons.nextpage_urls === undefined) {
1550
+ alm.addons.nextpage_urls = 'true';
1551
+ }
1552
+ if (alm.addons.nextpage_scroll === undefined) {
1553
+ alm.addons.nextpage_scroll = 'false:30';
1554
+ }
1555
+ if (alm.addons.nextpage_pageviews === undefined) {
1556
+ alm.addons.nextpage_pageviews = 'true';
1557
+ }
1558
+ if (alm.addons.nextpage_post_id === undefined) {
1559
+ alm.addons.nextpage = false;
1560
+ alm.addons.nextpage_post_id = null;
1561
+ }
1562
+ if (alm.addons.nextpage_startpage === undefined) {
1563
+ alm.addons.nextpage_startpage = 1;
1564
+ }
1565
+ if (alm.addons.nextpage_startpage > 1) {
1566
+ alm.isPaged = true;
1567
+ }
1568
+ } else {
1569
  alm.addons.nextpage = false;
 
 
 
 
 
 
 
1570
  }
1571
  /* End Nextpage */
1572
 
1576
  alm.addons.single_post_permalink = '';
1577
  alm.addons.single_post_title = '';
1578
  alm.addons.single_post_slug = '';
1579
+ alm.addons.single_post_order = alm.addons.single_post_order === undefined ? 'previous' : alm.addons.single_post_order;
1580
+ alm.addons.single_post_taxonomy = alm.addons.single_post_taxonomy === undefined ? '' : alm.addons.single_post_taxonomy;
1581
+ alm.addons.single_post_excluded_terms = alm.addons.single_post_excluded_terms === undefined ? '' : alm.addons.single_post_excluded_terms;
1582
+ alm.addons.single_post_progress_bar = alm.addons.single_post_progress_bar === undefined ? '' : alm.addons.single_post_progress_bar;
1583
+ alm.addons.single_post_target = alm.addons.single_post_target === undefined ? '' : alm.addons.single_post_target;
1584
+ alm.addons.single_post_title_template = alm.listing.dataset.singlePostTitleTemplate;
1585
+ alm.addons.single_post_siteTitle = alm.listing.dataset.singlePostSiteTitle;
1586
+ alm.addons.single_post_siteTagline = alm.listing.dataset.singlePostSiteTagline;
1587
+ alm.addons.single_post_pageview = alm.listing.dataset.singlePostPageview;
1588
+ alm.addons.single_post_scroll = alm.listing.dataset.singlePostScroll;
1589
+ alm.addons.single_post_scroll_speed = alm.listing.dataset.singlePostScrollSpeed;
1590
+ alm.addons.single_post_scroll_top = alm.listing.dataset.singlePostScrolltop;
1591
+ alm.addons.single_post_controls = alm.listing.dataset.singlePostControls;
1592
  } else {
1593
  alm.addons.single_post = false;
1594
  }
1595
+ if (alm.addons.single_post && alm.addons.single_post_id === undefined) {
1596
  alm.addons.single_post_id = '';
1597
  alm.addons.single_post_init_id = '';
1598
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
1599
  /* End Single Post */
1600
 
1601
  /* Pause */
1638
  /* Scroll Container */
1639
  alm.scroll_container = alm.scroll_container === undefined ? '' : alm.scroll_container;
1640
 
1641
+ /* Scroll Direction */
1642
+ alm.scroll_direction = alm.scroll_direction === undefined ? 'vertical' : alm.scroll_direction;
1643
+
1644
  /* Transition */
1645
  alm.transition = alm.transition === undefined ? 'fade' : alm.transition;
1646
 
1652
  if (alm.transition === 'masonry') {
1653
  alm.masonry_init = true;
1654
  if (alm.msnry) {
1655
+ alm.msnry.destroy(); // destroy masonry if it currently exists
1656
  } else {
1657
  alm.msnry = '';
1658
  }
1682
  /* Button Labels */
1683
  alm.button_label = alm.button_label === undefined ? 'Older Posts' : alm.button_label;
1684
  alm.button_loading_label = alm.button_loading_label === undefined ? false : alm.button_loading_label;
1685
+ alm.button_done_label = alm.button_done_label === undefined ? false : alm.button_done_label;
1686
 
1687
  /* Paging */
1688
  if (alm.addons.paging) {
1947
 
1948
  // WooCommerce Add-on
1949
  if (alm.addons.woocommerce) {
1950
+ ajaxURL = (0, _getButtonURL2.default)(alm);
1951
+ params = '';
1952
+ }
1953
+
1954
+ // Elementor Add-on
1955
+ if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') {
1956
+ ajaxURL = (0, _getButtonURL2.default)(alm);
1957
  params = '';
1958
  }
1959
 
1970
  // WooCommerce
1971
  data = (0, _woocommerce.wooGetContent)(response, alm);
1972
  (0, _cache.createCacheFile)(alm, data.html, 'woocommerce');
1973
+ } else if (alm.addons.elementor) {
1974
+ // Elementor
1975
+ data = (0, _elementor.elementorGetContent)(response, alm);
1976
+ (0, _cache.createCacheFile)(alm, data.html, 'elementor');
1977
  } else {
1978
  // Get data from response
1979
  data = response.data;
2445
  return;
2446
  }
2447
 
2448
+ // Elementor Add-on
2449
+ if (alm.addons.elementor) {
2450
+ _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
2451
+ var nextPageNum, nextPage;
2452
+ return regeneratorRuntime.wrap(function _callee3$(_context3) {
2453
+ while (1) {
2454
+ switch (_context3.prev = _context3.next) {
2455
+ case 0:
2456
+ _context3.next = 2;
2457
+ return (0, _elementor.elementor)(reveal, alm, data.pageTitle);
2458
+
2459
+ case 2:
2460
+ nextPageNum = alm.page + 1;
2461
+
2462
+ // Set button data attributes
2463
+
2464
+ alm.button.dataset.page = nextPageNum; // Page
2465
+ nextPage = alm.addons.elementor_pages[nextPageNum - 1]; // URL
2466
+
2467
+ alm.button.dataset.url = nextPage ? nextPage : '';
2468
+
2469
+ alm.AjaxLoadMore.transitionEnd();
2470
+
2471
+ // almComplete
2472
+ if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
2473
+ window.almComplete(alm);
2474
+ }
2475
+
2476
+ // ALM Done
2477
+ if (nextPageNum > parseInt(alm.addons.elementor_pages.length)) {
2478
+ alm.AjaxLoadMore.triggerDone();
2479
+ }
2480
+
2481
+ case 9:
2482
+ case 'end':
2483
+ return _context3.stop();
2484
+ }
2485
+ }
2486
+ }, _callee3, this);
2487
+ }))().catch(function (e) {
2488
+ console.log(e);
2489
+ console.log('There was an error loading Elementor Post Widget items');
2490
+ });
2491
+
2492
+ alm.init = false;
2493
+
2494
+ return;
2495
+ }
2496
+
2497
  // Append `reveal` div to ALM Listing container
2498
  // Do not append when transtion == masonry OR init and !preloaded
2499
  if (alm.transition !== 'masonry' || alm.init && !alm.is_masonry_preloaded) {
2529
  alm.el = alm.listing;
2530
 
2531
  // Wrap almMasonry in anonymous async/await function
2532
+ _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
2533
+ return regeneratorRuntime.wrap(function _callee4$(_context4) {
2534
  while (1) {
2535
+ switch (_context4.prev = _context4.next) {
2536
  case 0:
2537
+ _context4.next = 2;
2538
  return (0, _masonry2.default)(alm, alm.init, alm_is_filtering);
2539
 
2540
  case 2:
2548
 
2549
  case 6:
2550
  case 'end':
2551
+ return _context4.stop();
2552
  }
2553
  }
2554
+ }, _callee4, this);
2555
  }))().catch(function (e) {
2556
  console.log('There was an error with ALM Masonry');
2557
  });
2987
  };
2988
 
2989
  /**
2990
+ * ALM Done
2991
  *
2992
  * Fires the almDone() function (if available).
2993
  * @since 2.11.3
2995
  alm.AjaxLoadMore.triggerDone = function () {
2996
  alm.loading = false;
2997
  alm.finished = true;
2998
+ (0, _placeholder.hidePlaceholder)(alm);
2999
+
3000
  if (!alm.addons.paging) {
3001
+ // Update button text
3002
+ if (alm.button_done_label !== false) {
3003
+ setTimeout(function () {
3004
+ alm.button.innerHTML = alm.button_done_label;
3005
+ }, 75);
3006
+ }
3007
+
3008
  alm.button.classList.add('done');
3009
  alm.button.disabled = true;
3010
  }
3011
+
3012
+ // almDone
3013
  if (typeof almDone === 'function') {
3014
  // Delay done until animations complete
3015
  setTimeout(function () {
3016
  window.almDone(alm);
 
3017
  }, alm.speed + 10);
3018
  }
3019
  };
3091
  alm.page++;
3092
  alm.AjaxLoadMore.loadPosts();
3093
  }
3094
+ button.blur(); // Remove button focus
3095
  };
3096
 
3097
  /**
3106
  }
3107
 
3108
  /**
3109
+ * Window resize functions for Paging, Scroll Distance Percentage, Tabs etc.
 
 
3110
  * @since 2.1.2
3111
  * @updated 5.2
3112
  */
3113
+ if (alm.addons.paging || alm.addons.tabs || alm.scroll_distance_perc || alm.scroll_direction === 'horizontal') {
3114
  var resize = void 0;
3115
  alm.window.onresize = function () {
3116
  clearTimeout(resize);
3130
  if (alm.scroll_distance_perc) {
3131
  alm.scroll_distance = (0, _getScrollPercentage2.default)(alm);
3132
  }
3133
+ if (alm.scroll_direction === 'horizontal') {
3134
+ alm.AjaxLoadMore.horizontal();
3135
+ }
3136
  }, alm.speed);
3137
  };
3138
  }
3139
 
3140
  /**
 
3141
  * Check to see if element is visible before loading posts
 
3142
  * @since 2.1.2
3143
  */
3144
  alm.AjaxLoadMore.isVisible = function () {
3148
  };
3149
 
3150
  /**
 
3151
  * Trigger a window resize browser function
 
3152
  * @since 5.3.1
3153
  */
3154
  alm.AjaxLoadMore.triggerWindowResize = function () {
3164
  };
3165
 
3166
  /**
 
3167
  * Load posts as user scrolls the page
 
3168
  * @since 1.0
3169
  * @updated 4.2.0
3170
  */
3182
 
3183
  // Scroll Container
3184
  if (alm.window !== window) {
3185
+ var scrollHeight = alm.main.offsetHeight; // ALM height
3186
+ var scrollWidth = alm.main.offsetWidth; // ALM Width
3187
+ var scrollPosition = '';
3188
+
3189
+ if (alm.scroll_direction === 'horizontal') {
3190
+ // Left/Right
3191
+ alm.AjaxLoadMore.horizontal();
3192
+ scrollPosition = Math.round(alm.window.scrollLeft + alm.window.offsetWidth - alm.scroll_distance); // How far user has scrolled
3193
+ scrollTrigger = scrollWidth <= scrollPosition ? true : false;
3194
+ } else {
3195
+ // Up/Down
3196
+ scrollPosition = Math.round(alm.window.scrollTop + alm.window.offsetHeight - alm.scroll_distance); // How far user has scrolled
3197
+ scrollTrigger = scrollHeight <= scrollPosition ? true : false;
3198
+ }
3199
  }
3200
 
3201
  // If Pause && Pause Override
3213
  }, 25);
3214
  };
3215
 
3216
+ /**
3217
+ * Add scroll eventlisteners, only when needed
3218
+ * @since 5.2.0
3219
+ */
3220
  alm.AjaxLoadMore.scrollSetup = function () {
3221
  if (alm.scroll && !alm.addons.paging) {
3222
  if (alm.scroll_container !== '') {
3223
  // Scroll Container
3224
  alm.window = document.querySelector(alm.scroll_container) ? document.querySelector(alm.scroll_container) : alm.window;
3225
+ alm.AjaxLoadMore.horizontal();
3226
  }
3227
  alm.window.addEventListener('scroll', alm.AjaxLoadMore.scroll); // Scroll
3228
  alm.window.addEventListener('touchstart', alm.AjaxLoadMore.scroll); // Touch Devices
3247
  };
3248
 
3249
  /**
3250
+ * Configure horizontal scroll settings
3251
+ * @since 5.3.6
3252
+ */
3253
+ alm.AjaxLoadMore.horizontal = function () {
3254
+ if (alm.scroll_direction === 'horizontal') {
3255
+ alm.main.style.width = alm.listing.offsetWidth + 'px';
3256
+ }
3257
+ };
3258
+
3259
+ /**
3260
  * Destroy Ajax Load More functionality
 
3261
  * @since 3.4.2
3262
  */
3263
  alm.AjaxLoadMore.destroyed = function () {
3272
  };
3273
 
3274
  /**
 
3275
  * Set variables after loading transiton completes
 
3276
  * @since 3.5
3277
  */
3278
  alm.AjaxLoadMore.transitionEnd = function () {
3286
  alm.loading = false; // Delay to prevent loading to fast
3287
  }, alm.speed * 3);
3288
  }
3289
+ }, 50);
3290
  (0, _placeholder.hidePlaceholder)(alm);
3291
  };
3292
 
3293
  /**
 
3294
  * Set induvidual localized variable
 
3295
  * @param {string} name
3296
  * @param {string} value
3297
  * @since 4.1
3420
  // Initiate WooCommerce
3421
  (0, _woocommerce.wooInit)(alm);
3422
 
3423
+ // Trigger `Done` if `paged is less than `pages`
3424
+ if (alm.addons.woocommerce_paged >= parseInt(alm.addons.woocommerce_pages)) {
3425
+ alm.AjaxLoadMore.triggerDone();
3426
+ }
3427
+ }
3428
 
3429
+ // Elementor Add-on
3430
+ if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') {
3431
+ // Initiate Elementor
3432
+ (0, _elementor.elementorInit)(alm);
3433
 
3434
+ // Trigger `Done` if `paged is less than `pages`
3435
+ if (alm.addons.elementor_paged > parseInt(alm.addons.elementor_pages.length)) {
3436
  alm.AjaxLoadMore.triggerDone();
3437
  }
3438
  }
3441
  alm.window.addEventListener('load', function () {
3442
  if (alm.is_masonry_preloaded) {
3443
  // Wrap almMasonry in anonymous async/await function
3444
+ _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
3445
+ return regeneratorRuntime.wrap(function _callee5$(_context5) {
3446
  while (1) {
3447
+ switch (_context5.prev = _context5.next) {
3448
  case 0:
3449
+ _context5.next = 2;
3450
  return (0, _masonry2.default)(alm, true, false);
3451
 
3452
  case 2:
3454
 
3455
  case 3:
3456
  case 'end':
3457
+ return _context5.stop();
3458
  }
3459
  }
3460
+ }, _callee5, this);
3461
  }))().catch(function (e) {
3462
  console.log('There was an error with ALM Masonry');
3463
  });
5178
 
5179
  /***/ }),
5180
 
5181
+ /***/ "./core/src/js/modules/getButtonURL.js":
5182
+ /*!*********************************************!*\
5183
+ !*** ./core/src/js/modules/getButtonURL.js ***!
5184
+ \*********************************************/
5185
+ /*! no static exports found */
5186
+ /***/ (function(module, exports, __webpack_require__) {
5187
+
5188
+ "use strict";
5189
+
5190
+
5191
+ Object.defineProperty(exports, "__esModule", {
5192
+ value: true
5193
+ });
5194
+ /**
5195
+ * wooGetURL
5196
+ * Get the next URL for Load More button
5197
+ *
5198
+ * @param {object} alm
5199
+ * @since 5.4.0
5200
+ */
5201
+
5202
+ var getButtonURL = function getButtonURL(alm) {
5203
+ if (!alm || !alm.trigger) {
5204
+ return false;
5205
+ }
5206
+ var button = alm.trigger.querySelector('button');
5207
+ var url = button ? button.dataset.url : '';
5208
+
5209
+ return url ? url : '';
5210
+ };
5211
+ exports.default = getButtonURL;
5212
+
5213
+ /***/ }),
5214
+
5215
  /***/ "./core/src/js/modules/getScrollPercentage.js":
5216
  /*!****************************************************!*\
5217
  !*** ./core/src/js/modules/getScrollPercentage.js ***!
5337
 
5338
  /***/ }),
5339
 
5340
+ /***/ "./core/src/js/modules/loadImage.js":
5341
+ /*!******************************************!*\
5342
+ !*** ./core/src/js/modules/loadImage.js ***!
5343
+ \******************************************/
5344
+ /*! no static exports found */
5345
+ /***/ (function(module, exports, __webpack_require__) {
5346
+
5347
+ "use strict";
5348
+
5349
+
5350
+ Object.defineProperty(exports, "__esModule", {
5351
+ value: true
5352
+ });
5353
+
5354
+ var _srcsetPolyfill = __webpack_require__(/*! ../helpers/srcsetPolyfill */ "./core/src/js/helpers/srcsetPolyfill.js");
5355
+
5356
+ var _srcsetPolyfill2 = _interopRequireDefault(_srcsetPolyfill);
5357
+
5358
+ function _interopRequireDefault(obj) {
5359
+ return obj && obj.__esModule ? obj : { default: obj };
5360
+ }
5361
+
5362
+ var imagesLoaded = __webpack_require__(/*! imagesloaded */ "./node_modules/imagesloaded/imagesloaded.js");
5363
+
5364
+ /**
5365
+ * Load the image with imagesLoaded
5366
+ *
5367
+ * @param {HTMLElement} container
5368
+ * @param {HTMLElement} item
5369
+ * @param {String} ua
5370
+ */
5371
+ var loadImage = function loadImage(container, item, ua) {
5372
+ return new Promise(function (resolve) {
5373
+ imagesLoaded(item, function () {
5374
+ // Add CSS transition
5375
+ item.style.transition = 'all 0.4s ease';
5376
+ // Append to container
5377
+ container.appendChild(item);
5378
+ // Run srcset fix
5379
+ (0, _srcsetPolyfill2.default)(item, ua);
5380
+ // Send await callback
5381
+ resolve(true);
5382
+ });
5383
+ });
5384
+ };
5385
+ exports.default = loadImage;
5386
+
5387
+ /***/ }),
5388
+
5389
+ /***/ "./core/src/js/modules/loadItems.js":
5390
+ /*!******************************************!*\
5391
+ !*** ./core/src/js/modules/loadItems.js ***!
5392
+ \******************************************/
5393
+ /*! no static exports found */
5394
+ /***/ (function(module, exports, __webpack_require__) {
5395
+
5396
+ "use strict";
5397
+
5398
+
5399
+ Object.defineProperty(exports, "__esModule", {
5400
+ value: true
5401
+ });
5402
+
5403
+ var _loadImage = __webpack_require__(/*! ./loadImage */ "./core/src/js/modules/loadImage.js");
5404
+
5405
+ var _loadImage2 = _interopRequireDefault(_loadImage);
5406
+
5407
+ var _setFocus = __webpack_require__(/*! ./setFocus */ "./core/src/js/modules/setFocus.js");
5408
+
5409
+ var _setFocus2 = _interopRequireDefault(_setFocus);
5410
+
5411
+ function _interopRequireDefault(obj) {
5412
+ return obj && obj.__esModule ? obj : { default: obj };
5413
+ }
5414
+
5415
+ function _asyncToGenerator(fn) {
5416
+ return function () {
5417
+ var gen = fn.apply(this, arguments);return new Promise(function (resolve, reject) {
5418
+ function step(key, arg) {
5419
+ try {
5420
+ var info = gen[key](arg);var value = info.value;
5421
+ } catch (error) {
5422
+ reject(error);return;
5423
+ }if (info.done) {
5424
+ resolve(value);
5425
+ } else {
5426
+ return Promise.resolve(value).then(function (value) {
5427
+ step("next", value);
5428
+ }, function (err) {
5429
+ step("throw", err);
5430
+ });
5431
+ }
5432
+ }return step("next");
5433
+ });
5434
+ };
5435
+ }
5436
+
5437
+ /**
5438
+ * Load all items
5439
+ *
5440
+ * @param {HTMLElement} container
5441
+ * @param {HTMLElement} items
5442
+ * @param {Object} alm
5443
+ * @param {String} pageTitle
5444
+ * @param {String} url
5445
+ * @param {String} className
5446
+ */
5447
+ var loadItems = function loadItems(container, items, alm, pageTitle) {
5448
+ var url = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : window.location;
5449
+ var className = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';
5450
+
5451
+ return new Promise(function (resolve) {
5452
+ var total = items.length;
5453
+ var index = 0;
5454
+ var count = 1;
5455
+
5456
+ function loadItem() {
5457
+ if (count <= total) {
5458
+ _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
5459
+ return regeneratorRuntime.wrap(function _callee$(_context) {
5460
+ while (1) {
5461
+ switch (_context.prev = _context.next) {
5462
+ case 0:
5463
+ items[index].style.opacity = 0;
5464
+
5465
+ // First item only
5466
+ if (count == 1) {
5467
+ items[index].classList.add(className);
5468
+
5469
+ // Set URL
5470
+ items[index].dataset.url = url;
5471
+
5472
+ // Set page num
5473
+ items[index].dataset.page = alm.page + 1;
5474
+
5475
+ // Set page title
5476
+ items[index].dataset.pageTitle = pageTitle;
5477
+ }
5478
+
5479
+ _context.next = 4;
5480
+ return (0, _loadImage2.default)(container, items[index], alm.ua);
5481
+
5482
+ case 4:
5483
+
5484
+ count++;
5485
+ index++;
5486
+
5487
+ loadItem();
5488
+
5489
+ case 7:
5490
+ case 'end':
5491
+ return _context.stop();
5492
+ }
5493
+ }
5494
+ }, _callee, this);
5495
+ }))().catch(function (e) {
5496
+ console.log('There was an error loading the items');
5497
+ });
5498
+ } else {
5499
+ // Delay for effect only
5500
+ setTimeout(function () {
5501
+ items.map(function (item) {
5502
+ item.style.opacity = 1;
5503
+ });
5504
+ if (items[0]) {
5505
+ (0, _setFocus2.default)(alm, items[0], null, false);
5506
+ }
5507
+ }, 50);
5508
+
5509
+ resolve(true);
5510
+ }
5511
+ }
5512
+
5513
+ loadItem();
5514
+ });
5515
+ };
5516
+
5517
+ exports.default = loadItems;
5518
+
5519
+ /***/ }),
5520
+
5521
  /***/ "./core/src/js/modules/masonry.js":
5522
  /*!****************************************!*\
5523
  !*** ./core/src/js/modules/masonry.js ***!
5999
  /**
6000
  * setFocus
6001
  * Set user focus to improve accessibility after load events
6002
+ *
6003
  * @param {Object} alm
6004
  * @param {HTMLElement} preloaded
6005
  * @param {Number} total
6017
  }
6018
 
6019
  // WooCommerce Add-on
6020
+ if (alm.addons.woocommerce || alm.addons.elementor) {
6021
  moveFocus(false, false, element, false, alm.isSafari);
6022
  return;
6023
  }
6035
  moveFocus(alm.init, alm.addons.preloaded, element, is_filtering, alm.isSafari);
6036
  }
6037
  } else if (!alm.transition_container) {
6038
+ // Table Layout, no transition container
6039
  moveFocus(alm.init, alm.addons.preloaded, element[0], is_filtering, alm.isSafari);
6040
  }
6041
  };
6044
  /**
6045
  * moveFocus
6046
  * Move user focus to alm-reveal div
6047
+ *
6048
  * @param {Boolean} init
6049
  * @param {String} preloaded
6050
  * @param {HTMLElement} element
6069
  // Check if element is an array.
6070
  // If `transition_container="false"`, `element` will be an array.
6071
  /*
6072
+ let is_array = Array.isArray(element);
6073
+ element = (is_array) ? element[0] : element;
6074
+ */
6075
 
6076
  // Set tabIndex and style on element
6077
  element.setAttribute('tabIndex', '-1');
6084
  // Scroll Container
6085
  var scrollContainer = parent.dataset.scrollContainer;
6086
 
6087
+ // If scroll container, move it, not the window.
6088
  if (scrollContainer) {
6089
  var container = document.querySelector(scrollContainer);
6090
  if (container) {
6092
  //let top = container.scrollTop;
6093
  //element.focus();
6094
  //container.scrollLeft = left;
6095
+ //container.scrollTop = top;
6096
  setTimeout(function () {
6097
  element.focus({ preventScroll: true });
6098
  }, 50);
6101
 
6102
  // Move window
6103
  else {
 
6104
  setTimeout(function () {
6105
  element.focus({ preventScroll: true });
6106
  }, 50);
17226
  if (args && args.preventScroll) {
17227
  var evScrollableElements = calcScrollableElements(this);
17228
  this.nativeFocus();
17229
+ if (typeof setTimeout === 'function') {
17230
+ setTimeout(function () {
17231
+ restoreScrollPosition(evScrollableElements);
17232
+ }, 0);
17233
+ } else {
17234
+ restoreScrollPosition(evScrollableElements);
17235
+ }
17236
  }
17237
  else {
17238
  this.nativeFocus();
core/dist/js/ajax-load-more.min.js CHANGED
@@ -1,13 +1,13 @@
1
- var ajaxloadmore=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=95)}([function(t,e,n){var r=n(1),o=n(7),a=n(15),i=n(11),s=n(18),c=function(t,e,n){var l,u,d,f,p=t&c.F,g=t&c.G,h=t&c.S,m=t&c.P,v=t&c.B,y=g?r:h?r[e]||(r[e]={}):(r[e]||{}).prototype,_=g?o:o[e]||(o[e]={}),b=_.prototype||(_.prototype={});for(l in g&&(n=e),n)d=((u=!p&&y&&void 0!==y[l])?y:n)[l],f=v&&u?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,y&&i(y,l,d,t&c.U),_[l]!=d&&a(_,l,f),m&&b[l]!=d&&(b[l]=d)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(51)("wks"),o=n(30),a=n(1).Symbol,i="function"==typeof a;(t.exports=function(t){return r[t]||(r[t]=i&&a[t]||(i?a:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(20),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(2)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(3),o=n(107),a=n(27),i=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=a(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(25);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(1),o=n(15),a=n(14),i=n(30)("src"),s=n(181),c=(""+s).split("toString");n(7).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(a(n,"name")||o(n,"name",e)),t[e]!==n&&(l&&(a(n,i)||o(n,i,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[i]||s.call(this)}))},function(t,e,n){var r=n(0),o=n(2),a=n(25),i=/"/g,s=function(t,e,n,r){var o=String(a(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(i,"&quot;")+'"'),s+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e,n){"use strict";var r=n(97),o=n(140),a=Object.prototype.toString;function i(t){return"[object Array]"===a.call(t)}function s(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===a.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===a.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===a.call(t)},isFile:function(t){return"[object File]"===a.call(t)},isBlob:function(t){return"[object Blob]"===a.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return e},extend:function(t,e,n){return l(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(9),o=n(29);t.exports=n(8)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(45),o=n(25);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(46),o=n(29),a=n(16),i=n(27),s=n(14),c=n(107),l=Object.getOwnPropertyDescriptor;e.f=n(8)?l:function(t,e){if(t=a(t),e=i(e,!0),c)try{return l(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(0),o=n(7),a=n(2);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*a((function(){n(1)})),"Object",i)}},function(t,e,n){var r=n(18),o=n(45),a=n(10),i=n(6),s=n(123);t.exports=function(t,e){var n=1==t,c=2==t,l=3==t,u=4==t,d=6==t,f=5==t||d,p=e||s;return function(e,s,g){for(var h,m,v=a(e),y=o(v),_=r(s,g,3),b=i(y.length),x=0,w=n?p(e,b):c?p(e,0):void 0;b>x;x++)if((f||x in y)&&(m=_(h=y[x],x,v),t))if(n)w[x]=m;else if(m)switch(t){case 3:return!0;case 5:return h;case 6:return x;case 2:w.push(h)}else if(u)return!1;return d?-1:l||u?u:w}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(8)){var r=n(31),o=n(1),a=n(2),i=n(0),s=n(62),c=n(93),l=n(18),u=n(43),d=n(29),f=n(15),p=n(44),g=n(20),h=n(6),m=n(134),v=n(33),y=n(27),_=n(14),b=n(47),x=n(4),w=n(10),S=n(85),A=n(34),j=n(36),E=n(35).f,P=n(87),O=n(30),L=n(5),M=n(23),T=n(52),I=n(48),F=n(89),C=n(41),N=n(55),k=n(42),R=n(88),D=n(125),z=n(9),q=n(21),B=z.f,U=q.f,W=o.RangeError,H=o.TypeError,V=o.Uint8Array,G=Array.prototype,Y=c.ArrayBuffer,X=c.DataView,Q=M(0),$=M(2),J=M(3),K=M(4),Z=M(5),tt=M(6),et=T(!0),nt=T(!1),rt=F.values,ot=F.keys,at=F.entries,it=G.lastIndexOf,st=G.reduce,ct=G.reduceRight,lt=G.join,ut=G.sort,dt=G.slice,ft=G.toString,pt=G.toLocaleString,gt=L("iterator"),ht=L("toStringTag"),mt=O("typed_constructor"),vt=O("def_constructor"),yt=s.CONSTR,_t=s.TYPED,bt=s.VIEW,xt=M(1,(function(t,e){return Et(I(t,t[vt]),e)})),wt=a((function(){return 1===new V(new Uint16Array([1]).buffer)[0]})),St=!!V&&!!V.prototype.set&&a((function(){new V(1).set({})})),At=function(t,e){var n=g(t);if(n<0||n%e)throw W("Wrong offset!");return n},jt=function(t){if(x(t)&&_t in t)return t;throw H(t+" is not a typed array!")},Et=function(t,e){if(!x(t)||!(mt in t))throw H("It is not a typed array constructor!");return new t(e)},Pt=function(t,e){return Ot(I(t,t[vt]),e)},Ot=function(t,e){for(var n=0,r=e.length,o=Et(t,r);r>n;)o[n]=e[n++];return o},Lt=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Mt=function(t){var e,n,r,o,a,i,s=w(t),c=arguments.length,u=c>1?arguments[1]:void 0,d=void 0!==u,f=P(s);if(null!=f&&!S(f)){for(i=f.call(s),r=[],e=0;!(a=i.next()).done;e++)r.push(a.value);s=r}for(d&&c>2&&(u=l(u,arguments[2],2)),e=0,n=h(s.length),o=Et(this,n);n>e;e++)o[e]=d?u(s[e],e):s[e];return o},Tt=function(){for(var t=0,e=arguments.length,n=Et(this,e);e>t;)n[t]=arguments[t++];return n},It=!!V&&a((function(){pt.call(new V(1))})),Ft=function(){return pt.apply(It?dt.call(jt(this)):jt(this),arguments)},Ct={copyWithin:function(t,e){return D.call(jt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return K(jt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(jt(this),arguments)},filter:function(t){return Pt(this,$(jt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(jt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(jt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(jt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(jt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(jt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return lt.apply(jt(this),arguments)},lastIndexOf:function(t){return it.apply(jt(this),arguments)},map:function(t){return xt(jt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(jt(this),arguments)},reduceRight:function(t){return ct.apply(jt(this),arguments)},reverse:function(){for(var t,e=jt(this).length,n=Math.floor(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this},some:function(t){return J(jt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ut.call(jt(this),t)},subarray:function(t,e){var n=jt(this),r=n.length,o=v(t,r);return new(I(n,n[vt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,h((void 0===e?r:v(e,r))-o))}},Nt=function(t,e){return Pt(this,dt.call(jt(this),t,e))},kt=function(t){jt(this);var e=At(arguments[1],1),n=this.length,r=w(t),o=h(r.length),a=0;if(o+e>n)throw W("Wrong length!");for(;a<o;)this[e+a]=r[a++]},Rt={entries:function(){return at.call(jt(this))},keys:function(){return ot.call(jt(this))},values:function(){return rt.call(jt(this))}},Dt=function(t,e){return x(t)&&t[_t]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},zt=function(t,e){return Dt(t,e=y(e,!0))?d(2,t[e]):U(t,e)},qt=function(t,e,n){return!(Dt(t,e=y(e,!0))&&x(n)&&_(n,"value"))||_(n,"get")||_(n,"set")||n.configurable||_(n,"writable")&&!n.writable||_(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};yt||(q.f=zt,z.f=qt),i(i.S+i.F*!yt,"Object",{getOwnPropertyDescriptor:zt,defineProperty:qt}),a((function(){ft.call({})}))&&(ft=pt=function(){return lt.call(this)});var Bt=p({},Ct);p(Bt,Rt),f(Bt,gt,Rt.values),p(Bt,{slice:Nt,set:kt,constructor:function(){},toString:ft,toLocaleString:Ft}),Lt(Bt,"buffer","b"),Lt(Bt,"byteOffset","o"),Lt(Bt,"byteLength","l"),Lt(Bt,"length","e"),B(Bt,ht,{get:function(){return this[_t]}}),t.exports=function(t,e,n,c){var l=t+((c=!!c)?"Clamped":"")+"Array",d="get"+t,p="set"+t,g=o[l],v=g||{},y=g&&j(g),_=!g||!s.ABV,w={},S=g&&g.prototype,P=function(t,n){B(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[d](n*e+r.o,wt)}(this,n)},set:function(t){return function(t,n,r){var o=t._d;c&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[p](n*e+o.o,r,wt)}(this,n,t)},enumerable:!0})};_?(g=n((function(t,n,r,o){u(t,g,l,"_d");var a,i,s,c,d=0,p=0;if(x(n)){if(!(n instanceof Y||"ArrayBuffer"==(c=b(n))||"SharedArrayBuffer"==c))return _t in n?Ot(g,n):Mt.call(g,n);a=n,p=At(r,e);var v=n.byteLength;if(void 0===o){if(v%e)throw W("Wrong length!");if((i=v-p)<0)throw W("Wrong length!")}else if((i=h(o)*e)+p>v)throw W("Wrong length!");s=i/e}else s=m(n),a=new Y(i=s*e);for(f(t,"_d",{b:a,o:p,l:i,e:s,v:new X(a)});d<s;)P(t,d++)})),S=g.prototype=A(Bt),f(S,"constructor",g)):a((function(){g(1)}))&&a((function(){new g(-1)}))&&N((function(t){new g,new g(null),new g(1.5),new g(t)}),!0)||(g=n((function(t,n,r,o){var a;return u(t,g,l),x(n)?n instanceof Y||"ArrayBuffer"==(a=b(n))||"SharedArrayBuffer"==a?void 0!==o?new v(n,At(r,e),o):void 0!==r?new v(n,At(r,e)):new v(n):_t in n?Ot(g,n):Mt.call(g,n):new v(m(n))})),Q(y!==Function.prototype?E(v).concat(E(y)):E(v),(function(t){t in g||f(g,t,v[t])})),g.prototype=S,r||(S.constructor=g));var O=S[gt],L=!!O&&("values"==O.name||null==O.name),M=Rt.values;f(g,mt,!0),f(S,_t,l),f(S,bt,!0),f(S,vt,g),(c?new g(1)[ht]==l:ht in S)||B(S,ht,{get:function(){return l}}),w[l]=g,i(i.G+i.W+i.F*(g!=v),w),i(i.S,l,{BYTES_PER_ELEMENT:e}),i(i.S+i.F*a((function(){v.of.call(g,1)})),l,{from:Mt,of:Tt}),"BYTES_PER_ELEMENT"in S||f(S,"BYTES_PER_ELEMENT",e),i(i.P,l,Ct),k(l),i(i.P+i.F*St,l,{set:kt}),i(i.P+i.F*!L,l,Rt),r||S.toString==ft||(S.toString=ft),i(i.P+i.F*a((function(){new g(1).slice()})),l,{slice:Nt}),i(i.P+i.F*(a((function(){return[1,2].toLocaleString()!=new g([1,2]).toLocaleString()}))||!a((function(){S.toLocaleString.call([1,2])}))),l,{toLocaleString:Ft}),C[l]=L?O:M,r||L||f(S,gt,M)}}else t.exports=function(){}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(30)("meta"),o=n(4),a=n(14),i=n(9).f,s=0,c=Object.isExtensible||function(){return!0},l=!n(2)((function(){return c(Object.preventExtensions({}))})),u=function(t){i(t,r,{value:{i:"O"+ ++s,w:{}}})},d=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,r)){if(!c(t))return"F";if(!e)return"E";u(t)}return t[r].i},getWeak:function(t,e){if(!a(t,r)){if(!c(t))return!0;if(!e)return!1;u(t)}return t[r].w},onFreeze:function(t){return l&&d.NEED&&c(t)&&!a(t,r)&&u(t),t}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var r=n(109),o=n(72);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(20),o=Math.max,a=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):a(t,e)}},function(t,e,n){var r=n(3),o=n(110),a=n(72),i=n(71)("IE_PROTO"),s=function(){},c=function(){var t,e=n(69)("iframe"),r=a.length;for(e.style.display="none",n(73).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[a[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[i]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(109),o=n(72).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(14),o=n(10),a=n(71)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},function(t,e,n){var r=n(5)("unscopables"),o=Array.prototype;null==o[r]&&n(15)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){var r=n(9).f,o=n(14),a=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(25),a=n(2),i=n(75),s="["+i+"]",c=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),u=function(t,e,n){var o={},s=a((function(){return!!i[t]()||"​…"!="​…"[t]()})),c=o[t]=s?e(d):i[t];n&&(o[n]=c),r(r.P+r.F*s,"String",o)},d=u.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(l,"")),t};t.exports=u},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(1),o=n(9),a=n(8),i=n(5)("species");t.exports=function(t){var e=r[t];a&&e&&!e[i]&&o.f(e,i,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(11);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(24),o=n(5)("toStringTag"),a="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:a?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},function(t,e,n){var r=n(3),o=n(19),a=n(5)("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||null==(n=r(i)[a])?e:o(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!alm_localize.a11y_focus)return!1;t.addons.woocommerce?r(!1,!1,e,!1,t.isSafari):t.transition_container&&n>0?t.addons.paging?r(t.init,t.addons.preloaded,t.listing,o,t.isSafari):t.addons.single_post||t.addons.nextpage?r(!1,t.addons.preloaded,e,o,t.isSafari):r(t.init,t.addons.preloaded,e,o,t.isSafari):t.transition_container||r(t.init,t.addons.preloaded,e[0],o,t.isSafari)};var r=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"false",n=arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!r&&(t||!n)&&"true"!==e)return!1;n.setAttribute("tabIndex","-1"),n.style.outline="none";var o=n.classList.contains("alm-listing")?n:n.parentNode,a=o.dataset.scrollContainer;if(a){var i=document.querySelector(a);i&&setTimeout((function(){n.focus({preventScroll:!0})}),50)}else setTimeout((function(){n.focus({preventScroll:!0})}),50)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){if(0==e)t.style.opacity=1,t.style.height="auto";else{e/=10;var n=0,r=setInterval((function(){n>.9&&(t.style.opacity=1,clearInterval(r)),t.style.opacity=n,n+=.1}),e);t.style.height="auto"}}},function(t,e,n){var r=n(7),o=n(1),a=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(31)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(16),o=n(6),a=n(33);t.exports=function(t){return function(e,n,i){var s,c=r(e),l=o(c.length),u=a(i,l);if(t&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var a=[7][r]();a.return=function(){o=!0},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var a=[7],i=a[r]();i.next=function(){return{done:n=!0}},a[r]=function(){return i},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(3);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(47),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(127);var r=n(11),o=n(15),a=n(2),i=n(25),s=n(5),c=n(90),l=s("species"),u=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=s(t),p=!a((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),g=p?!a((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[f](""),!e})):void 0;if(!p||!g||"replace"===t&&!u||"split"===t&&!d){var h=/./[f],m=n(i,f,""[t],(function(t,e,n,r,o){return e.exec===c?p&&!o?{done:!0,value:h.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),v=m[0],y=m[1];r(String.prototype,t,v),o(RegExp.prototype,f,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},function(t,e,n){var r=n(18),o=n(122),a=n(85),i=n(3),s=n(6),c=n(87),l={},u={};(e=t.exports=function(t,e,n,d,f){var p,g,h,m,v=f?function(){return t}:c(t),y=r(n,d,e?2:1),_=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(a(v)){for(p=s(t.length);p>_;_++)if((m=e?y(i(g=t[_])[0],g[1]):y(t[_]))===l||m===u)return m}else for(h=v.call(t);!(g=h.next()).done;)if((m=o(h,y,g.value,e))===l||m===u)return m}).BREAK=l,e.RETURN=u},function(t,e,n){var r=n(1).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(1),o=n(0),a=n(11),i=n(44),s=n(28),c=n(59),l=n(43),u=n(4),d=n(2),f=n(55),p=n(39),g=n(76);t.exports=function(t,e,n,h,m,v){var y=r[t],_=y,b=m?"set":"add",x=_&&_.prototype,w={},S=function(t){var e=x[t];a(x,t,"delete"==t||"has"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof _&&(v||x.forEach&&!d((function(){(new _).entries().next()})))){var A=new _,j=A[b](v?{}:-0,1)!=A,E=d((function(){A.has(1)})),P=f((function(t){new _(t)})),O=!v&&d((function(){for(var t=new _,e=5;e--;)t[b](e,e);return!t.has(-0)}));P||((_=e((function(e,n){l(e,_,t);var r=g(new y,e,_);return null!=n&&c(n,m,r[b],r),r}))).prototype=x,x.constructor=_),(E||O)&&(S("delete"),S("has"),m&&S("get")),(O||j)&&S(b),v&&x.clear&&delete x.clear}else _=h.getConstructor(e,t,m,b),i(_.prototype,n),s.NEED=!0;return p(_,t),w[t]=_,o(o.G+o.W+o.F*(_!=y),w),v||h.setStrong(_,t,m),_}},function(t,e,n){for(var r,o=n(1),a=n(15),i=n(30),s=i("typed_array"),c=i("view"),l=!(!o.ArrayBuffer||!o.DataView),u=l,d=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(r=o[f[d++]])?(a(r.prototype,s,!0),a(r.prototype,c,!0)):u=!1;t.exports={ABV:l,CONSTR:u,TYPED:s,VIEW:c}},function(t,e,n){"use strict";(function(e){var r=n(13),o=n(143),a={"Content-Type":"application/x-www-form-urlencoded"};function i(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e)&&(s=n(98)),s),transformRequest:[function(t,e){return o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){c.headers[t]=r.merge(a)})),t.exports=c}).call(this,n(142))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseQuerystring=function(t){var e=window.location.search.substring(1),n="",r="";e&&((n=JSON.parse('{"'+e.replace(/&/g,'","').replace(/=/g,'":"')+'"}',(function(t,e){return""===t?e:decodeURIComponent(e.replace(/\+/g,"-"))}))).pg&&delete n.pg,n.auto&&delete n.auto);n&&(r+="/",Object.keys(n).forEach((function(t,e){r+=e>0?"--":"",r+=t+"--"+n[t]})));return t+r},e.buildFilterURL=i,e.createMasonryFiltersPage=function(t,e){if(!t.addons.filters)return e;var n=window.location.search,r=t.page+1;return r="true"===t.addons.preloaded?r+1:r,e=s(t,e,n,r)},e.createMasonryFiltersPages=function(t,e){if(!t.addons.filters)return e;var n=1,r=t.page,o=window.location.search;if(t.addons.filters_startpage>1){for(var a=parseInt(t.posts_per_page),i=[],c=0;c<e.length;c+=a)i.push(e.slice(c,a+c));for(var l=0;l<i.length;l++){var u=l>0?l*a:0;n=l+1,e[u]&&(e[u]=s(t,e[u],o,n))}}else n=r,e[0]=s(t,e[0],o,n);return e};var r,o=n(163),a=(r=o)&&r.__esModule?r:{default:r};function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e;return t.addons.filters_paging&&(r=n>1?r?(0,a.default)("pg")?e.replace(/(pg=)[^\&]+/,"$1"+n):e+"&pg="+n:"?pg="+n:"&"===(r="?"===(r=e.replace(/(pg=)[^\&]+/,""))?"":r)[r.length-1]?r.slice(0,-1):r),r}function s(t,e,n,r){if(e.classList.add("alm-filters"),e.dataset.page=r,r>1)e.dataset.url=t.canonical_url+i(t,n,r);else{var o=n.replace(/(pg=)[^\&]+/,"");o="?"===o?"":o,e.dataset.url=t.canonical_url+o}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text/html";if(!t)return!1;var n=new DOMParser,r=n.parseFromString(t,e);return r?Array.prototype.slice.call(r.body.childNodes):r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return!1;if(e.indexOf("Safari")>-1&&-1!=e.indexOf("Chrome")||e.indexOf("Firefox")>-1||e.indexOf("Windows")>-1)return!1;for(var n=t.querySelectorAll("img[srcset]:not(.alm-loaded)"),r=0;r<n.length;r++){var o=n[r];o.classList.add("alm-loaded"),o.outerHTML=o.outerHTML}}},function(t,e,n){var r,o;
2
  /*!
3
  * imagesLoaded v4.1.4
4
  * JavaScript is all like "You images are done yet or what?"
5
  * MIT License
6
- */!function(a,i){"use strict";r=[n(168)],void 0===(o=function(t){return function(t,e){var n=t.jQuery,r=t.console;function o(t,e){for(var n in e)t[n]=e[n];return t}var a=Array.prototype.slice;function i(t,e,s){if(!(this instanceof i))return new i(t,e,s);var c,l=t;("string"==typeof t&&(l=document.querySelectorAll(t)),l)?(this.elements=(c=l,Array.isArray(c)?c:"object"==typeof c&&"number"==typeof c.length?a.call(c):[c]),this.options=o({},this.options),"function"==typeof e?s=e:o(this.options,e),s&&this.on("always",s),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(l||t))}i.prototype=Object.create(e.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&s[e]){for(var n=t.querySelectorAll("img"),r=0;r<n.length;r++){var o=n[r];this.addImage(o)}if("string"==typeof this.options.background){var a=t.querySelectorAll(this.options.background);for(r=0;r<a.length;r++){var i=a[r];this.addElementBackgroundImages(i)}}}};var s={1:!0,9:!0,11:!0};function c(t){this.img=t}function l(t,e){this.url=t,this.element=e,this.img=new Image}return i.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(e.backgroundImage);null!==r;){var o=r&&r[2];o&&this.addBackground(o,t),r=n.exec(e.backgroundImage)}},i.prototype.addImage=function(t){var e=new c(t);this.images.push(e)},i.prototype.addBackground=function(t,e){var n=new l(t,e);this.images.push(n)},i.prototype.check=function(){var t=this;function e(e,n,r){setTimeout((function(){t.progress(e,n,r)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(t){t.once("progress",e),t.check()})):this.complete()},i.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,t,e)},i.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},c.prototype=Object.create(e.prototype),c.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},c.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},c.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},c.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},c.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype=Object.create(c.prototype),l.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},i.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((n=e).fn.imagesLoaded=function(t,e){return new i(this,t,e).jqDeferred.promise(n(this))})},i.makeJQueryPlugin(),i}(a,t)}.apply(e,r))||(t.exports=o)}("undefined"!=typeof window?window:this)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e/=10,t.style.opacity=.5;var n=setInterval((function(){t.style.opacity<.1?clearInterval(n):t.style.opacity-=.1}),e)}},function(t,e,n){var r=n(4),o=n(1).document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){e.f=n(5)},function(t,e,n){var r=n(51)("keys"),o=n(30);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(3),a=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(18)(Function.call,n(21).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:a}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var r=n(4),o=n(74).set;t.exports=function(t,e,n){var a,i=e.constructor;return i!==n&&"function"==typeof i&&(a=i.prototype)!==n.prototype&&r(a)&&o&&o(t,a),t}},function(t,e,n){"use strict";var r=n(20),o=n(25);t.exports=function(t){var e=String(o(this)),n="",a=r(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(20),o=n(25);t.exports=function(t){return function(e,n){var a,i,s=String(o(e)),c=r(n),l=s.length;return c<0||c>=l?t?"":void 0:(a=s.charCodeAt(c))<55296||a>56319||c+1===l||(i=s.charCodeAt(c+1))<56320||i>57343?t?s.charAt(c):a:t?s.slice(c,c+2):i-56320+(a-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(31),o=n(0),a=n(11),i=n(15),s=n(41),c=n(121),l=n(39),u=n(36),d=n(5)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,g,h,m,v){c(n,e,g);var y,_,b,x=function(t){if(!f&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",S="values"==h,A=!1,j=t.prototype,E=j[d]||j["@@iterator"]||h&&j[h],P=E||x(h),O=h?S?x("entries"):P:void 0,L="Array"==e&&j.entries||E;if(L&&(b=u(L.call(new t)))!==Object.prototype&&b.next&&(l(b,w,!0),r||"function"==typeof b[d]||i(b,d,p)),S&&E&&"values"!==E.name&&(A=!0,P=function(){return E.call(this)}),r&&!v||!f&&!A&&j[d]||i(j,d,P),s[e]=P,s[w]=p,h)if(y={values:S?P:x("values"),keys:m?P:x("keys"),entries:O},v)for(_ in y)_ in j||a(j,_,y[_]);else o(o.P+o.F*(f||A),e,y);return y}},function(t,e,n){var r=n(83),o=n(25);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(4),o=n(24),a=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(41),o=n(5)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},function(t,e,n){"use strict";var r=n(9),o=n(29);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(47),o=n(5)("iterator"),a=n(41);t.exports=n(7).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||a[r(t)]}},function(t,e,n){"use strict";var r=n(10),o=n(33),a=n(6);t.exports=function(t){for(var e=r(this),n=a(e.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),c=i>2?arguments[2]:void 0,l=void 0===c?n:o(c,n);l>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(37),o=n(126),a=n(41),i=n(16);t.exports=n(81)(Array,"Array",(function(t,e){this._t=i(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,a=n(56),i=RegExp.prototype.exec,s=String.prototype.replace,c=i,l=(r=/a/,o=/b*/g,i.call(r,"a"),i.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(l||u)&&(c=function(t){var e,n,r,o,c=this;return u&&(n=new RegExp("^"+c.source+"$(?!\\s)",a.call(c))),l&&(e=c.lastIndex),r=i.call(c,t),l&&r&&(c.lastIndex=c.global?r.index+r[0].length:e),u&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=c},function(t,e,n){"use strict";var r=n(80)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r,o,a,i=n(18),s=n(115),c=n(73),l=n(69),u=n(1),d=u.process,f=u.setImmediate,p=u.clearImmediate,g=u.MessageChannel,h=u.Dispatch,m=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},_=function(t){y.call(t.data)};f&&p||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++m]=function(){s("function"==typeof t?t:Function(t),e)},r(m),m},p=function(t){delete v[t]},"process"==n(24)(d)?r=function(t){d.nextTick(i(y,t,1))}:h&&h.now?r=function(t){h.now(i(y,t,1))}:g?(a=(o=new g).port2,o.port1.onmessage=_,r=i(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",_,!1)):r="onreadystatechange"in l("script")?function(t){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(i(y,t,1),0)}),t.exports={set:f,clear:p}},function(t,e,n){"use strict";var r=n(1),o=n(8),a=n(31),i=n(62),s=n(15),c=n(44),l=n(2),u=n(43),d=n(20),f=n(6),p=n(134),g=n(35).f,h=n(9).f,m=n(88),v=n(39),y=r.ArrayBuffer,_=r.DataView,b=r.Math,x=r.RangeError,w=r.Infinity,S=y,A=b.abs,j=b.pow,E=b.floor,P=b.log,O=b.LN2,L=o?"_b":"buffer",M=o?"_l":"byteLength",T=o?"_o":"byteOffset";function I(t,e,n){var r,o,a,i=new Array(n),s=8*n-e-1,c=(1<<s)-1,l=c>>1,u=23===e?j(2,-24)-j(2,-77):0,d=0,f=t<0||0===t&&1/t<0?1:0;for((t=A(t))!=t||t===w?(o=t!=t?1:0,r=c):(r=E(P(t)/O),t*(a=j(2,-r))<1&&(r--,a*=2),(t+=r+l>=1?u/a:u*j(2,1-l))*a>=2&&(r++,a/=2),r+l>=c?(o=0,r=c):r+l>=1?(o=(t*a-1)*j(2,e),r+=l):(o=t*j(2,l-1)*j(2,e),r=0));e>=8;i[d++]=255&o,o/=256,e-=8);for(r=r<<e|o,s+=e;s>0;i[d++]=255&r,r/=256,s-=8);return i[--d]|=128*f,i}function F(t,e,n){var r,o=8*n-e-1,a=(1<<o)-1,i=a>>1,s=o-7,c=n-1,l=t[c--],u=127&l;for(l>>=7;s>0;u=256*u+t[c],c--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=e;s>0;r=256*r+t[c],c--,s-=8);if(0===u)u=1-i;else{if(u===a)return r?NaN:l?-w:w;r+=j(2,e),u-=i}return(l?-1:1)*r*j(2,u-e)}function C(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function N(t){return[255&t]}function k(t){return[255&t,t>>8&255]}function R(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function D(t){return I(t,52,8)}function z(t){return I(t,23,4)}function q(t,e,n){h(t.prototype,e,{get:function(){return this[n]}})}function B(t,e,n,r){var o=p(+n);if(o+e>t[M])throw x("Wrong index!");var a=t[L]._b,i=o+t[T],s=a.slice(i,i+e);return r?s:s.reverse()}function U(t,e,n,r,o,a){var i=p(+n);if(i+e>t[M])throw x("Wrong index!");for(var s=t[L]._b,c=i+t[T],l=r(+o),u=0;u<e;u++)s[c+u]=l[a?u:e-u-1]}if(i.ABV){if(!l((function(){y(1)}))||!l((function(){new y(-1)}))||l((function(){return new y,new y(1.5),new y(NaN),"ArrayBuffer"!=y.name}))){for(var W,H=(y=function(t){return u(this,y),new S(p(t))}).prototype=S.prototype,V=g(S),G=0;V.length>G;)(W=V[G++])in y||s(y,W,S[W]);a||(H.constructor=y)}var Y=new _(new y(2)),X=_.prototype.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||c(_.prototype,{setInt8:function(t,e){X.call(this,t,e<<24>>24)},setUint8:function(t,e){X.call(this,t,e<<24>>24)}},!0)}else y=function(t){u(this,y,"ArrayBuffer");var e=p(t);this._b=m.call(new Array(e),0),this[M]=e},_=function(t,e,n){u(this,_,"DataView"),u(t,y,"DataView");var r=t[M],o=d(e);if(o<0||o>r)throw x("Wrong offset!");if(o+(n=void 0===n?r-o:f(n))>r)throw x("Wrong length!");this[L]=t,this[T]=o,this[M]=n},o&&(q(y,"byteLength","_l"),q(_,"buffer","_b"),q(_,"byteLength","_l"),q(_,"byteOffset","_o")),c(_.prototype,{getInt8:function(t){return B(this,1,t)[0]<<24>>24},getUint8:function(t){return B(this,1,t)[0]},getInt16:function(t){var e=B(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=B(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return C(B(this,4,t,arguments[1]))},getUint32:function(t){return C(B(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return F(B(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return F(B(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){U(this,1,t,N,e)},setUint8:function(t,e){U(this,1,t,N,e)},setInt16:function(t,e){U(this,2,t,k,e,arguments[2])},setUint16:function(t,e){U(this,2,t,k,e,arguments[2])},setInt32:function(t,e){U(this,4,t,R,e,arguments[2])},setUint32:function(t,e){U(this,4,t,R,e,arguments[2])},setFloat32:function(t,e){U(this,4,t,z,e,arguments[2])},setFloat64:function(t,e){U(this,8,t,D,e,arguments[2])}});v(y,"ArrayBuffer"),v(_,"DataView"),s(_.prototype,i.VIEW,!0),e.ArrayBuffer=y,e.DataView=_},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),i=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:i,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var a=e[r],i=a.obj[a.prop],s=Object.keys(i),c=0;c<s.length;++c){var l=s[c],u=i[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(e.push({obj:i,prop:l}),n.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],a=0;a<n.length;++a)void 0!==n[a]&&r.push(n[a]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n){if(0===t.length)return t;var r=t;if("symbol"==typeof t?r=Symbol.prototype.toString.call(t):"string"!=typeof t&&(r=String(t)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var o="",i=0;i<r.length;++i){var s=r.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=r.charAt(i):s<128?o+=a[s]:s<2048?o+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?o+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(i)),o+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return o},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,a){if(!n)return e;if("object"!=typeof n){if(o(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var s=e;return o(e)&&!o(n)&&(s=i(e,a)),o(e)&&o(n)?(n.forEach((function(n,o){if(r.call(e,o)){var i=e[o];i&&"object"==typeof i&&n&&"object"==typeof n?e[o]=t(i,n,a):e.push(n)}else e[o]=n})),e):Object.keys(n).reduce((function(e,o){var i=n[o];return r.call(e,o)?e[o]=t(e[o],i,a):e[o]=i,e}),s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.getOffset=e.almScroll=e.start=e.tracking=e.tab=e.filter=void 0;var r=I(n(96)),o=I(n(157));n(158);var a=I(n(159)),i=I(n(102)),s=I(n(161)),c=I(n(162)),l=I(n(65)),u=I(n(103)),d=T(n(164)),f=T(n(104)),p=n(105),g=I(n(165)),h=I(n(166)),m=I(n(49)),v=I(n(167)),y=I(n(50)),_=I(n(68)),b=I(n(169)),x=I(n(170)),w=I(n(171)),S=I(n(172)),A=I(n(66)),j=n(173),E=n(174),P=n(175),O=n(176),L=n(64),M=n(106);function T(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function I(t){return t&&t.__esModule?t:{default:t}}function F(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}n(177),n(350),n(351);var C=n(352),N=n(67);o.default.polyfill();var k=!1;!function(){var t=function(t,e){alm_localize&&"true"===alm_localize.scrolltop&&window.scrollTo(0,0);var n=this;n.AjaxLoadMore={},n.addons={},n.extensions={},n.integration={},n.window=window,n.page=0,n.posts=0,n.totalposts=0,n.proceed=!1,n.disable_ajax=!1,n.init=!0,n.loading=!0,n.finished=!1,n.timer=null,n.ua=window.navigator.userAgent?window.navigator.userAgent:"",n.vendor=window.navigator.vendor?window.navigator.vendor:"",n.isSafari=/Safari/i.test(n.ua)&&/Apple Computer/.test(n.vendor)&&!/Mobi|Android/i.test(n.ua),n.main=t,n.master_id=t.dataset.id?"ajax-load-more-"+t.dataset.id:t.id,t.classList.add("alm-"+e),t.setAttribute("data-alm-id",e),n.master_id=n.master_id.replace(/-/g,"_"),n.localize=window[n.master_id+"_vars"],n.main=t,n.listing=t.querySelector(".alm-listing")||t.querySelector(".alm-comments"),n.content=n.listing,n.el=n.content,n.ajax=t.querySelector(".alm-ajax"),n.container_type=n.listing.dataset.containerType,n.canonical_url=t.dataset.canonicalUrl,n.nested=t.dataset.nested?t.dataset.nested:null,n.is_search=t.dataset.search,n.slug=t.dataset.slug,n.post_id=t.dataset.postId,n.id=t.dataset.id?t.dataset.id:"";var o=t.querySelector(".alm-no-results");if(n.no_results=o?o.innerHTML:"",n.repeater=n.listing.dataset.repeater,n.theme_repeater=n.listing.dataset.themeRepeater,n.post_type=n.listing.dataset.postType?n.listing.dataset.postType:"post",n.sticky_posts=n.listing.dataset.stickyPosts?n.listing.dataset.stickyPosts:null,n.btnWrap=t.querySelectorAll(".alm-btn-wrap"),n.btnWrap=Array.prototype.slice.call(n.btnWrap),n.btnWrap[n.btnWrap.length-1].style.visibility="visible",n.trigger=n.btnWrap[n.btnWrap.length-1],n.button=n.trigger.querySelector("button.alm-load-more-btn"),n.button_label=n.listing.dataset.buttonLabel,n.button_loading_label=n.listing.dataset.buttonLoadingLabel,n.placeholder=n.main.querySelector(".alm-placeholder"),n.scroll_distance=n.listing.dataset.scrollDistance,n.scroll_distance=n.scroll_distance?n.scroll_distance:100,n.scroll_container=n.listing.dataset.scrollContainer,n.max_pages=n.listing.dataset.maxPages?parseInt(n.listing.dataset.maxPages):0,n.pause_override=n.listing.dataset.pauseOverride,n.pause=!!n.listing.dataset.pause&&n.listing.dataset.pause,n.transition=n.listing.dataset.transition,n.transition_container=n.listing.dataset.transitionContainer,n.tcc=n.listing.dataset.transitionContainerClasses,n.speed=alm_localize.speed?parseInt(alm_localize.speed):200,n.images_loaded=!!n.listing.dataset.imagesLoaded&&n.listing.dataset.imagesLoaded,n.destroy_after=n.listing.dataset.destroyAfter?n.listing.dataset.destroyAfter:"",n.orginal_posts_per_page=parseInt(n.listing.dataset.postsPerPage),n.posts_per_page=n.listing.dataset.postsPerPage,n.offset=n.listing.dataset.offset?parseInt(n.listing.dataset.offset):0,n.integration.woocommerce=!!n.listing.dataset.woocommerce&&n.listing.dataset.woocommerce,n.integration.woocommerce="true"===n.integration.woocommerce,n.addons.woocommerce=!(!n.localize||!n.localize.woocommerce),n.addons.woocommerce&&(n.addons.woocommerce_columns=n.localize.woocommerce.columns?parseInt(n.localize.woocommerce.columns):3,n.addons.woocommerce_paged=n.localize.woocommerce.paged?parseInt(n.localize.woocommerce.paged):1,n.addons.woocommerce_paged_urls=n.localize.woocommerce.paged_urls,n.addons.woocommerce_pages=parseInt(n.localize.woocommerce.pages),n.addons.woocommerce_classes={},n.addons.woocommerce_classes.container=n.localize.woocommerce.container,n.addons.woocommerce_classes.products=n.localize.woocommerce.products,n.addons.woocommerce_classes.results=n.localize.woocommerce.results,n.addons.woocommerce_results_text=document.querySelectorAll(n.addons.woocommerce_classes.results),n.addons.woocommerce_settings=n.localize.woocommerce.settings,n.page=parseInt(n.page)+n.addons.woocommerce_paged),n.addons.cache=n.listing.dataset.cache,n.addons.cache=void 0!==n.addons.cache&&n.addons.cache,"true"===n.addons.cache&&(n.addons.cache_id=n.listing.dataset.cacheId,n.addons.cache_path=n.listing.dataset.cachePath,n.addons.cache_logged_in=n.listing.dataset.cacheLoggedIn,n.addons.cache_logged_in=void 0!==n.addons.cache_logged_in&&n.addons.cache_logged_in),n.addons.cta=n.listing.dataset.cta,"true"===n.addons.cta&&(n.addons.cta_position=n.listing.dataset.ctaPosition,n.addons.cta_repeater=n.listing.dataset.ctaRepeater,n.addons.cta_theme_repeater=n.listing.dataset.ctaThemeRepeater),n.addons.nextpage=n.listing.dataset.nextpage,"true"===n.addons.nextpage&&(n.addons.nextpage_urls=n.listing.dataset.nextpageUrls,n.addons.nextpage_scroll=n.listing.dataset.nextpageScroll,n.addons.nextpage_pageviews=n.listing.dataset.nextpagePageviews,n.addons.nextpage_post_id=n.listing.dataset.nextpagePostId,n.addons.nextpage_startpage=n.listing.dataset.nextpageStartpage),n.addons.single_post=n.listing.dataset.singlePost,"true"===n.addons.single_post&&(n.addons.single_post_id=n.listing.dataset.singlePostId,n.addons.single_post_order=n.listing.dataset.singlePostOrder,n.addons.single_post_init_id=n.listing.dataset.singlePostId,n.addons.single_post_taxonomy=n.listing.dataset.singlePostTaxonomy,n.addons.single_post_excluded_terms=n.listing.dataset.singlePostExcludedTerms,n.addons.single_post_progress_bar=n.listing.dataset.singlePostProgressBar,n.addons.single_post_target=n.listing.dataset.singlePostTarget),n.addons.comments=n.listing.dataset.comments,"true"===n.addons.comments&&(n.addons.comments_post_id=n.listing.dataset.comments_post_id,n.addons.comments_per_page=n.listing.dataset.comments_per_page,n.addons.comments_per_page=void 0===n.addons.comments_per_page?"5":n.addons.comments_per_page,n.addons.comments_type=n.listing.dataset.comments_type,n.addons.comments_style=n.listing.dataset.comments_style,n.addons.comments_template=n.listing.dataset.comments_template,n.addons.comments_callback=n.listing.dataset.comments_callback),n.addons.tabs=n.listing.dataset.tabs,n.addons.filters=n.listing.dataset.filters,n.addons.seo=n.listing.dataset.seo,n.addons.preloaded=n.listing.dataset.preloaded,n.addons.preloaded_amount=n.listing.dataset.preloadedAmount?n.listing.dataset.preloadedAmount:0,n.is_preloaded="true"===n.listing.dataset.isPreloaded,n.addons.users="true"===n.listing.dataset.users,n.addons.users&&(n.orginal_posts_per_page=n.listing.dataset.usersPerPage,n.posts_per_page=n.listing.dataset.usersPerPage),n.extensions.restapi=n.listing.dataset.restapi,n.extensions.restapi_base_url=n.listing.dataset.restapiBaseUrl,n.extensions.restapi_namespace=n.listing.dataset.restapiNamespace,n.extensions.restapi_endpoint=n.listing.dataset.restapiEndpoint,n.extensions.restapi_template_id=n.listing.dataset.restapiTemplateId,n.extensions.restapi_debug=n.listing.dataset.restapiDebug,n.extensions.acf=n.listing.dataset.acf,n.extensions.acf_field_type=n.listing.dataset.acfFieldType,n.extensions.acf_field_name=n.listing.dataset.acfFieldName,n.extensions.acf_parent_field_name=n.listing.dataset.acfParentFieldName,n.extensions.acf_post_id=n.listing.dataset.acfPostId,n.extensions.acf="true"===n.extensions.acf,void 0!==n.extensions.acf_field_type&&void 0!==n.extensions.acf_field_name&&void 0!==n.extensions.acf_post_id||(n.extensions.acf=!1),n.extensions.term_query=n.listing.dataset.termQuery,n.extensions.term_query_taxonomy=n.listing.dataset.termQueryTaxonomy,n.extensions.term_query_hide_empty=n.listing.dataset.termQueryHideEmpty,n.extensions.term_query_number=n.listing.dataset.termQueryNumber,n.extensions.term_query="true"===n.extensions.term_query,n.addons.paging=n.listing.dataset.paging,"true"===n.addons.paging?(n.addons.paging=!0,n.addons.paging_init=!0,n.addons.paging_controls="true"===n.listing.dataset.pagingControls,n.addons.paging_show_at_most=n.listing.dataset.pagingShowAtMost,n.addons.paging_classes=n.listing.dataset.pagingClasses,n.addons.paging_show_at_most=void 0===n.addons.paging_show_at_most?7:n.addons.paging_show_at_most,n.addons.paging_first_label=n.listing.dataset.pagingFirstLabel,n.addons.paging_previous_label=n.listing.dataset.pagingPreviousLabel,n.addons.paging_next_label=n.listing.dataset.pagingNextLabel,n.addons.paging_last_label=n.listing.dataset.pagingLastLabel,n.addons.paging_scroll=!!n.listing.dataset.pagingScroll&&n.listing.dataset.pagingScroll,n.addons.paging_scrolltop=n.listing.dataset.pagingScrolltop?parseInt(n.listing.dataset.pagingScrolltop):100,n.pause="true"===n.addons.preloaded||n.pause):n.addons.paging=!1,"true"===n.addons.filters){n.addons.filters=!0,n.addons.filters_url="true"===n.listing.dataset.filtersUrl,n.addons.filters_paging="true"===n.listing.dataset.filtersPaging,n.addons.filters_scroll="true"===n.listing.dataset.filtersScroll,n.addons.filters_scrolltop=n.listing.dataset.filtersScrolltop?n.listing.dataset.filtersScrolltop:"30",n.addons.filters_analtyics=n.listing.dataset.filtersAnalytics,n.addons.filters_debug=n.listing.dataset.filtersDebug,n.addons.filters_startpage=0;var b=(0,a.default)("pg");n.addons.filters_startpage=null!==b?parseInt(b):0,!n.addons.paging&&n.addons.filters_startpage>0&&(n.posts_per_page=n.posts_per_page*n.addons.filters_startpage,n.isPaged=n.addons.filters_startpage>0)}else n.addons.filters=!1;if("true"===n.addons.tabs){if(n.addons.tabs=!0,n.addons.tab_template=n.listing.dataset.tabTemplate?n.listing.dataset.tabTemplate:"",n.addons.tab_onload=n.listing.dataset.tabOnload?n.listing.dataset.tabOnload:"",n.addons.tabs_resturl=n.listing.dataset.tabsRestUrl?n.listing.dataset.tabsRestUrl:"",""!==n.addons.tab_onload){var T=document.querySelector(".alm-tab-nav li [data-tab-url="+n.addons.tab_onload+"]");if(n.addons.tab_template=T?T.dataset.tabTemplate:n.addons.tab_template,n.listing.dataset.tabOnload="",T){var I=document.querySelector(".alm-tab-nav li .active");I&&I.classList.remove("active")}}}else n.addons.tabs=!1;if("true"===n.extensions.restapi?(n.extensions.restapi=!0,n.extensions.restapi_debug=void 0!==n.extensions.restapi_debug&&n.extensions.restapi_debug,n.extensions.restapi=""!==n.extensions.restapi_template_id&&n.extensions.restapi):n.extensions.restapi=!1,"true"===n.addons.preloaded?(n.addons.preloaded_amount=void 0===n.addons.preloaded_amount?n.posts_per_page:n.addons.preloaded_amount,n.localize&&n.localize.total_posts&&parseInt(n.localize.total_posts)<=parseInt(n.addons.preloaded_amount)&&(n.addons.preloaded_total_posts=n.localize.total_posts,n.disable_ajax=!0)):n.addons.preloaded="false",n.addons.seo=void 0!==n.addons.seo&&n.addons.seo,n.addons.seo="true"===n.addons.seo||n.addons.seo,n.is_search=void 0!==n.is_search&&n.is_search,n.search_value="true"===n.is_search?n.slug:"",n.addons.seo_permalink=n.listing.dataset.seoPermalink,n.addons.seo_pageview=n.listing.dataset.seoPageview,n.addons.seo_trailing_slash="false"===n.listing.dataset.seoTrailingSlash?"":"/",n.addons.seo_leading_slash="true"===n.listing.dataset.seoLeadingSlash?"/":"",n.start_page=n.listing.dataset.seoStartPage,n.start_page?(n.addons.seo_scroll=n.listing.dataset.seoScroll,n.addons.seo_scrolltop=n.listing.dataset.seoScrolltop,n.addons.seo_controls=n.listing.dataset.seoControls,n.isPaged=!1,n.start_page>1&&(n.isPaged=!0,n.posts_per_page=n.start_page*n.posts_per_page),n.addons.paging&&(n.posts_per_page=n.orginal_posts_per_page)):n.start_page=1,"true"===n.addons.nextpage?(n.addons.nextpage=!0,n.posts_per_page=1):n.addons.nextpage=!1,void 0===n.addons.nextpage_urls&&(n.addons.nextpage_urls="true"),void 0===n.addons.nextpage_scroll&&(n.addons.nextpage_scroll="false:30"),void 0===n.addons.nextpage_pageviews&&(n.addons.nextpage_pageviews="true"),void 0===n.addons.nextpage_post_id&&(n.addons.nextpage=!1,n.addons.nextpage_post_id=null),void 0===n.addons.nextpage_startpage&&(n.addons.nextpage_startpage=1),n.addons.nextpage_startpage>1&&(n.isPaged=!0),"true"===n.addons.single_post?(n.addons.single_post=!0,n.addons.single_post_permalink="",n.addons.single_post_title="",n.addons.single_post_slug=""):n.addons.single_post=!1,void 0===n.addons.single_post_id&&(n.addons.single_post_id="",n.addons.single_post_init_id=""),n.addons.single_post_order=void 0===n.addons.single_post_order?"previous":n.addons.single_post_order,n.addons.single_post_taxonomy=void 0===n.addons.single_post_taxonomy?"":n.addons.single_post_taxonomy,n.addons.single_post_excluded_terms=void 0===n.addons.single_post_excluded_terms?"":n.addons.single_post_excluded_terms,n.addons.single_post_progress_bar=void 0===n.addons.single_post_progress_bar?"":n.addons.single_post_progress_bar,n.addons.single_post_target=void 0===n.addons.single_post_target?"":n.addons.single_post_target,n.addons.single_post_title_template=n.listing.dataset.singlePostTitleTemplate,n.addons.single_post_siteTitle=n.listing.dataset.singlePostSiteTitle,n.addons.single_post_siteTagline=n.listing.dataset.singlePostSiteTagline,n.addons.single_post_pageview=n.listing.dataset.singlePostPageview,n.addons.single_post_scroll=n.listing.dataset.singlePostScroll,n.addons.single_post_scroll_speed=n.listing.dataset.singlePostScrollSpeed,n.addons.single_post_scroll_top=n.listing.dataset.singlePostScrolltop,n.addons.single_post_controls=n.listing.dataset.singlePostControls,(void 0===n.pause||n.addons.seo&&n.start_page>1)&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.seo&&n.start_page>0&&(n.pause=!1),n.addons.filters&&n.addons.filters_startpage>0&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.paging&&(n.pause=!0),n.repeater=void 0===n.repeater?"default":n.repeater,n.theme_repeater=void 0!==n.theme_repeater&&n.theme_repeater,n.max_pages=void 0===n.max_pages||0===n.max_pages?1e4:n.max_pages,n.scroll_distance=void 0===n.scroll_distance?100:n.scroll_distance,n.scroll_distance_perc=!1,-1==n.scroll_distance.toString().indexOf("%")?n.scroll_distance=parseInt(n.scroll_distance):(n.scroll_distance_perc=!0,n.scroll_distance_orig=parseInt(n.scroll_distance),n.scroll_distance=(0,S.default)(n)),n.scroll_container=void 0===n.scroll_container?"":n.scroll_container,n.transition=void 0===n.transition?"fade":n.transition,n.tcc=void 0===n.tcc?"":n.tcc,n.is_masonry_preloaded=!1,"masonry"===n.transition&&(n.masonry_init=!0,n.msnry?n.msnry.destroy():n.msnry="",n.masonry_selector=n.listing.dataset.masonrySelector,n.masonry_columnwidth=n.listing.dataset.masonryColumnwidth,n.masonry_animation=n.listing.dataset.masonryAnimation,n.masonry_animation=void 0===n.masonry_animation?"standard":n.masonry_animation,n.masonry_horizontalorder=n.listing.dataset.masonryHorizontalorder,n.masonry_horizontalorder=void 0===n.masonry_horizontalorder?"true":n.masonry_horizontalorder,n.transition_container=!1,n.images_loaded=!1,n.is_masonry_preloaded="true"===n.addons.preloaded||n.is_masonry_preloaded),void 0===n.listing.dataset.scroll?n.scroll=!0:"false"===n.listing.dataset.scroll?n.scroll=!1:n.scroll=!0,n.transition_container=void 0===n.transition_container||"true"===n.transition_container,n.button_label=void 0===n.button_label?"Older Posts":n.button_label,n.button_loading_label=void 0!==n.button_loading_label&&n.button_loading_label,n.addons.paging)n.main.classList.add("loading");else{var R=t.childNodes;if(R){var D=Array.prototype.slice.call(R).filter((function(t){return!!t.classList&&t.classList.contains("alm-btn-wrap")}));n.button=D?D[0].querySelector(".alm-load-more-btn"):container.querySelector(".alm-btn-wrap .alm-load-more-btn")}else n.button=container.querySelector(".alm-btn-wrap .alm-load-more-btn");n.button.disabled=!1,n.button.style.display=""}if(n.integration.woocommerce?(n.resultsText=document.querySelectorAll(".woocommerce-result-count"),n.resultsText.length<1&&(n.resultsText=document.querySelectorAll(".alm-results-text"))):n.resultsText=document.querySelectorAll(".alm-results-text"),n.resultsText?n.resultsText.forEach((function(t){t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true")})):n.resultsText=!1,n.tableofcontents=document.querySelector(".alm-toc"),n.tableofcontents?(n.tableofcontents.setAttribute("aria-live","polite"),n.tableofcontents.setAttribute("aria-atomic","true")):n.tableofcontents=!1,n.AjaxLoadMore.loadPosts=function(){if("function"==typeof almOnChange&&window.almOnChange(n),(0,j.showPlaceholder)(n),!n.disable_ajax)if(n.addons.paging||(n.button.classList.add("loading"),!1!==n.button_loading_label&&(n.button.innerHTML=n.button_loading_label)),n.main.classList.add("alm-loading"),n.loading=!0,"true"!==n.addons.cache||n.addons.cache_logged_in)n.AjaxLoadMore.ajax("standard");else{var t=(0,c.default)(n);t?r.default.get(t).then((function(t){n.AjaxLoadMore.success(t.data,!0)})).catch((function(t){n.AjaxLoadMore.ajax("standard")})):n.AjaxLoadMore.ajax("standard")}},n.AjaxLoadMore.ajax=function(t){var e="alm_get_posts";n.acf_array="",n.extensions.acf&&("relationship"!==n.extensions.acf_field_type&&(e="alm_acf"),n.acf_array={acf:"true",post_id:n.extensions.acf_post_id,field_type:n.extensions.acf_field_type,field_name:n.extensions.acf_field_name,parent_field_name:n.extensions.acf_parent_field_name}),n.term_query_array="",n.extensions.term_query&&(e="alm_get_terms",n.term_query_array={term_query:"true",taxonomy:n.extensions.term_query_taxonomy,hide_empty:n.extensions.term_query_hide_empty,number:n.extensions.term_query_number}),n.nextpage_array="",n.addons.nextpage&&(e="alm_nextpage",n.nextpage_array={nextpage:"true",urls:n.addons.nextpage_urls,scroll:n.addons.nextpage_scroll,pageviews:n.addons.nextpage_pageviews,post_id:n.addons.nextpage_post_id,startpage:n.addons.nextpage_startpage}),n.single_post_array="",n.addons.single_post&&(n.single_post_array={single_post:"true",id:n.addons.single_post_id,slug:n.addons.single_post_slug}),n.comments_array="","true"===n.addons.comments&&(e="alm_comments",n.posts_per_page=n.addons.comments_per_page,n.comments_array={comments:"true",post_id:n.addons.comments_post_id,per_page:n.addons.comments_per_page,type:n.addons.comments_type,style:n.addons.comments_style,template:n.addons.comments_template,callback:n.addons.comments_callback}),n.users_array="",n.addons.users&&(e="alm_users",n.users_array={users:"true",role:n.listing.dataset.usersRole,include:n.listing.dataset.usersInclude,exclude:n.listing.dataset.usersExclude,per_page:n.posts_per_page,order:n.listing.dataset.usersOrder,orderby:n.listing.dataset.usersOrderby}),n.cta_array="","true"===n.addons.cta&&(n.cta_array={cta:"true",cta_position:n.addons.cta_position,cta_repeater:n.addons.cta_repeater,cta_theme_repeater:n.addons.cta_theme_repeater}),n.extensions.restapi?n.AjaxLoadMore.restapi(n,e,t):n.addons.tabs?n.AjaxLoadMore.tabs(n):n.AjaxLoadMore.adminajax(n,e,t)},n.AjaxLoadMore.adminajax=function(t,e,n){1==t.page||t.addons.paging||t.button.classList.add("loading"),r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return C.stringify(t,{arrayFormat:"brackets",encode:!1})},t}));var o=alm_localize.ajaxurl,a=d.almGetAjaxParams(t,e,n);t.addons.single_post&&t.addons.single_post_target&&(o=t.addons.single_post_permalink,a=""),t.addons.woocommerce&&(o=(0,O.wooGetURL)(t),a=""),r.default.get(o,{params:a}).then((function(e){var r="";t.addons.single_post&&t.addons.single_post_target?(r=(0,E.singlePostHTML)(e,t.addons.single_post_target),(0,P.createCacheFile)(t,r.html,"single")):t.addons.woocommerce?(r=(0,O.wooGetContent)(e,t),(0,P.createCacheFile)(t,r.html,"woocommerce")):r=e.data,"standard"===n?t.AjaxLoadMore.success(r,!1):"totalpages"===n&&t.addons.paging&&t.addons.nextpage?"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalpages,t):"totalposts"===n&&t.addons.paging&&"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalposts,t)})).catch((function(e){t.AjaxLoadMore.error(e,"adminajax")}))},n.AjaxLoadMore.tabs=function(t){var e=t.addons.tabs_resturl+"ajaxloadmore/tab",n={post_id:t.post_id,template:t.addons.tab_template};r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return C.stringify(t,{arrayFormat:"brackets",encode:!1})},t})),r.default.get(e,{params:n}).then((function(e){var n={html:e.data.html,meta:{postcount:1,totalposts:1}};t.AjaxLoadMore.success(n,!1),"function"==typeof almTabLoaded&&window.almTabLoaded(t)})).catch((function(e){t.AjaxLoadMore.error(e,"restapi")}))},n.AjaxLoadMore.restapi=function(t,e,n){var o=wp.template(t.extensions.restapi_template_id),a=t.extensions.restapi_base_url+"/"+t.extensions.restapi_namespace+"/"+t.extensions.restapi_endpoint,i=d.almGetRestParams(t);r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return C.stringify(t,{arrayFormat:"brackets",encode:!1})},t})),r.default.get(a,{params:i}).then((function(e){for(var n=e.data,r="",a=n.html,i=n.meta,s=i.postcount,c=i.totalposts,l=0;l<a.length;l++){var u=a[l];"true"===t.restapi_debug&&console.log(u),r+=o(u)}var d={html:r,meta:{postcount:s,totalposts:c}};t.AjaxLoadMore.success(d,!1)})).catch((function(e){t.AjaxLoadMore.error(e,"restapi")}))},n.addons.paging&&(n.addons.nextpage?n.AjaxLoadMore.ajax("totalpages"):n.AjaxLoadMore.ajax("totalposts")),n.AjaxLoadMore.success=function(e,r){var o=this;n.addons.single_post&&n.AjaxLoadMore.getSinglePost();var a=!1,c="table"===n.container_type?document.createElement("tbody"):document.createElement("div");n.el=c,c.style.opacity=0,c.style.height=0,c.style.outline="none";var d,f,b,S=n.listing.querySelector(".alm-paging-content");if(r?d=e:(d=e.html,f=e.meta,n.posts=n.addons.paging?f.postcount:n.posts+f.postcount,b=f.postcount,n.totalposts=f.totalposts,n.totalposts="true"===n.addons.preloaded?n.totalposts-n.addons.preloaded_amount:n.totalposts,n.debug=f.debug?f.debug:""),n.html=d,b=r?(0,l.default)(d).length:b,n.init&&(f&&(n.main.dataset.totalPosts=f.totalposts?f.totalposts:0),n.addons.paging&&b>0&&n.AjaxLoadMore.pagingInit(d,"alm-reveal"),0===b&&(n.addons.paging&&"function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&setTimeout((function(){(0,x.default)(n.content,n.no_results)}),n.speed+10)),n.isPaged&&(n.posts_per_page=n.addons.users?n.listing.dataset.usersPerPage:n.listing.dataset.postsPerPage,n.posts_per_page=n.addons.nextpage?1:n.posts_per_page,n.page=n.start_page?n.start_page-1:n.page,n.addons.filters&&n.addons.filters_startpage>0&&(n.page=n.addons.filters_startpage-1,n.posts_per_page=n.listing.dataset.postsPerPage))),(0,w.default)(n),F(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.default)(n);case 2:case"end":return t.stop()}}),t,o)})))(),b>0){if(n.addons.paging)n.init?setTimeout((function(){n.main.classList.remove("alm-loading"),n.AjaxLoadMore.triggerAddons(n)}),n.speed):S&&((0,_.default)(S,n.speed),S.style.outline="none",n.main.classList.remove("alm-loading"),setTimeout((function(){S.style.opacity=0,S.innerHTML=n.html,N(S,(function(){n.AjaxLoadMore.triggerAddons(n),(0,y.default)(S,n.speed),setTimeout((function(){S.style.opacity="",h.default.init(S)}),parseInt(n.speed)+10),"function"==typeof almOnPagingComplete&&window.almOnPagingComplete(n)}))}),parseInt(n.speed)+25));else{if(n.addons.single_post)c.setAttribute("class","alm-reveal alm-single-post post-"+n.addons.single_post_id+n.tcc),c.dataset.url=n.addons.single_post_permalink,c.dataset.page=n.page,c.dataset.id=n.addons.single_post_id,c.dataset.title=n.addons.single_post_title,c.innerHTML=n.html;else if(n.transition_container){var j=void 0,E=window.location.search,P=n.addons.seo?" alm-seo":"",T=n.addons.filters?" alm-filters":"",I=n.is_preloaded?" alm-preloaded":"";if(n.init&&(n.start_page>1||n.addons.filters_startpage>0)){var C=[],R=[],D=parseInt(n.posts_per_page),z=Math.ceil(b/D);a=!0,"true"===n.addons.cta&&(D+=1,z=Math.ceil(b/D),b=z+b);for(var q=(0,u.default)((0,l.default)(n.html,"text/html")),B=0;B<b;B+=D)C.push(q.slice(B,D+B));for(var U=0;U<C.length;U++){var W="true"===n.addons.preloaded?1:0,H=document.createElement("div");U>0||"true"===n.addons.preloaded?(j=U+1+W,n.addons.seo&&(H=(0,M.createSEOAttributes)(n,H,E,P,j)),n.addons.filters&&(H.setAttribute("class","alm-reveal"+T+n.tcc),H.dataset.url=n.canonical_url+(0,L.buildFilterURL)(n,E,j),H.dataset.page=j)):(n.addons.seo&&(H=(0,M.createSEOAttributes)(n,H,E,P,1)),n.addons.filters&&(H.setAttribute("class","alm-reveal"+T+I+n.tcc),H.dataset.url=n.canonical_url+(0,L.buildFilterURL)(n,E,0),H.dataset.page="1")),(0,i.default)(H,C[U]),(0,A.default)(H,n.ua),R.push(H)}n.listing.style.opacity=0,n.listing.style.height=0,(0,i.default)(n.listing,R),c=n.listing,n.el=c}else{if(n.addons.seo&&n.page>0||"true"===n.addons.preloaded){var V="true"===n.addons.preloaded?1:0;j=n.page+1+V,n.addons.seo?c=(0,M.createSEOAttributes)(n,c,E,P,j):n.addons.filters?(c.setAttribute("class","alm-reveal"+T+n.tcc),c.dataset.url=n.canonical_url+(0,L.buildFilterURL)(n,E,j),c.dataset.page=j):c.setAttribute("class","alm-reveal"+n.tcc)}else n.addons.filters?(c.setAttribute("class","alm-reveal"+T+n.tcc),c.dataset.url=n.canonical_url+(0,L.buildFilterURL)(n,E,parseInt(n.page)+1),c.dataset.page=parseInt(n.page)+1):n.addons.seo?c=(0,M.createSEOAttributes)(n,c,E,P,1):c.setAttribute("class","alm-reveal"+n.tcc);c.innerHTML=n.html}}else n.el=n.html,c="table"===n.container_type?(0,s.default)(n.html):(0,u.default)((0,l.default)(n.html,"text/html"));if(n.addons.woocommerce)return F(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,O.woocommerce)(c,n,e.pageTitle);case 2:r=n.page+2,n.button.dataset.page=r,o=n.addons.woocommerce_paged_urls[r-1],n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),r>parseInt(n.addons.woocommerce_pages)&&n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t),console.log("There was an error loading woocommerce products")})),void(n.init=!1);("masonry"!==n.transition||n.init&&!n.is_masonry_preloaded)&&(a||(n.transition_container?n.listing.appendChild(c):"true"===n.images_loaded?N(c,(function(){(0,i.default)(n.listing,c),(0,A.default)(n.listing,n.ua)})):((0,i.default)(n.listing,c),(0,A.default)(n.listing,n.ua)))),"masonry"===n.transition?(n.el=n.listing,F(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,v.default)(n,n.init,k);case 2:n.masonry_init=!1,n.AjaxLoadMore.triggerWindowResize(),n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&window.almComplete(n);case 6:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an error with ALM Masonry")}))):"none"===n.transition?"true"===n.images_loaded?N(c,(function(){(0,y.default)(c,0),n.AjaxLoadMore.transitionEnd()})):((0,y.default)(c,0),n.AjaxLoadMore.transitionEnd()):"true"===n.images_loaded?N(c,(function(){n.transition_container&&(0,y.default)(c,n.speed),n.AjaxLoadMore.transitionEnd()})):(n.transition_container&&(0,y.default)(c,n.speed),n.AjaxLoadMore.transitionEnd()),n.addons.tabs&&"function"==typeof almTabsSetHeight&&N(c,(function(){(0,y.default)(n.listing,n.speed),setTimeout((function(){window.almTabsSetHeight(n)}),n.speed)}))}N(c,(function(){n.AjaxLoadMore.nested(c),h.default.init(n.el),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),k&&n.addons.filters&&"function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(t),k=!1,n.addons.tabs&&"function"==typeof almTabsComplete&&window.almTabsComplete(),n.addons.cache?n.addons.nextpage&&n.localize?parseInt(n.localize.page)===parseInt(n.localize.total_posts)&&n.AjaxLoadMore.triggerDone():b<parseInt(n.posts_per_page)&&n.AjaxLoadMore.triggerDone():n.posts>=n.totalposts&&!n.addons.single_post&&n.AjaxLoadMore.triggerDone()})),"function"==typeof almFiltersOnload&&n.init&&window.almFiltersOnload(n)}else n.AjaxLoadMore.noresults();if(void 0!==n.destroy_after&&""!==n.destroy_after){var G=n.page+1;(G="true"===n.addons.preloaded?G++:G)==n.destroy_after&&n.AjaxLoadMore.destroyed()}(0,p.tableOfContents)(n,n.init),"masonry"!==n.transition&&(0,m.default)(n,c,b,k),n.main.classList.contains("alm-is-filtering")&&n.main.classList.remove("alm-is-filtering"),n.init=!1},n.AjaxLoadMore.noresults=function(){n.addons.paging||(setTimeout((function(){n.button.classList.remove("loading"),n.button.classList.add("done")}),n.speed),n.AjaxLoadMore.resetBtnText()),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),k&&n.addons.filters&&("function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(t),k=!1),n.addons.tabs&&"function"==typeof almTabsComplete&&almTabsComplete(),n.AjaxLoadMore.triggerDone()},n.AjaxLoadMore.pagingPreloadedInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal"),""===t&&("function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,x.default)(n.content,n.no_results))},n.AjaxLoadMore.pagingNextpageInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal alm-nextpage"),"function"==typeof almSetNextPageVars&&window.almSetNextPageVars(n)},n.AjaxLoadMore.pagingInit=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"alm-reveal";t=null==t?"":t;var r=document.createElement("div");r.setAttribute("class",e);var o=document.createElement("div");o.setAttribute("class","alm-paging-content"+n.tcc),o.innerHTML=t,r.appendChild(o);var a=document.createElement("div");a.setAttribute("class","alm-paging-loading"),r.appendChild(a),n.listing.appendChild(r);var i=window.getComputedStyle(n.listing),s=parseInt(i.getPropertyValue("padding-top").replace("px","")),c=parseInt(i.getPropertyValue("padding-bottom").replace("px","")),l=r.offsetHeight;n.listing.style.height=l+s+c+"px",h.default.init(r),n.AjaxLoadMore.resetBtnText(),setTimeout((function(){"function"==typeof almFadePageControls&&window.almFadePageControls(n.btnWrap),"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.main.classList.remove("loading")}),n.speed)},n.AjaxLoadMore.nested=function(t){if(!t||!n.transition_container)return!1;var e=t.querySelectorAll(".ajax-load-more-wrap");e&&e.forEach((function(t){window.almInit(t)}))},n.addons.single_post_id&&(n.fetchingPreviousPost=!1,n.addons.single_post_init=!0),n.AjaxLoadMore.getSinglePost=function(){if(n.fetchingPreviousPost)return!1;n.fetchingPreviousPost=!0;var t=alm_localize.ajaxurl,e={id:n.addons.single_post_id,initial_id:n.addons.single_post_init_id,order:n.addons.single_post_order,taxonomy:n.addons.single_post_taxonomy,excluded_terms:n.addons.single_post_excluded_terms,post_type:n.post_type,init:n.addons.single_post_init,action:"alm_get_single"};r.default.get(t,{params:e}).then((function(t){var e=t.data;e.has_previous_post?(n.listing.dataset.singlePostId=e.prev_id,n.addons.single_post_id=e.prev_id,n.addons.single_post_permalink=e.prev_permalink,n.addons.single_post_title=e.prev_title,n.addons.single_post_slug=e.prev_slug):e.has_previous_post||n.AjaxLoadMore.triggerDone(),"function"==typeof window.almSetSinglePost&&window.almSetSinglePost(n,e.current_id,e.permalink,e.title),n.fetchingPreviousPost=!1,n.addons.single_post_init=!1})).catch((function(t){n.AjaxLoadMore.error(t,"getSinglePost"),n.fetchingPreviousPost=!1}))},n.AjaxLoadMore.triggerAddons=function(t){"function"==typeof almSetNextPage&&window.almSetNextPage(t),"function"==typeof almSEO&&window.almSEO(t,!1),"function"==typeof almWooCommerce&&window.almWooCommerce(t)},n.AjaxLoadMore.triggerDone=function(){n.loading=!1,n.finished=!0,n.addons.paging||(n.button.classList.add("done"),n.button.disabled=!0),"function"==typeof almDone&&setTimeout((function(){window.almDone(n),(0,j.hidePlaceholder)(n)}),n.speed+10)},n.AjaxLoadMore.resetBtnText=function(){!1===n.button_loading_label||n.addons.paging||(n.button.innerHTML=n.button_label)},n.AjaxLoadMore.error=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;n.loading=!1,n.addons.paging||(n.button.classList.remove("loading"),n.AjaxLoadMore.resetBtnText()),console.log("Error: ",t),t.response?console.log("Error Msg: ",t.message):t.request?console.log(t.request):console.log("Error Msg: ",t.message),e&&console.log("ALM Error started in "+e),t.config&&console.log("ALM Error Debug: ",t.config)},n.AjaxLoadMore.click=function(t){var e=t.target||t.currentTarget;"true"===n.pause&&(n.pause=!1,n.pause_override=!1,n.AjaxLoadMore.loadPosts()),n.loading||n.finished||e.classList.contains("done")||(n.loading=!0,n.page++,n.AjaxLoadMore.loadPosts())},n.addons.paging||n.fetchingPreviousPost||(n.button.onclick=n.AjaxLoadMore.click),n.addons.paging||n.addons.tabs||n.scroll_distance_perc){var z=void 0;n.window.onresize=function(){clearTimeout(z),z=setTimeout((function(t){n.addons.tabs&&"function"==typeof almOnTabsWindowResize&&window.almOnTabsWindowResize(n),n.addons.paging&&"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.scroll_distance_perc&&(n.scroll_distance=(0,S.default)(n))}),n.speed)}}n.AjaxLoadMore.isVisible=function(){return n.visible=n.main.clientWidth>0&&n.main.clientHeight>0,n.visible},n.AjaxLoadMore.triggerWindowResize=function(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}},n.AjaxLoadMore.scroll=function(){n.timer&&clearTimeout(n.timer),n.timer=setTimeout((function(){if(n.AjaxLoadMore.isVisible()&&!n.fetchingPreviousPost){var t=n.trigger.getBoundingClientRect(),e=Math.round(t.top-n.window.innerHeight)+n.scroll_distance<=0;if(n.window!==window)e=n.window.querySelector(".ajax-load-more-wrap").offsetHeight<=Math.round(n.window.scrollTop+n.window.offsetHeight-n.scroll_distance);(!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"===n.pause&&"true"===n.pause_override||!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"!==n.pause)&&n.button.click()}}),25)},n.AjaxLoadMore.scrollSetup=function(){n.scroll&&!n.addons.paging&&(""!==n.scroll_container&&(n.window=document.querySelector(n.scroll_container)?document.querySelector(n.scroll_container):n.window),n.window.addEventListener("scroll",n.AjaxLoadMore.scroll),n.window.addEventListener("touchstart",n.AjaxLoadMore.scroll),n.window.addEventListener("wheel",(function(t){Math.sign(t.deltaY)>0&&n.AjaxLoadMore.scroll()})),n.window.addEventListener("keyup",(function(t){switch(t.keyCode?t.keyCode:t.which){case 35:case 34:n.AjaxLoadMore.scroll()}})))},n.AjaxLoadMore.destroyed=function(){n.disable_ajax=!0,n.addons.paging||(n.button.style.display="none",n.AjaxLoadMore.triggerDone(),"function"==typeof almDestroyed&&window.almDestroyed(n))},n.AjaxLoadMore.transitionEnd=function(){setTimeout((function(){n.AjaxLoadMore.resetBtnText(),n.main.classList.remove("alm-loading"),n.button.classList.remove("loading"),n.AjaxLoadMore.triggerAddons(n),n.addons.paging||setTimeout((function(){n.loading=!1}),3*n.speed)}),100),(0,j.hidePlaceholder)(n)},n.AjaxLoadMore.setLocalizedVar=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";n.localize&&""!==t&&""!==e&&(n.localize[t]=e.toString(),window[n.master_id+"_vars"][t]=e.toString())},n.AjaxLoadMore.init=function(){if("true"===n.addons.preloaded&&1==n.destroy_after&&n.AjaxLoadMore.destroyed(),n.addons.paging||n.addons.single_post||(n.disable_ajax?(n.finished=!0,n.button.classList.add("done")):"true"===n.pause?(n.button.innerHTML=n.button_label,n.loading=!1):n.AjaxLoadMore.loadPosts()),n.addons.single_post&&(n.AjaxLoadMore.getSinglePost(),n.loading=!1,(0,p.tableOfContents)(n,!0,!0)),"true"===n.addons.preloaded&&n.addons.seo&&!n.addons.paging&&setTimeout((function(){"function"==typeof almSEO&&n.start_page<1&&window.almSEO(n,!0)}),n.speed),"true"!==n.addons.preloaded||n.addons.paging||setTimeout((function(){n.addons.preloaded_total_posts<=parseInt(n.addons.preloaded_amount)&&n.AjaxLoadMore.triggerDone(),0==n.addons.preloaded_total_posts&&("function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,x.default)(n.content,n.no_results))}),n.speed),"true"===n.addons.preloaded&&(n.resultsText&&f.almInitResultsText(n,"preloaded"),(0,p.tableOfContents)(n,n.init,!0)),n.addons.nextpage){if(n.listing.querySelector(".alm-nextpage")&&!n.addons.paging){var t=n.listing.querySelectorAll(".alm-nextpage");if(t){var e=t[0],r=n.localize.total_posts?parseInt(n.localize.total_posts):e.dataset.totalPosts;t.length!==r&&parseInt(e.dataset.id)!==r||n.AjaxLoadMore.triggerDone()}}n.resultsText&&f.almInitResultsText(n,"nextpage"),(0,p.tableOfContents)(n,n.init,!0)}n.addons.woocommerce&&((0,O.wooInit)(n),n.resultsText,n.addons.woocommerce_paged>=parseInt(n.addons.woocommerce_pages)&&n.AjaxLoadMore.triggerDone()),n.window.addEventListener("load",(function(){n.is_masonry_preloaded&&F(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,v.default)(n,!0,!1);case 2:n.masonry_init=!1;case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an error with ALM Masonry")})),"function"==typeof almOnLoad&&window.almOnLoad(n)}))},setTimeout((function(){n.proceed=!0,n.AjaxLoadMore.scrollSetup()}),500),n.AjaxLoadMore.init(),window.almUpdateCurrentPage=function(t,e,n){n.page=t,n.page=n.addons.nextpage&&!n.addons.paging?n.page-1:n.page;var r="",o="";n.addons.paging_init&&"true"===n.addons.preloaded?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.addons.preloaded_amount=0,n.AjaxLoadMore.pagingPreloadedInit(r)),n.addons.paging_init=!1,n.init=!1):n.addons.paging_init&&n.addons.nextpage?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.AjaxLoadMore.pagingNextpageInit(r)),n.addons.paging_init=!1,n.init=!1):n.AjaxLoadMore.loadPosts()},window.almGetParentContainer=function(){return n.listing},window.almGetObj=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==t?n[t]:n},window.almTriggerClick=function(){n.button.click()}};window.almInit=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;new t(e,n)};var e=document.querySelectorAll(".ajax-load-more-wrap");e.length&&[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e)).forEach((function(e,n){new t(e,n)}))}();e.filter=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fade",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t||!e||!n)return!1;k=!0,(0,b.default)(t,e,n,"filter")};e.tab=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="fade",n=alm_localize.speed?parseInt(alm_localize.speed):200;if(!t)return!1;k=!0,(0,b.default)(e,n,t,"tab")};e.tracking=function(t){"function"==typeof gtag&&(gtag("event","page_view",{page_path:t}),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (gtag)")),"function"==typeof ga&&(ga("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (ga)")),"function"==typeof __gaTracker&&(__gaTracker("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (__gaTracker)")),"function"==typeof almAnalytics&&window.almAnalytics(t)};e.start=function(t){if(!t)return!1;window.almInit(t)};e.almScroll=function(t){if(!t)return!1;window.scrollTo({top:t,behavior:"smooth"})};e.getOffset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=t.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+r,left:e.left+n}};e.render=function(t){if(!t)return!1}},function(t,e,n){t.exports=n(139)},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(13),o=n(144),a=n(146),i=n(147),s=n(148),c=n(99);t.exports=function(t){return new Promise((function(e,l){var u=t.data,d=t.headers;r.isFormData(u)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",g=t.auth.password||"";d.Authorization="Basic "+btoa(p+":"+g)}if(f.open(t.method.toUpperCase(),a(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?i(f.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};o(e,l,r),f=null}},f.onerror=function(){l(c("Network Error",t,null,f)),f=null},f.ontimeout=function(){l(c("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var h=n(149),m=(t.withCredentials||s(t.url))&&t.xsrfCookieName?h.read(t.xsrfCookieName):void 0;m&&(d[t.xsrfHeaderName]=m)}if("setRequestHeader"in f&&r.forEach(d,(function(t,e){void 0===u&&"content-type"===e.toLowerCase()?delete d[e]:f.setRequestHeader(e,t)})),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),l(t),f=null)})),void 0===u&&(u=null),f.send(u)}))}},function(t,e,n){"use strict";var r=n(145);t.exports=function(t,e,n,o,a){var i=new Error(t);return r(i,e,n,o,a)}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(160),a=(r=o)&&r.__esModule?r:{default:r};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;for(var r=0;r<e.length;r++){var o=e[r];(0,a.default)(t,o,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)return!1;var e=["#text","#comment"],n=t.filter((function(t){return-1===e.indexOf(t.nodeName.toLowerCase())}));return n}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=0,a=0,i=0,s="true"===t.addons.preloaded,c=!!t.addons.paging,l=t.orginal_posts_per_page;switch(e){case"nextpage":a=n=parseInt(t.localize.page),r=parseInt(t.localize.total_posts),i=parseInt(r),o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:n=parseInt(t.page)+1,r=Math.ceil(t.localize.total_posts/l),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts),s&&(n=c?t.page+1:n+1),o(t.resultsText,n,r,a,i)}}Object.defineProperty(e,"__esModule",{value:!0}),e.almResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||"true"===t.nested)return!1;var n="nextpage"===e||"woocommerce"===e?e:"standard";r(t,n)},e.almGetResultsText=r,e.almInitResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=Math.ceil(t.localize.total_posts/t.orginal_posts_per_page),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts);switch(e){case"nextpage":n=t.addons.nextpage_startpage,a=n,r=i,o(t.resultsText,n,i,a,i);break;case"preloaded":n=t.addons.paging&&t.addons.seo?parseInt(t.start_page)+1:parseInt(t.page)+1,o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:console.log("No results to set.")}};var o=function(t,e,n,r,o){t.forEach((function(t){var a=(n=parseInt(n))>0?alm_localize.results_text:alm_localize.no_results_text;n>0?(a=(a=(a=(a=(a=(a=a.replace("{num}",'<span class="alm-results-num">'+e+"</span>")).replace("{page}",'<span class="alm-results-page">'+e+"</span>")).replace("{total}",'<span class="alm-results-total">'+n+"</span>")).replace("{pages}",'<span class="alm-results-pages">'+n+"</span>")).replace("{post_count}",'<span class="alm-results-post_count">'+r+"</span>")).replace("{total_posts}",'<span class="alm-results-total_posts">'+o+"</span>"),t.innerHTML=a):t.innerHTML=a}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tableOfContents=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.localize.post_count?parseInt(t.localize.post_count):0;if(0==r&&!t.addons.single_post)return!1;if(t&&t.tableofcontents&&t.transition_container&&"masonry"!==t.transition){var o=t.tableofcontents.dataset.offset?parseInt(t.tableofcontents.dataset.offset):30,a=t.start_page?parseInt(t.start_page):0,i=t.addons.filters_startpage?parseInt(t.addons.filters_startpage):0,c=t.addons.nextpage_startpage?parseInt(t.addons.nextpage_startpage):0,l=parseInt(t.page),u="true"===t.addons.preloaded;if(t.addons.paging||t.addons.nextpage)return!1;e?setTimeout((function(){if(t.addons.seo&&a>1||t.addons.filters&&i>1||t.addons.nextpage&&c>1){if(t.addons.seo&&a>1)for(var e=0;e<a;e++)s(t,e,o);if(t.addons.filters&&i>1)for(var r=0;r<i;r++)s(t,r,o);if(t.addons.nextpage&&c>1)for(var d=0;d<c;d++)s(t,d,o)}else!n&&u&&(l+=1),s(t,l,o)}),100):(u&&(t.addons.seo&&a>0||t.addons.filters&&i>0?l=l:l+=1),s(t,l,o))}},e.clearTOC=function(){var t=document.querySelector(".alm-toc");t&&(t.innerHTML="")};var r,o=n(95),a=n(49),i=(r=a)&&r.__esModule?r:{default:r};function s(t,e,n){if(!t.tableofcontents)return!1;var r=document.createElement("button");r.type="button",e=parseInt(e)+1,r.innerHTML=function(t,e){var n=e;if(t.addons.single_post){var r=document.querySelector('.alm-reveal.alm-single-post[data-page="'+(e-1)+'"]');n=r?r.dataset.title:n}var o="almTOCLabel_"+t.id;"function"==typeof window[o]&&(n=window[o](e,n));return n}(t,e),r.dataset.page=e,t.tableofcontents.appendChild(r),r.addEventListener("click",(function(e){var r=this.dataset.page,a=document.querySelector(".alm-reveal:nth-child("+r+")")||document.querySelector(".alm-nextpage:nth-child("+r+")");if(!a)return!1;var s="function"==typeof o.getOffset?(0,o.getOffset)(a).top:a.offsetTop;(0,o.almScroll)(s-n),setTimeout((function(){(0,i.default)(t,a,r,!1)}),1e3)}))}},function(t,e,n){"use strict";function r(t,e,n,r,o){return e.classList.add(r),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.createMasonrySEOPage=function(t,e){if(!t.addons.seo)return e;var n=window.location.search,o=t.page+1;return o="true"===t.addons.preloaded?o+1:o,e=r(t,e,n,"alm-seo",o)},e.createMasonrySEOPages=function(t,e){if(!t.addons.seo)return e;var n=1,o=t.page,a=window.location.search;if(t.start_page>1){for(var i=parseInt(t.posts_per_page),s=[],c=0;c<e.length;c+=i)s.push(e.slice(c,i+c));for(var l=0;l<s.length;l++){var u=l>0?l*i:0;n=l+1,e[u]&&(e[u]=r(t,e[u],a,"alm-seo",n))}}else n=o,e[0]=r(t,e[0],a,"alm-seo",n);return e},e.createSEOAttributes=function(t,e,n,r,o){e.setAttribute("class","alm-reveal"+r+t.tcc),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n;return e}},function(t,e,n){t.exports=!n(8)&&!n(2)((function(){return 7!=Object.defineProperty(n(69)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(1),o=n(7),a=n(31),i=n(70),s=n(9).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(14),o=n(16),a=n(52)(!1),i=n(71)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),c=0,l=[];for(n in s)n!=i&&r(s,n)&&l.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~a(l,n)||l.push(n));return l}},function(t,e,n){var r=n(9),o=n(3),a=n(32);t.exports=n(8)?Object.defineProperties:function(t,e){o(t);for(var n,i=a(e),s=i.length,c=0;s>c;)r.f(t,n=i[c++],e[n]);return t}},function(t,e,n){var r=n(16),o=n(35).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return i&&"[object Window]"==a.call(t)?function(t){try{return o(t)}catch(t){return i.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(8),o=n(32),a=n(53),i=n(46),s=n(10),c=n(45),l=Object.assign;t.exports=!l||n(2)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r}))?function(t,e){for(var n=s(t),l=arguments.length,u=1,d=a.f,f=i.f;l>u;)for(var p,g=c(arguments[u++]),h=d?o(g).concat(d(g)):o(g),m=h.length,v=0;m>v;)p=h[v++],r&&!f.call(g,p)||(n[p]=g[p]);return n}:l},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(19),o=n(4),a=n(115),i=[].slice,s={},c=function(t,e,n){if(!(e in s)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";s[e]=Function("F,a","return new F("+r.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),s=function(){var r=n.concat(i.call(arguments));return this instanceof s?c(e,r.length,r):a(e,r,t)};return o(e.prototype)&&(s.prototype=e.prototype),s}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(1).parseInt,o=n(40).trim,a=n(75),i=/^[-+]?0[xX]/;t.exports=8!==r(a+"08")||22!==r(a+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(i.test(n)?16:10))}:r},function(t,e,n){var r=n(1).parseFloat,o=n(40).trim;t.exports=1/r(n(75)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(24);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(4),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(34),o=n(29),a=n(39),i={};n(15)(i,n(5)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(i,{next:o(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&r(a.call(t)),e}}},function(t,e,n){var r=n(271);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(19),o=n(10),a=n(45),i=n(6);t.exports=function(t,e,n,s,c){r(e);var l=o(t),u=a(l),d=i(l.length),f=c?d-1:0,p=c?-1:1;if(n<2)for(;;){if(f in u){s=u[f],f+=p;break}if(f+=p,c?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;c?f>=0:d>f;f+=p)f in u&&(s=e(s,u[f],f,l));return s}},function(t,e,n){"use strict";var r=n(10),o=n(33),a=n(6);t.exports=[].copyWithin||function(t,e){var n=r(this),i=a(n.length),s=o(t,i),c=o(e,i),l=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===l?i:o(l,i))-c,i-s),d=1;for(c<s&&s<c+u&&(d=-1,c+=u-1,s+=u-1);u-- >0;)c in n?n[s]=n[c]:delete n[s],s+=d,c+=d;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(90);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(8)&&"g"!=/./g.flags&&n(9).f(RegExp.prototype,"flags",{configurable:!0,get:n(56)})},function(t,e,n){"use strict";var r,o,a,i,s=n(31),c=n(1),l=n(18),u=n(47),d=n(0),f=n(4),p=n(19),g=n(43),h=n(59),m=n(48),v=n(92).set,y=n(291)(),_=n(130),b=n(292),x=n(60),w=n(131),S=c.TypeError,A=c.process,j=A&&A.versions,E=j&&j.v8||"",P=c.Promise,O="process"==u(A),L=function(){},M=o=_.f,T=!!function(){try{var t=P.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(L,L)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof e&&0!==E.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},F=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){for(var r=t._v,o=1==t._s,a=0,i=function(e){var n,a,i,s=o?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(o||(2==t._h&&k(t),t._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),i=!0)),n===e.promise?l(S("Promise-chain cycle")):(a=I(n))?a.call(n,c,l):c(n)):l(r)}catch(t){u&&!i&&u.exit(),l(t)}};n.length>a;)i(n[a++]);t._c=[],t._n=!1,e&&!t._h&&C(t)}))}},C=function(t){v.call(c,(function(){var e,n,r,o=t._v,a=N(t);if(a&&(e=b((function(){O?A.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=O||N(t)?2:1),t._a=void 0,a&&e.e)throw e.v}))},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){v.call(c,(function(){var e;O?A.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})}))},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),F(e,!0))},D=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=I(t))?y((function(){var r={_w:n,_d:!1};try{e.call(t,l(D,r,1),l(R,r,1))}catch(t){R.call(r,t)}})):(n._v=t,n._s=1,F(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};T||(P=function(t){g(this,P,"Promise","_h"),p(t),r.call(this);try{t(l(D,this,1),l(R,this,1))}catch(t){R.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(44)(P.prototype,{then:function(t,e){var n=M(m(this,P));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=O?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&F(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new r;this.promise=t,this.resolve=l(D,t,1),this.reject=l(R,t,1)},_.f=M=function(t){return t===P||t===i?new a(t):o(t)}),d(d.G+d.W+d.F*!T,{Promise:P}),n(39)(P,"Promise"),n(42)("Promise"),i=n(7).Promise,d(d.S+d.F*!T,"Promise",{reject:function(t){var e=M(this);return(0,e.reject)(t),e.promise}}),d(d.S+d.F*(s||!T),"Promise",{resolve:function(t){return w(s&&this===i?P:this,t)}}),d(d.S+d.F*!(T&&n(55)((function(t){P.all(t).catch(L)}))),"Promise",{all:function(t){var e=this,n=M(e),r=n.resolve,o=n.reject,a=b((function(){var n=[],a=0,i=1;h(t,!1,(function(t){var s=a++,c=!1;n.push(void 0),i++,e.resolve(t).then((function(t){c||(c=!0,n[s]=t,--i||r(n))}),o)})),--i||r(n)}));return a.e&&o(a.v),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,o=b((function(){h(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(19);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(3),o=n(4),a=n(130);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(9).f,o=n(34),a=n(44),i=n(18),s=n(43),c=n(59),l=n(81),u=n(126),d=n(42),f=n(8),p=n(28).fastKey,g=n(38),h=f?"_s":"size",m=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var u=t((function(t,r){s(t,u,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[h]=0,null!=r&&c(r,n,t[l],t)}));return a(u.prototype,{clear:function(){for(var t=g(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[h]=0},delete:function(t){var n=g(this,e),r=m(n,t);if(r){var o=r.n,a=r.p;delete n._i[r.i],r.r=!0,a&&(a.n=o),o&&(o.p=a),n._f==r&&(n._f=o),n._l==r&&(n._l=a),n[h]--}return!!r},forEach:function(t){g(this,e);for(var n,r=i(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!m(g(this,e),t)}}),f&&r(u.prototype,"size",{get:function(){return g(this,e)[h]}}),u},def:function(t,e,n){var r,o,a=m(t,e);return a?a.v=n:(t._l=a={i:o=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=a),r&&(r.n=a),t[h]++,"F"!==o&&(t._i[o]=a)),t},getEntry:m,setStrong:function(t,e,n){l(t,e,(function(t,n){this._t=g(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(e)}}},function(t,e,n){"use strict";var r=n(44),o=n(28).getWeak,a=n(3),i=n(4),s=n(43),c=n(59),l=n(23),u=n(14),d=n(38),f=l(5),p=l(6),g=0,h=function(t){return t._l||(t._l=new m)},m=function(){this.a=[]},v=function(t,e){return f(t.a,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,a){var l=t((function(t,r){s(t,l,e,"_i"),t._t=e,t._i=g++,t._l=void 0,null!=r&&c(r,n,t[a],t)}));return r(l.prototype,{delete:function(t){if(!i(t))return!1;var n=o(t);return!0===n?h(d(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!i(t))return!1;var n=o(t);return!0===n?h(d(this,e)).has(t):n&&u(n,this._i)}}),l},def:function(t,e,n){var r=o(a(e),!0);return!0===r?h(t).set(e,n):r[t._i]=n,t},ufstore:h}},function(t,e,n){var r=n(20),o=n(6);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(35),o=n(53),a=n(3),i=n(1).Reflect;t.exports=i&&i.ownKeys||function(t){var e=r.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(6),o=n(77),a=n(25);t.exports=function(t,e,n,i){var s=String(a(t)),c=s.length,l=void 0===n?" ":String(n),u=r(e);if(u<=c||""==l)return s;var d=u-c,f=o.call(l,Math.ceil(d/l.length));return f.length>d&&(f=f.slice(0,d)),i?f+s:s+f}},function(t,e,n){var r=n(8),o=n(32),a=n(16),i=n(46).f;t.exports=function(t){return function(e){for(var n,s=a(e),c=o(s),l=c.length,u=0,d=[];l>u;)n=c[u++],r&&!i.call(s,n)||d.push(t?[n,s[n]]:s[n]);return d}}},function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g,a=n(94),i={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=a.assign({default:i.RFC3986,formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return String(t)}}},i)},function(t,e,n){"use strict";var r=n(13),o=n(97),a=n(141),i=n(63);function s(t){var e=new a(t),n=o(a.prototype.request,e);return r.extend(n,a.prototype,e),r.extend(n,e),n}var c=s(i);c.Axios=a,c.create=function(t){return s(r.merge(i,t))},c.Cancel=n(101),c.CancelToken=n(155),c.isCancel=n(100),c.all=function(t){return Promise.all(t)},c.spread=n(156),t.exports=c,t.exports.default=c},function(t,e){
7
  /*!
8
  * Determine if an object is a Buffer
9
  *
10
  * @author Feross Aboukhadijeh <https://feross.org>
11
  * @license MIT
12
  */
13
- t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";var r=n(63),o=n(13),a=n(150),i=n(151);function s(t){this.defaults=t,this.interceptors={request:new a,response:new a}}s.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),(t=o.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[i,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},o.forEach(["delete","get","head","options"],(function(t){s.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}})),o.forEach(["post","put","patch"],(function(t){s.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))}})),t.exports=s},function(t,e){var n,r,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var t=s(f);u=!0;for(var e=l.length;e;){for(c=l,l=[];++d<e;)c&&c[d].run();d=-1,e=l.length}c=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function h(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new g(t,e)),1!==l.length||u||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(99);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t}},function(t,e,n){"use strict";var r=n(13);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var a;if(n)a=n(e);else if(r.isURLSearchParams(e))a=e.toString();else{var i=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),i.push(o(e)+"="+o(t))})))})),a=i.join("&")}return a&&(t+=(-1===t.indexOf("?")?"?":"&")+a),t}},function(t,e,n){"use strict";var r=n(13),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,a,i={};return t?(r.forEach(t.split("\n"),(function(t){if(a=t.indexOf(":"),e=r.trim(t.substr(0,a)).toLowerCase(),n=r.trim(t.substr(a+1)),e){if(i[e]&&o.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([n]):i[e]?i[e]+", "+n:n}})),i):i}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,a,i){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(13);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,n){"use strict";var r=n(13),o=n(152),a=n(100),i=n(63),s=n(153),c=n(154);function l(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return l(t),t.baseURL&&!s(t.url)&&(t.url=c(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||i.adapter)(t).then((function(e){return l(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(l(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(101);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){!function(){"use strict";t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var n,r=t.HTMLElement||t.Element,o={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:r.prototype.scroll||s,scrollIntoView:r.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,i=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?g.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):o.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?o.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):g.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==c(arguments[0])){var t=arguments[0].left,e=arguments[0].top;g.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==c(arguments[0])){var n=f(this),r=n.getBoundingClientRect(),a=this.getBoundingClientRect();n!==e.body?(g.call(this,n,n.scrollLeft+a.left-r.left,n.scrollTop+a.top-r.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:a.left,top:a.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(t,e){this.scrollLeft=t,this.scrollTop=e}function c(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function l(t,e){return"Y"===e?t.clientHeight+i<t.scrollHeight:"X"===e?t.clientWidth+i<t.scrollWidth:void 0}function u(e,n){var r=t.getComputedStyle(e,null)["overflow"+n];return"auto"===r||"scroll"===r}function d(t){var e=l(t,"Y")&&u(t,"Y"),n=l(t,"X")&&u(t,"X");return e||n}function f(t){for(;t!==e.body&&!1===d(t);)t=t.parentNode||t.host;return t}function p(e){var n,r,o,i,s=(a()-e.startTime)/468;i=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*i)),r=e.startX+(e.x-e.startX)*n,o=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,r,o),r===e.x&&o===e.y||t.requestAnimationFrame(p.bind(t,e))}function g(n,r,i){var c,l,u,d,f=a();n===e.body?(c=t,l=t.scrollX||t.pageXOffset,u=t.scrollY||t.pageYOffset,d=o.scroll):(c=n,l=n.scrollLeft,u=n.scrollTop,d=s),p({scrollable:c,method:d,startTime:f,startX:l,startY:u,x:r,y:i})}}}}()},function(t,e,n){"use strict";var r,o,a,i;history,Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}),void 0===Array.isArray&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.from||(Array.from=(r=Object.prototype.toString,o=function(t){return"function"==typeof t||"[object Function]"===r.call(t)},a=Math.pow(2,53)-1,i=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),a)},function(t){var e=this,n=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!o(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var s,c=i(n.length),l=o(e)?Object(new e(c)):new Array(c),u=0;u<c;)s=n[u],l[u]=a?void 0===r?a(s,u):a.call(r,s,u):s,u+=1;return l.length=c,l})),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["#text","#comment"];e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;-1===r.indexOf(e.nodeName.toLowerCase())&&("masonry"===n&&(e.style.opacity=0),t.appendChild(e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=document.createElement("tbody");e.innerHTML=t;var n=[e];return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(64);e.default=function(t){if(!t)return!1;var e="",n=".html",o=t.addons.cache_path+t.addons.cache_id;if(t.init&&t.addons.seo&&t.isPaged)e=o+"/page-1-"+t.start_page+n;else if(t.addons.filters){var a=(0,r.parseQuerystring)(o);if(t.init&&t.isPaged)e=a+"/page-1-"+t.addons.filters_startpage+n;else{var i=t.page+1;"true"===t.addons.preloaded&&(i=t.page+2),e=a+"/page-"+i+n}}else if(t.addons.nextpage){var s=void 0;t.addons.paging?s=parseInt(t.page)+1:(s=parseInt(t.page)+2,t.isPaged&&(s=parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)),e=o+"/page-"+s+n}else e=t.addons.single_post?o+"/"+t.addons.single_post_id+n:o+"/page-"+(t.page+1)+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){for(var e=window.location.search.substring(1).split("&"),n=0;n<e.length;n++){var r=e[n].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.almGetAjaxParams=function(t,e,n){var r={id:t.id,post_id:t.post_id,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,post_type:t.post_type,repeater:t.repeater,seo_start_page:t.start_page};t.theme_repeater&&(r.theme_repeater=t.theme_repeater);t.addons.filters&&(r.filters=t.addons.filters,r.filters_startpage=t.addons.filters_startpage);t.addons.paging&&(r.paging=t.addons.paging);t.addons.preloaded&&(r.preloaded=t.addons.preloaded,r.preloaded_amount=t.addons.preloaded_amount);"true"===t.addons.cache&&(r.cache_id=t.addons.cache_id,r.cache_logged_in=t.addons.cache_logged_in);t.acf_array&&(r.acf=t.acf_array);t.term_query_array&&(r.term_query=t.term_query_array);t.cta_array&&(r.cta=t.cta_array);t.comments_array&&(r.comments=t.comments_array);t.nextpage_array&&(r.nextpage=t.nextpage_array);t.single_post_array&&(r.single_post=t.single_post_array);t.users_array&&(r.users=t.users_array);t.listing.dataset.lang&&(r.lang=t.listing.dataset.lang);t.listing.dataset.stickyPosts&&(r.sticky_posts=t.listing.dataset.stickyPosts);t.listing.dataset.postFormat&&(r.post_format=t.listing.dataset.postFormat);t.listing.dataset.category&&(r.category=t.listing.dataset.category);t.listing.dataset.categoryAnd&&(r.category__and=t.listing.dataset.categoryAnd);t.listing.dataset.categoryNotIn&&(r.category__not_in=t.listing.dataset.categoryNotIn);t.listing.dataset.tag&&(r.tag=t.listing.dataset.tag);t.listing.dataset.tagAnd&&(r.tag__and=t.listing.dataset.tagAnd);t.listing.dataset.tagNotIn&&(r.tag__not_in=t.listing.dataset.tagNotIn);t.listing.dataset.taxonomy&&(r.taxonomy=t.listing.dataset.taxonomy);t.listing.dataset.taxonomyTerms&&(r.taxonomy_terms=t.listing.dataset.taxonomyTerms);t.listing.dataset.taxonomyOperator&&(r.taxonomy_operator=t.listing.dataset.taxonomyOperator);t.listing.dataset.taxonomyRelation&&(r.taxonomy_relation=t.listing.dataset.taxonomyRelation);t.listing.dataset.metaKey&&(r.meta_key=t.listing.dataset.metaKey);t.listing.dataset.metaValue&&(r.meta_value=t.listing.dataset.metaValue);t.listing.dataset.metaCompare&&(r.meta_compare=t.listing.dataset.metaCompare);t.listing.dataset.metaRelation&&(r.meta_relation=t.listing.dataset.metaRelation);t.listing.dataset.metaType&&(r.meta_type=t.listing.dataset.metaType);t.listing.dataset.author&&(r.author=t.listing.dataset.author);t.listing.dataset.year&&(r.year=t.listing.dataset.year);t.listing.dataset.month&&(r.month=t.listing.dataset.month);t.listing.dataset.day&&(r.day=t.listing.dataset.day);t.listing.dataset.order&&(r.order=t.listing.dataset.order);t.listing.dataset.orderby&&(r.orderby=t.listing.dataset.orderby);t.listing.dataset.postStatus&&(r.post_status=t.listing.dataset.postStatus);t.listing.dataset.postIn&&(r.post__in=t.listing.dataset.postIn);t.listing.dataset.postNotIn&&(r.post__not_in=t.listing.dataset.postNotIn);t.listing.dataset.exclude&&(r.exclude=t.listing.dataset.exclude);t.listing.dataset.search&&(r.search=t.listing.dataset.search);t.listing.dataset.s&&(r.search=t.listing.dataset.s);t.listing.dataset.customArgs&&(r.custom_args=t.listing.dataset.customArgs);return r.action=e,r.query_type=n,r},e.almGetRestParams=function(t){return{id:t.id,post_id:t.post_id,posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),post_type:t.post_type,post_format:t.listing.dataset.postFormat,category:t.listing.dataset.category,category__not_in:t.listing.dataset.categoryNotIn,tag:t.listing.dataset.tag,tag__not_in:t.listing.dataset.tagNotIn,taxonomy:t.listing.dataset.taxonomy,taxonomy_terms:t.listing.dataset.taxonomyTerms,taxonomy_operator:t.listing.dataset.taxonomyOperator,taxonomy_relation:t.listing.dataset.taxonomyRelation,meta_key:t.listing.dataset.metaKey,meta_value:t.listing.dataset.metaValue,meta_compare:t.listing.dataset.metaCompare,meta_relation:t.listing.dataset.metaRelation,meta_type:t.listing.dataset.metaType,author:t.listing.dataset.author,year:t.listing.dataset.year,month:t.listing.dataset.month,day:t.listing.dataset.day,post_status:t.listing.dataset.postStatus,order:t.listing.dataset.order,orderby:t.listing.dataset.orderby,post__in:t.listing.dataset.postIn,post__not_in:t.listing.dataset.postNotIn,search:t.listing.dataset.search,s:t.listing.dataset.s,custom_args:t.listing.dataset.customArgs,lang:t.lang,preloaded:t.addons.preloaded,preloaded_amount:t.addons.preloaded_amount,seo_start_page:t.start_page}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(104));e.default=function(t){return new Promise((function(e){var n="standard";t.addons.nextpage?(n="nextpage",t.addons.paging?t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)):t.addons.woocommerce?(n="woocommerce",t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1)):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1),"true"===t.addons.preloaded||t.addons.nextpage||t.addons.woocommerce||t.AjaxLoadMore.setLocalizedVar("total_posts",t.totalposts),t.AjaxLoadMore.setLocalizedVar("post_count",function(t){var e=parseInt(t.posts),n=parseInt(t.addons.preloaded_amount),r=e+n;return r=t.start_page>1?r-n:r,r=t.addons.filters_startpage>1?r-n:r,r=t.addons.single_post?r+1:r,r=t.addons.nextpage?r+1:r}(t)),r.almResultsText(t,n),e(!0)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(65);(r=o)&&r.__esModule;var a={init:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else{var e=0,n=t.childNodes;if(void 0===n){var r=(new DOMParser).parseFromString(t,"text/html");r&&(n=r.body.childNodes)}for(;e<n.length;)this.replace(n[e++])}return t},replace:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else for(var e=0,n=t.childNodes;e<n.length;)this.replace(n[e++]);return t},isScript:function(t){return"SCRIPT"===t.tagName},clone:function(t){var e=document.createElement("script");e.text=t.innerHTML;for(var n=t.attributes.length-1;n>=0;n--)e.setAttribute(t.attributes[n].name,t.attributes[n].value);return e}};e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=d(n(50)),o=d(n(102)),a=d(n(65)),i=d(n(66)),s=d(n(103)),c=n(64),l=n(106),u=d(n(49));function d(t){return t&&t.__esModule?t:{default:t}}var f=n(67);e.default=function t(e,n,d){return new Promise((function(p){var g=e.listing,h=e.html,m=e.masonry_selector,v=e.masonry_columnwidth,y=e.masonry_animation,_=e.masonry_horizontalorder,b=e.speed,x=e.masonry_init,w=(b+100)/1e3+"s",S="scale(0.5)",A="scale(1)";if("zoom-out"===y&&(S="translateY(-20px) scale(1.25)",A="translateY(0) scale(1)"),"slide-up"===y&&(S="translateY(50px)",A="translateY(0)"),"slide-down"===y&&(S="translateY(-50px)",A="translateY(0)"),"none"===y&&(S="translateY(0)",A="translateY(0)"),v?isNaN(v)||(v=parseInt(v)):v=m,_="true"===_,d)g.parentNode.style.opacity=0,t(e,!0,!1),p(!0);else if(x&&n)(0,i.default)(g,e.ua),f(g,(function(){var t={itemSelector:m,transitionDuration:w,columnWidth:v,horizontalOrder:_,hiddenStyle:{transform:S,opacity:0},visibleStyle:{transform:A,opacity:1}},n=window.alm_masonry_vars;n&&Object.keys(n).forEach((function(e){t[e]=n[e]}));var o=g.querySelectorAll(m);e.addons.filters&&(o=(0,c.createMasonryFiltersPages)(e,Array.prototype.slice.call(o))),e.addons.seo&&(o=(0,l.createMasonrySEOPages)(e,Array.prototype.slice.call(o))),setTimeout((function(){e.msnry=new Masonry(g,t),(0,r.default)(g.parentNode,125),p(!0)}),1)}));else{var j=(0,s.default)((0,a.default)(h,"text/html"));j&&((0,o.default)(e.listing,j,"masonry"),(0,i.default)(g,e.ua),f(g,(function(){e.msnry.appended(j),(0,u.default)(e,j,j.length,!1),e.addons.filters&&(0,c.createMasonryFiltersPage)(e,j[0]),e.addons.seo&&(0,l.createMasonrySEOPage)(e,j[0]),p(!0)})))}}))}},function(t,e,n){var r,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(r=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},r=n[t]=n[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var r=n.indexOf(e);return-1!=r&&n.splice(r,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var a=n[o];r&&r[a]&&(this.off(t,a),delete r[a]),a.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?r.call(e,n,e,t):r)||(t.exports=o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=s(n(50)),a=s(n(68)),i=n(105);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filter";if(n.target){var o=document.querySelectorAll('.ajax-load-more-wrap[data-id="'+n.target+'"]');o.forEach((function(o){c(t,e,n,o,r)}))}else{var a=document.querySelectorAll(".ajax-load-more-wrap");a.forEach((function(o){c(t,e,n,o,r)}))}(0,i.clearTOC)()};var c=function(t,e,n,r,o){if("fade"===t||"masonry"===t){switch(o){case"filter":r.classList.add("alm-is-filtering"),(0,a.default)(r,e);break;case"tab":r.classList.add("alm-loading");var i=r.querySelector(".alm-listing");r.style.height=i.offsetHeight+"px",(0,a.default)(i,e)}setTimeout((function(){l(e,n,r,o)}),e)}else r.classList.add("alm-is-filtering"),l(e,n,r,o)},l=function(t,e,n,r){var o=n.querySelector(".alm-btn-wrap"),a=n.querySelectorAll(".alm-listing");[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(a)).forEach((function(t){t.innerHTML=""}));var i=o.querySelector(".alm-load-more-btn");i&&i.classList.remove("done");var s=o.querySelector(".alm-paging");s&&(s.style.opacity=0),e.preloadedAmount=0,u(t,e,n,r)},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=arguments[1],n=arguments[2],a=arguments[3],i=n.querySelector(".alm-listing")||n.querySelector(".alm-comments");if(!i)return!1;switch(a){case"filter":var s=!0,c=!1,l=void 0;try{for(var u,d=Object.entries(e)[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value,p=r(f,2),g=p[0],h=p[1];g=g.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase(),i.setAttribute("data-"+g,h)}}catch(t){c=!0,l=t}finally{try{!s&&d.return&&d.return()}finally{if(c)throw l}}(0,o.default)(n,t);break;case"tab":i.setAttribute("data-preloaded","false"),i.setAttribute("data-pause","false"),i.setAttribute("data-tab-template",e.tabTemplate)}var m="";switch(e.target?(m=document.querySelector('.ajax-load-more-wrap[data-id="'+e.target+'"]'))&&window.almInit(m):(m=document.querySelector(".ajax-load-more-wrap"))&&window.almInit(m),a){case"filter":"function"==typeof almFilterComplete&&almFilterComplete();break;case"tab":"function"==typeof almTabsComplete&&almTabsComplete()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)return!1;e=e.replace(/(<p><\/p>)+/g,""),t.innerHTML=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(t&&t.debug){var e={query:t.debug,localize:t.localize};console.log("ALM Debug:",e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t)return!1;var e=-1!==t.scroll_distance_orig.toString().indexOf("-"),n=t.scroll_distance_orig.toString().replace("-","").replace("%",""),r=t.window.innerHeight,o=Math.floor(r/100*parseInt(n));return parseInt(e?"-"+o:o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showPlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&(t.placeholder.style.display="block",(0,r.default)(t.placeholder,75))},e.hidePlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&((0,o.default)(t.placeholder,75),setTimeout((function(){t.placeholder.style.display="none"}),75))};var r=a(n(50)),o=a(n(68));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={html:"",meta:{postcount:1,totalposts:1,debug:"Single Posts Query"}};if(200===t.status&&t.data&&e){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector(e);o&&(n.html=o.innerHTML)}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.singlePostHTML=r,e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCacheFile=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"standard";if("true"!==t.addons.cache||!e||""===e)return!1;var r="single"===n?t.addons.single_post_id:"page-"+(t.page+1),o=new FormData;o.append("action","alm_cache_from_html"),o.append("security",alm_localize.alm_nonce),o.append("cache_id",t.addons.cache_id),o.append("cache_logged_in",t.addons.cache_logged_in),o.append("canonical_url",t.canonical_url),o.append("name",r),o.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,o).then((function(e){console.log("Cache created for: "+t.canonical_url)}))},e.wooCache=function(t,e){if("true"!==t.addons.cache||!e||""===e)return!1;var n=new FormData;n.append("action","alm_cache_from_html"),n.append("security",alm_localize.alm_nonce),n.append("cache_id",t.addons.cache_id),n.append("cache_logged_in",t.addons.cache_logged_in),n.append("canonical_url",t.canonical_url),n.append("name","page-"+t.page),n.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,n).then((function(e){console.log("Cache created for post: "+t.canonical_url)}))};var r,o=n(96),a=(r=o)&&r.__esModule?r:{default:r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wooGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"WooCommerce Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.woocommerce_classes.container);n.html=a?a.innerHTML:"",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];if(t&&e&&e.addons.woocommerce_results_text){var n=t.querySelector(e.addons.woocommerce_classes.results);if(n){var r=n.innerHTML;e.addons.woocommerce_results_text.forEach((function(t){e.localize.woocommerce.settings.previous_page_link&&(r+=e.localize.woocommerce.settings.previous_page_link),t.innerHTML=r}))}}}(r,e)}return n},e.wooInit=function(t){if(!t||!t.addons.woocommerce)return!1;t.button.dataset.page=t.addons.woocommerce_paged+1;var e=t.addons.woocommerce_paged_urls[t.addons.woocommerce_paged];t.button.dataset.url=e||"";var n=document.querySelector(t.addons.woocommerce_classes.container);if(n){n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=n.querySelector(t.addons.woocommerce_classes.products);r&&(r.classList.add("alm-woocommerce"),r.dataset.url=t.addons.woocommerce_paged_urls[t.addons.woocommerce_paged-1],r.dataset.page=t.page,r.dataset.pageTitle=document.title),t.addons.woocommerce_paged>1&&function(t){if(t&&t.addons.woocommerce_results_text){var e=document.querySelectorAll(t.addons.woocommerce_classes.results);if(e.length<1)return!1;e.forEach((function(e){if(t.localize.woocommerce.settings.previous_page_link){var n=e.innerHTML;n+=t.localize.woocommerce.settings.previous_page_link,e.innerHTML=n}}))}}(t)}},e.woocommerce=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise((function(r){var o=document.querySelector(e.addons.woocommerce_classes.container),a=t.querySelectorAll(e.addons.woocommerce_classes.products),s=e.addons.woocommerce_columns;o&&a&&(a=Array.prototype.slice.call(a),i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c(o,a,s,e,n);case 2:r(!0);case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t,"There was an error with WooCommerce")})))}))},e.wooGetURL=function(t){if(!t||!t.trigger)return!1;var e=t.trigger.querySelector("button").dataset.url;return e||""};var r=a(n(66)),o=a(n(49));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}var s=n(67);var c=function(t,e,n,r,a){return new Promise((function(n){var s=e.length,c=0,u=1;!function d(){u<=s?i(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e[c].style.opacity=0,1==u&&(e[c].classList.add("alm-woocommerce"),e[c].dataset.url=r.addons.woocommerce_paged_urls[r.page],e[c].dataset.page=r.page+1,e[c].dataset.pageTitle=a),n.next=4,l(t,e[c],r.ua);case 4:u++,c++,d();case 7:case"end":return n.stop()}}),n,this)})))().catch((function(t){console.log("There was an error with WooCommerce")})):(n(!0),e.map((function(t){t.style.opacity=1})),e[0]&&(0,o.default)(r,e[0],null,!1))}()}))},l=function(t,e,n){return new Promise((function(o){s(e,(function(){e.style.transition="all 0.3s ease",t.appendChild(e),(0,r.default)(e,n),o(!0)}))}))}},function(t,e,n){n(178)},function(t,e,n){"use strict";n(179),n(322),n(324),n(327),n(329),n(331),n(333),n(335),n(337),n(339),n(341),n(343),n(345),n(349)},function(t,e,n){n(180),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(261),n(262),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(89),n(285),n(127),n(286),n(128),n(287),n(288),n(289),n(290),n(129),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),t.exports=n(7)},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(8),i=n(0),s=n(11),c=n(28).KEY,l=n(2),u=n(51),d=n(39),f=n(30),p=n(5),g=n(70),h=n(108),m=n(182),v=n(54),y=n(3),_=n(4),b=n(10),x=n(16),w=n(27),S=n(29),A=n(34),j=n(111),E=n(21),P=n(53),O=n(9),L=n(32),M=E.f,T=O.f,I=j.f,F=r.Symbol,C=r.JSON,N=C&&C.stringify,k=p("_hidden"),R=p("toPrimitive"),D={}.propertyIsEnumerable,z=u("symbol-registry"),q=u("symbols"),B=u("op-symbols"),U=Object.prototype,W="function"==typeof F&&!!P.f,H=r.QObject,V=!H||!H.prototype||!H.prototype.findChild,G=a&&l((function(){return 7!=A(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=M(U,e);r&&delete U[e],T(t,e,n),r&&t!==U&&T(U,e,r)}:T,Y=function(t){var e=q[t]=A(F.prototype);return e._k=t,e},X=W&&"symbol"==typeof F.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof F},Q=function(t,e,n){return t===U&&Q(B,e,n),y(t),e=w(e,!0),y(n),o(q,e)?(n.enumerable?(o(t,k)&&t[k][e]&&(t[k][e]=!1),n=A(n,{enumerable:S(0,!1)})):(o(t,k)||T(t,k,S(1,{})),t[k][e]=!0),G(t,e,n)):T(t,e,n)},$=function(t,e){y(t);for(var n,r=m(e=x(e)),o=0,a=r.length;a>o;)Q(t,n=r[o++],e[n]);return t},J=function(t){var e=D.call(this,t=w(t,!0));return!(this===U&&o(q,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(q,t)||o(this,k)&&this[k][t])||e)},K=function(t,e){if(t=x(t),e=w(e,!0),t!==U||!o(q,e)||o(B,e)){var n=M(t,e);return!n||!o(q,e)||o(t,k)&&t[k][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=I(x(t)),r=[],a=0;n.length>a;)o(q,e=n[a++])||e==k||e==c||r.push(e);return r},tt=function(t){for(var e,n=t===U,r=I(n?B:x(t)),a=[],i=0;r.length>i;)!o(q,e=r[i++])||n&&!o(U,e)||a.push(q[e]);return a};W||(s((F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===U&&e.call(B,n),o(this,k)&&o(this[k],t)&&(this[k][t]=!1),G(this,t,S(1,n))};return a&&V&&G(U,t,{configurable:!0,set:e}),Y(t)}).prototype,"toString",(function(){return this._k})),E.f=K,O.f=Q,n(35).f=j.f=Z,n(46).f=J,P.f=tt,a&&!n(31)&&s(U,"propertyIsEnumerable",J,!0),g.f=function(t){return Y(p(t))}),i(i.G+i.W+i.F*!W,{Symbol:F});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var rt=L(p.store),ot=0;rt.length>ot;)h(rt[ot++]);i(i.S+i.F*!W,"Symbol",{for:function(t){return o(z,t+="")?z[t]:z[t]=F(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in z)if(z[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),i(i.S+i.F*!W,"Object",{create:function(t,e){return void 0===e?A(t):$(A(t),e)},defineProperty:Q,defineProperties:$,getOwnPropertyDescriptor:K,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var at=l((function(){P.f(1)}));i(i.S+i.F*at,"Object",{getOwnPropertySymbols:function(t){return P.f(b(t))}}),C&&i(i.S+i.F*(!W||l((function(){var t=F();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(_(e)||void 0!==t)&&!X(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,N.apply(C,r)}}),F.prototype[R]||n(15)(F.prototype,R,F.prototype.valueOf),d(F,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(51)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(32),o=n(53),a=n(46);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var i,s=n(t),c=a.f,l=0;s.length>l;)c.call(t,i=s[l++])&&e.push(i);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(34)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperty:n(9).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperties:n(110)})},function(t,e,n){var r=n(16),o=n(21).f;n(22)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},function(t,e,n){var r=n(10),o=n(36);n(22)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(10),o=n(32);n(22)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){n(22)("getOwnPropertyNames",(function(){return n(111).f}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4);n(22)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(22)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(22)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(112)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(113)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(74).set})},function(t,e,n){"use strict";var r=n(47),o={};o[n(5)("toStringTag")]="z",o+""!="[object z]"&&n(11)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(114)})},function(t,e,n){var r=n(9).f,o=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in o||n(8)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),o=n(36),a=n(5)("hasInstance"),i=Function.prototype;a in i||n(9).f(i,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),o=n(116);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(0),o=n(117);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(24),i=n(76),s=n(27),c=n(2),l=n(35).f,u=n(21).f,d=n(9).f,f=n(40).trim,p=r.Number,g=p,h=p.prototype,m="Number"==a(n(34)(h)),v="trim"in String.prototype,y=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,a=(e=v?e.trim():f(e,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var i,c=e.slice(2),l=0,u=c.length;l<u;l++)if((i=c.charCodeAt(l))<48||i>o)return NaN;return parseInt(c,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(m?c((function(){h.valueOf.call(n)})):"Number"!=a(n))?i(new g(y(e)),n,p):y(e)};for(var _,b=n(8)?l(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;b.length>x;x++)o(g,_=b[x])&&!o(p,_)&&d(p,_,u(g,_));p.prototype=h,h.constructor=p,n(11)(r,"Number",p)}},function(t,e,n){"use strict";var r=n(0),o=n(20),a=n(118),i=n(77),s=1..toFixed,c=Math.floor,l=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*l[n],l[n]=r%1e7,r=c(r/1e7)},f=function(t){for(var e=6,n=0;--e>=0;)n+=l[e],l[e]=c(n/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==l[t]){var n=String(l[t]);e=""===e?n:e+i.call("0",7-n.length)+n}return e},g=function(t,e,n){return 0===e?n:e%2==1?g(t,e-1,n*t):g(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(2)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,r,s,c=a(this,u),l=o(t),h="",m="0";if(l<0||l>20)throw RangeError(u);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(h="-",c=-c),c>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(c*g(2,69,1))-69)<0?c*g(2,-e,1):c/g(2,e,1),n*=4503599627370496,(e=52-e)>0){for(d(0,n),r=l;r>=7;)d(1e7,0),r-=7;for(d(g(10,r,1),0),r=e-1;r>=23;)f(1<<23),r-=23;f(1<<r),d(1,1),f(2),m=p()}else d(0,n),d(1<<-e,0),m=p()+i.call("0",l);return m=l>0?h+((s=m.length)<=l?"0."+i.call("0",l-s)+m:m.slice(0,s-l)+"."+m.slice(s-l)):h+m}})},function(t,e,n){"use strict";var r=n(0),o=n(2),a=n(118),i=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==i.call(1,void 0)}))||!o((function(){i.call({})}))),"Number",{toPrecision:function(t){var e=a(this,"Number#toPrecision: incorrect invocation!");return void 0===t?i.call(e):i.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(1).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(119)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(119),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&a(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(117);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(116);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(0),o=n(120),a=Math.sqrt,i=Math.acosh;r(r.S+r.F*!(i&&710==Math.floor(i(Number.MAX_VALUE))&&i(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+a(t-1)*a(t+1))}})},function(t,e,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(78);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(79);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(225)})},function(t,e,n){var r=n(78),o=Math.pow,a=o(2,-52),i=o(2,-23),s=o(2,127)*(2-i),c=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),l=r(t);return o<c?l*(o/c/i+1/a-1/a)*c*i:(n=(e=(1+i/a)*o)-(e-o))>s||n!=n?l*(1/0):l*n}},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,a=0,i=0,s=arguments.length,c=0;i<s;)c<(n=o(arguments[i++]))?(a=a*(r=c/n)*r+1,c=n):a+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*Math.sqrt(a)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(2)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,a=65535&r;return 0|o*a+((65535&n>>>16)*a+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(120)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(78)})},function(t,e,n){var r=n(0),o=n(79),a=Math.exp;r(r.S+r.F*n(2)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(a(t-1)-a(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(79),a=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(a(t)+a(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),o=n(33),a=String.fromCharCode,i=String.fromCodePoint;r(r.S+r.F*(!!i&&1!=i.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),o=n(16),a=n(6);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=a(e.length),r=arguments.length,i=[],s=0;n>s;)i.push(String(e[s++])),s<r&&i.push(String(arguments[s]));return i.join("")}})},function(t,e,n){"use strict";n(40)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,n){"use strict";var r=n(80)(!0);n(81)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(0),o=n(80)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(82),i="".endsWith;r(r.P+r.F*n(84)("endsWith"),"String",{endsWith:function(t){var e=a(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),s=void 0===n?r:Math.min(o(n),r),c=String(t);return i?i.call(e,c,s):e.slice(s-c.length,s)===c}})},function(t,e,n){"use strict";var r=n(0),o=n(82);r(r.P+r.F*n(84)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(77)})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(82),i="".startsWith;r(r.P+r.F*n(84)("startsWith"),"String",{startsWith:function(t){var e=a(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return i?i.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(12)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(12)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(12)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(12)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(12)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(12)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(12)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(12)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(12)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(12)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(12)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(12)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(12)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(10),a=n(27);r(r.P+r.F*n(2)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=o(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),o=n(260);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(2),o=Date.prototype.getTime,a=Date.prototype.toISOString,i=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-50000000000001))}))||!r((function(){a.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+i(t.getUTCMonth()+1)+"-"+i(t.getUTCDate())+"T"+i(t.getUTCHours())+":"+i(t.getUTCMinutes())+":"+i(t.getUTCSeconds())+"."+(n>99?n:"0"+i(n))+"Z"}:a},function(t,e,n){var r=Date.prototype,o=r.toString,a=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(11)(r,"toString",(function(){var t=a.call(this);return t==t?o.call(this):"Invalid Date"}))},function(t,e,n){var r=n(5)("toPrimitive"),o=Date.prototype;r in o||n(15)(o,r,n(263))},function(t,e,n){"use strict";var r=n(3),o=n(27);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(54)})},function(t,e,n){"use strict";var r=n(18),o=n(0),a=n(10),i=n(122),s=n(85),c=n(6),l=n(86),u=n(87);o(o.S+o.F*!n(55)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,d,f=a(t),p="function"==typeof this?this:Array,g=arguments.length,h=g>1?arguments[1]:void 0,m=void 0!==h,v=0,y=u(f);if(m&&(h=r(h,g>2?arguments[2]:void 0,2)),null==y||p==Array&&s(y))for(n=new p(e=c(f.length));e>v;v++)l(n,v,m?h(f[v],v):f[v]);else for(d=y.call(f),n=new p;!(o=d.next()).done;v++)l(n,v,m?i(d,h,[o.value,v],!0):o.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(0),o=n(86);r(r.S+r.F*n(2)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=[].join;r(r.P+r.F*(n(45)!=Object||!n(17)(a)),"Array",{join:function(t){return a.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(73),a=n(24),i=n(33),s=n(6),c=[].slice;r(r.P+r.F*n(2)((function(){o&&c.call(o)})),"Array",{slice:function(t,e){var n=s(this.length),r=a(this);if(e=void 0===e?n:e,"Array"==r)return c.call(this,t,e);for(var o=i(t,n),l=i(e,n),u=s(l-o),d=new Array(u),f=0;f<u;f++)d[f]="String"==r?this.charAt(o+f):this[o+f];return d}})},function(t,e,n){"use strict";var r=n(0),o=n(19),a=n(10),i=n(2),s=[].sort,c=[1,2,3];r(r.P+r.F*(i((function(){c.sort(void 0)}))||!i((function(){c.sort(null)}))||!n(17)(s)),"Array",{sort:function(t){return void 0===t?s.call(a(this)):s.call(a(this),o(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(0),a=n(17)([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(4),o=n(54),a=n(5)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),o=n(23)(1);r(r.P+r.F*!n(17)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(2);r(r.P+r.F*!n(17)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(3);r(r.P+r.F*!n(17)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(4);r(r.P+r.F*!n(17)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(124);r(r.P+r.F*!n(17)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(124);r(r.P+r.F*!n(17)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(52)(!1),a=[].indexOf,i=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n(17)(a)),"Array",{indexOf:function(t){return i?a.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=n(20),i=n(6),s=[].lastIndexOf,c=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(c||!n(17)(s)),"Array",{lastIndexOf:function(t){if(c)return s.apply(this,arguments)||0;var e=o(this),n=i(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,a(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(125)}),n(37)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(88)}),n(37)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(23)(5),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("find")},function(t,e,n){"use strict";var r=n(0),o=n(23)(6),a="findIndex",i=!0;a in[]&&Array(1)[a]((function(){i=!1})),r(r.P+r.F*i,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)(a)},function(t,e,n){n(42)("Array")},function(t,e,n){var r=n(1),o=n(76),a=n(9).f,i=n(35).f,s=n(83),c=n(56),l=r.RegExp,u=l,d=l.prototype,f=/a/g,p=/a/g,g=new l(f)!==f;if(n(8)&&(!g||n(2)((function(){return p[n(5)("match")]=!1,l(f)!=f||l(p)==p||"/a/i"!=l(f,"i")})))){l=function(t,e){var n=this instanceof l,r=s(t),a=void 0===e;return!n&&r&&t.constructor===l&&a?t:o(g?new u(r&&!a?t.source:t,e):u((r=t instanceof l)?t.source:t,r&&a?c.call(t):e),n?this:d,l)};for(var h=function(t){t in l||a(l,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},m=i(u),v=0;m.length>v;)h(m[v++]);d.constructor=l,l.prototype=d,n(11)(r,"RegExp",l)}n(42)("RegExp")},function(t,e,n){"use strict";n(128);var r=n(3),o=n(56),a=n(8),i=/./.toString,s=function(t){n(11)(RegExp.prototype,"toString",t,!0)};n(2)((function(){return"/a/b"!=i.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?o.call(t):void 0)})):"toString"!=i.name&&s((function(){return i.call(this)}))},function(t,e,n){"use strict";var r=n(3),o=n(6),a=n(91),i=n(57);n(58)("match",1,(function(t,e,n,s){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var c=r(t),l=String(this);if(!c.global)return i(c,l);var u=c.unicode;c.lastIndex=0;for(var d,f=[],p=0;null!==(d=i(c,l));){var g=String(d[0]);f[p]=g,""===g&&(c.lastIndex=a(l,o(c.lastIndex),u)),p++}return 0===p?null:f}]}))},function(t,e,n){"use strict";var r=n(3),o=n(10),a=n(6),i=n(20),s=n(91),c=n(57),l=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(58)("replace",2,(function(t,e,n,g){return[function(r,o){var a=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,a,o):n.call(String(a),r,o)},function(t,e){var o=g(n,t,this,e);if(o.done)return o.value;var d=r(t),f=String(this),p="function"==typeof e;p||(e=String(e));var m=d.global;if(m){var v=d.unicode;d.lastIndex=0}for(var y=[];;){var _=c(d,f);if(null===_)break;if(y.push(_),!m)break;""===String(_[0])&&(d.lastIndex=s(f,a(d.lastIndex),v))}for(var b,x="",w=0,S=0;S<y.length;S++){_=y[S];for(var A=String(_[0]),j=l(u(i(_.index),f.length),0),E=[],P=1;P<_.length;P++)E.push(void 0===(b=_[P])?b:String(b));var O=_.groups;if(p){var L=[A].concat(E,j,f);void 0!==O&&L.push(O);var M=String(e.apply(void 0,L))}else M=h(A,f,j,E,O,e);j>=w&&(x+=f.slice(w,j)+M,w=j+A.length)}return x+f.slice(w)}];function h(t,e,r,a,i,s){var c=r+t.length,l=a.length,u=p;return void 0!==i&&(i=o(i),u=f),n.call(s,u,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(c);case"<":s=i[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>l){var f=d(u/10);return 0===f?n:f<=l?void 0===a[f-1]?o.charAt(1):a[f-1]+o.charAt(1):n}s=a[u-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var r=n(3),o=n(113),a=n(57);n(58)("search",1,(function(t,e,n,i){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=i(n,t,this);if(e.done)return e.value;var s=r(t),c=String(this),l=s.lastIndex;o(l,0)||(s.lastIndex=0);var u=a(s,c);return o(s.lastIndex,l)||(s.lastIndex=l),null===u?-1:u.index}]}))},function(t,e,n){"use strict";var r=n(83),o=n(3),a=n(48),i=n(91),s=n(6),c=n(57),l=n(90),u=n(2),d=Math.min,f=[].push,p="length",g=!u((function(){RegExp(4294967295,"y")}));n(58)("split",2,(function(t,e,n,u){var h;return h="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var a,i,s,c=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,g=void 0===e?4294967295:e>>>0,h=new RegExp(t.source,u+"g");(a=l.call(h,o))&&!((i=h.lastIndex)>d&&(c.push(o.slice(d,a.index)),a[p]>1&&a.index<o[p]&&f.apply(c,a.slice(1)),s=a[0][p],d=i,c[p]>=g));)h.lastIndex===a.index&&h.lastIndex++;return d===o[p]?!s&&h.test("")||c.push(""):c.push(o.slice(d)),c[p]>g?c.slice(0,g):c}:"0".split(void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,r):h.call(String(o),n,r)},function(t,e){var r=u(h,t,this,e,h!==n);if(r.done)return r.value;var l=o(t),f=String(this),p=a(l,RegExp),m=l.unicode,v=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(g?"y":"g"),y=new p(g?l:"^(?:"+l.source+")",v),_=void 0===e?4294967295:e>>>0;if(0===_)return[];if(0===f.length)return null===c(y,f)?[f]:[];for(var b=0,x=0,w=[];x<f.length;){y.lastIndex=g?x:0;var S,A=c(y,g?f:f.slice(x));if(null===A||(S=d(s(y.lastIndex+(g?0:x)),f.length))===b)x=i(f,x,m);else{if(w.push(f.slice(b,x)),w.length===_)return w;for(var j=1;j<=A.length-1;j++)if(w.push(A[j]),w.length===_)return w;x=b=S}}return w.push(f.slice(b)),w}]}))},function(t,e,n){var r=n(1),o=n(92).set,a=r.MutationObserver||r.WebKitMutationObserver,i=r.process,s=r.Promise,c="process"==n(24)(i);t.exports=function(){var t,e,n,l=function(){var r,o;for(c&&(r=i.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){i.nextTick(l)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(l)}}else n=function(){o.call(r,l)};else{var d=!0,f=document.createTextNode("");new a(l).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){"use strict";var r=n(132),o=n(38);t.exports=n(61)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(132),o=n(38);t.exports=n(61)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(1),a=n(23)(0),i=n(11),s=n(28),c=n(112),l=n(133),u=n(4),d=n(38),f=n(38),p=!o.ActiveXObject&&"ActiveXObject"in o,g=s.getWeak,h=Object.isExtensible,m=l.ufstore,v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(u(t)){var e=g(t);return!0===e?m(d(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return l.def(d(this,"WeakMap"),t,e)}},_=t.exports=n(61)("WeakMap",v,y,l,!0,!0);f&&p&&(c((r=l.getConstructor(v,"WeakMap")).prototype,y),s.NEED=!0,a(["delete","has","get","set"],(function(t){var e=_.prototype,n=e[t];i(e,t,(function(e,o){if(u(e)&&!h(e)){this._f||(this._f=new r);var a=this._f[t](e,o);return"set"==t?this:a}return n.call(this,e,o)}))})))},function(t,e,n){"use strict";var r=n(133),o=n(38);n(61)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(62),a=n(93),i=n(3),s=n(33),c=n(6),l=n(4),u=n(1).ArrayBuffer,d=n(48),f=a.ArrayBuffer,p=a.DataView,g=o.ABV&&u.isView,h=f.prototype.slice,m=o.VIEW;r(r.G+r.W+r.F*(u!==f),{ArrayBuffer:f}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return g&&g(t)||l(t)&&m in t}}),r(r.P+r.U+r.F*n(2)((function(){return!new f(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==h&&void 0===e)return h.call(i(this),t);for(var n=i(this).byteLength,r=s(t,n),o=s(void 0===e?n:e,n),a=new(d(this,f))(c(o-r)),l=new p(this),u=new p(a),g=0;r<o;)u.setUint8(g++,l.getUint8(r++));return a}}),n(42)("ArrayBuffer")},function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(62).ABV,{DataView:n(93).DataView})},function(t,e,n){n(26)("Int8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(26)("Int16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Int32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Float32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Float64",8,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){var r=n(0),o=n(19),a=n(3),i=(n(1).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(2)((function(){i((function(){}))})),"Reflect",{apply:function(t,e,n){var r=o(t),c=a(n);return i?i(r,e,c):s.call(r,e,c)}})},function(t,e,n){var r=n(0),o=n(34),a=n(19),i=n(3),s=n(4),c=n(2),l=n(114),u=(n(1).Reflect||{}).construct,d=c((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),f=!c((function(){u((function(){}))}));r(r.S+r.F*(d||f),"Reflect",{construct:function(t,e){a(t),i(e);var n=arguments.length<3?t:a(arguments[2]);if(f&&!d)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(l.apply(t,r))}var c=n.prototype,p=o(s(c)?c:Object.prototype),g=Function.apply.call(t,p,e);return s(g)?g:p}})},function(t,e,n){var r=n(9),o=n(0),a=n(3),i=n(27);o(o.S+o.F*n(2)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){a(t),e=i(e,!0),a(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(21).f,a=n(3);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(a(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),o=n(3),a=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(121)(a,"Object",(function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new a(t)}})},function(t,e,n){var r=n(21),o=n(36),a=n(14),i=n(0),s=n(4),c=n(3);i(i.S,"Reflect",{get:function t(e,n){var i,l,u=arguments.length<3?e:arguments[2];return c(e)===u?e[n]:(i=r.f(e,n))?a(i,"value")?i.value:void 0!==i.get?i.get.call(u):void 0:s(l=o(e))?t(l,n,u):void 0}})},function(t,e,n){var r=n(21),o=n(0),a=n(3);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(a(t),e)}})},function(t,e,n){var r=n(0),o=n(36),a=n(3);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(3),a=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!a||a(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(135)})},function(t,e,n){var r=n(0),o=n(3),a=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return a&&a(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(9),o=n(21),a=n(36),i=n(14),s=n(0),c=n(29),l=n(3),u=n(4);s(s.S,"Reflect",{set:function t(e,n,s){var d,f,p=arguments.length<4?e:arguments[3],g=o.f(l(e),n);if(!g){if(u(f=a(e)))return t(f,n,s,p);g=c(0)}if(i(g,"value")){if(!1===g.writable||!u(p))return!1;if(d=o.f(p,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,r.f(p,n,d)}else r.f(p,n,c(0,s));return!0}return void 0!==g.set&&(g.set.call(p,s),!0)}})},function(t,e,n){var r=n(0),o=n(74);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(323),t.exports=n(7).Array.includes},function(t,e,n){"use strict";var r=n(0),o=n(52)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("includes")},function(t,e,n){n(325),t.exports=n(7).Array.flatMap},function(t,e,n){"use strict";var r=n(0),o=n(326),a=n(10),i=n(6),s=n(19),c=n(123);r(r.P,"Array",{flatMap:function(t){var e,n,r=a(this);return s(t),e=i(r.length),n=c(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(37)("flatMap")},function(t,e,n){"use strict";var r=n(54),o=n(4),a=n(6),i=n(18),s=n(5)("isConcatSpreadable");t.exports=function t(e,n,c,l,u,d,f,p){for(var g,h,m=u,v=0,y=!!f&&i(f,p,3);v<l;){if(v in c){if(g=y?y(c[v],v,n):c[v],h=!1,o(g)&&(h=void 0!==(h=g[s])?!!h:r(g)),h&&d>0)m=t(e,n,g,a(g.length),m,d-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=g}m++}v++}return m}},function(t,e,n){n(328),t.exports=n(7).String.padStart},function(t,e,n){"use strict";var r=n(0),o=n(136),a=n(60),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(330),t.exports=n(7).String.padEnd},function(t,e,n){"use strict";var r=n(0),o=n(136),a=n(60),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(332),t.exports=n(7).String.trimLeft},function(t,e,n){"use strict";n(40)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(334),t.exports=n(7).String.trimRight},function(t,e,n){"use strict";n(40)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(336),t.exports=n(70).f("asyncIterator")},function(t,e,n){n(108)("asyncIterator")},function(t,e,n){n(338),t.exports=n(7).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(0),o=n(135),a=n(16),i=n(21),s=n(86);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),c=i.f,l=o(r),u={},d=0;l.length>d;)void 0!==(n=c(r,e=l[d++]))&&s(u,e,n);return u}})},function(t,e,n){n(340),t.exports=n(7).Object.values},function(t,e,n){var r=n(0),o=n(137)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(342),t.exports=n(7).Object.entries},function(t,e,n){var r=n(0),o=n(137)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(129),n(344),t.exports=n(7).Promise.finally},function(t,e,n){"use strict";var r=n(0),o=n(7),a=n(1),i=n(48),s=n(131);r(r.P+r.R,"Promise",{finally:function(t){var e=i(this,o.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(346),n(347),n(348),t.exports=n(7)},function(t,e,n){var r=n(1),o=n(0),a=n(60),i=[].slice,s=/MSIE .\./.test(a),c=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&i.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(t,e,n){var r=n(0),o=n(92);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(89),o=n(32),a=n(11),i=n(1),s=n(15),c=n(41),l=n(5),u=l("iterator"),d=l("toStringTag"),f=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},g=o(p),h=0;h<g.length;h++){var m,v=g[h],y=p[v],_=i[v],b=_&&_.prototype;if(b&&(b[u]||s(b,u,f),b[d]||s(b,d,v),c[v]=f,y))for(m in r)b[m]||a(b,m,r[m],!0)}},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,a=Object.create(o.prototype),i=new w(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return A()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=_(i,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,i),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l={};function u(){}function d(){}function f(){}var p={};p[o]=function(){return this};var g=Object.getPrototypeOf,h=g&&g(g(S([])));h&&h!==e&&n.call(h,o)&&(p=h);var m=f.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function y(t,e){var r;this._invoke=function(o,a){function i(){return new e((function(r,i){!function r(o,a,i,s){var l=c(t[o],t,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,i,s)}),(function(t){r("throw",t,i,s)})):e.resolve(d).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,s)}))}s(l.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function S(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:A}}function A(){return{value:void 0,done:!0}}return d.prototype=m.constructor=f,f.constructor=d,f[i]=d.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,i in t||(t[i]="GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},v(y.prototype),y.prototype[a]=function(){return this},t.AsyncIterator=y,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new y(s(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},v(m),m[i]="Generator",m[o]=function(){return this},m.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=S,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){!function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof HTMLElement){var t=!1;try{var e=document.createElement("div");e.addEventListener("focus",(function(t){t.preventDefault(),t.stopPropagation()}),!0),e.focus(Object.defineProperty({},"preventScroll",{get:function(){t=!0}}))}catch(t){}if(void 0===HTMLElement.prototype.nativeFocus&&!t){HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(t){if(t&&t.preventScroll){var e=function(t){for(var e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;e&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push([e,e.scrollTop,e.scrollLeft]),e=e.parentNode;return e=r,n.push([e,e.scrollTop,e.scrollLeft]),n}(this);this.nativeFocus(),function(t){for(var e=0;e<t.length;e++)t[e][0].scrollTop=t[e][1],t[e][0].scrollLeft=t[e][2];t=[]}(e)}else this.nativeFocus()}}}}()},function(t,e,n){"use strict";var r,o,a,i,s,c;if(Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,o.prototype=new r,o}),r=Object.prototype,o=r.__defineGetter__,a=r.__defineSetter__,i=r.__lookupGetter__,s=r.__lookupSetter__,c=r.hasOwnProperty,o&&a&&i&&s&&(Object.defineProperty||(Object.defineProperty=function(t,e,n){if(arguments.length<3)throw new TypeError("Arguments not optional");if(e+="",c.call(n,"value")&&(i.call(t,e)||s.call(t,e)||(t[e]=n.value),c.call(n,"get")||c.call(n,"set")))throw new TypeError("Cannot specify an accessor and a value");if(!(n.writable&&n.enumerable&&n.configurable))throw new TypeError("This implementation of Object.defineProperty does not support false for configurable, enumerable, or writable.");return n.get&&o.call(t,e,n.get),n.set&&a.call(t,e,n.set),t}),Object.getOwnPropertyDescriptor||(Object.getOwnPropertyDescriptor=function(t,e){if(arguments.length<2)throw new TypeError("Arguments not optional.");e+="";var n={configurable:!0,enumerable:!0,writable:!0},r=i.call(t,e),o=s.call(t,e);return c.call(t,e)?r||o?(delete n.writable,n.get=n.set=void 0,r&&(n.get=r),o&&(n.set=o),n):(n.value=t[e],n):n}),Object.defineProperties||(Object.defineProperties=function(t,e){var n;for(n in e)c.call(e,n)&&Object.defineProperty(t,n,e[n])})),!(document.documentElement.dataset||Object.getOwnPropertyDescriptor(Element.prototype,"dataset")&&Object.getOwnPropertyDescriptor(Element.prototype,"dataset").get)){var l={enumerable:!0,get:function(){var t,e,n,r,o,a,i=this.attributes,s=i.length,c=function(t){return t.charAt(1).toUpperCase()},l=function(){return this},u=function(t,e){return void 0!==e?this.setAttribute(t,e):this.removeAttribute(t)};try{({}).__defineGetter__("test",(function(){})),e={}}catch(t){e=document.createElement("div")}for(t=0;t<s;t++)if((a=i[t])&&a.name&&/^data-\w[\w\-]*$/.test(a.name)){n=a.value,o=(r=a.name).substr(5).replace(/-./g,c);try{Object.defineProperty(e,o,{enumerable:this.enumerable,get:l.bind(n||""),set:u.bind(this,r)})}catch(t){e[o]=n}}return e}};try{Object.defineProperty(Element.prototype,"dataset",l)}catch(t){l.enumerable=!1,Object.defineProperty(Element.prototype,"dataset",l)}}},function(t,e,n){"use strict";var r=n(353),o=n(354),a=n(138);t.exports={formats:a,parse:o,stringify:r}},function(t,e,n){"use strict";var r=n(94),o=n(138),a=Object.prototype.hasOwnProperty,i={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,c=Array.prototype.push,l=function(t,e){c.apply(t,s(e)?e:[e])},u=Date.prototype.toISOString,d=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(t){return u.call(t)},skipNulls:!1,strictNullHandling:!1},p=function t(e,n,o,a,i,c,u,d,p,g,h,m,v){var y,_=e;if("function"==typeof u?_=u(n,_):_ instanceof Date?_=g(_):"comma"===o&&s(_)&&(_=r.maybeMap(_,(function(t){return t instanceof Date?g(t):t})).join(",")),null===_){if(a)return c&&!m?c(n,f.encoder,v,"key"):n;_=""}if("string"==typeof(y=_)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||r.isBuffer(_))return c?[h(m?n:c(n,f.encoder,v,"key"))+"="+h(c(_,f.encoder,v,"value"))]:[h(n)+"="+h(String(_))];var b,x=[];if(void 0===_)return x;if(s(u))b=u;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var S=0;S<b.length;++S){var A=b[S],j=_[A];if(!i||null!==j){var E=s(_)?"function"==typeof o?o(n,A):n:n+(p?"."+A:"["+A+"]");l(x,t(j,E,o,a,i,c,u,d,p,g,h,m,v))}}return x};t.exports=function(t,e){var n,r=t,c=function(t){if(!t)return f;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||f.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==t.format){if(!a.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=o.formatters[n],i=f.filter;return("function"==typeof t.filter||s(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===t.allowDots?f.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:f.charsetSentinel,delimiter:void 0===t.delimiter?f.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:f.encode,encoder:"function"==typeof t.encoder?t.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:f.encodeValuesOnly,filter:i,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:f.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:f.strictNullHandling}}(e);"function"==typeof c.filter?r=(0,c.filter)("",r):s(c.filter)&&(n=c.filter);var u,d=[];if("object"!=typeof r||null===r)return"";u=e&&e.arrayFormat in i?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var g=i[u];n||(n=Object.keys(r)),c.sort&&n.sort(c.sort);for(var h=0;h<n.length;++h){var m=n[h];c.skipNulls&&null===r[m]||l(d,p(r[m],m,g,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var v=d.join(c.delimiter),y=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""}},function(t,e,n){"use strict";var r=n(94),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},l=function(t,e,n,r){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),l=s?a.slice(0,s.index):a,u=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var d=0;n.depth>0&&null!==(s=i.exec(a))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+a.slice(s.index)+"]"),function(t,e,n,r){for(var o=r?e:c(e,n),a=t.length-1;a>=0;--a){var i,s=t[a];if("[]"===s&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[])[u]=o:i[l]=o:i={0:o}}o=i}return o}(u,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var n,l={},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,d=e.parameterLimit===1/0?void 0:e.parameterLimit,f=u.split(e.delimiter,d),p=-1,g=e.charset;if(e.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?g="utf-8":"utf8=%26%2310003%3B"===f[n]&&(g="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var h,m,v=f[n],y=v.indexOf("]="),_=-1===y?v.indexOf("="):y+1;-1===_?(h=e.decoder(v,i.decoder,g,"key"),m=e.strictNullHandling?null:""):(h=e.decoder(v.slice(0,_),i.decoder,g,"key"),m=r.maybeMap(c(v.slice(_+1),e),(function(t){return e.decoder(t,i.decoder,g,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===g&&(m=s(m)),v.indexOf("[]=")>-1&&(m=a(m)?[m]:m),o.call(l,h)?l[h]=r.combine(l[h],m):l[h]=m}return l}(t,n):t,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),p=0;p<f.length;++p){var g=f[p],h=l(g,u[g],n,"string"==typeof t);d=r.merge(d,h,n)}return r.compact(d)}}]);
1
+ var ajaxloadmore=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=95)}([function(t,e,n){var r=n(1),o=n(7),a=n(15),i=n(11),s=n(18),l=function(t,e,n){var c,u,d,f,p=t&l.F,g=t&l.G,h=t&l.S,m=t&l.P,v=t&l.B,y=g?r:h?r[e]||(r[e]={}):(r[e]||{}).prototype,_=g?o:o[e]||(o[e]={}),b=_.prototype||(_.prototype={});for(c in g&&(n=e),n)d=((u=!p&&y&&void 0!==y[c])?y:n)[c],f=v&&u?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,y&&i(y,c,d,t&l.U),_[c]!=d&&a(_,c,f),m&&b[c]!=d&&(b[c]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(51)("wks"),o=n(30),a=n(1).Symbol,i="function"==typeof a;(t.exports=function(t){return r[t]||(r[t]=i&&a[t]||(i?a:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(20),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(2)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(3),o=n(108),a=n(27),i=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=a(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(25);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(1),o=n(15),a=n(14),i=n(30)("src"),s=n(185),l=(""+s).split("toString");n(7).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(a(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(a(n,i)||o(n,i,t[e]?""+t[e]:l.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[i]||s.call(this)}))},function(t,e,n){var r=n(0),o=n(2),a=n(25),i=/"/g,s=function(t,e,n,r){var o=String(a(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(i,"&quot;")+'"'),s+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e,n){"use strict";var r=n(97),o=n(141),a=Object.prototype.toString;function i(t){return"[object Array]"===a.call(t)}function s(t){return null!==t&&"object"==typeof t}function l(t){return"[object Function]"===a.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===a.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===a.call(t)},isFile:function(t){return"[object File]"===a.call(t)},isBlob:function(t){return"[object Blob]"===a.call(t)},isFunction:l,isStream:function(t){return s(t)&&l(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return e},extend:function(t,e,n){return c(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(9),o=n(29);t.exports=n(8)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(45),o=n(25);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(46),o=n(29),a=n(16),i=n(27),s=n(14),l=n(108),c=Object.getOwnPropertyDescriptor;e.f=n(8)?c:function(t,e){if(t=a(t),e=i(e,!0),l)try{return c(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(0),o=n(7),a=n(2);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*a((function(){n(1)})),"Object",i)}},function(t,e,n){var r=n(18),o=n(45),a=n(10),i=n(6),s=n(124);t.exports=function(t,e){var n=1==t,l=2==t,c=3==t,u=4==t,d=6==t,f=5==t||d,p=e||s;return function(e,s,g){for(var h,m,v=a(e),y=o(v),_=r(s,g,3),b=i(y.length),x=0,w=n?p(e,b):l?p(e,0):void 0;b>x;x++)if((f||x in y)&&(m=_(h=y[x],x,v),t))if(n)w[x]=m;else if(m)switch(t){case 3:return!0;case 5:return h;case 6:return x;case 2:w.push(h)}else if(u)return!1;return d?-1:c||u?u:w}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(8)){var r=n(31),o=n(1),a=n(2),i=n(0),s=n(62),l=n(93),c=n(18),u=n(43),d=n(29),f=n(15),p=n(44),g=n(20),h=n(6),m=n(135),v=n(33),y=n(27),_=n(14),b=n(47),x=n(4),w=n(10),S=n(85),A=n(34),j=n(36),P=n(35).f,E=n(87),L=n(30),O=n(5),M=n(23),T=n(52),I=n(48),F=n(89),C=n(41),N=n(55),k=n(42),R=n(88),z=n(126),D=n(9),q=n(21),B=D.f,H=q.f,W=o.RangeError,U=o.TypeError,V=o.Uint8Array,G=Array.prototype,Y=l.ArrayBuffer,X=l.DataView,Q=M(0),$=M(2),J=M(3),K=M(4),Z=M(5),tt=M(6),et=T(!0),nt=T(!1),rt=F.values,ot=F.keys,at=F.entries,it=G.lastIndexOf,st=G.reduce,lt=G.reduceRight,ct=G.join,ut=G.sort,dt=G.slice,ft=G.toString,pt=G.toLocaleString,gt=O("iterator"),ht=O("toStringTag"),mt=L("typed_constructor"),vt=L("def_constructor"),yt=s.CONSTR,_t=s.TYPED,bt=s.VIEW,xt=M(1,(function(t,e){return Pt(I(t,t[vt]),e)})),wt=a((function(){return 1===new V(new Uint16Array([1]).buffer)[0]})),St=!!V&&!!V.prototype.set&&a((function(){new V(1).set({})})),At=function(t,e){var n=g(t);if(n<0||n%e)throw W("Wrong offset!");return n},jt=function(t){if(x(t)&&_t in t)return t;throw U(t+" is not a typed array!")},Pt=function(t,e){if(!x(t)||!(mt in t))throw U("It is not a typed array constructor!");return new t(e)},Et=function(t,e){return Lt(I(t,t[vt]),e)},Lt=function(t,e){for(var n=0,r=e.length,o=Pt(t,r);r>n;)o[n]=e[n++];return o},Ot=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Mt=function(t){var e,n,r,o,a,i,s=w(t),l=arguments.length,u=l>1?arguments[1]:void 0,d=void 0!==u,f=E(s);if(null!=f&&!S(f)){for(i=f.call(s),r=[],e=0;!(a=i.next()).done;e++)r.push(a.value);s=r}for(d&&l>2&&(u=c(u,arguments[2],2)),e=0,n=h(s.length),o=Pt(this,n);n>e;e++)o[e]=d?u(s[e],e):s[e];return o},Tt=function(){for(var t=0,e=arguments.length,n=Pt(this,e);e>t;)n[t]=arguments[t++];return n},It=!!V&&a((function(){pt.call(new V(1))})),Ft=function(){return pt.apply(It?dt.call(jt(this)):jt(this),arguments)},Ct={copyWithin:function(t,e){return z.call(jt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return K(jt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(jt(this),arguments)},filter:function(t){return Et(this,$(jt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(jt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(jt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(jt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(jt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(jt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(jt(this),arguments)},lastIndexOf:function(t){return it.apply(jt(this),arguments)},map:function(t){return xt(jt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(jt(this),arguments)},reduceRight:function(t){return lt.apply(jt(this),arguments)},reverse:function(){for(var t,e=jt(this).length,n=Math.floor(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this},some:function(t){return J(jt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ut.call(jt(this),t)},subarray:function(t,e){var n=jt(this),r=n.length,o=v(t,r);return new(I(n,n[vt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,h((void 0===e?r:v(e,r))-o))}},Nt=function(t,e){return Et(this,dt.call(jt(this),t,e))},kt=function(t){jt(this);var e=At(arguments[1],1),n=this.length,r=w(t),o=h(r.length),a=0;if(o+e>n)throw W("Wrong length!");for(;a<o;)this[e+a]=r[a++]},Rt={entries:function(){return at.call(jt(this))},keys:function(){return ot.call(jt(this))},values:function(){return rt.call(jt(this))}},zt=function(t,e){return x(t)&&t[_t]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Dt=function(t,e){return zt(t,e=y(e,!0))?d(2,t[e]):H(t,e)},qt=function(t,e,n){return!(zt(t,e=y(e,!0))&&x(n)&&_(n,"value"))||_(n,"get")||_(n,"set")||n.configurable||_(n,"writable")&&!n.writable||_(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};yt||(q.f=Dt,D.f=qt),i(i.S+i.F*!yt,"Object",{getOwnPropertyDescriptor:Dt,defineProperty:qt}),a((function(){ft.call({})}))&&(ft=pt=function(){return ct.call(this)});var Bt=p({},Ct);p(Bt,Rt),f(Bt,gt,Rt.values),p(Bt,{slice:Nt,set:kt,constructor:function(){},toString:ft,toLocaleString:Ft}),Ot(Bt,"buffer","b"),Ot(Bt,"byteOffset","o"),Ot(Bt,"byteLength","l"),Ot(Bt,"length","e"),B(Bt,ht,{get:function(){return this[_t]}}),t.exports=function(t,e,n,l){var c=t+((l=!!l)?"Clamped":"")+"Array",d="get"+t,p="set"+t,g=o[c],v=g||{},y=g&&j(g),_=!g||!s.ABV,w={},S=g&&g.prototype,E=function(t,n){B(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[d](n*e+r.o,wt)}(this,n)},set:function(t){return function(t,n,r){var o=t._d;l&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[p](n*e+o.o,r,wt)}(this,n,t)},enumerable:!0})};_?(g=n((function(t,n,r,o){u(t,g,c,"_d");var a,i,s,l,d=0,p=0;if(x(n)){if(!(n instanceof Y||"ArrayBuffer"==(l=b(n))||"SharedArrayBuffer"==l))return _t in n?Lt(g,n):Mt.call(g,n);a=n,p=At(r,e);var v=n.byteLength;if(void 0===o){if(v%e)throw W("Wrong length!");if((i=v-p)<0)throw W("Wrong length!")}else if((i=h(o)*e)+p>v)throw W("Wrong length!");s=i/e}else s=m(n),a=new Y(i=s*e);for(f(t,"_d",{b:a,o:p,l:i,e:s,v:new X(a)});d<s;)E(t,d++)})),S=g.prototype=A(Bt),f(S,"constructor",g)):a((function(){g(1)}))&&a((function(){new g(-1)}))&&N((function(t){new g,new g(null),new g(1.5),new g(t)}),!0)||(g=n((function(t,n,r,o){var a;return u(t,g,c),x(n)?n instanceof Y||"ArrayBuffer"==(a=b(n))||"SharedArrayBuffer"==a?void 0!==o?new v(n,At(r,e),o):void 0!==r?new v(n,At(r,e)):new v(n):_t in n?Lt(g,n):Mt.call(g,n):new v(m(n))})),Q(y!==Function.prototype?P(v).concat(P(y)):P(v),(function(t){t in g||f(g,t,v[t])})),g.prototype=S,r||(S.constructor=g));var L=S[gt],O=!!L&&("values"==L.name||null==L.name),M=Rt.values;f(g,mt,!0),f(S,_t,c),f(S,bt,!0),f(S,vt,g),(l?new g(1)[ht]==c:ht in S)||B(S,ht,{get:function(){return c}}),w[c]=g,i(i.G+i.W+i.F*(g!=v),w),i(i.S,c,{BYTES_PER_ELEMENT:e}),i(i.S+i.F*a((function(){v.of.call(g,1)})),c,{from:Mt,of:Tt}),"BYTES_PER_ELEMENT"in S||f(S,"BYTES_PER_ELEMENT",e),i(i.P,c,Ct),k(c),i(i.P+i.F*St,c,{set:kt}),i(i.P+i.F*!O,c,Rt),r||S.toString==ft||(S.toString=ft),i(i.P+i.F*a((function(){new g(1).slice()})),c,{slice:Nt}),i(i.P+i.F*(a((function(){return[1,2].toLocaleString()!=new g([1,2]).toLocaleString()}))||!a((function(){S.toLocaleString.call([1,2])}))),c,{toLocaleString:Ft}),C[c]=O?L:M,r||O||f(S,gt,M)}}else t.exports=function(){}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(30)("meta"),o=n(4),a=n(14),i=n(9).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(2)((function(){return l(Object.preventExtensions({}))})),u=function(t){i(t,r,{value:{i:"O"+ ++s,w:{}}})},d=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,r)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[r].i},getWeak:function(t,e){if(!a(t,r)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[r].w},onFreeze:function(t){return c&&d.NEED&&l(t)&&!a(t,r)&&u(t),t}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var r=n(110),o=n(72);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(20),o=Math.max,a=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):a(t,e)}},function(t,e,n){var r=n(3),o=n(111),a=n(72),i=n(71)("IE_PROTO"),s=function(){},l=function(){var t,e=n(69)("iframe"),r=a.length;for(e.style.display="none",n(73).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l.prototype[a[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[i]=t):n=l(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(110),o=n(72).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(14),o=n(10),a=n(71)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},function(t,e,n){var r=n(5)("unscopables"),o=Array.prototype;null==o[r]&&n(15)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){var r=n(9).f,o=n(14),a=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(25),a=n(2),i=n(75),s="["+i+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(t,e,n){var o={},s=a((function(){return!!i[t]()||"​…"!="​…"[t]()})),l=o[t]=s?e(d):i[t];n&&(o[n]=l),r(r.P+r.F*s,"String",o)},d=u.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=u},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(1),o=n(9),a=n(8),i=n(5)("species");t.exports=function(t){var e=r[t];a&&e&&!e[i]&&o.f(e,i,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(11);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(24),o=n(5)("toStringTag"),a="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:a?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},function(t,e,n){var r=n(3),o=n(19),a=n(5)("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||null==(n=r(i)[a])?e:o(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!alm_localize.a11y_focus)return!1;t.addons.woocommerce||t.addons.elementor?r(!1,!1,e,!1,t.isSafari):t.transition_container&&n>0?t.addons.paging?r(t.init,t.addons.preloaded,t.listing,o,t.isSafari):t.addons.single_post||t.addons.nextpage?r(!1,t.addons.preloaded,e,o,t.isSafari):r(t.init,t.addons.preloaded,e,o,t.isSafari):t.transition_container||r(t.init,t.addons.preloaded,e[0],o,t.isSafari)};var r=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"false",n=arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!r&&(t||!n)&&"true"!==e)return!1;n.setAttribute("tabIndex","-1"),n.style.outline="none";var o=n.classList.contains("alm-listing")?n:n.parentNode,a=o.dataset.scrollContainer;if(a){var i=document.querySelector(a);i&&setTimeout((function(){n.focus({preventScroll:!0})}),50)}else setTimeout((function(){n.focus({preventScroll:!0})}),50)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){if(0==e)t.style.opacity=1,t.style.height="auto";else{e/=10;var n=0,r=setInterval((function(){n>.9&&(t.style.opacity=1,clearInterval(r)),t.style.opacity=n,n+=.1}),e);t.style.height="auto"}}},function(t,e,n){var r=n(7),o=n(1),a=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(31)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(16),o=n(6),a=n(33);t.exports=function(t){return function(e,n,i){var s,l=r(e),c=o(l.length),u=a(i,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var a=[7][r]();a.return=function(){o=!0},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var a=[7],i=a[r]();i.next=function(){return{done:n=!0}},a[r]=function(){return i},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(3);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(47),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(128);var r=n(11),o=n(15),a=n(2),i=n(25),s=n(5),l=n(90),c=s("species"),u=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=s(t),p=!a((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),g=p?!a((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!e})):void 0;if(!p||!g||"replace"===t&&!u||"split"===t&&!d){var h=/./[f],m=n(i,f,""[t],(function(t,e,n,r,o){return e.exec===l?p&&!o?{done:!0,value:h.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),v=m[0],y=m[1];r(String.prototype,t,v),o(RegExp.prototype,f,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},function(t,e,n){var r=n(18),o=n(123),a=n(85),i=n(3),s=n(6),l=n(87),c={},u={};(e=t.exports=function(t,e,n,d,f){var p,g,h,m,v=f?function(){return t}:l(t),y=r(n,d,e?2:1),_=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(a(v)){for(p=s(t.length);p>_;_++)if((m=e?y(i(g=t[_])[0],g[1]):y(t[_]))===c||m===u)return m}else for(h=v.call(t);!(g=h.next()).done;)if((m=o(h,y,g.value,e))===c||m===u)return m}).BREAK=c,e.RETURN=u},function(t,e,n){var r=n(1).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(1),o=n(0),a=n(11),i=n(44),s=n(28),l=n(59),c=n(43),u=n(4),d=n(2),f=n(55),p=n(39),g=n(76);t.exports=function(t,e,n,h,m,v){var y=r[t],_=y,b=m?"set":"add",x=_&&_.prototype,w={},S=function(t){var e=x[t];a(x,t,"delete"==t||"has"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof _&&(v||x.forEach&&!d((function(){(new _).entries().next()})))){var A=new _,j=A[b](v?{}:-0,1)!=A,P=d((function(){A.has(1)})),E=f((function(t){new _(t)})),L=!v&&d((function(){for(var t=new _,e=5;e--;)t[b](e,e);return!t.has(-0)}));E||((_=e((function(e,n){c(e,_,t);var r=g(new y,e,_);return null!=n&&l(n,m,r[b],r),r}))).prototype=x,x.constructor=_),(P||L)&&(S("delete"),S("has"),m&&S("get")),(L||j)&&S(b),v&&x.clear&&delete x.clear}else _=h.getConstructor(e,t,m,b),i(_.prototype,n),s.NEED=!0;return p(_,t),w[t]=_,o(o.G+o.W+o.F*(_!=y),w),v||h.setStrong(_,t,m),_}},function(t,e,n){for(var r,o=n(1),a=n(15),i=n(30),s=i("typed_array"),l=i("view"),c=!(!o.ArrayBuffer||!o.DataView),u=c,d=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(r=o[f[d++]])?(a(r.prototype,s,!0),a(r.prototype,l,!0)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},function(t,e,n){"use strict";(function(e){var r=n(13),o=n(144),a={"Content-Type":"application/x-www-form-urlencoded"};function i(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,l={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e)&&(s=n(98)),s),transformRequest:[function(t,e){return o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){l.headers[t]=r.merge(a)})),t.exports=l}).call(this,n(143))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseQuerystring=function(t){var e=window.location.search.substring(1),n="",r="";e&&((n=JSON.parse('{"'+e.replace(/&/g,'","').replace(/=/g,'":"')+'"}',(function(t,e){return""===t?e:decodeURIComponent(e.replace(/\+/g,"-"))}))).pg&&delete n.pg,n.auto&&delete n.auto);n&&(r+="/",Object.keys(n).forEach((function(t,e){r+=e>0?"--":"",r+=t+"--"+n[t]})));return t+r},e.buildFilterURL=i,e.createMasonryFiltersPage=function(t,e){if(!t.addons.filters)return e;var n=window.location.search,r=t.page+1;return r="true"===t.addons.preloaded?r+1:r,e=s(t,e,n,r)},e.createMasonryFiltersPages=function(t,e){if(!t.addons.filters)return e;var n=1,r=t.page,o=window.location.search;if(t.addons.filters_startpage>1){for(var a=parseInt(t.posts_per_page),i=[],l=0;l<e.length;l+=a)i.push(e.slice(l,a+l));for(var c=0;c<i.length;c++){var u=c>0?c*a:0;n=c+1,e[u]&&(e[u]=s(t,e[u],o,n))}}else n=r,e[0]=s(t,e[0],o,n);return e};var r,o=n(164),a=(r=o)&&r.__esModule?r:{default:r};function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e;return t.addons.filters_paging&&(r=n>1?r?(0,a.default)("pg")?e.replace(/(pg=)[^\&]+/,"$1"+n):e+"&pg="+n:"?pg="+n:"&"===(r="?"===(r=e.replace(/(pg=)[^\&]+/,""))?"":r)[r.length-1]?r.slice(0,-1):r),r}function s(t,e,n,r){if(e.classList.add("alm-filters"),e.dataset.page=r,r>1)e.dataset.url=t.canonical_url+i(t,n,r);else{var o=n.replace(/(pg=)[^\&]+/,"");o="?"===o?"":o,e.dataset.url=t.canonical_url+o}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text/html";if(!t)return!1;var n=new DOMParser,r=n.parseFromString(t,e);return r?Array.prototype.slice.call(r.body.childNodes):r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return!1;if(e.indexOf("Safari")>-1&&-1!=e.indexOf("Chrome")||e.indexOf("Firefox")>-1||e.indexOf("Windows")>-1)return!1;for(var n=t.querySelectorAll("img[srcset]:not(.alm-loaded)"),r=0;r<n.length;r++){var o=n[r];o.classList.add("alm-loaded"),o.outerHTML=o.outerHTML}}},function(t,e,n){var r,o;
2
  /*!
3
  * imagesLoaded v4.1.4
4
  * JavaScript is all like "You images are done yet or what?"
5
  * MIT License
6
+ */!function(a,i){"use strict";r=[n(170)],void 0===(o=function(t){return function(t,e){var n=t.jQuery,r=t.console;function o(t,e){for(var n in e)t[n]=e[n];return t}var a=Array.prototype.slice;function i(t,e,s){if(!(this instanceof i))return new i(t,e,s);var l,c=t;("string"==typeof t&&(c=document.querySelectorAll(t)),c)?(this.elements=(l=c,Array.isArray(l)?l:"object"==typeof l&&"number"==typeof l.length?a.call(l):[l]),this.options=o({},this.options),"function"==typeof e?s=e:o(this.options,e),s&&this.on("always",s),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(c||t))}i.prototype=Object.create(e.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&s[e]){for(var n=t.querySelectorAll("img"),r=0;r<n.length;r++){var o=n[r];this.addImage(o)}if("string"==typeof this.options.background){var a=t.querySelectorAll(this.options.background);for(r=0;r<a.length;r++){var i=a[r];this.addElementBackgroundImages(i)}}}};var s={1:!0,9:!0,11:!0};function l(t){this.img=t}function c(t,e){this.url=t,this.element=e,this.img=new Image}return i.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(e.backgroundImage);null!==r;){var o=r&&r[2];o&&this.addBackground(o,t),r=n.exec(e.backgroundImage)}},i.prototype.addImage=function(t){var e=new l(t);this.images.push(e)},i.prototype.addBackground=function(t,e){var n=new c(t,e);this.images.push(n)},i.prototype.check=function(){var t=this;function e(e,n,r){setTimeout((function(){t.progress(e,n,r)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(t){t.once("progress",e),t.check()})):this.complete()},i.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,t,e)},i.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},l.prototype=Object.create(e.prototype),l.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},l.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(l.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},i.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((n=e).fn.imagesLoaded=function(t,e){return new i(this,t,e).jqDeferred.promise(n(this))})},i.makeJQueryPlugin(),i}(a,t)}.apply(e,r))||(t.exports=o)}("undefined"!=typeof window?window:this)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e/=10,t.style.opacity=.5;var n=setInterval((function(){t.style.opacity<.1?clearInterval(n):t.style.opacity-=.1}),e)}},function(t,e,n){var r=n(4),o=n(1).document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){e.f=n(5)},function(t,e,n){var r=n(51)("keys"),o=n(30);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(3),a=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(18)(Function.call,n(21).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:a}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var r=n(4),o=n(74).set;t.exports=function(t,e,n){var a,i=e.constructor;return i!==n&&"function"==typeof i&&(a=i.prototype)!==n.prototype&&r(a)&&o&&o(t,a),t}},function(t,e,n){"use strict";var r=n(20),o=n(25);t.exports=function(t){var e=String(o(this)),n="",a=r(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(20),o=n(25);t.exports=function(t){return function(e,n){var a,i,s=String(o(e)),l=r(n),c=s.length;return l<0||l>=c?t?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(i=s.charCodeAt(l+1))<56320||i>57343?t?s.charAt(l):a:t?s.slice(l,l+2):i-56320+(a-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(31),o=n(0),a=n(11),i=n(15),s=n(41),l=n(122),c=n(39),u=n(36),d=n(5)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,g,h,m,v){l(n,e,g);var y,_,b,x=function(t){if(!f&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",S="values"==h,A=!1,j=t.prototype,P=j[d]||j["@@iterator"]||h&&j[h],E=P||x(h),L=h?S?x("entries"):E:void 0,O="Array"==e&&j.entries||P;if(O&&(b=u(O.call(new t)))!==Object.prototype&&b.next&&(c(b,w,!0),r||"function"==typeof b[d]||i(b,d,p)),S&&P&&"values"!==P.name&&(A=!0,E=function(){return P.call(this)}),r&&!v||!f&&!A&&j[d]||i(j,d,E),s[e]=E,s[w]=p,h)if(y={values:S?E:x("values"),keys:m?E:x("keys"),entries:L},v)for(_ in y)_ in j||a(j,_,y[_]);else o(o.P+o.F*(f||A),e,y);return y}},function(t,e,n){var r=n(83),o=n(25);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(4),o=n(24),a=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(41),o=n(5)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},function(t,e,n){"use strict";var r=n(9),o=n(29);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(47),o=n(5)("iterator"),a=n(41);t.exports=n(7).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||a[r(t)]}},function(t,e,n){"use strict";var r=n(10),o=n(33),a=n(6);t.exports=function(t){for(var e=r(this),n=a(e.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),l=i>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(37),o=n(127),a=n(41),i=n(16);t.exports=n(81)(Array,"Array",(function(t,e){this._t=i(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,a=n(56),i=RegExp.prototype.exec,s=String.prototype.replace,l=i,c=(r=/a/,o=/b*/g,i.call(r,"a"),i.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(t){var e,n,r,o,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",a.call(l))),c&&(e=l.lastIndex),r=i.call(l,t),c&&r&&(l.lastIndex=l.global?r.index+r[0].length:e),u&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=l},function(t,e,n){"use strict";var r=n(80)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r,o,a,i=n(18),s=n(116),l=n(73),c=n(69),u=n(1),d=u.process,f=u.setImmediate,p=u.clearImmediate,g=u.MessageChannel,h=u.Dispatch,m=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},_=function(t){y.call(t.data)};f&&p||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++m]=function(){s("function"==typeof t?t:Function(t),e)},r(m),m},p=function(t){delete v[t]},"process"==n(24)(d)?r=function(t){d.nextTick(i(y,t,1))}:h&&h.now?r=function(t){h.now(i(y,t,1))}:g?(a=(o=new g).port2,o.port1.onmessage=_,r=i(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",_,!1)):r="onreadystatechange"in c("script")?function(t){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(i(y,t,1),0)}),t.exports={set:f,clear:p}},function(t,e,n){"use strict";var r=n(1),o=n(8),a=n(31),i=n(62),s=n(15),l=n(44),c=n(2),u=n(43),d=n(20),f=n(6),p=n(135),g=n(35).f,h=n(9).f,m=n(88),v=n(39),y=r.ArrayBuffer,_=r.DataView,b=r.Math,x=r.RangeError,w=r.Infinity,S=y,A=b.abs,j=b.pow,P=b.floor,E=b.log,L=b.LN2,O=o?"_b":"buffer",M=o?"_l":"byteLength",T=o?"_o":"byteOffset";function I(t,e,n){var r,o,a,i=new Array(n),s=8*n-e-1,l=(1<<s)-1,c=l>>1,u=23===e?j(2,-24)-j(2,-77):0,d=0,f=t<0||0===t&&1/t<0?1:0;for((t=A(t))!=t||t===w?(o=t!=t?1:0,r=l):(r=P(E(t)/L),t*(a=j(2,-r))<1&&(r--,a*=2),(t+=r+c>=1?u/a:u*j(2,1-c))*a>=2&&(r++,a/=2),r+c>=l?(o=0,r=l):r+c>=1?(o=(t*a-1)*j(2,e),r+=c):(o=t*j(2,c-1)*j(2,e),r=0));e>=8;i[d++]=255&o,o/=256,e-=8);for(r=r<<e|o,s+=e;s>0;i[d++]=255&r,r/=256,s-=8);return i[--d]|=128*f,i}function F(t,e,n){var r,o=8*n-e-1,a=(1<<o)-1,i=a>>1,s=o-7,l=n-1,c=t[l--],u=127&c;for(c>>=7;s>0;u=256*u+t[l],l--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=e;s>0;r=256*r+t[l],l--,s-=8);if(0===u)u=1-i;else{if(u===a)return r?NaN:c?-w:w;r+=j(2,e),u-=i}return(c?-1:1)*r*j(2,u-e)}function C(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function N(t){return[255&t]}function k(t){return[255&t,t>>8&255]}function R(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function z(t){return I(t,52,8)}function D(t){return I(t,23,4)}function q(t,e,n){h(t.prototype,e,{get:function(){return this[n]}})}function B(t,e,n,r){var o=p(+n);if(o+e>t[M])throw x("Wrong index!");var a=t[O]._b,i=o+t[T],s=a.slice(i,i+e);return r?s:s.reverse()}function H(t,e,n,r,o,a){var i=p(+n);if(i+e>t[M])throw x("Wrong index!");for(var s=t[O]._b,l=i+t[T],c=r(+o),u=0;u<e;u++)s[l+u]=c[a?u:e-u-1]}if(i.ABV){if(!c((function(){y(1)}))||!c((function(){new y(-1)}))||c((function(){return new y,new y(1.5),new y(NaN),"ArrayBuffer"!=y.name}))){for(var W,U=(y=function(t){return u(this,y),new S(p(t))}).prototype=S.prototype,V=g(S),G=0;V.length>G;)(W=V[G++])in y||s(y,W,S[W]);a||(U.constructor=y)}var Y=new _(new y(2)),X=_.prototype.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||l(_.prototype,{setInt8:function(t,e){X.call(this,t,e<<24>>24)},setUint8:function(t,e){X.call(this,t,e<<24>>24)}},!0)}else y=function(t){u(this,y,"ArrayBuffer");var e=p(t);this._b=m.call(new Array(e),0),this[M]=e},_=function(t,e,n){u(this,_,"DataView"),u(t,y,"DataView");var r=t[M],o=d(e);if(o<0||o>r)throw x("Wrong offset!");if(o+(n=void 0===n?r-o:f(n))>r)throw x("Wrong length!");this[O]=t,this[T]=o,this[M]=n},o&&(q(y,"byteLength","_l"),q(_,"buffer","_b"),q(_,"byteLength","_l"),q(_,"byteOffset","_o")),l(_.prototype,{getInt8:function(t){return B(this,1,t)[0]<<24>>24},getUint8:function(t){return B(this,1,t)[0]},getInt16:function(t){var e=B(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=B(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return C(B(this,4,t,arguments[1]))},getUint32:function(t){return C(B(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return F(B(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return F(B(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){H(this,1,t,N,e)},setUint8:function(t,e){H(this,1,t,N,e)},setInt16:function(t,e){H(this,2,t,k,e,arguments[2])},setUint16:function(t,e){H(this,2,t,k,e,arguments[2])},setInt32:function(t,e){H(this,4,t,R,e,arguments[2])},setUint32:function(t,e){H(this,4,t,R,e,arguments[2])},setFloat32:function(t,e){H(this,4,t,D,e,arguments[2])},setFloat64:function(t,e){H(this,8,t,z,e,arguments[2])}});v(y,"ArrayBuffer"),v(_,"DataView"),s(_.prototype,i.VIEW,!0),e.ArrayBuffer=y,e.DataView=_},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),i=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:i,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var a=e[r],i=a.obj[a.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],u=i[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(e.push({obj:i,prop:c}),n.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],a=0;a<n.length;++a)void 0!==n[a]&&r.push(n[a]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n){if(0===t.length)return t;var r=t;if("symbol"==typeof t?r=Symbol.prototype.toString.call(t):"string"!=typeof t&&(r=String(t)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var o="",i=0;i<r.length;++i){var s=r.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=r.charAt(i):s<128?o+=a[s]:s<2048?o+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?o+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(i)),o+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return o},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,a){if(!n)return e;if("object"!=typeof n){if(o(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var s=e;return o(e)&&!o(n)&&(s=i(e,a)),o(e)&&o(n)?(n.forEach((function(n,o){if(r.call(e,o)){var i=e[o];i&&"object"==typeof i&&n&&"object"==typeof n?e[o]=t(i,n,a):e.push(n)}else e[o]=n})),e):Object.keys(n).reduce((function(e,o){var i=n[o];return r.call(e,o)?e[o]=t(e[o],i,a):e[o]=i,e}),s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.getOffset=e.almScroll=e.start=e.tracking=e.tab=e.filter=void 0;var r=C(n(96)),o=C(n(158));n(159);var a=C(n(160)),i=C(n(102)),s=C(n(162)),l=C(n(163)),c=C(n(65)),u=C(n(103)),d=F(n(165)),f=F(n(104)),p=n(105),g=C(n(166)),h=C(n(167)),m=C(n(49)),v=C(n(168)),y=C(n(169)),_=C(n(50)),b=C(n(68)),x=C(n(171)),w=C(n(172)),S=C(n(173)),A=C(n(174)),j=C(n(66)),P=n(175),E=n(176),L=n(177),O=n(178),M=n(180),T=n(64),I=n(106);function F(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}function N(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}n(181),n(354),n(355);var k=n(356),R=n(67);o.default.polyfill();var z=!1;!function(){var t=function(t,e){alm_localize&&"true"===alm_localize.scrolltop&&window.scrollTo(0,0);var n=this;n.AjaxLoadMore={},n.addons={},n.extensions={},n.integration={},n.window=window,n.page=0,n.posts=0,n.totalposts=0,n.proceed=!1,n.disable_ajax=!1,n.init=!0,n.loading=!0,n.finished=!1,n.timer=null,n.ua=window.navigator.userAgent?window.navigator.userAgent:"",n.vendor=window.navigator.vendor?window.navigator.vendor:"",n.isSafari=/Safari/i.test(n.ua)&&/Apple Computer/.test(n.vendor)&&!/Mobi|Android/i.test(n.ua),n.main=t,n.master_id=t.dataset.id?"ajax-load-more-"+t.dataset.id:t.id,t.classList.add("alm-"+e),t.setAttribute("data-alm-id",e),n.master_id=n.master_id.replace(/-/g,"_"),n.localize=window[n.master_id+"_vars"],n.main=t,n.listing=t.querySelector(".alm-listing")||t.querySelector(".alm-comments"),n.content=n.listing,n.el=n.content,n.ajax=t.querySelector(".alm-ajax"),n.container_type=n.listing.dataset.containerType,n.canonical_url=t.dataset.canonicalUrl,n.nested=t.dataset.nested?t.dataset.nested:null,n.is_search=t.dataset.search,n.slug=t.dataset.slug,n.post_id=t.dataset.postId,n.id=t.dataset.id?t.dataset.id:"";var o=t.querySelector(".alm-no-results");if(n.no_results=o?o.innerHTML:"",n.repeater=n.listing.dataset.repeater,n.theme_repeater=n.listing.dataset.themeRepeater,n.post_type=n.listing.dataset.postType?n.listing.dataset.postType:"post",n.sticky_posts=n.listing.dataset.stickyPosts?n.listing.dataset.stickyPosts:null,n.btnWrap=t.querySelectorAll(".alm-btn-wrap"),n.btnWrap=Array.prototype.slice.call(n.btnWrap),n.btnWrap[n.btnWrap.length-1].style.visibility="visible",n.trigger=n.btnWrap[n.btnWrap.length-1],n.button=n.trigger.querySelector("button.alm-load-more-btn"),n.button_label=n.listing.dataset.buttonLabel,n.button_loading_label=n.listing.dataset.buttonLoadingLabel,n.button_done_label=n.listing.dataset.buttonDoneLabel,n.placeholder=n.main.querySelector(".alm-placeholder"),n.scroll_distance=n.listing.dataset.scrollDistance,n.scroll_distance=n.scroll_distance?n.scroll_distance:100,n.scroll_container=n.listing.dataset.scrollContainer,n.scroll_direction=n.listing.dataset.scrollDirection,n.max_pages=n.listing.dataset.maxPages?parseInt(n.listing.dataset.maxPages):0,n.pause_override=n.listing.dataset.pauseOverride,n.pause=!!n.listing.dataset.pause&&n.listing.dataset.pause,n.transition=n.listing.dataset.transition,n.transition_container=n.listing.dataset.transitionContainer,n.tcc=n.listing.dataset.transitionContainerClasses,n.speed=alm_localize.speed?parseInt(alm_localize.speed):200,n.images_loaded=!!n.listing.dataset.imagesLoaded&&n.listing.dataset.imagesLoaded,n.destroy_after=n.listing.dataset.destroyAfter?n.listing.dataset.destroyAfter:"",n.orginal_posts_per_page=parseInt(n.listing.dataset.postsPerPage),n.posts_per_page=n.listing.dataset.postsPerPage,n.offset=n.listing.dataset.offset?parseInt(n.listing.dataset.offset):0,n.integration.woocommerce=!!n.listing.dataset.woocommerce&&n.listing.dataset.woocommerce,n.integration.woocommerce="true"===n.integration.woocommerce,n.is_search=void 0!==n.is_search&&n.is_search,n.search_value="true"===n.is_search?n.slug:"",n.addons.elementor=!(!n.localize||!n.localize.elementor),n.addons.elementor&&(n.addons.elementor={},n.addons.elementor_type="posts",n.addons.elementor_target=n.localize.elementor.target,n.addons.elementor_target_element=n.addons.elementor_target?document.querySelector(".elementor-widget-wrap "+n.addons.elementor_target):"",n.addons.elementor_paged=n.localize.elementor.paged?parseInt(n.localize.elementor.paged):1,n.addons.elementor_container_class=n.localize.elementor.container_class,n.addons.elementor_item_class=n.localize.elementor.item_class,n.addons.elementor_pagination_class=n.localize.elementor.pagination_class,n.addons.elementor_pagination_item=n.localize.elementor.pagination_item,n.addons.elementor_pages=(0,M.elementorGetPages)(n.addons.elementor_pagination_class,n.addons.elementor_pagination_item,n.addons.elementor_target_element),n.page=parseInt(n.page)+n.addons.elementor_paged),n.addons.woocommerce=!(!n.localize||!n.localize.woocommerce),n.addons.woocommerce&&(n.addons.woocommerce_columns=n.localize.woocommerce.columns?parseInt(n.localize.woocommerce.columns):3,n.addons.woocommerce_paged=n.localize.woocommerce.paged?parseInt(n.localize.woocommerce.paged):1,n.addons.woocommerce_paged_urls=n.localize.woocommerce.paged_urls,n.addons.woocommerce_pages=parseInt(n.localize.woocommerce.pages),n.addons.woocommerce_classes={},n.addons.woocommerce_classes.container=n.localize.woocommerce.container,n.addons.woocommerce_classes.products=n.localize.woocommerce.products,n.addons.woocommerce_classes.results=n.localize.woocommerce.results,n.addons.woocommerce_results_text=document.querySelectorAll(n.addons.woocommerce_classes.results),n.addons.woocommerce_settings=n.localize.woocommerce.settings,n.page=parseInt(n.page)+n.addons.woocommerce_paged),n.addons.cache=n.listing.dataset.cache,n.addons.cache=void 0!==n.addons.cache&&n.addons.cache,"true"===n.addons.cache&&(n.addons.cache_id=n.listing.dataset.cacheId,n.addons.cache_path=n.listing.dataset.cachePath,n.addons.cache_logged_in=n.listing.dataset.cacheLoggedIn,n.addons.cache_logged_in=void 0!==n.addons.cache_logged_in&&n.addons.cache_logged_in),n.addons.cta=!!n.listing.dataset.cta&&n.listing.dataset.cta,"true"===n.addons.cta&&(n.addons.cta_position=n.listing.dataset.ctaPosition,n.addons.cta_repeater=n.listing.dataset.ctaRepeater,n.addons.cta_theme_repeater=n.listing.dataset.ctaThemeRepeater),n.addons.nextpage=n.listing.dataset.nextpage,"true"===n.addons.nextpage&&(n.addons.nextpage_urls=n.listing.dataset.nextpageUrls,n.addons.nextpage_scroll=n.listing.dataset.nextpageScroll,n.addons.nextpage_pageviews=n.listing.dataset.nextpagePageviews,n.addons.nextpage_post_id=n.listing.dataset.nextpagePostId,n.addons.nextpage_startpage=n.listing.dataset.nextpageStartpage),n.addons.single_post=n.listing.dataset.singlePost,"true"===n.addons.single_post&&(n.addons.single_post_id=n.listing.dataset.singlePostId,n.addons.single_post_order=n.listing.dataset.singlePostOrder,n.addons.single_post_init_id=n.listing.dataset.singlePostId,n.addons.single_post_taxonomy=n.listing.dataset.singlePostTaxonomy,n.addons.single_post_excluded_terms=n.listing.dataset.singlePostExcludedTerms,n.addons.single_post_progress_bar=n.listing.dataset.singlePostProgressBar,n.addons.single_post_target=n.listing.dataset.singlePostTarget),n.addons.comments=!!n.listing.dataset.comments&&n.listing.dataset.comments,"true"===n.addons.comments&&(n.addons.comments_post_id=n.listing.dataset.comments_post_id,n.addons.comments_per_page=n.listing.dataset.comments_per_page,n.addons.comments_per_page=void 0===n.addons.comments_per_page?"5":n.addons.comments_per_page,n.addons.comments_type=n.listing.dataset.comments_type,n.addons.comments_style=n.listing.dataset.comments_style,n.addons.comments_template=n.listing.dataset.comments_template,n.addons.comments_callback=n.listing.dataset.comments_callback),n.addons.tabs=n.listing.dataset.tabs,n.addons.filters=n.listing.dataset.filters,n.addons.seo=n.listing.dataset.seo,n.addons.preloaded=n.listing.dataset.preloaded,n.addons.preloaded_amount=n.listing.dataset.preloadedAmount?n.listing.dataset.preloadedAmount:0,n.is_preloaded="true"===n.listing.dataset.isPreloaded,n.addons.users="true"===n.listing.dataset.users,n.addons.users&&(n.orginal_posts_per_page=n.listing.dataset.usersPerPage,n.posts_per_page=n.listing.dataset.usersPerPage),n.extensions.restapi=n.listing.dataset.restapi,n.extensions.restapi_base_url=n.listing.dataset.restapiBaseUrl,n.extensions.restapi_namespace=n.listing.dataset.restapiNamespace,n.extensions.restapi_endpoint=n.listing.dataset.restapiEndpoint,n.extensions.restapi_template_id=n.listing.dataset.restapiTemplateId,n.extensions.restapi_debug=n.listing.dataset.restapiDebug,n.extensions.acf=n.listing.dataset.acf,n.extensions.acf_field_type=n.listing.dataset.acfFieldType,n.extensions.acf_field_name=n.listing.dataset.acfFieldName,n.extensions.acf_parent_field_name=n.listing.dataset.acfParentFieldName,n.extensions.acf_post_id=n.listing.dataset.acfPostId,n.extensions.acf="true"===n.extensions.acf,void 0!==n.extensions.acf_field_type&&void 0!==n.extensions.acf_field_name&&void 0!==n.extensions.acf_post_id||(n.extensions.acf=!1),n.extensions.term_query=n.listing.dataset.termQuery,n.extensions.term_query_taxonomy=n.listing.dataset.termQueryTaxonomy,n.extensions.term_query_hide_empty=n.listing.dataset.termQueryHideEmpty,n.extensions.term_query_number=n.listing.dataset.termQueryNumber,n.extensions.term_query="true"===n.extensions.term_query,n.addons.paging=n.listing.dataset.paging,"true"===n.addons.paging?(n.addons.paging=!0,n.addons.paging_init=!0,n.addons.paging_controls="true"===n.listing.dataset.pagingControls,n.addons.paging_show_at_most=n.listing.dataset.pagingShowAtMost,n.addons.paging_classes=n.listing.dataset.pagingClasses,n.addons.paging_show_at_most=void 0===n.addons.paging_show_at_most?7:n.addons.paging_show_at_most,n.addons.paging_first_label=n.listing.dataset.pagingFirstLabel,n.addons.paging_previous_label=n.listing.dataset.pagingPreviousLabel,n.addons.paging_next_label=n.listing.dataset.pagingNextLabel,n.addons.paging_last_label=n.listing.dataset.pagingLastLabel,n.addons.paging_scroll=!!n.listing.dataset.pagingScroll&&n.listing.dataset.pagingScroll,n.addons.paging_scrolltop=n.listing.dataset.pagingScrolltop?parseInt(n.listing.dataset.pagingScrolltop):100,n.pause="true"===n.addons.preloaded||n.pause):n.addons.paging=!1,"true"===n.addons.filters){n.addons.filters=!0,n.addons.filters_url="true"===n.listing.dataset.filtersUrl,n.addons.filters_paging="true"===n.listing.dataset.filtersPaging,n.addons.filters_scroll="true"===n.listing.dataset.filtersScroll,n.addons.filters_scrolltop=n.listing.dataset.filtersScrolltop?n.listing.dataset.filtersScrolltop:"30",n.addons.filters_analtyics=n.listing.dataset.filtersAnalytics,n.addons.filters_debug=n.listing.dataset.filtersDebug,n.addons.filters_startpage=0;var x=(0,a.default)("pg");n.addons.filters_startpage=null!==x?parseInt(x):0,!n.addons.paging&&n.addons.filters_startpage>0&&(n.posts_per_page=n.posts_per_page*n.addons.filters_startpage,n.isPaged=n.addons.filters_startpage>0)}else n.addons.filters=!1;if("true"===n.addons.tabs){if(n.addons.tabs=!0,n.addons.tab_template=n.listing.dataset.tabTemplate?n.listing.dataset.tabTemplate:"",n.addons.tab_onload=n.listing.dataset.tabOnload?n.listing.dataset.tabOnload:"",n.addons.tabs_resturl=n.listing.dataset.tabsRestUrl?n.listing.dataset.tabsRestUrl:"",""!==n.addons.tab_onload){var F=document.querySelector(".alm-tab-nav li [data-tab-url="+n.addons.tab_onload+"]");if(n.addons.tab_template=F?F.dataset.tabTemplate:n.addons.tab_template,n.listing.dataset.tabOnload="",F){var C=document.querySelector(".alm-tab-nav li .active");C&&C.classList.remove("active")}}}else n.addons.tabs=!1;if("true"===n.extensions.restapi?(n.extensions.restapi=!0,n.extensions.restapi_debug=void 0!==n.extensions.restapi_debug&&n.extensions.restapi_debug,n.extensions.restapi=""!==n.extensions.restapi_template_id&&n.extensions.restapi):n.extensions.restapi=!1,"true"===n.addons.preloaded?(n.addons.preloaded_amount=void 0===n.addons.preloaded_amount?n.posts_per_page:n.addons.preloaded_amount,n.localize&&n.localize.total_posts&&parseInt(n.localize.total_posts)<=parseInt(n.addons.preloaded_amount)&&(n.addons.preloaded_total_posts=n.localize.total_posts,n.disable_ajax=!0)):n.addons.preloaded="false",n.addons.seo=void 0!==n.addons.seo&&n.addons.seo,n.addons.seo="true"===n.addons.seo||n.addons.seo,n.addons.seo&&(n.addons.seo_permalink=n.listing.dataset.seoPermalink,n.addons.seo_pageview=n.listing.dataset.seoPageview,n.addons.seo_trailing_slash="false"===n.listing.dataset.seoTrailingSlash?"":"/",n.addons.seo_leading_slash="true"===n.listing.dataset.seoLeadingSlash?"/":""),n.start_page=n.listing.dataset.seoStartPage,n.start_page?(n.addons.seo_scroll=n.listing.dataset.seoScroll,n.addons.seo_scrolltop=n.listing.dataset.seoScrolltop,n.addons.seo_controls=n.listing.dataset.seoControls,n.isPaged=!1,n.start_page>1&&(n.isPaged=!0,n.posts_per_page=n.start_page*n.posts_per_page),n.addons.paging&&(n.posts_per_page=n.orginal_posts_per_page)):n.start_page=1,"true"===n.addons.nextpage?(n.addons.nextpage=!0,n.posts_per_page=1,void 0===n.addons.nextpage_urls&&(n.addons.nextpage_urls="true"),void 0===n.addons.nextpage_scroll&&(n.addons.nextpage_scroll="false:30"),void 0===n.addons.nextpage_pageviews&&(n.addons.nextpage_pageviews="true"),void 0===n.addons.nextpage_post_id&&(n.addons.nextpage=!1,n.addons.nextpage_post_id=null),void 0===n.addons.nextpage_startpage&&(n.addons.nextpage_startpage=1),n.addons.nextpage_startpage>1&&(n.isPaged=!0)):n.addons.nextpage=!1,"true"===n.addons.single_post?(n.addons.single_post=!0,n.addons.single_post_permalink="",n.addons.single_post_title="",n.addons.single_post_slug="",n.addons.single_post_order=void 0===n.addons.single_post_order?"previous":n.addons.single_post_order,n.addons.single_post_taxonomy=void 0===n.addons.single_post_taxonomy?"":n.addons.single_post_taxonomy,n.addons.single_post_excluded_terms=void 0===n.addons.single_post_excluded_terms?"":n.addons.single_post_excluded_terms,n.addons.single_post_progress_bar=void 0===n.addons.single_post_progress_bar?"":n.addons.single_post_progress_bar,n.addons.single_post_target=void 0===n.addons.single_post_target?"":n.addons.single_post_target,n.addons.single_post_title_template=n.listing.dataset.singlePostTitleTemplate,n.addons.single_post_siteTitle=n.listing.dataset.singlePostSiteTitle,n.addons.single_post_siteTagline=n.listing.dataset.singlePostSiteTagline,n.addons.single_post_pageview=n.listing.dataset.singlePostPageview,n.addons.single_post_scroll=n.listing.dataset.singlePostScroll,n.addons.single_post_scroll_speed=n.listing.dataset.singlePostScrollSpeed,n.addons.single_post_scroll_top=n.listing.dataset.singlePostScrolltop,n.addons.single_post_controls=n.listing.dataset.singlePostControls):n.addons.single_post=!1,n.addons.single_post&&void 0===n.addons.single_post_id&&(n.addons.single_post_id="",n.addons.single_post_init_id=""),(void 0===n.pause||n.addons.seo&&n.start_page>1)&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.seo&&n.start_page>0&&(n.pause=!1),n.addons.filters&&n.addons.filters_startpage>0&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.paging&&(n.pause=!0),n.repeater=void 0===n.repeater?"default":n.repeater,n.theme_repeater=void 0!==n.theme_repeater&&n.theme_repeater,n.max_pages=void 0===n.max_pages||0===n.max_pages?1e4:n.max_pages,n.scroll_distance=void 0===n.scroll_distance?100:n.scroll_distance,n.scroll_distance_perc=!1,-1==n.scroll_distance.toString().indexOf("%")?n.scroll_distance=parseInt(n.scroll_distance):(n.scroll_distance_perc=!0,n.scroll_distance_orig=parseInt(n.scroll_distance),n.scroll_distance=(0,A.default)(n)),n.scroll_container=void 0===n.scroll_container?"":n.scroll_container,n.scroll_direction=void 0===n.scroll_direction?"vertical":n.scroll_direction,n.transition=void 0===n.transition?"fade":n.transition,n.tcc=void 0===n.tcc?"":n.tcc,n.is_masonry_preloaded=!1,"masonry"===n.transition&&(n.masonry_init=!0,n.msnry?n.msnry.destroy():n.msnry="",n.masonry_selector=n.listing.dataset.masonrySelector,n.masonry_columnwidth=n.listing.dataset.masonryColumnwidth,n.masonry_animation=n.listing.dataset.masonryAnimation,n.masonry_animation=void 0===n.masonry_animation?"standard":n.masonry_animation,n.masonry_horizontalorder=n.listing.dataset.masonryHorizontalorder,n.masonry_horizontalorder=void 0===n.masonry_horizontalorder?"true":n.masonry_horizontalorder,n.transition_container=!1,n.images_loaded=!1,n.is_masonry_preloaded="true"===n.addons.preloaded||n.is_masonry_preloaded),void 0===n.listing.dataset.scroll?n.scroll=!0:"false"===n.listing.dataset.scroll?n.scroll=!1:n.scroll=!0,n.transition_container=void 0===n.transition_container||"true"===n.transition_container,n.button_label=void 0===n.button_label?"Older Posts":n.button_label,n.button_loading_label=void 0!==n.button_loading_label&&n.button_loading_label,n.button_done_label=void 0!==n.button_done_label&&n.button_done_label,n.addons.paging)n.main.classList.add("loading");else{var D=t.childNodes;if(D){var q=Array.prototype.slice.call(D).filter((function(t){return!!t.classList&&t.classList.contains("alm-btn-wrap")}));n.button=q?q[0].querySelector(".alm-load-more-btn"):container.querySelector(".alm-btn-wrap .alm-load-more-btn")}else n.button=container.querySelector(".alm-btn-wrap .alm-load-more-btn");n.button.disabled=!1,n.button.style.display=""}if(n.integration.woocommerce?(n.resultsText=document.querySelectorAll(".woocommerce-result-count"),n.resultsText.length<1&&(n.resultsText=document.querySelectorAll(".alm-results-text"))):n.resultsText=document.querySelectorAll(".alm-results-text"),n.resultsText?n.resultsText.forEach((function(t){t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true")})):n.resultsText=!1,n.tableofcontents=document.querySelector(".alm-toc"),n.tableofcontents?(n.tableofcontents.setAttribute("aria-live","polite"),n.tableofcontents.setAttribute("aria-atomic","true")):n.tableofcontents=!1,n.AjaxLoadMore.loadPosts=function(){if("function"==typeof almOnChange&&window.almOnChange(n),(0,P.showPlaceholder)(n),!n.disable_ajax)if(n.addons.paging||(n.button.classList.add("loading"),!1!==n.button_loading_label&&(n.button.innerHTML=n.button_loading_label)),n.main.classList.add("alm-loading"),n.loading=!0,"true"!==n.addons.cache||n.addons.cache_logged_in)n.AjaxLoadMore.ajax("standard");else{var t=(0,l.default)(n);t?r.default.get(t).then((function(t){n.AjaxLoadMore.success(t.data,!0)})).catch((function(t){n.AjaxLoadMore.ajax("standard")})):n.AjaxLoadMore.ajax("standard")}},n.AjaxLoadMore.ajax=function(t){var e="alm_get_posts";n.acf_array="",n.extensions.acf&&("relationship"!==n.extensions.acf_field_type&&(e="alm_acf"),n.acf_array={acf:"true",post_id:n.extensions.acf_post_id,field_type:n.extensions.acf_field_type,field_name:n.extensions.acf_field_name,parent_field_name:n.extensions.acf_parent_field_name}),n.term_query_array="",n.extensions.term_query&&(e="alm_get_terms",n.term_query_array={term_query:"true",taxonomy:n.extensions.term_query_taxonomy,hide_empty:n.extensions.term_query_hide_empty,number:n.extensions.term_query_number}),n.nextpage_array="",n.addons.nextpage&&(e="alm_nextpage",n.nextpage_array={nextpage:"true",urls:n.addons.nextpage_urls,scroll:n.addons.nextpage_scroll,pageviews:n.addons.nextpage_pageviews,post_id:n.addons.nextpage_post_id,startpage:n.addons.nextpage_startpage}),n.single_post_array="",n.addons.single_post&&(n.single_post_array={single_post:"true",id:n.addons.single_post_id,slug:n.addons.single_post_slug}),n.comments_array="","true"===n.addons.comments&&(e="alm_comments",n.posts_per_page=n.addons.comments_per_page,n.comments_array={comments:"true",post_id:n.addons.comments_post_id,per_page:n.addons.comments_per_page,type:n.addons.comments_type,style:n.addons.comments_style,template:n.addons.comments_template,callback:n.addons.comments_callback}),n.users_array="",n.addons.users&&(e="alm_users",n.users_array={users:"true",role:n.listing.dataset.usersRole,include:n.listing.dataset.usersInclude,exclude:n.listing.dataset.usersExclude,per_page:n.posts_per_page,order:n.listing.dataset.usersOrder,orderby:n.listing.dataset.usersOrderby}),n.cta_array="","true"===n.addons.cta&&(n.cta_array={cta:"true",cta_position:n.addons.cta_position,cta_repeater:n.addons.cta_repeater,cta_theme_repeater:n.addons.cta_theme_repeater}),n.extensions.restapi?n.AjaxLoadMore.restapi(n,e,t):n.addons.tabs?n.AjaxLoadMore.tabs(n):n.AjaxLoadMore.adminajax(n,e,t)},n.AjaxLoadMore.adminajax=function(t,e,n){1==t.page||t.addons.paging||t.button.classList.add("loading"),r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t}));var o=alm_localize.ajaxurl,a=d.almGetAjaxParams(t,e,n);t.addons.single_post&&t.addons.single_post_target&&(o=t.addons.single_post_permalink,a=""),t.addons.woocommerce&&(o=(0,v.default)(t),a=""),t.addons.elementor&&t.addons.elementor_type&&"posts"===t.addons.elementor_type&&(o=(0,v.default)(t),a=""),r.default.get(o,{params:a}).then((function(e){var r="";t.addons.single_post&&t.addons.single_post_target?(r=(0,E.singlePostHTML)(e,t.addons.single_post_target),(0,L.createCacheFile)(t,r.html,"single")):t.addons.woocommerce?(r=(0,O.wooGetContent)(e,t),(0,L.createCacheFile)(t,r.html,"woocommerce")):t.addons.elementor?(r=(0,M.elementorGetContent)(e,t),(0,L.createCacheFile)(t,r.html,"elementor")):r=e.data,"standard"===n?t.AjaxLoadMore.success(r,!1):"totalpages"===n&&t.addons.paging&&t.addons.nextpage?"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalpages,t):"totalposts"===n&&t.addons.paging&&"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalposts,t)})).catch((function(e){t.AjaxLoadMore.error(e,"adminajax")}))},n.AjaxLoadMore.tabs=function(t){var e=t.addons.tabs_resturl+"ajaxloadmore/tab",n={post_id:t.post_id,template:t.addons.tab_template};r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t})),r.default.get(e,{params:n}).then((function(e){var n={html:e.data.html,meta:{postcount:1,totalposts:1}};t.AjaxLoadMore.success(n,!1),"function"==typeof almTabLoaded&&window.almTabLoaded(t)})).catch((function(e){t.AjaxLoadMore.error(e,"restapi")}))},n.AjaxLoadMore.restapi=function(t,e,n){var o=wp.template(t.extensions.restapi_template_id),a=t.extensions.restapi_base_url+"/"+t.extensions.restapi_namespace+"/"+t.extensions.restapi_endpoint,i=d.almGetRestParams(t);r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t})),r.default.get(a,{params:i}).then((function(e){for(var n=e.data,r="",a=n.html,i=n.meta,s=i.postcount,l=i.totalposts,c=0;c<a.length;c++){var u=a[c];"true"===t.restapi_debug&&console.log(u),r+=o(u)}var d={html:r,meta:{postcount:s,totalposts:l}};t.AjaxLoadMore.success(d,!1)})).catch((function(e){t.AjaxLoadMore.error(e,"restapi")}))},n.addons.paging&&(n.addons.nextpage?n.AjaxLoadMore.ajax("totalpages"):n.AjaxLoadMore.ajax("totalposts")),n.AjaxLoadMore.success=function(e,r){var o=this;n.addons.single_post&&n.AjaxLoadMore.getSinglePost();var a=!1,l="table"===n.container_type?document.createElement("tbody"):document.createElement("div");n.el=l,l.style.opacity=0,l.style.height=0,l.style.outline="none";var d,f,v,x=n.listing.querySelector(".alm-paging-content");if(r?d=e:(d=e.html,f=e.meta,n.posts=n.addons.paging?f.postcount:n.posts+f.postcount,v=f.postcount,n.totalposts=f.totalposts,n.totalposts="true"===n.addons.preloaded?n.totalposts-n.addons.preloaded_amount:n.totalposts,n.debug=f.debug?f.debug:""),n.html=d,v=r?(0,c.default)(d).length:v,n.init&&(f&&(n.main.dataset.totalPosts=f.totalposts?f.totalposts:0),n.addons.paging&&v>0&&n.AjaxLoadMore.pagingInit(d,"alm-reveal"),0===v&&(n.addons.paging&&"function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&setTimeout((function(){(0,w.default)(n.content,n.no_results)}),n.speed+10)),n.isPaged&&(n.posts_per_page=n.addons.users?n.listing.dataset.usersPerPage:n.listing.dataset.postsPerPage,n.posts_per_page=n.addons.nextpage?1:n.posts_per_page,n.page=n.start_page?n.start_page-1:n.page,n.addons.filters&&n.addons.filters_startpage>0&&(n.page=n.addons.filters_startpage-1,n.posts_per_page=n.listing.dataset.postsPerPage))),(0,S.default)(n),N(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.default)(n);case 2:case"end":return t.stop()}}),t,o)})))(),v>0){if(n.addons.paging)n.init?setTimeout((function(){n.main.classList.remove("alm-loading"),n.AjaxLoadMore.triggerAddons(n)}),n.speed):x&&((0,b.default)(x,n.speed),x.style.outline="none",n.main.classList.remove("alm-loading"),setTimeout((function(){x.style.opacity=0,x.innerHTML=n.html,R(x,(function(){n.AjaxLoadMore.triggerAddons(n),(0,_.default)(x,n.speed),setTimeout((function(){x.style.opacity="",h.default.init(x)}),parseInt(n.speed)+10),"function"==typeof almOnPagingComplete&&window.almOnPagingComplete(n)}))}),parseInt(n.speed)+25));else{if(n.addons.single_post)l.setAttribute("class","alm-reveal alm-single-post post-"+n.addons.single_post_id+n.tcc),l.dataset.url=n.addons.single_post_permalink,l.dataset.page=n.page,l.dataset.id=n.addons.single_post_id,l.dataset.title=n.addons.single_post_title,l.innerHTML=n.html;else if(n.transition_container){var A=void 0,P=window.location.search,E=n.addons.seo?" alm-seo":"",L=n.addons.filters?" alm-filters":"",F=n.is_preloaded?" alm-preloaded":"";if(n.init&&(n.start_page>1||n.addons.filters_startpage>0)){var C=[],k=[],D=parseInt(n.posts_per_page),q=Math.ceil(v/D);a=!0,"true"===n.addons.cta&&(D+=1,q=Math.ceil(v/D),v=q+v);for(var B=(0,u.default)((0,c.default)(n.html,"text/html")),H=0;H<v;H+=D)C.push(B.slice(H,D+H));for(var W=0;W<C.length;W++){var U="true"===n.addons.preloaded?1:0,V=document.createElement("div");W>0||"true"===n.addons.preloaded?(A=W+1+U,n.addons.seo&&(V=(0,I.createSEOAttributes)(n,V,P,E,A)),n.addons.filters&&(V.setAttribute("class","alm-reveal"+L+n.tcc),V.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,P,A),V.dataset.page=A)):(n.addons.seo&&(V=(0,I.createSEOAttributes)(n,V,P,E,1)),n.addons.filters&&(V.setAttribute("class","alm-reveal"+L+F+n.tcc),V.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,P,0),V.dataset.page="1")),(0,i.default)(V,C[W]),(0,j.default)(V,n.ua),k.push(V)}n.listing.style.opacity=0,n.listing.style.height=0,(0,i.default)(n.listing,k),l=n.listing,n.el=l}else{if(n.addons.seo&&n.page>0||"true"===n.addons.preloaded){var G="true"===n.addons.preloaded?1:0;A=n.page+1+G,n.addons.seo?l=(0,I.createSEOAttributes)(n,l,P,E,A):n.addons.filters?(l.setAttribute("class","alm-reveal"+L+n.tcc),l.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,P,A),l.dataset.page=A):l.setAttribute("class","alm-reveal"+n.tcc)}else n.addons.filters?(l.setAttribute("class","alm-reveal"+L+n.tcc),l.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,P,parseInt(n.page)+1),l.dataset.page=parseInt(n.page)+1):n.addons.seo?l=(0,I.createSEOAttributes)(n,l,P,E,1):l.setAttribute("class","alm-reveal"+n.tcc);l.innerHTML=n.html}}else n.el=n.html,l="table"===n.container_type?(0,s.default)(n.html):(0,u.default)((0,c.default)(n.html,"text/html"));if(n.addons.woocommerce)return N(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,O.woocommerce)(l,n,e.pageTitle);case 2:r=n.page+2,n.button.dataset.page=r,o=n.addons.woocommerce_paged_urls[r-1],n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),r>parseInt(n.addons.woocommerce_pages)&&n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t),console.log("There was an error loading woocommerce products")})),void(n.init=!1);if(n.addons.elementor)return N(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,M.elementor)(l,n,e.pageTitle);case 2:r=n.page+1,n.button.dataset.page=r,o=n.addons.elementor_pages[r-1],n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),r>parseInt(n.addons.elementor_pages.length)&&n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t),console.log("There was an error loading Elementor Post Widget items")})),void(n.init=!1);("masonry"!==n.transition||n.init&&!n.is_masonry_preloaded)&&(a||(n.transition_container?n.listing.appendChild(l):"true"===n.images_loaded?R(l,(function(){(0,i.default)(n.listing,l),(0,j.default)(n.listing,n.ua)})):((0,i.default)(n.listing,l),(0,j.default)(n.listing,n.ua)))),"masonry"===n.transition?(n.el=n.listing,N(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,y.default)(n,n.init,z);case 2:n.masonry_init=!1,n.AjaxLoadMore.triggerWindowResize(),n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&window.almComplete(n);case 6:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an error with ALM Masonry")}))):"none"===n.transition?"true"===n.images_loaded?R(l,(function(){(0,_.default)(l,0),n.AjaxLoadMore.transitionEnd()})):((0,_.default)(l,0),n.AjaxLoadMore.transitionEnd()):"true"===n.images_loaded?R(l,(function(){n.transition_container&&(0,_.default)(l,n.speed),n.AjaxLoadMore.transitionEnd()})):(n.transition_container&&(0,_.default)(l,n.speed),n.AjaxLoadMore.transitionEnd()),n.addons.tabs&&"function"==typeof almTabsSetHeight&&R(l,(function(){(0,_.default)(n.listing,n.speed),setTimeout((function(){window.almTabsSetHeight(n)}),n.speed)}))}R(l,(function(){n.AjaxLoadMore.nested(l),h.default.init(n.el),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),z&&n.addons.filters&&"function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(t),z=!1,n.addons.tabs&&"function"==typeof almTabsComplete&&window.almTabsComplete(),n.addons.cache?n.addons.nextpage&&n.localize?parseInt(n.localize.page)===parseInt(n.localize.total_posts)&&n.AjaxLoadMore.triggerDone():v<parseInt(n.posts_per_page)&&n.AjaxLoadMore.triggerDone():n.posts>=n.totalposts&&!n.addons.single_post&&n.AjaxLoadMore.triggerDone()})),"function"==typeof almFiltersOnload&&n.init&&window.almFiltersOnload(n)}else n.AjaxLoadMore.noresults();if(void 0!==n.destroy_after&&""!==n.destroy_after){var Y=n.page+1;(Y="true"===n.addons.preloaded?Y++:Y)==n.destroy_after&&n.AjaxLoadMore.destroyed()}(0,p.tableOfContents)(n,n.init),"masonry"!==n.transition&&(0,m.default)(n,l,v,z),n.main.classList.contains("alm-is-filtering")&&n.main.classList.remove("alm-is-filtering"),n.init=!1},n.AjaxLoadMore.noresults=function(){n.addons.paging||(setTimeout((function(){n.button.classList.remove("loading"),n.button.classList.add("done")}),n.speed),n.AjaxLoadMore.resetBtnText()),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),z&&n.addons.filters&&("function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(t),z=!1),n.addons.tabs&&"function"==typeof almTabsComplete&&almTabsComplete(),n.AjaxLoadMore.triggerDone()},n.AjaxLoadMore.pagingPreloadedInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal"),""===t&&("function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,w.default)(n.content,n.no_results))},n.AjaxLoadMore.pagingNextpageInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal alm-nextpage"),"function"==typeof almSetNextPageVars&&window.almSetNextPageVars(n)},n.AjaxLoadMore.pagingInit=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"alm-reveal";t=null==t?"":t;var r=document.createElement("div");r.setAttribute("class",e);var o=document.createElement("div");o.setAttribute("class","alm-paging-content"+n.tcc),o.innerHTML=t,r.appendChild(o);var a=document.createElement("div");a.setAttribute("class","alm-paging-loading"),r.appendChild(a),n.listing.appendChild(r);var i=window.getComputedStyle(n.listing),s=parseInt(i.getPropertyValue("padding-top").replace("px","")),l=parseInt(i.getPropertyValue("padding-bottom").replace("px","")),c=r.offsetHeight;n.listing.style.height=c+s+l+"px",h.default.init(r),n.AjaxLoadMore.resetBtnText(),setTimeout((function(){"function"==typeof almFadePageControls&&window.almFadePageControls(n.btnWrap),"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.main.classList.remove("loading")}),n.speed)},n.AjaxLoadMore.nested=function(t){if(!t||!n.transition_container)return!1;var e=t.querySelectorAll(".ajax-load-more-wrap");e&&e.forEach((function(t){window.almInit(t)}))},n.addons.single_post_id&&(n.fetchingPreviousPost=!1,n.addons.single_post_init=!0),n.AjaxLoadMore.getSinglePost=function(){if(n.fetchingPreviousPost)return!1;n.fetchingPreviousPost=!0;var t=alm_localize.ajaxurl,e={id:n.addons.single_post_id,initial_id:n.addons.single_post_init_id,order:n.addons.single_post_order,taxonomy:n.addons.single_post_taxonomy,excluded_terms:n.addons.single_post_excluded_terms,post_type:n.post_type,init:n.addons.single_post_init,action:"alm_get_single"};r.default.get(t,{params:e}).then((function(t){var e=t.data;e.has_previous_post?(n.listing.dataset.singlePostId=e.prev_id,n.addons.single_post_id=e.prev_id,n.addons.single_post_permalink=e.prev_permalink,n.addons.single_post_title=e.prev_title,n.addons.single_post_slug=e.prev_slug):e.has_previous_post||n.AjaxLoadMore.triggerDone(),"function"==typeof window.almSetSinglePost&&window.almSetSinglePost(n,e.current_id,e.permalink,e.title),n.fetchingPreviousPost=!1,n.addons.single_post_init=!1})).catch((function(t){n.AjaxLoadMore.error(t,"getSinglePost"),n.fetchingPreviousPost=!1}))},n.AjaxLoadMore.triggerAddons=function(t){"function"==typeof almSetNextPage&&window.almSetNextPage(t),"function"==typeof almSEO&&window.almSEO(t,!1),"function"==typeof almWooCommerce&&window.almWooCommerce(t)},n.AjaxLoadMore.triggerDone=function(){n.loading=!1,n.finished=!0,(0,P.hidePlaceholder)(n),n.addons.paging||(!1!==n.button_done_label&&setTimeout((function(){n.button.innerHTML=n.button_done_label}),75),n.button.classList.add("done"),n.button.disabled=!0),"function"==typeof almDone&&setTimeout((function(){window.almDone(n)}),n.speed+10)},n.AjaxLoadMore.resetBtnText=function(){!1===n.button_loading_label||n.addons.paging||(n.button.innerHTML=n.button_label)},n.AjaxLoadMore.error=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;n.loading=!1,n.addons.paging||(n.button.classList.remove("loading"),n.AjaxLoadMore.resetBtnText()),console.log("Error: ",t),t.response?console.log("Error Msg: ",t.message):t.request?console.log(t.request):console.log("Error Msg: ",t.message),e&&console.log("ALM Error started in "+e),t.config&&console.log("ALM Error Debug: ",t.config)},n.AjaxLoadMore.click=function(t){var e=t.target||t.currentTarget;"true"===n.pause&&(n.pause=!1,n.pause_override=!1,n.AjaxLoadMore.loadPosts()),n.loading||n.finished||e.classList.contains("done")||(n.loading=!0,n.page++,n.AjaxLoadMore.loadPosts()),e.blur()},n.addons.paging||n.fetchingPreviousPost||(n.button.onclick=n.AjaxLoadMore.click),n.addons.paging||n.addons.tabs||n.scroll_distance_perc||"horizontal"===n.scroll_direction){var B=void 0;n.window.onresize=function(){clearTimeout(B),B=setTimeout((function(t){n.addons.tabs&&"function"==typeof almOnTabsWindowResize&&window.almOnTabsWindowResize(n),n.addons.paging&&"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.scroll_distance_perc&&(n.scroll_distance=(0,A.default)(n)),"horizontal"===n.scroll_direction&&n.AjaxLoadMore.horizontal()}),n.speed)}}n.AjaxLoadMore.isVisible=function(){return n.visible=n.main.clientWidth>0&&n.main.clientHeight>0,n.visible},n.AjaxLoadMore.triggerWindowResize=function(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}},n.AjaxLoadMore.scroll=function(){n.timer&&clearTimeout(n.timer),n.timer=setTimeout((function(){if(n.AjaxLoadMore.isVisible()&&!n.fetchingPreviousPost){var t=n.trigger.getBoundingClientRect(),e=Math.round(t.top-n.window.innerHeight)+n.scroll_distance<=0;if(n.window!==window){var r=n.main.offsetHeight,o=n.main.offsetWidth;"horizontal"===n.scroll_direction?(n.AjaxLoadMore.horizontal(),e=o<=Math.round(n.window.scrollLeft+n.window.offsetWidth-n.scroll_distance)):e=r<=Math.round(n.window.scrollTop+n.window.offsetHeight-n.scroll_distance)}(!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"===n.pause&&"true"===n.pause_override||!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"!==n.pause)&&n.button.click()}}),25)},n.AjaxLoadMore.scrollSetup=function(){n.scroll&&!n.addons.paging&&(""!==n.scroll_container&&(n.window=document.querySelector(n.scroll_container)?document.querySelector(n.scroll_container):n.window,n.AjaxLoadMore.horizontal()),n.window.addEventListener("scroll",n.AjaxLoadMore.scroll),n.window.addEventListener("touchstart",n.AjaxLoadMore.scroll),n.window.addEventListener("wheel",(function(t){Math.sign(t.deltaY)>0&&n.AjaxLoadMore.scroll()})),n.window.addEventListener("keyup",(function(t){switch(t.keyCode?t.keyCode:t.which){case 35:case 34:n.AjaxLoadMore.scroll()}})))},n.AjaxLoadMore.horizontal=function(){"horizontal"===n.scroll_direction&&(n.main.style.width=n.listing.offsetWidth+"px")},n.AjaxLoadMore.destroyed=function(){n.disable_ajax=!0,n.addons.paging||(n.button.style.display="none",n.AjaxLoadMore.triggerDone(),"function"==typeof almDestroyed&&window.almDestroyed(n))},n.AjaxLoadMore.transitionEnd=function(){setTimeout((function(){n.AjaxLoadMore.resetBtnText(),n.main.classList.remove("alm-loading"),n.button.classList.remove("loading"),n.AjaxLoadMore.triggerAddons(n),n.addons.paging||setTimeout((function(){n.loading=!1}),3*n.speed)}),50),(0,P.hidePlaceholder)(n)},n.AjaxLoadMore.setLocalizedVar=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";n.localize&&""!==t&&""!==e&&(n.localize[t]=e.toString(),window[n.master_id+"_vars"][t]=e.toString())},n.AjaxLoadMore.init=function(){if("true"===n.addons.preloaded&&1==n.destroy_after&&n.AjaxLoadMore.destroyed(),n.addons.paging||n.addons.single_post||(n.disable_ajax?(n.finished=!0,n.button.classList.add("done")):"true"===n.pause?(n.button.innerHTML=n.button_label,n.loading=!1):n.AjaxLoadMore.loadPosts()),n.addons.single_post&&(n.AjaxLoadMore.getSinglePost(),n.loading=!1,(0,p.tableOfContents)(n,!0,!0)),"true"===n.addons.preloaded&&n.addons.seo&&!n.addons.paging&&setTimeout((function(){"function"==typeof almSEO&&n.start_page<1&&window.almSEO(n,!0)}),n.speed),"true"!==n.addons.preloaded||n.addons.paging||setTimeout((function(){n.addons.preloaded_total_posts<=parseInt(n.addons.preloaded_amount)&&n.AjaxLoadMore.triggerDone(),0==n.addons.preloaded_total_posts&&("function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,w.default)(n.content,n.no_results))}),n.speed),"true"===n.addons.preloaded&&(n.resultsText&&f.almInitResultsText(n,"preloaded"),(0,p.tableOfContents)(n,n.init,!0)),n.addons.nextpage){if(n.listing.querySelector(".alm-nextpage")&&!n.addons.paging){var t=n.listing.querySelectorAll(".alm-nextpage");if(t){var e=t[0],r=n.localize.total_posts?parseInt(n.localize.total_posts):e.dataset.totalPosts;t.length!==r&&parseInt(e.dataset.id)!==r||n.AjaxLoadMore.triggerDone()}}n.resultsText&&f.almInitResultsText(n,"nextpage"),(0,p.tableOfContents)(n,n.init,!0)}n.addons.woocommerce&&((0,O.wooInit)(n),n.addons.woocommerce_paged>=parseInt(n.addons.woocommerce_pages)&&n.AjaxLoadMore.triggerDone()),n.addons.elementor&&n.addons.elementor_type&&"posts"===n.addons.elementor_type&&((0,M.elementorInit)(n),n.addons.elementor_paged>parseInt(n.addons.elementor_pages.length)&&n.AjaxLoadMore.triggerDone()),n.window.addEventListener("load",(function(){n.is_masonry_preloaded&&N(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,y.default)(n,!0,!1);case 2:n.masonry_init=!1;case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an error with ALM Masonry")})),"function"==typeof almOnLoad&&window.almOnLoad(n)}))},setTimeout((function(){n.proceed=!0,n.AjaxLoadMore.scrollSetup()}),500),n.AjaxLoadMore.init(),window.almUpdateCurrentPage=function(t,e,n){n.page=t,n.page=n.addons.nextpage&&!n.addons.paging?n.page-1:n.page;var r="",o="";n.addons.paging_init&&"true"===n.addons.preloaded?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.addons.preloaded_amount=0,n.AjaxLoadMore.pagingPreloadedInit(r)),n.addons.paging_init=!1,n.init=!1):n.addons.paging_init&&n.addons.nextpage?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.AjaxLoadMore.pagingNextpageInit(r)),n.addons.paging_init=!1,n.init=!1):n.AjaxLoadMore.loadPosts()},window.almGetParentContainer=function(){return n.listing},window.almGetObj=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==t?n[t]:n},window.almTriggerClick=function(){n.button.click()}};window.almInit=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;new t(e,n)};var e=document.querySelectorAll(".ajax-load-more-wrap");e.length&&[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e)).forEach((function(e,n){new t(e,n)}))}();e.filter=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fade",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t||!e||!n)return!1;z=!0,(0,x.default)(t,e,n,"filter")};e.tab=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="fade",n=alm_localize.speed?parseInt(alm_localize.speed):200;if(!t)return!1;z=!0,(0,x.default)(e,n,t,"tab")};e.tracking=function(t){"function"==typeof gtag&&(gtag("event","page_view",{page_path:t}),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (gtag)")),"function"==typeof ga&&(ga("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (ga)")),"function"==typeof __gaTracker&&(__gaTracker("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (__gaTracker)")),"function"==typeof almAnalytics&&window.almAnalytics(t)};e.start=function(t){if(!t)return!1;window.almInit(t)};e.almScroll=function(t){if(!t)return!1;window.scrollTo({top:t,behavior:"smooth"})};e.getOffset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=t.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+r,left:e.left+n}};e.render=function(t){if(!t)return!1}},function(t,e,n){t.exports=n(140)},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(13),o=n(145),a=n(147),i=n(148),s=n(149),l=n(99);t.exports=function(t){return new Promise((function(e,c){var u=t.data,d=t.headers;r.isFormData(u)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",g=t.auth.password||"";d.Authorization="Basic "+btoa(p+":"+g)}if(f.open(t.method.toUpperCase(),a(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?i(f.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};o(e,c,r),f=null}},f.onerror=function(){c(l("Network Error",t,null,f)),f=null},f.ontimeout=function(){c(l("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var h=n(150),m=(t.withCredentials||s(t.url))&&t.xsrfCookieName?h.read(t.xsrfCookieName):void 0;m&&(d[t.xsrfHeaderName]=m)}if("setRequestHeader"in f&&r.forEach(d,(function(t,e){void 0===u&&"content-type"===e.toLowerCase()?delete d[e]:f.setRequestHeader(e,t)})),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),c(t),f=null)})),void 0===u&&(u=null),f.send(u)}))}},function(t,e,n){"use strict";var r=n(146);t.exports=function(t,e,n,o,a){var i=new Error(t);return r(i,e,n,o,a)}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(161),a=(r=o)&&r.__esModule?r:{default:r};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;for(var r=0;r<e.length;r++){var o=e[r];(0,a.default)(t,o,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)return!1;var e=["#text","#comment"],n=t.filter((function(t){return-1===e.indexOf(t.nodeName.toLowerCase())}));return n}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=0,a=0,i=0,s="true"===t.addons.preloaded,l=!!t.addons.paging,c=t.orginal_posts_per_page;switch(e){case"nextpage":a=n=parseInt(t.localize.page),r=parseInt(t.localize.total_posts),i=parseInt(r),o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:n=parseInt(t.page)+1,r=Math.ceil(t.localize.total_posts/c),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts),s&&(n=l?t.page+1:n+1),o(t.resultsText,n,r,a,i)}}Object.defineProperty(e,"__esModule",{value:!0}),e.almResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||"true"===t.nested)return!1;var n="nextpage"===e||"woocommerce"===e?e:"standard";r(t,n)},e.almGetResultsText=r,e.almInitResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=Math.ceil(t.localize.total_posts/t.orginal_posts_per_page),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts);switch(e){case"nextpage":n=t.addons.nextpage_startpage,a=n,r=i,o(t.resultsText,n,i,a,i);break;case"preloaded":n=t.addons.paging&&t.addons.seo?parseInt(t.start_page)+1:parseInt(t.page)+1,o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:console.log("No results to set.")}};var o=function(t,e,n,r,o){t.forEach((function(t){var a=(n=parseInt(n))>0?alm_localize.results_text:alm_localize.no_results_text;n>0?(a=(a=(a=(a=(a=(a=a.replace("{num}",'<span class="alm-results-num">'+e+"</span>")).replace("{page}",'<span class="alm-results-page">'+e+"</span>")).replace("{total}",'<span class="alm-results-total">'+n+"</span>")).replace("{pages}",'<span class="alm-results-pages">'+n+"</span>")).replace("{post_count}",'<span class="alm-results-post_count">'+r+"</span>")).replace("{total_posts}",'<span class="alm-results-total_posts">'+o+"</span>"),t.innerHTML=a):t.innerHTML=a}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tableOfContents=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.localize.post_count?parseInt(t.localize.post_count):0;if(0==r&&!t.addons.single_post)return!1;if(t&&t.tableofcontents&&t.transition_container&&"masonry"!==t.transition){var o=t.tableofcontents.dataset.offset?parseInt(t.tableofcontents.dataset.offset):30,a=t.start_page?parseInt(t.start_page):0,i=t.addons.filters_startpage?parseInt(t.addons.filters_startpage):0,l=t.addons.nextpage_startpage?parseInt(t.addons.nextpage_startpage):0,c=parseInt(t.page),u="true"===t.addons.preloaded;if(t.addons.paging||t.addons.nextpage)return!1;e?setTimeout((function(){if(t.addons.seo&&a>1||t.addons.filters&&i>1||t.addons.nextpage&&l>1){if(t.addons.seo&&a>1)for(var e=0;e<a;e++)s(t,e,o);if(t.addons.filters&&i>1)for(var r=0;r<i;r++)s(t,r,o);if(t.addons.nextpage&&l>1)for(var d=0;d<l;d++)s(t,d,o)}else!n&&u&&(c+=1),s(t,c,o)}),100):(u&&(t.addons.seo&&a>0||t.addons.filters&&i>0?c=c:c+=1),s(t,c,o))}},e.clearTOC=function(){var t=document.querySelector(".alm-toc");t&&(t.innerHTML="")};var r,o=n(95),a=n(49),i=(r=a)&&r.__esModule?r:{default:r};function s(t,e,n){if(!t.tableofcontents)return!1;var r=document.createElement("button");r.type="button",e=parseInt(e)+1,r.innerHTML=function(t,e){var n=e;if(t.addons.single_post){var r=document.querySelector('.alm-reveal.alm-single-post[data-page="'+(e-1)+'"]');n=r?r.dataset.title:n}var o="almTOCLabel_"+t.id;"function"==typeof window[o]&&(n=window[o](e,n));return n}(t,e),r.dataset.page=e,t.tableofcontents.appendChild(r),r.addEventListener("click",(function(e){var r=this.dataset.page,a=document.querySelector(".alm-reveal:nth-child("+r+")")||document.querySelector(".alm-nextpage:nth-child("+r+")");if(!a)return!1;var s="function"==typeof o.getOffset?(0,o.getOffset)(a).top:a.offsetTop;(0,o.almScroll)(s-n),setTimeout((function(){(0,i.default)(t,a,r,!1)}),1e3)}))}},function(t,e,n){"use strict";function r(t,e,n,r,o){return e.classList.add(r),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.createMasonrySEOPage=function(t,e){if(!t.addons.seo)return e;var n=window.location.search,o=t.page+1;return o="true"===t.addons.preloaded?o+1:o,e=r(t,e,n,"alm-seo",o)},e.createMasonrySEOPages=function(t,e){if(!t.addons.seo)return e;var n=1,o=t.page,a=window.location.search;if(t.start_page>1){for(var i=parseInt(t.posts_per_page),s=[],l=0;l<e.length;l+=i)s.push(e.slice(l,i+l));for(var c=0;c<s.length;c++){var u=c>0?c*i:0;n=c+1,e[u]&&(e[u]=r(t,e[u],a,"alm-seo",n))}}else n=o,e[0]=r(t,e[0],a,"alm-seo",n);return e},e.createSEOAttributes=function(t,e,n,r,o){e.setAttribute("class","alm-reveal"+r+t.tcc),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(179)),o=a(n(49));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}e.default=function(t,e,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.location,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return new Promise((function(c){var u=e.length,d=0,f=1;!function p(){f<=u?i(regeneratorRuntime.mark((function o(){return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e[d].style.opacity=0,1==f&&(e[d].classList.add(l),e[d].dataset.url=s,e[d].dataset.page=n.page+1,e[d].dataset.pageTitle=a),o.next=4,(0,r.default)(t,e[d],n.ua);case 4:f++,d++,p();case 7:case"end":return o.stop()}}),o,this)})))().catch((function(t){console.log("There was an error loading the items")})):(setTimeout((function(){e.map((function(t){t.style.opacity=1})),e[0]&&(0,o.default)(n,e[0],null,!1)}),50),c(!0))}()}))}},function(t,e,n){t.exports=!n(8)&&!n(2)((function(){return 7!=Object.defineProperty(n(69)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(1),o=n(7),a=n(31),i=n(70),s=n(9).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(14),o=n(16),a=n(52)(!1),i=n(71)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),l=0,c=[];for(n in s)n!=i&&r(s,n)&&c.push(n);for(;e.length>l;)r(s,n=e[l++])&&(~a(c,n)||c.push(n));return c}},function(t,e,n){var r=n(9),o=n(3),a=n(32);t.exports=n(8)?Object.defineProperties:function(t,e){o(t);for(var n,i=a(e),s=i.length,l=0;s>l;)r.f(t,n=i[l++],e[n]);return t}},function(t,e,n){var r=n(16),o=n(35).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return i&&"[object Window]"==a.call(t)?function(t){try{return o(t)}catch(t){return i.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(8),o=n(32),a=n(53),i=n(46),s=n(10),l=n(45),c=Object.assign;t.exports=!c||n(2)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=s(t),c=arguments.length,u=1,d=a.f,f=i.f;c>u;)for(var p,g=l(arguments[u++]),h=d?o(g).concat(d(g)):o(g),m=h.length,v=0;m>v;)p=h[v++],r&&!f.call(g,p)||(n[p]=g[p]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(19),o=n(4),a=n(116),i=[].slice,s={},l=function(t,e,n){if(!(e in s)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";s[e]=Function("F,a","return new F("+r.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),s=function(){var r=n.concat(i.call(arguments));return this instanceof s?l(e,r.length,r):a(e,r,t)};return o(e.prototype)&&(s.prototype=e.prototype),s}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(1).parseInt,o=n(40).trim,a=n(75),i=/^[-+]?0[xX]/;t.exports=8!==r(a+"08")||22!==r(a+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(i.test(n)?16:10))}:r},function(t,e,n){var r=n(1).parseFloat,o=n(40).trim;t.exports=1/r(n(75)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(24);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(4),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(34),o=n(29),a=n(39),i={};n(15)(i,n(5)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(i,{next:o(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&r(a.call(t)),e}}},function(t,e,n){var r=n(275);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(19),o=n(10),a=n(45),i=n(6);t.exports=function(t,e,n,s,l){r(e);var c=o(t),u=a(c),d=i(c.length),f=l?d-1:0,p=l?-1:1;if(n<2)for(;;){if(f in u){s=u[f],f+=p;break}if(f+=p,l?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;l?f>=0:d>f;f+=p)f in u&&(s=e(s,u[f],f,c));return s}},function(t,e,n){"use strict";var r=n(10),o=n(33),a=n(6);t.exports=[].copyWithin||function(t,e){var n=r(this),i=a(n.length),s=o(t,i),l=o(e,i),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?i:o(c,i))-l,i-s),d=1;for(l<s&&s<l+u&&(d=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=d,l+=d;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(90);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(8)&&"g"!=/./g.flags&&n(9).f(RegExp.prototype,"flags",{configurable:!0,get:n(56)})},function(t,e,n){"use strict";var r,o,a,i,s=n(31),l=n(1),c=n(18),u=n(47),d=n(0),f=n(4),p=n(19),g=n(43),h=n(59),m=n(48),v=n(92).set,y=n(295)(),_=n(131),b=n(296),x=n(60),w=n(132),S=l.TypeError,A=l.process,j=A&&A.versions,P=j&&j.v8||"",E=l.Promise,L="process"==u(A),O=function(){},M=o=_.f,T=!!function(){try{var t=E.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(O,O)};return(L||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==P.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},F=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){for(var r=t._v,o=1==t._s,a=0,i=function(e){var n,a,i,s=o?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(o||(2==t._h&&k(t),t._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),i=!0)),n===e.promise?c(S("Promise-chain cycle")):(a=I(n))?a.call(n,l,c):l(n)):c(r)}catch(t){u&&!i&&u.exit(),c(t)}};n.length>a;)i(n[a++]);t._c=[],t._n=!1,e&&!t._h&&C(t)}))}},C=function(t){v.call(l,(function(){var e,n,r,o=t._v,a=N(t);if(a&&(e=b((function(){L?A.emit("unhandledRejection",o,t):(n=l.onunhandledrejection)?n({promise:t,reason:o}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=L||N(t)?2:1),t._a=void 0,a&&e.e)throw e.v}))},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){v.call(l,(function(){var e;L?A.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})}))},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),F(e,!0))},z=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=I(t))?y((function(){var r={_w:n,_d:!1};try{e.call(t,c(z,r,1),c(R,r,1))}catch(t){R.call(r,t)}})):(n._v=t,n._s=1,F(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};T||(E=function(t){g(this,E,"Promise","_h"),p(t),r.call(this);try{t(c(z,this,1),c(R,this,1))}catch(t){R.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(44)(E.prototype,{then:function(t,e){var n=M(m(this,E));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=L?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&F(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new r;this.promise=t,this.resolve=c(z,t,1),this.reject=c(R,t,1)},_.f=M=function(t){return t===E||t===i?new a(t):o(t)}),d(d.G+d.W+d.F*!T,{Promise:E}),n(39)(E,"Promise"),n(42)("Promise"),i=n(7).Promise,d(d.S+d.F*!T,"Promise",{reject:function(t){var e=M(this);return(0,e.reject)(t),e.promise}}),d(d.S+d.F*(s||!T),"Promise",{resolve:function(t){return w(s&&this===i?E:this,t)}}),d(d.S+d.F*!(T&&n(55)((function(t){E.all(t).catch(O)}))),"Promise",{all:function(t){var e=this,n=M(e),r=n.resolve,o=n.reject,a=b((function(){var n=[],a=0,i=1;h(t,!1,(function(t){var s=a++,l=!1;n.push(void 0),i++,e.resolve(t).then((function(t){l||(l=!0,n[s]=t,--i||r(n))}),o)})),--i||r(n)}));return a.e&&o(a.v),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,o=b((function(){h(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(19);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(3),o=n(4),a=n(131);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(9).f,o=n(34),a=n(44),i=n(18),s=n(43),l=n(59),c=n(81),u=n(127),d=n(42),f=n(8),p=n(28).fastKey,g=n(38),h=f?"_s":"size",m=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var u=t((function(t,r){s(t,u,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[h]=0,null!=r&&l(r,n,t[c],t)}));return a(u.prototype,{clear:function(){for(var t=g(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[h]=0},delete:function(t){var n=g(this,e),r=m(n,t);if(r){var o=r.n,a=r.p;delete n._i[r.i],r.r=!0,a&&(a.n=o),o&&(o.p=a),n._f==r&&(n._f=o),n._l==r&&(n._l=a),n[h]--}return!!r},forEach:function(t){g(this,e);for(var n,r=i(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!m(g(this,e),t)}}),f&&r(u.prototype,"size",{get:function(){return g(this,e)[h]}}),u},def:function(t,e,n){var r,o,a=m(t,e);return a?a.v=n:(t._l=a={i:o=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=a),r&&(r.n=a),t[h]++,"F"!==o&&(t._i[o]=a)),t},getEntry:m,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=g(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(e)}}},function(t,e,n){"use strict";var r=n(44),o=n(28).getWeak,a=n(3),i=n(4),s=n(43),l=n(59),c=n(23),u=n(14),d=n(38),f=c(5),p=c(6),g=0,h=function(t){return t._l||(t._l=new m)},m=function(){this.a=[]},v=function(t,e){return f(t.a,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,a){var c=t((function(t,r){s(t,c,e,"_i"),t._t=e,t._i=g++,t._l=void 0,null!=r&&l(r,n,t[a],t)}));return r(c.prototype,{delete:function(t){if(!i(t))return!1;var n=o(t);return!0===n?h(d(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!i(t))return!1;var n=o(t);return!0===n?h(d(this,e)).has(t):n&&u(n,this._i)}}),c},def:function(t,e,n){var r=o(a(e),!0);return!0===r?h(t).set(e,n):r[t._i]=n,t},ufstore:h}},function(t,e,n){var r=n(20),o=n(6);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(35),o=n(53),a=n(3),i=n(1).Reflect;t.exports=i&&i.ownKeys||function(t){var e=r.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(6),o=n(77),a=n(25);t.exports=function(t,e,n,i){var s=String(a(t)),l=s.length,c=void 0===n?" ":String(n),u=r(e);if(u<=l||""==c)return s;var d=u-l,f=o.call(c,Math.ceil(d/c.length));return f.length>d&&(f=f.slice(0,d)),i?f+s:s+f}},function(t,e,n){var r=n(8),o=n(32),a=n(16),i=n(46).f;t.exports=function(t){return function(e){for(var n,s=a(e),l=o(s),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!i.call(s,n)||d.push(t?[n,s[n]]:s[n]);return d}}},function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g,a=n(94),i={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=a.assign({default:i.RFC3986,formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return String(t)}}},i)},function(t,e,n){"use strict";var r=n(13),o=n(97),a=n(142),i=n(63);function s(t){var e=new a(t),n=o(a.prototype.request,e);return r.extend(n,a.prototype,e),r.extend(n,e),n}var l=s(i);l.Axios=a,l.create=function(t){return s(r.merge(i,t))},l.Cancel=n(101),l.CancelToken=n(156),l.isCancel=n(100),l.all=function(t){return Promise.all(t)},l.spread=n(157),t.exports=l,t.exports.default=l},function(t,e){
7
  /*!
8
  * Determine if an object is a Buffer
9
  *
10
  * @author Feross Aboukhadijeh <https://feross.org>
11
  * @license MIT
12
  */
13
+ t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";var r=n(63),o=n(13),a=n(151),i=n(152);function s(t){this.defaults=t,this.interceptors={request:new a,response:new a}}s.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),(t=o.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[i,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},o.forEach(["delete","get","head","options"],(function(t){s.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}})),o.forEach(["post","put","patch"],(function(t){s.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))}})),t.exports=s},function(t,e){var n,r,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var t=s(f);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function h(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new g(t,e)),1!==c.length||u||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(99);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t}},function(t,e,n){"use strict";var r=n(13);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var a;if(n)a=n(e);else if(r.isURLSearchParams(e))a=e.toString();else{var i=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),i.push(o(e)+"="+o(t))})))})),a=i.join("&")}return a&&(t+=(-1===t.indexOf("?")?"?":"&")+a),t}},function(t,e,n){"use strict";var r=n(13),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,a,i={};return t?(r.forEach(t.split("\n"),(function(t){if(a=t.indexOf(":"),e=r.trim(t.substr(0,a)).toLowerCase(),n=r.trim(t.substr(a+1)),e){if(i[e]&&o.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([n]):i[e]?i[e]+", "+n:n}})),i):i}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,a,i){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(13);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,n){"use strict";var r=n(13),o=n(153),a=n(100),i=n(63),s=n(154),l=n(155);function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.baseURL&&!s(t.url)&&(t.url=l(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||i.adapter)(t).then((function(e){return c(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(c(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(101);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){!function(){"use strict";t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var n,r=t.HTMLElement||t.Element,o={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:r.prototype.scroll||s,scrollIntoView:r.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,i=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?g.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):o.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?o.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):g.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var t=arguments[0].left,e=arguments[0].top;g.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=f(this),r=n.getBoundingClientRect(),a=this.getBoundingClientRect();n!==e.body?(g.call(this,n,n.scrollLeft+a.left-r.left,n.scrollTop+a.top-r.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:a.left,top:a.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(t,e){this.scrollLeft=t,this.scrollTop=e}function l(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(t,e){return"Y"===e?t.clientHeight+i<t.scrollHeight:"X"===e?t.clientWidth+i<t.scrollWidth:void 0}function u(e,n){var r=t.getComputedStyle(e,null)["overflow"+n];return"auto"===r||"scroll"===r}function d(t){var e=c(t,"Y")&&u(t,"Y"),n=c(t,"X")&&u(t,"X");return e||n}function f(t){for(;t!==e.body&&!1===d(t);)t=t.parentNode||t.host;return t}function p(e){var n,r,o,i,s=(a()-e.startTime)/468;i=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*i)),r=e.startX+(e.x-e.startX)*n,o=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,r,o),r===e.x&&o===e.y||t.requestAnimationFrame(p.bind(t,e))}function g(n,r,i){var l,c,u,d,f=a();n===e.body?(l=t,c=t.scrollX||t.pageXOffset,u=t.scrollY||t.pageYOffset,d=o.scroll):(l=n,c=n.scrollLeft,u=n.scrollTop,d=s),p({scrollable:l,method:d,startTime:f,startX:c,startY:u,x:r,y:i})}}}}()},function(t,e,n){"use strict";var r,o,a,i;history,Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}),void 0===Array.isArray&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.from||(Array.from=(r=Object.prototype.toString,o=function(t){return"function"==typeof t||"[object Function]"===r.call(t)},a=Math.pow(2,53)-1,i=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),a)},function(t){var e=this,n=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!o(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var s,l=i(n.length),c=o(e)?Object(new e(l)):new Array(l),u=0;u<l;)s=n[u],c[u]=a?void 0===r?a(s,u):a.call(r,s,u):s,u+=1;return c.length=l,c})),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["#text","#comment"];e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;-1===r.indexOf(e.nodeName.toLowerCase())&&("masonry"===n&&(e.style.opacity=0),t.appendChild(e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=document.createElement("tbody");e.innerHTML=t;var n=[e];return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(64);e.default=function(t){if(!t)return!1;var e="",n=".html",o=t.addons.cache_path+t.addons.cache_id;if(t.init&&t.addons.seo&&t.isPaged)e=o+"/page-1-"+t.start_page+n;else if(t.addons.filters){var a=(0,r.parseQuerystring)(o);if(t.init&&t.isPaged)e=a+"/page-1-"+t.addons.filters_startpage+n;else{var i=t.page+1;"true"===t.addons.preloaded&&(i=t.page+2),e=a+"/page-"+i+n}}else if(t.addons.nextpage){var s=void 0;t.addons.paging?s=parseInt(t.page)+1:(s=parseInt(t.page)+2,t.isPaged&&(s=parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)),e=o+"/page-"+s+n}else e=t.addons.single_post?o+"/"+t.addons.single_post_id+n:o+"/page-"+(t.page+1)+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){for(var e=window.location.search.substring(1).split("&"),n=0;n<e.length;n++){var r=e[n].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.almGetAjaxParams=function(t,e,n){var r={id:t.id,post_id:t.post_id,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,post_type:t.post_type,repeater:t.repeater,seo_start_page:t.start_page};t.theme_repeater&&(r.theme_repeater=t.theme_repeater);t.addons.filters&&(r.filters=t.addons.filters,r.filters_startpage=t.addons.filters_startpage);t.addons.paging&&(r.paging=t.addons.paging);t.addons.preloaded&&(r.preloaded=t.addons.preloaded,r.preloaded_amount=t.addons.preloaded_amount);"true"===t.addons.cache&&(r.cache_id=t.addons.cache_id,r.cache_logged_in=t.addons.cache_logged_in);t.acf_array&&(r.acf=t.acf_array);t.term_query_array&&(r.term_query=t.term_query_array);t.cta_array&&(r.cta=t.cta_array);t.comments_array&&(r.comments=t.comments_array);t.nextpage_array&&(r.nextpage=t.nextpage_array);t.single_post_array&&(r.single_post=t.single_post_array);t.users_array&&(r.users=t.users_array);t.listing.dataset.lang&&(r.lang=t.listing.dataset.lang);t.listing.dataset.stickyPosts&&(r.sticky_posts=t.listing.dataset.stickyPosts);t.listing.dataset.postFormat&&(r.post_format=t.listing.dataset.postFormat);t.listing.dataset.category&&(r.category=t.listing.dataset.category);t.listing.dataset.categoryAnd&&(r.category__and=t.listing.dataset.categoryAnd);t.listing.dataset.categoryNotIn&&(r.category__not_in=t.listing.dataset.categoryNotIn);t.listing.dataset.tag&&(r.tag=t.listing.dataset.tag);t.listing.dataset.tagAnd&&(r.tag__and=t.listing.dataset.tagAnd);t.listing.dataset.tagNotIn&&(r.tag__not_in=t.listing.dataset.tagNotIn);t.listing.dataset.taxonomy&&(r.taxonomy=t.listing.dataset.taxonomy);t.listing.dataset.taxonomyTerms&&(r.taxonomy_terms=t.listing.dataset.taxonomyTerms);t.listing.dataset.taxonomyOperator&&(r.taxonomy_operator=t.listing.dataset.taxonomyOperator);t.listing.dataset.taxonomyRelation&&(r.taxonomy_relation=t.listing.dataset.taxonomyRelation);t.listing.dataset.metaKey&&(r.meta_key=t.listing.dataset.metaKey);t.listing.dataset.metaValue&&(r.meta_value=t.listing.dataset.metaValue);t.listing.dataset.metaCompare&&(r.meta_compare=t.listing.dataset.metaCompare);t.listing.dataset.metaRelation&&(r.meta_relation=t.listing.dataset.metaRelation);t.listing.dataset.metaType&&(r.meta_type=t.listing.dataset.metaType);t.listing.dataset.author&&(r.author=t.listing.dataset.author);t.listing.dataset.year&&(r.year=t.listing.dataset.year);t.listing.dataset.month&&(r.month=t.listing.dataset.month);t.listing.dataset.day&&(r.day=t.listing.dataset.day);t.listing.dataset.order&&(r.order=t.listing.dataset.order);t.listing.dataset.orderby&&(r.orderby=t.listing.dataset.orderby);t.listing.dataset.postStatus&&(r.post_status=t.listing.dataset.postStatus);t.listing.dataset.postIn&&(r.post__in=t.listing.dataset.postIn);t.listing.dataset.postNotIn&&(r.post__not_in=t.listing.dataset.postNotIn);t.listing.dataset.exclude&&(r.exclude=t.listing.dataset.exclude);t.listing.dataset.search&&(r.search=t.listing.dataset.search);t.listing.dataset.s&&(r.search=t.listing.dataset.s);t.listing.dataset.customArgs&&(r.custom_args=t.listing.dataset.customArgs);return r.action=e,r.query_type=n,r},e.almGetRestParams=function(t){return{id:t.id,post_id:t.post_id,posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),post_type:t.post_type,post_format:t.listing.dataset.postFormat,category:t.listing.dataset.category,category__not_in:t.listing.dataset.categoryNotIn,tag:t.listing.dataset.tag,tag__not_in:t.listing.dataset.tagNotIn,taxonomy:t.listing.dataset.taxonomy,taxonomy_terms:t.listing.dataset.taxonomyTerms,taxonomy_operator:t.listing.dataset.taxonomyOperator,taxonomy_relation:t.listing.dataset.taxonomyRelation,meta_key:t.listing.dataset.metaKey,meta_value:t.listing.dataset.metaValue,meta_compare:t.listing.dataset.metaCompare,meta_relation:t.listing.dataset.metaRelation,meta_type:t.listing.dataset.metaType,author:t.listing.dataset.author,year:t.listing.dataset.year,month:t.listing.dataset.month,day:t.listing.dataset.day,post_status:t.listing.dataset.postStatus,order:t.listing.dataset.order,orderby:t.listing.dataset.orderby,post__in:t.listing.dataset.postIn,post__not_in:t.listing.dataset.postNotIn,search:t.listing.dataset.search,s:t.listing.dataset.s,custom_args:t.listing.dataset.customArgs,lang:t.lang,preloaded:t.addons.preloaded,preloaded_amount:t.addons.preloaded_amount,seo_start_page:t.start_page}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(104));e.default=function(t){return new Promise((function(e){var n="standard";t.addons.nextpage?(n="nextpage",t.addons.paging?t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)):t.addons.woocommerce?(n="woocommerce",t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1)):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1),"true"===t.addons.preloaded||t.addons.nextpage||t.addons.woocommerce||t.AjaxLoadMore.setLocalizedVar("total_posts",t.totalposts),t.AjaxLoadMore.setLocalizedVar("post_count",function(t){var e=parseInt(t.posts),n=parseInt(t.addons.preloaded_amount),r=e+n;return r=t.start_page>1?r-n:r,r=t.addons.filters_startpage>1?r-n:r,r=t.addons.single_post?r+1:r,r=t.addons.nextpage?r+1:r}(t)),r.almResultsText(t,n),e(!0)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(65);(r=o)&&r.__esModule;var a={init:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else{var e=0,n=t.childNodes;if(void 0===n){var r=(new DOMParser).parseFromString(t,"text/html");r&&(n=r.body.childNodes)}for(;e<n.length;)this.replace(n[e++])}return t},replace:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else for(var e=0,n=t.childNodes;e<n.length;)this.replace(n[e++]);return t},isScript:function(t){return"SCRIPT"===t.tagName},clone:function(t){var e=document.createElement("script");e.text=t.innerHTML;for(var n=t.attributes.length-1;n>=0;n--)e.setAttribute(t.attributes[n].name,t.attributes[n].value);return e}};e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t||!t.trigger)return!1;var e=t.trigger.querySelector("button"),n=e?e.dataset.url:"";return n||""}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=d(n(50)),o=d(n(102)),a=d(n(65)),i=d(n(66)),s=d(n(103)),l=n(64),c=n(106),u=d(n(49));function d(t){return t&&t.__esModule?t:{default:t}}var f=n(67);e.default=function t(e,n,d){return new Promise((function(p){var g=e.listing,h=e.html,m=e.masonry_selector,v=e.masonry_columnwidth,y=e.masonry_animation,_=e.masonry_horizontalorder,b=e.speed,x=e.masonry_init,w=(b+100)/1e3+"s",S="scale(0.5)",A="scale(1)";if("zoom-out"===y&&(S="translateY(-20px) scale(1.25)",A="translateY(0) scale(1)"),"slide-up"===y&&(S="translateY(50px)",A="translateY(0)"),"slide-down"===y&&(S="translateY(-50px)",A="translateY(0)"),"none"===y&&(S="translateY(0)",A="translateY(0)"),v?isNaN(v)||(v=parseInt(v)):v=m,_="true"===_,d)g.parentNode.style.opacity=0,t(e,!0,!1),p(!0);else if(x&&n)(0,i.default)(g,e.ua),f(g,(function(){var t={itemSelector:m,transitionDuration:w,columnWidth:v,horizontalOrder:_,hiddenStyle:{transform:S,opacity:0},visibleStyle:{transform:A,opacity:1}},n=window.alm_masonry_vars;n&&Object.keys(n).forEach((function(e){t[e]=n[e]}));var o=g.querySelectorAll(m);e.addons.filters&&(o=(0,l.createMasonryFiltersPages)(e,Array.prototype.slice.call(o))),e.addons.seo&&(o=(0,c.createMasonrySEOPages)(e,Array.prototype.slice.call(o))),setTimeout((function(){e.msnry=new Masonry(g,t),(0,r.default)(g.parentNode,125),p(!0)}),1)}));else{var j=(0,s.default)((0,a.default)(h,"text/html"));j&&((0,o.default)(e.listing,j,"masonry"),(0,i.default)(g,e.ua),f(g,(function(){e.msnry.appended(j),(0,u.default)(e,j,j.length,!1),e.addons.filters&&(0,l.createMasonryFiltersPage)(e,j[0]),e.addons.seo&&(0,c.createMasonrySEOPage)(e,j[0]),p(!0)})))}}))}},function(t,e,n){var r,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(r=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},r=n[t]=n[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var r=n.indexOf(e);return-1!=r&&n.splice(r,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var a=n[o];r&&r[a]&&(this.off(t,a),delete r[a]),a.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?r.call(e,n,e,t):r)||(t.exports=o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=s(n(50)),a=s(n(68)),i=n(105);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filter";if(n.target){var o=document.querySelectorAll('.ajax-load-more-wrap[data-id="'+n.target+'"]');o.forEach((function(o){l(t,e,n,o,r)}))}else{var a=document.querySelectorAll(".ajax-load-more-wrap");a.forEach((function(o){l(t,e,n,o,r)}))}(0,i.clearTOC)()};var l=function(t,e,n,r,o){if("fade"===t||"masonry"===t){switch(o){case"filter":r.classList.add("alm-is-filtering"),(0,a.default)(r,e);break;case"tab":r.classList.add("alm-loading");var i=r.querySelector(".alm-listing");r.style.height=i.offsetHeight+"px",(0,a.default)(i,e)}setTimeout((function(){c(e,n,r,o)}),e)}else r.classList.add("alm-is-filtering"),c(e,n,r,o)},c=function(t,e,n,r){var o=n.querySelector(".alm-btn-wrap"),a=n.querySelectorAll(".alm-listing");[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(a)).forEach((function(t){t.innerHTML=""}));var i=o.querySelector(".alm-load-more-btn");i&&i.classList.remove("done");var s=o.querySelector(".alm-paging");s&&(s.style.opacity=0),e.preloadedAmount=0,u(t,e,n,r)},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=arguments[1],n=arguments[2],a=arguments[3],i=n.querySelector(".alm-listing")||n.querySelector(".alm-comments");if(!i)return!1;switch(a){case"filter":var s=!0,l=!1,c=void 0;try{for(var u,d=Object.entries(e)[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value,p=r(f,2),g=p[0],h=p[1];g=g.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase(),i.setAttribute("data-"+g,h)}}catch(t){l=!0,c=t}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}(0,o.default)(n,t);break;case"tab":i.setAttribute("data-preloaded","false"),i.setAttribute("data-pause","false"),i.setAttribute("data-tab-template",e.tabTemplate)}var m="";switch(e.target?(m=document.querySelector('.ajax-load-more-wrap[data-id="'+e.target+'"]'))&&window.almInit(m):(m=document.querySelector(".ajax-load-more-wrap"))&&window.almInit(m),a){case"filter":"function"==typeof almFilterComplete&&almFilterComplete();break;case"tab":"function"==typeof almTabsComplete&&almTabsComplete()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)return!1;e=e.replace(/(<p><\/p>)+/g,""),t.innerHTML=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(t&&t.debug){var e={query:t.debug,localize:t.localize};console.log("ALM Debug:",e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t)return!1;var e=-1!==t.scroll_distance_orig.toString().indexOf("-"),n=t.scroll_distance_orig.toString().replace("-","").replace("%",""),r=t.window.innerHeight,o=Math.floor(r/100*parseInt(n));return parseInt(e?"-"+o:o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showPlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&(t.placeholder.style.display="block",(0,r.default)(t.placeholder,75))},e.hidePlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&((0,o.default)(t.placeholder,75),setTimeout((function(){t.placeholder.style.display="none"}),75))};var r=a(n(50)),o=a(n(68));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={html:"",meta:{postcount:1,totalposts:1,debug:"Single Posts Query"}};if(200===t.status&&t.data&&e){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector(e);o&&(n.html=o.innerHTML)}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.singlePostHTML=r,e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCacheFile=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"standard";if("true"!==t.addons.cache||!e||""===e)return!1;var r="single"===n?t.addons.single_post_id:"page-"+(t.page+1),o=new FormData;o.append("action","alm_cache_from_html"),o.append("security",alm_localize.alm_nonce),o.append("cache_id",t.addons.cache_id),o.append("cache_logged_in",t.addons.cache_logged_in),o.append("canonical_url",t.canonical_url),o.append("name",r),o.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,o).then((function(e){console.log("Cache created for: "+t.canonical_url)}))},e.wooCache=function(t,e){if("true"!==t.addons.cache||!e||""===e)return!1;var n=new FormData;n.append("action","alm_cache_from_html"),n.append("security",alm_localize.alm_nonce),n.append("cache_id",t.addons.cache_id),n.append("cache_logged_in",t.addons.cache_logged_in),n.append("canonical_url",t.canonical_url),n.append("name","page-"+t.page),n.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,n).then((function(e){console.log("Cache created for post: "+t.canonical_url)}))};var r,o=n(96),a=(r=o)&&r.__esModule?r:{default:r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wooInit=function(t){if(!t||!t.addons.woocommerce)return!1;t.button.dataset.page=t.addons.woocommerce_paged+1;var e=t.addons.woocommerce_paged_urls[t.addons.woocommerce_paged];t.button.dataset.url=e||"";var n=document.querySelector(t.addons.woocommerce_classes.container);if(n){n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=n.querySelector(t.addons.woocommerce_classes.products);r&&(r.classList.add("alm-woocommerce"),r.dataset.url=t.addons.woocommerce_paged_urls[t.addons.woocommerce_paged-1],r.dataset.page=t.page,r.dataset.pageTitle=document.title),t.addons.woocommerce_paged>1&&function(t){if(t&&t.addons.woocommerce_results_text){var e=document.querySelectorAll(t.addons.woocommerce_classes.results);if(e.length<1)return!1;e.forEach((function(e){if(t.localize.woocommerce.settings.previous_page_link){var n=e.innerHTML;n+=t.localize.woocommerce.settings.previous_page_link,e.innerHTML=n}}))}}(t)}},e.woocommerce=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise((function(r){var o=document.querySelector(e.addons.woocommerce_classes.container),s=t.querySelectorAll(e.addons.woocommerce_classes.products),l=e.addons.woocommerce_paged_urls[e.page];o&&s&&l&&(s=Array.prototype.slice.call(s),i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.default)(o,s,e,n,l,"alm-woocommerce");case 2:r(!0);case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t,"There was an error with WooCommerce")})))}))},e.wooGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"WooCommerce Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.woocommerce_classes.container);n.html=a?a.innerHTML:"",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];if(t&&e&&e.addons.woocommerce_results_text){var n=t.querySelector(e.addons.woocommerce_classes.results);if(n){var r=n.innerHTML;e.addons.woocommerce_results_text.forEach((function(t){e.localize.woocommerce.settings.previous_page_link&&(r+=e.localize.woocommerce.settings.previous_page_link),t.innerHTML=r}))}}}(r,e)}return n};var r,o=n(107),a=(r=o)&&r.__esModule?r:{default:r};function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(66),a=(r=o)&&r.__esModule?r:{default:r};var i=n(67);e.default=function(t,e,n){return new Promise((function(r){i(e,(function(){e.style.transition="all 0.4s ease",t.appendChild(e),(0,a.default)(e,n),r(!0)}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.elementorInit=function(t){if(!t.addons.elementor||!t.addons.elementor_type||"posts"===!t.addons.elementor_type)return!1;var e=t.addons.elementor_target_element;if(e){t.button.dataset.page=t.addons.elementor_paged;var n=t.addons.elementor_pages[t.addons.elementor_paged-1];t.button.dataset.url=n||"",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=e.querySelector("."+t.addons.elementor_item_class);r&&(r.classList.add("alm-elementor"),r.dataset.url=window.location,r.dataset.page=t.addons.elementor_paged,r.dataset.pageTitle=document.title),t.addons.elementor_paged}},e.elementor=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise((function(r){var o=e.addons.elementor_target_element.querySelector("."+e.addons.elementor_container_class),s=t.querySelectorAll("."+e.addons.elementor_item_class),l=e.addons.elementor_pages[e.page-1];o&&s&&l&&(s=Array.prototype.slice.call(s),i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.default)(o,s,e,n,l,"alm-elementor");case 2:r(!0);case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t,"There was an error with Elementor")})))}))},e.elementorGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"Elementor Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.elementor_target+" ."+e.addons.elementor_container_class);n.html=a?a.innerHTML:""}return n},e.elementorGetPages=function(t,e,n){if(!n)return!1;var r=n.querySelector("."+t);if(!r)return 1;return r.querySelectorAll(e)};var r,o=n(107),a=(r=o)&&r.__esModule?r:{default:r};function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}},function(t,e,n){n(182)},function(t,e,n){"use strict";n(183),n(326),n(328),n(331),n(333),n(335),n(337),n(339),n(341),n(343),n(345),n(347),n(349),n(353)},function(t,e,n){n(184),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(265),n(266),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(89),n(289),n(128),n(290),n(129),n(291),n(292),n(293),n(294),n(130),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),t.exports=n(7)},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(8),i=n(0),s=n(11),l=n(28).KEY,c=n(2),u=n(51),d=n(39),f=n(30),p=n(5),g=n(70),h=n(109),m=n(186),v=n(54),y=n(3),_=n(4),b=n(10),x=n(16),w=n(27),S=n(29),A=n(34),j=n(112),P=n(21),E=n(53),L=n(9),O=n(32),M=P.f,T=L.f,I=j.f,F=r.Symbol,C=r.JSON,N=C&&C.stringify,k=p("_hidden"),R=p("toPrimitive"),z={}.propertyIsEnumerable,D=u("symbol-registry"),q=u("symbols"),B=u("op-symbols"),H=Object.prototype,W="function"==typeof F&&!!E.f,U=r.QObject,V=!U||!U.prototype||!U.prototype.findChild,G=a&&c((function(){return 7!=A(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=M(H,e);r&&delete H[e],T(t,e,n),r&&t!==H&&T(H,e,r)}:T,Y=function(t){var e=q[t]=A(F.prototype);return e._k=t,e},X=W&&"symbol"==typeof F.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof F},Q=function(t,e,n){return t===H&&Q(B,e,n),y(t),e=w(e,!0),y(n),o(q,e)?(n.enumerable?(o(t,k)&&t[k][e]&&(t[k][e]=!1),n=A(n,{enumerable:S(0,!1)})):(o(t,k)||T(t,k,S(1,{})),t[k][e]=!0),G(t,e,n)):T(t,e,n)},$=function(t,e){y(t);for(var n,r=m(e=x(e)),o=0,a=r.length;a>o;)Q(t,n=r[o++],e[n]);return t},J=function(t){var e=z.call(this,t=w(t,!0));return!(this===H&&o(q,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(q,t)||o(this,k)&&this[k][t])||e)},K=function(t,e){if(t=x(t),e=w(e,!0),t!==H||!o(q,e)||o(B,e)){var n=M(t,e);return!n||!o(q,e)||o(t,k)&&t[k][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=I(x(t)),r=[],a=0;n.length>a;)o(q,e=n[a++])||e==k||e==l||r.push(e);return r},tt=function(t){for(var e,n=t===H,r=I(n?B:x(t)),a=[],i=0;r.length>i;)!o(q,e=r[i++])||n&&!o(H,e)||a.push(q[e]);return a};W||(s((F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===H&&e.call(B,n),o(this,k)&&o(this[k],t)&&(this[k][t]=!1),G(this,t,S(1,n))};return a&&V&&G(H,t,{configurable:!0,set:e}),Y(t)}).prototype,"toString",(function(){return this._k})),P.f=K,L.f=Q,n(35).f=j.f=Z,n(46).f=J,E.f=tt,a&&!n(31)&&s(H,"propertyIsEnumerable",J,!0),g.f=function(t){return Y(p(t))}),i(i.G+i.W+i.F*!W,{Symbol:F});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var rt=O(p.store),ot=0;rt.length>ot;)h(rt[ot++]);i(i.S+i.F*!W,"Symbol",{for:function(t){return o(D,t+="")?D[t]:D[t]=F(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),i(i.S+i.F*!W,"Object",{create:function(t,e){return void 0===e?A(t):$(A(t),e)},defineProperty:Q,defineProperties:$,getOwnPropertyDescriptor:K,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var at=c((function(){E.f(1)}));i(i.S+i.F*at,"Object",{getOwnPropertySymbols:function(t){return E.f(b(t))}}),C&&i(i.S+i.F*(!W||c((function(){var t=F();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(_(e)||void 0!==t)&&!X(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,N.apply(C,r)}}),F.prototype[R]||n(15)(F.prototype,R,F.prototype.valueOf),d(F,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(51)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(32),o=n(53),a=n(46);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var i,s=n(t),l=a.f,c=0;s.length>c;)l.call(t,i=s[c++])&&e.push(i);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(34)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperty:n(9).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperties:n(111)})},function(t,e,n){var r=n(16),o=n(21).f;n(22)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},function(t,e,n){var r=n(10),o=n(36);n(22)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(10),o=n(32);n(22)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){n(22)("getOwnPropertyNames",(function(){return n(112).f}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4);n(22)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(22)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(22)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(113)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(114)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(74).set})},function(t,e,n){"use strict";var r=n(47),o={};o[n(5)("toStringTag")]="z",o+""!="[object z]"&&n(11)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(115)})},function(t,e,n){var r=n(9).f,o=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in o||n(8)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),o=n(36),a=n(5)("hasInstance"),i=Function.prototype;a in i||n(9).f(i,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),o=n(117);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(0),o=n(118);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(24),i=n(76),s=n(27),l=n(2),c=n(35).f,u=n(21).f,d=n(9).f,f=n(40).trim,p=r.Number,g=p,h=p.prototype,m="Number"==a(n(34)(h)),v="trim"in String.prototype,y=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,a=(e=v?e.trim():f(e,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var i,l=e.slice(2),c=0,u=l.length;c<u;c++)if((i=l.charCodeAt(c))<48||i>o)return NaN;return parseInt(l,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(m?l((function(){h.valueOf.call(n)})):"Number"!=a(n))?i(new g(y(e)),n,p):y(e)};for(var _,b=n(8)?c(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;b.length>x;x++)o(g,_=b[x])&&!o(p,_)&&d(p,_,u(g,_));p.prototype=h,h.constructor=p,n(11)(r,"Number",p)}},function(t,e,n){"use strict";var r=n(0),o=n(20),a=n(119),i=n(77),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=l(r/1e7)},f=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=l(n/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+i.call("0",7-n.length)+n}return e},g=function(t,e,n){return 0===e?n:e%2==1?g(t,e-1,n*t):g(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(2)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,r,s,l=a(this,u),c=o(t),h="",m="0";if(c<0||c>20)throw RangeError(u);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(h="-",l=-l),l>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(l*g(2,69,1))-69)<0?l*g(2,-e,1):l/g(2,e,1),n*=4503599627370496,(e=52-e)>0){for(d(0,n),r=c;r>=7;)d(1e7,0),r-=7;for(d(g(10,r,1),0),r=e-1;r>=23;)f(1<<23),r-=23;f(1<<r),d(1,1),f(2),m=p()}else d(0,n),d(1<<-e,0),m=p()+i.call("0",c);return m=c>0?h+((s=m.length)<=c?"0."+i.call("0",c-s)+m:m.slice(0,s-c)+"."+m.slice(s-c)):h+m}})},function(t,e,n){"use strict";var r=n(0),o=n(2),a=n(119),i=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==i.call(1,void 0)}))||!o((function(){i.call({})}))),"Number",{toPrecision:function(t){var e=a(this,"Number#toPrecision: incorrect invocation!");return void 0===t?i.call(e):i.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(1).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(120)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(120),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&a(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(118);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(117);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(0),o=n(121),a=Math.sqrt,i=Math.acosh;r(r.S+r.F*!(i&&710==Math.floor(i(Number.MAX_VALUE))&&i(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+a(t-1)*a(t+1))}})},function(t,e,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(78);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(79);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(229)})},function(t,e,n){var r=n(78),o=Math.pow,a=o(2,-52),i=o(2,-23),s=o(2,127)*(2-i),l=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),c=r(t);return o<l?c*(o/l/i+1/a-1/a)*l*i:(n=(e=(1+i/a)*o)-(e-o))>s||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,a=0,i=0,s=arguments.length,l=0;i<s;)l<(n=o(arguments[i++]))?(a=a*(r=l/n)*r+1,l=n):a+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*Math.sqrt(a)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(2)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,a=65535&r;return 0|o*a+((65535&n>>>16)*a+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(121)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(78)})},function(t,e,n){var r=n(0),o=n(79),a=Math.exp;r(r.S+r.F*n(2)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(a(t-1)-a(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(79),a=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(a(t)+a(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),o=n(33),a=String.fromCharCode,i=String.fromCodePoint;r(r.S+r.F*(!!i&&1!=i.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),o=n(16),a=n(6);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=a(e.length),r=arguments.length,i=[],s=0;n>s;)i.push(String(e[s++])),s<r&&i.push(String(arguments[s]));return i.join("")}})},function(t,e,n){"use strict";n(40)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,n){"use strict";var r=n(80)(!0);n(81)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(0),o=n(80)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(82),i="".endsWith;r(r.P+r.F*n(84)("endsWith"),"String",{endsWith:function(t){var e=a(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),s=void 0===n?r:Math.min(o(n),r),l=String(t);return i?i.call(e,l,s):e.slice(s-l.length,s)===l}})},function(t,e,n){"use strict";var r=n(0),o=n(82);r(r.P+r.F*n(84)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(77)})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(82),i="".startsWith;r(r.P+r.F*n(84)("startsWith"),"String",{startsWith:function(t){var e=a(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return i?i.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(12)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(12)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(12)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(12)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(12)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(12)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(12)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(12)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(12)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(12)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(12)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(12)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(12)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(10),a=n(27);r(r.P+r.F*n(2)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=o(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),o=n(264);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(2),o=Date.prototype.getTime,a=Date.prototype.toISOString,i=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-50000000000001))}))||!r((function(){a.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+i(t.getUTCMonth()+1)+"-"+i(t.getUTCDate())+"T"+i(t.getUTCHours())+":"+i(t.getUTCMinutes())+":"+i(t.getUTCSeconds())+"."+(n>99?n:"0"+i(n))+"Z"}:a},function(t,e,n){var r=Date.prototype,o=r.toString,a=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(11)(r,"toString",(function(){var t=a.call(this);return t==t?o.call(this):"Invalid Date"}))},function(t,e,n){var r=n(5)("toPrimitive"),o=Date.prototype;r in o||n(15)(o,r,n(267))},function(t,e,n){"use strict";var r=n(3),o=n(27);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(54)})},function(t,e,n){"use strict";var r=n(18),o=n(0),a=n(10),i=n(123),s=n(85),l=n(6),c=n(86),u=n(87);o(o.S+o.F*!n(55)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,d,f=a(t),p="function"==typeof this?this:Array,g=arguments.length,h=g>1?arguments[1]:void 0,m=void 0!==h,v=0,y=u(f);if(m&&(h=r(h,g>2?arguments[2]:void 0,2)),null==y||p==Array&&s(y))for(n=new p(e=l(f.length));e>v;v++)c(n,v,m?h(f[v],v):f[v]);else for(d=y.call(f),n=new p;!(o=d.next()).done;v++)c(n,v,m?i(d,h,[o.value,v],!0):o.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(0),o=n(86);r(r.S+r.F*n(2)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=[].join;r(r.P+r.F*(n(45)!=Object||!n(17)(a)),"Array",{join:function(t){return a.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(73),a=n(24),i=n(33),s=n(6),l=[].slice;r(r.P+r.F*n(2)((function(){o&&l.call(o)})),"Array",{slice:function(t,e){var n=s(this.length),r=a(this);if(e=void 0===e?n:e,"Array"==r)return l.call(this,t,e);for(var o=i(t,n),c=i(e,n),u=s(c-o),d=new Array(u),f=0;f<u;f++)d[f]="String"==r?this.charAt(o+f):this[o+f];return d}})},function(t,e,n){"use strict";var r=n(0),o=n(19),a=n(10),i=n(2),s=[].sort,l=[1,2,3];r(r.P+r.F*(i((function(){l.sort(void 0)}))||!i((function(){l.sort(null)}))||!n(17)(s)),"Array",{sort:function(t){return void 0===t?s.call(a(this)):s.call(a(this),o(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(0),a=n(17)([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(4),o=n(54),a=n(5)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),o=n(23)(1);r(r.P+r.F*!n(17)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(2);r(r.P+r.F*!n(17)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(3);r(r.P+r.F*!n(17)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(4);r(r.P+r.F*!n(17)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(125);r(r.P+r.F*!n(17)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(125);r(r.P+r.F*!n(17)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(52)(!1),a=[].indexOf,i=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n(17)(a)),"Array",{indexOf:function(t){return i?a.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=n(20),i=n(6),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(l||!n(17)(s)),"Array",{lastIndexOf:function(t){if(l)return s.apply(this,arguments)||0;var e=o(this),n=i(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,a(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(126)}),n(37)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(88)}),n(37)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(23)(5),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("find")},function(t,e,n){"use strict";var r=n(0),o=n(23)(6),a="findIndex",i=!0;a in[]&&Array(1)[a]((function(){i=!1})),r(r.P+r.F*i,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)(a)},function(t,e,n){n(42)("Array")},function(t,e,n){var r=n(1),o=n(76),a=n(9).f,i=n(35).f,s=n(83),l=n(56),c=r.RegExp,u=c,d=c.prototype,f=/a/g,p=/a/g,g=new c(f)!==f;if(n(8)&&(!g||n(2)((function(){return p[n(5)("match")]=!1,c(f)!=f||c(p)==p||"/a/i"!=c(f,"i")})))){c=function(t,e){var n=this instanceof c,r=s(t),a=void 0===e;return!n&&r&&t.constructor===c&&a?t:o(g?new u(r&&!a?t.source:t,e):u((r=t instanceof c)?t.source:t,r&&a?l.call(t):e),n?this:d,c)};for(var h=function(t){t in c||a(c,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},m=i(u),v=0;m.length>v;)h(m[v++]);d.constructor=c,c.prototype=d,n(11)(r,"RegExp",c)}n(42)("RegExp")},function(t,e,n){"use strict";n(129);var r=n(3),o=n(56),a=n(8),i=/./.toString,s=function(t){n(11)(RegExp.prototype,"toString",t,!0)};n(2)((function(){return"/a/b"!=i.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?o.call(t):void 0)})):"toString"!=i.name&&s((function(){return i.call(this)}))},function(t,e,n){"use strict";var r=n(3),o=n(6),a=n(91),i=n(57);n(58)("match",1,(function(t,e,n,s){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var l=r(t),c=String(this);if(!l.global)return i(l,c);var u=l.unicode;l.lastIndex=0;for(var d,f=[],p=0;null!==(d=i(l,c));){var g=String(d[0]);f[p]=g,""===g&&(l.lastIndex=a(c,o(l.lastIndex),u)),p++}return 0===p?null:f}]}))},function(t,e,n){"use strict";var r=n(3),o=n(10),a=n(6),i=n(20),s=n(91),l=n(57),c=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(58)("replace",2,(function(t,e,n,g){return[function(r,o){var a=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,a,o):n.call(String(a),r,o)},function(t,e){var o=g(n,t,this,e);if(o.done)return o.value;var d=r(t),f=String(this),p="function"==typeof e;p||(e=String(e));var m=d.global;if(m){var v=d.unicode;d.lastIndex=0}for(var y=[];;){var _=l(d,f);if(null===_)break;if(y.push(_),!m)break;""===String(_[0])&&(d.lastIndex=s(f,a(d.lastIndex),v))}for(var b,x="",w=0,S=0;S<y.length;S++){_=y[S];for(var A=String(_[0]),j=c(u(i(_.index),f.length),0),P=[],E=1;E<_.length;E++)P.push(void 0===(b=_[E])?b:String(b));var L=_.groups;if(p){var O=[A].concat(P,j,f);void 0!==L&&O.push(L);var M=String(e.apply(void 0,O))}else M=h(A,f,j,P,L,e);j>=w&&(x+=f.slice(w,j)+M,w=j+A.length)}return x+f.slice(w)}];function h(t,e,r,a,i,s){var l=r+t.length,c=a.length,u=p;return void 0!==i&&(i=o(i),u=f),n.call(s,u,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(l);case"<":s=i[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var f=d(u/10);return 0===f?n:f<=c?void 0===a[f-1]?o.charAt(1):a[f-1]+o.charAt(1):n}s=a[u-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var r=n(3),o=n(114),a=n(57);n(58)("search",1,(function(t,e,n,i){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=i(n,t,this);if(e.done)return e.value;var s=r(t),l=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var u=a(s,l);return o(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},function(t,e,n){"use strict";var r=n(83),o=n(3),a=n(48),i=n(91),s=n(6),l=n(57),c=n(90),u=n(2),d=Math.min,f=[].push,p="length",g=!u((function(){RegExp(4294967295,"y")}));n(58)("split",2,(function(t,e,n,u){var h;return h="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var a,i,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,g=void 0===e?4294967295:e>>>0,h=new RegExp(t.source,u+"g");(a=c.call(h,o))&&!((i=h.lastIndex)>d&&(l.push(o.slice(d,a.index)),a[p]>1&&a.index<o[p]&&f.apply(l,a.slice(1)),s=a[0][p],d=i,l[p]>=g));)h.lastIndex===a.index&&h.lastIndex++;return d===o[p]?!s&&h.test("")||l.push(""):l.push(o.slice(d)),l[p]>g?l.slice(0,g):l}:"0".split(void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,r):h.call(String(o),n,r)},function(t,e){var r=u(h,t,this,e,h!==n);if(r.done)return r.value;var c=o(t),f=String(this),p=a(c,RegExp),m=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(g?"y":"g"),y=new p(g?c:"^(?:"+c.source+")",v),_=void 0===e?4294967295:e>>>0;if(0===_)return[];if(0===f.length)return null===l(y,f)?[f]:[];for(var b=0,x=0,w=[];x<f.length;){y.lastIndex=g?x:0;var S,A=l(y,g?f:f.slice(x));if(null===A||(S=d(s(y.lastIndex+(g?0:x)),f.length))===b)x=i(f,x,m);else{if(w.push(f.slice(b,x)),w.length===_)return w;for(var j=1;j<=A.length-1;j++)if(w.push(A[j]),w.length===_)return w;x=b=S}}return w.push(f.slice(b)),w}]}))},function(t,e,n){var r=n(1),o=n(92).set,a=r.MutationObserver||r.WebKitMutationObserver,i=r.process,s=r.Promise,l="process"==n(24)(i);t.exports=function(){var t,e,n,c=function(){var r,o;for(l&&(r=i.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(l)n=function(){i.nextTick(c)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){o.call(r,c)};else{var d=!0,f=document.createTextNode("");new a(c).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){"use strict";var r=n(133),o=n(38);t.exports=n(61)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(133),o=n(38);t.exports=n(61)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(1),a=n(23)(0),i=n(11),s=n(28),l=n(113),c=n(134),u=n(4),d=n(38),f=n(38),p=!o.ActiveXObject&&"ActiveXObject"in o,g=s.getWeak,h=Object.isExtensible,m=c.ufstore,v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(u(t)){var e=g(t);return!0===e?m(d(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(d(this,"WeakMap"),t,e)}},_=t.exports=n(61)("WeakMap",v,y,c,!0,!0);f&&p&&(l((r=c.getConstructor(v,"WeakMap")).prototype,y),s.NEED=!0,a(["delete","has","get","set"],(function(t){var e=_.prototype,n=e[t];i(e,t,(function(e,o){if(u(e)&&!h(e)){this._f||(this._f=new r);var a=this._f[t](e,o);return"set"==t?this:a}return n.call(this,e,o)}))})))},function(t,e,n){"use strict";var r=n(134),o=n(38);n(61)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(62),a=n(93),i=n(3),s=n(33),l=n(6),c=n(4),u=n(1).ArrayBuffer,d=n(48),f=a.ArrayBuffer,p=a.DataView,g=o.ABV&&u.isView,h=f.prototype.slice,m=o.VIEW;r(r.G+r.W+r.F*(u!==f),{ArrayBuffer:f}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return g&&g(t)||c(t)&&m in t}}),r(r.P+r.U+r.F*n(2)((function(){return!new f(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==h&&void 0===e)return h.call(i(this),t);for(var n=i(this).byteLength,r=s(t,n),o=s(void 0===e?n:e,n),a=new(d(this,f))(l(o-r)),c=new p(this),u=new p(a),g=0;r<o;)u.setUint8(g++,c.getUint8(r++));return a}}),n(42)("ArrayBuffer")},function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(62).ABV,{DataView:n(93).DataView})},function(t,e,n){n(26)("Int8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(26)("Int16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Int32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Float32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Float64",8,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){var r=n(0),o=n(19),a=n(3),i=(n(1).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(2)((function(){i((function(){}))})),"Reflect",{apply:function(t,e,n){var r=o(t),l=a(n);return i?i(r,e,l):s.call(r,e,l)}})},function(t,e,n){var r=n(0),o=n(34),a=n(19),i=n(3),s=n(4),l=n(2),c=n(115),u=(n(1).Reflect||{}).construct,d=l((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),f=!l((function(){u((function(){}))}));r(r.S+r.F*(d||f),"Reflect",{construct:function(t,e){a(t),i(e);var n=arguments.length<3?t:a(arguments[2]);if(f&&!d)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var l=n.prototype,p=o(s(l)?l:Object.prototype),g=Function.apply.call(t,p,e);return s(g)?g:p}})},function(t,e,n){var r=n(9),o=n(0),a=n(3),i=n(27);o(o.S+o.F*n(2)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){a(t),e=i(e,!0),a(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(21).f,a=n(3);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(a(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),o=n(3),a=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(122)(a,"Object",(function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new a(t)}})},function(t,e,n){var r=n(21),o=n(36),a=n(14),i=n(0),s=n(4),l=n(3);i(i.S,"Reflect",{get:function t(e,n){var i,c,u=arguments.length<3?e:arguments[2];return l(e)===u?e[n]:(i=r.f(e,n))?a(i,"value")?i.value:void 0!==i.get?i.get.call(u):void 0:s(c=o(e))?t(c,n,u):void 0}})},function(t,e,n){var r=n(21),o=n(0),a=n(3);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(a(t),e)}})},function(t,e,n){var r=n(0),o=n(36),a=n(3);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(3),a=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!a||a(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(136)})},function(t,e,n){var r=n(0),o=n(3),a=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return a&&a(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(9),o=n(21),a=n(36),i=n(14),s=n(0),l=n(29),c=n(3),u=n(4);s(s.S,"Reflect",{set:function t(e,n,s){var d,f,p=arguments.length<4?e:arguments[3],g=o.f(c(e),n);if(!g){if(u(f=a(e)))return t(f,n,s,p);g=l(0)}if(i(g,"value")){if(!1===g.writable||!u(p))return!1;if(d=o.f(p,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,r.f(p,n,d)}else r.f(p,n,l(0,s));return!0}return void 0!==g.set&&(g.set.call(p,s),!0)}})},function(t,e,n){var r=n(0),o=n(74);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(327),t.exports=n(7).Array.includes},function(t,e,n){"use strict";var r=n(0),o=n(52)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("includes")},function(t,e,n){n(329),t.exports=n(7).Array.flatMap},function(t,e,n){"use strict";var r=n(0),o=n(330),a=n(10),i=n(6),s=n(19),l=n(124);r(r.P,"Array",{flatMap:function(t){var e,n,r=a(this);return s(t),e=i(r.length),n=l(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(37)("flatMap")},function(t,e,n){"use strict";var r=n(54),o=n(4),a=n(6),i=n(18),s=n(5)("isConcatSpreadable");t.exports=function t(e,n,l,c,u,d,f,p){for(var g,h,m=u,v=0,y=!!f&&i(f,p,3);v<c;){if(v in l){if(g=y?y(l[v],v,n):l[v],h=!1,o(g)&&(h=void 0!==(h=g[s])?!!h:r(g)),h&&d>0)m=t(e,n,g,a(g.length),m,d-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=g}m++}v++}return m}},function(t,e,n){n(332),t.exports=n(7).String.padStart},function(t,e,n){"use strict";var r=n(0),o=n(137),a=n(60),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(334),t.exports=n(7).String.padEnd},function(t,e,n){"use strict";var r=n(0),o=n(137),a=n(60),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(336),t.exports=n(7).String.trimLeft},function(t,e,n){"use strict";n(40)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(338),t.exports=n(7).String.trimRight},function(t,e,n){"use strict";n(40)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(340),t.exports=n(70).f("asyncIterator")},function(t,e,n){n(109)("asyncIterator")},function(t,e,n){n(342),t.exports=n(7).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(0),o=n(136),a=n(16),i=n(21),s=n(86);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),l=i.f,c=o(r),u={},d=0;c.length>d;)void 0!==(n=l(r,e=c[d++]))&&s(u,e,n);return u}})},function(t,e,n){n(344),t.exports=n(7).Object.values},function(t,e,n){var r=n(0),o=n(138)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(346),t.exports=n(7).Object.entries},function(t,e,n){var r=n(0),o=n(138)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(130),n(348),t.exports=n(7).Promise.finally},function(t,e,n){"use strict";var r=n(0),o=n(7),a=n(1),i=n(48),s=n(132);r(r.P+r.R,"Promise",{finally:function(t){var e=i(this,o.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(350),n(351),n(352),t.exports=n(7)},function(t,e,n){var r=n(1),o=n(0),a=n(60),i=[].slice,s=/MSIE .\./.test(a),l=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&i.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:l(r.setTimeout),setInterval:l(r.setInterval)})},function(t,e,n){var r=n(0),o=n(92);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(89),o=n(32),a=n(11),i=n(1),s=n(15),l=n(41),c=n(5),u=c("iterator"),d=c("toStringTag"),f=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},g=o(p),h=0;h<g.length;h++){var m,v=g[h],y=p[v],_=i[v],b=_&&_.prototype;if(b&&(b[u]||s(b,u,f),b[d]||s(b,d,v),l[v]=f,y))for(m in r)b[m]||a(b,m,r[m],!0)}},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,a=Object.create(o.prototype),i=new w(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return A()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=_(i,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,i),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var c={};function u(){}function d(){}function f(){}var p={};p[o]=function(){return this};var g=Object.getPrototypeOf,h=g&&g(g(S([])));h&&h!==e&&n.call(h,o)&&(p=h);var m=f.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function y(t,e){var r;this._invoke=function(o,a){function i(){return new e((function(r,i){!function r(o,a,i,s){var c=l(t[o],t,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,i,s)}),(function(t){r("throw",t,i,s)})):e.resolve(d).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,s)}))}s(c.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,c;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function S(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:A}}function A(){return{value:void 0,done:!0}}return d.prototype=m.constructor=f,f.constructor=d,f[i]=d.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,i in t||(t[i]="GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},v(y.prototype),y.prototype[a]=function(){return this},t.AsyncIterator=y,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new y(s(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},v(m),m[i]="Generator",m[o]=function(){return this},m.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=S,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,c):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){!function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof HTMLElement){var t=!1;try{var e=document.createElement("div");e.addEventListener("focus",(function(t){t.preventDefault(),t.stopPropagation()}),!0),e.focus(Object.defineProperty({},"preventScroll",{get:function(){t=!0}}))}catch(t){}if(void 0===HTMLElement.prototype.nativeFocus&&!t){HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus;var n=function(t){for(var e=0;e<t.length;e++)t[e][0].scrollTop=t[e][1],t[e][0].scrollLeft=t[e][2];t=[]};HTMLElement.prototype.focus=function(t){if(t&&t.preventScroll){var e=function(t){for(var e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;e&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push([e,e.scrollTop,e.scrollLeft]),e=e.parentNode;return e=r,n.push([e,e.scrollTop,e.scrollLeft]),n}(this);this.nativeFocus(),"function"==typeof setTimeout?setTimeout((function(){n(e)}),0):n(e)}else this.nativeFocus()}}}}()},function(t,e,n){"use strict";var r,o,a,i,s,l;if(Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,o.prototype=new r,o}),r=Object.prototype,o=r.__defineGetter__,a=r.__defineSetter__,i=r.__lookupGetter__,s=r.__lookupSetter__,l=r.hasOwnProperty,o&&a&&i&&s&&(Object.defineProperty||(Object.defineProperty=function(t,e,n){if(arguments.length<3)throw new TypeError("Arguments not optional");if(e+="",l.call(n,"value")&&(i.call(t,e)||s.call(t,e)||(t[e]=n.value),l.call(n,"get")||l.call(n,"set")))throw new TypeError("Cannot specify an accessor and a value");if(!(n.writable&&n.enumerable&&n.configurable))throw new TypeError("This implementation of Object.defineProperty does not support false for configurable, enumerable, or writable.");return n.get&&o.call(t,e,n.get),n.set&&a.call(t,e,n.set),t}),Object.getOwnPropertyDescriptor||(Object.getOwnPropertyDescriptor=function(t,e){if(arguments.length<2)throw new TypeError("Arguments not optional.");e+="";var n={configurable:!0,enumerable:!0,writable:!0},r=i.call(t,e),o=s.call(t,e);return l.call(t,e)?r||o?(delete n.writable,n.get=n.set=void 0,r&&(n.get=r),o&&(n.set=o),n):(n.value=t[e],n):n}),Object.defineProperties||(Object.defineProperties=function(t,e){var n;for(n in e)l.call(e,n)&&Object.defineProperty(t,n,e[n])})),!(document.documentElement.dataset||Object.getOwnPropertyDescriptor(Element.prototype,"dataset")&&Object.getOwnPropertyDescriptor(Element.prototype,"dataset").get)){var c={enumerable:!0,get:function(){var t,e,n,r,o,a,i=this.attributes,s=i.length,l=function(t){return t.charAt(1).toUpperCase()},c=function(){return this},u=function(t,e){return void 0!==e?this.setAttribute(t,e):this.removeAttribute(t)};try{({}).__defineGetter__("test",(function(){})),e={}}catch(t){e=document.createElement("div")}for(t=0;t<s;t++)if((a=i[t])&&a.name&&/^data-\w[\w\-]*$/.test(a.name)){n=a.value,o=(r=a.name).substr(5).replace(/-./g,l);try{Object.defineProperty(e,o,{enumerable:this.enumerable,get:c.bind(n||""),set:u.bind(this,r)})}catch(t){e[o]=n}}return e}};try{Object.defineProperty(Element.prototype,"dataset",c)}catch(t){c.enumerable=!1,Object.defineProperty(Element.prototype,"dataset",c)}}},function(t,e,n){"use strict";var r=n(357),o=n(358),a=n(139);t.exports={formats:a,parse:o,stringify:r}},function(t,e,n){"use strict";var r=n(94),o=n(139),a=Object.prototype.hasOwnProperty,i={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,l=Array.prototype.push,c=function(t,e){l.apply(t,s(e)?e:[e])},u=Date.prototype.toISOString,d=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(t){return u.call(t)},skipNulls:!1,strictNullHandling:!1},p=function t(e,n,o,a,i,l,u,d,p,g,h,m,v){var y,_=e;if("function"==typeof u?_=u(n,_):_ instanceof Date?_=g(_):"comma"===o&&s(_)&&(_=r.maybeMap(_,(function(t){return t instanceof Date?g(t):t})).join(",")),null===_){if(a)return l&&!m?l(n,f.encoder,v,"key"):n;_=""}if("string"==typeof(y=_)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||r.isBuffer(_))return l?[h(m?n:l(n,f.encoder,v,"key"))+"="+h(l(_,f.encoder,v,"value"))]:[h(n)+"="+h(String(_))];var b,x=[];if(void 0===_)return x;if(s(u))b=u;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var S=0;S<b.length;++S){var A=b[S],j=_[A];if(!i||null!==j){var P=s(_)?"function"==typeof o?o(n,A):n:n+(p?"."+A:"["+A+"]");c(x,t(j,P,o,a,i,l,u,d,p,g,h,m,v))}}return x};t.exports=function(t,e){var n,r=t,l=function(t){if(!t)return f;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||f.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==t.format){if(!a.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=o.formatters[n],i=f.filter;return("function"==typeof t.filter||s(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===t.allowDots?f.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:f.charsetSentinel,delimiter:void 0===t.delimiter?f.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:f.encode,encoder:"function"==typeof t.encoder?t.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:f.encodeValuesOnly,filter:i,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:f.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:f.strictNullHandling}}(e);"function"==typeof l.filter?r=(0,l.filter)("",r):s(l.filter)&&(n=l.filter);var u,d=[];if("object"!=typeof r||null===r)return"";u=e&&e.arrayFormat in i?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var g=i[u];n||(n=Object.keys(r)),l.sort&&n.sort(l.sort);for(var h=0;h<n.length;++h){var m=n[h];l.skipNulls&&null===r[m]||c(d,p(r[m],m,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.formatter,l.encodeValuesOnly,l.charset))}var v=d.join(l.delimiter),y=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""}},function(t,e,n){"use strict";var r=n(94),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},l=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,n,r){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=i.exec(a))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+a.slice(s.index)+"]"),function(t,e,n,r){for(var o=r?e:l(e,n),a=t.length-1;a>=0;--a){var i,s=t[a];if("[]"===s&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[])[u]=o:i[c]=o:i={0:o}}o=i}return o}(u,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var n,c={},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,d=e.parameterLimit===1/0?void 0:e.parameterLimit,f=u.split(e.delimiter,d),p=-1,g=e.charset;if(e.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?g="utf-8":"utf8=%26%2310003%3B"===f[n]&&(g="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var h,m,v=f[n],y=v.indexOf("]="),_=-1===y?v.indexOf("="):y+1;-1===_?(h=e.decoder(v,i.decoder,g,"key"),m=e.strictNullHandling?null:""):(h=e.decoder(v.slice(0,_),i.decoder,g,"key"),m=r.maybeMap(l(v.slice(_+1),e),(function(t){return e.decoder(t,i.decoder,g,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===g&&(m=s(m)),v.indexOf("[]=")>-1&&(m=a(m)?[m]:m),o.call(c,h)?c[h]=r.combine(c[h],m):c[h]=m}return c}(t,n):t,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),p=0;p<f.length;++p){var g=f[p],h=c(g,u[g],n,"string"==typeof t);d=r.merge(d,h,n)}return r.compact(d)}}]);
core/integration/elementor/elementor.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Add custom ALM widget category
5
+ * https://developers.elementor.com/widget-categories/
6
+ *
7
+ */
8
+ function alm_add_elementor_widget_category( $elements_manager ) {
9
+
10
+ $elements_manager->add_category(
11
+ 'ajax-load-more',
12
+ [
13
+ 'title' => __( 'Ajax Load More', 'plugin-name' ),
14
+ 'icon' => 'fa fa-plug',
15
+ ]
16
+ );
17
+
18
+ }
19
+ add_action( 'elementor/elements/categories_registered', 'alm_add_elementor_widget_category' );
20
+
21
+
22
+ add_action( 'plugins_loaded', function() {
23
+ if ( in_array( 'elementor/elementor.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
24
+ require_once( __DIR__ . '/module/plugin.php');
25
+ }
26
+ });
core/integration/elementor/module/plugin.php ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace ALMElementor;
3
+
4
+ /**
5
+ * Class ALMPlugin
6
+ *
7
+ * Main Plugin class
8
+ * @since 1.0.0
9
+ */
10
+ class Plugin {
11
+
12
+ /**
13
+ * Instance
14
+ *
15
+ * @since 1.0.0
16
+ * @access private
17
+ * @static
18
+ *
19
+ * @var Plugin The single instance of the class.
20
+ */
21
+ private static $_instance = null;
22
+
23
+ /**
24
+ * Instance
25
+ *
26
+ * Ensures only one instance of the class is loaded or can be loaded.
27
+ *
28
+ * @since 1.2.0
29
+ * @access public
30
+ *
31
+ * @return Plugin An instance of the class.
32
+ */
33
+ public static function instance() {
34
+ if ( is_null( self::$_instance ) ) {
35
+ self::$_instance = new self();
36
+ }
37
+
38
+ return self::$_instance;
39
+ }
40
+
41
+ /**
42
+ * widget_scripts
43
+ *
44
+ * Load required plugin core files.
45
+ *
46
+ * @since 1.2.0
47
+ * @access public
48
+ */
49
+ public function widget_scripts() {}
50
+
51
+ /**
52
+ * Include Widgets files
53
+ *
54
+ * Load widgets files
55
+ *
56
+ * @since 1.2.0
57
+ * @access private
58
+ */
59
+ private function include_widgets_files() {
60
+ require_once( __DIR__ . '/widget.php' );
61
+ }
62
+
63
+ /**
64
+ * Register Widgets
65
+ *
66
+ * Register new Elementor widgets.
67
+ *
68
+ * @since 1.2.0
69
+ * @access public
70
+ */
71
+ public function register_widgets() {
72
+ // Its is now safe to include Widgets files
73
+ $this->include_widgets_files();
74
+
75
+ // Register Widgets
76
+ \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\ALMElementor() );
77
+ }
78
+
79
+ /**
80
+ * Plugin class constructor
81
+ *
82
+ * Register plugin action hooks and filters
83
+ *
84
+ * @since 1.2.0
85
+ * @access public
86
+ */
87
+ public function __construct() {
88
+
89
+ // Register widget scripts
90
+ add_action( 'elementor/frontend/after_register_scripts', [ $this, 'widget_scripts' ] );
91
+
92
+ // Register widgets
93
+ add_action( 'elementor/widgets/widgets_registered', [ $this, 'register_widgets' ] );
94
+ }
95
+ }
96
+
97
+ // Instantiate Plugin Class
98
+ Plugin::instance();
core/integration/elementor/module/widget.php ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace ALMElementor\Widgets;
3
+
4
+ use Elementor\Widget_Base;
5
+ use Elementor\Controls_Manager;
6
+
7
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
8
+
9
+ /**
10
+ * @since 1.1.0
11
+ */
12
+ class ALMElementor extends Widget_Base {
13
+
14
+ const LOGO_PATH = ALM_ADMIN_URL .'/img/alm-logo-48x48.svg';
15
+ const CSS = 'cursor: default; height: 120px; width: 100%; background: #f7f7f7 url('. self::LOGO_PATH .') no-repeat center 40%; border: 1px solid #efefef; text-align: center; font-size: 12px; font-weight: 600; padding-top: 85px;"';
16
+
17
+ /**
18
+ * Retrieve the widget name.
19
+ *
20
+ * @since 1.1.0
21
+ *
22
+ * @access public
23
+ *
24
+ * @return string Widget name.
25
+ */
26
+ public function get_name() {
27
+ return 'ajax-load-more';
28
+ }
29
+
30
+ /**
31
+ * Retrieve the widget title.
32
+ *
33
+ * @since 1.1.0
34
+ *
35
+ * @access public
36
+ *
37
+ * @return string Widget title.
38
+ */
39
+ public function get_title() {
40
+ return __( 'ALM Shortcode', 'ajax-load-more' );
41
+ }
42
+
43
+ /**
44
+ * Retrieve the widget icon.
45
+ *
46
+ * @since 1.1.0
47
+ *
48
+ * @access public
49
+ *
50
+ * @return string Widget icon.
51
+ */
52
+ public function get_icon() {
53
+ return 'fa fa-code';
54
+ }
55
+
56
+ /**
57
+ * Retrieve the list of categories the widget belongs to.
58
+ *
59
+ * Used to determine where to display the widget in the editor.
60
+ *
61
+ * Note that currently Elementor supports only one category.
62
+ * When multiple categories passed, Elementor uses the first one.
63
+ *
64
+ * @since 1.1.0
65
+ *
66
+ * @access public
67
+ *
68
+ * @return array Widget categories.
69
+ */
70
+ public function get_categories() {
71
+ return [ 'ajax-load-more' ];
72
+ }
73
+
74
+ /**
75
+ * Register the widget controls.
76
+ *
77
+ * Adds different input fields to allow the user to change and customize the widget settings.
78
+ *
79
+ * @since 1.1.0
80
+ *
81
+ * @access protected
82
+ */
83
+ protected function _register_controls() {
84
+ $this->start_controls_section(
85
+ 'section_shortcode',
86
+ [
87
+ 'label' => __( 'Shortcode', 'ajax-load-more' ),
88
+ ]
89
+ );
90
+
91
+ $this->add_control(
92
+ 'alm_shortcode',
93
+ [
94
+ 'label' => __( 'Ajax Load More Shortcode', 'ajax-load-more' ),
95
+ 'type' => Controls_Manager::TEXTAREA,
96
+ 'default' => __( '[ajax_load_more]', 'ajax-load-more' ),
97
+ 'description' => __( 'The shortcode will not render while Elementor is in live edit mode, you must preview the page to view Ajax Load More functionality.', 'ajax-load-more' ) .'<br/><br/>&raquo; '. sprintf(__('%sBuild Shortcode%s', 'ajax-load-more' ), '<a href="admin.php?page=ajax-load-more-shortcode-builder" target="_blank">', '</a>'),
98
+ 'placeholder' => '[ajax_load_more]',
99
+ ]
100
+ );
101
+
102
+ $this->end_controls_section();
103
+ }
104
+
105
+ /**
106
+ * Render the widget output on the frontend.
107
+ * Written in PHP and used to generate the final HTML.
108
+ *
109
+ * @since 1.1.0
110
+ *
111
+ * @access protected
112
+ */
113
+ protected function render() {
114
+ $this->add_inline_editing_attributes( 'alm_shortcode', 'none' );
115
+ $shortcode = $this->get_settings_for_display( 'alm_shortcode' );
116
+ $shortcode = do_shortcode( shortcode_unautop( $shortcode ) );
117
+ if( \Elementor\Plugin::$instance->editor->is_edit_mode() ) {
118
+ echo '<div style="'. self::CSS .'">';
119
+ echo __( 'Ajax Load More Shortcode', 'ajax-load-more' );
120
+ echo '</div>';
121
+ } else {
122
+ echo '<div class="elementor-alm-shortcode">'. $shortcode .'</div>';
123
+ }
124
+ }
125
+
126
+ /**
127
+ * Render shortcode widget output in the editor.
128
+ * Written as a Backbone JavaScript template and used to generate the live preview.
129
+ *
130
+ * @since 2.9.0
131
+ * @access protected
132
+ */
133
+ protected function content_template() {
134
+ ?>
135
+ <#
136
+ view.addInlineEditingAttributes( 'alm_shortcode', 'none' );
137
+ #>
138
+ <?php
139
+ if( \Elementor\Plugin::$instance->editor->is_edit_mode() ) { ?>
140
+ <div style="<?php echo self::CSS; ?>"><?php _e( 'Ajax Load More Shortcode', 'ajax-load-more' ); ?></div>
141
+ <?php }
142
+ }
143
+ }
core/src/js/addons/cache.js CHANGED
@@ -1,7 +1,6 @@
1
  import axios from 'axios';
2
 
3
-
4
- /**
5
  * createCacheFile
6
  * Create a single post cache file
7
  *
@@ -10,14 +9,13 @@ import axios from 'axios';
10
  * @param {String} type
11
  * @since 5.3.1
12
  */
13
- export function createCacheFile(alm, content, type = 'standard'){
14
-
15
- if(alm.addons.cache !== 'true' || !content || content === ''){
16
  return false;
17
  }
18
-
19
  let name = type === 'single' ? alm.addons.single_post_id : `page-${alm.page + 1}`;
20
-
21
  let formData = new FormData();
22
  formData.append('action', 'alm_cache_from_html');
23
  formData.append('security', alm_localize.alm_nonce);
@@ -26,18 +24,13 @@ export function createCacheFile(alm, content, type = 'standard'){
26
  formData.append('canonical_url', alm.canonical_url);
27
  formData.append('name', name);
28
  formData.append('html', content.trim());
29
-
30
- axios.post(alm_localize.ajaxurl, formData)
31
- .then(function(response){
32
  console.log('Cache created for: ' + alm.canonical_url);
33
- //console.log(response);
34
  });
35
-
36
  }
37
 
38
-
39
-
40
- /**
41
  * wooCache
42
  * Create a WooCommerce cache file
43
  *
@@ -45,12 +38,11 @@ export function createCacheFile(alm, content, type = 'standard'){
45
  * @param {String} content
46
  * @since 5.3.1
47
  */
48
- export function wooCache(alm, content){
49
-
50
- if(alm.addons.cache !== 'true' || !content || content === ''){
51
  return false;
52
  }
53
-
54
  let formData = new FormData();
55
  formData.append('action', 'alm_cache_from_html');
56
  formData.append('security', alm_localize.alm_nonce);
@@ -59,11 +51,9 @@ export function wooCache(alm, content){
59
  formData.append('canonical_url', alm.canonical_url);
60
  formData.append('name', `page-${alm.page}`);
61
  formData.append('html', content.trim());
62
-
63
- axios.post(alm_localize.ajaxurl, formData)
64
- .then(function(response){
65
  console.log('Cache created for post: ' + alm.canonical_url);
66
  //console.log(response);
67
  });
68
-
69
- }
1
  import axios from 'axios';
2
 
3
+ /**
 
4
  * createCacheFile
5
  * Create a single post cache file
6
  *
9
  * @param {String} type
10
  * @since 5.3.1
11
  */
12
+ export function createCacheFile(alm, content, type = 'standard') {
13
+ if (alm.addons.cache !== 'true' || !content || content === '') {
 
14
  return false;
15
  }
16
+
17
  let name = type === 'single' ? alm.addons.single_post_id : `page-${alm.page + 1}`;
18
+
19
  let formData = new FormData();
20
  formData.append('action', 'alm_cache_from_html');
21
  formData.append('security', alm_localize.alm_nonce);
24
  formData.append('canonical_url', alm.canonical_url);
25
  formData.append('name', name);
26
  formData.append('html', content.trim());
27
+
28
+ axios.post(alm_localize.ajaxurl, formData).then(function (response) {
 
29
  console.log('Cache created for: ' + alm.canonical_url);
 
30
  });
 
31
  }
32
 
33
+ /**
 
 
34
  * wooCache
35
  * Create a WooCommerce cache file
36
  *
38
  * @param {String} content
39
  * @since 5.3.1
40
  */
41
+ export function wooCache(alm, content) {
42
+ if (alm.addons.cache !== 'true' || !content || content === '') {
 
43
  return false;
44
  }
45
+
46
  let formData = new FormData();
47
  formData.append('action', 'alm_cache_from_html');
48
  formData.append('security', alm_localize.alm_nonce);
51
  formData.append('canonical_url', alm.canonical_url);
52
  formData.append('name', `page-${alm.page}`);
53
  formData.append('html', content.trim());
54
+
55
+ axios.post(alm_localize.ajaxurl, formData).then(function (response) {
 
56
  console.log('Cache created for post: ' + alm.canonical_url);
57
  //console.log(response);
58
  });
59
+ }
 
core/src/js/addons/elementor.js ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import loadItems from '../modules/loadItems';
2
+
3
+ /**
4
+ * Set up the instance
5
+ *
6
+ * @param {object} alm
7
+ * @since 5.3.0
8
+ */
9
+
10
+ export function elementorInit(alm) {
11
+ if (!alm.addons.elementor || !alm.addons.elementor_type || !alm.addons.elementor_type === 'posts') {
12
+ return false;
13
+ }
14
+ let target = alm.addons.elementor_target_element;
15
+ if (target) {
16
+ // Set button data attributes
17
+ alm.button.dataset.page = alm.addons.elementor_paged;
18
+
19
+ // BSet button URL
20
+ let nextPage = alm.addons.elementor_pages[alm.addons.elementor_paged - 1];
21
+ alm.button.dataset.url = nextPage ? nextPage : '';
22
+
23
+ // Set a11y attributes
24
+ target.setAttribute('aria-live', 'polite');
25
+ target.setAttribute('aria-atomic', 'true');
26
+
27
+ alm.listing.removeAttribute('aria-live');
28
+ alm.listing.removeAttribute('aria-atomic');
29
+
30
+ // Set data atts on 1st grid item
31
+ let item = target.querySelector(`.${alm.addons.elementor_item_class}`); // Get first `.product` item
32
+ if (item) {
33
+ item.classList.add('alm-elementor');
34
+ item.dataset.url = window.location;
35
+ item.dataset.page = alm.addons.elementor_paged;
36
+ item.dataset.pageTitle = document.title;
37
+ }
38
+
39
+ if (alm.addons.elementor_paged > 1) {
40
+ // maybe soon
41
+ //almElementorResultsTextInit(alm);
42
+ }
43
+ }
44
+ }
45
+
46
+ /**
47
+ * elementor
48
+ * Core ALM Elementor loader
49
+ *
50
+ * @param {HTMLElement} content
51
+ * @param {object} alm
52
+ * @param {String} pageTitle
53
+ * @since 5.3.0
54
+ */
55
+
56
+ export function elementor(content, alm, pageTitle = document.title) {
57
+ if (!content || !alm) {
58
+ return false;
59
+ }
60
+
61
+ return new Promise((resolve) => {
62
+ let container = alm.addons.elementor_target_element.querySelector(`.${alm.addons.elementor_container_class}`); // Get post container
63
+ let items = content.querySelectorAll(`.${alm.addons.elementor_item_class}`); // Get all items in container
64
+ let url = alm.addons.elementor_pages[alm.page - 1];
65
+
66
+ if (container && items && url) {
67
+ // Convert NodeList to Array
68
+ items = Array.prototype.slice.call(items);
69
+
70
+ // Load the items
71
+ (async function () {
72
+ await loadItems(container, items, alm, pageTitle, url, 'alm-elementor');
73
+ resolve(true);
74
+ })().catch((e) => {
75
+ console.log(e, 'There was an error with Elementor');
76
+ });
77
+ }
78
+ });
79
+ }
80
+
81
+ /**
82
+ * elementorGetContent
83
+ * Get the content, title and results text from the Ajax response
84
+ *
85
+ * @param {object} alm
86
+ * @since 5.4.0
87
+ */
88
+
89
+ export function elementorGetContent(response, alm) {
90
+ let data = {
91
+ html: '',
92
+ meta: {
93
+ postcount: 1,
94
+ totalposts: alm.localize.total_posts,
95
+ debug: 'Elementor Query',
96
+ },
97
+ };
98
+ if (response.status === 200 && response.data) {
99
+ let div = document.createElement('div');
100
+ div.innerHTML = response.data;
101
+
102
+ // Get Page Title
103
+ let title = div.querySelector('title').innerHTML;
104
+ data.pageTitle = title;
105
+
106
+ // Get Elementor Items HTML
107
+ let items = div.querySelector(`${alm.addons.elementor_target} .${alm.addons.elementor_container_class}`);
108
+ data.html = items ? items.innerHTML : '';
109
+
110
+ // Results Text
111
+ //almElementorResultsText(div, alm);
112
+ }
113
+
114
+ return data;
115
+ }
116
+
117
+ /**
118
+ * Return the paging URLs from `.elementor-pagination`
119
+ *
120
+ * @param {*} target
121
+ * @return {NodeList} pages
122
+ */
123
+ export function elementorGetPages(pagination_class, pagination_item, target) {
124
+ if (!target) {
125
+ return false;
126
+ }
127
+ let pagination = target.querySelector(`.${pagination_class}`);
128
+ if (!pagination) {
129
+ return 1;
130
+ }
131
+ let pages = pagination.querySelectorAll(pagination_item);
132
+ return pages;
133
+ }
core/src/js/addons/woocommerce.js CHANGED
@@ -1,291 +1,136 @@
1
- import srcsetPolyfill from '../helpers/srcsetPolyfill';
2
- import setFocus from '../modules/setFocus';
3
- let imagesLoaded = require('imagesloaded');
4
 
5
-
6
- /**
7
- * wooGetContent
8
- * Get the content, title and results text from the Ajax response
9
- *
10
- * @param {object} alm
11
- * @since 5.3.0
12
- */
13
- export function wooGetContent( response, alm ){
14
-
15
- let data = {
16
- html: '',
17
- meta: {
18
- postcount: 1,
19
- totalposts: alm.localize.total_posts,
20
- debug: 'WooCommerce Query',
21
- }
22
- }
23
- if(response.status === 200 && response.data){
24
-
25
- let div = document.createElement("div");
26
- div.innerHTML = response.data;
27
-
28
-
29
- // Get Page Title
30
- let title = div.querySelector('title').innerHTML;
31
- data.pageTitle = title;
32
-
33
-
34
- // Get Products HTML
35
- let products = div.querySelector(alm.addons.woocommerce_classes.container);
36
- data.html = (products) ? products.innerHTML : '';
37
-
38
-
39
- // Results Text
40
- almWooCommerceResultsText(div, alm);
41
-
42
- }
43
-
44
- return data;
45
-
46
- }
47
-
48
-
49
-
50
- /**
51
- * wooInit
52
  * Set up the instance of ALM WooCommerce
53
  *
54
  * @param {object} alm
55
- * @since 5.3.0
56
- */
57
- export function wooInit(alm){
58
-
59
- if(!alm || !alm.addons.woocommerce){
60
  return false;
61
  }
62
-
63
  // Set button data attributes
64
-
65
  // Page
66
  alm.button.dataset.page = alm.addons.woocommerce_paged + 1;
67
-
68
  // URL
69
  let nextPage = alm.addons.woocommerce_paged_urls[alm.addons.woocommerce_paged];
70
- if(nextPage){
71
  alm.button.dataset.url = nextPage;
72
  } else {
73
  alm.button.dataset.url = '';
74
  }
75
-
76
-
77
  // Set up URL and class parameters on first item in product listing
78
  let products = document.querySelector(alm.addons.woocommerce_classes.container); // Get `ul.products`
79
- if(products){
80
-
81
  products.setAttribute('aria-live', 'polite');
82
  products.setAttribute('aria-atomic', 'true');
83
-
84
  alm.listing.removeAttribute('aria-live');
85
  alm.listing.removeAttribute('aria-atomic');
86
-
87
  let product = products.querySelector(alm.addons.woocommerce_classes.products); // Get first `.product` item
88
- if(product){
89
  product.classList.add('alm-woocommerce');
90
  product.dataset.url = alm.addons.woocommerce_paged_urls[alm.addons.woocommerce_paged - 1];
91
  product.dataset.page = alm.page;
92
  product.dataset.pageTitle = document.title;
93
  }
94
-
95
- if(alm.addons.woocommerce_paged > 1){
96
  // maybe soon
97
  almWooCommerceResultsTextInit(alm);
98
  }
99
-
100
  }
101
-
102
  }
103
 
104
-
105
-
106
- /**
107
- * woocommerce
108
- * Core ALM WooCommerce Product Loader
109
  *
110
  * @param {HTMLElement} content
111
  * @param {object} alm
112
  * @param {String} pageTitle
113
- * @since 5.3.0
114
- */
115
- export function woocommerce(content, alm, pageTitle = document.title) {
116
-
117
- if(!content || !alm){
118
  return false;
119
  }
120
-
121
- return new Promise(resolve => {
122
-
123
- let container = document.querySelector(alm.addons.woocommerce_classes.container); // Get `ul.products`
124
- let products = content.querySelectorAll(alm.addons.woocommerce_classes.products); // Get all `.products`
125
- let columns = alm.addons.woocommerce_columns; // Count columns
126
-
127
- if(container && products){
128
-
129
- // Convert NodeList to Array
130
- products = Array.prototype.slice.call(products);
131
-
132
- // Load the Products
133
- (async function() {
134
- await loadProducts(container, products, columns, alm, pageTitle);
135
- resolve(true);
136
-
137
- })().catch( (e) => {
138
- console.log(e, 'There was an error with WooCommerce');
139
-
140
- });
141
- }
142
-
143
- });
144
 
145
- }
 
 
 
146
 
 
 
 
147
 
148
-
149
- /**
150
- * loadProducts
151
- * Load all products
152
- *
153
- * @param {HTMLElement} container
154
- * @param {HTMLElement} products
155
- * @param {String} columns
156
- * @param {Object} alm
157
- * @param {String} pageTitle
158
- */
159
- let loadProducts = (container, products, columns, alm, pageTitle) => {
160
-
161
- return new Promise(resolve => {
162
-
163
- let total = products.length;
164
- let index = 0;
165
- let count = 1;
166
-
167
- function loadProduct() {
168
-
169
- if(count <= total) {
170
-
171
- (async function() {
172
-
173
- //products[index].classList.remove('first');
174
- //products[index].classList.remove('last');
175
- products[index].style.opacity = 0;
176
-
177
- // First item only
178
- if(count == 1){
179
- products[index].classList.add('alm-woocommerce');
180
-
181
- // Get URL from localized variables
182
- products[index].dataset.url = alm.addons.woocommerce_paged_urls[alm.page];
183
-
184
- // Set page num
185
- products[index].dataset.page = alm.page + 1;
186
-
187
- // Set page title
188
- products[index].dataset.pageTitle = pageTitle;
189
-
190
- }
191
-
192
- await loadProductImage(container, products[index], alm.ua);
193
-
194
- count++;
195
- index++;
196
-
197
- loadProduct();
198
-
199
- })().catch((e) => {
200
-
201
- console.log('There was an error with WooCommerce');
202
- });
203
-
204
- }
205
- else {
206
-
207
  resolve(true);
208
- products.map(function(product){
209
- product.style.opacity = 1;
210
- });
211
- if(products[0]){
212
- setFocus(alm, products[0], null, false);
213
- }
214
-
215
- }
216
  }
217
-
218
- loadProduct();
219
-
220
  });
221
-
222
  }
223
 
224
-
225
-
226
-
227
  /**
228
- * loadProductImage
229
- * Load the product image with imagesLoaded
230
  *
231
- * @param {HTMLElement} container
232
- * @param {HTMLElement} product
233
- * @param {String} ua
234
  */
235
- let loadProductImage = (container, product, ua) => {
236
- return new Promise(resolve => {
237
- imagesLoaded( product, function() {
238
- // Add CSS transition
239
- product.style.transition = 'all 0.3s ease';
240
- // Append to container
241
- container.appendChild(product);
242
- // Run srcset fix
243
- srcsetPolyfill(product, ua);
244
- // Send await callback
245
- resolve(true);
246
- });
247
- });
248
-
249
- }
250
 
 
 
 
251
 
 
 
 
252
 
253
- /**
254
- * wooGetURL
255
- * Get the next URL for Load More button
256
- *
257
- * @param {object} alm
258
- * @since 5.3.0
259
- */
260
- export function wooGetURL(alm){
261
- if(!alm || !alm.trigger){
262
- return false;
263
  }
264
-
265
- // Get Button
266
- let button = alm.trigger.querySelector('button');
267
- let url = button.dataset.url;
268
-
269
- return (url) ? url : '';
270
- }
271
-
272
 
 
 
273
 
274
- /**
275
- * almWooCommerceResultsText
276
  * Set results text for WooCommerce Add-on.
277
- *
278
  * @param {HTMLElement} target
279
  * @param {Object} alm
280
  * @since 5.3
281
  */
282
- function almWooCommerceResultsText(target = '', alm){
283
- if(target && alm && alm.addons.woocommerce_results_text){
284
- let currentResults = target.querySelector(alm.addons.woocommerce_classes.results);
285
- if(currentResults){
286
  let resultText = currentResults.innerHTML;
287
  alm.addons.woocommerce_results_text.forEach((element) => {
288
- if(alm.localize.woocommerce.settings.previous_page_link){
289
  resultText = resultText + alm.localize.woocommerce.settings.previous_page_link;
290
  }
291
  element.innerHTML = resultText;
@@ -294,24 +139,22 @@ function almWooCommerceResultsText(target = '', alm){
294
  }
295
  }
296
 
297
-
298
-
299
- /**
300
- * almWooCommerceResultsTextInit
301
  * Initiate Results text.
302
- *
303
  * @param {Object} alm
304
  * @since 5.3
305
  */
306
- function almWooCommerceResultsTextInit(alm){
307
- if(alm && alm.addons.woocommerce_results_text){
308
- let results = document.querySelectorAll(alm.addons.woocommerce_classes.results);
309
- if(results.length < 1){
310
  return false;
311
  }
312
  // Loop all result text elements
313
  results.forEach((element) => {
314
- if(alm.localize.woocommerce.settings.previous_page_link){
315
  let newText = element.innerHTML;
316
  newText = newText + alm.localize.woocommerce.settings.previous_page_link;
317
  element.innerHTML = newText;
1
+ import loadItems from '../modules/loadItems';
 
 
2
 
3
+ /**
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  * Set up the instance of ALM WooCommerce
5
  *
6
  * @param {object} alm
7
+ * @since 5.3.0
8
+ */
9
+ export function wooInit(alm) {
10
+ if (!alm || !alm.addons.woocommerce) {
 
11
  return false;
12
  }
13
+
14
  // Set button data attributes
15
+
16
  // Page
17
  alm.button.dataset.page = alm.addons.woocommerce_paged + 1;
18
+
19
  // URL
20
  let nextPage = alm.addons.woocommerce_paged_urls[alm.addons.woocommerce_paged];
21
+ if (nextPage) {
22
  alm.button.dataset.url = nextPage;
23
  } else {
24
  alm.button.dataset.url = '';
25
  }
26
+
 
27
  // Set up URL and class parameters on first item in product listing
28
  let products = document.querySelector(alm.addons.woocommerce_classes.container); // Get `ul.products`
29
+ if (products) {
 
30
  products.setAttribute('aria-live', 'polite');
31
  products.setAttribute('aria-atomic', 'true');
32
+
33
  alm.listing.removeAttribute('aria-live');
34
  alm.listing.removeAttribute('aria-atomic');
35
+
36
  let product = products.querySelector(alm.addons.woocommerce_classes.products); // Get first `.product` item
37
+ if (product) {
38
  product.classList.add('alm-woocommerce');
39
  product.dataset.url = alm.addons.woocommerce_paged_urls[alm.addons.woocommerce_paged - 1];
40
  product.dataset.page = alm.page;
41
  product.dataset.pageTitle = document.title;
42
  }
43
+
44
+ if (alm.addons.woocommerce_paged > 1) {
45
  // maybe soon
46
  almWooCommerceResultsTextInit(alm);
47
  }
 
48
  }
 
49
  }
50
 
51
+ /**
52
+ * Core ALM WooCommerce product loader
 
 
 
53
  *
54
  * @param {HTMLElement} content
55
  * @param {object} alm
56
  * @param {String} pageTitle
57
+ * @since 5.3.0
58
+ */
59
+
60
+ export function woocommerce(content, alm, pageTitle = document.title) {
61
+ if (!content || !alm) {
62
  return false;
63
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
 
65
+ return new Promise((resolve) => {
66
+ let container = document.querySelector(alm.addons.woocommerce_classes.container); // Get `ul.products`
67
+ let products = content.querySelectorAll(alm.addons.woocommerce_classes.products); // Get all `.products`
68
+ let url = alm.addons.woocommerce_paged_urls[alm.page];
69
 
70
+ if (container && products && url) {
71
+ // Convert NodeList to Array
72
+ products = Array.prototype.slice.call(products);
73
 
74
+ // Load the Products
75
+ (async function () {
76
+ await loadItems(container, products, alm, pageTitle, url, 'alm-woocommerce');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  resolve(true);
78
+ })().catch((e) => {
79
+ console.log(e, 'There was an error with WooCommerce');
80
+ });
 
 
 
 
 
81
  }
 
 
 
82
  });
 
83
  }
84
 
 
 
 
85
  /**
86
+ * Get the content, title and results text from the Ajax response
 
87
  *
88
+ * @param {object} alm
89
+ * @since 5.3.0
 
90
  */
91
+ export function wooGetContent(response, alm) {
92
+ let data = {
93
+ html: '',
94
+ meta: {
95
+ postcount: 1,
96
+ totalposts: alm.localize.total_posts,
97
+ debug: 'WooCommerce Query',
98
+ },
99
+ };
100
+ if (response.status === 200 && response.data) {
101
+ let div = document.createElement('div');
102
+ div.innerHTML = response.data;
 
 
 
103
 
104
+ // Get Page Title
105
+ let title = div.querySelector('title').innerHTML;
106
+ data.pageTitle = title;
107
 
108
+ // Get Products HTML
109
+ let products = div.querySelector(alm.addons.woocommerce_classes.container);
110
+ data.html = products ? products.innerHTML : '';
111
 
112
+ // Results Text
113
+ almWooCommerceResultsText(div, alm);
 
 
 
 
 
 
 
 
114
  }
 
 
 
 
 
 
 
 
115
 
116
+ return data;
117
+ }
118
 
119
+ /**
120
+ * almWooCommerceResultsText
121
  * Set results text for WooCommerce Add-on.
122
+ *
123
  * @param {HTMLElement} target
124
  * @param {Object} alm
125
  * @since 5.3
126
  */
127
+ function almWooCommerceResultsText(target = '', alm) {
128
+ if (target && alm && alm.addons.woocommerce_results_text) {
129
+ let currentResults = target.querySelector(alm.addons.woocommerce_classes.results);
130
+ if (currentResults) {
131
  let resultText = currentResults.innerHTML;
132
  alm.addons.woocommerce_results_text.forEach((element) => {
133
+ if (alm.localize.woocommerce.settings.previous_page_link) {
134
  resultText = resultText + alm.localize.woocommerce.settings.previous_page_link;
135
  }
136
  element.innerHTML = resultText;
139
  }
140
  }
141
 
142
+ /**
143
+ * almWooCommerceResultsTextInit
 
 
144
  * Initiate Results text.
145
+ *
146
  * @param {Object} alm
147
  * @since 5.3
148
  */
149
+ function almWooCommerceResultsTextInit(alm) {
150
+ if (alm && alm.addons.woocommerce_results_text) {
151
+ let results = document.querySelectorAll(alm.addons.woocommerce_classes.results);
152
+ if (results.length < 1) {
153
  return false;
154
  }
155
  // Loop all result text elements
156
  results.forEach((element) => {
157
+ if (alm.localize.woocommerce.settings.previous_page_link) {
158
  let newText = element.innerHTML;
159
  newText = newText + alm.localize.woocommerce.settings.previous_page_link;
160
  element.innerHTML = newText;
core/src/js/ajax-load-more.js CHANGED
@@ -33,6 +33,7 @@ import { tableOfContents } from './modules/tableofcontents';
33
  import setLocalizedVars from './modules/setLocalizedVars';
34
  import insertScript from './modules/insertScript';
35
  import setFocus from './modules/setFocus';
 
36
  import almMasonry from './modules/masonry';
37
  import almFadeIn from './modules/fadeIn';
38
  import almFadeOut from './modules/fadeOut';
@@ -44,12 +45,8 @@ import srcsetPolyfill from './helpers/srcsetPolyfill';
44
  import { showPlaceholder, hidePlaceholder } from './modules/placeholder';
45
  import { singlePostHTML } from './addons/singleposts';
46
  import { createCacheFile } from './addons/cache';
47
- import {
48
- wooGetURL,
49
- wooGetContent,
50
- wooInit,
51
- woocommerce,
52
- } from './addons/woocommerce';
53
  import { buildFilterURL } from './addons/filters';
54
  import { createSEOAttributes } from './addons/seo';
55
 
@@ -92,10 +89,7 @@ let alm_is_filtering = false;
92
 
93
  alm.ua = window.navigator.userAgent ? window.navigator.userAgent : ''; // Browser User Agent
94
  alm.vendor = window.navigator.vendor ? window.navigator.vendor : ''; // Browser Vendor
95
- alm.isSafari =
96
- /Safari/i.test(alm.ua) &&
97
- /Apple Computer/.test(alm.vendor) &&
98
- !/Mobi|Android/i.test(alm.ua);
99
 
100
  alm.main = el;
101
  alm.master_id = el.dataset.id ? `ajax-load-more-${el.dataset.id}` : el.id; // The defined or generated ID of the ALM instance
@@ -108,8 +102,7 @@ let alm_is_filtering = false;
108
 
109
  // Main ALM Containers
110
  alm.main = el; // Top level DOM element
111
- alm.listing =
112
- el.querySelector('.alm-listing') || el.querySelector('.alm-comments');
113
  alm.content = alm.listing;
114
  alm.el = alm.content;
115
  alm.ajax = el.querySelector('.alm-ajax');
@@ -131,12 +124,8 @@ let alm_is_filtering = false;
131
  alm.repeater = alm.listing.dataset.repeater; // Repeaters
132
  alm.theme_repeater = alm.listing.dataset.themeRepeater;
133
 
134
- alm.post_type = alm.listing.dataset.postType
135
- ? alm.listing.dataset.postType
136
- : 'post';
137
- alm.sticky_posts = alm.listing.dataset.stickyPosts
138
- ? alm.listing.dataset.stickyPosts
139
- : null;
140
 
141
  alm.btnWrap = el.querySelectorAll('.alm-btn-wrap'); // Get all `.alm-button-wrap` divs
142
  alm.btnWrap = Array.prototype.slice.call(alm.btnWrap); // Convert NodeList to array
@@ -146,84 +135,83 @@ let alm_is_filtering = false;
146
 
147
  alm.button_label = alm.listing.dataset.buttonLabel;
148
  alm.button_loading_label = alm.listing.dataset.buttonLoadingLabel;
 
 
149
  alm.placeholder = alm.main.querySelector('.alm-placeholder');
150
 
151
  alm.scroll_distance = alm.listing.dataset.scrollDistance;
152
  alm.scroll_distance = alm.scroll_distance ? alm.scroll_distance : 100;
153
  alm.scroll_container = alm.listing.dataset.scrollContainer;
154
- alm.max_pages = alm.listing.dataset.maxPages
155
- ? parseInt(alm.listing.dataset.maxPages)
156
- : 0;
157
  alm.pause_override = alm.listing.dataset.pauseOverride; // true | false
158
  alm.pause = alm.listing.dataset.pause ? alm.listing.dataset.pause : false; // true | false
159
  alm.transition = alm.listing.dataset.transition; // Transition
160
  alm.transition_container = alm.listing.dataset.transitionContainer; // Transition Container
161
  alm.tcc = alm.listing.dataset.transitionContainerClasses; // Transition Container Classes
162
  alm.speed = alm_localize.speed ? parseInt(alm_localize.speed) : 200;
163
- alm.images_loaded = alm.listing.dataset.imagesLoaded
164
- ? alm.listing.dataset.imagesLoaded
165
- : false;
166
- alm.destroy_after = alm.listing.dataset.destroyAfter
167
- ? alm.listing.dataset.destroyAfter
168
- : '';
169
  alm.orginal_posts_per_page = parseInt(alm.listing.dataset.postsPerPage); // Used for paging add-on
170
  alm.posts_per_page = alm.listing.dataset.postsPerPage;
171
- alm.offset = alm.listing.dataset.offset
172
- ? parseInt(alm.listing.dataset.offset)
173
- : 0;
174
- alm.integration.woocommerce = alm.listing.dataset.woocommerce
175
- ? alm.listing.dataset.woocommerce
176
- : false;
177
- alm.integration.woocommerce =
178
- alm.integration.woocommerce === 'true' ? true : false;
179
 
180
  // Addon Shortcode Params
181
 
182
- // Woocommerce add-on
183
- alm.addons.woocommerce =
184
- alm.localize && alm.localize.woocommerce ? true : false;
185
- if (alm.addons.woocommerce) {
186
- alm.addons.woocommerce_columns = alm.localize.woocommerce.columns
187
- ? parseInt(alm.localize.woocommerce.columns)
188
- : 3; // Woocommerce columns
189
- alm.addons.woocommerce_paged = alm.localize.woocommerce.paged
190
- ? parseInt(alm.localize.woocommerce.paged)
191
- : 1; // Woocommerce Paged
192
- alm.addons.woocommerce_paged_urls =
193
- alm.localize.woocommerce.paged_urls;
194
- alm.addons.woocommerce_pages = parseInt(
195
- alm.localize.woocommerce.pages
 
 
 
 
196
  );
 
 
 
 
 
 
 
 
 
 
197
  alm.addons.woocommerce_classes = {};
198
- alm.addons.woocommerce_classes.container =
199
- alm.localize.woocommerce.container;
200
- alm.addons.woocommerce_classes.products =
201
- alm.localize.woocommerce.products;
202
- alm.addons.woocommerce_classes.results =
203
- alm.localize.woocommerce.results;
204
- alm.addons.woocommerce_results_text = document.querySelectorAll(
205
- alm.addons.woocommerce_classes.results
206
- );
207
  alm.addons.woocommerce_settings = alm.localize.woocommerce.settings;
208
  alm.page = parseInt(alm.page) + alm.addons.woocommerce_paged;
209
  }
210
 
211
  // Cache add-on
212
  alm.addons.cache = alm.listing.dataset.cache;
213
- alm.addons.cache =
214
- alm.addons.cache === undefined ? false : alm.addons.cache;
215
  if (alm.addons.cache === 'true') {
216
  alm.addons.cache_id = alm.listing.dataset.cacheId;
217
  alm.addons.cache_path = alm.listing.dataset.cachePath;
218
  alm.addons.cache_logged_in = alm.listing.dataset.cacheLoggedIn;
219
- alm.addons.cache_logged_in =
220
- alm.addons.cache_logged_in === undefined
221
- ? false
222
- : alm.addons.cache_logged_in;
223
  }
224
 
225
  // CTA add-on
226
- alm.addons.cta = alm.listing.dataset.cta;
227
  if (alm.addons.cta === 'true') {
228
  alm.addons.cta_position = alm.listing.dataset.ctaPosition;
229
  alm.addons.cta_repeater = alm.listing.dataset.ctaRepeater;
@@ -246,24 +234,18 @@ let alm_is_filtering = false;
246
  alm.addons.single_post_id = alm.listing.dataset.singlePostId;
247
  alm.addons.single_post_order = alm.listing.dataset.singlePostOrder;
248
  alm.addons.single_post_init_id = alm.listing.dataset.singlePostId;
249
- alm.addons.single_post_taxonomy =
250
- alm.listing.dataset.singlePostTaxonomy;
251
- alm.addons.single_post_excluded_terms =
252
- alm.listing.dataset.singlePostExcludedTerms;
253
- alm.addons.single_post_progress_bar =
254
- alm.listing.dataset.singlePostProgressBar;
255
  alm.addons.single_post_target = alm.listing.dataset.singlePostTarget;
256
  }
257
 
258
  // Comments add-on
259
- alm.addons.comments = alm.listing.dataset.comments;
260
  if (alm.addons.comments === 'true') {
261
  alm.addons.comments_post_id = alm.listing.dataset.comments_post_id; // current post id
262
  alm.addons.comments_per_page = alm.listing.dataset.comments_per_page;
263
- alm.addons.comments_per_page =
264
- alm.addons.comments_per_page === undefined
265
- ? '5'
266
- : alm.addons.comments_per_page;
267
  alm.addons.comments_type = alm.listing.dataset.comments_type;
268
  alm.addons.comments_style = alm.listing.dataset.comments_style;
269
  alm.addons.comments_template = alm.listing.dataset.comments_template;
@@ -278,11 +260,8 @@ let alm_is_filtering = false;
278
 
279
  // Preloaded
280
  alm.addons.preloaded = alm.listing.dataset.preloaded; // Preloaded add-on
281
- alm.addons.preloaded_amount = alm.listing.dataset.preloadedAmount
282
- ? alm.listing.dataset.preloadedAmount
283
- : 0;
284
- alm.is_preloaded =
285
- alm.listing.dataset.isPreloaded === 'true' ? true : false;
286
 
287
  // Users
288
  alm.addons.users = alm.listing.dataset.users === 'true' ? true : false; // Users add-on
@@ -297,62 +276,44 @@ let alm_is_filtering = false;
297
  alm.extensions.restapi_base_url = alm.listing.dataset.restapiBaseUrl;
298
  alm.extensions.restapi_namespace = alm.listing.dataset.restapiNamespace;
299
  alm.extensions.restapi_endpoint = alm.listing.dataset.restapiEndpoint;
300
- alm.extensions.restapi_template_id =
301
- alm.listing.dataset.restapiTemplateId;
302
  alm.extensions.restapi_debug = alm.listing.dataset.restapiDebug;
303
 
304
  alm.extensions.acf = alm.listing.dataset.acf; // ACF
305
  alm.extensions.acf_field_type = alm.listing.dataset.acfFieldType;
306
  alm.extensions.acf_field_name = alm.listing.dataset.acfFieldName;
307
- alm.extensions.acf_parent_field_name =
308
- alm.listing.dataset.acfParentFieldName;
309
  alm.extensions.acf_post_id = alm.listing.dataset.acfPostId;
310
  alm.extensions.acf = alm.extensions.acf === 'true' ? true : false;
311
  // if field type, name or post ID is empty
312
- if (
313
- alm.extensions.acf_field_type === undefined ||
314
- alm.extensions.acf_field_name === undefined ||
315
- alm.extensions.acf_post_id === undefined
316
- ) {
317
  alm.extensions.acf = false;
318
  }
319
 
320
  // Term Query
321
  alm.extensions.term_query = alm.listing.dataset.termQuery; // TERM QUERY
322
- alm.extensions.term_query_taxonomy =
323
- alm.listing.dataset.termQueryTaxonomy;
324
- alm.extensions.term_query_hide_empty =
325
- alm.listing.dataset.termQueryHideEmpty;
326
  alm.extensions.term_query_number = alm.listing.dataset.termQueryNumber;
327
- alm.extensions.term_query =
328
- alm.extensions.term_query === 'true' ? true : false;
329
 
330
  // Paging
331
  alm.addons.paging = alm.listing.dataset.paging; // Paging add-on
332
  if (alm.addons.paging === 'true') {
333
  alm.addons.paging = true;
334
  alm.addons.paging_init = true;
335
- alm.addons.paging_controls =
336
- alm.listing.dataset.pagingControls === 'true' ? true : false;
337
  alm.addons.paging_show_at_most = alm.listing.dataset.pagingShowAtMost;
338
  alm.addons.paging_classes = alm.listing.dataset.pagingClasses;
339
- alm.addons.paging_show_at_most =
340
- alm.addons.paging_show_at_most === undefined
341
- ? 7
342
- : alm.addons.paging_show_at_most;
343
 
344
  alm.addons.paging_first_label = alm.listing.dataset.pagingFirstLabel;
345
- alm.addons.paging_previous_label =
346
- alm.listing.dataset.pagingPreviousLabel;
347
  alm.addons.paging_next_label = alm.listing.dataset.pagingNextLabel;
348
  alm.addons.paging_last_label = alm.listing.dataset.pagingLastLabel;
349
 
350
- alm.addons.paging_scroll = alm.listing.dataset.pagingScroll
351
- ? alm.listing.dataset.pagingScroll
352
- : false;
353
- alm.addons.paging_scrolltop = alm.listing.dataset.pagingScrolltop
354
- ? parseInt(alm.listing.dataset.pagingScrolltop)
355
- : 100;
356
 
357
  // If preloaded, pause ALM
358
  alm.pause = alm.addons.preloaded === 'true' ? true : alm.pause;
@@ -365,15 +326,10 @@ let alm_is_filtering = false;
365
  if (alm.addons.filters === 'true') {
366
  alm.addons.filters = true;
367
 
368
- alm.addons.filters_url =
369
- alm.listing.dataset.filtersUrl === 'true' ? true : false;
370
- alm.addons.filters_paging =
371
- alm.listing.dataset.filtersPaging === 'true' ? true : false;
372
- alm.addons.filters_scroll =
373
- alm.listing.dataset.filtersScroll === 'true' ? true : false;
374
- alm.addons.filters_scrolltop = alm.listing.dataset.filtersScrolltop
375
- ? alm.listing.dataset.filtersScrolltop
376
- : '30';
377
  alm.addons.filters_analtyics = alm.listing.dataset.filtersAnalytics;
378
  alm.addons.filters_debug = alm.listing.dataset.filtersDebug;
379
  alm.addons.filters_startpage = 0;
@@ -384,8 +340,7 @@ let alm_is_filtering = false;
384
 
385
  // If not Paging add-on
386
  if (!alm.addons.paging && alm.addons.filters_startpage > 0) {
387
- alm.posts_per_page =
388
- alm.posts_per_page * alm.addons.filters_startpage;
389
  alm.isPaged = alm.addons.filters_startpage > 0 ? true : false;
390
  }
391
  } else {
@@ -396,30 +351,18 @@ let alm_is_filtering = false;
396
  /* TABS */
397
  if (alm.addons.tabs === 'true') {
398
  alm.addons.tabs = true;
399
- alm.addons.tab_template = alm.listing.dataset.tabTemplate
400
- ? alm.listing.dataset.tabTemplate
401
- : '';
402
- alm.addons.tab_onload = alm.listing.dataset.tabOnload
403
- ? alm.listing.dataset.tabOnload
404
- : '';
405
- alm.addons.tabs_resturl = alm.listing.dataset.tabsRestUrl
406
- ? alm.listing.dataset.tabsRestUrl
407
- : '';
408
 
409
  // Locate active template (deeplinks)
410
  if (alm.addons.tab_onload !== '') {
411
- let tabNav = document.querySelector(
412
- `.alm-tab-nav li [data-tab-url=${alm.addons.tab_onload}]`
413
- );
414
- alm.addons.tab_template = tabNav
415
- ? tabNav.dataset.tabTemplate
416
- : alm.addons.tab_template;
417
  alm.listing.dataset.tabOnload = ''; // Clear tabOnload param
418
  // Set selected tab
419
  if (tabNav) {
420
- let activeTab = document.querySelector(
421
- `.alm-tab-nav li .active`
422
- );
423
  if (activeTab) {
424
  activeTab.classList.remove('active');
425
  }
@@ -433,14 +376,8 @@ let alm_is_filtering = false;
433
  /* REST API */
434
  if (alm.extensions.restapi === 'true') {
435
  alm.extensions.restapi = true;
436
- alm.extensions.restapi_debug =
437
- alm.extensions.restapi_debug === undefined
438
- ? false
439
- : alm.extensions.restapi_debug;
440
- alm.extensions.restapi =
441
- alm.extensions.restapi_template_id === ''
442
- ? false
443
- : alm.extensions.restapi;
444
  } else {
445
  alm.extensions.restapi = false;
446
  }
@@ -449,16 +386,10 @@ let alm_is_filtering = false;
449
  /* Preloaded */
450
  if (alm.addons.preloaded === 'true') {
451
  // Preloaded Amount
452
- alm.addons.preloaded_amount =
453
- alm.addons.preloaded_amount === undefined
454
- ? alm.posts_per_page
455
- : alm.addons.preloaded_amount;
456
  // Disable ALM if total_posts is less than or equal to preloaded_amount
457
  if (alm.localize && alm.localize.total_posts) {
458
- if (
459
- parseInt(alm.localize.total_posts) <=
460
- parseInt(alm.addons.preloaded_amount)
461
- ) {
462
  alm.addons.preloaded_total_posts = alm.localize.total_posts;
463
  alm.disable_ajax = true;
464
  }
@@ -471,15 +402,13 @@ let alm_is_filtering = false;
471
  /* SEO */
472
  alm.addons.seo = alm.addons.seo === undefined ? false : alm.addons.seo;
473
  alm.addons.seo = alm.addons.seo === 'true' ? true : alm.addons.seo;
474
- alm.is_search = alm.is_search === undefined ? false : alm.is_search;
475
- alm.search_value = alm.is_search === 'true' ? alm.slug : ''; // Convert to value of slug for appending to seo url
476
 
477
- alm.addons.seo_permalink = alm.listing.dataset.seoPermalink;
478
- alm.addons.seo_pageview = alm.listing.dataset.seoPageview;
479
- alm.addons.seo_trailing_slash =
480
- alm.listing.dataset.seoTrailingSlash === 'false' ? '' : '/';
481
- alm.addons.seo_leading_slash =
482
- alm.listing.dataset.seoLeadingSlash === 'true' ? '/' : '';
483
  alm.start_page = alm.listing.dataset.seoStartPage;
484
 
485
  if (alm.start_page) {
@@ -504,28 +433,29 @@ let alm_is_filtering = false;
504
  if (alm.addons.nextpage === 'true') {
505
  alm.addons.nextpage = true;
506
  alm.posts_per_page = 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
507
  } else {
508
  alm.addons.nextpage = false;
509
  }
510
- if (alm.addons.nextpage_urls === undefined) {
511
- alm.addons.nextpage_urls = 'true';
512
- }
513
- if (alm.addons.nextpage_scroll === undefined) {
514
- alm.addons.nextpage_scroll = 'false:30';
515
- }
516
- if (alm.addons.nextpage_pageviews === undefined) {
517
- alm.addons.nextpage_pageviews = 'true';
518
- }
519
- if (alm.addons.nextpage_post_id === undefined) {
520
- alm.addons.nextpage = false;
521
- alm.addons.nextpage_post_id = null;
522
- }
523
- if (alm.addons.nextpage_startpage === undefined) {
524
- alm.addons.nextpage_startpage = 1;
525
- }
526
- if (alm.addons.nextpage_startpage > 1) {
527
- alm.isPaged = true;
528
- }
529
  /* End Nextpage */
530
 
531
  /* Single Post */
@@ -534,46 +464,26 @@ let alm_is_filtering = false;
534
  alm.addons.single_post_permalink = '';
535
  alm.addons.single_post_title = '';
536
  alm.addons.single_post_slug = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
537
  } else {
538
  alm.addons.single_post = false;
539
  }
540
- if (alm.addons.single_post_id === undefined) {
541
  alm.addons.single_post_id = '';
542
  alm.addons.single_post_init_id = '';
543
  }
544
- alm.addons.single_post_order =
545
- alm.addons.single_post_order === undefined
546
- ? 'previous'
547
- : alm.addons.single_post_order;
548
- alm.addons.single_post_taxonomy =
549
- alm.addons.single_post_taxonomy === undefined
550
- ? ''
551
- : alm.addons.single_post_taxonomy;
552
- alm.addons.single_post_excluded_terms =
553
- alm.addons.single_post_excluded_terms === undefined
554
- ? ''
555
- : alm.addons.single_post_excluded_terms;
556
- alm.addons.single_post_progress_bar =
557
- alm.addons.single_post_progress_bar === undefined
558
- ? ''
559
- : alm.addons.single_post_progress_bar;
560
- alm.addons.single_post_target =
561
- alm.addons.single_post_target === undefined
562
- ? ''
563
- : alm.addons.single_post_target;
564
- alm.addons.single_post_title_template =
565
- alm.listing.dataset.singlePostTitleTemplate;
566
- alm.addons.single_post_siteTitle =
567
- alm.listing.dataset.singlePostSiteTitle;
568
- alm.addons.single_post_siteTagline =
569
- alm.listing.dataset.singlePostSiteTagline;
570
- alm.addons.single_post_pageview = alm.listing.dataset.singlePostPageview;
571
- alm.addons.single_post_scroll = alm.listing.dataset.singlePostScroll;
572
- alm.addons.single_post_scroll_speed =
573
- alm.listing.dataset.singlePostScrollSpeed;
574
- alm.addons.single_post_scroll_top =
575
- alm.listing.dataset.singlePostScrolltop;
576
- alm.addons.single_post_controls = alm.listing.dataset.singlePostControls;
577
  /* End Single Post */
578
 
579
  /* Pause */
@@ -581,11 +491,7 @@ let alm_is_filtering = false;
581
  // SEO only
582
  alm.pause = false;
583
  }
584
- if (
585
- alm.addons.preloaded === 'true' &&
586
- alm.addons.seo &&
587
- alm.start_page > 0
588
- ) {
589
  // SEO + Preloaded
590
  alm.pause = false;
591
  }
@@ -599,18 +505,13 @@ let alm_is_filtering = false;
599
 
600
  /* Repeater and Theme Repeater */
601
  alm.repeater = alm.repeater === undefined ? 'default' : alm.repeater;
602
- alm.theme_repeater =
603
- alm.theme_repeater === undefined ? false : alm.theme_repeater;
604
 
605
  /* Max Pages (while scrolling) */
606
- alm.max_pages =
607
- alm.max_pages === undefined || alm.max_pages === 0
608
- ? 10000
609
- : alm.max_pages;
610
 
611
  /* Scroll Distance */
612
- alm.scroll_distance =
613
- alm.scroll_distance === undefined ? 100 : alm.scroll_distance;
614
  alm.scroll_distance_perc = false;
615
  if (alm.scroll_distance.toString().indexOf('%') == -1) {
616
  // Standard scroll_distance
@@ -623,8 +524,10 @@ let alm_is_filtering = false;
623
  }
624
 
625
  /* Scroll Container */
626
- alm.scroll_container =
627
- alm.scroll_container === undefined ? '' : alm.scroll_container;
 
 
628
 
629
  /* Transition */
630
  alm.transition = alm.transition === undefined ? 'fade' : alm.transition;
@@ -637,27 +540,19 @@ let alm_is_filtering = false;
637
  if (alm.transition === 'masonry') {
638
  alm.masonry_init = true;
639
  if (alm.msnry) {
640
- alm.msnry.destroy(); // destroy masonry if currently exists
641
  } else {
642
  alm.msnry = '';
643
  }
644
  alm.masonry_selector = alm.listing.dataset.masonrySelector;
645
  alm.masonry_columnwidth = alm.listing.dataset.masonryColumnwidth;
646
  alm.masonry_animation = alm.listing.dataset.masonryAnimation;
647
- alm.masonry_animation =
648
- alm.masonry_animation === undefined
649
- ? 'standard'
650
- : alm.masonry_animation;
651
- alm.masonry_horizontalorder =
652
- alm.listing.dataset.masonryHorizontalorder;
653
- alm.masonry_horizontalorder =
654
- alm.masonry_horizontalorder === undefined
655
- ? 'true'
656
- : alm.masonry_horizontalorder;
657
  alm.transition_container = false;
658
  alm.images_loaded = false;
659
- alm.is_masonry_preloaded =
660
- alm.addons.preloaded === 'true' ? true : alm.is_masonry_preloaded;
661
  }
662
 
663
  /* Scroll */
@@ -670,19 +565,12 @@ let alm_is_filtering = false;
670
  }
671
 
672
  /* Transition Container */
673
- alm.transition_container =
674
- alm.transition_container === undefined ||
675
- alm.transition_container === 'true'
676
- ? true
677
- : false;
678
 
679
  /* Button Labels */
680
- alm.button_label =
681
- alm.button_label === undefined ? 'Older Posts' : alm.button_label;
682
- alm.button_loading_label =
683
- alm.button_loading_label === undefined
684
- ? false
685
- : alm.button_loading_label;
686
 
687
  /* Paging */
688
  if (alm.addons.paging) {
@@ -700,13 +588,9 @@ let alm_is_filtering = false;
700
  }
701
  return element.classList.contains('alm-btn-wrap');
702
  });
703
- alm.button = btnWrap
704
- ? btnWrap[0].querySelector('.alm-load-more-btn')
705
- : container.querySelector('.alm-btn-wrap .alm-load-more-btn');
706
  } else {
707
- alm.button = container.querySelector(
708
- '.alm-btn-wrap .alm-load-more-btn'
709
- );
710
  }
711
 
712
  // Reset button state
@@ -718,9 +602,7 @@ let alm_is_filtering = false;
718
  // Render "Showing x of y results" text.
719
  // If woocommerce, get the default woocommerce results block
720
  if (alm.integration.woocommerce) {
721
- alm.resultsText = document.querySelectorAll(
722
- '.woocommerce-result-count'
723
- );
724
  if (alm.resultsText.length < 1) {
725
  alm.resultsText = document.querySelectorAll('.alm-results-text');
726
  }
@@ -956,7 +838,13 @@ let alm_is_filtering = false;
956
 
957
  // WooCommerce Add-on
958
  if (alm.addons.woocommerce) {
959
- ajaxURL = wooGetURL(alm);
 
 
 
 
 
 
960
  params = '';
961
  }
962
 
@@ -969,15 +857,16 @@ let alm_is_filtering = false;
969
 
970
  if (alm.addons.single_post && alm.addons.single_post_target) {
971
  // Single Posts
972
- data = singlePostHTML(
973
- response,
974
- alm.addons.single_post_target
975
- );
976
  createCacheFile(alm, data.html, 'single');
977
  } else if (alm.addons.woocommerce) {
978
  // WooCommerce
979
  data = wooGetContent(response, alm);
980
  createCacheFile(alm, data.html, 'woocommerce');
 
 
 
 
981
  } else {
982
  // Get data from response
983
  data = response.data;
@@ -986,11 +875,7 @@ let alm_is_filtering = false;
986
  // Standard Query
987
  if (queryType === 'standard') {
988
  alm.AjaxLoadMore.success(data, false);
989
- } else if (
990
- queryType === 'totalpages' &&
991
- alm.addons.paging &&
992
- alm.addons.nextpage
993
- ) {
994
  // Next Page and Paging
995
  if (typeof almBuildPagination === 'function') {
996
  window.almBuildPagination(data.totalpages, alm);
@@ -1074,9 +959,7 @@ let alm_is_filtering = false;
1074
  * @since 5.0.0
1075
  */
1076
  alm.AjaxLoadMore.restapi = function (alm, action, queryType) {
1077
- let alm_rest_template = wp.template(
1078
- alm.extensions.restapi_template_id
1079
- );
1080
  let alm_rest_url = `${alm.extensions.restapi_base_url}/${alm.extensions.restapi_namespace}/${alm.extensions.restapi_endpoint}`;
1081
  let params = queryParams.almGetRestParams(alm); // [./helpers/queryParams.js]
1082
 
@@ -1157,10 +1040,7 @@ let alm_is_filtering = false;
1157
 
1158
  // Create `.alm-reveal` element
1159
  //let reveal = document.createElement('div');
1160
- let reveal =
1161
- alm.container_type === 'table'
1162
- ? document.createElement('tbody')
1163
- : document.createElement('div');
1164
  alm.el = reveal;
1165
  reveal.style.opacity = 0;
1166
  reveal.style.height = 0;
@@ -1178,15 +1058,10 @@ let alm_is_filtering = false;
1178
  // Standard ALM query results
1179
  html = data.html;
1180
  meta = data.meta;
1181
- alm.posts = alm.addons.paging
1182
- ? meta.postcount
1183
- : alm.posts + meta.postcount;
1184
  total = meta.postcount;
1185
  alm.totalposts = meta.totalposts;
1186
- alm.totalposts =
1187
- alm.addons.preloaded === 'true'
1188
- ? alm.totalposts - alm.addons.preloaded_amount
1189
- : alm.totalposts;
1190
  alm.debug = meta.debug ? meta.debug : '';
1191
  }
1192
 
@@ -1200,9 +1075,7 @@ let alm_is_filtering = false;
1200
  if (alm.init) {
1201
  // Set Meta
1202
  if (meta) {
1203
- alm.main.dataset.totalPosts = meta.totalposts
1204
- ? meta.totalposts
1205
- : 0;
1206
  }
1207
  // Paging
1208
  if (alm.addons.paging && total > 0) {
@@ -1229,12 +1102,8 @@ let alm_is_filtering = false;
1229
  // isPaged
1230
  if (alm.isPaged) {
1231
  // Reset the posts_per_page parameter
1232
- alm.posts_per_page = alm.addons.users
1233
- ? alm.listing.dataset.usersPerPage
1234
- : alm.listing.dataset.postsPerPage; // Users
1235
- alm.posts_per_page = alm.addons.nextpage
1236
- ? 1
1237
- : alm.posts_per_page; // NextPage
1238
 
1239
  // SEO add-on
1240
  alm.page = alm.start_page ? alm.start_page - 1 : alm.page; // Set new page #
@@ -1273,12 +1142,7 @@ let alm_is_filtering = false;
1273
  if (!alm.addons.paging) {
1274
  if (alm.addons.single_post) {
1275
  // Single Posts
1276
- reveal.setAttribute(
1277
- 'class',
1278
- 'alm-reveal alm-single-post post-' +
1279
- alm.addons.single_post_id +
1280
- alm.tcc
1281
- );
1282
  reveal.dataset.url = alm.addons.single_post_permalink;
1283
  reveal.dataset.page = alm.page;
1284
  reveal.dataset.id = alm.addons.single_post_id;
@@ -1289,30 +1153,18 @@ let alm_is_filtering = false;
1289
  // No transition container
1290
 
1291
  alm.el = alm.html;
1292
- reveal =
1293
- alm.container_type === 'table'
1294
- ? tableWrap(alm.html)
1295
- : stripEmptyNodes(
1296
- almDomParser(alm.html, 'text/html')
1297
- );
1298
  } else {
1299
  // Standard container
1300
 
1301
  let pagenum;
1302
  let querystring = window.location.search;
1303
  let seo_class = alm.addons.seo ? ' alm-seo' : '';
1304
- let filters_class = alm.addons.filters
1305
- ? ' alm-filters'
1306
- : '';
1307
- let preloaded_class = alm.is_preloaded
1308
- ? ' alm-preloaded'
1309
- : '';
1310
 
1311
  // Init, SEO and Filter Paged
1312
- if (
1313
- alm.init &&
1314
- (alm.start_page > 1 || alm.addons.filters_startpage > 0)
1315
- ) {
1316
  // loop through items and break into separate .alm-reveal divs for paging
1317
 
1318
  let return_data = [];
@@ -1329,9 +1181,7 @@ let alm_is_filtering = false;
1329
  }
1330
 
1331
  // Parse returned HTML and strip empty nodes
1332
- let data = stripEmptyNodes(
1333
- almDomParser(alm.html, 'text/html')
1334
- );
1335
 
1336
  // Slice data array into individual pages (array)
1337
  for (let i = 0; i < total; i += posts_per_page) {
@@ -1348,50 +1198,25 @@ let alm_is_filtering = false;
1348
 
1349
  if (alm.addons.seo) {
1350
  // SEO
1351
- alm_reveal = createSEOAttributes(
1352
- alm,
1353
- alm_reveal,
1354
- querystring,
1355
- seo_class,
1356
- pagenum
1357
- );
1358
  }
1359
 
1360
  if (alm.addons.filters) {
1361
  // Filters
1362
- alm_reveal.setAttribute(
1363
- 'class',
1364
- 'alm-reveal' + filters_class + alm.tcc
1365
- );
1366
- alm_reveal.dataset.url =
1367
- alm.canonical_url +
1368
- buildFilterURL(alm, querystring, pagenum);
1369
  alm_reveal.dataset.page = pagenum;
1370
  }
1371
  } else {
1372
  // First Page
1373
  if (alm.addons.seo) {
1374
  // SEO
1375
- alm_reveal = createSEOAttributes(
1376
- alm,
1377
- alm_reveal,
1378
- querystring,
1379
- seo_class,
1380
- 1
1381
- );
1382
  }
1383
  if (alm.addons.filters) {
1384
  // Filters
1385
- alm_reveal.setAttribute(
1386
- 'class',
1387
- 'alm-reveal' +
1388
- filters_class +
1389
- preloaded_class +
1390
- alm.tcc
1391
- );
1392
- alm_reveal.dataset.url =
1393
- alm.canonical_url +
1394
- buildFilterURL(alm, querystring, 0);
1395
  alm_reveal.dataset.page = '1';
1396
  }
1397
  }
@@ -1419,10 +1244,7 @@ let alm_is_filtering = false;
1419
  // End Init & SEO
1420
  else {
1421
  // Preloaded OR SEO (and Paged)
1422
- if (
1423
- (alm.addons.seo && alm.page > 0) ||
1424
- alm.addons.preloaded === 'true'
1425
- ) {
1426
  let p2 = alm.addons.preloaded === 'true' ? 1 : 0; // Add 1 page if items are preloaded.
1427
 
1428
  // SEO [Paged]
@@ -1430,60 +1252,28 @@ let alm_is_filtering = false;
1430
 
1431
  if (alm.addons.seo) {
1432
  // SEO
1433
- reveal = createSEOAttributes(
1434
- alm,
1435
- reveal,
1436
- querystring,
1437
- seo_class,
1438
- pagenum
1439
- );
1440
  } else if (alm.addons.filters) {
1441
  // Filters
1442
- reveal.setAttribute(
1443
- 'class',
1444
- 'alm-reveal' + filters_class + alm.tcc
1445
- );
1446
- reveal.dataset.url =
1447
- alm.canonical_url +
1448
- buildFilterURL(alm, querystring, pagenum);
1449
  reveal.dataset.page = pagenum;
1450
  } else {
1451
  // Basic ALM
1452
- reveal.setAttribute(
1453
- 'class',
1454
- 'alm-reveal' + alm.tcc
1455
- );
1456
  }
1457
  } else if (alm.addons.filters) {
1458
  // Filters
1459
- reveal.setAttribute(
1460
- 'class',
1461
- 'alm-reveal' + filters_class + alm.tcc
1462
- );
1463
- reveal.dataset.url =
1464
- alm.canonical_url +
1465
- buildFilterURL(
1466
- alm,
1467
- querystring,
1468
- parseInt(alm.page) + 1
1469
- );
1470
  reveal.dataset.page = parseInt(alm.page) + 1;
1471
  } else {
1472
  if (alm.addons.seo) {
1473
  // SEO [Page 1]
1474
- reveal = createSEOAttributes(
1475
- alm,
1476
- reveal,
1477
- querystring,
1478
- seo_class,
1479
- 1
1480
- );
1481
  } else {
1482
  // Basic ALM
1483
- reveal.setAttribute(
1484
- 'class',
1485
- 'alm-reveal' + alm.tcc
1486
- );
1487
  }
1488
  }
1489
 
@@ -1501,17 +1291,13 @@ let alm_is_filtering = false;
1501
 
1502
  // Set button data attributes
1503
  alm.button.dataset.page = nextPageNum; // Page
1504
- let nextPage =
1505
- alm.addons.woocommerce_paged_urls[nextPageNum - 1]; // URL
1506
  alm.button.dataset.url = nextPage ? nextPage : '';
1507
 
1508
  alm.AjaxLoadMore.transitionEnd();
1509
 
1510
  // almComplete
1511
- if (
1512
- typeof almComplete === 'function' &&
1513
- alm.transition !== 'masonry'
1514
- ) {
1515
  window.almComplete(alm);
1516
  }
1517
 
@@ -1521,9 +1307,40 @@ let alm_is_filtering = false;
1521
  }
1522
  })().catch((e) => {
1523
  console.log(e);
1524
- console.log(
1525
- 'There was an error loading woocommerce products'
1526
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1527
  });
1528
 
1529
  alm.init = false;
@@ -1533,10 +1350,7 @@ let alm_is_filtering = false;
1533
 
1534
  // Append `reveal` div to ALM Listing container
1535
  // Do not append when transtion == masonry OR init and !preloaded
1536
- if (
1537
- alm.transition !== 'masonry' ||
1538
- (alm.init && !alm.is_masonry_preloaded)
1539
- ) {
1540
  if (!isPaged) {
1541
  if (!alm.transition_container) {
1542
  // No transition container
@@ -1672,10 +1486,7 @@ let alm_is_filtering = false;
1672
  insertScript.init(alm.el);
1673
 
1674
  // almComplete
1675
- if (
1676
- typeof almComplete === 'function' &&
1677
- alm.transition !== 'masonry'
1678
- ) {
1679
  window.almComplete(alm);
1680
  }
1681
 
@@ -1707,10 +1518,7 @@ let alm_is_filtering = false;
1707
  // Cache
1708
  if (alm.addons.nextpage && alm.localize) {
1709
  // Nextpage
1710
- if (
1711
- parseInt(alm.localize.page) ===
1712
- parseInt(alm.localize.total_posts)
1713
- ) {
1714
  alm.AjaxLoadMore.triggerDone();
1715
  }
1716
  } else {
@@ -1737,8 +1545,7 @@ let alm_is_filtering = false;
1737
  // Destroy After
1738
  if (alm.destroy_after !== undefined && alm.destroy_after !== '') {
1739
  var currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
1740
- currentPage =
1741
- alm.addons.preloaded === 'true' ? currentPage++ : currentPage; // Add 1 for preloaded
1742
  if (currentPage == alm.destroy_after) {
1743
  // Disable ALM if page = alm.destroy_after val
1744
  alm.AjaxLoadMore.destroyed();
@@ -1782,10 +1589,7 @@ let alm_is_filtering = false;
1782
  }
1783
 
1784
  // almComplete
1785
- if (
1786
- typeof almComplete === 'function' &&
1787
- alm.transition !== 'masonry'
1788
- ) {
1789
  window.almComplete(alm);
1790
  }
1791
 
@@ -1888,12 +1692,8 @@ let alm_is_filtering = false;
1888
 
1889
  // Get/Set height of .alm-listing div
1890
  let styles = window.getComputedStyle(alm.listing);
1891
- let pTop = parseInt(
1892
- styles.getPropertyValue('padding-top').replace('px', '')
1893
- );
1894
- let pBtm = parseInt(
1895
- styles.getPropertyValue('padding-bottom').replace('px', '')
1896
- );
1897
  let h = reveal.offsetHeight;
1898
 
1899
  // Set initial `.alm-listing` height
@@ -1993,12 +1793,7 @@ let alm_is_filtering = false;
1993
  }
1994
  }
1995
  if (typeof window.almSetSinglePost === 'function') {
1996
- window.almSetSinglePost(
1997
- alm,
1998
- data.current_id,
1999
- data.permalink,
2000
- data.title
2001
- );
2002
  }
2003
  alm.fetchingPreviousPost = false;
2004
  alm.addons.single_post_init = false;
@@ -2033,7 +1828,7 @@ let alm_is_filtering = false;
2033
  };
2034
 
2035
  /**
2036
- * triggerDone
2037
  *
2038
  * Fires the almDone() function (if available).
2039
  * @since 2.11.3
@@ -2041,15 +1836,25 @@ let alm_is_filtering = false;
2041
  alm.AjaxLoadMore.triggerDone = function () {
2042
  alm.loading = false;
2043
  alm.finished = true;
 
 
2044
  if (!alm.addons.paging) {
 
 
 
 
 
 
 
2045
  alm.button.classList.add('done');
2046
  alm.button.disabled = true;
2047
  }
 
 
2048
  if (typeof almDone === 'function') {
2049
  // Delay done until animations complete
2050
  setTimeout(function () {
2051
  window.almDone(alm);
2052
- hidePlaceholder(alm);
2053
  }, alm.speed + 10);
2054
  }
2055
  };
@@ -2120,15 +1925,12 @@ let alm_is_filtering = false;
2120
  alm.pause_override = false;
2121
  alm.AjaxLoadMore.loadPosts();
2122
  }
2123
- if (
2124
- !alm.loading &&
2125
- !alm.finished &&
2126
- !button.classList.contains('done')
2127
- ) {
2128
  alm.loading = true;
2129
  alm.page++;
2130
  alm.AjaxLoadMore.loadPosts();
2131
  }
 
2132
  };
2133
 
2134
  /**
@@ -2143,13 +1945,11 @@ let alm_is_filtering = false;
2143
  }
2144
 
2145
  /**
2146
- * Window Resize
2147
- * Add resize function for Paging, Scroll Distance Percentage & Tabs.
2148
- *
2149
  * @since 2.1.2
2150
  * @updated 5.2
2151
  */
2152
- if (alm.addons.paging || alm.addons.tabs || alm.scroll_distance_perc) {
2153
  let resize;
2154
  alm.window.onresize = function () {
2155
  clearTimeout(resize);
@@ -2169,29 +1969,25 @@ let alm_is_filtering = false;
2169
  if (alm.scroll_distance_perc) {
2170
  alm.scroll_distance = getScrollPercentage(alm);
2171
  }
 
 
 
2172
  }, alm.speed);
2173
  };
2174
  }
2175
 
2176
  /**
2177
- * isVisible
2178
  * Check to see if element is visible before loading posts
2179
- *
2180
  * @since 2.1.2
2181
  */
2182
  alm.AjaxLoadMore.isVisible = function () {
2183
  // Check for a width and height to determine visibility
2184
- alm.visible =
2185
- alm.main.clientWidth > 0 && alm.main.clientHeight > 0
2186
- ? true
2187
- : false;
2188
  return alm.visible;
2189
  };
2190
 
2191
  /**
2192
- * triggerWindowResize
2193
  * Trigger a window resize browser function
2194
- *
2195
  * @since 5.3.1
2196
  */
2197
  alm.AjaxLoadMore.triggerWindowResize = function () {
@@ -2207,9 +2003,7 @@ let alm_is_filtering = false;
2207
  };
2208
 
2209
  /**
2210
- * scroll
2211
  * Load posts as user scrolls the page
2212
- *
2213
  * @since 1.0
2214
  * @updated 4.2.0
2215
  */
@@ -2222,23 +2016,25 @@ let alm_is_filtering = false;
2222
  alm.timer = setTimeout(function () {
2223
  if (alm.AjaxLoadMore.isVisible() && !alm.fetchingPreviousPost) {
2224
  let trigger = alm.trigger.getBoundingClientRect();
2225
- let btnPos =
2226
- Math.round(trigger.top - alm.window.innerHeight) +
2227
- alm.scroll_distance;
2228
  let scrollTrigger = btnPos <= 0 ? true : false;
2229
 
2230
  // Scroll Container
2231
  if (alm.window !== window) {
2232
- let scrollInstance = alm.window.querySelector(
2233
- '.ajax-load-more-wrap'
2234
- ); // ALM inside the container
2235
- let scrollHeight = scrollInstance.offsetHeight; // ALM height
2236
- let scrollPosition = Math.round(
2237
- alm.window.scrollTop +
2238
- alm.window.offsetHeight -
2239
- alm.scroll_distance
2240
- ); // How far user has scrolled
2241
- scrollTrigger = scrollHeight <= scrollPosition ? true : false;
 
 
 
 
2242
  }
2243
 
2244
  // If Pause && Pause Override
@@ -2256,14 +2052,7 @@ let alm_is_filtering = false;
2256
 
2257
  // Standard Scroll
2258
  else {
2259
- if (
2260
- !alm.loading &&
2261
- !alm.finished &&
2262
- scrollTrigger &&
2263
- alm.page < alm.max_pages - 1 &&
2264
- alm.proceed &&
2265
- alm.pause !== 'true'
2266
- ) {
2267
  alm.button.click();
2268
  }
2269
  }
@@ -2271,14 +2060,16 @@ let alm_is_filtering = false;
2271
  }, 25);
2272
  };
2273
 
2274
- // Add scroll eventlisteners, only when needed
 
 
 
2275
  alm.AjaxLoadMore.scrollSetup = function () {
2276
  if (alm.scroll && !alm.addons.paging) {
2277
  if (alm.scroll_container !== '') {
2278
  // Scroll Container
2279
- alm.window = document.querySelector(alm.scroll_container)
2280
- ? document.querySelector(alm.scroll_container)
2281
- : alm.window;
2282
  }
2283
  alm.window.addEventListener('scroll', alm.AjaxLoadMore.scroll); // Scroll
2284
  alm.window.addEventListener('touchstart', alm.AjaxLoadMore.scroll); // Touch Devices
@@ -2303,9 +2094,17 @@ let alm_is_filtering = false;
2303
  };
2304
 
2305
  /**
2306
- * destroyed
 
 
 
 
 
 
 
 
 
2307
  * Destroy Ajax Load More functionality
2308
- *
2309
  * @since 3.4.2
2310
  */
2311
  alm.AjaxLoadMore.destroyed = function () {
@@ -2320,9 +2119,7 @@ let alm_is_filtering = false;
2320
  };
2321
 
2322
  /**
2323
- * transitionEnd
2324
  * Set variables after loading transiton completes
2325
- *
2326
  * @since 3.5
2327
  */
2328
  alm.AjaxLoadMore.transitionEnd = function () {
@@ -2336,14 +2133,12 @@ let alm_is_filtering = false;
2336
  alm.loading = false; // Delay to prevent loading to fast
2337
  }, alm.speed * 3);
2338
  }
2339
- }, 100);
2340
  hidePlaceholder(alm);
2341
  };
2342
 
2343
  /**
2344
- * setLocalizedVar
2345
  * Set induvidual localized variable
2346
- *
2347
  * @param {string} name
2348
  * @param {string} value
2349
  * @since 4.1
@@ -2394,11 +2189,7 @@ let alm_is_filtering = false;
2394
  }
2395
 
2396
  // Preloaded + SEO && !Paging
2397
- if (
2398
- alm.addons.preloaded === 'true' &&
2399
- alm.addons.seo &&
2400
- !alm.addons.paging
2401
- ) {
2402
  // Delay for scripts to load
2403
  setTimeout(function () {
2404
  if (typeof almSEO === 'function' && alm.start_page < 1) {
@@ -2412,10 +2203,7 @@ let alm_is_filtering = false;
2412
  // Delay for scripts to load
2413
  setTimeout(function () {
2414
  // triggerDone
2415
- if (
2416
- alm.addons.preloaded_total_posts <=
2417
- parseInt(alm.addons.preloaded_amount)
2418
- ) {
2419
  alm.AjaxLoadMore.triggerDone();
2420
  }
2421
  // almEmpty
@@ -2446,25 +2234,15 @@ let alm_is_filtering = false;
2446
  // Next Page Add-on
2447
  if (alm.addons.nextpage) {
2448
  // Check that posts remain on load
2449
- if (
2450
- alm.listing.querySelector('.alm-nextpage') &&
2451
- !alm.addons.paging
2452
- ) {
2453
- let nextpage_pages = alm.listing.querySelectorAll(
2454
- '.alm-nextpage'
2455
- ); // All Next Page Items
2456
 
2457
  if (nextpage_pages) {
2458
  let nextpage_first = nextpage_pages[0];
2459
- let nextpage_total = alm.localize.total_posts
2460
- ? parseInt(alm.localize.total_posts)
2461
- : nextpage_first.dataset.totalPosts;
2462
 
2463
  // Disable if last page loaded
2464
- if (
2465
- nextpage_pages.length === nextpage_total ||
2466
- parseInt(nextpage_first.dataset.id) === nextpage_total
2467
- ) {
2468
  alm.AjaxLoadMore.triggerDone();
2469
  }
2470
  }
@@ -2486,16 +2264,19 @@ let alm_is_filtering = false;
2486
  // Initiate WooCommerce
2487
  wooInit(alm);
2488
 
2489
- // Set Results Text
2490
- if (alm.resultsText) {
2491
- //resultsText.almInitResultsText(alm, 'woocommerce');
2492
  }
 
 
 
 
 
 
2493
 
2494
- // Trigger Done if productsLoaded is less than woocommerce_total_posts
2495
- if (
2496
- alm.addons.woocommerce_paged >=
2497
- parseInt(alm.addons.woocommerce_pages)
2498
- ) {
2499
  alm.AjaxLoadMore.triggerDone();
2500
  }
2501
  }
@@ -2534,17 +2315,14 @@ let alm_is_filtering = false;
2534
  */
2535
  window.almUpdateCurrentPage = function (current, obj, alm) {
2536
  alm.page = current;
2537
- alm.page =
2538
- alm.addons.nextpage && !alm.addons.paging ? alm.page - 1 : alm.page; // Next Page add-on
2539
 
2540
  let data = '';
2541
  let target = '';
2542
 
2543
  if (alm.addons.paging_init && alm.addons.preloaded === 'true') {
2544
  // Paging + Preloaded Firstrun
2545
- target =
2546
- alm.listing.querySelector('.alm-reveal') ||
2547
- alm.listing.querySelector('.alm-nextpage');
2548
  if (target) {
2549
  data = target.innerHTML; // Get content
2550
  target.parentNode.removeChild(target); // Remove target
@@ -2555,9 +2333,7 @@ let alm_is_filtering = false;
2555
  alm.init = false;
2556
  } else if (alm.addons.paging_init && alm.addons.nextpage) {
2557
  // Paging + Next Page on firstrun
2558
- target =
2559
- alm.listing.querySelector('.alm-reveal') ||
2560
- alm.listing.querySelector('.alm-nextpage');
2561
  if (target) {
2562
  data = target.innerHTML; // Get content
2563
  target.parentNode.removeChild(target); // Remove target
33
  import setLocalizedVars from './modules/setLocalizedVars';
34
  import insertScript from './modules/insertScript';
35
  import setFocus from './modules/setFocus';
36
+ import getButtonURL from './modules/getButtonURL';
37
  import almMasonry from './modules/masonry';
38
  import almFadeIn from './modules/fadeIn';
39
  import almFadeOut from './modules/fadeOut';
45
  import { showPlaceholder, hidePlaceholder } from './modules/placeholder';
46
  import { singlePostHTML } from './addons/singleposts';
47
  import { createCacheFile } from './addons/cache';
48
+ import { wooGetContent, wooInit, woocommerce } from './addons/woocommerce';
49
+ import { elementorGetContent, elementorInit, elementor, elementorGetPages } from './addons/elementor';
 
 
 
 
50
  import { buildFilterURL } from './addons/filters';
51
  import { createSEOAttributes } from './addons/seo';
52
 
89
 
90
  alm.ua = window.navigator.userAgent ? window.navigator.userAgent : ''; // Browser User Agent
91
  alm.vendor = window.navigator.vendor ? window.navigator.vendor : ''; // Browser Vendor
92
+ alm.isSafari = /Safari/i.test(alm.ua) && /Apple Computer/.test(alm.vendor) && !/Mobi|Android/i.test(alm.ua);
 
 
 
93
 
94
  alm.main = el;
95
  alm.master_id = el.dataset.id ? `ajax-load-more-${el.dataset.id}` : el.id; // The defined or generated ID of the ALM instance
102
 
103
  // Main ALM Containers
104
  alm.main = el; // Top level DOM element
105
+ alm.listing = el.querySelector('.alm-listing') || el.querySelector('.alm-comments');
 
106
  alm.content = alm.listing;
107
  alm.el = alm.content;
108
  alm.ajax = el.querySelector('.alm-ajax');
124
  alm.repeater = alm.listing.dataset.repeater; // Repeaters
125
  alm.theme_repeater = alm.listing.dataset.themeRepeater;
126
 
127
+ alm.post_type = alm.listing.dataset.postType ? alm.listing.dataset.postType : 'post';
128
+ alm.sticky_posts = alm.listing.dataset.stickyPosts ? alm.listing.dataset.stickyPosts : null;
 
 
 
 
129
 
130
  alm.btnWrap = el.querySelectorAll('.alm-btn-wrap'); // Get all `.alm-button-wrap` divs
131
  alm.btnWrap = Array.prototype.slice.call(alm.btnWrap); // Convert NodeList to array
135
 
136
  alm.button_label = alm.listing.dataset.buttonLabel;
137
  alm.button_loading_label = alm.listing.dataset.buttonLoadingLabel;
138
+ alm.button_done_label = alm.listing.dataset.buttonDoneLabel;
139
+
140
  alm.placeholder = alm.main.querySelector('.alm-placeholder');
141
 
142
  alm.scroll_distance = alm.listing.dataset.scrollDistance;
143
  alm.scroll_distance = alm.scroll_distance ? alm.scroll_distance : 100;
144
  alm.scroll_container = alm.listing.dataset.scrollContainer;
145
+ alm.scroll_direction = alm.listing.dataset.scrollDirection;
146
+ alm.max_pages = alm.listing.dataset.maxPages ? parseInt(alm.listing.dataset.maxPages) : 0;
 
147
  alm.pause_override = alm.listing.dataset.pauseOverride; // true | false
148
  alm.pause = alm.listing.dataset.pause ? alm.listing.dataset.pause : false; // true | false
149
  alm.transition = alm.listing.dataset.transition; // Transition
150
  alm.transition_container = alm.listing.dataset.transitionContainer; // Transition Container
151
  alm.tcc = alm.listing.dataset.transitionContainerClasses; // Transition Container Classes
152
  alm.speed = alm_localize.speed ? parseInt(alm_localize.speed) : 200;
153
+ alm.images_loaded = alm.listing.dataset.imagesLoaded ? alm.listing.dataset.imagesLoaded : false;
154
+ alm.destroy_after = alm.listing.dataset.destroyAfter ? alm.listing.dataset.destroyAfter : '';
 
 
 
 
155
  alm.orginal_posts_per_page = parseInt(alm.listing.dataset.postsPerPage); // Used for paging add-on
156
  alm.posts_per_page = alm.listing.dataset.postsPerPage;
157
+ alm.offset = alm.listing.dataset.offset ? parseInt(alm.listing.dataset.offset) : 0;
158
+ alm.integration.woocommerce = alm.listing.dataset.woocommerce ? alm.listing.dataset.woocommerce : false;
159
+ alm.integration.woocommerce = alm.integration.woocommerce === 'true' ? true : false;
160
+ alm.is_search = alm.is_search === undefined ? false : alm.is_search;
161
+ alm.search_value = alm.is_search === 'true' ? alm.slug : ''; // Convert to value of slug for appending to seo url
 
 
 
162
 
163
  // Addon Shortcode Params
164
 
165
+ // Elementor add-on
166
+ alm.addons.elementor = alm.localize && alm.localize.elementor ? true : false;
167
+ if (alm.addons.elementor) {
168
+ alm.addons.elementor = {};
169
+ alm.addons.elementor_type = 'posts';
170
+ alm.addons.elementor_target = alm.localize.elementor.target;
171
+ alm.addons.elementor_target_element = alm.addons.elementor_target
172
+ ? document.querySelector(`.elementor-widget-wrap ${alm.addons.elementor_target}`)
173
+ : '';
174
+ alm.addons.elementor_paged = alm.localize.elementor.paged ? parseInt(alm.localize.elementor.paged) : 1;
175
+ alm.addons.elementor_container_class = alm.localize.elementor.container_class;
176
+ alm.addons.elementor_item_class = alm.localize.elementor.item_class;
177
+ alm.addons.elementor_pagination_class = alm.localize.elementor.pagination_class;
178
+ alm.addons.elementor_pagination_item = alm.localize.elementor.pagination_item;
179
+ alm.addons.elementor_pages = elementorGetPages(
180
+ alm.addons.elementor_pagination_class,
181
+ alm.addons.elementor_pagination_item,
182
+ alm.addons.elementor_target_element
183
  );
184
+ alm.page = parseInt(alm.page) + alm.addons.elementor_paged;
185
+ }
186
+
187
+ // WooCommerce add-on
188
+ alm.addons.woocommerce = alm.localize && alm.localize.woocommerce ? true : false;
189
+ if (alm.addons.woocommerce) {
190
+ alm.addons.woocommerce_columns = alm.localize.woocommerce.columns ? parseInt(alm.localize.woocommerce.columns) : 3; // Woocommerce columns
191
+ alm.addons.woocommerce_paged = alm.localize.woocommerce.paged ? parseInt(alm.localize.woocommerce.paged) : 1; // Woocommerce Paged
192
+ alm.addons.woocommerce_paged_urls = alm.localize.woocommerce.paged_urls;
193
+ alm.addons.woocommerce_pages = parseInt(alm.localize.woocommerce.pages);
194
  alm.addons.woocommerce_classes = {};
195
+ alm.addons.woocommerce_classes.container = alm.localize.woocommerce.container;
196
+ alm.addons.woocommerce_classes.products = alm.localize.woocommerce.products;
197
+ alm.addons.woocommerce_classes.results = alm.localize.woocommerce.results;
198
+ alm.addons.woocommerce_results_text = document.querySelectorAll(alm.addons.woocommerce_classes.results);
 
 
 
 
 
199
  alm.addons.woocommerce_settings = alm.localize.woocommerce.settings;
200
  alm.page = parseInt(alm.page) + alm.addons.woocommerce_paged;
201
  }
202
 
203
  // Cache add-on
204
  alm.addons.cache = alm.listing.dataset.cache;
205
+ alm.addons.cache = alm.addons.cache === undefined ? false : alm.addons.cache;
 
206
  if (alm.addons.cache === 'true') {
207
  alm.addons.cache_id = alm.listing.dataset.cacheId;
208
  alm.addons.cache_path = alm.listing.dataset.cachePath;
209
  alm.addons.cache_logged_in = alm.listing.dataset.cacheLoggedIn;
210
+ alm.addons.cache_logged_in = alm.addons.cache_logged_in === undefined ? false : alm.addons.cache_logged_in;
 
 
 
211
  }
212
 
213
  // CTA add-on
214
+ alm.addons.cta = alm.listing.dataset.cta ? alm.listing.dataset.cta : false;
215
  if (alm.addons.cta === 'true') {
216
  alm.addons.cta_position = alm.listing.dataset.ctaPosition;
217
  alm.addons.cta_repeater = alm.listing.dataset.ctaRepeater;
234
  alm.addons.single_post_id = alm.listing.dataset.singlePostId;
235
  alm.addons.single_post_order = alm.listing.dataset.singlePostOrder;
236
  alm.addons.single_post_init_id = alm.listing.dataset.singlePostId;
237
+ alm.addons.single_post_taxonomy = alm.listing.dataset.singlePostTaxonomy;
238
+ alm.addons.single_post_excluded_terms = alm.listing.dataset.singlePostExcludedTerms;
239
+ alm.addons.single_post_progress_bar = alm.listing.dataset.singlePostProgressBar;
 
 
 
240
  alm.addons.single_post_target = alm.listing.dataset.singlePostTarget;
241
  }
242
 
243
  // Comments add-on
244
+ alm.addons.comments = alm.listing.dataset.comments ? alm.listing.dataset.comments : false;
245
  if (alm.addons.comments === 'true') {
246
  alm.addons.comments_post_id = alm.listing.dataset.comments_post_id; // current post id
247
  alm.addons.comments_per_page = alm.listing.dataset.comments_per_page;
248
+ alm.addons.comments_per_page = alm.addons.comments_per_page === undefined ? '5' : alm.addons.comments_per_page;
 
 
 
249
  alm.addons.comments_type = alm.listing.dataset.comments_type;
250
  alm.addons.comments_style = alm.listing.dataset.comments_style;
251
  alm.addons.comments_template = alm.listing.dataset.comments_template;
260
 
261
  // Preloaded
262
  alm.addons.preloaded = alm.listing.dataset.preloaded; // Preloaded add-on
263
+ alm.addons.preloaded_amount = alm.listing.dataset.preloadedAmount ? alm.listing.dataset.preloadedAmount : 0;
264
+ alm.is_preloaded = alm.listing.dataset.isPreloaded === 'true' ? true : false;
 
 
 
265
 
266
  // Users
267
  alm.addons.users = alm.listing.dataset.users === 'true' ? true : false; // Users add-on
276
  alm.extensions.restapi_base_url = alm.listing.dataset.restapiBaseUrl;
277
  alm.extensions.restapi_namespace = alm.listing.dataset.restapiNamespace;
278
  alm.extensions.restapi_endpoint = alm.listing.dataset.restapiEndpoint;
279
+ alm.extensions.restapi_template_id = alm.listing.dataset.restapiTemplateId;
 
280
  alm.extensions.restapi_debug = alm.listing.dataset.restapiDebug;
281
 
282
  alm.extensions.acf = alm.listing.dataset.acf; // ACF
283
  alm.extensions.acf_field_type = alm.listing.dataset.acfFieldType;
284
  alm.extensions.acf_field_name = alm.listing.dataset.acfFieldName;
285
+ alm.extensions.acf_parent_field_name = alm.listing.dataset.acfParentFieldName;
 
286
  alm.extensions.acf_post_id = alm.listing.dataset.acfPostId;
287
  alm.extensions.acf = alm.extensions.acf === 'true' ? true : false;
288
  // if field type, name or post ID is empty
289
+ if (alm.extensions.acf_field_type === undefined || alm.extensions.acf_field_name === undefined || alm.extensions.acf_post_id === undefined) {
 
 
 
 
290
  alm.extensions.acf = false;
291
  }
292
 
293
  // Term Query
294
  alm.extensions.term_query = alm.listing.dataset.termQuery; // TERM QUERY
295
+ alm.extensions.term_query_taxonomy = alm.listing.dataset.termQueryTaxonomy;
296
+ alm.extensions.term_query_hide_empty = alm.listing.dataset.termQueryHideEmpty;
 
 
297
  alm.extensions.term_query_number = alm.listing.dataset.termQueryNumber;
298
+ alm.extensions.term_query = alm.extensions.term_query === 'true' ? true : false;
 
299
 
300
  // Paging
301
  alm.addons.paging = alm.listing.dataset.paging; // Paging add-on
302
  if (alm.addons.paging === 'true') {
303
  alm.addons.paging = true;
304
  alm.addons.paging_init = true;
305
+ alm.addons.paging_controls = alm.listing.dataset.pagingControls === 'true' ? true : false;
 
306
  alm.addons.paging_show_at_most = alm.listing.dataset.pagingShowAtMost;
307
  alm.addons.paging_classes = alm.listing.dataset.pagingClasses;
308
+ alm.addons.paging_show_at_most = alm.addons.paging_show_at_most === undefined ? 7 : alm.addons.paging_show_at_most;
 
 
 
309
 
310
  alm.addons.paging_first_label = alm.listing.dataset.pagingFirstLabel;
311
+ alm.addons.paging_previous_label = alm.listing.dataset.pagingPreviousLabel;
 
312
  alm.addons.paging_next_label = alm.listing.dataset.pagingNextLabel;
313
  alm.addons.paging_last_label = alm.listing.dataset.pagingLastLabel;
314
 
315
+ alm.addons.paging_scroll = alm.listing.dataset.pagingScroll ? alm.listing.dataset.pagingScroll : false;
316
+ alm.addons.paging_scrolltop = alm.listing.dataset.pagingScrolltop ? parseInt(alm.listing.dataset.pagingScrolltop) : 100;
 
 
 
 
317
 
318
  // If preloaded, pause ALM
319
  alm.pause = alm.addons.preloaded === 'true' ? true : alm.pause;
326
  if (alm.addons.filters === 'true') {
327
  alm.addons.filters = true;
328
 
329
+ alm.addons.filters_url = alm.listing.dataset.filtersUrl === 'true' ? true : false;
330
+ alm.addons.filters_paging = alm.listing.dataset.filtersPaging === 'true' ? true : false;
331
+ alm.addons.filters_scroll = alm.listing.dataset.filtersScroll === 'true' ? true : false;
332
+ alm.addons.filters_scrolltop = alm.listing.dataset.filtersScrolltop ? alm.listing.dataset.filtersScrolltop : '30';
 
 
 
 
 
333
  alm.addons.filters_analtyics = alm.listing.dataset.filtersAnalytics;
334
  alm.addons.filters_debug = alm.listing.dataset.filtersDebug;
335
  alm.addons.filters_startpage = 0;
340
 
341
  // If not Paging add-on
342
  if (!alm.addons.paging && alm.addons.filters_startpage > 0) {
343
+ alm.posts_per_page = alm.posts_per_page * alm.addons.filters_startpage;
 
344
  alm.isPaged = alm.addons.filters_startpage > 0 ? true : false;
345
  }
346
  } else {
351
  /* TABS */
352
  if (alm.addons.tabs === 'true') {
353
  alm.addons.tabs = true;
354
+ alm.addons.tab_template = alm.listing.dataset.tabTemplate ? alm.listing.dataset.tabTemplate : '';
355
+ alm.addons.tab_onload = alm.listing.dataset.tabOnload ? alm.listing.dataset.tabOnload : '';
356
+ alm.addons.tabs_resturl = alm.listing.dataset.tabsRestUrl ? alm.listing.dataset.tabsRestUrl : '';
 
 
 
 
 
 
357
 
358
  // Locate active template (deeplinks)
359
  if (alm.addons.tab_onload !== '') {
360
+ let tabNav = document.querySelector(`.alm-tab-nav li [data-tab-url=${alm.addons.tab_onload}]`);
361
+ alm.addons.tab_template = tabNav ? tabNav.dataset.tabTemplate : alm.addons.tab_template;
 
 
 
 
362
  alm.listing.dataset.tabOnload = ''; // Clear tabOnload param
363
  // Set selected tab
364
  if (tabNav) {
365
+ let activeTab = document.querySelector(`.alm-tab-nav li .active`);
 
 
366
  if (activeTab) {
367
  activeTab.classList.remove('active');
368
  }
376
  /* REST API */
377
  if (alm.extensions.restapi === 'true') {
378
  alm.extensions.restapi = true;
379
+ alm.extensions.restapi_debug = alm.extensions.restapi_debug === undefined ? false : alm.extensions.restapi_debug;
380
+ alm.extensions.restapi = alm.extensions.restapi_template_id === '' ? false : alm.extensions.restapi;
 
 
 
 
 
 
381
  } else {
382
  alm.extensions.restapi = false;
383
  }
386
  /* Preloaded */
387
  if (alm.addons.preloaded === 'true') {
388
  // Preloaded Amount
389
+ alm.addons.preloaded_amount = alm.addons.preloaded_amount === undefined ? alm.posts_per_page : alm.addons.preloaded_amount;
 
 
 
390
  // Disable ALM if total_posts is less than or equal to preloaded_amount
391
  if (alm.localize && alm.localize.total_posts) {
392
+ if (parseInt(alm.localize.total_posts) <= parseInt(alm.addons.preloaded_amount)) {
 
 
 
393
  alm.addons.preloaded_total_posts = alm.localize.total_posts;
394
  alm.disable_ajax = true;
395
  }
402
  /* SEO */
403
  alm.addons.seo = alm.addons.seo === undefined ? false : alm.addons.seo;
404
  alm.addons.seo = alm.addons.seo === 'true' ? true : alm.addons.seo;
 
 
405
 
406
+ if (alm.addons.seo) {
407
+ alm.addons.seo_permalink = alm.listing.dataset.seoPermalink;
408
+ alm.addons.seo_pageview = alm.listing.dataset.seoPageview;
409
+ alm.addons.seo_trailing_slash = alm.listing.dataset.seoTrailingSlash === 'false' ? '' : '/';
410
+ alm.addons.seo_leading_slash = alm.listing.dataset.seoLeadingSlash === 'true' ? '/' : '';
411
+ }
412
  alm.start_page = alm.listing.dataset.seoStartPage;
413
 
414
  if (alm.start_page) {
433
  if (alm.addons.nextpage === 'true') {
434
  alm.addons.nextpage = true;
435
  alm.posts_per_page = 1;
436
+
437
+ if (alm.addons.nextpage_urls === undefined) {
438
+ alm.addons.nextpage_urls = 'true';
439
+ }
440
+ if (alm.addons.nextpage_scroll === undefined) {
441
+ alm.addons.nextpage_scroll = 'false:30';
442
+ }
443
+ if (alm.addons.nextpage_pageviews === undefined) {
444
+ alm.addons.nextpage_pageviews = 'true';
445
+ }
446
+ if (alm.addons.nextpage_post_id === undefined) {
447
+ alm.addons.nextpage = false;
448
+ alm.addons.nextpage_post_id = null;
449
+ }
450
+ if (alm.addons.nextpage_startpage === undefined) {
451
+ alm.addons.nextpage_startpage = 1;
452
+ }
453
+ if (alm.addons.nextpage_startpage > 1) {
454
+ alm.isPaged = true;
455
+ }
456
  } else {
457
  alm.addons.nextpage = false;
458
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
459
  /* End Nextpage */
460
 
461
  /* Single Post */
464
  alm.addons.single_post_permalink = '';
465
  alm.addons.single_post_title = '';
466
  alm.addons.single_post_slug = '';
467
+ alm.addons.single_post_order = alm.addons.single_post_order === undefined ? 'previous' : alm.addons.single_post_order;
468
+ alm.addons.single_post_taxonomy = alm.addons.single_post_taxonomy === undefined ? '' : alm.addons.single_post_taxonomy;
469
+ alm.addons.single_post_excluded_terms = alm.addons.single_post_excluded_terms === undefined ? '' : alm.addons.single_post_excluded_terms;
470
+ alm.addons.single_post_progress_bar = alm.addons.single_post_progress_bar === undefined ? '' : alm.addons.single_post_progress_bar;
471
+ alm.addons.single_post_target = alm.addons.single_post_target === undefined ? '' : alm.addons.single_post_target;
472
+ alm.addons.single_post_title_template = alm.listing.dataset.singlePostTitleTemplate;
473
+ alm.addons.single_post_siteTitle = alm.listing.dataset.singlePostSiteTitle;
474
+ alm.addons.single_post_siteTagline = alm.listing.dataset.singlePostSiteTagline;
475
+ alm.addons.single_post_pageview = alm.listing.dataset.singlePostPageview;
476
+ alm.addons.single_post_scroll = alm.listing.dataset.singlePostScroll;
477
+ alm.addons.single_post_scroll_speed = alm.listing.dataset.singlePostScrollSpeed;
478
+ alm.addons.single_post_scroll_top = alm.listing.dataset.singlePostScrolltop;
479
+ alm.addons.single_post_controls = alm.listing.dataset.singlePostControls;
480
  } else {
481
  alm.addons.single_post = false;
482
  }
483
+ if (alm.addons.single_post && alm.addons.single_post_id === undefined) {
484
  alm.addons.single_post_id = '';
485
  alm.addons.single_post_init_id = '';
486
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
487
  /* End Single Post */
488
 
489
  /* Pause */
491
  // SEO only
492
  alm.pause = false;
493
  }
494
+ if (alm.addons.preloaded === 'true' && alm.addons.seo && alm.start_page > 0) {
 
 
 
 
495
  // SEO + Preloaded
496
  alm.pause = false;
497
  }
505
 
506
  /* Repeater and Theme Repeater */
507
  alm.repeater = alm.repeater === undefined ? 'default' : alm.repeater;
508
+ alm.theme_repeater = alm.theme_repeater === undefined ? false : alm.theme_repeater;
 
509
 
510
  /* Max Pages (while scrolling) */
511
+ alm.max_pages = alm.max_pages === undefined || alm.max_pages === 0 ? 10000 : alm.max_pages;
 
 
 
512
 
513
  /* Scroll Distance */
514
+ alm.scroll_distance = alm.scroll_distance === undefined ? 100 : alm.scroll_distance;
 
515
  alm.scroll_distance_perc = false;
516
  if (alm.scroll_distance.toString().indexOf('%') == -1) {
517
  // Standard scroll_distance
524
  }
525
 
526
  /* Scroll Container */
527
+ alm.scroll_container = alm.scroll_container === undefined ? '' : alm.scroll_container;
528
+
529
+ /* Scroll Direction */
530
+ alm.scroll_direction = alm.scroll_direction === undefined ? 'vertical' : alm.scroll_direction;
531
 
532
  /* Transition */
533
  alm.transition = alm.transition === undefined ? 'fade' : alm.transition;
540
  if (alm.transition === 'masonry') {
541
  alm.masonry_init = true;
542
  if (alm.msnry) {
543
+ alm.msnry.destroy(); // destroy masonry if it currently exists
544
  } else {
545
  alm.msnry = '';
546
  }
547
  alm.masonry_selector = alm.listing.dataset.masonrySelector;
548
  alm.masonry_columnwidth = alm.listing.dataset.masonryColumnwidth;
549
  alm.masonry_animation = alm.listing.dataset.masonryAnimation;
550
+ alm.masonry_animation = alm.masonry_animation === undefined ? 'standard' : alm.masonry_animation;
551
+ alm.masonry_horizontalorder = alm.listing.dataset.masonryHorizontalorder;
552
+ alm.masonry_horizontalorder = alm.masonry_horizontalorder === undefined ? 'true' : alm.masonry_horizontalorder;
 
 
 
 
 
 
 
553
  alm.transition_container = false;
554
  alm.images_loaded = false;
555
+ alm.is_masonry_preloaded = alm.addons.preloaded === 'true' ? true : alm.is_masonry_preloaded;
 
556
  }
557
 
558
  /* Scroll */
565
  }
566
 
567
  /* Transition Container */
568
+ alm.transition_container = alm.transition_container === undefined || alm.transition_container === 'true' ? true : false;
 
 
 
 
569
 
570
  /* Button Labels */
571
+ alm.button_label = alm.button_label === undefined ? 'Older Posts' : alm.button_label;
572
+ alm.button_loading_label = alm.button_loading_label === undefined ? false : alm.button_loading_label;
573
+ alm.button_done_label = alm.button_done_label === undefined ? false : alm.button_done_label;
 
 
 
574
 
575
  /* Paging */
576
  if (alm.addons.paging) {
588
  }
589
  return element.classList.contains('alm-btn-wrap');
590
  });
591
+ alm.button = btnWrap ? btnWrap[0].querySelector('.alm-load-more-btn') : container.querySelector('.alm-btn-wrap .alm-load-more-btn');
 
 
592
  } else {
593
+ alm.button = container.querySelector('.alm-btn-wrap .alm-load-more-btn');
 
 
594
  }
595
 
596
  // Reset button state
602
  // Render "Showing x of y results" text.
603
  // If woocommerce, get the default woocommerce results block
604
  if (alm.integration.woocommerce) {
605
+ alm.resultsText = document.querySelectorAll('.woocommerce-result-count');
 
 
606
  if (alm.resultsText.length < 1) {
607
  alm.resultsText = document.querySelectorAll('.alm-results-text');
608
  }
838
 
839
  // WooCommerce Add-on
840
  if (alm.addons.woocommerce) {
841
+ ajaxURL = getButtonURL(alm);
842
+ params = '';
843
+ }
844
+
845
+ // Elementor Add-on
846
+ if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') {
847
+ ajaxURL = getButtonURL(alm);
848
  params = '';
849
  }
850
 
857
 
858
  if (alm.addons.single_post && alm.addons.single_post_target) {
859
  // Single Posts
860
+ data = singlePostHTML(response, alm.addons.single_post_target);
 
 
 
861
  createCacheFile(alm, data.html, 'single');
862
  } else if (alm.addons.woocommerce) {
863
  // WooCommerce
864
  data = wooGetContent(response, alm);
865
  createCacheFile(alm, data.html, 'woocommerce');
866
+ } else if (alm.addons.elementor) {
867
+ // Elementor
868
+ data = elementorGetContent(response, alm);
869
+ createCacheFile(alm, data.html, 'elementor');
870
  } else {
871
  // Get data from response
872
  data = response.data;
875
  // Standard Query
876
  if (queryType === 'standard') {
877
  alm.AjaxLoadMore.success(data, false);
878
+ } else if (queryType === 'totalpages' && alm.addons.paging && alm.addons.nextpage) {
 
 
 
 
879
  // Next Page and Paging
880
  if (typeof almBuildPagination === 'function') {
881
  window.almBuildPagination(data.totalpages, alm);
959
  * @since 5.0.0
960
  */
961
  alm.AjaxLoadMore.restapi = function (alm, action, queryType) {
962
+ let alm_rest_template = wp.template(alm.extensions.restapi_template_id);
 
 
963
  let alm_rest_url = `${alm.extensions.restapi_base_url}/${alm.extensions.restapi_namespace}/${alm.extensions.restapi_endpoint}`;
964
  let params = queryParams.almGetRestParams(alm); // [./helpers/queryParams.js]
965
 
1040
 
1041
  // Create `.alm-reveal` element
1042
  //let reveal = document.createElement('div');
1043
+ let reveal = alm.container_type === 'table' ? document.createElement('tbody') : document.createElement('div');
 
 
 
1044
  alm.el = reveal;
1045
  reveal.style.opacity = 0;
1046
  reveal.style.height = 0;
1058
  // Standard ALM query results
1059
  html = data.html;
1060
  meta = data.meta;
1061
+ alm.posts = alm.addons.paging ? meta.postcount : alm.posts + meta.postcount;
 
 
1062
  total = meta.postcount;
1063
  alm.totalposts = meta.totalposts;
1064
+ alm.totalposts = alm.addons.preloaded === 'true' ? alm.totalposts - alm.addons.preloaded_amount : alm.totalposts;
 
 
 
1065
  alm.debug = meta.debug ? meta.debug : '';
1066
  }
1067
 
1075
  if (alm.init) {
1076
  // Set Meta
1077
  if (meta) {
1078
+ alm.main.dataset.totalPosts = meta.totalposts ? meta.totalposts : 0;
 
 
1079
  }
1080
  // Paging
1081
  if (alm.addons.paging && total > 0) {
1102
  // isPaged
1103
  if (alm.isPaged) {
1104
  // Reset the posts_per_page parameter
1105
+ alm.posts_per_page = alm.addons.users ? alm.listing.dataset.usersPerPage : alm.listing.dataset.postsPerPage; // Users
1106
+ alm.posts_per_page = alm.addons.nextpage ? 1 : alm.posts_per_page; // NextPage
 
 
 
 
1107
 
1108
  // SEO add-on
1109
  alm.page = alm.start_page ? alm.start_page - 1 : alm.page; // Set new page #
1142
  if (!alm.addons.paging) {
1143
  if (alm.addons.single_post) {
1144
  // Single Posts
1145
+ reveal.setAttribute('class', 'alm-reveal alm-single-post post-' + alm.addons.single_post_id + alm.tcc);
 
 
 
 
 
1146
  reveal.dataset.url = alm.addons.single_post_permalink;
1147
  reveal.dataset.page = alm.page;
1148
  reveal.dataset.id = alm.addons.single_post_id;
1153
  // No transition container
1154
 
1155
  alm.el = alm.html;
1156
+ reveal = alm.container_type === 'table' ? tableWrap(alm.html) : stripEmptyNodes(almDomParser(alm.html, 'text/html'));
 
 
 
 
 
1157
  } else {
1158
  // Standard container
1159
 
1160
  let pagenum;
1161
  let querystring = window.location.search;
1162
  let seo_class = alm.addons.seo ? ' alm-seo' : '';
1163
+ let filters_class = alm.addons.filters ? ' alm-filters' : '';
1164
+ let preloaded_class = alm.is_preloaded ? ' alm-preloaded' : '';
 
 
 
 
1165
 
1166
  // Init, SEO and Filter Paged
1167
+ if (alm.init && (alm.start_page > 1 || alm.addons.filters_startpage > 0)) {
 
 
 
1168
  // loop through items and break into separate .alm-reveal divs for paging
1169
 
1170
  let return_data = [];
1181
  }
1182
 
1183
  // Parse returned HTML and strip empty nodes
1184
+ let data = stripEmptyNodes(almDomParser(alm.html, 'text/html'));
 
 
1185
 
1186
  // Slice data array into individual pages (array)
1187
  for (let i = 0; i < total; i += posts_per_page) {
1198
 
1199
  if (alm.addons.seo) {
1200
  // SEO
1201
+ alm_reveal = createSEOAttributes(alm, alm_reveal, querystring, seo_class, pagenum);
 
 
 
 
 
 
1202
  }
1203
 
1204
  if (alm.addons.filters) {
1205
  // Filters
1206
+ alm_reveal.setAttribute('class', 'alm-reveal' + filters_class + alm.tcc);
1207
+ alm_reveal.dataset.url = alm.canonical_url + buildFilterURL(alm, querystring, pagenum);
 
 
 
 
 
1208
  alm_reveal.dataset.page = pagenum;
1209
  }
1210
  } else {
1211
  // First Page
1212
  if (alm.addons.seo) {
1213
  // SEO
1214
+ alm_reveal = createSEOAttributes(alm, alm_reveal, querystring, seo_class, 1);
 
 
 
 
 
 
1215
  }
1216
  if (alm.addons.filters) {
1217
  // Filters
1218
+ alm_reveal.setAttribute('class', 'alm-reveal' + filters_class + preloaded_class + alm.tcc);
1219
+ alm_reveal.dataset.url = alm.canonical_url + buildFilterURL(alm, querystring, 0);
 
 
 
 
 
 
 
 
1220
  alm_reveal.dataset.page = '1';
1221
  }
1222
  }
1244
  // End Init & SEO
1245
  else {
1246
  // Preloaded OR SEO (and Paged)
1247
+ if ((alm.addons.seo && alm.page > 0) || alm.addons.preloaded === 'true') {
 
 
 
1248
  let p2 = alm.addons.preloaded === 'true' ? 1 : 0; // Add 1 page if items are preloaded.
1249
 
1250
  // SEO [Paged]
1252
 
1253
  if (alm.addons.seo) {
1254
  // SEO
1255
+ reveal = createSEOAttributes(alm, reveal, querystring, seo_class, pagenum);
 
 
 
 
 
 
1256
  } else if (alm.addons.filters) {
1257
  // Filters
1258
+ reveal.setAttribute('class', 'alm-reveal' + filters_class + alm.tcc);
1259
+ reveal.dataset.url = alm.canonical_url + buildFilterURL(alm, querystring, pagenum);
 
 
 
 
 
1260
  reveal.dataset.page = pagenum;
1261
  } else {
1262
  // Basic ALM
1263
+ reveal.setAttribute('class', 'alm-reveal' + alm.tcc);
 
 
 
1264
  }
1265
  } else if (alm.addons.filters) {
1266
  // Filters
1267
+ reveal.setAttribute('class', 'alm-reveal' + filters_class + alm.tcc);
1268
+ reveal.dataset.url = alm.canonical_url + buildFilterURL(alm, querystring, parseInt(alm.page) + 1);
 
 
 
 
 
 
 
 
 
1269
  reveal.dataset.page = parseInt(alm.page) + 1;
1270
  } else {
1271
  if (alm.addons.seo) {
1272
  // SEO [Page 1]
1273
+ reveal = createSEOAttributes(alm, reveal, querystring, seo_class, 1);
 
 
 
 
 
 
1274
  } else {
1275
  // Basic ALM
1276
+ reveal.setAttribute('class', 'alm-reveal' + alm.tcc);
 
 
 
1277
  }
1278
  }
1279
 
1291
 
1292
  // Set button data attributes
1293
  alm.button.dataset.page = nextPageNum; // Page
1294
+ let nextPage = alm.addons.woocommerce_paged_urls[nextPageNum - 1]; // URL
 
1295
  alm.button.dataset.url = nextPage ? nextPage : '';
1296
 
1297
  alm.AjaxLoadMore.transitionEnd();
1298
 
1299
  // almComplete
1300
+ if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
 
 
 
1301
  window.almComplete(alm);
1302
  }
1303
 
1307
  }
1308
  })().catch((e) => {
1309
  console.log(e);
1310
+ console.log('There was an error loading woocommerce products');
1311
+ });
1312
+
1313
+ alm.init = false;
1314
+
1315
+ return;
1316
+ }
1317
+
1318
+ // Elementor Add-on
1319
+ if (alm.addons.elementor) {
1320
+ (async function () {
1321
+ await elementor(reveal, alm, data.pageTitle);
1322
+
1323
+ let nextPageNum = alm.page + 1;
1324
+
1325
+ // Set button data attributes
1326
+ alm.button.dataset.page = nextPageNum; // Page
1327
+ let nextPage = alm.addons.elementor_pages[nextPageNum - 1]; // URL
1328
+ alm.button.dataset.url = nextPage ? nextPage : '';
1329
+
1330
+ alm.AjaxLoadMore.transitionEnd();
1331
+
1332
+ // almComplete
1333
+ if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
1334
+ window.almComplete(alm);
1335
+ }
1336
+
1337
+ // ALM Done
1338
+ if (nextPageNum > parseInt(alm.addons.elementor_pages.length)) {
1339
+ alm.AjaxLoadMore.triggerDone();
1340
+ }
1341
+ })().catch((e) => {
1342
+ console.log(e);
1343
+ console.log('There was an error loading Elementor Post Widget items');
1344
  });
1345
 
1346
  alm.init = false;
1350
 
1351
  // Append `reveal` div to ALM Listing container
1352
  // Do not append when transtion == masonry OR init and !preloaded
1353
+ if (alm.transition !== 'masonry' || (alm.init && !alm.is_masonry_preloaded)) {
 
 
 
1354
  if (!isPaged) {
1355
  if (!alm.transition_container) {
1356
  // No transition container
1486
  insertScript.init(alm.el);
1487
 
1488
  // almComplete
1489
+ if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
 
 
 
1490
  window.almComplete(alm);
1491
  }
1492
 
1518
  // Cache
1519
  if (alm.addons.nextpage && alm.localize) {
1520
  // Nextpage
1521
+ if (parseInt(alm.localize.page) === parseInt(alm.localize.total_posts)) {
 
 
 
1522
  alm.AjaxLoadMore.triggerDone();
1523
  }
1524
  } else {
1545
  // Destroy After
1546
  if (alm.destroy_after !== undefined && alm.destroy_after !== '') {
1547
  var currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
1548
+ currentPage = alm.addons.preloaded === 'true' ? currentPage++ : currentPage; // Add 1 for preloaded
 
1549
  if (currentPage == alm.destroy_after) {
1550
  // Disable ALM if page = alm.destroy_after val
1551
  alm.AjaxLoadMore.destroyed();
1589
  }
1590
 
1591
  // almComplete
1592
+ if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
 
 
 
1593
  window.almComplete(alm);
1594
  }
1595
 
1692
 
1693
  // Get/Set height of .alm-listing div
1694
  let styles = window.getComputedStyle(alm.listing);
1695
+ let pTop = parseInt(styles.getPropertyValue('padding-top').replace('px', ''));
1696
+ let pBtm = parseInt(styles.getPropertyValue('padding-bottom').replace('px', ''));
 
 
 
 
1697
  let h = reveal.offsetHeight;
1698
 
1699
  // Set initial `.alm-listing` height
1793
  }
1794
  }
1795
  if (typeof window.almSetSinglePost === 'function') {
1796
+ window.almSetSinglePost(alm, data.current_id, data.permalink, data.title);
 
 
 
 
 
1797
  }
1798
  alm.fetchingPreviousPost = false;
1799
  alm.addons.single_post_init = false;
1828
  };
1829
 
1830
  /**
1831
+ * ALM Done
1832
  *
1833
  * Fires the almDone() function (if available).
1834
  * @since 2.11.3
1836
  alm.AjaxLoadMore.triggerDone = function () {
1837
  alm.loading = false;
1838
  alm.finished = true;
1839
+ hidePlaceholder(alm);
1840
+
1841
  if (!alm.addons.paging) {
1842
+ // Update button text
1843
+ if (alm.button_done_label !== false) {
1844
+ setTimeout(function () {
1845
+ alm.button.innerHTML = alm.button_done_label;
1846
+ }, 75);
1847
+ }
1848
+
1849
  alm.button.classList.add('done');
1850
  alm.button.disabled = true;
1851
  }
1852
+
1853
+ // almDone
1854
  if (typeof almDone === 'function') {
1855
  // Delay done until animations complete
1856
  setTimeout(function () {
1857
  window.almDone(alm);
 
1858
  }, alm.speed + 10);
1859
  }
1860
  };
1925
  alm.pause_override = false;
1926
  alm.AjaxLoadMore.loadPosts();
1927
  }
1928
+ if (!alm.loading && !alm.finished && !button.classList.contains('done')) {
 
 
 
 
1929
  alm.loading = true;
1930
  alm.page++;
1931
  alm.AjaxLoadMore.loadPosts();
1932
  }
1933
+ button.blur(); // Remove button focus
1934
  };
1935
 
1936
  /**
1945
  }
1946
 
1947
  /**
1948
+ * Window resize functions for Paging, Scroll Distance Percentage, Tabs etc.
 
 
1949
  * @since 2.1.2
1950
  * @updated 5.2
1951
  */
1952
+ if (alm.addons.paging || alm.addons.tabs || alm.scroll_distance_perc || alm.scroll_direction === 'horizontal') {
1953
  let resize;
1954
  alm.window.onresize = function () {
1955
  clearTimeout(resize);
1969
  if (alm.scroll_distance_perc) {
1970
  alm.scroll_distance = getScrollPercentage(alm);
1971
  }
1972
+ if (alm.scroll_direction === 'horizontal') {
1973
+ alm.AjaxLoadMore.horizontal();
1974
+ }
1975
  }, alm.speed);
1976
  };
1977
  }
1978
 
1979
  /**
 
1980
  * Check to see if element is visible before loading posts
 
1981
  * @since 2.1.2
1982
  */
1983
  alm.AjaxLoadMore.isVisible = function () {
1984
  // Check for a width and height to determine visibility
1985
+ alm.visible = alm.main.clientWidth > 0 && alm.main.clientHeight > 0 ? true : false;
 
 
 
1986
  return alm.visible;
1987
  };
1988
 
1989
  /**
 
1990
  * Trigger a window resize browser function
 
1991
  * @since 5.3.1
1992
  */
1993
  alm.AjaxLoadMore.triggerWindowResize = function () {
2003
  };
2004
 
2005
  /**
 
2006
  * Load posts as user scrolls the page
 
2007
  * @since 1.0
2008
  * @updated 4.2.0
2009
  */
2016
  alm.timer = setTimeout(function () {
2017
  if (alm.AjaxLoadMore.isVisible() && !alm.fetchingPreviousPost) {
2018
  let trigger = alm.trigger.getBoundingClientRect();
2019
+ let btnPos = Math.round(trigger.top - alm.window.innerHeight) + alm.scroll_distance;
 
 
2020
  let scrollTrigger = btnPos <= 0 ? true : false;
2021
 
2022
  // Scroll Container
2023
  if (alm.window !== window) {
2024
+ let scrollHeight = alm.main.offsetHeight; // ALM height
2025
+ let scrollWidth = alm.main.offsetWidth; // ALM Width
2026
+ let scrollPosition = '';
2027
+
2028
+ if (alm.scroll_direction === 'horizontal') {
2029
+ // Left/Right
2030
+ alm.AjaxLoadMore.horizontal();
2031
+ scrollPosition = Math.round(alm.window.scrollLeft + alm.window.offsetWidth - alm.scroll_distance); // How far user has scrolled
2032
+ scrollTrigger = scrollWidth <= scrollPosition ? true : false;
2033
+ } else {
2034
+ // Up/Down
2035
+ scrollPosition = Math.round(alm.window.scrollTop + alm.window.offsetHeight - alm.scroll_distance); // How far user has scrolled
2036
+ scrollTrigger = scrollHeight <= scrollPosition ? true : false;
2037
+ }
2038
  }
2039
 
2040
  // If Pause && Pause Override
2052
 
2053
  // Standard Scroll
2054
  else {
2055
+ if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause !== 'true') {
 
 
 
 
 
 
 
2056
  alm.button.click();
2057
  }
2058
  }
2060
  }, 25);
2061
  };
2062
 
2063
+ /**
2064
+ * Add scroll eventlisteners, only when needed
2065
+ * @since 5.2.0
2066
+ */
2067
  alm.AjaxLoadMore.scrollSetup = function () {
2068
  if (alm.scroll && !alm.addons.paging) {
2069
  if (alm.scroll_container !== '') {
2070
  // Scroll Container
2071
+ alm.window = document.querySelector(alm.scroll_container) ? document.querySelector(alm.scroll_container) : alm.window;
2072
+ alm.AjaxLoadMore.horizontal();
 
2073
  }
2074
  alm.window.addEventListener('scroll', alm.AjaxLoadMore.scroll); // Scroll
2075
  alm.window.addEventListener('touchstart', alm.AjaxLoadMore.scroll); // Touch Devices
2094
  };
2095
 
2096
  /**
2097
+ * Configure horizontal scroll settings
2098
+ * @since 5.3.6
2099
+ */
2100
+ alm.AjaxLoadMore.horizontal = function () {
2101
+ if (alm.scroll_direction === 'horizontal') {
2102
+ alm.main.style.width = `${alm.listing.offsetWidth}px`;
2103
+ }
2104
+ };
2105
+
2106
+ /**
2107
  * Destroy Ajax Load More functionality
 
2108
  * @since 3.4.2
2109
  */
2110
  alm.AjaxLoadMore.destroyed = function () {
2119
  };
2120
 
2121
  /**
 
2122
  * Set variables after loading transiton completes
 
2123
  * @since 3.5
2124
  */
2125
  alm.AjaxLoadMore.transitionEnd = function () {
2133
  alm.loading = false; // Delay to prevent loading to fast
2134
  }, alm.speed * 3);
2135
  }
2136
+ }, 50);
2137
  hidePlaceholder(alm);
2138
  };
2139
 
2140
  /**
 
2141
  * Set induvidual localized variable
 
2142
  * @param {string} name
2143
  * @param {string} value
2144
  * @since 4.1
2189
  }
2190
 
2191
  // Preloaded + SEO && !Paging
2192
+ if (alm.addons.preloaded === 'true' && alm.addons.seo && !alm.addons.paging) {
 
 
 
 
2193
  // Delay for scripts to load
2194
  setTimeout(function () {
2195
  if (typeof almSEO === 'function' && alm.start_page < 1) {
2203
  // Delay for scripts to load
2204
  setTimeout(function () {
2205
  // triggerDone
2206
+ if (alm.addons.preloaded_total_posts <= parseInt(alm.addons.preloaded_amount)) {
 
 
 
2207
  alm.AjaxLoadMore.triggerDone();
2208
  }
2209
  // almEmpty
2234
  // Next Page Add-on
2235
  if (alm.addons.nextpage) {
2236
  // Check that posts remain on load
2237
+ if (alm.listing.querySelector('.alm-nextpage') && !alm.addons.paging) {
2238
+ let nextpage_pages = alm.listing.querySelectorAll('.alm-nextpage'); // All Next Page Items
 
 
 
 
 
2239
 
2240
  if (nextpage_pages) {
2241
  let nextpage_first = nextpage_pages[0];
2242
+ let nextpage_total = alm.localize.total_posts ? parseInt(alm.localize.total_posts) : nextpage_first.dataset.totalPosts;
 
 
2243
 
2244
  // Disable if last page loaded
2245
+ if (nextpage_pages.length === nextpage_total || parseInt(nextpage_first.dataset.id) === nextpage_total) {
 
 
 
2246
  alm.AjaxLoadMore.triggerDone();
2247
  }
2248
  }
2264
  // Initiate WooCommerce
2265
  wooInit(alm);
2266
 
2267
+ // Trigger `Done` if `paged is less than `pages`
2268
+ if (alm.addons.woocommerce_paged >= parseInt(alm.addons.woocommerce_pages)) {
2269
+ alm.AjaxLoadMore.triggerDone();
2270
  }
2271
+ }
2272
+
2273
+ // Elementor Add-on
2274
+ if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') {
2275
+ // Initiate Elementor
2276
+ elementorInit(alm);
2277
 
2278
+ // Trigger `Done` if `paged is less than `pages`
2279
+ if (alm.addons.elementor_paged > parseInt(alm.addons.elementor_pages.length)) {
 
 
 
2280
  alm.AjaxLoadMore.triggerDone();
2281
  }
2282
  }
2315
  */
2316
  window.almUpdateCurrentPage = function (current, obj, alm) {
2317
  alm.page = current;
2318
+ alm.page = alm.addons.nextpage && !alm.addons.paging ? alm.page - 1 : alm.page; // Next Page add-on
 
2319
 
2320
  let data = '';
2321
  let target = '';
2322
 
2323
  if (alm.addons.paging_init && alm.addons.preloaded === 'true') {
2324
  // Paging + Preloaded Firstrun
2325
+ target = alm.listing.querySelector('.alm-reveal') || alm.listing.querySelector('.alm-nextpage');
 
 
2326
  if (target) {
2327
  data = target.innerHTML; // Get content
2328
  target.parentNode.removeChild(target); // Remove target
2333
  alm.init = false;
2334
  } else if (alm.addons.paging_init && alm.addons.nextpage) {
2335
  // Paging + Next Page on firstrun
2336
+ target = alm.listing.querySelector('.alm-reveal') || alm.listing.querySelector('.alm-nextpage');
 
 
2337
  if (target) {
2338
  data = target.innerHTML; // Get content
2339
  target.parentNode.removeChild(target); // Remove target
core/src/js/modules/getButtonURL.js ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * wooGetURL
3
+ * Get the next URL for Load More button
4
+ *
5
+ * @param {object} alm
6
+ * @since 5.4.0
7
+ */
8
+
9
+ const getButtonURL = (alm) => {
10
+ if (!alm || !alm.trigger) {
11
+ return false;
12
+ }
13
+ let button = alm.trigger.querySelector('button');
14
+ let url = button ? button.dataset.url : '';
15
+
16
+ return url ? url : '';
17
+ };
18
+ export default getButtonURL;
core/src/js/modules/loadImage.js ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import srcsetPolyfill from '../helpers/srcsetPolyfill';
2
+ let imagesLoaded = require('imagesloaded');
3
+
4
+ /**
5
+ * Load the image with imagesLoaded
6
+ *
7
+ * @param {HTMLElement} container
8
+ * @param {HTMLElement} item
9
+ * @param {String} ua
10
+ */
11
+ const loadImage = (container, item, ua) => {
12
+ return new Promise((resolve) => {
13
+ imagesLoaded(item, function () {
14
+ // Add CSS transition
15
+ item.style.transition = 'all 0.4s ease';
16
+ // Append to container
17
+ container.appendChild(item);
18
+ // Run srcset fix
19
+ srcsetPolyfill(item, ua);
20
+ // Send await callback
21
+ resolve(true);
22
+ });
23
+ });
24
+ };
25
+ export default loadImage;
core/src/js/modules/loadItems.js ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import loadImage from './loadImage';
2
+ import setFocus from './setFocus';
3
+
4
+ /**
5
+ * Load all items
6
+ *
7
+ * @param {HTMLElement} container
8
+ * @param {HTMLElement} items
9
+ * @param {Object} alm
10
+ * @param {String} pageTitle
11
+ * @param {String} url
12
+ * @param {String} className
13
+ */
14
+ const loadItems = (container, items, alm, pageTitle, url = window.location, className = '') => {
15
+ return new Promise((resolve) => {
16
+ let total = items.length;
17
+ let index = 0;
18
+ let count = 1;
19
+
20
+ function loadItem() {
21
+ if (count <= total) {
22
+ (async function () {
23
+ items[index].style.opacity = 0;
24
+
25
+ // First item only
26
+ if (count == 1) {
27
+ items[index].classList.add(className);
28
+
29
+ // Set URL
30
+ items[index].dataset.url = url;
31
+
32
+ // Set page num
33
+ items[index].dataset.page = alm.page + 1;
34
+
35
+ // Set page title
36
+ items[index].dataset.pageTitle = pageTitle;
37
+ }
38
+
39
+ await loadImage(container, items[index], alm.ua);
40
+
41
+ count++;
42
+ index++;
43
+
44
+ loadItem();
45
+ })().catch((e) => {
46
+ console.log('There was an error loading the items');
47
+ });
48
+ } else {
49
+ // Delay for effect only
50
+ setTimeout(function () {
51
+ items.map(function (item) {
52
+ item.style.opacity = 1;
53
+ });
54
+ if (items[0]) {
55
+ setFocus(alm, items[0], null, false);
56
+ }
57
+ }, 50);
58
+
59
+ resolve(true);
60
+ }
61
+ }
62
+
63
+ loadItem();
64
+ });
65
+ };
66
+
67
+ export default loadItems;
core/src/js/modules/setFocus.js CHANGED
@@ -1,121 +1,111 @@
1
  /**
2
  * setFocus
3
  * Set user focus to improve accessibility after load events
4
- *
5
  * @param {Object} alm
6
  * @param {HTMLElement} preloaded
7
  * @param {Number} total
8
  * @param {Boolean} is_filtering
9
  * @since 5.1
10
- */
11
-
12
  let setFocus = (alm, element = null, total = 0, is_filtering = false) => {
13
-
14
- if(!alm_localize.a11y_focus){
15
  return false;
16
  }
17
-
18
-
19
  // WooCommerce Add-on
20
- if(alm.addons.woocommerce){
21
  moveFocus(false, false, element, false, alm.isSafari);
22
  return;
23
  }
24
-
25
-
26
  // Has Total
27
- if(alm.transition_container && total > 0){
28
- if(alm.addons.paging){
29
  // Paging
30
- moveFocus(alm.init, alm.addons.preloaded, alm.listing, is_filtering, alm.isSafari);
31
-
32
- } else if(alm.addons.single_post || alm.addons.nextpage){
33
- // Single Posts OR Next Page, set `init` to false to trigger focus
34
- moveFocus(false, alm.addons.preloaded, element, is_filtering, alm.isSafari);
35
-
36
- } else {
37
- // Standard ALM
38
- moveFocus(alm.init, alm.addons.preloaded, element, is_filtering, alm.isSafari);
39
- }
40
-
41
- } else if(!alm.transition_container){
42
- // Table Layout, no transition container
43
- moveFocus(alm.init, alm.addons.preloaded, element[0], is_filtering, alm.isSafari);
44
  }
45
- }
46
  export default setFocus;
47
 
48
-
49
-
50
  /**
51
  * moveFocus
52
  * Move user focus to alm-reveal div
53
- *
54
  * @param {Boolean} init
55
  * @param {String} preloaded
56
  * @param {HTMLElement} element
57
  * @param {Boolean} is_filtering
58
  * @param {Boolean} isSafari
59
  * @since 5.1
60
- */
 
61
  let moveFocus = (init = true, preloaded = 'false', element, is_filtering = false, isSafari = false) => {
62
-
63
- if(!is_filtering){
64
- if( (init || !element) && preloaded !== 'true' ){
65
- return false; // Exit if first run
66
- }
67
- }
68
 
69
- // Check if element is an array.
70
- // If `transition_container="false"`, `element` will be an array.
71
- /*
72
  let is_array = Array.isArray(element);
73
  element = (is_array) ? element[0] : element;
74
- */
75
-
76
- // Set tabIndex and style on element
77
  element.setAttribute('tabIndex', '-1');
78
- element.style.outline = 'none';
79
-
80
-
81
- // Get Parent container
82
- // If `.alm-listing` set parent to element
83
- let parent = (!element.classList.contains('alm-listing')) ? element.parentNode : element;
84
-
85
- // Scroll Container
86
  let scrollContainer = parent.dataset.scrollContainer;
87
-
88
- // If scroll container, move it, not the window.
89
- if(scrollContainer){
90
  let container = document.querySelector(scrollContainer);
91
- if(container){
92
  //let left = container.scrollLeft;
93
  //let top = container.scrollTop;
94
  //element.focus();
95
  //container.scrollLeft = left;
96
- //container.scrollTop = top;
97
- setTimeout(function(){
98
  element.focus({ preventScroll: true });
99
- }, 50);
100
- }
101
- }
102
-
103
  // Move window
104
- else {
105
-
106
- setTimeout(function(){
107
  element.focus({ preventScroll: true });
108
  }, 50);
109
-
110
  //let x = window.scrollX;
111
  //let y = window.scrollY;
112
-
113
  // Safari fix for window movement if Y = 0
114
  //if(isSafari){
115
- //window.scrollTo(x, y);
116
- //y = (y === 0) ? 1 : y;
117
  //}
118
  //element.focus();
119
  //window.scrollTo(x, y);
120
  }
121
- }
1
  /**
2
  * setFocus
3
  * Set user focus to improve accessibility after load events
4
+ *
5
  * @param {Object} alm
6
  * @param {HTMLElement} preloaded
7
  * @param {Number} total
8
  * @param {Boolean} is_filtering
9
  * @since 5.1
10
+ */
11
+
12
  let setFocus = (alm, element = null, total = 0, is_filtering = false) => {
13
+ if (!alm_localize.a11y_focus) {
 
14
  return false;
15
  }
16
+
 
17
  // WooCommerce Add-on
18
+ if (alm.addons.woocommerce || alm.addons.elementor) {
19
  moveFocus(false, false, element, false, alm.isSafari);
20
  return;
21
  }
22
+
 
23
  // Has Total
24
+ if (alm.transition_container && total > 0) {
25
+ if (alm.addons.paging) {
26
  // Paging
27
+ moveFocus(alm.init, alm.addons.preloaded, alm.listing, is_filtering, alm.isSafari);
28
+ } else if (alm.addons.single_post || alm.addons.nextpage) {
29
+ // Single Posts OR Next Page, set `init` to false to trigger focus
30
+ moveFocus(false, alm.addons.preloaded, element, is_filtering, alm.isSafari);
31
+ } else {
32
+ // Standard ALM
33
+ moveFocus(alm.init, alm.addons.preloaded, element, is_filtering, alm.isSafari);
34
+ }
35
+ } else if (!alm.transition_container) {
36
+ // Table Layout, no transition container
37
+ moveFocus(alm.init, alm.addons.preloaded, element[0], is_filtering, alm.isSafari);
 
 
 
38
  }
39
+ };
40
  export default setFocus;
41
 
 
 
42
  /**
43
  * moveFocus
44
  * Move user focus to alm-reveal div
45
+ *
46
  * @param {Boolean} init
47
  * @param {String} preloaded
48
  * @param {HTMLElement} element
49
  * @param {Boolean} is_filtering
50
  * @param {Boolean} isSafari
51
  * @since 5.1
52
+ */
53
+
54
  let moveFocus = (init = true, preloaded = 'false', element, is_filtering = false, isSafari = false) => {
55
+ if (!is_filtering) {
56
+ if ((init || !element) && preloaded !== 'true') {
57
+ return false; // Exit if first run
58
+ }
59
+ }
 
60
 
61
+ // Check if element is an array.
62
+ // If `transition_container="false"`, `element` will be an array.
63
+ /*
64
  let is_array = Array.isArray(element);
65
  element = (is_array) ? element[0] : element;
66
+ */
67
+
68
+ // Set tabIndex and style on element
69
  element.setAttribute('tabIndex', '-1');
70
+ element.style.outline = 'none';
71
+
72
+ // Get Parent container
73
+ // If `.alm-listing` set parent to element
74
+ let parent = !element.classList.contains('alm-listing') ? element.parentNode : element;
75
+
76
+ // Scroll Container
 
77
  let scrollContainer = parent.dataset.scrollContainer;
78
+
79
+ // If scroll container, move it, not the window.
80
+ if (scrollContainer) {
81
  let container = document.querySelector(scrollContainer);
82
+ if (container) {
83
  //let left = container.scrollLeft;
84
  //let top = container.scrollTop;
85
  //element.focus();
86
  //container.scrollLeft = left;
87
+ //container.scrollTop = top;
88
+ setTimeout(function () {
89
  element.focus({ preventScroll: true });
90
+ }, 50);
91
+ }
92
+ }
93
+
94
  // Move window
95
+ else {
96
+ setTimeout(function () {
 
97
  element.focus({ preventScroll: true });
98
  }, 50);
99
+
100
  //let x = window.scrollX;
101
  //let y = window.scrollY;
102
+
103
  // Safari fix for window movement if Y = 0
104
  //if(isSafari){
105
+ //window.scrollTo(x, y);
106
+ //y = (y === 0) ? 1 : y;
107
  //}
108
  //element.focus();
109
  //window.scrollTo(x, y);
110
  }
111
+ };
core/src/scss/_listing.scss CHANGED
@@ -1,12 +1,15 @@
 
 
 
1
 
2
  /**
3
  * Generic alm-listing Styles
4
  * @since 1.0.0
5
  */
6
- .alm-listing{
7
- .alm-reveal{
8
  outline: none;
9
- &:after{
10
  display: table;
11
  clear: both;
12
  height: 0;
@@ -14,55 +17,76 @@
14
  content: '';
15
  }
16
  }
17
- }
18
-
19
- .alm-listing{
20
  margin: 0;
21
  padding: 0;
22
  .alm-reveal > li,
23
  .alm-paging-content > li,
24
- > li{
25
- background: none;
26
- margin: 0 0 30px;
27
- padding: 0 0 0 170px;
28
  position: relative;
29
- list-style: none;
30
- &.no-img{
31
- padding: 0;
32
- }
33
- p{
34
- margin: 0;
35
- &.entry-meta{
36
- margin: 0 0 5px;
37
- opacity: 0.75;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  }
39
- }
40
- h3{
41
- margin: 0 0 10px;
42
  }
43
- img{
44
- position: absolute;
45
- left: 0;
46
- top: 0;
47
- border-radius: 2px;
48
  }
49
  }
50
- &.products{
51
- li.product{
52
  padding-left: inherit;
53
- img{
54
  position: static;
55
  border-radius: inherit;
56
  }
57
  }
58
  }
59
- &.stylefree{
60
  .alm-reveal > li,
61
  .alm-paging-content > li,
62
- > li{
63
  padding: inherit;
64
  margin: inherit;
65
- img{
66
  padding: inherit;
67
  margin: inherit;
68
  position: static;
@@ -73,35 +97,65 @@
73
  }
74
 
75
  // Right to left (rtl)
76
- .alm-listing.rtl{
77
- .alm-reveal > li,
78
- .alm-paging-content > li{
79
- padding: 0 170px 0 0;
80
- text-align: right;
81
- img{
82
  left: auto;
83
  right: 0;
84
  }
85
  }
86
- &.products{
87
- li.product{
88
  padding-right: inherit;
89
  }
90
  }
91
  }
92
 
93
-
94
  // Masonry default styles
95
- .alm-masonry{
96
  display: block;
97
  overflow: hidden;
98
  clear: both;
99
  }
100
 
101
-
102
  // Placeholder default styles
103
- .alm-placeholder{
104
  opacity: 0;
105
  transition: opacity 0.2s ease;
106
  display: none;
107
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $sm: 480px;
2
+ $md: 768px;
3
+ $lg: 1024px;
4
 
5
  /**
6
  * Generic alm-listing Styles
7
  * @since 1.0.0
8
  */
9
+ .alm-listing {
10
+ .alm-reveal {
11
  outline: none;
12
+ &:after {
13
  display: table;
14
  clear: both;
15
  height: 0;
17
  content: '';
18
  }
19
  }
20
+ }
21
+
22
+ .alm-listing {
23
  margin: 0;
24
  padding: 0;
25
  .alm-reveal > li,
26
  .alm-paging-content > li,
27
+ > li {
 
 
 
28
  position: relative;
29
+ &.alm-item {
30
+ background: none;
31
+ margin: 0 0 30px;
32
+ padding: 0 0 0 80px;
33
+ position: relative;
34
+ list-style: none;
35
+ @media screen and (min-width: $sm) {
36
+ padding: 0 0 0 100px;
37
+ }
38
+ @media screen and (min-width: $md) {
39
+ padding: 0 0 0 135px;
40
+ }
41
+ @media screen and (min-width: $lg) {
42
+ padding: 0 0 0 160px;
43
+ }
44
+ h3 {
45
+ margin: 0;
46
+ }
47
+ p {
48
+ margin: 10px 0 0;
49
+ &.entry-meta {
50
+ opacity: 0.75;
51
+ }
52
+ }
53
+ img {
54
+ position: absolute;
55
+ left: 0;
56
+ top: 0;
57
+ border-radius: 2px;
58
+ max-width: 65px;
59
+ @media screen and (min-width: $sm) {
60
+ max-width: 85px;
61
+ }
62
+ @media screen and (min-width: $md) {
63
+ max-width: 115px;
64
+ }
65
+ @media screen and (min-width: $lg) {
66
+ max-width: 140px;
67
+ }
68
  }
 
 
 
69
  }
70
+ &.no-img {
71
+ padding: 0;
 
 
 
72
  }
73
  }
74
+ &.products {
75
+ li.product {
76
  padding-left: inherit;
77
+ img {
78
  position: static;
79
  border-radius: inherit;
80
  }
81
  }
82
  }
83
+ &.stylefree {
84
  .alm-reveal > li,
85
  .alm-paging-content > li,
86
+ > li {
87
  padding: inherit;
88
  margin: inherit;
89
+ img {
90
  padding: inherit;
91
  margin: inherit;
92
  position: static;
97
  }
98
 
99
  // Right to left (rtl)
100
+ .alm-listing.rtl {
101
+ .alm-reveal > li,
102
+ .alm-paging-content > li {
103
+ padding: 0 170px 0 0;
104
+ text-align: right;
105
+ img {
106
  left: auto;
107
  right: 0;
108
  }
109
  }
110
+ &.products {
111
+ li.product {
112
  padding-right: inherit;
113
  }
114
  }
115
  }
116
 
 
117
  // Masonry default styles
118
+ .alm-masonry {
119
  display: block;
120
  overflow: hidden;
121
  clear: both;
122
  }
123
 
 
124
  // Placeholder default styles
125
+ .alm-placeholder {
126
  opacity: 0;
127
  transition: opacity 0.2s ease;
128
  display: none;
129
+ }
130
+
131
+ // Horizontal Layout
132
+ .ajax-load-more-wrap {
133
+ &.alm-horizontal {
134
+ display: flex;
135
+ flex-wrap: nowrap;
136
+ width: 100%;
137
+ .alm-listing,
138
+ .alm-listing .alm-reveal {
139
+ display: flex;
140
+ flex-wrap: nowrap;
141
+ flex-direction: row;
142
+ > li.alm-item {
143
+ padding: 0;
144
+ text-align: center;
145
+ margin: 0 2px;
146
+ padding: 15px;
147
+ height: auto;
148
+ background-color: #fff;
149
+ border-radius: 3px;
150
+ img {
151
+ position: static;
152
+ border-radius: 100%;
153
+ max-width: none;
154
+ }
155
+ }
156
+ }
157
+ .alm-listing .alm-reveal:after {
158
+ display: none;
159
+ }
160
+ }
161
+ }
core/src/scss/_loaders.scss CHANGED
@@ -68,8 +68,7 @@
68
 
69
  /* Loading :before */
70
  &.loading:before {
71
- background: #fff url('../../img/ajax-loader.gif') no-repeat center
72
- center;
73
  width: 30px;
74
  height: 31px;
75
  margin: 6px;
@@ -250,3 +249,19 @@
250
  background-image: url('../../img/spinner-chasing-arrows.gif');
251
  }
252
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
 
69
  /* Loading :before */
70
  &.loading:before {
71
+ background: #fff url('../../img/ajax-loader.gif') no-repeat center center;
 
72
  width: 30px;
73
  height: 31px;
74
  margin: 6px;
249
  background-image: url('../../img/spinner-chasing-arrows.gif');
250
  }
251
  }
252
+
253
+ /// Horizontal
254
+ .ajax-load-more-wrap.alm-horizontal {
255
+ .alm-btn-wrap {
256
+ display: flex;
257
+ align-items: center;
258
+ padding: 0;
259
+ margin: 0;
260
+ button {
261
+ margin: 0;
262
+ &.done {
263
+ display: none;
264
+ }
265
+ }
266
+ }
267
+ }
lang/ajax-load-more.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Ajax Load More\n"
5
- "POT-Creation-Date: 2020-05-01 12:34-0400\n"
6
  "PO-Revision-Date: 2018-06-20 13:05-0500\n"
7
  "Last-Translator: Darren Cooney <darren@connekthq.com>\n"
8
  "Language-Team: \n"
@@ -10,13 +10,14 @@ msgstr ""
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Generator: Poedit 2.2.4\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
  "X-Poedit-KeywordsList: __;_e\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
  "X-Poedit-SearchPathExcluded-0: core/src\n"
19
  "X-Poedit-SearchPathExcluded-1: admin/src\n"
 
20
 
21
  #: admin/admin.php:75
22
  msgid "Looks like your subscription has expired."
@@ -56,7 +57,7 @@ msgid ""
56
  "support. Need a license key? %sPurchase one now%s."
57
  msgstr ""
58
 
59
- #: admin/admin.php:191 admin/admin.php:1356
60
  #: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:170
61
  #: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:241
62
  msgid "Error - unable to verify nonce, please try again."
@@ -67,7 +68,7 @@ msgid "Transient set successfully"
67
  msgstr ""
68
 
69
  #: admin/admin.php:312 admin/admin.php:477 admin/admin.php:1218
70
- #: admin/admin.php:1263 admin/admin.php:1313
71
  msgid "You don't belong here."
72
  msgstr ""
73
 
@@ -87,7 +88,7 @@ msgid ""
87
  "php?page=ajax-load-more-licenses\">Licenses</a> section and input your keys."
88
  msgstr ""
89
 
90
- #: admin/admin.php:512
91
  msgid "Ajax Load More"
92
  msgstr ""
93
 
@@ -182,7 +183,7 @@ msgid ""
182
  "to read and write files within the /ajax-load-more/core/repeater directory."
183
  msgstr ""
184
 
185
- #: admin/admin.php:680 admin/admin.php:681 ajax-load-more.php:309
186
  msgid "Settings"
187
  msgstr ""
188
 
@@ -237,7 +238,7 @@ msgid "Filters"
237
  msgstr ""
238
 
239
  #: admin/admin.php:819 admin/admin.php:820
240
- #: admin/shortcode-builder/shortcode-builder.php:1336 core/functions.php:245
241
  msgid "WooCommerce"
242
  msgstr ""
243
 
@@ -261,93 +262,93 @@ msgstr ""
261
  msgid "Something went wrong and the data could not be saved."
262
  msgstr ""
263
 
264
- #: admin/admin.php:1421 admin/shortcode-builder/shortcode-builder.php:123
265
  msgid "Container Type"
266
  msgstr ""
267
 
268
- #: admin/admin.php:1429 admin/shortcode-builder/shortcode-builder.php:153
269
  msgid "Container Classes"
270
  msgstr ""
271
 
272
- #: admin/admin.php:1437
273
  msgid "Disable CSS"
274
  msgstr ""
275
 
276
- #: admin/admin.php:1445 admin/shortcode-builder/shortcode-builder.php:81
277
  msgid "Button/Loading Style"
278
  msgstr ""
279
 
280
- #: admin/admin.php:1453
281
  msgid "Load CSS Inline"
282
  msgstr ""
283
 
284
- #: admin/admin.php:1461
285
  msgid "Button Classes"
286
  msgstr ""
287
 
288
- #: admin/admin.php:1479
289
  msgid "Legacy Callbacks"
290
  msgstr ""
291
 
292
- #: admin/admin.php:1497
293
  msgid "Delete on Uninstall"
294
  msgstr ""
295
 
296
- #: admin/admin.php:1505
297
  msgid "Dynamic Content"
298
  msgstr ""
299
 
300
- #: admin/admin.php:1513
301
  msgid "Editor Button"
302
  msgstr ""
303
 
304
- #: admin/admin.php:1521
305
  msgid "Error Notices"
306
  msgstr ""
307
 
308
- #: admin/admin.php:1605
309
  msgid ""
310
  "Customize the user experience of Ajax Load More by updating the fields below."
311
  msgstr ""
312
 
313
- #: admin/admin.php:1618
314
  msgid "The following settings affect the WordPress admin area only."
315
  msgstr ""
316
 
317
- #: admin/admin.php:1649
318
  msgid "I want to use my own CSS styles."
319
  msgstr ""
320
 
321
- #: admin/admin.php:1649
322
  msgid "View Ajax Load More CSS"
323
  msgstr ""
324
 
325
- #: admin/admin.php:1669
326
  msgid "Hide shortcode button in WYSIWYG editor."
327
  msgstr ""
328
 
329
- #: admin/admin.php:1690
330
  msgid ""
331
  "Display error messaging regarding repeater template updates in the browser "
332
  "console."
333
  msgstr ""
334
 
335
- #: admin/admin.php:1711
336
  msgid ""
337
  "Disable dynamic population of categories, tags and authors in the Shortcode "
338
  "Builder.<span style=\"display:block\">Recommended if you have a large number "
339
  "of categories, tags and/or authors."
340
  msgstr ""
341
 
342
- #: admin/admin.php:1732 admin/admin.php:1735
343
  msgid "Ajax Posts Here"
344
  msgstr ""
345
 
346
- #: admin/admin.php:1737
347
  msgid "You can modify the container type when building a shortcode."
348
  msgstr ""
349
 
350
- #: admin/admin.php:1754
351
  msgid ""
352
  "Add custom classes to the <i>.alm-listing</i> container - classes are "
353
  "applied globally and will appear with every instance of Ajax Load More. "
@@ -355,67 +356,67 @@ msgid ""
355
  "shortcode.</span>"
356
  msgstr ""
357
 
358
- #: admin/admin.php:1819
359
  msgid ""
360
  "Select an Ajax loading style - you can choose between a <strong>Button</"
361
  "strong> or <strong>Infinite Scroll</strong>"
362
  msgstr ""
363
 
364
- #: admin/admin.php:1824 admin/shortcode-builder/shortcode-builder.php:87
365
  msgid "Button Style (Dark)"
366
  msgstr ""
367
 
368
- #: admin/admin.php:1831 admin/shortcode-builder/shortcode-builder.php:94
369
  msgid "Button Style (Light)"
370
  msgstr ""
371
 
372
- #: admin/admin.php:1836 admin/shortcode-builder/shortcode-builder.php:98
373
  msgid "Infinite Scroll (No Button)"
374
  msgstr ""
375
 
376
- #: admin/admin.php:1853
377
  msgid "Click to Preview"
378
  msgstr ""
379
 
380
- #: admin/admin.php:1854 admin/shortcode-builder/shortcode-builder.php:112
381
  #: admin/shortcode-builder/shortcode-builder.php:350
382
- #: core/classes/class.alm-shortcode.php:216
383
  msgid "Older Posts"
384
  msgstr ""
385
 
386
- #: admin/admin.php:1877
387
  msgid "Improve site performance by loading Ajax Load More CSS inline."
388
  msgstr ""
389
 
390
- #: admin/admin.php:1897
391
  msgid "Add classes to your <strong>Load More</strong> button."
392
  msgstr ""
393
 
394
- #: admin/admin.php:1941
395
  msgid ""
396
  "On initial page load, move the user's browser window to the top of the "
397
  "screen."
398
  msgstr ""
399
 
400
- #: admin/admin.php:1942
401
  msgid "This may help prevent the loading of unnecessary posts."
402
  msgstr ""
403
 
404
- #: admin/admin.php:1965
405
  msgid "Disable REST API."
406
  msgstr ""
407
 
408
- #: admin/admin.php:1966
409
  msgid ""
410
  "Use `admin-ajax.php` in favour of the WordPress REST API for all Ajax "
411
  "requests."
412
  msgstr ""
413
 
414
- #: admin/admin.php:1989
415
  msgid "Load legacy JavaScript callback functions."
416
  msgstr ""
417
 
418
- #: admin/admin.php:1990
419
  msgid ""
420
  "Ajax Load More <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/"
421
  "callback-functions/\" target=\"_blank\">callback functions</a> were updated "
@@ -423,13 +424,13 @@ msgid ""
423
  "library to maintain compatibility."
424
  msgstr ""
425
 
426
- #: admin/admin.php:2013
427
  msgid ""
428
  "Check this box if Ajax Load More should remove all of its data* when the "
429
  "plugin is deleted."
430
  msgstr ""
431
 
432
- #: admin/admin.php:2014
433
  msgid "* Database Tables, Options and Repeater Templates"
434
  msgstr ""
435
 
@@ -754,12 +755,13 @@ msgstr ""
754
  #: admin/shortcode-builder/shortcode-builder.php:214
755
  #: admin/shortcode-builder/shortcode-builder.php:237
756
  #: admin/shortcode-builder/shortcode-builder.php:280
757
- #: admin/shortcode-builder/shortcode-builder.php:385
758
- #: admin/shortcode-builder/shortcode-builder.php:457
759
- #: admin/shortcode-builder/shortcode-builder.php:592
760
- #: admin/shortcode-builder/shortcode-builder.php:668
761
- #: admin/shortcode-builder/shortcode-builder.php:1319
762
- #: admin/shortcode-builder/shortcode-builder.php:1350
 
763
  msgid "True"
764
  msgstr ""
765
 
@@ -792,12 +794,13 @@ msgstr ""
792
  #: admin/shortcode-builder/shortcode-builder.php:218
793
  #: admin/shortcode-builder/shortcode-builder.php:241
794
  #: admin/shortcode-builder/shortcode-builder.php:284
795
- #: admin/shortcode-builder/shortcode-builder.php:389
796
- #: admin/shortcode-builder/shortcode-builder.php:461
797
- #: admin/shortcode-builder/shortcode-builder.php:596
798
- #: admin/shortcode-builder/shortcode-builder.php:672
799
- #: admin/shortcode-builder/shortcode-builder.php:1323
800
- #: admin/shortcode-builder/shortcode-builder.php:1354
 
801
  msgid "False"
802
  msgstr ""
803
 
@@ -975,8 +978,8 @@ msgid ""
975
  msgstr ""
976
 
977
  #: admin/shortcode-builder/components/comments.php:105
978
- #: admin/shortcode-builder/shortcode-builder.php:487
979
- #: admin/shortcode-builder/shortcode-builder.php:573
980
  msgid "None"
981
  msgstr ""
982
 
@@ -1017,9 +1020,9 @@ msgstr ""
1017
  #: admin/shortcode-builder/components/nextpage.php:108
1018
  #: admin/shortcode-builder/components/single-post.php:58
1019
  #: admin/shortcode-builder/components/single-post.php:259
1020
- #: admin/shortcode-builder/shortcode-builder.php:605
1021
- #: admin/shortcode-builder/shortcode-builder.php:1312
1022
- #: admin/shortcode-builder/shortcode-builder.php:1342
1023
  msgid "View Docs"
1024
  msgstr ""
1025
 
@@ -1247,7 +1250,7 @@ msgstr ""
1247
 
1248
  #: admin/shortcode-builder/components/nextpage.php:90
1249
  #: admin/shortcode-builder/components/paging.php:62
1250
- #: admin/shortcode-builder/shortcode-builder.php:377
1251
  msgid "Enable Scrolling"
1252
  msgstr ""
1253
 
@@ -1425,13 +1428,13 @@ msgstr ""
1425
  #: admin/shortcode-builder/shortcode-builder.php:193
1426
  #: admin/shortcode-builder/shortcode-builder.php:207
1427
  #: admin/shortcode-builder/shortcode-builder.php:230
1428
- #: admin/shortcode-builder/shortcode-builder.php:661
1429
- #: admin/shortcode-builder/shortcode-builder.php:847
1430
- #: admin/shortcode-builder/shortcode-builder.php:941
1431
- #: admin/shortcode-builder/shortcode-builder.php:1084
1432
- #: admin/shortcode-builder/shortcode-builder.php:1122
1433
- #: admin/shortcode-builder/shortcode-builder.php:1151
1434
- #: admin/shortcode-builder/shortcode-builder.php:1182
1435
  msgid "View Example"
1436
  msgstr ""
1437
 
@@ -1518,7 +1521,7 @@ msgstr ""
1518
 
1519
  #: admin/shortcode-builder/components/single-post.php:89
1520
  #: admin/shortcode-builder/components/term-query.php:39
1521
- #: admin/shortcode-builder/shortcode-builder.php:1024
1522
  msgid "Taxonomy"
1523
  msgstr ""
1524
 
@@ -1542,13 +1545,13 @@ msgstr ""
1542
 
1543
  #: admin/shortcode-builder/components/single-post.php:104
1544
  #: admin/shortcode-builder/components/term-query.php:45
1545
- #: admin/shortcode-builder/shortcode-builder.php:840
1546
  msgid "Category"
1547
  msgstr ""
1548
 
1549
  #: admin/shortcode-builder/components/single-post.php:105
1550
  #: admin/shortcode-builder/components/term-query.php:46
1551
- #: admin/shortcode-builder/shortcode-builder.php:933
1552
  msgid "Tag"
1553
  msgstr ""
1554
 
@@ -1621,7 +1624,7 @@ msgid "Enter the hex color values of the reading progress bar"
1621
  msgstr ""
1622
 
1623
  #: admin/shortcode-builder/components/single-post.php:223
1624
- #: admin/shortcode-builder/shortcode-builder.php:688
1625
  msgid "Default:"
1626
  msgstr ""
1627
 
@@ -1697,9 +1700,9 @@ msgid "All Roles"
1697
  msgstr ""
1698
 
1699
  #: admin/shortcode-builder/components/users.php:56
1700
- #: admin/shortcode-builder/shortcode-builder.php:844
1701
- #: admin/shortcode-builder/shortcode-builder.php:937
1702
- #: admin/shortcode-builder/shortcode-builder.php:1169
1703
  msgid "Include"
1704
  msgstr ""
1705
 
@@ -1708,9 +1711,9 @@ msgid "A comma separated list of users to be included by ID"
1708
  msgstr ""
1709
 
1710
  #: admin/shortcode-builder/components/users.php:70
1711
- #: admin/shortcode-builder/shortcode-builder.php:891
1712
- #: admin/shortcode-builder/shortcode-builder.php:986
1713
- #: admin/shortcode-builder/shortcode-builder.php:1180
1714
  msgid "Exclude"
1715
  msgstr ""
1716
 
@@ -1735,12 +1738,12 @@ msgid "Sort users by Order and Orderby parameters"
1735
  msgstr ""
1736
 
1737
  #: admin/shortcode-builder/components/users.php:102
1738
- #: admin/shortcode-builder/shortcode-builder.php:1225
1739
  msgid "Order"
1740
  msgstr ""
1741
 
1742
  #: admin/shortcode-builder/components/users.php:109
1743
- #: admin/shortcode-builder/shortcode-builder.php:1232
1744
  msgid "Order By"
1745
  msgstr ""
1746
 
@@ -1793,7 +1796,7 @@ msgid "Taxonomy Operator:"
1793
  msgstr ""
1794
 
1795
  #: admin/shortcode-builder/includes/tax-query-options.php:48
1796
- #: admin/shortcode-builder/shortcode-builder.php:1059
1797
  msgid "Relation:"
1798
  msgstr ""
1799
 
@@ -1881,7 +1884,7 @@ msgstr ""
1881
 
1882
  #: admin/shortcode-builder/shortcode-builder.php:170
1883
  msgid ""
1884
- "Don't load any Ajax content until the user clicks or interacts with the "
1885
  "<em>Load More</em> button."
1886
  msgstr ""
1887
 
@@ -1991,7 +1994,7 @@ msgid "Loading Label"
1991
  msgstr ""
1992
 
1993
  #: admin/shortcode-builder/shortcode-builder.php:357
1994
- msgid "Leave field empty to not update text while loading content"
1995
  msgstr ""
1996
 
1997
  #: admin/shortcode-builder/shortcode-builder.php:358
@@ -2003,496 +2006,520 @@ msgstr ""
2003
  msgid "Loading Posts..."
2004
  msgstr ""
2005
 
2006
- #: admin/shortcode-builder/shortcode-builder.php:373
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2007
  msgid "Scrolling"
2008
  msgstr ""
2009
 
2010
- #: admin/shortcode-builder/shortcode-builder.php:378
2011
  msgid "Load more posts as the user scrolls the page."
2012
  msgstr ""
2013
 
2014
- #: admin/shortcode-builder/shortcode-builder.php:404
2015
  msgid "Scroll Distance"
2016
  msgstr ""
2017
 
2018
- #: admin/shortcode-builder/shortcode-builder.php:404
2019
  msgid ""
2020
  "Distance is based on the position of the loading button from the bottom of "
2021
  "the screen"
2022
  msgstr ""
2023
 
2024
- #: admin/shortcode-builder/shortcode-builder.php:405
2025
  msgid ""
2026
  "The distance from the bottom of the screen to trigger loading of posts. "
2027
  "(Default = 100)"
2028
  msgstr ""
2029
 
2030
- #: admin/shortcode-builder/shortcode-builder.php:406
2031
  msgid "Pro-tip"
2032
  msgstr ""
2033
 
2034
- #: admin/shortcode-builder/shortcode-builder.php:406
2035
  msgid ""
2036
  "Use a negative number (-200) to trigger a post load before the button is in "
2037
  "view"
2038
  msgstr ""
2039
 
2040
- #: admin/shortcode-builder/shortcode-builder.php:424
2041
- msgid "Scroll Container"
2042
  msgstr ""
2043
 
2044
- #: admin/shortcode-builder/shortcode-builder.php:424
2045
- msgid "Confine Ajax Load More scrolling to a parent container."
2046
  msgstr ""
2047
 
2048
- #: admin/shortcode-builder/shortcode-builder.php:425
2049
- msgid "Enter the ID or classname of the parent container"
2050
  msgstr ""
2051
 
2052
- #: admin/shortcode-builder/shortcode-builder.php:437
2053
- msgid "Maximum Pages"
2054
  msgstr ""
2055
 
2056
- #: admin/shortcode-builder/shortcode-builder.php:437
2057
- msgid "If using an Infinite Scroll button style you should set this to 0"
 
 
2058
  msgstr ""
2059
 
2060
- #: admin/shortcode-builder/shortcode-builder.php:438
2061
- msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
2062
  msgstr ""
2063
 
2064
- #: admin/shortcode-builder/shortcode-builder.php:450
2065
- msgid "Pause Override"
 
 
 
 
2066
  msgstr ""
2067
 
2068
- #: admin/shortcode-builder/shortcode-builder.php:451
2069
  msgid ""
2070
- "Allow scrolling to override the Pause parameter and trigger the loading of "
2071
- "posts on scroll."
2072
  msgstr ""
2073
 
2074
- #: admin/shortcode-builder/shortcode-builder.php:474
2075
  msgid "Transition"
2076
  msgstr ""
2077
 
2078
- #: admin/shortcode-builder/shortcode-builder.php:479
2079
  msgid "Type"
2080
  msgstr ""
2081
 
2082
- #: admin/shortcode-builder/shortcode-builder.php:480
2083
  msgid "Select a loading transition style."
2084
  msgstr ""
2085
 
2086
- #: admin/shortcode-builder/shortcode-builder.php:485
2087
  msgid "Fade In"
2088
  msgstr ""
2089
 
2090
- #: admin/shortcode-builder/shortcode-builder.php:486
2091
  msgid "Masonry"
2092
  msgstr ""
2093
 
2094
- #: admin/shortcode-builder/shortcode-builder.php:500
2095
  msgid "Masonry Options"
2096
  msgstr ""
2097
 
2098
- #: admin/shortcode-builder/shortcode-builder.php:500
2099
  msgid "Ajax Load More does not support all available Masonry options"
2100
  msgstr ""
2101
 
2102
- #: admin/shortcode-builder/shortcode-builder.php:501
2103
  msgid ""
2104
  "The following Masonry <a href=\"https://masonry.desandro.com/options.html\" "
2105
  "target=\"_blank\">options</a> are supported by Ajax Load More."
2106
  msgstr ""
2107
 
2108
- #: admin/shortcode-builder/shortcode-builder.php:507
2109
  msgid "Item Selector"
2110
  msgstr ""
2111
 
2112
- #: admin/shortcode-builder/shortcode-builder.php:507
2113
  msgid ""
2114
  "Item Selector is required for Masonry to target each element loaded with "
2115
  "Ajax."
2116
  msgstr ""
2117
 
2118
- #: admin/shortcode-builder/shortcode-builder.php:508
2119
  msgid "Enter the target classname of each masonry item."
2120
  msgstr ""
2121
 
2122
- #: admin/shortcode-builder/shortcode-builder.php:522
2123
  msgid "Column Width"
2124
  msgstr ""
2125
 
2126
- #: admin/shortcode-builder/shortcode-builder.php:522
2127
  msgid ""
2128
  "If columnWidth is not set, Masonry will use the outer width of the first "
2129
  "Item Selector."
2130
  msgstr ""
2131
 
2132
- #: admin/shortcode-builder/shortcode-builder.php:523
2133
  msgid ""
2134
  "Enter the <a href=\"https://masonry.desandro.com/options.html#columnwidth\" "
2135
  "target=\"_blank\">columnWidth</a> of the masonry items."
2136
  msgstr ""
2137
 
2138
- #: admin/shortcode-builder/shortcode-builder.php:536
2139
  msgid "Animation Type"
2140
  msgstr ""
2141
 
2142
- #: admin/shortcode-builder/shortcode-builder.php:536
2143
  msgid "All Masonry animations include a fade-in effect as items are loaded."
2144
  msgstr ""
2145
 
2146
- #: admin/shortcode-builder/shortcode-builder.php:537
2147
  msgid "Select a loading transition for Masonry items."
2148
  msgstr ""
2149
 
2150
- #: admin/shortcode-builder/shortcode-builder.php:545
2151
  msgid "Default (Zoom)"
2152
  msgstr ""
2153
 
2154
- #: admin/shortcode-builder/shortcode-builder.php:546
2155
  msgid "Items scale up from 50% to 100% size on load."
2156
  msgstr ""
2157
 
2158
- #: admin/shortcode-builder/shortcode-builder.php:552
2159
  msgid "Zoom Out"
2160
  msgstr ""
2161
 
2162
- #: admin/shortcode-builder/shortcode-builder.php:553
2163
  msgid "Items scale down from 125% to 100% size on load."
2164
  msgstr ""
2165
 
2166
- #: admin/shortcode-builder/shortcode-builder.php:559
2167
  msgid "Slide Up"
2168
  msgstr ""
2169
 
2170
- #: admin/shortcode-builder/shortcode-builder.php:560
2171
  msgid "Items animate up as they are loaded into view."
2172
  msgstr ""
2173
 
2174
- #: admin/shortcode-builder/shortcode-builder.php:566
2175
  msgid "Slide Down"
2176
  msgstr ""
2177
 
2178
- #: admin/shortcode-builder/shortcode-builder.php:567
2179
  msgid "Items animate down when loaded into view."
2180
  msgstr ""
2181
 
2182
- #: admin/shortcode-builder/shortcode-builder.php:583
2183
  msgid "Horizontal Order"
2184
  msgstr ""
2185
 
2186
- #: admin/shortcode-builder/shortcode-builder.php:584
2187
  msgid "Lays out items to maintain left-to-right order."
2188
  msgstr ""
2189
 
2190
- #: admin/shortcode-builder/shortcode-builder.php:604
2191
  msgid ""
2192
  "Don't see your favorite Masonry option listed? You can always add your own!"
2193
  msgstr ""
2194
 
2195
- #: admin/shortcode-builder/shortcode-builder.php:619
2196
  msgid "Transition Container Classes"
2197
  msgstr ""
2198
 
2199
- #: admin/shortcode-builder/shortcode-builder.php:619
2200
  msgid "This setting is not available with the Single Post or Next Page add-ons"
2201
  msgstr ""
2202
 
2203
- #: admin/shortcode-builder/shortcode-builder.php:620
2204
  msgid "Add custom classes to the <span>.alm-reveal</span> loading container"
2205
  msgstr ""
2206
 
2207
- #: admin/shortcode-builder/shortcode-builder.php:632
2208
  msgid "Transition Container"
2209
  msgstr ""
2210
 
2211
- #: admin/shortcode-builder/shortcode-builder.php:632
2212
  msgid ""
2213
  "Removing the transition container may have undesired results and is not "
2214
  "recommended"
2215
  msgstr ""
2216
 
2217
- #: admin/shortcode-builder/shortcode-builder.php:633
2218
  msgid ""
2219
  "Remove the <span>.alm-reveal</span> loading container from Ajax Load More"
2220
  msgstr ""
2221
 
2222
- #: admin/shortcode-builder/shortcode-builder.php:640
2223
  msgid "Remove Container"
2224
  msgstr ""
2225
 
2226
- #: admin/shortcode-builder/shortcode-builder.php:656
2227
  msgid "Progress Bar"
2228
  msgstr ""
2229
 
2230
- #: admin/shortcode-builder/shortcode-builder.php:660
2231
  msgid ""
2232
  "Display progress bar indicator at the top of the window while loading Ajax "
2233
  "content."
2234
  msgstr ""
2235
 
2236
- #: admin/shortcode-builder/shortcode-builder.php:686
2237
  msgid "Color"
2238
  msgstr ""
2239
 
2240
- #: admin/shortcode-builder/shortcode-builder.php:687
2241
  msgid "Enter the hex color of the progress bar"
2242
  msgstr ""
2243
 
2244
- #: admin/shortcode-builder/shortcode-builder.php:712
2245
  msgid "Query Parameters"
2246
  msgstr ""
2247
 
2248
- #: admin/shortcode-builder/shortcode-builder.php:715
2249
  msgid ""
2250
  "Query Parameters allow you build a custom <b>WP_Query</b> based on Ajax Load "
2251
  "More shortcode values."
2252
  msgstr ""
2253
 
2254
- #: admin/shortcode-builder/shortcode-builder.php:715
2255
  msgid ""
2256
  "When using Ajax Load More add-ons or extensions not all Query Parameters "
2257
  "will be available in the query."
2258
  msgstr ""
2259
 
2260
- #: admin/shortcode-builder/shortcode-builder.php:719
2261
  msgid "Posts Per Page"
2262
  msgstr ""
2263
 
2264
- #: admin/shortcode-builder/shortcode-builder.php:723
2265
  msgid "Select the number of posts to load with each Ajax request."
2266
  msgstr ""
2267
 
2268
- #: admin/shortcode-builder/shortcode-builder.php:743
2269
  msgid "Post Type"
2270
  msgstr ""
2271
 
2272
- #: admin/shortcode-builder/shortcode-builder.php:748
2273
  msgid "Select the Post Types to include in this Ajax Load More query."
2274
  msgstr ""
2275
 
2276
- #: admin/shortcode-builder/shortcode-builder.php:762
2277
  msgid "Any"
2278
  msgstr ""
2279
 
2280
- #: admin/shortcode-builder/shortcode-builder.php:773
2281
  msgid "Sticky Posts"
2282
  msgstr ""
2283
 
2284
- #: admin/shortcode-builder/shortcode-builder.php:773
2285
  msgid "Sticky posts are only available for Posts"
2286
  msgstr ""
2287
 
2288
- #: admin/shortcode-builder/shortcode-builder.php:774
2289
  msgid ""
2290
  "Preserve the ordering of sticky posts by having them appear first in the "
2291
  "Ajax listing."
2292
  msgstr ""
2293
 
2294
- #: admin/shortcode-builder/shortcode-builder.php:781
2295
  msgid "Enable Sticky Posts"
2296
  msgstr ""
2297
 
2298
- #: admin/shortcode-builder/shortcode-builder.php:804
2299
  msgid "Post Format"
2300
  msgstr ""
2301
 
2302
- #: admin/shortcode-builder/shortcode-builder.php:808
2303
  msgid ""
2304
  "Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
2305
  "\">Post Format</a> to query."
2306
  msgstr ""
2307
 
2308
- #: admin/shortcode-builder/shortcode-builder.php:811
2309
  msgid "Select Post Format"
2310
  msgstr ""
2311
 
2312
- #: admin/shortcode-builder/shortcode-builder.php:812
2313
  msgid "Standard"
2314
  msgstr ""
2315
 
2316
- #: admin/shortcode-builder/shortcode-builder.php:844
2317
  msgid "Get posts by category using a category_name or category__and query"
2318
  msgstr ""
2319
 
2320
- #: admin/shortcode-builder/shortcode-builder.php:845
2321
  msgid "Comma separated list of categories to include by"
2322
  msgstr ""
2323
 
2324
- #: admin/shortcode-builder/shortcode-builder.php:845
2325
- #: admin/shortcode-builder/shortcode-builder.php:938
2326
  msgid "slug"
2327
  msgstr ""
2328
 
2329
- #: admin/shortcode-builder/shortcode-builder.php:881
2330
- #: admin/shortcode-builder/shortcode-builder.php:976
2331
  msgid "What's this"
2332
  msgstr ""
2333
 
2334
- #: admin/shortcode-builder/shortcode-builder.php:893
2335
  msgid "Comma separated list of categories to exclude by ID."
2336
  msgstr ""
2337
 
2338
- #: admin/shortcode-builder/shortcode-builder.php:937
2339
  msgid "Get posts by tags using a tag or tag__and query"
2340
  msgstr ""
2341
 
2342
- #: admin/shortcode-builder/shortcode-builder.php:938
2343
  msgid "Comma separated list of tags to include by"
2344
  msgstr ""
2345
 
2346
- #: admin/shortcode-builder/shortcode-builder.php:988
2347
  msgid "Comma separated list of tags to exclude by ID"
2348
  msgstr ""
2349
 
2350
- #: admin/shortcode-builder/shortcode-builder.php:1028
2351
  msgid "Select a taxonomy then select the terms and an operator."
2352
  msgstr ""
2353
 
2354
- #: admin/shortcode-builder/shortcode-builder.php:1033
2355
- #: admin/shortcode-builder/shortcode-builder.php:1069
2356
  msgid "Add Another"
2357
  msgstr ""
2358
 
2359
- #: admin/shortcode-builder/shortcode-builder.php:1044
2360
  msgid "Custom Fields (Meta_Query)"
2361
  msgstr ""
2362
 
2363
- #: admin/shortcode-builder/shortcode-builder.php:1048
2364
  msgid ""
2365
  "Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
2366
  "\" target=\"_blank\">custom field</a> by entering a custom field key, value "
2367
  "and operator."
2368
  msgstr ""
2369
 
2370
- #: admin/shortcode-builder/shortcode-builder.php:1059
2371
  msgid ""
2372
  "The logical relationship between each custom field when there is more than "
2373
  "one"
2374
  msgstr ""
2375
 
2376
- #: admin/shortcode-builder/shortcode-builder.php:1079
2377
  msgid "Date"
2378
  msgstr ""
2379
 
2380
- #: admin/shortcode-builder/shortcode-builder.php:1083
2381
  msgid "Enter a year, month(number) and day to query by date archive."
2382
  msgstr ""
2383
 
2384
- #: admin/shortcode-builder/shortcode-builder.php:1090
2385
  msgid "Year:"
2386
  msgstr ""
2387
 
2388
- #: admin/shortcode-builder/shortcode-builder.php:1094
2389
  msgid "Month:"
2390
  msgstr ""
2391
 
2392
- #: admin/shortcode-builder/shortcode-builder.php:1098
2393
  msgid "Day:"
2394
  msgstr ""
2395
 
2396
- #: admin/shortcode-builder/shortcode-builder.php:1116
2397
  msgid "Author"
2398
  msgstr ""
2399
 
2400
- #: admin/shortcode-builder/shortcode-builder.php:1120
2401
  msgid "Select an Author to query(by ID)."
2402
  msgstr ""
2403
 
2404
- #: admin/shortcode-builder/shortcode-builder.php:1145
2405
  msgid "Search"
2406
  msgstr ""
2407
 
2408
- #: admin/shortcode-builder/shortcode-builder.php:1149
2409
  msgid "Enter a search term to query."
2410
  msgstr ""
2411
 
2412
- #: admin/shortcode-builder/shortcode-builder.php:1150
2413
  msgid ""
2414
  "Search uses the default WordPress search, however Ajax Load More does offer "
2415
  "integrations with SearchWP and Relevanssi."
2416
  msgstr ""
2417
 
2418
- #: admin/shortcode-builder/shortcode-builder.php:1155
2419
  msgid "Enter search term"
2420
  msgstr ""
2421
 
2422
- #: admin/shortcode-builder/shortcode-builder.php:1165
2423
  msgid "Post Parameters"
2424
  msgstr ""
2425
 
2426
- #: admin/shortcode-builder/shortcode-builder.php:1170
2427
  msgid "A comma separated list of post ID's to query."
2428
  msgstr ""
2429
 
2430
- #: admin/shortcode-builder/shortcode-builder.php:1174
2431
  msgid "225, 340, 818, etc..."
2432
  msgstr ""
2433
 
2434
- #: admin/shortcode-builder/shortcode-builder.php:1181
2435
  msgid "A comma separated list of post ID's to exclude from query."
2436
  msgstr ""
2437
 
2438
- #: admin/shortcode-builder/shortcode-builder.php:1192
2439
  msgid "Post Status"
2440
  msgstr ""
2441
 
2442
- #: admin/shortcode-builder/shortcode-builder.php:1192
2443
  msgid ""
2444
  "Post Status parameters are only available for logged in (admin) users. Non "
2445
  "logged in users will only have access to view content in a 'publish' or "
2446
  "'inherit' state."
2447
  msgstr ""
2448
 
2449
- #: admin/shortcode-builder/shortcode-builder.php:1193
2450
  msgid "Select status of the post."
2451
  msgstr ""
2452
 
2453
- #: admin/shortcode-builder/shortcode-builder.php:1198
2454
  msgid "Published"
2455
  msgstr ""
2456
 
2457
- #: admin/shortcode-builder/shortcode-builder.php:1216
2458
  msgid "Ordering"
2459
  msgstr ""
2460
 
2461
- #: admin/shortcode-builder/shortcode-builder.php:1220
2462
  msgid "Sort posts by Order and Orderby parameters."
2463
  msgstr ""
2464
 
2465
- #: admin/shortcode-builder/shortcode-builder.php:1255
2466
  msgid "Offset"
2467
  msgstr ""
2468
 
2469
- #: admin/shortcode-builder/shortcode-builder.php:1259
2470
  msgid "Offset the initial query by <em>'x'</em> number of posts"
2471
  msgstr ""
2472
 
2473
- #: admin/shortcode-builder/shortcode-builder.php:1273
2474
  msgid "Custom Arguments"
2475
  msgstr ""
2476
 
2477
- #: admin/shortcode-builder/shortcode-builder.php:1277
2478
  msgid "A semicolon separated list of custom value:pair arguments."
2479
  msgstr ""
2480
 
2481
- #: admin/shortcode-builder/shortcode-builder.php:1277
2482
  msgid ""
2483
  "Custom Arguments can be used to query by parameters not available in the "
2484
  "Shortcode Builder"
2485
  msgstr ""
2486
 
2487
- #: admin/shortcode-builder/shortcode-builder.php:1281
2488
  msgid "event_display:upcoming"
2489
  msgstr ""
2490
 
2491
- #: admin/shortcode-builder/shortcode-builder.php:1298
2492
  msgid "Integrations"
2493
  msgstr ""
2494
 
2495
- #: admin/shortcode-builder/shortcode-builder.php:1302
2496
  msgid ""
2497
  "Ajax Load More provides integration solutions for popular plugins and core "
2498
  "WP functionality - when selecting an integration, Ajax Load More will "
@@ -2500,23 +2527,23 @@ msgid ""
2500
  "experience for users based on the selected integration."
2501
  msgstr ""
2502
 
2503
- #: admin/shortcode-builder/shortcode-builder.php:1306
2504
  msgid "Archives"
2505
  msgstr ""
2506
 
2507
- #: admin/shortcode-builder/shortcode-builder.php:1310
2508
  msgid ""
2509
  "Ajax Load More will automatically create an archive query while viewing site "
2510
  "archives."
2511
  msgstr ""
2512
 
2513
- #: admin/shortcode-builder/shortcode-builder.php:1311
2514
  msgid ""
2515
  "Taxonomy, category, tag, date (year, month, day), post type and author "
2516
  "archives are currently supported."
2517
  msgstr ""
2518
 
2519
- #: admin/shortcode-builder/shortcode-builder.php:1329
2520
  msgid ""
2521
  "<b>Note</b>: Do not select Query Parameters other than <b>Posts Per Page</b> "
2522
  "and/or <b>Post Type</b> when using the Archives integration. Ajax Load More "
@@ -2524,12 +2551,12 @@ msgid ""
2524
  "archive page."
2525
  msgstr ""
2526
 
2527
- #: admin/shortcode-builder/shortcode-builder.php:1340
2528
  msgid ""
2529
  "Ajax Load More will automatically set WooCommerce configuration options."
2530
  msgstr ""
2531
 
2532
- #: admin/shortcode-builder/shortcode-builder.php:1341
2533
  msgid ""
2534
  "Post type, products per page, container classes, sort order and taxonomy/tag "
2535
  "archive queries will be set on the server side based on your sites "
@@ -2888,15 +2915,15 @@ msgstr ""
2888
  msgid "Reset"
2889
  msgstr ""
2890
 
2891
- #: ajax-load-more.php:252
2892
  msgid "Error creating repeater template directory"
2893
  msgstr ""
2894
 
2895
- #: ajax-load-more.php:399
2896
  msgid "Viewing {post_count} of {total_posts} results."
2897
  msgstr ""
2898
 
2899
- #: ajax-load-more.php:400
2900
  msgid "No results found."
2901
  msgstr ""
2902
 
@@ -3067,6 +3094,35 @@ msgid ""
3067
  "existing shop templates."
3068
  msgstr ""
3069
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3070
  #: vendor/EDD_SL_Plugin_Updater.php:210
3071
  #, php-format
3072
  msgid ""
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Ajax Load More\n"
5
+ "POT-Creation-Date: 2020-07-31 09:01-0400\n"
6
  "PO-Revision-Date: 2018-06-20 13:05-0500\n"
7
  "Last-Translator: Darren Cooney <darren@connekthq.com>\n"
8
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 2.3.1\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
  "X-Poedit-KeywordsList: __;_e\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
  "X-Poedit-SearchPathExcluded-0: core/src\n"
19
  "X-Poedit-SearchPathExcluded-1: admin/src\n"
20
+ "X-Poedit-SearchPathExcluded-2: node_modules\n"
21
 
22
  #: admin/admin.php:75
23
  msgid "Looks like your subscription has expired."
57
  "support. Need a license key? %sPurchase one now%s."
58
  msgstr ""
59
 
60
+ #: admin/admin.php:191 admin/admin.php:1357
61
  #: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:170
62
  #: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:241
63
  msgid "Error - unable to verify nonce, please try again."
68
  msgstr ""
69
 
70
  #: admin/admin.php:312 admin/admin.php:477 admin/admin.php:1218
71
+ #: admin/admin.php:1264 admin/admin.php:1314
72
  msgid "You don't belong here."
73
  msgstr ""
74
 
88
  "php?page=ajax-load-more-licenses\">Licenses</a> section and input your keys."
89
  msgstr ""
90
 
91
+ #: admin/admin.php:512 core/integration/elementor/elementor.php:13
92
  msgid "Ajax Load More"
93
  msgstr ""
94
 
183
  "to read and write files within the /ajax-load-more/core/repeater directory."
184
  msgstr ""
185
 
186
+ #: admin/admin.php:680 admin/admin.php:681 ajax-load-more.php:348
187
  msgid "Settings"
188
  msgstr ""
189
 
238
  msgstr ""
239
 
240
  #: admin/admin.php:819 admin/admin.php:820
241
+ #: admin/shortcode-builder/shortcode-builder.php:1379 core/functions.php:245
242
  msgid "WooCommerce"
243
  msgstr ""
244
 
262
  msgid "Something went wrong and the data could not be saved."
263
  msgstr ""
264
 
265
+ #: admin/admin.php:1422 admin/shortcode-builder/shortcode-builder.php:123
266
  msgid "Container Type"
267
  msgstr ""
268
 
269
+ #: admin/admin.php:1430 admin/shortcode-builder/shortcode-builder.php:153
270
  msgid "Container Classes"
271
  msgstr ""
272
 
273
+ #: admin/admin.php:1438
274
  msgid "Disable CSS"
275
  msgstr ""
276
 
277
+ #: admin/admin.php:1446 admin/shortcode-builder/shortcode-builder.php:81
278
  msgid "Button/Loading Style"
279
  msgstr ""
280
 
281
+ #: admin/admin.php:1454
282
  msgid "Load CSS Inline"
283
  msgstr ""
284
 
285
+ #: admin/admin.php:1462
286
  msgid "Button Classes"
287
  msgstr ""
288
 
289
+ #: admin/admin.php:1480
290
  msgid "Legacy Callbacks"
291
  msgstr ""
292
 
293
+ #: admin/admin.php:1498
294
  msgid "Delete on Uninstall"
295
  msgstr ""
296
 
297
+ #: admin/admin.php:1506
298
  msgid "Dynamic Content"
299
  msgstr ""
300
 
301
+ #: admin/admin.php:1514
302
  msgid "Editor Button"
303
  msgstr ""
304
 
305
+ #: admin/admin.php:1522
306
  msgid "Error Notices"
307
  msgstr ""
308
 
309
+ #: admin/admin.php:1606
310
  msgid ""
311
  "Customize the user experience of Ajax Load More by updating the fields below."
312
  msgstr ""
313
 
314
+ #: admin/admin.php:1619
315
  msgid "The following settings affect the WordPress admin area only."
316
  msgstr ""
317
 
318
+ #: admin/admin.php:1650
319
  msgid "I want to use my own CSS styles."
320
  msgstr ""
321
 
322
+ #: admin/admin.php:1650
323
  msgid "View Ajax Load More CSS"
324
  msgstr ""
325
 
326
+ #: admin/admin.php:1670
327
  msgid "Hide shortcode button in WYSIWYG editor."
328
  msgstr ""
329
 
330
+ #: admin/admin.php:1691
331
  msgid ""
332
  "Display error messaging regarding repeater template updates in the browser "
333
  "console."
334
  msgstr ""
335
 
336
+ #: admin/admin.php:1712
337
  msgid ""
338
  "Disable dynamic population of categories, tags and authors in the Shortcode "
339
  "Builder.<span style=\"display:block\">Recommended if you have a large number "
340
  "of categories, tags and/or authors."
341
  msgstr ""
342
 
343
+ #: admin/admin.php:1733 admin/admin.php:1736
344
  msgid "Ajax Posts Here"
345
  msgstr ""
346
 
347
+ #: admin/admin.php:1738
348
  msgid "You can modify the container type when building a shortcode."
349
  msgstr ""
350
 
351
+ #: admin/admin.php:1755
352
  msgid ""
353
  "Add custom classes to the <i>.alm-listing</i> container - classes are "
354
  "applied globally and will appear with every instance of Ajax Load More. "
356
  "shortcode.</span>"
357
  msgstr ""
358
 
359
+ #: admin/admin.php:1820
360
  msgid ""
361
  "Select an Ajax loading style - you can choose between a <strong>Button</"
362
  "strong> or <strong>Infinite Scroll</strong>"
363
  msgstr ""
364
 
365
+ #: admin/admin.php:1825 admin/shortcode-builder/shortcode-builder.php:87
366
  msgid "Button Style (Dark)"
367
  msgstr ""
368
 
369
+ #: admin/admin.php:1832 admin/shortcode-builder/shortcode-builder.php:94
370
  msgid "Button Style (Light)"
371
  msgstr ""
372
 
373
+ #: admin/admin.php:1837 admin/shortcode-builder/shortcode-builder.php:98
374
  msgid "Infinite Scroll (No Button)"
375
  msgstr ""
376
 
377
+ #: admin/admin.php:1854
378
  msgid "Click to Preview"
379
  msgstr ""
380
 
381
+ #: admin/admin.php:1855 admin/shortcode-builder/shortcode-builder.php:112
382
  #: admin/shortcode-builder/shortcode-builder.php:350
383
+ #: core/classes/class.alm-shortcode.php:217
384
  msgid "Older Posts"
385
  msgstr ""
386
 
387
+ #: admin/admin.php:1878
388
  msgid "Improve site performance by loading Ajax Load More CSS inline."
389
  msgstr ""
390
 
391
+ #: admin/admin.php:1898
392
  msgid "Add classes to your <strong>Load More</strong> button."
393
  msgstr ""
394
 
395
+ #: admin/admin.php:1942
396
  msgid ""
397
  "On initial page load, move the user's browser window to the top of the "
398
  "screen."
399
  msgstr ""
400
 
401
+ #: admin/admin.php:1943
402
  msgid "This may help prevent the loading of unnecessary posts."
403
  msgstr ""
404
 
405
+ #: admin/admin.php:1966
406
  msgid "Disable REST API."
407
  msgstr ""
408
 
409
+ #: admin/admin.php:1967
410
  msgid ""
411
  "Use `admin-ajax.php` in favour of the WordPress REST API for all Ajax "
412
  "requests."
413
  msgstr ""
414
 
415
+ #: admin/admin.php:1990
416
  msgid "Load legacy JavaScript callback functions."
417
  msgstr ""
418
 
419
+ #: admin/admin.php:1991
420
  msgid ""
421
  "Ajax Load More <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/"
422
  "callback-functions/\" target=\"_blank\">callback functions</a> were updated "
424
  "library to maintain compatibility."
425
  msgstr ""
426
 
427
+ #: admin/admin.php:2014
428
  msgid ""
429
  "Check this box if Ajax Load More should remove all of its data* when the "
430
  "plugin is deleted."
431
  msgstr ""
432
 
433
+ #: admin/admin.php:2015
434
  msgid "* Database Tables, Options and Repeater Templates"
435
  msgstr ""
436
 
755
  #: admin/shortcode-builder/shortcode-builder.php:214
756
  #: admin/shortcode-builder/shortcode-builder.php:237
757
  #: admin/shortcode-builder/shortcode-builder.php:280
758
+ #: admin/shortcode-builder/shortcode-builder.php:397
759
+ #: admin/shortcode-builder/shortcode-builder.php:456
760
+ #: admin/shortcode-builder/shortcode-builder.php:479
761
+ #: admin/shortcode-builder/shortcode-builder.php:634
762
+ #: admin/shortcode-builder/shortcode-builder.php:710
763
+ #: admin/shortcode-builder/shortcode-builder.php:1362
764
+ #: admin/shortcode-builder/shortcode-builder.php:1393
765
  msgid "True"
766
  msgstr ""
767
 
794
  #: admin/shortcode-builder/shortcode-builder.php:218
795
  #: admin/shortcode-builder/shortcode-builder.php:241
796
  #: admin/shortcode-builder/shortcode-builder.php:284
797
+ #: admin/shortcode-builder/shortcode-builder.php:401
798
+ #: admin/shortcode-builder/shortcode-builder.php:460
799
+ #: admin/shortcode-builder/shortcode-builder.php:483
800
+ #: admin/shortcode-builder/shortcode-builder.php:638
801
+ #: admin/shortcode-builder/shortcode-builder.php:714
802
+ #: admin/shortcode-builder/shortcode-builder.php:1366
803
+ #: admin/shortcode-builder/shortcode-builder.php:1397
804
  msgid "False"
805
  msgstr ""
806
 
978
  msgstr ""
979
 
980
  #: admin/shortcode-builder/components/comments.php:105
981
+ #: admin/shortcode-builder/shortcode-builder.php:529
982
+ #: admin/shortcode-builder/shortcode-builder.php:615
983
  msgid "None"
984
  msgstr ""
985
 
1020
  #: admin/shortcode-builder/components/nextpage.php:108
1021
  #: admin/shortcode-builder/components/single-post.php:58
1022
  #: admin/shortcode-builder/components/single-post.php:259
1023
+ #: admin/shortcode-builder/shortcode-builder.php:647
1024
+ #: admin/shortcode-builder/shortcode-builder.php:1355
1025
+ #: admin/shortcode-builder/shortcode-builder.php:1385
1026
  msgid "View Docs"
1027
  msgstr ""
1028
 
1250
 
1251
  #: admin/shortcode-builder/components/nextpage.php:90
1252
  #: admin/shortcode-builder/components/paging.php:62
1253
+ #: admin/shortcode-builder/shortcode-builder.php:389
1254
  msgid "Enable Scrolling"
1255
  msgstr ""
1256
 
1428
  #: admin/shortcode-builder/shortcode-builder.php:193
1429
  #: admin/shortcode-builder/shortcode-builder.php:207
1430
  #: admin/shortcode-builder/shortcode-builder.php:230
1431
+ #: admin/shortcode-builder/shortcode-builder.php:703
1432
+ #: admin/shortcode-builder/shortcode-builder.php:890
1433
+ #: admin/shortcode-builder/shortcode-builder.php:984
1434
+ #: admin/shortcode-builder/shortcode-builder.php:1127
1435
+ #: admin/shortcode-builder/shortcode-builder.php:1165
1436
+ #: admin/shortcode-builder/shortcode-builder.php:1194
1437
+ #: admin/shortcode-builder/shortcode-builder.php:1225
1438
  msgid "View Example"
1439
  msgstr ""
1440
 
1521
 
1522
  #: admin/shortcode-builder/components/single-post.php:89
1523
  #: admin/shortcode-builder/components/term-query.php:39
1524
+ #: admin/shortcode-builder/shortcode-builder.php:1067
1525
  msgid "Taxonomy"
1526
  msgstr ""
1527
 
1545
 
1546
  #: admin/shortcode-builder/components/single-post.php:104
1547
  #: admin/shortcode-builder/components/term-query.php:45
1548
+ #: admin/shortcode-builder/shortcode-builder.php:883
1549
  msgid "Category"
1550
  msgstr ""
1551
 
1552
  #: admin/shortcode-builder/components/single-post.php:105
1553
  #: admin/shortcode-builder/components/term-query.php:46
1554
+ #: admin/shortcode-builder/shortcode-builder.php:976
1555
  msgid "Tag"
1556
  msgstr ""
1557
 
1624
  msgstr ""
1625
 
1626
  #: admin/shortcode-builder/components/single-post.php:223
1627
+ #: admin/shortcode-builder/shortcode-builder.php:729
1628
  msgid "Default:"
1629
  msgstr ""
1630
 
1700
  msgstr ""
1701
 
1702
  #: admin/shortcode-builder/components/users.php:56
1703
+ #: admin/shortcode-builder/shortcode-builder.php:887
1704
+ #: admin/shortcode-builder/shortcode-builder.php:980
1705
+ #: admin/shortcode-builder/shortcode-builder.php:1212
1706
  msgid "Include"
1707
  msgstr ""
1708
 
1711
  msgstr ""
1712
 
1713
  #: admin/shortcode-builder/components/users.php:70
1714
+ #: admin/shortcode-builder/shortcode-builder.php:934
1715
+ #: admin/shortcode-builder/shortcode-builder.php:1029
1716
+ #: admin/shortcode-builder/shortcode-builder.php:1223
1717
  msgid "Exclude"
1718
  msgstr ""
1719
 
1738
  msgstr ""
1739
 
1740
  #: admin/shortcode-builder/components/users.php:102
1741
+ #: admin/shortcode-builder/shortcode-builder.php:1268
1742
  msgid "Order"
1743
  msgstr ""
1744
 
1745
  #: admin/shortcode-builder/components/users.php:109
1746
+ #: admin/shortcode-builder/shortcode-builder.php:1275
1747
  msgid "Order By"
1748
  msgstr ""
1749
 
1796
  msgstr ""
1797
 
1798
  #: admin/shortcode-builder/includes/tax-query-options.php:48
1799
+ #: admin/shortcode-builder/shortcode-builder.php:1102
1800
  msgid "Relation:"
1801
  msgstr ""
1802
 
1884
 
1885
  #: admin/shortcode-builder/shortcode-builder.php:170
1886
  msgid ""
1887
+ "Do not load Ajax content until the user clicks or interacts with the "
1888
  "<em>Load More</em> button."
1889
  msgstr ""
1890
 
1994
  msgstr ""
1995
 
1996
  #: admin/shortcode-builder/shortcode-builder.php:357
1997
+ msgid "Leave field empty to not update button text while loading content"
1998
  msgstr ""
1999
 
2000
  #: admin/shortcode-builder/shortcode-builder.php:358
2006
  msgid "Loading Posts..."
2007
  msgstr ""
2008
 
2009
+ #: admin/shortcode-builder/shortcode-builder.php:369
2010
+ msgid "Done Label"
2011
+ msgstr ""
2012
+
2013
+ #: admin/shortcode-builder/shortcode-builder.php:369
2014
+ msgid "Leave field empty to not update button text"
2015
+ msgstr ""
2016
+
2017
+ #: admin/shortcode-builder/shortcode-builder.php:370
2018
+ msgid ""
2019
+ "Update the text of the <em>Load More</em> button when no content remains to "
2020
+ "be loaded."
2021
+ msgstr ""
2022
+
2023
+ #: admin/shortcode-builder/shortcode-builder.php:374
2024
+ msgid "No Posts Remain..."
2025
+ msgstr ""
2026
+
2027
+ #: admin/shortcode-builder/shortcode-builder.php:385
2028
  msgid "Scrolling"
2029
  msgstr ""
2030
 
2031
+ #: admin/shortcode-builder/shortcode-builder.php:390
2032
  msgid "Load more posts as the user scrolls the page."
2033
  msgstr ""
2034
 
2035
+ #: admin/shortcode-builder/shortcode-builder.php:416
2036
  msgid "Scroll Distance"
2037
  msgstr ""
2038
 
2039
+ #: admin/shortcode-builder/shortcode-builder.php:416
2040
  msgid ""
2041
  "Distance is based on the position of the loading button from the bottom of "
2042
  "the screen"
2043
  msgstr ""
2044
 
2045
+ #: admin/shortcode-builder/shortcode-builder.php:417
2046
  msgid ""
2047
  "The distance from the bottom of the screen to trigger loading of posts. "
2048
  "(Default = 100)"
2049
  msgstr ""
2050
 
2051
+ #: admin/shortcode-builder/shortcode-builder.php:418
2052
  msgid "Pro-tip"
2053
  msgstr ""
2054
 
2055
+ #: admin/shortcode-builder/shortcode-builder.php:418
2056
  msgid ""
2057
  "Use a negative number (-200) to trigger a post load before the button is in "
2058
  "view"
2059
  msgstr ""
2060
 
2061
+ #: admin/shortcode-builder/shortcode-builder.php:436
2062
+ msgid "Maximum Pages"
2063
  msgstr ""
2064
 
2065
+ #: admin/shortcode-builder/shortcode-builder.php:436
2066
+ msgid "If using an Infinite Scroll button style you should set this to 0"
2067
  msgstr ""
2068
 
2069
+ #: admin/shortcode-builder/shortcode-builder.php:437
2070
+ msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
2071
  msgstr ""
2072
 
2073
+ #: admin/shortcode-builder/shortcode-builder.php:449
2074
+ msgid "Pause Override"
2075
  msgstr ""
2076
 
2077
+ #: admin/shortcode-builder/shortcode-builder.php:450
2078
+ msgid ""
2079
+ "Override the <em>Pause</em> parameter and trigger the initial loading of "
2080
+ "posts on scroll."
2081
  msgstr ""
2082
 
2083
+ #: admin/shortcode-builder/shortcode-builder.php:472
2084
+ msgid "Scroll Container"
2085
  msgstr ""
2086
 
2087
+ #: admin/shortcode-builder/shortcode-builder.php:473
2088
+ msgid "Confine Ajax Load More scrolling to a parent container element."
2089
+ msgstr ""
2090
+
2091
+ #: admin/shortcode-builder/shortcode-builder.php:497
2092
+ msgid "Container Element"
2093
  msgstr ""
2094
 
2095
+ #: admin/shortcode-builder/shortcode-builder.php:498
2096
  msgid ""
2097
+ "Enter the ID or classname of the parent container element to be used as the "
2098
+ "scrolling container."
2099
  msgstr ""
2100
 
2101
+ #: admin/shortcode-builder/shortcode-builder.php:516
2102
  msgid "Transition"
2103
  msgstr ""
2104
 
2105
+ #: admin/shortcode-builder/shortcode-builder.php:521
2106
  msgid "Type"
2107
  msgstr ""
2108
 
2109
+ #: admin/shortcode-builder/shortcode-builder.php:522
2110
  msgid "Select a loading transition style."
2111
  msgstr ""
2112
 
2113
+ #: admin/shortcode-builder/shortcode-builder.php:527
2114
  msgid "Fade In"
2115
  msgstr ""
2116
 
2117
+ #: admin/shortcode-builder/shortcode-builder.php:528
2118
  msgid "Masonry"
2119
  msgstr ""
2120
 
2121
+ #: admin/shortcode-builder/shortcode-builder.php:542
2122
  msgid "Masonry Options"
2123
  msgstr ""
2124
 
2125
+ #: admin/shortcode-builder/shortcode-builder.php:542
2126
  msgid "Ajax Load More does not support all available Masonry options"
2127
  msgstr ""
2128
 
2129
+ #: admin/shortcode-builder/shortcode-builder.php:543
2130
  msgid ""
2131
  "The following Masonry <a href=\"https://masonry.desandro.com/options.html\" "
2132
  "target=\"_blank\">options</a> are supported by Ajax Load More."
2133
  msgstr ""
2134
 
2135
+ #: admin/shortcode-builder/shortcode-builder.php:549
2136
  msgid "Item Selector"
2137
  msgstr ""
2138
 
2139
+ #: admin/shortcode-builder/shortcode-builder.php:549
2140
  msgid ""
2141
  "Item Selector is required for Masonry to target each element loaded with "
2142
  "Ajax."
2143
  msgstr ""
2144
 
2145
+ #: admin/shortcode-builder/shortcode-builder.php:550
2146
  msgid "Enter the target classname of each masonry item."
2147
  msgstr ""
2148
 
2149
+ #: admin/shortcode-builder/shortcode-builder.php:564
2150
  msgid "Column Width"
2151
  msgstr ""
2152
 
2153
+ #: admin/shortcode-builder/shortcode-builder.php:564
2154
  msgid ""
2155
  "If columnWidth is not set, Masonry will use the outer width of the first "
2156
  "Item Selector."
2157
  msgstr ""
2158
 
2159
+ #: admin/shortcode-builder/shortcode-builder.php:565
2160
  msgid ""
2161
  "Enter the <a href=\"https://masonry.desandro.com/options.html#columnwidth\" "
2162
  "target=\"_blank\">columnWidth</a> of the masonry items."
2163
  msgstr ""
2164
 
2165
+ #: admin/shortcode-builder/shortcode-builder.php:578
2166
  msgid "Animation Type"
2167
  msgstr ""
2168
 
2169
+ #: admin/shortcode-builder/shortcode-builder.php:578
2170
  msgid "All Masonry animations include a fade-in effect as items are loaded."
2171
  msgstr ""
2172
 
2173
+ #: admin/shortcode-builder/shortcode-builder.php:579
2174
  msgid "Select a loading transition for Masonry items."
2175
  msgstr ""
2176
 
2177
+ #: admin/shortcode-builder/shortcode-builder.php:587
2178
  msgid "Default (Zoom)"
2179
  msgstr ""
2180
 
2181
+ #: admin/shortcode-builder/shortcode-builder.php:588
2182
  msgid "Items scale up from 50% to 100% size on load."
2183
  msgstr ""
2184
 
2185
+ #: admin/shortcode-builder/shortcode-builder.php:594
2186
  msgid "Zoom Out"
2187
  msgstr ""
2188
 
2189
+ #: admin/shortcode-builder/shortcode-builder.php:595
2190
  msgid "Items scale down from 125% to 100% size on load."
2191
  msgstr ""
2192
 
2193
+ #: admin/shortcode-builder/shortcode-builder.php:601
2194
  msgid "Slide Up"
2195
  msgstr ""
2196
 
2197
+ #: admin/shortcode-builder/shortcode-builder.php:602
2198
  msgid "Items animate up as they are loaded into view."
2199
  msgstr ""
2200
 
2201
+ #: admin/shortcode-builder/shortcode-builder.php:608
2202
  msgid "Slide Down"
2203
  msgstr ""
2204
 
2205
+ #: admin/shortcode-builder/shortcode-builder.php:609
2206
  msgid "Items animate down when loaded into view."
2207
  msgstr ""
2208
 
2209
+ #: admin/shortcode-builder/shortcode-builder.php:625
2210
  msgid "Horizontal Order"
2211
  msgstr ""
2212
 
2213
+ #: admin/shortcode-builder/shortcode-builder.php:626
2214
  msgid "Lays out items to maintain left-to-right order."
2215
  msgstr ""
2216
 
2217
+ #: admin/shortcode-builder/shortcode-builder.php:646
2218
  msgid ""
2219
  "Don't see your favorite Masonry option listed? You can always add your own!"
2220
  msgstr ""
2221
 
2222
+ #: admin/shortcode-builder/shortcode-builder.php:661
2223
  msgid "Transition Container Classes"
2224
  msgstr ""
2225
 
2226
+ #: admin/shortcode-builder/shortcode-builder.php:661
2227
  msgid "This setting is not available with the Single Post or Next Page add-ons"
2228
  msgstr ""
2229
 
2230
+ #: admin/shortcode-builder/shortcode-builder.php:662
2231
  msgid "Add custom classes to the <span>.alm-reveal</span> loading container"
2232
  msgstr ""
2233
 
2234
+ #: admin/shortcode-builder/shortcode-builder.php:674
2235
  msgid "Transition Container"
2236
  msgstr ""
2237
 
2238
+ #: admin/shortcode-builder/shortcode-builder.php:674
2239
  msgid ""
2240
  "Removing the transition container may have undesired results and is not "
2241
  "recommended"
2242
  msgstr ""
2243
 
2244
+ #: admin/shortcode-builder/shortcode-builder.php:675
2245
  msgid ""
2246
  "Remove the <span>.alm-reveal</span> loading container from Ajax Load More"
2247
  msgstr ""
2248
 
2249
+ #: admin/shortcode-builder/shortcode-builder.php:682
2250
  msgid "Remove Container"
2251
  msgstr ""
2252
 
2253
+ #: admin/shortcode-builder/shortcode-builder.php:698
2254
  msgid "Progress Bar"
2255
  msgstr ""
2256
 
2257
+ #: admin/shortcode-builder/shortcode-builder.php:702
2258
  msgid ""
2259
  "Display progress bar indicator at the top of the window while loading Ajax "
2260
  "content."
2261
  msgstr ""
2262
 
2263
+ #: admin/shortcode-builder/shortcode-builder.php:727
2264
  msgid "Color"
2265
  msgstr ""
2266
 
2267
+ #: admin/shortcode-builder/shortcode-builder.php:728
2268
  msgid "Enter the hex color of the progress bar"
2269
  msgstr ""
2270
 
2271
+ #: admin/shortcode-builder/shortcode-builder.php:755
2272
  msgid "Query Parameters"
2273
  msgstr ""
2274
 
2275
+ #: admin/shortcode-builder/shortcode-builder.php:758
2276
  msgid ""
2277
  "Query Parameters allow you build a custom <b>WP_Query</b> based on Ajax Load "
2278
  "More shortcode values."
2279
  msgstr ""
2280
 
2281
+ #: admin/shortcode-builder/shortcode-builder.php:758
2282
  msgid ""
2283
  "When using Ajax Load More add-ons or extensions not all Query Parameters "
2284
  "will be available in the query."
2285
  msgstr ""
2286
 
2287
+ #: admin/shortcode-builder/shortcode-builder.php:762
2288
  msgid "Posts Per Page"
2289
  msgstr ""
2290
 
2291
+ #: admin/shortcode-builder/shortcode-builder.php:766
2292
  msgid "Select the number of posts to load with each Ajax request."
2293
  msgstr ""
2294
 
2295
+ #: admin/shortcode-builder/shortcode-builder.php:786
2296
  msgid "Post Type"
2297
  msgstr ""
2298
 
2299
+ #: admin/shortcode-builder/shortcode-builder.php:791
2300
  msgid "Select the Post Types to include in this Ajax Load More query."
2301
  msgstr ""
2302
 
2303
+ #: admin/shortcode-builder/shortcode-builder.php:805
2304
  msgid "Any"
2305
  msgstr ""
2306
 
2307
+ #: admin/shortcode-builder/shortcode-builder.php:816
2308
  msgid "Sticky Posts"
2309
  msgstr ""
2310
 
2311
+ #: admin/shortcode-builder/shortcode-builder.php:816
2312
  msgid "Sticky posts are only available for Posts"
2313
  msgstr ""
2314
 
2315
+ #: admin/shortcode-builder/shortcode-builder.php:817
2316
  msgid ""
2317
  "Preserve the ordering of sticky posts by having them appear first in the "
2318
  "Ajax listing."
2319
  msgstr ""
2320
 
2321
+ #: admin/shortcode-builder/shortcode-builder.php:824
2322
  msgid "Enable Sticky Posts"
2323
  msgstr ""
2324
 
2325
+ #: admin/shortcode-builder/shortcode-builder.php:847
2326
  msgid "Post Format"
2327
  msgstr ""
2328
 
2329
+ #: admin/shortcode-builder/shortcode-builder.php:851
2330
  msgid ""
2331
  "Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
2332
  "\">Post Format</a> to query."
2333
  msgstr ""
2334
 
2335
+ #: admin/shortcode-builder/shortcode-builder.php:854
2336
  msgid "Select Post Format"
2337
  msgstr ""
2338
 
2339
+ #: admin/shortcode-builder/shortcode-builder.php:855
2340
  msgid "Standard"
2341
  msgstr ""
2342
 
2343
+ #: admin/shortcode-builder/shortcode-builder.php:887
2344
  msgid "Get posts by category using a category_name or category__and query"
2345
  msgstr ""
2346
 
2347
+ #: admin/shortcode-builder/shortcode-builder.php:888
2348
  msgid "Comma separated list of categories to include by"
2349
  msgstr ""
2350
 
2351
+ #: admin/shortcode-builder/shortcode-builder.php:888
2352
+ #: admin/shortcode-builder/shortcode-builder.php:981
2353
  msgid "slug"
2354
  msgstr ""
2355
 
2356
+ #: admin/shortcode-builder/shortcode-builder.php:924
2357
+ #: admin/shortcode-builder/shortcode-builder.php:1019
2358
  msgid "What's this"
2359
  msgstr ""
2360
 
2361
+ #: admin/shortcode-builder/shortcode-builder.php:936
2362
  msgid "Comma separated list of categories to exclude by ID."
2363
  msgstr ""
2364
 
2365
+ #: admin/shortcode-builder/shortcode-builder.php:980
2366
  msgid "Get posts by tags using a tag or tag__and query"
2367
  msgstr ""
2368
 
2369
+ #: admin/shortcode-builder/shortcode-builder.php:981
2370
  msgid "Comma separated list of tags to include by"
2371
  msgstr ""
2372
 
2373
+ #: admin/shortcode-builder/shortcode-builder.php:1031
2374
  msgid "Comma separated list of tags to exclude by ID"
2375
  msgstr ""
2376
 
2377
+ #: admin/shortcode-builder/shortcode-builder.php:1071
2378
  msgid "Select a taxonomy then select the terms and an operator."
2379
  msgstr ""
2380
 
2381
+ #: admin/shortcode-builder/shortcode-builder.php:1076
2382
+ #: admin/shortcode-builder/shortcode-builder.php:1112
2383
  msgid "Add Another"
2384
  msgstr ""
2385
 
2386
+ #: admin/shortcode-builder/shortcode-builder.php:1087
2387
  msgid "Custom Fields (Meta_Query)"
2388
  msgstr ""
2389
 
2390
+ #: admin/shortcode-builder/shortcode-builder.php:1091
2391
  msgid ""
2392
  "Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
2393
  "\" target=\"_blank\">custom field</a> by entering a custom field key, value "
2394
  "and operator."
2395
  msgstr ""
2396
 
2397
+ #: admin/shortcode-builder/shortcode-builder.php:1102
2398
  msgid ""
2399
  "The logical relationship between each custom field when there is more than "
2400
  "one"
2401
  msgstr ""
2402
 
2403
+ #: admin/shortcode-builder/shortcode-builder.php:1122
2404
  msgid "Date"
2405
  msgstr ""
2406
 
2407
+ #: admin/shortcode-builder/shortcode-builder.php:1126
2408
  msgid "Enter a year, month(number) and day to query by date archive."
2409
  msgstr ""
2410
 
2411
+ #: admin/shortcode-builder/shortcode-builder.php:1133
2412
  msgid "Year:"
2413
  msgstr ""
2414
 
2415
+ #: admin/shortcode-builder/shortcode-builder.php:1137
2416
  msgid "Month:"
2417
  msgstr ""
2418
 
2419
+ #: admin/shortcode-builder/shortcode-builder.php:1141
2420
  msgid "Day:"
2421
  msgstr ""
2422
 
2423
+ #: admin/shortcode-builder/shortcode-builder.php:1159
2424
  msgid "Author"
2425
  msgstr ""
2426
 
2427
+ #: admin/shortcode-builder/shortcode-builder.php:1163
2428
  msgid "Select an Author to query(by ID)."
2429
  msgstr ""
2430
 
2431
+ #: admin/shortcode-builder/shortcode-builder.php:1188
2432
  msgid "Search"
2433
  msgstr ""
2434
 
2435
+ #: admin/shortcode-builder/shortcode-builder.php:1192
2436
  msgid "Enter a search term to query."
2437
  msgstr ""
2438
 
2439
+ #: admin/shortcode-builder/shortcode-builder.php:1193
2440
  msgid ""
2441
  "Search uses the default WordPress search, however Ajax Load More does offer "
2442
  "integrations with SearchWP and Relevanssi."
2443
  msgstr ""
2444
 
2445
+ #: admin/shortcode-builder/shortcode-builder.php:1198
2446
  msgid "Enter search term"
2447
  msgstr ""
2448
 
2449
+ #: admin/shortcode-builder/shortcode-builder.php:1208
2450
  msgid "Post Parameters"
2451
  msgstr ""
2452
 
2453
+ #: admin/shortcode-builder/shortcode-builder.php:1213
2454
  msgid "A comma separated list of post ID's to query."
2455
  msgstr ""
2456
 
2457
+ #: admin/shortcode-builder/shortcode-builder.php:1217
2458
  msgid "225, 340, 818, etc..."
2459
  msgstr ""
2460
 
2461
+ #: admin/shortcode-builder/shortcode-builder.php:1224
2462
  msgid "A comma separated list of post ID's to exclude from query."
2463
  msgstr ""
2464
 
2465
+ #: admin/shortcode-builder/shortcode-builder.php:1235
2466
  msgid "Post Status"
2467
  msgstr ""
2468
 
2469
+ #: admin/shortcode-builder/shortcode-builder.php:1235
2470
  msgid ""
2471
  "Post Status parameters are only available for logged in (admin) users. Non "
2472
  "logged in users will only have access to view content in a 'publish' or "
2473
  "'inherit' state."
2474
  msgstr ""
2475
 
2476
+ #: admin/shortcode-builder/shortcode-builder.php:1236
2477
  msgid "Select status of the post."
2478
  msgstr ""
2479
 
2480
+ #: admin/shortcode-builder/shortcode-builder.php:1241
2481
  msgid "Published"
2482
  msgstr ""
2483
 
2484
+ #: admin/shortcode-builder/shortcode-builder.php:1259
2485
  msgid "Ordering"
2486
  msgstr ""
2487
 
2488
+ #: admin/shortcode-builder/shortcode-builder.php:1263
2489
  msgid "Sort posts by Order and Orderby parameters."
2490
  msgstr ""
2491
 
2492
+ #: admin/shortcode-builder/shortcode-builder.php:1298
2493
  msgid "Offset"
2494
  msgstr ""
2495
 
2496
+ #: admin/shortcode-builder/shortcode-builder.php:1302
2497
  msgid "Offset the initial query by <em>'x'</em> number of posts"
2498
  msgstr ""
2499
 
2500
+ #: admin/shortcode-builder/shortcode-builder.php:1316
2501
  msgid "Custom Arguments"
2502
  msgstr ""
2503
 
2504
+ #: admin/shortcode-builder/shortcode-builder.php:1320
2505
  msgid "A semicolon separated list of custom value:pair arguments."
2506
  msgstr ""
2507
 
2508
+ #: admin/shortcode-builder/shortcode-builder.php:1320
2509
  msgid ""
2510
  "Custom Arguments can be used to query by parameters not available in the "
2511
  "Shortcode Builder"
2512
  msgstr ""
2513
 
2514
+ #: admin/shortcode-builder/shortcode-builder.php:1324
2515
  msgid "event_display:upcoming"
2516
  msgstr ""
2517
 
2518
+ #: admin/shortcode-builder/shortcode-builder.php:1341
2519
  msgid "Integrations"
2520
  msgstr ""
2521
 
2522
+ #: admin/shortcode-builder/shortcode-builder.php:1345
2523
  msgid ""
2524
  "Ajax Load More provides integration solutions for popular plugins and core "
2525
  "WP functionality - when selecting an integration, Ajax Load More will "
2527
  "experience for users based on the selected integration."
2528
  msgstr ""
2529
 
2530
+ #: admin/shortcode-builder/shortcode-builder.php:1349
2531
  msgid "Archives"
2532
  msgstr ""
2533
 
2534
+ #: admin/shortcode-builder/shortcode-builder.php:1353
2535
  msgid ""
2536
  "Ajax Load More will automatically create an archive query while viewing site "
2537
  "archives."
2538
  msgstr ""
2539
 
2540
+ #: admin/shortcode-builder/shortcode-builder.php:1354
2541
  msgid ""
2542
  "Taxonomy, category, tag, date (year, month, day), post type and author "
2543
  "archives are currently supported."
2544
  msgstr ""
2545
 
2546
+ #: admin/shortcode-builder/shortcode-builder.php:1372
2547
  msgid ""
2548
  "<b>Note</b>: Do not select Query Parameters other than <b>Posts Per Page</b> "
2549
  "and/or <b>Post Type</b> when using the Archives integration. Ajax Load More "
2551
  "archive page."
2552
  msgstr ""
2553
 
2554
+ #: admin/shortcode-builder/shortcode-builder.php:1383
2555
  msgid ""
2556
  "Ajax Load More will automatically set WooCommerce configuration options."
2557
  msgstr ""
2558
 
2559
+ #: admin/shortcode-builder/shortcode-builder.php:1384
2560
  msgid ""
2561
  "Post type, products per page, container classes, sort order and taxonomy/tag "
2562
  "archive queries will be set on the server side based on your sites "
2915
  msgid "Reset"
2916
  msgstr ""
2917
 
2918
+ #: ajax-load-more.php:290
2919
  msgid "Error creating repeater template directory"
2920
  msgstr ""
2921
 
2922
+ #: ajax-load-more.php:441
2923
  msgid "Viewing {post_count} of {total_posts} results."
2924
  msgstr ""
2925
 
2926
+ #: ajax-load-more.php:442
2927
  msgid "No results found."
2928
  msgstr ""
2929
 
3094
  "existing shop templates."
3095
  msgstr ""
3096
 
3097
+ #: core/integration/elementor/module/widget.php:40
3098
+ msgid "ALM Shortcode"
3099
+ msgstr ""
3100
+
3101
+ #: core/integration/elementor/module/widget.php:87
3102
+ msgid "Shortcode"
3103
+ msgstr ""
3104
+
3105
+ #: core/integration/elementor/module/widget.php:94
3106
+ #: core/integration/elementor/module/widget.php:119
3107
+ #: core/integration/elementor/module/widget.php:140
3108
+ msgid "Ajax Load More Shortcode"
3109
+ msgstr ""
3110
+
3111
+ #: core/integration/elementor/module/widget.php:96
3112
+ msgid "[ajax_load_more]"
3113
+ msgstr ""
3114
+
3115
+ #: core/integration/elementor/module/widget.php:97
3116
+ msgid ""
3117
+ "The shortcode will not render while Elementor is in live edit mode, you must "
3118
+ "preview the page to view Ajax Load More functionality."
3119
+ msgstr ""
3120
+
3121
+ #: core/integration/elementor/module/widget.php:97
3122
+ #, php-format
3123
+ msgid "%sBuild Shortcode%s"
3124
+ msgstr ""
3125
+
3126
  #: vendor/EDD_SL_Plugin_Updater.php:210
3127
  #, php-format
3128
  msgid ""