2022-11-22 12:13:21 +01:00
|
|
|
!function(){var t={770:function(){!function(t,n){"use strict";"function"!=typeof t.CustomEvent&&(t.CustomEvent=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=n.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i},t.CustomEvent.prototype=t.Event.prototype),n.addEventListener("touchstart",(function(t){if("true"===t.target.getAttribute("data-swipe-ignore"))return;a=t.target,u=Date.now(),e=t.touches[0].clientX,i=t.touches[0].clientY,r=0,o=0}),!1),n.addEventListener("touchmove",(function(t){if(!e||!i)return;var n=t.touches[0].clientX,u=t.touches[0].clientY;r=e-n,o=i-u}),!1),n.addEventListener("touchend",(function(t){if(a!==t.target)return;var c=parseInt(s(a,"data-swipe-threshold","20"),10),l=s(a,"data-swipe-unit","px"),d=parseInt(s(a,"data-swipe-timeout","500"),10),f=Date.now()-u,v="",p=t.changedTouches||t.touches||[];"vh"===l&&(c=Math.round(c/100*n.documentElement.clientHeight));"vw"===l&&(c=Math.round(c/100*n.documentElement.clientWidth));Math.abs(r)>Math.abs(o)?Math.abs(r)>c&&f<d&&(v=r>0?"swiped-left":"swiped-right"):Math.abs(o)>c&&f<d&&(v=o>0?"swiped-up":"swiped-down");if(""!==v){var h={dir:v.replace(/swiped-/,""),touchType:(p[0]||{}).touchType||"direct",xStart:parseInt(e,10),xEnd:parseInt((p[0]||{}).clientX||-1,10),yStart:parseInt(i,10),yEnd:parseInt((p[0]||{}).clientY||-1,10)};a.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:h})),a.dispatchEvent(new CustomEvent(v,{bubbles:!0,cancelable:!0,detail:h}))}e=null,i=null,u=null}),!1);var e=null,i=null,r=null,o=null,u=null,a=null;function s(t,e,i){for(;t&&t!==n.documentElement;){var r=t.getAttribute(e);if(r)return r;t=t.parentNode}return i}}(window,document)}},n={};function e(i){var r=n[i];if(void 0!==r)return r.exports;var o=n[i]={exports:{}};return t[i](o,o.exports,e),o.exports}!function(){"use strict";function t(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var n="(prefers-reduced-motion: reduce)",i={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};function r(t){t.length=0}function o(t,n,e){return Array.prototype.slice.call(t,n,e)}function u(t){return t.bind.apply(t,[null].concat(o(arguments,1)))}var a=setTimeout,s=function(){};function c(t){return requestAnimationFrame(t)}function l(t,n){return typeof n===t}function d(t){return!g(t)&&l("object",t)}var f=Array.isArray,v=u(l,"function"),p=u(l,"string"),h=u(l,"undefined");function g(t){return null===t}function m(t){try{return t instanceof(t.ownerDocument.defaultView||window).HTMLElement}catch(t){return!1}}function y(t){return f(t)?t:[t]}function b(t,n){y(t).forEach(n)}function w(t,n){return t.indexOf(n)>-1}function E(t,n){return t.push.apply(t,y(n)),t}function _(t,n,e){t&&b(n,(function(n){n&&t.classList[e?"add":"remove"](n)}))}function S(t,n){_(t,p(n)?n.split(" "):n,!0)}function x(t,n){b(n,t.appendChild.bind(t))}function L(t,n){b(t,(function(t){var e=(n||t).parentNode;e&&e.insertBefore(t,n)}))}function C(t,n){return m(t)&&(t.msMatchesSelector||t.matches).call(t,n)}function k(t,n){var e=t?o(t.children):[];return n?e.filter((function(t){return C(t,n)})):e}function P(t,n){return n?k(t,n)[0]:t.firstElementChild}var A=Object.keys;function M(t,n,e){return t&&(e?A(t).reverse():A(t)).forEach((function(e){"__proto__"!==e&&n(t[e],e)})),t}function D(t){return o(arguments,1).forEach((function(n){M(n,(function(e,i){t[i]=n[i]}))})),t}function z(t){return o(arguments,1).forEach((function(n){M(n,(function(n,e){f(n)?t[e]=n.slice():d(n)?t[e]=z({},d(t[e])?t[e]:{},n):t[e]=n}))})),t}function I(t,n){b(n||A(t),(function(n){delete t[n]}))}function N(t,n){b(t,(function(t){b(n,(function(n){t&&t.removeAttribute(n)}))}))}function T(t,n,e){d(n)?M(n,(function(n,e){T(t,e,n)})):b(t,(function(t){g(e)||""===e?N(t,n):t.setAttribute(n,String(e))}))}function O(t,n,e){var i=document.createElement(t);return n&&(p(n)?S(i,n):T(i,n)),e&&x(e,i),i}function F(t,n,e){if(h(e))return getComputedStyle(t)[n];g(e)||(t.style[n]=""+e)}function j(t,n){F(t,"display",n)}f
|