(function (e, t){ 'object'==typeof exports&&'undefined'!=typeof module ? module.exports=t():'function'==typeof define&&define.amd ? define(t):e.Popper=t() })(this, function (){ 'use strict'; function e(e){ return e&&'[object Function]'==={}.toString.call(e) } function t(e, t){ if(1!==e.nodeType) return []; var o=window.getComputedStyle(e, null); return t ? o[t]:o } function o(e){ return 'HTML'===e.nodeName ? e:e.parentNode||e.host } function n(e){ if(!e||-1!==['HTML', 'BODY', '#document'].indexOf(e.nodeName)) return window.document.body; var i=t(e), r=i.overflow, p=i.overflowX, s=i.overflowY; return /(auto|scroll)/.test(r + s + p) ? e:n(o(e)) } function r(e){ var o=e&&e.offsetParent, i=o&&o.nodeName; return i&&'BODY'!==i&&'HTML'!==i ? -1!==['TD', 'TABLE'].indexOf(o.nodeName)&&'static'===t(o, 'position') ? r(o):o : window.document.documentElement } function p(e){ var t=e.nodeName; return 'BODY'!==t&&('HTML'===t||r(e.firstElementChild)===e) } function s(e){ return null===e.parentNode ? e:s(e.parentNode) } function d(e, t){ if(!e||!e.nodeType||!t||!t.nodeType) return window.document.documentElement; var o=e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING, i=o ? e:t, n=o ? t:e, a=document.createRange(); a.setStart(i, 0), a.setEnd(n, 0); var l=a.commonAncestorContainer; if(e!==l&&t!==l||i.contains(n)) return p(l) ? l:r(l); var f=s(e); return f.host ? d(f.host, t):d(e, s(t).host) } function a(e){ var t=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:'top', o='top'===t ? 'scrollTop':'scrollLeft', i=e.nodeName; if('BODY'===i||'HTML'===i){ var n=window.document.documentElement, r=window.document.scrollingElement||n; return r[o] } return e[o] } function l(e, t){ var o=2 < arguments.length&&void 0!==arguments[2]&&arguments[2], i=a(t, 'top'), n=a(t, 'left'), r=o ? -1:1; return e.top +=i * r, e.bottom +=i * r, e.left +=n * r, e.right +=n * r, e } function f(e, t){ var o='x'===t ? 'Left':'Top', i='Left'==o ? 'Right':'Bottom'; return +e['border' + o + 'Width'].split('px')[0] + +e['border' + i + 'Width'].split('px')[0] } function m(e, t, o, i){ return X(t['offset' + e], t['scroll' + e], o['client' + e], o['offset' + e], o['scroll' + e], ne() ? o['offset' + e] + i['margin' + ('Height'===e ? 'Top':'Left')] + i['margin' + ('Height'===e ? 'Bottom':'Right')]:0) } function c(){ var e=window.document.body, t=window.document.documentElement, o=ne()&&window.getComputedStyle(t); return { height: m('Height', e, t, o), width: m('Width', e, t, o) }} function h(e){ return de({}, e, { right: e.left + e.width, bottom: e.top + e.height }) } function g(e){ var o={}; if(ne()) try { o=e.getBoundingClientRect(); var i=a(e, 'top'), n=a(e, 'left'); o.top +=i, o.left +=n, o.bottom +=i, o.right +=n } catch (e){ } else o=e.getBoundingClientRect(); var r={ left: o.left, top: o.top, width: o.right - o.left, height: o.bottom - o.top }, p='HTML'===e.nodeName ? c():{}, s=p.width||e.clientWidth||r.right - r.left, d=p.height||e.clientHeight||r.bottom - r.top, l=e.offsetWidth - s, m=e.offsetHeight - d; if(l||m){ var g=t(e); l -=f(g, 'x'), m -=f(g, 'y'), r.width -=l, r.height -=m } return h(r) } function u(e, o){ var i=ne(), r='HTML'===o.nodeName, p=g(e), s=g(o), d=n(e), a=t(o), f=+a.borderTopWidth.split('px')[0], m=+a.borderLeftWidth.split('px')[0], c=h({ top: p.top - s.top - f, left: p.left - s.left - m, width: p.width, height: p.height });if(c.marginTop=0, c.marginLeft=0, !i&&r){ var u=+a.marginTop.split('px')[0], b=+a.marginLeft.split('px')[0]; c.top -=f - u, c.bottom -=f - u, c.left -=m - b, c.right -=m - b, c.marginTop=u, c.marginLeft=b } return (i ? o.contains(d):o===d&&'BODY'!==d.nodeName)&&(c=l(c, o)), c } function b(e){ var t=window.document.documentElement, o=u(e, t), i=X(t.clientWidth, window.innerWidth||0), n=X(t.clientHeight, window.innerHeight||0), r=a(t), p=a(t, 'left'), s={ top: r - o.top + o.marginTop, left: p - o.left + o.marginLeft, width: i, height: n }; return h(s) } function y(e){ var i=e.nodeName; return 'BODY'===i||'HTML'===i ? !1:'fixed'===t(e, 'position')||y(o(e)) } function w(e, t, i, r){ var p={ top: 0, left: 0 }, s=d(e, t); if('viewport'===r) p=b(s); else { var a; 'scrollParent'===r ? (a=n(o(e)), 'BODY'===a.nodeName&&(a=window.document.documentElement)):'window'===r ? a=window.document.documentElement:a=r; var l=u(a, s); if('HTML'===a.nodeName&&!y(s)){ var f=c(), m=f.height, h=f.width; p.top +=l.top - l.marginTop, p.bottom=m + l.top, p.left +=l.left - l.marginLeft, p.right=h + l.left } else p=l } return p.left +=i, p.top +=i, p.right -=i, p.bottom -=i, p } function E(e){ var t=e.width, o=e.height; return t * o } function v(e, t, o, i, n){ var r=5 < arguments.length&&void 0!==arguments[5] ? arguments[5]:0; if(-1===e.indexOf('auto')) return e; var p=w(o, i, r, n), s={ top: { width: p.width, height: t.top - p.top }, right: { width: p.right - t.right, height: p.height }, bottom: { width: p.width, height: p.bottom - t.bottom }, left: { width: t.left - p.left, height: p.height }}, d=Object.keys(s).map(function (e){ return de({ key: e }, s[e], { area: E(s[e]) }) }).sort(function (e, t){ return t.area - e.area }), a=d.filter(function (e){ var t=e.width, i=e.height; return t >=o.clientWidth&&i >=o.clientHeight }), l=0 < a.length ? a[0].key:d[0].key, f=e.split('-')[1]; return l + (f ? '-' + f:'') } function x(e, t, o){ var i=d(t, o); return u(o, i) } function O(e){ var t=window.getComputedStyle(e), o=parseFloat(t.marginTop) + parseFloat(t.marginBottom), i=parseFloat(t.marginLeft) + parseFloat(t.marginRight), n={ width: e.offsetWidth + i, height: e.offsetHeight + o }; return n } function L(e){ var t={ left: 'right', right: 'left', bottom: 'top', top: 'bottom' }; return e.replace(/left|right|bottom|top/g, function (e){ return t[e] }) } function S(e, t, o){ o=o.split('-')[0]; var i=O(e), n={ width: i.width, height: i.height }, r=-1!==['right', 'left'].indexOf(o), p=r ? 'top':'left', s=r ? 'left':'top', d=r ? 'height':'width', a=r ? 'width':'height'; return n[p]=t[p] + t[d] / 2 - i[d] / 2, n[s]=o===s ? t[s] - i[a]:t[L(s)], n } function T(e, t){ return Array.prototype.find ? e.find(t):e.filter(t)[0] } function C(e, t, o){ if(Array.prototype.findIndex) return e.findIndex(function (e){ return e[t]===o });var i=T(e, function (e){ return e[t]===o });return e.indexOf(i) } function N(t, o, i){ var n=void 0===i ? t:t.slice(0, C(t, 'name', i)); return n.forEach(function (t){ t.function&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!'); var i=t.function||t.fn; t.enabled&&e(i)&&(o.offsets.popper=h(o.offsets.popper), o.offsets.reference=h(o.offsets.reference), o=i(o, t)) }), o } function k(){ if(!this.state.isDestroyed){ var e={ instance: this, styles: {}, arrowStyles: {}, attributes: {}, flipped: !1, offsets: {}}; e.offsets.reference=x(this.state, this.popper, this.reference), e.placement=v(this.options.placement, e.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding), e.originalPlacement=e.placement, e.offsets.popper=S(this.popper, e.offsets.reference, e.placement), e.offsets.popper.position='absolute', e=N(this.modifiers, e), this.state.isCreated ? this.options.onUpdate(e):(this.state.isCreated = !0, this.options.onCreate(e)) }} function W(e, t){ return e.some(function (e){ var o=e.name, i=e.enabled; return i&&o===t }) } function B(e){ for (var t=[!1, 'ms', 'Webkit', 'Moz', 'O'], o=e.charAt(0).toUpperCase() + e.slice(1), n=0; n < t.length - 1; n++){ var i=t[n], r=i ? '' + i + o:e; if('undefined'!=typeof window.document.body.style[r]) return r } return null } function P(){ return this.state.isDestroyed = !0, W(this.modifiers, 'applyStyle')&&(this.popper.removeAttribute('x-placement'), this.popper.style.left='', this.popper.style.position='', this.popper.style.top='', this.popper.style[B('transform')]=''), this.disableEventListeners(), this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper), this } function D(e, t, o, i){ var r='BODY'===e.nodeName, p=r ? window:e; p.addEventListener(t, o, { passive: !0 }), r||D(n(p.parentNode), t, o, i), i.push(p) } function H(e, t, o, i){ o.updateBound=i, window.addEventListener('resize', o.updateBound, { passive: !0 });var r=n(e); return D(r, 'scroll', o.updateBound, o.scrollParents), o.scrollElement=r, o.eventsEnabled = !0, o } function A(){ this.state.eventsEnabled||(this.state=H(this.reference, this.options, this.state, this.scheduleUpdate)) } function M(e, t){ return window.removeEventListener('resize', t.updateBound), t.scrollParents.forEach(function (e){ e.removeEventListener('scroll', t.updateBound) }), t.updateBound=null, t.scrollParents=[], t.scrollElement=null, t.eventsEnabled = !1, t } function I(){ this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate), this.state=M(this.reference, this.state)) } function R(e){ return ''!==e&&!isNaN(parseFloat(e))&&isFinite(e) } function U(e, t){ Object.keys(t).forEach(function (o){ var i=''; -1!==['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(o)&&R(t[o])&&(i='px'), e.style[o]=t[o] + i }) } function Y(e, t){ Object.keys(t).forEach(function (o){ var i=t[o]; !1===i ? e.removeAttribute(o):e.setAttribute(o, t[o]) }) } function F(e, t, o){ var i=T(e, function (e){ var o=e.name; return o===t }), n = !!i&&e.some(function (e){ return e.name===o&&e.enabled&&e.order < i.order });if(!n){ var r='`' + t + '`'; console.warn('`' + o + '`' + ' modifier is required by ' + r + ' modifier in order to work, be sure to include it before ' + r + '!') } return n } function j(e){ return 'end'===e ? 'start':'start'===e ? 'end':e } function K(e){ var t=1 < arguments.length&&void 0!==arguments[1]&&arguments[1], o=le.indexOf(e), i=le.slice(o + 1).concat(le.slice(0, o)); return t ? i.reverse():i } function q(e, t, o, i){ var n=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/), r=+n[1], p=n[2]; if(!r) return e; if(0===p.indexOf('%')){ var s; switch (p){ case '%p': s=o; break; case '%': case '%r': default: s=i; }var d=h(s); return d[t] / 100 * r } if('vh'===p||'vw'===p){ var a; return a='vh'===p ? X(document.documentElement.clientHeight, window.innerHeight||0):X(document.documentElement.clientWidth, window.innerWidth||0), a / 100 * r } return r } function G(e, t, o, i){ var n=[0, 0], r=-1!==['right', 'left'].indexOf(i), p=e.split(/(\+|\-)/).map(function (e){ return e.trim() }), s=p.indexOf(T(p, function (e){ return -1!==e.search(/,|\s/) })); p[s]&&-1===p[s].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.'); var d=/\s*,\s*|\s+/, a=-1===s ? [p]:[p.slice(0, s).concat([p[s].split(d)[0]]), [p[s].split(d)[1]].concat(p.slice(s + 1))]; return a=a.map(function (e, i){ var n=(1===i ? !r:r) ? 'height':'width', p = !1; return e.reduce(function (e, t){ return ''===e[e.length - 1]&&-1!==['+', '-'].indexOf(t) ? (e[e.length - 1]=t, p = !0, e):p ? (e[e.length - 1] +=t, p = !1, e):e.concat(t) }, []).map(function (e){ return q(e, n, t, o) }) }), a.forEach(function (e, t){ e.forEach(function (o, i){ R(o)&&(n[t] +=o * ('-'===e[i - 1] ? -1:1)) }) }), n } function z(e, t){ var o, i=t.offset, n=e.placement, r=e.offsets, p=r.popper, s=r.reference, d=n.split('-')[0]; return o=R(+i) ? [+i, 0]:G(i, p, s, d), 'left'===d ? (p.top +=o[0], p.left -=o[1]):'right'===d ? (p.top +=o[0], p.left +=o[1]):'top'===d ? (p.left +=o[0], p.top -=o[1]):'bottom'===d&&(p.left +=o[0], p.top +=o[1]), e.popper=p, e } for (var V=Math.min, _=Math.floor, X=Math.max, Q=['native code', '[object MutationObserverConstructor]'], J=function (e){ return Q.some(function (t){ return -1 < (e||'').toString().indexOf(t) }) }, Z='undefined'!=typeof window, $=['Edge', 'Trident', 'Firefox'], ee=0, te=0; te < $.length; te +=1)if(Z&&0 <=navigator.userAgent.indexOf($[te])){ ee=1; break } var i, oe=Z&&J(window.MutationObserver), ie=oe ? function (e){ var t = !1, o=0, i=document.createElement('span'), n=new MutationObserver(function (){ e(), t = !1 });return n.observe(i, { attributes: !0 }), function (){ t||(t = !0, i.setAttribute('x-index', o), ++o) }}:function (e){ var t = !1; return function (){ t||(t = !0, setTimeout(function (){ t = !1, e() }, ee)) }}, ne=function (){ return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')), i }, re=function (e, t){ if(!(e instanceof t)) throw new TypeError('Cannot call a class as a function') }, pe=function (){ function e(e, t){ for (var o, n=0; n < t.length; n++)o=t[n], o.enumerable=o.enumerable||!1, o.configurable = !0, 'value' in o&&(o.writable = !0), Object.defineProperty(e, o.key, o) } return function (t, o, i){ return o&&e(t.prototype, o), i&&e(t, i), t }}(), se=function (e, t, o){ return t in e ? Object.defineProperty(e, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }):e[t]=o, e }, de=Object.assign||function (e){ for (var t, o=1; o < arguments.length; o++)for (var i in t=arguments[o], t) Object.prototype.hasOwnProperty.call(t, i)&&(e[i]=t[i]); return e }, ae=['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'], le=ae.slice(3), fe={ FLIP: 'flip', CLOCKWISE: 'clockwise', COUNTERCLOCKWISE: 'counterclockwise' }, me=function (){ function t(o, i){ var n=this, r=2 < arguments.length&&void 0!==arguments[2] ? arguments[2]:{}; re(this, t), this.scheduleUpdate=function (){ return requestAnimationFrame(n.update) }, this.update=ie(this.update.bind(this)), this.options=de({}, t.Defaults, r), this.state={ isDestroyed: !1, isCreated: !1, scrollParents: [] }, this.reference=o.jquery ? o[0]:o, this.popper=i.jquery ? i[0]:i, this.options.modifiers={}, Object.keys(de({}, t.Defaults.modifiers, r.modifiers)).forEach(function (e){ n.options.modifiers[e]=de({}, t.Defaults.modifiers[e]||{}, r.modifiers ? r.modifiers[e]:{}) }), this.modifiers=Object.keys(this.options.modifiers).map(function (e){ return de({ name: e }, n.options.modifiers[e]) }).sort(function (e, t){ return e.order - t.order }), this.modifiers.forEach(function (t){ t.enabled&&e(t.onLoad)&&t.onLoad(n.reference, n.popper, n.options, t, n.state) }), this.update(); var p=this.options.eventsEnabled; p&&this.enableEventListeners(), this.state.eventsEnabled=p } return pe(t, [{ key: 'update', value: function (){ return k.call(this) }}, { key: 'destroy', value: function (){ return P.call(this) }}, { key: 'enableEventListeners', value: function (){ return A.call(this) }}, { key: 'disableEventListeners', value: function (){ return I.call(this) }}]), t }(); return me.Utils=('undefined'==typeof window ? global:window).PopperUtils, me.placements=ae, me.Defaults={ placement: 'bottom', eventsEnabled: !0, removeOnDestroy: !1, onCreate: function (){ }, onUpdate: function (){ }, modifiers: { shift: { order: 100, enabled: !0, fn: function (e){ var t=e.placement, o=t.split('-')[0], i=t.split('-')[1]; if(i){ var n=e.offsets, r=n.reference, p=n.popper, s=-1!==['bottom', 'top'].indexOf(o), d=s ? 'left':'top', a=s ? 'width':'height', l={ start: se({}, d, r[d]), end: se({}, d, r[d] + r[a] - p[a]) }; e.offsets.popper=de({}, p, l[i]) } return e }}, offset: { order: 200, enabled: !0, fn: z, offset: 0 }, preventOverflow: { order: 300, enabled: !0, fn: function (e, t){ var o=t.boundariesElement||r(e.instance.popper); e.instance.reference===o&&(o=r(o)); var i=w(e.instance.popper, e.instance.reference, t.padding, o); t.boundaries=i; var n=t.priority, p=e.offsets.popper, s={ primary: function (e){ var o=p[e]; return p[e] < i[e]&&!t.escapeWithReference&&(o=X(p[e], i[e])), se({}, e, o) }, secondary: function (e){ var o='right'===e ? 'left':'top', n=p[o]; return p[e] > i[e]&&!t.escapeWithReference&&(n=V(p[o], i[e] - ('right'===e ? p.width:p.height))), se({}, o, n) }}; return n.forEach(function (e){ var t=-1===['left', 'top'].indexOf(e) ? 'secondary':'primary'; p=de({}, p, s[t](e)) }), e.offsets.popper=p, e }, priority: ['left', 'right', 'top', 'bottom'], padding: 5, boundariesElement: 'scrollParent' }, keepTogether: { order: 400, enabled: !0, fn: function (e){ var t=e.offsets, o=t.popper, i=t.reference, n=e.placement.split('-')[0], r=_, p=-1!==['top', 'bottom'].indexOf(n), s=p ? 'right':'bottom', d=p ? 'left':'top', a=p ? 'width':'height'; return o[s] < r(i[d])&&(e.offsets.popper[d]=r(i[d]) - o[a]), o[d] > r(i[s])&&(e.offsets.popper[d]=r(i[s])), e }}, arrow: { order: 500, enabled: !0, fn: function (e, o){ if(!F(e.instance.modifiers, 'arrow', 'keepTogether')) return e; var i=o.element; if('string'==typeof i){ if(i=e.instance.popper.querySelector(i), !i) return e; }else if(!e.instance.popper.contains(i)) return console.warn('WARNING: `arrow.element` must be child of its popper element!'), e; var n=e.placement.split('-')[0], r=e.offsets, p=r.popper, s=r.reference, d=-1!==['left', 'right'].indexOf(n), a=d ? 'height':'width', l=d ? 'Top':'Left', f=l.toLowerCase(), m=d ? 'left':'top', c=d ? 'bottom':'right', g=O(i)[a]; s[c] - g < p[f]&&(e.offsets.popper[f] -=p[f] - (s[c] - g)), s[f] + g > p[c]&&(e.offsets.popper[f] +=s[f] + g - p[c]); var u=s[f] + s[a] / 2 - g / 2, b=t(e.instance.popper, 'margin' + l).replace('px', ''), y=u - h(e.offsets.popper)[f] - b; return y=X(V(p[a] - g, y), 0), e.arrowElement=i, e.offsets.arrow={}, e.offsets.arrow[f]=Math.round(y), e.offsets.arrow[m]='', e }, element: '[x-arrow]' }, flip: { order: 600, enabled: !0, fn: function (e, t){ if(W(e.instance.modifiers, 'inner')) return e; if(e.flipped&&e.placement===e.originalPlacement) return e; var o=w(e.instance.popper, e.instance.reference, t.padding, t.boundariesElement), i=e.placement.split('-')[0], n=L(i), r=e.placement.split('-')[1]||'', p=[]; switch (t.behavior){ case fe.FLIP: p=[i, n]; break; case fe.CLOCKWISE: p=K(i); break; case fe.COUNTERCLOCKWISE: p=K(i, !0); break; default: p=t.behavior; }return p.forEach(function (s, d){ if(i!==s||p.length===d + 1) return e; i=e.placement.split('-')[0], n=L(i); var a=e.offsets.popper, l=e.offsets.reference, f=_, m='left'===i&&f(a.right) > f(l.left)||'right'===i&&f(a.left) < f(l.right)||'top'===i&&f(a.bottom) > f(l.top)||'bottom'===i&&f(a.top) < f(l.bottom), c=f(a.left) < f(o.left), h=f(a.right) > f(o.right), g=f(a.top) < f(o.top), u=f(a.bottom) > f(o.bottom), b='left'===i&&c||'right'===i&&h||'top'===i&&g||'bottom'===i&&u, y=-1!==['top', 'bottom'].indexOf(i), w = !!t.flipVariations&&(y&&'start'===r&&c||y&&'end'===r&&h||!y&&'start'===r&&g||!y&&'end'===r&&u); (m||b || w)&&(e.flipped = !0, (m||b)&&(i=p[d + 1]), w&&(r=j(r)), e.placement=i + (r ? '-' + r:''), e.offsets.popper=de({}, e.offsets.popper, S(e.instance.popper, e.offsets.reference, e.placement)), e=N(e.instance.modifiers, e, 'flip')) }), e }, behavior: 'flip', padding: 5, boundariesElement: 'viewport' }, inner: { order: 700, enabled: !1, fn: function (e){ var t=e.placement, o=t.split('-')[0], i=e.offsets, n=i.popper, r=i.reference, p=-1!==['left', 'right'].indexOf(o), s=-1===['top', 'left'].indexOf(o); return n[p ? 'left':'top']=r[o] - (s ? n[p ? 'width':'height']:0), e.placement=L(t), e.offsets.popper=h(n), e }}, hide: { order: 800, enabled: !0, fn: function (e){ if(!F(e.instance.modifiers, 'hide', 'preventOverflow')) return e; var t=e.offsets.reference, o=T(e.instance.modifiers, function (e){ return 'preventOverflow'===e.name }).boundaries; if(t.bottom < o.top||t.left > o.right||t.top > o.bottom||t.right < o.left){ if(!0===e.hide) return e; e.hide = !0, e.attributes['x-out-of-boundaries']='' }else{ if(!1===e.hide) return e; e.hide = !1, e.attributes['x-out-of-boundaries'] = !1 } return e }}, computeStyle: { order: 850, enabled: !0, fn: function (e, t){ var o=t.x, i=t.y, n=e.offsets.popper, p=T(e.instance.modifiers, function (e){ return 'applyStyle'===e.name }).gpuAcceleration; void 0!==p&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!'); var s, d, a=void 0===p ? t.gpuAcceleration:p, l=r(e.instance.popper), f=g(l), m={ position: n.position }, c={ left: _(n.left), top: _(n.top), bottom: _(n.bottom), right: _(n.right) }, h='bottom'===o ? 'top':'bottom', u='right'===i ? 'left':'right', b=B('transform'); if(d='bottom'==h ? -f.height + c.bottom:c.top, s='right'==u ? -f.width + c.right:c.left, a&&b) m[b]='translate3d(' + s + 'px, ' + d + 'px, 0)', m[h]=0, m[u]=0, m.willChange='transform'; else { var y='bottom'==h ? -1:1, w='right'==u ? -1:1; m[h]=d * y, m[u]=s * w, m.willChange=h + ', ' + u } var E={ "x-placement": e.placement }; return e.attributes=de({}, E, e.attributes), e.styles=de({}, m, e.styles), e.arrowStyles=de({}, e.offsets.arrow, e.arrowStyles), e }, gpuAcceleration: !0, x: 'bottom', y: 'right' }, applyStyle: { order: 900, enabled: !0, fn: function (e){ return U(e.instance.popper, e.styles), Y(e.instance.popper, e.attributes), e.arrowElement&&Object.keys(e.arrowStyles).length&&U(e.arrowElement, e.arrowStyles), e }, onLoad: function (e, t, o, i, n){ var r=x(n, t, e), p=v(o.placement, r, t, e, o.modifiers.flip.boundariesElement, o.modifiers.flip.padding); return t.setAttribute('x-placement', p), U(t, { position: 'absolute' }), o }, gpuAcceleration: void 0 }} }, me });
!function (a){ "function"==typeof define&&define.amd ? define(["jquery"], a):"object"==typeof exports ? module.exports=a:a(jQuery) }(function (a){ function b(b){ var g=b||window.event, h=i.call(arguments, 1), j=0, l=0, m=0, n=0, o=0, p=0; if(b=a.event.fix(g), b.type="mousewheel", "detail" in g&&(m=-1 * g.detail), "wheelDelta" in g&&(m=g.wheelDelta), "wheelDeltaY" in g&&(m=g.wheelDeltaY), "wheelDeltaX" in g&&(l=-1 * g.wheelDeltaX), "axis" in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1 * m, m=0), j=0===m ? l:m, "deltaY" in g&&(m=-1 * g.deltaY, j=m), "deltaX" in g&&(l=g.deltaX, 0===m&&(j=-1 * l)), 0!==m||0!==l){ if(1===g.deltaMode){ var q=a.data(this, "mousewheel-line-height"); j *=q, m *=q, l *=q }else if(2===g.deltaMode){ var r=a.data(this, "mousewheel-page-height"); j *=r, m *=r, l *=r } if(n=Math.max(Math.abs(m), Math.abs(l)), (!f||f > n)&&(f=n, d(g, n)&&(f /=40)), d(g, n)&&(j /=40, l /=40, m /=40), j=Math[j >=1 ? "floor":"ceil"](j / f), l=Math[l >=1 ? "floor":"ceil"](l / f), m=Math[m >=1 ? "floor":"ceil"](m / f), k.settings.normalizeOffset&&this.getBoundingClientRect){ var s=this.getBoundingClientRect(); o=b.clientX - s.left, p=b.clientY - s.top } return b.deltaX=l, b.deltaY=m, b.deltaFactor=f, b.offsetX=o, b.offsetY=p, b.deltaMode=0, h.unshift(b, j, l, m), e&&clearTimeout(e), e=setTimeout(c, 200), (a.event.dispatch||a.event.handle).apply(this, h) }} function c(){ f=null } function d(a, b){ return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b % 120===0 } var e, f, g=["wheel", "mousewheel", "DOMMouseScroll", "MozMousePixelScroll"], h="onwheel" in document||document.documentMode >=9 ? ["wheel"]:["mousewheel", "DomMouseScroll", "MozMousePixelScroll"], i=Array.prototype.slice; if(a.event.fixHooks) for (var j=g.length; j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks; var k=a.event.special.mousewheel={ version: "3.1.12", setup: function (){ if(this.addEventListener) for (var c=h.length; c;)this.addEventListener(h[--c], b, !1); else this.onmousewheel=b; a.data(this, "mousewheel-line-height", k.getLineHeight(this)), a.data(this, "mousewheel-page-height", k.getPageHeight(this)) }, teardown: function (){ if(this.removeEventListener) for (var c=h.length; c;)this.removeEventListener(h[--c], b, !1); else this.onmousewheel=null; a.removeData(this, "mousewheel-line-height"), a.removeData(this, "mousewheel-page-height") }, getLineHeight: function (b){ var c=a(b), d=c["offsetParent" in a.fn ? "offsetParent":"parent"](); return d.length||(d=a("body")), parseInt(d.css("fontSize"), 10)||parseInt(c.css("fontSize"), 10)||16 }, getPageHeight: function (b){ return a(b).height() }, settings: { adjustOldDeltas: !0, normalizeOffset: !0 }}; a.fn.extend({ mousewheel: function (a){ return a ? this.bind("mousewheel", a):this.trigger("mousewheel") }, unmousewheel: function (a){ return this.unbind("mousewheel", a) }}) });!function (a){ "function"==typeof define&&define.amd ? define(["jquery"], a):"object"==typeof exports ? module.exports=a:a(jQuery) }(function (a){ function b(b){ var g=b||window.event, h=i.call(arguments, 1), j=0, l=0, m=0, n=0, o=0, p=0; if(b=a.event.fix(g), b.type="mousewheel", "detail" in g&&(m=-1 * g.detail), "wheelDelta" in g&&(m=g.wheelDelta), "wheelDeltaY" in g&&(m=g.wheelDeltaY), "wheelDeltaX" in g&&(l=-1 * g.wheelDeltaX), "axis" in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1 * m, m=0), j=0===m ? l:m, "deltaY" in g&&(m=-1 * g.deltaY, j=m), "deltaX" in g&&(l=g.deltaX, 0===m&&(j=-1 * l)), 0!==m||0!==l){ if(1===g.deltaMode){ var q=a.data(this, "mousewheel-line-height"); j *=q, m *=q, l *=q }else if(2===g.deltaMode){ var r=a.data(this, "mousewheel-page-height"); j *=r, m *=r, l *=r } if(n=Math.max(Math.abs(m), Math.abs(l)), (!f||f > n)&&(f=n, d(g, n)&&(f /=40)), d(g, n)&&(j /=40, l /=40, m /=40), j=Math[j >=1 ? "floor":"ceil"](j / f), l=Math[l >=1 ? "floor":"ceil"](l / f), m=Math[m >=1 ? "floor":"ceil"](m / f), k.settings.normalizeOffset&&this.getBoundingClientRect){ var s=this.getBoundingClientRect(); o=b.clientX - s.left, p=b.clientY - s.top } return b.deltaX=l, b.deltaY=m, b.deltaFactor=f, b.offsetX=o, b.offsetY=p, b.deltaMode=0, h.unshift(b, j, l, m), e&&clearTimeout(e), e=setTimeout(c, 200), (a.event.dispatch||a.event.handle).apply(this, h) }} function c(){ f=null } function d(a, b){ return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b % 120===0 } var e, f, g=["wheel", "mousewheel", "DOMMouseScroll", "MozMousePixelScroll"], h="onwheel" in document||document.documentMode >=9 ? ["wheel"]:["mousewheel", "DomMouseScroll", "MozMousePixelScroll"], i=Array.prototype.slice; if(a.event.fixHooks) for (var j=g.length; j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks; var k=a.event.special.mousewheel={ version: "3.1.12", setup: function (){ if(this.addEventListener) for (var c=h.length; c;)this.addEventListener(h[--c], b, !1); else this.onmousewheel=b; a.data(this, "mousewheel-line-height", k.getLineHeight(this)), a.data(this, "mousewheel-page-height", k.getPageHeight(this)) }, teardown: function (){ if(this.removeEventListener) for (var c=h.length; c;)this.removeEventListener(h[--c], b, !1); else this.onmousewheel=null; a.removeData(this, "mousewheel-line-height"), a.removeData(this, "mousewheel-page-height") }, getLineHeight: function (b){ var c=a(b), d=c["offsetParent" in a.fn ? "offsetParent":"parent"](); return d.length||(d=a("body")), parseInt(d.css("fontSize"), 10)||parseInt(c.css("fontSize"), 10)||16 }, getPageHeight: function (b){ return a(b).height() }, settings: { adjustOldDeltas: !0, normalizeOffset: !0 }}; a.fn.extend({ mousewheel: function (a){ return a ? this.bind("mousewheel", a):this.trigger("mousewheel") }, unmousewheel: function (a){ return this.unbind("mousewheel", a) }}) });
!function (e){ "undefined"!=typeof module&&module.exports ? module.exports=e:e(jQuery, window, document) }(function (e){
!function (t){ var o="function"==typeof define&&define.amd, a="undefined"!=typeof module&&module.exports, n="https:"==document.location.protocol ? "https:":"http:", i="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js"; o||(a ? require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src=" + n + "//" + i + "%3E%3C/script%3E"))), t() }(function (){
var t, o="mCustomScrollbar", a="mCS", n=".mCustomScrollbar", i={ setTop: 0, setLeft: 0, axis: "y", scrollbarPosition: "inside", scrollInertia: 950, autoDraggerLength: !0, alwaysShowScrollbar: 0, snapOffset: 0, mouseWheel: { enable: !0, scrollAmount: "auto", axis: "y", deltaFactor: "auto", disableOver: ["select", "option", "keygen", "datalist", "textarea"] }, scrollButtons: { scrollType: "stepless", scrollAmount: "auto" }, keyboard: { enable: !0, scrollType: "stepless", scrollAmount: "auto" }, contentTouchScroll: 25, documentTouchScroll: !0, advanced: { autoScrollOnFocus: "input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']", updateOnContentResize: !0, updateOnImageLoad: "auto", autoUpdateTimeout: 60 }, theme: "light", callbacks: { onTotalScrollOffset: 0, onTotalScrollBackOffset: 0, alwaysTriggerOffsets: !0 }}, r=0, l={}, s=window.attachEvent&&!window.addEventListener ? 1:0, c = !1, d=["mCSB_dragger_onDrag", "mCSB_scrollTools_onDrag", "mCS_img_loaded", "mCS_disabled", "mCS_destroyed", "mCS_no_scrollbar", "mCS-autoHide", "mCS-dir-rtl", "mCS_no_scrollbar_y", "mCS_no_scrollbar_x", "mCS_y_hidden", "mCS_x_hidden", "mCSB_draggerContainer", "mCSB_buttonUp", "mCSB_buttonDown", "mCSB_buttonLeft", "mCSB_buttonRight"], u={ init: function (t){ var t=e.extend(!0, {}, i, t), o=f.call(this); if(t.live){ var s=t.liveSelector||this.selector||n, c=e(s); if("off"===t.live) return void m(s); l[s]=setTimeout(function (){ c.mCustomScrollbar(t), "once"===t.live&&c.length&&m(s) }, 500) } else m(s); return t.setWidth=t.set_width ? t.set_width:t.setWidth, t.setHeight=t.set_height ? t.set_height:t.setHeight, t.axis=t.horizontalScroll ? "x":p(t.axis), t.scrollInertia=t.scrollInertia > 0&&t.scrollInertia < 17 ? 17:t.scrollInertia, "object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={ enable: !0, scrollAmount: "auto", axis: "y", preventDefault: !1, deltaFactor: "auto", normalizeDelta: !1, invert: !1 }), t.mouseWheel.scrollAmount=t.mouseWheelPixels ? t.mouseWheelPixels:t.mouseWheel.scrollAmount, t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta ? t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta, t.scrollButtons.scrollType=g(t.scrollButtons.scrollType), h(t), e(o).each(function (){ var o=e(this); if(!o.data(a)){ o.data(a, { idx: ++r, opt: t, scrollRatio: { y: null, x: null }, overflowed: null, contentReset: { y: null, x: null }, bindEvents: !1, tweenRunning: !1, sequential: {}, langDir: o.css("direction"), cbOffsets: null, trigger: null, poll: { size: { o: 0, n: 0 }, img: { o: 0, n: 0 }, change: { o: 0, n: 0 }} });var n=o.data(a), i=n.opt, l=o.data("mcs-axis"), s=o.data("mcs-scrollbar-position"), c=o.data("mcs-theme"); l&&(i.axis=l), s&&(i.scrollbarPosition=s), c&&(i.theme=c, h(i)), v.call(this), n&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this), e("#mCSB_" + n.idx + "_container img:not(." + d[2] + ")").addClass(d[2]), u.update.call(null, o) }}) }, update: function (t, o){ var n=t||f.call(this); return e(n).each(function (){ var t=e(this); if(t.data(a)){ var n=t.data(a), i=n.opt, r=e("#mCSB_" + n.idx + "_container"), l=e("#mCSB_" + n.idx), s=[e("#mCSB_" + n.idx + "_dragger_vertical"), e("#mCSB_" + n.idx + "_dragger_horizontal")]; if(!r.length) return; n.tweenRunning&&N(t), o&&n && i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this), t.hasClass(d[3])&&t.removeClass(d[3]), t.hasClass(d[4])&&t.removeClass(d[4]), l.css("max-height", "none"), l.height()!==t.height()&&l.css("max-height", t.height()), _.call(this), "y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width", x(r)), n.overflowed=y.call(this), M.call(this), i.autoDraggerLength&&S.call(this), b.call(this), T.call(this); var c=[Math.abs(r[0].offsetTop), Math.abs(r[0].offsetLeft)]; "x"!==i.axis&&(n.overflowed[0] ? s[0].height() > s[0].parent().height() ? B.call(this):(V(t, c[0].toString(), { dir: "y", dur: 0, overwrite: "none" }), n.contentReset.y=null):(B.call(this), "y"===i.axis ? k.call(this):"yx"===i.axis&&n.overflowed[1]&&V(t, c[1].toString(), { dir: "x", dur: 0, overwrite: "none" }))), "y"!==i.axis&&(n.overflowed[1] ? s[1].width() > s[1].parent().width() ? B.call(this):(V(t, c[1].toString(), { dir: "x", dur: 0, overwrite: "none" }), n.contentReset.x=null):(B.call(this), "x"===i.axis ? k.call(this):"yx"===i.axis&&n.overflowed[0]&&V(t, c[0].toString(), { dir: "y", dur: 0, overwrite: "none" }))), o&&n && (2===o&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad ? i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange ? i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)), X.call(this) }}) }, scrollTo: function (t, o){ if("undefined"!=typeof t&&null!=t){ var n=f.call(this); return e(n).each(function (){ var n=e(this); if(n.data(a)){ var i=n.data(a), r=i.opt, l={ trigger: "external", scrollInertia: r.scrollInertia, scrollEasing: "mcsEaseInOut", moveDragger: !1, timeout: 60, callbacks: !0, onStart: !0, onUpdate: !0, onComplete: !0 }, s=e.extend(!0, {}, l, o), c=q.call(this, t), d=s.scrollInertia > 0&&s.scrollInertia < 17 ? 17:s.scrollInertia; c[0]=Y.call(this, c[0], "y"), c[1]=Y.call(this, c[1], "x"), s.moveDragger&&(c[0] *=i.scrollRatio.y, c[1] *=i.scrollRatio.x), s.dur=oe() ? 0:d, setTimeout(function (){ null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&i.overflowed[0]&&(s.dir="y", s.overwrite="all", V(n, c[0].toString(), s)), null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x", s.overwrite="none", V(n, c[1].toString(), s)) }, s.timeout) }}) }}, stop: function (){ var t=f.call(this); return e(t).each(function (){ var t=e(this); t.data(a)&&N(t) }) }, disable: function (t){ var o=f.call(this); return e(o).each(function (){ var o=e(this); if(o.data(a)){ { o.data(a) } X.call(this, "remove"), k.call(this), t&&B.call(this), M.call(this, !0), o.addClass(d[3]) }}) }, destroy: function (){ var t=f.call(this); return e(t).each(function (){ var n=e(this); if(n.data(a)){ var i=n.data(a), r=i.opt, l=e("#mCSB_" + i.idx), s=e("#mCSB_" + i.idx + "_container"), c=e(".mCSB_" + i.idx + "_scrollbar"); r.live&&m(r.liveSelector||e(t).selector), X.call(this, "remove"), k.call(this), B.call(this), n.removeData(a), K(this, "mcs"), c.remove(), s.find("img." + d[2]).removeClass(d[2]), l.replaceWith(s.contents()), n.removeClass(o + " _" + a + "_" + i.idx + " " + d[6] + " " + d[7] + " " + d[5] + " " + d[3]).addClass(d[4]) }}) }}, f=function (){ return "object"!=typeof e(this)||e(this).length < 1 ? n:this }, h=function (t){ var o=["rounded", "rounded-dark", "rounded-dots", "rounded-dots-dark"], a=["rounded-dots", "rounded-dots-dark", "3d", "3d-dark", "3d-thick", "3d-thick-dark", "inset", "inset-dark", "inset-2", "inset-2-dark", "inset-3", "inset-3-dark"], n=["minimal", "minimal-dark"], i=["minimal", "minimal-dark"], r=["minimal", "minimal-dark"]; t.autoDraggerLength=e.inArray(t.theme, o) > -1 ? !1:t.autoDraggerLength, t.autoExpandScrollbar=e.inArray(t.theme, a) > -1 ? !1:t.autoExpandScrollbar, t.scrollButtons.enable=e.inArray(t.theme, n) > -1 ? !1:t.scrollButtons.enable, t.autoHideScrollbar=e.inArray(t.theme, i) > -1 ? !0:t.autoHideScrollbar, t.scrollbarPosition=e.inArray(t.theme, r) > -1 ? "outside":t.scrollbarPosition }, m=function (e){ l[e]&&(clearTimeout(l[e]), K(l, e)) }, p=function (e){ return "yx"===e||"xy"===e||"auto"===e ? "yx":"x"===e||"horizontal"===e ? "x":"y" }, g=function (e){ return "stepped"===e||"pixels"===e||"step"===e||"click"===e ? "stepped":"stepless" }, v=function (){ var t=e(this), n=t.data(a), i=n.opt, r=i.autoExpandScrollbar ? " " + d[1] + "_expand":"", l=["<div id='mCSB_" + n.idx + "_scrollbar_vertical' class='mCSB_scrollTools mCSB_" + n.idx + "_scrollbar mCS-" + i.theme + " mCSB_scrollTools_vertical" + r + "'><div class='" + d[12] + "'><div id='mCSB_" + n.idx + "_dragger_vertical' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>", "<div id='mCSB_" + n.idx + "_scrollbar_horizontal' class='mCSB_scrollTools mCSB_" + n.idx + "_scrollbar mCS-" + i.theme + " mCSB_scrollTools_horizontal" + r + "'><div class='" + d[12] + "'><div id='mCSB_" + n.idx + "_dragger_horizontal' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"], s="yx"===i.axis ? "mCSB_vertical_horizontal":"x"===i.axis ? "mCSB_horizontal":"mCSB_vertical", c="yx"===i.axis ? l[0] + l[1]:"x"===i.axis ? l[1]:l[0], u="yx"===i.axis ? "<div id='mCSB_" + n.idx + "_container_wrapper' class='mCSB_container_wrapper' />":"", f=i.autoHideScrollbar ? " " + d[6]:"", h="x"!==i.axis&&"rtl"===n.langDir ? " " + d[7]:""; i.setWidth&&t.css("width", i.setWidth), i.setHeight&&t.css("height", i.setHeight), i.setLeft="y"!==i.axis&&"rtl"===n.langDir ? "989999px":i.setLeft, t.addClass(o + " _" + a + "_" + n.idx + f + h).wrapInner("<div id='mCSB_" + n.idx + "' class='mCustomScrollBox mCS-" + i.theme + " " + s + "'><div id='mCSB_" + n.idx + "_container' class='mCSB_container' style='position:relative; top:" + i.setTop + "; left:" + i.setLeft + ";' dir=" + n.langDir + " /></div>"); var m=e("#mCSB_" + n.idx), p=e("#mCSB_" + n.idx + "_container"); "y"===i.axis||i.advanced.autoExpandHorizontalScroll||p.css("width", x(p)), "outside"===i.scrollbarPosition ? ("static"===t.css("position")&&t.css("position", "relative"), t.css("overflow", "visible"), m.addClass("mCSB_outside").after(c)):(m.addClass("mCSB_inside").append(c), p.wrap(u)), w.call(this); var g=[e("#mCSB_" + n.idx + "_dragger_vertical"), e("#mCSB_" + n.idx + "_dragger_horizontal")]; g[0].css("min-height", g[0].height()), g[1].css("min-width", g[1].width()) }, x=function (t){ var o=[t[0].scrollWidth, Math.max.apply(Math, t.children().map(function (){ return e(this).outerWidth(!0) }).get())], a=t.parent().width(); return o[0] > a ? o[0]:o[1] > a ? o[1]:"100%" }, _=function (){ var t=e(this), o=t.data(a), n=o.opt, i=e("#mCSB_" + o.idx + "_container"); if(n.advanced.autoExpandHorizontalScroll&&"y"!==n.axis){ i.css({ width: "auto", "min-width": 0, "overflow-x": "scroll" });var r=Math.ceil(i[0].scrollWidth); 3===n.advanced.autoExpandHorizontalScroll||2!==n.advanced.autoExpandHorizontalScroll&&r > i.parent().width() ? i.css({ width: r, "min-width": "100%", "overflow-x": "inherit" }):i.css({ "overflow-x": "inherit", position: "absolute" }).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({ width: Math.ceil(i[0].getBoundingClientRect().right + .4) - Math.floor(i[0].getBoundingClientRect().left), "min-width": "100%", position: "relative" }).unwrap() }}, w=function (){ var t=e(this), o=t.data(a), n=o.opt, i=e(".mCSB_" + o.idx + "_scrollbar:first"), r=ee(n.scrollButtons.tabindex) ? "tabindex='" + n.scrollButtons.tabindex + "'":"", l=["<a href='#' class='" + d[13] + "' oncontextmenu='return false;' " + r + " />", "<a href='#' class='" + d[14] + "' oncontextmenu='return false;' " + r + " />", "<a href='#' class='" + d[15] + "' oncontextmenu='return false;' " + r + " />", "<a href='#' class='" + d[16] + "' oncontextmenu='return false;' " + r + " />"], s=["x"===n.axis ? l[2]:l[0], "x"===n.axis ? l[3]:l[1], l[2], l[3]]; n.scrollButtons.enable&&i.prepend(s[0]).append(s[1]).next(".mCSB_scrollTools").prepend(s[2]).append(s[3]) }, S=function (){ var t=e(this), o=t.data(a), n=e("#mCSB_" + o.idx), i=e("#mCSB_" + o.idx + "_container"), r=[e("#mCSB_" + o.idx + "_dragger_vertical"), e("#mCSB_" + o.idx + "_dragger_horizontal")], l=[n.height() / i.outerHeight(!1), n.width() / i.outerWidth(!1)], c=[parseInt(r[0].css("min-height")), Math.round(l[0] * r[0].parent().height()), parseInt(r[1].css("min-width")), Math.round(l[1] * r[1].parent().width())], d=s&&c[1] < c[0] ? c[0]:c[1], u=s&&c[3] < c[2] ? c[2]:c[3]; r[0].css({ height: d, "max-height": r[0].parent().height() - 10 }).find(".mCSB_dragger_bar").css({ "line-height": c[0] + "px" }), r[1].css({ width: u, "max-width": r[1].parent().width() - 10 }) }, b=function (){ var t=e(this), o=t.data(a), n=e("#mCSB_" + o.idx), i=e("#mCSB_" + o.idx + "_container"), r=[e("#mCSB_" + o.idx + "_dragger_vertical"), e("#mCSB_" + o.idx + "_dragger_horizontal")], l=[i.outerHeight(!1) - n.height(), i.outerWidth(!1) - n.width()], s=[l[0] / (r[0].parent().height() - r[0].height()), l[1] / (r[1].parent().width() - r[1].width())]; o.scrollRatio={ y: s[0], x: s[1] }}, C=function (e, t, o){ var a=o ? d[0] + "_expanded":"", n=e.closest(".mCSB_scrollTools"); "active"===t ? (e.toggleClass(d[0] + " " + a), n.toggleClass(d[1]), e[0]._draggable=e[0]._draggable ? 0:1):e[0]._draggable||("hide"===t ? (e.removeClass(d[0]), n.removeClass(d[1])):(e.addClass(d[0]), n.addClass(d[1]))) }, y=function (){ var t=e(this), o=t.data(a), n=e("#mCSB_" + o.idx), i=e("#mCSB_" + o.idx + "_container"), r=null==o.overflowed ? i.height():i.outerHeight(!1), l=null==o.overflowed ? i.width():i.outerWidth(!1), s=i[0].scrollHeight, c=i[0].scrollWidth; return s > r&&(r=s), c > l&&(l=c), [r > n.height(), l > n.width()] }, B=function (){ var t=e(this), o=t.data(a), n=o.opt, i=e("#mCSB_" + o.idx), r=e("#mCSB_" + o.idx + "_container"), l=[e("#mCSB_" + o.idx + "_dragger_vertical"), e("#mCSB_" + o.idx + "_dragger_horizontal")]; if(N(t), ("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(l[0].add(r).css("top", 0), V(t, "_resetY")), "y"!==n.axis&&!o.overflowed[1]||"x"===n.axis&&o.overflowed[1]){ var s=dx=0; "rtl"===o.langDir&&(s=i.width() - r.outerWidth(!1), dx=Math.abs(s / o.scrollRatio.x)), r.css("left", s), l[1].css("left", dx), V(t, "_resetX") }}, T=function (){ function t(){ r=setTimeout(function (){ e.event.special.mousewheel ? (clearTimeout(r), R.call(o[0])):t() }, 100) } var o=e(this), n=o.data(a), i=n.opt; if(!n.bindEvents){ if(I.call(this), i.contentTouchScroll&&D.call(this), E.call(this), i.mouseWheel.enable){ var r; t() } L.call(this), P.call(this), i.advanced.autoScrollOnFocus&&z.call(this), i.scrollButtons.enable&&H.call(this), i.keyboard.enable&&U.call(this), n.bindEvents = !0 }}, k=function (){ var t=e(this), o=t.data(a), n=o.opt, i=a + "_" + o.idx, r=".mCSB_" + o.idx + "_scrollbar", l=e("#mCSB_" + o.idx + ",#mCSB_" + o.idx + "_container,#mCSB_" + o.idx + "_container_wrapper," + r + " ." + d[12] + ",#mCSB_" + o.idx + "_dragger_vertical,#mCSB_" + o.idx + "_dragger_horizontal," + r + ">a"), s=e("#mCSB_" + o.idx + "_container"); n.advanced.releaseDraggableSelectors&&l.add(e(n.advanced.releaseDraggableSelectors)), n.advanced.extraDraggableSelectors&&l.add(e(n.advanced.extraDraggableSelectors)), o.bindEvents&&(e(document).add(e(!W()||top.document)).unbind("." + i), l.each(function (){ e(this).unbind("." + i) }), clearTimeout(t[0]._focusTimeout), K(t[0], "_focusTimeout"), clearTimeout(o.sequential.step), K(o.sequential, "step"), clearTimeout(s[0].onCompleteTimeout), K(s[0], "onCompleteTimeout"), o.bindEvents = !1) }, M=function (t){ var o=e(this), n=o.data(a), i=n.opt, r=e("#mCSB_" + n.idx + "_container_wrapper"), l=r.length ? r:e("#mCSB_" + n.idx + "_container"), s=[e("#mCSB_" + n.idx + "_scrollbar_vertical"), e("#mCSB_" + n.idx + "_scrollbar_horizontal")], c=[s[0].find(".mCSB_dragger"), s[1].find(".mCSB_dragger")]; "x"!==i.axis&&(n.overflowed[0]&&!t ? (s[0].add(c[0]).add(s[0].children("a")).css("display", "block"), l.removeClass(d[8] + " " + d[10])):(i.alwaysShowScrollbar ? (2!==i.alwaysShowScrollbar&&c[0].css("display", "none"), l.removeClass(d[10])):(s[0].css("display", "none"), l.addClass(d[10])), l.addClass(d[8]))), "y"!==i.axis&&(n.overflowed[1]&&!t ? (s[1].add(c[1]).add(s[1].children("a")).css("display", "block"), l.removeClass(d[9] + " " + d[11])):(i.alwaysShowScrollbar ? (2!==i.alwaysShowScrollbar&&c[1].css("display", "none"), l.removeClass(d[11])):(s[1].css("display", "none"), l.addClass(d[11])), l.addClass(d[9]))), n.overflowed[0]||n.overflowed[1] ? o.removeClass(d[5]):o.addClass(d[5]) }, O=function (t){ var o=t.type, a=t.target.ownerDocument!==document ? [e(frameElement).offset().top, e(frameElement).offset().left]:null, n=W()&&t.target.ownerDocument!==top.document ? [e(t.view.frameElement).offset().top, e(t.view.frameElement).offset().left]:[0, 0]; switch (o){ case "pointerdown": case "MSPointerDown": case "pointermove": case "MSPointerMove": case "pointerup": case "MSPointerUp": return a ? [t.originalEvent.pageY - a[0] + n[0], t.originalEvent.pageX - a[1] + n[1], !1]:[t.originalEvent.pageY, t.originalEvent.pageX, !1]; case "touchstart": case "touchmove": case "touchend": var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0], r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length; return t.target.ownerDocument!==document ? [i.screenY, i.screenX, r > 1]:[i.pageY, i.pageX, r > 1]; default: return a ? [t.pageY - a[0] + n[0], t.pageX - a[1] + n[1], !1]:[t.pageY, t.pageX, !1] }}, I=function (){ function t(e){ var t=m.find("iframe"); if(t.length){ var o=e ? "auto":"none"; t.css("pointer-events", o) }} function o(e, t, o, a){ if(m[0].idleTimer=u.scrollInertia < 233 ? 250:0, n.attr("id")===h[1]) var i="x", r=(n[0].offsetLeft - t + a) * d.scrollRatio.x; else var i="y", r=(n[0].offsetTop - e + o) * d.scrollRatio.y; V(l, r.toString(), { dir: i, drag: !0 }) } var n, i, r, l=e(this), d=l.data(a), u=d.opt, f=a + "_" + d.idx, h=["mCSB_" + d.idx + "_dragger_vertical", "mCSB_" + d.idx + "_dragger_horizontal"], m=e("#mCSB_" + d.idx + "_container"), p=e("#" + h[0] + ",#" + h[1]), g=u.advanced.releaseDraggableSelectors ? p.add(e(u.advanced.releaseDraggableSelectors)):p, v=u.advanced.extraDraggableSelectors ? e(!W()||top.document).add(e(u.advanced.extraDraggableSelectors)):e(!W()||top.document); p.bind("mousedown." + f + " touchstart." + f + " pointerdown." + f + " MSPointerDown." + f, function (o){ if(o.stopImmediatePropagation(), o.preventDefault(), Z(o)){ c = !0, s&&(document.onselectstart=function (){ return !1 }), t(!1), N(l), n=e(this); var a=n.offset(), d=O(o)[0] - a.top, f=O(o)[1] - a.left, h=n.height() + a.top, m=n.width() + a.left; h > d&&d > 0&&m > f&&f > 0&&(i=d, r=f), C(n, "active", u.autoExpandScrollbar) }}).bind("touchmove." + f, function (e){ e.stopImmediatePropagation(), e.preventDefault(); var t=n.offset(), a=O(e)[0] - t.top, l=O(e)[1] - t.left; o(i, r, a, l) }), e(document).add(v).bind("mousemove." + f + " pointermove." + f + " MSPointerMove." + f, function (e){ if(n){ var t=n.offset(), a=O(e)[0] - t.top, l=O(e)[1] - t.left; if(i===a&&r===l) return; o(i, r, a, l) }}).add(g).bind("mouseup." + f + " touchend." + f + " pointerup." + f + " MSPointerUp." + f, function (e){ n&&(C(n, "active", u.autoExpandScrollbar), n=null), c = !1, s&&(document.onselectstart=null), t(!0) }) }, D=function (){ function o(e){ if(!$(e)||c || O(e)[2]) return void (t=0); t=1, b=0, C=0, d=1, y.removeClass("mCS_touch_action"); var o=I.offset(); u=O(e)[0] - o.top, f=O(e)[1] - o.left, z=[O(e)[0], O(e)[1]] } function n(e){ if($(e)&&!c&&!O(e)[2]&&(T.documentTouchScroll||e.preventDefault(), e.stopImmediatePropagation(), (!C||b)&&d)){ g=G(); var t=M.offset(), o=O(e)[0] - t.top, a=O(e)[1] - t.left, n="mcsLinearOut"; if(E.push(o), R.push(a), z[2]=Math.abs(O(e)[0] - z[0]), z[3]=Math.abs(O(e)[1] - z[1]), B.overflowed[0]) var i=D[0].parent().height() - D[0].height(), r=u - o > 0&&o - u > -(i * B.scrollRatio.y)&&(2 * z[3] < z[2]||"yx"===T.axis); if(B.overflowed[1]) var l=D[1].parent().width() - D[1].width(), h=f - a > 0&&a - f > -(l * B.scrollRatio.x)&&(2 * z[2] < z[3]||"yx"===T.axis); r||h ? (U||e.preventDefault(), b=1):(C=1, y.addClass("mCS_touch_action")), U&&e.preventDefault(), w="yx"===T.axis ? [u - o, f - a]:"x"===T.axis ? [null, f - a]:[u - o, null], I[0].idleTimer=250, B.overflowed[0]&&s(w[0], A, n, "y", "all", !0), B.overflowed[1]&&s(w[1], A, n, "x", L, !0) }} function i(e){ if(!$(e)||c || O(e)[2]) return void (t=0); t=1, e.stopImmediatePropagation(), N(y), p=G(); var o=M.offset(); h=O(e)[0] - o.top, m=O(e)[1] - o.left, E=[], R=[] } function r(e){ if($(e)&&!c&&!O(e)[2]){ d=0, e.stopImmediatePropagation(), b=0, C=0, v=G(); var t=M.offset(), o=O(e)[0] - t.top, a=O(e)[1] - t.left; if(!(v - g > 30)){ _=1e3 / (v - p); var n="mcsEaseOut", i=2.5 > _, r=i ? [E[E.length - 2], R[R.length - 2]]:[0, 0]; x=i ? [o - r[0], a - r[1]]:[o - h, a - m]; var u=[Math.abs(x[0]), Math.abs(x[1])]; _=i ? [Math.abs(x[0] / 4), Math.abs(x[1] / 4)]:[_, _]; var f=[Math.abs(I[0].offsetTop) - x[0] * l(u[0] / _[0], _[0]), Math.abs(I[0].offsetLeft) - x[1] * l(u[1] / _[1], _[1])]; w="yx"===T.axis ? [f[0], f[1]]:"x"===T.axis ? [null, f[1]]:[f[0], null], S=[4 * u[0] + T.scrollInertia, 4 * u[1] + T.scrollInertia]; var y=parseInt(T.contentTouchScroll)||0; w[0]=u[0] > y ? w[0]:0, w[1]=u[1] > y ? w[1]:0, B.overflowed[0]&&s(w[0], S[0], n, "y", L, !1), B.overflowed[1]&&s(w[1], S[1], n, "x", L, !1) }} } function l(e, t){ var o=[1.5 * t, 2 * t, t / 1.5, t / 2]; return e > 90 ? t > 4 ? o[0]:o[3]:e > 60 ? t > 3 ? o[3]:o[2]:e > 30 ? t > 8 ? o[1]:t > 6 ? o[0]:t > 4 ? t:o[2]:t > 8 ? t:o[3] } function s(e, t, o, a, n, i){ e&&V(y, e.toString(), { dur: t, scrollEasing: o, dir: a, overwrite: n, drag: i }) } var d, u, f, h, m, p, g, v, x, _, w, S, b, C, y=e(this), B=y.data(a), T=B.opt, k=a + "_" + B.idx, M=e("#mCSB_" + B.idx), I=e("#mCSB_" + B.idx + "_container"), D=[e("#mCSB_" + B.idx + "_dragger_vertical"), e("#mCSB_" + B.idx + "_dragger_horizontal")], E=[], R=[], A=0, L="yx"===T.axis ? "none":"all", z=[], P=I.find("iframe"), H=["touchstart." + k + " pointerdown." + k + " MSPointerDown." + k, "touchmove." + k + " pointermove." + k + " MSPointerMove." + k, "touchend." + k + " pointerup." + k + " MSPointerUp." + k], U=void 0!==document.body.style.touchAction; I.bind(H[0], function (e){ o(e) }).bind(H[1], function (e){ n(e) }), M.bind(H[0], function (e){ i(e) }).bind(H[2], function (e){ r(e) }), P.length&&P.each(function (){ e(this).load(function (){ W(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0], function (e){ o(e), i(e) }).bind(H[1], function (e){ n(e) }).bind(H[2], function (e){ r(e) }) }) }) }, E=function (){ function o(){ return window.getSelection ? window.getSelection().toString():document.selection&&"Control"!=document.selection.type ? document.selection.createRange().text:0 } function n(e, t, o){ d.type=o&&i ? "stepped":"stepless", d.scrollAmount=10, F(r, e, t, "mcsLinearOut", o ? 60:null) } var i, r=e(this), l=r.data(a), s=l.opt, d=l.sequential, u=a + "_" + l.idx, f=e("#mCSB_" + l.idx + "_container"), h=f.parent(); f.bind("mousedown." + u, function (e){ t||i || (i=1, c = !0) }).add(document).bind("mousemove." + u, function (e){ if(!t&&i && o()){ var a=f.offset(), r=O(e)[0] - a.top + f[0].offsetTop, c=O(e)[1] - a.left + f[0].offsetLeft; r > 0&&r < h.height()&&c > 0&&c < h.width() ? d.step&&n("off", null, "stepped"):("x"!==s.axis&&l.overflowed[0]&&(0 > r ? n("on", 38):r > h.height()&&n("on", 40)), "y"!==s.axis&&l.overflowed[1]&&(0 > c ? n("on", 37):c > h.width()&&n("on", 39))) }}).bind("mouseup." + u + " dragend." + u, function (e){ t||(i&&(i=0, n("off", null)), c = !1) }) }, R=function (){ function t(t, a){ if(N(o), !A(o, t.target)){ var r="auto"!==i.mouseWheel.deltaFactor ? parseInt(i.mouseWheel.deltaFactor):s&&t.deltaFactor < 100 ? 100:t.deltaFactor||100, d=i.scrollInertia; if("x"===i.axis||"x"===i.mouseWheel.axis) var u="x", f=[Math.round(r * n.scrollRatio.x), parseInt(i.mouseWheel.scrollAmount)], h="auto"!==i.mouseWheel.scrollAmount ? f[1]:f[0] >=l.width() ? .9 * l.width():f[0], m=Math.abs(e("#mCSB_" + n.idx + "_container")[0].offsetLeft), p=c[1][0].offsetLeft, g=c[1].parent().width() - c[1].width(), v=t.deltaX||t.deltaY||a; else var u="y", f=[Math.round(r * n.scrollRatio.y), parseInt(i.mouseWheel.scrollAmount)], h="auto"!==i.mouseWheel.scrollAmount ? f[1]:f[0] >=l.height() ? .9 * l.height():f[0], m=Math.abs(e("#mCSB_" + n.idx + "_container")[0].offsetTop), p=c[0][0].offsetTop, g=c[0].parent().height() - c[0].height(), v=t.deltaY||a; "y"===u&&!n.overflowed[0]||"x"===u&&!n.overflowed[1]||((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v), i.mouseWheel.normalizeDelta&&(v=0 > v ? -1:1), (v > 0&&0!==p||0 > v&&p!==g||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(), t.preventDefault()), t.deltaFactor < 2&&!i.mouseWheel.normalizeDelta&&(h=t.deltaFactor, d=17), V(o, (m - v * h).toString(), { dir: u, dur: d })) }} if(e(this).data(a)){ var o=e(this), n=o.data(a), i=n.opt, r=a + "_" + n.idx, l=e("#mCSB_" + n.idx), c=[e("#mCSB_" + n.idx + "_dragger_vertical"), e("#mCSB_" + n.idx + "_dragger_horizontal")], d=e("#mCSB_" + n.idx + "_container").find("iframe"); d.length&&d.each(function (){ e(this).load(function (){ W(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel." + r, function (e, o){ t(e, o) }) }) }), l.bind("mousewheel." + r, function (e, o){ t(e, o) }) }}, W=function (e){ var t=null; if(e){ try { var o=e.contentDocument||e.contentWindow.document; t=o.body.innerHTML } catch (a){ } return null!==t } try { var o=top.document; t=o.body.innerHTML } catch (a){ } return null!==t }, A=function (t, o){ var n=o.nodeName.toLowerCase(), i=t.data(a).opt.mouseWheel.disableOver, r=["select", "textarea"]; return e.inArray(n, i) > -1&&!(e.inArray(n, r) > -1&&!e(o).is(":focus")) }, L=function (){ var t, o=e(this), n=o.data(a), i=a + "_" + n.idx, r=e("#mCSB_" + n.idx + "_container"), l=r.parent(), s=e(".mCSB_" + n.idx + "_scrollbar ." + d[12]); s.bind("mousedown." + i + " touchstart." + i + " pointerdown." + i + " MSPointerDown." + i, function (o){ c = !0, e(o.target).hasClass("mCSB_dragger")||(t=1) }).bind("touchend." + i + " pointerup." + i + " MSPointerUp." + i, function (e){ c = !1 }).bind("click." + i, function (a){ if(t&&(t=0, e(a.target).hasClass(d[12])||e(a.target).hasClass("mCSB_draggerRail"))){ N(o); var i=e(this), s=i.find(".mCSB_dragger"); if(i.parent(".mCSB_scrollTools_horizontal").length > 0){ if(!n.overflowed[1]) return; var c="x", u=a.pageX > s.offset().left ? -1:1, f=Math.abs(r[0].offsetLeft) - .9 * u * l.width() }else{ if(!n.overflowed[0]) return; var c="y", u=a.pageY > s.offset().top ? -1:1, f=Math.abs(r[0].offsetTop) - .9 * u * l.height() } V(o, f.toString(), { dir: c, scrollEasing: "mcsEaseInOut" }) }}) }, z=function (){ var t=e(this), o=t.data(a), n=o.opt, i=a + "_" + o.idx, r=e("#mCSB_" + o.idx + "_container"), l=r.parent(); r.bind("focusin." + i, function (o){ var a=e(document.activeElement), i=r.find(".mCustomScrollBox").length, s=0; a.is(n.advanced.autoScrollOnFocus)&&(N(t), clearTimeout(t[0]._focusTimeout), t[0]._focusTimer=i ? (s + 17) * i:0, t[0]._focusTimeout=setTimeout(function (){ var e=[te(a)[0], te(a)[1]], o=[r[0].offsetTop, r[0].offsetLeft], i=[o[0] + e[0] >=0&&o[0] + e[0] < l.height() - a.outerHeight(!1), o[1] + e[1] >=0&&o[0] + e[1] < l.width() - a.outerWidth(!1)], c="yx"!==n.axis||i[0]||i[1] ? "all":"none"; "x"===n.axis||i[0]||V(t, e[0].toString(), { dir: "y", scrollEasing: "mcsEaseInOut", overwrite: c, dur: s }), "y"===n.axis||i[1]||V(t, e[1].toString(), { dir: "x", scrollEasing: "mcsEaseInOut", overwrite: c, dur: s }) }, t[0]._focusTimer)) }) }, P=function (){ var t=e(this), o=t.data(a), n=a + "_" + o.idx, i=e("#mCSB_" + o.idx + "_container").parent(); i.bind("scroll." + n, function (t){ (0!==i.scrollTop()||0!==i.scrollLeft())&&e(".mCSB_" + o.idx + "_scrollbar").css("visibility", "hidden") }) }, H=function (){ var t=e(this), o=t.data(a), n=o.opt, i=o.sequential, r=a + "_" + o.idx, l=".mCSB_" + o.idx + "_scrollbar", s=e(l + ">a"); s.bind("mousedown." + r + " touchstart." + r + " pointerdown." + r + " MSPointerDown." + r + " mouseup." + r + " touchend." + r + " pointerup." + r + " MSPointerUp." + r + " mouseout." + r + " pointerout." + r + " MSPointerOut." + r + " click." + r, function (a){ function r(e, o){ i.scrollAmount=n.scrollButtons.scrollAmount, F(t, e, o) } if(a.preventDefault(), Z(a)){ var l=e(this).attr("class"); switch (i.type=n.scrollButtons.scrollType, a.type){ case "mousedown": case "touchstart": case "pointerdown": case "MSPointerDown": if("stepped"===i.type) return; c = !0, o.tweenRunning = !1, r("on", l); break; case "mouseup": case "touchend": case "pointerup": case "MSPointerUp": case "mouseout": case "pointerout": case "MSPointerOut": if("stepped"===i.type) return; c = !1, i.dir&&r("off", l); break; case "click": if("stepped"!==i.type||o.tweenRunning) return; r("on", l) }} }) }, U=function (){ function t(t){ function a(e, t){ r.type=i.keyboard.scrollType, r.scrollAmount=i.keyboard.scrollAmount, "stepped"===r.type&&n.tweenRunning||F(o, e, t) } switch (t.type){ case "blur": n.tweenRunning&&r.dir&&a("off", null); break; case "keydown": case "keyup": var l=t.keyCode ? t.keyCode:t.which, s="on"; if("x"!==i.axis&&(38===l||40===l)||"y"!==i.axis&&(37===l||39===l)){ if((38===l||40===l)&&!n.overflowed[0]||(37===l||39===l)&&!n.overflowed[1]) return; "keyup"===t.type&&(s="off"), e(document.activeElement).is(u)||(t.preventDefault(), t.stopImmediatePropagation(), a(s, l)) }else if(33===l||34===l){ if((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(), t.stopImmediatePropagation()), "keyup"===t.type){ N(o); var f=34===l ? -1:1; if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0]) var h="x", m=Math.abs(c[0].offsetLeft) - .9 * f * d.width(); else var h="y", m=Math.abs(c[0].offsetTop) - .9 * f * d.height(); V(o, m.toString(), { dir: h, scrollEasing: "mcsEaseInOut" }) }}else if((35===l||36===l)&&!e(document.activeElement).is(u)&&((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(), t.stopImmediatePropagation()), "keyup"===t.type)){ if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0]) var h="x", m=35===l ? Math.abs(d.width() - c.outerWidth(!1)):0; else var h="y", m=35===l ? Math.abs(d.height() - c.outerHeight(!1)):0; V(o, m.toString(), { dir: h, scrollEasing: "mcsEaseInOut" }) }} } var o=e(this), n=o.data(a), i=n.opt, r=n.sequential, l=a + "_" + n.idx, s=e("#mCSB_" + n.idx), c=e("#mCSB_" + n.idx + "_container"), d=c.parent(), u="input,textarea,select,datalist,keygen,[contenteditable='true']", f=c.find("iframe"), h=["blur." + l + " keydown." + l + " keyup." + l]; f.length&&f.each(function (){ e(this).load(function (){ W(this)&&e(this.contentDocument||this.contentWindow.document).bind(h[0], function (e){ t(e) }) }) }), s.attr("tabindex", "0").bind(h[0], function (e){ t(e) }) }, F=function (t, o, n, i, r){ function l(e){ u.snapAmount&&(f.scrollAmount=u.snapAmount instanceof Array ? "x"===f.dir[0] ? u.snapAmount[1]:u.snapAmount[0]:u.snapAmount); var o="stepped"!==f.type, a=r ? r:e ? o ? p / 1.5:g : 1e3 / 60, n=e ? o ? 7.5:40:2.5, s=[Math.abs(h[0].offsetTop), Math.abs(h[0].offsetLeft)], d=[c.scrollRatio.y > 10 ? 10:c.scrollRatio.y, c.scrollRatio.x > 10 ? 10:c.scrollRatio.x], m="x"===f.dir[0] ? s[1] + f.dir[1] * d[1] * n:s[0] + f.dir[1] * d[0] * n, v="x"===f.dir[0] ? s[1] + f.dir[1] * parseInt(f.scrollAmount):s[0] + f.dir[1] * parseInt(f.scrollAmount), x="auto"!==f.scrollAmount ? v:m, _=i ? i:e ? o ? "mcsLinearOut":"mcsEaseInOut":"mcsLinear", w=e ? !0:!1; return e&&17 > a&&(x="x"===f.dir[0] ? s[1]:s[0]), V(t, x.toString(), { dir: f.dir[0], scrollEasing: _, dur: a, onComplete: w }), e ? void (f.dir = !1):(clearTimeout(f.step), void (f.step=setTimeout(function (){ l() }, a))) } function s(){ clearTimeout(f.step), K(f, "step"), N(t) } var c=t.data(a), u=c.opt, f=c.sequential, h=e("#mCSB_" + c.idx + "_container"), m="stepped"===f.type ? !0:!1, p=u.scrollInertia < 26 ? 26:u.scrollInertia, g=u.scrollInertia < 1 ? 17:u.scrollInertia; switch (o){ case "on": if(f.dir=[n===d[16]||n===d[15]||39===n||37===n ? "x":"y", n===d[13]||n===d[15]||38===n||37===n ? -1:1], N(t), ee(n)&&"stepped"===f.type) return; l(m); break; case "off": s(), (m||c.tweenRunning&&f.dir)&&l(!0) }}, q=function (t){ var o=e(this).data(a).opt, n=[]; return "function"==typeof t&&(t=t()), t instanceof Array ? n=t.length > 1 ? [t[0], t[1]]:"x"===o.axis ? [null, t[0]]:[t[0], null]:(n[0]=t.y ? t.y:t.x||"x"===o.axis ? null:t, n[1]=t.x ? t.x:t.y||"y"===o.axis ? null:t), "function"==typeof n[0]&&(n[0]=n[0]()), "function"==typeof n[1]&&(n[1]=n[1]()), n }, Y=function (t, o){ if(null!=t&&"undefined"!=typeof t){ var n=e(this), i=n.data(a), r=i.opt, l=e("#mCSB_" + i.idx + "_container"), s=l.parent(), c=typeof t; o||(o="x"===r.axis ? "x":"y"); var d="x"===o ? l.outerWidth(!1):l.outerHeight(!1), f="x"===o ? l[0].offsetLeft:l[0].offsetTop, h="x"===o ? "left":"top"; switch (c){ case "function": return t(); case "object": var m=t.jquery ? t:e(t); if(!m.length) return; return "x"===o ? te(m)[1]:te(m)[0]; case "string": case "number": if(ee(t)) return Math.abs(t); if(-1!==t.indexOf("%")) return Math.abs(d * parseInt(t) / 100); if(-1!==t.indexOf("-=")) return Math.abs(f - parseInt(t.split("-=")[1])); if(-1!==t.indexOf("+=")){ var p=f + parseInt(t.split("+=")[1]); return p >=0 ? 0:Math.abs(p) } if(-1!==t.indexOf("px")&&ee(t.split("px")[0])) return Math.abs(t.split("px")[0]); if("top"===t||"left"===t) return 0; if("bottom"===t) return Math.abs(s.height() - l.outerHeight(!1)); if("right"===t) return Math.abs(s.width() - l.outerWidth(!1)); if("first"===t||"last"===t){ var m=l.find(":" + t); return "x"===o ? te(m)[1]:te(m)[0] } return e(t).length ? "x"===o ? te(e(t))[1]:te(e(t))[0]:(l.css(h, t), void u.update.call(null, n[0])) }} }, X=function (t){
function o(){ return clearTimeout(f[0].autoUpdate), 0===l.parents("html").length ? void (l=null):void (f[0].autoUpdate=setTimeout(function (){ return c.advanced.updateOnSelectorChange&&(s.poll.change.n=i(), s.poll.change.n!==s.poll.change.o) ? (s.poll.change.o=s.poll.change.n, void r(3)):c.advanced.updateOnContentResize&&(s.poll.size.n=l[0].scrollHeight + l[0].scrollWidth + f[0].offsetHeight + l[0].offsetHeight + l[0].offsetWidth, s.poll.size.n!==s.poll.size.o) ? (s.poll.size.o=s.poll.size.n, void r(1)):!c.advanced.updateOnImageLoad||"auto"===c.advanced.updateOnImageLoad&&"y"===c.axis||(s.poll.img.n=f.find("img").length, s.poll.img.n===s.poll.img.o) ? void ((c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&o()):(s.poll.img.o=s.poll.img.n, void f.find("img").each(function (){ n(this) })) }, c.advanced.autoUpdateTimeout)) } function n(t){ function o(e, t){ return function (){ return t.apply(e, arguments) }} function a(){ this.onload=null, e(t).addClass(d[2]), r(2) } if(e(t).hasClass(d[2])) return void r(); var n=new Image; n.onload=o(n, a), n.src=t.src } function i(){
c.advanced.updateOnSelectorChange===!0&&(c.advanced.updateOnSelectorChange="*"); var e=0, t=f.find(c.advanced.updateOnSelectorChange);
return c.advanced.updateOnSelectorChange&&t.length > 0&&t.each(function (){ e +=this.offsetHeight + this.offsetWidth }), e
} function r(e){ clearTimeout(f[0].autoUpdate), u.update.call(null, l[0], e) } var l=e(this), s=l.data(a), c=s.opt, f=e("#mCSB_" + s.idx + "_container"); return t ? (clearTimeout(f[0].autoUpdate), void K(f[0], "autoUpdate")):void o()
}, j=function (e, t, o){ return Math.round(e / t) * t - o }, N=function (t){ var o=t.data(a), n=e("#mCSB_" + o.idx + "_container,#mCSB_" + o.idx + "_container_wrapper,#mCSB_" + o.idx + "_dragger_vertical,#mCSB_" + o.idx + "_dragger_horizontal"); n.each(function (){ J.call(this) }) }, V=function (t, o, n){ function i(e){ return s&&c.callbacks[e]&&"function"==typeof c.callbacks[e] } function r(){ return [c.callbacks.alwaysTriggerOffsets||w >=S[0] + y, c.callbacks.alwaysTriggerOffsets||-B >=w] } function l(){ var e=[h[0].offsetTop, h[0].offsetLeft], o=[x[0].offsetTop, x[0].offsetLeft], a=[h.outerHeight(!1), h.outerWidth(!1)], i=[f.height(), f.width()]; t[0].mcs={ content: h, top: e[0], left: e[1], draggerTop: o[0], draggerLeft: o[1], topPct: Math.round(100 * Math.abs(e[0]) / (Math.abs(a[0]) - i[0])), leftPct: Math.round(100 * Math.abs(e[1]) / (Math.abs(a[1]) - i[1])), direction: n.dir }} var s=t.data(a), c=s.opt, d={ trigger: "internal", dir: "y", scrollEasing: "mcsEaseOut", drag: !1, dur: c.scrollInertia, overwrite: "all", callbacks: !0, onStart: !0, onUpdate: !0, onComplete: !0 }, n=e.extend(d, n), u=[n.dur, n.drag ? 0:n.dur], f=e("#mCSB_" + s.idx), h=e("#mCSB_" + s.idx + "_container"), m=h.parent(), p=c.callbacks.onTotalScrollOffset ? q.call(t, c.callbacks.onTotalScrollOffset):[0, 0], g=c.callbacks.onTotalScrollBackOffset ? q.call(t, c.callbacks.onTotalScrollBackOffset):[0, 0]; if(s.trigger=n.trigger, (0!==m.scrollTop()||0!==m.scrollLeft())&&(e(".mCSB_" + s.idx + "_scrollbar").css("visibility", "visible"), m.scrollTop(0).scrollLeft(0)), "_resetY"!==o||s.contentReset.y||(i("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(t[0]), s.contentReset.y=1), "_resetX"!==o||s.contentReset.x||(i("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(t[0]), s.contentReset.x=1), "_resetY"!==o&&"_resetX"!==o){ if(!s.contentReset.y&&t[0].mcs||!s.overflowed[0]||(i("onOverflowY")&&c.callbacks.onOverflowY.call(t[0]), s.contentReset.x=null), !s.contentReset.x&&t[0].mcs||!s.overflowed[1]||(i("onOverflowX")&&c.callbacks.onOverflowX.call(t[0]), s.contentReset.x=null), c.snapAmount){ var v=c.snapAmount instanceof Array ? "x"===n.dir ? c.snapAmount[1]:c.snapAmount[0]:c.snapAmount; o=j(o, v, c.snapOffset) } switch (n.dir){ case "x": var x=e("#mCSB_" + s.idx + "_dragger_horizontal"), _="left", w=h[0].offsetLeft, S=[f.width() - h.outerWidth(!1), x.parent().width() - x.width()], b=[o, 0===o ? 0:o / s.scrollRatio.x], y=p[1], B=g[1], T=y > 0 ? y / s.scrollRatio.x:0, k=B > 0 ? B / s.scrollRatio.x:0; break; case "y": var x=e("#mCSB_" + s.idx + "_dragger_vertical"), _="top", w=h[0].offsetTop, S=[f.height() - h.outerHeight(!1), x.parent().height() - x.height()], b=[o, 0===o ? 0:o / s.scrollRatio.y], y=p[0], B=g[0], T=y > 0 ? y / s.scrollRatio.y:0, k=B > 0 ? B / s.scrollRatio.y:0 }b[1] < 0||0===b[0]&&0===b[1] ? b=[0, 0]:b[1] >=S[1] ? b=[S[0], S[1]]:b[0]=-b[0], t[0].mcs||(l(), i("onInit")&&c.callbacks.onInit.call(t[0])), clearTimeout(h[0].onCompleteTimeout), Q(x[0], _, Math.round(b[1]), u[1], n.scrollEasing), (s.tweenRunning||!(0===w&&b[0] >=0||w===S[0]&&b[0] <=S[0]))&&Q(h[0], _, Math.round(b[0]), u[0], n.scrollEasing, n.overwrite, { onStart: function (){ n.callbacks&&n.onStart&&!s.tweenRunning&&(i("onScrollStart")&&(l(), c.callbacks.onScrollStart.call(t[0])), s.tweenRunning = !0, C(x), s.cbOffsets=r()) }, onUpdate: function (){ n.callbacks&&n.onUpdate&&i("whileScrolling")&&(l(), c.callbacks.whileScrolling.call(t[0])) }, onComplete: function (){ if(n.callbacks&&n.onComplete){ "yx"===c.axis&&clearTimeout(h[0].onCompleteTimeout); var e=h[0].idleTimer||0; h[0].onCompleteTimeout=setTimeout(function (){ i("onScroll")&&(l(), c.callbacks.onScroll.call(t[0])), i("onTotalScroll")&&b[1] >=S[1] - T&&s.cbOffsets[0]&&(l(), c.callbacks.onTotalScroll.call(t[0])), i("onTotalScrollBack")&&b[1] <=k&&s.cbOffsets[1]&&(l(), c.callbacks.onTotalScrollBack.call(t[0])), s.tweenRunning = !1, h[0].idleTimer=0, C(x, "hide") }, e) }} }) }}, Q=function (e, t, o, a, n, i, r){ function l(){ S.stop||(x||m.call(), x=G() - v, s(), x >=S.time&&(S.time=x > S.time ? x + f - (x - S.time):x + f - 1, S.time < x + 1&&(S.time=x + 1)), S.time < a ? S.id=h(l):g.call()) } function s(){ a > 0 ? (S.currVal=u(S.time, _, b, a, n), w[t]=Math.round(S.currVal) + "px"):w[t]=o + "px", p.call() } function c(){ f=1e3 / 60, S.time=x + f, h=window.requestAnimationFrame ? window.requestAnimationFrame:function (e){ return s(), setTimeout(e, .01) }, S.id=h(l) } function d(){ null!=S.id&&(window.requestAnimationFrame ? window.cancelAnimationFrame(S.id):clearTimeout(S.id), S.id=null) } function u(e, t, o, a, n){ switch (n){ case "linear": case "mcsLinear": return o * e / a + t; case "mcsLinearOut": return e /=a, e--, o * Math.sqrt(1 - e * e) + t; case "easeInOutSmooth": return e /=a / 2, 1 > e ? o / 2 * e * e + t:(e--, -o / 2 * (e * (e - 2) - 1) + t); case "easeInOutStrong": return e /=a / 2, 1 > e ? o / 2 * Math.pow(2, 10 * (e - 1)) + t:(e--, o / 2 * (-Math.pow(2, -10 * e) + 2) + t); case "easeInOut": case "mcsEaseInOut": return e /=a / 2, 1 > e ? o / 2 * e * e * e + t:(e -=2, o / 2 * (e * e * e + 2) + t); case "easeOutSmooth": return e /=a, e--, -o * (e * e * e * e - 1) + t; case "easeOutStrong": return o * (-Math.pow(2, -10 * e / a) + 1) + t; case "easeOut": case "mcsEaseOut": default: var i=(e /=a) * e, r=i * e; return t + o * (.499999999999997 * r * i + -2.5 * i * i + 5.5 * r + -6.5 * i + 4 * e) }} e._mTween||(e._mTween={ top: {}, left: {}});var f, h, r=r||{}, m=r.onStart||function (){ }, p=r.onUpdate||function (){ }, g=r.onComplete||function (){ }, v=G(), x=0, _=e.offsetTop, w=e.style, S=e._mTween[t]; "left"===t&&(_=e.offsetLeft); var b=o - _; S.stop=0, "none"!==i&&d(), c() }, G=function (){ return window.performance&&window.performance.now ? window.performance.now():window.performance&&window.performance.webkitNow ? window.performance.webkitNow():Date.now ? Date.now():(new Date).getTime() }, J=function (){ var e=this; e._mTween||(e._mTween={ top: {}, left: {}});for (var t=["top", "left"], o=0; o < t.length; o++){ var a=t[o]; e._mTween[a].id&&(window.requestAnimationFrame ? window.cancelAnimationFrame(e._mTween[a].id):clearTimeout(e._mTween[a].id), e._mTween[a].id=null, e._mTween[a].stop=1) }}, K=function (e, t){ try { delete e[t] } catch (o){ e[t]=null }}, Z=function (e){ return !(e.which&&1!==e.which) }, $=function (e){ var t=e.originalEvent.pointerType; return !(t&&"touch"!==t&&2!==t) }, ee=function (e){ return !isNaN(parseFloat(e))&&isFinite(e) }, te=function (e){ var t=e.parents(".mCSB_container"); return [e.offset().top - t.offset().top, e.offset().left - t.offset().left] }, oe=function (){ function e(){ var e=["webkit", "moz", "ms", "o"]; if("hidden" in document) return "hidden"; for (var t=0; t < e.length; t++)if(e[t] + "Hidden" in document) return e[t] + "Hidden"; return null } var t=e(); return t ? document[t]:!1 }; e.fn[o]=function (t){ return u[t] ? u[t].apply(this, Array.prototype.slice.call(arguments, 1)):"object"!=typeof t&&t ? void e.error("Method " + t + " does not exist"):u.init.apply(this, arguments) }, e[o]=function (t){ return u[t] ? u[t].apply(this, Array.prototype.slice.call(arguments, 1)):"object"!=typeof t&&t ? void e.error("Method " + t + " does not exist"):u.init.apply(this, arguments) }, e[o].defaults=i, window[o] = !0, e(window).load(function (){ e(n)[o](), e.extend(e.expr[":"], { mcsInView: e.expr[":"].mcsInView||function (t){ var o, a, n=e(t), i=n.parents(".mCSB_container"); if(i.length) return o=i.parent(), a=[i[0].offsetTop, i[0].offsetLeft], a[0] + te(n)[0] >=0&&a[0] + te(n)[0] < o.height() - n.outerHeight(!1)&&a[1] + te(n)[1] >=0&&a[1] + te(n)[1] < o.width() - n.outerWidth(!1) }, mcsOverflow: e.expr[":"].mcsOverflow||function (t){ var o=e(t).data(a); if(o) return o.overflowed[0]||o.overflowed[1] }}) })
})
});
!function (a, b){ "function"==typeof define&&define.amd ? define(["jquery"], function (a){ return b(a) }):"object"==typeof exports ? module.exports=b(require("jquery")):b(jQuery) }(this, function (a){ var b=function (a, b){ var c, d=document.createElement("canvas"); a.appendChild(d), "object"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(d); var e=d.getContext("2d"); d.width=d.height=b.size; var f=1; window.devicePixelRatio > 1&&(f=window.devicePixelRatio, d.style.width=d.style.height=[b.size, "px"].join(""), d.width=d.height=b.size * f, e.scale(f, f)), e.translate(b.size / 2, b.size / 2), e.rotate((-0.5 + b.rotate / 180) * Math.PI); var g=(b.size - b.lineWidth) / 2; b.scaleColor&&b.scaleLength&&(g -=b.scaleLength + 2), Date.now=Date.now||function (){ return +new Date }; var h=function (a, b, c){ c=Math.min(Math.max(-1, c||0), 1); var d=0 >=c ? !0:!1; e.beginPath(), e.arc(0, 0, g, 0, 2 * Math.PI * c, d), e.strokeStyle=a, e.lineWidth=b, e.stroke() }, i=function (){ var a, c; e.lineWidth=1, e.fillStyle=b.scaleColor, e.save(); for (var d=24; d > 0; --d)d % 6===0 ? (c=b.scaleLength, a=0):(c=.6 * b.scaleLength, a=b.scaleLength - c), e.fillRect(-b.size / 2 + a, 0, c, 1), e.rotate(Math.PI / 12); e.restore() }, j=function (){ return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function (a){ window.setTimeout(a, 1e3 / 60) }}(), k=function (){ b.scaleColor&&i(), b.trackColor&&h(b.trackColor, b.trackWidth||b.lineWidth, 1) }; this.getCanvas=function (){ return d }, this.getCtx=function (){ return e }, this.clear=function (){ e.clearRect(b.size / -2, b.size / -2, b.size, b.size) }, this.draw=function (a){ b.scaleColor||b.trackColor ? e.getImageData&&e.putImageData ? c ? e.putImageData(c, 0, 0):(k(), c=e.getImageData(0, 0, b.size * f, b.size * f)):(this.clear(), k()):this.clear(), e.lineCap=b.lineCap; var d; d="function"==typeof b.barColor ? b.barColor(a):b.barColor, h(d, b.lineWidth, a / 100) }.bind(this), this.animate=function (a, c){ var d=Date.now(); b.onStart(a, c); var e=function (){ var f=Math.min(Date.now() - d, b.animate.duration), g=b.easing(this, f, a, c - a, b.animate.duration); this.draw(g), b.onStep(a, c, g), f >=b.animate.duration ? b.onStop(a, c):j(e) }.bind(this); j(e) }.bind(this) }, c=function (a, c){ var d={ barColor: "#ef1e25", trackColor: "#f9f9f9", scaleColor: "#dfe0e0", scaleLength: 5, lineCap: "round", lineWidth: 3, trackWidth: void 0, size: 110, rotate: 0, animate: { duration: 1e3, enabled: !0 }, easing: function (a, b, c, d, e){ return b /=e / 2, 1 > b ? d / 2 * b * b + c:-d / 2 * (--b * (b - 2) - 1) + c }, onStart: function (a, b){ }, onStep: function (a, b, c){ }, onStop: function (a, b){ }}; if("undefined"!=typeof b) d.renderer=b; else { if("undefined"==typeof SVGRenderer) throw new Error("Please load either the SVG- or the CanvasRenderer"); d.renderer=SVGRenderer } var e={}, f=0, g=function (){ this.el=a, this.options=e; for (var b in d) d.hasOwnProperty(b)&&(e[b]=c&&"undefined"!=typeof c[b] ? c[b]:d[b], "function"==typeof e[b]&&(e[b]=e[b].bind(this))); "string"==typeof e.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[e.easing]) ? e.easing=jQuery.easing[e.easing]:e.easing=d.easing, "number"==typeof e.animate&&(e.animate={ duration: e.animate, enabled: !0 }), "boolean"!=typeof e.animate||e.animate||(e.animate={ duration: 1e3, enabled: e.animate }), this.renderer=new e.renderer(a, e), this.renderer.draw(f), a.dataset&&a.dataset.percent ? this.update(parseFloat(a.dataset.percent)):a.getAttribute&&a.getAttribute("data-percent")&&this.update(parseFloat(a.getAttribute("data-percent"))) }.bind(this); this.update=function (a){ return a=parseFloat(a), e.animate.enabled ? this.renderer.animate(f, a):this.renderer.draw(a), f=a, this }.bind(this), this.disableAnimation=function (){ return e.animate.enabled = !1, this }, this.enableAnimation=function (){ return e.animate.enabled = !0, this }, g() }; a.fn.easyPieChart=function (b){ return this.each(function (){ var d; a.data(this, "easyPieChart")||(d=a.extend({}, b, a(this).data()), a.data(this, "easyPieChart", new c(this, d))) }) }});
;
(function (){
var ResizeSensor=function (element, callback){
function EventQueue(){
this.q=[];
this.add=function (ev){
this.q.push(ev);
};
var i, j;
this.call=function (){
for (i=0, j=this.q.length; i < j; i++){
this.q[i].call();
}};}
function getComputedStyle(element, prop){
if(element.currentStyle){
return element.currentStyle[prop];
}else if(window.getComputedStyle){
return window.getComputedStyle(element, null).getPropertyValue(prop);
}else{
return element.style[prop];
}}
function attachResizeEvent(element, resized){
if(!element.resizedAttached){
element.resizedAttached=new EventQueue();
element.resizedAttached.add(resized);
}else if(element.resizedAttached){
element.resizedAttached.add(resized);
return;
}
element.resizeSensor=document.createElement('div');
element.resizeSensor.className='resize-sensor';
var style='position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;';
var styleChild='position: absolute; left: 0; top: 0; transition: 0s;';
element.resizeSensor.style.cssText=style;
element.resizeSensor.innerHTML =
'<div class="resize-sensor-expand" style="' + style + '">' +
'<div style="' + styleChild + '"></div>' +
'</div>' +
'<div class="resize-sensor-shrink" style="' + style + '">' +
'<div style="' + styleChild + ' width: 200%; height: 200%"></div>' +
'</div>';
element.appendChild(element.resizeSensor);
if(!{ fixed: 1, absolute: 1 }[getComputedStyle(element, 'position')]){
element.style.position='relative';
}
var expand=element.resizeSensor.childNodes[0];
var expandChild=expand.childNodes[0];
var shrink=element.resizeSensor.childNodes[1];
var shrinkChild=shrink.childNodes[0];
var lastWidth, lastHeight;
var reset=function (){
expandChild.style.width=expand.offsetWidth + 10 + 'px';
expandChild.style.height=expand.offsetHeight + 10 + 'px';
expand.scrollLeft=expand.scrollWidth;
expand.scrollTop=expand.scrollHeight;
shrink.scrollLeft=shrink.scrollWidth;
shrink.scrollTop=shrink.scrollHeight;
lastWidth=element.offsetWidth;
lastHeight=element.offsetHeight;
};
reset();
var changed=function (){
if(element.resizedAttached){
element.resizedAttached.call();
}};
var addEvent=function (el, name, cb){
if(el.attachEvent){
el.attachEvent('on' + name, cb);
}else{
el.addEventListener(name, cb);
}};
var onScroll=function (){
if(element.offsetWidth!=lastWidth||element.offsetHeight!=lastHeight){
changed();
}
reset();
};
addEvent(expand, 'scroll', onScroll);
addEvent(shrink, 'scroll', onScroll);
}
var elementType=Object.prototype.toString.call(element);
var isCollectionTyped=('[object Array]'===elementType
|| ('[object NodeList]'===elementType)
|| ('[object HTMLCollection]'===elementType)
|| ('undefined'!==typeof jQuery&&element instanceof jQuery)
|| ('undefined'!==typeof Elements&&element instanceof Elements)
);
if(isCollectionTyped){
var i=0, j=element.length;
for (; i < j; i++){
attachResizeEvent(element[i], callback);
}}else{
attachResizeEvent(element, callback);
}
this.detach=function (){
if(isCollectionTyped){
var i=0, j=element.length;
for (; i < j; i++){
ResizeSensor.detach(element[i]);
}}else{
ResizeSensor.detach(element);
}};};
ResizeSensor.detach=function (element){
if(element.resizeSensor){
element.removeChild(element.resizeSensor);
delete element.resizeSensor;
delete element.resizedAttached;
}};
if(typeof module!=='undefined'&&typeof module.exports!=='undefined'){
module.exports=ResizeSensor;
}else{
window.ResizeSensor=ResizeSensor;
}})();
(function ($){
$.fn.theiaStickySidebar=function (options){
var defaults={
'containerSelector': '',
'additionalMarginTop': 0,
'additionalMarginBottom': 0,
'updateSidebarHeight': true,
'minWidth': 0,
'disableOnResponsiveLayouts': true,
'sidebarBehavior': 'modern',
'defaultPosition': 'relative',
'namespace': 'TSS'
};
options=$.extend(defaults, options);
options.additionalMarginTop=parseInt(options.additionalMarginTop)||0;
options.additionalMarginBottom=parseInt(options.additionalMarginBottom)||0;
tryInitOrHookIntoEvents(options, this);
function tryInitOrHookIntoEvents(options, $that){
var success=tryInit(options, $that);
if(!success){
console.log('TSS: Body width smaller than options.minWidth. Init is delayed.');
$(document).on('scroll.' + options.namespace, function (options, $that){
return function (evt){
var success=tryInit(options, $that);
if(success){
$(this).unbind(evt);
}};}(options, $that));
$(window).on('resize.' + options.namespace, function (options, $that){
return function (evt){
var success=tryInit(options, $that);
if(success){
$(this).unbind(evt);
}};}(options, $that))
}}
function tryInit(options, $that){
if(options.initialized===true){
return true;
}
if($('body').width() < options.minWidth){
return false;
}
init(options, $that);
return true;
}
function init(options, $that){
options.initialized=true;
var existingStylesheet=$('#theia-sticky-sidebar-stylesheet-' + options.namespace);
if(existingStylesheet.length===0){
$('head').append($('<style id="theia-sticky-sidebar-stylesheet-' + options.namespace + '">.theiaStickySidebar:after {content: ""; display: table; clear: both;}</style>'));
}
$that.each(function (){
var o={};
o.sidebar=$(this);
o.options=options||{};
o.container=$(o.options.containerSelector);
if(o.container.length==0){
o.container=o.sidebar.parent();
}
o.sidebar.parents().css('-webkit-transform', 'none'); // Fix for WebKit bug - https://code.google.com/p/chromium/issues/detail?id=20574
o.sidebar.css({
'position': o.options.defaultPosition,
'overflow': 'visible',
'-webkit-box-sizing': 'border-box',
'-moz-box-sizing': 'border-box',
'box-sizing': 'border-box'
});
o.stickySidebar=o.sidebar.find('.theiaStickySidebar');
if(o.stickySidebar.length==0){
var javaScriptMIMETypes=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i;
o.sidebar.find('script').filter(function (index, script){
return script.type.length===0||script.type.match(javaScriptMIMETypes);
}).remove();
o.stickySidebar=$('<div>').addClass('theiaStickySidebar').append(o.sidebar.children());
o.sidebar.append(o.stickySidebar);
}
o.marginBottom=parseInt(o.sidebar.css('margin-bottom'));
o.paddingTop=parseInt(o.sidebar.css('padding-top'));
o.paddingBottom=parseInt(o.sidebar.css('padding-bottom'));
var collapsedTopHeight=o.stickySidebar.offset().top;
var collapsedBottomHeight=o.stickySidebar.outerHeight();
o.stickySidebar.css('padding-top', 1);
o.stickySidebar.css('padding-bottom', 1);
collapsedTopHeight -=o.stickySidebar.offset().top;
collapsedBottomHeight=o.stickySidebar.outerHeight() - collapsedBottomHeight - collapsedTopHeight;
if(collapsedTopHeight==0){
o.stickySidebar.css('padding-top', 0);
o.stickySidebarPaddingTop=0;
}else{
o.stickySidebarPaddingTop=1;
}
if(collapsedBottomHeight==0){
o.stickySidebar.css('padding-bottom', 0);
o.stickySidebarPaddingBottom=0;
}else{
o.stickySidebarPaddingBottom=1;
}
o.previousScrollTop=null;
o.fixedScrollTop=0;
resetSidebar();
o.onScroll=function (o){
if(!o.stickySidebar.is(":visible")){
return;
}
if($('body').width() < o.options.minWidth){
resetSidebar();
return;
}
if(o.options.disableOnResponsiveLayouts){
var sidebarWidth=o.sidebar.outerWidth(o.sidebar.css('float')=='none');
if(sidebarWidth + 50 > o.container.width()){
resetSidebar();
return;
}}
var scrollTop=$(document).scrollTop();
var position='static';
if(scrollTop >=o.sidebar.offset().top + (o.paddingTop - o.options.additionalMarginTop)){
var offsetTop=o.paddingTop + options.additionalMarginTop;
var offsetBottom=o.paddingBottom + o.marginBottom + options.additionalMarginBottom;
var containerTop=o.sidebar.offset().top;
var containerBottom=o.sidebar.offset().top + getClearedHeight(o.container);
var windowOffsetTop=0 + options.additionalMarginTop;
var windowOffsetBottom;
var sidebarSmallerThanWindow=(o.stickySidebar.outerHeight() + offsetTop + offsetBottom) < $(window).height();
if(sidebarSmallerThanWindow){
windowOffsetBottom=windowOffsetTop + o.stickySidebar.outerHeight();
}else{
windowOffsetBottom=$(window).height() - o.marginBottom - o.paddingBottom - options.additionalMarginBottom;
}
var staticLimitTop=containerTop - scrollTop + o.paddingTop;
var staticLimitBottom=containerBottom - scrollTop - o.paddingBottom - o.marginBottom;
var top=o.stickySidebar.offset().top - scrollTop;
var scrollTopDiff=o.previousScrollTop - scrollTop;
if(o.stickySidebar.css('position')=='fixed'){
if(o.options.sidebarBehavior=='modern'){
top +=scrollTopDiff;
}}
if(o.options.sidebarBehavior=='stick-to-top'){
top=options.additionalMarginTop;
}
if(o.options.sidebarBehavior=='stick-to-bottom'){
top=windowOffsetBottom - o.stickySidebar.outerHeight();
}
if(scrollTopDiff > 0){
top=Math.min(top, windowOffsetTop);
}else{
top=Math.max(top, windowOffsetBottom - o.stickySidebar.outerHeight());
}
top=Math.max(top, staticLimitTop);
top=Math.min(top, staticLimitBottom - o.stickySidebar.outerHeight());
var sidebarSameHeightAsContainer=o.container.height()==o.stickySidebar.outerHeight();
if(!sidebarSameHeightAsContainer&&top==windowOffsetTop){
position='fixed';
}
else if(!sidebarSameHeightAsContainer&&top==windowOffsetBottom - o.stickySidebar.outerHeight()){
position='fixed';
}
else if(scrollTop + top - o.sidebar.offset().top - o.paddingTop <=options.additionalMarginTop){
position='static';
}else{
position='absolute';
}}
if(position=='fixed'){
var scrollLeft=$(document).scrollLeft();
o.stickySidebar.css({
'position': 'fixed',
'width': getWidthForObject(o.stickySidebar) + 'px',
'transform': 'translateY(' + top + 'px)',
'left': (o.sidebar.offset().left + parseInt(o.sidebar.css('padding-left')) - scrollLeft) + 'px',
'top': '0px'
});
}
else if(position=='absolute'){
var css={};
if(o.stickySidebar.css('position')!='absolute'){
css.position='absolute';
css.transform='translateY(' + (scrollTop + top - o.sidebar.offset().top - o.stickySidebarPaddingTop - o.stickySidebarPaddingBottom) + 'px)';
css.top='0px';
}
css.width=getWidthForObject(o.stickySidebar) + 'px';
css.left='';
o.stickySidebar.css(css);
}
else if(position=='static'){
resetSidebar();
}
if(position!='static'){
if(o.options.updateSidebarHeight==true){
o.sidebar.css({
'min-height': o.stickySidebar.outerHeight() + o.stickySidebar.offset().top - o.sidebar.offset().top + o.paddingBottom
});
}}
o.previousScrollTop=scrollTop;
};
o.onScroll(o);
$(document).on('scroll.' + o.options.namespace, function (o){
return function (){
o.onScroll(o);
};}(o));
$(window).on('resize.' + o.options.namespace, function (o){
return function (){
o.stickySidebar.css({ 'position': 'static' });
o.onScroll(o);
};}(o));
if(typeof ResizeSensor!=='undefined'){
new ResizeSensor(o.stickySidebar[0], function (o){
return function (){
o.onScroll(o);
};}(o));
}
function resetSidebar(){
o.fixedScrollTop=0;
o.sidebar.css({
'min-height': '1px'
});
o.stickySidebar.css({
'position': 'static',
'width': '',
'transform': 'none'
});
}
function getClearedHeight(e){
var height=e.height();
e.children().each(function (){
height=Math.max(height, $(this).height());
});
return height;
}});
}
function getWidthForObject(object){
var width;
try {
width=object[0].getBoundingClientRect().width;
}
catch (err){
}
if(typeof width==="undefined"){
width=object.width();
}
return width;
}
return this;
}})(jQuery);
!function (a){ "function"==typeof define&&define.amd ? define(["jquery"], a):a("object"==typeof exports ? require("jquery"):window.jQuery||window.Zepto) }(function (a){ var b, c, d, e, f, g, h="Close", i="BeforeClose", j="AfterClose", k="BeforeAppend", l="MarkupParse", m="Open", n="Change", o="mfp", p="." + o, q="mfp-ready", r="mfp-removing", s="mfp-prevent-close", t=function (){ }, u = !!window.jQuery, v=a(window), w=function (a, c){ b.ev.on(o + a + p, c) }, x=function (b, c, d, e){ var f=document.createElement("div"); return f.className="mfp-" + b, d&&(f.innerHTML=d), e ? c&&c.appendChild(f):(f=a(f), c&&f.appendTo(c)), f }, y=function (c, d){ b.ev.triggerHandler(o + c, d), b.st.callbacks&&(c=c.charAt(0).toLowerCase() + c.slice(1), b.st.callbacks[c]&&b.st.callbacks[c].apply(b, a.isArray(d) ? d:[d])) }, z=function (c){ return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%", b.st.tClose)), g=c), b.currTemplate.closeBtn }, A=function (){ a.magnificPopup.instance||(b=new t, b.init(), a.magnificPopup.instance=b) }, B=function (){ var a=document.createElement("p").style, b=["ms", "O", "Moz", "Webkit"]; if(void 0!==a.transition) return !0; for (; b.length;)if(b.pop() + "Transition" in a) return !0; return !1 }; t.prototype={ constructor: t, init: function (){ var c=navigator.appVersion; b.isLowIE=b.isIE8=document.all&&!document.addEventListener, b.isAndroid=/android/gi.test(c), b.isIOS=/iphone|ipad|ipod/gi.test(c), b.supportsTransition=B(), b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent), d=a(document), b.popupsCache={}}, open: function (c){ var e; if(c.isObj===!1){ b.items=c.items.toArray(), b.index=0; var g, h=c.items; for (e=0; e < h.length; e++)if(g=h[e], g.parsed&&(g=g.el[0]), g===c.el[0]){ b.index=e; break }} else b.items=a.isArray(c.items) ? c.items:[c.items], b.index=c.index||0; if(b.isOpen) return void b.updateItemHTML(); b.types=[], f="", c.mainEl&&c.mainEl.length ? b.ev=c.mainEl.eq(0):b.ev=d, c.key ? (b.popupsCache[c.key]||(b.popupsCache[c.key]={}), b.currTemplate=b.popupsCache[c.key]):b.currTemplate={}, b.st=a.extend(!0, {}, a.magnificPopup.defaults, c), b.fixedContentPos="auto"===b.st.fixedContentPos ? !b.probablyMobile:b.st.fixedContentPos, b.st.modal&&(b.st.closeOnContentClick = !1, b.st.closeOnBgClick = !1, b.st.showCloseBtn = !1, b.st.enableEscapeKey = !1), b.bgOverlay||(b.bgOverlay=x("bg").on("click" + p, function (){ b.close() }), b.wrap=x("wrap").attr("tabindex", -1).on("click" + p, function (a){ b._checkIfClose(a.target)&&b.close() }), b.container=x("container", b.wrap)), b.contentContainer=x("content"), b.st.preloader&&(b.preloader=x("preloader", b.container, b.st.tLoading)); var i=a.magnificPopup.modules; for (e=0; e < i.length; e++){ var j=i[e]; j=j.charAt(0).toUpperCase() + j.slice(1), b["init" + j].call(b) } y("BeforeOpen"), b.st.showCloseBtn&&(b.st.closeBtnInside ? (w(l, function (a, b, c, d){ c.close_replaceWith=z(d.type) }), f +=" mfp-close-btn-in"):b.wrap.append(z())), b.st.alignTop&&(f +=" mfp-align-top"), b.fixedContentPos ? b.wrap.css({ overflow: b.st.overflowY, overflowX: "hidden", overflowY: b.st.overflowY }):b.wrap.css({ top: v.scrollTop(), position: "absolute" }), (b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({ height: d.height(), position: "absolute" }), b.st.enableEscapeKey&&d.on("keyup" + p, function (a){ 27===a.keyCode&&b.close() }), v.on("resize" + p, function (){ b.updateSize() }), b.st.closeOnContentClick||(f +=" mfp-auto-cursor"), f&&b.wrap.addClass(f); var k=b.wH=v.height(), n={}; if(b.fixedContentPos&&b._hasScrollBar(k)){ var o=b._getScrollbarSize(); o&&(n.marginRight=o) } b.fixedContentPos&&(b.isIE7 ? a("body, html").css("overflow", "hidden"):n.overflow="hidden"); var r=b.st.mainClass; return b.isIE7&&(r +=" mfp-ie7"), r&&b._addClassToMFP(r), b.updateItemHTML(), y("BuildControls"), a("html").css(n), b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)), b._lastFocusedEl=document.activeElement, setTimeout(function (){ b.content ? (b._addClassToMFP(q), b._setFocus()):b.bgOverlay.addClass(q), d.on("focusin" + p, b._onFocusIn) }, 16), b.isOpen = !0, b.updateSize(k), y(m), c }, close: function (){ b.isOpen&&(y(i), b.isOpen = !1, b.st.removalDelay&&!b.isLowIE&&b.supportsTransition ? (b._addClassToMFP(r), setTimeout(function (){ b._close() }, b.st.removalDelay)):b._close()) }, _close: function (){ y(h); var c=r + " " + q + " "; if(b.bgOverlay.detach(), b.wrap.detach(), b.container.empty(), b.st.mainClass&&(c +=b.st.mainClass + " "), b._removeClassFromMFP(c), b.fixedContentPos){ var e={ marginRight: "" }; b.isIE7 ? a("body, html").css("overflow", ""):e.overflow="", a("html").css(e) } d.off("keyup" + p + " focusin" + p), b.ev.off(p), b.wrap.attr("class", "mfp-wrap").removeAttr("style"), b.bgOverlay.attr("class", "mfp-bg"), b.container.attr("class", "mfp-container"), !b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(), b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(), b.currItem=null, b.content=null, b.currTemplate=null, b.prevHeight=0, y(j) }, updateSize: function (a){ if(b.isIOS){ var c=document.documentElement.clientWidth / window.innerWidth, d=window.innerHeight * c; b.wrap.css("height", d), b.wH=d } else b.wH=a||v.height(); b.fixedContentPos||b.wrap.css("height", b.wH), y("Resize") }, updateItemHTML: function (){ var c=b.items[b.index]; b.contentContainer.detach(), b.content&&b.content.detach(), c.parsed||(c=b.parseEl(b.index)); var d=c.type; if(y("BeforeChange", [b.currItem ? b.currItem.type:"", d]), b.currItem=c, !b.currTemplate[d]){ var f=b.st[d] ? b.st[d].markup:!1; y("FirstMarkupParse", f), f ? b.currTemplate[d]=a(f):b.currTemplate[d] = !0 } e&&e!==c.type&&b.container.removeClass("mfp-" + e + "-holder"); var g=b["get" + d.charAt(0).toUpperCase() + d.slice(1)](c, b.currTemplate[d]); b.appendContent(g, d), c.preloaded = !0, y(n, c), e=c.type, b.container.prepend(b.contentContainer), y("AfterChange") }, appendContent: function (a, c){ b.content=a, a ? b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0 ? b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="", y(k), b.container.addClass("mfp-" + c + "-holder"), b.contentContainer.append(b.content) }, parseEl: function (c){ var d, e=b.items[c]; if(e.tagName ? e={ el: a(e) }:(d=e.type, e={ data: e, src: e.src }), e.el){ for (var f=b.types, g=0; g < f.length; g++)if(e.el.hasClass("mfp-" + f[g])){ d=f[g]; break } e.src=e.el.attr("data-mfp-src"), e.src||(e.src=e.el.attr("href")) } return e.type=d||b.st.type||"inline", e.index=c, e.parsed = !0, b.items[c]=e, y("ElementParse", e), b.items[c] }, addGroup: function (a, c){ var d=function (d){ d.mfpEl=this, b._openClick(d, a, c) }; c||(c={});var e="click.magnificPopup"; c.mainEl=a, c.items ? (c.isObj = !0, a.off(e).on(e, d)):(c.isObj = !1, c.delegate ? a.off(e).on(e, c.delegate, d):(c.items=a, a.off(e).on(e, d))) }, _openClick: function (c, d, e){ var f=void 0!==e.midClick ? e.midClick:a.magnificPopup.defaults.midClick; if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){ var g=void 0!==e.disableOn ? e.disableOn:a.magnificPopup.defaults.disableOn; if(g) if(a.isFunction(g)){ if(!g.call(b)) return !0 }else if(v.width() < g) return !0; c.type&&(c.preventDefault(), b.isOpen&&c.stopPropagation()), e.el=a(c.mfpEl), e.delegate&&(e.items=d.find(e.delegate)), b.open(e) }}, updateStatus: function (a, d){ if(b.preloader){ c!==a&&b.container.removeClass("mfp-s-" + c), d||"loading"!==a||(d=b.st.tLoading); var e={ status: a, text: d }; y("UpdateStatus", e), a=e.status, d=e.text, b.preloader.html(d), b.preloader.find("a").on("click", function (a){ a.stopImmediatePropagation() }), b.container.addClass("mfp-s-" + a), c=a }}, _checkIfClose: function (c){ if(!a(c).hasClass(s)){ var d=b.st.closeOnContentClick, e=b.st.closeOnBgClick; if(d&&e) return !0; if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0]) return !0; if(c===b.content[0]||a.contains(b.content[0], c)){ if(d) return !0 }else if(e&&a.contains(document, c)) return !0; return !1 }}, _addClassToMFP: function (a){ b.bgOverlay.addClass(a), b.wrap.addClass(a) }, _removeClassFromMFP: function (a){ this.bgOverlay.removeClass(a), b.wrap.removeClass(a) }, _hasScrollBar: function (a){ return (b.isIE7 ? d.height():document.body.scrollHeight) > (a||v.height()) }, _setFocus: function (){ (b.st.focus ? b.content.find(b.st.focus).eq(0):b.wrap).focus() }, _onFocusIn: function (c){ return c.target===b.wrap[0]||a.contains(b.wrap[0], c.target) ? void 0:(b._setFocus(), !1) }, _parseMarkup: function (b, c, d){ var e; d.data&&(c=a.extend(d.data, c)), y(l, [b, c, d]), a.each(c, function (c, d){ if(void 0===d||d===!1) return !0; if(e=c.split("_"), e.length > 1){ var f=b.find(p + "-" + e[0]); if(f.length > 0){ var g=e[1]; "replaceWith"===g ? f[0]!==d[0]&&f.replaceWith(d):"img"===g ? f.is("img") ? f.attr("src", d):f.replaceWith(a("<img>").attr("src", d).attr("class", f.attr("class"))):f.attr(e[1], d) }} else b.find(p + "-" + c).html(d) }) }, _getScrollbarSize: function (){ if(void 0===b.scrollbarSize){ var a=document.createElement("div"); a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;", document.body.appendChild(a), b.scrollbarSize=a.offsetWidth - a.clientWidth, document.body.removeChild(a) } return b.scrollbarSize }}, a.magnificPopup={ instance: null, proto: t.prototype, modules: [], open: function (b, c){ return A(), b=b ? a.extend(!0, {}, b):{}, b.isObj = !0, b.index=c||0, this.instance.open(b) }, close: function (){ return a.magnificPopup.instance&&a.magnificPopup.instance.close() }, registerModule: function (b, c){ c.options&&(a.magnificPopup.defaults[b]=c.options), a.extend(this.proto, c.proto), this.modules.push(b) }, defaults: { disableOn: 0, key: null, midClick: !1, mainClass: "", preloader: !0, focus: "", closeOnContentClick: !1, closeOnBgClick: !0, closeBtnInside: !0, showCloseBtn: !0, enableEscapeKey: !0, modal: !1, alignTop: !1, removalDelay: 0, prependTo: null, fixedContentPos: "auto", fixedBgPos: "auto", overflowY: "auto", closeMarkup: '<button title="%title%" type="button" class="mfp-close">&#215;</button>', tClose: "Close (Esc)", tLoading: "Loading...", autoFocusLast: !0 }}, a.fn.magnificPopup=function (c){ A(); var d=a(this); if("string"==typeof c) if("open"===c){ var e, f=u ? d.data("magnificPopup"):d[0].magnificPopup, g=parseInt(arguments[1], 10)||0; f.items ? e=f.items[g]:(e=d, f.delegate&&(e=e.find(f.delegate)), e=e.eq(g)), b._openClick({ mfpEl: e }, d, f) } else b.isOpen&&b[c].apply(b, Array.prototype.slice.call(arguments, 1)); else c=a.extend(!0, {}, c), u ? d.data("magnificPopup", c):d[0].magnificPopup=c, b.addGroup(d, c); return d }; var C, D, E, F="inline", G=function (){ E&&(D.after(E.addClass(C)).detach(), E=null) }; a.magnificPopup.registerModule(F, { options: { hiddenClass: "hide", markup: "", tNotFound: "Content not found" }, proto: { initInline: function (){ b.types.push(F), w(h + "." + F, function (){ G() }) }, getInline: function (c, d){ if(G(), c.src){ var e=b.st.inline, f=a(c.src); if(f.length){ var g=f[0].parentNode; g&&g.tagName&&(D||(C=e.hiddenClass, D=x(C), C="mfp-" + C), E=f.after(D).detach().removeClass(C)), b.updateStatus("ready") } else b.updateStatus("error", e.tNotFound), f=a("<div>"); return c.inlineElement=f, f } return b.updateStatus("ready"), b._parseMarkup(d, {}, c), d }} });var H, I="ajax", J=function (){ H&&a(document.body).removeClass(H) }, K=function (){ J(), b.req&&b.req.abort() }; a.magnificPopup.registerModule(I, { options: { settings: null, cursor: "mfp-ajax-cur", tError: '<a href="%url%">The content</a> could not be loaded.' }, proto: { initAjax: function (){ b.types.push(I), H=b.st.ajax.cursor, w(h + "." + I, K), w("BeforeChange." + I, K) }, getAjax: function (c){ H&&a(document.body).addClass(H), b.updateStatus("loading"); var d=a.extend({ url: c.src, success: function (d, e, f){ var g={ data: d, xhr: f }; y("ParseAjax", g), b.appendContent(a(g.data), I), c.finished = !0, J(), b._setFocus(), setTimeout(function (){ b.wrap.addClass(q) }, 16), b.updateStatus("ready"), y("AjaxContentAdded") }, error: function (){ J(), c.finished=c.loadError = !0, b.updateStatus("error", b.st.ajax.tError.replace("%url%", c.src)) }}, b.st.ajax.settings); return b.req=a.ajax(d), "" }} });var L, M=function (c){ if(c.data&&void 0!==c.data.title) return c.data.title; var d=b.st.image.titleSrc; if(d){ if(a.isFunction(d)) return d.call(b, c); if(c.el) return c.el.attr(d)||"" } return "" }; a.magnificPopup.registerModule("image", { options: { markup: '<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>', cursor: "mfp-zoom-out-cur", titleSrc: "title", verticalFit: !0, tError: '<a href="%url%">The image</a> could not be loaded.' }, proto: { initImage: function (){ var c=b.st.image, d=".image"; b.types.push("image"), w(m + d, function (){ "image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor) }), w(h + d, function (){ c.cursor&&a(document.body).removeClass(c.cursor), v.off("resize" + p) }), w("Resize" + d, b.resizeImage), b.isLowIE&&w("AfterChange", b.resizeImage) }, resizeImage: function (){ var a=b.currItem; if(a&&a.img&&b.st.image.verticalFit){ var c=0; b.isLowIE&&(c=parseInt(a.img.css("padding-top"), 10) + parseInt(a.img.css("padding-bottom"), 10)), a.img.css("max-height", b.wH - c) }}, _onImageHasSize: function (a){ a.img&&(a.hasSize = !0, L&&clearInterval(L), a.isCheckingImgSize = !1, y("ImageHasSize", a), a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"), a.imgHidden = !1)) }, findImageSize: function (a){ var c=0, d=a.img[0], e=function (f){ L&&clearInterval(L), L=setInterval(function (){ return d.naturalWidth > 0 ? void b._onImageHasSize(a):(c > 200&&clearInterval(L), c++, void (3===c ? e(10):40===c ? e(50):100===c&&e(500))) }, f) }; e(1) }, getImage: function (c, d){ var e=0, f=function (){ c&&(c.img[0].complete ? (c.img.off(".mfploader"), c===b.currItem&&(b._onImageHasSize(c), b.updateStatus("ready")), c.hasSize = !0, c.loaded = !0, y("ImageLoadComplete")):(e++, 200 > e ? setTimeout(f, 100):g())) }, g=function (){ c&&(c.img.off(".mfploader"), c===b.currItem&&(b._onImageHasSize(c), b.updateStatus("error", h.tError.replace("%url%", c.src))), c.hasSize = !0, c.loaded = !0, c.loadError = !0) }, h=b.st.image, i=d.find(".mfp-img"); if(i.length){ var j=document.createElement("img"); j.className="mfp-img", c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")), c.img=a(j).on("load.mfploader", f).on("error.mfploader", g), j.src=c.src, i.is("img")&&(c.img=c.img.clone()), j=c.img[0], j.naturalWidth > 0 ? c.hasSize = !0:j.width||(c.hasSize = !1) } return b._parseMarkup(d, { title: M(c), img_replaceWith: c.img }, c), b.resizeImage(), c.hasSize ? (L&&clearInterval(L), c.loadError ? (d.addClass("mfp-loading"), b.updateStatus("error", h.tError.replace("%url%", c.src))):(d.removeClass("mfp-loading"), b.updateStatus("ready")), d):(b.updateStatus("loading"), c.loading = !0, c.hasSize||(c.imgHidden = !0, d.addClass("mfp-loading"), b.findImageSize(c)), d) }} });var N, O=function (){ return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform), N }; a.magnificPopup.registerModule("zoom", { options: { enabled: !1, easing: "ease-in-out", duration: 300, opener: function (a){ return a.is("img") ? a:a.find("img") }}, proto: { initZoom: function (){ var a, c=b.st.zoom, d=".zoom"; if(c.enabled&&b.supportsTransition){ var e, f, g=c.duration, j=function (a){ var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"), d="all " + c.duration / 1e3 + "s " + c.easing, e={ position: "fixed", zIndex: 9999, left: 0, top: 0, "-webkit-backface-visibility": "hidden" }, f="transition"; return e["-webkit-" + f]=e["-moz-" + f]=e["-o-" + f]=e[f]=d, b.css(e), b }, k=function (){ b.content.css("visibility", "visible") }; w("BuildControls" + d, function (){ if(b._allowZoom()){ if(clearTimeout(e), b.content.css("visibility", "hidden"), a=b._getItemToZoom(), !a) return void k(); f=j(a), f.css(b._getOffset()), b.wrap.append(f), e=setTimeout(function (){ f.css(b._getOffset(!0)), e=setTimeout(function (){ k(), setTimeout(function (){ f.remove(), a=f = null, y("ZoomAnimationEnded") }, 16) }, g) }, 16) }}), w(i + d, function (){ if(b._allowZoom()){ if(clearTimeout(e), b.st.removalDelay=g, !a){ if(a=b._getItemToZoom(), !a) return; f=j(a) } f.css(b._getOffset(!0)), b.wrap.append(f), b.content.css("visibility", "hidden"), setTimeout(function (){ f.css(b._getOffset()) }, 16) }}), w(h + d, function (){ b._allowZoom()&&(k(), f&&f.remove(), a=null) }) }}, _allowZoom: function (){ return "image"===b.currItem.type }, _getItemToZoom: function (){ return b.currItem.hasSize ? b.currItem.img:!1 }, _getOffset: function (c){ var d; d=c ? b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem); var e=d.offset(), f=parseInt(d.css("padding-top"), 10), g=parseInt(d.css("padding-bottom"), 10); e.top -=a(window).scrollTop() - f; var h={ width: d.width(), height: (u ? d.innerHeight():d[0].offsetHeight) - g - f }; return O() ? h["-moz-transform"]=h.transform="translate(" + e.left + "px," + e.top + "px)":(h.left=e.left, h.top=e.top), h }} });var P="iframe", Q="//about:blank", R=function (a){ if(b.currTemplate[P]){ var c=b.currTemplate[P].find("iframe"); c.length&&(a||(c[0].src=Q), b.isIE8&&c.css("display", a ? "block":"none")) }}; a.magnificPopup.registerModule(P, { options: { markup: '<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>', srcAction: "iframe_src", patterns: { youtube: { index: "youtube.com", id: "v=", src: "//www.youtube.com/embed/%id%?autoplay=1" }, vimeo: { index: "vimeo.com/", id: "/", src: "//player.vimeo.com/video/%id%?autoplay=1" }, gmaps: { index: "//maps.google.", src: "%id%&output=embed" }} }, proto: { initIframe: function (){ b.types.push(P), w("BeforeChange", function (a, b, c){ b!==c&&(b===P ? R():c===P&&R(!0)) }), w(h + "." + P, function (){ R() }) }, getIframe: function (c, d){ var e=c.src, f=b.st.iframe; a.each(f.patterns, function (){ return e.indexOf(this.index) > -1 ? (this.id&&(e="string"==typeof this.id ? e.substr(e.lastIndexOf(this.id) + this.id.length, e.length):this.id.call(this, e)), e=this.src.replace("%id%", e), !1):void 0 });var g={}; return f.srcAction&&(g[f.srcAction]=e), b._parseMarkup(d, g, c), b.updateStatus("ready"), d }} });var S=function (a){ var c=b.items.length; return a > c - 1 ? a - c:0 > a ? c + a:a }, T=function (a, b, c){ return a.replace(/%curr%/gi, b + 1).replace(/%total%/gi, c) }; a.magnificPopup.registerModule("gallery", { options: { enabled: !1, arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>', preload: [0, 2], navigateByImgClick: !0, arrows: !0, tPrev: "Previous (Left arrow key)", tNext: "Next (Right arrow key)", tCounter: "%curr% of %total%" }, proto: { initGallery: function (){ var c=b.st.gallery, e=".mfp-gallery"; return b.direction = !0, c&&c.enabled ? (f +=" mfp-gallery", w(m + e, function (){ c.navigateByImgClick&&b.wrap.on("click" + e, ".mfp-img", function (){ return b.items.length > 1 ? (b.next(), !1):void 0 }), d.on("keydown" + e, function (a){ 37===a.keyCode ? b.prev():39===a.keyCode&&b.next() }) }), w("UpdateStatus" + e, function (a, c){ c.text&&(c.text=T(c.text, b.currItem.index, b.items.length)) }), w(l + e, function (a, d, e, f){ var g=b.items.length; e.counter=g > 1 ? T(c.tCounter, f.index, g):"" }), w("BuildControls" + e, function (){ if(b.items.length > 1&&c.arrows&&!b.arrowLeft){ var d=c.arrowMarkup, e=b.arrowLeft=a(d.replace(/%title%/gi, c.tPrev).replace(/%dir%/gi, "left")).addClass(s), f=b.arrowRight=a(d.replace(/%title%/gi, c.tNext).replace(/%dir%/gi, "right")).addClass(s); e.click(function (){ b.prev() }), f.click(function (){ b.next() }), b.container.append(e.add(f)) }}), w(n + e, function (){ b._preloadTimeout&&clearTimeout(b._preloadTimeout), b._preloadTimeout=setTimeout(function (){ b.preloadNearbyImages(), b._preloadTimeout=null }, 16) }), void w(h + e, function (){ d.off(e), b.wrap.off("click" + e), b.arrowRight=b.arrowLeft=null })):!1 }, next: function (){ b.direction = !0, b.index=S(b.index + 1), b.updateItemHTML() }, prev: function (){ b.direction = !1, b.index=S(b.index - 1), b.updateItemHTML() }, goTo: function (a){ b.direction=a >=b.index, b.index=a, b.updateItemHTML() }, preloadNearbyImages: function (){ var a, c=b.st.gallery.preload, d=Math.min(c[0], b.items.length), e=Math.min(c[1], b.items.length); for (a=1; a <=(b.direction ? e:d); a++)b._preloadItem(b.index + a); for (a=1; a <=(b.direction ? d:e); a++)b._preloadItem(b.index - a) }, _preloadItem: function (c){ if(c=S(c), !b.items[c].preloaded){ var d=b.items[c]; d.parsed||(d=b.parseEl(c)), y("LazyLoad", d), "image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader", function (){ d.hasSize = !0 }).on("error.mfploader", function (){ d.hasSize = !0, d.loadError = !0, y("LazyLoadError", d) }).attr("src", d.src)), d.preloaded = !0 }} }});var U="retina"; a.magnificPopup.registerModule(U, { options: { replaceSrc: function (a){ return a.src.replace(/\.\w+$/, function (a){ return "@2x" + a }) }, ratio: 1 }, proto: { initRetina: function (){ if(window.devicePixelRatio > 1){ var a=b.st.retina, c=a.ratio; c=isNaN(c) ? c():c, c > 1&&(w("ImageHasSize." + U, function (a, b){ b.img.css({ "max-width": b.img[0].naturalWidth / c, width: "100%" }) }), w("ElementParse." + U, function (b, d){ d.src=a.replaceSrc(d, c) })) }} }}), A() });
(function (t){
"use strict";
t(function (){
if(t('.digiqole-elementskit-menu-container').length){
var e;
function i(e, i, n){
t(document).on(e, i, n);
}
(e=t(".elementskit-menu-container")),
t(e).each(function (){
var e=t(this);
"yes"!=e.attr("ekit-dom-added") &&
(0===e.parents(".elementor-widget-ekit-nav-menu").length &&
e.parents(".ekit-wid-con").addClass("ekit_menu_responsive_tablet"),
e.attr("ekit-dom-added", "yes"));
}),
i("click", ".elementskit-dropdown-has > a", function (e){
if(!t(this)
.parents(".elementskit-navbar-nav, .ekit-vertical-navbar-nav")
.hasClass("submenu-click-on-icon") ||
t(e.target).hasClass("elementskit-submenu-indicator")
){
e.preventDefault();
var i=t(this).parent().find(">.elementskit-dropdown, >.elementskit-megamenu-panel");
i.find(".elementskit-dropdown-open").removeClass("elementskit-dropdown-open"),
i.hasClass("elementskit-dropdown-open")
? i.removeClass("elementskit-dropdown-open")
: i.addClass("elementskit-dropdown-open");
}}),
i("click", ".elementskit-menu-toggler", function (e){
e.preventDefault();
var i=t(this).parents(".elementskit-menu-container").parent();
i.length < 1&&(i=t(this).parent());
var n=i.find(".elementskit-menu-offcanvas-elements");
n.hasClass("active") ? n.removeClass("active"):n.addClass("active");
});
}});
})(jQuery);
'use strict'; (function (){
function h(c, b){ if(!(c instanceof b)) throw new TypeError("Cannot call a class as a function"); } function u(c, b){ for (var a=0; a < b.length; a++){ var f=b[a]; f.enumerable=f.enumerable||!1; f.configurable = !0; "value" in f&&(f.writable = !0); Object.defineProperty(c, f.key, f) }} function g(c, b, a){ b&&u(c.prototype, b); a&&u(c, a); return c } function m(c, b){
if("function"!==typeof b&&null!==b) throw new TypeError("Super expression must either be null or a function"); c.prototype=Object.create(b&&b.prototype,
{ constructor: { value: c, writable: !0, configurable: !0 }});b&&r(c, b)
} function k(c){ k=Object.setPrototypeOf ? Object.getPrototypeOf:function (b){ return b.__proto__||Object.getPrototypeOf(b) }; return k(c) } function r(c, b){ r=Object.setPrototypeOf||function (a, b){ a.__proto__=b; return a }; return r(c, b) } function l(c){ if(void 0===c) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return c } function n(c, b){ return !b||"object"!==typeof b&&"function"!==typeof b ? l(c):b } function p(c){
if(Array.isArray(c)){
var b =
0; for (var a=Array(c.length); b < c.length; b++)a[b]=c[b]; b=a
} else b=void 0; b||(b=Symbol.iterator in Object(c)||"[object Arguments]"===Object.prototype.toString.call(c) ? Array.from(c):void 0); if(!(c=b)) throw new TypeError("Invalid attempt to spread non-iterable instance"); return c
} var v=function (){
function c(){ h(this, c); this.handlers={}} g(c, [{
key: "addEventListener", value: function (){
var b=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document, a=1 < arguments.length&&void 0!==arguments[1] ? arguments[1] :
"click"; this.handlers[a]={ func: 2 < arguments.length ? arguments[2]:void 0, target: b }; var f=a.split(".")[0]; b.addEventListener(f, this.handlers[a].func)
}}, { key: "removeEventListener", value: function (){ var b=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:"click", a=b.split(".")[0], f=this.handlers[b]; f.target.removeEventListener(a, f.func); delete this.handlers[b] }}, { key: "removeAll", value: function (){ for (var b in this.handlers) this.removeEventListener(b) }}]); return c
}(), w=function (){
return "".concat(0 < arguments.length &&
void 0!==arguments[0] ? arguments[0]:"id", "-").concat(Math.random().toString(36).substr(2, 8))
}, e=function (){
function c(){ h(this, c); this.events=new v; this.callback=function (){ }; this.updateInstanceId() } g(c, [{
key: "eventHandler", value: function (b, a){
var f=this, d=a.share_url, c=a.windowTitle, q=a.windowWidth, h=a.windowHeight; b.preventDefault(); a=Math.round((window.outerHeight||window.document.documentElement.offsetHeight) / 2 - h / 2); var g=Math.round((window.outerWidth||window.document.documentElement.offsetWidth) /
2 - q / 2); q="width=".concat(q, ",height=").concat(h); a="left=".concat(g, ",top=").concat(a); var k="".concat(q, ",").concat(a, ",location=no,toolbar=no,menubar=no"), e=window.open(d, c, k), l=setInterval(function (){ e.closed&&(f.callback(b, { share_url: d, windowTitle: c, windowOptions: k }, e), clearInterval(l)) }, 10); return e
}}, { key: "setShareCallback", value: function (b){ this.callback=b }}, {
key: "createEvents", value: function (b){
var a=this; p(b).forEach(function (b){
var f=a.getPreparedData(b); a.events.addEventListener(b, "click.".concat(a.instanceId),
function (b){ return a.eventHandler.call(a, b, f) })
})
}}, { key: "getInstance", value: function (){ "function"===typeof this.shareWindow&&this.shareWindow(); "function"===typeof this.getCounter&&this.getCounter(); return this }}, { key: "updateInstanceId", value: function (){ this.instanceId=w() }}, { key: "reNewInstance", value: function (){ this.events.removeAll(); this.updateInstanceId(); return this.getInstance() }}]); return c
}(), t=function (c){
function b(){
var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href,
f=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title, d=2 < arguments.length&&void 0!==arguments[2] ? arguments[2]:document.querySelector('link[rel="apple-touch-icon"]'); h(this, b); var c=n(this, k(b).call(this)); c.url=encodeURIComponent(a); c.title=encodeURIComponent(f); c.image=d ? encodeURIComponent(d.href):""; c.createEvents=c.createEvents.bind(l(c)); return c
} m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url, d=a.dataset.title ?
encodeURIComponent(a.dataset.title):this.title; a=a.dataset.image ? encodeURIComponent(a.dataset.image):this.image; b="https://vk.com/share.php?url=".concat(b, "&title=").concat(d, "&image=").concat(a); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="vkontakte"]'); return this.createEvents(a) }}, {
key: "getCounter", value: function (){
var a=document.createElement("script"), b =
document.querySelectorAll('[data-counter="vkontakte"]'), d="https://vk.com/share.php?act=count&index=1&url=".concat(this.url); window.VK=Object.assign({}, { Share: {}}, window.VK); 0 < b.length&&(window.VK.Share.count=function (f, d){ p(b).forEach(function (a){ a.innerHTML=d });null!==a.parentNode&&a.parentNode.removeChild(a) }, a.src=d, document.body.appendChild(a))
}}]); return b
}(e), x=function (c){
function b(){
var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, f=1 < arguments.length &&
void 0!==arguments[1] ? arguments[1]:document.title; h(this, b); var d=n(this, k(b).call(this)); d.url=encodeURIComponent(a); d.title=encodeURIComponent(f); d.createEvents=d.createEvents.bind(l(d)); return d
} m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; b="https://facebook.com/sharer/sharer.php?u=".concat(b, "&t=").concat(a); return {
callback: this.callback, share_url: b, windowTitle: "Share this",
windowWidth: 640, windowHeight: 480
}}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="facebook"]'); return this.createEvents(a) }}, {
key: "getCounter", value: function (){
var a=document.createElement("script"), b=("goodshare_" + Math.random()).replace(".", ""), d=document.querySelectorAll('[data-counter="facebook"]'), c="https://graph.facebook.com/?id=".concat(this.url, "&callback=").concat(b); 0 < d.length&&(window[b]=function (b){
p(d).forEach(function (a){
a.innerHTML=b.share ? b.share.share_count :
0
});null!==a.parentNode&&a.parentNode.removeChild(a)
}, a.src=c, document.body.appendChild(a))
}}]); return b
}(e), y=function (c){
function b(){ var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, f=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title; h(this, b); var d=n(this, k(b).call(this)); d.url=encodeURIComponent(a); d.title=encodeURIComponent(f); d.createEvents=d.createEvents.bind(l(d)); return d } m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ?
encodeURIComponent(a.dataset.url):this.url; a=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; b="https://connect.ok.ru/offer?url=".concat(b, "&title=").concat(a); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="odnoklassniki"]'); return this.createEvents(a) }}, {
key: "getCounter", value: function (){
var a=document.createElement("script"), b=document.querySelectorAll('[data-counter="odnoklassniki"]'),
d="https://connect.ok.ru/dk?st.cmd=extLike&uid=1&ref=".concat(this.url); window.ODKL={}; 0 < b.length&&(window.ODKL.updateCount=function (f, d){ p(b).forEach(function (a){ a.innerHTML=d });null!==a.parentNode&&a.parentNode.removeChild(a) }, a.src=d, document.body.appendChild(a))
}}]); return b
}(e), z=function (c){
function b(){
var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, f=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title, d=2 < arguments.length&&void 0!==arguments[2] ?
arguments[2]:document.querySelector('meta[name="description"]'), c=3 < arguments.length&&void 0!==arguments[3] ? arguments[3]:document.querySelector('link[rel="apple-touch-icon"]'); h(this, b); var e=n(this, k(b).call(this)); e.url=encodeURIComponent(a); e.title=encodeURIComponent(f); e.description=d ? encodeURIComponent(d.content):""; e.image=c ? encodeURIComponent(c.href):""; e.createEvents=e.createEvents.bind(l(e)); return e
} m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url) :
this.url, d=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title, c=a.dataset.description ? encodeURIComponent(a.dataset.description):this.description; a=a.dataset.image ? encodeURIComponent(a.dataset.image):this.image; b="https://connect.mail.ru/share?url=".concat(b, "&title=").concat(d, "&description=").concat(c, "&imageurl=").concat(a); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, {
key: "shareWindow", value: function (){
var a=document.querySelectorAll('[data-social="moimir"]');
return this.createEvents(a)
}}, { key: "getCounter", value: function (){ var a=document.createElement("script"), b=encodeURIComponent(this.url.replace(/^.*?:\/\//, "")), d=("goodshare_" + Math.random()).replace(".", ""), c=document.querySelectorAll('[data-counter="moimir"]'); 0 < c.length&&(window[d]=function (b){ p(c).forEach(function (a){ a.innerHTML=b.share_mm });null!==a.parentNode&&a.parentNode.removeChild(a) }, a.src="https://appsmail.ru/share/count/" + b + "?callback=" + d, document.body.appendChild(a)) }}]); return b
}(e),
A=function (c){
function b(){ var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, f=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title, d=2 < arguments.length&&void 0!==arguments[2] ? arguments[2]:document.querySelector('meta[name="description"]'); h(this, b); var c=n(this, k(b).call(this)); c.url=encodeURIComponent(a); c.title=encodeURIComponent(f); c.description=d ? encodeURIComponent(d.content):""; c.createEvents=c.createEvents.bind(l(c)); return c } m(b, c); g(b, [{
key: "getPreparedData",
value: function (a){ var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url, d=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; a=a.dataset.description ? encodeURIComponent(a.dataset.description):this.description; b="https://www.tumblr.com/widgets/share/tool?canonicalUrl=".concat(b, "&title=").concat(d, "&caption=").concat(a, "&posttype=link"); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, {
key: "shareWindow", value: function (){
var a =
document.querySelectorAll('[data-social="tumblr"]'); return this.createEvents(a)
}}, { key: "getCounter", value: function (){ var a=document.createElement("script"), b=("goodshare_" + Math.random()).replace(".", ""), d=document.querySelectorAll('[data-counter="tumblr"]'), c="https://api.tumblr.com/v2/share/stats?url=".concat(this.url, "&callback=").concat(b); 0 < d.length&&(window[b]=function (b){ p(d).forEach(function (a){ a.innerHTML=b.response.note_count });null!==a.parentNode&&a.parentNode.removeChild(a) }, a.src=c, document.body.appendChild(a)) }}]);
return b
}(e), B=function (c){
function b(){
var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, f=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.querySelector('meta[name="description"]'), d=2 < arguments.length&&void 0!==arguments[2] ? arguments[2]:document.querySelector('link[rel="apple-touch-icon"]'); h(this, b); var c=n(this, k(b).call(this)); c.url=encodeURIComponent(a); c.description=f ? encodeURIComponent(f.content):""; c.image=d ? encodeURIComponent(d.href):"";
c.createEvents=c.createEvents.bind(l(c)); return c
} m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url, d=a.dataset.description ? encodeURIComponent(a.dataset.description):this.description; a=a.dataset.image ? encodeURIComponent(a.dataset.image):this.image; b="https://www.pinterest.com/pin/create/button/?url=".concat(b, "&description=").concat(d, "&media=").concat(a); return {
callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640,
windowHeight: 480
}}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="pinterest"]'); return this.createEvents(a) }}, {
key: "getCounter", value: function (){
var a=document.createElement("script"), b=("goodshare_" + Math.random()).replace(".", ""), d=document.querySelectorAll('[data-counter="pinterest"]'), c="https://api.pinterest.com/v1/urls/count.json?url=".concat(this.url, "&callback=").concat(b); 0 < d.length&&(window[b]=function (b){
p(d).forEach(function (a){
a.innerHTML=0 < b.length ?
b.count:0
});null!==a.parentNode&&a.parentNode.removeChild(a)
}, a.src=c, document.body.appendChild(a))
}}]); return b
}(e), C=function (c){
function b(){ var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, f=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title; h(this, b); var d=n(this, k(b).call(this)); d.url=encodeURIComponent(a); d.title=encodeURIComponent(f); d.createEvents=d.createEvents.bind(l(d)); return d } m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b =
a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; b="https://reddit.com/submit?url=".concat(b, "&title=").concat(a); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="reddit"]'); return this.createEvents(a) }}]); return b
}(e), D=function (c){
function b(){
var a=0 < arguments.length&&void 0!==arguments[0] ?
arguments[0]:document.location.href, f=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title; h(this, b); var d=n(this, k(b).call(this)); d.url=encodeURIComponent(a); d.title=encodeURIComponent(f); d.createEvents=d.createEvents.bind(l(d)); return d
} m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; b="https://buffer.com/add?url=".concat(b, "&text=").concat(a); return {
callback: this.callback,
share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480
}}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="buffer"]'); return this.createEvents(a) }}, {
key: "getCounter", value: function (){
var a=document.createElement("script"), b=("goodshare_" + Math.random()).replace(".", ""), d=document.querySelectorAll('[data-counter="buffer"]'), c="https://api.bufferapp.com/1/links/shares.json?url=".concat(this.url, "&callback=").concat(b); 0 < d.length&&(window[b]=function (b){
p(d).forEach(function (a){
a.innerHTML =
b ? b.shares:0
});a.parentNode.removeChild(a)
}, a.src=c, document.body.appendChild(a))
}}]); return b
}(e), E=function (c){
function b(){ var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, f=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title; h(this, b); var d=n(this, k(b).call(this)); d.url=encodeURIComponent(a); d.title=encodeURIComponent(f); d.createEvents=d.createEvents.bind(l(d)); return d } m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ?
encodeURIComponent(a.dataset.url):this.url; a=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; b="https://twitter.com/share?url=".concat(b, "&text=").concat(a); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="twitter"]'); return this.createEvents(a) }}]); return b
}(e), F=function (c){
function b(){
var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0] :
document.location.href, f=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title; h(this, b); var d=n(this, k(b).call(this)); d.url=encodeURIComponent(a); d.title=encodeURIComponent(f); d.createEvents=d.createEvents.bind(l(d)); return d
} m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; b="https://livejournal.com/update.bml?event=".concat(b, "&subject=").concat(a);
return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="livejournal"]'); return this.createEvents(a) }}]); return b
}(e), G=function (c){
function b(){
var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, f=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title, d=2 < arguments.length&&void 0!==arguments[2] ? arguments[2]:document.querySelector('meta[name="description"]');
h(this, b); var c=n(this, k(b).call(this)); c.url=encodeURIComponent(a); c.title=encodeURIComponent(f); c.description=d ? encodeURIComponent(d.content):""; c.createEvents=c.createEvents.bind(l(c)); return c
} m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url, d=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; a=a.dataset.description ? encodeURIComponent(a.dataset.description):this.description; b="https://www.linkedin.com/shareArticle?url=".concat(b,
"&text=").concat(d, "&summary=").concat(a, "&mini=true"); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="linkedin"]'); return this.createEvents(a) }}]); return b
}(e), H=function (c){
function b(){
var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, f=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title, d=2 < arguments.length &&
void 0!==arguments[2] ? arguments[2]:document.querySelector('meta[name="description"]'); h(this, b); var c=n(this, k(b).call(this)); c.url=encodeURIComponent(a); c.title=encodeURIComponent(f); c.description=d ? encodeURIComponent(d.content):""; c.createEvents=c.createEvents.bind(l(c)); return c
} m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url, d=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; a=a.dataset.description ? encodeURIComponent(a.dataset.description) :
this.description; b="https://www.evernote.com/clip.action?url=".concat(b, "&title=").concat(d, "&body=").concat(a); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="evernote"]'); return this.createEvents(a) }}]); return b
}(e), I=function (c){
function b(){
var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, f=1 < arguments.length&&void 0!==arguments[1] ?
arguments[1]:document.title; h(this, b); var d=n(this, k(b).call(this)); d.url=encodeURIComponent(a); d.title=encodeURIComponent(f); d.createEvents=d.createEvents.bind(l(d)); return d
} m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; b="https://del.icio.us/save?url=".concat(b, "&title=").concat(a); return {
callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640,
windowHeight: 480
}}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="delicious"]'); return this.createEvents(a) }}]); return b
}(e), J=function (c){
function b(){ var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, f=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title; h(this, b); var d=n(this, k(b).call(this)); d.url=encodeURIComponent(a); d.title=encodeURIComponent(f); d.createEvents=d.createEvents.bind(l(d)); return d } m(b, c); g(b,
[{ key: "getPreparedData", value: function (a){ var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; b="https://share.flipboard.com/bookmarklet/popout?ext=sharethis&title=".concat(a, "&url=").concat(b, "&v=2"); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }} }, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="flipboard"]'); return this.createEvents(a) }}]);
return b
}(e), K=function (c){
function b(){ var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href; h(this, b); var f=n(this, k(b).call(this)); f.url=encodeURIComponent(a); f.createEvents=f.createEvents.bind(l(f)); return f } m(b, c); g(b, [{ key: "getPreparedData", value: function (a){ a=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a="https://mix.com/mixit?su=submit&url=".concat(a); return { callback: this.callback, share_url: a, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }} },
{ key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="mix"]'); return this.createEvents(a) }}]); return b
}(e), L=function (c){
function b(){ var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href; h(this, b); var f=n(this, k(b).call(this)); f.url=encodeURIComponent(a); f.createEvents=f.createEvents.bind(l(f)); return f } m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
a=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a="https://www.meneame.net/submit?url=".concat(a);
return { callback: this.callback, share_url: a, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="meneame"]'); return this.createEvents(a) }}]); return b
}(e), M=function (c){
function b(){
var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, f=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title; h(this, b); var d=n(this, k(b).call(this)); d.url=encodeURIComponent(a); d.title =
encodeURIComponent(f); d.createEvents=d.createEvents.bind(l(d)); return d
} m(b, c); g(b, [{ key: "getPreparedData", value: function (a){ var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; b="https://www.blogger.com/blog-this.g?u=".concat(b, "&n=").concat(a); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }} }, {
key: "shareWindow", value: function (){
var a=document.querySelectorAll('[data-social="blogger"]');
return this.createEvents(a)
}}]); return b
}(e), N=function (c){
function b(){ var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, c=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title; h(this, b); var d=n(this, k(b).call(this)); d.url=encodeURIComponent(a); d.title=encodeURIComponent(c); d.createEvents=d.createEvents.bind(l(d)); return d } m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a=a.dataset.title ?
encodeURIComponent(a.dataset.title):this.title; b="https://getpocket.com/save?url=".concat(b, "&title=").concat(a); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="pocket"]'); return this.createEvents(a) }}]); return b
}(e), O=function (c){
function b(){
var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, c=1 < arguments.length&&void 0!==arguments[1] ?
arguments[1]:document.title; h(this, b); var d=n(this, k(b).call(this)); d.url=encodeURIComponent(a); d.title=encodeURIComponent(c); d.createEvents=d.createEvents.bind(l(d)); return d
} m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; b="https://www.instapaper.com/edit?url=".concat(b, "&title=").concat(a); return {
callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640,
windowHeight: 480
}}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="instapaper"]'); return this.createEvents(a) }}]); return b
}(e), P=function (c){
function b(){ var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, c=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title; h(this, b); var d=n(this, k(b).call(this)); d.url=encodeURIComponent(a); d.title=encodeURIComponent(c); d.createEvents=d.createEvents.bind(l(d)); return d } m(b, c);
g(b, [{ key: "getPreparedData", value: function (a){ var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; b="https://digg.com/submit?url=".concat(b, "&title=").concat(a); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }} }, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="digg"]'); return this.createEvents(a) }}]); return b
}(e), Q=function (c){
function b(){
var a =
0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, c=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title; h(this, b); var d=n(this, k(b).call(this)); d.url=encodeURIComponent(a); d.title=encodeURIComponent(c); d.createEvents=d.createEvents.bind(l(d)); return d
} m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; b="http://www.liveinternet.ru/journal_post.php?action=n_add&cnurl=".concat(b,
"&cntitle=").concat(a); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="liveinternet"]'); return this.createEvents(a) }}]); return b
}(e), R=function (c){
function b(){
var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, c=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title, d=2 < arguments.length&&void 0!==arguments[2] ? arguments[2] :
document.querySelector('meta[name="description"]'); h(this, b); var e=n(this, k(b).call(this)); e.url=encodeURIComponent(a); e.title=encodeURIComponent(c); e.description=d ? encodeURIComponent(d.content):""; e.createEvents=e.createEvents.bind(l(e)); return e
} m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url, c=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; a=a.dataset.description ? encodeURIComponent(a.dataset.description):this.description;
b="https://surfingbird.ru/share?url=".concat(b, "&title=").concat(c, "&description=").concat(a); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="surfingbird"]'); return this.createEvents(a) }}]); return b
}(e), S=function (c){
function b(){
var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href; h(this, b); var c=n(this, k(b).call(this)); c.url=encodeURIComponent(a);
c.createEvents=c.createEvents.bind(l(c)); return c
} m(b, c); g(b, [{ key: "getPreparedData", value: function (a){ a=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a="https://www.xing.com/spi/shares/new?url=".concat(a); return { callback: this.callback, share_url: a, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }} }, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="xing"]'); return this.createEvents(a) }}]); return b
}(e), T=function (c){
function b(){
var a=0 < arguments.length &&
void 0!==arguments[0] ? arguments[0]:document.location.href, c=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title, d=2 < arguments.length&&void 0!==arguments[2] ? arguments[2]:document.querySelector('meta[name="description"]'), e=3 < arguments.length&&void 0!==arguments[3] ? arguments[3]:document.querySelector('link[rel="apple-touch-icon"]'); h(this, b); var g=n(this, k(b).call(this)); g.url=encodeURIComponent(a); g.title=encodeURIComponent(c); g.description=d ? encodeURIComponent(d.content):""; g.image =
e ? encodeURIComponent(e.href):""; g.createEvents=g.createEvents.bind(l(g)); return g
} m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url, c=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title, e=a.dataset.description ? encodeURIComponent(a.dataset.description):this.description; a=a.dataset.image ? encodeURIComponent(a.dataset.image):this.image; b="https://wordpress.com/wp-admin/press-this.php?u=".concat(b, "&t=").concat(c, "&s=").concat(e,
"&i=").concat(a, "&v=2"); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="wordpress"]'); return this.createEvents(a) }}]); return b
}(e), U=function (c){
function b(){
var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, c=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title, d=2 < arguments.length&&void 0!==arguments[2] ? arguments[2] :
document.querySelector('meta[name="description"]'); h(this, b); var e=n(this, k(b).call(this)); e.url=encodeURIComponent(a); e.title=encodeURIComponent(c); e.description=d ? encodeURIComponent(d.content):""; e.createEvents=e.createEvents.bind(l(e)); return e
} m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url, c=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; a=a.dataset.description ? encodeURIComponent(a.dataset.description):this.description;
b="https://cang.baidu.com/do/add?iu=".concat(b, "&it=").concat(c, "&dc=").concat(a, "&fr=ien"); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="baidu"]'); return this.createEvents(a) }}]); return b
}(e), V=function (c){
function b(){
var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, c=1 < arguments.length&&void 0!==arguments[1] ? arguments[1] :
document.title; h(this, b); var d=n(this, k(b).call(this)); d.url=encodeURIComponent(a); d.title=encodeURIComponent(c); d.createEvents=d.createEvents.bind(l(d)); return d
} m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; b="http://share.renren.com/share/buttonshare.do?url=".concat(b, "&title=").concat(a); return {
callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640,
windowHeight: 480
}}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="renren"]'); return this.createEvents(a) }}]); return b
}(e), W=function (c){
function b(){ var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href, c=1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:document.title; h(this, b); var d=n(this, k(b).call(this)); d.url=encodeURIComponent(a); d.title=encodeURIComponent(c); d.createEvents=d.createEvents.bind(l(d)); return d } m(b, c); g(b,
[{ key: "getPreparedData", value: function (a){ var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a=a.dataset.title ? encodeURIComponent(a.dataset.title):this.title; b="https://service.weibo.com/share/share.php?url=".concat(b, "&title=").concat(a); return { callback: this.callback, share_url: b, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }} }, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="weibo"]'); return this.createEvents(a) }}]); return b
}(e), X=function (c){
function b(){
var a =
0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href; h(this, b); var c=n(this, k(b).call(this)); c.url=encodeURIComponent(a); c.createEvents=c.createEvents.bind(l(c)); return c
} m(b, c); g(b, [{ key: "getPreparedData", value: function (a){ a=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a="sms:?&body=".concat(a); return { callback: this.callback, share_url: a, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }} }, {
key: "shareWindow", value: function (){
var a=document.querySelectorAll('[data-social="sms"]');
return this.createEvents(a)
}}]); return b
}(e), Y=function (c){
function b(){ var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href; h(this, b); var c=n(this, k(b).call(this)); c.url=encodeURIComponent(a); c.createEvents=c.createEvents.bind(l(c)); return c } m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
a=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a="https://web.skype.com/share?".concat(a); return {
callback: this.callback, share_url: a, windowTitle: "Share this", windowWidth: 640,
windowHeight: 480
}}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="skype"]'); return this.createEvents(a) }}]); return b
}(e), Z=function (c){
function b(){ var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href; h(this, b); var c=n(this, k(b).call(this)); c.url=encodeURIComponent(a); c.createEvents=c.createEvents.bind(l(c)); return c } m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
var b=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url;
a=a.dataset.rhash ? a.dataset.rhash:null; var c="https://t.me/share/url?url=".concat(b); null!==a&&(c="https://t.me/iv?url=".concat(b, "&rhash=").concat(a)); return { callback: this.callback, share_url: c, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="telegram"]'); return this.createEvents(a) }}]); return b
}(e), aa=function (c){
function b(){
var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href;
h(this, b); var c=n(this, k(b).call(this)); c.url=encodeURIComponent(a); c.createEvents=c.createEvents.bind(l(c)); return c
} m(b, c); g(b, [{ key: "getPreparedData", value: function (a){ a=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a="viber://forward?text=".concat(a); return { callback: this.callback, share_url: a, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }} }, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="viber"]'); return this.createEvents(a) }}]); return b
}(e),
ba=function (c){
function b(){ var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href; h(this, b); var c=n(this, k(b).call(this)); c.url=encodeURIComponent(a); c.createEvents=c.createEvents.bind(l(c)); return c } m(b, c); g(b, [{ key: "getPreparedData", value: function (a){ a=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a="https://wa.me/?text=".concat(a); return { callback: this.callback, share_url: a, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }} }, {
key: "shareWindow", value: function (){
var a =
document.querySelectorAll('[data-social="whatsapp"]'); return this.createEvents(a)
}}]); return b
}(e), ca=function (c){
function b(){ var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href; h(this, b); var c=n(this, k(b).call(this)); c.url=encodeURIComponent(a); c.createEvents=c.createEvents.bind(l(c)); return c } m(b, c); g(b, [{
key: "getPreparedData", value: function (a){
a=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a="https://chart.apis.google.com/chart?cht=qr&chs=196x196&chld=Q%7C0&chl=".concat(a);
return { callback: this.callback, share_url: a, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="wechat"]'); return this.createEvents(a) }}]); return b
}(e); e=function (c){
function b(){ var a=0 < arguments.length&&void 0!==arguments[0] ? arguments[0]:document.location.href; h(this, b); var c=n(this, k(b).call(this)); c.url=encodeURIComponent(a); c.createEvents=c.createEvents.bind(l(c)); return c } m(b, c); g(b, [{
key: "getPreparedData",
value: function (a){ a=a.dataset.url ? encodeURIComponent(a.dataset.url):this.url; a="line://msg/text/".concat(a); return { callback: this.callback, share_url: a, windowTitle: "Share this", windowWidth: 640, windowHeight: 480 }}
}, { key: "shareWindow", value: function (){ var a=document.querySelectorAll('[data-social="line"]'); return this.createEvents(a) }}]); return b
}(e); var da=[t, x, y, z, G, A, B, C, D, E, F, H, I, J, N, K, L, M, O, P, Q, R, S, T, U, V, W, X, Y, Z, aa, ba, ca, e]; t=function (){
function c(){ h(this, c); this.providers=da; this.getProviders() }
g(c, [{ key: "setShareCallback", value: function (b){ this.providers=this.providers.map(function (a){ return a.setShareCallback(b) }) }}, { key: "getProviders", value: function (){ return this.providers=this.providers.map(function (b){ return (new b).getInstance() }) }}, { key: "reNewAllInstance", value: function (){ this.providers=this.providers.map(function (b){ return b.reNewInstance() }) }}]); return c
}(); window._goodshare=new t
})();