PageSourceSearch

https://phongkhongkhongquan.vn/js/owl.carousel.min.js

js phongkhongkhongquan.vn collected 2026-10-02 13:52:42 UTC 44,258 bytes, 1,208 lines download raw bytes

1if (typeof Object.create !== "function") {
2    Object.create = function(e) {
3        function t() {}
4        t.prototype = e;
5        return new t
6    }
7}(function(e, t, n, r) {
8    var i = {
9        init: function(t, n) {
10            var r = this;
11            r.$elem = e(n);
12            r.options = e.extend({}, e.fn.owlCarousel.options, r.$elem.data(), t);
13            r.userOptions = t;
14            r.loadContent()
15        },
16        loadContent: function() {
17            var t = this;
18            if (typeof t.options.beforeInit === "function") {
19                t.options.beforeInit.apply(this, [t.$elem])
20            }
21            if (typeof t.options.jsonPath === "string") {
22                var n = t.options.jsonPath;
23
24                function r(e) {
25                    if (typeof t.options.jsonSuccess === "function") {
26                        t.options.jsonSuccess.apply(this, [e])
27                    } else {
28                        var n = "";
29                        for (var r in e["owl"]) {
30                            n += e["owl"][r]["item"]
31                        }
32                        t.$elem.html(n)
33                    }
34                    t.logIn()
35                }
36                e.getJSON(n, r)
37            } else {
38                t.logIn()
39            }
40        },
41        logIn: function(e) {
42            var t = this;
43            t.$elem.css({
44                opacity: 0
45            });
46            t.orignalItems = t.options.items;
47            t.checkBrowser();
48            t.wrapperWidth = 0;
49            t.checkVisible;
50            t.setVars()
51        },
52        setVars: function() {
53            var e = this;
54            if (e.$elem.children().length === 0) {
55                return false
56            }
57            e.baseClass();
58            e.eventTypes();
59            e.$userItems = e.$elem.children();
60            e.itemsAmount = e.$userItems.length;
61            e.wrapItems();
62            e.$owlItems = e.$elem.find(".owl-item");
63            e.$owlWrapper = e.$elem.find(".owl-wrapper");
64            e.playDirection = "next";
65            e.prevItem = 0;
66            e.currentItem = 0;
67            e.customEvents();
68            e.onStartup()
69        },
70        onStartup: function() {
71            var e = this;
72            e.updateItems();
73            e.calculateAll();
74            e.buildControls();
75            e.updateControls();
76            e.response();
77            e.moveEvents();
78            e.stopOnHover();
79            e.owlStatus();
80            if (e.options.transitionStyle !== false) {
81                e.transitionTypes(e.options.transitionStyle)
82            }
83            if (e.options.autoPlay === true) {
84                e.options.autoPlay = 5e3
85            }
86            e.play();
87            e.$elem.find(".owl-wrapper").css("display", "block");
88            if (!e.$elem.is(":visible")) {
89                e.watchVisibility()
90            } else {
91                e.$elem.css("opacity", 1)
92            }
93            e.onstartup = false;
94            e.eachMoveUpdate();
95            if (typeof e.options.afterInit === "function") {
96                e.options.afterInit.apply(this, [e.$elem])
97            }
98        },
99        eachMoveUpdate: function() {
100            var e = this;
101            if (e.options.lazyLoad === true) {
102                e.lazyLoad()
103            }
104            if (e.options.autoHeight === true) {
105                e.autoHeight()
106            }
107            e.onVisibleItems();
108            if (typeof e.options.afterAction === "function") {
109                e.options.afterAction.apply(this, [e.$elem])
110            }
111        },
112        updateVars: function() {
113            var e = this;
114            if (typeof e.options.beforeUpdate === "function") {
115                e.options.beforeUpdate.apply(this, [e.$elem])
116            }
117            e.watchVisibility();
118            e.updateItems();
119            e.calculateAll();
120            e.updatePosition();
121            e.updateControls();
122            e.eachMoveUpdate();
123            if (typeof e.options.afterUpdate === "function") {
124                e.options.afterUpdate.apply(this, [e.$elem])
125            }
126        },
127        reload: function(e) {
128            var t = this;
129            setTimeout(function() {
130                t.updateVars()
131            }, 0)
132        },
133        watchVisibility: function() {
134            var e = this;
135            if (e.$elem.is(":visible") === false) {
136                e.$elem.css({
137                    opacity: 0
138                });
139                clearInterval(e.autoPlayInterval);
140                clearInterval(e.checkVisible)
141            } else {
142                return false
143            }
144            e.checkVisible = setInterval(function() {
145                if (e.$elem.is(":visible")) {
146                    e.reload();
147                    e.$elem.animate({
148                        opacity: 1
149                    }, 200);
150                    clearInterval(e.checkVisible)
151                }
152            }, 500)
153        },
154        wrapItems: function() {
155            var e = this;
156            e.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"></div>');
157            e.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">');
158            e.wrapperOuter = e.$elem.find(".owl-wrapper-outer");
159            e.$elem.css("display", "block")
160        },
161        baseClass: function() {
162            var e = this;
163            var t = e.$elem.hasClass(e.options.baseClass);
164            var n = e.$elem.hasClass(e.options.theme);
165            e.$elem.data("owl-originalStyles", e.$elem.attr("style")).data("owl-originalClasses", e.$elem.attr("class"));
166            if (!t) {
167                e.$elem.addClass(e.options.baseClass)
168            }
169            if (!n) {
170                e.$elem.addClass(e.options.theme)
171            }
172        },
173        updateItems: function() {
174            var t = this;
175            if (t.options.responsive === false) {
176                return false
177            }
178            if (t.options.singleItem === true) {
179                t.options.items = t.orignalItems = 1;
180                t.options.itemsDesktop = false;
181                t.options.itemsDesktopSmall = false;
182                t.options.itemsTablet = false;
183                t.options.itemsTabletSmall = false;
184                t.options.itemsMobile = false;
185                return false
186            }
187            var n = e(t.options.responsiveBaseWidth).width();
188            if (n > (t.options.itemsDesktop[0] || t.orignalItems)) {
189                t.options.items = t.orignalItems
190            }
191            if (n <= t.options.itemsDesktop[0] && t.options.itemsDesktop !== false) {
192                t.options.items = t.options.itemsDesktop[1]
193            }
194            if (n <= t.options.itemsDesktopSmall[0] && t.options.itemsDesktopSmall !== false) {
195                t.options.items = t.options.itemsDesktopSmall[1]
196            }
197            if (n <= t.options.itemsTablet[0] && t.options.itemsTablet !== false) {
198                t.options.items = t.options.itemsTablet[1]
199            }
200            if (n <= t.options.itemsTabletSmall[0] && t.options.itemsTabletSmall !== false) {
201                t.options.items = t.options.itemsTabletSmall[1]
202            }
203            if (n <= t.options.itemsMobile[0] && t.options.itemsMobile !== false) {
204                t.options.items = t.options.itemsMobile[1]
205            }
206            if (t.options.items > t.itemsAmount && t.options.itemsScaleUp === true) {
207                t.options.items = t.itemsAmount
208            }
209        },
210        response: function() {
211            var n = this,
212                r;
213            if (n.options.responsive !== true) {
214                return false
215            }
216            var i = e(t).width();
217            n.resizer = function() {
218                if (e(t).width() !== i) {
219                    if (n.options.autoPlay !== false) {
220                        clearInterval(n.autoPlayInterval)
221                    }
222                    clearTimeout(r);
223                    r = setTimeout(function() {
224                        i = e(t).width();
225                        n.updateVars()
226                    }, n.options.responsiveRefreshRate)
227                }
228            };
229            e(t).resize(n.resizer)
230        },
231        updatePosition: function() {
232            var e = this;
233            if (e.browser.support3d === true) {
234                if (e.positionsInArray[e.currentItem] > e.maximumPixels) {
235                    e.transition3d(e.positionsInArray[e.currentItem])
236                } else {
237                    e.transition3d(0);
238                    e.currentItem = 0
239                }
240            } else {
241                if (e.positionsInArray[e.currentItem] > e.maximumPixels) {
242                    e.css2slide(e.positionsInArray[e.currentItem])
243                } else {
244                    e.css2slide(0);
245                    e.currentItem = 0
246                }
247            }
248            if (e.options.autoPlay !== false) {
249                e.checkAp()
250            }
251        },
252        appendItemsSizes: function() {
253            var t = this;
254            var n = 0;
255            var r = t.itemsAmount - t.options.items;
256            t.$owlItems.each(function(i) {
257                var s = e(this);
258                s.css({
259                    width: t.itemWidth
260                }).data("owl-item", Number(i));
261                if (i % t.options.items === 0 || i === r) {
262                    if (!(i > r)) {
263                        n += 1
264                    }
265                }
266                s.data("owl-roundPages", n)
267            })
268        },
269        appendWrapperSizes: function() {
270            var e = this;
271            var t = 0;
272            var t = e.$owlItems.length * e.itemWidth;
273            e.$owlWrapper.css({
274                width: t * 2,
275                left: 0
276            });
277            e.appendItemsSizes()
278        },
279        calculateAll: function() {
280            var e = this;
281            e.calculateWidth();
282            e.appendWrapperSizes();
283            e.loops();
284            e.max()
285        },
286        calculateWidth: function() {
287            var e = this;
288            e.itemWidth = Math.round(e.$elem.width() / e.options.items)
289        },
290        max: function() {
291            var e = this;
292            var t = (e.itemsAmount * e.itemWidth - e.options.items * e.itemWidth) * -1;
293            if (e.options.items > e.itemsAmount) {
294                e.maximumItem = 0;
295                t = 0;
296                e.maximumPixels = 0
297            } else {
298                e.maximumItem = e.itemsAmount - e.options.items;
299                e.maximumPixels = t
300            }
301            return t
302        },
303        min: function() {
304            return 0
305        },
306        loops: function() {
307            var e = this;
308            e.positionsInArray = [0];
309            var t = 0;
310            for (var n = 0; n < e.itemsAmount; n++) {
311                t += e.itemWidth;
312                e.positionsInArray.push(-t)
313            }
314        },
315        buildControls: function() {
316            var t = this;
317            if (t.options.navigation === true || t.options.pagination === true) {
318                t.owlControls = e('<div class="owl-controls"/>').toggleClass("clickable", !t.browser.isTouch).appendTo(t.$elem)
319            }
320            if (t.options.pagination === true) {
321                t.buildPagination()
322            }
323            if (t.options.navigation === true) {
324                t.buildButtons()
325            }
326        },
327        buildButtons: function() {
328            var t = this;
329            var n = e('<div class="owl-buttons"/>');
330            t.owlControls.append(n);
331            t.buttonPrev = e("<div/>", {
332                "class": "owl-prev",
333                html: t.options.navigationText[0] || ""
334            });
335            t.buttonNext = e("<div/>", {
336                "class": "owl-next",
337                html: t.options.navigationText[1] || ""
338            });
339            n.append(t.buttonPrev).append(t.buttonNext);
340            n.on("touchstart.owlControls mousedown.owlControls", 'div[class^="owl"]', function(e) {
341                e.preventDefault()
342            });
343            n.on("touchend.owlControls mouseup.owlControls", 'div[class^="owl"]', function(n) {
344                n.preventDefault();
345                if (e(this).hasClass("owl-next")) {
346                    t.next()
347                } else {
348                    t.prev()
349                }
350            })
351        },
352        buildPagination: function() {
353            var t = this;
354            t.paginationWrapper = e('<div class="owl-pagination"/>');
355            t.owlControls.append(t.paginationWrapper);
356            t.paginationWrapper.on("touchend.owlControls mouseup.owlControls", ".owl-page", function(n) {
357                n.preventDefault();
358                if (Number(e(this).data("owl-page")) !== t.currentItem) {
359                    t.goTo(Number(e(this).data("owl-page")), true)
360                }
361            })
362        },
363        updatePagination: function() {
364            var t = this;
365            if (t.options.pagination === false) {
366                return false
367            }
368            t.paginationWrapper.html("");
369            var n = 0;
370            var r = t.itemsAmount - t.itemsAmount % t.options.items;
371            for (var i = 0; i < t.itemsAmount; i++) {
372                if (i % t.options.items === 0) {
373                    n += 1;
374                    if (r === i) {
375                        var s = t.itemsAmount - t.options.items
376                    }
377                    var o = e("<div/>", {
378                        "class": "owl-page"
379                    });
380                    var u = e("<span></span>", {
381                        text: t.options.paginationNumbers === true ? n : "",
382                        "class": t.options.paginationNumbers === true ? "owl-numbers" : ""
383                    });
384                    o.append(u);
385                    o.data("owl-page", r === i ? s : i);
386                    o.data("owl-roundPages", n);
387                    t.paginationWrapper.append(o)
388                }
389            }
390            t.checkPagination()
391        },
392        checkPagination: function() {
393            var t = this;
394            if (t.options.pagination === false) {
395                return false
396            }
397            t.paginationWrapper.find(".owl-page").each(function(n, r) {
398                if (e(this).data("owl-roundPages") === e(t.$owlItems[t.currentItem]).data("owl-roundPages")) {
399                    t.paginationWrapper.find(".owl-page").removeClass("active");
400                    e(this).addClass("active")
401                }
402            })
403        },
404        checkNavigation: function() {
405            var e = this;
406            if (e.options.navigation === false) {
407                return false
408            }
409            if (e.options.rewindNav === false) {
410                if (e.currentItem === 0 && e.maximumItem === 0) {
411                    e.buttonPrev.addClass("disabled");
412                    e.buttonNext.addClass("disabled")
413                } else if (e.currentItem === 0 && e.maximumItem !== 0) {
414                    e.buttonPrev.addClass("disabled");
415                    e.buttonNext.removeClass("disabled")
416                } else if (e.currentItem === e.maximumItem) {
417                    e.buttonPrev.removeClass("disabled");
418                    e.buttonNext.addClass("disabled")
419                } else if (e.currentItem !== 0 && e.currentItem !== e.maximumItem) {
420                    e.buttonPrev.removeClass("disabled");
421                    e.buttonNext.removeClass("disabled")
422                }
423            }
424        },
425        updateControls: function() {
426            var e = this;
427            e.updatePagination();
428            e.checkNavigation();
429            if (e.owlControls) {
430                if (e.options.items >= e.itemsAmount) {
431                    e.owlControls.hide()
432                } else {
433                    e.owlControls.show()
434                }
435            }
436        },
437        destroyControls: function() {
438            var e = this;
439            if (e.owlControls) {
440                e.owlControls.remove()
441            }
442        },
443        next: function(e) {
444            var t = this;
445            if (t.isTransition) {
446                return false
447            }
448            t.storePrevItem = t.currentItem;
449            t.currentItem += t.options.scrollPerPage === true ? t.options.items : 1;
450            if (t.currentItem > t.maximumItem + (t.options.scrollPerPage == true ? t.options.items - 1 : 0)) {
451                if (t.options.rewindNav === true) {
452                    t.currentItem = 0;
453                    e = "rewind"
454                } else {
455                    t.currentItem = t.maximumItem;
456                    return false
457                }
458            }
459            t.goTo(t.currentItem, e)
460        },
461        prev: function(e) {
462            var t = this;
463            if (t.isTransition) {
464                return false
465            }
466            t.storePrevItem = t.currentItem;
467            if (t.options.scrollPerPage === true && t.currentItem > 0 && t.currentItem < t.options.items) {
468                t.currentItem = 0
469            } else {
470                t.currentItem -= t.options.scrollPerPage === true ? t.options.items : 1
471            }
472            if (t.currentItem < 0) {
473                if (t.options.rewindNav === true) {
474                    t.currentItem = t.maximumItem;
475                    e = "rewind"
476                } else {
477                    t.currentItem = 0;
478                    return false
479                }
480            }
481            t.goTo(t.currentItem, e)
482        },
483        goTo: function(e, t, n) {
484            var r = this;
485            if (r.isTransition) {
486                return false
487            }
488            r.getPrevItem();
489            if (typeof r.options.beforeMove === "function") {
490                r.options.beforeMove.apply(this, [r.$elem])
491            }
492            if (e >= r.maximumItem) {
493                e = r.maximumItem
494            } else if (e <= 0) {
495                e = 0
496            }
497            r.currentItem = r.owl.currentItem = e;
498            if (r.options.transitionStyle !== false && n !== "drag" && r.options.items === 1 && r.browser.support3d === true) {
499                r.swapSpeed(0);
500                if (r.browser.support3d === true) {
501                    r.transition3d(r.positionsInArray[e])
502                } else {
503                    r.css2slide(r.positionsInArray[e], 1)
504                }
505                r.singleItemTransition();
506                r.afterGo();
507                return false
508            }
509            var i = r.positionsInArray[e];
510            if (r.browser.support3d === true) {
511                r.isCss3Finish = false;
512                if (t === true) {
513                    r.swapSpeed("paginationSpeed");
514                    setTimeout(function() {
515                        r.isCss3Finish = true
516                    }, r.options.paginationSpeed)
517                } else if (t === "rewind") {
518                    r.swapSpeed(r.options.rewindSpeed);
519                    setTimeout(function() {
520                        r.isCss3Finish = true
521                    }, r.options.rewindSpeed)
522                } else {
523                    r.swapSpeed("slideSpeed");
524                    setTimeout(function() {
525                        r.isCss3Finish = true
526                    }, r.options.slideSpeed)
527                }
528                r.transition3d(i)
529            } else {
530                if (t === true) {
531                    r.css2slide(i, r.options.paginationSpeed)
532                } else if (t === "rewind") {
533                    r.css2slide(i, r.options.rewindSpeed)
534                } else {
535                    r.css2slide(i, r.options.slideSpeed)
536                }
537            }
538            r.afterGo()
539        },
540        getPrevItem: function() {
541            var e = this;
542            e.prevItem = e.owl.prevItem = e.storePrevItem === r ? e.currentItem : e.storePrevItem;
543            e.storePrevItem = r
544        },
545        jumpTo: function(e) {
546            var t = this;
547            t.getPrevItem();
548            if (typeof t.options.beforeMove === "function") {
549                t.options.beforeMove.apply(this, [t.$elem])
550            }
551            if (e >= t.maximumItem || e === -1) {
552                e = t.maximumItem
553            } else if (e <= 0) {
554                e = 0
555            }
556            t.swapSpeed(0);
557            if (t.browser.support3d === true) {
558                t.transition3d(t.positionsInArray[e])
559            } else {
560                t.css2slide(t.positionsInArray[e], 1)
561            }
562            t.currentItem = t.owl.currentItem = e;
563            t.afterGo()
564        },
565        afterGo: function() {
566            var e = this;
567            e.checkPagination();
568            e.checkNavigation();
569            e.eachMoveUpdate();
570            if (typeof e.options.afterMove === "function") {
571                e.options.afterMove.apply(this, [e.$elem])
572            }
573            if (e.options.autoPlay !== false) {
574                e.checkAp()
575            }
576        },
577        stop: function() {
578            var e = this;
579            e.apStatus = "stop";
580            clearInterval(e.autoPlayInterval)
581        },
582        checkAp: function() {
583            var e = this;
584            if (e.apStatus !== "stop") {
585                e.play()
586            }
587        },
588        play: function() {
589            var e = this;
590            e.apStatus = "play";
591            if (e.options.autoPlay === false) {
592                return false
593            }
594            clearInterval(e.autoPlayInterval);
595            e.autoPlayInterval = setInterval(function() {
596                e.next(true)
597            }, e.options.autoPlay)
598        },
599        swapSpeed: function(e) {
600            var t = this;
601            if (e === "slideSpeed") {
602                t.$owlWrapper.css(t.addCssSpeed(t.options.slideSpeed))
603            } else if (e === "paginationSpeed") {
604                t.$owlWrapper.css(t.addCssSpeed(t.options.paginationSpeed))
605            } else if (typeof e !== "string") {
606                t.$owlWrapper.css(t.addCssSpeed(e))
607            }
608        },
609        addCssSpeed: function(e) {
610            var t = this;
611            return {
612                "-webkit-transition": "all " + e + "ms ease",
613                "-moz-transition": "all " + e + "ms ease",
614                "-o-transition": "all " + e + "ms ease",
615                transition: "all " + e + "ms ease"
616            }
617        },
618        removeTransition: function() {
619            return {
620                "-webkit-transition": "",
621                "-moz-transition": "",
622                "-o-transition": "",
623                transition: ""
624            }
625        },
626        doTranslate: function(e) {
627            return {
628                "-webkit-transform": "translate3d(" + e + "px, 0px, 0px)",
629                "-moz-transform": "translate3d(" + e + "px, 0px, 0px)",
630                "-o-transform": "translate3d(" + e + "px, 0px, 0px)",
631                "-ms-transform": "translate3d(" + e + "px, 0px, 0px)",
632                transform: "translate3d(" + e + "px, 0px,0px)"
633            }
634        },
635        transition3d: function(e) {
636            var t = this;
637            t.$owlWrapper.css(t.doTranslate(e))
638        },
639        css2move: function(e) {
640            var t = this;
641            t.$owlWrapper.css({
642                left: e
643            })
644        },
645        css2slide: function(e, t) {
646            var n = this;
647            n.isCssFinish = false;
648            n.$owlWrapper.stop(true, true).animate({
649                left: e
650            }, {
651                duration: t || n.options.slideSpeed,
652                complete: function() {
653                    n.isCssFinish = true
654                }
655            })
656        },
657        checkBrowser: function() {
658            var e = this;
659            var r = "translate3d(0px, 0px, 0px)",
660                i = n.createElement("div");
661            i.style.cssText = "  -moz-transform:" + r + "; -ms-transform:" + r + "; -o-transform:" + r + "; -webkit-transform:" + r + "; transform:" + r;
662            var s = /translate3d\(0px, 0px, 0px\)/g,
663                o = i.style.cssText.match(s),
664                u = o !== null && o.length === 1;
665            var a = "ontouchstart" in t || navigator.msMaxTouchPoints;
666            e.browser = {
667                support3d: u,
668                isTouch: a
669            }
670        },
671        moveEvents: function() {
672            var e = this;
673            if (e.options.mouseDrag !== false || e.options.touchDrag !== false) {
674                e.gestures();
675                e.disabledEvents()
676            }
677        },
678        eventTypes: function() {
679            var e = this;
680            var t = ["s", "e", "x"];
681            e.ev_types = {};
682            if (e.options.mouseDrag === true && e.options.touchDrag === true) {
683                t = ["touchstart.owl mousedown.owl", "touchmove.owl mousemove.owl", "touchend.owl touchcancel.owl mouseup.owl"]
684            } else if (e.options.mouseDrag === false && e.options.touchDrag === true) {
685                t = ["touchstart.owl", "touchmove.owl", "touchend.owl touchcancel.owl"]
686            } else if (e.options.mouseDrag === true && e.options.touchDrag === false) {
687                t = ["mousedown.owl", "mousemove.owl", "mouseup.owl"]
688            }
689            e.ev_types["start"] = t[0];
690            e.ev_types["move"] = t[1];
691            e.ev_types["end"] = t[2]
692        },
693        disabledEvents: function() {
694            var t = this;
695            t.$elem.on("dragstart.owl", function(e) {
696                e.preventDefault()
697            });
698            t.$elem.on("mousedown.disableTextSelect", function(t) {
699                return e(t.target).is("input, textarea, select, option")
700            })
701        },
702        gestures: function() {
703            function i(e) {
704                if (e.touches) {
705                    return {
706                        x: e.touches[0].pageX,
707                        y: e.touches[0].pageY
708                    }
709                } else {
710                    if (e.pageX !== r) {
711                        return {
712                            x: e.pageX,
713                            y: e.pageY
714                        }
715                    } else {
716                        return {
717                            x: e.clientX,
718                            y: e.clientY
719                        }
720                    }
721                }
722            }
723
724            function s(t) {
725                if (t === "on") {
726                    e(n).on(f.ev_types["move"], u);
727                    e(n).on(f.ev_types["end"], a)
728                } else if (t === "off") {
729                    e(n).off(f.ev_types["move"]);
730                    e(n).off(f.ev_types["end"])
731                }
732            }
733
734            function o(n) {
735                var n = n.originalEvent || n || t.event;
736                if (n.which === 3) {
737                    return false
738                }
739                if (f.isCssFinish === false && !f.options.dragBeforeAnimFinish) {
740                    return false
741                }
742                if (f.isCss3Finish === false && !f.options.dragBeforeAnimFinish) {
743                    return false
744                }
745                if (f.options.autoPlay !== false) {
746                    clearInterval(f.autoPlayInterval)
747                }
748                if (f.browser.isTouch !== true && !f.$owlWrapper.hasClass("grabbing")) {
749                    f.$owlWrapper.addClass("grabbing")
750                }
751                f.newPosX = 0;
752                f.newRelativeX = 0;
753                e(this).css(f.removeTransition());
754                var r = e(this).position();
755                l.relativePos = r.left;
756                l.offsetX = i(n).x - r.left;
757                l.offsetY = i(n).y - r.top;
758                s("on");
759                l.sliding = false;
760                l.targetElement = n.target || n.srcElement
761            }
762
763            function u(r) {
764                var r = r.originalEvent || r || t.event;
765                f.newPosX = i(r).x - l.offsetX;
766                f.newPosY = i(r).y - l.offsetY;
767                f.newRelativeX = f.newPosX - l.relativePos;
768                if (typeof f.options.startDragging === "function" && l.dragging !== true && f.newRelativeX !== 0) {
769                    l.dragging = true;
770                    f.options.startDragging.apply(this)
771                }
772                if (f.newRelativeX > 8 || f.newRelativeX < -8 && f.browser.isTouch === true) {
773                    r.preventDefault ? r.preventDefault() : r.returnValue = false;
774                    l.sliding = true
775                }
776                if ((f.newPosY > 10 || f.newPosY < -10) && l.sliding === false) {
777                    e(n).off("touchmove.owl")
778                }
779                var s = function() {
780                    return f.newRelativeX / 5
781                };
782                var o = function() {
783                    return f.maximumPixels + f.newRelativeX / 5
784                };
785                f.newPosX = Math.max(Math.min(f.newPosX, s()), o());
786                if (f.browser.support3d === true) {
787                    f.transition3d(f.newPosX)
788                } else {
789                    f.css2move(f.newPosX)
790                }
791            }
792
793            function a(n) {
794                var n = n.originalEvent || n || t.event;
795                n.target = n.target || n.srcElement;
796                l.dragging = false;
797                if (f.browser.isTouch !== true) {
798                    f.$owlWrapper.removeClass("grabbing")
799                }
800                if (f.newRelativeX !== 0) {
801                    var r = f.getNewPosition();
802                    f.goTo(r, false, "drag");
803                    if (l.targetElement === n.target && f.browser.isTouch !== true) {
804                        e(n.target).on("click.disable", function(t) {
805                            t.stopImmediatePropagation();
806                            t.stopPropagation();
807                            t.preventDefault();
808                            e(n.target).off("click.disable")
809                        });
810                        var i = e._data(n.target, "events")["click"];
811                        var o = i.pop();
812                        i.splice(0, 0, o)
813                    }
814                }
815                s("off")
816            }
817            var f = this;
818            var l = {
819                offsetX: 0,
820                offsetY: 0,
821                baseElWidth: 0,
822                relativePos: 0,
823                position: null,
824                minSwipe: null,
825                maxSwipe: null,
826                sliding: null,
827                dargging: null,
828                targetElement: null
829            };
830            f.isCssFinish = true;
831            f.$elem.on(f.ev_types["start"], ".owl-wrapper", o)
832        },
833        getNewPosition: function() {
834            var e = this,
835                t;
836            var t = e.improveClosest();
837            if (t > e.maximumItem) {
838                e.currentItem = e.maximumItem;
839                t = e.maximumItem
840            } else if (e.newPosX >= 0) {
841                t = 0;
842                e.currentItem = 0
843            }
844            return t
845        },
846        improveClosest: function() {
847            var t = this;
848            var n = t.positionsInArray;
849            var r = t.newPosX;
850            var i = null;
851            e.each(n, function(e, s) {
852                if (r - t.itemWidth / 20 > n[e + 1] && r - t.itemWidth / 20 < s && t.moveDirection() === "left") {
853                    i = s;
854                    t.currentItem = e
855                } else if (r + t.itemWidth / 20 < s && r + t.itemWidth / 20 > n[e + 1] && t.moveDirection() === "right") {
856                    i = n[e + 1];
857                    t.currentItem = e + 1
858                }
859            });
860            return t.currentItem
861        },
862        moveDirection: function() {
863            var e = this,
864                t;
865            if (e.newRelativeX < 0) {
866                t = "right";
867                e.playDirection = "next"
868            } else {
869                t = "left";
870                e.playDirection = "prev"
871            }
872            return t
873        },
874        customEvents: function() {
875            var e = this;
876            e.$elem.on("owl.next", function() {
877                e.next()
878            });
879            e.$elem.on("owl.prev", function() {
880                e.prev()
881            });
882            e.$elem.on("owl.play", function(t, n) {
883                e.options.autoPlay = n;
884                e.play();
885                e.hoverStatus = "play"
886            });
887            e.$elem.on("owl.stop", function() {
888                e.stop();
889                e.hoverStatus = "stop"
890            });
891            e.$elem.on("owl.goTo", function(t, n) {
892                e.goTo(n)
893            });
894            e.$elem.on("owl.jumpTo", function(t, n) {
895                e.jumpTo(n)
896            })
897        },
898        stopOnHover: function() {
899            var e = this;
900            if (e.options.stopOnHover === true && e.browser.isTouch !== true && e.options.autoPlay !== false) {
901                e.$elem.on("mouseover", function() {
902                    e.stop()
903                });
904                e.$elem.on("mouseout", function() {
905                    if (e.hoverStatus !== "stop") {
906                        e.play()
907                    }
908                })
909            }
910        },
911        lazyLoad: function() {
912            var t = this;
913            if (t.options.lazyLoad === false) {
914                return false
915            }
916            for (var n = 0; n < t.itemsAmount; n++) {
917                var i = e(t.$owlItems[n]);
918                if (i.data("owl-loaded") === "loaded") {
919                    continue
920                }
921                var s = i.data("owl-item"),
922                    o = i.find(".lazyOwl"),
923                    u;
924                if (typeof o.data("src") !== "string") {
925                    i.data("owl-loaded", "loaded");
926                    continue
927                }
928                if (i.data("owl-loaded") === r) {
929                    o.hide();
930                    i.addClass("loading").data("owl-loaded", "checked")
931                }
932                if (t.options.lazyFollow === true) {
933                    u = s >= t.currentItem
934                } else {
935                    u = true
936                }
937                if (u && s < t.currentItem + t.options.items && o.length) {
938                    t.lazyPreload(i, o)
939                }
940            }
941        },
942        lazyPreload: function(e, t) {
943            function n() {
944                s += 1;
945                if (i.completeImg(t.get(0))) {
946                    r()
947                } else if (s <= 100) {
948                    setTimeout(n, 100)
949                } else {
950                    r()
951                }
952            }
953
954            function r() {
955                e.data("owl-loaded", "loaded").removeClass("loading");
956                t.removeAttr("data-src");
957                i.options.lazyEffect === "fade" ? t.fadeIn(400) : t.show()
958            }
959            var i = this,
960                s = 0;
961            t[0].src = t.data("src");
962            n()
963        },
964        autoHeight: function() {
965            function t() {
966                o += 1;
967                if (i.completeImg(s.get(0))) {
968                    n()
969                } else if (o <= 100) {
970                    setTimeout(t, 100)
971                } else {
972                    i.wrapperOuter.css("height", "")
973                }
974            }
975
976            function n() {
977                var t = e(i.$owlItems[i.currentItem]).height();
978                i.wrapperOuter.css("height", t + "px");
979                if (!i.wrapperOuter.hasClass("autoHeight")) {
980                    setTimeout(function() {
981                        i.wrapperOuter.addClass("autoHeight")
982                    }, 0)
983                }
984            }
985            var i = this;
986            var s = e(i.$owlItems[i.currentItem]).find("img");
987            if (s.get(0) !== r) {
988                var o = 0;
989                t()
990            } else {
991                n()
992            }
993        },
994        completeImg: function(e) {
995            if (!e.complete) {
996                return false
997            }
998            if (typeof e.naturalWidth !== "undefined" && e.naturalWidth == 0) {
999                return false
1000            }
1001            return true
1002        },
1003        onVisibleItems: function() {
1004            var t = this;
1005            if (t.options.addClassActive === true) {
1006                t.$owlItems.removeClass("active")
1007            }
1008            t.visibleItems = [];
1009            for (var n = t.currentItem; n < t.currentItem + t.options.items; n++) {
1010                t.visibleItems.push(n);
1011                if (t.options.addClassActive === true) {
1012                    e(t.$owlItems[n]).addClass("active")
1013                }
1014            }
1015            t.owl.visibleItems = t.visibleItems
1016        },
1017        transitionTypes: function(e) {
1018            var t = this;
1019            t.outClass = "owl-" + e + "-out";
1020            t.inClass = "owl-" + e + "-in"
1021        },
1022        singleItemTransition: function() {
1023            function e(e, t) {
1024                return {
1025                    position: "relative",
1026                    left: e + "px"
1027                }
1028            }
1029            var t = this;
1030            t.isTransition = true;
1031            var n = t.outClass,
1032                r = t.inClass,
1033                i = t.$owlItems.eq(t.currentItem),
1034                s = t.$owlItems.eq(t.prevItem),
1035                o = Math.abs(t.positionsInArray[t.currentItem]) + t.positionsInArray[t.prevItem],
1036                u = Math.abs(t.positionsInArray[t.currentItem]) + t.itemWidth / 2;
1037            t.$owlWrapper.addClass("owl-origin").css({
1038                "-webkit-transform-origin": u + "px",
1039                "-moz-perspective-origin": u + "px",
1040                "perspective-origin": u + "px"
1041            });
1042            var a = "webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend";
1043            s.css(e(o, 10)).addClass(n).on(a, function() {
1044                t.endPrev = true;
1045                s.off(a);
1046                t.clearTransStyle(s, n)
1047            });
1048            i.addClass(r).on(a, function() {
1049                t.endCurrent = true;
1050                i.off(a);
1051                t.clearTransStyle(i, r)
1052            })
1053        },
1054        clearTransStyle: function(e, t) {
1055            var n = this;
1056            e.css({
1057                position: "",
1058                left: ""
1059            }).removeClass(t);
1060            if (n.endPrev && n.endCurrent) {
1061                n.$owlWrapper.removeClass("owl-origin");
1062                n.endPrev = false;
1063                n.endCurrent = false;
1064                n.isTransition = false
1065            }
1066        },
1067        owlStatus: function() {
1068            var e = this;
1069            e.owl = {
1070                userOptions: e.userOptions,
1071                baseElement: e.$elem,
1072                userItems: e.$userItems,
1073                owlItems: e.$owlItems,
1074                currentItem: e.currentItem,
1075                prevItem: e.prevItem,
1076                visibleItems: e.visibleItems,
1077                isTouch: e.browser.isTouch,
1078                browser: e.browser
1079            }
1080        },
1081        clearEvents: function() {
1082            var r = this;
1083            r.$elem.off(".owl owl mousedown.disableTextSelect");
1084            e(n).off(".owl owl");
1085            e(t).off("resize", r.resizer)
1086        },
1087        unWrap: function() {
1088            var e = this;
1089            if (e.$elem.children().length !== 0) {
1090                e.$owlWrapper.unwrap();
1091                e.$userItems.unwrap().unwrap();
1092                if (e.owlControls) {
1093                    e.owlControls.remove()
1094                }
1095            }
1096            e.clearEvents();
1097            e.$elem.attr("style", e.$elem.data("owl-originalStyles") || "").attr("class", e.$elem.data("owl-originalClasses"))
1098        },
1099        destroy: function() {
1100            var e = this;
1101            e.stop();
1102            clearInterval(e.checkVisible);
1103            e.unWrap();
1104            e.$elem.removeData()
1105        },
1106        reinit: function(t) {
1107            var n = this;
1108            var r = e.extend({}, n.userOptions, t);
1109            n.unWrap();
1110            n.init(r, n.$elem)
1111        },
1112        addItem: function(e, t) {
1113            var n = this,
1114                i;
1115            if (!e) {
1116                return false
1117            }
1118            if (n.$elem.children().length === 0) {
1119                n.$elem.append(e);
1120                n.setVars();
1121                return false
1122            }
1123            n.unWrap();
1124            if (t === r || t === -1) {
1125                i = -1
1126            } else {
1127                i = t
1128            }
1129            if (i >= n.$userItems.length || i === -1) {
1130                n.$userItems.eq(-1).after(e)
1131            } else {
1132                n.$userItems.eq(i).before(e)
1133            }
1134            n.setVars()
1135        },
1136        removeItem: function(e) {
1137            var t = this,
1138                n;
1139            if (t.$elem.children().length === 0) {
1140                return false
1141            }
1142            if (e === r || e === -1) {
1143                n = -1
1144            } else {
1145                n = e
1146            }
1147            t.unWrap();
1148            t.$userItems.eq(n).remove();
1149            t.setVars()
1150        }
1151    };
1152    e.fn.owlCarousel = function(t) {
1153        return this.each(function() {
1154            if (e(this).data("owl-init") === true) {
1155                return false
1156            }
1157            e(this).data("owl-init", true);
1158            var n = Object.create(i);
1159            n.init(t, this);
1160            e.data(this, "owlCarousel", n)
1161        })
1162    };
1163    e.fn.owlCarousel.options = {
1164        items: 7,
1165        itemsDesktop: false,
1166        itemsDesktopSmall: false,
1167        itemsTablet: false,
1168        itemsTabletSmall: false,
1169        itemsMobile: false,
1170        singleItem: false,
1171        itemsScaleUp: false,
1172        slideSpeed: 200,
1173        paginationSpeed: 800,
1174        rewindSpeed: 1e3,
1175        autoPlay: false,
1176        stopOnHover: false,
1177        navigation: false,
1178        navigationText: ["", ""],
1179        rewindNav: false,
1180        scrollPerPage: false,
1181        pagination: false,
1182        paginationNumbers: false,
1183        responsive: true,
1184        responsiveRefreshRate: 200,
1185        responsiveBaseWidth: t,
1186        baseClass: "owl-carousel",
1187        theme: "owl-theme",
1188        lazyLoad: false,
1189        lazyFollow: true,
1190        lazyEffect: "fade",
1191        autoHeight: false,
1192        jsonPath: false,
1193        jsonSuccess: false,
1194        dragBeforeAnimFinish: true,
1195        mouseDrag: true,
1196        touchDrag: true,
1197        addClassActive: false,
1198        transitionStyle: false,
1199        beforeUpdate: false,
1200        afterUpdate: false,
1201        beforeInit: false,
1202        afterInit: false,
1203        beforeMove: false,
1204        afterMove: false,
1205        afterAction: false,
1206        startDragging: false
1207    }
1208})(jQuery, window, document)

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.