Version Description
Download this release
Release Info
Developer | chriskmnds |
Plugin | Full Site Editing |
Version | 3.14479 |
Comparing to | |
See all releases |
Code changes from version 3.14278 to 3.14479
- editor-site-launch/dist/gutenboarding-launch.asset.php +1 -1
- editor-site-launch/src/utils.ts +1 -1
- full-site-editing-plugin.php +2 -2
- newspack-blocks/dist/blog-posts-block-editor.asset.php +1 -1
- newspack-blocks/dist/blog-posts-block-editor.js +2 -2
- newspack-blocks/dist/carousel-block-editor.asset.php +1 -1
- newspack-blocks/dist/carousel-block-editor.js +2 -2
- readme.txt +1 -1
- wpcom-block-editor-nux/dist/wpcom-block-editor-nux.asset.php +1 -1
- wpcom-block-editor-nux/dist/wpcom-block-editor-nux.css +1 -1
- wpcom-block-editor-nux/dist/wpcom-block-editor-nux.rtl.css +1 -1
- wpcom-block-editor-nux/src/test/store.test.js +1 -0
- wpcom-block-editor-nux/src/welcome-tour/style-tour.scss +11 -8
editor-site-launch/dist/gutenboarding-launch.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => '448b3b6e17afe7c8aaeec33d8e866398');
|
editor-site-launch/src/utils.ts
CHANGED
@@ -8,7 +8,7 @@ export const getCurrentLaunchFlowUrl = (): string =>
|
|
8 |
window?.calypsoifyGutenberg?.currentCalypsoUrl ?? window.location.href;
|
9 |
|
10 |
export const redirectParentWindow = ( url: string ): void => {
|
11 |
-
window.top.location.href = url;
|
12 |
};
|
13 |
|
14 |
export const redirectToWpcomPath = ( url: string ): void => {
|
8 |
window?.calypsoifyGutenberg?.currentCalypsoUrl ?? window.location.href;
|
9 |
|
10 |
export const redirectParentWindow = ( url: string ): void => {
|
11 |
+
( window.top as Window ).location.href = url;
|
12 |
};
|
13 |
|
14 |
export const redirectToWpcomPath = ( url: string ): void => {
|
full-site-editing-plugin.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: WordPress.com Editing Toolkit
|
4 |
* Description: Enhances your page creation workflow within the Block Editor.
|
5 |
-
* Version: 3.
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
8 |
* License: GPLv2 or later
|
@@ -42,7 +42,7 @@ namespace A8C\FSE;
|
|
42 |
*
|
43 |
* @var string
|
44 |
*/
|
45 |
-
define( 'A8C_ETK_PLUGIN_VERSION', '3.
|
46 |
|
47 |
// Always include these helper files for dotcom FSE.
|
48 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
2 |
/**
|
3 |
* Plugin Name: WordPress.com Editing Toolkit
|
4 |
* Description: Enhances your page creation workflow within the Block Editor.
|
5 |
+
* Version: 3.14479
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
8 |
* License: GPLv2 or later
|
42 |
*
|
43 |
* @var string
|
44 |
*/
|
45 |
+
define( 'A8C_ETK_PLUGIN_VERSION', '3.14479' );
|
46 |
|
47 |
// Always include these helper files for dotcom FSE.
|
48 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
newspack-blocks/dist/blog-posts-block-editor.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '073de107bdfd902c2d3b53b874ff7174');
|
newspack-blocks/dist/blog-posts-block-editor.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
!function(){var e={8177:function(e){"use strict";e.exports=JSON.parse('{"u2":"homepage-articles","W3":"newspack","Y4":{"className":{"type":"string","default":""},"showExcerpt":{"type":"boolean","default":true},"excerptLength":{"type":"number","default":55},"showReadMore":{"type":"boolean","default":false},"readMoreLabel":{"type":"string","default":"Keep reading"},"showDate":{"type":"boolean","default":true},"showImage":{"type":"boolean","default":true},"showCaption":{"type":"boolean","default":false},"imageShape":{"type":"string","default":"landscape"},"minHeight":{"type":"integer","default":0},"moreButton":{"type":"boolean","default":false},"moreButtonText":{"type":"string","default":""},"showAuthor":{"type":"boolean","default":true},"showAvatar":{"type":"boolean","default":true},"showCategory":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"integer","default":3},"postsToShow":{"type":"integer","default":3},"mediaPosition":{"type":"string","default":"top"},"authors":{"type":"array","default":[],"items":{"type":"integer"}},"categories":{"type":"array","default":[],"items":{"type":"integer"}},"tags":{"type":"array","default":[],"items":{"type":"integer"}},"tagExclusions":{"type":"array","default":[],"items":{"type":"integer"}},"categoryExclusions":{"type":"array","default":[],"items":{"type":"integer"}},"specificPosts":{"type":"array","default":[],"items":{"type":"integer"}},"typeScale":{"type":"integer","default":4},"imageScale":{"type":"integer","default":3},"mobileStack":{"type":"boolean","default":false},"sectionHeader":{"type":"string","default":""},"specificMode":{"type":"boolean","default":false},"textColor":{"type":"string","default":""},"customTextColor":{"type":"string","default":""},"singleMode":{"type":"boolean","default":false},"showSubtitle":{"type":"boolean","default":false},"postType":{"type":"array","default":["post"],"items":{"type":"string"}}}}')},1357:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},8890:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1357);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}},3989:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},4659:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},4730:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:function(){return o}})},9049:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(5630),o=n(733),c=n(591);function a(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,c.Z)(this,n)}}},1119:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},7560:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},5630:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,{Z:function(){return r}})},5663:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(4938);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,r.Z)(e,t)}},733:function(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},2733:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},3154:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},9394:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(1119);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},4530:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(8283);function o(e,t){if(null==e)return{};var n,o,c=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},8283:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},591:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(929),o=n(3989);function c(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},4938:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},1766:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(8890),o=n(2733),c=n(237),a=n(3154);function i(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,c.Z)(e)||(0,a.Z)()}},929:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},237:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1357);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},6660:function(e,t,n){"use strict";n.d(t,{A:function(){return T},B:function(){return w},C:function(){return I},D:function(){return y},E:function(){return u},F:function(){return M},G:function(){return H},J:function(){return N},K:function(){return q},L:function(){return X},M:function(){return Y},N:function(){return W},P:function(){return A},R:function(){return j},S:function(){return B},T:function(){return P},U:function(){return K},Y:function(){return G},a:function(){return R},b:function(){return L},d:function(){return V},e:function(){return Z},f:function(){return z},g:function(){return D},h:function(){return F},i:function(){return v},j:function(){return x},k:function(){return i},l:function(){return _},m:function(){return b},o:function(){return d},p:function(){return l},q:function(){return m},r:function(){return p},s:function(){return S},t:function(){return s},u:function(){return f},v:function(){return C},y:function(){return E},z:function(){return k}});var r=n(3143),o=n(7560),c=n(3594),a=n(5295),i=function(e){return function(){return e}}(!0),s=function(){};var u=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var l=function(e,t){(0,o.Z)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))},f=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))};function p(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function d(e){var t=!1;return function(){t||(t=!0,e())}}var h=function(e){throw e},g=function(e){return{value:e,done:!0}};function m(e,t,n){void 0===t&&(t=h),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:g,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function w(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var v=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},b=function(e){return Array.apply(null,new Array(e))},y=function(e){return function(t){return e(Object.defineProperty(t,r.Nm,{value:!0}))}},k=function(e){return e===r.EO},E=function(e){return e===r.Wd},S=function(e){return k(e)||E(e)};function _(e,t){var n=Object.keys(e),r=n.length;var o,a=0,i=(0,c.IX)(e)?b(r):{},u={};return n.forEach((function(e){var n=function(n,c){o||(c||S(n)?(t.cancel(),t(n,c)):(i[e]=n,++a===r&&(o=!0,t(i))))};n.cancel=s,u[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return u[e].cancel()})))},u}function x(e){return{name:e.name||"anonymous",location:C(e)}}function C(e){return e[r.b_]}function O(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,c=0,a=function(t){n[o]=t,o=(o+1)%e,r++},i=function(){if(0!=r){var t=n[c];return n[c]=null,r--,c=(c+1)%e,t}},s=function(){for(var e=[];r;)e.push(i());return e};return{isEmpty:function(){return 0==r},put:function(i){var u;if(r<e)a(i);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=i,c=o=(o+1)%e;break;case 4:u=2*e,n=s(),r=n.length,o=n.length,c=0,n.length=u,e=u,a(i)}},take:i,flush:s}}var Z=function(e){return O(e,4)},P="TAKE",A="PUT",T="ALL",j="RACE",I="CALL",R="CPS",M="FORK",N="JOIN",L="CANCEL",B="SELECT",V="ACTION_CHANNEL",z="CANCELLED",D="FLUSH",H="GET_CONTEXT",F="SET_CONTEXT",U=function(e,t){var n;return(n={})[r.IO]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function q(e,t){return void 0===e&&(e="*"),(0,c.uj)(e)?U(P,{pattern:e}):(0,c.Om)(e)&&(0,c.d5)(t)&&(0,c.uj)(t)?U(P,{channel:e,pattern:t}):(0,c.CE)(e)?U(P,{channel:e}):void 0}function G(e,t){return(0,c.sR)(t)&&(t=e,e=void 0),U(A,{channel:e,action:t})}function Q(e,t){var n,r=null;return(0,c.Yl)(e)?n=e:((0,c.IX)(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&(0,c.Z_)(n)&&(0,c.Yl)(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function W(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return U(I,Q(e,n))}function X(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return U(M,Q(e,n))}function Y(e){return void 0===e&&(e=r.sC),U(L,e)}var K=W.bind(null,a.Z)},1260:function(e,t,n){"use strict";var r=n(3143),o=n(7560),c=n(8283),a=n(3594),i=n(6660),s=n(8717),u=n(1884),l=[],f=0;function p(e){try{g(),e()}finally{m()}}function d(e){l.push(e),f||(g(),w())}function h(e){try{return g(),e()}finally{w()}}function g(){f++}function m(){f--}function w(){var e;for(m();!f&&void 0!==(e=l.shift());)p(e)}var v=function(e){return function(t){return e.some((function(e){return S(e)(t)}))}},b=function(e){return function(t){return e(t)}},y=function(e){return function(t){return t.type===String(e)}},k=function(e){return function(t){return t.type===e}},E=function(){return i.k};function S(e){var t="*"===e?E:(0,a.Z_)(e)?y:(0,a.IX)(e)?v:(0,a.eR)(e)?y:(0,a.Yl)(e)?b:(0,a.NA)(e)?k:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var _={type:r.sZ},x=function(e){return e&&e.type===r.sZ};function C(e){void 0===e&&(e=(0,i.e)());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(_):e.isEmpty()?(n.push(r),r.cancel=function(){(0,i.r)(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(_):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,o=e.length;r<o;r++){(0,e[r])(_)}}}}}function O(){var e,t,n,o,c,a,s=(t=!1,o=n=[],c=function(){o===n&&(o=n.slice())},a=function(){t=!0;var e=n=o;o=[],e.forEach((function(e){e(_)}))},(e={})[r.AS]=!0,e.put=function(e){if(!t)if(x(e))a();else for(var c=n=o,i=0,s=c.length;i<s;i++){var u=c[i];u[r.uq](e)&&(u.cancel(),u(e))}},e.take=function(e,n){void 0===n&&(n=E),t?e(_):(e[r.uq]=n,c(),o.push(e),e.cancel=(0,i.o)((function(){c(),(0,i.r)(o,e)})))},e.close=a,e),u=s.put;return s.put=function(e){e[r.Nm]?u(e):d((function(){u(e)}))},s}function Z(e,t){var n=e[r.n1];(0,a.Yl)(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var P,A=0,T=function(){return++A};function j(e){e.isRunning()&&e.cancel()}var I=((P={})[i.T]=function(e,t,n){var o=t.channel,c=void 0===o?e.channel:o,i=t.pattern,s=t.maybe,u=function(e){e instanceof Error?n(e,!0):!x(e)||s?n(e):n(r.EO)};try{c.take(u,(0,a.d5)(i)?S(i):null)}catch(l){return void n(l,!0)}n.cancel=u.cancel},P[i.P]=function(e,t,n){var r=t.channel,o=t.action,c=t.resolve;d((function(){var t;try{t=(r?r.put:e.dispatch)(o)}catch(i){return void n(i,!0)}c&&(0,a.MC)(t)?Z(t,n):n(t)}))},P[i.A]=function(e,t,n,r){var o=r.digestEffect,c=A,s=Object.keys(t);if(0!==s.length){var u=(0,i.l)(t,n);s.forEach((function(e){o(t[e],c,u[e],e)}))}else n((0,a.IX)(t)?[]:{})},P[i.R]=function(e,t,n,r){var o=r.digestEffect,c=A,s=Object.keys(t),u=(0,a.IX)(t)?(0,i.m)(s.length):{},l={},f=!1;s.forEach((function(e){var t=function(t,r){f||(r||(0,i.s)(t)?(n.cancel(),n(t,r)):(n.cancel(),f=!0,u[e]=t,n(u)))};t.cancel=i.t,l[e]=t})),n.cancel=function(){f||(f=!0,s.forEach((function(e){return l[e].cancel()})))},s.forEach((function(e){f||o(t[e],c,l[e],e)}))},P[i.C]=function(e,t,n,r){var o=t.context,c=t.fn,s=t.args,u=r.task;try{var l=c.apply(o,s);if((0,a.MC)(l))return void Z(l,n);if((0,a.hZ)(l))return void F(e,l,u.context,A,(0,i.j)(c),!1,n);n(l)}catch(f){n(f,!0)}},P[i.a]=function(e,t,n){var r=t.context,o=t.fn,c=t.args;try{var i=function(e,t){(0,a.sR)(e)?n(t):n(e,!0)};o.apply(r,c.concat(i)),i.cancel&&(n.cancel=i.cancel)}catch(s){n(s,!0)}},P[i.F]=function(e,t,n,r){var o=t.context,c=t.fn,s=t.args,u=t.detached,l=r.task,f=function(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if((0,a.hZ)(o))return o;var c=!1;return(0,i.q)((function(e){return c?{value:e,done:!0}:(c=!0,{value:o,done:!(0,a.MC)(o)})}))}catch(s){return(0,i.q)((function(){throw s}))}}({context:o,fn:c,args:s}),p=function(e,t){return e.isSagaIterator?{name:e.meta.name}:(0,i.j)(t)}(f,c);h((function(){var t=F(e,f,l.context,A,p,u,void 0);u?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},P[i.J]=function(e,t,n,r){var o=r.task,c=function(e,t){if(e.isRunning()){var n={task:o,cb:t};t.cancel=function(){e.isRunning()&&(0,i.r)(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if((0,a.IX)(t)){if(0===t.length)return void n([]);var s=(0,i.l)(t,n);t.forEach((function(e,t){c(e,s[t])}))}else c(t,n)},P[i.b]=function(e,t,n,o){var c=o.task;t===r.sC?j(c):(0,a.IX)(t)?t.forEach(j):j(t),n()},P[i.S]=function(e,t,n){var r=t.selector,o=t.args;try{n(r.apply(void 0,[e.getState()].concat(o)))}catch(c){n(c,!0)}},P[i.d]=function(e,t,n){var r=t.pattern,o=C(t.buffer),c=S(r),a=function t(n){x(n)||e.channel.take(t,c),o.put(n)},i=o.close;o.close=function(){a.cancel(),i()},e.channel.take(a,c),n(o)},P[i.f]=function(e,t,n,r){n(r.task.isCancelled())},P[i.g]=function(e,t,n){t.flush(n)},P[i.G]=function(e,t,n,r){n(r.task.context[t])},P[i.h]=function(e,t,n,r){var o=r.task;(0,i.p)(o.context,t),n()},P);function R(e,t){return e+"?"+t}function M(e){var t=e.name,n=e.location;return n?t+" "+R(n.fileName,n.lineNumber):t}function N(e){var t=(0,i.u)((function(e){return e.cancelledTasks}),e);return t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):""}var L=null,B=[],V=function(e){e.crashedEffect=L,B.push(e)},z=function(){L=null,B.length=0},D=function(){var e=B[0],t=B.slice(1),n=e.crashedEffect?function(e){var t=(0,i.v)(e);return t?t.code+" "+R(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+M(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+M(e.meta)})),[N(B)]).join("\n")};function H(e,t,n,o,c,a,s){var l;void 0===s&&(s=i.t);var f,p,d=0,h=null,g=[],m=Object.create(n),w=function(e,t,n){var r,o=[],c=!1;function a(e){t(),u(),n(e,!0)}function s(t){o.push(t),t.cont=function(s,u){c||((0,i.r)(o,t),t.cont=i.t,u?a(s):(t===e&&(r=s),o.length||(c=!0,n(r))))}}function u(){c||(c=!0,o.forEach((function(e){e.cont=i.t,e.cancel()})),o=[])}return s(e),{addTask:s,cancelAll:u,abort:a,getTasks:function(){return o}}}(t,(function(){g.push.apply(g,w.getTasks().map((function(e){return e.meta.name})))}),v);function v(t,n){if(n){if(d=2,V({meta:c,cancelledTasks:g}),b.isRoot){var o=D();z(),e.onError(t,{sagaStack:o})}p=t,h&&h.reject(t)}else t===r.Wd?d=1:1!==d&&(d=3),f=t,h&&h.resolve(t);b.cont(t,n),b.joiners.forEach((function(e){e.cb(t,n)})),b.joiners=null}var b=((l={})[r.Cs]=!0,l.id=o,l.meta=c,l.isRoot=a,l.context=m,l.joiners=[],l.queue=w,l.cancel=function(){0===d&&(d=1,w.cancelAll(),v(r.Wd,!1))},l.cont=s,l.end=v,l.setContext=function(e){(0,i.p)(m,e)},l.toPromise=function(){return h||(h=(0,u.Z)(),2===d?h.reject(p):0!==d&&h.resolve(f)),h.promise},l.isRunning=function(){return 0===d},l.isCancelled=function(){return 1===d||0===d&&1===t.status},l.isAborted=function(){return 2===d},l.result=function(){return f},l.error=function(){return p},l);return b}function F(e,t,n,o,c,s,u){var l=e.finalizeRunEffect((function(t,n,o){if((0,a.MC)(t))Z(t,o);else if((0,a.hZ)(t))F(e,t,p.context,n,c,!1,o);else if(t&&t[r.IO]){(0,I[t.type])(e,t.payload,o,d)}else o(t)}));h.cancel=i.t;var f={meta:c,cancel:function(){0===f.status&&(f.status=1,h(r.Wd))},status:0},p=H(e,f,n,o,c,s,u),d={task:p,digestEffect:g};return u&&(u.cancel=p.cancel),h(),p;function h(e,n){try{var c;n?(c=t.throw(e),z()):(0,i.y)(e)?(f.status=1,h.cancel(),c=(0,a.Yl)(t.return)?t.return(r.Wd):{done:!0,value:r.Wd}):c=(0,i.z)(e)?(0,a.Yl)(t.return)?t.return():{done:!0}:t.next(e),c.done?(1!==f.status&&(f.status=3),f.cont(c.value)):g(c.value,o,h)}catch(s){if(1===f.status)throw s;f.status=2,f.cont(s,!0)}}function g(t,n,r,o){void 0===o&&(o="");var c,a=T();function s(n,o){c||(c=!0,r.cancel=i.t,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),o&&function(e){L=e}(t),r(n,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:o,effect:t}),s.cancel=i.t,r.cancel=function(){c||(c=!0,s.cancel(),s.cancel=i.t,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},l(t,a,s)}}function U(e,t){var n=e.channel,r=void 0===n?O():n,o=e.dispatch,c=e.getState,a=e.context,u=void 0===a?{}:a,l=e.sagaMonitor,f=e.effectMiddlewares,p=e.onError,d=void 0===p?i.B:p;for(var g=arguments.length,m=new Array(g>2?g-2:0),w=2;w<g;w++)m[w-2]=arguments[w];var v=t.apply(void 0,m);var b,y=T();if(l&&(l.rootSagaStarted=l.rootSagaStarted||i.t,l.effectTriggered=l.effectTriggered||i.t,l.effectResolved=l.effectResolved||i.t,l.effectRejected=l.effectRejected||i.t,l.effectCancelled=l.effectCancelled||i.t,l.actionDispatched=l.actionDispatched||i.t,l.rootSagaStarted({effectId:y,saga:t,args:m})),f){var k=s.qC.apply(void 0,f);b=function(e){return function(t,n,r){return k((function(t){return e(t,n,r)}))(t)}}}else b=i.E;var E={channel:r,dispatch:(0,i.D)(o),getState:c,sagaMonitor:l,onError:d,finalizeRunEffect:b};return h((function(){var e=F(E,v,u,y,(0,i.j)(t),!0,void 0);return l&&l.effectResolved(y,e),e}))}t.ZP=function(e){var t,n=void 0===e?{}:e,r=n.context,a=void 0===r?{}:r,s=n.channel,u=void 0===s?O():s,l=n.sagaMonitor,f=(0,c.Z)(n,["context","channel","sagaMonitor"]);function p(e){var n=e.getState,r=e.dispatch;return t=U.bind(null,(0,o.Z)({},f,{context:a,channel:u,dispatch:r,getState:n,sagaMonitor:l})),function(e){return function(t){l&&l.actionDispatched&&l.actionDispatched(t);var n=e(t);return u.put(t),n}}}return p.run=function(){return t.apply(void 0,arguments)},p.setContext=function(e){(0,i.p)(a,e)},p}},5703:function(e,t,n){"use strict";n.d(t,{RE:function(){return o.N},gw:function(){return o.U},gz:function(){return o.Y},Fm:function(){return l}});var r=n(3594),o=n(6660),c=function(e){return{done:!0,value:e}},a={};function i(e){return(0,r.CE)(e)?"channel":(0,r.eR)(e)?String(e):(0,r.Yl)(e)?e.name:String(e)}function s(e,t,n){var r,i,s,u=t;function l(t,n){if(u===a)return c(t);if(n&&!i)throw u=a,n;r&&r(t);var o=n?e[i](n):e[u]();return u=o.nextState,s=o.effect,r=o.stateUpdater,i=o.errorState,u===a?c(t):s}return(0,o.q)(l,(function(e){return l(null,e)}),n)}function u(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),c=2;c<n;c++)r[c-2]=arguments[c];var a,u,l={done:!1,value:(0,o.K)(e)},f=function(e){return{done:!1,value:o.L.apply(void 0,[t].concat(r,[e]))}},p=function(e){return{done:!1,value:(0,o.M)(e)}},d=function(e){return a=e},h=function(e){return u=e};return s({q1:function(){return{nextState:"q2",effect:l,stateUpdater:h}},q2:function(){return a?{nextState:"q3",effect:p(a)}:{nextState:"q1",effect:f(u),stateUpdater:d}},q3:function(){return{nextState:"q1",effect:f(u),stateUpdater:d}}},"q1","takeLatest("+i(e)+", "+t.name+")")}function l(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),c=2;c<n;c++)r[c-2]=arguments[c];return o.L.apply(void 0,[u,e,t].concat(r))}},1884:function(e,t,n){"use strict";function r(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}t.Z=r},5295:function(e,t,n){"use strict";var r=n(3143);t.Z=function(e,t){var n;void 0===t&&(t=!0);var o=new Promise((function(r){n=setTimeout(r,e,t)}));return o[r.n1]=function(){clearTimeout(n)},o}},3594:function(e,t,n){"use strict";n.d(t,{IX:function(){return s},CE:function(){return p},Yl:function(){return a},hZ:function(){return l},Om:function(){return g},d5:function(){return c},uj:function(){return f},MC:function(){return u},Z_:function(){return i},eR:function(){return d},NA:function(){return h},sR:function(){return o}});var r=n(3143),o=function(e){return null==e},c=function(e){return null!=e},a=function(e){return"function"==typeof e},i=function(e){return"string"==typeof e},s=Array.isArray,u=function(e){return e&&a(e.then)},l=function(e){return e&&a(e.next)&&a(e.throw)},f=function e(t){return t&&(i(t)||h(t)||a(t)||s(t)&&t.every(e))},p=function(e){return e&&a(e.take)&&a(e.close)},d=function(e){return a(e)&&e.hasOwnProperty("toString")},h=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},g=function(e){return p(e)&&e[r.AS]}},3143:function(e,t,n){"use strict";n.d(t,{n1:function(){return o},sZ:function(){return c},IO:function(){return a},uq:function(){return i},AS:function(){return s},Nm:function(){return u},b_:function(){return h},sC:function(){return l},Cs:function(){return f},Wd:function(){return p},EO:function(){return d}});var r=function(e){return"@@redux-saga/"+e},o=r("CANCEL_PROMISE"),c=r("CHANNEL_END"),a=r("IO"),i=r("MATCH"),s=r("MULTICAST"),u=r("SAGA_ACTION"),l=r("SELF_CANCELLATION"),f=r("TASK"),p=r("TASK_CANCEL"),d=r("TERMINATE"),h=r("LOCATION")},5869:function(e,t,n){"use strict";var r=n(1119),o=n(4530),c=n(3027);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.Z=function(e){var t=e.icon,n=e.size,i=void 0===n?24:n,s=(0,o.Z)(e,["icon","size"]);return(0,c.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:i,height:i},s))}},5872:function(e,t,n){"use strict";var r=n(3027),o=n(2418),c=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));t.Z=c},4835:function(e,t,n){"use strict";var r=n(3027),o=n(2418),c=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"}));t.Z=c},4131:function(e,t,n){"use strict";var r=n(3027),o=n(2418),c=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));t.Z=c},8371:function(e,t,n){"use strict";var r=n(3027),o=n(2418),c=(0,r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(o.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"}));t.Z=c},2357:function(e,t,n){"use strict";var r=n(3027),o=n(2418),c=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"}));t.Z=c},3029:function(e,t,n){"use strict";var r=n(3027),o=n(2418),c=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"}));t.Z=c},9603:function(e,t,n){"use strict";var r=n(3027),o=n(2418),c=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"}));t.Z=c},2779:function(e,t){var n;
|
2 |
/*!
|
3 |
Copyright (c) 2018 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
-
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var c=typeof n;if("string"===c||"number"===c)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===c)if(n.toString===Object.prototype.toString)for(var i in n)r.call(n,i)&&n[i]&&e.push(i);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},9568:function(){},3689:function(){},3536:function(){},2397:function(e,t,n){"use strict";var r=n(1260);t.ZP=r.ZP},608:function(e,t,n){"use strict";n.d(t,{RE:function(){return r.RE},gw:function(){return r.gw},gz:function(){return r.gz},Fm:function(){return r.Fm}});var r=n(5703)},8717:function(e,t,n){"use strict";n.d(t,{md:function(){return p},qC:function(){return f},MT:function(){return i}});var r=n(4527),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function i(e,t,n){var o;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(i)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,u=t,l=[],f=l,p=!1;function d(){f===l&&(f=l.slice())}function h(){if(p)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return u}function g(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(p)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return d(),f.push(e),function(){if(t){if(p)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,d();var n=f.indexOf(e);f.splice(n,1),l=null}}}function m(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,u=s(u,e)}finally{p=!1}for(var t=l=f,n=0;n<t.length;n++){(0,t[n])()}return e}function w(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");s=e,m({type:c.REPLACE})}function v(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[r.Z]=function(){return this},e}return m({type:c.INIT}),(o={dispatch:m,subscribe:g,getState:h,replaceReducer:w})[r.Z]=v,o}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(n,!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},c=t.map((function(e){return e(o)}));return l({},n,{dispatch:r=f.apply(void 0,c)(n.dispatch)})}}}},4527:function(e,t,n){"use strict";var r,o=n(9462);e=n.hmd(e),r="undefined"!=typeof self?self:"undefined"!=typeof window||"undefined"!=typeof window?window:e;var c=(0,o.Z)(r);t.Z=c},9462:function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,{Z:function(){return r}})},1136:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var r="a8c/posts-carousel"},741:function(e,t,n){"use strict";var r,o=n(1766),c=n(4659),a=n(4730),i=n(3989),s=n(5663),u=n(9049),l=n(1119),f=n(3027),p=n(5113),d=n(8328),h=n(904),g=n(2779),m=n.n(g),w=n(3163),v=n(7947),b=n(6399),y=n(7997),k=n(5707),E=n(1417),S=n(1424),_=n(5869),x=n(5872),C=n(4131),O=n(2357),Z=n(3029),P=n(9603),A=n(8371),T=n(4835),__=w.__;"object"==typeof window&&window.newspack_blocks_data&&window.newspack_blocks_data.post_subtitle&&(r=!0);var j=(0,f.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,f.createElement)(y.Path,{clipRule:"evenodd",d:"M18.714 7.5H5.286a.786.786 0 00-.786.786v7.428c0 .434.352.786.786.786h13.428a.786.786 0 00.786-.786V8.286a.786.786 0 00-.786-.786zM5.286 6A2.286 2.286 0 003 8.286v7.428A2.286 2.286 0 005.286 18h13.428A2.286 2.286 0 0021 15.714V8.286A2.286 2.286 0 0018.714 6H5.286z",fillRule:"evenodd"})),I=(0,f.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,f.createElement)(y.Path,{clipRule:"evenodd",d:"M15.714 4.5H8.286a.786.786 0 00-.786.786v13.428c0 .434.352.786.786.786h7.428a.786.786 0 00.786-.786V5.286a.786.786 0 00-.786-.786zM8.286 3A2.286 2.286 0 006 5.286v13.428A2.286 2.286 0 008.286 21h7.428A2.286 2.286 0 0018 18.714V5.286A2.286 2.286 0 0015.714 3H8.286z",fillRule:"evenodd"})),R=(0,f.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,f.createElement)(y.Path,{clipRule:"evenodd",d:"M18.714 4.5H5.286a.786.786 0 00-.786.786v13.428c0 .434.352.786.786.786h13.428a.786.786 0 00.786-.786V5.286a.786.786 0 00-.786-.786zM5.286 3A2.286 2.286 0 003 5.286v13.428A2.286 2.286 0 005.286 21h13.428A2.286 2.286 0 0021 18.714V5.286A2.286 2.286 0 0018.714 3H5.286z",fillRule:"evenodd"})),M=function(e){(0,s.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;(0,c.Z)(this,n);for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return e=t.call.apply(t,[this].concat(s)),(0,l.Z)((0,i.Z)(e),"renderPost",(function(t){var n=e.props,o=n.attributes,c=n.isUIDisabled,a=o.showImage,i=o.imageShape,s=o.mediaPosition,u=o.minHeight,l=o.showCaption,p=o.showExcerpt,d=o.showReadMore,g=o.readMoreLabel,w=o.showSubtitle,y=o.showAuthor,k=o.showAvatar,E=o.showDate,_=o.showCategory,x=o.sectionHeader,C={minHeight:"behind"===s&&a&&t.newspack_featured_image_src&&u+"vh",paddingTop:"behind"===s&&a&&t.newspack_featured_image_src&&u/5+"vh"},O=m()({"post-has-image":t.newspack_featured_image_src,"newspack-block--disabled":c},t.newspack_article_classes),Z=e.titleForPost(t),P=(0,v.__experimentalGetSettings)().formats.date;return(0,f.createElement)("article",{className:O,key:t.id,style:C},a&&t.newspack_featured_image_src&&(0,f.createElement)("figure",{className:"post-thumbnail",key:"thumbnail"},(0,f.createElement)("a",{href:"#"},"landscape"===i&&(0,f.createElement)("img",{src:t.newspack_featured_image_src.landscape,alt:""}),"portrait"===i&&(0,f.createElement)("img",{src:t.newspack_featured_image_src.portrait,alt:""}),"square"===i&&(0,f.createElement)("img",{src:t.newspack_featured_image_src.square,alt:""}),"uncropped"===i&&(0,f.createElement)("img",{src:t.newspack_featured_image_src.uncropped,alt:""})),l&&""!==t.newspack_featured_image_caption&&(0,f.createElement)("figcaption",null,t.newspack_featured_image_caption)),(0,f.createElement)("div",{className:"entry-wrapper"},t.newspack_post_sponsors&&(0,f.createElement)("span",{className:"cat-links sponsor-label"},(0,f.createElement)("span",{className:"flag"},t.newspack_post_sponsors[0].flag)),_&&t.newspack_category_info.length&&!t.newspack_post_sponsors&&(0,f.createElement)("div",{className:"cat-links"},(0,f.createElement)("a",{href:"#"},(0,S.decodeEntities)(t.newspack_category_info))),b.RichText.isEmpty(x)?(0,f.createElement)("h2",{className:"entry-title",key:"title"},"aside"===t.newspack_post_format?Z:(0,f.createElement)("a",{href:"#"},Z)):(0,f.createElement)("h3",{className:"entry-title",key:"title"},"aside"===t.newspack_post_format?Z:(0,f.createElement)("a",{href:"#"},Z)),r&&w&&(0,f.createElement)(f.RawHTML,{key:"subtitle",className:"newspack-post-subtitle newspack-post-subtitle--in-homepage-block"},t.meta.newspack_post_subtitle||""),p&&(0,f.createElement)(f.RawHTML,{key:"excerpt",className:"excerpt-contain"},"aside"===t.newspack_post_format?t.content.rendered:t.excerpt.rendered),d&&t.post_link&&(0,f.createElement)("a",{href:"#",key:"readmore",className:"more-link"},g),(0,f.createElement)("div",{className:"entry-meta"},t.newspack_post_sponsors&&(0,h.b2)(t.newspack_post_sponsors),t.newspack_post_sponsors&&(0,h.Q$)(t.newspack_post_sponsors),y&&!t.newspack_listings_hide_author&&k&&!t.newspack_post_sponsors&&(0,h.lW)(t.newspack_author_info),y&&!t.newspack_listings_hide_author&&!t.newspack_post_sponsors&&(0,h.FX)(t.newspack_author_info),E&&!t.newspack_listings_hide_publish_date&&(0,f.createElement)("time",{className:"entry-date published",key:"pub-date"},(0,v.dateI18n)(P,t.date_gmt)))))})),(0,l.Z)((0,i.Z)(e),"titleForPost",(function(e){return e.title?"string"==typeof e.title?(0,S.decodeEntities)(e.title.trim()):"object"==typeof e.title&&e.title.rendered?(0,S.decodeEntities)(e.title.rendered.trim()):void 0:""})),(0,l.Z)((0,i.Z)(e),"renderInspectorControls",(function(){var t=e.props,n=t.attributes,c=t.availablePostTypes,a=t.setAttributes,i=t.textColor,s=t.setTextColor,u=n.authors,l=n.specificPosts,h=n.postsToShow,g=n.categories,m=n.columns,w=n.postType,v=n.showImage,k=n.showCaption,E=n.imageScale,S=n.mobileStack,_=n.minHeight,x=n.moreButton,C=n.showExcerpt,O=n.showReadMore,Z=n.readMoreLabel,P=n.excerptLength,A=n.showSubtitle,T=n.typeScale,j=n.showDate,I=n.showAuthor,R=n.showAvatar,M=n.showCategory,N=n.postLayout,L=n.mediaPosition,B=n.specificMode,V=n.tags,z=n.tagExclusions,D=n.categoryExclusions,H=[{value:1,label:__("Small","newspack-blocks"),shortName:__("S","newspack-blocks")},{value:2,label:__("Medium","newspack-blocks"),shortName:__("M","newspack-blocks")},{value:3,label:__("Large","newspack-blocks"),shortName:__("L","newspack-blocks")},{value:4,label:__("Extra Large","newspack-blocks"),shortName:__("XL","newspack-blocks")}];return(0,f.createElement)(f.Fragment,null,(0,f.createElement)(y.PanelBody,{title:__("Display Settings","newspack-blocks"),initialOpen:!0},(0,f.createElement)(p.Z,{numberOfItems:h,onNumberOfItemsChange:function(e){return a({postsToShow:e||1})},specificMode:B,onSpecificModeChange:function(e){return a({specificMode:e})},specificPosts:l,onSpecificPostsChange:function(e){return a({specificPosts:e})},authors:u,onAuthorsChange:function(e){return a({authors:e})},categories:g,onCategoriesChange:function(e){return a({categories:e})},tags:V,onTagsChange:function(e){a({tags:e})},tagExclusions:z,onTagExclusionsChange:function(e){return a({tagExclusions:e})},categoryExclusions:D,onCategoryExclusionsChange:function(e){return a({categoryExclusions:e})},postType:w}),"grid"===N&&(0,f.createElement)(y.RangeControl,{label:__("Columns","newspack-blocks"),value:m,onChange:function(e){return a({columns:e})},min:2,max:6,required:!0}),!B&&(0,d.pM)()?(0,f.createElement)("i",null,__('This blog is private, therefore the "Load more posts" feature is not active.',"newspack-blocks")):!B&&(0,f.createElement)(y.ToggleControl,{label:__('Show "Load more posts" Button',"newspack-blocks"),checked:x,onChange:function(){return a({moreButton:!x})}})),(0,f.createElement)(y.PanelBody,{title:__("Featured Image Settings","newspack-blocks")},(0,f.createElement)(y.PanelRow,null,(0,f.createElement)(y.ToggleControl,{label:__("Show Featured Image","newspack-blocks"),checked:v,onChange:function(){return a({showImage:!v})}})),v&&(0,f.createElement)(y.PanelRow,null,(0,f.createElement)(y.ToggleControl,{label:__("Show Featured Image Caption","newspack-blocks"),checked:k,onChange:function(){return a({showCaption:!k})}})),v&&"top"!==L&&"behind"!==L&&(0,f.createElement)(f.Fragment,null,(0,f.createElement)(y.PanelRow,null,(0,f.createElement)(y.ToggleControl,{label:__("Stack on mobile","newspack-blocks"),checked:S,onChange:function(){return a({mobileStack:!S})}})),(0,f.createElement)(y.BaseControl,{label:__("Featured Image Size","newspack-blocks"),id:"newspackfeatured-image-size"},(0,f.createElement)(y.PanelRow,null,(0,f.createElement)(y.ButtonGroup,{id:"newspackfeatured-image-size","aria-label":__("Featured Image Size","newspack-blocks")},H.map((function(e){var t=E===e.value;return(0,f.createElement)(y.Button,{isLarge:!0,isPrimary:t,"aria-pressed":t,"aria-label":e.label,key:e.value,onClick:function(){return a({imageScale:e.value})}},e.shortName)})))))),v&&"behind"===L&&(0,f.createElement)(y.RangeControl,{label:__("Minimum height","newspack-blocks"),help:__("Sets a minimum height for the block, using a percentage of the screen's current height.","newspack-blocks"),value:_,onChange:function(e){return a({minHeight:e})},min:0,max:100,required:!0})),(0,f.createElement)(y.PanelBody,{title:__("Post Control Settings","newspack-blocks")},r&&(0,f.createElement)(y.PanelRow,null,(0,f.createElement)(y.ToggleControl,{label:__("Show Subtitle","newspack-blocks"),checked:A,onChange:function(){return a({showSubtitle:!A})}})),(0,f.createElement)(y.PanelRow,null,(0,f.createElement)(y.ToggleControl,{label:__("Show Excerpt","newspack-blocks"),checked:C,onChange:function(){return a({showExcerpt:!C})}})),C&&(0,f.createElement)(y.RangeControl,{label:__("Max number of words in excerpt","newspack-blocks"),value:P,onChange:function(e){return a({excerptLength:e})},min:10,max:100}),(0,f.createElement)(y.ToggleControl,{label:__('Add a "Read More" link',"newspack-blocks"),checked:O,onChange:function(){return a({showReadMore:!O})}}),O&&(0,f.createElement)(y.TextControl,{label:__('"Read More" link text',"newspack-blocks"),value:Z,placeholder:Z,onChange:function(e){return a({readMoreLabel:e})}}),(0,f.createElement)(y.RangeControl,{className:"type-scale-slider",label:__("Type Scale","newspack-blocks"),value:T,onChange:function(e){return a({typeScale:e})},min:1,max:10,required:!0})),(0,f.createElement)(b.PanelColorSettings,{title:__("Color Settings","newspack-blocks"),initialOpen:!0,colorSettings:[{value:i.color,onChange:s,label:__("Text Color","newspack-blocks")}]}),(0,f.createElement)(y.PanelBody,{title:__("Post Meta Settings","newspack-blocks")},(0,f.createElement)(y.PanelRow,null,(0,f.createElement)(y.ToggleControl,{label:__("Show Date","newspack-blocks"),checked:j,onChange:function(){return a({showDate:!j})}})),(0,f.createElement)(y.PanelRow,null,(0,f.createElement)(y.ToggleControl,{label:__("Show Category","newspack-blocks"),checked:M,onChange:function(){return a({showCategory:!M})}})),(0,f.createElement)(y.PanelRow,null,(0,f.createElement)(y.ToggleControl,{label:__("Show Author","newspack-blocks"),checked:I,onChange:function(){return a({showAuthor:!I})}})),I&&(0,f.createElement)(y.PanelRow,null,(0,f.createElement)(y.ToggleControl,{label:__("Show Author Avatar","newspack-blocks"),checked:R,onChange:function(){return a({showAvatar:!R})}}))),(0,f.createElement)(y.PanelBody,{title:__("Post Types","newspack-blocks")},c&&c.map((function(e){var t=e.name,n=e.slug;return(0,f.createElement)(y.PanelRow,{key:n},(0,f.createElement)(y.CheckboxControl,{label:t,checked:w.indexOf(n)>-1,onChange:function(e){var t=(0,o.Z)(new Set(w));e&&-1===t.indexOf(n)?t.push(n):!e&&t.indexOf(n)>-1&&t.splice(t.indexOf(n),1),a({postType:t})}}))}))))})),e}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.props.triggerReflow()}},{key:"componentDidUpdate",value:function(e){(0,d.Ou)(e,this.props)&&this.props.triggerReflow()}},{key:"componentWillUnmount",value:function(){this.props.triggerReflow()}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,o=n.className,c=n.setAttributes,a=n.isSelected,i=n.latestPosts,s=n.textColor,u=n.error,p=r.showImage,h=r.imageShape,g=r.postLayout,w=r.mediaPosition,v=r.moreButton,k=r.moreButtonText,E=r.columns,S=r.typeScale,M=r.imageScale,N=r.mobileStack,L=r.sectionHeader,B=r.showCaption,V=r.showCategory,z=r.specificMode,D=m()(o,(e={"is-grid":"grid"===g,"show-image":p},(0,l.Z)(e,"columns-".concat(E),"grid"===g),(0,l.Z)(e,"ts-".concat(S),"5"!==S),(0,l.Z)(e,"image-align".concat(w),p),(0,l.Z)(e,"is-".concat(M),"1"!==M&&p),(0,l.Z)(e,"mobile-stack",N),(0,l.Z)(e,"is-".concat(h),p),(0,l.Z)(e,"has-text-color",""!==s.color),(0,l.Z)(e,"show-caption",B),(0,l.Z)(e,"show-category",V),(0,l.Z)(e,"wpnbha",!0),e)),H=[{icon:(0,f.createElement)(_.Z,{icon:x.Z}),title:__("List View","newspack-blocks"),onClick:function(){return c({postLayout:"list"})},isActive:"list"===g},{icon:(0,f.createElement)(_.Z,{icon:C.Z}),title:__("Grid View","newspack-blocks"),onClick:function(){return c({postLayout:"grid"})},isActive:"grid"===g}],F=[{icon:(0,f.createElement)(_.Z,{icon:O.Z}),title:__("Show media on top","newspack-blocks"),isActive:"top"===w,onClick:function(){return c({mediaPosition:"top"})}},{icon:(0,f.createElement)(_.Z,{icon:Z.Z}),title:__("Show media on left","newspack-blocks"),isActive:"left"===w,onClick:function(){return c({mediaPosition:"left"})}},{icon:(0,f.createElement)(_.Z,{icon:P.Z}),title:__("Show media on right","newspack-blocks"),isActive:"right"===w,onClick:function(){return c({mediaPosition:"right"})}},{icon:(0,f.createElement)(_.Z,{icon:A.Z}),title:__("Show media behind","newspack-blocks"),isActive:"behind"===w,onClick:function(){return c({mediaPosition:"behind"})}}],U=[{icon:j,title:__("Landscape Image Shape","newspack-blocks"),isActive:"landscape"===h,onClick:function(){return c({imageShape:"landscape"})}},{icon:I,title:__("portrait Image Shape","newspack-blocks"),isActive:"portrait"===h,onClick:function(){return c({imageShape:"portrait"})}},{icon:R,title:__("Square Image Shape","newspack-blocks"),isActive:"square"===h,onClick:function(){return c({imageShape:"square"})}},{icon:(0,f.createElement)(_.Z,{icon:T.Z}),title:__("Uncropped","newspack-blocks"),isActive:"uncropped"===h,onClick:function(){return c({imageShape:"uncropped"})}}];return(0,f.createElement)(f.Fragment,null,(0,f.createElement)("div",{className:D,style:{color:s.color}},(0,f.createElement)("div",null,i&&(!b.RichText.isEmpty(L)||a)&&(0,f.createElement)(b.RichText,{onChange:function(e){return c({sectionHeader:e})},placeholder:__("Write header…","newspack-blocks"),value:L,tagName:"h2",className:"article-section-title"}),i&&!i.length&&(0,f.createElement)(y.Placeholder,null,__("Sorry, no posts were found.","newspack-blocks")),!i&&!u&&(0,f.createElement)(y.Placeholder,{icon:(0,f.createElement)(y.Spinner,null),className:"component-placeholder__align-center"}),!i&&u&&(0,f.createElement)(y.Placeholder,{className:"component-placeholder__align-center newspack-block--error"},u),i&&i.map((function(e){return t.renderPost(e)})))),!z&&i&&v&&!(0,d.pM)()&&(0,f.createElement)("div",{className:"editor-styles-wrapper wpnbha__wp-block-button__wrapper"},(0,f.createElement)("div",{className:"wp-block-button"},(0,f.createElement)(b.RichText,{placeholder:__("Load more posts","newspack-blocks"),value:k,onChange:function(e){return c({moreButtonText:e})},className:"wp-block-button__link",keepPlaceholderOnFocus:!0,allowedFormats:[]}))),(0,f.createElement)(b.BlockControls,null,(0,f.createElement)(y.Toolbar,{controls:H}),p&&(0,f.createElement)(y.Toolbar,{controls:F}),p&&(0,f.createElement)(y.Toolbar,{controls:U})),(0,f.createElement)(b.InspectorControls,null,this.renderInspectorControls()))}}]),n}(f.Component);t.Z=(0,E.compose)([(0,b.withColors)({textColor:"color"}),(0,k.withSelect)(d.b9),(0,k.withDispatch)(d.eL)])(M)},4960:function(e,t,n){"use strict";n.d(t,{Xd:function(){return p}});var r=n(3027),o=n(9314),c=n(7997),a=n(5799),i=n(3163),s=n(741),u=(n(9568),n(3689),n(8177)),__=i.__,_x=i._x,l=(u.u2,u.Y4),f=u.W3,p={title:__("Homepage Posts","newspack-blocks"),icon:{src:(0,r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(c.Path,{d:"M6.5 14.25H11v-1.5H6.5zM14.5 11.25h-8v-1.5h8zM6.5 8.25h8v-1.5h-8z"}),(0,r.createElement)(c.Path,{clipRule:"evenodd",d:"M4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.272 3.728 18 4.625 18h11.75c.897 0 1.625-.728 1.625-1.625V4.625C18 3.728 17.272 3 16.375 3zm11.75 1.5H4.625a.125.125 0 00-.125.125v11.75c0 .069.056.125.125.125h11.75a.125.125 0 00.125-.125V4.625a.125.125 0 00-.125-.125z",fillRule:"evenodd"}),(0,r.createElement)(c.Path,{d:"M20.25 8v11c0 .69-.56 1.25-1.249 1.25H6v1.5h13.001A2.749 2.749 0 0021.75 19V8z"})),foreground:"#36f"},attributes:l,category:f,keywords:[__("posts","newspack-blocks"),__("articles","newspack-blocks"),__("latest","newspack-blocks")],description:__("A block for displaying homepage posts.","newspack-blocks"),styles:[{name:"default",label:_x("Default","block style","newspack-blocks"),isDefault:!0},{name:"borders",label:_x("Borders","block style","newspack-blocks")}],supports:{html:!1,align:["wide","full"],default:""},edit:s.Z,save:function(){return null},transforms:{from:[{type:"block",blocks:["core/latest-posts"],transform:function(e){var t=e.displayPostContent,n=e.displayPostDate,r=e.postLayout,c=e.columns,i=e.postsToShow,s=e.categories;return(0,o.createBlock)((0,a.applyFilters)("blocks.transforms_from_name","newspack-blocks/homepage-articles"),{showExcerpt:t,showDate:n,postLayout:r,columns:c,postsToShow:i,showAuthor:!1,categories:s?[s]:[]})}}],to:[{type:"block",blocks:["core/latest-posts"],transform:function(e){var t=e.showExcerpt,n=e.showDate,r=e.postLayout,c=e.columns,a=e.postsToShow,i=e.categories;return(0,o.createBlock)("core/latest-posts",{displayPostContent:t,displayPostDate:n,postLayout:r,columns:c,postsToShow:a,categories:i[0]||""})}}]}}},9707:function(e,t,n){"use strict";n.d(t,{$:function(){return w},f:function(){return O}});var r=n(1766),o=n(9394),c=n(8717),a=n(608),i=n(2397),s=n(3804),u=n(5707),l=n(7606),f=n.n(l),p=n(791),d=n(8177),h=n(8328),g=regeneratorRuntime.mark(C),m=d.u2,w="newspack-blocks/".concat(m),v={postsByBlock:{},errorsByBlock:{}},b={reflow:function(){E.dispatch({type:"REFLOW"})}},y={getPosts:function(e){var t=e.clientId;return E.getState().postsByBlock[t]},getError:function(e){var t=e.clientId;return E.getState().errorsByBlock[t]},isUIDisabled:function(){return E.getState().isUIDisabled}},k=(0,i.ZP)(),E=(0,c.MT)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISABLE_UI":return(0,s.set)(e,"isUIDisabled",!0);case"ENABLE_UI":return(0,s.set)(e,"isUIDisabled",!1);case"UPDATE_BLOCK_POSTS":return(0,s.set)(e,["postsByBlock",t.clientId],t.posts);case"UPDATE_BLOCK_ERROR":return(0,s.set)(e,["errorsByBlock",t.clientId],t.error)}return e}),(0,c.md)(k)),S=(0,o.Z)({getSelectors:function(){return y},getActions:function(){return b}},E),_={},x=JSON.stringify;function C(e){var t,n,r,c,i;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(t=x(e.postsQuery),n=window.newspack_blocks_data.posts_rest_url,void 0!==(r=_[t])){s.next=9;break}return c=(0,p.addQueryArgs)(n,(0,o.Z)((0,o.Z)({},e.postsQuery),{},{context:"edit"})),s.next=7,(0,a.RE)(f(),{url:c});case 7:r=s.sent,_[t]=r;case 9:return i=r.map((function(e){return e.id})),s.next=12,(0,a.gz)({type:"UPDATE_BLOCK_POSTS",clientId:e.clientId,posts:r});case 12:return s.abrupt("return",i);case 13:case"end":return s.stop()}}),g)}var O=function(e){(0,u.registerGenericStore)(w,S),k.run(function(e){var t=regeneratorRuntime.mark(n);function n(){var n,o,c,i,s,l,f,p,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.gw)(300);case 2:return n=(0,u.select)("core/block-editor"),o=n.getBlocks,c=(0,u.select)("core/editor"),i=c.getCurrentPostId,t.next=6,(0,a.gz)({type:"DISABLE_UI"});case 6:s=(0,h.Pi)(o(),e),l=s.reduce((function(e,t){var n=t.postsQuery;return n.include&&(e=[].concat((0,r.Z)(e),(0,r.Z)(n.include))),e}),[]),f=(0,h.Oi)([].concat((0,r.Z)(l),[i()]));case 9:if(!s.length){t.next=26;break}return(p=s.shift()).postsQuery.exclude=f,d=[],t.prev=13,t.next=16,(0,a.RE)(C,p);case 16:d=t.sent,t.next=23;break;case 19:return t.prev=19,t.t0=t.catch(13),t.next=23,(0,a.gz)({type:"UPDATE_BLOCK_ERROR",clientId:p.clientId,error:t.t0.message});case 23:f=[].concat((0,r.Z)(f),(0,r.Z)(d)),t.next=9;break;case 26:return t.next=28,(0,a.gz)({type:"ENABLE_UI"});case 28:case"end":return t.stop()}}),t,null,[[13,19]])}return regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.Fm)("REFLOW",n);case 2:case"end":return e.stop()}}),e)}))}(e))}},8328:function(e,t,n){"use strict";n.d(t,{pM:function(){return a},Ou:function(){return s},Oi:function(){return u},Pi:function(){return l},b9:function(){return h},eL:function(){return g}});var r=n(3804),o=n(3163),c=n(9707),__=o.__,a=function(){return"object"==typeof window&&window.wpcomGutenberg&&-1===Number(window.wpcomGutenberg.blogPublic)},i=["postsToShow","authors","categories","excerptLength","tags","showExcerpt","specificPosts","specificMode","tagExclusions","categoryExclusions","postType"],s=function(e,t){return!(0,r.isEqual)((0,r.pick)(e.attributes,i),(0,r.pick)(t.attributes,i))||!(0,r.isEqual)(e.topBlocksClientIdsInOrder,t.topBlocksClientIdsInOrder)},u=function(e){return e.map((function(e){return parseInt(e)})).filter((function(e){return e>0}))},l=function e(t,n){return t.flatMap((function(t){var o,c,a,s,l,f,p,d,h,g,m,w,v,b,y,k,E,S=[];if(n.indexOf(t.name)>=0){var _=(o=t.attributes,c=(0,r.pick)(o,i),a=c.postsToShow,s=c.authors,l=c.categories,f=c.excerptLength,p=c.postType,d=c.showExcerpt,h=c.tags,g=c.specificPosts,m=void 0===g?[]:g,w=c.specificMode,v=c.tagExclusions,b=c.categoryExclusions,y=u(m),k=w&&y&&y.length,(E=(0,r.pickBy)(k?{include:y,per_page:m.length,post_type:p}:{per_page:a,categories:l,author:s,tags:h,tags_exclude:v,categories_exclude:b,post_type:p},(function(e){return!(0,r.isUndefined)(e)}))).excerpt_length=f,E.show_excerpt=d,E);S.push({postsQuery:_,clientId:t.clientId})}return S.concat(e(t.innerBlocks,n))}))},f=function e(t){return t.flatMap((function(t){var n=[];return n.push(t.clientId),n.concat(e(t.innerBlocks))}))},p=window.newspack_blocks_data.assets_path,d=function(e){var t=new Date;return t.setHours(12,0,0,0),{author:1,content:{rendered:"<p>"+__("The post content.","newspack")+"</p>"},date_gmt:t.toISOString(),excerpt:{rendered:"<p>"+__("The post excerpt.","newspack")+"</p>"},featured_media:"1",id:e,meta:{newspack_post_subtitle:__("Post Subtitle","newspack")},title:{rendered:__("Post Title","newspack")},newspack_article_classes:"type-post",newspack_author_info:[{display_name:__("Author Name","newspack"),avatar:'<div style="background: #36f;width: 40px;height: 40px;display: block;overflow: hidden;border-radius: 50%; max-width: 100%; max-height: 100%;"></div>',id:1,author_link:"/"}],newspack_category_info:__("Category","newspack"),newspack_featured_image_caption:__("Featured image caption","newspack"),newspack_featured_image_src:{large:"".concat(p,"/newspack-1024x536.jpg"),landscape:"".concat(p,"/newspack-800x600.jpg"),portrait:"".concat(p,"/newspack-600x800.jpg"),square:"".concat(p,"/newspack-800x800.jpg"),uncropped:"".concat(p,"/newspack-1024x536.jpg")},newspack_has_custom_excerpt:!1,newspack_post_format:"standard",newspack_post_sponsors:!1}},h=function(e,t){var n,o=t.clientId,a=t.attributes,i=e("core").getPostTypes,s=e("core/editor").getEditorBlocks,u=e("core/block-editor").getBlocks,l=f(s()).indexOf(o)>=0,p=e(c.$),h=p.getPosts,g=p.getError,m={isEditorBlock:l,isUIDisabled:(0,p.isUIDisabled)(),error:g({clientId:o}),topBlocksClientIdsInOrder:u().map((function(e){return e.clientId})),availablePostTypes:null===(n=i({per_page:-1}))||void 0===n?void 0:n.filter((function(e){return e.supports.newspack_blocks}))};return m.latestPosts=l?h({clientId:o}):function(e){return(0,r.times)(e.postsToShow,d)}(a),m},g=function(e,t){return{triggerReflow:t.isEditorBlock?e(c.$).reflow:function(){}}}},7045:function(e,t,n){"use strict";var r=n(1766),o=n(4659),c=n(4730),a=n(3989),i=n(5663),s=n(9049),u=n(1119),l=n(3027),f=n(3804),p=n(7997),d=(n(3536),function(e){(0,i.Z)(n,e);var t=(0,s.Z)(n);function n(e){var r;return(0,o.Z)(this,n),r=t.call(this,e),(0,u.Z)((0,a.Z)(r),"isFetchingInfoOnLoad",(function(){var e=r.props,t=e.tokens,n=e.fetchSavedInfo;return Boolean(t.length&&n)})),r.state={suggestions:[],validValues:{},loading:r.isFetchingInfoOnLoad()},r.debouncedUpdateSuggestions=(0,f.debounce)(r.updateSuggestions,500),r}return(0,c.Z)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.isFetchingInfoOnLoad()){var t=this.props,n=t.tokens;(0,t.fetchSavedInfo)(n).then((function(t){var n=e.state.validValues;t.forEach((function(e){n[e.value]=e.label})),e.setState({validValues:n,loading:!1})}))}}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest,this.debouncedUpdateSuggestions.cancel()}},{key:"getLabelsForValues",value:function(e){var t=this.state.validValues;return e.reduce((function(e,n){return t[n]?[].concat((0,r.Z)(e),[t[n]]):e}),[])}},{key:"getValuesForLabels",value:function(e){var t=this.state.validValues;return e.map((function(e){return Object.keys(t).find((function(n){return t[n]===e}))}))}},{key:"updateSuggestions",value:function(e){var t=this,n=this.props.fetchSuggestions;n&&this.setState({loading:!0},(function(){var r=n(e);r.then((function(e){if(t.suggestionsRequest===r){var n=t.state.validValues,o=[];e.forEach((function(e){var t=e.label.trim();o.indexOf(t)>=0&&(e.label="".concat(t," (").concat(e.value,")")),o.push(t),n[e.value]=t})),t.setState({suggestions:o,validValues:n,loading:!1})}})).catch((function(){t.suggestionsRequest===r&&t.setState({loading:!1})})),t.suggestionsRequest=r}))}},{key:"handleOnChange",value:function(e){(0,this.props.onChange)(this.getValuesForLabels(e))}},{key:"getTokens",value:function(){var e=this.props.tokens;return this.getLabelsForValues(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.help,r=t.label,o=void 0===r?"":r,c=this.state,a=c.suggestions,i=c.loading;return(0,l.createElement)("div",{className:"autocomplete-tokenfield"},(0,l.createElement)(p.FormTokenField,{value:this.getTokens(),suggestions:a,onChange:function(t){return e.handleOnChange(t)},onInputChange:function(t){return e.debouncedUpdateSuggestions(t)},label:o}),i&&(0,l.createElement)(p.Spinner,null),n&&(0,l.createElement)("p",{className:"autocomplete-tokenfield__help"},n))}}]),n}(l.Component));t.Z=d},5113:function(e,t,n){"use strict";var r=n(7560),o=n(4659),c=n(3989),a=n(5663),i=n(9049),s=n(1119),u=n(3027),l=n(3163),f=n(7997),p=n(7606),d=n.n(p),h=n(791),g=n(1424),m=n(7045),__=l.__,w=function(e){return(0,g.decodeEntities)(e.name)||__("(no title)","newspack-blocks")},v=function(e){(0,a.Z)(n,e);var t=(0,i.Z)(n);function n(){var e;(0,o.Z)(this,n);for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return e=t.call.apply(t,[this].concat(i)),(0,s.Z)((0,c.Z)(e),"state",{showAdvancedFilters:!1}),(0,s.Z)((0,c.Z)(e),"fetchPostSuggestions",(function(t){var n=e.props.postType,r=window.newspack_blocks_data.specific_posts_rest_url;return d()({url:(0,h.addQueryArgs)(r,{search:t,per_page:20,_fields:"id,title",type:"post",post_type:n})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,g.decodeEntities)(e.title)||__("(no title)","newspack-blocks")}}))}))})),(0,s.Z)((0,c.Z)(e),"fetchSavedPosts",(function(e){return d()({path:(0,h.addQueryArgs)("/wp/v2/posts",{per_page:100,include:e.join(","),_fields:"id,title"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,g.decodeEntities)(e.title.rendered)||__("(no title)","newspack-blocks")}}))}))})),(0,s.Z)((0,c.Z)(e),"fetchAuthorSuggestions",(function(e){return d()({path:(0,h.addQueryArgs)("/wp/v2/users",{search:e,per_page:20,_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,g.decodeEntities)(e.name)||__("(no name)","newspack-blocks")}}))}))})),(0,s.Z)((0,c.Z)(e),"fetchSavedAuthors",(function(e){return d()({path:(0,h.addQueryArgs)("/wp/v2/users",{per_page:100,include:e.join(","),_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,g.decodeEntities)(e.name)||__("(no name)","newspack-blocks")}}))}))})),(0,s.Z)((0,c.Z)(e),"fetchCategorySuggestions",(function(e){return d()({path:(0,h.addQueryArgs)("/wp/v2/categories",{search:e,per_page:20,_fields:"id,name,parent",orderby:"count",order:"desc"})}).then((function(e){return Promise.all(e.map((function(e){return e.parent>0?d()({path:(0,h.addQueryArgs)("/wp/v2/categories/".concat(e.parent),{_fields:"name"})}).then((function(t){return{value:e.id,label:"".concat(w(e)," – ").concat(w(t))}})):Promise.resolve({value:e.id,label:w(e)})})))}))})),(0,s.Z)((0,c.Z)(e),"fetchSavedCategories",(function(e){return d()({path:(0,h.addQueryArgs)("/wp/v2/categories",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,g.decodeEntities)(e.name)||__("(no title)","newspack-blocks")}}))}))})),(0,s.Z)((0,c.Z)(e),"fetchTagSuggestions",(function(e){return d()({path:(0,h.addQueryArgs)("/wp/v2/tags",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,g.decodeEntities)(e.name)||__("(no title)","newspack-blocks")}}))}))})),(0,s.Z)((0,c.Z)(e),"fetchSavedTags",(function(e){return d()({path:(0,h.addQueryArgs)("/wp/v2/tags",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,g.decodeEntities)(e.name)||__("(no title)","newspack-blocks")}}))}))})),(0,s.Z)((0,c.Z)(e),"render",(function(){var t=e.props,n=t.specificMode,o=t.onSpecificModeChange,c=t.specificPosts,a=t.onSpecificPostsChange,i=t.authors,s=t.onAuthorsChange,l=t.categories,p=t.onCategoriesChange,d=t.tags,h=t.onTagsChange,g=t.tagExclusions,w=t.onTagExclusionsChange,v=t.categoryExclusions,b=t.onCategoryExclusionsChange,y=t.enableSpecific,k=e.state.showAdvancedFilters;return[y&&(0,u.createElement)(f.ToggleControl,{key:"specificMode",checked:n,onChange:o,label:__("Choose Specific Posts","newspack-blocks")}),n&&(0,u.createElement)(m.Z,{key:"posts",tokens:c||[],onChange:a,fetchSuggestions:e.fetchPostSuggestions,fetchSavedInfo:e.fetchSavedPosts,label:__("Posts","newspack-blocks"),help:__("Begin typing post title, click autocomplete result to select.","newspack-blocks")}),!n&&(0,u.createElement)(f.QueryControls,(0,r.Z)({key:"queryControls"},e.props)),!n&&s&&(0,u.createElement)(m.Z,{key:"authors",tokens:i||[],onChange:s,fetchSuggestions:e.fetchAuthorSuggestions,fetchSavedInfo:e.fetchSavedAuthors,label:__("Authors","newspack-blocks")}),!n&&p&&(0,u.createElement)(m.Z,{key:"categories",tokens:l||[],onChange:p,fetchSuggestions:e.fetchCategorySuggestions,fetchSavedInfo:e.fetchSavedCategories,label:__("Categories","newspack-blocks")}),!n&&h&&(0,u.createElement)(m.Z,{key:"tags",tokens:d||[],onChange:h,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:__("Tags","newspack-blocks")}),!n&&w&&(0,u.createElement)("p",{key:"toggle-advanced-filters"},(0,u.createElement)(f.Button,{isLink:!0,onClick:function(){return e.setState({showAdvancedFilters:!k})}},__(k?"Hide Advanced Filters":"Show Advanced Filters","newspack-blocks"))),!n&&w&&k&&(0,u.createElement)(m.Z,{key:"tag-exclusion",tokens:g||[],onChange:w,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:__("Excluded Tags","newspack-blocks")}),!n&&b&&k&&(0,u.createElement)(m.Z,{key:"category-exclusion",tokens:v||[],onChange:b,fetchSuggestions:e.fetchCategorySuggestions,fetchSavedInfo:e.fetchSavedCategories,label:__("Excluded Categories","newspack-blocks")})]})),e}return n}(u.Component);v.defaultProps={enableSpecific:!0,specificPosts:[],authors:[],categories:[],tags:[],tagExclusions:[]},t.Z=v},904:function(e,t,n){"use strict";n.d(t,{lW:function(){return a},FX:function(){return i},b2:function(){return s},Q$:function(){return u}});var r=n(1766),o=n(3027),c=n(3163),_x=c._x,a=function(e){return e.map((function(e){return(0,o.createElement)("span",{className:"avatar author-avatar",key:e.id},(0,o.createElement)("a",{className:"url fn n",href:e.author_link},(0,o.createElement)(o.RawHTML,null,e.avatar)))}))},i=function(e){return(0,o.createElement)("span",{className:"byline"},_x("by","post author","newspack-blocks")," ",e.reduce((function(t,n,c){return[].concat((0,r.Z)(t),[(0,o.createElement)("span",{className:"author vcard",key:n.id},(0,o.createElement)("a",{className:"url fn n",href:n.author_link},n.display_name)),c<e.length-2&&", ",e.length>1&&c===e.length-2&&_x(" and ","post author","newspack-blocks")])}),[]))},s=function(e){return(0,o.createElement)("span",{className:"sponsor-logos"},e.map((function(e){return(0,o.createElement)(o.Fragment,{key:e.id},e.src&&(0,o.createElement)("a",{href:e.sponsor_url},(0,o.createElement)("img",{src:e.src,width:e.img_width,height:e.img_height,alt:e.sponsor_name})))})))},u=function(e){return(0,o.createElement)("span",{className:"byline sponsor-byline"},e[0].byline_prefix," ",e.reduce((function(t,n,c){return[].concat((0,r.Z)(t),[(0,o.createElement)("span",{className:"author",key:n.id},(0,o.createElement)("a",{href:n.author_link},n.sponsor_name)),c<e.length-2&&", ",e.length>1&&c===e.length-2&&_x(" and ","post author","newspack-blocks")])}),[]))}},3804:function(e){"use strict";e.exports=window.lodash},7606:function(e){"use strict";e.exports=window.wp.apiFetch},6399:function(e){"use strict";e.exports=window.wp.blockEditor},9314:function(e){"use strict";e.exports=window.wp.blocks},7997:function(e){"use strict";e.exports=window.wp.components},1417:function(e){"use strict";e.exports=window.wp.compose},5707:function(e){"use strict";e.exports=window.wp.data},7947:function(e){"use strict";e.exports=window.wp.date},3027:function(e){"use strict";e.exports=window.wp.element},5799:function(e){"use strict";e.exports=window.wp.hooks},1424:function(e){"use strict";e.exports=window.wp.htmlEntities},3163:function(e){"use strict";e.exports=window.wp.i18n},2418:function(e){"use strict";e.exports=window.wp.primitives},791:function(e){"use strict";e.exports=window.wp.url}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var c=t[r]={id:r,loaded:!1,exports:{}};return e[r](c,c.exports,n),c.loaded=!0,c.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r);var e=n(9394),t=n(9314),o=n(5799),c=n(3163),a=n(1136),i=n(4960),s=n(9707),__=c.__,u="a8c/blog-posts";(0,o.addFilter)("blocks.transforms_from_name","set-transformed-block-name",(function(e){return"newspack-blocks/homepage-articles"!==e?e:u})),(0,t.registerBlockType)(u,(0,e.Z)((0,e.Z)({},i.Xd),{},{title:__("Blog Posts","full-site-editing"),category:"widgets"})),(0,s.f)([u,a.T])}(),window.EditingToolkit=r}();
|
1 |
+
!function(){var e={8177:function(e){"use strict";e.exports=JSON.parse('{"u2":"homepage-articles","W3":"newspack","Y4":{"className":{"type":"string","default":""},"showExcerpt":{"type":"boolean","default":true},"excerptLength":{"type":"number","default":55},"showReadMore":{"type":"boolean","default":false},"readMoreLabel":{"type":"string","default":"Keep reading"},"showDate":{"type":"boolean","default":true},"showImage":{"type":"boolean","default":true},"showCaption":{"type":"boolean","default":false},"imageShape":{"type":"string","default":"landscape"},"minHeight":{"type":"integer","default":0},"moreButton":{"type":"boolean","default":false},"moreButtonText":{"type":"string","default":""},"showAuthor":{"type":"boolean","default":true},"showAvatar":{"type":"boolean","default":true},"showCategory":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"integer","default":3},"postsToShow":{"type":"integer","default":3},"mediaPosition":{"type":"string","default":"top"},"authors":{"type":"array","default":[],"items":{"type":"integer"}},"categories":{"type":"array","default":[],"items":{"type":"integer"}},"tags":{"type":"array","default":[],"items":{"type":"integer"}},"tagExclusions":{"type":"array","default":[],"items":{"type":"integer"}},"categoryExclusions":{"type":"array","default":[],"items":{"type":"integer"}},"specificPosts":{"type":"array","default":[],"items":{"type":"integer"}},"typeScale":{"type":"integer","default":4},"imageScale":{"type":"integer","default":3},"mobileStack":{"type":"boolean","default":false},"sectionHeader":{"type":"string","default":""},"specificMode":{"type":"boolean","default":false},"textColor":{"type":"string","default":""},"customTextColor":{"type":"string","default":""},"singleMode":{"type":"boolean","default":false},"showSubtitle":{"type":"boolean","default":false},"postType":{"type":"array","default":["post"],"items":{"type":"string"}}}}')},1357:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},8890:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1357);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}},3989:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},4659:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},4730:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:function(){return o}})},9049:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(5630),o=n(733),c=n(591);function a(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,c.Z)(this,n)}}},1119:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},7560:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},5630:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,{Z:function(){return r}})},5663:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(4938);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,r.Z)(e,t)}},733:function(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},2733:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},3154:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},9394:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(1119);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},4530:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(8283);function o(e,t){if(null==e)return{};var n,o,c=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},8283:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},591:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(929),o=n(3989);function c(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},4938:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},1766:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(8890),o=n(2733),c=n(237),a=n(3154);function i(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,c.Z)(e)||(0,a.Z)()}},929:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},237:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1357);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},6660:function(e,t,n){"use strict";n.d(t,{A:function(){return T},B:function(){return v},C:function(){return R},D:function(){return k},E:function(){return u},F:function(){return M},G:function(){return D},J:function(){return N},K:function(){return U},L:function(){return X},M:function(){return K},N:function(){return W},P:function(){return A},R:function(){return I},S:function(){return B},T:function(){return O},U:function(){return Y},Y:function(){return G},a:function(){return j},b:function(){return L},d:function(){return V},e:function(){return P},f:function(){return z},g:function(){return H},h:function(){return F},i:function(){return w},j:function(){return x},k:function(){return i},l:function(){return _},m:function(){return y},o:function(){return d},p:function(){return l},q:function(){return m},r:function(){return p},s:function(){return S},t:function(){return s},u:function(){return f},v:function(){return C},y:function(){return E},z:function(){return b}});var r=n(3143),o=n(7560),c=n(3594),a=n(5295),i=function(e){return function(){return e}}(!0),s=function(){};var u=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var l=function(e,t){(0,o.Z)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))},f=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))};function p(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function d(e){var t=!1;return function(){t||(t=!0,e())}}var h=function(e){throw e},g=function(e){return{value:e,done:!0}};function m(e,t,n){void 0===t&&(t=h),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:g,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function v(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var w=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},y=function(e){return Array.apply(null,new Array(e))},k=function(e){return function(t){return e(Object.defineProperty(t,r.Nm,{value:!0}))}},b=function(e){return e===r.EO},E=function(e){return e===r.Wd},S=function(e){return b(e)||E(e)};function _(e,t){var n=Object.keys(e),r=n.length;var o,a=0,i=(0,c.IX)(e)?y(r):{},u={};return n.forEach((function(e){var n=function(n,c){o||(c||S(n)?(t.cancel(),t(n,c)):(i[e]=n,++a===r&&(o=!0,t(i))))};n.cancel=s,u[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return u[e].cancel()})))},u}function x(e){return{name:e.name||"anonymous",location:C(e)}}function C(e){return e[r.b_]}function Z(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,c=0,a=function(t){n[o]=t,o=(o+1)%e,r++},i=function(){if(0!=r){var t=n[c];return n[c]=null,r--,c=(c+1)%e,t}},s=function(){for(var e=[];r;)e.push(i());return e};return{isEmpty:function(){return 0==r},put:function(i){var u;if(r<e)a(i);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=i,c=o=(o+1)%e;break;case 4:u=2*e,n=s(),r=n.length,o=n.length,c=0,n.length=u,e=u,a(i)}},take:i,flush:s}}var P=function(e){return Z(e,4)},O="TAKE",A="PUT",T="ALL",I="RACE",R="CALL",j="CPS",M="FORK",N="JOIN",L="CANCEL",B="SELECT",V="ACTION_CHANNEL",z="CANCELLED",H="FLUSH",D="GET_CONTEXT",F="SET_CONTEXT",q=function(e,t){var n;return(n={})[r.IO]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function U(e,t){return void 0===e&&(e="*"),(0,c.uj)(e)?q(O,{pattern:e}):(0,c.Om)(e)&&(0,c.d5)(t)&&(0,c.uj)(t)?q(O,{channel:e,pattern:t}):(0,c.CE)(e)?q(O,{channel:e}):void 0}function G(e,t){return(0,c.sR)(t)&&(t=e,e=void 0),q(A,{channel:e,action:t})}function Q(e,t){var n,r=null;return(0,c.Yl)(e)?n=e:((0,c.IX)(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&(0,c.Z_)(n)&&(0,c.Yl)(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function W(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return q(R,Q(e,n))}function X(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return q(M,Q(e,n))}function K(e){return void 0===e&&(e=r.sC),q(L,e)}var Y=W.bind(null,a.Z)},1260:function(e,t,n){"use strict";var r=n(3143),o=n(7560),c=n(8283),a=n(3594),i=n(6660),s=n(8717),u=n(1884),l=[],f=0;function p(e){try{g(),e()}finally{m()}}function d(e){l.push(e),f||(g(),v())}function h(e){try{return g(),e()}finally{v()}}function g(){f++}function m(){f--}function v(){var e;for(m();!f&&void 0!==(e=l.shift());)p(e)}var w=function(e){return function(t){return e.some((function(e){return S(e)(t)}))}},y=function(e){return function(t){return e(t)}},k=function(e){return function(t){return t.type===String(e)}},b=function(e){return function(t){return t.type===e}},E=function(){return i.k};function S(e){var t="*"===e?E:(0,a.Z_)(e)?k:(0,a.IX)(e)?w:(0,a.eR)(e)?k:(0,a.Yl)(e)?y:(0,a.NA)(e)?b:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var _={type:r.sZ},x=function(e){return e&&e.type===r.sZ};function C(e){void 0===e&&(e=(0,i.e)());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(_):e.isEmpty()?(n.push(r),r.cancel=function(){(0,i.r)(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(_):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,o=e.length;r<o;r++){(0,e[r])(_)}}}}}function Z(){var e,t,n,o,c,a,s=(t=!1,o=n=[],c=function(){o===n&&(o=n.slice())},a=function(){t=!0;var e=n=o;o=[],e.forEach((function(e){e(_)}))},(e={})[r.AS]=!0,e.put=function(e){if(!t)if(x(e))a();else for(var c=n=o,i=0,s=c.length;i<s;i++){var u=c[i];u[r.uq](e)&&(u.cancel(),u(e))}},e.take=function(e,n){void 0===n&&(n=E),t?e(_):(e[r.uq]=n,c(),o.push(e),e.cancel=(0,i.o)((function(){c(),(0,i.r)(o,e)})))},e.close=a,e),u=s.put;return s.put=function(e){e[r.Nm]?u(e):d((function(){u(e)}))},s}function P(e,t){var n=e[r.n1];(0,a.Yl)(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var O,A=0,T=function(){return++A};function I(e){e.isRunning()&&e.cancel()}var R=((O={})[i.T]=function(e,t,n){var o=t.channel,c=void 0===o?e.channel:o,i=t.pattern,s=t.maybe,u=function(e){e instanceof Error?n(e,!0):!x(e)||s?n(e):n(r.EO)};try{c.take(u,(0,a.d5)(i)?S(i):null)}catch(l){return void n(l,!0)}n.cancel=u.cancel},O[i.P]=function(e,t,n){var r=t.channel,o=t.action,c=t.resolve;d((function(){var t;try{t=(r?r.put:e.dispatch)(o)}catch(i){return void n(i,!0)}c&&(0,a.MC)(t)?P(t,n):n(t)}))},O[i.A]=function(e,t,n,r){var o=r.digestEffect,c=A,s=Object.keys(t);if(0!==s.length){var u=(0,i.l)(t,n);s.forEach((function(e){o(t[e],c,u[e],e)}))}else n((0,a.IX)(t)?[]:{})},O[i.R]=function(e,t,n,r){var o=r.digestEffect,c=A,s=Object.keys(t),u=(0,a.IX)(t)?(0,i.m)(s.length):{},l={},f=!1;s.forEach((function(e){var t=function(t,r){f||(r||(0,i.s)(t)?(n.cancel(),n(t,r)):(n.cancel(),f=!0,u[e]=t,n(u)))};t.cancel=i.t,l[e]=t})),n.cancel=function(){f||(f=!0,s.forEach((function(e){return l[e].cancel()})))},s.forEach((function(e){f||o(t[e],c,l[e],e)}))},O[i.C]=function(e,t,n,r){var o=t.context,c=t.fn,s=t.args,u=r.task;try{var l=c.apply(o,s);if((0,a.MC)(l))return void P(l,n);if((0,a.hZ)(l))return void F(e,l,u.context,A,(0,i.j)(c),!1,n);n(l)}catch(f){n(f,!0)}},O[i.a]=function(e,t,n){var r=t.context,o=t.fn,c=t.args;try{var i=function(e,t){(0,a.sR)(e)?n(t):n(e,!0)};o.apply(r,c.concat(i)),i.cancel&&(n.cancel=i.cancel)}catch(s){n(s,!0)}},O[i.F]=function(e,t,n,r){var o=t.context,c=t.fn,s=t.args,u=t.detached,l=r.task,f=function(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if((0,a.hZ)(o))return o;var c=!1;return(0,i.q)((function(e){return c?{value:e,done:!0}:(c=!0,{value:o,done:!(0,a.MC)(o)})}))}catch(s){return(0,i.q)((function(){throw s}))}}({context:o,fn:c,args:s}),p=function(e,t){return e.isSagaIterator?{name:e.meta.name}:(0,i.j)(t)}(f,c);h((function(){var t=F(e,f,l.context,A,p,u,void 0);u?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},O[i.J]=function(e,t,n,r){var o=r.task,c=function(e,t){if(e.isRunning()){var n={task:o,cb:t};t.cancel=function(){e.isRunning()&&(0,i.r)(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if((0,a.IX)(t)){if(0===t.length)return void n([]);var s=(0,i.l)(t,n);t.forEach((function(e,t){c(e,s[t])}))}else c(t,n)},O[i.b]=function(e,t,n,o){var c=o.task;t===r.sC?I(c):(0,a.IX)(t)?t.forEach(I):I(t),n()},O[i.S]=function(e,t,n){var r=t.selector,o=t.args;try{n(r.apply(void 0,[e.getState()].concat(o)))}catch(c){n(c,!0)}},O[i.d]=function(e,t,n){var r=t.pattern,o=C(t.buffer),c=S(r),a=function t(n){x(n)||e.channel.take(t,c),o.put(n)},i=o.close;o.close=function(){a.cancel(),i()},e.channel.take(a,c),n(o)},O[i.f]=function(e,t,n,r){n(r.task.isCancelled())},O[i.g]=function(e,t,n){t.flush(n)},O[i.G]=function(e,t,n,r){n(r.task.context[t])},O[i.h]=function(e,t,n,r){var o=r.task;(0,i.p)(o.context,t),n()},O);function j(e,t){return e+"?"+t}function M(e){var t=e.name,n=e.location;return n?t+" "+j(n.fileName,n.lineNumber):t}function N(e){var t=(0,i.u)((function(e){return e.cancelledTasks}),e);return t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):""}var L=null,B=[],V=function(e){e.crashedEffect=L,B.push(e)},z=function(){L=null,B.length=0},H=function(){var e=B[0],t=B.slice(1),n=e.crashedEffect?function(e){var t=(0,i.v)(e);return t?t.code+" "+j(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+M(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+M(e.meta)})),[N(B)]).join("\n")};function D(e,t,n,o,c,a,s){var l;void 0===s&&(s=i.t);var f,p,d=0,h=null,g=[],m=Object.create(n),v=function(e,t,n){var r,o=[],c=!1;function a(e){t(),u(),n(e,!0)}function s(t){o.push(t),t.cont=function(s,u){c||((0,i.r)(o,t),t.cont=i.t,u?a(s):(t===e&&(r=s),o.length||(c=!0,n(r))))}}function u(){c||(c=!0,o.forEach((function(e){e.cont=i.t,e.cancel()})),o=[])}return s(e),{addTask:s,cancelAll:u,abort:a,getTasks:function(){return o}}}(t,(function(){g.push.apply(g,v.getTasks().map((function(e){return e.meta.name})))}),w);function w(t,n){if(n){if(d=2,V({meta:c,cancelledTasks:g}),y.isRoot){var o=H();z(),e.onError(t,{sagaStack:o})}p=t,h&&h.reject(t)}else t===r.Wd?d=1:1!==d&&(d=3),f=t,h&&h.resolve(t);y.cont(t,n),y.joiners.forEach((function(e){e.cb(t,n)})),y.joiners=null}var y=((l={})[r.Cs]=!0,l.id=o,l.meta=c,l.isRoot=a,l.context=m,l.joiners=[],l.queue=v,l.cancel=function(){0===d&&(d=1,v.cancelAll(),w(r.Wd,!1))},l.cont=s,l.end=w,l.setContext=function(e){(0,i.p)(m,e)},l.toPromise=function(){return h||(h=(0,u.Z)(),2===d?h.reject(p):0!==d&&h.resolve(f)),h.promise},l.isRunning=function(){return 0===d},l.isCancelled=function(){return 1===d||0===d&&1===t.status},l.isAborted=function(){return 2===d},l.result=function(){return f},l.error=function(){return p},l);return y}function F(e,t,n,o,c,s,u){var l=e.finalizeRunEffect((function(t,n,o){if((0,a.MC)(t))P(t,o);else if((0,a.hZ)(t))F(e,t,p.context,n,c,!1,o);else if(t&&t[r.IO]){(0,R[t.type])(e,t.payload,o,d)}else o(t)}));h.cancel=i.t;var f={meta:c,cancel:function(){0===f.status&&(f.status=1,h(r.Wd))},status:0},p=D(e,f,n,o,c,s,u),d={task:p,digestEffect:g};return u&&(u.cancel=p.cancel),h(),p;function h(e,n){try{var c;n?(c=t.throw(e),z()):(0,i.y)(e)?(f.status=1,h.cancel(),c=(0,a.Yl)(t.return)?t.return(r.Wd):{done:!0,value:r.Wd}):c=(0,i.z)(e)?(0,a.Yl)(t.return)?t.return():{done:!0}:t.next(e),c.done?(1!==f.status&&(f.status=3),f.cont(c.value)):g(c.value,o,h)}catch(s){if(1===f.status)throw s;f.status=2,f.cont(s,!0)}}function g(t,n,r,o){void 0===o&&(o="");var c,a=T();function s(n,o){c||(c=!0,r.cancel=i.t,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),o&&function(e){L=e}(t),r(n,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:o,effect:t}),s.cancel=i.t,r.cancel=function(){c||(c=!0,s.cancel(),s.cancel=i.t,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},l(t,a,s)}}function q(e,t){var n=e.channel,r=void 0===n?Z():n,o=e.dispatch,c=e.getState,a=e.context,u=void 0===a?{}:a,l=e.sagaMonitor,f=e.effectMiddlewares,p=e.onError,d=void 0===p?i.B:p;for(var g=arguments.length,m=new Array(g>2?g-2:0),v=2;v<g;v++)m[v-2]=arguments[v];var w=t.apply(void 0,m);var y,k=T();if(l&&(l.rootSagaStarted=l.rootSagaStarted||i.t,l.effectTriggered=l.effectTriggered||i.t,l.effectResolved=l.effectResolved||i.t,l.effectRejected=l.effectRejected||i.t,l.effectCancelled=l.effectCancelled||i.t,l.actionDispatched=l.actionDispatched||i.t,l.rootSagaStarted({effectId:k,saga:t,args:m})),f){var b=s.qC.apply(void 0,f);y=function(e){return function(t,n,r){return b((function(t){return e(t,n,r)}))(t)}}}else y=i.E;var E={channel:r,dispatch:(0,i.D)(o),getState:c,sagaMonitor:l,onError:d,finalizeRunEffect:y};return h((function(){var e=F(E,w,u,k,(0,i.j)(t),!0,void 0);return l&&l.effectResolved(k,e),e}))}t.ZP=function(e){var t,n=void 0===e?{}:e,r=n.context,a=void 0===r?{}:r,s=n.channel,u=void 0===s?Z():s,l=n.sagaMonitor,f=(0,c.Z)(n,["context","channel","sagaMonitor"]);function p(e){var n=e.getState,r=e.dispatch;return t=q.bind(null,(0,o.Z)({},f,{context:a,channel:u,dispatch:r,getState:n,sagaMonitor:l})),function(e){return function(t){l&&l.actionDispatched&&l.actionDispatched(t);var n=e(t);return u.put(t),n}}}return p.run=function(){return t.apply(void 0,arguments)},p.setContext=function(e){(0,i.p)(a,e)},p}},5703:function(e,t,n){"use strict";n.d(t,{RE:function(){return o.N},gw:function(){return o.U},gz:function(){return o.Y},Fm:function(){return l}});var r=n(3594),o=n(6660),c=function(e){return{done:!0,value:e}},a={};function i(e){return(0,r.CE)(e)?"channel":(0,r.eR)(e)?String(e):(0,r.Yl)(e)?e.name:String(e)}function s(e,t,n){var r,i,s,u=t;function l(t,n){if(u===a)return c(t);if(n&&!i)throw u=a,n;r&&r(t);var o=n?e[i](n):e[u]();return u=o.nextState,s=o.effect,r=o.stateUpdater,i=o.errorState,u===a?c(t):s}return(0,o.q)(l,(function(e){return l(null,e)}),n)}function u(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),c=2;c<n;c++)r[c-2]=arguments[c];var a,u,l={done:!1,value:(0,o.K)(e)},f=function(e){return{done:!1,value:o.L.apply(void 0,[t].concat(r,[e]))}},p=function(e){return{done:!1,value:(0,o.M)(e)}},d=function(e){return a=e},h=function(e){return u=e};return s({q1:function(){return{nextState:"q2",effect:l,stateUpdater:h}},q2:function(){return a?{nextState:"q3",effect:p(a)}:{nextState:"q1",effect:f(u),stateUpdater:d}},q3:function(){return{nextState:"q1",effect:f(u),stateUpdater:d}}},"q1","takeLatest("+i(e)+", "+t.name+")")}function l(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),c=2;c<n;c++)r[c-2]=arguments[c];return o.L.apply(void 0,[u,e,t].concat(r))}},1884:function(e,t,n){"use strict";function r(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}t.Z=r},5295:function(e,t,n){"use strict";var r=n(3143);t.Z=function(e,t){var n;void 0===t&&(t=!0);var o=new Promise((function(r){n=setTimeout(r,e,t)}));return o[r.n1]=function(){clearTimeout(n)},o}},3594:function(e,t,n){"use strict";n.d(t,{IX:function(){return s},CE:function(){return p},Yl:function(){return a},hZ:function(){return l},Om:function(){return g},d5:function(){return c},uj:function(){return f},MC:function(){return u},Z_:function(){return i},eR:function(){return d},NA:function(){return h},sR:function(){return o}});var r=n(3143),o=function(e){return null==e},c=function(e){return null!=e},a=function(e){return"function"==typeof e},i=function(e){return"string"==typeof e},s=Array.isArray,u=function(e){return e&&a(e.then)},l=function(e){return e&&a(e.next)&&a(e.throw)},f=function e(t){return t&&(i(t)||h(t)||a(t)||s(t)&&t.every(e))},p=function(e){return e&&a(e.take)&&a(e.close)},d=function(e){return a(e)&&e.hasOwnProperty("toString")},h=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},g=function(e){return p(e)&&e[r.AS]}},3143:function(e,t,n){"use strict";n.d(t,{n1:function(){return o},sZ:function(){return c},IO:function(){return a},uq:function(){return i},AS:function(){return s},Nm:function(){return u},b_:function(){return h},sC:function(){return l},Cs:function(){return f},Wd:function(){return p},EO:function(){return d}});var r=function(e){return"@@redux-saga/"+e},o=r("CANCEL_PROMISE"),c=r("CHANNEL_END"),a=r("IO"),i=r("MATCH"),s=r("MULTICAST"),u=r("SAGA_ACTION"),l=r("SELF_CANCELLATION"),f=r("TASK"),p=r("TASK_CANCEL"),d=r("TERMINATE"),h=r("LOCATION")},5869:function(e,t,n){"use strict";var r=n(1119),o=n(4530),c=n(3027);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.Z=function(e){var t=e.icon,n=e.size,i=void 0===n?24:n,s=(0,o.Z)(e,["icon","size"]);return(0,c.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:i,height:i},s))}},5872:function(e,t,n){"use strict";var r=n(3027),o=n(2418),c=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));t.Z=c},4835:function(e,t,n){"use strict";var r=n(3027),o=n(2418),c=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"}));t.Z=c},4131:function(e,t,n){"use strict";var r=n(3027),o=n(2418),c=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));t.Z=c},8371:function(e,t,n){"use strict";var r=n(3027),o=n(2418),c=(0,r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(o.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"}));t.Z=c},2357:function(e,t,n){"use strict";var r=n(3027),o=n(2418),c=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"}));t.Z=c},3029:function(e,t,n){"use strict";var r=n(3027),o=n(2418),c=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"}));t.Z=c},9603:function(e,t,n){"use strict";var r=n(3027),o=n(2418),c=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"}));t.Z=c},2779:function(e,t){var n;
|
2 |
/*!
|
3 |
Copyright (c) 2018 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
+
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var c=typeof n;if("string"===c||"number"===c)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===c)if(n.toString===Object.prototype.toString)for(var i in n)r.call(n,i)&&n[i]&&e.push(i);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},9568:function(){},3689:function(){},3536:function(){},2397:function(e,t,n){"use strict";var r=n(1260);t.ZP=r.ZP},608:function(e,t,n){"use strict";n.d(t,{RE:function(){return r.RE},gw:function(){return r.gw},gz:function(){return r.gz},Fm:function(){return r.Fm}});var r=n(5703)},8717:function(e,t,n){"use strict";n.d(t,{md:function(){return f},qC:function(){return l},MT:function(){return u}});var r=n(9394);function o(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var c="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function s(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(o(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(o(1));return n(u)(e,t)}if("function"!=typeof e)throw new Error(o(2));var a=e,l=t,f=[],p=f,d=!1;function h(){p===f&&(p=f.slice())}function g(){if(d)throw new Error(o(3));return l}function m(e){if("function"!=typeof e)throw new Error(o(4));if(d)throw new Error(o(5));var t=!0;return h(),p.push(e),function(){if(t){if(d)throw new Error(o(6));t=!1,h();var n=p.indexOf(e);p.splice(n,1),f=null}}}function v(e){if(!s(e))throw new Error(o(7));if(void 0===e.type)throw new Error(o(8));if(d)throw new Error(o(9));try{d=!0,l=a(l,e)}finally{d=!1}for(var t=f=p,n=0;n<t.length;n++){(0,t[n])()}return e}function w(e){if("function"!=typeof e)throw new Error(o(10));a=e,v({type:i.REPLACE})}function y(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(o(11));function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[c]=function(){return this},e}return v({type:i.INIT}),(r={dispatch:v,subscribe:m,getState:g,replaceReducer:w})[c]=y,r}function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),c=function(){throw new Error(o(15))},a={getState:n.getState,dispatch:function(){return c.apply(void 0,arguments)}},i=t.map((function(e){return e(a)}));return c=l.apply(void 0,i)(n.dispatch),(0,r.Z)((0,r.Z)({},n),{},{dispatch:c})}}}},1136:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var r="a8c/posts-carousel"},741:function(e,t,n){"use strict";var r,o=n(1766),c=n(4659),a=n(4730),i=n(3989),s=n(5663),u=n(9049),l=n(1119),f=n(3027),p=n(5113),d=n(8328),h=n(904),g=n(2779),m=n.n(g),v=n(3163),w=n(7947),y=n(6399),k=n(7997),b=n(5707),E=n(1417),S=n(1424),_=n(5869),x=n(5872),C=n(4131),Z=n(2357),P=n(3029),O=n(9603),A=n(8371),T=n(4835),__=v.__;"object"==typeof window&&window.newspack_blocks_data&&window.newspack_blocks_data.post_subtitle&&(r=!0);var I=(0,f.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,f.createElement)(k.Path,{clipRule:"evenodd",d:"M18.714 7.5H5.286a.786.786 0 00-.786.786v7.428c0 .434.352.786.786.786h13.428a.786.786 0 00.786-.786V8.286a.786.786 0 00-.786-.786zM5.286 6A2.286 2.286 0 003 8.286v7.428A2.286 2.286 0 005.286 18h13.428A2.286 2.286 0 0021 15.714V8.286A2.286 2.286 0 0018.714 6H5.286z",fillRule:"evenodd"})),R=(0,f.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,f.createElement)(k.Path,{clipRule:"evenodd",d:"M15.714 4.5H8.286a.786.786 0 00-.786.786v13.428c0 .434.352.786.786.786h7.428a.786.786 0 00.786-.786V5.286a.786.786 0 00-.786-.786zM8.286 3A2.286 2.286 0 006 5.286v13.428A2.286 2.286 0 008.286 21h7.428A2.286 2.286 0 0018 18.714V5.286A2.286 2.286 0 0015.714 3H8.286z",fillRule:"evenodd"})),j=(0,f.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,f.createElement)(k.Path,{clipRule:"evenodd",d:"M18.714 4.5H5.286a.786.786 0 00-.786.786v13.428c0 .434.352.786.786.786h13.428a.786.786 0 00.786-.786V5.286a.786.786 0 00-.786-.786zM5.286 3A2.286 2.286 0 003 5.286v13.428A2.286 2.286 0 005.286 21h13.428A2.286 2.286 0 0021 18.714V5.286A2.286 2.286 0 0018.714 3H5.286z",fillRule:"evenodd"})),M=function(e){(0,s.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;(0,c.Z)(this,n);for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return e=t.call.apply(t,[this].concat(s)),(0,l.Z)((0,i.Z)(e),"renderPost",(function(t){var n=e.props,o=n.attributes,c=n.isUIDisabled,a=o.showImage,i=o.imageShape,s=o.mediaPosition,u=o.minHeight,l=o.showCaption,p=o.showExcerpt,d=o.showReadMore,g=o.readMoreLabel,v=o.showSubtitle,k=o.showAuthor,b=o.showAvatar,E=o.showDate,_=o.showCategory,x=o.sectionHeader,C={minHeight:"behind"===s&&a&&t.newspack_featured_image_src&&u+"vh",paddingTop:"behind"===s&&a&&t.newspack_featured_image_src&&u/5+"vh"},Z=m()({"post-has-image":t.newspack_featured_image_src,"newspack-block--disabled":c},t.newspack_article_classes),P=e.titleForPost(t),O=(0,w.__experimentalGetSettings)().formats.date;return(0,f.createElement)("article",{className:Z,key:t.id,style:C},a&&t.newspack_featured_image_src&&(0,f.createElement)("figure",{className:"post-thumbnail",key:"thumbnail"},(0,f.createElement)("a",{href:"#"},"landscape"===i&&(0,f.createElement)("img",{src:t.newspack_featured_image_src.landscape,alt:""}),"portrait"===i&&(0,f.createElement)("img",{src:t.newspack_featured_image_src.portrait,alt:""}),"square"===i&&(0,f.createElement)("img",{src:t.newspack_featured_image_src.square,alt:""}),"uncropped"===i&&(0,f.createElement)("img",{src:t.newspack_featured_image_src.uncropped,alt:""})),l&&""!==t.newspack_featured_image_caption&&(0,f.createElement)("figcaption",null,t.newspack_featured_image_caption)),(0,f.createElement)("div",{className:"entry-wrapper"},t.newspack_post_sponsors&&(0,f.createElement)("span",{className:"cat-links sponsor-label"},(0,f.createElement)("span",{className:"flag"},t.newspack_post_sponsors[0].flag)),_&&t.newspack_category_info.length&&!t.newspack_post_sponsors&&(0,f.createElement)("div",{className:"cat-links"},(0,f.createElement)("a",{href:"#"},(0,S.decodeEntities)(t.newspack_category_info))),y.RichText.isEmpty(x)?(0,f.createElement)("h2",{className:"entry-title",key:"title"},"aside"===t.newspack_post_format?P:(0,f.createElement)("a",{href:"#"},P)):(0,f.createElement)("h3",{className:"entry-title",key:"title"},"aside"===t.newspack_post_format?P:(0,f.createElement)("a",{href:"#"},P)),r&&v&&(0,f.createElement)(f.RawHTML,{key:"subtitle",className:"newspack-post-subtitle newspack-post-subtitle--in-homepage-block"},t.meta.newspack_post_subtitle||""),p&&(0,f.createElement)(f.RawHTML,{key:"excerpt",className:"excerpt-contain"},"aside"===t.newspack_post_format?t.content.rendered:t.excerpt.rendered),d&&t.post_link&&(0,f.createElement)("a",{href:"#",key:"readmore",className:"more-link"},g),(0,f.createElement)("div",{className:"entry-meta"},t.newspack_post_sponsors&&(0,h.b2)(t.newspack_post_sponsors),t.newspack_post_sponsors&&(0,h.Q$)(t.newspack_post_sponsors),k&&!t.newspack_listings_hide_author&&b&&!t.newspack_post_sponsors&&(0,h.lW)(t.newspack_author_info),k&&!t.newspack_listings_hide_author&&!t.newspack_post_sponsors&&(0,h.FX)(t.newspack_author_info),E&&!t.newspack_listings_hide_publish_date&&(0,f.createElement)("time",{className:"entry-date published",key:"pub-date"},(0,w.dateI18n)(O,t.date_gmt)))))})),(0,l.Z)((0,i.Z)(e),"titleForPost",(function(e){return e.title?"string"==typeof e.title?(0,S.decodeEntities)(e.title.trim()):"object"==typeof e.title&&e.title.rendered?(0,S.decodeEntities)(e.title.rendered.trim()):void 0:""})),(0,l.Z)((0,i.Z)(e),"renderInspectorControls",(function(){var t=e.props,n=t.attributes,c=t.availablePostTypes,a=t.setAttributes,i=t.textColor,s=t.setTextColor,u=n.authors,l=n.specificPosts,h=n.postsToShow,g=n.categories,m=n.columns,v=n.postType,w=n.showImage,b=n.showCaption,E=n.imageScale,S=n.mobileStack,_=n.minHeight,x=n.moreButton,C=n.showExcerpt,Z=n.showReadMore,P=n.readMoreLabel,O=n.excerptLength,A=n.showSubtitle,T=n.typeScale,I=n.showDate,R=n.showAuthor,j=n.showAvatar,M=n.showCategory,N=n.postLayout,L=n.mediaPosition,B=n.specificMode,V=n.tags,z=n.tagExclusions,H=n.categoryExclusions,D=[{value:1,label:__("Small","newspack-blocks"),shortName:__("S","newspack-blocks")},{value:2,label:__("Medium","newspack-blocks"),shortName:__("M","newspack-blocks")},{value:3,label:__("Large","newspack-blocks"),shortName:__("L","newspack-blocks")},{value:4,label:__("Extra Large","newspack-blocks"),shortName:__("XL","newspack-blocks")}];return(0,f.createElement)(f.Fragment,null,(0,f.createElement)(k.PanelBody,{title:__("Display Settings","newspack-blocks"),initialOpen:!0},(0,f.createElement)(p.Z,{numberOfItems:h,onNumberOfItemsChange:function(e){return a({postsToShow:e||1})},specificMode:B,onSpecificModeChange:function(e){return a({specificMode:e})},specificPosts:l,onSpecificPostsChange:function(e){return a({specificPosts:e})},authors:u,onAuthorsChange:function(e){return a({authors:e})},categories:g,onCategoriesChange:function(e){return a({categories:e})},tags:V,onTagsChange:function(e){a({tags:e})},tagExclusions:z,onTagExclusionsChange:function(e){return a({tagExclusions:e})},categoryExclusions:H,onCategoryExclusionsChange:function(e){return a({categoryExclusions:e})},postType:v}),"grid"===N&&(0,f.createElement)(k.RangeControl,{label:__("Columns","newspack-blocks"),value:m,onChange:function(e){return a({columns:e})},min:2,max:6,required:!0}),!B&&(0,d.pM)()?(0,f.createElement)("i",null,__('This blog is private, therefore the "Load more posts" feature is not active.',"newspack-blocks")):!B&&(0,f.createElement)(k.ToggleControl,{label:__('Show "Load more posts" Button',"newspack-blocks"),checked:x,onChange:function(){return a({moreButton:!x})}})),(0,f.createElement)(k.PanelBody,{title:__("Featured Image Settings","newspack-blocks")},(0,f.createElement)(k.PanelRow,null,(0,f.createElement)(k.ToggleControl,{label:__("Show Featured Image","newspack-blocks"),checked:w,onChange:function(){return a({showImage:!w})}})),w&&(0,f.createElement)(k.PanelRow,null,(0,f.createElement)(k.ToggleControl,{label:__("Show Featured Image Caption","newspack-blocks"),checked:b,onChange:function(){return a({showCaption:!b})}})),w&&"top"!==L&&"behind"!==L&&(0,f.createElement)(f.Fragment,null,(0,f.createElement)(k.PanelRow,null,(0,f.createElement)(k.ToggleControl,{label:__("Stack on mobile","newspack-blocks"),checked:S,onChange:function(){return a({mobileStack:!S})}})),(0,f.createElement)(k.BaseControl,{label:__("Featured Image Size","newspack-blocks"),id:"newspackfeatured-image-size"},(0,f.createElement)(k.PanelRow,null,(0,f.createElement)(k.ButtonGroup,{id:"newspackfeatured-image-size","aria-label":__("Featured Image Size","newspack-blocks")},D.map((function(e){var t=E===e.value;return(0,f.createElement)(k.Button,{isLarge:!0,isPrimary:t,"aria-pressed":t,"aria-label":e.label,key:e.value,onClick:function(){return a({imageScale:e.value})}},e.shortName)})))))),w&&"behind"===L&&(0,f.createElement)(k.RangeControl,{label:__("Minimum height","newspack-blocks"),help:__("Sets a minimum height for the block, using a percentage of the screen's current height.","newspack-blocks"),value:_,onChange:function(e){return a({minHeight:e})},min:0,max:100,required:!0})),(0,f.createElement)(k.PanelBody,{title:__("Post Control Settings","newspack-blocks")},r&&(0,f.createElement)(k.PanelRow,null,(0,f.createElement)(k.ToggleControl,{label:__("Show Subtitle","newspack-blocks"),checked:A,onChange:function(){return a({showSubtitle:!A})}})),(0,f.createElement)(k.PanelRow,null,(0,f.createElement)(k.ToggleControl,{label:__("Show Excerpt","newspack-blocks"),checked:C,onChange:function(){return a({showExcerpt:!C})}})),C&&(0,f.createElement)(k.RangeControl,{label:__("Max number of words in excerpt","newspack-blocks"),value:O,onChange:function(e){return a({excerptLength:e})},min:10,max:100}),(0,f.createElement)(k.ToggleControl,{label:__('Add a "Read More" link',"newspack-blocks"),checked:Z,onChange:function(){return a({showReadMore:!Z})}}),Z&&(0,f.createElement)(k.TextControl,{label:__('"Read More" link text',"newspack-blocks"),value:P,placeholder:P,onChange:function(e){return a({readMoreLabel:e})}}),(0,f.createElement)(k.RangeControl,{className:"type-scale-slider",label:__("Type Scale","newspack-blocks"),value:T,onChange:function(e){return a({typeScale:e})},min:1,max:10,required:!0})),(0,f.createElement)(y.PanelColorSettings,{title:__("Color Settings","newspack-blocks"),initialOpen:!0,colorSettings:[{value:i.color,onChange:s,label:__("Text Color","newspack-blocks")}]}),(0,f.createElement)(k.PanelBody,{title:__("Post Meta Settings","newspack-blocks")},(0,f.createElement)(k.PanelRow,null,(0,f.createElement)(k.ToggleControl,{label:__("Show Date","newspack-blocks"),checked:I,onChange:function(){return a({showDate:!I})}})),(0,f.createElement)(k.PanelRow,null,(0,f.createElement)(k.ToggleControl,{label:__("Show Category","newspack-blocks"),checked:M,onChange:function(){return a({showCategory:!M})}})),(0,f.createElement)(k.PanelRow,null,(0,f.createElement)(k.ToggleControl,{label:__("Show Author","newspack-blocks"),checked:R,onChange:function(){return a({showAuthor:!R})}})),R&&(0,f.createElement)(k.PanelRow,null,(0,f.createElement)(k.ToggleControl,{label:__("Show Author Avatar","newspack-blocks"),checked:j,onChange:function(){return a({showAvatar:!j})}}))),(0,f.createElement)(k.PanelBody,{title:__("Post Types","newspack-blocks")},c&&c.map((function(e){var t=e.name,n=e.slug;return(0,f.createElement)(k.PanelRow,{key:n},(0,f.createElement)(k.CheckboxControl,{label:t,checked:v.indexOf(n)>-1,onChange:function(e){var t=(0,o.Z)(new Set(v));e&&-1===t.indexOf(n)?t.push(n):!e&&t.indexOf(n)>-1&&t.splice(t.indexOf(n),1),a({postType:t})}}))}))))})),e}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.props.triggerReflow()}},{key:"componentDidUpdate",value:function(e){(0,d.Ou)(e,this.props)&&this.props.triggerReflow()}},{key:"componentWillUnmount",value:function(){this.props.triggerReflow()}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,o=n.className,c=n.setAttributes,a=n.isSelected,i=n.latestPosts,s=n.textColor,u=n.error,p=r.showImage,h=r.imageShape,g=r.postLayout,v=r.mediaPosition,w=r.moreButton,b=r.moreButtonText,E=r.columns,S=r.typeScale,M=r.imageScale,N=r.mobileStack,L=r.sectionHeader,B=r.showCaption,V=r.showCategory,z=r.specificMode,H=m()(o,(e={"is-grid":"grid"===g,"show-image":p},(0,l.Z)(e,"columns-".concat(E),"grid"===g),(0,l.Z)(e,"ts-".concat(S),"5"!==S),(0,l.Z)(e,"image-align".concat(v),p),(0,l.Z)(e,"is-".concat(M),"1"!==M&&p),(0,l.Z)(e,"mobile-stack",N),(0,l.Z)(e,"is-".concat(h),p),(0,l.Z)(e,"has-text-color",""!==s.color),(0,l.Z)(e,"show-caption",B),(0,l.Z)(e,"show-category",V),(0,l.Z)(e,"wpnbha",!0),e)),D=[{icon:(0,f.createElement)(_.Z,{icon:x.Z}),title:__("List View","newspack-blocks"),onClick:function(){return c({postLayout:"list"})},isActive:"list"===g},{icon:(0,f.createElement)(_.Z,{icon:C.Z}),title:__("Grid View","newspack-blocks"),onClick:function(){return c({postLayout:"grid"})},isActive:"grid"===g}],F=[{icon:(0,f.createElement)(_.Z,{icon:Z.Z}),title:__("Show media on top","newspack-blocks"),isActive:"top"===v,onClick:function(){return c({mediaPosition:"top"})}},{icon:(0,f.createElement)(_.Z,{icon:P.Z}),title:__("Show media on left","newspack-blocks"),isActive:"left"===v,onClick:function(){return c({mediaPosition:"left"})}},{icon:(0,f.createElement)(_.Z,{icon:O.Z}),title:__("Show media on right","newspack-blocks"),isActive:"right"===v,onClick:function(){return c({mediaPosition:"right"})}},{icon:(0,f.createElement)(_.Z,{icon:A.Z}),title:__("Show media behind","newspack-blocks"),isActive:"behind"===v,onClick:function(){return c({mediaPosition:"behind"})}}],q=[{icon:I,title:__("Landscape Image Shape","newspack-blocks"),isActive:"landscape"===h,onClick:function(){return c({imageShape:"landscape"})}},{icon:R,title:__("portrait Image Shape","newspack-blocks"),isActive:"portrait"===h,onClick:function(){return c({imageShape:"portrait"})}},{icon:j,title:__("Square Image Shape","newspack-blocks"),isActive:"square"===h,onClick:function(){return c({imageShape:"square"})}},{icon:(0,f.createElement)(_.Z,{icon:T.Z}),title:__("Uncropped","newspack-blocks"),isActive:"uncropped"===h,onClick:function(){return c({imageShape:"uncropped"})}}];return(0,f.createElement)(f.Fragment,null,(0,f.createElement)("div",{className:H,style:{color:s.color}},(0,f.createElement)("div",null,i&&(!y.RichText.isEmpty(L)||a)&&(0,f.createElement)(y.RichText,{onChange:function(e){return c({sectionHeader:e})},placeholder:__("Write header…","newspack-blocks"),value:L,tagName:"h2",className:"article-section-title"}),i&&!i.length&&(0,f.createElement)(k.Placeholder,null,__("Sorry, no posts were found.","newspack-blocks")),!i&&!u&&(0,f.createElement)(k.Placeholder,{icon:(0,f.createElement)(k.Spinner,null),className:"component-placeholder__align-center"}),!i&&u&&(0,f.createElement)(k.Placeholder,{className:"component-placeholder__align-center newspack-block--error"},u),i&&i.map((function(e){return t.renderPost(e)})))),!z&&i&&w&&!(0,d.pM)()&&(0,f.createElement)("div",{className:"editor-styles-wrapper wpnbha__wp-block-button__wrapper"},(0,f.createElement)("div",{className:"wp-block-button"},(0,f.createElement)(y.RichText,{placeholder:__("Load more posts","newspack-blocks"),value:b,onChange:function(e){return c({moreButtonText:e})},className:"wp-block-button__link",keepPlaceholderOnFocus:!0,allowedFormats:[]}))),(0,f.createElement)(y.BlockControls,null,(0,f.createElement)(k.Toolbar,{controls:D}),p&&(0,f.createElement)(k.Toolbar,{controls:F}),p&&(0,f.createElement)(k.Toolbar,{controls:q})),(0,f.createElement)(y.InspectorControls,null,this.renderInspectorControls()))}}]),n}(f.Component);t.Z=(0,E.compose)([(0,y.withColors)({textColor:"color"}),(0,b.withSelect)(d.b9),(0,b.withDispatch)(d.eL)])(M)},4960:function(e,t,n){"use strict";n.d(t,{Xd:function(){return p}});var r=n(3027),o=n(9314),c=n(7997),a=n(5799),i=n(3163),s=n(741),u=(n(9568),n(3689),n(8177)),__=i.__,_x=i._x,l=(u.u2,u.Y4),f=u.W3,p={title:__("Homepage Posts","newspack-blocks"),icon:{src:(0,r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(c.Path,{d:"M6.5 14.25H11v-1.5H6.5zM14.5 11.25h-8v-1.5h8zM6.5 8.25h8v-1.5h-8z"}),(0,r.createElement)(c.Path,{clipRule:"evenodd",d:"M4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.272 3.728 18 4.625 18h11.75c.897 0 1.625-.728 1.625-1.625V4.625C18 3.728 17.272 3 16.375 3zm11.75 1.5H4.625a.125.125 0 00-.125.125v11.75c0 .069.056.125.125.125h11.75a.125.125 0 00.125-.125V4.625a.125.125 0 00-.125-.125z",fillRule:"evenodd"}),(0,r.createElement)(c.Path,{d:"M20.25 8v11c0 .69-.56 1.25-1.249 1.25H6v1.5h13.001A2.749 2.749 0 0021.75 19V8z"})),foreground:"#36f"},attributes:l,category:f,keywords:[__("posts","newspack-blocks"),__("articles","newspack-blocks"),__("latest","newspack-blocks")],description:__("A block for displaying homepage posts.","newspack-blocks"),styles:[{name:"default",label:_x("Default","block style","newspack-blocks"),isDefault:!0},{name:"borders",label:_x("Borders","block style","newspack-blocks")}],supports:{html:!1,align:["wide","full"],default:""},edit:s.Z,save:function(){return null},transforms:{from:[{type:"block",blocks:["core/latest-posts"],transform:function(e){var t=e.displayPostContent,n=e.displayPostDate,r=e.postLayout,c=e.columns,i=e.postsToShow,s=e.categories;return(0,o.createBlock)((0,a.applyFilters)("blocks.transforms_from_name","newspack-blocks/homepage-articles"),{showExcerpt:t,showDate:n,postLayout:r,columns:c,postsToShow:i,showAuthor:!1,categories:s?[s]:[]})}}],to:[{type:"block",blocks:["core/latest-posts"],transform:function(e){var t=e.showExcerpt,n=e.showDate,r=e.postLayout,c=e.columns,a=e.postsToShow,i=e.categories;return(0,o.createBlock)("core/latest-posts",{displayPostContent:t,displayPostDate:n,postLayout:r,columns:c,postsToShow:a,categories:i[0]||""})}}]}}},9707:function(e,t,n){"use strict";n.d(t,{$:function(){return v},f:function(){return Z}});var r=n(1766),o=n(9394),c=n(8717),a=n(608),i=n(2397),s=n(3804),u=n(5707),l=n(7606),f=n.n(l),p=n(791),d=n(8177),h=n(8328),g=regeneratorRuntime.mark(C),m=d.u2,v="newspack-blocks/".concat(m),w={postsByBlock:{},errorsByBlock:{}},y={reflow:function(){E.dispatch({type:"REFLOW"})}},k={getPosts:function(e){var t=e.clientId;return E.getState().postsByBlock[t]},getError:function(e){var t=e.clientId;return E.getState().errorsByBlock[t]},isUIDisabled:function(){return E.getState().isUIDisabled}},b=(0,i.ZP)(),E=(0,c.MT)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISABLE_UI":return(0,s.set)(e,"isUIDisabled",!0);case"ENABLE_UI":return(0,s.set)(e,"isUIDisabled",!1);case"UPDATE_BLOCK_POSTS":return(0,s.set)(e,["postsByBlock",t.clientId],t.posts);case"UPDATE_BLOCK_ERROR":return(0,s.set)(e,["errorsByBlock",t.clientId],t.error)}return e}),(0,c.md)(b)),S=(0,o.Z)({getSelectors:function(){return k},getActions:function(){return y}},E),_={},x=JSON.stringify;function C(e){var t,n,r,c,i;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(t=x(e.postsQuery),n=window.newspack_blocks_data.posts_rest_url,void 0!==(r=_[t])){s.next=9;break}return c=(0,p.addQueryArgs)(n,(0,o.Z)((0,o.Z)({},e.postsQuery),{},{context:"edit"})),s.next=7,(0,a.RE)(f(),{url:c});case 7:r=s.sent,_[t]=r;case 9:return i=r.map((function(e){return e.id})),s.next=12,(0,a.gz)({type:"UPDATE_BLOCK_POSTS",clientId:e.clientId,posts:r});case 12:return s.abrupt("return",i);case 13:case"end":return s.stop()}}),g)}var Z=function(e){(0,u.registerGenericStore)(v,S),b.run(function(e){var t=regeneratorRuntime.mark(n);function n(){var n,o,c,i,s,l,f,p,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.gw)(300);case 2:return n=(0,u.select)("core/block-editor"),o=n.getBlocks,c=(0,u.select)("core/editor"),i=c.getCurrentPostId,t.next=6,(0,a.gz)({type:"DISABLE_UI"});case 6:s=(0,h.Pi)(o(),e),l=s.reduce((function(e,t){var n=t.postsQuery;return n.include&&(e=[].concat((0,r.Z)(e),(0,r.Z)(n.include))),e}),[]),f=(0,h.Oi)([].concat((0,r.Z)(l),[i()]));case 9:if(!s.length){t.next=26;break}return(p=s.shift()).postsQuery.exclude=f,d=[],t.prev=13,t.next=16,(0,a.RE)(C,p);case 16:d=t.sent,t.next=23;break;case 19:return t.prev=19,t.t0=t.catch(13),t.next=23,(0,a.gz)({type:"UPDATE_BLOCK_ERROR",clientId:p.clientId,error:t.t0.message});case 23:f=[].concat((0,r.Z)(f),(0,r.Z)(d)),t.next=9;break;case 26:return t.next=28,(0,a.gz)({type:"ENABLE_UI"});case 28:case"end":return t.stop()}}),t,null,[[13,19]])}return regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.Fm)("REFLOW",n);case 2:case"end":return e.stop()}}),e)}))}(e))}},8328:function(e,t,n){"use strict";n.d(t,{pM:function(){return a},Ou:function(){return s},Oi:function(){return u},Pi:function(){return l},b9:function(){return h},eL:function(){return g}});var r=n(3804),o=n(3163),c=n(9707),__=o.__,a=function(){return"object"==typeof window&&window.wpcomGutenberg&&-1===Number(window.wpcomGutenberg.blogPublic)},i=["postsToShow","authors","categories","excerptLength","tags","showExcerpt","specificPosts","specificMode","tagExclusions","categoryExclusions","postType"],s=function(e,t){return!(0,r.isEqual)((0,r.pick)(e.attributes,i),(0,r.pick)(t.attributes,i))||!(0,r.isEqual)(e.topBlocksClientIdsInOrder,t.topBlocksClientIdsInOrder)},u=function(e){return e.map((function(e){return parseInt(e)})).filter((function(e){return e>0}))},l=function e(t,n){return t.flatMap((function(t){var o,c,a,s,l,f,p,d,h,g,m,v,w,y,k,b,E,S=[];if(n.indexOf(t.name)>=0){var _=(o=t.attributes,c=(0,r.pick)(o,i),a=c.postsToShow,s=c.authors,l=c.categories,f=c.excerptLength,p=c.postType,d=c.showExcerpt,h=c.tags,g=c.specificPosts,m=void 0===g?[]:g,v=c.specificMode,w=c.tagExclusions,y=c.categoryExclusions,k=u(m),b=v&&k&&k.length,(E=(0,r.pickBy)(b?{include:k,per_page:m.length,post_type:p}:{per_page:a,categories:l,author:s,tags:h,tags_exclude:w,categories_exclude:y,post_type:p},(function(e){return!(0,r.isUndefined)(e)}))).excerpt_length=f,E.show_excerpt=d,E);S.push({postsQuery:_,clientId:t.clientId})}return S.concat(e(t.innerBlocks,n))}))},f=function e(t){return t.flatMap((function(t){var n=[];return n.push(t.clientId),n.concat(e(t.innerBlocks))}))},p=window.newspack_blocks_data.assets_path,d=function(e){var t=new Date;return t.setHours(12,0,0,0),{author:1,content:{rendered:"<p>"+__("The post content.","newspack")+"</p>"},date_gmt:t.toISOString(),excerpt:{rendered:"<p>"+__("The post excerpt.","newspack")+"</p>"},featured_media:"1",id:e,meta:{newspack_post_subtitle:__("Post Subtitle","newspack")},title:{rendered:__("Post Title","newspack")},newspack_article_classes:"type-post",newspack_author_info:[{display_name:__("Author Name","newspack"),avatar:'<div style="background: #36f;width: 40px;height: 40px;display: block;overflow: hidden;border-radius: 50%; max-width: 100%; max-height: 100%;"></div>',id:1,author_link:"/"}],newspack_category_info:__("Category","newspack"),newspack_featured_image_caption:__("Featured image caption","newspack"),newspack_featured_image_src:{large:"".concat(p,"/newspack-1024x536.jpg"),landscape:"".concat(p,"/newspack-800x600.jpg"),portrait:"".concat(p,"/newspack-600x800.jpg"),square:"".concat(p,"/newspack-800x800.jpg"),uncropped:"".concat(p,"/newspack-1024x536.jpg")},newspack_has_custom_excerpt:!1,newspack_post_format:"standard",newspack_post_sponsors:!1}},h=function(e,t){var n,o=t.clientId,a=t.attributes,i=e("core").getPostTypes,s=e("core/editor").getEditorBlocks,u=e("core/block-editor").getBlocks,l=f(s()).indexOf(o)>=0,p=e(c.$),h=p.getPosts,g=p.getError,m={isEditorBlock:l,isUIDisabled:(0,p.isUIDisabled)(),error:g({clientId:o}),topBlocksClientIdsInOrder:u().map((function(e){return e.clientId})),availablePostTypes:null===(n=i({per_page:-1}))||void 0===n?void 0:n.filter((function(e){return e.supports.newspack_blocks}))};return m.latestPosts=l?h({clientId:o}):function(e){return(0,r.times)(e.postsToShow,d)}(a),m},g=function(e,t){return{triggerReflow:t.isEditorBlock?e(c.$).reflow:function(){}}}},7045:function(e,t,n){"use strict";var r=n(1766),o=n(4659),c=n(4730),a=n(3989),i=n(5663),s=n(9049),u=n(1119),l=n(3027),f=n(3804),p=n(7997),d=(n(3536),function(e){(0,i.Z)(n,e);var t=(0,s.Z)(n);function n(e){var r;return(0,o.Z)(this,n),r=t.call(this,e),(0,u.Z)((0,a.Z)(r),"isFetchingInfoOnLoad",(function(){var e=r.props,t=e.tokens,n=e.fetchSavedInfo;return Boolean(t.length&&n)})),r.state={suggestions:[],validValues:{},loading:r.isFetchingInfoOnLoad()},r.debouncedUpdateSuggestions=(0,f.debounce)(r.updateSuggestions,500),r}return(0,c.Z)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.isFetchingInfoOnLoad()){var t=this.props,n=t.tokens;(0,t.fetchSavedInfo)(n).then((function(t){var n=e.state.validValues;t.forEach((function(e){n[e.value]=e.label})),e.setState({validValues:n,loading:!1})}))}}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest,this.debouncedUpdateSuggestions.cancel()}},{key:"getLabelsForValues",value:function(e){var t=this.state.validValues;return e.reduce((function(e,n){return t[n]?[].concat((0,r.Z)(e),[t[n]]):e}),[])}},{key:"getValuesForLabels",value:function(e){var t=this.state.validValues;return e.map((function(e){return Object.keys(t).find((function(n){return t[n]===e}))}))}},{key:"updateSuggestions",value:function(e){var t=this,n=this.props.fetchSuggestions;n&&this.setState({loading:!0},(function(){var r=n(e);r.then((function(e){if(t.suggestionsRequest===r){var n=t.state.validValues,o=[];e.forEach((function(e){var t=e.label.trim();o.indexOf(t)>=0&&(e.label="".concat(t," (").concat(e.value,")")),o.push(t),n[e.value]=t})),t.setState({suggestions:o,validValues:n,loading:!1})}})).catch((function(){t.suggestionsRequest===r&&t.setState({loading:!1})})),t.suggestionsRequest=r}))}},{key:"handleOnChange",value:function(e){(0,this.props.onChange)(this.getValuesForLabels(e))}},{key:"getTokens",value:function(){var e=this.props.tokens;return this.getLabelsForValues(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.help,r=t.label,o=void 0===r?"":r,c=this.state,a=c.suggestions,i=c.loading;return(0,l.createElement)("div",{className:"autocomplete-tokenfield"},(0,l.createElement)(p.FormTokenField,{value:this.getTokens(),suggestions:a,onChange:function(t){return e.handleOnChange(t)},onInputChange:function(t){return e.debouncedUpdateSuggestions(t)},label:o}),i&&(0,l.createElement)(p.Spinner,null),n&&(0,l.createElement)("p",{className:"autocomplete-tokenfield__help"},n))}}]),n}(l.Component));t.Z=d},5113:function(e,t,n){"use strict";var r=n(7560),o=n(4659),c=n(3989),a=n(5663),i=n(9049),s=n(1119),u=n(3027),l=n(3163),f=n(7997),p=n(7606),d=n.n(p),h=n(791),g=n(1424),m=n(7045),__=l.__,v=function(e){return(0,g.decodeEntities)(e.name)||__("(no title)","newspack-blocks")},w=function(e){(0,a.Z)(n,e);var t=(0,i.Z)(n);function n(){var e;(0,o.Z)(this,n);for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return e=t.call.apply(t,[this].concat(i)),(0,s.Z)((0,c.Z)(e),"state",{showAdvancedFilters:!1}),(0,s.Z)((0,c.Z)(e),"fetchPostSuggestions",(function(t){var n=e.props.postType,r=window.newspack_blocks_data.specific_posts_rest_url;return d()({url:(0,h.addQueryArgs)(r,{search:t,per_page:20,_fields:"id,title",type:"post",post_type:n})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,g.decodeEntities)(e.title)||__("(no title)","newspack-blocks")}}))}))})),(0,s.Z)((0,c.Z)(e),"fetchSavedPosts",(function(e){return d()({path:(0,h.addQueryArgs)("/wp/v2/posts",{per_page:100,include:e.join(","),_fields:"id,title"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,g.decodeEntities)(e.title.rendered)||__("(no title)","newspack-blocks")}}))}))})),(0,s.Z)((0,c.Z)(e),"fetchAuthorSuggestions",(function(e){return d()({path:(0,h.addQueryArgs)("/wp/v2/users",{search:e,per_page:20,_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,g.decodeEntities)(e.name)||__("(no name)","newspack-blocks")}}))}))})),(0,s.Z)((0,c.Z)(e),"fetchSavedAuthors",(function(e){return d()({path:(0,h.addQueryArgs)("/wp/v2/users",{per_page:100,include:e.join(","),_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,g.decodeEntities)(e.name)||__("(no name)","newspack-blocks")}}))}))})),(0,s.Z)((0,c.Z)(e),"fetchCategorySuggestions",(function(e){return d()({path:(0,h.addQueryArgs)("/wp/v2/categories",{search:e,per_page:20,_fields:"id,name,parent",orderby:"count",order:"desc"})}).then((function(e){return Promise.all(e.map((function(e){return e.parent>0?d()({path:(0,h.addQueryArgs)("/wp/v2/categories/".concat(e.parent),{_fields:"name"})}).then((function(t){return{value:e.id,label:"".concat(v(e)," – ").concat(v(t))}})):Promise.resolve({value:e.id,label:v(e)})})))}))})),(0,s.Z)((0,c.Z)(e),"fetchSavedCategories",(function(e){return d()({path:(0,h.addQueryArgs)("/wp/v2/categories",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,g.decodeEntities)(e.name)||__("(no title)","newspack-blocks")}}))}))})),(0,s.Z)((0,c.Z)(e),"fetchTagSuggestions",(function(e){return d()({path:(0,h.addQueryArgs)("/wp/v2/tags",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,g.decodeEntities)(e.name)||__("(no title)","newspack-blocks")}}))}))})),(0,s.Z)((0,c.Z)(e),"fetchSavedTags",(function(e){return d()({path:(0,h.addQueryArgs)("/wp/v2/tags",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,g.decodeEntities)(e.name)||__("(no title)","newspack-blocks")}}))}))})),(0,s.Z)((0,c.Z)(e),"render",(function(){var t=e.props,n=t.specificMode,o=t.onSpecificModeChange,c=t.specificPosts,a=t.onSpecificPostsChange,i=t.authors,s=t.onAuthorsChange,l=t.categories,p=t.onCategoriesChange,d=t.tags,h=t.onTagsChange,g=t.tagExclusions,v=t.onTagExclusionsChange,w=t.categoryExclusions,y=t.onCategoryExclusionsChange,k=t.enableSpecific,b=e.state.showAdvancedFilters;return[k&&(0,u.createElement)(f.ToggleControl,{key:"specificMode",checked:n,onChange:o,label:__("Choose Specific Posts","newspack-blocks")}),n&&(0,u.createElement)(m.Z,{key:"posts",tokens:c||[],onChange:a,fetchSuggestions:e.fetchPostSuggestions,fetchSavedInfo:e.fetchSavedPosts,label:__("Posts","newspack-blocks"),help:__("Begin typing post title, click autocomplete result to select.","newspack-blocks")}),!n&&(0,u.createElement)(f.QueryControls,(0,r.Z)({key:"queryControls"},e.props)),!n&&s&&(0,u.createElement)(m.Z,{key:"authors",tokens:i||[],onChange:s,fetchSuggestions:e.fetchAuthorSuggestions,fetchSavedInfo:e.fetchSavedAuthors,label:__("Authors","newspack-blocks")}),!n&&p&&(0,u.createElement)(m.Z,{key:"categories",tokens:l||[],onChange:p,fetchSuggestions:e.fetchCategorySuggestions,fetchSavedInfo:e.fetchSavedCategories,label:__("Categories","newspack-blocks")}),!n&&h&&(0,u.createElement)(m.Z,{key:"tags",tokens:d||[],onChange:h,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:__("Tags","newspack-blocks")}),!n&&v&&(0,u.createElement)("p",{key:"toggle-advanced-filters"},(0,u.createElement)(f.Button,{isLink:!0,onClick:function(){return e.setState({showAdvancedFilters:!b})}},__(b?"Hide Advanced Filters":"Show Advanced Filters","newspack-blocks"))),!n&&v&&b&&(0,u.createElement)(m.Z,{key:"tag-exclusion",tokens:g||[],onChange:v,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:__("Excluded Tags","newspack-blocks")}),!n&&y&&b&&(0,u.createElement)(m.Z,{key:"category-exclusion",tokens:w||[],onChange:y,fetchSuggestions:e.fetchCategorySuggestions,fetchSavedInfo:e.fetchSavedCategories,label:__("Excluded Categories","newspack-blocks")})]})),e}return n}(u.Component);w.defaultProps={enableSpecific:!0,specificPosts:[],authors:[],categories:[],tags:[],tagExclusions:[]},t.Z=w},904:function(e,t,n){"use strict";n.d(t,{lW:function(){return a},FX:function(){return i},b2:function(){return s},Q$:function(){return u}});var r=n(1766),o=n(3027),c=n(3163),_x=c._x,a=function(e){return e.map((function(e){return(0,o.createElement)("span",{className:"avatar author-avatar",key:e.id},(0,o.createElement)("a",{className:"url fn n",href:e.author_link},(0,o.createElement)(o.RawHTML,null,e.avatar)))}))},i=function(e){return(0,o.createElement)("span",{className:"byline"},_x("by","post author","newspack-blocks")," ",e.reduce((function(t,n,c){return[].concat((0,r.Z)(t),[(0,o.createElement)("span",{className:"author vcard",key:n.id},(0,o.createElement)("a",{className:"url fn n",href:n.author_link},n.display_name)),c<e.length-2&&", ",e.length>1&&c===e.length-2&&_x(" and ","post author","newspack-blocks")])}),[]))},s=function(e){return(0,o.createElement)("span",{className:"sponsor-logos"},e.map((function(e){return(0,o.createElement)(o.Fragment,{key:e.id},e.src&&(0,o.createElement)("a",{href:e.sponsor_url},(0,o.createElement)("img",{src:e.src,width:e.img_width,height:e.img_height,alt:e.sponsor_name})))})))},u=function(e){return(0,o.createElement)("span",{className:"byline sponsor-byline"},e[0].byline_prefix," ",e.reduce((function(t,n,c){return[].concat((0,r.Z)(t),[(0,o.createElement)("span",{className:"author",key:n.id},(0,o.createElement)("a",{href:n.author_link},n.sponsor_name)),c<e.length-2&&", ",e.length>1&&c===e.length-2&&_x(" and ","post author","newspack-blocks")])}),[]))}},3804:function(e){"use strict";e.exports=window.lodash},7606:function(e){"use strict";e.exports=window.wp.apiFetch},6399:function(e){"use strict";e.exports=window.wp.blockEditor},9314:function(e){"use strict";e.exports=window.wp.blocks},7997:function(e){"use strict";e.exports=window.wp.components},1417:function(e){"use strict";e.exports=window.wp.compose},5707:function(e){"use strict";e.exports=window.wp.data},7947:function(e){"use strict";e.exports=window.wp.date},3027:function(e){"use strict";e.exports=window.wp.element},5799:function(e){"use strict";e.exports=window.wp.hooks},1424:function(e){"use strict";e.exports=window.wp.htmlEntities},3163:function(e){"use strict";e.exports=window.wp.i18n},2418:function(e){"use strict";e.exports=window.wp.primitives},791:function(e){"use strict";e.exports=window.wp.url}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var c=t[r]={exports:{}};return e[r](c,c.exports,n),c.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r);var e=n(9394),t=n(9314),o=n(5799),c=n(3163),a=n(1136),i=n(4960),s=n(9707),__=c.__,u="a8c/blog-posts";(0,o.addFilter)("blocks.transforms_from_name","set-transformed-block-name",(function(e){return"newspack-blocks/homepage-articles"!==e?e:u})),(0,t.registerBlockType)(u,(0,e.Z)((0,e.Z)({},i.Xd),{},{title:__("Blog Posts","full-site-editing"),category:"widgets"})),(0,s.f)([u,a.T])}(),window.EditingToolkit=r}();
|
newspack-blocks/dist/carousel-block-editor.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '32c93168ed4623b54952304a631ad126');
|
newspack-blocks/dist/carousel-block-editor.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
!function(){var e={8177:function(e){"use strict";e.exports=JSON.parse('{"u2":"homepage-articles"}')},1357:function(e,t,n){"use strict";function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}n.d(t,{Z:function(){return a}})},8890:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(1357);function i(e){if(Array.isArray(e))return(0,a.Z)(e)}},3989:function(e,t,n){"use strict";function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return a}})},4659:function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return a}})},4730:function(e,t,n){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}n.d(t,{Z:function(){return i}})},9049:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(5630),i=n(733),r=n(591);function s(e){var t=(0,i.Z)();return function(){var n,i=(0,a.Z)(e);if(t){var s=(0,a.Z)(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return(0,r.Z)(this,n)}}},1119:function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return a}})},7560:function(e,t,n){"use strict";function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return a}})},5630:function(e,t,n){"use strict";function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,{Z:function(){return a}})},5663:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(4938);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,a.Z)(e,t)}},733:function(e,t,n){"use strict";function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return a}})},2733:function(e,t,n){"use strict";function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return a}})},3154:function(e,t,n){"use strict";function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return a}})},9394:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var a=n(1119);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},8283:function(e,t,n){"use strict";function a(e,t){if(null==e)return{};var n,a,i={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return a}})},591:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var a=n(929),i=n(3989);function r(e,t){if(t&&("object"===(0,a.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},4938:function(e,t,n){"use strict";function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return a}})},1766:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(8890),i=n(2733),r=n(237),s=n(3154);function o(e){return(0,a.Z)(e)||(0,i.Z)(e)||(0,r.Z)(e)||(0,s.Z)()}},929:function(e,t,n){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return a}})},237:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(1357);function i(e,t){if(e){if("string"==typeof e)return(0,a.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,a.Z)(e,t):void 0}}},6660:function(e,t,n){"use strict";n.d(t,{A:function(){return $},B:function(){return g},C:function(){return L},D:function(){return y},E:function(){return c},F:function(){return D},G:function(){return V},J:function(){return N},N:function(){return Y},P:function(){return z},R:function(){return O},S:function(){return R},T:function(){return I},Y:function(){return X},a:function(){return A},b:function(){return _},d:function(){return B},e:function(){return M},f:function(){return j},g:function(){return H},h:function(){return Z},i:function(){return b},j:function(){return C},k:function(){return o},l:function(){return T},m:function(){return w},o:function(){return f},p:function(){return u},q:function(){return m},r:function(){return p},s:function(){return S},t:function(){return l},u:function(){return d},v:function(){return k},y:function(){return x},z:function(){return E}});var a=n(3143),i=n(7560),r=n(3594),s=n(5295),o=function(e){return function(){return e}}(!0),l=function(){};var c=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var u=function(e,t){(0,i.Z)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))},d=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))};function p(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function f(e){var t=!1;return function(){t||(t=!0,e())}}var h=function(e){throw e},v=function(e){return{value:e,done:!0}};function m(e,t,n){void 0===t&&(t=h),void 0===n&&(n="iterator");var a={meta:{name:n},next:e,throw:t,return:v,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(a[Symbol.iterator]=function(){return a}),a}function g(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var b=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},w=function(e){return Array.apply(null,new Array(e))},y=function(e){return function(t){return e(Object.defineProperty(t,a.Nm,{value:!0}))}},E=function(e){return e===a.EO},x=function(e){return e===a.Wd},S=function(e){return E(e)||x(e)};function T(e,t){var n=Object.keys(e),a=n.length;var i,s=0,o=(0,r.IX)(e)?w(a):{},c={};return n.forEach((function(e){var n=function(n,r){i||(r||S(n)?(t.cancel(),t(n,r)):(o[e]=n,++s===a&&(i=!0,t(o))))};n.cancel=l,c[e]=n})),t.cancel=function(){i||(i=!0,n.forEach((function(e){return c[e].cancel()})))},c}function C(e){return{name:e.name||"anonymous",location:k(e)}}function k(e){return e[a.b_]}function P(e,t){void 0===e&&(e=10);var n=new Array(e),a=0,i=0,r=0,s=function(t){n[i]=t,i=(i+1)%e,a++},o=function(){if(0!=a){var t=n[r];return n[r]=null,a--,r=(r+1)%e,t}},l=function(){for(var e=[];a;)e.push(o());return e};return{isEmpty:function(){return 0==a},put:function(o){var c;if(a<e)s(o);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[i]=o,r=i=(i+1)%e;break;case 4:c=2*e,n=l(),a=n.length,i=n.length,r=0,n.length=c,e=c,s(o)}},take:o,flush:l}}var M=function(e){return P(e,4)},I="TAKE",z="PUT",$="ALL",O="RACE",L="CALL",A="CPS",D="FORK",N="JOIN",_="CANCEL",R="SELECT",B="ACTION_CHANNEL",j="CANCELLED",H="FLUSH",V="GET_CONTEXT",Z="SET_CONTEXT",G=function(e,t){var n;return(n={})[a.IO]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function X(e,t){return(0,r.sR)(t)&&(t=e,e=void 0),G(z,{channel:e,action:t})}function F(e,t){var n,a=null;return(0,r.Yl)(e)?n=e:((0,r.IX)(e)?(a=e[0],n=e[1]):(a=e.context,n=e.fn),a&&(0,r.Z_)(n)&&(0,r.Yl)(a[n])&&(n=a[n])),{context:a,fn:n,args:t}}function Y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return G(L,F(e,n))}s.Z},1260:function(e,t,n){"use strict";var a=n(3143),i=n(7560),r=n(8283),s=n(3594),o=n(6660),l=n(8717),c=n(1884),u=[],d=0;function p(e){try{v(),e()}finally{m()}}function f(e){u.push(e),d||(v(),g())}function h(e){try{return v(),e()}finally{g()}}function v(){d++}function m(){d--}function g(){var e;for(m();!d&&void 0!==(e=u.shift());)p(e)}var b=function(e){return function(t){return e.some((function(e){return S(e)(t)}))}},w=function(e){return function(t){return e(t)}},y=function(e){return function(t){return t.type===String(e)}},E=function(e){return function(t){return t.type===e}},x=function(){return o.k};function S(e){var t="*"===e?x:(0,s.Z_)(e)?y:(0,s.IX)(e)?b:(0,s.eR)(e)?y:(0,s.Yl)(e)?w:(0,s.NA)(e)?E:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var T={type:a.sZ},C=function(e){return e&&e.type===a.sZ};function k(e){void 0===e&&(e=(0,o.e)());var t=!1,n=[];return{take:function(a){t&&e.isEmpty()?a(T):e.isEmpty()?(n.push(a),a.cancel=function(){(0,o.r)(n,a)}):a(e.take())},put:function(a){if(!t){if(0===n.length)return e.put(a);n.shift()(a)}},flush:function(n){t&&e.isEmpty()?n(T):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var a=0,i=e.length;a<i;a++){(0,e[a])(T)}}}}}function P(){var e,t,n,i,r,s,l=(t=!1,i=n=[],r=function(){i===n&&(i=n.slice())},s=function(){t=!0;var e=n=i;i=[],e.forEach((function(e){e(T)}))},(e={})[a.AS]=!0,e.put=function(e){if(!t)if(C(e))s();else for(var r=n=i,o=0,l=r.length;o<l;o++){var c=r[o];c[a.uq](e)&&(c.cancel(),c(e))}},e.take=function(e,n){void 0===n&&(n=x),t?e(T):(e[a.uq]=n,r(),i.push(e),e.cancel=(0,o.o)((function(){r(),(0,o.r)(i,e)})))},e.close=s,e),c=l.put;return l.put=function(e){e[a.Nm]?c(e):f((function(){c(e)}))},l}function M(e,t){var n=e[a.n1];(0,s.Yl)(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var I,z=0,$=function(){return++z};function O(e){e.isRunning()&&e.cancel()}var L=((I={})[o.T]=function(e,t,n){var i=t.channel,r=void 0===i?e.channel:i,o=t.pattern,l=t.maybe,c=function(e){e instanceof Error?n(e,!0):!C(e)||l?n(e):n(a.EO)};try{r.take(c,(0,s.d5)(o)?S(o):null)}catch(u){return void n(u,!0)}n.cancel=c.cancel},I[o.P]=function(e,t,n){var a=t.channel,i=t.action,r=t.resolve;f((function(){var t;try{t=(a?a.put:e.dispatch)(i)}catch(o){return void n(o,!0)}r&&(0,s.MC)(t)?M(t,n):n(t)}))},I[o.A]=function(e,t,n,a){var i=a.digestEffect,r=z,l=Object.keys(t);if(0!==l.length){var c=(0,o.l)(t,n);l.forEach((function(e){i(t[e],r,c[e],e)}))}else n((0,s.IX)(t)?[]:{})},I[o.R]=function(e,t,n,a){var i=a.digestEffect,r=z,l=Object.keys(t),c=(0,s.IX)(t)?(0,o.m)(l.length):{},u={},d=!1;l.forEach((function(e){var t=function(t,a){d||(a||(0,o.s)(t)?(n.cancel(),n(t,a)):(n.cancel(),d=!0,c[e]=t,n(c)))};t.cancel=o.t,u[e]=t})),n.cancel=function(){d||(d=!0,l.forEach((function(e){return u[e].cancel()})))},l.forEach((function(e){d||i(t[e],r,u[e],e)}))},I[o.C]=function(e,t,n,a){var i=t.context,r=t.fn,l=t.args,c=a.task;try{var u=r.apply(i,l);if((0,s.MC)(u))return void M(u,n);if((0,s.hZ)(u))return void Z(e,u,c.context,z,(0,o.j)(r),!1,n);n(u)}catch(d){n(d,!0)}},I[o.a]=function(e,t,n){var a=t.context,i=t.fn,r=t.args;try{var o=function(e,t){(0,s.sR)(e)?n(t):n(e,!0)};i.apply(a,r.concat(o)),o.cancel&&(n.cancel=o.cancel)}catch(l){n(l,!0)}},I[o.F]=function(e,t,n,a){var i=t.context,r=t.fn,l=t.args,c=t.detached,u=a.task,d=function(e){var t=e.context,n=e.fn,a=e.args;try{var i=n.apply(t,a);if((0,s.hZ)(i))return i;var r=!1;return(0,o.q)((function(e){return r?{value:e,done:!0}:(r=!0,{value:i,done:!(0,s.MC)(i)})}))}catch(l){return(0,o.q)((function(){throw l}))}}({context:i,fn:r,args:l}),p=function(e,t){return e.isSagaIterator?{name:e.meta.name}:(0,o.j)(t)}(d,r);h((function(){var t=Z(e,d,u.context,z,p,c,void 0);c?n(t):t.isRunning()?(u.queue.addTask(t),n(t)):t.isAborted()?u.queue.abort(t.error()):n(t)}))},I[o.J]=function(e,t,n,a){var i=a.task,r=function(e,t){if(e.isRunning()){var n={task:i,cb:t};t.cancel=function(){e.isRunning()&&(0,o.r)(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if((0,s.IX)(t)){if(0===t.length)return void n([]);var l=(0,o.l)(t,n);t.forEach((function(e,t){r(e,l[t])}))}else r(t,n)},I[o.b]=function(e,t,n,i){var r=i.task;t===a.sC?O(r):(0,s.IX)(t)?t.forEach(O):O(t),n()},I[o.S]=function(e,t,n){var a=t.selector,i=t.args;try{n(a.apply(void 0,[e.getState()].concat(i)))}catch(r){n(r,!0)}},I[o.d]=function(e,t,n){var a=t.pattern,i=k(t.buffer),r=S(a),s=function t(n){C(n)||e.channel.take(t,r),i.put(n)},o=i.close;i.close=function(){s.cancel(),o()},e.channel.take(s,r),n(i)},I[o.f]=function(e,t,n,a){n(a.task.isCancelled())},I[o.g]=function(e,t,n){t.flush(n)},I[o.G]=function(e,t,n,a){n(a.task.context[t])},I[o.h]=function(e,t,n,a){var i=a.task;(0,o.p)(i.context,t),n()},I);function A(e,t){return e+"?"+t}function D(e){var t=e.name,n=e.location;return n?t+" "+A(n.fileName,n.lineNumber):t}function N(e){var t=(0,o.u)((function(e){return e.cancelledTasks}),e);return t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):""}var _=null,R=[],B=function(e){e.crashedEffect=_,R.push(e)},j=function(){_=null,R.length=0},H=function(){var e=R[0],t=R.slice(1),n=e.crashedEffect?function(e){var t=(0,o.v)(e);return t?t.code+" "+A(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+D(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+D(e.meta)})),[N(R)]).join("\n")};function V(e,t,n,i,r,s,l){var u;void 0===l&&(l=o.t);var d,p,f=0,h=null,v=[],m=Object.create(n),g=function(e,t,n){var a,i=[],r=!1;function s(e){t(),c(),n(e,!0)}function l(t){i.push(t),t.cont=function(l,c){r||((0,o.r)(i,t),t.cont=o.t,c?s(l):(t===e&&(a=l),i.length||(r=!0,n(a))))}}function c(){r||(r=!0,i.forEach((function(e){e.cont=o.t,e.cancel()})),i=[])}return l(e),{addTask:l,cancelAll:c,abort:s,getTasks:function(){return i}}}(t,(function(){v.push.apply(v,g.getTasks().map((function(e){return e.meta.name})))}),b);function b(t,n){if(n){if(f=2,B({meta:r,cancelledTasks:v}),w.isRoot){var i=H();j(),e.onError(t,{sagaStack:i})}p=t,h&&h.reject(t)}else t===a.Wd?f=1:1!==f&&(f=3),d=t,h&&h.resolve(t);w.cont(t,n),w.joiners.forEach((function(e){e.cb(t,n)})),w.joiners=null}var w=((u={})[a.Cs]=!0,u.id=i,u.meta=r,u.isRoot=s,u.context=m,u.joiners=[],u.queue=g,u.cancel=function(){0===f&&(f=1,g.cancelAll(),b(a.Wd,!1))},u.cont=l,u.end=b,u.setContext=function(e){(0,o.p)(m,e)},u.toPromise=function(){return h||(h=(0,c.Z)(),2===f?h.reject(p):0!==f&&h.resolve(d)),h.promise},u.isRunning=function(){return 0===f},u.isCancelled=function(){return 1===f||0===f&&1===t.status},u.isAborted=function(){return 2===f},u.result=function(){return d},u.error=function(){return p},u);return w}function Z(e,t,n,i,r,l,c){var u=e.finalizeRunEffect((function(t,n,i){if((0,s.MC)(t))M(t,i);else if((0,s.hZ)(t))Z(e,t,p.context,n,r,!1,i);else if(t&&t[a.IO]){(0,L[t.type])(e,t.payload,i,f)}else i(t)}));h.cancel=o.t;var d={meta:r,cancel:function(){0===d.status&&(d.status=1,h(a.Wd))},status:0},p=V(e,d,n,i,r,l,c),f={task:p,digestEffect:v};return c&&(c.cancel=p.cancel),h(),p;function h(e,n){try{var r;n?(r=t.throw(e),j()):(0,o.y)(e)?(d.status=1,h.cancel(),r=(0,s.Yl)(t.return)?t.return(a.Wd):{done:!0,value:a.Wd}):r=(0,o.z)(e)?(0,s.Yl)(t.return)?t.return():{done:!0}:t.next(e),r.done?(1!==d.status&&(d.status=3),d.cont(r.value)):v(r.value,i,h)}catch(l){if(1===d.status)throw l;d.status=2,d.cont(l,!0)}}function v(t,n,a,i){void 0===i&&(i="");var r,s=$();function l(n,i){r||(r=!0,a.cancel=o.t,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(s,n):e.sagaMonitor.effectResolved(s,n)),i&&function(e){_=e}(t),a(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:s,parentEffectId:n,label:i,effect:t}),l.cancel=o.t,a.cancel=function(){r||(r=!0,l.cancel(),l.cancel=o.t,e.sagaMonitor&&e.sagaMonitor.effectCancelled(s))},u(t,s,l)}}function G(e,t){var n=e.channel,a=void 0===n?P():n,i=e.dispatch,r=e.getState,s=e.context,c=void 0===s?{}:s,u=e.sagaMonitor,d=e.effectMiddlewares,p=e.onError,f=void 0===p?o.B:p;for(var v=arguments.length,m=new Array(v>2?v-2:0),g=2;g<v;g++)m[g-2]=arguments[g];var b=t.apply(void 0,m);var w,y=$();if(u&&(u.rootSagaStarted=u.rootSagaStarted||o.t,u.effectTriggered=u.effectTriggered||o.t,u.effectResolved=u.effectResolved||o.t,u.effectRejected=u.effectRejected||o.t,u.effectCancelled=u.effectCancelled||o.t,u.actionDispatched=u.actionDispatched||o.t,u.rootSagaStarted({effectId:y,saga:t,args:m})),d){var E=l.qC.apply(void 0,d);w=function(e){return function(t,n,a){return E((function(t){return e(t,n,a)}))(t)}}}else w=o.E;var x={channel:a,dispatch:(0,o.D)(i),getState:r,sagaMonitor:u,onError:f,finalizeRunEffect:w};return h((function(){var e=Z(x,b,c,y,(0,o.j)(t),!0,void 0);return u&&u.effectResolved(y,e),e}))}t.ZP=function(e){var t,n=void 0===e?{}:e,a=n.context,s=void 0===a?{}:a,l=n.channel,c=void 0===l?P():l,u=n.sagaMonitor,d=(0,r.Z)(n,["context","channel","sagaMonitor"]);function p(e){var n=e.getState,a=e.dispatch;return t=G.bind(null,(0,i.Z)({},d,{context:s,channel:c,dispatch:a,getState:n,sagaMonitor:u})),function(e){return function(t){u&&u.actionDispatched&&u.actionDispatched(t);var n=e(t);return c.put(t),n}}}return p.run=function(){return t.apply(void 0,arguments)},p.setContext=function(e){(0,o.p)(s,e)},p}},5703:function(e,t,n){"use strict";n.d(t,{RE:function(){return a.N},gz:function(){return a.Y}});n(3594);var a=n(6660)},1884:function(e,t,n){"use strict";function a(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}t.Z=a},5295:function(e,t,n){"use strict";var a=n(3143);t.Z=function(e,t){var n;void 0===t&&(t=!0);var i=new Promise((function(a){n=setTimeout(a,e,t)}));return i[a.n1]=function(){clearTimeout(n)},i}},3594:function(e,t,n){"use strict";n.d(t,{IX:function(){return o},Yl:function(){return r},hZ:function(){return c},d5:function(){return i},MC:function(){return l},Z_:function(){return s},eR:function(){return u},NA:function(){return d},sR:function(){return a}});var a=function(e){return null==e},i=function(e){return null!=e},r=function(e){return"function"==typeof e},s=function(e){return"string"==typeof e},o=Array.isArray,l=function(e){return e&&r(e.then)},c=function(e){return e&&r(e.next)&&r(e.throw)},u=function(e){return r(e)&&e.hasOwnProperty("toString")},d=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype}},3143:function(e,t,n){"use strict";n.d(t,{n1:function(){return i},sZ:function(){return r},IO:function(){return s},uq:function(){return o},AS:function(){return l},Nm:function(){return c},b_:function(){return h},sC:function(){return u},Cs:function(){return d},Wd:function(){return p},EO:function(){return f}});var a=function(e){return"@@redux-saga/"+e},i=a("CANCEL_PROMISE"),r=a("CHANNEL_END"),s=a("IO"),o=a("MATCH"),l=a("MULTICAST"),c=a("SAGA_ACTION"),u=a("SELF_CANCELLATION"),d=a("TASK"),p=a("TASK_CANCEL"),f=a("TERMINATE"),h=a("LOCATION")},2779:function(e,t){var n;
|
2 |
/*!
|
3 |
Copyright (c) 2018 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
-
*/!function(){"use strict";var a={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var s=i.apply(null,n);s&&e.push(s)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var o in n)a.call(n,o)&&n[o]&&e.push(o);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},3709:function(){},9583:function(){},3536:function(){},2397:function(e,t,n){"use strict";var a=n(1260);t.ZP=a.ZP},608:function(e,t,n){"use strict";n.d(t,{RE:function(){return a.RE},gz:function(){return a.gz}});var a=n(5703)},8717:function(e,t,n){"use strict";n.d(t,{md:function(){return p},qC:function(){return d},MT:function(){return o}});var a=n(4527),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},r={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function s(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function o(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var l=e,c=t,u=[],d=u,p=!1;function f(){d===u&&(d=u.slice())}function h(){if(p)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return c}function v(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(p)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return f(),d.push(e),function(){if(t){if(p)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,f();var n=d.indexOf(e);d.splice(n,1),u=null}}}function m(e){if(!s(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,c=l(c,e)}finally{p=!1}for(var t=u=d,n=0;n<t.length;n++){(0,t[n])()}return e}function g(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");l=e,m({type:r.REPLACE})}function b(){var e,t=v;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[a.Z]=function(){return this},e}return m({type:r.INIT}),(i={dispatch:m,subscribe:v,getState:h,replaceReducer:g})[a.Z]=b,i}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(n,!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),a=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},r=t.map((function(e){return e(i)}));return u({},n,{dispatch:a=d.apply(void 0,r)(n.dispatch)})}}}},5913:function(e,t,n){"use strict";n.d(t,{u:function(){return i},t:function(){return a}});var a="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,i="undefined"==typeof window?{document:a,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window},4527:function(e,t,n){"use strict";var a,i=n(9462);e=n.hmd(e),a="undefined"!=typeof self?self:"undefined"!=typeof window||"undefined"!=typeof window?window:e;var r=(0,i.Z)(a);t.Z=r},9462:function(e,t,n){"use strict";function a(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,{Z:function(){return a}})},1136:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var a="a8c/posts-carousel"},1188:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var a=n(402),i=n(7950),r=n(3163),s=n(9529),__=r.__,o="wp-block-newspack-blocks-carousel__autoplay-playing";function l(e,t){Array.prototype.forEach.call(e,t)}function c(e){e&&(e.setAttribute("aria-hidden","false"),l(e.querySelectorAll("a"),(function(e){return e.removeAttribute("tabindex")})))}function u(e){e&&(e.setAttribute("aria-hidden","true"),l(e.querySelectorAll("a"),(function(e){return e.setAttribute("tabindex","-1")})))}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=0<e.container.offsetWidth&&0<e.container.offsetHeight;if(!n)return!1;var d=new s.Z(e.container,{a11y:!1,autoplay:!!t.autoplay&&{delay:t.delay,disableOnInteraction:!1},effect:"slide",grabCursor:!0,init:!1,initialSlide:t.initialSlide||0,loop:!0,navigation:{nextEl:e.next,prevEl:e.prev},pagination:{bulletElement:"button",clickable:!0,el:e.pagination,type:"bullets",renderBullet:function(e,t){return'<button class="'.concat(t,'"><span>').concat((0,r.sprintf)(__("Slide %s","newspack-blocks"),e+1),"</span></button>")}},preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,slidesPerView:t.slidesPerView,spaceBetween:16,touchStartPreventDefault:!1,breakpoints:{600:{slidesPerView:t.slidesPerView>1?2:1}},on:{init:function(){l(this.wrapperEl.querySelectorAll(".swiper-slide"),(function(e){return u(e)})),c(this.slides[this.activeIndex])},slideChange:function(){var e=this.slides[this.activeIndex];if(u(this.slides[this.previousIndex]),c(e),!this.autoplay.running){var t=e.querySelector("img"),n=!!t&&(null==t?void 0:t.alt),s=(0,r.sprintf)(__("Slide %s of %s","newspack-blocks"),this.realIndex+1,this.pagination.bullets.length);(0,a.speak)((0,i.escapeHTML)("".concat(e.innerText,",\n\t\t\t\t\t\t\t").concat(n?(0,r.sprintf)(__("Image: %s, ","newspack-blocks"),n):"","\n\t\t\t\t\t\t\t").concat(s)),"assertive")}}}});function p(){var e=t.aspectRatio;Array.from(this.slides).forEach((function(t){t.style.height="".concat(t.clientWidth*e,"px")}))}if(d.on("imagesReady",p),d.on("resize",p),t.autoplay){function t(){d.autoplay.stop(),e.play.focus()}function n(){d.autoplay.start(),e.pause.focus()}d.on("init",(function(){e.play.addEventListener("click",n),e.pause.addEventListener("click",t)})),d.on("autoplayStart",(function(){e.block.classList.add(o),(0,a.speak)(__("Playing","newspack-blocks"),"assertive")})),d.on("autoplayStop",(function(){e.block.classList.remove(o),(0,a.speak)(__("Paused","newspack-blocks"),"assertive")})),d.on("beforeDestroy",(function(){e.play.removeEventListener("click",n),e.pause.removeEventListener("click",t)}))}return d.init(),d}},1787:function(e,t,n){"use strict";var a=n(1766),i=n(4659),r=n(4730),s=n(5663),o=n(9049),l=n(3027),c=n(3804),u=n(2779),d=n.n(u),p=n(3163),f=n(6399),h=n(7947),v=n(7997),m=n(5707),g=n(1417),b=n(1424),w=n(5113),y=n(1188),E=n(904),x=n(8328),__=p.__,S=function(e){(0,s.Z)(n,e);var t=(0,o.Z)(n);function n(e){var a;return(0,i.Z)(this,n),(a=t.call(this,e)).btnPlayRef=(0,l.createRef)(),a.btnPauseRef=(0,l.createRef)(),a.btnNextRef=(0,l.createRef)(),a.btnPrevRef=(0,l.createRef)(),a.carouselRef=(0,l.createRef)(),a.paginationRef=(0,l.createRef)(),a.state={swiperInitialized:!1},a}return(0,r.Z)(n,[{key:"componentDidMount",value:function(){this.initializeSwiper(0),this.props.triggerReflow()}},{key:"componentDidUpdate",value:function(e){if(!(0<this.carouselRef.current.offsetWidth&&0<this.carouselRef.current.offsetHeight))return!1;if(!this.state.swiperInitialized)return this.initializeSwiper(0);(0,x.Ou)(e,this.props)&&this.props.triggerReflow();var t=this.props,n=t.attributes,a=t.latestPosts;if(!(0,c.isEqual)(e.latestPosts,a)||!(0,c.isEqual)(e.attributes,n)){var i=0;this.swiperInstance&&(a&&this.swiperInstance.realIndex<a.length&&(i=this.swiperInstance.realIndex),this.swiperInstance.destroy(!0,!0)),this.initializeSwiper(i)}}},{key:"componentWillUnmount",value:function(){this.props.triggerReflow()}},{key:"initializeSwiper",value:function(e){var t=this.props.latestPosts;if(t&&t.length){var n=this.props.attributes,a=n.aspectRatio,i=n.autoplay,r=n.delay,s=n.slidesPerView,o=(0,y.Z)({block:this.carouselRef.current,container:this.carouselRef.current,next:this.btnNextRef.current,prev:this.btnPrevRef.current,play:this.btnPlayRef.current,pause:this.btnPauseRef.current,pagination:this.paginationRef.current},{aspectRatio:a,autoplay:i,delay:1e3*r,initialSlide:e,slidesPerView:s<=t.length?s:t.length});o&&(this.swiperInstance=o,this.setState({swiperInitialized:!0}))}}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.availablePostTypes,i=e.className,r=e.setAttributes,s=e.latestPosts,o=e.isUIDisabled,c=t.aspectRatio,u=t.authors,p=t.autoplay,m=t.categories,g=t.delay,y=t.hideControls,x=t.imageFit,S=t.postsToShow,T=t.postType,C=t.showCategory,k=t.showDate,P=t.showAuthor,M=t.showAvatar,I=t.showTitle,z=t.slidesPerView,$=t.specificMode,O=t.specificPosts,L=t.tags,A=d()(i,"wp-block-newspack-blocks-carousel","swiper-container",{"wp-block-newspack-blocks-carousel__autoplay-playing":p,"newspack-block--disabled":o,"hide-controls":y}),D=(0,h.__experimentalGetSettings)().formats.date,N=s&&!s.length,_=s&&1===s.length,R=s?Math.min(S,s.length):S,B=[{value:1,label:__("Square","newspack-blocks"),shortName:__("1:1","newspack-blocks")},{value:.75,label:__("4:3","newspack-blocks"),shortName:__("4:3","newspack-blocks")},{value:.5625,label:__("16:9","newspack-blocks"),shortName:__("16:9","newspack-blocks")},{value:4/3,label:__("3:4","newspack-blocks"),shortName:__("3:4","newspack-blocks")},{value:16/9,label:__("9:16","newspack-blocks"),shortName:__("9:16","newspack-blocks")}];return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:A,ref:this.carouselRef},N&&(0,l.createElement)(v.Placeholder,{className:"component-placeholder__align-center"},(0,l.createElement)("div",{style:{margin:"auto"}},__("Sorry, no posts were found."))),!s&&(0,l.createElement)(v.Placeholder,{icon:(0,l.createElement)(v.Spinner,null),className:"component-placeholder__align-center"}),s&&(0,l.createElement)(l.Fragment,null,p&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("button",{className:"amp-carousel-button-pause amp-carousel-button",ref:this.btnPauseRef}),(0,l.createElement)("button",{className:"amp-carousel-button-play amp-carousel-button",ref:this.btnPlayRef})),(0,l.createElement)("div",{className:"swiper-wrapper"},s.map((function(e){return(0,l.createElement)("article",{className:"post-has-image swiper-slide ".concat(e.post_type," ").concat(e.newspack_article_classes||""),key:e.id},(0,l.createElement)("figure",{className:"post-thumbnail"},(0,l.createElement)("a",{href:"#",rel:"bookmark"},e.newspack_featured_image_src?(0,l.createElement)("img",{className:"image-fit-".concat(x),src:e.newspack_featured_image_src.large,alt:""}):(0,l.createElement)("div",{className:"wp-block-newspack-blocks-carousel__placeholder"}))),(e.newspack_post_sponsors||C||I||P||k)&&(0,l.createElement)("div",{className:"entry-wrapper"},e.newspack_post_sponsors&&(0,l.createElement)("span",{className:"cat-links sponsor-label"},(0,l.createElement)("span",{className:"flag"},e.newspack_post_sponsors[0].flag)),C&&e.newspack_category_info.length&&!e.newspack_post_sponsors&&(0,l.createElement)("div",{className:"cat-links"},(0,l.createElement)("a",{href:"#"},(0,b.decodeEntities)(e.newspack_category_info))),I&&(0,l.createElement)("h3",{className:"entry-title"},(0,l.createElement)("a",{href:"#"},(0,b.decodeEntities)(e.title.rendered.trim()))),(0,l.createElement)("div",{className:"entry-meta"},e.newspack_post_sponsors&&(0,E.b2)(e.newspack_post_sponsors),e.newspack_post_sponsors&&(0,E.Q$)(e.newspack_post_sponsors),P&&M&&!e.newspack_post_sponsors&&(0,E.lW)(e.newspack_author_info),P&&!e.newspack_post_sponsors&&(0,E.FX)(e.newspack_author_info),k&&(0,l.createElement)("time",{className:"entry-date published",key:"pub-date"},(0,h.dateI18n)(D,e.date_gmt)))))}))),!N&&!_&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("button",{className:"amp-carousel-button amp-carousel-button-prev swiper-button-prev",ref:this.btnPrevRef}),(0,l.createElement)("button",{className:"amp-carousel-button amp-carousel-button-next swiper-button-next",ref:this.btnNextRef}),(0,l.createElement)("div",{className:"swiper-pagination-bullets amp-pagination",ref:this.paginationRef})))),(0,l.createElement)(f.InspectorControls,null,(0,l.createElement)(v.PanelBody,{title:__("Display Settings"),initialOpen:!0},S&&(0,l.createElement)(w.Z,{numberOfItems:S,onNumberOfItemsChange:function(e){return r({postsToShow:e||1})},authors:u,onAuthorsChange:function(e){return r({authors:e})},categories:m,onCategoriesChange:function(e){return r({categories:e})},tags:L,onTagsChange:function(e){return r({tags:e})},specificMode:$,onSpecificModeChange:function(e){return r({specificMode:e})},specificPosts:O,onSpecificPostsChange:function(e){return r({specificPosts:e})},postType:T})),(0,l.createElement)(v.PanelBody,{title:__("Slideshow Settings"),initialOpen:!0},(0,l.createElement)(v.BaseControl,{label:__("Slide Aspect Ratio","newspack-blocks"),help:__("All slides will share the same aspect ratio, for consistency.","newspack-popups"),id:"newspack-blocks__aspect-ratio-control"},(0,l.createElement)(v.PanelRow,null,(0,l.createElement)(v.ButtonGroup,{id:"newspack-blocks__aspect-ratio-control-buttons","aria-label":__("Slide Aspect Ratio","newspack-blocks")},B.map((function(e){var t=c===e.value;return(0,l.createElement)(v.Button,{isLarge:!0,isPrimary:t,"aria-pressed":t,"aria-label":e.label,key:e.value,onClick:function(){return r({aspectRatio:e.value})}},e.shortName)}))))),(0,l.createElement)(v.BaseControl,{label:__("Image Fit","newspack-blocks"),help:__("cover"===x?"The image will fill the entire slide and will be cropped if necessary.":"The image will be resized to fit inside the slide without being cropped.","newspack-popups"),id:"newspack-blocks__blocks__image-fit-control"},(0,l.createElement)(v.PanelRow,null,(0,l.createElement)(v.ButtonGroup,{id:"newspack-blocks__image-fit-buttons","aria-label":__("Image Fit","newspack-blocks")},(0,l.createElement)(v.Button,{isLarge:!0,isPrimary:"cover"===x,"aria-pressed":"cover"===x,"aria-label":__("Cover","newspack-blocks"),onClick:function(){return r({imageFit:"cover"})}},__("Cover","newspack-blocks")),(0,l.createElement)(v.Button,{isLarge:!0,isPrimary:"contain"===x,"aria-pressed":"contain"===x,"aria-label":__("Contain","newspack-blocks"),onClick:function(){return r({imageFit:"contain"})}},__("Contain","newspack-blocks"))))),(0,l.createElement)(v.ToggleControl,{label:__("Hide Controls"),help:__("Hide the slideshow UI. Useful when used with Autoplay."),checked:y,onChange:function(e){r({hideControls:e})}}),(0,l.createElement)(v.ToggleControl,{label:__("Autoplay"),help:__("Autoplay between slides"),checked:p,onChange:function(e){r({autoplay:e})}}),p&&(0,l.createElement)(v.RangeControl,{label:__("Delay between transitions (in seconds)"),value:g,onChange:function(e){r({delay:e})},min:1,max:20}),s&&1<s.length&&(0,l.createElement)(v.RangeControl,{label:__("Number of slides to show at once"),value:z<=s.length?z:s.length,onChange:function(e){r({slidesPerView:e})},min:1,max:$?Math.min(6,s.length):Math.min(6,R)})),(0,l.createElement)(v.PanelBody,{title:__("Article Meta Settings","newspack-blocks")},(0,l.createElement)(v.PanelRow,null,(0,l.createElement)(v.ToggleControl,{label:__("Show Title","newspack-blocks"),checked:I,onChange:function(){return r({showTitle:!I})}})),(0,l.createElement)(v.PanelRow,null,(0,l.createElement)(v.ToggleControl,{label:__("Show Date","newspack-blocks"),checked:k,onChange:function(){return r({showDate:!k})}})),(0,l.createElement)(v.PanelRow,null,(0,l.createElement)(v.ToggleControl,{label:__("Show Category","newspack-blocks"),checked:C,onChange:function(){return r({showCategory:!C})}})),(0,l.createElement)(v.PanelRow,null,(0,l.createElement)(v.ToggleControl,{label:__("Show Author","newspack-blocks"),checked:P,onChange:function(){return r({showAuthor:!P})}})),P&&(0,l.createElement)(v.PanelRow,null,(0,l.createElement)(v.ToggleControl,{label:__("Show Author Avatar","newspack-blocks"),checked:M,onChange:function(){return r({showAvatar:!M})}}))),(0,l.createElement)(v.PanelBody,{title:__("Post Types","newspack-blocks")},n&&n.map((function(e){var t=e.name,n=e.slug;return(0,l.createElement)(v.PanelRow,{key:n},(0,l.createElement)(v.CheckboxControl,{label:t,checked:T.indexOf(n)>-1,onChange:function(e){var t=(0,a.Z)(new Set(T));e&&-1===t.indexOf(n)?t.push(n):!e&&t.indexOf(n)>-1&&t.splice(t.indexOf(n),1),r({postType:t})}}))})))))}}]),n}(l.Component);t.Z=(0,g.compose)([(0,m.withSelect)(x.b9),(0,m.withDispatch)(x.eL)])(S)},9564:function(e,t,n){"use strict";n.d(t,{Xd:function(){return o}});var a=n(3027),i=n(7997),r=n(3163),s=n(1787),__=(n(9583),n(3709),r.__),o={title:__("Post Carousel"),icon:{src:(0,a.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,a.createElement)(i.Path,{clipRule:"evenodd",d:"M7 18V6a2 2 0 012-2h6a2 2 0 012 2v12a2 2 0 01-2 2H9a2 2 0 01-2-2zM8.5 6v12a.5.5 0 00.5.5h6a.5.5 0 00.5-.5V6a.5.5 0 00-.5-.5H9a.5.5 0 00-.5.5z",fillRule:"evenodd"}),(0,a.createElement)(i.Path,{d:"M4 18.5v-13h1.5v13zM18.5 5.5v13H20v-13z"})),foreground:"#36f"},category:"newspack",keywords:[__("posts"),__("slideshow"),__("carousel")],description:__("A carousel of posts."),attributes:{className:{type:"string"},imageFit:{type:"string",default:"cover"},autoplay:{type:"boolean",default:!1},delay:{type:"number",default:5},postsToShow:{type:"integer",default:3},authors:{type:"array"},categories:{type:"array"},tags:{type:"array"},showDate:{type:"boolean",default:!0},showAuthor:{type:"boolean",default:!0},showAvatar:{type:"boolean",default:!0},showCategory:{type:"boolean",default:!1},showTitle:{type:"boolean",default:!0},postType:{type:"array",default:["post"],items:{type:"string"}},specificMode:{type:"boolean",default:!1},specificPosts:{type:"array",default:[],items:{type:"integer"}},slidesPerView:{type:"number",default:1},hideControls:{type:"boolean",default:!1},aspectRatio:{type:"number",default:.75}},supports:{html:!1,align:["center","wide","full"]},edit:s.Z,save:function(){return null}}},9707:function(e,t,n){"use strict";n.d(t,{$:function(){return c}});var a=n(9394),i=n(8717),r=(n(608),n(2397)),s=n(3804),o=(n(5707),n(7606),n(791),n(8177)),l=(n(8328),o.u2),c="newspack-blocks/".concat(l),u={postsByBlock:{},errorsByBlock:{}},d={reflow:function(){h.dispatch({type:"REFLOW"})}},p={getPosts:function(e){var t=e.clientId;return h.getState().postsByBlock[t]},getError:function(e){var t=e.clientId;return h.getState().errorsByBlock[t]},isUIDisabled:function(){return h.getState().isUIDisabled}},f=(0,r.ZP)(),h=(0,i.MT)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISABLE_UI":return(0,s.set)(e,"isUIDisabled",!0);case"ENABLE_UI":return(0,s.set)(e,"isUIDisabled",!1);case"UPDATE_BLOCK_POSTS":return(0,s.set)(e,["postsByBlock",t.clientId],t.posts);case"UPDATE_BLOCK_ERROR":return(0,s.set)(e,["errorsByBlock",t.clientId],t.error)}return e}),(0,i.md)(f));(0,a.Z)({getSelectors:function(){return p},getActions:function(){return d}},h),JSON.stringify},8328:function(e,t,n){"use strict";n.d(t,{Ou:function(){return o},b9:function(){return d},eL:function(){return p}});var a=n(3804),i=n(3163),r=n(9707),__=i.__,s=["postsToShow","authors","categories","excerptLength","tags","showExcerpt","specificPosts","specificMode","tagExclusions","categoryExclusions","postType"],o=function(e,t){return!(0,a.isEqual)((0,a.pick)(e.attributes,s),(0,a.pick)(t.attributes,s))||!(0,a.isEqual)(e.topBlocksClientIdsInOrder,t.topBlocksClientIdsInOrder)},l=function e(t){return t.flatMap((function(t){var n=[];return n.push(t.clientId),n.concat(e(t.innerBlocks))}))},c=window.newspack_blocks_data.assets_path,u=function(e){var t=new Date;return t.setHours(12,0,0,0),{author:1,content:{rendered:"<p>"+__("The post content.","newspack")+"</p>"},date_gmt:t.toISOString(),excerpt:{rendered:"<p>"+__("The post excerpt.","newspack")+"</p>"},featured_media:"1",id:e,meta:{newspack_post_subtitle:__("Post Subtitle","newspack")},title:{rendered:__("Post Title","newspack")},newspack_article_classes:"type-post",newspack_author_info:[{display_name:__("Author Name","newspack"),avatar:'<div style="background: #36f;width: 40px;height: 40px;display: block;overflow: hidden;border-radius: 50%; max-width: 100%; max-height: 100%;"></div>',id:1,author_link:"/"}],newspack_category_info:__("Category","newspack"),newspack_featured_image_caption:__("Featured image caption","newspack"),newspack_featured_image_src:{large:"".concat(c,"/newspack-1024x536.jpg"),landscape:"".concat(c,"/newspack-800x600.jpg"),portrait:"".concat(c,"/newspack-600x800.jpg"),square:"".concat(c,"/newspack-800x800.jpg"),uncropped:"".concat(c,"/newspack-1024x536.jpg")},newspack_has_custom_excerpt:!1,newspack_post_format:"standard",newspack_post_sponsors:!1}},d=function(e,t){var n,i=t.clientId,s=t.attributes,o=e("core").getPostTypes,c=e("core/editor").getEditorBlocks,d=e("core/block-editor").getBlocks,p=l(c()).indexOf(i)>=0,f=e(r.$),h=f.getPosts,v=f.getError,m={isEditorBlock:p,isUIDisabled:(0,f.isUIDisabled)(),error:v({clientId:i}),topBlocksClientIdsInOrder:d().map((function(e){return e.clientId})),availablePostTypes:null===(n=o({per_page:-1}))||void 0===n?void 0:n.filter((function(e){return e.supports.newspack_blocks}))};return m.latestPosts=p?h({clientId:i}):function(e){return(0,a.times)(e.postsToShow,u)}(s),m},p=function(e,t){return{triggerReflow:t.isEditorBlock?e(r.$).reflow:function(){}}}},7045:function(e,t,n){"use strict";var a=n(1766),i=n(4659),r=n(4730),s=n(3989),o=n(5663),l=n(9049),c=n(1119),u=n(3027),d=n(3804),p=n(7997),f=(n(3536),function(e){(0,o.Z)(n,e);var t=(0,l.Z)(n);function n(e){var a;return(0,i.Z)(this,n),a=t.call(this,e),(0,c.Z)((0,s.Z)(a),"isFetchingInfoOnLoad",(function(){var e=a.props,t=e.tokens,n=e.fetchSavedInfo;return Boolean(t.length&&n)})),a.state={suggestions:[],validValues:{},loading:a.isFetchingInfoOnLoad()},a.debouncedUpdateSuggestions=(0,d.debounce)(a.updateSuggestions,500),a}return(0,r.Z)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.isFetchingInfoOnLoad()){var t=this.props,n=t.tokens;(0,t.fetchSavedInfo)(n).then((function(t){var n=e.state.validValues;t.forEach((function(e){n[e.value]=e.label})),e.setState({validValues:n,loading:!1})}))}}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest,this.debouncedUpdateSuggestions.cancel()}},{key:"getLabelsForValues",value:function(e){var t=this.state.validValues;return e.reduce((function(e,n){return t[n]?[].concat((0,a.Z)(e),[t[n]]):e}),[])}},{key:"getValuesForLabels",value:function(e){var t=this.state.validValues;return e.map((function(e){return Object.keys(t).find((function(n){return t[n]===e}))}))}},{key:"updateSuggestions",value:function(e){var t=this,n=this.props.fetchSuggestions;n&&this.setState({loading:!0},(function(){var a=n(e);a.then((function(e){if(t.suggestionsRequest===a){var n=t.state.validValues,i=[];e.forEach((function(e){var t=e.label.trim();i.indexOf(t)>=0&&(e.label="".concat(t," (").concat(e.value,")")),i.push(t),n[e.value]=t})),t.setState({suggestions:i,validValues:n,loading:!1})}})).catch((function(){t.suggestionsRequest===a&&t.setState({loading:!1})})),t.suggestionsRequest=a}))}},{key:"handleOnChange",value:function(e){(0,this.props.onChange)(this.getValuesForLabels(e))}},{key:"getTokens",value:function(){var e=this.props.tokens;return this.getLabelsForValues(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.help,a=t.label,i=void 0===a?"":a,r=this.state,s=r.suggestions,o=r.loading;return(0,u.createElement)("div",{className:"autocomplete-tokenfield"},(0,u.createElement)(p.FormTokenField,{value:this.getTokens(),suggestions:s,onChange:function(t){return e.handleOnChange(t)},onInputChange:function(t){return e.debouncedUpdateSuggestions(t)},label:i}),o&&(0,u.createElement)(p.Spinner,null),n&&(0,u.createElement)("p",{className:"autocomplete-tokenfield__help"},n))}}]),n}(u.Component));t.Z=f},5113:function(e,t,n){"use strict";var a=n(7560),i=n(4659),r=n(3989),s=n(5663),o=n(9049),l=n(1119),c=n(3027),u=n(3163),d=n(7997),p=n(7606),f=n.n(p),h=n(791),v=n(1424),m=n(7045),__=u.__,g=function(e){return(0,v.decodeEntities)(e.name)||__("(no title)","newspack-blocks")},b=function(e){(0,s.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var s=arguments.length,o=new Array(s),u=0;u<s;u++)o[u]=arguments[u];return e=t.call.apply(t,[this].concat(o)),(0,l.Z)((0,r.Z)(e),"state",{showAdvancedFilters:!1}),(0,l.Z)((0,r.Z)(e),"fetchPostSuggestions",(function(t){var n=e.props.postType,a=window.newspack_blocks_data.specific_posts_rest_url;return f()({url:(0,h.addQueryArgs)(a,{search:t,per_page:20,_fields:"id,title",type:"post",post_type:n})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,v.decodeEntities)(e.title)||__("(no title)","newspack-blocks")}}))}))})),(0,l.Z)((0,r.Z)(e),"fetchSavedPosts",(function(e){return f()({path:(0,h.addQueryArgs)("/wp/v2/posts",{per_page:100,include:e.join(","),_fields:"id,title"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,v.decodeEntities)(e.title.rendered)||__("(no title)","newspack-blocks")}}))}))})),(0,l.Z)((0,r.Z)(e),"fetchAuthorSuggestions",(function(e){return f()({path:(0,h.addQueryArgs)("/wp/v2/users",{search:e,per_page:20,_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,v.decodeEntities)(e.name)||__("(no name)","newspack-blocks")}}))}))})),(0,l.Z)((0,r.Z)(e),"fetchSavedAuthors",(function(e){return f()({path:(0,h.addQueryArgs)("/wp/v2/users",{per_page:100,include:e.join(","),_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,v.decodeEntities)(e.name)||__("(no name)","newspack-blocks")}}))}))})),(0,l.Z)((0,r.Z)(e),"fetchCategorySuggestions",(function(e){return f()({path:(0,h.addQueryArgs)("/wp/v2/categories",{search:e,per_page:20,_fields:"id,name,parent",orderby:"count",order:"desc"})}).then((function(e){return Promise.all(e.map((function(e){return e.parent>0?f()({path:(0,h.addQueryArgs)("/wp/v2/categories/".concat(e.parent),{_fields:"name"})}).then((function(t){return{value:e.id,label:"".concat(g(e)," – ").concat(g(t))}})):Promise.resolve({value:e.id,label:g(e)})})))}))})),(0,l.Z)((0,r.Z)(e),"fetchSavedCategories",(function(e){return f()({path:(0,h.addQueryArgs)("/wp/v2/categories",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,v.decodeEntities)(e.name)||__("(no title)","newspack-blocks")}}))}))})),(0,l.Z)((0,r.Z)(e),"fetchTagSuggestions",(function(e){return f()({path:(0,h.addQueryArgs)("/wp/v2/tags",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,v.decodeEntities)(e.name)||__("(no title)","newspack-blocks")}}))}))})),(0,l.Z)((0,r.Z)(e),"fetchSavedTags",(function(e){return f()({path:(0,h.addQueryArgs)("/wp/v2/tags",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,v.decodeEntities)(e.name)||__("(no title)","newspack-blocks")}}))}))})),(0,l.Z)((0,r.Z)(e),"render",(function(){var t=e.props,n=t.specificMode,i=t.onSpecificModeChange,r=t.specificPosts,s=t.onSpecificPostsChange,o=t.authors,l=t.onAuthorsChange,u=t.categories,p=t.onCategoriesChange,f=t.tags,h=t.onTagsChange,v=t.tagExclusions,g=t.onTagExclusionsChange,b=t.categoryExclusions,w=t.onCategoryExclusionsChange,y=t.enableSpecific,E=e.state.showAdvancedFilters;return[y&&(0,c.createElement)(d.ToggleControl,{key:"specificMode",checked:n,onChange:i,label:__("Choose Specific Posts","newspack-blocks")}),n&&(0,c.createElement)(m.Z,{key:"posts",tokens:r||[],onChange:s,fetchSuggestions:e.fetchPostSuggestions,fetchSavedInfo:e.fetchSavedPosts,label:__("Posts","newspack-blocks"),help:__("Begin typing post title, click autocomplete result to select.","newspack-blocks")}),!n&&(0,c.createElement)(d.QueryControls,(0,a.Z)({key:"queryControls"},e.props)),!n&&l&&(0,c.createElement)(m.Z,{key:"authors",tokens:o||[],onChange:l,fetchSuggestions:e.fetchAuthorSuggestions,fetchSavedInfo:e.fetchSavedAuthors,label:__("Authors","newspack-blocks")}),!n&&p&&(0,c.createElement)(m.Z,{key:"categories",tokens:u||[],onChange:p,fetchSuggestions:e.fetchCategorySuggestions,fetchSavedInfo:e.fetchSavedCategories,label:__("Categories","newspack-blocks")}),!n&&h&&(0,c.createElement)(m.Z,{key:"tags",tokens:f||[],onChange:h,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:__("Tags","newspack-blocks")}),!n&&g&&(0,c.createElement)("p",{key:"toggle-advanced-filters"},(0,c.createElement)(d.Button,{isLink:!0,onClick:function(){return e.setState({showAdvancedFilters:!E})}},__(E?"Hide Advanced Filters":"Show Advanced Filters","newspack-blocks"))),!n&&g&&E&&(0,c.createElement)(m.Z,{key:"tag-exclusion",tokens:v||[],onChange:g,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:__("Excluded Tags","newspack-blocks")}),!n&&w&&E&&(0,c.createElement)(m.Z,{key:"category-exclusion",tokens:b||[],onChange:w,fetchSuggestions:e.fetchCategorySuggestions,fetchSavedInfo:e.fetchSavedCategories,label:__("Excluded Categories","newspack-blocks")})]})),e}return n}(c.Component);b.defaultProps={enableSpecific:!0,specificPosts:[],authors:[],categories:[],tags:[],tagExclusions:[]},t.Z=b},904:function(e,t,n){"use strict";n.d(t,{lW:function(){return s},FX:function(){return o},b2:function(){return l},Q$:function(){return c}});var a=n(1766),i=n(3027),r=n(3163),_x=r._x,s=function(e){return e.map((function(e){return(0,i.createElement)("span",{className:"avatar author-avatar",key:e.id},(0,i.createElement)("a",{className:"url fn n",href:e.author_link},(0,i.createElement)(i.RawHTML,null,e.avatar)))}))},o=function(e){return(0,i.createElement)("span",{className:"byline"},_x("by","post author","newspack-blocks")," ",e.reduce((function(t,n,r){return[].concat((0,a.Z)(t),[(0,i.createElement)("span",{className:"author vcard",key:n.id},(0,i.createElement)("a",{className:"url fn n",href:n.author_link},n.display_name)),r<e.length-2&&", ",e.length>1&&r===e.length-2&&_x(" and ","post author","newspack-blocks")])}),[]))},l=function(e){return(0,i.createElement)("span",{className:"sponsor-logos"},e.map((function(e){return(0,i.createElement)(i.Fragment,{key:e.id},e.src&&(0,i.createElement)("a",{href:e.sponsor_url},(0,i.createElement)("img",{src:e.src,width:e.img_width,height:e.img_height,alt:e.sponsor_name})))})))},c=function(e){return(0,i.createElement)("span",{className:"byline sponsor-byline"},e[0].byline_prefix," ",e.reduce((function(t,n,r){return[].concat((0,a.Z)(t),[(0,i.createElement)("span",{className:"author",key:n.id},(0,i.createElement)("a",{href:n.author_link},n.sponsor_name)),r<e.length-2&&", ",e.length>1&&r===e.length-2&&_x(" and ","post author","newspack-blocks")])}),[]))}},3534:function(e,t,n){"use strict";n.d(t,{$:function(){return s},cn:function(){return l},IV:function(){return c},pv:function(){return u},Vj:function(){return d},Lj:function(){return p},uV:function(){return f},aT:function(){return h},vs:function(){return v},eR:function(){return m},on:function(){return g},S1:function(){return b},X$:function(){return w},ld:function(){return y},iO:function(){return E},Pb:function(){return x},cv:function(){return S},W2:function(){return T},iv:function(){return C},S6:function(){return k},dy:function(){return P},fL:function(){return M},is:function(){return I},Kz:function(){return z},eq:function(){return $},R3:function(){return O},Ce:function(){return L},lp:function(){return A},eG:function(){return D},mp:function(){return N},pJ:function(){return _},qm:function(){return R},wV:function(){return B},oq:function(){return j},sE:function(){return H},pI:function(){return V},Od:function(){return Z},IH:function(){return G}});var a=n(4659),i=n(5913),r=function e(t){(0,a.Z)(this,e);for(var n=0;n<t.length;n+=1)this[n]=t[n];return this.length=t.length,this};function s(e,t){var n=[],a=0;if(e&&!t&&e instanceof r)return e;if(e)if("string"==typeof e){var s,o,l=e.trim();if(l.indexOf("<")>=0&&l.indexOf(">")>=0){var c="div";for(0===l.indexOf("<li")&&(c="ul"),0===l.indexOf("<tr")&&(c="tbody"),0!==l.indexOf("<td")&&0!==l.indexOf("<th")||(c="tr"),0===l.indexOf("<tbody")&&(c="table"),0===l.indexOf("<option")&&(c="select"),(o=i.t.createElement(c)).innerHTML=l,a=0;a<o.childNodes.length;a+=1)n.push(o.childNodes[a])}else for(s=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||i.t).querySelectorAll(e.trim()):[i.t.getElementById(e.trim().split("#")[1])],a=0;a<s.length;a+=1)s[a]&&n.push(s[a])}else if(e.nodeType||e===i.u||e===i.t)n.push(e);else if(e.length>0&&e[0].nodeType)for(a=0;a<e.length;a+=1)n.push(e[a]);return new r(n)}function o(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function l(e){if(void 0===e)return this;for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var a=0;a<this.length;a+=1)void 0!==this[a]&&void 0!==this[a].classList&&this[a].classList.add(t[n]);return this}function c(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var a=0;a<this.length;a+=1)void 0!==this[a]&&void 0!==this[a].classList&&this[a].classList.remove(t[n]);return this}function u(e){return!!this[0]&&this[0].classList.contains(e)}function d(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var a=0;a<this.length;a+=1)void 0!==this[a]&&void 0!==this[a].classList&&this[a].classList.toggle(t[n]);return this}function p(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var a in e)this[n][a]=e[a],this[n].setAttribute(a,e[a]);return this}function f(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function h(e,t){var n;if(void 0!==t){for(var a=0;a<this.length;a+=1)(n=this[a]).dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}if(n=this[0]){if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];var i=n.getAttribute("data-".concat(e));return i||void 0}}function v(e){for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransform=e,n.transform=e}return this}function m(e){"string"!=typeof e&&(e="".concat(e,"ms"));for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t[0],i=t[1],r=t[2],o=t[3];function l(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),s(t).is(i))r.apply(t,n);else for(var a=s(t).parents(),o=0;o<a.length;o+=1)s(a[o]).is(i)&&r.apply(a[o],n)}}function c(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}"function"==typeof t[1]&&(a=t[0],r=t[1],o=t[2],i=void 0),o||(o=!1);for(var u,d=a.split(" "),p=0;p<this.length;p+=1){var f=this[p];if(i)for(u=0;u<d.length;u+=1){var h=d[u];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[h]||(f.dom7LiveListeners[h]=[]),f.dom7LiveListeners[h].push({listener:r,proxyListener:l}),f.addEventListener(h,l,o)}else for(u=0;u<d.length;u+=1){var v=d[u];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[v]||(f.dom7Listeners[v]=[]),f.dom7Listeners[v].push({listener:r,proxyListener:c}),f.addEventListener(v,c,o)}}return this}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t[0],i=t[1],r=t[2],s=t[3];"function"==typeof t[1]&&(a=t[0],r=t[1],s=t[2],i=void 0),s||(s=!1);for(var o=a.split(" "),l=0;l<o.length;l+=1)for(var c=o[l],u=0;u<this.length;u+=1){var d=this[u],p=void 0;if(!i&&d.dom7Listeners?p=d.dom7Listeners[c]:i&&d.dom7LiveListeners&&(p=d.dom7LiveListeners[c]),p&&p.length)for(var f=p.length-1;f>=0;f-=1){var h=p[f];r&&h.listener===r||r&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===r?(d.removeEventListener(c,h.proxyListener,s),p.splice(f,1)):r||(d.removeEventListener(c,h.proxyListener,s),p.splice(f,1))}}return this}function w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var a=t[0].split(" "),r=t[1],s=0;s<a.length;s+=1)for(var o=a[s],l=0;l<this.length;l+=1){var c=this[l],u=void 0;try{u=new i.u.CustomEvent(o,{detail:r,bubbles:!0,cancelable:!0})}catch(d){(u=i.t.createEvent("Event")).initEvent(o,!0,!0),u.detail=r}c.dom7EventData=t.filter((function(e,t){return t>0})),c.dispatchEvent(u),c.dom7EventData=[],delete c.dom7EventData}return this}function y(e){var t,n=["webkitTransitionEnd","transitionend"],a=this;function i(r){if(r.target===this)for(e.call(this,r),t=0;t<n.length;t+=1)a.off(n[t],i)}if(e)for(t=0;t<n.length;t+=1)a.on(n[t],i);return this}function E(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function x(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function S(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),n=i.t.body,a=e.clientTop||n.clientTop||0,r=e.clientLeft||n.clientLeft||0,s=e===i.u?i.u.scrollY:e.scrollTop,o=e===i.u?i.u.scrollX:e.scrollLeft;return{top:t.top+s-a,left:t.left+o-r}}return null}function T(){return this[0]?i.u.getComputedStyle(this[0],null):{}}function C(e,t){var n;if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var a in e)this[n].style[a]=e[a];return this}if(this[0])return i.u.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function k(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this}function P(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function M(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function I(e){var t,n,a=this[0];if(!a||void 0===e)return!1;if("string"==typeof e){if(a.matches)return a.matches(e);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(e);if(a.msMatchesSelector)return a.msMatchesSelector(e);for(t=s(e),n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}if(e===i.t)return a===i.t;if(e===i.u)return a===i.u;if(e.nodeType||e instanceof r){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1}function z(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}}function $(e){if(void 0===e)return this;var t,n=this.length;return new r(e>n-1?[]:e<0?(t=n+e)<0?[]:[this[t]]:[this[e]])}function O(){for(var e,t=0;t<arguments.length;t+=1){e=t<0||arguments.length<=t?void 0:arguments[t];for(var n=0;n<this.length;n+=1)if("string"==typeof e){var a=i.t.createElement("div");for(a.innerHTML=e;a.firstChild;)this[n].appendChild(a.firstChild)}else if(e instanceof r)for(var s=0;s<e.length;s+=1)this[n].appendChild(e[s]);else this[n].appendChild(e)}return this}function L(e){var t,n;for(t=0;t<this.length;t+=1)if("string"==typeof e){var a=i.t.createElement("div");for(a.innerHTML=e,n=a.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(a.childNodes[n],this[t].childNodes[0])}else if(e instanceof r)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function A(e){return this.length>0?e?this[0].nextElementSibling&&s(this[0].nextElementSibling).is(e)?new r([this[0].nextElementSibling]):new r([]):this[0].nextElementSibling?new r([this[0].nextElementSibling]):new r([]):new r([])}function D(e){var t=[],n=this[0];if(!n)return new r([]);for(;n.nextElementSibling;){var a=n.nextElementSibling;e?s(a).is(e)&&t.push(a):t.push(a),n=a}return new r(t)}function N(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&s(t.previousElementSibling).is(e)?new r([t.previousElementSibling]):new r([]):t.previousElementSibling?new r([t.previousElementSibling]):new r([])}return new r([])}function _(e){var t=[],n=this[0];if(!n)return new r([]);for(;n.previousElementSibling;){var a=n.previousElementSibling;e?s(a).is(e)&&t.push(a):t.push(a),n=a}return new r(t)}function R(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?s(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return s(o(t))}function B(e){for(var t=[],n=0;n<this.length;n+=1)for(var a=this[n].parentNode;a;)e?s(a).is(e)&&t.push(a):t.push(a),a=a.parentNode;return s(o(t))}function j(e){var t=this;return void 0===e?new r([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function H(e){for(var t=[],n=0;n<this.length;n+=1)for(var a=this[n].querySelectorAll(e),i=0;i<a.length;i+=1)t.push(a[i]);return new r(t)}function V(e){for(var t=[],n=0;n<this.length;n+=1)for(var a=this[n].childNodes,i=0;i<a.length;i+=1)e?1===a[i].nodeType&&s(a[i]).is(e)&&t.push(a[i]):1===a[i].nodeType&&t.push(a[i]);return new r(o(t))}function Z(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function G(){for(var e,t,n=this,a=arguments.length,i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];for(e=0;e<i.length;e+=1){var o=s(i[e]);for(t=0;t<o.length;t+=1)n[n.length]=o[t],n.length+=1}return n}s.fn=r.prototype,s.Class=r,s.Dom7=r;"resize scroll".split(" ")},9529:function(e,t,n){"use strict";var a=n(3989),i=n(5663),r=n(591),s=n(5630),o=n(4659),l=n(4730),c=n(3534),u=n(5913);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=(0,s.Z)(e);if(t){var i=(0,s.Z)(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return(0,r.Z)(this,n)}}var p={addClass:c.cn,removeClass:c.IV,hasClass:c.pv,toggleClass:c.Vj,attr:c.Lj,removeAttr:c.uV,data:c.aT,transform:c.vs,transition:c.eR,on:c.on,off:c.S1,trigger:c.X$,transitionEnd:c.ld,outerWidth:c.iO,outerHeight:c.Pb,offset:c.cv,css:c.iv,each:c.S6,html:c.dy,text:c.fL,is:c.is,index:c.Kz,eq:c.eq,append:c.R3,prepend:c.Ce,next:c.lp,nextAll:c.eG,prev:c.mp,prevAll:c.pJ,parent:c.qm,parents:c.wV,closest:c.oq,find:c.sE,children:c.pI,remove:c.Od,add:c.IH,styles:c.W2};Object.keys(p).forEach((function(e){c.$.fn[e]=c.$.fn[e]||p[e]}));var f,h,v,m={deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(n){}try{delete t[e]}catch(n){}}))},nextTick:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e){var t,n,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",r=u.u.getComputedStyle(e,null);return u.u.WebKitCSSMatrix?((n=r.transform||r.webkitTransform).split(",").length>6&&(n=n.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),a=new u.u.WebKitCSSMatrix("none"===n?"":n)):t=(a=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===i&&(n=u.u.WebKitCSSMatrix?a.m41:16===t.length?parseFloat(t[12]):parseFloat(t[4])),"y"===i&&(n=u.u.WebKitCSSMatrix?a.m42:16===t.length?parseFloat(t[13]):parseFloat(t[5])),n||0},parseUrlQuery:function(e){var t,n,a,i,r={},s=e||u.u.location.href;if("string"==typeof s&&s.length)for(i=(n=(s=s.indexOf("?")>-1?s.replace(/\S*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,t=0;t<i;t+=1)a=n[t].replace(/#\S+/g,"").split("="),r[decodeURIComponent(a[0])]=void 0===a[1]?void 0:decodeURIComponent(a[1])||"";return r},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=Object(arguments.length<=0?void 0:arguments[0]),t=1;t<arguments.length;t+=1){var n=t<0||arguments.length<=t?void 0:arguments[t];if(null!=n)for(var a=Object.keys(Object(n)),i=0,r=a.length;i<r;i+=1){var s=a[i],o=Object.getOwnPropertyDescriptor(n,s);void 0!==o&&o.enumerable&&(m.isObject(e[s])&&m.isObject(n[s])?m.extend(e[s],n[s]):!m.isObject(e[s])&&m.isObject(n[s])?(e[s]={},m.extend(e[s],n[s])):e[s]=n[s])}}return e}},g=(h=u.t.createElement("div"),{touch:u.u.Modernizr&&!0===u.u.Modernizr.touch||!!(u.u.navigator.maxTouchPoints>0||"ontouchstart"in u.u||u.u.DocumentTouch&&u.t instanceof u.u.DocumentTouch),pointerEvents:!!(u.u.navigator.pointerEnabled||u.u.PointerEvent||"maxTouchPoints"in u.u.navigator&&u.u.navigator.maxTouchPoints>0),prefixedPointerEvents:!!u.u.navigator.msPointerEnabled,transition:(f=h.style,"transition"in f||"webkitTransition"in f||"MozTransition"in f),transforms3d:u.u.Modernizr&&!0===u.u.Modernizr.csstransforms3d||function(){var e=h.style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=h.style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<t.length;n+=1)if(t[n]in e)return!0;return!1}(),observer:"MutationObserver"in u.u||"WebkitMutationObserver"in u.u,passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});u.u.addEventListener("testPassiveListener",null,t)}catch(n){}return e}(),gestures:"ongesturestart"in u.u}),b={isIE:!!u.u.navigator.userAgent.match(/Trident/g)||!!u.u.navigator.userAgent.match(/MSIE/g),isEdge:!!u.u.navigator.userAgent.match(/Edge/g),isSafari:(v=u.u.navigator.userAgent.toLowerCase(),v.indexOf("safari")>=0&&v.indexOf("chrome")<0&&v.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(u.u.navigator.userAgent)},w=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,e);var n=this;n.params=t,n.eventsListeners={},n.params&&n.params.on&&Object.keys(n.params.on).forEach((function(e){n.on(e,n.params.on[e])}))}return(0,l.Z)(e,[{key:"on",value:function(e,t,n){var a=this;if("function"!=typeof t)return a;var i=n?"unshift":"push";return e.split(" ").forEach((function(e){a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][i](t)})),a}},{key:"once",value:function(e,t,n){var a=this;if("function"!=typeof t)return a;function i(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];t.apply(a,r),a.off(e,i),i.f7proxy&&delete i.f7proxy}return i.f7proxy=t,a.on(e,i,n)}},{key:"off",value:function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].length&&n.eventsListeners[e].forEach((function(a,i){(a===t||a.f7proxy&&a.f7proxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n}},{key:"emit",value:function(){var e,t,n,a=this;if(!a.eventsListeners)return a;for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];"string"==typeof r[0]||Array.isArray(r[0])?(e=r[0],t=r.slice(1,r.length),n=a):(e=r[0].events,t=r[0].data,n=r[0].context||a);var o=Array.isArray(e)?e:e.split(" ");return o.forEach((function(e){if(a.eventsListeners&&a.eventsListeners[e]){var i=[];a.eventsListeners[e].forEach((function(e){i.push(e)})),i.forEach((function(e){e.apply(n,t)}))}})),a}},{key:"useModulesParams",value:function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var a=t.modules[n];a.params&&m.extend(e,a.params)}))}},{key:"useModules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var a=t.modules[n],i=e[n]||{};a.instance&&Object.keys(a.instance).forEach((function(e){var n=a.instance[e];t[e]="function"==typeof n?n.bind(t):n})),a.on&&t.on&&Object.keys(a.on).forEach((function(e){t.on(e,a.on[e])})),a.create&&a.create.bind(t)(i)}))}}],[{key:"components",set:function(e){this.use&&this.use(e)}},{key:"installModule",value:function(e){var t=this;t.prototype.modules||(t.prototype.modules={});var n=e.name||"".concat(Object.keys(t.prototype.modules).length,"_").concat(m.now());if(t.prototype.modules[n]=e,e.proto&&Object.keys(e.proto).forEach((function(n){t.prototype[n]=e.proto[n]})),e.static&&Object.keys(e.static).forEach((function(n){t[n]=e.static[n]})),e.install){for(var a=arguments.length,i=new Array(a>1?a-1:0),r=1;r<a;r++)i[r-1]=arguments[r];e.install.apply(t,i)}return t}},{key:"use",value:function(e){var t=this;if(Array.isArray(e))return e.forEach((function(e){return t.installModule(e)})),t;for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];return t.installModule.apply(t,[e].concat(a))}}]),e}();var y={updateSize:function(){var e,t,n=this,a=n.$el;e=void 0!==n.params.width?n.params.width:a[0].clientWidth,t=void 0!==n.params.height?n.params.height:a[0].clientHeight,0===e&&n.isHorizontal()||0===t&&n.isVertical()||(e=e-parseInt(a.css("padding-left"),10)-parseInt(a.css("padding-right"),10),t=t-parseInt(a.css("padding-top"),10)-parseInt(a.css("padding-bottom"),10),m.extend(n,{width:e,height:t,size:n.isHorizontal()?e:t}))},updateSlides:function(){var e=this,t=e.params,n=e.$wrapperEl,a=e.size,i=e.rtlTranslate,r=e.wrongRTL,s=e.virtual&&t.virtual.enabled,o=s?e.virtual.slides.length:e.slides.length,l=n.children(".".concat(e.params.slideClass)),c=s?e.virtual.slides.length:l.length,d=[],p=[],f=[],h=t.slidesOffsetBefore;"function"==typeof h&&(h=t.slidesOffsetBefore.call(e));var v=t.slidesOffsetAfter;"function"==typeof v&&(v=t.slidesOffsetAfter.call(e));var w=e.snapGrid.length,y=e.snapGrid.length,E=t.spaceBetween,x=-h,S=0,T=0;if(void 0!==a){var C,k;"string"==typeof E&&E.indexOf("%")>=0&&(E=parseFloat(E.replace("%",""))/100*a),e.virtualSize=-E,i?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),t.slidesPerColumn>1&&(C=Math.floor(c/t.slidesPerColumn)===c/e.params.slidesPerColumn?c:Math.ceil(c/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(C=Math.max(C,t.slidesPerView*t.slidesPerColumn)));for(var P,M=t.slidesPerColumn,I=C/M,z=Math.floor(c/t.slidesPerColumn),$=0;$<c;$+=1){k=0;var O=l.eq($);if(t.slidesPerColumn>1){var L=void 0,A=void 0,D=void 0;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)D=$-(A=Math.floor($/M))*M,(A>z||A===z&&D===M-1)&&(D+=1)>=M&&(D=0,A+=1);else{var N=Math.floor($/t.slidesPerGroup);A=$-(D=Math.floor($/t.slidesPerView)-N*t.slidesPerColumn)*t.slidesPerView-N*t.slidesPerView}L=A+D*C/M,O.css({"-webkit-box-ordinal-group":L,"-moz-box-ordinal-group":L,"-ms-flex-order":L,"-webkit-order":L,order:L})}else A=$-(D=Math.floor($/I))*I;O.css("margin-".concat(e.isHorizontal()?"top":"left"),0!==D&&t.spaceBetween&&"".concat(t.spaceBetween,"px")).attr("data-swiper-column",A).attr("data-swiper-row",D)}if("none"!==O.css("display")){if("auto"===t.slidesPerView){var _=u.u.getComputedStyle(O[0],null),R=O[0].style.transform,B=O[0].style.webkitTransform;if(R&&(O[0].style.transform="none"),B&&(O[0].style.webkitTransform="none"),t.roundLengths)k=e.isHorizontal()?O.outerWidth(!0):O.outerHeight(!0);else if(e.isHorizontal()){var j=parseFloat(_.getPropertyValue("width")),H=parseFloat(_.getPropertyValue("padding-left")),V=parseFloat(_.getPropertyValue("padding-right")),Z=parseFloat(_.getPropertyValue("margin-left")),G=parseFloat(_.getPropertyValue("margin-right")),X=_.getPropertyValue("box-sizing");k=X&&"border-box"===X&&!b.isIE?j+Z+G:j+H+V+Z+G}else{var F=parseFloat(_.getPropertyValue("height")),Y=parseFloat(_.getPropertyValue("padding-top")),q=parseFloat(_.getPropertyValue("padding-bottom")),W=parseFloat(_.getPropertyValue("margin-top")),U=parseFloat(_.getPropertyValue("margin-bottom")),K=_.getPropertyValue("box-sizing");k=K&&"border-box"===K&&!b.isIE?F+W+U:F+Y+q+W+U}R&&(O[0].style.transform=R),B&&(O[0].style.webkitTransform=B),t.roundLengths&&(k=Math.floor(k))}else k=(a-(t.slidesPerView-1)*E)/t.slidesPerView,t.roundLengths&&(k=Math.floor(k)),l[$]&&(e.isHorizontal()?l[$].style.width="".concat(k,"px"):l[$].style.height="".concat(k,"px"));l[$]&&(l[$].swiperSlideSize=k),f.push(k),t.centeredSlides?(x=x+k/2+S/2+E,0===S&&0!==$&&(x=x-a/2-E),0===$&&(x=x-a/2-E),Math.abs(x)<.001&&(x=0),t.roundLengths&&(x=Math.floor(x)),T%t.slidesPerGroup==0&&d.push(x),p.push(x)):(t.roundLengths&&(x=Math.floor(x)),T%t.slidesPerGroup==0&&d.push(x),p.push(x),x=x+k+E),e.virtualSize+=k+E,S=k,T+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+v,i&&r&&("slide"===t.effect||"coverflow"===t.effect)&&n.css({width:"".concat(e.virtualSize+t.spaceBetween,"px")}),g.flexbox&&!t.setWrapperSize||(e.isHorizontal()?n.css({width:"".concat(e.virtualSize+t.spaceBetween,"px")}):n.css({height:"".concat(e.virtualSize+t.spaceBetween,"px")})),t.slidesPerColumn>1&&(e.virtualSize=(k+t.spaceBetween)*C,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?n.css({width:"".concat(e.virtualSize+t.spaceBetween,"px")}):n.css({height:"".concat(e.virtualSize+t.spaceBetween,"px")}),t.centeredSlides)){P=[];for(var Q=0;Q<d.length;Q+=1){var J=d[Q];t.roundLengths&&(J=Math.floor(J)),d[Q]<e.virtualSize+d[0]&&P.push(J)}d=P}if(!t.centeredSlides){P=[];for(var ee=0;ee<d.length;ee+=1){var te=d[ee];t.roundLengths&&(te=Math.floor(te)),d[ee]<=e.virtualSize-a&&P.push(te)}d=P,Math.floor(e.virtualSize-a)-Math.floor(d[d.length-1])>1&&d.push(e.virtualSize-a)}if(0===d.length&&(d=[0]),0!==t.spaceBetween&&(e.isHorizontal()?i?l.css({marginLeft:"".concat(E,"px")}):l.css({marginRight:"".concat(E,"px")}):l.css({marginBottom:"".concat(E,"px")})),t.centerInsufficientSlides){var ne=0;if(f.forEach((function(e){ne+=e+(t.spaceBetween?t.spaceBetween:0)})),(ne-=t.spaceBetween)<a){var ae=(a-ne)/2;d.forEach((function(e,t){d[t]=e-ae})),p.forEach((function(e,t){p[t]=e+ae}))}}m.extend(e,{slides:l,snapGrid:d,slidesGrid:p,slidesSizesGrid:f}),c!==o&&e.emit("slidesLengthChange"),d.length!==w&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==y&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}},updateAutoHeight:function(e){var t,n=this,a=[],i=0;if("number"==typeof e?n.setTransition(e):!0===e&&n.setTransition(n.params.speed),"auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)for(t=0;t<Math.ceil(n.params.slidesPerView);t+=1){var r=n.activeIndex+t;if(r>n.slides.length)break;a.push(n.slides.eq(r)[0])}else a.push(n.slides.eq(n.activeIndex)[0]);for(t=0;t<a.length;t+=1)if(void 0!==a[t]){var s=a[t].offsetHeight;i=s>i?s:i}i&&n.$wrapperEl.css("height","".concat(i,"px"))},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,n=t.params,a=t.slides,i=t.rtlTranslate;if(0!==a.length){void 0===a[0].swiperSlideOffset&&t.updateSlidesOffset();var r=-e;i&&(r=e),a.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var s=0;s<a.length;s+=1){var o=a[s],l=(r+(n.centeredSlides?t.minTranslate():0)-o.swiperSlideOffset)/(o.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){var u=-(r-o.swiperSlideOffset),d=u+t.slidesSizesGrid[s],p=u>=0&&u<t.size-1||d>1&&d<=t.size||u<=0&&d>=t.size;p&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(s),a.eq(s).addClass(n.slideVisibleClass))}o.progress=i?-l:l}t.visibleSlides=(0,c.$)(t.visibleSlides)}},updateProgress:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,n=t.params,a=t.maxTranslate()-t.minTranslate(),i=t.progress,r=t.isBeginning,s=t.isEnd,o=r,l=s;0===a?(i=0,r=!0,s=!0):(r=(i=(e-t.minTranslate())/a)<=0,s=i>=1),m.extend(t,{progress:i,isBeginning:r,isEnd:s}),(n.watchSlidesProgress||n.watchSlidesVisibility)&&t.updateSlidesProgress(e),r&&!o&&t.emit("reachBeginning toEdge"),s&&!l&&t.emit("reachEnd toEdge"),(o&&!r||l&&!s)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){var e,t=this,n=t.slides,a=t.params,i=t.$wrapperEl,r=t.activeIndex,s=t.realIndex,o=t.virtual&&a.virtual.enabled;n.removeClass("".concat(a.slideActiveClass," ").concat(a.slideNextClass," ").concat(a.slidePrevClass," ").concat(a.slideDuplicateActiveClass," ").concat(a.slideDuplicateNextClass," ").concat(a.slideDuplicatePrevClass)),(e=o?t.$wrapperEl.find(".".concat(a.slideClass,'[data-swiper-slide-index="').concat(r,'"]')):n.eq(r)).addClass(a.slideActiveClass),a.loop&&(e.hasClass(a.slideDuplicateClass)?i.children(".".concat(a.slideClass,":not(.").concat(a.slideDuplicateClass,')[data-swiper-slide-index="').concat(s,'"]')).addClass(a.slideDuplicateActiveClass):i.children(".".concat(a.slideClass,".").concat(a.slideDuplicateClass,'[data-swiper-slide-index="').concat(s,'"]')).addClass(a.slideDuplicateActiveClass));var l=e.nextAll(".".concat(a.slideClass)).eq(0).addClass(a.slideNextClass);a.loop&&0===l.length&&(l=n.eq(0)).addClass(a.slideNextClass);var c=e.prevAll(".".concat(a.slideClass)).eq(0).addClass(a.slidePrevClass);a.loop&&0===c.length&&(c=n.eq(-1)).addClass(a.slidePrevClass),a.loop&&(l.hasClass(a.slideDuplicateClass)?i.children(".".concat(a.slideClass,":not(.").concat(a.slideDuplicateClass,')[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(a.slideDuplicateNextClass):i.children(".".concat(a.slideClass,".").concat(a.slideDuplicateClass,'[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(a.slideDuplicateNextClass),c.hasClass(a.slideDuplicateClass)?i.children(".".concat(a.slideClass,":not(.").concat(a.slideDuplicateClass,')[data-swiper-slide-index="').concat(c.attr("data-swiper-slide-index"),'"]')).addClass(a.slideDuplicatePrevClass):i.children(".".concat(a.slideClass,".").concat(a.slideDuplicateClass,'[data-swiper-slide-index="').concat(c.attr("data-swiper-slide-index"),'"]')).addClass(a.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,n=this,a=n.rtlTranslate?n.translate:-n.translate,i=n.slidesGrid,r=n.snapGrid,s=n.params,o=n.activeIndex,l=n.realIndex,c=n.snapIndex,u=e;if(void 0===u){for(var d=0;d<i.length;d+=1)void 0!==i[d+1]?a>=i[d]&&a<i[d+1]-(i[d+1]-i[d])/2?u=d:a>=i[d]&&a<i[d+1]&&(u=d+1):a>=i[d]&&(u=d);s.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if((t=r.indexOf(a)>=0?r.indexOf(a):Math.floor(u/s.slidesPerGroup))>=r.length&&(t=r.length-1),u!==o){var p=parseInt(n.slides.eq(u).attr("data-swiper-slide-index")||u,10);m.extend(n,{snapIndex:t,realIndex:p,previousIndex:o,activeIndex:u}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),l!==p&&n.emit("realIndexChange"),(n.initialized||n.runCallbacksOnInit)&&n.emit("slideChange")}else t!==c&&(n.snapIndex=t,n.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this,n=t.params,a=(0,c.$)(e.target).closest(".".concat(n.slideClass))[0],i=!1;if(a)for(var r=0;r<t.slides.length;r+=1)t.slides[r]===a&&(i=!0);if(!a||!i)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=a,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt((0,c.$)(a).attr("data-swiper-slide-index"),10):t.clickedIndex=(0,c.$)(a).index(),n.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};var E={getTranslate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.isHorizontal()?"x":"y",t=this,n=t.params,a=t.rtlTranslate,i=t.translate,r=t.$wrapperEl;if(n.virtualTranslate)return a?-i:i;var s=m.getTranslate(r[0],e);return a&&(s=-s),s||0},setTranslate:function(e,t){var n=this,a=n.rtlTranslate,i=n.params,r=n.$wrapperEl,s=n.progress,o=0,l=0;n.isHorizontal()?o=a?-e:e:l=e,i.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),i.virtualTranslate||(g.transforms3d?r.transform("translate3d(".concat(o,"px, ").concat(l,"px, ").concat(0,"px)")):r.transform("translate(".concat(o,"px, ").concat(l,"px)"))),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?o:l;var c=n.maxTranslate()-n.minTranslate();(0===c?0:(e-n.minTranslate())/c)!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}};var x={setTransition:function(e,t){this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this,a=n.activeIndex,i=n.params,r=n.previousIndex;i.autoHeight&&n.updateAutoHeight();var s=t;if(s||(s=a>r?"next":a<r?"prev":"reset"),n.emit("transitionStart"),e&&a!==r){if("reset"===s)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===s?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}},transitionEnd:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this,a=n.activeIndex,i=n.previousIndex;n.animating=!1,n.setTransition(0);var r=t;if(r||(r=a>i?"next":a<i?"prev":"reset"),n.emit("transitionEnd"),e&&a!==i){if("reset"===r)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===r?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}};var S={slideTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3?arguments[3]:void 0,i=this,r=e;r<0&&(r=0);var s=i.params,o=i.snapGrid,l=i.slidesGrid,c=i.previousIndex,u=i.activeIndex,d=i.rtlTranslate;if(i.animating&&s.preventInteractionOnTransition)return!1;var p=Math.floor(r/s.slidesPerGroup);p>=o.length&&(p=o.length-1),(u||s.initialSlide||0)===(c||0)&&n&&i.emit("beforeSlideChangeStart");var f,h=-o[p];if(i.updateProgress(h),s.normalizeSlideIndex)for(var v=0;v<l.length;v+=1)-Math.floor(100*h)>=Math.floor(100*l[v])&&(r=v);if(i.initialized&&r!==u){if(!i.allowSlideNext&&h<i.translate&&h<i.minTranslate())return!1;if(!i.allowSlidePrev&&h>i.translate&&h>i.maxTranslate()&&(u||0)!==r)return!1}return f=r>u?"next":r<u?"prev":"reset",d&&-h===i.translate||!d&&h===i.translate?(i.updateActiveIndex(r),s.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),"slide"!==s.effect&&i.setTranslate(h),"reset"!==f&&(i.transitionStart(n,f),i.transitionEnd(n,f)),!1):(0!==t&&g.transition?(i.setTransition(t),i.setTranslate(h),i.updateActiveIndex(r),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,a),i.transitionStart(n,f),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(e){i&&!i.destroyed&&e.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,f))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))):(i.setTransition(0),i.setTranslate(h),i.updateActiveIndex(r),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,a),i.transitionStart(n,f),i.transitionEnd(n,f)),!0)},slideToLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3?arguments[3]:void 0,i=this,r=e;return i.params.loop&&(r+=i.loopedSlides),i.slideTo(r,t,n,a)},slideNext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,a=this,i=a.params,r=a.animating;return i.loop?!r&&(a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft,a.slideTo(a.activeIndex+i.slidesPerGroup,e,t,n)):a.slideTo(a.activeIndex+i.slidesPerGroup,e,t,n)},slidePrev:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,a=this,i=a.params,r=a.animating,s=a.snapGrid,o=a.slidesGrid,l=a.rtlTranslate;if(i.loop){if(r)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}var c=l?a.translate:-a.translate;function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var d,p=u(c),f=s.map((function(e){return u(e)})),h=(o.map((function(e){return u(e)})),s[f.indexOf(p)],s[f.indexOf(p)-1]);return void 0!==h&&(d=o.indexOf(h))<0&&(d=a.activeIndex-1),a.slideTo(d,e,t,n)},slideReset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,a=this;return a.slideTo(a.activeIndex,e,t,n)},slideToClosest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,a=this,i=a.activeIndex,r=Math.floor(i/a.params.slidesPerGroup);if(r<a.snapGrid.length-1){var s=a.rtlTranslate?a.translate:-a.translate,o=a.snapGrid[r],l=a.snapGrid[r+1];s-o>(l-o)/2&&(i=a.params.slidesPerGroup)}return a.slideTo(i,e,t,n)},slideToClickedSlide:function(){var e,t=this,n=t.params,a=t.$wrapperEl,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,r=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt((0,c.$)(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?r<t.loopedSlides-i/2||r>t.slides.length-t.loopedSlides+i/2?(t.loopFix(),r=a.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(n.slideDuplicateClass,")")).eq(0).index(),m.nextTick((function(){t.slideTo(r)}))):t.slideTo(r):r>t.slides.length-i?(t.loopFix(),r=a.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(n.slideDuplicateClass,")")).eq(0).index(),m.nextTick((function(){t.slideTo(r)}))):t.slideTo(r)}else t.slideTo(r)}};var T={loopCreate:function(){var e=this,t=e.params,n=e.$wrapperEl;n.children(".".concat(t.slideClass,".").concat(t.slideDuplicateClass)).remove();var a=n.children(".".concat(t.slideClass));if(t.loopFillGroupWithBlank){var i=t.slidesPerGroup-a.length%t.slidesPerGroup;if(i!==t.slidesPerGroup){for(var r=0;r<i;r+=1){var s=(0,c.$)(u.t.createElement("div")).addClass("".concat(t.slideClass," ").concat(t.slideBlankClass));n.append(s)}a=n.children(".".concat(t.slideClass))}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=a.length),e.loopedSlides=parseInt(t.loopedSlides||t.slidesPerView,10),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>a.length&&(e.loopedSlides=a.length);var o=[],l=[];a.each((function(t,n){var i=(0,c.$)(n);t<e.loopedSlides&&l.push(n),t<a.length&&t>=a.length-e.loopedSlides&&o.push(n),i.attr("data-swiper-slide-index",t)}));for(var d=0;d<l.length;d+=1)n.append((0,c.$)(l[d].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var p=o.length-1;p>=0;p-=1)n.prepend((0,c.$)(o[p].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){var e,t=this,n=t.params,a=t.activeIndex,i=t.slides,r=t.loopedSlides,s=t.allowSlidePrev,o=t.allowSlideNext,l=t.snapGrid,c=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var u=-l[a]-t.getTranslate();if(a<r)e=i.length-3*r+a,e+=r,t.slideTo(e,0,!1,!0)&&0!==u&&t.setTranslate((c?-t.translate:t.translate)-u);else if("auto"===n.slidesPerView&&a>=2*r||a>=i.length-r){e=-i.length+a+r,e+=r,t.slideTo(e,0,!1,!0)&&0!==u&&t.setTranslate((c?-t.translate:t.translate)-u)}t.allowSlidePrev=s,t.allowSlideNext=o},loopDestroy:function(){var e=this,t=e.$wrapperEl,n=e.params,a=e.slides;t.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,",.").concat(n.slideClass,".").concat(n.slideBlankClass)).remove(),a.removeAttr("data-swiper-slide-index")}};var C={setGrabCursor:function(e){var t=this;if(!(g.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)){var n=t.el;n.style.cursor="move",n.style.cursor=e?"-webkit-grabbing":"-webkit-grab",n.style.cursor=e?"-moz-grabbin":"-moz-grab",n.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){var e=this;g.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}};var k={appendSlide:function(e){var t=this,n=t.$wrapperEl,a=t.params;if(a.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var i=0;i<e.length;i+=1)e[i]&&n.append(e[i]);else n.append(e);a.loop&&t.loopCreate(),a.observer&&g.observer||t.update()},prependSlide:function(e){var t=this,n=t.params,a=t.$wrapperEl,i=t.activeIndex;n.loop&&t.loopDestroy();var r=i+1;if("object"==typeof e&&"length"in e){for(var s=0;s<e.length;s+=1)e[s]&&a.prepend(e[s]);r=i+e.length}else a.prepend(e);n.loop&&t.loopCreate(),n.observer&&g.observer||t.update(),t.slideTo(r,0,!1)},addSlide:function(e,t){var n=this,a=n.$wrapperEl,i=n.params,r=n.activeIndex;i.loop&&(r-=n.loopedSlides,n.loopDestroy(),n.slides=a.children(".".concat(i.slideClass)));var s=n.slides.length;if(e<=0)n.prependSlide(t);else if(e>=s)n.appendSlide(t);else{for(var o=r>e?r+1:r,l=[],c=s-1;c>=e;c-=1){var u=n.slides.eq(c);u.remove(),l.unshift(u)}if("object"==typeof t&&"length"in t){for(var d=0;d<t.length;d+=1)t[d]&&a.append(t[d]);o=r>e?r+t.length:r}else a.append(t);for(var p=0;p<l.length;p+=1)a.append(l[p]);i.loop&&n.loopCreate(),i.observer&&g.observer||n.update(),i.loop?n.slideTo(o+n.loopedSlides,0,!1):n.slideTo(o,0,!1)}},removeSlide:function(e){var t=this,n=t.params,a=t.$wrapperEl,i=t.activeIndex;n.loop&&(i-=t.loopedSlides,t.loopDestroy(),t.slides=a.children(".".concat(n.slideClass)));var r,s=i;if("object"==typeof e&&"length"in e){for(var o=0;o<e.length;o+=1)r=e[o],t.slides[r]&&t.slides.eq(r).remove(),r<s&&(s-=1);s=Math.max(s,0)}else r=e,t.slides[r]&&t.slides.eq(r).remove(),r<s&&(s-=1),s=Math.max(s,0);n.loop&&t.loopCreate(),n.observer&&g.observer||t.update(),n.loop?t.slideTo(s+t.loopedSlides,0,!1):t.slideTo(s,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},P=function(){var e=u.u.navigator.userAgent,t={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:u.u.cordova||u.u.phonegap,phonegap:u.u.cordova||u.u.phonegap},n=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),a=e.match(/(Android);?[\s\/]+([\d.]+)?/),i=e.match(/(iPad).*OS\s([\d_]+)/),r=e.match(/(iPod)(.*OS\s([\d_]+))?/),s=!i&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(n&&(t.os="windows",t.osVersion=n[2],t.windows=!0),a&&!n&&(t.os="android",t.osVersion=a[2],t.android=!0,t.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(i||s||r)&&(t.os="ios",t.ios=!0),s&&!r&&(t.osVersion=s[2].replace(/_/g,"."),t.iphone=!0),i&&(t.osVersion=i[2].replace(/_/g,"."),t.ipad=!0),r&&(t.osVersion=r[3]?r[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osVersion&&e.indexOf("Version/")>=0&&"10"===t.osVersion.split(".")[0]&&(t.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webView),t.webView=(s||i||r)&&e.match(/.*AppleWebKit(?!.*Safari)/i),t.os&&"ios"===t.os){var o=t.osVersion.split("."),l=u.t.querySelector('meta[name="viewport"]');t.minimalUi=!t.webView&&(r||s)&&(1*o[0]==7?1*o[1]>=1:1*o[0]>7)&&l&&l.getAttribute("content").indexOf("minimal-ui")>=0}return t.pixelRatio=u.u.devicePixelRatio||1,t}();function M(e){var t=this,n=t.touchEventsData,a=t.params,i=t.touches;if(!t.animating||!a.preventInteractionOnTransition){var r=e;if(r.originalEvent&&(r=r.originalEvent),n.isTouchEvent="touchstart"===r.type,(n.isTouchEvent||!("which"in r)||3!==r.which)&&!(!n.isTouchEvent&&"button"in r&&r.button>0||n.isTouched&&n.isMoved))if(a.noSwiping&&(0,c.$)(r.target).closest(a.noSwipingSelector?a.noSwipingSelector:".".concat(a.noSwipingClass))[0])t.allowClick=!0;else if(!a.swipeHandler||(0,c.$)(r).closest(a.swipeHandler)[0]){i.currentX="touchstart"===r.type?r.targetTouches[0].pageX:r.pageX,i.currentY="touchstart"===r.type?r.targetTouches[0].pageY:r.pageY;var s=i.currentX,o=i.currentY,l=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,d=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(!l||!(s<=d||s>=u.u.screen.width-d)){if(m.extend(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=s,i.startY=o,n.touchStartTime=m.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==r.type){var p=!0;(0,c.$)(r.target).is(n.formElements)&&(p=!1),u.t.activeElement&&(0,c.$)(u.t.activeElement).is(n.formElements)&&u.t.activeElement!==r.target&&u.t.activeElement.blur();var f=p&&t.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||f)&&r.preventDefault()}t.emit("touchStart",r)}}}}function I(e){var t=this,n=t.touchEventsData,a=t.params,i=t.touches,r=t.rtlTranslate,s=e;if(s.originalEvent&&(s=s.originalEvent),n.isTouched){if(!n.isTouchEvent||"mousemove"!==s.type){var o="touchmove"===s.type?s.targetTouches[0].pageX:s.pageX,l="touchmove"===s.type?s.targetTouches[0].pageY:s.pageY;if(s.preventedByNestedSwiper)return i.startX=o,void(i.startY=l);if(!t.allowTouchMove)return t.allowClick=!1,void(n.isTouched&&(m.extend(i,{startX:o,startY:l,currentX:o,currentY:l}),n.touchStartTime=m.now()));if(n.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop)if(t.isVertical()){if(l<i.startY&&t.translate<=t.maxTranslate()||l>i.startY&&t.translate>=t.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(o<i.startX&&t.translate<=t.maxTranslate()||o>i.startX&&t.translate>=t.minTranslate())return;if(n.isTouchEvent&&u.t.activeElement&&s.target===u.t.activeElement&&(0,c.$)(s.target).is(n.formElements))return n.isMoved=!0,void(t.allowClick=!1);if(n.allowTouchCallbacks&&t.emit("touchMove",s),!(s.targetTouches&&s.targetTouches.length>1)){i.currentX=o,i.currentY=l;var d=i.currentX-i.startX,p=i.currentY-i.startY;if(!(t.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(p,2))<t.params.threshold)){var f;if(void 0===n.isScrolling)t.isHorizontal()&&i.currentY===i.startY||t.isVertical()&&i.currentX===i.startX?n.isScrolling=!1:d*d+p*p>=25&&(f=180*Math.atan2(Math.abs(p),Math.abs(d))/Math.PI,n.isScrolling=t.isHorizontal()?f>a.touchAngle:90-f>a.touchAngle);if(n.isScrolling&&t.emit("touchMoveOpposite",s),void 0===n.startMoving&&(i.currentX===i.startX&&i.currentY===i.startY||(n.startMoving=!0)),n.isScrolling)n.isTouched=!1;else if(n.startMoving){t.allowClick=!1,s.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&s.stopPropagation(),n.isMoved||(a.loop&&t.loopFix(),n.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!a.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",s)),t.emit("sliderMove",s),n.isMoved=!0;var h=t.isHorizontal()?d:p;i.diff=h,h*=a.touchRatio,r&&(h=-h),t.swipeDirection=h>0?"prev":"next",n.currentTranslate=h+n.startTranslate;var v=!0,g=a.resistanceRatio;if(a.touchReleaseOnEdges&&(g=0),h>0&&n.currentTranslate>t.minTranslate()?(v=!1,a.resistance&&(n.currentTranslate=t.minTranslate()-1+Math.pow(-t.minTranslate()+n.startTranslate+h,g))):h<0&&n.currentTranslate<t.maxTranslate()&&(v=!1,a.resistance&&(n.currentTranslate=t.maxTranslate()+1-Math.pow(t.maxTranslate()-n.startTranslate-h,g))),v&&(s.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!t.allowSlidePrev&&"prev"===t.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),a.threshold>0){if(!(Math.abs(h)>a.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,n.currentTranslate=n.startTranslate,void(i.diff=t.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY)}a.followFinger&&((a.freeMode||a.watchSlidesProgress||a.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),a.freeMode&&(0===n.velocities.length&&n.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:m.now()})),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate))}}}}}else n.startMoving&&n.isScrolling&&t.emit("touchMoveOpposite",s)}function z(e){var t=this,n=t.touchEventsData,a=t.params,i=t.touches,r=t.rtlTranslate,s=t.$wrapperEl,o=t.slidesGrid,l=t.snapGrid,c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);a.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var u,d=m.now(),p=d-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(c),t.emit("tap",c),p<300&&d-n.lastClickTime>300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),n.clickTimeout=m.nextTick((function(){t&&!t.destroyed&&t.emit("click",c)}),300)),p<300&&d-n.lastClickTime<300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),t.emit("doubleTap",c))),n.lastClickTime=m.now(),m.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=a.followFinger?r?t.translate:-t.translate:-n.currentTranslate,a.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(a.freeModeMomentum){if(n.velocities.length>1){var f=n.velocities.pop(),h=n.velocities.pop(),v=f.position-h.position,g=f.time-h.time;t.velocity=v/g,t.velocity/=2,Math.abs(t.velocity)<a.freeModeMinimumVelocity&&(t.velocity=0),(g>150||m.now()-f.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=a.freeModeMomentumVelocityRatio,n.velocities.length=0;var b=1e3*a.freeModeMomentumRatio,w=t.velocity*b,y=t.translate+w;r&&(y=-y);var E,x,S=!1,T=20*Math.abs(t.velocity)*a.freeModeMomentumBounceRatio;if(y<t.maxTranslate())a.freeModeMomentumBounce?(y+t.maxTranslate()<-T&&(y=t.maxTranslate()-T),E=t.maxTranslate(),S=!0,n.allowMomentumBounce=!0):y=t.maxTranslate(),a.loop&&a.centeredSlides&&(x=!0);else if(y>t.minTranslate())a.freeModeMomentumBounce?(y-t.minTranslate()>T&&(y=t.minTranslate()+T),E=t.minTranslate(),S=!0,n.allowMomentumBounce=!0):y=t.minTranslate(),a.loop&&a.centeredSlides&&(x=!0);else if(a.freeModeSticky){for(var C,k=0;k<l.length;k+=1)if(l[k]>-y){C=k;break}y=-(y=Math.abs(l[C]-y)<Math.abs(l[C-1]-y)||"next"===t.swipeDirection?l[C]:l[C-1])}if(x&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity)b=r?Math.abs((-y-t.translate)/t.velocity):Math.abs((y-t.translate)/t.velocity);else if(a.freeModeSticky)return void t.slideToClosest();a.freeModeMomentumBounce&&S?(t.updateProgress(E),t.setTransition(b),t.setTranslate(y),t.transitionStart(!0,t.swipeDirection),t.animating=!0,s.transitionEnd((function(){t&&!t.destroyed&&n.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(a.speed),t.setTranslate(E),s.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))}))):t.velocity?(t.updateProgress(y),t.setTransition(b),t.setTranslate(y),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,s.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(y),t.updateActiveIndex(),t.updateSlidesClasses()}else if(a.freeModeSticky)return void t.slideToClosest();(!a.freeModeMomentum||p>=a.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var P=0,M=t.slidesSizesGrid[0],I=0;I<o.length;I+=a.slidesPerGroup)void 0!==o[I+a.slidesPerGroup]?u>=o[I]&&u<o[I+a.slidesPerGroup]&&(P=I,M=o[I+a.slidesPerGroup]-o[I]):u>=o[I]&&(P=I,M=o[o.length-1]-o[o.length-2]);var z=(u-o[P])/M;if(p>a.longSwipesMs){if(!a.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(z>=a.longSwipesRatio?t.slideTo(P+a.slidesPerGroup):t.slideTo(P)),"prev"===t.swipeDirection&&(z>1-a.longSwipesRatio?t.slideTo(P+a.slidesPerGroup):t.slideTo(P))}else{if(!a.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(P+a.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(P)}}}function $(){var e=this,t=e.params,n=e.el;if(!n||0!==n.offsetWidth){t.breakpoints&&e.setBreakpoint();var a=e.allowSlideNext,i=e.allowSlidePrev,r=e.snapGrid;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){var s=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=i,e.allowSlideNext=a,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}}function O(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}var L={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},A={update:y,translate:E,transition:x,slide:S,loop:T,grabCursor:C,manipulation:k,events:{attachEvents:function(){var e=this,t=e.params,n=e.touchEvents,a=e.el,i=e.wrapperEl;e.onTouchStart=M.bind(e),e.onTouchMove=I.bind(e),e.onTouchEnd=z.bind(e),e.onClick=O.bind(e);var r="container"===t.touchEventsTarget?a:i,s=!!t.nested;if(g.touch||!g.pointerEvents&&!g.prefixedPointerEvents){if(g.touch){var o=!("touchstart"!==n.start||!g.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};r.addEventListener(n.start,e.onTouchStart,o),r.addEventListener(n.move,e.onTouchMove,g.passiveListener?{passive:!1,capture:s}:s),r.addEventListener(n.end,e.onTouchEnd,o)}(t.simulateTouch&&!P.ios&&!P.android||t.simulateTouch&&!g.touch&&P.ios)&&(r.addEventListener("mousedown",e.onTouchStart,!1),u.t.addEventListener("mousemove",e.onTouchMove,s),u.t.addEventListener("mouseup",e.onTouchEnd,!1))}else r.addEventListener(n.start,e.onTouchStart,!1),u.t.addEventListener(n.move,e.onTouchMove,s),u.t.addEventListener(n.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&r.addEventListener("click",e.onClick,!0),e.on(P.ios||P.android?"resize orientationchange observerUpdate":"resize observerUpdate",$,!0)},detachEvents:function(){var e=this,t=e.params,n=e.touchEvents,a=e.el,i=e.wrapperEl,r="container"===t.touchEventsTarget?a:i,s=!!t.nested;if(g.touch||!g.pointerEvents&&!g.prefixedPointerEvents){if(g.touch){var o=!("onTouchStart"!==n.start||!g.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};r.removeEventListener(n.start,e.onTouchStart,o),r.removeEventListener(n.move,e.onTouchMove,s),r.removeEventListener(n.end,e.onTouchEnd,o)}(t.simulateTouch&&!P.ios&&!P.android||t.simulateTouch&&!g.touch&&P.ios)&&(r.removeEventListener("mousedown",e.onTouchStart,!1),u.t.removeEventListener("mousemove",e.onTouchMove,s),u.t.removeEventListener("mouseup",e.onTouchEnd,!1))}else r.removeEventListener(n.start,e.onTouchStart,!1),u.t.removeEventListener(n.move,e.onTouchMove,s),u.t.removeEventListener(n.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&r.removeEventListener("click",e.onClick,!0),e.off(P.ios||P.android?"resize orientationchange observerUpdate":"resize observerUpdate",$)}},breakpoints:{setBreakpoint:function(){var e=this,t=e.activeIndex,n=e.initialized,a=e.loopedSlides,i=void 0===a?0:a,r=e.params,s=r.breakpoints;if(s&&(!s||0!==Object.keys(s).length)){var o=e.getBreakpoint(s);if(o&&e.currentBreakpoint!==o){var l=o in s?s[o]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach((function(e){var t=l[e];void 0!==t&&(l[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var c=l||e.originalParams,u=c.direction&&c.direction!==r.direction,d=r.loop&&(c.slidesPerView!==r.slidesPerView||u);u&&n&&e.changeDirection(),m.extend(e.params,c),m.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=o,d&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-i+e.loopedSlides,0,!1)),e.emit("breakpoint",c)}}},getBreakpoint:function(e){if(e){var t=!1,n=[];Object.keys(e).forEach((function(e){n.push(e)})),n.sort((function(e,t){return parseInt(e,10)-parseInt(t,10)}));for(var a=0;a<n.length;a+=1){var i=n[a];this.params.breakpointsInverse?i<=u.u.innerWidth&&(t=i):i>=u.u.innerWidth&&!t&&(t=i)}return t||"max"}}},checkOverflow:{checkOverflow:function(){var e=this,t=e.isLocked;e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}},classes:{addClasses:function(){var e=this,t=e.classNames,n=e.params,a=e.rtl,i=e.$el,r=[];r.push("initialized"),r.push(n.direction),n.freeMode&&r.push("free-mode"),g.flexbox||r.push("no-flexbox"),n.autoHeight&&r.push("autoheight"),a&&r.push("rtl"),n.slidesPerColumn>1&&r.push("multirow"),P.android&&r.push("android"),P.ios&&r.push("ios"),(b.isIE||b.isEdge)&&(g.pointerEvents||g.prefixedPointerEvents)&&r.push("wp8-".concat(n.direction)),r.forEach((function(e){t.push(n.containerModifierClass+e)})),i.addClass(t.join(" "))},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" "))}},images:{loadImage:function(e,t,n,a,i,r){var s;function o(){r&&r()}e.complete&&i?o():t?((s=new u.u.Image).onload=o,s.onerror=o,a&&(s.sizes=a),n&&(s.srcset=n),t&&(s.src=t)):o()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;n<e.imagesToLoad.length;n+=1){var a=e.imagesToLoad[n];e.loadImage(a,a.currentSrc||a.getAttribute("src"),a.srcset||a.getAttribute("srcset"),a.sizes||a.getAttribute("sizes"),!0,t)}}}},D={},N=function(e){(0,i.Z)(n,e);var t=d(n);function n(){var e,i,s;(0,o.Z)(this,n);for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];1===u.length&&u[0].constructor&&u[0].constructor===Object?s=u[0]:(i=u[0],s=u[1]),s||(s={}),s=m.extend({},s),i&&!s.el&&(s.el=i),e=t.call(this,s),Object.keys(A).forEach((function(e){Object.keys(A[e]).forEach((function(t){n.prototype[t]||(n.prototype[t]=A[e][t])}))}));var p=(0,a.Z)(e);void 0===p.modules&&(p.modules={}),Object.keys(p.modules).forEach((function(e){var t=p.modules[e];if(t.params){var n=Object.keys(t.params)[0],a=t.params[n];if("object"!=typeof a||null===a)return;if(!(n in s)||!("enabled"in a))return;!0===s[n]&&(s[n]={enabled:!0}),"object"!=typeof s[n]||"enabled"in s[n]||(s[n].enabled=!0),s[n]||(s[n]={enabled:!1})}}));var f=m.extend({},L);p.useModulesParams(f),p.params=m.extend({},f,D,s),p.originalParams=m.extend({},p.params),p.passedParams=m.extend({},s),p.$=c.$;var h=(0,c.$)(p.params.el);if(!(i=h[0]))return(0,r.Z)(e,void 0);if(h.length>1){var v=[];return h.each((function(e,t){var a=m.extend({},s,{el:t});v.push(new n(a))})),(0,r.Z)(e,v)}i.swiper=p,h.data("swiper",p);var b,w,y=h.children(".".concat(p.params.wrapperClass));return m.extend(p,{$el:h,el:i,$wrapperEl:y,wrapperEl:y[0],classNames:[],slides:(0,c.$)(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===p.params.direction},isVertical:function(){return"vertical"===p.params.direction},rtl:"rtl"===i.dir.toLowerCase()||"rtl"===h.css("direction"),rtlTranslate:"horizontal"===p.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===h.css("direction")),wrongRTL:"-webkit-box"===y.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:p.params.allowSlideNext,allowSlidePrev:p.params.allowSlidePrev,touchEvents:(b=["touchstart","touchmove","touchend"],w=["mousedown","mousemove","mouseup"],g.pointerEvents?w=["pointerdown","pointermove","pointerup"]:g.prefixedPointerEvents&&(w=["MSPointerDown","MSPointerMove","MSPointerUp"]),p.touchEventsTouch={start:b[0],move:b[1],end:b[2]},p.touchEventsDesktop={start:w[0],move:w[1],end:w[2]},g.touch||!p.params.simulateTouch?p.touchEventsTouch:p.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:m.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:p.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),p.useModules(),p.params.init&&p.init(),(0,r.Z)(e,p)}return(0,l.Z)(n,[{key:"slidesPerViewDynamic",value:function(){var e=this,t=e.params,n=e.slides,a=e.slidesGrid,i=e.size,r=e.activeIndex,s=1;if(t.centeredSlides){for(var o,l=n[r].swiperSlideSize,c=r+1;c<n.length;c+=1)n[c]&&!o&&(s+=1,(l+=n[c].swiperSlideSize)>i&&(o=!0));for(var u=r-1;u>=0;u-=1)n[u]&&!o&&(s+=1,(l+=n[u].swiperSlideSize)>i&&(o=!0))}else for(var d=r+1;d<n.length;d+=1)a[d]-a[r]<i&&(s+=1);return s}},{key:"update",value:function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,n=e.params;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(a(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||a(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function a(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}}},{key:"changeDirection",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,a=n.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass("".concat(n.params.containerModifierClass).concat(a," wp8-").concat(a)).addClass("".concat(n.params.containerModifierClass).concat(e)),(b.isIE||b.isEdge)&&(g.pointerEvents||g.prefixedPointerEvents)&&n.$el.addClass("".concat(n.params.containerModifierClass,"wp8-").concat(e)),n.params.direction=e,n.slides.each((function(t,n){"vertical"===e?n.style.width="":n.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}},{key:"init",value:function(){var e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))}},{key:"destroy",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,a=n.params,i=n.$el,r=n.$wrapperEl,s=n.slides;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),a.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttr("style"),r.removeAttr("style"),s&&s.length&&s.removeClass([a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((function(e){n.off(e)})),!1!==e&&(n.$el[0].swiper=null,n.$el.data("swiper",null),m.deleteProps(n)),n.destroyed=!0),null}}],[{key:"extendDefaults",value:function(e){m.extend(D,e)}},{key:"extendedDefaults",get:function(){return D}},{key:"defaults",get:function(){return L}},{key:"Class",get:function(){return w}},{key:"$",get:function(){return c.$}}]),n}(w),_={name:"device",proto:{device:P},static:{device:P}},R={name:"support",proto:{support:g},static:{support:g}},B={name:"browser",proto:{browser:b},static:{browser:b}},j={name:"resize",create:function(){var e=this;m.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){u.u.addEventListener("resize",this.resize.resizeHandler),u.u.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){u.u.removeEventListener("resize",this.resize.resizeHandler),u.u.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},H={func:u.u.MutationObserver||u.u.WebkitMutationObserver,attach:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,a=H.func,i=new a((function(e){if(1!==e.length){var t=function(){n.emit("observerUpdate",e[0])};u.u.requestAnimationFrame?u.u.requestAnimationFrame(t):u.u.setTimeout(t,0)}else n.emit("observerUpdate",e[0])}));i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),n.observer.observers.push(i)},init:function(){var e=this;if(g.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),n=0;n<t.length;n+=1)e.observer.attach(t[n]);e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(e){e.disconnect()})),this.observer.observers=[]}},V={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;m.extend(e,{observer:{init:H.init.bind(e),attach:H.attach.bind(e),destroy:H.destroy.bind(e),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},Z={update:function(e){var t=this,n=t.params,a=n.slidesPerView,i=n.slidesPerGroup,r=n.centeredSlides,s=t.params.virtual,o=s.addSlidesBefore,l=s.addSlidesAfter,c=t.virtual,u=c.from,d=c.to,p=c.slides,f=c.slidesGrid,h=c.renderSlide,v=c.offset;t.updateActiveIndex();var g,b,w,y=t.activeIndex||0;g=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",r?(b=Math.floor(a/2)+i+o,w=Math.floor(a/2)+i+l):(b=a+(i-1)+o,w=i+l);var E=Math.max((y||0)-w,0),x=Math.min((y||0)+b,p.length-1),S=(t.slidesGrid[E]||0)-(t.slidesGrid[0]||0);function T(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(m.extend(t.virtual,{from:E,to:x,offset:S,slidesGrid:t.slidesGrid}),u===E&&d===x&&!e)return t.slidesGrid!==f&&S!==v&&t.slides.css(g,"".concat(S,"px")),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:S,from:E,to:x,slides:function(){for(var e=[],t=E;t<=x;t+=1)e.push(p[t]);return e}()}),void T();var C=[],k=[];if(e)t.$wrapperEl.find(".".concat(t.params.slideClass)).remove();else for(var P=u;P<=d;P+=1)(P<E||P>x)&&t.$wrapperEl.find(".".concat(t.params.slideClass,'[data-swiper-slide-index="').concat(P,'"]')).remove();for(var M=0;M<p.length;M+=1)M>=E&&M<=x&&(void 0===d||e?k.push(M):(M>d&&k.push(M),M<u&&C.push(M)));k.forEach((function(e){t.$wrapperEl.append(h(p[e],e))})),C.sort((function(e,t){return t-e})).forEach((function(e){t.$wrapperEl.prepend(h(p[e],e))})),t.$wrapperEl.children(".swiper-slide").css(g,"".concat(S,"px")),T()},renderSlide:function(e,t){var n=this,a=n.params.virtual;if(a.cache&&n.virtual.cache[t])return n.virtual.cache[t];var i=a.renderSlide?(0,c.$)(a.renderSlide.call(n,e,t)):(0,c.$)('<div class="'.concat(n.params.slideClass,'" data-swiper-slide-index="').concat(t,'">').concat(e,"</div>"));return i.attr("data-swiper-slide-index")||i.attr("data-swiper-slide-index",t),a.cache&&(n.virtual.cache[t]=i),i},appendSlide:function(e){var t=this;if("object"==typeof e&&"length"in e)for(var n=0;n<e.length;n+=1)e[n]&&t.virtual.slides.push(e[n]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide:function(e){var t=this,n=t.activeIndex,a=n+1,i=1;if(Array.isArray(e)){for(var r=0;r<e.length;r+=1)e[r]&&t.virtual.slides.unshift(e[r]);a=n+e.length,i=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){var s=t.virtual.cache,o={};Object.keys(s).forEach((function(e){o[parseInt(e,10)+i]=s[e]})),t.virtual.cache=o}t.virtual.update(!0),t.slideTo(a,0)},removeSlide:function(e){var t=this;if(null!=e){var n=t.activeIndex;if(Array.isArray(e))for(var a=e.length-1;a>=0;a-=1)t.virtual.slides.splice(e[a],1),t.params.virtual.cache&&delete t.virtual.cache[e[a]],e[a]<n&&(n-=1),n=Math.max(n,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<n&&(n-=1),n=Math.max(n,0);t.virtual.update(!0),t.slideTo(n,0)}},removeAllSlides:function(){var e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}},G={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;m.extend(e,{virtual:{update:Z.update.bind(e),appendSlide:Z.appendSlide.bind(e),prependSlide:Z.prependSlide.bind(e),removeSlide:Z.removeSlide.bind(e),removeAllSlides:Z.removeAllSlides.bind(e),renderSlide:Z.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var e=this;if(e.params.virtual.enabled){e.classNames.push("".concat(e.params.containerModifierClass,"virtual"));var t={watchSlidesProgress:!0};m.extend(e.params,t),m.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},X={handle:function(e){var t=this,n=t.rtlTranslate,a=e;a.originalEvent&&(a=a.originalEvent);var i=a.keyCode||a.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&39===i||t.isVertical()&&40===i||34===i))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&37===i||t.isVertical()&&38===i||33===i))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||u.t.activeElement&&u.t.activeElement.nodeName&&("input"===u.t.activeElement.nodeName.toLowerCase()||"textarea"===u.t.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(33===i||34===i||37===i||39===i||38===i||40===i)){var r=!1;if(t.$el.parents(".".concat(t.params.slideClass)).length>0&&0===t.$el.parents(".".concat(t.params.slideActiveClass)).length)return;var s=u.u.innerWidth,o=u.u.innerHeight,l=t.$el.offset();n&&(l.left-=t.$el[0].scrollLeft);for(var c=[[l.left,l.top],[l.left+t.width,l.top],[l.left,l.top+t.height],[l.left+t.width,l.top+t.height]],d=0;d<c.length;d+=1){var p=c[d];p[0]>=0&&p[0]<=s&&p[1]>=0&&p[1]<=o&&(r=!0)}if(!r)return}t.isHorizontal()?(33!==i&&34!==i&&37!==i&&39!==i||(a.preventDefault?a.preventDefault():a.returnValue=!1),(34!==i&&39!==i||n)&&(33!==i&&37!==i||!n)||t.slideNext(),(33!==i&&37!==i||n)&&(34!==i&&39!==i||!n)||t.slidePrev()):(33!==i&&34!==i&&38!==i&&40!==i||(a.preventDefault?a.preventDefault():a.returnValue=!1),34!==i&&40!==i||t.slideNext(),33!==i&&38!==i||t.slidePrev()),t.emit("keyPress",i)}},enable:function(){var e=this;e.keyboard.enabled||((0,c.$)(u.t).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable:function(){var e=this;e.keyboard.enabled&&((0,c.$)(u.t).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}},F={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var e=this;m.extend(e,{keyboard:{enabled:!1,enable:X.enable.bind(e),disable:X.disable.bind(e),handle:X.handle.bind(e)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var Y={lastScrollTime:m.now(),event:u.u.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var e="onwheel",t=e in u.t;if(!t){var n=u.t.createElement("div");n.setAttribute(e,"return;"),t="function"==typeof n.onwheel}return!t&&u.t.implementation&&u.t.implementation.hasFeature&&!0!==u.t.implementation.hasFeature("","")&&(t=u.t.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel",normalize:function(e){var t=0,n=0,a=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),a=10*t,i=10*n,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||i)&&e.deltaMode&&(1===e.deltaMode?(a*=40,i*=40):(a*=800,i*=800)),a&&!t&&(t=a<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:a,pixelY:i}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,n=this,a=n.params.mousewheel;if(!n.mouseEntered&&!a.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var i=0,r=n.rtlTranslate?-1:1,s=Y.normalize(t);if(a.forceToAxis)if(n.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;i=s.pixelX*r}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;i=s.pixelY}else i=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*r:-s.pixelY;if(0===i)return!0;if(a.invert&&(i=-i),n.params.freeMode){n.params.loop&&n.loopFix();var o=n.getTranslate()+i*a.sensitivity,l=n.isBeginning,c=n.isEnd;if(o>=n.minTranslate()&&(o=n.minTranslate()),o<=n.maxTranslate()&&(o=n.maxTranslate()),n.setTransition(0),n.setTranslate(o),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!l&&n.isBeginning||!c&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky&&(clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=m.nextTick((function(){n.slideToClosest()}),300)),n.emit("scroll",t),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),o===n.minTranslate()||o===n.maxTranslate())return!0}else{if(m.now()-n.mousewheel.lastScrollTime>60)if(i<0)if(n.isEnd&&!n.params.loop||n.animating){if(a.releaseOnEdges)return!0}else n.slideNext(),n.emit("scroll",t);else if(n.isBeginning&&!n.params.loop||n.animating){if(a.releaseOnEdges)return!0}else n.slidePrev(),n.emit("scroll",t);n.mousewheel.lastScrollTime=(new u.u.Date).getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable:function(){var e=this;if(!Y.event)return!1;if(e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=(0,c.$)(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(Y.event,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable:function(){var e=this;if(!Y.event)return!1;if(!e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=(0,c.$)(e.params.mousewheel.eventsTarged)),t.off(Y.event,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}},q={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var n=e.navigation,a=n.$nextEl,i=n.$prevEl;i&&i.length>0&&(e.isBeginning?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),a&&a.length>0&&(e.isEnd?a.addClass(t.disabledClass):a.removeClass(t.disabledClass),a[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,n=this,a=n.params.navigation;(a.nextEl||a.prevEl)&&(a.nextEl&&(e=(0,c.$)(a.nextEl),n.params.uniqueNavElements&&"string"==typeof a.nextEl&&e.length>1&&1===n.$el.find(a.nextEl).length&&(e=n.$el.find(a.nextEl))),a.prevEl&&(t=(0,c.$)(a.prevEl),n.params.uniqueNavElements&&"string"==typeof a.prevEl&&t.length>1&&1===n.$el.find(a.prevEl).length&&(t=n.$el.find(a.prevEl))),e&&e.length>0&&e.on("click",n.navigation.onNextClick),t&&t.length>0&&t.on("click",n.navigation.onPrevClick),m.extend(n.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this,t=e.navigation,n=t.$nextEl,a=t.$prevEl;n&&n.length&&(n.off("click",e.navigation.onNextClick),n.removeClass(e.params.navigation.disabledClass)),a&&a.length&&(a.off("click",e.navigation.onPrevClick),a.removeClass(e.params.navigation.disabledClass))}},W={update:function(){var e=this,t=e.rtl,n=e.params.pagination;if(n.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a,i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,r=e.pagination.$el,s=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?((a=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup))>i-1-2*e.loopedSlides&&(a-=i-2*e.loopedSlides),a>s-1&&(a-=s),a<0&&"bullets"!==e.params.paginationType&&(a=s+a)):a=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){var o,l,u,d=e.pagination.bullets;if(n.dynamicBullets&&(e.pagination.bulletSize=d.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),r.css(e.isHorizontal()?"width":"height","".concat(e.pagination.bulletSize*(n.dynamicMainBullets+4),"px")),n.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=a-e.previousIndex,e.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),o=a-e.pagination.dynamicBulletIndex,u=((l=o+(Math.min(d.length,n.dynamicMainBullets)-1))+o)/2),d.removeClass("".concat(n.bulletActiveClass," ").concat(n.bulletActiveClass,"-next ").concat(n.bulletActiveClass,"-next-next ").concat(n.bulletActiveClass,"-prev ").concat(n.bulletActiveClass,"-prev-prev ").concat(n.bulletActiveClass,"-main")),r.length>1)d.each((function(e,t){var i=(0,c.$)(t),r=i.index();r===a&&i.addClass(n.bulletActiveClass),n.dynamicBullets&&(r>=o&&r<=l&&i.addClass("".concat(n.bulletActiveClass,"-main")),r===o&&i.prev().addClass("".concat(n.bulletActiveClass,"-prev")).prev().addClass("".concat(n.bulletActiveClass,"-prev-prev")),r===l&&i.next().addClass("".concat(n.bulletActiveClass,"-next")).next().addClass("".concat(n.bulletActiveClass,"-next-next")))}));else if(d.eq(a).addClass(n.bulletActiveClass),n.dynamicBullets){for(var p=d.eq(o),f=d.eq(l),h=o;h<=l;h+=1)d.eq(h).addClass("".concat(n.bulletActiveClass,"-main"));p.prev().addClass("".concat(n.bulletActiveClass,"-prev")).prev().addClass("".concat(n.bulletActiveClass,"-prev-prev")),f.next().addClass("".concat(n.bulletActiveClass,"-next")).next().addClass("".concat(n.bulletActiveClass,"-next-next"))}if(n.dynamicBullets){var v=Math.min(d.length,n.dynamicMainBullets+4),m=(e.pagination.bulletSize*v-e.pagination.bulletSize)/2-u*e.pagination.bulletSize,g=t?"right":"left";d.css(e.isHorizontal()?g:"top","".concat(m,"px"))}}if("fraction"===n.type&&(r.find(".".concat(n.currentClass)).text(n.formatFractionCurrent(a+1)),r.find(".".concat(n.totalClass)).text(n.formatFractionTotal(s))),"progressbar"===n.type){var b;b=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";var w=(a+1)/s,y=1,E=1;"horizontal"===b?y=w:E=w,r.find(".".concat(n.progressbarFillClass)).transform("translate3d(0,0,0) scaleX(".concat(y,") scaleY(").concat(E,")")).transition(e.params.speed)}"custom"===n.type&&n.renderCustom?(r.html(n.renderCustom(e,a+1,s)),e.emit("paginationRender",e,r[0])):e.emit("paginationUpdate",e,r[0]),r[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](n.lockClass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,a=e.pagination.$el,i="";if("bullets"===t.type){for(var r=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,s=0;s<r;s+=1)t.renderBullet?i+=t.renderBullet.call(e,s,t.bulletClass):i+="<".concat(t.bulletElement,' class="').concat(t.bulletClass,'"></').concat(t.bulletElement,">");a.html(i),e.pagination.bullets=a.find(".".concat(t.bulletClass))}"fraction"===t.type&&(i=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'.concat(t.currentClass,'"></span>')+" / "+'<span class="'.concat(t.totalClass,'"></span>'),a.html(i)),"progressbar"===t.type&&(i=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'.concat(t.progressbarFillClass,'"></span>'),a.html(i)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var n=(0,c.$)(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&1===e.$el.find(t.el).length&&(n=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(n.addClass("".concat(t.modifierClass).concat(t.type,"-dynamic")),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click",".".concat(t.bulletClass),(function(t){t.preventDefault();var n=(0,c.$)(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)})),m.extend(e.pagination,{$el:n,el:n[0]}))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var n=e.pagination.$el;n.removeClass(t.hiddenClass),n.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&n.off("click",".".concat(t.bulletClass))}}},U={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,n=e.rtlTranslate,a=e.progress,i=t.dragSize,r=t.trackSize,s=t.$dragEl,o=t.$el,l=e.params.scrollbar,c=i,u=(r-i)*a;n?(u=-u)>0?(c=i-u,u=0):-u+i>r&&(c=r+u):u<0?(c=i+u,u=0):u+i>r&&(c=r-u),e.isHorizontal()?(g.transforms3d?s.transform("translate3d(".concat(u,"px, 0, 0)")):s.transform("translateX(".concat(u,"px)")),s[0].style.width="".concat(c,"px")):(g.transforms3d?s.transform("translate3d(0px, ".concat(u,"px, 0)")):s.transform("translateY(".concat(u,"px)")),s[0].style.height="".concat(c,"px")),l.hide&&(clearTimeout(e.scrollbar.timeout),o[0].style.opacity=1,e.scrollbar.timeout=setTimeout((function(){o[0].style.opacity=0,o.transition(400)}),1e3))}},setTransition:function(e){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)},updateSize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,n=t.$dragEl,a=t.$el;n[0].style.width="",n[0].style.height="";var i,r=e.isHorizontal()?a[0].offsetWidth:a[0].offsetHeight,s=e.size/e.virtualSize,o=s*(r/e.size);i="auto"===e.params.scrollbar.dragSize?r*s:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?n[0].style.width="".concat(i,"px"):n[0].style.height="".concat(i,"px"),a[0].style.display=s>=1?"none":"",e.params.scrollbar.hide&&(a[0].style.opacity=0),m.extend(t,{trackSize:r,divider:s,moveDivider:o,dragSize:i}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY},setDragPosition:function(e){var t,n=this,a=n.scrollbar,i=n.rtlTranslate,r=a.$el,s=a.dragSize,o=a.trackSize,l=a.dragStartPos;t=(a.getPointerPosition(e)-r.offset()[n.isHorizontal()?"left":"top"]-(null!==l?l:s/2))/(o-s),t=Math.max(Math.min(t,1),0),i&&(t=1-t);var c=n.minTranslate()+(n.maxTranslate()-n.minTranslate())*t;n.updateProgress(c),n.setTranslate(c),n.updateActiveIndex(),n.updateSlidesClasses()},onDragStart:function(e){var t=this,n=t.params.scrollbar,a=t.scrollbar,i=t.$wrapperEl,r=a.$el,s=a.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===s[0]||e.target===s?a.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.transition(100),s.transition(100),a.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),r.transition(0),n.hide&&r.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,n=t.scrollbar,a=t.$wrapperEl,i=n.$el,r=n.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,n.setDragPosition(e),a.transition(0),i.transition(0),r.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,n=t.params.scrollbar,a=t.scrollbar.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,n.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=m.nextTick((function(){a.css("opacity",0),a.transition(400)}),1e3)),t.emit("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,n=e.touchEventsTouch,a=e.touchEventsDesktop,i=e.params,r=t.$el[0],s=!(!g.passiveListener||!i.passiveListeners)&&{passive:!1,capture:!1},o=!(!g.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};g.touch?(r.addEventListener(n.start,e.scrollbar.onDragStart,s),r.addEventListener(n.move,e.scrollbar.onDragMove,s),r.addEventListener(n.end,e.scrollbar.onDragEnd,o)):(r.addEventListener(a.start,e.scrollbar.onDragStart,s),u.t.addEventListener(a.move,e.scrollbar.onDragMove,s),u.t.addEventListener(a.end,e.scrollbar.onDragEnd,o))}},disableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,n=e.touchEventsTouch,a=e.touchEventsDesktop,i=e.params,r=t.$el[0],s=!(!g.passiveListener||!i.passiveListeners)&&{passive:!1,capture:!1},o=!(!g.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};g.touch?(r.removeEventListener(n.start,e.scrollbar.onDragStart,s),r.removeEventListener(n.move,e.scrollbar.onDragMove,s),r.removeEventListener(n.end,e.scrollbar.onDragEnd,o)):(r.removeEventListener(a.start,e.scrollbar.onDragStart,s),u.t.removeEventListener(a.move,e.scrollbar.onDragMove,s),u.t.removeEventListener(a.end,e.scrollbar.onDragEnd,o))}},init:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,n=e.$el,a=e.params.scrollbar,i=(0,c.$)(a.el);e.params.uniqueNavElements&&"string"==typeof a.el&&i.length>1&&1===n.find(a.el).length&&(i=n.find(a.el));var r=i.find(".".concat(e.params.scrollbar.dragClass));0===r.length&&(r=(0,c.$)('<div class="'.concat(e.params.scrollbar.dragClass,'"></div>')),i.append(r)),m.extend(t,{$el:i,el:i[0],$dragEl:r,dragEl:r[0]}),a.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},K={setTransform:function(e,t){var n=this.rtl,a=(0,c.$)(e),i=n?-1:1,r=a.attr("data-swiper-parallax")||"0",s=a.attr("data-swiper-parallax-x"),o=a.attr("data-swiper-parallax-y"),l=a.attr("data-swiper-parallax-scale"),u=a.attr("data-swiper-parallax-opacity");if(s||o?(s=s||"0",o=o||"0"):this.isHorizontal()?(s=r,o="0"):(o=r,s="0"),s=s.indexOf("%")>=0?"".concat(parseInt(s,10)*t*i,"%"):"".concat(s*t*i,"px"),o=o.indexOf("%")>=0?"".concat(parseInt(o,10)*t,"%"):"".concat(o*t,"px"),null!=u){var d=u-(u-1)*(1-Math.abs(t));a[0].style.opacity=d}if(null==l)a.transform("translate3d(".concat(s,", ").concat(o,", 0px)"));else{var p=l-(l-1)*(1-Math.abs(t));a.transform("translate3d(".concat(s,", ").concat(o,", 0px) scale(").concat(p,")"))}},setTranslate:function(){var e=this,t=e.$el,n=e.slides,a=e.progress,i=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){e.parallax.setTransform(n,a)})),n.each((function(t,n){var r=n.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(r+=Math.ceil(t/2)-a*(i.length-1)),r=Math.min(Math.max(r,-1),1),(0,c.$)(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){e.parallax.setTransform(n,r)}))}))},setTransition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=this,n=t.$el;n.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){var a=(0,c.$)(n),i=parseInt(a.attr("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),a.transition(i)}))}},Q={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,a=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(a-t,2)+Math.pow(i-n,2))},onGestureStart:function(e){var t=this,n=t.params.zoom,a=t.zoom,i=a.gesture;if(a.fakeGestureTouched=!1,a.fakeGestureMoved=!1,!g.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;a.fakeGestureTouched=!0,i.scaleStart=Q.getDistanceBetweenTouches(e)}i.$slideEl&&i.$slideEl.length||(i.$slideEl=(0,c.$)(e.target).closest(".swiper-slide"),0===i.$slideEl.length&&(i.$slideEl=t.slides.eq(t.activeIndex)),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent(".".concat(n.containerClass)),i.maxRatio=i.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0!==i.$imageWrapEl.length)?(i.$imageEl.transition(0),t.zoom.isScaling=!0):i.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,n=this.zoom,a=n.gesture;if(!g.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;n.fakeGestureMoved=!0,a.scaleMove=Q.getDistanceBetweenTouches(e)}a.$imageEl&&0!==a.$imageEl.length&&(n.scale=g.gestures?e.scale*n.currentScale:a.scaleMove/a.scaleStart*n.currentScale,n.scale>a.maxRatio&&(n.scale=a.maxRatio-1+Math.pow(n.scale-a.maxRatio+1,.5)),n.scale<t.minRatio&&(n.scale=t.minRatio+1-Math.pow(t.minRatio-n.scale+1,.5)),a.$imageEl.transform("translate3d(0,0,0) scale(".concat(n.scale,")")))},onGestureEnd:function(e){var t=this,n=t.params.zoom,a=t.zoom,i=a.gesture;if(!g.gestures){if(!a.fakeGestureTouched||!a.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!P.android)return;a.fakeGestureTouched=!1,a.fakeGestureMoved=!1}i.$imageEl&&0!==i.$imageEl.length&&(a.scale=Math.max(Math.min(a.scale,i.maxRatio),n.minRatio),i.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale(".concat(a.scale,")")),a.currentScale=a.scale,a.isScaling=!1,1===a.scale&&(i.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,n=t.gesture,a=t.image;n.$imageEl&&0!==n.$imageEl.length&&(a.isTouched||(P.android&&e.preventDefault(),a.isTouched=!0,a.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,a.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this,n=t.zoom,a=n.gesture,i=n.image,r=n.velocity;if(a.$imageEl&&0!==a.$imageEl.length&&(t.allowClick=!1,i.isTouched&&a.$slideEl)){i.isMoved||(i.width=a.$imageEl[0].offsetWidth,i.height=a.$imageEl[0].offsetHeight,i.startX=m.getTranslate(a.$imageWrapEl[0],"x")||0,i.startY=m.getTranslate(a.$imageWrapEl[0],"y")||0,a.slideWidth=a.$slideEl[0].offsetWidth,a.slideHeight=a.$slideEl[0].offsetHeight,a.$imageWrapEl.transition(0),t.rtl&&(i.startX=-i.startX,i.startY=-i.startY));var s=i.width*n.scale,o=i.height*n.scale;if(!(s<a.slideWidth&&o<a.slideHeight)){if(i.minX=Math.min(a.slideWidth/2-s/2,0),i.maxX=-i.minX,i.minY=Math.min(a.slideHeight/2-o/2,0),i.maxY=-i.minY,i.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,i.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!i.isMoved&&!n.isScaling){if(t.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x))return void(i.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y))return void(i.isTouched=!1)}e.preventDefault(),e.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-Math.pow(i.minX-i.currentX+1,.8)),i.currentX>i.maxX&&(i.currentX=i.maxX-1+Math.pow(i.currentX-i.maxX+1,.8)),i.currentY<i.minY&&(i.currentY=i.minY+1-Math.pow(i.minY-i.currentY+1,.8)),i.currentY>i.maxY&&(i.currentY=i.maxY-1+Math.pow(i.currentY-i.maxY+1,.8)),r.prevPositionX||(r.prevPositionX=i.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=i.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(i.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(i.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(i.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0),Math.abs(i.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0),r.prevPositionX=i.touchesCurrent.x,r.prevPositionY=i.touchesCurrent.y,r.prevTime=Date.now(),a.$imageWrapEl.transform("translate3d(".concat(i.currentX,"px, ").concat(i.currentY,"px,0)"))}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,n=e.image,a=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var i=300,r=300,s=a.x*i,o=n.currentX+s,l=a.y*r,c=n.currentY+l;0!==a.x&&(i=Math.abs((o-n.currentX)/a.x)),0!==a.y&&(r=Math.abs((c-n.currentY)/a.y));var u=Math.max(i,r);n.currentX=o,n.currentY=c;var d=n.width*e.scale,p=n.height*e.scale;n.minX=Math.min(t.slideWidth/2-d/2,0),n.maxX=-n.minX,n.minY=Math.min(t.slideHeight/2-p/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),t.$imageWrapEl.transition(u).transform("translate3d(".concat(n.currentX,"px, ").concat(n.currentY,"px,0)"))}},onTransitionEnd:function(){var e=this,t=e.zoom,n=t.gesture;n.$slideEl&&e.previousIndex!==e.activeIndex&&(n.$imageEl.transform("translate3d(0,0,0) scale(1)"),n.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,n,a,i,r,s,o,l,u,d,p,f,h,v,m,g,b=this,w=b.zoom,y=b.params.zoom,E=w.gesture,x=w.image;(E.$slideEl||(E.$slideEl=b.clickedSlide?(0,c.$)(b.clickedSlide):b.slides.eq(b.activeIndex),E.$imageEl=E.$slideEl.find("img, svg, canvas"),E.$imageWrapEl=E.$imageEl.parent(".".concat(y.containerClass))),E.$imageEl&&0!==E.$imageEl.length)&&(E.$slideEl.addClass("".concat(y.zoomedSlideClass)),void 0===x.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,n="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=x.touchesStart.x,n=x.touchesStart.y),w.scale=E.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,w.currentScale=E.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,e?(m=E.$slideEl[0].offsetWidth,g=E.$slideEl[0].offsetHeight,a=E.$slideEl.offset().left+m/2-t,i=E.$slideEl.offset().top+g/2-n,o=E.$imageEl[0].offsetWidth,l=E.$imageEl[0].offsetHeight,u=o*w.scale,d=l*w.scale,h=-(p=Math.min(m/2-u/2,0)),v=-(f=Math.min(g/2-d/2,0)),(r=a*w.scale)<p&&(r=p),r>h&&(r=h),(s=i*w.scale)<f&&(s=f),s>v&&(s=v)):(r=0,s=0),E.$imageWrapEl.transition(300).transform("translate3d(".concat(r,"px, ").concat(s,"px,0)")),E.$imageEl.transition(300).transform("translate3d(0,0,0) scale(".concat(w.scale,")")))},out:function(){var e=this,t=e.zoom,n=e.params.zoom,a=t.gesture;a.$slideEl||(a.$slideEl=e.clickedSlide?(0,c.$)(e.clickedSlide):e.slides.eq(e.activeIndex),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent(".".concat(n.containerClass))),a.$imageEl&&0!==a.$imageEl.length&&(t.scale=1,t.currentScale=1,a.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),a.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),a.$slideEl.removeClass("".concat(n.zoomedSlideClass)),a.$slideEl=void 0)},enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var n=!("touchstart"!==e.touchEvents.start||!g.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};g.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),e.$wrapperEl.on(e.touchEvents.move,".".concat(e.params.zoom.containerClass),t.onTouchMove)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){e.zoom.enabled=!1;var n=!("touchstart"!==e.touchEvents.start||!g.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};g.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),e.$wrapperEl.off(e.touchEvents.move,".".concat(e.params.zoom.containerClass),t.onTouchMove)}}},J={loadInSlide:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,a=n.params.lazy;if(void 0!==e&&0!==n.slides.length){var i=n.virtual&&n.params.virtual.enabled,r=i?n.$wrapperEl.children(".".concat(n.params.slideClass,'[data-swiper-slide-index="').concat(e,'"]')):n.slides.eq(e),s=r.find(".".concat(a.elementClass,":not(.").concat(a.loadedClass,"):not(.").concat(a.loadingClass,")"));!r.hasClass(a.elementClass)||r.hasClass(a.loadedClass)||r.hasClass(a.loadingClass)||(s=s.add(r[0])),0!==s.length&&s.each((function(e,i){var s=(0,c.$)(i);s.addClass(a.loadingClass);var o=s.attr("data-background"),l=s.attr("data-src"),u=s.attr("data-srcset"),d=s.attr("data-sizes");n.loadImage(s[0],l||o,u,d,!1,(function(){if(null!=n&&n&&(!n||n.params)&&!n.destroyed){if(o?(s.css("background-image",'url("'.concat(o,'")')),s.removeAttr("data-background")):(u&&(s.attr("srcset",u),s.removeAttr("data-srcset")),d&&(s.attr("sizes",d),s.removeAttr("data-sizes")),l&&(s.attr("src",l),s.removeAttr("data-src"))),s.addClass(a.loadedClass).removeClass(a.loadingClass),r.find(".".concat(a.preloaderClass)).remove(),n.params.loop&&t){var e=r.attr("data-swiper-slide-index");if(r.hasClass(n.params.slideDuplicateClass)){var i=n.$wrapperEl.children('[data-swiper-slide-index="'.concat(e,'"]:not(.').concat(n.params.slideDuplicateClass,")"));n.lazy.loadInSlide(i.index(),!1)}else{var c=n.$wrapperEl.children(".".concat(n.params.slideDuplicateClass,'[data-swiper-slide-index="').concat(e,'"]'));n.lazy.loadInSlide(c.index(),!1)}}n.emit("lazyImageReady",r[0],s[0])}})),n.emit("lazyImageLoad",r[0],s[0])}))}},load:function(){var e=this,t=e.$wrapperEl,n=e.params,a=e.slides,i=e.activeIndex,r=e.virtual&&n.virtual.enabled,s=n.lazy,o=n.slidesPerView;function l(e){if(r){if(t.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]')).length)return!0}else if(a[e])return!0;return!1}function u(e){return r?(0,c.$)(e).attr("data-swiper-slide-index"):(0,c.$)(e).index()}if("auto"===o&&(o=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children(".".concat(n.slideVisibleClass)).each((function(t,n){var a=r?(0,c.$)(n).attr("data-swiper-slide-index"):(0,c.$)(n).index();e.lazy.loadInSlide(a)}));else if(o>1)for(var d=i;d<i+o;d+=1)l(d)&&e.lazy.loadInSlide(d);else e.lazy.loadInSlide(i);if(s.loadPrevNext)if(o>1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){for(var p=s.loadPrevNextAmount,f=o,h=Math.min(i+f+Math.max(p,f),a.length),v=Math.max(i-Math.max(f,p),0),m=i+o;m<h;m+=1)l(m)&&e.lazy.loadInSlide(m);for(var g=v;g<i;g+=1)l(g)&&e.lazy.loadInSlide(g)}else{var b=t.children(".".concat(n.slideNextClass));b.length>0&&e.lazy.loadInSlide(u(b));var w=t.children(".".concat(n.slidePrevClass));w.length>0&&e.lazy.loadInSlide(u(w))}}},ee={LinearSpline:function(e,t){var n,a,i,r,s,o=function(e,t){for(a=-1,n=e.length;n-a>1;)e[i=n+a>>1]<=t?a=i:n=i;return n};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(s=o(this.x,e),r=s-1,(e-this.x[r])*(this.y[s]-this.y[r])/(this.x[s]-this.x[r])+this.y[r]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new ee.LinearSpline(t.slidesGrid,e.slidesGrid):new ee.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){var n,a,i=this,r=i.controller.control;function s(e){var t=i.rtlTranslate?-i.translate:i.translate;"slide"===i.params.controller.by&&(i.controller.getInterpolateFunction(e),a=-i.controller.spline.interpolate(-t)),a&&"container"!==i.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(i.maxTranslate()-i.minTranslate()),a=(t-i.minTranslate())*n+e.minTranslate()),i.params.controller.inverse&&(a=e.maxTranslate()-a),e.updateProgress(a),e.setTranslate(a,i),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(r))for(var o=0;o<r.length;o+=1)r[o]!==t&&r[o]instanceof N&&s(r[o]);else r instanceof N&&t!==r&&s(r)},setTransition:function(e,t){var n,a=this,i=a.controller.control;function r(t){t.setTransition(e,a),0!==e&&(t.transitionStart(),t.params.autoHeight&&m.nextTick((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){i&&(t.params.loop&&"slide"===a.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(i))for(n=0;n<i.length;n+=1)i[n]!==t&&i[n]instanceof N&&r(i[n]);else i instanceof N&&t!==i&&r(i)}},te={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this,n=t.params.a11y;if(13===e.keyCode){var a=(0,c.$)(e.target);t.navigation&&t.navigation.$nextEl&&a.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(n.lastSlideMessage):t.a11y.notify(n.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&a.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(n.firstSlideMessage):t.a11y.notify(n.prevSlideMessage)),t.pagination&&a.is(".".concat(t.params.pagination.bulletClass))&&a[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop){var t=e.navigation,n=t.$nextEl,a=t.$prevEl;a&&a.length>0&&(e.isBeginning?e.a11y.disableEl(a):e.a11y.enableEl(a)),n&&n.length>0&&(e.isEnd?e.a11y.disableEl(n):e.a11y.enableEl(n))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(n,a){var i=(0,c.$)(a);e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,t.paginationBulletMessage.replace(/{{index}}/,i.index()+1))}))},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t,n,a=e.params.a11y;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(n=e.navigation.$prevEl),t&&(e.a11y.makeElFocusable(t),e.a11y.addElRole(t,"button"),e.a11y.addElLabel(t,a.nextSlideMessage),t.on("keydown",e.a11y.onEnterKey)),n&&(e.a11y.makeElFocusable(n),e.a11y.addElRole(n,"button"),e.a11y.addElLabel(n,a.prevSlideMessage),n.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown",".".concat(e.params.pagination.bulletClass),e.a11y.onEnterKey)},destroy:function(){var e,t,n=this;n.a11y.liveRegion&&n.a11y.liveRegion.length>0&&n.a11y.liveRegion.remove(),n.navigation&&n.navigation.$nextEl&&(e=n.navigation.$nextEl),n.navigation&&n.navigation.$prevEl&&(t=n.navigation.$prevEl),e&&e.off("keydown",n.a11y.onEnterKey),t&&t.off("keydown",n.a11y.onEnterKey),n.pagination&&n.params.pagination.clickable&&n.pagination.bullets&&n.pagination.bullets.length&&n.pagination.$el.off("keydown",".".concat(n.params.pagination.bulletClass),n.a11y.onEnterKey)}},ne={init:function(){var e=this;if(e.params.history){if(!u.u.history||!u.u.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var t=e.history;t.initialized=!0,t.paths=ne.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||u.u.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||u.u.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=ne.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=u.u.location.pathname.slice(1).split("/").filter((function(e){return""!==e})),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory:function(e,t){var n=this;if(n.history.initialized&&n.params.history.enabled){var a=n.slides.eq(t),i=ne.slugify(a.attr("data-history"));u.u.location.pathname.includes(e)||(i="".concat(e,"/").concat(i));var r=u.u.history.state;r&&r.value===i||(n.params.history.replaceState?u.u.history.replaceState({value:i},null,i):u.u.history.pushState({value:i},null,i))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,n){var a=this;if(t)for(var i=0,r=a.slides.length;i<r;i+=1){var s=a.slides.eq(i);if(ne.slugify(s.attr("data-history"))===t&&!s.hasClass(a.params.slideDuplicateClass)){var o=s.index();a.slideTo(o,e,n)}}else a.slideTo(0,e,n)}},ae={onHashCange:function(){var e=this,t=u.t.location.hash.replace("#","");if(t!==e.slides.eq(e.activeIndex).attr("data-hash")){var n=e.$wrapperEl.children(".".concat(e.params.slideClass,'[data-hash="').concat(t,'"]')).index();if(void 0===n)return;e.slideTo(n)}},setHash:function(){var e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&u.u.history&&u.u.history.replaceState)u.u.history.replaceState(null,null,"#".concat(e.slides.eq(e.activeIndex).attr("data-hash"))||0);else{var t=e.slides.eq(e.activeIndex),n=t.attr("data-hash")||t.attr("data-history");u.t.location.hash=n||""}},init:function(){var e=this;if(!(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)){e.hashNavigation.initialized=!0;var t=u.t.location.hash.replace("#","");if(t)for(var n=0,a=e.slides.length;n<a;n+=1){var i=e.slides.eq(n);if((i.attr("data-hash")||i.attr("data-history"))===t&&!i.hasClass(e.params.slideDuplicateClass)){var r=i.index();e.slideTo(r,0,e.params.runCallbacksOnInit,!0)}}e.params.hashNavigation.watchState&&(0,c.$)(u.u).on("hashchange",e.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&(0,c.$)(u.u).off("hashchange",this.hashNavigation.onHashCange)}},ie={run:function(){var e=this,t=e.slides.eq(e.activeIndex),n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=m.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))}),n)},start:function(){var e=this;return void 0===e.autoplay.timeout&&(!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0))},stop:function(){var e=this;return!!e.autoplay.running&&(void 0!==e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0))},pause:function(e){var t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))}},re={setTranslate:function(){for(var e=this,t=e.slides,n=0;n<t.length;n+=1){var a=e.slides.eq(n),i=-a[0].swiperSlideOffset;e.params.virtualTranslate||(i-=e.translate);var r=0;e.isHorizontal()||(r=i,i=0);var s=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(a[0].progress),0):1+Math.min(Math.max(a[0].progress,-1),0);a.css({opacity:s}).transform("translate3d(".concat(i,"px, ").concat(r,"px, 0px)"))}},setTransition:function(e){var t=this,n=t.slides,a=t.$wrapperEl;if(n.transition(e),t.params.virtualTranslate&&0!==e){var i=!1;n.transitionEnd((function(){if(!i&&t&&!t.destroyed){i=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)a.trigger(e[n])}}))}}},se={setTranslate:function(){var e,t=this,n=t.$el,a=t.$wrapperEl,i=t.slides,r=t.width,s=t.height,o=t.rtlTranslate,l=t.size,u=t.params.cubeEffect,d=t.isHorizontal(),p=t.virtual&&t.params.virtual.enabled,f=0;u.shadow&&(d?(0===(e=a.find(".swiper-cube-shadow")).length&&(e=(0,c.$)('<div class="swiper-cube-shadow"></div>'),a.append(e)),e.css({height:"".concat(r,"px")})):0===(e=n.find(".swiper-cube-shadow")).length&&(e=(0,c.$)('<div class="swiper-cube-shadow"></div>'),n.append(e)));for(var h=0;h<i.length;h+=1){var v=i.eq(h),m=h;p&&(m=parseInt(v.attr("data-swiper-slide-index"),10));var g=90*m,w=Math.floor(g/360);o&&(g=-g,w=Math.floor(-g/360));var y=Math.max(Math.min(v[0].progress,1),-1),E=0,x=0,S=0;m%4==0?(E=4*-w*l,S=0):(m-1)%4==0?(E=0,S=4*-w*l):(m-2)%4==0?(E=l+4*w*l,S=l):(m-3)%4==0&&(E=-l,S=3*l+4*l*w),o&&(E=-E),d||(x=E,E=0);var T="rotateX(".concat(d?0:-g,"deg) rotateY(").concat(d?g:0,"deg) translate3d(").concat(E,"px, ").concat(x,"px, ").concat(S,"px)");if(y<=1&&y>-1&&(f=90*m+90*y,o&&(f=90*-m-90*y)),v.transform(T),u.slideShadows){var C=d?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),k=d?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===C.length&&(C=(0,c.$)('<div class="swiper-slide-shadow-'.concat(d?"left":"top",'"></div>')),v.append(C)),0===k.length&&(k=(0,c.$)('<div class="swiper-slide-shadow-'.concat(d?"right":"bottom",'"></div>')),v.append(k)),C.length&&(C[0].style.opacity=Math.max(-y,0)),k.length&&(k[0].style.opacity=Math.max(y,0))}}if(a.css({"-webkit-transform-origin":"50% 50% -".concat(l/2,"px"),"-moz-transform-origin":"50% 50% -".concat(l/2,"px"),"-ms-transform-origin":"50% 50% -".concat(l/2,"px"),"transform-origin":"50% 50% -".concat(l/2,"px")}),u.shadow)if(d)e.transform("translate3d(0px, ".concat(r/2+u.shadowOffset,"px, ").concat(-r/2,"px) rotateX(90deg) rotateZ(0deg) scale(").concat(u.shadowScale,")"));else{var P=Math.abs(f)-90*Math.floor(Math.abs(f)/90),M=1.5-(Math.sin(2*P*Math.PI/360)/2+Math.cos(2*P*Math.PI/360)/2),I=u.shadowScale,z=u.shadowScale/M,$=u.shadowOffset;e.transform("scale3d(".concat(I,", 1, ").concat(z,") translate3d(0px, ").concat(s/2+$,"px, ").concat(-s/2/z,"px) rotateX(-90deg)"))}var O=b.isSafari||b.isUiWebView?-l/2:0;a.transform("translate3d(0px,0,".concat(O,"px) rotateX(").concat(t.isHorizontal()?0:f,"deg) rotateY(").concat(t.isHorizontal()?-f:0,"deg)"))},setTransition:function(e){var t=this,n=t.$el;t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&n.find(".swiper-cube-shadow").transition(e)}},oe={setTranslate:function(){for(var e=this,t=e.slides,n=e.rtlTranslate,a=0;a<t.length;a+=1){var i=t.eq(a),r=i[0].progress;e.params.flipEffect.limitRotation&&(r=Math.max(Math.min(i[0].progress,1),-1));var s=-180*r,o=0,l=-i[0].swiperSlideOffset,u=0;if(e.isHorizontal()?n&&(s=-s):(u=l,l=0,o=-s,s=0),i[0].style.zIndex=-Math.abs(Math.round(r))+t.length,e.params.flipEffect.slideShadows){var d=e.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),p=e.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===d.length&&(d=(0,c.$)('<div class="swiper-slide-shadow-'.concat(e.isHorizontal()?"left":"top",'"></div>')),i.append(d)),0===p.length&&(p=(0,c.$)('<div class="swiper-slide-shadow-'.concat(e.isHorizontal()?"right":"bottom",'"></div>')),i.append(p)),d.length&&(d[0].style.opacity=Math.max(-r,0)),p.length&&(p[0].style.opacity=Math.max(r,0))}i.transform("translate3d(".concat(l,"px, ").concat(u,"px, 0px) rotateX(").concat(o,"deg) rotateY(").concat(s,"deg)"))}},setTransition:function(e){var t=this,n=t.slides,a=t.activeIndex,i=t.$wrapperEl;if(n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var r=!1;n.eq(a).transitionEnd((function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)i.trigger(e[n])}}))}}},le={setTranslate:function(){for(var e=this,t=e.width,n=e.height,a=e.slides,i=e.$wrapperEl,r=e.slidesSizesGrid,s=e.params.coverflowEffect,o=e.isHorizontal(),l=e.translate,u=o?t/2-l:n/2-l,d=o?s.rotate:-s.rotate,p=s.depth,f=0,h=a.length;f<h;f+=1){var v=a.eq(f),m=r[f],b=(u-v[0].swiperSlideOffset-m/2)/m*s.modifier,w=o?d*b:0,y=o?0:d*b,E=-p*Math.abs(b),x=o?0:s.stretch*b,S=o?s.stretch*b:0;Math.abs(S)<.001&&(S=0),Math.abs(x)<.001&&(x=0),Math.abs(E)<.001&&(E=0),Math.abs(w)<.001&&(w=0),Math.abs(y)<.001&&(y=0);var T="translate3d(".concat(S,"px,").concat(x,"px,").concat(E,"px) rotateX(").concat(y,"deg) rotateY(").concat(w,"deg)");if(v.transform(T),v[0].style.zIndex=1-Math.abs(Math.round(b)),s.slideShadows){var C=o?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),k=o?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===C.length&&(C=(0,c.$)('<div class="swiper-slide-shadow-'.concat(o?"left":"top",'"></div>')),v.append(C)),0===k.length&&(k=(0,c.$)('<div class="swiper-slide-shadow-'.concat(o?"right":"bottom",'"></div>')),v.append(k)),C.length&&(C[0].style.opacity=b>0?b:0),k.length&&(k[0].style.opacity=-b>0?-b:0)}}(g.pointerEvents||g.prefixedPointerEvents)&&(i[0].style.perspectiveOrigin="".concat(u,"px 50%"))},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},ce={init:function(){var e=this,t=e.params.thumbs,n=e.constructor;t.swiper instanceof n?(e.thumbs.swiper=t.swiper,m.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),m.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):m.isObject(t.swiper)&&(e.thumbs.swiper=new n(m.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick:function(){var e=this,t=e.thumbs.swiper;if(t){var n=t.clickedIndex,a=t.clickedSlide;if(!(a&&(0,c.$)(a).hasClass(e.params.thumbs.slideThumbActiveClass)||null==n)){var i;if(i=t.params.loop?parseInt((0,c.$)(t.clickedSlide).attr("data-swiper-slide-index"),10):n,e.params.loop){var r=e.activeIndex;e.slides.eq(r).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,r=e.activeIndex);var s=e.slides.eq(r).prevAll('[data-swiper-slide-index="'.concat(i,'"]')).eq(0).index(),o=e.slides.eq(r).nextAll('[data-swiper-slide-index="'.concat(i,'"]')).eq(0).index();i=void 0===s?o:void 0===o?s:o-r<r-s?o:s}e.slideTo(i)}}},update:function(e){var t=this,n=t.thumbs.swiper;if(n){var a="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;if(t.realIndex!==n.realIndex){var i,r=n.activeIndex;if(n.params.loop){n.slides.eq(r).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,r=n.activeIndex);var s=n.slides.eq(r).prevAll('[data-swiper-slide-index="'.concat(t.realIndex,'"]')).eq(0).index(),o=n.slides.eq(r).nextAll('[data-swiper-slide-index="'.concat(t.realIndex,'"]')).eq(0).index();i=void 0===s?o:void 0===o?s:o-r==r-s?r:o-r<r-s?o:s}else i=t.realIndex;n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(i)<0&&(n.params.centeredSlides?i=i>r?i-Math.floor(a/2)+1:i+Math.floor(a/2)-1:i>r&&(i=i-a+1),n.slideTo(i,e?0:void 0))}var l=1,c=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(l=t.params.slidesPerView),n.slides.removeClass(c),n.params.loop||n.params.virtual)for(var u=0;u<l;u+=1)n.$wrapperEl.children('[data-swiper-slide-index="'.concat(t.realIndex+u,'"]')).addClass(c);else for(var d=0;d<l;d+=1)n.slides.eq(t.realIndex+d).addClass(c)}}},ue=[_,R,B,j,V,G,F,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;m.extend(e,{mousewheel:{enabled:!1,enable:Y.enable.bind(e),disable:Y.disable.bind(e),handle:Y.handle.bind(e),handleMouseEnter:Y.handleMouseEnter.bind(e),handleMouseLeave:Y.handleMouseLeave.bind(e),lastScrollTime:m.now()}})},on:{init:function(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var e=this;m.extend(e,{navigation:{init:q.init.bind(e),update:q.update.bind(e),destroy:q.destroy.bind(e),onNextClick:q.onNextClick.bind(e),onPrevClick:q.onPrevClick.bind(e)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t,n=this,a=n.navigation,i=a.$nextEl,r=a.$prevEl;!n.params.navigation.hideOnClick||(0,c.$)(e.target).is(r)||(0,c.$)(e.target).is(i)||(i?t=i.hasClass(n.params.navigation.hiddenClass):r&&(t=r.hasClass(n.params.navigation.hiddenClass)),!0===t?n.emit("navigationShow",n):n.emit("navigationHide",n),i&&i.toggleClass(n.params.navigation.hiddenClass),r&&r.toggleClass(n.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var e=this;m.extend(e,{pagination:{init:W.init.bind(e),render:W.render.bind(e),update:W.update.bind(e),destroy:W.destroy.bind(e),dynamicBulletIndex:0}})},on:{init:function(){var e=this;e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange:function(){var e=this;(e.params.loop||void 0===e.snapIndex)&&e.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){var e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange:function(){var e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){var t=this;t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!(0,c.$)(e.target).hasClass(t.params.pagination.bulletClass)&&(!0===t.pagination.$el.hasClass(t.params.pagination.hiddenClass)?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var e=this;m.extend(e,{scrollbar:{init:U.init.bind(e),destroy:U.destroy.bind(e),updateSize:U.updateSize.bind(e),setTranslate:U.setTranslate.bind(e),setTransition:U.setTransition.bind(e),enableDraggable:U.enableDraggable.bind(e),disableDraggable:U.disableDraggable.bind(e),setDragPosition:U.setDragPosition.bind(e),getPointerPosition:U.getPointerPosition.bind(e),onDragStart:U.onDragStart.bind(e),onDragMove:U.onDragMove.bind(e),onDragEnd:U.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){var e=this;e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;m.extend(e,{parallax:{setTransform:K.setTransform.bind(e),setTranslate:K.setTranslate.bind(e),setTransition:K.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(n){t[n]=Q[n].bind(e)})),m.extend(e,{zoom:t});var n=1;Object.defineProperty(e.zoom,"scale",{get:function(){return n},set:function(t){if(n!==t){var a=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,i=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,a,i)}n=t}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){var t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd:function(){var e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){var e=this;m.extend(e,{lazy:{initialImageLoaded:!1,load:J.load.bind(e),loadInSlide:J.loadInSlide.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init:function(){var e=this;e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&e.lazy.load()},scroll:function(){var e=this;e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){var e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd:function(){var e=this;e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;m.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:ee.getInterpolateFunction.bind(e),setTranslate:ee.setTranslate.bind(e),setTransition:ee.setTransition.bind(e)}})},on:{update:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate:function(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;m.extend(e,{a11y:{liveRegion:(0,c.$)('<span class="'.concat(e.params.a11y.notificationClass,'" aria-live="assertive" aria-atomic="true"></span>'))}}),Object.keys(te).forEach((function(t){e.a11y[t]=te[t].bind(e)}))},on:{init:function(){var e=this;e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;m.extend(e,{history:{init:ne.init.bind(e),setHistory:ne.setHistory.bind(e),setHistoryPopState:ne.setHistoryPopState.bind(e),scrollToSlide:ne.scrollToSlide.bind(e),destroy:ne.destroy.bind(e)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){var e=this;e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;m.extend(e,{hashNavigation:{initialized:!1,init:ae.init.bind(e),destroy:ae.destroy.bind(e),setHash:ae.setHash.bind(e),onHashCange:ae.onHashCange.bind(e)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;m.extend(e,{autoplay:{running:!1,paused:!1,run:ie.run.bind(e),start:ie.start.bind(e),stop:ie.stop.bind(e),pause:ie.pause.bind(e),onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(e,t){var n=this;n.autoplay.running&&(t||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(e):n.autoplay.stop())},sliderFirstMove:function(){var e=this;e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;m.extend(e,{fadeEffect:{setTranslate:re.setTranslate.bind(e),setTransition:re.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("fade"===e.params.effect){e.classNames.push("".concat(e.params.containerModifierClass,"fade"));var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};m.extend(e.params,t),m.extend(e.originalParams,t)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;m.extend(e,{cubeEffect:{setTranslate:se.setTranslate.bind(e),setTransition:se.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("cube"===e.params.effect){e.classNames.push("".concat(e.params.containerModifierClass,"cube")),e.classNames.push("".concat(e.params.containerModifierClass,"3d"));var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};m.extend(e.params,t),m.extend(e.originalParams,t)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;m.extend(e,{flipEffect:{setTranslate:oe.setTranslate.bind(e),setTransition:oe.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("flip"===e.params.effect){e.classNames.push("".concat(e.params.containerModifierClass,"flip")),e.classNames.push("".concat(e.params.containerModifierClass,"3d"));var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};m.extend(e.params,t),m.extend(e.originalParams,t)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var e=this;m.extend(e,{coverflowEffect:{setTranslate:le.setTranslate.bind(e),setTransition:le.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;"coverflow"===e.params.effect&&(e.classNames.push("".concat(e.params.containerModifierClass,"coverflow")),e.classNames.push("".concat(e.params.containerModifierClass,"3d")),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var e=this;m.extend(e,{thumbs:{swiper:null,init:ce.init.bind(e),update:ce.update.bind(e),onThumbClick:ce.onThumbClick.bind(e)}})},on:{beforeInit:function(){var e=this,t=e.params.thumbs;t&&t.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];void 0===N.use&&(N.use=N.Class.use,N.installModule=N.Class.installModule),N.use(ue),t.Z=N},3804:function(e){"use strict";e.exports=window.lodash},402:function(e){"use strict";e.exports=window.wp.a11y},7606:function(e){"use strict";e.exports=window.wp.apiFetch},6399:function(e){"use strict";e.exports=window.wp.blockEditor},9314:function(e){"use strict";e.exports=window.wp.blocks},7997:function(e){"use strict";e.exports=window.wp.components},1417:function(e){"use strict";e.exports=window.wp.compose},5707:function(e){"use strict";e.exports=window.wp.data},7947:function(e){"use strict";e.exports=window.wp.date},3027:function(e){"use strict";e.exports=window.wp.element},7950:function(e){"use strict";e.exports=window.wp.escapeHtml},5799:function(e){"use strict";e.exports=window.wp.hooks},1424:function(e){"use strict";e.exports=window.wp.htmlEntities},3163:function(e){"use strict";e.exports=window.wp.i18n},791:function(e){"use strict";e.exports=window.wp.url}},t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var r=t[a]={id:a,loaded:!1,exports:{}};return e[a](r,r.exports,n),r.loaded=!0,r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};!function(){"use strict";n.r(a);var e=n(9394),t=n(9314),i=n(5799),r=n(1136),s=n(9564);(0,i.addFilter)("blocks.transforms_from_name","set-transformed-block-name",(function(e){return"newspack-blocks/carousel"!==e?e:r.T})),(0,t.registerBlockType)(r.T,(0,e.Z)((0,e.Z)({},s.Xd),{},{category:"widgets"}))}(),window.EditingToolkit=a}();
|
1 |
+
!function(){var e={8177:function(e){"use strict";e.exports=JSON.parse('{"u2":"homepage-articles"}')},1357:function(e,t,n){"use strict";function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}n.d(t,{Z:function(){return a}})},8890:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(1357);function i(e){if(Array.isArray(e))return(0,a.Z)(e)}},3989:function(e,t,n){"use strict";function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return a}})},4659:function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return a}})},4730:function(e,t,n){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}n.d(t,{Z:function(){return i}})},9049:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(5630),i=n(733),r=n(591);function s(e){var t=(0,i.Z)();return function(){var n,i=(0,a.Z)(e);if(t){var s=(0,a.Z)(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return(0,r.Z)(this,n)}}},1119:function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return a}})},7560:function(e,t,n){"use strict";function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return a}})},5630:function(e,t,n){"use strict";function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,{Z:function(){return a}})},5663:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(4938);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,a.Z)(e,t)}},733:function(e,t,n){"use strict";function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return a}})},2733:function(e,t,n){"use strict";function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return a}})},3154:function(e,t,n){"use strict";function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return a}})},9394:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var a=n(1119);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},8283:function(e,t,n){"use strict";function a(e,t){if(null==e)return{};var n,a,i={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return a}})},591:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var a=n(929),i=n(3989);function r(e,t){if(t&&("object"===(0,a.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},4938:function(e,t,n){"use strict";function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return a}})},1766:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(8890),i=n(2733),r=n(237),s=n(3154);function o(e){return(0,a.Z)(e)||(0,i.Z)(e)||(0,r.Z)(e)||(0,s.Z)()}},929:function(e,t,n){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return a}})},237:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(1357);function i(e,t){if(e){if("string"==typeof e)return(0,a.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,a.Z)(e,t):void 0}}},6660:function(e,t,n){"use strict";n.d(t,{A:function(){return $},B:function(){return g},C:function(){return L},D:function(){return y},E:function(){return c},F:function(){return D},G:function(){return Z},J:function(){return N},N:function(){return Y},P:function(){return z},R:function(){return O},S:function(){return R},T:function(){return I},Y:function(){return X},a:function(){return A},b:function(){return _},d:function(){return B},e:function(){return M},f:function(){return V},g:function(){return H},h:function(){return j},i:function(){return b},j:function(){return C},k:function(){return o},l:function(){return T},m:function(){return w},o:function(){return f},p:function(){return u},q:function(){return m},r:function(){return p},s:function(){return S},t:function(){return l},u:function(){return d},v:function(){return k},y:function(){return x},z:function(){return E}});var a=n(3143),i=n(7560),r=n(3594),s=n(5295),o=function(e){return function(){return e}}(!0),l=function(){};var c=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var u=function(e,t){(0,i.Z)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))},d=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))};function p(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function f(e){var t=!1;return function(){t||(t=!0,e())}}var h=function(e){throw e},v=function(e){return{value:e,done:!0}};function m(e,t,n){void 0===t&&(t=h),void 0===n&&(n="iterator");var a={meta:{name:n},next:e,throw:t,return:v,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(a[Symbol.iterator]=function(){return a}),a}function g(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var b=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},w=function(e){return Array.apply(null,new Array(e))},y=function(e){return function(t){return e(Object.defineProperty(t,a.Nm,{value:!0}))}},E=function(e){return e===a.EO},x=function(e){return e===a.Wd},S=function(e){return E(e)||x(e)};function T(e,t){var n=Object.keys(e),a=n.length;var i,s=0,o=(0,r.IX)(e)?w(a):{},c={};return n.forEach((function(e){var n=function(n,r){i||(r||S(n)?(t.cancel(),t(n,r)):(o[e]=n,++s===a&&(i=!0,t(o))))};n.cancel=l,c[e]=n})),t.cancel=function(){i||(i=!0,n.forEach((function(e){return c[e].cancel()})))},c}function C(e){return{name:e.name||"anonymous",location:k(e)}}function k(e){return e[a.b_]}function P(e,t){void 0===e&&(e=10);var n=new Array(e),a=0,i=0,r=0,s=function(t){n[i]=t,i=(i+1)%e,a++},o=function(){if(0!=a){var t=n[r];return n[r]=null,a--,r=(r+1)%e,t}},l=function(){for(var e=[];a;)e.push(o());return e};return{isEmpty:function(){return 0==a},put:function(o){var c;if(a<e)s(o);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[i]=o,r=i=(i+1)%e;break;case 4:c=2*e,n=l(),a=n.length,i=n.length,r=0,n.length=c,e=c,s(o)}},take:o,flush:l}}var M=function(e){return P(e,4)},I="TAKE",z="PUT",$="ALL",O="RACE",L="CALL",A="CPS",D="FORK",N="JOIN",_="CANCEL",R="SELECT",B="ACTION_CHANNEL",V="CANCELLED",H="FLUSH",Z="GET_CONTEXT",j="SET_CONTEXT",G=function(e,t){var n;return(n={})[a.IO]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function X(e,t){return(0,r.sR)(t)&&(t=e,e=void 0),G(z,{channel:e,action:t})}function F(e,t){var n,a=null;return(0,r.Yl)(e)?n=e:((0,r.IX)(e)?(a=e[0],n=e[1]):(a=e.context,n=e.fn),a&&(0,r.Z_)(n)&&(0,r.Yl)(a[n])&&(n=a[n])),{context:a,fn:n,args:t}}function Y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return G(L,F(e,n))}s.Z},1260:function(e,t,n){"use strict";var a=n(3143),i=n(7560),r=n(8283),s=n(3594),o=n(6660),l=n(8717),c=n(1884),u=[],d=0;function p(e){try{v(),e()}finally{m()}}function f(e){u.push(e),d||(v(),g())}function h(e){try{return v(),e()}finally{g()}}function v(){d++}function m(){d--}function g(){var e;for(m();!d&&void 0!==(e=u.shift());)p(e)}var b=function(e){return function(t){return e.some((function(e){return S(e)(t)}))}},w=function(e){return function(t){return e(t)}},y=function(e){return function(t){return t.type===String(e)}},E=function(e){return function(t){return t.type===e}},x=function(){return o.k};function S(e){var t="*"===e?x:(0,s.Z_)(e)?y:(0,s.IX)(e)?b:(0,s.eR)(e)?y:(0,s.Yl)(e)?w:(0,s.NA)(e)?E:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var T={type:a.sZ},C=function(e){return e&&e.type===a.sZ};function k(e){void 0===e&&(e=(0,o.e)());var t=!1,n=[];return{take:function(a){t&&e.isEmpty()?a(T):e.isEmpty()?(n.push(a),a.cancel=function(){(0,o.r)(n,a)}):a(e.take())},put:function(a){if(!t){if(0===n.length)return e.put(a);n.shift()(a)}},flush:function(n){t&&e.isEmpty()?n(T):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var a=0,i=e.length;a<i;a++){(0,e[a])(T)}}}}}function P(){var e,t,n,i,r,s,l=(t=!1,i=n=[],r=function(){i===n&&(i=n.slice())},s=function(){t=!0;var e=n=i;i=[],e.forEach((function(e){e(T)}))},(e={})[a.AS]=!0,e.put=function(e){if(!t)if(C(e))s();else for(var r=n=i,o=0,l=r.length;o<l;o++){var c=r[o];c[a.uq](e)&&(c.cancel(),c(e))}},e.take=function(e,n){void 0===n&&(n=x),t?e(T):(e[a.uq]=n,r(),i.push(e),e.cancel=(0,o.o)((function(){r(),(0,o.r)(i,e)})))},e.close=s,e),c=l.put;return l.put=function(e){e[a.Nm]?c(e):f((function(){c(e)}))},l}function M(e,t){var n=e[a.n1];(0,s.Yl)(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var I,z=0,$=function(){return++z};function O(e){e.isRunning()&&e.cancel()}var L=((I={})[o.T]=function(e,t,n){var i=t.channel,r=void 0===i?e.channel:i,o=t.pattern,l=t.maybe,c=function(e){e instanceof Error?n(e,!0):!C(e)||l?n(e):n(a.EO)};try{r.take(c,(0,s.d5)(o)?S(o):null)}catch(u){return void n(u,!0)}n.cancel=c.cancel},I[o.P]=function(e,t,n){var a=t.channel,i=t.action,r=t.resolve;f((function(){var t;try{t=(a?a.put:e.dispatch)(i)}catch(o){return void n(o,!0)}r&&(0,s.MC)(t)?M(t,n):n(t)}))},I[o.A]=function(e,t,n,a){var i=a.digestEffect,r=z,l=Object.keys(t);if(0!==l.length){var c=(0,o.l)(t,n);l.forEach((function(e){i(t[e],r,c[e],e)}))}else n((0,s.IX)(t)?[]:{})},I[o.R]=function(e,t,n,a){var i=a.digestEffect,r=z,l=Object.keys(t),c=(0,s.IX)(t)?(0,o.m)(l.length):{},u={},d=!1;l.forEach((function(e){var t=function(t,a){d||(a||(0,o.s)(t)?(n.cancel(),n(t,a)):(n.cancel(),d=!0,c[e]=t,n(c)))};t.cancel=o.t,u[e]=t})),n.cancel=function(){d||(d=!0,l.forEach((function(e){return u[e].cancel()})))},l.forEach((function(e){d||i(t[e],r,u[e],e)}))},I[o.C]=function(e,t,n,a){var i=t.context,r=t.fn,l=t.args,c=a.task;try{var u=r.apply(i,l);if((0,s.MC)(u))return void M(u,n);if((0,s.hZ)(u))return void j(e,u,c.context,z,(0,o.j)(r),!1,n);n(u)}catch(d){n(d,!0)}},I[o.a]=function(e,t,n){var a=t.context,i=t.fn,r=t.args;try{var o=function(e,t){(0,s.sR)(e)?n(t):n(e,!0)};i.apply(a,r.concat(o)),o.cancel&&(n.cancel=o.cancel)}catch(l){n(l,!0)}},I[o.F]=function(e,t,n,a){var i=t.context,r=t.fn,l=t.args,c=t.detached,u=a.task,d=function(e){var t=e.context,n=e.fn,a=e.args;try{var i=n.apply(t,a);if((0,s.hZ)(i))return i;var r=!1;return(0,o.q)((function(e){return r?{value:e,done:!0}:(r=!0,{value:i,done:!(0,s.MC)(i)})}))}catch(l){return(0,o.q)((function(){throw l}))}}({context:i,fn:r,args:l}),p=function(e,t){return e.isSagaIterator?{name:e.meta.name}:(0,o.j)(t)}(d,r);h((function(){var t=j(e,d,u.context,z,p,c,void 0);c?n(t):t.isRunning()?(u.queue.addTask(t),n(t)):t.isAborted()?u.queue.abort(t.error()):n(t)}))},I[o.J]=function(e,t,n,a){var i=a.task,r=function(e,t){if(e.isRunning()){var n={task:i,cb:t};t.cancel=function(){e.isRunning()&&(0,o.r)(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if((0,s.IX)(t)){if(0===t.length)return void n([]);var l=(0,o.l)(t,n);t.forEach((function(e,t){r(e,l[t])}))}else r(t,n)},I[o.b]=function(e,t,n,i){var r=i.task;t===a.sC?O(r):(0,s.IX)(t)?t.forEach(O):O(t),n()},I[o.S]=function(e,t,n){var a=t.selector,i=t.args;try{n(a.apply(void 0,[e.getState()].concat(i)))}catch(r){n(r,!0)}},I[o.d]=function(e,t,n){var a=t.pattern,i=k(t.buffer),r=S(a),s=function t(n){C(n)||e.channel.take(t,r),i.put(n)},o=i.close;i.close=function(){s.cancel(),o()},e.channel.take(s,r),n(i)},I[o.f]=function(e,t,n,a){n(a.task.isCancelled())},I[o.g]=function(e,t,n){t.flush(n)},I[o.G]=function(e,t,n,a){n(a.task.context[t])},I[o.h]=function(e,t,n,a){var i=a.task;(0,o.p)(i.context,t),n()},I);function A(e,t){return e+"?"+t}function D(e){var t=e.name,n=e.location;return n?t+" "+A(n.fileName,n.lineNumber):t}function N(e){var t=(0,o.u)((function(e){return e.cancelledTasks}),e);return t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):""}var _=null,R=[],B=function(e){e.crashedEffect=_,R.push(e)},V=function(){_=null,R.length=0},H=function(){var e=R[0],t=R.slice(1),n=e.crashedEffect?function(e){var t=(0,o.v)(e);return t?t.code+" "+A(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+D(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+D(e.meta)})),[N(R)]).join("\n")};function Z(e,t,n,i,r,s,l){var u;void 0===l&&(l=o.t);var d,p,f=0,h=null,v=[],m=Object.create(n),g=function(e,t,n){var a,i=[],r=!1;function s(e){t(),c(),n(e,!0)}function l(t){i.push(t),t.cont=function(l,c){r||((0,o.r)(i,t),t.cont=o.t,c?s(l):(t===e&&(a=l),i.length||(r=!0,n(a))))}}function c(){r||(r=!0,i.forEach((function(e){e.cont=o.t,e.cancel()})),i=[])}return l(e),{addTask:l,cancelAll:c,abort:s,getTasks:function(){return i}}}(t,(function(){v.push.apply(v,g.getTasks().map((function(e){return e.meta.name})))}),b);function b(t,n){if(n){if(f=2,B({meta:r,cancelledTasks:v}),w.isRoot){var i=H();V(),e.onError(t,{sagaStack:i})}p=t,h&&h.reject(t)}else t===a.Wd?f=1:1!==f&&(f=3),d=t,h&&h.resolve(t);w.cont(t,n),w.joiners.forEach((function(e){e.cb(t,n)})),w.joiners=null}var w=((u={})[a.Cs]=!0,u.id=i,u.meta=r,u.isRoot=s,u.context=m,u.joiners=[],u.queue=g,u.cancel=function(){0===f&&(f=1,g.cancelAll(),b(a.Wd,!1))},u.cont=l,u.end=b,u.setContext=function(e){(0,o.p)(m,e)},u.toPromise=function(){return h||(h=(0,c.Z)(),2===f?h.reject(p):0!==f&&h.resolve(d)),h.promise},u.isRunning=function(){return 0===f},u.isCancelled=function(){return 1===f||0===f&&1===t.status},u.isAborted=function(){return 2===f},u.result=function(){return d},u.error=function(){return p},u);return w}function j(e,t,n,i,r,l,c){var u=e.finalizeRunEffect((function(t,n,i){if((0,s.MC)(t))M(t,i);else if((0,s.hZ)(t))j(e,t,p.context,n,r,!1,i);else if(t&&t[a.IO]){(0,L[t.type])(e,t.payload,i,f)}else i(t)}));h.cancel=o.t;var d={meta:r,cancel:function(){0===d.status&&(d.status=1,h(a.Wd))},status:0},p=Z(e,d,n,i,r,l,c),f={task:p,digestEffect:v};return c&&(c.cancel=p.cancel),h(),p;function h(e,n){try{var r;n?(r=t.throw(e),V()):(0,o.y)(e)?(d.status=1,h.cancel(),r=(0,s.Yl)(t.return)?t.return(a.Wd):{done:!0,value:a.Wd}):r=(0,o.z)(e)?(0,s.Yl)(t.return)?t.return():{done:!0}:t.next(e),r.done?(1!==d.status&&(d.status=3),d.cont(r.value)):v(r.value,i,h)}catch(l){if(1===d.status)throw l;d.status=2,d.cont(l,!0)}}function v(t,n,a,i){void 0===i&&(i="");var r,s=$();function l(n,i){r||(r=!0,a.cancel=o.t,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(s,n):e.sagaMonitor.effectResolved(s,n)),i&&function(e){_=e}(t),a(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:s,parentEffectId:n,label:i,effect:t}),l.cancel=o.t,a.cancel=function(){r||(r=!0,l.cancel(),l.cancel=o.t,e.sagaMonitor&&e.sagaMonitor.effectCancelled(s))},u(t,s,l)}}function G(e,t){var n=e.channel,a=void 0===n?P():n,i=e.dispatch,r=e.getState,s=e.context,c=void 0===s?{}:s,u=e.sagaMonitor,d=e.effectMiddlewares,p=e.onError,f=void 0===p?o.B:p;for(var v=arguments.length,m=new Array(v>2?v-2:0),g=2;g<v;g++)m[g-2]=arguments[g];var b=t.apply(void 0,m);var w,y=$();if(u&&(u.rootSagaStarted=u.rootSagaStarted||o.t,u.effectTriggered=u.effectTriggered||o.t,u.effectResolved=u.effectResolved||o.t,u.effectRejected=u.effectRejected||o.t,u.effectCancelled=u.effectCancelled||o.t,u.actionDispatched=u.actionDispatched||o.t,u.rootSagaStarted({effectId:y,saga:t,args:m})),d){var E=l.qC.apply(void 0,d);w=function(e){return function(t,n,a){return E((function(t){return e(t,n,a)}))(t)}}}else w=o.E;var x={channel:a,dispatch:(0,o.D)(i),getState:r,sagaMonitor:u,onError:f,finalizeRunEffect:w};return h((function(){var e=j(x,b,c,y,(0,o.j)(t),!0,void 0);return u&&u.effectResolved(y,e),e}))}t.ZP=function(e){var t,n=void 0===e?{}:e,a=n.context,s=void 0===a?{}:a,l=n.channel,c=void 0===l?P():l,u=n.sagaMonitor,d=(0,r.Z)(n,["context","channel","sagaMonitor"]);function p(e){var n=e.getState,a=e.dispatch;return t=G.bind(null,(0,i.Z)({},d,{context:s,channel:c,dispatch:a,getState:n,sagaMonitor:u})),function(e){return function(t){u&&u.actionDispatched&&u.actionDispatched(t);var n=e(t);return c.put(t),n}}}return p.run=function(){return t.apply(void 0,arguments)},p.setContext=function(e){(0,o.p)(s,e)},p}},5703:function(e,t,n){"use strict";n.d(t,{RE:function(){return a.N},gz:function(){return a.Y}});n(3594);var a=n(6660)},1884:function(e,t,n){"use strict";function a(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}t.Z=a},5295:function(e,t,n){"use strict";var a=n(3143);t.Z=function(e,t){var n;void 0===t&&(t=!0);var i=new Promise((function(a){n=setTimeout(a,e,t)}));return i[a.n1]=function(){clearTimeout(n)},i}},3594:function(e,t,n){"use strict";n.d(t,{IX:function(){return o},Yl:function(){return r},hZ:function(){return c},d5:function(){return i},MC:function(){return l},Z_:function(){return s},eR:function(){return u},NA:function(){return d},sR:function(){return a}});var a=function(e){return null==e},i=function(e){return null!=e},r=function(e){return"function"==typeof e},s=function(e){return"string"==typeof e},o=Array.isArray,l=function(e){return e&&r(e.then)},c=function(e){return e&&r(e.next)&&r(e.throw)},u=function(e){return r(e)&&e.hasOwnProperty("toString")},d=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype}},3143:function(e,t,n){"use strict";n.d(t,{n1:function(){return i},sZ:function(){return r},IO:function(){return s},uq:function(){return o},AS:function(){return l},Nm:function(){return c},b_:function(){return h},sC:function(){return u},Cs:function(){return d},Wd:function(){return p},EO:function(){return f}});var a=function(e){return"@@redux-saga/"+e},i=a("CANCEL_PROMISE"),r=a("CHANNEL_END"),s=a("IO"),o=a("MATCH"),l=a("MULTICAST"),c=a("SAGA_ACTION"),u=a("SELF_CANCELLATION"),d=a("TASK"),p=a("TASK_CANCEL"),f=a("TERMINATE"),h=a("LOCATION")},2779:function(e,t){var n;
|
2 |
/*!
|
3 |
Copyright (c) 2018 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
+
*/!function(){"use strict";var a={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var s=i.apply(null,n);s&&e.push(s)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var o in n)a.call(n,o)&&n[o]&&e.push(o);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},3709:function(){},9583:function(){},3536:function(){},2397:function(e,t,n){"use strict";var a=n(1260);t.ZP=a.ZP},608:function(e,t,n){"use strict";n.d(t,{RE:function(){return a.RE},gz:function(){return a.gz}});var a=n(5703)},8717:function(e,t,n){"use strict";n.d(t,{md:function(){return d},qC:function(){return u},MT:function(){return c}});var a=n(9394);function i(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var r="function"==typeof Symbol&&Symbol.observable||"@@observable",s=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};function l(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function c(e,t,n){var a;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(i(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(i(1));return n(c)(e,t)}if("function"!=typeof e)throw new Error(i(2));var s=e,u=t,d=[],p=d,f=!1;function h(){p===d&&(p=d.slice())}function v(){if(f)throw new Error(i(3));return u}function m(e){if("function"!=typeof e)throw new Error(i(4));if(f)throw new Error(i(5));var t=!0;return h(),p.push(e),function(){if(t){if(f)throw new Error(i(6));t=!1,h();var n=p.indexOf(e);p.splice(n,1),d=null}}}function g(e){if(!l(e))throw new Error(i(7));if(void 0===e.type)throw new Error(i(8));if(f)throw new Error(i(9));try{f=!0,u=s(u,e)}finally{f=!1}for(var t=d=p,n=0;n<t.length;n++){(0,t[n])()}return e}function b(e){if("function"!=typeof e)throw new Error(i(10));s=e,g({type:o.REPLACE})}function w(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(i(11));function n(){e.next&&e.next(v())}return n(),{unsubscribe:t(n)}}})[r]=function(){return this},e}return g({type:o.INIT}),(a={dispatch:g,subscribe:m,getState:v,replaceReducer:b})[r]=w,a}function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(i(15))},s={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(s)}));return r=u.apply(void 0,o)(n.dispatch),(0,a.Z)((0,a.Z)({},n),{},{dispatch:r})}}}},5913:function(e,t,n){"use strict";n.d(t,{u:function(){return i},t:function(){return a}});var a="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,i="undefined"==typeof window?{document:a,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window},1136:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var a="a8c/posts-carousel"},1188:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var a=n(402),i=n(7950),r=n(3163),s=n(9529),__=r.__,o="wp-block-newspack-blocks-carousel__autoplay-playing";function l(e,t){Array.prototype.forEach.call(e,t)}function c(e){e&&(e.setAttribute("aria-hidden","false"),l(e.querySelectorAll("a"),(function(e){return e.removeAttribute("tabindex")})))}function u(e){e&&(e.setAttribute("aria-hidden","true"),l(e.querySelectorAll("a"),(function(e){return e.setAttribute("tabindex","-1")})))}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=0<e.container.offsetWidth&&0<e.container.offsetHeight;if(!n)return!1;var d=new s.Z(e.container,{a11y:!1,autoplay:!!t.autoplay&&{delay:t.delay,disableOnInteraction:!1},effect:"slide",grabCursor:!0,init:!1,initialSlide:t.initialSlide||0,loop:!0,navigation:{nextEl:e.next,prevEl:e.prev},pagination:{bulletElement:"button",clickable:!0,el:e.pagination,type:"bullets",renderBullet:function(e,t){return'<button class="'.concat(t,'"><span>').concat((0,r.sprintf)(__("Slide %s","newspack-blocks"),e+1),"</span></button>")}},preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,slidesPerView:t.slidesPerView,spaceBetween:16,touchStartPreventDefault:!1,breakpoints:{600:{slidesPerView:t.slidesPerView>1?2:1}},on:{init:function(){l(this.wrapperEl.querySelectorAll(".swiper-slide"),(function(e){return u(e)})),c(this.slides[this.activeIndex])},slideChange:function(){var e=this.slides[this.activeIndex];if(u(this.slides[this.previousIndex]),c(e),!this.autoplay.running){var t=e.querySelector("img"),n=!!t&&(null==t?void 0:t.alt),s=(0,r.sprintf)(__("Slide %s of %s","newspack-blocks"),this.realIndex+1,this.pagination.bullets.length);(0,a.speak)((0,i.escapeHTML)("".concat(e.innerText,",\n\t\t\t\t\t\t\t").concat(n?(0,r.sprintf)(__("Image: %s, ","newspack-blocks"),n):"","\n\t\t\t\t\t\t\t").concat(s)),"assertive")}}}});function p(){var e=t.aspectRatio;Array.from(this.slides).forEach((function(t){t.style.height="".concat(t.clientWidth*e,"px")}))}if(d.on("imagesReady",p),d.on("resize",p),t.autoplay){function t(){d.autoplay.stop(),e.play.focus()}function n(){d.autoplay.start(),e.pause.focus()}d.on("init",(function(){e.play.addEventListener("click",n),e.pause.addEventListener("click",t)})),d.on("autoplayStart",(function(){e.block.classList.add(o),(0,a.speak)(__("Playing","newspack-blocks"),"assertive")})),d.on("autoplayStop",(function(){e.block.classList.remove(o),(0,a.speak)(__("Paused","newspack-blocks"),"assertive")})),d.on("beforeDestroy",(function(){e.play.removeEventListener("click",n),e.pause.removeEventListener("click",t)}))}return d.init(),d}},1787:function(e,t,n){"use strict";var a=n(1766),i=n(4659),r=n(4730),s=n(5663),o=n(9049),l=n(3027),c=n(3804),u=n(2779),d=n.n(u),p=n(3163),f=n(6399),h=n(7947),v=n(7997),m=n(5707),g=n(1417),b=n(1424),w=n(5113),y=n(1188),E=n(904),x=n(8328),__=p.__,S=function(e){(0,s.Z)(n,e);var t=(0,o.Z)(n);function n(e){var a;return(0,i.Z)(this,n),(a=t.call(this,e)).btnPlayRef=(0,l.createRef)(),a.btnPauseRef=(0,l.createRef)(),a.btnNextRef=(0,l.createRef)(),a.btnPrevRef=(0,l.createRef)(),a.carouselRef=(0,l.createRef)(),a.paginationRef=(0,l.createRef)(),a.state={swiperInitialized:!1},a}return(0,r.Z)(n,[{key:"componentDidMount",value:function(){this.initializeSwiper(0),this.props.triggerReflow()}},{key:"componentDidUpdate",value:function(e){if(!(0<this.carouselRef.current.offsetWidth&&0<this.carouselRef.current.offsetHeight))return!1;if(!this.state.swiperInitialized)return this.initializeSwiper(0);(0,x.Ou)(e,this.props)&&this.props.triggerReflow();var t=this.props,n=t.attributes,a=t.latestPosts;if(!(0,c.isEqual)(e.latestPosts,a)||!(0,c.isEqual)(e.attributes,n)){var i=0;this.swiperInstance&&(a&&this.swiperInstance.realIndex<a.length&&(i=this.swiperInstance.realIndex),this.swiperInstance.destroy(!0,!0)),this.initializeSwiper(i)}}},{key:"componentWillUnmount",value:function(){this.props.triggerReflow()}},{key:"initializeSwiper",value:function(e){var t=this.props.latestPosts;if(t&&t.length){var n=this.props.attributes,a=n.aspectRatio,i=n.autoplay,r=n.delay,s=n.slidesPerView,o=(0,y.Z)({block:this.carouselRef.current,container:this.carouselRef.current,next:this.btnNextRef.current,prev:this.btnPrevRef.current,play:this.btnPlayRef.current,pause:this.btnPauseRef.current,pagination:this.paginationRef.current},{aspectRatio:a,autoplay:i,delay:1e3*r,initialSlide:e,slidesPerView:s<=t.length?s:t.length});o&&(this.swiperInstance=o,this.setState({swiperInitialized:!0}))}}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.availablePostTypes,i=e.className,r=e.setAttributes,s=e.latestPosts,o=e.isUIDisabled,c=t.aspectRatio,u=t.authors,p=t.autoplay,m=t.categories,g=t.delay,y=t.hideControls,x=t.imageFit,S=t.postsToShow,T=t.postType,C=t.showCategory,k=t.showDate,P=t.showAuthor,M=t.showAvatar,I=t.showTitle,z=t.slidesPerView,$=t.specificMode,O=t.specificPosts,L=t.tags,A=d()(i,"wp-block-newspack-blocks-carousel","swiper-container",{"wp-block-newspack-blocks-carousel__autoplay-playing":p,"newspack-block--disabled":o,"hide-controls":y}),D=(0,h.__experimentalGetSettings)().formats.date,N=s&&!s.length,_=s&&1===s.length,R=s?Math.min(S,s.length):S,B=[{value:1,label:__("Square","newspack-blocks"),shortName:__("1:1","newspack-blocks")},{value:.75,label:__("4:3","newspack-blocks"),shortName:__("4:3","newspack-blocks")},{value:.5625,label:__("16:9","newspack-blocks"),shortName:__("16:9","newspack-blocks")},{value:4/3,label:__("3:4","newspack-blocks"),shortName:__("3:4","newspack-blocks")},{value:16/9,label:__("9:16","newspack-blocks"),shortName:__("9:16","newspack-blocks")}];return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:A,ref:this.carouselRef},N&&(0,l.createElement)(v.Placeholder,{className:"component-placeholder__align-center"},(0,l.createElement)("div",{style:{margin:"auto"}},__("Sorry, no posts were found."))),!s&&(0,l.createElement)(v.Placeholder,{icon:(0,l.createElement)(v.Spinner,null),className:"component-placeholder__align-center"}),s&&(0,l.createElement)(l.Fragment,null,p&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("button",{className:"amp-carousel-button-pause amp-carousel-button",ref:this.btnPauseRef}),(0,l.createElement)("button",{className:"amp-carousel-button-play amp-carousel-button",ref:this.btnPlayRef})),(0,l.createElement)("div",{className:"swiper-wrapper"},s.map((function(e){return(0,l.createElement)("article",{className:"post-has-image swiper-slide ".concat(e.post_type," ").concat(e.newspack_article_classes||""),key:e.id},(0,l.createElement)("figure",{className:"post-thumbnail"},(0,l.createElement)("a",{href:"#",rel:"bookmark"},e.newspack_featured_image_src?(0,l.createElement)("img",{className:"image-fit-".concat(x),src:e.newspack_featured_image_src.large,alt:""}):(0,l.createElement)("div",{className:"wp-block-newspack-blocks-carousel__placeholder"}))),(e.newspack_post_sponsors||C||I||P||k)&&(0,l.createElement)("div",{className:"entry-wrapper"},e.newspack_post_sponsors&&(0,l.createElement)("span",{className:"cat-links sponsor-label"},(0,l.createElement)("span",{className:"flag"},e.newspack_post_sponsors[0].flag)),C&&e.newspack_category_info.length&&!e.newspack_post_sponsors&&(0,l.createElement)("div",{className:"cat-links"},(0,l.createElement)("a",{href:"#"},(0,b.decodeEntities)(e.newspack_category_info))),I&&(0,l.createElement)("h3",{className:"entry-title"},(0,l.createElement)("a",{href:"#"},(0,b.decodeEntities)(e.title.rendered.trim()))),(0,l.createElement)("div",{className:"entry-meta"},e.newspack_post_sponsors&&(0,E.b2)(e.newspack_post_sponsors),e.newspack_post_sponsors&&(0,E.Q$)(e.newspack_post_sponsors),P&&M&&!e.newspack_post_sponsors&&(0,E.lW)(e.newspack_author_info),P&&!e.newspack_post_sponsors&&(0,E.FX)(e.newspack_author_info),k&&(0,l.createElement)("time",{className:"entry-date published",key:"pub-date"},(0,h.dateI18n)(D,e.date_gmt)))))}))),!N&&!_&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("button",{className:"amp-carousel-button amp-carousel-button-prev swiper-button-prev",ref:this.btnPrevRef}),(0,l.createElement)("button",{className:"amp-carousel-button amp-carousel-button-next swiper-button-next",ref:this.btnNextRef}),(0,l.createElement)("div",{className:"swiper-pagination-bullets amp-pagination",ref:this.paginationRef})))),(0,l.createElement)(f.InspectorControls,null,(0,l.createElement)(v.PanelBody,{title:__("Display Settings"),initialOpen:!0},S&&(0,l.createElement)(w.Z,{numberOfItems:S,onNumberOfItemsChange:function(e){return r({postsToShow:e||1})},authors:u,onAuthorsChange:function(e){return r({authors:e})},categories:m,onCategoriesChange:function(e){return r({categories:e})},tags:L,onTagsChange:function(e){return r({tags:e})},specificMode:$,onSpecificModeChange:function(e){return r({specificMode:e})},specificPosts:O,onSpecificPostsChange:function(e){return r({specificPosts:e})},postType:T})),(0,l.createElement)(v.PanelBody,{title:__("Slideshow Settings"),initialOpen:!0},(0,l.createElement)(v.BaseControl,{label:__("Slide Aspect Ratio","newspack-blocks"),help:__("All slides will share the same aspect ratio, for consistency.","newspack-popups"),id:"newspack-blocks__aspect-ratio-control"},(0,l.createElement)(v.PanelRow,null,(0,l.createElement)(v.ButtonGroup,{id:"newspack-blocks__aspect-ratio-control-buttons","aria-label":__("Slide Aspect Ratio","newspack-blocks")},B.map((function(e){var t=c===e.value;return(0,l.createElement)(v.Button,{isLarge:!0,isPrimary:t,"aria-pressed":t,"aria-label":e.label,key:e.value,onClick:function(){return r({aspectRatio:e.value})}},e.shortName)}))))),(0,l.createElement)(v.BaseControl,{label:__("Image Fit","newspack-blocks"),help:__("cover"===x?"The image will fill the entire slide and will be cropped if necessary.":"The image will be resized to fit inside the slide without being cropped.","newspack-popups"),id:"newspack-blocks__blocks__image-fit-control"},(0,l.createElement)(v.PanelRow,null,(0,l.createElement)(v.ButtonGroup,{id:"newspack-blocks__image-fit-buttons","aria-label":__("Image Fit","newspack-blocks")},(0,l.createElement)(v.Button,{isLarge:!0,isPrimary:"cover"===x,"aria-pressed":"cover"===x,"aria-label":__("Cover","newspack-blocks"),onClick:function(){return r({imageFit:"cover"})}},__("Cover","newspack-blocks")),(0,l.createElement)(v.Button,{isLarge:!0,isPrimary:"contain"===x,"aria-pressed":"contain"===x,"aria-label":__("Contain","newspack-blocks"),onClick:function(){return r({imageFit:"contain"})}},__("Contain","newspack-blocks"))))),(0,l.createElement)(v.ToggleControl,{label:__("Hide Controls"),help:__("Hide the slideshow UI. Useful when used with Autoplay."),checked:y,onChange:function(e){r({hideControls:e})}}),(0,l.createElement)(v.ToggleControl,{label:__("Autoplay"),help:__("Autoplay between slides"),checked:p,onChange:function(e){r({autoplay:e})}}),p&&(0,l.createElement)(v.RangeControl,{label:__("Delay between transitions (in seconds)"),value:g,onChange:function(e){r({delay:e})},min:1,max:20}),s&&1<s.length&&(0,l.createElement)(v.RangeControl,{label:__("Number of slides to show at once"),value:z<=s.length?z:s.length,onChange:function(e){r({slidesPerView:e})},min:1,max:$?Math.min(6,s.length):Math.min(6,R)})),(0,l.createElement)(v.PanelBody,{title:__("Article Meta Settings","newspack-blocks")},(0,l.createElement)(v.PanelRow,null,(0,l.createElement)(v.ToggleControl,{label:__("Show Title","newspack-blocks"),checked:I,onChange:function(){return r({showTitle:!I})}})),(0,l.createElement)(v.PanelRow,null,(0,l.createElement)(v.ToggleControl,{label:__("Show Date","newspack-blocks"),checked:k,onChange:function(){return r({showDate:!k})}})),(0,l.createElement)(v.PanelRow,null,(0,l.createElement)(v.ToggleControl,{label:__("Show Category","newspack-blocks"),checked:C,onChange:function(){return r({showCategory:!C})}})),(0,l.createElement)(v.PanelRow,null,(0,l.createElement)(v.ToggleControl,{label:__("Show Author","newspack-blocks"),checked:P,onChange:function(){return r({showAuthor:!P})}})),P&&(0,l.createElement)(v.PanelRow,null,(0,l.createElement)(v.ToggleControl,{label:__("Show Author Avatar","newspack-blocks"),checked:M,onChange:function(){return r({showAvatar:!M})}}))),(0,l.createElement)(v.PanelBody,{title:__("Post Types","newspack-blocks")},n&&n.map((function(e){var t=e.name,n=e.slug;return(0,l.createElement)(v.PanelRow,{key:n},(0,l.createElement)(v.CheckboxControl,{label:t,checked:T.indexOf(n)>-1,onChange:function(e){var t=(0,a.Z)(new Set(T));e&&-1===t.indexOf(n)?t.push(n):!e&&t.indexOf(n)>-1&&t.splice(t.indexOf(n),1),r({postType:t})}}))})))))}}]),n}(l.Component);t.Z=(0,g.compose)([(0,m.withSelect)(x.b9),(0,m.withDispatch)(x.eL)])(S)},9564:function(e,t,n){"use strict";n.d(t,{Xd:function(){return o}});var a=n(3027),i=n(7997),r=n(3163),s=n(1787),__=(n(9583),n(3709),r.__),o={title:__("Post Carousel"),icon:{src:(0,a.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,a.createElement)(i.Path,{clipRule:"evenodd",d:"M7 18V6a2 2 0 012-2h6a2 2 0 012 2v12a2 2 0 01-2 2H9a2 2 0 01-2-2zM8.5 6v12a.5.5 0 00.5.5h6a.5.5 0 00.5-.5V6a.5.5 0 00-.5-.5H9a.5.5 0 00-.5.5z",fillRule:"evenodd"}),(0,a.createElement)(i.Path,{d:"M4 18.5v-13h1.5v13zM18.5 5.5v13H20v-13z"})),foreground:"#36f"},category:"newspack",keywords:[__("posts"),__("slideshow"),__("carousel")],description:__("A carousel of posts."),attributes:{className:{type:"string"},imageFit:{type:"string",default:"cover"},autoplay:{type:"boolean",default:!1},delay:{type:"number",default:5},postsToShow:{type:"integer",default:3},authors:{type:"array"},categories:{type:"array"},tags:{type:"array"},showDate:{type:"boolean",default:!0},showAuthor:{type:"boolean",default:!0},showAvatar:{type:"boolean",default:!0},showCategory:{type:"boolean",default:!1},showTitle:{type:"boolean",default:!0},postType:{type:"array",default:["post"],items:{type:"string"}},specificMode:{type:"boolean",default:!1},specificPosts:{type:"array",default:[],items:{type:"integer"}},slidesPerView:{type:"number",default:1},hideControls:{type:"boolean",default:!1},aspectRatio:{type:"number",default:.75}},supports:{html:!1,align:["center","wide","full"]},edit:s.Z,save:function(){return null}}},9707:function(e,t,n){"use strict";n.d(t,{$:function(){return c}});var a=n(9394),i=n(8717),r=(n(608),n(2397)),s=n(3804),o=(n(5707),n(7606),n(791),n(8177)),l=(n(8328),o.u2),c="newspack-blocks/".concat(l),u={postsByBlock:{},errorsByBlock:{}},d={reflow:function(){h.dispatch({type:"REFLOW"})}},p={getPosts:function(e){var t=e.clientId;return h.getState().postsByBlock[t]},getError:function(e){var t=e.clientId;return h.getState().errorsByBlock[t]},isUIDisabled:function(){return h.getState().isUIDisabled}},f=(0,r.ZP)(),h=(0,i.MT)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISABLE_UI":return(0,s.set)(e,"isUIDisabled",!0);case"ENABLE_UI":return(0,s.set)(e,"isUIDisabled",!1);case"UPDATE_BLOCK_POSTS":return(0,s.set)(e,["postsByBlock",t.clientId],t.posts);case"UPDATE_BLOCK_ERROR":return(0,s.set)(e,["errorsByBlock",t.clientId],t.error)}return e}),(0,i.md)(f));(0,a.Z)({getSelectors:function(){return p},getActions:function(){return d}},h),JSON.stringify},8328:function(e,t,n){"use strict";n.d(t,{Ou:function(){return o},b9:function(){return d},eL:function(){return p}});var a=n(3804),i=n(3163),r=n(9707),__=i.__,s=["postsToShow","authors","categories","excerptLength","tags","showExcerpt","specificPosts","specificMode","tagExclusions","categoryExclusions","postType"],o=function(e,t){return!(0,a.isEqual)((0,a.pick)(e.attributes,s),(0,a.pick)(t.attributes,s))||!(0,a.isEqual)(e.topBlocksClientIdsInOrder,t.topBlocksClientIdsInOrder)},l=function e(t){return t.flatMap((function(t){var n=[];return n.push(t.clientId),n.concat(e(t.innerBlocks))}))},c=window.newspack_blocks_data.assets_path,u=function(e){var t=new Date;return t.setHours(12,0,0,0),{author:1,content:{rendered:"<p>"+__("The post content.","newspack")+"</p>"},date_gmt:t.toISOString(),excerpt:{rendered:"<p>"+__("The post excerpt.","newspack")+"</p>"},featured_media:"1",id:e,meta:{newspack_post_subtitle:__("Post Subtitle","newspack")},title:{rendered:__("Post Title","newspack")},newspack_article_classes:"type-post",newspack_author_info:[{display_name:__("Author Name","newspack"),avatar:'<div style="background: #36f;width: 40px;height: 40px;display: block;overflow: hidden;border-radius: 50%; max-width: 100%; max-height: 100%;"></div>',id:1,author_link:"/"}],newspack_category_info:__("Category","newspack"),newspack_featured_image_caption:__("Featured image caption","newspack"),newspack_featured_image_src:{large:"".concat(c,"/newspack-1024x536.jpg"),landscape:"".concat(c,"/newspack-800x600.jpg"),portrait:"".concat(c,"/newspack-600x800.jpg"),square:"".concat(c,"/newspack-800x800.jpg"),uncropped:"".concat(c,"/newspack-1024x536.jpg")},newspack_has_custom_excerpt:!1,newspack_post_format:"standard",newspack_post_sponsors:!1}},d=function(e,t){var n,i=t.clientId,s=t.attributes,o=e("core").getPostTypes,c=e("core/editor").getEditorBlocks,d=e("core/block-editor").getBlocks,p=l(c()).indexOf(i)>=0,f=e(r.$),h=f.getPosts,v=f.getError,m={isEditorBlock:p,isUIDisabled:(0,f.isUIDisabled)(),error:v({clientId:i}),topBlocksClientIdsInOrder:d().map((function(e){return e.clientId})),availablePostTypes:null===(n=o({per_page:-1}))||void 0===n?void 0:n.filter((function(e){return e.supports.newspack_blocks}))};return m.latestPosts=p?h({clientId:i}):function(e){return(0,a.times)(e.postsToShow,u)}(s),m},p=function(e,t){return{triggerReflow:t.isEditorBlock?e(r.$).reflow:function(){}}}},7045:function(e,t,n){"use strict";var a=n(1766),i=n(4659),r=n(4730),s=n(3989),o=n(5663),l=n(9049),c=n(1119),u=n(3027),d=n(3804),p=n(7997),f=(n(3536),function(e){(0,o.Z)(n,e);var t=(0,l.Z)(n);function n(e){var a;return(0,i.Z)(this,n),a=t.call(this,e),(0,c.Z)((0,s.Z)(a),"isFetchingInfoOnLoad",(function(){var e=a.props,t=e.tokens,n=e.fetchSavedInfo;return Boolean(t.length&&n)})),a.state={suggestions:[],validValues:{},loading:a.isFetchingInfoOnLoad()},a.debouncedUpdateSuggestions=(0,d.debounce)(a.updateSuggestions,500),a}return(0,r.Z)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.isFetchingInfoOnLoad()){var t=this.props,n=t.tokens;(0,t.fetchSavedInfo)(n).then((function(t){var n=e.state.validValues;t.forEach((function(e){n[e.value]=e.label})),e.setState({validValues:n,loading:!1})}))}}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest,this.debouncedUpdateSuggestions.cancel()}},{key:"getLabelsForValues",value:function(e){var t=this.state.validValues;return e.reduce((function(e,n){return t[n]?[].concat((0,a.Z)(e),[t[n]]):e}),[])}},{key:"getValuesForLabels",value:function(e){var t=this.state.validValues;return e.map((function(e){return Object.keys(t).find((function(n){return t[n]===e}))}))}},{key:"updateSuggestions",value:function(e){var t=this,n=this.props.fetchSuggestions;n&&this.setState({loading:!0},(function(){var a=n(e);a.then((function(e){if(t.suggestionsRequest===a){var n=t.state.validValues,i=[];e.forEach((function(e){var t=e.label.trim();i.indexOf(t)>=0&&(e.label="".concat(t," (").concat(e.value,")")),i.push(t),n[e.value]=t})),t.setState({suggestions:i,validValues:n,loading:!1})}})).catch((function(){t.suggestionsRequest===a&&t.setState({loading:!1})})),t.suggestionsRequest=a}))}},{key:"handleOnChange",value:function(e){(0,this.props.onChange)(this.getValuesForLabels(e))}},{key:"getTokens",value:function(){var e=this.props.tokens;return this.getLabelsForValues(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.help,a=t.label,i=void 0===a?"":a,r=this.state,s=r.suggestions,o=r.loading;return(0,u.createElement)("div",{className:"autocomplete-tokenfield"},(0,u.createElement)(p.FormTokenField,{value:this.getTokens(),suggestions:s,onChange:function(t){return e.handleOnChange(t)},onInputChange:function(t){return e.debouncedUpdateSuggestions(t)},label:i}),o&&(0,u.createElement)(p.Spinner,null),n&&(0,u.createElement)("p",{className:"autocomplete-tokenfield__help"},n))}}]),n}(u.Component));t.Z=f},5113:function(e,t,n){"use strict";var a=n(7560),i=n(4659),r=n(3989),s=n(5663),o=n(9049),l=n(1119),c=n(3027),u=n(3163),d=n(7997),p=n(7606),f=n.n(p),h=n(791),v=n(1424),m=n(7045),__=u.__,g=function(e){return(0,v.decodeEntities)(e.name)||__("(no title)","newspack-blocks")},b=function(e){(0,s.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var s=arguments.length,o=new Array(s),u=0;u<s;u++)o[u]=arguments[u];return e=t.call.apply(t,[this].concat(o)),(0,l.Z)((0,r.Z)(e),"state",{showAdvancedFilters:!1}),(0,l.Z)((0,r.Z)(e),"fetchPostSuggestions",(function(t){var n=e.props.postType,a=window.newspack_blocks_data.specific_posts_rest_url;return f()({url:(0,h.addQueryArgs)(a,{search:t,per_page:20,_fields:"id,title",type:"post",post_type:n})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,v.decodeEntities)(e.title)||__("(no title)","newspack-blocks")}}))}))})),(0,l.Z)((0,r.Z)(e),"fetchSavedPosts",(function(e){return f()({path:(0,h.addQueryArgs)("/wp/v2/posts",{per_page:100,include:e.join(","),_fields:"id,title"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,v.decodeEntities)(e.title.rendered)||__("(no title)","newspack-blocks")}}))}))})),(0,l.Z)((0,r.Z)(e),"fetchAuthorSuggestions",(function(e){return f()({path:(0,h.addQueryArgs)("/wp/v2/users",{search:e,per_page:20,_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,v.decodeEntities)(e.name)||__("(no name)","newspack-blocks")}}))}))})),(0,l.Z)((0,r.Z)(e),"fetchSavedAuthors",(function(e){return f()({path:(0,h.addQueryArgs)("/wp/v2/users",{per_page:100,include:e.join(","),_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,v.decodeEntities)(e.name)||__("(no name)","newspack-blocks")}}))}))})),(0,l.Z)((0,r.Z)(e),"fetchCategorySuggestions",(function(e){return f()({path:(0,h.addQueryArgs)("/wp/v2/categories",{search:e,per_page:20,_fields:"id,name,parent",orderby:"count",order:"desc"})}).then((function(e){return Promise.all(e.map((function(e){return e.parent>0?f()({path:(0,h.addQueryArgs)("/wp/v2/categories/".concat(e.parent),{_fields:"name"})}).then((function(t){return{value:e.id,label:"".concat(g(e)," – ").concat(g(t))}})):Promise.resolve({value:e.id,label:g(e)})})))}))})),(0,l.Z)((0,r.Z)(e),"fetchSavedCategories",(function(e){return f()({path:(0,h.addQueryArgs)("/wp/v2/categories",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,v.decodeEntities)(e.name)||__("(no title)","newspack-blocks")}}))}))})),(0,l.Z)((0,r.Z)(e),"fetchTagSuggestions",(function(e){return f()({path:(0,h.addQueryArgs)("/wp/v2/tags",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,v.decodeEntities)(e.name)||__("(no title)","newspack-blocks")}}))}))})),(0,l.Z)((0,r.Z)(e),"fetchSavedTags",(function(e){return f()({path:(0,h.addQueryArgs)("/wp/v2/tags",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,v.decodeEntities)(e.name)||__("(no title)","newspack-blocks")}}))}))})),(0,l.Z)((0,r.Z)(e),"render",(function(){var t=e.props,n=t.specificMode,i=t.onSpecificModeChange,r=t.specificPosts,s=t.onSpecificPostsChange,o=t.authors,l=t.onAuthorsChange,u=t.categories,p=t.onCategoriesChange,f=t.tags,h=t.onTagsChange,v=t.tagExclusions,g=t.onTagExclusionsChange,b=t.categoryExclusions,w=t.onCategoryExclusionsChange,y=t.enableSpecific,E=e.state.showAdvancedFilters;return[y&&(0,c.createElement)(d.ToggleControl,{key:"specificMode",checked:n,onChange:i,label:__("Choose Specific Posts","newspack-blocks")}),n&&(0,c.createElement)(m.Z,{key:"posts",tokens:r||[],onChange:s,fetchSuggestions:e.fetchPostSuggestions,fetchSavedInfo:e.fetchSavedPosts,label:__("Posts","newspack-blocks"),help:__("Begin typing post title, click autocomplete result to select.","newspack-blocks")}),!n&&(0,c.createElement)(d.QueryControls,(0,a.Z)({key:"queryControls"},e.props)),!n&&l&&(0,c.createElement)(m.Z,{key:"authors",tokens:o||[],onChange:l,fetchSuggestions:e.fetchAuthorSuggestions,fetchSavedInfo:e.fetchSavedAuthors,label:__("Authors","newspack-blocks")}),!n&&p&&(0,c.createElement)(m.Z,{key:"categories",tokens:u||[],onChange:p,fetchSuggestions:e.fetchCategorySuggestions,fetchSavedInfo:e.fetchSavedCategories,label:__("Categories","newspack-blocks")}),!n&&h&&(0,c.createElement)(m.Z,{key:"tags",tokens:f||[],onChange:h,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:__("Tags","newspack-blocks")}),!n&&g&&(0,c.createElement)("p",{key:"toggle-advanced-filters"},(0,c.createElement)(d.Button,{isLink:!0,onClick:function(){return e.setState({showAdvancedFilters:!E})}},__(E?"Hide Advanced Filters":"Show Advanced Filters","newspack-blocks"))),!n&&g&&E&&(0,c.createElement)(m.Z,{key:"tag-exclusion",tokens:v||[],onChange:g,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:__("Excluded Tags","newspack-blocks")}),!n&&w&&E&&(0,c.createElement)(m.Z,{key:"category-exclusion",tokens:b||[],onChange:w,fetchSuggestions:e.fetchCategorySuggestions,fetchSavedInfo:e.fetchSavedCategories,label:__("Excluded Categories","newspack-blocks")})]})),e}return n}(c.Component);b.defaultProps={enableSpecific:!0,specificPosts:[],authors:[],categories:[],tags:[],tagExclusions:[]},t.Z=b},904:function(e,t,n){"use strict";n.d(t,{lW:function(){return s},FX:function(){return o},b2:function(){return l},Q$:function(){return c}});var a=n(1766),i=n(3027),r=n(3163),_x=r._x,s=function(e){return e.map((function(e){return(0,i.createElement)("span",{className:"avatar author-avatar",key:e.id},(0,i.createElement)("a",{className:"url fn n",href:e.author_link},(0,i.createElement)(i.RawHTML,null,e.avatar)))}))},o=function(e){return(0,i.createElement)("span",{className:"byline"},_x("by","post author","newspack-blocks")," ",e.reduce((function(t,n,r){return[].concat((0,a.Z)(t),[(0,i.createElement)("span",{className:"author vcard",key:n.id},(0,i.createElement)("a",{className:"url fn n",href:n.author_link},n.display_name)),r<e.length-2&&", ",e.length>1&&r===e.length-2&&_x(" and ","post author","newspack-blocks")])}),[]))},l=function(e){return(0,i.createElement)("span",{className:"sponsor-logos"},e.map((function(e){return(0,i.createElement)(i.Fragment,{key:e.id},e.src&&(0,i.createElement)("a",{href:e.sponsor_url},(0,i.createElement)("img",{src:e.src,width:e.img_width,height:e.img_height,alt:e.sponsor_name})))})))},c=function(e){return(0,i.createElement)("span",{className:"byline sponsor-byline"},e[0].byline_prefix," ",e.reduce((function(t,n,r){return[].concat((0,a.Z)(t),[(0,i.createElement)("span",{className:"author",key:n.id},(0,i.createElement)("a",{href:n.author_link},n.sponsor_name)),r<e.length-2&&", ",e.length>1&&r===e.length-2&&_x(" and ","post author","newspack-blocks")])}),[]))}},3534:function(e,t,n){"use strict";n.d(t,{$:function(){return s},cn:function(){return l},IV:function(){return c},pv:function(){return u},Vj:function(){return d},Lj:function(){return p},uV:function(){return f},aT:function(){return h},vs:function(){return v},eR:function(){return m},on:function(){return g},S1:function(){return b},X$:function(){return w},ld:function(){return y},iO:function(){return E},Pb:function(){return x},cv:function(){return S},W2:function(){return T},iv:function(){return C},S6:function(){return k},dy:function(){return P},fL:function(){return M},is:function(){return I},Kz:function(){return z},eq:function(){return $},R3:function(){return O},Ce:function(){return L},lp:function(){return A},eG:function(){return D},mp:function(){return N},pJ:function(){return _},qm:function(){return R},wV:function(){return B},oq:function(){return V},sE:function(){return H},pI:function(){return Z},Od:function(){return j},IH:function(){return G}});var a=n(4659),i=n(5913),r=function e(t){(0,a.Z)(this,e);for(var n=0;n<t.length;n+=1)this[n]=t[n];return this.length=t.length,this};function s(e,t){var n=[],a=0;if(e&&!t&&e instanceof r)return e;if(e)if("string"==typeof e){var s,o,l=e.trim();if(l.indexOf("<")>=0&&l.indexOf(">")>=0){var c="div";for(0===l.indexOf("<li")&&(c="ul"),0===l.indexOf("<tr")&&(c="tbody"),0!==l.indexOf("<td")&&0!==l.indexOf("<th")||(c="tr"),0===l.indexOf("<tbody")&&(c="table"),0===l.indexOf("<option")&&(c="select"),(o=i.t.createElement(c)).innerHTML=l,a=0;a<o.childNodes.length;a+=1)n.push(o.childNodes[a])}else for(s=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||i.t).querySelectorAll(e.trim()):[i.t.getElementById(e.trim().split("#")[1])],a=0;a<s.length;a+=1)s[a]&&n.push(s[a])}else if(e.nodeType||e===i.u||e===i.t)n.push(e);else if(e.length>0&&e[0].nodeType)for(a=0;a<e.length;a+=1)n.push(e[a]);return new r(n)}function o(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function l(e){if(void 0===e)return this;for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var a=0;a<this.length;a+=1)void 0!==this[a]&&void 0!==this[a].classList&&this[a].classList.add(t[n]);return this}function c(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var a=0;a<this.length;a+=1)void 0!==this[a]&&void 0!==this[a].classList&&this[a].classList.remove(t[n]);return this}function u(e){return!!this[0]&&this[0].classList.contains(e)}function d(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var a=0;a<this.length;a+=1)void 0!==this[a]&&void 0!==this[a].classList&&this[a].classList.toggle(t[n]);return this}function p(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var a in e)this[n][a]=e[a],this[n].setAttribute(a,e[a]);return this}function f(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function h(e,t){var n;if(void 0!==t){for(var a=0;a<this.length;a+=1)(n=this[a]).dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}if(n=this[0]){if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];var i=n.getAttribute("data-".concat(e));return i||void 0}}function v(e){for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransform=e,n.transform=e}return this}function m(e){"string"!=typeof e&&(e="".concat(e,"ms"));for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t[0],i=t[1],r=t[2],o=t[3];function l(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),s(t).is(i))r.apply(t,n);else for(var a=s(t).parents(),o=0;o<a.length;o+=1)s(a[o]).is(i)&&r.apply(a[o],n)}}function c(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}"function"==typeof t[1]&&(a=t[0],r=t[1],o=t[2],i=void 0),o||(o=!1);for(var u,d=a.split(" "),p=0;p<this.length;p+=1){var f=this[p];if(i)for(u=0;u<d.length;u+=1){var h=d[u];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[h]||(f.dom7LiveListeners[h]=[]),f.dom7LiveListeners[h].push({listener:r,proxyListener:l}),f.addEventListener(h,l,o)}else for(u=0;u<d.length;u+=1){var v=d[u];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[v]||(f.dom7Listeners[v]=[]),f.dom7Listeners[v].push({listener:r,proxyListener:c}),f.addEventListener(v,c,o)}}return this}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t[0],i=t[1],r=t[2],s=t[3];"function"==typeof t[1]&&(a=t[0],r=t[1],s=t[2],i=void 0),s||(s=!1);for(var o=a.split(" "),l=0;l<o.length;l+=1)for(var c=o[l],u=0;u<this.length;u+=1){var d=this[u],p=void 0;if(!i&&d.dom7Listeners?p=d.dom7Listeners[c]:i&&d.dom7LiveListeners&&(p=d.dom7LiveListeners[c]),p&&p.length)for(var f=p.length-1;f>=0;f-=1){var h=p[f];r&&h.listener===r||r&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===r?(d.removeEventListener(c,h.proxyListener,s),p.splice(f,1)):r||(d.removeEventListener(c,h.proxyListener,s),p.splice(f,1))}}return this}function w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var a=t[0].split(" "),r=t[1],s=0;s<a.length;s+=1)for(var o=a[s],l=0;l<this.length;l+=1){var c=this[l],u=void 0;try{u=new i.u.CustomEvent(o,{detail:r,bubbles:!0,cancelable:!0})}catch(d){(u=i.t.createEvent("Event")).initEvent(o,!0,!0),u.detail=r}c.dom7EventData=t.filter((function(e,t){return t>0})),c.dispatchEvent(u),c.dom7EventData=[],delete c.dom7EventData}return this}function y(e){var t,n=["webkitTransitionEnd","transitionend"],a=this;function i(r){if(r.target===this)for(e.call(this,r),t=0;t<n.length;t+=1)a.off(n[t],i)}if(e)for(t=0;t<n.length;t+=1)a.on(n[t],i);return this}function E(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function x(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function S(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),n=i.t.body,a=e.clientTop||n.clientTop||0,r=e.clientLeft||n.clientLeft||0,s=e===i.u?i.u.scrollY:e.scrollTop,o=e===i.u?i.u.scrollX:e.scrollLeft;return{top:t.top+s-a,left:t.left+o-r}}return null}function T(){return this[0]?i.u.getComputedStyle(this[0],null):{}}function C(e,t){var n;if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var a in e)this[n].style[a]=e[a];return this}if(this[0])return i.u.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function k(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this}function P(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function M(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function I(e){var t,n,a=this[0];if(!a||void 0===e)return!1;if("string"==typeof e){if(a.matches)return a.matches(e);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(e);if(a.msMatchesSelector)return a.msMatchesSelector(e);for(t=s(e),n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}if(e===i.t)return a===i.t;if(e===i.u)return a===i.u;if(e.nodeType||e instanceof r){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1}function z(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}}function $(e){if(void 0===e)return this;var t,n=this.length;return new r(e>n-1?[]:e<0?(t=n+e)<0?[]:[this[t]]:[this[e]])}function O(){for(var e,t=0;t<arguments.length;t+=1){e=t<0||arguments.length<=t?void 0:arguments[t];for(var n=0;n<this.length;n+=1)if("string"==typeof e){var a=i.t.createElement("div");for(a.innerHTML=e;a.firstChild;)this[n].appendChild(a.firstChild)}else if(e instanceof r)for(var s=0;s<e.length;s+=1)this[n].appendChild(e[s]);else this[n].appendChild(e)}return this}function L(e){var t,n;for(t=0;t<this.length;t+=1)if("string"==typeof e){var a=i.t.createElement("div");for(a.innerHTML=e,n=a.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(a.childNodes[n],this[t].childNodes[0])}else if(e instanceof r)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function A(e){return this.length>0?e?this[0].nextElementSibling&&s(this[0].nextElementSibling).is(e)?new r([this[0].nextElementSibling]):new r([]):this[0].nextElementSibling?new r([this[0].nextElementSibling]):new r([]):new r([])}function D(e){var t=[],n=this[0];if(!n)return new r([]);for(;n.nextElementSibling;){var a=n.nextElementSibling;e?s(a).is(e)&&t.push(a):t.push(a),n=a}return new r(t)}function N(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&s(t.previousElementSibling).is(e)?new r([t.previousElementSibling]):new r([]):t.previousElementSibling?new r([t.previousElementSibling]):new r([])}return new r([])}function _(e){var t=[],n=this[0];if(!n)return new r([]);for(;n.previousElementSibling;){var a=n.previousElementSibling;e?s(a).is(e)&&t.push(a):t.push(a),n=a}return new r(t)}function R(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?s(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return s(o(t))}function B(e){for(var t=[],n=0;n<this.length;n+=1)for(var a=this[n].parentNode;a;)e?s(a).is(e)&&t.push(a):t.push(a),a=a.parentNode;return s(o(t))}function V(e){var t=this;return void 0===e?new r([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function H(e){for(var t=[],n=0;n<this.length;n+=1)for(var a=this[n].querySelectorAll(e),i=0;i<a.length;i+=1)t.push(a[i]);return new r(t)}function Z(e){for(var t=[],n=0;n<this.length;n+=1)for(var a=this[n].childNodes,i=0;i<a.length;i+=1)e?1===a[i].nodeType&&s(a[i]).is(e)&&t.push(a[i]):1===a[i].nodeType&&t.push(a[i]);return new r(o(t))}function j(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function G(){for(var e,t,n=this,a=arguments.length,i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];for(e=0;e<i.length;e+=1){var o=s(i[e]);for(t=0;t<o.length;t+=1)n[n.length]=o[t],n.length+=1}return n}s.fn=r.prototype,s.Class=r,s.Dom7=r;"resize scroll".split(" ")},9529:function(e,t,n){"use strict";var a=n(3989),i=n(5663),r=n(591),s=n(5630),o=n(4659),l=n(4730),c=n(3534),u=n(5913);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=(0,s.Z)(e);if(t){var i=(0,s.Z)(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return(0,r.Z)(this,n)}}var p={addClass:c.cn,removeClass:c.IV,hasClass:c.pv,toggleClass:c.Vj,attr:c.Lj,removeAttr:c.uV,data:c.aT,transform:c.vs,transition:c.eR,on:c.on,off:c.S1,trigger:c.X$,transitionEnd:c.ld,outerWidth:c.iO,outerHeight:c.Pb,offset:c.cv,css:c.iv,each:c.S6,html:c.dy,text:c.fL,is:c.is,index:c.Kz,eq:c.eq,append:c.R3,prepend:c.Ce,next:c.lp,nextAll:c.eG,prev:c.mp,prevAll:c.pJ,parent:c.qm,parents:c.wV,closest:c.oq,find:c.sE,children:c.pI,remove:c.Od,add:c.IH,styles:c.W2};Object.keys(p).forEach((function(e){c.$.fn[e]=c.$.fn[e]||p[e]}));var f,h,v,m={deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(n){}try{delete t[e]}catch(n){}}))},nextTick:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e){var t,n,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",r=u.u.getComputedStyle(e,null);return u.u.WebKitCSSMatrix?((n=r.transform||r.webkitTransform).split(",").length>6&&(n=n.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),a=new u.u.WebKitCSSMatrix("none"===n?"":n)):t=(a=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===i&&(n=u.u.WebKitCSSMatrix?a.m41:16===t.length?parseFloat(t[12]):parseFloat(t[4])),"y"===i&&(n=u.u.WebKitCSSMatrix?a.m42:16===t.length?parseFloat(t[13]):parseFloat(t[5])),n||0},parseUrlQuery:function(e){var t,n,a,i,r={},s=e||u.u.location.href;if("string"==typeof s&&s.length)for(i=(n=(s=s.indexOf("?")>-1?s.replace(/\S*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,t=0;t<i;t+=1)a=n[t].replace(/#\S+/g,"").split("="),r[decodeURIComponent(a[0])]=void 0===a[1]?void 0:decodeURIComponent(a[1])||"";return r},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=Object(arguments.length<=0?void 0:arguments[0]),t=1;t<arguments.length;t+=1){var n=t<0||arguments.length<=t?void 0:arguments[t];if(null!=n)for(var a=Object.keys(Object(n)),i=0,r=a.length;i<r;i+=1){var s=a[i],o=Object.getOwnPropertyDescriptor(n,s);void 0!==o&&o.enumerable&&(m.isObject(e[s])&&m.isObject(n[s])?m.extend(e[s],n[s]):!m.isObject(e[s])&&m.isObject(n[s])?(e[s]={},m.extend(e[s],n[s])):e[s]=n[s])}}return e}},g=(h=u.t.createElement("div"),{touch:u.u.Modernizr&&!0===u.u.Modernizr.touch||!!(u.u.navigator.maxTouchPoints>0||"ontouchstart"in u.u||u.u.DocumentTouch&&u.t instanceof u.u.DocumentTouch),pointerEvents:!!(u.u.navigator.pointerEnabled||u.u.PointerEvent||"maxTouchPoints"in u.u.navigator&&u.u.navigator.maxTouchPoints>0),prefixedPointerEvents:!!u.u.navigator.msPointerEnabled,transition:(f=h.style,"transition"in f||"webkitTransition"in f||"MozTransition"in f),transforms3d:u.u.Modernizr&&!0===u.u.Modernizr.csstransforms3d||function(){var e=h.style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=h.style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<t.length;n+=1)if(t[n]in e)return!0;return!1}(),observer:"MutationObserver"in u.u||"WebkitMutationObserver"in u.u,passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});u.u.addEventListener("testPassiveListener",null,t)}catch(n){}return e}(),gestures:"ongesturestart"in u.u}),b={isIE:!!u.u.navigator.userAgent.match(/Trident/g)||!!u.u.navigator.userAgent.match(/MSIE/g),isEdge:!!u.u.navigator.userAgent.match(/Edge/g),isSafari:(v=u.u.navigator.userAgent.toLowerCase(),v.indexOf("safari")>=0&&v.indexOf("chrome")<0&&v.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(u.u.navigator.userAgent)},w=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,e);var n=this;n.params=t,n.eventsListeners={},n.params&&n.params.on&&Object.keys(n.params.on).forEach((function(e){n.on(e,n.params.on[e])}))}return(0,l.Z)(e,[{key:"on",value:function(e,t,n){var a=this;if("function"!=typeof t)return a;var i=n?"unshift":"push";return e.split(" ").forEach((function(e){a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][i](t)})),a}},{key:"once",value:function(e,t,n){var a=this;if("function"!=typeof t)return a;function i(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];t.apply(a,r),a.off(e,i),i.f7proxy&&delete i.f7proxy}return i.f7proxy=t,a.on(e,i,n)}},{key:"off",value:function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].length&&n.eventsListeners[e].forEach((function(a,i){(a===t||a.f7proxy&&a.f7proxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n}},{key:"emit",value:function(){var e,t,n,a=this;if(!a.eventsListeners)return a;for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];"string"==typeof r[0]||Array.isArray(r[0])?(e=r[0],t=r.slice(1,r.length),n=a):(e=r[0].events,t=r[0].data,n=r[0].context||a);var o=Array.isArray(e)?e:e.split(" ");return o.forEach((function(e){if(a.eventsListeners&&a.eventsListeners[e]){var i=[];a.eventsListeners[e].forEach((function(e){i.push(e)})),i.forEach((function(e){e.apply(n,t)}))}})),a}},{key:"useModulesParams",value:function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var a=t.modules[n];a.params&&m.extend(e,a.params)}))}},{key:"useModules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var a=t.modules[n],i=e[n]||{};a.instance&&Object.keys(a.instance).forEach((function(e){var n=a.instance[e];t[e]="function"==typeof n?n.bind(t):n})),a.on&&t.on&&Object.keys(a.on).forEach((function(e){t.on(e,a.on[e])})),a.create&&a.create.bind(t)(i)}))}}],[{key:"components",set:function(e){this.use&&this.use(e)}},{key:"installModule",value:function(e){var t=this;t.prototype.modules||(t.prototype.modules={});var n=e.name||"".concat(Object.keys(t.prototype.modules).length,"_").concat(m.now());if(t.prototype.modules[n]=e,e.proto&&Object.keys(e.proto).forEach((function(n){t.prototype[n]=e.proto[n]})),e.static&&Object.keys(e.static).forEach((function(n){t[n]=e.static[n]})),e.install){for(var a=arguments.length,i=new Array(a>1?a-1:0),r=1;r<a;r++)i[r-1]=arguments[r];e.install.apply(t,i)}return t}},{key:"use",value:function(e){var t=this;if(Array.isArray(e))return e.forEach((function(e){return t.installModule(e)})),t;for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];return t.installModule.apply(t,[e].concat(a))}}]),e}();var y={updateSize:function(){var e,t,n=this,a=n.$el;e=void 0!==n.params.width?n.params.width:a[0].clientWidth,t=void 0!==n.params.height?n.params.height:a[0].clientHeight,0===e&&n.isHorizontal()||0===t&&n.isVertical()||(e=e-parseInt(a.css("padding-left"),10)-parseInt(a.css("padding-right"),10),t=t-parseInt(a.css("padding-top"),10)-parseInt(a.css("padding-bottom"),10),m.extend(n,{width:e,height:t,size:n.isHorizontal()?e:t}))},updateSlides:function(){var e=this,t=e.params,n=e.$wrapperEl,a=e.size,i=e.rtlTranslate,r=e.wrongRTL,s=e.virtual&&t.virtual.enabled,o=s?e.virtual.slides.length:e.slides.length,l=n.children(".".concat(e.params.slideClass)),c=s?e.virtual.slides.length:l.length,d=[],p=[],f=[],h=t.slidesOffsetBefore;"function"==typeof h&&(h=t.slidesOffsetBefore.call(e));var v=t.slidesOffsetAfter;"function"==typeof v&&(v=t.slidesOffsetAfter.call(e));var w=e.snapGrid.length,y=e.snapGrid.length,E=t.spaceBetween,x=-h,S=0,T=0;if(void 0!==a){var C,k;"string"==typeof E&&E.indexOf("%")>=0&&(E=parseFloat(E.replace("%",""))/100*a),e.virtualSize=-E,i?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),t.slidesPerColumn>1&&(C=Math.floor(c/t.slidesPerColumn)===c/e.params.slidesPerColumn?c:Math.ceil(c/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(C=Math.max(C,t.slidesPerView*t.slidesPerColumn)));for(var P,M=t.slidesPerColumn,I=C/M,z=Math.floor(c/t.slidesPerColumn),$=0;$<c;$+=1){k=0;var O=l.eq($);if(t.slidesPerColumn>1){var L=void 0,A=void 0,D=void 0;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)D=$-(A=Math.floor($/M))*M,(A>z||A===z&&D===M-1)&&(D+=1)>=M&&(D=0,A+=1);else{var N=Math.floor($/t.slidesPerGroup);A=$-(D=Math.floor($/t.slidesPerView)-N*t.slidesPerColumn)*t.slidesPerView-N*t.slidesPerView}L=A+D*C/M,O.css({"-webkit-box-ordinal-group":L,"-moz-box-ordinal-group":L,"-ms-flex-order":L,"-webkit-order":L,order:L})}else A=$-(D=Math.floor($/I))*I;O.css("margin-".concat(e.isHorizontal()?"top":"left"),0!==D&&t.spaceBetween&&"".concat(t.spaceBetween,"px")).attr("data-swiper-column",A).attr("data-swiper-row",D)}if("none"!==O.css("display")){if("auto"===t.slidesPerView){var _=u.u.getComputedStyle(O[0],null),R=O[0].style.transform,B=O[0].style.webkitTransform;if(R&&(O[0].style.transform="none"),B&&(O[0].style.webkitTransform="none"),t.roundLengths)k=e.isHorizontal()?O.outerWidth(!0):O.outerHeight(!0);else if(e.isHorizontal()){var V=parseFloat(_.getPropertyValue("width")),H=parseFloat(_.getPropertyValue("padding-left")),Z=parseFloat(_.getPropertyValue("padding-right")),j=parseFloat(_.getPropertyValue("margin-left")),G=parseFloat(_.getPropertyValue("margin-right")),X=_.getPropertyValue("box-sizing");k=X&&"border-box"===X&&!b.isIE?V+j+G:V+H+Z+j+G}else{var F=parseFloat(_.getPropertyValue("height")),Y=parseFloat(_.getPropertyValue("padding-top")),q=parseFloat(_.getPropertyValue("padding-bottom")),W=parseFloat(_.getPropertyValue("margin-top")),U=parseFloat(_.getPropertyValue("margin-bottom")),K=_.getPropertyValue("box-sizing");k=K&&"border-box"===K&&!b.isIE?F+W+U:F+Y+q+W+U}R&&(O[0].style.transform=R),B&&(O[0].style.webkitTransform=B),t.roundLengths&&(k=Math.floor(k))}else k=(a-(t.slidesPerView-1)*E)/t.slidesPerView,t.roundLengths&&(k=Math.floor(k)),l[$]&&(e.isHorizontal()?l[$].style.width="".concat(k,"px"):l[$].style.height="".concat(k,"px"));l[$]&&(l[$].swiperSlideSize=k),f.push(k),t.centeredSlides?(x=x+k/2+S/2+E,0===S&&0!==$&&(x=x-a/2-E),0===$&&(x=x-a/2-E),Math.abs(x)<.001&&(x=0),t.roundLengths&&(x=Math.floor(x)),T%t.slidesPerGroup==0&&d.push(x),p.push(x)):(t.roundLengths&&(x=Math.floor(x)),T%t.slidesPerGroup==0&&d.push(x),p.push(x),x=x+k+E),e.virtualSize+=k+E,S=k,T+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+v,i&&r&&("slide"===t.effect||"coverflow"===t.effect)&&n.css({width:"".concat(e.virtualSize+t.spaceBetween,"px")}),g.flexbox&&!t.setWrapperSize||(e.isHorizontal()?n.css({width:"".concat(e.virtualSize+t.spaceBetween,"px")}):n.css({height:"".concat(e.virtualSize+t.spaceBetween,"px")})),t.slidesPerColumn>1&&(e.virtualSize=(k+t.spaceBetween)*C,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?n.css({width:"".concat(e.virtualSize+t.spaceBetween,"px")}):n.css({height:"".concat(e.virtualSize+t.spaceBetween,"px")}),t.centeredSlides)){P=[];for(var Q=0;Q<d.length;Q+=1){var J=d[Q];t.roundLengths&&(J=Math.floor(J)),d[Q]<e.virtualSize+d[0]&&P.push(J)}d=P}if(!t.centeredSlides){P=[];for(var ee=0;ee<d.length;ee+=1){var te=d[ee];t.roundLengths&&(te=Math.floor(te)),d[ee]<=e.virtualSize-a&&P.push(te)}d=P,Math.floor(e.virtualSize-a)-Math.floor(d[d.length-1])>1&&d.push(e.virtualSize-a)}if(0===d.length&&(d=[0]),0!==t.spaceBetween&&(e.isHorizontal()?i?l.css({marginLeft:"".concat(E,"px")}):l.css({marginRight:"".concat(E,"px")}):l.css({marginBottom:"".concat(E,"px")})),t.centerInsufficientSlides){var ne=0;if(f.forEach((function(e){ne+=e+(t.spaceBetween?t.spaceBetween:0)})),(ne-=t.spaceBetween)<a){var ae=(a-ne)/2;d.forEach((function(e,t){d[t]=e-ae})),p.forEach((function(e,t){p[t]=e+ae}))}}m.extend(e,{slides:l,snapGrid:d,slidesGrid:p,slidesSizesGrid:f}),c!==o&&e.emit("slidesLengthChange"),d.length!==w&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==y&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}},updateAutoHeight:function(e){var t,n=this,a=[],i=0;if("number"==typeof e?n.setTransition(e):!0===e&&n.setTransition(n.params.speed),"auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)for(t=0;t<Math.ceil(n.params.slidesPerView);t+=1){var r=n.activeIndex+t;if(r>n.slides.length)break;a.push(n.slides.eq(r)[0])}else a.push(n.slides.eq(n.activeIndex)[0]);for(t=0;t<a.length;t+=1)if(void 0!==a[t]){var s=a[t].offsetHeight;i=s>i?s:i}i&&n.$wrapperEl.css("height","".concat(i,"px"))},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,n=t.params,a=t.slides,i=t.rtlTranslate;if(0!==a.length){void 0===a[0].swiperSlideOffset&&t.updateSlidesOffset();var r=-e;i&&(r=e),a.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var s=0;s<a.length;s+=1){var o=a[s],l=(r+(n.centeredSlides?t.minTranslate():0)-o.swiperSlideOffset)/(o.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){var u=-(r-o.swiperSlideOffset),d=u+t.slidesSizesGrid[s],p=u>=0&&u<t.size-1||d>1&&d<=t.size||u<=0&&d>=t.size;p&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(s),a.eq(s).addClass(n.slideVisibleClass))}o.progress=i?-l:l}t.visibleSlides=(0,c.$)(t.visibleSlides)}},updateProgress:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,n=t.params,a=t.maxTranslate()-t.minTranslate(),i=t.progress,r=t.isBeginning,s=t.isEnd,o=r,l=s;0===a?(i=0,r=!0,s=!0):(r=(i=(e-t.minTranslate())/a)<=0,s=i>=1),m.extend(t,{progress:i,isBeginning:r,isEnd:s}),(n.watchSlidesProgress||n.watchSlidesVisibility)&&t.updateSlidesProgress(e),r&&!o&&t.emit("reachBeginning toEdge"),s&&!l&&t.emit("reachEnd toEdge"),(o&&!r||l&&!s)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){var e,t=this,n=t.slides,a=t.params,i=t.$wrapperEl,r=t.activeIndex,s=t.realIndex,o=t.virtual&&a.virtual.enabled;n.removeClass("".concat(a.slideActiveClass," ").concat(a.slideNextClass," ").concat(a.slidePrevClass," ").concat(a.slideDuplicateActiveClass," ").concat(a.slideDuplicateNextClass," ").concat(a.slideDuplicatePrevClass)),(e=o?t.$wrapperEl.find(".".concat(a.slideClass,'[data-swiper-slide-index="').concat(r,'"]')):n.eq(r)).addClass(a.slideActiveClass),a.loop&&(e.hasClass(a.slideDuplicateClass)?i.children(".".concat(a.slideClass,":not(.").concat(a.slideDuplicateClass,')[data-swiper-slide-index="').concat(s,'"]')).addClass(a.slideDuplicateActiveClass):i.children(".".concat(a.slideClass,".").concat(a.slideDuplicateClass,'[data-swiper-slide-index="').concat(s,'"]')).addClass(a.slideDuplicateActiveClass));var l=e.nextAll(".".concat(a.slideClass)).eq(0).addClass(a.slideNextClass);a.loop&&0===l.length&&(l=n.eq(0)).addClass(a.slideNextClass);var c=e.prevAll(".".concat(a.slideClass)).eq(0).addClass(a.slidePrevClass);a.loop&&0===c.length&&(c=n.eq(-1)).addClass(a.slidePrevClass),a.loop&&(l.hasClass(a.slideDuplicateClass)?i.children(".".concat(a.slideClass,":not(.").concat(a.slideDuplicateClass,')[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(a.slideDuplicateNextClass):i.children(".".concat(a.slideClass,".").concat(a.slideDuplicateClass,'[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(a.slideDuplicateNextClass),c.hasClass(a.slideDuplicateClass)?i.children(".".concat(a.slideClass,":not(.").concat(a.slideDuplicateClass,')[data-swiper-slide-index="').concat(c.attr("data-swiper-slide-index"),'"]')).addClass(a.slideDuplicatePrevClass):i.children(".".concat(a.slideClass,".").concat(a.slideDuplicateClass,'[data-swiper-slide-index="').concat(c.attr("data-swiper-slide-index"),'"]')).addClass(a.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,n=this,a=n.rtlTranslate?n.translate:-n.translate,i=n.slidesGrid,r=n.snapGrid,s=n.params,o=n.activeIndex,l=n.realIndex,c=n.snapIndex,u=e;if(void 0===u){for(var d=0;d<i.length;d+=1)void 0!==i[d+1]?a>=i[d]&&a<i[d+1]-(i[d+1]-i[d])/2?u=d:a>=i[d]&&a<i[d+1]&&(u=d+1):a>=i[d]&&(u=d);s.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if((t=r.indexOf(a)>=0?r.indexOf(a):Math.floor(u/s.slidesPerGroup))>=r.length&&(t=r.length-1),u!==o){var p=parseInt(n.slides.eq(u).attr("data-swiper-slide-index")||u,10);m.extend(n,{snapIndex:t,realIndex:p,previousIndex:o,activeIndex:u}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),l!==p&&n.emit("realIndexChange"),(n.initialized||n.runCallbacksOnInit)&&n.emit("slideChange")}else t!==c&&(n.snapIndex=t,n.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this,n=t.params,a=(0,c.$)(e.target).closest(".".concat(n.slideClass))[0],i=!1;if(a)for(var r=0;r<t.slides.length;r+=1)t.slides[r]===a&&(i=!0);if(!a||!i)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=a,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt((0,c.$)(a).attr("data-swiper-slide-index"),10):t.clickedIndex=(0,c.$)(a).index(),n.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};var E={getTranslate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.isHorizontal()?"x":"y",t=this,n=t.params,a=t.rtlTranslate,i=t.translate,r=t.$wrapperEl;if(n.virtualTranslate)return a?-i:i;var s=m.getTranslate(r[0],e);return a&&(s=-s),s||0},setTranslate:function(e,t){var n=this,a=n.rtlTranslate,i=n.params,r=n.$wrapperEl,s=n.progress,o=0,l=0;n.isHorizontal()?o=a?-e:e:l=e,i.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),i.virtualTranslate||(g.transforms3d?r.transform("translate3d(".concat(o,"px, ").concat(l,"px, ").concat(0,"px)")):r.transform("translate(".concat(o,"px, ").concat(l,"px)"))),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?o:l;var c=n.maxTranslate()-n.minTranslate();(0===c?0:(e-n.minTranslate())/c)!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}};var x={setTransition:function(e,t){this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this,a=n.activeIndex,i=n.params,r=n.previousIndex;i.autoHeight&&n.updateAutoHeight();var s=t;if(s||(s=a>r?"next":a<r?"prev":"reset"),n.emit("transitionStart"),e&&a!==r){if("reset"===s)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===s?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}},transitionEnd:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this,a=n.activeIndex,i=n.previousIndex;n.animating=!1,n.setTransition(0);var r=t;if(r||(r=a>i?"next":a<i?"prev":"reset"),n.emit("transitionEnd"),e&&a!==i){if("reset"===r)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===r?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}};var S={slideTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3?arguments[3]:void 0,i=this,r=e;r<0&&(r=0);var s=i.params,o=i.snapGrid,l=i.slidesGrid,c=i.previousIndex,u=i.activeIndex,d=i.rtlTranslate;if(i.animating&&s.preventInteractionOnTransition)return!1;var p=Math.floor(r/s.slidesPerGroup);p>=o.length&&(p=o.length-1),(u||s.initialSlide||0)===(c||0)&&n&&i.emit("beforeSlideChangeStart");var f,h=-o[p];if(i.updateProgress(h),s.normalizeSlideIndex)for(var v=0;v<l.length;v+=1)-Math.floor(100*h)>=Math.floor(100*l[v])&&(r=v);if(i.initialized&&r!==u){if(!i.allowSlideNext&&h<i.translate&&h<i.minTranslate())return!1;if(!i.allowSlidePrev&&h>i.translate&&h>i.maxTranslate()&&(u||0)!==r)return!1}return f=r>u?"next":r<u?"prev":"reset",d&&-h===i.translate||!d&&h===i.translate?(i.updateActiveIndex(r),s.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),"slide"!==s.effect&&i.setTranslate(h),"reset"!==f&&(i.transitionStart(n,f),i.transitionEnd(n,f)),!1):(0!==t&&g.transition?(i.setTransition(t),i.setTranslate(h),i.updateActiveIndex(r),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,a),i.transitionStart(n,f),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(e){i&&!i.destroyed&&e.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,f))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))):(i.setTransition(0),i.setTranslate(h),i.updateActiveIndex(r),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,a),i.transitionStart(n,f),i.transitionEnd(n,f)),!0)},slideToLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3?arguments[3]:void 0,i=this,r=e;return i.params.loop&&(r+=i.loopedSlides),i.slideTo(r,t,n,a)},slideNext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,a=this,i=a.params,r=a.animating;return i.loop?!r&&(a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft,a.slideTo(a.activeIndex+i.slidesPerGroup,e,t,n)):a.slideTo(a.activeIndex+i.slidesPerGroup,e,t,n)},slidePrev:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,a=this,i=a.params,r=a.animating,s=a.snapGrid,o=a.slidesGrid,l=a.rtlTranslate;if(i.loop){if(r)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}var c=l?a.translate:-a.translate;function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var d,p=u(c),f=s.map((function(e){return u(e)})),h=(o.map((function(e){return u(e)})),s[f.indexOf(p)],s[f.indexOf(p)-1]);return void 0!==h&&(d=o.indexOf(h))<0&&(d=a.activeIndex-1),a.slideTo(d,e,t,n)},slideReset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,a=this;return a.slideTo(a.activeIndex,e,t,n)},slideToClosest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,a=this,i=a.activeIndex,r=Math.floor(i/a.params.slidesPerGroup);if(r<a.snapGrid.length-1){var s=a.rtlTranslate?a.translate:-a.translate,o=a.snapGrid[r],l=a.snapGrid[r+1];s-o>(l-o)/2&&(i=a.params.slidesPerGroup)}return a.slideTo(i,e,t,n)},slideToClickedSlide:function(){var e,t=this,n=t.params,a=t.$wrapperEl,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,r=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt((0,c.$)(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?r<t.loopedSlides-i/2||r>t.slides.length-t.loopedSlides+i/2?(t.loopFix(),r=a.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(n.slideDuplicateClass,")")).eq(0).index(),m.nextTick((function(){t.slideTo(r)}))):t.slideTo(r):r>t.slides.length-i?(t.loopFix(),r=a.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(n.slideDuplicateClass,")")).eq(0).index(),m.nextTick((function(){t.slideTo(r)}))):t.slideTo(r)}else t.slideTo(r)}};var T={loopCreate:function(){var e=this,t=e.params,n=e.$wrapperEl;n.children(".".concat(t.slideClass,".").concat(t.slideDuplicateClass)).remove();var a=n.children(".".concat(t.slideClass));if(t.loopFillGroupWithBlank){var i=t.slidesPerGroup-a.length%t.slidesPerGroup;if(i!==t.slidesPerGroup){for(var r=0;r<i;r+=1){var s=(0,c.$)(u.t.createElement("div")).addClass("".concat(t.slideClass," ").concat(t.slideBlankClass));n.append(s)}a=n.children(".".concat(t.slideClass))}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=a.length),e.loopedSlides=parseInt(t.loopedSlides||t.slidesPerView,10),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>a.length&&(e.loopedSlides=a.length);var o=[],l=[];a.each((function(t,n){var i=(0,c.$)(n);t<e.loopedSlides&&l.push(n),t<a.length&&t>=a.length-e.loopedSlides&&o.push(n),i.attr("data-swiper-slide-index",t)}));for(var d=0;d<l.length;d+=1)n.append((0,c.$)(l[d].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var p=o.length-1;p>=0;p-=1)n.prepend((0,c.$)(o[p].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){var e,t=this,n=t.params,a=t.activeIndex,i=t.slides,r=t.loopedSlides,s=t.allowSlidePrev,o=t.allowSlideNext,l=t.snapGrid,c=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var u=-l[a]-t.getTranslate();if(a<r)e=i.length-3*r+a,e+=r,t.slideTo(e,0,!1,!0)&&0!==u&&t.setTranslate((c?-t.translate:t.translate)-u);else if("auto"===n.slidesPerView&&a>=2*r||a>=i.length-r){e=-i.length+a+r,e+=r,t.slideTo(e,0,!1,!0)&&0!==u&&t.setTranslate((c?-t.translate:t.translate)-u)}t.allowSlidePrev=s,t.allowSlideNext=o},loopDestroy:function(){var e=this,t=e.$wrapperEl,n=e.params,a=e.slides;t.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,",.").concat(n.slideClass,".").concat(n.slideBlankClass)).remove(),a.removeAttr("data-swiper-slide-index")}};var C={setGrabCursor:function(e){var t=this;if(!(g.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)){var n=t.el;n.style.cursor="move",n.style.cursor=e?"-webkit-grabbing":"-webkit-grab",n.style.cursor=e?"-moz-grabbin":"-moz-grab",n.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){var e=this;g.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}};var k={appendSlide:function(e){var t=this,n=t.$wrapperEl,a=t.params;if(a.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var i=0;i<e.length;i+=1)e[i]&&n.append(e[i]);else n.append(e);a.loop&&t.loopCreate(),a.observer&&g.observer||t.update()},prependSlide:function(e){var t=this,n=t.params,a=t.$wrapperEl,i=t.activeIndex;n.loop&&t.loopDestroy();var r=i+1;if("object"==typeof e&&"length"in e){for(var s=0;s<e.length;s+=1)e[s]&&a.prepend(e[s]);r=i+e.length}else a.prepend(e);n.loop&&t.loopCreate(),n.observer&&g.observer||t.update(),t.slideTo(r,0,!1)},addSlide:function(e,t){var n=this,a=n.$wrapperEl,i=n.params,r=n.activeIndex;i.loop&&(r-=n.loopedSlides,n.loopDestroy(),n.slides=a.children(".".concat(i.slideClass)));var s=n.slides.length;if(e<=0)n.prependSlide(t);else if(e>=s)n.appendSlide(t);else{for(var o=r>e?r+1:r,l=[],c=s-1;c>=e;c-=1){var u=n.slides.eq(c);u.remove(),l.unshift(u)}if("object"==typeof t&&"length"in t){for(var d=0;d<t.length;d+=1)t[d]&&a.append(t[d]);o=r>e?r+t.length:r}else a.append(t);for(var p=0;p<l.length;p+=1)a.append(l[p]);i.loop&&n.loopCreate(),i.observer&&g.observer||n.update(),i.loop?n.slideTo(o+n.loopedSlides,0,!1):n.slideTo(o,0,!1)}},removeSlide:function(e){var t=this,n=t.params,a=t.$wrapperEl,i=t.activeIndex;n.loop&&(i-=t.loopedSlides,t.loopDestroy(),t.slides=a.children(".".concat(n.slideClass)));var r,s=i;if("object"==typeof e&&"length"in e){for(var o=0;o<e.length;o+=1)r=e[o],t.slides[r]&&t.slides.eq(r).remove(),r<s&&(s-=1);s=Math.max(s,0)}else r=e,t.slides[r]&&t.slides.eq(r).remove(),r<s&&(s-=1),s=Math.max(s,0);n.loop&&t.loopCreate(),n.observer&&g.observer||t.update(),n.loop?t.slideTo(s+t.loopedSlides,0,!1):t.slideTo(s,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},P=function(){var e=u.u.navigator.userAgent,t={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:u.u.cordova||u.u.phonegap,phonegap:u.u.cordova||u.u.phonegap},n=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),a=e.match(/(Android);?[\s\/]+([\d.]+)?/),i=e.match(/(iPad).*OS\s([\d_]+)/),r=e.match(/(iPod)(.*OS\s([\d_]+))?/),s=!i&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(n&&(t.os="windows",t.osVersion=n[2],t.windows=!0),a&&!n&&(t.os="android",t.osVersion=a[2],t.android=!0,t.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(i||s||r)&&(t.os="ios",t.ios=!0),s&&!r&&(t.osVersion=s[2].replace(/_/g,"."),t.iphone=!0),i&&(t.osVersion=i[2].replace(/_/g,"."),t.ipad=!0),r&&(t.osVersion=r[3]?r[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osVersion&&e.indexOf("Version/")>=0&&"10"===t.osVersion.split(".")[0]&&(t.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webView),t.webView=(s||i||r)&&e.match(/.*AppleWebKit(?!.*Safari)/i),t.os&&"ios"===t.os){var o=t.osVersion.split("."),l=u.t.querySelector('meta[name="viewport"]');t.minimalUi=!t.webView&&(r||s)&&(1*o[0]==7?1*o[1]>=1:1*o[0]>7)&&l&&l.getAttribute("content").indexOf("minimal-ui")>=0}return t.pixelRatio=u.u.devicePixelRatio||1,t}();function M(e){var t=this,n=t.touchEventsData,a=t.params,i=t.touches;if(!t.animating||!a.preventInteractionOnTransition){var r=e;if(r.originalEvent&&(r=r.originalEvent),n.isTouchEvent="touchstart"===r.type,(n.isTouchEvent||!("which"in r)||3!==r.which)&&!(!n.isTouchEvent&&"button"in r&&r.button>0||n.isTouched&&n.isMoved))if(a.noSwiping&&(0,c.$)(r.target).closest(a.noSwipingSelector?a.noSwipingSelector:".".concat(a.noSwipingClass))[0])t.allowClick=!0;else if(!a.swipeHandler||(0,c.$)(r).closest(a.swipeHandler)[0]){i.currentX="touchstart"===r.type?r.targetTouches[0].pageX:r.pageX,i.currentY="touchstart"===r.type?r.targetTouches[0].pageY:r.pageY;var s=i.currentX,o=i.currentY,l=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,d=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(!l||!(s<=d||s>=u.u.screen.width-d)){if(m.extend(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=s,i.startY=o,n.touchStartTime=m.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==r.type){var p=!0;(0,c.$)(r.target).is(n.formElements)&&(p=!1),u.t.activeElement&&(0,c.$)(u.t.activeElement).is(n.formElements)&&u.t.activeElement!==r.target&&u.t.activeElement.blur();var f=p&&t.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||f)&&r.preventDefault()}t.emit("touchStart",r)}}}}function I(e){var t=this,n=t.touchEventsData,a=t.params,i=t.touches,r=t.rtlTranslate,s=e;if(s.originalEvent&&(s=s.originalEvent),n.isTouched){if(!n.isTouchEvent||"mousemove"!==s.type){var o="touchmove"===s.type?s.targetTouches[0].pageX:s.pageX,l="touchmove"===s.type?s.targetTouches[0].pageY:s.pageY;if(s.preventedByNestedSwiper)return i.startX=o,void(i.startY=l);if(!t.allowTouchMove)return t.allowClick=!1,void(n.isTouched&&(m.extend(i,{startX:o,startY:l,currentX:o,currentY:l}),n.touchStartTime=m.now()));if(n.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop)if(t.isVertical()){if(l<i.startY&&t.translate<=t.maxTranslate()||l>i.startY&&t.translate>=t.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(o<i.startX&&t.translate<=t.maxTranslate()||o>i.startX&&t.translate>=t.minTranslate())return;if(n.isTouchEvent&&u.t.activeElement&&s.target===u.t.activeElement&&(0,c.$)(s.target).is(n.formElements))return n.isMoved=!0,void(t.allowClick=!1);if(n.allowTouchCallbacks&&t.emit("touchMove",s),!(s.targetTouches&&s.targetTouches.length>1)){i.currentX=o,i.currentY=l;var d=i.currentX-i.startX,p=i.currentY-i.startY;if(!(t.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(p,2))<t.params.threshold)){var f;if(void 0===n.isScrolling)t.isHorizontal()&&i.currentY===i.startY||t.isVertical()&&i.currentX===i.startX?n.isScrolling=!1:d*d+p*p>=25&&(f=180*Math.atan2(Math.abs(p),Math.abs(d))/Math.PI,n.isScrolling=t.isHorizontal()?f>a.touchAngle:90-f>a.touchAngle);if(n.isScrolling&&t.emit("touchMoveOpposite",s),void 0===n.startMoving&&(i.currentX===i.startX&&i.currentY===i.startY||(n.startMoving=!0)),n.isScrolling)n.isTouched=!1;else if(n.startMoving){t.allowClick=!1,s.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&s.stopPropagation(),n.isMoved||(a.loop&&t.loopFix(),n.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!a.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",s)),t.emit("sliderMove",s),n.isMoved=!0;var h=t.isHorizontal()?d:p;i.diff=h,h*=a.touchRatio,r&&(h=-h),t.swipeDirection=h>0?"prev":"next",n.currentTranslate=h+n.startTranslate;var v=!0,g=a.resistanceRatio;if(a.touchReleaseOnEdges&&(g=0),h>0&&n.currentTranslate>t.minTranslate()?(v=!1,a.resistance&&(n.currentTranslate=t.minTranslate()-1+Math.pow(-t.minTranslate()+n.startTranslate+h,g))):h<0&&n.currentTranslate<t.maxTranslate()&&(v=!1,a.resistance&&(n.currentTranslate=t.maxTranslate()+1-Math.pow(t.maxTranslate()-n.startTranslate-h,g))),v&&(s.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!t.allowSlidePrev&&"prev"===t.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),a.threshold>0){if(!(Math.abs(h)>a.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,n.currentTranslate=n.startTranslate,void(i.diff=t.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY)}a.followFinger&&((a.freeMode||a.watchSlidesProgress||a.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),a.freeMode&&(0===n.velocities.length&&n.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:m.now()})),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate))}}}}}else n.startMoving&&n.isScrolling&&t.emit("touchMoveOpposite",s)}function z(e){var t=this,n=t.touchEventsData,a=t.params,i=t.touches,r=t.rtlTranslate,s=t.$wrapperEl,o=t.slidesGrid,l=t.snapGrid,c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);a.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var u,d=m.now(),p=d-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(c),t.emit("tap",c),p<300&&d-n.lastClickTime>300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),n.clickTimeout=m.nextTick((function(){t&&!t.destroyed&&t.emit("click",c)}),300)),p<300&&d-n.lastClickTime<300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),t.emit("doubleTap",c))),n.lastClickTime=m.now(),m.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=a.followFinger?r?t.translate:-t.translate:-n.currentTranslate,a.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(a.freeModeMomentum){if(n.velocities.length>1){var f=n.velocities.pop(),h=n.velocities.pop(),v=f.position-h.position,g=f.time-h.time;t.velocity=v/g,t.velocity/=2,Math.abs(t.velocity)<a.freeModeMinimumVelocity&&(t.velocity=0),(g>150||m.now()-f.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=a.freeModeMomentumVelocityRatio,n.velocities.length=0;var b=1e3*a.freeModeMomentumRatio,w=t.velocity*b,y=t.translate+w;r&&(y=-y);var E,x,S=!1,T=20*Math.abs(t.velocity)*a.freeModeMomentumBounceRatio;if(y<t.maxTranslate())a.freeModeMomentumBounce?(y+t.maxTranslate()<-T&&(y=t.maxTranslate()-T),E=t.maxTranslate(),S=!0,n.allowMomentumBounce=!0):y=t.maxTranslate(),a.loop&&a.centeredSlides&&(x=!0);else if(y>t.minTranslate())a.freeModeMomentumBounce?(y-t.minTranslate()>T&&(y=t.minTranslate()+T),E=t.minTranslate(),S=!0,n.allowMomentumBounce=!0):y=t.minTranslate(),a.loop&&a.centeredSlides&&(x=!0);else if(a.freeModeSticky){for(var C,k=0;k<l.length;k+=1)if(l[k]>-y){C=k;break}y=-(y=Math.abs(l[C]-y)<Math.abs(l[C-1]-y)||"next"===t.swipeDirection?l[C]:l[C-1])}if(x&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity)b=r?Math.abs((-y-t.translate)/t.velocity):Math.abs((y-t.translate)/t.velocity);else if(a.freeModeSticky)return void t.slideToClosest();a.freeModeMomentumBounce&&S?(t.updateProgress(E),t.setTransition(b),t.setTranslate(y),t.transitionStart(!0,t.swipeDirection),t.animating=!0,s.transitionEnd((function(){t&&!t.destroyed&&n.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(a.speed),t.setTranslate(E),s.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))}))):t.velocity?(t.updateProgress(y),t.setTransition(b),t.setTranslate(y),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,s.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(y),t.updateActiveIndex(),t.updateSlidesClasses()}else if(a.freeModeSticky)return void t.slideToClosest();(!a.freeModeMomentum||p>=a.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var P=0,M=t.slidesSizesGrid[0],I=0;I<o.length;I+=a.slidesPerGroup)void 0!==o[I+a.slidesPerGroup]?u>=o[I]&&u<o[I+a.slidesPerGroup]&&(P=I,M=o[I+a.slidesPerGroup]-o[I]):u>=o[I]&&(P=I,M=o[o.length-1]-o[o.length-2]);var z=(u-o[P])/M;if(p>a.longSwipesMs){if(!a.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(z>=a.longSwipesRatio?t.slideTo(P+a.slidesPerGroup):t.slideTo(P)),"prev"===t.swipeDirection&&(z>1-a.longSwipesRatio?t.slideTo(P+a.slidesPerGroup):t.slideTo(P))}else{if(!a.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(P+a.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(P)}}}function $(){var e=this,t=e.params,n=e.el;if(!n||0!==n.offsetWidth){t.breakpoints&&e.setBreakpoint();var a=e.allowSlideNext,i=e.allowSlidePrev,r=e.snapGrid;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){var s=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=i,e.allowSlideNext=a,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}}function O(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}var L={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},A={update:y,translate:E,transition:x,slide:S,loop:T,grabCursor:C,manipulation:k,events:{attachEvents:function(){var e=this,t=e.params,n=e.touchEvents,a=e.el,i=e.wrapperEl;e.onTouchStart=M.bind(e),e.onTouchMove=I.bind(e),e.onTouchEnd=z.bind(e),e.onClick=O.bind(e);var r="container"===t.touchEventsTarget?a:i,s=!!t.nested;if(g.touch||!g.pointerEvents&&!g.prefixedPointerEvents){if(g.touch){var o=!("touchstart"!==n.start||!g.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};r.addEventListener(n.start,e.onTouchStart,o),r.addEventListener(n.move,e.onTouchMove,g.passiveListener?{passive:!1,capture:s}:s),r.addEventListener(n.end,e.onTouchEnd,o)}(t.simulateTouch&&!P.ios&&!P.android||t.simulateTouch&&!g.touch&&P.ios)&&(r.addEventListener("mousedown",e.onTouchStart,!1),u.t.addEventListener("mousemove",e.onTouchMove,s),u.t.addEventListener("mouseup",e.onTouchEnd,!1))}else r.addEventListener(n.start,e.onTouchStart,!1),u.t.addEventListener(n.move,e.onTouchMove,s),u.t.addEventListener(n.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&r.addEventListener("click",e.onClick,!0),e.on(P.ios||P.android?"resize orientationchange observerUpdate":"resize observerUpdate",$,!0)},detachEvents:function(){var e=this,t=e.params,n=e.touchEvents,a=e.el,i=e.wrapperEl,r="container"===t.touchEventsTarget?a:i,s=!!t.nested;if(g.touch||!g.pointerEvents&&!g.prefixedPointerEvents){if(g.touch){var o=!("onTouchStart"!==n.start||!g.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};r.removeEventListener(n.start,e.onTouchStart,o),r.removeEventListener(n.move,e.onTouchMove,s),r.removeEventListener(n.end,e.onTouchEnd,o)}(t.simulateTouch&&!P.ios&&!P.android||t.simulateTouch&&!g.touch&&P.ios)&&(r.removeEventListener("mousedown",e.onTouchStart,!1),u.t.removeEventListener("mousemove",e.onTouchMove,s),u.t.removeEventListener("mouseup",e.onTouchEnd,!1))}else r.removeEventListener(n.start,e.onTouchStart,!1),u.t.removeEventListener(n.move,e.onTouchMove,s),u.t.removeEventListener(n.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&r.removeEventListener("click",e.onClick,!0),e.off(P.ios||P.android?"resize orientationchange observerUpdate":"resize observerUpdate",$)}},breakpoints:{setBreakpoint:function(){var e=this,t=e.activeIndex,n=e.initialized,a=e.loopedSlides,i=void 0===a?0:a,r=e.params,s=r.breakpoints;if(s&&(!s||0!==Object.keys(s).length)){var o=e.getBreakpoint(s);if(o&&e.currentBreakpoint!==o){var l=o in s?s[o]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach((function(e){var t=l[e];void 0!==t&&(l[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var c=l||e.originalParams,u=c.direction&&c.direction!==r.direction,d=r.loop&&(c.slidesPerView!==r.slidesPerView||u);u&&n&&e.changeDirection(),m.extend(e.params,c),m.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=o,d&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-i+e.loopedSlides,0,!1)),e.emit("breakpoint",c)}}},getBreakpoint:function(e){if(e){var t=!1,n=[];Object.keys(e).forEach((function(e){n.push(e)})),n.sort((function(e,t){return parseInt(e,10)-parseInt(t,10)}));for(var a=0;a<n.length;a+=1){var i=n[a];this.params.breakpointsInverse?i<=u.u.innerWidth&&(t=i):i>=u.u.innerWidth&&!t&&(t=i)}return t||"max"}}},checkOverflow:{checkOverflow:function(){var e=this,t=e.isLocked;e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}},classes:{addClasses:function(){var e=this,t=e.classNames,n=e.params,a=e.rtl,i=e.$el,r=[];r.push("initialized"),r.push(n.direction),n.freeMode&&r.push("free-mode"),g.flexbox||r.push("no-flexbox"),n.autoHeight&&r.push("autoheight"),a&&r.push("rtl"),n.slidesPerColumn>1&&r.push("multirow"),P.android&&r.push("android"),P.ios&&r.push("ios"),(b.isIE||b.isEdge)&&(g.pointerEvents||g.prefixedPointerEvents)&&r.push("wp8-".concat(n.direction)),r.forEach((function(e){t.push(n.containerModifierClass+e)})),i.addClass(t.join(" "))},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" "))}},images:{loadImage:function(e,t,n,a,i,r){var s;function o(){r&&r()}e.complete&&i?o():t?((s=new u.u.Image).onload=o,s.onerror=o,a&&(s.sizes=a),n&&(s.srcset=n),t&&(s.src=t)):o()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;n<e.imagesToLoad.length;n+=1){var a=e.imagesToLoad[n];e.loadImage(a,a.currentSrc||a.getAttribute("src"),a.srcset||a.getAttribute("srcset"),a.sizes||a.getAttribute("sizes"),!0,t)}}}},D={},N=function(e){(0,i.Z)(n,e);var t=d(n);function n(){var e,i,s;(0,o.Z)(this,n);for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];1===u.length&&u[0].constructor&&u[0].constructor===Object?s=u[0]:(i=u[0],s=u[1]),s||(s={}),s=m.extend({},s),i&&!s.el&&(s.el=i),e=t.call(this,s),Object.keys(A).forEach((function(e){Object.keys(A[e]).forEach((function(t){n.prototype[t]||(n.prototype[t]=A[e][t])}))}));var p=(0,a.Z)(e);void 0===p.modules&&(p.modules={}),Object.keys(p.modules).forEach((function(e){var t=p.modules[e];if(t.params){var n=Object.keys(t.params)[0],a=t.params[n];if("object"!=typeof a||null===a)return;if(!(n in s)||!("enabled"in a))return;!0===s[n]&&(s[n]={enabled:!0}),"object"!=typeof s[n]||"enabled"in s[n]||(s[n].enabled=!0),s[n]||(s[n]={enabled:!1})}}));var f=m.extend({},L);p.useModulesParams(f),p.params=m.extend({},f,D,s),p.originalParams=m.extend({},p.params),p.passedParams=m.extend({},s),p.$=c.$;var h=(0,c.$)(p.params.el);if(!(i=h[0]))return(0,r.Z)(e,void 0);if(h.length>1){var v=[];return h.each((function(e,t){var a=m.extend({},s,{el:t});v.push(new n(a))})),(0,r.Z)(e,v)}i.swiper=p,h.data("swiper",p);var b,w,y=h.children(".".concat(p.params.wrapperClass));return m.extend(p,{$el:h,el:i,$wrapperEl:y,wrapperEl:y[0],classNames:[],slides:(0,c.$)(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===p.params.direction},isVertical:function(){return"vertical"===p.params.direction},rtl:"rtl"===i.dir.toLowerCase()||"rtl"===h.css("direction"),rtlTranslate:"horizontal"===p.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===h.css("direction")),wrongRTL:"-webkit-box"===y.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:p.params.allowSlideNext,allowSlidePrev:p.params.allowSlidePrev,touchEvents:(b=["touchstart","touchmove","touchend"],w=["mousedown","mousemove","mouseup"],g.pointerEvents?w=["pointerdown","pointermove","pointerup"]:g.prefixedPointerEvents&&(w=["MSPointerDown","MSPointerMove","MSPointerUp"]),p.touchEventsTouch={start:b[0],move:b[1],end:b[2]},p.touchEventsDesktop={start:w[0],move:w[1],end:w[2]},g.touch||!p.params.simulateTouch?p.touchEventsTouch:p.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:m.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:p.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),p.useModules(),p.params.init&&p.init(),(0,r.Z)(e,p)}return(0,l.Z)(n,[{key:"slidesPerViewDynamic",value:function(){var e=this,t=e.params,n=e.slides,a=e.slidesGrid,i=e.size,r=e.activeIndex,s=1;if(t.centeredSlides){for(var o,l=n[r].swiperSlideSize,c=r+1;c<n.length;c+=1)n[c]&&!o&&(s+=1,(l+=n[c].swiperSlideSize)>i&&(o=!0));for(var u=r-1;u>=0;u-=1)n[u]&&!o&&(s+=1,(l+=n[u].swiperSlideSize)>i&&(o=!0))}else for(var d=r+1;d<n.length;d+=1)a[d]-a[r]<i&&(s+=1);return s}},{key:"update",value:function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,n=e.params;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(a(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||a(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function a(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}}},{key:"changeDirection",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,a=n.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass("".concat(n.params.containerModifierClass).concat(a," wp8-").concat(a)).addClass("".concat(n.params.containerModifierClass).concat(e)),(b.isIE||b.isEdge)&&(g.pointerEvents||g.prefixedPointerEvents)&&n.$el.addClass("".concat(n.params.containerModifierClass,"wp8-").concat(e)),n.params.direction=e,n.slides.each((function(t,n){"vertical"===e?n.style.width="":n.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}},{key:"init",value:function(){var e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))}},{key:"destroy",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,a=n.params,i=n.$el,r=n.$wrapperEl,s=n.slides;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),a.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttr("style"),r.removeAttr("style"),s&&s.length&&s.removeClass([a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((function(e){n.off(e)})),!1!==e&&(n.$el[0].swiper=null,n.$el.data("swiper",null),m.deleteProps(n)),n.destroyed=!0),null}}],[{key:"extendDefaults",value:function(e){m.extend(D,e)}},{key:"extendedDefaults",get:function(){return D}},{key:"defaults",get:function(){return L}},{key:"Class",get:function(){return w}},{key:"$",get:function(){return c.$}}]),n}(w),_={name:"device",proto:{device:P},static:{device:P}},R={name:"support",proto:{support:g},static:{support:g}},B={name:"browser",proto:{browser:b},static:{browser:b}},V={name:"resize",create:function(){var e=this;m.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){u.u.addEventListener("resize",this.resize.resizeHandler),u.u.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){u.u.removeEventListener("resize",this.resize.resizeHandler),u.u.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},H={func:u.u.MutationObserver||u.u.WebkitMutationObserver,attach:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,a=H.func,i=new a((function(e){if(1!==e.length){var t=function(){n.emit("observerUpdate",e[0])};u.u.requestAnimationFrame?u.u.requestAnimationFrame(t):u.u.setTimeout(t,0)}else n.emit("observerUpdate",e[0])}));i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),n.observer.observers.push(i)},init:function(){var e=this;if(g.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),n=0;n<t.length;n+=1)e.observer.attach(t[n]);e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(e){e.disconnect()})),this.observer.observers=[]}},Z={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;m.extend(e,{observer:{init:H.init.bind(e),attach:H.attach.bind(e),destroy:H.destroy.bind(e),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},j={update:function(e){var t=this,n=t.params,a=n.slidesPerView,i=n.slidesPerGroup,r=n.centeredSlides,s=t.params.virtual,o=s.addSlidesBefore,l=s.addSlidesAfter,c=t.virtual,u=c.from,d=c.to,p=c.slides,f=c.slidesGrid,h=c.renderSlide,v=c.offset;t.updateActiveIndex();var g,b,w,y=t.activeIndex||0;g=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",r?(b=Math.floor(a/2)+i+o,w=Math.floor(a/2)+i+l):(b=a+(i-1)+o,w=i+l);var E=Math.max((y||0)-w,0),x=Math.min((y||0)+b,p.length-1),S=(t.slidesGrid[E]||0)-(t.slidesGrid[0]||0);function T(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(m.extend(t.virtual,{from:E,to:x,offset:S,slidesGrid:t.slidesGrid}),u===E&&d===x&&!e)return t.slidesGrid!==f&&S!==v&&t.slides.css(g,"".concat(S,"px")),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:S,from:E,to:x,slides:function(){for(var e=[],t=E;t<=x;t+=1)e.push(p[t]);return e}()}),void T();var C=[],k=[];if(e)t.$wrapperEl.find(".".concat(t.params.slideClass)).remove();else for(var P=u;P<=d;P+=1)(P<E||P>x)&&t.$wrapperEl.find(".".concat(t.params.slideClass,'[data-swiper-slide-index="').concat(P,'"]')).remove();for(var M=0;M<p.length;M+=1)M>=E&&M<=x&&(void 0===d||e?k.push(M):(M>d&&k.push(M),M<u&&C.push(M)));k.forEach((function(e){t.$wrapperEl.append(h(p[e],e))})),C.sort((function(e,t){return t-e})).forEach((function(e){t.$wrapperEl.prepend(h(p[e],e))})),t.$wrapperEl.children(".swiper-slide").css(g,"".concat(S,"px")),T()},renderSlide:function(e,t){var n=this,a=n.params.virtual;if(a.cache&&n.virtual.cache[t])return n.virtual.cache[t];var i=a.renderSlide?(0,c.$)(a.renderSlide.call(n,e,t)):(0,c.$)('<div class="'.concat(n.params.slideClass,'" data-swiper-slide-index="').concat(t,'">').concat(e,"</div>"));return i.attr("data-swiper-slide-index")||i.attr("data-swiper-slide-index",t),a.cache&&(n.virtual.cache[t]=i),i},appendSlide:function(e){var t=this;if("object"==typeof e&&"length"in e)for(var n=0;n<e.length;n+=1)e[n]&&t.virtual.slides.push(e[n]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide:function(e){var t=this,n=t.activeIndex,a=n+1,i=1;if(Array.isArray(e)){for(var r=0;r<e.length;r+=1)e[r]&&t.virtual.slides.unshift(e[r]);a=n+e.length,i=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){var s=t.virtual.cache,o={};Object.keys(s).forEach((function(e){o[parseInt(e,10)+i]=s[e]})),t.virtual.cache=o}t.virtual.update(!0),t.slideTo(a,0)},removeSlide:function(e){var t=this;if(null!=e){var n=t.activeIndex;if(Array.isArray(e))for(var a=e.length-1;a>=0;a-=1)t.virtual.slides.splice(e[a],1),t.params.virtual.cache&&delete t.virtual.cache[e[a]],e[a]<n&&(n-=1),n=Math.max(n,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<n&&(n-=1),n=Math.max(n,0);t.virtual.update(!0),t.slideTo(n,0)}},removeAllSlides:function(){var e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}},G={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;m.extend(e,{virtual:{update:j.update.bind(e),appendSlide:j.appendSlide.bind(e),prependSlide:j.prependSlide.bind(e),removeSlide:j.removeSlide.bind(e),removeAllSlides:j.removeAllSlides.bind(e),renderSlide:j.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var e=this;if(e.params.virtual.enabled){e.classNames.push("".concat(e.params.containerModifierClass,"virtual"));var t={watchSlidesProgress:!0};m.extend(e.params,t),m.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},X={handle:function(e){var t=this,n=t.rtlTranslate,a=e;a.originalEvent&&(a=a.originalEvent);var i=a.keyCode||a.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&39===i||t.isVertical()&&40===i||34===i))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&37===i||t.isVertical()&&38===i||33===i))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||u.t.activeElement&&u.t.activeElement.nodeName&&("input"===u.t.activeElement.nodeName.toLowerCase()||"textarea"===u.t.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(33===i||34===i||37===i||39===i||38===i||40===i)){var r=!1;if(t.$el.parents(".".concat(t.params.slideClass)).length>0&&0===t.$el.parents(".".concat(t.params.slideActiveClass)).length)return;var s=u.u.innerWidth,o=u.u.innerHeight,l=t.$el.offset();n&&(l.left-=t.$el[0].scrollLeft);for(var c=[[l.left,l.top],[l.left+t.width,l.top],[l.left,l.top+t.height],[l.left+t.width,l.top+t.height]],d=0;d<c.length;d+=1){var p=c[d];p[0]>=0&&p[0]<=s&&p[1]>=0&&p[1]<=o&&(r=!0)}if(!r)return}t.isHorizontal()?(33!==i&&34!==i&&37!==i&&39!==i||(a.preventDefault?a.preventDefault():a.returnValue=!1),(34!==i&&39!==i||n)&&(33!==i&&37!==i||!n)||t.slideNext(),(33!==i&&37!==i||n)&&(34!==i&&39!==i||!n)||t.slidePrev()):(33!==i&&34!==i&&38!==i&&40!==i||(a.preventDefault?a.preventDefault():a.returnValue=!1),34!==i&&40!==i||t.slideNext(),33!==i&&38!==i||t.slidePrev()),t.emit("keyPress",i)}},enable:function(){var e=this;e.keyboard.enabled||((0,c.$)(u.t).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable:function(){var e=this;e.keyboard.enabled&&((0,c.$)(u.t).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}},F={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var e=this;m.extend(e,{keyboard:{enabled:!1,enable:X.enable.bind(e),disable:X.disable.bind(e),handle:X.handle.bind(e)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var Y={lastScrollTime:m.now(),event:u.u.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var e="onwheel",t=e in u.t;if(!t){var n=u.t.createElement("div");n.setAttribute(e,"return;"),t="function"==typeof n.onwheel}return!t&&u.t.implementation&&u.t.implementation.hasFeature&&!0!==u.t.implementation.hasFeature("","")&&(t=u.t.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel",normalize:function(e){var t=0,n=0,a=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),a=10*t,i=10*n,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||i)&&e.deltaMode&&(1===e.deltaMode?(a*=40,i*=40):(a*=800,i*=800)),a&&!t&&(t=a<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:a,pixelY:i}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,n=this,a=n.params.mousewheel;if(!n.mouseEntered&&!a.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var i=0,r=n.rtlTranslate?-1:1,s=Y.normalize(t);if(a.forceToAxis)if(n.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;i=s.pixelX*r}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;i=s.pixelY}else i=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*r:-s.pixelY;if(0===i)return!0;if(a.invert&&(i=-i),n.params.freeMode){n.params.loop&&n.loopFix();var o=n.getTranslate()+i*a.sensitivity,l=n.isBeginning,c=n.isEnd;if(o>=n.minTranslate()&&(o=n.minTranslate()),o<=n.maxTranslate()&&(o=n.maxTranslate()),n.setTransition(0),n.setTranslate(o),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!l&&n.isBeginning||!c&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky&&(clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=m.nextTick((function(){n.slideToClosest()}),300)),n.emit("scroll",t),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),o===n.minTranslate()||o===n.maxTranslate())return!0}else{if(m.now()-n.mousewheel.lastScrollTime>60)if(i<0)if(n.isEnd&&!n.params.loop||n.animating){if(a.releaseOnEdges)return!0}else n.slideNext(),n.emit("scroll",t);else if(n.isBeginning&&!n.params.loop||n.animating){if(a.releaseOnEdges)return!0}else n.slidePrev(),n.emit("scroll",t);n.mousewheel.lastScrollTime=(new u.u.Date).getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable:function(){var e=this;if(!Y.event)return!1;if(e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=(0,c.$)(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(Y.event,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable:function(){var e=this;if(!Y.event)return!1;if(!e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=(0,c.$)(e.params.mousewheel.eventsTarged)),t.off(Y.event,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}},q={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var n=e.navigation,a=n.$nextEl,i=n.$prevEl;i&&i.length>0&&(e.isBeginning?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),a&&a.length>0&&(e.isEnd?a.addClass(t.disabledClass):a.removeClass(t.disabledClass),a[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,n=this,a=n.params.navigation;(a.nextEl||a.prevEl)&&(a.nextEl&&(e=(0,c.$)(a.nextEl),n.params.uniqueNavElements&&"string"==typeof a.nextEl&&e.length>1&&1===n.$el.find(a.nextEl).length&&(e=n.$el.find(a.nextEl))),a.prevEl&&(t=(0,c.$)(a.prevEl),n.params.uniqueNavElements&&"string"==typeof a.prevEl&&t.length>1&&1===n.$el.find(a.prevEl).length&&(t=n.$el.find(a.prevEl))),e&&e.length>0&&e.on("click",n.navigation.onNextClick),t&&t.length>0&&t.on("click",n.navigation.onPrevClick),m.extend(n.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this,t=e.navigation,n=t.$nextEl,a=t.$prevEl;n&&n.length&&(n.off("click",e.navigation.onNextClick),n.removeClass(e.params.navigation.disabledClass)),a&&a.length&&(a.off("click",e.navigation.onPrevClick),a.removeClass(e.params.navigation.disabledClass))}},W={update:function(){var e=this,t=e.rtl,n=e.params.pagination;if(n.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a,i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,r=e.pagination.$el,s=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?((a=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup))>i-1-2*e.loopedSlides&&(a-=i-2*e.loopedSlides),a>s-1&&(a-=s),a<0&&"bullets"!==e.params.paginationType&&(a=s+a)):a=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){var o,l,u,d=e.pagination.bullets;if(n.dynamicBullets&&(e.pagination.bulletSize=d.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),r.css(e.isHorizontal()?"width":"height","".concat(e.pagination.bulletSize*(n.dynamicMainBullets+4),"px")),n.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=a-e.previousIndex,e.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),o=a-e.pagination.dynamicBulletIndex,u=((l=o+(Math.min(d.length,n.dynamicMainBullets)-1))+o)/2),d.removeClass("".concat(n.bulletActiveClass," ").concat(n.bulletActiveClass,"-next ").concat(n.bulletActiveClass,"-next-next ").concat(n.bulletActiveClass,"-prev ").concat(n.bulletActiveClass,"-prev-prev ").concat(n.bulletActiveClass,"-main")),r.length>1)d.each((function(e,t){var i=(0,c.$)(t),r=i.index();r===a&&i.addClass(n.bulletActiveClass),n.dynamicBullets&&(r>=o&&r<=l&&i.addClass("".concat(n.bulletActiveClass,"-main")),r===o&&i.prev().addClass("".concat(n.bulletActiveClass,"-prev")).prev().addClass("".concat(n.bulletActiveClass,"-prev-prev")),r===l&&i.next().addClass("".concat(n.bulletActiveClass,"-next")).next().addClass("".concat(n.bulletActiveClass,"-next-next")))}));else if(d.eq(a).addClass(n.bulletActiveClass),n.dynamicBullets){for(var p=d.eq(o),f=d.eq(l),h=o;h<=l;h+=1)d.eq(h).addClass("".concat(n.bulletActiveClass,"-main"));p.prev().addClass("".concat(n.bulletActiveClass,"-prev")).prev().addClass("".concat(n.bulletActiveClass,"-prev-prev")),f.next().addClass("".concat(n.bulletActiveClass,"-next")).next().addClass("".concat(n.bulletActiveClass,"-next-next"))}if(n.dynamicBullets){var v=Math.min(d.length,n.dynamicMainBullets+4),m=(e.pagination.bulletSize*v-e.pagination.bulletSize)/2-u*e.pagination.bulletSize,g=t?"right":"left";d.css(e.isHorizontal()?g:"top","".concat(m,"px"))}}if("fraction"===n.type&&(r.find(".".concat(n.currentClass)).text(n.formatFractionCurrent(a+1)),r.find(".".concat(n.totalClass)).text(n.formatFractionTotal(s))),"progressbar"===n.type){var b;b=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";var w=(a+1)/s,y=1,E=1;"horizontal"===b?y=w:E=w,r.find(".".concat(n.progressbarFillClass)).transform("translate3d(0,0,0) scaleX(".concat(y,") scaleY(").concat(E,")")).transition(e.params.speed)}"custom"===n.type&&n.renderCustom?(r.html(n.renderCustom(e,a+1,s)),e.emit("paginationRender",e,r[0])):e.emit("paginationUpdate",e,r[0]),r[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](n.lockClass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,a=e.pagination.$el,i="";if("bullets"===t.type){for(var r=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,s=0;s<r;s+=1)t.renderBullet?i+=t.renderBullet.call(e,s,t.bulletClass):i+="<".concat(t.bulletElement,' class="').concat(t.bulletClass,'"></').concat(t.bulletElement,">");a.html(i),e.pagination.bullets=a.find(".".concat(t.bulletClass))}"fraction"===t.type&&(i=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'.concat(t.currentClass,'"></span>')+" / "+'<span class="'.concat(t.totalClass,'"></span>'),a.html(i)),"progressbar"===t.type&&(i=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'.concat(t.progressbarFillClass,'"></span>'),a.html(i)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var n=(0,c.$)(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&1===e.$el.find(t.el).length&&(n=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(n.addClass("".concat(t.modifierClass).concat(t.type,"-dynamic")),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click",".".concat(t.bulletClass),(function(t){t.preventDefault();var n=(0,c.$)(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)})),m.extend(e.pagination,{$el:n,el:n[0]}))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var n=e.pagination.$el;n.removeClass(t.hiddenClass),n.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&n.off("click",".".concat(t.bulletClass))}}},U={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,n=e.rtlTranslate,a=e.progress,i=t.dragSize,r=t.trackSize,s=t.$dragEl,o=t.$el,l=e.params.scrollbar,c=i,u=(r-i)*a;n?(u=-u)>0?(c=i-u,u=0):-u+i>r&&(c=r+u):u<0?(c=i+u,u=0):u+i>r&&(c=r-u),e.isHorizontal()?(g.transforms3d?s.transform("translate3d(".concat(u,"px, 0, 0)")):s.transform("translateX(".concat(u,"px)")),s[0].style.width="".concat(c,"px")):(g.transforms3d?s.transform("translate3d(0px, ".concat(u,"px, 0)")):s.transform("translateY(".concat(u,"px)")),s[0].style.height="".concat(c,"px")),l.hide&&(clearTimeout(e.scrollbar.timeout),o[0].style.opacity=1,e.scrollbar.timeout=setTimeout((function(){o[0].style.opacity=0,o.transition(400)}),1e3))}},setTransition:function(e){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)},updateSize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,n=t.$dragEl,a=t.$el;n[0].style.width="",n[0].style.height="";var i,r=e.isHorizontal()?a[0].offsetWidth:a[0].offsetHeight,s=e.size/e.virtualSize,o=s*(r/e.size);i="auto"===e.params.scrollbar.dragSize?r*s:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?n[0].style.width="".concat(i,"px"):n[0].style.height="".concat(i,"px"),a[0].style.display=s>=1?"none":"",e.params.scrollbar.hide&&(a[0].style.opacity=0),m.extend(t,{trackSize:r,divider:s,moveDivider:o,dragSize:i}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY},setDragPosition:function(e){var t,n=this,a=n.scrollbar,i=n.rtlTranslate,r=a.$el,s=a.dragSize,o=a.trackSize,l=a.dragStartPos;t=(a.getPointerPosition(e)-r.offset()[n.isHorizontal()?"left":"top"]-(null!==l?l:s/2))/(o-s),t=Math.max(Math.min(t,1),0),i&&(t=1-t);var c=n.minTranslate()+(n.maxTranslate()-n.minTranslate())*t;n.updateProgress(c),n.setTranslate(c),n.updateActiveIndex(),n.updateSlidesClasses()},onDragStart:function(e){var t=this,n=t.params.scrollbar,a=t.scrollbar,i=t.$wrapperEl,r=a.$el,s=a.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===s[0]||e.target===s?a.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.transition(100),s.transition(100),a.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),r.transition(0),n.hide&&r.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,n=t.scrollbar,a=t.$wrapperEl,i=n.$el,r=n.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,n.setDragPosition(e),a.transition(0),i.transition(0),r.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,n=t.params.scrollbar,a=t.scrollbar.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,n.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=m.nextTick((function(){a.css("opacity",0),a.transition(400)}),1e3)),t.emit("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,n=e.touchEventsTouch,a=e.touchEventsDesktop,i=e.params,r=t.$el[0],s=!(!g.passiveListener||!i.passiveListeners)&&{passive:!1,capture:!1},o=!(!g.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};g.touch?(r.addEventListener(n.start,e.scrollbar.onDragStart,s),r.addEventListener(n.move,e.scrollbar.onDragMove,s),r.addEventListener(n.end,e.scrollbar.onDragEnd,o)):(r.addEventListener(a.start,e.scrollbar.onDragStart,s),u.t.addEventListener(a.move,e.scrollbar.onDragMove,s),u.t.addEventListener(a.end,e.scrollbar.onDragEnd,o))}},disableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,n=e.touchEventsTouch,a=e.touchEventsDesktop,i=e.params,r=t.$el[0],s=!(!g.passiveListener||!i.passiveListeners)&&{passive:!1,capture:!1},o=!(!g.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};g.touch?(r.removeEventListener(n.start,e.scrollbar.onDragStart,s),r.removeEventListener(n.move,e.scrollbar.onDragMove,s),r.removeEventListener(n.end,e.scrollbar.onDragEnd,o)):(r.removeEventListener(a.start,e.scrollbar.onDragStart,s),u.t.removeEventListener(a.move,e.scrollbar.onDragMove,s),u.t.removeEventListener(a.end,e.scrollbar.onDragEnd,o))}},init:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,n=e.$el,a=e.params.scrollbar,i=(0,c.$)(a.el);e.params.uniqueNavElements&&"string"==typeof a.el&&i.length>1&&1===n.find(a.el).length&&(i=n.find(a.el));var r=i.find(".".concat(e.params.scrollbar.dragClass));0===r.length&&(r=(0,c.$)('<div class="'.concat(e.params.scrollbar.dragClass,'"></div>')),i.append(r)),m.extend(t,{$el:i,el:i[0],$dragEl:r,dragEl:r[0]}),a.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},K={setTransform:function(e,t){var n=this.rtl,a=(0,c.$)(e),i=n?-1:1,r=a.attr("data-swiper-parallax")||"0",s=a.attr("data-swiper-parallax-x"),o=a.attr("data-swiper-parallax-y"),l=a.attr("data-swiper-parallax-scale"),u=a.attr("data-swiper-parallax-opacity");if(s||o?(s=s||"0",o=o||"0"):this.isHorizontal()?(s=r,o="0"):(o=r,s="0"),s=s.indexOf("%")>=0?"".concat(parseInt(s,10)*t*i,"%"):"".concat(s*t*i,"px"),o=o.indexOf("%")>=0?"".concat(parseInt(o,10)*t,"%"):"".concat(o*t,"px"),null!=u){var d=u-(u-1)*(1-Math.abs(t));a[0].style.opacity=d}if(null==l)a.transform("translate3d(".concat(s,", ").concat(o,", 0px)"));else{var p=l-(l-1)*(1-Math.abs(t));a.transform("translate3d(".concat(s,", ").concat(o,", 0px) scale(").concat(p,")"))}},setTranslate:function(){var e=this,t=e.$el,n=e.slides,a=e.progress,i=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){e.parallax.setTransform(n,a)})),n.each((function(t,n){var r=n.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(r+=Math.ceil(t/2)-a*(i.length-1)),r=Math.min(Math.max(r,-1),1),(0,c.$)(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){e.parallax.setTransform(n,r)}))}))},setTransition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=this,n=t.$el;n.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){var a=(0,c.$)(n),i=parseInt(a.attr("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),a.transition(i)}))}},Q={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,a=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(a-t,2)+Math.pow(i-n,2))},onGestureStart:function(e){var t=this,n=t.params.zoom,a=t.zoom,i=a.gesture;if(a.fakeGestureTouched=!1,a.fakeGestureMoved=!1,!g.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;a.fakeGestureTouched=!0,i.scaleStart=Q.getDistanceBetweenTouches(e)}i.$slideEl&&i.$slideEl.length||(i.$slideEl=(0,c.$)(e.target).closest(".swiper-slide"),0===i.$slideEl.length&&(i.$slideEl=t.slides.eq(t.activeIndex)),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent(".".concat(n.containerClass)),i.maxRatio=i.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0!==i.$imageWrapEl.length)?(i.$imageEl.transition(0),t.zoom.isScaling=!0):i.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,n=this.zoom,a=n.gesture;if(!g.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;n.fakeGestureMoved=!0,a.scaleMove=Q.getDistanceBetweenTouches(e)}a.$imageEl&&0!==a.$imageEl.length&&(n.scale=g.gestures?e.scale*n.currentScale:a.scaleMove/a.scaleStart*n.currentScale,n.scale>a.maxRatio&&(n.scale=a.maxRatio-1+Math.pow(n.scale-a.maxRatio+1,.5)),n.scale<t.minRatio&&(n.scale=t.minRatio+1-Math.pow(t.minRatio-n.scale+1,.5)),a.$imageEl.transform("translate3d(0,0,0) scale(".concat(n.scale,")")))},onGestureEnd:function(e){var t=this,n=t.params.zoom,a=t.zoom,i=a.gesture;if(!g.gestures){if(!a.fakeGestureTouched||!a.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!P.android)return;a.fakeGestureTouched=!1,a.fakeGestureMoved=!1}i.$imageEl&&0!==i.$imageEl.length&&(a.scale=Math.max(Math.min(a.scale,i.maxRatio),n.minRatio),i.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale(".concat(a.scale,")")),a.currentScale=a.scale,a.isScaling=!1,1===a.scale&&(i.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,n=t.gesture,a=t.image;n.$imageEl&&0!==n.$imageEl.length&&(a.isTouched||(P.android&&e.preventDefault(),a.isTouched=!0,a.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,a.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this,n=t.zoom,a=n.gesture,i=n.image,r=n.velocity;if(a.$imageEl&&0!==a.$imageEl.length&&(t.allowClick=!1,i.isTouched&&a.$slideEl)){i.isMoved||(i.width=a.$imageEl[0].offsetWidth,i.height=a.$imageEl[0].offsetHeight,i.startX=m.getTranslate(a.$imageWrapEl[0],"x")||0,i.startY=m.getTranslate(a.$imageWrapEl[0],"y")||0,a.slideWidth=a.$slideEl[0].offsetWidth,a.slideHeight=a.$slideEl[0].offsetHeight,a.$imageWrapEl.transition(0),t.rtl&&(i.startX=-i.startX,i.startY=-i.startY));var s=i.width*n.scale,o=i.height*n.scale;if(!(s<a.slideWidth&&o<a.slideHeight)){if(i.minX=Math.min(a.slideWidth/2-s/2,0),i.maxX=-i.minX,i.minY=Math.min(a.slideHeight/2-o/2,0),i.maxY=-i.minY,i.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,i.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!i.isMoved&&!n.isScaling){if(t.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x))return void(i.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y))return void(i.isTouched=!1)}e.preventDefault(),e.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-Math.pow(i.minX-i.currentX+1,.8)),i.currentX>i.maxX&&(i.currentX=i.maxX-1+Math.pow(i.currentX-i.maxX+1,.8)),i.currentY<i.minY&&(i.currentY=i.minY+1-Math.pow(i.minY-i.currentY+1,.8)),i.currentY>i.maxY&&(i.currentY=i.maxY-1+Math.pow(i.currentY-i.maxY+1,.8)),r.prevPositionX||(r.prevPositionX=i.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=i.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(i.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(i.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(i.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0),Math.abs(i.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0),r.prevPositionX=i.touchesCurrent.x,r.prevPositionY=i.touchesCurrent.y,r.prevTime=Date.now(),a.$imageWrapEl.transform("translate3d(".concat(i.currentX,"px, ").concat(i.currentY,"px,0)"))}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,n=e.image,a=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var i=300,r=300,s=a.x*i,o=n.currentX+s,l=a.y*r,c=n.currentY+l;0!==a.x&&(i=Math.abs((o-n.currentX)/a.x)),0!==a.y&&(r=Math.abs((c-n.currentY)/a.y));var u=Math.max(i,r);n.currentX=o,n.currentY=c;var d=n.width*e.scale,p=n.height*e.scale;n.minX=Math.min(t.slideWidth/2-d/2,0),n.maxX=-n.minX,n.minY=Math.min(t.slideHeight/2-p/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),t.$imageWrapEl.transition(u).transform("translate3d(".concat(n.currentX,"px, ").concat(n.currentY,"px,0)"))}},onTransitionEnd:function(){var e=this,t=e.zoom,n=t.gesture;n.$slideEl&&e.previousIndex!==e.activeIndex&&(n.$imageEl.transform("translate3d(0,0,0) scale(1)"),n.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,n,a,i,r,s,o,l,u,d,p,f,h,v,m,g,b=this,w=b.zoom,y=b.params.zoom,E=w.gesture,x=w.image;(E.$slideEl||(E.$slideEl=b.clickedSlide?(0,c.$)(b.clickedSlide):b.slides.eq(b.activeIndex),E.$imageEl=E.$slideEl.find("img, svg, canvas"),E.$imageWrapEl=E.$imageEl.parent(".".concat(y.containerClass))),E.$imageEl&&0!==E.$imageEl.length)&&(E.$slideEl.addClass("".concat(y.zoomedSlideClass)),void 0===x.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,n="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=x.touchesStart.x,n=x.touchesStart.y),w.scale=E.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,w.currentScale=E.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,e?(m=E.$slideEl[0].offsetWidth,g=E.$slideEl[0].offsetHeight,a=E.$slideEl.offset().left+m/2-t,i=E.$slideEl.offset().top+g/2-n,o=E.$imageEl[0].offsetWidth,l=E.$imageEl[0].offsetHeight,u=o*w.scale,d=l*w.scale,h=-(p=Math.min(m/2-u/2,0)),v=-(f=Math.min(g/2-d/2,0)),(r=a*w.scale)<p&&(r=p),r>h&&(r=h),(s=i*w.scale)<f&&(s=f),s>v&&(s=v)):(r=0,s=0),E.$imageWrapEl.transition(300).transform("translate3d(".concat(r,"px, ").concat(s,"px,0)")),E.$imageEl.transition(300).transform("translate3d(0,0,0) scale(".concat(w.scale,")")))},out:function(){var e=this,t=e.zoom,n=e.params.zoom,a=t.gesture;a.$slideEl||(a.$slideEl=e.clickedSlide?(0,c.$)(e.clickedSlide):e.slides.eq(e.activeIndex),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent(".".concat(n.containerClass))),a.$imageEl&&0!==a.$imageEl.length&&(t.scale=1,t.currentScale=1,a.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),a.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),a.$slideEl.removeClass("".concat(n.zoomedSlideClass)),a.$slideEl=void 0)},enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var n=!("touchstart"!==e.touchEvents.start||!g.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};g.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),e.$wrapperEl.on(e.touchEvents.move,".".concat(e.params.zoom.containerClass),t.onTouchMove)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){e.zoom.enabled=!1;var n=!("touchstart"!==e.touchEvents.start||!g.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};g.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),e.$wrapperEl.off(e.touchEvents.move,".".concat(e.params.zoom.containerClass),t.onTouchMove)}}},J={loadInSlide:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,a=n.params.lazy;if(void 0!==e&&0!==n.slides.length){var i=n.virtual&&n.params.virtual.enabled,r=i?n.$wrapperEl.children(".".concat(n.params.slideClass,'[data-swiper-slide-index="').concat(e,'"]')):n.slides.eq(e),s=r.find(".".concat(a.elementClass,":not(.").concat(a.loadedClass,"):not(.").concat(a.loadingClass,")"));!r.hasClass(a.elementClass)||r.hasClass(a.loadedClass)||r.hasClass(a.loadingClass)||(s=s.add(r[0])),0!==s.length&&s.each((function(e,i){var s=(0,c.$)(i);s.addClass(a.loadingClass);var o=s.attr("data-background"),l=s.attr("data-src"),u=s.attr("data-srcset"),d=s.attr("data-sizes");n.loadImage(s[0],l||o,u,d,!1,(function(){if(null!=n&&n&&(!n||n.params)&&!n.destroyed){if(o?(s.css("background-image",'url("'.concat(o,'")')),s.removeAttr("data-background")):(u&&(s.attr("srcset",u),s.removeAttr("data-srcset")),d&&(s.attr("sizes",d),s.removeAttr("data-sizes")),l&&(s.attr("src",l),s.removeAttr("data-src"))),s.addClass(a.loadedClass).removeClass(a.loadingClass),r.find(".".concat(a.preloaderClass)).remove(),n.params.loop&&t){var e=r.attr("data-swiper-slide-index");if(r.hasClass(n.params.slideDuplicateClass)){var i=n.$wrapperEl.children('[data-swiper-slide-index="'.concat(e,'"]:not(.').concat(n.params.slideDuplicateClass,")"));n.lazy.loadInSlide(i.index(),!1)}else{var c=n.$wrapperEl.children(".".concat(n.params.slideDuplicateClass,'[data-swiper-slide-index="').concat(e,'"]'));n.lazy.loadInSlide(c.index(),!1)}}n.emit("lazyImageReady",r[0],s[0])}})),n.emit("lazyImageLoad",r[0],s[0])}))}},load:function(){var e=this,t=e.$wrapperEl,n=e.params,a=e.slides,i=e.activeIndex,r=e.virtual&&n.virtual.enabled,s=n.lazy,o=n.slidesPerView;function l(e){if(r){if(t.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]')).length)return!0}else if(a[e])return!0;return!1}function u(e){return r?(0,c.$)(e).attr("data-swiper-slide-index"):(0,c.$)(e).index()}if("auto"===o&&(o=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children(".".concat(n.slideVisibleClass)).each((function(t,n){var a=r?(0,c.$)(n).attr("data-swiper-slide-index"):(0,c.$)(n).index();e.lazy.loadInSlide(a)}));else if(o>1)for(var d=i;d<i+o;d+=1)l(d)&&e.lazy.loadInSlide(d);else e.lazy.loadInSlide(i);if(s.loadPrevNext)if(o>1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){for(var p=s.loadPrevNextAmount,f=o,h=Math.min(i+f+Math.max(p,f),a.length),v=Math.max(i-Math.max(f,p),0),m=i+o;m<h;m+=1)l(m)&&e.lazy.loadInSlide(m);for(var g=v;g<i;g+=1)l(g)&&e.lazy.loadInSlide(g)}else{var b=t.children(".".concat(n.slideNextClass));b.length>0&&e.lazy.loadInSlide(u(b));var w=t.children(".".concat(n.slidePrevClass));w.length>0&&e.lazy.loadInSlide(u(w))}}},ee={LinearSpline:function(e,t){var n,a,i,r,s,o=function(e,t){for(a=-1,n=e.length;n-a>1;)e[i=n+a>>1]<=t?a=i:n=i;return n};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(s=o(this.x,e),r=s-1,(e-this.x[r])*(this.y[s]-this.y[r])/(this.x[s]-this.x[r])+this.y[r]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new ee.LinearSpline(t.slidesGrid,e.slidesGrid):new ee.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){var n,a,i=this,r=i.controller.control;function s(e){var t=i.rtlTranslate?-i.translate:i.translate;"slide"===i.params.controller.by&&(i.controller.getInterpolateFunction(e),a=-i.controller.spline.interpolate(-t)),a&&"container"!==i.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(i.maxTranslate()-i.minTranslate()),a=(t-i.minTranslate())*n+e.minTranslate()),i.params.controller.inverse&&(a=e.maxTranslate()-a),e.updateProgress(a),e.setTranslate(a,i),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(r))for(var o=0;o<r.length;o+=1)r[o]!==t&&r[o]instanceof N&&s(r[o]);else r instanceof N&&t!==r&&s(r)},setTransition:function(e,t){var n,a=this,i=a.controller.control;function r(t){t.setTransition(e,a),0!==e&&(t.transitionStart(),t.params.autoHeight&&m.nextTick((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){i&&(t.params.loop&&"slide"===a.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(i))for(n=0;n<i.length;n+=1)i[n]!==t&&i[n]instanceof N&&r(i[n]);else i instanceof N&&t!==i&&r(i)}},te={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this,n=t.params.a11y;if(13===e.keyCode){var a=(0,c.$)(e.target);t.navigation&&t.navigation.$nextEl&&a.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(n.lastSlideMessage):t.a11y.notify(n.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&a.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(n.firstSlideMessage):t.a11y.notify(n.prevSlideMessage)),t.pagination&&a.is(".".concat(t.params.pagination.bulletClass))&&a[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop){var t=e.navigation,n=t.$nextEl,a=t.$prevEl;a&&a.length>0&&(e.isBeginning?e.a11y.disableEl(a):e.a11y.enableEl(a)),n&&n.length>0&&(e.isEnd?e.a11y.disableEl(n):e.a11y.enableEl(n))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(n,a){var i=(0,c.$)(a);e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,t.paginationBulletMessage.replace(/{{index}}/,i.index()+1))}))},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t,n,a=e.params.a11y;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(n=e.navigation.$prevEl),t&&(e.a11y.makeElFocusable(t),e.a11y.addElRole(t,"button"),e.a11y.addElLabel(t,a.nextSlideMessage),t.on("keydown",e.a11y.onEnterKey)),n&&(e.a11y.makeElFocusable(n),e.a11y.addElRole(n,"button"),e.a11y.addElLabel(n,a.prevSlideMessage),n.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown",".".concat(e.params.pagination.bulletClass),e.a11y.onEnterKey)},destroy:function(){var e,t,n=this;n.a11y.liveRegion&&n.a11y.liveRegion.length>0&&n.a11y.liveRegion.remove(),n.navigation&&n.navigation.$nextEl&&(e=n.navigation.$nextEl),n.navigation&&n.navigation.$prevEl&&(t=n.navigation.$prevEl),e&&e.off("keydown",n.a11y.onEnterKey),t&&t.off("keydown",n.a11y.onEnterKey),n.pagination&&n.params.pagination.clickable&&n.pagination.bullets&&n.pagination.bullets.length&&n.pagination.$el.off("keydown",".".concat(n.params.pagination.bulletClass),n.a11y.onEnterKey)}},ne={init:function(){var e=this;if(e.params.history){if(!u.u.history||!u.u.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var t=e.history;t.initialized=!0,t.paths=ne.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||u.u.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||u.u.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=ne.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=u.u.location.pathname.slice(1).split("/").filter((function(e){return""!==e})),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory:function(e,t){var n=this;if(n.history.initialized&&n.params.history.enabled){var a=n.slides.eq(t),i=ne.slugify(a.attr("data-history"));u.u.location.pathname.includes(e)||(i="".concat(e,"/").concat(i));var r=u.u.history.state;r&&r.value===i||(n.params.history.replaceState?u.u.history.replaceState({value:i},null,i):u.u.history.pushState({value:i},null,i))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,n){var a=this;if(t)for(var i=0,r=a.slides.length;i<r;i+=1){var s=a.slides.eq(i);if(ne.slugify(s.attr("data-history"))===t&&!s.hasClass(a.params.slideDuplicateClass)){var o=s.index();a.slideTo(o,e,n)}}else a.slideTo(0,e,n)}},ae={onHashCange:function(){var e=this,t=u.t.location.hash.replace("#","");if(t!==e.slides.eq(e.activeIndex).attr("data-hash")){var n=e.$wrapperEl.children(".".concat(e.params.slideClass,'[data-hash="').concat(t,'"]')).index();if(void 0===n)return;e.slideTo(n)}},setHash:function(){var e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&u.u.history&&u.u.history.replaceState)u.u.history.replaceState(null,null,"#".concat(e.slides.eq(e.activeIndex).attr("data-hash"))||0);else{var t=e.slides.eq(e.activeIndex),n=t.attr("data-hash")||t.attr("data-history");u.t.location.hash=n||""}},init:function(){var e=this;if(!(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)){e.hashNavigation.initialized=!0;var t=u.t.location.hash.replace("#","");if(t)for(var n=0,a=e.slides.length;n<a;n+=1){var i=e.slides.eq(n);if((i.attr("data-hash")||i.attr("data-history"))===t&&!i.hasClass(e.params.slideDuplicateClass)){var r=i.index();e.slideTo(r,0,e.params.runCallbacksOnInit,!0)}}e.params.hashNavigation.watchState&&(0,c.$)(u.u).on("hashchange",e.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&(0,c.$)(u.u).off("hashchange",this.hashNavigation.onHashCange)}},ie={run:function(){var e=this,t=e.slides.eq(e.activeIndex),n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=m.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))}),n)},start:function(){var e=this;return void 0===e.autoplay.timeout&&(!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0))},stop:function(){var e=this;return!!e.autoplay.running&&(void 0!==e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0))},pause:function(e){var t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))}},re={setTranslate:function(){for(var e=this,t=e.slides,n=0;n<t.length;n+=1){var a=e.slides.eq(n),i=-a[0].swiperSlideOffset;e.params.virtualTranslate||(i-=e.translate);var r=0;e.isHorizontal()||(r=i,i=0);var s=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(a[0].progress),0):1+Math.min(Math.max(a[0].progress,-1),0);a.css({opacity:s}).transform("translate3d(".concat(i,"px, ").concat(r,"px, 0px)"))}},setTransition:function(e){var t=this,n=t.slides,a=t.$wrapperEl;if(n.transition(e),t.params.virtualTranslate&&0!==e){var i=!1;n.transitionEnd((function(){if(!i&&t&&!t.destroyed){i=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)a.trigger(e[n])}}))}}},se={setTranslate:function(){var e,t=this,n=t.$el,a=t.$wrapperEl,i=t.slides,r=t.width,s=t.height,o=t.rtlTranslate,l=t.size,u=t.params.cubeEffect,d=t.isHorizontal(),p=t.virtual&&t.params.virtual.enabled,f=0;u.shadow&&(d?(0===(e=a.find(".swiper-cube-shadow")).length&&(e=(0,c.$)('<div class="swiper-cube-shadow"></div>'),a.append(e)),e.css({height:"".concat(r,"px")})):0===(e=n.find(".swiper-cube-shadow")).length&&(e=(0,c.$)('<div class="swiper-cube-shadow"></div>'),n.append(e)));for(var h=0;h<i.length;h+=1){var v=i.eq(h),m=h;p&&(m=parseInt(v.attr("data-swiper-slide-index"),10));var g=90*m,w=Math.floor(g/360);o&&(g=-g,w=Math.floor(-g/360));var y=Math.max(Math.min(v[0].progress,1),-1),E=0,x=0,S=0;m%4==0?(E=4*-w*l,S=0):(m-1)%4==0?(E=0,S=4*-w*l):(m-2)%4==0?(E=l+4*w*l,S=l):(m-3)%4==0&&(E=-l,S=3*l+4*l*w),o&&(E=-E),d||(x=E,E=0);var T="rotateX(".concat(d?0:-g,"deg) rotateY(").concat(d?g:0,"deg) translate3d(").concat(E,"px, ").concat(x,"px, ").concat(S,"px)");if(y<=1&&y>-1&&(f=90*m+90*y,o&&(f=90*-m-90*y)),v.transform(T),u.slideShadows){var C=d?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),k=d?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===C.length&&(C=(0,c.$)('<div class="swiper-slide-shadow-'.concat(d?"left":"top",'"></div>')),v.append(C)),0===k.length&&(k=(0,c.$)('<div class="swiper-slide-shadow-'.concat(d?"right":"bottom",'"></div>')),v.append(k)),C.length&&(C[0].style.opacity=Math.max(-y,0)),k.length&&(k[0].style.opacity=Math.max(y,0))}}if(a.css({"-webkit-transform-origin":"50% 50% -".concat(l/2,"px"),"-moz-transform-origin":"50% 50% -".concat(l/2,"px"),"-ms-transform-origin":"50% 50% -".concat(l/2,"px"),"transform-origin":"50% 50% -".concat(l/2,"px")}),u.shadow)if(d)e.transform("translate3d(0px, ".concat(r/2+u.shadowOffset,"px, ").concat(-r/2,"px) rotateX(90deg) rotateZ(0deg) scale(").concat(u.shadowScale,")"));else{var P=Math.abs(f)-90*Math.floor(Math.abs(f)/90),M=1.5-(Math.sin(2*P*Math.PI/360)/2+Math.cos(2*P*Math.PI/360)/2),I=u.shadowScale,z=u.shadowScale/M,$=u.shadowOffset;e.transform("scale3d(".concat(I,", 1, ").concat(z,") translate3d(0px, ").concat(s/2+$,"px, ").concat(-s/2/z,"px) rotateX(-90deg)"))}var O=b.isSafari||b.isUiWebView?-l/2:0;a.transform("translate3d(0px,0,".concat(O,"px) rotateX(").concat(t.isHorizontal()?0:f,"deg) rotateY(").concat(t.isHorizontal()?-f:0,"deg)"))},setTransition:function(e){var t=this,n=t.$el;t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&n.find(".swiper-cube-shadow").transition(e)}},oe={setTranslate:function(){for(var e=this,t=e.slides,n=e.rtlTranslate,a=0;a<t.length;a+=1){var i=t.eq(a),r=i[0].progress;e.params.flipEffect.limitRotation&&(r=Math.max(Math.min(i[0].progress,1),-1));var s=-180*r,o=0,l=-i[0].swiperSlideOffset,u=0;if(e.isHorizontal()?n&&(s=-s):(u=l,l=0,o=-s,s=0),i[0].style.zIndex=-Math.abs(Math.round(r))+t.length,e.params.flipEffect.slideShadows){var d=e.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),p=e.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===d.length&&(d=(0,c.$)('<div class="swiper-slide-shadow-'.concat(e.isHorizontal()?"left":"top",'"></div>')),i.append(d)),0===p.length&&(p=(0,c.$)('<div class="swiper-slide-shadow-'.concat(e.isHorizontal()?"right":"bottom",'"></div>')),i.append(p)),d.length&&(d[0].style.opacity=Math.max(-r,0)),p.length&&(p[0].style.opacity=Math.max(r,0))}i.transform("translate3d(".concat(l,"px, ").concat(u,"px, 0px) rotateX(").concat(o,"deg) rotateY(").concat(s,"deg)"))}},setTransition:function(e){var t=this,n=t.slides,a=t.activeIndex,i=t.$wrapperEl;if(n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var r=!1;n.eq(a).transitionEnd((function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)i.trigger(e[n])}}))}}},le={setTranslate:function(){for(var e=this,t=e.width,n=e.height,a=e.slides,i=e.$wrapperEl,r=e.slidesSizesGrid,s=e.params.coverflowEffect,o=e.isHorizontal(),l=e.translate,u=o?t/2-l:n/2-l,d=o?s.rotate:-s.rotate,p=s.depth,f=0,h=a.length;f<h;f+=1){var v=a.eq(f),m=r[f],b=(u-v[0].swiperSlideOffset-m/2)/m*s.modifier,w=o?d*b:0,y=o?0:d*b,E=-p*Math.abs(b),x=o?0:s.stretch*b,S=o?s.stretch*b:0;Math.abs(S)<.001&&(S=0),Math.abs(x)<.001&&(x=0),Math.abs(E)<.001&&(E=0),Math.abs(w)<.001&&(w=0),Math.abs(y)<.001&&(y=0);var T="translate3d(".concat(S,"px,").concat(x,"px,").concat(E,"px) rotateX(").concat(y,"deg) rotateY(").concat(w,"deg)");if(v.transform(T),v[0].style.zIndex=1-Math.abs(Math.round(b)),s.slideShadows){var C=o?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),k=o?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===C.length&&(C=(0,c.$)('<div class="swiper-slide-shadow-'.concat(o?"left":"top",'"></div>')),v.append(C)),0===k.length&&(k=(0,c.$)('<div class="swiper-slide-shadow-'.concat(o?"right":"bottom",'"></div>')),v.append(k)),C.length&&(C[0].style.opacity=b>0?b:0),k.length&&(k[0].style.opacity=-b>0?-b:0)}}(g.pointerEvents||g.prefixedPointerEvents)&&(i[0].style.perspectiveOrigin="".concat(u,"px 50%"))},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},ce={init:function(){var e=this,t=e.params.thumbs,n=e.constructor;t.swiper instanceof n?(e.thumbs.swiper=t.swiper,m.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),m.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):m.isObject(t.swiper)&&(e.thumbs.swiper=new n(m.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick:function(){var e=this,t=e.thumbs.swiper;if(t){var n=t.clickedIndex,a=t.clickedSlide;if(!(a&&(0,c.$)(a).hasClass(e.params.thumbs.slideThumbActiveClass)||null==n)){var i;if(i=t.params.loop?parseInt((0,c.$)(t.clickedSlide).attr("data-swiper-slide-index"),10):n,e.params.loop){var r=e.activeIndex;e.slides.eq(r).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,r=e.activeIndex);var s=e.slides.eq(r).prevAll('[data-swiper-slide-index="'.concat(i,'"]')).eq(0).index(),o=e.slides.eq(r).nextAll('[data-swiper-slide-index="'.concat(i,'"]')).eq(0).index();i=void 0===s?o:void 0===o?s:o-r<r-s?o:s}e.slideTo(i)}}},update:function(e){var t=this,n=t.thumbs.swiper;if(n){var a="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;if(t.realIndex!==n.realIndex){var i,r=n.activeIndex;if(n.params.loop){n.slides.eq(r).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,r=n.activeIndex);var s=n.slides.eq(r).prevAll('[data-swiper-slide-index="'.concat(t.realIndex,'"]')).eq(0).index(),o=n.slides.eq(r).nextAll('[data-swiper-slide-index="'.concat(t.realIndex,'"]')).eq(0).index();i=void 0===s?o:void 0===o?s:o-r==r-s?r:o-r<r-s?o:s}else i=t.realIndex;n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(i)<0&&(n.params.centeredSlides?i=i>r?i-Math.floor(a/2)+1:i+Math.floor(a/2)-1:i>r&&(i=i-a+1),n.slideTo(i,e?0:void 0))}var l=1,c=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(l=t.params.slidesPerView),n.slides.removeClass(c),n.params.loop||n.params.virtual)for(var u=0;u<l;u+=1)n.$wrapperEl.children('[data-swiper-slide-index="'.concat(t.realIndex+u,'"]')).addClass(c);else for(var d=0;d<l;d+=1)n.slides.eq(t.realIndex+d).addClass(c)}}},ue=[_,R,B,V,Z,G,F,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;m.extend(e,{mousewheel:{enabled:!1,enable:Y.enable.bind(e),disable:Y.disable.bind(e),handle:Y.handle.bind(e),handleMouseEnter:Y.handleMouseEnter.bind(e),handleMouseLeave:Y.handleMouseLeave.bind(e),lastScrollTime:m.now()}})},on:{init:function(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var e=this;m.extend(e,{navigation:{init:q.init.bind(e),update:q.update.bind(e),destroy:q.destroy.bind(e),onNextClick:q.onNextClick.bind(e),onPrevClick:q.onPrevClick.bind(e)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t,n=this,a=n.navigation,i=a.$nextEl,r=a.$prevEl;!n.params.navigation.hideOnClick||(0,c.$)(e.target).is(r)||(0,c.$)(e.target).is(i)||(i?t=i.hasClass(n.params.navigation.hiddenClass):r&&(t=r.hasClass(n.params.navigation.hiddenClass)),!0===t?n.emit("navigationShow",n):n.emit("navigationHide",n),i&&i.toggleClass(n.params.navigation.hiddenClass),r&&r.toggleClass(n.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var e=this;m.extend(e,{pagination:{init:W.init.bind(e),render:W.render.bind(e),update:W.update.bind(e),destroy:W.destroy.bind(e),dynamicBulletIndex:0}})},on:{init:function(){var e=this;e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange:function(){var e=this;(e.params.loop||void 0===e.snapIndex)&&e.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){var e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange:function(){var e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){var t=this;t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!(0,c.$)(e.target).hasClass(t.params.pagination.bulletClass)&&(!0===t.pagination.$el.hasClass(t.params.pagination.hiddenClass)?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var e=this;m.extend(e,{scrollbar:{init:U.init.bind(e),destroy:U.destroy.bind(e),updateSize:U.updateSize.bind(e),setTranslate:U.setTranslate.bind(e),setTransition:U.setTransition.bind(e),enableDraggable:U.enableDraggable.bind(e),disableDraggable:U.disableDraggable.bind(e),setDragPosition:U.setDragPosition.bind(e),getPointerPosition:U.getPointerPosition.bind(e),onDragStart:U.onDragStart.bind(e),onDragMove:U.onDragMove.bind(e),onDragEnd:U.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){var e=this;e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;m.extend(e,{parallax:{setTransform:K.setTransform.bind(e),setTranslate:K.setTranslate.bind(e),setTransition:K.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(n){t[n]=Q[n].bind(e)})),m.extend(e,{zoom:t});var n=1;Object.defineProperty(e.zoom,"scale",{get:function(){return n},set:function(t){if(n!==t){var a=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,i=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,a,i)}n=t}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){var t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd:function(){var e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){var e=this;m.extend(e,{lazy:{initialImageLoaded:!1,load:J.load.bind(e),loadInSlide:J.loadInSlide.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init:function(){var e=this;e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&e.lazy.load()},scroll:function(){var e=this;e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){var e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd:function(){var e=this;e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;m.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:ee.getInterpolateFunction.bind(e),setTranslate:ee.setTranslate.bind(e),setTransition:ee.setTransition.bind(e)}})},on:{update:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate:function(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;m.extend(e,{a11y:{liveRegion:(0,c.$)('<span class="'.concat(e.params.a11y.notificationClass,'" aria-live="assertive" aria-atomic="true"></span>'))}}),Object.keys(te).forEach((function(t){e.a11y[t]=te[t].bind(e)}))},on:{init:function(){var e=this;e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;m.extend(e,{history:{init:ne.init.bind(e),setHistory:ne.setHistory.bind(e),setHistoryPopState:ne.setHistoryPopState.bind(e),scrollToSlide:ne.scrollToSlide.bind(e),destroy:ne.destroy.bind(e)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){var e=this;e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;m.extend(e,{hashNavigation:{initialized:!1,init:ae.init.bind(e),destroy:ae.destroy.bind(e),setHash:ae.setHash.bind(e),onHashCange:ae.onHashCange.bind(e)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;m.extend(e,{autoplay:{running:!1,paused:!1,run:ie.run.bind(e),start:ie.start.bind(e),stop:ie.stop.bind(e),pause:ie.pause.bind(e),onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(e,t){var n=this;n.autoplay.running&&(t||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(e):n.autoplay.stop())},sliderFirstMove:function(){var e=this;e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;m.extend(e,{fadeEffect:{setTranslate:re.setTranslate.bind(e),setTransition:re.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("fade"===e.params.effect){e.classNames.push("".concat(e.params.containerModifierClass,"fade"));var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};m.extend(e.params,t),m.extend(e.originalParams,t)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;m.extend(e,{cubeEffect:{setTranslate:se.setTranslate.bind(e),setTransition:se.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("cube"===e.params.effect){e.classNames.push("".concat(e.params.containerModifierClass,"cube")),e.classNames.push("".concat(e.params.containerModifierClass,"3d"));var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};m.extend(e.params,t),m.extend(e.originalParams,t)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;m.extend(e,{flipEffect:{setTranslate:oe.setTranslate.bind(e),setTransition:oe.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("flip"===e.params.effect){e.classNames.push("".concat(e.params.containerModifierClass,"flip")),e.classNames.push("".concat(e.params.containerModifierClass,"3d"));var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};m.extend(e.params,t),m.extend(e.originalParams,t)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var e=this;m.extend(e,{coverflowEffect:{setTranslate:le.setTranslate.bind(e),setTransition:le.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;"coverflow"===e.params.effect&&(e.classNames.push("".concat(e.params.containerModifierClass,"coverflow")),e.classNames.push("".concat(e.params.containerModifierClass,"3d")),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var e=this;m.extend(e,{thumbs:{swiper:null,init:ce.init.bind(e),update:ce.update.bind(e),onThumbClick:ce.onThumbClick.bind(e)}})},on:{beforeInit:function(){var e=this,t=e.params.thumbs;t&&t.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];void 0===N.use&&(N.use=N.Class.use,N.installModule=N.Class.installModule),N.use(ue),t.Z=N},3804:function(e){"use strict";e.exports=window.lodash},402:function(e){"use strict";e.exports=window.wp.a11y},7606:function(e){"use strict";e.exports=window.wp.apiFetch},6399:function(e){"use strict";e.exports=window.wp.blockEditor},9314:function(e){"use strict";e.exports=window.wp.blocks},7997:function(e){"use strict";e.exports=window.wp.components},1417:function(e){"use strict";e.exports=window.wp.compose},5707:function(e){"use strict";e.exports=window.wp.data},7947:function(e){"use strict";e.exports=window.wp.date},3027:function(e){"use strict";e.exports=window.wp.element},7950:function(e){"use strict";e.exports=window.wp.escapeHtml},5799:function(e){"use strict";e.exports=window.wp.hooks},1424:function(e){"use strict";e.exports=window.wp.htmlEntities},3163:function(e){"use strict";e.exports=window.wp.i18n},791:function(e){"use strict";e.exports=window.wp.url}},t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};!function(){"use strict";n.r(a);var e=n(9394),t=n(9314),i=n(5799),r=n(1136),s=n(9564);(0,i.addFilter)("blocks.transforms_from_name","set-transformed-block-name",(function(e){return"newspack-blocks/carousel"!==e?e:r.T})),(0,t.registerBlockType)(r.T,(0,e.Z)((0,e.Z)({},s.Xd),{},{category:"widgets"}))}(),window.EditingToolkit=a}();
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic
|
|
3 |
Tags: block, blocks, editor, gutenberg, page
|
4 |
Requires at least: 5.5
|
5 |
Tested up to: 5.6
|
6 |
-
Stable tag: 3.
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
3 |
Tags: block, blocks, editor, gutenberg, page
|
4 |
Requires at least: 5.5
|
5 |
Tested up to: 5.6
|
6 |
+
Stable tag: 3.14479
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'd8fbd06b5d097283ca68eaf4212356d5');
|
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@font-face{font-display:swap;font-family:Recoleta;font-weight:400;src:url(https://s1.wp.com/i/fonts/recoleta/400.woff2) format("woff2"),url(https://s1.wp.com/i/fonts/recoleta/400.woff) format("woff")}.wp-brand-font{font-family:"Noto Serif",Georgia,Times New Roman,Times,serif;font-weight:400}[lang*=af] .wp-brand-font,[lang*=ca] .wp-brand-font,[lang*=cs] .wp-brand-font,[lang*=da] .wp-brand-font,[lang*=de] .wp-brand-font,[lang*=en] .wp-brand-font,[lang*=es] .wp-brand-font,[lang*=eu] .wp-brand-font,[lang*=fi] .wp-brand-font,[lang*=fr] .wp-brand-font,[lang*=gl] .wp-brand-font,[lang*=hr] .wp-brand-font,[lang*=hu] .wp-brand-font,[lang*=id] .wp-brand-font,[lang*=is] .wp-brand-font,[lang*=it] .wp-brand-font,[lang*=lv] .wp-brand-font,[lang*=mt] .wp-brand-font,[lang*=nb] .wp-brand-font,[lang*=nl] .wp-brand-font,[lang*=pl] .wp-brand-font,[lang*=pt] .wp-brand-font,[lang*=ro] .wp-brand-font,[lang*=ru] .wp-brand-font,[lang*=sk] .wp-brand-font,[lang*=sl] .wp-brand-font,[lang*=sq] .wp-brand-font,[lang*=sr] .wp-brand-font,[lang*=sv] .wp-brand-font,[lang*=sw] .wp-brand-font,[lang*=tr] .wp-brand-font,[lang*=uz] .wp-brand-font{font-family:Recoleta,"Noto Serif",Georgia,Times New Roman,Times,serif}@keyframes onboarding-loading-pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.wpcom-block-editor-nux.components-modal__frame{overflow:visible;height:65vh;top:calc(17.5vh - 35px)}@media(max-width:660px){.wpcom-block-editor-nux.components-modal__frame{width:90vw;min-width:90vw;left:5vw;right:5vw}}@media(min-width:660px){.wpcom-block-editor-nux.components-modal__frame{width:720px;height:350px;top:calc(50% - 35px)}}.wpcom-block-editor-nux .components-modal__header{position:absolute;max-width:90%;left:5%}@media(min-width:660px){.wpcom-block-editor-nux .components-modal__header{display:none}}.wpcom-block-editor-nux .components-guide__container{margin-top:0}.wpcom-block-editor-nux .components-guide__footer{position:absolute;width:100%;height:70px;bottom:-70px;left:0;padding:20px 0;margin:0;display:flex;justify-content:center;background:#fff;border-top:1px solid #dcdcde}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__footer{border-top:none}}.wpcom-block-editor-nux .components-guide__page{position:absolute;width:100%;max-width:90vw;height:100%;justify-content:start}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__page{max-width:100%}}.wpcom-block-editor-nux .components-guide__page-control{position:relative;height:0;top:100%;overflow:visible;margin:0 auto;z-index:2;display:none}.wpcom-block-editor-nux .components-guide__page-control:before{display:inline-block;content:"";height:70px;vertical-align:middle}.wpcom-block-editor-nux .components-guide__page-control li{vertical-align:middle;margin-bottom:0}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__page-control{display:block}}.wpcom-block-editor-nux__page{display:flex;flex-direction:column-reverse;justify-content:flex-end;background:#fff;width:100%;height:90%;max-width:90vw}@media(min-width:660px){.wpcom-block-editor-nux__page{flex-direction:row;justify-content:flex-start;position:absolute;max-width:100%;min-height:350px;bottom:0}}@media(min-width:660px){.wpcom-block-editor-nux__text,.wpcom-block-editor-nux__visual{flex:1 0 50%;min-width:290px}}.wpcom-block-editor-nux__text{padding:0 25px 25px;height:60%}@media(min-width:660px){.wpcom-block-editor-nux__text{height:auto;padding:40px 50px}}.wpcom-block-editor-nux__visual{height:40%;background:#1381d8;text-align:center}@media(min-width:660px){.wpcom-block-editor-nux__visual{height:auto}}.wpcom-block-editor-nux__heading{font-family:Recoleta,"Noto Serif",Georgia,Times New Roman,Times,serif;font-weight:400;letter-spacing:-.4px;color:#1d2327;font-size:32px;line-height:1.19}@media(min-width:660px){.wpcom-block-editor-nux__heading{font-size:42px}}body.locale-de .wpcom-block-editor-nux__heading{font-size:24px}@media(min-width:660px){body.locale-de .wpcom-block-editor-nux__heading{font-size:28px}}.wpcom-block-editor-nux__description{font-size:15px;line-height:22px;color:#50575e}@media(min-width:660px){.wpcom-block-editor-nux__description{font-size:17px;line-height:26px}}.wpcom-block-editor-nux__image{max-width:100%;height:auto;flex:1;align-self:center;max-height:100%}.wpcom-block-editor-nux__image.align-bottom{align-self:flex-end}@media(min-width:660px){.wpcom-block-editor-nux__image{max-height:none}}.wpcom-editor-welcome-tour-frame{background-color:#fff;border-radius:2px;bottom:44px;display:inline;left:16px;position:fixed;z-index:9999;cursor:default}.welcome-tour-card__heading{font-size:1.125rem;margin:.5rem 0}.welcome-tour-card__description{font-size:.875rem;line-height:1.5rem;margin:0}.welcome-tour-card__description .components-button{height:auto;line-height:1;text-decoration:underline;padding:0 0 0 4px}.wpcom-editor-welcome-tour__resume-btn{border-radius:2px;box-shadow:0 2px 6px rgba(60,66,87,.08),0 0 0 1px rgba(60,66,87,.16),0 1px 1px rgba(0,0,0,.08);background-color:#fff;color:#000}.wpcom-editor-welcome-tour__resume-btn.components-button{height:44px}.wpcom-editor-welcome-tour-card-frame{position:relative}.wpcom-editor-welcome-tour-card-frame .components-guide__page-control{bottom:0;left:16px;margin:0;position:absolute}.wpcom-editor-welcome-tour-card-frame .components-guide__page-control li{margin-bottom:0}.welcome-tour-card{width:400px;max-width:92vw}.welcome-tour-card.welcome-tour-card.is-elevated{box-shadow:0 0 0 1px rgba(0,0,0,.1),0 2px 4px 0 rgba(0,0,0,.1)}.welcome-tour-card.components-card{border:none;border-radius:4px}.welcome-tour-card .components-card__body{min-height:114px}.welcome-tour-card .components-card__body,.welcome-tour-card .components-card__footer{border-top:none;padding:16px!important}.welcome-tour-card .components-card__footer .welcome-tour__end-text{color:#949494;font-size:.875rem;font-style:italic}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon{background-color:#f6f7f7;border-radius:50%;color:#949494;margin-left:8px}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon path{fill:#949494}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon.active{background-color:#000;opacity:1}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon.active path{fill:#fff}.welcome-tour-card .components-card__media{min-height:260px}.welcome-tour-card .components-guide__page-control{margin:0}.welcome-tour-card .components-guide__page-control .components-button{min-width:auto}.welcome-tour-card .components-guide__page-control .components-button.has-icon{padding:3px}.welcome-tour-card .components-guide__page-control li{margin-bottom:0}.welcome-tour-card__minimize-icon svg{position:relative;left:-2px}.welcome-tour-card__overlay-controls{left:0;padding:12px;position:absolute;right:0}.welcome-tour-card__overlay-controls .components-button{width:32px;min-width:32px;height:32px;background:#32373c;opacity:0;transition:opacity .2s}.welcome-tour-card__overlay-controls-visible .components-button,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button{opacity:.7}.welcome-tour-card__overlay-controls-visible .components-button:hover,.wpcom-editor-welcome-tour-frame .welcome-tour-card__overlay-controls .components-button:hover{opacity:.9}.welcome-tour-card__next-btn{margin-left:12px;justify-content:center;min-width:85px}
|
1 |
+
@font-face{font-display:swap;font-family:Recoleta;font-weight:400;src:url(https://s1.wp.com/i/fonts/recoleta/400.woff2) format("woff2"),url(https://s1.wp.com/i/fonts/recoleta/400.woff) format("woff")}.wp-brand-font{font-family:"Noto Serif",Georgia,Times New Roman,Times,serif;font-weight:400}[lang*=af] .wp-brand-font,[lang*=ca] .wp-brand-font,[lang*=cs] .wp-brand-font,[lang*=da] .wp-brand-font,[lang*=de] .wp-brand-font,[lang*=en] .wp-brand-font,[lang*=es] .wp-brand-font,[lang*=eu] .wp-brand-font,[lang*=fi] .wp-brand-font,[lang*=fr] .wp-brand-font,[lang*=gl] .wp-brand-font,[lang*=hr] .wp-brand-font,[lang*=hu] .wp-brand-font,[lang*=id] .wp-brand-font,[lang*=is] .wp-brand-font,[lang*=it] .wp-brand-font,[lang*=lv] .wp-brand-font,[lang*=mt] .wp-brand-font,[lang*=nb] .wp-brand-font,[lang*=nl] .wp-brand-font,[lang*=pl] .wp-brand-font,[lang*=pt] .wp-brand-font,[lang*=ro] .wp-brand-font,[lang*=ru] .wp-brand-font,[lang*=sk] .wp-brand-font,[lang*=sl] .wp-brand-font,[lang*=sq] .wp-brand-font,[lang*=sr] .wp-brand-font,[lang*=sv] .wp-brand-font,[lang*=sw] .wp-brand-font,[lang*=tr] .wp-brand-font,[lang*=uz] .wp-brand-font{font-family:Recoleta,"Noto Serif",Georgia,Times New Roman,Times,serif}@keyframes onboarding-loading-pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.wpcom-block-editor-nux.components-modal__frame{overflow:visible;height:65vh;top:calc(17.5vh - 35px)}@media(max-width:660px){.wpcom-block-editor-nux.components-modal__frame{width:90vw;min-width:90vw;left:5vw;right:5vw}}@media(min-width:660px){.wpcom-block-editor-nux.components-modal__frame{width:720px;height:350px;top:calc(50% - 35px)}}.wpcom-block-editor-nux .components-modal__header{position:absolute;max-width:90%;left:5%}@media(min-width:660px){.wpcom-block-editor-nux .components-modal__header{display:none}}.wpcom-block-editor-nux .components-guide__container{margin-top:0}.wpcom-block-editor-nux .components-guide__footer{position:absolute;width:100%;height:70px;bottom:-70px;left:0;padding:20px 0;margin:0;display:flex;justify-content:center;background:#fff;border-top:1px solid #dcdcde}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__footer{border-top:none}}.wpcom-block-editor-nux .components-guide__page{position:absolute;width:100%;max-width:90vw;height:100%;justify-content:start}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__page{max-width:100%}}.wpcom-block-editor-nux .components-guide__page-control{position:relative;height:0;top:100%;overflow:visible;margin:0 auto;z-index:2;display:none}.wpcom-block-editor-nux .components-guide__page-control:before{display:inline-block;content:"";height:70px;vertical-align:middle}.wpcom-block-editor-nux .components-guide__page-control li{vertical-align:middle;margin-bottom:0}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__page-control{display:block}}.wpcom-block-editor-nux__page{display:flex;flex-direction:column-reverse;justify-content:flex-end;background:#fff;width:100%;height:90%;max-width:90vw}@media(min-width:660px){.wpcom-block-editor-nux__page{flex-direction:row;justify-content:flex-start;position:absolute;max-width:100%;min-height:350px;bottom:0}}@media(min-width:660px){.wpcom-block-editor-nux__text,.wpcom-block-editor-nux__visual{flex:1 0 50%;min-width:290px}}.wpcom-block-editor-nux__text{padding:0 25px 25px;height:60%}@media(min-width:660px){.wpcom-block-editor-nux__text{height:auto;padding:40px 50px}}.wpcom-block-editor-nux__visual{height:40%;background:#1381d8;text-align:center}@media(min-width:660px){.wpcom-block-editor-nux__visual{height:auto}}.wpcom-block-editor-nux__heading{font-family:Recoleta,"Noto Serif",Georgia,Times New Roman,Times,serif;font-weight:400;letter-spacing:-.4px;color:#1d2327;font-size:32px;line-height:1.19}@media(min-width:660px){.wpcom-block-editor-nux__heading{font-size:42px}}body.locale-de .wpcom-block-editor-nux__heading{font-size:24px}@media(min-width:660px){body.locale-de .wpcom-block-editor-nux__heading{font-size:28px}}.wpcom-block-editor-nux__description{font-size:15px;line-height:22px;color:#50575e}@media(min-width:660px){.wpcom-block-editor-nux__description{font-size:17px;line-height:26px}}.wpcom-block-editor-nux__image{max-width:100%;height:auto;flex:1;align-self:center;max-height:100%}.wpcom-block-editor-nux__image.align-bottom{align-self:flex-end}@media(min-width:660px){.wpcom-block-editor-nux__image{max-height:none}}.wpcom-editor-welcome-tour-frame{background-color:#fff;border-radius:2px;bottom:44px;display:inline;left:16px;position:fixed;z-index:9999;cursor:default}.welcome-tour-card__heading{font-size:1.125rem;margin:.5rem 0}.welcome-tour-card__description{font-size:.875rem;line-height:1.5rem;margin:0}.welcome-tour-card__description .components-button{height:auto;line-height:1;text-decoration:underline;padding:0 0 0 4px}.wpcom-editor-welcome-tour__resume-btn{border-radius:2px;box-shadow:0 2px 6px rgba(60,66,87,.08),0 0 0 1px rgba(60,66,87,.16),0 1px 1px rgba(0,0,0,.08);background-color:#fff;color:#000}.wpcom-editor-welcome-tour__resume-btn.components-button{height:44px}.wpcom-editor-welcome-tour-card-frame{position:relative}.wpcom-editor-welcome-tour-card-frame .components-guide__page-control{bottom:0;left:16px;margin:0;position:absolute}.wpcom-editor-welcome-tour-card-frame .components-guide__page-control li{margin-bottom:0}.welcome-tour-card{width:400px;max-width:92vw}.welcome-tour-card.welcome-tour-card.is-elevated{box-shadow:0 0 0 1px rgba(0,0,0,.1),0 2px 4px 0 rgba(0,0,0,.1)}.welcome-tour-card.components-card{border:none;border-radius:4px}.welcome-tour-card .components-card__body{min-height:114px}.welcome-tour-card .components-card__body,.welcome-tour-card .components-card__footer{border-top:none;padding:16px!important}.welcome-tour-card .components-card__footer .welcome-tour__end-text{color:#949494;font-size:.875rem;font-style:italic}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon{background-color:#f6f7f7;border-radius:50%;color:#949494;margin-left:8px}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon path{fill:#949494}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon.active{background-color:#000;opacity:1}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon.active path{fill:#fff}.welcome-tour-card .components-card__media{min-height:260px}.welcome-tour-card .components-guide__page-control{margin:0}.welcome-tour-card .components-guide__page-control .components-button{min-width:auto}.welcome-tour-card .components-guide__page-control .components-button.has-icon{padding:3px}.welcome-tour-card .components-guide__page-control li{margin-bottom:0}.welcome-tour-card__minimize-icon svg{position:relative;left:-2px}.welcome-tour-card__overlay-controls{left:0;padding:12px;position:absolute;right:0}.welcome-tour-card__overlay-controls .components-button{width:32px;min-width:32px;height:32px;background:#32373c;opacity:0;transition:opacity .2s}.welcome-tour-card__overlay-controls.welcome-tour-card__overlay-controls-visible .components-button,.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button{opacity:.7}.welcome-tour-card__overlay-controls.welcome-tour-card__overlay-controls-visible .components-button:focus,.welcome-tour-card__overlay-controls.welcome-tour-card__overlay-controls-visible .components-button:hover,.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button:focus,.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button:hover,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button:focus,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button:hover{opacity:.9}.welcome-tour-card__next-btn{margin-left:12px;justify-content:center;min-width:85px}
|
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.rtl.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@font-face{font-display:swap;font-family:Recoleta;font-weight:400;src:url(https://s1.wp.com/i/fonts/recoleta/400.woff2) format("woff2"),url(https://s1.wp.com/i/fonts/recoleta/400.woff) format("woff")}.wp-brand-font{font-family:"Noto Serif",Georgia,Times New Roman,Times,serif;font-weight:400}[lang*=af] .wp-brand-font,[lang*=ca] .wp-brand-font,[lang*=cs] .wp-brand-font,[lang*=da] .wp-brand-font,[lang*=de] .wp-brand-font,[lang*=en] .wp-brand-font,[lang*=es] .wp-brand-font,[lang*=eu] .wp-brand-font,[lang*=fi] .wp-brand-font,[lang*=fr] .wp-brand-font,[lang*=gl] .wp-brand-font,[lang*=hr] .wp-brand-font,[lang*=hu] .wp-brand-font,[lang*=id] .wp-brand-font,[lang*=is] .wp-brand-font,[lang*=it] .wp-brand-font,[lang*=lv] .wp-brand-font,[lang*=mt] .wp-brand-font,[lang*=nb] .wp-brand-font,[lang*=nl] .wp-brand-font,[lang*=pl] .wp-brand-font,[lang*=pt] .wp-brand-font,[lang*=ro] .wp-brand-font,[lang*=ru] .wp-brand-font,[lang*=sk] .wp-brand-font,[lang*=sl] .wp-brand-font,[lang*=sq] .wp-brand-font,[lang*=sr] .wp-brand-font,[lang*=sv] .wp-brand-font,[lang*=sw] .wp-brand-font,[lang*=tr] .wp-brand-font,[lang*=uz] .wp-brand-font{font-family:Recoleta,"Noto Serif",Georgia,Times New Roman,Times,serif}@keyframes onboarding-loading-pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.wpcom-block-editor-nux.components-modal__frame{overflow:visible;height:65vh;top:calc(17.5vh - 35px)}@media(max-width:660px){.wpcom-block-editor-nux.components-modal__frame{width:90vw;min-width:90vw;right:5vw;left:5vw}}@media(min-width:660px){.wpcom-block-editor-nux.components-modal__frame{width:720px;height:350px;top:calc(50% - 35px)}}.wpcom-block-editor-nux .components-modal__header{position:absolute;max-width:90%;right:5%}@media(min-width:660px){.wpcom-block-editor-nux .components-modal__header{display:none}}.wpcom-block-editor-nux .components-guide__container{margin-top:0}.wpcom-block-editor-nux .components-guide__footer{position:absolute;width:100%;height:70px;bottom:-70px;right:0;padding:20px 0;margin:0;display:flex;justify-content:center;background:#fff;border-top:1px solid #dcdcde}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__footer{border-top:none}}.wpcom-block-editor-nux .components-guide__page{position:absolute;width:100%;max-width:90vw;height:100%;justify-content:start}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__page{max-width:100%}}.wpcom-block-editor-nux .components-guide__page-control{position:relative;height:0;top:100%;overflow:visible;margin:0 auto;z-index:2;display:none}.wpcom-block-editor-nux .components-guide__page-control:before{display:inline-block;content:"";height:70px;vertical-align:middle}.wpcom-block-editor-nux .components-guide__page-control li{vertical-align:middle;margin-bottom:0}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__page-control{display:block}}.wpcom-block-editor-nux__page{display:flex;flex-direction:column-reverse;justify-content:flex-end;background:#fff;width:100%;height:90%;max-width:90vw}@media(min-width:660px){.wpcom-block-editor-nux__page{flex-direction:row;justify-content:flex-start;position:absolute;max-width:100%;min-height:350px;bottom:0}}@media(min-width:660px){.wpcom-block-editor-nux__text,.wpcom-block-editor-nux__visual{flex:1 0 50%;min-width:290px}}.wpcom-block-editor-nux__text{padding:0 25px 25px;height:60%}@media(min-width:660px){.wpcom-block-editor-nux__text{height:auto;padding:40px 50px}}.wpcom-block-editor-nux__visual{height:40%;background:#1381d8;text-align:center}@media(min-width:660px){.wpcom-block-editor-nux__visual{height:auto}}.wpcom-block-editor-nux__heading{font-family:Recoleta,"Noto Serif",Georgia,Times New Roman,Times,serif;font-weight:400;letter-spacing:-.4px;color:#1d2327;font-size:32px;line-height:1.19}@media(min-width:660px){.wpcom-block-editor-nux__heading{font-size:42px}}body.locale-de .wpcom-block-editor-nux__heading{font-size:24px}@media(min-width:660px){body.locale-de .wpcom-block-editor-nux__heading{font-size:28px}}.wpcom-block-editor-nux__description{font-size:15px;line-height:22px;color:#50575e}@media(min-width:660px){.wpcom-block-editor-nux__description{font-size:17px;line-height:26px}}.wpcom-block-editor-nux__image{max-width:100%;height:auto;flex:1;align-self:center;max-height:100%}.wpcom-block-editor-nux__image.align-bottom{align-self:flex-end}@media(min-width:660px){.wpcom-block-editor-nux__image{max-height:none}}.wpcom-editor-welcome-tour-frame{background-color:#fff;border-radius:2px;bottom:44px;display:inline;right:16px;position:fixed;z-index:9999;cursor:default}.welcome-tour-card__heading{font-size:1.125rem;margin:.5rem 0}.welcome-tour-card__description{font-size:.875rem;line-height:1.5rem;margin:0}.welcome-tour-card__description .components-button{height:auto;line-height:1;text-decoration:underline;padding:0 4px 0 0}.wpcom-editor-welcome-tour__resume-btn{border-radius:2px;box-shadow:0 2px 6px rgba(60,66,87,.08),0 0 0 1px rgba(60,66,87,.16),0 1px 1px rgba(0,0,0,.08);background-color:#fff;color:#000}.wpcom-editor-welcome-tour__resume-btn.components-button{height:44px}.wpcom-editor-welcome-tour-card-frame{position:relative}.wpcom-editor-welcome-tour-card-frame .components-guide__page-control{bottom:0;right:16px;margin:0;position:absolute}.wpcom-editor-welcome-tour-card-frame .components-guide__page-control li{margin-bottom:0}.welcome-tour-card{width:400px;max-width:92vw}.welcome-tour-card.welcome-tour-card.is-elevated{box-shadow:0 0 0 1px rgba(0,0,0,.1),0 2px 4px 0 rgba(0,0,0,.1)}.welcome-tour-card.components-card{border:none;border-radius:4px}.welcome-tour-card .components-card__body{min-height:114px}.welcome-tour-card .components-card__body,.welcome-tour-card .components-card__footer{border-top:none;padding:16px!important}.welcome-tour-card .components-card__footer .welcome-tour__end-text{color:#949494;font-size:.875rem;font-style:italic}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon{background-color:#f6f7f7;border-radius:50%;color:#949494;margin-right:8px}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon path{fill:#949494}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon.active{background-color:#000;opacity:1}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon.active path{fill:#fff}.welcome-tour-card .components-card__media{min-height:260px}.welcome-tour-card .components-guide__page-control{margin:0}.welcome-tour-card .components-guide__page-control .components-button{min-width:auto}.welcome-tour-card .components-guide__page-control .components-button.has-icon{padding:3px}.welcome-tour-card .components-guide__page-control li{margin-bottom:0}.welcome-tour-card__minimize-icon svg{position:relative;right:-2px}.welcome-tour-card__overlay-controls{right:0;padding:12px;position:absolute;left:0}.welcome-tour-card__overlay-controls .components-button{width:32px;min-width:32px;height:32px;background:#32373c;opacity:0;transition:opacity .2s}.welcome-tour-card__overlay-controls-visible .components-button,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button{opacity:.7}.welcome-tour-card__overlay-controls-visible .components-button:hover,.wpcom-editor-welcome-tour-frame .welcome-tour-card__overlay-controls .components-button:hover{opacity:.9}.welcome-tour-card__next-btn{margin-right:12px;justify-content:center;min-width:85px}
|
1 |
+
@font-face{font-display:swap;font-family:Recoleta;font-weight:400;src:url(https://s1.wp.com/i/fonts/recoleta/400.woff2) format("woff2"),url(https://s1.wp.com/i/fonts/recoleta/400.woff) format("woff")}.wp-brand-font{font-family:"Noto Serif",Georgia,Times New Roman,Times,serif;font-weight:400}[lang*=af] .wp-brand-font,[lang*=ca] .wp-brand-font,[lang*=cs] .wp-brand-font,[lang*=da] .wp-brand-font,[lang*=de] .wp-brand-font,[lang*=en] .wp-brand-font,[lang*=es] .wp-brand-font,[lang*=eu] .wp-brand-font,[lang*=fi] .wp-brand-font,[lang*=fr] .wp-brand-font,[lang*=gl] .wp-brand-font,[lang*=hr] .wp-brand-font,[lang*=hu] .wp-brand-font,[lang*=id] .wp-brand-font,[lang*=is] .wp-brand-font,[lang*=it] .wp-brand-font,[lang*=lv] .wp-brand-font,[lang*=mt] .wp-brand-font,[lang*=nb] .wp-brand-font,[lang*=nl] .wp-brand-font,[lang*=pl] .wp-brand-font,[lang*=pt] .wp-brand-font,[lang*=ro] .wp-brand-font,[lang*=ru] .wp-brand-font,[lang*=sk] .wp-brand-font,[lang*=sl] .wp-brand-font,[lang*=sq] .wp-brand-font,[lang*=sr] .wp-brand-font,[lang*=sv] .wp-brand-font,[lang*=sw] .wp-brand-font,[lang*=tr] .wp-brand-font,[lang*=uz] .wp-brand-font{font-family:Recoleta,"Noto Serif",Georgia,Times New Roman,Times,serif}@keyframes onboarding-loading-pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.wpcom-block-editor-nux.components-modal__frame{overflow:visible;height:65vh;top:calc(17.5vh - 35px)}@media(max-width:660px){.wpcom-block-editor-nux.components-modal__frame{width:90vw;min-width:90vw;right:5vw;left:5vw}}@media(min-width:660px){.wpcom-block-editor-nux.components-modal__frame{width:720px;height:350px;top:calc(50% - 35px)}}.wpcom-block-editor-nux .components-modal__header{position:absolute;max-width:90%;right:5%}@media(min-width:660px){.wpcom-block-editor-nux .components-modal__header{display:none}}.wpcom-block-editor-nux .components-guide__container{margin-top:0}.wpcom-block-editor-nux .components-guide__footer{position:absolute;width:100%;height:70px;bottom:-70px;right:0;padding:20px 0;margin:0;display:flex;justify-content:center;background:#fff;border-top:1px solid #dcdcde}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__footer{border-top:none}}.wpcom-block-editor-nux .components-guide__page{position:absolute;width:100%;max-width:90vw;height:100%;justify-content:start}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__page{max-width:100%}}.wpcom-block-editor-nux .components-guide__page-control{position:relative;height:0;top:100%;overflow:visible;margin:0 auto;z-index:2;display:none}.wpcom-block-editor-nux .components-guide__page-control:before{display:inline-block;content:"";height:70px;vertical-align:middle}.wpcom-block-editor-nux .components-guide__page-control li{vertical-align:middle;margin-bottom:0}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__page-control{display:block}}.wpcom-block-editor-nux__page{display:flex;flex-direction:column-reverse;justify-content:flex-end;background:#fff;width:100%;height:90%;max-width:90vw}@media(min-width:660px){.wpcom-block-editor-nux__page{flex-direction:row;justify-content:flex-start;position:absolute;max-width:100%;min-height:350px;bottom:0}}@media(min-width:660px){.wpcom-block-editor-nux__text,.wpcom-block-editor-nux__visual{flex:1 0 50%;min-width:290px}}.wpcom-block-editor-nux__text{padding:0 25px 25px;height:60%}@media(min-width:660px){.wpcom-block-editor-nux__text{height:auto;padding:40px 50px}}.wpcom-block-editor-nux__visual{height:40%;background:#1381d8;text-align:center}@media(min-width:660px){.wpcom-block-editor-nux__visual{height:auto}}.wpcom-block-editor-nux__heading{font-family:Recoleta,"Noto Serif",Georgia,Times New Roman,Times,serif;font-weight:400;letter-spacing:-.4px;color:#1d2327;font-size:32px;line-height:1.19}@media(min-width:660px){.wpcom-block-editor-nux__heading{font-size:42px}}body.locale-de .wpcom-block-editor-nux__heading{font-size:24px}@media(min-width:660px){body.locale-de .wpcom-block-editor-nux__heading{font-size:28px}}.wpcom-block-editor-nux__description{font-size:15px;line-height:22px;color:#50575e}@media(min-width:660px){.wpcom-block-editor-nux__description{font-size:17px;line-height:26px}}.wpcom-block-editor-nux__image{max-width:100%;height:auto;flex:1;align-self:center;max-height:100%}.wpcom-block-editor-nux__image.align-bottom{align-self:flex-end}@media(min-width:660px){.wpcom-block-editor-nux__image{max-height:none}}.wpcom-editor-welcome-tour-frame{background-color:#fff;border-radius:2px;bottom:44px;display:inline;right:16px;position:fixed;z-index:9999;cursor:default}.welcome-tour-card__heading{font-size:1.125rem;margin:.5rem 0}.welcome-tour-card__description{font-size:.875rem;line-height:1.5rem;margin:0}.welcome-tour-card__description .components-button{height:auto;line-height:1;text-decoration:underline;padding:0 4px 0 0}.wpcom-editor-welcome-tour__resume-btn{border-radius:2px;box-shadow:0 2px 6px rgba(60,66,87,.08),0 0 0 1px rgba(60,66,87,.16),0 1px 1px rgba(0,0,0,.08);background-color:#fff;color:#000}.wpcom-editor-welcome-tour__resume-btn.components-button{height:44px}.wpcom-editor-welcome-tour-card-frame{position:relative}.wpcom-editor-welcome-tour-card-frame .components-guide__page-control{bottom:0;right:16px;margin:0;position:absolute}.wpcom-editor-welcome-tour-card-frame .components-guide__page-control li{margin-bottom:0}.welcome-tour-card{width:400px;max-width:92vw}.welcome-tour-card.welcome-tour-card.is-elevated{box-shadow:0 0 0 1px rgba(0,0,0,.1),0 2px 4px 0 rgba(0,0,0,.1)}.welcome-tour-card.components-card{border:none;border-radius:4px}.welcome-tour-card .components-card__body{min-height:114px}.welcome-tour-card .components-card__body,.welcome-tour-card .components-card__footer{border-top:none;padding:16px!important}.welcome-tour-card .components-card__footer .welcome-tour__end-text{color:#949494;font-size:.875rem;font-style:italic}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon{background-color:#f6f7f7;border-radius:50%;color:#949494;margin-right:8px}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon path{fill:#949494}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon.active{background-color:#000;opacity:1}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon.active path{fill:#fff}.welcome-tour-card .components-card__media{min-height:260px}.welcome-tour-card .components-guide__page-control{margin:0}.welcome-tour-card .components-guide__page-control .components-button{min-width:auto}.welcome-tour-card .components-guide__page-control .components-button.has-icon{padding:3px}.welcome-tour-card .components-guide__page-control li{margin-bottom:0}.welcome-tour-card__minimize-icon svg{position:relative;right:-2px}.welcome-tour-card__overlay-controls{right:0;padding:12px;position:absolute;left:0}.welcome-tour-card__overlay-controls .components-button{width:32px;min-width:32px;height:32px;background:#32373c;opacity:0;transition:opacity .2s}.welcome-tour-card__overlay-controls.welcome-tour-card__overlay-controls-visible .components-button,.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button{opacity:.7}.welcome-tour-card__overlay-controls.welcome-tour-card__overlay-controls-visible .components-button:focus,.welcome-tour-card__overlay-controls.welcome-tour-card__overlay-controls-visible .components-button:hover,.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button:focus,.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button:hover,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button:focus,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button:hover{opacity:.9}.welcome-tour-card__next-btn{margin-right:12px;justify-content:center;min-width:85px}
|
wpcom-block-editor-nux/src/test/store.test.js
CHANGED
@@ -6,6 +6,7 @@ const STORE_KEY = 'automattic/wpcom-welcome-guide';
|
|
6 |
|
7 |
beforeAll( () => {
|
8 |
register();
|
|
|
9 |
} );
|
10 |
|
11 |
let originalFetch;
|
6 |
|
7 |
beforeAll( () => {
|
8 |
register();
|
9 |
+
jest.useFakeTimers(); // Required for wait-for-expect to work.
|
10 |
} );
|
11 |
|
12 |
let originalFetch;
|
wpcom-block-editor-nux/src/welcome-tour/style-tour.scss
CHANGED
@@ -152,16 +152,19 @@ $welcome-tour-button-background-color: #32373c; // former $dark-gray-700. TODO:
|
|
152 |
opacity: 0;
|
153 |
transition: opacity 200ms;
|
154 |
}
|
155 |
-
}
|
156 |
|
157 |
-
.wpcom-editor-welcome-tour-frame:hover
|
158 |
-
.welcome-tour-
|
159 |
-
|
160 |
-
|
|
|
161 |
|
162 |
-
|
163 |
-
|
164 |
-
|
|
|
|
|
|
|
165 |
}
|
166 |
|
167 |
.welcome-tour-card__next-btn {
|
152 |
opacity: 0;
|
153 |
transition: opacity 200ms;
|
154 |
}
|
|
|
155 |
|
156 |
+
.wpcom-editor-welcome-tour-frame:hover &,
|
157 |
+
.wpcom-editor-welcome-tour-frame:focus-within &,
|
158 |
+
&.welcome-tour-card__overlay-controls-visible {
|
159 |
+
.components-button {
|
160 |
+
opacity: 0.7;
|
161 |
|
162 |
+
&:hover,
|
163 |
+
&:focus {
|
164 |
+
opacity: 0.9;
|
165 |
+
}
|
166 |
+
}
|
167 |
+
}
|
168 |
}
|
169 |
|
170 |
.welcome-tour-card__next-btn {
|