@everymatrix/casino-promotions-slider 1.99.57 → 1.99.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var cn=Object.defineProperty,fn=Object.defineProperties;var dn=Object.getOwnPropertyDescriptors;var At=Object.getOwnPropertySymbols;var pn=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable;var qe=(e,t,r)=>t in e?cn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bt=(e,t)=>{for(var r in t||(t={}))pn.call(t,r)&&qe(e,r,t[r]);if(At)for(var r of At(t))mn.call(t,r)&&qe(e,r,t[r]);return e},Ot=(e,t)=>fn(e,dn(t));var G=(e,t,r)=>(qe(e,typeof t!="symbol"?t+"":t,r),r);var Lt=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{u(r.next(c))}catch(l){i(l)}},s=c=>{try{u(r.throw(c))}catch(l){i(l)}},u=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);u((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function z(){}function dr(e){return e()}function It(){return Object.create(null)}function de(e){e.forEach(dr)}function Et(e){return typeof e=="function"}function pr(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let He;function se(e,t){return e===t?!0:(He||(He=document.createElement("a")),He.href=t,e===He.href)}function Nt(e){return e.split(",").map(t=>t.trim().split(" ").filter(Boolean))}function mr(e,t){const r=Nt(e.srcset),n=Nt(t||"");return n.length===r.length&&n.every(([i,o],s)=>o===r[s][1]&&(se(r[s][0],i)||se(i,r[s][0])))}function gn(e){return Object.keys(e).length===0}function gr(e,...t){if(e==null){for(const n of t)n(void 0);return z}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function bn(e,t,r){e.$$.on_destroy.push(gr(t,r))}function y(e,t){e.appendChild(t)}function vn(e,t,r){const n=yn(e);if(!n.getElementById(t)){const i=P("style");i.id=t,i.textContent=r,_n(n,i)}}function yn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function _n(e,t){return y(e.head||e,t),t.sheet}function j(e,t,r){e.insertBefore(t,r||null)}function U(e){e.parentNode&&e.parentNode.removeChild(e)}function St(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function P(e){return document.createElement(e)}function Qe(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ae(e){return document.createTextNode(e)}function $(){return ae(" ")}function xe(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function p(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function xn(e){return Array.from(e.childNodes)}function ke(e,t){t=""+t,e.data!==t&&(e.data=t)}function En(e,t,r,n){e.style.setProperty(t,r,"")}let Ce;function Sn(){if(Ce===void 0){Ce=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){Ce=!0}}return Ce}function wn(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const i=Sn();let o;return i?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=xe(window,"message",s=>{s.source===n.contentWindow&&t()})):(n.src="about:blank",n.onload=()=>{o=xe(n.contentWindow,"resize",t),t()}),y(e,n),()=>{(i||o&&n.contentWindow)&&o(),U(n)}}function Pn(e,t,{bubbles:r=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:n})}function Tn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let Ee;function ye(e){Ee=e}function br(){if(!Ee)throw new Error("Function called outside component initialization");return Ee}function Hn(e){br().$$.on_mount.push(e)}function Cn(){const e=br();return(t,r,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[t];if(i){const o=Pn(t,r,{cancelable:n});return i.slice().forEach(s=>{s.call(e,o)}),!o.defaultPrevented}return!0}}const ne=[],_e=[];let oe=[];const Mt=[],An=Promise.resolve();let st=!1;function Bn(){st||(st=!0,An.then(V))}function Me(e){oe.push(e)}const Je=new Set;let te=0;function V(){if(te!==0)return;const e=Ee;do{try{for(;te<ne.length;){const t=ne[te];te++,ye(t),On(t.$$)}}catch(t){throw ne.length=0,te=0,t}for(ye(null),ne.length=0,te=0;_e.length;)_e.pop()();for(let t=0;t<oe.length;t+=1){const r=oe[t];Je.has(r)||(Je.add(r),r())}oe.length=0}while(ne.length);for(;Mt.length;)Mt.pop()();st=!1,Je.clear(),ye(e)}function On(e){if(e.fragment!==null){e.update(),de(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Me)}}function Ln(e){const t=[],r=[];oe.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),oe=t}const In=new Set;function Nn(e,t){e&&e.i&&(In.delete(e),e.i(t))}function le(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Mn(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),Me(()=>{const o=e.$$.on_mount.map(dr).filter(Et);e.$$.on_destroy?e.$$.on_destroy.push(...o):de(o),e.$$.on_mount=[]}),i.forEach(Me)}function Rn(e,t){const r=e.$$;r.fragment!==null&&(Ln(r.after_update),de(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Dn(e,t){e.$$.dirty[0]===-1&&(ne.push(e),Bn(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Fn(e,t,r,n,i,o,s=null,u=[-1]){const c=Ee;ye(e);const l=e.$$={fragment:null,ctx:[],props:o,update:z,not_equal:i,bound:It(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:It(),dirty:u,skip_bound:!1,root:t.target||c.$$.root};s&&s(l.root);let a=!1;if(l.ctx=r?r(e,t.props||{},(h,f,...d)=>{const m=d.length?d[0]:f;return l.ctx&&i(l.ctx[h],l.ctx[h]=m)&&(!l.skip_bound&&l.bound[h]&&l.bound[h](m),a&&Dn(e,h)),f}):[],l.update(),a=!0,de(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const h=xn(t.target);l.fragment&&l.fragment.l(h),h.forEach(U)}else l.fragment&&l.fragment.c();t.intro&&Nn(e.$$.fragment),Mn(e,t.target,t.anchor),V()}ye(c)}let vr;typeof HTMLElement=="function"&&(vr=class extends HTMLElement{constructor(t,r,n){super();G(this,"$$ctor");G(this,"$$s");G(this,"$$c");G(this,"$$cn",!1);G(this,"$$d",{});G(this,"$$r",!1);G(this,"$$p_d",{});G(this,"$$l",{});G(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return Lt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=P("slot"),o!=="default"&&p(s,"name",o)},m:function(l,a){j(l,s,a)},d:function(l){l&&U(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Tn(this);for(const o of this.$$s)o in n&&(r[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=Oe(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Ot(Bt({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=Oe(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const u=this.$$c.$on(o,s);this.$$l_u.set(s,u)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Oe(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Oe(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function kn(e,t,r,n,i,o){let s=class extends vr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(s.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(c){var l;c=Oe(u,c,t),this.$$d[u]=c,(l=this.$$c)==null||l.$set({[u]:c})}})}),n.forEach(u=>{Object.defineProperty(s.prototype,u,{get(){var c;return(c=this.$$c)==null?void 0:c[u]}})}),e.element=s,s}class Un{constructor(){G(this,"$$");G(this,"$$set")}$destroy(){Rn(this,1),this.$destroy=z}$on(t,r){if(!Et(r))return z;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!gn(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const $n="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($n);var Gn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _r={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(typeof self!="undefined"?self:Gn,function(){return function(r){function n(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}var i={};return n.m=r,n.c=i,n.d=function(o,s,u){n.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:u})},n.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(s,"a",s),s},n.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},n.p="",n(n.s=0)}([function(r,n,i){function o(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},u=function(){function l(a,h){for(var f=0;f<h.length;f++){var d=h[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(a,h,f){return h&&l(a.prototype,h),f&&l(a,f),a}}(),c=function(){function l(a){var h=this;if(o(this,l),this.config=l.mergeSettings(a),this.selector=typeof this.config.selector=="string"?document.querySelector(this.config.selector):this.config.selector,this.selector===null)throw new Error("Something wrong with your selector 😭");this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.innerElements=[].slice.call(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=l.webkitOrNot(),["resizeHandler","touchstartHandler","touchendHandler","touchmoveHandler","mousedownHandler","mouseupHandler","mouseleaveHandler","mousemoveHandler","clickHandler"].forEach(function(f){h[f]=h[f].bind(h)}),this.init()}return u(l,[{key:"attachEvents",value:function(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler))}},{key:"detachEvents",value:function(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler)}},{key:"init",value:function(){this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this)}},{key:"buildSliderFrame",value:function(){var a=this.selectorWidth/this.perPage,h=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length;this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=a*h+"px",this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab");var f=document.createDocumentFragment();if(this.config.loop)for(var d=this.innerElements.length-this.perPage;d<this.innerElements.length;d++){var m=this.buildSliderFrameItem(this.innerElements[d].cloneNode(!0));f.appendChild(m)}for(var v=0;v<this.innerElements.length;v++){var w=this.buildSliderFrameItem(this.innerElements[v]);f.appendChild(w)}if(this.config.loop)for(var E=0;E<this.perPage;E++){var O=this.buildSliderFrameItem(this.innerElements[E].cloneNode(!0));f.appendChild(O)}this.sliderFrame.appendChild(f),this.selector.innerHTML="",this.selector.appendChild(this.sliderFrame),this.slideToCurrent()}},{key:"buildSliderFrameItem",value:function(a){var h=document.createElement("div");return h.style.cssFloat=this.config.rtl?"right":"left",h.style.float=this.config.rtl?"right":"left",h.style.width=(this.config.loop?100/(this.innerElements.length+2*this.perPage):100/this.innerElements.length)+"%",h.appendChild(a),h}},{key:"resolveSlidesNumber",value:function(){if(typeof this.config.perPage=="number")this.perPage=this.config.perPage;else if(s(this.config.perPage)==="object"){this.perPage=1;for(var a in this.config.perPage)window.innerWidth>=a&&(this.perPage=this.config.perPage[a])}}},{key:"prev",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,h=arguments[1];if(!(this.innerElements.length<=this.perPage)){var f=this.currentSlide;if(this.config.loop)if(this.currentSlide-a<0){this.disableTransition();var d=this.currentSlide+this.innerElements.length,m=this.perPage,v=d+m,w=(this.config.rtl?1:-1)*v*(this.selectorWidth/this.perPage),E=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(w+E)+"px, 0, 0)",this.currentSlide=d-a}else this.currentSlide=this.currentSlide-a;else this.currentSlide=Math.max(this.currentSlide-a,0);f!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),h&&h.call(this))}}},{key:"next",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,h=arguments[1];if(!(this.innerElements.length<=this.perPage)){var f=this.currentSlide;if(this.config.loop)if(this.currentSlide+a>this.innerElements.length-this.perPage){this.disableTransition();var d=this.currentSlide-this.innerElements.length,m=this.perPage,v=d+m,w=(this.config.rtl?1:-1)*v*(this.selectorWidth/this.perPage),E=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(w+E)+"px, 0, 0)",this.currentSlide=d+a}else this.currentSlide=this.currentSlide+a;else this.currentSlide=Math.min(this.currentSlide+a,this.innerElements.length-this.perPage);f!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),h&&h.call(this))}}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing}},{key:"enableTransition",value:function(){this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing}},{key:"goTo",value:function(a,h){if(!(this.innerElements.length<=this.perPage)){var f=this.currentSlide;this.currentSlide=this.config.loop?a%this.innerElements.length:Math.min(Math.max(a,0),this.innerElements.length-this.perPage),f!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),h&&h.call(this))}}},{key:"slideToCurrent",value:function(a){var h=this,f=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,d=(this.config.rtl?1:-1)*f*(this.selectorWidth/this.perPage);a?requestAnimationFrame(function(){requestAnimationFrame(function(){h.enableTransition(),h.sliderFrame.style[h.transformProperty]="translate3d("+d+"px, 0, 0)"})}):this.sliderFrame.style[this.transformProperty]="translate3d("+d+"px, 0, 0)"}},{key:"updateAfterDrag",value:function(){var a=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),h=Math.abs(a),f=this.config.multipleDrag?Math.ceil(h/(this.selectorWidth/this.perPage)):1,d=a>0&&this.currentSlide-f<0,m=a<0&&this.currentSlide+f>this.innerElements.length-this.perPage;a>0&&h>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(f):a<0&&h>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(f),this.slideToCurrent(d||m)}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}},{key:"touchstartHandler",value:function(a){["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(a.target.nodeName)!==-1||(a.stopPropagation(),this.pointerDown=!0,this.drag.startX=a.touches[0].pageX,this.drag.startY=a.touches[0].pageY)}},{key:"touchendHandler",value:function(a){a.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"touchmoveHandler",value:function(a){if(a.stopPropagation(),this.drag.letItGo===null&&(this.drag.letItGo=Math.abs(this.drag.startY-a.touches[0].pageY)<Math.abs(this.drag.startX-a.touches[0].pageX)),this.pointerDown&&this.drag.letItGo){a.preventDefault(),this.drag.endX=a.touches[0].pageX,this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing;var h=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,f=h*(this.selectorWidth/this.perPage),d=this.drag.endX-this.drag.startX,m=this.config.rtl?f+d:f-d;this.sliderFrame.style[this.transformProperty]="translate3d("+(this.config.rtl?1:-1)*m+"px, 0, 0)"}}},{key:"mousedownHandler",value:function(a){["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(a.target.nodeName)!==-1||(a.preventDefault(),a.stopPropagation(),this.pointerDown=!0,this.drag.startX=a.pageX)}},{key:"mouseupHandler",value:function(a){a.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"mousemoveHandler",value:function(a){if(a.preventDefault(),this.pointerDown){a.target.nodeName==="A"&&(this.drag.preventClick=!0),this.drag.endX=a.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing;var h=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,f=h*(this.selectorWidth/this.perPage),d=this.drag.endX-this.drag.startX,m=this.config.rtl?f+d:f-d;this.sliderFrame.style[this.transformProperty]="translate3d("+(this.config.rtl?1:-1)*m+"px, 0, 0)"}}},{key:"mouseleaveHandler",value:function(a){this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=a.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())}},{key:"clickHandler",value:function(a){this.drag.preventClick&&a.preventDefault(),this.drag.preventClick=!1}},{key:"remove",value:function(a,h){if(a<0||a>=this.innerElements.length)throw new Error("Item to remove doesn't exist 😭");var f=a<this.currentSlide,d=this.currentSlide+this.perPage-1===a;(f||d)&&this.currentSlide--,this.innerElements.splice(a,1),this.buildSliderFrame(),h&&h.call(this)}},{key:"insert",value:function(a,h,f){if(h<0||h>this.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(this.innerElements.indexOf(a)!==-1)throw new Error("The same item in a carousel? Really? Nope 😭");var d=h<=this.currentSlide>0&&this.innerElements.length;this.currentSlide=d?this.currentSlide+1:this.currentSlide,this.innerElements.splice(h,0,a),this.buildSliderFrame(),f&&f.call(this)}},{key:"prepend",value:function(a,h){this.insert(a,0),h&&h.call(this)}},{key:"append",value:function(a,h){this.insert(a,this.innerElements.length+1),h&&h.call(this)}},{key:"destroy",value:function(){var a=arguments.length>0&&arguments[0]!==void 0&&arguments[0],h=arguments[1];if(this.detachEvents(),this.selector.style.cursor="auto",a){for(var f=document.createDocumentFragment(),d=0;d<this.innerElements.length;d++)f.appendChild(this.innerElements[d]);this.selector.innerHTML="",this.selector.appendChild(f),this.selector.removeAttribute("style")}h&&h.call(this)}}],[{key:"mergeSettings",value:function(a){var h={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:function(){},onChange:function(){}},f=a;for(var d in f)h[d]=f[d];return h}},{key:"webkitOrNot",value:function(){return typeof document.documentElement.style.transform=="string"?"transform":"WebkitTransform"}}]),l}();n.default=c,r.exports=n.default}])})})(_r);var jn=_r.exports;const Xn=yr(jn);/*! *****************************************************************************
1
+ "use strict";var cn=Object.defineProperty,fn=Object.defineProperties;var dn=Object.getOwnPropertyDescriptors;var At=Object.getOwnPropertySymbols;var pn=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable;var qe=(e,t,r)=>t in e?cn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bt=(e,t)=>{for(var r in t||(t={}))pn.call(t,r)&&qe(e,r,t[r]);if(At)for(var r of At(t))mn.call(t,r)&&qe(e,r,t[r]);return e},Ot=(e,t)=>fn(e,dn(t));var G=(e,t,r)=>qe(e,typeof t!="symbol"?t+"":t,r);var Lt=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{u(r.next(c))}catch(l){i(l)}},s=c=>{try{u(r.throw(c))}catch(l){i(l)}},u=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);u((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function z(){}function dr(e){return e()}function It(){return Object.create(null)}function de(e){e.forEach(dr)}function Et(e){return typeof e=="function"}function pr(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let He;function se(e,t){return e===t?!0:(He||(He=document.createElement("a")),He.href=t,e===He.href)}function Nt(e){return e.split(",").map(t=>t.trim().split(" ").filter(Boolean))}function mr(e,t){const r=Nt(e.srcset),n=Nt(t||"");return n.length===r.length&&n.every(([i,o],s)=>o===r[s][1]&&(se(r[s][0],i)||se(i,r[s][0])))}function gn(e){return Object.keys(e).length===0}function gr(e,...t){if(e==null){for(const n of t)n(void 0);return z}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function bn(e,t,r){e.$$.on_destroy.push(gr(t,r))}function y(e,t){e.appendChild(t)}function vn(e,t,r){const n=yn(e);if(!n.getElementById(t)){const i=P("style");i.id=t,i.textContent=r,_n(n,i)}}function yn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function _n(e,t){return y(e.head||e,t),t.sheet}function j(e,t,r){e.insertBefore(t,r||null)}function U(e){e.parentNode&&e.parentNode.removeChild(e)}function St(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function P(e){return document.createElement(e)}function Qe(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ae(e){return document.createTextNode(e)}function $(){return ae(" ")}function xe(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function p(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function xn(e){return Array.from(e.childNodes)}function ke(e,t){t=""+t,e.data!==t&&(e.data=t)}function En(e,t,r,n){e.style.setProperty(t,r,"")}let Ce;function Sn(){if(Ce===void 0){Ce=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){Ce=!0}}return Ce}function wn(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const i=Sn();let o;return i?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=xe(window,"message",s=>{s.source===n.contentWindow&&t()})):(n.src="about:blank",n.onload=()=>{o=xe(n.contentWindow,"resize",t),t()}),y(e,n),()=>{(i||o&&n.contentWindow)&&o(),U(n)}}function Pn(e,t,{bubbles:r=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:n})}function Tn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let Ee;function ye(e){Ee=e}function br(){if(!Ee)throw new Error("Function called outside component initialization");return Ee}function Hn(e){br().$$.on_mount.push(e)}function Cn(){const e=br();return(t,r,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[t];if(i){const o=Pn(t,r,{cancelable:n});return i.slice().forEach(s=>{s.call(e,o)}),!o.defaultPrevented}return!0}}const ne=[],_e=[];let oe=[];const Mt=[],An=Promise.resolve();let st=!1;function Bn(){st||(st=!0,An.then(V))}function Me(e){oe.push(e)}const Je=new Set;let te=0;function V(){if(te!==0)return;const e=Ee;do{try{for(;te<ne.length;){const t=ne[te];te++,ye(t),On(t.$$)}}catch(t){throw ne.length=0,te=0,t}for(ye(null),ne.length=0,te=0;_e.length;)_e.pop()();for(let t=0;t<oe.length;t+=1){const r=oe[t];Je.has(r)||(Je.add(r),r())}oe.length=0}while(ne.length);for(;Mt.length;)Mt.pop()();st=!1,Je.clear(),ye(e)}function On(e){if(e.fragment!==null){e.update(),de(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Me)}}function Ln(e){const t=[],r=[];oe.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),oe=t}const In=new Set;function Nn(e,t){e&&e.i&&(In.delete(e),e.i(t))}function le(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Mn(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),Me(()=>{const o=e.$$.on_mount.map(dr).filter(Et);e.$$.on_destroy?e.$$.on_destroy.push(...o):de(o),e.$$.on_mount=[]}),i.forEach(Me)}function Rn(e,t){const r=e.$$;r.fragment!==null&&(Ln(r.after_update),de(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Dn(e,t){e.$$.dirty[0]===-1&&(ne.push(e),Bn(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Fn(e,t,r,n,i,o,s=null,u=[-1]){const c=Ee;ye(e);const l=e.$$={fragment:null,ctx:[],props:o,update:z,not_equal:i,bound:It(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:It(),dirty:u,skip_bound:!1,root:t.target||c.$$.root};s&&s(l.root);let a=!1;if(l.ctx=r?r(e,t.props||{},(h,f,...d)=>{const m=d.length?d[0]:f;return l.ctx&&i(l.ctx[h],l.ctx[h]=m)&&(!l.skip_bound&&l.bound[h]&&l.bound[h](m),a&&Dn(e,h)),f}):[],l.update(),a=!0,de(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const h=xn(t.target);l.fragment&&l.fragment.l(h),h.forEach(U)}else l.fragment&&l.fragment.c();t.intro&&Nn(e.$$.fragment),Mn(e,t.target,t.anchor),V()}ye(c)}let vr;typeof HTMLElement=="function"&&(vr=class extends HTMLElement{constructor(t,r,n){super();G(this,"$$ctor");G(this,"$$s");G(this,"$$c");G(this,"$$cn",!1);G(this,"$$d",{});G(this,"$$r",!1);G(this,"$$p_d",{});G(this,"$$l",{});G(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return Lt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=P("slot"),o!=="default"&&p(s,"name",o)},m:function(l,a){j(l,s,a)},d:function(l){l&&U(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Tn(this);for(const o of this.$$s)o in n&&(r[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=Oe(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Ot(Bt({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=Oe(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const u=this.$$c.$on(o,s);this.$$l_u.set(s,u)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Oe(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Oe(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function kn(e,t,r,n,i,o){let s=class extends vr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(s.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(c){var l;c=Oe(u,c,t),this.$$d[u]=c,(l=this.$$c)==null||l.$set({[u]:c})}})}),n.forEach(u=>{Object.defineProperty(s.prototype,u,{get(){var c;return(c=this.$$c)==null?void 0:c[u]}})}),e.element=s,s}class Un{constructor(){G(this,"$$");G(this,"$$set")}$destroy(){Rn(this,1),this.$destroy=z}$on(t,r){if(!Et(r))return z;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!gn(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const $n="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($n);var Gn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _r={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(typeof self!="undefined"?self:Gn,function(){return function(r){function n(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}var i={};return n.m=r,n.c=i,n.d=function(o,s,u){n.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:u})},n.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(s,"a",s),s},n.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},n.p="",n(n.s=0)}([function(r,n,i){function o(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},u=function(){function l(a,h){for(var f=0;f<h.length;f++){var d=h[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(a,h,f){return h&&l(a.prototype,h),f&&l(a,f),a}}(),c=function(){function l(a){var h=this;if(o(this,l),this.config=l.mergeSettings(a),this.selector=typeof this.config.selector=="string"?document.querySelector(this.config.selector):this.config.selector,this.selector===null)throw new Error("Something wrong with your selector 😭");this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.innerElements=[].slice.call(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=l.webkitOrNot(),["resizeHandler","touchstartHandler","touchendHandler","touchmoveHandler","mousedownHandler","mouseupHandler","mouseleaveHandler","mousemoveHandler","clickHandler"].forEach(function(f){h[f]=h[f].bind(h)}),this.init()}return u(l,[{key:"attachEvents",value:function(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler))}},{key:"detachEvents",value:function(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler)}},{key:"init",value:function(){this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this)}},{key:"buildSliderFrame",value:function(){var a=this.selectorWidth/this.perPage,h=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length;this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=a*h+"px",this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab");var f=document.createDocumentFragment();if(this.config.loop)for(var d=this.innerElements.length-this.perPage;d<this.innerElements.length;d++){var m=this.buildSliderFrameItem(this.innerElements[d].cloneNode(!0));f.appendChild(m)}for(var v=0;v<this.innerElements.length;v++){var w=this.buildSliderFrameItem(this.innerElements[v]);f.appendChild(w)}if(this.config.loop)for(var E=0;E<this.perPage;E++){var O=this.buildSliderFrameItem(this.innerElements[E].cloneNode(!0));f.appendChild(O)}this.sliderFrame.appendChild(f),this.selector.innerHTML="",this.selector.appendChild(this.sliderFrame),this.slideToCurrent()}},{key:"buildSliderFrameItem",value:function(a){var h=document.createElement("div");return h.style.cssFloat=this.config.rtl?"right":"left",h.style.float=this.config.rtl?"right":"left",h.style.width=(this.config.loop?100/(this.innerElements.length+2*this.perPage):100/this.innerElements.length)+"%",h.appendChild(a),h}},{key:"resolveSlidesNumber",value:function(){if(typeof this.config.perPage=="number")this.perPage=this.config.perPage;else if(s(this.config.perPage)==="object"){this.perPage=1;for(var a in this.config.perPage)window.innerWidth>=a&&(this.perPage=this.config.perPage[a])}}},{key:"prev",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,h=arguments[1];if(!(this.innerElements.length<=this.perPage)){var f=this.currentSlide;if(this.config.loop)if(this.currentSlide-a<0){this.disableTransition();var d=this.currentSlide+this.innerElements.length,m=this.perPage,v=d+m,w=(this.config.rtl?1:-1)*v*(this.selectorWidth/this.perPage),E=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(w+E)+"px, 0, 0)",this.currentSlide=d-a}else this.currentSlide=this.currentSlide-a;else this.currentSlide=Math.max(this.currentSlide-a,0);f!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),h&&h.call(this))}}},{key:"next",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,h=arguments[1];if(!(this.innerElements.length<=this.perPage)){var f=this.currentSlide;if(this.config.loop)if(this.currentSlide+a>this.innerElements.length-this.perPage){this.disableTransition();var d=this.currentSlide-this.innerElements.length,m=this.perPage,v=d+m,w=(this.config.rtl?1:-1)*v*(this.selectorWidth/this.perPage),E=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(w+E)+"px, 0, 0)",this.currentSlide=d+a}else this.currentSlide=this.currentSlide+a;else this.currentSlide=Math.min(this.currentSlide+a,this.innerElements.length-this.perPage);f!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),h&&h.call(this))}}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing}},{key:"enableTransition",value:function(){this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing}},{key:"goTo",value:function(a,h){if(!(this.innerElements.length<=this.perPage)){var f=this.currentSlide;this.currentSlide=this.config.loop?a%this.innerElements.length:Math.min(Math.max(a,0),this.innerElements.length-this.perPage),f!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),h&&h.call(this))}}},{key:"slideToCurrent",value:function(a){var h=this,f=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,d=(this.config.rtl?1:-1)*f*(this.selectorWidth/this.perPage);a?requestAnimationFrame(function(){requestAnimationFrame(function(){h.enableTransition(),h.sliderFrame.style[h.transformProperty]="translate3d("+d+"px, 0, 0)"})}):this.sliderFrame.style[this.transformProperty]="translate3d("+d+"px, 0, 0)"}},{key:"updateAfterDrag",value:function(){var a=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),h=Math.abs(a),f=this.config.multipleDrag?Math.ceil(h/(this.selectorWidth/this.perPage)):1,d=a>0&&this.currentSlide-f<0,m=a<0&&this.currentSlide+f>this.innerElements.length-this.perPage;a>0&&h>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(f):a<0&&h>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(f),this.slideToCurrent(d||m)}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}},{key:"touchstartHandler",value:function(a){["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(a.target.nodeName)!==-1||(a.stopPropagation(),this.pointerDown=!0,this.drag.startX=a.touches[0].pageX,this.drag.startY=a.touches[0].pageY)}},{key:"touchendHandler",value:function(a){a.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"touchmoveHandler",value:function(a){if(a.stopPropagation(),this.drag.letItGo===null&&(this.drag.letItGo=Math.abs(this.drag.startY-a.touches[0].pageY)<Math.abs(this.drag.startX-a.touches[0].pageX)),this.pointerDown&&this.drag.letItGo){a.preventDefault(),this.drag.endX=a.touches[0].pageX,this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing;var h=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,f=h*(this.selectorWidth/this.perPage),d=this.drag.endX-this.drag.startX,m=this.config.rtl?f+d:f-d;this.sliderFrame.style[this.transformProperty]="translate3d("+(this.config.rtl?1:-1)*m+"px, 0, 0)"}}},{key:"mousedownHandler",value:function(a){["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(a.target.nodeName)!==-1||(a.preventDefault(),a.stopPropagation(),this.pointerDown=!0,this.drag.startX=a.pageX)}},{key:"mouseupHandler",value:function(a){a.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"mousemoveHandler",value:function(a){if(a.preventDefault(),this.pointerDown){a.target.nodeName==="A"&&(this.drag.preventClick=!0),this.drag.endX=a.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing;var h=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,f=h*(this.selectorWidth/this.perPage),d=this.drag.endX-this.drag.startX,m=this.config.rtl?f+d:f-d;this.sliderFrame.style[this.transformProperty]="translate3d("+(this.config.rtl?1:-1)*m+"px, 0, 0)"}}},{key:"mouseleaveHandler",value:function(a){this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=a.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())}},{key:"clickHandler",value:function(a){this.drag.preventClick&&a.preventDefault(),this.drag.preventClick=!1}},{key:"remove",value:function(a,h){if(a<0||a>=this.innerElements.length)throw new Error("Item to remove doesn't exist 😭");var f=a<this.currentSlide,d=this.currentSlide+this.perPage-1===a;(f||d)&&this.currentSlide--,this.innerElements.splice(a,1),this.buildSliderFrame(),h&&h.call(this)}},{key:"insert",value:function(a,h,f){if(h<0||h>this.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(this.innerElements.indexOf(a)!==-1)throw new Error("The same item in a carousel? Really? Nope 😭");var d=h<=this.currentSlide>0&&this.innerElements.length;this.currentSlide=d?this.currentSlide+1:this.currentSlide,this.innerElements.splice(h,0,a),this.buildSliderFrame(),f&&f.call(this)}},{key:"prepend",value:function(a,h){this.insert(a,0),h&&h.call(this)}},{key:"append",value:function(a,h){this.insert(a,this.innerElements.length+1),h&&h.call(this)}},{key:"destroy",value:function(){var a=arguments.length>0&&arguments[0]!==void 0&&arguments[0],h=arguments[1];if(this.detachEvents(),this.selector.style.cursor="auto",a){for(var f=document.createDocumentFragment(),d=0;d<this.innerElements.length;d++)f.appendChild(this.innerElements[d]);this.selector.innerHTML="",this.selector.appendChild(f),this.selector.removeAttribute("style")}h&&h.call(this)}}],[{key:"mergeSettings",value:function(a){var h={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:function(){},onChange:function(){}},f=a;for(var d in f)h[d]=f[d];return h}},{key:"webkitOrNot",value:function(){return typeof document.documentElement.style.transform=="string"?"transform":"WebkitTransform"}}]),l}();n.default=c,r.exports=n.default}])})})(_r);var jn=_r.exports;const Xn=yr(jn);/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -59,8 +59,7 @@ function sn(e, t, r) {
59
59
  }
60
60
  }
61
61
  function an(e) {
62
- if (!e)
63
- return document;
62
+ if (!e) return document;
64
63
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
65
64
  return t && /** @type {ShadowRoot} */
66
65
  t.host ? (
@@ -164,8 +163,7 @@ function ve(e) {
164
163
  xe = e;
165
164
  }
166
165
  function cr() {
167
- if (!xe)
168
- throw new Error("Function called outside component initialization");
166
+ if (!xe) throw new Error("Function called outside component initialization");
169
167
  return xe;
170
168
  }
171
169
  function mn(e) {
@@ -214,8 +212,7 @@ function X() {
214
212
  } catch (t) {
215
213
  throw re.length = 0, ee = 0, t;
216
214
  }
217
- for (ve(null), re.length = 0, ee = 0; ye.length; )
218
- ye.pop()();
215
+ for (ve(null), re.length = 0, ee = 0; ye.length; ) ye.pop()();
219
216
  for (let t = 0; t < ie.length; t += 1) {
220
217
  const r = ie[t];
221
218
  qe.has(r) || (qe.add(r), r());
@@ -530,8 +527,7 @@ var pr = { exports: {} };
530
527
  })(typeof self < "u" ? self : Bn, function() {
531
528
  return function(r) {
532
529
  function n(o) {
533
- if (i[o])
534
- return i[o].exports;
530
+ if (i[o]) return i[o].exports;
535
531
  var a = i[o] = { i: o, l: !1, exports: {} };
536
532
  return r[o].call(a.exports, a, a.exports, n), a.l = !0, a.exports;
537
533
  }
@@ -550,8 +546,7 @@ var pr = { exports: {} };
550
546
  }, n.p = "", n(n.s = 0);
551
547
  }([function(r, n, i) {
552
548
  function o(l, s) {
553
- if (!(l instanceof s))
554
- throw new TypeError("Cannot call a class as a function");
549
+ if (!(l instanceof s)) throw new TypeError("Cannot call a class as a function");
555
550
  }
556
551
  Object.defineProperty(n, "__esModule", { value: !0 });
557
552
  var a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(l) {
@@ -571,8 +566,7 @@ var pr = { exports: {} };
571
566
  }(), c = function() {
572
567
  function l(s) {
573
568
  var h = this;
574
- if (o(this, l), this.config = l.mergeSettings(s), this.selector = typeof this.config.selector == "string" ? document.querySelector(this.config.selector) : this.config.selector, this.selector === null)
575
- throw new Error("Something wrong with your selector 😭");
569
+ if (o(this, l), this.config = l.mergeSettings(s), this.selector = typeof this.config.selector == "string" ? document.querySelector(this.config.selector) : this.config.selector, this.selector === null) throw new Error("Something wrong with your selector 😭");
576
570
  this.resolveSlidesNumber(), this.selectorWidth = this.selector.offsetWidth, this.innerElements = [].slice.call(this.selector.children), this.currentSlide = this.config.loop ? this.config.startIndex % this.innerElements.length : Math.max(0, Math.min(this.config.startIndex, this.innerElements.length - this.perPage)), this.transformProperty = l.webkitOrNot(), ["resizeHandler", "touchstartHandler", "touchendHandler", "touchmoveHandler", "mousedownHandler", "mouseupHandler", "mouseleaveHandler", "mousemoveHandler", "clickHandler"].forEach(function(f) {
577
571
  h[f] = h[f].bind(h);
578
572
  }), this.init();
@@ -587,31 +581,27 @@ var pr = { exports: {} };
587
581
  var s = this.selectorWidth / this.perPage, h = this.config.loop ? this.innerElements.length + 2 * this.perPage : this.innerElements.length;
588
582
  this.sliderFrame = document.createElement("div"), this.sliderFrame.style.width = s * h + "px", this.enableTransition(), this.config.draggable && (this.selector.style.cursor = "-webkit-grab");
589
583
  var f = document.createDocumentFragment();
590
- if (this.config.loop)
591
- for (var d = this.innerElements.length - this.perPage; d < this.innerElements.length; d++) {
592
- var m = this.buildSliderFrameItem(this.innerElements[d].cloneNode(!0));
593
- f.appendChild(m);
594
- }
584
+ if (this.config.loop) for (var d = this.innerElements.length - this.perPage; d < this.innerElements.length; d++) {
585
+ var m = this.buildSliderFrameItem(this.innerElements[d].cloneNode(!0));
586
+ f.appendChild(m);
587
+ }
595
588
  for (var v = 0; v < this.innerElements.length; v++) {
596
589
  var w = this.buildSliderFrameItem(this.innerElements[v]);
597
590
  f.appendChild(w);
598
591
  }
599
- if (this.config.loop)
600
- for (var E = 0; E < this.perPage; E++) {
601
- var O = this.buildSliderFrameItem(this.innerElements[E].cloneNode(!0));
602
- f.appendChild(O);
603
- }
592
+ if (this.config.loop) for (var E = 0; E < this.perPage; E++) {
593
+ var O = this.buildSliderFrameItem(this.innerElements[E].cloneNode(!0));
594
+ f.appendChild(O);
595
+ }
604
596
  this.sliderFrame.appendChild(f), this.selector.innerHTML = "", this.selector.appendChild(this.sliderFrame), this.slideToCurrent();
605
597
  } }, { key: "buildSliderFrameItem", value: function(s) {
606
598
  var h = document.createElement("div");
607
599
  return h.style.cssFloat = this.config.rtl ? "right" : "left", h.style.float = this.config.rtl ? "right" : "left", h.style.width = (this.config.loop ? 100 / (this.innerElements.length + 2 * this.perPage) : 100 / this.innerElements.length) + "%", h.appendChild(s), h;
608
600
  } }, { key: "resolveSlidesNumber", value: function() {
609
- if (typeof this.config.perPage == "number")
610
- this.perPage = this.config.perPage;
601
+ if (typeof this.config.perPage == "number") this.perPage = this.config.perPage;
611
602
  else if (a(this.config.perPage) === "object") {
612
603
  this.perPage = 1;
613
- for (var s in this.config.perPage)
614
- window.innerWidth >= s && (this.perPage = this.config.perPage[s]);
604
+ for (var s in this.config.perPage) window.innerWidth >= s && (this.perPage = this.config.perPage[s]);
615
605
  }
616
606
  } }, { key: "prev", value: function() {
617
607
  var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1, h = arguments[1];
@@ -622,10 +612,8 @@ var pr = { exports: {} };
622
612
  this.disableTransition();
623
613
  var d = this.currentSlide + this.innerElements.length, m = this.perPage, v = d + m, w = (this.config.rtl ? 1 : -1) * v * (this.selectorWidth / this.perPage), E = this.config.draggable ? this.drag.endX - this.drag.startX : 0;
624
614
  this.sliderFrame.style[this.transformProperty] = "translate3d(" + (w + E) + "px, 0, 0)", this.currentSlide = d - s;
625
- } else
626
- this.currentSlide = this.currentSlide - s;
627
- else
628
- this.currentSlide = Math.max(this.currentSlide - s, 0);
615
+ } else this.currentSlide = this.currentSlide - s;
616
+ else this.currentSlide = Math.max(this.currentSlide - s, 0);
629
617
  f !== this.currentSlide && (this.slideToCurrent(this.config.loop), this.config.onChange.call(this), h && h.call(this));
630
618
  }
631
619
  } }, { key: "next", value: function() {
@@ -637,10 +625,8 @@ var pr = { exports: {} };
637
625
  this.disableTransition();
638
626
  var d = this.currentSlide - this.innerElements.length, m = this.perPage, v = d + m, w = (this.config.rtl ? 1 : -1) * v * (this.selectorWidth / this.perPage), E = this.config.draggable ? this.drag.endX - this.drag.startX : 0;
639
627
  this.sliderFrame.style[this.transformProperty] = "translate3d(" + (w + E) + "px, 0, 0)", this.currentSlide = d + s;
640
- } else
641
- this.currentSlide = this.currentSlide + s;
642
- else
643
- this.currentSlide = Math.min(this.currentSlide + s, this.innerElements.length - this.perPage);
628
+ } else this.currentSlide = this.currentSlide + s;
629
+ else this.currentSlide = Math.min(this.currentSlide + s, this.innerElements.length - this.perPage);
644
630
  f !== this.currentSlide && (this.slideToCurrent(this.config.loop), this.config.onChange.call(this), h && h.call(this));
645
631
  }
646
632
  } }, { key: "disableTransition", value: function() {
@@ -691,15 +677,12 @@ var pr = { exports: {} };
691
677
  } }, { key: "clickHandler", value: function(s) {
692
678
  this.drag.preventClick && s.preventDefault(), this.drag.preventClick = !1;
693
679
  } }, { key: "remove", value: function(s, h) {
694
- if (s < 0 || s >= this.innerElements.length)
695
- throw new Error("Item to remove doesn't exist 😭");
680
+ if (s < 0 || s >= this.innerElements.length) throw new Error("Item to remove doesn't exist 😭");
696
681
  var f = s < this.currentSlide, d = this.currentSlide + this.perPage - 1 === s;
697
682
  (f || d) && this.currentSlide--, this.innerElements.splice(s, 1), this.buildSliderFrame(), h && h.call(this);
698
683
  } }, { key: "insert", value: function(s, h, f) {
699
- if (h < 0 || h > this.innerElements.length + 1)
700
- throw new Error("Unable to inset it at this index 😭");
701
- if (this.innerElements.indexOf(s) !== -1)
702
- throw new Error("The same item in a carousel? Really? Nope 😭");
684
+ if (h < 0 || h > this.innerElements.length + 1) throw new Error("Unable to inset it at this index 😭");
685
+ if (this.innerElements.indexOf(s) !== -1) throw new Error("The same item in a carousel? Really? Nope 😭");
703
686
  var d = h <= this.currentSlide > 0 && this.innerElements.length;
704
687
  this.currentSlide = d ? this.currentSlide + 1 : this.currentSlide, this.innerElements.splice(h, 0, s), this.buildSliderFrame(), f && f.call(this);
705
688
  } }, { key: "prepend", value: function(s, h) {
@@ -709,8 +692,7 @@ var pr = { exports: {} };
709
692
  } }, { key: "destroy", value: function() {
710
693
  var s = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], h = arguments[1];
711
694
  if (this.detachEvents(), this.selector.style.cursor = "auto", s) {
712
- for (var f = document.createDocumentFragment(), d = 0; d < this.innerElements.length; d++)
713
- f.appendChild(this.innerElements[d]);
695
+ for (var f = document.createDocumentFragment(), d = 0; d < this.innerElements.length; d++) f.appendChild(this.innerElements[d]);
714
696
  this.selector.innerHTML = "", this.selector.appendChild(f), this.selector.removeAttribute("style");
715
697
  }
716
698
  h && h.call(this);
@@ -718,8 +700,7 @@ var pr = { exports: {} };
718
700
  var h = { selector: ".siema", duration: 200, easing: "ease-out", perPage: 1, startIndex: 0, draggable: !0, multipleDrag: !0, threshold: 20, loop: !1, rtl: !1, onInit: function() {
719
701
  }, onChange: function() {
720
702
  } }, f = s;
721
- for (var d in f)
722
- h[d] = f[d];
703
+ for (var d in f) h[d] = f[d];
723
704
  return h;
724
705
  } }, { key: "webkitOrNot", value: function() {
725
706
  return typeof document.documentElement.style.transform == "string" ? "transform" : "WebkitTransform";
@@ -749,8 +730,7 @@ var ot = function(e, t) {
749
730
  return ot = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
750
731
  r.__proto__ = n;
751
732
  } || function(r, n) {
752
- for (var i in n)
753
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
733
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
754
734
  }, ot(e, t);
755
735
  };
756
736
  function we(e, t) {
@@ -764,40 +744,34 @@ function we(e, t) {
764
744
  }
765
745
  function st(e) {
766
746
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
767
- if (r)
768
- return r.call(e);
769
- if (e && typeof e.length == "number")
770
- return {
771
- next: function() {
772
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
773
- }
774
- };
747
+ if (r) return r.call(e);
748
+ if (e && typeof e.length == "number") return {
749
+ next: function() {
750
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
751
+ }
752
+ };
775
753
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
776
754
  }
777
755
  function at(e, t) {
778
756
  var r = typeof Symbol == "function" && e[Symbol.iterator];
779
- if (!r)
780
- return e;
757
+ if (!r) return e;
781
758
  var n = r.call(e), i, o = [], a;
782
759
  try {
783
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
784
- o.push(i.value);
760
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
785
761
  } catch (u) {
786
762
  a = { error: u };
787
763
  } finally {
788
764
  try {
789
765
  i && !i.done && (r = n.return) && r.call(n);
790
766
  } finally {
791
- if (a)
792
- throw a.error;
767
+ if (a) throw a.error;
793
768
  }
794
769
  }
795
770
  return o;
796
771
  }
797
772
  function lt(e, t, r) {
798
- if (arguments.length === 2)
799
- for (var n = 0, i = t.length, o; n < i; n++)
800
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
773
+ if (arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
774
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
801
775
  return e.concat(o || t);
802
776
  }
803
777
  function Z(e) {
@@ -846,8 +820,7 @@ var Fe = function() {
846
820
  try {
847
821
  c && !c.done && (r = u.return) && r.call(u);
848
822
  } finally {
849
- if (t)
850
- throw t.error;
823
+ if (t) throw t.error;
851
824
  }
852
825
  }
853
826
  else
@@ -877,8 +850,7 @@ var Fe = function() {
877
850
  try {
878
851
  d && !d.done && (i = f.return) && i.call(f);
879
852
  } finally {
880
- if (n)
881
- throw n.error;
853
+ if (n) throw n.error;
882
854
  }
883
855
  }
884
856
  }
@@ -1145,8 +1117,7 @@ var Xn = mr(function(e) {
1145
1117
  try {
1146
1118
  u && !u.done && (o = a.return) && o.call(a);
1147
1119
  } finally {
1148
- if (i)
1149
- throw i.error;
1120
+ if (i) throw i.error;
1150
1121
  }
1151
1122
  }
1152
1123
  }
@@ -1388,8 +1359,7 @@ var ct = function(e, t) {
1388
1359
  return ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1389
1360
  r.__proto__ = n;
1390
1361
  } || function(r, n) {
1391
- for (var i in n)
1392
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1362
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1393
1363
  }, ct(e, t);
1394
1364
  };
1395
1365
  function $e(e, t) {
@@ -1405,25 +1375,22 @@ var W = function() {
1405
1375
  return W = Object.assign || function(t) {
1406
1376
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1407
1377
  r = arguments[n];
1408
- for (var o in r)
1409
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1378
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1410
1379
  }
1411
1380
  return t;
1412
1381
  }, W.apply(this, arguments);
1413
1382
  };
1414
1383
  function ui(e, t) {
1415
1384
  var r = {};
1416
- for (var n in e)
1417
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1385
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1418
1386
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
1419
1387
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1420
1388
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1421
1389
  return r;
1422
1390
  }
1423
1391
  function Je(e, t, r) {
1424
- if (r || arguments.length === 2)
1425
- for (var n = 0, i = t.length, o; n < i; n++)
1426
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1392
+ if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
1393
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1427
1394
  return e.concat(o || Array.prototype.slice.call(t));
1428
1395
  }
1429
1396
  function Ke(e, t) {
@@ -1478,8 +1445,7 @@ var pi = function() {
1478
1445
  return Me = Object.assign || function(t) {
1479
1446
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1480
1447
  r = arguments[n];
1481
- for (var o in r)
1482
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1448
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1483
1449
  }
1484
1450
  return t;
1485
1451
  }, Me.apply(this, arguments);
@@ -1625,8 +1591,7 @@ var B = function() {
1625
1591
  return B = Object.assign || function(t) {
1626
1592
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1627
1593
  r = arguments[n];
1628
- for (var o in r)
1629
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1594
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1630
1595
  }
1631
1596
  return t;
1632
1597
  }, B.apply(this, arguments);
@@ -3268,8 +3233,7 @@ function Hi(e, t) {
3268
3233
  r += c;
3269
3234
  for (; a-- > 0; )
3270
3235
  r = l + r;
3271
- } else
3272
- i === "J" ? r += "H" : r += i;
3236
+ } else i === "J" ? r += "H" : r += i;
3273
3237
  }
3274
3238
  return r;
3275
3239
  }
@@ -3872,8 +3836,7 @@ function bt(e) {
3872
3836
  if (delete t.location, Hr(t) || Cr(t))
3873
3837
  for (var r in t.options)
3874
3838
  delete t.options[r].location, bt(t.options[r].value);
3875
- else
3876
- wr(t) && Br(t.style) || (Pr(t) || Tr(t)) && ft(t.style) ? delete t.style.location : Ar(t) && bt(t.children);
3839
+ else wr(t) && Br(t.style) || (Pr(t) || Tr(t)) && ft(t.style) ? delete t.style.location : Ar(t) && bt(t.children);
3877
3840
  });
3878
3841
  }
3879
3842
  function zi(e, t) {
@@ -4607,8 +4570,7 @@ function ko(e, t) {
4607
4570
  }
4608
4571
  }
4609
4572
  function Fo(e, t) {
4610
- if (!e || !t)
4611
- return;
4573
+ if (!e || !t) return;
4612
4574
  const r = new URL(t);
4613
4575
  fetch(r.href).then((n) => n.text()).then((n) => {
4614
4576
  const i = document.createElement("style");
@@ -4618,8 +4580,7 @@ function Fo(e, t) {
4618
4580
  });
4619
4581
  }
4620
4582
  function Uo(e, t, r, n = !1) {
4621
- if (!window.emMessageBus)
4622
- return;
4583
+ if (!window.emMessageBus) return;
4623
4584
  if (!("adoptedStyleSheets" in Document.prototype) || !n)
4624
4585
  return r = $o(e, t), r;
4625
4586
  window[ne] || (window[ne] = {}), r = Go(e, t);
@@ -4640,8 +4601,7 @@ function $o(e, t) {
4640
4601
  }
4641
4602
  function Go(e, t) {
4642
4603
  return window.emMessageBus.subscribe(t, (r) => {
4643
- if (!e)
4644
- return;
4604
+ if (!e) return;
4645
4605
  const n = e.getRootNode(), i = window[ne];
4646
4606
  let o = i[t] && i[t].sheet;
4647
4607
  o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
@@ -10,7 +10,7 @@ var qe = (e, t, r) => t in e ? hn(e, t, { enumerable: !0, configurable: !0, writ
10
10
  pn.call(t, r) && qe(e, r, t[r]);
11
11
  return e;
12
12
  }, Ot = (e, t) => cn(e, fn(t));
13
- var G = (e, t, r) => (qe(e, typeof t != "symbol" ? t + "" : t, r), r);
13
+ var G = (e, t, r) => qe(e, typeof t != "symbol" ? t + "" : t, r);
14
14
  var Lt = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (c) => {
16
16
  try {
@@ -88,8 +88,7 @@ function bn(e, t, r) {
88
88
  }
89
89
  }
90
90
  function vn(e) {
91
- if (!e)
92
- return document;
91
+ if (!e) return document;
93
92
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
94
93
  return t && /** @type {ShadowRoot} */
95
94
  t.host ? (
@@ -193,8 +192,7 @@ function ye(e) {
193
192
  Ee = e;
194
193
  }
195
194
  function br() {
196
- if (!Ee)
197
- throw new Error("Function called outside component initialization");
195
+ if (!Ee) throw new Error("Function called outside component initialization");
198
196
  return Ee;
199
197
  }
200
198
  function Tn(e) {
@@ -243,8 +241,7 @@ function V() {
243
241
  } catch (t) {
244
242
  throw ne.length = 0, te = 0, t;
245
243
  }
246
- for (ye(null), ne.length = 0, te = 0; _e.length; )
247
- _e.pop()();
244
+ for (ye(null), ne.length = 0, te = 0; _e.length; ) _e.pop()();
248
245
  for (let t = 0; t < oe.length; t += 1) {
249
246
  const r = oe[t];
250
247
  Je.has(r) || (Je.add(r), r());
@@ -567,8 +564,7 @@ var _r = { exports: {} };
567
564
  })(typeof self != "undefined" ? self : $n, function() {
568
565
  return function(r) {
569
566
  function n(o) {
570
- if (i[o])
571
- return i[o].exports;
567
+ if (i[o]) return i[o].exports;
572
568
  var s = i[o] = { i: o, l: !1, exports: {} };
573
569
  return r[o].call(s.exports, s, s.exports, n), s.l = !0, s.exports;
574
570
  }
@@ -587,8 +583,7 @@ var _r = { exports: {} };
587
583
  }, n.p = "", n(n.s = 0);
588
584
  }([function(r, n, i) {
589
585
  function o(l, a) {
590
- if (!(l instanceof a))
591
- throw new TypeError("Cannot call a class as a function");
586
+ if (!(l instanceof a)) throw new TypeError("Cannot call a class as a function");
592
587
  }
593
588
  Object.defineProperty(n, "__esModule", { value: !0 });
594
589
  var s = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(l) {
@@ -608,8 +603,7 @@ var _r = { exports: {} };
608
603
  }(), c = function() {
609
604
  function l(a) {
610
605
  var h = this;
611
- if (o(this, l), this.config = l.mergeSettings(a), this.selector = typeof this.config.selector == "string" ? document.querySelector(this.config.selector) : this.config.selector, this.selector === null)
612
- throw new Error("Something wrong with your selector 😭");
606
+ if (o(this, l), this.config = l.mergeSettings(a), this.selector = typeof this.config.selector == "string" ? document.querySelector(this.config.selector) : this.config.selector, this.selector === null) throw new Error("Something wrong with your selector 😭");
613
607
  this.resolveSlidesNumber(), this.selectorWidth = this.selector.offsetWidth, this.innerElements = [].slice.call(this.selector.children), this.currentSlide = this.config.loop ? this.config.startIndex % this.innerElements.length : Math.max(0, Math.min(this.config.startIndex, this.innerElements.length - this.perPage)), this.transformProperty = l.webkitOrNot(), ["resizeHandler", "touchstartHandler", "touchendHandler", "touchmoveHandler", "mousedownHandler", "mouseupHandler", "mouseleaveHandler", "mousemoveHandler", "clickHandler"].forEach(function(f) {
614
608
  h[f] = h[f].bind(h);
615
609
  }), this.init();
@@ -624,31 +618,27 @@ var _r = { exports: {} };
624
618
  var a = this.selectorWidth / this.perPage, h = this.config.loop ? this.innerElements.length + 2 * this.perPage : this.innerElements.length;
625
619
  this.sliderFrame = document.createElement("div"), this.sliderFrame.style.width = a * h + "px", this.enableTransition(), this.config.draggable && (this.selector.style.cursor = "-webkit-grab");
626
620
  var f = document.createDocumentFragment();
627
- if (this.config.loop)
628
- for (var d = this.innerElements.length - this.perPage; d < this.innerElements.length; d++) {
629
- var m = this.buildSliderFrameItem(this.innerElements[d].cloneNode(!0));
630
- f.appendChild(m);
631
- }
621
+ if (this.config.loop) for (var d = this.innerElements.length - this.perPage; d < this.innerElements.length; d++) {
622
+ var m = this.buildSliderFrameItem(this.innerElements[d].cloneNode(!0));
623
+ f.appendChild(m);
624
+ }
632
625
  for (var v = 0; v < this.innerElements.length; v++) {
633
626
  var w = this.buildSliderFrameItem(this.innerElements[v]);
634
627
  f.appendChild(w);
635
628
  }
636
- if (this.config.loop)
637
- for (var E = 0; E < this.perPage; E++) {
638
- var O = this.buildSliderFrameItem(this.innerElements[E].cloneNode(!0));
639
- f.appendChild(O);
640
- }
629
+ if (this.config.loop) for (var E = 0; E < this.perPage; E++) {
630
+ var O = this.buildSliderFrameItem(this.innerElements[E].cloneNode(!0));
631
+ f.appendChild(O);
632
+ }
641
633
  this.sliderFrame.appendChild(f), this.selector.innerHTML = "", this.selector.appendChild(this.sliderFrame), this.slideToCurrent();
642
634
  } }, { key: "buildSliderFrameItem", value: function(a) {
643
635
  var h = document.createElement("div");
644
636
  return h.style.cssFloat = this.config.rtl ? "right" : "left", h.style.float = this.config.rtl ? "right" : "left", h.style.width = (this.config.loop ? 100 / (this.innerElements.length + 2 * this.perPage) : 100 / this.innerElements.length) + "%", h.appendChild(a), h;
645
637
  } }, { key: "resolveSlidesNumber", value: function() {
646
- if (typeof this.config.perPage == "number")
647
- this.perPage = this.config.perPage;
638
+ if (typeof this.config.perPage == "number") this.perPage = this.config.perPage;
648
639
  else if (s(this.config.perPage) === "object") {
649
640
  this.perPage = 1;
650
- for (var a in this.config.perPage)
651
- window.innerWidth >= a && (this.perPage = this.config.perPage[a]);
641
+ for (var a in this.config.perPage) window.innerWidth >= a && (this.perPage = this.config.perPage[a]);
652
642
  }
653
643
  } }, { key: "prev", value: function() {
654
644
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1, h = arguments[1];
@@ -659,10 +649,8 @@ var _r = { exports: {} };
659
649
  this.disableTransition();
660
650
  var d = this.currentSlide + this.innerElements.length, m = this.perPage, v = d + m, w = (this.config.rtl ? 1 : -1) * v * (this.selectorWidth / this.perPage), E = this.config.draggable ? this.drag.endX - this.drag.startX : 0;
661
651
  this.sliderFrame.style[this.transformProperty] = "translate3d(" + (w + E) + "px, 0, 0)", this.currentSlide = d - a;
662
- } else
663
- this.currentSlide = this.currentSlide - a;
664
- else
665
- this.currentSlide = Math.max(this.currentSlide - a, 0);
652
+ } else this.currentSlide = this.currentSlide - a;
653
+ else this.currentSlide = Math.max(this.currentSlide - a, 0);
666
654
  f !== this.currentSlide && (this.slideToCurrent(this.config.loop), this.config.onChange.call(this), h && h.call(this));
667
655
  }
668
656
  } }, { key: "next", value: function() {
@@ -674,10 +662,8 @@ var _r = { exports: {} };
674
662
  this.disableTransition();
675
663
  var d = this.currentSlide - this.innerElements.length, m = this.perPage, v = d + m, w = (this.config.rtl ? 1 : -1) * v * (this.selectorWidth / this.perPage), E = this.config.draggable ? this.drag.endX - this.drag.startX : 0;
676
664
  this.sliderFrame.style[this.transformProperty] = "translate3d(" + (w + E) + "px, 0, 0)", this.currentSlide = d + a;
677
- } else
678
- this.currentSlide = this.currentSlide + a;
679
- else
680
- this.currentSlide = Math.min(this.currentSlide + a, this.innerElements.length - this.perPage);
665
+ } else this.currentSlide = this.currentSlide + a;
666
+ else this.currentSlide = Math.min(this.currentSlide + a, this.innerElements.length - this.perPage);
681
667
  f !== this.currentSlide && (this.slideToCurrent(this.config.loop), this.config.onChange.call(this), h && h.call(this));
682
668
  }
683
669
  } }, { key: "disableTransition", value: function() {
@@ -728,15 +714,12 @@ var _r = { exports: {} };
728
714
  } }, { key: "clickHandler", value: function(a) {
729
715
  this.drag.preventClick && a.preventDefault(), this.drag.preventClick = !1;
730
716
  } }, { key: "remove", value: function(a, h) {
731
- if (a < 0 || a >= this.innerElements.length)
732
- throw new Error("Item to remove doesn't exist 😭");
717
+ if (a < 0 || a >= this.innerElements.length) throw new Error("Item to remove doesn't exist 😭");
733
718
  var f = a < this.currentSlide, d = this.currentSlide + this.perPage - 1 === a;
734
719
  (f || d) && this.currentSlide--, this.innerElements.splice(a, 1), this.buildSliderFrame(), h && h.call(this);
735
720
  } }, { key: "insert", value: function(a, h, f) {
736
- if (h < 0 || h > this.innerElements.length + 1)
737
- throw new Error("Unable to inset it at this index 😭");
738
- if (this.innerElements.indexOf(a) !== -1)
739
- throw new Error("The same item in a carousel? Really? Nope 😭");
721
+ if (h < 0 || h > this.innerElements.length + 1) throw new Error("Unable to inset it at this index 😭");
722
+ if (this.innerElements.indexOf(a) !== -1) throw new Error("The same item in a carousel? Really? Nope 😭");
740
723
  var d = h <= this.currentSlide > 0 && this.innerElements.length;
741
724
  this.currentSlide = d ? this.currentSlide + 1 : this.currentSlide, this.innerElements.splice(h, 0, a), this.buildSliderFrame(), f && f.call(this);
742
725
  } }, { key: "prepend", value: function(a, h) {
@@ -746,8 +729,7 @@ var _r = { exports: {} };
746
729
  } }, { key: "destroy", value: function() {
747
730
  var a = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], h = arguments[1];
748
731
  if (this.detachEvents(), this.selector.style.cursor = "auto", a) {
749
- for (var f = document.createDocumentFragment(), d = 0; d < this.innerElements.length; d++)
750
- f.appendChild(this.innerElements[d]);
732
+ for (var f = document.createDocumentFragment(), d = 0; d < this.innerElements.length; d++) f.appendChild(this.innerElements[d]);
751
733
  this.selector.innerHTML = "", this.selector.appendChild(f), this.selector.removeAttribute("style");
752
734
  }
753
735
  h && h.call(this);
@@ -755,8 +737,7 @@ var _r = { exports: {} };
755
737
  var h = { selector: ".siema", duration: 200, easing: "ease-out", perPage: 1, startIndex: 0, draggable: !0, multipleDrag: !0, threshold: 20, loop: !1, rtl: !1, onInit: function() {
756
738
  }, onChange: function() {
757
739
  } }, f = a;
758
- for (var d in f)
759
- h[d] = f[d];
740
+ for (var d in f) h[d] = f[d];
760
741
  return h;
761
742
  } }, { key: "webkitOrNot", value: function() {
762
743
  return typeof document.documentElement.style.transform == "string" ? "transform" : "WebkitTransform";
@@ -786,8 +767,7 @@ var at = function(e, t) {
786
767
  return at = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
787
768
  r.__proto__ = n;
788
769
  } || function(r, n) {
789
- for (var i in n)
790
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
770
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
791
771
  }, at(e, t);
792
772
  };
793
773
  function Pe(e, t) {
@@ -801,40 +781,34 @@ function Pe(e, t) {
801
781
  }
802
782
  function lt(e) {
803
783
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
804
- if (r)
805
- return r.call(e);
806
- if (e && typeof e.length == "number")
807
- return {
808
- next: function() {
809
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
810
- }
811
- };
784
+ if (r) return r.call(e);
785
+ if (e && typeof e.length == "number") return {
786
+ next: function() {
787
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
788
+ }
789
+ };
812
790
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
813
791
  }
814
792
  function ut(e, t) {
815
793
  var r = typeof Symbol == "function" && e[Symbol.iterator];
816
- if (!r)
817
- return e;
794
+ if (!r) return e;
818
795
  var n = r.call(e), i, o = [], s;
819
796
  try {
820
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
821
- o.push(i.value);
797
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
822
798
  } catch (u) {
823
799
  s = { error: u };
824
800
  } finally {
825
801
  try {
826
802
  i && !i.done && (r = n.return) && r.call(n);
827
803
  } finally {
828
- if (s)
829
- throw s.error;
804
+ if (s) throw s.error;
830
805
  }
831
806
  }
832
807
  return o;
833
808
  }
834
809
  function ht(e, t, r) {
835
- if (arguments.length === 2)
836
- for (var n = 0, i = t.length, o; n < i; n++)
837
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
810
+ if (arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
811
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
838
812
  return e.concat(o || t);
839
813
  }
840
814
  function Y(e) {
@@ -883,8 +857,7 @@ var Ue = function() {
883
857
  try {
884
858
  c && !c.done && (r = u.return) && r.call(u);
885
859
  } finally {
886
- if (t)
887
- throw t.error;
860
+ if (t) throw t.error;
888
861
  }
889
862
  }
890
863
  else
@@ -914,8 +887,7 @@ var Ue = function() {
914
887
  try {
915
888
  d && !d.done && (i = f.return) && i.call(f);
916
889
  } finally {
917
- if (n)
918
- throw n.error;
890
+ if (n) throw n.error;
919
891
  }
920
892
  }
921
893
  }
@@ -1182,8 +1154,7 @@ var ti = xr(function(e) {
1182
1154
  try {
1183
1155
  u && !u.done && (o = s.return) && o.call(s);
1184
1156
  } finally {
1185
- if (i)
1186
- throw i.error;
1157
+ if (i) throw i.error;
1187
1158
  }
1188
1159
  }
1189
1160
  }
@@ -1425,8 +1396,7 @@ var dt = function(e, t) {
1425
1396
  return dt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1426
1397
  r.__proto__ = n;
1427
1398
  } || function(r, n) {
1428
- for (var i in n)
1429
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1399
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1430
1400
  }, dt(e, t);
1431
1401
  };
1432
1402
  function Ge(e, t) {
@@ -1442,25 +1412,22 @@ var Z = function() {
1442
1412
  return Z = Object.assign || function(t) {
1443
1413
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1444
1414
  r = arguments[n];
1445
- for (var o in r)
1446
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1415
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1447
1416
  }
1448
1417
  return t;
1449
1418
  }, Z.apply(this, arguments);
1450
1419
  };
1451
1420
  function _i(e, t) {
1452
1421
  var r = {};
1453
- for (var n in e)
1454
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1422
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1455
1423
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
1456
1424
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1457
1425
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1458
1426
  return r;
1459
1427
  }
1460
1428
  function et(e, t, r) {
1461
- if (r || arguments.length === 2)
1462
- for (var n = 0, i = t.length, o; n < i; n++)
1463
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1429
+ if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
1430
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1464
1431
  return e.concat(o || Array.prototype.slice.call(t));
1465
1432
  }
1466
1433
  function tt(e, t) {
@@ -1515,8 +1482,7 @@ var Pi = function() {
1515
1482
  return Re = Object.assign || function(t) {
1516
1483
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1517
1484
  r = arguments[n];
1518
- for (var o in r)
1519
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1485
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1520
1486
  }
1521
1487
  return t;
1522
1488
  }, Re.apply(this, arguments);
@@ -1662,8 +1628,7 @@ var B = function() {
1662
1628
  return B = Object.assign || function(t) {
1663
1629
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1664
1630
  r = arguments[n];
1665
- for (var o in r)
1666
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1631
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1667
1632
  }
1668
1633
  return t;
1669
1634
  }, B.apply(this, arguments);
@@ -3305,8 +3270,7 @@ function Fi(e, t) {
3305
3270
  r += c;
3306
3271
  for (; s-- > 0; )
3307
3272
  r = l + r;
3308
- } else
3309
- i === "J" ? r += "H" : r += i;
3273
+ } else i === "J" ? r += "H" : r += i;
3310
3274
  }
3311
3275
  return r;
3312
3276
  }
@@ -3909,8 +3873,7 @@ function yt(e) {
3909
3873
  if (delete t.location, Ir(t) || Nr(t))
3910
3874
  for (var r in t.options)
3911
3875
  delete t.options[r].location, yt(t.options[r].value);
3912
- else
3913
- Br(t) && Rr(t.style) || (Or(t) || Lr(t)) && pt(t.style) ? delete t.style.location : Mr(t) && yt(t.children);
3876
+ else Br(t) && Rr(t.style) || (Or(t) || Lr(t)) && pt(t.style) ? delete t.style.location : Mr(t) && yt(t.children);
3914
3877
  });
3915
3878
  }
3916
3879
  function no(e, t) {
@@ -4644,8 +4607,7 @@ function Yo(e, t) {
4644
4607
  }
4645
4608
  }
4646
4609
  function qo(e, t) {
4647
- if (!e || !t)
4648
- return;
4610
+ if (!e || !t) return;
4649
4611
  const r = new URL(t);
4650
4612
  fetch(r.href).then((n) => n.text()).then((n) => {
4651
4613
  const i = document.createElement("style");
@@ -4655,8 +4617,7 @@ function qo(e, t) {
4655
4617
  });
4656
4618
  }
4657
4619
  function Qo(e, t, r, n = !1) {
4658
- if (!window.emMessageBus)
4659
- return;
4620
+ if (!window.emMessageBus) return;
4660
4621
  if (!("adoptedStyleSheets" in Document.prototype) || !n)
4661
4622
  return r = Jo(e, t), r;
4662
4623
  window[ie] || (window[ie] = {}), r = Ko(e, t);
@@ -4677,8 +4638,7 @@ function Jo(e, t) {
4677
4638
  }
4678
4639
  function Ko(e, t) {
4679
4640
  return window.emMessageBus.subscribe(t, (r) => {
4680
- if (!e)
4681
- return;
4641
+ if (!e) return;
4682
4642
  const n = e.getRootNode(), i = window[ie];
4683
4643
  let o = i[t] && i[t].sheet;
4684
4644
  o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoPromotionsSlider-Dh9VKzvX.cjs")).then(({default:t})=>{!customElements.get("casino-promotions-slider")&&customElements.define("casino-promotions-slider",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoPromotionsSlider-BcTuQpK6.cjs")).then(({default:t})=>{!customElements.get("casino-promotions-slider")&&customElements.define("casino-promotions-slider",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoPromotionsSlider-BYfnI-pQ.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoPromotionsSlider-DBrc4dVX.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-promotions-slider") && customElements.define("casino-promotions-slider", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CasinoPromotionsSlider-B5i8k88z.js";
1
+ import { C as n } from "../components/CasinoPromotionsSlider-CYs-Jyal.js";
2
2
  function o(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-promotions-slider",
3
- "version": "1.99.57",
3
+ "version": "1.99.59",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-promotions-slider.cjs",
6
6
  "module": "esnext/casino-promotions-slider.js",