swiper-4.2.0.min.js 200 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561
  1. /**
  2. * Swiper 4.2.0
  3. * Most modern mobile touch slider and framework with hardware accelerated transitions
  4. * http://www.idangero.us/swiper/
  5. *
  6. * Copyright 2014-2018 Vladimir Kharlampidi
  7. *
  8. * Released under the MIT License
  9. *
  10. * Released on: March 16, 2018
  11. */
  12. !function(e, t) {
  13. "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : e.Swiper = t()
  14. }(this, function() {
  15. "use strict";
  16. var e = "undefined" == typeof document ? {
  17. body: {},
  18. addEventListener: function() {},
  19. removeEventListener: function() {},
  20. activeElement: {
  21. blur: function() {},
  22. nodeName: ""
  23. },
  24. querySelector: function() {
  25. return null
  26. },
  27. querySelectorAll: function() {
  28. return []
  29. },
  30. getElementById: function() {
  31. return null
  32. },
  33. createEvent: function() {
  34. return {
  35. initEvent: function() {}
  36. }
  37. },
  38. createElement: function() {
  39. return {
  40. children: [],
  41. childNodes: [],
  42. style: {},
  43. setAttribute: function() {},
  44. getElementsByTagName: function() {
  45. return []
  46. }
  47. }
  48. },
  49. location: {
  50. hash: ""
  51. }
  52. } : document
  53. , t = "undefined" == typeof window ? {
  54. document: e,
  55. navigator: {
  56. userAgent: ""
  57. },
  58. location: {},
  59. history: {},
  60. CustomEvent: function() {
  61. return this
  62. },
  63. addEventListener: function() {},
  64. removeEventListener: function() {},
  65. getComputedStyle: function() {
  66. return {
  67. getPropertyValue: function() {
  68. return ""
  69. }
  70. }
  71. },
  72. Image: function() {},
  73. Date: function() {},
  74. screen: {},
  75. setTimeout: function() {},
  76. clearTimeout: function() {}
  77. } : window
  78. , i = function(e) {
  79. for (var t = 0; t < e.length; t += 1)
  80. this[t] = e[t];
  81. return this.length = e.length,
  82. this
  83. };
  84. function s(s, a) {
  85. var r = []
  86. , n = 0;
  87. if (s && !a && s instanceof i)
  88. return s;
  89. if (s)
  90. if ("string" == typeof s) {
  91. var o, l, d = s.trim();
  92. if (d.indexOf("<") >= 0 && d.indexOf(">") >= 0) {
  93. var h = "div";
  94. for (0 === d.indexOf("<li") && (h = "ul"),
  95. 0 === d.indexOf("<tr") && (h = "tbody"),
  96. 0 !== d.indexOf("<td") && 0 !== d.indexOf("<th") || (h = "tr"),
  97. 0 === d.indexOf("<tbody") && (h = "table"),
  98. 0 === d.indexOf("<option") && (h = "select"),
  99. (l = e.createElement(h)).innerHTML = d,
  100. n = 0; n < l.childNodes.length; n += 1)
  101. r.push(l.childNodes[n])
  102. } else
  103. for (o = a || "#" !== s[0] || s.match(/[ .<>:~]/) ? (a || e).querySelectorAll(s.trim()) : [e.getElementById(s.trim().split("#")[1])],
  104. n = 0; n < o.length; n += 1)
  105. o[n] && r.push(o[n])
  106. } else if (s.nodeType || s === t || s === e)
  107. r.push(s);
  108. else if (s.length > 0 && s[0].nodeType)
  109. for (n = 0; n < s.length; n += 1)
  110. r.push(s[n]);
  111. return new i(r)
  112. }
  113. function a(e) {
  114. for (var t = [], i = 0; i < e.length; i += 1)
  115. -1 === t.indexOf(e[i]) && t.push(e[i]);
  116. return t
  117. }
  118. s.fn = i.prototype,
  119. s.Class = i,
  120. s.Dom7 = i;
  121. var r = {
  122. addClass: function(e) {
  123. if (void 0 === e)
  124. return this;
  125. for (var t = e.split(" "), i = 0; i < t.length; i += 1)
  126. for (var s = 0; s < this.length; s += 1)
  127. void 0 !== this[s].classList && this[s].classList.add(t[i]);
  128. return this
  129. },
  130. removeClass: function(e) {
  131. for (var t = e.split(" "), i = 0; i < t.length; i += 1)
  132. for (var s = 0; s < this.length; s += 1)
  133. void 0 !== this[s].classList && this[s].classList.remove(t[i]);
  134. return this
  135. },
  136. hasClass: function(e) {
  137. return !!this[0] && this[0].classList.contains(e)
  138. },
  139. toggleClass: function(e) {
  140. for (var t = e.split(" "), i = 0; i < t.length; i += 1)
  141. for (var s = 0; s < this.length; s += 1)
  142. void 0 !== this[s].classList && this[s].classList.toggle(t[i]);
  143. return this
  144. },
  145. attr: function(e, t) {
  146. var i = arguments;
  147. if (1 === arguments.length && "string" == typeof e)
  148. return this[0] ? this[0].getAttribute(e) : void 0;
  149. for (var s = 0; s < this.length; s += 1)
  150. if (2 === i.length)
  151. this[s].setAttribute(e, t);
  152. else
  153. for (var a in e)
  154. this[s][a] = e[a],
  155. this[s].setAttribute(a, e[a]);
  156. return this
  157. },
  158. removeAttr: function(e) {
  159. for (var t = 0; t < this.length; t += 1)
  160. this[t].removeAttribute(e);
  161. return this
  162. },
  163. data: function(e, t) {
  164. var i;
  165. if (void 0 !== t) {
  166. for (var s = 0; s < this.length; s += 1)
  167. (i = this[s]).dom7ElementDataStorage || (i.dom7ElementDataStorage = {}),
  168. i.dom7ElementDataStorage[e] = t;
  169. return this
  170. }
  171. if (i = this[0]) {
  172. if (i.dom7ElementDataStorage && e in i.dom7ElementDataStorage)
  173. return i.dom7ElementDataStorage[e];
  174. var a = i.getAttribute("data-" + e);
  175. return a || void 0
  176. }
  177. },
  178. transform: function(e) {
  179. for (var t = 0; t < this.length; t += 1) {
  180. var i = this[t].style;
  181. i.webkitTransform = e,
  182. i.transform = e
  183. }
  184. return this
  185. },
  186. transition: function(e) {
  187. "string" != typeof e && (e += "ms");
  188. for (var t = 0; t < this.length; t += 1) {
  189. var i = this[t].style;
  190. i.webkitTransitionDuration = e,
  191. i.transitionDuration = e
  192. }
  193. return this
  194. },
  195. on: function() {
  196. for (var e, t = [], i = arguments.length; i--; )
  197. t[i] = arguments[i];
  198. var a = t[0]
  199. , r = t[1]
  200. , n = t[2]
  201. , o = t[3];
  202. function l(e) {
  203. var t = e.target;
  204. if (t) {
  205. var i = e.target.dom7EventData || [];
  206. if (i.unshift(e),
  207. s(t).is(r))
  208. n.apply(t, i);
  209. else
  210. for (var a = s(t).parents(), o = 0; o < a.length; o += 1)
  211. s(a[o]).is(r) && n.apply(a[o], i)
  212. }
  213. }
  214. function d(e) {
  215. var t = e && e.target ? e.target.dom7EventData || [] : [];
  216. t.unshift(e),
  217. n.apply(this, t)
  218. }
  219. "function" == typeof t[1] && (a = (e = t)[0],
  220. n = e[1],
  221. o = e[2],
  222. r = void 0),
  223. o || (o = !1);
  224. for (var h, p = a.split(" "), c = 0; c < this.length; c += 1) {
  225. var u = this[c];
  226. if (r)
  227. for (h = 0; h < p.length; h += 1)
  228. u.dom7LiveListeners || (u.dom7LiveListeners = []),
  229. u.dom7LiveListeners.push({
  230. type: a,
  231. listener: n,
  232. proxyListener: l
  233. }),
  234. u.addEventListener(p[h], l, o);
  235. else
  236. for (h = 0; h < p.length; h += 1)
  237. u.dom7Listeners || (u.dom7Listeners = []),
  238. u.dom7Listeners.push({
  239. type: a,
  240. listener: n,
  241. proxyListener: d
  242. }),
  243. u.addEventListener(p[h], d, o)
  244. }
  245. return this
  246. },
  247. off: function() {
  248. for (var e, t = [], i = arguments.length; i--; )
  249. t[i] = arguments[i];
  250. var s = t[0]
  251. , a = t[1]
  252. , r = t[2]
  253. , n = t[3];
  254. "function" == typeof t[1] && (s = (e = t)[0],
  255. r = e[1],
  256. n = e[2],
  257. a = void 0),
  258. n || (n = !1);
  259. for (var o = s.split(" "), l = 0; l < o.length; l += 1)
  260. for (var d = 0; d < this.length; d += 1) {
  261. var h = this[d];
  262. if (a) {
  263. if (h.dom7LiveListeners)
  264. for (var p = 0; p < h.dom7LiveListeners.length; p += 1)
  265. r ? h.dom7LiveListeners[p].listener === r && h.removeEventListener(o[l], h.dom7LiveListeners[p].proxyListener, n) : h.dom7LiveListeners[p].type === o[l] && h.removeEventListener(o[l], h.dom7LiveListeners[p].proxyListener, n)
  266. } else if (h.dom7Listeners)
  267. for (var c = 0; c < h.dom7Listeners.length; c += 1)
  268. r ? h.dom7Listeners[c].listener === r && h.removeEventListener(o[l], h.dom7Listeners[c].proxyListener, n) : h.dom7Listeners[c].type === o[l] && h.removeEventListener(o[l], h.dom7Listeners[c].proxyListener, n)
  269. }
  270. return this
  271. },
  272. trigger: function() {
  273. for (var i = [], s = arguments.length; s--; )
  274. i[s] = arguments[s];
  275. for (var a = i[0].split(" "), r = i[1], n = 0; n < a.length; n += 1)
  276. for (var o = 0; o < this.length; o += 1) {
  277. var l = void 0;
  278. try {
  279. l = new t.CustomEvent(a[n],{
  280. detail: r,
  281. bubbles: !0,
  282. cancelable: !0
  283. })
  284. } catch (t) {
  285. (l = e.createEvent("Event")).initEvent(a[n], !0, !0),
  286. l.detail = r
  287. }
  288. this[o].dom7EventData = i.filter(function(e, t) {
  289. return t > 0
  290. }),
  291. this[o].dispatchEvent(l),
  292. this[o].dom7EventData = [],
  293. delete this[o].dom7EventData
  294. }
  295. return this
  296. },
  297. transitionEnd: function(e) {
  298. var t, i = ["webkitTransitionEnd", "transitionend"], s = this;
  299. function a(r) {
  300. if (r.target === this)
  301. for (e.call(this, r),
  302. t = 0; t < i.length; t += 1)
  303. s.off(i[t], a)
  304. }
  305. if (e)
  306. for (t = 0; t < i.length; t += 1)
  307. s.on(i[t], a);
  308. return this
  309. },
  310. outerWidth: function(e) {
  311. if (this.length > 0) {
  312. if (e) {
  313. var t = this.styles();
  314. return this[0].offsetWidth + parseFloat(t.getPropertyValue("margin-right")) + parseFloat(t.getPropertyValue("margin-left"))
  315. }
  316. return this[0].offsetWidth
  317. }
  318. return null
  319. },
  320. outerHeight: function(e) {
  321. if (this.length > 0) {
  322. if (e) {
  323. var t = this.styles();
  324. return this[0].offsetHeight + parseFloat(t.getPropertyValue("margin-top")) + parseFloat(t.getPropertyValue("margin-bottom"))
  325. }
  326. return this[0].offsetHeight
  327. }
  328. return null
  329. },
  330. offset: function() {
  331. if (this.length > 0) {
  332. var i = this[0]
  333. , s = i.getBoundingClientRect()
  334. , a = e.body
  335. , r = i.clientTop || a.clientTop || 0
  336. , n = i.clientLeft || a.clientLeft || 0
  337. , o = i === t ? t.scrollY : i.scrollTop
  338. , l = i === t ? t.scrollX : i.scrollLeft;
  339. return {
  340. top: s.top + o - r,
  341. left: s.left + l - n
  342. }
  343. }
  344. return null
  345. },
  346. css: function(e, i) {
  347. var s;
  348. if (1 === arguments.length) {
  349. if ("string" != typeof e) {
  350. for (s = 0; s < this.length; s += 1)
  351. for (var a in e)
  352. this[s].style[a] = e[a];
  353. return this
  354. }
  355. if (this[0])
  356. return t.getComputedStyle(this[0], null).getPropertyValue(e)
  357. }
  358. if (2 === arguments.length && "string" == typeof e) {
  359. for (s = 0; s < this.length; s += 1)
  360. this[s].style[e] = i;
  361. return this
  362. }
  363. return this
  364. },
  365. each: function(e) {
  366. if (!e)
  367. return this;
  368. for (var t = 0; t < this.length; t += 1)
  369. if (!1 === e.call(this[t], t, this[t]))
  370. return this;
  371. return this
  372. },
  373. html: function(e) {
  374. if (void 0 === e)
  375. return this[0] ? this[0].innerHTML : void 0;
  376. for (var t = 0; t < this.length; t += 1)
  377. this[t].innerHTML = e;
  378. return this
  379. },
  380. text: function(e) {
  381. if (void 0 === e)
  382. return this[0] ? this[0].textContent.trim() : null;
  383. for (var t = 0; t < this.length; t += 1)
  384. this[t].textContent = e;
  385. return this
  386. },
  387. is: function(a) {
  388. var r, n, o = this[0];
  389. if (!o || void 0 === a)
  390. return !1;
  391. if ("string" == typeof a) {
  392. if (o.matches)
  393. return o.matches(a);
  394. if (o.webkitMatchesSelector)
  395. return o.webkitMatchesSelector(a);
  396. if (o.msMatchesSelector)
  397. return o.msMatchesSelector(a);
  398. for (r = s(a),
  399. n = 0; n < r.length; n += 1)
  400. if (r[n] === o)
  401. return !0;
  402. return !1
  403. }
  404. if (a === e)
  405. return o === e;
  406. if (a === t)
  407. return o === t;
  408. if (a.nodeType || a instanceof i) {
  409. for (r = a.nodeType ? [a] : a,
  410. n = 0; n < r.length; n += 1)
  411. if (r[n] === o)
  412. return !0;
  413. return !1
  414. }
  415. return !1
  416. },
  417. index: function() {
  418. var e, t = this[0];
  419. if (t) {
  420. for (e = 0; null !== (t = t.previousSibling); )
  421. 1 === t.nodeType && (e += 1);
  422. return e
  423. }
  424. },
  425. eq: function(e) {
  426. if (void 0 === e)
  427. return this;
  428. var t, s = this.length;
  429. return new i(e > s - 1 ? [] : e < 0 ? (t = s + e) < 0 ? [] : [this[t]] : [this[e]])
  430. },
  431. append: function() {
  432. for (var t, s = [], a = arguments.length; a--; )
  433. s[a] = arguments[a];
  434. for (var r = 0; r < s.length; r += 1) {
  435. t = s[r];
  436. for (var n = 0; n < this.length; n += 1)
  437. if ("string" == typeof t) {
  438. var o = e.createElement("div");
  439. for (o.innerHTML = t; o.firstChild; )
  440. this[n].appendChild(o.firstChild)
  441. } else if (t instanceof i)
  442. for (var l = 0; l < t.length; l += 1)
  443. this[n].appendChild(t[l]);
  444. else
  445. this[n].appendChild(t)
  446. }
  447. return this
  448. },
  449. prepend: function(t) {
  450. var s, a;
  451. for (s = 0; s < this.length; s += 1)
  452. if ("string" == typeof t) {
  453. var r = e.createElement("div");
  454. for (r.innerHTML = t,
  455. a = r.childNodes.length - 1; a >= 0; a -= 1)
  456. this[s].insertBefore(r.childNodes[a], this[s].childNodes[0])
  457. } else if (t instanceof i)
  458. for (a = 0; a < t.length; a += 1)
  459. this[s].insertBefore(t[a], this[s].childNodes[0]);
  460. else
  461. this[s].insertBefore(t, this[s].childNodes[0]);
  462. return this
  463. },
  464. next: function(e) {
  465. return this.length > 0 ? e ? this[0].nextElementSibling && s(this[0].nextElementSibling).is(e) ? new i([this[0].nextElementSibling]) : new i([]) : this[0].nextElementSibling ? new i([this[0].nextElementSibling]) : new i([]) : new i([])
  466. },
  467. nextAll: function(e) {
  468. var t = []
  469. , a = this[0];
  470. if (!a)
  471. return new i([]);
  472. for (; a.nextElementSibling; ) {
  473. var r = a.nextElementSibling;
  474. e ? s(r).is(e) && t.push(r) : t.push(r),
  475. a = r
  476. }
  477. return new i(t)
  478. },
  479. prev: function(e) {
  480. if (this.length > 0) {
  481. var t = this[0];
  482. return e ? t.previousElementSibling && s(t.previousElementSibling).is(e) ? new i([t.previousElementSibling]) : new i([]) : t.previousElementSibling ? new i([t.previousElementSibling]) : new i([])
  483. }
  484. return new i([])
  485. },
  486. prevAll: function(e) {
  487. var t = []
  488. , a = this[0];
  489. if (!a)
  490. return new i([]);
  491. for (; a.previousElementSibling; ) {
  492. var r = a.previousElementSibling;
  493. e ? s(r).is(e) && t.push(r) : t.push(r),
  494. a = r
  495. }
  496. return new i(t)
  497. },
  498. parent: function(e) {
  499. for (var t = [], i = 0; i < this.length; i += 1)
  500. null !== this[i].parentNode && (e ? s(this[i].parentNode).is(e) && t.push(this[i].parentNode) : t.push(this[i].parentNode));
  501. return s(a(t))
  502. },
  503. parents: function(e) {
  504. for (var t = [], i = 0; i < this.length; i += 1)
  505. for (var r = this[i].parentNode; r; )
  506. e ? s(r).is(e) && t.push(r) : t.push(r),
  507. r = r.parentNode;
  508. return s(a(t))
  509. },
  510. closest: function(e) {
  511. var t = this;
  512. return void 0 === e ? new i([]) : (t.is(e) || (t = t.parents(e).eq(0)),
  513. t)
  514. },
  515. find: function(e) {
  516. for (var t = [], s = 0; s < this.length; s += 1)
  517. for (var a = this[s].querySelectorAll(e), r = 0; r < a.length; r += 1)
  518. t.push(a[r]);
  519. return new i(t)
  520. },
  521. children: function(e) {
  522. for (var t = [], r = 0; r < this.length; r += 1)
  523. for (var n = this[r].childNodes, o = 0; o < n.length; o += 1)
  524. e ? 1 === n[o].nodeType && s(n[o]).is(e) && t.push(n[o]) : 1 === n[o].nodeType && t.push(n[o]);
  525. return new i(a(t))
  526. },
  527. remove: function() {
  528. for (var e = 0; e < this.length; e += 1)
  529. this[e].parentNode && this[e].parentNode.removeChild(this[e]);
  530. return this
  531. },
  532. add: function() {
  533. for (var e = [], t = arguments.length; t--; )
  534. e[t] = arguments[t];
  535. var i, a;
  536. for (i = 0; i < e.length; i += 1) {
  537. var r = s(e[i]);
  538. for (a = 0; a < r.length; a += 1)
  539. this[this.length] = r[a],
  540. this.length += 1
  541. }
  542. return this
  543. },
  544. styles: function() {
  545. return this[0] ? t.getComputedStyle(this[0], null) : {}
  546. }
  547. };
  548. Object.keys(r).forEach(function(e) {
  549. s.fn[e] = r[e]
  550. });
  551. var n, o, l, d = {
  552. deleteProps: function(e) {
  553. var t = e;
  554. Object.keys(t).forEach(function(e) {
  555. try {
  556. t[e] = null
  557. } catch (e) {}
  558. try {
  559. delete t[e]
  560. } catch (e) {}
  561. })
  562. },
  563. nextTick: function(e, t) {
  564. return void 0 === t && (t = 0),
  565. setTimeout(e, t)
  566. },
  567. now: function() {
  568. return Date.now()
  569. },
  570. getTranslate: function(e, i) {
  571. var s, a, r;
  572. void 0 === i && (i = "x");
  573. var n = t.getComputedStyle(e, null);
  574. return t.WebKitCSSMatrix ? ((a = n.transform || n.webkitTransform).split(",").length > 6 && (a = a.split(", ").map(function(e) {
  575. return e.replace(",", ".")
  576. }).join(", ")),
  577. r = new t.WebKitCSSMatrix("none" === a ? "" : a)) : s = (r = n.MozTransform || n.OTransform || n.MsTransform || n.msTransform || n.transform || n.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,")).toString().split(","),
  578. "x" === i && (a = t.WebKitCSSMatrix ? r.m41 : 16 === s.length ? parseFloat(s[12]) : parseFloat(s[4])),
  579. "y" === i && (a = t.WebKitCSSMatrix ? r.m42 : 16 === s.length ? parseFloat(s[13]) : parseFloat(s[5])),
  580. a || 0
  581. },
  582. parseUrlQuery: function(e) {
  583. var i, s, a, r, n = {}, o = e || t.location.href;
  584. if ("string" == typeof o && o.length)
  585. for (r = (s = (o = o.indexOf("?") > -1 ? o.replace(/\S*\?/, "") : "").split("&").filter(function(e) {
  586. return "" !== e
  587. })).length,
  588. i = 0; i < r; i += 1)
  589. a = s[i].replace(/#\S+/g, "").split("="),
  590. n[decodeURIComponent(a[0])] = void 0 === a[1] ? void 0 : decodeURIComponent(a[1]) || "";
  591. return n
  592. },
  593. isObject: function(e) {
  594. return "object" == typeof e && null !== e && e.constructor && e.constructor === Object
  595. },
  596. extend: function() {
  597. for (var e = [], t = arguments.length; t--; )
  598. e[t] = arguments[t];
  599. for (var i = Object(e[0]), s = 1; s < e.length; s += 1) {
  600. var a = e[s];
  601. if (void 0 !== a && null !== a)
  602. for (var r = Object.keys(Object(a)), n = 0, o = r.length; n < o; n += 1) {
  603. var l = r[n]
  604. , h = Object.getOwnPropertyDescriptor(a, l);
  605. void 0 !== h && h.enumerable && (d.isObject(i[l]) && d.isObject(a[l]) ? d.extend(i[l], a[l]) : !d.isObject(i[l]) && d.isObject(a[l]) ? (i[l] = {},
  606. d.extend(i[l], a[l])) : i[l] = a[l])
  607. }
  608. }
  609. return i
  610. }
  611. }, h = (l = e.createElement("div"),
  612. {
  613. touch: t.Modernizr && !0 === t.Modernizr.touch || !!("ontouchstart"in t || t.DocumentTouch && e instanceof t.DocumentTouch),
  614. pointerEvents: !(!t.navigator.pointerEnabled && !t.PointerEvent),
  615. prefixedPointerEvents: !!t.navigator.msPointerEnabled,
  616. transition: (o = l.style,
  617. "transition"in o || "webkitTransition"in o || "MozTransition"in o),
  618. transforms3d: t.Modernizr && !0 === t.Modernizr.csstransforms3d || (n = l.style,
  619. "webkitPerspective"in n || "MozPerspective"in n || "OPerspective"in n || "MsPerspective"in n || "perspective"in n),
  620. flexbox: function() {
  621. for (var e = l.style, t = "alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "), i = 0; i < t.length; i += 1)
  622. if (t[i]in e)
  623. return !0;
  624. return !1
  625. }(),
  626. observer: "MutationObserver"in t || "WebkitMutationObserver"in t,
  627. passiveListener: function() {
  628. var e = !1;
  629. try {
  630. var i = Object.defineProperty({}, "passive", {
  631. get: function() {
  632. e = !0
  633. }
  634. });
  635. t.addEventListener("testPassiveListener", null, i)
  636. } catch (e) {}
  637. return e
  638. }(),
  639. gestures: "ongesturestart"in t
  640. }), p = function(e) {
  641. void 0 === e && (e = {});
  642. var t = this;
  643. t.params = e,
  644. t.eventsListeners = {},
  645. t.params && t.params.on && Object.keys(t.params.on).forEach(function(e) {
  646. t.on(e, t.params.on[e])
  647. })
  648. }, c = {
  649. components: {
  650. configurable: !0
  651. }
  652. };
  653. p.prototype.on = function(e, t, i) {
  654. var s = this;
  655. if ("function" != typeof t)
  656. return s;
  657. var a = i ? "unshift" : "push";
  658. return e.split(" ").forEach(function(e) {
  659. s.eventsListeners[e] || (s.eventsListeners[e] = []),
  660. s.eventsListeners[e][a](t)
  661. }),
  662. s
  663. }
  664. ,
  665. p.prototype.once = function(e, t, i) {
  666. var s = this;
  667. if ("function" != typeof t)
  668. return s;
  669. return s.on(e, function i() {
  670. for (var a = [], r = arguments.length; r--; )
  671. a[r] = arguments[r];
  672. t.apply(s, a),
  673. s.off(e, i)
  674. }, i)
  675. }
  676. ,
  677. p.prototype.off = function(e, t) {
  678. var i = this;
  679. return e.split(" ").forEach(function(e) {
  680. void 0 === t ? i.eventsListeners[e] = [] : i.eventsListeners[e].forEach(function(s, a) {
  681. s === t && i.eventsListeners[e].splice(a, 1)
  682. })
  683. }),
  684. i
  685. }
  686. ,
  687. p.prototype.emit = function() {
  688. for (var e = [], t = arguments.length; t--; )
  689. e[t] = arguments[t];
  690. var i, s, a, r = this;
  691. return r.eventsListeners ? ("string" == typeof e[0] || Array.isArray(e[0]) ? (i = e[0],
  692. s = e.slice(1, e.length),
  693. a = r) : (i = e[0].events,
  694. s = e[0].data,
  695. a = e[0].context || r),
  696. (Array.isArray(i) ? i : i.split(" ")).forEach(function(e) {
  697. if (r.eventsListeners[e]) {
  698. var t = [];
  699. r.eventsListeners[e].forEach(function(e) {
  700. t.push(e)
  701. }),
  702. t.forEach(function(e) {
  703. e.apply(a, s)
  704. })
  705. }
  706. }),
  707. r) : r
  708. }
  709. ,
  710. p.prototype.useModulesParams = function(e) {
  711. var t = this;
  712. t.modules && Object.keys(t.modules).forEach(function(i) {
  713. var s = t.modules[i];
  714. s.params && d.extend(e, s.params)
  715. })
  716. }
  717. ,
  718. p.prototype.useModules = function(e) {
  719. void 0 === e && (e = {});
  720. var t = this;
  721. t.modules && Object.keys(t.modules).forEach(function(i) {
  722. var s = t.modules[i]
  723. , a = e[i] || {};
  724. s.instance && Object.keys(s.instance).forEach(function(e) {
  725. var i = s.instance[e];
  726. t[e] = "function" == typeof i ? i.bind(t) : i
  727. }),
  728. s.on && t.on && Object.keys(s.on).forEach(function(e) {
  729. t.on(e, s.on[e])
  730. }),
  731. s.create && s.create.bind(t)(a)
  732. })
  733. }
  734. ,
  735. c.components.set = function(e) {
  736. this.use && this.use(e)
  737. }
  738. ,
  739. p.installModule = function(e) {
  740. for (var t = [], i = arguments.length - 1; i-- > 0; )
  741. t[i] = arguments[i + 1];
  742. var s = this;
  743. s.prototype.modules || (s.prototype.modules = {});
  744. var a = e.name || Object.keys(s.prototype.modules).length + "_" + d.now();
  745. return s.prototype.modules[a] = e,
  746. e.proto && Object.keys(e.proto).forEach(function(t) {
  747. s.prototype[t] = e.proto[t]
  748. }),
  749. e.static && Object.keys(e.static).forEach(function(t) {
  750. s[t] = e.static[t]
  751. }),
  752. e.install && e.install.apply(s, t),
  753. s
  754. }
  755. ,
  756. p.use = function(e) {
  757. for (var t = [], i = arguments.length - 1; i-- > 0; )
  758. t[i] = arguments[i + 1];
  759. var s = this;
  760. return Array.isArray(e) ? (e.forEach(function(e) {
  761. return s.installModule(e)
  762. }),
  763. s) : s.installModule.apply(s, [e].concat(t))
  764. }
  765. ,
  766. Object.defineProperties(p, c);
  767. var u = {
  768. updateSize: function() {
  769. var e, t, i = this.$el;
  770. e = void 0 !== this.params.width ? this.params.width : i[0].clientWidth,
  771. t = void 0 !== this.params.height ? this.params.height : i[0].clientHeight,
  772. 0 === e && this.isHorizontal() || 0 === t && this.isVertical() || (e = e - parseInt(i.css("padding-left"), 10) - parseInt(i.css("padding-right"), 10),
  773. t = t - parseInt(i.css("padding-top"), 10) - parseInt(i.css("padding-bottom"), 10),
  774. d.extend(this, {
  775. width: e,
  776. height: t,
  777. size: this.isHorizontal() ? e : t
  778. }))
  779. },
  780. updateSlides: function() {
  781. var e = this.params
  782. , i = this.$wrapperEl
  783. , s = this.size
  784. , a = this.rtlTranslate
  785. , r = this.wrongRTL
  786. , n = i.children("." + this.params.slideClass)
  787. , o = this.virtual && e.virtual.enabled ? this.virtual.slides.length : n.length
  788. , l = []
  789. , p = []
  790. , c = []
  791. , u = e.slidesOffsetBefore;
  792. "function" == typeof u && (u = e.slidesOffsetBefore.call(this));
  793. var v = e.slidesOffsetAfter;
  794. "function" == typeof v && (v = e.slidesOffsetAfter.call(this));
  795. var f = o
  796. , m = this.snapGrid.length
  797. , g = this.snapGrid.length
  798. , b = e.spaceBetween
  799. , w = -u
  800. , y = 0
  801. , x = 0;
  802. if (void 0 !== s) {
  803. var E, T;
  804. "string" == typeof b && b.indexOf("%") >= 0 && (b = parseFloat(b.replace("%", "")) / 100 * s),
  805. this.virtualSize = -b,
  806. a ? n.css({
  807. marginLeft: "",
  808. marginTop: ""
  809. }) : n.css({
  810. marginRight: "",
  811. marginBottom: ""
  812. }),
  813. e.slidesPerColumn > 1 && (E = Math.floor(o / e.slidesPerColumn) === o / this.params.slidesPerColumn ? o : Math.ceil(o / e.slidesPerColumn) * e.slidesPerColumn,
  814. "auto" !== e.slidesPerView && "row" === e.slidesPerColumnFill && (E = Math.max(E, e.slidesPerView * e.slidesPerColumn)));
  815. for (var S, C = e.slidesPerColumn, M = E / C, z = M - (e.slidesPerColumn * M - o), P = 0; P < o; P += 1) {
  816. T = 0;
  817. var k = n.eq(P);
  818. if (e.slidesPerColumn > 1) {
  819. var $ = void 0
  820. , L = void 0
  821. , I = void 0;
  822. "column" === e.slidesPerColumnFill ? (I = P - (L = Math.floor(P / C)) * C,
  823. (L > z || L === z && I === C - 1) && (I += 1) >= C && (I = 0,
  824. L += 1),
  825. $ = L + I * E / C,
  826. k.css({
  827. "-webkit-box-ordinal-group": $,
  828. "-moz-box-ordinal-group": $,
  829. "-ms-flex-order": $,
  830. "-webkit-order": $,
  831. order: $
  832. })) : L = P - (I = Math.floor(P / M)) * M,
  833. k.css("margin-" + (this.isHorizontal() ? "top" : "left"), 0 !== I && e.spaceBetween && e.spaceBetween + "px").attr("data-swiper-column", L).attr("data-swiper-row", I)
  834. }
  835. if ("none" !== k.css("display")) {
  836. if ("auto" === e.slidesPerView) {
  837. var D = t.getComputedStyle(k[0], null);
  838. T = this.isHorizontal() ? k[0].getBoundingClientRect().width + parseFloat(D.getPropertyValue("margin-left")) + parseFloat(D.getPropertyValue("margin-right")) : k[0].getBoundingClientRect().height + parseFloat(D.getPropertyValue("margin-top")) + parseFloat(D.getPropertyValue("margin-bottom")),
  839. e.roundLengths && (T = Math.floor(T))
  840. } else
  841. T = (s - (e.slidesPerView - 1) * b) / e.slidesPerView,
  842. e.roundLengths && (T = Math.floor(T)),
  843. n[P] && (this.isHorizontal() ? n[P].style.width = T + "px" : n[P].style.height = T + "px");
  844. n[P] && (n[P].swiperSlideSize = T),
  845. c.push(T),
  846. e.centeredSlides ? (w = w + T / 2 + y / 2 + b,
  847. 0 === y && 0 !== P && (w = w - s / 2 - b),
  848. 0 === P && (w = w - s / 2 - b),
  849. Math.abs(w) < .001 && (w = 0),
  850. x % e.slidesPerGroup == 0 && l.push(w),
  851. p.push(w)) : (x % e.slidesPerGroup == 0 && l.push(w),
  852. p.push(w),
  853. w = w + T + b),
  854. this.virtualSize += T + b,
  855. y = T,
  856. x += 1
  857. }
  858. }
  859. if (this.virtualSize = Math.max(this.virtualSize, s) + v,
  860. a && r && ("slide" === e.effect || "coverflow" === e.effect) && i.css({
  861. width: this.virtualSize + e.spaceBetween + "px"
  862. }),
  863. h.flexbox && !e.setWrapperSize || (this.isHorizontal() ? i.css({
  864. width: this.virtualSize + e.spaceBetween + "px"
  865. }) : i.css({
  866. height: this.virtualSize + e.spaceBetween + "px"
  867. })),
  868. e.slidesPerColumn > 1 && (this.virtualSize = (T + e.spaceBetween) * E,
  869. this.virtualSize = Math.ceil(this.virtualSize / e.slidesPerColumn) - e.spaceBetween,
  870. this.isHorizontal() ? i.css({
  871. width: this.virtualSize + e.spaceBetween + "px"
  872. }) : i.css({
  873. height: this.virtualSize + e.spaceBetween + "px"
  874. }),
  875. e.centeredSlides)) {
  876. S = [];
  877. for (var O = 0; O < l.length; O += 1)
  878. l[O] < this.virtualSize + l[0] && S.push(l[O]);
  879. l = S
  880. }
  881. if (!e.centeredSlides) {
  882. S = [];
  883. for (var A = 0; A < l.length; A += 1)
  884. l[A] <= this.virtualSize - s && S.push(l[A]);
  885. l = S,
  886. Math.floor(this.virtualSize - s) - Math.floor(l[l.length - 1]) > 1 && l.push(this.virtualSize - s)
  887. }
  888. 0 === l.length && (l = [0]),
  889. 0 !== e.spaceBetween && (this.isHorizontal() ? a ? n.css({
  890. marginLeft: b + "px"
  891. }) : n.css({
  892. marginRight: b + "px"
  893. }) : n.css({
  894. marginBottom: b + "px"
  895. })),
  896. d.extend(this, {
  897. slides: n,
  898. snapGrid: l,
  899. slidesGrid: p,
  900. slidesSizesGrid: c
  901. }),
  902. o !== f && this.emit("slidesLengthChange"),
  903. l.length !== m && (this.params.watchOverflow && this.checkOverflow(),
  904. this.emit("snapGridLengthChange")),
  905. p.length !== g && this.emit("slidesGridLengthChange"),
  906. (e.watchSlidesProgress || e.watchSlidesVisibility) && this.updateSlidesOffset()
  907. }
  908. },
  909. updateAutoHeight: function(e) {
  910. var t, i = [], s = 0;
  911. if ("number" == typeof e ? this.setTransition(e) : !0 === e && this.setTransition(this.params.speed),
  912. "auto" !== this.params.slidesPerView && this.params.slidesPerView > 1)
  913. for (t = 0; t < Math.ceil(this.params.slidesPerView); t += 1) {
  914. var a = this.activeIndex + t;
  915. if (a > this.slides.length)
  916. break;
  917. i.push(this.slides.eq(a)[0])
  918. }
  919. else
  920. i.push(this.slides.eq(this.activeIndex)[0]);
  921. for (t = 0; t < i.length; t += 1)
  922. if (void 0 !== i[t]) {
  923. var r = i[t].offsetHeight;
  924. s = r > s ? r : s
  925. }
  926. s && this.$wrapperEl.css("height", s + "px")
  927. },
  928. updateSlidesOffset: function() {
  929. for (var e = this.slides, t = 0; t < e.length; t += 1)
  930. e[t].swiperSlideOffset = this.isHorizontal() ? e[t].offsetLeft : e[t].offsetTop
  931. },
  932. updateSlidesProgress: function(e) {
  933. void 0 === e && (e = this.translate || 0);
  934. var t = this.params
  935. , i = this.slides
  936. , s = this.rtlTranslate;
  937. if (0 !== i.length) {
  938. void 0 === i[0].swiperSlideOffset && this.updateSlidesOffset();
  939. var a = -e;
  940. s && (a = e),
  941. i.removeClass(t.slideVisibleClass);
  942. for (var r = 0; r < i.length; r += 1) {
  943. var n = i[r]
  944. , o = (a + (t.centeredSlides ? this.minTranslate() : 0) - n.swiperSlideOffset) / (n.swiperSlideSize + t.spaceBetween);
  945. if (t.watchSlidesVisibility) {
  946. var l = -(a - n.swiperSlideOffset)
  947. , d = l + this.slidesSizesGrid[r];
  948. (l >= 0 && l < this.size || d > 0 && d <= this.size || l <= 0 && d >= this.size) && i.eq(r).addClass(t.slideVisibleClass)
  949. }
  950. n.progress = s ? -o : o
  951. }
  952. }
  953. },
  954. updateProgress: function(e) {
  955. void 0 === e && (e = this.translate || 0);
  956. var t = this.params
  957. , i = this.maxTranslate() - this.minTranslate()
  958. , s = this.progress
  959. , a = this.isBeginning
  960. , r = this.isEnd
  961. , n = a
  962. , o = r;
  963. 0 === i ? (s = 0,
  964. a = !0,
  965. r = !0) : (a = (s = (e - this.minTranslate()) / i) <= 0,
  966. r = s >= 1),
  967. d.extend(this, {
  968. progress: s,
  969. isBeginning: a,
  970. isEnd: r
  971. }),
  972. (t.watchSlidesProgress || t.watchSlidesVisibility) && this.updateSlidesProgress(e),
  973. a && !n && this.emit("reachBeginning toEdge"),
  974. r && !o && this.emit("reachEnd toEdge"),
  975. (n && !a || o && !r) && this.emit("fromEdge"),
  976. this.emit("progress", s)
  977. },
  978. updateSlidesClasses: function() {
  979. var e, t = this.slides, i = this.params, s = this.$wrapperEl, a = this.activeIndex, r = this.realIndex, n = this.virtual && i.virtual.enabled;
  980. t.removeClass(i.slideActiveClass + " " + i.slideNextClass + " " + i.slidePrevClass + " " + i.slideDuplicateActiveClass + " " + i.slideDuplicateNextClass + " " + i.slideDuplicatePrevClass),
  981. (e = n ? this.$wrapperEl.find("." + i.slideClass + '[data-swiper-slide-index="' + a + '"]') : t.eq(a)).addClass(i.slideActiveClass),
  982. i.loop && (e.hasClass(i.slideDuplicateClass) ? s.children("." + i.slideClass + ":not(." + i.slideDuplicateClass + ')[data-swiper-slide-index="' + r + '"]').addClass(i.slideDuplicateActiveClass) : s.children("." + i.slideClass + "." + i.slideDuplicateClass + '[data-swiper-slide-index="' + r + '"]').addClass(i.slideDuplicateActiveClass));
  983. var o = e.nextAll("." + i.slideClass).eq(0).addClass(i.slideNextClass);
  984. i.loop && 0 === o.length && (o = t.eq(0)).addClass(i.slideNextClass);
  985. var l = e.prevAll("." + i.slideClass).eq(0).addClass(i.slidePrevClass);
  986. i.loop && 0 === l.length && (l = t.eq(-1)).addClass(i.slidePrevClass),
  987. i.loop && (o.hasClass(i.slideDuplicateClass) ? s.children("." + i.slideClass + ":not(." + i.slideDuplicateClass + ')[data-swiper-slide-index="' + o.attr("data-swiper-slide-index") + '"]').addClass(i.slideDuplicateNextClass) : s.children("." + i.slideClass + "." + i.slideDuplicateClass + '[data-swiper-slide-index="' + o.attr("data-swiper-slide-index") + '"]').addClass(i.slideDuplicateNextClass),
  988. l.hasClass(i.slideDuplicateClass) ? s.children("." + i.slideClass + ":not(." + i.slideDuplicateClass + ')[data-swiper-slide-index="' + l.attr("data-swiper-slide-index") + '"]').addClass(i.slideDuplicatePrevClass) : s.children("." + i.slideClass + "." + i.slideDuplicateClass + '[data-swiper-slide-index="' + l.attr("data-swiper-slide-index") + '"]').addClass(i.slideDuplicatePrevClass))
  989. },
  990. updateActiveIndex: function(e) {
  991. var t, i = this.rtlTranslate ? this.translate : -this.translate, s = this.slidesGrid, a = this.snapGrid, r = this.params, n = this.activeIndex, o = this.realIndex, l = this.snapIndex, h = e;
  992. if (void 0 === h) {
  993. for (var p = 0; p < s.length; p += 1)
  994. void 0 !== s[p + 1] ? i >= s[p] && i < s[p + 1] - (s[p + 1] - s[p]) / 2 ? h = p : i >= s[p] && i < s[p + 1] && (h = p + 1) : i >= s[p] && (h = p);
  995. r.normalizeSlideIndex && (h < 0 || void 0 === h) && (h = 0)
  996. }
  997. if ((t = a.indexOf(i) >= 0 ? a.indexOf(i) : Math.floor(h / r.slidesPerGroup)) >= a.length && (t = a.length - 1),
  998. h !== n) {
  999. var c = parseInt(this.slides.eq(h).attr("data-swiper-slide-index") || h, 10);
  1000. d.extend(this, {
  1001. snapIndex: t,
  1002. realIndex: c,
  1003. previousIndex: n,
  1004. activeIndex: h
  1005. }),
  1006. this.emit("activeIndexChange"),
  1007. this.emit("snapIndexChange"),
  1008. o !== c && this.emit("realIndexChange"),
  1009. this.emit("slideChange")
  1010. } else
  1011. t !== l && (this.snapIndex = t,
  1012. this.emit("snapIndexChange"))
  1013. },
  1014. updateClickedSlide: function(e) {
  1015. var t = this.params
  1016. , i = s(e.target).closest("." + t.slideClass)[0]
  1017. , a = !1;
  1018. if (i)
  1019. for (var r = 0; r < this.slides.length; r += 1)
  1020. this.slides[r] === i && (a = !0);
  1021. if (!i || !a)
  1022. return this.clickedSlide = void 0,
  1023. void (this.clickedIndex = void 0);
  1024. this.clickedSlide = i,
  1025. this.virtual && this.params.virtual.enabled ? this.clickedIndex = parseInt(s(i).attr("data-swiper-slide-index"), 10) : this.clickedIndex = s(i).index(),
  1026. t.slideToClickedSlide && void 0 !== this.clickedIndex && this.clickedIndex !== this.activeIndex && this.slideToClickedSlide()
  1027. }
  1028. };
  1029. var v = {
  1030. getTranslate: function(e) {
  1031. void 0 === e && (e = this.isHorizontal() ? "x" : "y");
  1032. var t = this.params
  1033. , i = this.rtlTranslate
  1034. , s = this.translate
  1035. , a = this.$wrapperEl;
  1036. if (t.virtualTranslate)
  1037. return i ? -s : s;
  1038. var r = d.getTranslate(a[0], e);
  1039. return i && (r = -r),
  1040. r || 0
  1041. },
  1042. setTranslate: function(e, t) {
  1043. var i = this.rtlTranslate
  1044. , s = this.params
  1045. , a = this.$wrapperEl
  1046. , r = this.progress
  1047. , n = 0
  1048. , o = 0;
  1049. this.isHorizontal() ? n = i ? -e : e : o = e,
  1050. s.roundLengths && (n = Math.floor(n),
  1051. o = Math.floor(o)),
  1052. s.virtualTranslate || (h.transforms3d ? a.transform("translate3d(" + n + "px, " + o + "px, 0px)") : a.transform("translate(" + n + "px, " + o + "px)")),
  1053. this.translate = this.isHorizontal() ? n : o;
  1054. var l = this.maxTranslate() - this.minTranslate();
  1055. (0 === l ? 0 : (e - this.minTranslate()) / l) !== r && this.updateProgress(e),
  1056. this.emit("setTranslate", this.translate, t)
  1057. },
  1058. minTranslate: function() {
  1059. return -this.snapGrid[0]
  1060. },
  1061. maxTranslate: function() {
  1062. return -this.snapGrid[this.snapGrid.length - 1]
  1063. }
  1064. };
  1065. var f = {
  1066. setTransition: function(e, t) {
  1067. this.$wrapperEl.transition(e),
  1068. this.emit("setTransition", e, t)
  1069. },
  1070. transitionStart: function(e, t) {
  1071. void 0 === e && (e = !0);
  1072. var i = this.activeIndex
  1073. , s = this.params
  1074. , a = this.previousIndex;
  1075. s.autoHeight && this.updateAutoHeight();
  1076. var r = t;
  1077. if (r || (r = i > a ? "next" : i < a ? "prev" : "reset"),
  1078. this.emit("transitionStart"),
  1079. e && i !== a) {
  1080. if ("reset" === r)
  1081. return void this.emit("slideResetTransitionStart");
  1082. this.emit("slideChangeTransitionStart"),
  1083. "next" === r ? this.emit("slideNextTransitionStart") : this.emit("slidePrevTransitionStart")
  1084. }
  1085. },
  1086. transitionEnd: function(e, t) {
  1087. void 0 === e && (e = !0);
  1088. var i = this.activeIndex
  1089. , s = this.previousIndex;
  1090. this.animating = !1,
  1091. this.setTransition(0);
  1092. var a = t;
  1093. if (a || (a = i > s ? "next" : i < s ? "prev" : "reset"),
  1094. this.emit("transitionEnd"),
  1095. e && i !== s) {
  1096. if ("reset" === a)
  1097. return void this.emit("slideResetTransitionEnd");
  1098. this.emit("slideChangeTransitionEnd"),
  1099. "next" === a ? this.emit("slideNextTransitionEnd") : this.emit("slidePrevTransitionEnd")
  1100. }
  1101. }
  1102. };
  1103. var m = {
  1104. slideTo: function(e, t, i, s) {
  1105. void 0 === e && (e = 0),
  1106. void 0 === t && (t = this.params.speed),
  1107. void 0 === i && (i = !0);
  1108. var a = this
  1109. , r = e;
  1110. r < 0 && (r = 0);
  1111. var n = a.params
  1112. , o = a.snapGrid
  1113. , l = a.slidesGrid
  1114. , d = a.previousIndex
  1115. , p = a.activeIndex
  1116. , c = a.rtlTranslate
  1117. , u = a.$wrapperEl;
  1118. if (a.animating && n.preventIntercationOnTransition)
  1119. return !1;
  1120. var v = Math.floor(r / n.slidesPerGroup);
  1121. v >= o.length && (v = o.length - 1),
  1122. (p || n.initialSlide || 0) === (d || 0) && i && a.emit("beforeSlideChangeStart");
  1123. var f, m = -o[v];
  1124. if (a.updateProgress(m),
  1125. n.normalizeSlideIndex)
  1126. for (var g = 0; g < l.length; g += 1)
  1127. -Math.floor(100 * m) >= Math.floor(100 * l[g]) && (r = g);
  1128. if (a.initialized && r !== p) {
  1129. if (!a.allowSlideNext && m < a.translate && m < a.minTranslate())
  1130. return !1;
  1131. if (!a.allowSlidePrev && m > a.translate && m > a.maxTranslate() && (p || 0) !== r)
  1132. return !1
  1133. }
  1134. return f = r > p ? "next" : r < p ? "prev" : "reset",
  1135. c && -m === a.translate || !c && m === a.translate ? (a.updateActiveIndex(r),
  1136. n.autoHeight && a.updateAutoHeight(),
  1137. a.updateSlidesClasses(),
  1138. "slide" !== n.effect && a.setTranslate(m),
  1139. "reset" !== f && (a.transitionStart(i, f),
  1140. a.transitionEnd(i, f)),
  1141. !1) : (0 !== t && h.transition ? (a.setTransition(t),
  1142. a.setTranslate(m),
  1143. a.updateActiveIndex(r),
  1144. a.updateSlidesClasses(),
  1145. a.emit("beforeTransitionStart", t, s),
  1146. a.transitionStart(i, f),
  1147. a.animating || (a.animating = !0,
  1148. u.transitionEnd(function() {
  1149. a && !a.destroyed && a.transitionEnd(i, f)
  1150. }))) : (a.setTransition(0),
  1151. a.setTranslate(m),
  1152. a.updateActiveIndex(r),
  1153. a.updateSlidesClasses(),
  1154. a.emit("beforeTransitionStart", t, s),
  1155. a.transitionStart(i, f),
  1156. a.transitionEnd(i, f)),
  1157. !0)
  1158. },
  1159. slideToLoop: function(e, t, i, s) {
  1160. void 0 === e && (e = 0),
  1161. void 0 === t && (t = this.params.speed),
  1162. void 0 === i && (i = !0);
  1163. var a = e;
  1164. return this.params.loop && (a += this.loopedSlides),
  1165. this.slideTo(a, t, i, s)
  1166. },
  1167. slideNext: function(e, t, i) {
  1168. void 0 === e && (e = this.params.speed),
  1169. void 0 === t && (t = !0);
  1170. var s = this.params
  1171. , a = this.animating;
  1172. return s.loop ? !a && (this.loopFix(),
  1173. this._clientLeft = this.$wrapperEl[0].clientLeft,
  1174. this.slideTo(this.activeIndex + s.slidesPerGroup, e, t, i)) : this.slideTo(this.activeIndex + s.slidesPerGroup, e, t, i)
  1175. },
  1176. slidePrev: function(e, t, i) {
  1177. void 0 === e && (e = this.params.speed),
  1178. void 0 === t && (t = !0);
  1179. var s = this.params
  1180. , a = this.animating;
  1181. return s.loop ? !a && (this.loopFix(),
  1182. this._clientLeft = this.$wrapperEl[0].clientLeft,
  1183. this.slideTo(this.activeIndex - 1, e, t, i)) : this.slideTo(this.activeIndex - 1, e, t, i)
  1184. },
  1185. slideReset: function(e, t, i) {
  1186. return void 0 === e && (e = this.params.speed),
  1187. void 0 === t && (t = !0),
  1188. this.slideTo(this.activeIndex, e, t, i)
  1189. },
  1190. slideToClosest: function(e, t, i) {
  1191. void 0 === e && (e = this.params.speed),
  1192. void 0 === t && (t = !0);
  1193. var s = this.activeIndex
  1194. , a = Math.floor(s / this.params.slidesPerGroup);
  1195. if (a < this.snapGrid.length - 1) {
  1196. var r = this.rtlTranslate ? this.translate : -this.translate
  1197. , n = this.snapGrid[a];
  1198. r - n > (this.snapGrid[a + 1] - n) / 2 && (s = this.params.slidesPerGroup)
  1199. }
  1200. return this.slideTo(s, e, t, i)
  1201. },
  1202. slideToClickedSlide: function() {
  1203. var e, t = this, i = t.params, a = t.$wrapperEl, r = "auto" === i.slidesPerView ? t.slidesPerViewDynamic() : i.slidesPerView, n = t.clickedIndex;
  1204. if (i.loop) {
  1205. if (t.animating)
  1206. return;
  1207. e = parseInt(s(t.clickedSlide).attr("data-swiper-slide-index"), 10),
  1208. i.centeredSlides ? n < t.loopedSlides - r / 2 || n > t.slides.length - t.loopedSlides + r / 2 ? (t.loopFix(),
  1209. n = a.children("." + i.slideClass + '[data-swiper-slide-index="' + e + '"]:not(.' + i.slideDuplicateClass + ")").eq(0).index(),
  1210. d.nextTick(function() {
  1211. t.slideTo(n)
  1212. })) : t.slideTo(n) : n > t.slides.length - r ? (t.loopFix(),
  1213. n = a.children("." + i.slideClass + '[data-swiper-slide-index="' + e + '"]:not(.' + i.slideDuplicateClass + ")").eq(0).index(),
  1214. d.nextTick(function() {
  1215. t.slideTo(n)
  1216. })) : t.slideTo(n)
  1217. } else
  1218. t.slideTo(n)
  1219. }
  1220. };
  1221. var g = {
  1222. loopCreate: function() {
  1223. var t = this
  1224. , i = t.params
  1225. , a = t.$wrapperEl;
  1226. a.children("." + i.slideClass + "." + i.slideDuplicateClass).remove();
  1227. var r = a.children("." + i.slideClass);
  1228. if (i.loopFillGroupWithBlank) {
  1229. var n = i.slidesPerGroup - r.length % i.slidesPerGroup;
  1230. if (n !== i.slidesPerGroup) {
  1231. for (var o = 0; o < n; o += 1) {
  1232. var l = s(e.createElement("div")).addClass(i.slideClass + " " + i.slideBlankClass);
  1233. a.append(l)
  1234. }
  1235. r = a.children("." + i.slideClass)
  1236. }
  1237. }
  1238. "auto" !== i.slidesPerView || i.loopedSlides || (i.loopedSlides = r.length),
  1239. t.loopedSlides = parseInt(i.loopedSlides || i.slidesPerView, 10),
  1240. t.loopedSlides += i.loopAdditionalSlides,
  1241. t.loopedSlides > r.length && (t.loopedSlides = r.length);
  1242. var d = []
  1243. , h = [];
  1244. r.each(function(e, i) {
  1245. var a = s(i);
  1246. e < t.loopedSlides && h.push(i),
  1247. e < r.length && e >= r.length - t.loopedSlides && d.push(i),
  1248. a.attr("data-swiper-slide-index", e)
  1249. });
  1250. for (var p = 0; p < h.length; p += 1)
  1251. a.append(s(h[p].cloneNode(!0)).addClass(i.slideDuplicateClass));
  1252. for (var c = d.length - 1; c >= 0; c -= 1)
  1253. a.prepend(s(d[c].cloneNode(!0)).addClass(i.slideDuplicateClass))
  1254. },
  1255. loopFix: function() {
  1256. var e, t = this.params, i = this.activeIndex, s = this.slides, a = this.loopedSlides, r = this.allowSlidePrev, n = this.allowSlideNext, o = this.snapGrid, l = this.rtlTranslate;
  1257. this.allowSlidePrev = !0,
  1258. this.allowSlideNext = !0;
  1259. var d = -o[i] - this.getTranslate();
  1260. i < a ? (e = s.length - 3 * a + i,
  1261. e += a,
  1262. this.slideTo(e, 0, !1, !0) && 0 !== d && this.setTranslate((l ? -this.translate : this.translate) - d)) : ("auto" === t.slidesPerView && i >= 2 * a || i > s.length - 2 * t.slidesPerView) && (e = -s.length + i + a,
  1263. e += a,
  1264. this.slideTo(e, 0, !1, !0) && 0 !== d && this.setTranslate((l ? -this.translate : this.translate) - d));
  1265. this.allowSlidePrev = r,
  1266. this.allowSlideNext = n
  1267. },
  1268. loopDestroy: function() {
  1269. var e = this.$wrapperEl
  1270. , t = this.params
  1271. , i = this.slides;
  1272. e.children("." + t.slideClass + "." + t.slideDuplicateClass).remove(),
  1273. i.removeAttr("data-swiper-slide-index")
  1274. }
  1275. };
  1276. var b = {
  1277. setGrabCursor: function(e) {
  1278. if (!h.touch && this.params.simulateTouch) {
  1279. var t = this.el;
  1280. t.style.cursor = "move",
  1281. t.style.cursor = e ? "-webkit-grabbing" : "-webkit-grab",
  1282. t.style.cursor = e ? "-moz-grabbin" : "-moz-grab",
  1283. t.style.cursor = e ? "grabbing" : "grab"
  1284. }
  1285. },
  1286. unsetGrabCursor: function() {
  1287. h.touch || (this.el.style.cursor = "")
  1288. }
  1289. };
  1290. var w = {
  1291. appendSlide: function(e) {
  1292. var t = this.$wrapperEl
  1293. , i = this.params;
  1294. if (i.loop && this.loopDestroy(),
  1295. "object" == typeof e && "length"in e)
  1296. for (var s = 0; s < e.length; s += 1)
  1297. e[s] && t.append(e[s]);
  1298. else
  1299. t.append(e);
  1300. i.loop && this.loopCreate(),
  1301. i.observer && h.observer || this.update()
  1302. },
  1303. prependSlide: function(e) {
  1304. var t = this.params
  1305. , i = this.$wrapperEl
  1306. , s = this.activeIndex;
  1307. t.loop && this.loopDestroy();
  1308. var a = s + 1;
  1309. if ("object" == typeof e && "length"in e) {
  1310. for (var r = 0; r < e.length; r += 1)
  1311. e[r] && i.prepend(e[r]);
  1312. a = s + e.length
  1313. } else
  1314. i.prepend(e);
  1315. t.loop && this.loopCreate(),
  1316. t.observer && h.observer || this.update(),
  1317. this.slideTo(a, 0, !1)
  1318. },
  1319. removeSlide: function(e) {
  1320. var t = this.params
  1321. , i = this.$wrapperEl
  1322. , s = this.activeIndex;
  1323. t.loop && (this.loopDestroy(),
  1324. this.slides = i.children("." + t.slideClass));
  1325. var a, r = s;
  1326. if ("object" == typeof e && "length"in e) {
  1327. for (var n = 0; n < e.length; n += 1)
  1328. a = e[n],
  1329. this.slides[a] && this.slides.eq(a).remove(),
  1330. a < r && (r -= 1);
  1331. r = Math.max(r, 0)
  1332. } else
  1333. a = e,
  1334. this.slides[a] && this.slides.eq(a).remove(),
  1335. a < r && (r -= 1),
  1336. r = Math.max(r, 0);
  1337. t.loop && this.loopCreate(),
  1338. t.observer && h.observer || this.update(),
  1339. t.loop ? this.slideTo(r + this.loopedSlides, 0, !1) : this.slideTo(r, 0, !1)
  1340. },
  1341. removeAllSlides: function() {
  1342. for (var e = [], t = 0; t < this.slides.length; t += 1)
  1343. e.push(t);
  1344. this.removeSlide(e)
  1345. }
  1346. }
  1347. , y = function() {
  1348. var i = t.navigator.userAgent
  1349. , s = {
  1350. ios: !1,
  1351. android: !1,
  1352. androidChrome: !1,
  1353. desktop: !1,
  1354. windows: !1,
  1355. iphone: !1,
  1356. ipod: !1,
  1357. ipad: !1,
  1358. cordova: t.cordova || t.phonegap,
  1359. phonegap: t.cordova || t.phonegap
  1360. }
  1361. , a = i.match(/(Windows Phone);?[\s\/]+([\d.]+)?/)
  1362. , r = i.match(/(Android);?[\s\/]+([\d.]+)?/)
  1363. , n = i.match(/(iPad).*OS\s([\d_]+)/)
  1364. , o = i.match(/(iPod)(.*OS\s([\d_]+))?/)
  1365. , l = !n && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/);
  1366. if (a && (s.os = "windows",
  1367. s.osVersion = a[2],
  1368. s.windows = !0),
  1369. r && !a && (s.os = "android",
  1370. s.osVersion = r[2],
  1371. s.android = !0,
  1372. s.androidChrome = i.toLowerCase().indexOf("chrome") >= 0),
  1373. (n || l || o) && (s.os = "ios",
  1374. s.ios = !0),
  1375. l && !o && (s.osVersion = l[2].replace(/_/g, "."),
  1376. s.iphone = !0),
  1377. n && (s.osVersion = n[2].replace(/_/g, "."),
  1378. s.ipad = !0),
  1379. o && (s.osVersion = o[3] ? o[3].replace(/_/g, ".") : null,
  1380. s.iphone = !0),
  1381. s.ios && s.osVersion && i.indexOf("Version/") >= 0 && "10" === s.osVersion.split(".")[0] && (s.osVersion = i.toLowerCase().split("version/")[1].split(" ")[0]),
  1382. s.desktop = !(s.os || s.android || s.webView),
  1383. s.webView = (l || n || o) && i.match(/.*AppleWebKit(?!.*Safari)/i),
  1384. s.os && "ios" === s.os) {
  1385. var d = s.osVersion.split(".")
  1386. , h = e.querySelector('meta[name="viewport"]');
  1387. s.minimalUi = !s.webView && (o || l) && (1 * d[0] == 7 ? 1 * d[1] >= 1 : 1 * d[0] > 7) && h && h.getAttribute("content").indexOf("minimal-ui") >= 0
  1388. }
  1389. return s.pixelRatio = t.devicePixelRatio || 1,
  1390. s
  1391. }();
  1392. function x() {
  1393. var e = this.params
  1394. , t = this.el;
  1395. if (!t || 0 !== t.offsetWidth) {
  1396. e.breakpoints && this.setBreakpoint();
  1397. var i = this.allowSlideNext
  1398. , s = this.allowSlidePrev;
  1399. if (this.allowSlideNext = !0,
  1400. this.allowSlidePrev = !0,
  1401. this.updateSize(),
  1402. this.updateSlides(),
  1403. e.freeMode) {
  1404. var a = Math.min(Math.max(this.translate, this.maxTranslate()), this.minTranslate());
  1405. this.setTranslate(a),
  1406. this.updateActiveIndex(),
  1407. this.updateSlidesClasses(),
  1408. e.autoHeight && this.updateAutoHeight()
  1409. } else
  1410. this.updateSlidesClasses(),
  1411. ("auto" === e.slidesPerView || e.slidesPerView > 1) && this.isEnd && !this.params.centeredSlides ? this.slideTo(this.slides.length - 1, 0, !1, !0) : this.slideTo(this.activeIndex, 0, !1, !0);
  1412. this.allowSlidePrev = s,
  1413. this.allowSlideNext = i
  1414. }
  1415. }
  1416. var E = {
  1417. attachEvents: function() {
  1418. var i = this.params
  1419. , a = this.touchEvents
  1420. , r = this.el
  1421. , n = this.wrapperEl;
  1422. this.onTouchStart = function(i) {
  1423. var a = this.touchEventsData
  1424. , r = this.params
  1425. , n = this.touches;
  1426. if (!this.animating || !r.preventIntercationOnTransition) {
  1427. var o = i;
  1428. if (o.originalEvent && (o = o.originalEvent),
  1429. a.isTouchEvent = "touchstart" === o.type,
  1430. (a.isTouchEvent || !("which"in o) || 3 !== o.which) && (!a.isTouched || !a.isMoved))
  1431. if (r.noSwiping && s(o.target).closest(r.noSwipingSelector ? r.noSwipingSelector : "." + r.noSwipingClass)[0])
  1432. this.allowClick = !0;
  1433. else if (!r.swipeHandler || s(o).closest(r.swipeHandler)[0]) {
  1434. n.currentX = "touchstart" === o.type ? o.targetTouches[0].pageX : o.pageX,
  1435. n.currentY = "touchstart" === o.type ? o.targetTouches[0].pageY : o.pageY;
  1436. var l = n.currentX
  1437. , h = n.currentY;
  1438. if (!(y.ios && !y.cordova && r.iOSEdgeSwipeDetection && l <= r.iOSEdgeSwipeThreshold && l >= t.screen.width - r.iOSEdgeSwipeThreshold)) {
  1439. if (d.extend(a, {
  1440. isTouched: !0,
  1441. isMoved: !1,
  1442. allowTouchCallbacks: !0,
  1443. isScrolling: void 0,
  1444. startMoving: void 0
  1445. }),
  1446. n.startX = l,
  1447. n.startY = h,
  1448. a.touchStartTime = d.now(),
  1449. this.allowClick = !0,
  1450. this.updateSize(),
  1451. this.swipeDirection = void 0,
  1452. r.threshold > 0 && (a.allowThresholdMove = !1),
  1453. "touchstart" !== o.type) {
  1454. var p = !0;
  1455. s(o.target).is(a.formElements) && (p = !1),
  1456. e.activeElement && s(e.activeElement).is(a.formElements) && e.activeElement !== o.target && e.activeElement.blur(),
  1457. p && this.allowTouchMove && o.preventDefault()
  1458. }
  1459. this.emit("touchStart", o)
  1460. }
  1461. }
  1462. }
  1463. }
  1464. .bind(this),
  1465. this.onTouchMove = function(t) {
  1466. var i = this.touchEventsData
  1467. , a = this.params
  1468. , r = this.touches
  1469. , n = this.rtlTranslate
  1470. , o = t;
  1471. if (o.originalEvent && (o = o.originalEvent),
  1472. i.isTouched) {
  1473. if (!i.isTouchEvent || "mousemove" !== o.type) {
  1474. var l = "touchmove" === o.type ? o.targetTouches[0].pageX : o.pageX
  1475. , h = "touchmove" === o.type ? o.targetTouches[0].pageY : o.pageY;
  1476. if (o.preventedByNestedSwiper)
  1477. return r.startX = l,
  1478. void (r.startY = h);
  1479. if (!this.allowTouchMove)
  1480. return this.allowClick = !1,
  1481. void (i.isTouched && (d.extend(r, {
  1482. startX: l,
  1483. startY: h,
  1484. currentX: l,
  1485. currentY: h
  1486. }),
  1487. i.touchStartTime = d.now()));
  1488. if (i.isTouchEvent && a.touchReleaseOnEdges && !a.loop)
  1489. if (this.isVertical()) {
  1490. if (h < r.startY && this.translate <= this.maxTranslate() || h > r.startY && this.translate >= this.minTranslate())
  1491. return i.isTouched = !1,
  1492. void (i.isMoved = !1)
  1493. } else if (l < r.startX && this.translate <= this.maxTranslate() || l > r.startX && this.translate >= this.minTranslate())
  1494. return;
  1495. if (i.isTouchEvent && e.activeElement && o.target === e.activeElement && s(o.target).is(i.formElements))
  1496. return i.isMoved = !0,
  1497. void (this.allowClick = !1);
  1498. if (i.allowTouchCallbacks && this.emit("touchMove", o),
  1499. !(o.targetTouches && o.targetTouches.length > 1)) {
  1500. r.currentX = l,
  1501. r.currentY = h;
  1502. var p, c = r.currentX - r.startX, u = r.currentY - r.startY;
  1503. if (void 0 === i.isScrolling && (this.isHorizontal() && r.currentY === r.startY || this.isVertical() && r.currentX === r.startX ? i.isScrolling = !1 : c * c + u * u >= 25 && (p = 180 * Math.atan2(Math.abs(u), Math.abs(c)) / Math.PI,
  1504. i.isScrolling = this.isHorizontal() ? p > a.touchAngle : 90 - p > a.touchAngle)),
  1505. i.isScrolling && this.emit("touchMoveOpposite", o),
  1506. "undefined" == typeof startMoving && (r.currentX === r.startX && r.currentY === r.startY || (i.startMoving = !0)),
  1507. i.isScrolling)
  1508. i.isTouched = !1;
  1509. else if (i.startMoving) {
  1510. this.allowClick = !1,
  1511. o.preventDefault(),
  1512. a.touchMoveStopPropagation && !a.nested && o.stopPropagation(),
  1513. i.isMoved || (a.loop && this.loopFix(),
  1514. i.startTranslate = this.getTranslate(),
  1515. this.setTransition(0),
  1516. this.animating && this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),
  1517. i.allowMomentumBounce = !1,
  1518. !a.grabCursor || !0 !== this.allowSlideNext && !0 !== this.allowSlidePrev || this.setGrabCursor(!0),
  1519. this.emit("sliderFirstMove", o)),
  1520. this.emit("sliderMove", o),
  1521. i.isMoved = !0;
  1522. var v = this.isHorizontal() ? c : u;
  1523. r.diff = v,
  1524. v *= a.touchRatio,
  1525. n && (v = -v),
  1526. this.swipeDirection = v > 0 ? "prev" : "next",
  1527. i.currentTranslate = v + i.startTranslate;
  1528. var f = !0
  1529. , m = a.resistanceRatio;
  1530. if (a.touchReleaseOnEdges && (m = 0),
  1531. v > 0 && i.currentTranslate > this.minTranslate() ? (f = !1,
  1532. a.resistance && (i.currentTranslate = this.minTranslate() - 1 + Math.pow(-this.minTranslate() + i.startTranslate + v, m))) : v < 0 && i.currentTranslate < this.maxTranslate() && (f = !1,
  1533. a.resistance && (i.currentTranslate = this.maxTranslate() + 1 - Math.pow(this.maxTranslate() - i.startTranslate - v, m))),
  1534. f && (o.preventedByNestedSwiper = !0),
  1535. !this.allowSlideNext && "next" === this.swipeDirection && i.currentTranslate < i.startTranslate && (i.currentTranslate = i.startTranslate),
  1536. !this.allowSlidePrev && "prev" === this.swipeDirection && i.currentTranslate > i.startTranslate && (i.currentTranslate = i.startTranslate),
  1537. a.threshold > 0) {
  1538. if (!(Math.abs(v) > a.threshold || i.allowThresholdMove))
  1539. return void (i.currentTranslate = i.startTranslate);
  1540. if (!i.allowThresholdMove)
  1541. return i.allowThresholdMove = !0,
  1542. r.startX = r.currentX,
  1543. r.startY = r.currentY,
  1544. i.currentTranslate = i.startTranslate,
  1545. void (r.diff = this.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY)
  1546. }
  1547. a.followFinger && ((a.freeMode || a.watchSlidesProgress || a.watchSlidesVisibility) && (this.updateActiveIndex(),
  1548. this.updateSlidesClasses()),
  1549. a.freeMode && (0 === i.velocities.length && i.velocities.push({
  1550. position: r[this.isHorizontal() ? "startX" : "startY"],
  1551. time: i.touchStartTime
  1552. }),
  1553. i.velocities.push({
  1554. position: r[this.isHorizontal() ? "currentX" : "currentY"],
  1555. time: d.now()
  1556. })),
  1557. this.updateProgress(i.currentTranslate),
  1558. this.setTranslate(i.currentTranslate))
  1559. }
  1560. }
  1561. }
  1562. } else
  1563. i.startMoving && i.isScrolling && this.emit("touchMoveOpposite", o)
  1564. }
  1565. .bind(this),
  1566. this.onTouchEnd = function(e) {
  1567. var t = this
  1568. , i = t.touchEventsData
  1569. , s = t.params
  1570. , a = t.touches
  1571. , r = t.rtlTranslate
  1572. , n = t.$wrapperEl
  1573. , o = t.slidesGrid
  1574. , l = t.snapGrid
  1575. , h = e;
  1576. if (h.originalEvent && (h = h.originalEvent),
  1577. i.allowTouchCallbacks && t.emit("touchEnd", h),
  1578. i.allowTouchCallbacks = !1,
  1579. !i.isTouched)
  1580. return i.isMoved && s.grabCursor && t.setGrabCursor(!1),
  1581. i.isMoved = !1,
  1582. void (i.startMoving = !1);
  1583. s.grabCursor && i.isMoved && i.isTouched && (!0 === t.allowSlideNext || !0 === t.allowSlidePrev) && t.setGrabCursor(!1);
  1584. var p, c = d.now(), u = c - i.touchStartTime;
  1585. if (t.allowClick && (t.updateClickedSlide(h),
  1586. t.emit("tap", h),
  1587. u < 300 && c - i.lastClickTime > 300 && (i.clickTimeout && clearTimeout(i.clickTimeout),
  1588. i.clickTimeout = d.nextTick(function() {
  1589. t && !t.destroyed && t.emit("click", h)
  1590. }, 300)),
  1591. u < 300 && c - i.lastClickTime < 300 && (i.clickTimeout && clearTimeout(i.clickTimeout),
  1592. t.emit("doubleTap", h))),
  1593. i.lastClickTime = d.now(),
  1594. d.nextTick(function() {
  1595. t.destroyed || (t.allowClick = !0)
  1596. }),
  1597. !i.isTouched || !i.isMoved || !t.swipeDirection || 0 === a.diff || i.currentTranslate === i.startTranslate)
  1598. return i.isTouched = !1,
  1599. i.isMoved = !1,
  1600. void (i.startMoving = !1);
  1601. if (i.isTouched = !1,
  1602. i.isMoved = !1,
  1603. i.startMoving = !1,
  1604. p = s.followFinger ? r ? t.translate : -t.translate : -i.currentTranslate,
  1605. s.freeMode) {
  1606. if (p < -t.minTranslate())
  1607. return void t.slideTo(t.activeIndex);
  1608. if (p > -t.maxTranslate())
  1609. return void (t.slides.length < l.length ? t.slideTo(l.length - 1) : t.slideTo(t.slides.length - 1));
  1610. if (s.freeModeMomentum) {
  1611. if (i.velocities.length > 1) {
  1612. var v = i.velocities.pop()
  1613. , f = i.velocities.pop()
  1614. , m = v.position - f.position
  1615. , g = v.time - f.time;
  1616. t.velocity = m / g,
  1617. t.velocity /= 2,
  1618. Math.abs(t.velocity) < s.freeModeMinimumVelocity && (t.velocity = 0),
  1619. (g > 150 || d.now() - v.time > 300) && (t.velocity = 0)
  1620. } else
  1621. t.velocity = 0;
  1622. t.velocity *= s.freeModeMomentumVelocityRatio,
  1623. i.velocities.length = 0;
  1624. var b = 1e3 * s.freeModeMomentumRatio
  1625. , w = t.velocity * b
  1626. , y = t.translate + w;
  1627. r && (y = -y);
  1628. var x, E = !1, T = 20 * Math.abs(t.velocity) * s.freeModeMomentumBounceRatio;
  1629. if (y < t.maxTranslate())
  1630. s.freeModeMomentumBounce ? (y + t.maxTranslate() < -T && (y = t.maxTranslate() - T),
  1631. x = t.maxTranslate(),
  1632. E = !0,
  1633. i.allowMomentumBounce = !0) : y = t.maxTranslate();
  1634. else if (y > t.minTranslate())
  1635. s.freeModeMomentumBounce ? (y - t.minTranslate() > T && (y = t.minTranslate() + T),
  1636. x = t.minTranslate(),
  1637. E = !0,
  1638. i.allowMomentumBounce = !0) : y = t.minTranslate();
  1639. else if (s.freeModeSticky) {
  1640. for (var S, C = 0; C < l.length; C += 1)
  1641. if (l[C] > -y) {
  1642. S = C;
  1643. break
  1644. }
  1645. y = -(y = Math.abs(l[S] - y) < Math.abs(l[S - 1] - y) || "next" === t.swipeDirection ? l[S] : l[S - 1])
  1646. }
  1647. if (0 !== t.velocity)
  1648. b = r ? Math.abs((-y - t.translate) / t.velocity) : Math.abs((y - t.translate) / t.velocity);
  1649. else if (s.freeModeSticky)
  1650. return void t.slideToClosest();
  1651. s.freeModeMomentumBounce && E ? (t.updateProgress(x),
  1652. t.setTransition(b),
  1653. t.setTranslate(y),
  1654. t.transitionStart(!0, t.swipeDirection),
  1655. t.animating = !0,
  1656. n.transitionEnd(function() {
  1657. t && !t.destroyed && i.allowMomentumBounce && (t.emit("momentumBounce"),
  1658. t.setTransition(s.speed),
  1659. t.setTranslate(x),
  1660. n.transitionEnd(function() {
  1661. t && !t.destroyed && t.transitionEnd()
  1662. }))
  1663. })) : t.velocity ? (t.updateProgress(y),
  1664. t.setTransition(b),
  1665. t.setTranslate(y),
  1666. t.transitionStart(!0, t.swipeDirection),
  1667. t.animating || (t.animating = !0,
  1668. n.transitionEnd(function() {
  1669. t && !t.destroyed && t.transitionEnd()
  1670. }))) : t.updateProgress(y),
  1671. t.updateActiveIndex(),
  1672. t.updateSlidesClasses()
  1673. } else if (s.freeModeSticky)
  1674. return void t.slideToClosest();
  1675. (!s.freeModeMomentum || u >= s.longSwipesMs) && (t.updateProgress(),
  1676. t.updateActiveIndex(),
  1677. t.updateSlidesClasses())
  1678. } else {
  1679. for (var M = 0, z = t.slidesSizesGrid[0], P = 0; P < o.length; P += s.slidesPerGroup)
  1680. void 0 !== o[P + s.slidesPerGroup] ? p >= o[P] && p < o[P + s.slidesPerGroup] && (M = P,
  1681. z = o[P + s.slidesPerGroup] - o[P]) : p >= o[P] && (M = P,
  1682. z = o[o.length - 1] - o[o.length - 2]);
  1683. var k = (p - o[M]) / z;
  1684. if (u > s.longSwipesMs) {
  1685. if (!s.longSwipes)
  1686. return void t.slideTo(t.activeIndex);
  1687. "next" === t.swipeDirection && (k >= s.longSwipesRatio ? t.slideTo(M + s.slidesPerGroup) : t.slideTo(M)),
  1688. "prev" === t.swipeDirection && (k > 1 - s.longSwipesRatio ? t.slideTo(M + s.slidesPerGroup) : t.slideTo(M))
  1689. } else {
  1690. if (!s.shortSwipes)
  1691. return void t.slideTo(t.activeIndex);
  1692. "next" === t.swipeDirection && t.slideTo(M + s.slidesPerGroup),
  1693. "prev" === t.swipeDirection && t.slideTo(M)
  1694. }
  1695. }
  1696. }
  1697. .bind(this),
  1698. this.onClick = function(e) {
  1699. this.allowClick || (this.params.preventClicks && e.preventDefault(),
  1700. this.params.preventClicksPropagation && this.animating && (e.stopPropagation(),
  1701. e.stopImmediatePropagation()))
  1702. }
  1703. .bind(this);
  1704. var o = "container" === i.touchEventsTarget ? r : n
  1705. , l = !!i.nested;
  1706. if (h.touch || !h.pointerEvents && !h.prefixedPointerEvents) {
  1707. if (h.touch) {
  1708. var p = !("touchstart" !== a.start || !h.passiveListener || !i.passiveListeners) && {
  1709. passive: !0,
  1710. capture: !1
  1711. };
  1712. o.addEventListener(a.start, this.onTouchStart, p),
  1713. o.addEventListener(a.move, this.onTouchMove, h.passiveListener ? {
  1714. passive: !1,
  1715. capture: l
  1716. } : l),
  1717. o.addEventListener(a.end, this.onTouchEnd, p)
  1718. }
  1719. (i.simulateTouch && !y.ios && !y.android || i.simulateTouch && !h.touch && y.ios) && (o.addEventListener("mousedown", this.onTouchStart, !1),
  1720. e.addEventListener("mousemove", this.onTouchMove, l),
  1721. e.addEventListener("mouseup", this.onTouchEnd, !1))
  1722. } else
  1723. o.addEventListener(a.start, this.onTouchStart, !1),
  1724. e.addEventListener(a.move, this.onTouchMove, l),
  1725. e.addEventListener(a.end, this.onTouchEnd, !1);
  1726. (i.preventClicks || i.preventClicksPropagation) && o.addEventListener("click", this.onClick, !0),
  1727. this.on("resize observerUpdate", x, !0)
  1728. },
  1729. detachEvents: function() {
  1730. var t = this.params
  1731. , i = this.touchEvents
  1732. , s = this.el
  1733. , a = this.wrapperEl
  1734. , r = "container" === t.touchEventsTarget ? s : a
  1735. , n = !!t.nested;
  1736. if (h.touch || !h.pointerEvents && !h.prefixedPointerEvents) {
  1737. if (h.touch) {
  1738. var o = !("onTouchStart" !== i.start || !h.passiveListener || !t.passiveListeners) && {
  1739. passive: !0,
  1740. capture: !1
  1741. };
  1742. r.removeEventListener(i.start, this.onTouchStart, o),
  1743. r.removeEventListener(i.move, this.onTouchMove, n),
  1744. r.removeEventListener(i.end, this.onTouchEnd, o)
  1745. }
  1746. (t.simulateTouch && !y.ios && !y.android || t.simulateTouch && !h.touch && y.ios) && (r.removeEventListener("mousedown", this.onTouchStart, !1),
  1747. e.removeEventListener("mousemove", this.onTouchMove, n),
  1748. e.removeEventListener("mouseup", this.onTouchEnd, !1))
  1749. } else
  1750. r.removeEventListener(i.start, this.onTouchStart, !1),
  1751. e.removeEventListener(i.move, this.onTouchMove, n),
  1752. e.removeEventListener(i.end, this.onTouchEnd, !1);
  1753. (t.preventClicks || t.preventClicksPropagation) && r.removeEventListener("click", this.onClick, !0),
  1754. this.off("resize observerUpdate", x)
  1755. }
  1756. };
  1757. var T = {
  1758. setBreakpoint: function() {
  1759. var e = this.activeIndex
  1760. , t = this.loopedSlides;
  1761. void 0 === t && (t = 0);
  1762. var i = this.params
  1763. , s = i.breakpoints;
  1764. if (s && (!s || 0 !== Object.keys(s).length)) {
  1765. var a = this.getBreakpoint(s);
  1766. if (a && this.currentBreakpoint !== a) {
  1767. var r = a in s ? s[a] : this.originalParams
  1768. , n = i.loop && r.slidesPerView !== i.slidesPerView;
  1769. d.extend(this.params, r),
  1770. d.extend(this, {
  1771. allowTouchMove: this.params.allowTouchMove,
  1772. allowSlideNext: this.params.allowSlideNext,
  1773. allowSlidePrev: this.params.allowSlidePrev
  1774. }),
  1775. this.currentBreakpoint = a,
  1776. n && (this.loopDestroy(),
  1777. this.loopCreate(),
  1778. this.updateSlides(),
  1779. this.slideTo(e - t + this.loopedSlides, 0, !1)),
  1780. this.emit("breakpoint", r)
  1781. }
  1782. }
  1783. },
  1784. getBreakpoint: function(e) {
  1785. if (e) {
  1786. var i = !1
  1787. , s = [];
  1788. Object.keys(e).forEach(function(e) {
  1789. s.push(e)
  1790. }),
  1791. s.sort(function(e, t) {
  1792. return parseInt(e, 10) - parseInt(t, 10)
  1793. });
  1794. for (var a = 0; a < s.length; a += 1) {
  1795. var r = s[a];
  1796. r >= t.innerWidth && !i && (i = r)
  1797. }
  1798. return i || "max"
  1799. }
  1800. }
  1801. }
  1802. , S = function() {
  1803. return {
  1804. isIE: !!t.navigator.userAgent.match(/Trident/g) || !!t.navigator.userAgent.match(/MSIE/g),
  1805. isSafari: (e = t.navigator.userAgent.toLowerCase(),
  1806. e.indexOf("safari") >= 0 && e.indexOf("chrome") < 0 && e.indexOf("android") < 0),
  1807. isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)
  1808. };
  1809. var e
  1810. }();
  1811. var C = {
  1812. init: !0,
  1813. direction: "horizontal",
  1814. touchEventsTarget: "container",
  1815. initialSlide: 0,
  1816. speed: 300,
  1817. preventIntercationOnTransition: !1,
  1818. iOSEdgeSwipeDetection: !1,
  1819. iOSEdgeSwipeThreshold: 20,
  1820. freeMode: !1,
  1821. freeModeMomentum: !0,
  1822. freeModeMomentumRatio: 1,
  1823. freeModeMomentumBounce: !0,
  1824. freeModeMomentumBounceRatio: 1,
  1825. freeModeMomentumVelocityRatio: 1,
  1826. freeModeSticky: !1,
  1827. freeModeMinimumVelocity: .02,
  1828. autoHeight: !1,
  1829. setWrapperSize: !1,
  1830. virtualTranslate: !1,
  1831. effect: "slide",
  1832. breakpoints: void 0,
  1833. spaceBetween: 0,
  1834. slidesPerView: 1,
  1835. slidesPerColumn: 1,
  1836. slidesPerColumnFill: "column",
  1837. slidesPerGroup: 1,
  1838. centeredSlides: !1,
  1839. slidesOffsetBefore: 0,
  1840. slidesOffsetAfter: 0,
  1841. normalizeSlideIndex: !0,
  1842. watchOverflow: !1,
  1843. roundLengths: !1,
  1844. touchRatio: 1,
  1845. touchAngle: 45,
  1846. simulateTouch: !0,
  1847. shortSwipes: !0,
  1848. longSwipes: !0,
  1849. longSwipesRatio: .5,
  1850. longSwipesMs: 300,
  1851. followFinger: !0,
  1852. allowTouchMove: !0,
  1853. threshold: 0,
  1854. touchMoveStopPropagation: !0,
  1855. touchReleaseOnEdges: !1,
  1856. uniqueNavElements: !0,
  1857. resistance: !0,
  1858. resistanceRatio: .85,
  1859. watchSlidesProgress: !1,
  1860. watchSlidesVisibility: !1,
  1861. grabCursor: !1,
  1862. preventClicks: !0,
  1863. preventClicksPropagation: !0,
  1864. slideToClickedSlide: !1,
  1865. preloadImages: !0,
  1866. updateOnImagesReady: !0,
  1867. loop: !1,
  1868. loopAdditionalSlides: 0,
  1869. loopedSlides: null,
  1870. loopFillGroupWithBlank: !1,
  1871. allowSlidePrev: !0,
  1872. allowSlideNext: !0,
  1873. swipeHandler: null,
  1874. noSwiping: !0,
  1875. noSwipingClass: "swiper-no-swiping",
  1876. noSwipingSelector: null,
  1877. passiveListeners: !0,
  1878. containerModifierClass: "swiper-container-",
  1879. slideClass: "swiper-slide",
  1880. slideBlankClass: "swiper-slide-invisible-blank",
  1881. slideActiveClass: "swiper-slide-active",
  1882. slideDuplicateActiveClass: "swiper-slide-duplicate-active",
  1883. slideVisibleClass: "swiper-slide-visible",
  1884. slideDuplicateClass: "swiper-slide-duplicate",
  1885. slideNextClass: "swiper-slide-next",
  1886. slideDuplicateNextClass: "swiper-slide-duplicate-next",
  1887. slidePrevClass: "swiper-slide-prev",
  1888. slideDuplicatePrevClass: "swiper-slide-duplicate-prev",
  1889. wrapperClass: "swiper-wrapper",
  1890. runCallbacksOnInit: !0
  1891. }
  1892. , M = {
  1893. update: u,
  1894. translate: v,
  1895. transition: f,
  1896. slide: m,
  1897. loop: g,
  1898. grabCursor: b,
  1899. manipulation: w,
  1900. events: E,
  1901. breakpoints: T,
  1902. checkOverflow: {
  1903. checkOverflow: function() {
  1904. var e = this.isLocked;
  1905. this.isLocked = 1 === this.snapGrid.length,
  1906. this.allowTouchMove = !this.isLocked,
  1907. e && e !== this.isLocked && (this.isEnd = !1,
  1908. this.navigation.update())
  1909. }
  1910. },
  1911. classes: {
  1912. addClasses: function() {
  1913. var e = this.classNames
  1914. , t = this.params
  1915. , i = this.rtl
  1916. , s = this.$el
  1917. , a = [];
  1918. a.push(t.direction),
  1919. t.freeMode && a.push("free-mode"),
  1920. h.flexbox || a.push("no-flexbox"),
  1921. t.autoHeight && a.push("autoheight"),
  1922. i && a.push("rtl"),
  1923. t.slidesPerColumn > 1 && a.push("multirow"),
  1924. y.android && a.push("android"),
  1925. y.ios && a.push("ios"),
  1926. S.isIE && (h.pointerEvents || h.prefixedPointerEvents) && a.push("wp8-" + t.direction),
  1927. a.forEach(function(i) {
  1928. e.push(t.containerModifierClass + i)
  1929. }),
  1930. s.addClass(e.join(" "))
  1931. },
  1932. removeClasses: function() {
  1933. var e = this.$el
  1934. , t = this.classNames;
  1935. e.removeClass(t.join(" "))
  1936. }
  1937. },
  1938. images: {
  1939. loadImage: function(e, i, s, a, r, n) {
  1940. var o;
  1941. function l() {
  1942. n && n()
  1943. }
  1944. e.complete && r ? l() : i ? ((o = new t.Image).onload = l,
  1945. o.onerror = l,
  1946. a && (o.sizes = a),
  1947. s && (o.srcset = s),
  1948. i && (o.src = i)) : l()
  1949. },
  1950. preloadImages: function() {
  1951. var e = this;
  1952. function t() {
  1953. void 0 !== e && null !== e && e && !e.destroyed && (void 0 !== e.imagesLoaded && (e.imagesLoaded += 1),
  1954. e.imagesLoaded === e.imagesToLoad.length && (e.params.updateOnImagesReady && e.update(),
  1955. e.emit("imagesReady")))
  1956. }
  1957. e.imagesToLoad = e.$el.find("img");
  1958. for (var i = 0; i < e.imagesToLoad.length; i += 1) {
  1959. var s = e.imagesToLoad[i];
  1960. e.loadImage(s, s.currentSrc || s.getAttribute("src"), s.srcset || s.getAttribute("srcset"), s.sizes || s.getAttribute("sizes"), !0, t)
  1961. }
  1962. }
  1963. }
  1964. }
  1965. , z = {}
  1966. , P = function(e) {
  1967. function t() {
  1968. for (var i, a, r, n = [], o = arguments.length; o--; )
  1969. n[o] = arguments[o];
  1970. 1 === n.length && n[0].constructor && n[0].constructor === Object ? r = n[0] : (a = (i = n)[0],
  1971. r = i[1]),
  1972. r || (r = {}),
  1973. r = d.extend({}, r),
  1974. a && !r.el && (r.el = a),
  1975. e.call(this, r),
  1976. Object.keys(M).forEach(function(e) {
  1977. Object.keys(M[e]).forEach(function(i) {
  1978. t.prototype[i] || (t.prototype[i] = M[e][i])
  1979. })
  1980. });
  1981. var l = this;
  1982. void 0 === l.modules && (l.modules = {}),
  1983. Object.keys(l.modules).forEach(function(e) {
  1984. var t = l.modules[e];
  1985. if (t.params) {
  1986. var i = Object.keys(t.params)[0]
  1987. , s = t.params[i];
  1988. if ("object" != typeof s)
  1989. return;
  1990. if (!(i in r && "enabled"in s))
  1991. return;
  1992. !0 === r[i] && (r[i] = {
  1993. enabled: !0
  1994. }),
  1995. "object" != typeof r[i] || "enabled"in r[i] || (r[i].enabled = !0),
  1996. r[i] || (r[i] = {
  1997. enabled: !1
  1998. })
  1999. }
  2000. });
  2001. var p = d.extend({}, C);
  2002. l.useModulesParams(p),
  2003. l.params = d.extend({}, p, z, r),
  2004. l.originalParams = d.extend({}, l.params),
  2005. l.passedParams = d.extend({}, r),
  2006. l.$ = s;
  2007. var c = s(l.params.el);
  2008. if (a = c[0]) {
  2009. if (c.length > 1) {
  2010. var u = [];
  2011. return c.each(function(e, i) {
  2012. var s = d.extend({}, r, {
  2013. el: i
  2014. });
  2015. u.push(new t(s))
  2016. }),
  2017. u
  2018. }
  2019. a.swiper = l,
  2020. c.data("swiper", l);
  2021. var v, f, m = c.children("." + l.params.wrapperClass);
  2022. return d.extend(l, {
  2023. $el: c,
  2024. el: a,
  2025. $wrapperEl: m,
  2026. wrapperEl: m[0],
  2027. classNames: [],
  2028. slides: s(),
  2029. slidesGrid: [],
  2030. snapGrid: [],
  2031. slidesSizesGrid: [],
  2032. isHorizontal: function() {
  2033. return "horizontal" === l.params.direction
  2034. },
  2035. isVertical: function() {
  2036. return "vertical" === l.params.direction
  2037. },
  2038. rtl: "rtl" === a.dir.toLowerCase() || "rtl" === c.css("direction"),
  2039. rtlTranslate: "horizontal" === l.params.direction && ("rtl" === a.dir.toLowerCase() || "rtl" === c.css("direction")),
  2040. wrongRTL: "-webkit-box" === m.css("display"),
  2041. activeIndex: 0,
  2042. realIndex: 0,
  2043. isBeginning: !0,
  2044. isEnd: !1,
  2045. translate: 0,
  2046. progress: 0,
  2047. velocity: 0,
  2048. animating: !1,
  2049. allowSlideNext: l.params.allowSlideNext,
  2050. allowSlidePrev: l.params.allowSlidePrev,
  2051. touchEvents: (v = ["touchstart", "touchmove", "touchend"],
  2052. f = ["mousedown", "mousemove", "mouseup"],
  2053. h.pointerEvents ? f = ["pointerdown", "pointermove", "pointerup"] : h.prefixedPointerEvents && (f = ["MSPointerDown", "MSPointerMove", "MSPointerUp"]),
  2054. l.touchEventsTouch = {
  2055. start: v[0],
  2056. move: v[1],
  2057. end: v[2]
  2058. },
  2059. l.touchEventsDesktop = {
  2060. start: f[0],
  2061. move: f[1],
  2062. end: f[2]
  2063. },
  2064. h.touch || !l.params.simulateTouch ? l.touchEventsTouch : l.touchEventsDesktop),
  2065. touchEventsData: {
  2066. isTouched: void 0,
  2067. isMoved: void 0,
  2068. allowTouchCallbacks: void 0,
  2069. touchStartTime: void 0,
  2070. isScrolling: void 0,
  2071. currentTranslate: void 0,
  2072. startTranslate: void 0,
  2073. allowThresholdMove: void 0,
  2074. formElements: "input, select, option, textarea, button, video",
  2075. lastClickTime: d.now(),
  2076. clickTimeout: void 0,
  2077. velocities: [],
  2078. allowMomentumBounce: void 0,
  2079. isTouchEvent: void 0,
  2080. startMoving: void 0
  2081. },
  2082. allowClick: !0,
  2083. allowTouchMove: l.params.allowTouchMove,
  2084. touches: {
  2085. startX: 0,
  2086. startY: 0,
  2087. currentX: 0,
  2088. currentY: 0,
  2089. diff: 0
  2090. },
  2091. imagesToLoad: [],
  2092. imagesLoaded: 0
  2093. }),
  2094. l.useModules(),
  2095. l.params.init && l.init(),
  2096. l
  2097. }
  2098. }
  2099. e && (t.__proto__ = e),
  2100. t.prototype = Object.create(e && e.prototype),
  2101. t.prototype.constructor = t;
  2102. var i = {
  2103. extendedDefaults: {
  2104. configurable: !0
  2105. },
  2106. defaults: {
  2107. configurable: !0
  2108. },
  2109. Class: {
  2110. configurable: !0
  2111. },
  2112. $: {
  2113. configurable: !0
  2114. }
  2115. };
  2116. return t.prototype.slidesPerViewDynamic = function() {
  2117. var e = this.params
  2118. , t = this.slides
  2119. , i = this.slidesGrid
  2120. , s = this.size
  2121. , a = this.activeIndex
  2122. , r = 1;
  2123. if (e.centeredSlides) {
  2124. for (var n, o = t[a].swiperSlideSize, l = a + 1; l < t.length; l += 1)
  2125. t[l] && !n && (r += 1,
  2126. (o += t[l].swiperSlideSize) > s && (n = !0));
  2127. for (var d = a - 1; d >= 0; d -= 1)
  2128. t[d] && !n && (r += 1,
  2129. (o += t[d].swiperSlideSize) > s && (n = !0))
  2130. } else
  2131. for (var h = a + 1; h < t.length; h += 1)
  2132. i[h] - i[a] < s && (r += 1);
  2133. return r
  2134. }
  2135. ,
  2136. t.prototype.update = function() {
  2137. var e = this;
  2138. e && !e.destroyed && (e.updateSize(),
  2139. e.updateSlides(),
  2140. e.updateProgress(),
  2141. e.updateSlidesClasses(),
  2142. e.params.freeMode ? (t(),
  2143. e.params.autoHeight && e.updateAutoHeight()) : (("auto" === e.params.slidesPerView || e.params.slidesPerView > 1) && e.isEnd && !e.params.centeredSlides ? e.slideTo(e.slides.length - 1, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0)) || t(),
  2144. e.emit("update"));
  2145. function t() {
  2146. var t = e.rtlTranslate ? -1 * e.translate : e.translate
  2147. , i = Math.min(Math.max(t, e.maxTranslate()), e.minTranslate());
  2148. e.setTranslate(i),
  2149. e.updateActiveIndex(),
  2150. e.updateSlidesClasses()
  2151. }
  2152. }
  2153. ,
  2154. t.prototype.init = function() {
  2155. this.initialized || (this.emit("beforeInit"),
  2156. this.params.breakpoints && this.setBreakpoint(),
  2157. this.addClasses(),
  2158. this.params.loop && this.loopCreate(),
  2159. this.updateSize(),
  2160. this.updateSlides(),
  2161. this.params.watchOverflow && this.checkOverflow(),
  2162. this.params.grabCursor && this.setGrabCursor(),
  2163. this.params.preloadImages && this.preloadImages(),
  2164. this.params.loop ? this.slideTo(this.params.initialSlide + this.loopedSlides, 0, this.params.runCallbacksOnInit) : this.slideTo(this.params.initialSlide, 0, this.params.runCallbacksOnInit),
  2165. this.attachEvents(),
  2166. this.initialized = !0,
  2167. this.emit("init"))
  2168. }
  2169. ,
  2170. t.prototype.destroy = function(e, t) {
  2171. void 0 === e && (e = !0),
  2172. void 0 === t && (t = !0);
  2173. var i = this
  2174. , s = i.params
  2175. , a = i.$el
  2176. , r = i.$wrapperEl
  2177. , n = i.slides;
  2178. i.emit("beforeDestroy"),
  2179. i.initialized = !1,
  2180. i.detachEvents(),
  2181. s.loop && i.loopDestroy(),
  2182. t && (i.removeClasses(),
  2183. a.removeAttr("style"),
  2184. r.removeAttr("style"),
  2185. n && n.length && n.removeClass([s.slideVisibleClass, s.slideActiveClass, s.slideNextClass, s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),
  2186. i.emit("destroy"),
  2187. Object.keys(i.eventsListeners).forEach(function(e) {
  2188. i.off(e)
  2189. }),
  2190. !1 !== e && (i.$el[0].swiper = null,
  2191. i.$el.data("swiper", null),
  2192. d.deleteProps(i)),
  2193. i.destroyed = !0
  2194. }
  2195. ,
  2196. t.extendDefaults = function(e) {
  2197. d.extend(z, e)
  2198. }
  2199. ,
  2200. i.extendedDefaults.get = function() {
  2201. return z
  2202. }
  2203. ,
  2204. i.defaults.get = function() {
  2205. return C
  2206. }
  2207. ,
  2208. i.Class.get = function() {
  2209. return e
  2210. }
  2211. ,
  2212. i.$.get = function() {
  2213. return s
  2214. }
  2215. ,
  2216. Object.defineProperties(t, i),
  2217. t
  2218. }(p)
  2219. , k = {
  2220. name: "device",
  2221. proto: {
  2222. device: y
  2223. },
  2224. static: {
  2225. device: y
  2226. }
  2227. }
  2228. , $ = {
  2229. name: "support",
  2230. proto: {
  2231. support: h
  2232. },
  2233. static: {
  2234. support: h
  2235. }
  2236. }
  2237. , L = {
  2238. name: "browser",
  2239. proto: {
  2240. browser: S
  2241. },
  2242. static: {
  2243. browser: S
  2244. }
  2245. }
  2246. , I = {
  2247. name: "resize",
  2248. create: function() {
  2249. var e = this;
  2250. d.extend(e, {
  2251. resize: {
  2252. resizeHandler: function() {
  2253. e && !e.destroyed && e.initialized && (e.emit("beforeResize"),
  2254. e.emit("resize"))
  2255. },
  2256. orientationChangeHandler: function() {
  2257. e && !e.destroyed && e.initialized && e.emit("orientationchange")
  2258. }
  2259. }
  2260. })
  2261. },
  2262. on: {
  2263. init: function() {
  2264. t.addEventListener("resize", this.resize.resizeHandler),
  2265. t.addEventListener("orientationchange", this.resize.orientationChangeHandler)
  2266. },
  2267. destroy: function() {
  2268. t.removeEventListener("resize", this.resize.resizeHandler),
  2269. t.removeEventListener("orientationchange", this.resize.orientationChangeHandler)
  2270. }
  2271. }
  2272. }
  2273. , D = {
  2274. func: t.MutationObserver || t.WebkitMutationObserver,
  2275. attach: function(e, t) {
  2276. void 0 === t && (t = {});
  2277. var i = this
  2278. , s = new (0,
  2279. D.func)(function(e) {
  2280. e.forEach(function(e) {
  2281. i.emit("observerUpdate", e)
  2282. })
  2283. }
  2284. );
  2285. s.observe(e, {
  2286. attributes: void 0 === t.attributes || t.attributes,
  2287. childList: void 0 === t.childList || t.childList,
  2288. characterData: void 0 === t.characterData || t.characterData
  2289. }),
  2290. i.observer.observers.push(s)
  2291. },
  2292. init: function() {
  2293. if (h.observer && this.params.observer) {
  2294. if (this.params.observeParents)
  2295. for (var e = this.$el.parents(), t = 0; t < e.length; t += 1)
  2296. this.observer.attach(e[t]);
  2297. this.observer.attach(this.$el[0], {
  2298. childList: !1
  2299. }),
  2300. this.observer.attach(this.$wrapperEl[0], {
  2301. attributes: !1
  2302. })
  2303. }
  2304. },
  2305. destroy: function() {
  2306. this.observer.observers.forEach(function(e) {
  2307. e.disconnect()
  2308. }),
  2309. this.observer.observers = []
  2310. }
  2311. }
  2312. , O = {
  2313. name: "observer",
  2314. params: {
  2315. observer: !1,
  2316. observeParents: !1
  2317. },
  2318. create: function() {
  2319. d.extend(this, {
  2320. observer: {
  2321. init: D.init.bind(this),
  2322. attach: D.attach.bind(this),
  2323. destroy: D.destroy.bind(this),
  2324. observers: []
  2325. }
  2326. })
  2327. },
  2328. on: {
  2329. init: function() {
  2330. this.observer.init()
  2331. },
  2332. destroy: function() {
  2333. this.observer.destroy()
  2334. }
  2335. }
  2336. }
  2337. , A = {
  2338. update: function(e) {
  2339. var t = this
  2340. , i = t.params
  2341. , s = i.slidesPerView
  2342. , a = i.slidesPerGroup
  2343. , r = i.centeredSlides
  2344. , n = t.virtual
  2345. , o = n.from
  2346. , l = n.to
  2347. , h = n.slides
  2348. , p = n.slidesGrid
  2349. , c = n.renderSlide
  2350. , u = n.offset;
  2351. t.updateActiveIndex();
  2352. var v, f, m, g = t.activeIndex || 0;
  2353. v = t.rtlTranslate ? "right" : t.isHorizontal() ? "left" : "top",
  2354. r ? (f = Math.floor(s / 2) + a,
  2355. m = Math.floor(s / 2) + a) : (f = s + (a - 1),
  2356. m = a);
  2357. var b = Math.max((g || 0) - m, 0)
  2358. , w = Math.min((g || 0) + f, h.length - 1)
  2359. , y = (t.slidesGrid[b] || 0) - (t.slidesGrid[0] || 0);
  2360. function x() {
  2361. t.updateSlides(),
  2362. t.updateProgress(),
  2363. t.updateSlidesClasses(),
  2364. t.lazy && t.params.lazy.enabled && t.lazy.load()
  2365. }
  2366. if (d.extend(t.virtual, {
  2367. from: b,
  2368. to: w,
  2369. offset: y,
  2370. slidesGrid: t.slidesGrid
  2371. }),
  2372. o === b && l === w && !e)
  2373. return t.slidesGrid !== p && y !== u && t.slides.css(v, y + "px"),
  2374. void t.updateProgress();
  2375. if (t.params.virtual.renderExternal)
  2376. return t.params.virtual.renderExternal.call(t, {
  2377. offset: y,
  2378. from: b,
  2379. to: w,
  2380. slides: function() {
  2381. for (var e = [], t = b; t <= w; t += 1)
  2382. e.push(h[t]);
  2383. return e
  2384. }()
  2385. }),
  2386. void x();
  2387. var E = []
  2388. , T = [];
  2389. if (e)
  2390. t.$wrapperEl.find("." + t.params.slideClass).remove();
  2391. else
  2392. for (var S = o; S <= l; S += 1)
  2393. (S < b || S > w) && t.$wrapperEl.find("." + t.params.slideClass + '[data-swiper-slide-index="' + S + '"]').remove();
  2394. for (var C = 0; C < h.length; C += 1)
  2395. C >= b && C <= w && (void 0 === l || e ? T.push(C) : (C > l && T.push(C),
  2396. C < o && E.push(C)));
  2397. T.forEach(function(e) {
  2398. t.$wrapperEl.append(c(h[e], e))
  2399. }),
  2400. E.sort(function(e, t) {
  2401. return e < t
  2402. }).forEach(function(e) {
  2403. t.$wrapperEl.prepend(c(h[e], e))
  2404. }),
  2405. t.$wrapperEl.children(".swiper-slide").css(v, y + "px"),
  2406. x()
  2407. },
  2408. renderSlide: function(e, t) {
  2409. var i = this.params.virtual;
  2410. if (i.cache && this.virtual.cache[t])
  2411. return this.virtual.cache[t];
  2412. var a = i.renderSlide ? s(i.renderSlide.call(this, e, t)) : s('<div class="' + this.params.slideClass + '" data-swiper-slide-index="' + t + '">' + e + "</div>");
  2413. return a.attr("data-swiper-slide-index") || a.attr("data-swiper-slide-index", t),
  2414. i.cache && (this.virtual.cache[t] = a),
  2415. a
  2416. },
  2417. appendSlide: function(e) {
  2418. this.virtual.slides.push(e),
  2419. this.virtual.update(!0)
  2420. },
  2421. prependSlide: function(e) {
  2422. if (this.virtual.slides.unshift(e),
  2423. this.params.virtual.cache) {
  2424. var t = this.virtual.cache
  2425. , i = {};
  2426. Object.keys(t).forEach(function(e) {
  2427. i[e + 1] = t[e]
  2428. }),
  2429. this.virtual.cache = i
  2430. }
  2431. this.virtual.update(!0),
  2432. this.slideNext(0)
  2433. }
  2434. }
  2435. , H = {
  2436. name: "virtual",
  2437. params: {
  2438. virtual: {
  2439. enabled: !1,
  2440. slides: [],
  2441. cache: !0,
  2442. renderSlide: null,
  2443. renderExternal: null
  2444. }
  2445. },
  2446. create: function() {
  2447. d.extend(this, {
  2448. virtual: {
  2449. update: A.update.bind(this),
  2450. appendSlide: A.appendSlide.bind(this),
  2451. prependSlide: A.prependSlide.bind(this),
  2452. renderSlide: A.renderSlide.bind(this),
  2453. slides: this.params.virtual.slides,
  2454. cache: {}
  2455. }
  2456. })
  2457. },
  2458. on: {
  2459. beforeInit: function() {
  2460. if (this.params.virtual.enabled) {
  2461. this.classNames.push(this.params.containerModifierClass + "virtual");
  2462. var e = {
  2463. watchSlidesProgress: !0
  2464. };
  2465. d.extend(this.params, e),
  2466. d.extend(this.originalParams, e),
  2467. this.virtual.update()
  2468. }
  2469. },
  2470. setTranslate: function() {
  2471. this.params.virtual.enabled && this.virtual.update()
  2472. }
  2473. }
  2474. }
  2475. , N = {
  2476. handle: function(i) {
  2477. var s = this.rtlTranslate
  2478. , a = i;
  2479. a.originalEvent && (a = a.originalEvent);
  2480. var r = a.keyCode || a.charCode;
  2481. if (!this.allowSlideNext && (this.isHorizontal() && 39 === r || this.isVertical() && 40 === r))
  2482. return !1;
  2483. if (!this.allowSlidePrev && (this.isHorizontal() && 37 === r || this.isVertical() && 38 === r))
  2484. return !1;
  2485. if (!(a.shiftKey || a.altKey || a.ctrlKey || a.metaKey || e.activeElement && e.activeElement.nodeName && ("input" === e.activeElement.nodeName.toLowerCase() || "textarea" === e.activeElement.nodeName.toLowerCase()))) {
  2486. if (this.params.keyboard.onlyInViewport && (37 === r || 39 === r || 38 === r || 40 === r)) {
  2487. var n = !1;
  2488. if (this.$el.parents("." + this.params.slideClass).length > 0 && 0 === this.$el.parents("." + this.params.slideActiveClass).length)
  2489. return;
  2490. var o = t.innerWidth
  2491. , l = t.innerHeight
  2492. , d = this.$el.offset();
  2493. s && (d.left -= this.$el[0].scrollLeft);
  2494. for (var h = [[d.left, d.top], [d.left + this.width, d.top], [d.left, d.top + this.height], [d.left + this.width, d.top + this.height]], p = 0; p < h.length; p += 1) {
  2495. var c = h[p];
  2496. c[0] >= 0 && c[0] <= o && c[1] >= 0 && c[1] <= l && (n = !0)
  2497. }
  2498. if (!n)
  2499. return
  2500. }
  2501. this.isHorizontal() ? (37 !== r && 39 !== r || (a.preventDefault ? a.preventDefault() : a.returnValue = !1),
  2502. (39 === r && !s || 37 === r && s) && this.slideNext(),
  2503. (37 === r && !s || 39 === r && s) && this.slidePrev()) : (38 !== r && 40 !== r || (a.preventDefault ? a.preventDefault() : a.returnValue = !1),
  2504. 40 === r && this.slideNext(),
  2505. 38 === r && this.slidePrev()),
  2506. this.emit("keyPress", r)
  2507. }
  2508. },
  2509. enable: function() {
  2510. this.keyboard.enabled || (s(e).on("keydown", this.keyboard.handle),
  2511. this.keyboard.enabled = !0)
  2512. },
  2513. disable: function() {
  2514. this.keyboard.enabled && (s(e).off("keydown", this.keyboard.handle),
  2515. this.keyboard.enabled = !1)
  2516. }
  2517. }
  2518. , B = {
  2519. name: "keyboard",
  2520. params: {
  2521. keyboard: {
  2522. enabled: !1,
  2523. onlyInViewport: !0
  2524. }
  2525. },
  2526. create: function() {
  2527. d.extend(this, {
  2528. keyboard: {
  2529. enabled: !1,
  2530. enable: N.enable.bind(this),
  2531. disable: N.disable.bind(this),
  2532. handle: N.handle.bind(this)
  2533. }
  2534. })
  2535. },
  2536. on: {
  2537. init: function() {
  2538. this.params.keyboard.enabled && this.keyboard.enable()
  2539. },
  2540. destroy: function() {
  2541. this.keyboard.enabled && this.keyboard.disable()
  2542. }
  2543. }
  2544. };
  2545. var G = {
  2546. lastScrollTime: d.now(),
  2547. event: t.navigator.userAgent.indexOf("firefox") > -1 ? "DOMMouseScroll" : function() {
  2548. var t = "onwheel"in e;
  2549. if (!t) {
  2550. var i = e.createElement("div");
  2551. i.setAttribute("onwheel", "return;"),
  2552. t = "function" == typeof i.onwheel
  2553. }
  2554. return !t && e.implementation && e.implementation.hasFeature && !0 !== e.implementation.hasFeature("", "") && (t = e.implementation.hasFeature("Events.wheel", "3.0")),
  2555. t
  2556. }() ? "wheel" : "mousewheel",
  2557. normalize: function(e) {
  2558. var t = 0
  2559. , i = 0
  2560. , s = 0
  2561. , a = 0;
  2562. return "detail"in e && (i = e.detail),
  2563. "wheelDelta"in e && (i = -e.wheelDelta / 120),
  2564. "wheelDeltaY"in e && (i = -e.wheelDeltaY / 120),
  2565. "wheelDeltaX"in e && (t = -e.wheelDeltaX / 120),
  2566. "axis"in e && e.axis === e.HORIZONTAL_AXIS && (t = i,
  2567. i = 0),
  2568. s = 10 * t,
  2569. a = 10 * i,
  2570. "deltaY"in e && (a = e.deltaY),
  2571. "deltaX"in e && (s = e.deltaX),
  2572. (s || a) && e.deltaMode && (1 === e.deltaMode ? (s *= 40,
  2573. a *= 40) : (s *= 800,
  2574. a *= 800)),
  2575. s && !t && (t = s < 1 ? -1 : 1),
  2576. a && !i && (i = a < 1 ? -1 : 1),
  2577. {
  2578. spinX: t,
  2579. spinY: i,
  2580. pixelX: s,
  2581. pixelY: a
  2582. }
  2583. },
  2584. handleMouseEnter: function() {
  2585. this.mouseEntered = !0
  2586. },
  2587. handleMouseLeave: function() {
  2588. this.mouseEntered = !1
  2589. },
  2590. handle: function(e) {
  2591. var i = e
  2592. , s = this
  2593. , a = s.params.mousewheel;
  2594. if (!s.mouseEntered && !a.releaseOnEdges)
  2595. return !0;
  2596. i.originalEvent && (i = i.originalEvent);
  2597. var r = 0
  2598. , n = s.rtlTranslate ? -1 : 1
  2599. , o = G.normalize(i);
  2600. if (a.forceToAxis)
  2601. if (s.isHorizontal()) {
  2602. if (!(Math.abs(o.pixelX) > Math.abs(o.pixelY)))
  2603. return !0;
  2604. r = o.pixelX * n
  2605. } else {
  2606. if (!(Math.abs(o.pixelY) > Math.abs(o.pixelX)))
  2607. return !0;
  2608. r = o.pixelY
  2609. }
  2610. else
  2611. r = Math.abs(o.pixelX) > Math.abs(o.pixelY) ? -o.pixelX * n : -o.pixelY;
  2612. if (0 === r)
  2613. return !0;
  2614. if (a.invert && (r = -r),
  2615. s.params.freeMode) {
  2616. var l = s.getTranslate() + r * a.sensitivity
  2617. , h = s.isBeginning
  2618. , p = s.isEnd;
  2619. if (l >= s.minTranslate() && (l = s.minTranslate()),
  2620. l <= s.maxTranslate() && (l = s.maxTranslate()),
  2621. s.setTransition(0),
  2622. s.setTranslate(l),
  2623. s.updateProgress(),
  2624. s.updateActiveIndex(),
  2625. s.updateSlidesClasses(),
  2626. (!h && s.isBeginning || !p && s.isEnd) && s.updateSlidesClasses(),
  2627. s.params.freeModeSticky && (clearTimeout(s.mousewheel.timeout),
  2628. s.mousewheel.timeout = d.nextTick(function() {
  2629. s.slideToClosest()
  2630. }, 300)),
  2631. s.emit("scroll", i),
  2632. s.params.autoplay && s.params.autoplayDisableOnInteraction && s.stopAutoplay(),
  2633. l === s.minTranslate() || l === s.maxTranslate())
  2634. return !0
  2635. } else {
  2636. if (d.now() - s.mousewheel.lastScrollTime > 60)
  2637. if (r < 0)
  2638. if (s.isEnd && !s.params.loop || s.animating) {
  2639. if (a.releaseOnEdges)
  2640. return !0
  2641. } else
  2642. s.slideNext(),
  2643. s.emit("scroll", i);
  2644. else if (s.isBeginning && !s.params.loop || s.animating) {
  2645. if (a.releaseOnEdges)
  2646. return !0
  2647. } else
  2648. s.slidePrev(),
  2649. s.emit("scroll", i);
  2650. s.mousewheel.lastScrollTime = (new t.Date).getTime()
  2651. }
  2652. return i.preventDefault ? i.preventDefault() : i.returnValue = !1,
  2653. !1
  2654. },
  2655. enable: function() {
  2656. if (!G.event)
  2657. return !1;
  2658. if (this.mousewheel.enabled)
  2659. return !1;
  2660. var e = this.$el;
  2661. return "container" !== this.params.mousewheel.eventsTarged && (e = s(this.params.mousewheel.eventsTarged)),
  2662. e.on("mouseenter", this.mousewheel.handleMouseEnter),
  2663. e.on("mouseleave", this.mousewheel.handleMouseLeave),
  2664. e.on(G.event, this.mousewheel.handle),
  2665. this.mousewheel.enabled = !0,
  2666. !0
  2667. },
  2668. disable: function() {
  2669. if (!G.event)
  2670. return !1;
  2671. if (!this.mousewheel.enabled)
  2672. return !1;
  2673. var e = this.$el;
  2674. return "container" !== this.params.mousewheel.eventsTarged && (e = s(this.params.mousewheel.eventsTarged)),
  2675. e.off(G.event, this.mousewheel.handle),
  2676. this.mousewheel.enabled = !1,
  2677. !0
  2678. }
  2679. }
  2680. , X = {
  2681. update: function() {
  2682. var e = this.params.navigation;
  2683. if (!this.params.loop) {
  2684. var t = this.navigation
  2685. , i = t.$nextEl
  2686. , s = t.$prevEl;
  2687. s && s.length > 0 && (this.isBeginning ? s.addClass(e.disabledClass) : s.removeClass(e.disabledClass),
  2688. s[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](e.lockClass)),
  2689. i && i.length > 0 && (this.isEnd ? i.addClass(e.disabledClass) : i.removeClass(e.disabledClass),
  2690. i[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](e.lockClass))
  2691. }
  2692. },
  2693. init: function() {
  2694. var e, t, i = this, a = i.params.navigation;
  2695. (a.nextEl || a.prevEl) && (a.nextEl && (e = s(a.nextEl),
  2696. i.params.uniqueNavElements && "string" == typeof a.nextEl && e.length > 1 && 1 === i.$el.find(a.nextEl).length && (e = i.$el.find(a.nextEl))),
  2697. a.prevEl && (t = s(a.prevEl),
  2698. i.params.uniqueNavElements && "string" == typeof a.prevEl && t.length > 1 && 1 === i.$el.find(a.prevEl).length && (t = i.$el.find(a.prevEl))),
  2699. e && e.length > 0 && e.on("click", function(e) {
  2700. e.preventDefault(),
  2701. i.isEnd && !i.params.loop || i.slideNext()
  2702. }),
  2703. t && t.length > 0 && t.on("click", function(e) {
  2704. e.preventDefault(),
  2705. i.isBeginning && !i.params.loop || i.slidePrev()
  2706. }),
  2707. d.extend(i.navigation, {
  2708. $nextEl: e,
  2709. nextEl: e && e[0],
  2710. $prevEl: t,
  2711. prevEl: t && t[0]
  2712. }))
  2713. },
  2714. destroy: function() {
  2715. var e = this.navigation
  2716. , t = e.$nextEl
  2717. , i = e.$prevEl;
  2718. t && t.length && (t.off("click"),
  2719. t.removeClass(this.params.navigation.disabledClass)),
  2720. i && i.length && (i.off("click"),
  2721. i.removeClass(this.params.navigation.disabledClass))
  2722. }
  2723. }
  2724. , Y = {
  2725. update: function() {
  2726. var e = this.rtl
  2727. , t = this.params.pagination;
  2728. if (t.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) {
  2729. var i, a = this.virtual && this.params.virtual.enabled ? this.virtual.slides.length : this.slides.length, r = this.pagination.$el, n = this.params.loop ? Math.ceil((a - 2 * this.loopedSlides) / this.params.slidesPerGroup) : this.snapGrid.length;
  2730. if (this.params.loop ? ((i = Math.ceil((this.activeIndex - this.loopedSlides) / this.params.slidesPerGroup)) > a - 1 - 2 * this.loopedSlides && (i -= a - 2 * this.loopedSlides),
  2731. i > n - 1 && (i -= n),
  2732. i < 0 && "bullets" !== this.params.paginationType && (i = n + i)) : i = void 0 !== this.snapIndex ? this.snapIndex : this.activeIndex || 0,
  2733. "bullets" === t.type && this.pagination.bullets && this.pagination.bullets.length > 0) {
  2734. var o, l, d, h = this.pagination.bullets;
  2735. if (t.dynamicBullets && (this.pagination.bulletSize = h.eq(0)[this.isHorizontal() ? "outerWidth" : "outerHeight"](!0),
  2736. r.css(this.isHorizontal() ? "width" : "height", this.pagination.bulletSize * (t.dynamicMainBullets + 4) + "px"),
  2737. t.dynamicMainBullets > 1 && void 0 !== this.previousIndex && (this.pagination.dynamicBulletIndex += i - this.previousIndex,
  2738. this.pagination.dynamicBulletIndex > t.dynamicMainBullets - 1 ? this.pagination.dynamicBulletIndex = t.dynamicMainBullets - 1 : this.pagination.dynamicBulletIndex < 0 && (this.pagination.dynamicBulletIndex = 0)),
  2739. o = i - this.pagination.dynamicBulletIndex,
  2740. d = ((l = o + (Math.min(h.length, t.dynamicMainBullets) - 1)) + o) / 2),
  2741. h.removeClass(t.bulletActiveClass + " " + t.bulletActiveClass + "-next " + t.bulletActiveClass + "-next-next " + t.bulletActiveClass + "-prev " + t.bulletActiveClass + "-prev-prev " + t.bulletActiveClass + "-main"),
  2742. r.length > 1)
  2743. h.each(function(e, a) {
  2744. var r = s(a)
  2745. , n = r.index();
  2746. n === i && r.addClass(t.bulletActiveClass),
  2747. t.dynamicBullets && (n >= o && n <= l && r.addClass(t.bulletActiveClass + "-main"),
  2748. n === o && r.prev().addClass(t.bulletActiveClass + "-prev").prev().addClass(t.bulletActiveClass + "-prev-prev"),
  2749. n === l && r.next().addClass(t.bulletActiveClass + "-next").next().addClass(t.bulletActiveClass + "-next-next"))
  2750. });
  2751. else if (h.eq(i).addClass(t.bulletActiveClass),
  2752. t.dynamicBullets) {
  2753. for (var p = h.eq(o), c = h.eq(l), u = o; u <= l; u += 1)
  2754. h.eq(u).addClass(t.bulletActiveClass + "-main");
  2755. p.prev().addClass(t.bulletActiveClass + "-prev").prev().addClass(t.bulletActiveClass + "-prev-prev"),
  2756. c.next().addClass(t.bulletActiveClass + "-next").next().addClass(t.bulletActiveClass + "-next-next")
  2757. }
  2758. if (t.dynamicBullets) {
  2759. var v = Math.min(h.length, t.dynamicMainBullets + 4)
  2760. , f = (this.pagination.bulletSize * v - this.pagination.bulletSize) / 2 - d * this.pagination.bulletSize
  2761. , m = e ? "right" : "left";
  2762. h.css(this.isHorizontal() ? m : "top", f + "px")
  2763. }
  2764. }
  2765. if ("fraction" === t.type && (r.find("." + t.currentClass).text(i + 1),
  2766. r.find("." + t.totalClass).text(n)),
  2767. "progressbar" === t.type) {
  2768. var g = (i + 1) / n
  2769. , b = g
  2770. , w = 1;
  2771. this.isHorizontal() || (w = g,
  2772. b = 1),
  2773. r.find("." + t.progressbarFillClass).transform("translate3d(0,0,0) scaleX(" + b + ") scaleY(" + w + ")").transition(this.params.speed)
  2774. }
  2775. "custom" === t.type && t.renderCustom ? (r.html(t.renderCustom(this, i + 1, n)),
  2776. this.emit("paginationRender", this, r[0])) : this.emit("paginationUpdate", this, r[0]),
  2777. r[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](t.lockClass)
  2778. }
  2779. },
  2780. render: function() {
  2781. var e = this.params.pagination;
  2782. if (e.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) {
  2783. var t = this.virtual && this.params.virtual.enabled ? this.virtual.slides.length : this.slides.length
  2784. , i = this.pagination.$el
  2785. , s = "";
  2786. if ("bullets" === e.type) {
  2787. for (var a = this.params.loop ? Math.ceil((t - 2 * this.loopedSlides) / this.params.slidesPerGroup) : this.snapGrid.length, r = 0; r < a; r += 1)
  2788. e.renderBullet ? s += e.renderBullet.call(this, r, e.bulletClass) : s += "<" + e.bulletElement + ' class="' + e.bulletClass + '"></' + e.bulletElement + ">";
  2789. i.html(s),
  2790. this.pagination.bullets = i.find("." + e.bulletClass)
  2791. }
  2792. "fraction" === e.type && (s = e.renderFraction ? e.renderFraction.call(this, e.currentClass, e.totalClass) : '<span class="' + e.currentClass + '"></span> / <span class="' + e.totalClass + '"></span>',
  2793. i.html(s)),
  2794. "progressbar" === e.type && (s = e.renderProgressbar ? e.renderProgressbar.call(this, e.progressbarFillClass) : '<span class="' + e.progressbarFillClass + '"></span>',
  2795. i.html(s)),
  2796. "custom" !== e.type && this.emit("paginationRender", this.pagination.$el[0])
  2797. }
  2798. },
  2799. init: function() {
  2800. var e = this
  2801. , t = e.params.pagination;
  2802. if (t.el) {
  2803. var i = s(t.el);
  2804. 0 !== i.length && (e.params.uniqueNavElements && "string" == typeof t.el && i.length > 1 && 1 === e.$el.find(t.el).length && (i = e.$el.find(t.el)),
  2805. "bullets" === t.type && t.clickable && i.addClass(t.clickableClass),
  2806. i.addClass(t.modifierClass + t.type),
  2807. "bullets" === t.type && t.dynamicBullets && (i.addClass("" + t.modifierClass + t.type + "-dynamic"),
  2808. e.pagination.dynamicBulletIndex = 0,
  2809. t.dynamicMainBullets < 1 && (t.dynamicMainBullets = 1)),
  2810. t.clickable && i.on("click", "." + t.bulletClass, function(t) {
  2811. t.preventDefault();
  2812. var i = s(this).index() * e.params.slidesPerGroup;
  2813. e.params.loop && (i += e.loopedSlides),
  2814. e.slideTo(i)
  2815. }),
  2816. d.extend(e.pagination, {
  2817. $el: i,
  2818. el: i[0]
  2819. }))
  2820. }
  2821. },
  2822. destroy: function() {
  2823. var e = this.params.pagination;
  2824. if (e.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) {
  2825. var t = this.pagination.$el;
  2826. t.removeClass(e.hiddenClass),
  2827. t.removeClass(e.modifierClass + e.type),
  2828. this.pagination.bullets && this.pagination.bullets.removeClass(e.bulletActiveClass),
  2829. e.clickable && t.off("click", "." + e.bulletClass)
  2830. }
  2831. }
  2832. }
  2833. , V = {
  2834. setTranslate: function() {
  2835. if (this.params.scrollbar.el && this.scrollbar.el) {
  2836. var e = this.scrollbar
  2837. , t = this.rtlTranslate
  2838. , i = this.progress
  2839. , s = e.dragSize
  2840. , a = e.trackSize
  2841. , r = e.$dragEl
  2842. , n = e.$el
  2843. , o = this.params.scrollbar
  2844. , l = s
  2845. , d = (a - s) * i;
  2846. t ? (d = -d) > 0 ? (l = s - d,
  2847. d = 0) : -d + s > a && (l = a + d) : d < 0 ? (l = s + d,
  2848. d = 0) : d + s > a && (l = a - d),
  2849. this.isHorizontal() ? (h.transforms3d ? r.transform("translate3d(" + d + "px, 0, 0)") : r.transform("translateX(" + d + "px)"),
  2850. r[0].style.width = l + "px") : (h.transforms3d ? r.transform("translate3d(0px, " + d + "px, 0)") : r.transform("translateY(" + d + "px)"),
  2851. r[0].style.height = l + "px"),
  2852. o.hide && (clearTimeout(this.scrollbar.timeout),
  2853. n[0].style.opacity = 1,
  2854. this.scrollbar.timeout = setTimeout(function() {
  2855. n[0].style.opacity = 0,
  2856. n.transition(400)
  2857. }, 1e3))
  2858. }
  2859. },
  2860. setTransition: function(e) {
  2861. this.params.scrollbar.el && this.scrollbar.el && this.scrollbar.$dragEl.transition(e)
  2862. },
  2863. updateSize: function() {
  2864. if (this.params.scrollbar.el && this.scrollbar.el) {
  2865. var e = this.scrollbar
  2866. , t = e.$dragEl
  2867. , i = e.$el;
  2868. t[0].style.width = "",
  2869. t[0].style.height = "";
  2870. var s, a = this.isHorizontal() ? i[0].offsetWidth : i[0].offsetHeight, r = this.size / this.virtualSize, n = r * (a / this.size);
  2871. s = "auto" === this.params.scrollbar.dragSize ? a * r : parseInt(this.params.scrollbar.dragSize, 10),
  2872. this.isHorizontal() ? t[0].style.width = s + "px" : t[0].style.height = s + "px",
  2873. i[0].style.display = r >= 1 ? "none" : "",
  2874. this.params.scrollbarHide && (i[0].style.opacity = 0),
  2875. d.extend(e, {
  2876. trackSize: a,
  2877. divider: r,
  2878. moveDivider: n,
  2879. dragSize: s
  2880. }),
  2881. e.$el[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](this.params.scrollbar.lockClass)
  2882. }
  2883. },
  2884. setDragPosition: function(e) {
  2885. var t, i = this.scrollbar, s = this.rtlTranslate, a = i.$el, r = i.dragSize, n = i.trackSize;
  2886. t = ((this.isHorizontal() ? "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX || e.clientX : "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY || e.clientY) - a.offset()[this.isHorizontal() ? "left" : "top"] - r / 2) / (n - r),
  2887. t = Math.max(Math.min(t, 1), 0),
  2888. s && (t = 1 - t);
  2889. var o = this.minTranslate() + (this.maxTranslate() - this.minTranslate()) * t;
  2890. this.updateProgress(o),
  2891. this.setTranslate(o),
  2892. this.updateActiveIndex(),
  2893. this.updateSlidesClasses()
  2894. },
  2895. onDragStart: function(e) {
  2896. var t = this.params.scrollbar
  2897. , i = this.scrollbar
  2898. , s = this.$wrapperEl
  2899. , a = i.$el
  2900. , r = i.$dragEl;
  2901. this.scrollbar.isTouched = !0,
  2902. e.preventDefault(),
  2903. e.stopPropagation(),
  2904. s.transition(100),
  2905. r.transition(100),
  2906. i.setDragPosition(e),
  2907. clearTimeout(this.scrollbar.dragTimeout),
  2908. a.transition(0),
  2909. t.hide && a.css("opacity", 1),
  2910. this.emit("scrollbarDragStart", e)
  2911. },
  2912. onDragMove: function(e) {
  2913. var t = this.scrollbar
  2914. , i = this.$wrapperEl
  2915. , s = t.$el
  2916. , a = t.$dragEl;
  2917. this.scrollbar.isTouched && (e.preventDefault ? e.preventDefault() : e.returnValue = !1,
  2918. t.setDragPosition(e),
  2919. i.transition(0),
  2920. s.transition(0),
  2921. a.transition(0),
  2922. this.emit("scrollbarDragMove", e))
  2923. },
  2924. onDragEnd: function(e) {
  2925. var t = this.params.scrollbar
  2926. , i = this.scrollbar.$el;
  2927. this.scrollbar.isTouched && (this.scrollbar.isTouched = !1,
  2928. t.hide && (clearTimeout(this.scrollbar.dragTimeout),
  2929. this.scrollbar.dragTimeout = d.nextTick(function() {
  2930. i.css("opacity", 0),
  2931. i.transition(400)
  2932. }, 1e3)),
  2933. this.emit("scrollbarDragEnd", e),
  2934. t.snapOnRelease && this.slideToClosest())
  2935. },
  2936. enableDraggable: function() {
  2937. if (this.params.scrollbar.el) {
  2938. var t = this.scrollbar
  2939. , i = this.touchEvents
  2940. , s = this.touchEventsDesktop
  2941. , a = this.params
  2942. , r = t.$el[0]
  2943. , n = !(!h.passiveListener || !a.passiveListener) && {
  2944. passive: !1,
  2945. capture: !1
  2946. }
  2947. , o = !(!h.passiveListener || !a.passiveListener) && {
  2948. passive: !0,
  2949. capture: !1
  2950. };
  2951. h.touch || !h.pointerEvents && !h.prefixedPointerEvents ? (h.touch && (r.addEventListener(i.start, this.scrollbar.onDragStart, n),
  2952. r.addEventListener(i.move, this.scrollbar.onDragMove, n),
  2953. r.addEventListener(i.end, this.scrollbar.onDragEnd, o)),
  2954. (a.simulateTouch && !y.ios && !y.android || a.simulateTouch && !h.touch && y.ios) && (r.addEventListener("mousedown", this.scrollbar.onDragStart, n),
  2955. e.addEventListener("mousemove", this.scrollbar.onDragMove, n),
  2956. e.addEventListener("mouseup", this.scrollbar.onDragEnd, o))) : (r.addEventListener(s.start, this.scrollbar.onDragStart, n),
  2957. e.addEventListener(s.move, this.scrollbar.onDragMove, n),
  2958. e.addEventListener(s.end, this.scrollbar.onDragEnd, o))
  2959. }
  2960. },
  2961. disableDraggable: function() {
  2962. if (this.params.scrollbar.el) {
  2963. var t = this.scrollbar
  2964. , i = this.touchEvents
  2965. , s = this.touchEventsDesktop
  2966. , a = this.params
  2967. , r = t.$el[0]
  2968. , n = !(!h.passiveListener || !a.passiveListener) && {
  2969. passive: !1,
  2970. capture: !1
  2971. }
  2972. , o = !(!h.passiveListener || !a.passiveListener) && {
  2973. passive: !0,
  2974. capture: !1
  2975. };
  2976. h.touch || !h.pointerEvents && !h.prefixedPointerEvents ? (h.touch && (r.removeEventListener(i.start, this.scrollbar.onDragStart, n),
  2977. r.removeEventListener(i.move, this.scrollbar.onDragMove, n),
  2978. r.removeEventListener(i.end, this.scrollbar.onDragEnd, o)),
  2979. (a.simulateTouch && !y.ios && !y.android || a.simulateTouch && !h.touch && y.ios) && (r.removeEventListener("mousedown", this.scrollbar.onDragStart, n),
  2980. e.removeEventListener("mousemove", this.scrollbar.onDragMove, n),
  2981. e.removeEventListener("mouseup", this.scrollbar.onDragEnd, o))) : (r.removeEventListener(s.start, this.scrollbar.onDragStart, n),
  2982. e.removeEventListener(s.move, this.scrollbar.onDragMove, n),
  2983. e.removeEventListener(s.end, this.scrollbar.onDragEnd, o))
  2984. }
  2985. },
  2986. init: function() {
  2987. if (this.params.scrollbar.el) {
  2988. var e = this.scrollbar
  2989. , t = this.$el
  2990. , i = this.params.scrollbar
  2991. , a = s(i.el);
  2992. this.params.uniqueNavElements && "string" == typeof i.el && a.length > 1 && 1 === t.find(i.el).length && (a = t.find(i.el));
  2993. var r = a.find("." + this.params.scrollbar.dragClass);
  2994. 0 === r.length && (r = s('<div class="' + this.params.scrollbar.dragClass + '"></div>'),
  2995. a.append(r)),
  2996. d.extend(e, {
  2997. $el: a,
  2998. el: a[0],
  2999. $dragEl: r,
  3000. dragEl: r[0]
  3001. }),
  3002. i.draggable && e.enableDraggable()
  3003. }
  3004. },
  3005. destroy: function() {
  3006. this.scrollbar.disableDraggable()
  3007. }
  3008. }
  3009. , R = {
  3010. setTransform: function(e, t) {
  3011. var i = this.rtl
  3012. , a = s(e)
  3013. , r = i ? -1 : 1
  3014. , n = a.attr("data-swiper-parallax") || "0"
  3015. , o = a.attr("data-swiper-parallax-x")
  3016. , l = a.attr("data-swiper-parallax-y")
  3017. , d = a.attr("data-swiper-parallax-scale")
  3018. , h = a.attr("data-swiper-parallax-opacity");
  3019. if (o || l ? (o = o || "0",
  3020. l = l || "0") : this.isHorizontal() ? (o = n,
  3021. l = "0") : (l = n,
  3022. o = "0"),
  3023. o = o.indexOf("%") >= 0 ? parseInt(o, 10) * t * r + "%" : o * t * r + "px",
  3024. l = l.indexOf("%") >= 0 ? parseInt(l, 10) * t + "%" : l * t + "px",
  3025. void 0 !== h && null !== h) {
  3026. var p = h - (h - 1) * (1 - Math.abs(t));
  3027. a[0].style.opacity = p
  3028. }
  3029. if (void 0 === d || null === d)
  3030. a.transform("translate3d(" + o + ", " + l + ", 0px)");
  3031. else {
  3032. var c = d - (d - 1) * (1 - Math.abs(t));
  3033. a.transform("translate3d(" + o + ", " + l + ", 0px) scale(" + c + ")")
  3034. }
  3035. },
  3036. setTranslate: function() {
  3037. var e = this
  3038. , t = e.$el
  3039. , i = e.slides
  3040. , a = e.progress
  3041. , r = e.snapGrid;
  3042. t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t, i) {
  3043. e.parallax.setTransform(i, a)
  3044. }),
  3045. i.each(function(t, i) {
  3046. var n = i.progress;
  3047. e.params.slidesPerGroup > 1 && "auto" !== e.params.slidesPerView && (n += Math.ceil(t / 2) - a * (r.length - 1)),
  3048. n = Math.min(Math.max(n, -1), 1),
  3049. s(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t, i) {
  3050. e.parallax.setTransform(i, n)
  3051. })
  3052. })
  3053. },
  3054. setTransition: function(e) {
  3055. void 0 === e && (e = this.params.speed);
  3056. this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t, i) {
  3057. var a = s(i)
  3058. , r = parseInt(a.attr("data-swiper-parallax-duration"), 10) || e;
  3059. 0 === e && (r = 0),
  3060. a.transition(r)
  3061. })
  3062. }
  3063. }
  3064. , F = {
  3065. getDistanceBetweenTouches: function(e) {
  3066. if (e.targetTouches.length < 2)
  3067. return 1;
  3068. var t = e.targetTouches[0].pageX
  3069. , i = e.targetTouches[0].pageY
  3070. , s = e.targetTouches[1].pageX
  3071. , a = e.targetTouches[1].pageY;
  3072. return Math.sqrt(Math.pow(s - t, 2) + Math.pow(a - i, 2))
  3073. },
  3074. onGestureStart: function(e) {
  3075. var t = this.params.zoom
  3076. , i = this.zoom
  3077. , a = i.gesture;
  3078. if (i.fakeGestureTouched = !1,
  3079. i.fakeGestureMoved = !1,
  3080. !h.gestures) {
  3081. if ("touchstart" !== e.type || "touchstart" === e.type && e.targetTouches.length < 2)
  3082. return;
  3083. i.fakeGestureTouched = !0,
  3084. a.scaleStart = F.getDistanceBetweenTouches(e)
  3085. }
  3086. a.$slideEl && a.$slideEl.length || (a.$slideEl = s(e.target).closest(".swiper-slide"),
  3087. 0 === a.$slideEl.length && (a.$slideEl = this.slides.eq(this.activeIndex)),
  3088. a.$imageEl = a.$slideEl.find("img, svg, canvas"),
  3089. a.$imageWrapEl = a.$imageEl.parent("." + t.containerClass),
  3090. a.maxRatio = a.$imageWrapEl.attr("data-swiper-zoom") || t.maxRatio,
  3091. 0 !== a.$imageWrapEl.length) ? (a.$imageEl.transition(0),
  3092. this.zoom.isScaling = !0) : a.$imageEl = void 0
  3093. },
  3094. onGestureChange: function(e) {
  3095. var t = this.params.zoom
  3096. , i = this.zoom
  3097. , s = i.gesture;
  3098. if (!h.gestures) {
  3099. if ("touchmove" !== e.type || "touchmove" === e.type && e.targetTouches.length < 2)
  3100. return;
  3101. i.fakeGestureMoved = !0,
  3102. s.scaleMove = F.getDistanceBetweenTouches(e)
  3103. }
  3104. s.$imageEl && 0 !== s.$imageEl.length && (h.gestures ? this.zoom.scale = e.scale * i.currentScale : i.scale = s.scaleMove / s.scaleStart * i.currentScale,
  3105. i.scale > s.maxRatio && (i.scale = s.maxRatio - 1 + Math.pow(i.scale - s.maxRatio + 1, .5)),
  3106. i.scale < t.minRatio && (i.scale = t.minRatio + 1 - Math.pow(t.minRatio - i.scale + 1, .5)),
  3107. s.$imageEl.transform("translate3d(0,0,0) scale(" + i.scale + ")"))
  3108. },
  3109. onGestureEnd: function(e) {
  3110. var t = this.params.zoom
  3111. , i = this.zoom
  3112. , s = i.gesture;
  3113. if (!h.gestures) {
  3114. if (!i.fakeGestureTouched || !i.fakeGestureMoved)
  3115. return;
  3116. if ("touchend" !== e.type || "touchend" === e.type && e.changedTouches.length < 2 && !y.android)
  3117. return;
  3118. i.fakeGestureTouched = !1,
  3119. i.fakeGestureMoved = !1
  3120. }
  3121. s.$imageEl && 0 !== s.$imageEl.length && (i.scale = Math.max(Math.min(i.scale, s.maxRatio), t.minRatio),
  3122. s.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale(" + i.scale + ")"),
  3123. i.currentScale = i.scale,
  3124. i.isScaling = !1,
  3125. 1 === i.scale && (s.$slideEl = void 0))
  3126. },
  3127. onTouchStart: function(e) {
  3128. var t = this.zoom
  3129. , i = t.gesture
  3130. , s = t.image;
  3131. i.$imageEl && 0 !== i.$imageEl.length && (s.isTouched || (y.android && e.preventDefault(),
  3132. s.isTouched = !0,
  3133. s.touchesStart.x = "touchstart" === e.type ? e.targetTouches[0].pageX : e.pageX,
  3134. s.touchesStart.y = "touchstart" === e.type ? e.targetTouches[0].pageY : e.pageY))
  3135. },
  3136. onTouchMove: function(e) {
  3137. var t = this.zoom
  3138. , i = t.gesture
  3139. , s = t.image
  3140. , a = t.velocity;
  3141. if (i.$imageEl && 0 !== i.$imageEl.length && (this.allowClick = !1,
  3142. s.isTouched && i.$slideEl)) {
  3143. s.isMoved || (s.width = i.$imageEl[0].offsetWidth,
  3144. s.height = i.$imageEl[0].offsetHeight,
  3145. s.startX = d.getTranslate(i.$imageWrapEl[0], "x") || 0,
  3146. s.startY = d.getTranslate(i.$imageWrapEl[0], "y") || 0,
  3147. i.slideWidth = i.$slideEl[0].offsetWidth,
  3148. i.slideHeight = i.$slideEl[0].offsetHeight,
  3149. i.$imageWrapEl.transition(0),
  3150. this.rtl && (s.startX = -s.startX,
  3151. s.startY = -s.startY));
  3152. var r = s.width * t.scale
  3153. , n = s.height * t.scale;
  3154. if (!(r < i.slideWidth && n < i.slideHeight)) {
  3155. if (s.minX = Math.min(i.slideWidth / 2 - r / 2, 0),
  3156. s.maxX = -s.minX,
  3157. s.minY = Math.min(i.slideHeight / 2 - n / 2, 0),
  3158. s.maxY = -s.minY,
  3159. s.touchesCurrent.x = "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX,
  3160. s.touchesCurrent.y = "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY,
  3161. !s.isMoved && !t.isScaling) {
  3162. if (this.isHorizontal() && (Math.floor(s.minX) === Math.floor(s.startX) && s.touchesCurrent.x < s.touchesStart.x || Math.floor(s.maxX) === Math.floor(s.startX) && s.touchesCurrent.x > s.touchesStart.x))
  3163. return void (s.isTouched = !1);
  3164. if (!this.isHorizontal() && (Math.floor(s.minY) === Math.floor(s.startY) && s.touchesCurrent.y < s.touchesStart.y || Math.floor(s.maxY) === Math.floor(s.startY) && s.touchesCurrent.y > s.touchesStart.y))
  3165. return void (s.isTouched = !1)
  3166. }
  3167. e.preventDefault(),
  3168. e.stopPropagation(),
  3169. s.isMoved = !0,
  3170. s.currentX = s.touchesCurrent.x - s.touchesStart.x + s.startX,
  3171. s.currentY = s.touchesCurrent.y - s.touchesStart.y + s.startY,
  3172. s.currentX < s.minX && (s.currentX = s.minX + 1 - Math.pow(s.minX - s.currentX + 1, .8)),
  3173. s.currentX > s.maxX && (s.currentX = s.maxX - 1 + Math.pow(s.currentX - s.maxX + 1, .8)),
  3174. s.currentY < s.minY && (s.currentY = s.minY + 1 - Math.pow(s.minY - s.currentY + 1, .8)),
  3175. s.currentY > s.maxY && (s.currentY = s.maxY - 1 + Math.pow(s.currentY - s.maxY + 1, .8)),
  3176. a.prevPositionX || (a.prevPositionX = s.touchesCurrent.x),
  3177. a.prevPositionY || (a.prevPositionY = s.touchesCurrent.y),
  3178. a.prevTime || (a.prevTime = Date.now()),
  3179. a.x = (s.touchesCurrent.x - a.prevPositionX) / (Date.now() - a.prevTime) / 2,
  3180. a.y = (s.touchesCurrent.y - a.prevPositionY) / (Date.now() - a.prevTime) / 2,
  3181. Math.abs(s.touchesCurrent.x - a.prevPositionX) < 2 && (a.x = 0),
  3182. Math.abs(s.touchesCurrent.y - a.prevPositionY) < 2 && (a.y = 0),
  3183. a.prevPositionX = s.touchesCurrent.x,
  3184. a.prevPositionY = s.touchesCurrent.y,
  3185. a.prevTime = Date.now(),
  3186. i.$imageWrapEl.transform("translate3d(" + s.currentX + "px, " + s.currentY + "px,0)")
  3187. }
  3188. }
  3189. },
  3190. onTouchEnd: function() {
  3191. var e = this.zoom
  3192. , t = e.gesture
  3193. , i = e.image
  3194. , s = e.velocity;
  3195. if (t.$imageEl && 0 !== t.$imageEl.length) {
  3196. if (!i.isTouched || !i.isMoved)
  3197. return i.isTouched = !1,
  3198. void (i.isMoved = !1);
  3199. i.isTouched = !1,
  3200. i.isMoved = !1;
  3201. var a = 300
  3202. , r = 300
  3203. , n = s.x * a
  3204. , o = i.currentX + n
  3205. , l = s.y * r
  3206. , d = i.currentY + l;
  3207. 0 !== s.x && (a = Math.abs((o - i.currentX) / s.x)),
  3208. 0 !== s.y && (r = Math.abs((d - i.currentY) / s.y));
  3209. var h = Math.max(a, r);
  3210. i.currentX = o,
  3211. i.currentY = d;
  3212. var p = i.width * e.scale
  3213. , c = i.height * e.scale;
  3214. i.minX = Math.min(t.slideWidth / 2 - p / 2, 0),
  3215. i.maxX = -i.minX,
  3216. i.minY = Math.min(t.slideHeight / 2 - c / 2, 0),
  3217. i.maxY = -i.minY,
  3218. i.currentX = Math.max(Math.min(i.currentX, i.maxX), i.minX),
  3219. i.currentY = Math.max(Math.min(i.currentY, i.maxY), i.minY),
  3220. t.$imageWrapEl.transition(h).transform("translate3d(" + i.currentX + "px, " + i.currentY + "px,0)")
  3221. }
  3222. },
  3223. onTransitionEnd: function() {
  3224. var e = this.zoom
  3225. , t = e.gesture;
  3226. t.$slideEl && this.previousIndex !== this.activeIndex && (t.$imageEl.transform("translate3d(0,0,0) scale(1)"),
  3227. t.$imageWrapEl.transform("translate3d(0,0,0)"),
  3228. t.$slideEl = void 0,
  3229. t.$imageEl = void 0,
  3230. t.$imageWrapEl = void 0,
  3231. e.scale = 1,
  3232. e.currentScale = 1)
  3233. },
  3234. toggle: function(e) {
  3235. var t = this.zoom;
  3236. t.scale && 1 !== t.scale ? t.out() : t.in(e)
  3237. },
  3238. in: function(e) {
  3239. var t, i, a, r, n, o, l, d, h, p, c, u, v, f, m, g, b = this.zoom, w = this.params.zoom, y = b.gesture, x = b.image;
  3240. (y.$slideEl || (y.$slideEl = this.clickedSlide ? s(this.clickedSlide) : this.slides.eq(this.activeIndex),
  3241. y.$imageEl = y.$slideEl.find("img, svg, canvas"),
  3242. y.$imageWrapEl = y.$imageEl.parent("." + w.containerClass)),
  3243. y.$imageEl && 0 !== y.$imageEl.length) && (y.$slideEl.addClass("" + w.zoomedSlideClass),
  3244. void 0 === x.touchesStart.x && e ? (t = "touchend" === e.type ? e.changedTouches[0].pageX : e.pageX,
  3245. i = "touchend" === e.type ? e.changedTouches[0].pageY : e.pageY) : (t = x.touchesStart.x,
  3246. i = x.touchesStart.y),
  3247. b.scale = y.$imageWrapEl.attr("data-swiper-zoom") || w.maxRatio,
  3248. b.currentScale = y.$imageWrapEl.attr("data-swiper-zoom") || w.maxRatio,
  3249. e ? (m = y.$slideEl[0].offsetWidth,
  3250. g = y.$slideEl[0].offsetHeight,
  3251. a = y.$slideEl.offset().left + m / 2 - t,
  3252. r = y.$slideEl.offset().top + g / 2 - i,
  3253. l = y.$imageEl[0].offsetWidth,
  3254. d = y.$imageEl[0].offsetHeight,
  3255. h = l * b.scale,
  3256. p = d * b.scale,
  3257. v = -(c = Math.min(m / 2 - h / 2, 0)),
  3258. f = -(u = Math.min(g / 2 - p / 2, 0)),
  3259. n = a * b.scale,
  3260. o = r * b.scale,
  3261. n < c && (n = c),
  3262. n > v && (n = v),
  3263. o < u && (o = u),
  3264. o > f && (o = f)) : (n = 0,
  3265. o = 0),
  3266. y.$imageWrapEl.transition(300).transform("translate3d(" + n + "px, " + o + "px,0)"),
  3267. y.$imageEl.transition(300).transform("translate3d(0,0,0) scale(" + b.scale + ")"))
  3268. },
  3269. out: function() {
  3270. var e = this.zoom
  3271. , t = this.params.zoom
  3272. , i = e.gesture;
  3273. i.$slideEl || (i.$slideEl = this.clickedSlide ? s(this.clickedSlide) : this.slides.eq(this.activeIndex),
  3274. i.$imageEl = i.$slideEl.find("img, svg, canvas"),
  3275. i.$imageWrapEl = i.$imageEl.parent("." + t.containerClass)),
  3276. i.$imageEl && 0 !== i.$imageEl.length && (e.scale = 1,
  3277. e.currentScale = 1,
  3278. i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),
  3279. i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),
  3280. i.$slideEl.removeClass("" + t.zoomedSlideClass),
  3281. i.$slideEl = void 0)
  3282. },
  3283. enable: function() {
  3284. var e = this.zoom;
  3285. if (!e.enabled) {
  3286. e.enabled = !0;
  3287. var t = !("touchstart" !== this.touchEvents.start || !h.passiveListener || !this.params.passiveListeners) && {
  3288. passive: !0,
  3289. capture: !1
  3290. };
  3291. h.gestures ? (this.$wrapperEl.on("gesturestart", ".swiper-slide", e.onGestureStart, t),
  3292. this.$wrapperEl.on("gesturechange", ".swiper-slide", e.onGestureChange, t),
  3293. this.$wrapperEl.on("gestureend", ".swiper-slide", e.onGestureEnd, t)) : "touchstart" === this.touchEvents.start && (this.$wrapperEl.on(this.touchEvents.start, ".swiper-slide", e.onGestureStart, t),
  3294. this.$wrapperEl.on(this.touchEvents.move, ".swiper-slide", e.onGestureChange, t),
  3295. this.$wrapperEl.on(this.touchEvents.end, ".swiper-slide", e.onGestureEnd, t)),
  3296. this.$wrapperEl.on(this.touchEvents.move, "." + this.params.zoom.containerClass, e.onTouchMove)
  3297. }
  3298. },
  3299. disable: function() {
  3300. var e = this.zoom;
  3301. if (e.enabled) {
  3302. this.zoom.enabled = !1;
  3303. var t = !("touchstart" !== this.touchEvents.start || !h.passiveListener || !this.params.passiveListeners) && {
  3304. passive: !0,
  3305. capture: !1
  3306. };
  3307. h.gestures ? (this.$wrapperEl.off("gesturestart", ".swiper-slide", e.onGestureStart, t),
  3308. this.$wrapperEl.off("gesturechange", ".swiper-slide", e.onGestureChange, t),
  3309. this.$wrapperEl.off("gestureend", ".swiper-slide", e.onGestureEnd, t)) : "touchstart" === this.touchEvents.start && (this.$wrapperEl.off(this.touchEvents.start, ".swiper-slide", e.onGestureStart, t),
  3310. this.$wrapperEl.off(this.touchEvents.move, ".swiper-slide", e.onGestureChange, t),
  3311. this.$wrapperEl.off(this.touchEvents.end, ".swiper-slide", e.onGestureEnd, t)),
  3312. this.$wrapperEl.off(this.touchEvents.move, "." + this.params.zoom.containerClass, e.onTouchMove)
  3313. }
  3314. }
  3315. }
  3316. , W = {
  3317. loadInSlide: function(e, t) {
  3318. void 0 === t && (t = !0);
  3319. var i = this
  3320. , a = i.params.lazy;
  3321. if (void 0 !== e && 0 !== i.slides.length) {
  3322. var r = i.virtual && i.params.virtual.enabled ? i.$wrapperEl.children("." + i.params.slideClass + '[data-swiper-slide-index="' + e + '"]') : i.slides.eq(e)
  3323. , n = r.find("." + a.elementClass + ":not(." + a.loadedClass + "):not(." + a.loadingClass + ")");
  3324. !r.hasClass(a.elementClass) || r.hasClass(a.loadedClass) || r.hasClass(a.loadingClass) || (n = n.add(r[0])),
  3325. 0 !== n.length && n.each(function(e, n) {
  3326. var o = s(n);
  3327. o.addClass(a.loadingClass);
  3328. var l = o.attr("data-background")
  3329. , d = o.attr("data-src")
  3330. , h = o.attr("data-srcset")
  3331. , p = o.attr("data-sizes");
  3332. i.loadImage(o[0], d || l, h, p, !1, function() {
  3333. if (void 0 !== i && null !== i && i && (!i || i.params) && !i.destroyed) {
  3334. if (l ? (o.css("background-image", 'url("' + l + '")'),
  3335. o.removeAttr("data-background")) : (h && (o.attr("srcset", h),
  3336. o.removeAttr("data-srcset")),
  3337. p && (o.attr("sizes", p),
  3338. o.removeAttr("data-sizes")),
  3339. d && (o.attr("src", d),
  3340. o.removeAttr("data-src"))),
  3341. o.addClass(a.loadedClass).removeClass(a.loadingClass),
  3342. r.find("." + a.preloaderClass).remove(),
  3343. i.params.loop && t) {
  3344. var e = r.attr("data-swiper-slide-index");
  3345. if (r.hasClass(i.params.slideDuplicateClass)) {
  3346. var s = i.$wrapperEl.children('[data-swiper-slide-index="' + e + '"]:not(.' + i.params.slideDuplicateClass + ")");
  3347. i.lazy.loadInSlide(s.index(), !1)
  3348. } else {
  3349. var n = i.$wrapperEl.children("." + i.params.slideDuplicateClass + '[data-swiper-slide-index="' + e + '"]');
  3350. i.lazy.loadInSlide(n.index(), !1)
  3351. }
  3352. }
  3353. i.emit("lazyImageReady", r[0], o[0])
  3354. }
  3355. }),
  3356. i.emit("lazyImageLoad", r[0], o[0])
  3357. })
  3358. }
  3359. },
  3360. load: function() {
  3361. var e = this
  3362. , t = e.$wrapperEl
  3363. , i = e.params
  3364. , a = e.slides
  3365. , r = e.activeIndex
  3366. , n = e.virtual && i.virtual.enabled
  3367. , o = i.lazy
  3368. , l = i.slidesPerView;
  3369. function d(e) {
  3370. if (n) {
  3371. if (t.children("." + i.slideClass + '[data-swiper-slide-index="' + e + '"]').length)
  3372. return !0
  3373. } else if (a[e])
  3374. return !0;
  3375. return !1
  3376. }
  3377. function h(e) {
  3378. return n ? s(e).attr("data-swiper-slide-index") : s(e).index()
  3379. }
  3380. if ("auto" === l && (l = 0),
  3381. e.lazy.initialImageLoaded || (e.lazy.initialImageLoaded = !0),
  3382. e.params.watchSlidesVisibility)
  3383. t.children("." + i.slideVisibleClass).each(function(t, i) {
  3384. var a = n ? s(i).attr("data-swiper-slide-index") : s(i).index();
  3385. e.lazy.loadInSlide(a)
  3386. });
  3387. else if (l > 1)
  3388. for (var p = r; p < r + l; p += 1)
  3389. d(p) && e.lazy.loadInSlide(p);
  3390. else
  3391. e.lazy.loadInSlide(r);
  3392. if (o.loadPrevNext)
  3393. if (l > 1 || o.loadPrevNextAmount && o.loadPrevNextAmount > 1) {
  3394. for (var c = o.loadPrevNextAmount, u = l, v = Math.min(r + u + Math.max(c, u), a.length), f = Math.max(r - Math.max(u, c), 0), m = r + l; m < v; m += 1)
  3395. d(m) && e.lazy.loadInSlide(m);
  3396. for (var g = f; g < r; g += 1)
  3397. d(g) && e.lazy.loadInSlide(g)
  3398. } else {
  3399. var b = t.children("." + i.slideNextClass);
  3400. b.length > 0 && e.lazy.loadInSlide(h(b));
  3401. var w = t.children("." + i.slidePrevClass);
  3402. w.length > 0 && e.lazy.loadInSlide(h(w))
  3403. }
  3404. }
  3405. }
  3406. , q = {
  3407. LinearSpline: function(e, t) {
  3408. var i, s, a, r, n, o = function(e, t) {
  3409. for (s = -1,
  3410. i = e.length; i - s > 1; )
  3411. e[a = i + s >> 1] <= t ? s = a : i = a;
  3412. return i
  3413. };
  3414. return this.x = e,
  3415. this.y = t,
  3416. this.lastIndex = e.length - 1,
  3417. this.interpolate = function(e) {
  3418. return e ? (n = o(this.x, e),
  3419. r = n - 1,
  3420. (e - this.x[r]) * (this.y[n] - this.y[r]) / (this.x[n] - this.x[r]) + this.y[r]) : 0
  3421. }
  3422. ,
  3423. this
  3424. },
  3425. getInterpolateFunction: function(e) {
  3426. this.controller.spline || (this.controller.spline = this.params.loop ? new q.LinearSpline(this.slidesGrid,e.slidesGrid) : new q.LinearSpline(this.snapGrid,e.snapGrid))
  3427. },
  3428. setTranslate: function(e, t) {
  3429. var i, s, a = this, r = a.controller.control;
  3430. function n(e) {
  3431. var t = a.rtlTranslate ? -a.translate : a.translate;
  3432. "slide" === a.params.controller.by && (a.controller.getInterpolateFunction(e),
  3433. s = -a.controller.spline.interpolate(-t)),
  3434. s && "container" !== a.params.controller.by || (i = (e.maxTranslate() - e.minTranslate()) / (a.maxTranslate() - a.minTranslate()),
  3435. s = (t - a.minTranslate()) * i + e.minTranslate()),
  3436. a.params.controller.inverse && (s = e.maxTranslate() - s),
  3437. e.updateProgress(s),
  3438. e.setTranslate(s, a),
  3439. e.updateActiveIndex(),
  3440. e.updateSlidesClasses()
  3441. }
  3442. if (Array.isArray(r))
  3443. for (var o = 0; o < r.length; o += 1)
  3444. r[o] !== t && r[o]instanceof P && n(r[o]);
  3445. else
  3446. r instanceof P && t !== r && n(r)
  3447. },
  3448. setTransition: function(e, t) {
  3449. var i, s = this, a = s.controller.control;
  3450. function r(t) {
  3451. t.setTransition(e, s),
  3452. 0 !== e && (t.transitionStart(),
  3453. t.$wrapperEl.transitionEnd(function() {
  3454. a && (t.params.loop && "slide" === s.params.controller.by && t.loopFix(),
  3455. t.transitionEnd())
  3456. }))
  3457. }
  3458. if (Array.isArray(a))
  3459. for (i = 0; i < a.length; i += 1)
  3460. a[i] !== t && a[i]instanceof P && r(a[i]);
  3461. else
  3462. a instanceof P && t !== a && r(a)
  3463. }
  3464. }
  3465. , j = {
  3466. makeElFocusable: function(e) {
  3467. return e.attr("tabIndex", "0"),
  3468. e
  3469. },
  3470. addElRole: function(e, t) {
  3471. return e.attr("role", t),
  3472. e
  3473. },
  3474. addElLabel: function(e, t) {
  3475. return e.attr("aria-label", t),
  3476. e
  3477. },
  3478. disableEl: function(e) {
  3479. return e.attr("aria-disabled", !0),
  3480. e
  3481. },
  3482. enableEl: function(e) {
  3483. return e.attr("aria-disabled", !1),
  3484. e
  3485. },
  3486. onEnterKey: function(e) {
  3487. var t = this.params.a11y;
  3488. if (13 === e.keyCode) {
  3489. var i = s(e.target);
  3490. this.navigation && this.navigation.$nextEl && i.is(this.navigation.$nextEl) && (this.isEnd && !this.params.loop || this.slideNext(),
  3491. this.isEnd ? this.a11y.notify(t.lastSlideMessage) : this.a11y.notify(t.nextSlideMessage)),
  3492. this.navigation && this.navigation.$prevEl && i.is(this.navigation.$prevEl) && (this.isBeginning && !this.params.loop || this.slidePrev(),
  3493. this.isBeginning ? this.a11y.notify(t.firstSlideMessage) : this.a11y.notify(t.prevSlideMessage)),
  3494. this.pagination && i.is("." + this.params.pagination.bulletClass) && i[0].click()
  3495. }
  3496. },
  3497. notify: function(e) {
  3498. var t = this.a11y.liveRegion;
  3499. 0 !== t.length && (t.html(""),
  3500. t.html(e))
  3501. },
  3502. updateNavigation: function() {
  3503. if (!this.params.loop) {
  3504. var e = this.navigation
  3505. , t = e.$nextEl
  3506. , i = e.$prevEl;
  3507. i && i.length > 0 && (this.isBeginning ? this.a11y.disableEl(i) : this.a11y.enableEl(i)),
  3508. t && t.length > 0 && (this.isEnd ? this.a11y.disableEl(t) : this.a11y.enableEl(t))
  3509. }
  3510. },
  3511. updatePagination: function() {
  3512. var e = this
  3513. , t = e.params.a11y;
  3514. e.pagination && e.params.pagination.clickable && e.pagination.bullets && e.pagination.bullets.length && e.pagination.bullets.each(function(i, a) {
  3515. var r = s(a);
  3516. e.a11y.makeElFocusable(r),
  3517. e.a11y.addElRole(r, "button"),
  3518. e.a11y.addElLabel(r, t.paginationBulletMessage.replace(/{{index}}/, r.index() + 1))
  3519. })
  3520. },
  3521. init: function() {
  3522. this.$el.append(this.a11y.liveRegion);
  3523. var e, t, i = this.params.a11y;
  3524. this.navigation && this.navigation.$nextEl && (e = this.navigation.$nextEl),
  3525. this.navigation && this.navigation.$prevEl && (t = this.navigation.$prevEl),
  3526. e && (this.a11y.makeElFocusable(e),
  3527. this.a11y.addElRole(e, "button"),
  3528. this.a11y.addElLabel(e, i.nextSlideMessage),
  3529. e.on("keydown", this.a11y.onEnterKey)),
  3530. t && (this.a11y.makeElFocusable(t),
  3531. this.a11y.addElRole(t, "button"),
  3532. this.a11y.addElLabel(t, i.prevSlideMessage),
  3533. t.on("keydown", this.a11y.onEnterKey)),
  3534. this.pagination && this.params.pagination.clickable && this.pagination.bullets && this.pagination.bullets.length && this.pagination.$el.on("keydown", "." + this.params.pagination.bulletClass, this.a11y.onEnterKey)
  3535. },
  3536. destroy: function() {
  3537. var e, t;
  3538. this.a11y.liveRegion && this.a11y.liveRegion.length > 0 && this.a11y.liveRegion.remove(),
  3539. this.navigation && this.navigation.$nextEl && (e = this.navigation.$nextEl),
  3540. this.navigation && this.navigation.$prevEl && (t = this.navigation.$prevEl),
  3541. e && e.off("keydown", this.a11y.onEnterKey),
  3542. t && t.off("keydown", this.a11y.onEnterKey),
  3543. this.pagination && this.params.pagination.clickable && this.pagination.bullets && this.pagination.bullets.length && this.pagination.$el.off("keydown", "." + this.params.pagination.bulletClass, this.a11y.onEnterKey)
  3544. }
  3545. }
  3546. , K = {
  3547. init: function() {
  3548. if (this.params.history) {
  3549. if (!t.history || !t.history.pushState)
  3550. return this.params.history.enabled = !1,
  3551. void (this.params.hashNavigation.enabled = !0);
  3552. var e = this.history;
  3553. e.initialized = !0,
  3554. e.paths = K.getPathValues(),
  3555. (e.paths.key || e.paths.value) && (e.scrollToSlide(0, e.paths.value, this.params.runCallbacksOnInit),
  3556. this.params.history.replaceState || t.addEventListener("popstate", this.history.setHistoryPopState))
  3557. }
  3558. },
  3559. destroy: function() {
  3560. this.params.history.replaceState || t.removeEventListener("popstate", this.history.setHistoryPopState)
  3561. },
  3562. setHistoryPopState: function() {
  3563. this.history.paths = K.getPathValues(),
  3564. this.history.scrollToSlide(this.params.speed, this.history.paths.value, !1)
  3565. },
  3566. getPathValues: function() {
  3567. var e = t.location.pathname.slice(1).split("/").filter(function(e) {
  3568. return "" !== e
  3569. })
  3570. , i = e.length;
  3571. return {
  3572. key: e[i - 2],
  3573. value: e[i - 1]
  3574. }
  3575. },
  3576. setHistory: function(e, i) {
  3577. if (this.history.initialized && this.params.history.enabled) {
  3578. var s = this.slides.eq(i)
  3579. , a = K.slugify(s.attr("data-history"));
  3580. t.location.pathname.includes(e) || (a = e + "/" + a);
  3581. var r = t.history.state;
  3582. r && r.value === a || (this.params.history.replaceState ? t.history.replaceState({
  3583. value: a
  3584. }, null, a) : t.history.pushState({
  3585. value: a
  3586. }, null, a))
  3587. }
  3588. },
  3589. slugify: function(e) {
  3590. return e.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, "")
  3591. },
  3592. scrollToSlide: function(e, t, i) {
  3593. if (t)
  3594. for (var s = 0, a = this.slides.length; s < a; s += 1) {
  3595. var r = this.slides.eq(s);
  3596. if (K.slugify(r.attr("data-history")) === t && !r.hasClass(this.params.slideDuplicateClass)) {
  3597. var n = r.index();
  3598. this.slideTo(n, e, i)
  3599. }
  3600. }
  3601. else
  3602. this.slideTo(0, e, i)
  3603. }
  3604. }
  3605. , U = {
  3606. onHashCange: function() {
  3607. var t = e.location.hash.replace("#", "");
  3608. t !== this.slides.eq(this.activeIndex).attr("data-hash") && this.slideTo(this.$wrapperEl.children("." + this.params.slideClass + '[data-hash="' + t + '"]').index())
  3609. },
  3610. setHash: function() {
  3611. if (this.hashNavigation.initialized && this.params.hashNavigation.enabled)
  3612. if (this.params.hashNavigation.replaceState && t.history && t.history.replaceState)
  3613. t.history.replaceState(null, null, "#" + this.slides.eq(this.activeIndex).attr("data-hash") || "");
  3614. else {
  3615. var i = this.slides.eq(this.activeIndex)
  3616. , s = i.attr("data-hash") || i.attr("data-history");
  3617. e.location.hash = s || ""
  3618. }
  3619. },
  3620. init: function() {
  3621. if (!(!this.params.hashNavigation.enabled || this.params.history && this.params.history.enabled)) {
  3622. this.hashNavigation.initialized = !0;
  3623. var i = e.location.hash.replace("#", "");
  3624. if (i)
  3625. for (var a = 0, r = this.slides.length; a < r; a += 1) {
  3626. var n = this.slides.eq(a);
  3627. if ((n.attr("data-hash") || n.attr("data-history")) === i && !n.hasClass(this.params.slideDuplicateClass)) {
  3628. var o = n.index();
  3629. this.slideTo(o, 0, this.params.runCallbacksOnInit, !0)
  3630. }
  3631. }
  3632. this.params.hashNavigation.watchState && s(t).on("hashchange", this.hashNavigation.onHashCange)
  3633. }
  3634. },
  3635. destroy: function() {
  3636. this.params.hashNavigation.watchState && s(t).off("hashchange", this.hashNavigation.onHashCange)
  3637. }
  3638. }
  3639. , _ = {
  3640. run: function() {
  3641. var e = this
  3642. , t = e.slides.eq(e.activeIndex)
  3643. , i = e.params.autoplay.delay;
  3644. t.attr("data-swiper-autoplay") && (i = t.attr("data-swiper-autoplay") || e.params.autoplay.delay),
  3645. e.autoplay.timeout = d.nextTick(function() {
  3646. e.params.autoplay.reverseDirection ? e.params.loop ? (e.loopFix(),
  3647. e.slidePrev(e.params.speed, !0, !0),
  3648. e.emit("autoplay")) : e.isBeginning ? e.params.autoplay.stopOnLastSlide ? e.autoplay.stop() : (e.slideTo(e.slides.length - 1, e.params.speed, !0, !0),
  3649. e.emit("autoplay")) : (e.slidePrev(e.params.speed, !0, !0),
  3650. e.emit("autoplay")) : e.params.loop ? (e.loopFix(),
  3651. e.slideNext(e.params.speed, !0, !0),
  3652. e.emit("autoplay")) : e.isEnd ? e.params.autoplay.stopOnLastSlide ? e.autoplay.stop() : (e.slideTo(0, e.params.speed, !0, !0),
  3653. e.emit("autoplay")) : (e.slideNext(e.params.speed, !0, !0),
  3654. e.emit("autoplay"))
  3655. }, i)
  3656. },
  3657. start: function() {
  3658. return void 0 === this.autoplay.timeout && (!this.autoplay.running && (this.autoplay.running = !0,
  3659. this.emit("autoplayStart"),
  3660. this.autoplay.run(),
  3661. !0))
  3662. },
  3663. stop: function() {
  3664. return !!this.autoplay.running && (void 0 !== this.autoplay.timeout && (this.autoplay.timeout && (clearTimeout(this.autoplay.timeout),
  3665. this.autoplay.timeout = void 0),
  3666. this.autoplay.running = !1,
  3667. this.emit("autoplayStop"),
  3668. !0))
  3669. },
  3670. pause: function(e) {
  3671. var t = this;
  3672. t.autoplay.running && (t.autoplay.paused || (t.autoplay.timeout && clearTimeout(t.autoplay.timeout),
  3673. t.autoplay.paused = !0,
  3674. 0 !== e && t.params.autoplay.waitForTransition ? t.$wrapperEl.transitionEnd(function() {
  3675. t && !t.destroyed && (t.autoplay.paused = !1,
  3676. t.autoplay.running ? t.autoplay.run() : t.autoplay.stop())
  3677. }) : (t.autoplay.paused = !1,
  3678. t.autoplay.run())))
  3679. }
  3680. }
  3681. , Z = {
  3682. setTranslate: function() {
  3683. for (var e = this.slides, t = 0; t < e.length; t += 1) {
  3684. var i = this.slides.eq(t)
  3685. , s = -i[0].swiperSlideOffset;
  3686. this.params.virtualTranslate || (s -= this.translate);
  3687. var a = 0;
  3688. this.isHorizontal() || (a = s,
  3689. s = 0);
  3690. var r = this.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(i[0].progress), 0) : 1 + Math.min(Math.max(i[0].progress, -1), 0);
  3691. i.css({
  3692. opacity: r
  3693. }).transform("translate3d(" + s + "px, " + a + "px, 0px)")
  3694. }
  3695. },
  3696. setTransition: function(e) {
  3697. var t = this
  3698. , i = t.slides
  3699. , s = t.$wrapperEl;
  3700. if (i.transition(e),
  3701. t.params.virtualTranslate && 0 !== e) {
  3702. var a = !1;
  3703. i.transitionEnd(function() {
  3704. if (!a && t && !t.destroyed) {
  3705. a = !0,
  3706. t.animating = !1;
  3707. for (var e = ["webkitTransitionEnd", "transitionend"], i = 0; i < e.length; i += 1)
  3708. s.trigger(e[i])
  3709. }
  3710. })
  3711. }
  3712. }
  3713. }
  3714. , Q = {
  3715. setTranslate: function() {
  3716. var e, t = this.$el, i = this.$wrapperEl, a = this.slides, r = this.width, n = this.height, o = this.rtlTranslate, l = this.size, d = this.params.cubeEffect, h = this.isHorizontal(), p = this.virtual && this.params.virtual.enabled, c = 0;
  3717. d.shadow && (h ? (0 === (e = i.find(".swiper-cube-shadow")).length && (e = s('<div class="swiper-cube-shadow"></div>'),
  3718. i.append(e)),
  3719. e.css({
  3720. height: r + "px"
  3721. })) : 0 === (e = t.find(".swiper-cube-shadow")).length && (e = s('<div class="swiper-cube-shadow"></div>'),
  3722. t.append(e)));
  3723. for (var u = 0; u < a.length; u += 1) {
  3724. var v = a.eq(u)
  3725. , f = u;
  3726. p && (f = parseInt(v.attr("data-swiper-slide-index"), 10));
  3727. var m = 90 * f
  3728. , g = Math.floor(m / 360);
  3729. o && (m = -m,
  3730. g = Math.floor(-m / 360));
  3731. var b = Math.max(Math.min(v[0].progress, 1), -1)
  3732. , w = 0
  3733. , y = 0
  3734. , x = 0;
  3735. f % 4 == 0 ? (w = 4 * -g * l,
  3736. x = 0) : (f - 1) % 4 == 0 ? (w = 0,
  3737. x = 4 * -g * l) : (f - 2) % 4 == 0 ? (w = l + 4 * g * l,
  3738. x = l) : (f - 3) % 4 == 0 && (w = -l,
  3739. x = 3 * l + 4 * l * g),
  3740. o && (w = -w),
  3741. h || (y = w,
  3742. w = 0);
  3743. var E = "rotateX(" + (h ? 0 : -m) + "deg) rotateY(" + (h ? m : 0) + "deg) translate3d(" + w + "px, " + y + "px, " + x + "px)";
  3744. if (b <= 1 && b > -1 && (c = 90 * f + 90 * b,
  3745. o && (c = 90 * -f - 90 * b)),
  3746. v.transform(E),
  3747. d.slideShadows) {
  3748. var T = h ? v.find(".swiper-slide-shadow-left") : v.find(".swiper-slide-shadow-top")
  3749. , C = h ? v.find(".swiper-slide-shadow-right") : v.find(".swiper-slide-shadow-bottom");
  3750. 0 === T.length && (T = s('<div class="swiper-slide-shadow-' + (h ? "left" : "top") + '"></div>'),
  3751. v.append(T)),
  3752. 0 === C.length && (C = s('<div class="swiper-slide-shadow-' + (h ? "right" : "bottom") + '"></div>'),
  3753. v.append(C)),
  3754. T.length && (T[0].style.opacity = Math.max(-b, 0)),
  3755. C.length && (C[0].style.opacity = Math.max(b, 0))
  3756. }
  3757. }
  3758. if (i.css({
  3759. "-webkit-transform-origin": "50% 50% -" + l / 2 + "px",
  3760. "-moz-transform-origin": "50% 50% -" + l / 2 + "px",
  3761. "-ms-transform-origin": "50% 50% -" + l / 2 + "px",
  3762. "transform-origin": "50% 50% -" + l / 2 + "px"
  3763. }),
  3764. d.shadow)
  3765. if (h)
  3766. e.transform("translate3d(0px, " + (r / 2 + d.shadowOffset) + "px, " + -r / 2 + "px) rotateX(90deg) rotateZ(0deg) scale(" + d.shadowScale + ")");
  3767. else {
  3768. var M = Math.abs(c) - 90 * Math.floor(Math.abs(c) / 90)
  3769. , z = 1.5 - (Math.sin(2 * M * Math.PI / 360) / 2 + Math.cos(2 * M * Math.PI / 360) / 2)
  3770. , P = d.shadowScale
  3771. , k = d.shadowScale / z
  3772. , $ = d.shadowOffset;
  3773. e.transform("scale3d(" + P + ", 1, " + k + ") translate3d(0px, " + (n / 2 + $) + "px, " + -n / 2 / k + "px) rotateX(-90deg)")
  3774. }
  3775. var L = S.isSafari || S.isUiWebView ? -l / 2 : 0;
  3776. i.transform("translate3d(0px,0," + L + "px) rotateX(" + (this.isHorizontal() ? 0 : c) + "deg) rotateY(" + (this.isHorizontal() ? -c : 0) + "deg)")
  3777. },
  3778. setTransition: function(e) {
  3779. var t = this.$el;
  3780. this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),
  3781. this.params.cubeEffect.shadow && !this.isHorizontal() && t.find(".swiper-cube-shadow").transition(e)
  3782. }
  3783. }
  3784. , J = {
  3785. setTranslate: function() {
  3786. for (var e = this.slides, t = this.rtlTranslate, i = 0; i < e.length; i += 1) {
  3787. var a = e.eq(i)
  3788. , r = a[0].progress;
  3789. this.params.flipEffect.limitRotation && (r = Math.max(Math.min(a[0].progress, 1), -1));
  3790. var n = -180 * r
  3791. , o = 0
  3792. , l = -a[0].swiperSlideOffset
  3793. , d = 0;
  3794. if (this.isHorizontal() ? t && (n = -n) : (d = l,
  3795. l = 0,
  3796. o = -n,
  3797. n = 0),
  3798. a[0].style.zIndex = -Math.abs(Math.round(r)) + e.length,
  3799. this.params.flipEffect.slideShadows) {
  3800. var h = this.isHorizontal() ? a.find(".swiper-slide-shadow-left") : a.find(".swiper-slide-shadow-top")
  3801. , p = this.isHorizontal() ? a.find(".swiper-slide-shadow-right") : a.find(".swiper-slide-shadow-bottom");
  3802. 0 === h.length && (h = s('<div class="swiper-slide-shadow-' + (this.isHorizontal() ? "left" : "top") + '"></div>'),
  3803. a.append(h)),
  3804. 0 === p.length && (p = s('<div class="swiper-slide-shadow-' + (this.isHorizontal() ? "right" : "bottom") + '"></div>'),
  3805. a.append(p)),
  3806. h.length && (h[0].style.opacity = Math.max(-r, 0)),
  3807. p.length && (p[0].style.opacity = Math.max(r, 0))
  3808. }
  3809. a.transform("translate3d(" + l + "px, " + d + "px, 0px) rotateX(" + o + "deg) rotateY(" + n + "deg)")
  3810. }
  3811. },
  3812. setTransition: function(e) {
  3813. var t = this
  3814. , i = t.slides
  3815. , s = t.activeIndex
  3816. , a = t.$wrapperEl;
  3817. if (i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),
  3818. t.params.virtualTranslate && 0 !== e) {
  3819. var r = !1;
  3820. i.eq(s).transitionEnd(function() {
  3821. if (!r && t && !t.destroyed) {
  3822. r = !0,
  3823. t.animating = !1;
  3824. for (var e = ["webkitTransitionEnd", "transitionend"], i = 0; i < e.length; i += 1)
  3825. a.trigger(e[i])
  3826. }
  3827. })
  3828. }
  3829. }
  3830. }
  3831. , ee = {
  3832. setTranslate: function() {
  3833. for (var e = this.width, t = this.height, i = this.slides, a = this.$wrapperEl, r = this.slidesSizesGrid, n = this.params.coverflowEffect, o = this.isHorizontal(), l = this.translate, d = o ? e / 2 - l : t / 2 - l, p = o ? n.rotate : -n.rotate, c = n.depth, u = 0, v = i.length; u < v; u += 1) {
  3834. var f = i.eq(u)
  3835. , m = r[u]
  3836. , g = (d - f[0].swiperSlideOffset - m / 2) / m * n.modifier
  3837. , b = o ? p * g : 0
  3838. , w = o ? 0 : p * g
  3839. , y = -c * Math.abs(g)
  3840. , x = o ? 0 : n.stretch * g
  3841. , E = o ? n.stretch * g : 0;
  3842. Math.abs(E) < .001 && (E = 0),
  3843. Math.abs(x) < .001 && (x = 0),
  3844. Math.abs(y) < .001 && (y = 0),
  3845. Math.abs(b) < .001 && (b = 0),
  3846. Math.abs(w) < .001 && (w = 0);
  3847. var T = "translate3d(" + E + "px," + x + "px," + y + "px) rotateX(" + w + "deg) rotateY(" + b + "deg)";
  3848. if (f.transform(T),
  3849. f[0].style.zIndex = 1 - Math.abs(Math.round(g)),
  3850. n.slideShadows) {
  3851. var S = o ? f.find(".swiper-slide-shadow-left") : f.find(".swiper-slide-shadow-top")
  3852. , C = o ? f.find(".swiper-slide-shadow-right") : f.find(".swiper-slide-shadow-bottom");
  3853. 0 === S.length && (S = s('<div class="swiper-slide-shadow-' + (o ? "left" : "top") + '"></div>'),
  3854. f.append(S)),
  3855. 0 === C.length && (C = s('<div class="swiper-slide-shadow-' + (o ? "right" : "bottom") + '"></div>'),
  3856. f.append(C)),
  3857. S.length && (S[0].style.opacity = g > 0 ? g : 0),
  3858. C.length && (C[0].style.opacity = -g > 0 ? -g : 0)
  3859. }
  3860. }
  3861. (h.pointerEvents || h.prefixedPointerEvents) && (a[0].style.perspectiveOrigin = d + "px 50%")
  3862. },
  3863. setTransition: function(e) {
  3864. this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)
  3865. }
  3866. }
  3867. , te = [k, $, L, I, O, H, B, {
  3868. name: "mousewheel",
  3869. params: {
  3870. mousewheel: {
  3871. enabled: !1,
  3872. releaseOnEdges: !1,
  3873. invert: !1,
  3874. forceToAxis: !1,
  3875. sensitivity: 1,
  3876. eventsTarged: "container"
  3877. }
  3878. },
  3879. create: function() {
  3880. d.extend(this, {
  3881. mousewheel: {
  3882. enabled: !1,
  3883. enable: G.enable.bind(this),
  3884. disable: G.disable.bind(this),
  3885. handle: G.handle.bind(this),
  3886. handleMouseEnter: G.handleMouseEnter.bind(this),
  3887. handleMouseLeave: G.handleMouseLeave.bind(this),
  3888. lastScrollTime: d.now()
  3889. }
  3890. })
  3891. },
  3892. on: {
  3893. init: function() {
  3894. this.params.mousewheel.enabled && this.mousewheel.enable()
  3895. },
  3896. destroy: function() {
  3897. this.mousewheel.enabled && this.mousewheel.disable()
  3898. }
  3899. }
  3900. }, {
  3901. name: "navigation",
  3902. params: {
  3903. navigation: {
  3904. nextEl: null,
  3905. prevEl: null,
  3906. hideOnClick: !1,
  3907. disabledClass: "swiper-button-disabled",
  3908. hiddenClass: "swiper-button-hidden",
  3909. lockClass: "swiper-button-lock"
  3910. }
  3911. },
  3912. create: function() {
  3913. d.extend(this, {
  3914. navigation: {
  3915. init: X.init.bind(this),
  3916. update: X.update.bind(this),
  3917. destroy: X.destroy.bind(this)
  3918. }
  3919. })
  3920. },
  3921. on: {
  3922. init: function() {
  3923. this.navigation.init(),
  3924. this.navigation.update()
  3925. },
  3926. toEdge: function() {
  3927. this.navigation.update()
  3928. },
  3929. fromEdge: function() {
  3930. this.navigation.update()
  3931. },
  3932. destroy: function() {
  3933. this.navigation.destroy()
  3934. },
  3935. click: function(e) {
  3936. var t = this.navigation
  3937. , i = t.$nextEl
  3938. , a = t.$prevEl;
  3939. !this.params.navigation.hideOnClick || s(e.target).is(a) || s(e.target).is(i) || (i && i.toggleClass(this.params.navigation.hiddenClass),
  3940. a && a.toggleClass(this.params.navigation.hiddenClass))
  3941. }
  3942. }
  3943. }, {
  3944. name: "pagination",
  3945. params: {
  3946. pagination: {
  3947. el: null,
  3948. bulletElement: "span",
  3949. clickable: !1,
  3950. hideOnClick: !1,
  3951. renderBullet: null,
  3952. renderProgressbar: null,
  3953. renderFraction: null,
  3954. renderCustom: null,
  3955. type: "bullets",
  3956. dynamicBullets: !1,
  3957. dynamicMainBullets: 1,
  3958. bulletClass: "swiper-pagination-bullet",
  3959. bulletActiveClass: "swiper-pagination-bullet-active",
  3960. modifierClass: "swiper-pagination-",
  3961. currentClass: "swiper-pagination-current",
  3962. totalClass: "swiper-pagination-total",
  3963. hiddenClass: "swiper-pagination-hidden",
  3964. progressbarFillClass: "swiper-pagination-progressbar-fill",
  3965. clickableClass: "swiper-pagination-clickable",
  3966. lockClass: "swiper-pagination-lock"
  3967. }
  3968. },
  3969. create: function() {
  3970. d.extend(this, {
  3971. pagination: {
  3972. init: Y.init.bind(this),
  3973. render: Y.render.bind(this),
  3974. update: Y.update.bind(this),
  3975. destroy: Y.destroy.bind(this),
  3976. dynamicBulletIndex: 0
  3977. }
  3978. })
  3979. },
  3980. on: {
  3981. init: function() {
  3982. this.pagination.init(),
  3983. this.pagination.render(),
  3984. this.pagination.update()
  3985. },
  3986. activeIndexChange: function() {
  3987. this.params.loop ? this.pagination.update() : void 0 === this.snapIndex && this.pagination.update()
  3988. },
  3989. snapIndexChange: function() {
  3990. this.params.loop || this.pagination.update()
  3991. },
  3992. slidesLengthChange: function() {
  3993. this.params.loop && (this.pagination.render(),
  3994. this.pagination.update())
  3995. },
  3996. snapGridLengthChange: function() {
  3997. this.params.loop || (this.pagination.render(),
  3998. this.pagination.update())
  3999. },
  4000. destroy: function() {
  4001. this.pagination.destroy()
  4002. },
  4003. click: function(e) {
  4004. this.params.pagination.el && this.params.pagination.hideOnClick && this.pagination.$el.length > 0 && !s(e.target).hasClass(this.params.pagination.bulletClass) && this.pagination.$el.toggleClass(this.params.pagination.hiddenClass)
  4005. }
  4006. }
  4007. }, {
  4008. name: "scrollbar",
  4009. params: {
  4010. scrollbar: {
  4011. el: null,
  4012. dragSize: "auto",
  4013. hide: !1,
  4014. draggable: !1,
  4015. snapOnRelease: !0,
  4016. lockClass: "swiper-scrollbar-lock",
  4017. dragClass: "swiper-scrollbar-drag"
  4018. }
  4019. },
  4020. create: function() {
  4021. d.extend(this, {
  4022. scrollbar: {
  4023. init: V.init.bind(this),
  4024. destroy: V.destroy.bind(this),
  4025. updateSize: V.updateSize.bind(this),
  4026. setTranslate: V.setTranslate.bind(this),
  4027. setTransition: V.setTransition.bind(this),
  4028. enableDraggable: V.enableDraggable.bind(this),
  4029. disableDraggable: V.disableDraggable.bind(this),
  4030. setDragPosition: V.setDragPosition.bind(this),
  4031. onDragStart: V.onDragStart.bind(this),
  4032. onDragMove: V.onDragMove.bind(this),
  4033. onDragEnd: V.onDragEnd.bind(this),
  4034. isTouched: !1,
  4035. timeout: null,
  4036. dragTimeout: null
  4037. }
  4038. })
  4039. },
  4040. on: {
  4041. init: function() {
  4042. this.scrollbar.init(),
  4043. this.scrollbar.updateSize(),
  4044. this.scrollbar.setTranslate()
  4045. },
  4046. update: function() {
  4047. this.scrollbar.updateSize()
  4048. },
  4049. resize: function() {
  4050. this.scrollbar.updateSize()
  4051. },
  4052. observerUpdate: function() {
  4053. this.scrollbar.updateSize()
  4054. },
  4055. setTranslate: function() {
  4056. this.scrollbar.setTranslate()
  4057. },
  4058. setTransition: function(e) {
  4059. this.scrollbar.setTransition(e)
  4060. },
  4061. destroy: function() {
  4062. this.scrollbar.destroy()
  4063. }
  4064. }
  4065. }, {
  4066. name: "parallax",
  4067. params: {
  4068. parallax: {
  4069. enabled: !1
  4070. }
  4071. },
  4072. create: function() {
  4073. d.extend(this, {
  4074. parallax: {
  4075. setTransform: R.setTransform.bind(this),
  4076. setTranslate: R.setTranslate.bind(this),
  4077. setTransition: R.setTransition.bind(this)
  4078. }
  4079. })
  4080. },
  4081. on: {
  4082. beforeInit: function() {
  4083. this.params.parallax.enabled && (this.params.watchSlidesProgress = !0)
  4084. },
  4085. init: function() {
  4086. this.params.parallax && this.parallax.setTranslate()
  4087. },
  4088. setTranslate: function() {
  4089. this.params.parallax && this.parallax.setTranslate()
  4090. },
  4091. setTransition: function(e) {
  4092. this.params.parallax && this.parallax.setTransition(e)
  4093. }
  4094. }
  4095. }, {
  4096. name: "zoom",
  4097. params: {
  4098. zoom: {
  4099. enabled: !1,
  4100. maxRatio: 3,
  4101. minRatio: 1,
  4102. toggle: !0,
  4103. containerClass: "swiper-zoom-container",
  4104. zoomedSlideClass: "swiper-slide-zoomed"
  4105. }
  4106. },
  4107. create: function() {
  4108. var e = this
  4109. , t = {
  4110. enabled: !1,
  4111. scale: 1,
  4112. currentScale: 1,
  4113. isScaling: !1,
  4114. gesture: {
  4115. $slideEl: void 0,
  4116. slideWidth: void 0,
  4117. slideHeight: void 0,
  4118. $imageEl: void 0,
  4119. $imageWrapEl: void 0,
  4120. maxRatio: 3
  4121. },
  4122. image: {
  4123. isTouched: void 0,
  4124. isMoved: void 0,
  4125. currentX: void 0,
  4126. currentY: void 0,
  4127. minX: void 0,
  4128. minY: void 0,
  4129. maxX: void 0,
  4130. maxY: void 0,
  4131. width: void 0,
  4132. height: void 0,
  4133. startX: void 0,
  4134. startY: void 0,
  4135. touchesStart: {},
  4136. touchesCurrent: {}
  4137. },
  4138. velocity: {
  4139. x: void 0,
  4140. y: void 0,
  4141. prevPositionX: void 0,
  4142. prevPositionY: void 0,
  4143. prevTime: void 0
  4144. }
  4145. };
  4146. "onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function(i) {
  4147. t[i] = F[i].bind(e)
  4148. }),
  4149. d.extend(e, {
  4150. zoom: t
  4151. })
  4152. },
  4153. on: {
  4154. init: function() {
  4155. this.params.zoom.enabled && this.zoom.enable()
  4156. },
  4157. destroy: function() {
  4158. this.zoom.disable()
  4159. },
  4160. touchStart: function(e) {
  4161. this.zoom.enabled && this.zoom.onTouchStart(e)
  4162. },
  4163. touchEnd: function(e) {
  4164. this.zoom.enabled && this.zoom.onTouchEnd(e)
  4165. },
  4166. doubleTap: function(e) {
  4167. this.params.zoom.enabled && this.zoom.enabled && this.params.zoom.toggle && this.zoom.toggle(e)
  4168. },
  4169. transitionEnd: function() {
  4170. this.zoom.enabled && this.params.zoom.enabled && this.zoom.onTransitionEnd()
  4171. }
  4172. }
  4173. }, {
  4174. name: "lazy",
  4175. params: {
  4176. lazy: {
  4177. enabled: !1,
  4178. loadPrevNext: !1,
  4179. loadPrevNextAmount: 1,
  4180. loadOnTransitionStart: !1,
  4181. elementClass: "swiper-lazy",
  4182. loadingClass: "swiper-lazy-loading",
  4183. loadedClass: "swiper-lazy-loaded",
  4184. preloaderClass: "swiper-lazy-preloader"
  4185. }
  4186. },
  4187. create: function() {
  4188. d.extend(this, {
  4189. lazy: {
  4190. initialImageLoaded: !1,
  4191. load: W.load.bind(this),
  4192. loadInSlide: W.loadInSlide.bind(this)
  4193. }
  4194. })
  4195. },
  4196. on: {
  4197. beforeInit: function() {
  4198. this.params.lazy.enabled && this.params.preloadImages && (this.params.preloadImages = !1)
  4199. },
  4200. init: function() {
  4201. this.params.lazy.enabled && !this.params.loop && 0 === this.params.initialSlide && this.lazy.load()
  4202. },
  4203. scroll: function() {
  4204. this.params.freeMode && !this.params.freeModeSticky && this.lazy.load()
  4205. },
  4206. resize: function() {
  4207. this.params.lazy.enabled && this.lazy.load()
  4208. },
  4209. scrollbarDragMove: function() {
  4210. this.params.lazy.enabled && this.lazy.load()
  4211. },
  4212. transitionStart: function() {
  4213. this.params.lazy.enabled && (this.params.lazy.loadOnTransitionStart || !this.params.lazy.loadOnTransitionStart && !this.lazy.initialImageLoaded) && this.lazy.load()
  4214. },
  4215. transitionEnd: function() {
  4216. this.params.lazy.enabled && !this.params.lazy.loadOnTransitionStart && this.lazy.load()
  4217. }
  4218. }
  4219. }, {
  4220. name: "controller",
  4221. params: {
  4222. controller: {
  4223. control: void 0,
  4224. inverse: !1,
  4225. by: "slide"
  4226. }
  4227. },
  4228. create: function() {
  4229. d.extend(this, {
  4230. controller: {
  4231. control: this.params.controller.control,
  4232. getInterpolateFunction: q.getInterpolateFunction.bind(this),
  4233. setTranslate: q.setTranslate.bind(this),
  4234. setTransition: q.setTransition.bind(this)
  4235. }
  4236. })
  4237. },
  4238. on: {
  4239. update: function() {
  4240. this.controller.control && this.controller.spline && (this.controller.spline = void 0,
  4241. delete this.controller.spline)
  4242. },
  4243. resize: function() {
  4244. this.controller.control && this.controller.spline && (this.controller.spline = void 0,
  4245. delete this.controller.spline)
  4246. },
  4247. observerUpdate: function() {
  4248. this.controller.control && this.controller.spline && (this.controller.spline = void 0,
  4249. delete this.controller.spline)
  4250. },
  4251. setTranslate: function(e, t) {
  4252. this.controller.control && this.controller.setTranslate(e, t)
  4253. },
  4254. setTransition: function(e, t) {
  4255. this.controller.control && this.controller.setTransition(e, t)
  4256. }
  4257. }
  4258. }, {
  4259. name: "a11y",
  4260. params: {
  4261. a11y: {
  4262. enabled: !0,
  4263. notificationClass: "swiper-notification",
  4264. prevSlideMessage: "Previous slide",
  4265. nextSlideMessage: "Next slide",
  4266. firstSlideMessage: "This is the first slide",
  4267. lastSlideMessage: "This is the last slide",
  4268. paginationBulletMessage: "Go to slide {{index}}"
  4269. }
  4270. },
  4271. create: function() {
  4272. var e = this;
  4273. d.extend(e, {
  4274. a11y: {
  4275. liveRegion: s('<span class="' + e.params.a11y.notificationClass + '" aria-live="assertive" aria-atomic="true"></span>')
  4276. }
  4277. }),
  4278. Object.keys(j).forEach(function(t) {
  4279. e.a11y[t] = j[t].bind(e)
  4280. })
  4281. },
  4282. on: {
  4283. init: function() {
  4284. this.params.a11y.enabled && (this.a11y.init(),
  4285. this.a11y.updateNavigation())
  4286. },
  4287. toEdge: function() {
  4288. this.params.a11y.enabled && this.a11y.updateNavigation()
  4289. },
  4290. fromEdge: function() {
  4291. this.params.a11y.enabled && this.a11y.updateNavigation()
  4292. },
  4293. paginationUpdate: function() {
  4294. this.params.a11y.enabled && this.a11y.updatePagination()
  4295. },
  4296. destroy: function() {
  4297. this.params.a11y.enabled && this.a11y.destroy()
  4298. }
  4299. }
  4300. }, {
  4301. name: "history",
  4302. params: {
  4303. history: {
  4304. enabled: !1,
  4305. replaceState: !1,
  4306. key: "slides"
  4307. }
  4308. },
  4309. create: function() {
  4310. d.extend(this, {
  4311. history: {
  4312. init: K.init.bind(this),
  4313. setHistory: K.setHistory.bind(this),
  4314. setHistoryPopState: K.setHistoryPopState.bind(this),
  4315. scrollToSlide: K.scrollToSlide.bind(this),
  4316. destroy: K.destroy.bind(this)
  4317. }
  4318. })
  4319. },
  4320. on: {
  4321. init: function() {
  4322. this.params.history.enabled && this.history.init()
  4323. },
  4324. destroy: function() {
  4325. this.params.history.enabled && this.history.destroy()
  4326. },
  4327. transitionEnd: function() {
  4328. this.history.initialized && this.history.setHistory(this.params.history.key, this.activeIndex)
  4329. }
  4330. }
  4331. }, {
  4332. name: "hash-navigation",
  4333. params: {
  4334. hashNavigation: {
  4335. enabled: !1,
  4336. replaceState: !1,
  4337. watchState: !1
  4338. }
  4339. },
  4340. create: function() {
  4341. d.extend(this, {
  4342. hashNavigation: {
  4343. initialized: !1,
  4344. init: U.init.bind(this),
  4345. destroy: U.destroy.bind(this),
  4346. setHash: U.setHash.bind(this),
  4347. onHashCange: U.onHashCange.bind(this)
  4348. }
  4349. })
  4350. },
  4351. on: {
  4352. init: function() {
  4353. this.params.hashNavigation.enabled && this.hashNavigation.init()
  4354. },
  4355. destroy: function() {
  4356. this.params.hashNavigation.enabled && this.hashNavigation.destroy()
  4357. },
  4358. transitionEnd: function() {
  4359. this.hashNavigation.initialized && this.hashNavigation.setHash()
  4360. }
  4361. }
  4362. }, {
  4363. name: "autoplay",
  4364. params: {
  4365. autoplay: {
  4366. enabled: !1,
  4367. delay: 3e3,
  4368. waitForTransition: !0,
  4369. disableOnInteraction: !0,
  4370. stopOnLastSlide: !1,
  4371. reverseDirection: !1
  4372. }
  4373. },
  4374. create: function() {
  4375. d.extend(this, {
  4376. autoplay: {
  4377. running: !1,
  4378. paused: !1,
  4379. run: _.run.bind(this),
  4380. start: _.start.bind(this),
  4381. stop: _.stop.bind(this),
  4382. pause: _.pause.bind(this)
  4383. }
  4384. })
  4385. },
  4386. on: {
  4387. init: function() {
  4388. this.params.autoplay.enabled && this.autoplay.start()
  4389. },
  4390. beforeTransitionStart: function(e, t) {
  4391. this.autoplay.running && (t || !this.params.autoplay.disableOnInteraction ? this.autoplay.pause(e) : this.autoplay.stop())
  4392. },
  4393. sliderFirstMove: function() {
  4394. this.autoplay.running && (this.params.autoplay.disableOnInteraction ? this.autoplay.stop() : this.autoplay.pause())
  4395. },
  4396. destroy: function() {
  4397. this.autoplay.running && this.autoplay.stop()
  4398. }
  4399. }
  4400. }, {
  4401. name: "effect-fade",
  4402. params: {
  4403. fadeEffect: {
  4404. crossFade: !1
  4405. }
  4406. },
  4407. create: function() {
  4408. d.extend(this, {
  4409. fadeEffect: {
  4410. setTranslate: Z.setTranslate.bind(this),
  4411. setTransition: Z.setTransition.bind(this)
  4412. }
  4413. })
  4414. },
  4415. on: {
  4416. beforeInit: function() {
  4417. if ("fade" === this.params.effect) {
  4418. this.classNames.push(this.params.containerModifierClass + "fade");
  4419. var e = {
  4420. slidesPerView: 1,
  4421. slidesPerColumn: 1,
  4422. slidesPerGroup: 1,
  4423. watchSlidesProgress: !0,
  4424. spaceBetween: 0,
  4425. virtualTranslate: !0
  4426. };
  4427. d.extend(this.params, e),
  4428. d.extend(this.originalParams, e)
  4429. }
  4430. },
  4431. setTranslate: function() {
  4432. "fade" === this.params.effect && this.fadeEffect.setTranslate()
  4433. },
  4434. setTransition: function(e) {
  4435. "fade" === this.params.effect && this.fadeEffect.setTransition(e)
  4436. }
  4437. }
  4438. }, {
  4439. name: "effect-cube",
  4440. params: {
  4441. cubeEffect: {
  4442. slideShadows: !0,
  4443. shadow: !0,
  4444. shadowOffset: 20,
  4445. shadowScale: .94
  4446. }
  4447. },
  4448. create: function() {
  4449. d.extend(this, {
  4450. cubeEffect: {
  4451. setTranslate: Q.setTranslate.bind(this),
  4452. setTransition: Q.setTransition.bind(this)
  4453. }
  4454. })
  4455. },
  4456. on: {
  4457. beforeInit: function() {
  4458. if ("cube" === this.params.effect) {
  4459. this.classNames.push(this.params.containerModifierClass + "cube"),
  4460. this.classNames.push(this.params.containerModifierClass + "3d");
  4461. var e = {
  4462. slidesPerView: 1,
  4463. slidesPerColumn: 1,
  4464. slidesPerGroup: 1,
  4465. watchSlidesProgress: !0,
  4466. resistanceRatio: 0,
  4467. spaceBetween: 0,
  4468. centeredSlides: !1,
  4469. virtualTranslate: !0
  4470. };
  4471. d.extend(this.params, e),
  4472. d.extend(this.originalParams, e)
  4473. }
  4474. },
  4475. setTranslate: function() {
  4476. "cube" === this.params.effect && this.cubeEffect.setTranslate()
  4477. },
  4478. setTransition: function(e) {
  4479. "cube" === this.params.effect && this.cubeEffect.setTransition(e)
  4480. }
  4481. }
  4482. }, {
  4483. name: "effect-flip",
  4484. params: {
  4485. flipEffect: {
  4486. slideShadows: !0,
  4487. limitRotation: !0
  4488. }
  4489. },
  4490. create: function() {
  4491. d.extend(this, {
  4492. flipEffect: {
  4493. setTranslate: J.setTranslate.bind(this),
  4494. setTransition: J.setTransition.bind(this)
  4495. }
  4496. })
  4497. },
  4498. on: {
  4499. beforeInit: function() {
  4500. if ("flip" === this.params.effect) {
  4501. this.classNames.push(this.params.containerModifierClass + "flip"),
  4502. this.classNames.push(this.params.containerModifierClass + "3d");
  4503. var e = {
  4504. slidesPerView: 1,
  4505. slidesPerColumn: 1,
  4506. slidesPerGroup: 1,
  4507. watchSlidesProgress: !0,
  4508. spaceBetween: 0,
  4509. virtualTranslate: !0
  4510. };
  4511. d.extend(this.params, e),
  4512. d.extend(this.originalParams, e)
  4513. }
  4514. },
  4515. setTranslate: function() {
  4516. "flip" === this.params.effect && this.flipEffect.setTranslate()
  4517. },
  4518. setTransition: function(e) {
  4519. "flip" === this.params.effect && this.flipEffect.setTransition(e)
  4520. }
  4521. }
  4522. }, {
  4523. name: "effect-coverflow",
  4524. params: {
  4525. coverflowEffect: {
  4526. rotate: 50,
  4527. stretch: 0,
  4528. depth: 100,
  4529. modifier: 1,
  4530. slideShadows: !0
  4531. }
  4532. },
  4533. create: function() {
  4534. d.extend(this, {
  4535. coverflowEffect: {
  4536. setTranslate: ee.setTranslate.bind(this),
  4537. setTransition: ee.setTransition.bind(this)
  4538. }
  4539. })
  4540. },
  4541. on: {
  4542. beforeInit: function() {
  4543. "coverflow" === this.params.effect && (this.classNames.push(this.params.containerModifierClass + "coverflow"),
  4544. this.classNames.push(this.params.containerModifierClass + "3d"),
  4545. this.params.watchSlidesProgress = !0,
  4546. this.originalParams.watchSlidesProgress = !0)
  4547. },
  4548. setTranslate: function() {
  4549. "coverflow" === this.params.effect && this.coverflowEffect.setTranslate()
  4550. },
  4551. setTransition: function(e) {
  4552. "coverflow" === this.params.effect && this.coverflowEffect.setTransition(e)
  4553. }
  4554. }
  4555. }];
  4556. return void 0 === P.use && (P.use = P.Class.use,
  4557. P.installModule = P.Class.installModule),
  4558. P.use(te),
  4559. P
  4560. });
  4561. //# sourceMappingURL=swiper.min.js.map