You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
45 KiB
91 lines
45 KiB
(()=>{var t,e={837:(t,e,n)=>{"use strict";var i={};n.r(i),n.d(i,{__:()=>ee,component:()=>Zt,install:()=>qt,mount:()=>$t,pure:()=>Jt,register:()=>Wt,uninstall:()=>Kt,unmount:()=>Gt,unregister:()=>Vt,version:()=>te,withTypes:()=>Qt});
|
|
/* Riot WIP, @license MIT */
|
|
const r=new Map,s=Symbol("riot-component"),o=new Set,a="mount",u="update",c="unmount",l="shouldUpdate",h="onBeforeMount",p="onMounted",d="onBeforeUpdate",f="onUpdated",m="onBeforeUnmount",v="onUnmounted",g="props",y="state",b="slots",T="root",x=Symbol("pure"),E=Symbol("is_updating"),O=Symbol("parent"),A=Symbol("attributes"),w=Symbol("template"),_={ATTRIBUTE:0,EVENT:1,TEXT:2,VALUE:3};function N(t){return t.replace(/-(\w)/g,((t,e)=>e.toUpperCase()))}
|
|
/* Riot WIP, @license MIT */
|
|
function S(t,e){throw new Error(t,{cause:e})}function j(t){const e=new Map,n=n=>(e.has(n)||e.set(n,t.call(this,n)))&&e.get(n);return n.cache=e,n}function C(t){return t.reduce(((t,e)=>{const{value:n,type:i}=e;switch(!0){case!e.name&&0===i:return Object.assign({},t,n);case 3===i:t.value=e.value;break;default:t[N(e.name)]=e.value}return t}),{})}
|
|
/* Riot WIP, @license MIT */
|
|
function M(t,e){return typeof t===e}function I(t){const e=t.ownerSVGElement;return!!e||null===e}function P(t){return"template"===t.tagName.toLowerCase()}function D(t){return M(t,"function")}function R(t){return!k(t)&&t.constructor===Object}function k(t){return null==t}
|
|
/* Riot WIP, @license MIT */
|
|
function z(){return this}function L(t){return D(t)?t.prototype&&t.prototype.constructor?new t:t():t}
|
|
/* Riot v7.1.0, @license MIT */
|
|
const U=Object.freeze({[a]:z,[u]:z,[c]:z}),Y=Object.assign({},U,{clone:z,createDOM:z});function X(t){for(;t.firstChild;)t.removeChild(t.firstChild)}const F=t=>t.remove(),H=(t,e)=>e&&e.parentNode&&e.parentNode.insertBefore(t,e),B={EACH:0,IF:1,SIMPLE:2,TAG:3,SLOT:4};
|
|
/* Riot WIP, @license MIT */
|
|
function W(t,e,n,i){return void 0===i&&(i={}),Object.defineProperty(t,e,Object.assign({value:n,enumerable:!1,writable:!1,configurable:!0},i)),t}function q(t,e,n){return Object.entries(e).forEach((e=>{let[i,r]=e;W(t,i,r,n)})),t}function V(t,e){return Object.entries(e).forEach((e=>{let[n,i]=e;t[n]||(t[n]=i)})),t}
|
|
/* Riot WIP, @license MIT */
|
|
const $=Symbol(),G=Symbol();function K(t){const e=t.dom.cloneNode(!0),{head:n,tail:i}=function(){const t=document.createTextNode(""),e=document.createTextNode("");return t[$]=!0,e[G]=!0,{head:t,tail:e}}();return{avoidDOMInjection:!0,fragment:e,head:n,tail:i,children:[n,...Array.from(e.childNodes),i]}}const Z=Symbol("unmount"),J={nodes:[],mount(t,e){return this.update(t,e)},update(t,e){const{placeholder:n,nodes:i,childrenMap:r}=this,s=t===Z?null:this.evaluate(t),o=s?Array.from(s):[],{newChildrenMap:a,batches:u,futureNodes:c}=function(t,e,n,i){const{condition:r,template:s,childrenMap:o,itemName:a,getKey:u,indexName:c,root:l,isTemplateTag:h}=i,p=new Map,d=[],f=[];return t.forEach(((t,i)=>{const m=function(t,e){let{itemName:n,indexName:i,index:r,item:s}=e;W(t,n,s),i&&W(t,i,r);return t}(Object.create(e),{itemName:a,indexName:c,index:i,item:t}),v=u?u(m):i,g=o.get(v),y=[];if(function(t,e){return!!t&&!t(e)}(r,m))return;const b=!g,T=g?g.template:s.clone(),x=T.el||l.cloneNode(),E=h&&b?K(T):T.meta;b?d.push((()=>T.mount(x,m,n,E))):d.push((()=>T.update(m,n))),h?y.push(...E.children):y.push(x),o.delete(v),f.push(...y),p.set(v,{nodes:y,template:T,context:m,index:i})})),{newChildrenMap:p,batches:d,futureNodes:f}}(o,t,e,this);return((t,e,n,i)=>{const r=e.length;let s=t.length,o=r,a=0,u=0,c=null;for(;a<s||u<o;)if(s===a){const t=o<r?u?n(e[u-1],-0).nextSibling:n(e[o-u],0):i;for(;u<o;)H(n(e[u++],1),t)}else if(o===u)for(;a<s;)c&&c.has(t[a])||F(n(t[a],-1)),a++;else if(t[a]===e[u])a++,u++;else if(t[s-1]===e[o-1])s--,o--;else if(t[a]===e[o-1]&&e[u]===t[s-1]){const i=n(t[--s],-1).nextSibling;H(n(e[u++],1),n(t[a++],-1).nextSibling),H(n(e[--o],1),i),t[s]=e[o]}else{if(!c){c=new Map;let t=u;for(;t<o;)c.set(e[t],t++)}if(c.has(t[a])){const i=c.get(t[a]);if(u<i&&i<o){let r=a,p=1;for(;++r<s&&r<o&&c.get(t[r])===i+p;)p++;if(p>i-u){const r=n(t[a],0);for(;u<i;)H(n(e[u++],1),r)}else l=n(e[u++],1),(h=n(t[a++],-1))&&h.parentNode&&h.parentNode.replaceChild(l,h)}else a++}else F(n(t[a++],-1))}var l,h})(i,c,function(t,e){return(n,i)=>{if(i<0){const n=t[t.length-1];if(n){const{template:i,nodes:r,context:s}=n;r.pop(),r.length||(t.pop(),i.unmount(s,e,null))}}return n}}(Array.from(r.values()),e),n),u.forEach((t=>t())),this.childrenMap=a,this.nodes=c,this},unmount(t,e){return this.update(Z,e),this}};const Q={mount(t,e){return this.update(t,e)},update(t,e){const n=!!this.evaluate(t),i=!this.value&&n,r=this.value&&!n,s=()=>{const n=this.node.cloneNode();H(n,this.placeholder),this.template=this.template.clone(),this.template.mount(n,t,e)};switch(!0){case i:s();break;case r:this.unmount(t);break;default:n&&this.template.update(t,e)}return this.value=n,this},unmount(t,e){return this.template.unmount(t,e,!0),this}};const tt="undefined"==typeof Element?{}:Element.prototype,et=j((t=>tt.hasOwnProperty(t)));function nt(t,e,n,i){let{name:r}=e;if(!r)return i&&function(t,e,n){const i=e?Object.keys(e):[];Object.keys(n).filter((t=>!i.includes(t))).forEach((e=>t.removeAttribute(e)))}(t,n,i),void(n&&function(t,e){Object.entries(e).forEach((e=>{let[n,i]=e;return nt(t,{name:n},i)}))}(t,n));!et(r)&&(function(t){return M(t,"boolean")}(n)||R(n)||D(n))&&(t[r]=n),!function(t){return!t&&0!==t}(n)?function(t){return!0===t||["string","number"].includes(typeof t)}(n)&&t.setAttribute(r,function(t,e){return!0===e?t:e}(r,n)):t.removeAttribute(r)}const it=/^on/,rt={handleEvent(t){this[t.type](t)}},st=new WeakMap;function ot(t){return k(t)?"":t}const at=(t,e)=>{const n=t.childNodes[e];if(n.nodeType===Node.COMMENT_NODE){const e=document.createTextNode("");return t.replaceChild(e,n),e}return n};const ut={0:nt,1:function(t,e,n){let{name:i}=e;const r=i.replace(it,""),s=st.get(t)||(t=>{const e=Object.create(rt);return st.set(t,e),e})(t),[o,a]=(t=>Array.isArray(t)?t:[t,!1])(n),u=s[r],c=o&&!u;u&&!o&&t.removeEventListener(r,s),c&&t.addEventListener(r,s,a),s[r]=o},2:function(t,e,n){t.data=ot(n)},3:function(t,e,n){t.value=ot(n)}},ct={mount(t){return this.value=this.evaluate(t),lt(this,this.value),this},update(t){const e=this.evaluate(t);return this.value!==e&&(lt(this,e),this.value=e),this},unmount(){return 1===this.type&<(this,null),this}};function lt(t,e){return ut[t.type](t.node,t,e,t.value)}function ht(t,e){return Object.assign({},ct,e,{node:2===e.type?at(t,e.childNodeIndex):t})}const pt=(t,e)=>t[O]||e,dt={attributes:[],getTemplateScope(t,e){return function(t,e,n){if(!t||!t.length)return n;const i=t.map((t=>Object.assign({},t,{value:t.evaluate(e)})));return Object.assign(Object.create(n||null),C(i))}(this.attributes,t,e)},mount(t,e){const n=!!t.slots&&t.slots.find((t=>{let{id:e}=t;return e===this.name})),{parentNode:i}=this.node,r=pt(t,e);return this.template=n&&Et(n.html,n.bindings).createDOM(i),this.template&&(X(this.node),this.template.mount(this.node,this.getTemplateScope(t,r),r),this.template.children=Array.from(this.node.childNodes)),ft(this.node),F(this.node),this},update(t,e){if(this.template){const n=pt(t,e);this.template.update(this.getTemplateScope(t,n),n)}return this},unmount(t,e,n){return this.template&&this.template.unmount(this.getTemplateScope(t,e),null,n),this}};function ft(t){const e=t&&t.firstChild;e&&(H(e,t),ft(t))}function mt(t){return t.reduce(((t,e)=>{let{bindings:n}=e;return t.concat(n)}),[])}const vt={mount(t){return this.update(t)},update(t,e){const n=this.evaluate(t);return n&&n===this.name?this.tag.update(t):(this.unmount(t,e,!0),this.name=n,this.tag=function(t,e,n){return void 0===e&&(e=[]),void 0===n&&(n=[]),t?t({slots:e,attributes:n}):Et(function(t){return t.reduce(((t,e)=>t+e.html),"")}(e),[...mt(e),{expressions:n.map((t=>Object.assign({type:0},t)))}])}(this.getComponent(n),this.slots,this.attributes),this.tag.mount(this.node,t)),this},unmount(t,e,n){return this.tag&&this.tag.unmount(n),this}};const gt={1:function(t,e){let{evaluate:n,template:i}=e;const r=document.createTextNode("");return H(r,t),F(t),Object.assign({},Q,{node:t,evaluate:n,placeholder:r,template:i.createDOM(t)})},2:function(t,e){let{expressions:n}=e;return Object.assign({},(i=n.map((e=>ht(t,e))),["mount","update","unmount"].reduce(((t,e)=>Object.assign({},t,{[e]:t=>i.map((n=>n[e](t)))&&r})),{})));var i,r},0:function(t,e){let{evaluate:n,condition:i,itemName:r,indexName:s,getKey:o,template:a}=e;const u=document.createTextNode(""),c=t.cloneNode();return H(u,t),F(t),Object.assign({},J,{childrenMap:new Map,node:t,root:c,condition:i,evaluate:n,isTemplateTag:P(c),template:a.createDOM(t),getKey:o,indexName:s,itemName:r,placeholder:u})},3:function(t,e){let{evaluate:n,getComponent:i,slots:r,attributes:s}=e;return Object.assign({},vt,{node:t,evaluate:n,slots:r,attributes:s,getComponent:i})},4:function(t,e){let{name:n,attributes:i}=e;return Object.assign({},dt,{attributes:i,node:t,name:n})}};function yt(t,e){return t.map((t=>2===t.type?Object.assign({},t,{childNodeIndex:t.childNodeIndex+e}):t))}function bt(t,e,n){const{selector:i,type:r,redundantAttribute:s,expressions:o}=e,a=i?t.querySelector(i):t;s&&a.removeAttribute(s);const u=o||[];return(gt[r]||gt[2])(a,Object.assign({},e,{expressions:n&&!i?yt(u,n):u}))}function Tt(t,e){return I(t)?function(t,e){return e.ownerDocument.importNode((new window.DOMParser).parseFromString(`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,"application/xml").documentElement,!0)}(e,t):function(t,e){const n=P(e)?e:document.createElement("template");return n.innerHTML=t,n.content}(e,t)}const xt={createDOM(t){return this.dom=this.dom||function(t,e){return e&&("string"==typeof e?Tt(t,e):e)}(t,this.html)||document.createDocumentFragment(),this},mount(t,e,n,i){void 0===i&&(i={}),t||S("Please provide DOM node to mount properly your template"),this.el&&this.unmount(e);const{fragment:r,children:s,avoidDOMInjection:o}=i,{parentNode:a}=s?s[0]:t,u=P(t),c=u?function(t,e,n){const i=Array.from(t.childNodes);return Math.max(i.indexOf(e),i.indexOf(n.head)+1,0)}(a,t,i):null;this.createDOM(t);const l=r||this.dom.cloneNode(!0);return this.el=u?a:t,this.children=u?s||Array.from(l.childNodes):null,!o&&l&&function(t,e){switch(!0){case I(t):!function(t,e){for(;t.firstChild;)e.appendChild(t.firstChild)}(e,t);break;case P(t):t.parentNode.replaceChild(e,t);break;default:t.appendChild(e)}}(t,l),this.bindings=this.bindingsData.map((t=>bt(this.el,t,c))),this.bindings.forEach((t=>t.mount(e,n))),this.meta=i,this},update(t,e){return this.bindings.forEach((n=>n.update(t,e))),this},unmount(t,e,n){void 0===n&&(n=!1);const i=this.el;if(!i)return this;switch(this.bindings.forEach((i=>i.unmount(t,e,n))),!0){case i[x]||null===n:break;case Array.isArray(this.children):!function(t){for(let e=0;e<t.length;e++)F(t[e])}(this.children);break;case!n:X(i);break;case!!n:F(i)}return this.el=null,this},clone(){return Object.assign({},this,{meta:{},el:null})}};function Et(t,e){return void 0===e&&(e=[]),Object.assign({},xt,{html:t,bindingsData:e})}
|
|
/* Riot v7.1.0, @license MIT */
|
|
const Ot=(t,e)=>t[s]=e;
|
|
/* Riot v7.1.0, @license MIT */
|
|
function At(t){return[a,u,c].reduce(((e,n)=>(e[n]=t(n),e)),{})}
|
|
/* Riot WIP, @license MIT */
|
|
function wt(t){return Array.isArray(t)?t:/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&"number"==typeof t.length?Array.from(t):[t]}
|
|
/* Riot WIP, @license MIT */
|
|
function _t(t,e){return wt("string"==typeof t?(e||document).querySelectorAll(t):t)}
|
|
/* Riot v7.1.0, @license MIT */
|
|
const Nt=Object.freeze({$(t){return _t(t,this.root)[0]},$$(t){return _t(t,this.root)}}),St=Object.freeze({[l]:z,[h]:z,[p]:z,[d]:z,[f]:z,[m]:z,[v]:z}),jt=t=>1===t.length?t[0]:t;function Ct(t,e,n){const i="object"==typeof e?e:{[e]:n},r=Object.keys(i);return wt(t).forEach((t=>{r.forEach((e=>t.setAttribute(e,i[e])))})),t}function Mt(t,e){return function(t,e,n){const i="string"==typeof e?[e]:e;return jt(wt(t).map((t=>jt(i.map((e=>t[n](e)))))))}(t,e,"getAttribute")}
|
|
/* Riot v7.1.0, @license MIT */
|
|
const It=new Map,Pt=()=>Dt||(Ct(Dt=_t("style[riot]")[0]||document.createElement("style"),"type","text/css"),Dt.parentNode||document.head.appendChild(Dt),Dt);var Dt;const Rt={CSS_BY_NAME:It,add(t,e){return It.has(t)||(It.set(t,e),this.inject()),this},inject(){return Pt().innerHTML=[...It.values()].join("\n"),this},remove(t){return It.has(t)&&(It.delete(t),this.inject()),this}};
|
|
/* Riot WIP, @license MIT */
|
|
function kt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return(i=[...n,...i]).length<t.length?kt(t,...i):t(...i)}}
|
|
/* Riot v7.1.0, @license MIT */
|
|
function zt(t){return Mt(t,"is")||t.tagName.toLowerCase()}
|
|
/* Riot v7.1.0, @license MIT */
|
|
function Lt(t,e){return Object.assign({},t,L(e))}
|
|
/* Riot v7.1.0, @license MIT */
|
|
function Ut(t,e){return void 0===e&&(e={}),Object.assign({},
|
|
/* Riot WIP, @license MIT */
|
|
function(t){return Array.from(t.attributes).reduce(((t,e)=>(t[N(e.name)]=e.value,t)),{})}(t),L(e))}
|
|
/* Riot v7.1.0, @license MIT */
|
|
function Yt(t,e){let{slots:n,attributes:i,props:r}=e;return s=
|
|
/* Riot v7.1.0, @license MIT */
|
|
function(t){return[...o].reduce(((t,e)=>e(t)||t),t)}(q(R(t)?Object.create(t):t,{mount(e,s,o){return void 0===s&&(s={}),W(e,x,!1),this[O]=o,this[A]=
|
|
/* Riot v7.1.0, @license MIT */
|
|
function(t,e){void 0===e&&(e=[]);const n=e.map((e=>ht(t,e))),i={};return Object.assign(i,Object.assign({expressions:n},At((t=>e=>(n.forEach((n=>n[t](e))),i)))))}(e,i).mount(o),W(this,g,Object.freeze(Object.assign({},Ut(e,r),C(this[A].expressions)))),this[y]=Lt(this[y],s),this[w]=this.template.createDOM(e).clone(),Ot(e,this),t.name&&
|
|
/* Riot v7.1.0, @license MIT */
|
|
function(t,e){zt(t)!==e&&Ct(t,"is",e)}(e,t.name),W(this,T,e),W(this,b,n),this[h](this[g],this[y]),this[w].mount(e,this,o),this[p](this[g],this[y]),this},update(t,e){void 0===t&&(t={}),e&&(this[O]=e,this[A].update(e));const n=C(this[A].expressions);if(!1!==this[l](n,this[g]))return W(this,g,Object.freeze(Object.assign({},this[g],n))),this[y]=Lt(this[y],t),this[d](this[g],this[y]),this[E]||(this[E]=!0,this[w].update(this,this[O])),this[f](this[g],this[y]),this[E]=!1,this},unmount(t){return this[m](this[g],this[y]),this[A].unmount(),this[w].unmount(this,this[O],null===t?null:!t),this[v](this[g],this[y]),this}})),Object.keys(t).filter((e=>D(t[e]))).forEach((t=>{s[t]=s[t].bind(s)})),s;var s}
|
|
/* Riot v7.1.0, @license MIT */
|
|
function Xt(t){let{css:e,template:n,componentAPI:i,name:r}=t;return e&&r&&Rt.add(r,e),kt(Yt)(q(V(i,Object.assign({},St,{[g]:{},[y]:{}})),Object.assign({[b]:null,[T]:null},Nt,{name:r,css:e,template:n})))}const Ft=t=>{const e=(void 0===(n=t.exports?t.exports.components:{})&&(n={}),Object.entries(L(n)).reduce(((t,e)=>{let[n,i]=e;
|
|
/* Riot WIP, @license MIT */
|
|
var r;return t[(r=n,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())]=Bt(i),t}),{}));
|
|
/* Riot v7.1.0, @license MIT */
|
|
var n;return n=>n===t.name?Ht(t):e[n]||r.get(n)},Ht=j(Bt);function Bt(t){const{css:e,template:n,exports:i,name:r}=t,s=n?
|
|
/* Riot v7.1.0, @license MIT */
|
|
function(t,e,n){return t(Et,_,B,n)}(n,0,Ft(t)):Y;return t=>{let{slots:o,attributes:u,props:c}=t;if(i&&i[x])
|
|
/* Riot v7.1.0, @license MIT */return function(t,e){let{slots:n,attributes:i,props:r,css:s,template:o}=e;o&&S("Pure components can not have html"),s&&S("Pure components do not have css");const u=V(t({slots:n,attributes:i,props:r}),U);return At((t=>function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(t===a){const[t]=n;W(t,x,!0),Ot(t,u)}return u[t](...n),u}))}(i,{slots:o,attributes:u,props:c,css:e,template:n});const l=L(i)||{},h=Xt({css:e,template:s,componentAPI:l,name:r})({slots:o,attributes:u,props:c});return{mount:(t,e,n)=>h.mount(t,n,e),update:(t,e)=>h.update(e,t),unmount:t=>h.unmount(t)}}}
|
|
/* Riot v7.1.0, @license MIT */
|
|
function Wt(t,e){let{css:n,template:i,exports:s}=e;return r.has(t)&&S(`The component "${t}" was already registered`),r.set(t,Bt({name:t,css:n,template:i,exports:s})),r}
|
|
/* Riot v7.1.0, @license MIT */
|
|
function qt(t){return D(t)||S("Plugins must be of type function"),o.has(t)&&S("This plugin was already installed"),o.add(t),o}
|
|
/* Riot v7.1.0, @license MIT */
|
|
function Vt(t){return r.has(t)||S(`The component "${t}" was never registered`),r.delete(t),Rt.remove(t),r}
|
|
/* Riot v7.1.0, @license MIT */
|
|
function $t(t,e,n){return _t(t).map((t=>
|
|
/* Riot v7.1.0, @license MIT */
|
|
function(t,e,n,i){const s=n||zt(t);return r.has(s)||S(`The component named "${s}" was never registered`),r.get(s)({props:e,slots:i}).mount(t)}(t,e,n)))}
|
|
/* Riot v7.1.0, @license MIT */
|
|
function Gt(t,e){return _t(t).map((t=>(t[s]&&t[s].unmount(e),t)))}
|
|
/* Riot v7.1.0, @license MIT */
|
|
function Kt(t){return o.has(t)||S("This plugin was never installed"),o.delete(t),o}
|
|
/* Riot v7.1.0, @license MIT */
|
|
function Zt(t){return function(e,n,i){let{slots:r,attributes:s,parentScope:o}=void 0===i?{}:i;
|
|
/* Riot WIP, @license MIT */
|
|
return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(((t,e)=>function(){return t(e(...arguments))}))}((t=>t.mount(e,o)),(t=>t({props:n,slots:r,attributes:s})),Bt)(t)}}
|
|
/* Riot v7.1.0, @license MIT */
|
|
function Jt(t){return D(t)||S('riot.pure accepts only arguments of type "function"'),t[x]=!0,t}
|
|
/* Riot v7.1.0, @license MIT */
|
|
const Qt=t=>t,te="v7.1.0",ee={cssManager:Rt,DOMBindings:{template:Et,createBinding:bt,createExpression:ht,bindingTypes:B,expressionTypes:_},globals:{DOM_COMPONENT_INSTANCE_PROPERTY:s,PARENT_KEY_SYMBOL:O}};
|
|
/* Riot v7.1.0, @license MIT */
|
|
var ne=n(840);
|
|
/**
|
|
* Mixin for extends Riot-Component
|
|
*
|
|
* @author Björn Hase
|
|
* @license http://opensource.org/licenses/MIT The MIT License
|
|
* @link https://gitea.node001.net/tiny-components/slider
|
|
*
|
|
*/const ie={state:{position:0,max:0,slides:void 0,classes:{item:"tiny-slider__item"}},onMounted:function(){var t=this;this.props.slides&&(this.state.slides=this.props.slides),window.addEventListener("resize",this.update.bind(this)),setTimeout((function(){t.update()}),100),new ne(this.root).on("swipe",(function(e){4===e.direction?t.handlePrevious(e):2===e.direction&&t.handleNext(e)}))},onBeforeUnmount:function(){window.removeEventListener("resize",this.update.bind(this))},onBeforeUpdate:function(t,e){var n=this,i=this.state.max,r=this.$("."+this.state.classes.item);if(r){this.state.max=0,this.state.width=r.offsetWidth,this.$$("."+this.state.classes.item).forEach((function(t,e){t.offsetLeft<n.root.offsetWidth&&n.state.max++}));var s=Math.abs(this.state.max-i);this.state.position>=s&&this.state.position>1&&(this.state.position-=s)}},handleSelect:function(t,e){t.preventDefault(),this.state.position!==e&&this.update({position:e})},handlePrevious:function(t){t.preventDefault(),this.state.position>0&&this.update({position:--this.state.position})},handleNext:function(t){t.preventDefault(),this.state.position<this.props.slides.length-1&&this.update({position:++this.state.position})},getPreviousClasses:function(){var t=["tiny-slider__button","tiny-slider__button--previous"];return this.state.position>0?t.push("visibility-visible"):t.push("visibility-hidden"),t.join(" ")},getNextClasses:function(){var t=["tiny-slider__button","tiny-slider__button--next"];return this.state.position<=this.props.slides.length-this.state.max?t.push("visibility-visible"):t.push("visibility-hidden"),t.join(" ")},getSelectClasses:function(t){var e=["tiny-slider__select-item"];return this.state.position===t&&e.push("tiny-slider__select-item--current"),e.join(" ")},getContentStyles:function(){var t=-this.state.position*this.state.width;return this.styles({transform:"translate("+t+"px, 0px)"})}};Wt("tiny-raw",{css:null,exports:{setInnerHTML(){this.root.innerHTML=this.props.html},onMounted(){this.setInnerHTML()},onUpdated(){this.setInnerHTML()}},template:(t,e,n,i)=>t("\n\n /**\n * tiny raw\n *\n * @author Björn Hase\n * @license http://opensource.org/licenses/MIT The MIT License\n * @link https://gitea.node001.net/tiny-components/raw\n *\n */\n\n ",[]),name:"tiny-raw"});const re={css:null,exports:()=>({...ie}),template:(t,e,n,i)=>t('<div class="slider tiny-slider"><div class="display-flex"><button expr0="expr0"><svg class="icon"><use xlink:href="/symbol-defs.svg#icon-previous"/></svg></button><div class="overflow-hidden"><div expr1="expr1" class="slider__inner tiny-slider__inner"><div expr2="expr2" class="slider__item tiny-slider__item"></div></div></div><button expr7="expr7"><svg class="icon"><use xlink:href="/symbol-defs.svg#icon-next"/></svg></button></div><div class="tiny-slider__select display-flex m-top-4"><span expr8="expr8"></span></div></div>',[{redundantAttribute:"expr0",selector:"[expr0]",expressions:[{type:e.ATTRIBUTE,name:"class",evaluate:t=>t.getPreviousClasses()},{type:e.EVENT,name:"onclick",evaluate:t=>e=>{t.handlePrevious(e)}}]},{redundantAttribute:"expr1",selector:"[expr1]",expressions:[{type:e.ATTRIBUTE,name:"style",evaluate:t=>t.getContentStyles()}]},{type:n.EACH,getKey:null,condition:null,template:t('<h3 expr3="expr3" class="tiny-slider__title"> </h3><figure expr4="expr4" class="tiny-slider__figure"></figure><div class="tiny-slider__content"><div class="content"><tiny-raw expr6="expr6"></tiny-raw></div></div>',[{redundantAttribute:"expr3",selector:"[expr3]",expressions:[{type:e.TEXT,childNodeIndex:0,evaluate:t=>[t.slide.title].join("")}]},{type:n.IF,evaluate:t=>t.slide.media,redundantAttribute:"expr4",selector:"[expr4]",template:t('<img expr5="expr5" class="tiny-slider__media" loading="lazy"/>',[{redundantAttribute:"expr5",selector:"[expr5]",expressions:[{type:e.ATTRIBUTE,name:"src",evaluate:t=>t.slide.media.url},{type:e.ATTRIBUTE,name:"alt",evaluate:t=>t.slide.media.description}]}])},{type:n.TAG,getComponent:i,evaluate:t=>"tiny-raw",slots:[],attributes:[{type:e.ATTRIBUTE,name:"html",evaluate:t=>t.slide.content}],redundantAttribute:"expr6",selector:"[expr6]"}]),redundantAttribute:"expr2",selector:"[expr2]",itemName:"slide",indexName:null,evaluate:t=>t.state.slides},{redundantAttribute:"expr7",selector:"[expr7]",expressions:[{type:e.ATTRIBUTE,name:"class",evaluate:t=>t.getNextClasses()},{type:e.EVENT,name:"onclick",evaluate:t=>e=>{t.handleNext(e)}}]},{type:n.EACH,getKey:null,condition:null,template:t(null,[{expressions:[{type:e.ATTRIBUTE,name:"class",evaluate:t=>t.getSelectClasses(t.position)},{type:e.EVENT,name:"onclick",evaluate:t=>e=>{t.handleSelect(e,t.position)}}]}]),redundantAttribute:"expr8",selector:"[expr8]",itemName:"slide",indexName:"position",evaluate:t=>t.state.slides}]),name:"tiny-slider"};function se(t){return function(t){if(Array.isArray(t))return ue(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ae(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,s,o,a=[],u=!0,c=!1;try{if(s=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=s.call(n)).done)&&(a.push(i.value),a.length!==e);u=!0);}catch(t){c=!0,r=t}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return a}}(t,e)||ae(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(t,e){if(t){if("string"==typeof t)return ue(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ue(t,e):void 0}}function ue(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ce(t){return Object.entries(t).reduce((function(t,e){var n=oe(e,2),i=n[0],r=n[1];return[].concat(se(t),["".concat(i,": ").concat(r)])}),[]).join(";")}Wt("tiny-slider",re),qt((function(t){return t.styles=ce,t})),window.riot=i},840:(t,e,n)=>{var i;
|
|
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
* http://hammerjs.github.io/
|
|
*
|
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
* Licensed under the MIT license */!function(r,s,o,a){"use strict";var u,c=["","webkit","Moz","MS","ms","o"],l=s.createElement("div"),h=Math.round,p=Math.abs,d=Date.now;function f(t,e,n){return setTimeout(x(t,n),e)}function m(t,e,n){return!!Array.isArray(t)&&(v(t,n[e],n),!0)}function v(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==a)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function g(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=r.console&&(r.console.warn||r.console.log);return s&&s.call(r.console,i,n),t.apply(this,arguments)}}u="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==a&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var y=g((function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===a)&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use `assign`."),b=g((function(t,e){return y(t,e,!0)}),"merge","Use `assign`.");function T(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&u(i,n)}function x(t,e){return function(){return t.apply(e,arguments)}}function E(t,e){return"function"==typeof t?t.apply(e&&e[0]||a,e):t}function O(t,e){return t===a?e:t}function A(t,e,n){v(S(e),(function(e){t.addEventListener(e,n,!1)}))}function w(t,e,n){v(S(e),(function(e){t.removeEventListener(e,n,!1)}))}function _(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function N(t,e){return t.indexOf(e)>-1}function S(t){return t.trim().split(/\s+/g)}function j(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function C(t){return Array.prototype.slice.call(t,0)}function M(t,e,n){for(var i=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];j(r,o)<0&&i.push(t[s]),r[s]=o,s++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}function I(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),s=0;s<c.length;){if((i=(n=c[s])?n+r:e)in t)return i;s++}return a}var P=1;function D(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var R="ontouchstart"in r,k=I(r,"PointerEvent")!==a,z=R&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),L="touch",U="mouse",Y=24,X=["x","y"],F=["clientX","clientY"];function H(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){E(t.options.enable,[t])&&n.handler(e)},this.init()}function B(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,s=1&e&&i-r==0,o=12&e&&i-r==0;n.isFirst=!!s,n.isFinal=!!o,s&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=W(e));r>1&&!n.firstMultiple?n.firstMultiple=W(e):1===r&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,u=o?o.center:s.center,c=e.center=q(i);e.timeStamp=d(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=K(u,c),e.distance=G(u,c),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};1!==e.eventType&&4!==s.eventType||(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y});e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=$(e.deltaX,e.deltaY);var l=V(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=p(l.x)>p(l.y)?l.x:l.y,e.scale=o?(h=o.pointers,f=i,G(f[0],f[1],F)/G(h[0],h[1],F)):1,e.rotation=o?function(t,e){return K(e[1],e[0],F)+K(t[1],t[0],F)}(o.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,s,o=t.lastInterval||e,u=e.timeStamp-o.timeStamp;if(8!=e.eventType&&(u>25||o.velocity===a)){var c=e.deltaX-o.deltaX,l=e.deltaY-o.deltaY,h=V(u,c,l);i=h.x,r=h.y,n=p(h.x)>p(h.y)?h.x:h.y,s=$(c,l),t.lastInterval=e}else n=o.velocity,i=o.velocityX,r=o.velocityY,s=o.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=s}(n,e);var h,f;var m=t.element;_(e.srcEvent.target,m)&&(m=e.srcEvent.target);e.target=m}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function W(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:e,center:q(e),deltaX:t.deltaX,deltaY:t.deltaY}}function q(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:h(n/e),y:h(i/e)}}function V(t,e,n){return{x:e/t||0,y:n/t||0}}function $(t,e){return t===e?1:p(t)>=p(e)?t<0?2:4:e<0?8:16}function G(t,e,n){n||(n=X);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function K(t,e,n){n||(n=X);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}H.prototype={handler:function(){},init:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(D(this.element),this.evWin,this.domHandler)}};var Z={mousedown:1,mousemove:2,mouseup:4},J="mousedown",Q="mousemove mouseup";function tt(){this.evEl=J,this.evWin=Q,this.pressed=!1,H.apply(this,arguments)}T(tt,H,{handler:function(t){var e=Z[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:U,srcEvent:t}))}});var et={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},nt={2:L,3:"pen",4:U,5:"kinect"},it="pointerdown",rt="pointermove pointerup pointercancel";function st(){this.evEl=it,this.evWin=rt,H.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(it="MSPointerDown",rt="MSPointerMove MSPointerUp MSPointerCancel"),T(st,H,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=et[i],s=nt[t.pointerType]||t.pointerType,o=s==L,a=j(e,t.pointerId,"pointerId");1&r&&(0===t.button||o)?a<0&&(e.push(t),a=e.length-1):12&r&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(a,1))}});var ot={touchstart:1,touchmove:2,touchend:4,touchcancel:8},at="touchstart",ut="touchstart touchmove touchend touchcancel";function ct(){this.evTarget=at,this.evWin=ut,this.started=!1,H.apply(this,arguments)}function lt(t,e){var n=C(t.touches),i=C(t.changedTouches);return 12&e&&(n=M(n.concat(i),"identifier",!0)),[n,i]}T(ct,H,{handler:function(t){var e=ot[t.type];if(1===e&&(this.started=!0),this.started){var n=lt.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:L,srcEvent:t})}}});var ht={touchstart:1,touchmove:2,touchend:4,touchcancel:8},pt="touchstart touchmove touchend touchcancel";function dt(){this.evTarget=pt,this.targetIds={},H.apply(this,arguments)}function ft(t,e){var n=C(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,s,o=C(t.changedTouches),a=[],u=this.target;if(s=n.filter((function(t){return _(t.target,u)})),1===e)for(r=0;r<s.length;)i[s[r].identifier]=!0,r++;for(r=0;r<o.length;)i[o[r].identifier]&&a.push(o[r]),12&e&&delete i[o[r].identifier],r++;return a.length?[M(s.concat(a),"identifier",!0),a]:void 0}T(dt,H,{handler:function(t){var e=ht[t.type],n=ft.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:L,srcEvent:t})}});function mt(){H.apply(this,arguments);var t=x(this.handler,this);this.touch=new dt(this.manager,t),this.mouse=new tt(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function vt(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,gt.call(this,e)):12&t&>.call(this,e)}function gt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)}),2500)}}function yt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],s=Math.abs(e-r.x),o=Math.abs(n-r.y);if(s<=25&&o<=25)return!0}return!1}T(mt,H,{handler:function(t,e,n){var i=n.pointerType==L,r=n.pointerType==U;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)vt.call(this,e,n);else if(r&&yt.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var bt=I(l.style,"touchAction"),Tt=bt!==a,xt="compute",Et="auto",Ot="manipulation",At="none",wt="pan-x",_t="pan-y",Nt=function(){if(!Tt)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||r.CSS.supports("touch-action",n)})),t}();function St(t,e){this.manager=t,this.set(e)}St.prototype={set:function(t){t==xt&&(t=this.compute()),Tt&&this.manager.element.style&&Nt[t]&&(this.manager.element.style[bt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return v(this.manager.recognizers,(function(e){E(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(N(t,At))return At;var e=N(t,wt),n=N(t,_t);if(e&&n)return At;if(e||n)return e?wt:_t;if(N(t,Ot))return Ot;return Et}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=N(i,At)&&!Nt[At],s=N(i,_t)&&!Nt[_t],o=N(i,wt)&&!Nt[wt];if(r){var a=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(a&&u&&c)return}if(!o||!s)return r||s&&6&n||o&&n&Y?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var jt=32;function Ct(t){this.options=u({},this.defaults,t||{}),this.id=P++,this.manager=null,this.options.enable=O(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Mt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function It(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Pt(t,e){var n=e.manager;return n?n.get(t):t}function Dt(){Ct.apply(this,arguments)}function Rt(){Dt.apply(this,arguments),this.pX=null,this.pY=null}function kt(){Dt.apply(this,arguments)}function zt(){Ct.apply(this,arguments),this._timer=null,this._input=null}function Lt(){Dt.apply(this,arguments)}function Ut(){Dt.apply(this,arguments)}function Yt(){Ct.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Xt(t,e){return(e=e||{}).recognizers=O(e.recognizers,Xt.defaults.preset),new Ft(t,e)}Ct.prototype={defaults:{},set:function(t){return u(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(m(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Pt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return m(t,"dropRecognizeWith",this)||(t=Pt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(m(t,"requireFailure",this))return this;var e=this.requireFail;return-1===j(e,t=Pt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(m(t,"dropRequireFailure",this))return this;t=Pt(t,this);var e=j(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+Mt(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+Mt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=jt},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=u({},t);if(!E(this.options.enable,[this,e]))return this.reset(),void(this.state=jt);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},T(Dt,Ct,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=6&e,r=this.attrTest(t);return i&&(8&n||!r)?16|e:i||r?4&n?8|e:2&e?4|e:2:jt}}),T(Rt,Dt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(_t),t&Y&&e.push(wt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,s=t.deltaX,o=t.deltaY;return r&e.direction||(6&e.direction?(r=0===s?1:s<0?2:4,n=s!=this.pX,i=Math.abs(t.deltaX)):(r=0===o?1:o<0?8:16,n=o!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return Dt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=It(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),T(kt,Dt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[At]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),T(zt,Ct,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Et]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=f((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return jt},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),T(Lt,Dt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[At]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),T(Ut,Dt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Rt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:n&Y&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&p(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=It(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),T(Yt,Ct,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ot]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,o=!this.pCenter||G(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,o&&s?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=f((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return jt},failTimeout:function(){return this._timer=f((function(){this.state=jt}),this.options.interval,this),jt},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Xt.VERSION="2.0.7",Xt.defaults={domEvents:!1,touchAction:xt,enable:!0,inputTarget:null,inputClass:null,preset:[[Lt,{enable:!1}],[kt,{enable:!1},["rotate"]],[Ut,{direction:6}],[Rt,{direction:6},["swipe"]],[Yt],[Yt,{event:"doubletap",taps:2},["tap"]],[zt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ft(t,e){var n;this.options=u({},Xt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(k?st:z?dt:R?mt:tt))(n,B),this.touchAction=new St(this,this.options.touchAction),Ht(this,!0),v(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Ht(t,e){var n,i=t.element;i.style&&(v(t.options.cssProps,(function(r,s){n=I(i.style,s),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}Ft.prototype={set:function(t){return u(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var s=0;s<i.length;)n=i[s],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(r=e.curRecognizer=n),s++}},get:function(t){if(t instanceof Ct)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(m(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(m(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=j(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var n=this.handlers;return v(S(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==a){var n=this.handlers;return v(S(t),(function(t){e?n[t]&&n[t].splice(j(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=s.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&Ht(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(Xt,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:jt,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:Y,DIRECTION_ALL:30,Manager:Ft,Input:H,TouchAction:St,TouchInput:dt,MouseInput:tt,PointerEventInput:st,TouchMouseInput:mt,SingleTouchInput:ct,Recognizer:Ct,AttrRecognizer:Dt,Tap:Yt,Pan:Rt,Swipe:Ut,Pinch:kt,Rotate:Lt,Press:zt,on:A,off:w,each:v,merge:b,extend:y,assign:u,inherit:T,bindFn:x,prefixed:I}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=Xt,(i=function(){return Xt}.call(e,n,e,t))===a||(t.exports=i)}(window,document)},37:()=>{}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var s=n[t]={exports:{}};return e[t](s,s.exports,i),s.exports}i.m=e,t=[],i.O=(e,n,r,s)=>{if(!n){var o=1/0;for(l=0;l<t.length;l++){for(var[n,r,s]=t[l],a=!0,u=0;u<n.length;u++)(!1&s||o>=s)&&Object.keys(i.O).every((t=>i.O[t](n[u])))?n.splice(u--,1):(a=!1,s<o&&(o=s));if(a){t.splice(l--,1);var c=r();void 0!==c&&(e=c)}}return e}s=s||0;for(var l=t.length;l>0&&t[l-1][2]>s;l--)t[l]=t[l-1];t[l]=[n,r,s]},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={268:0,908:0};i.O.j=e=>0===t[e];var e=(e,n)=>{var r,s,[o,a,u]=n,c=0;if(o.some((e=>0!==t[e]))){for(r in a)i.o(a,r)&&(i.m[r]=a[r]);if(u)var l=u(i)}for(e&&e(n);c<o.length;c++)s=o[c],i.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return i.O(l)},n=self.webpackChunk_tiny_components_slider=self.webpackChunk_tiny_components_slider||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),i.O(void 0,[908],(()=>i(837)));var r=i.O(void 0,[908],(()=>i(37)));r=i.O(r)})(); |