vendor: 4,263 bytes, lines 1-2
1/*! jQuery v3.1.1 | (c) jQuery Foundation | jquery.org/license */ 2!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.1.1",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null==a?f.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var b=r.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return r.each(this,a)},map:function(a){return this.pushStack(r.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c<b?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:c.sort,splice:c.splice},r.extend=r.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||r.isFunction(g)||(g={}),h===i&&(g=this,h--);h<i;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(r.isPlainObject(d)||(e=r.isArray(d)))?(e?(e=!1,f=c&&r.isArray(c)?c:[]):f=c&&r.isPlainObject(c)?c:{},g[b]=r.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},r.extend({expando:"jQuery"+(q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===r.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=r.type(a);return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))},isPlainObject:function(a){var b,c;return!(!a||"[object Object]"!==k.call(a))&&(!(b=e(a))||(c=l.call(b,"constructor")&&b.constructor,"function"==typeof c&&m.call(c)===n))},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?j[k.call(a)]||"object":typeof a},globalEval:function(a){p(a)},camelCase:function(a){return a.replace(t,"ms-").replace(u,v)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(w(a)){for(c=a.length;d<c;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(s,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(w(Object(a))?r.merge(c,"string"==typeof a?[a]:a):h.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:i.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;d<c;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;f<g;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,f=0,h=[];if(w(a))for(d=a.length;f<d;f++)e=b(a[f],f,c),null!=e&&h.push(e);else for(f in a)e=b(a[f],f,c),null!=e&&h.push(e);return g.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;if("string"==typeof b&&(c=a[b],b=a,a=c),r.isFunction(a))return d=f.call(arguments,2),e=function(){return a.apply(b||this,d.concat(f.call(arguments)))},e.guid=a.guid=a.guid||r.guid++,e},now:Date.now,support:o}),"function"==typeof Symbol&&(r.fn[Symbol.iterator]=c[Symbol.iterator]),r.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){j["[object "+b+"]"]=b.toLowerCase()});function w(a){var b=!!a&&"length"in a&&a.length,c=r.type(a);return"function"!==c&&!r.isWindow(a)&&("array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*ne
vendor: 18,228 bytes, line 2
2w Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",M="\\["+K+"*("+L+")(?:"+K+"*([*^$|!~]?=)"+K+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+K+"*\\]",N=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",O=new RegExp(K+"+","g"),P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ea(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function pa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}}):(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];e=b.getElementsByName(a),d=0;while(f=e[d++])if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?I(k,a)-I(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?I(k,a)-I(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(_,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(O," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:oa(!1),disabled:oa(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:pa(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:pa(function(a,b,c){for(var d=c<0?c+b:c;--d>=0;)a.push(d);return a}),gt:pa(function(a,b,c){for(var d=c<0?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function ra(){}ra.prototype=d.filters=d.pseudos,d.setFilters=new ra,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=Q.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function sa(a){for(var b=0,c=a.length,d="";b<c;b++)d+=a[b].value;return d}function ta(a,b,c){var d=b.dir,e=b.next,f=e||d,g=c&&"parentNode"===f,h=x++;return b.first?function(b,c,e){while(b=b[d])if(1===b.nodeType||g)return a(b,c,e);return!1}:function(b,c,i){var j,k,l,m=[w,h];if(i){while(b=b[d])if((1===b.nodeType||g)&&a(b,c,i))return!0}else while(b=b[d])if(1===b.nodeType||g)if(l=b[u]||(b[u]={}),k=l[b.uniqueID]||(l[b.uniqueID]={}),e&&e===b.nodeName.toLowerCase())b=b[d]||b;else{if((j=k[f])&&j[0]===w&&j[1]===h)return m[2]=j[2];if(k[f]=m,m[2]=a(b,c,i))return!0}return!1}}function ua(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function va(a,b,c){for(var d=0,e=b.length;d<e;d++)ga(a,b[d],c);return c}function wa(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;h<i;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function xa(a,b,c,d,e,f){return d&&!d[u]&&(d=xa(d)),e&&!e[u]&&(e=xa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||va(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:wa(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=wa(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i<f;i++)if(c=d.relative[a[i].type])m=[ta(ua(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;e<f;e++)if(d.relative[a[e].type])break;return xa(i>1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i<e&&ya(a.slice(i,e)),e<f&&ya(a=a.slice(e)),e<f&&sa(a))}m.push(c)}return ua(m)}function za(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.select=function(a,b,c,e){var f,i,j,k,l,m="function"==typeof a&&a,n=!e&&g(a=m.selector||a);if(c=c||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>
vendor: 64,218 bytes, lines 2-4
22&&"ID"===(j=i[0]).type&&9===b.nodeType&&p&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(_,aa),b)||[])[0],!b)return c;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}f=V.needsContext.test(a)?0:i.length;while(f--){if(j=i[f],d.relative[k=j.type])break;if((l=d.find[k])&&(e=l(j.matches[0].replace(_,aa),$.test(i[0].type)&&qa(b.parentNode)||b))){if(i.splice(f,1),a=e.length&&sa(i),!a)return G.apply(c,e),c;break}}}return(m||h(a,n))(e,b,!p,c,!b||$.test(a)&&qa(b.parentNode)||b),c},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);r.find=x,r.expr=x.selectors,r.expr[":"]=r.expr.pseudos,r.uniqueSort=r.unique=x.uniqueSort,r.text=x.getText,r.isXMLDoc=x.isXML,r.contains=x.contains,r.escapeSelector=x.escape;var y=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&r(a).is(c))break;d.push(a)}return d},z=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},A=r.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,C=/^.[^:#\[\.,]*$/;function D(a,b,c){return r.isFunction(b)?r.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?r.grep(a,function(a){return a===b!==c}):"string"!=typeof b?r.grep(a,function(a){return i.call(b,a)>-1!==c}):C.test(b)?r.filter(b,a,c):(b=r.filter(b,a),r.grep(a,function(a){return i.call(b,a)>-1!==c&&1===a.nodeType}))}r.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?r.find.matchesSelector(d,a)?[d]:[]:r.find.matches(a,r.grep(b,function(a){return 1===a.nodeType}))},r.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(r(a).filter(function(){for(b=0;b<d;b++)if(r.contains(e[b],this))return!0}));for(c=this.pushStack([]),b=0;b<d;b++)r.find(a,e[b],c);return d>1?r.uniqueSort(c):c},filter:function(a){return this.pushStack(D(this,a||[],!1))},not:function(a){return this.pushStack(D(this,a||[],!0))},is:function(a){return!!D(this,"string"==typeof a&&A.test(a)?r(a):a||[],!1).length}});var E,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,G=r.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||E,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:F.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof r?b[0]:b,r.merge(this,r.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),B.test(e[1])&&r.isPlainObject(b))for(e in b)r.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&(this[0]=f,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):r.isFunction(a)?void 0!==c.ready?c.ready(a):a(r):r.makeArray(a,this)};G.prototype=r.fn,E=r(d);var H=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(a){var b=r(a,this),c=b.length;return this.filter(function(){for(var a=0;a<c;a++)if(r.contains(this,b[a]))return!0})},closest:function(a,b){var c,d=0,e=this.length,f=[],g="string"!=typeof a&&r(a);if(!A.test(a))for(;d<e;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&r.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?r.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?i.call(r(a),this[0]):i.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function J(a,b){while((a=a[b])&&1!==a.nodeType);return a}r.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return y(a,"parentNode")},parentsUntil:function(a,b,c){return y(a,"parentNode",c)},next:function(a){return J(a,"nextSibling")},prev:function(a){return J(a,"previousSibling")},nextAll:function(a){return y(a,"nextSibling")},prevAll:function(a){return y(a,"previousSibling")},nextUntil:function(a,b,c){return y(a,"nextSibling",c)},prevUntil:function(a,b,c){return y(a,"previousSibling",c)},siblings:function(a){return z((a.parentNode||{}).firstChild,a)},children:function(a){return z(a.firstChild)},contents:function(a){return a.contentDocument||r.merge([],a.childNodes)}},function(a,b){r.fn[a]=function(c,d){var e=r.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=r.filter(d,e)),this.length>1&&(I[a]||r.uniqueSort(e),H.test(a)&&e.reverse()),this.pushStack(e)}});var K=/[^\x20\t\r\n\f]+/g;function L(a){var b={};return r.each(a.match(K)||[],function(a,c){b[c]=!0}),b}r.Callbacks=function(a){a="string"==typeof a?L(a):r.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){r.each(b,function(b,c){r.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==r.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return r.each(arguments,function(a,b){var c;while((c=r.inArray(b,f,c))>-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?r.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j};function M(a){return a}function N(a){throw a}function O(a,b,c){var d;try{a&&r.isFunction(d=a.promise)?d.call(a).done(b).fail(c):a&&r.isFunction(d=a.then)?d.call(a,b,c):b.call(void 0,a)}catch(a){c.call(void 0,a)}}r.extend({Deferred:function(b){var c=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return r.Deferred(function(b){r.each(c,function(c,d){var e=r.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&r.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){var f=0;function g(b,c,d,e){return function(){var h=this,i=arguments,j=function(){var a,j;if(!(b<f)){if(a=d.apply(h,i),a===c.promise())throw new TypeError("Thenable self-resolution");j=a&&("object"==typeof a||"function"==typeof a)&&a.then,r.isFunction(j)?e?j.call(a,g(f,c,M,e),g(f,c,N,e)):(f++,j.call(a,g(f,c,M,e),g(f,c,N,e),g(f,c,M,c.notifyWith))):(d!==M&&(h=void 0,i=[a]),(e||c.resolveWith)(h,i))}},k=e?j:function(){try{j()}catch(a){r.Deferred.exceptionHook&&r.Deferred.exceptionHook(a,k.stackTrace),b+1>=f&&(d!==N&&(h=void 0,i=[a]),c.rejectWith(h,i))}};b?k():(r.Deferred.getStackHook&&(k.stackTrace=r.Deferred.getStackHook()),a.setTimeout(k))}}return r.Deferred(function(a){c[0][3].add(g(0,a,r.isFunction(e)?e:M,a.notifyWith)),c[1][3].add(g(0,a,r.isFunction(b)?b:M)),c[2][3].add(g(0,a,r.isFunction(d)?d:N))}).promise()},promise:function(a){return null!=a?r.extend(a,e):e}},f={};return r.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=f.call(arguments),g=r.Deferred(),h=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?f.call(arguments):c,--b||g.resolveWith(d,e)}};if(b<=1&&(O(a,g.done(h(c)).resolve,g.reject),"pending"===g.state()||r.isFunction(e[c]&&e[c].then)))return g.then();while(c--)O(e[c],h(c),g.reject);return g.promise()}});var P=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&P.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},r.readyException=function(b){a.setTimeout(function(){throw b})};var Q=r.Deferred();r.fn.ready=function(a){return Q.then(a)["catch"](function(a){r.readyException(a)}),this},r.extend({isReady:!1,readyWait:1,holdReady:function(a){a?r.readyWait++:r.ready(!0)},ready:function(a){(a===!0?--r.readyWait:r.isReady)||(r.isReady=!0,a!==!0&&--r.readyWait>0||Q.resolveWith(d,[r]))}}),r.ready.then=Q.then;function R(){d.removeEventListener("DOMContentLoaded",R), 3a.removeEventListener("load",R),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",R),a.addEventListener("load",R));var S=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===r.type(c)){e=!0;for(h in c)S(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,r.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(r(a),c)})),b))for(;h<i;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},T=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function U(){this.expando=r.expando+U.uid++}U.uid=1,U.prototype={cache:function(a){var b=a[this.expando];return b||(b={},T(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[r.camelCase(b)]=c;else for(d in b)e[r.camelCase(d)]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][r.camelCase(b)]},access:function(a,b,c){return void 0===b||b&&"string"==typeof b&&void 0===c?this.get(a,b):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d=a[this.expando];if(void 0!==d){if(void 0!==b){r.isArray(b)?b=b.map(r.camelCase):(b=r.camelCase(b),b=b in d?[b]:b.match(K)||[]),c=b.length;while(c--)delete d[b[c]]}(void 0===b||r.isEmptyObject(d))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!r.isEmptyObject(b)}};var V=new U,W=new U,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Y=/[A-Z]/g;function Z(a){return"true"===a||"false"!==a&&("null"===a?null:a===+a+""?+a:X.test(a)?JSON.parse(a):a)}function $(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Y,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c=Z(c)}catch(e){}W.set(a,b,c)}else c=void 0;return c}r.extend({hasData:function(a){return W.hasData(a)||V.hasData(a)},data:function(a,b,c){return W.access(a,b,c)},removeData:function(a,b){W.remove(a,b)},_data:function(a,b,c){return V.access(a,b,c)},_removeData:function(a,b){V.remove(a,b)}}),r.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=W.get(f),1===f.nodeType&&!V.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=r.camelCase(d.slice(5)),$(f,d,e[d])));V.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){W.set(this,a)}):S(this,function(b){var c;if(f&&void 0===b){if(c=W.get(f,a),void 0!==c)return c;if(c=$(f,a),void 0!==c)return c}else this.each(function(){W.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){W.remove(this,a)})}}),r.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=V.get(a,b),c&&(!d||r.isArray(c)?d=V.access(a,b,r.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=r.queue(a,b),d=c.length,e=c.shift(),f=r._queueHooks(a,b),g=function(){r.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return V.get(a,c)||V.access(a,c,{empty:r.Callbacks("once memory").add(function(){V.remove(a,[b+"queue",c])})})}}),r.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?r.queue(this[0],a):void 0===b?this:this.each(function(){var c=r.queue(this,a,b);r._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&r.dequeue(this,a)})},dequeue:function(a){return this.each(function(){r.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=r.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=V.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var _=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,aa=new RegExp("^(?:([+-])=|)("+_+")([a-z%]*)$","i"),ba=["Top","Right","Bottom","Left"],ca=function(a,b){return a=b||a,"none"===a.style.display||""===a.style.display&&r.contains(a.ownerDocument,a)&&"none"===r.css(a,"display")},da=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};function ea(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return r.css(a,b,"")},i=h(),j=c&&c[3]||(r.cssNumber[b]?"":"px"),k=(r.cssNumber[b]||"px"!==j&&+i)&&aa.exec(r.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,r.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var fa={};function ga(a){var b,c=a.ownerDocument,d=a.nodeName,e=fa[d];return e?e:(b=c.body.appendChild(c.createElement(d)),e=r.css(b,"display"),b.parentNode.removeChild(b),"none"===e&&(e="block"),fa[d]=e,e)}function ha(a,b){for(var c,d,e=[],f=0,g=a.length;f<g;f++)d=a[f],d.style&&(c=d.style.display,b?("none"===c&&(e[f]=V.get(d,"display")||null,e[f]||(d.style.display="")),""===d.style.display&&ca(d)&&(e[f]=ga(d))):"none"!==c&&(e[f]="none",V.set(d,"display",c)));for(f=0;f<g;f++)null!=e[f]&&(a[f].style.display=e[f]);return a}r.fn.extend({show:function(){return ha(this,!0)},hide:function(){return ha(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){ca(this)?r(this).show():r(this).hide()})}});var ia=/^(?:checkbox|radio)$/i,ja=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ka=/^$|\/(?:java|ecma)script/i,la={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};la.optgroup=la.option,la.tbody=la.tfoot=la.colgroup=la.caption=la.thead,la.th=la.td;function ma(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&r.nodeName(a,b)?r.merge([a],c):c}function na(a,b){for(var c=0,d=a.length;c<d;c++)V.set(a[c],"globalEval",!b||V.get(b[c],"globalEval"))}var oa=/<|&#?\w+;/;function pa(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],n=0,o=a.length;n<o;n++)if(f=a[n],f||0===f)if("object"===r.type(f))r.merge(m,f.nodeType?[f]:f);else if(oa.test(f)){g=g||l.appendChild(b.createElement("div")),h=(ja.exec(f)||["",""])[1].toLowerCase(),i=la[h]||la._default,g.innerHTML=i[1]+r.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;r.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",n=0;while(f=m[n++])if(d&&r.inArray(f,d)>-1)e&&e.push(f);else if(j=r.contains(f.ownerDocument,f),g=ma(l.appendChild(f),"script"),j&&na(g),c){k=0;while(f=g[k++])ka.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),o.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",o.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var qa=d.documentElement,ra=/^key/,sa=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ta=/^([^.]*)(?:\.(.+)|)/;function ua(){return!0}function va(){return!1}function wa(){try{return d.activeElement}catch(a){}}function xa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)xa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=va;else if(!e)return a;return 1===f&&(g=e,e=function(a){return r().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=r.guid++)),a.each(function(){r.event.add(this,b,e,d,c)})}r.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=V.get(a);if(q){c.handler&&(f=c,c=f.handler,e=f.selector),e&&r.find.matchesSelector(qa,e),c.guid||(c.guid=r.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof r&&r.event.triggered!==b.type?r.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(K)||[""],j=b.length;while(j--)h=ta.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=r.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=r.event.special[n]||{},k=r.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&r.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),r.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=V.hasData(a)&&V.get(a);if(q&&(i=q.events)){b=(b||"").match(K)||[""],j=b.length;while(j--)if(h=ta.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){l=r.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||r.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)r.event.remove(a,n+b[j],c,d,!0);r.isEmptyObject(i)&&V.remove(a,"handle events")}},dispatch:function(a){var b=r.event.fix(a),c,d,e,f,g,h,i=new Array(arguments.length),j=(V.get(this,"events")||{})[b.type]||[],k=r.event.special[b.type]||{};for(i[0]=b,c=1;c<arguments.length;c++)i[c]=arguments[c];if(b.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,b)!==!1){h=r.event.handlers.call(this,b,j),c=0;while((f=h[c++])&&!b.isPropagationStopped()){b.currentTarget=f.elem,d=0;while((g=f.handlers[d++])&&!b.isImmediatePropagationStopped())b.rnamespace&&!b.rnamespace.test(g.namespace)||(b.handleObj=g,b.data=g.data,e=((r.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(b.result=e)===!1&&(b.preventDefault(),b.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,b),b.result}},handlers:function(a,b){var c,d,e,f,g,h=[],i=b.delegateCount,j=a.target;if(i&&j.nodeType&&!("click"===a.type&&a.button>=1))for(;j!==this;j=j.parentNode||this)if(1===j.nodeType&&("click"!==a.type||j.disabled!==!0)){for(f=[],g={},c=0;c<i;c++)d=b[c],e=d.selector+" ",void 0===g[e]&&(g[e]=d.needsContext?r(e,this).index(j)>-1:r.find(e,this,null,[j]).length),g[e]&&f.push(d);f.length&&h.push({elem:j,handlers:f})}return j=this,i<b.length&&h.push({elem:j,handlers:b.slice(i)}),h},addProp:function(a,b){Object.defineProperty(r.Event.prototype,a,{enumerable:!0,configurable:!0,get:r.isFunction(b)?function(){if(this.originalEvent)return b(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[a]},set:function(b){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:b})}})},fix:function(a){return a[r.expando]?a:new r.Event(a)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==wa()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===wa()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&r.nodeName(this,"input"))return this.click(),!1},_default:function(a){return r.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},r.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},r.Event=function(a,b){return this instanceof r.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?ua:va,this.target=a.target&&3===a.target.nodeType?a.target.parentNode:a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a,b&&r.extend(this,b),this.timeStamp=a&&a.timeStamp||r.now(),void(this[r.expando]=!0)):new r.Event(a,b)},r.Event.prototype={constructor:r.Event,isDefaultPrevented:va,isPropagationStopped:va,isImmediatePropagationStopped:va,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=ua,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=ua,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=ua,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},r.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(a){var b=a.button;return null==a.which&&ra.test(a.type)?null!=a.charCode?a.charCode:a.keyCode:!a.which&&void 0!==b&&sa.test(a.type)?1&b?1:2&b?3:4&b?2:0:a.which}},r.event.addProp),r.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){r.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||r.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),r.fn.extend({on:function(a,b,c,d){return xa(this,a,b,c,d)},one:function(a,b,c,d){return xa(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,r(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=va),this.each(function(){r.event.remove(this,a,c,b)})}});var ya=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,za=/<script|<style|<link/i,Aa=/checked\s*(?:[^=]|=\s*.checked.)/i,Ba=/^true\/(.*)/,Ca=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Da(a,b){return r.nodeName(a,"table")&&r.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a:a}function Ea(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function Fa(a){var b=Ba.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ga(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(V.hasData(a)&&(f=V.access(a),g=V.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;c<d;c++)r.event.add(b,e,j[e][c])}W.hasData(a)&&(h=W.access(a),i=r.extend({},h),W.set(b,i))}}function Ha(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ia.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function Ia(a,b,c,d){b=g.apply([],b);var e,f,h,i,j,k,l=0,m=a.length,n=m-1,q=b[0],s=r.isFunction(q);if(s||m>1&&"string"==typeof q&&!o.checkClone&&Aa.test(q))return a.each(function(e){var f=a.eq(e);s&&(b[0]=q.call(this,e,f.html())),Ia(f,b,c,d)});if(m&&(e=pa(b,a[0].ownerDocument,!1,a,d),f=e.firstChild,1===e.childNodes.length&&(e=f),f||d)){for(h=r.map(ma(e,"script"),Ea),i=h.length;l<m;l++)j=e,l!==n&&(j=r.clone(j,!0,!0),i&&r.merge(h,ma(j,"script"))),c.call(a[l],j,l);if(i)for(k=h[h.length-1].ownerDocument,r.map(h,Fa),l=0;l<i;l++)j=h[l],ka.test(j.type||"")&&!V.access(j,"globalEval")&&r.contains(k,j)&&(j.src?r._evalUrl&&r._evalUrl(j.src):p(j.textContent.replace(Ca,""),k))}return a}function Ja(a,b,c){for(var d,e=b?r.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||r.cleanData(ma(d)),d.parentNode&&(c&&r.contains(d.ownerDocument,d)&&na(ma(d,"script")),d.parentNode.removeChild(d));return a}r.extend({htmlPrefilter:function(a){return a.replace(ya,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=r.contains(a.ownerDocument,a);if(!(o.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||r.isXMLDoc(a)))for(g=ma(h),f=ma(a),d=0,e=f.length;d<e;d++)Ha(f[d],g[d]);if(b)if(c)for(f=f||ma(a),g=g||ma(h),d=0,e=f.length;d<e;d++)Ga(f[d],g[d]);else Ga(a,h);return g=ma(h,"script"),g.length>0&&na(g,!i&&ma(a,"script")),h},cleanData:function(a){for(var b,c,d,e=r.event.special,f=0;void 0!==(c=a[f]);f++)if(T(c)){if(b=c[V.expando]){if(b.events)for(d in b.events)e[d]?r.event.remove(c,d):r.removeEvent(c,d,b.handle);c[V.expando]=void 0}c[W.expando]&&(c[W.expando]=void 0)}}}),r.fn.extend({detach:function(a){return Ja(this,a,!0)},remove:function(a){return Ja(this,a)},text:function(a){return S(this,function(a){return void 0===a?r.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return Ia(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Da(this,a);b.appendChild(a)}})},prepend:function(){return Ia(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Da(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ia(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ia(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(r.cleanData(ma(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return r.clone(this,a,b)})},html:function(a){return S(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!za.test(a)&&!la[(ja.exec(a)||["",""])[1].toLowerCase()]){a=r.htmlPrefilter(a);try{for(;c<d;c++)b=this[c]||{},1===b.nodeType&&(r.cleanData(ma(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ia(this,arguments,function(b){var c=this.parentNode;r.inArray(this,a)<0&&(r.cleanData(ma(this)),c&&c.replaceChild(b,this))},a)}}),r.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){r.fn[a]=function(a){for(var c,d=[],e=r(a),f=e.length-1,g=0;g<=f;g++)c=g===f?this:this.clone(!0),r(e[g])[b](c),h.apply(d,c.get());return this.pushStack(d)}});var Ka=/^margin/,La=new RegExp("^("+_+")(?!px)[a-z%]+$","i"),Ma=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)};!function(){function b(){if(i){i.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",i.innerHTML="",qa.appendChild(h);var b=a.getComputedStyle(i);c="1%"!==b.top,g="2px"===b.marginLeft,e="4px"===b.width,i.style.marginRight="50%",f="4px"===b.marginRight,qa.removeChild(h),i=null}}var c,e,f,g,h=d.createElement("div"),i=d.createElement("div");i.style&&(i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",o.clearCloneStyle="content-box"===i.style.backgroundClip,h.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",h.appendChild(i),r.extend(o,{pixelPosition:function(){return b(),c},boxSizingReliable:function(){return b(),e},pixelMarginRight:function(){return b(),f},reliableMarginLeft:function(){return b(),g}}))}();function Na(a,b,c){var d,e,f,g,h=a.style;return c=c||Ma(a),c&&(g=c.getPropertyValue(b)||c[b],""!==g||r.contains(a.ownerDocument,a)||(g=r.style(a,b)),!o.pixelMarginRight()&&La.test(g)&&Ka.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function Oa(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Pa=/^(none|table(?!-c[ea]).+)/,Qa={position:"absolute",visibility:"hidden",display:"block"},Ra={letterSpacing:"0",fontWeight:"400"},Sa=["Webkit","Moz","ms"],Ta=d.createElement("div").style;function Ua(a){if(a in Ta)return a;var b=a[0].toUpperCase()+a.slice(1),c=Sa.length;while(c--)if(a=Sa[c]+b,a in Ta)return a}function Va(a,b,c){var d=aa.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function Wa(a,b,c,d,e){var f,g=0;for(f=c===(d?"border":"content")?4:"width"===b?1:0;f<4;f+=2)"margin"===c&&(g+=r.css(a,c+ba[f],!0,e)),d?("content"===c&&(g-=r.css(a,"padding"+ba[f],!0,e)),"margin"!==c&&(g-=r.css(a,"border"+ba[f]+"Width",!0,e))):(g+=r.css(a,"padding"+ba[f],!0,e),"padding"!==c&&(g+=r.css(a,"border"+ba[f]+"Width",!0,e)));return g}function Xa(a,b,c){var d,e=!0,f=Ma(a),g="border-box"===r.css(a,"boxSizing",!1,f);if(a.getClientRects().length&&(d=a.getBoundingClientRect()[b]),d<=0||null==d){if(d=Na(a,b,f),(d<0||null==d)&&(d=a.style[b]),La.test(d))return d;e=g&&(o.boxSizingReliable()||d===a.style[b]),d=parseFloat(d)||0}return d+Wa(a,b,c||(g?"border":"content"),e,f)+"px"}r.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Na(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=r.camelCase(b),i=a.style;return b=r.cssProps[h]||(r.cssProps[h]=Ua(h)||h),g=r.cssHooks[b]||r.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=aa.exec(c))&&e[1]&&(c=ea(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(r.cssNumber[h]?"":"px")),o.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=r.camelCase(b);return b=r.cssProps[h]||(r.cssProps[h]=Ua(h)||h),g=r.cssHooks[b]||r.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=Na(a,b,d)),"normal"===e&&b in Ra&&(e=Ra[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),r.each(["height","width"],function(a,b){r.cssHooks[b]={get:function(a,c,d){if(c)return!Pa.test(r.css(a,"display"))||a.getClientRects().length&&a.getBoundingClientRect().width?Xa(a,b,d):da(a,Qa,function(){return Xa(a,b,d)})},set:function(a,c,d){var e,f=d&&Ma(a),g=d&&Wa(a,b,d,"border-box"===r.css(a,"boxSizing",!1,f),f);return g&&(e=aa.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=r.css(a,b)),Va(a,c,g)}}}),r.cssHooks.marginLeft=Oa(o.reliableMarginLeft,function(a,b){if(b)return(parseFloat(Na(a,"marginLeft"))||a.getBoundingClientRect().left-da(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"}),r.each({margin:"",padding:"",border:"Width"},function(a,b){r.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];d<4;d++)e[a+ba[d]+b]=f[d]||f[d-2]||f[0];return e}},Ka.test(a)||(r.cssHooks[a+b].set=Va)}),r.fn.extend({css:function(a,b){return S(this,function(a,b,c){var d,e,f={},g=0;if(r.isArray(b)){for(d=Ma(a),e=b.length;g<e;g++)f[b[g]]=r.css(a,b[g],!1,d);return f}return void 0!==c?r.style(a,b,c):r.css(a,b)},a,b,arguments.length>1)}});function Ya(a,b,c,d,e){return new Ya.prototype.init(a,b,c,d,e)}r.Tween=Ya,Ya.prototype={constructor:Ya,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||r.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(r.cssNumber[c]?"":"px")},cur:function(){var a=Ya.propHooks[this.prop];return a&&a.get?a.get(this):Ya.propHooks._default.get(this)},run:function(a){var b,c=Ya.propHooks[this.prop];return this.options.duration?this.pos=b=r.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Ya.propHooks._default.set(this),this}},Ya.prototype.init.prototype=Ya.prototype,Ya.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=r.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){r.fx.step[a.prop]?r.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[r.cssProps[a.prop]]&&!r.cssHooks[a.prop]?a.elem[a.prop]=a.now:r.style(a.elem,a.prop,a.now+a.unit)}}},Ya.propHooks.scrollTop=Ya.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},r.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},r.fx=Ya.prototype.init,r.fx.step={};var Za,$a,_a=/^(?:toggle|show|hide)$/,ab=/queueHooks$/;function bb(){$a&&(a.requestAnimationFrame(bb),r.fx.tick())}function cb(){return a.setTimeout(function(){Za=void 0}),Za=r.now()}function db(a,b){var c,d=0,e={height:a};for(b=b?1:0;d<4;d+=2-b)c=ba[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function eb(a,b,c){for(var d,e=(hb.tweeners[b]||[]).concat(hb.tweeners["*"]),f=0,g=e.length;f<g;f++)if(d=e[f].call(c,b,a))return d}function fb(a,b,c){var d,e,f,g,h,i,j,k,l="width"in b||"height"in b,m=this,n={},o=a.style,p=a.nodeType&&ca(a),q=V.get(a,"fxshow");c.queue||(g=r._queueHooks(a,"fx"),null==g.unqueued&&(g.unqueued=0,h=g.empty.fire,g.empty.fire=function(){g.unqueued||h()}),g.unqueued++,m.always(function(){m.always(function(){g.unqueued--,r.queue(a,"fx").length||g.empty.fire()})}));for(d in b)if(e=b[d],_a.test(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}n[d]=q&&q[d]||r.style(a,d)}if(i=!r.isEmptyObject(b),i||!r.isEmptyObject(n)){l&&1===a.nodeType&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=q&&q.display,null==j&&(j=V.get(a,"display")),k=r.css(a,"display"),"none"===k&&(j?k=j:(ha([a],!0),j=a.style.display||j,k=r.css(a,"display"),ha([a]))),("inline"===k||"inline-block"===k&&null!=j)&&"none"===r.css(a,"float")&&(i||(m.done(function(){o.display=j}),null==j&&(k=o.display,j="none"===k?"":k)),o.display="inline-block")),c.overflow&&(o.overflow="hidden",m.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]})),i=!1;for(d in n)i||(q?"hidden"in q&&(p=q.hidden):q=V.access(a,"fxshow",{display:j}),f&&(q.hidden=!p),p&&ha([a],!0),m.done(function(){p||ha([a]),V.remove(a,"fxshow");for(d in n)r.style(a,d,n[d])})),i=eb(p?q[d]:0,d,m),d in q||(q[d]=i.start,p&&(i.end=i.start,i.start=0))}}function gb(a,b){var c,d,e,f,g;for(c in a)if(d=r.camelCase(c),e=b[d],f=a[c],r.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=r.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function hb(a,b,c){var d,e,f=0,g=hb.prefilters.length,h=r.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Za||cb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;g<i;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),f<1&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:r.extend({},b),opts:r.extend(!0,{specialEasing:{},easing:r.easing._default},c),originalProperties:b,originalOptions:c,startTime:Za||cb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=r.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;c<d;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(gb(k,j.opts.specialEasing);f<g;f++)if(d=hb.prefilters[f].call(j,a,k,j.opts))return r.isFunction(d.stop)&&(r._queueHooks(j.elem,j.opts.queue).stop=r.proxy(d.stop,d)),d;return r.map(k,eb,j),r.isFunction(j.opts.start)&&j.opts.start.call(a,j),r.fx.timer(r.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}r.Animation=r.extend(hb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return ea(c.elem,a,aa.exec(b),c),c}]},tweener:function(a,b){r.isFunction(a)?(b=a,a=["*"]):a=a.match(K);for(var c,d=0,e=a.length;d<e;d++)c=a[d],hb.tweeners[c]=hb.tweeners[c]||[],hb.tweeners[c].unshift(b)},prefilters:[fb],prefilter:function(a,b){b?hb.prefilters.unshift(a):hb.prefilters.push(a)}}),r.speed=function(a,b,c){var e=a&&"object"==typeof a?r.extend({},a):{complete:c||!c&&b||r.isFunction(a)&&a,duration:a,easing:c&&b||b&&!r.isFunction(b)&&b};return r.fx.off||d.hidden?e.duration=0:"number"!=typeof e.duration&&(e.duration in r.fx.speeds?e.duration=r.fx.speeds[e.duration]:e.duration=r.fx.speeds._default),null!=e.queue&&e.queue!==!0||(e.queue="fx"),e.old=e.complete,e.complete=function(){r.isFunction(e.old)&&e.old.call(this),e.queue&&r.dequeue(this,e.queue)},e},r.fn.extend({fadeTo:function(a,b,c,d){return this.filter(ca).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=r.isEmptyObject(a),f=r.speed(b,c,d),g=function(){var b=hb(this,r.extend({},a),f);(e||V.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=r.timers,g=V.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&ab.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||r.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=V.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=r.timers,g=d?d.length:0;for(c.finish=!0,r.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;b<g;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),r.each(["toggle","show","hide"],function(a,b){var c=r.fn[b];r.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(db(b,!0),a,d,e)}}),r.each({slideDown:db("show"),slideUp:db("hide"),slideToggle:db("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){r.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),r.timers=[],r.fx.tick=function(){var a,b=0,c=r.timers;for(Za=r.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||r.fx.stop(),Za=void 0},r.fx.timer=function(a){r.timers.push(a),a()?r.fx.start():r.timers.pop()},r.fx.interval=13,r.fx.start=function(){$a||($a=a.requestAnimationFrame?a.requestAnimationFrame(bb):a.setInterval(r.fx.tick,r.fx.interval))},r.fx.stop=function(){a.cancelAnimationFrame?a.cancelAnimationFrame($a):a.clearInterval($a),$a=null},r.fx.speeds={slow:600,fast:200,_default:400},r.fn.delay=function(b,c){return b=r.fx?r.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=d.createElement("input"),b=d.createElement("select"),c=b.appendChild(d.createElement("option"));a.type="checkbox",o.checkOn=""!==a.value,o.optSelected=c.selected,a=d.createElement("input"),a.value="t",a.type="radio",o.radioValue="t"===a.value}();var ib,jb=r.expr.attrHandle;r.fn.extend({attr:function(a,b){return S(this,r.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){r.removeAttr(this,a)})}}),r.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?r.prop(a,b,c):(1===f&&r.isXMLDoc(a)||(e=r.attrHooks[b.toLowerCase()]||(r.expr.match.bool.test(b)?ib:void 0)), 4void 0!==c?null===c?void r.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=r.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"===b&&r.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(K);if(e&&1===a.nodeType)while(c=e[d++])a.removeAttribute(c)}}),ib={set:function(a,b,c){return b===!1?r.removeAttr(a,c):a.setAttribute(c,c),c}},r.each(r.expr.match.bool.source.match(/\w+/g),function(a,b){var c=jb[b]||r.find.attr;jb[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=jb[g],jb[g]=e,e=null!=c(a,b,d)?g:null,jb[g]=f),e}});var kb=/^(?:input|select|textarea|button)$/i,lb=/^(?:a|area)$/i;r.fn.extend({prop:function(a,b){return S(this,r.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[r.propFix[a]||a]})}}),r.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&r.isXMLDoc(a)||(b=r.propFix[b]||b,e=r.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=r.find.attr(a,"tabindex");return b?parseInt(b,10):kb.test(a.nodeName)||lb.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),o.optSelected||(r.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});function mb(a){var b=a.match(K)||[];return b.join(" ")}function nb(a){return a.getAttribute&&a.getAttribute("class")||""}r.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).addClass(a.call(this,b,nb(this)))});if("string"==typeof a&&a){b=a.match(K)||[];while(c=this[i++])if(e=nb(c),d=1===c.nodeType&&" "+mb(e)+" "){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=mb(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).removeClass(a.call(this,b,nb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(K)||[];while(c=this[i++])if(e=nb(c),d=1===c.nodeType&&" "+mb(e)+" "){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=mb(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):r.isFunction(a)?this.each(function(c){r(this).toggleClass(a.call(this,c,nb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=r(this),f=a.match(K)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=nb(this),b&&V.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":V.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+mb(nb(c))+" ").indexOf(b)>-1)return!0;return!1}});var ob=/\r/g;r.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=r.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,r(this).val()):a,null==e?e="":"number"==typeof e?e+="":r.isArray(e)&&(e=r.map(e,function(a){return null==a?"":a+""})),b=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=r.valHooks[e.type]||r.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(ob,""):null==c?"":c)}}}),r.extend({valHooks:{option:{get:function(a){var b=r.find.attr(a,"value");return null!=b?b:mb(r.text(a))}},select:{get:function(a){var b,c,d,e=a.options,f=a.selectedIndex,g="select-one"===a.type,h=g?null:[],i=g?f+1:e.length;for(d=f<0?i:g?f:0;d<i;d++)if(c=e[d],(c.selected||d===f)&&!c.disabled&&(!c.parentNode.disabled||!r.nodeName(c.parentNode,"optgroup"))){if(b=r(c).val(),g)return b;h.push(b)}return h},set:function(a,b){var c,d,e=a.options,f=r.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=r.inArray(r.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(a,b){if(r.isArray(b))return a.checked=r.inArray(r(a).val(),b)>-1}},o.checkOn||(r.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var pb=/^(?:focusinfocus|focusoutblur)$/;r.extend(r.event,{trigger:function(b,c,e,f){var g,h,i,j,k,m,n,o=[e||d],p=l.call(b,"type")?b.type:b,q=l.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!pb.test(p+r.event.triggered)&&(p.indexOf(".")>-1&&(q=p.split("."),p=q.shift(),q.sort()),k=p.indexOf(":")<0&&"on"+p,b=b[r.expando]?b:new r.Event(p,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=q.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:r.makeArray(c,[b]),n=r.event.special[p]||{},f||!n.trigger||n.trigger.apply(e,c)!==!1)){if(!f&&!n.noBubble&&!r.isWindow(e)){for(j=n.delegateType||p,pb.test(j+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),i=h;i===(e.ownerDocument||d)&&o.push(i.defaultView||i.parentWindow||a)}g=0;while((h=o[g++])&&!b.isPropagationStopped())b.type=g>1?j:n.bindType||p,m=(V.get(h,"events")||{})[b.type]&&V.get(h,"handle"),m&&m.apply(h,c),m=k&&h[k],m&&m.apply&&T(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=p,f||b.isDefaultPrevented()||n._default&&n._default.apply(o.pop(),c)!==!1||!T(e)||k&&r.isFunction(e[p])&&!r.isWindow(e)&&(i=e[k],i&&(e[k]=null),r.event.triggered=p,e[p](),r.event.triggered=void 0,i&&(e[k]=i)),b.result}},simulate:function(a,b,c){var d=r.extend(new r.Event,c,{type:a,isSimulated:!0});r.event.trigger(d,null,b)}}),r.fn.extend({trigger:function(a,b){return this.each(function(){r.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return r.event.trigger(a,b,c,!0)}}),r.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,b){r.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),r.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),o.focusin="onfocusin"in a,o.focusin||r.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){r.event.simulate(b,a.target,r.event.fix(a))};r.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=V.access(d,b);e||d.addEventListener(a,c,!0),V.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=V.access(d,b)-1;e?V.access(d,b,e):(d.removeEventListener(a,c,!0),V.remove(d,b))}}});var qb=a.location,rb=r.now(),sb=/\?/;r.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||r.error("Invalid XML: "+b),c};var tb=/\[\]$/,ub=/\r?\n/g,vb=/^(?:submit|button|image|reset|file)$/i,wb=/^(?:input|select|textarea|keygen)/i;function xb(a,b,c,d){var e;if(r.isArray(b))r.each(b,function(b,e){c||tb.test(a)?d(a,e):xb(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==r.type(b))d(a,b);else for(e in b)xb(a+"["+e+"]",b[e],c,d)}r.param=function(a,b){var c,d=[],e=function(a,b){var c=r.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(r.isArray(a)||a.jquery&&!r.isPlainObject(a))r.each(a,function(){e(this.name,this.value)});else for(c in a)xb(c,a[c],b,e);return d.join("&")},r.fn.extend({serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=r.prop(this,"elements");return a?r.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!r(this).is(":disabled")&&wb.test(this.nodeName)&&!vb.test(a)&&(this.checked||!ia.test(a))}).map(function(a,b){var c=r(this).val();return null==c?null:r.isArray(c)?r.map(c,function(a){return{name:b.name,value:a.replace(ub,"\r\n")}}):{name:b.name,value:c.replace(ub,"\r\n")}}).get()}});var yb=/%20/g,zb=/#.*$/,Ab=/([?&])_=[^&]*/,Bb=/^(.*?):[ \t]*([^\r\n]*)$/gm,Cb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Db=/^(?:GET|HEAD)$/,Eb=/^\/\//,Fb={},Gb={},Hb="*/".concat("*"),Ib=d.createElement("a");Ib.href=qb.href;function Jb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(K)||[];if(r.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Kb(a,b,c,d){var e={},f=a===Gb;function g(h){var i;return e[h]=!0,r.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Lb(a,b){var c,d,e=r.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&r.extend(!0,a,d),a}function Mb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}if(f)return f!==i[0]&&i.unshift(f),c[f]}function Nb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}r.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:qb.href,type:"GET",isLocal:Cb.test(qb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Hb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":r.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Lb(Lb(a,r.ajaxSettings),b):Lb(r.ajaxSettings,a)},ajaxPrefilter:Jb(Fb),ajaxTransport:Jb(Gb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=r.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?r(p):r.event,s=r.Deferred(),t=r.Callbacks("once memory"),u=o.statusCode||{},v={},w={},x="canceled",y={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h){h={};while(b=Bb.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=w[a.toLowerCase()]=w[a.toLowerCase()]||a,v[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)y.always(a[y.status]);else for(b in a)u[b]=[u[b],a[b]];return this},abort:function(a){var b=a||x;return e&&e.abort(b),A(0,b),this}};if(s.promise(y),o.url=((b||o.url||qb.href)+"").replace(Eb,qb.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(K)||[""],null==o.crossDomain){j=d.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=Ib.protocol+"//"+Ib.host!=j.protocol+"//"+j.host}catch(z){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=r.param(o.data,o.traditional)),Kb(Fb,o,c,y),k)return y;l=r.event&&o.global,l&&0===r.active++&&r.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Db.test(o.type),f=o.url.replace(zb,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(yb,"+")):(n=o.url.slice(f.length),o.data&&(f+=(sb.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Ab,"$1"),n=(sb.test(f)?"&":"?")+"_="+rb++ +n),o.url=f+n),o.ifModified&&(r.lastModified[f]&&y.setRequestHeader("If-Modified-Since",r.lastModified[f]),r.etag[f]&&y.setRequestHeader("If-None-Match",r.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&y.setRequestHeader("Content-Type",o.contentType),y.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+Hb+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)y.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,y,o)===!1||k))return y.abort();if(x="abort",t.add(o.complete),y.done(o.success),y.fail(o.error),e=Kb(Gb,o,c,y)){if(y.readyState=1,l&&q.trigger("ajaxSend",[y,o]),k)return y;o.async&&o.timeout>0&&(i=a.setTimeout(function(){y.abort("timeout")},o.timeout));try{k=!1,e.send(v,A)}catch(z){if(k)throw z;A(-1,z)}}else A(-1,"No Transport");function A(b,c,d,h){var j,m,n,v,w,x=c;k||(k=!0,i&&a.clearTimeout(i),e=void 0,g=h||"",y.readyState=b>0?4:0,j=b>=200&&b<300||304===b,d&&(v=Mb(o,y,d)),v=Nb(o,v,y,j),j?(o.ifModified&&(w=y.getResponseHeader("Last-Modified"),w&&(r.lastModified[f]=w),w=y.getResponseHeader("etag"),w&&(r.etag[f]=w)),204===b||"HEAD"===o.type?x="nocontent":304===b?x="notmodified":(x=v.state,m=v.data,n=v.error,j=!n)):(n=x,!b&&x||(x="error",b<0&&(b=0))),y.status=b,y.statusText=(c||x)+"",j?s.resolveWith(p,[m,x,y]):s.rejectWith(p,[y,x,n]),y.statusCode(u),u=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[y,o,j?m:n]),t.fireWith(p,[y,x]),l&&(q.trigger("ajaxComplete",[y,o]),--r.active||r.event.trigger("ajaxStop")))}return y},getJSON:function(a,b,c){return r.get(a,b,c,"json")},getScript:function(a,b){return r.get(a,void 0,b,"script")}}),r.each(["get","post"],function(a,b){r[b]=function(a,c,d,e){return r.isFunction(c)&&(e=e||d,d=c,c=void 0),r.ajax(r.extend({url:a,type:b,dataType:e,data:c,success:d},r.isPlainObject(a)&&a))}}),r._evalUrl=function(a){return r.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},r.fn.extend({wrapAll:function(a){var b;return this[0]&&(r.isFunction(a)&&(a=a.call(this[0])),b=r(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return r.isFunction(a)?this.each(function(b){r(this).wrapInner(a.call(this,b))}):this.each(function(){var b=r(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=r.isFunction(a);return this.each(function(c){r(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){r(this).replaceWith(this.childNodes)}),this}}),r.expr.pseudos.hidden=function(a){return!r.expr.pseudos.visible(a)},r.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},r.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Ob={0:200,1223:204},Pb=r.ajaxSettings.xhr();o.cors=!!Pb&&"withCredentials"in Pb,o.ajax=Pb=!!Pb,r.ajaxTransport(function(b){var c,d;if(o.cors||Pb&&!b.crossDomain)return{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Ob[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}}),r.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return r.globalEval(a),a}}}),r.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),r.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=r("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&f("error"===a.type?404:200,a.type)}),d.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Qb=[],Rb=/(=)\?(?=&|$)|\?\?/;r.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Qb.pop()||r.expando+"_"+rb++;return this[a]=!0,a}}),r.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Rb.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Rb.test(b.data)&&"data");if(h||"jsonp"===b.dataTypes[0])return e=b.jsonpCallback=r.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Rb,"$1"+e):b.jsonp!==!1&&(b.url+=(sb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||r.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?r(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Qb.push(e)),g&&r.isFunction(f)&&f(g[0]),g=f=void 0}),"script"}),o.createHTMLDocument=function(){var a=d.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",2===a.childNodes.length}(),r.parseHTML=function(a,b,c){if("string"!=typeof a)return[];"boolean"==typeof b&&(c=b,b=!1);var e,f,g;return b||(o.createHTMLDocument?(b=d.implementation.createHTMLDocument(""),e=b.createElement("base"),e.href=d.location.href,b.head.appendChild(e)):b=d),f=B.exec(a),g=!c&&[],f?[b.createElement(f[1])]:(f=pa([a],b,g),g&&g.length&&r(g).remove(),r.merge([],f.childNodes))},r.fn.load=function(a,b,c){var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=mb(a.slice(h)),a=a.slice(0,h)),r.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&r.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?r("<div>").append(r.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},r.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){r.fn[b]=function(a){return this.on(b,a)}}),r.expr.pseudos.animated=function(a){return r.grep(r.timers,function(b){return a===b.elem}).length};function Sb(a){return r.isWindow(a)?a:9===a.nodeType&&a.defaultView}r.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=r.css(a,"position"),l=r(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=r.css(a,"top"),i=r.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),r.isFunction(b)&&(b=b.call(a,c,r.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},r.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){r.offset.setOffset(this,a,b)});var b,c,d,e,f=this[0];if(f)return f.getClientRects().length?(d=f.getBoundingClientRect(),d.width||d.height?(e=f.ownerDocument,c=Sb(e),b=e.documentElement,{top:d.top+c.pageYOffset-b.clientTop,left:d.left+c.pageXOffset-b.clientLeft}):d):{top:0,left:0}},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===r.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),r.nodeName(a[0],"html")||(d=a.offset()),d={top:d.top+r.css(a[0],"borderTopWidth",!0),left:d.left+r.css(a[0],"borderLeftWidth",!0)}),{top:b.top-d.top-r.css(c,"marginTop",!0),left:b.left-d.left-r.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&"static"===r.css(a,"position"))a=a.offsetParent;return a||qa})}}),r.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;r.fn[a]=function(d){return S(this,function(a,d,e){var f=Sb(a);return void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),r.each(["top","left"],function(a,b){r.cssHooks[b]=Oa(o.pixelPosition,function(a,c){if(c)return c=Na(a,b),La.test(c)?r(a).position()[b]+"px":c})}),r.each({Height:"height",Width:"width"},function(a,b){r.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){r.fn[d]=function(e,f){var g=arguments.length&&(c||"boolean"!=typeof e),h=c||(e===!0||f===!0?"margin":"border");return S(this,function(b,c,e){var f;return r.isWindow(b)?0===d.indexOf("outer")?b["inner"+a]:b.document.documentElement["client"+a]:9===b.nodeType?(f=b.documentElement,Math.max(b.body["scroll"+a],f["scroll"+a],b.body["offset"+a],f["offset"+a],f["client"+a])):void 0===e?r.css(b,c,h):r.style(b,c,e,h)},b,g?e:void 0,g)}})}),r.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),r.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery",[],function(){return r});var Tb=a.jQuery,Ub=a.$;return r.noConflict=function(b){return a.$===r&&(a.$=Ub),b&&a.jQuery===r&&(a.jQuery=Tb),r},b||(a.jQuery=a.$=r),r});
5 6/*! jQuery UI - v1.12.1 - 2017-06-29 7* http://jqueryui.com 8* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/autocomplete.js, widgets/datepicker.js, widgets/menu.js, widgets/mouse.js, widgets/slider.js 9* Copyright jQuery Foundation and other contributors; Licensed MIT */ 10 11(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){function e(t){for(var e=t.css("visibility");"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}function i(t){for(var e,i;t.length&&t[0]!==document;){if(e=t.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function s(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
11ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=n(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,o)}function o(){t.datepicker._isDisabledDatepicker(h.inline?h.dpDiv.parent()[0]:h.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function a(e,i){t.extend(e,i);for(var s in i)null==i[s]&&(e[s]=i[s]);return e}t.ui=t.ui||{},t.ui.version="1.12.1";var r=0,l=Array.prototype.slice;t.cleanData=function(e){return function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)try{s=t._data(n,"events"),s&&s.remove&&t(n).triggerHandler("remove")}catch(a){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0];e=e.split(".")[1];var h=l+"-"+e;return s||(s=i,i=t.Widget),t.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr[":"][h.toLowerCase()]=function(e){return!!t.data(e,h)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e),void 0):new o(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(s,function(e,s){return t.isFunction(s)?(r[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}(),void 0):(r[e]=s,void 0)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n?a.widgetEventPrefix||e:e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:h}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,s,n=l.call(arguments,1),o=0,a=n.length;a>o;o++)for(i in n[o])s=n[o][i],n[o].hasOwnProperty(i)&&void 0!==s&&(e[i]=t.isPlainObject(s)?t.isPlainObject(e[i])?t.widget.extend({},e[i],s):t.widget.extend({},s):s);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(n){var o="string"==typeof n,a=l.call(arguments,1),r=this;return o?this.length||"instance"!==n?this.each(function(){var i,o=t.data(this,s);return"instance"===n?(r=o,!1):o?t.isFunction(o[n])&&"_"!==n.charAt(0)?(i=o[n].apply(o,a),i!==o&&void 0!==i?(r=i&&i.jquery?r.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+n+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; "+"attempted to call method '"+n+"'")}):r=void 0:(a.length&&(n=t.widget.extend.apply(null,[n].concat(a))),this.each(function(){var e=t.data(this,s);e?(e.option(n||{}),e._init&&e._init()):t.data(this,s,new i(n,this))})),r}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=r++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t
vendor: 9,589 bytes, line 11
11(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var a,r;for(r=0;i.length>r;r++)a=n.classesElementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[i[r]]=a,s.push(i[r]),o&&e.classes[i[r]]&&s.push(e.classes[i[r]])}var s=[],n=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){return e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),h=l[1]+o.eventNamespace,c=l[2];c?n.on(h,c,r):i.on(h,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==typeof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget,function(){function e(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function s(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var n,o=Math.max,a=Math.abs,r=/left|center|right/,l=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==n)return n;var e,i,s=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=s.children()[0];return t("body").append(s),e=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,e===i&&(i=s[0].clientWidth),s.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,o="scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight;return{width:o?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=t.isWindow(i[0]),n=!!i[0]&&9===i[0].nodeType,o=!s&&!n;return{element:i,isWindow:s,isDocument:n,offset:o?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(n){if(!n||!n.of)return d.apply(this,arguments);n=t.extend({},n);var u,p,f,g,m,_,v=t(n.of),b=t.position.getWithinInfo(n.within),y=t.position.getScrollInfo(b),w=(n.collision||"flip").split(" "),k={};return _=s(v),v[0].preventDefault&&(n.at="left top"),p=_.width,f=_.height,g=_.offset,m=t.extend({},g),t.each(["my","at"],function(){var t,e,i=(n[this]||"").split(" ");1===i.length&&(i=r.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]),i[0]=r.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=h.exec(i[0]),e=h.exec(i[1]),k[this]=[t?t[0]:0,e?e[0]:0],n[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===n.at[0]?m.left+=p:"center"===n.at[0]&&(m.left+=p/2),"bottom"===n.at[1]?m.top+=f:"center"===n.at[1]&&(m.top+=f/2),u=e(k.at,p,f),m.left+=u[0],m.top+=u[1],this.each(function(){var s,r,l=t(this),h=l.outerWidth(),c=l.outerHeight(),d=i(this,"marginLeft"),_=i(this,"marginTop"),x=h+d+i(this,"marginRight")+y.width,C=c+_+i(this,"marginBottom")+y.height,D=t.extend({},m),T=e(k.my,l.outerWidth(),l.outerHeight());"right"===n.my[0]?D.left-=h:"center"===n.my[0]&&(D.left-=h/2),"bottom"===n.my[1]?D.top-=c:"center"===n.my[1]&&(D.top-=c/2),D.left+=T[0],D.top+=T[1],s={marginLeft:d,marginTop:_},t.each(["left","top"],function(e,i){t.ui.position[w[e]]&&t.ui.position[w[e]][i](D,{targetWidth:p,targetHeight:f,elemWidth:h,elemHeight:c,collisionPosition:s,collisionWidth:x,collisionHeight:C,offset:[u[0]+T[0],u[1]+T[1]],my:n.my,at:n.at,within:b,elem:l})}),n.using&&(r=function(t){var e=g.left-D.left,i=e+p-h,s=g.top-D.top,r=s+f-c,u={target:{element:v,left:g.left,top:g.top,width:p,height:f},element:{element:l,left:D.left,top:D.top,width:h,height:c},horizontal:0>i?"left":e>0?"right":"center",vertical:0>r?"top":s>0?"bottom":"middle"};h>p&&p>a(e+i)&&(u.horizontal="center"),c>f&&f>a(s+r)&&(u.vertical="middle"),u.important=o(a(e),a(i))>o(a(s),a(r))?"horizontal":"vertical",n.using.call(this,t,u)}),l.offset(t.extend(D,{using:r}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,l=n-r,h=r+e.collisionWidth-a-n;e.collisionWidth>a?l>0&&0>=h?(i=t.left+l+e.collisionWidth-a-n,t.left+=l-i):t.left=h>0&&0>=l?n:l>h?n+a-e.collisionWidth:n:l>0?t.left+=l:h>0?t.left-=h:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,l=n-r,h=r+e.collisionHeight-a-n;e.collisionHeight>a?l>0&&0>=h?(i=t.top+l+e.collisionHeight-a-n,t.top+=l-i):t.top=h>0&&0>=l?n:l>h?n+a-e.collisionHeight:n:l>
110?t.top+=l:h>0?t.top-=h:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,r=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,u=h+e.collisionWidth-r-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-r-o,(0>i||a(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-l,(s>0||u>a(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,r=n.height,l=n.isWindow?n.scrollTop:n.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,u=h+e.collisionHeight-r-l,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(s=t.top+p+f+g+e.collisionHeight-r-o,(0>s||a(c)>s)&&(t.top+=p+f+g)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-l,(i>0||u>a(i))&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,s){return!!t.data(e,s[3])}}),t.fn.extend({disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}}),t.ui.focusable=function(i,s){var n,o,a,r,l,h=i.nodeName.toLowerCase();return"area"===h?(n=i.parentNode,o=n.name,i.href&&o&&"map"===n.nodeName.toLowerCase()?(a=t("img[usemap='#"+o+"']"),a.length>0&&a.is(":visible")):!1):(/^(input|select|textarea|button|object)$/.test(h)?(r=!i.disabled,r&&(l=t(i).closest("fieldset")[0],l&&(r=!l.disabled))):r="a"===h?i.href||s:s,r&&t(i).is(":visible")&&e(t(i)))},t.extend(t.expr[":"],{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}}),t.ui.focusable,t.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)},t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout(function(){var i=e.data("ui-form-reset-instances");t.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],function(e,i){function s(e,i,s,o){return t.each(n,function(){i-=parseFloat(t.css(e,"padding"+this))||0,s&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var n="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?a["inner"+i].call(this):this.each(function(){t(this).css(o,s(this,e)+"px")})},t.fn["outer"+i]=function(e,n){return"number"!=typeof e?a["outer"+i].call(this,e):this.each(function(){t(this).css(o,s(this,e,!0,n)+"px")})}}),t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.ui.escapeSelector=function(){var t=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;return function(e){return e.replace(t,"\\$1")}}(),t.fn.labels=function(){var e,i,s,n,o;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(n=this.eq(0).parents("label"),s=this.attr("id"),s&&(e=this.eq(0).parents().last(
vendor: 7,984 bytes, line 11
11),o=e.add(e.length?e.siblings():this.siblings()),i="label[for='"+t.ui.escapeSelector(s)+"']",n=n.add(o.find(i).addBack(i))),this.pushStack(n))},t.fn.scrollParent=function(e){var i=this.css("position"),s="absolute"===i,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);return s&&"static"===e.css("position")?!1:n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)},t.extend(t.expr[":"],{tabbable:function(e){var i=t.attr(e,"tabindex"),s=null!=i;return(!s||i>=0)&&t.ui.focusable(e,s)}}),t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),s=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),s=t(e.currentTarget);i[0]===s[0]&&(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,s))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){var i=!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),i.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,s,n,o,a=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,s=this.previousFilter||"",o=!1,n=e.keyCode>=96&&105>=e.keyCode?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),n===s?o=!0:n=s+n,i=this._filterMenuItems(n),i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(n=String.fromCharCode(e.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(e,i),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,s,n,o,a=this,r=this.options.icons.submenu,l=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),s=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),s=t("<span>").data("ui-menu-submenu-caret",!0);a._addClass(s,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(s),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(s,"ui-menu","ui-widget ui-widget-content ui-front"),e=l.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-item").each(function(){var e=t(this);a._isDivider(e)&&a._addClass(e,"ui-menu-divider","ui-widget-content")}),n=i.not(".ui-menu-item, .ui-menu-divider"),o=n.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,s,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,o,a,r;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.outerHeight(),0>n?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollTop(o+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
11se")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[e]()),this.focus(i,s)},nextPage:function(e){var i,s,n;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),0>i.offset().top-s-n}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(e),void 0)},previousPage:function(e){var i,s,n;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-s+n>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first())),void 0):(this.next(e),void 0)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}}),t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,a="input"===n;this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,void 0;e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),void 0;if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),void 0):(this._searchTimeout(t),void 0) 12},focus:function(){this.selectedItem=null,this.previous=this._value(
vendor: 9,686 bytes, line 12
12)},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(t),this._change(t),void 0)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var s,n;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),void 0):(n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),s=i.item.attr("aria-label")||n.value,s&&t.trim(s).length&&(this.liveRegion.children().hide(),t("<div>").text(s).appendTo(this.liveRegion)),void 0)},menuselect:function(e,i){var s=i.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=s})),!1!==this._trigger("select",e,{item:s})&&this._value(s.value),this.term=this._value(),this.close(e),this.selectedItem=s}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),s=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!i&&!s)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var s=this;t.each(i,function(t,i){s._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[t](e),void 0):(this.search(null,e),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete,t.extend(t.ui,{datepicker:{version:"1.12.1"}});var h;t.extend(s.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return a(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var s,n,o;s=e.nodeName.toLowerCase(),n="div"===s||"span"===s,e.id||(this.uuid+=1,e.id="dp"+this.uuid),o=this._newInst(t(e),n),o.settings=t.extend({},i||{}),"input"===s?this._connectDatepicker(e,o):n&&this._inlineDatepicker(e,o)},_newInst:function(e,i){var s=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:s,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var s=t(e);i.append=t([]),i.trigger=t([]),s.hasClass(this.markerClassName)||(this._attachments(s,i),s.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var s,n,o,a=this._get(i,"appendText"),r=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=t("<span class='"+this._appendClass+"'>"+a+"</span>"),e[r?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),s=this._get(i,"showOn"),("focus"===s||"both"===s)&&e.on("focus",this._showDatepicker),("button"===s||"both"===s)&&(n=this._get(i,"buttonText"),o=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:o,alt:n,title:n}):t("<button type='button'></button>").addClass(this._triggerClass).html(o?t("<img/>").attr({src:o,alt:n,title:n}):n)),e[r?"before":"after"](i.trigger),i.trigger.on("click",function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,s,n,o=new Date(2009,11,20),a=this._get(t,"dateFormat");a.match(/[DM]/)&&(e=function(t){for(i=0,s=0,n=0;t.length>n;n++)t[n].length>i&&(i=t[n].length,s=n);return s},o.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length)}},_inlineDatepicker:function(e,i){var s=t(e);s.hasClass(this.markerClassName)||(s.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,s,n,o){var r,l,h,c,u,d=this._dialogInst;return d||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>
12"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInput,!1),d.settings={},t.data(this._dialogInput[0],"datepicker",d)),a(d.settings,n||{}),i=i&&i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(l=document.documentElement.clientWidth,h=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+c,h/2-150+u]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=s,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(e){var i,s=t(e),n=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(n.append.remove(),n.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===i||"span"===i)&&s.removeClass(this.markerClassName).empty(),h===n&&(h=null))},_enableDatepicker:function(e){var i,s,n=t(e),o=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,o.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,s,n=t(e),o=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,o.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,s){var n,o,r,l,h=this._getInst(e);return 2===arguments.length&&"string"==typeof i?"defaults"===i?t.extend({},t.datepicker._defaults):h?"all"===i?t.extend({},h.settings):this._get(h,i):null:(n=i||{},"string"==typeof i&&(n={},n[i]=s),h&&(this._curInst===h&&this._hideDatepicker(),o=this._getDateDatepicker(e,!0),r=this._getMinMaxDate(h,"min"),l=this._getMinMaxDate(h,"max"),a(h.settings,n),null!==r&&void 0!==n.dateFormat&&void 0===n.minDate&&(h.settings.minDate=this._formatDate(h,r)),null!==l&&void 0!==n.dateFormat&&void 0===n.maxDate&&(h.settings.maxDate=this._formatDate(h,l)),"disabled"in n&&(n.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),h),this._autoSize(h),this._setDate(h,o),this._updateAlternate(h),this._updateDatepicker(h)),void 0)},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,s,n,o=t.datepicker._getInst(e.target),a=!0,r=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),a=!1;break;case 13:return n=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",o.dpDiv),n[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,n[0]),i=t.datepicker._get(o,"onSelect"),i?(s=t.datepicker._formatDate(o),i.apply(o.input?o.input[0]:null,[s,o])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),a=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),a=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,r?1:-1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),a=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,r?-1:1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),a=e.ctrlKey||e.metaKey;break;default:a=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):a=!1;a&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,s,n=t.datepicker._getInst(e.target);return t.datepicker._get(n,"constrainInput")?(i=t.datepicker._possibleChars(t.datepicker._get(n,"dateFormat")),s=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" ">s||!i||i.indexOf(s)>-1):void 0},_doKeyUp:function(e){var i,s=t.datepicker._getInst(e.target);if(s.input.val()!==s.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(s,"dateFormat"),s.input?s.input.val():null,t.datepicker._getFormatConfig(s)),i&&(t.datepicker._setDateFromField(s),t.datepicker._updateAlternate(s),t.datepicker._updateDatepicker(s))}catch(n){}return!0}
vendor: 26,916 bytes, lines 12-13
12,_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var s,n,o,r,l,h,c;s=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==s&&(t.datepicker._curInst.dpDiv.stop(!0,!0),s&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),n=t.datepicker._get(s,"beforeShow"),o=n?n.apply(e,[e,s]):{},o!==!1&&(a(s.settings,o),s.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(s),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),r=!1,t(e).parents().each(function(){return r|="fixed"===t(this).css("position"),!r}),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(s),l=t.datepicker._checkOffset(s,l,r),s.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":r?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),s.inline||(h=t.datepicker._get(s,"showAnim"),c=t.datepicker._get(s,"duration"),s.dpDiv.css("z-index",i(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[h]?s.dpDiv.show(h,t.datepicker._get(s,"showOptions"),c):s.dpDiv[h||"show"](h?c:null),t.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),t.datepicker._curInst=s))}},_updateDatepicker:function(e){this.maxRows=4,h=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,s=this._getNumberOfMonths(e),n=s[1],a=17,r=e.dpDiv.find("."+this._dayOverClass+" a");r.length>0&&o.apply(r.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&e.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",a*n+"em"),e.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,s){var n=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,r=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(s?0:t(document).scrollLeft()),h=document.documentElement.clientHeight+(s?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?n-a:0,i.left-=s&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=s&&i.top===e.input.offset().top+r?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+n>l&&l>n?Math.abs(i.left+n-l):0),i.top-=Math.min(i.top,i.top+o>h&&h>o?Math.abs(o+r):0),i},_findPos:function(e){for(var i,s=this._getInst(e),n=this._get(s,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,s,n,o,a=this._curInst;!a||e&&a!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(a,"showAnim"),s=this._get(a,"duration"),n=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),s,n):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?s:null,n),i||n(),this._datepickerShowing=!1,o=this._get(a,"onClose"),o&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),s=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&&0===i.parents("#"+t.datepicker._mainDivId).length&&!i.hasClass(t.datepicker.markerClassName)&&!i.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==s)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,s){var n=t(e),o=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(o,i+("M"===s?this._get(o,"showCurrentAtPos"):0),s),this._updateDatepicker(o))},_gotoToday:function(e){var i,s=t(e),n=this._getInst(s[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(i=new Date,n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear()),this._notifyChange(n),this._adjustDate(s)},_selectMonthYear:function(e,i,s){var n=t(e),o=this._getInst(n[0]);o["selected"+("M"===s?"Month":"Year")]=o["draw"+("M"===s?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(n)},_selectDay:function(e,i,s,n){var o,a=t(e);t(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||(o=this._getInst(a[0]),o.selectedDay=o.currentDay=t("a",n).html(),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=s,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var s,n=t(e),o=this._getInst(n[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),s=this._get(o,"onSelect"),s?s.apply(o.input?o.input[0]:null,[i,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,s,n,o=this._get(e,"altField");o&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),s=this._getDate(e),n=this.formatDate(i,s,this._getFormatConfig(e)),t(o).val(n))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,s){if(null==e||null==i)throw"Invalid arguments";if(i="object"==typeof i?""+i:i+"",""===i)return null;var n,o,a,r,l=0,h=(s?s.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof h?h:(new Date).getFullYear()%100+parseInt(h,10),u=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,d=(s?s.dayNames:null)||this._defaults.dayNames,p=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,f=(s?s.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,_=-1,v=-1,b=!1,y=function(t){var i=e.length>n+1&&e.charAt(n+1)===t;return i&&n++,i},w=function(t){var e=y(t),s="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,n="y"===t?s:1,o=RegExp("^\\d{"+n+","+s+"}"),a=i.substring(l).match(o);if(!a)throw"Missing number at position "+l;return l+=a[0].length,parseInt(a[0],10)},k=function(e,s,n){var o=-1,a=t.map(y(e)?n:s,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(a,function(t,e){var s=e[1];return i.substr(l,s.length).toLowerCase()===s.toLowerCase()?(o=e[0],l+=s.length,!1):void 0}),-1!==o)return o+1;throw"Unknown name at position "+l},x=function(){if(i.charAt(l)!==e.charAt(n))throw"Unexpected literal at position "+l;l++};for(n=0;e.length>n;n++)if(b)"'"!==e.charAt(n)||y("'")?x():b=!1;else switch(e.charAt(n)){case"d":_=w("d");break;case"D":k("D",u,d);break;case"o":v=w("o");break;case"m":m=w("m");break;case"M":m=k("M",p,f);break;case"y":g=w("y");break;case"@":r=new Date(w("@")),g=r.getFullYear(),m=r.getMonth()+1,_=r.getDate();break;case"!":r=new Date((w("!")-this._ticksTo1970)/1e4),g=r.getFullYear(),m=r.getMonth()+1,_=r.getDate();break;case"'":y("'")?x():b=!0;break;default:x()}if(i.length>l&&(a=i.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===g?g=(new Date).getFullYear():100>g&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c>=g?0:-100)),v>-1)for(m=1,_=v;;){if(o=this._getDaysInMonth(g,m-1),o>=_)break;m++,_-=o}if(r=this._daylightSavingAdjust(new Date(g,m-1,_)),r.getFullYear()!==g||r.getMonth()+1!==m||r.getDate()!==_)throw"Invalid date";return r},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:1e7*60*60*24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(t,e,i){if(!e)return"";var s,n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=t.length>s+1&&t.charAt(s+1)===e;return i&&s++,i},h=function(t,e,i){var s=""+e;if(l(t))for(;i>s.length;)s="0"+s;return s},c=function(t,e,i,s){return l(t)?s[e]:i[e]},u="",d=!1;if(e)for(s=0;t.length>s;s++)if(d)"'"!==t.charAt(s)||l("'")?u+=t.charAt(s):d=!1;else switch(t.charAt(s)){case"d":u+=h("d",e.getDate(),2);break;case"D":u+=c("D",e.getDay(),n,o);break;case"o":u+=h("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=h("m",e.getMonth()+1,2);break;case"M":u+=c("M",e.getMonth(),a,r);break;case"y":u+=l("y")?e.getFullYear():(10>e.getFullYear()%100?"0":"")+e.getFullYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?u+="'":d=!0;break;default:u+=t.charAt(s)}return u},_possibleChars:function(t){var e,i="",s=!1,n=function(i){var s=t.length>e+1&&t.charAt(e+1)===i;return s&&e++,s};for(e=0;t.length>e;e++)if(s)"'"!==t.charAt(e)||n("'")?i+=t.charAt(e):s=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":n("'")?i+="'":s=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),o=n,a=this._getFormatConfig(t);try{o=this.parseDate(i,s,a)||n}catch(r){s=e?"":s}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=s?o.getDate():0,t.currentMonth=s?o.getMonth():0,t.currentYear=s?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,s){var n=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},o=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(s){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,o=n.getFullYear(),a=n.getMonth(),r=n.getDate(),l=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,h=l.exec(i);h;){switch(h[2]||"d"){case"d":case"D":r+=parseInt(h[1],10);break;case"w":case"W":r+=7*parseInt(h[1],10);break;case"m":case"M":a+=parseInt(h[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(o,a));break;case"y":case"Y":o+=parseInt(h[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(o,a))}h=l.exec(i)}return new Date(o,a,r)},a=null==i||""===i?s:"string"==typeof i?o(i):"number"==typeof i?isNaN(i)?s:n(i):new Date(i.getTime());return a=a&&"Invalid Date"==""+a?s:a,a&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,o=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),n===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),s="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(s,-i,"M")},next:function(){t.datepicker._adjustDate(s,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(s)},selectDay:function(){return t.datepicker._selectDay(s,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(s,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,n,o,a,r,l,h,c,u,d,p,f,g,m,_,v,b,y,w,k,x,C,D,T,I,M,P,S,N,H,A,z,O,E,W,F,L,R=new Date,Y=this._daylightSavingAdjust(new Date(R.getFullYear(),R.getMonth(),R.getDate())),B=this._get(t,"isRTL"),j=this._get(t,"showButtonPanel"),q=this._get(t,"hideIfNoPrevNext"),K=this._get(t,"navigationAsDateFormat"),U=this._getNumberOfMonths(t),V=this._get(t,"showCurrentAtPos"),X=this._get(t,"stepMonths"),$=1!==U[0]||1!==U[1],G=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(t,"min"),Q=this._getMinMaxDate(t,"max"),Z=t.drawMonth-V,te=t.drawYear;if(0>Z&&(Z+=12,te--),Q)for(e=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-U[0]*U[1]+1,Q.getDate())),e=J&&J>e?J:e;this._daylightSavingAdjust(new Date(te,Z,1))>e;)Z--,0>Z&&(Z=11,te--);for(t.drawMonth=Z,t.drawYear=te,i=this._get(t,"prevText"),i=K?this.formatDate(i,this._daylightSavingAdjust(new Date(te,Z-X,1)),this._getFormatConfig(t)):i,s=this._canAdjustMonth(t,-1,te,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"e":"w")+"'>"+i+"</span></a>":q?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"e":"w")+"'>"+i+"</span></a>",n=this._get(t,"nextText"),n=K?this.formatDate(n,this._daylightSavingAdjust(new Date(te,Z+X,1)),this._getFormatConfig(t)):n,o=this._canAdjustMonth(t,1,te,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"w":"e")+"'>"+n+"</span></a>":q?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"w":"e")+"'>"+n+"</span></a>",a=this._get(t,"currentText"),r=this._get(t,"gotoCurrent")&&t.currentDay?G:Y,a=K?this.formatDate(a,r,this._getFormatConfig(t)):a,l=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",h=j?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(B?l:"")+(this._isInRange(t,r)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+a+"</button>":"")+(B?"":l)+"</div>":"",c=parseInt(this._get(t,"firstDay"),10),c=isNaN(c)?0:c,u=this._get(t,"showWeek"),d=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),_=this._get(t,"showOtherMonths"),v=this._get(t,"selectOtherMonths"),b=this._getDefaultDate(t),y="",k=0;U[0]>k;k++){for(x="",this.maxRows=4,C=0;U[1]>C;C++){if(D=this._daylightSavingAdjust(new Date(te,Z,t.selectedDay)),T=" ui-corner-all",I="",$){if(I+="<div class='ui-datepicker-group",U[1]>1)switch(C){case 0:I+=" ui-datepicker-group-first",T=" ui-corner-"+(B?"right":"left"); 13break;case U[1]-1:I+=" ui-datepicker-group-last",T=" ui-corner-"+(B?"left":"right");break;default:I+=" ui-datepicker-group-middle",T=""}I+="'>"}for(I+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+T+"'>"+(/all|left/.test(T)&&0===k?B?o:s:"")+(/all|right/.test(T)&&0===k?B?s:o:"")+this._generateMonthYearHeader(t,Z,te,J,Q,k>0||C>0,f,g)+"</div><table class='ui-datepicker-calendar'><thead>"+"<tr>",M=u?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;7>w;w++)P=(w+c)%7,M+="<th scope='col'"+((w+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+">"+"<span title='"+d[P]+"'>"+p[P]+"</span></th>";for(I+=M+"</tr></thead><tbody>",S=this._getDaysInMonth(te,Z),te===t.selectedYear&&Z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,S)),N=(this._getFirstDayOfMonth(te,Z)-c+7)%7,H=Math.ceil((N+S)/7),A=$?this.maxRows>H?this.maxRows:H:H,this.maxRows=A,z=this._daylightSavingAdjust(new Date(te,Z,1-N)),O=0;A>O;O++){for(I+="<tr>",E=u?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(z)+"</td>":"",w=0;7>w;w++)W=m?m.apply(t.input?t.input[0]:null,[z]):[!0,""],F=z.getMonth()!==Z,L=F&&!v||!W[0]||J&&J>z||Q&&z>Q,E+="<td class='"+((w+c+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(z.getTime()===D.getTime()&&Z===t.selectedMonth&&t._keyEvent||b.getTime()===z.getTime()&&b.getTime()===D.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!_?"":" "+W[1]+(z.getTime()===G.getTime()?" "+this._currentClass:"")+(z.getTime()===Y.getTime()?" ui-datepicker-today":""))+"'"+(F&&!_||!W[2]?"":" title='"+W[2].replace(/'/g,"'")+"'")+(L?"":" data-handler='selectDay' data-event='click' data-month='"+z.getMonth()+"' data-year='"+z.getFullYear()+"'")+">"+(F&&!_?" ":L?"<span class='ui-state-default'>"+z.getDate()+"</span>":"<a class='ui-state-default"+(z.getTime()===Y.getTime()?" ui-state-highlight":"")+(z.getTime()===G.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#'>"+z.getDate()+"</a>")+"</td>",z.setDate(z.getDate()+1),z=this._daylightSavingAdjust(z);I+=E+"</tr>"}Z++,Z>11&&(Z=0,te++),I+="</tbody></table>"+($?"</div>"+(U[0]>0&&C===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),x+=I}y+=x}return y+=h,t._keyEvent=!1,y},_generateMonthYearHeader:function(t,e,i,s,n,o,a,r){var l,h,c,u,d,p,f,g,m=this._get(t,"changeMonth"),_=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",y="";if(o||!m)y+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=s&&s.getFullYear()===i,h=n&&n.getFullYear()===i,y+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;12>c;c++)(!l||c>=s.getMonth())&&(!h||n.getMonth()>=c)&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+r[c]+"</option>");y+="</select>"}if(v||(b+=y+(!o&&m&&_?"":" ")),!t.yearshtml)if(t.yearshtml="",o||!_)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e},f=p(u[0]),g=Math.max(f,p(u[1]||"")),f=s?Math.max(f,s.getFullYear()):f,g=n?Math.min(g,n.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";g>=f;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),v&&(b+=(!o&&m&&_?"":" ")+y),b+="</div>"},_adjustInstDate:function(t,e,i){var s=t.selectedYear+("Y"===i?e:0),n=t.selectedMonth+("M"===i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"===i?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,o)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),n=i&&i>e?i:e;return s&&n>s?s:n},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,s){var n=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(i,s+(0>e?e:n[0]*n[1]),1));return 0>e&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var i,s,n=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),a=null,r=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),s=(new Date).getFullYear(),a=parseInt(i[0],10),r=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=s),i[1].match(/[+\-].*/)&&(r+=s)),(!n||e.getTime()>=n.getTime())&&(!o||e.getTime()<=o.getTime())&&(!a||e.getFullYear()>=a)&&(!r||r>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var n=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),n,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new s,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.12.1",t.datepicker,t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var c=!1;t(document).on("mouseup",function(){c=!1}),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!c){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,s=1===e.which,n="string"==typeof this.options.cancel&&e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return s&&!n&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),c=!0,!0)):!0}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,c=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null}
vendor: 4,732 bytes, line 13
13,numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,s=this.options,n=this.element.find(".ui-slider-handle"),o="<span tabindex='0'></span>",a=[];for(i=s.values&&s.values.length||1,n.length>i&&(n.slice(i).remove(),n=n.slice(0,i)),e=n.length;i>e;e++)a.push(o);this.handles=n.add(t(a.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),("min"===e.range||"max"===e.range)&&this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,s,n,o,a,r,l,h,c=this,u=this.options;return u.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},s=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(s-c.values(e));(n>i||n===i&&(e===c._lastChangedValue||c.values(e)===u.min))&&(n=i,o=t(this),a=e)}),r=this._start(e,a),r===!1?!1:(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),l=o.offset(),h=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=h?{left:0,top:0}:{left:e.pageX-l.left-o.width()/2,top:e.pageY-l.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,s),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,s,n,o;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),s=i/e,s>1&&(s=1),0>s&&(s=0),"vertical"===this.orientation&&(s=1-s),n=this._valueMax()-this._valueMin(),o=this._valueMin()+s*n,this._trimAlignValue(o)},_uiHash:function(t,e,i){var s={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==e?e:this.values(t),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var s,n,o=this.value(),a=this.values();this._hasMultipleValues()&&(n=this.values(e?0:1),o=this.values(e),2===this.options.values.length&&this.options.range===!0&&(i=0===e?Math.min(n,i):Math.max(n,i)),a[e]=i),i!==o&&(s=this._trigger("slide",t,this._uiHash(e,i,a)),s!==!1&&(this._hasMultipleValues()?this.values(e,i):this.value(i)))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(null,0),void 0):this._value(
vendor: 5,414 bytes, line 13
13)},values:function(e,i){var s,n,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),this._change(null,e),void 0;if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(s=this.options.values,n=arguments[0],o=0;s.length>o;o+=1)s[o]=this._trimAlignValue(n[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,i){var s,n=0;switch("range"===e&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(n=this.options.values.length),this._super(e,i),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(i),this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),s=n-1;s>=0;s--)this._change(null,s);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,s;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this._hasMultipleValues()){for(i=this.options.values.slice(),s=0;i.length>s;s+=1)i[s]=this._trimAlignValue(i[s]);return i}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,s=t-i;return 2*Math.abs(i)>=e&&(s+=i>0?e:-e),parseFloat(s.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step,s=Math.round((t-e)/i)*i;t=s+e,t>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,i=e.indexOf(".");return-1===i?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,s,n,o,a=this.options.range,r=this.options,l=this,h=this._animateOff?!1:r.animate,c={};this._hasMultipleValues()?this.handles.each(function(s){i=100*((l.values(s)-l._valueMin())/(l._valueMax()-l._valueMin())),c["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[h?"animate":"css"](c,r.animate),l.options.range===!0&&("horizontal"===l.orientation?(0===s&&l.range.stop(1,1)[h?"animate":"css"]({left:i+"%"},r.animate),1===s&&l.range[h?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:r.animate})):(0===s&&l.range.stop(1,1)[h?"animate":"css"]({bottom:i+"%"},r.animate),1===s&&l.range[h?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:r.animate}))),e=i}):(s=this.value(),n=this._valueMin(),o=this._valueMax(),i=o!==n?100*((s-n)/(o-n)):0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[h?"animate":"css"](c,r.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({width:i+"%"},r.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({width:100-i+"%"},r.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({height:i+"%"},r.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({height:100-i+"%"},r.animate))},_handleEvents:{keydown:function(e){var i,s,n,o,a=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),i=this._start(e,a),i===!1))return}switch(o=this.options.step,s=n=this._hasMultipleValues()?this.values(a):this.value(),e.keyCode){case t.ui.keyCode.HOME:n=this._valueMin();break;case t.ui.keyCode.END:n=this._valueMax();break;case t.ui.keyCode.PAGE_UP:n=this._trimAlignValue(s+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(s-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(s===this._valueMax())return;n=this._trimAlignValue(s+o);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(s===this._valueMin())return;n=this._trimAlignValue(s-o)}this._slide(e,a,n)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),this._removeClass(t(e.target),null,"ui-state-active"))}}})});
vendor: 21,233 bytes, lines 14-18
14/* 15 Copyright (C) Federico Zivolo 2020 16 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). 17 */(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=e.ownerDocument.defaultView,n=o.getComputedStyle(e,null);return t?n[t]:n}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll|overlay)/.test(r+s+p)?e:n(o(e))}function i(e){return e&&e.referenceNode?e.referenceNode:e}function r(e){return 11===e?re:10===e?pe:re||pe}function p(e){if(!e)return document.documentElement;for(var o=r(10)?document.body:null,n=e.offsetParent||null;n===o&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TH','TD','TABLE'].indexOf(n.nodeName)&&'static'===t(n,'position')?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function d(e){return null===e.parentNode?e:d(e.parentNode)}function a(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?e:t,i=o?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(i,0);var l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(i))return s(l)?l:p(l);var f=d(e);return f.host?a(f.host,t):a(e,d(t).host)}function l(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',n=e.nodeName;if('BODY'===n||'HTML'===n){var i=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||i;return r[o]}return e[o]}function f(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=l(t,'top'),i=l(t,'left'),r=o?-1:1;return e.top+=n*r,e.bottom+=n*r,e.left+=i*r,e.right+=i*r,e}function m(e,t){var o='x'===t?'Left':'Top',n='Left'==o?'Right':'Bottom';return parseFloat(e['border'+o+'Width'])+parseFloat(e['border'+n+'Width'])}function h(e,t,o,n){return ee(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],r(10)?parseInt(o['offset'+e])+parseInt(n['margin'+('Height'===e?'Top':'Left')])+parseInt(n['margin'+('Height'===e?'Bottom':'Right')]):0)}function c(e){var t=e.body,o=e.documentElement,n=r(10)&&getComputedStyle(o);return{height:h('Height',t,o,n),width:h('Width',t,o,n)}}function g(e){return le({},e,{right:e.left+e.width,bottom:e.top+e.height})}function u(e){var o={};try{if(r(10)){o=e.getBoundingClientRect();var n=l(e,'top'),i=l(e,'left');o.top+=n,o.left+=i,o.bottom+=n,o.right+=i}else o=e.getBoundingClientRect()}catch(t){}var p={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},s='HTML'===e.nodeName?c(e.ownerDocument):{},d=s.width||e.clientWidth||p.width,a=s.height||e.clientHeight||p.height,f=e.offsetWidth-d,h=e.offsetHeight-a;if(f||h){var u=t(e);f-=m(u,'x'),h-=m(u,'y'),p.width-=f,p.height-=h}return g(p)}function b(e,o){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],p=r(10),s='HTML'===o.nodeName,d=u(e),a=u(o),l=n(e),m=t(o),h=parseFloat(m.borderTopWidth),c=parseFloat(m.borderLeftWidth);i&&s&&(a.top=ee(a.top,0),a.left=ee(a.left,0));var b=g({top:d.top-a.top-h,left:d.left-a.left-c,width:d.width,height:d.height});if(b.marginTop=0,b.marginLeft=0,!p&&s){var w=parseFloat(m.marginTop),y=parseFloat(m.marginLeft);b.top-=h-w,b.bottom-=h-w,b.left-=c-y,b.right-=c-y,b.marginTop=w,b.marginLeft=y}return(p&&!i?o.contains(l):o===l&&'BODY'!==l.nodeName)&&(b=f(b,o)),b}function w(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=e.ownerDocument.documentElement,n=b(e,o),i=ee(o.clientWidth,window.innerWidth||0),r=ee(o.clientHeight,window.innerHeight||0),p=t?0:l(o),s=t?0:l(o,'left'),d={top:p-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:r};return g(d)}function y(e){var n=e.nodeName;if('BODY'===n||'HTML'===n)return!1;if('fixed'===t(e,'position'))return!0;var i=o(e);return!!i&&y(i)}function E(e){if(!e||!e.parentElement||r())return document.documentElement;for(var o=e.parentElement;o&&'none'===t(o,'transform');)o=o.parentElement;return o||document.documentElement}function v(e,t,r,p){var s=4<arguments.length&&void 0!==arguments[4]&&arguments[4],d={top:0,left:0},l=s?E(e):a(e,i(t));if('viewport'===p)d=w(l,s);else{var f;'scrollParent'===p?(f=n(o(t)),'BODY'===f.nodeName&&(f=e.ownerDocument.documentElement)):'window'===p?f=e.ownerDocument.documentElement:f=p;var m=b(f,l,s);if('HTML'===f.nodeName&&!y(l)){var h=c(e.ownerDocument),g=h.height,u=h.width;d.top+=m.top-m.marginTop,d.bottom=g+m.top,d.left+=m.left-m.marginLeft,d.right=u+m.left}else d=m}r=r||0;var v='number'==typeof r;return d.left+=v?r:r.left||0,d.top+=v?r:r.top||0,d.right-=v?r:r.right||0,d.bottom-=v?r:r.bottom||0,d}function x(e){var t=e.width,o=e.height;return t*o}function O(e,t,o,n,i){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var p=v(o,n,r,i),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 le({key:e},s[e],{area:x(s[e])})}).sort(function(e,t){return t.area-e.area}),a=d.filter(function(e){var t=e.width,n=e.height;return t>=o.clientWidth&&n>=o.clientHeight}),l=0<a.length?a[0].key:d[0].key,f=e.split('-')[1];return l+(f?'-'+f:'')}function L(e,t,o){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,r=n?E(t):a(t,i(o));return b(o,r,n)}function S(e){var t=e.ownerDocument.defaultView,o=t.getComputedStyle(e),n=parseFloat(o.marginTop||0)+parseFloat(o.marginBottom||0),i=parseFloat(o.marginLeft||0)+parseFloat(o.marginRight||0),r={width:e.offsetWidth+i,height:e.offsetHeight+n};return r}function T(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 C(e,t,o){o=o.split('-')[0];var n=S(e),i={width:n.width,height:n.height},r=-1!==['right','left'].indexOf(o),p=r?'top':'left',s=r?'left':'top',d=r?'height':'width',a=r?'width':'height';return i[p]=t[p]+t[d]/2-n[d]/2,i[s]=o===s?t[s]-n[a]:t[T(s)],i}function D(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function N(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var n=D(e,function(e){return e[t]===o});return e.indexOf(n)}function P(t,o,n){var i=void 0===n?t:t.slice(0,N(t,'name',n));return i.forEach(function(t){t['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var n=t['function']||t.fn;t.enabled&&e(n)&&(o.offsets.popper=g(o.offsets.popper),o.offsets.reference=g(o.offsets.reference),o=n(o,t))}),o}function k(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=O(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.positionFixed=this.options.positionFixed,e.offsets.popper=C(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?'fixed':'absolute',e=P(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,n=e.enabled;return n&&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;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof document.body.style[r])return r}return null}function H(){return this.state.isDestroyed=!0,W(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.position='',this.popper.style.top='',this.popper.style.left='',this.popper.style.right='',this.popper.style.bottom='',this.popper.style.willChange='',this.popper.style[B('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function A(e){var t=e.ownerDocument;return t?t.defaultView:window}function M(e,t,o,i){var r='BODY'===e.nodeName,p=r?e.ownerDocument.defaultView:e;p.addEventListener(t,o,{passive:!0}),r||M(n(p.parentNode),t,o,i),i.push(p)}function F(e,t,o,i){o.updateBound=i,A(e).addEventListener('resize',o.updateBound,{passive:!0});var r=n(e);return M(r,'scroll',o.updateBound,o.scrollParents),o.scrollElement=r,o.eventsEnabled=!0,o}function I(){this.state.eventsEnabled||(this.state=F(this.reference,this.options,this.state,this.scheduleUpdate))}function R(e,t){return A(e).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 U(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=R(this.reference,this.state))}function Y(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function V(e,t){Object.keys(t).forEach(function(o){var n='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&Y(t[o])&&(n='px'),e.style[o]=t[o]+n})}function j(e,t){Object.keys(t).forEach(function(o){var n=t[o];!1===n?e.removeAttribute(o):e.setAttribute(o,t[o])})}function q(e,t){var o=e.offsets,n=o.popper,i=o.reference,r=$,p=function(e){return e},s=r(i.width),d=r(n.width),a=-1!==['left','right'].indexOf(e.placement),l=-1!==e.placement.indexOf('-'),f=t?a||l||s%2==d%2?r:Z:p,m=t?r:p;return{left:f(1==s%2&&1==d%2&&!l&&t?n.left-1:n.left),top:m(n.top),bottom:m(n.bottom),right:f(n.right)}}function K(e,t,o){var n=D(e,function(e){var o=e.name;return o===t}),i=!!n&&e.some(function(e){return e.name===o&&e.enabled&&e.order<n.order});if(!i){var r='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return i}function z(e){return'end'===e?'start':'start'===e?'end':e}function G(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=he.indexOf(e),n=he.slice(o+1).concat(he.slice(0,o));return t?n.reverse():n}function _(e,t,o,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],p=i[2];if(!r)return e;if(0===p.indexOf('%')){var s;switch(p){case'%p':s=o;break;case'%':case'%r':default:s=n;}var d=g(s);return d[t]/100*r}if('vh'===p||'vw'===p){var a;return a='vh'===p?ee(document.documentElement.clientHeight,window.innerHeight||0):ee(document.documentElement.clientWidth,window.innerWidth||0),a/100*r}return r}function X(e,t,o,n){var i=[0,0],r=-1!==['right','left'].indexOf(n),p=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=p.indexOf(D(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,n){var i=(1===n?!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 _(e,i,t,o)})}),a.forEach(function(e,t){e.forEach(function(o,n){Y(o)&&(i[t]+=o*('-'===e[n-1]?-1:1))})}),i}function J(e,t){var o,n=t.offset,i=e.placement,r=e.offsets,p=r.popper,s=r.reference,d=i.split('-')[0];return o=Y(+n)?[+n,0]:X(n,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}var Q=Math.min,Z=Math.floor,$=Math.round,ee=Math.max,te='undefined'!=typeof window&&'undefined'!=typeof document&&'undefined'!=typeof navigator,oe=function(){for(var e=['Edge','Trident','Firefox'],t=0;t<e.length;t+=1)if(te&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}(),ne=te&&window.Promise,ie=ne?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},oe))}},re=te&&!!(window.MSInputMethodContext&&document.documentMode),pe=te&&/MSIE 10/.test(navigator.userAgent),se=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},de=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,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),ae=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},le=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},fe=te&&/Firefox/i.test(navigator.userAgent),me=['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'],he=me.slice(3),ce={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},ge=function(){function t(o,n){var i=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};se(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=ie(this.update.bind(this)),this.options=le({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(le({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){i.options.modifiers[e]=le({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return le({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var p=this.options.eventsEnabled;p&&this.enableEventListeners(),this.state.eventsEnabled=p}return de(t,[{key:'update',value:function(){return k.call(this)}},{key:'destroy',value:function(){return H.call(this)}},{key:'enableEventListeners',value:function(){return I.call(this)}},{key:'disableEventListeners',value:function(){return U.call(this)}}]),t}();return ge.Utils=('undefined'==typeof window?global:window).PopperUtils,ge.placements=me,ge.Defaults={placement:'bottom',positionFixed:!1,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],n=t.split('-')[1];if(n){var i=e.offsets,r=i.reference,p=i.popper,s=-1!==['bottom','top'].indexOf(o),d=s?'left':'top',a=s?'width':'height',l={start:ae({},d,r[d]),end:ae({},d,r[d]+r[a]-p[a])};e.offsets.popper=le({},p,l[n])}return e}},offset:{order:200,enabled:!0,fn:J,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||p(e.instance.popper);e.instance.reference===o&&(o=p(o));var n=B('transform'),i=e.instance.popper.style,r=i.top,s=i.left,d=i[n];i.top='',i.left='',i[n]='';var a=v(e.instance.popper,e.instance.reference,t.padding,o,e.positionFixed);i.top=r,i.left=s,i[n]=d,t.boundaries=a;var l=t.priority,f=e.offsets.popper,m={primary:function(e){var o=f[e];return f[e]<a[e]&&!t.escapeWithReference&&(o=ee(f[e],a[e])),ae({},e,o)},secondary:function(e){var o='right'===e?'left':'top',n=f[o];return f[e]>a[e]&&!t.escapeWithReference&&(n=Q(f[o],a[e]-('right'===e?f.width:f.height))),ae({},o,n)}};return l.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';f=le({},f,m[t](e))}),e.offsets.popper=f,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,n=t.reference,i=e.placement.split('-')[0],r=Z,p=-1!==['top','bottom'].indexOf(i),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]<r(n[d])&&(e.offsets.popper[d]=r(n[d])-o[a]),o[d]>r(n[s])&&(e.offsets.popper[d]=r(n[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){var n;if(!K(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 r=e.placement.split('-')[0],p=e.offsets,s=p.popper,d=p.reference,a=-1!==['left','right'].indexOf(r),l=a?'height':'width',f=a?'Top':'Left',m=f.toLowerCase(),h=a?'left':'top',c=a?'bottom':'right',u=S(i)[l];d[c]-u<s[m]&&(e.offsets.popper[m]-=s[m]-(d[c]-u)),d[m]+u>s[c]&&(e.offsets.popper[m]+=d[m]+u-s[c]),e.offsets.popper=g(e.offsets.popper);var b=d[m]+d[l]/2-u/2,w=t(e.instance.popper),y=parseFloat(w['margin'+f]),E=parseFloat(w['border'+f+'Width']),v=b-e.offsets.popper[m]-y-E;return v=ee(Q(s[l]-u,v),0),e.arrowElement=i,e.offsets.arrow=(n={},ae(n,m,$(v)),ae(n,h,''),n),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=v(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split('-')[0],i=T(n),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case ce.FLIP:p=[n,i];break;case ce.CLOCKWISE:p=G(n);break;case ce.COUNTERCLOCKWISE:p=G(n,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(n!==s||p.length===d+1)return e;n=e.placement.split('-')[0],i=T(n);var a=e.offsets.popper,l=e.offsets.reference,f=Z,m='left'===n&&f(a.right)>f(l.left)||'right'===n&&f(a.left)<f(l.right)||'top'===n&&f(a.bottom)>f(l.top)||'bottom'===n&&f(a.top)<f(l.bottom),h=f(a.left)<f(o.left),c=f(a.right)>f(o.right),g=f(a.top)<f(o.top),u=f(a.bottom)>f(o.bottom),b='left'===n&&h||'right'===n&&c||'top'===n&&g||'bottom'===n&&u,w=-1!==['top','bottom'].indexOf(n),y=!!t.flipVariations&&(w&&'start'===r&&h||w&&'end'===r&&c||!w&&'start'===r&&g||!w&&'end'===r&&u),E=!!t.flipVariationsByContent&&(w&&'start'===r&&c||w&&'end'===r&&h||!w&&'start'===r&&u||!w&&'end'===r&&g),v=y||E;(m||b||v)&&(e.flipped=!0,(m||b)&&(n=p[d+1]),v&&(r=z(r)),e.placement=n+(r?'-'+r:''),e.offsets.popper=le({},e.offsets.popper,C(e.instance.popper,e.offsets.reference,e.placement)),e=P(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport',flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],n=e.offsets,i=n.popper,r=n.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return i[p?'left':'top']=r[o]-(s?i[p?'width':'height']:0),e.placement=T(t),e.offsets.popper=g(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!K(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=D(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,n=t.y,i=e.offsets.popper,r=D(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==r&&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===r?t.gpuAcceleration:r,l=p(e.instance.popper),f=u(l),m={position:i.position},h=q(e,2>window.devicePixelRatio||!fe),c='bottom'===o?'top':'bottom',g='right'===n?'left':'right',b=B('transform');if(d='bottom'==c?'HTML'===l.nodeName?-l.clientHeight+h.bottom:-f.height+h.bottom:h.top,s='right'==g?'HTML'===l.nodeName?-l.clientWidth+h.right:-f.width+h.right:h.left,a&&b)m[b]='translate3d('+s+'px, '+d+'px, 0)',m[c]=0,m[g]=0,m.willChange='transform';else{var w='bottom'==c?-1:1,y='right'==g?-1:1;m[c]=d*w,m[g]=s*y,m.willChange=c+', '+g}var E={"x-placement":e.placement};return e.attributes=le({},E,e.attributes),e.styles=le({},m,e.styles),e.arrowStyles=le({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return V(e.instance.popper,e.styles),j(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&V(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,n,i){var r=L(i,t,e,o.positionFixed),p=O(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',p),V(t,{position:o.positionFixed?'fixed':'absolute'}),o},gpuAcceleration:void 0}}},ge}); 18//# sourceMappingURL=popper.min.js.map
19 20/*! 21 * Bootstrap v4.6.1 (https://getbootstrap.com/) 22 * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 23 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 24 */ 25(function (global, factory) { 26 typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery'), require('popper.js')) : 27 typeof define === 'function' && define.amd ? define(['exports', 'jquery', 'popper.js'], factory) : 28 (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.bootstrap = {}, global.jQuery, global.Popper)); 29})(this, (function (exports, $, Popper) { 'use strict'; 30 31 function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } 32 33 var $__default = /*#__PURE__*/_interopDefaultLegacy($); 34 var Popper__default = /*#__PURE__*/_interopDefaultLegacy(Popper); 35 36 function _defineProperties(target, props) { 37 for (var i = 0; i < props.length; i++) { 38 var descriptor = props[i]; 39 descriptor.enumerable = descriptor.enumerable || false; 40 descriptor.configurable = true; 41 if ("value" in descriptor) descriptor.writable = true; 42 Object.defineProperty(target, descriptor.key, descriptor); 43 } 44 } 45 46 function _createClass(Constructor, protoProps, staticProps) { 47 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 48 if (staticProps) _defineProperties(Constructor, staticProps); 49 return Constructor; 50 } 51 52 function _extends() { 53 _extends = Object.assign || function (target) { 54 for (var i = 1; i < arguments.length; i++) { 55 var source = arguments[i]; 56 57 for (var key in source) { 58 if (Object.prototype.hasOwnProperty.call(source, key)) { 59 target[key] = source[key]; 60 } 61 } 62 } 63 64 return target; 65 }; 66 67 return _extends.apply(this, arguments); 68 } 69 70 function _inheritsLoose(subClass, superClass) { 71 subClass.prototype = Object.create(superClass.prototype); 72 subClass.prototype.constructor = subClass; 73 74 _setPrototypeOf(subClass, superClass); 75 } 76 77 function _setPrototypeOf(o, p) { 78 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 79 o.__proto__ = p; 80 return o; 81 }; 82 83 return _setPrototypeOf(o, p); 84 } 85 86 /** 87 * -------------------------------------------------------------------------- 88 * Bootstrap (v4.6.1): util.js 89 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 90 * -------------------------------------------------------------------------- 91 */ 92 /** 93 * Private TransitionEnd Helpers 94 */ 95 96 var TRANSITION_END = 'transitionend'; 97 var MAX_UID = 1000000; 98 var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp) 99 100 function toType(obj) { 101 if (obj === null || typeof obj === 'undefined') { 102 return "" + obj; 103 } 104 105 return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase(); 106 } 107 108 function getSpecialTransitionEndEvent() { 109 return { 110 bindType: TRANSITION_END, 111 delegateType: TRANSITION_END, 112 handle: function handle(event) { 113 if ($__default["default"](event.target).is(this)) { 114 return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params 115 } 116 117 return undefined; 118 } 119 }; 120 } 121 122 function transitionEndEmulator(duration) { 123 var _this = this; 124 125 var called = false; 126 $__default["default"](this).one(Util.TRANSITION_END, function () { 127 called = true; 128 }); 129 setTimeout(function () { 130 if (!called) { 131 Util.triggerTransitionEnd(_this); 132 } 133 }, duration); 134 return this; 135 } 136 137 function setTransitionEndSupport() { 138 $__default["default"].fn.emulateTransitionEnd = transitionEndEmulator; 139 $__default["default"].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent(); 140 } 141 /** 142 * Public Util API 143 */ 144 145 146 var Util = { 147 TRANSITION_END: 'bsTransitionEnd', 148 getUID: function getUID(prefix) { 149 do { 150 // eslint-disable-next-line no-bitwise 151 prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here 152 } while (document.getElementById(prefix)); 153 154 return prefix; 155 }, 156 getSelectorFromElement: function getSelectorFromElement(element) { 157 var selector = element.getAttribute('data-target'); 158 159 if (!selector || selector === '#') { 160 var hrefAttr = element.getAttribute('href'); 161 selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : ''; 162 } 163
164 try { 165 return document.querySelector(selector) ? selector : null; 166 } catch (_) { 167 return null; 168 } 169 }, 170 getTransitionDurationFromElement: function getTransitionDurationFromElement(element) { 171 if (!element) { 172 return 0; 173 } // Get transition-duration of the element 174 175 176 var transitionDuration = $__default["default"](element).css('transition-duration'); 177 var transitionDelay = $__default["default"](element).css('transition-delay'); 178 var floatTransitionDuration = parseFloat(transitionDuration); 179 var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found 180 181 if (!floatTransitionDuration && !floatTransitionDelay) { 182 return 0; 183 } // If multiple durations are defined, take the first 184 185 186 transitionDuration = transitionDuration.split(',')[0]; 187 transitionDelay = transitionDelay.split(',')[0]; 188 return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER; 189 }, 190 reflow: function reflow(element) { 191 return element.offsetHeight; 192 }, 193 triggerTransitionEnd: function triggerTransitionEnd(element) { 194 $__default["default"](element).trigger(TRANSITION_END); 195 }, 196 supportsTransitionEnd: function supportsTransitionEnd() { 197 return Boolean(TRANSITION_END); 198 }, 199 isElement: function isElement(obj) { 200 return (obj[0] || obj).nodeType; 201 }, 202 typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) { 203 for (var property in configTypes) { 204 if (Object.prototype.hasOwnProperty.call(configTypes, property)) { 205 var expectedTypes = configTypes[property]; 206 var value = config[property]; 207 var valueType = value && Util.isElement(value) ? 'element' : toType(value); 208 209 if (!new RegExp(expectedTypes).test(valueType)) { 210 throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\".")); 211 } 212 } 213 } 214 }, 215 findShadowRoot: function findShadowRoot(element) { 216 if (!document.documentElement.attachShadow) { 217 return null; 218 } // Can find the shadow root otherwise it'll return the document 219 220 221 if (typeof element.getRootNode === 'function') { 222 var root = element.getRootNode(); 223 return root instanceof ShadowRoot ? root : null; 224 } 225 226 if (element instanceof ShadowRoot) { 227 return element; 228 } // when we don't find a shadow root 229 230 231 if (!element.parentNode) { 232 return null; 233 } 234 235 return Util.findShadowRoot(element.parentNode); 236 }, 237 jQueryDetection: function jQueryDetection() { 238 if (typeof $__default["default"] === 'undefined') { 239 throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.'); 240 } 241 242 var version = $__default["default"].fn.jquery.split(' ')[0].split('.'); 243 var minMajor = 1; 244 var ltMajor = 2; 245 var minMinor = 9; 246 var minPatch = 1; 247 var maxMajor = 4; 248 249 if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) { 250 throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0'); 251 } 252 } 253 }; 254 Util.jQueryDetection(); 255 setTransitionEndSupport(); 256 257 /** 258 * Constants 259 */ 260 261 var NAME$a = 'alert'; 262 var VERSION$a = '4.6.1'; 263 var DATA_KEY$a = 'bs.alert'; 264 var EVENT_KEY$a = "." + DATA_KEY$a; 265 var DATA_API_KEY$7 = '.data-api'; 266 var JQUERY_NO_CONFLICT$a = $__default["default"].fn[NAME$a]; 267 var CLASS_NAME_ALERT = 'alert'; 268 var CLASS_NAME_FADE$5 = 'fade'; 269 var CLASS_NAME_SHOW$7 = 'show'; 270 var EVENT_CLOSE = "close" + EVENT_KEY$a; 271 var EVENT_CLOSED = "closed" + EVENT_KEY$a; 272 var EVENT_CLICK_DATA_API$6 = "click" + EVENT_KEY$a + DATA_API_KEY$7; 273 var SELECTOR_DISMISS = '[data-dismiss="alert"]'; 274 /** 275 * Class definition 276 */ 277 278 var Alert = /*#__PURE__*/function () { 279 function Alert(element) { 280 this._element = element; 281 } // Getters 282 283 284 var _proto = Alert.prototype; 285 286 // Public 287 _proto.close = function close(element) { 288 var rootElement = this._element; 289 290 if (element) { 291 rootElement = this._getRootElement(element); 292 } 293 294 var customEvent = this._triggerCloseEvent(rootElement); 295 296 if (customEvent.isDefaultPrevented()) { 297 return; 298 } 299 300 this._removeElement(rootElement); 301 }; 302 303 _proto.dispose = function dispose() { 304 $__default["default"].removeData(this._element, DATA_KEY$a); 305 this._element = null; 306 } // Private 307 ; 308 309 _proto._getRootElement = function _getRootElement(element) { 310 var selector = Util.getSelectorFromElement(element); 311 var parent = false;
312 313 if (selector) { 314 parent = document.querySelector(selector); 315 } 316 317 if (!parent) { 318 parent = $__default["default"](element).closest("." + CLASS_NAME_ALERT)[0]; 319 } 320 321 return parent; 322 }; 323 324 _proto._triggerCloseEvent = function _triggerCloseEvent(element) { 325 var closeEvent = $__default["default"].Event(EVENT_CLOSE); 326 $__default["default"](element).trigger(closeEvent); 327 return closeEvent; 328 }; 329 330 _proto._removeElement = function _removeElement(element) { 331 var _this = this; 332 333 $__default["default"](element).removeClass(CLASS_NAME_SHOW$7); 334 335 if (!$__default["default"](element).hasClass(CLASS_NAME_FADE$5)) { 336 this._destroyElement(element); 337 338 return; 339 } 340 341 var transitionDuration = Util.getTransitionDurationFromElement(element); 342 $__default["default"](element).one(Util.TRANSITION_END, function (event) { 343 return _this._destroyElement(element, event); 344 }).emulateTransitionEnd(transitionDuration); 345 }; 346 347 _proto._destroyElement = function _destroyElement(element) { 348 $__default["default"](element).detach().trigger(EVENT_CLOSED).remove(); 349 } // Static 350 ; 351 352 Alert._jQueryInterface = function _jQueryInterface(config) { 353 return this.each(function () { 354 var $element = $__default["default"](this); 355 var data = $element.data(DATA_KEY$a); 356 357 if (!data) { 358 data = new Alert(this); 359 $element.data(DATA_KEY$a, data); 360 } 361 362 if (config === 'close') { 363 data[config](this); 364 } 365 }); 366 }; 367 368 Alert._handleDismiss = function _handleDismiss(alertInstance) { 369 return function (event) { 370 if (event) { 371 event.preventDefault(); 372 } 373 374 alertInstance.close(this); 375 }; 376 }; 377 378 _createClass(Alert, null, [{ 379 key: "VERSION", 380 get: function get() { 381 return VERSION$a; 382 } 383 }]); 384 385 return Alert; 386 }(); 387 /** 388 * Data API implementation 389 */ 390 391 392 $__default["default"](document).on(EVENT_CLICK_DATA_API$6, SELECTOR_DISMISS, Alert._handleDismiss(new Alert())); 393 /** 394 * jQuery 395 */ 396 397 $__default["default"].fn[NAME$a] = Alert._jQueryInterface; 398 $__default["default"].fn[NAME$a].Constructor = Alert; 399 400 $__default["default"].fn[NAME$a].noConflict = function () { 401 $__default["default"].fn[NAME$a] = JQUERY_NO_CONFLICT$a; 402 return Alert._jQueryInterface; 403 }; 404 405 /** 406 * Constants 407 */ 408 409 var NAME$9 = 'button'; 410 var VERSION$9 = '4.6.1'; 411 var DATA_KEY$9 = 'bs.button'; 412 var EVENT_KEY$9 = "." + DATA_KEY$9; 413 var DATA_API_KEY$6 = '.data-api'; 414 var JQUERY_NO_CONFLICT$9 = $__default["default"].fn[NAME$9]; 415 var CLASS_NAME_ACTIVE$3 = 'active'; 416 var CLASS_NAME_BUTTON = 'btn'; 417 var CLASS_NAME_FOCUS = 'focus'; 418 var EVENT_CLICK_DATA_API$5 = "click" + EVENT_KEY$9 + DATA_API_KEY$6; 419 var EVENT_FOCUS_BLUR_DATA_API = "focus" + EVENT_KEY$9 + DATA_API_KEY$6 + " " + ("blur" + EVENT_KEY$9 + DATA_API_KEY$6); 420 var EVENT_LOAD_DATA_API$2 = "load" + EVENT_KEY$9 + DATA_API_KEY$6; 421 var SELECTOR_DATA_TOGGLE_CARROT = '[data-toggle^="button"]'; 422 var SELECTOR_DATA_TOGGLES = '[data-toggle="buttons"]'; 423 var SELECTOR_DATA_TOGGLE$4 = '[data-toggle="button"]'; 424 var SELECTOR_DATA_TOGGLES_BUTTONS = '[data-toggle="buttons"] .btn'; 425 var SELECTOR_INPUT = 'input:not([type="hidden"])'; 426 var SELECTOR_ACTIVE$2 = '.active'; 427 var SELECTOR_BUTTON = '.btn'; 428 /** 429 * Class definition 430 */ 431 432 var Button = /*#__PURE__*/function () { 433 function Button(element) { 434 this._element = element; 435 this.shouldAvoidTriggerChange = false; 436 } // Getters 437 438 439 var _proto = Button.prototype; 440 441 // Public 442 _proto.toggle = function toggle() { 443 var triggerChangeEvent = true; 444 var addAriaPressed = true; 445 var rootElement = $__default["default"](this._element).closest(SELECTOR_DATA_TOGGLES)[0]; 446 447 if (rootElement) { 448 var input = this._element.querySelector(SELECTOR_INPUT); 449 450 if (input) { 451 if (input.type === 'radio') { 452 if (input.checked && this._element.classList.contains(CLASS_NAME_ACTIVE$3)) { 453 triggerChangeEvent = false;
454 } else { 455 var activeElement = rootElement.querySelector(SELECTOR_ACTIVE$2); 456 457 if (activeElement) { 458 $__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE$3); 459 } 460 } 461 } 462 463 if (triggerChangeEvent) { 464 // if it's not a radio button or checkbox don't add a pointless/invalid checked property to the input 465 if (input.type === 'checkbox' || input.type === 'radio') { 466 input.checked = !this._element.classList.contains(CLASS_NAME_ACTIVE$3); 467 } 468 469 if (!this.shouldAvoidTriggerChange) { 470 $__default["default"](input).trigger('change'); 471 } 472 } 473 474 input.focus(); 475 addAriaPressed = false; 476 } 477 } 478 479 if (!(this._element.hasAttribute('disabled') || this._element.classList.contains('disabled'))) { 480 if (addAriaPressed) { 481 this._element.setAttribute('aria-pressed', !this._element.classList.contains(CLASS_NAME_ACTIVE$3)); 482 } 483 484 if (triggerChangeEvent) { 485 $__default["default"](this._element).toggleClass(CLASS_NAME_ACTIVE$3); 486 } 487 } 488 }; 489 490 _proto.dispose = function dispose() { 491 $__default["default"].removeData(this._element, DATA_KEY$9); 492 this._element = null; 493 } // Static 494 ; 495 496 Button._jQueryInterface = function _jQueryInterface(config, avoidTriggerChange) { 497 return this.each(function () { 498 var $element = $__default["default"](this); 499 var data = $element.data(DATA_KEY$9); 500 501 if (!data) { 502 data = new Button(this); 503 $element.data(DATA_KEY$9, data); 504 } 505 506 data.shouldAvoidTriggerChange = avoidTriggerChange; 507 508 if (config === 'toggle') { 509 data[config](); 510 } 511 }); 512 }; 513 514 _createClass(Button, null, [{ 515 key: "VERSION", 516 get: function get() { 517 return VERSION$9; 518 } 519 }]); 520 521 return Button; 522 }(); 523 /** 524 * Data API implementation 525 */ 526 527 528 $__default["default"](document).on(EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE_CARROT, function (event) { 529 var button = event.target; 530 var initialButton = button; 531 532 if (!$__default["default"](button).hasClass(CLASS_NAME_BUTTON)) { 533 button = $__default["default"](button).closest(SELECTOR_BUTTON)[0]; 534 } 535 536 if (!button || button.hasAttribute('disabled') || button.classList.contains('disabled')) { 537 event.preventDefault(); // work around Firefox bug #1540995 538 } else { 539 var inputBtn = button.querySelector(SELECTOR_INPUT); 540 541 if (inputBtn && (inputBtn.hasAttribute('disabled') || inputBtn.classList.contains('disabled'))) { 542 event.preventDefault(); // work around Firefox bug #1540995 543 544 return; 545 } 546 547 if (initialButton.tagName === 'INPUT' || button.tagName !== 'LABEL') { 548 Button._jQueryInterface.call($__default["default"](button), 'toggle', initialButton.tagName === 'INPUT'); 549 } 550 } 551 }).on(EVENT_FOCUS_BLUR_DATA_API, SELECTOR_DATA_TOGGLE_CARROT, function (event) { 552 var button = $__default["default"](event.target).closest(SELECTOR_BUTTON)[0]; 553 $__default["default"](button).toggleClass(CLASS_NAME_FOCUS, /^focus(in)?$/.test(event.type)); 554 }); 555 $__default["default"](window).on(EVENT_LOAD_DATA_API$2, function () { 556 // ensure correct active class is set to match the controls' actual values/states 557 // find all checkboxes/readio buttons inside data-toggle groups 558 var buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLES_BUTTONS)); 559 560 for (var i = 0, len = buttons.length; i < len; i++) { 561 var button = buttons[i]; 562 var input = button.querySelector(SELECTOR_INPUT); 563 564 if (input.checked || input.hasAttribute('checked')) { 565 button.classList.add(CLASS_NAME_ACTIVE$3); 566 } else { 567 button.classList.remove(CLASS_NAME_ACTIVE$3); 568 } 569 } // find all button toggles 570 571 572 buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$4)); 573 574 for (var _i = 0, _len = buttons.length; _i < _len; _i++) { 575 var _button = buttons[_i]; 576 577 if (_button.getAttribute('aria-pressed') === 'true') { 578 _button.classList.add(CLASS_NAME_ACTIVE$3); 579 } else { 580 _button.classList.remove(CLASS_NAME_ACTIVE$3); 581 } 582 } 583 }); 584 /** 585 * jQuery 586 */ 587 588 $__default["default"].fn[NAME$9] = Button._jQueryInterface; 589 $__default["default"].fn[NAME$9].Constructor = Button; 590 591 $__default["default"].fn[NAME$9].noConflict = function () { 592 $__default["default"].fn[NAME$9] = JQUERY_NO_CONFLICT$9; 593 return Button._jQueryInterface; 594 }; 595 596 /** 597 * Constants 598 */ 599 600 var NAME$8 = 'carousel'; 601 var VERSION$8 = '4.6.1'; 602 var DATA_KEY$8 = 'bs.carousel'; 603 var EVENT_KEY$8 = "." + DATA_KEY$8; 604 var DATA_API_KEY$5 = '.data-api'; 605 var JQUERY_NO_CONFLICT$8 = $__default["default"].fn[NAME$8]; 606 var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key 607 608 var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key 609 610 var TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch 611 612 var SWIPE_THRESHOLD = 40; 613 var CLASS_NAME_CAROUSEL = 'carousel'; 614 var CLASS_NAME_ACTIVE$2 = 'active'; 615 var CLASS_NAME_SLIDE = 'slide'; 616 var CLASS_NAME_RIGHT = 'carousel-item-right'; 617 var CLASS_NAME_LEFT = 'carousel-item-left'; 618 var CLASS_NAME_NEXT = 'carousel-item-next'; 619 var CLASS_NAME_PREV = 'carousel-item-prev'; 620 var CLASS_NAME_POINTER_EVENT = 'pointer-event'; 621 var DIRECTION_NEXT = 'next'; 622 var DIRECTION_PREV = 'prev'; 623 var DIRECTION_LEFT = 'left'; 624 var DIRECTION_RIGHT = 'right'; 625 var EVENT_SLIDE = "slide" + EVENT_KEY$8; 626 var EVENT_SLID = "slid" + EVENT_KEY$8; 627 var EVENT_KEYDOWN = "keydown" + EVENT_KEY$8; 628 var EVENT_MOUSEENTER = "mouseenter" + EVENT_KEY$8; 629 var EVENT_MOUSELEAVE = "mouseleave" + EVENT_KEY$8; 630 var EVENT_TOUCHSTART = "touchstart" + EVENT_KEY$8; 631 var EVENT_TOUCHMOVE = "touchmove" + EVENT_KEY$8; 632 var EVENT_TOUCHEND = "touchend" + EVENT_KEY$8; 633 var EVENT_POINTERDOWN = "pointerdown" + EVENT_KEY$8; 634 var EVENT_POINTERUP = "pointerup" + EVENT_KEY$8; 635 var EVENT_DRAG_START = "dragstart" + EVENT_KEY$8; 636 var EVENT_LOAD_DATA_API$1 = "load" + EVENT_KEY$8 + DATA_API_KEY$5; 637 var EVENT_CLICK_DATA_API$4 = "click" + EVENT_KEY$8 + DATA_API_KEY$5; 638 var SELECTOR_ACTIVE$1 = '.active'; 639 var SELECTOR_ACTIVE_ITEM = '.active.carousel-item';
640 var SELECTOR_ITEM = '.carousel-item'; 641 var SELECTOR_ITEM_IMG = '.carousel-item img'; 642 var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev'; 643 var SELECTOR_INDICATORS = '.carousel-indicators'; 644 var SELECTOR_DATA_SLIDE = '[data-slide], [data-slide-to]'; 645 var SELECTOR_DATA_RIDE = '[data-ride="carousel"]'; 646 var Default$7 = { 647 interval: 5000, 648 keyboard: true, 649 slide: false, 650 pause: 'hover', 651 wrap: true, 652 touch: true 653 }; 654 var DefaultType$7 = { 655 interval: '(number|boolean)', 656 keyboard: 'boolean', 657 slide: '(boolean|string)', 658 pause: '(string|boolean)', 659 wrap: 'boolean', 660 touch: 'boolean' 661 }; 662 var PointerType = { 663 TOUCH: 'touch', 664 PEN: 'pen' 665 }; 666 /** 667 * Class definition 668 */ 669 670 var Carousel = /*#__PURE__*/function () { 671 function Carousel(element, config) { 672 this._items = null; 673 this._interval = null; 674 this._activeElement = null; 675 this._isPaused = false; 676 this._isSliding = false; 677 this.touchTimeout = null; 678 this.touchStartX = 0; 679 this.touchDeltaX = 0; 680 this._config = this._getConfig(config); 681 this._element = element; 682 this._indicatorsElement = this._element.querySelector(SELECTOR_INDICATORS); 683 this._touchSupported = 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0; 684 this._pointerEvent = Boolean(window.PointerEvent || window.MSPointerEvent); 685 686 this._addEventListeners(); 687 } // Getters 688 689 690 var _proto = Carousel.prototype; 691 692 // Public 693 _proto.next = function next() { 694 if (!this._isSliding) { 695 this._slide(DIRECTION_NEXT); 696 } 697 }; 698 699 _proto.nextWhenVisible = function nextWhenVisible() { 700 var $element = $__default["default"](this._element); // Don't call next when the page isn't visible 701 // or the carousel or its parent isn't visible 702 703 if (!document.hidden && $element.is(':visible') && $element.css('visibility') !== 'hidden') { 704 this.next(); 705 } 706 }; 707 708 _proto.prev = function prev() { 709 if (!this._isSliding) { 710 this._slide(DIRECTION_PREV); 711 } 712 }; 713 714 _proto.pause = function pause(event) { 715 if (!event) { 716 this._isPaused = true; 717 } 718 719 if (this._element.querySelector(SELECTOR_NEXT_PREV)) { 720 Util.triggerTransitionEnd(this._element); 721 this.cycle(true); 722 } 723 724 clearInterval(this._interval); 725 this._interval = null; 726 }; 727 728 _proto.cycle = function cycle(event) { 729 if (!event) { 730 this._isPaused = false; 731 } 732 733 if (this._interval) { 734 clearInterval(this._interval); 735 this._interval = null; 736 } 737 738 if (this._config.interval && !this._isPaused) { 739 this._updateInterval(); 740 741 this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval); 742 } 743 }; 744 745 _proto.to = function to(index) { 746 var _this = this; 747 748 this._activeElement = this._element.querySelector(SELECTOR_ACTIVE_ITEM); 749 750 var activeIndex = this._getItemIndex(this._activeElement); 751 752 if (index > this._items.length - 1 || index < 0) { 753 return; 754 } 755 756 if (this._isSliding) { 757 $__default["default"](this._element).one(EVENT_SLID, function () { 758 return _this.to(index); 759 }); 760 return; 761 } 762 763 if (activeIndex === index) { 764 this.pause(); 765 this.cycle(); 766 return; 767 } 768 769 var direction = index > activeIndex ? DIRECTION_NEXT : DIRECTION_PREV; 770 771 this._slide(direction, this._items[index]); 772 }; 773 774 _proto.dispose = function dispose() { 775 $__default["default"](this._element).off(EVENT_KEY$8); 776 $__default["default"].removeData(this._element, DATA_KEY$8); 777 this._items = null; 778 this._config = null; 779 this._element = null; 780 this._interval = null; 781 this._isPaused = null; 782 this._isSliding = null; 783 this._activeElement = null; 784 this._indicatorsElement = null; 785 } // Private 786 ; 787 788 _proto._getConfig = function _getConfig(config) { 789 config = _extends({}, Default$7, config); 790 Util.typeCheckConfig(NAME$8, config, DefaultType$7); 791 return config; 792 }; 793 794 _proto._handleSwipe = function _handleSwipe() { 795 var absDeltax = Math.abs(this.touchDeltaX); 796 797 if (absDeltax <= SWIPE_THRESHOLD) { 798 return; 799 } 800 801 var direction = absDeltax / this.touchDeltaX; 802 this.touchDeltaX = 0; // swipe left 803 804 if (direction > 0) { 805 this.prev(); 806 } // swipe right 807 808 809 if (direction < 0) { 810 this.next(); 811 } 812 }; 813 814 _proto._addEventListeners = function _addEventListeners() { 815 var _this2 = this; 816 817 if (this._config.keyboard) { 818 $__default["default"](this._element).on(EVENT_KEYDOWN, function (event) { 819 return _this2._keydown(event); 820 }); 821 } 822 823 if (this._config.pause === 'hover') { 824 $__default["default"](this._element).on(EVENT_MOUSEENTER, function (event) { 825 return _this2.pause(event); 826 }).on(EVENT_MOUSELEAVE, function (event) { 827 return _this2.cycle(event); 828 }); 829 } 830 831 if (this._config.touch) { 832 this._addTouchEventListeners(); 833 } 834 }; 835 836 _proto._addTouchEventListeners = function _addTouchEventListeners() { 837 var _this3 = this; 838 839 if (!this._touchSupported) { 840 return; 841 } 842 843 var start = function start(event) { 844 if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) { 845 _this3.touchStartX = event.originalEvent.clientX; 846 } else if (!_this3._pointerEvent) { 847 _this3.touchStartX = event.originalEvent.touches[0].clientX; 848 } 849 }; 850 851 var move = function move(event) { 852 // ensure swiping with one touch and not pinching 853 _this3.touchDeltaX = event.originalEvent.touches && event.originalEvent.touches.length > 1 ? 0 : event.originalEvent.touches[0].clientX - _this3.touchStartX; 854 }; 855 856 var end = function end(event) { 857 if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) { 858 _this3.touchDeltaX = event.originalEvent.clientX - _this3.touchStartX; 859 } 860 861 _this3._handleSwipe(); 862 863 if (_this3._config.pause === 'hover') {
864 // If it's a touch-enabled device, mouseenter/leave are fired as 865 // part of the mouse compatibility events on first tap - the carousel 866 // would stop cycling until user tapped out of it; 867 // here, we listen for touchend, explicitly pause the carousel 868 // (as if it's the second time we tap on it, mouseenter compat event 869 // is NOT fired) and after a timeout (to allow for mouse compatibility 870 // events to fire) we explicitly restart cycling 871 _this3.pause(); 872 873 if (_this3.touchTimeout) { 874 clearTimeout(_this3.touchTimeout); 875 } 876 877 _this3.touchTimeout = setTimeout(function (event) { 878 return _this3.cycle(event); 879 }, TOUCHEVENT_COMPAT_WAIT + _this3._config.interval); 880 } 881 }; 882 883 $__default["default"](this._element.querySelectorAll(SELECTOR_ITEM_IMG)).on(EVENT_DRAG_START, function (e) { 884 return e.preventDefault(); 885 }); 886 887 if (this._pointerEvent) { 888 $__default["default"](this._element).on(EVENT_POINTERDOWN, function (event) { 889 return start(event); 890 }); 891 $__default["default"](this._element).on(EVENT_POINTERUP, function (event) { 892 return end(event); 893 }); 894 895 this._element.classList.add(CLASS_NAME_POINTER_EVENT); 896 } else { 897 $__default["default"](this._element).on(EVENT_TOUCHSTART, function (event) { 898 return start(event); 899 }); 900 $__default["default"](this._element).on(EVENT_TOUCHMOVE, function (event) { 901 return move(event); 902 }); 903 $__default["default"](this._element).on(EVENT_TOUCHEND, function (event) { 904 return end(event); 905 }); 906 } 907 }; 908 909 _proto._keydown = function _keydown(event) { 910 if (/input|textarea/i.test(event.target.tagName)) { 911 return; 912 } 913 914 switch (event.which) { 915 case ARROW_LEFT_KEYCODE: 916 event.preventDefault(); 917 this.prev(); 918 break; 919 920 case ARROW_RIGHT_KEYCODE: 921 event.preventDefault(); 922 this.next(); 923 break; 924 } 925 }; 926 927 _proto._getItemIndex = function _getItemIndex(element) { 928 this._items = element && element.parentNode ? [].slice.call(element.parentNode.querySelectorAll(SELECTOR_ITEM)) : []; 929 return this._items.indexOf(element); 930 }; 931 932 _proto._getItemByDirection = function _getItemByDirection(direction, activeElement) { 933 var isNextDirection = direction === DIRECTION_NEXT; 934 var isPrevDirection = direction === DIRECTION_PREV; 935 936 var activeIndex = this._getItemIndex(activeElement); 937 938 var lastItemIndex = this._items.length - 1; 939 var isGoingToWrap = isPrevDirection && activeIndex === 0 || isNextDirection && activeIndex === lastItemIndex; 940 941 if (isGoingToWrap && !this._config.wrap) { 942 return activeElement; 943 } 944 945 var delta = direction === DIRECTION_PREV ? -1 : 1; 946 var itemIndex = (activeIndex + delta) % this._items.length; 947 return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex]; 948 }; 949 950 _proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) { 951 var targetIndex = this._getItemIndex(relatedTarget); 952 953 var fromIndex = this._getItemIndex(this._element.querySelector(SELECTOR_ACTIVE_ITEM)); 954 955 var slideEvent = $__default["default"].Event(EVENT_SLIDE, { 956 relatedTarget: relatedTarget, 957 direction: eventDirectionName, 958 from: fromIndex, 959 to: targetIndex 960 }); 961 $__default["default"](this._element).trigger(slideEvent); 962 return slideEvent; 963 }; 964 965 _proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) { 966 if (this._indicatorsElement) { 967 var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(SELECTOR_ACTIVE$1)); 968 $__default["default"](indicators).removeClass(CLASS_NAME_ACTIVE$2); 969 970 var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)]; 971 972 if (nextIndicator) { 973 $__default["default"](nextIndicator).addClass(CLASS_NAME_ACTIVE$2); 974 } 975 } 976 }; 977 978 _proto._updateInterval = function _updateInterval() { 979 var element = this._activeElement || this._element.querySelector(SELECTOR_ACTIVE_ITEM); 980 981 if (!element) { 982 return; 983 } 984 985 var elementInterval = parseInt(element.getAttribute('data-interval'), 10); 986 987 if (elementInterval) { 988 this._config.defaultInterval = this._config.defaultInterval || this._config.interval; 989 this._config.interval = elementInterval; 990 } else { 991 this._config.interval = this._config.defaultInterval || this._config.interval; 992 } 993 }; 994 995 _proto._slide = function _slide(direction, element) { 996 var _this4 = this; 997 998 var activeElement = this._element.querySelector(SELECTOR_ACTIVE_ITEM); 999 1000 var activeElementIndex = this._getItemIndex(activeElement); 1001 1002 var nextElement = element || activeElement && this._getItemByDirection(direction, activeElement); 1003 1004 var nextElementIndex = this._getItemIndex(nextElement); 1005 1006 var isCycling = Boolean(this._interval); 1007 var directionalClassName; 1008 var orderClassName; 1009 var eventDirectionName; 1010 1011 if (direction === DIRECTION_NEXT) { 1012 directionalClassName = CLASS_NAME_LEFT; 1013 orderClassName = CLASS_NAME_NEXT; 1014 eventDirectionName = DIRECTION_LEFT; 1015 } else { 1016 directionalClassName = CLASS_NAME_RIGHT; 1017 orderClassName = CLASS_NAME_PREV; 1018 eventDirectionName = DIRECTION_RIGHT; 1019 } 1020 1021 if (nextElement && $__default["default"](nextElement).hasClass(CLASS_NAME_ACTIVE$2)) { 1022 this._isSliding = false;
1023 return; 1024 } 1025 1026 var slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName); 1027 1028 if (slideEvent.isDefaultPrevented()) { 1029 return; 1030 } 1031 1032 if (!activeElement || !nextElement) { 1033 // Some weirdness is happening, so we bail 1034 return; 1035 } 1036 1037 this._isSliding = true; 1038 1039 if (isCycling) { 1040 this.pause(); 1041 } 1042 1043 this._setActiveIndicatorElement(nextElement); 1044 1045 this._activeElement = nextElement; 1046 var slidEvent = $__default["default"].Event(EVENT_SLID, { 1047 relatedTarget: nextElement, 1048 direction: eventDirectionName, 1049 from: activeElementIndex, 1050 to: nextElementIndex 1051 }); 1052 1053 if ($__default["default"](this._element).hasClass(CLASS_NAME_SLIDE)) { 1054 $__default["default"](nextElement).addClass(orderClassName); 1055 Util.reflow(nextElement); 1056 $__default["default"](activeElement).addClass(directionalClassName); 1057 $__default["default"](nextElement).addClass(directionalClassName); 1058 var transitionDuration = Util.getTransitionDurationFromElement(activeElement); 1059 $__default["default"](activeElement).one(Util.TRANSITION_END, function () { 1060 $__default["default"](nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(CLASS_NAME_ACTIVE$2); 1061 $__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE$2 + " " + orderClassName + " " + directionalClassName); 1062 _this4._isSliding = false; 1063 setTimeout(function () { 1064 return $__default["default"](_this4._element).trigger(slidEvent); 1065 }, 0); 1066 }).emulateTransitionEnd(transitionDuration); 1067 } else { 1068 $__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE$2); 1069 $__default["default"](nextElement).addClass(CLASS_NAME_ACTIVE$2); 1070 this._isSliding = false; 1071 $__default["default"](this._element).trigger(slidEvent); 1072 } 1073 1074 if (isCycling) { 1075 this.cycle(); 1076 } 1077 } // Static 1078 ; 1079 1080 Carousel._jQueryInterface = function _jQueryInterface(config) { 1081 return this.each(function () { 1082 var data = $__default["default"](this).data(DATA_KEY$8); 1083 1084 var _config = _extends({}, Default$7, $__default["default"](this).data()); 1085 1086 if (typeof config === 'object') { 1087 _config = _extends({}, _config, config); 1088 } 1089 1090 var action = typeof config === 'string' ? config : _config.slide; 1091 1092 if (!data) { 1093 data = new Carousel(this, _config); 1094 $__default["default"](this).data(DATA_KEY$8, data); 1095 } 1096 1097 if (typeof config === 'number') { 1098 data.to(config); 1099 } else if (typeof action === 'string') { 1100 if (typeof data[action] === 'undefined') { 1101 throw new TypeError("No method named \"" + action + "\""); 1102 } 1103 1104 data[action](); 1105 } else if (_config.interval && _config.ride) { 1106 data.pause(); 1107 data.cycle(); 1108 } 1109 }); 1110 }; 1111 1112 Carousel._dataApiClickHandler = function _dataApiClickHandler(event) { 1113 var selector = Util.getSelectorFromElement(this); 1114 1115 if (!selector) { 1116 return; 1117 } 1118 1119 var target = $__default["default"](selector)[0]; 1120 1121 if (!target || !$__default["default"](target).hasClass(CLASS_NAME_CAROUSEL)) { 1122 return; 1123 } 1124 1125 var config = _extends({}, $__default["default"](target).data(), $__default["default"](this).data()); 1126 1127 var slideIndex = this.getAttribute('data-slide-to'); 1128 1129 if (slideIndex) { 1130 config.interval = false; 1131 } 1132 1133 Carousel._jQueryInterface.call($__default["default"](target), config); 1134 1135 if (slideIndex) { 1136 $__default["default"](target).data(DATA_KEY$8).to(slideIndex); 1137 } 1138 1139 event.preventDefault(); 1140 }; 1141 1142 _createClass(Carousel, null, [{ 1143 key: "VERSION", 1144 get: function get() { 1145 return VERSION$8; 1146 } 1147 }, { 1148 key: "Default", 1149 get: function get() { 1150 return Default$7; 1151 } 1152 }]); 1153 1154 return Carousel; 1155 }(); 1156 /** 1157 * Data API implementation 1158 */ 1159 1160 1161 $__default["default"](document).on(EVENT_CLICK_DATA_API$4, SELECTOR_DATA_SLIDE, Carousel._dataApiClickHandler); 1162 $__default["default"](window).on(EVENT_LOAD_DATA_API$1, function () { 1163 var carousels = [].slice.call(document.querySelectorAll(SELECTOR_DATA_RIDE)); 1164 1165 for (var i = 0, len = carousels.length; i < len; i++) { 1166 var $carousel = $__default["default"](carousels[i]); 1167
1168 Carousel._jQueryInterface.call($carousel, $carousel.data()); 1169 } 1170 }); 1171 /** 1172 * jQuery 1173 */ 1174 1175 $__default["default"].fn[NAME$8] = Carousel._jQueryInterface; 1176 $__default["default"].fn[NAME$8].Constructor = Carousel; 1177 1178 $__default["default"].fn[NAME$8].noConflict = function () { 1179 $__default["default"].fn[NAME$8] = JQUERY_NO_CONFLICT$8; 1180 return Carousel._jQueryInterface; 1181 }; 1182 1183 /** 1184 * Constants 1185 */ 1186 1187 var NAME$7 = 'collapse'; 1188 var VERSION$7 = '4.6.1'; 1189 var DATA_KEY$7 = 'bs.collapse'; 1190 var EVENT_KEY$7 = "." + DATA_KEY$7; 1191 var DATA_API_KEY$4 = '.data-api'; 1192 var JQUERY_NO_CONFLICT$7 = $__default["default"].fn[NAME$7]; 1193 var CLASS_NAME_SHOW$6 = 'show'; 1194 var CLASS_NAME_COLLAPSE = 'collapse'; 1195 var CLASS_NAME_COLLAPSING = 'collapsing'; 1196 var CLASS_NAME_COLLAPSED = 'collapsed'; 1197 var DIMENSION_WIDTH = 'width'; 1198 var DIMENSION_HEIGHT = 'height'; 1199 var EVENT_SHOW$4 = "show" + EVENT_KEY$7; 1200 var EVENT_SHOWN$4 = "shown" + EVENT_KEY$7; 1201 var EVENT_HIDE$4 = "hide" + EVENT_KEY$7; 1202 var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$7; 1203 var EVENT_CLICK_DATA_API$3 = "click" + EVENT_KEY$7 + DATA_API_KEY$4; 1204 var SELECTOR_ACTIVES = '.show, .collapsing'; 1205 var SELECTOR_DATA_TOGGLE$3 = '[data-toggle="collapse"]'; 1206 var Default$6 = { 1207 toggle: true, 1208 parent: '' 1209 }; 1210 var DefaultType$6 = { 1211 toggle: 'boolean', 1212 parent: '(string|element)' 1213 }; 1214 /** 1215 * Class definition 1216 */ 1217 1218 var Collapse = /*#__PURE__*/function () { 1219 function Collapse(element, config) { 1220 this._isTransitioning = false; 1221 this._element = element; 1222 this._config = this._getConfig(config); 1223 this._triggerArray = [].slice.call(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]"))); 1224 var toggleList = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$3)); 1225 1226 for (var i = 0, len = toggleList.length; i < len; i++) { 1227 var elem = toggleList[i]; 1228 var selector = Util.getSelectorFromElement(elem); 1229 var filterElement = [].slice.call(document.querySelectorAll(selector)).filter(function (foundElem) { 1230 return foundElem === element; 1231 }); 1232 1233 if (selector !== null && filterElement.length > 0) { 1234 this._selector = selector; 1235 1236 this._triggerArray.push(elem); 1237 } 1238 } 1239 1240 this._parent = this._config.parent ? this._getParent() : null; 1241 1242 if (!this._config.parent) { 1243 this._addAriaAndCollapsedClass(this._element, this._triggerArray); 1244 } 1245 1246 if (this._config.toggle) { 1247 this.toggle(); 1248 } 1249 } // Getters 1250 1251 1252 var _proto = Collapse.prototype; 1253 1254 // Public 1255 _proto.toggle = function toggle() { 1256 if ($__default["default"](this._element).hasClass(CLASS_NAME_SHOW$6)) { 1257 this.hide(); 1258 } else { 1259 this.show(); 1260 } 1261 }; 1262 1263 _proto.show = function show() { 1264 var _this = this; 1265 1266 if (this._isTransitioning || $__default["default"](this._element).hasClass(CLASS_NAME_SHOW$6)) { 1267 return; 1268 } 1269 1270 var actives; 1271 var activesData; 1272 1273 if (this._parent) { 1274 actives = [].slice.call(this._parent.querySelectorAll(SELECTOR_ACTIVES)).filter(function (elem) { 1275 if (typeof _this._config.parent === 'string') { 1276 return elem.getAttribute('data-parent') === _this._config.parent; 1277 } 1278 1279 return elem.classList.contains(CLASS_NAME_COLLAPSE); 1280 }); 1281 1282 if (actives.length === 0) { 1283 actives = null; 1284 } 1285 } 1286 1287 if (actives) { 1288 activesData = $__default["default"](actives).not(this._selector).data(DATA_KEY$7); 1289 1290 if (activesData && activesData._isTransitioning) { 1291 return; 1292 } 1293 } 1294 1295 var startEvent = $__default["default"].Event(EVENT_SHOW$4); 1296 $__default["default"](this._element).trigger(startEvent); 1297 1298 if (startEvent.isDefaultPrevented()) { 1299 return; 1300 } 1301 1302 if (actives) { 1303 Collapse._jQueryInterface.call($__default["default"](actives).not(this._selector), 'hide'); 1304 1305 if (!activesData) { 1306 $__default["default"](actives).data(DATA_KEY$7, null); 1307 } 1308 } 1309 1310 var dimension = this._getDimension(); 1311 1312 $__default["default"](this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING); 1313 this._element.style[dimension] = 0; 1314 1315 if (this._triggerArray.length) { 1316 $__default["default"](this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', true); 1317 } 1318 1319 this.setTransitioning(true); 1320 1321 var complete = function complete() { 1322 $__default["default"](_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$6); 1323 _this._element.style[dimension] = ''; 1324 1325 _this.setTransitioning(false); 1326 1327 $__default["default"](_this._element).trigger(EVENT_SHOWN$4); 1328 }; 1329 1330 var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1); 1331 var scrollSize = "scroll" + capitalizedDimension; 1332 var transitionDuration = Util.getTransitionDurationFromElement(this._element); 1333 $__default["default"](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); 1334 this._element.style[dimension] = this._element[scrollSize] + "px"; 1335 }; 1336 1337 _proto.hide = function hide() { 1338 var _this2 = this; 1339 1340 if (this._isTransitioning || !$__default["default"](this._element).hasClass(CLASS_NAME_SHOW$6)) { 1341 return; 1342 } 1343 1344 var startEvent = $__default["default"].Event(EVENT_HIDE$4); 1345 $__default["default"](this._element).trigger(startEvent); 1346 1347 if (startEvent.isDefaultPrevented()) { 1348 return; 1349 } 1350 1351 var dimension = this._getDimension(); 1352 1353 this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px"; 1354 Util.reflow(this._element); 1355 $__default["default"](this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$6); 1356 var triggerArrayLength = this._triggerArray.length; 1357 1358 if (triggerArrayLength > 0) { 1359 for (var i = 0; i < triggerArrayLength; i++) { 1360 var trigger = this._triggerArray[i]; 1361 var selector = Util.getSelectorFromElement(trigger); 1362 1363 if (selector !== null) { 1364 var $elem = $__default["default"]([].slice.call(document.querySelectorAll(selector))); 1365 1366 if (!$elem.hasClass(CLASS_NAME_SHOW$6)) { 1367 $__default["default"](trigger).addClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', false); 1368 } 1369 } 1370 } 1371 } 1372 1373 this.setTransitioning(true); 1374 1375 var complete = function complete() { 1376 _this2.setTransitioning(false); 1377 1378 $__default["default"](_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN$4); 1379 }; 1380 1381 this._element.style[dimension] = ''; 1382 var transitionDuration = Util.getTransitionDurationFromElement(this._element); 1383 $__default["default"](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); 1384 }; 1385 1386 _proto.setTransitioning = function setTransitioning(isTransitioning) { 1387 this._isTransitioning = isTransitioning; 1388 }; 1389 1390 _proto.dispose = function dispose() { 1391 $__default["default"].removeData(this._element, DATA_KEY$7); 1392 this._config = null; 1393 this._parent = null; 1394 this._element = null; 1395 this._triggerArray = null; 1396 this._isTransitioning = null; 1397 } // Private 1398 ; 1399 1400 _proto._getConfig = function _getConfig(config) { 1401 config = _extends({}, Default$6, config); 1402 config.toggle = Boolean(config.toggle); // Coerce string values 1403 1404 Util.typeCheckConfig(NAME$7, config, DefaultType$6); 1405 return config; 1406 }; 1407 1408 _proto._getDimension = function _getDimension() { 1409 var hasWidth = $__default["default"](this._element).hasClass(DIMENSION_WIDTH); 1410 return hasWidth ? DIMENSION_WIDTH : DIMENSION_HEIGHT; 1411 }; 1412 1413 _proto._getParent = function _getParent() { 1414 var _this3 = this; 1415 1416 var parent; 1417 1418 if (Util.isElement(this._config.parent)) { 1419 parent = this._config.parent; // It's a jQuery object 1420 1421 if (typeof this._config.parent.jquery !== 'undefined') { 1422 parent = this._config.parent[0]; 1423 } 1424 } else { 1425 parent = document.querySelector(this._config.parent); 1426 } 1427 1428 var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]"; 1429 var children = [].slice.call(parent.querySelectorAll(selector)); 1430 $__default["default"](children).each(function (i, element) { 1431 _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]); 1432 }); 1433 return parent; 1434 }; 1435 1436 _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) { 1437 var isOpen = $__default["default"](element).hasClass(CLASS_NAME_SHOW$6); 1438 1439 if (triggerArray.length) { 1440 $__default["default"](triggerArray).toggleClass(CLASS_NAME_COLLAPSED, !isOpen).attr('aria-expanded', isOpen); 1441 } 1442 } // Static 1443 ; 1444 1445 Collapse._getTargetFromElement = function _getTargetFromElement(element) { 1446 var selector = Util.getSelectorFromElement(element); 1447 return selector ? document.querySelector(selector) : null; 1448 }; 1449 1450 Collapse._jQueryInterface = function _jQueryInterface(config) { 1451 return this.each(function () { 1452 var $element = $__default["default"](this); 1453 var data = $element.data(DATA_KEY$7); 1454 1455 var _config = _extends({}, Default$6, $element.data(), typeof config === 'object' && config ? config : {}); 1456 1457 if (!data && _config.toggle && typeof config === 'string' && /show|hide/.test(config)) { 1458 _config.toggle = false;
1459 } 1460 1461 if (!data) { 1462 data = new Collapse(this, _config); 1463 $element.data(DATA_KEY$7, data); 1464 } 1465 1466 if (typeof config === 'string') { 1467 if (typeof data[config] === 'undefined') { 1468 throw new TypeError("No method named \"" + config + "\""); 1469 } 1470 1471 data[config](); 1472 } 1473 }); 1474 }; 1475 1476 _createClass(Collapse, null, [{ 1477 key: "VERSION", 1478 get: function get() { 1479 return VERSION$7; 1480 } 1481 }, { 1482 key: "Default", 1483 get: function get() { 1484 return Default$6; 1485 } 1486 }]); 1487 1488 return Collapse; 1489 }(); 1490 /** 1491 * Data API implementation 1492 */ 1493 1494 1495 $__default["default"](document).on(EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$3, function (event) { 1496 // preventDefault only for <a> elements (which change the URL) not inside the collapsible element 1497 if (event.currentTarget.tagName === 'A') { 1498 event.preventDefault(); 1499 } 1500 1501 var $trigger = $__default["default"](this); 1502 var selector = Util.getSelectorFromElement(this); 1503 var selectors = [].slice.call(document.querySelectorAll(selector)); 1504 $__default["default"](selectors).each(function () { 1505 var $target = $__default["default"](this); 1506 var data = $target.data(DATA_KEY$7); 1507 var config = data ? 'toggle' : $trigger.data(); 1508 1509 Collapse._jQueryInterface.call($target, config); 1510 }); 1511 }); 1512 /** 1513 * jQuery 1514 */ 1515 1516 $__default["default"].fn[NAME$7] = Collapse._jQueryInterface; 1517 $__default["default"].fn[NAME$7].Constructor = Collapse; 1518 1519 $__default["default"].fn[NAME$7].noConflict = function () { 1520 $__default["default"].fn[NAME$7] = JQUERY_NO_CONFLICT$7; 1521 return Collapse._jQueryInterface; 1522 }; 1523 1524 /** 1525 * Constants 1526 */ 1527 1528 var NAME$6 = 'dropdown'; 1529 var VERSION$6 = '4.6.1'; 1530 var DATA_KEY$6 = 'bs.dropdown'; 1531 var EVENT_KEY$6 = "." + DATA_KEY$6; 1532 var DATA_API_KEY$3 = '.data-api'; 1533 var JQUERY_NO_CONFLICT$6 = $__default["default"].fn[NAME$6]; 1534 var ESCAPE_KEYCODE$1 = 27; // KeyboardEvent.which value for Escape (Esc) key 1535 1536 var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key 1537 1538 var TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key 1539 1540 var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key 1541 1542 var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key 1543 1544 var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse) 1545 1546 var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE$1); 1547 var CLASS_NAME_DISABLED$1 = 'disabled'; 1548 var CLASS_NAME_SHOW$5 = 'show'; 1549 var CLASS_NAME_DROPUP = 'dropup'; 1550 var CLASS_NAME_DROPRIGHT = 'dropright'; 1551 var CLASS_NAME_DROPLEFT = 'dropleft'; 1552 var CLASS_NAME_MENURIGHT = 'dropdown-menu-right'; 1553 var CLASS_NAME_POSITION_STATIC = 'position-static'; 1554 var EVENT_HIDE$3 = "hide" + EVENT_KEY$6; 1555 var EVENT_HIDDEN$3 = "hidden" + EVENT_KEY$6; 1556 var EVENT_SHOW$3 = "show" + EVENT_KEY$6; 1557 var EVENT_SHOWN$3 = "shown" + EVENT_KEY$6; 1558 var EVENT_CLICK = "click" + EVENT_KEY$6; 1559 var EVENT_CLICK_DATA_API$2 = "click" + EVENT_KEY$6 + DATA_API_KEY$3; 1560 var EVENT_KEYDOWN_DATA_API = "keydown" + EVENT_KEY$6 + DATA_API_KEY$3; 1561 var EVENT_KEYUP_DATA_API = "keyup" + EVENT_KEY$6 + DATA_API_KEY$3; 1562 var SELECTOR_DATA_TOGGLE$2 = '[data-toggle="dropdown"]'; 1563 var SELECTOR_FORM_CHILD = '.dropdown form'; 1564 var SELECTOR_MENU = '.dropdown-menu'; 1565 var SELECTOR_NAVBAR_NAV = '.navbar-nav'; 1566 var SELECTOR_VISIBLE_ITEMS = '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)'; 1567 var PLACEMENT_TOP = 'top-start'; 1568 var PLACEMENT_TOPEND = 'top-end'; 1569 var PLACEMENT_BOTTOM = 'bottom-start'; 1570 var PLACEMENT_BOTTOMEND = 'bottom-end'; 1571 var PLACEMENT_RIGHT = 'right-start'; 1572 var PLACEMENT_LEFT = 'left-start'; 1573 var Default$5 = { 1574 offset: 0, 1575 flip: true, 1576 boundary: 'scrollParent', 1577 reference: 'toggle', 1578 display: 'dynamic', 1579 popperConfig: null 1580 }; 1581 var DefaultType$5 = { 1582 offset: '(number|string|function)', 1583 flip: 'boolean', 1584 boundary: '(string|element)', 1585 reference: '(string|element)', 1586 display: 'string', 1587 popperConfig: '(null|object)' 1588 }; 1589 /** 1590 * Class definition 1591 */ 1592 1593 var Dropdown = /*#__PURE__*/function () { 1594 function Dropdown(element, config) { 1595 this._element = element; 1596 this._popper = null; 1597 this._config = this._getConfig(config); 1598 this._menu = this._getMenuElement(); 1599 this._inNavbar = this._detectNavbar(); 1600 1601 this._addEventListeners(); 1602 } // Getters 1603 1604 1605 var _proto = Dropdown.prototype; 1606 1607 // Public
1608 _proto.toggle = function toggle() { 1609 if (this._element.disabled || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED$1)) { 1610 return; 1611 } 1612 1613 var isActive = $__default["default"](this._menu).hasClass(CLASS_NAME_SHOW$5); 1614 1615 Dropdown._clearMenus(); 1616 1617 if (isActive) { 1618 return; 1619 } 1620 1621 this.show(true); 1622 }; 1623 1624 _proto.show = function show(usePopper) { 1625 if (usePopper === void 0) { 1626 usePopper = false; 1627 } 1628 1629 if (this._element.disabled || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED$1) || $__default["default"](this._menu).hasClass(CLASS_NAME_SHOW$5)) { 1630 return; 1631 } 1632 1633 var relatedTarget = { 1634 relatedTarget: this._element 1635 }; 1636 var showEvent = $__default["default"].Event(EVENT_SHOW$3, relatedTarget); 1637 1638 var parent = Dropdown._getParentFromElement(this._element); 1639 1640 $__default["default"](parent).trigger(showEvent); 1641 1642 if (showEvent.isDefaultPrevented()) { 1643 return; 1644 } // Totally disable Popper for Dropdowns in Navbar 1645 1646 1647 if (!this._inNavbar && usePopper) { 1648 // Check for Popper dependency 1649 if (typeof Popper__default["default"] === 'undefined') { 1650 throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)'); 1651 } 1652 1653 var referenceElement = this._element; 1654 1655 if (this._config.reference === 'parent') { 1656 referenceElement = parent; 1657 } else if (Util.isElement(this._config.reference)) { 1658 referenceElement = this._config.reference; // Check if it's jQuery element 1659 1660 if (typeof this._config.reference.jquery !== 'undefined') { 1661 referenceElement = this._config.reference[0]; 1662 } 1663 } // If boundary is not `scrollParent`, then set position to `static` 1664 // to allow the menu to "escape" the scroll parent's boundaries 1665 // https://github.com/twbs/bootstrap/issues/24251 1666 1667 1668 if (this._config.boundary !== 'scrollParent') { 1669 $__default["default"](parent).addClass(CLASS_NAME_POSITION_STATIC); 1670 } 1671 1672 this._popper = new Popper__default["default"](referenceElement, this._menu, this._getPopperConfig()); 1673 } // If this is a touch-enabled device we add extra 1674 // empty mouseover listeners to the body's immediate children; 1675 // only needed because of broken event delegation on iOS 1676 // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html 1677 1678 1679 if ('ontouchstart' in document.documentElement && $__default["default"](parent).closest(SELECTOR_NAVBAR_NAV).length === 0) { 1680 $__default["default"](document.body).children().on('mouseover', null, $__default["default"].noop); 1681 } 1682 1683 this._element.focus(); 1684 1685 this._element.setAttribute('aria-expanded', true); 1686 1687 $__default["default"](this._menu).toggleClass(CLASS_NAME_SHOW$5); 1688 $__default["default"](parent).toggleClass(CLASS_NAME_SHOW$5).trigger($__default["default"].Event(EVENT_SHOWN$3, relatedTarget)); 1689 }; 1690 1691 _proto.hide = function hide() { 1692 if (this._element.disabled || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED$1) || !$__default["default"](this._menu).hasClass(CLASS_NAME_SHOW$5)) { 1693 return; 1694 } 1695 1696 var relatedTarget = { 1697 relatedTarget: this._element 1698 }; 1699 var hideEvent = $__default["default"].Event(EVENT_HIDE$3, relatedTarget); 1700 1701 var parent = Dropdown._getParentFromElement(this._element); 1702 1703 $__default["default"](parent).trigger(hideEvent); 1704 1705 if (hideEvent.isDefaultPrevented()) { 1706 return; 1707 } 1708 1709 if (this._popper) { 1710 this._popper.destroy(); 1711 } 1712 1713 $__default["default"](this._menu).toggleClass(CLASS_NAME_SHOW$5); 1714 $__default["default"](parent).toggleClass(CLASS_NAME_SHOW$5).trigger($__default["default"].Event(EVENT_HIDDEN$3, relatedTarget)); 1715 }; 1716 1717 _proto.dispose = function dispose() { 1718 $__default["default"].removeData(this._element, DATA_KEY$6); 1719 $__default["default"](this._element).off(EVENT_KEY$6); 1720 this._element = null; 1721 this._menu = null; 1722 1723 if (this._popper !== null) { 1724 this._popper.destroy(); 1725 1726 this._popper = null; 1727 } 1728 }; 1729
1730 _proto.update = function update() { 1731 this._inNavbar = this._detectNavbar(); 1732 1733 if (this._popper !== null) { 1734 this._popper.scheduleUpdate(); 1735 } 1736 } // Private 1737 ; 1738 1739 _proto._addEventListeners = function _addEventListeners() { 1740 var _this = this; 1741 1742 $__default["default"](this._element).on(EVENT_CLICK, function (event) { 1743 event.preventDefault(); 1744 event.stopPropagation(); 1745 1746 _this.toggle(); 1747 }); 1748 }; 1749 1750 _proto._getConfig = function _getConfig(config) { 1751 config = _extends({}, this.constructor.Default, $__default["default"](this._element).data(), config); 1752 Util.typeCheckConfig(NAME$6, config, this.constructor.DefaultType); 1753 return config; 1754 }; 1755 1756 _proto._getMenuElement = function _getMenuElement() { 1757 if (!this._menu) { 1758 var parent = Dropdown._getParentFromElement(this._element); 1759 1760 if (parent) { 1761 this._menu = parent.querySelector(SELECTOR_MENU); 1762 } 1763 } 1764 1765 return this._menu; 1766 }; 1767 1768 _proto._getPlacement = function _getPlacement() { 1769 var $parentDropdown = $__default["default"](this._element.parentNode); 1770 var placement = PLACEMENT_BOTTOM; // Handle dropup 1771 1772 if ($parentDropdown.hasClass(CLASS_NAME_DROPUP)) { 1773 placement = $__default["default"](this._menu).hasClass(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP; 1774 } else if ($parentDropdown.hasClass(CLASS_NAME_DROPRIGHT)) { 1775 placement = PLACEMENT_RIGHT; 1776 } else if ($parentDropdown.hasClass(CLASS_NAME_DROPLEFT)) { 1777 placement = PLACEMENT_LEFT; 1778 } else if ($__default["default"](this._menu).hasClass(CLASS_NAME_MENURIGHT)) { 1779 placement = PLACEMENT_BOTTOMEND; 1780 } 1781 1782 return placement; 1783 }; 1784 1785 _proto._detectNavbar = function _detectNavbar() { 1786 return $__default["default"](this._element).closest('.navbar').length > 0; 1787 }; 1788 1789 _proto._getOffset = function _getOffset() { 1790 var _this2 = this; 1791 1792 var offset = {}; 1793 1794 if (typeof this._config.offset === 'function') { 1795 offset.fn = function (data) { 1796 data.offsets = _extends({}, data.offsets, _this2._config.offset(data.offsets, _this2._element)); 1797 return data; 1798 }; 1799 } else { 1800 offset.offset = this._config.offset; 1801 } 1802 1803 return offset; 1804 }; 1805 1806 _proto._getPopperConfig = function _getPopperConfig() { 1807 var popperConfig = { 1808 placement: this._getPlacement(), 1809 modifiers: { 1810 offset: this._getOffset(), 1811 flip: { 1812 enabled: this._config.flip 1813 }, 1814 preventOverflow: { 1815 boundariesElement: this._config.boundary 1816 } 1817 } 1818 }; // Disable Popper if we have a static display 1819 1820 if (this._config.display === 'static') { 1821 popperConfig.modifiers.applyStyle = { 1822 enabled: false 1823 }; 1824 } 1825 1826 return _extends({}, popperConfig, this._config.popperConfig); 1827 } // Static 1828 ; 1829 1830 Dropdown._jQueryInterface = function _jQueryInterface(config) { 1831 return this.each(function () { 1832 var data = $__default["default"](this).data(DATA_KEY$6); 1833 1834 var _config = typeof config === 'object' ? config : null; 1835 1836 if (!data) { 1837 data = new Dropdown(this, _config); 1838 $__default["default"](this).data(DATA_KEY$6, data); 1839 } 1840 1841 if (typeof config === 'string') { 1842 if (typeof data[config] === 'undefined') { 1843 throw new TypeError("No method named \"" + config + "\""); 1844 } 1845 1846 data[config](); 1847 } 1848 }); 1849 }; 1850 1851 Dropdown._clearMenus = function _clearMenus(event) { 1852 if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) { 1853 return; 1854 } 1855 1856 var toggles = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$2)); 1857 1858 for (var i = 0, len = toggles.length; i < len; i++) { 1859 var parent = Dropdown._getParentFromElement(toggles[i]); 1860 1861 var context = $__default["default"](toggles[i]).data(DATA_KEY$6); 1862 var relatedTarget = { 1863 relatedTarget: toggles[i] 1864 }; 1865 1866 if (event && event.type === 'click') { 1867 relatedTarget.clickEvent = event; 1868 } 1869 1870 if (!context) { 1871 continue; 1872 } 1873 1874 var dropdownMenu = context._menu; 1875 1876 if (!$__default["default"](parent).hasClass(CLASS_NAME_SHOW$5)) { 1877 continue; 1878 } 1879 1880 if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $__default["default"].contains(parent, event.target)) { 1881 continue; 1882 } 1883 1884 var hideEvent = $__default["default"].Event(EVENT_HIDE$3, relatedTarget); 1885 $__default["default"](parent).trigger(hideEvent); 1886 1887 if (hideEvent.isDefaultPrevented()) { 1888 continue; 1889 } // If this is a touch-enabled device we remove the extra 1890 // empty mouseover listeners we added for iOS support 1891 1892 1893 if ('ontouchstart' in document.documentElement) { 1894 $__default["default"](document.body).children().off('mouseover', null, $__default["default"].noop); 1895 } 1896 1897 toggles[i].setAttribute('aria-expanded', 'false'); 1898 1899 if (context._popper) { 1900 context._popper.destroy(); 1901 } 1902 1903 $__default["default"](dropdownMenu).removeClass(CLASS_NAME_SHOW$5); 1904 $__default["default"](parent).removeClass(CLASS_NAME_SHOW$5).trigger($__default["default"].Event(EVENT_HIDDEN$3, relatedTarget)); 1905 } 1906 }; 1907 1908 Dropdown._getParentFromElement = function _getParentFromElement(element) { 1909 var parent; 1910 var selector = Util.getSelectorFromElement(element); 1911 1912 if (selector) { 1913 parent = document.querySelector(selector); 1914 } 1915 1916 return parent || element.parentNode; 1917 } // eslint-disable-next-line complexity 1918 ; 1919 1920 Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) { 1921 // If not input/textarea: 1922 // - And not a key in REGEXP_KEYDOWN => not a dropdown command 1923 // If input/textarea: 1924 // - If space key => not a dropdown command 1925 // - If key is other than escape 1926 // - If key is not up or down => not a dropdown command 1927 // - If trigger inside the menu =>
1927 not a dropdown command 1928 if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE$1 && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $__default["default"](event.target).closest(SELECTOR_MENU).length) : !REGEXP_KEYDOWN.test(event.which)) { 1929 return; 1930 } 1931 1932 if (this.disabled || $__default["default"](this).hasClass(CLASS_NAME_DISABLED$1)) { 1933 return; 1934 } 1935 1936 var parent = Dropdown._getParentFromElement(this); 1937 1938 var isActive = $__default["default"](parent).hasClass(CLASS_NAME_SHOW$5); 1939 1940 if (!isActive && event.which === ESCAPE_KEYCODE$1) { 1941 return; 1942 } 1943 1944 event.preventDefault(); 1945 event.stopPropagation(); 1946 1947 if (!isActive || event.which === ESCAPE_KEYCODE$1 || event.which === SPACE_KEYCODE) { 1948 if (event.which === ESCAPE_KEYCODE$1) { 1949 $__default["default"](parent.querySelector(SELECTOR_DATA_TOGGLE$2)).trigger('focus'); 1950 } 1951 1952 $__default["default"](this).trigger('click'); 1953 return; 1954 } 1955 1956 var items = [].slice.call(parent.querySelectorAll(SELECTOR_VISIBLE_ITEMS)).filter(function (item) { 1957 return $__default["default"](item).is(':visible'); 1958 }); 1959 1960 if (items.length === 0) { 1961 return; 1962 } 1963 1964 var index = items.indexOf(event.target); 1965 1966 if (event.which === ARROW_UP_KEYCODE && index > 0) { 1967 // Up 1968 index--; 1969 } 1970 1971 if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) { 1972 // Down 1973 index++; 1974 } 1975 1976 if (index < 0) { 1977 index = 0; 1978 } 1979 1980 items[index].focus(); 1981 }; 1982 1983 _createClass(Dropdown, null, [{ 1984 key: "VERSION", 1985 get: function get() { 1986 return VERSION$6; 1987 } 1988 }, { 1989 key: "Default", 1990 get: function get() { 1991 return Default$5; 1992 } 1993 }, { 1994 key: "DefaultType", 1995 get: function get() { 1996 return DefaultType$5; 1997 } 1998 }]); 1999 2000 return Dropdown; 2001 }(); 2002 /** 2003 * Data API implementation 2004 */ 2005 2006 2007 $__default["default"](document).on(EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$2, Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API$2 + " " + EVENT_KEYUP_DATA_API, Dropdown._clearMenus).on(EVENT_CLICK_DATA_API$2, SELECTOR_DATA_TOGGLE$2, function (event) { 2008 event.preventDefault(); 2009 event.stopPropagation(); 2010 2011 Dropdown._jQueryInterface.call($__default["default"](this), 'toggle'); 2012 }).on(EVENT_CLICK_DATA_API$2, SELECTOR_FORM_CHILD, function (e) { 2013 e.stopPropagation(); 2014 }); 2015 /** 2016 * jQuery 2017 */ 2018 2019 $__default["default"].fn[NAME$6] = Dropdown._jQueryInterface; 2020 $__default["default"].fn[NAME$6].Constructor = Dropdown; 2021 2022 $__default["default"].fn[NAME$6].noConflict = function () { 2023 $__default["default"].fn[NAME$6] = JQUERY_NO_CONFLICT$6; 2024 return Dropdown._jQueryInterface; 2025 }; 2026 2027 /** 2028 * Constants 2029 */ 2030 2031 var NAME$5 = 'modal'; 2032 var VERSION$5 = '4.6.1'; 2033 var DATA_KEY$5 = 'bs.modal'; 2034 var EVENT_KEY$5 = "." + DATA_KEY$5; 2035 var DATA_API_KEY$2 = '.data-api'; 2036 var JQUERY_NO_CONFLICT$5 = $__default["default"].fn[NAME$5]; 2037 var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key 2038 2039 var CLASS_NAME_SCROLLABLE = 'modal-dialog-scrollable'; 2040 var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure'; 2041 var CLASS_NAME_BACKDROP = 'modal-backdrop'; 2042 var CLASS_NAME_OPEN = 'modal-open'; 2043 var CLASS_NAME_FADE$4 = 'fade'; 2044 var CLASS_NAME_SHOW$4 = 'show'; 2045 var CLASS_NAME_STATIC = 'modal-static'; 2046 var EVENT_HIDE$2 = "hide" + EVENT_KEY$5; 2047 var EVENT_HIDE_PREVENTED = "hidePrevented" + EVENT_KEY$5; 2048 var EVENT_HIDDEN$2 = "hidden" + EVENT_KEY$5; 2049 var EVENT_SHOW$2 = "show" + EVENT_KEY$5; 2050 var EVENT_SHOWN$2 = "shown" + EVENT_KEY$5; 2051 var EVENT_FOCUSIN = "focusin" + EVENT_KEY$5; 2052 var EVENT_RESIZE = "resize" + EVENT_KEY$5; 2053 var EVENT_CLICK_DISMISS$1 = "click.dismiss" + EVENT_KEY$5; 2054 var EVENT_KEYDOWN_DISMISS = "keydown.dismiss" + EVENT_KEY$5; 2055 var EVENT_MOUSEUP_DISMISS = "mouseup.dismiss" + EVENT_KEY$5; 2056 var EVENT_MOUSEDOWN_DISMISS = "mousedown.dismiss" + EVENT_KEY$5; 2057 var EVENT_CLICK_DATA_API$1 = "click" + EVENT_KEY$5 + DATA_API_KEY$2; 2058 var SELECTOR_DIALOG = '.modal-dialog'; 2059 var SELECTOR_MODAL_BODY = '.modal-body'; 2060 var SELECTOR_DATA_TOGGLE$1 = '[data-toggle="modal"]'; 2061 var SELECTOR_DATA_DISMISS$1 = '[data-dismiss="modal"]'; 2062 var SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top'; 2063 var SELECTOR_STICKY_CONTENT = '.sticky-top'; 2064 var Default$4 = { 2065 backdrop: true, 2066 keyboard: true, 2067 focus: true, 2068 show: true 2069 }; 2070 var DefaultType$4 = { 2071 backdrop: '(boolean|string)', 2072 keyboard: 'boolean', 2073 focus: 'boolean', 2074 show: 'boolean' 2075 }; 2076 /** 2077 * Class definition 2078 */ 2079 2080 var Modal = /*#__PURE__*/function () { 2081 function Modal(element, config) { 2082 this._config = this._getConfig(config); 2083 this._element = element; 2084 this._dialog = element.querySelector(SELECTOR_DIALOG); 2085 this._backdrop = null; 2086 this._isShown = false;
2087 this._isBodyOverflowing = false; 2088 this._ignoreBackdropClick = false; 2089 this._isTransitioning = false; 2090 this._scrollbarWidth = 0; 2091 } // Getters 2092 2093 2094 var _proto = Modal.prototype; 2095 2096 // Public 2097 _proto.toggle = function toggle(relatedTarget) { 2098 return this._isShown ? this.hide() : this.show(relatedTarget); 2099 }; 2100 2101 _proto.show = function show(relatedTarget) { 2102 var _this = this; 2103 2104 if (this._isShown || this._isTransitioning) { 2105 return; 2106 } 2107 2108 var showEvent = $__default["default"].Event(EVENT_SHOW$2, { 2109 relatedTarget: relatedTarget 2110 }); 2111 $__default["default"](this._element).trigger(showEvent); 2112 2113 if (showEvent.isDefaultPrevented()) { 2114 return; 2115 } 2116 2117 this._isShown = true; 2118 2119 if ($__default["default"](this._element).hasClass(CLASS_NAME_FADE$4)) { 2120 this._isTransitioning = true; 2121 } 2122 2123 this._checkScrollbar(); 2124 2125 this._setScrollbar(); 2126 2127 this._adjustDialog(); 2128 2129 this._setEscapeEvent(); 2130 2131 this._setResizeEvent(); 2132 2133 $__default["default"](this._element).on(EVENT_CLICK_DISMISS$1, SELECTOR_DATA_DISMISS$1, function (event) { 2134 return _this.hide(event); 2135 }); 2136 $__default["default"](this._dialog).on(EVENT_MOUSEDOWN_DISMISS, function () { 2137 $__default["default"](_this._element).one(EVENT_MOUSEUP_DISMISS, function (event) { 2138 if ($__default["default"](event.target).is(_this._element)) { 2139 _this._ignoreBackdropClick = true; 2140 } 2141 }); 2142 }); 2143 2144 this._showBackdrop(function () { 2145 return _this._showElement(relatedTarget); 2146 }); 2147 }; 2148 2149 _proto.hide = function hide(event) { 2150 var _this2 = this; 2151 2152 if (event) { 2153 event.preventDefault(); 2154 } 2155 2156 if (!this._isShown || this._isTransitioning) { 2157 return; 2158 } 2159 2160 var hideEvent = $__default["default"].Event(EVENT_HIDE$2); 2161 $__default["default"](this._element).trigger(hideEvent); 2162 2163 if (!this._isShown || hideEvent.isDefaultPrevented()) { 2164 return; 2165 } 2166 2167 this._isShown = false; 2168 var transition = $__default["default"](this._element).hasClass(CLASS_NAME_FADE$4); 2169 2170 if (transition) { 2171 this._isTransitioning = true; 2172 } 2173 2174 this._setEscapeEvent(); 2175 2176 this._setResizeEvent(); 2177 2178 $__default["default"](document).off(EVENT_FOCUSIN); 2179 $__default["default"](this._element).removeClass(CLASS_NAME_SHOW$4); 2180 $__default["default"](this._element).off(EVENT_CLICK_DISMISS$1); 2181 $__default["default"](this._dialog).off(EVENT_MOUSEDOWN_DISMISS); 2182 2183 if (transition) { 2184 var transitionDuration = Util.getTransitionDurationFromElement(this._element); 2185 $__default["default"](this._element).one(Util.TRANSITION_END, function (event) { 2186 return _this2._hideModal(event); 2187 }).emulateTransitionEnd(transitionDuration); 2188 } else { 2189 this._hideModal(); 2190 } 2191 }; 2192 2193 _proto.dispose = function dispose() { 2194 [window, this._element, this._dialog].forEach(function (htmlElement) { 2195 return $__default["default"](htmlElement).off(EVENT_KEY$5); 2196 }); 2197 /** 2198 * `document` has 2 events `EVENT_FOCUSIN` and `EVENT_CLICK_DATA_API` 2199 * Do not move `document` in `htmlElements` array 2200 * It will remove `EVENT_CLICK_DATA_API` event that should remain 2201 */ 2202 2203 $__default["default"](document).off(EVENT_FOCUSIN); 2204 $__default["default"].removeData(this._element, DATA_KEY$5); 2205 this._config = null; 2206 this._element = null; 2207 this._dialog = null; 2208 this._backdrop = null; 2209 this._isShown = null; 2210 this._isBodyOverflowing = null; 2211 this._ignoreBackdropClick = null; 2212 this._isTransitioning = null; 2213 this._scrollbarWidth = null; 2214 }; 2215 2216 _proto.handleUpdate = function handleUpdate() { 2217 this._adjustDialog(); 2218 } // Private 2219 ; 2220 2221 _proto._getConfig = function _getConfig(config) { 2222 config = _extends({}, Default$4, config); 2223 Util.typeCheckConfig(NAME$5, config, DefaultType$4); 2224 return config; 2225 }; 2226 2227 _proto._triggerBackdropTransition = function _triggerBackdropTransition() { 2228 var _this3 = this; 2229 2230 var hideEventPrevented = $__default["default"].Event(EVENT_HIDE_PREVENTED); 2231 $__default["default"](this._element).trigger(hideEventPrevented); 2232 2233 if (hideEventPrevented.isDefaultPrevented()) { 2234 return; 2235 } 2236 2237 var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight; 2238 2239 if (!isModalOverflowing) { 2240 this._element.style.overflowY = 'hidden'; 2241 } 2242 2243 this._element.classList.add(CLASS_NAME_STATIC); 2244 2245 var modalTransitionDuration = Util.getTransitionDurationFromElement(this._dialog); 2246 $__default["default"](this._element).off(Util.TRANSITION_END); 2247 $__default["default"](this._element).one(Util.TRANSITION_END, function () { 2248 _this3._element.classList.remove(CLASS_NAME_STATIC); 2249 2250 if (!isModalOverflowing) { 2251 $__default["default"](_this3._element).one(Util.TRANSITION_END, function () { 2252 _this3._element.style.overflowY = ''; 2253 }).emulateTransitionEnd(_this3._element, modalTransitionDuration); 2254 } 2255 }).emulateTransitionEnd(modalTransitionDuration); 2256 2257 this._element.focus(); 2258 }; 2259 2260 _proto._showElement = function _showElement(relatedTarget) { 2261 var _this4 = this; 2262 2263 var transition = $__default["default"](this._element).hasClass(CLASS_NAME_FADE$4); 2264 var modalBody = this._dialog ? this._dialog.querySelector(SELECTOR_MODAL_BODY) : null; 2265 2266 if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) { 2267 // Don't move modal's DOM position 2268 document.body.appendChild(this._element); 2269 } 2270 2271 this._element.style.display = 'block'; 2272 2273 this._element.removeAttribute('aria-hidden'); 2274 2275 this._element.setAttribute('aria-modal', true); 2276 2277 this._element.setAttribute('role', 'dialog'); 2278 2279 if ($__default["default"](this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) { 2280 modalBody.scrollTop = 0; 2281 } else { 2282 this._element.scrollTop = 0; 2283 } 2284 2285 if (transition) { 2286 Util.reflow(this._element); 2287 } 2288 2289 $__default["default"](this._element).addClass(CLASS_NAME_SHOW$4); 2290 2291 if (this._config.focus) { 2292 this._enforceFocus(); 2293 } 2294 2295 var shownEvent = $__default["default"].Event(EVENT_SHOWN$2, { 2296 relatedTarget: relatedTarget 2297 }); 2298 2299 var transitionComplete = function transitionComplete() { 2300 if (_this4._config.focus) { 2301 _this4._element.focus(); 2302 } 2303 2304 _this4._isTransitioning = false;
2305 $__default["default"](_this4._element).trigger(shownEvent); 2306 }; 2307 2308 if (transition) { 2309 var transitionDuration = Util.getTransitionDurationFromElement(this._dialog); 2310 $__default["default"](this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration); 2311 } else { 2312 transitionComplete(); 2313 } 2314 }; 2315 2316 _proto._enforceFocus = function _enforceFocus() { 2317 var _this5 = this; 2318 2319 $__default["default"](document).off(EVENT_FOCUSIN) // Guard against infinite focus loop 2320 .on(EVENT_FOCUSIN, function (event) { 2321 if (document !== event.target && _this5._element !== event.target && $__default["default"](_this5._element).has(event.target).length === 0) { 2322 _this5._element.focus(); 2323 } 2324 }); 2325 }; 2326 2327 _proto._setEscapeEvent = function _setEscapeEvent() { 2328 var _this6 = this; 2329 2330 if (this._isShown) { 2331 $__default["default"](this._element).on(EVENT_KEYDOWN_DISMISS, function (event) { 2332 if (_this6._config.keyboard && event.which === ESCAPE_KEYCODE) { 2333 event.preventDefault(); 2334 2335 _this6.hide(); 2336 } else if (!_this6._config.keyboard && event.which === ESCAPE_KEYCODE) { 2337 _this6._triggerBackdropTransition(); 2338 } 2339 }); 2340 } else if (!this._isShown) { 2341 $__default["default"](this._element).off(EVENT_KEYDOWN_DISMISS); 2342 } 2343 }; 2344 2345 _proto._setResizeEvent = function _setResizeEvent() { 2346 var _this7 = this; 2347 2348 if (this._isShown) { 2349 $__default["default"](window).on(EVENT_RESIZE, function (event) { 2350 return _this7.handleUpdate(event); 2351 }); 2352 } else { 2353 $__default["default"](window).off(EVENT_RESIZE); 2354 } 2355 }; 2356 2357 _proto._hideModal = function _hideModal() { 2358 var _this8 = this; 2359 2360 this._element.style.display = 'none'; 2361 2362 this._element.setAttribute('aria-hidden', true); 2363 2364 this._element.removeAttribute('aria-modal'); 2365 2366 this._element.removeAttribute('role'); 2367 2368 this._isTransitioning = false; 2369 2370 this._showBackdrop(function () { 2371 $__default["default"](document.body).removeClass(CLASS_NAME_OPEN); 2372 2373 _this8._resetAdjustments(); 2374 2375 _this8._resetScrollbar(); 2376 2377 $__default["default"](_this8._element).trigger(EVENT_HIDDEN$2); 2378 }); 2379 }; 2380 2381 _proto._removeBackdrop = function _removeBackdrop() { 2382 if (this._backdrop) { 2383 $__default["default"](this._backdrop).remove(); 2384 this._backdrop = null; 2385 } 2386 }; 2387 2388 _proto._showBackdrop = function _showBackdrop(callback) { 2389 var _this9 = this; 2390 2391 var animate = $__default["default"](this._element).hasClass(CLASS_NAME_FADE$4) ? CLASS_NAME_FADE$4 : ''; 2392 2393 if (this._isShown && this._config.backdrop) { 2394 this._backdrop = document.createElement('div'); 2395 this._backdrop.className = CLASS_NAME_BACKDROP; 2396 2397 if (animate) { 2398 this._backdrop.classList.add(animate); 2399 } 2400 2401 $__default["default"](this._backdrop).appendTo(document.body); 2402 $__default["default"](this._element).on(EVENT_CLICK_DISMISS$1, function (event) { 2403 if (_this9._ignoreBackdropClick) { 2404 _this9._ignoreBackdropClick = false; 2405 return; 2406 } 2407 2408 if (event.target !== event.currentTarget) { 2409 return; 2410 } 2411 2412 if (_this9._config.backdrop === 'static') { 2413 _this9._triggerBackdropTransition(); 2414 } else { 2415 _this9.hide(); 2416 } 2417 }); 2418 2419 if (animate) { 2420 Util.reflow(this._backdrop); 2421 } 2422 2423 $__default["default"](this._backdrop).addClass(CLASS_NAME_SHOW$4); 2424 2425 if (!callback) { 2426 return; 2427 } 2428 2429 if (!animate) { 2430 callback(); 2431 return; 2432 } 2433 2434 var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop); 2435 $__default["default"](this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration); 2436 } else if (!this._isShown && this._backdrop) { 2437 $__default["default"](this._backdrop).removeClass(CLASS_NAME_SHOW$4); 2438 2439 var callbackRemove = function callbackRemove() { 2440 _this9._removeBackdrop(); 2441 2442 if (callback) { 2443 callback(); 2444 } 2445 }; 2446 2447 if ($__default["default"](this._element).hasClass(CLASS_NAME_FADE$4)) { 2448 var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop); 2449 2450 $__default["default"](this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration); 2451 } else { 2452 callbackRemove(); 2453 } 2454 } else if (callback) { 2455 callback(); 2456 } 2457 } // ---------------------------------------------------------------------- 2458 // the following methods are used to handle overflowing modals 2459 // todo (fat): these should probably be refactored out of modal.js 2460 // ---------------------------------------------------------------------- 2461 ; 2462
2463 _proto._adjustDialog = function _adjustDialog() { 2464 var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight; 2465 2466 if (!this._isBodyOverflowing && isModalOverflowing) { 2467 this._element.style.paddingLeft = this._scrollbarWidth + "px"; 2468 } 2469 2470 if (this._isBodyOverflowing && !isModalOverflowing) { 2471 this._element.style.paddingRight = this._scrollbarWidth + "px"; 2472 } 2473 }; 2474 2475 _proto._resetAdjustments = function _resetAdjustments() { 2476 this._element.style.paddingLeft = ''; 2477 this._element.style.paddingRight = ''; 2478 }; 2479 2480 _proto._checkScrollbar = function _checkScrollbar() { 2481 var rect = document.body.getBoundingClientRect(); 2482 this._isBodyOverflowing = Math.round(rect.left + rect.right) < window.innerWidth; 2483 this._scrollbarWidth = this._getScrollbarWidth(); 2484 }; 2485 2486 _proto._setScrollbar = function _setScrollbar() { 2487 var _this10 = this; 2488 2489 if (this._isBodyOverflowing) { 2490 // Note: DOMNode.style.paddingRight returns the actual value or '' if not set 2491 // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set 2492 var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT)); 2493 var stickyContent = [].slice.call(document.querySelectorAll(SELECTOR_STICKY_CONTENT)); // Adjust fixed content padding 2494 2495 $__default["default"](fixedContent).each(function (index, element) { 2496 var actualPadding = element.style.paddingRight; 2497 var calculatedPadding = $__default["default"](element).css('padding-right'); 2498 $__default["default"](element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px"); 2499 }); // Adjust sticky content margin 2500 2501 $__default["default"](stickyContent).each(function (index, element) { 2502 var actualMargin = element.style.marginRight; 2503 var calculatedMargin = $__default["default"](element).css('margin-right'); 2504 $__default["default"](element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px"); 2505 }); // Adjust body padding 2506 2507 var actualPadding = document.body.style.paddingRight; 2508 var calculatedPadding = $__default["default"](document.body).css('padding-right'); 2509 $__default["default"](document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px"); 2510 } 2511 2512 $__default["default"](document.body).addClass(CLASS_NAME_OPEN); 2513 }; 2514 2515 _proto._resetScrollbar = function _resetScrollbar() { 2516 // Restore fixed content padding 2517 var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT)); 2518 $__default["default"](fixedContent).each(function (index, element) { 2519 var padding = $__default["default"](element).data('padding-right'); 2520 $__default["default"](element).removeData('padding-right'); 2521 element.style.paddingRight = padding ? padding : ''; 2522 }); // Restore sticky content 2523 2524 var elements = [].slice.call(document.querySelectorAll("" + SELECTOR_STICKY_CONTENT)); 2525 $__default["default"](elements).each(function (index, element) { 2526 var margin = $__default["default"](element).data('margin-right'); 2527 2528 if (typeof margin !== 'undefined') { 2529 $__default["default"](element).css('margin-right', margin).removeData('margin-right'); 2530 } 2531 }); // Restore body padding 2532 2533 var padding = $__default["default"](document.body).data('padding-right'); 2534 $__default["default"](document.body).removeData('padding-right'); 2535 document.body.style.paddingRight = padding ? padding : ''; 2536 }; 2537 2538 _proto._getScrollbarWidth = function _getScrollbarWidth() { 2539 // thx d.walsh 2540 var scrollDiv = document.createElement('div'); 2541 scrollDiv.className = CLASS_NAME_SCROLLBAR_MEASURER; 2542 document.body.appendChild(scrollDiv); 2543 var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth; 2544 document.body.removeChild(scrollDiv); 2545 return scrollbarWidth; 2546 } // Static 2547 ; 2548 2549 Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) { 2550 return this.each(function () { 2551 var data = $__default["default"](this).data(DATA_KEY$5); 2552 2553 var _config = _extends({}, Default$4, $__default["default"](this).data(), typeof config === 'object' && config ? config : {}); 2554 2555 if (!data) { 2556 data = new Modal(this, _config); 2557 $__default["default"](this).data(DATA_KEY$5, data); 2558 } 2559 2560 if (typeof config === 'string') { 2561 if (typeof data[config] === 'undefined') {
2562 throw new TypeError("No method named \"" + config + "\""); 2563 } 2564 2565 data[config](relatedTarget); 2566 } else if (_config.show) { 2567 data.show(relatedTarget); 2568 } 2569 }); 2570 }; 2571 2572 _createClass(Modal, null, [{ 2573 key: "VERSION", 2574 get: function get() { 2575 return VERSION$5; 2576 } 2577 }, { 2578 key: "Default", 2579 get: function get() { 2580 return Default$4; 2581 } 2582 }]); 2583 2584 return Modal; 2585 }(); 2586 /** 2587 * Data API implementation 2588 */ 2589 2590 2591 $__default["default"](document).on(EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE$1, function (event) { 2592 var _this11 = this; 2593 2594 var target; 2595 var selector = Util.getSelectorFromElement(this); 2596 2597 if (selector) { 2598 target = document.querySelector(selector); 2599 } 2600 2601 var config = $__default["default"](target).data(DATA_KEY$5) ? 'toggle' : _extends({}, $__default["default"](target).data(), $__default["default"](this).data()); 2602 2603 if (this.tagName === 'A' || this.tagName === 'AREA') { 2604 event.preventDefault(); 2605 } 2606 2607 var $target = $__default["default"](target).one(EVENT_SHOW$2, function (showEvent) { 2608 if (showEvent.isDefaultPrevented()) { 2609 // Only register focus restorer if modal will actually get shown 2610 return; 2611 } 2612 2613 $target.one(EVENT_HIDDEN$2, function () { 2614 if ($__default["default"](_this11).is(':visible')) { 2615 _this11.focus(); 2616 } 2617 }); 2618 }); 2619 2620 Modal._jQueryInterface.call($__default["default"](target), config, this); 2621 }); 2622 /** 2623 * jQuery 2624 */ 2625 2626 $__default["default"].fn[NAME$5] = Modal._jQueryInterface; 2627 $__default["default"].fn[NAME$5].Constructor = Modal; 2628 2629 $__default["default"].fn[NAME$5].noConflict = function () { 2630 $__default["default"].fn[NAME$5] = JQUERY_NO_CONFLICT$5; 2631 return Modal._jQueryInterface; 2632 }; 2633 2634 /** 2635 * -------------------------------------------------------------------------- 2636 * Bootstrap (v4.6.1): tools/sanitizer.js 2637 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 2638 * -------------------------------------------------------------------------- 2639 */ 2640 var uriAttrs = ['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']; 2641 var ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i; 2642 var DefaultWhitelist = { 2643 // Global attributes allowed on any supplied element below. 2644 '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN], 2645 a: ['target', 'href', 'title', 'rel'], 2646 area: [], 2647 b: [], 2648 br: [], 2649 col: [], 2650 code: [], 2651 div: [], 2652 em: [], 2653 hr: [], 2654 h1: [], 2655 h2: [], 2656 h3: [], 2657 h4: [], 2658 h5: [], 2659 h6: [], 2660 i: [], 2661 img: ['src', 'srcset', 'alt', 'title', 'width', 'height'], 2662 li: [], 2663 ol: [], 2664 p: [], 2665 pre: [], 2666 s: [], 2667 small: [], 2668 span: [], 2669 sub: [], 2670 sup: [], 2671 strong: [], 2672 u: [], 2673 ul: [] 2674 }; 2675 /** 2676 * A pattern that recognizes a commonly useful subset of URLs that are safe. 2677 * 2678 * Shoutout to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts 2679 */ 2680 2681 var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i; 2682 /** 2683 * A pattern that matches safe data URLs. Only matches image, video and audio types. 2684 * 2685 * Shoutout to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts 2686 */ 2687 2688 var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i; 2689 2690 function allowedAttribute(attr, allowedAttributeList) { 2691 var attrName = attr.nodeName.toLowerCase(); 2692 2693 if (allowedAttributeList.indexOf(attrName) !== -1) { 2694 if (uriAttrs.indexOf(attrName) !== -1) { 2695 return Boolean(SAFE_URL_PATTERN.test(attr.nodeValue) || DATA_URL_PATTERN.test(attr.nodeValue)); 2696 } 2697 2698 return true; 2699 } 2700 2701 var regExp = allowedAttributeList.filter(function (attrRegex) { 2702 return attrRegex instanceof RegExp; 2703 }); // Check if a regular expression validates the attribute. 2704 2705 for (var i = 0, len = regExp.length; i < len; i++) { 2706 if (regExp[i].test(attrName)) { 2707 return true; 2708 } 2709 } 2710 2711 return false;
2712 } 2713 2714 function sanitizeHtml(unsafeHtml, whiteList, sanitizeFn) { 2715 if (unsafeHtml.length === 0) { 2716 return unsafeHtml; 2717 } 2718 2719 if (sanitizeFn && typeof sanitizeFn === 'function') { 2720 return sanitizeFn(unsafeHtml); 2721 } 2722 2723 var domParser = new window.DOMParser(); 2724 var createdDocument = domParser.parseFromString(unsafeHtml, 'text/html'); 2725 var whitelistKeys = Object.keys(whiteList); 2726 var elements = [].slice.call(createdDocument.body.querySelectorAll('*')); 2727 2728 var _loop = function _loop(i, len) { 2729 var el = elements[i]; 2730 var elName = el.nodeName.toLowerCase(); 2731 2732 if (whitelistKeys.indexOf(el.nodeName.toLowerCase()) === -1) { 2733 el.parentNode.removeChild(el); 2734 return "continue"; 2735 } 2736 2737 var attributeList = [].slice.call(el.attributes); // eslint-disable-next-line unicorn/prefer-spread 2738 2739 var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []); 2740 attributeList.forEach(function (attr) { 2741 if (!allowedAttribute(attr, whitelistedAttributes)) { 2742 el.removeAttribute(attr.nodeName); 2743 } 2744 }); 2745 }; 2746 2747 for (var i = 0, len = elements.length; i < len; i++) { 2748 var _ret = _loop(i); 2749 2750 if (_ret === "continue") continue; 2751 } 2752 2753 return createdDocument.body.innerHTML; 2754 } 2755 2756 /** 2757 * Constants 2758 */ 2759 2760 var NAME$4 = 'tooltip'; 2761 var VERSION$4 = '4.6.1'; 2762 var DATA_KEY$4 = 'bs.tooltip'; 2763 var EVENT_KEY$4 = "." + DATA_KEY$4; 2764 var JQUERY_NO_CONFLICT$4 = $__default["default"].fn[NAME$4]; 2765 var CLASS_PREFIX$1 = 'bs-tooltip'; 2766 var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g'); 2767 var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn']; 2768 var CLASS_NAME_FADE$3 = 'fade'; 2769 var CLASS_NAME_SHOW$3 = 'show'; 2770 var HOVER_STATE_SHOW = 'show'; 2771 var HOVER_STATE_OUT = 'out'; 2772 var SELECTOR_TOOLTIP_INNER = '.tooltip-inner'; 2773 var SELECTOR_ARROW = '.arrow'; 2774 var TRIGGER_HOVER = 'hover'; 2775 var TRIGGER_FOCUS = 'focus'; 2776 var TRIGGER_CLICK = 'click'; 2777 var TRIGGER_MANUAL = 'manual'; 2778 var AttachmentMap = { 2779 AUTO: 'auto', 2780 TOP: 'top', 2781 RIGHT: 'right', 2782 BOTTOM: 'bottom', 2783 LEFT: 'left' 2784 }; 2785 var Default$3 = { 2786 animation: true, 2787 template: '<div class="tooltip" role="tooltip">' + '<div class="arrow"></div>' + '<div class="tooltip-inner"></div></div>', 2788 trigger: 'hover focus', 2789 title: '', 2790 delay: 0, 2791 html: false, 2792 selector: false, 2793 placement: 'top', 2794 offset: 0, 2795 container: false, 2796 fallbackPlacement: 'flip', 2797 boundary: 'scrollParent', 2798 customClass: '', 2799 sanitize: true, 2800 sanitizeFn: null, 2801 whiteList: DefaultWhitelist, 2802 popperConfig: null 2803 }; 2804 var DefaultType$3 = { 2805 animation: 'boolean', 2806 template: 'string', 2807 title: '(string|element|function)', 2808 trigger: 'string', 2809 delay: '(number|object)', 2810 html: 'boolean', 2811 selector: '(string|boolean)', 2812 placement: '(string|function)', 2813 offset: '(number|string|function)', 2814 container: '(string|element|boolean)', 2815 fallbackPlacement: '(string|array)', 2816 boundary: '(string|element)', 2817 customClass: '(string|function)', 2818 sanitize: 'boolean', 2819 sanitizeFn: '(null|function)', 2820 whiteList: 'object', 2821 popperConfig: '(null|object)' 2822 }; 2823 var Event$1 = { 2824 HIDE: "hide" + EVENT_KEY$4, 2825 HIDDEN: "hidden" + EVENT_KEY$4, 2826 SHOW: "show" + EVENT_KEY$4, 2827 SHOWN: "shown" + EVENT_KEY$4, 2828 INSERTED: "inserted" + EVENT_KEY$4, 2829 CLICK: "click" + EVENT_KEY$4, 2830 FOCUSIN: "focusin" + EVENT_KEY$4, 2831 FOCUSOUT: "focusout" + EVENT_KEY$4, 2832 MOUSEENTER: "mouseenter" + EVENT_KEY$4, 2833 MOUSELEAVE: "mouseleave" + EVENT_KEY$4 2834 }; 2835 /** 2836 * Class definition 2837 */ 2838 2839 var Tooltip = /*#__PURE__*/function () { 2840 function Tooltip(element, config) { 2841 if (typeof Popper__default["default"] === 'undefined') { 2842 throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)'); 2843 } // Private 2844 2845 2846 this._isEnabled = true; 2847 this._timeout = 0; 2848 this._hoverState = ''; 2849 this._activeTrigger = {}; 2850 this._popper = null; // Protected 2851 2852 this.element = element; 2853 this.config = this._getConfig(config); 2854 this.tip = null; 2855 2856 this._setListeners(); 2857 } // Getters 2858 2859 2860 var _proto = Tooltip.prototype; 2861 2862 // Public 2863 _proto.enable = function enable() { 2864 this._isEnabled = true; 2865 }; 2866 2867 _proto.disable = function disable() { 2868 this._isEnabled = false;
2869 }; 2870 2871 _proto.toggleEnabled = function toggleEnabled() { 2872 this._isEnabled = !this._isEnabled; 2873 }; 2874 2875 _proto.toggle = function toggle(event) { 2876 if (!this._isEnabled) { 2877 return; 2878 } 2879 2880 if (event) { 2881 var dataKey = this.constructor.DATA_KEY; 2882 var context = $__default["default"](event.currentTarget).data(dataKey); 2883 2884 if (!context) { 2885 context = new this.constructor(event.currentTarget, this._getDelegateConfig()); 2886 $__default["default"](event.currentTarget).data(dataKey, context); 2887 } 2888 2889 context._activeTrigger.click = !context._activeTrigger.click; 2890 2891 if (context._isWithActiveTrigger()) { 2892 context._enter(null, context); 2893 } else { 2894 context._leave(null, context); 2895 } 2896 } else { 2897 if ($__default["default"](this.getTipElement()).hasClass(CLASS_NAME_SHOW$3)) { 2898 this._leave(null, this); 2899 2900 return; 2901 } 2902 2903 this._enter(null, this); 2904 } 2905 }; 2906 2907 _proto.dispose = function dispose() { 2908 clearTimeout(this._timeout); 2909 $__default["default"].removeData(this.element, this.constructor.DATA_KEY); 2910 $__default["default"](this.element).off(this.constructor.EVENT_KEY); 2911 $__default["default"](this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler); 2912 2913 if (this.tip) { 2914 $__default["default"](this.tip).remove(); 2915 } 2916 2917 this._isEnabled = null; 2918 this._timeout = null; 2919 this._hoverState = null; 2920 this._activeTrigger = null; 2921 2922 if (this._popper) { 2923 this._popper.destroy(); 2924 } 2925 2926 this._popper = null; 2927 this.element = null; 2928 this.config = null; 2929 this.tip = null; 2930 }; 2931 2932 _proto.show = function show() { 2933 var _this = this; 2934 2935 if ($__default["default"](this.element).css('display') === 'none') { 2936 throw new Error('Please use show on visible elements'); 2937 } 2938 2939 var showEvent = $__default["default"].Event(this.constructor.Event.SHOW); 2940 2941 if (this.isWithContent() && this._isEnabled) { 2942 $__default["default"](this.element).trigger(showEvent); 2943 var shadowRoot = Util.findShadowRoot(this.element); 2944 var isInTheDom = $__default["default"].contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element); 2945 2946 if (showEvent.isDefaultPrevented() || !isInTheDom) { 2947 return; 2948 } 2949 2950 var tip = this.getTipElement(); 2951 var tipId = Util.getUID(this.constructor.NAME);
2952 tip.setAttribute('id', tipId); 2953 this.element.setAttribute('aria-describedby', tipId); 2954 this.setContent(); 2955 2956 if (this.config.animation) { 2957 $__default["default"](tip).addClass(CLASS_NAME_FADE$3); 2958 } 2959 2960 var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement; 2961 2962 var attachment = this._getAttachment(placement); 2963 2964 this.addAttachmentClass(attachment); 2965 2966 var container = this._getContainer(); 2967 2968 $__default["default"](tip).data(this.constructor.DATA_KEY, this); 2969 2970 if (!$__default["default"].contains(this.element.ownerDocument.documentElement, this.tip)) { 2971 $__default["default"](tip).appendTo(container); 2972 } 2973 2974 $__default["default"](this.element).trigger(this.constructor.Event.INSERTED); 2975 this._popper = new Popper__default["default"](this.element, tip, this._getPopperConfig(attachment)); 2976 $__default["default"](tip).addClass(CLASS_NAME_SHOW$3); 2977 $__default["default"](tip).addClass(this.config.customClass); // If this is a touch-enabled device we add extra 2978 // empty mouseover listeners to the body's immediate children; 2979 // only needed because of broken event delegation on iOS 2980 // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html 2981 2982 if ('ontouchstart' in document.documentElement) { 2983 $__default["default"](document.body).children().on('mouseover', null, $__default["default"].noop); 2984 } 2985 2986 var complete = function complete() { 2987 if (_this.config.animation) { 2988 _this._fixTransition(); 2989 } 2990 2991 var prevHoverState = _this._hoverState; 2992 _this._hoverState = null; 2993 $__default["default"](_this.element).trigger(_this.constructor.Event.SHOWN); 2994 2995 if (prevHoverState === HOVER_STATE_OUT) { 2996 _this._leave(null, _this); 2997 } 2998 }; 2999 3000 if ($__default["default"](this.tip).hasClass(CLASS_NAME_FADE$3)) { 3001 var transitionDuration = Util.getTransitionDurationFromElement(this.tip); 3002 $__default["default"](this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); 3003 } else { 3004 complete(); 3005 } 3006 } 3007 }; 3008 3009 _proto.hide = function hide(callback) { 3010 var _this2 = this; 3011 3012 var tip = this.getTipElement(); 3013 var hideEvent = $__default["default"].Event(this.constructor.Event.HIDE); 3014 3015 var complete = function complete() { 3016 if (_this2._hoverState !== HOVER_STATE_SHOW && tip.parentNode) { 3017 tip.parentNode.removeChild(tip); 3018 } 3019 3020 _this2._cleanTipClass(); 3021 3022 _this2.element.removeAttribute('aria-describedby'); 3023 3024 $__default["default"](_this2.element).trigger(_this2.constructor.Event.HIDDEN); 3025 3026 if (_this2._popper !== null) { 3027 _this2._popper.destroy(); 3028 } 3029 3030 if (callback) { 3031 callback(); 3032 } 3033 }; 3034 3035 $__default["default"](this.element).trigger(hideEvent); 3036 3037 if (hideEvent.isDefaultPrevented()) { 3038 return; 3039 } 3040 3041 $__default["default"](tip).removeClass(CLASS_NAME_SHOW$3); // If this is a touch-enabled device we remove the extra 3042 // empty mouseover listeners we added for iOS support 3043 3044 if ('ontouchstart' in document.documentElement) { 3045 $__default["default"](document.body).children().off('mouseover', null, $__default["default"].noop); 3046 } 3047 3048 this._activeTrigger[TRIGGER_CLICK] = false; 3049 this._activeTrigger[TRIGGER_FOCUS] = false; 3050 this._activeTrigger[TRIGGER_HOVER] = false; 3051 3052 if ($__default["default"](this.tip).hasClass(CLASS_NAME_FADE$3)) { 3053 var transitionDuration = Util.getTransitionDurationFromElement(tip); 3054 $__default["default"](tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); 3055 } else { 3056 complete(); 3057 } 3058 3059 this._hoverState = ''; 3060 }; 3061 3062 _proto.update = function update() { 3063 if (this._popper !== null) { 3064 this._popper.scheduleUpdate(); 3065 } 3066 } // Protected 3067 ; 3068 3069 _proto.isWithContent = function isWithContent() { 3070 return Boolean(this.getTitle()); 3071 }; 3072 3073 _proto.addAttachmentClass = function addAttachmentClass(attachment) { 3074 $__default["default"](this.getTipElement()).addClass(CLASS_PREFIX$1 + "-" + attachment); 3075 }; 3076 3077 _proto.getTipElement = function getTipElement() { 3078 this.tip = this.tip || $__default["default"](this.config.template)[0]; 3079 return this.tip; 3080 }; 3081 3082 _proto.setContent = function setContent() { 3083 var tip = this.getTipElement(); 3084 this.setElementContent($__default["default"](tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle()); 3085 $__default["default"](tip).removeClass(CLASS_NAME_FADE$3 + " " + CLASS_NAME_SHOW$3); 3086 }; 3087 3088 _proto.setElementContent = function setElementContent($element, content) { 3089 if (typeof content === 'object' && (content.nodeType || content.jquery)) { 3090 // Content is a DOM node or a jQuery 3091 if (this.config.html) { 3092 if (!$__default["default"](content).parent().is($element)) { 3093 $element.empty().append(content); 3094 } 3095 } else { 3096 $element.text($__default["default"](content).text()); 3097 } 3098 3099 return; 3100 } 3101 3102 if (this.config.html) { 3103 if (this.config.sanitize) { 3104 content = sanitizeHtml(content, this.config.whiteList, this.config.sanitizeFn); 3105 } 3106 3107 $element.html(content); 3108 } else { 3109 $element.text(content); 3110 } 3111 }; 3112 3113 _proto.getTitle = function getTitle() { 3114 var title = this.element.getAttribute('data-original-title'); 3115 3116 if (!title) { 3117 title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title; 3118 } 3119 3120 return title; 3121 } // Private 3122 ; 3123 3124 _proto._getPopperConfig = function _getPopperConfig(attachment) { 3125 var _this3 = this; 3126 3127 var defaultBsConfig = { 3128 placement: attachment, 3129 modifiers: { 3130 offset: this._getOffset(), 3131 flip: { 3132 behavior: this.config.fallbackPlacement 3133 }, 3134 arrow: { 3135 element: SELECTOR_ARROW 3136 }, 3137 preventOverflow: {
3138 boundariesElement: this.config.boundary 3139 } 3140 }, 3141 onCreate: function onCreate(data) { 3142 if (data.originalPlacement !== data.placement) { 3143 _this3._handlePopperPlacementChange(data); 3144 } 3145 }, 3146 onUpdate: function onUpdate(data) { 3147 return _this3._handlePopperPlacementChange(data); 3148 } 3149 }; 3150 return _extends({}, defaultBsConfig, this.config.popperConfig); 3151 }; 3152 3153 _proto._getOffset = function _getOffset() { 3154 var _this4 = this; 3155 3156 var offset = {}; 3157 3158 if (typeof this.config.offset === 'function') { 3159 offset.fn = function (data) { 3160 data.offsets = _extends({}, data.offsets, _this4.config.offset(data.offsets, _this4.element)); 3161 return data; 3162 }; 3163 } else { 3164 offset.offset = this.config.offset; 3165 } 3166 3167 return offset; 3168 }; 3169 3170 _proto._getContainer = function _getContainer() { 3171 if (this.config.container === false) { 3172 return document.body; 3173 } 3174 3175 if (Util.isElement(this.config.container)) { 3176 return $__default["default"](this.config.container); 3177 } 3178 3179 return $__default["default"](document).find(this.config.container); 3180 }; 3181 3182 _proto._getAttachment = function _getAttachment(placement) { 3183 return AttachmentMap[placement.toUpperCase()]; 3184 }; 3185 3186 _proto._setListeners = function _setListeners() { 3187 var _this5 = this; 3188 3189 var triggers = this.config.trigger.split(' '); 3190 triggers.forEach(function (trigger) { 3191 if (trigger === 'click') { 3192 $__default["default"](_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) { 3193 return _this5.toggle(event); 3194 }); 3195 } else if (trigger !== TRIGGER_MANUAL) { 3196 var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN; 3197 var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT; 3198 $__default["default"](_this5.element).on(eventIn, _this5.config.selector, function (event) { 3199 return _this5._enter(event); 3200 }).on(eventOut, _this5.config.selector, function (event) { 3201 return _this5._leave(event); 3202 }); 3203 } 3204 }); 3205 3206 this._hideModalHandler = function () { 3207 if (_this5.element) { 3208 _this5.hide(); 3209 } 3210 }; 3211 3212 $__default["default"](this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler); 3213 3214 if (this.config.selector) { 3215 this.config = _extends({}, this.config, { 3216 trigger: 'manual', 3217 selector: '' 3218 }); 3219 } else { 3220 this._fixTitle(); 3221 } 3222 }; 3223 3224 _proto._fixTitle = function _fixTitle() { 3225 var titleType = typeof this.element.getAttribute('data-original-title'); 3226 3227 if (this.element.getAttribute('title') || titleType !== 'string') { 3228 this.element.setAttribute('data-original-title', this.element.getAttribute('title') || ''); 3229 this.element.setAttribute('title', ''); 3230 } 3231 }; 3232 3233 _proto._enter = function _enter(event, context) { 3234 var dataKey = this.constructor.DATA_KEY; 3235 context = context || $__default["default"](event.currentTarget).data(dataKey); 3236 3237 if (!context) { 3238 context = new this.constructor(event.currentTarget, this._getDelegateConfig()); 3239 $__default["default"](event.currentTarget).data(dataKey, context); 3240 } 3241 3242 if (event) { 3243 context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true; 3244 } 3245 3246 if ($__default["default"](context.getTipElement()).hasClass(CLASS_NAME_SHOW$3) || context._hoverState === HOVER_STATE_SHOW) { 3247 context._hoverState = HOVER_STATE_SHOW; 3248 return; 3249 } 3250 3251 clearTimeout(context._timeout); 3252 context._hoverState = HOVER_STATE_SHOW; 3253 3254 if (!context.config.delay || !context.config.delay.show) { 3255 context.show(); 3256 return; 3257 } 3258 3259 context._timeout = setTimeout(function () { 3260 if (context._hoverState === HOVER_STATE_SHOW) { 3261 context.show(); 3262 } 3263 }, context.config.delay.show); 3264 }; 3265 3266 _proto._leave = function _leave(event, context) { 3267 var dataKey = this.constructor.DATA_KEY; 3268 context = context || $__default["default"](event.currentTarget).data(dataKey); 3269 3270 if (!context) { 3271 context = new this.constructor(event.currentTarget, this._getDelegateConfig()); 3272 $__default["default"](event.currentTarget).data(dataKey, context); 3273 } 3274 3275 if (event) { 3276 context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = false;
3277 } 3278 3279 if (context._isWithActiveTrigger()) { 3280 return; 3281 } 3282 3283 clearTimeout(context._timeout); 3284 context._hoverState = HOVER_STATE_OUT; 3285 3286 if (!context.config.delay || !context.config.delay.hide) { 3287 context.hide(); 3288 return; 3289 } 3290 3291 context._timeout = setTimeout(function () { 3292 if (context._hoverState === HOVER_STATE_OUT) { 3293 context.hide(); 3294 } 3295 }, context.config.delay.hide); 3296 }; 3297 3298 _proto._isWithActiveTrigger = function _isWithActiveTrigger() { 3299 for (var trigger in this._activeTrigger) { 3300 if (this._activeTrigger[trigger]) { 3301 return true; 3302 } 3303 } 3304 3305 return false; 3306 }; 3307 3308 _proto._getConfig = function _getConfig(config) { 3309 var dataAttributes = $__default["default"](this.element).data(); 3310 Object.keys(dataAttributes).forEach(function (dataAttr) { 3311 if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) { 3312 delete dataAttributes[dataAttr]; 3313 } 3314 }); 3315 config = _extends({}, this.constructor.Default, dataAttributes, typeof config === 'object' && config ? config : {}); 3316 3317 if (typeof config.delay === 'number') { 3318 config.delay = { 3319 show: config.delay, 3320 hide: config.delay 3321 }; 3322 } 3323 3324 if (typeof config.title === 'number') { 3325 config.title = config.title.toString(); 3326 } 3327 3328 if (typeof config.content === 'number') { 3329 config.content = config.content.toString(); 3330 } 3331 3332 Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType); 3333 3334 if (config.sanitize) { 3335 config.template = sanitizeHtml(config.template, config.whiteList, config.sanitizeFn); 3336 } 3337 3338 return config; 3339 }; 3340 3341 _proto._getDelegateConfig = function _getDelegateConfig() { 3342 var config = {}; 3343 3344 if (this.config) { 3345 for (var key in this.config) { 3346 if (this.constructor.Default[key] !== this.config[key]) { 3347 config[key] = this.config[key]; 3348 } 3349 } 3350 } 3351 3352 return config; 3353 }; 3354 3355 _proto._cleanTipClass = function _cleanTipClass() { 3356 var $tip = $__default["default"](this.getTipElement()); 3357 var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX$1); 3358 3359 if (tabClass !== null && tabClass.length) { 3360 $tip.removeClass(tabClass.join('')); 3361 } 3362 }; 3363 3364 _proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) { 3365 this.tip = popperData.instance.popper; 3366 3367 this._cleanTipClass(); 3368 3369 this.addAttachmentClass(this._getAttachment(popperData.placement)); 3370 }; 3371 3372 _proto._fixTransition = function _fixTransition() { 3373 var tip = this.getTipElement(); 3374 var initConfigAnimation = this.config.animation; 3375 3376 if (tip.getAttribute('x-placement') !== null) { 3377 return; 3378 } 3379 3380 $__default["default"](tip).removeClass(CLASS_NAME_FADE$3); 3381 this.config.animation = false; 3382 this.hide(); 3383 this.show(); 3384 this.config.animation = initConfigAnimation; 3385 } // Static 3386 ; 3387 3388 Tooltip._jQueryInterface = function _jQueryInterface(config) { 3389 return this.each(function () { 3390 var $element = $__default["default"](this); 3391 var data = $element.data(DATA_KEY$4); 3392 3393 var _config = typeof config === 'object' && config; 3394 3395 if (!data && /dispose|hide/.test(config)) { 3396 return; 3397 } 3398 3399 if (!data) { 3400 data = new Tooltip(this, _config); 3401 $element.data(DATA_KEY$4, data); 3402 } 3403 3404 if (typeof config === 'string') { 3405 if (typeof data[config] === 'undefined') { 3406 throw new TypeError("No method named \"" + config + "\""); 3407 } 3408 3409 data[config](); 3410 } 3411 }); 3412 }; 3413 3414 _createClass(Tooltip, null, [{ 3415 key: "VERSION", 3416 get: function get() { 3417 return VERSION$4; 3418 } 3419 }, { 3420 key: "Default", 3421 get: function get() { 3422 return Default$3; 3423 } 3424 }, { 3425 key: "NAME", 3426 get: function get() { 3427 return NAME$4; 3428 } 3429 }, { 3430 key: "DATA_KEY", 3431 get: function get() { 3432 return DATA_KEY$4; 3433 } 3434 }, {
3435 key: "Event", 3436 get: function get() { 3437 return Event$1; 3438 } 3439 }, { 3440 key: "EVENT_KEY", 3441 get: function get() { 3442 return EVENT_KEY$4; 3443 } 3444 }, { 3445 key: "DefaultType", 3446 get: function get() { 3447 return DefaultType$3; 3448 } 3449 }]); 3450 3451 return Tooltip; 3452 }(); 3453 /** 3454 * jQuery 3455 */ 3456 3457 3458 $__default["default"].fn[NAME$4] = Tooltip._jQueryInterface; 3459 $__default["default"].fn[NAME$4].Constructor = Tooltip; 3460 3461 $__default["default"].fn[NAME$4].noConflict = function () { 3462 $__default["default"].fn[NAME$4] = JQUERY_NO_CONFLICT$4; 3463 return Tooltip._jQueryInterface; 3464 }; 3465 3466 /** 3467 * Constants 3468 */ 3469 3470 var NAME$3 = 'popover'; 3471 var VERSION$3 = '4.6.1'; 3472 var DATA_KEY$3 = 'bs.popover'; 3473 var EVENT_KEY$3 = "." + DATA_KEY$3; 3474 var JQUERY_NO_CONFLICT$3 = $__default["default"].fn[NAME$3]; 3475 var CLASS_PREFIX = 'bs-popover'; 3476 var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); 3477 var CLASS_NAME_FADE$2 = 'fade'; 3478 var CLASS_NAME_SHOW$2 = 'show'; 3479 var SELECTOR_TITLE = '.popover-header'; 3480 var SELECTOR_CONTENT = '.popover-body'; 3481 3482 var Default$2 = _extends({}, Tooltip.Default, { 3483 placement: 'right', 3484 trigger: 'click', 3485 content: '', 3486 template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>' 3487 }); 3488 3489 var DefaultType$2 = _extends({}, Tooltip.DefaultType, { 3490 content: '(string|element|function)' 3491 }); 3492 3493 var Event = { 3494 HIDE: "hide" + EVENT_KEY$3, 3495 HIDDEN: "hidden" + EVENT_KEY$3, 3496 SHOW: "show" + EVENT_KEY$3, 3497 SHOWN: "shown" + EVENT_KEY$3, 3498 INSERTED: "inserted" + EVENT_KEY$3, 3499 CLICK: "click" + EVENT_KEY$3, 3500 FOCUSIN: "focusin" + EVENT_KEY$3, 3501 FOCUSOUT: "focusout" + EVENT_KEY$3, 3502 MOUSEENTER: "mouseenter" + EVENT_KEY$3, 3503 MOUSELEAVE: "mouseleave" + EVENT_KEY$3 3504 }; 3505 /** 3506 * Class definition 3507 */ 3508 3509 var Popover = /*#__PURE__*/function (_Tooltip) { 3510 _inheritsLoose(Popover, _Tooltip); 3511 3512 function Popover() { 3513 return _Tooltip.apply(this, arguments) || this; 3514 } 3515 3516 var _proto = Popover.prototype; 3517 3518 // Overrides 3519 _proto.isWithContent = function isWithContent() { 3520 return this.getTitle() || this._getContent(); 3521 }; 3522 3523 _proto.addAttachmentClass = function addAttachmentClass(attachment) { 3524 $__default["default"](this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment); 3525 }; 3526 3527 _proto.getTipElement = function getTipElement() { 3528 this.tip = this.tip || $__default["default"](this.config.template)[0]; 3529 return this.tip; 3530 }; 3531 3532 _proto.setContent = function setContent() { 3533 var $tip = $__default["default"](this.getTipElement()); // We use append for html objects to maintain js events 3534 3535 this.setElementContent($tip.find(SELECTOR_TITLE), this.getTitle()); 3536 3537 var content = this._getContent(); 3538 3539 if (typeof content === 'function') { 3540 content = content.call(this.element); 3541 } 3542 3543 this.setElementContent($tip.find(SELECTOR_CONTENT), content); 3544 $tip.removeClass(CLASS_NAME_FADE$2 + " " + CLASS_NAME_SHOW$2); 3545 } // Private 3546 ; 3547 3548 _proto._getContent = function _getContent() { 3549 return this.element.getAttribute('data-content') || this.config.content; 3550 }; 3551 3552 _proto._cleanTipClass = function _cleanTipClass() { 3553 var $tip = $__default["default"](this.getTipElement()); 3554 var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX); 3555 3556 if (tabClass !== null && tabClass.length > 0) { 3557 $tip.removeClass(tabClass.join('')); 3558 } 3559 } // Static 3560 ; 3561 3562 Popover._jQueryInterface = function _jQueryInterface(config) { 3563 return this.each(function () { 3564 var data = $__default["default"](this).data(DATA_KEY$3); 3565 3566 var _config = typeof config === 'object' ? config : null; 3567 3568 if (!data && /dispose|hide/.test(config)) { 3569 return; 3570 } 3571 3572 if (!data) { 3573 data = new Popover(this, _config); 3574 $__default["default"](this).data(DATA_KEY$3, data); 3575 } 3576 3577 if (typeof config === 'string') { 3578 if (typeof data[config] === 'undefined') {
3579 throw new TypeError("No method named \"" + config + "\""); 3580 } 3581 3582 data[config](); 3583 } 3584 }); 3585 }; 3586 3587 _createClass(Popover, null, [{ 3588 key: "VERSION", 3589 get: // Getters 3590 function get() { 3591 return VERSION$3; 3592 } 3593 }, { 3594 key: "Default", 3595 get: function get() { 3596 return Default$2; 3597 } 3598 }, { 3599 key: "NAME", 3600 get: function get() { 3601 return NAME$3; 3602 } 3603 }, { 3604 key: "DATA_KEY", 3605 get: function get() { 3606 return DATA_KEY$3; 3607 } 3608 }, { 3609 key: "Event", 3610 get: function get() { 3611 return Event; 3612 } 3613 }, { 3614 key: "EVENT_KEY", 3615 get: function get() { 3616 return EVENT_KEY$3; 3617 } 3618 }, { 3619 key: "DefaultType", 3620 get: function get() { 3621 return DefaultType$2; 3622 } 3623 }]); 3624 3625 return Popover; 3626 }(Tooltip); 3627 /** 3628 * jQuery 3629 */ 3630 3631 3632 $__default["default"].fn[NAME$3] = Popover._jQueryInterface; 3633 $__default["default"].fn[NAME$3].Constructor = Popover; 3634 3635 $__default["default"].fn[NAME$3].noConflict = function () { 3636 $__default["default"].fn[NAME$3] = JQUERY_NO_CONFLICT$3; 3637 return Popover._jQueryInterface; 3638 }; 3639 3640 /** 3641 * Constants 3642 */ 3643 3644 var NAME$2 = 'scrollspy'; 3645 var VERSION$2 = '4.6.1'; 3646 var DATA_KEY$2 = 'bs.scrollspy'; 3647 var EVENT_KEY$2 = "." + DATA_KEY$2; 3648 var DATA_API_KEY$1 = '.data-api'; 3649 var JQUERY_NO_CONFLICT$2 = $__default["default"].fn[NAME$2]; 3650 var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item'; 3651 var CLASS_NAME_ACTIVE$1 = 'active'; 3652 var EVENT_ACTIVATE = "activate" + EVENT_KEY$2; 3653 var EVENT_SCROLL = "scroll" + EVENT_KEY$2; 3654 var EVENT_LOAD_DATA_API = "load" + EVENT_KEY$2 + DATA_API_KEY$1; 3655 var METHOD_OFFSET = 'offset'; 3656 var METHOD_POSITION = 'position'; 3657 var SELECTOR_DATA_SPY = '[data-spy="scroll"]'; 3658 var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group'; 3659 var SELECTOR_NAV_LINKS = '.nav-link'; 3660 var SELECTOR_NAV_ITEMS = '.nav-item'; 3661 var SELECTOR_LIST_ITEMS = '.list-group-item'; 3662 var SELECTOR_DROPDOWN$1 = '.dropdown'; 3663 var SELECTOR_DROPDOWN_ITEMS = '.dropdown-item'; 3664 var SELECTOR_DROPDOWN_TOGGLE$1 = '.dropdown-toggle'; 3665 var Default$1 = { 3666 offset: 10, 3667 method: 'auto', 3668 target: '' 3669 }; 3670 var DefaultType$1 = { 3671 offset: 'number', 3672 method: 'string', 3673 target: '(string|element)' 3674 }; 3675 /** 3676 * Class definition 3677 */ 3678 3679 var ScrollSpy = /*#__PURE__*/function () { 3680 function ScrollSpy(element, config) { 3681 var _this = this; 3682 3683 this._element = element; 3684 this._scrollElement = element.tagName === 'BODY' ? window : element; 3685 this._config = this._getConfig(config); 3686 this._selector = this._config.target + " " + SELECTOR_NAV_LINKS + "," + (this._config.target + " " + SELECTOR_LIST_ITEMS + ",") + (this._config.target + " " + SELECTOR_DROPDOWN_ITEMS); 3687 this._offsets = []; 3688 this._targets = []; 3689 this._activeTarget = null; 3690 this._scrollHeight = 0; 3691 $__default["default"](this._scrollElement).on(EVENT_SCROLL, function (event) { 3692 return _this._process(event); 3693 }); 3694 this.refresh(); 3695 3696 this._process(); 3697 } // Getters 3698 3699 3700 var _proto = ScrollSpy.prototype; 3701 3702 // Public 3703 _proto.refresh = function refresh() { 3704 var _this2 = this; 3705 3706 var autoMethod = this._scrollElement === this._scrollElement.window ? METHOD_OFFSET : METHOD_POSITION; 3707 var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method; 3708 var offsetBase = offsetMethod === METHOD_POSITION ? this._getScrollTop() : 0; 3709 this._offsets = []; 3710 this._targets = []; 3711 this._scrollHeight = this._getScrollHeight(); 3712 var targets = [].slice.call(document.querySelectorAll(this._selector)); 3713 targets.map(function (element) { 3714 var target; 3715 var targetSelector = Util.getSelectorFromElement(element); 3716 3717 if (targetSelector) { 3718 target = document.querySelector(targetSelector); 3719 } 3720 3721 if (target) { 3722 var targetBCR = target.getBoundingClientRect(); 3723 3724 if (targetBCR.width || targetBCR.height) { 3725 // TODO (fat): remove sketch reliance on jQuery position/offset 3726 return [$__default["default"](target)[offsetMethod]().top + offsetBase, targetSelector]; 3727 } 3728 } 3729 3730 return null; 3731 }).filter(function (item) { 3732 return item; 3733 }).sort(function (a, b) { 3734 return a[0] - b[0]; 3735 }
3735).forEach(function (item) { 3736 _this2._offsets.push(item[0]); 3737 3738 _this2._targets.push(item[1]); 3739 }); 3740 }; 3741 3742 _proto.dispose = function dispose() { 3743 $__default["default"].removeData(this._element, DATA_KEY$2); 3744 $__default["default"](this._scrollElement).off(EVENT_KEY$2); 3745 this._element = null; 3746 this._scrollElement = null; 3747 this._config = null; 3748 this._selector = null; 3749 this._offsets = null; 3750 this._targets = null; 3751 this._activeTarget = null; 3752 this._scrollHeight = null; 3753 } // Private 3754 ; 3755 3756 _proto._getConfig = function _getConfig(config) { 3757 config = _extends({}, Default$1, typeof config === 'object' && config ? config : {}); 3758 3759 if (typeof config.target !== 'string' && Util.isElement(config.target)) { 3760 var id = $__default["default"](config.target).attr('id'); 3761 3762 if (!id) { 3763 id = Util.getUID(NAME$2); 3764 $__default["default"](config.target).attr('id', id); 3765 } 3766 3767 config.target = "#" + id; 3768 } 3769 3770 Util.typeCheckConfig(NAME$2, config, DefaultType$1); 3771 return config; 3772 }; 3773 3774 _proto._getScrollTop = function _getScrollTop() { 3775 return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop; 3776 }; 3777 3778 _proto._getScrollHeight = function _getScrollHeight() { 3779 return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight); 3780 }; 3781 3782 _proto._getOffsetHeight = function _getOffsetHeight() { 3783 return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height; 3784 }; 3785 3786 _proto._process = function _process() { 3787 var scrollTop = this._getScrollTop() + this._config.offset; 3788 3789 var scrollHeight = this._getScrollHeight(); 3790 3791 var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight(); 3792 3793 if (this._scrollHeight !== scrollHeight) { 3794 this.refresh(); 3795 } 3796 3797 if (scrollTop >= maxScroll) { 3798 var target = this._targets[this._targets.length - 1]; 3799 3800 if (this._activeTarget !== target) { 3801 this._activate(target); 3802 } 3803 3804 return; 3805 } 3806 3807 if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) { 3808 this._activeTarget = null; 3809 3810 this._clear(); 3811 3812 return; 3813 } 3814 3815 for (var i = this._offsets.length; i--;) { 3816 var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]); 3817 3818 if (isActiveTarget) { 3819 this._activate(this._targets[i]); 3820 } 3821 } 3822 }; 3823 3824 _proto._activate = function _activate(target) { 3825 this._activeTarget = target; 3826 3827 this._clear(); 3828 3829 var queries = this._selector.split(',').map(function (selector) { 3830 return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]"; 3831 }); 3832 3833 var $link = $__default["default"]([].slice.call(document.querySelectorAll(queries.join(',')))); 3834 3835 if ($link.hasClass(CLASS_NAME_DROPDOWN_ITEM)) { 3836 $link.closest(SELECTOR_DROPDOWN$1).find(SELECTOR_DROPDOWN_TOGGLE$1).addClass(CLASS_NAME_ACTIVE$1); 3837 $link.addClass(CLASS_NAME_ACTIVE$1); 3838 } else { 3839 // Set triggered link as active 3840 $link.addClass(CLASS_NAME_ACTIVE$1); // Set triggered links parents as active 3841 // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor 3842 3843 $link.parents(SELECTOR_NAV_LIST_GROUP$1).prev(SELECTOR_NAV_LINKS + ", " + SELECTOR_LIST_ITEMS).addClass(CLASS_NAME_ACTIVE$1); // Handle special case when .nav-link is inside .nav-item 3844 3845 $link.parents(SELECTOR_NAV_LIST_GROUP$1).prev(SELECTOR_NAV_ITEMS).children(SELECTOR_NAV_LINKS).addClass(CLASS_NAME_ACTIVE$1); 3846 } 3847 3848 $__default["default"](this._scrollElement).trigger(EVENT_ACTIVATE, { 3849 relatedTarget: target 3850 }); 3851 }; 3852 3853 _proto._clear = function _clear() { 3854 [].slice.call(document.querySelectorAll(this._selector)).filter(function (node) { 3855 return node.classList.contains(CLASS_NAME_ACTIVE$1); 3856 }
3856).forEach(function (node) { 3857 return node.classList.remove(CLASS_NAME_ACTIVE$1); 3858 }); 3859 } // Static 3860 ; 3861 3862 ScrollSpy._jQueryInterface = function _jQueryInterface(config) { 3863 return this.each(function () { 3864 var data = $__default["default"](this).data(DATA_KEY$2); 3865 3866 var _config = typeof config === 'object' && config; 3867 3868 if (!data) { 3869 data = new ScrollSpy(this, _config); 3870 $__default["default"](this).data(DATA_KEY$2, data); 3871 } 3872 3873 if (typeof config === 'string') { 3874 if (typeof data[config] === 'undefined') { 3875 throw new TypeError("No method named \"" + config + "\""); 3876 } 3877 3878 data[config](); 3879 } 3880 }); 3881 }; 3882 3883 _createClass(ScrollSpy, null, [{ 3884 key: "VERSION", 3885 get: function get() { 3886 return VERSION$2; 3887 } 3888 }, { 3889 key: "Default", 3890 get: function get() { 3891 return Default$1; 3892 } 3893 }]); 3894 3895 return ScrollSpy; 3896 }(); 3897 /** 3898 * Data API implementation 3899 */ 3900 3901 3902 $__default["default"](window).on(EVENT_LOAD_DATA_API, function () { 3903 var scrollSpys = [].slice.call(document.querySelectorAll(SELECTOR_DATA_SPY)); 3904 var scrollSpysLength = scrollSpys.length; 3905 3906 for (var i = scrollSpysLength; i--;) { 3907 var $spy = $__default["default"](scrollSpys[i]); 3908 3909 ScrollSpy._jQueryInterface.call($spy, $spy.data()); 3910 } 3911 }); 3912 /** 3913 * jQuery 3914 */ 3915 3916 $__default["default"].fn[NAME$2] = ScrollSpy._jQueryInterface; 3917 $__default["default"].fn[NAME$2].Constructor = ScrollSpy; 3918 3919 $__default["default"].fn[NAME$2].noConflict = function () { 3920 $__default["default"].fn[NAME$2] = JQUERY_NO_CONFLICT$2; 3921 return ScrollSpy._jQueryInterface; 3922 }; 3923 3924 /** 3925 * Constants 3926 */ 3927 3928 var NAME$1 = 'tab'; 3929 var VERSION$1 = '4.6.1'; 3930 var DATA_KEY$1 = 'bs.tab'; 3931 var EVENT_KEY$1 = "." + DATA_KEY$1; 3932 var DATA_API_KEY = '.data-api'; 3933 var JQUERY_NO_CONFLICT$1 = $__default["default"].fn[NAME$1]; 3934 var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu'; 3935 var CLASS_NAME_ACTIVE = 'active'; 3936 var CLASS_NAME_DISABLED = 'disabled'; 3937 var CLASS_NAME_FADE$1 = 'fade'; 3938 var CLASS_NAME_SHOW$1 = 'show'; 3939 var EVENT_HIDE$1 = "hide" + EVENT_KEY$1; 3940 var EVENT_HIDDEN$1 = "hidden" + EVENT_KEY$1; 3941 var EVENT_SHOW$1 = "show" + EVENT_KEY$1; 3942 var EVENT_SHOWN$1 = "shown" + EVENT_KEY$1; 3943 var EVENT_CLICK_DATA_API = "click" + EVENT_KEY$1 + DATA_API_KEY; 3944 var SELECTOR_DROPDOWN = '.dropdown'; 3945 var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group'; 3946 var SELECTOR_ACTIVE = '.active'; 3947 var SELECTOR_ACTIVE_UL = '> li > .active'; 3948 var SELECTOR_DATA_TOGGLE = '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]'; 3949 var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle'; 3950 var SELECTOR_DROPDOWN_ACTIVE_CHILD = '> .dropdown-menu .active'; 3951 /** 3952 * Class definition 3953 */ 3954 3955 var Tab = /*#__PURE__*/function () { 3956 function Tab(element) { 3957 this._element = element; 3958 } // Getters 3959 3960 3961 var _proto = Tab.prototype; 3962 3963 // Public 3964 _proto.show = function show() { 3965 var _this = this; 3966 3967 if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $__default["default"](this._element).hasClass(CLASS_NAME_ACTIVE) || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED)) { 3968 return; 3969 } 3970 3971 var target; 3972 var previous; 3973 var listElement = $__default["default"](this._element).closest(SELECTOR_NAV_LIST_GROUP)[0]; 3974 var selector = Util.getSelectorFromElement(this._element); 3975 3976 if (listElement) { 3977 var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE; 3978 previous = $__default["default"].makeArray($__default["default"](listElement).find(itemSelector)); 3979 previous = previous[previous.length - 1]; 3980 } 3981 3982 var hideEvent = $__default["default"].Event(EVENT_HIDE$1, { 3983 relatedTarget: this._element 3984 }); 3985 var showEvent = $__default["default"].Event(EVENT_SHOW$1, { 3986 relatedTarget: previous 3987 }); 3988 3989 if (previous) { 3990 $__default["default"](previous).trigger(hideEvent); 3991 } 3992 3993 $__default["default"](this._element).trigger(showEvent); 3994 3995 if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) { 3996 return; 3997 } 3998 3999 if (selector) { 4000 target = document.querySelector(selector); 4001 } 4002 4003 this._activate(this._element, listElement); 4004 4005 var complete = function complete() { 4006 var hiddenEvent = $__default["default"].Event(EVENT_HIDDEN$1, { 4007 relatedTarget: _this._element 4008 }); 4009 var shownEvent = $__default["default"].Event(EVENT_SHOWN$1, { 4010 relatedTarget: previous 4011 }); 4012 $__default["default"](previous).trigger(hiddenEvent); 4013 $__default["default"](_this._element).trigger(shownEvent); 4014 }; 4015 4016 if (target) { 4017 this._activate(target, target.parentNode, complete); 4018 } else { 4019 complete(); 4020 } 4021 }; 4022 4023 _proto.dispose = function dispose() { 4024 $__default["default"].removeData(this._element, DATA_KEY$1); 4025 this._element = null; 4026 } // Private 4027 ; 4028 4029 _proto._activate = function _activate(element, container, callback) { 4030 var _this2 = this; 4031 4032 var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $__default["default"](container).find(SELECTOR_ACTIVE_UL) : $__default["default"](container).children(SELECTOR_ACTIVE); 4033 var active = activeElements[0]; 4034 var isTransitioning = callback && active && $__default["default"](active).hasClass(CLASS_NAME_FADE$1); 4035 4036 var complete = function complete() { 4037 return _this2._transitionComplete(element, active, callback); 4038 }; 4039 4040 if (active && isTransitioning) { 4041 var transitionDuration = Util.getTransitionDurationFromElement(active); 4042 $__default["default"](active).removeClass(CLASS_NAME_SHOW$1).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); 4043 } else { 4044 complete(); 4045 } 4046 }; 4047 4048 _proto._transitionComplete = function _transitionComplete(element, active, callback) { 4049 if (active) { 4050 $__default["default"](active).removeClass(CLASS_NAME_ACTIVE);
4051 var dropdownChild = $__default["default"](active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0]; 4052 4053 if (dropdownChild) { 4054 $__default["default"](dropdownChild).removeClass(CLASS_NAME_ACTIVE); 4055 } 4056 4057 if (active.getAttribute('role') === 'tab') { 4058 active.setAttribute('aria-selected', false); 4059 } 4060 } 4061 4062 $__default["default"](element).addClass(CLASS_NAME_ACTIVE); 4063 4064 if (element.getAttribute('role') === 'tab') { 4065 element.setAttribute('aria-selected', true); 4066 } 4067 4068 Util.reflow(element); 4069 4070 if (element.classList.contains(CLASS_NAME_FADE$1)) { 4071 element.classList.add(CLASS_NAME_SHOW$1); 4072 } 4073 4074 var parent = element.parentNode; 4075 4076 if (parent && parent.nodeName === 'LI') { 4077 parent = parent.parentNode; 4078 } 4079 4080 if (parent && $__default["default"](parent).hasClass(CLASS_NAME_DROPDOWN_MENU)) { 4081 var dropdownElement = $__default["default"](element).closest(SELECTOR_DROPDOWN)[0]; 4082 4083 if (dropdownElement) { 4084 var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(SELECTOR_DROPDOWN_TOGGLE)); 4085 $__default["default"](dropdownToggleList).addClass(CLASS_NAME_ACTIVE); 4086 } 4087 4088 element.setAttribute('aria-expanded', true); 4089 } 4090 4091 if (callback) { 4092 callback(); 4093 } 4094 } // Static 4095 ; 4096 4097 Tab._jQueryInterface = function _jQueryInterface(config) { 4098 return this.each(function () { 4099 var $this = $__default["default"](this); 4100 var data = $this.data(DATA_KEY$1); 4101 4102 if (!data) { 4103 data = new Tab(this); 4104 $this.data(DATA_KEY$1, data); 4105 } 4106 4107 if (typeof config === 'string') { 4108 if (typeof data[config] === 'undefined') { 4109 throw new TypeError("No method named \"" + config + "\""); 4110 } 4111 4112 data[config](); 4113 } 4114 }); 4115 }; 4116 4117 _createClass(Tab, null, [{ 4118 key: "VERSION", 4119 get: function get() { 4120 return VERSION$1; 4121 } 4122 }]); 4123 4124 return Tab; 4125 }(); 4126 /** 4127 * Data API implementation 4128 */ 4129 4130 4131 $__default["default"](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) { 4132 event.preventDefault(); 4133 4134 Tab._jQueryInterface.call($__default["default"](this), 'show'); 4135 }); 4136 /** 4137 * jQuery 4138 */ 4139 4140 $__default["default"].fn[NAME$1] = Tab._jQueryInterface; 4141 $__default["default"].fn[NAME$1].Constructor = Tab; 4142 4143 $__default["default"].fn[NAME$1].noConflict = function () { 4144 $__default["default"].fn[NAME$1] = JQUERY_NO_CONFLICT$1; 4145 return Tab._jQueryInterface; 4146 }; 4147 4148 /** 4149 * Constants 4150 */ 4151 4152 var NAME = 'toast'; 4153 var VERSION = '4.6.1'; 4154 var DATA_KEY = 'bs.toast'; 4155 var EVENT_KEY = "." + DATA_KEY; 4156 var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME]; 4157 var CLASS_NAME_FADE = 'fade'; 4158 var CLASS_NAME_HIDE = 'hide'; 4159 var CLASS_NAME_SHOW = 'show'; 4160 var CLASS_NAME_SHOWING = 'showing'; 4161 var EVENT_CLICK_DISMISS = "click.dismiss" + EVENT_KEY; 4162 var EVENT_HIDE = "hide" + EVENT_KEY; 4163 var EVENT_HIDDEN = "hidden" + EVENT_KEY; 4164 var EVENT_SHOW = "show" + EVENT_KEY; 4165 var EVENT_SHOWN = "shown" + EVENT_KEY; 4166 var SELECTOR_DATA_DISMISS = '[data-dismiss="toast"]'; 4167 var Default = { 4168 animation: true, 4169 autohide: true, 4170 delay: 500 4171 }; 4172 var DefaultType = { 4173 animation: 'boolean', 4174 autohide: 'boolean', 4175 delay: 'number' 4176 }; 4177 /** 4178 * Class definition 4179 */ 4180 4181 var Toast = /*#__PURE__*/function () { 4182 function Toast(element, config) { 4183 this._element = element; 4184 this._config = this._getConfig(config); 4185 this._timeout = null; 4186 4187 this._setListeners(); 4188 } // Getters 4189 4190 4191 var _proto = Toast.prototype; 4192 4193 // Public 4194 _proto.show = function show() { 4195 var _this = this; 4196 4197 var showEvent = $__default["default"].Event(EVENT_SHOW); 4198 $__default["default"](this._element).trigger(showEvent); 4199 4200 if (showEvent.isDefaultPrevented()) { 4201 return; 4202 } 4203 4204 this._clearTimeout(); 4205 4206 if (this._config.animation) { 4207 this._element.classList.add(CLASS_NAME_FADE); 4208 } 4209 4210 var complete = function complete() { 4211 _this._element.classList.remove(CLASS_NAME_SHOWING); 4212 4213 _this._element.classList.add(CLASS_NAME_SHOW); 4214 4215 $__default["default"](_this._element).trigger(EVENT_SHOWN); 4216 4217 if (_this._config.autohide) { 4218 _this._timeout = setTimeout(function () { 4219 _this.hide(); 4220 }, _this._config.delay); 4221 } 4222 }; 4223 4224 this._element.classList.remove(CLASS_NAME_HIDE); 4225 4226 Util.reflow(this._element); 4227 4228 this._element.classList.add(CLASS_NAME_SHOWING); 4229 4230 if (this._config.animation) { 4231 var transitionDuration = Util.getTransitionDurationFromElement(this._element); 4232 $__default["default"](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); 4233 } else { 4234 complete(); 4235 } 4236 }; 4237 4238 _proto.hide = function hide() { 4239 if (!this._element.classList.contains(CLASS_NAME_SHOW)) { 4240 return; 4241 } 4242 4243 var hideEvent = $__default["default"].Event(EVENT_HIDE); 4244 $__default["default"](this._element).trigger(hideEvent); 4245 4246 if (hideEvent.isDefaultPrevented()) { 4247 return; 4248 } 4249 4250 this._close(); 4251 }; 4252 4253 _proto.dispose = function dispose() { 4254 this._clearTimeout(); 4255 4256 if (this._element.classList.contains(CLASS_NAME_SHOW)) { 4257 this._element.classList.remove(CLASS_NAME_SHOW); 4258 } 4259 4260 $__default["default"](this._element).off(EVENT_CLICK_DISMISS); 4261 $__default["default"].removeData(this._element, DATA_KEY); 4262 this._element = null; 4263 this._config = null; 4264 } // Private 4265 ; 4266 4267 _proto._getConfig = function _getConfig(config) { 4268 config = _extends({}, Default, $__default["default"](this._element).data(), typeof config === 'object' && config ? config : {}); 4269 Util.typeCheckConfig(NAME, config, this.constructor.DefaultType); 4270 return config; 4271 }; 4272 4273 _proto._setListeners = function _setListeners() { 4274 var _this2 = this; 4275 4276 $__default["default"](this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function () { 4277 return _this2.hide(); 4278 }); 4279 }; 4280 4281 _proto._close = function _close() { 4282 var _this3 = this; 4283 4284 var complete = function complete() { 4285 _this3._element.classList.add(CLASS_NAME_HIDE); 4286 4287 $__default["default"](_this3._element).trigger(EVENT_HIDDEN); 4288 }; 4289 4290 this._element.classList.remove(CLASS_NAME_SHOW); 4291 4292 if (this._config.animation) { 4293 var transitionDuration = Util.getTransitionDurationFromElement(this._element); 4294 $__default["default"](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); 4295 } else { 4296 complete(); 4297 } 4298 }; 4299 4300 _proto._clearTimeout = function _clearTimeout() { 4301 clearTimeout(this._timeout); 4302 this._timeout = null; 4303 } // Static 4304 ; 4305 4306 Toast._jQueryInterface = function _jQueryInterface(config) { 4307 return this.each(function () { 4308 var $element = $__default["default"](this); 4309 var data = $element.data(DATA_KEY); 4310 4311 var _config = typeof config === 'object' && config; 4312 4313 if (!data) { 4314 data = new Toast(this, _config); 4315 $element.data(DATA_KEY, data); 4316 } 4317 4318 if (typeof config === 'string') { 4319 if (typeof data[config] === 'undefined') {
4320 throw new TypeError("No method named \"" + config + "\""); 4321 } 4322 4323 data[config](this); 4324 } 4325 }); 4326 }; 4327 4328 _createClass(Toast, null, [{ 4329 key: "VERSION", 4330 get: function get() { 4331 return VERSION; 4332 } 4333 }, { 4334 key: "DefaultType", 4335 get: function get() { 4336 return DefaultType; 4337 } 4338 }, { 4339 key: "Default", 4340 get: function get() { 4341 return Default; 4342 } 4343 }]); 4344 4345 return Toast; 4346 }(); 4347 /** 4348 * jQuery 4349 */ 4350 4351 4352 $__default["default"].fn[NAME] = Toast._jQueryInterface; 4353 $__default["default"].fn[NAME].Constructor = Toast; 4354 4355 $__default["default"].fn[NAME].noConflict = function () { 4356 $__default["default"].fn[NAME] = JQUERY_NO_CONFLICT; 4357 return Toast._jQueryInterface; 4358 }; 4359 4360 exports.Alert = Alert; 4361 exports.Button = Button; 4362 exports.Carousel = Carousel; 4363 exports.Collapse = Collapse; 4364 exports.Dropdown = Dropdown; 4365 exports.Modal = Modal; 4366 exports.Popover = Popover; 4367 exports.Scrollspy = ScrollSpy; 4368 exports.Tab = Tab; 4369 exports.Toast = Toast; 4370 exports.Tooltip = Tooltip; 4371 exports.Util = Util; 4372 4373 Object.defineProperty(exports, '__esModule', { value: true }); 4374 4375})); 4376//# sourceMappingURL=bootstrap.js.map 4377 4378/* 4379 * jQuery mmenu v5.5.3 4380 * @requires jQuery 1.7.0 or later 4381 * 4382 * mmenu.frebsite.nl 4383 * 4384 * Copyright (c) Fred Heusschen 4385 * www.frebsite.nl 4386 * 4387 * Licensed under the MIT license: 4388 * http://en.wikipedia.org/wiki/MIT_License 4389 */ 4390!function(e){function n(){e[t].glbl||(l={$wndw:e(window),$html:e("html"),$body:e("body")},a={},i={},r={}
4390,e.each([a,i,r],function(e,n){n.add=function(e){e=e.split(" ");for(var t=0,s=e.length;s>t;t++)n[e[t]]=n.mm(e[t])}}),a.mm=function(e){return"mm-"+e},a.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),a.umm=function(e){return"mm-"==e.slice(0,3)&&(e=e.slice(3)),e},i.mm=function(e){return"mm-"+e},i.add("parent sub"),r.mm=function(e){return e+".mm"},r.add("transitionend webkitTransitionEnd mousedown mouseup touchstart touchmove touchend click keydown"),e[t]._c=a,e[t]._d=i,e[t]._e=r,e[t].glbl=l)}var t="mmenu",s="5.5.3";if(!(e[t]&&e[t].version>s)){e[t]=function(e,n,t){this.$menu=e,this._api=["bind","init","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=n,this.conf=t,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var s=this.$pnls.children();return this._initAddons(),this.init(s),"function"==typeof this.___debug&&this.___debug(),this},e[t].version=s,e[t].addons={},e[t].uniqueId=0,e[t].defaults={extensions:[],navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},e[t].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},e[t].prototype={init:function(e){e=e.not("."+a.nopanel),e=this._initPanels(e),this.trigger("init",e),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(e){this.$menu.find("."+a.listview).children().removeClass(a.selected),e.addClass(a.selected),this.trigger("setSelected",e)},openPanel:function(n){var s=n.parent();if(s.hasClass(a.vertical)){var i=s.parents("."+a.subopened);if(i.length)return this.openPanel(i.first());s.addClass(a.opened)}else{if(n.hasClass(a.current))return;var r=this.$pnls.children("."+a.panel),l=r.filter("."+a.current);r.removeClass(a.highest).removeClass(a.current).not(n).not(l).not("."+a.vertical).addClass(a.hidden),e[t].support.csstransitions||l.addClass(a.hidden),n.hasClass(a.opened)?n.nextAll("."+a.opened).addClass(a.highest).removeClass(a.opened).removeClass(a.subopened):(n.addClass(a.highest),l.addClass(a.subopened)),n.removeClass(a.hidden).addClass(a.current),setTimeout(function(){n.removeClass(a.subopened).addClass(a.opened)},this.conf.openingInterval)}this.trigger("openPanel",n)},closePanel:function(e){var n=e.parent();n.hasClass(a.vertical)&&(n.removeClass(a.opened),this.trigger("closePanel",e))},closeAllPanels:function(){this.$menu.find("."+a.listview).children().removeClass(a.selected).filter("."+a.vertical).removeClass(a.opened);var e=this.$pnls.children("."+a.panel),n=e.first();this.$pnls.children("."+a.panel).not(n).removeClass(a.subopened).removeClass(a.opened).removeClass(a.current).removeClass(a.highest).addClass(a.hidden),this.openPanel(n)},togglePanel:function(e){var n=e.parent();n.hasClass(a.vertical)&&this[n.hasClass(a.opened)?"closePanel":"openPanel"](e)},getInstance:function(){return this},bind:function(e,n){this.cbck[e]=this.cbck[e]||[],this.cbck[e].push(n)},trigger:function(){var e=this,n=Array.prototype.slice.call(arguments),t=n.shift();if(this.cbck[t])for(var s=0,a=this.cbck[t].length;a>s;s++)this.cbck[t][s].apply(e,n)},_initMenu:function(){this.opts.offCanvas&&this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){e(this).attr("id",a.mm(e(this).attr("id")))})),this.$menu.contents().each(function(){3==e(this)[0].nodeType&&e(this).remove()}),this.$pnls=e('<div class="'+a.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.parent().addClass(a.wrapper);var n=[a.menu];this.opts.slidingSubmenus||n.push(a.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&n.push(this.opts.extensions),this.$menu.addClass(n.join(" "))},_initPanels:function(n){var t=this,s=this.__findAddBack(n,"ul, ol");this.__refactorClass(s,this.conf.classNames.inset,"inset").addClass(a.nolistview+" "+a.nopanel),s.not("."+a.nolistview).addClass(a.listview);var r=this.__findAddBack(n,"."+a.listview).children();this.__refactorClass(r,this.conf.classNames.selected,"selected"),this.__refactorClass(r,this.conf.classNames.divider,"divider"),this.__refactorClass(r,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(n,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel");var l=e(),d=n.add(n.find("."+a.panel)).add(this.__findAddBack(n,"."+a.listview).children().children(this.conf.panelNodetype)).not("."+a.nopanel);this.__refactorClass(d,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||d.addClass(a.vertical),d.each(function(){var n=e(this),s=n;n.is("ul, ol")?(n.wrap('<div class="'+a.panel+'" />'),s=n.parent()):s.addClass(a.panel);var i=n.attr("id");n.removeAttr("id"),s.attr("id",i||t.__getUniqueId()),n.hasClass(a.vertical)&&(n.removeClass(t.conf.classNames.vertical),s.add(s.parent()).addClass(a.vertical)),l=l.add(s)});var o=e("."+a.panel,this.$menu);l.each(function(){var n=e(this),s=n.parent(),r=s.children("a, span").first();if(s.is("."+a.panels)||(s.data(i.sub,n),n.data(i.parent,s)),!s.children("."+a.next).length&&s.parent().is("."+a.listview)){var l=n.attr("id"),d=e('<a class="'+a.next+'" href="#'+l+'" data-target="#'+l+'" />').insertBefore(r);r.is("span")&&d.addClass(a.fullsubopen)}if(!n.children("."+a.navbar).length&&!s.hasClass(a.vertical)){if(s.parent().is("."+a.listview))var s=s.closest("."+a.panel);else var r=s.closest("."+a.panel).find('a[href="#'+n.attr("id")+'"]').first(),s=r.closest("."+a.panel);var o=e('<div class="'+a.navbar+'" />');if(s.length){var l=s.attr("id");switch(t.opts.navbar.titleLink){case"anchor":_url=r.attr("href");break;case"panel":case"parent":_url="#"+l;break;case"none":default:_url=!1}o.append('<a class="'+a.btn+" "+a.prev+'" href="#'+l+'" data-target="#'+l+'" />').append(e('<a class="'+a.title+'"'+(_url?' href="'+_url+'"':"")+" />").text(r.text())).prependTo(n),t.opts.navbar.add&&n.addClass(a.hasnavbar)}else t.opts.navbar.title&&(o.append('<a class="'+a.title+'">'+t.opts.navbar.title+"</a>").prependTo(n),t.opts.navbar.add&&n.addClass(a.hasnavbar))}});var c=this.__findAddBack(n,"."+a.listview).children("."+a.selected).removeClass(a.selected).last(
4390).addClass(a.selected);c.add(c.parentsUntil("."+a.menu,"li")).filter("."+a.vertical).addClass(a.opened).end().not("."+a.vertical).each(function(){e(this).parentsUntil("."+a.menu,"."+a.panel).not("."+a.vertical).first().addClass(a.opened).parentsUntil("."+a.menu,"."+a.panel).not("."+a.vertical).first().addClass(a.opened).addClass(a.subopened)}),c.children("."+a.panel).not("."+a.vertical).addClass(a.opened).parentsUntil("."+a.menu,"."+a.panel).not("."+a.vertical).first().addClass(a.opened).addClass(a.subopened);var h=o.filter("."+a.opened);return h.length||(h=l.first()),h.addClass(a.opened).last().addClass(a.current),l.not("."+a.vertical).not(h.last()).addClass(a.hidden).end().appendTo(this.$pnls),l},_initAnchors:function(){var n=this;l.$body.on(r.click+"-oncanvas","a[href]",function(s){var i=e(this),r=!1,l=n.$menu.find(i).length;for(var d in e[t].addons)if(r=e[t].addons[d].clickAnchor.call(n,i,l))break;if(!r&&l){var o=i.attr("href");if(o.length>1&&"#"==o.slice(0,1))try{var c=e(o,n.$menu);c.is("."+a.panel)&&(r=!0,n[i.parent().hasClass(a.vertical)?"togglePanel":"openPanel"](c))}catch(h){}}if(r&&s.preventDefault(),!r&&l&&i.is("."+a.listview+" > li > a")&&!i.is('[rel="external"]')&&!i.is('[target="_blank"]')){n.__valueOrFn(n.opts.onClick.setSelected,i)&&n.setSelected(e(s.target).parent());var p=n.__valueOrFn(n.opts.onClick.preventDefault,i,"#"==o.slice(0,1));p&&s.preventDefault(),n.__valueOrFn(n.opts.onClick.close,i,p)&&n.close()}})},_initAddons:function(){for(var n in e[t].addons)e[t].addons[n].add.call(this),e[t].addons[n].add=function(){};for(var n in e[t].addons)e[t].addons[n].setup.call(this)},__api:function(){var n=this,t={};return e.each(this._api,function(){var e=this;t[e]=function(){var s=n[e].apply(n,arguments);return"undefined"==typeof s?t:s}}),t},__valueOrFn:function(e,n,t){return"function"==typeof e?e.call(n[0]):"undefined"==typeof e&&"undefined"!=typeof t?t:e},__refactorClass:function(e,n,t){return e.filter("."+n).removeClass(n).addClass(a[t])},__findAddBack:function(e,n){return e.find(n).add(e.filter(n))},__filterListItems:function(e){return e.not("."+a.divider).not("."+a.hidden)},__transitionend:function(e,n,t){var s=!1,a=function(){s||n.call(e[0]),s=!0};e.one(r.transitionend,a),e.one(r.webkitTransitionEnd,a),setTimeout(a,1.1*t)},__getUniqueId:function(){return a.mm(e[t].uniqueId++)}},e.fn[t]=function(s,a){return n(),s=e.extend(!0,{},e[t].defaults,s),a=e.extend(!0,{},e[t].configuration,a),this.each(function(){var n=e(this);if(!n.data(t)){var i=new e[t](n,s,a);n.data(t,i.__api())}})},e[t].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints,csstransitions:function(){if("undefined"!=typeof Modernizr&&"undefined"!=typeof Modernizr.csstransitions)return Modernizr.csstransitions;var e=document.body||document.documentElement,n=e.style,t="transition";if("string"==typeof n[t])return!0;var s=["Moz","webkit","Webkit","Khtml","O","ms"];t=t.charAt(0).toUpperCase()+t.substr(1);for(var a=0;a<s.length;a++)if("string"==typeof n[s[a]+t])return!0;return!1}()};var a,i,r,l}}(jQuery); 4391/* 4392 * jQuery mmenu offCanvas addon 4393 * mmenu.frebsite.nl 4394 * 4395 * Copyright (c) Fred Heusschen 4396 */ 4397!function(e){var t="mmenu",o="offCanvas";e[t].addons[o]={setup:function(){if(this.opts[o]){var s=this.opts[o],i=this.conf[o];a=e[t].glbl,this._api=e.merge(this._api,["open","close","setPage"]),("top"==s.position||"bottom"==s.position)&&(s.zposition="front"),"string"!=typeof i.pageSelector&&(i.pageSelector="> "+i.pageNodetype),a.$allMenus=(a.$allMenus||e()).add(this.$menu),this.vars.opened=!1;var r=[n.offcanvas];"left"!=s.position&&r.push(n.mm(s.position)),"back"!=s.zposition&&r.push(n.mm(s.zposition)),this.$menu.addClass(r.join(" ")).parent().removeClass(n.wrapper),this.setPage(a.$page),this._initBlocker(),this["_initWindow_"+o](),this.$menu[i.menuInjectMethod+"To"](i.menuWrapperSelector)}},add:function(){n=e[t]._c,s=e[t]._d,i=e[t]._e,n.add("offcanvas slideout blocking modal background opening blocker page"),s.add("style"),i.add("resize")},clickAnchor:function(e){if(!this.opts[o])return!1;var t=this.$menu.attr("id");if(t&&t.length&&(this.conf.clone&&(t=n.umm(t)),e.is('[href="#'+t+'"]')))return this.open(),!0;if(a.$page){var t=a.$page.first().attr("id");return t&&t.length&&e.is('[href="#'+t+'"]')?(this.close(),!0):!1}}},e[t].defaults[o]={position:"left",zposition:"back",blockUI:!0,moveBackgroun
4397d:!0},e[t].configuration[o]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuWrapperSelector:"body",menuInjectMethod:"prepend"},e[t].prototype.open=function(){if(!this.vars.opened){var e=this;this._openSetup(),setTimeout(function(){e._openFinish()},this.conf.openingInterval),this.trigger("open")}},e[t].prototype._openSetup=function(){var t=this,r=this.opts[o];this.closeAllOthers(),a.$page.each(function(){e(this).data(s.style,e(this).attr("style")||"")}),a.$wndw.trigger(i.resize+"-"+o,[!0]);var p=[n.opened];r.blockUI&&p.push(n.blocking),"modal"==r.blockUI&&p.push(n.modal),r.moveBackground&&p.push(n.background),"left"!=r.position&&p.push(n.mm(this.opts[o].position)),"back"!=r.zposition&&p.push(n.mm(this.opts[o].zposition)),this.opts.extensions&&p.push(this.opts.extensions),a.$html.addClass(p.join(" ")),setTimeout(function(){t.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(n.current+" "+n.opened)},e[t].prototype._openFinish=function(){var e=this;this.__transitionend(a.$page.first(),function(){e.trigger("opened")},this.conf.transitionDuration),a.$html.addClass(n.opening),this.trigger("opening")},e[t].prototype.close=function(){if(this.vars.opened){var t=this;this.__transitionend(a.$page.first(),function(){t.$menu.removeClass(n.current).removeClass(n.opened),a.$html.removeClass(n.opened).removeClass(n.blocking).removeClass(n.modal).removeClass(n.background).removeClass(n.mm(t.opts[o].position)).removeClass(n.mm(t.opts[o].zposition)),t.opts.extensions&&a.$html.removeClass(t.opts.extensions),a.$page.each(function(){e(this).attr("style",e(this).data(s.style))}),t.vars.opened=!1,t.trigger("closed")},this.conf.transitionDuration),a.$html.removeClass(n.opening),this.trigger("close"),this.trigger("closing")}},e[t].prototype.closeAllOthers=function(){a.$allMenus.not(this.$menu).each(function(){var o=e(this).data(t);o&&o.close&&o.close()})},e[t].prototype.setPage=function(t){var s=this,i=this.conf[o];t&&t.length||(t=a.$body.find(i.pageSelector),i.noPageSelector.length&&(t=t.not(i.noPageSelector.join(", "))),t.length>1&&i.wrapPageIfNeeded&&(t=t.wrapAll("<"+this.conf[o].pageNodetype+" />").parent())),t.each(function(){e(this).attr("id",e(this).attr("id")||s.__getUniqueId())}),t.addClass(n.page+" "+n.slideout),a.$page=t,this.trigger("setPage",t)},e[t].prototype["_initWindow_"+o]=function(){a.$wndw.off(i.keydown+"-"+o).on(i.keydown+"-"+o,function(e){return a.$html.hasClass(n.opened)&&9==e.keyCode?(e.preventDefault(),!1):void 0});var e=0;a.$wndw.off(i.resize+"-"+o).on(i.resize+"-"+o,function(t,o){if(1==a.$page.length&&(o||a.$html.hasClass(n.opened))){var s=a.$wndw.height();(o||s!=e)&&(e=s,a.$page.css("minHeight",s))}})},e[t].prototype._initBlocker=function(){var t=this;this.opts[o].blockUI&&(a.$blck||(a.$blck=e('<div id="'+n.blocker+'" class="'+n.slideout+'" />')),a.$blck.appendTo(a.$body).off(i.touchstart+"-"+o+" "+i.touchmove+"-"+o).on(i.touchstart+"-"+o+" "+i.touchmove+"-"+o,function(e){e.preventDefault(),e.stopPropagation(),a.$blck.trigger(i.mousedown+"-"+o)}).off(i.mousedown+"-"+o).on(i.mousedown+"-"+o,function(e){e.preventDefault(),a.$html.hasClass(n.modal)||(t.closeAllOthers(),t.close())}))};var n,s,i,a}(jQuery); 4398/* 4399 * jQuery mmenu autoHeight addon 4400 * mmenu.frebsite.nl 4401 * 4402 * Copyright (c) Fred Heusschen 4403 */ 4404!function(t){var e="mmenu",s="autoHeight";t[e].addons[s]={setup:function(){if(this.opts.offCanvas){switch(this.opts.offCanvas.position){case"left":case"right":return}var n=this,o=this.opts[s];if(this.conf[s],h=t[e].glbl,"boolean"==typeof o&&o&&(o={height:"auto"}),"object"!=typeof o&&(o={}),o=this.opts[s]=t.extend(!0,{},t[e].defaults[s],o),"auto"==o.height){this.$menu.addClass(i.autoheight);var u=function(t){var e=parseInt(this.$pnls.css("top"),10)||0;_bot=parseInt(this.$pnls.css("bottom"),10)||0,this.$menu.addClass(i.measureheight),t=t||this.$pnls.children("."+i.current),t.is("."+i.vertical)&&(t=t.parents("."+i.panel).not("."+i.vertical).first()),this.$menu.height(t.outerHeight()+e+_bot).removeClass(i.measureheight)};this.bind("update",u),this.bind("openPanel",u),this.bind("closePanel",u),this.bind("open",u),h.$wndw.off(a.resize+"-autoheight").on(a.resize+"-autoheight",function(){u.call(n)})}}},add:function(){i=t[e]._c,n=t[e]._d,a=t[e]._e,i.add("autoheight measureheight"),a.add("resize")},clickAnchor:function(){}},t[e].defaults[s]={height:"default"};var i,n,a,h}(jQuery); 4405/* 4406 * jQuery mmenu backButton addon 4407 * mmenu.frebsite.nl 4408 * 4409 * Copyright (c) Fred Heusschen 4410 */ 4411!function(o){var t="mmenu",n="backButton";o[t].addons[n]={setup:function(){if(this.opts.offCanvas){var i=this,e=this.opts[n];if(this.conf[n],a=o[t].glbl,"boolean"==typeof e&&(e={close:e}),"object"!=typeof e&&(e={}),e=o.extend(!0,{},o[t].defaults[n],e),e.close){var c="#"+i.$menu.attr("id");this.bind("opened",function(){location.hash!=c&&history.pushState(null,document.title,c)}),o(window).on("popstate",function(o){a.$html.hasClass(s.opened)?(o.stopPropagation(),i.close()):location.hash==c&&(o.stopPropagation(),i.open())})}}},add:function(){return window.history&&window.history.pushState?(s=o[t]._c,i=o[t]._d,void(e=o[t]._e)):void(o[t].addons[n].setup=function(){})},clickAnchor:function(){}},o[t].defaults[n]={close:!1};var s,i,e,a}(jQuery); 4412/* 4413 * jQuery mmenu counters addon 4414 * mmenu.frebsite.nl 4415 * 4416 * Copyright (c) Fred Heusschen 4417 */ 4418!function(t){var n="mmenu",e="counters";t[n].addons[e]={setup:function(){var s=this,o=this.opts[e];this.conf[e],c=t[n].glbl,"boolean"==typeof o&&(o={add:o,update:o}),"object"!=typeof o&&(o={}),o=this.opts[e]=t.extend(!0,{},t[n].defaults[e],o),this.bind("init",function(n){this.__refactorClass(t("em",n),this.conf.classNames[e].counter,"counter")}),o.add&&this.bind("init",function(n){n.each(function(){var n=t(this).data(a.parent);
4418n&&(n.children("em."+i.counter).length||n.prepend(t('<em class="'+i.counter+'" />')))})}),o.update&&this.bind("update",function(){this.$pnls.find("."+i.panel).each(function(){var n=t(this),e=n.data(a.parent);if(e){var c=e.children("em."+i.counter);c.length&&(n=n.children("."+i.listview),n.length&&c.html(s.__filterListItems(n.children()).length))}})})},add:function(){i=t[n]._c,a=t[n]._d,s=t[n]._e,i.add("counter search noresultsmsg")},clickAnchor:function(){}},t[n].defaults[e]={add:!1,update:!1},t[n].configuration.classNames[e]={counter:"Counter"};var i,a,s,c}(jQuery); 4419/* 4420 * jQuery mmenu dividers addon 4421 * mmenu.frebsite.nl 4422 * 4423 * Copyright (c) Fred Heusschen 4424 */ 4425!function(i){var e="mmenu",s="dividers";i[e].addons[s]={setup:function(){var n=this,a=this.opts[s];if(this.conf[s],l=i[e].glbl,"boolean"==typeof a&&(a={add:a,fixed:a}),"object"!=typeof a&&(a={}),a=this.opts[s]=i.extend(!0,{},i[e].defaults[s],a),this.bind("init",function(){this.__refactorClass(i("li",this.$menu),this.conf.classNames[s].collapsed,"collapsed")}),a.add&&this.bind("init",function(e){switch(a.addTo){case"panels":var s=e;break;default:var s=i(a.addTo,this.$pnls).filter("."+d.panel)}i("."+d.divider,s).remove(),s.find("."+d.listview).not("."+d.vertical).each(function(){var e="";n.__filterListItems(i(this).children()).each(function(){var s=i.trim(i(this).children("a, span").text()).slice(0,1).toLowerCase();s!=e&&s.length&&(e=s,i('<li class="'+d.divider+'">'+s+"</li>").insertBefore(this))})})}),a.collapse&&this.bind("init",function(e){i("."+d.divider,e).each(function(){var e=i(this),s=e.nextUntil("."+d.divider,"."+d.collapsed);s.length&&(e.children("."+d.subopen).length||(e.wrapInner("<span />"),e.prepend('<a href="#" class="'+d.subopen+" "+d.fullsubopen+'" />')))})}),a.fixed){var o=function(e){e=e||this.$pnls.children("."+d.current);var s=e.find("."+d.divider).not("."+d.hidden);if(s.length){this.$menu.addClass(d.hasdividers);var n=e.scrollTop()||0,t="";e.is(":visible")&&e.find("."+d.divider).not("."+d.hidden).each(function(){i(this).position().top+n<n+1&&(t=i(this).text())}),this.$fixeddivider.text(t)}else this.$menu.removeClass(d.hasdividers)};this.$fixeddivider=i('<ul class="'+d.listview+" "+d.fixeddivider+'"><li class="'+d.divider+'"></li></ul>').prependTo(this.$pnls).children(),this.bind("openPanel",o),this.bind("init",function(e){e.off(t.scroll+"-dividers "+t.touchmove+"-dividers").on(t.scroll+"-dividers "+t.touchmove+"-dividers",function(){o.call(n,i(this))})})}},add:function(){d=i[e]._c,n=i[e]._d,t=i[e]._e,d.add("collapsed uncollapsed fixeddivider hasdividers"),t.add("scroll")},clickAnchor:function(i,e){if(this.opts[s].collapse&&e){var n=i.parent();if(n.is("."+d.divider)){var t=n.nextUntil("."+d.divider,"."+d.collapsed);return n.toggleClass(d.opened),t[n.hasClass(d.opened)?"addClass":"removeClass"](d.uncollapsed),!0}}return!1}},i[e].defaults[s]={add:!1,addTo:"panels",fixed:!1,collapse:!1},i[e].configuration.classNames[s]={collapsed:"Collapsed"};var d,n,t,l}(jQuery); 4426/* 4427 * jQuery mmenu dragOpen addon 4428 * mmenu.frebsite.nl 4429 * 4430 * Copyright (c) Fred Heusschen 4431 */ 4432!function(e){function t(e,t,n){return t>e&&(e=t),e>n&&(e=n),e}var n="mmenu",o="dragOpen";e[n].addons[o]={setup:function(){if(this.opts.offCanvas){var i=this,a=this.opts[o],p=this.conf[o];if(r=e[n].glbl,"boolean"==typeof a&&(a={open:a}),"object"!=typeof a&&(a={}),a=this.opts[o]=e.extend(!0,{},e[n].defaults[o],a),a.open){var d,f,c,u,h,l={},m=0,g=!1,v=!1,w=0,_=0;switch(this.opts.offCanvas.position){case"left":case"right":l.events="panleft panright",l.typeLower="x",l.typeUpper="X",v="width";break;case"top":case"bottom":l.events="panup pandown",l.typeLower="y",l.typeUpper="Y",v="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":l.negative=!0,u=function(e){e>=r.$wndw[v]()-a.maxStartPos&&(m=1)};break;default:l.negative=!1,u=function(e){e<=a.maxStartPos&&(m=1)}}switch(this.opts.offCanvas.position){case"left":l.open_dir="right",l.close_dir="left";break;case"right":l.open_dir="left",l.close_dir="right";break;case"top":l.open_dir="down",l.close_dir="up";break;case"bottom":l.open_dir="up",l.close_dir="down"}switch(this.opts.offCanvas.zposition){case"front":h=function(){return this.$menu};break;default:h=function(){return e("."+s.slideout)}}var b=this.__valueOrFn(a.pageNode,this.$menu,r.$page);"string"==typeof b&&(b=e(b));var y=new Hammer(b[0],a.vendors.hammer);y.on("panstart",function(e){u(e.center[l.typeLower]),r.$slideOutNodes=h(),g=l.open_dir}).on(l.events+" panend",function(e){m>0&&e.preventDefault()}).on(l.events,function(e){if(d=e["delta"+l.typeUpper],l.negative&&(d=-d),d!=w&&(g=d>=w?l.open_dir:l.close_dir),w=d,w>a.threshold&&1==m){if(r.$html.hasClass(s.opened))return;m=2,i._openSetup(),i.trigger("opening"),r.$html.addClass(s.dragging),_=t(r.$wndw[v]()*p[v].perc,p[v].min,p[v].max)}2==m&&(f=t(w,10,_)-("front"==i.opts.offCanvas.zposition?_:0),l.negative&&(f=-f),c="translate"+l.typeUpper+"("+f+"px )",r.$slideOutNodes.css({"-webkit-transform":"-webkit-"+c,transform:c}))}).on("panend",function(){2==m&&(r.$html.removeClass(s.dragging),r.$slideOutNodes.css("transform",""),i[g==l.open_dir?"_openFinish":"close"]()),m=0})}}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?void(e[n].addons[o].setup=function(){}):(s=e[n]._c,i=e[n]._d,a=e[n]._e,void s.add("dragging"))},clickAnchor:function(){}},e[n].defaults[o]={open:!1,maxStartPos:100,threshold:50,vendors:{hammer
4432:{}}},e[n].configuration[o]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}};var s,i,a,r}(jQuery); 4433/* 4434 * jQuery mmenu fixedElements addon 4435 * mmenu.frebsite.nl 4436 * 4437 * Copyright (c) Fred Heusschen 4438 */ 4439!function(s){var i="mmenu",t="fixedElements";s[i].addons[t]={setup:function(){if(this.opts.offCanvas){var n=this.opts[t];this.conf[t],d=s[i].glbl,n=this.opts[t]=s.extend(!0,{},s[i].defaults[t],n);var a=function(s){var i=this.conf.classNames[t].fixed;this.__refactorClass(s.find("."+i),i,"slideout").appendTo(d.$body)};a.call(this,d.$page),this.bind("setPage",a)}},add:function(){n=s[i]._c,a=s[i]._d,e=s[i]._e,n.add("fixed")},clickAnchor:function(){}},s[i].configuration.classNames[t]={fixed:"Fixed"};var n,a,e,d}(jQuery); 4440/* 4441 * jQuery mmenu iconPanels addon 4442 * mmenu.frebsite.nl 4443 * 4444 * Copyright (c) Fred Heusschen 4445 */ 4446!function(e){var n="mmenu",i="iconPanels";e[n].addons[i]={setup:function(){var a=this,l=this.opts[i];if(this.conf[i],d=e[n].glbl,"boolean"==typeof l&&(l={add:l}),"number"==typeof l&&(l={add:!0,visible:l}),"object"!=typeof l&&(l={}),l=this.opts[i]=e.extend(!0,{},e[n].defaults[i],l),l.visible++,l.add){this.$menu.addClass(s.iconpanel);for(var t=[],o=0;o<=l.visible;o++)t.push(s.iconpanel+"-"+o);t=t.join(" ");var c=function(n){var i=a.$pnls.children("."+s.panel).removeClass(t),d=i.filter("."+s.subopened);d.removeClass(s.hidden).add(n).slice(-l.visible).each(function(n){e(this).addClass(s.iconpanel+"-"+n)})};this.bind("openPanel",c),this.bind("init",function(n){c.call(a,a.$pnls.children("."+s.current)),l.hideNavbars&&n.removeClass(s.hasnavbar),n.each(function(){e(this).children("."+s.subblocker).length||e(this).prepend('<a href="#'+e(this).closest("."+s.panel).attr("id")+'" class="'+s.subblocker+'" />')})})}},add:function(){s=e[n]._c,a=e[n]._d,l=e[n]._e,s.add("iconpanel subblocker")},clickAnchor:function(){}},e[n].defaults[i]={add:!1,visible:3,hideNavbars:!1};var s,a,l,d}(jQuery); 4447/* 4448 * jQuery mmenu navbar addon 4449 * mmenu.frebsite.nl 4450 * 4451 * Copyright (c) Fred Heusschen 4452 */ 4453!function(n){var a="mmenu",t="navbars";n[a].addons[t]={setup:function(){var r=this,s=this.opts[t],c=this.conf[t];if(i=n[a].glbl,"undefined"!=typeof s){s instanceof Array||(s=[s]);var d={};n.each(s,function(i){var o=s[i];"boolean"==typeof o&&o&&(o={}),"object"!=typeof o&&(o={}),"undefined"==typeof o.content&&(o.content=["prev","title"]),o.content instanceof Array||(o.content=[o.content]),o=n.extend(!0,{},r.opts.navbar,o);var l=o.position,h=o.height;"number"!=typeof h&&(h=1),h=Math.min(4,Math.max(1,h)),"bottom"!=l&&(l="top"),d[l]||(d[l]=0),d[l]++;var f=n("<div />").addClass(e.navbar+" "+e.navbar+"-"+l+" "+e.navbar+"-"+l+"-"+d[l]+" "+e.navbar+"-size-"+h);d[l]+=h-1;for(var v=0,p=o.content.length;p>v;v++){var u=n[a].addons[t][o.content[v]]||!1;u?u.call(r,f,o,c):(u=o.content[v],u instanceof n||(u=n(o.content[v])),u.each(function(){f.append(n(this))}))}var b=Math.ceil(f.children().not("."+e.btn).length/h);b>1&&f.addClass(e.navbar+"-content-"+b),f.children("."+e.btn).length&&f.addClass(e.hasbtns),f.prependTo(r.$menu)});for(var o in d)r.$menu.addClass(e.hasnavbar+"-"+o+"-"+d[o])}},add:function(){e=n[a]._c,r=n[a]._d,s=n[a]._e,e.add("close hasbtns")},clickAnchor:function(){}},n[a].configuration[t]={breadcrumbSeparator:"/"},n[a].configuration.classNames[t]={panelTitle:"Title",panelNext:"Next",panelPrev:"Prev"};var e,r,s,i}(jQuery),/* 4454 * jQuery mmenu navbar addon breadcrumbs content 4455 * mmenu.frebsite.nl 4456 * 4457 * Copyright (c) Fred Heusschen 4458 */ 4459function(n){var a="mmenu",t="navbars",e="breadcrumbs";n[a].addons[t][e]=function(t,e,r){var s=n[a]._c,i=n[a]._d;s.add("breadcrumbs separator"),t.append('<span class="'+s.breadcrumbs+'"></span>'),this.bind("init",function(a){a.removeClass(s.hasnavbar).each(function(){for(var a=[],t=n(this),e=n('<span class="'+s.breadcrumbs+'"></span>'),c=n(this).children().first(),d=!0;c&&c.length;){c.is("."+s.panel)||(c=c.closest("."+s.panel));var o=c.children("."+s.navbar).children("."+s.title).text();a.unshift(d?"<span>"+o+"</span>":'<a href="#'+c.attr("id")+'">'+o+"</a>"),d=!1,c=c.data(i.parent)}e.append(a.join('<span class="'+s.separator+'">'+r.breadcrumbSeparator+"</span>")).appendTo(t.children("."+s.navbar))})});var c=function(){var n=this.$pnls.children("."+s.current),a=t.find("."+s.breadcrumbs),e=n.children("."+s.navbar).children("."+s.breadcrumbs);a.html(e.html())};this.bind("openPanel",c),this.bind("init",c)}}(jQuery),/* 4460 * jQuery mmenu navbar addon close content 4461 * mmenu.frebsite.nl 4462 * 4463 * Copyright (c) Fred Heusschen 4464 */ 4465function(n){var a="mmenu",t="navbars",e="close";n[a].addons[t][e]=function(t){var e=n[a]._c,r=n[a].glbl;t.append('<a class="'+e.close+" "+e.btn+'" href="#"></a>');var s=function(n){t.find("."+e.close).attr("href","#"+n.attr("id"))};s.call(this,r.$page),this.bind("setPage",s)}}(jQuery),/* 4466 * jQuery mmenu navbar addon next content 4467 * mmenu.frebsite.nl 4468 * 4469 * Copyright (c) Fred Heusschen 4470 */ 4471function(n){var a="mmenu",t="navbars",e="next";n[a].addons[t][e]=function(e){var r=n[a]._c;e.append('<a class="'+r.next+" "+r.btn+'" href="#"></a>');var s=function(n){n=n||this.$pnls.children("."+r.current);var a=e.find("."+r.next),s=n.find("."+this.conf.classNames[t].panelNext),i=s.attr("href"),c=s.html();a[i?"attr":"removeAttr"]("href",i),a[i||c?"removeClass":"addClass"](r.hidden),a.html(c)};
4471this.bind("openPanel",s),this.bind("init",function(){s.call(this)})}}(jQuery),/* 4472 * jQuery mmenu navbar addon prev content 4473 * mmenu.frebsite.nl 4474 * 4475 * Copyright (c) Fred Heusschen 4476 */ 4477function(n){var a="mmenu",t="navbars",e="prev";n[a].addons[t][e]=function(e){var r=n[a]._c;e.append('<a class="'+r.prev+" "+r.btn+'" href="#"></a>'),this.bind("init",function(n){n.removeClass(r.hasnavbar)});var s=function(){var n=this.$pnls.children("."+r.current),a=e.find("."+r.prev),s=n.find("."+this.conf.classNames[t].panelPrev);s.length||(s=n.children("."+r.navbar).children("."+r.prev));var i=s.attr("href"),c=s.html();a[i?"attr":"removeAttr"]("href",i),a[i||c?"removeClass":"addClass"](r.hidden),a.html(c)};this.bind("openPanel",s),this.bind("init",s)}}(jQuery),/* 4478 * jQuery mmenu navbar addon searchfield content 4479 * mmenu.frebsite.nl 4480 * 4481 * Copyright (c) Fred Heusschen 4482 */ 4483function(n){var a="mmenu",t="navbars",e="searchfield";n[a].addons[t][e]=function(t){var e=n[a]._c,r=n('<div class="'+e.search+'" />').appendTo(t);"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=r}}(jQuery),/* 4484 * jQuery mmenu navbar addon title content 4485 * mmenu.frebsite.nl 4486 * 4487 * Copyright (c) Fred Heusschen 4488 */ 4489function(n){var a="mmenu",t="navbars",e="title";n[a].addons[t][e]=function(e,r){var s=n[a]._c;e.append('<a class="'+s.title+'"></a>');var i=function(n){n=n||this.$pnls.children("."+s.current);var a=e.find("."+s.title),i=n.find("."+this.conf.classNames[t].panelTitle);i.length||(i=n.children("."+s.navbar).children("."+s.title));var c=i.attr("href"),d=i.html()||r.title;a[c?"attr":"removeAttr"]("href",c),a[c||d?"removeClass":"addClass"](s.hidden),a.html(d)};this.bind("openPanel",i),this.bind("init",function(){i.call(this)})}}(jQuery); 4490/* 4491 * jQuery mmenu searchfield addon 4492 * mmenu.frebsite.nl 4493 * 4494 * Copyright (c) Fred Heusschen 4495 */ 4496!function(e){function s(e){switch(e){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1}var n="mmenu",a="searchfield";e[n].addons[a]={setup:function(){var o=this,d=this.opts[a],c=this.conf[a
4496];r=e[n].glbl,"boolean"==typeof d&&(d={add:d}),"object"!=typeof d&&(d={}),d=this.opts[a]=e.extend(!0,{},e[n].defaults[a],d),this.bind("close",function(){this.$menu.find("."+l.search).find("input").blur()}),this.bind("init",function(n){if(d.add){switch(d.addTo){case"panels":var a=n;break;default:var a=e(d.addTo,this.$menu)}a.each(function(){var s=e(this);if(!s.is("."+l.panel)||!s.is("."+l.vertical)){if(!s.children("."+l.search).length){var n=c.form?"form":"div",a=e("<"+n+' class="'+l.search+'" />');if(c.form&&"object"==typeof c.form)for(var t in c.form)a.attr(t,c.form[t]);a.append('<input placeholder="'+d.placeholder+'" type="text" autocomplete="off" />'),s.hasClass(l.search)?s.replaceWith(a):s.prepend(a).addClass(l.hassearch)}if(d.noResults){var i=s.closest("."+l.panel).length;if(i||(s=o.$pnls.children("."+l.panel).first()),!s.children("."+l.noresultsmsg).length){var r=s.children("."+l.listview).first();e('<div class="'+l.noresultsmsg+'" />').append(d.noResults)[r.length?"insertAfter":"prependTo"](r.length?r:s)}}}}),d.search&&e("."+l.search,this.$menu).each(function(){var n=e(this),a=n.closest("."+l.panel).length;if(a)var r=n.closest("."+l.panel),c=r;else var r=e("."+l.panel,o.$menu),c=o.$menu;var h=n.children("input"),u=o.__findAddBack(r,"."+l.listview).children("li"),f=u.filter("."+l.divider),p=o.__filterListItems(u),v="> a",m=v+", > span",b=function(){var s=h.val().toLowerCase();r.scrollTop(0),p.add(f).addClass(l.hidden).find("."+l.fullsubopensearch).removeClass(l.fullsubopen).removeClass(l.fullsubopensearch),p.each(function(){var n=e(this),a=v;(d.showTextItems||d.showSubPanels&&n.find("."+l.next))&&(a=m),e(a,n).text().toLowerCase().indexOf(s)>-1&&n.add(n.prevAll("."+l.divider).first()).removeClass(l.hidden)}),d.showSubPanels&&r.each(function(){var s=e(this);o.__filterListItems(s.find("."+l.listview).children()).each(function(){var s=e(this),n=s.data(t.sub);s.removeClass(l.nosubresults),n&&n.find("."+l.listview).children().removeClass(l.hidden)})}),e(r.get().reverse()).each(function(s){var n=e(this),i=n.data(t.parent);i&&(o.__filterListItems(n.find("."+l.listview).children()).length?(i.hasClass(l.hidden)&&i.children("."+l.next).not("."+l.fullsubopen).addClass(l.fullsubopen).addClass(l.fullsubopensearch),i.removeClass(l.hidden).removeClass(l.nosubresults).prevAll("."+l.divider).first().removeClass(l.hidden)):a||(n.hasClass(l.opened)&&setTimeout(function(){o.openPanel(i.closest("."+l.panel))},1.5*(s+1)*o.conf.openingInterval),i.addClass(l.nosubresults)))}),c[p.not("."+l.hidden).length?"removeClass":"addClass"](l.noresults),this.update()};h.off(i.keyup+"-searchfield "+i.change+"-searchfield").on(i.keyup+"-searchfield",function(e){s(e.keyCode)||b.call(o)}).on(i.change+"-searchfield",function(){b.call(o)})})}})},add:function(){l=e[n]._c,t=e[n]._d,i=e[n]._e,l.add("search hassearch noresultsmsg noresults nosubresults fullsubopensearch"),i.add("change keyup")},clickAnchor:function(){}},e[n].defaults[a]={add:!1,addTo:"panels",search:!0,placeholder:"Search",noResults:"No results found.",showTextItems:!1,showSubPanels:!0},e[n].configuration[a]={form:!1};var l,t,i,r}(jQuery); 4497/* 4498 * jQuery mmenu sectionIndexer addon 4499 * mmenu.frebsite.nl 4500 * 4501 * Copyright (c) Fred Heusschen 4502 */ 4503!function(e){var a="mmenu",r="sectionIndexer";e[a].addons[r]={setup:function(){var i=this,d=this.opts[r];this.conf[r],t=e[a].glbl,"boolean"==typeof d&&(d={add:d}),"object"!=typeof d&&(d={}),d=this.opts[r]=e.extend(!0,{},e[a].defaults[r],d),this.bind("init",function(a){if(d.add){switch(d.addTo){case"panels":var r=a;break;default:var r=e(d.addTo,this.$menu).filter("."+n.panel)}r.find("."+n.divider).closest("."+n.panel).addClass(n.hasindexer)}if(!this.$indexer&&this.$pnls.children("."+n.hasindexer).length){this.$indexer=e('<div class="'+n.indexer+'" />').prependTo(this.$pnls).append('<a href="#a">a</a><a href="#b">b</a><a href="#c">c</a><a href="#d">d</a><a href="#e">e</a><a href="#f">f</a><a href="#g">g</a><a href="#h">h</a><a href="#i">i</a><a href="#j">j</a><a href="#k">k</a><a href="#l">l</a><a href="#m">m</a><a href="#n">n</a><a href="#o">o</a><a href="#p">p</a><a href="#q">q</a><a href="#r">r</a><a href="#s">s</a><a href="#t">t</a><a href="#u">u</a><a href="#v">v</a><a href="#w">w</a><a href="#x">x</a><a href="#y">y</a><a href="#z">z</a>
4503'),this.$indexer.children().on(s.mouseover+"-sectionindexer "+n.touchstart+"-sectionindexer",function(){var a=e(this).attr("href").slice(1),r=i.$pnls.children("."+n.current),s=r.find("."+n.listview),t=!1,d=r.scrollTop(),h=s.position().top+parseInt(s.css("margin-top"),10)+parseInt(s.css("padding-top"),10)+d;r.scrollTop(0),s.children("."+n.divider).not("."+n.hidden).each(function(){t===!1&&a==e(this).text().slice(0,1).toLowerCase()&&(t=e(this).position().top+h)}),r.scrollTop(t!==!1?t:d)});var t=function(e){i.$menu[(e.hasClass(n.hasindexer)?"add":"remove")+"Class"](n.hasindexer)};this.bind("openPanel",t),t.call(this,this.$pnls.children("."+n.current))}})},add:function(){n=e[a]._c,i=e[a]._d,s=e[a]._e,n.add("indexer hasindexer"),s.add("mouseover touchstart")},clickAnchor:function(e){return e.parent().is("."+n.indexer)?!0:void 0}},e[a].defaults[r]={add:!1,addTo:"panels"};var n,i,s,t}(jQuery); 4504/* 4505 * jQuery mmenu toggles addon 4506 * mmenu.frebsite.nl 4507 * 4508 * Copyright (c) Fred Heusschen 4509 */ 4510!function(t){var e="mmenu",c="toggles";t[e].addons[c]={setup:function(){var n=this;this.opts[c],this.conf[c],l=t[e].glbl,this.bind("init",function(e){this.__refactorClass(t("input",e),this.conf.classNames[c].toggle,"toggle"),this.__refactorClass(t("input",e),this.conf.classNames[c].check,"check"),t("input."+s.toggle+", input."+s.check,e).each(function(){var e=t(this),c=e.closest("li"),i=e.hasClass(s.toggle)?"toggle":"check",l=e.attr("id")||n.__getUniqueId();c.children('label[for="'+l+'"]').length||(e.attr("id",l),c.prepend(e),t('<label for="'+l+'" class="'+s[i]+'"></label>').insertBefore(c.children("a, span").last()))})})},add:function(){s=t[e]._c,n=t[e]._d,i=t[e]._e,s.add("toggle check")},clickAnchor:function(){}},t[e].configuration.classNames[c]={toggle:"Toggle",check:"Check"};var s,n,i,l}(jQuery); 4511/* 4512 * SmartMenus jQuery v1.0.1+ 4513 * http://www.smartmenus.org/ 4514 * 4515 * Copyright Vasil Dinkov, Vadikom Web Ltd. 4516 * http://vadikom.com/ 4517 * 4518 * Released under the MIT license: 4519 * http://www.opensource.org/licenses/MIT 4520 */ 4521 4522(function(factory) { 4523 if (typeof define === 'function' && define.amd) { 4524 // AMD 4525 define(['jquery'], factory); 4526 } else if (typeof module === 'object' && typeof module.exports === 'object') { 4527 // CommonJS 4528 module.exports = factory(require('jquery')); 4529 } else { 4530 // Global jQuery 4531 factory(jQuery); 4532 } 4533} (function($) { 4534 4535 var menuTrees = [], 4536 IE = !!window.createPopup, // detect it for the iframe shim 4537 mouse = false, // optimize for touch by default - we will detect for mouse input 4538 touchEvents = 'ontouchstart' in window, // we use this just to choose between toucn and pointer events, not for touch screen detection 4539 mouseDetectionEnabled = false, 4540 requestAnimationFrame = window.requestAnimationFrame || function(callback) { return setTimeout(callback, 1000 / 60); }, 4541 cancelAnimationFrame = window.cancelAnimationFrame || function(id) { clearTimeout(id); }; 4542 4543 // Handle detection for mouse input (i.e. desktop browsers, tablets with a mouse, etc.) 4544 function initMouseDetection(disable) { 4545 var eNS = '.smartmenus_mouse'; 4546 if (!mouseDetectionEnabled && !disable) { 4547 // if we get two consecutive mousemoves within 2 pixels from each other and within 300ms, we assume a real mouse/cursor is present 4548 // in practice, this seems like impossible to trick unintentianally with a real mouse and a pretty safe detection on touch devices (even with older browsers that do not support touch events) 4549 var firstTime = true, 4550 lastMove = null; 4551 $(document).bind(getEventsNS([ 4552 ['mousemove', function(e) { 4553 var thisMove = { x: e.pageX, y: e.pageY, timeStamp: new Date().getTime() }; 4554 if (lastMove) { 4555 var deltaX = Math.abs(lastMove.x - thisMove.x), 4556 deltaY = Math.abs(lastMove.y - thisMove.y); 4557 if ((deltaX > 0 || deltaY > 0) && deltaX <= 2 && deltaY <= 2 && thisMove.timeStamp - lastMove.timeStamp <= 300) { 4558 mouse = true; 4559 // if this is the first check after page load, check if we are not over some item by chance and call the mouseenter handler if yes 4560 if (firstTime) { 4561 var $a = $(e.target).closest('a'); 4562 if ($a.is('a')) { 4563 $.each(menuTrees, function() { 4564 if ($.contains(this.$root[0], $a[0])) { 4565 this.itemEnter({ currentTarget: $a[0] }); 4566 return false;
4567 } 4568 }); 4569 } 4570 firstTime = false; 4571 } 4572 } 4573 } 4574 lastMove = thisMove; 4575 }], 4576 [touchEvents ? 'touchstart' : 'pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut', function(e) { 4577 if (isTouchEvent(e.originalEvent)) { 4578 mouse = false; 4579 } 4580 }] 4581 ], eNS)); 4582 mouseDetectionEnabled = true; 4583 } else if (mouseDetectionEnabled && disable) { 4584 $(document).unbind(eNS); 4585 mouseDetectionEnabled = false; 4586 } 4587 } 4588 4589 function isTouchEvent(e) { 4590 return !/^(4|mouse)$/.test(e.pointerType); 4591 } 4592 4593 // returns a jQuery bind() ready object 4594 function getEventsNS(defArr, eNS) { 4595 if (!eNS) { 4596 eNS = ''; 4597 } 4598 var obj = {}; 4599 $.each(defArr, function(index, value) { 4600 obj[value[0].split(' ').join(eNS + ' ') + eNS] = value[1]; 4601 }); 4602 return obj; 4603 } 4604 4605 $.SmartMenus = function(elm, options) { 4606 this.$root = $(elm); 4607 this.opts = options; 4608 this.rootId = ''; // internal 4609 this.accessIdPrefix = ''; 4610 this.$subArrow = null; 4611 this.activatedItems = []; // stores last activated A's for each level 4612 this.visibleSubMenus = []; // stores visible sub menus UL's (might be in no particular order) 4613 this.showTimeout = 0; 4614 this.hideTimeout = 0; 4615 this.scrollTimeout = 0; 4616 this.clickActivated = false; 4617 this.focusActivated = false; 4618 this.zIndexInc = 0; 4619 this.idInc = 0; 4620 this.$firstLink = null; // we'll use these for some tests 4621 this.$firstSub = null; // at runtime so we'll cache them 4622 this.disabled = false; 4623 this.$disableOverlay = null; 4624 this.$touchScrollingSub = null; 4625 this.cssTransforms3d = 'perspective' in elm.style || 'webkitPerspective' in elm.style; 4626 this.wasCollapsible = false; 4627 this.init(); 4628 }; 4629 4630 $.extend($.SmartMenus, { 4631 hideAll: function() { 4632 $.each(menuTrees, function() { 4633 this.menuHideAll(); 4634 }); 4635 }, 4636 destroy: function() { 4637 while (menuTrees.length) { 4638 menuTrees[0].destroy(); 4639 } 4640 initMouseDetection(true); 4641 }, 4642 prototype: { 4643 init: function(refresh) { 4644 var self = this; 4645 4646 if (!refresh) { 4647 menuTrees.push(this); 4648 4649 this.rootId = (new Date().getTime() + Math.random() + '').replace(/\D/g, ''); 4650 this.accessIdPrefix = 'sm-' + this.rootId + '-'; 4651 4652 if (this.$root.hasClass('sm-rtl')) { 4653 this.opts.rightToLeftSubMenus = true; 4654 } 4655 4656 // init root (main menu) 4657 var eNS = '.smartmenus'; 4658 this.$root 4659 .data('smartmenus', this) 4660 .attr('data-smartmenus-id', this.rootId) 4661 .dataSM('level', 1) 4662 .bind(getEventsNS([ 4663 ['mouseover focusin', $.proxy(this.rootOver, this)], 4664 ['mouseout focusout', $.proxy(this.rootOut, this)], 4665 ['keydown', $.proxy(this.rootKeyDown, this)] 4666 ], eNS)) 4667 .delegate('a', getEventsNS([ 4668 ['mouseenter', $.proxy(this.itemEnter, this)], 4669 ['mouseleave', $.proxy(this.itemLeave, this)], 4670 ['mousedown', $.proxy(this.itemDown, this)], 4671 ['focus', $.proxy(this.itemFocus, this)], 4672 ['blur', $.proxy(this.itemBlur, this)], 4673 ['click', $.proxy(this.itemClick, this)] 4674 ], eNS)); 4675 4676 // hide menus on tap or click outside the root UL 4677 eNS += this.rootId; 4678 if (this.opts.hideOnClick) { 4679 $(document).bind(getEventsNS([ 4680 ['touchstart', $.proxy(this.docTouchStart, this)], 4681 ['touchmove', $.proxy(this.docTouchMove, this)], 4682 ['touchend', $.proxy(this.docTouchEnd, this)], 4683 // for Opera Mobile < 11.5, webOS browser, etc. we'll check click too 4684 ['click', $.proxy(this.docClick, this)] 4685 ], eNS)); 4686 } 4687 // hide sub menus on resize 4688 $(window).bind(getEventsNS([['resize orientationchange', $.proxy(this.winResize, this)]], eNS)); 4689 4690 if (this.opts.subIndicators) { 4691 this.$subArrow = $('<span/>').addClass('sub-arrow'); 4692 if (this.opts.subIndicatorsText) { 4693 this.$subArrow.html(this.opts.subIndicatorsText); 4694 } 4695 } 4696 4697 // make sure mouse detection is enabled 4698 initMouseDetection(); 4699 } 4700 4701 // init sub menus 4702 this.$firstSub = this.$root.find('ul').each(function() { self.menuInit($(this)); }).eq(0); 4703 4704 this.$firstLink = this.$root.find('a').eq(0); 4705 4706 // find current item 4707 if (this.opts.markCurrentItem) { 4708 var reDefaultDoc = /(index|default)\.[^#\?\/]*/i, 4709 reHash = /#.*/, 4710 locHref = window.location.href.replace(reDefaultDoc, ''), 4711 locHrefNoHash = locHref.replace(reHash, ''); 4712 this.$root.find('a').each(function() { 4713 var href = this.href.replace(reDefaultDoc, ''), 4714 $this = $(this); 4715 if (href == locHref || href == locHrefNoHash) { 4716 $this.addClass('current'); 4717 if (self.opts.markCurrentTree) { 4718 $this.parentsUntil('[data-smartmenus-id]', 'ul').each(function() { 4719 $(this).dataSM('parent-a').addClass('current'); 4720 }); 4721 } 4722 } 4723 }); 4724 } 4725 4726 // save initial state 4727 this.wasCollapsible = this.isCollapsible(); 4728 }, 4729 destroy: function(refresh) { 4730 if (!refresh) { 4731 var eNS = '.smartmenus'; 4732 this.$root 4733 .removeData('smartmenus') 4734 .removeAttr('data-smartmenus-id') 4735 .removeDataSM('level') 4736 .unbind(eNS) 4737 .undelegate(eNS); 4738 eNS += this.rootId; 4739 $(document).unbind(eNS); 4740 $(window).unbind(eNS); 4741 if (this.opts.subIndicators) { 4742 this.$subArrow = null; 4743 } 4744 } 4745 this.menuHideAll(); 4746 var self = this; 4747 this.$root.find('ul').each(function() { 4748 var $this = $(this); 4749 if ($this.dataSM('scroll-arrows')) { 4750 $this.dataSM('scroll-arrows').remove(); 4751 } 4752 if ($this.dataSM('shown-before')) { 4753 if (self.opts.subMenusMinWidth || self.opts.subMenusMaxWidth) { 4754 $this.css({ width: '', minWidth: '', maxWidth: '' }).removeClass('sm-nowrap'); 4755 } 4756 if ($this.dataSM('scroll-arrows')) { 4757 $this.dataSM('scroll-arrows').remove(); 4758 } 4759 $this.css({ zIndex: '', top: '', left: '', marginLeft: '', marginTop: '', display: '' }); 4760 } 4761 if (($this.attr('id') || '').indexOf(self.accessIdPrefix) == 0) { 4762 $this.removeAttr('id'); 4763 } 4764 }) 4765 .removeDataSM('in-mega') 4766 .removeDataSM('shown-before') 4767 .removeDataSM('ie-shim') 4768 .removeDataSM('scroll-arrows') 4769 .removeDataSM('parent-a') 4770 .removeDataSM('level') 4771 .removeDataSM('beforefirstshowfired') 4772 .removeAttr('role') 4773 .removeAttr('aria-hidden') 4774 .removeAttr('aria-labelledby') 4775 .removeAttr('aria-expanded'); 4776 this.$root.find('a.has-submenu').each(function() { 4777 var $this = $(this); 4778 if ($this.attr('id').indexOf(self.accessIdPrefix) == 0) { 4779 $this.removeAttr('id'); 4780 } 4781 }) 4782 .removeClass('has-submenu') 4783 .removeDataSM('sub') 4784 .removeAttr('aria-haspopup') 4785 .removeAttr('aria-controls') 4786 .removeAttr('aria-expanded') 4787 .closest('li').removeDataSM('sub'); 4788 if (this.opts.subIndicators) { 4789 this.$root.find('span.sub-arrow').remove(); 4790 } 4791 if (this.opts.markCurrentItem) { 4792 this.$root.find('a.current').removeClass('current'); 4793 } 4794 if (!refresh) { 4795 this.$root = null; 4796 this.$firstLink = null; 4797 this.$firstSub = null; 4798 if (this.$disableOverlay) { 4799 this.$disableOverlay.remove(); 4800 this.$disableOverlay = null; 4801 } 4802 menuTrees.splice($.inArray(this, menuTrees), 1); 4803 } 4804 }, 4805 disable: function(noOverlay) { 4806 if (!this.disabled) { 4807 this.menuHideAll(); 4808 // display overlay over the menu to prevent interaction 4809 if (!noOverlay && !this.opts.isPopup && this.$root.is(':visible')) { 4810 var pos = this.$root.offset(); 4811 this.$disableOverlay = $('<div class="sm-jquery-disable-overlay"/>').css({ 4812 position: 'absolute', 4813 top: pos.top, 4814 left: pos.left, 4815 width: this.$root.outerWidth(), 4816 height: this.$root.outerHeight(),
4817 zIndex: this.getStartZIndex(true), 4818 opacity: 0 4819 }).appendTo(document.body); 4820 } 4821 this.disabled = true; 4822 } 4823 }, 4824 docClick: function(e) { 4825 if (this.$touchScrollingSub) { 4826 this.$touchScrollingSub = null; 4827 return; 4828 } 4829 // hide on any click outside the menu or on a menu link 4830 if (this.visibleSubMenus.length && !$.contains(this.$root[0], e.target) || $(e.target).is('a')) { 4831 this.menuHideAll(); 4832 } 4833 }, 4834 docTouchEnd: function(e) { 4835 if (!this.lastTouch) { 4836 return; 4837 } 4838 if (this.visibleSubMenus.length && (this.lastTouch.x2 === undefined || this.lastTouch.x1 == this.lastTouch.x2) && (this.lastTouch.y2 === undefined || this.lastTouch.y1 == this.lastTouch.y2) && (!this.lastTouch.target || !$.contains(this.$root[0], this.lastTouch.target))) { 4839 if (this.hideTimeout) { 4840 clearTimeout(this.hideTimeout); 4841 this.hideTimeout = 0; 4842 } 4843 // hide with a delay to prevent triggering accidental unwanted click on some page element 4844 var self = this; 4845 this.hideTimeout = setTimeout(function() { self.menuHideAll(); }, 350); 4846 } 4847 this.lastTouch = null; 4848 }, 4849 docTouchMove: function(e) { 4850 if (!this.lastTouch) { 4851 return; 4852 } 4853 var touchPoint = e.originalEvent.touches[0]; 4854 this.lastTouch.x2 = touchPoint.pageX; 4855 this.lastTouch.y2 = touchPoint.pageY; 4856 }, 4857 docTouchStart: function(e) { 4858 var touchPoint = e.originalEvent.touches[0]; 4859 this.lastTouch = { x1: touchPoint.pageX, y1: touchPoint.pageY, target: touchPoint.target }; 4860 }, 4861 enable: function() { 4862 if (this.disabled) { 4863 if (this.$disableOverlay) { 4864 this.$disableOverlay.remove(); 4865 this.$disableOverlay = null; 4866 } 4867 this.disabled = false; 4868 } 4869 }, 4870 getClosestMenu: function(elm) { 4871 var $closestMenu = $(elm).closest('ul'); 4872 while ($closestMenu.dataSM('in-mega')) { 4873 $closestMenu = $closestMenu.parent().closest('ul'); 4874 } 4875 return $closestMenu[0] || null; 4876 }, 4877 getHeight: function($elm) { 4878 return this.getOffset($elm, true); 4879 }, 4880 // returns precise width/height float values 4881 getOffset: function($elm, height) { 4882 var old; 4883 if ($elm.css('display') == 'none') { 4884 old = { position: $elm[0].style.position, visibility: $elm[0].style.visibility }; 4885 $elm.css({ position: 'absolute', visibility: 'hidden' }).show(); 4886 } 4887 var box = $elm[0].getBoundingClientRect && $elm[0].getBoundingClientRect(), 4888 val = box && (height ? box.height || box.bottom - box.top : box.width || box.right - box.left); 4889 if (!val && val !== 0) { 4890 val = height ? $elm[0].offsetHeight : $elm[0].offsetWidth; 4891 } 4892 if (old) { 4893 $elm.hide().css(old); 4894 } 4895 return val; 4896 }, 4897 getStartZIndex: function(root) { 4898 var zIndex = parseInt(this[root ? '$root' : '$firstSub'].css('z-index')); 4899 if (!root && isNaN(zIndex)) { 4900 zIndex = parseInt(this.$root.css('z-index')); 4901 } 4902 return !isNaN(zIndex) ? zIndex : 1; 4903 }, 4904 getTouchPoint: function(e) { 4905 return e.touches && e.touches[0] || e.changedTouches && e.changedTouches[0] || e; 4906 }, 4907 getViewport: function(height) { 4908 var name = height ? 'Height' : 'Width', 4909 val = document.documentElement['client' + name], 4910 val2 = window['inner' + name]; 4911 if (val2) { 4912 val = Math.min(val, val2); 4913 } 4914 return val; 4915 }, 4916 getViewportHeight: function() { 4917 return this.getViewport(true); 4918 }, 4919 getViewportWidth: function() { 4920 return this.getViewport(); 4921 }, 4922 getWidth: function($elm) { 4923 return this.getOffset($elm); 4924 }, 4925 handleEvents: function() { 4926 return !this.disabled && this.isCSSOn(); 4927 }, 4928 handleItemEvents: function($a) { 4929 return this.handleEvents() && !this.isLinkInMegaMenu($a); 4930 }, 4931 isCollapsible: function() { 4932 return this.$firstSub.css('position') == 'static'; 4933 }, 4934 isCSSOn: function() { 4935 return this.$firstLink.css('display') != 'inline'; 4936 }, 4937 isFixed: function() { 4938 var isFixed = this.$root.css('position') == 'fixed'; 4939 if (!isFixed) { 4940 this.$root.parentsUntil('body').each(function() { 4941 if ($(this).css('position') == 'fixed') { 4942 isFixed = true; 4943 return false;
4944 } 4945 }); 4946 } 4947 return isFixed; 4948 }, 4949 isLinkInMegaMenu: function($a) { 4950 return $(this.getClosestMenu($a[0])).hasClass('mega-menu'); 4951 }, 4952 isTouchMode: function() { 4953 return !mouse || this.opts.noMouseOver || this.isCollapsible(); 4954 }, 4955 itemActivate: function($a, focus) { 4956 var $ul = $a.closest('ul'), 4957 level = $ul.dataSM('level'); 4958 // if for some reason the parent item is not activated (e.g. this is an API call to activate the item), activate all parent items first 4959 if (level > 1 && (!this.activatedItems[level - 2] || this.activatedItems[level - 2][0] != $ul.dataSM('parent-a')[0])) { 4960 var self = this; 4961 $($ul.parentsUntil('[data-smartmenus-id]', 'ul').get().reverse()).add($ul).each(function() { 4962 self.itemActivate($(this).dataSM('parent-a')); 4963 }); 4964 } 4965 // hide any visible deeper level sub menus 4966 if (!this.isCollapsible() || focus) { 4967 this.menuHideSubMenus(!this.activatedItems[level - 1] || this.activatedItems[level - 1][0] != $a[0] ? level - 1 : level); 4968 } 4969 // save new active item for this level 4970 this.activatedItems[level - 1] = $a; 4971 if (this.$root.triggerHandler('activate.smapi', $a[0]) === false) { 4972 return; 4973 } 4974 // show the sub menu if this item has one 4975 var $sub = $a.dataSM('sub'); 4976 if ($sub && (this.isTouchMode() || (!this.opts.showOnClick || this.clickActivated))) { 4977 this.menuShow($sub); 4978 } 4979 }, 4980 itemBlur: function(e) { 4981 var $a = $(e.currentTarget); 4982 if (!this.handleItemEvents($a)) { 4983 return; 4984 } 4985 this.$root.triggerHandler('blur.smapi', $a[0]); 4986 }, 4987 itemClick: function(e) { 4988 var $a = $(e.currentTarget); 4989 if (!this.handleItemEvents($a)) { 4990 return; 4991 } 4992 if (this.$touchScrollingSub && this.$touchScrollingSub[0] == $a.closest('ul')[0]) { 4993 this.$touchScrollingSub = null; 4994 e.stopPropagation(); 4995 return false; 4996 } 4997 if (this.$root.triggerHandler('click.smapi', $a[0]) === false) { 4998 return false; 4999 } 5000 var subArrowClicked = $(e.target).is('span.sub-arrow'), 5001 $sub = $a.dataSM('sub'), 5002 firstLevelSub = $sub ? $sub.dataSM('level') == 2 : false; 5003 // if the sub is not visible 5004 if ($sub && !$sub.is(':visible')) { 5005 if (this.opts.showOnClick && firstLevelSub) { 5006 this.clickActivated = true; 5007 } 5008 // try to activate the item and show the sub 5009 this.itemActivate($a); 5010 // if "itemActivate" showed the sub, prevent the click so that the link is not loaded 5011 // if it couldn't show it, then the sub menus are disabled with an !important declaration (e.g. via mobile styles) so let the link get loaded 5012 if ($sub.is(':visible')) { 5013 this.focusActivated = true; 5014 return false; 5015 } 5016 } else if (this.isCollapsible() && subArrowClicked) { 5017 this.itemActivate($a); 5018 this.menuHide($sub); 5019 return false; 5020 } 5021 if (this.opts.showOnClick && firstLevelSub || $a.hasClass('disabled') || this.$root.triggerHandler('select.smapi', $a[0]) === false) { 5022 return false; 5023 } 5024 }, 5025 itemDown: function(e) { 5026 var $a = $(e.currentTarget); 5027 if (!this.handleItemEvents($a)) { 5028 return; 5029 } 5030 $a.dataSM('mousedown', true); 5031 }, 5032 itemEnter: function(e) { 5033 var $a = $(e.currentTarget); 5034 if (!this.handleItemEvents($a)) { 5035 return; 5036 } 5037 if (!this.isTouchMode()) { 5038 if (this.showTimeout) { 5039 clearTimeout(this.showTimeout); 5040 this.showTimeout = 0; 5041 } 5042 var self = this; 5043 this.showTimeout = setTimeout(function() { self.itemActivate($a); }, this.opts.showOnClick && $a.closest('ul').dataSM('level') == 1 ? 1 : this.opts.showTimeout); 5044 } 5045 this.$root.triggerHandler('mouseenter.smapi', $a[0]); 5046 }, 5047 itemFocus: function(e) { 5048 var $a = $(e.currentTarget); 5049 if (!this.handleItemEvents($a)) { 5050 return; 5051 } 5052 // fix (the mousedown check): in some browsers a tap/click produces consecutive focus + click events so we don't need to activate the item on focus 5053 if (this.focusActivated && (!this.isTouchMode() || !$a.dataSM('mousedown')) && (!this.activatedItems.length || this.activatedItems[this.activatedItems.length - 1][0] != $a[0])) { 5054 this.itemActivate($a, true); 5055 } 5056 this.$root.triggerHandler('focus.smapi', $a[0]); 5057 }, 5058 itemLeave: function(e) { 5059 var $a = $(e.currentTarget); 5060 if (!this.handleItemEvents($a)) { 5061 return; 5062 } 5063 if (!this.isTouchMode()) { 5064 $a[0].blur(); 5065 if (this.showTimeout) { 5066 clearTimeout(this.showTimeout); 5067 this.showTimeout = 0; 5068 } 5069 } 5070 $a.removeDataSM('mousedown');
5071 this.$root.triggerHandler('mouseleave.smapi', $a[0]); 5072 }, 5073 menuHide: function($sub) { 5074 if (this.$root.triggerHandler('beforehide.smapi', $sub[0]) === false) { 5075 return; 5076 } 5077 $sub.stop(true, true); 5078 if ($sub.css('display') != 'none') { 5079 var complete = function() { 5080 // unset z-index 5081 $sub.css('z-index', ''); 5082 }; 5083 // if sub is collapsible (mobile view) 5084 if (this.isCollapsible()) { 5085 if (this.opts.collapsibleHideFunction) { 5086 this.opts.collapsibleHideFunction.call(this, $sub, complete); 5087 } else { 5088 $sub.hide(this.opts.collapsibleHideDuration, complete); 5089 } 5090 } else { 5091 if (this.opts.hideFunction) { 5092 this.opts.hideFunction.call(this, $sub, complete); 5093 } else { 5094 $sub.hide(this.opts.hideDuration, complete); 5095 } 5096 } 5097 // remove IE iframe shim 5098 if ($sub.dataSM('ie-shim')) { 5099 $sub.dataSM('ie-shim').remove().css({ '-webkit-transform': '', transform: '' }); 5100 } 5101 // deactivate scrolling if it is activated for this sub 5102 if ($sub.dataSM('scroll')) { 5103 this.menuScrollStop($sub); 5104 $sub.css({ 'touch-action': '', '-ms-touch-action': '', '-webkit-transform': '', transform: '' }) 5105 .unbind('.smartmenus_scroll').removeDataSM('scroll').dataSM('scroll-arrows').hide(); 5106 } 5107 // unhighlight parent item + accessibility 5108 $sub.dataSM('parent-a').removeClass('highlighted').attr('aria-expanded', 'false'); 5109 $sub.attr({ 5110 'aria-expanded': 'false', 5111 'aria-hidden': 'true' 5112 }); 5113 var level = $sub.dataSM('level'); 5114 this.activatedItems.splice(level - 1, 1); 5115 this.visibleSubMenus.splice($.inArray($sub, this.visibleSubMenus), 1); 5116 this.$root.triggerHandler('hide.smapi', $sub[0]); 5117 } 5118 }, 5119 menuHideAll: function() { 5120 if (this.showTimeout) { 5121 clearTimeout(this.showTimeout); 5122 this.showTimeout = 0; 5123 } 5124 // hide all subs 5125 // if it's a popup, this.visibleSubMenus[0] is the root UL 5126 var level = this.opts.isPopup ? 1 : 0; 5127 for (var i = this.visibleSubMenus.length - 1; i >= level; i--) { 5128 this.menuHide(this.visibleSubMenus[i]); 5129 } 5130 // hide root if it's popup 5131 if (this.opts.isPopup) { 5132 this.$root.stop(true, true); 5133 if (this.$root.is(':visible')) { 5134 if (this.opts.hideFunction) { 5135 this.opts.hideFunction.call(this, this.$root); 5136 } else { 5137 this.$root.hide(this.opts.hideDuration); 5138 } 5139 // remove IE iframe shim 5140 if (this.$root.dataSM('ie-shim')) { 5141 this.$root.dataSM('ie-shim').remove(); 5142 } 5143 } 5144 } 5145 this.activatedItems = []; 5146 this.visibleSubMenus = []; 5147 this.clickActivated = false; 5148 this.focusActivated = false; 5149 // reset z-index increment 5150 this.zIndexInc = 0; 5151 this.$root.triggerHandler('hideAll.smapi'); 5152 }, 5153 menuHideSubMenus: function(level) { 5154 for (var i = this.activatedItems.length - 1; i >= level; i--) { 5155 var $sub = this.activatedItems[i].dataSM('sub'); 5156 if ($sub) { 5157 this.menuHide($sub); 5158 } 5159 } 5160 }, 5161 menuIframeShim: function($ul) { 5162 // create iframe shim for the menu 5163 if (IE && this.opts.overlapControlsInIE && !$ul.dataSM('ie-shim')) { 5164 $ul.dataSM('ie-shim', $('<iframe/>').attr({ src: 'javascript:0', tabindex: -9 }) 5165 .css({ position: 'absolute', top: 'auto', left: '0', opacity: 0, border: '0' }) 5166 ); 5167 } 5168 }, 5169 menuInit: function($ul) { 5170 if (!$ul.dataSM('in-mega')) { 5171 // mark UL's in mega drop downs (if any) so we can neglect them 5172 if ($ul.hasClass('mega-menu')) { 5173 $ul.find('ul').dataSM('in-mega', true); 5174 } 5175 // get level (much faster than, for example, using parentsUntil) 5176 var level = 2, 5177 par = $ul[0]; 5178 while ((par = par.parentNode.parentNode) != this.$root[0]) { 5179 level++; 5180 } 5181 // cache stuff for quick access 5182 var $a = $ul.prevAll('a').eq(-1); 5183 // if the link is nested (e.g. in a heading) 5184 if (!$a.length) { 5185 $a = $ul.prevAll().find('a').eq(-1); 5186 } 5187 $a.addClass('has-submenu').dataSM('sub', $ul); 5188 $ul.dataSM('parent-a', $a) 5189 .dataSM('level', level) 5190 .parent().dataSM('sub', $ul); 5191 // accessibility 5192 var aId = $a.attr('id') || this.accessIdPrefix + (++this.idInc), 5193 ulId = $ul.attr('id') || this.accessIdPrefix + (++this.idInc); 5194 $a.attr({ 5195 id: aId, 5196 'aria-haspopup': 'true', 5197 'aria-controls': ulId, 5198 'aria-expanded': 'false' 5199 }); 5200 $ul.attr({ 5201 id: ulId, 5202 'role': 'group', 5203 'aria-hidden': 'true', 5204 'aria-labelledby': aId, 5205 'aria-expanded': 'false' 5206 }); 5207 // add sub indicator to parent item 5208 if (this.opts.subIndicators) { 5209 $a[this.opts.subIndicatorsPos](this.$subArrow.clone()); 5210 } 5211 } 5212 }, 5213 menuPosition: function($sub) { 5214 var $a = $sub.dataSM('parent-a'), 5215 $li = $a.closest('li'), 5216 $ul = $li.parent(), 5217 level = $sub.dataSM('level'), 5218 subW = this.getWidth($sub), 5219 subH = this.getHeight($sub), 5220 itemOffset = $a.offset(), 5221 itemX = itemOffset.left, 5222 itemY = itemOffset.top, 5223 itemW = this.getWidth($a), 5224 itemH = this.getHeight($a), 5225 $win = $(window), 5226 winX = $win.scrollLeft(), 5227 winY = $win.scrollTop(), 5228 winW = this.getViewportWidth(),
5229 winH = this.getViewportHeight(), 5230 horizontalParent = $ul.parent().is('[data-sm-horizontal-sub]') || level == 2 && !$ul.hasClass('sm-vertical'), 5231 rightToLeft = this.opts.rightToLeftSubMenus && !$li.is('[data-sm-reverse]') || !this.opts.rightToLeftSubMenus && $li.is('[data-sm-reverse]'), 5232 subOffsetX = level == 2 ? this.opts.mainMenuSubOffsetX : this.opts.subMenusSubOffsetX, 5233 subOffsetY = level == 2 ? this.opts.mainMenuSubOffsetY : this.opts.subMenusSubOffsetY, 5234 x, y; 5235 if (horizontalParent) { 5236 x = rightToLeft ? itemW - subW - subOffsetX : subOffsetX; 5237 y = this.opts.bottomToTopSubMenus ? -subH - subOffsetY : itemH + subOffsetY; 5238 } else { 5239 x = rightToLeft ? subOffsetX - subW : itemW - subOffsetX; 5240 y = this.opts.bottomToTopSubMenus ? itemH - subOffsetY - subH : subOffsetY; 5241 } 5242 if (this.opts.keepInViewport) { 5243 var absX = itemX + x, 5244 absY = itemY + y; 5245 if (rightToLeft && absX < winX) { 5246 x = horizontalParent ? winX - absX + x : itemW - subOffsetX; 5247 } else if (!rightToLeft && absX + subW > winX + winW) { 5248 x = horizontalParent ? winX + winW - subW - absX + x : subOffsetX - subW; 5249 } 5250 if (!horizontalParent) { 5251 if (subH < winH && absY + subH > winY + winH) { 5252 y += winY + winH - subH - absY; 5253 } else if (subH >= winH || absY < winY) { 5254 y += winY - absY; 5255 } 5256 } 5257 // do we need scrolling? 5258 // 0.49 used for better precision when dealing with float values 5259 if (horizontalParent && (absY + subH > winY + winH + 0.49 || absY < winY) || !horizontalParent && subH > winH + 0.49) { 5260 var self = this; 5261 if (!$sub.dataSM('scroll-arrows')) { 5262 $sub.dataSM('scroll-arrows', $([$('<span class="scroll-up"><span class="scroll-up-arrow"></span></span>')[0], $('<span class="scroll-down"><span class="scroll-down-arrow"></span></span>')[0]]) 5263 .bind({ 5264 mouseenter: function() { 5265 $sub.dataSM('scroll').up = $(this).hasClass('scroll-up'); 5266 self.menuScroll($sub); 5267 }, 5268 mouseleave: function(e) { 5269 self.menuScrollStop($sub); 5270 self.menuScrollOut($sub, e); 5271 }, 5272 'mousewheel DOMMouseScroll': function(e) { e.preventDefault(); } 5273 }) 5274 .insertAfter($sub) 5275 ); 5276 } 5277 // bind scroll events and save scroll data for this sub 5278 var eNS = '.smartmenus_scroll'; 5279 $sub.dataSM('scroll', { 5280 y: this.cssTransforms3d ? 0 : y - itemH, 5281 step: 1, 5282 // cache stuff for faster recalcs later 5283 itemH: itemH, 5284 subH: subH, 5285 arrowDownH: this.getHeight($sub.dataSM('scroll-arrows').eq(1)) 5286 }) 5287 .bind(getEventsNS([ 5288 ['mouseover', function(e) { self.menuScrollOver($sub, e); }], 5289 ['mouseout', function(e) { self.menuScrollOut($sub, e); }], 5290 ['mousewheel DOMMouseScroll', function(e) { self.menuScrollMousewheel($sub, e); }] 5291 ], eNS)) 5292 .dataSM('scroll-arrows').css({ top: 'auto', left: '0', marginLeft: x + (parseInt($sub.css('border-left-width')) || 0), width: subW - (parseInt($sub.css('border-left-width')) || 0) - (parseInt($sub.css('border-right-width')) || 0), zIndex: $sub.css('z-index') }) 5293 .eq(horizontalParent && this.opts.bottomToTopSubMenus ? 0 : 1).show(); 5294 // when a menu tree is fixed positioned we allow scrolling via touch too 5295 // since there is no other way to access such long sub menus if no mouse is present 5296 if (this.isFixed()) { 5297 $sub.css({ 'touch-action': 'none', '-ms-touch-action': 'none' }) 5298 .bind(getEventsNS([ 5299 [touchEvents ? 'touchstart touchmove touchend' : 'pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp', function(e) { 5300 self.menuScrollTouch($sub, e); 5301 }] 5302 ], eNS)); 5303 } 5304 } 5305 } 5306 $sub.css({ top: 'auto', left: '0', marginLeft: x, marginTop: y - itemH }); 5307 // IE iframe shim 5308 this.menuIframeShim($sub); 5309 if ($sub.dataSM('ie-shim')) { 5310 $sub.dataSM('ie-shim').css({ zIndex: $sub.css('z-index'), width: subW, height: subH, marginLeft: x, marginTop: y - itemH }); 5311 } 5312 }, 5313 menuScroll: function($sub, once, step) { 5314 var data = $sub.dataSM('scroll'), 5315 $arrows = $sub.dataSM('scroll-arrows'), 5316 end = data.up ? data.upEnd : data.downEnd, 5317 diff; 5318 if (!once && data.momentum) { 5319 data.momentum *= 0.92; 5320 diff = data.momentum; 5321 if (diff < 0.5) { 5322 this.menuScrollStop($sub); 5323 return; 5324 } 5325 } else { 5326 diff = step || (once || !this.opts.scrollAccelerate ? this.opts.scrollStep : Math.floor(data.step)); 5327 } 5328 // hide any visible deeper level sub menus 5329 var level = $sub.dataSM('level'); 5330 if (this.activatedItems[level - 1] && this.activatedItems[level - 1].dataSM('sub') && this.activatedItems[level - 1].dataSM('sub').is(':visible')) {
5331 this.menuHideSubMenus(level - 1); 5332 } 5333 data.y = data.up && end <= data.y || !data.up && end >= data.y ? data.y : (Math.abs(end - data.y) > diff ? data.y + (data.up ? diff : -diff) : end); 5334 $sub.add($sub.dataSM('ie-shim')).css(this.cssTransforms3d ? { '-webkit-transform': 'translate3d(0, ' + data.y + 'px, 0)', transform: 'translate3d(0, ' + data.y + 'px, 0)' } : { marginTop: data.y }); 5335 // show opposite arrow if appropriate 5336 if (mouse && (data.up && data.y > data.downEnd || !data.up && data.y < data.upEnd)) { 5337 $arrows.eq(data.up ? 1 : 0).show(); 5338 } 5339 // if we've reached the end 5340 if (data.y == end) { 5341 if (mouse) { 5342 $arrows.eq(data.up ? 0 : 1).hide(); 5343 } 5344 this.menuScrollStop($sub); 5345 } else if (!once) { 5346 if (this.opts.scrollAccelerate && data.step < this.opts.scrollStep) { 5347 data.step += 0.2; 5348 } 5349 var self = this; 5350 this.scrollTimeout = requestAnimationFrame(function() { self.menuScroll($sub); }); 5351 } 5352 }, 5353 menuScrollMousewheel: function($sub, e) { 5354 if (this.getClosestMenu(e.target) == $sub[0]) { 5355 e = e.originalEvent; 5356 var up = (e.wheelDelta || -e.detail) > 0; 5357 if ($sub.dataSM('scroll-arrows').eq(up ? 0 : 1).is(':visible')) { 5358 $sub.dataSM('scroll').up = up; 5359 this.menuScroll($sub, true); 5360 } 5361 } 5362 e.preventDefault(); 5363 }, 5364 menuScrollOut: function($sub, e) { 5365 if (mouse) { 5366 if (!/^scroll-(up|down)/.test((e.relatedTarget || '').className) && ($sub[0] != e.relatedTarget && !$.contains($sub[0], e.relatedTarget) || this.getClosestMenu(e.relatedTarget) != $sub[0])) { 5367 $sub.dataSM('scroll-arrows').css('visibility', 'hidden'); 5368 } 5369 } 5370 }, 5371 menuScrollOver: function($sub, e) { 5372 if (mouse) { 5373 if (!/^scroll-(up|down)/.test(e.target.className) && this.getClosestMenu(e.target) == $sub[0]) { 5374 this.menuScrollRefreshData($sub); 5375 var data = $sub.dataSM('scroll'), 5376 upEnd = $(window).scrollTop() - $sub.dataSM('parent-a').offset().top - data.itemH; 5377 $sub.dataSM('scroll-arrows').eq(0).css('margin-top', upEnd).end() 5378 .eq(1).css('margin-top', upEnd + this.getViewportHeight() - data.arrowDownH).end() 5379 .css('visibility', 'visible'); 5380 } 5381 } 5382 }, 5383 menuScrollRefreshData: function($sub) { 5384 var data = $sub.dataSM('scroll'), 5385 upEnd = $(window).scrollTop() - $sub.dataSM('parent-a').offset().top - data.itemH; 5386 if (this.cssTransforms3d) { 5387 upEnd = -(parseFloat($sub.css('margin-top')) - upEnd); 5388 } 5389 $.extend(data, { 5390 upEnd: upEnd, 5391 downEnd: upEnd + this.getViewportHeight() - data.subH 5392 }); 5393 }, 5394 menuScrollStop: function($sub) { 5395 if (this.scrollTimeout) { 5396 cancelAnimationFrame(this.scrollTimeout); 5397 this.scrollTimeout = 0; 5398 $sub.dataSM('scroll').step = 1; 5399 return true; 5400 } 5401 }, 5402 menuScrollTouch: function($sub, e) { 5403 e = e.originalEvent; 5404 if (isTouchEvent(e)) { 5405 var touchPoint = this.getTouchPoint(e); 5406 // neglect event if we touched a visible deeper level sub menu 5407 if (this.getClosestMenu(touchPoint.target) == $sub[0]) { 5408 var data = $sub.dataSM('scroll'); 5409 if (/(start|down)$/i.test(e.type)) { 5410 if (this.menuScrollStop($sub)) { 5411 // if we were scrolling, just stop and don't activate any link on the first touch 5412 e.preventDefault(); 5413 this.$touchScrollingSub = $sub; 5414 } else { 5415 this.$touchScrollingSub = null; 5416 } 5417 // update scroll data since the user might have zoomed, etc. 5418 this.menuScrollRefreshData($sub); 5419 // extend it with the touch properties 5420 $.extend(data, { 5421 touchStartY: touchPoint.pageY, 5422 touchStartTime: e.timeStamp 5423 }); 5424 } else if (/move$/i.test(e.type)) { 5425 var prevY = data.touchY !== undefined ? data.touchY : data.touchStartY; 5426 if (prevY !== undefined && prevY != touchPoint.pageY) { 5427 this.$touchScrollingSub = $sub; 5428 var up = prevY < touchPoint.pageY; 5429 // changed direction? reset... 5430 if (data.up !== undefined && data.up != up) { 5431 $.extend(data, { 5432 touchStartY: touchPoint.pageY, 5433 touchStartTime: e.timeStamp 5434 }); 5435 } 5436 $.extend(data, { 5437 up: up, 5438 touchY: touchPoint.pageY 5439 }); 5440 this.menuScroll($sub, true, Math.abs(touchPoint.pageY - prevY)); 5441 } 5442 e.preventDefault(); 5443 } else { // touchend/pointerup 5444 if (data.touchY !== undefined) { 5445 if (data.momentum = Math.pow(Math.abs(touchPoint.pageY - data.touchStartY) / (e.timeStamp - data.touchStartTime), 2) * 15) { 5446 this.menuScrollStop($sub); 5447 this.menuScroll($sub); 5448 e.preventDefault(); 5449 } 5450 delete data.touchY; 5451 } 5452 } 5453 } 5454 } 5455 }, 5456 menuShow: function($sub) { 5457 if (!$sub.dataSM('beforefirstshowfired')) { 5458 $sub.dataSM('beforefirstshowfired', true); 5459 if (this.$root.triggerHandler('beforefirstshow.smapi', $sub[0]) === false) { 5460 return; 5461 } 5462 } 5463 if (this.$root.triggerHandler('beforeshow.smapi', $sub[0]) === false) { 5464 return; 5465 } 5466 $sub.dataSM('shown-before', true) 5467 .stop(true, true); 5468 if (!$sub.is(':visible')) { 5469 // highlight parent item 5470 var $a = $sub.dataSM('parent-a'); 5471 if (this.opts.keepHighlighted || this.isCollapsible()) { 5472 $a.addClass('highlighted'); 5473 } 5474 if (this.isCollapsible()) { 5475 $sub.removeClass('sm-nowrap').css({ zIndex: '', width: 'auto', minWidth: '', maxWidth: '', top: '', left: '', marginLeft: '', marginTop: '' }); 5476 } else { 5477 // set z-index 5478 $sub.css('z-index', this.zIndexInc = (this.zIndexInc || this.get
5478StartZIndex()) + 1); 5479 // min/max-width fix - no way to rely purely on CSS as all UL's are nested 5480 if (this.opts.subMenusMinWidth || this.opts.subMenusMaxWidth) { 5481 $sub.css({ width: 'auto', minWidth: '', maxWidth: '' }).addClass('sm-nowrap'); 5482 if (this.opts.subMenusMinWidth) { 5483 $sub.css('min-width', this.opts.subMenusMinWidth); 5484 } 5485 if (this.opts.subMenusMaxWidth) { 5486 var noMaxWidth = this.getWidth($sub); 5487 $sub.css('max-width', this.opts.subMenusMaxWidth); 5488 if (noMaxWidth > this.getWidth($sub)) { 5489 $sub.removeClass('sm-nowrap').css('width', this.opts.subMenusMaxWidth); 5490 } 5491 } 5492 } 5493 this.menuPosition($sub); 5494 // insert IE iframe shim 5495 if ($sub.dataSM('ie-shim')) { 5496 $sub.dataSM('ie-shim').insertBefore($sub); 5497 } 5498 } 5499 var complete = function() { 5500 // fix: "overflow: hidden;" is not reset on animation complete in jQuery < 1.9.0 in Chrome when global "box-sizing: border-box;" is used 5501 $sub.css('overflow', ''); 5502 }; 5503 // if sub is collapsible (mobile view) 5504 if (this.isCollapsible()) { 5505 if (this.opts.collapsibleShowFunction) { 5506 this.opts.collapsibleShowFunction.call(this, $sub, complete); 5507 } else { 5508 $sub.show(this.opts.collapsibleShowDuration, complete); 5509 } 5510 } else { 5511 if (this.opts.showFunction) { 5512 this.opts.showFunction.call(this, $sub, complete); 5513 } else { 5514 $sub.show(this.opts.showDuration, complete); 5515 } 5516 } 5517 // accessibility 5518 $a.attr('aria-expanded', 'true'); 5519 $sub.attr({ 5520 'aria-expanded': 'true', 5521 'aria-hidden': 'false' 5522 }); 5523 // store sub menu in visible array 5524 this.visibleSubMenus.push($sub); 5525 this.$root.triggerHandler('show.smapi', $sub[0]); 5526 } 5527 }, 5528 popupHide: function(noHideTimeout) { 5529 if (this.hideTimeout) { 5530 clearTimeout(this.hideTimeout); 5531 this.hideTimeout = 0; 5532 } 5533 var self = this; 5534 this.hideTimeout = setTimeout(function() { 5535 self.menuHideAll(); 5536 }, noHideTimeout ? 1 : this.opts.hideTimeout); 5537 }, 5538 popupShow: function(left, top) { 5539 if (!this.opts.isPopup) { 5540 alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.'); 5541 return; 5542 } 5543 if (this.hideTimeout) { 5544 clearTimeout(this.hideTimeout); 5545 this.hideTimeout = 0; 5546 } 5547 this.$root.dataSM('shown-before', true) 5548 .stop(true, true); 5549 if (!this.$root.is(':visible')) { 5550 this.$root.css({ left: left, top: top }); 5551 // IE iframe shim 5552 this.menuIframeShim(this.$root); 5553 if (this.$root.dataSM('ie-shim')) { 5554 this.$root.dataSM('ie-shim').css({ zIndex: this.$root.css('z-index'), width: this.getWidth(this.$root), height: this.getHeight(this.$root), left: left, top: top }).insertBefore(this.$root); 5555 } 5556 // show menu 5557 var self = this, 5558 complete = function() { 5559 self.$root.css('overflow', ''); 5560 }; 5561 if (this.opts.showFunction) { 5562 this.opts.showFunction.call(this, this.$root, complete); 5563 } else { 5564 this.$root.show(this.opts.showDuration, complete); 5565 } 5566 this.visibleSubMenus[0] = this.$root; 5567 } 5568 }, 5569 refresh: function() { 5570 this.destroy(true); 5571 this.init(true); 5572 }, 5573 rootKeyDown: function(e) { 5574 if (!this.handleEvents()) { 5575 return; 5576 } 5577 switch (e.keyCode) { 5578 case 27: // reset on Esc 5579 var $activeTopItem = this.activatedItems[0]; 5580 if ($activeTopItem) { 5581 this.menuHideAll(); 5582 $activeTopItem[0].focus(); 5583 var $sub = $activeTopItem.dataSM('sub'); 5584 if ($sub) { 5585 this.menuHide($sub); 5586 } 5587 } 5588 break; 5589 case 32: // activate item's sub on Space 5590 var $target = $(e.target); 5591 if ($target.is('a') && this.handleItemEvents($target)) { 5592 var $sub = $target.dataSM('sub'); 5593 if ($sub && !$sub.is(':visible')) { 5594 this.itemClick({ currentTarget: e.target }); 5595 e.preventDefault(); 5596 } 5597 } 5598 break; 5599 } 5600 }, 5601 rootOut: function(e) { 5602 if (!this.handleEvents() || this.isTouchMode() || e.target == this.$root[0]) { 5603 return; 5604 } 5605 if (this.hideTimeout) { 5606 clearTimeout(this.hideTimeout); 5607 this.hideTimeout = 0; 5608 } 5609 if (!this.opts.showOnClick || !this.opts.hideOnClick) { 5610 var self = this; 5611 this.hideTimeout = setTimeout(function() { self.menuHideAll(); }, this.opts.hideTimeout); 5612 } 5613 }, 5614 rootOver: function(e) { 5615 if (!this.handleEvents() || this.isTouchMode() || e.target == this.$root[0]) { 5616 return; 5617 } 5618 if (this.hideTimeout) { 5619 clearTimeout(this.hideTimeout); 5620 this.hideTimeout = 0; 5621 } 5622 }, 5623 winResize: function(e) { 5624 if (!this.handleEvents()) { 5625 // we still need to resize the disable overlay if it's visible 5626 if (this.$disableOverlay) { 5627 var pos = this.$root.offset(); 5628 this.$disableOverlay.css({ 5629 top: pos.top, 5630 left: pos.left, 5631 width: this.$root.outerWidth(), 5632 height: this.$root.outerHeight() 5633 }); 5634 } 5635 return; 5636 } 5637 // hide sub menus on resize - on mobile do it only on orientation change 5638 if (!('onorientationchange' in window) || e.type == 'orientationchange') { 5639 var isCollapsible = this.isCollapsible(); 5640 // if it was collapsible before resize and still is, don't do it 5641 if (!(this.wasCollapsible && isCollapsible)) { 5642 if (this.activatedItems.length) { 5643 this.activatedItems[this.activatedItems.length - 1][0].blur(); 5644 } 5645 this.menuHideAll(); 5646 } 5647 this.wasCollapsible = isCollapsible; 5648 } 5649 } 5650 } 5651 }); 5652 5653 $.fn.dataSM = function(key, val) { 5654 if (val) { 5655 return this.data(key + '_smartmenus', val); 5656 } 5657 return this.data(key + '_smartmenus'); 5658 }; 5659 5660 $.fn.removeDataSM = function(key) { 5661 return this.removeData(key + '_smartmenus'); 5662 }; 5663 5664 $.fn.smartmenus = function(options) { 5665 if (typeof options == 'string') { 5666 var args = arguments, 5667 method = options; 5668 Array.prototype.shift.call(args); 5669 return this.each(function() { 5670 var smartmenus = $(this).data('smartmenus'); 5671 if (smartmenus && smartmenus[method]) { 5672 smartmenus[method].apply(smartmenus, args); 5673 } 5674 }); 5675 } 5676 return this.each(function() { 5677 // [data-sm-options] attribute on the root UL 5678 var dataOpts = $(this).data('sm-options') || null; 5679 if (dataOpts) { 5680 try { 5681 dataOpts = eval('(' + dataOpts + ')'); 5682 } catch(e) { 5683 dataOpts = null;
5684 alert('ERROR\n\nSmartMenus jQuery init:\nInvalid "data-sm-options" attribute value syntax.'); 5685 }; 5686 } 5687 new $.SmartMenus(this, $.extend({}, $.fn.smartmenus.defaults, options, dataOpts)); 5688 }); 5689 }; 5690 5691 // default settings 5692 $.fn.smartmenus.defaults = { 5693 isPopup: false, // is this a popup menu (can be shown via the popupShow/popupHide methods) or a permanent menu bar 5694 mainMenuSubOffsetX: 0, // pixels offset from default position 5695 mainMenuSubOffsetY: 0, // pixels offset from default position 5696 subMenusSubOffsetX: 0, // pixels offset from default position 5697 subMenusSubOffsetY: 0, // pixels offset from default position 5698 subMenusMinWidth: '10em', // min-width for the sub menus (any CSS unit) - if set, the fixed width set in CSS will be ignored 5699 subMenusMaxWidth: '20em', // max-width for the sub menus (any CSS unit) - if set, the fixed width set in CSS will be ignored 5700 subIndicators: true, // create sub menu indicators - creates a SPAN and inserts it in the A 5701 subIndicatorsPos: 'prepend', // position of the SPAN relative to the menu item content ('prepend', 'append') 5702 subIndicatorsText: '+', // [optionally] add text in the SPAN (e.g. '+') (you may want to check the CSS for the sub indicators too) 5703 scrollStep: 30, // pixels step when scrolling long sub menus that do not fit in the viewport height 5704 scrollAccelerate: true, // accelerate scrolling or use a fixed step 5705 showTimeout: 250, // timeout before showing the sub menus 5706 hideTimeout: 500, // timeout before hiding the sub menus 5707 showDuration: 0, // duration for show animation - set to 0 for no animation - matters only if showFunction:null 5708 showFunction: null, // custom function to use when showing a sub menu (the default is the jQuery 'show') 5709 // don't forget to call complete() at the end of whatever you do 5710 // e.g.: function($ul, complete) { $ul.fadeIn(250, complete); } 5711 hideDuration: 0, // duration for hide animation - set to 0 for no animation - matters only if hideFunction:null 5712 hideFunction: function($ul, complete) { $ul.fadeOut(200, complete); }, // custom function to use when hiding a sub menu (the default is the jQuery 'hide') 5713 // don't forget to call complete() at the end of whatever you do 5714 // e.g.: function($ul, complete) { $ul.fadeOut(250, complete); } 5715 collapsibleShowDuration:0, // duration for show animation for collapsible sub menus - matters only if collapsibleShowFunction:null 5716 collapsibleShowFunction:function($ul, complete) { $ul.slideDown(200, complete); }, // custom function to use when showing a collapsible sub menu 5717 // (i.e. when mobile styles are used to make the sub menus collapsible) 5718 collapsibleHideDuration:0, // duration for hide animation for collapsible sub menus - matters only if collapsibleHideFunction:null 5719 collapsibleHideFunction:function($ul, complete) { $ul.slideUp(200, complete); }, // custom function to use when hiding a collapsible sub menu 5720 // (i.e. when mobile styles are used to make the sub menus collapsible) 5721 showOnClick: false, // show the first-level sub menus onclick instead of onmouseover (i.e. mimic desktop app menus) (matters only for mouse input) 5722 hideOnClick: true, // hide the sub menus on click/tap anywhere on the page 5723 noMouseOver: false, // disable sub menus activation onmouseover (i.e. behave like in touch mode - use just mouse clicks) (matters only for mouse input) 5724 keepInViewport: true, // reposition the sub menus if needed to make sure they always appear inside the viewport 5725 keepHighlighted: true, // keep all ancestor items of the current sub menu highlighted (adds the 'highlighted' class to the A's) 5726 markCurrentItem: false, // automatically add the 'current' class to the A element of the item linking to the current URL 5727 markCurrentTree: true, // add the 'current' class also to the A elements of all ancestor items of the current item 5728 rightToLeftSubMenus: false, // right to left display of the sub menus (check the CSS for the sub indicators' position) 5729 bottomToTopSubMenus: false, // bottom to top display of the sub menus
5730 overlapControlsInIE: true // make sure sub menus appear on top of special OS controls in IE (i.e. SELECT, OBJECT, EMBED, etc.) 5731 }; 5732 5733 return $; 5734})); 5735/*! 5736 * SmartMenus jQuery Plugin Bootstrap Addon - v0.2.0 - June 1, 2015 5737 * http://www.smartmenus.org/ 5738 * 5739 * Copyright 2015 Vasil Dinkov, Vadikom Web Ltd. 5740 * http://vadikom.com 5741 * 5742 * Licensed MIT 5743 */ 5744 5745(function($) { 5746 5747 // init ondomready 5748 $(function() { 5749 5750 // init all navbars that don't have the "data-sm-skip" attribute set 5751 var $navbars = $('ul.smartmenus:not([data-sm-skip])'); 5752 $navbars.each(function() { 5753 var $this = $(this); 5754 $this.addClass('sm').smartmenus({ 5755 5756 // these are some good default options that should work for all 5757 // you can, of course, tweak these as you like 5758 subMenusSubOffsetX: 0, 5759 subMenusSubOffsetY: -7, 5760 mainMenuSubOffsetX: 0, 5761 subIndicators: false, 5762 hideOnClick: true, 5763 showOnClick: false, 5764 showTimeout: 100, 5765 collapsibleShowFunction: null, 5766 collapsibleHideFunction: null, 5767 subMenusMinWidth: '15em', 5768 subMenusMaxWidth: null, 5769 keepInViewport: false, 5770 keepHighlighted: true 5771 //rightToLeftSubMenus: $this.hasClass('navbar-right'), 5772 //bottomToTopSubMenus: $this.closest('.navbar').hasClass('navbar-fixed-bottom') 5773 }); 5774 5775 // keep Bootstrap's default behavior for parent items when the "data-sm-skip-collapsible-behavior" attribute is set to the ul.navbar-nav 5776 // i.e. use the whole item area just as a sub menu toggle and don't customize the carets 5777 var obj = $this.data('smartmenus'); 5778 if ($this.is('[data-sm-skip-collapsible-behavior]')) { 5779 $this.bind({ 5780 // click the parent item to toggle the sub menus (and reset deeper levels and other branches on click) 5781 'click.smapi': function(e, item) { 5782 if (obj.isCollapsible()) { 5783 var $item = $(item), 5784 $sub = $item.parent().dataSM('sub'); 5785 if ($sub && $sub.dataSM('shown-before') && $sub.is(':visible')) { 5786 obj.itemActivate($item); 5787 obj.menuHide($sub); 5788 return false; 5789 } 5790 } 5791 } 5792 }); 5793 } 5794 5795 var $carets = $this.find('.caret'); 5796 5797 // onresize detect when the navbar becomes collapsible and add it the "sm-collapsible" class 5798 var winW; 5799 function winResize() { 5800 var newW = obj.getViewportWidth(); 5801 if (newW != winW) { 5802 if (obj.isCollapsible()) { 5803 $this.addClass('sm-collapsible'); 5804 5805 } else { 5806 $this.removeClass('sm-collapsible'); 5807 if (!$this.is('[data-sm-skip-collapsible-behavior]')) { 5808 $carets.removeClass('navbar-toggle sub-arrow'); 5809 } 5810 } 5811 winW = newW; 5812 } 5813 }; 5814 winResize(); 5815 $(window).bind('resize.smartmenus' + obj.rootId, winResize); 5816 }); 5817 5818 }); 5819 5820 5821 5822})(jQuery); 5823/*! 5824 * fancyBox - jQuery Plugin 5825 * version: 2.1.5 (Fri, 14 Jun 2013) 5826 * @requires jQuery v1.6 or later 5827 * 5828 * Examples at http://fancyapps.com/fancybox/ 5829 * License: www.fancyapps.com/fancybox/#license 5830 * 5831 * Copyright 2012 Janis Skarnelis - [email protected] 5832 * 5833 */ 5834 5835(function (window, document, $, undefined) { 5836 "use strict"; 5837 5838 var H = $("html"), 5839 W = $(window), 5840 D = $(document), 5841 F = $.fancybox = function () { 5842 F.open.apply( this, arguments ); 5843 }, 5844 IE = navigator.userAgent.match(/msie/i), 5845 didUpdate = null, 5846 isTouch = document.createTouch !== undefined, 5847 5848 isQuery = function(obj) { 5849 return obj && obj.hasOwnProperty && obj instanceof $; 5850 }, 5851 isString = function(str) { 5852 return str && $.type(str) === "string"; 5853 }, 5854 isPercentage = function(str) { 5855 return isString(str) && str.indexOf('%') > 0; 5856 }, 5857 isScrollable = function(el) { 5858 return (el && !(el.style.overflow && el.style.overflow === 'hidden') && ((el.clientWidth && el.scrollWidth > el.clientWidth) || (el.clientHeight && el.scrollHeight > el.clientHeight))); 5859 }, 5860 getScalar = function(orig, dim) { 5861 var value = parseInt(orig, 10) || 0; 5862 5863 if (dim && isPercentage(orig)) { 5864 value = F.getViewport()[ dim ] / 100 * value; 5865 } 5866 5867 return Math.ceil(value); 5868 }, 5869 getValue = function(value, dim) { 5870 return getScalar(value, dim) + 'px'; 5871 }; 5872 5873 $.extend(F, { 5874 // The current version of fancyBox 5875 version: '2.1.5', 5876 5877 defaults: { 5878 padding : 15, 5879 margin : 20, 5880 5881 width : 800, 5882 height : 600, 5883 minWidth : 100, 5884 minHeight : 100, 5885 maxWidth : 9999, 5886 maxHeight : 9999,
vendor: 16,174 bytes, lines 5887-6583
5887 pixelRatio: 1, // Set to 2 for retina display support 5888 5889 autoSize : true, 5890 autoHeight : false, 5891 autoWidth : false, 5892 5893 autoResize : true, 5894 autoCenter : !isTouch, 5895 fitToView : true, 5896 aspectRatio : false, 5897 topRatio : 0.5, 5898 leftRatio : 0.5, 5899 5900 scrolling : 'auto', // 'auto', 'yes' or 'no' 5901 wrapCSS : '', 5902 5903 arrows : true, 5904 closeBtn : true, 5905 closeClick : false, 5906 nextClick : false, 5907 mouseWheel : true, 5908 autoPlay : false, 5909 playSpeed : 3000, 5910 preload : 3, 5911 modal : false, 5912 loop : true, 5913 5914 ajax : { 5915 dataType : 'html', 5916 headers : { 'X-fancyBox': true } 5917 }, 5918 iframe : { 5919 scrolling : 'auto', 5920 preload : true 5921 }, 5922 swf : { 5923 wmode: 'transparent', 5924 allowfullscreen : 'true', 5925 allowscriptaccess : 'always' 5926 }, 5927 5928 keys : { 5929 next : { 5930 13 : 'left', // enter 5931 34 : 'up', // page down 5932 39 : 'left', // right arrow 5933 40 : 'up' // down arrow 5934 }, 5935 prev : { 5936 8 : 'right', // backspace 5937 33 : 'down', // page up 5938 37 : 'right', // left arrow 5939 38 : 'down' // up arrow 5940 }, 5941 close : [27], // escape key 5942 play : [32], // space - start/stop slideshow 5943 toggle : [70] // letter "f" - toggle fullscreen 5944 }, 5945 5946 direction : { 5947 next : 'left', 5948 prev : 'right' 5949 }, 5950 5951 scrollOutside : true, 5952 5953 // Override some properties 5954 index : 0, 5955 type : null, 5956 href : null, 5957 content : null, 5958 title : null, 5959 5960 // HTML templates 5961 tpl: { 5962 wrap : '<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>', 5963 image : '<img class="fancybox-image" src="{href}" alt="" />', 5964 iframe : '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen' + (IE ? ' allowtransparency="true"' : '') + '></iframe>', 5965 error : '<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>', 5966 closeBtn : '<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>', 5967 next : '<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>', 5968 prev : '<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>' 5969 }, 5970 5971 // Properties for each animation type 5972 // Opening fancyBox 5973 openEffect : 'fade', // 'elastic', 'fade' or 'none' 5974 openSpeed : 250, 5975 openEasing : 'swing', 5976 openOpacity : true, 5977 openMethod : 'zoomIn', 5978 5979 // Closing fancyBox 5980 closeEffect : 'fade', // 'elastic', 'fade' or 'none' 5981 closeSpeed : 250, 5982 closeEasing : 'swing', 5983 closeOpacity : true, 5984 closeMethod : 'zoomOut', 5985 5986 // Changing next gallery item 5987 nextEffect : 'elastic', // 'elastic', 'fade' or 'none' 5988 nextSpeed : 250, 5989 nextEasing : 'swing', 5990 nextMethod : 'changeIn', 5991 5992 // Changing previous gallery item 5993 prevEffect : 'elastic', // 'elastic', 'fade' or 'none' 5994 prevSpeed : 250, 5995 prevEasing : 'swing', 5996 prevMethod : 'changeOut', 5997 5998 // Enable default helpers 5999 helpers : { 6000 overlay : true, 6001 title : true 6002 }, 6003 6004 // Callbacks 6005 onCancel : $.noop, // If canceling 6006 beforeLoad : $.noop, // Before loading 6007 afterLoad : $.noop, // After loading 6008 beforeShow : $.noop, // Before changing in current item 6009 afterShow : $.noop, // After opening 6010 beforeChange : $.noop, // Before changing gallery item 6011 beforeClose : $.noop, // Before closing 6012 afterClose : $.noop // After closing 6013 }, 6014 6015 //Current state 6016 group : {}, // Selected group 6017 opts : {}, // Group options 6018 previous : null, // Previous element 6019 coming : null, // Element being loaded 6020 current : null, // Currently loaded element 6021 isActive : false, // Is activated 6022 isOpen : false, // Is currently open 6023 isOpened : false, // Have been fully opened at least once 6024 6025 wrap : null, 6026 skin : null, 6027 outer : null, 6028 inner : null, 6029 6030 player : { 6031 timer : null, 6032 isActive : false 6033 }, 6034 6035 // Loaders 6036 ajaxLoad : null, 6037 imgPreload : null, 6038 6039 // Some collections 6040 transitions : {}, 6041 helpers : {}, 6042 6043 /* 6044 * Static methods 6045 */ 6046 6047 open: function (group, opts) { 6048 if (!group) { 6049 return; 6050 } 6051 6052 if (!$.isPlainObject(opts)) { 6053 opts = {}; 6054 } 6055 6056 // Close if already active 6057 if (false === F.close(true)) { 6058 return; 6059 } 6060 6061 // Normalize group 6062 if (!$.isArray(group)) { 6063 group = isQuery(group) ? $(group).get() : [group]; 6064 } 6065 6066 // Recheck if the type of each element is `object` and set content type (image, ajax, etc) 6067 $.each(group, function(i, element) { 6068 var obj = {}, 6069 href, 6070 title, 6071 content, 6072 type, 6073 rez, 6074 hrefParts, 6075 selector; 6076 6077 if ($.type(element) === "object") { 6078 // Check if is DOM element 6079 if (element.nodeType) { 6080 element = $(element); 6081 } 6082 6083 if (isQuery(element)) { 6084 obj = { 6085 href : element.data('fancybox-href') || element.attr('href'), 6086 title : element.data('fancybox-title') || element.attr('title'), 6087 isDom : true, 6088 element : element 6089 }; 6090 6091 if ($.metadata) { 6092 $.extend(true, obj, element.metadata()); 6093 } 6094 6095 } else { 6096 obj = element; 6097 } 6098 } 6099 6100 href = opts.href || obj.href || (isString(element) ? element : null); 6101 title = opts.title !== undefined ? opts.title : obj.title || ''; 6102 6103 content = opts.content || obj.content; 6104 type = content ? 'html' : (opts.type || obj.type); 6105 6106 if (!type && obj.isDom) { 6107 type = element.data('fancybox-type'); 6108 6109 if (!type) { 6110 rez = element.prop('class').match(/fancybox\.(\w+)/); 6111 type = rez ? rez[1] : null; 6112 } 6113 } 6114 6115 if (isString(href)) { 6116 // Try to guess the content type 6117 if (!type) { 6118 if (F.isImage(href)) { 6119 type = 'image'; 6120 6121 } else if (F.isSWF(href)) { 6122 type = 'swf'; 6123 6124 } else if (href.charAt(0) === '#') { 6125 type = 'inline'; 6126 6127 } else if (isString(element)) { 6128 type = 'html'; 6129 content = element; 6130 } 6131 } 6132 6133 // Split url into two pieces with source url and content selector, e.g, 6134 // "/mypage.html #my_id" will load "/mypage.html" and display element having id "my_id" 6135 if (type === 'ajax') { 6136 hrefParts = href.split(/\s+/, 2); 6137 href = hrefParts.shift(); 6138 selector = hrefParts.shift(); 6139 } 6140 } 6141 6142 if (!content) { 6143 if (type === 'inline') { 6144 if (href) { 6145 content = $( isString(href) ? href.replace(/.*(?=#[^\s]+$)/, '') : href ); //strip for ie7 6146 6147 } else if (obj.isDom) { 6148 content = element; 6149 } 6150 6151 } else if (type === 'html') { 6152 content = href; 6153 6154 } else if (!type && !href && obj.isDom) { 6155 type = 'inline'; 6156 content = element; 6157 } 6158 } 6159 6160 $.extend(obj, { 6161 href : href, 6162 type : type, 6163 content : content, 6164 title : title, 6165 selector : selector 6166 }); 6167 6168 group[ i ] = obj; 6169 }); 6170 6171 // Extend the defaults 6172 F.opts = $.extend(true, {}, F.defaults, opts); 6173 6174 // All options are merged recursive except keys 6175 if (opts.keys !== undefined) { 6176 F.opts.keys = opts.keys ? $.extend({}, F.defaults.keys, opts.keys) : false; 6177 } 6178 6179 F.group = group; 6180 6181 return F._start(F.opts.index); 6182 }, 6183 6184 // Cancel image loading or abort ajax request 6185 cancel: function () { 6186 var coming = F.coming; 6187 6188 if (!coming || false === F.trigger('onCancel')) { 6189 return; 6190 } 6191 6192 F.hideLoading(); 6193 6194 if (F.ajaxLoad) { 6195 F.ajaxLoad.abort(); 6196 } 6197 6198 F.ajaxLoad = null; 6199 6200 if (F.imgPreload) { 6201 F.imgPreload.onload = F.imgPreload.onerror = null; 6202 } 6203 6204 if (coming.wrap) { 6205 coming.wrap.stop(true, true).trigger('onReset').remove(); 6206 } 6207 6208 F.coming = null; 6209 6210 // If the first item has been canceled, then clear everything 6211 if (!F.current) { 6212 F._afterZoomOut( coming ); 6213 } 6214 }, 6215 6216 // Start closing animation if is open; remove immediately if opening/closing 6217 close: function (event) { 6218 F.cancel(); 6219 6220 if (false === F.trigger('beforeClose')) { 6221 return; 6222 } 6223 6224 F.unbindEvents(); 6225 6226 if (!F.isActive) { 6227 return; 6228 } 6229 6230 if (!F.isOpen || event === true) { 6231 $('.fancybox-wrap').stop(true).trigger('onReset').remove(); 6232 6233 F._afterZoomOut(); 6234 6235 } else { 6236 F.isOpen = F.isOpened = false; 6237 F.isClosing = true; 6238 6239 $('.fancybox-item, .fancybox-nav').remove(); 6240 6241 F.wrap.stop(true, true).removeClass('fancybox-opened'); 6242 6243 F.transitions[ F.current.closeMethod ](); 6244 } 6245 }, 6246 6247 // Manage slideshow: 6248 // $.fancybox.play(); - toggle slideshow 6249 // $.fancybox.play( true ); - start 6250 // $.fancybox.play( false ); - stop 6251 play: function ( action ) { 6252 var clear = function () { 6253 clearTimeout(F.player.timer); 6254 }, 6255 set = function () { 6256 clear(); 6257 6258 if (F.current && F.player.isActive) { 6259 F.player.timer = setTimeout(F.next, F.current.playSpeed); 6260 } 6261 }, 6262 stop = function () { 6263 clear(); 6264 6265 D.unbind('.player'); 6266 6267 F.player.isActive = false; 6268 6269 F.trigger('onPlayEnd'); 6270 }, 6271 start = function () { 6272 if (F.current && (F.current.loop || F.current.index < F.group.length - 1)) { 6273 F.player.isActive = true; 6274 6275 D.bind({ 6276 'onCancel.player beforeClose.player' : stop, 6277 'onUpdate.player' : set, 6278 'beforeLoad.player' : clear 6279 }); 6280 6281 set(); 6282 6283 F.trigger('onPlayStart'); 6284 } 6285 }; 6286 6287 if (action === true || (!F.player.isActive && action !== false)) { 6288 start(); 6289 } else { 6290 stop(); 6291 } 6292 }, 6293 6294 // Navigate to next gallery item 6295 next: function ( direction ) { 6296 var current = F.current; 6297 6298 if (current) { 6299 if (!isString(direction)) { 6300 direction = current.direction.next; 6301 } 6302 6303 F.jumpto(current.index + 1, direction, 'next'); 6304 } 6305 }, 6306 6307 // Navigate to previous gallery item 6308 prev: function ( direction ) { 6309 var current = F.current; 6310 6311 if (current) { 6312 if (!isString(direction)) { 6313 direction = current.direction.prev; 6314 } 6315 6316 F.jumpto(current.index - 1, direction, 'prev'); 6317 } 6318 }, 6319 6320 // Navigate to gallery item by index 6321 jumpto: function ( index, direction, router ) { 6322 var current = F.current; 6323 6324 if (!current) { 6325 return; 6326 } 6327 6328 index = getScalar(index); 6329 6330 F.direction = direction || current.direction[ (index >= current.index ? 'next' : 'prev') ]; 6331 F.router = router || 'jumpto'; 6332 6333 if (current.loop) { 6334 if (index < 0) { 6335 index = current.group.length + (index % current.group.length); 6336 } 6337 6338 index = index % current.group.length; 6339 } 6340 6341 if (current.group[ index ] !== undefined) { 6342 F.cancel(); 6343 6344 F._start(index); 6345 } 6346 }, 6347 6348 // Center inside viewport and toggle position type to fixed or absolute if needed 6349 reposition: function (e, onlyAbsolute) { 6350 var current = F.current, 6351 wrap = current ? current.wrap : null, 6352 pos; 6353 6354 if (wrap) { 6355 pos = F._getPosition(onlyAbsolute); 6356 6357 if (e && e.type === 'scroll') { 6358 delete pos.position; 6359 6360 wrap.stop(true, true).animate(pos, 200); 6361 6362 } else { 6363 wrap.css(pos); 6364 6365 current.pos = $.extend({}, current.dim, pos); 6366 } 6367 } 6368 }, 6369 6370 update: function (e) { 6371 var type = (e && e.type), 6372 anyway = !type || type === 'orientationchange'; 6373 6374 if (anyway) { 6375 clearTimeout(didUpdate); 6376 6377 didUpdate = null; 6378 } 6379 6380 if (!F.isOpen || didUpdate) { 6381 return; 6382 } 6383 6384 didUpdate = setTimeout(function() { 6385 var current = F.current; 6386 6387 if (!current || F.isClosing) { 6388 return; 6389 } 6390 6391 F.wrap.removeClass('fancybox-tmp'); 6392 6393 if (anyway || type === 'load' || (type === 'resize' && current.autoResize)) { 6394 F._setDimension(); 6395 } 6396 6397 if (!(type === 'scroll' && current.canShrink)) { 6398 F.reposition(e); 6399 } 6400 6401 F.trigger('onUpdate'); 6402 6403 didUpdate = null; 6404 6405 }, (anyway && !isTouch ? 0 : 300)); 6406 }, 6407 6408 // Shrink content to fit inside viewport or restore if resized 6409 toggle: function ( action ) { 6410 if (F.isOpen) { 6411 F.current.fitToView = $.type(action) === "boolean" ? action : !F.current.fitToView; 6412 6413 // Help browser to restore document dimensions 6414 if (isTouch) { 6415 F.wrap.removeAttr('style').addClass('fancybox-tmp'); 6416 6417 F.trigger('onUpdate'); 6418 } 6419 6420 F.update(); 6421 } 6422 }, 6423 6424 hideLoading: function () { 6425 D.unbind('.loading'); 6426 6427 $('#fancybox-loading').remove(); 6428 }, 6429 6430 showLoading: function () { 6431 var el, viewport; 6432 6433 F.hideLoading(); 6434 6435 el = $('<div id="fancybox-loading"><div></div></div>').click(F.cancel).appendTo('body'); 6436 6437 // If user will press the escape-button, the request will be canceled 6438 D.bind('keydown.loading', function(e) { 6439 if ((e.which || e.keyCode) === 27) { 6440 e.preventDefault(); 6441 6442 F.cancel(); 6443 } 6444 }); 6445 6446 if (!F.defaults.fixed) { 6447 viewport = F.getViewport(); 6448 6449 el.css({ 6450 position : 'absolute', 6451 top : (viewport.h * 0.5) + viewport.y, 6452 left : (viewport.w * 0.5) + viewport.x 6453 }); 6454 } 6455 }, 6456 6457 getViewport: function () { 6458 var locked = (F.current && F.current.locked) || false, 6459 rez = { 6460 x: W.scrollLeft(), 6461 y: W.scrollTop() 6462 }; 6463 6464 if (locked) { 6465 rez.w = locked[0].clientWidth; 6466 rez.h = locked[0].clientHeight; 6467 6468 } else { 6469 // See http://bugs.jquery.com/ticket/6724 6470 rez.w = isTouch && window.innerWidth ? window.innerWidth : W.width(); 6471 rez.h = isTouch && window.innerHeight ? window.innerHeight : W.height(); 6472 } 6473 6474 return rez; 6475 }, 6476 6477 // Unbind the keyboard / clicking actions 6478 unbindEvents: function () { 6479 if (F.wrap && isQuery(F.wrap)) { 6480 F.wrap.unbind('.fb'); 6481 } 6482 6483 D.unbind('.fb'); 6484 W.unbind('.fb'); 6485 }, 6486 6487 bindEvents: function () { 6488 var current = F.current, 6489 keys; 6490 6491 if (!current) { 6492 return; 6493 } 6494 6495 // Changing document height on iOS devices triggers a 'resize' event, 6496 // that can change document height... repeating infinitely 6497 W.bind('orientationchange.fb' + (isTouch ? '' : ' resize.fb') + (current.autoCenter && !current.locked ? ' scroll.fb' : ''), F.update); 6498 6499 keys = current.keys; 6500 6501 if (keys) { 6502 D.bind('keydown.fb', function (e) { 6503 var code = e.which || e.keyCode, 6504 target = e.target || e.srcElement; 6505 6506 // Skip esc key if loading, because showLoading will cancel preloading 6507 if (code === 27 && F.coming) { 6508 return false; 6509 } 6510 6511 // Ignore key combinations and key events within form elements 6512 if (!e.ctrlKey && !e.altKey && !e.shiftKey && !e.metaKey && !(target && (target.type || $(target).is('[contenteditable]')))) { 6513 $.each(keys, function(i, val) { 6514 if (current.group.length > 1 && val[ code ] !== undefined) { 6515 F[ i ]( val[ code ] ); 6516 6517 e.preventDefault(); 6518 return false; 6519 } 6520 6521 if ($.inArray(code, val) > -1) { 6522 F[ i ] (); 6523 6524 e.preventDefault(); 6525 return false; 6526 } 6527 }); 6528 } 6529 }); 6530 } 6531 6532 if ($.fn.mousewheel && current.mouseWheel) { 6533 F.wrap.bind('mousewheel.fb', function (e, delta, deltaX, deltaY) { 6534 var target = e.target || null, 6535 parent = $(target), 6536 canScroll = false; 6537 6538 while (parent.length) { 6539 if (canScroll || parent.is('.fancybox-skin') || parent.is('.fancybox-wrap')) { 6540 break; 6541 } 6542 6543 canScroll = isScrollable( parent[0] ); 6544 parent = $(parent).parent(); 6545 } 6546 6547 if (delta !== 0 && !canScroll) { 6548 if (F.group.length > 1 && !current.canShrink) { 6549 if (deltaY > 0 || deltaX > 0) { 6550 F.prev( deltaY > 0 ? 'down' : 'left' ); 6551 6552 } else if (deltaY < 0 || deltaX < 0) { 6553 F.next( deltaY < 0 ? 'up' : 'right' ); 6554 } 6555 6556 e.preventDefault(); 6557 } 6558 } 6559 }); 6560 } 6561 }, 6562 6563 trigger: function (event, o) { 6564 var ret, obj = o || F.coming || F.current; 6565 6566 if (!obj) { 6567 return; 6568 } 6569 6570 if ($.isFunction( obj[event] )) { 6571 ret = obj[event].apply(obj, Array.prototype.slice.call(arguments, 1)); 6572 } 6573 6574 if (ret === false) { 6575 return false; 6576 } 6577 6578 if (obj.helpers) { 6579 $.each(obj.helpers, function (helper, opts) { 6580 if (opts && F.helpers[helper] && $.isFunction(F.helpers[helper][event])) { 6581 F.helpers[helper][event]($.extend(true, {}, F.helpers[helper].defaults, opts), obj); 6582 } 6583 });
vendor: 8,050 bytes, lines 6583-6942
6583 6584 } 6585 6586 D.trigger(event); 6587 }, 6588 6589 isImage: function (str) { 6590 return isString(str) && str.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i); 6591 }, 6592 6593 isSWF: function (str) { 6594 return isString(str) && str.match(/\.(swf)((\?|#).*)?$/i); 6595 }, 6596 6597 _start: function (index) { 6598 var coming = {}, 6599 obj, 6600 href, 6601 type, 6602 margin, 6603 padding; 6604 6605 index = getScalar( index ); 6606 obj = F.group[ index ] || null; 6607 6608 if (!obj) { 6609 return false; 6610 } 6611 6612 coming = $.extend(true, {}, F.opts, obj); 6613 6614 // Convert margin and padding properties to array - top, right, bottom, left 6615 margin = coming.margin; 6616 padding = coming.padding; 6617 6618 if ($.type(margin) === 'number') { 6619 coming.margin = [margin, margin, margin, margin]; 6620 } 6621 6622 if ($.type(padding) === 'number') { 6623 coming.padding = [padding, padding, padding, padding]; 6624 } 6625 6626 // 'modal' propery is just a shortcut 6627 if (coming.modal) { 6628 $.extend(true, coming, { 6629 closeBtn : false, 6630 closeClick : false, 6631 nextClick : false, 6632 arrows : false, 6633 mouseWheel : false, 6634 keys : null, 6635 helpers: { 6636 overlay : { 6637 closeClick : false 6638 } 6639 } 6640 }); 6641 } 6642 6643 // 'autoSize' property is a shortcut, too 6644 if (coming.autoSize) { 6645 coming.autoWidth = coming.autoHeight = true; 6646 } 6647 6648 if (coming.width === 'auto') { 6649 coming.autoWidth = true; 6650 } 6651 6652 if (coming.height === 'auto') { 6653 coming.autoHeight = true; 6654 } 6655 6656 /* 6657 * Add reference to the group, so it`s possible to access from callbacks, example: 6658 * afterLoad : function() { 6659 * this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : ''); 6660 * } 6661 */ 6662 6663 coming.group = F.group; 6664 coming.index = index; 6665 6666 // Give a chance for callback or helpers to update coming item (type, title, etc) 6667 F.coming = coming; 6668 6669 if (false === F.trigger('beforeLoad')) { 6670 F.coming = null; 6671 6672 return; 6673 } 6674 6675 type = coming.type; 6676 href = coming.href; 6677 6678 if (!type) { 6679 F.coming = null; 6680 6681 //If we can not determine content type then drop silently or display next/prev item if looping through gallery 6682 if (F.current && F.router && F.router !== 'jumpto') { 6683 F.current.index = index; 6684 6685 return F[ F.router ]( F.direction ); 6686 } 6687 6688 return false; 6689 } 6690 6691 F.isActive = true; 6692 6693 if (type === 'image' || type === 'swf') { 6694 coming.autoHeight = coming.autoWidth = false; 6695 coming.scrolling = 'visible'; 6696 } 6697 6698 if (type === 'image') { 6699 coming.aspectRatio = true; 6700 } 6701 6702 if (type === 'iframe' && isTouch) { 6703 coming.scrolling = 'scroll'; 6704 } 6705 6706 // Build the neccessary markup 6707 coming.wrap = $(coming.tpl.wrap).addClass('fancybox-' + (isTouch ? 'mobile' : 'desktop') + ' fancybox-type-' + type + ' fancybox-tmp ' + coming.wrapCSS).appendTo( coming.parent || 'body' ); 6708 6709 $.extend(coming, { 6710 skin : $('.fancybox-skin', coming.wrap), 6711 outer : $('.fancybox-outer', coming.wrap), 6712 inner : $('.fancybox-inner', coming.wrap) 6713 }); 6714 6715 $.each(["Top", "Right", "Bottom", "Left"], function(i, v) { 6716 coming.skin.css('padding' + v, getValue(coming.padding[ i ])); 6717 }); 6718 6719 F.trigger('onReady'); 6720 6721 // Check before try to load; 'inline' and 'html' types need content, others - href 6722 if (type === 'inline' || type === 'html') { 6723 if (!coming.content || !coming.content.length) { 6724 return F._error( 'content' ); 6725 } 6726 6727 } else if (!href) { 6728 return F._error( 'href' ); 6729 } 6730 6731 if (type === 'image') { 6732 F._loadImage(); 6733 6734 } else if (type === 'ajax') { 6735 F._loadAjax(); 6736 6737 } else if (type === 'iframe') { 6738 F._loadIframe(); 6739 6740 } else { 6741 F._afterLoad(); 6742 } 6743 }, 6744 6745 _error: function ( type ) { 6746 $.extend(F.coming, { 6747 type : 'html', 6748 autoWidth : true, 6749 autoHeight : true, 6750 minWidth : 0, 6751 minHeight : 0, 6752 scrolling : 'no', 6753 hasError : type, 6754 content : F.coming.tpl.error 6755 }); 6756 6757 F._afterLoad(); 6758 }, 6759 6760 _loadImage: function () { 6761 // Reset preload image so it is later possible to check "complete" property 6762 var img = F.imgPreload = new Image(); 6763 6764 img.onload = function () { 6765 this.onload = this.onerror = null; 6766 6767 F.coming.width = this.width / F.opts.pixelRatio; 6768 F.coming.height = this.height / F.opts.pixelRatio; 6769 6770 F._afterLoad(); 6771 }; 6772 6773 img.onerror = function () { 6774 this.onload = this.onerror = null; 6775 6776 F._error( 'image' ); 6777 }; 6778 6779 img.src = F.coming.href; 6780 6781 if (img.complete !== true) { 6782 F.showLoading(); 6783 } 6784 }, 6785 6786 _loadAjax: function () { 6787 var coming = F.coming; 6788 6789 F.showLoading(); 6790 6791 F.ajaxLoad = $.ajax($.extend({}, coming.ajax, { 6792 url: coming.href, 6793 error: function (jqXHR, textStatus) { 6794 if (F.coming && textStatus !== 'abort') { 6795 F._error( 'ajax', jqXHR ); 6796 6797 } else { 6798 F.hideLoading(); 6799 } 6800 }, 6801 success: function (data, textStatus) { 6802 if (textStatus === 'success') { 6803 coming.content = data; 6804 6805 F._afterLoad(); 6806 } 6807 } 6808 })); 6809 }, 6810 6811 _loadIframe: function() { 6812 var coming = F.coming, 6813 iframe = $(coming.tpl.iframe.replace(/\{rnd\}/g, new Date().getTime())) 6814 .attr('scrolling', isTouch ? 'auto' : coming.iframe.scrolling) 6815 .attr('src', coming.href); 6816 6817 // This helps IE 6818 $(coming.wrap).bind('onReset', function () { 6819 try { 6820 $(this).find('iframe').hide().attr('src', '//about:blank').end().empty(); 6821 } catch (e) {} 6822 }); 6823 6824 if (coming.iframe.preload) { 6825 F.showLoading(); 6826 6827 iframe.one('load', function() { 6828 $(this).data('ready', 1); 6829 6830 // iOS will lose scrolling if we resize 6831 if (!isTouch) { 6832 $(this).bind('load.fb', F.update); 6833 } 6834 6835 // Without this trick: 6836 // - iframe won't scroll on iOS devices 6837 // - IE7 sometimes displays empty iframe 6838 $(this).parents('.fancybox-wrap').width('100%').removeClass('fancybox-tmp').show(); 6839 6840 F._afterLoad(); 6841 }); 6842 } 6843 6844 coming.content = iframe.appendTo( coming.inner ); 6845 6846 if (!coming.iframe.preload) { 6847 F._afterLoad(); 6848 } 6849 }, 6850 6851 _preloadImages: function() { 6852 var group = F.group, 6853 current = F.current, 6854 len = group.length, 6855 cnt = current.preload ? Math.min(current.preload, len - 1) : 0, 6856 item, 6857 i; 6858 6859 for (i = 1; i <= cnt; i += 1) { 6860 item = group[ (current.index + i ) % len ]; 6861 6862 if (item.type === 'image' && item.href) { 6863 new Image().src = item.href; 6864 } 6865 } 6866 }, 6867 6868 _afterLoad: function () { 6869 var coming = F.coming, 6870 previous = F.current, 6871 placeholder = 'fancybox-placeholder', 6872 current, 6873 content, 6874 type, 6875 scrolling, 6876 href, 6877 embed; 6878 6879 F.hideLoading(); 6880 6881 if (!coming || F.isActive === false) { 6882 return; 6883 } 6884 6885 if (false === F.trigger('afterLoad', coming, previous)) { 6886 coming.wrap.stop(true).trigger('onReset').remove(); 6887 6888 F.coming = null; 6889 6890 return; 6891 } 6892 6893 if (previous) { 6894 F.trigger('beforeChange', previous); 6895 6896 previous.wrap.stop(true).removeClass('fancybox-opened') 6897 .find('.fancybox-item, .fancybox-nav') 6898 .remove(); 6899 } 6900 6901 F.unbindEvents(); 6902 6903 current = coming; 6904 content = coming.content; 6905 type = coming.type; 6906 scrolling = coming.scrolling; 6907 6908 $.extend(F, { 6909 wrap : current.wrap, 6910 skin : current.skin, 6911 outer : current.outer, 6912 inner : current.inner, 6913 current : current, 6914 previous : previous 6915 }); 6916 6917 href = current.href; 6918 6919 switch (type) { 6920 case 'inline': 6921 case 'ajax': 6922 case 'html': 6923 if (current.selector) { 6924 content = $('<div>').html(content).find(current.selector); 6925 6926 } else if (isQuery(content)) { 6927 if (!content.data(placeholder)) { 6928 content.data(placeholder, $('<div class="' + placeholder + '"></div>').insertAfter( content ).hide() ); 6929 } 6930 6931 content = content.show().detach(); 6932 6933 current.wrap.bind('onReset', function () { 6934 if ($(this).find(content).length) { 6935 content.hide().replaceAll( content.data(placeholder) ).data(placeholder, false); 6936 } 6937 }); 6938 } 6939 break; 6940 6941 case 'image': 6942 content = current.tpl.image.replace(
vendor: 14,919 bytes, lines 6942-7511
6942'{href}', href); 6943 break; 6944 6945 case 'swf': 6946 content = '<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="' + href + '"></param>'; 6947 embed = ''; 6948 6949 $.each(current.swf, function(name, val) { 6950 content += '<param name="' + name + '" value="' + val + '"></param>'; 6951 embed += ' ' + name + '="' + val + '"'; 6952 }); 6953 6954 content += '<embed src="' + href + '" type="application/x-shockwave-flash" width="100%" height="100%"' + embed + '></embed></object>'; 6955 break; 6956 } 6957 6958 if (!(isQuery(content) && content.parent().is(current.inner))) { 6959 current.inner.append( content ); 6960 } 6961 6962 // Give a chance for helpers or callbacks to update elements 6963 F.trigger('beforeShow'); 6964 6965 // Set scrolling before calculating dimensions 6966 current.inner.css('overflow', scrolling === 'yes' ? 'scroll' : (scrolling === 'no' ? 'hidden' : scrolling)); 6967 6968 // Set initial dimensions and start position 6969 F._setDimension(); 6970 6971 F.reposition(); 6972 6973 F.isOpen = false; 6974 F.coming = null; 6975 6976 F.bindEvents(); 6977 6978 if (!F.isOpened) { 6979 $('.fancybox-wrap').not( current.wrap ).stop(true).trigger('onReset').remove(); 6980 6981 } else if (previous.prevMethod) { 6982 F.transitions[ previous.prevMethod ](); 6983 } 6984 6985 F.transitions[ F.isOpened ? current.nextMethod : current.openMethod ](); 6986 6987 F._preloadImages(); 6988 }, 6989 6990 _setDimension: function () { 6991 var viewport = F.getViewport(), 6992 steps = 0, 6993 canShrink = false, 6994 canExpand = false, 6995 wrap = F.wrap, 6996 skin = F.skin, 6997 inner = F.inner, 6998 current = F.current, 6999 width = current.width, 7000 height = current.height, 7001 minWidth = current.minWidth, 7002 minHeight = current.minHeight, 7003 maxWidth = current.maxWidth, 7004 maxHeight = current.maxHeight, 7005 scrolling = current.scrolling, 7006 scrollOut = current.scrollOutside ? current.scrollbarWidth : 0, 7007 margin = current.margin, 7008 wMargin = getScalar(margin[1] + margin[3]), 7009 hMargin = getScalar(margin[0] + margin[2]), 7010 wPadding, 7011 hPadding, 7012 wSpace, 7013 hSpace, 7014 origWidth, 7015 origHeight, 7016 origMaxWidth, 7017 origMaxHeight, 7018 ratio, 7019 width_, 7020 height_, 7021 maxWidth_, 7022 maxHeight_, 7023 iframe, 7024 body; 7025 7026 // Reset dimensions so we could re-check actual size 7027 wrap.add(skin).add(inner).width('auto').height('auto').removeClass('fancybox-tmp'); 7028 7029 wPadding = getScalar(skin.outerWidth(true) - skin.width()); 7030 hPadding = getScalar(skin.outerHeight(true) - skin.height()); 7031 7032 // Any space between content and viewport (margin, padding, border, title) 7033 wSpace = wMargin + wPadding; 7034 hSpace = hMargin + hPadding; 7035 7036 origWidth = isPercentage(width) ? (viewport.w - wSpace) * getScalar(width) / 100 : width; 7037 origHeight = isPercentage(height) ? (viewport.h - hSpace) * getScalar(height) / 100 : height; 7038 7039 if (current.type === 'iframe') { 7040 iframe = current.content; 7041 7042 if (current.autoHeight && iframe.data('ready') === 1) { 7043 try { 7044 if (iframe[0].contentWindow.document.location) { 7045 inner.width( origWidth ).height(9999); 7046 7047 body = iframe.contents().find('body'); 7048 7049 if (scrollOut) { 7050 body.css('overflow-x', 'hidden'); 7051 } 7052 7053 origHeight = body.outerHeight(true); 7054 } 7055 7056 } catch (e) {} 7057 } 7058 7059 } else if (current.autoWidth || current.autoHeight) { 7060 inner.addClass( 'fancybox-tmp' ); 7061 7062 // Set width or height in case we need to calculate only one dimension 7063 if (!current.autoWidth) { 7064 inner.width( origWidth ); 7065 } 7066 7067 if (!current.autoHeight) { 7068 inner.height( origHeight ); 7069 } 7070 7071 if (current.autoWidth) { 7072 origWidth = inner.width(); 7073 } 7074 7075 if (current.autoHeight) { 7076 origHeight = inner.height(); 7077 } 7078 7079 inner.removeClass( 'fancybox-tmp' ); 7080 } 7081 7082 width = getScalar( origWidth ); 7083 height = getScalar( origHeight ); 7084 7085 ratio = origWidth / origHeight; 7086 7087 // Calculations for the content 7088 minWidth = getScalar(isPercentage(minWidth) ? getScalar(minWidth, 'w') - wSpace : minWidth); 7089 maxWidth = getScalar(isPercentage(maxWidth) ? getScalar(maxWidth, 'w') - wSpace : maxWidth); 7090 7091 minHeight = getScalar(isPercentage(minHeight) ? getScalar(minHeight, 'h') - hSpace : minHeight); 7092 maxHeight = getScalar(isPercentage(maxHeight) ? getScalar(maxHeight, 'h') - hSpace : maxHeight); 7093 7094 // These will be used to determine if wrap can fit in the viewport 7095 origMaxWidth = maxWidth; 7096 origMaxHeight = maxHeight; 7097 7098 if (current.fitToView) { 7099 maxWidth = Math.min(viewport.w - wSpace, maxWidth); 7100 maxHeight = Math.min(viewport.h - hSpace, maxHeight); 7101 } 7102 7103 maxWidth_ = viewport.w - wMargin; 7104 maxHeight_ = viewport.h - hMargin; 7105 7106 if (current.aspectRatio) { 7107 if (width > maxWidth) { 7108 width = maxWidth; 7109 height = getScalar(width / ratio); 7110 } 7111 7112 if (height > maxHeight) { 7113 height = maxHeight; 7114 width = getScalar(height * ratio); 7115 } 7116 7117 if (width < minWidth) { 7118 width = minWidth; 7119 height = getScalar(width / ratio); 7120 } 7121 7122 if (height < minHeight) { 7123 height = minHeight; 7124 width = getScalar(height * ratio); 7125 } 7126 7127 } else { 7128 width = Math.max(minWidth, Math.min(width, maxWidth)); 7129 7130 if (current.autoHeight && current.type !== 'iframe') { 7131 inner.width( width ); 7132 7133 height = inner.height(); 7134 } 7135 7136 height = Math.max(minHeight, Math.min(height, maxHeight)); 7137 } 7138 7139 // Try to fit inside viewport (including the title) 7140 if (current.fitToView) { 7141 inner.width( width ).height( height ); 7142 7143 wrap.width( width + wPadding ); 7144 7145 // Real wrap dimensions 7146 width_ = wrap.width(); 7147 height_ = wrap.height(); 7148 7149 if (current.aspectRatio) { 7150 while ((width_ > maxWidth_ || height_ > maxHeight_) && width > minWidth && height > minHeight) { 7151 if (steps++ > 19) { 7152 break; 7153 } 7154 7155 height = Math.max(minHeight, Math.min(maxHeight, height - 10)); 7156 width = getScalar(height * ratio); 7157 7158 if (width < minWidth) { 7159 width = minWidth; 7160 height = getScalar(width / ratio); 7161 } 7162 7163 if (width > maxWidth) { 7164 width = maxWidth; 7165 height = getScalar(width / ratio); 7166 } 7167 7168 inner.width( width ).height( height ); 7169 7170 wrap.width( width + wPadding ); 7171 7172 width_ = wrap.width(); 7173 height_ = wrap.height(); 7174 } 7175 7176 } else { 7177 width = Math.max(minWidth, Math.min(width, width - (width_ - maxWidth_))); 7178 height = Math.max(minHeight, Math.min(height, height - (height_ - maxHeight_))); 7179 } 7180 } 7181 7182 if (scrollOut && scrolling === 'auto' && height < origHeight && (width + wPadding + scrollOut) < maxWidth_) { 7183 width += scrollOut; 7184 } 7185 7186 inner.width( width ).height( height ); 7187 7188 wrap.width( width + wPadding ); 7189 7190 width_ = wrap.width(); 7191 height_ = wrap.height(); 7192 7193 canShrink = (width_ > maxWidth_ || height_ > maxHeight_) && width > minWidth && height > minHeight; 7194 canExpand = current.aspectRatio ? (width < origMaxWidth && height < origMaxHeight && width < origWidth && height < origHeight) : ((width < origMaxWidth || height < origMaxHeight) && (width < origWidth || height < origHeight)); 7195 7196 $.extend(current, { 7197 dim : { 7198 width : getValue( width_ ), 7199 height : getValue( height_ ) 7200 }, 7201 origWidth : origWidth, 7202 origHeight : origHeight, 7203 canShrink : canShrink, 7204 canExpand : canExpand, 7205 wPadding : wPadding, 7206 hPadding : hPadding, 7207 wrapSpace : height_ - skin.outerHeight(true), 7208 skinSpace : skin.height() - height 7209 }); 7210 7211 if (!iframe && current.autoHeight && height > minHeight && height < maxHeight && !canExpand) { 7212 inner.height('auto'); 7213 } 7214 }, 7215 7216 _getPosition: function (onlyAbsolute) { 7217 var current = F.current, 7218 viewport = F.getViewport(), 7219 margin = current.margin, 7220 width = F.wrap.width() + margin[1] + margin[3], 7221 height = F.wrap.height() + margin[0] + margin[2], 7222 rez = { 7223 position: 'absolute', 7224 top : margin[0], 7225 left : margin[3] 7226 }; 7227 7228 if (current.autoCenter && current.fixed && !onlyAbsolute && height <= viewport.h && width <= viewport.w) { 7229 rez.position = 'fixed'; 7230 7231 } else if (!current.locked) { 7232 rez.top += viewport.y; 7233 rez.left += viewport.x; 7234 } 7235 7236 rez.top = getValue(Math.max(rez.top, rez.top + ((viewport.h - height) * current.topRatio))); 7237 rez.left = getValue(Math.max(rez.left, rez.left + ((viewport.w - width) * current.leftRatio))); 7238 7239 return rez; 7240 }, 7241 7242 _afterZoomIn: function () { 7243 var current = F.current; 7244 7245 if (!current) { 7246 return; 7247 } 7248 7249 F.isOpen = F.isOpened = true; 7250 7251 F.wrap.css('overflow', 'visible').addClass('fancybox-opened'); 7252 7253 F.update(); 7254 7255 // Assign a click event 7256 if ( current.closeClick || (current.nextClick && F.group.length > 1) ) { 7257 F.inner.css('cursor', 'pointer').bind('click.fb', function(e) { 7258 if (!$(e.target).is('a') && !$(e.target).parent().is('a')) { 7259 e.preventDefault(); 7260 7261 F[ current.closeClick ? 'close' : 'next' ](); 7262 } 7263 }); 7264 } 7265 7266 // Create a close button 7267 if (current.closeBtn) { 7268 $(current.tpl.closeBtn).appendTo(F.skin).bind('click.fb', function(e) { 7269 e.preventDefault(); 7270 7271 F.close(); 7272 }); 7273 } 7274 7275 // Create navigation arrows 7276 if (current.arrows && F.group.length > 1) { 7277 if (current.loop || current.index > 0) { 7278 $(current.tpl.prev).appendTo(F.outer).bind('click.fb', F.prev); 7279 } 7280 7281 if (current.loop || current.index < F.group.length - 1) { 7282 $(current.tpl.next).appendTo(F.outer).bind('click.fb', F.next); 7283 } 7284 } 7285 7286 F.trigger('afterShow'); 7287 7288 // Stop the slideshow if this is the last item 7289 if (!current.loop && current.index === current.group.length - 1) { 7290 F.play( false ); 7291 7292 } else if (F.opts.autoPlay && !F.player.isActive) { 7293 F.opts.autoPlay = false; 7294 7295 F.play(); 7296 } 7297 }, 7298 7299 _afterZoomOut: function ( obj ) { 7300 obj = obj || F.current; 7301 7302 $('.fancybox-wrap').trigger('onReset').remove(); 7303 7304 $.extend(F, { 7305 group : {}, 7306 opts : {}, 7307 router : false, 7308 current : null, 7309 isActive : false, 7310 isOpened : false, 7311 isOpen : false, 7312 isClosing : false, 7313 wrap : null, 7314 skin : null, 7315 outer : null, 7316 inner : null 7317 }); 7318 7319 F.trigger('afterClose', obj); 7320 } 7321 }); 7322 7323 /* 7324 * Default transitions 7325 */ 7326 7327 F.transitions = { 7328 getOrigPosition: function () { 7329 var current = F.current, 7330 element = current.element, 7331 orig = current.orig, 7332 pos = {}, 7333 width = 50, 7334 height = 50, 7335 hPadding = current.hPadding, 7336 wPadding = current.wPadding, 7337 viewport = F.getViewport(); 7338 7339 if (!orig && current.isDom && element.is(':visible')) { 7340 orig = element.find('img:first'); 7341 7342 if (!orig.length) { 7343 orig = element; 7344 } 7345 } 7346 7347 if (isQuery(orig)) { 7348 pos = orig.offset(); 7349 7350 if (orig.is('img')) { 7351 width = orig.outerWidth(); 7352 height = orig.outerHeight(); 7353 } 7354 7355 } else { 7356 pos.top = viewport.y + (viewport.h - height) * current.topRatio; 7357 pos.left = viewport.x + (viewport.w - width) * current.leftRatio; 7358 } 7359 7360 if (F.wrap.css('position') === 'fixed' || current.locked) { 7361 pos.top -= viewport.y; 7362 pos.left -= viewport.x; 7363 } 7364 7365 pos = { 7366 top : getValue(pos.top - hPadding * current.topRatio), 7367 left : getValue(pos.left - wPadding * current.leftRatio), 7368 width : getValue(width + wPadding), 7369 height : getValue(height + hPadding) 7370 }; 7371 7372 return pos; 7373 }, 7374 7375 step: function (now, fx) { 7376 var ratio, 7377 padding, 7378 value, 7379 prop = fx.prop, 7380 current = F.current, 7381 wrapSpace = current.wrapSpace, 7382 skinSpace = current.skinSpace; 7383 7384 if (prop === 'width' || prop === 'height') { 7385 ratio = fx.end === fx.start ? 1 : (now - fx.start) / (fx.end - fx.start); 7386 7387 if (F.isClosing) { 7388 ratio = 1 - ratio; 7389 } 7390 7391 padding = prop === 'width' ? current.wPadding : current.hPadding; 7392 value = now - padding; 7393 7394 F.skin[ prop ]( getScalar( prop === 'width' ? value : value - (wrapSpace * ratio) ) ); 7395 F.inner[ prop ]( getScalar( prop === 'width' ? value : value - (wrapSpace * ratio) - (skinSpace * ratio) ) ); 7396 } 7397 }, 7398 7399 zoomIn: function () { 7400 var current = F.current, 7401 startPos = current.pos, 7402 effect = current.openEffect, 7403 elastic = effect === 'elastic', 7404 endPos = $.extend({opacity : 1}, startPos); 7405 7406 // Remove "position" property that breaks older IE 7407 delete endPos.position; 7408 7409 if (elastic) { 7410 startPos = this.getOrigPosition(); 7411 7412 if (current.openOpacity) { 7413 startPos.opacity = 0.1; 7414 } 7415 7416 } else if (effect === 'fade') { 7417 startPos.opacity = 0.1; 7418 } 7419 7420 F.wrap.css(startPos).animate(endPos, { 7421 duration : effect === 'none' ? 0 : current.openSpeed, 7422 easing : current.openEasing, 7423 step : elastic ? this.step : null, 7424 complete : F._afterZoomIn 7425 }); 7426 }, 7427 7428 zoomOut: function () { 7429 var current = F.current, 7430 effect = current.closeEffect, 7431 elastic = effect === 'elastic', 7432 endPos = {opacity : 0.1}; 7433 7434 if (elastic) { 7435 endPos = this.getOrigPosition(); 7436 7437 if (current.closeOpacity) { 7438 endPos.opacity = 0.1; 7439 } 7440 } 7441 7442 F.wrap.animate(endPos, { 7443 duration : effect === 'none' ? 0 : current.closeSpeed, 7444 easing : current.closeEasing, 7445 step : elastic ? this.step : null, 7446 complete : F._afterZoomOut 7447 }); 7448 }, 7449 7450 changeIn: function () { 7451 var current = F.current, 7452 effect = current.nextEffect, 7453 startPos = current.pos, 7454 endPos = { opacity : 1 }, 7455 direction = F.direction, 7456 distance = 200, 7457 field; 7458 7459 startPos.opacity = 0.1; 7460 7461 if (effect === 'elastic') { 7462 field = direction === 'down' || direction === 'up' ? 'top' : 'left'; 7463 7464 if (direction === 'down' || direction === 'right') { 7465 startPos[ field ] = getValue(getScalar(startPos[ field ]) - distance); 7466 endPos[ field ] = '+=' + distance + 'px'; 7467 7468 } else { 7469 startPos[ field ] = getValue(getScalar(startPos[ field ]) + distance); 7470 endPos[ field ] = '-=' + distance + 'px'; 7471 } 7472 } 7473 7474 // Workaround for http://bugs.jquery.com/ticket/12273 7475 if (effect === 'none') { 7476 F._afterZoomIn(); 7477 7478 } else { 7479 F.wrap.css(startPos).animate(endPos, { 7480 duration : current.nextSpeed, 7481 easing : current.nextEasing, 7482 complete : F._afterZoomIn 7483 }); 7484 } 7485 }, 7486 7487 changeOut: function () { 7488 var previous = F.previous, 7489 effect = previous.prevEffect, 7490 endPos = { opacity : 0.1 }, 7491 direction = F.direction, 7492 distance = 200; 7493 7494 if (effect === 'elastic') { 7495 endPos[ direction === 'down' || direction === 'up' ? 'top' : 'left' ] = ( direction === 'up' || direction === 'left' ? '-' : '+' ) + '=' + distance + 'px'; 7496 } 7497 7498 previous.wrap.animate(endPos, { 7499 duration : effect === 'none' ? 0 : previous.prevSpeed, 7500 easing : previous.prevEasing, 7501 complete : function () { 7502 $(this).trigger('onReset').remove(); 7503 } 7504 }); 7505 } 7506 }; 7507 7508 /* 7509 * Overlay helper 7510 */ 7511
7512 F.helpers.overlay = { 7513 defaults : { 7514 closeClick : true, // if true, fancyBox will be closed when user clicks on the overlay 7515 speedOut : 200, // duration of fadeOut animation 7516 showEarly : true, // indicates if should be opened immediately or wait until the content is ready 7517 css : {}, // custom CSS properties 7518 locked : !isTouch, // if true, the content will be locked into overlay 7519 fixed : true // if false, the overlay CSS position property will not be set to "fixed" 7520 }, 7521 7522 overlay : null, // current handle 7523 fixed : false, // indicates if the overlay has position "fixed" 7524 el : $('html'), // element that contains "the lock" 7525 7526 // Public methods 7527 create : function(opts) { 7528 opts = $.extend({}, this.defaults, opts); 7529 7530 if (this.overlay) { 7531 this.close(); 7532 } 7533 7534 this.overlay = $('<div class="fancybox-overlay"></div>').appendTo( F.coming ? F.coming.parent : opts.parent ); 7535 this.fixed = false; 7536 7537 if (opts.fixed && F.defaults.fixed) { 7538 this.overlay.addClass('fancybox-overlay-fixed'); 7539 7540 this.fixed = true; 7541 } 7542 }, 7543 7544 open : function(opts) { 7545 var that = this; 7546 7547 opts = $.extend({}, this.defaults, opts); 7548 7549 if (this.overlay) { 7550 this.overlay.unbind('.overlay').width('auto').height('auto'); 7551 7552 } else { 7553 this.create(opts); 7554 } 7555 7556 if (!this.fixed) { 7557 W.bind('resize.overlay', $.proxy( this.update, this) ); 7558 7559 this.update(); 7560 } 7561 7562 if (opts.closeClick) { 7563 this.overlay.bind('click.overlay', function(e) { 7564 if ($(e.target).hasClass('fancybox-overlay')) { 7565 if (F.isActive) { 7566 F.close(); 7567 } else { 7568 that.close(); 7569 } 7570 7571 return false; 7572 } 7573 }); 7574 } 7575 7576 this.overlay.css( opts.css ).show(); 7577 }, 7578 7579 close : function() { 7580 var scrollV, scrollH; 7581 7582 W.unbind('resize.overlay'); 7583 7584 if (this.el.hasClass('fancybox-lock')) { 7585 $('.fancybox-margin').removeClass('fancybox-margin'); 7586 7587 scrollV = W.scrollTop(); 7588 scrollH = W.scrollLeft(); 7589 7590 this.el.removeClass('fancybox-lock'); 7591 7592 W.scrollTop( scrollV ).scrollLeft( scrollH ); 7593 } 7594 7595 $('.fancybox-overlay').remove().hide(); 7596 7597 $.extend(this, { 7598 overlay : null, 7599 fixed : false 7600 }); 7601 }, 7602 7603 // Private, callbacks 7604 7605 update : function () { 7606 var width = '100%', offsetWidth; 7607 7608 // Reset width/height so it will not mess 7609 this.overlay.width(width).height('100%'); 7610 7611 // jQuery does not return reliable result for IE 7612 if (IE) { 7613 offsetWidth = Math.max(document.documentElement.offsetWidth, document.body.offsetWidth); 7614 7615 if (D.width() > offsetWidth) { 7616 width = D.width(); 7617 } 7618 7619 } else if (D.width() > W.width()) { 7620 width = D.width(); 7621 } 7622 7623 this.overlay.width(width).height(D.height()); 7624 }, 7625 7626 // This is where we can manipulate DOM, because later it would cause iframes to reload 7627 onReady : function (opts, obj) { 7628 var overlay = this.overlay; 7629 7630 $('.fancybox-overlay').stop(true, true); 7631 7632 if (!overlay) { 7633 this.create(opts); 7634 } 7635 7636 if (opts.locked && this.fixed && obj.fixed) { 7637 if (!overlay) { 7638 this.margin = D.height() > W.height() ? $('html').css('margin-right').replace("px", "") : false; 7639 } 7640 7641 obj.locked = this.overlay.append( obj.wrap ); 7642 obj.fixed = false; 7643 } 7644 7645 if (opts.showEarly === true) { 7646 this.beforeShow.apply(this, arguments); 7647 } 7648 }, 7649 7650 beforeShow : function(opts, obj) { 7651 var scrollV, scrollH; 7652 7653 if (obj.locked) { 7654 if (this.margin !== false) { 7655 $('*').filter(function(){ 7656 return ($(this).css('position') === 'fixed' && !$(this).hasClass("fancybox-overlay") && !$(this).hasClass("fancybox-wrap") ); 7657 }).addClass('fancybox-margin'); 7658 7659 this.el.addClass('fancybox-margin'); 7660 } 7661 7662 scrollV = W.scrollTop(); 7663 scrollH = W.scrollLeft(); 7664 7665 this.el.addClass('fancybox-lock'); 7666 7667 W.scrollTop( scrollV ).scrollLeft( scrollH ); 7668 } 7669 7670 this.open(opts); 7671 }, 7672 7673 onUpdate : function() { 7674 if (!this.fixed) { 7675 this.update(); 7676 } 7677 }, 7678 7679 afterClose: function (opts) { 7680 // Remove overlay if exists and fancyBox is not opening 7681 // (e.g., it is not being open using afterClose callback) 7682 //if (this.overlay && !F.isActive) { 7683 if (this.overlay && !F.coming) { 7684 this.overlay.fadeOut(opts.speedOut, $.proxy( this.close, this )); 7685 } 7686 } 7687 }; 7688 7689 /* 7690 * Title helper 7691 */ 7692 7693 F.helpers.title = { 7694 defaults : { 7695 type : 'float', // 'float', 'inside', 'outside' or 'over', 7696 position : 'bottom' // 'top' or 'bottom' 7697 }, 7698 7699 beforeShow: function (opts) { 7700 var current = F.current, 7701 text = current.title, 7702 type = opts.type, 7703 title, 7704 target; 7705 7706 if ($.isFunction(text)) { 7707 text = text.call(current.element, current); 7708 } 7709 7710 if (!isString(text) || $.trim(text) === '') { 7711 return; 7712 } 7713 7714 title = $('<div class="fancybox-title fancybox-title-' + type + '-wrap">
7714' + text + '</div>'); 7715 7716 switch (type) { 7717 case 'inside': 7718 target = F.skin; 7719 break; 7720 7721 case 'outside': 7722 target = F.wrap; 7723 break; 7724 7725 case 'over': 7726 target = F.inner; 7727 break; 7728 7729 default: // 'float' 7730 target = F.skin; 7731 7732 title.appendTo('body'); 7733 7734 if (IE) { 7735 title.width( title.width() ); 7736 } 7737 7738 title.wrapInner('<span class="child"></span>'); 7739 7740 //Increase bottom margin so this title will also fit into viewport 7741 F.current.margin[2] += Math.abs( getScalar(title.css('margin-bottom')) ); 7742 break; 7743 } 7744 7745 title[ (opts.position === 'top' ? 'prependTo' : 'appendTo') ](target); 7746 } 7747 }; 7748 7749 // jQuery plugin initialization 7750 $.fn.fancybox = function (options) { 7751 var index, 7752 that = $(this), 7753 selector = this.selector || '', 7754 run = function(e) { 7755 var what = $(this).blur(), idx = index, relType, relVal; 7756 7757 if (!(e.ctrlKey || e.altKey || e.shiftKey || e.metaKey) && !what.is('.fancybox-wrap')) { 7758 relType = options.groupAttr || 'data-fancybox-group'; 7759 relVal = what.attr(relType); 7760 7761 if (!relVal) { 7762 relType = 'rel'; 7763 relVal = what.get(0)[ relType ]; 7764 } 7765 7766 if (relVal && relVal !== '' && relVal !== 'nofollow') { 7767 what = selector.length ? $(selector) : that; 7768 what = what.filter('[' + relType + '="' + relVal + '"]'); 7769 idx = what.index(this); 7770 } 7771 7772 options.index = idx; 7773 7774 // Stop an event from bubbling if everything is fine 7775 if (F.open(what, options) !== false) { 7776 e.preventDefault(); 7777 } 7778 } 7779 }; 7780 7781 options = options || {}; 7782 index = options.index || 0; 7783 7784 if (!selector || options.live === false) { 7785 that.unbind('click.fb-start').bind('click.fb-start', run); 7786 7787 } else { 7788 D.undelegate(selector, 'click.fb-start').delegate(selector + ":not('.fancybox-item, .fancybox-nav')", 'click.fb-start', run); 7789 } 7790 7791 this.filter('[data-fancybox-start=1]').trigger('click'); 7792 7793 return this; 7794 }; 7795 7796 // Tests that need a body at doc ready 7797 D.ready(function() { 7798 var w1, w2; 7799 7800 if ( $.scrollbarWidth === undefined ) { 7801 // http://benalman.com/projects/jquery-misc-plugins/#scrollbarwidth 7802 $.scrollbarWidth = function() { 7803 var parent = $('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo('body'), 7804 child = parent.children(), 7805 width = child.innerWidth() - child.height( 99 ).innerWidth(); 7806 7807 parent.remove(); 7808 7809 return width; 7810 }; 7811 } 7812 7813 if ( $.support.fixedPosition === undefined ) { 7814 $.support.fixedPosition = (function() { 7815 var elem = $('<div style="position:fixed;top:20px;"></div>').appendTo('body'), 7816 fixed = ( elem[0].offsetTop === 20 || elem[0].offsetTop === 15 ); 7817 7818 elem.remove(); 7819 7820 return fixed; 7821 }()); 7822 } 7823 7824 $.extend(F.defaults, { 7825 scrollbarWidth : $.scrollbarWidth(), 7826 fixed : $.support.fixedPosition, 7827 parent : $('body') 7828 }); 7829 7830 //Get real width of page scroll-bar 7831 w1 = $(window).width(); 7832 7833 H.addClass('fancybox-lock-test'); 7834 7835 w2 = $(window).width(); 7836 7837 H.removeClass('fancybox-lock-test'); 7838 7839 $("<style type='text/css'>.fancybox-margin{margin-right:" + (w2 - w1) + "px;}</style>").appendTo("head"); 7840 }); 7841 7842}(window, document, jQuery)); 7843/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net) 7844 * Licensed under the MIT License (LICENSE.txt). 7845 * 7846 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. 7847 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. 7848 * Thanks to: Seamus Leahy for adding deltaX and deltaY 7849 * 7850 * Version: 3.0.6 7851 * 7852 * Requires: 1.2.2+ 7853 */ 7854(function(d){function e(a){var b=a||window.event,c=[].slice.call(arguments,1),f=0,e=0,g=0,a=d.event.fix(b);a.type="mousewheel";b.wheelDelta&&(f=b.wheelDelta/120);b.detail&&(f=-b.detail/3);g=f;b.axis!==void 0&&b.axis===b.HORIZONTAL_AXIS&&(g=0,e=-1*f);b.wheelDeltaY!==void 0&&(g=b.wheelDeltaY/120);b.wheelDeltaX!==void 0&&(e=-1*b.wheelDeltaX/120);c.unshift(a,f,e,g);return(d.event.dispatch||d.event.handle).apply(this,c)}var c=["DOMMouseScroll","mousewheel"];if(d.event.fixHooks)for(var h=c.length;h;)d.event.fixHooks[c[--h]]= 7855d.event.mouseHooks;d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],e,false);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],e,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery); 7856(function($){ 7857 $.cookieBar = function(options,val){ 7858 if(options=='cookies'){ 7859 var doReturn = 'cookies'; 7860 }else if(options=='set'){ 7861 var doReturn = 'set'; 7862 }else{ 7863 var doReturn = false;
7864 } 7865 var defaults = { 7866 acceptFunction: function(cookieValue){if(cookieValue!='enabled' && cookieValue!='accepted') window.location = window.location.href;}, //Function to run after accept 7867 declineFunction: function(cookieValue){if(cookieValue=='enabled' || cookieValue=='accepted') window.location = window.location.href;}, //Function to run after decline 7868 autoEnable: true, //Set to true for cookies to be accepted automatically. Banner still shows 7869 acceptOnContinue: false, //Set to true to accept cookies when visitor moves to another page 7870 acceptOnScroll: false, //Set to true to accept cookies when visitor scrolls X pixels up or down 7871 acceptAnyClick: false, //Set to true to accept cookies when visitor clicks anywhere on the page 7872 expireDays: 365, //Number of days for cookieBar cookie to be stored for 7873 renewOnVisit: false, //Renew the cookie upon revisit to website 7874 forceShow: false, //Force cookieBar to show regardless of user cookie preference 7875 effect: 'slide', //Options: slide, fade, hide 7876 domain: String(window.location.hostname), //Location of privacy policy 7877 referrer: String(document.referrer) //Where visitor has come from 7878 }; 7879 var options = $.extend(defaults,options); 7880 7881 //Sets expiration date for cookie 7882 var expireDate = new Date(); 7883 expireDate.setTime(expireDate.getTime()+(options.expireDays*86400000)); 7884 expireDate = expireDate.toGMTString(); 7885 7886 var cookieEntry = 'cb-enabled={value}; expires='+expireDate+'; path=/'; 7887 7888 //Retrieves current cookie preference 7889 var i,cookieValue='',aCookie,aCookies=document.cookie.split('; '); 7890 for (i=0;i<aCookies.length;i++){ 7891 aCookie = aCookies[i].split('='); 7892 if(aCookie[0]=='cb-enabled'){ 7893 cookieValue = aCookie[1]; 7894 } 7895 } 7896 //Sets up default cookie preference if not already set 7897 if(cookieValue=='' && doReturn!='cookies' && options.autoEnable){ 7898 cookieValue = 'enabled'; 7899 document.cookie = cookieEntry.replace('{value}','enabled'); 7900 }else if((cookieValue=='accepted' || cookieValue=='declined') && doReturn!='cookies' && options.renewOnVisit){ 7901 document.cookie = cookieEntry.replace('{value}',cookieValue); 7902 } 7903 if(options.acceptOnContinue){ 7904 if(options.referrer.indexOf(options.domain)>=0 && String(window.location.href).indexOf(options.policyURL)==-1 && doReturn!='cookies' && doReturn!='set' && cookieValue!='accepted' && cookieValue!='declined'){ 7905 doReturn = 'set'; 7906 val = 'accepted'; 7907 } 7908 } 7909 if(doReturn=='cookies'){ 7910 //Returns true if cookies are enabled, false otherwise 7911 if(cookieValue=='enabled' || cookieValue=='accepted'){ 7912 return true; 7913 }else{ 7914 return false; 7915 } 7916 }else if(doReturn=='set' && (val=='accepted' || val=='declined')){ 7917 //Sets value of cookie to 'accepted' or 'declined' 7918 document.cookie = cookieEntry.replace('{value}',val); 7919 if(val=='accepted'){ 7920 return true; 7921 }else{ 7922 return false; 7923 } 7924 }else{ 7925 7926 7927 //Displays the cookie bar if arguments met 7928 if(options.forceShow || cookieValue=='enabled' || cookieValue==''){ 7929 $('#cookie-bar').show(); 7930 } 7931 7932 var removeBar = function(func){ 7933 if(options.acceptOnScroll) $(document).off('scroll'); 7934 if(typeof(func)==='function') func(cookieValue); 7935 if(options.effect=='slide'){ 7936 $('#cookie-bar').slideUp(300,function(){$('#cookie-bar').remove();}); 7937 }else if(options.effect=='fade'){ 7938 $('#cookie-bar').fadeOut(300,function(){$('#cookie-bar').remove();}); 7939 }else{ 7940 $('#cookie-bar').hide(0,function(){$('#cookie-bar').remove();}); 7941 } 7942 $(document).unbind('click',anyClick); 7943 }; 7944 var cookieAccept = function(){ 7945 document.cookie = cookieEntry.replace('{value}','accepted'); 7946 removeBar(options.acceptFunction); 7947 }; 7948 var cookieDecline = function(){ 7949 var deleteDate = new Date(); 7950 deleteDate.setTime(deleteDate.getTime()-(864000000)); 7951 deleteDate = deleteDate.toGMTString(); 7952 aCookies=document.cookie.split('; '); 7953 for (i=0;i<aCookies.length;i++){ 7954 aCookie = aCookies[i].split('='); 7955 if(aCookie[0].indexOf('_')>=0){ 7956 document.cookie = aCookie[0]+'=0; expires='+deleteDate+'; domain='+options.domain.replace('www','')+'; path=/'; 7957 }else{ 7958 document.cookie = aCookie[0]+'=0; expires='+deleteDate+'; path=/'; 7959 } 7960 } 7961 document.cookie = cookieEntry.replace('{value}','declined'); 7962 removeBar(options.declineFunction); 7963 }; 7964 var anyClick = function(e){ 7965 if(!$(e.target).hasClass('cb-policy')) cookieAccept(); 7966 }; 7967 7968 $('#cookie-bar .cb-enable').click(function(){cookieAccept();return false;}); 7969 $('#cookie-bar .cb-disable').click(function(){cookieDecline();return false;}); 7970 if(options.acceptOnScroll){ 7971 var scrollStart = $(document).scrollTop(),scrollNew,scrollDiff; 7972 $(document).on('scroll',function(){ 7973 scrollNew = $(document).scrollTop(); 7974 if(scrollNew>scrollStart){ 7975 scrollDiff = scrollNew - scrollStart; 7976 }else{ 7977 scrollDiff = scrollStart - scrollNew; 7978 } 7979 if(scrollDiff>=Math.round(options.acceptOnScroll)) cookieAccept(); 7980 }); 7981 } 7982 if(options.acceptAnyClick){ 7983 $(document).bind('click',anyClick); 7984 } 7985 } 7986 }; 7987})(jQuery); 7988/* 7989 * jQuery FlexSlider v2.2.2 7990 * Copyright 2012 WooThemes 7991 * Contributing Author: Tyler Smith 7992 */ 7993; 7994(function ($) { 7995 7996 //FlexSlider: Object Instance 7997 $.flexslider = function(el, options) { 7998 var slider = $(el); 7999 8000 // making variables public 8001 slider.vars = $.extend({}, $.flexslider.defaults, options); 8002 8003 var namespace = slider.vars.namespace, 8004 msGesture = window.navigator && window.navigator.msPointerEnabled && window.MSGesture, 8005 touch = (( "ontouchstart" in window ) || msGesture || window.DocumentTouch && document instanceof DocumentTouch) && slider.vars.touch, 8006 // depricating this idea, as devices are being released with both of these events 8007 //eventType = (touch) ? "touchend" : "click", 8008 eventType = "click touchend MSPointerUp keyup", 8009 watchedEvent = "", 8010 watchedEventClearTimer, 8011 vertical = slider.vars.direction === "vertical", 8012 reverse = slider.vars.reverse, 8013 carousel = (slider.vars.itemWidth > 0), 8014 fade = slider.vars.animation === "fade", 8015 asNav = slider.vars.asNavFor !== "", 8016 methods = {}, 8017 focused = true; 8018 8019 // Store a reference to the slider object 8020 $.data(el, "flexslider", slider); 8021 8022 // Private slider methods 8023 methods = { 8024 init: function() { 8025 slider.animating = false;
8026 // Get current slide and make sure it is a number 8027 slider.currentSlide = parseInt( ( slider.vars.startAt ? slider.vars.startAt : 0), 10 ); 8028 if ( isNaN( slider.currentSlide ) ) slider.currentSlide = 0; 8029 slider.animatingTo = slider.currentSlide; 8030 slider.atEnd = (slider.currentSlide === 0 || slider.currentSlide === slider.last); 8031 slider.containerSelector = slider.vars.selector.substr(0,slider.vars.selector.search(' ')); 8032 slider.slides = $(slider.vars.selector, slider); 8033 slider.container = $(slider.containerSelector, slider); 8034 slider.count = slider.slides.length; 8035 // SYNC: 8036 slider.syncExists = $(slider.vars.sync).length > 0; 8037 // SLIDE: 8038 if (slider.vars.animation === "slide") slider.vars.animation = "swing"; 8039 slider.prop = (vertical) ? "top" : "marginLeft"; 8040 slider.args = {}; 8041 // SLIDESHOW: 8042 slider.manualPause = false; 8043 slider.stopped = false; 8044 //PAUSE WHEN INVISIBLE 8045 slider.started = false; 8046 slider.startTimeout = null; 8047 // TOUCH/USECSS: 8048 slider.transitions = !slider.vars.video && !fade && slider.vars.useCSS && (function() { 8049 var obj = document.createElement('div'), 8050 props = ['perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective']; 8051 for (var i in props) { 8052 if ( obj.style[ props[i] ] !== undefined ) { 8053 slider.pfx = props[i].replace('Perspective','').toLowerCase(); 8054 slider.prop = "-" + slider.pfx + "-transform"; 8055 return true; 8056 } 8057 } 8058 return false; 8059 }()); 8060 slider.ensureAnimationEnd = ''; 8061 // CONTROLSCONTAINER: 8062 if (slider.vars.controlsContainer !== "") slider.controlsContainer = $(slider.vars.controlsContainer).length > 0 && $(slider.vars.controlsContainer); 8063 // MANUAL: 8064 if (slider.vars.manualControls !== "") slider.manualControls = $(slider.vars.manualControls).length > 0 && $(slider.vars.manualControls); 8065 8066 // RANDOMIZE: 8067 if (slider.vars.randomize) { 8068 slider.slides.sort(function() { return (Math.round(Math.random())-0.5); }); 8069 slider.container.empty().append(slider.slides); 8070 } 8071 8072 slider.doMath(); 8073 8074 // INIT 8075 slider.setup("init"); 8076 8077 // CONTROLNAV: 8078 if (slider.vars.controlNav) methods.controlNav.setup(); 8079 8080 // DIRECTIONNAV: 8081 if (slider.vars.directionNav) methods.directionNav.setup(); 8082 8083 // KEYBOARD: 8084 if (slider.vars.keyboard && ($(slider.containerSelector).length === 1 || slider.vars.multipleKeyboard)) { 8085 $(document).bind('keyup', function(event) { 8086 var keycode = event.keyCode; 8087 if (!slider.animating && (keycode === 39 || keycode === 37)) { 8088 var target = (keycode === 39) ? slider.getTarget('next') : 8089 (keycode === 37) ? slider.getTarget('prev') : false; 8090 slider.flexAnimate(target, slider.vars.pauseOnAction); 8091 } 8092 }); 8093 } 8094 // MOUSEWHEEL: 8095 if (slider.vars.mousewheel) { 8096 slider.bind('mousewheel', function(event, delta, deltaX, deltaY) { 8097 event.preventDefault(); 8098 var target = (delta < 0) ? slider.getTarget('next') : slider.getTarget('prev'); 8099 slider.flexAnimate(target, slider.vars.pauseOnAction); 8100 }); 8101 } 8102 8103 // PAUSEPLAY 8104 if (slider.vars.pausePlay) methods.pausePlay.setup(); 8105 8106 //PAUSE WHEN INVISIBLE 8107 if (slider.vars.slideshow && slider.vars.pauseInvisible) methods.pauseInvisible.init(); 8108 8109 // SLIDSESHOW 8110 if (slider.vars.slideshow) { 8111 if (slider.vars.pauseOnHover) { 8112 slider.hover(function() { 8113 if (!slider.manualPlay && !slider.manualPause) slider.pause(); 8114 }, function() { 8115 if (!slider.manualPause && !slider.manualPlay && !slider.stopped) slider.play(); 8116 }); 8117 } 8118 // initialize animation 8119 //If we're visible, or we don't use PageVisibility API
vendor: 42,351 bytes, lines 8120-9068
8120 if(!slider.vars.pauseInvisible || !methods.pauseInvisible.isHidden()) { 8121 (slider.vars.initDelay > 0) ? slider.startTimeout = setTimeout(slider.play, slider.vars.initDelay) : slider.play(); 8122 } 8123 } 8124 8125 // ASNAV: 8126 if (asNav) methods.asNav.setup(); 8127 8128 // TOUCH 8129 if (touch && slider.vars.touch) methods.touch(); 8130 8131 // FADE&&SMOOTHHEIGHT || SLIDE: 8132 if (!fade || (fade && slider.vars.smoothHeight)) $(window).bind("resize orientationchange focus", methods.resize); 8133 8134 slider.find("img").attr("draggable", "false"); 8135 8136 // API: start() Callback 8137 setTimeout(function(){ 8138 slider.vars.start(slider); 8139 }, 200); 8140 }, 8141 asNav: { 8142 setup: function() { 8143 slider.asNav = true; 8144 slider.animatingTo = Math.floor(slider.currentSlide/slider.move); 8145 slider.currentItem = slider.currentSlide; 8146 slider.slides.removeClass(namespace + "active-slide").eq(slider.currentItem).addClass(namespace + "active-slide"); 8147 if(!msGesture){ 8148 slider.slides.on(eventType, function(e){ 8149 e.preventDefault(); 8150 var $slide = $(this), 8151 target = $slide.index(); 8152 var posFromLeft = $slide.offset().left - $(slider).scrollLeft(); // Find position of slide relative to left of slider container 8153 if( posFromLeft <= 0 && $slide.hasClass( namespace + 'active-slide' ) ) { 8154 slider.flexAnimate(slider.getTarget("prev"), true); 8155 } else if (!$(slider.vars.asNavFor).data('flexslider').animating && !$slide.hasClass(namespace + "active-slide")) { 8156 slider.direction = (slider.currentItem < target) ? "next" : "prev"; 8157 slider.flexAnimate(target, slider.vars.pauseOnAction, false, true, true); 8158 } 8159 }); 8160 }else{ 8161 el._slider = slider; 8162 slider.slides.each(function (){ 8163 var that = this; 8164 that._gesture = new MSGesture(); 8165 that._gesture.target = that; 8166 that.addEventListener("MSPointerDown", function (e){ 8167 e.preventDefault(); 8168 if(e.currentTarget._gesture) 8169 e.currentTarget._gesture.addPointer(e.pointerId); 8170 }, false); 8171 that.addEventListener("MSGestureTap", function (e){ 8172 e.preventDefault(); 8173 var $slide = $(this), 8174 target = $slide.index(); 8175 if (!$(slider.vars.asNavFor).data('flexslider').animating && !$slide.hasClass('active')) { 8176 slider.direction = (slider.currentItem < target) ? "next" : "prev"; 8177 slider.flexAnimate(target, slider.vars.pauseOnAction, false, true, true); 8178 } 8179 }); 8180 }); 8181 } 8182 } 8183 }, 8184 controlNav: { 8185 setup: function() { 8186 if (!slider.manualControls) { 8187 methods.controlNav.setupPaging(); 8188 } else { // MANUALCONTROLS: 8189 methods.controlNav.setupManual(); 8190 } 8191 }, 8192 setupPaging: function() { 8193 var type = (slider.vars.controlNav === "thumbnails") ? 'control-thumbs' : 'control-paging', 8194 j = 1, 8195 item, 8196 slide; 8197 8198 slider.controlNavScaffold = $('<ol class="'+ namespace + 'control-nav ' + namespace + type + '"></ol>'); 8199 8200 if (slider.pagingCount > 1) { 8201 for (var i = 0; i < slider.pagingCount; i++) { 8202 slide = slider.slides.eq(i); 8203 item = (slider.vars.controlNav === "thumbnails") ? '<img src="' + slide.attr( 'data-thumb' ) + '"/>' : '<a>' + j + '</a>'; 8204 if ( 'thumbnails' === slider.vars.controlNav && true === slider.vars.thumbCaptions ) { 8205 var captn = slide.attr( 'data-thumbcaption' ); 8206 if ( '' != captn && undefined != captn ) item += '<span class="' + namespace + 'caption">' + captn + '</span>'; 8207 } 8208 slider.controlNavScaffold.append('<li>' + item + '</li>'); 8209 j++; 8210 } 8211 } 8212 8213 // CONTROLSCONTAINER: 8214 (slider.controlsContainer) ? $(slider.controlsContainer).append(slider.controlNavScaffold) : slider.append(slider.controlNavScaffold); 8215 methods.controlNav.set(); 8216 8217 methods.controlNav.active(); 8218 8219 slider.controlNavScaffold.delegate('a, img', eventType, function(event) { 8220 event.preventDefault(); 8221 8222 if (watchedEvent === "" || watchedEvent === event.type) { 8223 var $this = $(this), 8224 target = slider.controlNav.index($this); 8225 8226 if (!$this.hasClass(namespace + 'active')) { 8227 slider.direction = (target > slider.currentSlide) ? "next" : "prev"; 8228 slider.flexAnimate(target, slider.vars.pauseOnAction); 8229 } 8230 } 8231 8232 // setup flags to prevent event duplication 8233 if (watchedEvent === "") { 8234 watchedEvent = event.type; 8235 } 8236 methods.setToClearWatchedEvent(); 8237 8238 }); 8239 }, 8240 setupManual: function() { 8241 slider.controlNav = slider.manualControls; 8242 methods.controlNav.active(); 8243 8244 slider.controlNav.bind(eventType, function(event) { 8245 event.preventDefault(); 8246 8247 if (watchedEvent === "" || watchedEvent === event.type) { 8248 var $this = $(this), 8249 target = slider.controlNav.index($this); 8250 8251 if (!$this.hasClass(namespace + 'active')) { 8252 (target > slider.currentSlide) ? slider.direction = "next" : slider.direction = "prev"; 8253 slider.flexAnimate(target, slider.vars.pauseOnAction); 8254 } 8255 } 8256 8257 // setup flags to prevent event duplication 8258 if (watchedEvent === "") { 8259 watchedEvent = event.type; 8260 } 8261 methods.setToClearWatchedEvent(); 8262 }); 8263 }, 8264 set: function() { 8265 var selector = (slider.vars.controlNav === "thumbnails") ? 'img' : 'a'; 8266 slider.controlNav = $('.' + namespace + 'control-nav li ' + selector, (slider.controlsContainer) ? slider.controlsContainer : slider); 8267 }, 8268 active: function() { 8269 slider.controlNav.removeClass(namespace + "active").eq(slider.animatingTo).addClass(namespace + "active"); 8270 }, 8271 update: function(action, pos) { 8272 if (slider.pagingCount > 1 && action === "add") { 8273 slider.controlNavScaffold.append($('<li><a>' + slider.count + '</a></li>')); 8274 } else if (slider.pagingCount === 1) { 8275 slider.controlNavScaffold.find('li').remove(); 8276 } else { 8277 slider.controlNav.eq(pos).closest('li').remove(); 8278 } 8279 methods.controlNav.set(); 8280 (slider.pagingCount > 1 && slider.pagingCount !== slider.controlNav.length) ? slider.update(pos, action) : methods.controlNav.active(); 8281 } 8282 }, 8283 directionNav: { 8284 setup: function() { 8285 var directionNavScaffold = $('<ul class="' + namespace + 'direction-nav"><li><a class="' + namespace + 'prev" href="#">' + slider.vars.prevText + '</a></li><li><a class="' + namespace + 'next" href="#">' + slider.vars.nextText + '</a></li></ul>'); 8286 8287 // CONTROLSCONTAINER: 8288 if (slider.controlsContainer) { 8289 $(slider.controlsContainer).append(directionNavScaffold); 8290 slider.directionNav = $('.' + namespace + 'direction-nav li a', slider.controlsContainer); 8291 } else { 8292 slider.append(directionNavScaffold); 8293 slider.directionNav = $('.' + namespace + 'direction-nav li a', slider); 8294 } 8295 8296 methods.directionNav.update(); 8297 8298 slider.directionNav.bind(eventType, function(event) { 8299 event.preventDefault(); 8300 var target; 8301 8302 if (watchedEvent === "" || watchedEvent === event.type) { 8303 target = ($(this).hasClass(namespace + 'next')) ? slider.getTarget('next') : slider.getTarget('prev'); 8304 slider.flexAnimate(target, slider.vars.pauseOnAction); 8305 } 8306 8307 // setup flags to prevent event duplication 8308 if (watchedEvent === "") { 8309 watchedEvent = event.type; 8310 } 8311 methods.setToClearWatchedEvent(); 8312 }); 8313 }, 8314 update: function() { 8315 var disabledClass = namespace + 'disabled'; 8316 if (slider.pagingCount === 1) { 8317 slider.directionNav.addClass(disabledClass).attr('tabindex', '-1'); 8318 } else if (!slider.vars.animationLoop) { 8319 if (slider.animatingTo === 0) { 8320 slider.directionNav.removeClass(disabledClass).filter('.' + namespace + "prev").addClass(disabledClass).attr('tabindex', '-1'); 8321 } else if (slider.animatingTo === slider.last) { 8322 slider.directionNav.removeClass(disabledClass).filter('.' + namespace + "next").addClass(disabledClass).attr('tabindex', '-1'); 8323 } else { 8324 slider.directionNav.removeClass(disabledClass).removeAttr('tabindex'); 8325 } 8326 } else { 8327 slider.directionNav.removeClass(disabledClass).removeAttr('tabindex'); 8328 } 8329 } 8330 }, 8331 pausePlay: { 8332 setup: function() { 8333 var pausePlayScaffold = $('<div class="' + namespace + 'pauseplay"><a></a></div>'); 8334 8335 // CONTROLSCONTAINER: 8336 if (slider.controlsContainer) { 8337 slider.controlsContainer.append(pausePlayScaffold); 8338 slider.pausePlay = $('.' + namespace + 'pauseplay a', slider.controlsContainer); 8339 } else { 8340 slider.append(pausePlayScaffold); 8341 slider.pausePlay = $('.' + namespace + 'pauseplay a', slider); 8342 } 8343 8344 methods.pausePlay.update((slider.vars.slideshow) ? namespace + 'pause' : namespace + 'play'); 8345 8346 slider.pausePlay.bind(eventType, function(event) { 8347 event.preventDefault(); 8348 8349 if (watchedEvent === "" || watchedEvent === event.type) { 8350 if ($(this).hasClass(namespace + 'pause')) { 8351 slider.manualPause = true; 8352 slider.manualPlay = false; 8353 slider.pause(); 8354 } else { 8355 slider.manualPause = false; 8356 slider.manualPlay = true; 8357 slider.play(); 8358 } 8359 } 8360 8361 // setup flags to prevent event duplication 8362 if (watchedEvent === "") { 8363 watchedEvent = event.type; 8364 } 8365 methods.setToClearWatchedEvent(); 8366 }); 8367 }, 8368 update: function(state) { 8369 (state === "play") ? slider.pausePlay.removeClass(namespace + 'pause').addClass(namespace + 'play').html(slider.vars.playText) : slider.pausePlay.removeClass(namespace + 'play').addClass(namespace + 'pause').html(slider.vars.pauseText); 8370 } 8371 }, 8372 touch: function() { 8373 var startX, 8374 startY, 8375 offset, 8376 cwidth, 8377 dx, 8378 startT, 8379 scrolling = false, 8380 localX = 0, 8381 localY = 0, 8382 accDx = 0; 8383 8384 if(!msGesture){ 8385 el.addEventListener('touchstart', onTouchStart, false); 8386 8387 function onTouchStart(e) { 8388 if (slider.animating) { 8389 e.preventDefault(); 8390 } else if ( ( window.navigator.msPointerEnabled ) || e.touches.length === 1 ) { 8391 slider.pause(); 8392 // CAROUSEL: 8393 cwidth = (vertical) ? slider.h : slider. w; 8394 startT = Number(new Date()); 8395 // CAROUSEL: 8396 8397 // Local vars for X and Y points. 8398 localX = e.touches[0].pageX; 8399 localY = e.touches[0].pageY; 8400 8401 offset = (carousel && reverse && slider.animatingTo === slider.last) ? 0 : 8402 (carousel && reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) : 8403 (carousel && slider.currentSlide === slider.last) ? slider.limit : 8404 (carousel) ? ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.currentSlide : 8405 (reverse) ? (slider.last - slider.currentSlide + slider.cloneOffset) * cwidth : (slider.currentSlide + slider.cloneOffset) * cwidth; 8406 startX = (vertical) ? localY : localX; 8407 startY = (vertical) ? localX : localY; 8408 8409 el.addEventListener('touchmove', onTouchMove, false); 8410 el.addEventListener('touchend', onTouchEnd, false); 8411 } 8412 } 8413 8414 function onTouchMove(e) { 8415 // Local vars for X and Y points. 8416 8417 localX = e.touches[0].pageX; 8418 localY = e.touches[0].pageY; 8419 8420 dx = (vertical) ? startX - localY : startX - localX; 8421 scrolling = (vertical) ? (Math.abs(dx) < Math.abs(localX - startY)) : (Math.abs(dx) < Math.abs(localY - startY)); 8422 8423 var fxms = 500; 8424 8425 if ( ! scrolling || Number( new Date() ) - startT > fxms ) { 8426 e.preventDefault(); 8427 if (!fade && slider.transitions) { 8428 if (!slider.vars.animationLoop) { 8429 dx = dx/((slider.currentSlide === 0 && dx < 0 || slider.currentSlide === slider.last && dx > 0) ? (Math.abs(dx)/cwidth+2) : 1); 8430 } 8431 slider.setProps(offset + dx, "setTouch"); 8432 } 8433 } 8434 } 8435 8436 function onTouchEnd(e) { 8437 // finish the touch by undoing the touch session 8438 el.removeEventListener('touchmove', onTouchMove, false); 8439 8440 if (slider.animatingTo === slider.currentSlide && !scrolling && !(dx === null)) { 8441 var updateDx = (reverse) ? -dx : dx, 8442 target = (updateDx > 0) ? slider.getTarget('next') : slider.getTarget('prev'); 8443 8444 if (slider.canAdvance(target) && (Number(new Date()) - startT < 550 && Math.abs(updateDx) > 50 || Math.abs(updateDx) > cwidth/2)) { 8445 slider.flexAnimate(target, slider.vars.pauseOnAction); 8446 } else { 8447 if (!fade) slider.flexAnimate(slider.currentSlide, slider.vars.pauseOnAction, true); 8448 } 8449 } 8450 el.removeEventListener('touchend', onTouchEnd, false); 8451 8452 startX = null; 8453 startY = null; 8454 dx = null; 8455 offset = null; 8456 } 8457 }else{ 8458 el.style.msTouchAction = "none"; 8459 el._gesture = new MSGesture(); 8460 el._gesture.target = el; 8461 el.addEventListener("MSPointerDown", onMSPointerDown, false); 8462 el._slider = slider; 8463 el.addEventListener("MSGestureChange", onMSGestureChange, false); 8464 el.addEventListener("MSGestureEnd", onMSGestureEnd, false); 8465 8466 function onMSPointerDown(e){ 8467 e.stopPropagation(); 8468 if (slider.animating) { 8469 e.preventDefault(); 8470 }else{ 8471 slider.pause(); 8472 el._gesture.addPointer(e.pointerId); 8473 accDx = 0; 8474 cwidth = (vertical) ? slider.h : slider. w; 8475 startT = Number(new Date()); 8476 // CAROUSEL: 8477 8478 offset = (carousel && reverse && slider.animatingTo === slider.last) ? 0 : 8479 (carousel && reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) : 8480 (carousel && slider.currentSlide === slider.last) ? slider.limit : 8481 (carousel) ? ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.currentSlide : 8482 (reverse) ? (slider.last - slider.currentSlide + slider.cloneOffset) * cwidth : (slider.currentSlide + slider.cloneOffset) * cwidth; 8483 } 8484 } 8485 8486 function onMSGestureChange(e) { 8487 e.stopPropagation(); 8488 var slider = e.target._slider; 8489 if(!slider){ 8490 return; 8491 } 8492 var transX = -e.translationX, 8493 transY = -e.translationY; 8494 8495 //Accumulate translations. 8496 accDx = accDx + ((vertical) ? transY : transX); 8497 dx = accDx; 8498 scrolling = (vertical) ? (Math.abs(accDx) < Math.abs(-transX)) : (Math.abs(accDx) < Math.abs(-transY)); 8499 8500 if(e.detail === e.MSGESTURE_FLAG_INERTIA){ 8501 setImmediate(function (){ 8502 el._gesture.stop(); 8503 }); 8504 8505 return; 8506 } 8507 8508 if (!scrolling || Number(new Date()) - startT > 500) { 8509 e.preventDefault(); 8510 if (!fade && slider.transitions) { 8511 if (!slider.vars.animationLoop) { 8512 dx = accDx / ((slider.currentSlide === 0 && accDx < 0 || slider.currentSlide === slider.last && accDx > 0) ? (Math.abs(accDx) / cwidth + 2) : 1); 8513 } 8514 slider.setProps(offset + dx, "setTouch"); 8515 } 8516 } 8517 } 8518 8519 function onMSGestureEnd(e) { 8520 e.stopPropagation(); 8521 var slider = e.target._slider; 8522 if(!slider){ 8523 return; 8524 } 8525 if (slider.animatingTo === slider.currentSlide && !scrolling && !(dx === null)) { 8526 var updateDx = (reverse) ? -dx : dx, 8527 target = (updateDx > 0) ? slider.getTarget('next') : slider.getTarget('prev'); 8528 8529 if (slider.canAdvance(target) && (Number(new Date()) - startT < 550 && Math.abs(updateDx) > 50 || Math.abs(updateDx) > cwidth/2)) { 8530 slider.flexAnimate(target, slider.vars.pauseOnAction); 8531 } else { 8532 if (!fade) slider.flexAnimate(slider.currentSlide, slider.vars.pauseOnAction, true); 8533 } 8534 } 8535 8536 startX = null; 8537 startY = null; 8538 dx = null; 8539 offset = null; 8540 accDx = 0; 8541 } 8542 } 8543 }, 8544 resize: function() { 8545 if (!slider.animating && slider.is(':visible')) { 8546 if (!carousel) slider.doMath(); 8547 8548 if (fade) { 8549 // SMOOTH HEIGHT: 8550 methods.smoothHeight(); 8551 } else if (carousel) { //CAROUSEL: 8552 slider.slides.width(slider.computedW); 8553 slider.update(slider.pagingCount); 8554 slider.setProps(); 8555 } 8556 else if (vertical) { //VERTICAL: 8557 slider.viewport.height(slider.h); 8558 slider.setProps(slider.h, "setTotal"); 8559 } else { 8560 // SMOOTH HEIGHT: 8561 if (slider.vars.smoothHeight) methods.smoothHeight(); 8562 slider.newSlides.width(slider.computedW); 8563 slider.setProps(slider.computedW, "setTotal"); 8564 } 8565 } 8566 }, 8567 smoothHeight: function(dur) { 8568 if (!vertical || fade) { 8569 var $obj = (fade) ? slider : slider.viewport; 8570 (dur) ? $obj.animate({"height": slider.slides.eq(slider.animatingTo).height()}, dur) : $obj.height(slider.slides.eq(slider.animatingTo).height()); 8571 } 8572 }, 8573 sync: function(action) { 8574 var $obj = $(slider.vars.sync).data("flexslider"), 8575 target = slider.animatingTo; 8576 8577 switch (action) { 8578 case "animate": $obj.flexAnimate(target, slider.vars.pauseOnAction, false, true); break; 8579 case "play": if (!$obj.playing && !$obj.asNav) { $obj.play(); } break; 8580 case "pause": $obj.pause(); break; 8581 } 8582 }, 8583 uniqueID: function($clone) { 8584 // Append _clone to current level and children elements with id attributes 8585 $clone.filter( '[id]' ).add($clone.find( '[id]' )).each(function() { 8586 var $this = $(this); 8587 $this.attr( 'id', $this.attr( 'id' ) + '_clone' ); 8588 }); 8589 return $clone; 8590 }, 8591 pauseInvisible: { 8592 visProp: null, 8593 init: function() { 8594 var prefixes = ['webkit','moz','ms','o']; 8595 8596 if ('hidden' in document) return 'hidden'; 8597 for (var i = 0; i < prefixes.length; i++) { 8598 if ((prefixes[i] + 'Hidden') in document) 8599 methods.pauseInvisible.visProp = prefixes[i] + 'Hidden'; 8600 } 8601 if (methods.pauseInvisible.visProp) { 8602 var evtname = methods.pauseInvisible.visProp.replace(/[H|h]idden/,'') + 'visibilitychange'; 8603 document.addEventListener(evtname, function() { 8604 if (methods.pauseInvisible.isHidden()) { 8605 if(slider.startTimeout) clearTimeout(slider.startTimeout); //If clock is ticking, stop timer and prevent from starting while invisible 8606 else slider.pause(); //Or just pause 8607 } 8608 else { 8609 if(slider.started) slider.play(); //Initiated before, just play 8610 else (slider.vars.initDelay > 0) ? setTimeout(slider.play, slider.vars.initDelay) : slider.play(); //Didn't init before: simply init or wait for it 8611 } 8612 }); 8613 } 8614 }, 8615 isHidden: function() { 8616 return document[methods.pauseInvisible.visProp] || false; 8617 } 8618 }, 8619 setToClearWatchedEvent: function() { 8620 clearTimeout(watchedEventClearTimer); 8621 watchedEventClearTimer = setTimeout(function() { 8622 watchedEvent = ""; 8623 }, 3000); 8624 } 8625 }; 8626 8627 // public methods 8628 slider.flexAnimate = function(target, pause, override, withSync, fromNav) { 8629 if (!slider.vars.animationLoop && target !== slider.currentSlide) { 8630 slider.direction = (target > slider.currentSlide) ? "next" : "prev"; 8631 } 8632 8633 if (asNav && slider.pagingCount === 1) slider.direction = (slider.currentItem < target) ? "next" : "prev"; 8634 8635 if (!slider.animating && (slider.canAdvance(target, fromNav) || override) && slider.is(":visible")) { 8636 if (asNav && withSync) { 8637 var master = $(slider.vars.asNavFor).data('flexslider'); 8638 slider.atEnd = target === 0 || target === slider.count - 1; 8639 master.flexAnimate(target, true, false, true, fromNav); 8640 slider.direction = (slider.currentItem < target) ? "next" : "prev"; 8641 master.direction = slider.direction; 8642 8643 if (Math.ceil((target + 1)/slider.visible) - 1 !== slider.currentSlide && target !== 0) { 8644 slider.currentItem = target; 8645 slider.slides.removeClass(namespace + "active-slide").eq(target).addClass(namespace + "active-slide"); 8646 target = Math.floor(target/slider.visible); 8647 } else { 8648 slider.currentItem = target; 8649 slider.slides.removeClass(namespace + "active-slide").eq(target).addClass(namespace + "active-slide"); 8650 return false; 8651 } 8652 } 8653 8654 slider.animating = true; 8655 slider.animatingTo = target; 8656 8657 // SLIDESHOW: 8658 if (pause) slider.pause(); 8659 8660 // API: before() animation Callback 8661 slider.vars.before(slider); 8662 8663 // SYNC: 8664 if (slider.syncExists && !fromNav) methods.sync("animate"); 8665 8666 // CONTROLNAV 8667 if (slider.vars.controlNav) methods.controlNav.active(); 8668 8669 // !CAROUSEL: 8670 // CANDIDATE: slide active class (for add/remove slide) 8671 if (!carousel) slider.slides.removeClass(namespace + 'active-slide').eq(target).addClass(namespace + 'active-slide'); 8672 8673 // INFINITE LOOP: 8674 // CANDIDATE: atEnd 8675 slider.atEnd = target === 0 || target === slider.last; 8676 8677 // DIRECTIONNAV: 8678 if (slider.vars.directionNav) methods.directionNav.update(); 8679 8680 if (target === slider.last) { 8681 // API: end() of cycle Callback 8682 slider.vars.end(slider); 8683 // SLIDESHOW && !INFINITE LOOP: 8684 if (!slider.vars.animationLoop) slider.pause(); 8685 } 8686 8687 // SLIDE: 8688 if (!fade) { 8689 var dimension = (vertical) ? slider.slides.filter(':first').height() : slider.computedW, 8690 margin, slideString, calcNext; 8691 8692 // INFINITE LOOP / REVERSE: 8693 if (carousel) { 8694 //margin = (slider.vars.itemWidth > slider.w) ? slider.vars.itemMargin * 2 : slider.vars.itemMargin; 8695 margin = slider.vars.itemMargin; 8696 calcNext = ((slider.itemW + margin) * slider.move) * slider.animatingTo; 8697 slideString = (calcNext > slider.limit && slider.visible !== 1) ? slider.limit : calcNext; 8698 } else if (slider.currentSlide === 0 && target === slider.count - 1 && slider.vars.animationLoop && slider.direction !== "next") { 8699 slideString = (reverse) ? (slider.count + slider.cloneOffset) * dimension : 0; 8700 } else if (slider.currentSlide === slider.last && target === 0 && slider.vars.animationLoop && slider.direction !== "prev") { 8701 slideString = (reverse) ? 0 : (slider.count + 1) * dimension; 8702 } else { 8703 slideString = (reverse) ? ((slider.count - 1) - target + slider.cloneOffset) * dimension : (target + slider.cloneOffset) * dimension; 8704 } 8705 slider.setProps(slideString, "", slider.vars.animationSpeed); 8706 if (slider.transitions) { 8707 if (!slider.vars.animationLoop || !slider.atEnd) { 8708 slider.animating = false; 8709 slider.currentSlide = slider.animatingTo; 8710 } 8711 8712 // Unbind previous transitionEnd events and re-bind new transitionEnd event 8713 slider.container.unbind("webkitTransitionEnd transitionend"); 8714 slider.container.bind("webkitTransitionEnd transitionend", function() { 8715 clearTimeout(slider.ensureAnimationEnd); 8716 slider.wrapup(dimension); 8717 }); 8718 8719 // Insurance for the ever-so-fickle transitionEnd event 8720 clearTimeout(slider.ensureAnimationEnd); 8721 slider.ensureAnimationEnd = setTimeout(function() { 8722 slider.wrapup(dimension); 8723 }, slider.vars.animationSpeed + 100); 8724 8725 } else { 8726 slider.container.animate(slider.args, slider.vars.animationSpeed, slider.vars.easing, function(){ 8727 slider.wrapup(dimension); 8728 }); 8729 } 8730 } else { // FADE: 8731 if (!touch) { 8732 //slider.slides.eq(slider.currentSlide).fadeOut(slider.vars.animationSpeed, slider.vars.easing); 8733 //slider.slides.eq(target).fadeIn(slider.vars.animationSpeed, slider.vars.easing, slider.wrapup); 8734 8735 slider.slides.eq(slider.currentSlide).css({"zIndex": 1}).animate({"opacity": 0}, slider.vars.animationSpeed, slider.vars.easing); 8736 slider.slides.eq(target).css({"zIndex": 2}).animate({"opacity": 1}, slider.vars.animationSpeed, slider.vars.easing, slider.wrapup); 8737 8738 } else { 8739 slider.slides.eq(slider.currentSlide).css({ "opacity": 0, "zIndex": 1 }); 8740 slider.slides.eq(target).css({ "opacity": 1, "zIndex": 2 }); 8741 slider.wrapup(dimension); 8742 } 8743 } 8744 // SMOOTH HEIGHT: 8745 if (slider.vars.smoothHeight) methods.smoothHeight(slider.vars.animationSpeed); 8746 } 8747 }; 8748 slider.wrapup = function(dimension) { 8749 // SLIDE: 8750 if (!fade && !carousel) { 8751 if (slider.currentSlide === 0 && slider.animatingTo === slider.last && slider.vars.animationLoop) { 8752 slider.setProps(dimension, "jumpEnd"); 8753 } else if (slider.currentSlide === slider.last && slider.animatingTo === 0 && slider.vars.animationLoop) { 8754 slider.setProps(dimension, "jumpStart"); 8755 } 8756 } 8757 slider.animating = false; 8758 slider.currentSlide = slider.animatingTo; 8759 // API: after() animation Callback 8760 slider.vars.after(slider); 8761 }; 8762 8763 // SLIDESHOW: 8764 slider.animateSlides = function() { 8765 if (!slider.animating && focused ) slider.flexAnimate(slider.getTarget("next")); 8766 }; 8767 // SLIDESHOW: 8768 slider.pause = function() { 8769 clearInterval(slider.animatedSlides); 8770 slider.animatedSlides = null; 8771 slider.playing = false; 8772 // PAUSEPLAY: 8773 if (slider.vars.pausePlay) methods.pausePlay.update("play"); 8774 // SYNC: 8775 if (slider.syncExists) methods.sync("pause"); 8776 }; 8777 // SLIDESHOW: 8778 slider.play = function() { 8779 if (slider.playing) clearInterval(slider.animatedSlides); 8780 slider.animatedSlides = slider.animatedSlides || setInterval(slider.animateSlides, slider.vars.slideshowSpeed); 8781 slider.started = slider.playing = true; 8782 // PAUSEPLAY: 8783 if (slider.vars.pausePlay) methods.pausePlay.update("pause"); 8784 // SYNC: 8785 if (slider.syncExists) methods.sync("play"); 8786 }; 8787 // STOP: 8788 slider.stop = function () { 8789 slider.pause(); 8790 slider.stopped = true; 8791 }; 8792 slider.canAdvance = function(target, fromNav) { 8793 // ASNAV: 8794 var last = (asNav) ? slider.pagingCount - 1 : slider.last; 8795 return (fromNav) ? true : 8796 (asNav && slider.currentItem === slider.count - 1 && target === 0 && slider.direction === "prev") ? true : 8797 (asNav && slider.currentItem === 0 && target === slider.pagingCount - 1 && slider.direction !== "next") ? false : 8798 (target === slider.currentSlide && !asNav) ? false : 8799 (slider.vars.animationLoop) ? true : 8800 (slider.atEnd && slider.currentSlide === 0 && target === last && slider.direction !== "next") ? false : 8801 (slider.atEnd && slider.currentSlide === last && target === 0 && slider.direction === "next") ? false : 8802 true; 8803 }; 8804 slider.getTarget = function(dir) { 8805 slider.direction = dir; 8806 if (dir === "next") { 8807 return (slider.currentSlide === slider.last) ? 0 : slider.currentSlide + 1; 8808 } else { 8809 return (slider.currentSlide === 0) ? slider.last : slider.currentSlide - 1; 8810 } 8811 }; 8812 8813 // SLIDE: 8814 slider.setProps = function(pos, special, dur) { 8815 var target = (function() { 8816 var posCheck = (pos) ? pos : ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo, 8817 posCalc = (function() { 8818 if (carousel) { 8819 return (special === "setTouch") ? pos : 8820 (reverse && slider.animatingTo === slider.last) ? 0 : 8821 (reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) : 8822 (slider.animatingTo === slider.last) ? slider.limit : posCheck; 8823 } else { 8824 switch (special) { 8825 case "setTotal": return (reverse) ? ((slider.count - 1) - slider.currentSlide + slider.cloneOffset) * pos : (slider.currentSlide + slider.cloneOffset) * pos; 8826 case "setTouch": return (reverse) ? pos : pos; 8827 case "jumpEnd": return (reverse) ? pos : slider.count * pos; 8828 case "jumpStart": return (reverse) ? slider.count * pos : pos; 8829 default: return pos; 8830 } 8831 } 8832 }()); 8833 8834 return (posCalc * -1) + "px"; 8835 }()); 8836 8837 if (slider.transitions) { 8838 target = (vertical) ? "translate3d(0," + target + ",0)" : "translate3d(" + target + ",0,0)"; 8839 dur = (dur !== undefined) ? (dur/1000) + "s" : "0s"; 8840 slider.container.css("-" + slider.pfx + "-transition-duration", dur); 8841 slider.container.css("transition-duration", dur); 8842 } 8843 8844 slider.args[slider.prop] = target; 8845 if (slider.transitions || dur === undefined) slider.container.css(slider.args); 8846 8847 slider.container.css('transform',target); 8848 }; 8849 8850 slider.setup = function(type) { 8851 // SLIDE: 8852 if (!fade) { 8853 var sliderOffset, arr; 8854 8855 if (type === "init") { 8856 slider.viewport = $('<div class="' + namespace + 'viewport"></div>').css({"overflow": "hidden", "position": "relative"}).appendTo(slider).append(slider.container); 8857 // INFINITE LOOP: 8858 slider.cloneCount = 0; 8859 slider.cloneOffset = 0; 8860 // REVERSE: 8861 if (reverse) { 8862 arr = $.makeArray(slider.slides).reverse(); 8863 slider.slides = $(arr); 8864 slider.container.empty().append(slider.slides); 8865 } 8866 } 8867 // INFINITE LOOP && !CAROUSEL: 8868 if (slider.vars.animationLoop && !carousel) { 8869 slider.cloneCount = 2; 8870 slider.cloneOffset = 1; 8871 // clear out old clones 8872 if (type !== "init") slider.container.find('.clone').remove(); 8873 slider.container.append(methods.uniqueID(slider.slides.first().clone().addClass('clone')).attr('aria-hidden', 'true')) 8874 .prepend(methods.uniqueID(slider.slides.last().clone().addClass('clone')).attr('aria-hidden', 'true')); 8875 } 8876 slider.newSlides = $(slider.vars.selector, slider); 8877 8878 sliderOffset = (reverse) ? slider.count - 1 - slider.currentSlide + slider.cloneOffset : slider.currentSlide + slider.cloneOffset; 8879 // VERTICAL: 8880 if (vertical && !carousel) { 8881 slider.container.height((slider.count + slider.cloneCount) * 200 + "%").css("position", "absolute").width("100%"); 8882 setTimeout(function(){ 8883 slider.newSlides.css({"display": "block"}); 8884 slider.doMath(); 8885 slider.viewport.height(slider.h); 8886 slider.setProps(sliderOffset * slider.h, "init"); 8887 }, (type === "init") ? 100 : 0); 8888 } else { 8889 slider.container.width((slider.count + slider.cloneCount) * 200 + "%"); 8890 slider.setProps(sliderOffset * slider.computedW, "init"); 8891 setTimeout(function(){ 8892 slider.doMath(); 8893 slider.newSlides.css({"width": slider.computedW, "float": "left", "display": "block"}); 8894 // SMOOTH HEIGHT: 8895 if (slider.vars.smoothHeight) methods.smoothHeight(); 8896 }, (type === "init") ? 100 : 0); 8897 } 8898 } else { // FADE: 8899 slider.slides.css({"width": "100%", "float": "left", "marginRight": "-100%", "position": "relative"}); 8900 if (type === "init") { 8901 if (!touch) { 8902 //slider.slides.eq(slider.currentSlide).fadeIn(slider.vars.animationSpeed, slider.vars.easing); 8903 if (slider.vars.fadeFirstSlide == false) { 8904 slider.slides.css({ "opacity": 0, "display": "block", "zIndex": 1 }).eq(slider.currentSlide).css({"zIndex": 2}).css({"opacity": 1}); 8905 } else { 8906 slider.slides.css({ "opacity": 0, "display": "block", "zIndex": 1 }).eq(slider.currentSlide).css({"zIndex": 2}).animate({"opacity": 1},slider.vars.animationSpeed,slider.vars.easing); 8907 } 8908 } else { 8909 slider.slides.css({ "opacity": 0, "display": "block", "webkitTransition": "opacity " + slider.vars.animationSpeed / 1000 + "s ease", "zIndex": 1 }).eq(slider.currentSlide).css({ "opacity": 1, "zIndex": 2}); 8910 } 8911 } 8912 // SMOOTH HEIGHT: 8913 if (slider.vars.smoothHeight) methods.smoothHeight(); 8914 } 8915 // !CAROUSEL: 8916 // CANDIDATE: active slide 8917 if (!carousel) slider.slides.removeClass(namespace + "active-slide").eq(slider.currentSlide).addClass(namespace + "active-slide"); 8918 8919 //FlexSlider: init() Callback 8920 slider.vars.init(slider); 8921 }; 8922 8923 slider.doMath = function() { 8924 var slide = slider.slides.first(), 8925 slideMargin = slider.vars.itemMargin, 8926 minItems = slider.vars.minItems, 8927 maxItems = slider.vars.maxItems; 8928 8929 slider.w = (slider.viewport===undefined) ? slider.width() : slider.viewport.width(); 8930 slider.h = slide.height(); 8931 slider.boxPadding = slide.outerWidth() - slide.width(); 8932 8933 // CAROUSEL: 8934 if (carousel) { 8935 slider.itemT = slider.vars.itemWidth + slideMargin; 8936 slider.minW = (minItems) ? minItems * slider.itemT : slider.w; 8937 slider.maxW = (maxItems) ? (maxItems * slider.itemT) - slideMargin : slider.w; 8938 slider.itemW = (slider.minW > slider.w) ? (slider.w - (slideMargin * (minItems - 1)))/minItems : 8939 (slider.maxW < slider.w) ? (slider.w - (slideMargin * (maxItems - 1)))/maxItems : 8940 (slider.vars.itemWidth > slider.w) ? slider.w : slider.vars.itemWidth; 8941 8942 slider.visible = Math.floor(slider.w/(slider.itemW)); 8943 slider.move = (slider.vars.move > 0 && slider.vars.move < slider.visible ) ? slider.vars.move : slider.visible; 8944 slider.pagingCount = Math.ceil(((slider.count - slider.visible)/slider.move) + 1); 8945 slider.last = slider.pagingCount - 1; 8946 slider.limit = (slider.pagingCount === 1) ? 0 : 8947 (slider.vars.itemWidth > slider.w) ? (slider.itemW * (slider.count - 1)) + (slideMargin * (slider.count - 1)) : ((slider.itemW + slideMargin) * slider.count) - slider.w - slideMargin; 8948 } else { 8949 slider.itemW = slider.w; 8950 slider.pagingCount = slider.count; 8951 slider.last = slider.count - 1; 8952 } 8953 slider.computedW = slider.itemW - slider.boxPadding; 8954 }; 8955 8956 slider.update = function(pos, action) { 8957 slider.doMath(); 8958 8959 // update currentSlide and slider.animatingTo if necessary 8960 if (!carousel) { 8961 if (pos < slider.currentSlide) { 8962 slider.currentSlide += 1; 8963 } else if (pos <= slider.currentSlide && pos !== 0) { 8964 slider.currentSlide -= 1; 8965 } 8966 slider.animatingTo = slider.currentSlide; 8967 } 8968 8969 // update controlNav 8970 if (slider.vars.controlNav && !slider.manualControls) { 8971 if ((action === "add" && !carousel) || slider.pagingCount > slider.controlNav.length) { 8972 methods.controlNav.update("add"); 8973 } else if ((action === "remove" && !carousel) || slider.pagingCount < slider.controlNav.length) { 8974 if (carousel && slider.currentSlide > slider.last) { 8975 slider.currentSlide -= 1; 8976 slider.animatingTo -= 1; 8977 } 8978 methods.controlNav.update("remove", slider.last); 8979 } 8980 } 8981 // update directionNav 8982 if (slider.vars.directionNav) methods.directionNav.update(); 8983 8984 }; 8985 8986 slider.addSlide = function(obj, pos) { 8987 var $obj = $(obj); 8988 8989 slider.count += 1; 8990 slider.last = slider.count - 1; 8991 8992 // append new slide 8993 if (vertical && reverse) { 8994 (pos !== undefined) ? slider.slides.eq(slider.count - pos).after($obj) : slider.container.prepend($obj); 8995 } else { 8996 (pos !== undefined) ? slider.slides.eq(pos).before($obj) : slider.container.append($obj); 8997 } 8998 8999 // update currentSlide, animatingTo, controlNav, and directionNav 9000 slider.update(pos, "add"); 9001 9002 // update slider.slides 9003 slider.slides = $(slider.vars.selector + ':not(.clone)', slider); 9004 // re-setup the slider to accomdate new slide 9005 slider.setup(); 9006 9007 //FlexSlider: added() Callback 9008 slider.vars.added(slider); 9009 }; 9010 slider.removeSlide = function(obj) { 9011 var pos = (isNaN(obj)) ? slider.slides.index($(obj)) : obj; 9012 9013 // update count 9014 slider.count -= 1; 9015 slider.last = slider.count - 1; 9016 9017 // remove slide 9018 if (isNaN(obj)) { 9019 $(obj, slider.slides).remove(); 9020 } else { 9021 (vertical && reverse) ? slider.slides.eq(slider.last).remove() : slider.slides.eq(obj).remove(); 9022 } 9023 9024 // update currentSlide, animatingTo, controlNav, and directionNav 9025 slider.doMath(); 9026 slider.update(pos, "remove"); 9027 9028 // update slider.slides 9029 slider.slides = $(slider.vars.selector + ':not(.clone)', slider); 9030 // re-setup the slider to accomdate new slide 9031 slider.setup(); 9032 9033 // FlexSlider: removed() Callback 9034 slider.vars.removed(slider); 9035 }; 9036 9037 //FlexSlider: Initialize 9038 methods.init(); 9039 }; 9040 9041 // Ensure the slider isn't focussed if the window loses focus. 9042 $( window ).blur( function ( e ) { 9043 focused = false; 9044 }).focus( function ( e ) { 9045 focused = true; 9046 }); 9047 9048 //FlexSlider: Default Settings 9049 $.flexslider.defaults = { 9050 namespace: "flex-", //{NEW} String: Prefix string attached to the class of every element generated by the plugin 9051 selector: ".slides > li", //{NEW} Selector: Must match a simple pattern. '{container} > {slide}' -- Ignore pattern at your own peril 9052 animation: "fade", //String: Select your animation type, "fade" or "slide" 9053 easing: "swing", //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported! 9054 direction: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical" 9055 reverse: false, //{NEW} Boolean: Reverse the animation direction 9056 animationLoop: true, //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end 9057 smoothHeight: false, //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode 9058 startAt: 0, //Integer: The slide that the slider should start on. Array notation (0 = first slide) 9059 slideshow: true, //Boolean: Animate slider automatically 9060 slideshowSpeed: 7000, //Integer: Set the speed of the slideshow cycling, in milliseconds 9061 animationSpeed: 600, //Integer: Set the speed of animations, in milliseconds 9062 initDelay: 0, //{NEW} Integer: Set an initialization delay, in milliseconds 9063 randomize: false, //Boolean: Randomize slide order 9064 fadeFirstSlide: true, //Boolean: Fade in the first slide when animation type is "fade" 9065 thumbCaptions: false, //Boolean: Whether or not to put captions on thumbnails when using the "thumbnails" controlNav. 9066 9067 // Usability features 9068 pauseOnAction: true, //Boolean: Pause the slideshow when interacting with control elements, highly recommended.
9069 pauseOnHover: false, //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering 9070 pauseInvisible: true, //{NEW} Boolean: Pause the slideshow when tab is invisible, resume when visible. Provides better UX, lower CPU usage. 9071 useCSS: true, //{NEW} Boolean: Slider will use CSS3 transitions if available 9072 touch: true, //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices 9073 video: false, //{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches 9074 9075 // Primary Controls 9076 controlNav: true, //Boolean: Create navigation for paging control of each slide? Note: Leave true for manualControls usage 9077 directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false) 9078 prevText: "Previous", //String: Set the text for the "previous" directionNav item 9079 nextText: "Next", //String: Set the text for the "next" directionNav item 9080 9081 // Secondary Navigation 9082 keyboard: true, //Boolean: Allow slider navigating via keyboard left/right keys 9083 multipleKeyboard: false, //{NEW} Boolean: Allow keyboard navigation to affect multiple sliders. Default behavior cuts out keyboard navigation with more than one slider present. 9084 mousewheel: false, //{UPDATED} Boolean: Requires jquery.mousewheel.js (https://github.com/brandonaaron/jquery-mousewheel) - Allows slider navigating via mousewheel 9085 pausePlay: false, //Boolean: Create pause/play dynamic element 9086 pauseText: "Pause", //String: Set the text for the "pause" pausePlay item 9087 playText: "Play", //String: Set the text for the "play" pausePlay item 9088 9089 // Special properties 9090 controlsContainer: "", //{UPDATED} jQuery Object/Selector: Declare which container the navigation elements should be appended too. Default container is the FlexSlider element. Example use would be $(".flexslider-container"). Property is ignored if given element is not found. 9091 manualControls: "", //{UPDATED} jQuery Object/Selector: Declare custom control navigation. Examples would be $(".flex-control-nav li") or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs. 9092 sync: "", //{NEW} Selector: Mirror the actions performed on this slider with another slider. Use with care. 9093 asNavFor: "", //{NEW} Selector: Internal property exposed for turning the slider into a thumbnail navigation for another slider 9094 9095 // Carousel Options 9096 itemWidth: 0, //{NEW} Integer: Box-model width of individual carousel items, including horizontal borders and padding. 9097 itemMargin: 0, //{NEW} Integer: Margin between carousel items. 9098 minItems: 1, //{NEW} Integer: Minimum number of carousel items that should be visible. Items will resize fluidly when below this. 9099 maxItems: 0, //{NEW} Integer: Maxmimum number of carousel items that should be visible. Items will resize fluidly when above this limit. 9100 move: 0, //{NEW} Integer: Number of carousel items that should move on animation. If 0, slider will move all visible items. 9101 allowOneSlide: true, //{NEW} Boolean: Whether or not to allow a slider comprised of a single slide 9102 9103 // Callback API 9104 start: function(){}, //Callback: function(slider) - Fires when the slider loads the first slide 9105 before: function(){}, //Callback: function(slider) - Fires asynchronously with each slider animation 9106 after: function(){}, //Callback: function(slider) - Fires after each slider animation completes 9107 end: function(){}, //Callback: function(slider) - Fires when the slider reaches the last slide (asynchronous) 9108 added: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is added 9109 removed: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is removed 9110 init: function() {} //{NEW}
vendor: 4,955 bytes, lines 9110-9159
9110 Callback: function(slider) - Fires after the slider is initially setup 9111 }; 9112 9113 //FlexSlider: Plugin Function 9114 $.fn.flexslider = function(options) { 9115 if (options === undefined) options = {}; 9116 9117 if (typeof options === "object") { 9118 return this.each(function() { 9119 var $this = $(this), 9120 selector = (options.selector) ? options.selector : ".slides > li", 9121 $slides = $this.find(selector); 9122 9123 if ( ( $slides.length === 1 && options.allowOneSlide === true ) || $slides.length === 0 ) { 9124 $slides.fadeIn(400); 9125 if (options.start) options.start($this); 9126 } else if ($this.data('flexslider') === undefined) { 9127 new $.flexslider(this, options); 9128 } 9129 }); 9130 } else { 9131 // Helper strings to quickly perform functions on the slider 9132 var $slider = $(this).data('flexslider'); 9133 switch (options) { 9134 case "play": $slider.play(); break; 9135 case "pause": $slider.pause(); break; 9136 case "stop": $slider.stop(); break; 9137 case "next": $slider.flexAnimate($slider.getTarget("next"), true); break; 9138 case "prev": 9139 case "previous": $slider.flexAnimate($slider.getTarget("prev"), true); break; 9140 default: if (typeof options === "number") $slider.flexAnimate(options, true); 9141 } 9142 } 9143 }; 9144})(jQuery); 9145 9146/* 9147* jquery-match-height 0.7.0 by @liabru 9148* http://brm.io/jquery-match-height/ 9149* License MIT 9150*/ 9151!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=-1,o=-1,i=function(t){return parseFloat(t)||0},a=function(e){var o=1,a=t(e),n=null,r=[];return a.each(function(){var e=t(this),a=e.offset().top-i(e.css("margin-top")),s=r.length>0?r[r.length-1]:null;null===s?r.push(e):Math.floor(Math.abs(n-a))<=o?r[r.length-1]=s.add(e):r.push(e),n=a}),r},n=function(e){var o={ 9152byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(o,e):("boolean"==typeof e?o.byRow=e:"remove"===e&&(o.remove=!0),o)},r=t.fn.matchHeight=function(e){var o=n(e);if(o.remove){var i=this;return this.css(o.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(i)}),this}return this.length<=1&&!o.target?this:(r._groups.push({elements:this,options:o}),r._apply(this,o),this)};r.version="0.7.0",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null, 9153r._afterUpdate=null,r._rows=a,r._parse=i,r._parseOptions=n,r._apply=function(e,o){var s=n(o),h=t(e),l=[h],c=t(window).scrollTop(),p=t("html").outerHeight(!0),d=h.parents().filter(":hidden");return d.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),d.css("display","block"),s.byRow&&!s.target&&(h.each(function(){var e=t(this),o=e.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block"),e.data("style-cache",e.attr("style")),e.css({display:o,"padding-top":"0", 9154"padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),l=a(h),h.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(l,function(e,o){var a=t(o),n=0;if(s.target)n=s.target.outerHeight(!1);else{if(s.byRow&&a.length<=1)return void a.css(s.property,"");a.each(function(){var e=t(this),o=e.attr("style"),i=e.css("display");"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block");var a={ 9155display:i};a[s.property]="",e.css(a),e.outerHeight(!1)>n&&(n=e.outerHeight(!1)),o?e.attr("style",o):e.css("display","")})}a.each(function(){var e=t(this),o=0;s.target&&e.is(s.target)||("border-box"!==e.css("box-sizing")&&(o+=i(e.css("border-top-width"))+i(e.css("border-bottom-width")),o+=i(e.css("padding-top"))+i(e.css("padding-bottom"))),e.css(s.property,n-o+"px"))})}),d.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(c/p*t("html").outerHeight(!0)), 9156this},r._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var o=t(this),i=o.attr("data-mh")||o.attr("data-match-height");i in e?e[i]=e[i].add(o):e[i]=o}),t.each(e,function(){this.matchHeight(!0)})};var s=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(i,a){if(a&&"resize"===a.type){var n=t(window).width();if(n===e)return;e=n; 9157}i?-1===o&&(o=setTimeout(function(){s(a),o=-1},r._throttle)):s(a)},t(r._applyDataApi),t(window).bind("load",function(t){r._update(!1,t)}),t(window).bind("resize orientationchange",function(t){r._update(!0,t)})}); 9158/* == jquery mousewheel plugin == Version: 3.1.13, License: MIT License (MIT) */ 9159!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
vendor: 5,118 bytes, lines 9159-9160
9159),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)}})}); 9160/* == malihu jquery custom scrollbar plugin == Version: 3.1.5, License: MIT License (MIT) */
vendor: 40,087 bytes, lines 9160-9162
9160 9161!function(e){"function"==typeof define&&define.amd?define(["jquery"],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&&Q(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):(G(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]&&G(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):(G(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]&&G(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)),N.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=Y.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=X.call(this,c[0],"y"),c[1]=X.call(this,c[1],"x"),s.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),s.dur=ne()?0:d,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&i.overflowed[0]&&(s.dir="y",s.overwrite="all",G(n,c[0].toString(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x",s.overwrite="none",G(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)&&Q(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);N.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),N.call(this,"remove"),k.call(this),B.call(this),n.removeData(a),$(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]),$(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;'><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;'><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=oe(n.scrollButtons.tabindex)?"tabindex='"+n.scrollButtons.tabindex+"'":"",l=["<a href='#' class='"+d[13]+"' "+r+" />","<a href='#' class='"+d[14]+"' "+r+" />","<a href='#' class='"+d[15]+"' "+r+" />","<a href='#' class='"+d[16]+"' "+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(Q(t),("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(l[0].add(r).css("top",0),G(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),G(t,"_resetX")}},T=function(){function t(){r=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(r),W.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()}P.call(this),U.call(this),i.advanced.autoScrollOnFocus&&H.call(this),i.scrollButtons.enable&&F.call(this),i.keyboard.enable&&q.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(!A()||top.document)).unbind("."+i),l.each(function(){e(this).unbind("."+i)}),clearTimeout(t[0]._focusTimeout),$(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),$(o.sequential,"step"),clearTimeout(s[0].onCompleteTimeout),$(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&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=A()&&t.target.ownerDocument!==top.document&&null!==frameElement?[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,t,a,n){if(h[0].idleTimer=d.scrollInertia<233?250:0,o.attr("id")===f[1])var i="x",s=(o[0].offsetLeft-t+n)*l.scrollRatio.x;else var i="y",s=(o[0].offsetTop-e+a)*l.scrollRatio.y;G(r,s.toString(),{dir:i,drag:!0})}var o,n,i,r=e(this),l=r.data(a),d=l.opt,u=a+"_"+l.idx,f=["mCSB_"+l.idx+"_dragger_vertical","mCSB_"+l.idx+"_dragger_horizontal"],h=e("#mCSB_"+l.idx+"_container"),m=e("#"+f[0]+",#"+f[1]),p=d.advanced.releaseDraggableSelectors?m.add(e(d.advanced.releaseDraggableSelectors)):m,g=d.advanced.extraDraggableSelectors?e(!A()||top.document).add(e(d.advanced.extraDraggableSelectors)):e(!A()||top.document);m.bind("contextmenu."+u,function(e){e.preventDefault()}).bind("mousedown."+u+" touchstart."+u+" pointerdown."+u+" MSPointerDown."+u,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),ee(t)){c=!0,s&&(document.onselectstart=function(){return!1}),L.call(h,!1),Q(r),o=e(this);var a=o.offset(),l=O(t)[0]-a.top,u=O(t)[1]-a.left,f=o.height()+a.top,m=o.width()+a.left;f>l&&l>0&&m>u&&u>0&&(n=l,i=u),C(o,"active",d.autoExpandScrollbar)}}).bind("touchmove."+u,function(e){e.stopImmediatePropagation(),e.preventDefault();var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;t(n,i,r,l)}),e(document).add(g).bind("mousemove."+u+" pointermove."+u+" MSPointerMove."+u,function(e){if(o){var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;if(n===r&&i===l)return;t(n,i,r,l)}}).add(p).bind("mouseup."+u+" touchend."+u+" pointerup."+u+" MSPointerUp."+u,function(){o&&(C(o,"active",d.autoExpandScrollbar),o=null),c=!1,s&&(document.onselectstart=null),L.call(h,!0)})},D=function(){function o(e){if(!te(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(te(e)&&!c&&!O(e)[2]&&(T.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!C||b)&&d)){g=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left,n="mcsLinearOut";if(E.push(o),W.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],R,n,"y","all",!0),B.overflowed[1]&&s(w[1],R,n,"x",L,!0)}}function i(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,e.stopImmediatePropagation(),Q(y),p=K();var o=M.offset();h=O(e)[0]-o.top,m=O(e)[1]-o.left,E=[],W=[]}function r(e){if(te(e)&&!c&&!O(e)[2]){d=0,e.stopImmediatePropagation(),b=0,C=0,v=K();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],W[W.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&&G(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=[],W=[],R=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&&""!==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).bind("load",function(){A(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,j(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(){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(){t||(i&&(i=0,n("off",null)),c=!1)})},W=function(){function t(t,a){if(Q(o),!z(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="y"===i.mouseWheel.axis?t.deltaY||a:t.deltaX;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<5&&!i.mouseWheel.normalizeDelta&&(h=t.deltaFactor,d=17),G(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).bind("load",function(){A(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)})}},R=new Object,A=function(t){var o=!1,a=!1,n=null;if(void 0===t?a="#empty":void 0!==e(t).attr("id")&&(a=e(t).attr("id")),a!==!1&&void 0!==R[a])return R[a];if(t){try{var i=t.contentDocument||t.contentWindow.document;n=i.body.innerHTML}catch(r){}o=null!==n}else{try{var i=top.document;n=i.body.innerHTML}catch(r){}o=null!==n}return a!==!1&&(R[a]=o),o},L=function(e){var t=this.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}},z=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"))},P=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(){c=!1}).bind("click."+i,function(a){if(t&&(t=0,e(a.target).hasClass(d[12])||e(a.target).hasClass("mCSB_draggerRail"))){Q(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)-u*(.9*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)-u*(.9*l.height())}G(o,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},H=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(){var o=e(document.activeElement),a=r.find(".mCustomScrollBox").length,i=0;o.is(n.advanced.autoScrollOnFocus)&&(Q(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=a?(i+17)*a:0,t[0]._focusTimeout=setTimeout(function(){var e=[ae(o)[0],ae(o)[1]],a=[r[0].offsetTop,r[0].offsetLeft],s=[a[0]+e[0]>=0&&a[0]+e[0]<l.height()-o.outerHeight(!1),a[1]+e[1]>=0&&a[0]+e[1]<l.width()-o.outerWidth(!1)],c="yx"!==n.axis||s[0]||s[1]?"all":"none";"x"===n.axis||s[0]||G(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i}),"y"===n.axis||s[1]||G(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i})},t[0]._focusTimer))})},U=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(){0===i.scrollTop()&&0===i.scrollLeft()||e(".mCSB_"+o.idx+"_scrollbar").css("visibility","hidden")})},F=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("contextmenu."+r,function(e){e.preventDefault()}).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,j(t,e,o)}if(a.preventDefault(),ee(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)}}})},q=function(){function t(t){function a(e,t){r.type=i.keyboard.scrollType,r.scrollAmount=i.keyboard.scrollAmount,"stepped"===r.type&&n.tweenRunning||j(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){Q(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)-f*(.9*d.width());else var h="y",m=Math.abs(c[0].offsetTop)-f*(.9*d.height());G(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;G(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).bind("load",function(){A(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)})},j=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;return e&&17>a&&(x="x"===f.dir[0]?s[1]:s[0]),G(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),$(f,"step"),Q(t)}var c=t.data(a),u=c.opt,f=c.sequential,h=e("#mCSB_"+c.idx+"_container"),m="stepped"===f.type,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],Q(t),oe(n)&&"stepped"===f.type)return;l(m);break;case"off":s(),(m||c.tweenRunning&&f.dir)&&l(!0)}},Y=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},X=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)-s.width():l.outerHeight(!1)-s.height(),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?ae(m)[1]:ae(m)[0];case"string":case"number":if(oe(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")&&oe(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?ae(m)[1]:ae(m)[0]}return e(t).length?"x"===o?ae(e(t))[1]:ae(e(t))[0]:(l.css(h,t),void u.update.call(null,n[0]))}}},N=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(){ 9162return 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 $(f[0],"autoUpdate")):void o()},V=function(e,t,o){return Math.round(e/t)*t-o},Q=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(){Z.call(this)})},G=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?Y.call(t,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?Y.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=V(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),J(x[0],_,Math.round(b[1]),u[1],n.scrollEasing),!s.tweenRunning&&(0===w&&b[0]>=0||w===S[0]&&b[0]<=S[0])||J(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)}}})}},J=function(e,t,o,a,n,i,r){function l(){S.stop||(x||m.call(),x=K()-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=K(),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()},K=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()},Z=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)}},$=function(e,t){try{delete e[t]}catch(o){e[t]=null}},ee=function(e){return!(e.which&&1!==e.which)},te=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},oe=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ne=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).bind("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]+ae(n)[0]>=0&&a[0]+ae(n)[0]<o.height()-n.outerHeight(!1)&&a[1]+ae(n)[1]>=0&&a[1]+ae(n)[1]<o.width()-n.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,o,a){var n,i,r,l,s=e(t),c=s.parents(".mCSB_container"),d="exact"===a[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return n=[s.outerHeight(!1),s.outerWidth(!1)],r=[c[0].offsetTop+ae(s)[0],c[0].offsetLeft+ae(s)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],l=[n[0]<i[0]?d[0]:d[1],n[1]<i[1]?d[0]:d[1]],r[0]-i[0]*l[0][0]<0&&r[0]+n[0]-i[0]*l[0][1]>=0&&r[1]-i[1]*l[1][0]<0&&r[1]+n[1]-i[1]*l[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var o=e(t).data(a);if(o)return o.overflowed[0]||o.overflowed[1]}})})})});
9162 9163 9164var App = function () { 9165 function initBootstrap() { 9166 $('[data-toggle="tooltip"]').tooltip(); 9167 } 9168 9169 function initLightbox() { 9170 /* fix for missing title attribute in lightbox a tags */ 9171 $('.lightbox').each(function () { 9172 if (this.title === '') { 9173 $(this).attr('title', $('img', $(this)).attr('title')); 9174 } 9175 }).fancybox(); 9176 } 9177 9178 function initHeader() { 9179 jQuery(window).scroll(function () { 9180 if (jQuery(window).scrollTop() > 100) { 9181 jQuery('#nav-primary').addClass('navbar-shrinked'); 9182 } else { 9183 jQuery('#nav-primary').removeClass('navbar-shrinked'); 9184 } 9185 }); 9186 } 9187 9188 function initSearchbox() { 9189 jQuery('#searchDropdown').click(function () { 9190 jQuery('#sb-search .form-control').focus(); 9191 }); 9192 } 9193 9194 // function initMmenu() { 9195 // var $sidemenu = $('#sidemenu'); 9196 9197 // if (typeof $sidemenu !== 'undefined') { 9198 // $sidemenu.mmenu({ 9199 // extensions: ['effect-slide-menu', 'pageshadow'], 9200 // navbar: { 9201 // title: 'Der WestfalenTarif' 9202 // }, 9203 // navbars: [{ 9204 // position: 'top' 9205 // }, { 9206 // position: 'bottom', 9207 // height: 2, 9208 // content: ['<div id="mobile-footer"></div>'] 9209 // }] 9210 // }, { 9211 // classNames: { 9212 // selected: 'current' 9213 // } 9214 // }); 9215 9216 // /* change fixed position while opening the mmenu */ 9217 // var api = $sidemenu.data('mmenu'); 9218 // api.bind('opening', function () { 9219 // var scrollTopPosition = $(window).scrollTop(); 9220 // $('.fixed-top').css('position', 'absolute').css('top', scrollTopPosition + 'px'); 9221 // $('.hamburger').addClass('is-active'); 9222 // }); 9223 // api.bind('closed', function () { 9224 // $('.fixed-top').css('position', 'fixed').css('top', '0px'); 9225 // $('.hamburger').removeClass('is-active'); 9226 // }); 9227 // } 9228 // } 9229 9230 /** 9231 * flexslider im hero 9232 */ 9233 function initFlexslider() { 9234 $('.home .flexslider').flexslider({ 9235 'controlNav': true, 9236 'selector': '.slides > div' 9237 }); 9238 } 9239 9240 function searchForHash(regional) { 9241 var hash = window.location.hash; 9242 9243 hash = hash.split('#').join(''); 9244 if (typeof hash !== 'undefined') { 9245 if (hash !== '') { 9246 scrollByHash(hash); 9247 loadTickets(hash, regional); 9248 //openAccordionTab(hash); 9249 } 9250 } 9251 } 9252 9253 function scrollByHash(hash) { 9254 var target = $('.wst-tickets--list #' + hash + '.card').eq(0); 9255 if (target.length === 1) { 9256 target.find('.collapse').collapse('show'); 9257 $('html,body').animate({ 9258 scrollTop: target.offset().top 9259 }, 50); 9260 } 9261 } 9262 9263 function loadTickets(hash, regional) { 9264 var target = $('.wst-tickets--list #' + hash + '.card').eq(0); 9265 if (target.length === 0 && regional === true) { 9266 var ticketId = hash.split('ticket--').join(''); 9267 if (typeof ticketId !== 'undefined') { 9268 if (ticketId !== '') { 9269 var $item = $('.wst-tickets--form option[data-tickets*=",' + ticketId + ',"]').eq(0); 9270 if ($item.length === 1) { 9271 var $select = $item.parent(), 9272 value = $item.attr('value'); 9273 9274 $select.val(value); 9275 $select.parents('form').submit(); 9276 } 9277 } 9278 } 9279 } 9280 } 9281 9282 function openAccordionTab(hash) { 9283 var target = $('#' + hash).find('a'); 9284 if (target.length > 0 && target.parents('.collapse').length > 0) { 9285 target.parents('.collapse').siblings('.card-header').find('a').trigger('click'); 9286 target.parents('.collapse').addClass('show'); 9287 setTimeout(function() { 9288 //target.trigger('click'); 9289 },1200) 9290 } else { 9291 setTimeout(function() { 9292 //target.trigger('click'); 9293 },1200) 9294 } 9295 } 9296 9297 9298 9299 function initTicketSelector() { 9300 $('.wst-tickets--form').each(function () { 9301 var $form = $(this).find('form'), 9302 $select = $form.find('select'); 9303 9304 $select.change(function () { 9305 var $form = $(this).parents('form'); 9306 $form.submit(); 9307 }); 9308 9309 $form.submit(function (e) { 9310 e.preventDefault(); 9311 var data = $(this).serialize(), 9312 url = $(this).attr('action'); 9313 9314 $.post( 9315 url, 9316 data, 9317 function (data) { 9318 var $result = $(data), 9319 id = $(this).parents('.wst-tickets--form').attr('id'); 9320 9321 id = id.split('wst-tickets--form-').join(''); 9322 9323 var containerID = '#wst-result--' + id, 9324 $container = $(containerID); 9325 $container.html($result.find(containerID).html()); 9326 9327 searchForHash(false); 9328 }.bind(this) 9329 ); 9330 9331 return false;
9332 }); 9333 }); 9334 searchForHash(true); 9335 } 9336 9337 function initRegionPreselect() { 9338 var $regionPlugin = $('.js-wst-tickets-region'); 9339 if ($regionPlugin.length === 0) { 9340 return; 9341 } 9342 $.ajax({ 9343 url: window.location.protocol + '//' + window.location.hostname + '/?eID=wstTicketRegion', 9344 data: {lat: -1, lng: -1} 9345 }) 9346 .done(function (region) { 9347 var target = $('.js-region-' + region + '.card').eq(0); 9348 target.children('.collapse').collapse('show'); 9349 }); 9350 } 9351 9352 function initMap() { 9353 $('.wst-map--form select').change(function (e) { 9354 e.preventDefault(); 9355 $(this).parents('form').submit(); 9356 }); 9357 9358 $('.wst-map--form form').submit(function (e) { 9359 e.preventDefault(); 9360 var _url = $(this).find('select').val(); 9361 if (typeof _url !== 'undefined') { 9362 if (_url !== '') { 9363 window.open(_url, '_blank'); 9364 } 9365 } 9366 }); 9367 } 9368 9369 function initEqualHeight() { 9370 $('#wst-frontpageteaser .card-title').matchHeight({ 9371 byRow: true, 9372 property: 'height' 9373 }); 9374 9375 $('.card .card-block').matchHeight({ 9376 byRow: true, 9377 property: 'height' 9378 }); 9379 9380 $('.card .card-block-footer').matchHeight({ 9381 byRow: true, 9382 property: 'height' 9383 }); 9384 } 9385 9386 function initMoreButton() { 9387 $('.js-show-more').on('click', function (event) { 9388 event.preventDefault(); 9389 $('.js-more').removeClass('hidden-sm-up'); 9390 $(this).parent().addClass('hidden-sm-up'); 9391 }); 9392 } 9393 9394 function initNewsSwiper() { 9395 var swiper = new Swiper('.swiper-container', { 9396 breakpoints: { 9397 340: { 9398 slidesPerView: 1, 9399 spaceBetween: 20, 9400 }, 9401 992: { 9402 slidesPerView: 2, 9403 spaceBetween: 50, 9404 }, 9405 }, 9406 spaceBetween: 30, 9407 freeMode: true, 9408 navigation: { 9409 nextEl: '.swiper-button-next', 9410 prevEl: '.swiper-button-prev', 9411 }, 9412 pagination: { 9413 el: '.swiper-pagination', 9414 clickable: true, 9415 }, 9416 }); 9417 9418 function checkItemCount() { 9419 var swiperItems = $('.swiper-container').find('.swiper-slide'); 9420 9421 if (swiperItems.length <= 2 && $(window).width() >= 992) { 9422 $('.swiper-button-next').css({ 'display' : 'none' }); 9423 $('.swiper-button-prev').css({ 'display' : 'none' }); 9424 } 9425 } 9426 9427 $(window).on('resize', function() { 9428 checkItemCount(); 9429 }); 9430 9431 checkItemCount(); 9432 9433 } // end new swiper 9434 9435 return { 9436 init: function () { 9437 initBootstrap(); 9438 initLightbox(); 9439 initHeader(); 9440 // initMmenu(); 9441 // $.cookieBar(); 9442 initFlexslider(); 9443 initTicketSelector(); 9444 //initRegionPreselect(); 9445 initSearchbox(); 9446 initMap(); 9447 initEqualHeight(); 9448 initMoreButton(); 9449 initNewsSwiper(); 9450 WstWidget.init(); 9451 } 9452 } 9453}(); 9454 9455jQuery(document).ready(function () { 9456 App.init(); 9457}); 9458 9459// Avoid `console` errors in browsers that lack a console. 9460(function() { 9461 var method; 9462 var noop = function () {}; 9463 var methods = [ 9464 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 9465 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 9466 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', 9467 'timeStamp', 'trace', 'warn' 9468 ]; 9469 var length = methods.length; 9470 var console = (window.console = window.console || {}); 9471 9472 while (length--) { 9473 method = methods[length]; 9474 9475 // Only stub undefined methods. 9476 if (!console[method]) { 9477 console[method] = noop; 9478 } 9479 } 9480}()); 9481 9482// Place any jQuery/helper plugins in here. 9483 9484 9485/*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2013 Scott Jehl 9486 * Licensed under https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT 9487 * */ 9488 9489!function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){u(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))};if(c.ajax=f,c.queue=d,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var g,h,i,j=a.document,k=j.documentElement,l=[],m=[],n=[],o={},p=30,q=j.getElementsByTagName("head")[0]||k,r=j.getElementsByTagName("base")[0],s=q.getElementsByTagName("link"),t=function(){var a,b=j.createElement("div"),c=j.body,d=k.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=j.createElement("body"),c.style.background="none"),k.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&k.insertBefore(c,k.firstChild),a=b.offsetWidth,f?k.removeChild(c):c.removeChild(b),k.style.fontSize=d,e&&(c.style.fontSize=e),a=i=
9489parseFloat(a)},u=function(b){var c="clientWidth",d=k[c],e="CSS1Compat"===j.compatMode&&d||j.body[c]||d,f={},o=s[s.length-1],r=(new Date).getTime();if(b&&g&&p>r-g)return a.clearTimeout(h),h=a.setTimeout(u,p),void 0;g=r;for(var v in l)if(l.hasOwnProperty(v)){var w=l[v],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?i||t():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?i||t():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(m[w.rules]))}for(var C in n)n.hasOwnProperty(C)&&n[C]&&n[C].parentNode===q&&q.removeChild(n[C]);n.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=j.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,q.insertBefore(E,o.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(j.createTextNode(F)),n.push(E)}},v=function(a,b,d){var e=a.replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var g=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},h=!f&&d;b.length&&(b+="/"),h&&(f=1);for(var i=0;f>i;i++){var j,k,n,o;h?(j=d,m.push(g(a))):(j=e[i].match(c.regex.findStyles)&&RegExp.$1,m.push(RegExp.$2&&g(RegExp.$2))),n=j.split(","),o=n.length;for(var p=0;o>p;p++)k=n[p],l.push({media:k.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:m.length-1,hasquery:k.indexOf("(")>-1,minw:k.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:k.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(d.length){var b=d.shift();f(b.href,function(c){v(c,b.href,b.media),o[b.href]=!0,a.setTimeout(function(){w()},0)})}},x=function(){for(var b=0;b<s.length;b++){var c=s[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!o[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(v(c.styleSheet.rawCssText,e,f),o[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!r||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}w()};x(),c.update=x,c.getEmValue=t,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this); 9490/*! picturefill - v3.0.2 - 2016-02-12 9491 * https://scottjehl.github.io/picturefill/ 9492 * Copyright (c) 2016 https://github.com/scottjehl/picturefill/blob/master/Authors.txt; Licensed MIT 9493 */ 9494!function(a){var b=navigator.userAgent;a.HTMLPictureElement&&/ecko/.test(b)&&b.match(/rv\:(\d+)/)&&RegExp.$1<45&&addEventListener("resize",function(){var b,c=document.createElement("source"),d=function(a){var b,d,e=a.parentNode;"PICTURE"===e.nodeName.toUpperCase()?(b=c.cloneNode(),e.insertBefore(b,e.firstElementChild),setTimeout(function(){e.removeChild(b)})):(!a._pfLastSize||a.offsetWidth>a._pfLastSize)&&(a._pfLastSize=a.offsetWidth,d=a.sizes,a.sizes+=",100vw",setTimeout(function(){a.sizes=d}))},e=function(){var a,b=document.querySelectorAll("picture > img, img[srcset][sizes]");for(a=0;a<b.length;a++)d(b[a])},f=function(){clearTimeout(b),b=setTimeout(e,99)},g=a.matchMedia&&matchMedia("(orientation: landscape)"),h=function(){f(),g&&g.addListener&&g.addListener(f)};return c.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?h():document.addEventListener("DOMContentLoaded",h),f}())}(window),function(a,b,c){"use strict";function d(a){return" "===a||" "===a||"\n"===a||"\f"===a||"\r"===a}function e(b,c){var d=new a.Image;return d.onerror=function(){A[b]=!1,ba()},d.onload=function(){A[b]=1===d.width,ba()},d.src=c,"pending"}function f(){M=!1,P=a.devicePixelRatio,N={},O={},s.DPR=P||1,Q.width=Math.max(a.innerWidth||0,z.clientWidth),Q.height=Math.max(a.innerHeight||0,z.clientHeight),Q.vw=Q.width/100,Q.vh=Q.height/100,r=[Q.height,Q.width,P].join("-"),Q.em=s.getEmValue(),Q.rem=Q.em}function g(a,b,c,d){var e,f,g,h;return"saveData"===B.algorithm?a>2.7?h=c+1:(f=b-c,e=Math.pow(a-.6,1.5),g=f*e,d&&(g+=.1*e),h=a+g):h=c>1?Math.sqrt(a*b):a,h>c}function h(a){var b,c=s.getSet(a),d=!1;"pending"!==c&&(d=r,c&&(b=s.setRes(c),s.applySetCandidate(b,a))),a[s.ns].evaled=d}function i(a,b){return a.res-b.res}function j(a,b,c){var d;return!c&&b&&(c=a[s.ns].sets,c=c&&c[c.length-1]),d=k(b,c),d&&(b=s.makeUrl(b),a[s.ns].curSrc=b,a[s.ns].curCan=d,d.res||aa(d,d.set.sizes)),d}function k(a,b){var c,d,e;if(a&&b)for(e=s.parseSet(b),a=s.makeUrl(a),c=0;c<e.length;c++)if(a===s.makeUrl(e[c].url)){d=e[c];break}return d}function l(a,b){var c,d,e,f,g=a.getElementsByTagName("source");for(c=0,d=g.length;d>c;c++)e=g[c],e[s.ns]=!0,f=e.getAttribute("srcset"),f&&b.push({srcset:f,media:e.getAttribute("media"),type:e.getAttribute("type"),sizes:e.getAttribute("sizes")})}function m(a,b){function c(b){var c,d=b.exec(a.substring(m));return d?(c=d[0],m+=c.length,c):void 0}function e(){var a,c,d,e,f,i,j,k,l,m=!1,o={};for(e=0;e<h.length;e++)f=h[e],i=f[f.length-1],j=f.substring(0,f.length-1),k=parseInt(j,10),l=parseFloat(j),X.test(j)&&"w"===i?((a||c)&&(m=!0),0===k?m=!0:a=k):Y.test(j)&&"x"===i?((a||c||d)&&(m=!0),0>l?m=!0:c=l):X.test(j)&&"h"===i?((d||c)&&(m=!0),0===k?m=!0:d=k):m=!0;m||(o.url=g,a&&(o.w=a),c&&(o.d=c),d&&(o.h=d),d||c||a||(o.d=1),1===o.d&&(b.has1x=!0),o.set=b,n.push(o))}function f(){for(c(T),i="",j="in descriptor";;){if(k=a.charAt(m),"in descriptor"===j)if(d(k))i&&(h.push(i),i="",j="after descriptor");else{if(","===k)return m+=1,i&&h.push(i),void e();
vendor: 6,669 bytes, line 9494
9494if("("===k)i+=k,j="in parens";else{if(""===k)return i&&h.push(i),void e();i+=k}}else if("in parens"===j)if(")"===k)i+=k,j="in descriptor";else{if(""===k)return h.push(i),void e();i+=k}else if("after descriptor"===j)if(d(k));else{if(""===k)return void e();j="in descriptor",m-=1}m+=1}}for(var g,h,i,j,k,l=a.length,m=0,n=[];;){if(c(U),m>=l)return n;g=c(V),h=[],","===g.slice(-1)?(g=g.replace(W,""),e()):f()}}function n(a){function b(a){function b(){f&&(g.push(f),f="")}function c(){g[0]&&(h.push(g),g=[])}for(var e,f="",g=[],h=[],i=0,j=0,k=!1;;){if(e=a.charAt(j),""===e)return b(),c(),h;if(k){if("*"===e&&"/"===a[j+1]){k=!1,j+=2,b();continue}j+=1}else{if(d(e)){if(a.charAt(j-1)&&d(a.charAt(j-1))||!f){j+=1;continue}if(0===i){b(),j+=1;continue}e=" "}else if("("===e)i+=1;else if(")"===e)i-=1;else{if(","===e){b(),c(),j+=1;continue}if("/"===e&&"*"===a.charAt(j+1)){k=!0,j+=2;continue}}f+=e,j+=1}}}function c(a){return k.test(a)&&parseFloat(a)>=0?!0:l.test(a)?!0:"0"===a||"-0"===a||"+0"===a?!0:!1}var e,f,g,h,i,j,k=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,l=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;for(f=b(a),g=f.length,e=0;g>e;e++)if(h=f[e],i=h[h.length-1],c(i)){if(j=i,h.pop(),0===h.length)return j;if(h=h.join(" "),s.matchesMedia(h))return j}return"100vw"}b.createElement("picture");var o,p,q,r,s={},t=!1,u=function(){},v=b.createElement("img"),w=v.getAttribute,x=v.setAttribute,y=v.removeAttribute,z=b.documentElement,A={},B={algorithm:""},C="data-pfsrc",D=C+"set",E=navigator.userAgent,F=/rident/.test(E)||/ecko/.test(E)&&E.match(/rv\:(\d+)/)&&RegExp.$1>35,G="currentSrc",H=/\s+\+?\d+(e\d+)?w/,I=/(\([^)]+\))?\s*(.+)/,J=a.picturefillCFG,K="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",L="font-size:100%!important;",M=!0,N={},O={},P=a.devicePixelRatio,Q={px:1,"in":96},R=b.createElement("a"),S=!1,T=/^[ \t\n\r\u000c]+/,U=/^[, \t\n\r\u000c]+/,V=/^[^ \t\n\r\u000c]+/,W=/[,]+$/,X=/^\d+$/,Y=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,Z=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)},$=function(a){var b={};return function(c){return c in b||(b[c]=a(c)),b[c]}},_=function(){var a=/^([\d\.]+)(em|vw|px)$/,b=function(){for(var a=arguments,b=0,c=a[0];++b in a;)c=c.replace(a[b],a[++b]);return c},c=$(function(a){return"return "+b((a||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"});return function(b,d){var e;if(!(b in N))if(N[b]=!1,d&&(e=b.match(a)))N[b]=e[1]*Q[e[2]];else try{N[b]=new Function("e",c(b))(Q)}catch(f){}return N[b]}}(),aa=function(a,b){return a.w?(a.cWidth=s.calcListLength(b||"100vw"),a.res=a.w/a.cWidth):a.res=a.d,a},ba=function(a){if(t){var c,d,e,f=a||{};if(f.elements&&1===f.elements.nodeType&&("IMG"===f.elements.nodeName.toUpperCase()?f.elements=[f.elements]:(f.context=f.elements,f.elements=null)),c=f.elements||s.qsa(f.context||b,f.reevaluate||f.reselect?s.sel:s.selShort),e=c.length){for(s.setupRun(f),S=!0,d=0;e>d;d++)s.fillImg(c[d],f);s.teardownRun(f)}}};o=a.console&&console.warn?function(a){console.warn(a)}:u,G in v||(G="src"),A["image/jpeg"]=!0,A["image/gif"]=!0,A["image/png"]=!0,A["image/svg+xml"]=b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),s.ns=("pf"+(new Date).getTime()).substr(0,9),s.supSrcset="srcset"in v,s.supSizes="sizes"in v,s.supPicture=!!a.HTMLPictureElement,s.supSrcset&&s.supPicture&&!s.supSizes&&!function(a){v.srcset="data:,a",a.src="data:,a",s.supSrcset=v.complete===a.complete,s.supPicture=s.supSrcset&&s.supPicture}(b.createElement("img")),s.supSrcset&&!s.supSizes?!function(){var a="data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==",c="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d=b.createElement("img"),e=function(){var a=d.width;2===a&&(s.supSizes=!0),q=s.supSrcset&&!s.supSizes,t=!0,setTimeout(ba)};d.onload=e,d.onerror=e,d.setAttribute("sizes","9px"),d.srcset=c+" 1w,"+a+" 9w",d.src=c}():t=!0,s.selShort="picture>img,img[srcset]",s.sel=s.selShort,s.cfg=B,s.DPR=P||1,s.u=Q,s.types=A,s.setSize=u,s.makeUrl=$(function(a){return R.href=a,R.href}),s.qsa=function(a,b){return"querySelector"in a?a.querySelectorAll(b):[]},s.matchesMedia=function(){return a.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?s.matchesMedia=function(a){return!a||matchMedia(a).matches}:s.matchesMedia=s.mMQ,s.matchesMedia.apply(this,arguments)},s.mMQ=function(a){return a?_(a):!0},s.calcLength=function(a){var b=_(a,!0)||!1;return 0>b&&(b=!1),b},s.supportsType=function(a){return a?A[a]:!0},s.parseSize=$(function(a){var b=(a||"").match(I);return{media:b&&b[1],length:b&&b[2]}}),s.parseSet=function(a){return a.cands||(a.cands=m(a.srcset,a)),a.cands},s.getEmValue=function(){var a;if(!p&&(a=b.body)){var c=b.createElement("div"),d=z.style.cssText,e=a.style.cssText;c.style.cssText=K,z.style.cssText=L,a.style.cssText=L,a.appendChild(c),p=c.offsetWidth,a.removeChild(c),p=parseFloat(p,10),z.style.cssText=d,a.style.cssText=e}return p||16},s.calcListLength=function(a){if(!(a in O)||B.uT){var b=s.calcLength(n(a));O[a]=b?b:Q.width}return O[a]},s.setRes=function(a){var b;if(a){b=s.parseSet(a);for(var c=0,d=b.length;d>c;c++)aa(b[c],a.sizes)}return b},s.setRes.res=aa,s.applySetCandidate=function(a,b){if(a.length){var c,d,e,f,h,k,l,m,n,o=b[s.ns],p=s.DPR;if(k=o.curSrc||b[G],l=o.curCan||j(b,k,a[0].set),l&&l.set===a[0].set&&(n=F&&!b.complete&&l.res-.1>p,n||(l.cached=!0,l.res>=p&&(h=l))),!h)for(a.sort(i),f=a.length,h=a[f-1],d=0;f>d;d++)if(c=a[d],c.res>=p){e=d-1,h=a[e]&&(n||k!==s.makeUrl(c.url))&&g(a[e].res,c.res,p,a[e].cached)?a[e]:c;break}h&&(m=s.makeUrl(h.url),o.curSrc=m,o.curCan=h,m!==k&&s.setSrc(b,h),s.setSize(b))}},s.setSrc=function(a,b){var c;a.src=b.url,"image/svg+xml"===b.set.type&&(c=a.style.width,a.style.width=a.offsetWidth+1+"px",a.offsetWidth+1&&(a.style.width=c))},s.getSet=function(a){var b,c,d,e=!1,f=a[s.ns].sets;for(b=0;b<f.length&&!e;b++)if(c=f[b],c.srcset&&s.matchesMedia(c.media)&&(d=s.supportsType(c.type))){"pending"===d&&(c=d),e=c;break}return e},s.parseSets=function(a,b,d){var e,f,g,h,i=b&&"PICTURE"===b.nodeName.toUpperCase(),j=a[s.ns];(j.src===c||d.src)&&(j.src=w.call(a,"src"),j.src?x.call(a,C,j.src):y.call(a,C)),(j.srcset===c||d.srcset||!s.supSrcset||a.srcset)&&(e=w.call(a,"srcset"),j.srcset=e,h=!0),j.sets=[],i&&(j.pic=!0,l(b,j.sets)),j.srcset?(f={srcset:j.srcset,sizes:w.call(a,"sizes")}
9494,j.sets.push(f),g=(q||j.src)&&H.test(j.srcset||""),g||!j.src||k(j.src,f)||f.has1x||(f.srcset+=", "+j.src,f.cands.push({url:j.src,d:1,set:f}))):j.src&&j.sets.push({srcset:j.src,sizes:null}),j.curCan=null,j.curSrc=c,j.supported=!(i||f&&!s.supSrcset||g&&!s.supSizes),h&&s.supSrcset&&!j.supported&&(e?(x.call(a,D,e),a.srcset=""):y.call(a,D)),j.supported&&!j.srcset&&(!j.src&&a.src||a.src!==s.makeUrl(j.src))&&(null===j.src?a.removeAttribute("src"):a.src=j.src),j.parsed=!0},s.fillImg=function(a,b){var c,d=b.reselect||b.reevaluate;a[s.ns]||(a[s.ns]={}),c=a[s.ns],(d||c.evaled!==r)&&((!c.parsed||b.reevaluate)&&s.parseSets(a,a.parentNode,b),c.supported?c.evaled=r:h(a))},s.setupRun=function(){(!S||M||P!==a.devicePixelRatio)&&f()},s.supPicture?(ba=u,s.fillImg=u):!function(){var c,d=a.attachEvent?/d$|^c/:/d$|^c|^i/,e=function(){var a=b.readyState||"";f=setTimeout(e,"loading"===a?200:999),b.body&&(s.fillImgs(),c=c||d.test(a),c&&clearTimeout(f))},f=setTimeout(e,b.body?9:99),g=function(a,b){var c,d,e=function(){var f=new Date-d;b>f?c=setTimeout(e,b-f):(c=null,a())};return function(){d=new Date,c||(c=setTimeout(e,b))}},h=z.clientHeight,i=function(){M=Math.max(a.innerWidth||0,z.clientWidth)!==Q.width||z.clientHeight!==h,h=z.clientHeight,M&&s.fillImgs()};Z(a,"resize",g(i,99)),Z(b,"readystatechange",e)}(),s.picturefill=ba,s.fillImgs=ba,s.teardownRun=u,ba._=s,a.picturefillCFG={pf:s,push:function(a){var b=a.shift();"function"==typeof s[b]?s[b].apply(s,a):(B[b]=a[0],S&&s.fillImgs({reselect:!0}))}};for(;J&&J.length;)a.picturefillCFG.push(J.shift());a.picturefill=ba,"object"==typeof module&&"object"==typeof module.exports?module.exports=ba:"function"==typeof define&&define.amd&&define("picturefill",function(){return ba}),s.supPicture||(A["image/webp"]=e("image/webp","data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="))}(window,document); 9495!function(r){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.omnivore=r()}}(function(){var r;return function r(e,t,n){function o(u,a){if(!t[u]){if(!e[u]){var s="function"==typeof require&&require;if(!a&&s)return s(u,!0);if(i)return i(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var c=t[u]={exports:{}};e[u][0].call(c.exports,function(r){var t=e[u][1][r];return o(t?t:r)},c,c.exports,r,e,t,n)}return t[u].exports}for(var i="function"==typeof require&&require,u=0;u<n.length;u++)o(n[u]);return o}({1:[function(r,e,t){function n(r,e){"setGeoJSON"in r?r.setGeoJSON(e):"addData"in r&&r.addData(e)}function o(r,e,t){var o=t||L.geoJson();return y(r,function(r,e){return r?o.fire("error",{error:r}):(n(o,JSON.parse(e.responseText)),void o.fire("ready"))}),o}function i(r,e,t){function n(r,t){return r?o.fire("error",{error:r}):(l(t.responseText,e,o),void o.fire("ready"))}var o=t||L.geoJson();return y(r,n),o}function u(r,e,t){function n(r,t){function n(){i=!0}var i;return r?o.fire("error",{error:r}):(o.on("error",n),p(t.responseText,e,o),o.off("error",n),void(i||o.fire("ready")))}var o=t||L.geoJson();return y(r,n),o}function a(r,e,t){function n(r,t){function n(){i=!0}var i;return r?o.fire("error",{error:r}):(o.on("error",n),h(t.responseXML||t.responseText,e,o),o.off("error",n),void(i||o.fire("ready")))}var o=t||L.geoJson();return y(r,n),o}function s(r,e,t){function n(r,t){function n(){i=!0}var i;return r?o.fire("error",{error:r}):(o.on("error",n),g(t.responseXML||t.responseText,e,o),o.off("error",n),void(i||o.fire("ready")))}var o=t||L.geoJson();return y(r,n),o}function f(r,e,t){function n(r,t){return r?o.fire("error",{error:r}):(v(t.responseText,e,o),void o.fire("ready"))}var o=t||L.geoJson();return y(r,n),o}function c(r,e,t){function n(r,t){return r?o.fire("error",{error:r}):(d(t.responseText,e,o),void o.fire("ready"))}var o=t||L.geoJson();return y(r,n),o}function l(r,e,t){var o="string"==typeof r?JSON.parse(r):r;t=t||L.geoJson();for(var i in o.objects){var u=S.feature(o,o.objects[i]);u.features?n(t,u.features):n(t,u)}return t}function p(r,e,t){function o(r,e){return r?t.fire("error",{error:r}):void n(t,e)}return t=t||L.geoJson(),e=e||{},x.csv2geojson(r,e,o),t}function h(r,e,t){var o=m(r);
9495if(!o)return t.fire("error",{error:"Could not parse GPX"});t=t||L.geoJson();var i=T.gpx(o);return n(t,i),t}function g(r,e,t){var o=m(r);if(!o)return t.fire("error",{error:"Could not parse KML"});t=t||L.geoJson();var i=T.kml(o);return n(t,i),t}function d(r,e,t){t=t||L.geoJson(),e=e||{};for(var o=E.decode(r,e.precision),i={type:"LineString",coordinates:[]},u=0;u<o.length;u++)i.coordinates[u]=[o[u][1],o[u][0]];return n(t,i),t}function v(r,e,t){t=t||L.geoJson();var o=w(r);return n(t,o),t}function m(r){return"string"==typeof r?(new DOMParser).parseFromString(r,"text/xml"):r}var y=r("corslite"),x=r("csv2geojson"),w=r("wellknown"),E=r("polyline"),S=r("topojson"),T=r("togeojson");e.exports.polyline=c,e.exports.polyline.parse=d,e.exports.geojson=o,e.exports.topojson=i,e.exports.topojson.parse=l,e.exports.csv=u,e.exports.csv.parse=p,e.exports.gpx=a,e.exports.gpx.parse=h,e.exports.kml=s,e.exports.kml.parse=g,e.exports.wkt=f,e.exports.wkt.parse=v},{corslite:4,csv2geojson:5,polyline:8,togeojson:9,topojson:10,wellknown:11}],2:[function(r,e,t){},{}],3:[function(r,e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(r){if(l===setTimeout)return setTimeout(r,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(r,0);try{return l(r,0)}catch(e){try{return l.call(null,r,0)}catch(e){return l.call(this,r,0)}}}function u(r){if(p===clearTimeout)return clearTimeout(r);if((p===o||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(r);try{return p(r)}catch(e){try{return p.call(null,r)}catch(e){return p.call(this,r)}}}function a(){v&&g&&(v=!1,g.length?d=g.concat(d):m=-1,d.length&&s())}function s(){if(!v){var r=i(a);v=!0;for(var e=d.length;e;){for(g=d,d=[];++m<e;)g&&g[m].run();m=-1,e=d.length}g=null,v=!1,u(r)}}function f(r,e){this.fun=r,this.array=e}function c(){}var l,p,h=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(r){l=n}try{p="function"==typeof clearTimeout?clearTimeout:o}catch(r){p=o}}();var g,d=[],v=!1,m=-1;h.nextTick=function(r){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];d.push(new f(r,e)),1!==d.length||v||i(s)},f.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.binding=function(r){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(r){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},{}],4:[function(r,e,t){function n(r,e,t){function n(r){return r>=200&&r<300||304===r}function o(){void 0===a.status||n(a.status)?e.call(a,null,a):e.call(a,a,null)}var i=!1;if("undefined"==typeof window.XMLHttpRequest)return e(Error("Browser not supported"));if("undefined"==typeof t){var u=r.match(/^\s*https?:\/\/[^\/]*/);t=u&&u[0]!==location.protocol+"//"+location.hostname+(location.port?":"+location.port:"")}var a=new window.XMLHttpRequest;if(t&&!("withCredentials"in a)){a=new window.XDomainRequest;var s=e;e=function(){if(i)s.apply(this,arguments);else{var r=this,e=arguments;setTimeout(function(){s.apply(r,e)},0)}}}return"onload"in a?a.onload=o:a.onreadystatechange=function(){4===a.readyState&&o()},a.onerror=function(r){e.call(this,r||!0,null),e=function(){}},a.onprogress=function(){},a.ontimeout=function(r){e.call(this,r,null),e=function(){}},a.onabort=function(r){e.call(this,r,null),e=function(){}},a.open("GET",r,!0),a.send(null),i=!0,a}"undefined"!=typeof e&&(e.exports=n)},{}],5:[function(r,e,t){"use strict";function n(r,e){var t,n,o;for(var i in r)n=i.match(e),n&&(!t||n[0].length/i.length>o)&&(o=n[0].length/i.length,t=i);return t}function o(r){return n(r,m)}function i(r){return n(r,y)}function u(r){return!!r.match(m)}function a(r){return!!r.match(y)}function s(r){return"object"==typeof r?Object.keys(r).length:0}function f(r){var e=[",",";","\t","|"],t=[];return e.forEach(function(e){var n=d.dsvFormat(e).parse(r);if(n.length>=1){for(var o=s(n[0]),i=0;i<n.length;i++)if(s(n[i])!==o)return;t.push({delimiter:e,arity:Object.keys(n[0]).length})}}),t.length?t.sort(function(r,e){return e.arity-r.arity})[0].delimiter:null}function c(r){return delete r.columns,r}function l(r){var e=f(r);return e?c(d.dsvFormat(e).parse(r)):null}function p(r,e,t){t||(t=e,e={}),e.delimiter=e.delimiter||",";var n=e.latfield||"",u=e.lonfield||"",a=e.crs||"",s=[],c={type:"FeatureCollection",features:s};if(""!==a&&(c.crs={type:"name",properties:{name:a}}),"auto"===e.delimiter&&"string"==typeof r&&(e.delimiter=f(r),!e.delimiter))return void t({type:"Error",message:"Could not autodetect delimiter"});var l="string"==typeof r?d.dsvFormat(e.delimiter).parse(r):r;if(!l.length)return void t(null,c);var p,h=[];n||(n=o(l[0])),u||(u=i(l[0]));var g=!n||!u;if(g){for(p=0;p<l.length;p++)s.push({type:"Feature",properties:l[p],geometry:null});return void t(h.length?h:null,c)}for(p=0;p<l.length;p++)if(void 0!==l[p][u]&&void 0!==l[p][n]){var m,y,x,w=l[p][u],L=l[p][n];x=v(w,"EW"),x&&(w=x),x=v(L,"NS"),x&&(L=x),m=parseFloat(w),y=parseFloat(L),isNaN(m)||isNaN(y)?h.push({message:"A row contained an invali
9495d value for latitude or longitude",row:l[p],index:p}):(e.includeLatLon||(delete l[p][u],delete l[p][n]),s.push({type:"Feature",properties:l[p],geometry:{type:"Point",coordinates:[parseFloat(m),parseFloat(y)]}}))}t(h.length?h:null,c)}function h(r){for(var e=r.features,t={type:"Feature",geometry:{type:"LineString",coordinates:[]}},n=0;n<e.length;n++)t.geometry.coordinates.push(e[n].geometry.coordinates);return t.properties=e.reduce(function(r,e){for(var t in e.properties)r[t]||(r[t]=[]),r[t].push(e.properties[t]);return r},{}),{type:"FeatureCollection",features:[t]}}function g(r){for(var e=r.features,t={type:"Feature",geometry:{type:"Polygon",coordinates:[[]]}},n=0;n<e.length;n++)t.geometry.coordinates[0].push(e[n].geometry.coordinates);return t.properties=e.reduce(function(r,e){for(var t in e.properties)r[t]||(r[t]=[]),r[t].push(e.properties[t]);return r},{}),{type:"FeatureCollection",features:[t]}}var d=r("d3-dsv"),v=r("sexagesimal"),m=/(Lat)(itude)?/gi,y=/(L)(on|ng)(gitude)?/i;e.exports={isLon:a,isLat:u,guessLatHeader:o,guessLonHeader:i,csv:d.csvParse,tsv:d.tsvParse,dsv:d,auto:l,csv2geojson:p,toLine:h,toPolygon:g}},{"d3-dsv":6,sexagesimal:7}],6:[function(e,t,n){!function(e,o){"object"==typeof n&&"undefined"!=typeof t?o(n):"function"==typeof r&&r.amd?r(["exports"],o):o(e.d3=e.d3||{})}(this,function(r){"use strict";function e(r){return new Function("d","return {"+r.map(function(r,e){return JSON.stringify(r)+": d["+e+"]"}).join(",")+"}")}function t(r,t){var n=e(r);return function(e,o){return t(n(e),o,r)}}function n(r){var e=Object.create(null),t=[];return r.forEach(function(r){for(var n in r)n in e||t.push(e[n]=n)}),t}function o(r){function o(r,n){var o,u,a=i(r,function(r,i){return o?o(r,i-1):(u=r,void(o=n?t(r,n):e(r)))});return a.columns=u,a}function i(r,e){function t(){if(f>=s)return u;if(o)return o=!1,i;var e,t=f;if(34===r.charCodeAt(t)){for(var n=t;n++<s;)if(34===r.charCodeAt(n)){if(34!==r.charCodeAt(n+1))break;++n}return f=n+2,e=r.charCodeAt(n+1),13===e?(o=!0,10===r.charCodeAt(n+2)&&++f):10===e&&(o=!0),r.slice(t+1,n).replace(/""/g,'"')}for(;f<s;){var a=1;if(e=r.charCodeAt(f++),10===e)o=!0;else if(13===e)o=!0,10===r.charCodeAt(f)&&(++f,++a);else if(e!==l)continue;return r.slice(t,f-a)}return r.slice(t)}for(var n,o,i={},u={},a=[],s=r.length,f=0,c=0;(n=t())!==u;){for(var p=[];n!==i&&n!==u;)p.push(n),n=t();e&&null==(p=e(p,c++))||a.push(p)}return a}function u(e,t){return null==t&&(t=n(e)),[t.map(f).join(r)].concat(e.map(function(e){return t.map(function(r){return f(e[r])}).join(r)})).join("\n")}function a(r){return r.map(s).join("\n")}function s(e){return e.map(f).join(r)}function f(r){return null==r?"":c.test(r+="")?'"'+r.replace(/\"/g,'""')+'"':r}var c=new RegExp('["'+r+"\n]"),l=r.charCodeAt(0);return{parse:o,parseRows:i,format:u,formatRows:a}}var i=o(","),u=i.parse,a=i.parseRows,s=i.format,f=i.formatRows,c=o("\t"),l=c.parse,p=c.parseRows,h=c.format,g=c.formatRows;r.dsvFormat=o,r.csvParse=u,r.csvParseRows=a,r.csvFormat=s,r.csvFormatRows=f,r.tsvParse=l,r.tsvParseRows=p,r.tsvFormat=h,r.tsvFormatRows=g,Object.defineProperty(r,"__esModule",{value:!0})})},{}],7:[function(r,e,t){function n(r,e){return a(r,e).val}function o(r){return i(r.lat,"lat")+" "+i(r.lon,"lon")}function i(r,e){var t=u(r,e);return t.whole+"ð "+(t.minutes?t.minutes+"' ":"")+(t.seconds?t.seconds+'" ':"")+t.dir}function u(r,e){var t={lat:["N","S"],lon:["E","W"]}[e]||"",n=t[r>=0?0:1],o=Math.abs(r),i=Math.floor(o),u=o-i,a=60*u,s=Math.floor(a),f=Math.floor(60*(a-s));return{whole:i,minutes:s,seconds:f,dir:n}}function a(r,e,t){if(e||(e="NSEW"),"string"!=typeof r)return{val:null,regex:t};t=t||/[\s\,]*([\-|\ââ¬â|\ââ¬â¢]?[0-9.]+)ð? *(?:([0-9.]+)['ââ¬â¢Ã¢â¬Â²Ã¢â¬Ë] *)?(?:([0-9.]+)(?:''|"|ââ¬Â|ââ¬Â³) *)?([NSEW])?/gi;var n=t.exec(r);return n?n[4]&&e.indexOf(n[4])===-1?{val:null,regex:t}:{val:((n[1]?parseFloat(n[1]):0)+(n[2]?parseFloat(n[2])/60:0)+(n[3]?parseFloat(n[3])/3600:0))*(n[4]&&"S"===n[4]||"W"===n[4]?-1:1),regex:t,raw:n[0],dim:n[4]}:{val:null,regex:t}}function s(r,e){r=r.trim();var t=a(r,e);if(null===t.val)return null;var n=a(r,e,t.regex);return null===n.val?null:t.raw+n.raw!==r?null:t.dim?f(t.val,n.val,t.dim):[t.val,n.val]}function f(r,e,t){return"N"===t||"S"===t?[r,e]:"W"===t||"E"===t?[e,r]:void 0}e.exports=n,e.exports.pair=s,e.exports.format=i,e.exports.formatPair=o,e.exports.coordToDMS=u},{}],8:[function(r,e,t){"use strict";function n(r,e){r=Math.round(r*e),r<<=1,r<0&&(r=~r);for(var t="";r>=32;)t+=String.fromCharCode((32|31&r)+63),r>>=5;return t+=String.fromCharCode(r+63)}function o(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice().reverse());return e}var i={};i.decode=function(r,e){for(var t,n,o=0,i=0,u=0,a=[],s=0,f=0,c=null,l=Math.pow(10,e||5);o<r.length;){c=null,s=0,f=0;do c=r.charCodeAt(o++)-63,f|=(31&c)<<s,s+=5;while(c>=32);t=1&f?~(f>>1):f>>1,s=f=0;do c=r.charCodeAt(o++)-63,f|=(31&c)<<s,s+=5;while(c>=32);n=1&f?~(f>>1):f>>1,i+=t,u+=n,a.push([i/l,u/l])}return a},i.encode=function(r,e){if(!r.length)return"";for(var t=Math.pow(10,e||5),o=n(r[0][0],t)+n(r[0][1],t),i=1;i<r.length;i++){var u=r[i],a=r[i-1];o+=n(u[0]-a[0],t),o+=n(u[1]-a[1],t)}return o},i.fromGeoJSON=function(r,e){if(r&&"Feature"===r.type&&(r=r.geometry),!r||"LineString"!==r.type)throw new Error("Input must be a GeoJSON LineString");return i.encode(o(r.coordinates),e)},i.toGeoJSON=function(r,e){var t=i.decode(r,e);return{type:"LineString",coordinates:o(t)}},"object"==typeof e&&e.exports&&(e.exports=i)},{}],9:[function(r,e,t){(function(n){var o=function(){"use strict";function e(r){if(!r||!r.length)return 0;for(var e=0,t=0;e<r.length;e++)t=(t<<5)-t+r.charCodeAt(e)|0;return t}function o(r,e){return r.getElementsByTagName(e)}function i(r,e){return r.getAttribute(e)}function u(r,e){return parseFloat(i(r,e))}function a(r,e){var t=o(r,e);return t.length?t[0]:null}function s(r){return r.normalize&&r.normalize(),r}function f(r){for(var e=0,t=[];e<r.length;e++)t[e]=parseFloat(r[e]);return t}function c(r){var e={};for(var t in r)r[t]&&(e[t]=r[t]);return e}function l(r){return r&&s(r),r&&r.textContent||""}function p(r){return f(r.replace(y,"").split(","))}function h(r){for(var e=r.replace(x,"").split(w),t=[],n=0;n<e.length;n++)t.push(p(e[n]));return t}function g(r){var e,t=[u(r,"lon"),u(r,"lat")],n=a(r,"ele"),o=a(r,"gpxtpx:hr")||a(r,"hr"),i=a(r,"time");return n&&(e=parseFloat(l(n)),isNaN(e)||t.push(e)),{coordinates:t,time:i?l(i):null,heartRate:o?parseFloat(l(o)):null}}function d(){return{type:"FeatureCollection",features:[]}}function v(r){return void 0!==r.xml?r.xml:m.serializeToString(r)}var m,y=/\s*/g,x=/^\s*|\s*$/g,w=/\s+/;"undefined"!=typeof XMLSerializer?m=new XMLSerializer:"object"!=typeof t||"object"!=typeof n||n.browser||(m=new(r("xmldom").XMLSerializer));var L={kml:function(r){function t(r){var e,t;return r=r||"","#"===r.substr(0,1)&&(r=r.substr(1)),6!==r.length&&3!==r.length||(e=r),8===r.length&&(t=parseInt(r.substr(0,2),16)/255,e="#"+r.substr(2)),[e,isNaN(t)?void 0:t]}function n(r){return f(r.split(" "))}function u(r){var e=o(r,"coord","gx"),t=[],i=[];0===e.length&&(e=o(r,"gx:coord"));for(var u=0;u<e.length;u++)t.push(n(l(e[u])));for(var a=o(r,"when"),s=0;s<a.length;s++)i.push(l(a[s]));return{coords:t,times:i}}function s(r){var e,t,n,i,f,c=[],g=[];if(a(r,"MultiGeometry"))return s(a(r,"MultiGeometry"));if(a(r,"MultiTrack"))return s(a(r,"MultiTrack"));if(a(r,"gx:MultiTrack"))return s(a(r,"gx:MultiTrack"));for(n=0;n<y.length;n++)if(t=o(r,y[n]))for(i=0;i<t.length;i++)if(e=t[i],"Point"===y[n])c.push({type:"Point",coordinates:p(l(a(e,"coordinates")))});else if("LineString"===y[n])c.push({type:"LineString",coordinates:h(l(a(e,"coordinates")))});else if("Polygon"===y[n]){var d=o(e,"LinearRing"),v=[];for(f=0;f<d.length;f++)v.push(h(l(a(d[f],"coordinates"))));c.push({type:"Polygon",coordinates:v})}else if("Track"===y[n]||"gx:Track"===y[n]){var m=u(e);c.push({type:"LineString",coordinates:m.coords}
9495),m.times.length&&g.push(m.times)}return{geoms:c,coordTimes:g}}function c(r){var e,n=s(r),u={},f=l(a(r,"name")),c=l(a(r,"styleUrl")),p=l(a(r,"description")),h=a(r,"TimeSpan"),g=a(r,"ExtendedData"),d=a(r,"LineStyle"),v=a(r,"PolyStyle");if(!n.geoms.length)return[];if(f&&(u.name=f),"#"!==c[0]&&(c="#"+c),c&&m[c]&&(u.styleUrl=c,u.styleHash=m[c]),p&&(u.description=p),h){var y=l(a(h,"begin")),x=l(a(h,"end"));u.timespan={begin:y,end:x}}if(d){var w=t(l(a(d,"color"))),L=w[0],E=w[1],S=parseFloat(l(a(d,"width")));L&&(u.stroke=L),isNaN(E)||(u["stroke-opacity"]=E),isNaN(S)||(u["stroke-width"]=S)}if(v){var T=t(l(a(v,"color"))),M=T[0],P=T[1],N=l(a(v,"fill")),b=l(a(v,"outline"));M&&(u.fill=M),isNaN(P)||(u["fill-opacity"]=P),N&&(u["fill-opacity"]="1"===N?1:0),b&&(u["stroke-opacity"]="1"===b?1:0)}if(g){var F=o(g,"Data"),j=o(g,"SimpleData");for(e=0;e<F.length;e++)u[F[e].getAttribute("name")]=l(a(F[e],"value"));for(e=0;e<j.length;e++)u[j[e].getAttribute("name")]=l(j[e])}n.coordTimes.length&&(u.coordTimes=1===n.coordTimes.length?n.coordTimes[0]:n.coordTimes);var C={type:"Feature",geometry:1===n.geoms.length?n.geoms[0]:{type:"GeometryCollection",geometries:n.geoms},properties:u};return i(r,"id")&&(C.id=i(r,"id")),[C]}for(var g=d(),m={},y=["Polygon","LineString","Point","Track","gx:Track"],x=o(r,"Placemark"),w=o(r,"Style"),L=o(r,"StyleMap"),E=0;E<w.length;E++)m["#"+i(w[E],"id")]=e(v(w[E])).toString(16);for(var S=0;S<L.length;S++)m["#"+i(L[S],"id")]=e(v(L[S])).toString(16);for(var T=0;T<x.length;T++)g.features=g.features.concat(c(x[T]));return g},gpx:function(r){function e(r,e){var t=o(r,e),n=[],i=[],u=[],a=t.length;if(a<2)return{};for(var s=0;s<a;s++){var f=g(t[s]);n.push(f.coordinates),f.time&&i.push(f.time),f.heartRate&&u.push(f.heartRate)}return{line:n,times:i,heartRates:u}}function t(r){for(var t,n=o(r,"trkseg"),i=[],a=[],s=[],f=0;f<n.length;f++)t=e(n[f],"trkpt"),t.line&&i.push(t.line),t.times&&t.times.length&&a.push(t.times),t.heartRates&&t.heartRates.length&&s.push(t.heartRates);if(0!==i.length){var c=u(r);return a.length&&(c.coordTimes=1===i.length?a[0]:a),s.length&&(c.heartRates=1===i.length?s[0]:s),{type:"Feature",properties:c,geometry:{type:1===i.length?"LineString":"MultiLineString",coordinates:1===i.length?i[0]:i}}}}function n(r){var t=e(r,"rtept");if(t.line){var n={type:"Feature",properties:u(r),geometry:{type:"LineString",coordinates:t.line}};return n}}function i(r){var e=u(r);return e.sym=l(a(r,"sym")),{type:"Feature",properties:e,geometry:{type:"Point",coordinates:g(r).coordinates}}}function u(r){var e,t=["name","desc","author","copyright","link","time","keywords"],n={};for(e=0;e<t.length;e++)n[t[e]]=l(a(r,t[e]));return c(n)}var s,f,p=o(r,"trk"),h=o(r,"rte"),v=o(r,"wpt"),m=d();for(s=0;s<p.length;s++)f=t(p[s]),f&&m.features.push(f);for(s=0;s<h.length;s++)f=n(h[s]),f&&m.features.push(f);for(s=0;s<v.length;s++)m.features.push(i(v[s]));return m}};return L}();"undefined"!=typeof e&&(e.exports=o)}).call(this,r("_process"))},{_process:3,xmldom:2}],10:[function(e,t,n){!function(e,o){"object"==typeof n&&"undefined"!=typeof t?o(n):"function"==typeof r&&r.amd?r(["exports"],o):o(e.topojson=e.topojson||{})}(this,function(r){"use strict";function e(){}function t(r){if(!r)return e;var t,n,o=r.scale[0],i=r.scale[1],u=r.translate[0],a=r.translate[1];return function(r,e){e||(t=n=0),r[0]=(t+=r[0])*o+u,r[1]=(n+=r[1])*i+a}}function n(r){if(!r)return e;var t,n,o=r.scale[0],i=r.scale[1],u=r.translate[0],a=r.translate[1];return function(r,e){e||(t=n=0);var s=Math.round((r[0]-u)/o),f=Math.round((r[1]-a)/i);r[0]=s-t,r[1]=f-n,t=s,n=f}}function o(r,e){for(var t,n=r.length,o=n-e;o<--n;)t=r[o],r[o++]=r[n],r[n]=t}function i(r,e){for(var t=0,n=r.length;t<n;){var o=t+n>>>1;r[o]<e?t=o+1:n=o}return t}function u(r,e){return"GeometryCollection"===e.type?{type:"FeatureCollection",features:e.geometries.map(function(e){return a(r,e)})}:a(r,e)}function a(r,e){var t={type:"Feature",id:e.id,properties:e.properties||{},geometry:s(r,e)};return null==e.id&&delete t.id,t}function s(r,e){function n(r,e){e.length&&e.pop();for(var t,n=l[r<0?~r:r],i=0,u=n.length;i<u;++i)e.push(t=n[i].slice()),c(t,i);r<0&&o(e,u)}function i(r){return r=r.slice(),c(r,0),r}function u(r){for(var e=[],t=0,o=r.length;t<o;++t)n(r[t],e);return e.length<2&&e.push(e[0].slice()),e}function a(r){for(var e=u(r);e.length<4;)e.push(e[0].slice());return e}function s(r){return r.map(a)}function f(r){var e=r.type;return"GeometryCollection"===e?{type:e,geometries:r.geometries.map(f)}:e in p?{type:e,coordinates:p[e](r)}:null}var c=t(r.transform),l=r.arcs,p={Point:function(r){return i(r.coordinates)}
9495,MultiPoint:function(r){return r.coordinates.map(i)},LineString:function(r){return u(r.arcs)},MultiLineString:function(r){return r.arcs.map(u)},Polygon:function(r){return s(r.arcs)},MultiPolygon:function(r){return r.arcs.map(s)}};return f(e)}function f(r,e){function t(e){var t,n=r.arcs[e<0?~e:e],o=n[0];return r.transform?(t=[0,0],n.forEach(function(r){t[0]+=r[0],t[1]+=r[1]})):t=n[n.length-1],e<0?[t,o]:[o,t]}function n(r,e){for(var t in r){var n=r[t];delete e[n.start],delete n.start,delete n.end,n.forEach(function(r){o[r<0?~r:r]=1}),a.push(n)}}var o={},i={},u={},a=[],s=-1;return e.forEach(function(t,n){var o,i=r.arcs[t<0?~t:t];i.length<3&&!i[1][0]&&!i[1][1]&&(o=e[++s],e[s]=t,e[n]=o)}),e.forEach(function(r){var e,n,o=t(r),a=o[0],s=o[1];if(e=u[a])if(delete u[e.end],e.push(r),e.end=s,n=i[s]){delete i[n.start];var f=n===e?e:e.concat(n);i[f.start=e.start]=u[f.end=n.end]=f}else i[e.start]=u[e.end]=e;else if(e=i[s])if(delete i[e.start],e.unshift(r),e.start=a,n=u[a]){delete u[n.end];var c=n===e?e:n.concat(e);i[c.start=n.start]=u[c.end=e.end]=c}else i[e.start]=u[e.end]=e;else e=[r],i[e.start=a]=u[e.end=s]=e}),n(u,i),n(i,u),e.forEach(function(r){o[r<0?~r:r]||a.push([r])}),a}function c(r){return s(r,l.apply(this,arguments))}function l(r,e,t){function n(r){var e=r<0?~r:r;(c[e]||(c[e]=[])).push({i:r,g:s})}function o(r){r.forEach(n)}function i(r){r.forEach(o)}function u(r){"GeometryCollection"===r.type?r.geometries.forEach(u):r.type in l&&(s=r,l[r.type](r.arcs))}var a=[];if(arguments.length>1){var s,c=[],l={LineString:o,MultiLineString:i,Polygon:i,MultiPolygon:function(r){r.forEach(i)}};u(e),c.forEach(arguments.length<3?function(r){a.push(r[0].i)}:function(r){t(r[0].g,r[r.length-1].g)&&a.push(r[0].i)})}else for(var p=0,h=r.arcs.length;p<h;++p)a.push(p);return{type:"MultiLineString",arcs:f(r,a)}}function p(r){var e=r[0],t=r[1],n=r[2];return Math.abs((e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1]))}function h(r){for(var e,t=-1,n=r.length,o=r[n-1],i=0;++t<n;)e=o,o=r[t],i+=e[0]*o[1]-e[1]*o[0];return i/2}function g(r){return s(r,d.apply(this,arguments))}function d(r,e){function t(r){r.forEach(function(e){e.forEach(function(e){(o[e=e<0?~e:e]||(o[e]=[])).push(r)})}),i.push(r)}function n(e){return Math.abs(h(s(r,{type:"Polygon",arcs:[e]}).coordinates[0]))}var o={},i=[],u=[];return e.forEach(function(r){"Polygon"===r.type?t(r.arcs):"MultiPolygon"===r.type&&r.arcs.forEach(t)}),i.forEach(function(r){if(!r._){var e=[],t=[r];for(r._=1,u.push(e);r=t.pop();)e.push(r),r.forEach(function(r){r.forEach(function(r){o[r<0?~r:r].forEach(function(r){r._||(r._=1,t.push(r))})})})}}
9495),i.forEach(function(r){delete r._}),{type:"MultiPolygon",arcs:u.map(function(e){var t,i=[];if(e.forEach(function(r){r.forEach(function(r){r.forEach(function(r){o[r<0?~r:r].length<2&&i.push(r)})})}),i=f(r,i),(t=i.length)>1)for(var u,a,s=1,c=n(i[0]);s<t;++s)(u=n(i[s]))>c&&(a=i[0],i[0]=i[s],i[s]=a,c=u);return i})}}function v(r){function e(r,e){r.forEach(function(r){r<0&&(r=~r);var t=o[r];t?t.push(e):o[r]=[e]})}function t(r,t){r.forEach(function(r){e(r,t)})}function n(r,e){"GeometryCollection"===r.type?r.geometries.forEach(function(r){n(r,e)}):r.type in a&&a[r.type](r.arcs,e)}var o={},u=r.map(function(){return[]}),a={LineString:e,MultiLineString:t,Polygon:t,MultiPolygon:function(r,e){r.forEach(function(r){t(r,e)})}};r.forEach(n);for(var s in o)for(var f=o[s],c=f.length,l=0;l<c;++l)for(var p=l+1;p<c;++p){var h,g=f[l],d=f[p];(h=u[g])[s=i(h,d)]!==d&&h.splice(s,0,d),(h=u[d])[s=i(h,g)]!==g&&h.splice(s,0,g)}return u}function m(r,e){return r[1][2]-e[1][2]}function y(){function r(r,e){for(;e>0;){var t=(e+1>>1)-1,o=n[t];if(m(r,o)>=0)break;n[o._=e]=o,n[r._=e=t]=r}}function e(r,e){for(;;){var t=e+1<<1,i=t-1,u=e,a=n[u];if(i<o&&m(n[i],a)<0&&(a=n[u=i]),t<o&&m(n[t],a)<0&&(a=n[u=t]),u===e)break;n[a._=e]=a,n[r._=e=u]=r}}var t={},n=[],o=0;return t.push=function(e){return r(n[e._=o]=e,o++),o},t.pop=function(){if(!(o<=0)){var r,t=n[0];return--o>0&&(r=n[o],e(n[r._=0]=r,0)),t}},t.remove=function(t){var i,u=t._;if(n[u]===t)return u!==--o&&(i=n[o],(m(i,t)<0?r:e)(n[i._=u]=i,u)),u},t}function x(r,e){function o(r){a.remove(r),r[1][2]=e(r),a.push(r)}var i=t(r.transform),u=n(r.transform),a=y();return e||(e=p),r.arcs.forEach(function(r){var t,n,s,f,c=[],l=0;for(n=0,s=r.length;n<s;++n)f=r[n],i(r[n]=[f[0],f[1],1/0],n);for(n=1,s=r.length-1;n<s;++n)t=r.slice(n-1,n+2),t[1][2]=e(t),c.push(t),a.push(t);for(n=0,s=c.length;n<s;++n)t=c[n],t.previous=c[n-1],t.next=c[n+1];for(;t=a.pop();){var p=t.previous,h=t.next;t[1][2]<l?t[1][2]=l:l=t[1][2],p&&(p.next=h,p[2]=t[2],o(p)),h&&(h.previous=p,h[0]=t[0],o(h))}r.forEach(u)}),r}var w="1.6.26";r.version=w,r.mesh=c,r.meshArcs=l,r.merge=g,r.mergeArcs=d,r.feature=u,r.neighbors=v,r.presimplify=x})},{}],11:[function(r,e,t){function n(r){function e(r){var e=v.substring(y).match(r);return e?(y+=e[0].length,e[0]):null}function t(r){return r&&m.match(/\d+/)&&(r.crs={type:"name",properties:{name:"urn:ogc:def:crs:EPSG::"+m}}),r}function n(){e(/^\s*/)}function o(){n();for(var r,t=0,o=[],i=[o],a=o;r=e(/^(\()/)||e(/^(\))/)||e(/^(\,)/)||e(u);){if("("===r)i.push(a),a=[],i[i.length-1].push(a),t++;else if(")"===r){if(0===a.length)return null;if(a=i.pop(),!a)return null;if(t--,0===t)break}else if(","===r)a=[],i[i.length-1].push(a);else{if(r.split(/\s/g).some(isNaN))return null;Array.prototype.push.apply(a,r.split(/\s/g).map(parseFloat))}n()}return 0!==t?null:o}function i(){for(var r,t,o=[];t=e(u)||e(/^(\,)/);)","===t?(o.push(r),r=[]):t.split(/\s/g).some(isNaN)||(r||(r=[]),Array.prototype.push.apply(r,t.split(/\s/g).map(parseFloat))),n();return r?(o.push(r),o.length?o:null):null}function a(){if(!e(/^(point)/i))return null;if(n(),!e(/^(\()/))return null;var r=i();return r?(n(),e(/^(\))/)?{type:"Point",coordinates:r[0]}:null):null}function s(){if(!e(/^(multipoint)/i))return null;n();var r=v.substring(v.indexOf("(")+1,v.length-1).replace(/\(/g,"").replace(/\)/g,"");v="MULTIPOINT ("+r+")";var t=o();return t?(n(),{type:"MultiPoint",coordinates:t}):null}function f(){if(!e(/^(multilinestring)/i))return null;n();var r=o();return r?(n(),{type:"MultiLineString",coordinates:r}):null}function c(){if(!e(/^(linestring)/i))return null;if(n(),!e(/^(\()/))return null;var r=i();return r&&e(/^(\))/)?{type:"LineString",coordinates:r}:null}function l(){if(!e(/^(polygon)/i))return null;n();var r=o();return r?{type:"Polygon",coordinates:r}:null}function p(){if(!e(/^(multipolygon)/i))return null;n();var r=o();return r?{type:"MultiPolygon",coordinates:r}:null}function h(){var r,t=[];if(!e(/^(geometrycollection)/i))return null;if(n(),!e(/^(\()/))return null;for(;r=g();)t.push(r),n(),e(/^(\,)/),n();return e(/^(\))/)?{type:"GeometryCollection",geometries:t}:null}function g(){return a()||c()||l()||s()||f()||p()||h()}var d=r.split(";"),v=d.pop(),m=(d.shift()||"").split("=").pop(),y=0;return t(g())}function o(r){function e(r){return r.join(" ")}function t(r){return r.map(e).join(", ")}function n(r){return r.map(t).map(u).join(", ")}function i(r){return r.map(n).map(u).join(", ")}function u(r){return"("+r+")"}switch("Feature"===r.type&&(r=r.geometry),r.type){case"Point":return"POINT ("+e(r.coordinates)+")";case"LineString":return"LINESTRING ("+t(r.coordinates)+")";case"Polygon":return"POLYGON ("+n(r.coordinates)+")";case"MultiPoint":return"MULTIPOINT ("+t(r.coordinates)+")";case"MultiPolygon":return"MULTIPOLYGON ("+i(r.coordinates)+")";case"MultiLineString":return"MULTILINESTRING ("+n(r.coordinates)+")";case"GeometryCollection":return"GEOMETRYCOLLECTION ("+r.geometries.map(o).join(", ")+")";default:throw new Error("stringify requires a valid GeoJSON Feature or geometry object as input")}}
vendor: 4,900 bytes, lines 9495-9509
9495e.exports=n,e.exports.parse=n,e.exports.stringify=o;var i=/[-+]?([0-9]*\.[0-9]+|[0-9]+)([eE][-+]?[0-9]+)?/,u=new RegExp("^"+i.source+"(\\s"+i.source+"){1,}")},{}]},{},[1])(1)}); 9496 9497/** 9498 * Swiper 5.4.5 9499 * Most modern mobile touch slider and framework with hardware accelerated transitions 9500 * http://swiperjs.com 9501 * 9502 * Copyright 2014-2020 Vladimir Kharlampidi 9503 * 9504 * Released under the MIT License 9505 * 9506 * Released on: June 16, 2020 9507 */ 9508 9509!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Swiper=t()}(this,(function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(i,s){void 0===i&&(i={}),void 0===s&&(s={}),Object.keys(s).forEach((function(a){void 0===i[a]?i[a]=s[a]:e(s[a])&&e(i[a])&&Object.keys(s[a]).length>0&&t(i[a],s[a])}))}var i="undefined"!=typeof document?document:{},s={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};t(i,s);var a="undefined"!=typeof window?window:{};t(a,{document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}});var r=function(e){for(var t=0;t<e.length;t+=1)this[t]=e[t];return this.length=e.length,this};function n(e,t){var s=[],n=0;if(e&&!t&&e instanceof r)return e;if(e)if("string"==typeof e){var o,l,d=e.trim();if(d.indexOf("<")>=0&&d.indexOf(">")>=0){var h="div";for(0===d.indexOf("<li")&&(h="ul"),0===d.indexOf("<tr")&&(h="tbody"),0!==d.indexOf("<td")&&0!==d.indexOf("<th")||(h="tr"),0===d.indexOf("<tbody")&&(h="table"),0===d.indexOf("<option")&&(h="select"),(l=i.createElement(h)).innerHTML=d,n=0;n<l.childNodes.length;n+=1)s.push(l.childNodes[n])}else for(o=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||i).querySelectorAll(e.trim()):[i.getElementById(e.trim().split("#")[1])],n=0;n<o.length;n+=1)o[n]&&s.push(o[n])}else if(e.nodeType||e===a||e===i)s.push(e);else if(e.length>0&&e[0].nodeType)for(n=0;n<e.length;n+=1)s.push(e[n]);return new r(s)}function o(e){for(var t=[],i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}n.fn=r.prototype,n.Class=r,n.Dom7=r;var l={addClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.add(t[i]);return this},removeClass:function(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.remove(t[i]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.toggle(t[i]);return this},attr:function(e,t){var i=arguments;if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var s=0;s<this.length;s+=1)if(2===i.length)this[s].setAttribute(e,t);else for(var a in e)this[s][a]=e[a],this[s].setAttribute(a,e[a]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},data:function(e,t){var i;if(void 0!==t){for(var s=0;s<this.length;s+=1)(i=this[s]).dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t;return this}if(i=this[0]){if(i.dom7ElementDataStorage&&e in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[e];var a=i.getAttribute("data-"+e);return a||void 0}},transform:function(e){for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransform=e,i.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransitionDuration=e,i.transitionDuration=e}return this},on:function(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];var s=t[0],a=t[1],r=t[2],o=t[3];function l(e){var t=e.target;if(t){var i=e.target.dom7EventData||[];
vendor: 9,449 bytes, line 9509
9509if(i.indexOf(e)<0&&i.unshift(e),n(t).is(a))r.apply(t,i);else for(var s=n(t).parents(),o=0;o<s.length;o+=1)n(s[o]).is(a)&&r.apply(s[o],i)}}function d(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}"function"==typeof t[1]&&(s=(e=t)[0],r=e[1],o=e[2],a=void 0),o||(o=!1);for(var h,p=s.split(" "),c=0;c<this.length;c+=1){var u=this[c];if(a)for(h=0;h<p.length;h+=1){var v=p[h];u.dom7LiveListeners||(u.dom7LiveListeners={}),u.dom7LiveListeners[v]||(u.dom7LiveListeners[v]=[]),u.dom7LiveListeners[v].push({listener:r,proxyListener:l}),u.addEventListener(v,l,o)}else for(h=0;h<p.length;h+=1){var f=p[h];u.dom7Listeners||(u.dom7Listeners={}),u.dom7Listeners[f]||(u.dom7Listeners[f]=[]),u.dom7Listeners[f].push({listener:r,proxyListener:d}),u.addEventListener(f,d,o)}}return this},off:function(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];var s=t[0],a=t[1],r=t[2],n=t[3];"function"==typeof t[1]&&(s=(e=t)[0],r=e[1],n=e[2],a=void 0),n||(n=!1);for(var o=s.split(" "),l=0;l<o.length;l+=1)for(var d=o[l],h=0;h<this.length;h+=1){var p=this[h],c=void 0;if(!a&&p.dom7Listeners?c=p.dom7Listeners[d]:a&&p.dom7LiveListeners&&(c=p.dom7LiveListeners[d]),c&&c.length)for(var u=c.length-1;u>=0;u-=1){var v=c[u];r&&v.listener===r||r&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===r?(p.removeEventListener(d,v.proxyListener,n),c.splice(u,1)):r||(p.removeEventListener(d,v.proxyListener,n),c.splice(u,1))}}return this},trigger:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var s=e[0].split(" "),r=e[1],n=0;n<s.length;n+=1)for(var o=s[n],l=0;l<this.length;l+=1){var d=this[l],h=void 0;try{h=new a.CustomEvent(o,{detail:r,bubbles:!0,cancelable:!0})}catch(e){(h=i.createEvent("Event")).initEvent(o,!0,!0),h.detail=r}d.dom7EventData=e.filter((function(e,t){return t>0})),d.dispatchEvent(h),d.dom7EventData=[],delete d.dom7EventData}return this},transitionEnd:function(e){var t,i=["webkitTransitionEnd","transitionend"],s=this;function a(r){if(r.target===this)for(e.call(this,r),t=0;t<i.length;t+=1)s.off(i[t],a)}if(e)for(t=0;t<i.length;t+=1)s.on(i[t],a);return this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),s=i.body,r=e.clientTop||s.clientTop||0,n=e.clientLeft||s.clientLeft||0,o=e===a?a.scrollY:e.scrollTop,l=e===a?a.scrollX:e.scrollLeft;return{top:t.top+o-r,left:t.left+l-n}}return null},css:function(e,t){var i;if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(var s in e)this[i].style[s]=e[s];return this}if(this[0])return a.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(i=0;i<this.length;i+=1)this[i].style[e]=t;return this}return this},each:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){var t,s,o=this[0];if(!o||void 0===e)return!1;if("string"==typeof e){if(o.matches)return o.matches(e);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(e);if(o.msMatchesSelector)return o.msMatchesSelector(e);for(t=n(e),s=0;s<t.length;s+=1)if(t[s]===o)return!0;return!1}if(e===i)return o===i;if(e===a)return o===a;if(e.nodeType||e instanceof r){for(t=e.nodeType?[e]:e,s=0;s<t.length;s+=1)if(t[s]===o)return!0;return!1}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,i=this.length;return new r(e>i-1?[]:e<0?(t=i+e)<0?[]:[this[t]]:[this[e]])},append:function(){for(var e,t=[],s=arguments.length;s--;)t[s]=arguments[s];for(var a=0;a<t.length;a+=1){e=t[a];for(var n=0;n<this.length;n+=1)if("string"==typeof e){var o=i.createElement("div");for(o.innerHTML=e;o.firstChild;)this[n].appendChild(o.firstChild)}else if(e instanceof r)for(var l=0;l<e.length;l+=1)this[n].appendChild(e[l]);else this[n].appendChild(e)}return this},prepend:function(e){var t,s;for(t=0;t<this.length;t+=1)if("string"==typeof e){var a=i.createElement("div");for(a.innerHTML=e,s=a.childNodes.length-1;s>=0;s-=1)this[t].insertBefore(a.childNodes[s],this[t].childNodes[0])}else if(e instanceof r)for(s=0;s<e.length;s+=1)this[t].insertBefore(e[s],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&n(this[0].nextElementSibling).is(e)?new r([this[0].nextElementSibling]):new r([]):this[0].nextElementSibling?new r([this[0].nextElementSibling]):new r([]):new r([])},nextAll:function(e){var t=[],i=this[0];if(!i)return new r([]);for(;i.nextElementSibling;){var s=i.nextElementSibling;e?n(s).is(e)&&t.push(s):t.push(s),i=s}return new r(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&n(t.previousElementSibling).is(e)?new r([t.previousElementSibling]):new r([]):t.previousElementSibling?new r([t.previousElementSibling]):new r([])}return new r([])},prevAll:function(e){var t=[],i=this[0];if(!i)return new r([]);for(;i.previousElementSibling;){var s=i.previousElementSibling;e?n(s).is(e)&&t.push(s):t.push(s),i=s}return new r(t)},parent:function(e){for(var t=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?n(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return n(o(t))},parents:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var s=this[i].parentNode;s;)e?n(s).is(e)&&t.push(s):t.push(s),s=s.parentNode;return n(o(t))},closest:function(e){var t=this;return void 0===e?new r([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var s=this[i].querySelectorAll(e),a=0;a<s.length;a+=1)t.push(s[a]);return new r(t)},children:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var s=this[i].childNodes,a=0;a<s.length;a+=1)e?1===s[a].nodeType&&n(s[a]).is(e)&&t.push(s[a]):1===s[a].nodeType&&t.push(s[a]);return new r(o(t))},filter:function(e){for(var t=[],i=0;i<this.length;i+=1)e.call(this[i],i,this[i])&&t.push(this[i]);return new r(t)},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i,s,a=this;for(i=0;i<e.length;i+=1){var r=n(e[i]);for(s=0;s<r.length;s+=1)a[a.length]=r[s],a.length+=1}return a},styles:function(){return this[0]?a.getComputedStyle(this[0],null):{}}};Object.keys(l).forEach((function(e){n.fn[e]=n.fn[e]||l[e]}));var d={deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,t){var i,s,r;void 0===t&&(t="x");var n=a.getComputedStyle(e,null);return a.WebKitCSSMatrix?((s=n.transform||n.webkitTransform).split(",").length>6&&(s=s.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),r=new a.WebKitCSSMatrix("none"===s?"":s)):i=(r=n.MozTransform||n.OTransform||n.MsTransform||n.msTransform||n.transform||n.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(s=a.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(s=a.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),s||0},parseUrlQuery:function(e){var t,i,s,r,n={},o=e||a.location.href;if("string"==typeof o&&o.length)for(r=(i=(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,t=0;t<r;t+=1)s=i[t].replace(/#\S+/g,"").split("="),n[decodeURIComponent(s[0])]=void 0===s[1]?void 0:decodeURIComponent(s[1])||"";return n},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=Object(e[0]),s=1;s<e.length;s+=1){var a=e[s];if(null!=a)for(var r=Object.keys(Object(a)),n=0,o=r.length;n<o;n+=1){var l=r[n],h=Object.getOwnPropertyDescriptor(a,l);void 0!==h&&h.enumerable&&(d.isObject(i[l])&&d.isObject(a[l])?d.extend(i[l],a[l]):!d.isObject(i[l])&&d.isObject(a[l])?(i[l]={},d.extend(i[l],a[l])):i[l]=a[l])}}return i}},h={touch:!!("ontouchstart"in a||a.DocumentTouch&&i instanceof a.DocumentTouch),pointerEvents:!!a.PointerEvent&&"maxTouchPoints"in a.navigator&&a.navigator.maxTouchPoints>=0,observer:"MutationObserver"in a||"WebkitMutationObserver"in a,passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});a.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:"ongesturestart"in a},p=function(e){void 0===e&&(e={});var t=this;t.params=e,t.eventsListeners={}
9509,t.params&&t.params.on&&Object.keys(t.params.on).forEach((function(e){t.on(e,t.params.on[e])}))},c={components:{configurable:!0}};p.prototype.on=function(e,t,i){var s=this;if("function"!=typeof t)return s;var a=i?"unshift":"push";return e.split(" ").forEach((function(e){s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][a](t)})),s},p.prototype.once=function(e,t,i){var s=this;if("function"!=typeof t)return s;function a(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];s.off(e,a),a.f7proxy&&delete a.f7proxy,t.apply(s,i)}return a.f7proxy=t,s.on(e,a,i)},p.prototype.off=function(e,t){var i=this;return i.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].length&&i.eventsListeners[e].forEach((function(s,a){(s===t||s.f7proxy&&s.f7proxy===t)&&i.eventsListeners[e].splice(a,1)}))})),i):i},p.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i,s,a,r=this;if(!r.eventsListeners)return r;"string"==typeof e[0]||Array.isArray(e[0])?(i=e[0],s=e.slice(1,e.length),a=r):(i=e[0].events,s=e[0].data,a=e[0].context||r);var n=Array.isArray(i)?i:i.split(" ");return n.forEach((function(e){if(r.eventsListeners&&r.eventsListeners[e]){var t=[];r.eventsListeners[e].forEach((function(e){t.push(e)})),t.forEach((function(e){e.apply(a,s)}))}})),r},p.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(i){var s=t.modules[i];s.params&&d.extend(e,s.params)}))},p.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach((function(i){var s=t.modules[i],a=e[i]||{};s.instance&&Object.keys(s.instance).forEach((function(e){var i=s.instance[e];t[e]="function"==typeof i?i.bind(t):i})),s.on&&t.on&&Object.keys(s.on).forEach((function(e){t.on(e,s.on[e])})),s.create&&s.create.bind(t)(a)}))},c.components.set=function(e){this.use&&this.use(e)},p.installModule=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var s=this;s.prototype.modules||(s.prototype.modules={});var a=e.name||Object.keys(s.prototype.modules).length+"_"+d.now();return s.prototype.modules[a]=e,e.proto&&Object.keys(e.proto).forEach((function(t){s.prototype[t]=e.proto[t]})),e.static&&Object.keys(e.static).forEach((function(t){s[t]=e.static[t]})),e.install&&e.install.apply(s,t),s},p.use=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var s=this;return Array.isArray(e)?(e.forEach((function(e){return s.installModule(e)})),s):s.installModule.apply(s,[e].concat(t))},Object.defineProperties(p,c);var u={updateSize:function(){var e,t,i=this.$el;e=void 0!==this.params.width?this.params.width:i[0].clientWidth,t=void 0!==this.params.height?this.params.height:i[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),t=t-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),d.extend(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){var e=this.params,t=this.$wrapperEl,i=this.size,s=this.rtlTranslate,r=this.wrongRTL,n=this.virtual&&e.virtual.enabled,o=n?this.virtual.slides.length:this.slides.length,l=t.children("."+this.params.slideClass),h=n?this.virtual.slides.length:l.length,p=[],c=[],u=[];function v(t){return!e.cssMode||t!==l.length-1}var f=e.slidesOffsetBefore;"function"==typeof f&&(f=e.slidesOffsetBefore.call(this));var m=e.slidesOffsetAfter;"function"==typeof m&&(m=e.slidesOffsetAfter.call(this));var g=this.snapGrid.length,b=this.snapGrid.length,w=e.spaceBetween,y=-f,x=0,E=0;if(void 0!==i){var T,S;"string"==typeof w&&w.indexOf("%")>=0&&(w=parseFloat(w.replace("%",""))/100*i),this.virtualSize=-w,s?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&(T=Math.floor(h/e.slidesPerColumn)===h/this.params.slidesPerColumn?h:Math.ceil(h/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(T=Math.max(T,e.slidesPerView*e.slidesPerColumn)));for(var C,M=e.slidesPerColumn,P=T/M,z=Math.floor(h/e.slidesPerColumn),k=0;k<h;k+=1){S=0;var $=l.eq(k);if(e.slidesPerColumn>1){var L=void 0,I=void 0,D=void 0;if("row"===e.slidesPerColumnFill&&e.slidesPerGroup>1){var O=Math.floor(k/(e.slidesPerGroup*e.slidesPerColumn)),A=k-e.slidesPerColumn*e.slidesPerGroup*O,G=0===O?e.slidesPerGroup:Math.min(Math.ceil((h-O*M*e.slidesPerGroup)/M),e.slidesPerGroup);L=(I=A-(D=Math.floor(A/G))*G+O*e.slidesPerGroup)+D*T/M,$.css({"-webkit-box-ordinal-group":L,"-moz-box-ordinal-group":L,"-ms-flex-order":L,"-webkit-order":L,order:L})}else"column"===e.slidesPerColumnFill?(D=k-(I=Math.floor(k/M))*M,(I>z||I===z&&D===M-1)&&(D+=1)>=M&&(D=0,I+=1)):I=k-(D=Math.floor(k/P))*P;$.css("margin-"+(this.isHorizontal()?"top":"left"),0!==D&&e.spaceBetween&&e.spaceBetween+"px")}if("none"!==$.css("display")){if("auto"===e.slidesPerView){var H=a.getComputedStyle($[0],null),B=$[0].style.transform,N=$[0].style.webkitTransform;if(B&&($[0].style.transform="none"),N&&($[0].style.webkitTransform="none"),e.roundLengths)S=this.isHorizontal()?$.outerWidth(!0):$.outerHeight(!0);else if(this.isHorizontal()){var X=parseFloat(H.getPropertyValue("width")),V=parseFloat(H.getPropertyValue("padding-left")),Y=parseFloat(H.getPropertyValue("padding-right")),F=parseFloat(H.getPropertyValue("margin-left")),W=parseFloat(H.getPropertyValue("margin-right")),R=H.getPropertyValue("box-sizing");S=R&&"border-box"===R?X+F+W:X+V+Y+F+W}else{var q=parseFloat(H.getPropertyValue("height")),j=parseFloat(H.getPropertyValue("padding-top")),K=parseFloat(H.getPropertyValue("padding-bottom")),U=parseFloat(H.getPropertyValue("margin-top")),_=parseFloat(H.getPropertyValue("margin-bottom")),Z=H.getPropertyValue("box-sizing");S=Z&&"border-box"===Z?q+U+_:q+j+K+U+_}B&&($[0].style.transform=B),N&&($[0].style.webkitTransform=N),e.roundLengths&&(S=Math.floor(S))}else S=(i-(e.slidesPerView-1)*w)/e.slidesPerView,e.roundLengths&&(S=Math.floor(S)),l[k]&&(this.isHorizontal()?l[k].style.width=S+"px":l[k].style.height=S+"px");l[k]&&(l[k].swiperSlideSize=S),u.push(S),e.centeredSlides?(y=y+S/2+x/2+w,0===x&&0!==k&&(y=y-i/2-w),0===k&&(y=y-i/2-w),Math.abs(y)<.001&&(y=0),e.roundLengths&&(y=Math.floor(y)),E%e.slidesPerGroup==0&&p.push(y),c.push(y)):(e.roundLengths&&(y=Math.floor(y)),(E-Math.min(this.params.slidesPerGroupSkip,E))%this.params.slidesPerGroup==0&&p.push(y),c.push(y),y=y+S+w),this.virtualSize+=S+w,x=S,E+=1}}if(this.virtualSize=Math.max(this.virtualSize,i)+m,s&&r&&("slide"===e.effect||"coverflow"===e.effect)&&t.css({width:this.virtualSize+e.spaceBetween+"px"}),e.setWrapperSize&&(this.isHorizontal()?t.css({width:this.virtualSize+e.spaceBetween+"px"}):t.css({height:this.virtualSize+e.spaceBetween+"px"})),e.slidesPerColumn>1&&(this.virtualSize=(S+e.spaceBetween)*T,this.virtualSize=Math.ceil(this.virtualSize/e.slidesPerColumn)-e.spaceBetween,this.isHorizontal()?t.css({width:this.virtualSize+e.spaceBetween+"px"}):t.css({height:this.virtualSize+e.spaceBetween+"px"}),e.centeredSlides)){C=[];for(var Q=0;Q<p.length;Q+=1){var J=p[Q];e.roundLengths&&(J=Math.floor(J)),p[Q]<this.virtualSize+p[0]&&C.push(J)}p=C}if(!e.centeredSlides){C=[];for(var ee=0;ee<p.length;ee+=1){var te=p[ee];e.roundLengths&&(te=Math.floor(te)),p[ee]<=this.virtualSize-i&&C.push(te)}p=C,Math.floor(this.virtualSize-i)-Math.floor(p[p.length-1])>1&&p.push(this.virtualSize-i)}if(0===p.length&&(p=[0]),0!==e.spaceBetween&&(this.isHorizontal()?s?l.filter(v).css({marginLeft:w+"px"}):l.filter(v).css({marginRight:w+"px"}):l.filter(v).css({marginBottom:w+"px"}
9509)),e.centeredSlides&&e.centeredSlidesBounds){var ie=0;u.forEach((function(t){ie+=t+(e.spaceBetween?e.spaceBetween:0)}));var se=(ie-=e.spaceBetween)-i;p=p.map((function(e){return e<0?-f:e>se?se+m:e}))}if(e.centerInsufficientSlides){var ae=0;if(u.forEach((function(t){ae+=t+(e.spaceBetween?e.spaceBetween:0)})),(ae-=e.spaceBetween)<i){var re=(i-ae)/2;p.forEach((function(e,t){p[t]=e-re})),c.forEach((function(e,t){c[t]=e+re}))}}d.extend(this,{slides:l,snapGrid:p,slidesGrid:c,slidesSizesGrid:u}),h!==o&&this.emit("slidesLengthChange"),p.length!==g&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),c.length!==b&&this.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(e){var t,i=[],s=0;if("number"==typeof e?this.setTransition(e):!0===e&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)if(this.params.centeredSlides)this.visibleSlides.each((function(e,t){i.push(t)}));else for(t=0;t<Math.ceil(this.params.slidesPerView);t+=1){var a=this.activeIndex+t;if(a>this.slides.length)break;i.push(this.slides.eq(a)[0])}else i.push(this.slides.eq(this.activeIndex)[0]);for(t=0;t<i.length;t+=1)if(void 0!==i[t]){var r=i[t].offsetHeight;s=r>s?r:s}s&&this.$wrapperEl.css("height",s+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this.params,i=this.slides,s=this.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&this.updateSlidesOffset();var a=-e;s&&(a=e),i.removeClass(t.slideVisibleClass),this.visibleSlidesIndexes=[],this.visibleSlides=[];for(var r=0;r<i.length;r+=1){var o=i[r],l=(a+(t.centeredSlides?this.minTranslate():0)-o.swiperSlideOffset)/(o.swiperSlideSize+t.spaceBetween);if(t.watchSlidesVisibility||t.centeredSlides&&t.autoHeight){var d=-(a-o.swiperSlideOffset),h=d+this.slidesSizesGrid[r];(d>=0&&d<this.size-1||h>1&&h<=this.size||d<=0&&h>=this.size)&&(this.visibleSlides.push(o),this.visibleSlidesIndexes.push(r),i.eq(r).addClass(t.slideVisibleClass))}o.progress=s?-l:l}this.visibleSlides=n(this.visibleSlides)}},updateProgress:function(e){if(void 0===e){var t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}var i=this.params,s=this.maxTranslate()-this.minTranslate(),a=this.progress,r=this.isBeginning,n=this.isEnd,o=r,l=n;0===s?(a=0,r=!0,n=!0):(r=(a=(e-this.minTranslate())/s)<=0,n=a>=1),d.extend(this,{progress:a,isBeginning:r,isEnd:n}),(i.watchSlidesProgress||i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight)&&this.updateSlidesProgress(e),r&&!o&&this.emit("reachBeginning toEdge"),n&&!l&&this.emit("reachEnd toEdge"),(o&&!r||l&&!n)&&this.emit("fromEdge"),this.emit("progress",a)},updateSlidesClasses:function(){var e,t=this.slides,i=this.params,s=this.$wrapperEl,a=this.activeIndex,r=this.realIndex,n=this.virtual&&i.virtual.enabled;t.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass),(e=n?this.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+a+'"]'):t.eq(a)).addClass(i.slideActiveClass),i.loop&&(e.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+r+'"]').addClass(i.slideDuplicateActiveClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+r+'"]').addClass(i.slideDuplicateActiveClass));var o=e.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===o.length&&(o=t.eq(0)).addClass(i.slideNextClass);var l=e.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);
9509i.loop&&0===l.length&&(l=t.eq(-1)).addClass(i.slidePrevClass),i.loop&&(o.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),l.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,i=this.rtlTranslate?this.translate:-this.translate,s=this.slidesGrid,a=this.snapGrid,r=this.params,n=this.activeIndex,o=this.realIndex,l=this.snapIndex,h=e;if(void 0===h){for(var p=0;p<s.length;p+=1)void 0!==s[p+1]?i>=s[p]&&i<s[p+1]-(s[p+1]-s[p])/2?h=p:i>=s[p]&&i<s[p+1]&&(h=p+1):i>=s[p]&&(h=p);r.normalizeSlideIndex&&(h<0||void 0===h)&&(h=0)}if(a.indexOf(i)>=0)t=a.indexOf(i);else{var c=Math.min(r.slidesPerGroupSkip,h);t=c+Math.floor((h-c)/r.slidesPerGroup)}if(t>=a.length&&(t=a.length-1),h!==n){var u=parseInt(this.slides.eq(h).attr("data-swiper-slide-index")||h,10);d.extend(this,{snapIndex:t,realIndex:u,previousIndex:n,activeIndex:h}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),o!==u&&this.emit("realIndexChange"),(this.initialized||this.params.runCallbacksOnInit)&&this.emit("slideChange")}else t!==l&&(this.snapIndex=t,this.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this.params,i=n(e.target).closest("."+t.slideClass)[0],s=!1;if(i)for(var a=0;a<this.slides.length;a+=1)this.slides[a]===i&&(s=!0);if(!i||!s)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=i,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(n(i).attr("data-swiper-slide-index"),10):this.clickedIndex=n(i).index(),t.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}};var v={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this.params,i=this.rtlTranslate,s=this.translate,a=this.$wrapperEl;if(t.virtualTranslate)return i?-s:s;if(t.cssMode)return s;var r=d.getTranslate(a[0],e);return i&&(r=-r),r||0},setTranslate:function(e,t){var i=this.rtlTranslate,s=this.params,a=this.$wrapperEl,r=this.wrapperEl,n=this.progress,o=0,l=0;this.isHorizontal()?o=i?-e:e:l=e,s.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),s.cssMode?r[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-o:-l:s.virtualTranslate||a.transform("translate3d("+o+"px, "+l+"px, 0px)"),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?o:l;var d=this.maxTranslate()-this.minTranslate();(0===d?0:(e-this.minTranslate())/d)!==n&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,s,a){var r;void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===s&&(s=!0);var n=this,o=n.params,l=n.wrapperEl;if(n.animating&&o.preventInteractionOnTransition)return!1;var d,h=n.minTranslate(),p=n.maxTranslate();if(d=s&&e>h?h:s&&e<p?p:e,n.updateProgress(d),o.cssMode){var c=n.isHorizontal();return 0===t?l[c?"scrollLeft":"scrollTop"]=-d:l.scrollTo?l.scrollTo(((r={})[c?"left":"top"]=-d,r.behavior="smooth",r)):l[c?"scrollLeft":"scrollTop"]=-d,!0}return 0===t?(n.setTransition(0),n.setTranslate(d),i&&(n.emit("beforeTransitionStart",t,a),n.emit("transitionEnd"))):(n.setTransition(t),n.setTranslate(d),i&&(n.emit("beforeTransitionStart",t,a),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.$wrapperEl[0].removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.$wrapperEl[0].removeEventListener("webkitTransitionEnd",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,i&&n.emit("transitionEnd"))}),n.$wrapperEl[0].addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.$wrapperEl[0].addEventListener("webkitTransitionEnd",n.onTranslateToWrapperTransitionEnd))),!0}};var f={setTransition:function(e,t){this.params.cssMode||this.$wrapperEl.transition(e),this.emit
9509("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var i=this.activeIndex,s=this.params,a=this.previousIndex;if(!s.cssMode){s.autoHeight&&this.updateAutoHeight();var r=t;if(r||(r=i>a?"next":i<a?"prev":"reset"),this.emit("transitionStart"),e&&i!==a){if("reset"===r)return void this.emit("slideResetTransitionStart");this.emit("slideChangeTransitionStart"),"next"===r?this.emit("slideNextTransitionStart"):this.emit("slidePrevTransitionStart")}}},transitionEnd:function(e,t){void 0===e&&(e=!0);var i=this.activeIndex,s=this.previousIndex,a=this.params;if(this.animating=!1,!a.cssMode){this.setTransition(0);var r=t;if(r||(r=i>s?"next":i<s?"prev":"reset"),this.emit("transitionEnd"),e&&i!==s){if("reset"===r)return void this.emit("slideResetTransitionEnd");this.emit("slideChangeTransitionEnd"),"next"===r?this.emit("slideNextTransitionEnd"):this.emit("slidePrevTransitionEnd")}}}};var m={slideTo:function(e,t,i,s){var a;void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=this,n=e;n<0&&(n=0);var o=r.params,l=r.snapGrid,d=r.slidesGrid,h=r.previousIndex,p=r.activeIndex,c=r.rtlTranslate,u=r.wrapperEl;if(r.animating&&o.preventInteractionOnTransition)return!1;var v=Math.min(r.params.slidesPerGroupSkip,n),f=v+Math.floor((n-v)/r.params.slidesPerGroup);f>=l.length&&(f=l.length-1),(p||o.initialSlide||0)===(h||0)&&i&&r.emit("beforeSlideChangeStart");var m,g=-l[f];if(r.updateProgress(g),o.normalizeSlideIndex)for(var b=0;b<d.length;b+=1)-Math.floor(100*g)>=Math.floor(100*d[b])&&(n=b);if(r.initialized&&n!==p){if(!r.allowSlideNext&&g<r.translate&&g<r.minTranslate())return!1;if(!r.allowSlidePrev&&g>r.translate&&g>r.maxTranslate()&&(p||0)!==n)return!1}if(m=n>p?"next":n<p?"prev":"reset",c&&-g===r.translate||!c&&g===r.translate)return r.updateActiveIndex(n),o.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==o.effect&&r.setTranslate(g),"reset"!==m&&(r.transitionStart(i,m),r.transitionEnd(i,m)),!1;if(o.cssMode){var w=r.isHorizontal(),y=-g;return c&&(y=u.scrollWidth-u.offsetWidth-y),0===t?u[w?"scrollLeft":"scrollTop"]=y:u.scrollTo?u.scrollTo(((a={})[w?"left":"top"]=y,a.behavior="smooth",a)):u[w?"scrollLeft":"scrollTop"]=y,!0}return 0===t?(r.setTransition(0),r.setTranslate(g),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,s),r.transitionStart(i,m),r.transitionEnd(i,m)):(r.setTransition(t),r.setTranslate(g),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,s),r.transitionStart(i,m),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,m))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(e,t,i,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var a=e;return this.params.loop&&(a+=this.loopedSlides),this.slideTo(a,t,i,s)},slideNext:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this.params,a=this.animating,r=this.activeIndex<s.slidesPerGroupSkip?1:s.slidesPerGroup;if(s.loop){if(a)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}return this.slideTo(this.activeIndex+r,e,t,i)},slidePrev:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this.params,a=this.animating,r=this.snapGrid,n=this.slidesGrid,o=this.rtlTranslate;if(s.loop){if(a)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}function l(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var d,h=l(o?this.translate:-this.translate),p=r.map((function(e){return l(e)})),c=(n.map((function(e){return l(e)})),r[p.indexOf(h)],r[p.indexOf(h)-1]);return void 0===c&&s.cssMode&&r.forEach((function(e){!c&&h>=e&&(c=e)}
9509)),void 0!==c&&(d=n.indexOf(c))<0&&(d=this.activeIndex-1),this.slideTo(d,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t,i,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===s&&(s=.5);var a=this.activeIndex,r=Math.min(this.params.slidesPerGroupSkip,a),n=r+Math.floor((a-r)/this.params.slidesPerGroup),o=this.rtlTranslate?this.translate:-this.translate;if(o>=this.snapGrid[n]){var l=this.snapGrid[n];o-l>(this.snapGrid[n+1]-l)*s&&(a+=this.params.slidesPerGroup)}else{var d=this.snapGrid[n-1];o-d<=(this.snapGrid[n]-d)*s&&(a-=this.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,this.slidesGrid.length-1),this.slideTo(a,e,t,i)},slideToClickedSlide:function(){var e,t=this,i=t.params,s=t.$wrapperEl,a="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,r=t.clickedIndex;if(i.loop){if(t.animating)return;e=parseInt(n(t.clickedSlide).attr("data-swiper-slide-index"),10),i.centeredSlides?r<t.loopedSlides-a/2||r>t.slides.length-t.loopedSlides+a/2?(t.loopFix(),r=s.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),d.nextTick((function(){t.slideTo(r)}))):t.slideTo(r):r>t.slides.length-a?(t.loopFix(),r=s.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),d.nextTick((function(){t.slideTo(r)}))):t.slideTo(r)}else t.slideTo(r)}};var g={loopCreate:function(){var e=this,t=e.params,s=e.$wrapperEl;s.children("."+t.slideClass+"."+t.slideDuplicateClass).remove();var a=s.children("."+t.slideClass);if(t.loopFillGroupWithBlank){var r=t.slidesPerGroup-a.length%t.slidesPerGroup;if(r!==t.slidesPerGroup){for(var o=0;o<r;o+=1){var l=n(i.createElement("div")).addClass(t.slideClass+" "+t.slideBlankClass);s.append(l)}a=s.children("."+t.slideClass)}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=a.length),e.loopedSlides=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10)),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>a.length&&(e.loopedSlides=a.length);var d=[],h=[];a.each((function(t,i){var s=n(i);t<e.loopedSlides&&h.push(i),t<a.length&&t>=a.length-e.loopedSlides&&d.push(i),s.attr("data-swiper-slide-index",t)}));for(var p=0;p<h.length;p+=1)s.append(n(h[p].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var c=d.length-1;c>=0;c-=1)s.prepend(n(d[c].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){this.emit("beforeLoopFix");var e,t=this.activeIndex,i=this.slides,s=this.loopedSlides,a=this.allowSlidePrev,r=this.allowSlideNext,n=this.snapGrid,o=this.rtlTranslate;this.allowSlidePrev=!0,this.allowSlideNext=!0;var l=-n[t]-this.getTranslate();if(t<s)e=i.length-3*s+t,e+=s,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((o?-this.translate:this.translate)-l);else if(t>=i.length-s){e=-i.length+t+s,e+=s,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((o?-this.translate:this.translate)-l)}this.allowSlidePrev=a,this.allowSlideNext=r,this.emit("loopFix")},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,i=this.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass+",."+t.slideClass+"."+t.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}};var b={setGrabCursor:function(e){if(!(h.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){h.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}};var w,y,x,E,T,S,C,M,P,z,k,$,L,I,D,O={appendSlide:function(e){var t=this.$wrapperEl,i=this.params;if(i.loop&&this.loopDestroy(),"object"==typeof e&&"length"in e)for(var s=0;s<e.length;s+=1)e[s]&&t.append(e[s]);else t.append(e);i.loop&&this.loopCreate(),i.observer&&h.observer||this.update()},prependSlide:function(e){var t=this.params,i=this.$wrapperEl,s=this.activeIndex;t.loop&&this.loopDestroy();var a=s+1;if("object"==typeof e&&"length"in e){for(var r=0;r<e.length;r+=1)e[r]&&i.prepend(e[r]);a=s+e.length}else i.prepend(e);t.loop&&this.loopCreate(),t.observer&&h.observer||this.update(),this.slideTo(a,0,!1)},addSlide:function(e,t){var i=this.$wrapperEl,s=this.params,a=this.activeIndex;s.loop&&(a-=this.loopedSlides,this.loopDestroy(),this.slides=i.children("."+s.slideClass));var r=this.slides.length;if(e<=0)this.prependSlide(t);else if(e>=r)this.appendSlide(t);else{for(var n=a>e?a+1:a,o=[],l=r-1;l>=e;l-=1){var d=this.slides.eq(l);d.remove(),o.unshift(d)}if("object"==typeof t&&"length"in t){for(var p=0;p<t.length;p+=1)t[p]&&i.append(t[p]);n=a>e?a+t.length:a}else i.append(t);for(var c=0;c<o.length;c+=1)i.append(o[c]);s.loop&&this.loopCreate(),s.observer&&h.observer||this.update(),s.loop?this.slideTo(n+this.loopedSlides,0,!1):this.slideTo(n,0,!1)}},removeSlide:function(e){var t=this.params,i=this.$wrapperEl,s=this.activeIndex;t.loop&&(s-=this.loopedSlides,this.loopDestroy(),this.slides=i.children("."+t.slideClass));var a,r=s;if("object"==typeof e&&"length"in e){for(var n=0;n<e.length;n+=1)a=e[n],this.slides[a]&&this.slides.eq(a).remove(),a<r&&(r-=1);r=Math.max(r,0)}else a=e,this.slides[a]&&this.slides.eq(a).remove(),a<r&&(r-=1),r=Math.max(r,0);t.loop&&this.loopCreate(),t.observer&&h.observer||this.update(),t.loop?this.slideTo(r+this.loopedSlides,0,!1):this.slideTo(r,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},A=(w=a.navigator.platform,y=a.navigator.userAgent,x={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!a.cordova&&!a.phonegap),phonegap:!(!a.cordova&&!a.phonegap),electron:!1},E=a.screen.width,T=a.screen.height,S=y.match(/(Android);?[\s\/]+([\d.]+)?/),C=y.match(/(iPad).*OS\s([\d_]+)/),M=y.match(/(iPod)(.*OS\s([\d_]+))?/),P=!C&&y.match(/(iPhone\sOS|iOS)\s([\d_]+)/),z=y.indexOf("MSIE ")>=0||y.indexOf("Trident/")>=0,k=y.indexOf("Edge/")>=0,$=y.indexOf("Gecko/")>=0&&y.indexOf("Firefox/")>=0,L="Win32"===w,I=y.toLowerCase().indexOf("electron")>=0,D="MacIntel"===w,!C&&D&&h.touch&&(1024===E&&1366===T||834===E&&1194===T||834===E&&1112===T||768===E&&1024===T)&&(C=y.match(/(Version)\/([\d.]+)/),D=!1),x.ie=z,x.edge=k,x.firefox=$,S&&!L&&(x.os="android",x.osVersion=S[2],x.android=!0,x.androidChrome=y.toLowerCase().indexOf("chrome")>=0),(C||P||M)&&(x.os="ios",x.ios=!0),P&&!M&&(x.osVersion=P[2].replace(/_/g,"."),x.iphone=!0),C&&(x.osVersion=C[2].replace(/_/g,"."),x.ipad=!0),M&&(x.osVersion=M[3]?M[3].replace(/_/g,"."):null,x.ipod=!0),x.ios&&x.osVersion&&y.indexOf("Version/")>=0&&"10"===x.osVersion.split(".")[0]&&(x.osVersion=y.toLowerCase().split("version/")[1].split(" ")[0]),x.webView=!(!(P||C||M)||!y.match(/.*AppleWeb
9509Kit(?!.*Safari)/i)&&!a.navigator.standalone)||a.matchMedia&&a.matchMedia("(display-mode: standalone)").matches,x.webview=x.webView,x.standalone=x.webView,x.desktop=!(x.ios||x.android)||I,x.desktop&&(x.electron=I,x.macos=D,x.windows=L,x.macos&&(x.os="macos"),x.windows&&(x.os="windows")),x.pixelRatio=a.devicePixelRatio||1,x);function G(e){var t=this.touchEventsData,s=this.params,r=this.touches;if(!this.animating||!s.preventInteractionOnTransition){var o=e;o.originalEvent&&(o=o.originalEvent);var l=n(o.target);if(("wrapper"!==s.touchEventsTarget||l.closest(this.wrapperEl).length)&&(t.isTouchEvent="touchstart"===o.type,(t.isTouchEvent||!("which"in o)||3!==o.which)&&!(!t.isTouchEvent&&"button"in o&&o.button>0||t.isTouched&&t.isMoved)))if(s.noSwiping&&l.closest(s.noSwipingSelector?s.noSwipingSelector:"."+s.noSwipingClass)[0])this.allowClick=!0;else if(!s.swipeHandler||l.closest(s.swipeHandler)[0]){r.currentX="touchstart"===o.type?o.targetTouches[0].pageX:o.pageX,r.currentY="touchstart"===o.type?o.targetTouches[0].pageY:o.pageY;var h=r.currentX,p=r.currentY,c=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,u=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(!c||!(h<=u||h>=a.screen.width-u)){if(d.extend(t,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=h,r.startY=p,t.touchStartTime=d.now(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,s.threshold>0&&(t.allowThresholdMove=!1),"touchstart"!==o.type){var v=!0;l.is(t.formElements)&&(v=!1),i.activeElement&&n(i.activeElement).is(t.formElements)&&i.activeElement!==l[0]&&i.activeElement.blur();var f=v&&this.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||f)&&o.preventDefault()}this.emit("touchStart",o)}}}}function H(e){var t=this.touchEventsData,s=this.params,a=this.touches,r=this.rtlTranslate,o=e;if(o.originalEvent&&(o=o.originalEvent),t.isTouched){if(!t.isTouchEvent||"touchmove"===o.type){var l="touchmove"===o.type&&o.targetTouches&&(o.targetTouches[0]||o.changedTouches[0]),h="touchmove"===o.type?l.pageX:o.pageX,p="touchmove"===o.type?l.pageY:o.pageY;if(o.preventedByNestedSwiper)return a.startX=h,void(a.startY=p);if(!this.allowTouchMove)return this.allowClick=!1,void(t.isTouched&&(d.extend(a,{startX:h,startY:p,currentX:h,currentY:p}),t.touchStartTime=d.now()));if(t.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop)if(this.isVertical()){if(p<a.startY&&this.translate<=this.maxTranslate()||p>a.startY&&this.translate>=this.minTranslate())return t.isTouched=!1,void(t.isMoved=!1)}else if(h<a.startX&&this.translate<=this.maxTranslate()||h>a.startX&&this.translate>=this.minTranslate())return;if(t.isTouchEvent&&i.activeElement&&o.target===i.activeElement&&n(o.target).is(t.formElements))return t.isMoved=!0,void(this.allowClick=!1);if(t.allowTouchCallbacks&&this.emit("touchMove",o),!(o.targetTouches&&o.targetTouches.length>1)){a.currentX=h,a.currentY=p;var c=a.currentX-a.startX,u=a.currentY-a.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(c,2)+Math.pow(u,2))<this.params.threshold)){var v;if(void 0===t.isScrolling)this.isHorizontal()&&a.currentY===a.startY||this.isVertical()&&a.currentX===a.startX?t.isScrolling=!1:c*c+u*u>=25&&(v=180*Math.atan2(Math.abs(u),Math.abs(c))/Math.PI,t.isScrolling=this.isHorizontal()?v>s.touchAngle:90-v>s.touchAngle);if(t.isScrolling&&this.emit("touchMoveOpposite",o),void 0===t.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(t.startMoving=!0)),t.isScrolling)t.isTouched=!1;else if(t.startMoving){this.allowClick=!1,!s.cssMode&&o.cancelable&&o.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&o.stopPropagation(),t.isMoved||(s.loop&&this.loopFix(),t.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),t.allowMomentumBounce=!1,!s.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",o)),this.emit("sliderMove",o),t.isMoved=!0;var f=this.isHorizontal()?c:u;a.diff=f,f*=s.touchRatio,r&&(f=-f),this.swipeDirection=f>0?"prev":"next",t.currentTranslate=f+t.startTranslate;var m=!0,g=s.resistanceRatio;if(s.touchReleaseOnEdges&&(g=0),f>0&&t.currentTranslate>this.minTranslate()?(m=!1,s.resistance&&(t.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+t.startTranslate+f,g))):f<0&&t.currentTranslate<this.maxTranslate()&&(m=!1,s.resistance&&(t.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-t.startTranslate-f,g))),m&&(o.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&t.currentTranslate<t.startTranslate&&(t.currentTranslate=t.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&t.currentTranslate>t.startTranslate&&(t.currentTranslate=t.startTranslate),s.threshold>0){if(!(Math.abs(f)>s.threshold||t.allowThresholdMove))return void(t.currentTranslate=t.startTranslate);
vendor: 5,242 bytes, line 9509
9509if(!t.allowThresholdMove)return t.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,t.currentTranslate=t.startTranslate,void(a.diff=this.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}s.followFinger&&!s.cssMode&&((s.freeMode||s.watchSlidesProgress||s.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),s.freeMode&&(0===t.velocities.length&&t.velocities.push({position:a[this.isHorizontal()?"startX":"startY"],time:t.touchStartTime}),t.velocities.push({position:a[this.isHorizontal()?"currentX":"currentY"],time:d.now()})),this.updateProgress(t.currentTranslate),this.setTranslate(t.currentTranslate))}}}}}else t.startMoving&&t.isScrolling&&this.emit("touchMoveOpposite",o)}function B(e){var t=this,i=t.touchEventsData,s=t.params,a=t.touches,r=t.rtlTranslate,n=t.$wrapperEl,o=t.slidesGrid,l=t.snapGrid,h=e;if(h.originalEvent&&(h=h.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",h),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var p,c=d.now(),u=c-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(h),t.emit("tap click",h),u<300&&c-i.lastClickTime<300&&t.emit("doubleTap doubleClick",h)),i.lastClickTime=d.now(),d.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===a.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,p=s.followFinger?r?t.translate:-t.translate:-i.currentTranslate,!s.cssMode)if(s.freeMode){if(p<-t.minTranslate())return void t.slideTo(t.activeIndex);if(p>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(s.freeModeMomentum){if(i.velocities.length>1){var v=i.velocities.pop(),f=i.velocities.pop(),m=v.position-f.position,g=v.time-f.time;t.velocity=m/g,t.velocity/=2,Math.abs(t.velocity)<s.freeModeMinimumVelocity&&(t.velocity=0),(g>150||d.now()-v.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=s.freeModeMomentumVelocityRatio,i.velocities.length=0;var b=1e3*s.freeModeMomentumRatio,w=t.velocity*b,y=t.translate+w;r&&(y=-y);var x,E,T=!1,S=20*Math.abs(t.velocity)*s.freeModeMomentumBounceRatio;if(y<t.maxTranslate())s.freeModeMomentumBounce?(y+t.maxTranslate()<-S&&(y=t.maxTranslate()-S),x=t.maxTranslate(),T=!0,i.allowMomentumBounce=!0):y=t.maxTranslate(),s.loop&&s.centeredSlides&&(E=!0);else if(y>t.minTranslate())s.freeModeMomentumBounce?(y-t.minTranslate()>S&&(y=t.minTranslate()+S),x=t.minTranslate(),T=!0,i.allowMomentumBounce=!0):y=t.minTranslate(),s.loop&&s.centeredSlides&&(E=!0);else if(s.freeModeSticky){for(var C,M=0;M<l.length;M+=1)if(l[M]>-y){C=M;break}y=-(y=Math.abs(l[C]-y)<Math.abs(l[C-1]-y)||"next"===t.swipeDirection?l[C]:l[C-1])}if(E&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity){if(b=r?Math.abs((-y-t.translate)/t.velocity):Math.abs((y-t.translate)/t.velocity),s.freeModeSticky){var P=Math.abs((r?-y:y)-t.translate),z=t.slidesSizesGrid[t.activeIndex];b=P<z?s.speed:P<2*z?1.5*s.speed:2.5*s.speed}}else if(s.freeModeSticky)return void t.slideToClosest();s.freeModeMomentumBounce&&T?(t.updateProgress(x),t.setTransition(b),t.setTranslate(y),t.transitionStart(!0,t.swipeDirection),t.animating=!0,n.transitionEnd((function(){t&&!t.destroyed&&i.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(s.speed),setTimeout((function(){t.setTranslate(x),n.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(t.updateProgress(y),t.setTransition(b),t.setTranslate(y),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,n.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(y),t.updateActiveIndex(),t.updateSlidesClasses()}else if(s.freeModeSticky)return void t.slideToClosest();(!s.freeModeMomentum||u>=s.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var k=0,$=t.slidesSizesGrid[0],L=0;L<o.length;L+=L<s.slidesPerGroupSkip?1:s.slidesPerGroup){var I=L<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==o[L+I]?p>=o[L]&&p<o[L+I]&&(k=L,$=o[L+I]-o[L]):p>=o[L]&&(k=L,$=o[o.length-1]-o[o.length-2])}var D=(p-o[k])/$,O=k<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(u>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(D>=s.longSwipesRatio?t.slideTo(k+O):t.slideTo(k)),"prev"===t.swipeDirection&&(D>1-s.longSwipesRatio?t.slideTo(k+O):t.slideTo(k))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(h.target===t.navigation.nextEl||h.target===t.navigation.prevEl)?h.target===t.navigation.nextEl?t.slideTo(k+O):t.slideTo(k):("next"===t.swipeDirection&&t.slideTo(k+O),"prev"===t.swipeDirection&&t.slideTo(k))}}}function N(){var e=this.params,t=this.el;if(!t||0!==t.offsetWidth){e.breakpoints&&this.setBreakpoint();var i=this.allowSlideNext,s=this.allowSlidePrev,a=this.snapGrid;this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>
95091)&&this.isEnd&&!this.isBeginning&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=s,this.allowSlideNext=i,this.params.watchOverflow&&a!==this.snapGrid&&this.checkOverflow()}}function X(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function V(){var e=this.wrapperEl,t=this.rtlTranslate;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=t?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:this.translate=-e.scrollTop,-0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();var i=this.maxTranslate()-this.minTranslate();(0===i?0:(this.translate-this.minTranslate())/i)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}var Y=!1;function F(){}var W={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},R={update:u,translate:v,transition:f,slide:m,loop:g,grabCursor:b,manipulation:O,events:{attachEvents:function(){var e=this.params,t=this.touchEvents,s=this.el,a=this.wrapperEl;this.onTouchStart=G.bind(this),this.onTouchMove=H.bind(this),this.onTouchEnd=B.bind(this),e.cssMode&&(this.onScroll=V.bind(this)),this.onClick=X.bind(this);var r=!!e.nested;if(!h.touch&&h.pointerEvents)s.addEventListener(t.start,this.onTouchStart,!1),i.addEventListener(t.move,this.onTouchMove,r),i.addEventListener(t.end,this.onTouchEnd,!1);else{if(h.touch){var n=!("touchstart"!==t.start||!h.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};s.addEventListener(t.start,this.onTouchStart,n),s.addEventListener(t.move,this.onTouchMove,h.passiveListener?{passive:!1,capture:r}:r),s.addEventListener(t.end,this.onTouchEnd,n),t.cancel&&s.addEventListener(t.cancel,this.onTouchEnd,n),Y||(i.addEventListener("touchstart",F),Y=!0)}(e.simulateTouch&&!A.ios&&!A.android||e.simulateTouch&&!h.touch&&A.ios)&&(s.addEventListener("mousedown",this.onTouchStart,!1),i.addEventListener("mousemove",this.onTouchMove,r),i.addEventListener("mouseup",this.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&s.addEventListener("click",this.onClick,!0),e.cssMode&&a.addEventListener("scroll",this.onScroll),e.updateOnWindowResize?this.on(A.ios||A.android?"resize orientationchange observerUpdate":"resize observerUpdate",N,!0):this.on("observerUpdate",N,!0)},detachEvents:function(){var e=this.params,t=this.touchEvents,s=this.el,a=this.wrapperEl,r=!!e.nested;
9509if(!h.touch&&h.pointerEvents)s.removeEventListener(t.start,this.onTouchStart,!1),i.removeEventListener(t.move,this.onTouchMove,r),i.removeEventListener(t.end,this.onTouchEnd,!1);else{if(h.touch){var n=!("onTouchStart"!==t.start||!h.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};s.removeEventListener(t.start,this.onTouchStart,n),s.removeEventListener(t.move,this.onTouchMove,r),s.removeEventListener(t.end,this.onTouchEnd,n),t.cancel&&s.removeEventListener(t.cancel,this.onTouchEnd,n)}(e.simulateTouch&&!A.ios&&!A.android||e.simulateTouch&&!h.touch&&A.ios)&&(s.removeEventListener("mousedown",this.onTouchStart,!1),i.removeEventListener("mousemove",this.onTouchMove,r),i.removeEventListener("mouseup",this.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&s.removeEventListener("click",this.onClick,!0),e.cssMode&&a.removeEventListener("scroll",this.onScroll),this.off(A.ios||A.android?"resize orientationchange observerUpdate":"resize observerUpdate",N)}},breakpoints:{setBreakpoint:function(){var e=this.activeIndex,t=this.initialized,i=this.loopedSlides;void 0===i&&(i=0);var s=this.params,a=this.$el,r=s.breakpoints;if(r&&(!r||0!==Object.keys(r).length)){var n=this.getBreakpoint(r);if(n&&this.currentBreakpoint!==n){var o=n in r?r[n]:void 0;o&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(e){var t=o[e];void 0!==t&&(o[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var l=o||this.originalParams,h=s.slidesPerColumn>1,p=l.slidesPerColumn>1;h&&!p?a.removeClass(s.containerModifierClass+"multirow "+s.containerModifierClass+"multirow-column"):!h&&p&&(a.addClass(s.containerModifierClass+"multirow"),"column"===l.slidesPerColumnFill&&a.addClass(s.containerModifierClass+"multirow-column"));var c=l.direction&&l.direction!==s.direction,u=s.loop&&(l.slidesPerView!==s.slidesPerView||c);c&&t&&this.changeDirection(),d.extend(this.params,l),d.extend(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=n,u&&t&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(e-i+this.loopedSlides,0,!1)),this.emit("breakpoint",l)}}},getBreakpoint:function(e){if(e){var t=!1,i=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1));return{value:a.innerHeight*t,point:e}}return{value:e,point:e}}));i.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var s=0;s<i.length;s+=1){var r=i[s],n=r.point;r.value<=a.innerWidth&&(t=n)}return t||"max"}}},checkOverflow:{checkOverflow:function(){var e=this.params,t=this.isLocked,i=this.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(this.slides.length-1)+this.slides[0].offsetWidth*this.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&i?this.isLocked=i<=this.size:this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,t!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),t&&t!==this.isLocked&&(this.isEnd=!1,this.navigation&&this.navigation.update())}},classes:{addClasses:function(){var e=this.classNames,t=this.params,i=this.rtl,s=this.$el,a=[];a.push("initialized"),a.push(t.direction),t.freeMode&&a.push("free-mode"),t.autoHeight&&a.push("autoheight"),i&&a.push("rtl"),t.slidesPerColumn>1&&(a.push("multirow"),"column"===t.slidesPerColumnFill&&a.push("multirow-column")),A.android&&a.push("android"),A.ios&&a.push("ios"),t.cssMode&&a.push("css-mode"),a.forEach((function(i){e.push(t.containerModifierClass+i)})),s.addClass(e.join(" "))},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" "))}},images:{loadImage:function(e,t,i,s,r,o){var l;function d(){o&&o()}n(e).parent("picture")[0]||e.complete&&r?d():t?((l=new a.Image).onload=d,l.onerror=d,s&&(l.sizes=s),i&&(l.srcset=i),t&&(l.src=t)):d()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(
9509),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var i=0;i<e.imagesToLoad.length;i+=1){var s=e.imagesToLoad[i];e.loadImage(s,s.currentSrc||s.getAttribute("src"),s.srcset||s.getAttribute("srcset"),s.sizes||s.getAttribute("sizes"),!0,t)}}}},q={},j=function(e){function t(){for(var i,s,a,r=[],o=arguments.length;o--;)r[o]=arguments[o];1===r.length&&r[0].constructor&&r[0].constructor===Object?a=r[0]:(s=(i=r)[0],a=i[1]),a||(a={}),a=d.extend({},a),s&&!a.el&&(a.el=s),e.call(this,a),Object.keys(R).forEach((function(e){Object.keys(R[e]).forEach((function(i){t.prototype[i]||(t.prototype[i]=R[e][i])}))}));var l=this;void 0===l.modules&&(l.modules={}),Object.keys(l.modules).forEach((function(e){var t=l.modules[e];if(t.params){var i=Object.keys(t.params)[0],s=t.params[i];if("object"!=typeof s||null===s)return;if(!(i in a)||!("enabled"in s))return;!0===a[i]&&(a[i]={enabled:!0}),"object"!=typeof a[i]||"enabled"in a[i]||(a[i].enabled=!0),a[i]||(a[i]={enabled:!1})}}));var p=d.extend({},W);l.useModulesParams(p),l.params=d.extend({},p,q,a),l.originalParams=d.extend({},l.params),l.passedParams=d.extend({},a),l.$=n;var c=n(l.params.el);if(s=c[0]){if(c.length>1){var u=[];return c.each((function(e,i){var s=d.extend({},a,{el:i});u.push(new t(s))})),u}var v,f,m;return s.swiper=l,c.data("swiper",l),s&&s.shadowRoot&&s.shadowRoot.querySelector?(v=n(s.shadowRoot.querySelector("."+l.params.wrapperClass))).children=function(e){return c.children(e)}:v=c.children("."+l.params.wrapperClass),d.extend(l,{$el:c,el:s,$wrapperEl:v,wrapperEl:v[0],classNames:[],slides:n(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===l.params.direction},isVertical:function(){return"vertical"===l.params.direction},rtl:"rtl"===s.dir.toLowerCase()||"rtl"===c.css("direction"),rtlTranslate:"horizontal"===l.params.direction&&("rtl"===s.dir.toLowerCase()||"rtl"===c.css("direction")),wrongRTL:"-webkit-box"===v.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:(f=["touchstart","touchmove","touchend","touchcancel"],m=["mousedown","mousemove","mouseup"],h.pointerEvents&&(m=["pointerdown","pointermove","pointerup"]),l.touchEventsTouch={start:f[0],move:f[1],end:f[2],cancel:f[3]},l.touchEventsDesktop={start:m[0],move:m[1],end:m[2]},h.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:d.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.useModules(),l.params.init&&l.init(),l}}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return t.prototype.slidesPerViewDynamic=function(){var e=this.params,t=this.slides,i=this.slidesGrid,s=this.size,a=this.activeIndex,r=1;if(e.centeredSlides){for(var n,o=t[a].swiperSlideSize,l=a+1;l<t.length;l+=1)t[l]&&!n&&(r+=1,(o+=t[l].swiperSlideSize)>s&&(n=!0));for(var d=a-1;d>=0;d-=1)t[d]&&!n&&(r+=1,(o+=t[d].swiperSlideSize)>s&&(n=!0))}else for(var h=a+1;h<t.length;h+=1)i[h]-i[a]<s&&(r+=1);return r},t.prototype.update=function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,i=e.params;i.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(s(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||s(),i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function s(){var t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}},t.prototype.changeDirection=function(e,t){void 0===t&&(t=!0);var i=this.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(this.$el.removeClass(""+this.params.containerModifierClass+i).addClass(""+this.params.containerModifierClass+e),this.params.direction=e,this.slides.each((function(t,i){"vertical"===e?i.style.width="":i.style.height=""}
9509)),this.emit("changeDirection"),t&&this.update()),this},t.prototype.init=function(){this.initialized||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"))},t.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var i=this,s=i.params,a=i.$el,r=i.$wrapperEl,n=i.slides;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),a.removeAttr("style"),r.removeAttr("style"),n&&n.length&&n.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((function(e){i.off(e)})),!1!==e&&(i.$el[0].swiper=null,i.$el.data("swiper",null),d.deleteProps(i)),i.destroyed=!0),null},t.extendDefaults=function(e){d.extend(q,e)},i.extendedDefaults.get=function(){return q},i.defaults.get=function(){return W},i.Class.get=function(){return e},i.$.get=function(){return n},Object.defineProperties(t,i),t}(p),K={name:"device",proto:{device:A},static:{device:A}},U={name:"support",proto:{support:h},static:{support:h}},_={isEdge:!!a.navigator.userAgent.match(/Edge/g),isSafari:function(){var e=a.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(a.navigator.userAgent)},Z={name:"browser",proto:{browser:_},static:{browser:_}},Q={name:"resize",create:function(){var e=this;d.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){a.addEventListener("resize",this.resize.resizeHandler),a.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){a.removeEventListener("resize",this.resize.resizeHandler),a.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},J={func:a.MutationObserver||a.WebkitMutationObserver,attach:function(e,t){void 0===t&&(t={});var i=this,s=new(0,J.func)((function(e){if(1!==e.length){var t=function(){i.emit("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(t):a.setTimeout(t,0)}else i.emit("observerUpdate",e[0])}));s.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),i.observer.observers.push(s)},init:function(){if(h.observer&&this.params.observer){if(this.params.observeParents)for(var e=this.$el.parents(),t=0;t<e.length;t+=1)this.observer.attach(e[t]);this.observer.attach(this.$el[0],{childList:this.params.observeSlideChildren}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(e){e.disconnect()})),this.observer.observers=[]}},ee={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){d.extend(this,{observer:{init:J.init.bind(this),attach:J.attach.bind(this),destroy:J.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},te={update:function(e){var t=this,i=t.params,s=i.slidesPerView,a=i.slidesPerGroup,r=i.centeredSlides,n=t.params.virtual,o=n.addSlidesBefore,l=n.addSlidesAfter,h=t.virtual,p=h.from,c=h.to,u=h.slides,v=h.slidesGrid,f=h.renderSlide,m=h.offset;t.updateActiveIndex();var g,b,w,y=t.activeIndex||0;g=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",r?(b=Math.floor(s/2)+a+o,w=Math.floor(s/2)+a+l):(b=s+(a-1)+o,w=a+l);var x=Math.max((y||0)-w,0),E=Math.min((y||0)+b,u.length-1),T=(t.slidesGrid[x]||0)-(t.slidesGrid[0]||0);function S(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(d.extend(t.virtual,{from:x,to:E,offset:T,slidesGrid:t.slidesGrid}),p===x&&c===E&&!e)return t.slidesGrid!==v&&T!==m&&t.slides.css(g,T+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:T,from:x,to:E,slides:function(){for(var e=[],t=x;t<=E;t+=1)e.push(u[t]);return e}()}),void S();
9509var C=[],M=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(var P=p;P<=c;P+=1)(P<x||P>E)&&t.$wrapperEl.find("."+t.params.slideClass+'[data-swiper-slide-index="'+P+'"]').remove();for(var z=0;z<u.length;z+=1)z>=x&&z<=E&&(void 0===c||e?M.push(z):(z>c&&M.push(z),z<p&&C.push(z)));M.forEach((function(e){t.$wrapperEl.append(f(u[e],e))})),C.sort((function(e,t){return t-e})).forEach((function(e){t.$wrapperEl.prepend(f(u[e],e))})),t.$wrapperEl.children(".swiper-slide").css(g,T+"px"),S()},renderSlide:function(e,t){var i=this.params.virtual;if(i.cache&&this.virtual.cache[t])return this.virtual.cache[t];var s=i.renderSlide?n(i.renderSlide.call(this,e,t)):n('<div class="'+this.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return s.attr("data-swiper-slide-index")||s.attr("data-swiper-slide-index",t),i.cache&&(this.virtual.cache[t]=s),s},appendSlide:function(e){if("object"==typeof e&&"length"in e)for(var t=0;t<e.length;t+=1)e[t]&&this.virtual.slides.push(e[t]);else this.virtual.slides.push(e);this.virtual.update(!0)},prependSlide:function(e){var t=this.activeIndex,i=t+1,s=1;if(Array.isArray(e)){for(var a=0;a<e.length;a+=1)e[a]&&this.virtual.slides.unshift(e[a]);i=t+e.length,s=e.length}else this.virtual.slides.unshift(e);if(this.params.virtual.cache){var r=this.virtual.cache,n={};Object.keys(r).forEach((function(e){var t=r[e],i=t.attr("data-swiper-slide-index");i&&t.attr("data-swiper-slide-index",parseInt(i,10)+1),n[parseInt(e,10)+s]=t})),this.virtual.cache=n}this.virtual.update(!0),this.slideTo(i,0)},removeSlide:function(e){if(null!=e){var t=this.activeIndex;if(Array.isArray(e))for(var i=e.length-1;i>=0;i-=1)this.virtual.slides.splice(e[i],1),this.params.virtual.cache&&delete this.virtual.cache[e[i]],e[i]<t&&(t-=1),t=Math.max(t,0);else this.virtual.slides.splice(e,1),this.params.virtual.cache&&delete this.virtual.cache[e],e<t&&(t-=1),t=Math.max(t,0);this.virtual.update(!0),this.slideTo(t,0)}},removeAllSlides:function(){this.virtual.slides=[],this.params.virtual.cache&&(this.virtual.cache={}),this.virtual.update(!0),this.slideTo(0,0)}},ie={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){d.extend(this,{virtual:{update:te.update.bind(this),appendSlide:te.appendSlide.bind(this),prependSlide:te.prependSlide.bind(this),removeSlide:te.removeSlide.bind(this),removeAllSlides:te.removeAllSlides.bind(this),renderSlide:te.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){if(this.params.virtual.enabled){this.classNames.push(this.params.containerModifierClass+"virtual");var e={watchSlidesProgress:!0};d.extend(this.params,e),d.extend(this.originalParams,e),this.params.initialSlide||this.virtual.update(
9509)}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},se={handle:function(e){var t=this.rtlTranslate,s=e;s.originalEvent&&(s=s.originalEvent);var r=s.keyCode||s.charCode,n=this.params.keyboard.pageUpDown,o=n&&33===r,l=n&&34===r,d=37===r,h=39===r,p=38===r,c=40===r;if(!this.allowSlideNext&&(this.isHorizontal()&&h||this.isVertical()&&c||l))return!1;if(!this.allowSlidePrev&&(this.isHorizontal()&&d||this.isVertical()&&p||o))return!1;if(!(s.shiftKey||s.altKey||s.ctrlKey||s.metaKey||i.activeElement&&i.activeElement.nodeName&&("input"===i.activeElement.nodeName.toLowerCase()||"textarea"===i.activeElement.nodeName.toLowerCase()))){if(this.params.keyboard.onlyInViewport&&(o||l||d||h||p||c)){var u=!1;if(this.$el.parents("."+this.params.slideClass).length>0&&0===this.$el.parents("."+this.params.slideActiveClass).length)return;var v=a.innerWidth,f=a.innerHeight,m=this.$el.offset();t&&(m.left-=this.$el[0].scrollLeft);for(var g=[[m.left,m.top],[m.left+this.width,m.top],[m.left,m.top+this.height],[m.left+this.width,m.top+this.height]],b=0;b<g.length;b+=1){var w=g[b];w[0]>=0&&w[0]<=v&&w[1]>=0&&w[1]<=f&&(u=!0)}if(!u)return}this.isHorizontal()?((o||l||d||h)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),((l||h)&&!t||(o||d)&&t)&&this.slideNext(),((o||d)&&!t||(l||h)&&t)&&this.slidePrev()):((o||l||p||c)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),(l||c)&&this.slideNext(),(o||p)&&this.slidePrev()),this.emit("keyPress",r)}},enable:function(){this.keyboard.enabled||(n(i).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(n(i).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},ae={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create:function(){d.extend(this,{keyboard:{enabled:!1,enable:se.enable.bind(this),disable:se.disable.bind(this),handle:se.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var re={lastScrollTime:d.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return a.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var e="onwheel"in i;if(!e){var t=i.createElement("div");t.setAttribute("onwheel","return;"),e="function"==typeof t.onwheel}return!e&&i.implementation&&i.implementation.hasFeature&&!0!==i.implementation.hasFeature("","")&&(e=i.implementation.hasFeature("Events.wheel","3.0")),e}()?"wheel":"mousewheel"},normalize:function(e){var t=0,i=0,s=0,a=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),s=10*t,a=10*i,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(s=e.deltaX),e.shiftKey&&!s&&(s=a,a=0),(s||a)&&e.deltaMode&&(1===e.deltaMode?(s*=40,a*=40):(s*=800,a*=800)),s&&!t&&(t=s<1?-1:1),a&&!i&&(i=a<1?-1:1),{spinX:t,spinY:i,pixelX:s,pixelY:a}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,i=this,s=i.params.mousewheel;i.params.cssMode&&t.preventDefault();var a=i.$el;if("container"!==i.params.mousewheel.eventsTarged&&(a=n(i.params.mousewheel.eventsTarged)),!i.mouseEntered&&!a[
95090].contains(t.target)&&!s.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var r=0,o=i.rtlTranslate?-1:1,l=re.normalize(t);if(s.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(l.pixelX)>Math.abs(l.pixelY)))return!0;r=-l.pixelX*o}else{if(!(Math.abs(l.pixelY)>Math.abs(l.pixelX)))return!0;r=-l.pixelY}else r=Math.abs(l.pixelX)>Math.abs(l.pixelY)?-l.pixelX*o:-l.pixelY;if(0===r)return!0;if(s.invert&&(r=-r),i.params.freeMode){var h={time:d.now(),delta:Math.abs(r),direction:Math.sign(r)},p=i.mousewheel.lastEventBeforeSnap,c=p&&h.time<p.time+500&&h.delta<=p.delta&&h.direction===p.direction;if(!c){i.mousewheel.lastEventBeforeSnap=void 0,i.params.loop&&i.loopFix();var u=i.getTranslate()+r*s.sensitivity,v=i.isBeginning,f=i.isEnd;if(u>=i.minTranslate()&&(u=i.minTranslate()),u<=i.maxTranslate()&&(u=i.maxTranslate()),i.setTransition(0),i.setTranslate(u),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!v&&i.isBeginning||!f&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky){clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=void 0;var m=i.mousewheel.recentWheelEvents;m.length>=15&&m.shift();var g=m.length?m[m.length-1]:void 0,b=m[0];if(m.push(h),g&&(h.delta>g.delta||h.direction!==g.direction))m.splice(0);else if(m.length>=15&&h.time-b.time<500&&b.delta-h.delta>=1&&h.delta<=6){var w=r>0?.8:.2;i.mousewheel.lastEventBeforeSnap=h,m.splice(0),i.mousewheel.timeout=d.nextTick((function(){i.slideToClosest(i.params.speed,!0,void 0,w)}),0)}i.mousewheel.timeout||(i.mousewheel.timeout=d.nextTick((function(){i.mousewheel.lastEventBeforeSnap=h,m.splice(0),i.slideToClosest(i.params.speed,!0,void 0,.5)}),500))}if(c||i.emit("scroll",t),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),u===i.minTranslate()||u===i.maxTranslate())return!0}}else{var y={time:d.now(),delta:Math.abs(r),direction:Math.sign(r),raw:e},x=i.mousewheel.recentWheelEvents;x.length>=2&&x.shift();var E=x.length?x[x.length-1]:void 0;if(x.push(y),E?(y.direction!==E.direction||y.delta>E.delta||y.time>E.time+150)&&i.mousewheel.animateSlider(y):i.mousewheel.animateSlider(y),i.mousewheel.releaseScroll(y))return!0}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},animateSlider:function(e){return e.delta>=6&&d.now()-this.mousewheel.lastScrollTime<60||(e.direction<0?this.isEnd&&!this.params.loop||this.animating||(this.slideNext(),this.emit("scroll",e.raw)):this.isBeginning&&!this.params.loop||this.animating||(this.slidePrev(),this.emit("scroll",e.raw)),this.mousewheel.lastScrollTime=(new a.Date).getTime(),!1)},releaseScroll:function(e){var t=this.params.mousewheel;if(e.direction<0){if(this.isEnd&&!this.params.loop&&t.releaseOnEdges)return!0}else if(this.isBeginning&&!this.params.loop&&t.releaseOnEdges)return!0;return!1},enable:function(){var e=re.event();if(this.params.cssMode)return this.wrapperEl.removeEventListener(e,this.mousewheel.handle),!0;if(!e)return!1;if(this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=n(this.params.mousewheel.eventsTarged)),t.on("mouseenter",this.mousewheel.handleMouseEnter),t.on("mouseleave",this.mousewheel.handleMouseLeave),t.on(e,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){var e=re.event();if(this.params.cssMode)return this.wrapperEl.addEventListener(e,this.mousewheel.handle),!0;if(!e)return!1;if(!this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=n(this.params.mousewheel.eventsTarged)),t.off(e,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},ne={update:function(){var e=this.params.navigation;if(!this.params.loop){var t=this.navigation,i=t.$nextEl,s=t.$prevEl;s&&s.length>0&&(this.isBeginning?s.addClass(e.disabledClass):s.removeClass(e.disabledClass),s[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)),i&&i.length>0&&(this.isEnd?i.addClass(e.disabledClass):i.removeClass(e.disabledClass),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass))}}
9509,onPrevClick:function(e){e.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(e){e.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var e,t,i=this.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(e=n(i.nextEl),this.params.uniqueNavElements&&"string"==typeof i.nextEl&&e.length>1&&1===this.$el.find(i.nextEl).length&&(e=this.$el.find(i.nextEl))),i.prevEl&&(t=n(i.prevEl),this.params.uniqueNavElements&&"string"==typeof i.prevEl&&t.length>1&&1===this.$el.find(i.prevEl).length&&(t=this.$el.find(i.prevEl))),e&&e.length>0&&e.on("click",this.navigation.onNextClick),t&&t.length>0&&t.on("click",this.navigation.onPrevClick),d.extend(this.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this.navigation,t=e.$nextEl,i=e.$prevEl;t&&t.length&&(t.off("click",this.navigation.onNextClick),t.removeClass(this.params.navigation.disabledClass)),i&&i.length&&(i.off("click",this.navigation.onPrevClick),i.removeClass(this.params.navigation.disabledClass))}},oe={update:function(){var e=this.rtl,t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var i,s=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,a=this.pagination.$el,r=this.params.loop?Math.ceil((s-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((i=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>s-1-2*this.loopedSlides&&(i-=s-2*this.loopedSlides),i>r-1&&(i-=r),i<0&&"bullets"!==this.params.paginationType&&(i=r+i)):i=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===t.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var o,l,d,h=this.pagination.bullets;if(t.dynamicBullets&&(this.pagination.bulletSize=h.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),a.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(t.dynamicMainBullets+4)+"px"),t.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=i-this.previousIndex,this.pagination.dynamicBulletIndex>t.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=t.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),o=i-this.pagination.dynamicBulletIndex,d=((l=o+(Math.min(h.length,t.dynamicMainBullets)-1))+o)/2),h.removeClass(t.bulletActiveClass+" "+t.bulletActiveClass+"-next "+t.bulletActiveClass+"-next-next "+t.bulletActiveClass+"-prev "+t.bulletActiveClass+"-prev-prev "+t.bulletActiveClass+"-main"),a.length>1)h.each((function(e,s){var a=n(s),r=a.index();r===i&&a.addClass(t.bulletActiveClass),t.dynamicBullets&&(r>=o&&r<=l&&a.addClass(t.bulletActiveClass+"-main"),r===o&&a.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),r===l&&a.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next"))}));else{var p=h.eq(i),c=p.index();if(p.addClass(t.bulletActiveClass),t.dynamicBullets){for(var u=h.eq(o),v=h.eq(l),f=o;f<=l;f+=1)h.eq(f).addClass(t.bulletActiveClass+"-main");if(this.params.loop)if(c>=h.length-t.dynamicMainBullets){for(var m=t.dynamicMainBullets;m>=0;m-=1)h.eq(h.length-m).addClass(t.bulletActiveClass+"-main");h.eq(h.length-t.dynamicMainBullets-1).addClass(t.bulletActiveClass+"-prev")}else u.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),v.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next");else u.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),v.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next")}}if(t.dynamicBullets){var g=Math.min(h.length,t.dynamicMainBullets+4),b=(this.pagination.bulletSize*g-this.pagination.bulletSize)/2-d*this.pagination.bulletSize,w=e?"right":"left";h.css(this.isHorizontal()?w:"top",b+"px")}}if("fraction"===t.type&&(a.find("."+t.currentClass).text(t.formatFractionCurrent(i+1)),a.find("."+t.totalClass).text(t.formatFractionTotal(r))),"progressbar"===t.type){var y;y=t.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var x=(i+1)/r,E=1,T=1;"horizontal"===y?E=x:T=x,a.find("."+t.progressbarFillClass).transform("translate3d(0,
95090,0) scaleX("+E+") scaleY("+T+")").transition(this.params.speed)}"custom"===t.type&&t.renderCustom?(a.html(t.renderCustom(this,i+1,r)),this.emit("paginationRender",this,a[0])):this.emit("paginationUpdate",this,a[0]),a[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)}},render:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,s="";if("bullets"===e.type){for(var a=this.params.loop?Math.ceil((t-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,r=0;r<a;r+=1)e.renderBullet?s+=e.renderBullet.call(this,r,e.bulletClass):s+="<"+e.bulletElement+' class="'+e.bulletClass+'"></'+e.bulletElement+">";i.html(s),this.pagination.bullets=i.find("."+e.bulletClass)}"fraction"===e.type&&(s=e.renderFraction?e.renderFraction.call(this,e.currentClass,e.totalClass):'<span class="'+e.currentClass+'"></span> / <span class="'+e.totalClass+'"></span>',i.html(s)),"progressbar"===e.type&&(s=e.renderProgressbar?e.renderProgressbar.call(this,e.progressbarFillClass):'<span class="'+e.progressbarFillClass+'"></span>',i.html(s)),"custom"!==e.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var i=n(t.el);0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&i.length>1&&(i=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&i.addClass(t.clickableClass),i.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(i.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.addClass(t.progressbarOppositeClass),t.clickable&&i.on("click","."+t.bulletClass,(function(t){t.preventDefault();var i=n(this).index()*e.params.slidesPerGroup;e.params.loop&&(i+=e.loopedSlides),e.slideTo(i)})),d.extend(e.pagination,{$el:i,el:i[0]}))}},destroy:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.pagination.$el;t.removeClass(e.hiddenClass),t.removeClass(e.modifierClass+e.type),this.pagination.bullets&&this.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&t.off("click","."+e.bulletClass)}}},le={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=this.rtlTranslate,i=this.progress,s=e.dragSize,a=e.trackSize,r=e.$dragEl,n=e.$el,o=this.params.scrollbar,l=s,d=(a-s)*i;t?(d=-d)>0?(l=s-d,d=0):-d+s>a&&(l=a+d):d<0?(l=s+d,d=0):d+s>
9509a&&(l=a-d),this.isHorizontal()?(r.transform("translate3d("+d+"px, 0, 0)"),r[0].style.width=l+"px"):(r.transform("translate3d(0px, "+d+"px, 0)"),r[0].style.height=l+"px"),o.hide&&(clearTimeout(this.scrollbar.timeout),n[0].style.opacity=1,this.scrollbar.timeout=setTimeout((function(){n[0].style.opacity=0,n.transition(400)}),1e3))}},setTransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=e.$dragEl,i=e.$el;t[0].style.width="",t[0].style.height="";var s,a=this.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,r=this.size/this.virtualSize,n=r*(a/this.size);s="auto"===this.params.scrollbar.dragSize?a*r:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?t[0].style.width=s+"px":t[0].style.height=s+"px",i[0].style.display=r>=1?"none":"",this.params.scrollbar.hide&&(i[0].style.opacity=0),d.extend(e,{trackSize:a,divider:r,moveDivider:n,dragSize:s}),e.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY},setDragPosition:function(e){var t,i=this.scrollbar,s=this.rtlTranslate,a=i.$el,r=i.dragSize,n=i.trackSize,o=i.dragStartPos;t=(i.getPointerPosition(e)-a.offset()[this.isHorizontal()?"left":"top"]-(null!==o?o:r/2))/(n-r),t=Math.max(Math.min(t,1),0),s&&(t=1-t);var l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*t;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(e){var t=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperEl,a=i.$el,r=i.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=e.target===r[0]||e.target===r?i.getPointerPosition(e)-e.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),s.transition(100),r.transition(100),i.setDragPosition(e),clearTimeout(this.scrollbar.dragTimeout),a.transition(0),t.hide&&a.css("opacity",1),this.params.cssMode&&this.$wrapperEl.css("scroll-snap-type","none"),this.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this.scrollbar,i=this.$wrapperEl,s=t.$el,a=t.$dragEl;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),i.transition(0),s.transition(0),a.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperEl,a=i.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,this.params.cssMode&&(this.$wrapperEl.css("scroll-snap-type",""),s.transition("")),t.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=d.nextTick((function(){a.css("opacity",0),a.transition(400)}),1e3)),this.emit("scrollbarDragEnd",e),t.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.touchEventsTouch,s=this.touchEventsDesktop,a=this.params,r=e.$el[0],n=!(!h.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},o=!(!h.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};h.touch?(r.addEventListener(t.start,this.scrollbar.onDragStart,n),r.addEventListener(t.move,this.scrollbar.onDragMove,n),r.addEventListener(t.end,this.scrollbar.onDragEnd,o)):(r.addEventListener(s.start,this.scrollbar.onDragStart,n),i.addEventListener(s.move,this.scrollbar.onDragMove,n),i.addEventListener(s.end,this.scrollbar.onDragEnd,o))}},disableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.touchEventsTouch,s=this.touchEventsDesktop,a=this.params,r=e.$el[0],n=!(!h.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},o=!(!h.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};h.touch?(r.removeEventListener(t.start,this.scrollbar.onDragStart,n),r.removeEventListener(t.move,this.scrollbar.onDragMove,n),r.removeEventListener(t.end,this.scrollbar.onDragEnd,o)):(r.removeEventListener(s.start,this.scrollbar.onDragStart,n),i.removeEventListener(s.move,this.scrollbar.onDragMove,n),i.removeEventListener(s.end,this.scrollbar.onDragEnd,o))}},init:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.$el,i=this.params.scrollbar,s=n(i.el);this.params.uniqueNavElements&&"string"==typeof i.el&&s.length>1&&1===t.find(i.el).length&&(s=t.find(i.el));var a=s.find("."+this.params.scrollbar.dragClass);0===a.length&&(a=n('<div class="'+this.params.scrollbar.dragClass+'"></div>'),s.append(a)),d.extend(e,{$el:s,el:s[0],$dragEl:a,dragEl:a[0]}),i.draggable&&e.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},de={setTransform:function(e,t){var i=this.rtl,s=n(e),a=i?-1:1,r=s.attr("data-swiper-parallax")||"0",o=s.attr("data-swiper-parallax-x"),l=s.attr("data-swiper-parallax-y"),d=s.attr("data-swiper-parallax-scale"),h=s.attr("data-swiper-parallax-opacity");if(o||l?(o=o||"0",l=l||"0"):this.isHorizontal()?(o=r,l="0"):(l=r,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*t*a+"%":o*t*a+"px",l=l.indexOf("%")>=0?parseInt(l,10)*t+"%":l*t+"px",null!=h){var p=h-(h-1)*(1-Math.abs(t));s[0].style.opacity=p}if(null==d)s.transform("translate3d("+o+", "+l+", 0px)");else{var c=d-(d-1)*(1-Math.abs(t));s.transform("translate3d("+o+", "+l+", 0px) scale("+c+")")}},setTranslate:function(){var e=this,t=e.$el,i=e.slides,s=e.progress,a=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){e.parallax.setTransform(i,s)})),i.each((function(t,i){var r=i.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(r+=Math.ceil(t/2)-s*(a.length-1)),r=Math.min(Math.max(r,-1),1),n(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){e.parallax.setTransform(i,r)}))}))},setTransition:function(e){void 0===e&&(e=this.params.speed);this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){var s=n(i),a=parseInt(s.attr("data-swiper-parallax-duration"),10)||e;0===e&&(a=0),s.transition(a)}))}},he={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,s=e.targetTouches[1].pageX,a=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(s-t,2)+Math.pow(a-i,2))},onGestureStart:function(e){var t=this.params.zoom,i=this.zoom,s=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!h.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;i.fakeGestureTouched=!0,s.scaleStart=he.getDistanceBetweenTouches(e)}s.$slideEl&&s.$slideEl.length||(s.$slideEl=n(e.target).closest("."+this.params.slideClass),0===s.$slideEl.length&&(s.$slideEl=this.slides.eq(this.activeIndex)),s.$imageEl=s.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),s.$imageWrapEl=s.$imageEl.parent("."+t.containerClass),s.maxRatio=s.$imageWrapEl.attr("data-swiper-zoom")||t.maxRatio,0!==s.$imageWrapEl.length)?(s.$imageEl&&s.$imageEl.transition(0),this.zoom.isScaling=!0):s.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,i=this.zoom,s=i.gesture;if(!h.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;i.fakeGestureMoved=!0,s.scaleMove=he.getDistanceBetweenTouches(e)}s.$imageEl&&0!==s.$imageEl.length&&(i.scale=h.gestures?e.scale*i.currentScale:s.scaleMove/s.scaleStart*i.currentScale,i.scale>s.maxRatio&&(i.scale=s.maxRatio-1+Math.pow(i.scale-s.maxRatio+1,.5)),i.scale<t.minRatio&&(i.scale=t.minRatio+1-Math.pow(t.minRatio-i.scale+1,.5)),s.$imageEl.transform("translate3d(0,
95090,0) scale("+i.scale+")"))},onGestureEnd:function(e){var t=this.params.zoom,i=this.zoom,s=i.gesture;if(!h.gestures){if(!i.fakeGestureTouched||!i.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!A.android)return;i.fakeGestureTouched=!1,i.fakeGestureMoved=!1}s.$imageEl&&0!==s.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,s.maxRatio),t.minRatio),s.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+i.scale+")"),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(s.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,i=t.gesture,s=t.image;i.$imageEl&&0!==i.$imageEl.length&&(s.isTouched||(A.android&&e.cancelable&&e.preventDefault(),s.isTouched=!0,s.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,s.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this.zoom,i=t.gesture,s=t.image,a=t.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(this.allowClick=!1,s.isTouched&&i.$slideEl)){s.isMoved||(s.width=i.$imageEl[0].offsetWidth,s.height=i.$imageEl[0].offsetHeight,s.startX=d.getTranslate(i.$imageWrapEl[0],"x")||0,s.startY=d.getTranslate(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),this.rtl&&(s.startX=-s.startX,s.startY=-s.startY));var r=s.width*t.scale,n=s.height*t.scale;if(!(r<i.slideWidth&&n<i.slideHeight)){if(s.minX=Math.min(i.slideWidth/2-r/2,0),s.maxX=-s.minX,s.minY=Math.min(i.slideHeight/2-n/2,0),s.maxY=-s.minY,s.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,s.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!s.isMoved&&!t.isScaling){if(this.isHorizontal()&&(Math.floor(s.minX)===Math.floor(s.startX)&&s.touchesCurrent.x<s.touchesStart.x||Math.floor(s.maxX)===Math.floor(s.startX)&&s.touchesCurrent.x>s.touchesStart.x))return void(s.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(s.minY)===Math.floor(s.startY)&&s.touchesCurrent.y<s.touchesStart.y||Math.floor(s.maxY)===Math.floor(s.startY)&&s.touchesCurrent.y>s.touchesStart.y))return void(s.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),s.isMoved=!0,s.currentX=s.touchesCurrent.x-s.touchesStart.x+s.startX,s.currentY=s.touchesCurrent.y-s.touchesStart.y+s.startY,s.currentX<s.minX&&(s.currentX=s.minX+1-Math.pow(s.minX-s.currentX+1,.8)),s.currentX>s.maxX&&(s.currentX=s.maxX-1+Math.pow(s.currentX-s.maxX+1,.8)),s.currentY<s.minY&&(s.currentY=s.minY+1-Math.pow(s.minY-s.currentY+1,.8)),s.currentY>s.maxY&&(s.currentY=s.maxY-1+Math.pow(s.currentY-s.maxY+1,.8)),a.prevPositionX||(a.prevPositionX=s.touchesCurrent.x),a.prevPositionY||(a.prevPositionY=s.touchesCurrent.y),a.prevTime||(a.prevTime=Date.now()),a.x=(s.touchesCurrent.x-a.prevPositionX)/(Date.now()-a.prevTime)/2,a.y=(s.touchesCurrent.y-a.prevPositionY)/(Date.now()-a.prevTime)/2,Math.abs(s.touchesCurrent.x-a.prevPositionX)<2&&(a.x=0),Math.abs(s.touchesCurrent.y-a.prevPositionY)<2&&(a.y=0),a.prevPositionX=s.touchesCurrent.x,a.prevPositionY=s.touchesCurrent.y,a.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+s.currentX+"px, "+s.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,i=e.image,s=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var a=300,r=300,n=s.x*a,o=i.currentX+n,l=s.y*r,d=i.currentY+l;0!==s.x&&(a=Math.abs((o-i.currentX)/s.x)),0!==s.y&&(r=Math.abs((d-i.currentY)/s.y));var h=Math.max(a,r);i.currentX=o,i.currentY=d;var p=i.width*e.scale,c=i.height*e.scale;i.minX=Math.min(t.slideWidth/2-p/2,0),i.maxX=-i.minX,i.minY=Math.min(t.slideHeight/2-c/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),t.$imageWrapEl.transition(h).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl&&t.$imageEl.transform("translate3d(0,
95090,0) scale(1)"),t.$imageWrapEl&&t.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,i,s,a,r,n,o,l,d,h,p,c,u,v,f,m,g=this.zoom,b=this.params.zoom,w=g.gesture,y=g.image;(w.$slideEl||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?w.$slideEl=this.$wrapperEl.children("."+this.params.slideActiveClass):w.$slideEl=this.slides.eq(this.activeIndex),w.$imageEl=w.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),w.$imageWrapEl=w.$imageEl.parent("."+b.containerClass)),w.$imageEl&&0!==w.$imageEl.length)&&(w.$slideEl.addClass(""+b.zoomedSlideClass),void 0===y.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,i="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=y.touchesStart.x,i=y.touchesStart.y),g.scale=w.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,g.currentScale=w.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,e?(f=w.$slideEl[0].offsetWidth,m=w.$slideEl[0].offsetHeight,s=w.$slideEl.offset().left+f/2-t,a=w.$slideEl.offset().top+m/2-i,o=w.$imageEl[0].offsetWidth,l=w.$imageEl[0].offsetHeight,d=o*g.scale,h=l*g.scale,u=-(p=Math.min(f/2-d/2,0)),v=-(c=Math.min(m/2-h/2,0)),(r=s*g.scale)<p&&(r=p),r>u&&(r=u),(n=a*g.scale)<c&&(n=c),n>v&&(n=v)):(r=0,n=0),w.$imageWrapEl.transition(300).transform("translate3d("+r+"px, "+n+"px,0)"),w.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+g.scale+")"))},out:function(){var e=this.zoom,t=this.params.zoom,i=e.gesture;i.$slideEl||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?i.$slideEl=this.$wrapperEl.children("."+this.params.slideActiveClass):i.$slideEl=this.slides.eq(this.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imageWrapEl=i.$imageEl.parent("."+t.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(e.scale=1,e.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+t.zoomedSlideClass),i.$slideEl=void 0)},enable:function(){var e=this.zoom;if(!e.enabled){e.enabled=!0;var t=!("touchstart"!==this.touchEvents.start||!h.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},i=!h.passiveListener||{passive:!1,capture:!0},s="."+this.params.slideClass;h.gestures?(this.$wrapperEl.on("gesturestart",s,e.onGestureStart,t),this.$wrapperEl.on("gesturechange",s,e.onGestureChange,t),this.$wrapperEl.on("gestureend",s,e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,s,e.onGestureStart,t),this.$wrapperEl.on(this.touchEvents.move,s,e.onGestureChange,i),this.$wrapperEl.on(this.touchEvents.end,s,e.onGestureEnd,t),this.touchEvents.cancel&&this.$wrapperEl.on(this.touchEvents.cancel,s,e.onGestureEnd,t)),this.$wrapperEl.on(this.touchEvents.move,"."+this.params.zoom.containerClass,e.onTouchMove,i)}},disable:function(){var e=this.zoom;if(e.enabled){this.zoom.enabled=!1;var t=!("touchstart"!==this.touchEvents.start||!h.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},i=!h.passiveListener||{passive:!1,capture:!0},s="."+this.params.slideClass;h.gestures?(this.$wrapperEl.off("gesturestart",s,e.onGestureStart,t),this.$wrapperEl.off("gesturechange",s,e.onGestureChange,t),this.$wrapperEl.off("gestureend",s,e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,s,e.onGestureStart,t),this.$wrapperEl.off(this.touchEvents.move,s,e.onGestureChange,i),this.$wrapperEl.off(this.touchEvents.end,s,e.onGestureEnd,t),this.touchEvents.cancel&&this.$wrapperEl.off(this.touchEvents.cancel,s,e.onGestureEnd,t)),this.$wrapperEl.off(this.touchEvents.move,"."+this.params.zoom.containerClass,e.onTouchMove,i)}}},pe={loadInSlide:function(e,t){void 0===t&&(t=!0);var i=this,s=i.params.lazy;if(void 0!==e&&0!==i.slides.length){var a=i.virtual&&i.params.virtual.enabled?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):i.slides.eq(e),r=a.find("."+s.elementClass+":not(."+s.loadedClass+"):not(."+s.loadingClass+")");!a.hasClass(s.elementClass)||a.hasClass(s.loadedClass)||a.hasClass(s.loadingClass)||(r=r.add(a[0])),0!==r.length&&r.each((function(e,r){var o=n(r);o.addClass(s.loadingClass);var l=o.attr("data-background"),d=o.attr("data-src"),h=o.attr("data-srcset"),p=o.attr("data-sizes"),c=o.parent("picture");i.loadImage(o[0],d||l,h,p,!1,(function(){if(null!=i&&i&&(!i||i.params)&&!i.destroyed){
9509if(l?(o.css("background-image",'url("'+l+'")'),o.removeAttr("data-background")):(h&&(o.attr("srcset",h),o.removeAttr("data-srcset")),p&&(o.attr("sizes",p),o.removeAttr("data-sizes")),c.length&&c.children("source").each((function(e,t){var i=n(t);i.attr("data-srcset")&&(i.attr("srcset",i.attr("data-srcset")),i.removeAttr("data-srcset"))})),d&&(o.attr("src",d),o.removeAttr("data-src"))),o.addClass(s.loadedClass).removeClass(s.loadingClass),a.find("."+s.preloaderClass).remove(),i.params.loop&&t){var e=a.attr("data-swiper-slide-index");if(a.hasClass(i.params.slideDuplicateClass)){var r=i.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+i.params.slideDuplicateClass+")");i.lazy.loadInSlide(r.index(),!1)}else{var u=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');i.lazy.loadInSlide(u.index(),!1)}}i.emit("lazyImageReady",a[0],o[0]),i.params.autoHeight&&i.updateAutoHeight()}})),i.emit("lazyImageLoad",a[0],o[0])}))}},load:function(){var e=this,t=e.$wrapperEl,i=e.params,s=e.slides,a=e.activeIndex,r=e.virtual&&i.virtual.enabled,o=i.lazy,l=i.slidesPerView;function d(e){if(r){if(t.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(s[e])return!0;return!1}function h(e){return r?n(e).attr("data-swiper-slide-index"):n(e).index()}if("auto"===l&&(l=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+i.slideVisibleClass).each((function(t,i){var s=r?n(i).attr("data-swiper-slide-index"):n(i).index();e.lazy.loadInSlide(s)}));else if(l>1)for(var p=a;p<a+l;p+=1)d(p)&&e.lazy.loadInSlide(p);else e.lazy.loadInSlide(a);if(o.loadPrevNext)if(l>1||o.loadPrevNextAmount&&o.loadPrevNextAmount>1){for(var c=o.loadPrevNextAmount,u=l,v=Math.min(a+u+Math.max(c,u),s.length),f=Math.max(a-Math.max(u,c),0),m=a+l;m<v;m+=1)d(m)&&e.lazy.loadInSlide(m);for(var g=f;g<a;g+=1)d(g)&&e.lazy.loadInSlide(g)}else{var b=t.children("."+i.slideNextClass);b.length>0&&e.lazy.loadInSlide(h(b));var w=t.children("."+i.slidePrevClass);w.length>0&&e.lazy.loadInSlide(h(w))}}},ce={LinearSpline:function(e,t){var i,s,a,r,n,o=function(e,t){for(s=-1,i=e.length;i-s>1;)e[a=i+s>>1]<=t?s=a:i=a;return i};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(n=o(this.x,e),r=n-1,(e-this.x[r])*(this.y[n]-this.y[r])/(this.x[n]-this.x[r])+this.y[r]):0},this},getInterpolateFunction:function(e){this.controller.spline||(this.controller.spline=this.params.loop?new ce.LinearSpline(this.slidesGrid,e.slidesGrid):new ce.LinearSpline(this.snapGrid,e.snapGrid))},setTranslate:function(e,t){var i,s,a=this,r=a.controller.control;function n(e){var t=a.rtlTranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(a.controller.getInterpolateFunction(e),s=-a.controller.spline.interpolate(-t)),s&&"container"!==a.params.controller.by||(i=(e.maxTranslate()-e.minTranslate())/(a.maxTranslate()-a.minTranslate()),s=(t-a.minTranslate())*i+e.minTranslate()),a.params.controller.inverse&&(s=e.maxTranslate()-s),e.updateProgress(s),e.setTranslate(s,a),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(r))for(var o=0;o<r.length;o+=1)r[o]!==t&&r[o]instanceof j&&n(r[o]);else r instanceof j&&t!==r&&n(r)},setTransition:function(e,t){var i,s=this,a=s.controller.control;function r(t){t.setTransition(e,s),0!==e&&(t.transitionStart(),t.params.autoHeight&&d.nextTick((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){a&&(t.params.loop&&"slide"===s.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(a))for(i=0;i<a.length;i+=1)a[i]!==t&&a[i]instanceof j&&r(a[i]);else a instanceof j&&t!==a&&r(a)}},ue={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},makeElNotFocusable:function(e){return e.attr("tabIndex","-1"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this.params.a11y;if(13===e.keyCode){var i=n(e.target);this.navigation&&this.navigation.$nextEl&&i.is(this.navigation.$nextEl)&&(this.isEnd&&!this.params.loop||this.slideNext(),this.isEnd?this.a11y.notify(t.lastSlideMessage):this.a11y.notify(t.nextSlideMessage)),this.navigation&&this.navigation.$prevEl&&i.is(this.navigation.$prevEl)&&(this.isBeg
9509inning&&!this.params.loop||this.slidePrev(),this.isBeginning?this.a11y.notify(t.firstSlideMessage):this.a11y.notify(t.prevSlideMessage)),this.pagination&&i.is("."+this.params.pagination.bulletClass)&&i[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){if(!this.params.loop&&this.navigation){var e=this.navigation,t=e.$nextEl,i=e.$prevEl;i&&i.length>0&&(this.isBeginning?(this.a11y.disableEl(i),this.a11y.makeElNotFocusable(i)):(this.a11y.enableEl(i),this.a11y.makeElFocusable(i))),t&&t.length>0&&(this.isEnd?(this.a11y.disableEl(t),this.a11y.makeElNotFocusable(t)):(this.a11y.enableEl(t),this.a11y.makeElFocusable(t)))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(i,s){var a=n(s);e.a11y.makeElFocusable(a),e.a11y.addElRole(a,"button"),e.a11y.addElLabel(a,t.paginationBulletMessage.replace(/\{\{index\}\}/,a.index()+1))}))},init:function(){this.$el.append(this.a11y.liveRegion);var e,t,i=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,i.nextSlideMessage),e.on("keydown",this.a11y.onEnterKey)),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,i.prevSlideMessage),t.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)},destroy:function(){var e,t;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&e.off("keydown",this.a11y.onEnterKey),t&&t.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)}},ve={init:function(){if(this.params.history){if(!a.history||!a.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var e=this.history;e.initialized=!0,e.paths=ve.getPathValues(),(e.paths.key||e.paths.value)&&(e.scrollToSlide(0,e.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||a.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||a.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=ve.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var e=a.location.pathname.slice(1).split("/").filter((function(e){return""!==e})),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory:function(e,t){if(this.history.initialized&&this.params.history.enabled){var i=this.slides.eq(t),s=ve.slugify(i.attr("data-history"));a.location.pathname.includes(e)||(s=e+"/"+s);var r=a.history.state;r&&r.value===s||(this.params.history.replaceState?a.history.replaceState({value:s},null,s):a.history.pushState({value:s},null,s))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,i){if(t)for(var s=0,a=this.slides.length;s<a;s+=1){var r=this.slides.eq(s);if(ve.slugify(r.attr("data-history"))===t&&!r.hasClass(this.params.slideDuplicateClass)){var n=r.index();this.slideTo(n,e,i)}}else this.slideTo(0,e,i)}},fe={onHashCange:function(){this.emit("hashChange");var e=i.location.hash.replace("#","");if(e!==this.slides.eq(this.activeIndex).attr("data-hash")){var t=this.$wrapperEl.children("."+this.params.slideClass+'[data-hash="'+e+'"]').index();if(void 0===t)return;this.slideTo(t)}},setHash:function(){if(this.hashNavigation.initialized&&this.params.hashNavigation.enabled)if(this.params.hashNavigation.replaceState&&a.history&&a.history.replaceState)a.history.replaceState(null,null,"#"+this.slides.eq(this.activeIndex).attr("data-hash")||""),this.emit
9509("hashSet");else{var e=this.slides.eq(this.activeIndex),t=e.attr("data-hash")||e.attr("data-history");i.location.hash=t||"",this.emit("hashSet")}},init:function(){if(!(!this.params.hashNavigation.enabled||this.params.history&&this.params.history.enabled)){this.hashNavigation.initialized=!0;var e=i.location.hash.replace("#","");if(e)for(var t=0,s=this.slides.length;t<s;t+=1){var r=this.slides.eq(t);if((r.attr("data-hash")||r.attr("data-history"))===e&&!r.hasClass(this.params.slideDuplicateClass)){var o=r.index();this.slideTo(o,0,this.params.runCallbacksOnInit,!0)}}this.params.hashNavigation.watchState&&n(a).on("hashchange",this.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&n(a).off("hashchange",this.hashNavigation.onHashCange)}},me={run:function(){var e=this,t=e.slides.eq(e.activeIndex),i=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(i=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=d.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")),e.params.cssMode&&e.autoplay.running&&e.autoplay.run()}),i)},start:function(){return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop:function(){return!!this.autoplay.running&&(void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0))},pause:function(e){this.autoplay.running&&(this.autoplay.paused||(this.autoplay.timeout&&clearTimeout(this.autoplay.timeout),this.autoplay.paused=!0,0!==e&&this.params.autoplay.waitForTransition?(this.$wrapperEl[0].addEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].addEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd)):(this.autoplay.paused=!1,this.autoplay.run())))}},ge={setTranslate:function(){for(var e=this.slides,t=0;t<e.length;t+=1){var i=this.slides.eq(t),s=-i[0].swiperSlideOffset;this.params.virtualTranslate||(s-=this.translate);var a=0;this.isHorizontal()||(a=s,s=0);var r=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:r}).transform("translate3d("+s+"px, "+a+"px, 0px)")}},setTransition:function(e){var t=this,i=t.slides,s=t.$wrapperEl;if(i.transition(e),t.params.virtualTranslate&&0!==e){var a=!1;i.transitionEnd((function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)s.trigger(e[i])}}))}}},be={setTranslate:function(){var e,t=this.$el,i=this.$wrapperEl,s=this.slides,a=this.width,r=this.height,o=this.rtlTranslate,l=this.size,d=this.params.cubeEffect,h=this.isHorizontal(),p=this.virtual&&this.params.virtual.enabled,c=0;d.shadow&&(h?(0===(e=i.find(".swiper-cube-shadow")).length&&(e=n('<div class="swiper-cube-shadow"></div>'),i.append(e)),e.css({height:a+"px"})):0===(e=t.find(".swiper-cube-shadow")).length&&(e=n('<div class="swiper-cube-shadow"></div>'),t.append(e)));for(var u=0;u<s.length;u+=1){var v=s.eq(u),f=u;p&&(f=parseInt(v.attr("data-swiper-slide-index"),10));var m=90*f,g=Math.floor(m/360);o&&(m=-m,g=Math.floor(-m/360));var b=Math.max(Math.min(v[0].progress,1),-1),w=0,y=0,x=0;f%4==0?(w=4*-g*l,x=0):(f-1)%4==0?(w=0,x=4*-g*l):(f-2)%4==0?(w=l+4*g*l,x=l):(f-3)%4==0&&(w=-l,x=3*l+4*l*g),o&&(w=-w),h||(y=w,w=0);var E="rotateX("+(h?0:-m)+"deg) rotateY("+(h?m:0)+"deg) translate3d("+w+"px, "+y+"px, "+x+"px)";if(b<=1&&b>-1&&(c=90*f+90*b,o&&(c=90*-f-90*b)),v.transform(E),d.slideShadows){var T=h?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),S=h?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===T.length&&(T=n('<div class="swiper-slide-shadow-'+(h?"left":"top")+'"></div>'),v.append(T)),0===S.length&&(S=n('<div class="swiper-slide-shadow-'+(h?"right":"bottom")+'"></div>'),v.append(S)),T.length&&(T[0].style.opacity=Math.max(-b,0)),S.length&&(S[0].style.opacity=Math.max(b,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),d.shadow)if(h)e.transform("translate3d(0px, "+(a/2+d.shadowOffset)+"px, "+-a/2+"px) rotateX(90deg) rotateZ(0deg) scale("+d.shadowScale+")");else{var C=Math.abs(c)-90*Math.floor(Math.abs(c)/90),M=1.5-(Math.sin(2*C*Math.PI/360)/2+Math.cos(2*C*Math.PI/360)/2),P=d.shadowScale,z=d.shadowScale/M,k=d.shadowOffset;e.transform("scale3d("+P+", 1, "+z+") translate3d(0px, "+(r/2+k)+"px, "+-r/2/z+"px) rotateX(-90deg)")}var $=_.isSafari||_.isWebView?-l/2:0;i.transform("translate3d(0px,0,"+$+"px) rotateX("+(this.isHorizontal()?0:c)+"deg) rotateY("+(this.isHorizontal()?-c:0)+"deg)")},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},we={setTranslate:function(){for(var e=this.slides,t=this.rtlTranslate,i=0;i<e.length;i+=1){var s=e.eq(i),a=s[0].progress;this.params.flipEffect.limitRotation&&(a=Math.max(Math.min(s[0].progress,
95091),-1));var r=-180*a,o=0,l=-s[0].swiperSlideOffset,d=0;if(this.isHorizontal()?t&&(r=-r):(d=l,l=0,o=-r,r=0),s[0].style.zIndex=-Math.abs(Math.round(a))+e.length,this.params.flipEffect.slideShadows){var h=this.isHorizontal()?s.find(".swiper-slide-shadow-left"):s.find(".swiper-slide-shadow-top"),p=this.isHorizontal()?s.find(".swiper-slide-shadow-right"):s.find(".swiper-slide-shadow-bottom");0===h.length&&(h=n('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"left":"top")+'"></div>'),s.append(h)),0===p.length&&(p=n('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"right":"bottom")+'"></div>'),s.append(p)),h.length&&(h[0].style.opacity=Math.max(-a,0)),p.length&&(p[0].style.opacity=Math.max(a,0))}s.transform("translate3d("+l+"px, "+d+"px, 0px) rotateX("+o+"deg) rotateY("+r+"deg)")}},setTransition:function(e){var t=this,i=t.slides,s=t.activeIndex,a=t.$wrapperEl;if(i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var r=!1;i.eq(s).transitionEnd((function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)a.trigger(e[i])}}))}}},ye={setTranslate:function(){for(var e=this.width,t=this.height,i=this.slides,s=this.$wrapperEl,a=this.slidesSizesGrid,r=this.params.coverflowEffect,o=this.isHorizontal(),l=this.translate,d=o?e/2-l:t/2-l,p=o?r.rotate:-r.rotate,c=r.depth,u=0,v=i.length;u<v;u+=1){var f=i.eq(u),m=a[u],g=(d-f[0].swiperSlideOffset-m/2)/m*r.modifier,b=o?p*g:0,w=o?0:p*g,y=-c*Math.abs(g),x=r.stretch;"string"==typeof x&&-1!==x.indexOf("%")&&(x=parseFloat(r.stretch)/100*m);var E=o?0:x*g,T=o?x*g:0,S=1-(1-r.scale)*Math.abs(g);Math.abs(T)<.001&&(T=0),Math.abs(E)<.001&&(E=0),Math.abs(y)<.001&&(y=0),Math.abs(b)<.001&&(b=0),Math.abs(w)<.001&&(w=0),Math.abs(S)<.001&&(S=0);var C="translate3d("+T+"px,"+E+"px,"+y+"px) rotateX("+w+"deg) rotateY("+b+"deg) scale("+S+")";if(f.transform(C),f[0].style.zIndex=1-Math.abs(Math.round(g)),r.slideShadows){var M=o?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),P=o?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===M.length&&(M=n('<div class="swiper-slide-shadow-'+(o?"left":"top")+'"></div>'),f.append(M)),0===P.length&&(P=n('<div class="swiper-slide-shadow-'+(o?"right":"bottom")+'"></div>'),f.append(P)),M.length&&(M[0].style.opacity=g>0?g:0),P.length&&(P[0].style.opacity=-g>0?-g:0)}}(h.pointerEvents||h.prefixedPointerEvents)&&(s[0].style.perspectiveOrigin=d+"px 50%")},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},xe={init:function(){var e=this.params.thumbs,t=this.constructor;e.swiper instanceof t?(this.thumbs.swiper=e.swiper,d.extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),d.extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):d.isObject(e.swiper)&&(this.thumbs.swiper=new t(d.extend({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick)},onThumbClick:function(){var e=this.thumbs.swiper;if(e){var t=e.clickedIndex,i=e.clickedSlide;if(!(i&&n(i).hasClass(this.params.thumbs.slideThumbActiveClass)||null==t)){var s;if(s=e.params.loop?parseInt(n(e.clickedSlide).attr("data-swiper-slide-index"),10):t,this.params.loop){var a=this.activeIndex;this.slides.eq(a).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,a=this.activeIndex);var r=this.slides.eq(a).prevAll('[data-swiper-slide-index="'+s+'"]').eq(0).index(),o=this.slides.eq(a).nextAll('[data-swiper-slide-index="'+s+'"]').eq(0).index();s=void 0===r?o:void 0===o?r:o-a<a-r?o:r}this.slideTo(s)}}},update:function(e){var t=this.thumbs.swiper;if(t){var i="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():t.params.slidesPerView,s=this.params.thumbs.autoScrollOffset,a=s&&!t.params.loop;if(this.realIndex!==t.realIndex||a){var r,n,o=t.activeIndex;if(t.params.loop){t.slides.eq(o).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,o=t.activeIndex);var l=t.slides.eq(o).prevAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index(),d=t.slides.eq(o).nextAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index();r=void 0===l?d:void 0===d?l:d-o==o-l?o:d-o<o-l?d:l,n=this.activeIndex>this.previousIndex?"next":"prev"}else n=(r=this.realIndex)>this.previousIndex?"next":"prev";a&&(r+="next"===n?s:-1*s),t.visibleSlidesIndexes&&t.visibleSlidesIndexes.indexOf(r)<0&&(t.params.centeredSlides?r=r>o?r-Math.floor(i/2)+1:r+Math.floor(i/2)-1:r>o&&(r=r-i+1),t.slideTo(r,e?0:void 0))}var h=1,p=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(h=this.params.slidesPerView),this.params.thumbs.multipleActiveThumbs||(h=1),h=Math.floor(h),t.slides.removeClass(p),t.params.loop||t.params.virtual&&t.params.virtual.enabled)for(var c=0;c<h;c+=1)t.$wrapperEl.children('[data-swiper-slide-index="'+(this.realIndex+c)+'"]').addClass(p);else for(var u=0;u<h;
9509u+=1)t.slides.eq(this.realIndex+u).addClass(p)}}},Ee=[K,U,Z,Q,ee,ie,ae,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){d.extend(this,{mousewheel:{enabled:!1,enable:re.enable.bind(this),disable:re.disable.bind(this),handle:re.handle.bind(this),handleMouseEnter:re.handleMouseEnter.bind(this),handleMouseLeave:re.handleMouseLeave.bind(this),animateSlider:re.animateSlider.bind(this),releaseScroll:re.releaseScroll.bind(this),lastScrollTime:d.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[]}})},on:{init:function(){!this.params.mousewheel.enabled&&this.params.cssMode&&this.mousewheel.disable(),this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.params.cssMode&&this.mousewheel.enable(),this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){d.extend(this,{navigation:{init:ne.init.bind(this),update:ne.update.bind(this),destroy:ne.destroy.bind(this),onNextClick:ne.onNextClick.bind(this),onPrevClick:ne.onPrevClick.bind(this)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t,i=this.navigation,s=i.$nextEl,a=i.$prevEl;!this.params.navigation.hideOnClick||n(e.target).is(a)||n(e.target).is(s)||(s?t=s.hasClass(this.params.navigation.hiddenClass):a&&(t=a.hasClass(this.params.navigation.hiddenClass)),!0===t?this.emit("navigationShow",this):this.emit("navigationHide",this),s&&s.toggleClass(this.params.navigation.hiddenClass),a&&a.toggleClass(this.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){d.extend(this,{pagination:{init:oe.init.bind(this),render:oe.render.bind(this),update:oe.update.bind(this),destroy:oe.destroy.bind(this),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){(this.params.loop||void 0===this.snapIndex)&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){this.params.pagination.el&&this.params.pagination.hideOnClick&&this.pagination.$el.length>0&&!n(e.target).hasClass(this.params.pagination.bulletClass)&&(!0===this.pagination.$el.hasClass(this.params.pagination.hiddenClass)?this.emit("paginationShow",this):this.emit("paginationHide",this),this.pagination.$el.toggleClass(this.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){d.extend(this,{scrollbar:{init:le.init.bind(this),destroy:le.destroy.bind(this),updateSize:le.updateSize.bind(this),setTranslate:le.setTranslate.bind(this),setTransition:le.setTransition.bind(this),enableDraggable:le.enableDraggable.bind(this),disableDraggable:le.disableDraggable.bind(this),setDragPosition:le.setDragPosition.bind(this),getPointerPosition:le.getPointerPosition.bind(this),onDragStart:le.onDragStart.bind(this),onDragMove:le.onDragMove.bind(this),onDragEnd:le.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){d.extend(this,{parallax:{setTransform:de.setTransform.bind(this),setTranslate:de.setTranslate.bind(this),setTransition:de.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(i){t[i]=he[i].bind(e)})),d.extend(e,{zoom:t});var i=1;Object.defineProperty(e.zoom,"scale",{get:function(){return i},set:function(t){if(i!==t){var s=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,a=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,s,a)}i=t}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(e)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()},slideChange:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.params.cssMode&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){d.extend(this,{lazy:{initialImageLoaded:!1,load:pe.load.bind(this),loadInSlide:pe.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()},slideChange:function(){this.params.lazy.enabled&&this.params.cssMode&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){d.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:ce.getInterpolateFunction.bind(this),setTranslate:ce.setTranslate.bind(this),setTransition:ce.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;d.extend(e,{a11y:{liveRegion:n('<span class="'+e.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(ue).forEach((function(t){e.a11y[t]=ue[t].bind(e)}))},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){d.extend(this,{history:{init:ve.init.bind(this),setHistory:ve.setHistory.bind(this),setHistoryPopState:ve.setHistoryPopState.bind(this),scrollToSlide:ve.scrollToSlide.bind(this),destroy:ve.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)},slideChange:function(){this.history.initialized&&this.params.cssMode&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){d.extend(this,{hashNavigation:{initialized:!1,init:fe.init.bind(this),destroy:fe.destroy.bind(this),setHash:fe.setHash.bind(this),onHashCange:fe.onHashCange.bind(this)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()},slideChange:function(){this.hashNavigation.initialized&&this.params.cssMode&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;d.extend(e,{autoplay:{running:!1,paused:!1,run:me.run.bind(e),start:me.start.bind(e),stop:me.stop.bind(e),pause:me.pause.bind(e),onVisibilityChange:function(){"hidden"===document.visibilityState&&e.autoplay.running&&e.autoplay.pause(),"visible"===document.visibilityState&&e.autoplay.paused&&(e.autoplay.run(),e.autoplay.paused=!1)},onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&(this.autoplay.start(),document.addEventListener("visibilitychange",this.autoplay.onVisibilityChange))},beforeTransitionStart:function(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(e):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},touchEnd:function(){this.params.cssMode&&this.autoplay.paused&&!this.params.autoplay.disableOnInteraction&&this.autoplay.run()},destroy:function(){this.autoplay.running&&this.autoplay.stop(),document.removeEventListener("visibilitychange",this.autoplay.onVisibilityChange)}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){d.extend(this,{fadeEffect:{setTranslate:ge.setTranslate.bind(this),setTransition:ge.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"fade");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};d.extend(this.params,e),d.extend(this.originalParams,e)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){d.extend(this,{cubeEffect:{setTranslate:be.setTranslate.bind(this),setTransition:be.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};d.extend(this.params,e),d.extend(this.originalParams,e)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){d.extend(this,{flipEffect:{setTranslate:we.setTranslate.bind(this),setTransition:we.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};d.extend(this.params,e),d.extend(this.originalParams,e)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create:function(){d.extend(this,{coverflowEffect:{setTranslate:ye.setTranslate.bind(this),setTransition:ye.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){d.extend(this,{thumbs:{swiper:null,init:xe.init.bind(this),update:xe.update.bind(this),onThumbClick:xe.onThumbClick.bind(this)}})},on:{beforeInit:function(){var e=this.params.thumbs;e&&e.swiper
vendor: 608 bytes, lines 9509-9510
9509&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];return void 0===j.use&&(j.use=j.Class.use,j.installModule=j.Class.installModule),j.use(Ee),j})); 9510//# sourceMappingURL=swiper.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.