if(navigator.userAgent.includes('Windows')){
document.body.classList.add('windows');
}
!(function s(r, a, l){
function c(e, t){
if(!a[e]){
if(!r[e]){
var n='function'==typeof require&&require;
if(!t&&n) return n(e, !0);
if(d) return d(e, !0);
var i=new Error("Cannot find module '" + e + "'");
throw ((i.code='MODULE_NOT_FOUND'), i);
}
var o=(a[e]={ exports: {}});
r[e][0].call(o.exports,
function (t){
return c(r[e][1][t]||t);
},
o,
o.exports,
s,
r,
a,
l,
);
}
return a[e].exports;
}
for (
var d='function'==typeof require&&require, t=0;
t < l.length;
t++
)
c(l[t]);
return c;
})(
{
1: [
function (t, e, n){
(!(function (l, c, g, m){
'use strict';
if(((l.console=l.console||{ info: function (t){}}), !g))
return;
if(g.fn.fancybox)
return console.info('fancyBox already initialized');
var t,
e,
n,
i,
o={
closeExisting: !1,
loop: !1,
gutter: 50,
keyboard: !0,
preventCaptionOverlap: !0,
arrows: !0,
infobar: !0,
smallBtn: 'auto',
toolbar: 'auto',
buttons: ['zoom', 'slideShow', 'thumbs', 'close'],
idleTime: 3,
protect: !1,
modal: !1,
image: { preload: !1 },
ajax: { settings: { data: { fancybox: !0 }} },
iframe: {
tpl: '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',
preload: !0,
css: {},
attr: { scrolling: 'auto' },
},
video: {
tpl: '<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',
format: '',
autoStart: !0,
},
defaultType: 'image',
animationEffect: 'zoom',
animationDuration: 366,
zoomOpacity: 'auto',
transitionEffect: 'fade',
transitionDuration: 366,
slideClass: '',
baseClass: '',
baseTpl:
'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',
spinnerTpl: '<div class="fancybox-loading"></div>',
errorTpl: '<div class="fancybox-error"><p>{{ERROR}}</p></div>',
btnTpl: {
download:
'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',
zoom: '<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',
close:
'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',
arrowLeft:
'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',
arrowRight:
'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',
smallBtn:
'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>',
},
parentEl: 'body',
hideScrollbar: !0,
autoFocus: !0,
backFocus: !0,
trapFocus: !0,
fullScreen: { autoStart: !1 },
touch: { vertical: !0, momentum: !0 },
hash: null,
media: {},
slideShow: { autoStart: !1, speed: 3e3 },
thumbs: {
autoStart: !1,
hideOnClose: !0,
parentEl: '.fancybox-container',
axis: 'y',
},
wheel: 'auto',
onInit: g.noop,
beforeLoad: g.noop,
afterLoad: g.noop,
beforeShow: g.noop,
afterShow: g.noop,
beforeClose: g.noop,
afterClose: g.noop,
onActivate: g.noop,
onDeactivate: g.noop,
clickContent: function (t, e){
return 'image'===t.type&&'zoom';
},
clickSlide: 'close',
clickOutside: 'close',
dblclickContent: !1,
dblclickSlide: !1,
dblclickOutside: !1,
mobile: {
preventCaptionOverlap: !1,
idleTime: !1,
clickContent: function (t, e){
return 'image'===t.type&&'toggleControls';
},
clickSlide: function (t, e){
return 'image'===t.type ? 'toggleControls':'close';
},
dblclickContent: function (t, e){
return 'image'===t.type&&'zoom';
},
dblclickSlide: function (t, e){
return 'image'===t.type&&'zoom';
},
},
lang: 'en',
i18n: {
en: {
CLOSE: 'Close',
NEXT: 'Next',
PREV: 'Previous',
ERROR:
'The requested content cannot be loaded. <br/> Please try again later.',
PLAY_START: 'Start slideshow',
PLAY_STOP: 'Pause slideshow',
FULL_SCREEN: 'Full screen',
THUMBS: 'Thumbnails',
DOWNLOAD: 'Download',
SHARE: 'Share',
ZOOM: 'Zoom',
},
de: {
CLOSE: 'Schlie&szlig;en',
NEXT: 'Weiter',
PREV: 'Zur&uuml;ck',
ERROR:
'Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.',
PLAY_START: 'Diaschau starten',
PLAY_STOP: 'Diaschau beenden',
FULL_SCREEN: 'Vollbild',
THUMBS: 'Vorschaubilder',
DOWNLOAD: 'Herunterladen',
SHARE: 'Teilen',
ZOOM: 'Vergr&ouml;&szlig;ern',
},
},
},
s=g(l),
r=g(c),
a=0,
f =
l.requestAnimationFrame ||
l.webkitRequestAnimationFrame ||
l.mozRequestAnimationFrame ||
l.oRequestAnimationFrame ||
function (t){
return l.setTimeout(t, 1e3 / 60);
},
d =
l.cancelAnimationFrame ||
l.webkitCancelAnimationFrame ||
l.mozCancelAnimationFrame ||
l.oCancelAnimationFrame ||
function (t){
l.clearTimeout(t);
},
u=(function (){
var t,
e=c.createElement('fakeelement'),
n={
transition: 'transitionend',
OTransition: 'oTransitionEnd',
MozTransition: 'transitionend',
WebkitTransition: 'webkitTransitionEnd',
};
for (t in n) if(e.style[t]!==m) return n[t];
return 'transitionend';
})(),
h=function (t){
return t&&t.length&&t[0].offsetHeight;
},
p=function (t, e){
var n=g.extend(!0, {}, t, e);
return (
g.each(e, function (t, e){
g.isArray(e)&&(n[t]=e);
}),
n
);
},
v=function (t, e, n){
var i=this;
if(((i.opts=p({ index: n }, g.fancybox.defaults)),
g.isPlainObject(e)&&(i.opts=p(i.opts, e)),
g.fancybox.isMobile&&(i.opts=p(i.opts, i.opts.mobile)),
(i.id=i.opts.id||++a),
(i.currIndex=parseInt(i.opts.index, 10)||0),
(i.prevIndex=null),
(i.prevPos=null),
(i.currPos=0),
(i.firstRun = !0),
(i.group=[]),
(i.slides={}),
i.addContent(t),
!i.group.length)
)
return;
i.init();
};
function b(t, e){
var n,
i,
o,
s=[],
r=0;
if(t&&t.isDefaultPrevented()) return;
if((t.preventDefault(),
(e=e||{}),
t&&t.data&&(e=p(t.data.options, e)),
(n=e.$target||g(t.currentTarget).trigger('blur')),
(o=g.fancybox.getInstance())&&o.$trigger&&o.$trigger.is(n))
)
return;
((s=e.selector
? g(e.selector)
: (i=n.attr('data-fancybox')||'')
? (s=t.data ? t.data.items:[]).length
? s.filter('[data-fancybox="' + i + '"]')
: g('[data-fancybox="' + i + '"]')
: [n]),
(r=g(s).index(n)) < 0&&(r=0),
((o=g.fancybox.open(s, e, r)).$trigger=n));
}
(g.extend(v.prototype, {
init: function (){
var e,
n,
i=this,
o=i.group[i.currIndex].opts;
(o.closeExisting&&g.fancybox.close(!0),
g('body').addClass('fancybox-active'),
!g.fancybox.getInstance() &&
!1!==o.hideScrollbar &&
!g.fancybox.isMobile &&
c.body.scrollHeight > l.innerHeight &&
(g('head').append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:' +
(l.innerWidth - c.documentElement.clientWidth) +
'px;}</style>',
),
g('body').addClass('compensate-for-scrollbar')),
(n=''),
g.each(o.buttons, function (t, e){
n +=o.btnTpl[e]||'';
}),
(e=g(
i.translate(i,
o.baseTpl
.replace('{{buttons}}', n)
.replace('{{arrows}}',
o.btnTpl.arrowLeft + o.btnTpl.arrowRight,
),
),
)
.attr('id', 'fancybox-container-' + i.id)
.addClass(o.baseClass)
.data('FancyBox', i)
.appendTo(o.parentEl)),
(i.$refs={ container: e }),
[
'bg',
'inner',
'infobar',
'toolbar',
'stage',
'caption',
'navigation',
].forEach(function (t){
i.$refs[t]=e.find('.fancybox-' + t);
}),
i.trigger('onInit'),
i.activate(),
i.jumpTo(i.currIndex));
},
translate: function (t, e){
var n=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;
return e.replace(/\{\{(\w+)\}\}/g, function (t, e){
return n[e]===m ? t:n[e];
});
},
addContent: function (t){
var e,
c=this,
n=g.makeArray(t);
(g.each(n, function (t, e){
var n,
i,
o,
s,
r,
a={},
l={};
(g.isPlainObject(e)
? (l=(a=e).opts||e)
: 'object'===g.type(e)&&g(e).length
? ((l=(n=g(e)).data()||{}),
((l=g.extend(!0, {}, l, l.options)).$orig=n),
(a.src=c.opts.src||l.src||n.attr('href')),
a.type||a.src||((a.type='inline'), (a.src=e)))
: (a={ type: 'html', src: e + '' }),
(a.opts=g.extend(!0, {}, c.opts, l)),
g.isArray(l.buttons)&&(a.opts.buttons=l.buttons),
g.fancybox.isMobile &&
a.opts.mobile &&
(a.opts=p(a.opts, a.opts.mobile)),
(i=a.type||a.opts.type),
(s=a.src||''),
!i &&
s &&
((o=s.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))
? ((i='video'),
a.opts.video.format ||
(a.opts.video.format =
'video/' + ('ogv'===o[1] ? 'ogg':o[1])))
: s.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i,
)
? (i='image')
: s.match(/\.(pdf)((\?|#).*)?$/i)
? ((i='iframe'),
(a=g.extend(!0, a, {
contentType: 'pdf',
opts: { iframe: { preload: !1 }},
})))
: '#'===s.charAt(0)&&(i='inline')),
i ? (a.type=i):c.trigger('objectNeedsType', a),
a.contentType ||
(a.contentType =
-1 < g.inArray(a.type, ['html', 'inline', 'ajax'])
? 'html'
: a.type),
(a.index=c.group.length),
'auto'==a.opts.smallBtn &&
(a.opts.smallBtn =
-1 < g.inArray(a.type, ['html', 'inline', 'ajax'])),
'auto'===a.opts.toolbar &&
(a.opts.toolbar = !a.opts.smallBtn),
(a.$thumb=a.opts.$thumb||null),
a.opts.$trigger &&
a.index===c.opts.index &&
((a.$thumb=a.opts.$trigger.find('img:first')),
a.$thumb.length&&(a.opts.$orig=a.opts.$trigger)),
(a.$thumb&&a.$thumb.length) ||
!a.opts.$orig ||
(a.$thumb=a.opts.$orig.find('img:first')),
a.$thumb&&!a.$thumb.length&&(a.$thumb=null),
(a.thumb =
a.opts.thumb||(a.$thumb ? a.$thumb[0].src:null)),
'function'===g.type(a.opts.caption) &&
(a.opts.caption=a.opts.caption.apply(e, [c, a])),
'function'===g.type(c.opts.caption) &&
(a.opts.caption=c.opts.caption.apply(e, [c, a])),
a.opts.caption instanceof g ||
(a.opts.caption =
a.opts.caption===m ? '':a.opts.caption + ''),
'ajax'===a.type &&
1 < (r=s.split(/\s+/, 2)).length &&
((a.src=r.shift()), (a.opts.filter=r.shift())),
a.opts.modal &&
(a.opts=g.extend(!0, a.opts, {
trapFocus: !0,
infobar: 0,
toolbar: 0,
smallBtn: 0,
keyboard: 0,
slideShow: 0,
fullScreen: 0,
thumbs: 0,
touch: 0,
clickContent: !1,
clickSlide: !1,
clickOutside: !1,
dblclickContent: !1,
dblclickSlide: !1,
dblclickOutside: !1,
})),
c.group.push(a));
}),
Object.keys(c.slides).length &&
(c.updateControls(),
(e=c.Thumbs)&&e.isActive&&(e.create(), e.focus())));
},
addEvents: function (){
var i=this;
(i.removeEvents(),
i.$refs.container
.on('click.fb-close', '[data-fancybox-close]', function (t){
(t.stopPropagation(), t.preventDefault(), i.close(t));
})
.on('touchstart.fb-prev click.fb-prev',
'[data-fancybox-prev]',
function (t){
(t.stopPropagation(), t.preventDefault(), i.previous());
},
)
.on('touchstart.fb-next click.fb-next',
'[data-fancybox-next]',
function (t){
(t.stopPropagation(), t.preventDefault(), i.next());
},
)
.on('click.fb', '[data-fancybox-zoom]', function (t){
i[i.isScaledDown() ? 'scaleToActual':'scaleToFit']();
}),
s.on('orientationchange.fb resize.fb', function (t){
t&&t.originalEvent&&'resize'===t.originalEvent.type
? (i.requestId&&d(i.requestId),
(i.requestId=f(function (){
i.update(t);
})))
: (i.current &&
'iframe'===i.current.type &&
i.$refs.stage.hide(),
setTimeout(
function (){
(i.$refs.stage.show(), i.update(t));
},
g.fancybox.isMobile ? 600:250,
));
}),
r.on('keydown.fb', function (t){
var e=(g.fancybox ? g.fancybox.getInstance():null)
.current,
n=t.keyCode||t.which;
if(9==n) return void (e.opts.trapFocus&&i.focus(t));
if(!e.opts.keyboard ||
t.ctrlKey ||
t.altKey ||
t.shiftKey ||
g(t.target).is('input,textarea,video,audio,select')
)
return;
if(8===n||27===n)
return (t.preventDefault(), void i.close(t));
if(37===n||38===n)
return (t.preventDefault(), void i.previous());
if(39===n||40===n)
return (t.preventDefault(), void i.next());
i.trigger('afterKeydown', t, n);
}),
i.group[i.currIndex].opts.idleTime &&
((i.idleSecondsCounter=0),
r.on('mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle',
function (t){
((i.idleSecondsCounter=0),
i.isIdle&&i.showControls(),
(i.isIdle = !1));
},
),
(i.idleInterval=l.setInterval(function (){
(i.idleSecondsCounter++,
i.idleSecondsCounter >=
i.group[i.currIndex].opts.idleTime &&
!i.isDragging &&
((i.isIdle = !0),
(i.idleSecondsCounter=0),
i.hideControls()));
}, 1e3))));
},
removeEvents: function (){
(s.off('orientationchange.fb resize.fb'),
r.off('keydown.fb .fb-idle'),
this.$refs.container.off('.fb-close .fb-prev .fb-next'),
this.idleInterval &&
(l.clearInterval(this.idleInterval),
(this.idleInterval=null)));
},
previous: function (t){
return this.jumpTo(this.currPos - 1, t);
},
next: function (t){
return this.jumpTo(this.currPos + 1, t);
},
jumpTo: function (t, i){
var e,
n,
o,
s,
r,
a,
l,
c,
d,
u=this,
f=u.group.length;
if(u.isDragging||u.isClosing||(u.isAnimating&&u.firstRun))
return;
if(((t=parseInt(t, 10)),
!(o=u.current ? u.current.opts.loop:u.opts.loop) &&
(t < 0||f <=t))
)
return !1;
if(((e=u.firstRun = !Object.keys(u.slides).length),
(r=u.current),
(u.prevIndex=u.currIndex),
(u.prevPos=u.currPos),
(s=u.createSlide(t)),
1 < f &&
((o||s.index < f - 1)&&u.createSlide(t + 1),
(o||0 < s.index)&&u.createSlide(t - 1)),
(u.current=s),
(u.currIndex=s.index),
(u.currPos=s.pos),
u.trigger('beforeShow', e),
u.updateControls(),
(s.forcedDuration=m),
g.isNumeric(i)
? (s.forcedDuration=i)
: (i =
s.opts[e ? 'animationDuration':'transitionDuration']),
(i=parseInt(i, 10)),
(n=u.isMoved(s)),
s.$slide.addClass('fancybox-slide--current'),
e)
)
return (
s.opts.animationEffect &&
i &&
u.$refs.container.css('transition-duration', i + 'ms'),
u.$refs.container
.addClass('fancybox-is-open')
.trigger('focus'),
u.loadSlide(s),
void u.preload('image')
);
((a=g.fancybox.getTranslate(r.$slide)),
(l=g.fancybox.getTranslate(u.$refs.stage)),
g.each(u.slides, function (t, e){
g.fancybox.stop(e.$slide, !0);
}),
r.pos!==s.pos&&(r.isComplete = !1),
r.$slide.removeClass('fancybox-slide--complete fancybox-slide--current',
),
n
? ((d=a.left - (r.pos * a.width + r.pos * r.opts.gutter)),
g.each(u.slides, function (t, e){
e.$slide
.removeClass('fancybox-animated')
.removeClass(function (t, e){
return (e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(' ',
);
});
var n=e.pos * a.width + e.pos * e.opts.gutter;
(g.fancybox.setTranslate(e.$slide, {
top: 0,
left: n - l.left + d,
}),
e.pos!==s.pos &&
e.$slide.addClass('fancybox-slide--' +
(e.pos > s.pos ? 'next':'previous'),
),
h(e.$slide),
g.fancybox.animate(e.$slide,
{
top: 0,
left:
(e.pos - s.pos) * a.width +
(e.pos - s.pos) * e.opts.gutter,
},
i,
function (){
(e.$slide
.css({ transform: '', opacity: '' })
.removeClass('fancybox-slide--next fancybox-slide--previous',
),
e.pos===u.currPos&&u.complete());
},
));
}))
: i &&
s.opts.transitionEffect &&
((c =
'fancybox-animated fancybox-fx-' +
s.opts.transitionEffect),
r.$slide.addClass('fancybox-slide--' +
(r.pos > s.pos ? 'next':'previous'),
),
g.fancybox.animate(r.$slide,
c,
i,
function (){
r.$slide
.removeClass(c)
.removeClass('fancybox-slide--next fancybox-slide--previous',
);
},
!1,
)),
s.isLoaded ? u.revealContent(s):u.loadSlide(s),
u.preload('image'));
},
createSlide: function (t){
var e,
n,
i=this;
return (
(n=(n=t % i.group.length) < 0 ? i.group.length + n:n),
!i.slides[t] &&
i.group[n] &&
((e=g('<div class="fancybox-slide"></div>').appendTo(i.$refs.stage,
)),
(i.slides[t]=g.extend(!0, {}, i.group[n], {
pos: t,
$slide: e,
isLoaded: !1,
})),
i.updateSlide(i.slides[t])),
i.slides[t]
);
},
scaleToActual: function (t, e, n){
var i,
o,
s,
r,
a,
l=this,
c=l.current,
d=c.$content,
u=g.fancybox.getTranslate(c.$slide).width,
f=g.fancybox.getTranslate(c.$slide).height,
h=c.width,
p=c.height;
if(l.isAnimating ||
l.isMoved() ||
!d ||
'image'!=c.type ||
!c.isLoaded ||
c.hasError
)
return;
((l.isAnimating = !0),
g.fancybox.stop(d),
(t=t===m ? 0.5 * u:t),
(e=e===m ? 0.5 * f:e),
((i=g.fancybox.getTranslate(d)).top -=
g.fancybox.getTranslate(c.$slide).top),
(i.left -=g.fancybox.getTranslate(c.$slide).left),
(r=h / i.width),
(a=p / i.height),
(o=0.5 * u - 0.5 * h),
(s=0.5 * f - 0.5 * p),
u < h &&
(0 < (o=i.left * r - (t * r - t))&&(o=0),
o < u - h&&(o=u - h)),
f < p &&
(0 < (s=i.top * a - (e * a - e))&&(s=0),
s < f - p&&(s=f - p)),
l.updateCursor(h, p),
g.fancybox.animate(d,
{ top: s, left: o, scaleX: r, scaleY: a },
n||366,
function (){
l.isAnimating = !1;
},
),
l.SlideShow&&l.SlideShow.isActive&&l.SlideShow.stop());
},
scaleToFit: function (t){
var e,
n=this,
i=n.current,
o=i.$content;
if(n.isAnimating ||
n.isMoved() ||
!o ||
'image'!=i.type ||
!i.isLoaded ||
i.hasError
)
return;
((n.isAnimating = !0),
g.fancybox.stop(o),
(e=n.getFitPos(i)),
n.updateCursor(e.width, e.height),
g.fancybox.animate(o,
{
top: e.top,
left: e.left,
scaleX: e.width / o.width(),
scaleY: e.height / o.height(),
},
t||366,
function (){
n.isAnimating = !1;
},
));
},
getFitPos: function (t){
var e,
n,
i,
o,
s=t.$content,
r=t.$slide,
a=t.width||t.opts.width,
l=t.height||t.opts.height,
c={};
if(!t.isLoaded||!s||!s.length) return !1;
return (
(e=g.fancybox.getTranslate(this.$refs.stage).width),
(n=g.fancybox.getTranslate(this.$refs.stage).height),
(e -=
parseFloat(r.css('paddingLeft')) +
parseFloat(r.css('paddingRight')) +
parseFloat(s.css('marginLeft')) +
parseFloat(s.css('marginRight'))),
(n -=
parseFloat(r.css('paddingTop')) +
parseFloat(r.css('paddingBottom')) +
parseFloat(s.css('marginTop')) +
parseFloat(s.css('marginBottom'))),
(a&&l)||((a=e), (l=n)),
e - 0.5 < (a *=i = Math.min(1, e / a, n / l))&&(a=e),
n - 0.5 < (l *=i)&&(l=n),
'image'===t.type
? ((c.top =
Math.floor(0.5 * (n - l)) +
parseFloat(r.css('paddingTop'))),
(c.left =
Math.floor(0.5 * (e - a)) +
parseFloat(r.css('paddingLeft'))))
: 'video'===t.contentType &&
(a /
(o =
t.opts.width&&t.opts.height
? a / l
: t.opts.ratio||16 / 9) <
l
? (l=a / o)
: l * o < a&&(a=l * o)),
(c.width=a),
(c.height=l),
c
);
},
update: function (n){
var i=this;
g.each(i.slides, function (t, e){
i.updateSlide(e, n);
});
},
updateSlide: function (t, e){
var n=this,
i=t&&t.$content,
o=t.width||t.opts.width,
s=t.height||t.opts.height,
r=t.$slide;
(n.adjustCaption(t),
i &&
(o||s || 'video'===t.contentType) &&
!t.hasError &&
(g.fancybox.stop(i),
g.fancybox.setTranslate(i, n.getFitPos(t)),
t.pos===n.currPos &&
((n.isAnimating = !1), n.updateCursor())),
n.adjustLayout(t),
r.length &&
(r.trigger('refresh'),
t.pos===n.currPos &&
n.$refs.toolbar
.add(n.$refs.navigation.find('.fancybox-button--arrow_right',
),
)
.toggleClass('compensate-for-scrollbar',
r.get(0).scrollHeight > r.get(0).clientHeight,
)),
n.trigger('onUpdate', t, e));
},
centerSlide: function (t){
var e=this,
n=e.current,
i=n.$slide;
if(e.isClosing||!n) return;
(i.siblings().css({ transform: '', opacity: '' }),
i
.parent()
.children()
.removeClass('fancybox-slide--previous fancybox-slide--next'),
g.fancybox.animate(i,
{ top: 0, left: 0, opacity: 1 },
t===m ? 0:t,
function (){
(i.css({ transform: '', opacity: '' }),
n.isComplete||e.complete());
},
!1,
));
},
isMoved: function (t){
var e,
n,
i=t||this.current;
if(!i) return !1;
return (
(n=g.fancybox.getTranslate(this.$refs.stage)),
(e=g.fancybox.getTranslate(i.$slide)),
!i.$slide.hasClass('fancybox-animated') &&
(0.5 < Math.abs(e.top - n.top) ||
0.5 < Math.abs(e.left - n.left))
);
},
updateCursor: function (t, e){
var n,
i,
o=this,
s=o.current,
r=o.$refs.container;
if(!s||o.isClosing||!o.Guestures) return;
(r.removeClass('fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan',
),
(i = !!(n=o.canPan(t, e))||o.isZoomable()),
r.toggleClass('fancybox-is-zoomable', i),
g('[data-fancybox-zoom]').prop('disabled', !i),
n
? r.addClass('fancybox-can-pan')
: i &&
('zoom'===s.opts.clickContent ||
(g.isFunction(s.opts.clickContent) &&
'zoom'==s.opts.clickContent(s)))
? r.addClass('fancybox-can-zoomIn')
: s.opts.touch &&
(s.opts.touch.vertical||1 < o.group.length) &&
'video'!==s.contentType &&
r.addClass('fancybox-can-swipe'));
},
isZoomable: function (){
var t,
e=this.current;
if(e&&!this.isClosing&&'image'===e.type&&!e.hasError){
if(!e.isLoaded) return !0;
if((t=this.getFitPos(e)) &&
(e.width > t.width||e.height > t.height)
)
return !0;
}
return !1;
},
isScaledDown: function (t, e){
var n = !1,
i=this.current,
o=i.$content;
return (
t!==m&&e!==m
? (n=t < i.width&&e < i.height)
: o &&
(n =
(n=g.fancybox.getTranslate(o)).width < i.width &&
n.height < i.height),
n
);
},
canPan: function (t, e){
var n=this.current,
i=null,
o = !1;
return (
'image'===n.type &&
(n.isComplete||(t&&e)) &&
!n.hasError &&
((o=this.getFitPos(n)),
t!==m&&e!==m
? (i={ width: t, height: e })
: n.isComplete&&(i=g.fancybox.getTranslate(n.$content)),
i &&
o &&
(o =
1.5 < Math.abs(i.width - o.width) ||
1.5 < Math.abs(i.height - o.height))),
o
);
},
loadSlide: function (n){
var t,
e,
i,
o=this;
if(n.isLoading||n.isLoaded) return;
if(!(n.isLoading = !0)===o.trigger('beforeLoad', n))
return (n.isLoading = !1);
switch (
((t=n.type),
(e=n.$slide)
.off('refresh')
.trigger('onReset')
.addClass(n.opts.slideClass),
t)
){
case 'image':
o.setImage(n);
break;
case 'iframe':
o.setIframe(n);
break;
case 'html':
o.setContent(n, n.src||n.content);
break;
case 'video':
o.setContent(n,
n.opts.video.tpl
.replace(/\{\{src\}\}/gi, n.src)
.replace('{{format}}',
n.opts.videoFormat||n.opts.video.format||'',
)
.replace('{{poster}}', n.thumb||''),
);
break;
case 'inline':
g(n.src).length ? o.setContent(n, g(n.src)):o.setError(n);
break;
case 'ajax':
(o.showLoading(n),
(i=g.ajax(g.extend({}, n.opts.ajax.settings, {
url: n.src,
success: function (t, e){
'success'===e&&o.setContent(n, t);
},
error: function (t, e){
t&&'abort'!==e&&o.setError(n);
},
}),
)),
e.one('onReset', function (){
i.abort();
}));
break;
default:
o.setError(n);
}
return !0;
},
setImage: function (e){
var t,
n=this;
(setTimeout(function (){
var t=e.$image;
n.isClosing ||
!e.isLoading ||
(t&&t.length&&t[0].complete) ||
e.hasError ||
n.showLoading(e);
}, 50),
n.checkSrcset(e),
(e.$content=g('<div class="fancybox-content"></div>')
.addClass('fancybox-is-hidden')
.appendTo(e.$slide.addClass('fancybox-slide--image'))),
!1!==e.opts.preload &&
e.opts.width &&
e.opts.height &&
e.thumb &&
((e.width=e.opts.width),
(e.height=e.opts.height),
((t=c.createElement('img')).onerror=function (){
(g(this).remove(), (e.$ghost=null));
}),
(t.onload=function (){
n.afterLoad(e);
}),
(e.$ghost=g(t)
.addClass('fancybox-image')
.appendTo(e.$content)
.attr('src', e.thumb))),
n.setBigImage(e));
},
checkSrcset: function (t){
var e,
n,
i,
o,
s=t.opts.srcset||t.opts.image.srcset;
if(s){
((i=l.devicePixelRatio||1),
(o=l.innerWidth * i),
(n=s.split(',').map(function (t){
var i={};
return (
t
.trim()
.split(/\s+/)
.forEach(function (t, e){
var n=parseInt(t.substring(0, t.length - 1), 10);
if(0===e) return (i.url=t);
n&&((i.value=n), (i.postfix=t[t.length - 1]));
}),
i
);
})).sort(function (t, e){
return t.value - e.value;
}));
for (var r=0; r < n.length; r++){
var a=n[r];
if(('w'===a.postfix&&a.value >=o) ||
('x'===a.postfix&&a.value >=i)
){
e=a;
break;
}}
(!e&&n.length&&(e=n[n.length - 1]),
e &&
((t.src=e.url),
t.width &&
t.height &&
'w'==e.postfix &&
((t.height=(t.width / t.height) * e.value),
(t.width=e.value)),
(t.opts.srcset=s)));
}},
setBigImage: function (e){
var n=this,
t=c.createElement('img'),
i=g(t);
((e.$image=i
.one('error', function (){
n.setError(e);
})
.one('load', function (){
var t;
if((e.$ghost ||
(n.resolveImageSlideSize(e,
this.naturalWidth,
this.naturalHeight,
),
n.afterLoad(e)),
n.isClosing)
)
return;
(e.opts.srcset &&
(((t=e.opts.sizes)&&'auto'!==t) ||
(t =
(1 < e.width / e.height&&1 < s.width() / s.height()
? '100'
: Math.round((e.width / e.height) * 100)) + 'vw'),
i.attr('sizes', t).attr('srcset', e.opts.srcset)),
e.$ghost &&
setTimeout(
function (){
e.$ghost&&!n.isClosing&&e.$ghost.hide();
},
Math.min(300, Math.max(1e3, e.height / 1600)),
),
n.hideLoading(e));
})
.addClass('fancybox-image')
.attr('src', e.src)
.appendTo(e.$content)),
(t.complete||'complete'==t.readyState) &&
i.naturalWidth &&
i.naturalHeight
? i.trigger('load')
: t.error&&i.trigger('error'));
},
resolveImageSlideSize: function (t, e, n){
var i=parseInt(t.opts.width, 10),
o=parseInt(t.opts.height, 10);
((t.width=e),
(t.height=n),
0 < i&&((t.width=i), (t.height=Math.floor((i * n) / e))),
0 < o&&((t.width=Math.floor((o * e) / n)), (t.height=o)));
},
setIframe: function (o){
var s,
e=this,
r=o.opts.iframe,
a=o.$slide;
((o.$content=g(
'<div class="fancybox-content' +
(r.preload ? ' fancybox-is-hidden':'') +
'"></div>',
)
.css(r.css)
.appendTo(a)),
a.addClass('fancybox-slide--' + o.contentType),
(o.$iframe=s =
g(r.tpl.replace(/\{rnd\}/g, new Date().getTime()))
.attr(r.attr)
.appendTo(o.$content)),
r.preload
? (e.showLoading(o),
s.on('load.fb error.fb', function (t){
((this.isReady=1),
o.$slide.trigger('refresh'),
e.afterLoad(o));
}),
a.on('refresh.fb', function (){
var t,
e=o.$content,
n=r.css.width,
i=r.css.height;
if(1!==s[0].isReady) return;
try {
t=s.contents().find('body');
} catch (t){}
(t &&
t.length &&
t.children().length &&
(a.css('overflow', 'visible'),
e.css({
width: '100%',
'max-width': '100%',
height: '9999px',
}),
n===m &&
(n=Math.ceil(Math.max(t[0].clientWidth, t.outerWidth(!0)),
)),
e.css('width', n||'').css('max-width', ''),
i===m &&
(i=Math.ceil(Math.max(t[0].clientHeight, t.outerHeight(!0)),
)),
e.css('height', i||''),
a.css('overflow', 'auto')),
e.removeClass('fancybox-is-hidden'));
}))
: e.afterLoad(o),
s.attr('src', o.src),
a.one('onReset', function (){
try {
g(this)
.find('iframe')
.hide()
.unbind()
.attr('src', '//about:blank');
} catch (t){}
(g(this).off('refresh.fb').empty(),
(o.isLoaded = !1),
(o.isRevealed = !1));
}));
},
setContent: function (t, e){
var n;
if(this.isClosing) return;
(this.hideLoading(t),
t.$content&&g.fancybox.stop(t.$content),
t.$slide.empty(),
(n=e) &&
n.hasOwnProperty &&
n instanceof g &&
e.parent().length
? ((e.hasClass('fancybox-content') ||
e.parent().hasClass('fancybox-content')) &&
e.parents('.fancybox-slide').trigger('onReset'),
(t.$placeholder=g('<div>').hide().insertAfter(e)),
e.css('display', 'inline-block'))
: t.hasError ||
('string'===g.type(e) &&
(e=g('<div>').append(g.trim(e)).contents()),
t.opts.filter &&
(e=g('<div>').html(e).find(t.opts.filter))),
t.$slide.one('onReset', function (){
(g(this).find('video,audio').trigger('pause'),
t.$placeholder &&
(t.$placeholder
.after(e.removeClass('fancybox-content').hide())
.remove(),
(t.$placeholder=null)),
t.$smallBtn&&(t.$smallBtn.remove(), (t.$smallBtn=null)),
t.hasError ||
(g(this).empty(),
(t.isLoaded = !1),
(t.isRevealed = !1)));
}),
g(e).appendTo(t.$slide),
g(e).is('video,audio') &&
(g(e).addClass('fancybox-video'),
g(e).wrap('<div></div>'),
(t.contentType='video'),
(t.opts.width=t.opts.width||g(e).attr('width')),
(t.opts.height=t.opts.height||g(e).attr('height'))),
(t.$content=t.$slide
.children()
.filter('div,form,main,video,audio,article,.fancybox-content')
.first()),
t.$content.siblings().hide(),
t.$content.length ||
(t.$content=t.$slide
.wrapInner('<div></div>')
.children()
.first()),
t.$content.addClass('fancybox-content'),
t.$slide.addClass('fancybox-slide--' + t.contentType),
this.afterLoad(t));
},
setError: function (t){
((t.hasError = !0),
t.$slide
.trigger('onReset')
.removeClass('fancybox-slide--' + t.contentType)
.addClass('fancybox-slide--error'),
(t.contentType='html'),
this.setContent(t, this.translate(t, t.opts.errorTpl)),
t.pos===this.currPos&&(this.isAnimating = !1));
},
showLoading: function (t){
(t=t||this.current) &&
!t.$spinner &&
(t.$spinner=g(this.translate(this, this.opts.spinnerTpl))
.appendTo(t.$slide)
.hide()
.fadeIn('fast'));
},
hideLoading: function (t){
(t=t||this.current) &&
t.$spinner &&
(t.$spinner.stop().remove(), delete t.$spinner);
},
afterLoad: function (t){
var e=this;
if(e.isClosing) return;
((t.isLoading = !1),
(t.isLoaded = !0),
e.trigger('afterLoad', t),
e.hideLoading(t),
!t.opts.smallBtn ||
(t.$smallBtn&&t.$smallBtn.length) ||
(t.$smallBtn=g(
e.translate(t, t.opts.btnTpl.smallBtn),
).appendTo(t.$content)),
t.opts.protect &&
t.$content &&
!t.hasError &&
(t.$content.on('contextmenu.fb', function (t){
return (2==t.button&&t.preventDefault(), !0);
}),
'image'===t.type &&
g('<div class="fancybox-spaceball"></div>').appendTo(t.$content,
)),
e.adjustCaption(t),
e.adjustLayout(t),
t.pos===e.currPos&&e.updateCursor(),
e.revealContent(t));
},
adjustCaption: function (t){
var e,
n=this,
i=t||n.current,
o=i.opts.caption,
s=i.opts.preventCaptionOverlap,
r=n.$refs.caption,
a = !1;
(r.toggleClass('fancybox-caption--separate', s),
s &&
o &&
o.length &&
(i.pos!==n.currPos
? ((e=r.clone().appendTo(r.parent()))
.children()
.eq(0)
.empty()
.html(o),
(a=e.outerHeight(!0)),
e.empty().remove())
: n.$caption&&(a=n.$caption.outerHeight(!0)),
i.$slide.css('padding-bottom', a||'')));
},
adjustLayout: function (t){
var e,
n,
i,
o,
s=t||this.current;
s.isLoaded &&
!0!==s.opts.disableLayoutFix &&
(s.$content.css('margin-bottom', ''),
s.$content.outerHeight() > s.$slide.height() + 0.5 &&
((i=s.$slide[0].style['padding-bottom']),
(o=s.$slide.css('padding-bottom')),
0 < parseFloat(o) &&
((e=s.$slide[0].scrollHeight),
s.$slide.css('padding-bottom', 0),
Math.abs(e - s.$slide[0].scrollHeight) < 1&&(n=o),
s.$slide.css('padding-bottom', i))),
s.$content.css('margin-bottom', n));
},
revealContent: function (t){
var e,
n,
i,
o,
s=this,
r=t.$slide,
a = !1,
l = !1,
c=s.isMoved(t),
d=t.isRevealed;
if(((t.isRevealed = !0),
(e =
t.opts[s.firstRun ? 'animationEffect':'transitionEffect']),
(i =
t.opts[
s.firstRun ? 'animationDuration':'transitionDuration'
]),
(i=parseInt(
t.forcedDuration===m ? i:t.forcedDuration,
10,
)),
(!c&&t.pos===s.currPos&&i)||(e = !1),
'zoom'===e &&
(t.pos===s.currPos &&
i &&
'image'===t.type &&
!t.hasError &&
(l=s.getThumbPos(t))
? (a=s.getFitPos(t))
: (e='fade')),
'zoom'===e)
)
return (
(s.isAnimating = !0),
(a.scaleX=a.width / l.width),
(a.scaleY=a.height / l.height),
'auto'==(o=t.opts.zoomOpacity) &&
(o =
0.1 < Math.abs(t.width / t.height - l.width / l.height)),
o&&((l.opacity=0.1), (a.opacity=1)),
g.fancybox.setTranslate(t.$content.removeClass('fancybox-is-hidden'),
l,
),
h(t.$content),
void g.fancybox.animate(t.$content, a, i, function (){
((s.isAnimating = !1), s.complete());
})
);
if((s.updateSlide(t), !e))
return (
t.$content.removeClass('fancybox-is-hidden'),
d ||
!c ||
'image'!==t.type ||
t.hasError ||
t.$content.hide().fadeIn('fast'),
void (t.pos===s.currPos&&s.complete())
);
(g.fancybox.stop(r),
(n =
'fancybox-slide--' +
(t.pos >=s.prevPos ? 'next':'previous') +
' fancybox-animated fancybox-fx-' +
e),
r.addClass(n).removeClass('fancybox-slide--current'),
t.$content.removeClass('fancybox-is-hidden'),
h(r),
'image'!==t.type&&t.$content.hide().show(0),
g.fancybox.animate(r,
'fancybox-slide--current',
i,
function (){
(r.removeClass(n).css({ transform: '', opacity: '' }),
t.pos===s.currPos&&s.complete());
},
!0,
));
},
getThumbPos: function (t){
var e,
n,
i,
o,
s,
r,
a=t.$thumb;
if(!a ||
!(function (t){
var e, n;
if(!t||t.ownerDocument!==c) return !1;
return (
g('.fancybox-container').css('pointer-events', 'none'),
(e={
x: t.getBoundingClientRect().left + t.offsetWidth / 2,
y: t.getBoundingClientRect().top + t.offsetHeight / 2,
}),
(n=c.elementFromPoint(e.x, e.y)===t),
g('.fancybox-container').css('pointer-events', ''),
n
);
})(a[0])
)
return !1;
return (
(n=g.fancybox.getTranslate(a)),
(i=parseFloat(a.css('border-top-width')||0)),
(o=parseFloat(a.css('border-right-width')||0)),
(s=parseFloat(a.css('border-bottom-width')||0)),
(r=parseFloat(a.css('border-left-width')||0)),
(e={
top: n.top + i,
left: n.left + r,
width: n.width - o - r,
height: n.height - i - s,
scaleX: 1,
scaleY: 1,
}),
0 < n.width&&0 < n.height&&e
);
},
complete: function (){
var t,
n=this,
e=n.current,
i={};
if(n.isMoved()||!e.isLoaded) return;
(e.isComplete ||
((e.isComplete = !0),
e.$slide.siblings().trigger('onReset'),
n.preload('inline'),
h(e.$slide),
e.$slide.addClass('fancybox-slide--complete'),
g.each(n.slides, function (t, e){
e.pos >=n.currPos - 1&&e.pos <=n.currPos + 1
? (i[e.pos]=e)
: e&&(g.fancybox.stop(e.$slide), e.$slide.off().remove());
}),
(n.slides=i)),
(n.isAnimating = !1),
n.updateCursor(),
n.trigger('afterShow'),
e.opts.video.autoStart &&
e.$slide
.find('video,audio')
.filter(':visible:first')
.trigger('play')
.one('ended', function (){
(Document.exitFullscreen
? Document.exitFullscreen()
: this.webkitExitFullscreen &&
this.webkitExitFullscreen(),
n.next());
}),
e.opts.autoFocus &&
'html'===e.contentType &&
((t=e.$content.find('input[autofocus]:enabled:visible:first',
)).length
? t.trigger('focus')
: n.focus(null, !0)),
e.$slide.scrollTop(0).scrollLeft(0));
},
preload: function (t){
var e,
n,
i=this;
if(i.group.length < 2) return;
((n=i.slides[i.currPos + 1]),
(e=i.slides[i.currPos - 1])&&e.type===t&&i.loadSlide(e),
n&&n.type===t&&i.loadSlide(n));
},
focus: function (t, e){
var n,
i,
o=this,
s=[
'a[href]',
'area[href]',
'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',
'select:not([disabled]):not([aria-hidden])',
'textarea:not([disabled]):not([aria-hidden])',
'button:not([disabled]):not([aria-hidden])',
'iframe',
'object',
'embed',
'video',
'audio',
'[contenteditable]',
'[tabindex]:not([tabindex^="-"])',
].join(',');
if(o.isClosing) return;
(n=(n =
!t&&o.current&&o.current.isComplete
? o.current.$slide.find('*:visible' + (e ? ':not(.fancybox-close-small)':''),
)
: o.$refs.container.find('*:visible'))
.filter(s)
.filter(function (){
return (
'hidden'!==g(this).css('visibility') &&
!g(this).hasClass('disabled')
);
})).length
? ((i=n.index(c.activeElement)),
t&&t.shiftKey
? (i < 0||0==i) &&
(t.preventDefault(), n.eq(n.length - 1).trigger('focus'))
: (i < 0||i==n.length - 1) &&
(t&&t.preventDefault(), n.eq(0).trigger('focus')))
: o.$refs.container.trigger('focus');
},
activate: function (){
var e=this;
(g('.fancybox-container').each(function (){
var t=g(this).data('FancyBox');
t &&
t.id!==e.id &&
!t.isClosing &&
(t.trigger('onDeactivate'),
t.removeEvents(),
(t.isVisible = !1));
}),
(e.isVisible = !0),
(e.current||e.isIdle)&&(e.update(), e.updateControls()),
e.trigger('onActivate'),
e.addEvents());
},
close: function (t, e){
var n,
i,
o,
s,
r,
a,
l,
c=this,
d=c.current,
u=function (){
c.cleanUp(t);
};
if(c.isClosing) return !1;
if(!(c.isClosing = !0)===c.trigger('beforeClose', t))
return (
(c.isClosing = !1),
f(function (){
c.update();
}),
!1
);
if((c.removeEvents(),
(o=d.$content),
(n=d.opts.animationEffect),
(i=g.isNumeric(e) ? e:n ? d.opts.animationDuration:0),
d.$slide.removeClass('fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated',
),
!0!==t ? g.fancybox.stop(d.$slide):(n = !1),
d.$slide.siblings().trigger('onReset').remove(),
i &&
c.$refs.container
.removeClass('fancybox-is-open')
.addClass('fancybox-is-closing')
.css('transition-duration', i + 'ms'),
c.hideLoading(d),
c.hideControls(!0),
c.updateCursor(),
'zoom'!==n ||
(o &&
i &&
'image'===d.type &&
!c.isMoved() &&
!d.hasError &&
(l=c.getThumbPos(d))) ||
(n='fade'),
'zoom'===n)
)
return (
g.fancybox.stop(o),
(a={
top: (s=g.fancybox.getTranslate(o)).top,
left: s.left,
scaleX: s.width / l.width,
scaleY: s.height / l.height,
width: l.width,
height: l.height,
}),
'auto'==(r=d.opts.zoomOpacity) &&
(r =
0.1 < Math.abs(d.width / d.height - l.width / l.height)),
r&&(l.opacity=0),
g.fancybox.setTranslate(o, a),
h(o),
g.fancybox.animate(o, l, i, u),
!0
);
return (
n&&i
? g.fancybox.animate(d.$slide
.addClass('fancybox-slide--previous')
.removeClass('fancybox-slide--current'),
'fancybox-animated fancybox-fx-' + n,
i,
u,
)
: !0===t
? setTimeout(u, i)
: u(),
!0
);
},
cleanUp: function (t){
var e,
n,
i,
o=this,
s=o.current.opts.$orig;
(o.current.$slide.trigger('onReset'),
o.$refs.container.empty().remove(),
o.trigger('afterClose', t),
o.current.opts.backFocus &&
((s&&s.length&&s.is(':visible'))||(s=o.$trigger),
s &&
s.length &&
((n=l.scrollX),
(i=l.scrollY),
s.trigger('focus'),
g('html, body').scrollTop(i).scrollLeft(n))),
(o.current=null),
(e=g.fancybox.getInstance())
? e.activate()
: (g('body').removeClass('fancybox-active compensate-for-scrollbar',
),
g('#fancybox-style-noscroll').remove()));
},
trigger: function (t, e){
var n,
i=Array.prototype.slice.call(arguments, 1),
o=this,
s=e&&e.opts ? e:o.current;
if((s ? i.unshift(s):(s=o),
i.unshift(o),
g.isFunction(s.opts[t])&&(n=s.opts[t].apply(s, i)),
!1===n)
)
return n;
'afterClose'!==t&&o.$refs
? o.$refs.container.trigger(t + '.fb', i)
: r.trigger(t + '.fb', i);
},
updateControls: function (){
var t=this,
e=t.current,
n=e.index,
i=t.$refs.container,
o=t.$refs.caption,
s=e.opts.caption;
(e.$slide.trigger('refresh'),
s&&s.length
? (t.$caption=o).children().eq(0).html(s)
: (t.$caption=null),
t.hasHiddenControls||t.isIdle||t.showControls(),
i.find('[data-fancybox-count]').html(t.group.length),
i.find('[data-fancybox-index]').html(n + 1),
i
.find('[data-fancybox-prev]')
.prop('disabled', !e.opts.loop&&n <=0),
i
.find('[data-fancybox-next]')
.prop('disabled', !e.opts.loop&&n >=t.group.length - 1),
'image'===e.type
? i
.find('[data-fancybox-zoom]')
.show()
.end()
.find('[data-fancybox-download]')
.attr('href', e.opts.image.src||e.src)
.show()
: e.opts.toolbar &&
i
.find('[data-fancybox-download],[data-fancybox-zoom]')
.hide(),
g(c.activeElement).is(':hidden,[disabled]') &&
t.$refs.container.trigger('focus'));
},
hideControls: function (t){
var e=['infobar', 'toolbar', 'nav'];
((!t&&this.current.opts.preventCaptionOverlap) ||
e.push('caption'),
this.$refs.container.removeClass(e
.map(function (t){
return 'fancybox-show-' + t;
})
.join(' '),
),
(this.hasHiddenControls = !0));
},
showControls: function (){
var t=this,
e=t.current ? t.current.opts:t.opts,
n=t.$refs.container;
((t.hasHiddenControls = !1),
(t.idleSecondsCounter=0),
n
.toggleClass('fancybox-show-toolbar',
!(!e.toolbar||!e.buttons),
)
.toggleClass('fancybox-show-infobar',
!!(e.infobar&&1 < t.group.length),
)
.toggleClass('fancybox-show-caption', !!t.$caption)
.toggleClass('fancybox-show-nav',
!!(e.arrows&&1 < t.group.length),
)
.toggleClass('fancybox-is-modal', !!e.modal));
},
toggleControls: function (){
this.hasHiddenControls
? this.showControls()
: this.hideControls();
},
}),
(g.fancybox={
version: '3.5.7',
defaults: o,
getInstance: function (t){
var e=g(
'.fancybox-container:not(".fancybox-is-closing"):last',
).data('FancyBox'),
n=Array.prototype.slice.call(arguments, 1);
if(e instanceof v)
return (
'string'===g.type(t)
? e[t].apply(e, n)
: 'function'===g.type(t)&&t.apply(e, n),
e
);
return !1;
},
open: function (t, e, n){
return new v(t, e, n);
},
close: function (t){
var e=this.getInstance();
e&&(e.close(), !0===t&&this.close(t));
},
destroy: function (){
(this.close(!0), r.add('body').off('click.fb-start', '**'));
},
isMobile:
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent,
),
use3d:
((t=c.createElement('div')),
l.getComputedStyle &&
l.getComputedStyle(t) &&
l.getComputedStyle(t).getPropertyValue('transform') &&
!(c.documentMode&&c.documentMode < 11)),
getTranslate: function (t){
var e;
if(!t||!t.length) return !1;
return {
top: (e=t[0].getBoundingClientRect()).top||0,
left: e.left||0,
width: e.width,
height: e.height,
opacity: parseFloat(t.css('opacity')),
};},
setTranslate: function (t, e){
var n='',
i={};
if(!t||!e) return;
return (
(e.left===m&&e.top===m) ||
((n =
(e.left===m ? t.position().left:e.left) +
'px, ' +
(e.top===m ? t.position().top:e.top) +
'px'),
(n=this.use3d
? 'translate3d(' + n + ', 0px)'
: 'translate(' + n + ')')),
e.scaleX!==m&&e.scaleY!==m
? (n +=' scale(' + e.scaleX + ', ' + e.scaleY + ')')
: e.scaleX!==m&&(n +=' scaleX(' + e.scaleX + ')'),
n.length&&(i.transform=n),
e.opacity!==m&&(i.opacity=e.opacity),
e.width!==m&&(i.width=e.width),
e.height!==m&&(i.height=e.height),
t.css(i)
);
},
animate: function (e, n, i, o, s){
var r,
a=this;
(g.isFunction(i)&&((o=i), (i=null)),
a.stop(e),
(r=a.getTranslate(e)),
e.on(u, function (t){
if(t &&
t.originalEvent &&
(!e.is(t.originalEvent.target) ||
'z-index'==t.originalEvent.propertyName)
)
return;
(a.stop(e),
g.isNumeric(i)&&e.css('transition-duration', ''),
g.isPlainObject(n)
? n.scaleX!==m &&
n.scaleY!==m &&
a.setTranslate(e, {
top: n.top,
left: n.left,
width: r.width * n.scaleX,
height: r.height * n.scaleY,
scaleX: 1,
scaleY: 1,
})
: !0!==s&&e.removeClass(n),
g.isFunction(o)&&o(t));
}),
g.isNumeric(i)&&e.css('transition-duration', i + 'ms'),
g.isPlainObject(n)
? (n.scaleX!==m &&
n.scaleY!==m &&
(delete n.width,
delete n.height,
e.parent().hasClass('fancybox-slide--image') &&
e.parent().addClass('fancybox-is-scaling')),
g.fancybox.setTranslate(e, n))
: e.addClass(n),
e.data('timer',
setTimeout(function (){
e.trigger(u);
}, i + 33),
));
},
stop: function (t, e){
t &&
t.length &&
(clearTimeout(t.data('timer')),
e&&t.trigger(u),
t.off(u).css('transition-duration', ''),
t.parent().removeClass('fancybox-is-scaling'));
},
}),
(g.fn.fancybox=function (t){
var e;
return (
(e=(t=t||{}).selector||!1)
? g('body')
.off('click.fb-start', e)
.on('click.fb-start', e, { options: t }, b)
: this.off('click.fb-start').on('click.fb-start',
{ items: this, options: t },
b,
),
this
);
}),
r.on('click.fb-start', '[data-fancybox]', b),
r.on('click.fb-start', '[data-fancybox-trigger]', function (t){
g(
'[data-fancybox="' +
g(this).attr('data-fancybox-trigger') +
'"]',
)
.eq(g(this).attr('data-fancybox-index')||0)
.trigger('click.fb-start', { $trigger: g(this) });
}),
(e='.fancybox-button'),
(n='fancybox-focus'),
(i=null),
r.on('mousedown mouseup focus blur', e, function (t){
switch (t.type){
case 'mousedown':
i=g(this);
break;
case 'mouseup':
i=null;
break;
case 'focusin':
(g(e).removeClass(n),
g(this).is(i) ||
g(this).is('[disabled]') ||
g(this).addClass(n));
break;
case 'focusout':
g(e).removeClass(n);
}}));
})(window, document, jQuery),
(function (h){
'use strict';
var i={
youtube: {
matcher:
/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,
params: {
autoplay: 1,
autohide: 1,
fs: 1,
rel: 0,
hd: 1,
wmode: 'transparent',
enablejsapi: 1,
html5: 1,
},
paramPlace: 8,
type: 'iframe',
url: 'https://www.youtube-nocookie.com/embed/$4',
thumb: 'https://img.youtube.com/vi/$4/hqdefault.jpg',
},
vimeo: {
matcher: /^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,
params: {
autoplay: 1,
hd: 1,
show_title: 1,
show_byline: 1,
show_portrait: 0,
fullscreen: 1,
},
paramPlace: 3,
type: 'iframe',
url: '//player.vimeo.com/video/$2',
},
instagram: {
matcher:
/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,
type: 'image',
url: '//$1/p/$2/media/?size=l',
},
gmap_place: {
matcher:
/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,
type: 'iframe',
url: function (t){
return (
'//maps.google.' +
t[2] +
'/?ll=' +
(t[9]
? t[9] +
'&z=' +
Math.floor(t[10]) +
(t[12] ? t[12].replace(/^\//, '&'):'')
: t[12] + ''
).replace(/\?/, '&') +
'&output=' +
(t[12]&&0 < t[12].indexOf('layer=c')
? 'svembed'
: 'embed')
);
},
},
gmap_search: {
matcher:
/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,
type: 'iframe',
url: function (t){
return (
'//maps.google.' +
t[2] +
'/maps?q=' +
t[5].replace('query=', 'q=').replace('api=1', '') +
'&output=embed'
);
},
},
},
p=function (n, t, e){
if(!n) return;
return (
(e=e||''),
'object'===h.type(e)&&(e=h.param(e, !0)),
h.each(t, function (t, e){
n=n.replace('$' + t, e||'');
}),
e.length&&(n +=(0 < n.indexOf('?') ? '&':'?') + e),
n
);
};
h(document).on('objectNeedsType.fb', function (t, e, o){
var n,
s,
r,
a,
l,
c,
d,
u=o.src||'',
f = !1;
((n=h.extend(!0, {}, i, o.opts.media)),
h.each(n, function (t, e){
if(!(r=u.match(e.matcher))) return;
if(((f=e.type),
(d=t),
(c={}),
e.paramPlace&&r[e.paramPlace])
){
('?'==(l=r[e.paramPlace])[0]&&(l=l.substring(1)),
(l=l.split('&')));
for (var n=0; n < l.length; ++n){
var i=l[n].split('=', 2);
2==i.length &&
(c[i[0]]=decodeURIComponent(
i[1].replace(/\+/g, ' '),
));
}}
return (
(a=h.extend(!0, {}, e.params, o.opts[t], c)),
(u =
'function'===h.type(e.url)
? e.url.call(this, r, a, o)
: p(e.url, r, a)),
(s =
'function'===h.type(e.thumb)
? e.thumb.call(this, r, a, o)
: p(e.thumb, r)),
'youtube'===t
? (u=u.replace(/&t=((\d+)m)?(\d+)s/,
function (t, e, n, i){
return (
'&start=' +
((n ? 60 * parseInt(n, 10):0) + parseInt(i, 10))
);
},
))
: 'vimeo'===t&&(u=u.replace('&%23', '#')),
!1
);
}),
f
? (o.opts.thumb ||
(o.opts.$thumb&&o.opts.$thumb.length) ||
(o.opts.thumb=s),
'iframe'===f &&
(o.opts=h.extend(!0, o.opts, {
iframe: { preload: !1, attr: { scrolling: 'no' }},
})),
h.extend(o, {
type: f,
src: u,
origSrc: o.src,
contentSource: d,
contentType:
'image'===f
? 'image'
: 'gmap_place'==d||'gmap_search'==d
? 'map'
: 'video',
}))
: u&&(o.type=o.opts.defaultType));
});
var o={
youtube: {
src: 'https://www.youtube.com/iframe_api',
class: 'YT',
loading: !1,
loaded: !1,
},
vimeo: {
src: 'https://player.vimeo.com/api/player.js',
class: 'Vimeo',
loading: !1,
loaded: !1,
},
load: function (t){
var e,
n=this;
if(this[t].loaded)
return void setTimeout(function (){
n.done(t);
});
if(this[t].loading) return;
((this[t].loading = !0),
((e=document.createElement('script')).type =
'text/javascript'),
(e.src=this[t].src),
'youtube'===t
? (window.onYouTubeIframeAPIReady=function (){
((n[t].loaded = !0), n.done(t));
})
: (e.onload=function (){
((n[t].loaded = !0), n.done(t));
}),
document.body.appendChild(e));
},
done: function (t){
var e, n;
('youtube'===t&&delete window.onYouTubeIframeAPIReady,
(e=h.fancybox.getInstance()) &&
((n=e.current.$content.find('iframe')),
'youtube'===t&&void 0!==YT&&YT
? new YT.Player(n.attr('id'), {
events: {
onStateChange: function (t){
0==t.data&&e.next();
},
},
})
: 'vimeo'===t &&
void 0!==Vimeo &&
Vimeo &&
new Vimeo.Player(n).on('ended', function (){
e.next();
})));
},
};
h(document).on({
'afterShow.fb': function (t, e, n){
1 < e.group.length &&
('youtube'===n.contentSource ||
'vimeo'===n.contentSource) &&
o.load(n.contentSource);
},
});
})(jQuery),
(function (g, l, m){
'use strict';
var v =
g.requestAnimationFrame ||
g.webkitRequestAnimationFrame ||
g.mozRequestAnimationFrame ||
g.oRequestAnimationFrame ||
function (t){
return g.setTimeout(t, 1e3 / 60);
},
b =
g.cancelAnimationFrame ||
g.webkitCancelAnimationFrame ||
g.mozCancelAnimationFrame ||
g.oCancelAnimationFrame ||
function (t){
g.clearTimeout(t);
},
d=function (t){
var e=[];
for (var n in (t =
(t=t.originalEvent||t || g.e).touches&&t.touches.length
? t.touches
: t.changedTouches&&t.changedTouches.length
? t.changedTouches
: [t]))
t[n].pageX
? e.push({ x: t[n].pageX, y: t[n].pageY })
: t[n].clientX &&
e.push({ x: t[n].clientX, y: t[n].clientY });
return e;
},
y=function (t, e, n){
if(!e||!t) return 0;
if('x'===n) return t.x - e.x;
if('y'===n) return t.y - e.y;
return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2),
);
},
c=function (t){
if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe',
) ||
m.isFunction(t.get(0).onclick) ||
t.data('selectable')
)
return !0;
for (var e=0, n=t[0].attributes, i=n.length; e < i; e++)
if('data-fancybox-'===n[e].nodeName.substr(0, 14))
return !0;
return !1;
},
u=function (t){
for (
var e, n, i, o, s, r = !1;
(e=t.get(0)),
void 0,
(n=g.getComputedStyle(e)['overflow-y']),
(i=g.getComputedStyle(e)['overflow-x']),
(o =
('scroll'===n||'auto'===n) &&
e.scrollHeight > e.clientHeight),
(s =
('scroll'===i||'auto'===i) &&
e.scrollWidth > e.clientWidth),
!(r=o||s) &&
(t=t.parent()).length &&
!t.hasClass('fancybox-stage') &&
!t.is('body');
);
return r;
},
n=function (t){
var e=this;
((e.instance=t),
(e.$bg=t.$refs.bg),
(e.$stage=t.$refs.stage),
(e.$container=t.$refs.container),
e.destroy(),
e.$container.on('touchstart.fb.touch mousedown.fb.touch',
m.proxy(e, 'ontouchstart'),
));
};
((n.prototype.destroy=function (){
var t=this;
(t.$container.off('.fb.touch'),
m(l).off('.fb.touch'),
t.requestId&&(b(t.requestId), (t.requestId=null)),
t.tapped&&(clearTimeout(t.tapped), (t.tapped=null)));
}),
(n.prototype.ontouchstart=function (t){
var e=this,
n=m(t.target),
i=e.instance,
o=i.current,
s=o.$slide,
r=o.$content,
a='touchstart'==t.type;
if((a&&e.$container.off('mousedown.fb.touch'),
t.originalEvent&&2==t.originalEvent.button)
)
return;
if(!s.length||!n.length||c(n)||c(n.parent())) return;
if(!n.is('img') &&
t.originalEvent.clientX > n[0].clientWidth + n.offset().left
)
return;
if(!o ||
i.isAnimating ||
o.$slide.hasClass('fancybox-animated')
)
return (t.stopPropagation(), void t.preventDefault());
if(((e.realPoints=e.startPoints=d(t)), !e.startPoints.length)
)
return;
if((o.touch&&t.stopPropagation(),
(e.startEvent=t),
(e.canTap = !0),
(e.$target=n),
(e.$content=r),
(e.opts=o.opts.touch),
(e.isPanning = !1),
(e.isSwiping = !1),
(e.isZooming = !1),
(e.isScrolling = !1),
(e.canPan=i.canPan()),
(e.startTime=new Date().getTime()),
(e.distanceX=e.distanceY=e.distance=0),
(e.canvasWidth=Math.round(s[0].clientWidth)),
(e.canvasHeight=Math.round(s[0].clientHeight)),
(e.contentLastPos=null),
(e.contentStartPos=m.fancybox.getTranslate(e.$content)||{
top: 0,
left: 0,
}),
(e.sliderStartPos=m.fancybox.getTranslate(s)),
(e.stagePos=m.fancybox.getTranslate(i.$refs.stage)),
(e.sliderStartPos.top -=e.stagePos.top),
(e.sliderStartPos.left -=e.stagePos.left),
(e.contentStartPos.top -=e.stagePos.top),
(e.contentStartPos.left -=e.stagePos.left),
m(l)
.off('.fb.touch')
.on(a
? 'touchend.fb.touch touchcancel.fb.touch'
: 'mouseup.fb.touch mouseleave.fb.touch',
m.proxy(e, 'ontouchend'),
)
.on(a ? 'touchmove.fb.touch':'mousemove.fb.touch',
m.proxy(e, 'ontouchmove'),
),
m.fancybox.isMobile &&
l.addEventListener('scroll', e.onscroll, !0),
!(
((e.opts||e.canPan) &&
(n.is(e.$stage)||e.$stage.find(n).length)) ||
(n.is('.fancybox-image')&&t.preventDefault(),
m.fancybox.isMobile &&
n.parents('.fancybox-caption').length)
))
)
return;
((e.isScrollable=u(n)||u(n.parent())),
(m.fancybox.isMobile&&e.isScrollable)||t.preventDefault(),
(1===e.startPoints.length||o.hasError) &&
(e.canPan
? (m.fancybox.stop(e.$content), (e.isPanning = !0))
: (e.isSwiping = !0),
e.$container.addClass('fancybox-is-grabbing')),
2===e.startPoints.length &&
'image'===o.type &&
(o.isLoaded||o.$ghost) &&
((e.canTap = !1),
(e.isSwiping = !1),
(e.isPanning = !1),
(e.isZooming = !0),
m.fancybox.stop(e.$content),
(e.centerPointStartX =
0.5 * (e.startPoints[0].x + e.startPoints[1].x) -
m(g).scrollLeft()),
(e.centerPointStartY =
0.5 * (e.startPoints[0].y + e.startPoints[1].y) -
m(g).scrollTop()),
(e.percentageOfImageAtPinchPointX =
(e.centerPointStartX - e.contentStartPos.left) /
e.contentStartPos.width),
(e.percentageOfImageAtPinchPointY =
(e.centerPointStartY - e.contentStartPos.top) /
e.contentStartPos.height),
(e.startDistanceBetweenFingers=y(
e.startPoints[0],
e.startPoints[1],
))));
}),
(n.prototype.onscroll=function (t){
((this.isScrolling = !0),
l.removeEventListener('scroll', this.onscroll, !0));
}),
(n.prototype.ontouchmove=function (t){
var e=this;
if(void 0!==t.originalEvent.buttons &&
0===t.originalEvent.buttons
)
return void e.ontouchend(t);
if(e.isScrolling) return void (e.canTap = !1);
if(((e.newPoints=d(t)),
(!e.opts&&!e.canPan) ||
!e.newPoints.length ||
!e.newPoints.length)
)
return;
((e.isSwiping&&!0===e.isSwiping)||t.preventDefault(),
(e.distanceX=y(e.newPoints[0], e.startPoints[0], 'x')),
(e.distanceY=y(e.newPoints[0], e.startPoints[0], 'y')),
(e.distance=y(e.newPoints[0], e.startPoints[0])),
0 < e.distance &&
(e.isSwiping
? e.onSwipe(t)
: e.isPanning
? e.onPan()
: e.isZooming&&e.onZoom()));
}),
(n.prototype.onSwipe=function (t){
var e,
o=this,
s=o.instance,
n=o.isSwiping,
i=o.sliderStartPos.left||0;
if(!0===n){
if(10 < Math.abs(o.distance)){
if(((o.canTap = !1),
s.group.length < 2&&o.opts.vertical
? (o.isSwiping='y')
: s.isDragging ||
!1===o.opts.vertical ||
('auto'===o.opts.vertical&&800 < m(g).width())
? (o.isSwiping='x')
: ((e=Math.abs((180 * Math.atan2(o.distanceY, o.distanceX)) /
Math.PI,
)),
(o.isSwiping=45 < e&&e < 135 ? 'y':'x')),
'y'===o.isSwiping &&
m.fancybox.isMobile &&
o.isScrollable)
)
return void (o.isScrolling = !0);
((s.isDragging=o.isSwiping),
(o.startPoints=o.newPoints),
m.each(s.slides, function (t, e){
var n, i;
(m.fancybox.stop(e.$slide),
(n=m.fancybox.getTranslate(e.$slide)),
(i=m.fancybox.getTranslate(s.$refs.stage)),
e.$slide
.css({
transform: '',
opacity: '',
'transition-duration': '',
})
.removeClass('fancybox-animated')
.removeClass(function (t, e){
return (
e.match(/(^|\s)fancybox-fx-\S+/g)||[]
).join(' ');
}),
e.pos===s.current.pos &&
((o.sliderStartPos.top=n.top - i.top),
(o.sliderStartPos.left=n.left - i.left)),
m.fancybox.setTranslate(e.$slide, {
top: n.top - i.top,
left: n.left - i.left,
}));
}),
s.SlideShow &&
s.SlideShow.isActive &&
s.SlideShow.stop());
}
return;
}
('x'==n &&
(0 < o.distanceX &&
(o.instance.group.length < 2 ||
(0===o.instance.current.index &&
!o.instance.current.opts.loop))
? (i +=Math.pow(o.distanceX, 0.8))
: o.distanceX < 0 &&
(o.instance.group.length < 2 ||
(o.instance.current.index===o.instance.group.length - 1 &&
!o.instance.current.opts.loop))
? (i -=Math.pow(-o.distanceX, 0.8))
: (i +=o.distanceX)),
(o.sliderLastPos={
top: 'x'==n ? 0:o.sliderStartPos.top + o.distanceY,
left: i,
}),
o.requestId&&(b(o.requestId), (o.requestId=null)),
(o.requestId=v(function (){
o.sliderLastPos &&
(m.each(o.instance.slides, function (t, e){
var n=e.pos - o.instance.currPos;
m.fancybox.setTranslate(e.$slide, {
top: o.sliderLastPos.top,
left:
o.sliderLastPos.left +
n * o.canvasWidth +
n * e.opts.gutter,
});
}),
o.$container.addClass('fancybox-is-sliding'));
})));
}),
(n.prototype.onPan=function (){
var t=this;
if(y(t.newPoints[0], t.realPoints[0]) <
(m.fancybox.isMobile ? 10:5)
)
return void (t.startPoints=t.newPoints);
((t.canTap = !1),
(t.contentLastPos=t.limitMovement()),
t.requestId&&b(t.requestId),
(t.requestId=v(function (){
m.fancybox.setTranslate(t.$content, t.contentLastPos);
})));
}),
(n.prototype.limitMovement=function (){
var t,
e,
n,
i,
o,
s,
r=this,
a=r.canvasWidth,
l=r.canvasHeight,
c=r.distanceX,
d=r.distanceY,
u=r.contentStartPos,
f=u.left,
h=u.top,
p=u.width,
g=u.height;
return (
(o=a < p ? f + c:f),
(s=h + d),
(t=Math.max(0, 0.5 * a - 0.5 * p)),
(e=Math.max(0, 0.5 * l - 0.5 * g)),
(n=Math.min(a - p, 0.5 * a - 0.5 * p)),
(i=Math.min(l - g, 0.5 * l - 0.5 * g)),
0 < c &&
t < o &&
(o=t - 1 + Math.pow(-t + f + c, 0.8)||0),
c < 0&&o < n&&(o=n + 1 - Math.pow(n - f - c, 0.8)||0),
0 < d &&
e < s &&
(s=e - 1 + Math.pow(-e + h + d, 0.8)||0),
d < 0&&s < i&&(s=i + 1 - Math.pow(i - h - d, 0.8)||0),
{ top: s, left: o }
);
}),
(n.prototype.limitPosition=function (t, e, n, i){
var o=this.canvasWidth,
s=this.canvasHeight;
return (
(t =
o < n
? (t=0 < t ? 0:t) < o - n
? o - n
: t
: Math.max(0, o / 2 - n / 2)),
{
top: (e =
s < i
? (e=0 < e ? 0:e) < s - i
? s - i
: e
: Math.max(0, s / 2 - i / 2)),
left: t,
}
);
}),
(n.prototype.onZoom=function (){
var t=this,
e=t.contentStartPos,
n=e.width,
i=e.height,
o=e.left,
s=e.top,
r =
y(t.newPoints[0], t.newPoints[1]) /
t.startDistanceBetweenFingers,
a=Math.floor(n * r),
l=Math.floor(i * r),
c=(n - a) * t.percentageOfImageAtPinchPointX,
d=(i - l) * t.percentageOfImageAtPinchPointY,
u =
(t.newPoints[0].x + t.newPoints[1].x) / 2 -
m(g).scrollLeft(),
f =
(t.newPoints[0].y + t.newPoints[1].y) / 2 -
m(g).scrollTop(),
h=u - t.centerPointStartX,
p={
top: s + (d + (f - t.centerPointStartY)),
left: o + (c + h),
scaleX: r,
scaleY: r,
};
((t.canTap = !1),
(t.newWidth=a),
(t.newHeight=l),
(t.contentLastPos=p),
t.requestId&&b(t.requestId),
(t.requestId=v(function (){
m.fancybox.setTranslate(t.$content, t.contentLastPos);
})));
}),
(n.prototype.ontouchend=function (t){
var e=this,
n=e.isSwiping,
i=e.isPanning,
o=e.isZooming,
s=e.isScrolling;
if(((e.endPoints=d(t)),
(e.dMs=Math.max(new Date().getTime() - e.startTime, 1)),
e.$container.removeClass('fancybox-is-grabbing'),
m(l).off('.fb.touch'),
l.removeEventListener('scroll', e.onscroll, !0),
e.requestId&&(b(e.requestId), (e.requestId=null)),
(e.isSwiping = !1),
(e.isPanning = !1),
(e.isZooming = !1),
(e.isScrolling = !1),
(e.instance.isDragging = !1),
e.canTap)
)
return e.onTap(t);
return (
(e.speed=100),
(e.velocityX=(e.distanceX / e.dMs) * 0.5),
(e.velocityY=(e.distanceY / e.dMs) * 0.5),
void (i
? e.endPanning()
: o
? e.endZooming()
: e.endSwiping(n, s))
);
}),
(n.prototype.endSwiping=function (t, e){
var n=this,
i = !1,
o=n.instance.group.length,
s=Math.abs(n.distanceX),
r='x'==t&&1 < o&&((130 < n.dMs&&10 < s)||50 < s);
((n.sliderLastPos=null),
'y'==t&&!e&&50 < Math.abs(n.distanceY)
? (m.fancybox.animate(n.instance.current.$slide,
{
top:
n.sliderStartPos.top +
n.distanceY +
150 * n.velocityY,
opacity: 0,
},
200,
),
(i=n.instance.close(!0, 250)))
: r&&0 < n.distanceX
? (i=n.instance.previous(300))
: r&&n.distanceX < 0&&(i=n.instance.next(300)),
!1!==i ||
('x'!=t&&'y'!=t) ||
n.instance.centerSlide(200),
n.$container.removeClass('fancybox-is-sliding'));
}),
(n.prototype.endPanning=function (){
var t,
e,
n,
i=this;
if(!i.contentLastPos) return;
((e =
!1===i.opts.momentum||350 < i.dMs
? ((t=i.contentLastPos.left), i.contentLastPos.top)
: ((t=i.contentLastPos.left + 500 * i.velocityX),
i.contentLastPos.top + 500 * i.velocityY)),
((n=i.limitPosition(t,
e,
i.contentStartPos.width,
i.contentStartPos.height,
)).width=i.contentStartPos.width),
(n.height=i.contentStartPos.height),
m.fancybox.animate(i.$content, n, 366));
}),
(n.prototype.endZooming=function (){
var t,
e,
n,
i,
o=this,
s=o.instance.current,
r=o.newWidth,
a=o.newHeight;
if(!o.contentLastPos) return;
((t=o.contentLastPos.left),
(i={
top: (e=o.contentLastPos.top),
left: t,
width: r,
height: a,
scaleX: 1,
scaleY: 1,
}),
m.fancybox.setTranslate(o.$content, i),
r < o.canvasWidth&&a < o.canvasHeight
? o.instance.scaleToFit(150)
: r > s.width||a > s.height
? o.instance.scaleToActual(o.centerPointStartX,
o.centerPointStartY,
150,
)
: ((n=o.limitPosition(t, e, r, a)),
m.fancybox.animate(o.$content, n, 150)));
}),
(n.prototype.onTap=function (n){
var t,
i=this,
e=m(n.target),
o=i.instance,
s=o.current,
r=(n&&d(n))||i.startPoints,
a=r[0] ? r[0].x - m(g).scrollLeft() - i.stagePos.left:0,
l=r[0] ? r[0].y - m(g).scrollTop() - i.stagePos.top:0,
c=function (t){
var e=s.opts[t];
if((m.isFunction(e)&&(e=e.apply(o, [s, n])), !e))
return;
switch (e){
case 'close':
o.close(i.startEvent);
break;
case 'toggleControls':
o.toggleControls();
break;
case 'next':
o.next();
break;
case 'nextOrClose':
1 < o.group.length ? o.next():o.close(i.startEvent);
break;
case 'zoom':
'image'==s.type &&
(s.isLoaded||s.$ghost) &&
(o.canPan()
? o.scaleToFit()
: o.isScaledDown()
? o.scaleToActual(a, l)
: o.group.length < 2&&o.close(i.startEvent));
}};
if(n.originalEvent&&2==n.originalEvent.button) return;
if(!e.is('img')&&a > e[0].clientWidth + e.offset().left)
return;
if(e.is('.fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container',
)
)
t='Outside';
else if(e.is('.fancybox-slide')) t='Slide';
else {
if(!o.current.$content ||
!o.current.$content.find(e).addBack().filter(e).length
)
return;
t='Content';
}
if(i.tapped){
if((clearTimeout(i.tapped),
(i.tapped=null),
50 < Math.abs(a - i.tapX)||50 < Math.abs(l - i.tapY))
)
return this;
c('dblclick' + t);
} else
((i.tapX=a),
(i.tapY=l),
s.opts['dblclick' + t] &&
s.opts['dblclick' + t]!==s.opts['click' + t]
? (i.tapped=setTimeout(function (){
((i.tapped=null), o.isAnimating||c('click' + t));
}, 500))
: c('click' + t));
return this;
}),
m(l)
.on('onActivate.fb', function (t, e){
e&&!e.Guestures&&(e.Guestures=new n(e));
})
.on('beforeClose.fb', function (t, e){
e&&e.Guestures&&e.Guestures.destroy();
}));
})(window, document, jQuery),
(function (r, a){
'use strict';
a.extend(!0, a.fancybox.defaults, {
btnTpl: {
slideShow:
'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>',
},
slideShow: { autoStart: !1, speed: 3e3, progress: !0 },
});
var n=function (t){
((this.instance=t), this.init());
};
(a.extend(n.prototype, {
timer: null,
isActive: !1,
$button: null,
init: function (){
var t=this,
e=t.instance,
n=e.group[e.currIndex].opts.slideShow;
((t.$button=e.$refs.toolbar
.find('[data-fancybox-play]')
.on('click', function (){
t.toggle();
})),
e.group.length < 2||!n
? t.$button.hide()
: n.progress &&
(t.$progress=a(
'<div class="fancybox-progress"></div>',
).appendTo(e.$refs.inner)));
},
set: function (t){
var e=this,
n=e.instance,
i=n.current;
i &&
(!0===t||i.opts.loop||n.currIndex < n.group.length - 1)
? e.isActive &&
'video'!==i.contentType &&
(e.$progress &&
a.fancybox.animate(e.$progress.show(),
{ scaleX: 1 },
i.opts.slideShow.speed,
),
(e.timer=setTimeout(function (){
n.current.opts.loop ||
n.current.index!=n.group.length - 1
? n.next()
: n.jumpTo(0);
}, i.opts.slideShow.speed)))
: (e.stop(), (n.idleSecondsCounter=0), n.showControls());
},
clear: function (){
(clearTimeout(this.timer),
(this.timer=null),
this.$progress&&this.$progress.removeAttr('style').hide());
},
start: function (){
var t=this,
e=t.instance.current;
e &&
(t.$button
.attr('title',
(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP,
)
.removeClass('fancybox-button--play')
.addClass('fancybox-button--pause'),
(t.isActive = !0),
e.isComplete&&t.set(!0),
t.instance.trigger('onSlideShowChange', !0));
},
stop: function (){
var t=this,
e=t.instance.current;
(t.clear(),
t.$button
.attr('title',
(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START,
)
.removeClass('fancybox-button--pause')
.addClass('fancybox-button--play'),
(t.isActive = !1),
t.instance.trigger('onSlideShowChange', !1),
t.$progress&&t.$progress.removeAttr('style').hide());
},
toggle: function (){
this.isActive ? this.stop():this.start();
},
}),
a(r).on({
'onInit.fb': function (t, e){
e&&!e.SlideShow&&(e.SlideShow=new n(e));
},
'beforeShow.fb': function (t, e, n, i){
var o=e&&e.SlideShow;
i
? o&&n.opts.slideShow.autoStart&&o.start()
: o&&o.isActive&&o.clear();
},
'afterShow.fb': function (t, e, n){
var i=e&&e.SlideShow;
i&&i.isActive&&i.set();
},
'afterKeydown.fb': function (t, e, n, i, o){
var s=e&&e.SlideShow;
!s ||
!n.opts.slideShow ||
(80!==o&&32!==o) ||
a(r.activeElement).is('button,a,input') ||
(i.preventDefault(), s.toggle());
},
'beforeClose.fb onDeactivate.fb': function (t, e){
var n=e&&e.SlideShow;
n&&n.stop();
},
}),
a(r).on('visibilitychange', function (){
var t=a.fancybox.getInstance(),
e=t&&t.SlideShow;
e&&e.isActive&&(r.hidden ? e.clear():e.set());
}));
})(document, jQuery),
(function (s, n){
'use strict';
var i=(function (){
for (
var t=[
[
'requestFullscreen',
'exitFullscreen',
'fullscreenElement',
'fullscreenEnabled',
'fullscreenchange',
'fullscreenerror',
],
[
'webkitRequestFullscreen',
'webkitExitFullscreen',
'webkitFullscreenElement',
'webkitFullscreenEnabled',
'webkitfullscreenchange',
'webkitfullscreenerror',
],
[
'webkitRequestFullScreen',
'webkitCancelFullScreen',
'webkitCurrentFullScreenElement',
'webkitCancelFullScreen',
'webkitfullscreenchange',
'webkitfullscreenerror',
],
[
'mozRequestFullScreen',
'mozCancelFullScreen',
'mozFullScreenElement',
'mozFullScreenEnabled',
'mozfullscreenchange',
'mozfullscreenerror',
],
[
'msRequestFullscreen',
'msExitFullscreen',
'msFullscreenElement',
'msFullscreenEnabled',
'MSFullscreenChange',
'MSFullscreenError',
],
],
e={},
n=0;
n < t.length;
n++
){
var i=t[n];
if(i&&i[1] in s){
for (var o=0; o < i.length; o++) e[t[0][o]]=i[o];
return e;
}}
return !1;
})();
if(i){
var o={
request: function (t){
(t=t||s.documentElement)[i.requestFullscreen](
t.ALLOW_KEYBOARD_INPUT,
);
},
exit: function (){
s[i.exitFullscreen]();
},
toggle: function (t){
((t=t||s.documentElement),
this.isFullscreen() ? this.exit():this.request(t));
},
isFullscreen: function (){
return Boolean(s[i.fullscreenElement]);
},
enabled: function (){
return Boolean(s[i.fullscreenEnabled]);
},
};
(n.extend(!0, n.fancybox.defaults, {
btnTpl: {
fullScreen:
'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>',
},
fullScreen: { autoStart: !1 },
}),
n(s).on(i.fullscreenchange, function (){
var t=o.isFullscreen(),
e=n.fancybox.getInstance();
e &&
(e.current &&
'image'===e.current.type &&
e.isAnimating &&
((e.isAnimating = !1),
e.update(!0, !0, 0),
e.isComplete||e.complete()),
e.trigger('onFullscreenChange', t),
e.$refs.container.toggleClass('fancybox-is-fullscreen', t),
e.$refs.toolbar
.find('[data-fancybox-fullscreen]')
.toggleClass('fancybox-button--fsenter', !t)
.toggleClass('fancybox-button--fsexit', t));
}));
}
n(s).on({
'onInit.fb': function (t, e){
if(!i)
return void e.$refs.toolbar
.find('[data-fancybox-fullscreen]')
.remove();
e&&e.group[e.currIndex].opts.fullScreen
? (e.$refs.container.on('click.fb-fullscreen',
'[data-fancybox-fullscreen]',
function (t){
(t.stopPropagation(), t.preventDefault(), o.toggle());
},
),
e.opts.fullScreen &&
!0===e.opts.fullScreen.autoStart &&
o.request(),
(e.FullScreen=o))
: e &&
e.$refs.toolbar.find('[data-fancybox-fullscreen]').hide();
},
'afterKeydown.fb': function (t, e, n, i, o){
e &&
e.FullScreen &&
70===o &&
(i.preventDefault(), e.FullScreen.toggle());
},
'beforeClose.fb': function (t, e){
e &&
e.FullScreen &&
e.$refs.container.hasClass('fancybox-is-fullscreen') &&
o.exit();
},
});
})(document, jQuery),
(function (t, s){
'use strict';
var r='fancybox-thumbs',
a=r + '-active';
s.fancybox.defaults=s.extend(!0,
{
btnTpl: {
thumbs:
'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>',
},
thumbs: {
autoStart: !1,
hideOnClose: !0,
parentEl: '.fancybox-container',
axis: 'y',
},
},
s.fancybox.defaults,
);
var i=function (t){
this.init(t);
};
(s.extend(i.prototype, {
$button: null,
$grid: null,
$list: null,
isVisible: !1,
isActive: !1,
init: function (t){
var e=this,
n=t.group,
i=0;
((e.instance=t),
(e.opts=n[t.currIndex].opts.thumbs),
((t.Thumbs=e).$button=t.$refs.toolbar.find('[data-fancybox-thumbs]',
)));
for (
var o=0, s=n.length;
o < s&&(n[o].thumb&&i++, !(1 < i));
o++
);
1 < i&&e.opts
? (e.$button.removeAttr('style').on('click', function (){
e.toggle();
}),
(e.isActive = !0))
: e.$button.hide();
},
create: function (){
var n,
t=this,
e=t.instance,
i=t.opts.parentEl,
o=[];
(t.$grid ||
((t.$grid=s(
'<div class="' +
r +
' ' +
r +
'-' +
t.opts.axis +
'"></div>',
).appendTo(e.$refs.container.find(i).addBack().filter(i))),
t.$grid.on('click', 'a', function (){
e.jumpTo(s(this).attr('data-index'));
})),
t.$list ||
(t.$list=s('<div class="' + r + '__list">').appendTo(t.$grid,
)),
s.each(e.group, function (t, e){
((n=e.thumb)||'image'!==e.type||(n=e.src),
o.push('<a href="javascript:;" tabindex="0" data-index="' +
t +
'"' +
(n&&n.length
? ' style="background-image:url(' + n + ')"'
: 'class="fancybox-thumbs-missing"') +
'></a>',
));
}),
(t.$list[0].innerHTML=o.join('')),
'x'===t.opts.axis &&
t.$list.width(parseInt(t.$grid.css('padding-right'), 10) +
e.group.length *
t.$list.children().eq(0).outerWidth(!0),
));
},
focus: function (t){
var e,
n,
i=this,
o=i.$list,
s=i.$grid;
if(!i.instance.current) return;
((n=(e=o
.children()
.removeClass(a)
.filter('[data-index="' + i.instance.current.index + '"]')
.addClass(a)).position()),
'y'===i.opts.axis &&
(n.top < 0||n.top > o.height() - e.outerHeight())
? o.stop().animate({ scrollTop: o.scrollTop() + n.top }, t)
: 'x'===i.opts.axis &&
(n.left < s.scrollLeft() ||
n.left >
s.scrollLeft() + (s.width() - e.outerWidth())) &&
o.parent().stop().animate({ scrollLeft: n.left }, t));
},
update: function (){
var t=this;
(t.instance.$refs.container.toggleClass('fancybox-show-thumbs',
this.isVisible,
),
t.isVisible
? (t.$grid||t.create(),
t.instance.trigger('onThumbsShow'),
t.focus(0))
: t.$grid&&t.instance.trigger('onThumbsHide'),
t.instance.update());
},
hide: function (){
((this.isVisible = !1), this.update());
},
show: function (){
((this.isVisible = !0), this.update());
},
toggle: function (){
((this.isVisible = !this.isVisible), this.update());
},
}),
s(t).on({
'onInit.fb': function (t, e){
var n;
e &&
!e.Thumbs &&
(n=new i(e)).isActive &&
!0===n.opts.autoStart &&
n.show();
},
'beforeShow.fb': function (t, e, n, i){
var o=e&&e.Thumbs;
o&&o.isVisible&&o.focus(i ? 0:250);
},
'afterKeydown.fb': function (t, e, n, i, o){
var s=e&&e.Thumbs;
s &&
s.isActive &&
71===o &&
(i.preventDefault(), s.toggle());
},
'beforeClose.fb': function (t, e){
var n=e&&e.Thumbs;
n &&
n.isVisible &&
!1!==n.opts.hideOnClose &&
n.$grid.hide();
},
}));
})(document, jQuery),
(function (t, o){
'use strict';
(o.extend(!0, o.fancybox.defaults, {
btnTpl: {
share:
'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>',
},
share: {
url: function (t, e){
return (
(!t.currentHash &&
'inline'!==e.type &&
'html'!==e.type &&
(e.origSrc||e.src)) ||
window.location
);
},
tpl: '<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>',
},
}),
o(t).on('click', '[data-fancybox-share]', function (){
var t,
e,
n=o.fancybox.getInstance(),
i=n.current||null;
if(!i) return;
('function'===o.type(i.opts.share.url) &&
(t=i.opts.share.url.apply(i, [n, i])),
(e=i.opts.share.tpl
.replace(/\{\{media\}\}/g,
'image'===i.type ? encodeURIComponent(i.src):'',
)
.replace(/\{\{url\}\}/g, encodeURIComponent(t))
.replace(/\{\{url_raw\}\}/g,
(function t(e){
var n={
'&': '&amp;',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&#39;',
'/': '&#x2F;',
'`': '&#x60;',
'=': '&#x3D;',
};
return String(e).replace(/[&<>"'`=\/]/g, function (t){
return n[t];
});
})(t),
)
.replace(/\{\{descr\}\}/g,
n.$caption ? encodeURIComponent(n.$caption.text()):'',
)),
o.fancybox.open({
src: n.translate(n, e),
type: 'html',
opts: {
touch: !1,
animationEffect: !1,
afterLoad: function (t, e){
(n.$refs.container.one('beforeClose.fb', function (){
t.close(null, 0);
}),
e.$content
.find('.fancybox-share__button')
.click(function (){
return (
window.open(this.href,
'Share',
'width=550, height=450',
),
!1
);
}));
},
mobile: { autoFocus: !1 },
},
}));
}));
})(document, jQuery),
(function (s, r, o){
'use strict';
function a(){
var t=s.location.hash.substr(1),
e=t.split('-'),
n =
(1 < e.length &&
/^\+?\d+$/.test(e[e.length - 1]) &&
parseInt(e.pop(-1), 10)) ||
1;
return { hash: t, index: n < 1 ? 1:n, gallery: e.join('-') };}
function e(t){
''!==t.gallery &&
o("[data-fancybox='" + o.escapeSelector(t.gallery) + "']")
.eq(t.index - 1)
.focus()
.trigger('click.fb-start');
}
function l(t){
var e, n;
if(!t) return !1;
return (
''!==(n =
(e=t.current ? t.current.opts:t.opts).hash ||
(e.$orig
? e.$orig.data('fancybox') ||
e.$orig.data('fancybox-trigger')
: ''))&&n
);
}
(o.escapeSelector ||
(o.escapeSelector=function (t){
return (t + '').replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,
function (t, e){
if(e){
if('\0'===t) return '�';
return (
t.slice(0, -1) +
'\\' +
t.charCodeAt(t.length - 1).toString(16) +
' '
);
}
return '\\' + t;
},
);
}),
o(function (){
if(!1===o.fancybox.defaults.hash) return;
(o(r).on({
'onInit.fb': function (t, e){
var n, i;
if(!1===e.group[e.currIndex].opts.hash) return;
((n=a()),
(i=l(e)) &&
n.gallery &&
i==n.gallery &&
(e.currIndex=n.index - 1));
},
'beforeShow.fb': function (t, e, n, i){
var o;
if(!n||!1===n.opts.hash) return;
if(!(o=l(e))) return;
if(((e.currentHash =
o + (1 < e.group.length ? '-' + (n.index + 1):'')),
s.location.hash==='#' + e.currentHash)
)
return;
(i&&!e.origHash&&(e.origHash=s.location.hash),
e.hashTimer&&clearTimeout(e.hashTimer),
(e.hashTimer=setTimeout(function (){
('replaceState' in s.history
? (s.history[i ? 'pushState':'replaceState'](
{},
r.title,
s.location.pathname +
s.location.search +
'#' +
e.currentHash,
),
i&&(e.hasCreatedHistory = !0))
: (s.location.hash=e.currentHash),
(e.hashTimer=null));
}, 300)));
},
'beforeClose.fb': function (t, e, n){
if(!n||!1===n.opts.hash) return;
(clearTimeout(e.hashTimer),
e.currentHash&&e.hasCreatedHistory
? s.history.back()
: e.currentHash &&
('replaceState' in s.history
? s.history.replaceState({},
r.title,
s.location.pathname +
s.location.search +
(e.origHash||''),
)
: (s.location.hash=e.origHash)),
(e.currentHash=null));
},
}),
o(s).on('hashchange.fb', function (){
var t=a(),
i=null;
(o.each(o('.fancybox-container').get().reverse(),
function (t, e){
var n=o(e).data('FancyBox');
if(n&&n.currentHash) return ((i=n), !1);
},
),
i
? i.currentHash===t.gallery + '-' + t.index ||
(1===t.index&&i.currentHash==t.gallery) ||
((i.currentHash=null), i.close())
: ''!==t.gallery&&e(t));
}),
setTimeout(function (){
o.fancybox.getInstance()||e(a());
}, 50));
}));
})(window, document, jQuery),
(function (t, e){
'use strict';
var o=new Date().getTime();
e(t).on({
'onInit.fb': function (t, i, e){
i.$refs.stage.on('mousewheel DOMMouseScroll wheel MozMousePixelScroll',
function (t){
var e=i.current,
n=new Date().getTime();
if(i.group.length < 2 ||
!1===e.opts.wheel ||
('auto'===e.opts.wheel&&'image'!==e.type)
)
return;
if((t.preventDefault(),
t.stopPropagation(),
e.$slide.hasClass('fancybox-animated'))
)
return;
if(((t=t.originalEvent||t), n - o < 250)) return;
((o=n),
i[
(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail) <
0
? 'next'
: 'previous'
]());
},
);
},
});
})(document, jQuery));
},
{},
],
2: [
function (t, n, e){
!(function (t, e){
'use strict';
'function'==typeof define&&define.amd
? define(e)
: 'object'==typeof n&&n.exports
? (n.exports=e())
: (t.matchesSelector=e());
})(window, function t(){
'use strict';
var i=(function (){
var t=window.Element.prototype;
if(t.matches) return 'matches';
if(t.matchesSelector) return 'matchesSelector';
for (
var e=['webkit', 'moz', 'ms', 'o'], n=0;
n < e.length;
n++
){
var i=e[n] + 'MatchesSelector';
if(t[i]) return i;
}})();
return function t(e, n){
return e[i](n);
};});
},
{},
],
3: [
function (t, e, n){
var i, o;
((i='undefined'!=typeof window ? window:this),
(o=function (){
'use strict';
function t(){}
var e=t.prototype;
return (
(e.on=function (t, e){
if(!t||!e) return;
var n=(this._events=this._events||{}),
i=(n[t]=n[t]||[]);
return (-1==i.indexOf(e)&&i.push(e), this);
}),
(e.once=function (t, e){
if(!t||!e) return;
this.on(t, e);
var n=(this._onceEvents=this._onceEvents||{});
return (((n[t]=n[t]||{})[e] = !0), this);
}),
(e.off=function (t, e){
var n=this._events&&this._events[t];
if(!n||!n.length) return;
var i=n.indexOf(e);
return (-1!=i&&n.splice(i, 1), this);
}),
(e.emitEvent=function (t, e){
var n=this._events&&this._events[t];
if(!n||!n.length) return;
((n=n.slice(0)), (e=e||[]));
for (
var i=this._onceEvents&&this._onceEvents[t], o=0;
o < n.length;
o++
){
var s=n[o];
(i&&i[s]&&(this.off(t, s), delete i[s]),
s.apply(this, e));
}
return this;
}),
(e.allOff=function (){
(delete this._events, delete this._onceEvents);
}),
t
);
}),
'function'==typeof define&&define.amd
? define(o)
: 'object'==typeof e&&e.exports
? (e.exports=o())
: (i.EvEmitter=o()));
},
{},
],
4: [
function (t, e, n){
var i, o;
((i=window),
(o=function t(c, s){
'use strict';
var d={
extend: function (t, e){
for (var n in e) t[n]=e[n];
return t;
},
modulo: function (t, e){
return ((t % e) + e) % e;
},
},
e=Array.prototype.slice;
((d.makeArray=function (t){
if(Array.isArray(t)) return t;
if(null==t) return [];
if('object'==typeof t&&'number'==typeof t.length)
return e.call(t);
return [t];
}),
(d.removeFrom=function (t, e){
var n=t.indexOf(e);
-1!=n&&t.splice(n, 1);
}),
(d.getParent=function (t, e){
for (; t.parentNode&&t!=document.body;)
if(((t=t.parentNode), s(t, e))) return t;
}),
(d.getQueryElement=function (t){
if('string'==typeof t) return document.querySelector(t);
return t;
}),
(d.handleEvent=function (t){
var e='on' + t.type;
this[e]&&this[e](t);
}),
(d.filterFindElements=function (t, i){
t=d.makeArray(t);
var o=[];
return (
t.forEach(function (t){
if(!(t instanceof HTMLElement)) return;
if(!i) return void o.push(t);
s(t, i)&&o.push(t);
for (
var e=t.querySelectorAll(i), n=0;
n < e.length;
n++
)
o.push(e[n]);
}),
o
);
}),
(d.debounceMethod=function (t, e, i){
i=i||100;
var o=t.prototype[e],
s=e + 'Timeout';
t.prototype[e]=function (){
var t=this[s];
clearTimeout(t);
var e=arguments,
n=this;
this[s]=setTimeout(function (){
(o.apply(n, e), delete n[s]);
}, i);
};}),
(d.docReady=function (t){
var e=document.readyState;
'complete'==e||'interactive'==e
? setTimeout(t)
: document.addEventListener('DOMContentLoaded', t);
}),
(d.toDashed=function (t){
return t
.replace(/(.)([A-Z])/g, function (t, e, n){
return e + '-' + n;
})
.toLowerCase();
}));
var u=c.console;
return (
(d.htmlInit=function (a, l){
d.docReady(function (){
var t=d.toDashed(l),
o='data-' + t,
e=document.querySelectorAll('[' + o + ']'),
n=document.querySelectorAll('.js-' + t),
i=d.makeArray(e).concat(d.makeArray(n)),
s=o + '-options',
r=c.jQuery;
i.forEach(function (e){
var t,
n=e.getAttribute(o)||e.getAttribute(s);
try {
t=n&&JSON.parse(n);
} catch (t){
return void (
u &&
u.error('Error parsing ' +
o +
' on ' +
e.className +
': ' +
t,
)
);
}
var i=new a(e, t);
r&&r.data(e, l, i);
});
});
}),
d
);
}),
'function'==typeof define&&define.amd
? define(
['desandro-matches-selector/matches-selector'],
function (t){
return o(i, t);
},
)
: 'object'==typeof e&&e.exports
? (e.exports=o(i, t('desandro-matches-selector')))
: (i.fizzyUIUtils=o(i, i.matchesSelector)));
},
{ 'desandro-matches-selector': 2 },
],
5: [
function (t, e, n){
var i, o;
((i=window),
(o=function t(e, n){
'use strict';
e.createMethods.push('_createBgLazyLoad');
var i=e.prototype;
function o(t, e, n){
((this.element=t),
(this.url=e),
(this.img=new Image()),
(this.flickity=n),
this.load());
}
return (
(i._createBgLazyLoad=function (){
this.on('select', this.bgLazyLoad);
}),
(i.bgLazyLoad=function (){
var t=this.options.bgLazyLoad;
if(!t) return;
for (
var e='number'==typeof t ? t:0,
n=this.getAdjacentCellElements(e),
i=0;
i < n.length;
i++
){
var o=n[i];
this.bgLazyLoadElem(o);
for (
var s=o.querySelectorAll('[data-flickity-bg-lazyload]'),
r=0;
r < s.length;
r++
)
this.bgLazyLoadElem(s[r]);
}}),
(i.bgLazyLoadElem=function (t){
var e=t.getAttribute('data-flickity-bg-lazyload');
e&&new o(t, e, this);
}),
(o.prototype.handleEvent=n.handleEvent),
(o.prototype.load=function (){
(this.img.addEventListener('load', this),
this.img.addEventListener('error', this),
(this.img.src=this.url),
this.element.removeAttribute('data-flickity-bg-lazyload'));
}),
(o.prototype.onload=function (t){
((this.element.style.backgroundImage='url(' + this.url + ')'),
this.complete(t, 'flickity-bg-lazyloaded'));
}),
(o.prototype.onerror=function (t){
this.complete(t, 'flickity-bg-lazyerror');
}),
(o.prototype.complete=function (t, e){
(this.img.removeEventListener('load', this),
this.img.removeEventListener('error', this),
this.element.classList.add(e),
this.flickity.dispatchEvent('bgLazyLoad', t, this.element));
}),
(e.BgLazyLoader=o),
e
);
}),
'function'==typeof define&&define.amd
? define(['flickity/js/index', 'fizzy-ui-utils/utils'], o)
: 'object'==typeof e&&e.exports
? (e.exports=o(t('flickity'), t('fizzy-ui-utils')))
: o(i.Flickity, i.fizzyUIUtils));
},
{ 'fizzy-ui-utils': 4, flickity: 11 },
],
6: [
function (t, e, n){
var i, o;
((i=window),
(o=function t(e, n, i){
'use strict';
var o=n.prototype;
return (
(o.insert=function (t, e){
var n=this._makeCells(t);
if(!n||!n.length) return;
var i=this.cells.length;
e=void 0===e ? i:e;
var o=(function t(e){
var n=document.createDocumentFragment();
return (
e.forEach(function (t){
n.appendChild(t.element);
}),
n
);
})(n),
s=e==i;
if(s) this.slider.appendChild(o);
else {
var r=this.cells[e].element;
this.slider.insertBefore(o, r);
}
if(0===e) this.cells=n.concat(this.cells);
else if(s) this.cells=this.cells.concat(n);
else {
var a=this.cells.splice(e, i - e);
this.cells=this.cells.concat(n).concat(a);
}
(this._sizeCells(n), this.cellChange(e, !0));
}),
(o.append=function (t){
this.insert(t, this.cells.length);
}),
(o.prepend=function (t){
this.insert(t, 0);
}),
(o.remove=function (t){
var e=this.getCells(t);
if(!e||!e.length) return;
var n=this.cells.length - 1;
(e.forEach(function (t){
t.remove();
var e=this.cells.indexOf(t);
((n=Math.min(e, n)), i.removeFrom(this.cells, t));
}, this),
this.cellChange(n, !0));
}),
(o.cellSizeChange=function (t){
var e=this.getCell(t);
if(!e) return;
e.getSize();
var n=this.cells.indexOf(e);
this.cellChange(n);
}),
(o.cellChange=function (t, e){
var n=this.selectedElement;
(this._positionCells(t),
this._getWrapShiftCells(),
this.setGallerySize());
var i=this.getCell(n);
(i&&(this.selectedIndex=this.getCellSlideIndex(i)),
(this.selectedIndex=Math.min(this.slides.length - 1,
this.selectedIndex,
)),
this.emitEvent('cellChange', [t]),
this.select(this.selectedIndex),
e&&this.positionSliderAtSelected());
}),
n
);
}),
'function'==typeof define&&define.amd
? define(['./flickity', 'fizzy-ui-utils/utils'], function (t, e){
return o(0, t, e);
})
: 'object'==typeof e&&e.exports
? (e.exports=o(0, t('./flickity'), t('fizzy-ui-utils')))
: o(0, i.Flickity, i.fizzyUIUtils));
},
{ './flickity': 10, 'fizzy-ui-utils': 4 },
],
7: [
function (t, e, n){
var i, o;
((i=window),
(o=function t(e, s){
'use strict';
var n={
startAnimation: function (){
if(this.isAnimating) return;
((this.isAnimating = !0),
(this.restingFrames=0),
this.animate());
},
animate: function (){
(this.applyDragForce(), this.applySelectedAttraction());
var t=this.x;
if((this.integratePhysics(),
this.positionSlider(),
this.settle(t),
this.isAnimating)
){
var e=this;
requestAnimationFrame(function t(){
e.animate();
});
}},
positionSlider: function (){
var t=this.x;
(this.options.wrapAround &&
1 < this.cells.length &&
((t=s.modulo(t, this.slideableWidth)),
(t -=this.slideableWidth),
this.shiftWrapCells(t)),
(t +=this.cursorPosition),
(t=this.options.rightToLeft ? -t:t));
var e=this.getPositionValue(t);
this.slider.style.transform=this.isAnimating
? 'translate3d(' + e + ',0,0)'
: 'translateX(' + e + ')';
var n=this.slides[0];
if(n){
var i=-this.x - n.target,
o=i / this.slidesWidth;
this.dispatchEvent('scroll', null, [o, i]);
}},
positionSliderAtSelected: function (){
if(!this.cells.length) return;
((this.x=-this.selectedSlide.target),
(this.velocity=0),
this.positionSlider());
},
getPositionValue: function (t){
return this.options.percentPosition
? 0.01 * Math.round((t / this.size.innerWidth) * 1e4) + '%'
: Math.round(t) + 'px';
},
settle: function (t){
(this.isPointerDown ||
Math.round(100 * this.x)!=Math.round(100 * t) ||
this.restingFrames++,
2 < this.restingFrames &&
((this.isAnimating = !1),
delete this.isFreeScrolling,
this.positionSlider(),
this.dispatchEvent('settle', null, [this.selectedIndex])));
},
shiftWrapCells: function (t){
var e=this.cursorPosition + t;
this._shiftCells(this.beforeShiftCells, e, -1);
var n =
this.size.innerWidth -
(t + this.slideableWidth + this.cursorPosition);
this._shiftCells(this.afterShiftCells, n, 1);
},
_shiftCells: function (t, e, n){
for (var i=0; i < t.length; i++){
var o=t[i],
s=0 < e ? n:0;
(o.wrapShift(s), (e -=o.size.outerWidth));
}},
_unshiftCells: function (t){
if(!t||!t.length) return;
for (var e=0; e < t.length; e++) t[e].wrapShift(0);
},
integratePhysics: function (){
((this.x +=this.velocity),
(this.velocity *=this.getFrictionFactor()));
},
applyForce: function (t){
this.velocity +=t;
},
getFrictionFactor: function (){
return (
1 -
this.options[
this.isFreeScrolling ? 'freeScrollFriction':'friction'
]
);
},
getRestingPosition: function (){
return this.x + this.velocity / (1 - this.getFrictionFactor());
},
applyDragForce: function (){
if(!this.isDraggable||!this.isPointerDown) return;
var t=this.dragX - this.x - this.velocity;
this.applyForce(t);
},
applySelectedAttraction: function (){
if((this.isDraggable&&this.isPointerDown) ||
this.isFreeScrolling ||
!this.slides.length
)
return;
var t =
(-1 * this.selectedSlide.target - this.x) *
this.options.selectedAttraction;
this.applyForce(t);
},
};
return n;
}),
'function'==typeof define&&define.amd
? define(['fizzy-ui-utils/utils'], function (t){
return o(0, t);
})
: 'object'==typeof e&&e.exports
? (e.exports=o(0, t('fizzy-ui-utils')))
: ((i.Flickity=i.Flickity||{}),
(i.Flickity.animatePrototype=o(0, i.fizzyUIUtils))));
},
{ 'fizzy-ui-utils': 4 },
],
8: [
function (t, e, n){
var i, o;
((i=window),
(o=function t(e, n){
'use strict';
function i(t, e){
((this.element=t), (this.parent=e), this.create());
}
var o=i.prototype;
return (
(o.create=function (){
((this.element.style.position='absolute'),
this.element.setAttribute('aria-selected', 'false'),
(this.x=0),
(this.shift=0));
}),
(o.destroy=function (){
this.element.style.position='';
var t=this.parent.originSide;
(this.element.removeAttribute('aria-selected'),
(this.element.style[t]=''));
}),
(o.getSize=function (){
this.size=n(this.element);
}),
(o.setPosition=function (t){
((this.x=t), this.updateTarget(), this.renderPosition(t));
}),
(o.updateTarget=o.setDefaultTarget =
function (){
var t =
'left'==this.parent.originSide
? 'marginLeft'
: 'marginRight';
this.target =
this.x +
this.size[t] +
this.size.width * this.parent.cellAlign;
}),
(o.renderPosition=function (t){
var e=this.parent.originSide;
this.element.style[e]=this.parent.getPositionValue(t);
}),
(o.wrapShift=function (t){
((this.shift=t),
this.renderPosition(this.x + this.parent.slideableWidth * t));
}),
(o.remove=function (){
this.element.parentNode.removeChild(this.element);
}),
i
);
}),
'function'==typeof define&&define.amd
? define(['get-size/get-size'], function (t){
return o(0, t);
})
: 'object'==typeof e&&e.exports
? (e.exports=o(0, t('get-size')))
: ((i.Flickity=i.Flickity||{}),
(i.Flickity.Cell=o(0, i.getSize))));
},
{ 'get-size': 17 },
],
9: [
function (t, e, n){
var i, o;
((i=window),
(o=function t(n, e, i, a){
'use strict';
(a.extend(e.defaults, { draggable: '>1', dragThreshold: 3 }),
e.createMethods.push('_createDrag'));
var o=e.prototype;
(a.extend(o, i.prototype), (o._touchActionValue='pan-y'));
var s='createTouch' in document,
r = !1;
((o._createDrag=function (){
(this.on('activate', this.onActivateDrag),
this.on('uiChange', this._uiChangeDrag),
this.on('childUIPointerDown', this._childUIPointerDownDrag),
this.on('deactivate', this.onDeactivateDrag),
this.on('cellChange', this.updateDraggable),
s &&
!r &&
(n.addEventListener('touchmove', function (){}), (r = !0)));
}),
(o.onActivateDrag=function (){
((this.handles=[this.viewport]),
this.bindHandles(),
this.updateDraggable());
}),
(o.onDeactivateDrag=function (){
(this.unbindHandles(),
this.element.classList.remove('is-draggable'));
}),
(o.updateDraggable=function (){
('>1'==this.options.draggable
? (this.isDraggable=1 < this.slides.length)
: (this.isDraggable=this.options.draggable),
this.isDraggable
? this.element.classList.add('is-draggable')
: this.element.classList.remove('is-draggable'));
}),
(o.bindDrag=function (){
((this.options.draggable = !0), this.updateDraggable());
}),
(o.unbindDrag=function (){
((this.options.draggable = !1), this.updateDraggable());
}),
(o._uiChangeDrag=function (){
delete this.isFreeScrolling;
}),
(o._childUIPointerDownDrag=function (t){
(t.preventDefault(), this.pointerDownFocus(t));
}),
(o.pointerDown=function (t, e){
if(!this.isDraggable)
return void this._pointerDownDefault(t, e);
if(!this.okayPointerDown(t)) return;
(this._pointerDownPreventDefault(t),
this.pointerDownFocus(t),
document.activeElement!=this.element &&
this.pointerDownBlur(),
(this.dragX=this.x),
this.viewport.classList.add('is-pointer-down'),
(this.pointerDownScroll=c()),
n.addEventListener('scroll', this),
this._pointerDownDefault(t, e));
}),
(o._pointerDownDefault=function (t, e){
((this.pointerDownPointer=e),
this._bindPostStartEvents(t),
this.dispatchEvent('pointerDown', t, [e]));
}));
var l={ INPUT: !0, TEXTAREA: !0, SELECT: !0 };
function c(){
return { x: n.pageXOffset, y: n.pageYOffset };}
return (
(o.pointerDownFocus=function (t){
l[t.target.nodeName]||this.focus();
}),
(o._pointerDownPreventDefault=function (t){
var e='touchstart'==t.type,
n='touch'==t.pointerType,
i=l[t.target.nodeName];
e||n || i||t.preventDefault();
}),
(o.hasDragStarted=function (t){
return Math.abs(t.x) > this.options.dragThreshold;
}),
(o.pointerUp=function (t, e){
(delete this.isTouchScrolling,
this.viewport.classList.remove('is-pointer-down'),
this.dispatchEvent('pointerUp', t, [e]),
this._dragPointerUp(t, e));
}),
(o.pointerDone=function (){
(n.removeEventListener('scroll', this),
delete this.pointerDownScroll);
}),
(o.dragStart=function (t, e){
if(!this.isDraggable) return;
((this.dragStartPosition=this.x),
this.startAnimation(),
n.removeEventListener('scroll', this),
this.dispatchEvent('dragStart', t, [e]));
}),
(o.pointerMove=function (t, e){
var n=this._dragPointerMove(t, e);
(this.dispatchEvent('pointerMove', t, [e, n]),
this._dragMove(t, e, n));
}),
(o.dragMove=function (t, e, n){
if(!this.isDraggable) return;
(t.preventDefault(), (this.previousDragX=this.dragX));
var i=this.options.rightToLeft ? -1:1;
this.options.wrapAround&&(n.x=n.x % this.slideableWidth);
var o=this.dragStartPosition + n.x * i;
if(!this.options.wrapAround&&this.slides.length){
var s=Math.max(-this.slides[0].target,
this.dragStartPosition,
);
o=s < o ? 0.5 * (o + s):o;
var r=Math.min(-this.getLastSlide().target,
this.dragStartPosition,
);
o=o < r ? 0.5 * (o + r):o;
}
((this.dragX=o),
(this.dragMoveTime=new Date()),
this.dispatchEvent('dragMove', t, [e, n]));
}),
(o.dragEnd=function (t, e){
if(!this.isDraggable) return;
this.options.freeScroll&&(this.isFreeScrolling = !0);
var n=this.dragEndRestingSelect();
if(this.options.freeScroll&&!this.options.wrapAround){
var i=this.getRestingPosition();
this.isFreeScrolling =
-i > this.slides[0].target &&
-i < this.getLastSlide().target;
} else
this.options.freeScroll ||
n!=this.selectedIndex ||
(n +=this.dragEndBoostSelect());
(delete this.previousDragX,
(this.isDragSelect=this.options.wrapAround),
this.select(n),
delete this.isDragSelect,
this.dispatchEvent('dragEnd', t, [e]));
}),
(o.dragEndRestingSelect=function (){
var t=this.getRestingPosition(),
e=Math.abs(this.getSlideDistance(-t, this.selectedIndex)),
n=this._getClosestResting(t, e, 1),
i=this._getClosestResting(t, e, -1);
return n.distance < i.distance ? n.index:i.index;
}),
(o._getClosestResting=function (t, e, n){
for (
var i=this.selectedIndex,
o=1 / 0,
s =
this.options.contain&&!this.options.wrapAround
? function (t, e){
return t <=e;
}
: function (t, e){
return t < e;
};
s(e, o) &&
((i +=n),
(o=e),
null!==(e=this.getSlideDistance(-t, i)));
)
e=Math.abs(e);
return { distance: o, index: i - n };}),
(o.getSlideDistance=function (t, e){
var n=this.slides.length,
i=this.options.wrapAround&&1 < n,
o=i ? a.modulo(e, n):e,
s=this.slides[o];
if(!s) return null;
var r=i ? this.slideableWidth * Math.floor(e / n):0;
return t - (s.target + r);
}),
(o.dragEndBoostSelect=function (){
if(void 0===this.previousDragX ||
!this.dragMoveTime ||
100 < new Date() - this.dragMoveTime
)
return 0;
var t=this.getSlideDistance(-this.dragX, this.selectedIndex),
e=this.previousDragX - this.dragX;
if(0 < t&&0 < e) return 1;
if(t < 0&&e < 0) return -1;
return 0;
}),
(o.staticClick=function (t, e){
var n=this.getParentCell(t.target),
i=n&&n.element,
o=n&&this.cells.indexOf(n);
this.dispatchEvent('staticClick', t, [e, i, o]);
}),
(o.onscroll=function (){
var t=c(),
e=this.pointerDownScroll.x - t.x,
n=this.pointerDownScroll.y - t.y;
(3 < Math.abs(e)||3 < Math.abs(n))&&this._pointerDone();
}),
e
);
}),
'function'==typeof define&&define.amd
? define(
['./flickity', 'unidragger/unidragger', 'fizzy-ui-utils/utils'],
function (t, e, n){
return o(i, t, e, n);
},
)
: 'object'==typeof e&&e.exports
? (e.exports=o(
i,
t('./flickity'),
t('unidragger'),
t('fizzy-ui-utils'),
))
: (i.Flickity=o(i, i.Flickity, i.Unidragger, i.fizzyUIUtils)));
},
{ './flickity': 10, 'fizzy-ui-utils': 4, unidragger: 28 },
],
10: [
function (e, n, t){
!(function (r, a){
if('function'==typeof define&&define.amd)
define([
'ev-emitter/ev-emitter',
'get-size/get-size',
'fizzy-ui-utils/utils',
'./cell',
'./slide',
'./animate',
], function (t, e, n, i, o, s){
return a(r, t, e, n, i, o, s);
});
else if('object'==typeof n&&n.exports)
n.exports=a(
r,
e('ev-emitter'),
e('get-size'),
e('fizzy-ui-utils'),
e('./cell'),
e('./slide'),
e('./animate'),
);
else {
var t=r.Flickity;
r.Flickity=a(
r,
r.EvEmitter,
r.getSize,
r.fizzyUIUtils,
t.Cell,
t.Slide,
t.animatePrototype,
);
}})(window, function t(i, e, n, a, o, r, s){
'use strict';
var l=i.jQuery,
c=i.getComputedStyle,
d=i.console;
function u(t, e){
for (t=a.makeArray(t); t.length;) e.appendChild(t.shift());
}
var f=0,
h={};
function p(t, e){
var n=a.getQueryElement(t);
if(!n)
return void (
d&&d.error('Bad element for Flickity: ' + (n||t))
);
if(((this.element=n), this.element.flickityGUID)){
var i=h[this.element.flickityGUID];
return (i.option(e), i);
}
(l&&(this.$element=l(this.element)),
(this.options=a.extend({}, this.constructor.defaults)),
this.option(e),
this._create());
}
((p.defaults={
accessibility: !0,
cellAlign: 'center',
freeScrollFriction: 0.075,
friction: 0.28,
namespaceJQueryEvents: !0,
percentPosition: !0,
resize: !0,
selectedAttraction: 0.025,
setGallerySize: !0,
}),
(p.createMethods=[]));
var g=p.prototype;
(a.extend(g, e.prototype),
(g._create=function (){
var t=(this.guid=++f);
for (var e in ((this.element.flickityGUID=t),
((h[t]=this).selectedIndex=0),
(this.restingFrames=0),
(this.x=0),
(this.velocity=0),
(this.originSide=this.options.rightToLeft ? 'right':'left'),
(this.viewport=document.createElement('div')),
(this.viewport.className='flickity-viewport'),
this._createSlider(),
(this.options.resize||this.options.watchCSS) &&
i.addEventListener('resize', this),
this.options.on)){
var n=this.options.on[e];
this.on(e, n);
}
(p.createMethods.forEach(function (t){
this[t]();
}, this),
this.options.watchCSS ? this.watchCSS():this.activate());
}),
(g.option=function (t){
a.extend(this.options, t);
}),
(g.activate=function (){
if(this.isActive) return;
var t;
((this.isActive = !0),
this.element.classList.add('flickity-enabled'),
this.options.rightToLeft &&
this.element.classList.add('flickity-rtl'),
this.getSize(),
u(
this._filterFindCellElements(this.element.children),
this.slider,
),
this.viewport.appendChild(this.slider),
this.element.appendChild(this.viewport),
this.reloadCells(),
this.options.accessibility &&
((this.element.tabIndex=0),
this.element.addEventListener('keydown', this)),
this.emitEvent('activate'));
var e=this.options.initialIndex;
((t=this.isInitActivated
? this.selectedIndex
: void 0!==e&&this.cells[e]
? e
: 0),
this.select(t, !1, !0),
(this.isInitActivated = !0),
this.dispatchEvent('ready'));
}),
(g._createSlider=function (){
var t=document.createElement('div');
((t.className='flickity-slider'),
(t.style[this.originSide]=0),
(this.slider=t));
}),
(g._filterFindCellElements=function (t){
return a.filterFindElements(t, this.options.cellSelector);
}),
(g.reloadCells=function (){
((this.cells=this._makeCells(this.slider.children)),
this.positionCells(),
this._getWrapShiftCells(),
this.setGallerySize());
}),
(g._makeCells=function (t){
return this._filterFindCellElements(t).map(function (t){
return new o(t, this);
}, this);
}),
(g.getLastCell=function (){
return this.cells[this.cells.length - 1];
}),
(g.getLastSlide=function (){
return this.slides[this.slides.length - 1];
}),
(g.positionCells=function (){
(this._sizeCells(this.cells), this._positionCells(0));
}),
(g._positionCells=function (t){
((t=t||0),
(this.maxCellHeight=(t&&this.maxCellHeight)||0));
var e=0;
if(0 < t){
var n=this.cells[t - 1];
e=n.x + n.size.outerWidth;
}
for (var i=this.cells.length, o=t; o < i; o++){
var s=this.cells[o];
(s.setPosition(e),
(e +=s.size.outerWidth),
(this.maxCellHeight=Math.max(s.size.outerHeight,
this.maxCellHeight,
)));
}
((this.slideableWidth=e),
this.updateSlides(),
this._containSlides(),
(this.slidesWidth=i
? this.getLastSlide().target - this.slides[0].target
: 0));
}),
(g._sizeCells=function (t){
t.forEach(function (t){
t.getSize();
});
}),
(g.updateSlides=function (){
if(((this.slides=[]), !this.cells.length)) return;
var i=new r(this);
this.slides.push(i);
var o='left'==this.originSide ? 'marginRight':'marginLeft',
s=this._getCanCellFit();
(this.cells.forEach(function (t, e){
if(!i.cells.length) return void i.addCell(t);
var n =
i.outerWidth -
i.firstMargin +
(t.size.outerWidth - t.size[o]);
(s.call(this, e, n) ||
(i.updateTarget(), (i=new r(this)), this.slides.push(i)),
i.addCell(t));
}, this),
i.updateTarget(),
this.updateSelectedSlide());
}),
(g._getCanCellFit=function (){
var t=this.options.groupCells;
if(!t)
return function (){
return !1;
};
if('number'==typeof t){
var e=parseInt(t, 10);
return function (t){
return t % e!=0;
};}
var n='string'==typeof t&&t.match(/^(\d+)%$/),
i=n ? parseInt(n[1], 10) / 100:1;
return function (t, e){
return e <=(this.size.innerWidth + 1) * i;
};}),
(g._init=g.reposition =
function (){
(this.positionCells(), this.positionSliderAtSelected());
}),
(g.getSize=function (){
((this.size=n(this.element)),
this.setCellAlign(),
(this.cursorPosition=this.size.innerWidth * this.cellAlign));
}));
var m={
center: { left: 0.5, right: 0.5 },
left: { left: 0, right: 1 },
right: { right: 0, left: 1 },
};
return (
(g.setCellAlign=function (){
var t=m[this.options.cellAlign];
this.cellAlign=t ? t[this.originSide]:this.options.cellAlign;
}),
(g.setGallerySize=function (){
if(this.options.setGallerySize){
var t =
this.options.adaptiveHeight&&this.selectedSlide
? this.selectedSlide.height
: this.maxCellHeight;
this.viewport.style.height=t + 'px';
}}),
(g._getWrapShiftCells=function (){
if(!this.options.wrapAround) return;
(this._unshiftCells(this.beforeShiftCells),
this._unshiftCells(this.afterShiftCells));
var t=this.cursorPosition,
e=this.cells.length - 1;
((this.beforeShiftCells=this._getGapCells(t, e, -1)),
(t=this.size.innerWidth - this.cursorPosition),
(this.afterShiftCells=this._getGapCells(t, 0, 1)));
}),
(g._getGapCells=function (t, e, n){
for (var i=[]; 0 < t;){
var o=this.cells[e];
if(!o) break;
(i.push(o), (e +=n), (t -=o.size.outerWidth));
}
return i;
}),
(g._containSlides=function (){
if(!this.options.contain ||
this.options.wrapAround ||
!this.cells.length
)
return;
var t=this.options.rightToLeft,
e=t ? 'marginRight':'marginLeft',
n=t ? 'marginLeft':'marginRight',
i=this.slideableWidth - this.getLastCell().size[n],
o=i < this.size.innerWidth,
s=this.cursorPosition + this.cells[0].size[e],
r=i - this.size.innerWidth * (1 - this.cellAlign);
this.slides.forEach(function (t){
t.target=o
? i * this.cellAlign
: ((t.target=Math.max(t.target, s)), Math.min(t.target, r));
}, this);
}),
(g.dispatchEvent=function (t, e, n){
var i=e ? [e].concat(n):n;
if((this.emitEvent(t, i), l&&this.$element)){
var o=(t +=this.options.namespaceJQueryEvents
? '.flickity'
: '');
if(e){
var s=l.Event(e);
((s.type=t), (o=s));
}
this.$element.trigger(o, n);
}}),
(g.select=function (t, e, n){
if(!this.isActive) return;
if(((t=parseInt(t, 10)),
this._wrapSelect(t),
(this.options.wrapAround||e) &&
(t=a.modulo(t, this.slides.length)),
!this.slides[t])
)
return;
var i=this.selectedIndex;
((this.selectedIndex=t),
this.updateSelectedSlide(),
n ? this.positionSliderAtSelected():this.startAnimation(),
this.options.adaptiveHeight&&this.setGallerySize(),
this.dispatchEvent('select', null, [t]),
t!=i&&this.dispatchEvent('change', null, [t]),
this.dispatchEvent('cellSelect'));
}),
(g._wrapSelect=function (t){
var e=this.slides.length;
if(!(this.options.wrapAround&&1 < e)) return t;
var n=a.modulo(t, e),
i=Math.abs(n - this.selectedIndex),
o=Math.abs(n + e - this.selectedIndex),
s=Math.abs(n - e - this.selectedIndex);
(!this.isDragSelect&&o < i
? (t +=e)
: !this.isDragSelect&&s < i&&(t -=e),
t < 0
? (this.x -=this.slideableWidth)
: e <=t&&(this.x +=this.slideableWidth));
}),
(g.previous=function (t, e){
this.select(this.selectedIndex - 1, t, e);
}),
(g.next=function (t, e){
this.select(this.selectedIndex + 1, t, e);
}),
(g.updateSelectedSlide=function (){
var t=this.slides[this.selectedIndex];
if(!t) return;
(this.unselectSelectedSlide(),
(this.selectedSlide=t).select(),
(this.selectedCells=t.cells),
(this.selectedElements=t.getCellElements()),
(this.selectedCell=t.cells[0]),
(this.selectedElement=this.selectedElements[0]));
}),
(g.unselectSelectedSlide=function (){
this.selectedSlide&&this.selectedSlide.unselect();
}),
(g.selectCell=function (t, e, n){
var i=this.queryCell(t);
if(!i) return;
var o=this.getCellSlideIndex(i);
this.select(o, e, n);
}),
(g.getCellSlideIndex=function (t){
for (var e=0; e < this.slides.length; e++){
if(-1!=this.slides[e].cells.indexOf(t)) return e;
}}),
(g.getCell=function (t){
for (var e=0; e < this.cells.length; e++){
var n=this.cells[e];
if(n.element==t) return n;
}}),
(g.getCells=function (t){
t=a.makeArray(t);
var n=[];
return (
t.forEach(function (t){
var e=this.getCell(t);
e&&n.push(e);
}, this),
n
);
}),
(g.getCellElements=function (){
return this.cells.map(function (t){
return t.element;
});
}),
(g.getParentCell=function (t){
var e=this.getCell(t);
if(e) return e;
return (
(t=a.getParent(t, '.flickity-slider > *')),
this.getCell(t)
);
}),
(g.getAdjacentCellElements=function (t, e){
if(!t) return this.selectedSlide.getCellElements();
e=void 0===e ? this.selectedIndex:e;
var n=this.slides.length;
if(n <=1 + 2 * t) return this.getCellElements();
for (var i=[], o=e - t; o <=e + t; o++){
var s=this.options.wrapAround ? a.modulo(o, n):o,
r=this.slides[s];
r&&(i=i.concat(r.getCellElements()));
}
return i;
}),
(g.queryCell=function (t){
if('number'==typeof t) return this.cells[t];
return (
'string'==typeof t&&(t=this.element.querySelector(t)),
this.getCell(t)
);
}),
(g.uiChange=function (){
this.emitEvent('uiChange');
}),
(g.childUIPointerDown=function (t){
this.emitEvent('childUIPointerDown', [t]);
}),
(g.onresize=function (){
(this.watchCSS(), this.resize());
}),
a.debounceMethod(p, 'onresize', 150),
(g.resize=function (){
if(!this.isActive) return;
(this.getSize(),
this.options.wrapAround &&
(this.x=a.modulo(this.x, this.slideableWidth)),
this.positionCells(),
this._getWrapShiftCells(),
this.setGallerySize(),
this.emitEvent('resize'));
var t=this.selectedElements&&this.selectedElements[0];
this.selectCell(t, !1, !0);
}),
(g.watchCSS=function (){
if(!this.options.watchCSS) return;
-1!=c(this.element, ':after').content.indexOf('flickity')
? this.activate()
: this.deactivate();
}),
(g.onkeydown=function (t){
var e =
document.activeElement &&
document.activeElement!=this.element;
if(!this.options.accessibility||e) return;
var n=p.keyboardHandlers[t.keyCode];
n&&n.call(this);
}),
(p.keyboardHandlers={
37: function (){
var t=this.options.rightToLeft ? 'next':'previous';
(this.uiChange(), this[t]());
},
39: function (){
var t=this.options.rightToLeft ? 'previous':'next';
(this.uiChange(), this[t]());
},
}),
(g.focus=function (){
var t=i.pageYOffset;
(this.element.focus({ preventScroll: !0 }),
i.pageYOffset!=t&&i.scrollTo(i.pageXOffset, t));
}),
(g.deactivate=function (){
if(!this.isActive) return;
(this.element.classList.remove('flickity-enabled'),
this.element.classList.remove('flickity-rtl'),
this.unselectSelectedSlide(),
this.cells.forEach(function (t){
t.destroy();
}),
this.element.removeChild(this.viewport),
u(this.slider.children, this.element),
this.options.accessibility &&
(this.element.removeAttribute('tabIndex'),
this.element.removeEventListener('keydown', this)),
(this.isActive = !1),
this.emitEvent('deactivate'));
}),
(g.destroy=function (){
(this.deactivate(),
i.removeEventListener('resize', this),
this.emitEvent('destroy'),
l&&this.$element&&l.removeData(this.element, 'flickity'),
delete this.element.flickityGUID,
delete h[this.guid]);
}),
a.extend(g, s),
(p.data=function (t){
var e=(t=a.getQueryElement(t))&&t.flickityGUID;
return e&&h[e];
}),
a.htmlInit(p, 'flickity'),
l&&l.bridget&&l.bridget('flickity', p),
(p.setJQuery=function (t){
l=t;
}),
(p.Cell=o),
p
);
});
},
{
'./animate': 7,
'./cell': 8,
'./slide': 16,
'ev-emitter': 3,
'fizzy-ui-utils': 4,
'get-size': 17,
},
],
11: [
function (t, e, n){
var i;
(window,
(i=function t(e){
return e;
}),
'function'==typeof define&&define.amd
? define(
[
'./flickity',
'./drag',
'./prev-next-button',
'./page-dots',
'./player',
'./add-remove-cell',
'./lazyload',
],
i,
)
: 'object'==typeof e &&
e.exports &&
(e.exports=i(
t('./flickity'),
t('./drag'),
t('./prev-next-button'),
t('./page-dots'),
t('./player'),
t('./add-remove-cell'),
t('./lazyload'),
)));
},
{
'./add-remove-cell': 6,
'./drag': 9,
'./flickity': 10,
'./lazyload': 12,
'./page-dots': 13,
'./player': 14,
'./prev-next-button': 15,
},
],
12: [
function (t, e, n){
var i, o;
((i=window),
(o=function t(e, n, r){
'use strict';
n.createMethods.push('_createLazyload');
var i=n.prototype;
function o(t, e){
((this.img=t), (this.flickity=e), this.load());
}
return (
(i._createLazyload=function (){
this.on('select', this.lazyLoad);
}),
(i.lazyLoad=function (){
var t=this.options.lazyLoad;
if(!t) return;
var e='number'==typeof t ? t:0,
n=this.getAdjacentCellElements(e),
i=[];
(n.forEach(function (t){
var e=(function t(e){
if('IMG'==e.nodeName){
var n=e.getAttribute('data-flickity-lazyload'),
i=e.getAttribute('data-flickity-lazyload-src'),
o=e.getAttribute('data-flickity-lazyload-srcset');
if(n||i || o) return [e];
}
var s=e.querySelectorAll('img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]',
);
return r.makeArray(s);
})(t);
i=i.concat(e);
}),
i.forEach(function (t){
new o(t, this);
}, this));
}),
(o.prototype.handleEvent=r.handleEvent),
(o.prototype.load=function (){
(this.img.addEventListener('load', this),
this.img.addEventListener('error', this));
var t =
this.img.getAttribute('data-flickity-lazyload') ||
this.img.getAttribute('data-flickity-lazyload-src'),
e=this.img.getAttribute('data-flickity-lazyload-srcset');
((this.img.src=t),
e&&this.img.setAttribute('srcset', e),
this.img.removeAttribute('data-flickity-lazyload'),
this.img.removeAttribute('data-flickity-lazyload-src'),
this.img.removeAttribute('data-flickity-lazyload-srcset'));
}),
(o.prototype.onload=function (t){
this.complete(t, 'flickity-lazyloaded');
}),
(o.prototype.onerror=function (t){
this.complete(t, 'flickity-lazyerror');
}),
(o.prototype.complete=function (t, e){
(this.img.removeEventListener('load', this),
this.img.removeEventListener('error', this));
var n=this.flickity.getParentCell(this.img),
i=n&&n.element;
(this.flickity.cellSizeChange(i),
this.img.classList.add(e),
this.flickity.dispatchEvent('lazyLoad', t, i));
}),
(n.LazyLoader=o),
n
);
}),
'function'==typeof define&&define.amd
? define(['./flickity', 'fizzy-ui-utils/utils'], function (t, e){
return o(0, t, e);
})
: 'object'==typeof e&&e.exports
? (e.exports=o(0, t('./flickity'), t('fizzy-ui-utils')))
: o(0, i.Flickity, i.fizzyUIUtils));
},
{ './flickity': 10, 'fizzy-ui-utils': 4 },
],
13: [
function (t, e, n){
var i, o;
((i=window),
(o=function t(e, n, i, o){
'use strict';
function s(t){
((this.parent=t), this._create());
}
(((s.prototype=new i())._create=function (){
((this.holder=document.createElement('ol')),
(this.holder.className='flickity-page-dots'),
(this.dots=[]),
this.on('tap', this.onTap),
this.on('pointerDown',
this.parent.childUIPointerDown.bind(this.parent),
));
}),
(s.prototype.activate=function (){
(this.setDots(),
this.bindTap(this.holder),
this.parent.element.appendChild(this.holder));
}),
(s.prototype.deactivate=function (){
(this.parent.element.removeChild(this.holder),
i.prototype.destroy.call(this));
}),
(s.prototype.setDots=function (){
var t=this.parent.slides.length - this.dots.length;
0 < t ? this.addDots(t):t < 0&&this.removeDots(-t);
}),
(s.prototype.addDots=function (t){
for (
var e=document.createDocumentFragment(),
n=[],
i=this.dots.length,
o=i + t,
s=i;
s < o;
s++
){
var r=document.createElement('li');
((r.className='dot'),
r.setAttribute('aria-label', 'Page dot ' + (s + 1)),
e.appendChild(r),
n.push(r));
}
(this.holder.appendChild(e), (this.dots=this.dots.concat(n)));
}),
(s.prototype.removeDots=function (t){
this.dots.splice(this.dots.length - t, t).forEach(function (t){
this.holder.removeChild(t);
}, this);
}),
(s.prototype.updateSelected=function (){
if((this.selectedDot &&
((this.selectedDot.className='dot'),
this.selectedDot.removeAttribute('aria-current')),
!this.dots.length)
)
return;
((this.selectedDot=this.dots[this.parent.selectedIndex]),
(this.selectedDot.className='dot is-selected'),
this.selectedDot.setAttribute('aria-current', 'step'));
}),
(s.prototype.onTap=function (t){
var e=t.target;
if('LI'!=e.nodeName) return;
this.parent.uiChange();
var n=this.dots.indexOf(e);
this.parent.select(n);
}),
(s.prototype.destroy=function (){
this.deactivate();
}),
(n.PageDots=s),
o.extend(n.defaults, { pageDots: !0 }),
n.createMethods.push('_createPageDots'));
var r=n.prototype;
return (
(r._createPageDots=function (){
if(!this.options.pageDots) return;
((this.pageDots=new s(this)),
this.on('activate', this.activatePageDots),
this.on('select', this.updateSelectedPageDots),
this.on('cellChange', this.updatePageDots),
this.on('resize', this.updatePageDots),
this.on('deactivate', this.deactivatePageDots));
}),
(r.activatePageDots=function (){
this.pageDots.activate();
}),
(r.updateSelectedPageDots=function (){
this.pageDots.updateSelected();
}),
(r.updatePageDots=function (){
this.pageDots.setDots();
}),
(r.deactivatePageDots=function (){
this.pageDots.deactivate();
}),
(n.PageDots=s),
n
);
}),
'function'==typeof define&&define.amd
? define(
[
'./flickity',
'tap-listener/tap-listener',
'fizzy-ui-utils/utils',
],
function (t, e, n){
return o(0, t, e, n);
},
)
: 'object'==typeof e&&e.exports
? (e.exports=o(
0,
t('./flickity'),
t('tap-listener'),
t('fizzy-ui-utils'),
))
: o(0, i.Flickity, i.TapListener, i.fizzyUIUtils));
},
{ './flickity': 10, 'fizzy-ui-utils': 4, 'tap-listener': 27 },
],
14: [
function (t, e, n){
var i, o;
((i=window),
(o=function t(e, n, i){
'use strict';
function o(t){
((this.parent=t),
(this.state='stopped'),
(this.onVisibilityChange=this.visibilityChange.bind(this)),
(this.onVisibilityPlay=this.visibilityPlay.bind(this)));
}
(((o.prototype=Object.create(e.prototype)).play=function (){
if('playing'==this.state) return;
if(document.hidden)
return void document.addEventListener('visibilitychange',
this.onVisibilityPlay,
);
((this.state='playing'),
document.addEventListener('visibilitychange',
this.onVisibilityChange,
),
this.tick());
}),
(o.prototype.tick=function (){
if('playing'!=this.state) return;
var t=this.parent.options.autoPlay;
t='number'==typeof t ? t:3e3;
var e=this;
(this.clear(),
(this.timeout=setTimeout(function (){
(e.parent.next(!0), e.tick());
}, t)));
}),
(o.prototype.stop=function (){
((this.state='stopped'),
this.clear(),
document.removeEventListener('visibilitychange',
this.onVisibilityChange,
));
}),
(o.prototype.clear=function (){
clearTimeout(this.timeout);
}),
(o.prototype.pause=function (){
'playing'==this.state &&
((this.state='paused'), this.clear());
}),
(o.prototype.unpause=function (){
'paused'==this.state&&this.play();
}),
(o.prototype.visibilityChange=function (){
this[document.hidden ? 'pause':'unpause']();
}),
(o.prototype.visibilityPlay=function (){
(this.play(),
document.removeEventListener('visibilitychange',
this.onVisibilityPlay,
));
}),
n.extend(i.defaults, { pauseAutoPlayOnHover: !0 }),
i.createMethods.push('_createPlayer'));
var s=i.prototype;
return (
(s._createPlayer=function (){
((this.player=new o(this)),
this.on('activate', this.activatePlayer),
this.on('uiChange', this.stopPlayer),
this.on('pointerDown', this.stopPlayer),
this.on('deactivate', this.deactivatePlayer));
}),
(s.activatePlayer=function (){
if(!this.options.autoPlay) return;
(this.player.play(),
this.element.addEventListener('mouseenter', this));
}),
(s.playPlayer=function (){
this.player.play();
}),
(s.stopPlayer=function (){
this.player.stop();
}),
(s.pausePlayer=function (){
this.player.pause();
}),
(s.unpausePlayer=function (){
this.player.unpause();
}),
(s.deactivatePlayer=function (){
(this.player.stop(),
this.element.removeEventListener('mouseenter', this));
}),
(s.onmouseenter=function (){
if(!this.options.pauseAutoPlayOnHover) return;
(this.player.pause(),
this.element.addEventListener('mouseleave', this));
}),
(s.onmouseleave=function (){
(this.player.unpause(),
this.element.removeEventListener('mouseleave', this));
}),
(i.Player=o),
i
);
}),
'function'==typeof define&&define.amd
? define(
['ev-emitter/ev-emitter', 'fizzy-ui-utils/utils', './flickity'],
function (t, e, n){
return o(t, e, n);
},
)
: 'object'==typeof e&&e.exports
? (e.exports=o(
t('ev-emitter'),
t('fizzy-ui-utils'),
t('./flickity'),
))
: o(i.EvEmitter, i.fizzyUIUtils, i.Flickity));
},
{ './flickity': 10, 'ev-emitter': 3, 'fizzy-ui-utils': 4 },
],
15: [
function (t, e, n){
var i, o;
((i=window),
(o=function t(e, n, i, o){
'use strict';
var s='http://www.w3.org/2000/svg';
function r(t, e){
((this.direction=t), (this.parent=e), this._create());
}
(((r.prototype=Object.create(i.prototype))._create=function (){
((this.isEnabled = !0), (this.isPrevious=-1==this.direction));
var t=this.parent.options.rightToLeft ? 1:-1;
this.isLeft=this.direction==t;
var e=(this.element=document.createElement('button'));
((e.className='flickity-button flickity-prev-next-button'),
(e.className +=this.isPrevious ? ' previous':' next'),
e.setAttribute('type', 'button'),
this.disable(),
e.setAttribute('aria-label',
this.isPrevious ? 'Previous':'Next',
));
var n=this.createSVG();
(e.appendChild(n),
this.on('tap', this.onTap),
this.parent.on('select', this.update.bind(this)),
this.on('pointerDown',
this.parent.childUIPointerDown.bind(this.parent),
));
}),
(r.prototype.activate=function (){
(this.bindTap(this.element),
this.element.addEventListener('click', this),
this.parent.element.appendChild(this.element));
}),
(r.prototype.deactivate=function (){
(this.parent.element.removeChild(this.element),
i.prototype.destroy.call(this),
this.element.removeEventListener('click', this));
}),
(r.prototype.createSVG=function (){
var t=document.createElementNS(s, 'svg');
(t.setAttribute('class', 'flickity-button-icon'),
t.setAttribute('viewBox', '0 0 100 100'));
var e=document.createElementNS(s, 'path'),
n=(function t(e){
if('string'==typeof e) return e;
return (
'M ' +
e.x0 +
',50 L ' +
e.x1 +
',' +
(e.y1 + 50) +
' L ' +
e.x2 +
',' +
(e.y2 + 50) +
' L ' +
e.x3 +
',50  L ' +
e.x2 +
',' +
(50 - e.y2) +
' L ' +
e.x1 +
',' +
(50 - e.y1) +
' Z'
);
})(this.parent.options.arrowShape);
return (
e.setAttribute('d', n),
e.setAttribute('class', 'arrow'),
this.isLeft ||
e.setAttribute('transform',
'translate(100, 100) rotate(180) ',
),
t.appendChild(e),
t
);
}),
(r.prototype.onTap=function (){
if(!this.isEnabled) return;
this.parent.uiChange();
var t=this.isPrevious ? 'previous':'next';
this.parent[t]();
}),
(r.prototype.handleEvent=o.handleEvent),
(r.prototype.onclick=function (t){
var e=document.activeElement;
e&&e==this.element&&this.onTap(t, t);
}),
(r.prototype.enable=function (){
if(this.isEnabled) return;
((this.element.disabled = !1), (this.isEnabled = !0));
}),
(r.prototype.disable=function (){
if(!this.isEnabled) return;
((this.element.disabled = !0), (this.isEnabled = !1));
}),
(r.prototype.update=function (){
var t=this.parent.slides;
if(this.parent.options.wrapAround&&1 < t.length)
return void this.enable();
var e=t.length ? t.length - 1:0,
n=this.isPrevious ? 0:e;
this[this.parent.selectedIndex==n ? 'disable':'enable']();
}),
(r.prototype.destroy=function (){
this.deactivate();
}),
o.extend(n.defaults, {
prevNextButtons: !0,
arrowShape: { x0: 10, x1: 60, y1: 50, x2: 70, y2: 40, x3: 30 },
}),
n.createMethods.push('_createPrevNextButtons'));
var a=n.prototype;
return (
(a._createPrevNextButtons=function (){
if(!this.options.prevNextButtons) return;
((this.prevButton=new r(-1, this)),
(this.nextButton=new r(1, this)),
this.on('activate', this.activatePrevNextButtons));
}),
(a.activatePrevNextButtons=function (){
(this.prevButton.activate(),
this.nextButton.activate(),
this.on('deactivate', this.deactivatePrevNextButtons));
}),
(a.deactivatePrevNextButtons=function (){
(this.prevButton.deactivate(),
this.nextButton.deactivate(),
this.off('deactivate', this.deactivatePrevNextButtons));
}),
(n.PrevNextButton=r),
n
);
}),
'function'==typeof define&&define.amd
? define(
[
'./flickity',
'tap-listener/tap-listener',
'fizzy-ui-utils/utils',
],
function (t, e, n){
return o(0, t, e, n);
},
)
: 'object'==typeof e&&e.exports
? (e.exports=o(
0,
t('./flickity'),
t('tap-listener'),
t('fizzy-ui-utils'),
))
: o(0, i.Flickity, i.TapListener, i.fizzyUIUtils));
},
{ './flickity': 10, 'fizzy-ui-utils': 4, 'tap-listener': 27 },
],
16: [
function (t, e, n){
var i, o;
((i=window),
(o=function t(){
'use strict';
function e(t){
((this.parent=t),
(this.isOriginLeft='left'==t.originSide),
(this.cells=[]),
(this.outerWidth=0),
(this.height=0));
}
var n=e.prototype;
return (
(n.addCell=function (t){
if((this.cells.push(t),
(this.outerWidth +=t.size.outerWidth),
(this.height=Math.max(t.size.outerHeight, this.height)),
1==this.cells.length)
){
this.x=t.x;
var e=this.isOriginLeft ? 'marginLeft':'marginRight';
this.firstMargin=t.size[e];
}}),
(n.updateTarget=function (){
var t=this.isOriginLeft ? 'marginRight':'marginLeft',
e=this.getLastCell(),
n=e ? e.size[t]:0,
i=this.outerWidth - (this.firstMargin + n);
this.target =
this.x + this.firstMargin + i * this.parent.cellAlign;
}),
(n.getLastCell=function (){
return this.cells[this.cells.length - 1];
}),
(n.select=function (){
this.changeSelected(!0);
}),
(n.unselect=function (){
this.changeSelected(!1);
}),
(n.changeSelected=function (e){
var n=e ? 'add':'remove';
this.cells.forEach(function (t){
(t.element.classList[n]('is-selected'),
t.element.setAttribute('aria-selected', e.toString()));
});
}),
(n.getCellElements=function (){
return this.cells.map(function (t){
return t.element;
});
}),
e
);
}),
'function'==typeof define&&define.amd
? define(o)
: 'object'==typeof e&&e.exports
? (e.exports=o())
: ((i.Flickity=i.Flickity||{}), (i.Flickity.Slide=o())));
},
{},
],
17: [
function (t, e, n){
var i, o;
((i=window),
(o=function t(){
'use strict';
function v(t){
var e=parseFloat(t);
return -1==t.indexOf('%')&&!isNaN(e)&&e;
}
var n =
'undefined'==typeof console
? function t(){}
: function (t){
console.error(t);
},
b=[
'paddingLeft',
'paddingRight',
'paddingTop',
'paddingBottom',
'marginLeft',
'marginRight',
'marginTop',
'marginBottom',
'borderLeftWidth',
'borderRightWidth',
'borderTopWidth',
'borderBottomWidth',
],
y=b.length;
function x(t){
var e=getComputedStyle(t);
return (
e ||
n(
'Style returned ' +
e +
'. Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1',
),
e
);
}
var w,
_ = !1;
function C(t){
if(((function t(){
if(_) return;
_ = !0;
var e=document.createElement('div');
((e.style.width='200px'),
(e.style.padding='1px 2px 3px 4px'),
(e.style.borderStyle='solid'),
(e.style.borderWidth='1px 2px 3px 4px'),
(e.style.boxSizing='border-box'));
var n=document.body||document.documentElement;
n.appendChild(e);
var i=x(e);
((w=200==Math.round(v(i.width))),
(C.isBoxSizeOuter=w),
n.removeChild(e));
})(),
'string'==typeof t&&(t=document.querySelector(t)),
!t||'object'!=typeof t||!t.nodeType)
)
return;
var e=x(t);
if('none'==e.display)
return (function t(){
for (
var e={
width: 0,
height: 0,
innerWidth: 0,
innerHeight: 0,
outerWidth: 0,
outerHeight: 0,
},
n=0;
n < y;
n++
)
e[b[n]]=0;
return e;
})();
var n={};
((n.width=t.offsetWidth), (n.height=t.offsetHeight));
for (
var i=(n.isBorderBox='border-box'==e.boxSizing), o=0;
o < y;
o++
){
var s=b[o],
r=e[s],
a=parseFloat(r);
n[s]=isNaN(a) ? 0:a;
}
var l=n.paddingLeft + n.paddingRight,
c=n.paddingTop + n.paddingBottom,
d=n.marginLeft + n.marginRight,
u=n.marginTop + n.marginBottom,
f=n.borderLeftWidth + n.borderRightWidth,
h=n.borderTopWidth + n.borderBottomWidth,
p=i&&w,
g=v(e.width);
!1!==g&&(n.width=g + (p ? 0:l + f));
var m=v(e.height);
return (
!1!==m&&(n.height=m + (p ? 0:c + h)),
(n.innerWidth=n.width - (l + f)),
(n.innerHeight=n.height - (c + h)),
(n.outerWidth=n.width + d),
(n.outerHeight=n.height + u),
n
);
}
return C;
}),
'function'==typeof define&&define.amd
? define(o)
: 'object'==typeof e&&e.exports
? (e.exports=o())
: (i.getSize=o()));
},
{},
],
18: [
function (t, n, i){
!(function (t, e){
'use strict';
'function'==typeof define&&define.amd
? define([], e)
: 'object'==typeof i
? (n.exports=e())
: (t.Headroom=e());
})(this, function (){
'use strict';
var t={
bind: !!function (){}.bind,
classList: 'classList' in document.documentElement,
rAF: !!(
window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame
),
};
function e(t){
((this.callback=t), (this.ticking = !1));
}
function n(t, e){
((e=(function t(e){
if(arguments.length <=0)
throw new Error('Missing arguments in extend function');
var n,
i,
o,
s=e||{};
for (i=1; i < arguments.length; i++){
var r=arguments[i]||{};
for (n in r)
'object'!=typeof s[n] ||
((o=s[n]) &&
'undefined'!=typeof window &&
(o===window||o.nodeType))
? (s[n]=s[n]||r[n])
: (s[n]=t(s[n], r[n]));
}
return s;
})(e, n.options)),
(this.lastKnownScrollY=0),
(this.elem=t),
(this.tolerance=(function t(e){
return e===Object(e) ? e:{ down: e, up: e };})(e.tolerance)),
(this.classes=e.classes),
(this.offset=e.offset),
(this.scroller=e.scroller),
(this.initialised = !1),
(this.onPin=e.onPin),
(this.onUnpin=e.onUnpin),
(this.onTop=e.onTop),
(this.onNotTop=e.onNotTop),
(this.onBottom=e.onBottom),
(this.onNotBottom=e.onNotBottom));
}
return (
(window.requestAnimationFrame =
window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame),
(e.prototype={
constructor: e,
update: function (){
(this.callback&&this.callback(), (this.ticking = !1));
},
requestTick: function (){
this.ticking ||
(requestAnimationFrame(
this.rafCallback ||
(this.rafCallback=this.update.bind(this)),
),
(this.ticking = !0));
},
handleEvent: function (){
this.requestTick();
},
}),
(n.prototype={
constructor: n,
init: function (){
if(!n.cutsTheMustard) return;
return (
(this.debouncer=new e(this.update.bind(this))),
this.elem.classList.add(this.classes.initial),
setTimeout(this.attachEvent.bind(this), 100),
this
);
},
destroy: function (){
var t=this.classes;
for (var e in ((this.initialised = !1), t))
t.hasOwnProperty(e)&&this.elem.classList.remove(t[e]);
this.scroller.removeEventListener('scroll', this.debouncer, !1);
},
attachEvent: function (){
this.initialised ||
((this.lastKnownScrollY=this.getScrollY()),
(this.initialised = !0),
this.scroller.addEventListener('scroll', this.debouncer, !1),
this.debouncer.handleEvent());
},
unpin: function (){
var t=this.elem.classList,
e=this.classes;
(!t.contains(e.pinned)&&t.contains(e.unpinned)) ||
(t.add(e.unpinned),
t.remove(e.pinned),
this.onUnpin&&this.onUnpin.call(this));
},
pin: function (){
var t=this.elem.classList,
e=this.classes;
t.contains(e.unpinned) &&
(t.remove(e.unpinned),
t.add(e.pinned),
this.onPin&&this.onPin.call(this));
},
top: function (){
var t=this.elem.classList,
e=this.classes;
t.contains(e.top) ||
(t.add(e.top),
t.remove(e.notTop),
this.onTop&&this.onTop.call(this));
},
notTop: function (){
var t=this.elem.classList,
e=this.classes;
t.contains(e.notTop) ||
(t.add(e.notTop),
t.remove(e.top),
this.onNotTop&&this.onNotTop.call(this));
},
bottom: function (){
var t=this.elem.classList,
e=this.classes;
t.contains(e.bottom) ||
(t.add(e.bottom),
t.remove(e.notBottom),
this.onBottom&&this.onBottom.call(this));
},
notBottom: function (){
var t=this.elem.classList,
e=this.classes;
t.contains(e.notBottom) ||
(t.add(e.notBottom),
t.remove(e.bottom),
this.onNotBottom&&this.onNotBottom.call(this));
},
getScrollY: function (){
return void 0!==this.scroller.pageYOffset
? this.scroller.pageYOffset
: void 0!==this.scroller.scrollTop
? this.scroller.scrollTop
: (
document.documentElement ||
document.body.parentNode ||
document.body
).scrollTop;
},
getViewportHeight: function (){
return (
window.innerHeight ||
document.documentElement.clientHeight ||
document.body.clientHeight
);
},
getElementPhysicalHeight: function (t){
return Math.max(t.offsetHeight, t.clientHeight);
},
getScrollerPhysicalHeight: function (){
return this.scroller===window ||
this.scroller===document.body
? this.getViewportHeight()
: this.getElementPhysicalHeight(this.scroller);
},
getDocumentHeight: function (){
var t=document.body,
e=document.documentElement;
return Math.max(t.scrollHeight,
e.scrollHeight,
t.offsetHeight,
e.offsetHeight,
t.clientHeight,
e.clientHeight,
);
},
getElementHeight: function (t){
return Math.max(t.scrollHeight, t.offsetHeight, t.clientHeight);
},
getScrollerHeight: function (){
return this.scroller===window ||
this.scroller===document.body
? this.getDocumentHeight()
: this.getElementHeight(this.scroller);
},
isOutOfBounds: function (t){
var e=t < 0,
n =
t + this.getScrollerPhysicalHeight() >
this.getScrollerHeight();
return e||n;
},
toleranceExceeded: function (t, e){
return Math.abs(t - this.lastKnownScrollY) >=this.tolerance[e];
},
shouldUnpin: function (t, e){
var n=t > this.lastKnownScrollY,
i=t >=this.offset;
return n&&i && e;
},
shouldPin: function (t, e){
var n=t < this.lastKnownScrollY,
i=t <=this.offset;
return (n&&e)||i;
},
update: function (){
var t=this.getScrollY(),
e=t > this.lastKnownScrollY ? 'down':'up',
n=this.toleranceExceeded(t, e);
if(this.isOutOfBounds(t)) return;
(t <=this.offset ? this.top():this.notTop(),
t + this.getViewportHeight() >=this.getScrollerHeight()
? this.bottom()
: this.notBottom(),
this.shouldUnpin(t, n)
? this.unpin()
: this.shouldPin(t, n)&&this.pin(),
(this.lastKnownScrollY=t));
},
}),
(n.options={
tolerance: { up: 0, down: 0 },
offset: 0,
scroller: window,
classes: {
pinned: 'headroom--pinned',
unpinned: 'headroom--unpinned',
top: 'headroom--top',
notTop: 'headroom--not-top',
bottom: 'headroom--bottom',
notBottom: 'headroom--not-bottom',
initial: 'headroom',
},
}),
(n.cutsTheMustard=void 0!==t&&t.rAF&&t.bind&&t.classList),
n
);
});
},
{},
],
19: [
function (t, e, n){
var i, o;
((i=this),
(o=function (t){
var u,
f,
l,
s,
e,
n,
h,
r,
a,
i,
o,
c,
d,
p,
g,
m,
v,
b,
y,
x,
w,
_,
C,
S,
T,
k,
E,
P,
$,
z,
A,
L,
D,
M,
N,
I,
j,
F,
O,
H,
q,
R,
B,
W,
U,
X,
Y,
V,
G,
Q,
K,
Z,
J,
tt,
et,
nt,
it,
ot,
st,
rt,
at,
lt,
ct,
dt,
ut,
ft,
ht,
pt,
gt,
mt,
vt,
bt,
yt,
xt,
wt,
_t,
Ct,
St,
Tt,
kt,
Et,
Pt,
$t,
zt,
At,
Lt,
Dt,
Mt,
Nt,
It,
jt,
Ft,
Ot,
Ht,
qt,
Rt,
Bt,
Wt,
Ut,
Xt,
Yt,
Vt,
Gt,
Qt,
Kt,
Zt,
Jt,
te,
ee,
ne,
ie,
oe,
se,
re,
ae,
le,
ce,
de,
ue,
fe,
he,
pe,
ge,
me,
ve,
be,
ye,
xe,
we,
_e,
Ce,
Se,
Te,
ke,
Ee,
Pe,
$e,
ze;
return (
((u=t)[(h='mmenu')]&&'7.1.0' < u[h].version) ||
((u[h]=function (t, e, n){
return (
(this.$menu=t),
(this._api=[
'bind',
'getInstance',
'initPanels',
'openPanel',
'closePanel',
'closeAllPanels',
'setSelected',
]),
(this.opts=e),
(this.conf=n),
(this.vars={}),
(this.cbck={}),
(this.mtch={}),
'function'==typeof this.___deprecated &&
this.___deprecated(),
this._initWrappers(),
this._initAddons(),
this._initExtensions(),
this._initHooks(),
this._initMenu(),
this._initPanels(),
this._initOpened(),
this._initAnchors(),
this._initMatchMedia(),
'function'==typeof this.___debug&&this.___debug(),
this
);
}),
(u[h].version='7.1.0'),
(u[h].uniqueId=0),
(u[h].wrappers={}),
(u[h].addons={}),
(u[h].defaults={
hooks: {},
extensions: [],
wrappers: [],
navbar: { add: !0, title: 'Menu', titleLink: 'parent' },
onClick: { setSelected: !0 },
slidingSubmenus: !0,
}),
(u[h].configuration={
classNames: {
divider: 'Divider',
inset: 'Inset',
nolistview: 'NoListview',
nopanel: 'NoPanel',
panel: 'Panel',
selected: 'Selected',
spacer: 'Spacer',
vertical: 'Vertical',
},
clone: !1,
language: null,
openingInterval: 25,
panelNodetype: 'ul, ol, div',
transitionDuration: 400,
}),
(u[h].prototype={
getInstance: function (){
return this;
},
initPanels: function (t){
this._initPanels(t);
},
openPanel: function (t, e){
if((this.trigger('openPanel:before', t),
t &&
t.length &&
(t.is('.' + f.panel)||(t=t.closest('.' + f.panel)),
t.is('.' + f.panel)))
){
var n=this;
if(('boolean'!=typeof e&&(e = !0),
t.parent('.' + f.listitem + '_vertical').length)
)
(t
.parents('.' + f.listitem + '_vertical')
.addClass(f.listitem + '_opened')
.children('.' + f.panel)
.removeClass(f.hidden),
this.openPanel(t
.parents('.' + f.panel)
.not(function (){
return u(this).parent('.' + f.listitem + '_vertical',
).length;
})
.first(),
),
this.trigger('openPanel:start', t),
this.trigger('openPanel:finish', t));
else {
if(t.hasClass(f.panel + '_opened')) return;
var i=this.$pnls.children('.' + f.panel),
o=this.$pnls.children('.' + f.panel + '_opened');
if(!u[h].support.csstransitions)
return (
o
.addClass(f.hidden)
.removeClass(f.panel + '_opened'),
t
.removeClass(f.hidden)
.addClass(f.panel + '_opened'),
this.trigger('openPanel:start', t),
void this.trigger('openPanel:finish', t)
);
i.not(t).removeClass(f.panel + '_opened-parent');
for (var s=t.data(l.parent); s;)
((s=s.closest('.' + f.panel)).parent('.' + f.listitem + '_vertical',
).length||s.addClass(f.panel + '_opened-parent'),
(s=s.data(l.parent)));
(i
.removeClass(f.panel + '_highest')
.not(o)
.not(t)
.addClass(f.hidden),
t.removeClass(f.hidden));
var r=function (){
(o.removeClass(f.panel + '_opened'),
t.addClass(f.panel + '_opened'),
t.hasClass(f.panel + '_opened-parent')
? (o.addClass(f.panel + '_highest'),
t.removeClass(f.panel + '_opened-parent'))
: (o.addClass(f.panel + '_opened-parent'),
t.addClass(f.panel + '_highest')),
n.trigger('openPanel:start', t));
},
a=function (){
(o
.removeClass(f.panel + '_highest')
.addClass(f.hidden),
t.removeClass(f.panel + '_highest'),
n.trigger('openPanel:finish', t));
};
e&&!t.hasClass(f.panel + '_noanimation')
? setTimeout(function (){
(n.__transitionend(t,
function (){
a();
},
n.conf.transitionDuration,
),
r());
}, n.conf.openingInterval)
: (r(), a());
}
this.trigger('openPanel:after', t);
}},
closePanel: function (t){
this.trigger('closePanel:before', t);
var e=t.parent();
(e.hasClass(f.listitem + '_vertical') &&
(e.removeClass(f.listitem + '_opened'),
t.addClass(f.hidden),
this.trigger('closePanel', t)),
this.trigger('closePanel:after', t));
},
closeAllPanels: function (t){
(this.trigger('closeAllPanels:before'),
this.$pnls
.find('.' + f.listview)
.children()
.removeClass(f.listitem + '_selected')
.filter('.' + f.listitem + '_vertical')
.removeClass(f.listitem + '_opened'));
var e=this.$pnls.children('.' + f.panel),
n=t&&t.length ? t:e.first();
(this.$pnls
.children('.' + f.panel)
.not(n)
.removeClass(f.panel + '_opened')
.removeClass(f.panel + '_opened-parent')
.removeClass(f.panel + '_highest')
.addClass(f.hidden),
this.openPanel(n, !1),
this.trigger('closeAllPanels:after'));
},
togglePanel: function (t){
var e=t.parent();
e.hasClass(f.listitem + '_vertical') &&
this[
e.hasClass(f.listitem + '_opened')
? 'closePanel'
: 'openPanel'
](t);
},
setSelected: function (t){
(this.trigger('setSelected:before', t),
this.$menu
.find('.' + f.listitem + '_selected')
.removeClass(f.listitem + '_selected'),
t.addClass(f.listitem + '_selected'),
this.trigger('setSelected:after', t));
},
bind: function (t, e){
((this.cbck[t]=this.cbck[t]||[]), this.cbck[t].push(e));
},
trigger: function (){
var t=Array.prototype.slice.call(arguments),
e=t.shift();
if(this.cbck[e])
for (var n=0, i=this.cbck[e].length; n < i; n++)
this.cbck[e][n].apply(this, t);
},
matchMedia: function (t, e, n){
var i={ yes: e, no: n };
((this.mtch[t]=this.mtch[t]||[]), this.mtch[t].push(i));
},
i18n: function (t){
return u[h].i18n(t, this.conf.language);
},
_initHooks: function (){
for (var t in this.opts.hooks)
this.bind(t, this.opts.hooks[t]);
},
_initWrappers: function (){
this.trigger('initWrappers:before');
for (var t=0; t < this.opts.wrappers.length; t++){
var e=u[h].wrappers[this.opts.wrappers[t]];
'function'==typeof e&&e.call(this);
}
this.trigger('initWrappers:after');
},
_initAddons: function (){
var t;
for (t in (this.trigger('initAddons:before'), u[h].addons))
(u[h].addons[t].add.call(this),
(u[h].addons[t].add=function (){}));
for (t in u[h].addons) u[h].addons[t].setup.call(this);
this.trigger('initAddons:after');
},
_initExtensions: function (){
this.trigger('initExtensions:before');
var e=this;
for (var t in (this.opts.extensions.constructor===Array &&
(this.opts.extensions={ all: this.opts.extensions }),
this.opts.extensions))
((this.opts.extensions[t]=this.opts.extensions[t].length
? f.menu +
'_' +
this.opts.extensions[t].join(' ' + f.menu + '_')
: ''),
this.opts.extensions[t] &&
(function (t){
e.matchMedia(t,
function (){
this.$menu.addClass(this.opts.extensions[t]);
},
function (){
this.$menu.removeClass(this.opts.extensions[t]);
},
);
})(t));
this.trigger('initExtensions:after');
},
_initMenu: function (){
(this.trigger('initMenu:before'),
this.conf.clone &&
((this.$orig=this.$menu),
(this.$menu=this.$orig.clone()),
this.$menu
.add(this.$menu.find('[id]'))
.filter('[id]')
.each(function (){
u(this).attr('id', f.mm(u(this).attr('id')));
})),
this.$menu.attr('id',
this.$menu.attr('id')||this.__getUniqueId(),
),
(this.$pnls=u('<div class="' + f.panels + '" />')
.append(this.$menu.children(this.conf.panelNodetype))
.prependTo(this.$menu)),
this.$menu.addClass(f.menu).parent().addClass(f.wrapper),
this.trigger('initMenu:after'));
},
_initPanels: function (t){
(this.trigger('initPanels:before', t),
(t=t||this.$pnls.children(this.conf.panelNodetype)));
var i=u(),
o=this,
s=function (t){
t.filter(o.conf.panelNodetype).each(function (t){
var e=o._initPanel(u(this));
if(e){
(o._initNavbar(e),
o._initListview(e),
(i=i.add(e)));
var n=e
.children('.' + f.listview)
.children('li')
.children(o.conf.panelNodetype)
.add(e.children('.' + o.conf.classNames.panel));
n.length&&s(n);
}});
};
(s(t), this.trigger('initPanels:after', i));
},
_initPanel: function (t){
if((this.trigger('initPanel:before', t), t.hasClass(f.panel))
)
return t;
if((this.__refactorClass(t,
this.conf.classNames.panel,
f.panel,
),
this.__refactorClass(t,
this.conf.classNames.nopanel,
f.nopanel,
),
this.__refactorClass(t,
this.conf.classNames.inset,
f.listview + '_inset',
),
t.filter('.' + f.listview + '_inset').addClass(f.nopanel),
t.hasClass(f.nopanel))
)
return !1;
var e =
t.hasClass(this.conf.classNames.vertical) ||
!this.opts.slidingSubmenus;
t.removeClass(this.conf.classNames.vertical);
var n=t.attr('id')||this.__getUniqueId();
(t.is('ul, ol') &&
(t.removeAttr('id'), t.wrap('<div />'), (t=t.parent())),
t.attr('id', n),
t.addClass(f.panel + ' ' + f.hidden));
var i=t.parent('li');
return (
e
? i.addClass(f.listitem + '_vertical')
: t.appendTo(this.$pnls),
i.length&&(i.data(l.child, t), t.data(l.parent, i)),
this.trigger('initPanel:after', t),
t
);
},
_initNavbar: function (t){
if((this.trigger('initNavbar:before', t),
!t.children('.' + f.navbar).length)
){
var e=t.data(l.parent),
n=u('<div class="' + f.navbar + '" />'),
i=this.__getPanelTitle(t, this.opts.navbar.title),
o='';
if(e&&e.length){
if(e.hasClass(f.listitem + '_vertical')) return;
if(e.parent().is('.' + f.listview))
var s=e
.children('a, span')
.not('.' + f.btn + '_next');
else
s=e
.closest('.' + f.panel)
.find('a[href="#' + t.attr('id') + '"]');
var r=(e=(s=s.first()).closest('.' + f.panel,
)).attr('id');
switch (
((i=this.__getPanelTitle(t,
u('<span>' + s.text() + '</span>').text(),
)),
this.opts.navbar.titleLink)
){
case 'anchor':
o=s.attr('href');
break;
case 'parent':
o='#' + r;
}
n.append('<a class="' +
f.btn +
' ' +
f.btn +
'_prev ' +
f.navbar +
'__btn" href="#' +
r +
'" />',
);
}else if(!this.opts.navbar.title) return;
(this.opts.navbar.add &&
t.addClass(f.panel + '_has-navbar'),
n
.append('<a class="' +
f.navbar +
'__title"' +
(o.length ? ' href="' + o + '"':'') +
'>' +
i +
'</a>',
)
.prependTo(t),
this.trigger('initNavbar:after', t));
}},
_initListview: function (t){
this.trigger('initListview:before', t);
var e=this.__childAddBack(t, 'ul, ol');
this.__refactorClass(e,
this.conf.classNames.nolistview,
f.nolistview,
);
var n=e
.not('.' + f.nolistview)
.addClass(f.listview)
.children()
.addClass(f.listitem);
(this.__refactorClass(n,
this.conf.classNames.selected,
f.listitem + '_selected',
),
this.__refactorClass(n,
this.conf.classNames.divider,
f.listitem + '_divider',
),
this.__refactorClass(n,
this.conf.classNames.spacer,
f.listitem + '_spacer',
),
n
.children('a, span')
.not('.' + f.btn)
.addClass(f.listitem + '__text'));
var i=t.data(l.parent);
if(i &&
i.is('.' + f.listitem) &&
!i.children('.' + f.btn).length
){
var o=i.children('a, span').first(),
s=u(
'<a class="' +
f.btn +
' ' +
f.btn +
'_next ' +
f.listitem +
'__btn" href="#' +
t.attr('id') +
'" />',
);
(s.insertAfter(o),
o.is('span') &&
(s.addClass(f.listitem + '__text').html(o.html()),
o.remove()));
}
this.trigger('initListview:after', t);
},
_initOpened: function (){
this.trigger('initOpened:before');
var t=this.$pnls
.find('.' + f.listitem + '_selected')
.removeClass(f.listitem + '_selected')
.last()
.addClass(f.listitem + '_selected'),
e=t.length
? t.closest('.' + f.panel)
: this.$pnls.children('.' + f.panel).first();
(this.openPanel(e, !1), this.trigger('initOpened:after'));
},
_initAnchors: function (){
this.trigger('initAnchors:before');
var d=this;
(e.$body.on(s.click + '-oncanvas', 'a[href]', function (t){
var e=u(this),
n=e.attr('href'),
i=d.$menu.find(e).length,
o=e.is('.' + f.listitem + ' > a'),
s =
e.is('[rel="external"]')||e.is('[target="_blank"]');
if(i&&1 < n.length&&'#'==n.slice(0, 1))
try {
var r=d.$menu.find(n);
if(r.is('.' + f.panel))
return (
d[
e.parent().hasClass(f.listitem + '_vertical')
? 'togglePanel'
: 'openPanel'
](r),
void t.preventDefault()
);
} catch (t){}
var a={
close: null,
setSelected: null,
preventDefault: '#'==n.slice(0, 1),
};
for (var l in u[h].addons){
var c=u[h].addons[l].clickAnchor.call(d, e, i, o, s);
if(c){
if('boolean'==typeof c)
return void t.preventDefault();
'object'==typeof c&&(a=u.extend({}, a, c));
}}
i &&
o &&
!s &&
(d.__valueOrFn(e,
d.opts.onClick.setSelected,
a.setSelected,
)&&d.setSelected(u(t.target).parent()),
d.__valueOrFn(e,
d.opts.onClick.preventDefault,
a.preventDefault,
)&&t.preventDefault(),
d.__valueOrFn(e, d.opts.onClick.close, a.close) &&
d.opts.offCanvas &&
'function'==typeof d.close &&
d.close());
}),
this.trigger('initAnchors:after'));
},
_initMatchMedia: function (){
var n=this;
for (var i in this.mtch)
!(function (){
var e=i,
t=window.matchMedia(e);
(n._fireMatchMedia(e, t),
t.addListener(function (t){
n._fireMatchMedia(e, t);
}));
})();
},
_fireMatchMedia: function (t, e){
for (
var n=e.matches ? 'yes':'no', i=0;
i < this.mtch[t].length;
i++
)
this.mtch[t][i][n].call(this);
},
_getOriginalMenuId: function (){
var t=this.$menu.attr('id');
return (
this.conf.clone&&t && t.length&&(t=f.umm(t)),
t
);
},
__api: function (){
var n=this,
i={};
return (
u.each(this._api, function (t){
var e=this;
i[e]=function (){
var t=n[e].apply(n, arguments);
return void 0===t ? i:t;
};}),
i
);
},
__valueOrFn: function (t, e, n){
if('function'==typeof e){
var i=e.call(t[0]);
if(void 0!==i) return i;
}
return ('function'!=typeof e&&void 0!==e) ||
void 0===n
? e
: n;
},
__getPanelTitle: function (t, e){
var n;
return (
'function'==typeof this.opts.navbar.title &&
(n=this.opts.navbar.title.call(t[0])),
void 0===n&&(n=t.data(l.title)),
void 0!==n
? n
: 'string'==typeof e
? this.i18n(e)
: this.i18n(u[h].defaults.navbar.title)
);
},
__refactorClass: function (t, e, n){
return t
.filter('.' + e)
.removeClass(e)
.addClass(n);
},
__findAddBack: function (t, e){
return t.find(e).add(t.filter(e));
},
__childAddBack: function (t, e){
return t.children(e).add(t.filter(e));
},
__filterListItems: function (t){
return t
.not('.' + f.listitem + '_divider')
.not('.' + f.hidden);
},
__filterListItemAnchors: function (t){
return this.__filterListItems(t)
.children('a')
.not('.' + f.btn + '_next');
},
__openPanelWoAnimation: function (t){
t.hasClass(f.panel + '_noanimation') ||
(t.addClass(f.panel + '_noanimation'),
this.__transitionend(t,
function (){
t.removeClass(f.panel + '_noanimation');
},
this.conf.openingInterval,
),
this.openPanel(t));
},
__transitionend: function (e, n, t){
var i = !1,
o=function (t){
(void 0!==t&&t.target!=e[0]) ||
(i ||
(e.off(s.transitionend),
e.off(s.webkitTransitionEnd),
n.call(e[0])),
(i = !0));
};
(e.on(s.transitionend, o),
e.on(s.webkitTransitionEnd, o),
setTimeout(o, 1.1 * t));
},
__getUniqueId: function (){
return f.mm(u[h].uniqueId++);
},
__hasClass: function (t, e){
return (
-1 < (' ' + t.className + ' ').indexOf(' ' + e + ' ')
);
},
}),
(u.fn[h]=function (n, i){
((function t(){
u[h].glbl ||
((e={
$wndw: u(window),
$docu: u(document),
$html: u('html'),
$body: u('body'),
}),
(f={}),
(l={}),
(s={}),
u.each([f, l, s], function (t, i){
i.add=function (t){
for (
var e=0, n=(t=t.split(' ')).length;
e < n;
e++
)
i[t[e]]=i.mm(t[e]);
};}),
(f.mm=function (t){
return 'mm-' + t;
}),
f.add('wrapper menu panels panel nopanel navbar listview nolistview listitem btn hidden',
),
(f.umm=function (t){
return ('mm-'==t.slice(0, 3)&&(t=t.slice(3)), t);
}),
(l.mm=function (t){
return 'mm-' + t;
}),
l.add('parent child title'),
(s.mm=function (t){
return t + '.mm';
}),
s.add('transitionend webkitTransitionEnd click scroll resize keydown mousedown mouseup touchstart touchmove touchend orientationchange',
),
(u[h]._c=f),
(u[h]._d=l),
(u[h]._e=s),
(u[h].glbl=e));
})(),
(n=u.extend(!0, {}, u[h].defaults, n)),
(i=u.extend(!0, {}, u[h].configuration, i)));
var o=u();
return (
this.each(function (){
var t=u(this);
if(!t.data(h)){
var e=new u[h](t, n, i);
(e.$menu.data(h, e.__api()), (o=o.add(e.$menu)));
}}),
o
);
}),
(u[h].i18n =
((n={}),
function (t, e){
switch (typeof t){
case 'object':
return (
'string'==typeof e &&
(void 0===n[e]&&(n[e]={}), u.extend(n[e], t)),
n
);
case 'string':
return (
('string'==typeof e &&
void 0!==n[e] &&
n[e][t]) ||
t
);
case 'undefined':
default:
return n;
}})),
(u[h].support={
touch:
'ontouchstart' in window ||
navigator.msMaxTouchPoints ||
!1,
csstransitions:
'undefined'==typeof Modernizr ||
void 0===Modernizr.csstransitions ||
Modernizr.csstransitions,
csstransforms:
'undefined'==typeof Modernizr ||
void 0===Modernizr.csstransforms ||
Modernizr.csstransforms,
csstransforms3d:
'undefined'==typeof Modernizr ||
void 0===Modernizr.csstransforms3d ||
Modernizr.csstransforms3d,
})),
(p='offCanvas'),
((r=t)[(d='mmenu')].addons[p]={
setup: function (){
if(this.opts[p]){
var t=this.opts[p],
i=this.conf[p];
((c=r[d].glbl),
(this._api=r.merge(this._api, [
'open',
'close',
'setPage',
])),
'object'!=typeof t&&(t={}),
(t=this.opts[p] =
r.extend(!0, {}, r[d].defaults[p], t)),
'string'!=typeof i.page.selector &&
(i.page.selector='> ' + i.page.nodetype),
(this.vars.opened = !1));
var o=[a.menu + '_offcanvas'];
(r[d].support.csstransforms ||
o.push(a['no-csstransforms']),
r[d].support.csstransforms3d ||
o.push(a['no-csstransforms3d']),
this.bind('initMenu:after', function (){
var t=this;
(this._initBlocker(),
this.setPage(c.$page),
this['_initWindow_' + p](),
this.$menu
.addClass(o.join(' '))
.parent('.' + a.wrapper)
.removeClass(a.wrapper),
this.$menu[i.menu.insertMethod](
i.menu.insertSelector,
));
var e=window.location.hash;
if(e){
var n=this._getOriginalMenuId();
n &&
n==e.slice(1) &&
setTimeout(function (){
t.open();
}, 1e3);
}}),
this.bind('setPage:after', function (t){
c.$blck.children('a').attr('href', '#' + t.attr('id'));
}),
this.bind('open:start:sr-aria', function (){
this.__sr_aria(this.$menu, 'hidden', !1);
}),
this.bind('close:finish:sr-aria', function (){
this.__sr_aria(this.$menu, 'hidden', !0);
}),
this.bind('initMenu:after:sr-aria', function (){
this.__sr_aria(this.$menu, 'hidden', !0);
}),
this.bind('initBlocker:after:sr-text', function (){
c.$blck
.children('a')
.html(this.__sr_text(this.i18n(this.conf.screenReader.text.closeMenu),
),
);
}));
}},
add: function (){
((a=r[d]._c),
(i=r[d]._d),
(o=r[d]._e),
a.add('slideout page no-csstransforms3d'),
i.add('style'));
},
clickAnchor: function (t, e){
var n=this;
if(this.opts[p]){
var i=this._getOriginalMenuId();
if(i&&t.is('[href="#' + i + '"]')){
if(e) return (this.open(), !0);
var o=t.closest('.' + a.menu);
if(o.length){
var s=o.data('mmenu');
if(s&&s.close)
return (
s.close(),
n.__transitionend(o,
function (){
n.open();
},
n.conf.transitionDuration,
),
!0
);
}
return (this.open(), !0);
}
if(c.$page)
return (i=c.$page.first().attr('id')) &&
t.is('[href="#' + i + '"]')
? (this.close(), !0)
: void 0;
}},
}),
(r[d].defaults[p]={ blockUI: !0, moveBackground: !0 }),
(r[d].configuration[p]={
menu: { insertMethod: 'prependTo', insertSelector: 'body' },
page: {
nodetype: 'div',
selector: null,
noSelector: [],
wrapIfNeeded: !0,
},
}),
(r[d].prototype.open=function (){
if((this.trigger('open:before'), !this.vars.opened)){
var t=this;
(this._openSetup(),
setTimeout(function (){
t._openFinish();
}, this.conf.openingInterval),
this.trigger('open:after'));
}}),
(r[d].prototype._openSetup=function (){
var t=this,
e=this.opts[p];
(this.closeAllOthers(),
c.$page.each(function (){
r(this).data(i.style, r(this).attr('style')||'');
}),
c.$wndw.trigger(o.resize + '-' + p, [!0]));
var n=[a.wrapper + '_opened'];
(e.blockUI&&n.push(a.wrapper + '_blocking'),
'modal'==e.blockUI&&n.push(a.wrapper + '_modal'),
e.moveBackground&&n.push(a.wrapper + '_background'),
c.$html.addClass(n.join(' ')),
setTimeout(function (){
t.vars.opened = !0;
}, this.conf.openingInterval),
this.$menu.addClass(a.menu + '_opened'));
}),
(r[d].prototype._openFinish=function (){
var t=this;
(this.__transitionend(c.$page.first(),
function (){
t.trigger('open:finish');
},
this.conf.transitionDuration,
),
this.trigger('open:start'),
c.$html.addClass(a.wrapper + '_opening'));
}),
(r[d].prototype.close=function (){
if((this.trigger('close:before'), this.vars.opened)){
var e=this;
(this.__transitionend(c.$page.first(),
function (){
e.$menu.removeClass(a.menu + '_opened');
var t=[
a.wrapper + '_opened',
a.wrapper + '_blocking',
a.wrapper + '_modal',
a.wrapper + '_background',
];
(c.$html.removeClass(t.join(' ')),
c.$page.each(function (){
r(this).attr('style', r(this).data(i.style));
}),
(e.vars.opened = !1),
e.trigger('close:finish'));
},
this.conf.transitionDuration,
),
this.trigger('close:start'),
c.$html.removeClass(a.wrapper + '_opening'),
this.trigger('close:after'));
}}),
(r[d].prototype.closeAllOthers=function (){
c.$body
.find('.' + a.menu + '_offcanvas')
.not(this.$menu)
.each(function (){
var t=r(this).data(d);
t&&t.close&&t.close();
});
}),
(r[d].prototype.setPage=function (t){
this.trigger('setPage:before', t);
var e=this,
n=this.conf[p];
((t&&t.length) ||
((t=c.$body
.find(n.page.selector)
.not('.' + a.menu)
.not('.' + a.wrapper + '__blocker')),
n.page.noSelector.length &&
(t=t.not(n.page.noSelector.join(', '))),
1 < t.length &&
n.page.wrapIfNeeded &&
(t=t
.wrapAll('<' + this.conf[p].page.nodetype + ' />')
.parent())),
t.addClass(a.page + ' ' + a.slideout).each(function (){
r(this).attr('id', r(this).attr('id')||e.__getUniqueId());
}),
(c.$page=t),
this.trigger('setPage:after', t));
}),
(r[d].prototype['_initWindow_' + p]=function (){
c.$wndw
.off(o.keydown + '-' + p)
.on(o.keydown + '-' + p, function (t){
if(c.$html.hasClass(a.wrapper + '_opened') &&
9==t.keyCode
)
return (t.preventDefault(), !1);
});
var i=0;
c.$wndw
.off(o.resize + '-' + p)
.on(o.resize + '-' + p, function (t, e){
if(1==c.$page.length &&
(e||c.$html.hasClass(a.wrapper + '_opened'))
){
var n=c.$wndw.height();
(e||n!=i)&&((i=n), c.$page.css('minHeight', n));
}});
}),
(r[d].prototype._initBlocker=function (){
var e=this,
t=this.opts[p],
n=this.conf[p];
(this.trigger('initBlocker:before'),
t.blockUI &&
(c.$blck ||
(c.$blck=r(
'<div class="' +
a.wrapper +
'__blocker ' +
a.slideout +
'" />',
).append('<a />')),
c.$blck
.appendTo(n.menu.insertSelector)
.off(o.touchstart + '-' + p + ' ' + o.touchmove + '-' + p)
.on(o.touchstart + '-' + p + ' ' + o.touchmove + '-' + p,
function (t){
(t.preventDefault(),
t.stopPropagation(),
c.$blck.trigger(o.mousedown + '-' + p));
},
)
.off(o.mousedown + '-' + p)
.on(o.mousedown + '-' + p, function (t){
(t.preventDefault(),
c.$html.hasClass(a.wrapper + '_modal') ||
(e.closeAllOthers(), e.close()));
}),
this.trigger('initBlocker:after')));
}),
(y='screenReader'),
((g=t)[(b='mmenu')].addons[y]={
setup: function (){
var o=this,
t=this.opts[y],
s=this.conf[y];
(g[b].glbl,
'boolean'==typeof t&&(t={ aria: t, text: t }),
'object'!=typeof t&&(t={}),
(t=this.opts[y]=g.extend(!0, {}, g[b].defaults[y], t))
.aria &&
(this.bind('initAddons:after', function (){
(this.bind('initMenu:after', function (){
this.trigger('initMenu:after:sr-aria');
}),
this.bind('initNavbar:after', function (){
this.trigger('initNavbar:after:sr-aria',
arguments[0],
);
}),
this.bind('openPanel:start', function (){
this.trigger('openPanel:start:sr-aria',
arguments[0],
);
}),
this.bind('close:start', function (){
this.trigger('close:start:sr-aria');
}),
this.bind('close:finish', function (){
this.trigger('close:finish:sr-aria');
}),
this.bind('open:start', function (){
this.trigger('open:start:sr-aria');
}),
this.bind('initOpened:after', function (){
this.trigger('initOpened:after:sr-aria');
}));
}),
this.bind('updateListview', function (){
this.$pnls
.find('.' + m.listview)
.children()
.each(function (){
o.__sr_aria(g(this),
'hidden',
g(this).is('.' + m.hidden),
);
});
}),
this.bind('openPanel:start', function (t){
var e=this.$menu
.find('.' + m.panel)
.not(t)
.not(t.parents('.' + m.panel)),
n=t.add(t
.find('.' +
m.listitem +
'_vertical .' +
m.listitem +
'_opened',
)
.children('.' + m.panel),
);
(this.__sr_aria(e, 'hidden', !0),
this.__sr_aria(n, 'hidden', !1));
}),
this.bind('closePanel', function (t){
this.__sr_aria(t, 'hidden', !0);
}),
this.bind('initPanels:after', function (t){
var e=t.find('.' + m.btn).each(function (){
o.__sr_aria(g(this),
'owns',
g(this).attr('href').replace('#', ''),
);
});
this.__sr_aria(e, 'haspopup', !0);
}),
this.bind('initNavbar:after', function (t){
var e=t.children('.' + m.navbar);
this.__sr_aria(e,
'hidden',
!t.hasClass(m.panel + '_has-navbar'),
);
}),
t.text &&
'parent'==this.opts.navbar.titleLink &&
this.bind('initNavbar:after', function (t){
var e=t.children('.' + m.navbar),
n = !!e.children('.' + m.btn + '_prev').length;
this.__sr_aria(e.children('.' + m.title),
'hidden',
n,
);
})),
t.text &&
(this.bind('initAddons:after', function (){
(this.bind('setPage:after', function (){
this.trigger('setPage:after:sr-text', arguments[0]);
}),
this.bind('initBlocker:after', function (){
this.trigger('initBlocker:after:sr-text');
}));
}),
this.bind('initNavbar:after', function (t){
var e=t.children('.' + m.navbar),
n=this.i18n(s.text.closeSubmenu);
e.children('.' + m.btn + '_prev').html(this.__sr_text(n),
);
}),
this.bind('initListview:after', function (t){
var e=t.data(v.parent);
if(e&&e.length){
var n=e.children('.' + m.btn + '_next'),
i=this.i18n(
s.text[
n.parent().is('.' + m.listitem + '_vertical')
? 'toggleSubmenu'
: 'openSubmenu'
],
);
n.append(o.__sr_text(i));
}})));
},
add: function (){
((m=g[b]._c), (v=g[b]._d), g[b]._e, m.add('sronly'));
},
clickAnchor: function (t, e){},
}),
(g[b].defaults[y]={ aria: !0, text: !0 }),
(g[b].configuration[y]={
text: {
closeMenu: 'Close menu',
closeSubmenu: 'Close submenu',
openSubmenu: 'Open submenu',
toggleSubmenu: 'Toggle submenu',
},
}),
(g[b].prototype.__sr_aria=function (t, e, n){
t.prop('aria-' + e, n)[n ? 'attr':'removeAttr'](
'aria-' + e,
n,
);
}),
(g[b].prototype.__sr_role=function (t, e){
t.prop('role', e)[e ? 'attr':'removeAttr']('role', e);
}),
(g[b].prototype.__sr_text=function (t){
return '<span class="' + m.sronly + '">' + t + '</span>';
}),
(T='scrollBugFix'),
((x=t)[(S='mmenu')].addons[T]={
setup: function (){
var t=this.opts[T];
(this.conf[T],
(C=x[S].glbl),
x[S].support.touch &&
this.opts.offCanvas &&
this.opts.offCanvas.blockUI &&
('boolean'==typeof t&&(t={ fix: t }),
'object'!=typeof t&&(t={}),
(t=this.opts[T]=x.extend(!0, {}, x[S].defaults[T], t))
.fix &&
(this.bind('open:start', function (){
this.$pnls
.children('.' + w.panel + '_opened')
.scrollTop(0);
}),
this.bind('initMenu:after', function (){
this['_initWindow_' + T]();
}))));
},
add: function (){
((w=x[S]._c), x[S]._d, (_=x[S]._e));
},
clickAnchor: function (t, e){},
}),
(x[S].defaults[T]={ fix: !0 }),
(x[S].prototype['_initWindow_' + T]=function (){
var t=this;
C.$docu
.off(_.touchmove + '-' + T)
.on(_.touchmove + '-' + T, function (t){
C.$html.hasClass(w.wrapper + '_opened') &&
t.preventDefault();
});
var e = !1;
(C.$body
.off(_.touchstart + '-' + T)
.on(_.touchstart + '-' + T,
'.' + w.panels + '> .' + w.panel,
function (t){
C.$html.hasClass(w.wrapper + '_opened') &&
(e ||
((e = !0),
0===t.currentTarget.scrollTop
? (t.currentTarget.scrollTop=1)
: t.currentTarget.scrollHeight===t.currentTarget.scrollTop +
t.currentTarget.offsetHeight &&
(t.currentTarget.scrollTop -=1),
(e = !1)));
},
)
.off(_.touchmove + '-' + T)
.on(_.touchmove + '-' + T,
'.' + w.panels + '> .' + w.panel,
function (t){
C.$html.hasClass(w.wrapper + '_opened') &&
x(this)[0].scrollHeight > x(this).innerHeight() &&
t.stopPropagation();
},
),
C.$wndw
.off(_.orientationchange + '-' + T)
.on(_.orientationchange + '-' + T, function (){
t.$pnls
.children('.' + w.panel + '_opened')
.scrollTop(0)
.css({ '-webkit-overflow-scrolling': 'auto' })
.css({ '-webkit-overflow-scrolling': 'touch' });
}));
}),
($='autoHeight'),
((k=t)[(P='mmenu')].addons[$]={
setup: function (){
var o=this.opts[$];
if((this.conf[$],
k[P].glbl,
'boolean'==typeof o&&o && (o={ height: 'auto' }),
'string'==typeof o&&(o={ height: o }),
'object'!=typeof o&&(o={}),
'auto'==(o=this.opts[$]=k.extend(!0, {}, k[P].defaults[$], o))
.height||'highest'==o.height)
){
this.bind('initMenu:after', function (){
this.$menu.addClass(E.menu + '_autoheight');
});
var t=function (t){
if(!this.opts.offCanvas||this.vars.opened){
var e =
Math.max(parseInt(this.$pnls.css('top'), 10), 0) ||
0,
n =
Math.max(parseInt(this.$pnls.css('bottom'), 10),
0,
)||0,
i=0;
(this.$menu.addClass(E.menu + '_autoheight-measuring'),
'auto'==o.height
? ((t =
t ||
this.$pnls.children('.' + E.panel + '_opened',
)).parent('.' + E.listitem + '_vertical')
.length &&
(t=t.parents('.' + E.panel).not(function (){
return k(this).parent('.' + E.listitem + '_vertical',
).length;
})),
t.length ||
(t=this.$pnls.children('.' + E.panel)),
(i=t.first().outerHeight()))
: 'highest'==o.height &&
this.$pnls
.children('.' + E.panel)
.each(function (){
var t=k(this);
(t.parent('.' + E.listitem + '_vertical')
.length &&
(t=t
.parents('.' + E.panel)
.not(function (){
return k(this).parent('.' + E.listitem + '_vertical',
).length;
})),
(i=Math.max(i, t.first().outerHeight())));
}),
this.$menu
.height(i + e + n)
.removeClass(E.menu + '_autoheight-measuring'));
}};
(this.opts.offCanvas&&this.bind('open:start', t),
'highest'==o.height&&this.bind('initPanels:after', t),
'auto'==o.height &&
(this.bind('updateListview', t),
this.bind('openPanel:start', t),
this.bind('closePanel', t)));
}},
add: function (){
((E=k[P]._c), k[P]._d, k[P]._e.add('resize'));
},
clickAnchor: function (t, e){},
}),
(k[P].defaults[$]={ height: 'default' }),
(D='backButton'),
((z=t)[(L='mmenu')].addons[D]={
setup: function (){
function t(){
((o=[i]),
this.$pnls
.children('.' + A.panel + '_opened-parent')
.add(n.$pnls.children('.' + A.panel + '_opened'))
.each(function (){
o.push('#' + z(this).attr('id'));
}));
}
if(this.opts.offCanvas){
var n=this,
e=this.opts[D];
(this.conf[D],
z[L].glbl,
'boolean'==typeof e&&(e={ close: e }),
'object'!=typeof e&&(e={}),
(e=z.extend(!0, {}, z[L].defaults[D], e)));
var i='#' + this.$menu.attr('id');
if(e.close){
var o=[];
(this.bind('open:finish', function (){
history.pushState(null, document.title, i);
}),
this.bind('open:finish', t),
this.bind('openPanel:finish', t),
this.bind('close:finish', function (){
((o=[]),
history.back(),
history.pushState(null,
document.title,
location.pathname + location.search,
));
}),
z(window).on('popstate', function (t){
if(n.vars.opened&&o.length){
var e=(o=o.slice(0, -1))[o.length - 1];
e==i
? n.close()
: (n.openPanel(z(e)),
history.pushState(null, document.title, i));
}}));
}
e.open &&
z(window).on('popstate', function (t){
n.vars.opened||location.hash!=i||n.open();
});
}},
add: function (){
return window.history&&window.history.pushState
? ((A=z[L]._c), z[L]._d, void z[L]._e)
: void (z[L].addons[D].setup=function (){});
},
clickAnchor: function (t, e){},
}),
(z[L].defaults[D]={ close: !1, open: !1 }),
(F='columns'),
((M=t)[(j='mmenu')].addons[F]={
setup: function (){
var n=this.opts[F];
if((this.conf[F],
M[j].glbl,
'boolean'==typeof n&&(n={ add: n }),
'number'==typeof n&&(n={ add: !0, visible: n }),
'object'!=typeof n&&(n={}),
'number'==typeof n.visible &&
(n.visible={ min: n.visible, max: n.visible }),
(n=this.opts[F]=M.extend(!0, {}, M[j].defaults[F], n))
.add)
){
((n.visible.min=Math.max(1, Math.min(6, n.visible.min))),
(n.visible.max=Math.max(n.visible.min,
Math.min(6, n.visible.max),
)));
for (var i='', o='', t=0; t <=n.visible.max; t++)
((i +=' ' + N.menu + '_columns-' + t),
(o +=' ' + N.panel + '_columns-' + t));
i.length&&((i=i.slice(1)), (o=o.slice(1)));
var s =
o +
' ' +
N.panel +
'_opened ' +
N.panel +
'_opened-parent ' +
N.panel +
'_highest';
(this.bind('openPanel:before', function t(e){
var n=e.data(I.parent);
if(n&&(n=n.closest('.' + N.panel)).length){
var i=n.attr('class');
if(i&&(i=i.split(N.panel + '_columns-')[1]))
for (i=parseInt(i.split(' ')[0], 10) + 1; 0 < i;){
var o=this.$pnls.children('.' + N.panel + '_columns-' + i,
);
if(!o.length){
i=-1;
break;
}
(i++, o.removeClass(s).addClass(N.hidden));
}}
}),
this.bind('openPanel:start', function (t){
var e=this.$pnls.children('.' + N.panel + '_opened-parent',
).length;
(t.hasClass(N.panel + '_opened-parent')||e++,
(e=Math.min(n.visible.max,
Math.max(n.visible.min, e),
)),
this.$menu
.removeClass(i)
.addClass(N.menu + '_columns-' + e),
this.$pnls
.children('.' + N.panel)
.removeClass(o)
.filter('.' + N.panel + '_opened-parent')
.add(t)
.slice(-n.visible.max)
.each(function (t){
M(this).addClass(N.panel + '_columns-' + t);
}));
}));
}},
add: function (){
((N=M[j]._c), (I=M[j]._d), M[j]._e);
},
clickAnchor: function (t, e){},
}),
(M[j].defaults[F]={ add: !1, visible: { min: 1, max: 3 }}),
(B='counters'),
((O=t)[(R='mmenu')].addons[B]={
setup: function (){
var i=this,
n=this.opts[B];
if((this.conf[B],
O[R].glbl,
'boolean'==typeof n&&(n={ add: n, update: n }),
'object'!=typeof n&&(n={}),
(n=this.opts[B]=O.extend(!0, {}, O[R].defaults[B], n)),
this.bind('initListview:after', function (t){
var e=this.conf.classNames[B].counter;
this.__refactorClass(t.find('.' + e), e, H.counter);
}),
n.add &&
this.bind('initListview:after', function (t){
var e;
switch (n.addTo){
case 'panels':
e=t;
break;
default:
e=t.filter(n.addTo);
}
e.each(function (){
var t=O(this).data(q.parent);
t &&
(t.find('.' + H.counter).length ||
t
.children('.' + H.btn)
.prepend(O('<span class="' + H.counter + '" />'),
));
});
}),
n.update)
){
var t=function (t){
(t=t||this.$pnls.children('.' + H.panel)).each(function (){
var t=O(this),
e=t.data(q.parent);
if(e){
var n=e.find('.' + H.counter);
n.length &&
(t=t.children('.' + H.listview)).length &&
n.html(i.__filterListItems(t.children()).length);
}},
);
};
(this.bind('initListview:after', t),
this.bind('updateListview', t));
}},
add: function (){
((H=O[R]._c), (q=O[R]._d), O[R]._e, H.add('counter'));
},
clickAnchor: function (t, e){},
}),
(O[R].defaults[B]={ add: !1, addTo: 'panels', count: !1 }),
(O[R].configuration.classNames[B]={ counter: 'Counter' }),
(V='dividers'),
((W=t)[(Y='mmenu')].addons[V]={
setup: function (){
var n=this,
i=this.opts[V];
if((this.conf[V],
W[Y].glbl,
'boolean'==typeof i&&(i={ add: i, fixed: i }),
'object'!=typeof i&&(i={}),
(i=this.opts[V]=W.extend(!0, {}, W[Y].defaults[V], i))
.type &&
this.bind('initMenu:after', function (){
this.$menu.addClass(U.menu + '_' + V + '-' + i.type);
}),
i.add &&
this.bind('initListview:after', function (t){
var e;
switch (i.addTo){
case 'panels':
e=t;
break;
default:
e=t.filter(i.addTo);
}
e.length &&
(e.children('.' + U.listitem + '_divider').remove(),
e.find('.' + U.listview).each(function (){
var e='';
n.__filterListItems(W(this).children()).each(function (){
var t=W.trim(W(this).children('a, span').text(),
)
.slice(0, 1)
.toLowerCase();
t!=e &&
t.length &&
((e=t),
W(
'<li class="' +
U.listitem +
' ' +
U.listitem +
'_divider">' +
t +
'</li>',
).insertBefore(this));
},
);
}));
}),
i.fixed)
){
this.bind('initPanels:after', function (){
void 0===this.$fixeddivider &&
(this.$fixeddivider=W(
'<ul class="' +
U.listview +
' ' +
U.listview +
'_fixeddivider"><li class="' +
U.listitem +
' ' +
U.listitem +
'_divider"></li></ul>',
)
.appendTo(this.$pnls)
.children());
});
var o=function (t){
if(!(t =
t ||
this.$pnls.children('.' + U.panel + '_opened')).is(':hidden',
)
){
var e=t
.find('.' + U.listitem + '_divider')
.not('.' + U.hidden),
n=t.scrollTop()||0,
i='';
(e.each(function (){
W(this).position().top + n < n + 1 &&
(i=W(this).text());
}),
this.$fixeddivider.text(i),
this.$pnls[i.length ? 'addClass':'removeClass'](
U.panel + '_dividers',
));
}};
(this.bind('open:start', o),
this.bind('openPanel:start', o),
this.bind('updateListview', o),
this.bind('initPanel:after', function (e){
e.off(X.scroll + '-' + V + ' ' + X.touchmove + '-' + V,
).on(X.scroll + '-' + V + ' ' + X.touchmove + '-' + V,
function (t){
e.hasClass(U.panel + '_opened')&&o.call(n, e);
},
);
}));
}},
add: function (){
((U=W[Y]._c), W[Y]._d, (X=W[Y]._e).add('scroll'));
},
clickAnchor: function (t, e){},
}),
(W[Y].defaults[V]={
add: !1,
addTo: 'panels',
fixed: !1,
type: null,
}),
(function (_){
function C(t, e, n){
return (t < e&&(t=e), n < t&&(t=n), t);
}
var S,
c,
i,
t='mmenu',
T='drag';
((_[t].addons[T]={
setup: function (){
if(this.opts.offCanvas){
var e=this.opts[T],
n=this.conf[T];
((i=_[t].glbl),
'boolean'==typeof e&&(e={ menu: e, panels: e }),
'object'!=typeof e&&(e={}),
'boolean'==typeof e.menu &&
(e.menu={ open: e.menu }),
'object'!=typeof e.menu&&(e.menu={}),
'boolean'==typeof e.panels &&
(e.panels={ close: e.panels }),
'object'!=typeof e.panels&&(e.panels={}),
(e=this.opts[T] =
_.extend(!0, {}, _[t].defaults[T], e)).menu.open &&
this.bind('setPage:after', function (){
(function t(e, n, i){
var o,
s,
r,
a=this,
l={
events: 'panleft panright',
typeLower: 'x',
typeUpper: 'X',
open_dir: 'right',
close_dir: 'left',
negative: !1,
},
c='width',
d=l.open_dir,
u=function (t){
t <=e.maxStartPos&&(h=1);
},
f=function (){
return _('.' + S.slideout);
},
h=0,
p=0,
g=0,
m=this.opts.extensions.all,
v =
void 0===m
? 'left'
: -1 < m.indexOf(S.menu + '_position-right')
? 'right'
: -1 < m.indexOf(S.menu + '_position-top')
? 'top'
: -1 <
m.indexOf(S.menu + '_position-bottom',
)
? 'bottom'
: 'left',
b =
void 0===m
? 'back'
: -1 <
m.indexOf(S.menu + '_position-top') ||
-1 <
m.indexOf(S.menu + '_position-bottom',
) ||
-1 <
m.indexOf(S.menu + '_position-front')
? 'front'
: 'back';
switch (v){
case 'top':
case 'bottom':
((l.events='panup pandown'),
(l.typeLower='y'),
(l.typeUpper='Y'),
(c='height'));
}
switch (v){
case 'right':
case 'bottom':
((l.negative = !0),
(u=function (t){
t >=i.$wndw[c]() - e.maxStartPos &&
(h=1);
}));
}
switch (v){
case 'right':
((l.open_dir='left'),
(l.close_dir='right'));
break;
case 'top':
((l.open_dir='down'), (l.close_dir='up'));
break;
case 'bottom':
((l.open_dir='up'), (l.close_dir='down'));
}
switch (b){
case 'front':
f=function (){
return a.$menu;
};}
var y,
x=this.__valueOrFn(this.$menu,
e.node,
i.$page,
);
'string'==typeof x&&(x=_(x));
var w=new Hammer(
x[0],
this.opts[T].vendors.hammer,
);
(w.on('panstart', function (t){
(u(t.center[l.typeLower]),
(y=f()),
(d=l.open_dir));
}),
w.on(l.events + ' panend', function (t){
0 < h&&t.preventDefault();
}),
w.on(l.events, function (t){
if(((o=t['delta' + l.typeUpper]),
l.negative&&(o=-o),
o!=p &&
(d=p <=o ? l.open_dir:l.close_dir),
(p=o) > e.threshold&&1==h)
){
if(i.$html.hasClass(S.wrapper + '_opened'))
return;
((h=2),
a._openSetup(),
a.trigger('open:start'),
i.$html.addClass(S.dragging),
(g=C(
i.$wndw[c]() * n[c].perc,
n[c].min,
n[c].max,
)));
}
2==h &&
((s=C(p, 10, g) - ('front'==b ? g:0)),
l.negative&&(s=-s),
(r =
'translate' +
l.typeUpper +
'(' +
s +
'px)'),
y.css({
'-webkit-transform': '-webkit-' + r,
transform: r,
}));
}),
w.on('panend', function (t){
(2==h &&
(i.$html.removeClass(S.dragging),
y.css('transform', ''),
a[
d==l.open_dir ? '_openFinish':'close'
]()),
(h=0));
}));
}).call(this, e.menu, n.menu, i);
}),
e.panels.close &&
this.bind('initPanel:after', function (t){
(function t(e, n, i, o){
var s=this,
r=e.data(c.parent);
if(r){
r=r.closest('.' + S.panel);
var a=new Hammer(
e[0],
s.opts[T].vendors.hammer,
),
l=null;
a.on('panright', function (t){
l ||
(s.openPanel(r),
(l=setTimeout(function (){
(clearTimeout(l), (l=null));
}, s.conf.openingInterval + s.conf.transitionDuration)));
});
}}).call(this, t, e.panels, n.panels, i);
}));
}},
add: function (){
return 'function'!=typeof Hammer||Hammer.VERSION < 2
? ((_[t].addons[T].add=function (){}),
void (_[t].addons[T].setup=function (){}))
: ((S=_[t]._c),
(c=_[t]._d),
_[t]._e,
void S.add('dragging'));
},
clickAnchor: function (t, e){},
}),
(_[t].defaults[T]={
menu: { open: !1, maxStartPos: 100, threshold: 50 },
panels: { close: !1 },
vendors: { hammer: {}},
}),
(_[t].configuration[T]={
menu: {
width: { perc: 0.8, min: 140, max: 440 },
height: { perc: 0.8, min: 140, max: 880 },
},
panels: {},
}));
})(t),
(et='dropdown'),
((G=t)[(tt='mmenu')].addons[et]={
setup: function (){
if(this.opts.offCanvas){
var e=this,
b=this.opts[et],
y=this.conf[et];
if(((J=G[tt].glbl),
'boolean'==typeof b&&b && (b={ drop: b }),
'object'!=typeof b&&(b={}),
'string'==typeof b.position &&
(b.position={ of: b.position }),
(b=this.opts[et] =
G.extend(!0, {}, G[tt].defaults[et], b)).drop)
){
var x;
(this.bind('initMenu:after', function (){
if((this.$menu.addClass(Q.menu + '_' + et),
'string'!=typeof b.position.of)
){
var t=this._getOriginalMenuId();
t &&
t.length &&
(b.position.of='[href="#' + t + '"]');
}
'string'==typeof b.position.of &&
((x=G(b.position.of)),
(b.event=b.event.split(' ')),
1==b.event.length&&(b.event[1]=b.event[0]),
'hover'==b.event[0] &&
x.on(Z.mouseenter + '-' + et, function (){
e.open();
}),
'hover'==b.event[1] &&
this.$menu.on(Z.mouseleave + '-' + et, function (){
e.close();
}));
}),
this.bind('open:start', function (){
(this.$menu.data(K.style,
this.$menu.attr('style')||'',
),
J.$html.addClass(Q.wrapper + '_dropdown'));
}),
this.bind('close:finish', function (){
(this.$menu.attr('style', this.$menu.data(K.style)),
J.$html.removeClass(Q.wrapper + '_dropdown'));
}));
var n=function (t, e){
var n,
i,
o=e[0],
s=e[1],
r='x'==t ? 'scrollLeft':'scrollTop',
a='x'==t ? 'outerWidth':'outerHeight',
l='x'==t ? 'left':'top',
c='x'==t ? 'right':'bottom',
d='x'==t ? 'width':'height',
u='x'==t ? 'maxWidth':'maxHeight',
f=null,
h=J.$wndw[r](),
p=(x.offset()[l] -=h),
g=p + x[a](),
m=J.$wndw[d](),
v=y.offset.button[t] + y.offset.viewport[t];
if(b.position[t])
switch (b.position[t]){
case 'left':
case 'bottom':
f='after';
break;
case 'right':
case 'top':
f='before';
}
return (
null===f &&
(f =
p + (g - p) / 2 < m / 2 ? 'after':'before'),
'after'==f
? ((i=m - ((n='x'==t ? p:g) + v)),
(o[l]=n + y.offset.button[t]),
(o[c]='auto'),
b.tip &&
s.push(Q.menu +
'_tip-' +
('x'==t ? 'left':'top'),
))
: ((i=(n='x'==t ? g:p) - v),
(o[c] =
'calc(100% - ' +
(n - y.offset.button[t]) +
'px)'),
(o[l]='auto'),
b.tip &&
s.push(Q.menu +
'_tip-' +
('x'==t ? 'right':'bottom'),
)),
b.fitViewport&&(o[u]=Math.min(y[d].max, i)),
[o, s]
);
},
i=function (t){
if(this.vars.opened){
this.$menu.attr('style', this.$menu.data(K.style));
var e=[{}, []];
((e=n.call(this, 'y', e)),
(e=n.call(this, 'x', e)),
this.$menu.css(e[0]),
b.tip &&
this.$menu
.removeClass(Q.tipleft +
' ' +
Q.tipright +
' ' +
Q.tiptop +
' ' +
Q.tipbottom,
)
.addClass(e[1].join(' ')));
}};
(this.bind('open:start', i),
J.$wndw.on(Z.resize + '-' + et, function (t){
i.call(e);
}),
this.opts.offCanvas.blockUI ||
J.$wndw.on(Z.scroll + '-' + et, function (t){
i.call(e);
}));
}}
},
add: function (){
((Q=G[tt]._c),
(K=G[tt]._d),
(Z=G[tt]._e),
Q.add('dropdown'),
Z.add('mouseenter mouseleave resize scroll'));
},
clickAnchor: function (t, e){},
}),
(G[tt].defaults[et]={
drop: !1,
fitViewport: !0,
event: 'click',
position: {},
tip: !0,
}),
(G[tt].configuration[et]={
offset: { button: { x: -5, y: 5 }, viewport: { x: 20, y: 20 }},
height: { max: 880 },
width: { max: 440 },
}),
(rt='fixedElements'),
((nt=t)[(st='mmenu')].addons[rt]={
setup: function (){
if(this.opts.offCanvas){
var s=(this.opts[rt], this.conf[rt]);
((ot=nt[st].glbl),
this.bind('setPage:after', function (t){
var e=this.conf.classNames[rt].fixed,
n=t.find('.' + e);
(this.__refactorClass(n, e, it.slideout),
n[s.elemInsertMethod](s.elemInsertSelector));
var i=this.conf.classNames[rt].sticky,
o=t.find('.' + i);
(this.__refactorClass(o, i, it.sticky),
(o=t.find('.' + it.sticky)).length &&
(this.bind('open:start', function (){
if('hidden'==ot.$html.css('overflow')){
var t=ot.$wndw.scrollTop() + s.sticky.offset;
o.each(function (){
nt(this).css('top',
parseInt(nt(this).css('top'), 10) + t,
);
});
}}),
this.bind('close:finish', function (){
o.css('top', '');
})));
}));
}},
add: function (){
((it=nt[st]._c), nt[st]._d, nt[st]._e, it.add('sticky'));
},
clickAnchor: function (t, e){},
}),
(nt[st].configuration[rt]={
sticky: { offset: 0 },
elemInsertMethod: 'appendTo',
elemInsertSelector: 'body',
}),
(nt[st].configuration.classNames[rt]={
fixed: 'Fixed',
sticky: 'Sticky',
}),
(ft='iconbar'),
((at=t)[(ut='mmenu')].addons[ft]={
setup: function (){
var i=this,
r=this.opts[ft];
if((this.conf[ft],
at[ut].glbl,
r instanceof Array&&(r={ add: !0, top: r }),
r.add)
){
var a=null;
if((at.each(['top', 'bottom'], function (t, e){
var n=r[e];
n instanceof Array||(n=[n]);
for (
var i=at(
'<div class="' + lt.iconbar + '__' + e + '" />',
),
o=0,
s=n.length;
o < s;
o++
)
i.append(n[o]);
i.children().length &&
(a||(a=at('<div class="' + lt.iconbar + '" />')),
a.append(i));
}),
a &&
(this.bind('initMenu:after', function (){
var t=lt.menu + '_iconbar';
(r.size &&
(t +=' ' + lt.menu + '_iconbar-' + r.size),
this.$menu.addClass(t).prepend(a));
}),
'tabs'==r.type))
){
a.addClass(lt.iconbar + '_tabs');
var o=a.find('a');
(o.on(dt.click + '-' + ft, function (t){
var e=at(this);
if(e.hasClass(lt.iconbar + '__tab_selected'))
return void t.stopImmediatePropagation();
try {
var n=at(e.attr('href'));
n.hasClass(lt.panel) &&
(t.preventDefault(),
t.stopImmediatePropagation(),
i.__openPanelWoAnimation(n));
} catch (t){}}),
this.bind('openPanel:start', function t(e){
o.removeClass(lt.iconbar + '__tab_selected');
var n=o.filter('[href="#' + e.attr('id') + '"]');
if(n.length)
n.addClass(lt.iconbar + '__tab_selected');
else {
var i=e.data(ct.parent);
i&&i.length&&t(i.closest('.' + lt.panel));
}}));
}}
},
add: function (){
((lt=at[ut]._c),
(ct=at[ut]._d),
(dt=at[ut]._e),
lt.add(ft));
},
clickAnchor: function (t, e){},
}),
(at[ut].defaults[ft]={ add: !1, top: [], bottom: [] }),
(at[ut].configuration[ft]={}),
(mt='iconPanels'),
((ht=t)[(gt='mmenu')].addons[mt]={
setup: function (){
var n=this,
i=this.opts[mt],
o=(this.conf[mt], !1);
(ht[gt].glbl,
'boolean'==typeof i&&(i={ add: i }),
('number'!=typeof i&&'string'!=typeof i) ||
(i={ add: !0, visible: i }),
'object'!=typeof i&&(i={}),
'first'==i.visible&&((o = !0), (i.visible=1)),
((i=this.opts[mt] =
ht.extend(!0, {}, ht[gt].defaults[mt], i)).visible =
Math.min(3, Math.max(1, i.visible))),
i.visible++);
var s='';
if(!o){
for (var t=0; t <=i.visible; t++)
s +=' ' + pt.panel + '_iconpanel-' + t;
s.length&&(s=s.slice(1));
}
if(i.add){
var e=function (t){
if(!t.parent('.' + pt.listitem + '_vertical').length){
var e=n.$pnls.children('.' + pt.panel);
o
? e
.removeClass(pt.panel + '_iconpanel-first')
.first()
.addClass(pt.panel + '_iconpanel-first')
: e
.removeClass(s)
.filter('.' + pt.panel + '_opened-parent')
.removeClass(pt.hidden)
.not(function (){
return ht(this).parent('.' + pt.listitem + '_vertical',
).length;
})
.add(t)
.slice(-i.visible)
.each(function (t){
ht(this).addClass(pt.panel + '_iconpanel-' + t);
});
}};
(this.bind('initMenu:after', function (){
var t=[pt.menu + '_iconpanel'];
(i.size&&t.push(pt.menu + '_iconpanel-' + i.size),
i.hideNavbar&&t.push(pt.menu + '_hidenavbar'),
i.hideDivider&&t.push(pt.menu + '_hidedivider'),
this.$menu.addClass(t.join(' ')));
}),
this.bind('openPanel:start', e),
this.bind('initPanels:after', function (t){
e.call(n, n.$pnls.children('.' + pt.panel + '_opened'));
}),
this.bind('initListview:after', function (t){
!i.blockPanel ||
t.parent('.' + pt.listitem + '_vertical').length ||
t.children('.' + pt.panel + '__blocker').length ||
t.prepend('<a href="#' +
t.closest('.' + pt.panel).attr('id') +
'" class="' +
pt.panel +
'__blocker" />',
);
}));
}},
add: function (){
((pt=ht[gt]._c), ht[gt]._d, ht[gt]._e);
},
clickAnchor: function (t, e){},
}),
(ht[gt].defaults[mt]={
add: !1,
blockPanel: !0,
hideDivider: !1,
hideNavbar: !0,
visible: 3,
}),
(function (s){
function o(t, e){
t=t||this.$pnls.children('.' + l.panel + '_opened');
var n=s(),
i=this.$menu
.children('.' +
l.mm('navbars_top') +
', .' +
l.mm('navbars_bottom'),
)
.children('.' + l.navbar);
i.find(u).filter(':focus').length ||
('default'==e &&
((n=t
.children('.' + l.listview)
.find('a[href]')
.not('.' + l.hidden)).length ||
(n=t.find(u).not('.' + l.hidden)),
n.length||(n=i.find(u).not('.' + l.hidden))),
n.length||(n=this.$menu.children('.' + l.tabstart)),
n.first().focus());
}
var r='mmenu',
a='keyboardNavigation';
((s[r].addons[a]={
setup: function (){
if(!s[r].support.touch){
var e=this.opts[a];
if((this.conf[a],
(d=s[r].glbl),
('boolean'!=typeof e&&'string'!=typeof e) ||
(e={ enable: e }),
'object'!=typeof e&&(e={}),
(e=this.opts[a] =
s.extend(!0, {}, s[r].defaults[a], e)).enable)
){
var t=s('<button class="' + l.tabstart + '" />'),
n=s('<button class="' + l.tabend + '" />'),
i=s('<button class="' + l.tabend + '" />');
(this.bind('initMenu:after', function (){
(e.enhance &&
this.$menu.addClass(l.menu + '_keyboardfocus'),
this['_initWindow_' + a](e.enhance));
}),
this.bind('initOpened:before', function (){
this.$menu
.prepend(t)
.append(n)
.children('.' +
l.mm('navbars-top') +
', .' +
l.mm('navbars-bottom'),
)
.children('.' + l.navbar)
.children('a.' + l.title)
.attr('tabindex', -1);
}),
this.bind('initBlocker:after', function (){
d.$blck
.append(i)
.children('a')
.addClass(l.tabstart);
}),
this.bind('open:finish', function (){
o.call(this, null, e.enable);
}),
this.bind('openPanel:finish', function (t){
o.call(this, t, e.enable);
}),
this.bind('initOpened:after:sr-aria', function (){
var t=this.$menu
.add(d.$blck)
.children('.' + l.tabstart + ', .' + l.tabend);
(this.__sr_aria(t, 'hidden', !0),
this.__sr_role(t, 'presentation'));
}));
}}
},
add: function (){
((l=s[r]._c),
(c=s[r]._d),
(i=s[r]._e),
l.add('tabstart tabend'),
i.add('focusin keydown'));
},
clickAnchor: function (t, e){},
}),
(s[r].defaults[a]={ enable: !1, enhance: !1 }),
(s[r].configuration[a]={}),
(s[r].prototype['_initWindow_' + a]=function (t){
(d.$wndw.off(i.keydown + '-offCanvas'),
d.$wndw
.off(i.focusin + '-' + a)
.on(i.focusin + '-' + a, function (t){
if(d.$html.hasClass(l.wrapper + '_opened')){
var e=s(t.target);
if(e.is('.' + l.tabend)){
var n=s();
(e.parent().is('.' + l.menu) &&
d.$blck &&
(n=d.$blck),
e.parent().is('.' + l.wrapper + '__blocker') &&
(n=d.$body
.find('.' + l.menu + '_offcanvas')
.filter('.' + l.menu + '_opened')),
n.length||(n=e.parent()),
n.children('.' + l.tabstart).focus());
}}
}),
d.$wndw
.off(i.keydown + '-' + a)
.on(i.keydown + '-' + a, function (t){
var e=s(t.target),
n=e.closest('.' + l.menu);
if(n.length)
if((n.data('mmenu'), e.is('input, textarea')));
else
switch (t.keyCode){
case 13:
(e.is('.mm-toggle')||e.is('.mm-check')) &&
e.trigger(i.click);
break;
case 32:
case 37:
case 38:
case 39:
case 40:
t.preventDefault();
}}),
t &&
d.$wndw
.off(i.keydown + '-' + a)
.on(i.keydown + '-' + a, function (t){
var e=s(t.target),
n=e.closest('.' + l.menu);
if(n.length){
var i=n.data('mmenu');
if(e.is('input'))
switch (t.keyCode){
case 27:
e.val('');
}
else
switch (t.keyCode){
case 8:
var o=n
.find('.' + l.panel + '_opened')
.data(c.parent);
o &&
o.length &&
i.openPanel(o.closest('.' + l.panel));
break;
case 27:
n.hasClass(l.menu + '_offcanvas') &&
i.close();
}}
}));
}));
var l,
c,
i,
d,
u='input, select, textarea, button, label, a[href]';
})(t),
(xt='lazySubmenus'),
((vt=t)[(yt='mmenu')].addons[xt]={
setup: function (){
var t=this.opts[xt];
(this.conf[xt],
vt[yt].glbl,
'boolean'==typeof t&&(t={ load: t }),
'object'!=typeof t&&(t={}),
(t=this.opts[xt] =
vt.extend(!0, {}, vt[yt].defaults[xt], t)).load &&
(this.bind('initMenu:after', function (){
this.$pnls
.find('li')
.children(this.conf.panelNodetype)
.not('.' + bt.inset)
.not('.' + bt.nolistview)
.not('.' + bt.nopanel)
.addClass(bt.panel +
'_lazysubmenu ' +
bt.nolistview +
' ' +
bt.nopanel,
);
}),
this.bind('initPanels:before', function (t){
((t =
t||this.$pnls.children(this.conf.panelNodetype)),
this.__findAddBack(t, '.' + bt.panel + '_lazysubmenu')
.not('.' +
bt.panel +
'_lazysubmenu .' +
bt.panel +
'_lazysubmenu',
)
.removeClass(bt.panel +
'_lazysubmenu ' +
bt.nolistview +
' ' +
bt.nopanel,
));
}),
this.bind('initOpened:before', function (){
var t=this.$pnls
.find('.' + this.conf.classNames.selected)
.parents('.' + bt.panel + '_lazysubmenu');
t.length &&
(t.removeClass(bt.panel +
'_lazysubmenu ' +
bt.nolistview +
' ' +
bt.nopanel,
),
this.initPanels(t.last()));
}),
this.bind('openPanel:before', function (t){
var e=this.__findAddBack(t,
'.' + bt.panel + '_lazysubmenu',
).not('.' +
bt.panel +
'_lazysubmenu .' +
bt.panel +
'_lazysubmenu',
);
e.length&&this.initPanels(e);
})));
},
add: function (){
((bt=vt[yt]._c), vt[yt]._d, vt[yt]._e);
},
clickAnchor: function (t, e){},
}),
(vt[yt].defaults[xt]={ load: !1 }),
(vt[yt].configuration[xt]={}),
(St='navbars'),
((wt=t)[(Ct='mmenu')].addons[St]={
setup: function (){
var c=this,
d=this.opts[St],
u=this.conf[St];
if((wt[Ct].glbl, void 0!==d)){
d instanceof Array||(d=[d]);
var f={},
h={};
d.length &&
(wt.each(d, function (t){
var e=d[t];
('boolean'==typeof e&&e && (e={}),
'object'!=typeof e&&(e={}),
void 0===e.content &&
(e.content=['prev', 'title']),
e.content instanceof Array ||
(e.content=[e.content]),
(e=wt.extend(!0, {}, c.opts.navbar, e)));
var n=wt('<div class="' + _t.navbar + '" />'),
i=e.height;
'number'!=typeof i
? (i=1)
: 1 < (i=Math.min(4, Math.max(1, i))) &&
n.addClass(_t.navbar + '_size-' + i);
var o=e.position;
switch (o){
case 'bottom':
break;
default:
o='top';
}
(f[o]||(f[o]=0),
(f[o] +=i),
h[o] ||
(h[o]=wt(
'<div class="' + _t.navbars + '_' + o + '" />',
)),
h[o].append(n));
for (var s=0, r=e.content.length; s < r; s++){
var a=wt[Ct].addons[St][e.content[s]]||null;
a
? a.call(c, n, e, u)
: ((a=e.content[s]) instanceof wt ||
(a=wt(e.content[s])),
n.append(a));
}
var l=wt[Ct].addons[St][e.type]||null;
(l&&l.call(c, n, e, u),
n.children('.' + _t.btn).length &&
n.addClass(_t.navbar + '_has-btns'));
}),
this.bind('initMenu:after', function (){
for (var t in f)
(this.$menu.addClass(_t.menu + '_navbar_' + t + '-' + f[t],
),
this.$menu['bottom'==t ? 'append':'prepend'](
h[t],
));
}));
}},
add: function (){
((_t=wt[Ct]._c), wt[Ct]._d, wt[Ct]._e, _t.add(St));
},
clickAnchor: function (t, e){},
}),
(wt[Ct].configuration[St]={
breadcrumbs: { separator: '/', removeFirst: !1 },
}),
(wt[Ct].configuration.classNames[St]={}),
(function (a){
function l(t){
(o &&
o.length &&
o.is(':visible') &&
h.$html
.add(h.$body)
.animate({ scrollTop: o.offset().top + t }),
(o = !1));
}
function c(t){
try {
return !(
'#'==t ||
'#'!=t.slice(0, 1) ||
!h.$page.find(t).length
);
} catch (t){
return !1;
}}
var n='mmenu',
d='pageScroll';
((a[n].addons[d]={
setup: function (){
var i=this,
t=this.opts[d],
o=this.conf[d];
if(((h=a[n].glbl),
'boolean'==typeof t&&(t={ scroll: t }),
(t=this.opts[d]=a.extend(!0, {}, a[n].defaults[d], t))
.scroll &&
this.bind('close:finish', function (){
l(o.scrollOffset);
}),
t.update)
){
var e=[],
s=[];
(i=this).bind('initListview:after', function (t){
(i
.__filterListItemAnchors(t.find('.' + u.listview).children('li'),
)
.each(function (){
var t=a(this).attr('href');
c(t)&&e.push(t);
}),
(s=e.reverse()));
});
var r=-1;
h.$wndw.on(f.scroll + '-' + d, function (t){
for (
var e=h.$wndw.scrollTop(), n=0;
n < s.length;
n++
)
if(a(s[n]).offset().top < e + o.updateOffset){
r!==n &&
((r=n),
i.setSelected(i
.__filterListItemAnchors(i.$pnls
.children('.' + u.panel + '_opened')
.find('.' + u.listview)
.children('li'),
)
.filter('[href="' + s[n] + '"]')
.parent(),
));
break;
}});
}},
add: function (){
((u=a[n]._c), a[n]._d, (f=a[n]._e));
},
clickAnchor: function (t, e, n){
if(((o = !1),
e &&
n &&
this.opts.offCanvas &&
this.opts[d].scroll &&
h.$page &&
h.$page.length)
){
var i=t.attr('href');
if(c(i)){
if(((o=a(i)),
!this.$menu.is('.' + u.menu + '_sidebar-expanded') ||
!h.$html.is('.' + u.wrapper + '_sidebar-expanded'))
)
return { close: !0 };
l(this.conf[d].scrollOffset);
}}
},
}),
(a[n].defaults[d]={ scroll: !1, update: !1 }));
var u,
f,
h,
o = !(a[n].configuration[d]={
scrollOffset: 0,
updateOffset: 50,
});
})(t),
((Tt=t)[(Pt='mmenu')].addons.rtl={
setup: function (){
var t=this.opts.rtl;
(this.conf.rtl,
(Et=Tt[Pt].glbl),
'object'!=typeof t&&(t={ use: t }),
'boolean'!=typeof (t=this.opts.rtl =
Tt.extend(!0, {}, Tt[Pt].defaults.rtl, t)).use &&
(t.use =
'rtl'==(Et.$html.attr('dir')||'').toLowerCase()),
t.use &&
this.bind('initMenu:after', function (){
this.$menu.addClass(kt.menu + '_rtl');
}));
},
add: function (){
((kt=Tt[Pt]._c), Tt[Pt]._d, Tt[Pt]._e);
},
clickAnchor: function (t, e){},
}),
(Tt[Pt].defaults.rtl={ use: 'detect' }),
(function (f){
function r(t, e){
if(e) for (var n in e) t.attr(n, e[n]);
}
var h,
p,
l,
e='mmenu',
g='searchfield';
((f[e].addons[g]={
setup: function (){
var i=this,
o=this.opts[g],
t=this.conf[g];
(f[e].glbl,
'boolean'==typeof o&&(o={ add: o }),
'object'!=typeof o&&(o={}),
'boolean'==typeof o.panel &&
(o.panel={ add: o.panel }),
'object'!=typeof o.panel&&(o.panel={}),
o.add &&
('panel'==o.addTo&&(o.panel.add = !0),
o.panel.add &&
((o.showSubPanels = !1),
o.panel.splash&&(o.cancel = !0)),
(o=this.opts[g] =
f.extend(!0, {}, f[e].defaults[g], o)),
(t=this.conf[g] =
f.extend(!0, {}, f[e].configuration[g], t)),
this.bind('close:start', function (){
this.$menu
.find('.' + h.searchfield)
.children('input')
.blur();
}),
this.bind('initPanels:after', function (t){
var e,
n=f();
switch (
(o.panel.add&&(n=this._initSearchPanel(t)),
o.addTo)
){
case 'panels':
e=t;
break;
case 'panel':
e=n;
break;
default:
e=this.$menu.find(o.addTo);
}
(e.each(function (){
var t=i._initSearchfield(f(this));
o.search&&t.length&&i._initSearching(t);
}),
o.noResults) &&
(o.panel.add ? n:t).each(function (){
i._initNoResultsMsg(f(this));
});
})));
},
add: function (){
((h=f[e]._c),
(p=f[e]._d),
(l=f[e]._e),
h.add('searchfield'),
p.add('searchfield'),
l.add('input focus blur'));
},
clickAnchor: function (t, e){
if(t.hasClass(h.searchfield + '__btn')){
if(t.hasClass(h.btn + '_close')){
var n=t.closest('.' + h.searchfield).find('input');
return (n.val(''), this.search(n), !0);
}
if(t.hasClass(h.btn + '_next'))
return (t.closest('.' + h.searchfield).submit(), !0);
}},
}),
(f[e].defaults[g]={
add: !1,
addTo: 'panels',
noResults: 'No results found.',
placeholder: 'Search',
panel: {
add: !1,
dividers: !0,
fx: 'none',
id: null,
splash: null,
title: 'Search',
},
search: !0,
showTextItems: !1,
showSubPanels: !0,
}),
(f[e].configuration[g]={
clear: !1,
form: !1,
input: !1,
submit: !1,
}),
(f[e].prototype._initSearchPanel=function (t){
var e=this.opts[g];
if((this.conf[g],
this.$pnls.children('.' + h.panel + '_search').length)
)
return f();
var n=f('<div class="' + h.panel + '_search " />')
.append('<ul />')
.appendTo(this.$pnls);
switch (
(e.panel.id&&n.attr('id', e.panel.id),
e.panel.title&&n.attr('data-mm-title', e.panel.title),
e.panel.fx)
){
case !1:
break;
case 'none':
n.addClass(h.panel + '_noanimation');
break;
default:
n.addClass(h.panel + '_fx-' + e.panel.fx);
}
return (
e.panel.splash &&
n.append('<div class="' +
h.panel +
'__searchsplash">' +
e.panel.splash +
'</div>',
),
this._initPanels(n),
n
);
}),
(f[e].prototype._initSearchfield=function (t){
var e=this.opts[g],
n=this.conf[g];
if(t.parent('.' + h.listitem + '_vertical').length)
return f();
if(t.find('.' + h.searchfield).length) return f();
var i=f(
'<' +
(n.form ? 'form':'div') +
' class="' +
h.searchfield +
'" />',
),
o=f('<div class="' + h.searchfield + '__input" />'),
s=f(
'<input placeholder="' +
this.i18n(e.placeholder) +
'" type="text" autocomplete="off" />',
);
return (
o.append(s).appendTo(i),
t.hasClass(h.searchfield)
? t.replaceWith(i)
: (t.prepend(i),
t.hasClass(h.panel) &&
t.addClass(h.panel + '_has-searchfield')),
r(s, n.input),
n.clear &&
f(
'<a class="' +
h.btn +
' ' +
h.btn +
'_close ' +
h.searchfield +
'__btn" href="#" />',
).appendTo(o),
r(i, n.form),
n.form &&
n.submit &&
!n.clear &&
f(
'<a class="' +
h.btn +
' ' +
h.btn +
'_next ' +
h.searchfield +
'__btn" href="#" />',
).appendTo(o),
e.cancel &&
f(
'<a href="#" class="' +
h.searchfield +
'__cancel">' +
this.i18n('cancel') +
'</a>',
).appendTo(i),
i
);
}),
(f[e].prototype._initSearching=function (t){
var e=this,
n=this.opts[g],
i=(this.conf[g], {});
(t.closest('.' + h.panel + '_search').length
? ((i.$pnls=this.$pnls.find('.' + h.panel)),
(i.$nrsp=t.closest('.' + h.panel)))
: t.closest('.' + h.panel).length
? ((i.$pnls=t.closest('.' + h.panel)),
(i.$nrsp=i.$pnls))
: ((i.$pnls=this.$pnls.find('.' + h.panel)),
(i.$nrsp=this.$menu)),
(i.$pnls=i.$pnls.not(function (){
return f(this).parent('.' + h.listitem + '_vertical')
.length;
})),
n.panel.add &&
(i.$pnls=i.$pnls.not('.' + h.panel + '_search')));
var o=t.find('input'),
s=t.find('.' + h.searchfield + '__cancel'),
r=this.$pnls.children('.' + h.panel + '_search'),
a=i.$pnls.find('.' + h.listitem);
((i.$itms=a.not('.' + h.listitem + '_divider')),
(i.$dvdr=a.filter('.' + h.listitem + '_divider')),
n.panel.add &&
n.panel.splash &&
o
.off(l.focus + '-' + g + '-splash')
.on(l.focus + '-' + g + '-splash', function (t){
e.openPanel(r);
}),
n.cancel &&
(o
.off(l.focus + '-' + g + '-cancel')
.on(l.focus + '-' + g + '-cancel', function (t){
s.addClass(h.searchfield + '__cancel-active');
}),
s
.off(l.click + '-' + g + '-splash')
.on(l.click + '-' + g + '-splash', function (t){
(t.preventDefault(),
f(this).removeClass(h.searchfield + '__cancel-active',
),
r.hasClass(h.panel + '_opened') &&
e.openPanel(e.$pnls
.children('.' + h.panel + '_opened-parent')
.last(),
));
})),
n.panel.add &&
'panel'==n.addTo &&
this.bind('openPanel:finish', function (t){
t[0]===r[0]&&o.focus();
}),
o
.data(p.searchfield, i)
.off(l.input + '-' + g)
.on(l.input + '-' + g, function (t){
(function t(e){
switch (e){
case 9:
case 16:
case 17:
case 18:
case 37:
case 38:
case 39:
case 40:
return !0;
}
return !1;
})(t.keyCode)||e.search(o);
}),
this.search(o));
}),
(f[e].prototype._initNoResultsMsg=function (t){
var e=this.opts[g];
if((this.conf[g],
t.closest('.' + h.panel).length ||
(t=this.$pnls.children('.' + h.panel).first()),
!t.children('.' + h.panel + '__noresultsmsg').length)
){
var n=t.children('.' + h.listview).first(),
i=f(
'<div class="' +
h.panel +
'__noresultsmsg ' +
h.hidden +
'" />',
).append(this.i18n(e.noResults));
n.length ? i.insertAfter(n):i.prependTo(t);
}}),
(f[e].prototype.search=function (i, n){
var o=this,
s=this.opts[g];
(this.conf[g],
(i =
i ||
this.$menu
.find('.' + h.searchfield)
.chidren('input')
.first()),
(n=(n=n||i.val()).toLowerCase().trim()));
var t=i.data(p.searchfield),
e=i.closest('.' + h.searchfield).find('.' + h.btn),
r=this.$pnls.children('.' + h.panel + '_search'),
a=t.$pnls,
l=t.$itms,
c=t.$dvdr,
d=t.$nrsp;
if((l
.removeClass(h.listitem + '_nosubitems')
.find('.' + h.btn + '_fullwidth-search')
.removeClass(h.btn + '_fullwidth-search ' + h.btn + '_fullwidth',
),
r.children('.' + h.listview).empty(),
a.scrollTop(0),
n.length)
){
if((l.add(c).addClass(h.hidden),
l.each(function (){
var t=f(this),
e='a';
((s.showTextItems ||
(s.showSubPanels &&
t.find('.' + h.btn + '_next'))) &&
(e='a, span'),
-1 <
t
.children(e)
.not('.' + h.btn + '_next')
.text()
.toLowerCase()
.indexOf(n)&&t.removeClass(h.hidden));
}),
s.panel.add)
){
var u=f();
(a.each(function (){
var t=o
.__filterListItems(f(this).find('.' + h.listitem))
.clone(!0);
t.length &&
(s.panel.dividers &&
(u=u.add('<li class="' +
h.listitem +
' ' +
h.listitem +
'_divider">' +
f(this)
.find('.' + h.navbar + '__title')
.text() +
'</li>',
)),
(u=u.add(t)));
}),
u
.find('.' + h.mm('toggle'))
.remove()
.end()
.find('.' + h.mm('check'))
.remove()
.end()
.find('.' + h.btn)
.remove(),
r.children('.' + h.listview).append(u),
this.openPanel(r));
} else
(s.showSubPanels &&
a.each(function (t){
var e=f(this);
o.__filterListItems(e.find('.' + h.listitem)).each(function (){
var t=f(this).data(p.child);
t &&
t
.find('.' + h.listview)
.children()
.removeClass(h.hidden);
},
);
}),
f(a.get().reverse()).each(function (t){
var e=f(this),
n=e.data(p.parent);
n &&
(o.__filterListItems(e.find('.' + h.listitem))
.length
? n.hasClass(h.hidden) &&
n
.removeClass(h.hidden)
.children('.' + h.btn + '_next')
.not('.' + h.btn + '_fullwidth')
.addClass(h.btn + '_fullwidth')
.addClass(h.btn + '_fullwidth-search')
: i.closest('.' + h.panel).length ||
((e.hasClass(h.panel + '_opened') ||
e.hasClass(h.panel + '_opened-parent')) &&
setTimeout(
function (){
o.openPanel(n.closest('.' + h.panel));
},
(t + 1) * (1.5 * o.conf.openingInterval),
),
n.addClass(h.listitem + '_nosubitems')));
}),
this.__filterListItems(a.find('.' + h.listitem)).each(function (){
f(this)
.prevAll('.' + h.listitem + '_divider')
.first()
.removeClass(h.hidden);
},
));
(e.removeClass(h.hidden),
d
.find('.' + h.panel + '__noresultsmsg')
[
l.not('.' + h.hidden).length
? 'addClass'
: 'removeClass'
](h.hidden),
s.panel.add &&
(s.panel.splash &&
r
.find('.' + h.panel + '__searchsplash')
.addClass(h.hidden),
l.add(c).removeClass(h.hidden)));
} else
(l.add(c).removeClass(h.hidden),
e.addClass(h.hidden),
d
.find('.' + h.panel + '__noresultsmsg')
.addClass(h.hidden),
s.panel.add &&
(s.panel.splash
? r
.find('.' + h.panel + '__searchsplash')
.removeClass(h.hidden)
: i.closest('.' + h.panel + '_search').length ||
this.openPanel(this.$pnls
.children('.' + h.panel + '_opened-parent')
.last(),
)));
this.trigger('updateListview');
}));
})(t),
(Dt='sectionIndexer'),
(($t=t)[(Lt='mmenu')].addons[Dt]={
setup: function (){
var r=this,
i=this.opts[Dt];
(this.conf[Dt],
$t[Lt].glbl,
'boolean'==typeof i&&(i={ add: i }),
'object'!=typeof i&&(i={}),
(i=this.opts[Dt] =
$t.extend(!0, {}, $t[Lt].defaults[Dt], i)));
var o=null;
this.bind('initPanels:after', function (t){
if(i.add){
var e;
switch (i.addTo){
case 'panels':
e=t;
break;
default:
e=$t(i.addTo, this.$menu).filter('.' + zt.panel);
}
(e
.find('.' + zt.listitem + '_divider')
.closest('.' + zt.panel)
.addClass(zt.panel + '_has-sectionindexer'),
o ||
(o=$t('<div class="' + zt.sectionindexer + '" />')
.prependTo(this.$menu)
.append('<a href="#a">a</a><a href="#b">b</a><a href="#c">c</a><a href="#d">d</a><a href="#e">e</a><a href="#f">f</a><a href="#g">g</a><a href="#h">h</a><a href="#i">i</a><a href="#j">j</a><a href="#k">k</a><a href="#l">l</a><a href="#m">m</a><a href="#n">n</a><a href="#o">o</a><a href="#p">p</a><a href="#q">q</a><a href="#r">r</a><a href="#s">s</a><a href="#t">t</a><a href="#u">u</a><a href="#v">v</a><a href="#w">w</a><a href="#x">x</a><a href="#y">y</a><a href="#z">z</a>',
)).on(At.mouseover +
'-' +
Dt +
' ' +
At.touchstart +
'-' +
Dt,
'a',
function (t){
var e=$t(t.target).attr('href').slice(1),
n=r.$pnls.children('.' + zt.panel + '_opened',
),
i=n.find('.' + zt.listview),
o=-1,
s=n.scrollTop();
(n.scrollTop(0),
i
.children('.' + zt.listitem + '_divider')
.not('.' + zt.hidden)
.each(function (){
o < 0 &&
e==$t(this)
.text()
.slice(0, 1)
.toLowerCase() &&
(o=$t(this).position().top);
}),
n.scrollTop(-1 < o ? o:s));
},
));
var n=function (t){
((t =
t||this.$pnls.children('.' + zt.panel + '_opened')),
this.$menu[
(t.hasClass(zt.panel + '_has-sectionindexer')
? 'add'
: 'remove') + 'Class'
](zt.menu + '_has-sectionindexer'));
};
(this.bind('openPanel:start', n),
this.bind('initPanels:after', n));
}});
},
add: function (){
((zt=$t[Lt]._c),
$t[Lt]._d,
(At=$t[Lt]._e),
zt.add('sectionindexer'),
At.add('mouseover'));
},
clickAnchor: function (t, e){
if(t.parent().is('.' + zt.indexer)) return !0;
},
}),
($t[Lt].defaults[Dt]={ add: !1, addTo: 'panels' }),
(Ft='setSelected'),
((Mt=t)[(jt='mmenu')].addons[Ft]={
setup: function (){
var n=this,
t=this.opts[Ft];
if((this.conf[Ft],
Mt[jt].glbl,
'boolean'==typeof t&&(t={ hover: t, parent: t }),
'object'!=typeof t&&(t={}),
'detect'==(t=this.opts[Ft] =
Mt.extend(!0, {}, Mt[jt].defaults[Ft], t)).current)
){
var i=function (t){
t=t.split('?')[0].split('#')[0];
var e=n.$menu.find('a[href="' + t + '"], a[href="' + t + '/"]',
);
e.length
? n.setSelected(e.parent(), !0)
: (t=t.split('/').slice(0, -1)).length &&
i(t.join('/'));
};
this.bind('initMenu:after', function (){
i(window.location.href);
});
} else
t.current ||
this.bind('initListview:after', function (t){
t.find('.' + Nt.listview)
.children('.' + Nt.listitem + '_selected')
.removeClass(Nt.listitem + '_selected');
});
(t.hover &&
this.bind('initMenu:after', function (){
this.$menu.addClass(Nt.menu + '_selected-hover');
}),
t.parent &&
(this.bind('openPanel:finish', function (t){
this.$pnls
.find('.' + Nt.listview)
.find('.' + Nt.listitem + '_selected-parent')
.removeClass(Nt.listitem + '_selected-parent');
for (var e=t.data(It.parent); e;)
(e
.not('.' + Nt.listitem + '_vertical')
.addClass(Nt.listitem + '_selected-parent'),
(e=e.closest('.' + Nt.panel).data(It.parent)));
}),
this.bind('initMenu:after', function (){
this.$menu.addClass(Nt.menu + '_selected-parent');
})));
},
add: function (){
((Nt=Mt[jt]._c), (It=Mt[jt]._d), Mt[jt]._e);
},
clickAnchor: function (t, e){},
}),
(Mt[jt].defaults[Ft]={ current: !0, hover: !1, parent: !1 }),
(Bt='sidebar'),
((Ot=t)[(Rt='mmenu')].addons[Bt]={
setup: function (){
if(this.opts.offCanvas){
var t=this.opts[Bt];
(this.conf[Bt],
(qt=Ot[Rt].glbl),
('string'==typeof t ||
('boolean'==typeof t&&t) ||
'number'==typeof t) &&
(t={ expanded: t }),
'object'!=typeof t&&(t={}),
'boolean'==typeof t.collapsed &&
t.collapsed &&
(t.collapsed='all'),
('string'!=typeof t.collapsed &&
'number'!=typeof t.collapsed) ||
(t.collapsed={ use: t.collapsed }),
'object'!=typeof t.collapsed&&(t.collapsed={}),
'number'==typeof t.collapsed.use &&
(t.collapsed.use =
'(min-width: ' + t.collapsed.use + 'px)'),
'boolean'==typeof t.expanded &&
t.expanded &&
(t.expanded='all'),
('string'!=typeof t.expanded &&
'number'!=typeof t.expanded) ||
(t.expanded={ use: t.expanded }),
'object'!=typeof t.expanded&&(t.expanded={}),
'number'==typeof t.expanded.use &&
(t.expanded.use =
'(min-width: ' + t.expanded.use + 'px)'),
(t=this.opts[Bt] =
Ot.extend(!0, {}, Ot[Rt].defaults[Bt], t)));
var e=Ht.wrapper + '_sidebar-collapsed';
t.collapsed.size &&
(e +=
' ' +
Ht.wrapper +
'_sidebar-collapsed-' +
t.collapsed.size);
var n=Ht.wrapper + '_sidebar-expanded';
(t.expanded.size &&
(n +=
' ' +
Ht.wrapper +
'_sidebar-expanded-' +
t.expanded.size),
t.collapsed.use &&
(this.bind('initMenu:after', function (){
(this.$menu.addClass(Ht.menu + '_sidebar-collapsed'),
t.collapsed.blockMenu &&
this.opts.offCanvas &&
!this.$menu.children('.' + Ht.menu + '__blocker')
.length &&
this.$menu.prepend('<a class="' +
Ht.menu +
'__blocker" href="#' +
this.$menu.attr('id') +
'" />',
),
t.collapsed.hideNavbar &&
this.$menu.addClass(Ht.menu + '_hidenavbar'),
t.collapsed.hideDivider &&
this.$menu.addClass(Ht.menu + '_hidedivider'));
}),
'boolean'==typeof t.collapsed.use
? this.bind('initMenu:after', function (){
qt.$html.addClass(e);
})
: this.matchMedia(t.collapsed.use,
function (){
qt.$html.addClass(e);
},
function (){
qt.$html.removeClass(e);
},
)),
t.expanded.use &&
(this.bind('initMenu:after', function (){
this.$menu.addClass(Ht.menu + '_sidebar-expanded');
}),
'boolean'==typeof t.expanded.use
? this.bind('initMenu:after', function (){
(qt.$html.addClass(n), this.open());
})
: this.matchMedia(t.expanded.use,
function (){
(qt.$html.addClass(n),
qt.$html.hasClass(Ht.wrapper + '_sidebar-closed',
)||this.open());
},
function (){
(qt.$html.removeClass(n), this.close());
},
),
this.bind('close:start', function (){
qt.$html.hasClass(n) &&
qt.$html.addClass(Ht.wrapper + '_sidebar-closed');
}),
this.bind('open:start', function (){
qt.$html.removeClass(Ht.wrapper + '_sidebar-closed');
})));
}},
add: function (){
((Ht=Ot[Rt]._c), Ot[Rt]._d, Ot[Rt]._e);
},
clickAnchor: function (t, e, n){
if(this.opts[Bt].expanded.use &&
qt.$html.is('.' + Ht.wrapper + '_sidebar-expanded') &&
e &&
n
)
return { close: !1 };},
}),
(Ot[Rt].defaults[Bt]={
collapsed: {
use: !1,
blockMenu: !0,
hideDivider: !1,
hideNavbar: !0,
},
expanded: { use: !1 },
}),
(Ot[Rt].configuration[Bt]={}),
(Yt='toggles'),
((Wt=t)[(Xt='mmenu')].addons[Yt]={
setup: function (){
var o=this;
(this.opts[Yt],
this.conf[Yt],
Wt[Xt].glbl,
this.bind('initPanels:after', function (t){
(this.__refactorClass(t.find('input'),
this.conf.classNames[Yt].toggle,
Ut.toggle,
),
this.__refactorClass(t.find('input'),
this.conf.classNames[Yt].check,
Ut.check,
),
t
.find('input.' + Ut.toggle + ', input.' + Ut.check)
.each(function (){
var t=Wt(this),
e=t.closest('li'),
n=t.hasClass(Ut.toggle) ? 'toggle':'check',
i=t.attr('id')||o.__getUniqueId();
e.children('label[for="' + i + '"]').length ||
(t.attr('id', i),
e.prepend(t),
Wt(
'<label for="' +
i +
'" class="' +
Ut[n] +
'"></label>',
).insertAfter(e.children('.' + Ut.listitem + '__text').last(),
));
}));
}));
},
add: function (){
((Ut=Wt[Xt]._c),
Wt[Xt]._d,
Wt[Xt]._e,
Ut.add('toggle check'));
},
clickAnchor: function (t, e){},
}),
(Wt[Xt].configuration.classNames[Yt]={
toggle: 'Toggle',
check: 'Check',
}),
((Vt=t)[(Gt='mmenu')].addons.navbars.breadcrumbs=function (
t,
e,
r,
){
var n=this,
a=Vt[Gt]._c,
l=Vt[Gt]._d;
a.add('separator');
var i=Vt(
'<span class="' + a.navbar + '__breadcrumbs" />',
).appendTo(t);
(this.bind('initNavbar:after', function (t){
if(!t
.children('.' + a.navbar)
.children('.' + a.navbar + '__breadcrumbs').length
){
t.removeClass(a.panel + '_has-navbar');
for (
var e=[],
n=Vt(
'<span class="' + a.navbar + '__breadcrumbs"></span>',
),
i=t,
o = !0;
i&&i.length;
){
if((i.is('.' + a.panel)||(i=i.closest('.' + a.panel)),
!i.parent('.' + a.listitem + '_vertical').length)
){
var s=i
.children('.' + a.navbar)
.children('.' + a.navbar + '__title')
.text();
(s.length &&
e.unshift(o
? '<span>' + s + '</span>'
: '<a href="#' + i.attr('id') + '">' + s + '</a>',
),
(o = !1));
}
i=i.data(l.parent);
}
(r.breadcrumbs.removeFirst&&e.shift(),
n
.append(e.join('<span class="' +
a.separator +
'">' +
r.breadcrumbs.separator +
'</span>',
),
)
.appendTo(t.children('.' + a.navbar)));
}}),
this.bind('openPanel:start', function (t){
var e=t.find('.' + a.navbar + '__breadcrumbs');
e.length&&i.html(e.html()||'');
}),
this.bind('initNavbar:after:sr-aria', function (t){
t.children('.' + a.navbar)
.children('.' + a.breadcrumbs)
.children('a')
.each(function (){
n.__sr_aria(Vt(this),
'owns',
Vt(this).attr('href').slice(1),
);
});
}));
}),
((Qt=t)[(Kt='mmenu')].addons.navbars.close=function (t, e){
var n=Qt[Kt]._c;
(Qt[Kt].glbl, n.add('close'));
var i=Qt(
'<a class="' +
n.btn +
' ' +
n.btn +
'_close ' +
n.navbar +
'__btn" href="#" />',
).appendTo(t);
(this.bind('setPage:after', function (t){
i.attr('href', '#' + t.attr('id'));
}),
this.bind('setPage:after:sr-text', function (t){
(i.html(this.__sr_text(this.i18n(this.conf.screenReader.text.closeMenu),
),
),
this.__sr_aria(i, 'owns', i.attr('href').slice(1)));
}));
}),
(te='navbars'),
((Zt=t)[(Jt='mmenu')].addons[te].next=function (t, e){
var n,
i,
o,
s=Zt[Jt]._c,
r=Zt(
'<a class="' +
s.btn +
' ' +
s.btn +
'_next ' +
s.navbar +
'__btn" href="#" />',
).appendTo(t);
(this.bind('openPanel:start', function (t){
((n=t.find('.' + this.conf.classNames[te].panelNext)),
(i=n.attr('href')),
(o=n.html()),
i ? r.attr('href', i):r.removeAttr('href'),
r[i||o ? 'removeClass':'addClass'](s.hidden),
r.html(o));
}),
this.bind('openPanel:start:sr-aria', function (t){
(this.__sr_aria(r, 'hidden', r.hasClass(s.hidden)),
this.__sr_aria(r,
'owns',
(r.attr('href')||'').slice(1),
));
}));
}),
(Zt[Jt].configuration.classNames[te].panelNext='Next'),
(ie='navbars'),
((ee=t)[(ne='mmenu')].addons[ie].prev=function (t, e){
var n,
i,
o,
s=ee[ne]._c,
r=ee(
'<a class="' +
s.btn +
' ' +
s.btn +
'_prev ' +
s.navbar +
'__btn" href="#" />',
).appendTo(t);
(this.bind('initNavbar:after', function (t){
t.removeClass(s.panel + '_has-navbar');
}),
this.bind('openPanel:start', function (t){
t.parent('.' + s.listitem + '_vertical').length ||
((n=t.find('.' + this.conf.classNames[ie].panelPrev))
.length ||
(n=t
.children('.' + s.navbar)
.children('.' + s.btn + '_prev')),
(i=n.attr('href')),
(o=n.html()),
i ? r.attr('href', i):r.removeAttr('href'),
r[i||o ? 'removeClass':'addClass'](s.hidden),
r.html(o));
}),
this.bind('initNavbar:after:sr-aria', function (t){
var e=t.children('.' + s.navbar);
this.__sr_aria(e, 'hidden', !0);
}),
this.bind('openPanel:start:sr-aria', function (t){
(this.__sr_aria(r, 'hidden', r.hasClass(s.hidden)),
this.__sr_aria(r,
'owns',
(r.attr('href')||'').slice(1),
));
}));
}),
(ee[ne].configuration.classNames[ie].panelPrev='Prev'),
((oe=t).mmenu.addons.navbars.searchfield=function (t, e){
var n=oe.mmenu._c,
i=oe('<div class="' + n.searchfield + '" />').appendTo(t);
('object'!=typeof this.opts.searchfield &&
(this.opts.searchfield={}),
(this.opts.searchfield.add = !0),
(this.opts.searchfield.addTo=i));
}),
(ae='navbars'),
((se=t)[(re='mmenu')].addons[ae].tabs=function (t, e, n){
var o=se[re]._c,
s=se[re]._d,
i=se[re]._e,
r=this,
a=t.children('a');
(t
.addClass(o.navbar + '_tabs')
.parent()
.addClass(o.navbars + '_has-tabs'),
a.on(i.click + '-' + ae, function (t){
t.preventDefault();
var e=se(this);
if(e.hasClass(o.navbar + '__tab_selected'))
return void t.stopImmediatePropagation();
try {
(r.__openPanelWoAnimation(se(e.attr('href'))),
t.stopImmediatePropagation());
} catch (t){}}),
this.bind('openPanel:start', function t(e){
a.removeClass(o.navbar + '__tab_selected');
var n=a.filter('[href="#' + e.attr('id') + '"]');
if(n.length) n.addClass(o.navbar + '__tab_selected');
else {
var i=e.data(s.parent);
i&&i.length&&t(i.closest('.' + o.panel));
}}));
}),
(de='navbars'),
((le=t)[(ce='mmenu')].addons[de].title=function (t, e){
var n,
i,
o,
s,
r=le[ce]._c,
a=le('<a class="' + r.navbar + '__title" />').appendTo(t);
(this.bind('openPanel:start', function (t){
t.parent('.' + r.listitem + '_vertical').length ||
((o=t.find('.' + this.conf.classNames[de].panelTitle))
.length ||
(o=t
.children('.' + r.navbar)
.children('.' + r.navbar + '__title')),
(n=o.attr('href')),
(i=o.html()||e.title),
n ? a.attr('href', n):a.removeAttr('href'),
a[n||i ? 'removeClass':'addClass'](r.hidden),
a.html(i));
}),
this.bind('openPanel:start:sr-aria', function (t){
if(this.opts.screenReader.text &&
(s ||
(s=this.$menu
.children('.' + r.navbars + '_top, .' + r.navbars + '_bottom',
)
.children('.' + r.navbar)
.children('.' + r.btn + '_prev')),
s.length)
){
var e = !0;
('parent'==this.opts.navbar.titleLink &&
(e = !s.hasClass(r.hidden)),
this.__sr_aria(a, 'hidden', e));
}}));
}),
(le[ce].configuration.classNames[de].panelTitle='Title'),
((ue=t)[(fe='mmenu')].addons.navbars.breadcrumbs=function (
t,
e,
r,
){
var n=this,
a=ue[fe]._c,
l=ue[fe]._d;
a.add('separator');
var i=ue(
'<span class="' + a.navbar + '__breadcrumbs" />',
).appendTo(t);
(this.bind('initNavbar:after', function (t){
if(!t
.children('.' + a.navbar)
.children('.' + a.navbar + '__breadcrumbs').length
){
t.removeClass(a.panel + '_has-navbar');
for (
var e=[],
n=ue(
'<span class="' + a.navbar + '__breadcrumbs"></span>',
),
i=t,
o = !0;
i&&i.length;
){
if((i.is('.' + a.panel)||(i=i.closest('.' + a.panel)),
!i.parent('.' + a.listitem + '_vertical').length)
){
var s=i
.children('.' + a.navbar)
.children('.' + a.navbar + '__title')
.text();
(s.length &&
e.unshift(o
? '<span>' + s + '</span>'
: '<a href="#' + i.attr('id') + '">' + s + '</a>',
),
(o = !1));
}
i=i.data(l.parent);
}
(r.breadcrumbs.removeFirst&&e.shift(),
n
.append(e.join('<span class="' +
a.separator +
'">' +
r.breadcrumbs.separator +
'</span>',
),
)
.appendTo(t.children('.' + a.navbar)));
}}),
this.bind('openPanel:start', function (t){
var e=t.find('.' + a.navbar + '__breadcrumbs');
e.length&&i.html(e.html()||'');
}),
this.bind('initNavbar:after:sr-aria', function (t){
t.children('.' + a.navbar)
.children('.' + a.breadcrumbs)
.children('a')
.each(function (){
n.__sr_aria(ue(this),
'owns',
ue(this).attr('href').slice(1),
);
});
}));
}),
((he=t)[(pe='mmenu')].addons.navbars.close=function (t, e){
var n=he[pe]._c;
(he[pe].glbl, n.add('close'));
var i=he(
'<a class="' +
n.btn +
' ' +
n.btn +
'_close ' +
n.navbar +
'__btn" href="#" />',
).appendTo(t);
(this.bind('setPage:after', function (t){
i.attr('href', '#' + t.attr('id'));
}),
this.bind('setPage:after:sr-text', function (t){
(i.html(this.__sr_text(this.i18n(this.conf.screenReader.text.closeMenu),
),
),
this.__sr_aria(i, 'owns', i.attr('href').slice(1)));
}));
}),
(ve='navbars'),
((ge=t)[(me='mmenu')].addons[ve].next=function (t, e){
var n,
i,
o,
s=ge[me]._c,
r=ge(
'<a class="' +
s.btn +
' ' +
s.btn +
'_next ' +
s.navbar +
'__btn" href="#" />',
).appendTo(t);
(this.bind('openPanel:start', function (t){
((n=t.find('.' + this.conf.classNames[ve].panelNext)),
(i=n.attr('href')),
(o=n.html()),
i ? r.attr('href', i):r.removeAttr('href'),
r[i||o ? 'removeClass':'addClass'](s.hidden),
r.html(o));
}),
this.bind('openPanel:start:sr-aria', function (t){
(this.__sr_aria(r, 'hidden', r.hasClass(s.hidden)),
this.__sr_aria(r,
'owns',
(r.attr('href')||'').slice(1),
));
}));
}),
(ge[me].configuration.classNames[ve].panelNext='Next'),
(xe='navbars'),
((be=t)[(ye='mmenu')].addons[xe].prev=function (t, e){
var n,
i,
o,
s=be[ye]._c,
r=be(
'<a class="' +
s.btn +
' ' +
s.btn +
'_prev ' +
s.navbar +
'__btn" href="#" />',
).appendTo(t);
(this.bind('initNavbar:after', function (t){
t.removeClass(s.panel + '_has-navbar');
}),
this.bind('openPanel:start', function (t){
t.parent('.' + s.listitem + '_vertical').length ||
((n=t.find('.' + this.conf.classNames[xe].panelPrev))
.length ||
(n=t
.children('.' + s.navbar)
.children('.' + s.btn + '_prev')),
(i=n.attr('href')),
(o=n.html()),
i ? r.attr('href', i):r.removeAttr('href'),
r[i||o ? 'removeClass':'addClass'](s.hidden),
r.html(o));
}),
this.bind('initNavbar:after:sr-aria', function (t){
var e=t.children('.' + s.navbar);
this.__sr_aria(e, 'hidden', !0);
}),
this.bind('openPanel:start:sr-aria', function (t){
(this.__sr_aria(r, 'hidden', r.hasClass(s.hidden)),
this.__sr_aria(r,
'owns',
(r.attr('href')||'').slice(1),
));
}));
}),
(be[ye].configuration.classNames[xe].panelPrev='Prev'),
((we=t).mmenu.addons.navbars.searchfield=function (t, e){
var n=we.mmenu._c,
i=we('<div class="' + n.searchfield + '" />').appendTo(t);
('object'!=typeof this.opts.searchfield &&
(this.opts.searchfield={}),
(this.opts.searchfield.add = !0),
(this.opts.searchfield.addTo=i));
}),
(Se='navbars'),
((_e=t)[(Ce='mmenu')].addons[Se].tabs=function (t, e, n){
var o=_e[Ce]._c,
s=_e[Ce]._d,
i=_e[Ce]._e,
r=this,
a=t.children('a');
(t
.addClass(o.navbar + '_tabs')
.parent()
.addClass(o.navbars + '_has-tabs'),
a.on(i.click + '-' + Se, function (t){
t.preventDefault();
var e=_e(this);
if(e.hasClass(o.navbar + '__tab_selected'))
return void t.stopImmediatePropagation();
try {
(r.__openPanelWoAnimation(_e(e.attr('href'))),
t.stopImmediatePropagation());
} catch (t){}}),
this.bind('openPanel:start', function t(e){
a.removeClass(o.navbar + '__tab_selected');
var n=a.filter('[href="#' + e.attr('id') + '"]');
if(n.length) n.addClass(o.navbar + '__tab_selected');
else {
var i=e.data(s.parent);
i&&i.length&&t(i.closest('.' + o.panel));
}}));
}),
(Ee='navbars'),
((Te=t)[(ke='mmenu')].addons[Ee].title=function (t, e){
var n,
i,
o,
s,
r=Te[ke]._c,
a=Te('<a class="' + r.navbar + '__title" />').appendTo(t);
(this.bind('openPanel:start', function (t){
t.parent('.' + r.listitem + '_vertical').length ||
((o=t.find('.' + this.conf.classNames[Ee].panelTitle))
.length ||
(o=t
.children('.' + r.navbar)
.children('.' + r.navbar + '__title')),
(n=o.attr('href')),
(i=o.html()||e.title),
n ? a.attr('href', n):a.removeAttr('href'),
a[n||i ? 'removeClass':'addClass'](r.hidden),
a.html(i));
}),
this.bind('openPanel:start:sr-aria', function (t){
if(this.opts.screenReader.text &&
(s ||
(s=this.$menu
.children('.' + r.navbars + '_top, .' + r.navbars + '_bottom',
)
.children('.' + r.navbar)
.children('.' + r.btn + '_prev')),
s.length)
){
var e = !0;
('parent'==this.opts.navbar.titleLink &&
(e = !s.hasClass(r.hidden)),
this.__sr_aria(a, 'hidden', e));
}}));
}),
(Te[ke].configuration.classNames[Ee].panelTitle='Title'),
(t.mmenu.wrappers.angular=function (){
this.opts.onClick={
close: !0,
preventDefault: !1,
setSelected: !0,
};}),
(function (e){
e.mmenu.wrappers.bootstrap3=function (){
if(this.$menu.hasClass('navbar-collapse')){
((this.conf.classNames.selected='active'),
(this.conf.classNames.divider='divider'),
(this.conf.clone = !0),
(this.opts.hooks=this.opts.hooks||{}));
for (
var t='',
e=['nav-tabs', 'nav-pills', 'navbar-nav'],
n=0;
n < e.length;
n++
)
if(this.$menu.find('.' + e[n]).length){
t=e[n];
break;
}
t.length &&
((this.opts.hooks['initMenu:before']=function (){
'navbar-nav'==t&&this.$menu.wrapInner('<div />');
}),
(this.opts.hooks['initMenu:after']=function (){
(i.menu.call(this),
i.dropdown.call(this),
i[
t.split('nav-').join('').split('-nav').join('')
].call(this));
}));
}};
var i={
menu: function (){
this.$menu
.find('.nav')
.removeClass('nav')
.end()
.find('.sr-only')
.remove()
.end()
.find('.divider:empty')
.remove();
for (
var t=['role', 'aria-haspopup', 'aria-expanded'], e=0;
e < t.length;
e++
)
this.$menu.find('[' + t[e] + ']').removeAttr(t[e]);
},
dropdown: function (){
var t=this.$menu.find('.dropdown');
(t.removeClass('dropdown'),
t
.children('.dropdown-toggle')
.find('.caret')
.remove()
.end()
.each(function (){
e(this).replaceWith('<span>' + e(this).html() + '</span>',
);
}),
t
.children('.dropdown-menu')
.removeClass('dropdown-menu'));
},
tabs: function (){
this.$menu.find('.nav-tabs').removeClass('nav-tabs');
},
pills: function (){
this.$menu.find('.nav-pills').removeClass('nav-pills');
},
navbar: function (){
var e=this;
this.$menu
.removeClass('collapse navbar-collapse')
.find('[class*="navbar-"]')
.removeClass('navbar-left navbar-right navbar-nav navbar-text navbar-btn',
);
var t=this.$menu.find('.navbar-form');
((this.conf.searchform={
form: {
action: t.attr('action'),
method: t.attr('method'),
},
input: { name: t.find('input').attr('name') },
submit: !0,
}),
t.remove(),
(this.$orig||this.$menu)
.closest('.navbar')
.find('.navbar-header')
.find('.navbar-toggle')
.off('click')
.on('click', function (t){
(e.open(),
t.stopImmediatePropagation(),
t.preventDefault());
}));
},
};})(t),
(function (o){
function s(t){
for (
var e=o('<a />'), n=['href', 'title', 'target'], i=0;
i < n.length;
i++
)
void 0!==t.attr(n[i])&&e.attr(n[i], t.attr(n[i]));
return (e.html(t.html()), e.find('.sr-only').remove(), e);
}
function r(t){
var n=o('<ul />');
return (
t.children().each(function (){
var t=o(this),
e=o('<li />');
(t.hasClass('dropdown-divider')
? e.addClass('Divider')
: t.hasClass('dropdown-item')&&e.append(s(t)),
n.append(e));
}),
n
);
}
o.mmenu.wrappers.bootstrap4=function (){
var e=this;
if(this.$menu.hasClass('navbar-collapse')){
this.conf.clone = !1;
var t=o('<nav />'),
n=o('<div />');
(t.append(n),
this.$menu.children().each(function (){
var t=o(this);
switch (!0){
case t.hasClass('navbar-nav'):
n.append((function t(e){
var i=o('<ul />');
return (
e.find('.nav-item').each(function (){
var t=o(this),
e=o('<li />');
if((t.hasClass('active') &&
e.addClass('Selected'),
!t.hasClass('nav-link'))
){
var n=t.children('.dropdown-menu');
(n.length&&e.append(r(n)),
(t=t.children('.nav-link')));
}
(e.prepend(s(t)), i.append(e));
}),
i
);
})(t),
);
break;
case t.hasClass('dropdown-menu'):
n.append(r(t));
break;
case t.hasClass('form-inline'):
((e.conf.searchfield.form={
action: t.attr('action')||null,
method: t.attr('method')||null,
}),
(e.conf.searchfield.input={
name: t.find('input').attr('name')||null,
}),
(e.conf.searchfield.clear = !1),
(e.conf.searchfield.submit = !0));
break;
default:
n.append(t.clone(!0));
}}),
this.bind('initMenu:before', function (){
(t.prependTo('body'), (this.$menu=t));
}),
this.$menu
.parent()
.find('.navbar-toggler')
.removeAttr('data-target')
.removeAttr('aria-controls')
.off('click')
.on('click', function (t){
(t.preventDefault(),
t.stopImmediatePropagation(),
e[e.vars.opened ? 'close':'open']());
}));
}};})(t),
((Pe=t).mmenu.wrappers.jqueryMobile=function (){
var n=this;
((this.opts.onClick.close = !1),
(this.conf.offCanvas.page.selector='div.ui-page-active'),
Pe('body').on('pagecontainerchange', function (t, e){
'function'==typeof n.close &&
(n.close(), n.setPage(e.toPage));
}),
this.bind('initAnchors:after', function (){
Pe('body').on('click', '.mm-listview a', function (t){
t.isDefaultPrevented() ||
(t.preventDefault(),
Pe('body').pagecontainer('change', this.href));
});
}));
}),
(t.mmenu.wrappers.magento=function (){
this.conf.classNames.selected='active';
}),
(t.mmenu.wrappers.olark=function (){
this.conf.offCanvas.page.noSelector.push('#olark');
}),
(($e=t).mmenu.wrappers.turbolinks=function (){
var t, e;
$e(document)
.on('turbolinks:before-visit', function (){
((e=$e('html')),
(t=e.attr('class')),
(t=$e
.grep(t.split(/\s+/), function (t){
return !/mm-/.test(t);
})
.join(' ')));
})
.on('turbolinks:load', function (){
void 0!==e&&(e.attr('class', t), ($e.mmenu.glbl = !1));
});
}),
((ze=t).mmenu.wrappers.wordpress=function (){
((this.conf.classNames.selected='current-menu-item'),
ze('#wpadminbar')
.css('position', 'fixed')
.addClass('mm-slideout'));
}),
t.mmenu.i18n({ Menu: 'Menü' }, 'de'),
t.mmenu.i18n(
{
'Close menu': 'Menü schließen',
'Close submenu': 'Untermenü schließen',
'Open submenu': 'Untermenü öffnen',
'Toggle submenu': 'Untermenü wechseln',
},
'de',
),
t.mmenu.i18n(
{
Search: 'Suche',
'No results found.': 'Keine Ergebnisse gefunden.',
cancel: 'beenden',
},
'de',
),
t.mmenu.i18n({ Menu: 'Menu' }, 'nl'),
t.mmenu.i18n(
{
'Close menu': 'Menu sluiten',
'Close submenu': 'Submenu sluiten',
'Open submenu': 'Submenu openen',
'Toggle submenu': 'Submenu wisselen',
},
'nl',
),
t.mmenu.i18n(
{
Search: 'Zoeken',
'No results found.': 'Geen resultaten gevonden.',
cancel: 'annuleren',
},
'nl',
),
t.mmenu.i18n({ Menu: 'Меню' }, 'ru'),
t.mmenu.i18n(
{
'Close menu': 'Закрыть меню',
'Close submenu': 'Закрыть подменю',
'Open submenu': 'Открыть подменю',
'Toggle submenu': 'Переключить подменю',
},
'ru',
),
t.mmenu.i18n(
{
Search: 'Найти',
'No results found.': 'Ничего не найдено.',
'Search results': 'Результаты поиска',
},
'ru',
),
!0
);
}),
'function'==typeof define&&define.amd
? define(['jquery'], o)
: 'object'==typeof n
? (e.exports=o(t('jquery')))
: (i.jquery_mmenu_all_js=o(i.jQuery)));
},
{ jquery: 20 },
],
20: [
function (t, n, e){
(function (t){
(function t(n, e, i, Ve, o){
(!(function (t, e){
'use strict';
'object'==typeof n&&'object'==typeof n.exports
? (n.exports=t.document
? e(t, !0)
: function (t){
if(!t.document)
throw new Error(
'jQuery requires a window with a document',
);
return e(t);
})
: e(t);
})('undefined'!=typeof window ? window:this, function (C, t){
'use strict';
var e=[],
S=C.document,
i=Object.getPrototypeOf,
a=e.slice,
g=e.concat,
l=e.push,
o=e.indexOf,
n={},
s=n.toString,
m=n.hasOwnProperty,
r=m.toString,
c=r.call(Object),
v={},
b=function t(e){
return (
'function'==typeof e&&'number'!=typeof e.nodeType
);
},
y=function t(e){
return null!=e&&e===e.window;
},
d={ type: !0, src: !0, noModule: !0 };
function x(t, e, n){
var i,
o=(e=e||S).createElement('script');
if(((o.text=t), n)) for (i in d) n[i]&&(o[i]=n[i]);
e.head.appendChild(o).parentNode.removeChild(o);
}
function w(t){
if(null==t) return t + '';
return 'object'==typeof t||'function'==typeof t
? n[s.call(t)]||'object'
: typeof t;
}
var T=function (t, e){
return new T.fn.init(t, e);
},
u=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
function f(t){
var e = !!t&&'length' in t&&t.length,
n=w(t);
if(b(t)||y(t)) return !1;
return (
'array'===n ||
0===e ||
('number'==typeof e&&0 < e&&e - 1 in t)
);
}
((T.fn=T.prototype =
{
jquery: '3.3.1',
constructor: T,
length: 0,
toArray: function (){
return a.call(this);
},
get: function (t){
if(null==t) return a.call(this);
return t < 0 ? this[t + this.length]:this[t];
},
pushStack: function (t){
var e=T.merge(this.constructor(), t);
return ((e.prevObject=this), e);
},
each: function (t){
return T.each(this, t);
},
map: function (n){
return this.pushStack(T.map(this, function (t, e){
return n.call(t, e, t);
}),
);
},
slice: function (){
return this.pushStack(a.apply(this, arguments));
},
first: function (){
return this.eq(0);
},
last: function (){
return this.eq(-1);
},
eq: function (t){
var e=this.length,
n=+t + (t < 0 ? e:0);
return this.pushStack(0 <=n&&n < e ? [this[n]]:[]);
},
end: function (){
return this.prevObject||this.constructor();
},
push: l,
sort: e.sort,
splice: e.splice,
}),
(T.extend=T.fn.extend =
function (){
var t,
e,
n,
i,
o,
s,
r=arguments[0]||{},
a=1,
l=arguments.length,
c = !1;
for (
'boolean'==typeof r &&
((c=r), (r=arguments[a]||{}), a++),
'object'==typeof r||b(r)||(r={}),
a===l&&((r=this), a--);
a < l;
a++
)
if(null!=(t=arguments[a]))
for (e in t){
if(((n=r[e]), r===(i=t[e]))) continue;
c &&
i &&
(T.isPlainObject(i)||(o=Array.isArray(i)))
? ((s=o
? ((o = !1), n&&Array.isArray(n) ? n:[])
: n&&T.isPlainObject(n)
? n
: {}),
(r[e]=T.extend(c, s, i)))
: void 0!==i&&(r[e]=i);
}
return r;
}),
T.extend({
expando:
'jQuery' + ('3.3.1' + Math.random()).replace(/\D/g, ''),
isReady: !0,
error: function (t){
throw new Error(t);
},
noop: function (){},
isPlainObject: function (t){
var e, n;
if(!t||'[object Object]'!==s.call(t)) return !1;
if(!(e=i(t))) return !0;
return (
'function'==typeof (n =
m.call(e, 'constructor')&&e.constructor) &&
r.call(n)===c
);
},
isEmptyObject: function (t){
var e;
for (e in t) return !1;
return !0;
},
globalEval: function (t){
x(t);
},
each: function (t, e){
var n,
i=0;
if(f(t))
for (
n=t.length;
i < n&&!1!==e.call(t[i], i, t[i]);
i++
);
else for (i in t) if(!1===e.call(t[i], i, t[i])) break;
return t;
},
trim: function (t){
return null==t ? '':(t + '').replace(u, '');
},
makeArray: function (t, e){
var n=e||[];
return (
null!=t &&
(f(Object(t))
? T.merge(n, 'string'==typeof t ? [t]:t)
: l.call(n, t)),
n
);
},
inArray: function (t, e, n){
return null==e ? -1:o.call(e, t, n);
},
merge: function (t, e){
for (var n=+e.length, i=0, o=t.length; i < n; i++)
t[o++]=e[i];
return ((t.length=o), t);
},
grep: function (t, e, n){
for (var i=[], o=0, s=t.length, r = !n; o < s; o++)
!e(t[o], o)!==r&&i.push(t[o]);
return i;
},
map: function (t, e, n){
var i,
o,
s=0,
r=[];
if(f(t))
for (i=t.length; s < i; s++)
null!=(o=e(t[s], s, n))&&r.push(o);
else for (s in t) null!=(o=e(t[s], s, n))&&r.push(o);
return g.apply([], r);
},
guid: 1,
support: v,
}),
'function'==typeof Symbol &&
(T.fn[Symbol.iterator]=e[Symbol.iterator]),
T.each('Boolean Number String Function Array Date RegExp Object Error Symbol'.split(' ',
),
function (t, e){
n['[object ' + e + ']']=e.toLowerCase();
},
));
var h=(function (n){
var t,
h,
x,
s,
o,
p,
u,
g,
w,
l,
c,
_,
C,
r,
S,
m,
a,
d,
v,
T='sizzle' + 1 * new Date(),
b=n.document,
k=0,
i=0,
f=rt(),
y=rt(),
E=rt(),
P=function (t, e){
return (t===e&&(c = !0), 0);
},
$={}.hasOwnProperty,
e=[],
z=e.pop,
A=e.push,
L=e.push,
D=e.slice,
M=function (t, e){
for (var n=0, i=t.length; n < i; n++)
if(t[n]===e) return n;
return -1;
},
N =
'checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped',
I='[\\x20\\t\\r\\n\\f]',
j='(?:\\\\.|[\\w-]|[^\0-\\xa0])+',
F =
'\\[' +
I +
'*(' +
j +
')(?:' +
I +
'*([*^$|!~]?=)' +
I +
'*(?:\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)"|(' +
j +
'))|)' +
I +
'*\\]',
O =
':(' +
j +
')(?:\\(((\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|' +
F +
')*)|.*)\\)|)',
H=new RegExp(I + '+', 'g'),
q=new RegExp(
'^' + I + '+|((?:^|[^\\\\])(?:\\\\.)*)' + I + '+$',
'g',
),
R=new RegExp('^' + I + '*,' + I + '*'),
B=new RegExp('^' + I + '*([>+~]|' + I + ')' + I + '*'),
W=new RegExp('=' + I + '*([^\\]\'"]*?)' + I + '*\\]', 'g'),
U=new RegExp(O),
X=new RegExp('^' + j + '$'),
Y={
ID: new RegExp('^#(' + j + ')'),
CLASS: new RegExp('^\\.(' + j + ')'),
TAG: new RegExp('^(' + j + '|[*])'),
ATTR: new RegExp('^' + F),
PSEUDO: new RegExp('^' + O),
CHILD: new RegExp(
'^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(' +
I +
'*(even|odd|(([+-]|)(\\d*)n|)' +
I +
'*(?:([+-]|)' +
I +
'*(\\d+)|))' +
I +
'*\\)|)',
'i',
),
bool: new RegExp('^(?:' + N + ')$', 'i'),
needsContext: new RegExp(
'^' +
I +
'*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(' +
I +
'*((?:-\\d)?\\d*)' +
I +
'*\\)|)(?=[^-]|$)',
'i',
),
},
V=/^(?:input|select|textarea|button)$/i,
G=/^h\d$/i,
Q=/^[^{]+\{\s*\[native \w/,
K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
Z=/[+~]/,
J=new RegExp(
'\\\\([\\da-f]{1,6}' + I + '?|(' + I + ')|.)',
'ig',
),
tt=function (t, e, n){
var i='0x' + e - 65536;
return i!=i||n
? e
: i < 0
? String.fromCharCode(i + 65536)
: String.fromCharCode((i >> 10) | 55296,
(1023 & i) | 56320,
);
},
et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
nt=function (t, e){
if(e){
if('\0'===t) return '�';
return (
t.slice(0, -1) +
'\\' +
t.charCodeAt(t.length - 1).toString(16) +
' '
);
}
return '\\' + t;
},
it=function (){
_();
},
ot=bt(
function (t){
return !0===t.disabled&&('form' in t||'label' in t);
},
{ dir: 'parentNode', next: 'legend' },
);
try {
(L.apply((e=D.call(b.childNodes)), b.childNodes),
e[b.childNodes.length].nodeType);
} catch (t){
L={
apply: e.length
? function (t, e){
A.apply(t, D.call(e));
}
: function (t, e){
for (var n=t.length, i=0; (t[n++]=e[i++]););
t.length=n - 1;
},
};}
function st(t, e, n, i){
var o,
s,
r,
a,
l,
c,
d,
u=e&&e.ownerDocument,
f=e ? e.nodeType:9;
if(((n=n||[]),
'string'!=typeof t ||
!t ||
(1!==f&&9!==f&&11!==f))
)
return n;
if(!i &&
((e ? e.ownerDocument||e:b)!==C&&_(e),
(e=e||C),
S)
){
if(11!==f&&(l=K.exec(t)))
if((o=l[1])){
if(9===f){
if(!(r=e.getElementById(o))) return n;
if(r.id===o) return (n.push(r), n);
}else if(u &&
(r=u.getElementById(o)) &&
v(e, r) &&
r.id===o
)
return (n.push(r), n);
}else{
if(l[2])
return (L.apply(n, e.getElementsByTagName(t)), n);
if((o=l[3]) &&
h.getElementsByClassName &&
e.getElementsByClassName
)
return (L.apply(n, e.getElementsByClassName(o)), n);
}
if(h.qsa&&!E[t + ' ']&&(!m||!m.test(t))){
if(1!==f) ((u=e), (d=t));
else if('object'!==e.nodeName.toLowerCase()){
for (
(a=e.getAttribute('id'))
? (a=a.replace(et, nt))
: e.setAttribute('id', (a=T)),
s=(c=p(t)).length;
s--;
)
c[s]='#' + a + ' ' + vt(c[s]);
((d=c.join(',')),
(u=(Z.test(t)&&gt(e.parentNode))||e));
}
if(d)
try {
return (L.apply(n, u.querySelectorAll(d)), n);
} catch (t){
} finally {
a===T&&e.removeAttribute('id');
}}
}
return g(t.replace(q, '$1'), e, n, i);
}
function rt(){
var i=[];
return function t(e, n){
return (
i.push(e + ' ') > x.cacheLength&&delete t[i.shift()],
(t[e + ' ']=n)
);
};}
function at(t){
return ((t[T] = !0), t);
}
function lt(t){
var e=C.createElement('fieldset');
try {
return !!t(e);
} catch (t){
return !1;
} finally {
(e.parentNode&&e.parentNode.removeChild(e), (e=null));
}}
function ct(t, e){
for (var n=t.split('|'), i=n.length; i--;)
x.attrHandle[n[i]]=e;
}
function dt(t, e){
var n=e&&t,
i =
n &&
1===t.nodeType &&
1===e.nodeType &&
t.sourceIndex - e.sourceIndex;
if(i) return i;
if(n) for (; (n=n.nextSibling);) if(n===e) return -1;
return t ? 1:-1;
}
function ut(e){
return function (t){
return 'input'===t.nodeName.toLowerCase()&&t.type===e;
};}
function ft(n){
return function (t){
var e=t.nodeName.toLowerCase();
return ('input'===e||'button'===e)&&t.type===n;
};}
function ht(e){
return function (t){
if('form' in t){
if(t.parentNode&&!1===t.disabled){
if('label' in t)
return 'label' in t.parentNode
? t.parentNode.disabled===e
: t.disabled===e;
return (
t.isDisabled===e ||
(t.isDisabled!==!e&&ot(t)===e)
);
}
return t.disabled===e;
}
if('label' in t) return t.disabled===e;
return !1;
};}
function pt(r){
return at(function (s){
return (
(s=+s),
at(function (t, e){
for (var n, i=r([], t.length, s), o=i.length; o--;)
t[(n=i[o])]&&(t[n] = !(e[n]=t[n]));
})
);
});
}
function gt(t){
return t&&void 0!==t.getElementsByTagName&&t;
}
for (t in ((h=st.support={}),
(o=st.isXML =
function (t){
var e=t&&(t.ownerDocument||t).documentElement;
return !!e&&'HTML'!==e.nodeName;
}),
(_=st.setDocument =
function (t){
var e,
n,
i=t ? t.ownerDocument||t:b;
if(i===C||9!==i.nodeType||!i.documentElement)
return C;
return (
(r=(C=i).documentElement),
(S = !o(C)),
b!==C &&
(n=C.defaultView) &&
n.top!==n &&
(n.addEventListener
? n.addEventListener('unload', it, !1)
: n.attachEvent&&n.attachEvent('onunload', it)),
(h.attributes=lt(function (t){
return (
(t.className='i'),
!t.getAttribute('className')
);
})),
(h.getElementsByTagName=lt(function (t){
return (
t.appendChild(C.createComment('')),
!t.getElementsByTagName('*').length
);
})),
(h.getElementsByClassName=Q.test(C.getElementsByClassName,
)),
(h.getById=lt(function (t){
return (
(r.appendChild(t).id=T),
!C.getElementsByName||!C.getElementsByName(T).length
);
})),
h.getById
? ((x.filter.ID=function (t){
var e=t.replace(J, tt);
return function (t){
return t.getAttribute('id')===e;
};}),
(x.find.ID=function (t, e){
if(void 0!==e.getElementById&&S){
var n=e.getElementById(t);
return n ? [n]:[];
}}))
: ((x.filter.ID=function (t){
var n=t.replace(J, tt);
return function (t){
var e =
void 0!==t.getAttributeNode &&
t.getAttributeNode('id');
return e&&e.value===n;
};}),
(x.find.ID=function (t, e){
if(void 0!==e.getElementById&&S){
var n,
i,
o,
s=e.getElementById(t);
if(s){
if((n=s.getAttributeNode('id')) &&
n.value===t
)
return [s];
for (
o=e.getElementsByName(t), i=0;
(s=o[i++]);
)
if((n=s.getAttributeNode('id')) &&
n.value===t
)
return [s];
}
return [];
}})),
(x.find.TAG=h.getElementsByTagName
? function (t, e){
if(void 0!==e.getElementsByTagName)
return e.getElementsByTagName(t);
if(h.qsa) return e.querySelectorAll(t);
}
: function (t, e){
var n,
i=[],
o=0,
s=e.getElementsByTagName(t);
if('*'===t){
for (; (n=s[o++]);)
1===n.nodeType&&i.push(n);
return i;
}
return s;
}),
(x.find.CLASS =
h.getElementsByClassName &&
function (t, e){
if(void 0!==e.getElementsByClassName&&S)
return e.getElementsByClassName(t);
}),
(a=[]),
(m=[]),
(h.qsa=Q.test(C.querySelectorAll)) &&
(lt(function (t){
((r.appendChild(t).innerHTML =
"<a id='" +
T +
"'></a><select id='" +
T +
"-\r\\' msallowcapture=''><option selected=''></option></select>"),
t.querySelectorAll("[msallowcapture^='']").length &&
m.push('[*^$]=' + I + '*(?:\'\'|"")'),
t.querySelectorAll('[selected]').length ||
m.push('\\[' + I + '*(?:value|' + N + ')'),
t.querySelectorAll('[id~=' + T + '-]').length ||
m.push('~='),
t.querySelectorAll(':checked').length ||
m.push(':checked'),
t.querySelectorAll('a#' + T + '+*').length ||
m.push('.#.+[+~]'));
}),
lt(function (t){
t.innerHTML =
"<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";
var e=C.createElement('input');
(e.setAttribute('type', 'hidden'),
t.appendChild(e).setAttribute('name', 'D'),
t.querySelectorAll('[name=d]').length &&
m.push('name' + I + '*[*^$|!~]?='),
2!==t.querySelectorAll(':enabled').length &&
m.push(':enabled', ':disabled'),
(r.appendChild(t).disabled = !0),
2!==t.querySelectorAll(':disabled').length &&
m.push(':enabled', ':disabled'),
t.querySelectorAll('*,:x'),
m.push(',.*:'));
})),
(h.matchesSelector=Q.test((d =
r.matches ||
r.webkitMatchesSelector ||
r.mozMatchesSelector ||
r.oMatchesSelector ||
r.msMatchesSelector),
)) &&
lt(function (t){
((h.disconnectedMatch=d.call(t, '*')),
d.call(t, "[s!='']:x"),
a.push('!=', O));
}),
(m=m.length&&new RegExp(m.join('|'))),
(a=a.length&&new RegExp(a.join('|'))),
(e=Q.test(r.compareDocumentPosition)),
(v =
e||Q.test(r.contains)
? function (t, e){
var n=9===t.nodeType ? t.documentElement:t,
i=e&&e.parentNode;
return (
t===i ||
!(
!i ||
1!==i.nodeType ||
!(n.contains
? n.contains(i)
: t.compareDocumentPosition &&
16 & t.compareDocumentPosition(i))
)
);
}
: function (t, e){
if(e)
for (; (e=e.parentNode);)
if(e===t) return !0;
return !1;
}),
(P=e
? function (t, e){
if(t===e) return ((c = !0), 0);
var n =
!t.compareDocumentPosition -
!e.compareDocumentPosition;
if(n) return n;
if(1 &
(n =
(t.ownerDocument||t)===(e.ownerDocument||e)
? t.compareDocumentPosition(e)
: 1) ||
(!h.sortDetached &&
e.compareDocumentPosition(t)===n)
){
if(t===C||(t.ownerDocument===b&&v(b, t)))
return -1;
if(e===C||(e.ownerDocument===b&&v(b, e)))
return 1;
return l ? M(l, t) - M(l, e):0;
}
return 4 & n ? -1:1;
}
: function (t, e){
if(t===e) return ((c = !0), 0);
var n,
i=0,
o=t.parentNode,
s=e.parentNode,
r=[t],
a=[e];
if(!o||!s)
return t===C
? -1
: e===C
? 1
: o
? -1
: s
? 1
: l
? M(l, t) - M(l, e)
: 0;
if(o===s) return dt(t, e);
for (n=t; (n=n.parentNode);) r.unshift(n);
for (n=e; (n=n.parentNode);) a.unshift(n);
for (; r[i]===a[i];) i++;
return i
? dt(r[i], a[i])
: r[i]===b
? -1
: a[i]===b
? 1
: 0;
}),
C
);
}),
(st.matches=function (t, e){
return st(t, null, null, e);
}),
(st.matchesSelector=function (t, e){
if(((t.ownerDocument||t)!==C&&_(t),
(e=e.replace(W, "='$1']")),
h.matchesSelector &&
S &&
!E[e + ' '] &&
(!a||!a.test(e)) &&
(!m||!m.test(e)))
)
try {
var n=d.call(t, e);
if(n ||
h.disconnectedMatch ||
(t.document&&11!==t.document.nodeType)
)
return n;
} catch (t){}
return 0 < st(e, C, null, [t]).length;
}),
(st.contains=function (t, e){
return ((t.ownerDocument||t)!==C&&_(t), v(t, e));
}),
(st.attr=function (t, e){
(t.ownerDocument||t)!==C&&_(t);
var n=x.attrHandle[e.toLowerCase()],
i =
n&&$.call(x.attrHandle, e.toLowerCase())
? n(t, e, !S)
: void 0;
return void 0!==i
? i
: h.attributes||!S
? t.getAttribute(e)
: (i=t.getAttributeNode(e))&&i.specified
? i.value
: null;
}),
(st.escape=function (t){
return (t + '').replace(et, nt);
}),
(st.error=function (t){
throw new Error(
'Syntax error, unrecognized expression: ' + t,
);
}),
(st.uniqueSort=function (t){
var e,
n=[],
i=0,
o=0;
if(((c = !h.detectDuplicates),
(l = !h.sortStable&&t.slice(0)),
t.sort(P),
c)
){
for (; (e=t[o++]);) e===t[o]&&(i=n.push(o));
for (; i--;) t.splice(n[i], 1);
}
return ((l=null), t);
}),
(s=st.getText =
function (t){
var e,
n='',
i=0,
o=t.nodeType;
if(o){
if(1===o||9===o||11===o){
if('string'==typeof t.textContent)
return t.textContent;
for (t=t.firstChild; t; t=t.nextSibling) n +=s(t);
}else if(3===o||4===o) return t.nodeValue;
} else for (; (e=t[i++]);) n +=s(e);
return n;
}),
((x=st.selectors =
{
cacheLength: 50,
createPseudo: at,
match: Y,
attrHandle: {},
find: {},
relative: {
'>': { dir: 'parentNode', first: !0 },
' ': { dir: 'parentNode' },
'+': { dir: 'previousSibling', first: !0 },
'~': { dir: 'previousSibling' },
},
preFilter: {
ATTR: function (t){
return (
(t[1]=t[1].replace(J, tt)),
(t[3]=(t[3]||t[4]||t[5]||'').replace(J, tt)),
'~='===t[2]&&(t[3]=' ' + t[3] + ' '),
t.slice(0, 4)
);
},
CHILD: function (t){
return (
(t[1]=t[1].toLowerCase()),
'nth'===t[1].slice(0, 3)
? (t[3]||st.error(t[0]),
(t[4]=+(t[4]
? t[5] + (t[6]||1)
: 2 * ('even'===t[3]||'odd'===t[3]))),
(t[5]=+(t[7] + t[8]||'odd'===t[3])))
: t[3]&&st.error(t[0]),
t
);
},
PSEUDO: function (t){
var e,
n = !t[6]&&t[2];
if(Y.CHILD.test(t[0])) return null;
return (
t[3]
? (t[2]=t[4]||t[5]||'')
: n &&
U.test(n) &&
(e=p(n, !0)) &&
(e=n.indexOf(')', n.length - e) - n.length) &&
((t[0]=t[0].slice(0, e)),
(t[2]=n.slice(0, e))),
t.slice(0, 3)
);
},
},
filter: {
TAG: function (t){
var e=t.replace(J, tt).toLowerCase();
return '*'===t
? function (){
return !0;
}
: function (t){
return (
t.nodeName&&t.nodeName.toLowerCase()===e
);
};},
CLASS: function (t){
var e=f[t + ' '];
return (
e ||
((e=new RegExp(
'(^|' + I + ')' + t + '(' + I + '|$)',
)) &&
f(t, function (t){
return e.test(('string'==typeof t.className &&
t.className) ||
(void 0!==t.getAttribute &&
t.getAttribute('class')) ||
'',
);
}))
);
},
ATTR: function (n, i, o){
return function (t){
var e=st.attr(t, n);
if(null==e) return '!='===i;
if(!i) return !0;
return (
(e +=''),
'='===i
? e===o
: '!='===i
? e!==o
: '^='===i
? o&&0===e.indexOf(o)
: '*='===i
? o&&-1 < e.indexOf(o)
: '$='===i
? o&&e.slice(-o.length)===o
: '~='===i
? -1 <
(
' ' +
e.replace(H, ' ') +
' '
).indexOf(o)
: '|='===i &&
(e===o ||
e.slice(0, o.length + 1)===o + '-')
);
};},
CHILD: function (p, t, e, g, m){
var v='nth'!==p.slice(0, 3),
b='last'!==p.slice(-4),
y='of-type'===t;
return 1===g&&0===m
? function (t){
return !!t.parentNode;
}
: function (t, e, n){
var i,
o,
s,
r,
a,
l,
c=v!==b ? 'nextSibling':'previousSibling',
d=t.parentNode,
u=y&&t.nodeName.toLowerCase(),
f = !n&&!y,
h = !1;
if(d){
if(v){
for (; c;){
for (r=t; (r=r[c]);)
if(y
? r.nodeName.toLowerCase()===u
: 1===r.nodeType
)
return !1;
l=c = 'only'===p&&!l&&'nextSibling';
}
return !0;
}
if(((l=[b ? d.firstChild:d.lastChild]),
b&&f)
){
for (
h =
(a =
(i =
(o =
(s=(r=d)[T]||(r[T]={}))[
r.uniqueID
]||(s[r.uniqueID]={}))[p] ||
[])[0]===k&&i[1])&&i[2],
r=a&&d.childNodes[a];
(r =
(++a&&r && r[c]) ||
(h=a = 0) ||
l.pop());
)
if(1===r.nodeType&&++h&&r===t){
o[p]=[k, a, h];
break;
}}else if((f &&
(h=a =
(i =
(o =
(s=(r=t)[T]||(r[T]={}))[
r.uniqueID
]||(s[r.uniqueID]={}))[p] ||
[])[0]===k&&i[1]),
!1===h)
)
for (
;
(r =
(++a&&r && r[c]) ||
(h=a = 0) ||
l.pop()) &&
((y
? r.nodeName.toLowerCase()!==u
: 1!==r.nodeType) ||
!++h ||
(f &&
((o =
(s=r[T]||(r[T]={}))[
r.uniqueID
]||(s[r.uniqueID]={}))[p]=[
k,
h,
]),
r!==t));
);
return (
(h -=m)===g||(h % g==0&&0 <=h / g)
);
}};},
PSEUDO: function (t, s){
var e,
r =
x.pseudos[t] ||
x.setFilters[t.toLowerCase()] ||
st.error('unsupported pseudo: ' + t);
if(r[T]) return r(s);
if(1 < r.length)
return (
(e=[t, t, '', s]),
x.setFilters.hasOwnProperty(t.toLowerCase())
? at(function (t, e){
for (var n, i=r(t, s), o=i.length; o--;)
t[(n=M(t, i[o]))] = !(e[n]=i[o]);
})
: function (t){
return r(t, 0, e);
}
);
return r;
},
},
pseudos: {
not: at(function (t){
var i=[],
o=[],
a=u(t.replace(q, '$1'));
return a[T]
? at(function (t, e, n, i){
for (
var o, s=a(t, null, i, []), r=t.length;
r--;
)
(o=s[r])&&(t[r] = !(e[r]=o));
})
: function (t, e, n){
return (
(i[0]=t),
a(i, null, n, o),
(i[0]=null),
!o.pop()
);
};}),
has: at(function (e){
return function (t){
return 0 < st(e, t).length;
};}),
contains: at(function (e){
return (
(e=e.replace(J, tt)),
function (t){
return (
-1 <
(t.textContent||t.innerText||s(t)).indexOf(e)
);
}
);
}),
lang: at(function (n){
return (
X.test(n||'')||st.error('unsupported lang: ' + n),
(n=n.replace(J, tt).toLowerCase()),
function (t){
var e;
do {
if((e=S
? t.lang
: t.getAttribute('xml:lang') ||
t.getAttribute('lang'))
)
return (
(e=e.toLowerCase())===n ||
0===e.indexOf(n + '-')
);
} while ((t=t.parentNode)&&1===t.nodeType);
return !1;
}
);
}),
target: function (t){
var e=n.location&&n.location.hash;
return e&&e.slice(1)===t.id;
},
root: function (t){
return t===r;
},
focus: function (t){
return (
t===C.activeElement &&
(!C.hasFocus||C.hasFocus()) &&
!!(t.type||t.href||~t.tabIndex)
);
},
enabled: ht(!1),
disabled: ht(!0),
checked: function (t){
var e=t.nodeName.toLowerCase();
return (
('input'===e&&!!t.checked) ||
('option'===e&&!!t.selected)
);
},
selected: function (t){
return (
t.parentNode&&t.parentNode.selectedIndex,
!0===t.selected
);
},
empty: function (t){
for (t=t.firstChild; t; t=t.nextSibling)
if(t.nodeType < 6) return !1;
return !0;
},
parent: function (t){
return !x.pseudos.empty(t);
},
header: function (t){
return G.test(t.nodeName);
},
input: function (t){
return V.test(t.nodeName);
},
button: function (t){
var e=t.nodeName.toLowerCase();
return (
('input'===e&&'button'===t.type) ||
'button'===e
);
},
text: function (t){
var e;
return (
'input'===t.nodeName.toLowerCase() &&
'text'===t.type &&
(null==(e=t.getAttribute('type')) ||
'text'===e.toLowerCase())
);
},
first: pt(function (){
return [0];
}),
last: pt(function (t, e){
return [e - 1];
}),
eq: pt(function (t, e, n){
return [n < 0 ? n + e:n];
}),
even: pt(function (t, e){
for (var n=0; n < e; n +=2) t.push(n);
return t;
}),
odd: pt(function (t, e){
for (var n=1; n < e; n +=2) t.push(n);
return t;
}),
lt: pt(function (t, e, n){
for (var i=n < 0 ? n + e:n; 0 <=--i;) t.push(i);
return t;
}),
gt: pt(function (t, e, n){
for (var i=n < 0 ? n + e:n; ++i < e;) t.push(i);
return t;
}),
},
}).pseudos.nth=x.pseudos.eq),
{ radio: !0, checkbox: !0, file: !0, password: !0, image: !0 }))
x.pseudos[t]=ut(t);
for (t in { submit: !0, reset: !0 }) x.pseudos[t]=ft(t);
function mt(){}
function vt(t){
for (var e=0, n=t.length, i=''; e < n; e++)
i +=t[e].value;
return i;
}
function bt(a, t, e){
var l=t.dir,
c=t.next,
d=c||l,
u=e&&'parentNode'===d,
f=i++;
return t.first
? function (t, e, n){
for (; (t=t[l]);)
if(1===t.nodeType||u) return a(t, e, n);
return !1;
}
: function (t, e, n){
var i,
o,
s,
r=[k, f];
if(n){
for (; (t=t[l]);)
if((1===t.nodeType||u)&&a(t, e, n))
return !0;
} else
for (; (t=t[l]);)
if(1===t.nodeType||u)
if(((o =
(s=t[T]||(t[T]={}))[t.uniqueID] ||
(s[t.uniqueID]={})),
c&&c===t.nodeName.toLowerCase())
)
t=t[l]||t;
else {
if((i=o[d])&&i[0]===k&&i[1]===f)
return (r[2]=i[2]);
if(((o[d]=r)[2]=a(t, e, n))) return !0;
}
return !1;
};}
function yt(o){
return 1 < o.length
? function (t, e, n){
for (var i=o.length; i--;)
if(!o[i](t, e, n)) return !1;
return !0;
}
: o[0];
}
function xt(t, e, n, i, o){
for (
var s, r=[], a=0, l=t.length, c=null!=e;
a < l;
a++
)
(s=t[a]) &&
((n&&!n(s, i, o))||(r.push(s), c&&e.push(a)));
return r;
}
function wt(h, p, g, m, v, t){
return (
m&&!m[T]&&(m=wt(m)),
v&&!v[T]&&(v=wt(v, t)),
at(function (t, e, n, i){
var o,
s,
r,
a=[],
l=[],
c=e.length,
d =
t ||
(function t(e, n, i){
for (var o=0, s=n.length; o < s; o++)
st(e, n[o], i);
return i;
})(p||'*', n.nodeType ? [n]:n, []),
u = !h||(!t&&p) ? d:xt(d, a, h, n, i),
f=g ? (v||(t ? h:c||m) ? []:e):u;
if((g&&g(u, f, n, i), m))
for (o=xt(f, l), m(o, [], n, i), s=o.length; s--;)
(r=o[s])&&(f[l[s]] = !(u[l[s]]=r));
if(t){
if(v||h){
if(v){
for (o=[], s=f.length; s--;)
(r=f[s])&&o.push((u[s]=r));
v(null, (f=[]), o, i);
}
for (s=f.length; s--;)
(r=f[s]) &&
-1 < (o=v ? M(t, r):a[s]) &&
(t[o] = !(e[o]=r));
}} else
((f=xt(f===e ? f.splice(c, f.length):f)),
v ? v(null, e, f, i):L.apply(e, f));
})
);
}
function _t(t){
for (
var o,
e,
n,
i=t.length,
s=x.relative[t[0].type],
r=s||x.relative[' '],
a=s ? 1:0,
l=bt(
function (t){
return t===o;
},
r,
!0,
),
c=bt(
function (t){
return -1 < M(o, t);
},
r,
!0,
),
d=[
function (t, e, n){
var i =
(!s&&(n||e!==w)) ||
((o=e).nodeType ? l(t, e, n):c(t, e, n));
return ((o=null), i);
},
];
a < i;
a++
)
if((e=x.relative[t[a].type])) d=[bt(yt(d), e)];
else {
if((e=x.filter[t[a].type].apply(null, t[a].matches))[T]
){
for (n=++a; n < i&&!x.relative[t[n].type]; n++);
return wt(
1 < a&&yt(d),
1 < a &&
vt(
t.slice(0, a - 1).concat({
value: ' '===t[a - 2].type ? '*':'',
}),
).replace(q, '$1'),
e,
a < n&&_t(t.slice(a, n)),
n < i&&_t((t=t.slice(n))),
n < i&&vt(t),
);
}
d.push(e);
}
return yt(d);
}
return (
(mt.prototype=x.filters=x.pseudos),
(x.setFilters=new mt()),
(p=st.tokenize =
function (t, e){
var n,
i,
o,
s,
r,
a,
l,
c=y[t + ' '];
if(c) return e ? 0:c.slice(0);
for (r=t, a=[], l=x.preFilter; r;){
for (s in ((n&&!(i=R.exec(r))) ||
(i&&(r=r.slice(i[0].length)||r),
a.push((o=[]))),
(n = !1),
(i=B.exec(r)) &&
((n=i.shift()),
o.push({ value: n, type: i[0].replace(q, ' ') }),
(r=r.slice(n.length))),
x.filter))
!(i=Y[s].exec(r)) ||
(l[s]&&!(i=l[s](i))) ||
((n=i.shift()),
o.push({ value: n, type: s, matches: i }),
(r=r.slice(n.length)));
if(!n) break;
}
return e ? r.length:r ? st.error(t):y(t, a).slice(0);
}),
(u=st.compile =
function (t, e){
var n,
i=[],
o=[],
s=E[t + ' '];
if(!s){
for (e||(e=p(t)), n=e.length; n--;)
(s=_t(e[n]))[T] ? i.push(s):o.push(s);
(s=E(
t,
(function t(m, v){
var b=0 < v.length,
y=0 < m.length,
e=function (t, e, n, i, o){
var s,
r,
a,
l=0,
c='0',
d=t&&[],
u=[],
f=w,
h=t||(y&&x.find.TAG('*', o)),
p=(k +=
null==f ? 1:Math.random()||0.1),
g=h.length;
for (
o&&(w=e===C||e || o);
c!==g&&null!=(s=h[c]);
c++
){
if(y&&s){
for (
r=0,
e ||
s.ownerDocument===C ||
(_(s), (n = !S));
(a=m[r++]);
)
if(a(s, e||C, n)){
i.push(s);
break;
}
o&&(k=p);
}
b&&((s = !a&&s)&&l--, t&&d.push(s));
}
if(((l +=c), b&&c!==l)){
for (r=0; (a=v[r++]);) a(d, u, e, n);
if(t){
if(0 < l)
for (; c--;)
d[c]||u[c]||(u[c]=z.call(i));
u=xt(u);
}
(L.apply(i, u),
o &&
!t &&
0 < u.length &&
1 < l + v.length &&
st.uniqueSort(i));
}
return (o&&((k=p), (w=f)), d);
};
return b ? at(e):e;
})(o, i),
)).selector=t;
}
return s;
}),
(g=st.select =
function (t, e, n, i){
var o,
s,
r,
a,
l,
c='function'==typeof t&&t,
d = !i&&p((t=c.selector||t));
if(((n=n||[]), 1===d.length)){
if(2 < (s=d[0]=d[0].slice(0)).length &&
'ID'===(r=s[0]).type &&
9===e.nodeType &&
S &&
x.relative[s[1].type]
){
if(!(e=(x.find.ID(r.matches[0].replace(J, tt), e) ||
[])[0])
)
return n;
(c&&(e=e.parentNode),
(t=t.slice(s.shift().value.length)));
}
for (
o=Y.needsContext.test(t) ? 0:s.length;
o--&&((r=s[o]), !x.relative[(a=r.type)]);
)
if((l=x.find[a]) &&
(i=l(
r.matches[0].replace(J, tt),
(Z.test(s[0].type)&&gt(e.parentNode))||e,
))
){
if((s.splice(o, 1), !(t=i.length&&vt(s))))
return (L.apply(n, i), n);
break;
}}
return (
(c||u(t, d))(
i,
e,
!S,
n,
!e||(Z.test(t)&&gt(e.parentNode))||e,
),
n
);
}),
(h.sortStable=T.split('').sort(P).join('')===T),
(h.detectDuplicates = !!c),
_(),
(h.sortDetached=lt(function (t){
return (
1 & t.compareDocumentPosition(C.createElement('fieldset'))
);
})),
lt(function (t){
return (
(t.innerHTML="<a href='#'></a>"),
'#'===t.firstChild.getAttribute('href')
);
}) ||
ct('type|href|height|width', function (t, e, n){
if(!n)
return t.getAttribute(e,
'type'===e.toLowerCase() ? 1:2,
);
}),
(h.attributes &&
lt(function (t){
return (
(t.innerHTML='<input/>'),
t.firstChild.setAttribute('value', ''),
''===t.firstChild.getAttribute('value')
);
})) ||
ct('value', function (t, e, n){
if(!n&&'input'===t.nodeName.toLowerCase())
return t.defaultValue;
}),
lt(function (t){
return null==t.getAttribute('disabled');
}) ||
ct(N, function (t, e, n){
var i;
if(!n)
return !0===t[e]
? e.toLowerCase()
: (i=t.getAttributeNode(e))&&i.specified
? i.value
: null;
}),
st
);
})(C);
((T.find=h),
(T.expr=h.selectors),
(T.expr[':']=T.expr.pseudos),
(T.uniqueSort=T.unique=h.uniqueSort),
(T.text=h.getText),
(T.isXMLDoc=h.isXML),
(T.contains=h.contains),
(T.escapeSelector=h.escape));
var p=function (t, e, n){
for (
var i=[], o=void 0!==n;
(t=t[e])&&9!==t.nodeType;
)
if(1===t.nodeType){
if(o&&T(t).is(n)) break;
i.push(t);
}
return i;
},
_=function (t, e){
for (var n=[]; t; t=t.nextSibling)
1===t.nodeType&&t!==e&&n.push(t);
return n;
},
k=T.expr.match.needsContext;
function E(t, e){
return (
t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()
);
}
var P =
/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
function $(t, n, i){
if(b(n))
return T.grep(t, function (t, e){
return !!n.call(t, e, t)!==i;
});
if(n.nodeType)
return T.grep(t, function (t){
return (t===n)!==i;
});
if('string'!=typeof n)
return T.grep(t, function (t){
return -1 < o.call(n, t)!==i;
});
return T.filter(n, t, i);
}
((T.filter=function (t, e, n){
var i=e[0];
if((n&&(t=':not(' + t + ')'),
1===e.length&&1===i.nodeType)
)
return T.find.matchesSelector(i, t) ? [i]:[];
return T.find.matches(t,
T.grep(e, function (t){
return 1===t.nodeType;
}),
);
}),
T.fn.extend({
find: function (t){
var e,
n,
i=this.length,
o=this;
if('string'!=typeof t)
return this.pushStack(T(t).filter(function (){
for (e=0; e < i; e++)
if(T.contains(o[e], this)) return !0;
}),
);
for (n=this.pushStack([]), e=0; e < i; e++)
T.find(t, o[e], n);
return 1 < i ? T.uniqueSort(n):n;
},
filter: function (t){
return this.pushStack($(this, t||[], !1));
},
not: function (t){
return this.pushStack($(this, t||[], !0));
},
is: function (t){
return !!$(
this,
'string'==typeof t&&k.test(t) ? T(t):t||[],
!1,
).length;
},
}));
var z,
A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;
(((T.fn.init=function (t, e, n){
var i, o;
if(!t) return this;
if(((n=n||z), 'string'==typeof t)){
if(!(i =
'<'===t[0]&&'>'===t[t.length - 1]&&3 <=t.length
? [null, t, null]
: A.exec(t)) ||
(!i[1]&&e)
)
return !e||e.jquery
? (e||n).find(t)
: this.constructor(e).find(t);
if(i[1]){
if(((e=e instanceof T ? e[0]:e),
T.merge(this,
T.parseHTML(i[1],
e&&e.nodeType ? e.ownerDocument||e:S,
!0,
),
),
P.test(i[1])&&T.isPlainObject(e))
)
for (i in e)
b(this[i]) ? this[i](e[i]):this.attr(i, e[i]);
return this;
}
return (
(o=S.getElementById(i[2])) &&
((this[0]=o), (this.length=1)),
this
);
}
if(t.nodeType) return ((this[0]=t), (this.length=1), this);
if(b(t)) return void 0!==n.ready ? n.ready(t):t(T);
return T.makeArray(t, this);
}).prototype=T.fn),
(z=T(S)));
var L=/^(?:parents|prev(?:Until|All))/,
D={ children: !0, contents: !0, next: !0, prev: !0 };
function M(t, e){
for (; (t=t[e])&&1!==t.nodeType;);
return t;
}
(T.fn.extend({
has: function (t){
var e=T(t, this),
n=e.length;
return this.filter(function (){
for (var t=0; t < n; t++)
if(T.contains(this, e[t])) return !0;
});
},
closest: function (t, e){
var n,
i=0,
o=this.length,
s=[],
r='string'!=typeof t&&T(t);
if(!k.test(t))
for (; i < o; i++)
for (n=this[i]; n&&n!==e; n=n.parentNode)
if(n.nodeType < 11 &&
(r
? -1 < r.index(n)
: 1===n.nodeType&&T.find.matchesSelector(n, t))
){
s.push(n);
break;
}
return this.pushStack(1 < s.length ? T.uniqueSort(s):s);
},
index: function (t){
if(!t)
return this[0]&&this[0].parentNode
? this.first().prevAll().length
: -1;
if('string'==typeof t) return o.call(T(t), this[0]);
return o.call(this, t.jquery ? t[0]:t);
},
add: function (t, e){
return this.pushStack(T.uniqueSort(T.merge(this.get(), T(t, e))),
);
},
addBack: function (t){
return this.add(null==t ? this.prevObject:this.prevObject.filter(t),
);
},
}),
T.each({
parent: function (t){
var e=t.parentNode;
return e&&11!==e.nodeType ? e:null;
},
parents: function (t){
return p(t, 'parentNode');
},
parentsUntil: function (t, e, n){
return p(t, 'parentNode', n);
},
next: function (t){
return M(t, 'nextSibling');
},
prev: function (t){
return M(t, 'previousSibling');
},
nextAll: function (t){
return p(t, 'nextSibling');
},
prevAll: function (t){
return p(t, 'previousSibling');
},
nextUntil: function (t, e, n){
return p(t, 'nextSibling', n);
},
prevUntil: function (t, e, n){
return p(t, 'previousSibling', n);
},
siblings: function (t){
return _((t.parentNode||{}).firstChild, t);
},
children: function (t){
return _(t.firstChild);
},
contents: function (t){
if(E(t, 'iframe')) return t.contentDocument;
return (
E(t, 'template')&&(t=t.content||t),
T.merge([], t.childNodes)
);
},
},
function (i, o){
T.fn[i]=function (t, e){
var n=T.map(this, o, t);
return (
'Until'!==i.slice(-5)&&(e=t),
e&&'string'==typeof e&&(n=T.filter(e, n)),
1 < this.length &&
(D[i]||T.uniqueSort(n), L.test(i)&&n.reverse()),
this.pushStack(n)
);
};},
));
var N=/[^\x20\t\r\n\f]+/g;
function I(t){
return t;
}
function j(t){
throw t;
}
function F(t, e, n, i){
var o;
try {
t&&b((o=t.promise))
? o.call(t).done(e).fail(n)
: t&&b((o=t.then))
? o.call(t, e, n)
: e.apply(void 0, [t].slice(i));
} catch (t){
n.apply(void 0, [t]);
}}
((T.Callbacks=function (i){
i =
'string'==typeof i
? (function t(e){
var n={};
return (
T.each(e.match(N)||[], function (t, e){
n[e] = !0;
}),
n
);
})(i)
: T.extend({}, i);
var n,
t,
e,
o,
s=[],
r=[],
a=-1,
l=function (){
for (o=o||i.once, e=n = !0; r.length; a=-1)
for (t=r.shift(); ++a < s.length;)
!1===s[a].apply(t[0], t[1]) &&
i.stopOnFalse &&
((a=s.length), (t = !1));
(i.memory||(t = !1), (n = !1), o&&(s=t ? []:''));
},
c={
add: function (){
return (
s &&
(t&&!n&&((a=s.length - 1), r.push(t)),
(function n(t){
T.each(t, function (t, e){
b(e)
? (i.unique&&c.has(e))||s.push(e)
: e&&e.length&&'string'!==w(e)&&n(e);
});
})(arguments),
t&&!n&&l()),
this
);
},
remove: function (){
return (
T.each(arguments, function (t, e){
for (var n; -1 < (n=T.inArray(e, s, n));)
(s.splice(n, 1), n <=a&&a--);
}),
this
);
},
has: function (t){
return t ? -1 < T.inArray(t, s):0 < s.length;
},
empty: function (){
return (s&&(s=[]), this);
},
disable: function (){
return ((o=r = []), (s=t = ''), this);
},
disabled: function (){
return !s;
},
lock: function (){
return ((o=r = []), t||n || (s=t = ''), this);
},
locked: function (){
return !!o;
},
fireWith: function (t, e){
return (
o ||
((e=[t, (e=e||[]).slice ? e.slice():e]),
r.push(e),
n||l()),
this
);
},
fire: function (){
return (c.fireWith(this, arguments), this);
},
fired: function (){
return !!e;
},
};
return c;
}),
T.extend({
Deferred: function (t){
var s=[
[
'notify',
'progress',
T.Callbacks('memory'),
T.Callbacks('memory'),
2,
],
[
'resolve',
'done',
T.Callbacks('once memory'),
T.Callbacks('once memory'),
0,
'resolved',
],
[
'reject',
'fail',
T.Callbacks('once memory'),
T.Callbacks('once memory'),
1,
'rejected',
],
],
o='pending',
r={
state: function (){
return o;
},
always: function (){
return (a.done(arguments).fail(arguments), this);
},
catch: function (t){
return r.then(null, t);
},
pipe: function (){
var o=arguments;
return T.Deferred(function (i){
(T.each(s, function (t, e){
var n=b(o[e[4]])&&o[e[4]];
a[e[1]](function (){
var t=n&&n.apply(this, arguments);
t&&b(t.promise)
? t
.promise()
.progress(i.notify)
.done(i.resolve)
.fail(i.reject)
: i[e[0] + 'With'](this, n ? [t]:arguments);
});
}),
(o=null));
}).promise();
},
then: function (e, n, i){
var l=0;
function c(o, s, r, a){
return function (){
var n=this,
i=arguments,
t=function (){
var t, e;
if(o < l) return;
if((t=r.apply(n, i))===s.promise())
throw new TypeError(
'Thenable self-resolution',
);
((e =
t &&
('object'==typeof t ||
'function'==typeof t) &&
t.then),
b(e)
? a
? e.call(t,
c(l, s, I, a),
c(l, s, j, a),
)
: (l++,
e.call(t,
c(l, s, I, a),
c(l, s, j, a),
c(l, s, I, s.notifyWith),
))
: (r!==I&&((n=void 0), (i=[t])),
(a||s.resolveWith)(n, i)));
},
e=a
? t
: function (){
try {
t();
} catch (t){
(T.Deferred.exceptionHook &&
T.Deferred.exceptionHook(t,
e.stackTrace,
),
l <=o + 1 &&
(r!==j &&
((n=void 0), (i=[t])),
s.rejectWith(n, i)));
}};
o
? e()
: (T.Deferred.getStackHook &&
(e.stackTrace=T.Deferred.getStackHook()),
C.setTimeout(e));
};}
return T.Deferred(function (t){
(s[0][3].add(c(0, t, b(i) ? i:I, t.notifyWith)),
s[1][3].add(c(0, t, b(e) ? e:I)),
s[2][3].add(c(0, t, b(n) ? n:j)));
}).promise();
},
promise: function (t){
return null!=t ? T.extend(t, r):r;
},
},
a={};
return (
T.each(s, function (t, e){
var n=e[2],
i=e[5];
((r[e[1]]=n.add),
i &&
n.add(function (){
o=i;
},
s[3 - t][2].disable,
s[3 - t][3].disable,
s[0][2].lock,
s[0][3].lock,
),
n.add(e[3].fire),
(a[e[0]]=function (){
return (
a[e[0] + 'With'](
this===a ? void 0:this,
arguments,
),
this
);
}),
(a[e[0] + 'With']=n.fireWith));
}),
r.promise(a),
t&&t.call(a, a),
a
);
},
when: function (t){
var n=arguments.length,
e=n,
i=Array(e),
o=a.call(arguments),
s=T.Deferred(),
r=function (e){
return function (t){
((i[e]=this),
(o[e] =
1 < arguments.length ? a.call(arguments):t),
--n||s.resolveWith(i, o));
};};
if(n <=1 &&
(F(t, s.done(r(e)).resolve, s.reject, !n),
'pending'===s.state()||b(o[e]&&o[e].then))
)
return s.then();
for (; e--;) F(o[e], r(e), s.reject);
return s.promise();
},
}));
var O=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
((T.Deferred.exceptionHook=function (t, e){
C.console &&
C.console.warn &&
t &&
O.test(t.name) &&
C.console.warn('jQuery.Deferred exception: ' + t.message,
t.stack,
e,
);
}),
(T.readyException=function (t){
C.setTimeout(function (){
throw t;
});
}));
var H=T.Deferred();
function q(){
(S.removeEventListener('DOMContentLoaded', q),
C.removeEventListener('load', q),
T.ready());
}
((T.fn.ready=function (t){
return (
H.then(t).catch(function (t){
T.readyException(t);
}),
this
);
}),
T.extend({
isReady: !1,
readyWait: 1,
ready: function (t){
if(!0===t ? --T.readyWait:T.isReady) return;
if((T.isReady = !0)!==t&&0 < --T.readyWait) return;
H.resolveWith(S, [T]);
},
}),
(T.ready.then=H.then),
'complete'===S.readyState ||
('loading'!==S.readyState&&!S.documentElement.doScroll)
? C.setTimeout(T.ready)
: (S.addEventListener('DOMContentLoaded', q),
C.addEventListener('load', q)));
var R=function (t, e, n, i, o, s, r){
var a=0,
l=t.length,
c=null==n;
if('object'===w(n))
for (a in ((o = !0), n)) R(t, e, a, n[a], !0, s, r);
else if(void 0!==i &&
((o = !0),
b(i)||(r = !0),
c &&
(e=r
? (e.call(t, i), null)
: ((c=e),
function (t, e, n){
return c.call(T(t), n);
})),
e)
)
for (; a < l; a++)
e(t[a], n, r ? i:i.call(t[a], a, e(t[a], n)));
if(o) return t;
if(c) return e.call(t);
return l ? e(t[0], n):s;
},
B=/^-ms-/,
W=/-([a-z])/g;
function U(t, e){
return e.toUpperCase();
}
function X(t){
return t.replace(B, 'ms-').replace(W, U);
}
var Y=function (t){
return 1===t.nodeType||9===t.nodeType||!+t.nodeType;
};
function V(){
this.expando=T.expando + V.uid++;
}
((V.uid=1),
(V.prototype={
cache: function (t){
var e=t[this.expando];
return (
e ||
((e={}),
Y(t) &&
(t.nodeType
? (t[this.expando]=e)
: Object.defineProperty(t, this.expando, {
value: e,
configurable: !0,
}))),
e
);
},
set: function (t, e, n){
var i,
o=this.cache(t);
if('string'==typeof e) o[X(e)]=n;
else for (i in e) o[X(i)]=e[i];
return o;
},
get: function (t, e){
return void 0===e
? this.cache(t)
: t[this.expando]&&t[this.expando][X(e)];
},
access: function (t, e, n){
if(void 0===e ||
(e&&'string'==typeof e&&void 0===n)
)
return this.get(t, e);
return (this.set(t, e, n), void 0!==n ? n:e);
},
remove: function (t, e){
var n,
i=t[this.expando];
if(void 0===i) return;
if(void 0!==e){
n=(e=Array.isArray(e)
? e.map(X)
: (e=X(e)) in i
? [e]
: e.match(N)||[]).length;
for (; n--;) delete i[e[n]];
}
(void 0===e||T.isEmptyObject(i)) &&
(t.nodeType
? (t[this.expando]=void 0)
: delete t[this.expando]);
},
hasData: function (t){
var e=t[this.expando];
return void 0!==e&&!T.isEmptyObject(e);
},
}));
var G=new V(),
Q=new V(),
K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
Z=/[A-Z]/g;
function J(t, e, n){
var i;
if(void 0===n&&1===t.nodeType)
if(((i='data-' + e.replace(Z, '-$&').toLowerCase()),
'string'==typeof (n=t.getAttribute(i)))
){
try {
n=(function t(e){
if('true'===e) return !0;
if('false'===e) return !1;
if('null'===e) return null;
if(e===+e + '') return +e;
if(K.test(e)) return JSON.parse(e);
return e;
})(n);
} catch (t){}
Q.set(t, e, n);
} else n=void 0;
return n;
}
(T.extend({
hasData: function (t){
return Q.hasData(t)||G.hasData(t);
},
data: function (t, e, n){
return Q.access(t, e, n);
},
removeData: function (t, e){
Q.remove(t, e);
},
_data: function (t, e, n){
return G.access(t, e, n);
},
_removeData: function (t, e){
G.remove(t, e);
},
}),
T.fn.extend({
data: function (n, t){
var e,
i,
o,
s=this[0],
r=s&&s.attributes;
if(void 0===n){
if(this.length &&
((o=Q.get(s)),
1===s.nodeType&&!G.get(s, 'hasDataAttrs'))
){
for (e=r.length; e--;)
r[e] &&
0===(i=r[e].name).indexOf('data-') &&
((i=X(i.slice(5))), J(s, i, o[i]));
G.set(s, 'hasDataAttrs', !0);
}
return o;
}
if('object'==typeof n)
return this.each(function (){
Q.set(this, n);
});
return R(
this,
function (t){
var e;
if(s&&void 0===t){
if(void 0!==(e=Q.get(s, n))) return e;
if(void 0!==(e=J(s, n))) return e;
return;
}
this.each(function (){
Q.set(this, n, t);
});
},
null,
t,
1 < arguments.length,
null,
!0,
);
},
removeData: function (t){
return this.each(function (){
Q.remove(this, t);
});
},
}),
T.extend({
queue: function (t, e, n){
var i;
if(t)
return (
(e=(e||'fx') + 'queue'),
(i=G.get(t, e)),
n &&
(!i||Array.isArray(n)
? (i=G.access(t, e, T.makeArray(n)))
: i.push(n)),
i||[]
);
},
dequeue: function (t, e){
e=e||'fx';
var n=T.queue(t, e),
i=n.length,
o=n.shift(),
s=T._queueHooks(t, e);
('inprogress'===o&&((o=n.shift()), i--),
o &&
('fx'===e&&n.unshift('inprogress'),
delete s.stop,
o.call(t,
function (){
T.dequeue(t, e);
},
s,
)),
!i&&s && s.empty.fire());
},
_queueHooks: function (t, e){
var n=e + 'queueHooks';
return (
G.get(t, n) ||
G.access(t, n, {
empty: T.Callbacks('once memory').add(function (){
G.remove(t, [e + 'queue', n]);
}),
})
);
},
}),
T.fn.extend({
queue: function (e, n){
var t=2;
if(('string'!=typeof e&&((n=e), (e='fx'), t--),
arguments.length < t)
)
return T.queue(this[0], e);
return void 0===n
? this
: this.each(function (){
var t=T.queue(this, e, n);
(T._queueHooks(this, e),
'fx'===e &&
'inprogress'!==t[0] &&
T.dequeue(this, e));
});
},
dequeue: function (t){
return this.each(function (){
T.dequeue(this, t);
});
},
clearQueue: function (t){
return this.queue(t||'fx', []);
},
promise: function (t, e){
var n,
i=1,
o=T.Deferred(),
s=this,
r=this.length,
a=function (){
--i||o.resolveWith(s, [s]);
};
for (
'string'!=typeof t&&((e=t), (t=void 0)),
t=t||'fx';
r--;
)
(n=G.get(s[r], t + 'queueHooks')) &&
n.empty &&
(i++, n.empty.add(a));
return (a(), o.promise(e));
},
}));
var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
et=new RegExp('^(?:([+-])=|)(' + tt + ')([a-z%]*)$', 'i'),
nt=['Top', 'Right', 'Bottom', 'Left'],
it=function (t, e){
return (
'none'===(t=e||t).style.display ||
(''===t.style.display &&
T.contains(t.ownerDocument, t) &&
'none'===T.css(t, 'display'))
);
},
ot=function (t, e, n, i){
var o,
s,
r={};
for (s in e) ((r[s]=t.style[s]), (t.style[s]=e[s]));
for (s in ((o=n.apply(t, i||[])), e)) t.style[s]=r[s];
return o;
};
function st(t, e, n, i){
var o,
s,
r=20,
a=i
? function (){
return i.cur();
}
: function (){
return T.css(t, e, '');
},
l=a(),
c=(n&&n[3])||(T.cssNumber[e] ? '':'px'),
d =
(T.cssNumber[e]||('px'!==c&&+l)) &&
et.exec(T.css(t, e));
if(d&&d[3]!==c){
for (l /=2, c=c||d[3], d=+l||1; r--;)
(T.style(t, e, d + c),
(1 - s) * (1 - (s=a() / l||0.5)) <=0&&(r=0),
(d /=s));
((d *=2), T.style(t, e, d + c), (n=n||[]));
}
return (
n &&
((d=+d||+l||0),
(o=n[1] ? d + (n[1] + 1) * n[2]:+n[2]),
i&&((i.unit=c), (i.start=d), (i.end=o))),
o
);
}
var rt={};
function at(t){
var e,
n=t.ownerDocument,
i=t.nodeName,
o=rt[i];
if(o) return o;
return (
(e=n.body.appendChild(n.createElement(i))),
(o=T.css(e, 'display')),
e.parentNode.removeChild(e),
'none'===o&&(o='block'),
(rt[i]=o)
);
}
function lt(t, e){
for (var n, i, o=[], s=0, r=t.length; s < r; s++){
if(!(i=t[s]).style) continue;
((n=i.style.display),
e
? ('none'===n &&
((o[s]=G.get(i, 'display')||null),
o[s]||(i.style.display='')),
''===i.style.display&&it(i)&&(o[s]=at(i)))
: 'none'!==n &&
((o[s]='none'), G.set(i, 'display', n)));
}
for (s=0; s < r; s++)
null!=o[s]&&(t[s].style.display=o[s]);
return t;
}
T.fn.extend({
show: function (){
return lt(this, !0);
},
hide: function (){
return lt(this);
},
toggle: function (t){
if('boolean'==typeof t)
return t ? this.show():this.hide();
return this.each(function (){
it(this) ? T(this).show():T(this).hide();
});
},
});
var ct=/^(?:checkbox|radio)$/i,
dt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,
ut=/^$|^module$|\/(?:java|ecma)script/i,
ft={
option: [1, "<select multiple='multiple'>", '</select>'],
thead: [1, '<table>', '</table>'],
col: [2, '<table><colgroup>', '</colgroup></table>'],
tr: [2, '<table><tbody>', '</tbody></table>'],
td: [3, '<table><tbody><tr>', '</tr></tbody></table>'],
_default: [0, '', ''],
};
function ht(t, e){
var n;
if(((n =
void 0!==t.getElementsByTagName
? t.getElementsByTagName(e||'*')
: void 0!==t.querySelectorAll
? t.querySelectorAll(e||'*')
: []),
void 0===e||(e&&E(t, e)))
)
return T.merge([t], n);
return n;
}
function pt(t, e){
for (var n=0, i=t.length; n < i; n++)
G.set(t[n], 'globalEval', !e||G.get(e[n], 'globalEval'));
}
((ft.optgroup=ft.option),
(ft.tbody=ft.tfoot=ft.colgroup=ft.caption=ft.thead),
(ft.th=ft.td));
var gt,
mt,
vt=/<|&#?\w+;/;
function bt(t, e, n, i, o){
for (
var s,
r,
a,
l,
c,
d,
u=e.createDocumentFragment(),
f=[],
h=0,
p=t.length;
h < p;
h++
)
if((s=t[h])||0===s)
if('object'===w(s)) T.merge(f, s.nodeType ? [s]:s);
else if(vt.test(s)){
for (
r=r||u.appendChild(e.createElement('div')),
a=(dt.exec(s)||['', ''])[1].toLowerCase(),
l=ft[a]||ft._default,
r.innerHTML=l[1] + T.htmlPrefilter(s) + l[2],
d=l[0];
d--;
)
r=r.lastChild;
(T.merge(f, r.childNodes),
((r=u.firstChild).textContent=''));
} else f.push(e.createTextNode(s));
for (u.textContent='', h=0; (s=f[h++]);){
if(i&&-1 < T.inArray(s, i)){
o&&o.push(s);
continue;
}
if(((c=T.contains(s.ownerDocument, s)),
(r=ht(u.appendChild(s), 'script')),
c&&pt(r),
n)
)
for (d=0; (s=r[d++]);)
ut.test(s.type||'')&&n.push(s);
}
return u;
}
((gt=S.createDocumentFragment().appendChild(S.createElement('div'),
)),
(mt=S.createElement('input')).setAttribute('type', 'radio'),
mt.setAttribute('checked', 'checked'),
mt.setAttribute('name', 't'),
gt.appendChild(mt),
(v.checkClone=gt
.cloneNode(!0)
.cloneNode(!0).lastChild.checked),
(gt.innerHTML='<textarea>x</textarea>'),
(v.noCloneChecked = !!gt.cloneNode(!0).lastChild.defaultValue));
var yt=S.documentElement,
xt=/^key/,
wt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,
_t=/^([^.]*)(?:\.(.+)|)/;
function Ct(){
return !0;
}
function St(){
return !1;
}
function Tt(){
try {
return S.activeElement;
} catch (t){}}
function kt(t, e, n, i, o, s){
var r, a;
if('object'==typeof e){
for (a in ('string'!=typeof n &&
((i=i||n), (n=void 0)),
e))
kt(t, a, n, i, e[a], s);
return t;
}
if((null==i&&null==o
? ((o=n), (i=n = void 0))
: null==o &&
('string'==typeof n
? ((o=i), (i=void 0))
: ((o=i), (i=n), (n=void 0))),
!1===o)
)
o=St;
else if(!o) return t;
return (
1===s &&
((r=o),
((o=function (t){
return (T().off(t), r.apply(this, arguments));
}).guid=r.guid||(r.guid=T.guid++))),
t.each(function (){
T.event.add(this, e, o, i, n);
})
);
}
((T.event={
global: {},
add: function (e, t, n, i, o){
var s,
r,
a,
l,
c,
d,
u,
f,
h,
p,
g,
m=G.get(e);
if(!m) return;
for (
n.handler&&((n=(s=n).handler), (o=s.selector)),
o&&T.find.matchesSelector(yt, o),
n.guid||(n.guid=T.guid++),
(l=m.events)||(l=m.events={}),
(r=m.handle) ||
(r=m.handle =
function (t){
return void 0!==T&&T.event.triggered!==t.type
? T.event.dispatch.apply(e, arguments)
: void 0;
}),
c=(t=(t||'').match(N)||['']).length;
c--;
){
if(((h=g = (a=_t.exec(t[c])||[])[1]),
(p=(a[2]||'').split('.').sort()),
!h)
)
continue;
((u=T.event.special[h]||{}),
(h=(o ? u.delegateType:u.bindType)||h),
(u=T.event.special[h]||{}),
(d=T.extend({
type: h,
origType: g,
data: i,
handler: n,
guid: n.guid,
selector: o,
needsContext: o&&T.expr.match.needsContext.test(o),
namespace: p.join('.'),
},
s,
)),
(f=l[h]) ||
(((f=l[h]=[]).delegateCount=0),
(u.setup&&!1!==u.setup.call(e, i, p, r)) ||
(e.addEventListener&&e.addEventListener(h, r))),
u.add &&
(u.add.call(e, d),
d.handler.guid||(d.handler.guid=n.guid)),
o ? f.splice(f.delegateCount++, 0, d):f.push(d),
(T.event.global[h] = !0));
}},
remove: function (t, e, n, i, o){
var s,
r,
a,
l,
c,
d,
u,
f,
h,
p,
g,
m=G.hasData(t)&&G.get(t);
if(!m||!(l=m.events)) return;
for (c=(e=(e||'').match(N)||['']).length; c--;){
if(((h=g = (a=_t.exec(e[c])||[])[1]),
(p=(a[2]||'').split('.').sort()),
!h)
){
for (h in l) T.event.remove(t, h + e[c], n, i, !0);
continue;
}
for (
u=T.event.special[h]||{},
f =
l[(h=(i ? u.delegateType:u.bindType)||h)]||[],
a =
a[2] &&
new RegExp(
'(^|\\.)' + p.join('\\.(?:.*\\.|)') + '(\\.|$)',
),
r=s = f.length;
s--;
)
((d=f[s]),
(!o&&g!==d.origType) ||
(n&&n.guid!==d.guid) ||
(a&&!a.test(d.namespace)) ||
(i &&
i!==d.selector &&
('**'!==i||!d.selector)) ||
(f.splice(s, 1),
d.selector&&f.delegateCount--,
u.remove&&u.remove.call(t, d)));
r &&
!f.length &&
((u.teardown&&!1!==u.teardown.call(t, p, m.handle)) ||
T.removeEvent(t, h, m.handle),
delete l[h]);
}
T.isEmptyObject(l)&&G.remove(t, 'handle events');
},
dispatch: function (t){
var e,
n,
i,
o,
s,
r,
a=T.event.fix(t),
l=new Array(arguments.length),
c=(G.get(this, 'events')||{})[a.type]||[],
d=T.event.special[a.type]||{};
for (l[0]=a, e=1; e < arguments.length; e++)
l[e]=arguments[e];
if(((a.delegateTarget=this),
d.preDispatch&&!1===d.preDispatch.call(this, a))
)
return;
for (
r=T.event.handlers.call(this, a, c), e=0;
(o=r[e++])&&!a.isPropagationStopped();
)
for (
a.currentTarget=o.elem, n=0;
(s=o.handlers[n++]) &&
!a.isImmediatePropagationStopped();
)
(a.rnamespace&&!a.rnamespace.test(s.namespace)) ||
((a.handleObj=s),
(a.data=s.data),
void 0!==(i=(
(T.event.special[s.origType]||{}).handle ||
s.handler
).apply(o.elem, l)) &&
!1===(a.result=i) &&
(a.preventDefault(), a.stopPropagation()));
return (
d.postDispatch&&d.postDispatch.call(this, a),
a.result
);
},
handlers: function (t, e){
var n,
i,
o,
s,
r,
a=[],
l=e.delegateCount,
c=t.target;
if(l&&c.nodeType&&!('click'===t.type&&1 <=t.button))
for (; c!==this; c=c.parentNode||this)
if(1===c.nodeType &&
('click'!==t.type||!0!==c.disabled)
){
for (s=[], r={}, n=0; n < l; n++)
(void 0===r[(o=(i=e[n]).selector + ' ')] &&
(r[o]=i.needsContext
? -1 < T(o, this).index(c)
: T.find(o, this, null, [c]).length),
r[o]&&s.push(i));
s.length&&a.push({ elem: c, handlers: s });
}
return (
(c=this),
l < e.length&&a.push({ elem: c, handlers: e.slice(l) }),
a
);
},
addProp: function (e, t){
Object.defineProperty(T.Event.prototype, e, {
enumerable: !0,
configurable: !0,
get: b(t)
? function (){
if(this.originalEvent) return t(this.originalEvent);
}
: function (){
if(this.originalEvent) return this.originalEvent[e];
},
set: function (t){
Object.defineProperty(this, e, {
enumerable: !0,
configurable: !0,
writable: !0,
value: t,
});
},
});
},
fix: function (t){
return t[T.expando] ? t:new T.Event(t);
},
special: {
load: { noBubble: !0 },
focus: {
trigger: function (){
if(this!==Tt()&&this.focus)
return (this.focus(), !1);
},
delegateType: 'focusin',
},
blur: {
trigger: function (){
if(this===Tt()&&this.blur) return (this.blur(), !1);
},
delegateType: 'focusout',
},
click: {
trigger: function (){
if('checkbox'===this.type &&
this.click &&
E(this, 'input')
)
return (this.click(), !1);
},
_default: function (t){
return E(t.target, 'a');
},
},
beforeunload: {
postDispatch: function (t){
void 0!==t.result &&
t.originalEvent &&
(t.originalEvent.returnValue=t.result);
},
},
},
}),
(T.removeEvent=function (t, e, n){
t.removeEventListener&&t.removeEventListener(e, n);
}),
(T.Event=function (t, e){
if(!(this instanceof T.Event)) return new T.Event(t, e);
(t&&t.type
? ((this.originalEvent=t),
(this.type=t.type),
(this.isDefaultPrevented =
t.defaultPrevented ||
(void 0===t.defaultPrevented&&!1===t.returnValue)
? Ct
: St),
(this.target =
t.target&&3===t.target.nodeType
? t.target.parentNode
: t.target),
(this.currentTarget=t.currentTarget),
(this.relatedTarget=t.relatedTarget))
: (this.type=t),
e&&T.extend(this, e),
(this.timeStamp=(t&&t.timeStamp)||Date.now()),
(this[T.expando] = !0));
}),
(T.Event.prototype={
constructor: T.Event,
isDefaultPrevented: St,
isPropagationStopped: St,
isImmediatePropagationStopped: St,
isSimulated: !1,
preventDefault: function (){
var t=this.originalEvent;
((this.isDefaultPrevented=Ct),
t&&!this.isSimulated&&t.preventDefault());
},
stopPropagation: function (){
var t=this.originalEvent;
((this.isPropagationStopped=Ct),
t&&!this.isSimulated&&t.stopPropagation());
},
stopImmediatePropagation: function (){
var t=this.originalEvent;
((this.isImmediatePropagationStopped=Ct),
t&&!this.isSimulated&&t.stopImmediatePropagation(),
this.stopPropagation());
},
}),
T.each({
altKey: !0,
bubbles: !0,
cancelable: !0,
changedTouches: !0,
ctrlKey: !0,
detail: !0,
eventPhase: !0,
metaKey: !0,
pageX: !0,
pageY: !0,
shiftKey: !0,
view: !0,
char: !0,
charCode: !0,
key: !0,
keyCode: !0,
button: !0,
buttons: !0,
clientX: !0,
clientY: !0,
offsetX: !0,
offsetY: !0,
pointerId: !0,
pointerType: !0,
screenX: !0,
screenY: !0,
targetTouches: !0,
toElement: !0,
touches: !0,
which: function (t){
var e=t.button;
if(null==t.which&&xt.test(t.type))
return null!=t.charCode ? t.charCode:t.keyCode;
if(!t.which&&void 0!==e&&wt.test(t.type)){
if(1 & e) return 1;
if(2 & e) return 3;
if(4 & e) return 2;
return 0;
}
return t.which;
},
},
T.event.addProp,
),
T.each({
mouseenter: 'mouseover',
mouseleave: 'mouseout',
pointerenter: 'pointerover',
pointerleave: 'pointerout',
},
function (t, o){
T.event.special[t]={
delegateType: o,
bindType: o,
handle: function (t){
var e,
n=t.relatedTarget,
i=t.handleObj;
return (
(n&&(n===this||T.contains(this, n))) ||
((t.type=i.origType),
(e=i.handler.apply(this, arguments)),
(t.type=o)),
e
);
},
};},
),
T.fn.extend({
on: function (t, e, n, i){
return kt(this, t, e, n, i);
},
one: function (t, e, n, i){
return kt(this, t, e, n, i, 1);
},
off: function (t, e, n){
var i, o;
if(t&&t.preventDefault&&t.handleObj)
return (
(i=t.handleObj),
T(t.delegateTarget).off(i.namespace
? i.origType + '.' + i.namespace
: i.origType,
i.selector,
i.handler,
),
this
);
if('object'==typeof t){
for (o in t) this.off(o, e, t[o]);
return this;
}
return (
(!1!==e&&'function'!=typeof e) ||
((n=e), (e=void 0)),
!1===n&&(n=St),
this.each(function (){
T.event.remove(this, t, n, e);
})
);
},
}));
var Et =
/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
Pt=/<script|<style|<link/i,
$t=/checked\s*(?:[^=]|=\s*.checked.)/i,
zt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
function At(t, e){
if(E(t, 'table') &&
E(11!==e.nodeType ? e:e.firstChild, 'tr')
)
return T(t).children('tbody')[0]||t;
return t;
}
function Lt(t){
return (
(t.type=(null!==t.getAttribute('type')) + '/' + t.type),
t
);
}
function Dt(t){
return (
'true/'===(t.type||'').slice(0, 5)
? (t.type=t.type.slice(5))
: t.removeAttribute('type'),
t
);
}
function Mt(t, e){
var n, i, o, s, r, a, l, c;
if(1!==e.nodeType) return;
if(G.hasData(t) &&
((s=G.access(t)), (r=G.set(e, s)), (c=s.events))
)
for (o in (delete r.handle, (r.events={}), c))
for (n=0, i=c[o].length; n < i; n++)
T.event.add(e, o, c[o][n]);
Q.hasData(t) &&
((a=Q.access(t)), (l=T.extend({}, a)), Q.set(e, l));
}
function Nt(n, i, o, s){
i=g.apply([], i);
var t,
e,
r,
a,
l,
c,
d=0,
u=n.length,
f=u - 1,
h=i[0],
p=b(h);
if(p ||
(1 < u&&'string'==typeof h&&!v.checkClone&&$t.test(h))
)
return n.each(function (t){
var e=n.eq(t);
(p&&(i[0]=h.call(this, t, e.html())), Nt(e, i, o, s));
});
if(u &&
((e=(t=bt(i, n[0].ownerDocument, !1, n, s)).firstChild),
1===t.childNodes.length&&(t=e),
e||s)
){
for (a=(r=T.map(ht(t, 'script'), Lt)).length; d < u; d++)
((l=t),
d!==f &&
((l=T.clone(l, !0, !0)),
a&&T.merge(r, ht(l, 'script'))),
o.call(n[d], l, d));
if(a)
for (
c=r[r.length - 1].ownerDocument, T.map(r, Dt), d=0;
d < a;
d++
)
((l=r[d]),
ut.test(l.type||'') &&
!G.access(l, 'globalEval') &&
T.contains(c, l) &&
(l.src&&'module'!==(l.type||'').toLowerCase()
? T._evalUrl&&T._evalUrl(l.src)
: x(l.textContent.replace(zt, ''), c, l)));
}
return n;
}
function It(t, e, n){
for (
var i, o=e ? T.filter(e, t):t, s=0;
null!=(i=o[s]);
s++
)
(n||1!==i.nodeType||T.cleanData(ht(i)),
i.parentNode &&
(n &&
T.contains(i.ownerDocument, i) &&
pt(ht(i, 'script')),
i.parentNode.removeChild(i)));
return t;
}
(T.extend({
htmlPrefilter: function (t){
return t.replace(Et, '<$1></$2>');
},
clone: function (t, e, n){
var i,
o,
s,
r,
a,
l,
c,
d=t.cloneNode(!0),
u=T.contains(t.ownerDocument, t);
if(!(
v.noCloneChecked ||
(1!==t.nodeType&&11!==t.nodeType) ||
T.isXMLDoc(t)
)
)
for (r=ht(d), i=0, o=(s=ht(t)).length; i < o; i++)
((a=s[i]),
(l=r[i]),
void 0,
'input'===(c=l.nodeName.toLowerCase()) &&
ct.test(a.type)
? (l.checked=a.checked)
: ('input'!==c&&'textarea'!==c) ||
(l.defaultValue=a.defaultValue));
if(e)
if(n)
for (
s=s||ht(t), r=r||ht(d), i=0, o=s.length;
i < o;
i++
)
Mt(s[i], r[i]);
else Mt(t, d);
return (
0 < (r=ht(d, 'script')).length &&
pt(r, !u&&ht(t, 'script')),
d
);
},
cleanData: function (t){
for (
var e, n, i, o=T.event.special, s=0;
void 0!==(n=t[s]);
s++
)
if(Y(n)){
if((e=n[G.expando])){
if(e.events)
for (i in e.events)
o[i]
? T.event.remove(n, i)
: T.removeEvent(n, i, e.handle);
n[G.expando]=void 0;
}
n[Q.expando]&&(n[Q.expando]=void 0);
}},
}),
T.fn.extend({
detach: function (t){
return It(this, t, !0);
},
remove: function (t){
return It(this, t);
},
text: function (t){
return R(
this,
function (t){
return void 0===t
? T.text(this)
: this.empty().each(function (){
(1!==this.nodeType &&
11!==this.nodeType &&
9!==this.nodeType) ||
(this.textContent=t);
});
},
null,
t,
arguments.length,
);
},
append: function (){
return Nt(this, arguments, function (t){
(1!==this.nodeType &&
11!==this.nodeType &&
9!==this.nodeType) ||
At(this, t).appendChild(t);
});
},
prepend: function (){
return Nt(this, arguments, function (t){
if(1===this.nodeType ||
11===this.nodeType ||
9===this.nodeType
){
var e=At(this, t);
e.insertBefore(t, e.firstChild);
}});
},
before: function (){
return Nt(this, arguments, function (t){
this.parentNode&&this.parentNode.insertBefore(t, this);
});
},
after: function (){
return Nt(this, arguments, function (t){
this.parentNode &&
this.parentNode.insertBefore(t, this.nextSibling);
});
},
empty: function (){
for (var t, e=0; null!=(t=this[e]); e++)
1===t.nodeType &&
(T.cleanData(ht(t, !1)), (t.textContent=''));
return this;
},
clone: function (t, e){
return (
(t=null!=t&&t),
(e=null==e ? t:e),
this.map(function (){
return T.clone(this, t, e);
})
);
},
html: function (t){
return R(
this,
function (t){
var e=this[0]||{},
n=0,
i=this.length;
if(void 0===t&&1===e.nodeType)
return e.innerHTML;
if('string'==typeof t &&
!Pt.test(t) &&
!ft[(dt.exec(t)||['', ''])[1].toLowerCase()]
){
t=T.htmlPrefilter(t);
try {
for (; n < i; n++)
1===(e=this[n]||{}).nodeType &&
(T.cleanData(ht(e, !1)), (e.innerHTML=t));
e=0;
} catch (t){}}
e&&this.empty().append(t);
},
null,
t,
arguments.length,
);
},
replaceWith: function (){
var n=[];
return Nt(
this,
arguments,
function (t){
var e=this.parentNode;
T.inArray(this, n) < 0 &&
(T.cleanData(ht(this)), e&&e.replaceChild(t, this));
},
n,
);
},
}),
T.each({
appendTo: 'append',
prependTo: 'prepend',
insertBefore: 'before',
insertAfter: 'after',
replaceAll: 'replaceWith',
},
function (t, r){
T.fn[t]=function (t){
for (
var e, n=[], i=T(t), o=i.length - 1, s=0;
s <=o;
s++
)
((e=s===o ? this:this.clone(!0)),
T(i[s])[r](e),
l.apply(n, e.get()));
return this.pushStack(n);
};},
));
var jt=new RegExp('^(' + tt + ')(?!px)[a-z%]+$', 'i'),
Ft=function (t){
var e=t.ownerDocument.defaultView;
return ((e&&e.opener)||(e=C), e.getComputedStyle(t));
},
Ot=new RegExp(nt.join('|'), 'i');
function Ht(t, e, n){
var i,
o,
s,
r,
a=t.style;
return (
(n=n||Ft(t)) &&
(''!==(r=n.getPropertyValue(e)||n[e]) ||
T.contains(t.ownerDocument, t) ||
(r=T.style(t, e)),
!v.pixelBoxStyles() &&
jt.test(r) &&
Ot.test(e) &&
((i=a.width),
(o=a.minWidth),
(s=a.maxWidth),
(a.minWidth=a.maxWidth=a.width=r),
(r=n.width),
(a.width=i),
(a.minWidth=o),
(a.maxWidth=s))),
void 0!==r ? r + '':r
);
}
function qt(t, e){
return {
get: function (){
if(t()) return void delete this.get;
return (this.get=e).apply(this, arguments);
},
};}
!(function (){
function t(){
if(!l) return;
((a.style.cssText =
'position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0'),
(l.style.cssText =
'position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%'),
yt.appendChild(a).appendChild(l));
var t=C.getComputedStyle(l);
((n='1%'!==t.top),
(r=12===e(t.marginLeft)),
(l.style.right='60%'),
(s=36===e(t.right)),
(i=36===e(t.width)),
(l.style.position='absolute'),
(o=36===l.offsetWidth||'absolute'),
yt.removeChild(a),
(l=null));
}
function e(t){
return Math.round(parseFloat(t));
}
var n,
i,
o,
s,
r,
a=S.createElement('div'),
l=S.createElement('div');
if(!l.style) return;
((l.style.backgroundClip='content-box'),
(l.cloneNode(!0).style.backgroundClip=''),
(v.clearCloneStyle =
'content-box'===l.style.backgroundClip),
T.extend(v, {
boxSizingReliable: function (){
return (t(), i);
},
pixelBoxStyles: function (){
return (t(), s);
},
pixelPosition: function (){
return (t(), n);
},
reliableMarginLeft: function (){
return (t(), r);
},
scrollboxSize: function (){
return (t(), o);
},
}));
})();
var Rt=/^(none|table(?!-c[ea]).+)/,
Bt=/^--/,
Wt={
position: 'absolute',
visibility: 'hidden',
display: 'block',
},
Ut={ letterSpacing: '0', fontWeight: '400' },
Xt=['Webkit', 'Moz', 'ms'],
Yt=S.createElement('div').style;
function Vt(t){
var e=T.cssProps[t];
return (
e ||
(e=T.cssProps[t] =
(function t(e){
if(e in Yt) return e;
for (
var n=e[0].toUpperCase() + e.slice(1),
i=Xt.length;
i--;
)
if((e=Xt[i] + n) in Yt) return e;
})(t)||t),
e
);
}
function Gt(t, e, n){
var i=et.exec(e);
return i ? Math.max(0, i[2] - (n||0)) + (i[3]||'px'):e;
}
function Qt(t, e, n, i, o, s){
var r='width'===e ? 1:0,
a=0,
l=0;
if(n===(i ? 'border':'content')) return 0;
for (; r < 4; r +=2)
('margin'===n&&(l +=T.css(t, n + nt[r], !0, o)),
i
? ('content'===n &&
(l -=T.css(t, 'padding' + nt[r], !0, o)),
'margin'!==n &&
(l -=T.css(t, 'border' + nt[r] + 'Width', !0, o)))
: ((l +=T.css(t, 'padding' + nt[r], !0, o)),
'padding'!==n
? (l +=T.css(t, 'border' + nt[r] + 'Width', !0, o))
: (a +=T.css(t,
'border' + nt[r] + 'Width',
!0,
o,
))));
return (
!i &&
0 <=s &&
(l +=Math.max(0,
Math.ceil(t['offset' + e[0].toUpperCase() + e.slice(1)] -
s -
l -
a -
0.5,
),
)),
l
);
}
function Kt(t, e, n){
var i=Ft(t),
o=Ht(t, e, i),
s='border-box'===T.css(t, 'boxSizing', !1, i),
r=s;
if(jt.test(o)){
if(!n) return o;
o='auto';
}
return (
(r=r&&(v.boxSizingReliable()||o===t.style[e])),
('auto'===o ||
(!parseFloat(o) &&
'inline'===T.css(t, 'display', !1, i))) &&
((o=t['offset' + e[0].toUpperCase() + e.slice(1)]),
(r = !0)),
(o=parseFloat(o)||0) +
Qt(t, e, n||(s ? 'border':'content'), r, i, o) +
'px'
);
}
function Zt(t, e, n, i, o){
return new Zt.prototype.init(t, e, n, i, o);
}
(T.extend({
cssHooks: {
opacity: {
get: function (t, e){
if(e){
var n=Ht(t, 'opacity');
return ''===n ? '1':n;
}},
},
},
cssNumber: {
animationIterationCount: !0,
columnCount: !0,
fillOpacity: !0,
flexGrow: !0,
flexShrink: !0,
fontWeight: !0,
lineHeight: !0,
opacity: !0,
order: !0,
orphans: !0,
widows: !0,
zIndex: !0,
zoom: !0,
},
cssProps: {},
style: function (t, e, n, i){
if(!t||3===t.nodeType||8===t.nodeType||!t.style)
return;
var o,
s,
r,
a=X(e),
l=Bt.test(e),
c=t.style;
if((l||(e=Vt(a)),
(r=T.cssHooks[e]||T.cssHooks[a]),
void 0===n)
){
if(r&&'get' in r&&void 0!==(o=r.get(t, !1, i)))
return o;
return c[e];
}
if(('string'===(s=typeof n) &&
(o=et.exec(n)) &&
o[1] &&
((n=st(t, e, o)), (s='number')),
null==n||n!=n)
)
return;
('number'===s &&
(n +=(o&&o[3])||(T.cssNumber[a] ? '':'px')),
v.clearCloneStyle ||
''!==n ||
0!==e.indexOf('background') ||
(c[e]='inherit'),
(r&&'set' in r&&void 0===(n=r.set(t, n, i))) ||
(l ? c.setProperty(e, n):(c[e]=n)));
},
css: function (t, e, n, i){
var o,
s,
r,
a=X(e);
if((Bt.test(e)||(e=Vt(a)),
(r=T.cssHooks[e]||T.cssHooks[a]) &&
'get' in r &&
(o=r.get(t, !0, n)),
void 0===o&&(o=Ht(t, e, i)),
'normal'===o&&e in Ut&&(o=Ut[e]),
''===n||n)
)
return (
(s=parseFloat(o)),
!0===n||isFinite(s) ? s||0:o
);
return o;
},
}),
T.each(['height', 'width'], function (t, a){
T.cssHooks[a]={
get: function (t, e, n){
if(e)
return !Rt.test(T.css(t, 'display')) ||
(t.getClientRects().length &&
t.getBoundingClientRect().width)
? Kt(t, a, n)
: ot(t, Wt, function (){
return Kt(t, a, n);
});
},
set: function (t, e, n){
var i,
o=Ft(t),
s='border-box'===T.css(t, 'boxSizing', !1, o),
r=n&&Qt(t, a, n, s, o);
return (
s &&
v.scrollboxSize()===o.position &&
(r -=Math.ceil(t['offset' + a[0].toUpperCase() + a.slice(1)] -
parseFloat(o[a]) -
Qt(t, a, 'border', !1, o) -
0.5,
)),
r &&
(i=et.exec(e)) &&
'px'!==(i[3]||'px') &&
((t.style[a]=e), (e=T.css(t, a))),
Gt(0, e, r)
);
},
};}),
(T.cssHooks.marginLeft=qt(
v.reliableMarginLeft,
function (t, e){
if(e)
return (
(parseFloat(Ht(t, 'marginLeft')) ||
t.getBoundingClientRect().left -
ot(t, { marginLeft: 0 }, function (){
return t.getBoundingClientRect().left;
})) + 'px'
);
},
)),
T.each({ margin: '', padding: '', border: 'Width' },
function (o, s){
((T.cssHooks[o + s]={
expand: function (t){
for (
var e=0,
n={},
i='string'==typeof t ? t.split(' '):[t];
e < 4;
e++
)
n[o + nt[e] + s]=i[e]||i[e - 2]||i[0];
return n;
},
}),
'margin'!==o&&(T.cssHooks[o + s].set=Gt));
},
),
T.fn.extend({
css: function (t, e){
return R(
this,
function (t, e, n){
var i,
o,
s={},
r=0;
if(Array.isArray(e)){
for (i=Ft(t), o=e.length; r < o; r++)
s[e[r]]=T.css(t, e[r], !1, i);
return s;
}
return void 0!==n ? T.style(t, e, n):T.css(t, e);
},
t,
e,
1 < arguments.length,
);
},
}),
(((T.Tween=Zt).prototype={
constructor: Zt,
init: function (t, e, n, i, o, s){
((this.elem=t),
(this.prop=n),
(this.easing=o||T.easing._default),
(this.options=e),
(this.start=this.now=this.cur()),
(this.end=i),
(this.unit=s||(T.cssNumber[n] ? '':'px')));
},
cur: function (){
var t=Zt.propHooks[this.prop];
return t&&t.get
? t.get(this)
: Zt.propHooks._default.get(this);
},
run: function (t){
var e,
n=Zt.propHooks[this.prop];
return (
this.options.duration
? (this.pos=e =
T.easing[this.easing](
t,
this.options.duration * t,
0,
1,
this.options.duration,
))
: (this.pos=e = t),
(this.now=(this.end - this.start) * e + this.start),
this.options.step &&
this.options.step.call(this.elem, this.now, this),
n&&n.set
? n.set(this)
: Zt.propHooks._default.set(this),
this
);
},
}).init.prototype=Zt.prototype),
((Zt.propHooks={
_default: {
get: function (t){
var e;
if(1!==t.elem.nodeType ||
(null!=t.elem[t.prop]&&null==t.elem.style[t.prop])
)
return t.elem[t.prop];
return (e=T.css(t.elem, t.prop, ''))&&'auto'!==e
? e
: 0;
},
set: function (t){
T.fx.step[t.prop]
? T.fx.step[t.prop](t)
: 1!==t.elem.nodeType ||
(null==t.elem.style[T.cssProps[t.prop]] &&
!T.cssHooks[t.prop])
? (t.elem[t.prop]=t.now)
: T.style(t.elem, t.prop, t.now + t.unit);
},
},
}).scrollTop=Zt.propHooks.scrollLeft =
{
set: function (t){
t.elem.nodeType &&
t.elem.parentNode &&
(t.elem[t.prop]=t.now);
},
}),
(T.easing={
linear: function (t){
return t;
},
swing: function (t){
return 0.5 - Math.cos(t * Math.PI) / 2;
},
_default: 'swing',
}),
(T.fx=Zt.prototype.init),
(T.fx.step={}));
var Jt,
te,
ee,
ne,
ie=/^(?:toggle|show|hide)$/,
oe=/queueHooks$/;
function se(){
te &&
(!1===S.hidden&&C.requestAnimationFrame
? C.requestAnimationFrame(se)
: C.setTimeout(se, T.fx.interval),
T.fx.tick());
}
function re(){
return (
C.setTimeout(function (){
Jt=void 0;
}),
(Jt=Date.now())
);
}
function ae(t, e){
var n,
i=0,
o={ height: t };
for (e=e ? 1:0; i < 4; i +=2 - e)
o['margin' + (n=nt[i])]=o['padding' + n]=t;
return (e&&(o.opacity=o.width=t), o);
}
function le(t, e, n){
for (
var i,
o=(ce.tweeners[e]||[]).concat(ce.tweeners['*']),
s=0,
r=o.length;
s < r;
s++
)
if((i=o[s].call(n, e, t))) return i;
}
function ce(s, t, e){
var n,
r,
i=0,
o=ce.prefilters.length,
a=T.Deferred().always(function (){
delete l.elem;
}),
l=function (){
if(r) return !1;
for (
var t=Jt||re(),
e=Math.max(0, c.startTime + c.duration - t),
n=1 - (e / c.duration||0),
i=0,
o=c.tweens.length;
i < o;
i++
)
c.tweens[i].run(n);
if((a.notifyWith(s, [c, n, e]), n < 1&&o)) return e;
return (
o||a.notifyWith(s, [c, 1, 0]),
a.resolveWith(s, [c]),
!1
);
},
c=a.promise({
elem: s,
props: T.extend({}, t),
opts: T.extend(!0,
{ specialEasing: {}, easing: T.easing._default },
e,
),
originalProperties: t,
originalOptions: e,
startTime: Jt||re(),
duration: e.duration,
tweens: [],
createTween: function (t, e){
var n=T.Tween(s,
c.opts,
t,
e,
c.opts.specialEasing[t]||c.opts.easing,
);
return (c.tweens.push(n), n);
},
stop: function (t){
var e=0,
n=t ? c.tweens.length:0;
if(r) return this;
for (r = !0; e < n; e++) c.tweens[e].run(1);
return (
t
? (a.notifyWith(s, [c, 1, 0]),
a.resolveWith(s, [c, t]))
: a.rejectWith(s, [c, t]),
this
);
},
}),
d=c.props;
for (
!(function t(e, n){
var i, o, s, r, a;
for (i in e)
if(((s=n[(o=X(i))]),
(r=e[i]),
Array.isArray(r)&&((s=r[1]), (r=e[i]=r[0])),
i!==o&&((e[o]=r), delete e[i]),
(a=T.cssHooks[o])&&('expand' in a))
)
for (i in ((r=a.expand (r)), delete e[o], r))
(i in e)||((e[i]=r[i]), (n[i]=s));
else n[o]=s;
})(d, c.opts.specialEasing);
i < o;
i++
)
if((n=ce.prefilters[i].call(c, s, d, c.opts)))
return (
b(n.stop) &&
(T._queueHooks(c.elem, c.opts.queue).stop =
n.stop.bind(n)),
n
);
return (
T.map(d, le, c),
b(c.opts.start)&&c.opts.start.call(s, c),
c
.progress(c.opts.progress)
.done(c.opts.done, c.opts.complete)
.fail(c.opts.fail)
.always(c.opts.always),
T.fx.timer(T.extend(l, { elem: s, anim: c, queue: c.opts.queue }),
),
c
);
}
((T.Animation=T.extend(ce, {
tweeners: {
'*': [
function (t, e){
var n=this.createTween(t, e);
return (st(n.elem, t, et.exec(e), n), n);
},
],
},
tweener: function (t, e){
for (
var n,
i=0,
o=(t=b(t) ? ((e=t), ['*']):t.match(N)).length;
i < o;
i++
)
((n=t[i]),
(ce.tweeners[n]=ce.tweeners[n]||[]),
ce.tweeners[n].unshift(e));
},
prefilters: [
function t(e, n, i){
var o,
s,
r,
a,
l,
c,
d,
u,
f='width' in n||'height' in n,
h=this,
p={},
g=e.style,
m=e.nodeType&&it(e),
v=G.get(e, 'fxshow');
for (o in (i.queue ||
(null==(a=T._queueHooks(e, 'fx')).unqueued &&
((a.unqueued=0),
(l=a.empty.fire),
(a.empty.fire=function (){
a.unqueued||l();
})),
a.unqueued++,
h.always(function (){
h.always(function (){
(a.unqueued--,
T.queue(e, 'fx').length||a.empty.fire());
});
})),
n))
if(((s=n[o]), ie.test(s))){
if((delete n[o],
(r=r||'toggle'===s),
s===(m ? 'hide':'show'))
){
if('show'!==s||!v||void 0===v[o]) continue;
m = !0;
}
p[o]=(v&&v[o])||T.style(e, o);
}
if(!(c = !T.isEmptyObject(n))&&T.isEmptyObject(p))
return;
for (o in (f &&
1===e.nodeType &&
((i.overflow=[g.overflow, g.overflowX, g.overflowY]),
null==(d=v&&v.display)&&(d=G.get(e, 'display')),
'none'===(u=T.css(e, 'display')) &&
(d
? (u=d)
: (lt([e], !0),
(d=e.style.display||d),
(u=T.css(e, 'display')),
lt([e]))),
('inline'===u||('inline-block'===u&&null!=d)) &&
'none'===T.css(e, 'float') &&
(c ||
(h.done(function (){
g.display=d;
}),
null==d &&
((u=g.display), (d='none'===u ? '':u))),
(g.display='inline-block'))),
i.overflow &&
((g.overflow='hidden'),
h.always(function (){
((g.overflow=i.overflow[0]),
(g.overflowX=i.overflow[1]),
(g.overflowY=i.overflow[2]));
})),
(c = !1),
p))
(c ||
(v
? 'hidden' in v&&(m=v.hidden)
: (v=G.access(e, 'fxshow', { display: d })),
r&&(v.hidden = !m),
m&&lt([e], !0),
h.done(function (){
for (o in (m||lt([e]), G.remove(e, 'fxshow'), p))
T.style(e, o, p[o]);
})),
(c=le(m ? v[o]:0, o, h)),
o in v ||
((v[o]=c.start),
m&&((c.end=c.start), (c.start=0))));
},
],
prefilter: function (t, e){
e ? ce.prefilters.unshift(t):ce.prefilters.push(t);
},
})),
(T.speed=function (t, e, n){
var i =
t&&'object'==typeof t
? T.extend({}, t)
: {
complete: n||(!n&&e)||(b(t)&&t),
duration: t,
easing: (n&&e)||(e&&!b(e)&&e),
};
return (
T.fx.off
? (i.duration=0)
: 'number'!=typeof i.duration &&
(i.duration in T.fx.speeds
? (i.duration=T.fx.speeds[i.duration])
: (i.duration=T.fx.speeds._default)),
(null!=i.queue&&!0!==i.queue)||(i.queue='fx'),
(i.old=i.complete),
(i.complete=function (){
(b(i.old)&&i.old.call(this),
i.queue&&T.dequeue(this, i.queue));
}),
i
);
}),
T.fn.extend({
fadeTo: function (t, e, n, i){
return this.filter(it)
.css('opacity', 0)
.show()
.end()
.animate({ opacity: e }, t, n, i);
},
animate: function (e, t, n, i){
var o=T.isEmptyObject(e),
s=T.speed(t, n, i),
r=function (){
var t=ce(this, T.extend({}, e), s);
(o||G.get(this, 'finish'))&&t.stop(!0);
};
return (
(r.finish=r),
o||!1===s.queue
? this.each(r)
: this.queue(s.queue, r)
);
},
stop: function (o, t, s){
var r=function (t){
var e=t.stop;
(delete t.stop, e(s));
};
return (
'string'!=typeof o&&((s=t), (t=o), (o=void 0)),
t&&!1!==o&&this.queue(o||'fx', []),
this.each(function (){
var t = !0,
e=null!=o&&o + 'queueHooks',
n=T.timers,
i=G.get(this);
if(e) i[e]&&i[e].stop&&r(i[e]);
else
for (e in i)
i[e]&&i[e].stop&&oe.test(e)&&r(i[e]);
for (e=n.length; e--;)
n[e].elem!==this ||
(null!=o&&n[e].queue!==o) ||
(n[e].anim.stop(s), (t = !1), n.splice(e, 1));
(!t&&s)||T.dequeue(this, o);
})
);
},
finish: function (r){
return (
!1!==r&&(r=r||'fx'),
this.each(function (){
var t,
e=G.get(this),
n=e[r + 'queue'],
i=e[r + 'queueHooks'],
o=T.timers,
s=n ? n.length:0;
for (
e.finish = !0,
T.queue(this, r, []),
i&&i.stop&&i.stop.call(this, !0),
t=o.length;
t--;
)
o[t].elem===this &&
o[t].queue===r &&
(o[t].anim.stop(!0), o.splice(t, 1));
for (t=0; t < s; t++)
n[t]&&n[t].finish&&n[t].finish.call(this);
delete e.finish;
})
);
},
}),
T.each(['toggle', 'show', 'hide'], function (t, i){
var o=T.fn[i];
T.fn[i]=function (t, e, n){
return null==t||'boolean'==typeof t
? o.apply(this, arguments)
: this.animate(ae(i, !0), t, e, n);
};}),
T.each({
slideDown: ae('show'),
slideUp: ae('hide'),
slideToggle: ae('toggle'),
fadeIn: { opacity: 'show' },
fadeOut: { opacity: 'hide' },
fadeToggle: { opacity: 'toggle' },
},
function (t, i){
T.fn[t]=function (t, e, n){
return this.animate(i, t, e, n);
};},
),
(T.timers=[]),
(T.fx.tick=function (){
var t,
e=0,
n=T.timers;
for (Jt=Date.now(); e < n.length; e++)
(t=n[e])()||n[e]!==t||n.splice(e--, 1);
(n.length||T.fx.stop(), (Jt=void 0));
}),
(T.fx.timer=function (t){
(T.timers.push(t), T.fx.start());
}),
(T.fx.interval=13),
(T.fx.start=function (){
if(te) return;
((te = !0), se());
}),
(T.fx.stop=function (){
te=null;
}),
(T.fx.speeds={ slow: 600, fast: 200, _default: 400 }),
(T.fn.delay=function (i, t){
return (
(i=(T.fx&&T.fx.speeds[i])||i),
(t=t||'fx'),
this.queue(t, function (t, e){
var n=C.setTimeout(t, i);
e.stop=function (){
C.clearTimeout(n);
};})
);
}),
(ee=S.createElement('input')),
(ne=S.createElement('select').appendChild(S.createElement('option'),
)),
(ee.type='checkbox'),
(v.checkOn=''!==ee.value),
(v.optSelected=ne.selected),
((ee=S.createElement('input')).value='t'),
(ee.type='radio'),
(v.radioValue='t'===ee.value));
var de,
ue=T.expr.attrHandle;
(T.fn.extend({
attr: function (t, e){
return R(this, T.attr, t, e, 1 < arguments.length);
},
removeAttr: function (t){
return this.each(function (){
T.removeAttr(this, t);
});
},
}),
T.extend({
attr: function (t, e, n){
var i,
o,
s=t.nodeType;
if(3===s||8===s||2===s) return;
if(void 0===t.getAttribute) return T.prop(t, e, n);
if(((1===s&&T.isXMLDoc(t)) ||
(o =
T.attrHooks[e.toLowerCase()] ||
(T.expr.match.bool.test(e) ? de:void 0)),
void 0!==n)
){
if(null===n) return void T.removeAttr(t, e);
if(o&&'set' in o&&void 0!==(i=o.set(t, n, e)))
return i;
return (t.setAttribute(e, n + ''), n);
}
if(o&&'get' in o&&null!==(i=o.get(t, e))) return i;
return null==(i=T.find.attr(t, e)) ? void 0:i;
},
attrHooks: {
type: {
set: function (t, e){
if(!v.radioValue&&'radio'===e&&E(t, 'input')){
var n=t.value;
return (
t.setAttribute('type', e),
n&&(t.value=n),
e
);
}},
},
},
removeAttr: function (t, e){
var n,
i=0,
o=e&&e.match(N);
if(o&&1===t.nodeType)
for (; (n=o[i++]);) t.removeAttribute(n);
},
}),
(de={
set: function (t, e, n){
return (
!1===e ? T.removeAttr(t, n):t.setAttribute(n, n),
n
);
},
}),
T.each(T.expr.match.bool.source.match(/\w+/g), function (t, e){
var r=ue[e]||T.find.attr;
ue[e]=function (t, e, n){
var i,
o,
s=e.toLowerCase();
return (
n ||
((o=ue[s]),
(ue[s]=i),
(i=null!=r(t, e, n) ? s:null),
(ue[s]=o)),
i
);
};}));
var fe=/^(?:input|select|textarea|button)$/i,
he=/^(?:a|area)$/i;
function pe(t){
return (t.match(N)||[]).join(' ');
}
function ge(t){
return (t.getAttribute&&t.getAttribute('class'))||'';
}
function me(t){
if(Array.isArray(t)) return t;
if('string'==typeof t) return t.match(N)||[];
return [];
}
(T.fn.extend({
prop: function (t, e){
return R(this, T.prop, t, e, 1 < arguments.length);
},
removeProp: function (t){
return this.each(function (){
delete this[T.propFix[t]||t];
});
},
}),
T.extend({
prop: function (t, e, n){
var i,
o,
s=t.nodeType;
if(3===s||8===s||2===s) return;
if(((1===s&&T.isXMLDoc(t)) ||
((e=T.propFix[e]||e), (o=T.propHooks[e])),
void 0!==n)
){
if(o&&'set' in o&&void 0!==(i=o.set(t, n, e)))
return i;
return (t[e]=n);
}
if(o&&'get' in o&&null!==(i=o.get(t, e))) return i;
return t[e];
},
propHooks: {
tabIndex: {
get: function (t){
var e=T.find.attr(t, 'tabindex');
if(e) return parseInt(e, 10);
if(fe.test(t.nodeName) ||
(he.test(t.nodeName)&&t.href)
)
return 0;
return -1;
},
},
},
propFix: { for: 'htmlFor', class: 'className' },
}),
v.optSelected ||
(T.propHooks.selected={
get: function (t){
var e=t.parentNode;
return (
e&&e.parentNode&&e.parentNode.selectedIndex,
null
);
},
set: function (t){
var e=t.parentNode;
e &&
(e.selectedIndex,
e.parentNode&&e.parentNode.selectedIndex);
},
}),
T.each([
'tabIndex',
'readOnly',
'maxLength',
'cellSpacing',
'cellPadding',
'rowSpan',
'colSpan',
'useMap',
'frameBorder',
'contentEditable',
],
function (){
T.propFix[this.toLowerCase()]=this;
},
),
T.fn.extend({
addClass: function (e){
var t,
n,
i,
o,
s,
r,
a,
l=0;
if(b(e))
return this.each(function (t){
T(this).addClass(e.call(this, t, ge(this)));
});
if((t=me(e)).length)
for (; (n=this[l++]);)
if(((o=ge(n)),
(i=1===n.nodeType&&' ' + pe(o) + ' '))
){
for (r=0; (s=t[r++]);)
i.indexOf(' ' + s + ' ') < 0&&(i +=s + ' ');
o!==(a=pe(i))&&n.setAttribute('class', a);
}
return this;
},
removeClass: function (e){
var t,
n,
i,
o,
s,
r,
a,
l=0;
if(b(e))
return this.each(function (t){
T(this).removeClass(e.call(this, t, ge(this)));
});
if(!arguments.length) return this.attr('class', '');
if((t=me(e)).length)
for (; (n=this[l++]);)
if(((o=ge(n)),
(i=1===n.nodeType&&' ' + pe(o) + ' '))
){
for (r=0; (s=t[r++]);)
for (; -1 < i.indexOf(' ' + s + ' ');)
i=i.replace(' ' + s + ' ', ' ');
o!==(a=pe(i))&&n.setAttribute('class', a);
}
return this;
},
toggleClass: function (o, e){
var s=typeof o,
r='string'===s||Array.isArray(o);
if('boolean'==typeof e&&r)
return e ? this.addClass(o):this.removeClass(o);
if(b(o))
return this.each(function (t){
T(this).toggleClass(o.call(this, t, ge(this), e), e);
});
return this.each(function (){
var t, e, n, i;
if(r)
for (e=0, n=T(this), i=me(o); (t=i[e++]);)
n.hasClass(t) ? n.removeClass(t):n.addClass(t);
else
(void 0!==o&&'boolean'!==s) ||
((t=ge(this))&&G.set(this, '__className__', t),
this.setAttribute &&
this.setAttribute('class',
t||!1===o
? ''
: G.get(this, '__className__')||'',
));
});
},
hasClass: function (t){
var e,
n,
i=0;
for (e=' ' + t + ' '; (n=this[i++]);)
if(1===n.nodeType &&
-1 < (' ' + pe(ge(n)) + ' ').indexOf(e)
)
return !0;
return !1;
},
}));
var ve=/\r/g;
(T.fn.extend({
val: function (n){
var i,
t,
o,
e=this[0];
if(!arguments.length){
if(e){
if((i =
T.valHooks[e.type] ||
T.valHooks[e.nodeName.toLowerCase()]) &&
'get' in i &&
void 0!==(t=i.get(e, 'value'))
)
return t;
if('string'==typeof (t=e.value))
return t.replace(ve, '');
return null==t ? '':t;
}
return;
}
return (
(o=b(n)),
this.each(function (t){
var e;
if(1!==this.nodeType) return;
(null==(e=o ? n.call(this, t, T(this).val()):n)
? (e='')
: 'number'==typeof e
? (e +='')
: Array.isArray(e) &&
(e=T.map(e, function (t){
return null==t ? '':t + '';
})),
((i =
T.valHooks[this.type] ||
T.valHooks[this.nodeName.toLowerCase()]) &&
'set' in i &&
void 0!==i.set(this, e, 'value')) ||
(this.value=e));
})
);
},
}),
T.extend({
valHooks: {
option: {
get: function (t){
var e=T.find.attr(t, 'value');
return null!=e ? e:pe(T.text(t));
},
},
select: {
get: function (t){
var e,
n,
i,
o=t.options,
s=t.selectedIndex,
r='select-one'===t.type,
a=r ? null:[],
l=r ? s + 1:o.length;
for (i=s < 0 ? l:r ? s:0; i < l; i++)
if(((n=o[i]).selected||i===s) &&
!n.disabled &&
(!n.parentNode.disabled ||
!E(n.parentNode, 'optgroup'))
){
if(((e=T(n).val()), r)) return e;
a.push(e);
}
return a;
},
set: function (t, e){
for (
var n,
i,
o=t.options,
s=T.makeArray(e),
r=o.length;
r--;
)
((i=o[r]).selected =
-1 < T.inArray(T.valHooks.option.get(i), s)) &&
(n = !0);
return (n||(t.selectedIndex=-1), s);
},
},
},
}),
T.each(['radio', 'checkbox'], function (){
((T.valHooks[this]={
set: function (t, e){
if(Array.isArray(e))
return (t.checked=-1 < T.inArray(T(t).val(), e));
},
}),
v.checkOn ||
(T.valHooks[this].get=function (t){
return null===t.getAttribute('value')
? 'on'
: t.value;
}));
}),
(v.focusin='onfocusin' in C));
var be=/^(?:focusinfocus|focusoutblur)$/,
ye=function (t){
t.stopPropagation();
};
(T.extend(T.event, {
trigger: function (t, e, n, i){
var o,
s,
r,
a,
l,
c,
d,
u,
f=[n||S],
h=m.call(t, 'type') ? t.type:t,
p=m.call(t, 'namespace') ? t.namespace.split('.'):[];
if(((s=u = r=n = n||S),
3===n.nodeType||8===n.nodeType)
)
return;
if(be.test(h + T.event.triggered)) return;
if((-1 < h.indexOf('.') &&
((h=(p=h.split('.')).shift()), p.sort()),
(l=h.indexOf(':') < 0&&'on' + h),
((t=t[T.expando]
? t
: new T.Event(h, 'object'==typeof t&&t)).isTrigger=i
? 2
: 3),
(t.namespace=p.join('.')),
(t.rnamespace=t.namespace
? new RegExp(
'(^|\\.)' + p.join('\\.(?:.*\\.|)') + '(\\.|$)',
)
: null),
(t.result=void 0),
t.target||(t.target=n),
(e=null==e ? [t]:T.makeArray(e, [t])),
(d=T.event.special[h]||{}),
!i&&d.trigger&&!1===d.trigger.apply(n, e))
)
return;
if(!i&&!d.noBubble&&!y(n)){
for (
a=d.delegateType||h,
be.test(a + h)||(s=s.parentNode);
s;
s=s.parentNode
)
(f.push(s), (r=s));
r===(n.ownerDocument||S) &&
f.push(r.defaultView||r.parentWindow||C);
}
for (o=0; (s=f[o++])&&!t.isPropagationStopped();)
((u=s),
(t.type=1 < o ? a:d.bindType||h),
(c =
(G.get(s, 'events')||{})[t.type] &&
G.get(s, 'handle'))&&c.apply(s, e),
(c=l&&s[l]) &&
c.apply &&
Y(s) &&
((t.result=c.apply(s, e)),
!1===t.result&&t.preventDefault()));
return (
(t.type=h),
i ||
t.isDefaultPrevented() ||
(d._default&&!1!==d._default.apply(f.pop(), e)) ||
!Y(n) ||
(l &&
b(n[h]) &&
!y(n) &&
((r=n[l])&&(n[l]=null),
(T.event.triggered=h),
t.isPropagationStopped()&&u.addEventListener(h, ye),
n[h](),
t.isPropagationStopped() &&
u.removeEventListener(h, ye),
(T.event.triggered=void 0),
r&&(n[l]=r))),
t.result
);
},
simulate: function (t, e, n){
var i=T.extend(new T.Event(), n, {
type: t,
isSimulated: !0,
});
T.event.trigger(i, null, e);
},
}),
T.fn.extend({
trigger: function (t, e){
return this.each(function (){
T.event.trigger(t, e, this);
});
},
triggerHandler: function (t, e){
var n=this[0];
if(n) return T.event.trigger(t, e, n, !0);
},
}),
v.focusin ||
T.each({ focus: 'focusin', blur: 'focusout' },
function (n, i){
var o=function (t){
T.event.simulate(i, t.target, T.event.fix(t));
};
T.event.special[i]={
setup: function (){
var t=this.ownerDocument||this,
e=G.access(t, i);
(e||t.addEventListener(n, o, !0),
G.access(t, i, (e||0) + 1));
},
teardown: function (){
var t=this.ownerDocument||this,
e=G.access(t, i) - 1;
e
? G.access(t, i, e)
: (t.removeEventListener(n, o, !0), G.remove(t, i));
},
};},
));
var xe=C.location,
we=Date.now(),
_e=/\?/;
T.parseXML=function (t){
var e;
if(!t||'string'!=typeof t) return null;
try {
e=new C.DOMParser().parseFromString(t, 'text/xml');
} catch (t){
e=void 0;
}
return (
(e&&!e.getElementsByTagName('parsererror').length) ||
T.error('Invalid XML: ' + t),
e
);
};
var Ce=/\[\]$/,
Se=/\r?\n/g,
Te=/^(?:submit|button|image|reset|file)$/i,
ke=/^(?:input|select|textarea|keygen)/i;
function Ee(n, t, i, o){
var e;
if(Array.isArray(t))
T.each(t, function (t, e){
i||Ce.test(n)
? o(n, e)
: Ee(
n +
'[' +
('object'==typeof e&&null!=e ? t:'') +
']',
e,
i,
o,
);
});
else if(i||'object'!==w(t)) o(n, t);
else for (e in t) Ee(n + '[' + e + ']', t[e], i, o);
}
((T.param=function (t, e){
var n,
i=[],
o=function (t, e){
var n=b(e) ? e():e;
i[i.length] =
encodeURIComponent(t) +
'=' +
encodeURIComponent(null==n ? '':n);
};
if(Array.isArray(t)||(t.jquery&&!T.isPlainObject(t)))
T.each(t, function (){
o(this.name, this.value);
});
else for (n in t) Ee(n, t[n], e, o);
return i.join('&');
}),
T.fn.extend({
serialize: function (){
return T.param(this.serializeArray());
},
serializeArray: function (){
return this.map(function (){
var t=T.prop(this, 'elements');
return t ? T.makeArray(t):this;
})
.filter(function (){
var t=this.type;
return (
this.name &&
!T(this).is(':disabled') &&
ke.test(this.nodeName) &&
!Te.test(t) &&
(this.checked||!ct.test(t))
);
})
.map(function (t, e){
var n=T(this).val();
if(null==n) return null;
if(Array.isArray(n))
return T.map(n, function (t){
return {
name: e.name,
value: t.replace(Se, '\r\n'),
};});
return { name: e.name, value: n.replace(Se, '\r\n') };})
.get();
},
}));
var Pe=/%20/g,
$e=/#.*$/,
ze=/([?&])_=[^&]*/,
Ae=/^(.*?):[ \t]*([^\r\n]*)$/gm,
Le=/^(?:GET|HEAD)$/,
De=/^\/\//,
Me={},
Ne={},
Ie='*/'.concat('*'),
je=S.createElement('a');
function Fe(s){
return function (t, e){
'string'!=typeof t&&((e=t), (t='*'));
var n,
i=0,
o=t.toLowerCase().match(N)||[];
if(b(e))
for (; (n=o[i++]);)
'+'===n[0]
? ((n=n.slice(1)||'*'),
(s[n]=s[n]||[]).unshift(e))
: (s[n]=s[n]||[]).push(e);
};}
function Oe(e, o, s, r){
var a={},
l=e===Ne;
function c(t){
var i;
return (
(a[t] = !0),
T.each(e[t]||[], function (t, e){
var n=e(o, s, r);
if('string'==typeof n&&!l&&!a[n])
return (o.dataTypes.unshift(n), c(n), !1);
if(l) return !(i=n);
}),
i
);
}
return c(o.dataTypes[0])||(!a['*']&&c('*'));
}
function He(t, e){
var n,
i,
o=T.ajaxSettings.flatOptions||{};
for (n in e)
void 0!==e[n]&&((o[n] ? t:i||(i={}))[n]=e[n]);
return (i&&T.extend(!0, t, i), t);
}
((je.href=xe.href),
T.extend({
active: 0,
lastModified: {},
etag: {},
ajaxSettings: {
url: xe.href,
type: 'GET',
isLocal:
/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xe.protocol,
),
global: !0,
processData: !0,
async: !0,
contentType:
'application/x-www-form-urlencoded; charset=UTF-8',
accepts: {
'*': Ie,
text: 'text/plain',
html: 'text/html',
xml: 'application/xml, text/xml',
json: 'application/json, text/javascript',
},
contents: {
xml: /\bxml\b/,
html: /\bhtml/,
json: /\bjson\b/,
},
responseFields: {
xml: 'responseXML',
text: 'responseText',
json: 'responseJSON',
},
converters: {
'* text': String,
'text html': !0,
'text json': JSON.parse,
'text xml': T.parseXML,
},
flatOptions: { url: !0, context: !0 },
},
ajaxSetup: function (t, e){
return e
? He(He(t, T.ajaxSettings), e)
: He(T.ajaxSettings, t);
},
ajaxPrefilter: Fe(Me),
ajaxTransport: Fe(Ne),
ajax: function (t, e){
('object'==typeof t&&((e=t), (t=void 0)),
(e=e||{}));
var d,
u,
f,
n,
h,
i,
p,
g,
o,
s,
m=T.ajaxSetup({}, e),
v=m.context||m,
b =
m.context&&(v.nodeType||v.jquery) ? T(v):T.event,
y=T.Deferred(),
x=T.Callbacks('once memory'),
w=m.statusCode||{},
r={},
a={},
l='canceled',
_={
readyState: 0,
getResponseHeader: function (t){
var e;
if(p){
if(!n)
for (n={}; (e=Ae.exec(f));)
n[e[1].toLowerCase()]=e[2];
e=n[t.toLowerCase()];
}
return null==e ? null:e;
},
getAllResponseHeaders: function (){
return p ? f:null;
},
setRequestHeader: function (t, e){
return (
null==p &&
((t=a[t.toLowerCase()] =
a[t.toLowerCase()]||t),
(r[t]=e)),
this
);
},
overrideMimeType: function (t){
return (null==p&&(m.mimeType=t), this);
},
statusCode: function (t){
var e;
if(t)
if(p) _.always(t[_.status]);
else for (e in t) w[e]=[w[e], t[e]];
return this;
},
abort: function (t){
var e=t||l;
return (d&&d.abort(e), c(0, e), this);
},
};
if((y.promise(_),
(m.url=((t||m.url||xe.href) + '').replace(De,
xe.protocol + '//',
)),
(m.type=e.method||e.type||m.method||m.type),
(m.dataTypes=(m.dataType||'*')
.toLowerCase()
.match(N)||['']),
null==m.crossDomain)
){
i=S.createElement('a');
try {
((i.href=m.url),
(i.href=i.href),
(m.crossDomain =
je.protocol + '//' + je.host!=i.protocol + '//' + i.host));
} catch (t){
m.crossDomain = !0;
}}
if((m.data &&
m.processData &&
'string'!=typeof m.data &&
(m.data=T.param(m.data, m.traditional)),
Oe(Me, m, e, _),
p)
)
return _;
for (o in ((g=T.event&&m.global) &&
0==T.active++ &&
T.event.trigger('ajaxStart'),
(m.type=m.type.toUpperCase()),
(m.hasContent = !Le.test(m.type)),
(u=m.url.replace($e, '')),
m.hasContent
? m.data &&
m.processData &&
0===(m.contentType||'').indexOf('application/x-www-form-urlencoded',
) &&
(m.data=m.data.replace(Pe, '+'))
: ((s=m.url.slice(u.length)),
m.data &&
(m.processData||'string'==typeof m.data) &&
((u +=(_e.test(u) ? '&':'?') + m.data),
delete m.data),
!1===m.cache &&
((u=u.replace(ze, '$1')),
(s=(_e.test(u) ? '&':'?') + '_=' + we++ + s)),
(m.url=u + s)),
m.ifModified &&
(T.lastModified[u] &&
_.setRequestHeader('If-Modified-Since',
T.lastModified[u],
),
T.etag[u] &&
_.setRequestHeader('If-None-Match', T.etag[u])),
((m.data&&m.hasContent&&!1!==m.contentType) ||
e.contentType) &&
_.setRequestHeader('Content-Type', m.contentType),
_.setRequestHeader('Accept',
m.dataTypes[0]&&m.accepts[m.dataTypes[0]]
? m.accepts[m.dataTypes[0]] +
('*'!==m.dataTypes[0]
? ', ' + Ie + '; q=0.01'
: '')
: m.accepts['*'],
),
m.headers))
_.setRequestHeader(o, m.headers[o]);
if(m.beforeSend &&
(!1===m.beforeSend.call(v, _, m)||p)
)
return _.abort();
if(((l='abort'),
x.add(m.complete),
_.done(m.success),
_.fail(m.error),
(d=Oe(Ne, m, e, _)))
){
if(((_.readyState=1),
g&&b.trigger('ajaxSend', [_, m]),
p)
)
return _;
m.async &&
0 < m.timeout &&
(h=C.setTimeout(function (){
_.abort('timeout');
}, m.timeout));
try {
((p = !1), d.send(r, c));
} catch (t){
if(p) throw t;
c(-1, t);
}} else c(-1, 'No Transport');
function c(t, e, n, i){
var o,
s,
r,
a,
l,
c=e;
if(p) return;
((p = !0),
h&&C.clearTimeout(h),
(d=void 0),
(f=i||''),
(_.readyState=0 < t ? 4:0),
(o=(200 <=t&&t < 300)||304===t),
n &&
(a=(function t(e, n, i){
for (
var o, s, r, a, l=e.contents, c=e.dataTypes;
'*'===c[0];
)
(c.shift(),
void 0===o &&
(o =
e.mimeType ||
n.getResponseHeader('Content-Type')));
if(o)
for (s in l)
if(l[s]&&l[s].test(o)){
c.unshift(s);
break;
}
if(c[0] in i) r=c[0];
else {
for (s in i){
if(!c[0]||e.converters[s + ' ' + c[0]]){
r=s;
break;
}
a||(a=s);
}
r=r||a;
}
if(r) return (r!==c[0]&&c.unshift(r), i[r]);
})(m, _, n)),
(a=(function t(e, n, i, o){
var s,
r,
a,
l,
c,
d={},
u=e.dataTypes.slice();
if(u[1])
for (a in e.converters)
d[a.toLowerCase()]=e.converters[a];
for (r=u.shift(); r;)
if((e.responseFields[r] &&
(i[e.responseFields[r]]=n),
!c &&
o &&
e.dataFilter &&
(n=e.dataFilter(n, e.dataType)),
(c=r),
(r=u.shift()))
)
if('*'===r) r=c;
else if('*'!==c&&c!==r){
if(!(a=d[c + ' ' + r]||d['* ' + r]))
for (s in d)
if((l=s.split(' '))[1]===r &&
(a=d[c + ' ' + l[0]]||d['* ' + l[0]])
){
!0===a
? (a=d[s])
: !0!==d[s] &&
((r=l[0]), u.unshift(l[1]));
break;
}
if(!0!==a)
if(a&&e.throws) n=a(n);
else
try {
n=a(n);
} catch (t){
return {
state: 'parsererror',
error: a
? t
: 'No conversion from ' +
c +
' to ' +
r,
};}}
return { state: 'success', data: n };})(m, a, _, o)),
o
? (m.ifModified &&
((l=_.getResponseHeader('Last-Modified')) &&
(T.lastModified[u]=l),
(l=_.getResponseHeader('etag')) &&
(T.etag[u]=l)),
204===t||'HEAD'===m.type
? (c='nocontent')
: 304===t
? (c='notmodified')
: ((c=a.state),
(s=a.data),
(o = !(r=a.error))))
: ((r=c),
(!t&&c)||((c='error'), t < 0&&(t=0))),
(_.status=t),
(_.statusText=(e||c) + ''),
o
? y.resolveWith(v, [s, c, _])
: y.rejectWith(v, [_, c, r]),
_.statusCode(w),
(w=void 0),
g &&
b.trigger(o ? 'ajaxSuccess':'ajaxError', [
_,
m,
o ? s:r,
]),
x.fireWith(v, [_, c]),
g &&
(b.trigger('ajaxComplete', [_, m]),
--T.active||T.event.trigger('ajaxStop')));
}
return _;
},
getJSON: function (t, e, n){
return T.get(t, e, n, 'json');
},
getScript: function (t, e){
return T.get(t, void 0, e, 'script');
},
}),
T.each(['get', 'post'], function (t, o){
T[o]=function (t, e, n, i){
return (
b(e)&&((i=i||n), (n=e), (e=void 0)),
T.ajax(T.extend({ url: t, type: o, dataType: i, data: e, success: n },
T.isPlainObject(t)&&t,
),
)
);
};}),
(T._evalUrl=function (t){
return T.ajax({
url: t,
type: 'GET',
dataType: 'script',
cache: !0,
async: !1,
global: !1,
throws: !0,
});
}),
T.fn.extend({
wrapAll: function (t){
var e;
return (
this[0] &&
(b(t)&&(t=t.call(this[0])),
(e=T(t, this[0].ownerDocument).eq(0).clone(!0)),
this[0].parentNode&&e.insertBefore(this[0]),
e
.map(function (){
for (var t=this; t.firstElementChild;)
t=t.firstElementChild;
return t;
})
.append(this)),
this
);
},
wrapInner: function (n){
if(b(n))
return this.each(function (t){
T(this).wrapInner(n.call(this, t));
});
return this.each(function (){
var t=T(this),
e=t.contents();
e.length ? e.wrapAll(n):t.append(n);
});
},
wrap: function (e){
var n=b(e);
return this.each(function (t){
T(this).wrapAll(n ? e.call(this, t):e);
});
},
unwrap: function (t){
return (
this.parent(t)
.not('body')
.each(function (){
T(this).replaceWith(this.childNodes);
}),
this
);
},
}),
(T.expr.pseudos.hidden=function (t){
return !T.expr.pseudos.visible(t);
}),
(T.expr.pseudos.visible=function (t){
return !!(
t.offsetWidth ||
t.offsetHeight ||
t.getClientRects().length
);
}),
(T.ajaxSettings.xhr=function (){
try {
return new C.XMLHttpRequest();
} catch (t){}}));
var qe={ 0: 200, 1223: 204 },
Re=T.ajaxSettings.xhr();
((v.cors = !!Re&&'withCredentials' in Re),
(v.ajax=Re = !!Re),
T.ajaxTransport(function (o){
var s, r;
if(v.cors||(Re&&!o.crossDomain))
return {
send: function (t, e){
var n,
i=o.xhr();
if((i.open(o.type,
o.url,
o.async,
o.username,
o.password,
),
o.xhrFields)
)
for (n in o.xhrFields) i[n]=o.xhrFields[n];
for (n in (o.mimeType &&
i.overrideMimeType &&
i.overrideMimeType(o.mimeType),
o.crossDomain ||
t['X-Requested-With'] ||
(t['X-Requested-With']='XMLHttpRequest'),
t))
i.setRequestHeader(n, t[n]);
((s=function (t){
return function (){
s &&
((s =
r =
i.onload =
i.onerror =
i.onabort =
i.ontimeout =
i.onreadystatechange =
null),
'abort'===t
? i.abort()
: 'error'===t
? 'number'!=typeof i.status
? e(0, 'error')
: e(i.status, i.statusText)
: e(
qe[i.status]||i.status,
i.statusText,
'text'!==(i.responseType||'text') ||
'string'!=typeof i.responseText
? { binary: i.response }
: { text: i.responseText },
i.getAllResponseHeaders(),
));
};}),
(i.onload=s()),
(r=i.onerror=i.ontimeout=s('error')),
void 0!==i.onabort
? (i.onabort=r)
: (i.onreadystatechange=function (){
4===i.readyState &&
C.setTimeout(function (){
s&&r();
});
}),
(s=s('abort')));
try {
i.send((o.hasContent&&o.data)||null);
} catch (t){
if(s) throw t;
}},
abort: function (){
s&&s();
},
};}),
T.ajaxPrefilter(function (t){
t.crossDomain&&(t.contents.script = !1);
}),
T.ajaxSetup({
accepts: {
script:
'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript',
},
contents: { script: /\b(?:java|ecma)script\b/ },
converters: {
'text script': function (t){
return (T.globalEval(t), t);
},
},
}),
T.ajaxPrefilter('script', function (t){
(void 0===t.cache&&(t.cache = !1),
t.crossDomain&&(t.type='GET'));
}),
T.ajaxTransport('script', function (n){
var i, o;
if(n.crossDomain)
return {
send: function (t, e){
((i=T('<script>')
.prop({ charset: n.scriptCharset, src: n.url })
.on('load error',
(o=function (t){
(i.remove(),
(o=null),
t&&e('error'===t.type ? 404:200, t.type));
}),
)),
S.head.appendChild(i[0]));
},
abort: function (){
o&&o();
},
};}));
var Be,
We=[],
Ue=/(=)\?(?=&|$)|\?\?/;
(T.ajaxSetup({
jsonp: 'callback',
jsonpCallback: function (){
var t=We.pop()||T.expando + '_' + we++;
return ((this[t] = !0), t);
},
}),
T.ajaxPrefilter('json jsonp', function (t, e, n){
var i,
o,
s,
r =
!1!==t.jsonp &&
(Ue.test(t.url)
? 'url'
: 'string'==typeof t.data &&
0===(t.contentType||'').indexOf('application/x-www-form-urlencoded',
) &&
Ue.test(t.data) &&
'data');
if(r||'jsonp'===t.dataTypes[0])
return (
(i=t.jsonpCallback =
b(t.jsonpCallback)
? t.jsonpCallback()
: t.jsonpCallback),
r
? (t[r]=t[r].replace(Ue, '$1' + i))
: !1!==t.jsonp &&
(t.url +=
(_e.test(t.url) ? '&':'?') + t.jsonp + '=' + i),
(t.converters['script json']=function (){
return (s||T.error(i + ' was not called'), s[0]);
}),
(t.dataTypes[0]='json'),
(o=C[i]),
(C[i]=function (){
s=arguments;
}),
n.always(function (){
(void 0===o ? T(C).removeProp(i):(C[i]=o),
t[i] &&
((t.jsonpCallback=e.jsonpCallback), We.push(i)),
s&&b(o)&&o(s[0]),
(s=o = void 0));
}),
'script'
);
}),
(v.createHTMLDocument =
(((Be =
S.implementation.createHTMLDocument('').body).innerHTML =
'<form></form><form></form>'),
2===Be.childNodes.length)),
(T.parseHTML=function (t, e, n){
if('string'!=typeof t) return [];
var i, o, s;
if(('boolean'==typeof e&&((n=e), (e = !1)),
e ||
(v.createHTMLDocument
? (((i=(e =
S.implementation.createHTMLDocument('',
)).createElement('base')).href=S.location.href),
e.head.appendChild(i))
: (e=S)),
(s = !n&&[]),
(o=P.exec(t)))
)
return [e.createElement(o[1])];
return (
(o=bt([t], e, s)),
s&&s.length&&T(s).remove(),
T.merge([], o.childNodes)
);
}),
(T.fn.load=function (t, e, n){
var i,
o,
s,
r=this,
a=t.indexOf(' ');
return (
-1 < a&&((i=pe(t.slice(a))), (t=t.slice(0, a))),
b(e)
? ((n=e), (e=void 0))
: e&&'object'==typeof e&&(o='POST'),
0 < r.length &&
T.ajax({
url: t,
type: o||'GET',
dataType: 'html',
data: e,
})
.done(function (t){
((s=arguments),
r.html(i ? T('<div>').append(T.parseHTML(t)).find(i):t,
));
})
.always(n &&
function (t, e){
r.each(function (){
n.apply(this, s||[t.responseText, e, t]);
});
},
),
this
);
}),
T.each([
'ajaxStart',
'ajaxStop',
'ajaxComplete',
'ajaxError',
'ajaxSuccess',
'ajaxSend',
],
function (t, e){
T.fn[e]=function (t){
return this.on(e, t);
};},
),
(T.expr.pseudos.animated=function (e){
return T.grep(T.timers, function (t){
return e===t.elem;
}).length;
}),
(T.offset={
setOffset: function (t, e, n){
var i,
o,
s,
r,
a,
l,
c=T.css(t, 'position'),
d=T(t),
u={};
('static'===c&&(t.style.position='relative'),
(a=d.offset()),
(s=T.css(t, 'top')),
(l=T.css(t, 'left')),
(o =
('absolute'===c||'fixed'===c) &&
-1 < (s + l).indexOf('auto')
? ((r=(i=d.position()).top), i.left)
: ((r=parseFloat(s)||0), parseFloat(l)||0)),
b(e)&&(e=e.call(t, n, T.extend({}, a))),
null!=e.top&&(u.top=e.top - a.top + r),
null!=e.left&&(u.left=e.left - a.left + o),
'using' in e ? e.using.call(t, u):d.css(u));
},
}),
T.fn.extend({
offset: function (e){
if(arguments.length)
return void 0===e
? this
: this.each(function (t){
T.offset.setOffset(this, e, t);
});
var t,
n,
i=this[0];
if(!i) return;
if(!i.getClientRects().length) return { top: 0, left: 0 };
return (
(t=i.getBoundingClientRect()),
(n=i.ownerDocument.defaultView),
{
top: t.top + n.pageYOffset,
left: t.left + n.pageXOffset,
}
);
},
position: function (){
if(!this[0]) return;
var t,
e,
n,
i=this[0],
o={ top: 0, left: 0 };
if('fixed'===T.css(i, 'position'))
e=i.getBoundingClientRect();
else {
for (
e=this.offset(),
n=i.ownerDocument,
t=i.offsetParent||n.documentElement;
t &&
(t===n.body||t===n.documentElement) &&
'static'===T.css(t, 'position');
)
t=t.parentNode;
t &&
t!==i &&
1===t.nodeType &&
(((o=T(t).offset()).top +=T.css(t,
'borderTopWidth',
!0,
)),
(o.left +=T.css(t, 'borderLeftWidth', !0)));
}
return {
top: e.top - o.top - T.css(i, 'marginTop', !0),
left: e.left - o.left - T.css(i, 'marginLeft', !0),
};},
offsetParent: function (){
return this.map(function (){
for (
var t=this.offsetParent;
t&&'static'===T.css(t, 'position');
)
t=t.offsetParent;
return t||yt;
});
},
}),
T.each({ scrollLeft: 'pageXOffset', scrollTop: 'pageYOffset' },
function (e, o){
var s='pageYOffset'===o;
T.fn[e]=function (t){
return R(
this,
function (t, e, n){
var i;
if((y(t)
? (i=t)
: 9===t.nodeType&&(i=t.defaultView),
void 0===n)
)
return i ? i[o]:t[e];
i
? i.scrollTo(s ? i.pageXOffset:n,
s ? n:i.pageYOffset,
)
: (t[e]=n);
},
e,
t,
arguments.length,
);
};},
),
T.each(['top', 'left'], function (t, n){
T.cssHooks[n]=qt(v.pixelPosition, function (t, e){
if(e)
return (
(e=Ht(t, n)),
jt.test(e) ? T(t).position()[n] + 'px':e
);
});
}),
T.each({ Height: 'height', Width: 'width' }, function (r, a){
T.each({ padding: 'inner' + r, content: a, '': 'outer' + r },
function (i, s){
T.fn[s]=function (t, e){
var n =
arguments.length&&(i||'boolean'!=typeof t),
o=i||(!0===t||!0===e ? 'margin':'border');
return R(
this,
function (t, e, n){
var i;
if(y(t))
return 0===s.indexOf('outer')
? t['inner' + r]
: t.document.documentElement['client' + r];
if(9===t.nodeType)
return (
(i=t.documentElement),
Math.max(t.body['scroll' + r],
i['scroll' + r],
t.body['offset' + r],
i['offset' + r],
i['client' + r],
)
);
return void 0===n
? T.css(t, e, o)
: T.style(t, e, n, o);
},
a,
n ? t:void 0,
n,
);
};},
);
}),
T.each('blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu'.split(' ',
),
function (t, n){
T.fn[n]=function (t, e){
return 0 < arguments.length
? this.on(n, null, t, e)
: this.trigger(n);
};},
),
T.fn.extend({
hover: function (t, e){
return this.mouseenter(t).mouseleave(e||t);
},
}),
T.fn.extend({
bind: function (t, e, n){
return this.on(t, null, e, n);
},
unbind: function (t, e){
return this.off(t, null, e);
},
delegate: function (t, e, n, i){
return this.on(e, t, n, i);
},
undelegate: function (t, e, n){
return 1===arguments.length
? this.off(t, '**')
: this.off(e, t||'**', n);
},
}),
(T.proxy=function (t, e){
var n, i, o;
if(('string'==typeof e&&((n=t[e]), (e=t), (t=n)),
!b(t))
)
return;
return (
(i=a.call(arguments, 2)),
((o=function (){
return t.apply(e||this, i.concat(a.call(arguments)));
}).guid=t.guid =
t.guid||T.guid++),
o
);
}),
(T.holdReady=function (t){
t ? T.readyWait++:T.ready(!0);
}),
(T.isArray=Array.isArray),
(T.parseJSON=JSON.parse),
(T.nodeName=E),
(T.isFunction=b),
(T.isWindow=y),
(T.camelCase=X),
(T.type=w),
(T.now=Date.now),
(T.isNumeric=function (t){
var e=T.type(t);
return (
('number'===e||'string'===e) &&
!isNaN(t - parseFloat(t))
);
}),
'function'==typeof Ve &&
Ve.amd &&
Ve('jquery', [], function (){
return T;
}));
var Xe=C.jQuery,
Ye=C.$;
return (
(T.noConflict=function (t){
return (
C.$===T&&(C.$=Ye),
t&&C.jQuery===T&&(C.jQuery=Xe),
T
);
}),
t||(C.jQuery=C.$=T),
T
);
}),
o('undefined'!=typeof $ ? $:window.$));
}).call(t, void 0, void 0, void 0, void 0, function t(e){
n.exports=e;
});
}).call(this,
'undefined'!=typeof global
? global
: 'undefined'!=typeof self
? self
: 'undefined'!=typeof window
? window
: {},
);
},
{},
],
21: [
function (t, o, s){
!(function (t){
var e;
if(('function'==typeof define&&define.amd&&(define(t), (e = !0)),
'object'==typeof s&&((o.exports=t()), (e = !0)),
!e)
){
var n=window.Cookies,
i=(window.Cookies=t());
i.noConflict=function (){
return ((window.Cookies=n), i);
};}})(function (){
function a(){
for (var t=0, e={}; t < arguments.length; t++){
var n=arguments[t];
for (var i in n) e[i]=n[i];
}
return e;
}
function c(t){
return t.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
}
return (function t(l){
function r(){}
function n(t, e, n){
if('undefined'==typeof document) return;
('number'==typeof (n=a({ path: '/' }, r.defaults, n)).expires &&
(n.expires=new Date(1 * new Date() + 864e5 * n.expires)),
(n.expires=n.expires ? n.expires.toUTCString():''));
try {
var i=JSON.stringify(e);
/^[\{\[]/.test(i)&&(e=i);
} catch (t){}
((e=l.write
? l.write(e, t)
: encodeURIComponent(String(e)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,
decodeURIComponent,
)),
(t=encodeURIComponent(String(t))
.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)
.replace(/[\(\)]/g, escape)));
var o='';
for (var s in n){
if(!n[s]) continue;
if(((o +='; ' + s), !0===n[s])) continue;
o +='=' + n[s].split(';')[0];
}
return (document.cookie=t + '=' + e + o);
}
function e(t, e){
if('undefined'==typeof document) return;
for (
var n={},
i=document.cookie ? document.cookie.split('; '):[],
o=0;
o < i.length;
o++
){
var s=i[o].split('='),
r=s.slice(1).join('=');
e||'"'!==r.charAt(0)||(r=r.slice(1, -1));
try {
var a=c(s[0]);
if(((r=(l.read||l)(r, a)||c(r)), e))
try {
r=JSON.parse(r);
} catch (t){}
if(((n[a]=r), t===a)) break;
} catch (t){}}
return t ? n[t]:n;
}
return (
(r.set=n),
(r.get=function (t){
return e(t, !1);
}),
(r.getJSON=function (t){
return e(t, !0);
}),
(r.remove=function (t, e){
n(t, '', a(e, { expires: -1 }));
}),
(r.defaults={}),
(r.withConverter=t),
r
);
})(function (){});
});
},
{},
],
22: [
function (t, e, n){
var i, o;
((i=window),
(o=(function t(i, d){
'use strict';
if(!d.getElementsByClassName) return;
var u,
f,
h=d.documentElement,
s=i.Date,
o=i.HTMLPictureElement,
r='addEventListener',
p='getAttribute',
e=i[r],
g=i.setTimeout,
n=i.requestAnimationFrame||g,
a=i.requestIdleCallback,
m=/^picture$/i,
l=['load', 'error', 'lazyincluded', '_lazyloaded'],
c={},
v=Array.prototype.forEach,
b=function (t, e){
return (
c[e]||(c[e]=new RegExp('(\\s|^)' + e + '(\\s|$)')),
c[e].test(t[p]('class')||'')&&c[e]
);
},
y=function (t, e){
b(t, e) ||
t.setAttribute('class',
(t[p]('class')||'').trim() + ' ' + e,
);
},
x=function (t, e){
var n;
(n=b(t, e)) &&
t.setAttribute('class',
(t[p]('class')||'').replace(n, ' '),
);
},
w=function (e, n, t){
var i=t ? r:'removeEventListener';
(t&&w(e, n),
l.forEach(function (t){
e[i](t, n);
}));
},
_=function (t, e, n, i, o){
var s=d.createEvent('CustomEvent');
return (
n||(n={}),
(n.instance=u),
s.initCustomEvent(e, !i, !o, n),
t.dispatchEvent(s),
s
);
},
C=function (t, e){
var n;
!o&&(n=i.picturefill||f.pf)
? (e &&
e.src &&
!t[p]('srcset') &&
t.setAttribute('srcset', e.src),
n({ reevaluate: !0, elements: [t] }))
: e&&e.src&&(t.src=e.src);
},
S=function (t, e){
return (getComputedStyle(t, null)||{})[e];
},
T=function (t, e, n){
for (
n=n||t.offsetWidth;
n < f.minSize&&e && !t._lazysizesWidth;
)
((n=e.offsetWidth), (e=e.parentNode));
return n;
},
k =
((A=[]),
(L=[]),
(D=A),
(M=function (){
var t=D;
for (D=A.length ? L:A, z = !($ = !0); t.length;)
t.shift()();
$ = !1;
}),
(N=function (t, e){
$&&!e
? t.apply(this, arguments)
: (D.push(t), z||((z = !0), (d.hidden ? g:n)(M)));
}),
(N._lsFlush=M),
N),
E=function (n, t){
return t
? function (){
k(n);
}
: function (){
var t=this,
e=arguments;
k(function (){
n.apply(t, e);
});
};},
P=function (t){
var e,
n,
i=function (){
((e=null), t());
},
o=function (){
var t=s.now() - n;
t < 99 ? g(o, 99 - t):(a||i)(i);
};
return function (){
((n=s.now()), e||(e=g(o, 99)));
};};
var $, z, A, L, D, M, N;
!(function (){
var t,
e={
lazyClass: 'lazyload',
loadedClass: 'lazyloaded',
loadingClass: 'lazyloading',
preloadClass: 'lazypreload',
errorClass: 'lazyerror',
autosizesClass: 'lazyautosizes',
srcAttr: 'data-src',
srcsetAttr: 'data-srcset',
sizesAttr: 'data-sizes',
minSize: 40,
customMedia: {},
init: !0,
expFactor: 1.5,
hFac: 0.8,
loadMode: 2,
loadHidden: !0,
ricTimeout: 0,
throttleDelay: 125,
};
for (t in ((f=i.lazySizesConfig||i.lazysizesConfig||{}), e))
t in f||(f[t]=e[t]);
((i.lazySizesConfig=f),
g(function (){
f.init&&F();
}));
})();
var I =
((dt=/^img$/i),
(ut=/^iframe$/i),
(ft =
'onscroll' in i&&!/(gle|ing)bot/.test(navigator.userAgent)),
(ht=0),
(pt=0),
(gt=-1),
(mt=function (t){
(pt--,
t&&t.target&&w(t.target, mt),
(!t||pt < 0||!t.target)&&(pt=0));
}),
(vt=function (t, e){
var n,
i=t,
o =
'hidden'==S(d.body, 'visibility') ||
('hidden'!=S(t.parentNode, 'visibility') &&
'hidden'!=S(t, 'visibility'));
for (
Q -=e, J +=e, K -=e, Z +=e;
o&&(i=i.offsetParent)&&i!=d.body&&i!=h;
)
(o=0 < (S(i, 'opacity')||1)) &&
'visible'!=S(i, 'overflow') &&
((n=i.getBoundingClientRect()),
(o =
Z > n.left &&
K < n.right &&
J > n.top - 1 &&
Q < n.bottom + 1));
return o;
}),
(bt=function (){
var t,
e,
n,
i,
o,
s,
r,
a,
l,
c=u.elements;
if((X=f.loadMode)&&pt < 8&&(t=c.length)){
((e=0),
gt++,
null==et &&
('expand' in f ||
(f.expand =
500 < h.clientHeight&&500 < h.clientWidth
? 500
: 370),
(tt=f.expand),
(et=tt * f.expFactor)),
ht < et&&pt < 1&&2 < gt&&2 < X&&!d.hidden
? ((ht=et), (gt=0))
: (ht=1 < X&&1 < gt&&pt < 6 ? tt:0));
for (; e < t; e++){
if(!c[e]||c[e]._lazyRace) continue;
if(!ft){
Tt(c[e]);
continue;
}
if((((a=c[e][p]('data-expand'))&&(s=1 * a)) ||
(s=ht),
l!==s &&
((V=innerWidth + s * nt),
(G=innerHeight + s),
(r=-1 * s),
(l=s)),
(n=c[e].getBoundingClientRect()),
(J=n.bottom) >=r &&
(Q=n.top) <=G &&
(Z=n.right) >=r * nt &&
(K=n.left) <=V &&
(J||Z || K||Q) &&
(f.loadHidden||'hidden'!=S(c[e], 'visibility')) &&
((W&&pt < 3&&!a&&(X < 3||gt < 4)) ||
vt(c[e], s)))
){
if((Tt(c[e]), (o = !0), 9 < pt)) break;
} else
!o &&
W &&
!i &&
pt < 4 &&
gt < 4 &&
2 < X &&
(B[0]||f.preloadAfterLoad) &&
(B[0] ||
(!a &&
(J ||
Z ||
K ||
Q ||
'auto'!=c[e][p](f.sizesAttr)))) &&
(i=B[0]||c[e]);
}
i&&!o&&Tt(i);
}}),
(it=bt),
(st=0),
(rt=f.throttleDelay),
(at=f.ricTimeout),
(lt=function (){
((ot = !1), (st=s.now()), it());
}),
(ct =
a&&49 < at
? function (){
(a(lt, { timeout: at }),
at!==f.ricTimeout&&(at=f.ricTimeout));
}
: E(function (){
g(lt);
}, !0)),
(yt=function (t){
var e;
if(((t = !0===t)&&(at=33), ot)) return;
((ot = !0),
(e=rt - (s.now() - st)) < 0&&(e=0),
t||e < 9 ? ct():g(ct, e));
}),
(xt=function (t){
(y(t.target, f.loadedClass),
x(t.target, f.loadingClass),
w(t.target, _t),
_(t.target, 'lazyloaded'));
}),
(wt=E(xt)),
(_t=function (t){
wt({ target: t.target });
}),
(Ct=function (t){
var e,
n=t[p](f.srcsetAttr);
((e=f.customMedia[t[p]('data-media')||t[p]('media')]) &&
t.setAttribute('media', e),
n&&t.setAttribute('srcset', n));
}),
(St=E(function (t, e, n, i, o){
var s, r, a, l, c, d;
((c=_(t, 'lazybeforeunveil', e)).defaultPrevented ||
(i &&
(n ? y(t, f.autosizesClass):t.setAttribute('sizes', i)),
(r=t[p](f.srcsetAttr)),
(s=t[p](f.srcAttr)),
o &&
((a=t.parentNode), (l=a&&m.test(a.nodeName||''))),
(d=e.firesLoad||('src' in t&&(r||s || l))),
(c={ target: t }),
d &&
(w(t, mt, !0),
clearTimeout(U),
(U=g(mt, 2500)),
y(t, f.loadingClass),
w(t, _t, !0)),
l&&v.call(a.getElementsByTagName('source'), Ct),
r
? t.setAttribute('srcset', r)
: s &&
!l &&
(ut.test(t.nodeName)
? (function (e, n){
try {
e.contentWindow.location.replace(n);
} catch (t){
e.src=n;
}})(t, s)
: (t.src=s)),
o&&(r||l)&&C(t, { src: s })),
t._lazyRace&&delete t._lazyRace,
x(t, f.lazyClass),
k(function (){
(!d||(t.complete&&1 < t.naturalWidth)) &&
(d ? mt(c):pt--, xt(c));
}, !0));
})),
(Tt=function (t){
var e,
n=dt.test(t.nodeName),
i=n&&(t[p](f.sizesAttr)||t[p]('sizes')),
o='auto'==i;
if((o||!W) &&
n &&
(t[p]('src')||t.srcset) &&
!t.complete &&
!b(t, f.errorClass) &&
b(t, f.lazyClass)
)
return;
((e=_(t, 'lazyunveilread').detail),
o&&j.updateElem(t, !0, t.offsetWidth),
(t._lazyRace = !0),
pt++,
St(t, e, o, i, n));
}),
(kt=function (){
if(W) return;
if(s.now() - Y < 999) return void g(kt, 999);
var t=P(function (){
((f.loadMode=3), yt());
});
((W = !0),
(f.loadMode=3),
yt(),
e(
'scroll',
function (){
(3==f.loadMode&&(f.loadMode=2), t());
},
!0,
));
}),
{
_: function (){
((Y=s.now()),
(u.elements=d.getElementsByClassName(f.lazyClass)),
(B=d.getElementsByClassName(f.lazyClass + ' ' + f.preloadClass,
)),
(nt=f.hFac),
e('scroll', yt, !0),
e('resize', yt, !0),
i.MutationObserver
? new MutationObserver(yt).observe(h, {
childList: !0,
subtree: !0,
attributes: !0,
})
: (h[r]('DOMNodeInserted', yt, !0),
h[r]('DOMAttrModified', yt, !0),
setInterval(yt, 999)),
e('hashchange', yt, !0),
[
'focus',
'mouseover',
'click',
'load',
'transitionend',
'animationend',
'webkitAnimationEnd',
].forEach(function (t){
d[r](t, yt, !0);
}),
/d$|^c/.test(d.readyState)
? kt()
: (e('load', kt),
d[r]('DOMContentLoaded', yt),
g(kt, 2e4)),
u.elements.length ? (bt(), k._lsFlush()):yt());
},
checkElems: yt,
unveil: Tt,
}),
j =
((H=E(function (t, e, n, i){
var o, s, r;
if(((t._lazysizesWidth=i),
(i +='px'),
t.setAttribute('sizes', i),
m.test(e.nodeName||''))
)
for (
o=e.getElementsByTagName('source'), s=0, r=o.length;
s < r;
s++
)
o[s].setAttribute('sizes', i);
n.detail.dataAttr||C(t, n.detail);
})),
(q=function (t, e, n){
var i,
o=t.parentNode;
o &&
((n=T(t, o, n)),
(i=_(t, 'lazybeforesizes', { width: n, dataAttr: !!e }))
.defaultPrevented ||
((n=i.detail.width) &&
n!==t._lazysizesWidth &&
H(t, o, i, n)));
}),
(R=P(function (){
var t,
e=O.length;
if(e) for (t=0; t < e; t++) q(O[t]);
})),
{
_: function (){
((O=d.getElementsByClassName(f.autosizesClass)),
e('resize', R));
},
checkElems: R,
updateElem: q,
}),
F=function (){
F.i||((F.i = !0), j._(), I._());
};
var O, H, q, R;
var B,
W,
U,
X,
Y,
V,
G,
Q,
K,
Z,
J,
tt,
et,
nt,
it,
ot,
st,
rt,
at,
lt,
ct,
dt,
ut,
ft,
ht,
pt,
gt,
mt,
vt,
bt,
yt,
xt,
wt,
_t,
Ct,
St,
Tt,
kt;
return (u={
cfg: f,
autoSizer: j,
loader: I,
init: F,
uP: C,
aC: y,
rC: x,
hC: b,
fire: _,
gW: T,
rAF: k,
});
})(i, i.document)),
(i.lazySizes=o),
'object'==typeof e&&e.exports&&(e.exports=o));
},
{},
],
23: [
function (t, e, n){
var i, o, s;
((i=window),
(s=function (){
(o(i.lazySizes), i.removeEventListener('lazyunveilread', s, !0));
}),
(o=(o=function (t, u, f){
'use strict';
if(!t.addEventListener) return;
var h=/\s+/g,
p=/\s*\|\s+|\s+\|\s*/g,
g=/^(.+?)(?:\s+\[\s*(.+?)\s*\])(?:\s+\[\s*(.+?)\s*\])?$/,
i=/^\s*\(*\s*type\s*:\s*(.+?)\s*\)*\s*$/,
s=/\(|\)|'/,
r={ contain: 1, cover: 1 },
m=function (t, e){
if(e){
var n=e.match(i);
n&&n[1]
? t.setAttribute('type', n[1])
: t.setAttribute('media',
lazySizesConfig.customMedia[e]||e,
);
}},
v=function (t){
if(!t.target._lazybgset) return;
var e=t.target,
n=e._lazybgset,
i=e.currentSrc||e.src;
if(i){
var o=f.fire(n, 'bgsetproxy', {
src: i,
useSrc: s.test(i) ? JSON.stringify(i):i,
});
o.defaultPrevented ||
(n.style.backgroundImage='url(' + o.detail.useSrc + ')');
}
e._lazybgsetLoading &&
(f.fire(n, '_lazyloaded', {}, !1, !0),
delete e._lazybgsetLoading);
};
(addEventListener('lazybeforeunveil', function (t){
var e, n, i, o, s, r, a, l, c, d;
if(t.defaultPrevented ||
!(e=t.target.getAttribute('data-bgset'))
)
return;
((i=t.target),
((n=u.createElement('img')).alt=''),
(n._lazybgsetLoading = !0),
(t.detail.firesLoad = !0),
(o=e),
(s=i),
(r=n),
(a=u.createElement('picture')),
(l=s.getAttribute(lazySizesConfig.sizesAttr)),
(c=s.getAttribute('data-ratio')),
(d=s.getAttribute('data-optimumx')),
s._lazybgset &&
s._lazybgset.parentNode==s &&
s.removeChild(s._lazybgset),
Object.defineProperty(r, '_lazybgset', {
value: s,
writable: !0,
}),
Object.defineProperty(s, '_lazybgset', {
value: a,
writable: !0,
}),
(o=o.replace(h, ' ').split(p)),
(a.style.display='none'),
(r.className=lazySizesConfig.lazyClass),
1!=o.length||l || (l='auto'),
o.forEach(function (t){
var e,
n=u.createElement('source');
(l&&'auto'!=l&&n.setAttribute('sizes', l),
(e=t.match(g))
? (n.setAttribute(lazySizesConfig.srcsetAttr, e[1]),
m(n, e[2]),
m(n, e[3]))
: n.setAttribute(lazySizesConfig.srcsetAttr, t),
a.appendChild(n));
}),
l &&
(r.setAttribute(lazySizesConfig.sizesAttr, l),
s.removeAttribute(lazySizesConfig.sizesAttr),
s.removeAttribute('sizes')),
d&&r.setAttribute('data-optimumx', d),
c&&r.setAttribute('data-ratio', c),
a.appendChild(r),
s.appendChild(a),
setTimeout(function (){
(f.loader.unveil(n),
f.rAF(function (){
(f.fire(n, '_lazyloaded', {}, !0, !0),
n.complete&&v({ target: n }));
}));
}));
}),
u.addEventListener('load', v, !0),
t.addEventListener('lazybeforesizes',
function (t){
if(t.detail.instance!=f) return;
if(t.target._lazybgset&&t.detail.dataAttr){
var e=t.target._lazybgset,
n =
((i=e),
(o=(
getComputedStyle(i)||{
getPropertyValue: function (){},
}
).getPropertyValue('background-size')),
!r[o] &&
r[i.style.backgroundSize] &&
(o=i.style.backgroundSize),
o);
r[n] &&
((t.target._lazysizesParentFit=n),
f.rAF(function (){
(t.target.setAttribute('data-parent-fit', n),
t.target._lazysizesParentFit &&
delete t.target._lazysizesParentFit);
}));
}
var i, o;
},
!0,
),
u.documentElement.addEventListener('lazybeforesizes',
function (t){
if(t.defaultPrevented ||
!t.target._lazybgset ||
t.detail.instance!=f
)
return;
var e, n;
t.detail.width =
((e=t.target._lazybgset),
(n=f.gW(e, e.parentNode)),
(!e._lazysizesWidth||n > e._lazysizesWidth) &&
(e._lazysizesWidth=n),
e._lazysizesWidth);
},
));
}).bind(null, i, i.document)),
'object'==typeof e&&e.exports
? o(t('lazysizes'))
: i.lazySizes
? s()
: i.addEventListener('lazyunveilread', s, !0));
},
{ lazysizes: 22 },
],
24: [
function (t, e, n){
var i, o, s;
((i=window),
(s=function (){
(o(i.lazySizes), i.removeEventListener('lazyunveilread', s, !0));
}),
(o=(o=function (t, l, c){
'use strict';
var d,
e=l.createElement('img');
!('srcset' in e) ||
'sizes' in e ||
t.HTMLPictureElement ||
((d=/^picture$/i),
l.addEventListener('lazybeforeunveil', function (t){
if(t.detail.instance!=c) return;
var e, n, i, o, s, r, a;
if(t.defaultPrevented ||
lazySizesConfig.noIOSFix ||
!(e=t.target) ||
!(i=e.getAttribute(lazySizesConfig.srcsetAttr)) ||
!(n=e.parentNode) ||
(!(s=d.test(n.nodeName||'')) &&
!(o =
e.getAttribute('sizes') ||
e.getAttribute(lazySizesConfig.sizesAttr)))
)
return;
((r=s ? n:l.createElement('picture')),
e._lazyImgSrc ||
Object.defineProperty(e, '_lazyImgSrc', {
value: l.createElement('source'),
writable: !0,
}),
(a=e._lazyImgSrc),
o&&a.setAttribute('sizes', o),
a.setAttribute(lazySizesConfig.srcsetAttr, i),
e.setAttribute('data-pfsrcset', i),
e.removeAttribute(lazySizesConfig.srcsetAttr),
s||(n.insertBefore(r, e), r.appendChild(e)),
r.insertBefore(a, e));
}));
}).bind(null, i, i.document)),
'object'==typeof e&&e.exports
? o(t('lazysizes'))
: i.lazySizes
? s()
: i.addEventListener('lazyunveilread', s, !0));
},
{ lazysizes: 22 },
],
25: [
function (t, e, n){
var i, o, s;
((i=window),
(s=function (){
(o(i.lazySizes), i.removeEventListener('lazyunveilread', s, !0));
}),
(o=(o=function (l, t, n){
'use strict';
if(!l.addEventListener) return;
var c=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,
r=/parent-fit["']*\s*:\s*["']*(contain|cover|width)/,
a=/parent-container["']*\s*:\s*["']*(.+?)(?=(\s|$|,|'|"|;))/,
d=/^picture$/i,
u={
getParent: function (t, e){
var n=t,
i=t.parentNode;
return (
(e&&'prev'!=e) ||
!i ||
!d.test(i.nodeName||'') ||
(i=i.parentNode),
'self'!=e &&
(n =
'prev'==e
? t.previousElementSibling
: (e &&
(i.closest||l.jQuery) &&
(i.closest
? i.closest(e)
: jQuery(i).closest(e)[0])) ||
i),
n
);
},
getFit: function (t){
var e,
n,
i=getComputedStyle(t, null)||{},
o=i.content||i.fontFamily,
s={
fit:
t._lazysizesParentFit ||
t.getAttribute('data-parent-fit'),
};
return (
!s.fit&&o && (e=o.match(r))&&(s.fit=e[1]),
s.fit
? (!(n =
t._lazysizesParentContainer ||
t.getAttribute('data-parent-container')) &&
o &&
(e=o.match(a)) &&
(n=e[1]),
(s.parent=u.getParent(t, n)))
: (s.fit=i.objectFit),
s
);
},
getImageRatio: function (t){
var e,
n,
i,
o,
s,
r=t.parentNode,
a =
r&&d.test(r.nodeName||'')
? r.querySelectorAll('source, img')
: [t];
for (e=0; e < a.length; e++)
if(((n =
(t=a[e]).getAttribute(lazySizesConfig.srcsetAttr) ||
t.getAttribute('srcset') ||
t.getAttribute('data-pfsrcset') ||
t.getAttribute('data-risrcset') ||
''),
(i=t._lsMedia||t.getAttribute('media')),
(i =
lazySizesConfig.customMedia[
t.getAttribute('data-media')||i
]||i),
n &&
(!i||((l.matchMedia&&matchMedia(i))||{}).matches))
){
!(o=parseFloat(t.getAttribute('data-aspectratio'))) &&
(s=n.match(c)) &&
(o='w'==s[2] ? s[1] / s[3]:s[3] / s[1]);
break;
}
return o;
},
calculateSize: function (t, e){
var n,
i,
o,
s,
r=this.getFit(t),
a=r.fit,
l=r.parent;
if('width'!=a &&
(('contain'!=a&&'cover'!=a) ||
!(o=this.getImageRatio(t)))
)
return e;
return (
l ? (e=l.clientWidth):(l=t),
(s=e),
'width'==a
? (s=e)
: 40 < (i=l.clientHeight) &&
(n=e / i) &&
(('cover'==a&&n < o) ||
('contain'==a&&o < n)) &&
(s=e * (o / n)),
s
);
},
};
((n.parentFit=u),
t.addEventListener('lazybeforesizes', function (t){
if(t.defaultPrevented||t.detail.instance!=n) return;
var e=t.target;
t.detail.width=u.calculateSize(e, t.detail.width);
}));
}).bind(null, i, i.document)),
'object'==typeof e&&e.exports
? o(t('lazysizes'))
: i.lazySizes
? s()
: i.addEventListener('lazyunveilread', s, !0));
},
{ lazysizes: 22 },
],
26: [
function (t, e, n){
var i, o, s;
((i=window),
(s=function (){
(o(i.lazySizes), i.removeEventListener('lazyunveilread', s, !0));
}),
(o=(o=function (u, o, f){
'use strict';
var i,
s,
r,
a,
e,
n,
l,
h,
p,
c,
d,
g,
m,
v,
t,
b,
y=(f&&f.cfg)||u.lazySizesConfig,
x=o.createElement('img'),
w='sizes' in x&&'srcset' in x,
_=/\s+\d+h/g,
C =
((s=/\s+(\d+)(w|h)\s+(\d+)(w|h)/),
(r=Array.prototype.forEach),
function (){
var t=o.createElement('img'),
n=function (t){
var e,
n,
i=t.getAttribute(lazySizesConfig.srcsetAttr);
i &&
((n=i.match(s)) &&
(e='w'==n[2] ? n[1] / n[3]:n[3] / n[1]) &&
t.setAttribute('data-aspectratio', e),
t.setAttribute(lazySizesConfig.srcsetAttr,
i.replace(_, ''),
));
},
e=function (t){
var e=t.target.parentNode;
(e &&
'PICTURE'==e.nodeName &&
r.call(e.getElementsByTagName('source'), n),
n(t.target));
},
i=function (){
t.currentSrc &&
o.removeEventListener('lazybeforeunveil', e);
};
(o.addEventListener('lazybeforeunveil', e),
(t.onload=i),
(t.onerror=i),
(t.srcset='data:,a 1w 1h'),
t.complete&&i());
});
if((y||((y={}), (u.lazySizesConfig=y)),
y.supportsType ||
(y.supportsType=function (t){
return !t;
}),
u.picturefill||y.pf)
)
return;
if(u.HTMLPictureElement&&w)
return (
o.msElementsFromPoint &&
C(navigator.userAgent.match(/Edge\/(\d+)/)),
void (y.pf=function (){})
);
((y.pf=function (t){
var e, n;
if(u.picturefill) return;
for (e=0, n=t.elements.length; e < n; e++) i(t.elements[e]);
}),
(h=function (t, e){
return t.w - e.w;
}),
(p=/^\s*\d+\.*\d*px\s*$/),
(e=/(([^,\s].[^\s]+)\s+(\d+)w)/g),
(n=/\s/),
(l=function (t, e, n, i){
a.push({ c: e, u: n, w: 1 * i });
}),
(d=function (){
if(d.init) return;
var t, n, e;
((d.init = !0),
addEventListener(
'resize',
((n=o.getElementsByClassName('lazymatchmedia')),
(e=function (){
var t, e;
for (t=0, e=n.length; t < e; t++) i(n[t]);
}),
function (){
(clearTimeout(t), (t=setTimeout(e, 66)));
}),
));
}),
(g=function (t, e){
var n,
i=t.getAttribute('srcset')||t.getAttribute(y.srcsetAttr);
(!i &&
e &&
(i=t._lazypolyfill
? t._lazypolyfill._set
: t.getAttribute(y.srcAttr)||t.getAttribute('src')),
(t._lazypolyfill&&t._lazypolyfill._set==i) ||
((n=c(i||'')),
e &&
t.parentNode &&
((n.isPicture =
'PICTURE'==t.parentNode.nodeName.toUpperCase()),
n.isPicture &&
u.matchMedia &&
(f.aC(t, 'lazymatchmedia'), d())),
(n._set=i),
Object.defineProperty(t, '_lazypolyfill', {
value: n,
writable: !0,
})));
}),
(m=function (t){
if(!u.matchMedia) return !t;
return (m=function (t){
return !t||(matchMedia(t)||{}).matches;
})(t);
}),
(v=function (t){
var e, n, i, o, s, r, a, l, c, d;
if((g((o=t), !0), (s=o._lazypolyfill).isPicture))
for (
n=0,
i=(e=t.parentNode.getElementsByTagName('source'))
.length;
n < i;
n++
)
if(y.supportsType(e[n].getAttribute('type'), t) &&
m(e[n].getAttribute('media'))
){
((o=e[n]), g(o), (s=o._lazypolyfill));
break;
}
return (
1 < s.length
? ((a=o.getAttribute('sizes')||''),
(a =
(p.test(a)&&parseInt(a, 10)) ||
f.gW(t, t.parentNode)),
(s.d =
((l=t),
(c=u.devicePixelRatio||1),
(d=f.getX&&f.getX(l)),
Math.min(d||c, 2.5, c))),
!s.src||!s.w||s.w < a
? ((s.w=a),
(r=(function (t){
for (
var e, n, i=t.length, o=t[i - 1], s=0;
s < i;
s++
)
if((((o=t[s]).d=o.w / t.w), o.d >=t.d)){
!o.cached &&
(e=t[s - 1]) &&
e.d > t.d - 0.13 * Math.pow(t.d, 2.2) &&
((n=Math.pow(e.d - 0.6, 1.6)),
e.cached&&(e.d +=0.15 * n),
e.d + (o.d - t.d) * n > t.d&&(o=e));
break;
}
return o;
})(s.sort(h))),
(s.src=r))
: (r=s.src))
: (r=s[0]),
r
);
}),
((t=function (t){
if(w &&
t.parentNode &&
'PICTURE'!=t.parentNode.nodeName.toUpperCase()
)
return;
var e=v(t);
e &&
e.u &&
t._lazypolyfill.cur!=e.u &&
((t._lazypolyfill.cur=e.u),
(e.cached = !0),
t.setAttribute(y.srcAttr, e.u),
t.setAttribute('src', e.u));
}).parse=c =
function (t){
return (
(a=[]),
(t=t.trim()).replace(_, '').replace(e, l),
a.length ||
!t ||
n.test(t) ||
a.push({ c: t, u: t, w: 99 }),
a
);
}),
(i=t),
y.loadedClass &&
y.loadingClass &&
((b=[]),
[
'img[sizes$="px"][srcset].',
'picture > img:not([srcset]).',
].forEach(function (t){
(b.push(t + y.loadedClass), b.push(t + y.loadingClass));
}),
y.pf({ elements: o.querySelectorAll(b.join(', ')) })));
}).bind(null, i, i.document)),
'object'==typeof e&&e.exports
? o(t('lazysizes'), t('../fix-ios-sizes/fix-ios-sizes'))
: i.lazySizes
? s()
: i.addEventListener('lazyunveilread', s, !0));
},
{ '../fix-ios-sizes/fix-ios-sizes': 24, lazysizes: 22 },
],
27: [
function (t, e, n){
var i, o;
((i=window),
(o=function t(a, l){
'use strict';
function e(t){
this.bindTap(t);
}
var n=(e.prototype=Object.create(l.prototype));
return (
(n.bindTap=function (t){
if(!t) return;
(this.unbindTap(),
(this.tapElement=t),
this._bindStartEvent(t, !0));
}),
(n.unbindTap=function (){
if(!this.tapElement) return;
(this._bindStartEvent(this.tapElement, !0),
delete this.tapElement);
}),
(n.pointerUp=function (t, e){
if(this.isIgnoringMouseUp&&'mouseup'==t.type) return;
var n=l.getPointerPoint(e),
i=this.tapElement.getBoundingClientRect(),
o=a.pageXOffset,
s=a.pageYOffset;
if((n.x >=i.left + o &&
n.x <=i.right + o &&
n.y >=i.top + s &&
n.y <=i.bottom + s &&
this.emitEvent('tap', [t, e]),
'mouseup'!=t.type)
){
this.isIgnoringMouseUp = !0;
var r=this;
setTimeout(function (){
delete r.isIgnoringMouseUp;
}, 400);
}}),
(n.destroy=function (){
(this.pointerDone(), this.unbindTap());
}),
e
);
}),
'function'==typeof define&&define.amd
? define(['unipointer/unipointer'], function (t){
return o(i, t);
})
: 'object'==typeof e&&e.exports
? (e.exports=o(i, t('unipointer')))
: (i.TapListener=o(i, i.Unipointer)));
},
{ unipointer: 29 },
],
28: [
function (t, e, n){
var i, o;
((i=window),
(o=function t(s, e){
'use strict';
function n(){}
var i=(n.prototype=Object.create(e.prototype));
((i.bindHandles=function (){
this._bindHandles(!0);
}),
(i.unbindHandles=function (){
this._bindHandles(!1);
}),
(i._bindHandles=function (t){
for (
var e=(t=void 0===t||t)
? 'addEventListener'
: 'removeEventListener',
n=t ? this._touchActionValue:'',
i=0;
i < this.handles.length;
i++
){
var o=this.handles[i];
(this._bindStartEvent(o, t),
o[e]('click', this),
s.PointerEvent&&(o.style.touchAction=n));
}}),
(i._touchActionValue='none'),
(i.pointerDown=function (t, e){
if(!this.okayPointerDown(t)) return;
((this.pointerDownPointer=e),
t.preventDefault(),
this.pointerDownBlur(),
this._bindPostStartEvents(t),
this.emitEvent('pointerDown', [t, e]));
}));
var o={ TEXTAREA: !0, INPUT: !0, SELECT: !0, OPTION: !0 },
r={
radio: !0,
checkbox: !0,
button: !0,
submit: !0,
image: !0,
file: !0,
};
return (
(i.okayPointerDown=function (t){
var e=o[t.target.nodeName],
n=r[t.target.type],
i = !e||n;
return (i||this._pointerReset(), i);
}),
(i.pointerDownBlur=function (){
var t=document.activeElement;
t&&t.blur&&t!=document.body&&t.blur();
}),
(i.pointerMove=function (t, e){
var n=this._dragPointerMove(t, e);
(this.emitEvent('pointerMove', [t, e, n]),
this._dragMove(t, e, n));
}),
(i._dragPointerMove=function (t, e){
var n={
x: e.pageX - this.pointerDownPointer.pageX,
y: e.pageY - this.pointerDownPointer.pageY,
};
return (
!this.isDragging &&
this.hasDragStarted(n) &&
this._dragStart(t, e),
n
);
}),
(i.hasDragStarted=function (t){
return 3 < Math.abs(t.x)||3 < Math.abs(t.y);
}),
(i.pointerUp=function (t, e){
(this.emitEvent('pointerUp', [t, e]),
this._dragPointerUp(t, e));
}),
(i._dragPointerUp=function (t, e){
this.isDragging ? this._dragEnd(t, e):this._staticClick(t, e);
}),
(i._dragStart=function (t, e){
((this.isDragging = !0),
(this.isPreventingClicks = !0),
this.dragStart(t, e));
}),
(i.dragStart=function (t, e){
this.emitEvent('dragStart', [t, e]);
}),
(i._dragMove=function (t, e, n){
if(!this.isDragging) return;
this.dragMove(t, e, n);
}),
(i.dragMove=function (t, e, n){
(t.preventDefault(), this.emitEvent('dragMove', [t, e, n]));
}),
(i._dragEnd=function (t, e){
((this.isDragging = !1),
setTimeout(
function (){
delete this.isPreventingClicks;
}.bind(this),
),
this.dragEnd(t, e));
}),
(i.dragEnd=function (t, e){
this.emitEvent('dragEnd', [t, e]);
}),
(i.onclick=function (t){
this.isPreventingClicks&&t.preventDefault();
}),
(i._staticClick=function (t, e){
if(this.isIgnoringMouseUp&&'mouseup'==t.type) return;
(this.staticClick(t, e),
'mouseup'!=t.type &&
((this.isIgnoringMouseUp = !0),
setTimeout(
function (){
delete this.isIgnoringMouseUp;
}.bind(this),
400,
)));
}),
(i.staticClick=function (t, e){
this.emitEvent('staticClick', [t, e]);
}),
(n.getPointerPoint=e.getPointerPoint),
n
);
}),
'function'==typeof define&&define.amd
? define(['unipointer/unipointer'], function (t){
return o(i, t);
})
: 'object'==typeof e&&e.exports
? (e.exports=o(i, t('unipointer')))
: (i.Unidragger=o(i, i.Unipointer)));
},
{ unipointer: 29 },
],
29: [
function (t, e, n){
var i, o;
((i=window),
(o=function t(o, e){
'use strict';
function n(){}
var i=(n.prototype=Object.create(e.prototype));
((i.bindStartEvent=function (t){
this._bindStartEvent(t, !0);
}),
(i.unbindStartEvent=function (t){
this._bindStartEvent(t, !1);
}),
(i._bindStartEvent=function (t, e){
var n=(e=void 0===e||e)
? 'addEventListener'
: 'removeEventListener',
i='mousedown';
(o.PointerEvent
? (i='pointerdown')
: 'ontouchstart' in o&&(i='touchstart'),
t[n](i, this));
}),
(i.handleEvent=function (t){
var e='on' + t.type;
this[e]&&this[e](t);
}),
(i.getTouch=function (t){
for (var e=0; e < t.length; e++){
var n=t[e];
if(n.identifier==this.pointerIdentifier) return n;
}}),
(i.onmousedown=function (t){
var e=t.button;
if(e&&0!==e&&1!==e) return;
this._pointerDown(t, t);
}),
(i.ontouchstart=function (t){
this._pointerDown(t, t.changedTouches[0]);
}),
(i.onpointerdown=function (t){
this._pointerDown(t, t);
}),
(i._pointerDown=function (t, e){
if(t.button||this.isPointerDown) return;
((this.isPointerDown = !0),
(this.pointerIdentifier =
void 0!==e.pointerId ? e.pointerId:e.identifier),
this.pointerDown(t, e));
}),
(i.pointerDown=function (t, e){
(this._bindPostStartEvents(t),
this.emitEvent('pointerDown', [t, e]));
}));
var s={
mousedown: ['mousemove', 'mouseup'],
touchstart: ['touchmove', 'touchend', 'touchcancel'],
pointerdown: ['pointermove', 'pointerup', 'pointercancel'],
};
return (
(i._bindPostStartEvents=function (t){
if(!t) return;
var e=s[t.type];
(e.forEach(function (t){
o.addEventListener(t, this);
}, this),
(this._boundPointerEvents=e));
}),
(i._unbindPostStartEvents=function (){
if(!this._boundPointerEvents) return;
(this._boundPointerEvents.forEach(function (t){
o.removeEventListener(t, this);
}, this),
delete this._boundPointerEvents);
}),
(i.onmousemove=function (t){
this._pointerMove(t, t);
}),
(i.onpointermove=function (t){
t.pointerId==this.pointerIdentifier &&
this._pointerMove(t, t);
}),
(i.ontouchmove=function (t){
var e=this.getTouch(t.changedTouches);
e&&this._pointerMove(t, e);
}),
(i._pointerMove=function (t, e){
this.pointerMove(t, e);
}),
(i.pointerMove=function (t, e){
this.emitEvent('pointerMove', [t, e]);
}),
(i.onmouseup=function (t){
this._pointerUp(t, t);
}),
(i.onpointerup=function (t){
t.pointerId==this.pointerIdentifier&&this._pointerUp(t, t);
}),
(i.ontouchend=function (t){
var e=this.getTouch(t.changedTouches);
e&&this._pointerUp(t, e);
}),
(i._pointerUp=function (t, e){
(this._pointerDone(), this.pointerUp(t, e));
}),
(i.pointerUp=function (t, e){
this.emitEvent('pointerUp', [t, e]);
}),
(i._pointerDone=function (){
(this._pointerReset(),
this._unbindPostStartEvents(),
this.pointerDone());
}),
(i._pointerReset=function (){
((this.isPointerDown = !1), delete this.pointerIdentifier);
}),
(i.pointerDone=function t(){}),
(i.onpointercancel=function (t){
t.pointerId==this.pointerIdentifier &&
this._pointerCancel(t, t);
}),
(i.ontouchcancel=function (t){
var e=this.getTouch(t.changedTouches);
e&&this._pointerCancel(t, e);
}),
(i._pointerCancel=function (t, e){
(this._pointerDone(), this.pointerCancel(t, e));
}),
(i.pointerCancel=function (t, e){
this.emitEvent('pointerCancel', [t, e]);
}),
(n.getPointerPoint=function (t){
return { x: t.pageX, y: t.pageY };}),
n
);
}),
'function'==typeof define&&define.amd
? define(['ev-emitter/ev-emitter'], function (t){
return o(i, t);
})
: 'object'==typeof e&&e.exports
? (e.exports=o(i, t('ev-emitter')))
: (i.Unipointer=o(i, i.EvEmitter)));
},
{ 'ev-emitter': 3 },
],
30: [
function (t, e, n){
'use strict';
t('./modules/svgIcons');
t('flickity');
(t('flickity-bg-lazyload'),
t('@fancyapps/fancybox'),
t('lazysizes'),
t('lazysizes/plugins/parent-fit/ls.parent-fit'),
t('lazysizes/plugins/bgset/ls.bgset'),
t('lazysizes/plugins/respimg/ls.respimg'),
t('./modules/accordion'),
t('./modules/smallMenu'),
t('./modules/stickyHeader'));
var l=(function t(e){
return e&&e.__esModule ? e:{ default: e };})(t('js-cookie'));
jQuery(document).ready(function (i){
(i('#alert-exit').on('click', function (){
(i('.footer__alert').css('display', 'none'),
l.default.set('alert', 'on'),
i('#copyright').removeClass('footer__copyright-alert-active'));
}),
l.default.get('alert') &&
(i('.footer__alert').css('display', 'none'),
i('#copyright').removeClass('footer__copyright-alert-active')));
var t=document.getElementById('email-button');
(null!=t &&
t.addEventListener('click', function (){
window.location.href='mailto:covid19@jonesradiology.com.au';
}),
i('#quick-links').on('change', function (){
var t=i(this).val();
t&&(window.location=t);
}),
i('.grid-mlos').on('click', function (t){
return (t.stopPropagation, !1);
}),
i('.geolocation__trigger').on('click', function (t){
(setGeoPermission(!0), tryGeo());
}),
i('#procedure-switcher') &&
i('#procedure-switcher').on('change', function (t){
window.location.href=i(this).val();
}),
i('.procedures-icons .icon-print') &&
i('.procedures-icons .icon-print').on('click', function (){
window.print();
}));
var o=function t(){
return (
'none'!=(function t(e, n){
return window
.getComputedStyle(document.querySelector(e), ':after')
.getPropertyValue(n);
})('body', 'content')
);
};
function n(){
var t=i(this),
e =
(i(this).closest('.procedure-square').data('id'), t.data('id')),
n=i(this.hash);
(i('.procedure-square--intro').hide(),
i('.procedure-square').removeClass('procedure-square--active'),
i('.procedure-square[data-id=' + e + ']').toggleClass('procedure-square--active',
),
o() ||
i('html, body').animate({ scrollTop: n.offset().top - 200 },
600,
));
}
var e=function t(){
var e=document.querySelectorAll('.js-togglePanel');
Array.prototype.forEach.call(e, function (t, e){
t.addEventListener('click', n);
});
};
if((e(),
(function t(){
i('#refine') &&
(i('#refine').on('click', function (t){
i('#refinement-modal').addClass('active');
}),
i('#finish-refine').on('click', function (t){
i('#refinement-modal').removeClass('active');
}));
})(),
i(window).on('resize',
(function t(i, o, s){
var r;
return function t(){
var e=this,
n=arguments;
(r ? clearTimeout(r):s&&i.apply(e, n),
(r=setTimeout(function t(){
(s||i.apply(e, n), (r=null));
}, o||100)));
};})(function (){
e();
}),
),
i('.page-template-page-doctors').length)
){
var s=window.location.search,
r=new URLSearchParams(s);
if(r.get('interest')){
var a=r.get('interest');
(i('#grid-doctors .card--doctor').hide(),
i('#grid-doctors .card--doctor.' + a).show(),
i('.interests-dropdown').val(a));
}}
(i('.interests-dropdown').on('change', function (t){
var e=i(this).val();
(i('#grid-doctors .card--doctor').hide(),
i('#grid-doctors .card--doctor.' + e).show());
}),
i('#doctors-reset').on('click', function (){
i('#doctors-filter-bar .interests-dropdown').prop('selectedIndex',
0,
);
var t=i('#doctors-filter-bar .interests-dropdown').val();
(i('#grid-doctors .card--doctor').hide(),
i('#grid-doctors .card--doctor.' + t).show());
}),
i('.sort-az').on('click', function (){
i('#grid-doctors .card-block .card--doctor ')
.sort(function (t, e){
return t.dataset.slug > e.dataset.slug ? 1:-1;
})
.appendTo('#grid-doctors .card-block');
}),
i('.sort-za').on('click', function (){
i('#grid-doctors .card-block .card--doctor ')
.sort(function (t, e){
return e.dataset.slug > t.dataset.slug ? 1:-1;
})
.appendTo('#grid-doctors .card-block');
}));
});
},
{
'./modules/accordion': 31,
'./modules/smallMenu': 32,
'./modules/stickyHeader': 33,
'./modules/svgIcons': 34,
'@fancyapps/fancybox': 1,
flickity: 11,
'flickity-bg-lazyload': 5,
'js-cookie': 21,
lazysizes: 22,
'lazysizes/plugins/bgset/ls.bgset': 23,
'lazysizes/plugins/parent-fit/ls.parent-fit': 25,
'lazysizes/plugins/respimg/ls.respimg': 26,
},
],
31: [
function (t, e, n){
'use strict';
function o(t, e){
for (var n=0; n < e.length; n++){
var i=e[n];
((i.enumerable=i.enumerable||!1),
(i.configurable = !0),
'value' in i&&(i.writable = !0),
Object.defineProperty(t, i.key, i));
}}
(!(function (p, g, m, t){
var n='accordion',
i={
transitionSpeed: 300,
transitionEasing: 'ease',
controlElement: '[data-control]',
contentElement: '[data-content]',
groupElement: '[data-accordion-group]',
singleOpen: !0,
};
function e(t, e){
((this.element=t),
(this.options=p.extend({}, i, e)),
(this._defaults=i),
(this._name=n),
this.init());
}
((e.prototype.init=function (){
var a=this.options,
e=p(this.element),
n=e.find('> ' + a.controlElement),
i=e.find('> ' + a.contentElement),
o=0 < e.parents('[data-accordion]').length,
s={ 'max-height': 0, overflow: 'hidden' },
r=(function t(){
var e=(m.body||m.documentElement).style,
n='transition';
if('string'==typeof e[n]) return !0;
var i=['Moz', 'webkit', 'Webkit', 'Khtml', 'O', 'ms'];
n='Transition';
for (var o=0; o < i.length; o++)
if('string'==typeof e[i[o] + n]) return !0;
return !1;
})();
function l(t, e){
e
? i.css({ '-webkit-transition': '', transition: '' })
: i.css({
'-webkit-transition':
'max-height ' +
a.transitionSpeed +
'ms ' +
a.transitionEasing,
transition:
'max-height ' +
a.transitionSpeed +
'ms ' +
a.transitionEasing,
});
}
function c(t){
var e=0;
(t.children().each(function (){
e +=p(this).outerHeight(!0);
}),
t.data('oHeight', e));
}
function d(t, e, n, i){
var o,
s=t.filter('.open').find('> [data-content]'),
r=s.find('[data-accordion].open > [data-content]');
(a.singleOpen ||
(r=r.not(e.siblings('[data-accordion].open').find('> [data-content]'),
)),
(o=s.add(r)),
t.hasClass('open') &&
o.each(function (){
var t=p(this).data('oHeight');
switch (i){
case '+':
p(this).data('oHeight', t + n);
break;
case '-':
p(this).data('oHeight', t - n);
break;
default:
throw 'updateParentHeight method needs an operation';
}
p(this).css('max-height', p(this).data('oHeight'));
}));
}
function u(t, e){
if((t.trigger('accordion.close'), r)){
if(o)
d(t.parents('[data-accordion]'), t, e.data('oHeight'), '-');
(e.css(s), t.removeClass('open'));
} else
(e.css('max-height', e.data('oHeight')),
e.animate(s, a.transitionSpeed),
t.removeClass('open'));
}
function f(t, e){
if((t.trigger('accordion.open'), r)){
if((l(), o))
d(t.parents('[data-accordion]'), t, e.data('oHeight'), '+');
(!(function t(e){
return g.requestAnimationFrame ||
g.webkitRequestAnimationFrame ||
g.mozRequestAnimationFrame
? requestAnimationFrame(e) ||
webkitRequestAnimationFrame(e) ||
mozRequestAnimationFrame(e)
: setTimeout(e, 1e3 / 60);
})(function (){
e.css('max-height', e.data('oHeight'));
}),
t.addClass('open'));
} else
(e.animate({ 'max-height': e.data('oHeight') },
a.transitionSpeed,
function (){
e.css({ 'max-height': 'none' });
},
),
t.addClass('open'));
}
function h(){
var t = !!a.singleOpen&&0 < e.parents(a.groupElement).length;
(c(i),
t &&
(function t(e){
e.closest(a.groupElement);
var n=e.siblings('[data-accordion]').filter('.open'),
i=n.find('[data-accordion]').filter('.open'),
o=n.add(i);
(o.each(function (){
var t=p(this);
u(t, t.find(a.contentElement));
}),
o.removeClass('open'));
})(e),
e.hasClass('open') ? u(e, i):f(e, i));
}
(!(function t(){
(i.each(function (){
var t=p(this);
0!=t.css('max-height') &&
(t.closest('[data-accordion]').hasClass('open')
? (l(), c(t), t.css('max-height', t.data('oHeight')))
: t.css({ 'max-height': 0, overflow: 'hidden' }));
}),
e.attr('data-accordion') ||
(e.attr('data-accordion', ''),
e.find(a.controlElement).attr('data-control', ''),
e.find(a.contentElement).attr('data-content', '')));
})(),
(function t(){
(n.on('click', h),
n.on('accordion.toggle', function (){
if(a.singleOpen&&1 < n.length) return !1;
h();
}),
p(g).on('resize',
(function t(i, o, s){
var r;
return function t(){
var e=this,
n=arguments;
(r ? clearTimeout(r):s&&i.apply(e, n),
(r=setTimeout(function t(){
(s||i.apply(e, n), (r=null));
}, o||100)));
};})(function (){
!(function t(e){
if(e.hasClass('open')){
var n=e.find('> [data-content]'),
i=n.find('[data-accordion].open > [data-content]',
),
o=n.add(i);
(c(o), o.css('max-height', o.data('oHeight')));
}})(e);
}),
));
})());
}),
(p.fn[n]=function (t){
return this.each(function (){
p.data(this, 'plugin_' + n) ||
p.data(this, 'plugin_' + n, new e(this, t));
});
}));
})(jQuery, window, document),
new ((function (){
function e(t){
(!(function t(e, n){
if(!(e instanceof n))
throw new TypeError('Cannot call a class as a function');
})(this, e),
(this.DOM={ $el: jQuery(t.el) }),
(this.SELECTOR={
accordion: 'data-accordion',
control: t.controlSelector||'[data-accordion-toggle]',
content: t.contentSelector||'[data-accordion-content]',
icon: t.iconSelector||'[data-accordion-icon]',
}),
(this.isStarted = !1));
}
return (
(function t(e, n, i){
return (n&&o(e.prototype, n), i&&o(e, i), e);
})(e, [
{
key: 'init',
value: function t(){
if(this.isStarted||!this.DOM.$el.length) return;
(this.addDataAttributes(),
this.startAccordionPlugin(),
this.addAccordionListeners(),
(this.isStarted = !0));
},
},
{
key: 'addDataAttributes',
value: function t(){
var i=this;
this.DOM.$el.each(function (t, e){
var n=jQuery(e);
(n.attr(i.SELECTOR.accordion, ''),
n.find(i.SELECTOR.control).attr('data-control', ''),
n.find(i.SELECTOR.content).attr('data-content', ''));
});
},
},
{
key: 'startAccordionPlugin',
value: function t(){
this.DOM.$el.accordion({
transitionSpeed: 600,
transitionEasing: 'ease-out',
});
},
},
{
key: 'addAccordionListeners',
value: function t(){
var n=this;
(this.DOM.$el.on('accordion.open', function (t){
var e=jQuery(t.currentTarget);
(e.find(n.SELECTOR.control).attr('aria-expanded', 'true'),
e
.find(n.SELECTOR.content)
.attr('aria-hidden', 'false'));
}),
this.DOM.$el.on('accordion.close', function (t){
var e=jQuery(t.currentTarget);
(e
.find(n.SELECTOR.control)
.attr('aria-expanded', 'false'),
e
.find(n.SELECTOR.content)
.attr('aria-hidden', 'true'));
}));
},
},
{
key: 'destroy',
value: function t(){
var i=this;
if(!this.isStarted) return;
(this.DOM.$el.each(function (t, e){
var n=$(e);
(n.removeAttr(i.SELECTOR.accordion).removeData(),
n
.find(i.SELECTOR.control)
.removeAttr('data-control')
.off(),
n
.find(i.SELECTOR.content)
.removeAttr('data-content')
.removeAttr('style'));
}),
(this.isStarted = !1));
},
},
]),
e
);
})())({ el: '[data-accordion]' }).init());
},
{},
],
32: [
function (t, e, n){
('use strict');
(Object.defineProperty(n, '__esModule', { value: !0 }),
(n.smallmenu=void 0),
t('jquery.mmenu'));
var i=$('[data-smallmenu]');
i.mmenu({
navbar: { title: ' ' },
setSelected: { current: 'detect' },
offCanvas: { position: 'right', zposition: 'next' },
extensions: ['position-right'],
});
var o=i.data('mmenu');
((n.smallmenu=o),
$('body').on('click', '[data-smallmenu-trigger]', function (t){
t.preventDefault();
$('[data-smallmenu-trigger]').toggleClass('hamburger__open');
$('[data-header]').addClass('headroom--unpinned');
o.open();
o.close();
}));
},
{ 'jquery.mmenu': 19 },
],
33: [
function (t, e, n){
'use strict';
var i=(function t(e){
return e&&e.__esModule ? e:{ default: e };})(t('headroom.js/dist/headroom.js'));
window.Headroom=i.default;
var o=document.querySelector('header');
new i.default(o, {
offset: 60,
tolerance: { down: 20, up: 20 },
}).init();
},
{ 'headroom.js/dist/headroom.js': 18 },
],
34: [
function (t, e, n){
'use strict';
var i=document.querySelector('body'),
o='data-icons',
s=i.getAttribute(o);
!(function t(e){
if(!e) return;
var n=new XMLHttpRequest();
(n.open('GET', e, !0),
(n.onload=function (){
if(200 <=n.status&&n.status < 400){
var t=n.responseXML.documentElement;
(t.setAttribute('display', 'none'),
t.setAttribute('aria-hidden', !0),
(function t(e, n){
n.insertBefore(e, n.firstChild);
})(t, i),
i.removeAttribute(o));
}}),
n.send());
})(s);
},
{},
],
},
{},
[30],
);