Professional Documents
Culture Documents
l.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left")
;
a && (this.settings.$next_tip.css("visibility", "hidden"),
this.settings.$next_tip.show());
/body/i.test(this.settings.$target.selector) ? this.settings.$li.length
&& this.pos_modal(l) : this.top() ? (this.settings.$next_tip.offset({
top: this.settings.$target.offset().top - b - j
}),
l.addClass("bottom")) : (this.settings.$next_tip.offset({
top: this.settings.$target.offset().top + d + j
}),
l.addClass("top"));
a && (this.settings.$next_tip.hide(),
this.settings.$next_tip.css("visibility", "visible"))
},
pos_modal: function(a) {
this.center();
a.hide();
this.show_modal()
},
show_modal: function() {
if (!this.settings.$next_tip.data("closed")) {
var a = e(".joyride-modal-bg");
1 > a.length &&
e("body").append(this.settings.template.modal).show();
/pop/i.test(this.settings.tipAnimation) ? a.show() :
a.fadeIn(this.settings.tipAnimationFadeSpeed)
}
},
expose: function() {
var a, b, d, l, j, m = "expose-" + Math.floor(1E4 * Math.random());
if (0 < arguments.length && arguments[0]instanceof e)
d = arguments[0];
else if (this.settings.$target && !/body/i.test(this.settings.
$target.selector))
d = this.settings.$target;
else
return false;
if (1 > d.length)
return p.console && console.error("element not valid", d),
false;
a = e(this.settings.template.expose);
this.settings.$body.append(a);
a.css({
top: d.offset().top,
left: d.offset().left,
width: this.outerWidth(d, true),
height: this.outerHeight(d, true)
});
b = e(this.settings.template.exposeCover);
l = {
zIndex: d.css("z-index"),
position: d.css("position")
};
j = null == d.attr("class") ? "" : d.attr("class");
d.css("z-index", parseInt(a.css("z-index")) + 1);
"static" == l.position && d.css("position", "relative");
d.data("expose-css", l);
d.data("orig-class", j);
d.attr("class", j + " " + this.settings.exposeAddClass);
b.css({
top: d.offset().top,
left: d.offset().left,
width: this.outerWidth(d, true),
height: this.outerHeight(d, true)
});
this.settings.$body.append(b);
a.addClass(m);
b.addClass(m);
d.data("expose", m);
this.settings.postExposeCallback(this.settings.$li.index(),
this.settings.$next_tip, d);
this.add_exposed(d)
},
un_expose: function() {
var a, b, d;
d = false;
if (0 < arguments.length && arguments[0]instanceof e)
b = arguments[0];
else if (this.settings.$target && !/body/i.test(this.settings.
$target.selector))
b = this.settings.$target;
else
return false;
if (1 > b.length)
return p.console && console.error("element not valid", b),
false;
a = b.data("expose");
a = e("." + a);
1 < arguments.length && (d = arguments[1]);
true === d ? e(".joyride-expose-wrapper,.joyride-expose-
cover").remove() : a.remove();
d = b.data("expose-css");
"auto" == d.zIndex ? b.css("z-index", "") : b.css("z-index", d.zIndex);
d.position != b.css("position") && ("static" == d.position ?
b.css("position", "") : b.css("position", d.position));
d = b.data("orig-class");
b.attr("class", d);
b.removeData("orig-classes");
b.removeData("expose");
b.removeData("expose-z-index");
this.remove_exposed(b)
},
add_exposed: function(a) {
this.settings.exposed = this.settings.exposed || [];
a instanceof e || "object" === typeof a ?
this.settings.exposed.push(a[0]) : "string" == typeof a &&
this.settings.exposed.push(a)
},
remove_exposed: function(a) {
var b;
a instanceof e ? b = a[0] : "string" == typeof a && (b = a);
this.settings.exposed = this.settings.exposed || [];
a = this.settings.exposed.length;
for (var d = 0; d < a; d++)
if (this.settings.exposed[d] == b) {
this.settings.exposed.splice(d, 1);
break
}
},
center: function() {
var a = e(p);
this.settings.$next_tip.css({
top: (a.height() - this.outerHeight(this.settings.$next_tip)) / 2 +
a.scrollTop(),
left: (a.width() - this.outerWidth(this.settings.$next_tip)) / 2 +
this.scrollLeft(a)
});
return true
},
bottom: function() {
return /bottom/i.test(this.settings.tipSettings.tipLocation)
},
top: function() {
return /top/i.test(this.settings.tipSettings.tipLocation)
},
right: function() {
return /right/i.test(this.settings.tipSettings.tipLocation)
},
left: function() {
return /left/i.test(this.settings.tipSettings.tipLocation)
},
corners: function(a) {
var b = e(p)
, d = b.height() / 2;
d = Math.ceil(this.settings.$target.offset().top - d + this.settings.
$next_tip.outerHeight());
var l = b.width() + this.scrollLeft(b)
, j = b.height() + d
, m = b.height() + b.scrollTop()
, h = b.scrollTop();
d < h && (h = 0 > d ? 0 : d);
j > m && (m = j);
return [a.offset().top < h, l < a.offset().left + a.outerWidth(), m <
a.offset().top + a.outerHeight(), this.scrollLeft(b) > a.offset().left]
},
visible: function(a) {
for (var b = a.length; b--; )
if (a[b])
return false;
return true
},
nub_position: function(a, b, d) {
"auto" === b ? a.addClass(d) : a.addClass(b)
},
startTimer: function() {
this.settings.$li.length ? this.settings.automate =
setTimeout(function() {
this.hide();
this.show();
this.startTimer()
}
.bind(this), this.settings.timer) :
clearTimeout(this.settings.automate)
},
end: function() {
this.settings.cookieMonster && e.cookie(this.settings.cookieName,
"ridden", {
expires: this.settings.cookieExpires,
domain: this.settings.cookieDomain
});
0 < this.settings.timer && clearTimeout(this.settings.automate);
this.settings.modal && this.settings.expose && this.un_expose();
this.settings.$next_tip.data("closed", true);
e(".joyride-modal-bg").hide();
this.settings.$current_tip.hide();
this.settings.postStepCallback(this.settings.$li.index(),
this.settings.$current_tip);
this.settings.postRideCallback(this.settings.$li.index(),
this.settings.$current_tip);
e(".joyride-tip-guide").remove()
},
outerHTML: function(a) {
return a.outerHTML || (new XMLSerializer).serializeToString(a)
},
off: function() {
e(this.scope).off(".joyride");
e(p).off(".joyride");
e(".joyride-close-tip, .joyride-next-tip, .joyride-modal-
bg").off(".joyride");
e(".joyride-tip-guide, .joyride-modal-bg").remove();
clearTimeout(this.settings.automate);
this.settings = {}
},
reflow: function() {}
}
}
)(Foundation.zj, this, this.document);
(function(e, p) {
Foundation.libs.magellan = {
name: "magellan",
version: "4.3.2",
settings: {
activeClass: "active",
threshold: 0
},
init: function(q, g, c) {
this.scope = q || this.scope;
Foundation.inherit(this, "data_options");
"object" === typeof g && e.extend(true, this.settings, g);
return "string" !== typeof g ? (this.settings.init ||
(this.fixed_magellan = e("[data-magellan-expedition]"),
this.set_threshold(),
this.last_destination = e("[data-magellan-destination]").last(),
this.events()),
this.settings.init) : this[g].call(this, c)
},
events: function() {
var q = this;
e(this.scope).on("arrival.fndtn.magellan", "[data-magellan-arrival]",
function(g) {
g = e(this);
var c = g.closest("[data-magellan-expedition]").attr("data-
magellan-active-class") || q.settings.activeClass;
g.closest("[data-magellan-expedition]").find("[data-magellan-
arrival]").not(g).removeClass(c);
g.addClass(c)
});
this.fixed_magellan.on("update-position.fndtn.magellan", function() {
e(this)
}).trigger("update-position");
e(p).on("resize.fndtn.magellan", function() {
this.fixed_magellan.trigger("update-position")
}
.bind(this)).on("scroll.fndtn.magellan", function() {
var g = e(p).scrollTop();
q.fixed_magellan.each(function() {
var c = e(this);
"undefined" === typeof c.data("magellan-top-offset") &&
c.data("magellan-top-offset", c.offset().top);
"undefined" === typeof c.data("magellan-fixed-position") &&
c.data("magellan-fixed-position", false);
var a = g + q.settings.threshold > c.data("magellan-top-
offset")
, b = c.attr("data-magellan-top-offset");
c.data("magellan-fixed-position") != a && (c.data("magellan-
fixed-position", a),
a ? (c.addClass("fixed"),
c.css({
position: "fixed",
top: 0
})) : (c.removeClass("fixed"),
c.css({
position: "",
top: ""
})),
a && "undefined" != typeof b && false != b && c.css({
position: "fixed",
top: b + "px"
}))
})
});
if (0 < this.last_destination.length)
e(p).on("scroll.fndtn.magellan", function() {
var g = e(p).scrollTop()
, c = g + e(p).height()
, a = Math.ceil(q.last_destination.offset().top);
e("[data-magellan-destination]").each(function() {
var b = e(this)
, d = b.attr("data-magellan-destination");
b.offset().top - g <= q.settings.threshold && e("[data-
magellan-arrival='" + d + "']").trigger("arrival");
c >= e(q.scope).height() && a > g && a < c && e("[data-
magellan-arrival]").last().trigger("arrival")
})
});
this.settings.init = true
},
set_threshold: function() {
"number" !== typeof this.settings.threshold && (this.settings.threshold
= 0 < this.fixed_magellan.length ? this.outerHeight(this.fixed_magellan, true) : 0)
},
off: function() {
e(this.scope).off(".fndtn.magellan");
e(p).off(".fndtn.magellan")
},
reflow: function() {}
}
}
)(Foundation.zj, this, this.document);
(function(e, p, q, g) {
var c = function() {}
, a = function(j, m) {
if (j.hasClass(m.slides_container_class))
return this;
var h = this, k, f, i, n, o = 0, r, t;
j.children().first().addClass(m.active_slide_class);
h.update_slide_number = function(s) {
m.slide_number && (f.find("span:first").text(parseInt(s) + 1),
f.find("span:last").text(j.children().length));
m.bullets && (i.children().removeClass(m.bullets_active_class),
e(i.children().get(s)).addClass(m.bullets_active_class))
}
;
h.update_active_link = function(s) {
s = e('a[data-orbit-link="' + j.children().eq(s).attr("data-orbit-
slide") + '"]');
s.parents("ul").find("[data-orbit-
link]").removeClass(m.bullets_active_class);
s.addClass(m.bullets_active_class)
}
;
h.build_markup = function() {
j.wrap('<div class="' + m.container_class + '"></div>');
k = j.parent();
j.addClass(m.slides_container_class);
m.navigation_arrows && (k.append(e('<a
href="https://static1.freebitco.in/min/combined_bottom1383555676.js#"><span></span>
</a>').addClass(m.prev_class)),
k.append(e('<a
href="https://static1.freebitco.in/min/combined_bottom1383555676.js#"><span></span>
</a>').addClass(m.next_class)));
m.timer && (n = e("<div>").addClass(m.timer_container_class),
n.append("<span>"),
n.append(e("<div>").addClass(m.timer_progress_class)),
n.addClass(m.timer_paused_class),
k.append(n));
m.slide_number && (f = e("<div>").addClass(m.slide_number_class),
f.append("<span></span> " + m.slide_number_text + " <span></span>"),
k.append(f));
m.bullets && (i = e("<ol>").addClass(m.bullets_container_class),
k.append(i),
j.children().each(function(s) {
s = e("<li>").attr("data-orbit-slide", s);
i.append(s)
}));
m.stack_on_small && k.addClass(m.stack_on_small_class);
h.update_slide_number(0);
h.update_active_link(0)
}
;
h._goto = function(s, B) {
if (s === o)
return false;
"object" === typeof t && t.restart();
var z = j.children()
, L = "next";
s < o && (L = "prev");
s >= z.length ? s = 0 : 0 > s && (s = z.length - 1);
var E = e(z.get(o))
, J = e(z.get(s));
E.css("zIndex", 2);
E.removeClass(m.active_slide_class);
J.css("zIndex", 4).addClass(m.active_slide_class);
j.trigger("orbit:before-slide-change");
m.before_slide_change();
h.update_active_link(s);
var C = function() {
var F = function() {
o = s;
true === B && (t = h.create_timer(),
t.start());
h.update_slide_number(o);
j.trigger("orbit:after-slide-change", [{
slide_number: o,
total_slides: z.length
}]);
m.after_slide_change(o, z.length)
};
j.height() != J.height() && m.variable_height ? j.animate({
height: J.height()
}, 250, "linear", F) : F()
};
if (1 === z.length)
return C(),
false;
var H = function() {
"next" === L && r.next(E, J, C);
"prev" === L && r.prev(E, J, C)
};
J.height() > j.height() && m.variable_height ? j.animate({
height: J.height()
}, 250, "linear", H) : H()
}
;
h.next = function(s) {
s.stopImmediatePropagation();
s.preventDefault();
h._goto(o + 1)
}
;
h.prev = function(s) {
s.stopImmediatePropagation();
s.preventDefault();
h._goto(o - 1)
}
;
h.link_custom = function(s) {
s.preventDefault();
s = e(this).attr("data-orbit-link");
"string" === typeof s && "" != (s = e.trim(s)) && (s = k.find("[data-
orbit-slide=" + s + "]"),
-1 != s.index() && h._goto(s.index()))
}
;
h.link_bullet = function(s) {
s = e(this).attr("data-orbit-slide");
"string" === typeof s && "" != (s = e.trim(s)) && h._goto(parseInt(s))
}
;
h.timer_callback = function() {
h._goto(o + 1, true)
}
;
h.compute_dimensions = function() {
var s = e(j.children().get(o)).height();
m.variable_height || j.children().each(function() {
e(this).height() > s && (s = e(this).height())
});
j.height(s)
}
;
h.create_timer = function() {
return new b(k.find("." + m.timer_container_class),m,h.timer_callback)
}
;
h.stop_timer = function() {
"object" === typeof t && t.stop()
}
;
h.toggle_timer = function() {
k.find("." + m.timer_container_class).hasClass(m.timer_paused_class) ?
("undefined" === typeof t && (t = h.create_timer()),
t.start()) : "object" === typeof t && t.stop()
}
;
h.init = function() {
h.build_markup();
m.timer && (t = h.create_timer(),
t.start());
r = new l(m,j);
"slide" === m.animation && (r = new d(m,j));
k.on("click", "." + m.next_class, h.next);
k.on("click", "." + m.prev_class, h.prev);
k.on("click", "[data-orbit-slide]", h.link_bullet);
k.on("click", h.toggle_timer);
if (m.swipe)
k.on("touchstart.fndtn.orbit", function(s) {
s.touches || (s = s.originalEvent);
var B = {
start_page_x: s.touches[0].pageX,
start_page_y: s.touches[0].pageY,
start_time: (new Date).getTime(),
delta_x: 0,
is_scrolling: g
};
k.data("swipe-transition", B);
s.stopPropagation()
}).on("touchmove.fndtn.orbit", function(s) {
s.touches || (s = s.originalEvent);
if (!(1 < s.touches.length || s.scale && 1 !== s.scale)) {
var B = k.data("swipe-transition");
"undefined" === typeof B && (B = {});
B.delta_x = s.touches[0].pageX - B.start_page_x;
"undefined" === typeof B.is_scrolling && (B.is_scrolling
= !!(B.is_scrolling || Math.abs(B.delta_x) < Math.abs(s.touches[0].pageY -
B.start_page_y)));
B.is_scrolling || B.active || (s.preventDefault(),
s = 0 > B.delta_x ? o + 1 : o - 1,
B.active = true,
h._goto(s))
}
}).on("touchend.fndtn.orbit", function(s) {
k.data("swipe-transition", {});
s.stopPropagation()
});
k.on("mouseenter.fndtn.orbit", function() {
m.timer && m.pause_on_hover && h.stop_timer()
}).on("mouseleave.fndtn.orbit", function() {
m.timer && m.resume_on_mouseout && t.start()
});
e(q).on("click", "[data-orbit-link]", h.link_custom);
e(p).on("resize", h.compute_dimensions);
e(p).on("load", h.compute_dimensions);
e(p).on("load", function() {
k.prev(".preloader").css("display", "none")
});
j.trigger("orbit:ready")
}
;
h.init()
}
, b = function(j, m, h) {
var k = this, f = m.timer_speed, i = j.find("." + m.timer_progress_class),
n, o, r = -1;
this.update_progress = function(t) {
var s = i.clone();
s.attr("style", "");
s.css("width", t + "%");
i.replaceWith(s);
i = s
}
;
this.restart = function() {
clearTimeout(o);
j.addClass(m.timer_paused_class);
r = -1;
k.update_progress(0)
}
;
this.start = function() {
if (!j.hasClass(m.timer_paused_class))
return true;
r = -1 === r ? f : r;
j.removeClass(m.timer_paused_class);
n = (new Date).getTime();
i.animate({
width: "100%"
}, r, "linear");
o = setTimeout(function() {
k.restart();
h()
}, r);
j.trigger("orbit:timer-started")
}
;
this.stop = function() {
if (j.hasClass(m.timer_paused_class))
return true;
clearTimeout(o);
j.addClass(m.timer_paused_class);
var t = (new Date).getTime();
r -= t - n;
k.update_progress(100 - r / f * 100);
j.trigger("orbit:timer-stopped")
}
}
, d = function(j) {
var m = j.animation_speed
, h = 1 === e("html[dir=rtl]").length ? "marginRight" : "marginLeft"
, k = {};
k[h] = "0%";
this.next = function(f, i, n) {
i.animate(k, m, "linear", function() {
f.css(h, "100%");
n()
})
}
;
this.prev = function(f, i, n) {
i.css(h, "-100%");
i.animate(k, m, "linear", function() {
f.css(h, "100%");
n()
})
}
}
, l = function(j) {
var m = j.animation_speed;
e("html[dir=rtl]");
this.next = function(h, k, f) {
k.css({
margin: "0%",
opacity: "0.01"
});
k.animate({
opacity: "1"
}, m, "linear", function() {
h.css("margin", "100%");
f()
})
}
;
this.prev = function(h, k, f) {
k.css({
margin: "0%",
opacity: "0.01"
});
k.animate({
opacity: "1"
}, m, "linear", function() {
h.css("margin", "100%");
f()
})
}
};
Foundation.libs = Foundation.libs || {};
Foundation.libs.orbit = {
name: "orbit",
version: "4.3.2",
settings: {
animation: "slide",
timer_speed: 1E4,
pause_on_hover: true,
resume_on_mouseout: false,
animation_speed: 500,
stack_on_small: false,
navigation_arrows: true,
slide_number: true,
slide_number_text: "of",
container_class: "orbit-container",
stack_on_small_class: "orbit-stack-on-small",
next_class: "orbit-next",
prev_class: "orbit-prev",
timer_container_class: "orbit-timer",
timer_paused_class: "paused",
timer_progress_class: "orbit-progress",
slides_container_class: "orbit-slides-container",
bullets_container_class: "orbit-bullets",
bullets_active_class: "active",
slide_number_class: "orbit-slide-number",
caption_class: "orbit-caption",
active_slide_class: "active",
orbit_transition_class: "orbit-transitioning",
bullets: true,
timer: true,
variable_height: false,
swipe: true,
before_slide_change: c,
after_slide_change: c
},
init: function(j, m, h) {
var k = this;
Foundation.inherit(k, "data_options");
"object" === typeof m && e.extend(true, k.settings, m);
e(j).is("[data-orbit]") && (m = e(j),
h = k.data_options(m),
new a(m,e.extend({}, k.settings, h)));
e("[data-orbit]", j).each(function(f, i) {
var n = e(i)
, o = k.data_options(n);
new a(n,e.extend({}, k.settings, o))
})
}
}
}
)(Foundation.zj, this, this.document);
(function(e, p, q, g) {
Foundation.libs.reveal = {
name: "reveal",
version: "4.3.2",
locked: false,
settings: {
animation: "fadeAndPop",
animationSpeed: 250,
closeOnBackgroundClick: true,
closeOnEsc: true,
dismissModalClass: "close-reveal-modal",
bgClass: "reveal-modal-bg",
open: function() {},
opened: function() {},
close: function() {},
closed: function() {},
bg: e(".reveal-modal-bg"),
css: {
open: {
opacity: 0,
visibility: "visible",
display: "block"
},
close: {
opacity: 1,
visibility: "hidden",
display: "none"
}
}
},
init: function(c, a, b) {
Foundation.inherit(this, "data_options delay");
"object" === typeof a ? e.extend(true, this.settings, a) :
"undefined" !== typeof b && e.extend(true, this.settings, b);
return "string" !== typeof a ? (this.events(),
this.settings.init) : this[a].call(this, b)
},
events: function() {
var c = this;
e(this.scope).off(".fndtn.reveal").on("click.fndtn.reveal", "[data-
reveal-id]", function(a) {
a.preventDefault();
if (!c.locked) {
a = e(this);
var b = a.data("reveal-ajax");
c.locked = true;
"undefined" === typeof b ? c.open.call(c, a) : (b = true ===
b ? a.attr("href") : b,
c.open.call(c, a, {
url: b
}))
}
}).on("click.fndtn.reveal touchend", this.close_targets(), function(a)
{
a.preventDefault();
if (!c.locked) {
var b = e.extend({}, c.settings, c.data_options(e(".reveal-
modal.open")));
a = e(a.target)[0] === e("." + b.bgClass)[0];
if (!a || b.closeOnBackgroundClick) {
c.locked = true;
c.close.call(c, a ? e(".reveal-modal.open") :
e(this).closest(".reveal-modal"))
}
}
});
if (e(this.scope).hasClass("reveal-modal"))
e(this.scope).on("open.fndtn.reveal",
this.settings.open).on("opened.fndtn.reveal",
this.settings.opened).on("opened.fndtn.reveal",
this.open_video).on("close.fndtn.reveal",
this.settings.close).on("closed.fndtn.reveal",
this.settings.closed).on("closed.fndtn.reveal", this.close_video);
else
e(this.scope).on("open.fndtn.reveal", ".reveal-modal",
this.settings.open).on("opened.fndtn.reveal", ".reveal-modal",
this.settings.opened).on("opened.fndtn.reveal", ".reveal-modal",
this.open_video).on("close.fndtn.reveal", ".reveal-modal",
this.settings.close).on("closed.fndtn.reveal", ".reveal-modal",
this.settings.closed).on("closed.fndtn.reveal", ".reveal-modal", this.close_video);
e("body").bind("keyup.reveal", function(a) {
var b = e(".reveal-modal.open")
, d = e.extend({}, c.settings, c.data_options(b));
27 === a.which && d.closeOnEsc && b.foundation("reveal", "close")
});
return true
},
open: function(c, a) {
if (c)
if ("undefined" !== typeof c.selector)
var b = e("#" + c.data("reveal-id"));
else {
b = e(this.scope);
a = c
}
else
b = e(this.scope);
if (!b.hasClass("open")) {
var d = e(".reveal-modal.open");
"undefined" === typeof b.data("css-top") && b.data("css-top",
parseInt(b.css("top"), 10)).data("offset", this.cache_offset(b));
b.trigger("open");
1 > d.length && this.toggle_bg();
if ("undefined" !== typeof a && a.url) {
var l = this
, j = "undefined" !== typeof a.success ? a.success : null;
e.extend(a, {
success: function(m, h, k) {
e.isFunction(j) && j(m, h, k);
b.html(m);
e(b).foundation("section", "reflow");
l.hide(d, l.settings.css.close);
l.show(b, l.settings.css.open)
}
});
e.ajax(a)
} else {
this.hide(d, this.settings.css.close);
this.show(b, this.settings.css.open)
}
}
},
close: function(c) {
c = c && c.length ? c : e(this.scope);
var a = e(".reveal-modal.open");
0 < a.length && (this.locked = true,
c.trigger("close"),
this.toggle_bg(),
this.hide(a, this.settings.css.close))
},
close_targets: function() {
var c = "." + this.settings.dismissModalClass;
return this.settings.closeOnBackgroundClick ? c + ", ." +
this.settings.bgClass : c
},
toggle_bg: function() {
0 === e("." + this.settings.bgClass).length && (this.settings.bg =
e("<div ></a>", {
"class": this.settings.bgClass
}).appendTo("body"));
0 < this.settings.bg.filter(":visible").length ?
this.hide(this.settings.bg) : this.show(this.settings.bg)
},
show: function(c, a) {
if (a) {
if (0 === c.parent("body").length) {
var b = c.wrap('<div style="display: none;"
></this>').parent();
c.on("closed.fndtn.reveal.wrapped", function() {
c.detach().appendTo(b);
c.unwrap().unbind("closed.fndtn.reveal.wrapped")
});
c.detach().appendTo("body")
}
if (/pop/i.test(this.settings.animation)) {
a.top = e(p).scrollTop() - c.data("offset") + "px";
var d = {
top: e(p).scrollTop() + c.data("css-top") + "px",
opacity: 1
};
return this.delay(function() {
return c.css(a).animate(d, this.settings.animationSpeed,
"linear", function() {
this.locked = false;
c.trigger("opened")
}
.bind(this)).addClass("open")
}
.bind(this), this.settings.animationSpeed / 2)
}
return /fade/i.test(this.settings.animation) ? (d = {
opacity: 1
},
this.delay(function() {
return c.css(a).animate(d, this.settings.animationSpeed,
"linear", function() {
this.locked = false;
c.trigger("opened")
}
.bind(this)).addClass("open")
}
.bind(this), this.settings.animationSpeed / 2)) :
c.css(a).show().css({
opacity: 1
}).addClass("open").trigger("opened")
}
return /fade/i.test(this.settings.animation) ?
c.fadeIn(this.settings.animationSpeed / 2) : c.show()
},
hide: function(c, a) {
if (a) {
if (/pop/i.test(this.settings.animation)) {
var b = {
top: -e(p).scrollTop() - c.data("offset") + "px",
opacity: 0
};
return this.delay(function() {
return c.animate(b, this.settings.animationSpeed, "linear",
function() {
this.locked = false;
c.css(a).trigger("closed")
}
.bind(this)).removeClass("open")
}
.bind(this), this.settings.animationSpeed / 2)
}
return /fade/i.test(this.settings.animation) ? (b = {
opacity: 0
},
this.delay(function() {
return c.animate(b, this.settings.animationSpeed, "linear",
function() {
this.locked = false;
c.css(a).trigger("closed")
}
.bind(this)).removeClass("open")
}
.bind(this), this.settings.animationSpeed / 2)) :
c.hide().css(a).removeClass("open").trigger("closed")
}
return /fade/i.test(this.settings.animation) ?
c.fadeOut(this.settings.animationSpeed / 2) : c.hide()
},
close_video: function(c) {
c = e(this).find(".flex-video");
var a = c.find("iframe");
0 < a.length && (a.attr("data-src", a[0].src),
a.attr("src", "about:blank"),
c.hide())
},
open_video: function(c) {
c = e(this).find(".flex-video");
var a = c.find("iframe");
if (0 < a.length) {
if ("string" === typeof a.attr("data-src"))
a[0].src = a.attr("data-src");
else {
var b = a[0].src;
a[0].src = g;
a[0].src = b
}
c.show()
}
},
cache_offset: function(c) {
var a = c.show().height() + parseInt(c.css("top"), 10);
c.hide();
return a
},
off: function() {
e(this.scope).off(".fndtn.reveal")
},
reflow: function() {}
}
}
)(Foundation.zj, this, this.document);
(function(e, p, q) {
Foundation.libs.section = {
name: "section",
version: "4.3.2",
settings: {
deep_linking: false,
small_breakpoint: 768,
one_up: true,
multi_expand: false,
section_selector: "[data-section]",
region_selector: "section, .section, [data-section-region]",
title_selector: ".title, [data-section-title]",
resized_data_attr: "data-section-resized",
small_style_data_attr: "data-section-small-style",
content_selector: ".content, [data-section-content]",
nav_selector: '[data-section="vertical-nav"], [data-
section="horizontal-nav"]',
active_class: "active",
callback: function() {}
},
init: function(g, c, a) {
Foundation.inherit(this, "throttle data_options position_right
offset_right");
"object" === typeof c && e.extend(true, this.settings, c);
return "string" !== typeof c ? (this.events(),
true) : this[c].call(this, a)
},
events: function() {
for (var g = this, c = [], a = g.settings.section_selector, b =
g.settings.region_selector.split(","), d = g.settings.title_selector.split(","), l
= 0, j = b.length; l < j; l++)
for (var m = b[l], h = 0, k = d.length; h < k; h++) {
var f = a + ">" + m + ">" + d[h];
c.push(f + " a");
c.push(f)
}
e(g.scope).on("click.fndtn.section", c.join(","), function(i) {
var n = e(this).closest(g.settings.title_selector);
g.close_navs(n);
0 < n.siblings(g.settings.content_selector).length &&
g.toggle_active.call(n[0], i)
});
e(p).on("resize.fndtn.section", g.throttle(function() {
g.resize()
}, 30)).on("hashchange.fndtn.section", g.set_active_from_hash);
e(q).on("click.fndtn.section", function(i) {
i.isPropagationStopped && i.isPropagationStopped() || i.target !==
q && g.close_navs(e(i.target).closest(g.settings.title_selector))
});
e(p).triggerHandler("resize.fndtn.section");
e(p).triggerHandler("hashchange.fndtn.section")
},
close_navs: function(g) {
var c = Foundation.libs.section
, a = e(c.settings.nav_selector).filter(function() {
return !e.extend({}, c.settings, c.data_options(e(this))).one_up
});
if (0 < g.length) {
var b = g.parent().parent();
if (c.is_horizontal_nav(b) || c.is_vertical_nav(b))
a = a.filter(function() {
return this !== b[0]
})
}
a.children(c.settings.region_selector).removeClass(c.settings.active_class)
},
toggle_active: function(g) {
var c = e(this)
, a = Foundation.libs.section
, b = c.parent();
c = c.siblings(a.settings.content_selector);
var d = b.parent()
, l = e.extend({}, a.settings, a.data_options(d))
, j = d.children(a.settings.region_selector).filter("." +
a.settings.active_class);
!l.deep_linking && 0 < c.length && g.preventDefault();
g.stopPropagation();
if (b.hasClass(a.settings.active_class)) {
if (b.hasClass(a.settings.active_class) && a.is_accordion(d) || !
l.one_up && (a.small(d) || a.is_vertical_nav(d) || a.is_horizontal_nav(d) ||
a.is_accordion(d))) {
b.removeClass(a.settings.active_class);
b.trigger("closed.fndtn.section")
}
} else {
if (!a.is_accordion(d) || a.is_accordion(d) && !
a.settings.multi_expand) {
j.removeClass(a.settings.active_class);
j.trigger("closed.fndtn.section")
}
b.addClass(a.settings.active_class);
a.resize(b.find(a.settings.section_selector).not("[" +
a.settings.resized_data_attr + "]"), true);
b.trigger("opened.fndtn.section")
}
l.callback(d)
},
check_resize_timer: null,
resize: function(g, c) {
var a = Foundation.libs.section
, b = e(a.settings.section_selector)
, d = a.small(b)
, l = function(j, m) {
return !a.is_accordion(j) && !j.is("[" +
a.settings.resized_data_attr + "]") && (!d || a.is_horizontal_tabs(j)) && m ===
("none" === j.css("display") || !j.parent().is(":visible"))
};
g = g || e(a.settings.section_selector);
clearTimeout(a.check_resize_timer);
d || g.removeAttr(a.settings.small_style_data_attr);
g.filter(function() {
return l(e(this), false)
}).each(function() {
var j = e(this)
, m = j.children(a.settings.region_selector)
, h = m.children(a.settings.title_selector)
, k = m.children(a.settings.content_selector)
, f = 0;
if (c && 0 == j.children(a.settings.region_selector).filter("." +
a.settings.active_class).length) {
var i = e.extend({}, a.settings, a.data_options(j));
i.deep_linking || !i.one_up && (a.is_horizontal_nav(j) ||
a.is_vertical_nav(j) || a.is_accordion(j)) ||
m.filter(":visible").first().addClass(a.settings.active_class)
}
if (a.is_horizontal_tabs(j) || a.is_auto(j)) {
var n = 0;
h.each(function() {
var B = e(this);
if (B.is(":visible")) {
B.css(a.rtl ? "right" : "left", n);
var z = parseInt(B.css("border-" + (a.rtl ? "left" :
"right") + "-width"), 10);
"Nan" === z.toString() && (z = 0);
n += a.outerWidth(B) - z;
f = Math.max(f, a.outerHeight(B))
}
});
h.css("height", f);
m.each(function() {
var B = e(this)
, z = B.children(a.settings.content_selector);
z = parseInt(z.css("border-top-width"), 10);
"Nan" === z.toString() && (z = 0);
B.css("padding-top", f - z)
});
j.css("min-height", f)
} else if (a.is_horizontal_nav(j)) {
var o = true;
h.each(function() {
f = Math.max(f, a.outerHeight(e(this)))
});
m.each(function() {
var B = e(this);
B.css("margin-left", "-" + (o ? j :
B.children(a.settings.title_selector)).css("border-left-width"));
o = false
});
m.css("margin-top", "-" + j.css("border-top-width"));
h.css("height", f);
k.css("top", f);
j.css("min-height", f)
} else if (a.is_vertical_tabs(j)) {
var r = 0;
h.each(function() {
var B = e(this);
if (B.is(":visible")) {
B.css("top", r);
var z = parseInt(B.css("border-top-width"), 10);
"Nan" === z.toString() && (z = 0);
r += a.outerHeight(B) - z
}
});
k.css("min-height", r + 1)
} else if (a.is_vertical_nav(j)) {
var t = 0
, s = true;
h.each(function() {
t = Math.max(t, a.outerWidth(e(this)))
});
m.each(function() {
var B = e(this);
B.css("margin-top", "-" + (s ? j :
B.children(a.settings.title_selector)).css("border-top-width"));
s = false
});
h.css("width", t);
k.css(a.rtl ? "right" : "left", t);
j.css("width", t)
}
j.attr(a.settings.resized_data_attr, true)
});
0 < e(a.settings.section_selector).filter(function() {
return l(e(this), true)
}).length && (a.check_resize_timer = setTimeout(function() {
a.resize(g.filter(function() {
return l(e(this), false)
}), true)
}, 700));
d && g.attr(a.settings.small_style_data_attr, true)
},
is_vertical_nav: function(g) {
return /vertical-nav/i.test(g.data("section"))
},
is_horizontal_nav: function(g) {
return /horizontal-nav/i.test(g.data("section"))
},
is_accordion: function(g) {
return /accordion/i.test(g.data("section"))
},
is_horizontal_tabs: function(g) {
return /^tabs$/i.test(g.data("section"))
},
is_vertical_tabs: function(g) {
return /vertical-tabs/i.test(g.data("section"))
},
is_auto: function(g) {
g = g.data("section");
return "" === g || /auto/i.test(g)
},
set_active_from_hash: function() {
var g = Foundation.libs.section, c = p.location.hash.substring(1), a =
e(g.settings.section_selector), b;
a.each(function() {
var d = e(this);
d.children(g.settings.region_selector).each(function() {
var l =
e(this).children(g.settings.content_selector).data("slug");
if (RegExp(l, "i").test(c))
return b = d,
false
});
if (null != b)
return false
});
null != b && a.each(function() {
if (b == e(this)) {
var d = e(this)
, l = e.extend({}, g.settings, g.data_options(d))
, j = d.children(g.settings.region_selector)
, m = l.deep_linking && 0 < c.length
, h = false;
j.each(function() {
var k = e(this);
if (h)
k.removeClass(g.settings.active_class);
else if (m) {
var f =
k.children(g.settings.content_selector).data("slug");
f && RegExp(f, "i").test(c) ?
(k.hasClass(g.settings.active_class) || k.addClass(g.settings.active_class),
h = true) : k.removeClass(g.settings.active_class)
} else
k.hasClass(g.settings.active_class) && (h = true)
});
h || !l.one_up && (g.is_horizontal_nav(d) ||
g.is_vertical_nav(d) || g.is_accordion(d)) ||
j.filter(":visible").first().addClass(g.settings.active_class)
}
})
},
reflow: function() {
var g = Foundation.libs.section;
e(g.settings.section_selector).removeAttr(g.settings.resized_data_attr);
g.throttle(function() {
g.resize()
}, 30)()
},
small: function(g) {
var c = e.extend({}, this.settings, this.data_options(g));
return this.is_horizontal_tabs(g) ? false : g && this.is_accordion(g)
|| e("html").hasClass("lt-ie9") || e("html").hasClass("ie8compat") ? true :
e(this.scope).width() < c.small_breakpoint
},
off: function() {
e(this.scope).off(".fndtn.section");
e(p).off(".fndtn.section");
e(q).off(".fndtn.section")
}
};
e.fn.reflow_section = function(g) {
var c = this
, a = Foundation.libs.section;
c.removeAttr(a.settings.resized_data_attr);
a.throttle(function() {
a.resize(c, g)
}, 30)();
return this
}
}
)(Foundation.zj, window, document);
(function(e, p) {
Foundation.libs.tooltips = {
name: "tooltips",
version: "4.3.2",
settings: {
selector: ".has-tip",
additionalInheritableClasses: [],
tooltipClass: ".tooltip",
touchCloseText: "tap to close",
appendTo: "body",
"disable-for-touch": false,
tipTemplate: function(q, g) {
return '<span data-selector="' + q + '" class="' +
Foundation.libs.tooltips.settings.tooltipClass.substring(1) + '">' + g + '<span
class="nub"></span></span>'
}
},
cache: {},
init: function(q, g, c) {
Foundation.inherit(this, "data_options");
var a = this;
"object" === typeof g ? e.extend(true, this.settings, g) :
"undefined" !== typeof c && e.extend(true, this.settings, c);
if ("string" !== typeof g)
if (Modernizr.touch)
e(this.scope).on("click.fndtn.tooltip touchstart.fndtn.tooltip
touchend.fndtn.tooltip", "[data-tooltip]", function(b) {
var d = e.extend({}, a.settings, a.data_options(e(this)));
d["disable-for-touch"] || (b.preventDefault(),
e(d.tooltipClass).hide(),
a.showOrCreateTip(e(this)))
}).on("click.fndtn.tooltip touchstart.fndtn.tooltip
touchend.fndtn.tooltip", this.settings.tooltipClass, function(b) {
b.preventDefault();
e(this).fadeOut(150)
});
else
e(this.scope).on("mouseenter.fndtn.tooltip
mouseleave.fndtn.tooltip", "[data-tooltip]", function(b) {
var d = e(this);
/enter|over/i.test(b.type) ? a.showOrCreateTip(d) :
"mouseout" !== b.type && "mouseleave" !== b.type || a.hide(d)
});
else
return this[g].call(this, c)
},
showOrCreateTip: function(q) {
var g = this.getTip(q);
return g && 0 < g.length ? this.show(q) : this.create(q)
},
getTip: function(q) {
q = this.selector(q);
var g = null;
q && (g = e('span[data-selector="' + q + '"]' +
this.settings.tooltipClass));
return "object" === typeof g ? g : false
},
selector: function(q) {
var g = q.attr("id")
, c = q.attr("data-tooltip") || q.attr("data-selector");
(g && 1 > g.length || !g) && "string" != typeof c && (c = "tooltip" +
Math.random().toString(36).substring(7),
q.attr("data-selector", c));
return g && 0 < g.length ? g : c
},
create: function(q) {
var g = e(this.settings.tipTemplate(this.selector(q),
e("<div></div>").html(q.attr("title")).html()))
, c = this.inheritable_classes(q);
g.addClass(c).appendTo(this.settings.appendTo);
Modernizr.touch && g.append('<span class="tap-to-close">' +
this.settings.touchCloseText + "</span>");
q.removeAttr("title").attr("title", "");
this.show(q)
},
reposition: function(q, g, c) {
var a, b, d, l;
g.css("visibility", "hidden").show();
a = q.data("width");
b = g.children(".nub");
d = this.outerHeight(b);
this.outerHeight(b);
l = function(j, m, h, k, f, i) {
return j.css({
top: m ? m : "auto",
bottom: k ? k : "auto",
left: f ? f : "auto",
right: h ? h : "auto",
width: i ? i : "auto"
}).end()
}
;
l(g, q.offset().top + this.outerHeight(q) + 10, "auto", "auto",
q.offset().left, a);
767 > e(p).width() ? (l(g, q.offset().top + this.outerHeight(q) + 10,
"auto", "auto", 12.5, e(this.scope).width()),
g.addClass("tip-override"),
l(b, -d, "auto", "auto", q.offset().left)) : (b = q.offset().left,
Foundation.rtl && (b = q.offset().left + q.offset().width -
this.outerWidth(g)),
l(g, q.offset().top + this.outerHeight(q) + 10, "auto", "auto", b, a),
g.removeClass("tip-override"),
c && -1 < c.indexOf("tip-top") ? l(g, q.offset().top -
this.outerHeight(g), "auto", "auto", b, a).removeClass("tip-override") : c && -1 <
c.indexOf("tip-left") ? l(g, q.offset().top + this.outerHeight(q) / 2 - 2.5 * d,
"auto", "auto", q.offset().left - this.outerWidth(g) - d, a).removeClass("tip-
override") : c && -1 < c.indexOf("tip-right") && l(g, q.offset().top +
this.outerHeight(q) / 2 - 2.5 * d, "auto", "auto", q.offset().left +
this.outerWidth(q) + d, a).removeClass("tip-override"));
g.css("visibility", "visible").hide()
},
inheritable_classes: function(q) {
var g = ["tip-top", "tip-left", "tip-bottom", "tip-right",
"noradius"].concat(this.settings.additionalInheritableClasses);
q = (q = q.attr("class")) ? e.map(q.split(" "), function(c) {
if (-1 !== e.inArray(c, g))
return c
}).join(" ") : "";
return e.trim(q)
},
show: function(q) {
var g = this.getTip(q);
this.reposition(q, g, q.attr("class"));
g.fadeIn(150)
},
hide: function(q) {
this.getTip(q).fadeOut(150)
},
reload: function() {
var q = e(this);
return q.data("fndtn-tooltips") ?
q.foundationTooltips("destroy").foundationTooltips("init") :
q.foundationTooltips("init")
},
off: function() {
e(this.scope).off(".fndtn.tooltip");
e(this.settings.tooltipClass).each(function(q) {
e("[data-tooltip]").get(q).attr("title", e(this).text())
}).remove()
},
reflow: function() {}
}
}
)(Foundation.zj, this, this.document);
(function(e, p, q) {
Foundation.libs.topbar = {
name: "topbar",
version: "4.3.2",
settings: {
index: 0,
stickyClass: "sticky",
custom_back_text: true,
back_text: "Back",
is_hover: true,
mobile_show_parent_link: false,
scrolltop: true,
init: false
},
init: function(g, c, a) {
Foundation.inherit(this, "data_options addCustomRule");
var b = this;
"object" === typeof c ? e.extend(true, this.settings, c) :
"undefined" !== typeof a && e.extend(true, this.settings, a);
return "string" !== typeof c ? (e(".top-bar, [data-
topbar]").each(function() {
e.extend(true, b.settings, b.data_options(e(this)));
b.settings.$w = e(p);
b.settings.$topbar = e(this);
b.settings.$section = b.settings.$topbar.find("section");
b.settings.$titlebar = b.settings.$topbar.children("ul").first();
b.settings.$topbar.data("index", 0);
var d = b.settings.$topbar.parent();
d.hasClass("fixed") || d.hasClass(b.settings.stickyClass) ?
(b.settings.$topbar.data("height", b.outerHeight(d)),
b.settings.$topbar.data("stickyoffset", d.offset().top)) :
b.settings.$topbar.data("height", b.outerHeight(b.settings.$topbar));
d = e("<div class='top-bar-js-
breakpoint'></c>").insertAfter(b.settings.$topbar);
b.settings.breakPoint = d.width();
d.remove();
b.assemble();
b.settings.is_hover && b.settings.$topbar.find(".has-
dropdown").addClass("not-click");
b.addCustomRule(".f-topbar-fixed { padding-top: " + b.settings.
$topbar.data("height") + "px }");
b.settings.$topbar.parent().hasClass("fixed") &&
e("body").addClass("f-topbar-fixed")
}),
b.settings.init || this.events(),
this.settings.init) : this[c].call(this, a)
},
toggle: function() {
var g = e(".top-bar, [data-topbar]")
, c = g.find("section, .section");
this.breakpoint() && (this.rtl ? (c.css({
right: "0%"
}),
c.find(">.name").css({
right: "100%"
})) : (c.css({
left: "0%"
}),
c.find(">.name").css({
left: "100%"
})),
c.find("li.moved").removeClass("moved"),
g.data("index", 0),
g.toggleClass("expanded").css("height", ""));
this.settings.scrolltop ? g.hasClass("expanded") ?
g.parent().hasClass("fixed") && (this.settings.scrolltop ?
(g.parent().removeClass("fixed"),
g.addClass("fixed"),
e("body").removeClass("f-topbar-fixed"),
p.scrollTo(0, 0)) : g.parent().removeClass("expanded")) :
g.hasClass("fixed") && (g.parent().addClass("fixed"),
g.removeClass("fixed"),
e("body").addClass("f-topbar-fixed")) :
(g.parent().hasClass(this.settings.stickyClass) && g.parent().addClass("fixed"),
g.parent().hasClass("fixed") && (g.hasClass("expanded") ?
(g.addClass("fixed"),
g.parent().addClass("expanded")) : (g.removeClass("fixed"),
g.parent().removeClass("expanded"),
this.updateStickyPositioning())))
},
timer: null,
events: function() {
var g = this;
e(this.scope).off(".fndtn.topbar").on("click.fndtn.topbar", ".top-
bar .toggle-topbar, [data-topbar] .toggle-topbar", function(c) {
c.preventDefault();
g.toggle()
}).on("click.fndtn.topbar", ".top-bar li.has-dropdown", function(c) {
var a = e(this)
, b = e(c.target);
a.closest("[data-topbar], .top-bar").data("topbar");
b.data("revealId") ? g.toggle() : g.breakpoint() ||
g.settings.is_hover && !Modernizr.touch || (c.stopImmediatePropagation(),
"A" === b[0].nodeName && b.parent().hasClass("has-dropdown") &&
c.preventDefault(),
a.hasClass("hover") ?
(a.removeClass("hover").find("li").removeClass("hover"),
a.parents("li.hover").removeClass("hover")) : a.addClass("hover"))
}).on("click.fndtn.topbar", ".top-bar .has-dropdown>a, [data-topbar]
.has-dropdown>a", function(c) {
if (g.breakpoint() && e(p).width() != g.settings.breakPoint) {
c.preventDefault();
c = e(this);
var a = c.closest(".top-bar, [data-topbar]")
, b = a.find("section, .section");
c.next(".dropdown").outerHeight();
var d = c.closest("li");
a.data("index", a.data("index") + 1);
d.addClass("moved");
g.rtl ? (b.css({
right: -(100 * a.data("index")) + "%"
}),
b.find(">.name").css({
right: 100 * a.data("index") + "%"
})) : (b.css({
left: -(100 * a.data("index")) + "%"
}),
b.find(">.name").css({
left: 100 * a.data("index") + "%"
}));
a.css("height", g.outerHeight(c.siblings("ul"), true) +
g.settings.$topbar.data("height"))
}
});
e(p).on("resize.fndtn.topbar", function() {
if ("undefined" !== typeof g.settings.$topbar) {
var c = g.settings.$topbar.parent("." +
this.settings.stickyClass), a;
g.breakpoint() || (a = g.settings.$topbar.hasClass("expanded"),
e(".top-bar, [data-topbar]").css("height",
"").removeClass("expanded").find("li").removeClass("hover"),
a && g.toggle());
0 < c.length && (c.hasClass("fixed") ? (c.removeClass("fixed"),
a = c.offset().top,
e(q.body).hasClass("f-topbar-fixed") && (a -= g.settings.
$topbar.data("height")),
g.settings.$topbar.data("stickyoffset", a),
c.addClass("fixed")) : (a = c.offset().top,
g.settings.$topbar.data("stickyoffset", a)))
}
}
.bind(this));
e("body").on("click.fndtn.topbar", function(c) {
0 < e(c.target).closest("li").closest("li.hover").length ||
e(".top-bar li, [data-topbar] li").removeClass("hover")
});
e(this.scope).on("click.fndtn", ".top-bar .has-dropdown .back, [data-
topbar] .has-dropdown .back", function(c) {
c.preventDefault();
var a = e(this);
c = a.closest(".top-bar, [data-topbar]");
var b = c.find("section, .section")
, d = a.closest("li.moved");
a = d.parent();
c.data("index", c.data("index") - 1);
g.rtl ? (b.css({
right: -(100 * c.data("index")) + "%"
}),
b.find(">.name").css({
right: 100 * c.data("index") + "%"
})) : (b.css({
left: -(100 * c.data("index")) + "%"
}),
b.find(">.name").css({
left: 100 * c.data("index") + "%"
}));
0 === c.data("index") ? c.css("height", "") : c.css("height",
g.outerHeight(a, true) + g.settings.$topbar.data("height"));
setTimeout(function() {
d.removeClass("moved")
}, 300)
})
},
breakpoint: function() {
return e(q).width() <= this.settings.breakPoint ||
e("html").hasClass("lt-ie9")
},
assemble: function() {
var g = this;
this.settings.$section.detach();
this.settings.$section.find(".has-dropdown>a").each(function() {
var c = e(this)
, a = c.siblings(".dropdown")
, b = c.attr("href");
b = g.settings.mobile_show_parent_link && b && 1 < b.length ?
e('<li class="title back js-generated"><h5><a
href="https://static1.freebitco.in/min/combined_bottom1383555676.js#"></a></h5></li
><li><a class="parent-link js-generated" href="https://static1.freebitco.in/min/' +
b + '">' + c.text() + "</a></li>") : e('<li class="title back js-generated"><h5><a
href="https://static1.freebitco.in/min/combined_bottom1383555676.js#"></a></h5></li
>');
true == g.settings.custom_back_text ?
b.find("h5>a").html(g.settings.back_text) : b.find("h5>a").html("\u00ab " +
c.html());
a.prepend(b)
});
this.settings.$section.appendTo(this.settings.$topbar);
this.sticky()
},
height: function(g) {
var c = 0
, a = this;
g.find("> li").each(function() {
c += a.outerHeight(e(this), true)
});
return c
},
sticky: function() {
var g = this;
e(p).scroll(function() {
g.updateStickyPositioning()
})
},
updateStickyPositioning: function() {
var g = "." + this.settings.stickyClass
, c = e(p);
if (0 < e(g).length) {
var a = this.settings.$topbar.data("stickyoffset");
e(g).hasClass("expanded") || (c.scrollTop() > a ?
e(g).hasClass("fixed") || (e(g).addClass("fixed"),
e("body").addClass("f-topbar-fixed")) : c.scrollTop() <= a &&
e(g).hasClass("fixed") && (e(g).removeClass("fixed"),
e("body").removeClass("f-topbar-fixed")))
}
},
off: function() {
e(this.scope).off(".fndtn.topbar");
e(p).off(".fndtn.topbar")
},
reflow: function() {}
}
}
)(Foundation.zj, this, this.document);
(function(e, p, q) {
Foundation.libs.interchange = {
name: "interchange",
version: "4.2.4",
cache: {},
images_loaded: false,
settings: {
load_attr: "interchange",
named_queries: {
"default": "only screen and (min-width: 1px)",
small: "only screen and (min-width: 768px)",
medium: "only screen and (min-width: 1280px)",
large: "only screen and (min-width: 1440px)",
landscape: "only screen and (orientation: landscape)",
portrait: "only screen and (orientation: portrait)",
retina: "only screen and (-webkit-min-device-pixel-ratio: 2),only
screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-
ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-
resolution: 192dpi),only screen and (min-resolution: 2dppx)"
},
directives: {
replace: function(g, c) {
if (/IMG/.test(g[0].nodeName)) {
var a = g[0].src;
if (!RegExp(c, "i").test(a))
return g[0].src = c,
g.trigger("replace", [g[0].src, a])
}
}
}
},
init: function(g, c, a) {
Foundation.inherit(this, "throttle");
"object" === typeof c && e.extend(true, this.settings, c);
this.events();
this.images();
return "string" !== typeof c ? this.settings.init : this[c].call(this,
a)
},
events: function() {
var g = this;
e(p).on("resize.fndtn.interchange", g.throttle(function() {
g.resize.call(g)
}, 50))
},
resize: function() {
var g = this.cache;
if (this.images_loaded)
for (var c in g) {
if (g.hasOwnProperty(c)) {
var a = this.results(c, g[c]);
if (a)
this.settings.directives[a.scenario[1]](a.el,
a.scenario[0])
}
}
else
setTimeout(e.proxy(this.resize, this), 50)
},
results: function(g, c) {
var a = c.length;
if (0 < a) {
var b = e('[data-uuid="' + g + '"]');
for (a -= 1; 0 <= a; a--) {
var d = c[a][2];
if ((this.settings.named_queries.hasOwnProperty(d) ?
matchMedia(this.settings.named_queries[d]) : matchMedia(d)).matches)
return {
el: b,
scenario: c[a]
}
}
}
return false
},
images: function(g) {
return "undefined" === typeof this.cached_images || g ?
this.update_images() : this.cached_images
},
update_images: function() {
var g = q.getElementsByTagName("img")
, c = g.length
, a = 0
, b = "data-" + this.settings.load_attr;
this.cached_images = [];
this.images_loaded = false;
for (var d = c - 1; 0 <= d; d--)
this.loaded(e(g[d]), function(l) {
a++;
l && 0 < (l.getAttribute(b) || "").length &&
this.cached_images.push(l);
a === c && (this.images_loaded = true,
this.enhance())
}
.bind(this));
return "deferred"
},
loaded: function(g, c) {
function a() {
c(g[0])
}
function b() {
this.one("load", a);
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) {
var d = this.attr("src")
, l = d.match(/\?/) ? "&" : "?";
l += "random=" + (new Date).getTime();
this.attr("src", d + l)
}
}
g.attr("src") ? g[0].complete || 4 === g[0].readyState ? a() :
b.call(g) : a()
},
enhance: function() {
for (var g = this.images().length - 1; 0 <= g; g--)
this._object(e(this.images()[g]));
return e(p).trigger("resize")
},
parse_params: function(g, c, a) {
return [this.trim(g), this.convert_directive(c), this.trim(a)]
},
convert_directive: function(g) {
g = this.trim(g);
return 0 < g.length ? g : "replace"
},
_object: function(g) {
var c = this.parse_data_attr(g)
, a = []
, b = c.length;
if (0 < b)
for (b -= 1; 0 <= b; b--) {
var d = c[b].split(/\((.*?)(\))$/);
if (1 < d.length) {
var l = d[0].split(",");
d = this.parse_params(l[0], l[1], d[1]);
a.push(d)
}
}
return this.store(g, a)
},
uuid: function(g) {
function c() {
return (65536 * (1 + Math.random()) | 0).toString(16).substring(1)
}
g = g || "-";
return c() + c() + g + c() + g + c() + g + c() + g + c() + c() + c()
},
store: function(g, c) {
var a = this.uuid()
, b = g.data("uuid");
if (b)
return this.cache[b];
g.attr("data-uuid", a);
return this.cache[a] = c
},
trim: function(g) {
return "string" === typeof g ? e.trim(g) : g
},
parse_data_attr: function(g) {
g = g.data(this.settings.load_attr).split(/\[(.*?)\]/);
for (var c = [], a = g.length - 1; 0 <= a; a--)
4 < g[a].replace(/[\W\d]+/, "").length && c.push(g[a]);
return c
},
reflow: function() {
this.images(true)
}
}
}
)(Foundation.zj, this, this.document);
(function(e) {
e.Placeholders = {
Utils: {
addEventListener: function(p, q, g) {
if (p.addEventListener)
return p.addEventListener(q, g, false);
if (p.attachEvent)
return p.attachEvent("on" + q, g)
},
inArray: function(p, q) {
var g, c;
g = 0;
for (c = p.length; g < c; g++)
if (p[g] === q)
return true;
return false
},
moveCaret: function(p, q) {
var g;
p.createTextRange ? (g = p.createTextRange(),
g.move("character", q),
g.select()) : p.selectionStart && (p.focus(),
p.setSelectionRange(q, q))
},
changeType: function(p, q) {
try {
return p.type = q,
true
} catch (g) {
return false
}
}
}
}
}
)(this);
(function(e) {
function p() {}
function q(y) {
var P;
if (y.value === y.getAttribute(B) && "true" === y.getAttribute(z)) {
y.setAttribute(z, "false");
y.value = "";
y.className = y.className.replace(r, "");
if (P = y.getAttribute(L))
y.type = P;
return true
}
return false
}
function g(y) {
var P;
P = y.getAttribute(B);
return "" === y.value && P ? (y.setAttribute(z, "true"),
y.value = P,
y.className += " " + o,
y.getAttribute(L) ? y.type = "text" : "password" === y.type &&
I.changeType(y, "text") && y.setAttribute(L, "password"),
true) : false
}
function c(y, P) {
var X, O, ba, aa, W;
if (y && y.getAttribute(B))
P(y);
else {
X = y ? y.getElementsByTagName("input") : t;
O = y ? y.getElementsByTagName("textarea") : s;
W = 0;
for (aa = X.length + O.length; W < aa; W++) {
ba = W < X.length ? X[W] : O[W - X.length];
P(ba)
}
}
}
function a(y) {
c(y, q)
}
function b(y) {
c(y, g)
}
function d(y) {
return function() {
A && y.value === y.getAttribute(B) && "true" === y.getAttribute(z) ?
I.moveCaret(y, 0) : q(y)
}
}
function l(y) {
return function() {
g(y)
}
}
function j(y) {
return function(P) {
x = y.value;
if ("true" === y.getAttribute(z) && x === y.getAttribute(B) &&
I.inArray(n, P.keyCode))
return P.preventDefault && P.preventDefault(),
false
}
}
function m(y) {
return function() {
var P;
"true" === y.getAttribute(z) && y.value !== x && (y.className =
y.className.replace(r, ""),
y.value = y.value.replace(y.getAttribute(B), ""),
y.setAttribute(z, false),
P = y.getAttribute(L)) && (y.type = P);
"" === y.value && (y.blur(),
I.moveCaret(y, 0))
}
}
function h(y) {
return function() {
y === document.activeElement && y.value === y.getAttribute(B) && "true"
=== y.getAttribute(z) && I.moveCaret(y, 0)
}
}
function k(y) {
return function() {
a(y)
}
}
function f(y) {
y.form && (D = y.form,
D.getAttribute(E) || (I.addEventListener(D, "submit", k(D)),
D.setAttribute(E, "true")));
I.addEventListener(y, "focus", d(y));
I.addEventListener(y, "blur", l(y));
A && (I.addEventListener(y, "keydown", j(y)),
I.addEventListener(y, "keyup", m(y)),
I.addEventListener(y, "click", h(y)));
y.setAttribute(J, "true");
y.setAttribute(B, u);
g(y)
}
var i = "text search url tel email password number textarea".split(" "), n =
[27, 33, 34, 35, 36, 37, 38, 39, 40, 8, 46], o = "placeholdersjs", r =
RegExp("(?:^|\\s)" + o + "(?!\\S)"), t, s, B = "data-placeholder-value", z = "data-
placeholder-active", L = "data-placeholder-type", E = "data-placeholder-submit", J
= "data-placeholder-bound", C = document.createElement("input"), H =
document.getElementsByTagName("head")[0], F = document.documentElement;
e = e.Placeholders;
var I = e.Utils, A, w, x, u, v, D, M, T, N;
e.nativeSupport = void 0 !== C.placeholder;
if (!e.nativeSupport) {
t = document.getElementsByTagName("input");
s = document.getElementsByTagName("textarea");
A = "false" === F.getAttribute("data-placeholder-focus");
w = "false" !== F.getAttribute("data-placeholder-live");
C = document.createElement("style");
C.type = "text/css";
F = document.createTextNode("." + o + " { color:#ccc; }");
C.styleSheet ? C.styleSheet.cssText = F.nodeValue : C.appendChild(F);
H.insertBefore(C, H.firstChild);
N = 0;
for (T = t.length + s.length; N < T; N++) {
M = N < t.length ? t[N] : s[N - t.length];
(u = M.attributes.placeholder) && (u = u.nodeValue) && I.inArray(i,
M.type) && f(M)
}
v = setInterval(function() {
N = 0;
for (T = t.length + s.length; N < T; N++)
if (M = N < t.length ? t[N] : s[N - t.length],
(u = M.attributes.placeholder) && (u = u.nodeValue) && I.inArray(i,
M.type) && (M.getAttribute(J) || f(M),
u !== M.getAttribute(B) || "password" === M.type && !
M.getAttribute(L))) {
"password" === M.type && !M.getAttribute(L) && I.changeType(M,
"text") && M.setAttribute(L, "password");
M.value === M.getAttribute(B) && (M.value = u);
M.setAttribute(B, u)
}
w || clearInterval(v)
}, 100)
}
e.disable = e.nativeSupport ? p : a;
e.enable = e.nativeSupport ? p : b
}
)(this);
(function(e, p, q) {
Foundation.libs.abide = {
name: "abide",
version: "4.3.2",
settings: {
live_validate: true,
focus_on_invalid: true,
timeout: 1E3,
patterns: {
alpha: /[a-zA-Z]+/,
alpha_numeric: /[a-zA-Z0-9]+/,
integer: /-?\d+/,
number: /-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?/,
password: /(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?
=.*[a-z]).*$/,
card: /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9]
[0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|
35\d{3})\d{11})$/,
cvv: /^([0-9]){3,4}$/,
email: /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-
9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,
url: /(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|
[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?
(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-
9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|
[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|
[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|
[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|
[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|
[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|
[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|
[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|
[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|
[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+
(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|
[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|
[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|
[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|
[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|
@)|\/|\?)*)?/,
domain: /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]
{2,6}$/,
datetime: /([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-
9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))/,
date: /(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-
9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))/,
time: /(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}/,
dateISO: /\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/,
month_day_year: /(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])
[- \/.](19|20)\d\d/,
color: /^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/
}
},
timer: null,
init: function(g, c, a) {
"object" === typeof c && e.extend(true, this.settings, c);
if ("string" !== typeof c)
this.settings.init || this.events();
else
return this[c].call(this, a)
},
events: function() {
var g = this
, c = e("form[data-abide]", this.scope).attr("novalidate",
"novalidate");
c.on("submit validate", function(a) {
return g.validate(e(this).find("input, textarea, select").get(), a)
});
this.settings.init = true;
if (this.settings.live_validate)
c.find("input, textarea, select").on("blur change", function(a) {
g.validate([this], a)
}).on("keydown", function(a) {
clearTimeout(g.timer);
g.timer = setTimeout(function() {
g.validate([this], a)
}
.bind(this), g.settings.timeout)
})
},
validate: function(g, c) {
for (var a = this.parse_patterns(g), b = a.length, d =
e(g[0]).closest("form"), l = 0; l < b; l++)
if (!a[l] && /submit/.test(c.type))
return this.settings.focus_on_invalid && g[l].focus(),
d.trigger("invalid"),
e(g[l]).closest("form").attr("data-invalid", ""),
false;
/submit/.test(c.type) && d.trigger("valid");
d.removeAttr("data-invalid");
return true
},
parse_patterns: function(g) {
for (var c = [], a = g.length - 1; 0 <= a; a--)
c.push(this.pattern(g[a]));
return this.check_validation_and_apply_styles(c)
},
pattern: function(g) {
var c = g.getAttribute("type")
, a = "string" === typeof g.getAttribute("required");
if (this.settings.patterns.hasOwnProperty(c))
return [g, this.settings.patterns[c], a];
c = g.getAttribute("pattern") || "";
if (this.settings.patterns.hasOwnProperty(c) && 0 < c.length)
return [g, this.settings.patterns[c], a];
if (0 < c.length)
return [g, RegExp(c), a];
c = /.*/;
return [g, c, a]
},
check_validation_and_apply_styles: function(g) {
for (var c = [], a = g.length - 1; 0 <= a; a--) {
var b = g[a][0]
, d = g[a][2]
, l = b.value
, j = d ? 0 < b.value.length : true;
"radio" === b.type && d ? c.push(this.valid_radio(b, d)) : g[a]
[1].test(l) && j || !d && 1 > b.value.length ? (e(b).removeAttr("data-
invalid").parent().removeClass("error"),
c.push(true)) : (e(b).attr("data-invalid",
"").parent().addClass("error"),
c.push(false))
}
return c
},
valid_radio: function(g) {
g = g.getAttribute("name");
g = q.getElementsByName(g);
for (var c = g.length, a = false, b = 0; b < c; b++)
g[b].checked && (a = true);
for (b = 0; b < c; b++)
a ? e(g[b]).removeAttr("data-
invalid").parent().removeClass("error") : e(g[b]).attr("data-invalid",
"").parent().addClass("error");
return a
}
}
}
)(Foundation.zj, this, this.document);
(function(e) {
e.fn.qrcode = function(p) {
function q(h) {
this.mode = d;
this.data = h
}
function g(h, k) {
this.typeNumber = h;
this.errorCorrectLevel = k;
this.modules = null;
this.moduleCount = 0;
this.dataCache = null;
this.dataList = []
}
function c(h, k) {
if (void 0 == h.length)
throw Error(h.length + "/" + k);
for (var f = 0; f < h.length && 0 == h[f]; )
f++;
this.num = Array(h.length - f + k);
for (var i = 0; i < h.length - f; i++)
this.num[i] = h[i + f]
}
function a(h, k) {
this.totalCount = h;
this.dataCount = k
}
function b() {
this.buffer = [];
this.length = 0
}
var d;
q.prototype = {
getLength: function() {
return this.data.length
},
write: function(h) {
for (var k = 0; k < this.data.length; k++)
h.put(this.data.charCodeAt(k), 8)
}
};
g.prototype = {
addData: function(h) {
this.dataList.push(new q(h));
this.dataCache = null
},
isDark: function(h, k) {
if (0 > h || this.moduleCount <= h || 0 > k || this.moduleCount <=
k)
throw Error(h + "," + k);
return this.modules[h][k]
},
getModuleCount: function() {
return this.moduleCount
},
make: function() {
if (1 > this.typeNumber) {
var h = 1;
for (h = 1; 40 > h; h++) {
for (var k = a.getRSBlocks(h, this.errorCorrectLevel), f =
new b, i = 0, n = 0; n < k.length; n++)
i += k[n].dataCount;
for (n = 0; n < this.dataList.length; n++) {
k = this.dataList[n];
f.put(k.mode, 4);
f.put(k.getLength(), l.getLengthInBits(k.mode, h));
k.write(f)
}
if (f.getLengthInBits() <= 8 * i)
break
}
this.typeNumber = h
}
this.makeImpl(false, this.getBestMaskPattern())
},
makeImpl: function(h, k) {
this.moduleCount = 4 * this.typeNumber + 17;
this.modules = Array(this.moduleCount);
for (var f = 0; f < this.moduleCount; f++) {
this.modules[f] = Array(this.moduleCount);
for (var i = 0; i < this.moduleCount; i++)
this.modules[f][i] = null
}
this.setupPositionProbePattern(0, 0);
this.setupPositionProbePattern(this.moduleCount - 7, 0);
this.setupPositionProbePattern(0, this.moduleCount - 7);
this.setupPositionAdjustPattern();
this.setupTimingPattern();
this.setupTypeInfo(h, k);
7 <= this.typeNumber && this.setupTypeNumber(h);
null == this.dataCache && (this.dataCache =
g.createData(this.typeNumber, this.errorCorrectLevel, this.dataList));
this.mapData(this.dataCache, k)
},
setupPositionProbePattern: function(h, k) {
for (var f = -1; 7 >= f; f++)
if (!(-1 >= h + f || this.moduleCount <= h + f))
for (var i = -1; 7 >= i; i++)
-1 >= k + i || this.moduleCount <= k + i ||
(this.modules[h + f][k + i] = 0 <= f && 6 >= f && (0 == i || 6 == i) || 0 <= i && 6
>= i && (0 == f || 6 == f) || 2 <= f && 4 >= f && 2 <= i && 4 >= i ? true : false)
},
getBestMaskPattern: function() {
for (var h = 0, k = 0, f = 0; 8 > f; f++) {
this.makeImpl(true, f);
var i = l.getLostPoint(this);
if (0 == f || h > i) {
h = i;
k = f
}
}
return k
},
createMovieClip: function(h, k, f) {
h = h.createEmptyMovieClip(k, f);
this.make();
for (k = 0; k < this.modules.length; k++) {
f = 1 * k;
for (var i = 0; i < this.modules[k].length; i++) {
var n = 1 * i;
this.modules[k][i] && (h.beginFill(0, 100),
h.moveTo(n, f),
h.lineTo(n + 1, f),
h.lineTo(n + 1, f + 1),
h.lineTo(n, f + 1),
h.endFill())
}
}
return h
},
setupTimingPattern: function() {
for (var h = 8; h < this.moduleCount - 8; h++)
null == this.modules[h][6] && (this.modules[h][6] = 0 == h %
2);
for (h = 8; h < this.moduleCount - 8; h++)
null == this.modules[6][h] && (this.modules[6][h] = 0 == h % 2)
},
setupPositionAdjustPattern: function() {
for (var h = l.getPatternPosition(this.typeNumber), k = 0; k <
h.length; k++)
for (var f = 0; f < h.length; f++) {
var i = h[k]
, n = h[f];
if (null == this.modules[i][n])
for (var o = -2; 2 >= o; o++)
for (var r = -2; 2 >= r; r++)
this.modules[i + o][n + r] = -2 == o || 2 == o
|| -2 == r || 2 == r || 0 == o && 0 == r ? true : false
}
},
setupTypeNumber: function(h) {
for (var k = l.getBCHTypeNumber(this.typeNumber), f = 0; 18 > f; f+
+) {
var i = !h && 1 == (k >> f & 1);
this.modules[Math.floor(f / 3)][f % 3 + this.moduleCount - 8 -
3] = i
}
for (f = 0; 18 > f; f++) {
i = !h && 1 == (k >> f & 1);
this.modules[f % 3 + this.moduleCount - 8 - 3][Math.floor(f /
3)] = i
}
},
setupTypeInfo: function(h, k) {
for (var f = l.getBCHTypeInfo(this.errorCorrectLevel << 3 | k), i =
0; 15 > i; i++) {
var n = !h && 1 == (f >> i & 1);
6 > i ? this.modules[i][8] = n : 8 > i ? this.modules[i + 1][8]
= n : this.modules[this.moduleCount - 15 + i][8] = n
}
for (i = 0; 15 > i; i++) {
n = !h && 1 == (f >> i & 1);
8 > i ? this.modules[8][this.moduleCount - i - 1] = n : 9 > i ?
this.modules[8][15 - i - 1 + 1] = n : this.modules[8][15 - i - 1] = n
}
this.modules[this.moduleCount - 8][8] = !h
},
mapData: function(h, k) {
for (var f = -1, i = this.moduleCount - 1, n = 7, o = 0, r =
this.moduleCount - 1; 0 < r; r -= 2)
for (6 == r && r--; ; ) {
for (var t = 0; 2 > t; t++)
if (null == this.modules[i][r - t]) {
var s = false;
o < h.length && (s = 1 == (h[o] >>> n & 1));
l.getMask(k, i, r - t) && (s = !s);
this.modules[i][r - t] = s;
n--;
-1 == n && (o++,
n = 7)
}
i += f;
if (0 > i || this.moduleCount <= i) {
i -= f;
f = -f;
break
}
}
}
};
g.PAD0 = 236;
g.PAD1 = 17;
g.createData = function(h, k, f) {
k = a.getRSBlocks(h, k);
for (var i = new b, n = 0; n < f.length; n++) {
var o = f[n];
i.put(o.mode, 4);
i.put(o.getLength(), l.getLengthInBits(o.mode, h));
o.write(i)
}
for (n = h = 0; n < k.length; n++)
h += k[n].dataCount;
if (i.getLengthInBits() > 8 * h)
throw Error("code length overflow. (" + i.getLengthInBits() + ">" +
8 * h + ")");
for (i.getLengthInBits() + 4 <= 8 * h && i.put(0, 4); 0 !=
i.getLengthInBits() % 8; )
i.putBit(false);
for (; !(i.getLengthInBits() >= 8 * h); ) {
i.put(g.PAD0, 8);
if (i.getLengthInBits() >= 8 * h)
break;
i.put(g.PAD1, 8)
}
return g.createBytes(i, k)
}
;
g.createBytes = function(h, k) {
for (var f = 0, i = 0, n = 0, o = Array(k.length), r = Array(k.length),
t = 0; t < k.length; t++) {
var s = k[t].dataCount
, B = k[t].totalCount - s;
i = Math.max(i, s);
n = Math.max(n, B);
o[t] = Array(s);
for (var z = 0; z < o[t].length; z++)
o[t][z] = 255 & h.buffer[z + f];
f += s;
z = l.getErrorCorrectPolynomial(B);
s = (new c(o[t],z.getLength() - 1)).mod(z);
r[t] = Array(z.getLength() - 1);
for (z = 0; z < r[t].length; z++) {
B = z + s.getLength() - r[t].length;
r[t][z] = 0 <= B ? s.get(B) : 0
}
}
for (z = t = 0; z < k.length; z++)
t += k[z].totalCount;
f = Array(t);
for (z = s = 0; z < i; z++)
for (t = 0; t < k.length; t++)
z < o[t].length && (f[s++] = o[t][z]);
for (z = 0; z < n; z++)
for (t = 0; t < k.length; t++)
z < r[t].length && (f[s++] = r[t][z]);
return f
}
;
d = 4;
for (var l = {
PATTERN_POSITION_TABLE: [[], [6, 18], [6, 22], [6, 26], [6, 30], [6,
34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58],
[6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78],
[6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50,
74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30,
58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102,
126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112,
138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102,
126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32,
58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142,
170]],
G15: 1335,
G18: 7973,
G15_MASK: 21522,
getBCHTypeInfo: function(h) {
for (var k = h << 10; 0 <= l.getBCHDigit(k) - l.getBCHDigit(l.G15);
)
k ^= l.G15 << l.getBCHDigit(k) - l.getBCHDigit(l.G15);
return (h << 10 | k) ^ l.G15_MASK
},
getBCHTypeNumber: function(h) {
for (var k = h << 12; 0 <= l.getBCHDigit(k) - l.getBCHDigit(l.G18);
)
k ^= l.G18 << l.getBCHDigit(k) - l.getBCHDigit(l.G18);
return h << 12 | k
},
getBCHDigit: function(h) {
for (var k = 0; 0 != h; ) {
k++;
h >>>= 1
}
return k
},
getPatternPosition: function(h) {
return l.PATTERN_POSITION_TABLE[h - 1]
},
getMask: function(h, k, f) {
switch (h) {
case 0:
return 0 == (k + f) % 2;
case 1:
return 0 == k % 2;
case 2:
return 0 == f % 3;
case 3:
return 0 == (k + f) % 3;
case 4:
return 0 == (Math.floor(k / 2) + Math.floor(f / 3)) % 2;
case 5:
return 0 == k * f % 2 + k * f % 3;
case 6:
return 0 == (k * f % 2 + k * f % 3) % 2;
case 7:
return 0 == (k * f % 3 + (k + f) % 2) % 2;
default:
throw Error("bad maskPattern:" + h);
}
},
getErrorCorrectPolynomial: function(h) {
for (var k = new c([1],0), f = 0; f < h; f++)
k = k.multiply(new c([1, j.gexp(f)],0));
return k
},
getLengthInBits: function(h, k) {
if (1 <= k && 10 > k)
switch (h) {
case 1:
return 10;
case 2:
return 9;
case d:
return 8;
case 8:
return 8;
default:
throw Error("mode:" + h);
}
else if (27 > k)
switch (h) {
case 1:
return 12;
case 2:
return 11;
case d:
return 16;
case 8:
return 10;
default:
throw Error("mode:" + h);
}
else if (41 > k)
switch (h) {
case 1:
return 14;
case 2:
return 13;
case d:
return 16;
case 8:
return 12;
default:
throw Error("mode:" + h);
}
else
throw Error("type:" + k);
},
getLostPoint: function(h) {
for (var k = h.getModuleCount(), f = 0, i = 0; i < k; i++)
for (var n = 0; n < k; n++) {
for (var o = 0, r = h.isDark(i, n), t = -1; 1 >= t; t++)
if (!(0 > i + t || k <= i + t))
for (var s = -1; 1 >= s; s++)
0 > n + s || k <= n + s || 0 == t && 0 == s ||
r == h.isDark(i + t, n + s) && o++;
5 < o && (f += 3 + o - 5)
}
for (i = 0; i < k - 1; i++)
for (n = 0; n < k - 1; n++)
if (o = 0,
h.isDark(i, n) && o++,
h.isDark(i + 1, n) && o++,
h.isDark(i, n + 1) && o++,
h.isDark(i + 1, n + 1) && o++,
0 == o || 4 == o)
f += 3;
for (i = 0; i < k; i++)
for (n = 0; n < k - 6; n++)
h.isDark(i, n) && !h.isDark(i, n + 1) && h.isDark(i, n + 2)
&& h.isDark(i, n + 3) && h.isDark(i, n + 4) && !h.isDark(i, n + 5) && h.isDark(i, n
+ 6) && (f += 40);
for (n = 0; n < k; n++)
for (i = 0; i < k - 6; i++)
h.isDark(i, n) && !h.isDark(i + 1, n) && h.isDark(i + 2, n)
&& h.isDark(i + 3, n) && h.isDark(i + 4, n) && !h.isDark(i + 5, n) && h.isDark(i +
6, n) && (f += 40);
for (n = o = 0; n < k; n++)
for (i = 0; i < k; i++)
h.isDark(i, n) && o++;
h = Math.abs(100 * o / k / k - 50) / 5;
return f + 10 * h
}
}, j = {
glog: function(h) {
if (1 > h)
throw Error("glog(" + h + ")");
return j.LOG_TABLE[h]
},
gexp: function(h) {
for (; 0 > h; )
h += 255;
for (; 256 <= h; )
h -= 255;
return j.EXP_TABLE[h]
},
EXP_TABLE: Array(256),
LOG_TABLE: Array(256)
}, m = 0; 8 > m; m++)
j.EXP_TABLE[m] = 1 << m;
for (m = 8; 256 > m; m++)
j.EXP_TABLE[m] = j.EXP_TABLE[m - 4] ^ j.EXP_TABLE[m - 5] ^
j.EXP_TABLE[m - 6] ^ j.EXP_TABLE[m - 8];
for (m = 0; 255 > m; m++)
j.LOG_TABLE[j.EXP_TABLE[m]] = m;
c.prototype = {
get: function(h) {
return this.num[h]
},
getLength: function() {
return this.num.length
},
multiply: function(h) {
for (var k = Array(this.getLength() + h.getLength() - 1), f = 0; f
< this.getLength(); f++)
for (var i = 0; i < h.getLength(); i++)
k[f + i] ^= j.gexp(j.glog(this.get(f)) + j.glog(h.get(i)));
return new c(k,0)
},
mod: function(h) {
if (0 > this.getLength() - h.getLength())
return this;
for (var k = j.glog(this.get(0)) - j.glog(h.get(0)), f =
Array(this.getLength()), i = 0; i < this.getLength(); i++)
f[i] = this.get(i);
for (i = 0; i < h.getLength(); i++)
f[i] ^= j.gexp(j.glog(h.get(i)) + k);
return (new c(f,0)).mod(h)
}
};
a.RS_BLOCK_TABLE = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1,
44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35,
17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134,
108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4,
43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33,
15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2,
41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16,
4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44],
[6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81,
51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6,
58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107],
[8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145,
115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5,
37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25],
[11, 36, 12], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44,
20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47],
[1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9,
69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113,
4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40,
14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25],
[15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6,
51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54,
24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48],
[11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6,
73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132,
106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15,
13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6,
51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74,
46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148,
118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16],
[7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19,
45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15,
54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74,
46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115],
[10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17,
145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11,
45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44,
54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75,
47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121,
14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64,
46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10,
55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32,
75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148,
118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16],
[19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25],
[20, 45, 15, 61, 46, 16]];
a.getRSBlocks = function(h, k) {
var f = a.getRsBlockTable(h, k);
if (void 0 == f)
throw Error("bad rs block @ typeNumber:" + h +
"/errorCorrectLevel:" + k);
for (var i = f.length / 3, n = [], o = 0; o < i; o++)
for (var r = f[3 * o + 0], t = f[3 * o + 1], s = f[3 * o + 2], B =
0; B < r; B++)
n.push(new a(t,s));
return n
}
;
a.getRsBlockTable = function(h, k) {
switch (k) {
case 1:
return a.RS_BLOCK_TABLE[4 * (h - 1) + 0];
case 0:
return a.RS_BLOCK_TABLE[4 * (h - 1) + 1];
case 3:
return a.RS_BLOCK_TABLE[4 * (h - 1) + 2];
case 2:
return a.RS_BLOCK_TABLE[4 * (h - 1) + 3]
}
}
;
b.prototype = {
get: function(h) {
return 1 == (this.buffer[Math.floor(h / 8)] >>> 7 - h % 8 & 1)
},
put: function(h, k) {
for (var f = 0; f < k; f++)
this.putBit(1 == (h >>> k - f - 1 & 1))
},
getLengthInBits: function() {
return this.length
},
putBit: function(h) {
var k = Math.floor(this.length / 8);
this.buffer.length <= k && this.buffer.push(0);
h && (this.buffer[k] |= 128 >>> this.length % 8);
this.length++
}
};
"string" === typeof p && (p = {
text: p
});
p = e.extend({}, {
render: "canvas",
width: 256,
height: 256,
typeNumber: -1,
correctLevel: 2,
background: "#ffffff",
foreground: "#000000"
}, p);
return this.each(function() {
var h;
if ("canvas" == p.render) {
h = new g(p.typeNumber,p.correctLevel);
h.addData(p.text);
h.make();
var k = document.createElement("canvas");
k.width = p.width;
k.height = p.height;
for (var f = k.getContext("2d"), i = p.width / h.getModuleCount(),
n = p.height / h.getModuleCount(), o = 0; o < h.getModuleCount(); o++)
for (var r = 0; r < h.getModuleCount(); r++) {
f.fillStyle = h.isDark(o, r) ? p.foreground : p.background;
f.fillRect(Math.round(r * i), Math.round(o * n),
Math.ceil((r + 1) * i) - Math.floor(r * i), Math.ceil((o + 1) * i) - Math.floor(o *
i))
}
} else {
h = new g(p.typeNumber,p.correctLevel);
h.addData(p.text);
h.make();
k = e("<table></table>").css("width", p.width + "px").css("height",
p.height + "px").css("border", "0px").css("border-collapse",
"collapse").css("background-color", p.background);
f = p.width / h.getModuleCount();
i = p.height / h.getModuleCount();
for (n = 0; n < h.getModuleCount(); n++) {
o = e("<tr></tr>").css("height", i + "px").appendTo(k);
for (r = 0; r < h.getModuleCount(); r++)
e("<td></td>").css("width", f + "px").css("background-
color", h.isDark(n, r) ? p.foreground : p.background).appendTo(o)
}
}
jQuery(k).appendTo(this)
})
}
}
)(jQuery);
(function() {
if (!window.hasCookieConsent) {
window.hasCookieConsent = true;
if (!(document.cookie.indexOf("cookieconsent_dismissed") > -1)) {
"function" != typeof String.prototype.trim && (String.prototype.trim =
function() {
return this.replace(/^\s+|\s+$/g, "")
}
);
var e, p = {
isArray: function(a) {
return "[object Array]" == Object.prototype.toString.call(a)
},
isObject: function(a) {
return "[object Object]" == Object.prototype.toString.call(a)
},
each: function(a, b, d, l) {
if (p.isObject(a) && !l)
for (var j in a)
a.hasOwnProperty(j) && b.call(d, a[j], j, a);
else {
l = 0;
for (j = a.length; j > l; l++)
b.call(d, a[l], l, a)
}
},
merge: function(a, b) {
a && p.each(b, function(d, l) {
p.isObject(d) && p.isObject(a[l]) ? p.merge(a[l], d) : a[l]
= d
})
},
bind: function(a, b) {
return function() {
return a.apply(b, arguments)
}
},
queryObject: function(a, b) {
var d, l = 0, j = a;
for (b = b.split("."); (d = b[l++]) && j.hasOwnProperty(d) &&
(j = j[d]); )
if (l === b.length)
return j;
return null
},
setCookie: function(a, b, d, l, j) {
var m = new Date;
m.setDate(m.getDate() + (d || 365));
a = [a + "=" + b, "expires=" + m.toUTCString(), "path=" + j ||
"/"];
l && a.push("domain=" + l);
document.cookie = a.join(";")
},
addEventListener: function(a, b, d) {
a.addEventListener ? a.addEventListener(b, d) :
a.attachEvent("on" + b, d)
}
}, q = function() {
var a = function(m, h, k) {
return p.isArray(h) ? p.each(h, function(f) {
a(m, f, k)
}) : void (m.addEventListener ? m.addEventListener(h, k) :
m.attachEvent("on" + h, k))
}
, b = function(m, h) {
return m.replace(/\{\{(.*?)\}\}/g, function(k, f) {
for (var i, n = f.split("||"); i = n.shift(); ) {
if (i = i.trim(),
'"' === i[0])
return i.slice(1, i.length - 1);
if (i = p.queryObject(h, i))
return i
}
return ""
})
}
, d = function(m, h, k) {
m = m.parentNode.querySelectorAll("[" + h + "]");
p.each(m, function(f) {
var i = f.getAttribute(h);
k(f, i)
}, window, true)
}
, l = function(m, h) {
d(m, "data-cc-event", function(k, f) {
var i = f.split(":")
, n = p.queryObject(h, i[1]);
a(k, i[0], p.bind(n, h))
})
}
, j = function(m, h) {
d(m, "data-cc-if", function(k, f) {
p.queryObject(h, f) || k.parentNode.removeChild(k)
})
};
return {
build: function(m, h) {
p.isArray(m) && (m = m.join(""));
m = b(m, h);
var k;
k = m;
var f = document.createElement("div");
k = (f.innerHTML = k,
f.children[0]);
return l(k, h),
j(k, h),
k
}
}
}(), g = {
options: {
message: "This website uses cookies to ensure you get the best
experience on our website. ",
dismiss: "Got it!",
learnMore: "More info",
link: null,
target: "_self",
container: null,
theme: "light-floating",
domain: null,
path: "/",
expiryDays: 365,
markup: ['<div class="cc_banner-wrapper
{{containerClasses}}">', '<div class="cc_banner cc_container cc_container--open">',
'<a href="#null" data-cc-event="click:dismiss" target="_blank" class="cc_btn
cc_btn_accept_all">{{options.dismiss}}</a>', '<p
class="cc_message">{{options.message}} <a data-cc-if="options.link"
target="{{ options.target }}" class="cc_more_info" href="{{options.link ||
"#null"}}">{{options.learnMore}}</a></p>', '<a class="cc_logo" target="_blank"
href="http://silktide.com/cookieconsent">Cookie Consent plugin for the EU cookie
law</a>', "</div>", "</div>"]
},
init: function() {
var a = window.cookieconsent_options;
a && this.setOptions(a);
this.setContainer();
this.options.theme ? this.loadTheme(this.render) :
this.render()
},
setOptionsOnTheFly: function(a) {
this.setOptions(a);
this.render()
},
setOptions: function(a) {
p.merge(this.options, a)
},
setContainer: function() {
this.options.container ? this.container =
document.querySelector(this.options.container) : this.container = document.body;
this.containerClasses = "";
navigator.appVersion.indexOf("MSIE 8") > -1 &&
(this.containerClasses += " cc_ie8")
},
loadTheme: function(a) {
var b = this.options.theme;
-1 === b.indexOf(".css") && (b =
"//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.9/" + b + ".css");
var d = document.createElement("link");
d.rel = "stylesheet";
d.type = "text/css";
d.href = b;
var l = false;
d.onload = p.bind(function() {
!l && a && (a.call(this),
l = true)
}, this);
document.getElementsByTagName("head")[0].appendChild(d)
},
render: function() {
this.element && this.element.parentNode &&
(this.element.parentNode.removeChild(this.element),
delete this.element);
this.element = q.build(this.options.markup, this);
this.container.firstChild ?
this.container.insertBefore(this.element, this.container.firstChild) :
this.container.appendChild(this.element)
},
dismiss: function(a) {
a.preventDefault && a.preventDefault();
a.returnValue = false;
this.setDismissedCookie();
this.container.removeChild(this.element)
},
setDismissedCookie: function() {
p.setCookie("cookieconsent_dismissed", "yes",
this.options.expiryDays, this.options.domain, this.options.path)
}
}, c = false;
(e = function() {
c || "complete" != document.readyState || (g.init(),
c = true,
window.update_cookieconsent_options = p.bind(g.setOptionsOnTheFly,
g))
}
)();
p.addEventListener(document, "readystatechange", e)
}
}
}
)();