| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900 | 
							- /*!
 
-  * Splide.js
 
-  * Version  : 4.1.3
 
-  * License  : MIT
 
-  * Copyright: 2022 Naotoshi Fujita
 
-  */
 
- 'use strict';
 
- Object.defineProperty(exports, '__esModule', { value: true });
 
- const MEDIA_PREFERS_REDUCED_MOTION = "(prefers-reduced-motion: reduce)";
 
- const CREATED = 1;
 
- const MOUNTED = 2;
 
- const IDLE = 3;
 
- const MOVING = 4;
 
- const SCROLLING = 5;
 
- const DRAGGING = 6;
 
- const DESTROYED = 7;
 
- const STATES = {
 
-   CREATED,
 
-   MOUNTED,
 
-   IDLE,
 
-   MOVING,
 
-   SCROLLING,
 
-   DRAGGING,
 
-   DESTROYED
 
- };
 
- function N(n) {
 
-   n.length = 0;
 
- }
 
- function a(n, ...t) {
 
-   return n.bind(null, ...t);
 
- }
 
- const dn = setTimeout, an = () => {
 
- };
 
- function P(n) {
 
-   return requestAnimationFrame(n);
 
- }
 
- function m(n, t) {
 
-   return typeof t === n;
 
- }
 
- function y(n) {
 
-   return !S(n) && m("object", n);
 
- }
 
- const g = Array.isArray, ln = a(m, "function"), p = a(m, "string"); a(m, "boolean"); const Z = a(m, "undefined");
 
- function S(n) {
 
-   return n === null;
 
- }
 
- function x(n) {
 
-   try {
 
-     return n instanceof (n.ownerDocument.defaultView || window).HTMLElement;
 
-   } catch {
 
-     return false;
 
-   }
 
- }
 
- function q(n) {
 
-   return g(n) ? n : [n];
 
- }
 
- function d(n, t) {
 
-   q(n).forEach(t);
 
- }
 
- function G(n, t) {
 
-   return n.includes(t);
 
- }
 
- function pn(n, t) {
 
-   return n.push(...q(t)), n;
 
- }
 
- const D = Array.prototype;
 
- function F(n, t, e) {
 
-   return D.slice.call(n, t, e);
 
- }
 
- function I(n, t, e) {
 
-   n && d(p(t) ? t.split(" ") : t, (i) => {
 
-     i && n.classList.toggle(i, e);
 
-   });
 
- }
 
- function J(n, t) {
 
-   I(n, t, true);
 
- }
 
- function Q(n, t) {
 
-   d(t, n.appendChild.bind(n));
 
- }
 
- function yn(n, t) {
 
-   d(n, (e) => {
 
-     const i = (t || e).parentNode;
 
-     i && i.insertBefore(e, t);
 
-   });
 
- }
 
- function W(n, t) {
 
-   return x(n) && n.matches(t);
 
- }
 
- function X(n, t) {
 
-   const e = n ? F(n.children) : [];
 
-   return t ? e.filter((i) => W(i, t)) : e;
 
- }
 
- function Y(n, t) {
 
-   return t ? X(n, t)[0] : n.firstElementChild;
 
- }
 
- function En(n, t) {
 
-   return n.closest(t);
 
- }
 
- const v = Object.assign, A = Object.keys;
 
- function L(n, t, e) {
 
-   return n && (e ? A(n).reverse() : A(n)).forEach((i) => {
 
-     i !== "__proto__" && t(n[i], i);
 
-   }), n;
 
- }
 
- function k(n, ...t) {
 
-   return t.forEach((e) => {
 
-     L(e, (i, r) => {
 
-       g(i) ? i = i.slice() : y(i) && (i = k({}, y(n[r]) ? n[r] : {}, i)), n[r] = i;
 
-     });
 
-   }), n;
 
- }
 
- function gn(n, t) {
 
-   return d(t || A(n), (e) => {
 
-     delete n[e];
 
-   }), n;
 
- }
 
- function U(n, t) {
 
-   d(n, (e) => {
 
-     d(t, (i) => {
 
-       e && e.removeAttribute(i);
 
-     });
 
-   });
 
- }
 
- function M(n, t, e) {
 
-   y(t) ? L(t, (i, r) => {
 
-     M(n, r, i);
 
-   }) : d(n, (i) => {
 
-     S(e) || e === "" ? U(i, t) : i.setAttribute(t, String(e));
 
-   });
 
- }
 
- function j(n, t, e) {
 
-   const i = document.createElement(n);
 
-   return t && (p(t) ? J(i, t) : M(i, t)), e && Q(e, i), i;
 
- }
 
- function nn(n, t, e) {
 
-   if (Z(e))
 
-     return getComputedStyle(n)[t];
 
-   S(e) || (n.style[t] = `${e}`);
 
- }
 
- function An(n, t) {
 
-   nn(n, "display", t);
 
- }
 
- function $n(n) {
 
-   x(n) && n.focus({ preventScroll: true });
 
- }
 
- function wn(n, t) {
 
-   return n.getAttribute(t);
 
- }
 
- function Cn(n, t) {
 
-   return !!n && n.classList.contains(t);
 
- }
 
- function tn(n) {
 
-   return n.getBoundingClientRect();
 
- }
 
- function en(n) {
 
-   d(n, (t) => {
 
-     t && t.parentNode && t.parentNode.removeChild(t);
 
-   });
 
- }
 
- function qn(n) {
 
-   return Y(new DOMParser().parseFromString(n, "text/html").body);
 
- }
 
- function Ln(n, t) {
 
-   n.preventDefault(), t && (n.stopPropagation(), n.stopImmediatePropagation());
 
- }
 
- function On(n, t) {
 
-   return n && n.querySelector(t);
 
- }
 
- function Tn(n, t) {
 
-   return t && n ? F(n.querySelectorAll(t)) : [];
 
- }
 
- function Pn(n, t) {
 
-   I(n, t, false);
 
- }
 
- function Bn(n) {
 
-   return n.timeStamp;
 
- }
 
- function Nn(n) {
 
-   return p(n) ? n : n ? `${n}px` : "";
 
- }
 
- function rn(n) {
 
-   let t = "";
 
-   return L(n, (e, i) => {
 
-     t += e || e === 0 ? ` ${i}${e !== true ? `="${e}"` : ""}` : "";
 
-   }), t.trim();
 
- }
 
- function _(...n) {
 
-   return n.reduce((t, e) => `${t} ${g(e) ? _(...e) : e || ""}`.trim(), "");
 
- }
 
- function on(n, t) {
 
-   return t = g(t) || !y(t) ? { class: _(t) } : t, `<${`${n} ${t ? rn(t) : ""}`.trim()}>`;
 
- }
 
- a(on, "div"); const { min: E, max: $, floor: Dn, ceil: Fn, abs: un, sign: In } = Math;
 
- function Mn(n, t, e) {
 
-   return un(n - t) < e;
 
- }
 
- function _n(n, t, e, i) {
 
-   const r = E(t, e), o = $(t, e);
 
-   return i ? r < n && n < o : r <= n && n <= o;
 
- }
 
- function bn(n, t, e) {
 
-   const i = E(t, e), r = $(t, e);
 
-   return E($(i, n), r);
 
- }
 
- function Hn(n) {
 
-   return n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
 
- }
 
- function Kn(n, t) {
 
-   return d(t, (e) => {
 
-     n = n.replace("%s", `${e}`);
 
-   }), n;
 
- }
 
- function cn(n, t = 2) {
 
-   return `${n}`.padStart(t, "0");
 
- }
 
- const B = {};
 
- function zn(n) {
 
-   return `${n}${cn(B[n] = (B[n] || 0) + 1)}`;
 
- }
 
- function w(n, t) {
 
-   d(n, (e) => {
 
-     p(e) && e.split(" ").forEach(t);
 
-   });
 
- }
 
- function C(n, t) {
 
-   const e = [];
 
-   for (let i = n.length - 1; i >= 0; i--)
 
-     t(n[i]) && e.push(...n.splice(i, 1));
 
-   return e;
 
- }
 
- function b(n) {
 
-   const t = n || [], e = n ? {} : void 0;
 
-   function i(o, f, u, c) {
 
-     w(f, (s) => {
 
-       o.addEventListener(s, u, c), t.push([o.removeEventListener.bind(o, s, u, c), e]);
 
-     });
 
-   }
 
-   function r() {
 
-     e ? C(t, (o) => o[1] === e).forEach((o) => {
 
-       o[0]();
 
-     }) : (t.forEach((o) => {
 
-       o[0]();
 
-     }), N(t));
 
-   }
 
-   return {
 
-     bind: i,
 
-     create: a(b, t),
 
-     destroy: r
 
-   };
 
- }
 
- function H(n) {
 
-   const t = n || [], e = n ? {} : void 0;
 
-   function i(u, c) {
 
-     w(u, (s) => {
 
-       t.push([s, c, e]);
 
-     });
 
-   }
 
-   function r(u, c) {
 
-     w(u, (s) => {
 
-       C(t, (l) => l[0] === s && (!c || l[1] === c) && l[2] === e);
 
-     });
 
-   }
 
-   function o(u, ...c) {
 
-     t.slice().forEach((s) => {
 
-       s[0] === u && s[1](...c);
 
-     });
 
-   }
 
-   function f() {
 
-     e ? C(t, (u) => u[2] === e) : N(t);
 
-   }
 
-   return {
 
-     on: i,
 
-     off: r,
 
-     emit: o,
 
-     create: a(H, t),
 
-     destroy: f
 
-   };
 
- }
 
- function fn(n = b(), t = H()) {
 
-   function e() {
 
-     return fn(n.create(), t.create());
 
-   }
 
-   function i() {
 
-     n.destroy(), t.destroy();
 
-   }
 
-   return v({}, n, t, { create: e, destroy: i });
 
- }
 
- function sn(n, t, e, i) {
 
-   const { now: r } = Date;
 
-   let o, f = 0, u, c = true, s = 0;
 
-   function l() {
 
-     if (!c) {
 
-       if (f = n ? E((r() - o) / n, 1) : 1, e && e(f), f >= 1 && (t(), o = r(), i && ++s >= i))
 
-         return O();
 
-       u = P(l);
 
-     }
 
-   }
 
-   function K(h) {
 
-     h || T(), o = r() - (h ? f * n : 0), c = false, u = P(l);
 
-   }
 
-   function O() {
 
-     c = true;
 
-   }
 
-   function z() {
 
-     o = r(), f = 0, e && e(f);
 
-   }
 
-   function T() {
 
-     u && cancelAnimationFrame(u), f = 0, u = 0, c = true;
 
-   }
 
-   function R(h) {
 
-     n = h;
 
-   }
 
-   function V() {
 
-     return c;
 
-   }
 
-   return {
 
-     start: K,
 
-     rewind: z,
 
-     pause: O,
 
-     cancel: T,
 
-     set: R,
 
-     isPaused: V
 
-   };
 
- }
 
- function Rn(n) {
 
-   let t = n;
 
-   function e(r) {
 
-     t = r;
 
-   }
 
-   function i(r) {
 
-     return G(q(r), t);
 
-   }
 
-   return { set: e, is: i };
 
- }
 
- function Vn(n, t) {
 
-   const e = sn(t || 0, n, void 0, 1);
 
-   return () => {
 
-     e.isPaused() && e.start();
 
-   };
 
- }
 
- const EVENT_MOUNTED = "mounted";
 
- const EVENT_READY = "ready";
 
- const EVENT_MOVE = "move";
 
- const EVENT_MOVED = "moved";
 
- const EVENT_CLICK = "click";
 
- const EVENT_ACTIVE = "active";
 
- const EVENT_INACTIVE = "inactive";
 
- const EVENT_VISIBLE = "visible";
 
- const EVENT_HIDDEN = "hidden";
 
- const EVENT_REFRESH = "refresh";
 
- const EVENT_UPDATED = "updated";
 
- const EVENT_RESIZE = "resize";
 
- const EVENT_RESIZED = "resized";
 
- const EVENT_DRAG = "drag";
 
- const EVENT_DRAGGING = "dragging";
 
- const EVENT_DRAGGED = "dragged";
 
- const EVENT_SCROLL = "scroll";
 
- const EVENT_SCROLLED = "scrolled";
 
- const EVENT_OVERFLOW = "overflow";
 
- const EVENT_DESTROY = "destroy";
 
- const EVENT_ARROWS_MOUNTED = "arrows:mounted";
 
- const EVENT_ARROWS_UPDATED = "arrows:updated";
 
- const EVENT_PAGINATION_MOUNTED = "pagination:mounted";
 
- const EVENT_PAGINATION_UPDATED = "pagination:updated";
 
- const EVENT_NAVIGATION_MOUNTED = "navigation:mounted";
 
- const EVENT_AUTOPLAY_PLAY = "autoplay:play";
 
- const EVENT_AUTOPLAY_PLAYING = "autoplay:playing";
 
- const EVENT_AUTOPLAY_PAUSE = "autoplay:pause";
 
- const EVENT_LAZYLOAD_LOADED = "lazyload:loaded";
 
- const EVENT_SLIDE_KEYDOWN = "sk";
 
- const EVENT_SHIFTED = "sh";
 
- const EVENT_END_INDEX_CHANGED = "ei";
 
- function Media(Splide2, Components2, options) {
 
-   const { state } = Splide2;
 
-   const breakpoints = options.breakpoints || {};
 
-   const reducedMotion = options.reducedMotion || {};
 
-   const binder = b();
 
-   const queries = [];
 
-   function setup() {
 
-     const isMin = options.mediaQuery === "min";
 
-     A(breakpoints).sort((n, m) => isMin ? +n - +m : +m - +n).forEach((key) => {
 
-       register(breakpoints[key], `(${isMin ? "min" : "max"}-width:${key}px)`);
 
-     });
 
-     register(reducedMotion, MEDIA_PREFERS_REDUCED_MOTION);
 
-     update();
 
-   }
 
-   function destroy(completely) {
 
-     if (completely) {
 
-       binder.destroy();
 
-     }
 
-   }
 
-   function register(options2, query) {
 
-     const queryList = matchMedia(query);
 
-     binder.bind(queryList, "change", update);
 
-     queries.push([options2, queryList]);
 
-   }
 
-   function update() {
 
-     const destroyed = state.is(DESTROYED);
 
-     const direction = options.direction;
 
-     const merged = queries.reduce((merged2, entry) => {
 
-       return k(merged2, entry[1].matches ? entry[0] : {});
 
-     }, {});
 
-     gn(options);
 
-     set(merged);
 
-     if (options.destroy) {
 
-       Splide2.destroy(options.destroy === "completely");
 
-     } else if (destroyed) {
 
-       destroy(true);
 
-       Splide2.mount();
 
-     } else {
 
-       direction !== options.direction && Splide2.refresh();
 
-     }
 
-   }
 
-   function reduce(enable) {
 
-     if (matchMedia(MEDIA_PREFERS_REDUCED_MOTION).matches) {
 
-       enable ? k(options, reducedMotion) : gn(options, A(reducedMotion));
 
-     }
 
-   }
 
-   function set(opts, base, notify) {
 
-     k(options, opts);
 
-     base && k(Object.getPrototypeOf(options), opts);
 
-     if (notify || !state.is(CREATED)) {
 
-       Splide2.emit(EVENT_UPDATED, options);
 
-     }
 
-   }
 
-   return {
 
-     setup,
 
-     destroy,
 
-     reduce,
 
-     set
 
-   };
 
- }
 
- const ARROW = "Arrow";
 
- const ARROW_LEFT = `${ARROW}Left`;
 
- const ARROW_RIGHT = `${ARROW}Right`;
 
- const ARROW_UP = `${ARROW}Up`;
 
- const ARROW_DOWN = `${ARROW}Down`;
 
- const LTR = "ltr";
 
- const RTL = "rtl";
 
- const TTB = "ttb";
 
- const ORIENTATION_MAP = {
 
-   width: ["height"],
 
-   left: ["top", "right"],
 
-   right: ["bottom", "left"],
 
-   x: ["y"],
 
-   X: ["Y"],
 
-   Y: ["X"],
 
-   ArrowLeft: [ARROW_UP, ARROW_RIGHT],
 
-   ArrowRight: [ARROW_DOWN, ARROW_LEFT]
 
- };
 
- function Direction(Splide2, Components2, options) {
 
-   function resolve(prop, axisOnly, direction) {
 
-     direction = direction || options.direction;
 
-     const index = direction === RTL && !axisOnly ? 1 : direction === TTB ? 0 : -1;
 
-     return ORIENTATION_MAP[prop] && ORIENTATION_MAP[prop][index] || prop.replace(/width|left|right/i, (match, offset) => {
 
-       const replacement = ORIENTATION_MAP[match.toLowerCase()][index] || match;
 
-       return offset > 0 ? replacement.charAt(0).toUpperCase() + replacement.slice(1) : replacement;
 
-     });
 
-   }
 
-   function orient(value) {
 
-     return value * (options.direction === RTL ? 1 : -1);
 
-   }
 
-   return {
 
-     resolve,
 
-     orient
 
-   };
 
- }
 
- const ROLE = "role";
 
- const TAB_INDEX = "tabindex";
 
- const DISABLED = "disabled";
 
- const ARIA_PREFIX = "aria-";
 
- const ARIA_CONTROLS = `${ARIA_PREFIX}controls`;
 
- const ARIA_CURRENT = `${ARIA_PREFIX}current`;
 
- const ARIA_SELECTED = `${ARIA_PREFIX}selected`;
 
- const ARIA_LABEL = `${ARIA_PREFIX}label`;
 
- const ARIA_LABELLEDBY = `${ARIA_PREFIX}labelledby`;
 
- const ARIA_HIDDEN = `${ARIA_PREFIX}hidden`;
 
- const ARIA_ORIENTATION = `${ARIA_PREFIX}orientation`;
 
- const ARIA_ROLEDESCRIPTION = `${ARIA_PREFIX}roledescription`;
 
- const ARIA_LIVE = `${ARIA_PREFIX}live`;
 
- const ARIA_BUSY = `${ARIA_PREFIX}busy`;
 
- const ARIA_ATOMIC = `${ARIA_PREFIX}atomic`;
 
- const ALL_ATTRIBUTES = [
 
-   ROLE,
 
-   TAB_INDEX,
 
-   DISABLED,
 
-   ARIA_CONTROLS,
 
-   ARIA_CURRENT,
 
-   ARIA_LABEL,
 
-   ARIA_LABELLEDBY,
 
-   ARIA_HIDDEN,
 
-   ARIA_ORIENTATION,
 
-   ARIA_ROLEDESCRIPTION
 
- ];
 
- const PROJECT_CODE = "splide";
 
- const DATA_ATTRIBUTE = `data-${PROJECT_CODE}`;
 
- const CLASS_PREFIX = `${PROJECT_CODE}__`;
 
- const STATUS_CLASS_PREFIX = "is-";
 
- const CLASS_ROOT = PROJECT_CODE;
 
- const CLASS_TRACK = `${CLASS_PREFIX}track`;
 
- const CLASS_LIST = `${CLASS_PREFIX}list`;
 
- const CLASS_SLIDE = `${CLASS_PREFIX}slide`;
 
- const CLASS_CLONE = `${CLASS_SLIDE}--clone`;
 
- const CLASS_CONTAINER = `${CLASS_SLIDE}__container`;
 
- const CLASS_ARROWS = `${CLASS_PREFIX}arrows`;
 
- const CLASS_ARROW = `${CLASS_PREFIX}arrow`;
 
- const CLASS_ARROW_PREV = `${CLASS_ARROW}--prev`;
 
- const CLASS_ARROW_NEXT = `${CLASS_ARROW}--next`;
 
- const CLASS_PAGINATION = `${CLASS_PREFIX}pagination`;
 
- const CLASS_PAGINATION_PAGE = `${CLASS_PAGINATION}__page`;
 
- const CLASS_PROGRESS = `${CLASS_PREFIX}progress`;
 
- const CLASS_PROGRESS_BAR = `${CLASS_PROGRESS}__bar`;
 
- const CLASS_TOGGLE = `${CLASS_PREFIX}toggle`;
 
- const CLASS_TOGGLE_PLAY = `${CLASS_TOGGLE}__play`;
 
- const CLASS_TOGGLE_PAUSE = `${CLASS_TOGGLE}__pause`;
 
- const CLASS_SPINNER = `${CLASS_PREFIX}spinner`;
 
- const CLASS_SR = `${CLASS_PREFIX}sr`;
 
- const CLASS_INITIALIZED = `${STATUS_CLASS_PREFIX}initialized`;
 
- const CLASS_ACTIVE = `${STATUS_CLASS_PREFIX}active`;
 
- const CLASS_PREV = `${STATUS_CLASS_PREFIX}prev`;
 
- const CLASS_NEXT = `${STATUS_CLASS_PREFIX}next`;
 
- const CLASS_VISIBLE = `${STATUS_CLASS_PREFIX}visible`;
 
- const CLASS_LOADING = `${STATUS_CLASS_PREFIX}loading`;
 
- const CLASS_FOCUS_IN = `${STATUS_CLASS_PREFIX}focus-in`;
 
- const CLASS_OVERFLOW = `${STATUS_CLASS_PREFIX}overflow`;
 
- const STATUS_CLASSES = [
 
-   CLASS_ACTIVE,
 
-   CLASS_VISIBLE,
 
-   CLASS_PREV,
 
-   CLASS_NEXT,
 
-   CLASS_LOADING,
 
-   CLASS_FOCUS_IN,
 
-   CLASS_OVERFLOW
 
- ];
 
- const CLASSES = {
 
-   slide: CLASS_SLIDE,
 
-   clone: CLASS_CLONE,
 
-   arrows: CLASS_ARROWS,
 
-   arrow: CLASS_ARROW,
 
-   prev: CLASS_ARROW_PREV,
 
-   next: CLASS_ARROW_NEXT,
 
-   pagination: CLASS_PAGINATION,
 
-   page: CLASS_PAGINATION_PAGE,
 
-   spinner: CLASS_SPINNER
 
- };
 
- function assert(condition, message) {
 
-   if (!condition) {
 
-     throw new Error(`[${PROJECT_CODE}] ${message || ""}`);
 
-   }
 
- }
 
- const FRICTION = 5;
 
- const LOG_INTERVAL = 200;
 
- const POINTER_DOWN_EVENTS = "touchstart mousedown";
 
- const POINTER_MOVE_EVENTS = "touchmove mousemove";
 
- const POINTER_UP_EVENTS = "touchend touchcancel mouseup click";
 
- function Elements(Splide2, Components2, options, event) {
 
-   const { on, bind } = event;
 
-   const { root } = Splide2;
 
-   const { i18n } = options;
 
-   const elements = {};
 
-   const slides = [];
 
-   let rootClasses = [];
 
-   let trackClasses = [];
 
-   let track;
 
-   let list;
 
-   let isUsingKey;
 
-   function setup() {
 
-     collect();
 
-     init();
 
-     update();
 
-   }
 
-   function mount() {
 
-     on(EVENT_REFRESH, destroy);
 
-     on(EVENT_REFRESH, setup);
 
-     on(EVENT_UPDATED, update);
 
-     bind(document, `${POINTER_DOWN_EVENTS} keydown`, (e) => {
 
-       isUsingKey = e.type === "keydown";
 
-     }, { capture: true });
 
-     bind(root, "focusin", () => {
 
-       I(root, CLASS_FOCUS_IN, !!isUsingKey);
 
-     });
 
-   }
 
-   function destroy(completely) {
 
-     const attrs = ALL_ATTRIBUTES.concat("style");
 
-     N(slides);
 
-     Pn(root, rootClasses);
 
-     Pn(track, trackClasses);
 
-     U([track, list], attrs);
 
-     U(root, completely ? attrs : ["style", ARIA_ROLEDESCRIPTION]);
 
-   }
 
-   function update() {
 
-     Pn(root, rootClasses);
 
-     Pn(track, trackClasses);
 
-     rootClasses = getClasses(CLASS_ROOT);
 
-     trackClasses = getClasses(CLASS_TRACK);
 
-     J(root, rootClasses);
 
-     J(track, trackClasses);
 
-     M(root, ARIA_LABEL, options.label);
 
-     M(root, ARIA_LABELLEDBY, options.labelledby);
 
-   }
 
-   function collect() {
 
-     track = find(CLASS_TRACK);
 
-     list = Y(track, `.${CLASS_LIST}`);
 
-     assert(track && list, "A track/list element is missing.");
 
-     pn(slides, X(list, `.${CLASS_SLIDE}:not(.${CLASS_CLONE})`));
 
-     v(elements, {
 
-       root,
 
-       track,
 
-       list,
 
-       slides,
 
-       arrows: find(CLASS_ARROWS),
 
-       pagination: find(CLASS_PAGINATION),
 
-       prev: find(CLASS_ARROW_PREV),
 
-       next: find(CLASS_ARROW_NEXT),
 
-       bar: find(CLASS_PROGRESS_BAR),
 
-       toggle: find(CLASS_TOGGLE)
 
-     });
 
-   }
 
-   function init() {
 
-     const id = root.id || zn(PROJECT_CODE);
 
-     const role = options.role;
 
-     root.id = id;
 
-     track.id = track.id || `${id}-track`;
 
-     list.id = list.id || `${id}-list`;
 
-     if (!wn(root, ROLE) && root.tagName !== "SECTION" && role) {
 
-       M(root, ROLE, role);
 
-     }
 
-     M(root, ARIA_ROLEDESCRIPTION, i18n.carousel);
 
-     M(list, ROLE, "presentation");
 
-   }
 
-   function find(className) {
 
-     const elm = On(root, `.${className}`);
 
-     return elm && En(elm, `.${CLASS_ROOT}`) === root ? elm : void 0;
 
-   }
 
-   function getClasses(base) {
 
-     return [
 
-       `${base}--${options.type}`,
 
-       `${base}--${options.direction}`,
 
-       options.drag && `${base}--draggable`,
 
-       options.isNavigation && `${base}--nav`,
 
-       base === CLASS_ROOT && CLASS_ACTIVE
 
-     ];
 
-   }
 
-   return v(elements, {
 
-     setup,
 
-     mount,
 
-     destroy
 
-   });
 
- }
 
- const SLIDE = "slide";
 
- const LOOP = "loop";
 
- const FADE = "fade";
 
- function Slide$1(Splide2, index, slideIndex, slide) {
 
-   const event = Splide2.event.create();
 
-   const { on, emit, bind } = event;
 
-   const { Components, root, options } = Splide2;
 
-   const { isNavigation, updateOnMove, i18n, pagination, slideFocus } = options;
 
-   const { Elements } = Components;
 
-   const { resolve } = Components.Direction;
 
-   const styles = wn(slide, "style");
 
-   const label = wn(slide, ARIA_LABEL);
 
-   const isClone = slideIndex > -1;
 
-   const container = Y(slide, `.${CLASS_CONTAINER}`);
 
-   let destroyed;
 
-   function mount() {
 
-     if (!isClone) {
 
-       slide.id = `${root.id}-slide${cn(index + 1)}`;
 
-       M(slide, ROLE, pagination ? "tabpanel" : "group");
 
-       M(slide, ARIA_ROLEDESCRIPTION, i18n.slide);
 
-       M(slide, ARIA_LABEL, label || Kn(i18n.slideLabel, [index + 1, Splide2.length]));
 
-     }
 
-     listen();
 
-   }
 
-   function listen() {
 
-     bind(slide, "click", a(emit, EVENT_CLICK, self));
 
-     bind(slide, "keydown", a(emit, EVENT_SLIDE_KEYDOWN, self));
 
-     on([EVENT_MOVED, EVENT_SHIFTED, EVENT_SCROLLED], update);
 
-     on(EVENT_NAVIGATION_MOUNTED, initNavigation);
 
-     if (updateOnMove) {
 
-       on(EVENT_MOVE, onMove);
 
-     }
 
-   }
 
-   function destroy() {
 
-     destroyed = true;
 
-     event.destroy();
 
-     Pn(slide, STATUS_CLASSES);
 
-     U(slide, ALL_ATTRIBUTES);
 
-     M(slide, "style", styles);
 
-     M(slide, ARIA_LABEL, label || "");
 
-   }
 
-   function initNavigation() {
 
-     const controls = Splide2.splides.map((target) => {
 
-       const Slide2 = target.splide.Components.Slides.getAt(index);
 
-       return Slide2 ? Slide2.slide.id : "";
 
-     }).join(" ");
 
-     M(slide, ARIA_LABEL, Kn(i18n.slideX, (isClone ? slideIndex : index) + 1));
 
-     M(slide, ARIA_CONTROLS, controls);
 
-     M(slide, ROLE, slideFocus ? "button" : "");
 
-     slideFocus && U(slide, ARIA_ROLEDESCRIPTION);
 
-   }
 
-   function onMove() {
 
-     if (!destroyed) {
 
-       update();
 
-     }
 
-   }
 
-   function update() {
 
-     if (!destroyed) {
 
-       const { index: curr } = Splide2;
 
-       updateActivity();
 
-       updateVisibility();
 
-       I(slide, CLASS_PREV, index === curr - 1);
 
-       I(slide, CLASS_NEXT, index === curr + 1);
 
-     }
 
-   }
 
-   function updateActivity() {
 
-     const active = isActive();
 
-     if (active !== Cn(slide, CLASS_ACTIVE)) {
 
-       I(slide, CLASS_ACTIVE, active);
 
-       M(slide, ARIA_CURRENT, isNavigation && active || "");
 
-       emit(active ? EVENT_ACTIVE : EVENT_INACTIVE, self);
 
-     }
 
-   }
 
-   function updateVisibility() {
 
-     const visible = isVisible();
 
-     const hidden = !visible && (!isActive() || isClone);
 
-     if (!Splide2.state.is([MOVING, SCROLLING])) {
 
-       M(slide, ARIA_HIDDEN, hidden || "");
 
-     }
 
-     M(Tn(slide, options.focusableNodes || ""), TAB_INDEX, hidden ? -1 : "");
 
-     if (slideFocus) {
 
-       M(slide, TAB_INDEX, hidden ? -1 : 0);
 
-     }
 
-     if (visible !== Cn(slide, CLASS_VISIBLE)) {
 
-       I(slide, CLASS_VISIBLE, visible);
 
-       emit(visible ? EVENT_VISIBLE : EVENT_HIDDEN, self);
 
-     }
 
-     if (!visible && document.activeElement === slide) {
 
-       const Slide2 = Components.Slides.getAt(Splide2.index);
 
-       Slide2 && $n(Slide2.slide);
 
-     }
 
-   }
 
-   function style(prop, value, useContainer) {
 
-     nn(useContainer && container || slide, prop, value);
 
-   }
 
-   function isActive() {
 
-     const { index: curr } = Splide2;
 
-     return curr === index || options.cloneStatus && curr === slideIndex;
 
-   }
 
-   function isVisible() {
 
-     if (Splide2.is(FADE)) {
 
-       return isActive();
 
-     }
 
-     const trackRect = tn(Elements.track);
 
-     const slideRect = tn(slide);
 
-     const left = resolve("left", true);
 
-     const right = resolve("right", true);
 
-     return Dn(trackRect[left]) <= Fn(slideRect[left]) && Dn(slideRect[right]) <= Fn(trackRect[right]);
 
-   }
 
-   function isWithin(from, distance) {
 
-     let diff = un(from - index);
 
-     if (!isClone && (options.rewind || Splide2.is(LOOP))) {
 
-       diff = E(diff, Splide2.length - diff);
 
-     }
 
-     return diff <= distance;
 
-   }
 
-   function pos() {
 
-     const left = resolve("left");
 
-     return un(tn(slide)[left] - tn(Elements.list)[left]);
 
-   }
 
-   function size() {
 
-     return tn(slide)[resolve("width")];
 
-   }
 
-   const self = {
 
-     index,
 
-     slideIndex,
 
-     slide,
 
-     container,
 
-     isClone,
 
-     mount,
 
-     destroy,
 
-     update,
 
-     pos,
 
-     size,
 
-     style,
 
-     isWithin
 
-   };
 
-   return self;
 
- }
 
- function Slides(Splide2, Components2, options, event) {
 
-   const { on, emit, bind } = event;
 
-   const { slides, list } = Components2.Elements;
 
-   const Slides2 = [];
 
-   function mount() {
 
-     init();
 
-     on(EVENT_REFRESH, destroy);
 
-     on(EVENT_REFRESH, init);
 
-   }
 
-   function init() {
 
-     slides.forEach((slide, index) => {
 
-       register(slide, index, -1);
 
-     });
 
-   }
 
-   function destroy() {
 
-     forEach((Slide2) => {
 
-       Slide2.destroy();
 
-     });
 
-     N(Slides2);
 
-   }
 
-   function update() {
 
-     forEach((Slide2) => {
 
-       Slide2.update();
 
-     });
 
-   }
 
-   function register(slide, index, slideIndex) {
 
-     const object = Slide$1(Splide2, index, slideIndex, slide);
 
-     object.mount();
 
-     Slides2.push(object);
 
-     Slides2.sort((Slide1, Slide2) => Slide1.index - Slide2.index);
 
-   }
 
-   function get(excludeClones) {
 
-     return excludeClones ? filter((Slide2) => !Slide2.isClone) : Slides2;
 
-   }
 
-   function getIn(page) {
 
-     const { Controller } = Components2;
 
-     const index = Controller.toIndex(page);
 
-     const max = Controller.hasFocus() ? 1 : options.perPage;
 
-     return filter((Slide2) => _n(Slide2.index, index, index + max - 1));
 
-   }
 
-   function getAt(index) {
 
-     return filter(index)[0];
 
-   }
 
-   function add(items, index) {
 
-     d(items, (slide) => {
 
-       if (p(slide)) {
 
-         slide = qn(slide);
 
-       }
 
-       if (x(slide)) {
 
-         const ref = slides[index];
 
-         ref ? yn(slide, ref) : Q(list, slide);
 
-         J(slide, options.classes.slide);
 
-         observeImages(slide, a(emit, EVENT_RESIZE));
 
-       }
 
-     });
 
-     emit(EVENT_REFRESH);
 
-   }
 
-   function remove(matcher) {
 
-     en(filter(matcher).map((Slide2) => Slide2.slide));
 
-     emit(EVENT_REFRESH);
 
-   }
 
-   function forEach(iteratee, excludeClones) {
 
-     get(excludeClones).forEach(iteratee);
 
-   }
 
-   function filter(matcher) {
 
-     return Slides2.filter(
 
-       ln(matcher) ? matcher : (Slide2) => p(matcher) ? W(Slide2.slide, matcher) : G(q(matcher), Slide2.index)
 
-     );
 
-   }
 
-   function style(prop, value, useContainer) {
 
-     forEach((Slide2) => {
 
-       Slide2.style(prop, value, useContainer);
 
-     });
 
-   }
 
-   function observeImages(elm, callback) {
 
-     const images = Tn(elm, "img");
 
-     let { length } = images;
 
-     if (length) {
 
-       images.forEach((img) => {
 
-         bind(img, "load error", () => {
 
-           if (!--length) {
 
-             callback();
 
-           }
 
-         });
 
-       });
 
-     } else {
 
-       callback();
 
-     }
 
-   }
 
-   function getLength(excludeClones) {
 
-     return excludeClones ? slides.length : Slides2.length;
 
-   }
 
-   function isEnough() {
 
-     return Slides2.length > options.perPage;
 
-   }
 
-   return {
 
-     mount,
 
-     destroy,
 
-     update,
 
-     register,
 
-     get,
 
-     getIn,
 
-     getAt,
 
-     add,
 
-     remove,
 
-     forEach,
 
-     filter,
 
-     style,
 
-     getLength,
 
-     isEnough
 
-   };
 
- }
 
- function Layout(Splide2, Components2, options, event) {
 
-   const { on, bind, emit } = event;
 
-   const { Slides } = Components2;
 
-   const { resolve } = Components2.Direction;
 
-   const { root, track, list } = Components2.Elements;
 
-   const { getAt, style: styleSlides } = Slides;
 
-   let vertical;
 
-   let rootRect;
 
-   let overflow;
 
-   function mount() {
 
-     init();
 
-     bind(window, "resize load", Vn(a(emit, EVENT_RESIZE)));
 
-     on([EVENT_UPDATED, EVENT_REFRESH], init);
 
-     on(EVENT_RESIZE, resize);
 
-   }
 
-   function init() {
 
-     vertical = options.direction === TTB;
 
-     nn(root, "maxWidth", Nn(options.width));
 
-     nn(track, resolve("paddingLeft"), cssPadding(false));
 
-     nn(track, resolve("paddingRight"), cssPadding(true));
 
-     resize(true);
 
-   }
 
-   function resize(force) {
 
-     const newRect = tn(root);
 
-     if (force || rootRect.width !== newRect.width || rootRect.height !== newRect.height) {
 
-       nn(track, "height", cssTrackHeight());
 
-       styleSlides(resolve("marginRight"), Nn(options.gap));
 
-       styleSlides("width", cssSlideWidth());
 
-       styleSlides("height", cssSlideHeight(), true);
 
-       rootRect = newRect;
 
-       emit(EVENT_RESIZED);
 
-       if (overflow !== (overflow = isOverflow())) {
 
-         I(root, CLASS_OVERFLOW, overflow);
 
-         emit(EVENT_OVERFLOW, overflow);
 
-       }
 
-     }
 
-   }
 
-   function cssPadding(right) {
 
-     const { padding } = options;
 
-     const prop = resolve(right ? "right" : "left");
 
-     return padding && Nn(padding[prop] || (y(padding) ? 0 : padding)) || "0px";
 
-   }
 
-   function cssTrackHeight() {
 
-     let height = "";
 
-     if (vertical) {
 
-       height = cssHeight();
 
-       assert(height, "height or heightRatio is missing.");
 
-       height = `calc(${height} - ${cssPadding(false)} - ${cssPadding(true)})`;
 
-     }
 
-     return height;
 
-   }
 
-   function cssHeight() {
 
-     return Nn(options.height || tn(list).width * options.heightRatio);
 
-   }
 
-   function cssSlideWidth() {
 
-     return options.autoWidth ? null : Nn(options.fixedWidth) || (vertical ? "" : cssSlideSize());
 
-   }
 
-   function cssSlideHeight() {
 
-     return Nn(options.fixedHeight) || (vertical ? options.autoHeight ? null : cssSlideSize() : cssHeight());
 
-   }
 
-   function cssSlideSize() {
 
-     const gap = Nn(options.gap);
 
-     return `calc((100%${gap && ` + ${gap}`})/${options.perPage || 1}${gap && ` - ${gap}`})`;
 
-   }
 
-   function listSize() {
 
-     return tn(list)[resolve("width")];
 
-   }
 
-   function slideSize(index = 0, withoutGap) {
 
-     const Slide = getAt(index);
 
-     return (Slide ? Slide.size() : 0) + (withoutGap ? 0 : getGap());
 
-   }
 
-   function totalSize(index, withoutGap) {
 
-     const Slide = getAt(index);
 
-     return Slide ? Slide.pos() + Slide.size() + (withoutGap ? 0 : getGap()) : 0;
 
-   }
 
-   function sliderSize(withoutGap) {
 
-     return totalSize(Splide2.length - 1) - totalSize(0) + slideSize(0, withoutGap);
 
-   }
 
-   function getGap() {
 
-     const first = getAt(0);
 
-     const second = getAt(1);
 
-     return first && second ? second.pos() - first.pos() - first.size() : 0;
 
-   }
 
-   function getPadding(right) {
 
-     return parseFloat(nn(
 
-       track,
 
-       resolve(`padding${right ? "Right" : "Left"}`)
 
-     )) || 0;
 
-   }
 
-   function isOverflow() {
 
-     return Splide2.is(FADE) || sliderSize(true) > listSize();
 
-   }
 
-   return {
 
-     mount,
 
-     resize,
 
-     listSize,
 
-     slideSize,
 
-     sliderSize,
 
-     totalSize,
 
-     getPadding,
 
-     isOverflow
 
-   };
 
- }
 
- const MULTIPLIER = 2;
 
- function Clones(Splide2, Components2, options, event) {
 
-   const { on } = event;
 
-   const { Elements, Slides } = Components2;
 
-   const { resolve } = Components2.Direction;
 
-   const clones = [];
 
-   let cloneCount;
 
-   function mount() {
 
-     on(EVENT_REFRESH, remount);
 
-     on([EVENT_UPDATED, EVENT_RESIZE], observe);
 
-     if (cloneCount = computeCloneCount()) {
 
-       generate(cloneCount);
 
-       Components2.Layout.resize(true);
 
-     }
 
-   }
 
-   function remount() {
 
-     destroy();
 
-     mount();
 
-   }
 
-   function destroy() {
 
-     en(clones);
 
-     N(clones);
 
-     event.destroy();
 
-   }
 
-   function observe() {
 
-     const count = computeCloneCount();
 
-     if (cloneCount !== count) {
 
-       if (cloneCount < count || !count) {
 
-         event.emit(EVENT_REFRESH);
 
-       }
 
-     }
 
-   }
 
-   function generate(count) {
 
-     const slides = Slides.get().slice();
 
-     const { length } = slides;
 
-     if (length) {
 
-       while (slides.length < count) {
 
-         pn(slides, slides);
 
-       }
 
-       pn(slides.slice(-count), slides.slice(0, count)).forEach((Slide, index) => {
 
-         const isHead = index < count;
 
-         const clone = cloneDeep(Slide.slide, index);
 
-         isHead ? yn(clone, slides[0].slide) : Q(Elements.list, clone);
 
-         pn(clones, clone);
 
-         Slides.register(clone, index - count + (isHead ? 0 : length), Slide.index);
 
-       });
 
-     }
 
-   }
 
-   function cloneDeep(elm, index) {
 
-     const clone = elm.cloneNode(true);
 
-     J(clone, options.classes.clone);
 
-     clone.id = `${Splide2.root.id}-clone${cn(index + 1)}`;
 
-     return clone;
 
-   }
 
-   function computeCloneCount() {
 
-     let { clones: clones2 } = options;
 
-     if (!Splide2.is(LOOP)) {
 
-       clones2 = 0;
 
-     } else if (Z(clones2)) {
 
-       const fixedSize = options[resolve("fixedWidth")] && Components2.Layout.slideSize(0);
 
-       const fixedCount = fixedSize && Fn(tn(Elements.track)[resolve("width")] / fixedSize);
 
-       clones2 = fixedCount || options[resolve("autoWidth")] && Splide2.length || options.perPage * MULTIPLIER;
 
-     }
 
-     return clones2;
 
-   }
 
-   return {
 
-     mount,
 
-     destroy
 
-   };
 
- }
 
- function Move(Splide2, Components2, options, event) {
 
-   const { on, emit } = event;
 
-   const { set } = Splide2.state;
 
-   const { Slides } = Components2;
 
-   const { slideSize, getPadding, listSize, sliderSize } = Components2.Layout;
 
-   const { resolve, orient } = Components2.Direction;
 
-   const { list, track } = Components2.Elements;
 
-   let Transition;
 
-   function mount() {
 
-     Transition = Components2.Transition;
 
-     on([EVENT_MOUNTED, EVENT_RESIZED, EVENT_UPDATED, EVENT_REFRESH], reposition);
 
-   }
 
-   function reposition() {
 
-     if (!Components2.Controller.isBusy()) {
 
-       Components2.Scroll.cancel();
 
-       jump(Splide2.index);
 
-       Components2.Slides.update();
 
-     }
 
-   }
 
-   function move(dest, index, prev, callback) {
 
-     if (dest !== index && canShift(dest > prev)) {
 
-       cancel();
 
-       translate(shift(getPosition(), dest > prev), true);
 
-     }
 
-     set(MOVING);
 
-     emit(EVENT_MOVE, index, prev, dest);
 
-     Transition.start(index, () => {
 
-       set(IDLE);
 
-       emit(EVENT_MOVED, index, prev, dest);
 
-       callback && callback();
 
-     });
 
-   }
 
-   function jump(index) {
 
-     translate(toPosition(index, true));
 
-   }
 
-   function translate(position, preventLoop) {
 
-     if (!Splide2.is(FADE)) {
 
-       const destination = preventLoop ? position : loop(position);
 
-       nn(list, "transform", `translate${resolve("X")}(${destination}px)`);
 
-       position !== destination && emit(EVENT_SHIFTED);
 
-     }
 
-   }
 
-   function loop(position) {
 
-     if (Splide2.is(LOOP)) {
 
-       const index = toIndex(position);
 
-       const exceededMax = index > Components2.Controller.getEnd();
 
-       const exceededMin = index < 0;
 
-       if (exceededMin || exceededMax) {
 
-         position = shift(position, exceededMax);
 
-       }
 
-     }
 
-     return position;
 
-   }
 
-   function shift(position, backwards) {
 
-     const excess = position - getLimit(backwards);
 
-     const size = sliderSize();
 
-     position -= orient(size * (Fn(un(excess) / size) || 1)) * (backwards ? 1 : -1);
 
-     return position;
 
-   }
 
-   function cancel() {
 
-     translate(getPosition(), true);
 
-     Transition.cancel();
 
-   }
 
-   function toIndex(position) {
 
-     const slides = Slides.get();
 
-     let index = 0;
 
-     let minDistance = Infinity;
 
-     for (let i = 0; i < slides.length; i++) {
 
-       const slideIndex = slides[i].index;
 
-       const distance = un(toPosition(slideIndex, true) - position);
 
-       if (distance <= minDistance) {
 
-         minDistance = distance;
 
-         index = slideIndex;
 
-       } else {
 
-         break;
 
-       }
 
-     }
 
-     return index;
 
-   }
 
-   function toPosition(index, trimming) {
 
-     const Slide = Slides.getAt(index);
 
-     const position = Slide ? orient(Slide.pos() - offset(index)) : 0;
 
-     return trimming ? trim(position) : position;
 
-   }
 
-   function getPosition() {
 
-     const left = resolve("left");
 
-     return tn(list)[left] - tn(track)[left] + orient(getPadding(false));
 
-   }
 
-   function trim(position) {
 
-     if (options.trimSpace && Splide2.is(SLIDE)) {
 
-       position = bn(position, 0, orient(sliderSize(true) - listSize()));
 
-     }
 
-     return position;
 
-   }
 
-   function offset(index) {
 
-     const { focus } = options;
 
-     return focus === "center" ? (listSize() - slideSize(index, true)) / 2 : +focus * slideSize(index) || 0;
 
-   }
 
-   function getLimit(max) {
 
-     return toPosition(max ? Components2.Controller.getEnd() : 0, !!options.trimSpace);
 
-   }
 
-   function canShift(backwards) {
 
-     const padding = getPadding(false);
 
-     const shifted = orient(shift(getPosition(), backwards));
 
-     return backwards ? shifted >= padding : shifted <= list[resolve("scrollWidth")] - tn(track)[resolve("width")] + padding;
 
-   }
 
-   function exceededLimit(max, position = getPosition()) {
 
-     const exceededMin = max !== true && orient(position) < orient(getLimit(false));
 
-     const exceededMax = max !== false && orient(position) > orient(getLimit(true));
 
-     return exceededMin || exceededMax;
 
-   }
 
-   return {
 
-     mount,
 
-     move,
 
-     jump,
 
-     translate,
 
-     shift,
 
-     cancel,
 
-     toIndex,
 
-     toPosition,
 
-     getPosition,
 
-     getLimit,
 
-     exceededLimit,
 
-     reposition
 
-   };
 
- }
 
- function Controller(Splide2, Components2, options, event) {
 
-   const { on, emit } = event;
 
-   const { Move } = Components2;
 
-   const { getPosition, getLimit, toPosition } = Move;
 
-   const { isEnough, getLength } = Components2.Slides;
 
-   const { omitEnd } = options;
 
-   const isLoop = Splide2.is(LOOP);
 
-   const isSlide = Splide2.is(SLIDE);
 
-   const getNext = a(getAdjacent, false);
 
-   const getPrev = a(getAdjacent, true);
 
-   let currIndex = options.start || 0;
 
-   let endIndex;
 
-   let prevIndex = currIndex;
 
-   let slideCount;
 
-   let perMove;
 
-   let perPage;
 
-   function mount() {
 
-     init();
 
-     on([EVENT_UPDATED, EVENT_REFRESH, EVENT_END_INDEX_CHANGED], init);
 
-     on(EVENT_RESIZED, onResized);
 
-   }
 
-   function init() {
 
-     slideCount = getLength(true);
 
-     perMove = options.perMove;
 
-     perPage = options.perPage;
 
-     endIndex = getEnd();
 
-     const end = omitEnd ? endIndex : slideCount - 1;
 
-     const index = bn(currIndex, 0, end);
 
-     prevIndex = bn(currIndex, 0, end);
 
-     if (index !== currIndex) {
 
-       currIndex = index;
 
-       Move.reposition();
 
-     }
 
-   }
 
-   function onResized() {
 
-     if (endIndex !== getEnd()) {
 
-       emit(EVENT_END_INDEX_CHANGED);
 
-     }
 
-   }
 
-   function go(control, allowSameIndex, callback) {
 
-     if (!isBusy()) {
 
-       const dest = parse(control);
 
-       const index = loop(dest);
 
-       if (index > -1 && (allowSameIndex || index !== currIndex)) {
 
-         setIndex(index);
 
-         Move.move(dest, index, prevIndex, callback);
 
-       }
 
-     }
 
-   }
 
-   function scroll(destination, duration, snap, callback) {
 
-     Components2.Scroll.scroll(destination, duration, snap, () => {
 
-       const index = loop(Move.toIndex(getPosition()));
 
-       setIndex(omitEnd ? E(index, endIndex) : index);
 
-       callback && callback();
 
-     });
 
-   }
 
-   function parse(control) {
 
-     let index = currIndex;
 
-     if (p(control)) {
 
-       const [, indicator, number] = control.match(/([+\-<>])(\d+)?/) || [];
 
-       if (indicator === "+" || indicator === "-") {
 
-         index = computeDestIndex(currIndex + +`${indicator}${+number || 1}`, currIndex);
 
-       } else if (indicator === ">") {
 
-         index = number ? toIndex(+number) : getNext(true);
 
-       } else if (indicator === "<") {
 
-         index = getPrev(true);
 
-       }
 
-     } else {
 
-       index = isLoop ? control : bn(control, 0, endIndex);
 
-     }
 
-     return index;
 
-   }
 
-   function getAdjacent(prev, destination) {
 
-     const number = perMove || (hasFocus() ? 1 : perPage);
 
-     const dest = computeDestIndex(currIndex + number * (prev ? -1 : 1), currIndex, !(perMove || hasFocus()));
 
-     if (dest === -1 && isSlide) {
 
-       if (!Mn(getPosition(), getLimit(!prev), 1)) {
 
-         return prev ? 0 : endIndex;
 
-       }
 
-     }
 
-     return destination ? dest : loop(dest);
 
-   }
 
-   function computeDestIndex(dest, from, snapPage) {
 
-     if (isEnough() || hasFocus()) {
 
-       const index = computeMovableDestIndex(dest);
 
-       if (index !== dest) {
 
-         from = dest;
 
-         dest = index;
 
-         snapPage = false;
 
-       }
 
-       if (dest < 0 || dest > endIndex) {
 
-         if (!perMove && (_n(0, dest, from, true) || _n(endIndex, from, dest, true))) {
 
-           dest = toIndex(toPage(dest));
 
-         } else {
 
-           if (isLoop) {
 
-             dest = snapPage ? dest < 0 ? -(slideCount % perPage || perPage) : slideCount : dest;
 
-           } else if (options.rewind) {
 
-             dest = dest < 0 ? endIndex : 0;
 
-           } else {
 
-             dest = -1;
 
-           }
 
-         }
 
-       } else {
 
-         if (snapPage && dest !== from) {
 
-           dest = toIndex(toPage(from) + (dest < from ? -1 : 1));
 
-         }
 
-       }
 
-     } else {
 
-       dest = -1;
 
-     }
 
-     return dest;
 
-   }
 
-   function computeMovableDestIndex(dest) {
 
-     if (isSlide && options.trimSpace === "move" && dest !== currIndex) {
 
-       const position = getPosition();
 
-       while (position === toPosition(dest, true) && _n(dest, 0, Splide2.length - 1, !options.rewind)) {
 
-         dest < currIndex ? --dest : ++dest;
 
-       }
 
-     }
 
-     return dest;
 
-   }
 
-   function loop(index) {
 
-     return isLoop ? (index + slideCount) % slideCount || 0 : index;
 
-   }
 
-   function getEnd() {
 
-     let end = slideCount - (hasFocus() || isLoop && perMove ? 1 : perPage);
 
-     while (omitEnd && end-- > 0) {
 
-       if (toPosition(slideCount - 1, true) !== toPosition(end, true)) {
 
-         end++;
 
-         break;
 
-       }
 
-     }
 
-     return bn(end, 0, slideCount - 1);
 
-   }
 
-   function toIndex(page) {
 
-     return bn(hasFocus() ? page : perPage * page, 0, endIndex);
 
-   }
 
-   function toPage(index) {
 
-     return hasFocus() ? E(index, endIndex) : Dn((index >= endIndex ? slideCount - 1 : index) / perPage);
 
-   }
 
-   function toDest(destination) {
 
-     const closest = Move.toIndex(destination);
 
-     return isSlide ? bn(closest, 0, endIndex) : closest;
 
-   }
 
-   function setIndex(index) {
 
-     if (index !== currIndex) {
 
-       prevIndex = currIndex;
 
-       currIndex = index;
 
-     }
 
-   }
 
-   function getIndex(prev) {
 
-     return prev ? prevIndex : currIndex;
 
-   }
 
-   function hasFocus() {
 
-     return !Z(options.focus) || options.isNavigation;
 
-   }
 
-   function isBusy() {
 
-     return Splide2.state.is([MOVING, SCROLLING]) && !!options.waitForTransition;
 
-   }
 
-   return {
 
-     mount,
 
-     go,
 
-     scroll,
 
-     getNext,
 
-     getPrev,
 
-     getAdjacent,
 
-     getEnd,
 
-     setIndex,
 
-     getIndex,
 
-     toIndex,
 
-     toPage,
 
-     toDest,
 
-     hasFocus,
 
-     isBusy
 
-   };
 
- }
 
- const XML_NAME_SPACE = "http://www.w3.org/2000/svg";
 
- const PATH = "m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z";
 
- const SIZE = 40;
 
- function Arrows(Splide2, Components2, options, event) {
 
-   const { on, bind, emit } = event;
 
-   const { classes, i18n } = options;
 
-   const { Elements, Controller } = Components2;
 
-   const { arrows: placeholder, track } = Elements;
 
-   let wrapper = placeholder;
 
-   let prev = Elements.prev;
 
-   let next = Elements.next;
 
-   let created;
 
-   let wrapperClasses;
 
-   const arrows = {};
 
-   function mount() {
 
-     init();
 
-     on(EVENT_UPDATED, remount);
 
-   }
 
-   function remount() {
 
-     destroy();
 
-     mount();
 
-   }
 
-   function init() {
 
-     const enabled = options.arrows;
 
-     if (enabled && !(prev && next)) {
 
-       createArrows();
 
-     }
 
-     if (prev && next) {
 
-       v(arrows, { prev, next });
 
-       An(wrapper, enabled ? "" : "none");
 
-       J(wrapper, wrapperClasses = `${CLASS_ARROWS}--${options.direction}`);
 
-       if (enabled) {
 
-         listen();
 
-         update();
 
-         M([prev, next], ARIA_CONTROLS, track.id);
 
-         emit(EVENT_ARROWS_MOUNTED, prev, next);
 
-       }
 
-     }
 
-   }
 
-   function destroy() {
 
-     event.destroy();
 
-     Pn(wrapper, wrapperClasses);
 
-     if (created) {
 
-       en(placeholder ? [prev, next] : wrapper);
 
-       prev = next = null;
 
-     } else {
 
-       U([prev, next], ALL_ATTRIBUTES);
 
-     }
 
-   }
 
-   function listen() {
 
-     on([EVENT_MOUNTED, EVENT_MOVED, EVENT_REFRESH, EVENT_SCROLLED, EVENT_END_INDEX_CHANGED], update);
 
-     bind(next, "click", a(go, ">"));
 
-     bind(prev, "click", a(go, "<"));
 
-   }
 
-   function go(control) {
 
-     Controller.go(control, true);
 
-   }
 
-   function createArrows() {
 
-     wrapper = placeholder || j("div", classes.arrows);
 
-     prev = createArrow(true);
 
-     next = createArrow(false);
 
-     created = true;
 
-     Q(wrapper, [prev, next]);
 
-     !placeholder && yn(wrapper, track);
 
-   }
 
-   function createArrow(prev2) {
 
-     const arrow = `<button class="${classes.arrow} ${prev2 ? classes.prev : classes.next}" type="button"><svg xmlns="${XML_NAME_SPACE}" viewBox="0 0 ${SIZE} ${SIZE}" width="${SIZE}" height="${SIZE}"><path d="${options.arrowPath || PATH}" />`;
 
-     return qn(arrow);
 
-   }
 
-   function update() {
 
-     if (prev && next) {
 
-       const index = Splide2.index;
 
-       const prevIndex = Controller.getPrev();
 
-       const nextIndex = Controller.getNext();
 
-       const prevLabel = prevIndex > -1 && index < prevIndex ? i18n.last : i18n.prev;
 
-       const nextLabel = nextIndex > -1 && index > nextIndex ? i18n.first : i18n.next;
 
-       prev.disabled = prevIndex < 0;
 
-       next.disabled = nextIndex < 0;
 
-       M(prev, ARIA_LABEL, prevLabel);
 
-       M(next, ARIA_LABEL, nextLabel);
 
-       emit(EVENT_ARROWS_UPDATED, prev, next, prevIndex, nextIndex);
 
-     }
 
-   }
 
-   return {
 
-     arrows,
 
-     mount,
 
-     destroy,
 
-     update
 
-   };
 
- }
 
- const INTERVAL_DATA_ATTRIBUTE = `${DATA_ATTRIBUTE}-interval`;
 
- function Autoplay(Splide2, Components2, options, event) {
 
-   const { on, bind, emit } = event;
 
-   const interval = sn(options.interval, Splide2.go.bind(Splide2, ">"), onAnimationFrame);
 
-   const { isPaused } = interval;
 
-   const { Elements, Elements: { root, toggle } } = Components2;
 
-   const { autoplay } = options;
 
-   let hovered;
 
-   let focused;
 
-   let stopped = autoplay === "pause";
 
-   function mount() {
 
-     if (autoplay) {
 
-       listen();
 
-       toggle && M(toggle, ARIA_CONTROLS, Elements.track.id);
 
-       stopped || play();
 
-       update();
 
-     }
 
-   }
 
-   function listen() {
 
-     if (options.pauseOnHover) {
 
-       bind(root, "mouseenter mouseleave", (e) => {
 
-         hovered = e.type === "mouseenter";
 
-         autoToggle();
 
-       });
 
-     }
 
-     if (options.pauseOnFocus) {
 
-       bind(root, "focusin focusout", (e) => {
 
-         focused = e.type === "focusin";
 
-         autoToggle();
 
-       });
 
-     }
 
-     if (toggle) {
 
-       bind(toggle, "click", () => {
 
-         stopped ? play() : pause(true);
 
-       });
 
-     }
 
-     on([EVENT_MOVE, EVENT_SCROLL, EVENT_REFRESH], interval.rewind);
 
-     on(EVENT_MOVE, onMove);
 
-   }
 
-   function play() {
 
-     if (isPaused() && Components2.Slides.isEnough()) {
 
-       interval.start(!options.resetProgress);
 
-       focused = hovered = stopped = false;
 
-       update();
 
-       emit(EVENT_AUTOPLAY_PLAY);
 
-     }
 
-   }
 
-   function pause(stop = true) {
 
-     stopped = !!stop;
 
-     update();
 
-     if (!isPaused()) {
 
-       interval.pause();
 
-       emit(EVENT_AUTOPLAY_PAUSE);
 
-     }
 
-   }
 
-   function autoToggle() {
 
-     if (!stopped) {
 
-       hovered || focused ? pause(false) : play();
 
-     }
 
-   }
 
-   function update() {
 
-     if (toggle) {
 
-       I(toggle, CLASS_ACTIVE, !stopped);
 
-       M(toggle, ARIA_LABEL, options.i18n[stopped ? "play" : "pause"]);
 
-     }
 
-   }
 
-   function onAnimationFrame(rate) {
 
-     const { bar } = Elements;
 
-     bar && nn(bar, "width", `${rate * 100}%`);
 
-     emit(EVENT_AUTOPLAY_PLAYING, rate);
 
-   }
 
-   function onMove(index) {
 
-     const Slide = Components2.Slides.getAt(index);
 
-     interval.set(Slide && +wn(Slide.slide, INTERVAL_DATA_ATTRIBUTE) || options.interval);
 
-   }
 
-   return {
 
-     mount,
 
-     destroy: interval.cancel,
 
-     play,
 
-     pause,
 
-     isPaused
 
-   };
 
- }
 
- const BOUNCE_DIFF_THRESHOLD = 10;
 
- const BOUNCE_DURATION = 600;
 
- const FRICTION_FACTOR = 0.6;
 
- const BASE_VELOCITY = 1.5;
 
- const MIN_DURATION = 800;
 
- function Scroll(Splide2, Components2, options, event) {
 
-   const { on, emit } = event;
 
-   const { state: { set } } = Splide2;
 
-   const { Move } = Components2;
 
-   const { getPosition, getLimit, exceededLimit, translate } = Move;
 
-   const isSlide = Splide2.is(SLIDE);
 
-   let interval;
 
-   let callback;
 
-   let friction = 1;
 
-   function mount() {
 
-     on(EVENT_MOVE, clear);
 
-     on([EVENT_UPDATED, EVENT_REFRESH], cancel);
 
-   }
 
-   function scroll(destination, duration, snap, onScrolled, noConstrain) {
 
-     const from = getPosition();
 
-     clear();
 
-     if (snap && (!isSlide || !exceededLimit())) {
 
-       const size = Components2.Layout.sliderSize();
 
-       const offset = In(destination) * size * Dn(un(destination) / size) || 0;
 
-       destination = Move.toPosition(Components2.Controller.toDest(destination % size)) + offset;
 
-     }
 
-     const noDistance = Mn(from, destination, 1);
 
-     friction = 1;
 
-     duration = noDistance ? 0 : duration || $(un(destination - from) / BASE_VELOCITY, MIN_DURATION);
 
-     callback = onScrolled;
 
-     interval = sn(duration, onEnd, a(update, from, destination, noConstrain), 1);
 
-     set(SCROLLING);
 
-     emit(EVENT_SCROLL);
 
-     interval.start();
 
-   }
 
-   function onEnd() {
 
-     set(IDLE);
 
-     callback && callback();
 
-     emit(EVENT_SCROLLED);
 
-   }
 
-   function update(from, to, noConstrain, rate) {
 
-     const position = getPosition();
 
-     const target = from + (to - from) * easing(rate);
 
-     const diff = (target - position) * friction;
 
-     translate(position + diff);
 
-     if (isSlide && !noConstrain && exceededLimit()) {
 
-       friction *= FRICTION_FACTOR;
 
-       if (un(diff) < BOUNCE_DIFF_THRESHOLD) {
 
-         scroll(getLimit(exceededLimit(true)), BOUNCE_DURATION, false, callback, true);
 
-       }
 
-     }
 
-   }
 
-   function clear() {
 
-     if (interval) {
 
-       interval.cancel();
 
-     }
 
-   }
 
-   function cancel() {
 
-     if (interval && !interval.isPaused()) {
 
-       clear();
 
-       onEnd();
 
-     }
 
-   }
 
-   function easing(t) {
 
-     const { easingFunc } = options;
 
-     return easingFunc ? easingFunc(t) : 1 - Math.pow(1 - t, 4);
 
-   }
 
-   return {
 
-     mount,
 
-     destroy: clear,
 
-     scroll,
 
-     cancel
 
-   };
 
- }
 
- const SCROLL_LISTENER_OPTIONS = { passive: false, capture: true };
 
- function Drag(Splide2, Components2, options, event) {
 
-   const { on, emit, bind } = event;
 
-   const binder = event.create();
 
-   const { state } = Splide2;
 
-   const { Move, Scroll, Controller, Elements: { track }, Media: { reduce } } = Components2;
 
-   const { resolve, orient } = Components2.Direction;
 
-   const { getPosition, exceededLimit } = Move;
 
-   let basePosition;
 
-   let baseEvent;
 
-   let prevBaseEvent;
 
-   let isFree;
 
-   let dragging;
 
-   let exceeded = false;
 
-   let clickPrevented;
 
-   let disabled;
 
-   let target;
 
-   function mount() {
 
-     bind(track, POINTER_MOVE_EVENTS, an, SCROLL_LISTENER_OPTIONS);
 
-     bind(track, POINTER_UP_EVENTS, an, SCROLL_LISTENER_OPTIONS);
 
-     bind(track, POINTER_DOWN_EVENTS, onPointerDown, SCROLL_LISTENER_OPTIONS);
 
-     bind(track, "click", onClick, { capture: true });
 
-     bind(track, "dragstart", Ln);
 
-     on([EVENT_MOUNTED, EVENT_UPDATED], init);
 
-   }
 
-   function init() {
 
-     const { drag } = options;
 
-     disable(!drag);
 
-     isFree = drag === "free";
 
-   }
 
-   function onPointerDown(e) {
 
-     clickPrevented = false;
 
-     if (!disabled) {
 
-       const isTouch = isTouchEvent(e);
 
-       if (isDraggable(e.target) && (isTouch || !e.button)) {
 
-         if (!Controller.isBusy()) {
 
-           target = isTouch ? track : window;
 
-           dragging = state.is([MOVING, SCROLLING]);
 
-           prevBaseEvent = null;
 
-           binder.bind(target, POINTER_MOVE_EVENTS, onPointerMove, SCROLL_LISTENER_OPTIONS);
 
-           binder.bind(target, POINTER_UP_EVENTS, onPointerUp, SCROLL_LISTENER_OPTIONS);
 
-           Move.cancel();
 
-           Scroll.cancel();
 
-           save(e);
 
-         } else {
 
-           Ln(e, true);
 
-         }
 
-       }
 
-     }
 
-   }
 
-   function onPointerMove(e) {
 
-     if (!state.is(DRAGGING)) {
 
-       state.set(DRAGGING);
 
-       emit(EVENT_DRAG);
 
-     }
 
-     if (e.cancelable) {
 
-       if (dragging) {
 
-         Move.translate(basePosition + constrain(diffCoord(e)));
 
-         const expired = diffTime(e) > LOG_INTERVAL;
 
-         const hasExceeded = exceeded !== (exceeded = exceededLimit());
 
-         if (expired || hasExceeded) {
 
-           save(e);
 
-         }
 
-         clickPrevented = true;
 
-         emit(EVENT_DRAGGING);
 
-         Ln(e);
 
-       } else if (isSliderDirection(e)) {
 
-         dragging = shouldStart(e);
 
-         Ln(e);
 
-       }
 
-     }
 
-   }
 
-   function onPointerUp(e) {
 
-     if (state.is(DRAGGING)) {
 
-       state.set(IDLE);
 
-       emit(EVENT_DRAGGED);
 
-     }
 
-     if (dragging) {
 
-       move(e);
 
-       Ln(e);
 
-     }
 
-     binder.destroy();
 
-     dragging = false;
 
-   }
 
-   function onClick(e) {
 
-     if (!disabled && clickPrevented) {
 
-       Ln(e, true);
 
-     }
 
-   }
 
-   function save(e) {
 
-     prevBaseEvent = baseEvent;
 
-     baseEvent = e;
 
-     basePosition = getPosition();
 
-   }
 
-   function move(e) {
 
-     const velocity = computeVelocity(e);
 
-     const destination = computeDestination(velocity);
 
-     const rewind = options.rewind && options.rewindByDrag;
 
-     reduce(false);
 
-     if (isFree) {
 
-       Controller.scroll(destination, 0, options.snap);
 
-     } else if (Splide2.is(FADE)) {
 
-       Controller.go(orient(In(velocity)) < 0 ? rewind ? "<" : "-" : rewind ? ">" : "+");
 
-     } else if (Splide2.is(SLIDE) && exceeded && rewind) {
 
-       Controller.go(exceededLimit(true) ? ">" : "<");
 
-     } else {
 
-       Controller.go(Controller.toDest(destination), true);
 
-     }
 
-     reduce(true);
 
-   }
 
-   function shouldStart(e) {
 
-     const { dragMinThreshold: thresholds } = options;
 
-     const isObj = y(thresholds);
 
-     const mouse = isObj && thresholds.mouse || 0;
 
-     const touch = (isObj ? thresholds.touch : +thresholds) || 10;
 
-     return un(diffCoord(e)) > (isTouchEvent(e) ? touch : mouse);
 
-   }
 
-   function isSliderDirection(e) {
 
-     return un(diffCoord(e)) > un(diffCoord(e, true));
 
-   }
 
-   function computeVelocity(e) {
 
-     if (Splide2.is(LOOP) || !exceeded) {
 
-       const time = diffTime(e);
 
-       if (time && time < LOG_INTERVAL) {
 
-         return diffCoord(e) / time;
 
-       }
 
-     }
 
-     return 0;
 
-   }
 
-   function computeDestination(velocity) {
 
-     return getPosition() + In(velocity) * E(
 
-       un(velocity) * (options.flickPower || 600),
 
-       isFree ? Infinity : Components2.Layout.listSize() * (options.flickMaxPages || 1)
 
-     );
 
-   }
 
-   function diffCoord(e, orthogonal) {
 
-     return coordOf(e, orthogonal) - coordOf(getBaseEvent(e), orthogonal);
 
-   }
 
-   function diffTime(e) {
 
-     return Bn(e) - Bn(getBaseEvent(e));
 
-   }
 
-   function getBaseEvent(e) {
 
-     return baseEvent === e && prevBaseEvent || baseEvent;
 
-   }
 
-   function coordOf(e, orthogonal) {
 
-     return (isTouchEvent(e) ? e.changedTouches[0] : e)[`page${resolve(orthogonal ? "Y" : "X")}`];
 
-   }
 
-   function constrain(diff) {
 
-     return diff / (exceeded && Splide2.is(SLIDE) ? FRICTION : 1);
 
-   }
 
-   function isDraggable(target2) {
 
-     const { noDrag } = options;
 
-     return !W(target2, `.${CLASS_PAGINATION_PAGE}, .${CLASS_ARROW}`) && (!noDrag || !W(target2, noDrag));
 
-   }
 
-   function isTouchEvent(e) {
 
-     return typeof TouchEvent !== "undefined" && e instanceof TouchEvent;
 
-   }
 
-   function isDragging() {
 
-     return dragging;
 
-   }
 
-   function disable(value) {
 
-     disabled = value;
 
-   }
 
-   return {
 
-     mount,
 
-     disable,
 
-     isDragging
 
-   };
 
- }
 
- const KEYBOARD_EVENT = "keydown";
 
- function Keyboard(Splide2, Components2, options, event) {
 
-   const { on, bind, destroy } = event;
 
-   const { root } = Splide2;
 
-   const { resolve } = Components2.Direction;
 
-   let target;
 
-   let disabled;
 
-   function mount() {
 
-     init();
 
-     on(EVENT_UPDATED, destroy);
 
-     on(EVENT_UPDATED, init);
 
-     on(EVENT_MOVE, onMove);
 
-   }
 
-   function init() {
 
-     const { keyboard } = options;
 
-     if (keyboard) {
 
-       target = keyboard === "global" ? window : root;
 
-       bind(target, KEYBOARD_EVENT, onKeydown);
 
-     }
 
-   }
 
-   function disable(value) {
 
-     disabled = value;
 
-   }
 
-   function onMove() {
 
-     const _disabled = disabled;
 
-     disabled = true;
 
-     dn(() => {
 
-       disabled = _disabled;
 
-     });
 
-   }
 
-   function onKeydown(e) {
 
-     if (!disabled) {
 
-       if (e.key === resolve(ARROW_LEFT)) {
 
-         Splide2.go("<");
 
-       } else if (e.key === resolve(ARROW_RIGHT)) {
 
-         Splide2.go(">");
 
-       }
 
-     }
 
-   }
 
-   return {
 
-     mount,
 
-     destroy,
 
-     disable
 
-   };
 
- }
 
- const SRC_DATA_ATTRIBUTE = `${DATA_ATTRIBUTE}-lazy`;
 
- const SRCSET_DATA_ATTRIBUTE = `${SRC_DATA_ATTRIBUTE}-srcset`;
 
- const IMAGE_SELECTOR = `[${SRC_DATA_ATTRIBUTE}], [${SRCSET_DATA_ATTRIBUTE}]`;
 
- function LazyLoad(Splide2, Components2, options, event) {
 
-   const { on, off, bind, emit } = event;
 
-   const isSequential = options.lazyLoad === "sequential";
 
-   const events = [EVENT_MOVED, EVENT_SCROLLED];
 
-   let entries = [];
 
-   function mount() {
 
-     if (options.lazyLoad) {
 
-       init();
 
-       on(EVENT_REFRESH, init);
 
-     }
 
-   }
 
-   function init() {
 
-     N(entries);
 
-     register();
 
-     if (isSequential) {
 
-       loadNext();
 
-     } else {
 
-       off(events);
 
-       on(events, check);
 
-       check();
 
-     }
 
-   }
 
-   function register() {
 
-     Components2.Slides.forEach((Slide) => {
 
-       Tn(Slide.slide, IMAGE_SELECTOR).forEach((img) => {
 
-         const src = wn(img, SRC_DATA_ATTRIBUTE);
 
-         const srcset = wn(img, SRCSET_DATA_ATTRIBUTE);
 
-         if (src !== img.src || srcset !== img.srcset) {
 
-           const className = options.classes.spinner;
 
-           const parent = img.parentElement;
 
-           const spinner = Y(parent, `.${className}`) || j("span", className, parent);
 
-           entries.push([img, Slide, spinner]);
 
-           img.src || An(img, "none");
 
-         }
 
-       });
 
-     });
 
-   }
 
-   function check() {
 
-     entries = entries.filter((data) => {
 
-       const distance = options.perPage * ((options.preloadPages || 1) + 1) - 1;
 
-       return data[1].isWithin(Splide2.index, distance) ? load(data) : true;
 
-     });
 
-     entries.length || off(events);
 
-   }
 
-   function load(data) {
 
-     const [img] = data;
 
-     J(data[1].slide, CLASS_LOADING);
 
-     bind(img, "load error", a(onLoad, data));
 
-     M(img, "src", wn(img, SRC_DATA_ATTRIBUTE));
 
-     M(img, "srcset", wn(img, SRCSET_DATA_ATTRIBUTE));
 
-     U(img, SRC_DATA_ATTRIBUTE);
 
-     U(img, SRCSET_DATA_ATTRIBUTE);
 
-   }
 
-   function onLoad(data, e) {
 
-     const [img, Slide] = data;
 
-     Pn(Slide.slide, CLASS_LOADING);
 
-     if (e.type !== "error") {
 
-       en(data[2]);
 
-       An(img, "");
 
-       emit(EVENT_LAZYLOAD_LOADED, img, Slide);
 
-       emit(EVENT_RESIZE);
 
-     }
 
-     isSequential && loadNext();
 
-   }
 
-   function loadNext() {
 
-     entries.length && load(entries.shift());
 
-   }
 
-   return {
 
-     mount,
 
-     destroy: a(N, entries),
 
-     check
 
-   };
 
- }
 
- function Pagination(Splide2, Components2, options, event) {
 
-   const { on, emit, bind } = event;
 
-   const { Slides, Elements, Controller } = Components2;
 
-   const { hasFocus, getIndex, go } = Controller;
 
-   const { resolve } = Components2.Direction;
 
-   const { pagination: placeholder } = Elements;
 
-   const items = [];
 
-   let list;
 
-   let paginationClasses;
 
-   function mount() {
 
-     destroy();
 
-     on([EVENT_UPDATED, EVENT_REFRESH, EVENT_END_INDEX_CHANGED], mount);
 
-     const enabled = options.pagination;
 
-     placeholder && An(placeholder, enabled ? "" : "none");
 
-     if (enabled) {
 
-       on([EVENT_MOVE, EVENT_SCROLL, EVENT_SCROLLED], update);
 
-       createPagination();
 
-       update();
 
-       emit(EVENT_PAGINATION_MOUNTED, { list, items }, getAt(Splide2.index));
 
-     }
 
-   }
 
-   function destroy() {
 
-     if (list) {
 
-       en(placeholder ? F(list.children) : list);
 
-       Pn(list, paginationClasses);
 
-       N(items);
 
-       list = null;
 
-     }
 
-     event.destroy();
 
-   }
 
-   function createPagination() {
 
-     const { length } = Splide2;
 
-     const { classes, i18n, perPage } = options;
 
-     const max = hasFocus() ? Controller.getEnd() + 1 : Fn(length / perPage);
 
-     list = placeholder || j("ul", classes.pagination, Elements.track.parentElement);
 
-     J(list, paginationClasses = `${CLASS_PAGINATION}--${getDirection()}`);
 
-     M(list, ROLE, "tablist");
 
-     M(list, ARIA_LABEL, i18n.select);
 
-     M(list, ARIA_ORIENTATION, getDirection() === TTB ? "vertical" : "");
 
-     for (let i = 0; i < max; i++) {
 
-       const li = j("li", null, list);
 
-       const button = j("button", { class: classes.page, type: "button" }, li);
 
-       const controls = Slides.getIn(i).map((Slide) => Slide.slide.id);
 
-       const text = !hasFocus() && perPage > 1 ? i18n.pageX : i18n.slideX;
 
-       bind(button, "click", a(onClick, i));
 
-       if (options.paginationKeyboard) {
 
-         bind(button, "keydown", a(onKeydown, i));
 
-       }
 
-       M(li, ROLE, "presentation");
 
-       M(button, ROLE, "tab");
 
-       M(button, ARIA_CONTROLS, controls.join(" "));
 
-       M(button, ARIA_LABEL, Kn(text, i + 1));
 
-       M(button, TAB_INDEX, -1);
 
-       items.push({ li, button, page: i });
 
-     }
 
-   }
 
-   function onClick(page) {
 
-     go(`>${page}`, true);
 
-   }
 
-   function onKeydown(page, e) {
 
-     const { length } = items;
 
-     const { key } = e;
 
-     const dir = getDirection();
 
-     let nextPage = -1;
 
-     if (key === resolve(ARROW_RIGHT, false, dir)) {
 
-       nextPage = ++page % length;
 
-     } else if (key === resolve(ARROW_LEFT, false, dir)) {
 
-       nextPage = (--page + length) % length;
 
-     } else if (key === "Home") {
 
-       nextPage = 0;
 
-     } else if (key === "End") {
 
-       nextPage = length - 1;
 
-     }
 
-     const item = items[nextPage];
 
-     if (item) {
 
-       $n(item.button);
 
-       go(`>${nextPage}`);
 
-       Ln(e, true);
 
-     }
 
-   }
 
-   function getDirection() {
 
-     return options.paginationDirection || options.direction;
 
-   }
 
-   function getAt(index) {
 
-     return items[Controller.toPage(index)];
 
-   }
 
-   function update() {
 
-     const prev = getAt(getIndex(true));
 
-     const curr = getAt(getIndex());
 
-     if (prev) {
 
-       const { button } = prev;
 
-       Pn(button, CLASS_ACTIVE);
 
-       U(button, ARIA_SELECTED);
 
-       M(button, TAB_INDEX, -1);
 
-     }
 
-     if (curr) {
 
-       const { button } = curr;
 
-       J(button, CLASS_ACTIVE);
 
-       M(button, ARIA_SELECTED, true);
 
-       M(button, TAB_INDEX, "");
 
-     }
 
-     emit(EVENT_PAGINATION_UPDATED, { list, items }, prev, curr);
 
-   }
 
-   return {
 
-     items,
 
-     mount,
 
-     destroy,
 
-     getAt,
 
-     update
 
-   };
 
- }
 
- const TRIGGER_KEYS = [" ", "Enter"];
 
- function Sync(Splide2, Components2, options, event) {
 
-   const { isNavigation, slideFocus } = options;
 
-   const events = [];
 
-   function mount() {
 
-     Splide2.splides.forEach((target) => {
 
-       if (!target.isParent) {
 
-         sync(Splide2, target.splide);
 
-         sync(target.splide, Splide2);
 
-       }
 
-     });
 
-     if (isNavigation) {
 
-       navigate();
 
-     }
 
-   }
 
-   function destroy() {
 
-     events.forEach((event2) => {
 
-       event2.destroy();
 
-     });
 
-     N(events);
 
-   }
 
-   function remount() {
 
-     destroy();
 
-     mount();
 
-   }
 
-   function sync(splide, target) {
 
-     const event2 = splide.event.create();
 
-     event2.on(EVENT_MOVE, (index, prev, dest) => {
 
-       target.go(target.is(LOOP) ? dest : index);
 
-     });
 
-     events.push(event2);
 
-   }
 
-   function navigate() {
 
-     const ev = event.create();
 
-     const { on } = ev;
 
-     on(EVENT_CLICK, onClick);
 
-     on(EVENT_SLIDE_KEYDOWN, onKeydown);
 
-     on([EVENT_MOUNTED, EVENT_UPDATED], update);
 
-     events.push(ev);
 
-     ev.emit(EVENT_NAVIGATION_MOUNTED, Splide2.splides);
 
-   }
 
-   function update() {
 
-     M(
 
-       Components2.Elements.list,
 
-       ARIA_ORIENTATION,
 
-       options.direction === TTB ? "vertical" : ""
 
-     );
 
-   }
 
-   function onClick(Slide) {
 
-     Splide2.go(Slide.index);
 
-   }
 
-   function onKeydown(Slide, e) {
 
-     if (G(TRIGGER_KEYS, e.key)) {
 
-       onClick(Slide);
 
-       Ln(e);
 
-     }
 
-   }
 
-   return {
 
-     setup: a(
 
-       Components2.Media.set,
 
-       { slideFocus: Z(slideFocus) ? isNavigation : slideFocus },
 
-       true
 
-     ),
 
-     mount,
 
-     destroy,
 
-     remount
 
-   };
 
- }
 
- function Wheel(Splide2, Components2, options, event) {
 
-   let lastTime = 0;
 
-   function mount() {
 
-     if (options.wheel) {
 
-       event.bind(Components2.Elements.track, "wheel", onWheel, SCROLL_LISTENER_OPTIONS);
 
-     }
 
-   }
 
-   function onWheel(e) {
 
-     if (e.cancelable) {
 
-       const { deltaY } = e;
 
-       const backwards = deltaY < 0;
 
-       const timeStamp = Bn(e);
 
-       const min = options.wheelMinThreshold || 0;
 
-       const sleep = options.wheelSleep || 0;
 
-       if (un(deltaY) > min && timeStamp - lastTime > sleep) {
 
-         Splide2.go(backwards ? "<" : ">");
 
-         lastTime = timeStamp;
 
-       }
 
-       shouldPrevent(backwards) && Ln(e);
 
-     }
 
-   }
 
-   function shouldPrevent(backwards) {
 
-     return !options.releaseWheel || Splide2.state.is(MOVING) || Components2.Controller.getAdjacent(backwards) !== -1;
 
-   }
 
-   return {
 
-     mount
 
-   };
 
- }
 
- const SR_REMOVAL_DELAY = 90;
 
- function Live(Splide2, Components2, options, event) {
 
-   const { on } = event;
 
-   const { track } = Components2.Elements;
 
-   const enabled = options.live && !options.isNavigation;
 
-   const sr = j("span", CLASS_SR);
 
-   const interval = sn(SR_REMOVAL_DELAY, a(toggle, false));
 
-   function mount() {
 
-     if (enabled) {
 
-       disable(!Components2.Autoplay.isPaused());
 
-       M(track, ARIA_ATOMIC, true);
 
-       sr.textContent = "\u2026";
 
-       sr.style.cssText = "border: 0; clip: rect(0,0,0,0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px";
 
-       on(EVENT_AUTOPLAY_PLAY, a(disable, true));
 
-       on(EVENT_AUTOPLAY_PAUSE, a(disable, false));
 
-       on([EVENT_MOVED, EVENT_SCROLLED], a(toggle, true));
 
-     }
 
-   }
 
-   function toggle(active) {
 
-     M(track, ARIA_BUSY, active);
 
-     if (active) {
 
-       Q(track, sr);
 
-       interval.start();
 
-     } else {
 
-       interval.cancel();
 
-     }
 
-   }
 
-   function destroy() {
 
-     U(track, [ARIA_LIVE, ARIA_ATOMIC, ARIA_BUSY]);
 
-     en(sr);
 
-   }
 
-   function disable(disabled) {
 
-     if (enabled) {
 
-       M(track, ARIA_LIVE, disabled ? "off" : "polite");
 
-     }
 
-   }
 
-   return {
 
-     mount,
 
-     disable,
 
-     destroy
 
-   };
 
- }
 
- var ComponentConstructors = /*#__PURE__*/Object.freeze({
 
-   __proto__: null,
 
-   Media: Media,
 
-   Direction: Direction,
 
-   Elements: Elements,
 
-   Slides: Slides,
 
-   Layout: Layout,
 
-   Clones: Clones,
 
-   Move: Move,
 
-   Controller: Controller,
 
-   Arrows: Arrows,
 
-   Autoplay: Autoplay,
 
-   Scroll: Scroll,
 
-   Drag: Drag,
 
-   Keyboard: Keyboard,
 
-   LazyLoad: LazyLoad,
 
-   Pagination: Pagination,
 
-   Sync: Sync,
 
-   Wheel: Wheel,
 
-   Live: Live
 
- });
 
- const I18N = {
 
-   prev: "Previous slide",
 
-   next: "Next slide",
 
-   first: "Go to first slide",
 
-   last: "Go to last slide",
 
-   slideX: "Go to slide %s",
 
-   pageX: "Go to page %s",
 
-   play: "Start autoplay",
 
-   pause: "Pause autoplay",
 
-   carousel: "carousel",
 
-   slide: "slide",
 
-   select: "Select a slide to show",
 
-   slideLabel: "%s of %s"
 
- };
 
- const DEFAULTS = {
 
-   type: "slide",
 
-   role: "region",
 
-   speed: 400,
 
-   perPage: 1,
 
-   cloneStatus: true,
 
-   arrows: true,
 
-   pagination: true,
 
-   paginationKeyboard: true,
 
-   interval: 5e3,
 
-   pauseOnHover: true,
 
-   pauseOnFocus: true,
 
-   resetProgress: true,
 
-   easing: "cubic-bezier(0.25, 1, 0.5, 1)",
 
-   drag: true,
 
-   direction: "ltr",
 
-   trimSpace: true,
 
-   focusableNodes: "a, button, textarea, input, select, iframe",
 
-   live: true,
 
-   classes: CLASSES,
 
-   i18n: I18N,
 
-   reducedMotion: {
 
-     speed: 0,
 
-     rewindSpeed: 0,
 
-     autoplay: "pause"
 
-   }
 
- };
 
- function Fade(Splide2, Components2, options, event) {
 
-   const { Slides } = Components2;
 
-   function mount() {
 
-     event.on([EVENT_MOUNTED, EVENT_REFRESH], init);
 
-   }
 
-   function init() {
 
-     Slides.forEach((Slide) => {
 
-       Slide.style("transform", `translateX(-${100 * Slide.index}%)`);
 
-     });
 
-   }
 
-   function start(index, done) {
 
-     Slides.style("transition", `opacity ${options.speed}ms ${options.easing}`);
 
-     dn(done);
 
-   }
 
-   return {
 
-     mount,
 
-     start,
 
-     cancel: an
 
-   };
 
- }
 
- function Slide(Splide2, Components2, options, event) {
 
-   const { Move, Controller, Scroll } = Components2;
 
-   const { list } = Components2.Elements;
 
-   const transition = a(nn, list, "transition");
 
-   let endCallback;
 
-   function mount() {
 
-     event.bind(list, "transitionend", (e) => {
 
-       if (e.target === list && endCallback) {
 
-         cancel();
 
-         endCallback();
 
-       }
 
-     });
 
-   }
 
-   function start(index, done) {
 
-     const destination = Move.toPosition(index, true);
 
-     const position = Move.getPosition();
 
-     const speed = getSpeed(index);
 
-     if (un(destination - position) >= 1 && speed >= 1) {
 
-       if (options.useScroll) {
 
-         Scroll.scroll(destination, speed, false, done);
 
-       } else {
 
-         transition(`transform ${speed}ms ${options.easing}`);
 
-         Move.translate(destination, true);
 
-         endCallback = done;
 
-       }
 
-     } else {
 
-       Move.jump(index);
 
-       done();
 
-     }
 
-   }
 
-   function cancel() {
 
-     transition("");
 
-     Scroll.cancel();
 
-   }
 
-   function getSpeed(index) {
 
-     const { rewindSpeed } = options;
 
-     if (Splide2.is(SLIDE) && rewindSpeed) {
 
-       const prev = Controller.getIndex(true);
 
-       const end = Controller.getEnd();
 
-       if (prev === 0 && index >= end || prev >= end && index === 0) {
 
-         return rewindSpeed;
 
-       }
 
-     }
 
-     return options.speed;
 
-   }
 
-   return {
 
-     mount,
 
-     start,
 
-     cancel
 
-   };
 
- }
 
- class Splide {
 
-   static defaults = {};
 
-   static STATES = STATES;
 
-   root;
 
-   event = fn();
 
-   Components = {};
 
-   state = Rn(CREATED);
 
-   splides = [];
 
-   _o = {};
 
-   _C;
 
-   _E = {};
 
-   _T;
 
-   constructor(target, options = {}) {
 
-     const root = p(target) ? On(document, target) : target;
 
-     assert(root, `${root} is invalid.`);
 
-     this.root = root;
 
-     options = k({
 
-       label: wn(root, ARIA_LABEL) || "",
 
-       labelledby: wn(root, ARIA_LABELLEDBY) || ""
 
-     }, DEFAULTS, Splide.defaults, options);
 
-     try {
 
-       k(options, JSON.parse(wn(root, DATA_ATTRIBUTE)));
 
-     } catch (e) {
 
-       assert(false, "Invalid JSON");
 
-     }
 
-     this._o = Object.create(k({}, options));
 
-   }
 
-   mount(Extensions = this._E, Transition = this._T) {
 
-     const { state, Components: Components2 } = this;
 
-     assert(state.is([CREATED, DESTROYED]), "Already mounted!");
 
-     state.set(CREATED);
 
-     this._C = Components2;
 
-     this._T = Transition || (this.is(FADE) ? Fade : Slide);
 
-     this._E = Extensions;
 
-     const Constructors = v({}, ComponentConstructors, this._E, { Transition: this._T });
 
-     L(Constructors, (Component, key) => {
 
-       const component = Component(this, Components2, this._o, this.event.create());
 
-       Components2[key] = component;
 
-       component.setup && component.setup();
 
-     });
 
-     L(Components2, (component) => {
 
-       component.mount && component.mount();
 
-     });
 
-     this.emit(EVENT_MOUNTED);
 
-     J(this.root, CLASS_INITIALIZED);
 
-     state.set(IDLE);
 
-     this.emit(EVENT_READY);
 
-     return this;
 
-   }
 
-   sync(splide) {
 
-     this.splides.push({ splide });
 
-     splide.splides.push({ splide: this, isParent: true });
 
-     if (this.state.is(IDLE)) {
 
-       this._C.Sync.remount();
 
-       splide.Components.Sync.remount();
 
-     }
 
-     return this;
 
-   }
 
-   go(control) {
 
-     this._C.Controller.go(control);
 
-     return this;
 
-   }
 
-   on(events, callback) {
 
-     this.event.on(events, callback);
 
-     return this;
 
-   }
 
-   off(events, callback) {
 
-     this.event.off(events, callback);
 
-     return this;
 
-   }
 
-   emit(event, ...args) {
 
-     this.event.emit(event, ...args);
 
-     return this;
 
-   }
 
-   add(slides, index) {
 
-     this._C.Slides.add(slides, index);
 
-     return this;
 
-   }
 
-   remove(matcher) {
 
-     this._C.Slides.remove(matcher);
 
-     return this;
 
-   }
 
-   is(type) {
 
-     return this._o.type === type;
 
-   }
 
-   refresh() {
 
-     this.emit(EVENT_REFRESH);
 
-     return this;
 
-   }
 
-   destroy(completely = true) {
 
-     const { event, state } = this;
 
-     if (state.is(CREATED)) {
 
-       this.on(EVENT_READY, this.destroy.bind(this, completely));
 
-     } else {
 
-       L(this._C, (component) => {
 
-         component.destroy && component.destroy(completely);
 
-       }, true);
 
-       event.emit(EVENT_DESTROY);
 
-       event.destroy();
 
-       completely && N(this.splides);
 
-       state.set(DESTROYED);
 
-     }
 
-     return this;
 
-   }
 
-   get options() {
 
-     return this._o;
 
-   }
 
-   set options(options) {
 
-     this._C.Media.set(options, true, true);
 
-   }
 
-   get length() {
 
-     return this._C.Slides.getLength(true);
 
-   }
 
-   get index() {
 
-     return this._C.Controller.getIndex();
 
-   }
 
- }
 
- const CLASS_RENDERED = "is-rendered";
 
- const RENDERER_DEFAULT_CONFIG = {
 
-   listTag: "ul",
 
-   slideTag: "li"
 
- };
 
- class Style {
 
-   styles = {};
 
-   id;
 
-   options;
 
-   constructor(id, options) {
 
-     this.id = id;
 
-     this.options = options;
 
-   }
 
-   rule(selector, prop, value, breakpoint) {
 
-     breakpoint = breakpoint || "default";
 
-     const selectors = this.styles[breakpoint] = this.styles[breakpoint] || {};
 
-     const styles = selectors[selector] = selectors[selector] || {};
 
-     styles[prop] = value;
 
-   }
 
-   build() {
 
-     let css = "";
 
-     if (this.styles.default) {
 
-       css += this.buildSelectors(this.styles.default);
 
-     }
 
-     Object.keys(this.styles).sort((n, m) => this.options.mediaQuery === "min" ? +n - +m : +m - +n).forEach((breakpoint) => {
 
-       if (breakpoint !== "default") {
 
-         css += `@media screen and (max-width: ${breakpoint}px) {`;
 
-         css += this.buildSelectors(this.styles[breakpoint]);
 
-         css += `}`;
 
-       }
 
-     });
 
-     return css;
 
-   }
 
-   buildSelectors(selectors) {
 
-     let css = "";
 
-     L(selectors, (styles, selector) => {
 
-       css += `${`#${this.id} ${selector}`.trim()} {`;
 
-       L(styles, (value, prop) => {
 
-         if (value || value === 0) {
 
-           css += `${prop}: ${value};`;
 
-         }
 
-       });
 
-       css += "}";
 
-     });
 
-     return css;
 
-   }
 
- }
 
- class SplideRenderer {
 
-   static clean(splide) {
 
-     const { on } = splide.event;
 
-     const { root } = splide;
 
-     const clones = Tn(root, `.${CLASS_CLONE}`);
 
-     on(EVENT_MOUNTED, () => {
 
-       en(Y(root, "style"));
 
-     });
 
-     en(clones);
 
-   }
 
-   contents;
 
-   slides = [];
 
-   Direction;
 
-   Style;
 
-   options = {};
 
-   config;
 
-   id;
 
-   breakpoints = [];
 
-   constructor(contents, options, config, defaults) {
 
-     k(DEFAULTS, defaults || {});
 
-     k(k(this.options, DEFAULTS), options || {});
 
-     this.contents = contents;
 
-     this.config = v({}, RENDERER_DEFAULT_CONFIG, config || {});
 
-     this.id = this.config.id || zn("splide");
 
-     this.Style = new Style(this.id, this.options);
 
-     this.Direction = Direction(null, null, this.options);
 
-     assert(this.contents.length, "Provide at least 1 content.");
 
-     this.init();
 
-   }
 
-   init() {
 
-     this.parseBreakpoints();
 
-     this.initSlides();
 
-     this.registerRootStyles();
 
-     this.registerTrackStyles();
 
-     this.registerSlideStyles();
 
-     this.registerListStyles();
 
-   }
 
-   initSlides() {
 
-     pn(this.slides, this.contents.map((content, index) => {
 
-       content = p(content) ? { html: content } : content;
 
-       content.styles = content.styles || {};
 
-       content.attrs = content.attrs || {};
 
-       this.cover(content);
 
-       const classes = `${this.options.classes.slide} ${index === 0 ? CLASS_ACTIVE : ""}`;
 
-       v(content.attrs, {
 
-         class: `${classes} ${content.attrs.class || ""}`.trim(),
 
-         style: this.buildStyles(content.styles)
 
-       });
 
-       return content;
 
-     }));
 
-     if (this.isLoop()) {
 
-       this.generateClones(this.slides);
 
-     }
 
-   }
 
-   registerRootStyles() {
 
-     this.breakpoints.forEach(([width, options]) => {
 
-       this.Style.rule(" ", "max-width", Nn(options.width), width);
 
-     });
 
-   }
 
-   registerTrackStyles() {
 
-     const { Style: Style2 } = this;
 
-     const selector = `.${CLASS_TRACK}`;
 
-     this.breakpoints.forEach(([width, options]) => {
 
-       Style2.rule(selector, this.resolve("paddingLeft"), this.cssPadding(options, false), width);
 
-       Style2.rule(selector, this.resolve("paddingRight"), this.cssPadding(options, true), width);
 
-       Style2.rule(selector, "height", this.cssTrackHeight(options), width);
 
-     });
 
-   }
 
-   registerListStyles() {
 
-     const { Style: Style2 } = this;
 
-     const selector = `.${CLASS_LIST}`;
 
-     this.breakpoints.forEach(([width, options]) => {
 
-       Style2.rule(selector, "transform", this.buildTranslate(options), width);
 
-       if (!this.cssSlideHeight(options)) {
 
-         Style2.rule(selector, "aspect-ratio", this.cssAspectRatio(options), width);
 
-       }
 
-     });
 
-   }
 
-   registerSlideStyles() {
 
-     const { Style: Style2 } = this;
 
-     const selector = `.${CLASS_SLIDE}`;
 
-     this.breakpoints.forEach(([width, options]) => {
 
-       Style2.rule(selector, "width", this.cssSlideWidth(options), width);
 
-       Style2.rule(selector, "height", this.cssSlideHeight(options) || "100%", width);
 
-       Style2.rule(selector, this.resolve("marginRight"), Nn(options.gap) || "0px", width);
 
-       Style2.rule(`${selector} > img`, "display", options.cover ? "none" : "inline", width);
 
-     });
 
-   }
 
-   buildTranslate(options) {
 
-     const { resolve, orient } = this.Direction;
 
-     const values = [];
 
-     values.push(this.cssOffsetClones(options));
 
-     values.push(this.cssOffsetGaps(options));
 
-     if (this.isCenter(options)) {
 
-       values.push(this.buildCssValue(orient(-50), "%"));
 
-       values.push(...this.cssOffsetCenter(options));
 
-     }
 
-     return values.filter(Boolean).map((value) => `translate${resolve("X")}(${value})`).join(" ");
 
-   }
 
-   cssOffsetClones(options) {
 
-     const { resolve, orient } = this.Direction;
 
-     const cloneCount = this.getCloneCount();
 
-     if (this.isFixedWidth(options)) {
 
-       const { value, unit: unit2 } = this.parseCssValue(options[resolve("fixedWidth")]);
 
-       return this.buildCssValue(orient(value) * cloneCount, unit2);
 
-     }
 
-     const percent = 100 * cloneCount / options.perPage;
 
-     return `${orient(percent)}%`;
 
-   }
 
-   cssOffsetCenter(options) {
 
-     const { resolve, orient } = this.Direction;
 
-     if (this.isFixedWidth(options)) {
 
-       const { value, unit: unit2 } = this.parseCssValue(options[resolve("fixedWidth")]);
 
-       return [this.buildCssValue(orient(value / 2), unit2)];
 
-     }
 
-     const values = [];
 
-     const { perPage, gap } = options;
 
-     values.push(`${orient(50 / perPage)}%`);
 
-     if (gap) {
 
-       const { value, unit: unit2 } = this.parseCssValue(gap);
 
-       const gapOffset = (value / perPage - value) / 2;
 
-       values.push(this.buildCssValue(orient(gapOffset), unit2));
 
-     }
 
-     return values;
 
-   }
 
-   cssOffsetGaps(options) {
 
-     const cloneCount = this.getCloneCount();
 
-     if (cloneCount && options.gap) {
 
-       const { orient } = this.Direction;
 
-       const { value, unit: unit2 } = this.parseCssValue(options.gap);
 
-       if (this.isFixedWidth(options)) {
 
-         return this.buildCssValue(orient(value * cloneCount), unit2);
 
-       }
 
-       const { perPage } = options;
 
-       const gaps = cloneCount / perPage;
 
-       return this.buildCssValue(orient(gaps * value), unit2);
 
-     }
 
-     return "";
 
-   }
 
-   resolve(prop) {
 
-     return Hn(this.Direction.resolve(prop));
 
-   }
 
-   cssPadding(options, right) {
 
-     const { padding } = options;
 
-     const prop = this.Direction.resolve(right ? "right" : "left", true);
 
-     return padding && Nn(padding[prop] || (y(padding) ? 0 : padding)) || "0px";
 
-   }
 
-   cssTrackHeight(options) {
 
-     let height = "";
 
-     if (this.isVertical()) {
 
-       height = this.cssHeight(options);
 
-       assert(height, '"height" is missing.');
 
-       height = `calc(${height} - ${this.cssPadding(options, false)} - ${this.cssPadding(options, true)})`;
 
-     }
 
-     return height;
 
-   }
 
-   cssHeight(options) {
 
-     return Nn(options.height);
 
-   }
 
-   cssSlideWidth(options) {
 
-     return options.autoWidth ? "" : Nn(options.fixedWidth) || (this.isVertical() ? "" : this.cssSlideSize(options));
 
-   }
 
-   cssSlideHeight(options) {
 
-     return Nn(options.fixedHeight) || (this.isVertical() ? options.autoHeight ? "" : this.cssSlideSize(options) : this.cssHeight(options));
 
-   }
 
-   cssSlideSize(options) {
 
-     const gap = Nn(options.gap);
 
-     return `calc((100%${gap && ` + ${gap}`})/${options.perPage || 1}${gap && ` - ${gap}`})`;
 
-   }
 
-   cssAspectRatio(options) {
 
-     const { heightRatio } = options;
 
-     return heightRatio ? `${1 / heightRatio}` : "";
 
-   }
 
-   buildCssValue(value, unit2) {
 
-     return `${value}${unit2}`;
 
-   }
 
-   parseCssValue(value) {
 
-     if (p(value)) {
 
-       const number = parseFloat(value) || 0;
 
-       const unit2 = value.replace(/\d*(\.\d*)?/, "") || "px";
 
-       return { value: number, unit: unit2 };
 
-     }
 
-     return { value, unit: "px" };
 
-   }
 
-   parseBreakpoints() {
 
-     const { breakpoints } = this.options;
 
-     this.breakpoints.push(["default", this.options]);
 
-     if (breakpoints) {
 
-       L(breakpoints, (options, width) => {
 
-         this.breakpoints.push([width, k(k({}, this.options), options)]);
 
-       });
 
-     }
 
-   }
 
-   isFixedWidth(options) {
 
-     return !!options[this.Direction.resolve("fixedWidth")];
 
-   }
 
-   isLoop() {
 
-     return this.options.type === LOOP;
 
-   }
 
-   isCenter(options) {
 
-     if (options.focus === "center") {
 
-       if (this.isLoop()) {
 
-         return true;
 
-       }
 
-       if (this.options.type === SLIDE) {
 
-         return !this.options.trimSpace;
 
-       }
 
-     }
 
-     return false;
 
-   }
 
-   isVertical() {
 
-     return this.options.direction === TTB;
 
-   }
 
-   buildClasses() {
 
-     const { options } = this;
 
-     return [
 
-       CLASS_ROOT,
 
-       `${CLASS_ROOT}--${options.type}`,
 
-       `${CLASS_ROOT}--${options.direction}`,
 
-       options.drag && `${CLASS_ROOT}--draggable`,
 
-       options.isNavigation && `${CLASS_ROOT}--nav`,
 
-       CLASS_ACTIVE,
 
-       !this.config.hidden && CLASS_RENDERED
 
-     ].filter(Boolean).join(" ");
 
-   }
 
-   buildAttrs(attrs) {
 
-     let attr = "";
 
-     L(attrs, (value, key) => {
 
-       attr += value ? ` ${Hn(key)}="${value}"` : "";
 
-     });
 
-     return attr.trim();
 
-   }
 
-   buildStyles(styles) {
 
-     let style = "";
 
-     L(styles, (value, key) => {
 
-       style += ` ${Hn(key)}:${value};`;
 
-     });
 
-     return style.trim();
 
-   }
 
-   renderSlides() {
 
-     const { slideTag: tag } = this.config;
 
-     return this.slides.map((content) => {
 
-       return `<${tag} ${this.buildAttrs(content.attrs)}>${content.html || ""}</${tag}>`;
 
-     }).join("");
 
-   }
 
-   cover(content) {
 
-     const { styles, html = "" } = content;
 
-     if (this.options.cover && !this.options.lazyLoad) {
 
-       const src = html.match(/<img.*?src\s*=\s*(['"])(.+?)\1.*?>/);
 
-       if (src && src[2]) {
 
-         styles.background = `center/cover no-repeat url('${src[2]}')`;
 
-       }
 
-     }
 
-   }
 
-   generateClones(contents) {
 
-     const { classes } = this.options;
 
-     const count = this.getCloneCount();
 
-     const slides = contents.slice();
 
-     while (slides.length < count) {
 
-       pn(slides, slides);
 
-     }
 
-     pn(slides.slice(-count).reverse(), slides.slice(0, count)).forEach((content, index) => {
 
-       const attrs = v({}, content.attrs, { class: `${content.attrs.class} ${classes.clone}` });
 
-       const clone = v({}, content, { attrs });
 
-       index < count ? contents.unshift(clone) : contents.push(clone);
 
-     });
 
-   }
 
-   getCloneCount() {
 
-     if (this.isLoop()) {
 
-       const { options } = this;
 
-       if (options.clones) {
 
-         return options.clones;
 
-       }
 
-       const perPage = $(...this.breakpoints.map(([, options2]) => options2.perPage));
 
-       return perPage * ((options.flickMaxPages || 1) + 1);
 
-     }
 
-     return 0;
 
-   }
 
-   renderArrows() {
 
-     let html = "";
 
-     html += `<div class="${this.options.classes.arrows}">`;
 
-     html += this.renderArrow(true);
 
-     html += this.renderArrow(false);
 
-     html += `</div>`;
 
-     return html;
 
-   }
 
-   renderArrow(prev) {
 
-     const { classes, i18n } = this.options;
 
-     const attrs = {
 
-       class: `${classes.arrow} ${prev ? classes.prev : classes.next}`,
 
-       type: "button",
 
-       ariaLabel: prev ? i18n.prev : i18n.next
 
-     };
 
-     return `<button ${this.buildAttrs(attrs)}><svg xmlns="${XML_NAME_SPACE}" viewBox="0 0 ${SIZE} ${SIZE}" width="${SIZE}" height="${SIZE}"><path d="${this.options.arrowPath || PATH}" /></svg></button>`;
 
-   }
 
-   html() {
 
-     const { rootClass, listTag, arrows, beforeTrack, afterTrack, slider, beforeSlider, afterSlider } = this.config;
 
-     let html = "";
 
-     html += `<div id="${this.id}" class="${this.buildClasses()} ${rootClass || ""}">`;
 
-     html += `<style>${this.Style.build()}</style>`;
 
-     if (slider) {
 
-       html += beforeSlider || "";
 
-       html += `<div class="splide__slider">`;
 
-     }
 
-     html += beforeTrack || "";
 
-     if (arrows) {
 
-       html += this.renderArrows();
 
-     }
 
-     html += `<div class="splide__track">`;
 
-     html += `<${listTag} class="splide__list">`;
 
-     html += this.renderSlides();
 
-     html += `</${listTag}>`;
 
-     html += `</div>`;
 
-     html += afterTrack || "";
 
-     if (slider) {
 
-       html += `</div>`;
 
-       html += afterSlider || "";
 
-     }
 
-     html += `</div>`;
 
-     return html;
 
-   }
 
- }
 
- exports.CLASSES = CLASSES;
 
- exports.CLASS_ACTIVE = CLASS_ACTIVE;
 
- exports.CLASS_ARROW = CLASS_ARROW;
 
- exports.CLASS_ARROWS = CLASS_ARROWS;
 
- exports.CLASS_ARROW_NEXT = CLASS_ARROW_NEXT;
 
- exports.CLASS_ARROW_PREV = CLASS_ARROW_PREV;
 
- exports.CLASS_CLONE = CLASS_CLONE;
 
- exports.CLASS_CONTAINER = CLASS_CONTAINER;
 
- exports.CLASS_FOCUS_IN = CLASS_FOCUS_IN;
 
- exports.CLASS_INITIALIZED = CLASS_INITIALIZED;
 
- exports.CLASS_LIST = CLASS_LIST;
 
- exports.CLASS_LOADING = CLASS_LOADING;
 
- exports.CLASS_NEXT = CLASS_NEXT;
 
- exports.CLASS_OVERFLOW = CLASS_OVERFLOW;
 
- exports.CLASS_PAGINATION = CLASS_PAGINATION;
 
- exports.CLASS_PAGINATION_PAGE = CLASS_PAGINATION_PAGE;
 
- exports.CLASS_PREV = CLASS_PREV;
 
- exports.CLASS_PROGRESS = CLASS_PROGRESS;
 
- exports.CLASS_PROGRESS_BAR = CLASS_PROGRESS_BAR;
 
- exports.CLASS_ROOT = CLASS_ROOT;
 
- exports.CLASS_SLIDE = CLASS_SLIDE;
 
- exports.CLASS_SPINNER = CLASS_SPINNER;
 
- exports.CLASS_SR = CLASS_SR;
 
- exports.CLASS_TOGGLE = CLASS_TOGGLE;
 
- exports.CLASS_TOGGLE_PAUSE = CLASS_TOGGLE_PAUSE;
 
- exports.CLASS_TOGGLE_PLAY = CLASS_TOGGLE_PLAY;
 
- exports.CLASS_TRACK = CLASS_TRACK;
 
- exports.CLASS_VISIBLE = CLASS_VISIBLE;
 
- exports.DEFAULTS = DEFAULTS;
 
- exports.EVENT_ACTIVE = EVENT_ACTIVE;
 
- exports.EVENT_ARROWS_MOUNTED = EVENT_ARROWS_MOUNTED;
 
- exports.EVENT_ARROWS_UPDATED = EVENT_ARROWS_UPDATED;
 
- exports.EVENT_AUTOPLAY_PAUSE = EVENT_AUTOPLAY_PAUSE;
 
- exports.EVENT_AUTOPLAY_PLAY = EVENT_AUTOPLAY_PLAY;
 
- exports.EVENT_AUTOPLAY_PLAYING = EVENT_AUTOPLAY_PLAYING;
 
- exports.EVENT_CLICK = EVENT_CLICK;
 
- exports.EVENT_DESTROY = EVENT_DESTROY;
 
- exports.EVENT_DRAG = EVENT_DRAG;
 
- exports.EVENT_DRAGGED = EVENT_DRAGGED;
 
- exports.EVENT_DRAGGING = EVENT_DRAGGING;
 
- exports.EVENT_END_INDEX_CHANGED = EVENT_END_INDEX_CHANGED;
 
- exports.EVENT_HIDDEN = EVENT_HIDDEN;
 
- exports.EVENT_INACTIVE = EVENT_INACTIVE;
 
- exports.EVENT_LAZYLOAD_LOADED = EVENT_LAZYLOAD_LOADED;
 
- exports.EVENT_MOUNTED = EVENT_MOUNTED;
 
- exports.EVENT_MOVE = EVENT_MOVE;
 
- exports.EVENT_MOVED = EVENT_MOVED;
 
- exports.EVENT_NAVIGATION_MOUNTED = EVENT_NAVIGATION_MOUNTED;
 
- exports.EVENT_OVERFLOW = EVENT_OVERFLOW;
 
- exports.EVENT_PAGINATION_MOUNTED = EVENT_PAGINATION_MOUNTED;
 
- exports.EVENT_PAGINATION_UPDATED = EVENT_PAGINATION_UPDATED;
 
- exports.EVENT_READY = EVENT_READY;
 
- exports.EVENT_REFRESH = EVENT_REFRESH;
 
- exports.EVENT_RESIZE = EVENT_RESIZE;
 
- exports.EVENT_RESIZED = EVENT_RESIZED;
 
- exports.EVENT_SCROLL = EVENT_SCROLL;
 
- exports.EVENT_SCROLLED = EVENT_SCROLLED;
 
- exports.EVENT_SHIFTED = EVENT_SHIFTED;
 
- exports.EVENT_SLIDE_KEYDOWN = EVENT_SLIDE_KEYDOWN;
 
- exports.EVENT_UPDATED = EVENT_UPDATED;
 
- exports.EVENT_VISIBLE = EVENT_VISIBLE;
 
- exports.FADE = FADE;
 
- exports.LOOP = LOOP;
 
- exports.LTR = LTR;
 
- exports.RTL = RTL;
 
- exports.SLIDE = SLIDE;
 
- exports.STATUS_CLASSES = STATUS_CLASSES;
 
- exports.Splide = Splide;
 
- exports.SplideRenderer = SplideRenderer;
 
- exports.TTB = TTB;
 
- exports["default"] = Splide;
 
 
  |