/*!
* breakpoints-js v1.0.6
* https://github.com/amazingSurge/breakpoints-js
*
* Copyright (c) amazingSurge
* Released under the LGPL-3.0 license
*/
!function(e, t) {
"function" == typeof define && define.amd ? define(["exports"], t) : "undefined" != typeof exports ? t(exports) : (t(t = {}), e.breakpointsEs = t)
}(this, function(e) {
"use strict";
function a(e, t) {
if (e)
return !t || "object" != typeof t && "function" != typeof t ? e : t;
throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
}
function t(e, t) {
if ("function" != typeof t && null !== t)
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
enumerable: !1,
writable: !0,
configurable: !0
}
}),
t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
}
function r(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}
Object.defineProperty(e, "__esModule", {
value: !0
});
var i = function(e, t, i) {
return t && n(e.prototype, t), i && n(e, i), e
};
function n(e, t) {
for (var i = 0; i < t.length; i++) {
var n = t[i];
n.enumerable = n.enumerable || !1,
n.configurable = !0,
"value" in n && (n.writable = !0),
Object.defineProperty(e, n.key, n)
}
}
var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
} : function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
},
s = {
xs: {
min: 0,
max: 480
},
sm: {
min: 481,
max: 767
},
md: {
min: 768,
max: 959
},
lg: {
min: 960,
max: 1 / 0
}
},
l = function(e, t) {
for (var i in e)
if (("object" !== (void 0 === e ? "undefined" : o(e)) || e.hasOwnProperty(i)) && !1 === t(i, e[i]))
break
},
c = function(e) {
return "function" == typeof e || !1
},
d = function(e, t) {
for (var i in t)
e[i] = t[i];
return e
},
f = (i(h, [{
key: "add",
value: function(e, t) {
this.list.push({
fn: e,
data: t,
one: 2 < arguments.length && void 0 !== arguments[2] && arguments[2]
}),
this.length++
}
}, {
key: "remove",
value: function(e) {
for (var t = 0; t < this.list.length; t++)
this.list[t].fn === e && (this.list.splice(t, 1), this.length--, t--)
}
}, {
key: "empty",
value: function() {
this.list = [],
this.length = 0
}
}, {
key: "call",
value: function(e, t) {
var i = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null,
n = (t = t || this.length - 1, this.list[t]);
c(i) ? i.call(this, e, n, t) : c(n.fn) && n.fn.call(e || window, n.data),
n.one && (delete this.list[t], this.length--)
}
}, {
key: "fire",
value: function(e) {
var t,
i = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : null;
for (t in this.list)
this.list.hasOwnProperty(t) && this.call(e, t, i)
}
}]), h);
function h() {
r(this, h),
this.length = 0,
this.list = []
}
var u = {
current: null,
callbacks: new f,
trigger: function(i) {
var n = this.current;
this.current = i,
this.callbacks.fire(i, function(e, t) {
c(t.fn) && t.fn.call({
current: i,
previous: n
}, t.data)
})
},
one: function(e, t) {
return this.on(e, t, !0)
},
on: function(e, t) {
var i = 2 < arguments.length && void 0 !== arguments[2] && arguments[2];
void 0 === t && c(e) && (t = e, e = void 0),
c(t) && this.callbacks.add(t, e, i)
},
off: function(e) {
void 0 === e && this.callbacks.empty()
}
},
v = (i(p, [{
key: "initialize",
value: function() {
this.callbacks = {
enter: new f,
leave: new f
},
this.mql = window.matchMedia && window.matchMedia(this.media) || {
matches: !1,
media: this.media,
addListener: function() {},
removeListener: function() {}
};
var t = this;
this.mqlListener = function(e) {
e = e.matches ? "enter" : "leave";
t.callbacks[e].fire(t)
},
this.mql.addListener(this.mqlListener)
}
}, {
key: "on",
value: function(e, t, i) {
var n = 3 < arguments.length && void 0 !== arguments[3] && arguments[3];
if ("object" === (void 0 === e ? "undefined" : o(e)))
for (var s in e)
e.hasOwnProperty(s) && this.on(s, t, e[s], n);
else
void 0 === i && c(t) && (i = t, t = void 0),
c(i) && void 0 !== this.callbacks[e] && (this.callbacks[e].add(i, t, n), "enter" === e) && this.isMatched() && this.callbacks[e].call(this);
return this
}
}, {
key: "one",
value: function(e, t, i) {
return this.on(e, t, i, !0)
}
}, {
key: "off",
value: function(e, t) {
var i = void 0;
if ("object" === (void 0 === e ? "undefined" : o(e)))
for (i in e)
e.hasOwnProperty(i) && this.off(i, e[i]);
else
void 0 === e ? (this.callbacks.enter.empty(), this.callbacks.leave.empty()) : e in this.callbacks && (t ? this.callbacks[e].remove(t) : this.callbacks[e].empty());
return this
}
}, {
key: "isMatched",
value: function() {
return this.mql.matches
}
}, {
key: "destroy",
value: function() {
this.off()
}
}]), p);
function p(e, t) {
r(this, p),
this.name = e,
this.media = t,
this.initialize()
}
var m = {
min: function(e) {
return "(min-width: " + e + (1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : "px") + ")"
},
max: function(e) {
return "(max-width: " + e + (1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : "px") + ")"
},
between: function(e, t) {
var i = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : "px";
return "(min-width: " + e + i + ") and (max-width: " + t + i + ")"
},
get: function(e, t) {
var i = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : "px";
return 0 === e ? this.max(t, i) : t === 1 / 0 ? this.min(e, i) : this.between(e, t, i)
}
},
g = (t(w, v), i(w, [{
key: "destroy",
value: function() {
this.off(),
this.mql.removeListener(this.changeListener)
}
}]), w);
function w(e) {
var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 0,
i = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : 1 / 0,
n = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : "px",
s = (r(this, w), m.get(t, i, n)),
e = a(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this, e, s)),
o = (e.min = t, e.max = i, e.unit = n, e);
return e.changeListener = function() {
o.isMatched() && u.trigger(o)
}, e.isMatched() && (u.current = e), e.mql.addListener(e.changeListener), e
}
t($, v);
var y = $;
function $(e) {
r(this, $);
var i = [],
n = [];
return l(e.split(" "), function(e, t) {
t = C.get(t);
t && (i.push(t), n.push(t.media))
}), a(this, ($.__proto__ || Object.getPrototypeOf($)).call(this, e, n.join(",")))
}
var j = {},
x = {},
b = window.Breakpoints = function() {
for (var e = arguments.length, t = Array(e), i = 0; i < e; i++)
t[i] = arguments[i];
b.define.apply(b, t)
},
C = (b.defaults = s, b = d(b, {
version: "1.0.6",
defined: !1,
define: function(e) {
var t,
i = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {};
for (t in this.defined && this.destroy(), e = e || b.defaults, this.options = d(i, {
unit: "px"
}), e)
e.hasOwnProperty(t) && this.set(t, e[t].min, e[t].max, this.options.unit);
this.defined = !0
},
destroy: function() {
l(j, function(e, t) {
t.destroy()
}),
j = {},
u.current = null
},
is: function(e) {
e = this.get(e);
return e ? e.isMatched() : null
},
all: function() {
var t = [];
return l(j, function(e) {
t.push(e)
}), t
},
set: function(e) {
var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 0,
i = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : 1 / 0,
n = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : "px",
s = this.get(e);
return s && s.destroy(), j[e] = new g(e, t, i, n), j[e]
},
get: function(e) {
return j.hasOwnProperty(e) ? j[e] : null
},
getUnion: function(e) {
return x.hasOwnProperty(e) || (x[e] = new y(e)), x[e]
},
getMin: function(e) {
e = this.get(e);
return e ? e.min : null
},
getMax: function(e) {
e = this.get(e);
return e ? e.max : null
},
current: function() {
return u.current
},
getMedia: function(e) {
e = this.get(e);
return e ? e.media : null
},
on: function(e, t, i, n) {
var s,
o = 4 < arguments.length && void 0 !== arguments[4] && arguments[4];
return "change" === (e = e.trim()) ? (n = i, u.on(i = t, n, o)) : (0 <= e.indexOf(" ") ? (s = this.getUnion(e)) && s.on(t, i, n, o) : (s = this.get(e)) && s.on(t, i, n, o), this)
},
one: function(e, t, i, n) {
return this.on(e, t, i, n, !0)
},
off: function(e, t, i) {
var n;
return "change" === (e = e.trim()) ? u.off(t) : (0 <= e.indexOf(" ") ? (n = this.getUnion(e)) && n.off(t, i) : (n = this.get(e)) && n.off(t, i), this)
}
}));
e.default = C
}),
function(e) {
"function" == typeof define && define.amd ? define(["jquery"], e) : "object" == typeof exports ? module.exports = e(require("jquery")) : e(jQuery)
}(function(c) {
function t() {
if (h.length) {
var e = 0,
t = c.map(h, function(e) {
var t = e.data.selector,
e = e.$element;
return t ? e.find(t) : e
});
for (d = d || (l = (l = {
height: v.innerHeight,
width: v.innerWidth
}).height || !(r = u.compatMode) && c.support.boxModel ? l : {
height: (r = "CSS1Compat" === r ? p : u.body).clientHeight,
width: r.clientWidth
}), f = f || {
top: v.pageYOffset || p.scrollTop || u.body.scrollTop,
left: v.pageXOffset || p.scrollLeft || u.body.scrollLeft
}; e < h.length; e++)
if (c.contains(p, t[e][0])) {
var i = c(t[e]),
n = i[0].offsetHeight,
s = i[0].offsetWidth,
o = i.offset(),
a = i.data("inview");
if (!f || !d)
return;
o.top + n > f.top && o.top < f.top + d.height && o.left + s > f.left && o.left < f.left + d.width ? a || i.data("inview", !0).trigger("inview", [!0]) : a && i.data("inview", !1).trigger("inview", [!1])
}
}
var r,
l
}
var d,
f,
n,
h = [],
u = document,
v = window,
p = u.documentElement;
c.event.special.inview = {
add: function(e) {
h.push({
data: e,
$element: c(this),
element: this
}),
!n && h.length && (n = setInterval(t, 250))
},
remove: function(e) {
for (var t = 0; t < h.length; t++) {
var i = h[t];
if (i.element === this && i.data.guid === e.guid) {
h.splice(t, 1);
break
}
}
h.length || (clearInterval(n), n = null)
}
},
c(v).on("scroll resize scrollstop", function() {
d = f = null
}),
!p.addEventListener && p.attachEvent && p.attachEvent("onfocusin", function() {
f = null
})
}),
Breakpoints({
xs: {
min: 0,
max: 479
},
sm: {
min: 480,
max: 767
},
md: {
min: 768,
max: 959
},
lg: {
min: 960,
max: 1229
},
xl: {
min: 1230,
max: 1 / 0
}
}),
jQuery(function(e) {
e(".js-acc").on("click", function() {
e(this).toggleClass("is-active").next().slideToggle()
})
});
const initSwiperL = () => {
var e = $(".js-logos-l").data("slide-pc"),
t = $(".js-logos-l").data("slide-sp");
new Swiper(".js-logos-l", {
loop: !0,
slidesPerView: t,
spaceBetween: 20,
speed: 5e3,
allowTouchMove: !1,
autoplay: {
delay: 0
},
breakpoints: {
769: {
slidesPerView: e,
spaceBetween: 45
}
}
})
},
initSwiperR = () => {
var e = $(".js-logos-r").data("slide-pc"),
t = $(".js-logos-r").data("slide-sp");
new Swiper(".js-logos-r", {
loop: !0,
slidesPerView: t,
spaceBetween: 20,
speed: 5e3,
allowTouchMove: !1,
autoplay: {
delay: 0,
reverseDirection: !0
},
breakpoints: {
769: {
slidesPerView: e,
spaceBetween: 45
}
}
})
};
function TextTypingAnime() {
$(".js-texttyping").each(function() {
var e = $(this).offset().top - 50,
t = $(window).scrollTop();
let i = "";
e - $(window).height() <= t ? (i = $(this).children()).each(function(e) {
$(this).delay(100 * e).fadeIn(100)
}).promise().done(function() {
$(".js-texttyping").addClass("is-displayed")
}) : (i = $(this).children()).each(function() {
$(this).stop(),
$(this).css("display", "none")
})
})
}
window.addEventListener("load", function() {
initSwiperL(),
initSwiperR()
}),
$(function() {
$(".js-drawer-open").on("click", function() {
$(this).hasClass("is-active") ? ($(this).removeClass("is-active"), $("html").removeClass("is-drawer-active"), $("#draweropen").removeClass("is-hidden"), $("#drawerclose").addClass("is-hidden"), $("#drawershade").addClass("is-hidden"), $("#drawer").attr("aria-hidden", !0)) : ($(this).addClass("is-active"), $("html").addClass("is-drawer-active"), $("#draweropen").addClass("is-hidden"), $("#drawerclose").removeClass("is-hidden"), $("#drawershade").removeClass("is-hidden"), $("#drawer").attr("aria-hidden", !1))
}),
$(".js-drawer-menu").click(function() {
$(this).toggleClass("is-active")
})
}),
$(function() {
$(window).scroll(function() {
const t = $(window).height(),
i = $(window).scrollTop();
$(".js-fadein").each(function() {
var e = $(this).offset().top;
i > e - t + 100 && $(this).addClass("is-fadein")
})
})
}),
jQuery(function(t) {
t(".js-inview").on("inview", function() {
t(this).addClass("is-inview")
}),
t(".js-inview-delay").on("inview", function() {
var e;
window.matchMedia("(min-width:768px)").matches ? (e = t(this), setTimeout(function() {
e.addClass("is-inview")
}, 1e3)) : t(this).addClass("is-inview")
})
}),
jQuery(function(e) {
e(function() {
e(".js-more").on("click", function() {
e(this).parents(".js-more-unit").find(".js-more-unit-item").toggleClass("is-active").slideToggle(500)
})
})
}),
$(function() {
var t,
i,
n = $(".js-fixed-header").height(),
s = 0,
o = $(document).height() - $(window).height();
$(".js-scroll-fixed").length && (t = $(".js-scroll-fixed").offset().top, i = $(".js-scroll-fixed-area").offset().top + $(".js-scroll-fixed-area").height()),
$(".js-plans__btn,.js-plans__overlay-btn").on("click", function() {
$(".js-scroll-fixed").length && (i = $(".js-scroll-fixed-area").offset().top + $(".js-scroll-fixed-area").height())
}),
$(window).on("scroll", function() {
var e = $(this).scrollTop();
t < e && e < s ? $(".js-scroll-fixed").addClass("is-header-fixed") : $(".js-scroll-fixed").removeClass("is-header-fixed"),
i < e ? $(".js-scroll-fixed").addClass("is-bottom") : (t < e ? $(".js-scroll-fixed").addClass("is-scroll") : $(".js-scroll-fixed").removeClass("is-scroll"), $(".js-scroll-fixed").removeClass("is-bottom")),
0 <= e && n < e && e < s ? $(".js-fixed-header").addClass("is-closed") : $(".js-fixed-header").removeClass("is-closed"),
0 <= e && n < e && s < e ? $(".js-fixed-header").addClass("is-closed") : $(".js-fixed-header").removeClass("is-closed"),
e == o && $(".js-fixed-header").removeClass("is-closed"),
0 == e ? $(".js-fixed-header").addClass("is-top") : $(".js-fixed-header").removeClass("is-top"),
s = e,
$(".js-fixed-cv").length && (5 < e ? $(".js-fixed-cv").addClass("is-visible") : $(".js-fixed-cv").removeClass("is-visible"))
})
}),
jQuery(function(e) {
e(".js-select").on("change", function() {
e(this).addClass("is-selected")
})
}),
$(function() {
$(".js-slide-link").on("mouseover", function() {
$(this).parents(".js-slide-link-unit").addClass("is-active")
}),
$(".js-slide-link").on("mouseout", function() {
$(this).parents(".js-slide-link-unit").removeClass("is-active")
})
}),
jQuery(function(n) {
n(function() {
n(".js-tab").each(function() {
var e = n(this),
t = e.find(".js-tab__item"),
i = e.find(".js-tab__panel");
e.on("click", ".js-tab__item", function() {
var e = n(this);
return e.not(".is-active") ? (t.filter(".is-active").removeClass("is-active").attr("aria-selected", !1), e.addClass("is-active").attr("aria-selected", !0), i.filter(".is-active").removeClass("is-active").attr("aria-hidden", !0), n(e.attr("href")).addClass("is-active").attr("aria-hidden", !1), history.pushState(null, null, e.attr("href"))) : (e.removeClass("is-active").attr("aria-selected", !1), n(e.attr("href")).removeClass("is-active").attr("aria-hidden", !0), history.pushState(null, null, "")), !1
}),
t.each(function(e) {
n(this).attr("aria-selected", !e).attr("aria-controls", n(this).attr("href").slice(1))
}),
i.each(function(e) {
n(this).attr("aria-hidden", !!e)
})
})
})
}),
$(window).scroll(function() {
TextTypingAnime()
}),
$(window).on("load", function() {
$(".js-texttyping").each(function() {
var e = $(this).html();
let t = "";
e.split("").forEach(function(e) {
t += " " !== e ? "" + e + "" : e
}),
$(this).html(t)
}),
TextTypingAnime()
});